@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
|
@@ -914,14 +914,14 @@
|
|
|
914
914
|
return response.json();
|
|
915
915
|
};
|
|
916
916
|
|
|
917
|
-
const EMPTY_VALUE$
|
|
917
|
+
const EMPTY_VALUE$4 = {};
|
|
918
918
|
const DEFAULT_PATH_DIR = '/wcms-resources';
|
|
919
919
|
function useSWRResource(filename, options = {}) {
|
|
920
|
-
const { fallback = EMPTY_VALUE$
|
|
920
|
+
const { fallback = EMPTY_VALUE$4, pathDir = DEFAULT_PATH_DIR } = options;
|
|
921
921
|
const { data } = useAsyncData(filename ? `${pathDir}/${filename}.json` : null, fetchJSONUnsafe, {
|
|
922
922
|
fallback,
|
|
923
923
|
});
|
|
924
|
-
return data || EMPTY_VALUE$
|
|
924
|
+
return data || EMPTY_VALUE$4;
|
|
925
925
|
}
|
|
926
926
|
|
|
927
927
|
const useAdTile = (sourceBook = 'reklamnaya-plitka') => {
|
|
@@ -1018,13 +1018,6 @@
|
|
|
1018
1018
|
const isValidationSuccess = (info) => !info?.length;
|
|
1019
1019
|
const validator = (predicate) => (message) => (_) => predicate(_) ? [] : [message];
|
|
1020
1020
|
|
|
1021
|
-
const REGIONS_URL$1 = '/api/v1/regions';
|
|
1022
|
-
const EMPTY_VALUE$4 = [];
|
|
1023
|
-
function useGetRegions() {
|
|
1024
|
-
const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
|
|
1025
|
-
return data || EMPTY_VALUE$4;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
1021
|
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] })));
|
|
1029
1022
|
|
|
1030
1023
|
const formStyle$1 = 'container space-y-lg';
|
|
@@ -1040,7 +1033,7 @@
|
|
|
1040
1033
|
};
|
|
1041
1034
|
};
|
|
1042
1035
|
|
|
1043
|
-
const ApplicationFieldsetLayout = JSX(({ title,
|
|
1036
|
+
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] })));
|
|
1044
1037
|
const formChildrenStyle = '@xl:w-1/2 space-y-s';
|
|
1045
1038
|
|
|
1046
1039
|
const Input = JSX(({ key, className = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, isTextarea = false, }) => {
|
|
@@ -1099,7 +1092,7 @@
|
|
|
1099
1092
|
const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
|
|
1100
1093
|
const checkboxValidator = validator((_) => typeof _ === 'boolean' && _)(ERROR_MESSAGE);
|
|
1101
1094
|
|
|
1102
|
-
const renderAcquiringDataOrganization = (field, title) => (
|
|
1095
|
+
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) })] })] }));
|
|
1103
1096
|
|
|
1104
1097
|
const ACQUIRING_TYPES = [
|
|
1105
1098
|
{
|
|
@@ -1120,6 +1113,12 @@
|
|
|
1120
1113
|
},
|
|
1121
1114
|
];
|
|
1122
1115
|
|
|
1116
|
+
const REGIONS_URL$1 = '/api/v1/regions';
|
|
1117
|
+
function useRegions() {
|
|
1118
|
+
const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
|
|
1119
|
+
return data || [];
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1123
1122
|
function useBool(defaultValue = false) {
|
|
1124
1123
|
const [value, setValue] = useState(defaultValue);
|
|
1125
1124
|
const setTrue = useCallback(() => setValue(true), []);
|
|
@@ -1216,7 +1215,7 @@
|
|
|
1216
1215
|
onClose: handleClose,
|
|
1217
1216
|
iconVersion,
|
|
1218
1217
|
});
|
|
1219
|
-
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
|
|
1218
|
+
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] })] }));
|
|
1220
1219
|
});
|
|
1221
1220
|
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;
|
|
1222
1221
|
const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
@@ -1224,12 +1223,12 @@
|
|
|
1224
1223
|
|
|
1225
1224
|
const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), renderErrorText(error)] })));
|
|
1226
1225
|
|
|
1227
|
-
|
|
1228
|
-
|
|
1226
|
+
const RegionField = JSX(({ field }) => {
|
|
1227
|
+
const regions = useRegions();
|
|
1229
1228
|
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) }));
|
|
1230
|
-
};
|
|
1229
|
+
});
|
|
1231
1230
|
|
|
1232
|
-
const renderAcquiringRegion = ({ field, title
|
|
1231
|
+
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 }) })] }));
|
|
1233
1232
|
|
|
1234
1233
|
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] })));
|
|
1235
1234
|
|
|
@@ -1267,7 +1266,7 @@
|
|
|
1267
1266
|
|
|
1268
1267
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
1269
1268
|
|
|
1270
|
-
const initialFormState$
|
|
1269
|
+
const initialFormState$a = {
|
|
1271
1270
|
acquiringType: { key: 'trade', text: 'Торговый эквайринг' },
|
|
1272
1271
|
fullName: '',
|
|
1273
1272
|
inn: '',
|
|
@@ -1303,10 +1302,9 @@
|
|
|
1303
1302
|
};
|
|
1304
1303
|
isValidationSuccess(acquiringValidator(formState)) && onSubmit(submitData, false);
|
|
1305
1304
|
}, [onSubmit]);
|
|
1306
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1307
|
-
const regions = useGetRegions();
|
|
1305
|
+
const [, { field, ...formProps }] = useForm(initialFormState$a, handleSubmit);
|
|
1308
1306
|
const isSlideCheckboxes = getSlideCheckboxes(field('acquiringType').value?.key);
|
|
1309
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({
|
|
1307
|
+
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 })] }));
|
|
1310
1308
|
});
|
|
1311
1309
|
const getSlideCheckboxes = (type) => type === 'all' || type === 'trade';
|
|
1312
1310
|
|
|
@@ -1340,7 +1338,7 @@
|
|
|
1340
1338
|
|
|
1341
1339
|
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)] })));
|
|
1342
1340
|
|
|
1343
|
-
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)] }));
|
|
1341
|
+
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)] }));
|
|
1344
1342
|
|
|
1345
1343
|
const formatDate = (date, toTimeStamp = false) => {
|
|
1346
1344
|
if (typeof date === 'string') {
|
|
@@ -1502,9 +1500,9 @@
|
|
|
1502
1500
|
name: '',
|
|
1503
1501
|
middleName: '',
|
|
1504
1502
|
};
|
|
1505
|
-
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] }));
|
|
1503
|
+
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] }));
|
|
1506
1504
|
|
|
1507
|
-
const initialFormState$
|
|
1505
|
+
const initialFormState$9 = {
|
|
1508
1506
|
...initialUserFormState,
|
|
1509
1507
|
typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
|
|
1510
1508
|
phone: '',
|
|
@@ -1533,13 +1531,13 @@
|
|
|
1533
1531
|
};
|
|
1534
1532
|
isValidationSuccess(feedbackValidator$2(formState)) && onSubmit(submitData, true);
|
|
1535
1533
|
}, [onSubmit]);
|
|
1536
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1537
|
-
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, {
|
|
1534
|
+
const [, { field, ...formProps }] = useForm(initialFormState$9, handleSubmit);
|
|
1535
|
+
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)] }) }) }));
|
|
1538
1536
|
});
|
|
1539
1537
|
|
|
1540
|
-
const renderBusinessCardDataOrganization = (field) => (
|
|
1538
|
+
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) })] })] }));
|
|
1541
1539
|
|
|
1542
|
-
const initialFormState$
|
|
1540
|
+
const initialFormState$8 = {
|
|
1543
1541
|
name: '',
|
|
1544
1542
|
phone: '',
|
|
1545
1543
|
inn: '',
|
|
@@ -1566,12 +1564,11 @@
|
|
|
1566
1564
|
phone: formatPhone(phone),
|
|
1567
1565
|
});
|
|
1568
1566
|
}, [onSubmit]);
|
|
1569
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1570
|
-
|
|
1571
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1(regions, field), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1567
|
+
const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
|
|
1568
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsx(RegionField, { field: field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1572
1569
|
});
|
|
1573
1570
|
|
|
1574
|
-
const initialFormState$
|
|
1571
|
+
const initialFormState$7 = {
|
|
1575
1572
|
...initialUserFormState,
|
|
1576
1573
|
typeForm: { key: 'CORRUPTION', text: 'Факты коррупции' },
|
|
1577
1574
|
phone: '',
|
|
@@ -1600,9 +1597,8 @@
|
|
|
1600
1597
|
};
|
|
1601
1598
|
isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
|
|
1602
1599
|
}, [onSubmit]);
|
|
1603
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1604
|
-
|
|
1605
|
-
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)] }) }) }));
|
|
1600
|
+
const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
|
|
1601
|
+
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)] }) }) }));
|
|
1606
1602
|
});
|
|
1607
1603
|
|
|
1608
1604
|
const BRANCHES_URL = '/api/v1/branches';
|
|
@@ -1623,7 +1619,7 @@
|
|
|
1623
1619
|
const MAX_CREDIT_TERM = 180;
|
|
1624
1620
|
const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
|
|
1625
1621
|
|
|
1626
|
-
const renderCreditDataOrganization = (field, title) => (
|
|
1622
|
+
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) })] })] }));
|
|
1627
1623
|
|
|
1628
1624
|
const useNormalizedInput = (props, { normalize, format }) => {
|
|
1629
1625
|
const { value, onFocus, onBlur, onChange } = props;
|
|
@@ -1683,14 +1679,9 @@
|
|
|
1683
1679
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
1684
1680
|
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)))) }));
|
|
1685
1681
|
|
|
1686
|
-
const renderCreditParameters = (field, title) => (
|
|
1682
|
+
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') }) })] }));
|
|
1687
1683
|
|
|
1688
|
-
const
|
|
1689
|
-
key: branchCode,
|
|
1690
|
-
text: address,
|
|
1691
|
-
})), ...withValidator(field('department'), defaultValidator) }) }) }));
|
|
1692
|
-
|
|
1693
|
-
const initialFormState$5 = {
|
|
1684
|
+
const initialFormState$6 = {
|
|
1694
1685
|
amount: MIN_CREDIT_AMOUNT,
|
|
1695
1686
|
term: 12,
|
|
1696
1687
|
fullName: '',
|
|
@@ -1700,7 +1691,7 @@
|
|
|
1700
1691
|
mail: '',
|
|
1701
1692
|
annualRevenue: '',
|
|
1702
1693
|
};
|
|
1703
|
-
const creditValidator = objectValidator({
|
|
1694
|
+
const creditValidator$1 = objectValidator({
|
|
1704
1695
|
fullName: defaultValidator,
|
|
1705
1696
|
annualRevenue: defaultValidator,
|
|
1706
1697
|
inn: innValidator,
|
|
@@ -1712,7 +1703,7 @@
|
|
|
1712
1703
|
const ApplicationFormCredit = JSX(({ button, link, onSubmit }) => {
|
|
1713
1704
|
const handleSubmit = useCallback((formState) => {
|
|
1714
1705
|
const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } = formState;
|
|
1715
|
-
isValidationSuccess(creditValidator(formState)) &&
|
|
1706
|
+
isValidationSuccess(creditValidator$1(formState)) &&
|
|
1716
1707
|
onSubmit({
|
|
1717
1708
|
typeForm: 'cred',
|
|
1718
1709
|
fullName,
|
|
@@ -1725,13 +1716,15 @@
|
|
|
1725
1716
|
partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
|
|
1726
1717
|
});
|
|
1727
1718
|
}, [onSubmit]);
|
|
1728
|
-
const [formState, { field, ...formProps }] = useForm(initialFormState$
|
|
1729
|
-
const regions = useGetRegions();
|
|
1719
|
+
const [formState, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
|
|
1730
1720
|
const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
|
|
1731
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderCreditParameters(field, 'Параметры'), renderCreditDataOrganization(field, 'Данные организации'),
|
|
1721
|
+
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 = '' }) => ({
|
|
1722
|
+
key: branchCode,
|
|
1723
|
+
text: address,
|
|
1724
|
+
})), ...withValidator(field('department'), defaultValidator) }) })] }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1732
1725
|
});
|
|
1733
1726
|
|
|
1734
|
-
const initialFormState$
|
|
1727
|
+
const initialFormState$5 = {
|
|
1735
1728
|
name: '',
|
|
1736
1729
|
phone: '',
|
|
1737
1730
|
};
|
|
@@ -1749,8 +1742,8 @@
|
|
|
1749
1742
|
phone: formatPhone(phone),
|
|
1750
1743
|
});
|
|
1751
1744
|
}, [onSubmit]);
|
|
1752
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1753
|
-
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",
|
|
1745
|
+
const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
|
|
1746
|
+
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 })] }) }) }));
|
|
1754
1747
|
});
|
|
1755
1748
|
|
|
1756
1749
|
const FEEDBACK_TYPES = [
|
|
@@ -1853,7 +1846,7 @@
|
|
|
1853
1846
|
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
1854
1847
|
};
|
|
1855
1848
|
|
|
1856
|
-
const initialFormState$
|
|
1849
|
+
const initialFormState$4 = {
|
|
1857
1850
|
...initialUserFormState,
|
|
1858
1851
|
typeForm: { key: 'FEEDBACK', text: 'Задать вопрос по продуктам и услугам' },
|
|
1859
1852
|
serviceDirection: { key: 'Физическое лицо' },
|
|
@@ -1877,12 +1870,11 @@
|
|
|
1877
1870
|
handleSubmitIndividual(feedbackFormState, onSubmit);
|
|
1878
1871
|
}
|
|
1879
1872
|
}, [onSubmit]);
|
|
1880
|
-
const [formState, { field, ...formProps }] = useForm(initialFormState$
|
|
1881
|
-
const regions = useGetRegions();
|
|
1882
|
-
const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
|
|
1873
|
+
const [formState, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
|
|
1883
1874
|
const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
|
|
1884
1875
|
const isLegalEntity = getLegalEntity(field('typeForm').value?.key, field('serviceDirection').value?.key);
|
|
1885
|
-
|
|
1876
|
+
const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
|
|
1877
|
+
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 = '' }) => ({
|
|
1886
1878
|
key: branchCode,
|
|
1887
1879
|
text: address,
|
|
1888
1880
|
})), ...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)] }) }) }));
|
|
@@ -1901,7 +1893,7 @@
|
|
|
1901
1893
|
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] }));
|
|
1902
1894
|
});
|
|
1903
1895
|
|
|
1904
|
-
const initialFormState$
|
|
1896
|
+
const initialFormState$3 = {
|
|
1905
1897
|
...initialUserFormState,
|
|
1906
1898
|
phone: '',
|
|
1907
1899
|
email: '',
|
|
@@ -1932,11 +1924,11 @@
|
|
|
1932
1924
|
product: product || '',
|
|
1933
1925
|
}, true);
|
|
1934
1926
|
}, [onSubmit]);
|
|
1935
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1936
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [
|
|
1927
|
+
const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
|
|
1928
|
+
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)] }));
|
|
1937
1929
|
});
|
|
1938
1930
|
|
|
1939
|
-
const initialFormState$
|
|
1931
|
+
const initialFormState$2 = {
|
|
1940
1932
|
...initialUserFormState,
|
|
1941
1933
|
typeForm: { key: 'SELFCOLLECTION', text: 'Самоинкассация' },
|
|
1942
1934
|
fullName: '',
|
|
@@ -1959,10 +1951,68 @@
|
|
|
1959
1951
|
};
|
|
1960
1952
|
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
1961
1953
|
}, [onSubmit]);
|
|
1962
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1963
|
-
|
|
1964
|
-
|
|
1954
|
+
const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
|
|
1955
|
+
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 })] }) }) }));
|
|
1956
|
+
});
|
|
1957
|
+
|
|
1958
|
+
const REGIONS_URL = '/api/v1/premiumBranchesByRegions';
|
|
1959
|
+
function usePremiumBranchesByRegions() {
|
|
1960
|
+
const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
|
|
1961
|
+
return data || [];
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
const SERVICE_TYPES = [
|
|
1965
|
+
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
1966
|
+
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
1967
|
+
];
|
|
1968
|
+
const initialFormState$1 = {
|
|
1969
|
+
typeForm: SERVICE_TYPES[0],
|
|
1970
|
+
...initialUserFormState,
|
|
1971
|
+
email: '',
|
|
1972
|
+
phone: '',
|
|
1973
|
+
comment: '',
|
|
1974
|
+
consentDataProcessing: false,
|
|
1975
|
+
};
|
|
1976
|
+
const creditValidator = objectValidator({
|
|
1977
|
+
typeForm: defaultValidator,
|
|
1978
|
+
surname: defaultValidator,
|
|
1979
|
+
name: nameValidator,
|
|
1980
|
+
phone: phoneValidator,
|
|
1981
|
+
email: defaultValidator,
|
|
1982
|
+
addressBranch: defaultValidator,
|
|
1983
|
+
consentDataProcessing: checkboxValidator,
|
|
1984
|
+
});
|
|
1985
|
+
const ApplicationFormUltraPremium = JSX(({ button, link, onSubmit, defaultType = 'PREMIUMSERVICE' }) => {
|
|
1986
|
+
const handleSubmit = useCallback((formState) => {
|
|
1987
|
+
const { surname, name, middleName, email, comment, consentDataProcessing } = formState;
|
|
1988
|
+
const submitData = {
|
|
1989
|
+
typeForm: formState.typeForm.key,
|
|
1990
|
+
surname,
|
|
1991
|
+
name,
|
|
1992
|
+
middleName,
|
|
1993
|
+
phoneNumber: formatPhone(formState.phone),
|
|
1994
|
+
email,
|
|
1995
|
+
addressBranch: formState.addressBranch?.key,
|
|
1996
|
+
comment,
|
|
1997
|
+
consentDataProcessing,
|
|
1998
|
+
};
|
|
1999
|
+
console.log(submitData);
|
|
2000
|
+
isValidationSuccess(creditValidator(formState)) && onSubmit(submitData, true);
|
|
2001
|
+
}, [onSubmit]);
|
|
2002
|
+
const [formState, { field, ...formProps }] = useForm({ ...initialFormState$1, typeForm: getDefaultFormType(defaultType) }, handleSubmit);
|
|
2003
|
+
const branchByRegions = usePremiumBranchesByRegions();
|
|
2004
|
+
const regions = branchByRegions.map(({ region }) => ({
|
|
2005
|
+
key: region,
|
|
2006
|
+
text: region,
|
|
2007
|
+
}));
|
|
2008
|
+
const regionKey = formState?.region?.key;
|
|
2009
|
+
const addressBranches = branchByRegions.find((_) => _?.region === regionKey)?.branches;
|
|
2010
|
+
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 = '' }) => ({
|
|
2011
|
+
key: address,
|
|
2012
|
+
text: address,
|
|
2013
|
+
})), ...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)] }));
|
|
1965
2014
|
});
|
|
2015
|
+
const getDefaultFormType = (defaultType) => SERVICE_TYPES.find((_) => _.key === defaultType);
|
|
1966
2016
|
|
|
1967
2017
|
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" })] })] }));
|
|
1968
2018
|
|
|
@@ -1970,7 +2020,7 @@
|
|
|
1970
2020
|
|
|
1971
2021
|
const renderQuestionsInterested = (field) => {
|
|
1972
2022
|
const { value, onChange } = field('vedTypes');
|
|
1973
|
-
return (jsx(ApplicationFieldsetLayout, {
|
|
2023
|
+
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(_) })] }) }));
|
|
1974
2024
|
};
|
|
1975
2025
|
|
|
1976
2026
|
const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
|
|
@@ -2028,7 +2078,7 @@
|
|
|
2028
2078
|
isValidationSuccess(getValidator(vedTypes)(formState)) && onSubmit(data);
|
|
2029
2079
|
}, [onSubmit]);
|
|
2030
2080
|
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
2031
|
-
const regions =
|
|
2081
|
+
const regions = useRegions();
|
|
2032
2082
|
const textField = field('text');
|
|
2033
2083
|
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({
|
|
2034
2084
|
textField,
|
|
@@ -2049,6 +2099,7 @@
|
|
|
2049
2099
|
ApplicationFormAntiFraud,
|
|
2050
2100
|
ApplicationFormCorruption,
|
|
2051
2101
|
ApplicationFormSelfCollection,
|
|
2102
|
+
ApplicationFormUltraPremium,
|
|
2052
2103
|
};
|
|
2053
2104
|
|
|
2054
2105
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
@@ -4768,7 +4819,7 @@
|
|
|
4768
4819
|
selectedBoxSize: '',
|
|
4769
4820
|
days: DEFAULT_DAYS,
|
|
4770
4821
|
});
|
|
4771
|
-
const regions =
|
|
4822
|
+
const regions = useRegions();
|
|
4772
4823
|
const selectedRegion = normalizeSelectedRegion(safeDepositState.selectedRegion, regions);
|
|
4773
4824
|
const branches = useSafeBoxes(selectedRegion);
|
|
4774
4825
|
const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
@@ -4824,8 +4875,8 @@
|
|
|
4824
4875
|
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
4825
4876
|
const isImg = Boolean(step?.icon?.src);
|
|
4826
4877
|
const iconAreaSize = STEPS_SIZE_MAP[size][isImg ? 'image' : 'icon'];
|
|
4827
|
-
const
|
|
4828
|
-
return (jsx(BlockWrapper, { className: style(iconAreaSize,
|
|
4878
|
+
const containerVersion = isImg ? stepVersion === 'transparent' : stepVersion;
|
|
4879
|
+
return (jsx(BlockWrapper, { className: style(iconAreaSize, 'z-10 mr-s flex justify-center content-center rounded-md'), defaultPadding: "", version: containerVersion, children: jsx("span", { className: "flex max-w-full max-h-full items-center justify-center", children: isIcon(step?.icon) ? (jsx(Img, { image: { ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }, imageClassName: "max-w-full max-h-full", width: getIconSizeStyle(size), height: getIconSizeStyle(size) })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : getIconTextStyle(stepVersion)), children: i + 1 })) }) }));
|
|
4829
4880
|
};
|
|
4830
4881
|
const getIconSizeStyle = (size) => (size === 'normal' ? '38' : '24');
|
|
4831
4882
|
|
|
@@ -5294,12 +5345,6 @@
|
|
|
5294
5345
|
return (jsxs("div", { className: style('relative min-h-full bg-white pt-0 p-5', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
|
|
5295
5346
|
});
|
|
5296
5347
|
|
|
5297
|
-
const REGIONS_URL = '/api/v1/regions';
|
|
5298
|
-
function useRegions() {
|
|
5299
|
-
const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
|
|
5300
|
-
return data || [];
|
|
5301
|
-
}
|
|
5302
|
-
|
|
5303
5348
|
const groupBy = (list, keyGetter) => {
|
|
5304
5349
|
const result = new Map();
|
|
5305
5350
|
for (const item of list) {
|
|
@@ -5696,7 +5741,7 @@
|
|
|
5696
5741
|
|
|
5697
5742
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5698
5743
|
|
|
5699
|
-
const packageVersion = "0.14.
|
|
5744
|
+
const packageVersion = "0.14.146";
|
|
5700
5745
|
|
|
5701
5746
|
exports.Blocks = Blocks;
|
|
5702
5747
|
exports.ContentPage = ContentPage;
|