@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
|
@@ -3,10 +3,10 @@ import { type ButtonVersion } from '../../model/ButtonVersion';
|
|
|
3
3
|
import { type ComponentType } from '../../model/ComponentType';
|
|
4
4
|
import { type ColorPalette } from '../../model/ContentPageBase';
|
|
5
5
|
import { type DisabledProps } from '../../model/DisabledProps';
|
|
6
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
6
7
|
import { type ARIAProps } from '../ARIAProps';
|
|
7
|
-
import { type PreventableEvent } from '../PreventableEvent';
|
|
8
8
|
export declare const themeStyle: Record<ButtonVersion, string>;
|
|
9
|
-
export interface ButtonProps extends DisabledProps, ARIAProps, ComponentType {
|
|
9
|
+
export interface ButtonProps extends DisabledProps, ARIAProps, ComponentType, OnClickPreventableProps {
|
|
10
10
|
type?: 'button' | 'submit' | 'reset';
|
|
11
11
|
version?: ButtonVersion;
|
|
12
12
|
shape?: 'default' | 'round' | 'square';
|
|
@@ -15,7 +15,6 @@ export interface ButtonProps extends DisabledProps, ARIAProps, ComponentType {
|
|
|
15
15
|
ariaLabel?: string;
|
|
16
16
|
data?: AspectsDef[];
|
|
17
17
|
dataTheme?: ColorPalette;
|
|
18
|
-
onClick?: (ev: PreventableEvent) => void;
|
|
19
18
|
wcmsIgnore?: boolean;
|
|
20
19
|
}
|
|
21
20
|
export declare const Button: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAOnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,CAAC,MAAM,UAAU,GAAkC;IACvD,OAAO,EAAE,KAAK,CACZ,4EAA4E,EAC5E,sEAAsE,EACtE,mFAAmF,EACnF,+CAA+C,CAChD;IACD,SAAS,EAAE,KAAK,CACd,oGAAoG,EACpG,kEAAkE,EAClE,6CAA6C,EAC7C,+CAA+C,CAChD;CACF,CAAC;AAEF,MAAM,aAAa,GAAG,KAAK,CACzB,oBAAoB,EACpB,uDAAuD,CACxD,CAAC;AAEF,MAAM,aAAa,GAAG,KAAK,CAAC,oDAAoD,CAAC,CAAC;AAkBlF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EACC,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,SAAS,EACjB,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,UAAU,EACV,OAAO,GAAG,IAAI,GACf,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;QACpF,IAAI;QACJ,OAAO;KACR,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEvE,MAAM,OAAO,GAAG,KAAK,KAAK,OAAO,CAAC;IAElC,OAAO,CACL,iBACE,SAAS,EAAE,KAAK,CACd,oCAAoC,EACpC;YACE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,QAAQ,IAAI,CAAC,QAAQ;YAC7C,CAAC,aAAa,CAAC,EAAE,QAAQ;YACzB,CAAC,aAAa,CAAC,EAAE,QAAQ;SAC1B,EACD,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,EAC/C,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,EACzC;YACE,YAAY,EAAE,KAAK,KAAK,SAAS;YACjC,cAAc,EAAE,OAAO;SACxB,EACD,SAAS,CACV,EACD,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,gBACE,SAAS,EACrB,QAAQ,EAAE,QAAQ,mBACH,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,gBAChC,SAAS,sBACH,UAAU,KAExB,YAAY,EAChB,OAAO,EAAE,WAAW,YAEnB,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
2
3
|
import type { OnCloseProps } from '../../model/OnCloseProps';
|
|
3
4
|
import { type VNode } from '../../model/VNode';
|
|
4
|
-
|
|
5
|
-
export interface DialogProps extends ComponentType, OnCloseProps {
|
|
5
|
+
export interface DialogProps extends ComponentType, OnCloseProps, OnClickPreventableProps {
|
|
6
6
|
head?: VNode;
|
|
7
|
-
onClick?: (e: PreventableEvent) => void;
|
|
8
7
|
}
|
|
9
8
|
export declare const Dialog: import("@redneckz/uni-jsx").UNIComponent<DialogProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/ui-kit/DialogManager/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/ui-kit/DialogManager/Dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAKxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1F,eACE,SAAS,EAAE,KAAK,CAAC,6BAA6B,EAAE,SAAS,CAAC,EAC1D,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,sCAAQ,EACd,OAAO,EAAE,OAAO,aAEhB,eAAK,SAAS,EAAC,kCAAkC,aAC/C,KAAC,WAAW,IAAC,SAAS,EAAC,wBAAwB,EAAC,OAAO,EAAE,OAAO,GAAI,EACpE,cAAK,SAAS,EAAC,WAAW,YAAE,IAAI,GAAO,IACnC,EACN,cAAK,SAAS,EAAC,kBAAkB,YAAE,QAAQ,GAAO,IAC9C,CACP,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
|
-
import { type OnClickProps } from '../../model/
|
|
2
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
3
3
|
import { type TariffsTableInnerContent } from './InnerTableProps';
|
|
4
4
|
export interface InnerTableButtonProps extends TariffsTableInnerContent, ComponentType, OnClickProps {
|
|
5
5
|
isOpen?: boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
2
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
3
3
|
import { type LinkProps as BaseLinkProps } from '../../model/LinkProps';
|
|
4
|
-
import { type
|
|
5
|
-
export interface LinkProps extends BaseLinkProps, ComponentType {
|
|
4
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
5
|
+
export interface LinkProps extends BaseLinkProps, ComponentType, OnClickPreventableProps {
|
|
6
6
|
version?: LinkButtonVersion;
|
|
7
7
|
aboveText?: string;
|
|
8
8
|
rel?: string;
|
|
9
9
|
ariaLabel?: string;
|
|
10
|
-
onClick?: (ev?: PreventableEvent) => void;
|
|
11
10
|
}
|
|
12
11
|
export declare const Link: import("@redneckz/uni-jsx").UNIComponent<LinkProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/ui-kit/Link/Link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/ui-kit/Link/Link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAElE,MAAM,UAAU,GAAsC;IACpD,OAAO,EAAE,gBAAgB,CAAC,OAAO;IACjC,SAAS,EAAE,gBAAgB,CAAC,SAAS;IACrC,KAAK,EACH,6GAA6G;IAC/G,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,gBAAgB,CAAC,SAAS;IAChC,WAAW,EAAE,EAAE;IACf,EAAE,EAAE,EAAE;CACP,CAAC;AASF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EACJ,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,SAAS,EACT,OAAO,GAAG,MAAM,EAChB,GAAG,EACH,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,OAAO,GACR,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAEhB,MAAM,UAAU,GAAG,OAAO,KAAK,MAAM,CAAC;IAEtC,OAAO,CACL,YACE,SAAS,EAAE,KAAK,CACd,0CAA0C,EAC1C,oCAAoC,EACpC,kEAAkE,EAClE,gBAAgB,EAChB;YACE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;YACvC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,UAAU;YACrD,YAAY,EAAE,UAAU;SACzB,EACD,SAAS,CACV,EACD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,gBACI,SAAS,IAAI,aAAa,IAAI,EAAE,EAC5C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAC9B,OAAO,EAAE,OAAO,KAEZ,oBAAoB,CAAC,IAAI,CAAC,YAE7B,QAAQ,IAAI,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,GACtC,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,SAA6B,EAAE,EAAE,CAC7E,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,CAClB,eAAK,SAAS,EAAC,gBAAgB,aAC5B,SAAS,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,8BAA8B,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,EACnF,cAAK,SAAS,EAAE,KAAK,CAAC,WAAW,EAAE,EAAE,gBAAgB,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,YAAG,IAAI,GAAO,IACtF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
2
|
import { type ControlProps } from '../../model/ControlProps';
|
|
3
|
-
|
|
3
|
+
import { type TextProps } from '../../model/HeadlineType';
|
|
4
|
+
export interface RadioProps extends TextProps, ComponentType, ControlProps<string> {
|
|
4
5
|
name: string;
|
|
5
|
-
text?: string;
|
|
6
6
|
checked: boolean;
|
|
7
7
|
}
|
|
@@ -16,10 +16,9 @@ export function useCountDownTimer({ seconds, period = 1000, onTick, onEnd }) {
|
|
|
16
16
|
}
|
|
17
17
|
}, [onTick, onEnd]);
|
|
18
18
|
const { start } = useInterval(handleTick, period);
|
|
19
|
-
|
|
19
|
+
return useCallback((_) => {
|
|
20
20
|
counter.current = _;
|
|
21
21
|
start();
|
|
22
22
|
}, []);
|
|
23
|
-
return restart;
|
|
24
23
|
}
|
|
25
24
|
//# sourceMappingURL=useCountDownTimer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCountDownTimer.js","sourceRoot":"","sources":["../../../src/ui-kit/TimerCircle/useCountDownTimer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAStD,MAAM,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,EAAoB;IAC3F,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAEhC,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,IAAgB,EAAE,EAAE;QACnB,OAAO,CAAC,OAAO,KAAK,CAAC,CAAC;QACtB,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;QACnD,IAAI;YACF,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAC3B;gBAAS;YACR,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC,EAAE;gBACxB,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,EAAE,CAAC;aACX;SACF;IACH,CAAC,EACD,CAAC,MAAM,EAAE,KAAK,CAAC,CAChB,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAElD,
|
|
1
|
+
{"version":3,"file":"useCountDownTimer.js","sourceRoot":"","sources":["../../../src/ui-kit/TimerCircle/useCountDownTimer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAStD,MAAM,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,EAAoB;IAC3F,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAEhC,MAAM,UAAU,GAAG,WAAW,CAC5B,CAAC,IAAgB,EAAE,EAAE;QACnB,OAAO,CAAC,OAAO,KAAK,CAAC,CAAC;QACtB,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;QACnD,IAAI;YACF,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SAC3B;gBAAS;YACR,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC,EAAE;gBACxB,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,EAAE,CAAC;aACX;SACF;IACH,CAAC,EACD,CAAC,MAAM,EAAE,KAAK,CAAC,CAChB,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAElD,OAAO,WAAW,CAAC,CAAC,CAAS,EAAE,EAAE;QAC/B,OAAO,CAAC,OAAO,GAAG,CAAC,CAAC;QACpB,KAAK,EAAE,CAAC;IACV,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSessionQuery.js","sourceRoot":"","sources":["../../src/utils/getSessionQuery.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"getSessionQuery.js","sourceRoot":"","sources":["../../src/utils/getSessionQuery.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAErD,MAAM,UAAU,gBAAgB;IAC9B,MAAM,MAAM,GACV,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;IAE7F,IAAI,MAAM,EAAE;QACV,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;KAC/D;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -18,7 +18,7 @@ export interface UniBlockMeta<Props extends UniBlockProps = UniBlockProps> {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type UniBlockComponent<Props extends UniBlockProps = UniBlockProps> = UniBlockMeta<Props> &
|
|
21
|
-
UNIComponent<Props,
|
|
21
|
+
UNIComponent<Props, VNode | VNode[]>;
|
|
22
22
|
|
|
23
23
|
export function UniBlock<Props extends UniBlockProps = UniBlockProps>(
|
|
24
24
|
InputComponent: UniBlockComponent<Props>,
|
|
@@ -4,6 +4,7 @@ import { getParticipantContacts } from '../../retail/adaptors/utils';
|
|
|
4
4
|
import { type CreateUserTaskDebitBody } from '../../retail/api/createUserTaskDebit';
|
|
5
5
|
import { type MarketingInfo, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
6
6
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
7
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
7
8
|
import { formatDate } from '../../utils/formatDate';
|
|
8
9
|
import { formatPhone } from '../../utils/formatPhone';
|
|
9
10
|
import { debitProgrammIdToCardCodesMap } from '../DebitForm/utils';
|
|
@@ -13,6 +14,7 @@ type getLeadFormTaskDataProps = {
|
|
|
13
14
|
taskId: number;
|
|
14
15
|
profileId: number;
|
|
15
16
|
formData: LeadFormState;
|
|
17
|
+
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
16
18
|
};
|
|
17
19
|
|
|
18
20
|
export const getCreditLeadFormTaskData = ({
|
|
@@ -20,15 +22,17 @@ export const getCreditLeadFormTaskData = ({
|
|
|
20
22
|
taskId,
|
|
21
23
|
profileId,
|
|
22
24
|
formData,
|
|
25
|
+
isTaskWithReferalCode,
|
|
23
26
|
}: getLeadFormTaskDataProps): UpdateUserTaskBody => {
|
|
24
27
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
25
28
|
const navigator = locationNavigator();
|
|
29
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
26
30
|
|
|
27
31
|
return {
|
|
28
32
|
sendToBank: true,
|
|
29
33
|
taskKind: 'SHORT',
|
|
30
34
|
task: {
|
|
31
|
-
taskSource
|
|
35
|
+
taskSource,
|
|
32
36
|
id: taskId,
|
|
33
37
|
participants: [
|
|
34
38
|
{
|
|
@@ -58,13 +62,15 @@ export const getCreditLeadFormTaskData = ({
|
|
|
58
62
|
export const getDebitLeadFormTaskData = (
|
|
59
63
|
formData: LeadFormState,
|
|
60
64
|
programId: string,
|
|
65
|
+
isTaskWithReferalCode: ReferalData['isTaskWithReferalCode'],
|
|
61
66
|
): CreateUserTaskDebitBody => {
|
|
62
67
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
63
68
|
const navigator = locationNavigator();
|
|
69
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
64
70
|
|
|
65
71
|
return {
|
|
66
72
|
task: {
|
|
67
|
-
taskSource
|
|
73
|
+
taskSource,
|
|
68
74
|
creditProgram: {
|
|
69
75
|
code: debitProgrammIdToCardCodesMap[programId],
|
|
70
76
|
},
|
|
@@ -8,18 +8,21 @@ import { createUserProfile } from '../../retail/api/createUserProfile';
|
|
|
8
8
|
import { createUserTaskDebit } from '../../retail/api/createUserTaskDebit';
|
|
9
9
|
import { getLastTaskStatus } from '../../retail/api/getLastTaskStatus';
|
|
10
10
|
import { getTaskById } from '../../retail/api/getTaskById';
|
|
11
|
+
import { saveReferalInfo } from '../../retail/api/saveReferalInfo';
|
|
11
12
|
import { updateUserProfile } from '../../retail/api/updateUserProfile';
|
|
12
13
|
import { updateUserTask } from '../../retail/api/updateUserTask';
|
|
13
14
|
import { useConsentBkiDialog } from '../../retail/components/ConsentBkiDialog/useConsentBkiDialog';
|
|
14
15
|
import { useDraftDialog } from '../../retail/components/DraftDialog/useDraftDialog';
|
|
15
16
|
import { VerifyPhoneDialog } from '../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog';
|
|
16
17
|
import { type FormRetailConsents, type LeadFormState } from '../../retail/model/LeadFormState';
|
|
18
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
17
19
|
import { getUpdateUserProfileData } from '../../retail/utils/getUpdateUserProfile';
|
|
18
20
|
import { useDialog } from '../../ui-kit/DialogManager/useDialog';
|
|
19
21
|
import { formatPhone } from '../../utils/formatPhone';
|
|
20
22
|
import { type ProductType } from './ApplicationLeadFormContent';
|
|
21
23
|
import { productTypeToConsentsMap } from './consents';
|
|
22
24
|
import { getCreditLeadFormTaskData, getDebitLeadFormTaskData } from './getLeadFormTaskData';
|
|
25
|
+
import { useLeadFormStore } from './useLeadFormStore';
|
|
23
26
|
import { useSaveUserData, type UserData } from './useSaveUserData';
|
|
24
27
|
import { useSendLeadFormAspects } from './useSendLeadFormAspects';
|
|
25
28
|
|
|
@@ -39,6 +42,8 @@ export const useApplicationLeadApi = ({
|
|
|
39
42
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
40
43
|
const [ok, setOK] = useState<boolean | undefined>();
|
|
41
44
|
const saveUserData = useSaveUserData();
|
|
45
|
+
const leadFormStore = useLeadFormStore();
|
|
46
|
+
|
|
42
47
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
43
48
|
const navigator = locationNavigator();
|
|
44
49
|
|
|
@@ -57,6 +62,7 @@ export const useApplicationLeadApi = ({
|
|
|
57
62
|
const profileId = await createUserProfile({
|
|
58
63
|
profile: { phone: formatPhone(transformedFormData.phone as string) },
|
|
59
64
|
});
|
|
65
|
+
const referalData = leadFormStore.referalData;
|
|
60
66
|
|
|
61
67
|
if (!profileId) {
|
|
62
68
|
throw new Error();
|
|
@@ -68,6 +74,7 @@ export const useApplicationLeadApi = ({
|
|
|
68
74
|
profileId,
|
|
69
75
|
formData: transformedFormData,
|
|
70
76
|
productType,
|
|
77
|
+
referalData,
|
|
71
78
|
saveUserData,
|
|
72
79
|
sendAspects,
|
|
73
80
|
});
|
|
@@ -88,6 +95,7 @@ export const useApplicationLeadApi = ({
|
|
|
88
95
|
draftDialog.open({
|
|
89
96
|
task,
|
|
90
97
|
isFromLead: true,
|
|
98
|
+
isDebit: productType === 'debitCard',
|
|
91
99
|
sendAspects,
|
|
92
100
|
onClose: sendCurrentTask,
|
|
93
101
|
});
|
|
@@ -129,6 +137,7 @@ const updateUserData = async ({
|
|
|
129
137
|
profileId,
|
|
130
138
|
formData,
|
|
131
139
|
productType,
|
|
140
|
+
referalData,
|
|
132
141
|
saveUserData,
|
|
133
142
|
sendAspects,
|
|
134
143
|
}: {
|
|
@@ -136,18 +145,22 @@ const updateUserData = async ({
|
|
|
136
145
|
profileId: number;
|
|
137
146
|
formData: LeadFormState;
|
|
138
147
|
productType: ProductType;
|
|
148
|
+
referalData: ReferalData | null;
|
|
139
149
|
saveUserData: (userData: UserData) => void;
|
|
140
150
|
sendAspects: (profileId: number, taskId: number) => void;
|
|
141
151
|
}) => {
|
|
142
152
|
let taskId: number;
|
|
143
153
|
let participantId: number;
|
|
144
154
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
155
|
+
const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
|
|
145
156
|
|
|
146
157
|
await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
|
|
147
158
|
|
|
148
159
|
try {
|
|
149
160
|
if (productType === 'debitCard') {
|
|
150
|
-
const debitData = await createUserTaskDebit(
|
|
161
|
+
const debitData = await createUserTaskDebit(
|
|
162
|
+
getDebitLeadFormTaskData(formData, programId, isTaskWithReferalCode),
|
|
163
|
+
);
|
|
151
164
|
|
|
152
165
|
taskId = debitData.taskId;
|
|
153
166
|
participantId = debitData.participantId;
|
|
@@ -165,9 +178,16 @@ const updateUserData = async ({
|
|
|
165
178
|
taskId,
|
|
166
179
|
profileId,
|
|
167
180
|
formData,
|
|
181
|
+
isTaskWithReferalCode,
|
|
168
182
|
}),
|
|
169
183
|
);
|
|
170
184
|
}
|
|
185
|
+
if (isTaskWithReferalCode) {
|
|
186
|
+
await saveReferalInfo({
|
|
187
|
+
taskId,
|
|
188
|
+
...referalData,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
171
191
|
|
|
172
192
|
sendAspects(profileId, taskId);
|
|
173
193
|
saveUserData({ participantId, taskId, profileId, programId, formData });
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-lines-per-function */
|
|
1
2
|
import { useCallback, useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
3
|
import { useSetter } from '../../hooks/useSetter';
|
|
3
4
|
import { esiaRequestProfile } from '../../retail/api/esiaRequestProfile';
|
|
4
5
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
6
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
5
7
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
8
|
+
import { QUERY_STORAGE_KEY } from '../../utils/getSessionQuery';
|
|
6
9
|
import { EsiaStatuses, type ProductType } from './ApplicationLeadFormContent';
|
|
7
10
|
import { getInitialFormState } from './getInitialFormState';
|
|
8
11
|
import { parseEsiaProfile } from './parseEsiaProfile';
|
|
@@ -24,6 +27,7 @@ export const useInitApplicationLead = ({
|
|
|
24
27
|
}: InitApplicationLeadProps): LeadFormState => {
|
|
25
28
|
const leadFormStore = useLeadFormStore();
|
|
26
29
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
30
|
+
const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
|
|
27
31
|
|
|
28
32
|
const initialFormState = useMemo(
|
|
29
33
|
() => getInitialFormState(inputs, leadFormStore.leadForm, esiaAuthSuccess),
|
|
@@ -57,9 +61,26 @@ export const useInitApplicationLead = ({
|
|
|
57
61
|
useEffect(() => {
|
|
58
62
|
leadFormStore.productType = productType;
|
|
59
63
|
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(
|
|
65
|
+
leadFormStore.referalData,
|
|
66
|
+
queryFromStorage,
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
if (referalCode) {
|
|
70
|
+
leadFormStore.referalData = {
|
|
71
|
+
refererCode,
|
|
72
|
+
referalCode,
|
|
73
|
+
productId,
|
|
74
|
+
isTaskWithReferalCode: true,
|
|
75
|
+
};
|
|
76
|
+
} else if (!code) {
|
|
77
|
+
leadFormStore.referalData = {
|
|
78
|
+
refererCode: null,
|
|
79
|
+
referalCode: null,
|
|
80
|
+
productId: null,
|
|
81
|
+
isTaskWithReferalCode: false,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
63
84
|
|
|
64
85
|
if (code && state) {
|
|
65
86
|
requestEsiaProfile(code, state);
|
|
@@ -67,7 +88,25 @@ export const useInitApplicationLead = ({
|
|
|
67
88
|
sessionStorage.removeItem('accessToken');
|
|
68
89
|
sessionStorage.removeItem('refreshToken');
|
|
69
90
|
}
|
|
70
|
-
}, []);
|
|
91
|
+
}, [queryFromStorage]);
|
|
71
92
|
|
|
72
93
|
return initialFormState;
|
|
73
94
|
};
|
|
95
|
+
|
|
96
|
+
const getLeadQueryParams = (referalData: ReferalData | null, queryFromStorage: string | null) => {
|
|
97
|
+
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
98
|
+
|
|
99
|
+
const code = queryStorage.get('code');
|
|
100
|
+
const state = queryStorage.get('state');
|
|
101
|
+
const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
|
|
102
|
+
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
103
|
+
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
code,
|
|
107
|
+
state,
|
|
108
|
+
referalCode,
|
|
109
|
+
refererCode,
|
|
110
|
+
productId,
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useLocalStore } from '@redneckz/uni-jsx/lib/Store/useLocalStore';
|
|
2
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
3
4
|
import { type ProductType } from './ApplicationLeadFormContent';
|
|
4
5
|
|
|
5
6
|
export interface LeadFormStoreSlice {
|
|
@@ -9,6 +10,7 @@ export interface LeadFormStoreSlice {
|
|
|
9
10
|
participantId: number;
|
|
10
11
|
programId: string;
|
|
11
12
|
productType: ProductType;
|
|
13
|
+
referalData: ReferalData;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const useLeadFormStore = () => useLocalStore<LeadFormStoreSlice>();
|
|
@@ -12,7 +12,7 @@ export interface UserData {
|
|
|
12
12
|
export const useSaveUserData = () => {
|
|
13
13
|
const leadFormStore = useLeadFormStore();
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
return useCallback(
|
|
16
16
|
({ participantId, taskId, profileId, programId: programNumber, formData }: UserData) => {
|
|
17
17
|
leadFormStore.participantId = participantId;
|
|
18
18
|
leadFormStore.taskId = taskId;
|
|
@@ -22,6 +22,4 @@ export const useSaveUserData = () => {
|
|
|
22
22
|
},
|
|
23
23
|
[],
|
|
24
24
|
);
|
|
25
|
-
|
|
26
|
-
return saveUserData;
|
|
27
25
|
};
|
|
@@ -8,7 +8,7 @@ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
|
8
8
|
export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
|
|
9
9
|
const aspects = useAspects();
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
return useCallback(
|
|
12
12
|
(ProfileId: number, TaskId: number) => {
|
|
13
13
|
const snowplowParams = JSON.stringify({
|
|
14
14
|
ProfileId,
|
|
@@ -23,6 +23,4 @@ export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
|
|
|
23
23
|
},
|
|
24
24
|
[data],
|
|
25
25
|
);
|
|
26
|
-
|
|
27
|
-
return sendAspects;
|
|
28
26
|
};
|
|
@@ -63,11 +63,11 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
|
|
|
63
63
|
const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
|
|
64
64
|
const handleChange = useCallback(
|
|
65
65
|
(params: CreditCalculatorUserInputParams) => {
|
|
66
|
-
const
|
|
66
|
+
const _calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
|
|
67
67
|
|
|
68
68
|
onChange?.({
|
|
69
69
|
...params,
|
|
70
|
-
monthlyPayment:
|
|
70
|
+
monthlyPayment: _calcParams.monthlyPayment,
|
|
71
71
|
rate: defaultParamsCals?.rate ?? 0,
|
|
72
72
|
});
|
|
73
73
|
},
|
|
@@ -6,6 +6,7 @@ import { getFamilyStatusAndIncomeData } from '../../retail/adaptors/getFamilySta
|
|
|
6
6
|
import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
|
|
7
7
|
import { type Participant, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
8
8
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
9
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
9
10
|
import {
|
|
10
11
|
getDeliveryCreditCardData,
|
|
11
12
|
getDeliveryData,
|
|
@@ -18,6 +19,7 @@ type getCreditCardFormTaskDataProps = {
|
|
|
18
19
|
profileId: number;
|
|
19
20
|
formData: LeadFormState;
|
|
20
21
|
step?: number;
|
|
22
|
+
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
export const getCreditCardFormTaskData = ({
|
|
@@ -26,14 +28,16 @@ export const getCreditCardFormTaskData = ({
|
|
|
26
28
|
profileId,
|
|
27
29
|
formData,
|
|
28
30
|
step = 0,
|
|
31
|
+
isTaskWithReferalCode,
|
|
29
32
|
}: getCreditCardFormTaskDataProps): UpdateUserTaskBody => {
|
|
30
33
|
const navigator = locationNavigator();
|
|
34
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
31
35
|
|
|
32
36
|
return {
|
|
33
37
|
sendToBank: true,
|
|
34
38
|
taskKind: 'UNITED',
|
|
35
39
|
task: {
|
|
36
|
-
taskSource
|
|
40
|
+
taskSource,
|
|
37
41
|
id: taskId,
|
|
38
42
|
...getOfficeCode(formData),
|
|
39
43
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
@@ -48,6 +48,7 @@ export const useCreditCardFormAPI = ({
|
|
|
48
48
|
async (formData: LeadFormState) => {
|
|
49
49
|
startSending();
|
|
50
50
|
retailFormStore.leadForm = formData;
|
|
51
|
+
const referalData = retailFormStore.referalData;
|
|
51
52
|
|
|
52
53
|
try {
|
|
53
54
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -59,6 +60,7 @@ export const useCreditCardFormAPI = ({
|
|
|
59
60
|
profileId,
|
|
60
61
|
step,
|
|
61
62
|
formData: formData as any,
|
|
63
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
62
64
|
}),
|
|
63
65
|
);
|
|
64
66
|
resetForm(response);
|
|
@@ -52,6 +52,7 @@ export const useCreditFormAPI = ({
|
|
|
52
52
|
async (formData: LeadFormState) => {
|
|
53
53
|
startSending();
|
|
54
54
|
retailFormStore.leadForm = formData;
|
|
55
|
+
const referalData = retailFormStore.referalData;
|
|
55
56
|
|
|
56
57
|
try {
|
|
57
58
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -63,6 +64,7 @@ export const useCreditFormAPI = ({
|
|
|
63
64
|
profileId,
|
|
64
65
|
step,
|
|
65
66
|
formData: formData as any,
|
|
67
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
66
68
|
}),
|
|
67
69
|
);
|
|
68
70
|
resetForm(response);
|
|
@@ -4,6 +4,7 @@ import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
|
|
|
4
4
|
import { type Participant } from '../../retail/api/updateUserTask';
|
|
5
5
|
import { type UpdateUserTaskDebitBody } from '../../retail/api/updateUserTaskDebit';
|
|
6
6
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
7
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
7
8
|
import {
|
|
8
9
|
getDebitCardData,
|
|
9
10
|
getDeliveryData,
|
|
@@ -18,6 +19,7 @@ type getDebitFormTaskDataProps = {
|
|
|
18
19
|
formData: LeadFormState;
|
|
19
20
|
programId: string;
|
|
20
21
|
step?: number;
|
|
22
|
+
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
export const getDebitCardFormTaskData = ({
|
|
@@ -26,12 +28,14 @@ export const getDebitCardFormTaskData = ({
|
|
|
26
28
|
formData,
|
|
27
29
|
programId,
|
|
28
30
|
step = 0,
|
|
31
|
+
isTaskWithReferalCode,
|
|
29
32
|
}: getDebitFormTaskDataProps): UpdateUserTaskDebitBody => {
|
|
30
33
|
const navigator = locationNavigator();
|
|
34
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
31
35
|
|
|
32
36
|
return {
|
|
33
37
|
task: {
|
|
34
|
-
taskSource
|
|
38
|
+
taskSource,
|
|
35
39
|
id: taskId,
|
|
36
40
|
creditProgram: {
|
|
37
41
|
code: debitProgrammIdToCardCodesMap[programId],
|
|
@@ -40,6 +40,7 @@ export const useDebitFormAPI = ({
|
|
|
40
40
|
async (formData: LeadFormState) => {
|
|
41
41
|
startSending();
|
|
42
42
|
retailFormStore.leadForm = formData;
|
|
43
|
+
const referalData = retailFormStore.referalData;
|
|
43
44
|
|
|
44
45
|
try {
|
|
45
46
|
const { taskId, participantId, programId } = retailFormStore;
|
|
@@ -51,6 +52,7 @@ export const useDebitFormAPI = ({
|
|
|
51
52
|
programId,
|
|
52
53
|
step,
|
|
53
54
|
formData: formData as any,
|
|
55
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
54
56
|
}),
|
|
55
57
|
);
|
|
56
58
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
interface HorizontalNavigationLinkProps extends LinkProps {
|
|
7
|
+
interface HorizontalNavigationLinkProps extends LinkProps, OnClickProps {
|
|
7
8
|
className: string;
|
|
8
9
|
index: number;
|
|
9
|
-
onClick: () => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const HorizontalNavigationLink = JSX<Partial<HorizontalNavigationLinkProps>>(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
interface TextInformationLinkProps extends LinkProps {
|
|
7
|
+
interface TextInformationLinkProps extends LinkProps, OnClickProps {
|
|
7
8
|
className: string;
|
|
8
9
|
index: number;
|
|
9
|
-
onClick: () => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const TextInformationLink = JSX<Partial<TextInformationLinkProps>>(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TextProps } from '../../model/HeadlineType';
|
|
1
2
|
import { type Picture } from '../../model/Picture';
|
|
2
3
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
3
4
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
@@ -5,9 +6,7 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
|
5
6
|
/**
|
|
6
7
|
* @title Пункт
|
|
7
8
|
*/
|
|
8
|
-
export type ItemList = {
|
|
9
|
-
/** @title Название */
|
|
10
|
-
text?: string;
|
|
9
|
+
export type ItemList = TextProps & {
|
|
11
10
|
image?: Picture;
|
|
12
11
|
};
|
|
13
12
|
|
|
@@ -38,7 +38,7 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
|
|
|
38
38
|
.map((_) => _.short?.toLowerCase())
|
|
39
39
|
.join(', ');
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
return [
|
|
42
42
|
buildScheduleText({
|
|
43
43
|
workTime: workingWeekday?.workTime,
|
|
44
44
|
lunchHour: workingWeekday?.lunchHour,
|
|
@@ -49,6 +49,4 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
|
|
|
49
49
|
true,
|
|
50
50
|
),
|
|
51
51
|
].filter(Boolean);
|
|
52
|
-
|
|
53
|
-
return rows;
|
|
54
52
|
};
|