@redneckz/wildless-cms-uni-blocks 0.14.862 → 0.14.864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.471.js +1 -1
- package/bin/migration-scripts/0.14.478.js +1 -1
- package/bin/migration-scripts/0.14.850.js +7 -11
- package/bundle/UniBlock/UniBlock.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +109 -48
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/bundle/components/Footer/TextInformationLink.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/bundle/model/OnClickProps.d.ts +4 -0
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/bundle/retail/api/draftTasksKZO.d.ts +1 -0
- package/bundle/retail/api/saveReferalInfo.d.ts +5 -0
- package/bundle/retail/api/updateUserTask.d.ts +2 -1
- package/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/bundle/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/bundle/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/bundle/retail/model/ReferalData.d.ts +7 -0
- package/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
- package/bundle/ui-kit/Button/Button.d.ts +2 -3
- package/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/bundle/ui-kit/Link/Link.d.ts +2 -3
- package/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/bundle/utils/getSessionQuery.d.ts +1 -0
- package/dist/UniBlock/UniBlock.d.ts +1 -1
- package/dist/api/LeadServiceAPI.js +1 -2
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +2 -0
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/dist/components/DebitForm/useDebitFormAPI.js +2 -0
- package/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.d.ts +2 -2
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/dist/hooks/useForm/useForm.js.map +1 -1
- package/dist/hooks/useJSONRef/fetchRefs.js +4 -4
- package/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/dist/model/OnClickProps.d.ts +4 -0
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/dist/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/dist/retail/api/createCaptcha.js +1 -1
- package/dist/retail/api/createCaptcha.js.map +1 -1
- package/dist/retail/api/dadataHints/dadataHints.js +1 -2
- package/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/dist/retail/api/draftTasksKZO.d.ts +1 -0
- package/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/dist/retail/api/feedbackById.js +1 -1
- package/dist/retail/api/feedbackById.js.map +1 -1
- package/dist/retail/api/saveReferalInfo.d.ts +5 -0
- package/dist/retail/api/saveReferalInfo.js +6 -0
- package/dist/retail/api/saveReferalInfo.js.map +1 -0
- package/dist/retail/api/updateRefreshToken.js +1 -1
- package/dist/retail/api/updateRefreshToken.js.map +1 -1
- package/dist/retail/api/updateUserTask.d.ts +2 -1
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/uploadFile.js +1 -2
- package/dist/retail/api/uploadFile.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/dist/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/dist/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/dist/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/dist/retail/model/ReferalData.d.ts +7 -0
- package/{mobile/dist/model/onClick.js → dist/retail/model/ReferalData.js} +1 -1
- package/dist/retail/model/ReferalData.js.map +1 -0
- package/dist/retail/utils/getOrganizationParams.d.ts +6 -16
- package/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +2 -3
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/dist/ui-kit/Link/Link.d.ts +2 -3
- package/dist/ui-kit/Link/Link.js.map +1 -1
- package/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/dist/utils/getSessionQuery.d.ts +1 -0
- package/dist/utils/getSessionQuery.js +4 -4
- package/dist/utils/getSessionQuery.js.map +1 -1
- package/lib/UniBlock/UniBlock.d.ts +1 -1
- package/lib/api/LeadServiceAPI.js +1 -2
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +2 -0
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/lib/components/DebitForm/useDebitFormAPI.js +2 -0
- package/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.d.ts +2 -2
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/lib/hooks/useForm/useForm.js.map +1 -1
- package/lib/hooks/useJSONRef/fetchRefs.js +4 -4
- package/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/lib/model/OnClickProps.d.ts +4 -0
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/lib/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/lib/retail/api/createCaptcha.js +1 -1
- package/lib/retail/api/createCaptcha.js.map +1 -1
- package/lib/retail/api/dadataHints/dadataHints.js +1 -2
- package/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/lib/retail/api/draftTasksKZO.d.ts +1 -0
- package/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/lib/retail/api/feedbackById.js +1 -1
- package/lib/retail/api/feedbackById.js.map +1 -1
- package/lib/retail/api/saveReferalInfo.d.ts +5 -0
- package/lib/retail/api/saveReferalInfo.js +3 -0
- package/lib/retail/api/saveReferalInfo.js.map +1 -0
- package/lib/retail/api/updateRefreshToken.js +1 -1
- package/lib/retail/api/updateRefreshToken.js.map +1 -1
- package/lib/retail/api/updateUserTask.d.ts +2 -1
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/uploadFile.js +1 -2
- package/lib/retail/api/uploadFile.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/lib/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/lib/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/lib/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/lib/retail/model/ReferalData.d.ts +7 -0
- package/lib/retail/model/ReferalData.js +2 -0
- package/lib/retail/model/ReferalData.js.map +1 -0
- package/lib/retail/utils/getOrganizationParams.d.ts +6 -16
- package/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +2 -3
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/lib/ui-kit/Link/Link.d.ts +2 -3
- package/lib/ui-kit/Link/Link.js.map +1 -1
- package/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/lib/utils/getSessionQuery.d.ts +1 -0
- package/lib/utils/getSessionQuery.js +1 -1
- package/lib/utils/getSessionQuery.js.map +1 -1
- package/mobile/bundle/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +104 -46
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/mobile/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/bundle/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/bundle/model/OnClickProps.d.ts +4 -0
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/mobile/bundle/retail/api/draftTasksKZO.d.ts +1 -0
- package/mobile/bundle/retail/api/saveReferalInfo.d.ts +5 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/mobile/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/bundle/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/mobile/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/bundle/retail/model/ReferalData.d.ts +7 -0
- package/mobile/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/bundle/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/bundle/utils/getSessionQuery.d.ts +1 -0
- package/mobile/dist/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/dist/api/LeadServiceAPI.js +1 -2
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +2 -0
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js +2 -0
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/dist/hooks/useForm/useForm.js.map +1 -1
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js +4 -4
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/mobile/dist/model/OnClickProps.d.ts +4 -0
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/retail/api/createCaptcha.js +1 -1
- package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
- package/mobile/dist/retail/api/dadataHints/dadataHints.js +1 -2
- package/mobile/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/dist/retail/api/draftTasksKZO.d.ts +1 -0
- package/mobile/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/dist/retail/api/feedbackById.js +1 -1
- package/mobile/dist/retail/api/feedbackById.js.map +1 -1
- package/mobile/dist/retail/api/saveReferalInfo.d.ts +5 -0
- package/mobile/dist/retail/api/saveReferalInfo.js +6 -0
- package/mobile/dist/retail/api/saveReferalInfo.js.map +1 -0
- package/mobile/dist/retail/api/updateRefreshToken.js +1 -1
- package/mobile/dist/retail/api/updateRefreshToken.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/uploadFile.js +1 -2
- package/mobile/dist/retail/api/uploadFile.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/dist/retail/model/ReferalData.d.ts +7 -0
- package/{dist/model/onClick.js → mobile/dist/retail/model/ReferalData.js} +1 -1
- package/mobile/dist/retail/model/ReferalData.js.map +1 -0
- package/mobile/dist/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/dist/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/dist/ui-kit/Link/Link.js.map +1 -1
- package/mobile/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/mobile/dist/utils/getSessionQuery.d.ts +1 -0
- package/mobile/dist/utils/getSessionQuery.js +4 -4
- package/mobile/dist/utils/getSessionQuery.js.map +1 -1
- package/mobile/lib/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +1 -2
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +2 -0
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js +2 -0
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/lib/hooks/useForm/useForm.js.map +1 -1
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js +4 -4
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/mobile/lib/model/OnClickProps.d.ts +4 -0
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/retail/api/createCaptcha.js +1 -1
- package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
- package/mobile/lib/retail/api/dadataHints/dadataHints.js +1 -2
- package/mobile/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/lib/retail/api/draftTasksKZO.d.ts +1 -0
- package/mobile/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/lib/retail/api/feedbackById.js +1 -1
- package/mobile/lib/retail/api/feedbackById.js.map +1 -1
- package/mobile/lib/retail/api/saveReferalInfo.d.ts +5 -0
- package/mobile/lib/retail/api/saveReferalInfo.js +3 -0
- package/mobile/lib/retail/api/saveReferalInfo.js.map +1 -0
- package/mobile/lib/retail/api/updateRefreshToken.js +1 -1
- package/mobile/lib/retail/api/updateRefreshToken.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/uploadFile.js +1 -2
- package/mobile/lib/retail/api/uploadFile.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/lib/retail/model/ReferalData.d.ts +7 -0
- package/mobile/lib/retail/model/ReferalData.js +2 -0
- package/mobile/lib/retail/model/ReferalData.js.map +1 -0
- package/mobile/lib/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/lib/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/lib/ui-kit/Link/Link.js.map +1 -1
- package/mobile/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/mobile/lib/utils/getSessionQuery.d.ts +1 -0
- package/mobile/lib/utils/getSessionQuery.js +1 -1
- package/mobile/lib/utils/getSessionQuery.js.map +1 -1
- package/mobile/src/UniBlock/UniBlock.tsx +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +1 -3
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +8 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +21 -1
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +43 -4
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -0
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
- package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +5 -1
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -0
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +2 -0
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +5 -1
- package/mobile/src/components/DebitForm/useDebitFormAPI.tsx +2 -0
- package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
- package/mobile/src/components/Footer/TextInformationLink.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
- package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
- package/mobile/src/hooks/useForm/useForm.ts +1 -1
- package/mobile/src/hooks/useJSONRef/fetchRefs.ts +5 -6
- package/mobile/src/model/OnClickProps.ts +6 -0
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +5 -1
- package/mobile/src/retail/api/createCaptcha.ts +1 -1
- package/mobile/src/retail/api/dadataHints/dadataHints.ts +1 -3
- package/mobile/src/retail/api/draftTasksKZO.ts +1 -0
- package/mobile/src/retail/api/feedbackById.ts +1 -1
- package/mobile/src/retail/api/saveReferalInfo.ts +9 -0
- package/mobile/src/retail/api/updateRefreshToken.ts +1 -1
- package/mobile/src/retail/api/updateUserTask.ts +11 -9
- package/mobile/src/retail/api/uploadFile.ts +1 -3
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +15 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +5 -2
- package/mobile/src/retail/components/DraftDialog/useDraftDialog.tsx +5 -11
- package/mobile/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
- package/mobile/src/retail/model/ReferalData.ts +8 -0
- package/mobile/src/retail/utils/getOrganizationParams.ts +7 -8
- package/mobile/src/ui-kit/Button/Button.tsx +6 -3
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +2 -3
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/Link/Link.tsx +2 -3
- package/mobile/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
- package/mobile/src/ui-kit/Radio/RadioProps.ts +2 -2
- package/mobile/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
- package/mobile/src/utils/getSessionQuery.ts +1 -1
- package/package.json +1 -1
- package/src/UniBlock/UniBlock.tsx +1 -1
- package/src/api/LeadServiceAPI.ts +1 -3
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +8 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +21 -1
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +43 -4
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -0
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
- package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
- package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +1 -1
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +1 -1
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +5 -1
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -0
- package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +1 -1
- package/src/components/CreditForm/CreditForm.fixture.tsx +1 -1
- package/src/components/CreditForm/useCreditFormAPI.tsx +2 -0
- package/src/components/DebitForm/getDebitCardFormTaskData.ts +5 -1
- package/src/components/DebitForm/useDebitFormAPI.tsx +2 -0
- package/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
- package/src/components/Footer/TextInformationLink.tsx +2 -2
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
- package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
- package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
- package/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
- package/src/hooks/useForm/useForm.ts +1 -1
- package/src/hooks/useJSONRef/fetchRefs.ts +5 -6
- package/src/model/OnClickProps.ts +6 -0
- package/src/retail/adaptors/getCreditFormTaskData.ts +5 -1
- package/src/retail/api/createCaptcha.ts +1 -1
- package/src/retail/api/dadataHints/dadataHints.ts +1 -3
- package/src/retail/api/draftTasksKZO.ts +1 -0
- package/src/retail/api/feedbackById.ts +1 -1
- package/src/retail/api/saveReferalInfo.ts +9 -0
- package/src/retail/api/updateRefreshToken.ts +1 -1
- package/src/retail/api/updateUserTask.ts +11 -9
- package/src/retail/api/uploadFile.ts +1 -3
- package/src/retail/components/DraftDialog/DraftDialog.tsx +15 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +5 -2
- package/src/retail/components/DraftDialog/useDraftDialog.tsx +5 -11
- package/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
- package/src/retail/model/ReferalData.ts +8 -0
- package/src/retail/utils/getOrganizationParams.ts +7 -8
- package/src/ui-kit/Button/Button.tsx +6 -3
- package/src/ui-kit/DialogManager/Dialog.tsx +2 -3
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/Link/Link.tsx +2 -3
- package/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
- package/src/ui-kit/Radio/RadioProps.ts +2 -2
- package/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
- package/src/utils/getSessionQuery.ts +1 -1
- package/bundle/model/onClick.d.ts +0 -3
- package/dist/model/onClick.d.ts +0 -3
- package/dist/model/onClick.js.map +0 -1
- package/lib/model/onClick.d.ts +0 -3
- package/lib/model/onClick.js +0 -2
- package/lib/model/onClick.js.map +0 -1
- package/mobile/bundle/model/onClick.d.ts +0 -3
- package/mobile/dist/model/onClick.d.ts +0 -3
- package/mobile/dist/model/onClick.js.map +0 -1
- package/mobile/lib/model/onClick.d.ts +0 -3
- package/mobile/lib/model/onClick.js +0 -2
- package/mobile/lib/model/onClick.js.map +0 -1
- package/mobile/src/model/onClick.ts +0 -3
- package/src/model/onClick.ts +0 -3
|
@@ -944,10 +944,10 @@
|
|
|
944
944
|
const EXCLUSIONS = ['/portal-resources']; // portal-resources are handled only at compile-time
|
|
945
945
|
const fetchRefs = async (refs) => Object.fromEntries((await Promise.allSettled(unique(refs)
|
|
946
946
|
.filter(($ref) => !EXCLUSIONS.some((_) => $ref.startsWith(_)))
|
|
947
|
-
.map(async ($ref) =>
|
|
948
|
-
$ref
|
|
949
|
-
|
|
950
|
-
|
|
947
|
+
.map(async ($ref) => {
|
|
948
|
+
refsCache[$ref] ||= await fetchJSONUnsafe($ref);
|
|
949
|
+
return [$ref, refsCache[$ref]];
|
|
950
|
+
})))
|
|
951
951
|
.filter((res) => res.status === 'fulfilled')
|
|
952
952
|
.map(({ value }) => value));
|
|
953
953
|
|
|
@@ -1044,8 +1044,7 @@
|
|
|
1044
1044
|
if (!response?.ok) {
|
|
1045
1045
|
return null;
|
|
1046
1046
|
}
|
|
1047
|
-
|
|
1048
|
-
return data;
|
|
1047
|
+
return await response.json();
|
|
1049
1048
|
}
|
|
1050
1049
|
catch (e) {
|
|
1051
1050
|
return null;
|
|
@@ -2796,7 +2795,7 @@
|
|
|
2796
2795
|
const responseHandler = getResponseHandler(responseItemHandler);
|
|
2797
2796
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
2798
2797
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
2799
|
-
|
|
2798
|
+
return globalThis
|
|
2800
2799
|
?.fetch?.(`/api/v1/suggestions/${url}`, {
|
|
2801
2800
|
method: 'POST',
|
|
2802
2801
|
mode: 'cors',
|
|
@@ -2811,7 +2810,6 @@
|
|
|
2811
2810
|
})
|
|
2812
2811
|
.then((response) => response.json())
|
|
2813
2812
|
.then(responseHandler);
|
|
2814
|
-
return result;
|
|
2815
2813
|
};
|
|
2816
2814
|
|
|
2817
2815
|
const NAME_HINTS_LIST_OPTIONS = {
|
|
@@ -3192,7 +3190,7 @@
|
|
|
3192
3190
|
.filter((_) => !_.status)
|
|
3193
3191
|
.map((_) => _.short?.toLowerCase())
|
|
3194
3192
|
.join(', ');
|
|
3195
|
-
|
|
3193
|
+
return [
|
|
3196
3194
|
buildScheduleText({
|
|
3197
3195
|
workTime: workingWeekday?.workTime,
|
|
3198
3196
|
lunchHour: workingWeekday?.lunchHour,
|
|
@@ -3200,7 +3198,6 @@
|
|
|
3200
3198
|
}),
|
|
3201
3199
|
buildScheduleText({ workTime: workingSaturday?.workTime, lunchHour: workingSaturday?.lunchHour, daysOff }, true),
|
|
3202
3200
|
].filter(Boolean);
|
|
3203
|
-
return rows;
|
|
3204
3201
|
};
|
|
3205
3202
|
|
|
3206
3203
|
const WEEKDAY_MAP = [
|
|
@@ -3934,7 +3931,7 @@
|
|
|
3934
3931
|
|
|
3935
3932
|
const feedbackById = async (id, convertToPng = false) => {
|
|
3936
3933
|
const response = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}&convertToPngFlg=${convertToPng}`, 'GET');
|
|
3937
|
-
return response ?
|
|
3934
|
+
return response ? response.blob() : new Blob();
|
|
3938
3935
|
};
|
|
3939
3936
|
|
|
3940
3937
|
const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
|
|
@@ -4203,10 +4200,10 @@
|
|
|
4203
4200
|
const CalculatorCredit = UniBlock(({ className, title, calcSource, buttons, footnote, paramsViewSettings, defaultParams, onChange, ...rest }) => {
|
|
4204
4201
|
const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
|
|
4205
4202
|
const handleChange = useCallback((params) => {
|
|
4206
|
-
const
|
|
4203
|
+
const _calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
|
|
4207
4204
|
onChange?.({
|
|
4208
4205
|
...params,
|
|
4209
|
-
monthlyPayment:
|
|
4206
|
+
monthlyPayment: _calcParams.monthlyPayment,
|
|
4210
4207
|
rate: defaultParamsCals?.rate ?? 0,
|
|
4211
4208
|
});
|
|
4212
4209
|
}, [paramsViewSettings, calcSource]);
|
|
@@ -5039,6 +5036,8 @@
|
|
|
5039
5036
|
return res || undefined;
|
|
5040
5037
|
};
|
|
5041
5038
|
|
|
5039
|
+
const saveReferalInfo = (body) => doRequest('/referal/saveReferalInfo', 'POST', body);
|
|
5040
|
+
|
|
5042
5041
|
const updateUserProfile = (body) => doRequest('/user-data/updateUserProfile', 'PUT', body);
|
|
5043
5042
|
|
|
5044
5043
|
const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
|
|
@@ -5079,11 +5078,10 @@
|
|
|
5079
5078
|
}
|
|
5080
5079
|
}, [onTick, onEnd]);
|
|
5081
5080
|
const { start } = useInterval(handleTick, period);
|
|
5082
|
-
|
|
5081
|
+
return useCallback((_) => {
|
|
5083
5082
|
counter.current = _;
|
|
5084
5083
|
start();
|
|
5085
5084
|
}, []);
|
|
5086
|
-
return restart;
|
|
5087
5085
|
}
|
|
5088
5086
|
|
|
5089
5087
|
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body)
|
|
@@ -5124,7 +5122,7 @@
|
|
|
5124
5122
|
.then((res) => res.text())
|
|
5125
5123
|
.then((text) => text !== 'ERROR');
|
|
5126
5124
|
|
|
5127
|
-
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ?
|
|
5125
|
+
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ? res.blob() : new Blob()));
|
|
5128
5126
|
|
|
5129
5127
|
const CaptchaDialog = JSX(({ phoneNumber, sendCode, onClose }) => {
|
|
5130
5128
|
const [captcha, setCaptcha] = useState('');
|
|
@@ -5525,10 +5523,10 @@
|
|
|
5525
5523
|
|
|
5526
5524
|
const parseDraftTask = (task) => {
|
|
5527
5525
|
const participant = task.participants[0];
|
|
5528
|
-
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
|
|
5526
|
+
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, taskSource, } = task;
|
|
5529
5527
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
5530
5528
|
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, incomeCertificateCd, profile, } = participant;
|
|
5531
|
-
|
|
5529
|
+
const taskFromDraft = {
|
|
5532
5530
|
currency: currency?.key,
|
|
5533
5531
|
paymentSystem: getSelectValue(paymentSystem),
|
|
5534
5532
|
cardCategory: getSelectValue(cardCategory),
|
|
@@ -5585,27 +5583,37 @@
|
|
|
5585
5583
|
...getParticipantContacts(participantContacts),
|
|
5586
5584
|
...getParticipantGender(genderCd),
|
|
5587
5585
|
};
|
|
5586
|
+
return [taskFromDraft, taskSource === 'ReferalSF'];
|
|
5588
5587
|
};
|
|
5589
5588
|
|
|
5590
|
-
const DraftDialog = JSX(function ({ task, isFromLead = false, sendAspects = noop, onClose = noop, }) {
|
|
5589
|
+
const DraftDialog = JSX(function ({ task, isFromLead = false, isDebit = false, sendAspects = noop, onClose = noop, }) {
|
|
5591
5590
|
const retailFormStore = useRetailFormStore();
|
|
5592
5591
|
const navigator = locationNavigator();
|
|
5593
5592
|
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
5594
5593
|
const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
5595
5594
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
5596
|
-
const
|
|
5595
|
+
const getNextStepLink = () => {
|
|
5596
|
+
if (isDebit) {
|
|
5597
|
+
return '/debit-card-lead';
|
|
5598
|
+
}
|
|
5599
|
+
else if (isCredit) {
|
|
5600
|
+
return '/credit-lead';
|
|
5601
|
+
}
|
|
5602
|
+
return '/credit-card-lead';
|
|
5603
|
+
};
|
|
5597
5604
|
const { id: participantId, profile } = participants[0];
|
|
5598
5605
|
const handleGoToDraft = useCallback(() => {
|
|
5599
|
-
const taskFromDraft = parseDraftTask(task);
|
|
5606
|
+
const [taskFromDraft, isTaskWithReferalCode] = parseDraftTask(task);
|
|
5600
5607
|
retailFormStore.participantId = participantId ?? null;
|
|
5601
5608
|
retailFormStore.taskId = taskId;
|
|
5602
5609
|
retailFormStore.profileId = profile?.id ?? null;
|
|
5603
5610
|
retailFormStore.programId = programmId;
|
|
5604
5611
|
retailFormStore.leadForm = taskFromDraft;
|
|
5612
|
+
retailFormStore.referalData = { isTaskWithReferalCode };
|
|
5605
5613
|
if (profile?.id) {
|
|
5606
5614
|
sendAspects(profile.id, taskId);
|
|
5607
5615
|
}
|
|
5608
|
-
navigator.assign(
|
|
5616
|
+
navigator.assign(getNextStepLink());
|
|
5609
5617
|
}, []);
|
|
5610
5618
|
const handleGoToNewTask = useCallback(() => {
|
|
5611
5619
|
navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
|
|
@@ -5628,8 +5636,10 @@
|
|
|
5628
5636
|
const { open: openDraftDialog } = useDialog(DraftDialog);
|
|
5629
5637
|
const { open: openEmptyDraftDialog } = useDialog(EmptyDraftDialog);
|
|
5630
5638
|
return {
|
|
5631
|
-
open: ({ task, isFromLead, onClose, sendAspects }) => {
|
|
5632
|
-
task
|
|
5639
|
+
open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
|
|
5640
|
+
task
|
|
5641
|
+
? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
|
|
5642
|
+
: openEmptyDraftDialog({});
|
|
5633
5643
|
},
|
|
5634
5644
|
};
|
|
5635
5645
|
};
|
|
@@ -5652,14 +5662,15 @@
|
|
|
5652
5662
|
};
|
|
5653
5663
|
|
|
5654
5664
|
/* eslint-disable camelcase */
|
|
5655
|
-
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
5665
|
+
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, isTaskWithReferalCode, }) => {
|
|
5656
5666
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
5657
5667
|
const navigator = locationNavigator();
|
|
5668
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
5658
5669
|
return {
|
|
5659
5670
|
sendToBank: true,
|
|
5660
5671
|
taskKind: 'SHORT',
|
|
5661
5672
|
task: {
|
|
5662
|
-
taskSource
|
|
5673
|
+
taskSource,
|
|
5663
5674
|
id: taskId,
|
|
5664
5675
|
participants: [
|
|
5665
5676
|
{
|
|
@@ -5685,12 +5696,13 @@
|
|
|
5685
5696
|
},
|
|
5686
5697
|
};
|
|
5687
5698
|
};
|
|
5688
|
-
const getDebitLeadFormTaskData = (formData, programId) => {
|
|
5699
|
+
const getDebitLeadFormTaskData = (formData, programId, isTaskWithReferalCode) => {
|
|
5689
5700
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
5690
5701
|
const navigator = locationNavigator();
|
|
5702
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
5691
5703
|
return {
|
|
5692
5704
|
task: {
|
|
5693
|
-
taskSource
|
|
5705
|
+
taskSource,
|
|
5694
5706
|
creditProgram: {
|
|
5695
5707
|
code: debitProgrammIdToCardCodesMap[programId],
|
|
5696
5708
|
},
|
|
@@ -5722,14 +5734,13 @@
|
|
|
5722
5734
|
|
|
5723
5735
|
const useSaveUserData = () => {
|
|
5724
5736
|
const leadFormStore = useLeadFormStore();
|
|
5725
|
-
|
|
5737
|
+
return useCallback(({ participantId, taskId, profileId, programId: programNumber, formData }) => {
|
|
5726
5738
|
leadFormStore.participantId = participantId;
|
|
5727
5739
|
leadFormStore.taskId = taskId;
|
|
5728
5740
|
leadFormStore.profileId = profileId;
|
|
5729
5741
|
leadFormStore.programId = programNumber;
|
|
5730
5742
|
leadFormStore.leadForm = formData;
|
|
5731
5743
|
}, []);
|
|
5732
|
-
return saveUserData;
|
|
5733
5744
|
};
|
|
5734
5745
|
|
|
5735
5746
|
const getAspectsWithInclude = (data, include) => data?.map(({ aspectName, params }) => ({
|
|
@@ -5739,7 +5750,7 @@
|
|
|
5739
5750
|
|
|
5740
5751
|
const useSendLeadFormAspects = ({ data }) => {
|
|
5741
5752
|
const aspects = useAspects();
|
|
5742
|
-
|
|
5753
|
+
return useCallback((ProfileId, TaskId) => {
|
|
5743
5754
|
const snowplowParams = JSON.stringify({
|
|
5744
5755
|
ProfileId,
|
|
5745
5756
|
TaskId,
|
|
@@ -5750,7 +5761,6 @@
|
|
|
5750
5761
|
ev: {},
|
|
5751
5762
|
});
|
|
5752
5763
|
}, [data]);
|
|
5753
|
-
return sendAspects;
|
|
5754
5764
|
};
|
|
5755
5765
|
|
|
5756
5766
|
/* eslint-disable max-lines */
|
|
@@ -5759,6 +5769,7 @@
|
|
|
5759
5769
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
5760
5770
|
const [ok, setOK] = useState();
|
|
5761
5771
|
const saveUserData = useSaveUserData();
|
|
5772
|
+
const leadFormStore = useLeadFormStore();
|
|
5762
5773
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
5763
5774
|
const navigator = locationNavigator();
|
|
5764
5775
|
const goToNextStep = useCallback(() => {
|
|
@@ -5774,6 +5785,7 @@
|
|
|
5774
5785
|
const profileId = await createUserProfile({
|
|
5775
5786
|
profile: { phone: formatPhone(transformedFormData.phone) },
|
|
5776
5787
|
});
|
|
5788
|
+
const referalData = leadFormStore.referalData;
|
|
5777
5789
|
if (!profileId) {
|
|
5778
5790
|
throw new Error();
|
|
5779
5791
|
}
|
|
@@ -5783,6 +5795,7 @@
|
|
|
5783
5795
|
profileId,
|
|
5784
5796
|
formData: transformedFormData,
|
|
5785
5797
|
productType,
|
|
5798
|
+
referalData,
|
|
5786
5799
|
saveUserData,
|
|
5787
5800
|
sendAspects,
|
|
5788
5801
|
});
|
|
@@ -5803,6 +5816,7 @@
|
|
|
5803
5816
|
draftDialog.open({
|
|
5804
5817
|
task,
|
|
5805
5818
|
isFromLead: true,
|
|
5819
|
+
isDebit: productType === 'debitCard',
|
|
5806
5820
|
sendAspects,
|
|
5807
5821
|
onClose: sendCurrentTask,
|
|
5808
5822
|
});
|
|
@@ -5837,14 +5851,15 @@
|
|
|
5837
5851
|
.filter((_) => formData[_])
|
|
5838
5852
|
.map((_) => consents[_]?.text);
|
|
5839
5853
|
};
|
|
5840
|
-
const updateUserData = async ({ programId, profileId, formData, productType, saveUserData, sendAspects, }) => {
|
|
5854
|
+
const updateUserData = async ({ programId, profileId, formData, productType, referalData, saveUserData, sendAspects, }) => {
|
|
5841
5855
|
let taskId;
|
|
5842
5856
|
let participantId;
|
|
5843
5857
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
5858
|
+
const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
|
|
5844
5859
|
await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
|
|
5845
5860
|
try {
|
|
5846
5861
|
if (productType === 'debitCard') {
|
|
5847
|
-
const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId));
|
|
5862
|
+
const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId, isTaskWithReferalCode));
|
|
5848
5863
|
taskId = debitData.taskId;
|
|
5849
5864
|
participantId = debitData.participantId;
|
|
5850
5865
|
}
|
|
@@ -5860,8 +5875,15 @@
|
|
|
5860
5875
|
taskId,
|
|
5861
5876
|
profileId,
|
|
5862
5877
|
formData,
|
|
5878
|
+
isTaskWithReferalCode,
|
|
5863
5879
|
}));
|
|
5864
5880
|
}
|
|
5881
|
+
if (isTaskWithReferalCode) {
|
|
5882
|
+
await saveReferalInfo({
|
|
5883
|
+
taskId,
|
|
5884
|
+
...referalData,
|
|
5885
|
+
});
|
|
5886
|
+
}
|
|
5865
5887
|
sendAspects(profileId, taskId);
|
|
5866
5888
|
saveUserData({ participantId, taskId, profileId, programId, formData });
|
|
5867
5889
|
}
|
|
@@ -5956,7 +5978,7 @@
|
|
|
5956
5978
|
const fd = new FormData();
|
|
5957
5979
|
fd.append('documentCategory', documentCategory);
|
|
5958
5980
|
fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
|
|
5959
|
-
|
|
5981
|
+
return await globalThis
|
|
5960
5982
|
?.fetch?.(`/light-api-cash/v1/file`, {
|
|
5961
5983
|
method: 'POST',
|
|
5962
5984
|
headers: {
|
|
@@ -5966,7 +5988,6 @@
|
|
|
5966
5988
|
body: fd,
|
|
5967
5989
|
})
|
|
5968
5990
|
.then((response) => response.json());
|
|
5969
|
-
return res;
|
|
5970
5991
|
};
|
|
5971
5992
|
|
|
5972
5993
|
const parseEsiaProfile = async (esiaProfile, isDebit) => {
|
|
@@ -6125,9 +6146,11 @@
|
|
|
6125
6146
|
return data.every(Boolean);
|
|
6126
6147
|
};
|
|
6127
6148
|
|
|
6149
|
+
/* eslint-disable max-lines-per-function */
|
|
6128
6150
|
const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }) => {
|
|
6129
6151
|
const leadFormStore = useLeadFormStore();
|
|
6130
6152
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
6153
|
+
const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
|
|
6131
6154
|
const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
|
|
6132
6155
|
const requestEsiaProfile = useCallback(async (code, state) => {
|
|
6133
6156
|
setEsiaStatus(EsiaStatuses.Pending);
|
|
@@ -6153,9 +6176,23 @@
|
|
|
6153
6176
|
}, []);
|
|
6154
6177
|
useEffect(() => {
|
|
6155
6178
|
leadFormStore.productType = productType;
|
|
6156
|
-
const
|
|
6157
|
-
|
|
6158
|
-
|
|
6179
|
+
const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(leadFormStore.referalData, queryFromStorage);
|
|
6180
|
+
if (referalCode) {
|
|
6181
|
+
leadFormStore.referalData = {
|
|
6182
|
+
refererCode,
|
|
6183
|
+
referalCode,
|
|
6184
|
+
productId,
|
|
6185
|
+
isTaskWithReferalCode: true,
|
|
6186
|
+
};
|
|
6187
|
+
}
|
|
6188
|
+
else if (!code) {
|
|
6189
|
+
leadFormStore.referalData = {
|
|
6190
|
+
refererCode: null,
|
|
6191
|
+
referalCode: null,
|
|
6192
|
+
productId: null,
|
|
6193
|
+
isTaskWithReferalCode: false,
|
|
6194
|
+
};
|
|
6195
|
+
}
|
|
6159
6196
|
if (code && state) {
|
|
6160
6197
|
requestEsiaProfile(code, state);
|
|
6161
6198
|
}
|
|
@@ -6163,9 +6200,24 @@
|
|
|
6163
6200
|
sessionStorage.removeItem('accessToken');
|
|
6164
6201
|
sessionStorage.removeItem('refreshToken');
|
|
6165
6202
|
}
|
|
6166
|
-
}, []);
|
|
6203
|
+
}, [queryFromStorage]);
|
|
6167
6204
|
return initialFormState;
|
|
6168
6205
|
};
|
|
6206
|
+
const getLeadQueryParams = (referalData, queryFromStorage) => {
|
|
6207
|
+
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
6208
|
+
const code = queryStorage.get('code');
|
|
6209
|
+
const state = queryStorage.get('state');
|
|
6210
|
+
const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
|
|
6211
|
+
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
6212
|
+
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
6213
|
+
return {
|
|
6214
|
+
code,
|
|
6215
|
+
state,
|
|
6216
|
+
referalCode,
|
|
6217
|
+
refererCode,
|
|
6218
|
+
productId,
|
|
6219
|
+
};
|
|
6220
|
+
};
|
|
6169
6221
|
|
|
6170
6222
|
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
6171
6223
|
const [esiaStatus, setEsiaStatus] = useState();
|
|
@@ -7587,7 +7639,7 @@
|
|
|
7587
7639
|
// eslint-disable-next-line camelcase
|
|
7588
7640
|
access_token: accessToken,
|
|
7589
7641
|
});
|
|
7590
|
-
if (res?.status
|
|
7642
|
+
if (Number(res?.status) === 401) {
|
|
7591
7643
|
navigator.assign(PORTAL_NATURAL_URL);
|
|
7592
7644
|
}
|
|
7593
7645
|
if (res?.ok) {
|
|
@@ -8037,13 +8089,14 @@
|
|
|
8037
8089
|
: {};
|
|
8038
8090
|
};
|
|
8039
8091
|
|
|
8040
|
-
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
8092
|
+
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
|
|
8041
8093
|
const navigator = locationNavigator();
|
|
8094
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
8042
8095
|
return {
|
|
8043
8096
|
sendToBank: true,
|
|
8044
8097
|
taskKind: 'UNITED',
|
|
8045
8098
|
task: {
|
|
8046
|
-
taskSource
|
|
8099
|
+
taskSource,
|
|
8047
8100
|
id: taskId,
|
|
8048
8101
|
...getOfficeCode(formData),
|
|
8049
8102
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
@@ -8106,6 +8159,7 @@
|
|
|
8106
8159
|
const handleSubmit = useCallback(async (formData) => {
|
|
8107
8160
|
startSending();
|
|
8108
8161
|
retailFormStore.leadForm = formData;
|
|
8162
|
+
const referalData = retailFormStore.referalData;
|
|
8109
8163
|
try {
|
|
8110
8164
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
8111
8165
|
if (taskId && profileId && participantId) {
|
|
@@ -8115,6 +8169,7 @@
|
|
|
8115
8169
|
profileId,
|
|
8116
8170
|
step,
|
|
8117
8171
|
formData: formData,
|
|
8172
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
8118
8173
|
}));
|
|
8119
8174
|
resetForm(response);
|
|
8120
8175
|
}
|
|
@@ -8771,13 +8826,14 @@
|
|
|
8771
8826
|
};
|
|
8772
8827
|
};
|
|
8773
8828
|
|
|
8774
|
-
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
8829
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
|
|
8775
8830
|
const navigator = locationNavigator();
|
|
8831
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
8776
8832
|
return {
|
|
8777
8833
|
sendToBank: true,
|
|
8778
8834
|
taskKind: 'UNITED',
|
|
8779
8835
|
task: {
|
|
8780
|
-
taskSource
|
|
8836
|
+
taskSource,
|
|
8781
8837
|
id: taskId,
|
|
8782
8838
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
8783
8839
|
participants: [
|
|
@@ -8866,6 +8922,7 @@
|
|
|
8866
8922
|
const handleSubmit = useCallback(async (formData) => {
|
|
8867
8923
|
startSending();
|
|
8868
8924
|
retailFormStore.leadForm = formData;
|
|
8925
|
+
const referalData = retailFormStore.referalData;
|
|
8869
8926
|
try {
|
|
8870
8927
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
8871
8928
|
if (taskId && profileId && participantId) {
|
|
@@ -8875,6 +8932,7 @@
|
|
|
8875
8932
|
profileId,
|
|
8876
8933
|
step,
|
|
8877
8934
|
formData: formData,
|
|
8935
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
8878
8936
|
}));
|
|
8879
8937
|
resetForm(response);
|
|
8880
8938
|
}
|
|
@@ -10321,7 +10379,7 @@
|
|
|
10321
10379
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10322
10380
|
});
|
|
10323
10381
|
|
|
10324
|
-
const packageVersion = "0.14.
|
|
10382
|
+
const packageVersion = "0.14.863";
|
|
10325
10383
|
|
|
10326
10384
|
exports.Blocks = Blocks;
|
|
10327
10385
|
exports.ContentPage = ContentPage;
|