@redneckz/wildless-cms-uni-blocks 0.14.680 → 0.14.682
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +157 -159
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/bundle/external/locationNavigator.d.ts +11 -0
- package/bundle/index.d.ts +3 -3
- package/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/bundle/utils/adjustSrc.d.ts +1 -1
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/dist/api/RetailAPI/getPaymentSystems.js +2 -2
- package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/dist/api/RetailAPI/updateRefreshToken.js +9 -4
- package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +1 -4
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getFourthStepData.js +3 -1
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/dist/components/CreditCardForm/getSixthStepData.js +8 -1
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getThirdStepData.js +3 -1
- package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -4
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.js +3 -1
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditForm/getThirdStepData.js +3 -1
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/dist/components/TabsLayout/TabsLayout.js +1 -1
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/Video/Video.js +1 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/external/handlerDecorator.js.map +1 -0
- package/dist/external/locationNavigator.d.ts +11 -0
- package/dist/external/locationNavigator.js +21 -0
- package/dist/external/locationNavigator.js.map +1 -0
- package/dist/external/useRouter.js.map +1 -0
- package/dist/hooks/useActiveRoute.js +1 -1
- package/dist/hooks/useActiveRoute.js.map +1 -1
- package/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/dist/hooks/useClickHandler.js +1 -1
- package/dist/hooks/useClickHandler.js.map +1 -1
- package/dist/hooks/useLink.js +2 -2
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/setup-fixture.js +2 -2
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/useButton.js +1 -1
- package/dist/ui-kit/Button/useButton.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +1 -1
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/dist/utils/adjustSrc.d.ts +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.js +2 -2
- package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/lib/api/RetailAPI/updateRefreshToken.js +9 -4
- package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js +1 -4
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getFourthStepData.js +3 -1
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/lib/components/CreditCardForm/getSixthStepData.js +6 -0
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getThirdStepData.js +3 -1
- package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +1 -4
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.js +3 -1
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditForm/getThirdStepData.js +3 -1
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/lib/components/TabsLayout/TabsLayout.js +1 -1
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/Video/Video.js +1 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/external/handlerDecorator.js.map +1 -0
- package/lib/external/locationNavigator.d.ts +11 -0
- package/lib/external/locationNavigator.js +18 -0
- package/lib/external/locationNavigator.js.map +1 -0
- package/lib/external/useRouter.js.map +1 -0
- package/lib/hooks/useActiveRoute.js +1 -1
- package/lib/hooks/useActiveRoute.js.map +1 -1
- package/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/lib/hooks/useClickHandler.js +1 -1
- package/lib/hooks/useClickHandler.js.map +1 -1
- package/lib/hooks/useLink.js +2 -2
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/setup-fixture.js +2 -2
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/useButton.js +1 -1
- package/lib/ui-kit/Button/useButton.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +1 -1
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/lib/utils/adjustSrc.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +141 -130
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/mobile/bundle/external/locationNavigator.d.ts +11 -0
- package/mobile/bundle/index.d.ts +3 -3
- package/mobile/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/mobile/bundle/utils/adjustSrc.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +2 -2
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js +9 -4
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -4
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js +8 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -4
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js +3 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.js +3 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/Video/Video.js +1 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/external/handlerDecorator.js.map +1 -0
- package/mobile/dist/external/locationNavigator.d.ts +11 -0
- package/mobile/dist/external/locationNavigator.js +21 -0
- package/mobile/dist/external/locationNavigator.js.map +1 -0
- package/mobile/dist/external/useRouter.js.map +1 -0
- package/mobile/dist/hooks/useActiveRoute.js +1 -1
- package/mobile/dist/hooks/useActiveRoute.js.map +1 -1
- package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/mobile/dist/hooks/useClickHandler.js +1 -1
- package/mobile/dist/hooks/useClickHandler.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +2 -2
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/index.d.ts +3 -3
- package/mobile/dist/index.js +5 -5
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/setup-fixture.js +2 -2
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/useButton.js +1 -1
- package/mobile/dist/ui-kit/Button/useButton.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/mobile/dist/utils/adjustSrc.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +2 -2
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js +9 -4
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -4
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js +6 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -4
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js +3 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.js +3 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/Video/Video.js +1 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/external/handlerDecorator.js.map +1 -0
- package/mobile/lib/external/locationNavigator.d.ts +11 -0
- package/mobile/lib/external/locationNavigator.js +18 -0
- package/mobile/lib/external/locationNavigator.js.map +1 -0
- package/mobile/lib/external/useRouter.js.map +1 -0
- package/mobile/lib/hooks/useActiveRoute.js +1 -1
- package/mobile/lib/hooks/useActiveRoute.js.map +1 -1
- package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
- package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
- package/mobile/lib/hooks/useClickHandler.js +1 -1
- package/mobile/lib/hooks/useClickHandler.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +2 -2
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/index.d.ts +3 -3
- package/mobile/lib/index.js +3 -3
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/setup-fixture.js +2 -2
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/useButton.js +1 -1
- package/mobile/lib/ui-kit/Button/useButton.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
- package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
- package/mobile/lib/utils/adjustSrc.d.ts +1 -1
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +6 -4
- package/mobile/src/api/RetailAPI/updateRefreshToken.ts +11 -4
- package/mobile/src/api/RetailAPI/updateUserTask.ts +1 -0
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +4 -0
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +8 -0
- package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/mobile/src/components/CreditForm/CreditForm.tsx +1 -6
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +3 -0
- package/mobile/src/components/CreditForm/getThirdStepData.ts +4 -0
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/mobile/src/components/Video/Video.tsx +1 -1
- package/mobile/src/external/locationNavigator.ts +27 -0
- package/mobile/src/hooks/useActiveRoute.ts +1 -2
- package/mobile/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
- package/mobile/src/hooks/useClickHandler.ts +1 -1
- package/mobile/src/hooks/useLink.ts +2 -2
- package/mobile/src/index.ts +3 -3
- package/mobile/src/setup-fixture.ts +2 -2
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/ui-kit/Button/useButton.ts +1 -1
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
- package/mobile/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
- package/mobile/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
- package/mobile/src/ui-kit/Icon/Icon.tsx +1 -1
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
- package/mobile/src/utils/adjustSrc.ts +1 -1
- package/package.json +1 -1
- package/src/api/RetailAPI/getPaymentSystems.ts +6 -4
- package/src/api/RetailAPI/updateRefreshToken.ts +11 -4
- package/src/api/RetailAPI/updateUserTask.ts +1 -0
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
- package/src/components/Blocks.ts +0 -2
- package/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
- package/src/components/CreditCardForm/getFourthStepData.ts +4 -0
- package/src/components/CreditCardForm/getSixthStepData.ts +8 -0
- package/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/src/components/CreditForm/CreditForm.tsx +1 -6
- package/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
- package/src/components/CreditForm/getSecondStepData.tsx +3 -0
- package/src/components/CreditForm/getThirdStepData.ts +4 -0
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
- package/src/components/TabsLayout/TabsLayout.tsx +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/src/components/Video/Video.tsx +1 -1
- package/src/external/locationNavigator.ts +27 -0
- package/src/hooks/useActiveRoute.ts +1 -2
- package/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
- package/src/hooks/useClickHandler.ts +1 -1
- package/src/hooks/useLink.ts +2 -2
- package/src/index.ts +3 -3
- package/src/setup-fixture.ts +2 -2
- package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/src/ui-kit/Button/useButton.ts +1 -1
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
- package/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
- package/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
- package/src/ui-kit/Icon/Icon.tsx +1 -1
- package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
- package/src/utils/adjustSrc.ts +1 -1
- package/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/bundle/hooks/useNavigator.d.ts +0 -8
- package/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
- package/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/dist/hooks/handlerDecorator.js.map +0 -1
- package/dist/hooks/useNavigator.d.ts +0 -8
- package/dist/hooks/useNavigator.js +0 -13
- package/dist/hooks/useNavigator.js.map +0 -1
- package/dist/hooks/useRouter.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/lib/components/ApplicationStatus/ApplicationStatus.fixture.d.ts +0 -9
- package/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
- package/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/lib/hooks/handlerDecorator.js.map +0 -1
- package/lib/hooks/useNavigator.d.ts +0 -8
- package/lib/hooks/useNavigator.js +0 -10
- package/lib/hooks/useNavigator.js.map +0 -1
- package/lib/hooks/useRouter.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/mobile/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/mobile/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/mobile/bundle/hooks/useNavigator.d.ts +0 -8
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
- package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/mobile/dist/hooks/handlerDecorator.js.map +0 -1
- package/mobile/dist/hooks/useNavigator.d.ts +0 -8
- package/mobile/dist/hooks/useNavigator.js +0 -13
- package/mobile/dist/hooks/useNavigator.js.map +0 -1
- package/mobile/dist/hooks/useRouter.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
- package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
- package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
- package/mobile/lib/hooks/handlerDecorator.js.map +0 -1
- package/mobile/lib/hooks/useNavigator.d.ts +0 -8
- package/mobile/lib/hooks/useNavigator.js +0 -10
- package/mobile/lib/hooks/useNavigator.js.map +0 -1
- package/mobile/lib/hooks/useRouter.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
- package/mobile/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
- package/mobile/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
- package/mobile/src/hooks/useNavigator.ts +0 -15
- package/mobile/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
- package/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
- package/src/components/ApplicationStatus/ApplicationStatus.fixture.tsx +0 -129
- package/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
- package/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
- package/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
- package/src/hooks/useNavigator.ts +0 -15
- package/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
- /package/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/bundle/{hooks → external}/useRouter.d.ts +0 -0
- /package/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/dist/{hooks → external}/handlerDecorator.js +0 -0
- /package/dist/{hooks → external}/useRouter.d.ts +0 -0
- /package/dist/{hooks → external}/useRouter.js +0 -0
- /package/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/lib/{hooks → external}/handlerDecorator.js +0 -0
- /package/lib/{hooks → external}/useRouter.d.ts +0 -0
- /package/lib/{hooks → external}/useRouter.js +0 -0
- /package/mobile/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/mobile/bundle/{hooks → external}/useRouter.d.ts +0 -0
- /package/mobile/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/mobile/dist/{hooks → external}/handlerDecorator.js +0 -0
- /package/mobile/dist/{hooks → external}/useRouter.d.ts +0 -0
- /package/mobile/dist/{hooks → external}/useRouter.js +0 -0
- /package/mobile/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
- /package/mobile/lib/{hooks → external}/handlerDecorator.js +0 -0
- /package/mobile/lib/{hooks → external}/useRouter.d.ts +0 -0
- /package/mobile/lib/{hooks → external}/useRouter.js +0 -0
- /package/mobile/src/{hooks → external}/handlerDecorator.ts +0 -0
- /package/mobile/src/{hooks → external}/useRouter.ts +0 -0
- /package/src/{hooks → external}/handlerDecorator.ts +0 -0
- /package/src/{hooks → external}/useRouter.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ProductField.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ProductField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ProductField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAQrD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAoB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACxE,KAAC,aAAa,IACZ,WAAW,EAAC,6FAAkB,EAC9B,KAAK,EAAC,4CAAS,EACf,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,WAAW,CAAC,KACxC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,GACzD,CACH,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useRouter } from '../../
|
|
3
|
+
import { useRouter } from '../../external/useRouter.js';
|
|
4
4
|
import { projectSettings } from '../../ProjectSettings.js';
|
|
5
5
|
import { adjustHref } from '../../utils/adjustHref.js';
|
|
6
6
|
import { isOnlyDigits } from '../../utils/isOnlyDigits.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,MAAM,cAAc,GAAgC;IAClD,EAAE,EAAE,EAAE;IACN,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,mBAAmB;IAC1B,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,WAAW;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,EAAE,EACnB,IAAI,GAAG,EAAE,EACT,GAAG,GAAG,UAAU,IAAI,EAAE,EACtB,KAAK,GAAG,GAAG,EACX,WAAW,GAAG,OAAO,EACrB,KAAK,EACL,MAAM,GACP,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,QAAQ,GAAG,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,eAAe,IAAI,EAAE,CAAC;IAClF,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;IACpF,IAAI,WAAW,KAAK,QAAQ,EAAE;QAC5B,yBAAyB;QACzB,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,iBACA,MAAM,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,GACxC,CACH,CAAC;KACH;IAED,OAAO,CACL,KAAC,UAAU,IAAC,SAAS,EAAE,SAAS,YAC9B,eACE,SAAS,EAAE,KAAK,CACd,UAAU,CAAC,KAAK,CAAC,EACjB,cAAc,CAAC,WAAW,CAAC,EAC3B;gBACE,MAAM,EAAE,WAAW,KAAK,OAAO;aAChC,EACD,cAAc,CACf,EACD,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,iBACF,MAAM,aAEjB,KAAK,CAAC,CAAC,CAAC,0BAAQ,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI,EACrC,GAAG,CAAC,CAAC,CAAC,yBAAO,GAAG,GAAQ,CAAC,CAAC,CAAC,IAAI,EAChC,cAAK,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAI,IAChC,GACK,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,SAAkB,EAAE,MAAe,EAAE,EAAE;IAC7D,IAAI,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE;QAC7B,OAAO,EAAE,CAAC;KACX;IAED,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAClF,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;AAEtE,MAAM,UAAU,GAAG,GAAG,CAAyB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,CACzE,SAAS,CAAC,CAAC,CAAC,CACV,cAAK,IAAI,EAAC,KAAK,EAAC,SAAS,EAAE,SAAS,YACjC,QAAQ,GACL,CACP,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useRouter } from '../../
|
|
3
|
+
import { useRouter } from '../../external/useRouter.js';
|
|
4
4
|
import { adjustSrc } from '../../utils/adjustSrc.js';
|
|
5
5
|
import { style } from '../../utils/style.js';
|
|
6
6
|
const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImgAsPicture.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgAsPicture.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ImgAsPicture.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgAsPicture.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE,CACnD,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/C,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAa,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE,EAAE;IAC7F,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,CACL,mBAAS,SAAS,EAAE,SAAS,aAC1B,KAAK,EAAE,OAAO,EAAE,MAAM;gBACrB,CAAC,CAAC,KAAK,CAAC,OAAO;qBACV,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;qBACrB,IAAI,CAAC,iBAAiB,CAAC;qBACvB,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CACtC,iBAEE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAC9B,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,eAAe,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,EAC7C,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EACzB,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,IALtB,GAAG,KAAK,IAAI,GAAG,EAAE,CAMtB,CACH,CAAC;gBACN,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG;gBACT,CAAC,CAAC,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,cAAc,CAAC;gBAC5E,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE,CAAC,CACzD,cACE,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,SAAS,EAAE,KAAK,CAAC,gBAAgB,EAAE,cAAc,CAAC,EAClD,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,KAAK,EAAE,KAAK,IAAI,EAAE,EACrC,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,EACzB,KAAK,EAAE;QACL,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QAC7D,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;KACjE,EACD,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EACzB,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAC3B,CACH,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,MAA2B,EAAE,EAAE,CACvD,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
import { useRouter } from '../../
|
|
4
|
+
import { useRouter } from '../../external/useRouter.js';
|
|
5
5
|
import { adjustHref } from '../../utils/adjustHref.js';
|
|
6
6
|
import { Button } from '../Button/Button.js';
|
|
7
7
|
import { Dialog } from '../DialogManager/Dialog.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/ReportDialog/ReportDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ReportDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/ReportDialog/ReportDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAoB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;IAC9E,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,KAAK,EAAE,CAAC;IACV,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,MAAC,MAAM,IAAC,SAAS,EAAC,gCAAgC,aAC/C,MAAM,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,EAC7C,eAAK,SAAS,EAAC,0CAA0C,aACvD,KAAC,UAAU,IACT,IAAI,EAAC,yDAAY,EACjB,OAAO,EAAC,SAAS,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,WAAW,GACpB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,WAAW,qFAErD,IACL,EACN,m9BAGM,IACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type Router } from '../
|
|
1
|
+
import { type Router } from '../external/useRouter';
|
|
2
2
|
export declare const adjustSrc: (router: Router) => (src: string | undefined) => string | undefined;
|
|
@@ -14,8 +14,10 @@ export const getPaymentSystems = async () => {
|
|
|
14
14
|
|
|
15
15
|
const data: PaymentSystemResponse = await response?.json();
|
|
16
16
|
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
return (
|
|
18
|
+
data?.paymentSystems?.map((paymentSystem) => ({
|
|
19
|
+
id: paymentSystem.type,
|
|
20
|
+
text: paymentSystem.name,
|
|
21
|
+
})) ?? []
|
|
22
|
+
);
|
|
21
23
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
1
2
|
import { doRequest } from './doRequest';
|
|
2
3
|
|
|
3
4
|
interface UpdateRefreshTokenBody {
|
|
@@ -5,17 +6,23 @@ interface UpdateRefreshTokenBody {
|
|
|
5
6
|
access_token: string;
|
|
6
7
|
}
|
|
7
8
|
|
|
9
|
+
const PORTAL_NATURAL_URL = '/';
|
|
10
|
+
|
|
8
11
|
const UPDATING_INTERVAL = 60000 * 4;
|
|
9
12
|
|
|
10
|
-
export const updateRefreshToken = (
|
|
13
|
+
export const updateRefreshToken = () => {
|
|
11
14
|
const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
|
|
12
15
|
const accessToken = globalThis.sessionStorage?.getItem('accessToken');
|
|
13
16
|
const taskId = globalThis.localStorage.getItem('taskId');
|
|
14
17
|
|
|
18
|
+
const navigator = locationNavigator();
|
|
19
|
+
|
|
15
20
|
if (!accessToken || !refreshToken || !taskId) {
|
|
16
|
-
|
|
21
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
17
22
|
|
|
18
|
-
return () =>
|
|
23
|
+
return () => {
|
|
24
|
+
// do nothing
|
|
25
|
+
};
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
const updateTokenRequest = async () => {
|
|
@@ -27,7 +34,7 @@ export const updateRefreshToken = (failCallback: () => void) => {
|
|
|
27
34
|
});
|
|
28
35
|
|
|
29
36
|
if (res?.status == 401) {
|
|
30
|
-
|
|
37
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
if (res?.ok) {
|
|
@@ -118,7 +118,7 @@ export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
|
118
118
|
totalIncome?: number;
|
|
119
119
|
expenses?: number;
|
|
120
120
|
snils?: string;
|
|
121
|
-
conscription?:
|
|
121
|
+
conscription?: Option;
|
|
122
122
|
armyIdFlg?: boolean;
|
|
123
123
|
addressRegistration?: Address;
|
|
124
124
|
participantDateRegistration?: Date | string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
2
|
import { type FormState } from '../../components/ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
4
|
import { formatDate } from '../../utils/formatDate';
|
|
4
5
|
import { formatPhone } from '../../utils/formatPhone';
|
|
5
6
|
import { getParticipantContacts } from '../CreditForm/utils';
|
|
@@ -18,12 +19,13 @@ export const getLeadFormTaskData = ({
|
|
|
18
19
|
formData,
|
|
19
20
|
}: getLeadFormTaskDataProps): UpdateUserTaskBody => {
|
|
20
21
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
22
|
+
const navigator = locationNavigator();
|
|
21
23
|
|
|
22
24
|
return {
|
|
23
25
|
sendToBank: true,
|
|
24
26
|
taskKind: 'SHORT',
|
|
25
27
|
task: {
|
|
26
|
-
taskSource:
|
|
28
|
+
taskSource: navigator.origin,
|
|
27
29
|
id: taskId,
|
|
28
30
|
participants: [
|
|
29
31
|
{
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
|
|
3
3
|
import { updateProfileEsia } from '../../api/RetailAPI/updateProfileEsia';
|
|
4
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
4
5
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
6
|
import { type FormState } from './getInitialFormState';
|
|
6
7
|
import { parseEsiaProfile } from './pasreEsiaProfile';
|
|
7
8
|
|
|
8
9
|
export const useInitApplicationLead = (nextStepLink: string) => {
|
|
10
|
+
const navigator = locationNavigator();
|
|
9
11
|
const [isLoading, setIsLoading] = useState(false);
|
|
10
12
|
const [profileId] = useLocalStorage<string>('profileId');
|
|
11
13
|
const [leadForm, setLeadForm] = useLocalStorage<FormState>('leadForm');
|
|
@@ -19,7 +21,7 @@ export const useInitApplicationLead = (nextStepLink: string) => {
|
|
|
19
21
|
profileId: profileId,
|
|
20
22
|
code,
|
|
21
23
|
state,
|
|
22
|
-
redirectUri:
|
|
24
|
+
redirectUri: navigator.href,
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
data &&
|
|
@@ -28,7 +30,7 @@ export const useInitApplicationLead = (nextStepLink: string) => {
|
|
|
28
30
|
...parseEsiaProfile(data),
|
|
29
31
|
});
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
navigator.assign(nextStepLink);
|
|
32
34
|
}
|
|
33
35
|
}, []);
|
|
34
36
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
4
|
-
import { useNavigator } from '../../hooks/useNavigator';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
@@ -12,8 +11,6 @@ import { stepsSectionsMap } from './creditCardFormStepsData';
|
|
|
12
11
|
|
|
13
12
|
interface CreditCardFormWizardProps extends CreditCardFormContent, UniBlockProps {}
|
|
14
13
|
|
|
15
|
-
const PORTAL_NATURAL_URL = '/';
|
|
16
|
-
|
|
17
14
|
const WIZARD_STEPS = 6;
|
|
18
15
|
|
|
19
16
|
const WIZARD_TITLES = [
|
|
@@ -34,9 +31,7 @@ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...re
|
|
|
34
31
|
[formContainerRef],
|
|
35
32
|
);
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
|
|
34
|
+
useEffect(updateRefreshToken, []);
|
|
40
35
|
|
|
41
36
|
const handleNextStep = useCallback(() => {
|
|
42
37
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
3
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
4
|
import { getFifthStepData } from './getFifthStepData';
|
|
4
5
|
import { getFirstStepData } from './getFirstStepData';
|
|
5
6
|
import { getFourthStepData } from './getFourthStepData';
|
|
6
7
|
import { getSecondStepData } from './getSecondStepData';
|
|
7
|
-
import { getDeliveryData, getSixthStepData } from './getSixthStepData';
|
|
8
|
+
import { getDeliveryData, getOfficeCode, getSixthStepData } from './getSixthStepData';
|
|
8
9
|
import { getThirdStepData } from './getThirdStepData';
|
|
9
10
|
|
|
10
11
|
type getCreditCardFormTaskDataProps = {
|
|
@@ -22,15 +23,15 @@ export const getCreditCardFormTaskData = ({
|
|
|
22
23
|
formData,
|
|
23
24
|
step = 0,
|
|
24
25
|
}: getCreditCardFormTaskDataProps): UpdateUserTaskBody => {
|
|
26
|
+
const navigator = locationNavigator();
|
|
27
|
+
|
|
25
28
|
return {
|
|
26
29
|
sendToBank: true,
|
|
27
30
|
taskKind: 'UNITED',
|
|
28
31
|
task: {
|
|
29
|
-
taskSource:
|
|
32
|
+
taskSource: navigator.origin,
|
|
30
33
|
id: taskId,
|
|
31
|
-
|
|
32
|
-
id: '650', // TODO: Remove hardcode
|
|
33
|
-
},
|
|
34
|
+
...getOfficeCode(formData),
|
|
34
35
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
35
36
|
participants: [
|
|
36
37
|
{
|
|
@@ -7,6 +7,7 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
|
|
|
7
7
|
familyStatus,
|
|
8
8
|
dependents,
|
|
9
9
|
familyMembers,
|
|
10
|
+
children,
|
|
10
11
|
wages,
|
|
11
12
|
mandatoryPayments,
|
|
12
13
|
incomeAverage,
|
|
@@ -17,12 +18,15 @@ export const getFourthStepData = (formData: FormState): Partial<Participant> =>
|
|
|
17
18
|
retirementIncome,
|
|
18
19
|
snils,
|
|
19
20
|
armyIdFlg,
|
|
21
|
+
conscription,
|
|
20
22
|
} = formData;
|
|
21
23
|
|
|
22
24
|
return {
|
|
23
25
|
maritalStatusCd: familyStatus,
|
|
26
|
+
childrenDependents: children,
|
|
24
27
|
totalDependents: familyMembers,
|
|
25
28
|
otherDependents: dependents,
|
|
29
|
+
militaryStatusCd: conscription,
|
|
26
30
|
participantIncomes: getParticipantIncomes({
|
|
27
31
|
wages,
|
|
28
32
|
mandatoryPayments,
|
|
@@ -12,6 +12,14 @@ export const getDeliveryData = (formData: FormState) => {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
export const getOfficeCode = (formData: FormState) => {
|
|
16
|
+
const { addressRetail } = formData;
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
office: addressRetail?.key ? { id: addressRetail.key } : undefined,
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
15
23
|
export const getSixthStepData = (formData: FormState) => {
|
|
16
24
|
const { addressCourier } = formData;
|
|
17
25
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { formatDate } from '../../utils/formatDate';
|
|
2
3
|
import { formatPhone } from '../../utils/formatPhone';
|
|
3
4
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
5
|
import { getParticipantAddresses, getParticipantContacts } from '../CreditForm/utils';
|
|
5
6
|
|
|
6
7
|
export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
7
8
|
const {
|
|
9
|
+
beginDate,
|
|
8
10
|
employment,
|
|
9
11
|
organizationName,
|
|
10
12
|
inn,
|
|
@@ -23,6 +25,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
23
25
|
} = formData;
|
|
24
26
|
|
|
25
27
|
return {
|
|
28
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
26
29
|
employmentTypeCd: employment,
|
|
27
30
|
organizationName,
|
|
28
31
|
organizationInn: inn,
|
|
@@ -32,7 +32,7 @@ export const useCreditCardFormAPI = ({
|
|
|
32
32
|
const feedbackValidator = objectValidator(
|
|
33
33
|
getObjectValidator(calculateInputs(getValue(formData))(inputs, step)),
|
|
34
34
|
);
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
37
37
|
return console.warn('validation fail');
|
|
38
38
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { updateRefreshToken } from '../../api/RetailAPI/updateRefreshToken';
|
|
4
|
-
import { useNavigator } from '../../hooks/useNavigator';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
7
6
|
import { style } from '../../utils/style';
|
|
@@ -13,8 +12,6 @@ import { stepsSectionsMap } from './creditFormStepsData';
|
|
|
13
12
|
|
|
14
13
|
interface CreditFormWizardProps extends CreditFormContent, UniBlockProps {}
|
|
15
14
|
|
|
16
|
-
const PORTAL_NATURAL_URL = '/';
|
|
17
|
-
|
|
18
15
|
const WIZARD_STEPS = 5;
|
|
19
16
|
|
|
20
17
|
const WIZARD_TITLES = [
|
|
@@ -35,9 +32,7 @@ export const CreditForm = JSX<CreditFormWizardProps>(({ className, ...rest }) =>
|
|
|
35
32
|
[formContainerRef],
|
|
36
33
|
);
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
|
|
35
|
+
useEffect(updateRefreshToken, []);
|
|
41
36
|
|
|
42
37
|
const handleNextStep = useCallback(() => {
|
|
43
38
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
3
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
4
|
import { getFifthStepData } from './getFifthStepData';
|
|
4
5
|
import { getFirstStepData } from './getFirstStepData';
|
|
@@ -21,36 +22,37 @@ export const getCreditFormTaskData = ({
|
|
|
21
22
|
profileId,
|
|
22
23
|
formData,
|
|
23
24
|
step = 0,
|
|
24
|
-
}: getCreditFormTaskDataProps): UpdateUserTaskBody =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
}: getCreditFormTaskDataProps): UpdateUserTaskBody => {
|
|
26
|
+
const navigator = locationNavigator();
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
sendToBank: true,
|
|
30
|
+
taskKind: 'UNITED',
|
|
31
|
+
task: {
|
|
32
|
+
taskSource: navigator.origin,
|
|
33
|
+
id: taskId,
|
|
34
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
35
|
+
participants: [
|
|
36
|
+
{
|
|
37
|
+
id: participantId,
|
|
38
|
+
profile: {
|
|
39
|
+
id: profileId,
|
|
40
|
+
},
|
|
41
|
+
roleCd: {
|
|
42
|
+
key: 'BORROWER',
|
|
43
|
+
value: 'Заемщик',
|
|
44
|
+
},
|
|
45
|
+
...getCurrentStepData(step, formData),
|
|
43
46
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
47
|
+
],
|
|
48
|
+
...getZeroStepData(formData), // moved from participants
|
|
49
|
+
...getFifthStepData(formData),
|
|
50
|
+
esiaAccountTypeCd: {
|
|
51
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
52
|
+
} as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
};
|
|
54
56
|
|
|
55
57
|
const getCurrentStepData = (step: number, formData: FormState): Partial<Participant> => {
|
|
56
58
|
switch (step) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { formatDate } from '../../utils/formatDate';
|
|
2
3
|
import { formatPhone } from '../../utils/formatPhone';
|
|
3
4
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
5
|
import { getParticipantAddresses, getParticipantContacts } from './utils';
|
|
5
6
|
|
|
6
7
|
export const getSecondStepData = (formData: FormState): Partial<Participant> => {
|
|
7
8
|
const {
|
|
9
|
+
beginDate,
|
|
8
10
|
employment,
|
|
9
11
|
organizationName,
|
|
10
12
|
inn,
|
|
@@ -23,6 +25,7 @@ export const getSecondStepData = (formData: FormState): Partial<Participant> =>
|
|
|
23
25
|
} = formData;
|
|
24
26
|
|
|
25
27
|
return {
|
|
28
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
26
29
|
employmentTypeCd: employment,
|
|
27
30
|
organizationName,
|
|
28
31
|
organizationInn: inn,
|
|
@@ -7,6 +7,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
7
7
|
familyStatus,
|
|
8
8
|
dependents,
|
|
9
9
|
familyMembers,
|
|
10
|
+
children,
|
|
10
11
|
confirmationIncome,
|
|
11
12
|
wages,
|
|
12
13
|
mandatoryPayments,
|
|
@@ -18,6 +19,7 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
18
19
|
retirementIncome,
|
|
19
20
|
snils,
|
|
20
21
|
armyIdFlg,
|
|
22
|
+
conscription,
|
|
21
23
|
} = formData;
|
|
22
24
|
|
|
23
25
|
return {
|
|
@@ -25,6 +27,8 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
|
|
|
25
27
|
totalDependents: familyMembers,
|
|
26
28
|
incomeCertificateCd: confirmationIncome,
|
|
27
29
|
otherDependents: dependents,
|
|
30
|
+
childrenDependents: children,
|
|
31
|
+
militaryStatusCd: conscription,
|
|
28
32
|
participantIncomes: getParticipantIncomes({
|
|
29
33
|
wages,
|
|
30
34
|
mandatoryPayments,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useRouter } from '../../
|
|
3
|
+
import { useRouter } from '../../external/useRouter';
|
|
4
4
|
import { type BgColorVersion } from '../../model/BgColorVersion';
|
|
5
5
|
import { type BlockVersion } from '../../model/BlockVersion';
|
|
6
6
|
import { type LogoType } from '../../model/LogoType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useRouter, type Router } from '../../
|
|
1
|
+
import { useRouter, type Router } from '../../external/useRouter';
|
|
2
2
|
import { type Picture } from '../../model/Picture';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { renderBlocksList } from '../../BlockRenderer/renderBlockList';
|
|
3
|
-
import { useRouter } from '../../
|
|
3
|
+
import { useRouter } from '../../external/useRouter';
|
|
4
4
|
import { type BlockDef } from '../../model/ContentPageDef';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { type TabItemBase } from '../../ui-kit/TabsControl/TabItem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
2
|
-
import { useRouter } from '../../
|
|
2
|
+
import { useRouter } from '../../external/useRouter';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
5
5
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useRouter } from '../../
|
|
2
|
+
import { useRouter } from '../../external/useRouter';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
5
5
|
import { adjustHref } from '../../utils/adjustHref';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Target } from '../model/LinkProps';
|
|
2
|
+
|
|
3
|
+
export interface LocationNavigator {
|
|
4
|
+
assign: (url: string, target?: Target) => void;
|
|
5
|
+
readonly origin: string;
|
|
6
|
+
readonly href: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function locationNavigator(): LocationNavigator {
|
|
10
|
+
return locationNavigator._impl();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
locationNavigator._impl = (): LocationNavigator => ({
|
|
14
|
+
assign: (url, target) => {
|
|
15
|
+
globalThis.open(url, target || '_self');
|
|
16
|
+
},
|
|
17
|
+
get origin() {
|
|
18
|
+
return globalThis.location.origin;
|
|
19
|
+
},
|
|
20
|
+
get href() {
|
|
21
|
+
return globalThis.location.href;
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
locationNavigator.setup = (impl: () => LocationNavigator) => {
|
|
26
|
+
locationNavigator._impl = impl;
|
|
27
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { env } from '../Env';
|
|
2
|
-
import { type Router } from '../
|
|
2
|
+
import { useRouter, type Router } from '../external/useRouter';
|
|
3
3
|
import { type LinkProps } from '../model/LinkProps';
|
|
4
4
|
import { getBasePath } from '../utils/getBasePath';
|
|
5
5
|
import { isURL, joinPath, withoutQuery } from '../utils/url';
|
|
6
|
-
import { useRouter } from './useRouter';
|
|
7
6
|
|
|
8
7
|
export function useActiveRoute<T extends LinkProps>(items: T[] | undefined = []): [number, T] {
|
|
9
8
|
const router = useRouter();
|
|
@@ -1,32 +1,20 @@
|
|
|
1
|
+
import { locationNavigator } from '../../../external/locationNavigator';
|
|
1
2
|
import { type Target } from '../../../model/LinkProps';
|
|
2
3
|
import { type PreventableEventWithTarget } from '../../../ui-kit/PreventableEvent';
|
|
3
4
|
import { adjustSessionQuery } from '../../../utils/adjustSessionQuery';
|
|
4
|
-
import { tableFunc } from '../../../utils/tableFunc';
|
|
5
5
|
import { isURL } from '../../../utils/url';
|
|
6
6
|
|
|
7
7
|
export const forwardQuery = (ev: PreventableEventWithTarget) => {
|
|
8
8
|
const anchor = (ev.target as Element | null)?.closest('a');
|
|
9
|
+
const navigator = locationNavigator();
|
|
9
10
|
|
|
10
|
-
if (isURL(anchor?.href) && !anchor?.href?.startsWith(
|
|
11
|
+
if (isURL(anchor?.href) && !anchor?.href?.startsWith(navigator.origin)) {
|
|
11
12
|
ev.preventDefault();
|
|
12
13
|
ev.stopPropagation();
|
|
13
14
|
|
|
14
15
|
const url = adjustSessionQuery(anchor?.href) || anchor?.href;
|
|
15
16
|
if (url) {
|
|
16
|
-
|
|
17
|
-
transition?.(url);
|
|
17
|
+
navigator.assign(url, anchor?.target as Target);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
const getTransition = tableFunc<Target, (url: string) => void>([
|
|
23
|
-
[(_) => _ === '_blank', (url) => globalThis.open(url, '_blank')],
|
|
24
|
-
[(_) => _ === '_parent', (url) => globalThis.parent && (globalThis.parent.location.href = url)],
|
|
25
|
-
[
|
|
26
|
-
(_) => _ === '_top',
|
|
27
|
-
(url) => {
|
|
28
|
-
globalThis.top && (globalThis.top.location.href = url);
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
[() => true, (url) => globalThis.location && (globalThis.location.href = url)],
|
|
32
|
-
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { useEventListener } from '@redneckz/uni-jsx/lib/hooks/useEventListener';
|
|
3
|
+
import { handlerDecorator } from '../external/handlerDecorator';
|
|
3
4
|
import { saveSessionQuery } from '../utils/getSessionQuery';
|
|
4
|
-
import { handlerDecorator } from './handlerDecorator';
|
|
5
5
|
import { applyAspects } from './useAspects/applyAspects';
|
|
6
6
|
import { useAspects } from './useAspects/useAspects';
|
|
7
7
|
|