@redneckz/wildless-cms-uni-blocks 0.14.752 → 0.14.754
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/api/RetailAPI/getTraceId.d.ts +1 -0
- package/bundle/bundle.umd.js +131 -134
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/bundle/components/RollupItem/RollupItem.d.ts +0 -4
- package/bundle/hooks/useRetailFormStore.d.ts +1 -0
- package/bundle/ui-kit/Button/Button.d.ts +7 -3
- package/bundle/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/bundle/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/bundle/ui-kit/ControlStateProps.d.ts +0 -1
- package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
- package/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
- package/dist/api/RetailAPI/doRequest.js +5 -0
- package/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/dist/api/RetailAPI/getGenderFromName.js +7 -5
- package/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/dist/api/RetailAPI/getTraceId.d.ts +1 -0
- package/dist/api/RetailAPI/getTraceId.js +9 -0
- package/dist/api/RetailAPI/getTraceId.js.map +1 -0
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +2 -2
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CreditCardForm/ReworkStatusContent.js +12 -2
- package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +1 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/Depository/DepositoryItem.js +2 -2
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
- package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.d.ts +0 -4
- package/dist/components/RollupItem/RollupItem.js +4 -20
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/hooks/useRetailFormStore.d.ts +1 -0
- package/dist/hooks/useRetailFormStore.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +7 -3
- package/dist/ui-kit/Button/Button.js +15 -17
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/dist/ui-kit/Button/ButtonTitle.js +7 -0
- package/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/dist/ui-kit/Button/SubmitButton.js +8 -0
- package/dist/ui-kit/Button/SubmitButton.js.map +1 -0
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/ui-kit/ControlStateProps.d.ts +0 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/FormField/validators.js +2 -2
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +16 -11
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +12 -0
- package/dist/ui-kit/Icon/RoundedIcon.js +1 -1
- package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/dist/ui-kit/Icon/ToggleIcon.js +7 -0
- package/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/dist/ui-kit/Input/InputPopup.d.ts +2 -1
- package/dist/ui-kit/Input/InputPopup.js +29 -1
- package/dist/ui-kit/Input/InputPopup.js.map +1 -1
- package/dist/ui-kit/Input/useInputPopup.js +4 -3
- package/dist/ui-kit/Input/useInputPopup.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.js +1 -1
- package/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.mobile.js +14 -2
- package/dist/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
- package/lib/api/RetailAPI/doRequest.js +5 -0
- package/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/lib/api/RetailAPI/getGenderFromName.js +7 -5
- package/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/lib/api/RetailAPI/getTraceId.d.ts +1 -0
- package/lib/api/RetailAPI/getTraceId.js +6 -0
- package/lib/api/RetailAPI/getTraceId.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +2 -2
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CreditCardForm/ReworkStatusContent.js +12 -2
- package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +1 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/Depository/DepositoryItem.js +2 -2
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
- package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.d.ts +0 -4
- package/lib/components/RollupItem/RollupItem.js +4 -20
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/hooks/useRetailFormStore.d.ts +1 -0
- package/lib/hooks/useRetailFormStore.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +7 -3
- package/lib/ui-kit/Button/Button.js +16 -18
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/lib/ui-kit/Button/ButtonTitle.js +5 -0
- package/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/lib/ui-kit/Button/SubmitButton.js +6 -0
- package/lib/ui-kit/Button/SubmitButton.js.map +1 -0
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/ui-kit/ControlStateProps.d.ts +0 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/FormField/validators.js +2 -2
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +16 -11
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +12 -0
- package/lib/ui-kit/Icon/RoundedIcon.js +1 -1
- package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/lib/ui-kit/Icon/ToggleIcon.js +5 -0
- package/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/lib/ui-kit/Input/InputPopup.d.ts +2 -1
- package/lib/ui-kit/Input/InputPopup.js +29 -1
- package/lib/ui-kit/Input/InputPopup.js.map +1 -1
- package/lib/ui-kit/Input/useInputPopup.js +4 -3
- package/lib/ui-kit/Input/useInputPopup.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.js +1 -1
- package/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.mobile.js +15 -3
- package/lib/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +148 -146
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/mobile/bundle/components/RollupItem/RollupItem.d.ts +0 -4
- package/mobile/bundle/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +7 -3
- package/mobile/bundle/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/mobile/bundle/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/mobile/bundle/ui-kit/ControlStateProps.d.ts +0 -1
- package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
- package/mobile/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
- package/mobile/dist/api/RetailAPI/doRequest.js +5 -0
- package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getGenderFromName.js +7 -5
- package/mobile/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getTraceId.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/getTraceId.js +9 -0
- package/mobile/dist/api/RetailAPI/getTraceId.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -2
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +12 -2
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +1 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js +2 -2
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.d.ts +0 -4
- package/mobile/dist/components/RollupItem/RollupItem.js +4 -20
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/dist/hooks/useRetailFormStore.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +7 -3
- package/mobile/dist/ui-kit/Button/Button.js +15 -17
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/mobile/dist/ui-kit/Button/ButtonTitle.js +7 -0
- package/mobile/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/mobile/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/mobile/dist/ui-kit/Button/SubmitButton.js +8 -0
- package/mobile/dist/ui-kit/Button/SubmitButton.js.map +1 -0
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/ui-kit/ControlStateProps.d.ts +0 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.js +2 -2
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +16 -11
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +12 -0
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js +1 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/mobile/dist/ui-kit/Icon/ToggleIcon.js +7 -0
- package/mobile/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputPopup.d.ts +2 -1
- package/mobile/dist/ui-kit/Input/InputPopup.js +29 -1
- package/mobile/dist/ui-kit/Input/InputPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Input/useInputPopup.js +4 -3
- package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +14 -2
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/api/RetailAPI/doRequest.js +5 -0
- package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getGenderFromName.js +7 -5
- package/mobile/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getTraceId.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/getTraceId.js +6 -0
- package/mobile/lib/api/RetailAPI/getTraceId.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +2 -2
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +12 -2
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +1 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js +2 -2
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
- package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.d.ts +0 -4
- package/mobile/lib/components/RollupItem/RollupItem.js +4 -20
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/lib/hooks/useRetailFormStore.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +7 -3
- package/mobile/lib/ui-kit/Button/Button.js +16 -18
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
- package/mobile/lib/ui-kit/Button/ButtonTitle.js +5 -0
- package/mobile/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
- package/mobile/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
- package/mobile/lib/ui-kit/Button/SubmitButton.js +6 -0
- package/mobile/lib/ui-kit/Button/SubmitButton.js.map +1 -0
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/ui-kit/ControlStateProps.d.ts +0 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.js +2 -2
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +16 -11
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +12 -0
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js +1 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
- package/mobile/lib/ui-kit/Icon/ToggleIcon.js +5 -0
- package/mobile/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputPopup.d.ts +2 -1
- package/mobile/lib/ui-kit/Input/InputPopup.js +29 -1
- package/mobile/lib/ui-kit/Input/InputPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Input/useInputPopup.js +4 -3
- package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +15 -3
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/src/api/RetailAPI/doRequest.ts +6 -0
- package/mobile/src/api/RetailAPI/getGenderFromName.ts +7 -10
- package/mobile/src/api/RetailAPI/getTraceId.ts +6 -0
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -3
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
- package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +21 -7
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -0
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
- package/mobile/src/components/Depository/DepositoryItem.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
- package/mobile/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
- package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
- package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
- package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +14 -61
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -2
- package/mobile/src/hooks/useRetailFormStore.tsx +1 -0
- package/mobile/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
- package/mobile/src/ui-kit/Button/Button.tsx +60 -44
- package/mobile/src/ui-kit/Button/ButtonTitle.tsx +17 -0
- package/mobile/src/ui-kit/Button/SubmitButton.tsx +14 -0
- package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
- package/mobile/src/ui-kit/ControlStateProps.ts +0 -1
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +4 -3
- package/mobile/src/ui-kit/FormField/validators.ts +4 -4
- package/mobile/src/ui-kit/Icon/Icon.tsx +21 -15
- package/mobile/src/ui-kit/Icon/IconProps.ts +13 -0
- package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
- package/mobile/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
- package/mobile/src/ui-kit/Input/InputPopup.tsx +52 -18
- package/mobile/src/ui-kit/Input/useInputPopup.tsx +11 -3
- package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +40 -8
- package/package.json +1 -1
- package/src/api/RetailAPI/doRequest.ts +6 -0
- package/src/api/RetailAPI/getGenderFromName.ts +7 -10
- package/src/api/RetailAPI/getTraceId.ts +6 -0
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
- package/src/components/CardTransfer/CardTransfer.tsx +3 -3
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
- package/src/components/CreditCardForm/ReworkStatusContent.tsx +21 -7
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -0
- package/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
- package/src/components/Depository/DepositoryItem.tsx +2 -2
- package/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
- package/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
- package/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
- package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
- package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +1 -12
- package/src/components/RollupItem/RollupItem.tsx +14 -61
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/src/components/TariffsTable/TariffsTable.tsx +2 -2
- package/src/hooks/useRetailFormStore.tsx +1 -0
- package/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
- package/src/ui-kit/Button/Button.fixture.tsx +0 -8
- package/src/ui-kit/Button/Button.tsx +60 -44
- package/src/ui-kit/Button/ButtonTitle.tsx +17 -0
- package/src/ui-kit/Button/SubmitButton.tsx +14 -0
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
- package/src/ui-kit/ControlStateProps.ts +0 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
- package/src/ui-kit/Foldable/Foldable.tsx +4 -3
- package/src/ui-kit/FormField/validators.ts +4 -4
- package/src/ui-kit/Icon/Icon.tsx +21 -15
- package/src/ui-kit/Icon/IconProps.ts +13 -0
- package/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
- package/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
- package/src/ui-kit/Input/InputPopup.tsx +52 -18
- package/src/ui-kit/Input/useInputPopup.tsx +11 -3
- package/src/ui-kit/Loader/Loader.tsx +1 -1
- package/src/ui-kit/Sitemap/Sitemap.mobile.tsx +40 -8
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/bundle/components/RollupItem/getIconName.d.ts +0 -1
- package/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
- package/bundle/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
- package/bundle/ui-kit/Button/IconButton.d.ts +0 -10
- package/bundle/ui-kit/Button/useButton.d.ts +0 -2
- package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
- package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/dist/components/RollupItem/AccordionFoldButton.js +0 -11
- package/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/dist/components/RollupItem/getIconName.d.ts +0 -1
- package/dist/components/RollupItem/getIconName.js +0 -7
- package/dist/components/RollupItem/getIconName.js.map +0 -1
- package/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/dist/components/RollupItem/renderRoundedIcon.js +0 -6
- package/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js +0 -7
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
- package/dist/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
- package/dist/components/RollupItem/rollupIconVersion.mobile.js +0 -4
- package/dist/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
- package/dist/ui-kit/Button/IconButton.d.ts +0 -10
- package/dist/ui-kit/Button/IconButton.js +0 -13
- package/dist/ui-kit/Button/IconButton.js.map +0 -1
- package/dist/ui-kit/Button/useButton.d.ts +0 -2
- package/dist/ui-kit/Button/useButton.js +0 -16
- package/dist/ui-kit/Button/useButton.js.map +0 -1
- package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
- package/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
- package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/lib/components/RollupItem/AccordionFoldButton.js +0 -9
- package/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/lib/components/RollupItem/getIconName.d.ts +0 -1
- package/lib/components/RollupItem/getIconName.js +0 -4
- package/lib/components/RollupItem/getIconName.js.map +0 -1
- package/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/lib/components/RollupItem/renderRoundedIcon.js +0 -3
- package/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js +0 -4
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
- package/lib/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
- package/lib/components/RollupItem/rollupIconVersion.mobile.js +0 -2
- package/lib/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
- package/lib/ui-kit/Button/IconButton.d.ts +0 -10
- package/lib/ui-kit/Button/IconButton.js +0 -11
- package/lib/ui-kit/Button/IconButton.js.map +0 -1
- package/lib/ui-kit/Button/useButton.d.ts +0 -2
- package/lib/ui-kit/Button/useButton.js +0 -13
- package/lib/ui-kit/Button/useButton.js.map +0 -1
- package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
- package/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/mobile/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/mobile/bundle/components/RollupItem/getIconName.d.ts +0 -1
- package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/mobile/bundle/ui-kit/Button/IconButton.d.ts +0 -10
- package/mobile/bundle/ui-kit/Button/useButton.d.ts +0 -2
- package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/mobile/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js +0 -11
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/mobile/dist/components/RollupItem/getIconName.d.ts +0 -1
- package/mobile/dist/components/RollupItem/getIconName.js +0 -7
- package/mobile/dist/components/RollupItem/getIconName.js.map +0 -1
- package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js +0 -7
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/mobile/dist/ui-kit/Button/IconButton.d.ts +0 -10
- package/mobile/dist/ui-kit/Button/IconButton.js +0 -13
- package/mobile/dist/ui-kit/Button/IconButton.js.map +0 -1
- package/mobile/dist/ui-kit/Button/useButton.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/useButton.js +0 -16
- package/mobile/dist/ui-kit/Button/useButton.js.map +0 -1
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
- package/mobile/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js +0 -9
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
- package/mobile/lib/components/RollupItem/getIconName.d.ts +0 -1
- package/mobile/lib/components/RollupItem/getIconName.js +0 -4
- package/mobile/lib/components/RollupItem/getIconName.js.map +0 -1
- package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js +0 -4
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
- package/mobile/lib/ui-kit/Button/IconButton.d.ts +0 -10
- package/mobile/lib/ui-kit/Button/IconButton.js +0 -11
- package/mobile/lib/ui-kit/Button/IconButton.js.map +0 -1
- package/mobile/lib/ui-kit/Button/useButton.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/useButton.js +0 -13
- package/mobile/lib/ui-kit/Button/useButton.js.map +0 -1
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
- package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
- package/mobile/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
- package/mobile/src/components/RollupItem/getIconName.tsx +0 -6
- package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +0 -7
- package/mobile/src/ui-kit/Button/IconButton.tsx +0 -36
- package/mobile/src/ui-kit/Button/useButton.ts +0 -16
- package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
- package/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
- package/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
- package/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
- package/src/components/RollupItem/getIconName.tsx +0 -6
- package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +0 -7
- package/src/components/RollupItem/renderRoundedIcon.tsx +0 -5
- package/src/components/RollupItem/rollupIconVersion.mobile.tsx +0 -1
- package/src/ui-kit/Button/IconButton.tsx +0 -36
- package/src/ui-kit/Button/useButton.ts +0 -16
- package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
|
|
293
293
|
const isOnlyDigits = (str) => str && !/\D/.test(str);
|
|
294
294
|
|
|
295
|
-
const
|
|
295
|
+
const iconVersionStyle = {
|
|
296
296
|
'': '',
|
|
297
297
|
normal: '',
|
|
298
298
|
color: 'text-primary-main',
|
|
@@ -300,25 +300,30 @@
|
|
|
300
300
|
white: 'text-black',
|
|
301
301
|
gray: 'text-gray',
|
|
302
302
|
};
|
|
303
|
-
const
|
|
303
|
+
const sizeStyle = {
|
|
304
|
+
small: '16',
|
|
305
|
+
medium: '24',
|
|
306
|
+
large: '48',
|
|
307
|
+
xl: '78',
|
|
308
|
+
};
|
|
309
|
+
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', size, width = size && sizeStyle[size], height = width, }) => {
|
|
304
310
|
const router = useRouter();
|
|
305
311
|
const iconName = iconVersion === 'normal' ? `${name}.svg` : `sprites.svg#${name}`;
|
|
306
312
|
const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons/', iconName));
|
|
307
313
|
if (iconVersion === 'normal') {
|
|
308
314
|
// fix svg gradient color
|
|
309
|
-
return (jsx("img", { className: className, src: href, alt: alt, title: title, "aria-hidden": "true", width: width, height: height
|
|
315
|
+
return (jsx("img", { className: className, style: getInlineStyle(className, height), src: href, alt: alt, title: title, "aria-hidden": "true", width: width, height: height }));
|
|
310
316
|
}
|
|
311
|
-
return (jsx(Background, { className: className, children: jsxs("svg", { className: style(
|
|
317
|
+
return (jsx(Background, { className: className, children: jsxs("svg", { className: style(iconVersionStyle[iconVersion], {
|
|
318
|
+
'w-full h-full': !width,
|
|
312
319
|
invert: iconVersion === 'white',
|
|
313
320
|
}, imageClassName), width: width, height: height, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: href, xlinkHref: href })] }) }));
|
|
314
321
|
});
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
};
|
|
321
|
-
const getSvgSize = (width) => (width ? '' : 'w-full h-full');
|
|
322
|
+
// TODO Что то совсем не очень
|
|
323
|
+
const getInlineStyle = (className, height) => className?.includes('h-')
|
|
324
|
+
? {}
|
|
325
|
+
: { height: isOnlyDigits(height) ? `${height}px` : height, width: 'auto' };
|
|
326
|
+
// TODO И это тоже
|
|
322
327
|
const Background = JSX(({ className, children }) => className ? (jsx("div", { role: "img", className: className, children: children })) : (children));
|
|
323
328
|
|
|
324
329
|
const env = new Proxy({
|
|
@@ -1423,8 +1428,35 @@
|
|
|
1423
1428
|
|
|
1424
1429
|
const usePopupManager = () => useEmitterWithActions(defaultEventBus.emitter, 'popup');
|
|
1425
1430
|
|
|
1426
|
-
const
|
|
1431
|
+
const ARROW_DOWN_KEYBOARD_KEY_CODE = 'ArrowDown';
|
|
1432
|
+
const ARROW_UP_KEYBOARD_KEY_CODE = 'ArrowUp';
|
|
1433
|
+
const ENTER_KEYBOARD_KEY_CODE = 'Enter';
|
|
1434
|
+
const INITIAL_LIST_ITEM_ACTIVE = -1;
|
|
1435
|
+
const InputPopup = JSX(({ options, container, onChange }) => {
|
|
1436
|
+
const [listItemActive, setListItemActive] = useState(INITIAL_LIST_ITEM_ACTIVE);
|
|
1437
|
+
const onKeyDownHandler = (ev) => {
|
|
1438
|
+
const hintsListMaxIndex = options.length - 1;
|
|
1439
|
+
if (ev.key === ARROW_DOWN_KEYBOARD_KEY_CODE) {
|
|
1440
|
+
setListItemActive(listItemActive < hintsListMaxIndex ? listItemActive + 1 : 0);
|
|
1441
|
+
}
|
|
1442
|
+
else if (ev.key === ARROW_UP_KEYBOARD_KEY_CODE) {
|
|
1443
|
+
setListItemActive(listItemActive > 0 ? listItemActive - 1 : hintsListMaxIndex);
|
|
1444
|
+
}
|
|
1445
|
+
else if (ev.key === ENTER_KEYBOARD_KEY_CODE && options[listItemActive]) {
|
|
1446
|
+
ev.preventDefault();
|
|
1447
|
+
onChange(options[listItemActive]);
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
useEffect(() => {
|
|
1451
|
+
container.addEventListener('keydown', onKeyDownHandler);
|
|
1452
|
+
return () => container.removeEventListener('keydown', onKeyDownHandler);
|
|
1453
|
+
}, [listItemActive]);
|
|
1454
|
+
return (jsx("div", { className: "bg-white text-l overflow-y-auto overflow-x-hidden rounded-md shadow-2xl", role: "list", children: options?.map((item, key) => (jsx("div", { className: style('flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative', {
|
|
1455
|
+
'bg-main-divider': listItemActive === key,
|
|
1456
|
+
}), role: "listitem", onMouseDown: () => onChange(item), children: jsx("span", { className: "min-h-6", children: item.processedValue }) }, key.toString()))) }));
|
|
1457
|
+
});
|
|
1427
1458
|
|
|
1459
|
+
// eslint-disable-next-line max-lines-per-function
|
|
1428
1460
|
function useInputPopup({ isOpen, value, name, onChange, onDaDataChange, daDataQueryPrefix, }) {
|
|
1429
1461
|
const prevInputValue = useRef(value);
|
|
1430
1462
|
const currentInputValue = useRef(value);
|
|
@@ -1438,8 +1470,8 @@
|
|
|
1438
1470
|
const handleChange = useCallback((option) => {
|
|
1439
1471
|
close();
|
|
1440
1472
|
currentInputValue.current = option.processedValue;
|
|
1441
|
-
onChange
|
|
1442
|
-
onDaDataChange
|
|
1473
|
+
onChange?.(option.processedValue);
|
|
1474
|
+
onDaDataChange?.(option);
|
|
1443
1475
|
}, [close, onChange]);
|
|
1444
1476
|
const inputRef = useRef(null);
|
|
1445
1477
|
const getHintsList = useMemo(() => async (searchValue) => {
|
|
@@ -1472,7 +1504,7 @@
|
|
|
1472
1504
|
prevInputValue.current = value;
|
|
1473
1505
|
}
|
|
1474
1506
|
popup.open({
|
|
1475
|
-
popup: jsx(InputPopup, { options: hintsList, value: value, onChange: handleChange }),
|
|
1507
|
+
popup: (jsx(InputPopup, { options: hintsList, container: inputElement, value: value, onChange: handleChange })),
|
|
1476
1508
|
top: top + globalThis.scrollY + height,
|
|
1477
1509
|
left,
|
|
1478
1510
|
width,
|
|
@@ -2596,9 +2628,9 @@
|
|
|
2596
2628
|
const snilsValidator = (errorMsg) => validator(snilsValidate)(errorMsg);
|
|
2597
2629
|
const emailValidate = (email) => /^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(email);
|
|
2598
2630
|
const emailValidator = (errorMsg) => validator((_) => emailValidate(_))(errorMsg);
|
|
2599
|
-
const addressDaDataValidate = (address) => Boolean(address.region && address.city && address.house);
|
|
2631
|
+
const addressDaDataValidate = (address) => Boolean(address.region && (address.city || address.locality) && address.house);
|
|
2600
2632
|
const addressDaDataValidator = () => validator(addressDaDataValidate)(ADDRESS_ERROR_MESSAGE);
|
|
2601
|
-
const addressOrganizationValidator = () => validator((address) => Boolean(address.fiasCode && address.city && address.house))(ADDRESS_ERROR_MESSAGE);
|
|
2633
|
+
const addressOrganizationValidator = () => validator((address) => Boolean(address.fiasCode && (address.city || address.locality) && address.house))(ADDRESS_ERROR_MESSAGE);
|
|
2602
2634
|
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 && isCyrillic(_))(errorMsg ?? ERROR_MESSAGE);
|
|
2603
2635
|
const cyrillicPattern = /^[\u0400-\u04FF\d\s]+$/u;
|
|
2604
2636
|
const isCyrillic = (_ = '') => cyrillicPattern.test(_);
|
|
@@ -2826,40 +2858,21 @@
|
|
|
2826
2858
|
|
|
2827
2859
|
const renderTitle = (title) => title ? (jsx("div", { className: "@xl:text-center @xl:col-span-2 mb-m", children: jsx(Text, { size: "text-h6", children: title }) })) : null;
|
|
2828
2860
|
|
|
2829
|
-
const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true, size = 'big' }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
|
|
2830
|
-
'backdrop-blur': blur,
|
|
2831
|
-
}), children: jsx("div", { className: style('inline-block ', 'animate-spin rounded-full', 'border-solid border-current', 'border-r-transparent', size === 'small' ? 'border-4 h-8 w-8' : 'border-8 h-28 w-28', color), role: "status" }) })));
|
|
2832
|
-
|
|
2833
|
-
function useButton() {
|
|
2834
|
-
return (props) => ({
|
|
2835
|
-
...props,
|
|
2836
|
-
onClick: handlerDecorator(handleClick(props)),
|
|
2837
|
-
});
|
|
2838
|
-
}
|
|
2839
|
-
function handleClick({ disabled, onClick }) {
|
|
2840
|
-
return (ev) => {
|
|
2841
|
-
!disabled && onClick && onClick(ev);
|
|
2842
|
-
};
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
2861
|
const buttonStyleMap = {
|
|
2846
|
-
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
2847
|
-
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
2848
|
-
};
|
|
2849
|
-
const
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
const
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
'text-white bg-primary-active': active,
|
|
2858
|
-
'bg-main-gray text-main-disabled cursor-not-allowed': disabled || isLoading,
|
|
2862
|
+
primary: style('justify-center px-9 py-4', 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active', 'group-data-secondary:text-primary-main group-data-secondary:bg-white', 'group-data-secondary:hover:text-white group-data-secondary:hover:bg-primary-hover', 'group-data-secondary:active:bg-primary-active'),
|
|
2863
|
+
secondary: style('justify-center px-9 py-4', 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active', 'group-data-secondary:text-white group-data-secondary:bg-white/20', 'group-data-secondary:hover:bg-primary-hover', 'group-data-secondary:active:bg-primary-active'),
|
|
2864
|
+
};
|
|
2865
|
+
const embeddedStyle = style('group/btn-embedded', 'justify-between p-0', 'bg-transparent border border-transparent outline-none');
|
|
2866
|
+
const Button = JSX(({ className, type = 'button', version = 'primary', embedded, rounded = true, disabled, role, data, dataTheme, children, onClick, }) => {
|
|
2867
|
+
const handleClick = useCallback(handlerDecorator((ev) => {
|
|
2868
|
+
!disabled && onClick?.(ev);
|
|
2869
|
+
}), [disabled, onClick]);
|
|
2870
|
+
const aspectsAttrs = useMemo(() => getAspectsAttributes(data), [data]);
|
|
2871
|
+
return (jsx("button", { className: style('font-sans flex items-center gap-xs relative', !disabled && !embedded && buttonStyleMap[version], {
|
|
2872
|
+
[embeddedStyle]: embedded,
|
|
2859
2873
|
'rounded-md': rounded,
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
: '', className), type: type, role: role, onClick: onClick, children: [isLoading ? jsx(Loader, { blur: true, size: "small" }) : null, children] }));
|
|
2874
|
+
'bg-main-gray text-main-disabled cursor-not-allowed': disabled,
|
|
2875
|
+
}, className), type: type, role: role, "data-theme": dataTheme, ...aspectsAttrs, onClick: handleClick, children: children }));
|
|
2863
2876
|
});
|
|
2864
2877
|
|
|
2865
2878
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
|
|
@@ -2944,12 +2957,16 @@
|
|
|
2944
2957
|
return { ...formState, typeForm: { key: typeForm, text: '' } };
|
|
2945
2958
|
};
|
|
2946
2959
|
|
|
2947
|
-
const
|
|
2960
|
+
const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true, size = 'big' }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
|
|
2961
|
+
'backdrop-blur': blur,
|
|
2962
|
+
}), children: jsx("div", { className: style('inline-block', 'animate-spin rounded-full', 'border-solid border-current', 'border-r-transparent', size === 'small' ? 'border-4 h-8 w-8' : 'border-8 h-28 w-28', color), role: "status" }) })));
|
|
2948
2963
|
|
|
2949
|
-
const
|
|
2964
|
+
const SubmitButton$1 = JSX(({ isLoading, disabled, children, ...rest }) => (jsxs(Button, { type: "submit", disabled: isLoading || disabled, ...rest, children: [isLoading ? jsx(Loader, { blur: true, size: "small" }) : null, children] })));
|
|
2965
|
+
|
|
2966
|
+
const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target || '', className: "!text-left text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
|
|
2950
2967
|
|
|
2951
2968
|
const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
|
|
2952
|
-
const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })),
|
|
2969
|
+
const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
|
|
2953
2970
|
|
|
2954
2971
|
const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "\u0442\u0435\u043B\u0435\u0444\u043E\u043D 8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "\u043F\u043E\u0447\u0442\u0430 ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
|
|
2955
2972
|
|
|
@@ -3279,6 +3296,12 @@
|
|
|
3279
3296
|
const mapByIndex = (points, index) => points.map((_) => _.coords?.[index]);
|
|
3280
3297
|
const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
|
|
3281
3298
|
|
|
3299
|
+
const getTraceId = () => {
|
|
3300
|
+
const result = new Uint8Array(8);
|
|
3301
|
+
globalThis.crypto.getRandomValues(result);
|
|
3302
|
+
return result.reduce((acc, _) => `${acc}${_.toString(16).padStart(2, '0')}`, '');
|
|
3303
|
+
};
|
|
3304
|
+
|
|
3282
3305
|
const fetchRetailJSON = async (url, method, body) => {
|
|
3283
3306
|
try {
|
|
3284
3307
|
const response = await doRequest(url, method, body);
|
|
@@ -3290,10 +3313,14 @@
|
|
|
3290
3313
|
}
|
|
3291
3314
|
};
|
|
3292
3315
|
async function doRequest(url, method, body) {
|
|
3316
|
+
const traceId = getTraceId();
|
|
3293
3317
|
return globalThis?.fetch?.(`${RETAIL_API_BASE_URI}${url}`, {
|
|
3294
3318
|
method,
|
|
3295
3319
|
headers: {
|
|
3296
3320
|
'Content-Type': 'application/json',
|
|
3321
|
+
'X-B3-Sampled': '1',
|
|
3322
|
+
'X-B3-Spanid': traceId,
|
|
3323
|
+
'X-B3-Traceid': traceId,
|
|
3297
3324
|
...getAuthorizationHeaders(),
|
|
3298
3325
|
},
|
|
3299
3326
|
credentials: 'include',
|
|
@@ -3333,8 +3360,14 @@
|
|
|
3333
3360
|
|
|
3334
3361
|
const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
|
|
3335
3362
|
|
|
3363
|
+
const ButtonTitle = JSX(({ className, children }) => (jsx("span", { className: style('inline-flex items-center text-start gap-s group-hover/btn-embedded:text-primary-main', className), children: children })));
|
|
3364
|
+
|
|
3365
|
+
const ToggleIcon = JSX(({ isUnfolded, ...rest }) => (jsx(Icon, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', size: "small", iconVersion: "", ...rest })));
|
|
3366
|
+
|
|
3367
|
+
const DefaultFoldButton = JSX(({ className, isUnfolded, label = isUnfolded ? 'Скрыть' : 'Развернуть', embedded, ...rest }) => (jsxs(Button, { className: style({ 'text-h4': !embedded }, className), rounded: false, embedded: embedded, ...rest, children: [jsx(ButtonTitle, { children: label }), jsx(ToggleIcon, { isUnfolded: isUnfolded, iconVersion: embedded ? 'color' : '' })] })));
|
|
3368
|
+
|
|
3336
3369
|
// TODO Не особо полезно, в итоге
|
|
3337
|
-
const Foldable = JSX(({ className, children }) => (jsx("div", { className: style(className), role:
|
|
3370
|
+
const Foldable = JSX(({ className, role = 'group', children }) => (jsx("div", { className: style(className), role: role, children: children })));
|
|
3338
3371
|
|
|
3339
3372
|
function useResizeObserver(callback, deps) {
|
|
3340
3373
|
const ref = useRef(null);
|
|
@@ -3366,16 +3399,9 @@
|
|
|
3366
3399
|
return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden ${containerRef.current || !isUnfolded ? 'max-h-0' : ''} `, children: jsx("div", { className: className, ref: childrenWrapperRef, children: children }) }));
|
|
3367
3400
|
});
|
|
3368
3401
|
|
|
3369
|
-
const IconButton = JSX(({ className, name, text, data, onClick }) => {
|
|
3370
|
-
const aspectsAttrs = useMemo(() => getAspectsAttributes(data), [data]);
|
|
3371
|
-
return (jsxs("button", { className: style('text-primary-main flex justify-between items-center border-none px-m', text ? 'pt-lg' : 'py-2xs', className), type: "button", ...aspectsAttrs, onClick: onClick, children: [text ? jsx("div", { className: "pr-m", children: text }) : null, jsx(Icon, { className: "text-primary-text", name: name, width: "16", height: "16" })] }));
|
|
3372
|
-
});
|
|
3373
|
-
|
|
3374
|
-
const renderFoldButton$2 = ({ isUnfolded, onToggle }) => (jsx(IconButton, { className: "w-full border-b border-solid border-main-divider", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', text: isUnfolded ? 'Скрыть' : 'Подробнее', onClick: onToggle }));
|
|
3375
|
-
|
|
3376
3402
|
const FoldableCardContent = JSX(({ children }) => {
|
|
3377
3403
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
3378
|
-
return (jsxs(Foldable, { className: "block sm:hidden", children: [jsx(FoldableSection, { isUnfolded: isUnfolded, children: children }),
|
|
3404
|
+
return (jsxs("div", { children: [jsx("div", { className: "hidden sm:block", children: children }), jsxs(Foldable, { className: "block sm:hidden", children: [jsx(FoldableSection, { isUnfolded: isUnfolded, children: children }), jsx(DefaultFoldButton, { className: "w-full my-m mr-m border-b border-solid border-main-divider", label: isUnfolded ? 'Скрыть' : 'Подробнее', isUnfolded: isUnfolded, embedded: true, onClick: toggle })] })] }));
|
|
3379
3405
|
});
|
|
3380
3406
|
|
|
3381
3407
|
const getScheduleDescription = (workScheduleWeek) => {
|
|
@@ -3512,7 +3538,7 @@
|
|
|
3512
3538
|
return null;
|
|
3513
3539
|
}
|
|
3514
3540
|
const workScheduleWeek = getWorkScheduleWeek(branch.workSchedule);
|
|
3515
|
-
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: branch.name }), branch.address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: branch.address })] })) : null] }), renderCurrentDaySchedule(workScheduleWeek)] }), jsx(
|
|
3541
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: branch.name }), branch.address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: branch.address })] })) : null] }), renderCurrentDaySchedule(workScheduleWeek)] }), jsx(FoldableCardContent, { children: renderCardContent$1(branch) })] }, String(i)));
|
|
3516
3542
|
};
|
|
3517
3543
|
const renderCardContent$1 = ({ phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }) => {
|
|
3518
3544
|
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
@@ -4314,12 +4340,14 @@
|
|
|
4314
4340
|
|
|
4315
4341
|
const GENDERS = ['male', 'female'];
|
|
4316
4342
|
const getGenderFromName = async (name) => {
|
|
4317
|
-
const res = await
|
|
4343
|
+
const res = await getDaDataHints({
|
|
4344
|
+
url: '/suggest/fio',
|
|
4345
|
+
requestData: {
|
|
4346
|
+
parts: ['NAME'],
|
|
4347
|
+
},
|
|
4318
4348
|
query: name,
|
|
4319
|
-
count: 1,
|
|
4320
|
-
parts: ['NAME'],
|
|
4321
4349
|
});
|
|
4322
|
-
const gender = res
|
|
4350
|
+
const gender = res[0]?.data?.gender?.toLowerCase() || '';
|
|
4323
4351
|
return GENDERS.includes(gender) ? gender : '';
|
|
4324
4352
|
};
|
|
4325
4353
|
|
|
@@ -4455,7 +4483,7 @@
|
|
|
4455
4483
|
?.filter((_) => _.required)
|
|
4456
4484
|
?.some((_) => Boolean(withValidator(field(_?.name), validatorObj[_?.name]).error)), [inputs]);
|
|
4457
4485
|
const [isUnfolded, { toggle }] = useBool(true);
|
|
4458
|
-
return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(
|
|
4486
|
+
return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(Button, { embedded: true, onClick: toggle, children: jsx(ToggleIcon, { className: "p-2xs", iconVersion: "color", isUnfolded: isUnfolded }) })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
|
|
4459
4487
|
});
|
|
4460
4488
|
|
|
4461
4489
|
const renderInputs$2 = ({ field, inputs }) => {
|
|
@@ -4467,7 +4495,7 @@
|
|
|
4467
4495
|
restInputs: inputs.filter(({ name }) => !Object.keys(CONSENTS).includes(String(name))),
|
|
4468
4496
|
});
|
|
4469
4497
|
|
|
4470
|
-
const renderSubmitButton = (button, isSending) => (jsx(
|
|
4498
|
+
const renderSubmitButton = (button, isSending) => (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
4471
4499
|
|
|
4472
4500
|
const createDraftTask = async (body) => {
|
|
4473
4501
|
const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
|
|
@@ -4574,7 +4602,7 @@
|
|
|
4574
4602
|
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
4575
4603
|
}, []);
|
|
4576
4604
|
useEffect(handleCreateCaptcha, []);
|
|
4577
|
-
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 rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx(
|
|
4605
|
+
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 rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", 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-[300px]", 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-[310px] 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] }) }));
|
|
4578
4606
|
});
|
|
4579
4607
|
|
|
4580
4608
|
const Timer = JSX(({ time, setTime, className }) => {
|
|
@@ -5417,26 +5445,13 @@
|
|
|
5417
5445
|
|
|
5418
5446
|
const isOdd = (n) => n % 2 !== 0;
|
|
5419
5447
|
|
|
5420
|
-
const TextWithIcon = JSX(({ textNode, iconNode, tag, onClick, justifyContent = 'between', className, role, ...rest }) => {
|
|
5421
|
-
const Tag = tag;
|
|
5422
|
-
return (jsxs(Tag, { tag: tag, className: style('flex items-center w-full gap-1', justifyContent === 'between' ? 'justify-between' : 'justify-center', className), onClick: onClick, role: role, ...rest, children: [textNode ? jsx("div", { children: textNode }) : null, iconNode ? jsx("div", { children: iconNode }) : null] }));
|
|
5423
|
-
});
|
|
5424
|
-
|
|
5425
|
-
const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = 'pc', disabled = false, onClick }) => (jsx(TextWithIcon, { tag: "button", onClick: onClick, disabled: disabled, "data-theme": dataTheme, justifyContent: "center", role: "button", className: style('py-4 border border-transparent outline-none focus:border-primary-text space-x-s', disabled
|
|
5426
|
-
? 'bg-main-divider text-main-disabled hover:bg-main-divider'
|
|
5427
|
-
: 'bg-primary-main text-white hover:bg-primary-hove', className), textNode: jsx(Text, { size: "text-h4", children: label }), iconNode: icon ? (jsx(Img, { image: {
|
|
5428
|
-
icon,
|
|
5429
|
-
iconVersion: 'white',
|
|
5430
|
-
}, className: "my-auto", width: "20", height: "20" })) : null })));
|
|
5431
|
-
const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', label: isUnfolded ? 'Скрыть' : 'Развернуть', onClick: onToggle }));
|
|
5432
|
-
|
|
5433
5448
|
const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs';
|
|
5434
|
-
const GridBlocks = JSX(({ topItemsCount = 0, label
|
|
5449
|
+
const GridBlocks = JSX(({ topItemsCount = 0, label, block, blocksToRender = [], ...rest }) => {
|
|
5435
5450
|
const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
|
|
5436
5451
|
? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
|
|
5437
5452
|
: [blocksToRender, []];
|
|
5438
5453
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
5439
|
-
return (jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsxs(Foldable, { children: [jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsx(DefaultFoldButton, { className: style({ hidden: topItemsCount < 1 }),
|
|
5454
|
+
return (jsxs("div", { className: style('space-y-2xs', { hidden: !blocksToRender.length }), children: [jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsxs(Foldable, { children: [jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? jsx(AdTile, { className: "col-span-6", ...rest }) : null] }), jsx(DefaultFoldButton, { className: style('w-full', { hidden: topItemsCount < 1 }), label: label, isUnfolded: isUnfolded, disabled: !hiddenBlocks?.length, dataTheme: rest.options?.page?.colorPalette, onClick: toggle })] })] }));
|
|
5440
5455
|
});
|
|
5441
5456
|
|
|
5442
5457
|
const getBorderStyle = (showBorder = false) => showBorder
|
|
@@ -5837,7 +5852,7 @@
|
|
|
5837
5852
|
return icon ? (jsx("div", { style: {
|
|
5838
5853
|
width: `${widthAndHeight}px`,
|
|
5839
5854
|
height: `${widthAndHeight}px`,
|
|
5840
|
-
}, className: style('rounded-icon object-fit flex justify-center items-center', iconBgStyles[iconBgVersion], className), children: jsx(Icon, { ...rest, width: "54%",
|
|
5855
|
+
}, className: style('rounded-icon object-fit flex justify-center items-center', iconBgStyles[iconBgVersion], className), children: jsx(Icon, { ...rest, width: "54%", name: icon }) })) : null;
|
|
5841
5856
|
});
|
|
5842
5857
|
|
|
5843
5858
|
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => {
|
|
@@ -6594,7 +6609,7 @@
|
|
|
6594
6609
|
useEffect(() => {
|
|
6595
6610
|
setDisabled(amount <= 0);
|
|
6596
6611
|
}, [amount]);
|
|
6597
|
-
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(
|
|
6612
|
+
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] })] }));
|
|
6598
6613
|
});
|
|
6599
6614
|
|
|
6600
6615
|
const ITEMS_GAP = 16;
|
|
@@ -6792,10 +6807,10 @@
|
|
|
6792
6807
|
};
|
|
6793
6808
|
|
|
6794
6809
|
const CarouselTariffsCard = JSX(({ className = '', title, align = 'text-center', icon, button, visibleCellsCount = 1, cardCells = [], options, data, ...rest }) => {
|
|
6795
|
-
const cellsNode = cardCells.map(renderCardInfo);
|
|
6796
|
-
const [visibleCells, hiddenCells] = visibleCellsCount > 0
|
|
6810
|
+
const cellsNode = useMemo(() => cardCells.map(renderCardInfo), [cardCells]);
|
|
6811
|
+
const [visibleCells, hiddenCells] = useMemo(() => visibleCellsCount > 0
|
|
6797
6812
|
? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
|
|
6798
|
-
: [cellsNode, []];
|
|
6813
|
+
: [cellsNode, []], [visibleCellsCount, cellsNode]);
|
|
6799
6814
|
const [isVisible, setIsVisible] = useState(false);
|
|
6800
6815
|
useEffect(() => carouselTariffsCardEventBus.subscribe('fold', (event) => {
|
|
6801
6816
|
if (event && options?.parent && event.parent === options?.parent) {
|
|
@@ -6809,11 +6824,8 @@
|
|
|
6809
6824
|
parent: options?.parent,
|
|
6810
6825
|
});
|
|
6811
6826
|
}, [isVisible, options?.parent]);
|
|
6812
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [
|
|
6827
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [jsx(Img, { className: "self-center", image: icon }), title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsxs(Foldable, { children: [jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isVisible, children: hiddenCells })] }), cardCells.length >= visibleCellsCount ? (jsx(DefaultFoldButton, { className: "w-full mt-m", label: isVisible ? 'Скрыть' : 'Подробнее о тарифе', isUnfolded: isVisible, embedded: true, data: data, onClick: handleFold })) : null] })) : (jsx("div", { children: visibleCells }))] }));
|
|
6813
6828
|
});
|
|
6814
|
-
const FoldButton = JSX(({ data, isUnfolded, onClick }) => (jsx(IconButton, { className: "w-full", ...(isUnfolded
|
|
6815
|
-
? { name: 'ArrowUpIcon', text: 'Скрыть', data }
|
|
6816
|
-
: { name: 'ArrowDownIcon', text: 'Подробнее о тарифе' }), onClick: onClick })));
|
|
6817
6829
|
|
|
6818
6830
|
const PORTAL_NATURAL_URL = '/';
|
|
6819
6831
|
const UPDATING_INTERVAL = 60000 * 4;
|
|
@@ -6928,7 +6940,14 @@
|
|
|
6928
6940
|
|
|
6929
6941
|
const ReworkStatusContent$1 = JSX(() => {
|
|
6930
6942
|
const { statusInfo } = useRetailFormStore();
|
|
6931
|
-
|
|
6943
|
+
const isCourierDelivery = statusInfo?.methodObtain === 'courier';
|
|
6944
|
+
const infoAdditional = isCourierDelivery
|
|
6945
|
+
? [
|
|
6946
|
+
{
|
|
6947
|
+
description: statusInfo?.deliveryAddress,
|
|
6948
|
+
},
|
|
6949
|
+
]
|
|
6950
|
+
: [
|
|
6932
6951
|
{
|
|
6933
6952
|
label: 'Регион',
|
|
6934
6953
|
description: statusInfo?.regionRetail,
|
|
@@ -6937,7 +6956,10 @@
|
|
|
6937
6956
|
label: 'Адрес',
|
|
6938
6957
|
description: statusInfo?.addressRetail,
|
|
6939
6958
|
},
|
|
6940
|
-
]
|
|
6959
|
+
];
|
|
6960
|
+
return (jsx(CreditCardFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0432\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0434\u043B\u044F \u043F\u0440\u0438\u043D\u044F\u0442\u0438\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F", description: isCourierDelivery
|
|
6961
|
+
? ''
|
|
6962
|
+
: 'Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.', sectionAdditionalTitle: isCourierDelivery ? 'Адрес доставки' : 'В отделении Банка', sectionInfoAdditional: infoAdditional, sectionInfo: [
|
|
6941
6963
|
{
|
|
6942
6964
|
label: 'Основные документы:',
|
|
6943
6965
|
description: '- Паспорт РФ',
|
|
@@ -7052,7 +7074,7 @@
|
|
|
7052
7074
|
const StepsNavigationButtons$1 = JSX(({ step, isSending, onPrevStep }) => {
|
|
7053
7075
|
const isFirstStep = step === 0;
|
|
7054
7076
|
const isFinalStep = step === 5;
|
|
7055
|
-
return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(
|
|
7077
|
+
return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
7056
7078
|
});
|
|
7057
7079
|
|
|
7058
7080
|
const getAdditionalInfoData = (formData) => {
|
|
@@ -7334,6 +7356,7 @@
|
|
|
7334
7356
|
deliveryAddress: leadForm?.addressCourier?.fullAddress,
|
|
7335
7357
|
cardCategory: leadForm?.cardCategory?.text,
|
|
7336
7358
|
deliveryDate: leadForm?.deliveryDate,
|
|
7359
|
+
methodObtain: leadForm?.methodObtain,
|
|
7337
7360
|
};
|
|
7338
7361
|
retailFormStore.leadForm = initialState;
|
|
7339
7362
|
}
|
|
@@ -7929,7 +7952,7 @@
|
|
|
7929
7952
|
const StepsNavigationButtons = JSX(({ step, onPrevStep, isSending }) => {
|
|
7930
7953
|
const isFirstStep = step === 0;
|
|
7931
7954
|
const isFinalStep = step === 5;
|
|
7932
|
-
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(
|
|
7955
|
+
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
7933
7956
|
});
|
|
7934
7957
|
|
|
7935
7958
|
const PAYMENT_TYPE_DATA = {
|
|
@@ -8314,12 +8337,10 @@
|
|
|
8314
8337
|
|
|
8315
8338
|
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" }) })] })));
|
|
8316
8339
|
|
|
8317
|
-
const renderRoundedIcon = (icon, iconBgVersion) => (jsx(RoundedIcon, { ...icon, iconBgVersion: iconBgVersion, className: "shrink-0" }));
|
|
8318
|
-
|
|
8319
8340
|
const DepositoryItem = JSX(({ title, timestamp, publicId }) => {
|
|
8320
8341
|
const link = useLink();
|
|
8321
8342
|
const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
|
|
8322
|
-
return (jsxs("div", { className: "flex gap-3 items-center py-lg border-gray border-opacity-50 border-b", children: [
|
|
8343
|
+
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));
|
|
8323
8344
|
});
|
|
8324
8345
|
|
|
8325
8346
|
const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
|
|
@@ -8596,46 +8617,14 @@
|
|
|
8596
8617
|
return (jsx("li", { className: "list-none", children: jsx("a", { className: "hover:text-primary-main font-light", role: "link", href: href, target: target || '_self', onClick: onClick, ...getAspectsAttributes(dataFooter), children: text ? text : null }) }, String(i)));
|
|
8597
8618
|
};
|
|
8598
8619
|
|
|
8599
|
-
const AccordionFoldButton = JSX(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => (jsx(TextWithIcon, { tag: "button", className: style('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? jsx(Icon, { name: icon, iconVersion: "color", width: "24", height: "24" }) : null })));
|
|
8600
|
-
|
|
8601
|
-
const getFoldableStyles = (isMobile = false) => isMobile ? 'flex flex-wrap group-last:last:pb-0' : 'grid grid-cols-12 [&>*]:pb-m';
|
|
8602
|
-
|
|
8603
|
-
const getIconName = (isUnfolded = false, isMobile = false) => isMobile ? getMobileName(isUnfolded) : getDesktopName(isUnfolded);
|
|
8604
|
-
const getDesktopName = (isUnfolded = false) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
8605
|
-
const getMobileName = (isUnfolded = false) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
|
|
8606
|
-
|
|
8607
|
-
const RollupItem = UniBlock(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, foldButtonVersion = 'default',
|
|
8608
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8609
|
-
version, role, ...rest }) => {
|
|
8610
|
-
const isMobile = useMobileMode();
|
|
8611
|
-
const [isUnfolded, { toggle }] = useBool(isExpanded);
|
|
8612
|
-
const foldableSection = (jsx(FoldableSection, { className: style('gap-lg', getFoldableStyles(isMobile)), isUnfolded: isUnfolded, children: renderChildren({
|
|
8613
|
-
...rest,
|
|
8614
|
-
extraProps: { className: 'w-full', padding: 'p-0' },
|
|
8615
|
-
}) }));
|
|
8616
|
-
const foldButton = renderFoldButton$1({
|
|
8617
|
-
foldButtonVersion,
|
|
8618
|
-
label,
|
|
8619
|
-
labelIcon,
|
|
8620
|
-
labelIconBgVersion,
|
|
8621
|
-
isMobile,
|
|
8622
|
-
isUnfolded,
|
|
8623
|
-
onToggle: toggle,
|
|
8624
|
-
});
|
|
8625
|
-
return (jsx(BlockWrapper, { className: style('w-full border-0 border-b border-solid border-main-divider last:border-b-0', className), defaultPadding: "p-0", tag: "div", version: "transparent", role: role, ...rest, children: jsxs(Foldable, { children: [isFoldButtonOnTop ? foldButton : foldableSection, isFoldButtonOnTop ? foldableSection : foldButton] }) }));
|
|
8626
|
-
}, {
|
|
8627
|
-
childrenTypes: { exclude: ['RollupItem'] },
|
|
8628
|
-
});
|
|
8629
|
-
const renderFoldButton$1 = ({ foldButtonVersion, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, isMobile = false, onToggle, }) => {
|
|
8630
|
-
const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
|
|
8631
|
-
const icon = getIconName(isUnfolded, isMobile);
|
|
8632
|
-
return foldButtonVersion === 'accordion' ? (jsx(AccordionFoldButton, { label: label, labelIcon: labelIcon, labelIconBgVersion: labelIconBgVersion, icon: icon, onToggle: onToggle })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
8633
|
-
};
|
|
8634
|
-
|
|
8635
8620
|
const Sitemap = JSX(({ navigationItems }) => (jsx("div", { className: "w-full", role: "menu", children: renderTopItems(navigationItems) })));
|
|
8636
8621
|
const renderTopItems = (topItems) => topItems
|
|
8637
8622
|
?.filter((_) => _.icon?.icon)
|
|
8638
|
-
.map((item, i) => (jsx(
|
|
8623
|
+
.map((item, i) => (jsx(MobileTopItem, { className: "w-full border-0 border-b border-solid border-main-divider last:border-b-0", item: item }, String(i))));
|
|
8624
|
+
const MobileTopItem = JSX(({ className, item }) => {
|
|
8625
|
+
const [isUnfolded, { toggle }] = useBool(false);
|
|
8626
|
+
return (jsxs(Foldable, { className: className, role: "menuitem", children: [jsxs(Button, { className: style('w-full', item.icon?.icon ? 'py-xs' : 'py-lg'), embedded: true, onClick: toggle, children: [jsxs(ButtonTitle, { children: [jsx(RoundedIcon, { className: "shrink-0", ...item.icon }), jsx(Text, { size: "text-h6", font: "font-normal", children: item.text })] }), jsx(ToggleIcon, { iconVersion: "color", size: "medium", isUnfolded: isUnfolded })] }), jsx(FoldableSection, { className: "flex flex-wrap gap-lg group-last:last:pb-0", isUnfolded: isUnfolded, children: item.items ? jsx(LinkList, { items: item.items }) : null })] }));
|
|
8627
|
+
});
|
|
8639
8628
|
|
|
8640
8629
|
const Contacts = JSX(({ className = '', items = [] }) => items?.length ? (jsx("div", { className: style('space-y-m', className), children: items.map(renderContactsGroup) })) : null);
|
|
8641
8630
|
const renderContactsGroup = (item, i) => (jsxs("div", { className: "space-y-m", children: [jsx("div", { children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { className: "space-y-m", children: item.items?.map(renderContact) })] }, String(i)));
|
|
@@ -8999,10 +8988,8 @@
|
|
|
8999
8988
|
? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
|
|
9000
8989
|
: [filtersCheckbox, []];
|
|
9001
8990
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
9002
|
-
return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsxs(Foldable, { children: [jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] }),
|
|
8991
|
+
return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsxs(Foldable, { children: [jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] }), jsxs("div", { className: "flex space-x-lg", children: [onlyOffice ? (jsx(DefaultFoldButton, { label: isUnfolded ? 'Меньше фильтров' : 'Больше фильтров', isUnfolded: isUnfolded, embedded: true, onClick: toggle })) : null, jsxs(Button, { embedded: true, onClick: reset, children: [jsx(ButtonTitle, { children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }), jsx(Icon, { name: "CloseIcon", size: "small" })] })] })] }) })) : null }));
|
|
9003
8992
|
});
|
|
9004
|
-
// TODO Столько разных кнопок с иконками, но эта самая творчески-ударённая реализация))
|
|
9005
|
-
const renderFoldButton = (reset, onlyOffice = false) => ({ isUnfolded, onToggle }) => (jsxs("div", { className: "flex space-x-lg", children: [onlyOffice ? (jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", appendRight: jsx(Icon, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }), text: isUnfolded ? 'Меньше фильтров' : 'Больше фильтров', onClick: onToggle })) : null, jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, children: jsxs("div", { className: "flex items-center", children: ["\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", jsx(Icon, { name: "CloseIcon", width: "16", height: "16", className: "ml-2xs" })] }) })] }));
|
|
9006
8993
|
|
|
9007
8994
|
const renderButtonsGroup = (data, activeButton, onButtonClick) => {
|
|
9008
8995
|
const allButtonVersion = getVersion(activeButton === 'all');
|
|
@@ -9058,14 +9045,13 @@
|
|
|
9058
9045
|
},
|
|
9059
9046
|
{ label: 'Регистрационный номер', value: atmCode },
|
|
9060
9047
|
];
|
|
9061
|
-
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: capitalize(location) }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), jsx("div", { className: "whitespace-nowrap", children: jsx(Badge$1, { color: "green", children: capitalize(workTime) }) })] }), jsx(
|
|
9048
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: capitalize(location) }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), jsx("div", { className: "whitespace-nowrap", children: jsx(Badge$1, { color: "green", children: capitalize(workTime) }) })] }), jsx(FoldableCardContent, { children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map((item, key) => (jsx(CardCell, { ...item }, String(key)))) }) })] }, String(i)));
|
|
9062
9049
|
};
|
|
9063
9050
|
const getAtmPoint = ({ address = '', terminalType, atmCode = '' }) => {
|
|
9064
9051
|
const header = `${capitalize(terminalType)} №${atmCode}`;
|
|
9065
9052
|
const body = address.toUpperCase();
|
|
9066
9053
|
return { header, body };
|
|
9067
9054
|
};
|
|
9068
|
-
const renderInfo = (item, i) => jsx(CardCell, { ...item }, String(i));
|
|
9069
9055
|
|
|
9070
9056
|
const EMPTY_VALUE$2 = [];
|
|
9071
9057
|
function useAtms(regionCode) {
|
|
@@ -9117,7 +9103,7 @@
|
|
|
9117
9103
|
if (!workScheduleDescription) {
|
|
9118
9104
|
return null;
|
|
9119
9105
|
}
|
|
9120
|
-
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-yellow sm:border", children: [jsx("div", { className: "sm:flex sm:justify-between", children: jsxs("div", { children: [jsx(Text, { size: "text-h4", children: "\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u043E\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043C\u0435\u0441\u0442\u043E" }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }) }), jsx(
|
|
9106
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-yellow sm:border", children: [jsx("div", { className: "sm:flex sm:justify-between", children: jsxs("div", { children: [jsx(Text, { size: "text-h4", children: "\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u043E\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043C\u0435\u0441\u0442\u043E" }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }) }), jsx(FoldableCardContent, { children: renderCardContent(workScheduleDescription) })] }, String(i)));
|
|
9121
9107
|
};
|
|
9122
9108
|
const renderCardContent = (workScheduleDescription) => {
|
|
9123
9109
|
return (jsxs("div", { children: [jsxs(CardRow, { className: "flex", children: [jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432, \u0441\u0447\u0435\u0442\u043E\u0432, \u0432\u043A\u043B\u0430\u0434\u043E\u0432" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u043E\u0432\u0441\u043A\u0438\u0445 \u043A\u0430\u0440\u0442" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u0418\u043D\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u0438 \u043D\u0430\u043A\u043E\u043F\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u0411\u0435\u0437\u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0440\u0443\u0431\u043B\u044F\u0445, \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B \u0431\u0435\u0437 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0441\u0447\u0451\u0442\u0430" }) })] }), jsx("hr", { className: "text-main-divider pb-xl" }), jsx(CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", className: "max-w-none", children: jsx(Text, { children: workScheduleDescription }) })] }));
|
|
@@ -9177,6 +9163,22 @@
|
|
|
9177
9163
|
return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) }));
|
|
9178
9164
|
});
|
|
9179
9165
|
|
|
9166
|
+
const getFoldableStyles = (isMobile = false) => isMobile ? 'flex flex-wrap group-last:last:pb-0' : 'grid grid-cols-12 [&>*]:pb-m';
|
|
9167
|
+
|
|
9168
|
+
const RollupItem = UniBlock(({ className = '', isExpanded, isFoldButtonOnTop = true, foldButtonVersion = 'default', label,
|
|
9169
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9170
|
+
version, role, ...rest }) => {
|
|
9171
|
+
const isMobile = useMobileMode();
|
|
9172
|
+
const [isUnfolded, { toggle }] = useBool(isExpanded);
|
|
9173
|
+
const foldableSection = (jsx(FoldableSection, { className: style('gap-lg', getFoldableStyles(isMobile)), isUnfolded: isUnfolded, children: renderChildren({
|
|
9174
|
+
...rest,
|
|
9175
|
+
extraProps: { className: 'w-full', padding: 'p-0' },
|
|
9176
|
+
}) }));
|
|
9177
|
+
const isAccordion = foldButtonVersion === 'accordion';
|
|
9178
|
+
const foldButton = (jsx(DefaultFoldButton, { className: style('w-full', { 'text-h6 my-lg': isAccordion }), label: label, isUnfolded: isUnfolded, embedded: isAccordion, onClick: toggle }));
|
|
9179
|
+
return (jsx(BlockWrapper, { className: style('w-full border-0 border-b border-solid border-main-divider last:border-b-0', className), defaultPadding: "p-0", tag: "div", version: "transparent", role: role, ...rest, children: jsxs(Foldable, { children: [isFoldButtonOnTop ? foldButton : foldableSection, isFoldButtonOnTop ? foldableSection : foldButton] }) }));
|
|
9180
|
+
}, { childrenTypes: { exclude: ['RollupItem'] } });
|
|
9181
|
+
|
|
9180
9182
|
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: style(inputValidStyle.split(' ').filter((_) => _ !== 'rounded'), defaultCheckStyle, 'flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full', 'checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main'), type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange?.(_.target.value), role: "radio" }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
|
|
9181
9183
|
|
|
9182
9184
|
const RadioButtons = JSX(({ className = '' }) => {
|
|
@@ -9213,7 +9215,7 @@
|
|
|
9213
9215
|
const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
|
|
9214
9216
|
const price = calculatePrice(days, tariffs);
|
|
9215
9217
|
const imageDescription = 'На рисунке изображена пачка листов\nформата А4';
|
|
9216
|
-
return (jsxs("div", { className: "contents @xl:flex flex-col justify-between gap-xl order-2", children: [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 + ' ₽')] }), jsx("div", { className: "@xl:hidden order-3 mb-xs", children: jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: imageDescription }) }), 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: [jsx(
|
|
9218
|
+
return (jsxs("div", { className: "contents @xl:flex flex-col justify-between gap-xl order-2", children: [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 + ' ₽')] }), jsx("div", { className: "@xl:hidden order-3 mb-xs", children: jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: imageDescription }) }), 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: [jsx(Icon, { className: "@xl:h-60", name: "PackA4Icon" }), jsx("div", { className: "hidden @xl:inline opacity-80 whitespace-pre-line", children: jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-white", children: imageDescription }) })] })] }));
|
|
9217
9219
|
});
|
|
9218
9220
|
const renderTotal = (label, total) => (jsxs("div", { className: "flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start", children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: label }), jsx("span", { className: "text-l @xl:text-h3 text-primary-text", children: total })] }));
|
|
9219
9221
|
const calculatePrice = (days, tariffs) => {
|
|
@@ -9915,7 +9917,7 @@
|
|
|
9915
9917
|
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
9916
9918
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
9917
9919
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
9918
|
-
return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }),
|
|
9920
|
+
return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "w-full", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
|
|
9919
9921
|
});
|
|
9920
9922
|
|
|
9921
9923
|
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
|
|
@@ -10102,7 +10104,7 @@
|
|
|
10102
10104
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10103
10105
|
});
|
|
10104
10106
|
|
|
10105
|
-
const packageVersion = "0.14.
|
|
10107
|
+
const packageVersion = "0.14.753";
|
|
10106
10108
|
|
|
10107
10109
|
exports.Blocks = Blocks;
|
|
10108
10110
|
exports.ContentPage = ContentPage;
|