@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -406,6 +406,15 @@
|
|
|
406
406
|
className,
|
|
407
407
|
].join(' ');
|
|
408
408
|
|
|
409
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
410
|
+
const handlerDecorator = (handler) => {
|
|
411
|
+
return handlerDecorator._impl(handler);
|
|
412
|
+
};
|
|
413
|
+
handlerDecorator._impl = (handler) => handler;
|
|
414
|
+
handlerDecorator.setup = (impl) => {
|
|
415
|
+
handlerDecorator._impl = impl;
|
|
416
|
+
};
|
|
417
|
+
|
|
409
418
|
class EventBus {
|
|
410
419
|
watchers = new Set();
|
|
411
420
|
subscribersMap = {};
|
|
@@ -465,15 +474,6 @@
|
|
|
465
474
|
|
|
466
475
|
const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
|
|
467
476
|
|
|
468
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
469
|
-
const handlerDecorator = (handler) => {
|
|
470
|
-
return handlerDecorator._impl(handler);
|
|
471
|
-
};
|
|
472
|
-
handlerDecorator._impl = (handler) => handler;
|
|
473
|
-
handlerDecorator.setup = (impl) => {
|
|
474
|
-
handlerDecorator._impl = impl;
|
|
475
|
-
};
|
|
476
|
-
|
|
477
477
|
function useLink() {
|
|
478
478
|
const basePath = getBasePath(env.SITE_URL);
|
|
479
479
|
const router = useRouter();
|
|
@@ -1065,6 +1065,24 @@
|
|
|
1065
1065
|
}
|
|
1066
1066
|
};
|
|
1067
1067
|
|
|
1068
|
+
function locationNavigator() {
|
|
1069
|
+
return locationNavigator._impl();
|
|
1070
|
+
}
|
|
1071
|
+
locationNavigator._impl = () => ({
|
|
1072
|
+
assign: (url, target) => {
|
|
1073
|
+
globalThis.open(url, target || '_self');
|
|
1074
|
+
},
|
|
1075
|
+
get origin() {
|
|
1076
|
+
return globalThis.location.origin;
|
|
1077
|
+
},
|
|
1078
|
+
get href() {
|
|
1079
|
+
return globalThis.location.href;
|
|
1080
|
+
},
|
|
1081
|
+
});
|
|
1082
|
+
locationNavigator.setup = (impl) => {
|
|
1083
|
+
locationNavigator._impl = impl;
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1068
1086
|
const QUERY_STORAGE_KEY = 'rshb-query-params';
|
|
1069
1087
|
function saveSessionQuery() {
|
|
1070
1088
|
const result = globalThis.location?.search || globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY) || '';
|
|
@@ -1086,69 +1104,18 @@
|
|
|
1086
1104
|
return url.toString();
|
|
1087
1105
|
};
|
|
1088
1106
|
|
|
1089
|
-
function assertNonEmpty(value) {
|
|
1090
|
-
if (!value) {
|
|
1091
|
-
throw new Error('Value should be fulfilled');
|
|
1092
|
-
}
|
|
1093
|
-
return value;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
const baseTableFunc = (table) => (input) => {
|
|
1097
|
-
const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
|
|
1098
|
-
return unit(input);
|
|
1099
|
-
};
|
|
1100
|
-
const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
|
|
1101
|
-
tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
|
|
1102
|
-
class TableFuncBuilder {
|
|
1103
|
-
parent;
|
|
1104
|
-
predicate;
|
|
1105
|
-
unit;
|
|
1106
|
-
get entry() {
|
|
1107
|
-
return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
|
|
1108
|
-
}
|
|
1109
|
-
constructor(parent, predicate, unit) {
|
|
1110
|
-
this.parent = parent;
|
|
1111
|
-
this.predicate = predicate;
|
|
1112
|
-
this.unit = unit;
|
|
1113
|
-
}
|
|
1114
|
-
if(predicate) {
|
|
1115
|
-
return new TableFuncBuilder(this, predicate);
|
|
1116
|
-
}
|
|
1117
|
-
then(unit) {
|
|
1118
|
-
return new TableFuncBuilder(this.parent, this.predicate, unit);
|
|
1119
|
-
}
|
|
1120
|
-
else(unit) {
|
|
1121
|
-
return baseTableFunc([...buildTable(this), [() => true, unit]]);
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
const buildTable = (builder) => [
|
|
1125
|
-
...(builder?.parent ? buildTable(builder.parent) : []),
|
|
1126
|
-
builder.entry,
|
|
1127
|
-
];
|
|
1128
|
-
|
|
1129
1107
|
const forwardQuery = (ev) => {
|
|
1130
1108
|
const anchor = ev.target?.closest('a');
|
|
1131
|
-
|
|
1109
|
+
const navigator = locationNavigator();
|
|
1110
|
+
if (isURL(anchor?.href) && !anchor?.href?.startsWith(navigator.origin)) {
|
|
1132
1111
|
ev.preventDefault();
|
|
1133
1112
|
ev.stopPropagation();
|
|
1134
1113
|
const url = adjustSessionQuery(anchor?.href) || anchor?.href;
|
|
1135
1114
|
if (url) {
|
|
1136
|
-
|
|
1137
|
-
transition?.(url);
|
|
1115
|
+
navigator.assign(url, anchor?.target);
|
|
1138
1116
|
}
|
|
1139
1117
|
}
|
|
1140
1118
|
};
|
|
1141
|
-
const getTransition = tableFunc([
|
|
1142
|
-
[(_) => _ === '_blank', (url) => globalThis.open(url, '_blank')],
|
|
1143
|
-
[(_) => _ === '_parent', (url) => globalThis.parent && (globalThis.parent.location.href = url)],
|
|
1144
|
-
[
|
|
1145
|
-
(_) => _ === '_top',
|
|
1146
|
-
(url) => {
|
|
1147
|
-
globalThis.top && (globalThis.top.location.href = url);
|
|
1148
|
-
},
|
|
1149
|
-
],
|
|
1150
|
-
[() => true, (url) => globalThis.location && (globalThis.location.href = url)],
|
|
1151
|
-
]);
|
|
1152
1119
|
|
|
1153
1120
|
function useAspects() {
|
|
1154
1121
|
return useAspects._impl();
|
|
@@ -3363,10 +3330,10 @@
|
|
|
3363
3330
|
creditProgramId: 13,
|
|
3364
3331
|
});
|
|
3365
3332
|
const data = await response?.json();
|
|
3366
|
-
return data?.paymentSystems?.map((paymentSystem) => ({
|
|
3333
|
+
return (data?.paymentSystems?.map((paymentSystem) => ({
|
|
3367
3334
|
id: paymentSystem.type,
|
|
3368
3335
|
text: paymentSystem.name,
|
|
3369
|
-
}));
|
|
3336
|
+
})) ?? []);
|
|
3370
3337
|
};
|
|
3371
3338
|
|
|
3372
3339
|
const PaymentSystemField = JSX(({ field, input }) => {
|
|
@@ -3419,7 +3386,7 @@
|
|
|
3419
3386
|
|
|
3420
3387
|
const PosTerminalField = JSX(({ field }) => isAcquiringTrade(field('acquiringType')?.value?.key) ? (jsx(SlideCheckbox, { type: "radio", text: "\u0425\u043E\u0447\u0443 POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })) : null);
|
|
3421
3388
|
|
|
3422
|
-
const ProductField =
|
|
3389
|
+
const ProductField = JSX(({ field, source }) => (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: arrayToOptions(source?.productList), ...withValidator(field('product'), validatorObj.product) })));
|
|
3423
3390
|
const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
|
|
3424
3391
|
|
|
3425
3392
|
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
@@ -4224,12 +4191,13 @@
|
|
|
4224
4191
|
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
4225
4192
|
|
|
4226
4193
|
const EsiaLoginDialog = JSX(function ({ handleClose }) {
|
|
4194
|
+
const navigator = locationNavigator();
|
|
4227
4195
|
const handleAuth = useCallback(async () => {
|
|
4228
4196
|
const resp = await getLink({
|
|
4229
|
-
redirectUri:
|
|
4197
|
+
redirectUri: navigator.href,
|
|
4230
4198
|
});
|
|
4231
4199
|
if (resp) {
|
|
4232
|
-
|
|
4200
|
+
navigator.assign(resp.link);
|
|
4233
4201
|
}
|
|
4234
4202
|
}, []);
|
|
4235
4203
|
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex items-center justify-between w-full m-0", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
@@ -4237,9 +4205,10 @@
|
|
|
4237
4205
|
|
|
4238
4206
|
const useEsiaLoginDialog = (nextStepLink) => {
|
|
4239
4207
|
const { open, close } = useDialogManager();
|
|
4208
|
+
const navigator = locationNavigator();
|
|
4240
4209
|
const handleClose = useCallback(() => {
|
|
4241
4210
|
close();
|
|
4242
|
-
|
|
4211
|
+
navigator.assign(nextStepLink);
|
|
4243
4212
|
}, []);
|
|
4244
4213
|
return {
|
|
4245
4214
|
open: (options = {}) => open(jsx(EsiaLoginDialog, { handleClose: handleClose }), options),
|
|
@@ -4315,11 +4284,12 @@
|
|
|
4315
4284
|
|
|
4316
4285
|
const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
4317
4286
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
4287
|
+
const navigator = locationNavigator();
|
|
4318
4288
|
return {
|
|
4319
4289
|
sendToBank: true,
|
|
4320
4290
|
taskKind: 'SHORT',
|
|
4321
4291
|
task: {
|
|
4322
|
-
taskSource:
|
|
4292
|
+
taskSource: navigator.origin,
|
|
4323
4293
|
id: taskId,
|
|
4324
4294
|
participants: [
|
|
4325
4295
|
{
|
|
@@ -4486,6 +4456,7 @@
|
|
|
4486
4456
|
};
|
|
4487
4457
|
|
|
4488
4458
|
const useInitApplicationLead = (nextStepLink) => {
|
|
4459
|
+
const navigator = locationNavigator();
|
|
4489
4460
|
const [isLoading, setIsLoading] = useState(false);
|
|
4490
4461
|
const [profileId] = useLocalStorage('profileId');
|
|
4491
4462
|
const [leadForm, setLeadForm] = useLocalStorage('leadForm');
|
|
@@ -4498,14 +4469,14 @@
|
|
|
4498
4469
|
profileId: profileId,
|
|
4499
4470
|
code,
|
|
4500
4471
|
state,
|
|
4501
|
-
redirectUri:
|
|
4472
|
+
redirectUri: navigator.href,
|
|
4502
4473
|
});
|
|
4503
4474
|
data &&
|
|
4504
4475
|
setLeadForm({
|
|
4505
4476
|
...leadForm,
|
|
4506
4477
|
...parseEsiaProfile(data),
|
|
4507
4478
|
});
|
|
4508
|
-
|
|
4479
|
+
navigator.assign(nextStepLink);
|
|
4509
4480
|
}
|
|
4510
4481
|
}, []);
|
|
4511
4482
|
useEffect(() => {
|
|
@@ -4549,34 +4520,6 @@
|
|
|
4549
4520
|
return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
|
|
4550
4521
|
});
|
|
4551
4522
|
|
|
4552
|
-
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
4553
|
-
|
|
4554
|
-
const TimerCircle = JSX(({ interval = 0, intervalExpireAction = () => null, title, __html }) => {
|
|
4555
|
-
const [time, setTime] = useState(interval);
|
|
4556
|
-
const setTimeWithHandleExpire = (value) => {
|
|
4557
|
-
if (value === 0) {
|
|
4558
|
-
intervalExpireAction();
|
|
4559
|
-
}
|
|
4560
|
-
setTime(value);
|
|
4561
|
-
};
|
|
4562
|
-
const gradientPercentage = 100 - ((interval - time) / interval) * 100;
|
|
4563
|
-
return (jsxs("div", { children: [title ? jsx(Headline, { title: title, headlineVersion: "S" }) : null, jsxs("div", { className: "flex justify-center items-center flex-col", children: [jsxs("div", { className: style(`relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5`), children: [jsx("div", { className: "absolute inset-0 rounded-full", style: {
|
|
4564
|
-
background: `conic-gradient(rgb(66, 171, 68) ${gradientPercentage}%, rgb(125, 126, 127) 0deg)`,
|
|
4565
|
-
} }), jsx("div", { className: "z-10 flex items-center justify-center px-4 py-2 rounded-full w-20 h-20 bg-white text-primary-text text-m", children: jsx(Timer, { interval: interval, time: time, setTime: setTimeWithHandleExpire }) })] }), __html ? jsx(RichText, { __html: __html }) : null] })] }));
|
|
4566
|
-
});
|
|
4567
|
-
|
|
4568
|
-
const ApplicationStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval }) : null] }), jsx(SectionInfo$2, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo$2, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
|
|
4569
|
-
text: infoCard?.link?.text,
|
|
4570
|
-
} })) : null, buttonText ? jsx(Button, { className: "w-full mt-lg", children: buttonText }) : null] })));
|
|
4571
|
-
const SectionInfo$2 = ({ title, items, countColumns = false, }) => {
|
|
4572
|
-
const isMobile = useMobileMode();
|
|
4573
|
-
if (!items) {
|
|
4574
|
-
return null;
|
|
4575
|
-
}
|
|
4576
|
-
return (jsxs("div", { children: [jsx("hr", { className: "w-full h-px bg-main-gray border-0" }), jsxs("div", { className: "p-xl", children: [title ? (jsx(Text, { color: "text-primary-text", size: "text-h5", children: jsx("div", { className: style({ 'mb-m': Boolean(title) }), children: title }) })) : null, items ? (jsx("div", { className: style('grid grid-cols-1 gap-m', inputColumnStyles(countColumns || isMobile ? 1 : 2)), children: items.map((item, index) => (jsx("div", { children: renderItem$2(item) }, index))) })) : null] })] }));
|
|
4577
|
-
};
|
|
4578
|
-
const renderItem$2 = ({ label, description }) => (jsxs("div", { className: "flex flex-col", children: [jsx(Text, { color: "text-secondary-text", size: "text-l", children: label }), jsx(Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
|
|
4579
|
-
|
|
4580
4523
|
const NotFound = JSX(({ title, description }) => {
|
|
4581
4524
|
const isMobileMode = useMobileMode();
|
|
4582
4525
|
return (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon', iconVersion: 'normal' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: isMobileMode ? 'L' : 'S', isEmbedded: true, className: "space-y-s" })] }));
|
|
@@ -6203,14 +6146,18 @@
|
|
|
6203
6146
|
const renderBlocks = (info) => (jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, i) => renderBlocksColumn({ column, i })) }));
|
|
6204
6147
|
const renderBlocksColumn = ({ column, i }) => column ? (jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (jsx("div", { className: "mt-xs opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, jsx("div", { className: style({ 'mt-xl': Boolean(button?.text) }), children: renderButtonsSection([button]) })] }, String(key)))) }, `col-${String(i)}`)) : null;
|
|
6205
6148
|
|
|
6149
|
+
const PORTAL_NATURAL_URL = '/';
|
|
6206
6150
|
const UPDATING_INTERVAL = 60000 * 4;
|
|
6207
|
-
const updateRefreshToken = (
|
|
6151
|
+
const updateRefreshToken = () => {
|
|
6208
6152
|
const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
|
|
6209
6153
|
const accessToken = globalThis.sessionStorage?.getItem('accessToken');
|
|
6210
6154
|
const taskId = globalThis.localStorage.getItem('taskId');
|
|
6155
|
+
const navigator = locationNavigator();
|
|
6211
6156
|
if (!accessToken || !refreshToken || !taskId) {
|
|
6212
|
-
|
|
6213
|
-
return () =>
|
|
6157
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
6158
|
+
return () => {
|
|
6159
|
+
// do nothing
|
|
6160
|
+
};
|
|
6214
6161
|
}
|
|
6215
6162
|
const updateTokenRequest = async () => {
|
|
6216
6163
|
const res = await doRequest('/auth/refresh', 'POST', {
|
|
@@ -6220,7 +6167,7 @@
|
|
|
6220
6167
|
access_token: accessToken,
|
|
6221
6168
|
});
|
|
6222
6169
|
if (res?.status == 401) {
|
|
6223
|
-
|
|
6170
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
6224
6171
|
}
|
|
6225
6172
|
if (res?.ok) {
|
|
6226
6173
|
const data = await res.json();
|
|
@@ -6233,16 +6180,6 @@
|
|
|
6233
6180
|
return () => clearInterval(timer);
|
|
6234
6181
|
};
|
|
6235
6182
|
|
|
6236
|
-
function useNavigator() {
|
|
6237
|
-
return useNavigator._impl();
|
|
6238
|
-
}
|
|
6239
|
-
useNavigator._impl = () => ({
|
|
6240
|
-
assign: (url) => globalThis.location.assign(url),
|
|
6241
|
-
});
|
|
6242
|
-
useNavigator.setup = (impl) => {
|
|
6243
|
-
useNavigator._impl = impl;
|
|
6244
|
-
};
|
|
6245
|
-
|
|
6246
6183
|
const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
|
|
6247
6184
|
|
|
6248
6185
|
const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
|
|
@@ -6261,6 +6198,22 @@
|
|
|
6261
6198
|
|
|
6262
6199
|
const sendSignalToProcess = (body) => doRequest('/user-data/sendSignalToProcess', 'POST', body);
|
|
6263
6200
|
|
|
6201
|
+
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
6202
|
+
|
|
6203
|
+
const TimerCircle = JSX(({ interval = 0, intervalExpireAction = () => null, title, __html }) => {
|
|
6204
|
+
const [time, setTime] = useState(interval);
|
|
6205
|
+
const setTimeWithHandleExpire = (value) => {
|
|
6206
|
+
if (value === 0) {
|
|
6207
|
+
intervalExpireAction();
|
|
6208
|
+
}
|
|
6209
|
+
setTime(value);
|
|
6210
|
+
};
|
|
6211
|
+
const gradientPercentage = 100 - ((interval - time) / interval) * 100;
|
|
6212
|
+
return (jsxs("div", { children: [title ? jsx(Headline, { title: title, headlineVersion: "S" }) : null, jsxs("div", { className: "flex justify-center items-center flex-col", children: [jsxs("div", { className: style(`relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5`), children: [jsx("div", { className: "absolute inset-0 rounded-full", style: {
|
|
6213
|
+
background: `conic-gradient(rgb(66, 171, 68) ${gradientPercentage}%, rgb(125, 126, 127) 0deg)`,
|
|
6214
|
+
} }), jsx("div", { className: "z-10 flex items-center justify-center px-4 py-2 rounded-full w-20 h-20 bg-white text-primary-text text-m", children: jsx(Timer, { interval: interval, time: time, setTime: setTimeWithHandleExpire }) })] }), __html ? jsx(RichText, { __html: __html }) : null] })] }));
|
|
6215
|
+
});
|
|
6216
|
+
|
|
6264
6217
|
const CreditCardFormStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval }) : null] }), jsx(SectionInfo$1, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo$1, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
|
|
6265
6218
|
text: infoCard?.link?.text,
|
|
6266
6219
|
} })) : null, buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] })));
|
|
@@ -6548,11 +6501,13 @@
|
|
|
6548
6501
|
};
|
|
6549
6502
|
|
|
6550
6503
|
const getFourthStepData$1 = (formData) => {
|
|
6551
|
-
const { familyStatus, dependents, familyMembers, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
|
|
6504
|
+
const { familyStatus, dependents, familyMembers, children, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
|
|
6552
6505
|
return {
|
|
6553
6506
|
maritalStatusCd: familyStatus,
|
|
6507
|
+
childrenDependents: children,
|
|
6554
6508
|
totalDependents: familyMembers,
|
|
6555
6509
|
otherDependents: dependents,
|
|
6510
|
+
militaryStatusCd: conscription,
|
|
6556
6511
|
participantIncomes: getParticipantIncomes({
|
|
6557
6512
|
wages,
|
|
6558
6513
|
mandatoryPayments,
|
|
@@ -6612,6 +6567,12 @@
|
|
|
6612
6567
|
deliveryTimeCd: { value: 'TIME_2' },
|
|
6613
6568
|
};
|
|
6614
6569
|
};
|
|
6570
|
+
const getOfficeCode = (formData) => {
|
|
6571
|
+
const { addressRetail } = formData;
|
|
6572
|
+
return {
|
|
6573
|
+
office: addressRetail?.key ? { id: addressRetail.key } : undefined,
|
|
6574
|
+
};
|
|
6575
|
+
};
|
|
6615
6576
|
const getSixthStepData = (formData) => {
|
|
6616
6577
|
const { addressCourier } = formData;
|
|
6617
6578
|
return {
|
|
@@ -6620,8 +6581,9 @@
|
|
|
6620
6581
|
};
|
|
6621
6582
|
|
|
6622
6583
|
const getThirdStepData$1 = (formData) => {
|
|
6623
|
-
const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
|
|
6584
|
+
const { beginDate, employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
|
|
6624
6585
|
return {
|
|
6586
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
6625
6587
|
employmentTypeCd: employment,
|
|
6626
6588
|
organizationName,
|
|
6627
6589
|
organizationInn: inn,
|
|
@@ -6644,15 +6606,14 @@
|
|
|
6644
6606
|
};
|
|
6645
6607
|
|
|
6646
6608
|
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
6609
|
+
const navigator = locationNavigator();
|
|
6647
6610
|
return {
|
|
6648
6611
|
sendToBank: true,
|
|
6649
6612
|
taskKind: 'UNITED',
|
|
6650
6613
|
task: {
|
|
6651
|
-
taskSource:
|
|
6614
|
+
taskSource: navigator.origin,
|
|
6652
6615
|
id: taskId,
|
|
6653
|
-
|
|
6654
|
-
id: '650', // TODO: Remove hardcode
|
|
6655
|
-
},
|
|
6616
|
+
...getOfficeCode(formData),
|
|
6656
6617
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
6657
6618
|
participants: [
|
|
6658
6619
|
{
|
|
@@ -6696,7 +6657,6 @@
|
|
|
6696
6657
|
const [participantId] = useLocalStorage('participantId');
|
|
6697
6658
|
const handleSubmit = useCallback(async (formData) => {
|
|
6698
6659
|
const feedbackValidator = objectValidator(getObjectValidator(calculateInputs$1(getValue$2(formData))(inputs, step)));
|
|
6699
|
-
console.log(getObjectValidator(calculateInputs$1(getValue$2(formData))(inputs, step)));
|
|
6700
6660
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
6701
6661
|
return console.warn('validation fail');
|
|
6702
6662
|
}
|
|
@@ -7095,7 +7055,6 @@
|
|
|
7095
7055
|
],
|
|
7096
7056
|
];
|
|
7097
7057
|
|
|
7098
|
-
const PORTAL_NATURAL_URL$1 = '/';
|
|
7099
7058
|
const WIZARD_STEPS$1 = 6;
|
|
7100
7059
|
const WIZARD_TITLES$1 = [
|
|
7101
7060
|
'Параметры карты',
|
|
@@ -7109,8 +7068,7 @@
|
|
|
7109
7068
|
const [step, setStep] = useState(0);
|
|
7110
7069
|
const formContainerRef = useRef(null);
|
|
7111
7070
|
const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
|
|
7112
|
-
|
|
7113
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL$1)), []);
|
|
7071
|
+
useEffect(updateRefreshToken, []);
|
|
7114
7072
|
const handleNextStep = useCallback(() => {
|
|
7115
7073
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
|
|
7116
7074
|
scrollToTop();
|
|
@@ -7450,8 +7408,9 @@
|
|
|
7450
7408
|
};
|
|
7451
7409
|
|
|
7452
7410
|
const getSecondStepData = (formData) => {
|
|
7453
|
-
const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
|
|
7411
|
+
const { beginDate, employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
|
|
7454
7412
|
return {
|
|
7413
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
7455
7414
|
employmentTypeCd: employment,
|
|
7456
7415
|
organizationName,
|
|
7457
7416
|
organizationInn: inn,
|
|
@@ -7474,12 +7433,14 @@
|
|
|
7474
7433
|
};
|
|
7475
7434
|
|
|
7476
7435
|
const getThirdStepData = (formData) => {
|
|
7477
|
-
const { familyStatus, dependents, familyMembers, confirmationIncome, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
|
|
7436
|
+
const { familyStatus, dependents, familyMembers, children, confirmationIncome, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
|
|
7478
7437
|
return {
|
|
7479
7438
|
maritalStatusCd: familyStatus,
|
|
7480
7439
|
totalDependents: familyMembers,
|
|
7481
7440
|
incomeCertificateCd: confirmationIncome,
|
|
7482
7441
|
otherDependents: dependents,
|
|
7442
|
+
childrenDependents: children,
|
|
7443
|
+
militaryStatusCd: conscription,
|
|
7483
7444
|
participantIncomes: getParticipantIncomes({
|
|
7484
7445
|
wages,
|
|
7485
7446
|
mandatoryPayments,
|
|
@@ -7508,36 +7469,36 @@
|
|
|
7508
7469
|
};
|
|
7509
7470
|
};
|
|
7510
7471
|
|
|
7511
|
-
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) =>
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
id:
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7472
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
7473
|
+
const navigator = locationNavigator();
|
|
7474
|
+
return {
|
|
7475
|
+
sendToBank: true,
|
|
7476
|
+
taskKind: 'UNITED',
|
|
7477
|
+
task: {
|
|
7478
|
+
taskSource: navigator.origin,
|
|
7479
|
+
id: taskId,
|
|
7480
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
7481
|
+
participants: [
|
|
7482
|
+
{
|
|
7483
|
+
id: participantId,
|
|
7484
|
+
profile: {
|
|
7485
|
+
id: profileId,
|
|
7486
|
+
},
|
|
7487
|
+
roleCd: {
|
|
7488
|
+
key: 'BORROWER',
|
|
7489
|
+
value: 'Заемщик',
|
|
7490
|
+
},
|
|
7491
|
+
...getCurrentStepData(step, formData),
|
|
7530
7492
|
},
|
|
7531
|
-
|
|
7493
|
+
],
|
|
7494
|
+
...getZeroStepData(formData),
|
|
7495
|
+
...getFifthStepData(formData),
|
|
7496
|
+
esiaAccountTypeCd: {
|
|
7497
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
7532
7498
|
},
|
|
7533
|
-
],
|
|
7534
|
-
...getZeroStepData(formData),
|
|
7535
|
-
...getFifthStepData(formData),
|
|
7536
|
-
esiaAccountTypeCd: {
|
|
7537
|
-
key: formData?.esiaAccountTypeCd?.key,
|
|
7538
7499
|
},
|
|
7539
|
-
}
|
|
7540
|
-
}
|
|
7500
|
+
};
|
|
7501
|
+
};
|
|
7541
7502
|
const getCurrentStepData = (step, formData) => {
|
|
7542
7503
|
switch (step) {
|
|
7543
7504
|
case 0:
|
|
@@ -7888,7 +7849,6 @@
|
|
|
7888
7849
|
],
|
|
7889
7850
|
];
|
|
7890
7851
|
|
|
7891
|
-
const PORTAL_NATURAL_URL = '/';
|
|
7892
7852
|
const WIZARD_STEPS = 5;
|
|
7893
7853
|
const WIZARD_TITLES = [
|
|
7894
7854
|
'',
|
|
@@ -7902,8 +7862,7 @@
|
|
|
7902
7862
|
const [step, setStep] = useState(0);
|
|
7903
7863
|
const formContainerRef = useRef(null);
|
|
7904
7864
|
const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
|
|
7905
|
-
|
|
7906
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
|
|
7865
|
+
useEffect(updateRefreshToken, []);
|
|
7907
7866
|
const handleNextStep = useCallback(() => {
|
|
7908
7867
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
7909
7868
|
scrollToTop();
|
|
@@ -8302,6 +8261,46 @@
|
|
|
8302
8261
|
};
|
|
8303
8262
|
const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
|
|
8304
8263
|
|
|
8264
|
+
function assertNonEmpty(value) {
|
|
8265
|
+
if (!value) {
|
|
8266
|
+
throw new Error('Value should be fulfilled');
|
|
8267
|
+
}
|
|
8268
|
+
return value;
|
|
8269
|
+
}
|
|
8270
|
+
|
|
8271
|
+
const baseTableFunc = (table) => (input) => {
|
|
8272
|
+
const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
|
|
8273
|
+
return unit(input);
|
|
8274
|
+
};
|
|
8275
|
+
const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
|
|
8276
|
+
tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
|
|
8277
|
+
class TableFuncBuilder {
|
|
8278
|
+
parent;
|
|
8279
|
+
predicate;
|
|
8280
|
+
unit;
|
|
8281
|
+
get entry() {
|
|
8282
|
+
return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
|
|
8283
|
+
}
|
|
8284
|
+
constructor(parent, predicate, unit) {
|
|
8285
|
+
this.parent = parent;
|
|
8286
|
+
this.predicate = predicate;
|
|
8287
|
+
this.unit = unit;
|
|
8288
|
+
}
|
|
8289
|
+
if(predicate) {
|
|
8290
|
+
return new TableFuncBuilder(this, predicate);
|
|
8291
|
+
}
|
|
8292
|
+
then(unit) {
|
|
8293
|
+
return new TableFuncBuilder(this.parent, this.predicate, unit);
|
|
8294
|
+
}
|
|
8295
|
+
else(unit) {
|
|
8296
|
+
return baseTableFunc([...buildTable(this), [() => true, unit]]);
|
|
8297
|
+
}
|
|
8298
|
+
}
|
|
8299
|
+
const buildTable = (builder) => [
|
|
8300
|
+
...(builder?.parent ? buildTable(builder.parent) : []),
|
|
8301
|
+
builder.entry,
|
|
8302
|
+
];
|
|
8303
|
+
|
|
8305
8304
|
const callbackCurrencySelect = (props) => tableFunc([
|
|
8306
8305
|
[
|
|
8307
8306
|
(_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
|
|
@@ -10091,7 +10090,6 @@
|
|
|
10091
10090
|
AdTile,
|
|
10092
10091
|
ApplicationForm,
|
|
10093
10092
|
ApplicationLeadForm,
|
|
10094
|
-
ApplicationStatus,
|
|
10095
10093
|
BankAccountFiltration,
|
|
10096
10094
|
BenefitsBlock,
|
|
10097
10095
|
BonusBenefitsBlock,
|
|
@@ -10324,18 +10322,18 @@
|
|
|
10324
10322
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10325
10323
|
});
|
|
10326
10324
|
|
|
10327
|
-
const packageVersion = "0.14.
|
|
10325
|
+
const packageVersion = "0.14.681";
|
|
10328
10326
|
|
|
10329
10327
|
exports.Blocks = Blocks;
|
|
10330
10328
|
exports.ContentPage = ContentPage;
|
|
10331
10329
|
exports.handlerDecorator = handlerDecorator;
|
|
10332
10330
|
exports.joinList = joinList;
|
|
10331
|
+
exports.locationNavigator = locationNavigator;
|
|
10333
10332
|
exports.packageVersion = packageVersion;
|
|
10334
10333
|
exports.projectSettings = projectSettings;
|
|
10335
10334
|
exports.setup = setup;
|
|
10336
10335
|
exports.setupHooks = setupHooks;
|
|
10337
10336
|
exports.url = url;
|
|
10338
|
-
exports.useNavigator = useNavigator;
|
|
10339
10337
|
exports.useRouter = useRouter;
|
|
10340
10338
|
|
|
10341
10339
|
Object.defineProperty(exports, '__esModule', { value: true });
|