@redneckz/wildless-cms-uni-blocks 0.14.145 → 0.14.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +119 -74
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/AddressBranchField.d.ts +7 -0
- package/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
- package/bundle/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/bundle/components/ApplicationForm/RegionField.d.ts +6 -0
- package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
- package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
- package/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/bundle/hooks/usePremiumBranchesByRegions.d.ts +7 -0
- package/dist/components/ApplicationForm/AddressBranchField.d.ts +7 -0
- package/dist/components/ApplicationForm/AddressBranchField.js +16 -0
- package/dist/components/ApplicationForm/AddressBranchField.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +8 -4
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +73 -0
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/dist/components/ApplicationForm/RegionField.d.ts +6 -0
- package/dist/components/ApplicationForm/{renderRegion.js → RegionField.js} +7 -6
- package/dist/components/ApplicationForm/RegionField.js.map +1 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -2
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
- package/dist/components/ApplicationForm/renderRegionDepartment.js +3 -8
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/dist/components/ApplicationForm/renderUserData.js +1 -1
- package/dist/components/ApplicationForm/renderUserData.js.map +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/hooks/usePremiumBranchesByRegions.d.ts +7 -0
- package/dist/hooks/usePremiumBranchesByRegions.js +11 -0
- package/dist/hooks/usePremiumBranchesByRegions.js.map +1 -0
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/AddressBranchField.d.ts +7 -0
- package/lib/components/ApplicationForm/AddressBranchField.js +14 -0
- package/lib/components/ApplicationForm/AddressBranchField.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +4 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +8 -4
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +71 -0
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/lib/components/ApplicationForm/RegionField.d.ts +6 -0
- package/lib/components/ApplicationForm/{renderRegion.js → RegionField.js} +6 -4
- package/lib/components/ApplicationForm/RegionField.js.map +1 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -3
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +2 -2
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +2 -5
- package/lib/components/ApplicationForm/renderRegionDepartment.js +4 -9
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderUserData.js +1 -1
- package/lib/components/ApplicationForm/renderUserData.js.map +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/hooks/usePremiumBranchesByRegions.d.ts +7 -0
- package/lib/hooks/usePremiumBranchesByRegions.js +8 -0
- package/lib/hooks/usePremiumBranchesByRegions.js.map +1 -0
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +120 -75
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/AddressBranchField.d.ts +7 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/RegionField.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
- package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
- package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/mobile/bundle/hooks/usePremiumBranchesByRegions.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/AddressBranchField.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/AddressBranchField.js +16 -0
- package/mobile/dist/components/ApplicationForm/AddressBranchField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +8 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +73 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/RegionField.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/{renderRegion.js → RegionField.js} +7 -6
- package/mobile/dist/components/ApplicationForm/RegionField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -2
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +3 -8
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderUserData.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderUserData.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/hooks/usePremiumBranchesByRegions.d.ts +7 -0
- package/mobile/dist/hooks/usePremiumBranchesByRegions.js +11 -0
- package/mobile/dist/hooks/usePremiumBranchesByRegions.js.map +1 -0
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/AddressBranchField.d.ts +7 -0
- package/mobile/lib/components/ApplicationForm/AddressBranchField.js +14 -0
- package/mobile/lib/components/ApplicationForm/AddressBranchField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +8 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +71 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/RegionField.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/{renderRegion.js → RegionField.js} +6 -4
- package/mobile/lib/components/ApplicationForm/RegionField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -3
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +2 -2
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +4 -9
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderUserData.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderUserData.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/hooks/usePremiumBranchesByRegions.d.ts +7 -0
- package/mobile/lib/hooks/usePremiumBranchesByRegions.js +8 -0
- package/mobile/lib/hooks/usePremiumBranchesByRegions.js.map +1 -0
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/components/ApplicationForm/AddressBranchField.tsx +27 -0
- package/mobile/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +2 -6
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +16 -21
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +21 -25
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +20 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -11
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +61 -67
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +19 -22
- package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +13 -17
- package/mobile/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +151 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/mobile/src/components/ApplicationForm/RegionField.tsx +25 -0
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +13 -18
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +15 -18
- package/mobile/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +10 -17
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +19 -26
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +20 -25
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +32 -34
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +11 -31
- package/mobile/src/components/ApplicationForm/renderUserData.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -7
- package/mobile/src/hooks/usePremiumBranchesByRegions.ts +17 -0
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/AddressBranchField.tsx +27 -0
- package/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +2 -6
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +56 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +15 -0
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -3
- package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +16 -21
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -4
- package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -1
- package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +21 -25
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +20 -4
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -11
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +61 -67
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +19 -22
- package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +13 -17
- package/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +151 -0
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
- package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/src/components/ApplicationForm/RegionField.tsx +25 -0
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +13 -18
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +15 -18
- package/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +10 -17
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +19 -26
- package/src/components/ApplicationForm/renderCreditParameters.tsx +20 -25
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +32 -34
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +11 -31
- package/src/components/ApplicationForm/renderUserData.tsx +1 -1
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -7
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/hooks/usePremiumBranchesByRegions.ts +17 -0
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
- package/bundle/components/ApplicationForm/renderRegion.d.ts +0 -10
- package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
- package/dist/components/ApplicationForm/renderIndividualsFields.js +0 -12
- package/dist/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
- package/dist/components/ApplicationForm/renderRegion.d.ts +0 -10
- package/dist/components/ApplicationForm/renderRegion.js.map +0 -1
- package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
- package/lib/components/ApplicationForm/renderIndividualsFields.js +0 -9
- package/lib/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
- package/lib/components/ApplicationForm/renderRegion.d.ts +0 -9
- package/lib/components/ApplicationForm/renderRegion.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +0 -10
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +0 -12
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +0 -10
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +0 -9
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +0 -10
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +0 -1
- package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +0 -33
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +0 -36
- package/src/components/ApplicationForm/renderIndividualsFields.tsx +0 -33
- package/src/components/ApplicationForm/renderRegion.tsx +0 -36
package/bundle/bundle.umd.js
CHANGED
|
@@ -906,14 +906,14 @@
|
|
|
906
906
|
return response.json();
|
|
907
907
|
};
|
|
908
908
|
|
|
909
|
-
const EMPTY_VALUE$
|
|
909
|
+
const EMPTY_VALUE$4 = {};
|
|
910
910
|
const DEFAULT_PATH_DIR = '/wcms-resources';
|
|
911
911
|
function useSWRResource(filename, options = {}) {
|
|
912
|
-
const { fallback = EMPTY_VALUE$
|
|
912
|
+
const { fallback = EMPTY_VALUE$4, pathDir = DEFAULT_PATH_DIR } = options;
|
|
913
913
|
const { data } = useAsyncData(filename ? `${pathDir}/${filename}.json` : null, fetchJSONUnsafe, {
|
|
914
914
|
fallback,
|
|
915
915
|
});
|
|
916
|
-
return data || EMPTY_VALUE$
|
|
916
|
+
return data || EMPTY_VALUE$4;
|
|
917
917
|
}
|
|
918
918
|
|
|
919
919
|
const useAdTile = (sourceBook = 'reklamnaya-plitka') => {
|
|
@@ -1010,13 +1010,6 @@
|
|
|
1010
1010
|
const isValidationSuccess = (info) => !info?.length;
|
|
1011
1011
|
const validator = (predicate) => (message) => (_) => predicate(_) ? [] : [message];
|
|
1012
1012
|
|
|
1013
|
-
const REGIONS_URL$1 = '/api/v1/regions';
|
|
1014
|
-
const EMPTY_VALUE$4 = [];
|
|
1015
|
-
function useGetRegions() {
|
|
1016
|
-
const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
|
|
1017
|
-
return data || EMPTY_VALUE$4;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
1013
|
const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), 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-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
|
|
1021
1014
|
|
|
1022
1015
|
const formStyle$1 = 'container space-y-lg';
|
|
@@ -1032,7 +1025,7 @@
|
|
|
1032
1025
|
};
|
|
1033
1026
|
};
|
|
1034
1027
|
|
|
1035
|
-
const ApplicationFieldsetLayout = JSX(({ title,
|
|
1028
|
+
const ApplicationFieldsetLayout = JSX(({ title, children }) => (jsxs("fieldset", { className: "grid @xl:flex @xl:justify-between gap-lg border-b border-b-main-divider @xl:border-none", children: [title ? (jsx("legend", { className: "w-full", children: jsx(Heading, { title: title, headingType: "h6", className: "@xl:text-center" }) })) : null, children] })));
|
|
1036
1029
|
const formChildrenStyle = '@xl:w-1/2 space-y-s';
|
|
1037
1030
|
|
|
1038
1031
|
const Input = JSX(({ key, className = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, isTextarea = false, }) => {
|
|
@@ -1091,7 +1084,7 @@
|
|
|
1091
1084
|
const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
|
|
1092
1085
|
const checkboxValidator = validator((_) => typeof _ === 'boolean' && _)(ERROR_MESSAGE);
|
|
1093
1086
|
|
|
1094
|
-
const renderAcquiringDataOrganization = (field, title) => (
|
|
1087
|
+
const renderAcquiringDataOrganization = (field, title) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438*", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E*", ...withValidator(field('name'), nameValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) })] })] }));
|
|
1095
1088
|
|
|
1096
1089
|
const ACQUIRING_TYPES = [
|
|
1097
1090
|
{
|
|
@@ -1112,6 +1105,12 @@
|
|
|
1112
1105
|
},
|
|
1113
1106
|
];
|
|
1114
1107
|
|
|
1108
|
+
const REGIONS_URL$1 = '/api/v1/regions';
|
|
1109
|
+
function useRegions() {
|
|
1110
|
+
const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
|
|
1111
|
+
return data || [];
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1115
1114
|
function useBool(defaultValue = false) {
|
|
1116
1115
|
const [value, setValue] = useState(defaultValue);
|
|
1117
1116
|
const setTrue = useCallback(() => setValue(true), []);
|
|
@@ -1208,7 +1207,7 @@
|
|
|
1208
1207
|
onClose: handleClose,
|
|
1209
1208
|
iconVersion,
|
|
1210
1209
|
});
|
|
1211
|
-
return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-8 flex items-center overflow-hidden text-ellipsis
|
|
1210
|
+
return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-8 flex items-center overflow-hidden text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
|
|
1212
1211
|
});
|
|
1213
1212
|
const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
|
|
1214
1213
|
const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
@@ -1216,12 +1215,12 @@
|
|
|
1216
1215
|
|
|
1217
1216
|
const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), renderErrorText(error)] })));
|
|
1218
1217
|
|
|
1219
|
-
|
|
1220
|
-
|
|
1218
|
+
const RegionField = JSX(({ field }) => {
|
|
1219
|
+
const regions = useRegions();
|
|
1221
1220
|
return (jsx(SelectControl, { className: "w-full", label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
|
|
1222
|
-
};
|
|
1221
|
+
});
|
|
1223
1222
|
|
|
1224
|
-
const renderAcquiringRegion = ({ field, title
|
|
1223
|
+
const renderAcquiringRegion = ({ field, title }) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES, ...withValidator(field('acquiringType'), defaultValidator) }) }), jsx("div", { className: formChildrenStyle, children: jsx(RegionField, { field: field }) })] }));
|
|
1225
1224
|
|
|
1226
1225
|
const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), text ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })) : null] })));
|
|
1227
1226
|
|
|
@@ -1259,7 +1258,7 @@
|
|
|
1259
1258
|
|
|
1260
1259
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
1261
1260
|
|
|
1262
|
-
const initialFormState$
|
|
1261
|
+
const initialFormState$a = {
|
|
1263
1262
|
acquiringType: { key: 'trade', text: 'Торговый эквайринг' },
|
|
1264
1263
|
fullName: '',
|
|
1265
1264
|
inn: '',
|
|
@@ -1295,10 +1294,9 @@
|
|
|
1295
1294
|
};
|
|
1296
1295
|
isValidationSuccess(acquiringValidator(formState)) && onSubmit(submitData, false);
|
|
1297
1296
|
}, [onSubmit]);
|
|
1298
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1299
|
-
const regions = useGetRegions();
|
|
1297
|
+
const [, { field, ...formProps }] = useForm(initialFormState$a, handleSubmit);
|
|
1300
1298
|
const isSlideCheckboxes = getSlideCheckboxes(field('acquiringType').value?.key);
|
|
1301
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({
|
|
1299
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), isSlideCheckboxes ? renderSlideCheckboxes(field) : null, renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1302
1300
|
});
|
|
1303
1301
|
const getSlideCheckboxes = (type) => type === 'all' || type === 'trade';
|
|
1304
1302
|
|
|
@@ -1332,7 +1330,7 @@
|
|
|
1332
1330
|
|
|
1333
1331
|
const CheckboxWithError = JSX(({ className, text, value, key, disabled, error, onChange }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(Checkbox, { text: text, value: value, disabled: disabled, onChange: onChange }, key), renderErrorText(error)] })));
|
|
1334
1332
|
|
|
1335
|
-
const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex flex-col lg:flex-row w-full justify-between items-baseline", children: [jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u0441 ", link: link })] }), renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)] }), renderSubmitButton(button)] }));
|
|
1333
|
+
const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u0441 ", link: link })] }), renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)] }), renderSubmitButton(button)] }));
|
|
1336
1334
|
|
|
1337
1335
|
const formatDate = (date, toTimeStamp = false) => {
|
|
1338
1336
|
if (typeof date === 'string') {
|
|
@@ -1494,9 +1492,9 @@
|
|
|
1494
1492
|
name: '',
|
|
1495
1493
|
middleName: '',
|
|
1496
1494
|
};
|
|
1497
|
-
const renderUserData = (field, isBirthday = true) => (jsxs("div", { children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), isBirthday ? (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) })) : null] }));
|
|
1495
|
+
const renderUserData = (field, isBirthday = true) => (jsxs("div", { className: "space-y-s", children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), isBirthday ? (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) })) : null] }));
|
|
1498
1496
|
|
|
1499
|
-
const initialFormState$
|
|
1497
|
+
const initialFormState$9 = {
|
|
1500
1498
|
...initialUserFormState,
|
|
1501
1499
|
typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
|
|
1502
1500
|
phone: '',
|
|
@@ -1525,13 +1523,13 @@
|
|
|
1525
1523
|
};
|
|
1526
1524
|
isValidationSuccess(feedbackValidator$2(formState)) && onSubmit(submitData, true);
|
|
1527
1525
|
}, [onSubmit]);
|
|
1528
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1529
|
-
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, {
|
|
1526
|
+
const [, { field, ...formProps }] = useForm(initialFormState$9, handleSubmit);
|
|
1527
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, true), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(CheckboxWithError, { ...withValidator(field('isClient'), checkboxValidator), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1530
1528
|
});
|
|
1531
1529
|
|
|
1532
|
-
const renderBusinessCardDataOrganization = (field) => (
|
|
1530
|
+
const renderBusinessCardDataOrganization = (field) => (jsxs(ApplicationFieldsetLayout, { children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
|
|
1533
1531
|
|
|
1534
|
-
const initialFormState$
|
|
1532
|
+
const initialFormState$8 = {
|
|
1535
1533
|
name: '',
|
|
1536
1534
|
phone: '',
|
|
1537
1535
|
inn: '',
|
|
@@ -1558,12 +1556,11 @@
|
|
|
1558
1556
|
phone: formatPhone(phone),
|
|
1559
1557
|
});
|
|
1560
1558
|
}, [onSubmit]);
|
|
1561
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1562
|
-
|
|
1563
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1(regions, field), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1559
|
+
const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
|
|
1560
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsx(RegionField, { field: field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1564
1561
|
});
|
|
1565
1562
|
|
|
1566
|
-
const initialFormState$
|
|
1563
|
+
const initialFormState$7 = {
|
|
1567
1564
|
...initialUserFormState,
|
|
1568
1565
|
typeForm: { key: 'CORRUPTION', text: 'Факты коррупции' },
|
|
1569
1566
|
phone: '',
|
|
@@ -1592,9 +1589,8 @@
|
|
|
1592
1589
|
};
|
|
1593
1590
|
isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
|
|
1594
1591
|
}, [onSubmit]);
|
|
1595
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1596
|
-
|
|
1597
|
-
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false), renderRegion$1(regions, field), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1592
|
+
const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
|
|
1593
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false), jsx(RegionField, { field: field }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1598
1594
|
});
|
|
1599
1595
|
|
|
1600
1596
|
const BRANCHES_URL = '/api/v1/branches';
|
|
@@ -1615,7 +1611,7 @@
|
|
|
1615
1611
|
const MAX_CREDIT_TERM = 180;
|
|
1616
1612
|
const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
|
|
1617
1613
|
|
|
1618
|
-
const renderCreditDataOrganization = (field, title) => (
|
|
1614
|
+
const renderCreditDataOrganization = (field, title) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...withValidator(field('annualRevenue'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
|
|
1619
1615
|
|
|
1620
1616
|
const useNormalizedInput = (props, { normalize, format }) => {
|
|
1621
1617
|
const { value, onFocus, onBlur, onChange } = props;
|
|
@@ -1675,14 +1671,9 @@
|
|
|
1675
1671
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
1676
1672
|
const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
1677
1673
|
|
|
1678
|
-
const renderCreditParameters = (field, title) => (
|
|
1674
|
+
const renderCreditParameters = (field, title) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') }) }), jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') }) })] }));
|
|
1679
1675
|
|
|
1680
|
-
const
|
|
1681
|
-
key: branchCode,
|
|
1682
|
-
text: address,
|
|
1683
|
-
})), ...withValidator(field('department'), defaultValidator) }) }) }));
|
|
1684
|
-
|
|
1685
|
-
const initialFormState$5 = {
|
|
1676
|
+
const initialFormState$6 = {
|
|
1686
1677
|
amount: MIN_CREDIT_AMOUNT,
|
|
1687
1678
|
term: 12,
|
|
1688
1679
|
fullName: '',
|
|
@@ -1692,7 +1683,7 @@
|
|
|
1692
1683
|
mail: '',
|
|
1693
1684
|
annualRevenue: '',
|
|
1694
1685
|
};
|
|
1695
|
-
const creditValidator = objectValidator({
|
|
1686
|
+
const creditValidator$1 = objectValidator({
|
|
1696
1687
|
fullName: defaultValidator,
|
|
1697
1688
|
annualRevenue: defaultValidator,
|
|
1698
1689
|
inn: innValidator,
|
|
@@ -1704,7 +1695,7 @@
|
|
|
1704
1695
|
const ApplicationFormCredit = JSX(({ button, link, onSubmit }) => {
|
|
1705
1696
|
const handleSubmit = useCallback((formState) => {
|
|
1706
1697
|
const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } = formState;
|
|
1707
|
-
isValidationSuccess(creditValidator(formState)) &&
|
|
1698
|
+
isValidationSuccess(creditValidator$1(formState)) &&
|
|
1708
1699
|
onSubmit({
|
|
1709
1700
|
typeForm: 'cred',
|
|
1710
1701
|
fullName,
|
|
@@ -1717,13 +1708,15 @@
|
|
|
1717
1708
|
partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
|
|
1718
1709
|
});
|
|
1719
1710
|
}, [onSubmit]);
|
|
1720
|
-
const [formState, { field, ...formProps }] = useForm(initialFormState$
|
|
1721
|
-
const regions = useGetRegions();
|
|
1711
|
+
const [formState, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
|
|
1722
1712
|
const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
|
|
1723
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderCreditParameters(field, 'Параметры'), renderCreditDataOrganization(field, 'Данные организации'),
|
|
1713
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderCreditParameters(field, 'Параметры'), renderCreditDataOrganization(field, 'Данные организации'), jsxs(ApplicationFieldsetLayout, { title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", children: [jsx("div", { className: formChildrenStyle, children: jsx(RegionField, { field: field }) }), jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
|
|
1714
|
+
key: branchCode,
|
|
1715
|
+
text: address,
|
|
1716
|
+
})), ...withValidator(field('department'), defaultValidator) }) })] }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1724
1717
|
});
|
|
1725
1718
|
|
|
1726
|
-
const initialFormState$
|
|
1719
|
+
const initialFormState$5 = {
|
|
1727
1720
|
name: '',
|
|
1728
1721
|
phone: '',
|
|
1729
1722
|
};
|
|
@@ -1741,8 +1734,8 @@
|
|
|
1741
1734
|
phone: formatPhone(phone),
|
|
1742
1735
|
});
|
|
1743
1736
|
}, [onSubmit]);
|
|
1744
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1745
|
-
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C",
|
|
1737
|
+
const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
|
|
1738
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
|
|
1746
1739
|
});
|
|
1747
1740
|
|
|
1748
1741
|
const FEEDBACK_TYPES = [
|
|
@@ -1845,7 +1838,7 @@
|
|
|
1845
1838
|
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
1846
1839
|
};
|
|
1847
1840
|
|
|
1848
|
-
const initialFormState$
|
|
1841
|
+
const initialFormState$4 = {
|
|
1849
1842
|
...initialUserFormState,
|
|
1850
1843
|
typeForm: { key: 'FEEDBACK', text: 'Задать вопрос по продуктам и услугам' },
|
|
1851
1844
|
serviceDirection: { key: 'Физическое лицо' },
|
|
@@ -1869,12 +1862,11 @@
|
|
|
1869
1862
|
handleSubmitIndividual(feedbackFormState, onSubmit);
|
|
1870
1863
|
}
|
|
1871
1864
|
}, [onSubmit]);
|
|
1872
|
-
const [formState, { field, ...formProps }] = useForm(initialFormState$
|
|
1873
|
-
const regions = useGetRegions();
|
|
1874
|
-
const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
|
|
1865
|
+
const [formState, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
|
|
1875
1866
|
const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
|
|
1876
1867
|
const isLegalEntity = getLegalEntity(field('typeForm').value?.key, field('serviceDirection').value?.key);
|
|
1877
|
-
|
|
1868
|
+
const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
|
|
1869
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...withValidator(field('typeForm'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...withValidator(field('serviceDirection'), defaultValidator) })) : null, jsx(RegionField, { field: field }), isQualityService ? (jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: addressByBranch.map(({ branchCode = '', address = '' }) => ({
|
|
1878
1870
|
key: branchCode,
|
|
1879
1871
|
text: address,
|
|
1880
1872
|
})), ...withValidator(field('addressBranch'), defaultValidator) })) : null, renderUserData(field, true), isLegalEntity ? (jsxs("div", { children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') })] })) : null, jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430*", options: FEEDBACK_METHOD, ...withValidator(field('feedbackMethod'), defaultValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), isQualityService ? (jsxs("div", { children: [jsx(PhoneInputControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...field('secondaryPhone') }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') }), jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })] })) : (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) })), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
@@ -1893,7 +1885,7 @@
|
|
|
1893
1885
|
return (jsxs("div", { className: "container space-y-s", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
|
|
1894
1886
|
});
|
|
1895
1887
|
|
|
1896
|
-
const initialFormState$
|
|
1888
|
+
const initialFormState$3 = {
|
|
1897
1889
|
...initialUserFormState,
|
|
1898
1890
|
phone: '',
|
|
1899
1891
|
email: '',
|
|
@@ -1924,11 +1916,11 @@
|
|
|
1924
1916
|
product: product || '',
|
|
1925
1917
|
}, true);
|
|
1926
1918
|
}, [onSubmit]);
|
|
1927
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1928
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [
|
|
1919
|
+
const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
|
|
1920
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] })] }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }));
|
|
1929
1921
|
});
|
|
1930
1922
|
|
|
1931
|
-
const initialFormState$
|
|
1923
|
+
const initialFormState$2 = {
|
|
1932
1924
|
...initialUserFormState,
|
|
1933
1925
|
typeForm: { key: 'SELFCOLLECTION', text: 'Самоинкассация' },
|
|
1934
1926
|
fullName: '',
|
|
@@ -1951,10 +1943,68 @@
|
|
|
1951
1943
|
};
|
|
1952
1944
|
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
1953
1945
|
}, [onSubmit]);
|
|
1954
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1955
|
-
|
|
1956
|
-
|
|
1946
|
+
const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
|
|
1947
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0424\u0418\u041E*", ...withValidator(field('fullName'), defaultValidator) }), jsx(RegionField, { field: field }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
|
|
1948
|
+
});
|
|
1949
|
+
|
|
1950
|
+
const REGIONS_URL = '/api/v1/premiumBranchesByRegions';
|
|
1951
|
+
function usePremiumBranchesByRegions() {
|
|
1952
|
+
const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
|
|
1953
|
+
return data || [];
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
const SERVICE_TYPES = [
|
|
1957
|
+
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
1958
|
+
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
1959
|
+
];
|
|
1960
|
+
const initialFormState$1 = {
|
|
1961
|
+
typeForm: SERVICE_TYPES[0],
|
|
1962
|
+
...initialUserFormState,
|
|
1963
|
+
email: '',
|
|
1964
|
+
phone: '',
|
|
1965
|
+
comment: '',
|
|
1966
|
+
consentDataProcessing: false,
|
|
1967
|
+
};
|
|
1968
|
+
const creditValidator = objectValidator({
|
|
1969
|
+
typeForm: defaultValidator,
|
|
1970
|
+
surname: defaultValidator,
|
|
1971
|
+
name: nameValidator,
|
|
1972
|
+
phone: phoneValidator,
|
|
1973
|
+
email: defaultValidator,
|
|
1974
|
+
addressBranch: defaultValidator,
|
|
1975
|
+
consentDataProcessing: checkboxValidator,
|
|
1976
|
+
});
|
|
1977
|
+
const ApplicationFormUltraPremium = JSX(({ button, link, onSubmit, defaultType = 'PREMIUMSERVICE' }) => {
|
|
1978
|
+
const handleSubmit = useCallback((formState) => {
|
|
1979
|
+
const { surname, name, middleName, email, comment, consentDataProcessing } = formState;
|
|
1980
|
+
const submitData = {
|
|
1981
|
+
typeForm: formState.typeForm.key,
|
|
1982
|
+
surname,
|
|
1983
|
+
name,
|
|
1984
|
+
middleName,
|
|
1985
|
+
phoneNumber: formatPhone(formState.phone),
|
|
1986
|
+
email,
|
|
1987
|
+
addressBranch: formState.addressBranch?.key,
|
|
1988
|
+
comment,
|
|
1989
|
+
consentDataProcessing,
|
|
1990
|
+
};
|
|
1991
|
+
console.log(submitData);
|
|
1992
|
+
isValidationSuccess(creditValidator(formState)) && onSubmit(submitData, true);
|
|
1993
|
+
}, [onSubmit]);
|
|
1994
|
+
const [formState, { field, ...formProps }] = useForm({ ...initialFormState$1, typeForm: getDefaultFormType(defaultType) }, handleSubmit);
|
|
1995
|
+
const branchByRegions = usePremiumBranchesByRegions();
|
|
1996
|
+
const regions = branchByRegions.map(({ region }) => ({
|
|
1997
|
+
key: region,
|
|
1998
|
+
text: region,
|
|
1999
|
+
}));
|
|
2000
|
+
const regionKey = formState?.region?.key;
|
|
2001
|
+
const addressBranches = branchByRegions.find((_) => _?.region === regionKey)?.branches;
|
|
2002
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { title: "\u0412\u0430\u0448\u0438 \u0434\u0430\u043D\u043D\u044B\u0435", children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", options: SERVICE_TYPES, ...withValidator(field('typeForm'), defaultValidator) })] })] }), jsxs(ApplicationFieldsetLayout, { title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", children: [jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions, ...withValidator(field('region'), defaultValidator) }) }), jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { className: "w-full", label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", options: (addressBranches || []).map(({ address = '' }) => ({
|
|
2003
|
+
key: address,
|
|
2004
|
+
text: address,
|
|
2005
|
+
})), ...withValidator(field('addressBranch'), defaultValidator) }) })] }), jsx(InputControl, { ...field('comment'), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439, \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0438 \u043F\u0440\u043E\u0447\u0435\u0435", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }));
|
|
1957
2006
|
});
|
|
2007
|
+
const getDefaultFormType = (defaultType) => SERVICE_TYPES.find((_) => _.key === defaultType);
|
|
1958
2008
|
|
|
1959
2009
|
const renderContacts = () => (jsxs("div", { className: "flex 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": "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": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] }));
|
|
1960
2010
|
|
|
@@ -1962,7 +2012,7 @@
|
|
|
1962
2012
|
|
|
1963
2013
|
const renderQuestionsInterested = (field) => {
|
|
1964
2014
|
const { value, onChange } = field('vedTypes');
|
|
1965
|
-
return (jsx(ApplicationFieldsetLayout, {
|
|
2015
|
+
return (jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: "gap-xl grid @xl:flex @xl:items-center", children: [jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: (_) => onChange && onChange(_) })] }) }));
|
|
1966
2016
|
};
|
|
1967
2017
|
|
|
1968
2018
|
const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
|
|
@@ -2020,7 +2070,7 @@
|
|
|
2020
2070
|
isValidationSuccess(getValidator(vedTypes)(formState)) && onSubmit(data);
|
|
2021
2071
|
}, [onSubmit]);
|
|
2022
2072
|
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
2023
|
-
const regions =
|
|
2073
|
+
const regions = useRegions();
|
|
2024
2074
|
const textField = field('text');
|
|
2025
2075
|
return (jsxs("form", { className: "container space-y-lg", onSubmit: formProps.onSubmit, children: [renderQuestionsInterested(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderWedDataOrganization({ field, regions }), renderTextarea({
|
|
2026
2076
|
textField,
|
|
@@ -2041,6 +2091,7 @@
|
|
|
2041
2091
|
ApplicationFormAntiFraud,
|
|
2042
2092
|
ApplicationFormCorruption,
|
|
2043
2093
|
ApplicationFormSelfCollection,
|
|
2094
|
+
ApplicationFormUltraPremium,
|
|
2044
2095
|
};
|
|
2045
2096
|
|
|
2046
2097
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
@@ -4325,12 +4376,6 @@
|
|
|
4325
4376
|
? 'text-primary-main'
|
|
4326
4377
|
: style(flat ? 'text-primary-text' : 'text-secondary-text', 'hover:text-primary-main'), 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
4327
4378
|
|
|
4328
|
-
const REGIONS_URL = '/api/v1/regions';
|
|
4329
|
-
function useRegions() {
|
|
4330
|
-
const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
|
|
4331
|
-
return data || [];
|
|
4332
|
-
}
|
|
4333
|
-
|
|
4334
4379
|
const groupBy = (list, keyGetter) => {
|
|
4335
4380
|
const result = new Map();
|
|
4336
4381
|
for (const item of list) {
|
|
@@ -5477,7 +5522,7 @@
|
|
|
5477
5522
|
selectedBoxSize: '',
|
|
5478
5523
|
days: DEFAULT_DAYS,
|
|
5479
5524
|
});
|
|
5480
|
-
const regions =
|
|
5525
|
+
const regions = useRegions();
|
|
5481
5526
|
const selectedRegion = normalizeSelectedRegion(safeDepositState.selectedRegion, regions);
|
|
5482
5527
|
const branches = useSafeBoxes(selectedRegion);
|
|
5483
5528
|
const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
@@ -5525,7 +5570,7 @@
|
|
|
5525
5570
|
const lineOpacity = getLineOpacity(showLines);
|
|
5526
5571
|
const paddingX = getPaddingX(steps.length);
|
|
5527
5572
|
const isMainButton = Boolean(buttons?.every((b) => b?.text));
|
|
5528
|
-
return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: AlignStyles }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
|
|
5573
|
+
return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: AlignStyles }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg flex flex-col justify-center", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
|
|
5529
5574
|
});
|
|
5530
5575
|
const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
|
|
5531
5576
|
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
@@ -6074,7 +6119,7 @@
|
|
|
6074
6119
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
6075
6120
|
}
|
|
6076
6121
|
|
|
6077
|
-
const packageVersion = "0.14.
|
|
6122
|
+
const packageVersion = "0.14.146";
|
|
6078
6123
|
|
|
6079
6124
|
exports.Blocks = Blocks;
|
|
6080
6125
|
exports.ContentPage = ContentPage;
|