@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -936,10 +936,10 @@
|
|
|
936
936
|
const EXCLUSIONS = ['/portal-resources']; // portal-resources are handled only at compile-time
|
|
937
937
|
const fetchRefs = async (refs) => Object.fromEntries((await Promise.allSettled(unique(refs)
|
|
938
938
|
.filter(($ref) => !EXCLUSIONS.some((_) => $ref.startsWith(_)))
|
|
939
|
-
.map(async ($ref) =>
|
|
940
|
-
$ref
|
|
941
|
-
|
|
942
|
-
|
|
939
|
+
.map(async ($ref) => {
|
|
940
|
+
refsCache[$ref] ||= await fetchJSONUnsafe($ref);
|
|
941
|
+
return [$ref, refsCache[$ref]];
|
|
942
|
+
})))
|
|
943
943
|
.filter((res) => res.status === 'fulfilled')
|
|
944
944
|
.map(({ value }) => value));
|
|
945
945
|
|
|
@@ -1036,8 +1036,7 @@
|
|
|
1036
1036
|
if (!response?.ok) {
|
|
1037
1037
|
return null;
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1040
|
-
return data;
|
|
1039
|
+
return await response.json();
|
|
1041
1040
|
}
|
|
1042
1041
|
catch (e) {
|
|
1043
1042
|
return null;
|
|
@@ -2788,7 +2787,7 @@
|
|
|
2788
2787
|
const responseHandler = getResponseHandler(responseItemHandler);
|
|
2789
2788
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
2790
2789
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
2791
|
-
|
|
2790
|
+
return globalThis
|
|
2792
2791
|
?.fetch?.(`/api/v1/suggestions/${url}`, {
|
|
2793
2792
|
method: 'POST',
|
|
2794
2793
|
mode: 'cors',
|
|
@@ -2803,7 +2802,6 @@
|
|
|
2803
2802
|
})
|
|
2804
2803
|
.then((response) => response.json())
|
|
2805
2804
|
.then(responseHandler);
|
|
2806
|
-
return result;
|
|
2807
2805
|
};
|
|
2808
2806
|
|
|
2809
2807
|
const NAME_HINTS_LIST_OPTIONS = {
|
|
@@ -3184,7 +3182,7 @@
|
|
|
3184
3182
|
.filter((_) => !_.status)
|
|
3185
3183
|
.map((_) => _.short?.toLowerCase())
|
|
3186
3184
|
.join(', ');
|
|
3187
|
-
|
|
3185
|
+
return [
|
|
3188
3186
|
buildScheduleText({
|
|
3189
3187
|
workTime: workingWeekday?.workTime,
|
|
3190
3188
|
lunchHour: workingWeekday?.lunchHour,
|
|
@@ -3192,7 +3190,6 @@
|
|
|
3192
3190
|
}),
|
|
3193
3191
|
buildScheduleText({ workTime: workingSaturday?.workTime, lunchHour: workingSaturday?.lunchHour, daysOff }, true),
|
|
3194
3192
|
].filter(Boolean);
|
|
3195
|
-
return rows;
|
|
3196
3193
|
};
|
|
3197
3194
|
|
|
3198
3195
|
const WEEKDAY_MAP = [
|
|
@@ -3926,7 +3923,7 @@
|
|
|
3926
3923
|
|
|
3927
3924
|
const feedbackById = async (id, convertToPng = false) => {
|
|
3928
3925
|
const response = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}&convertToPngFlg=${convertToPng}`, 'GET');
|
|
3929
|
-
return response ?
|
|
3926
|
+
return response ? response.blob() : new Blob();
|
|
3930
3927
|
};
|
|
3931
3928
|
|
|
3932
3929
|
const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
|
|
@@ -4195,10 +4192,10 @@
|
|
|
4195
4192
|
const CalculatorCredit = UniBlock(({ className, title, calcSource, buttons, footnote, paramsViewSettings, defaultParams, onChange, ...rest }) => {
|
|
4196
4193
|
const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
|
|
4197
4194
|
const handleChange = useCallback((params) => {
|
|
4198
|
-
const
|
|
4195
|
+
const _calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
|
|
4199
4196
|
onChange?.({
|
|
4200
4197
|
...params,
|
|
4201
|
-
monthlyPayment:
|
|
4198
|
+
monthlyPayment: _calcParams.monthlyPayment,
|
|
4202
4199
|
rate: defaultParamsCals?.rate ?? 0,
|
|
4203
4200
|
});
|
|
4204
4201
|
}, [paramsViewSettings, calcSource]);
|
|
@@ -5031,6 +5028,8 @@
|
|
|
5031
5028
|
return res || undefined;
|
|
5032
5029
|
};
|
|
5033
5030
|
|
|
5031
|
+
const saveReferalInfo = (body) => doRequest('/referal/saveReferalInfo', 'POST', body);
|
|
5032
|
+
|
|
5034
5033
|
const updateUserProfile = (body) => doRequest('/user-data/updateUserProfile', 'PUT', body);
|
|
5035
5034
|
|
|
5036
5035
|
const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
|
|
@@ -5071,11 +5070,10 @@
|
|
|
5071
5070
|
}
|
|
5072
5071
|
}, [onTick, onEnd]);
|
|
5073
5072
|
const { start } = useInterval(handleTick, period);
|
|
5074
|
-
|
|
5073
|
+
return useCallback((_) => {
|
|
5075
5074
|
counter.current = _;
|
|
5076
5075
|
start();
|
|
5077
5076
|
}, []);
|
|
5078
|
-
return restart;
|
|
5079
5077
|
}
|
|
5080
5078
|
|
|
5081
5079
|
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body)
|
|
@@ -5116,7 +5114,7 @@
|
|
|
5116
5114
|
.then((res) => res.text())
|
|
5117
5115
|
.then((text) => text !== 'ERROR');
|
|
5118
5116
|
|
|
5119
|
-
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ?
|
|
5117
|
+
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ? res.blob() : new Blob()));
|
|
5120
5118
|
|
|
5121
5119
|
const CaptchaDialog = JSX(({ phoneNumber, sendCode, onClose }) => {
|
|
5122
5120
|
const [captcha, setCaptcha] = useState('');
|
|
@@ -5517,10 +5515,10 @@
|
|
|
5517
5515
|
|
|
5518
5516
|
const parseDraftTask = (task) => {
|
|
5519
5517
|
const participant = task.participants[0];
|
|
5520
|
-
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
|
|
5518
|
+
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, taskSource, } = task;
|
|
5521
5519
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
5522
5520
|
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;
|
|
5523
|
-
|
|
5521
|
+
const taskFromDraft = {
|
|
5524
5522
|
currency: currency?.key,
|
|
5525
5523
|
paymentSystem: getSelectValue(paymentSystem),
|
|
5526
5524
|
cardCategory: getSelectValue(cardCategory),
|
|
@@ -5577,27 +5575,37 @@
|
|
|
5577
5575
|
...getParticipantContacts(participantContacts),
|
|
5578
5576
|
...getParticipantGender(genderCd),
|
|
5579
5577
|
};
|
|
5578
|
+
return [taskFromDraft, taskSource === 'ReferalSF'];
|
|
5580
5579
|
};
|
|
5581
5580
|
|
|
5582
|
-
const DraftDialog = JSX(function ({ task, isFromLead = false, sendAspects = noop, onClose = noop, }) {
|
|
5581
|
+
const DraftDialog = JSX(function ({ task, isFromLead = false, isDebit = false, sendAspects = noop, onClose = noop, }) {
|
|
5583
5582
|
const retailFormStore = useRetailFormStore();
|
|
5584
5583
|
const navigator = locationNavigator();
|
|
5585
5584
|
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
5586
5585
|
const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
5587
5586
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
5588
|
-
const
|
|
5587
|
+
const getNextStepLink = () => {
|
|
5588
|
+
if (isDebit) {
|
|
5589
|
+
return '/debit-card-lead';
|
|
5590
|
+
}
|
|
5591
|
+
else if (isCredit) {
|
|
5592
|
+
return '/credit-lead';
|
|
5593
|
+
}
|
|
5594
|
+
return '/credit-card-lead';
|
|
5595
|
+
};
|
|
5589
5596
|
const { id: participantId, profile } = participants[0];
|
|
5590
5597
|
const handleGoToDraft = useCallback(() => {
|
|
5591
|
-
const taskFromDraft = parseDraftTask(task);
|
|
5598
|
+
const [taskFromDraft, isTaskWithReferalCode] = parseDraftTask(task);
|
|
5592
5599
|
retailFormStore.participantId = participantId ?? null;
|
|
5593
5600
|
retailFormStore.taskId = taskId;
|
|
5594
5601
|
retailFormStore.profileId = profile?.id ?? null;
|
|
5595
5602
|
retailFormStore.programId = programmId;
|
|
5596
5603
|
retailFormStore.leadForm = taskFromDraft;
|
|
5604
|
+
retailFormStore.referalData = { isTaskWithReferalCode };
|
|
5597
5605
|
if (profile?.id) {
|
|
5598
5606
|
sendAspects(profile.id, taskId);
|
|
5599
5607
|
}
|
|
5600
|
-
navigator.assign(
|
|
5608
|
+
navigator.assign(getNextStepLink());
|
|
5601
5609
|
}, []);
|
|
5602
5610
|
const handleGoToNewTask = useCallback(() => {
|
|
5603
5611
|
navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
|
|
@@ -5620,8 +5628,10 @@
|
|
|
5620
5628
|
const { open: openDraftDialog } = useDialog(DraftDialog);
|
|
5621
5629
|
const { open: openEmptyDraftDialog } = useDialog(EmptyDraftDialog);
|
|
5622
5630
|
return {
|
|
5623
|
-
open: ({ task, isFromLead, onClose, sendAspects }) => {
|
|
5624
|
-
task
|
|
5631
|
+
open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
|
|
5632
|
+
task
|
|
5633
|
+
? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
|
|
5634
|
+
: openEmptyDraftDialog({});
|
|
5625
5635
|
},
|
|
5626
5636
|
};
|
|
5627
5637
|
};
|
|
@@ -5644,14 +5654,15 @@
|
|
|
5644
5654
|
};
|
|
5645
5655
|
|
|
5646
5656
|
/* eslint-disable camelcase */
|
|
5647
|
-
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
5657
|
+
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, isTaskWithReferalCode, }) => {
|
|
5648
5658
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
5649
5659
|
const navigator = locationNavigator();
|
|
5660
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
5650
5661
|
return {
|
|
5651
5662
|
sendToBank: true,
|
|
5652
5663
|
taskKind: 'SHORT',
|
|
5653
5664
|
task: {
|
|
5654
|
-
taskSource
|
|
5665
|
+
taskSource,
|
|
5655
5666
|
id: taskId,
|
|
5656
5667
|
participants: [
|
|
5657
5668
|
{
|
|
@@ -5677,12 +5688,13 @@
|
|
|
5677
5688
|
},
|
|
5678
5689
|
};
|
|
5679
5690
|
};
|
|
5680
|
-
const getDebitLeadFormTaskData = (formData, programId) => {
|
|
5691
|
+
const getDebitLeadFormTaskData = (formData, programId, isTaskWithReferalCode) => {
|
|
5681
5692
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
5682
5693
|
const navigator = locationNavigator();
|
|
5694
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
5683
5695
|
return {
|
|
5684
5696
|
task: {
|
|
5685
|
-
taskSource
|
|
5697
|
+
taskSource,
|
|
5686
5698
|
creditProgram: {
|
|
5687
5699
|
code: debitProgrammIdToCardCodesMap[programId],
|
|
5688
5700
|
},
|
|
@@ -5714,14 +5726,13 @@
|
|
|
5714
5726
|
|
|
5715
5727
|
const useSaveUserData = () => {
|
|
5716
5728
|
const leadFormStore = useLeadFormStore();
|
|
5717
|
-
|
|
5729
|
+
return useCallback(({ participantId, taskId, profileId, programId: programNumber, formData }) => {
|
|
5718
5730
|
leadFormStore.participantId = participantId;
|
|
5719
5731
|
leadFormStore.taskId = taskId;
|
|
5720
5732
|
leadFormStore.profileId = profileId;
|
|
5721
5733
|
leadFormStore.programId = programNumber;
|
|
5722
5734
|
leadFormStore.leadForm = formData;
|
|
5723
5735
|
}, []);
|
|
5724
|
-
return saveUserData;
|
|
5725
5736
|
};
|
|
5726
5737
|
|
|
5727
5738
|
const getAspectsWithInclude = (data, include) => data?.map(({ aspectName, params }) => ({
|
|
@@ -5731,7 +5742,7 @@
|
|
|
5731
5742
|
|
|
5732
5743
|
const useSendLeadFormAspects = ({ data }) => {
|
|
5733
5744
|
const aspects = useAspects();
|
|
5734
|
-
|
|
5745
|
+
return useCallback((ProfileId, TaskId) => {
|
|
5735
5746
|
const snowplowParams = JSON.stringify({
|
|
5736
5747
|
ProfileId,
|
|
5737
5748
|
TaskId,
|
|
@@ -5742,7 +5753,6 @@
|
|
|
5742
5753
|
ev: {},
|
|
5743
5754
|
});
|
|
5744
5755
|
}, [data]);
|
|
5745
|
-
return sendAspects;
|
|
5746
5756
|
};
|
|
5747
5757
|
|
|
5748
5758
|
/* eslint-disable max-lines */
|
|
@@ -5751,6 +5761,7 @@
|
|
|
5751
5761
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
5752
5762
|
const [ok, setOK] = useState();
|
|
5753
5763
|
const saveUserData = useSaveUserData();
|
|
5764
|
+
const leadFormStore = useLeadFormStore();
|
|
5754
5765
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
5755
5766
|
const navigator = locationNavigator();
|
|
5756
5767
|
const goToNextStep = useCallback(() => {
|
|
@@ -5766,6 +5777,7 @@
|
|
|
5766
5777
|
const profileId = await createUserProfile({
|
|
5767
5778
|
profile: { phone: formatPhone(transformedFormData.phone) },
|
|
5768
5779
|
});
|
|
5780
|
+
const referalData = leadFormStore.referalData;
|
|
5769
5781
|
if (!profileId) {
|
|
5770
5782
|
throw new Error();
|
|
5771
5783
|
}
|
|
@@ -5775,6 +5787,7 @@
|
|
|
5775
5787
|
profileId,
|
|
5776
5788
|
formData: transformedFormData,
|
|
5777
5789
|
productType,
|
|
5790
|
+
referalData,
|
|
5778
5791
|
saveUserData,
|
|
5779
5792
|
sendAspects,
|
|
5780
5793
|
});
|
|
@@ -5795,6 +5808,7 @@
|
|
|
5795
5808
|
draftDialog.open({
|
|
5796
5809
|
task,
|
|
5797
5810
|
isFromLead: true,
|
|
5811
|
+
isDebit: productType === 'debitCard',
|
|
5798
5812
|
sendAspects,
|
|
5799
5813
|
onClose: sendCurrentTask,
|
|
5800
5814
|
});
|
|
@@ -5829,14 +5843,15 @@
|
|
|
5829
5843
|
.filter((_) => formData[_])
|
|
5830
5844
|
.map((_) => consents[_]?.text);
|
|
5831
5845
|
};
|
|
5832
|
-
const updateUserData = async ({ programId, profileId, formData, productType, saveUserData, sendAspects, }) => {
|
|
5846
|
+
const updateUserData = async ({ programId, profileId, formData, productType, referalData, saveUserData, sendAspects, }) => {
|
|
5833
5847
|
let taskId;
|
|
5834
5848
|
let participantId;
|
|
5835
5849
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
5850
|
+
const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
|
|
5836
5851
|
await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
|
|
5837
5852
|
try {
|
|
5838
5853
|
if (productType === 'debitCard') {
|
|
5839
|
-
const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId));
|
|
5854
|
+
const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId, isTaskWithReferalCode));
|
|
5840
5855
|
taskId = debitData.taskId;
|
|
5841
5856
|
participantId = debitData.participantId;
|
|
5842
5857
|
}
|
|
@@ -5852,8 +5867,15 @@
|
|
|
5852
5867
|
taskId,
|
|
5853
5868
|
profileId,
|
|
5854
5869
|
formData,
|
|
5870
|
+
isTaskWithReferalCode,
|
|
5855
5871
|
}));
|
|
5856
5872
|
}
|
|
5873
|
+
if (isTaskWithReferalCode) {
|
|
5874
|
+
await saveReferalInfo({
|
|
5875
|
+
taskId,
|
|
5876
|
+
...referalData,
|
|
5877
|
+
});
|
|
5878
|
+
}
|
|
5857
5879
|
sendAspects(profileId, taskId);
|
|
5858
5880
|
saveUserData({ participantId, taskId, profileId, programId, formData });
|
|
5859
5881
|
}
|
|
@@ -5948,7 +5970,7 @@
|
|
|
5948
5970
|
const fd = new FormData();
|
|
5949
5971
|
fd.append('documentCategory', documentCategory);
|
|
5950
5972
|
fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
|
|
5951
|
-
|
|
5973
|
+
return await globalThis
|
|
5952
5974
|
?.fetch?.(`/light-api-cash/v1/file`, {
|
|
5953
5975
|
method: 'POST',
|
|
5954
5976
|
headers: {
|
|
@@ -5958,7 +5980,6 @@
|
|
|
5958
5980
|
body: fd,
|
|
5959
5981
|
})
|
|
5960
5982
|
.then((response) => response.json());
|
|
5961
|
-
return res;
|
|
5962
5983
|
};
|
|
5963
5984
|
|
|
5964
5985
|
const parseEsiaProfile = async (esiaProfile, isDebit) => {
|
|
@@ -6117,9 +6138,11 @@
|
|
|
6117
6138
|
return data.every(Boolean);
|
|
6118
6139
|
};
|
|
6119
6140
|
|
|
6141
|
+
/* eslint-disable max-lines-per-function */
|
|
6120
6142
|
const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }) => {
|
|
6121
6143
|
const leadFormStore = useLeadFormStore();
|
|
6122
6144
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
6145
|
+
const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
|
|
6123
6146
|
const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
|
|
6124
6147
|
const requestEsiaProfile = useCallback(async (code, state) => {
|
|
6125
6148
|
setEsiaStatus(EsiaStatuses.Pending);
|
|
@@ -6145,9 +6168,23 @@
|
|
|
6145
6168
|
}, []);
|
|
6146
6169
|
useEffect(() => {
|
|
6147
6170
|
leadFormStore.productType = productType;
|
|
6148
|
-
const
|
|
6149
|
-
|
|
6150
|
-
|
|
6171
|
+
const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(leadFormStore.referalData, queryFromStorage);
|
|
6172
|
+
if (referalCode) {
|
|
6173
|
+
leadFormStore.referalData = {
|
|
6174
|
+
refererCode,
|
|
6175
|
+
referalCode,
|
|
6176
|
+
productId,
|
|
6177
|
+
isTaskWithReferalCode: true,
|
|
6178
|
+
};
|
|
6179
|
+
}
|
|
6180
|
+
else if (!code) {
|
|
6181
|
+
leadFormStore.referalData = {
|
|
6182
|
+
refererCode: null,
|
|
6183
|
+
referalCode: null,
|
|
6184
|
+
productId: null,
|
|
6185
|
+
isTaskWithReferalCode: false,
|
|
6186
|
+
};
|
|
6187
|
+
}
|
|
6151
6188
|
if (code && state) {
|
|
6152
6189
|
requestEsiaProfile(code, state);
|
|
6153
6190
|
}
|
|
@@ -6155,9 +6192,24 @@
|
|
|
6155
6192
|
sessionStorage.removeItem('accessToken');
|
|
6156
6193
|
sessionStorage.removeItem('refreshToken');
|
|
6157
6194
|
}
|
|
6158
|
-
}, []);
|
|
6195
|
+
}, [queryFromStorage]);
|
|
6159
6196
|
return initialFormState;
|
|
6160
6197
|
};
|
|
6198
|
+
const getLeadQueryParams = (referalData, queryFromStorage) => {
|
|
6199
|
+
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
6200
|
+
const code = queryStorage.get('code');
|
|
6201
|
+
const state = queryStorage.get('state');
|
|
6202
|
+
const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
|
|
6203
|
+
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
6204
|
+
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
6205
|
+
return {
|
|
6206
|
+
code,
|
|
6207
|
+
state,
|
|
6208
|
+
referalCode,
|
|
6209
|
+
refererCode,
|
|
6210
|
+
productId,
|
|
6211
|
+
};
|
|
6212
|
+
};
|
|
6161
6213
|
|
|
6162
6214
|
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
6163
6215
|
const [esiaStatus, setEsiaStatus] = useState();
|
|
@@ -7595,7 +7647,7 @@
|
|
|
7595
7647
|
// eslint-disable-next-line camelcase
|
|
7596
7648
|
access_token: accessToken,
|
|
7597
7649
|
});
|
|
7598
|
-
if (res?.status
|
|
7650
|
+
if (Number(res?.status) === 401) {
|
|
7599
7651
|
navigator.assign(PORTAL_NATURAL_URL);
|
|
7600
7652
|
}
|
|
7601
7653
|
if (res?.ok) {
|
|
@@ -8045,13 +8097,14 @@
|
|
|
8045
8097
|
: {};
|
|
8046
8098
|
};
|
|
8047
8099
|
|
|
8048
|
-
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
8100
|
+
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
|
|
8049
8101
|
const navigator = locationNavigator();
|
|
8102
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
8050
8103
|
return {
|
|
8051
8104
|
sendToBank: true,
|
|
8052
8105
|
taskKind: 'UNITED',
|
|
8053
8106
|
task: {
|
|
8054
|
-
taskSource
|
|
8107
|
+
taskSource,
|
|
8055
8108
|
id: taskId,
|
|
8056
8109
|
...getOfficeCode$1(formData),
|
|
8057
8110
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
@@ -8114,6 +8167,7 @@
|
|
|
8114
8167
|
const handleSubmit = useCallback(async (formData) => {
|
|
8115
8168
|
startSending();
|
|
8116
8169
|
retailFormStore.leadForm = formData;
|
|
8170
|
+
const referalData = retailFormStore.referalData;
|
|
8117
8171
|
try {
|
|
8118
8172
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
8119
8173
|
if (taskId && profileId && participantId) {
|
|
@@ -8123,6 +8177,7 @@
|
|
|
8123
8177
|
profileId,
|
|
8124
8178
|
step,
|
|
8125
8179
|
formData: formData,
|
|
8180
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
8126
8181
|
}));
|
|
8127
8182
|
resetForm(response);
|
|
8128
8183
|
}
|
|
@@ -8857,13 +8912,14 @@
|
|
|
8857
8912
|
};
|
|
8858
8913
|
};
|
|
8859
8914
|
|
|
8860
|
-
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
8915
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
|
|
8861
8916
|
const navigator = locationNavigator();
|
|
8917
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
8862
8918
|
return {
|
|
8863
8919
|
sendToBank: true,
|
|
8864
8920
|
taskKind: 'UNITED',
|
|
8865
8921
|
task: {
|
|
8866
|
-
taskSource
|
|
8922
|
+
taskSource,
|
|
8867
8923
|
id: taskId,
|
|
8868
8924
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
8869
8925
|
participants: [
|
|
@@ -8952,6 +9008,7 @@
|
|
|
8952
9008
|
const handleSubmit = useCallback(async (formData) => {
|
|
8953
9009
|
startSending();
|
|
8954
9010
|
retailFormStore.leadForm = formData;
|
|
9011
|
+
const referalData = retailFormStore.referalData;
|
|
8955
9012
|
try {
|
|
8956
9013
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
8957
9014
|
if (taskId && profileId && participantId) {
|
|
@@ -8961,6 +9018,7 @@
|
|
|
8961
9018
|
profileId,
|
|
8962
9019
|
step,
|
|
8963
9020
|
formData: formData,
|
|
9021
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
8964
9022
|
}));
|
|
8965
9023
|
resetForm(response);
|
|
8966
9024
|
}
|
|
@@ -9218,11 +9276,12 @@
|
|
|
9218
9276
|
};
|
|
9219
9277
|
};
|
|
9220
9278
|
|
|
9221
|
-
const getDebitCardFormTaskData = ({ participantId, taskId, formData, programId, step = 0, }) => {
|
|
9279
|
+
const getDebitCardFormTaskData = ({ participantId, taskId, formData, programId, step = 0, isTaskWithReferalCode, }) => {
|
|
9222
9280
|
const navigator = locationNavigator();
|
|
9281
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
9223
9282
|
return {
|
|
9224
9283
|
task: {
|
|
9225
|
-
taskSource
|
|
9284
|
+
taskSource,
|
|
9226
9285
|
id: taskId,
|
|
9227
9286
|
creditProgram: {
|
|
9228
9287
|
code: debitProgrammIdToCardCodesMap[programId],
|
|
@@ -9267,6 +9326,7 @@
|
|
|
9267
9326
|
const handleSubmit = useCallback(async (formData) => {
|
|
9268
9327
|
startSending();
|
|
9269
9328
|
retailFormStore.leadForm = formData;
|
|
9329
|
+
const referalData = retailFormStore.referalData;
|
|
9270
9330
|
try {
|
|
9271
9331
|
const { taskId, participantId, programId } = retailFormStore;
|
|
9272
9332
|
if (taskId && participantId && programId) {
|
|
@@ -9276,6 +9336,7 @@
|
|
|
9276
9336
|
programId,
|
|
9277
9337
|
step,
|
|
9278
9338
|
formData: formData,
|
|
9339
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
9279
9340
|
}));
|
|
9280
9341
|
}
|
|
9281
9342
|
if (isFinalStep || formData.methodObtain === 'courier') {
|
|
@@ -10935,7 +10996,7 @@
|
|
|
10935
10996
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10936
10997
|
});
|
|
10937
10998
|
|
|
10938
|
-
const packageVersion = "0.14.
|
|
10999
|
+
const packageVersion = "0.14.863";
|
|
10939
11000
|
|
|
10940
11001
|
exports.Blocks = Blocks;
|
|
10941
11002
|
exports.ContentPage = ContentPage;
|