@redneckz/wildless-cms-uni-blocks 0.14.698 → 0.14.700
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/bundle/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/bundle/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/bundle/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/bundle/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/bundle/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/bundle/bundle.umd.js +399 -275
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/bundle/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/bundle/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/bundle/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/bundle/components/CreditCardForm/getCardData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/bundle/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderStep.d.ts +3 -3
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/bundle/components/CreditForm/calculateInputs.d.ts +2 -2
- package/bundle/components/CreditForm/formStateMap.d.ts +2 -2
- package/bundle/components/CreditForm/getCalcData.d.ts +2 -2
- package/bundle/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/bundle/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/bundle/components/CreditForm/renderInputs.d.ts +2 -2
- package/bundle/components/CreditForm/renderStep.d.ts +3 -3
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/bundle/components/CreditForm/utils.d.ts +1 -1
- package/bundle/hooks/useCreditFormStore.d.ts +13 -0
- package/bundle/hooks/useLeadFormData.d.ts +1 -1
- package/bundle/hooks/useSetter.d.ts +2 -0
- package/bundle/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/bundle/ui-kit/FormField/SelectField.d.ts +1 -7
- package/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/bundle/ui-kit/FormField/validators.d.ts +1 -1
- package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/dist/api/RetailAPI/getPaymentSystems.js +1 -4
- package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/dist/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/dist/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/dist/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/dist/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/dist/api/RetailAPI/model/LeadFormData.js +2 -0
- package/dist/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/dist/api/RetailAPI/utils/getOrganizationParams.js +101 -0
- package/dist/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/dist/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -7
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/dist/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/dist/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/dist/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +9 -7
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/dist/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/dist/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getCardData.d.ts +2 -2
- package/dist/components/CreditCardForm/getCardData.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/dist/components/CreditCardForm/renderStep.d.ts +3 -3
- package/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditForm/calculateInputs.d.ts +2 -2
- package/dist/components/CreditForm/formStateMap.d.ts +2 -2
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getCalcData.d.ts +2 -2
- package/dist/components/CreditForm/getCalcData.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/dist/components/CreditForm/getFifthStepData.js.map +1 -1
- package/dist/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/dist/components/CreditForm/getFirstStepData.js.map +1 -1
- package/dist/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/dist/components/CreditForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/dist/components/CreditForm/getZeroStepData.js.map +1 -1
- package/dist/components/CreditForm/renderInputs.d.ts +2 -2
- package/dist/components/CreditForm/renderStep.d.ts +3 -3
- package/dist/components/CreditForm/renderStep.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/CreditForm/utils.d.ts +1 -1
- package/dist/components/GrantSupport/GrantSupport.js +1 -1
- package/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/dist/hooks/useCreditFormStore.d.ts +13 -0
- package/dist/hooks/useCreditFormStore.js +8 -0
- package/dist/hooks/useCreditFormStore.js.map +1 -0
- package/dist/hooks/useLeadFormData.d.ts +1 -1
- package/dist/hooks/useSetter.d.ts +2 -0
- package/dist/hooks/useSetter.js +14 -0
- package/dist/hooks/useSetter.js.map +1 -0
- package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/dist/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/InnField.js +4 -3
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/dist/ui-kit/FormField/SelectField.d.ts +1 -7
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +10 -10
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/dist/ui-kit/FormField/updateOrganizationFields.js +17 -0
- package/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/dist/ui-kit/FormField/validators.d.ts +1 -1
- package/dist/ui-kit/RichText/RichText.js +3 -6
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/lib/api/RetailAPI/getPaymentSystems.js +1 -4
- package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/lib/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/lib/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/lib/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/lib/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/lib/api/RetailAPI/model/LeadFormData.js +2 -0
- package/lib/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/lib/api/RetailAPI/utils/getOrganizationParams.js +95 -0
- package/lib/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/lib/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -8
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/lib/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/lib/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/lib/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +10 -8
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/lib/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/lib/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getCardData.d.ts +2 -2
- package/lib/components/CreditCardForm/getCardData.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/lib/components/CreditCardForm/renderStep.d.ts +3 -3
- package/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditForm/calculateInputs.d.ts +2 -2
- package/lib/components/CreditForm/formStateMap.d.ts +2 -2
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getCalcData.d.ts +2 -2
- package/lib/components/CreditForm/getCalcData.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/lib/components/CreditForm/getFifthStepData.js.map +1 -1
- package/lib/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/lib/components/CreditForm/getFirstStepData.js.map +1 -1
- package/lib/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/lib/components/CreditForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/lib/components/CreditForm/getZeroStepData.js.map +1 -1
- package/lib/components/CreditForm/renderInputs.d.ts +2 -2
- package/lib/components/CreditForm/renderStep.d.ts +3 -3
- package/lib/components/CreditForm/renderStep.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/CreditForm/utils.d.ts +1 -1
- package/lib/components/GrantSupport/GrantSupport.js +1 -1
- package/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/lib/hooks/useCreditFormStore.d.ts +13 -0
- package/lib/hooks/useCreditFormStore.js +5 -0
- package/lib/hooks/useCreditFormStore.js.map +1 -0
- package/lib/hooks/useLeadFormData.d.ts +1 -1
- package/lib/hooks/useSetter.d.ts +2 -0
- package/lib/hooks/useSetter.js +11 -0
- package/lib/hooks/useSetter.js.map +1 -0
- package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/lib/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/InnField.js +4 -3
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/lib/ui-kit/FormField/SelectField.d.ts +1 -7
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +10 -10
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/lib/ui-kit/FormField/updateOrganizationFields.js +14 -0
- package/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/lib/ui-kit/FormField/validators.d.ts +1 -1
- package/lib/ui-kit/RichText/RichText.js +3 -6
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/bundle/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/mobile/bundle/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/bundle/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/mobile/bundle/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/mobile/bundle/bundle.umd.js +399 -275
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getCardData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +3 -3
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/calculateInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/formStateMap.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getCalcData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +3 -3
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/utils.d.ts +1 -1
- package/mobile/bundle/hooks/useCreditFormStore.d.ts +13 -0
- package/mobile/bundle/hooks/useLeadFormData.d.ts +1 -1
- package/mobile/bundle/hooks/useSetter.d.ts +2 -0
- package/mobile/bundle/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +1 -7
- package/mobile/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -1
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +1 -4
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/mobile/dist/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/mobile/dist/api/RetailAPI/model/LeadFormData.js +2 -0
- package/mobile/dist/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.js +101 -0
- package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -7
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +9 -7
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCardData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getCardData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +3 -3
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.d.ts +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.d.ts +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCalcData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getCalcData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getFifthStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getFirstStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getZeroStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/dist/components/CreditForm/renderStep.d.ts +3 -3
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/utils.d.ts +1 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js +1 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/dist/hooks/useCreditFormStore.d.ts +13 -0
- package/mobile/dist/hooks/useCreditFormStore.js +8 -0
- package/mobile/dist/hooks/useCreditFormStore.js.map +1 -0
- package/mobile/dist/hooks/useLeadFormData.d.ts +1 -1
- package/mobile/dist/hooks/useSetter.d.ts +2 -0
- package/mobile/dist/hooks/useSetter.js +14 -0
- package/mobile/dist/hooks/useSetter.js.map +1 -0
- package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/mobile/dist/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +4 -3
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.d.ts +1 -7
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +10 -10
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js +17 -0
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -1
- package/mobile/dist/ui-kit/RichText/RichText.js +3 -6
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +1 -4
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/mobile/lib/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/mobile/lib/api/RetailAPI/model/LeadFormData.js +2 -0
- package/mobile/lib/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.js +95 -0
- package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -8
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +10 -8
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCardData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getCardData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +3 -3
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.d.ts +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.d.ts +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCalcData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getCalcData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getFifthStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getFirstStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getZeroStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/lib/components/CreditForm/renderStep.d.ts +3 -3
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/utils.d.ts +1 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js +1 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/lib/hooks/useCreditFormStore.d.ts +13 -0
- package/mobile/lib/hooks/useCreditFormStore.js +5 -0
- package/mobile/lib/hooks/useCreditFormStore.js.map +1 -0
- package/mobile/lib/hooks/useLeadFormData.d.ts +1 -1
- package/mobile/lib/hooks/useSetter.d.ts +2 -0
- package/mobile/lib/hooks/useSetter.js +11 -0
- package/mobile/lib/hooks/useSetter.js.map +1 -0
- package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/mobile/lib/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +4 -3
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.d.ts +1 -7
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +10 -10
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js +14 -0
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -1
- package/mobile/lib/ui-kit/RichText/RichText.js +3 -6
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +3 -10
- package/mobile/src/api/RetailAPI/model/EOrganizationActivityTypes.ts +23 -0
- package/mobile/src/api/RetailAPI/model/LeadFormData.ts +7 -0
- package/mobile/src/api/RetailAPI/updateUserTask.ts +6 -1
- package/mobile/src/api/RetailAPI/utils/getOrganizationParams.ts +126 -0
- package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +4 -2
- package/mobile/src/api/dadataHints/dadataHintsType.ts +3 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +6 -8
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -5
- package/mobile/src/components/ApplicationLeadForm/LeadFormState.ts +152 -0
- package/mobile/src/components/ApplicationLeadForm/consents.ts +3 -3
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +6 -161
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/{useApplicationLeadApi.ts → useApplicationLeadApi.tsx} +19 -34
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +20 -9
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
- package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/mobile/src/components/CreditCardForm/calculateInputs.ts +2 -2
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +3 -3
- package/mobile/src/components/CreditCardForm/getCardData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
- package/mobile/src/components/CreditCardForm/getFifthStepData.ts +2 -2
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +2 -2
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +4 -4
- package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +2 -2
- package/mobile/src/components/CreditCardForm/renderStep.tsx +4 -4
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +3 -3
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +2 -2
- package/mobile/src/components/CreditForm/calculateInputs.ts +2 -2
- package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditForm/getCalcData.ts +2 -2
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -3
- package/mobile/src/components/CreditForm/getFifthStepData.ts +2 -2
- package/mobile/src/components/CreditForm/getFirstStepData.tsx +2 -2
- package/mobile/src/components/CreditForm/getFourthStepData.ts +2 -2
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +2 -2
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +2 -2
- package/mobile/src/components/CreditForm/getThirdStepData.ts +2 -2
- package/mobile/src/components/CreditForm/getZeroStepData.ts +2 -2
- package/mobile/src/components/CreditForm/renderInputs.tsx +2 -2
- package/mobile/src/components/CreditForm/renderStep.tsx +4 -4
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +3 -3
- package/mobile/src/components/CreditForm/utils.ts +1 -1
- package/mobile/src/components/GrantSupport/GrantSupport.tsx +1 -1
- package/mobile/src/hooks/useCreditFormStore.tsx +13 -0
- package/mobile/src/hooks/useLeadFormData.ts +1 -1
- package/mobile/src/hooks/useSetter.ts +16 -0
- package/mobile/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
- package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -11
- package/mobile/src/ui-kit/DialogManager/useDialog.tsx +2 -1
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +5 -5
- package/mobile/src/ui-kit/FormField/Fields/OrganizationField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +5 -1
- package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
- package/mobile/src/ui-kit/FormField/SelectField.tsx +1 -8
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
- package/mobile/src/ui-kit/FormField/updateOrganizationFields.ts +40 -0
- package/mobile/src/ui-kit/FormField/validators.ts +1 -1
- package/mobile/src/ui-kit/RichText/RichText.tsx +21 -21
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +20 -25
- package/package.json +1 -1
- package/src/api/RetailAPI/getPaymentSystems.ts +3 -10
- package/src/api/RetailAPI/model/EOrganizationActivityTypes.ts +23 -0
- package/src/api/RetailAPI/model/LeadFormData.ts +7 -0
- package/src/api/RetailAPI/updateUserTask.ts +6 -1
- package/src/api/RetailAPI/utils/getOrganizationParams.ts +126 -0
- package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +4 -2
- package/src/api/dadataHints/dadataHintsType.ts +3 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +6 -8
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -2
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -5
- package/src/components/ApplicationLeadForm/LeadFormState.ts +152 -0
- package/src/components/ApplicationLeadForm/consents.ts +3 -3
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +6 -161
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +2 -2
- package/src/components/ApplicationLeadForm/{useApplicationLeadApi.ts → useApplicationLeadApi.tsx} +19 -34
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +20 -9
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
- package/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/src/components/CreditCardForm/calculateInputs.ts +2 -2
- package/src/components/CreditCardForm/formStateMap.tsx +3 -3
- package/src/components/CreditCardForm/getCardData.tsx +2 -2
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
- package/src/components/CreditCardForm/getFifthStepData.ts +2 -2
- package/src/components/CreditCardForm/getFourthStepData.ts +2 -2
- package/src/components/CreditCardForm/getInitialFormState.tsx +2 -2
- package/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
- package/src/components/CreditCardForm/getSixthStepData.ts +4 -4
- package/src/components/CreditCardForm/getThirdStepData.tsx +2 -2
- package/src/components/CreditCardForm/renderInputs.tsx +2 -2
- package/src/components/CreditCardForm/renderStep.tsx +4 -4
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +3 -3
- package/src/components/CreditForm/PendingStatusContent.tsx +2 -2
- package/src/components/CreditForm/calculateInputs.ts +2 -2
- package/src/components/CreditForm/formStateMap.tsx +2 -2
- package/src/components/CreditForm/getCalcData.ts +2 -2
- package/src/components/CreditForm/getCreditFormTaskData.ts +3 -3
- package/src/components/CreditForm/getFifthStepData.ts +2 -2
- package/src/components/CreditForm/getFirstStepData.tsx +2 -2
- package/src/components/CreditForm/getFourthStepData.ts +2 -2
- package/src/components/CreditForm/getInitialFormState.tsx +2 -2
- package/src/components/CreditForm/getSecondStepData.tsx +2 -2
- package/src/components/CreditForm/getThirdStepData.ts +2 -2
- package/src/components/CreditForm/getZeroStepData.ts +2 -2
- package/src/components/CreditForm/renderInputs.tsx +2 -2
- package/src/components/CreditForm/renderStep.tsx +4 -4
- package/src/components/CreditForm/useCreditFormAPI.tsx +3 -3
- package/src/components/CreditForm/utils.ts +1 -1
- package/src/components/GrantSupport/GrantSupport.tsx +1 -1
- package/src/hooks/useCreditFormStore.tsx +13 -0
- package/src/hooks/useLeadFormData.ts +1 -1
- package/src/hooks/useSetter.ts +16 -0
- package/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
- package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -11
- package/src/ui-kit/DialogManager/useDialog.tsx +2 -1
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
- package/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/InnField.tsx +5 -5
- package/src/ui-kit/FormField/Fields/OrganizationField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +5 -1
- package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
- package/src/ui-kit/FormField/SelectField.tsx +1 -8
- package/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
- package/src/ui-kit/FormField/updateOrganizationFields.ts +40 -0
- package/src/ui-kit/FormField/validators.ts +1 -1
- package/src/ui-kit/RichText/RichText.tsx +21 -21
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.tsx +7 -10
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +20 -25
- package/bundle/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/dist/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/dist/ui-kit/RichText/getHtmlText.js +0 -5
- package/dist/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/lib/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/lib/ui-kit/RichText/getHtmlText.js +0 -2
- package/lib/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/mobile/dist/ui-kit/RichText/getHtmlText.js +0 -5
- package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/mobile/lib/ui-kit/RichText/getHtmlText.js +0 -2
- package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/mobile/src/ui-kit/RichText/getHtmlText.tsx +0 -1
- package/src/ui-kit/RichText/getHtmlText.tsx +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { getLink } from '../../api/RetailAPI/getLink';
|
|
4
|
-
import { type
|
|
4
|
+
import { type LeadFormState } from '../../components/ApplicationLeadForm/LeadFormState';
|
|
5
5
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
6
6
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
7
7
|
import { Button } from '../Button/Button';
|
|
@@ -14,7 +14,7 @@ export interface EsiaLoginDialogProps {
|
|
|
14
14
|
|
|
15
15
|
export const EsiaLoginDialog = JSX<EsiaLoginDialogProps>(({ onClose }) => {
|
|
16
16
|
const navigator = locationNavigator();
|
|
17
|
-
const [leadForm, setLeadForm] = useLocalStorage<
|
|
17
|
+
const [leadForm, setLeadForm] = useLocalStorage<LeadFormState>('leadForm');
|
|
18
18
|
const handleAuth = useCallback(async () => {
|
|
19
19
|
const resp = await getLink({
|
|
20
20
|
redirectUri: navigator.href,
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
|
|
2
4
|
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
6
|
import { SelectField } from '../SelectField';
|
|
5
7
|
|
|
6
8
|
export const AmountWorkersField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
-
const { data
|
|
9
|
+
const { data } = useLeadFormData('EMPLOYEES_NUMBER');
|
|
10
|
+
|
|
11
|
+
const store = useCreditFormStore();
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (data) {
|
|
15
|
+
store.amountWorkers = data;
|
|
16
|
+
}
|
|
17
|
+
}, [data]);
|
|
8
18
|
|
|
9
19
|
return (
|
|
10
20
|
<SelectField
|
|
11
21
|
field={field}
|
|
12
|
-
source={amountWorkers}
|
|
22
|
+
source={store.amountWorkers ?? []}
|
|
13
23
|
label="Количество работающих в организации"
|
|
14
24
|
fieldName="amountWorkers"
|
|
15
25
|
input={input}
|
|
@@ -10,7 +10,7 @@ export const CardCategoryField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
10
10
|
const [cardTypes, setCardTypes] = useState<CardTypeData[]>([]);
|
|
11
11
|
const [programId] = useLocalStorage<string>('programId');
|
|
12
12
|
const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
|
|
13
|
-
const selectedPaymentSystem = field('paymentSystem')
|
|
13
|
+
const selectedPaymentSystem = field('paymentSystem')?.value?.type;
|
|
14
14
|
|
|
15
15
|
useEffect(() => {
|
|
16
16
|
if (selectedPaymentSystem && programId) {
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
|
|
2
4
|
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
6
|
import { SelectField } from '../SelectField';
|
|
5
7
|
|
|
6
8
|
export const EmployerActivitiesField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
-
const { data
|
|
9
|
+
const { data } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
|
|
10
|
+
|
|
11
|
+
const store = useCreditFormStore();
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (data) {
|
|
15
|
+
store.employerActivities = data;
|
|
16
|
+
}
|
|
17
|
+
}, [data]);
|
|
8
18
|
|
|
9
19
|
return (
|
|
10
20
|
<SelectField
|
|
11
21
|
field={field}
|
|
12
|
-
source={employerActivities}
|
|
22
|
+
source={store.employerActivities ?? []}
|
|
13
23
|
label="Вид деятельности организации-работодателя"
|
|
14
24
|
fieldName="employerActivities"
|
|
15
25
|
input={input}
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
|
|
2
4
|
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
6
|
import { SelectField } from '../SelectField';
|
|
5
7
|
|
|
6
8
|
export const EmployerOrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
-
const { data
|
|
9
|
+
const { data } = useLeadFormData('ORGANIZATION_KIND');
|
|
10
|
+
|
|
11
|
+
const store = useCreditFormStore();
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (data) {
|
|
15
|
+
store.employerOrganization = data;
|
|
16
|
+
}
|
|
17
|
+
}, [data]);
|
|
8
18
|
|
|
9
19
|
return (
|
|
10
20
|
<SelectField
|
|
11
21
|
field={field}
|
|
12
|
-
source={employerOrganization}
|
|
22
|
+
source={store.employerOrganization ?? []}
|
|
13
23
|
label="Вид организации работодателя"
|
|
14
24
|
fieldName="employerOrganization"
|
|
15
25
|
input={input}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
|
|
4
|
+
import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
|
|
4
5
|
import { InputControl } from '../../Input/InputControl';
|
|
5
6
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
6
7
|
import { validatorObj } from '../getObjectValidator';
|
|
7
8
|
import { getValidation } from '../getValidation';
|
|
8
|
-
import {
|
|
9
|
+
import { updateOrganizationFields } from '../updateOrganizationFields';
|
|
9
10
|
|
|
10
11
|
export const InnField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
12
|
+
const store = useCreditFormStore();
|
|
13
|
+
|
|
11
14
|
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
12
|
-
field?.('organizationAddress')?.onChange?.(
|
|
13
|
-
getAddressFromDaDataItem(item.data?.address as DaDataSuggestion),
|
|
14
|
-
);
|
|
15
15
|
field?.('organizationName')?.onChange?.(item.data?.name?.short_with_opf);
|
|
16
|
-
field
|
|
16
|
+
updateOrganizationFields(store, field, item);
|
|
17
17
|
}, []);
|
|
18
18
|
|
|
19
19
|
return (
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
|
|
2
4
|
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
3
5
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
6
|
import { SelectField } from '../SelectField';
|
|
5
7
|
|
|
6
8
|
export const OrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
-
const { data
|
|
9
|
+
const { data } = useLeadFormData('ORGANIZATION_TYPE');
|
|
10
|
+
|
|
11
|
+
const store = useCreditFormStore();
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (data) {
|
|
15
|
+
store.organization = data;
|
|
16
|
+
}
|
|
17
|
+
}, [data]);
|
|
8
18
|
|
|
9
19
|
return (
|
|
10
20
|
<SelectField
|
|
11
21
|
field={field}
|
|
12
|
-
source={organization}
|
|
22
|
+
source={store.organization ?? []}
|
|
13
23
|
label="Тип организации"
|
|
14
24
|
fieldName="organization"
|
|
15
25
|
input={input}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
|
|
4
|
+
import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
|
|
4
5
|
import { InputControl } from '../../Input/InputControl';
|
|
5
6
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
6
7
|
import { validatorObj } from '../getObjectValidator';
|
|
7
8
|
import { getValidation } from '../getValidation';
|
|
9
|
+
import { updateOrganizationFields } from '../updateOrganizationFields';
|
|
8
10
|
|
|
9
11
|
export const OrganizationNameField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
12
|
+
const store = useCreditFormStore();
|
|
13
|
+
|
|
10
14
|
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
11
15
|
field?.('inn')?.onChange?.(item.data?.inn);
|
|
12
|
-
field
|
|
16
|
+
updateOrganizationFields(store, field, item);
|
|
13
17
|
}, []);
|
|
14
18
|
|
|
15
19
|
return (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { getPaymentSystems } from '../../../api/RetailAPI/getPaymentSystems';
|
|
4
|
+
import { type PaymentSystem } from '../../../api/RetailAPI/updateUserTask';
|
|
4
5
|
import { useLocalStorage } from '../../../hooks/useLocalStorage';
|
|
5
|
-
import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
6
6
|
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
|
|
7
7
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
8
8
|
import { validatorObj } from '../getObjectValidator';
|
|
@@ -12,7 +12,7 @@ export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
12
12
|
const { value, onChange } = field('paymentSystem');
|
|
13
13
|
const [programId] = useLocalStorage<string>('programId');
|
|
14
14
|
|
|
15
|
-
const [paymentSystemOptions, setPaymentSystemOptions] = useState<
|
|
15
|
+
const [paymentSystemOptions, setPaymentSystemOptions] = useState<PaymentSystem[]>([]);
|
|
16
16
|
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
if (programId) {
|
|
@@ -23,14 +23,22 @@ export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
23
23
|
}
|
|
24
24
|
}, []);
|
|
25
25
|
|
|
26
|
+
const handleChange = useCallback(
|
|
27
|
+
(type: string) => onChange?.(paymentSystemOptions?.find((_) => _.type === type)),
|
|
28
|
+
[paymentSystemOptions, onChange],
|
|
29
|
+
);
|
|
30
|
+
|
|
26
31
|
return (
|
|
27
32
|
<RadioButtonGroupControl
|
|
28
33
|
label="Платежная система"
|
|
29
34
|
orientation="horizontal"
|
|
30
|
-
items={paymentSystemOptions}
|
|
31
|
-
value={value}
|
|
32
|
-
onChange={(_) => onChange?.(_)}
|
|
35
|
+
items={formatPaymentSystems(paymentSystemOptions)}
|
|
33
36
|
{...getValidation(field('paymentSystem'), validatorObj.paymentSystem, input?.required)}
|
|
37
|
+
value={value?.type}
|
|
38
|
+
onChange={handleChange}
|
|
34
39
|
/>
|
|
35
40
|
);
|
|
36
41
|
});
|
|
42
|
+
|
|
43
|
+
const formatPaymentSystems = (paymentSystems: PaymentSystem[]) =>
|
|
44
|
+
paymentSystems?.map((_) => ({ id: _.type, text: _.name })) ?? [];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type LeadProps } from '../../api/RetailAPI/model/LeadFormData';
|
|
1
2
|
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
2
3
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
4
|
import { type Option } from '../Select/Option';
|
|
@@ -6,14 +7,6 @@ import { type CustomFieldProps } from './CustomFieldProps';
|
|
|
6
7
|
import { validatorObj } from './getObjectValidator';
|
|
7
8
|
import { getValidation } from './getValidation';
|
|
8
9
|
|
|
9
|
-
export interface LeadProps {
|
|
10
|
-
type?: string;
|
|
11
|
-
key?: string;
|
|
12
|
-
value?: string;
|
|
13
|
-
displayOrder?: number;
|
|
14
|
-
description?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
10
|
export interface SelectFieldProps extends CustomFieldProps, UniBlockProps {
|
|
18
11
|
source?: LeadProps[];
|
|
19
12
|
label: string;
|
|
@@ -33,14 +33,14 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
33
33
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
34
34
|
limitedBirthday: limitedBirthdayValidator(),
|
|
35
35
|
birthPlace: defaultValidator('Укажите место рождения'),
|
|
36
|
-
education:
|
|
37
|
-
housing:
|
|
38
|
-
employment:
|
|
39
|
-
organization:
|
|
40
|
-
amountWorkers:
|
|
41
|
-
employerActivities:
|
|
42
|
-
employerOrganization:
|
|
43
|
-
positionOrganization:
|
|
36
|
+
education: defaultSelectValidator('Выберите ваше образование'),
|
|
37
|
+
housing: defaultSelectValidator('Выберите тип жилья'),
|
|
38
|
+
employment: defaultSelectValidator('Выберите информацию о трудоустройстве'),
|
|
39
|
+
organization: defaultSelectValidator('Выберите тип организации'),
|
|
40
|
+
amountWorkers: defaultSelectValidator('Выберите информацию о количестве сотрудников'),
|
|
41
|
+
employerActivities: defaultSelectValidator('Выберите вид деятельности организации'),
|
|
42
|
+
employerOrganization: defaultSelectValidator('Выберите вид организации'),
|
|
43
|
+
positionOrganization: defaultSelectValidator('Выберите вашу должность'),
|
|
44
44
|
dulSerie: serieValidator('Укажите серию паспорта'),
|
|
45
45
|
dulNumber: numberValidator('Укажите номер паспорта'),
|
|
46
46
|
dulIssueDateField: defaultValidator('Укажите дату выдачи паспорта'),
|
|
@@ -76,7 +76,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
76
76
|
consentPfrFlg: agreementValidator,
|
|
77
77
|
consentOthersFlg: agreementValidator,
|
|
78
78
|
consentInformFlg: agreementValidator,
|
|
79
|
-
familyStatus:
|
|
79
|
+
familyStatus: defaultSelectValidator('Выберите семейное положение'),
|
|
80
80
|
children: lengthStringValidator(2, 'Укажите количество детей'),
|
|
81
81
|
familyMembers: lengthStringValidator(2, 'Укажите количество членов семьи'),
|
|
82
82
|
dependents: lengthStringValidator(2, 'Укажите количество иждивенцев'),
|
|
@@ -102,7 +102,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
102
102
|
addressRetail: defaultSelectValidator('Выберите адрес банка'),
|
|
103
103
|
addressMatch: defaultValidator(),
|
|
104
104
|
codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
|
|
105
|
-
confirmationIncome:
|
|
105
|
+
confirmationIncome: defaultSelectValidator(),
|
|
106
106
|
deliveryDate: defaultValidator('Укажите дату доставки'),
|
|
107
107
|
addressCourier: addressDaDataValidator(),
|
|
108
108
|
cardCategory: defaultValidator('Укажите категорию карты'),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
|
|
2
|
+
import {
|
|
3
|
+
getEmployeesNumberOption,
|
|
4
|
+
getOrganizationActivityType,
|
|
5
|
+
getOrganizationKind,
|
|
6
|
+
getOrganizationType,
|
|
7
|
+
} from '../../api/RetailAPI/utils/getOrganizationParams';
|
|
8
|
+
import { type CreditFormStore } from '../../hooks/useCreditFormStore';
|
|
9
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
10
|
+
import { getAddressFromDaDataItem } from './Fields/AddressField';
|
|
11
|
+
|
|
12
|
+
export const updateOrganizationFields = (
|
|
13
|
+
store: CreditFormStore,
|
|
14
|
+
field: FormFieldRegisterer<any>,
|
|
15
|
+
item: DaDataSuggestion,
|
|
16
|
+
) => {
|
|
17
|
+
const inn = item.data?.inn ?? '';
|
|
18
|
+
const okopf = Number(item.data?.opf?.code);
|
|
19
|
+
const okved = item.data?.okved ?? '';
|
|
20
|
+
|
|
21
|
+
field?.('legalForm')?.onChange?.(item.data?.opf?.short);
|
|
22
|
+
|
|
23
|
+
field?.('organizationAddress')?.onChange?.(
|
|
24
|
+
getAddressFromDaDataItem(item.data?.address as DaDataSuggestion),
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
field?.('amountWorkers')?.onChange?.(
|
|
28
|
+
getEmployeesNumberOption(store?.amountWorkers, item.data?.employee_count),
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
field?.('employerActivities')?.onChange?.(
|
|
32
|
+
getOrganizationActivityType(store?.employerActivities ?? [], okved),
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
field?.('organization')?.onChange?.(getOrganizationType(store?.organization ?? [], okopf, inn));
|
|
36
|
+
|
|
37
|
+
field?.('employerOrganization')?.onChange?.(
|
|
38
|
+
getOrganizationKind(store?.employerOrganization ?? [], okopf),
|
|
39
|
+
);
|
|
40
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Address } from '../../components/ApplicationLeadForm/
|
|
1
|
+
import { type Address } from '../../components/ApplicationLeadForm/LeadFormState';
|
|
2
2
|
import { pattern } from '../../validation/pattern';
|
|
3
3
|
import { required } from '../../validation/required';
|
|
4
4
|
import { validator } from '../../validation/validator';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { style } from '../../utils/style';
|
|
3
|
-
import { getHtmlText } from './getHtmlText';
|
|
4
3
|
import { type RichTextProps } from './RichTextProps';
|
|
5
4
|
|
|
6
|
-
const
|
|
5
|
+
export const RichText = JSX<RichTextProps>(
|
|
6
|
+
({ __html = '', richVersion = '', itemSize = 'list-m', isDotted = true, children }) => {
|
|
7
|
+
const dotStyle = isDotted ? '' : 'without-dots';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
9
|
+
return __html || children ? (
|
|
10
|
+
/* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
|
|
11
|
+
<div data-component="rich-text-container">
|
|
12
|
+
<div
|
|
13
|
+
className={style(
|
|
14
|
+
richVersion,
|
|
15
|
+
itemSize,
|
|
16
|
+
'md-container group-data-secondary:text-white group-data-gray:text-secondary-text',
|
|
17
|
+
dotStyle,
|
|
18
|
+
)}
|
|
19
|
+
dangerouslySetInnerHTML={__html ? { __html } : undefined}
|
|
20
|
+
>
|
|
21
|
+
{children}
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
) : null;
|
|
25
|
+
},
|
|
26
|
+
);
|
|
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { sendCode } from '../../api/RetailAPI/sendCode';
|
|
4
4
|
import { Headline } from '../../components/Headline/Headline';
|
|
5
|
+
import { formatPhone } from '../../utils/formatPhone';
|
|
5
6
|
import { noop } from '../../utils/noop';
|
|
6
7
|
import { CaptchaDialog } from '../CaptchaDialog/CaptchaDialog';
|
|
7
8
|
import { Dialog } from '../DialogManager/Dialog';
|
|
@@ -15,29 +16,16 @@ import { SubmitButton } from './SubmitButton';
|
|
|
15
16
|
import { useVerifyPhoneDialogSubmit } from './useVerifyPhoneDialogSubmit';
|
|
16
17
|
|
|
17
18
|
export interface VerifyPhoneDialogProps {
|
|
18
|
-
|
|
19
|
-
description?: string;
|
|
19
|
+
phone: string;
|
|
20
20
|
code?: boolean;
|
|
21
|
-
__html?: string;
|
|
22
21
|
codeLength?: number;
|
|
23
|
-
|
|
24
|
-
phoneNumber?: string;
|
|
22
|
+
consents?: string[];
|
|
25
23
|
onSuccess?: (smsCode?: string) => void;
|
|
26
24
|
onClose?: () => void;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
30
|
-
({
|
|
31
|
-
title,
|
|
32
|
-
description,
|
|
33
|
-
__html,
|
|
34
|
-
code = true,
|
|
35
|
-
codeLength = 4,
|
|
36
|
-
textButton = 'Далее',
|
|
37
|
-
phoneNumber = '+79999999999',
|
|
38
|
-
onSuccess = noop,
|
|
39
|
-
onClose = noop,
|
|
40
|
-
}) => {
|
|
28
|
+
({ phone, code = true, codeLength = 4, consents, onSuccess = noop, onClose = noop }) => {
|
|
41
29
|
const [values, setValues] = useState(Array(codeLength).fill(''));
|
|
42
30
|
|
|
43
31
|
const {
|
|
@@ -54,6 +42,8 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
54
42
|
|
|
55
43
|
const captchaDialog = useDialog(CaptchaDialog);
|
|
56
44
|
|
|
45
|
+
const phoneNumber = formatPhone(phone);
|
|
46
|
+
|
|
57
47
|
const handleSendCode = useCallback(async () => {
|
|
58
48
|
const isSuccessSendCode = await sendCode({
|
|
59
49
|
phoneNumber,
|
|
@@ -81,8 +71,8 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
81
71
|
<div className="flex flex-col gap-xl items-center rounded-md">
|
|
82
72
|
<Headline
|
|
83
73
|
className="w-full"
|
|
84
|
-
title=
|
|
85
|
-
description={
|
|
74
|
+
title="Подтвердите номер телефона"
|
|
75
|
+
description={`Мы отправили код на ${phone}`}
|
|
86
76
|
headlineVersion="XS"
|
|
87
77
|
isEmbedded={true}
|
|
88
78
|
as="h6"
|
|
@@ -97,10 +87,16 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
97
87
|
) : null}
|
|
98
88
|
{renderText(timeNextReq, setTimeNextReq, handleSendCode)}
|
|
99
89
|
|
|
100
|
-
<RichText itemSize="list-s"
|
|
101
|
-
|
|
102
|
-
|
|
90
|
+
<RichText itemSize="list-s">
|
|
91
|
+
<span>Вводя код, я подтверждаю, что ознакомлен и подписываю: </span>
|
|
92
|
+
<ul>
|
|
93
|
+
{consents?.map((_, i) => (
|
|
94
|
+
<li key={`${_}-${i}`}>{_}</li>
|
|
95
|
+
))}
|
|
96
|
+
</ul>
|
|
97
|
+
</RichText>
|
|
103
98
|
|
|
99
|
+
{renderNextButton(isSubmitButtonDisabled, handleSubmit)}
|
|
104
100
|
{isLoading ? <Loader blur={false} /> : null}
|
|
105
101
|
</div>
|
|
106
102
|
</Dialog>
|
|
@@ -108,10 +104,9 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
108
104
|
},
|
|
109
105
|
);
|
|
110
106
|
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
) : null;
|
|
107
|
+
const renderNextButton = (isDisabled: boolean, onClick: () => void) => (
|
|
108
|
+
<SubmitButton text="Далее" isDisabled={isDisabled} onClick={onClick} />
|
|
109
|
+
);
|
|
115
110
|
|
|
116
111
|
const renderText = (
|
|
117
112
|
timeNextReq: number,
|
package/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { fetchRetailJSON } from './doRequest';
|
|
2
|
+
import { type PaymentSystem } from './updateUserTask';
|
|
2
3
|
|
|
3
4
|
type PaymentSystemResponse = {
|
|
4
|
-
paymentSystems?:
|
|
5
|
-
name: string;
|
|
6
|
-
type: string;
|
|
7
|
-
}[];
|
|
5
|
+
paymentSystems?: PaymentSystem[];
|
|
8
6
|
};
|
|
9
7
|
|
|
10
8
|
export const getPaymentSystems = async (creditProgramId: string) => {
|
|
@@ -16,10 +14,5 @@ export const getPaymentSystems = async (creditProgramId: string) => {
|
|
|
16
14
|
},
|
|
17
15
|
);
|
|
18
16
|
|
|
19
|
-
return
|
|
20
|
-
data?.paymentSystems?.map((paymentSystem) => ({
|
|
21
|
-
id: paymentSystem.type,
|
|
22
|
-
text: paymentSystem.name,
|
|
23
|
-
})) ?? []
|
|
24
|
-
);
|
|
17
|
+
return data?.paymentSystems || [];
|
|
25
18
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const enum EOrganizationActivityTypes {
|
|
2
|
+
FINANCIAL_INSTITUTIONS = 'FINANCIAL_INSTITUTIONS',
|
|
3
|
+
BANK = 'BANK',
|
|
4
|
+
INSURER = 'INSURER',
|
|
5
|
+
CONSULTING_SERVICE = 'CONSULTING_SERVICE',
|
|
6
|
+
TRADE = 'TRADE',
|
|
7
|
+
ARMY = 'ARMY',
|
|
8
|
+
INDUSTRY = 'INDUSTRY',
|
|
9
|
+
CONSTRUCTION = 'CONSTRUCTION',
|
|
10
|
+
FUEL_AND_ENERGY = 'FUEL_AND_ENERGY',
|
|
11
|
+
TRANSPORT = 'TRANSPORT',
|
|
12
|
+
TOURISM = 'TOURISM',
|
|
13
|
+
SECURITY = 'SECURITY',
|
|
14
|
+
SERVICE = 'SERVICE',
|
|
15
|
+
EDUCATION = 'EDUCATION',
|
|
16
|
+
HEALTHCARE = 'HEALTHCARE',
|
|
17
|
+
GOVERNANCE = 'GOVERNANCE',
|
|
18
|
+
SOCIAL_SPHERE = 'SOCIAL_SPHERE',
|
|
19
|
+
TECHNOLOGY = 'TECHNOLOGY',
|
|
20
|
+
AGRICULTURE = 'AGRICULTURE',
|
|
21
|
+
SCIENCE = 'SCIENCE',
|
|
22
|
+
OTHER_SECTORS = 'OTHER_SECTORS',
|
|
23
|
+
}
|
|
@@ -41,6 +41,11 @@ export type PaymentType = {
|
|
|
41
41
|
value: string;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
+
export type PaymentSystem = {
|
|
45
|
+
name: string;
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
44
49
|
export type Participant = {
|
|
45
50
|
birthDate?: string;
|
|
46
51
|
id: number;
|
|
@@ -105,7 +110,7 @@ export type Participant = {
|
|
|
105
110
|
value: string;
|
|
106
111
|
};
|
|
107
112
|
currencyCode?: { key: string };
|
|
108
|
-
paymentSystemTypeCd?:
|
|
113
|
+
paymentSystemTypeCd?: PaymentSystem;
|
|
109
114
|
classCard?: Option;
|
|
110
115
|
codeWord?: string;
|
|
111
116
|
};
|