@redneckz/wildless-cms-uni-blocks 0.14.679 → 0.14.681
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +144 -152
- package/bundle/bundle.umd.min.js +1 -1
- 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/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 +3 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.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 +31 -27
- package/dist/components/CreditForm/getCreditFormTaskData.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/CaptchaDialog/CaptchaDialog.js +1 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.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/common.css +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 +3 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.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 +31 -27
- package/lib/components/CreditForm/getCreditFormTaskData.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/CaptchaDialog/CaptchaDialog.js +1 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.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/bundle.umd.js +128 -123
- package/mobile/bundle/bundle.umd.min.js +1 -1
- 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/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 +3 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.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 +31 -27
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.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/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.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/common.css +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 +3 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.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 +31 -27
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.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/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.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/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 +4 -1
- package/mobile/src/components/CreditForm/CreditForm.tsx +1 -6
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +34 -29
- 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/CaptchaDialog/CaptchaDialog.tsx +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/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 +4 -1
- package/src/components/CreditForm/CreditForm.tsx +1 -6
- package/src/components/CreditForm/getCreditFormTaskData.ts +34 -29
- 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/CaptchaDialog/CaptchaDialog.tsx +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
|
@@ -414,6 +414,15 @@
|
|
|
414
414
|
className,
|
|
415
415
|
].join(' ');
|
|
416
416
|
|
|
417
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
418
|
+
const handlerDecorator = (handler) => {
|
|
419
|
+
return handlerDecorator._impl(handler);
|
|
420
|
+
};
|
|
421
|
+
handlerDecorator._impl = (handler) => handler;
|
|
422
|
+
handlerDecorator.setup = (impl) => {
|
|
423
|
+
handlerDecorator._impl = impl;
|
|
424
|
+
};
|
|
425
|
+
|
|
417
426
|
class EventBus {
|
|
418
427
|
watchers = new Set();
|
|
419
428
|
subscribersMap = {};
|
|
@@ -473,15 +482,6 @@
|
|
|
473
482
|
|
|
474
483
|
const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
|
|
475
484
|
|
|
476
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
477
|
-
const handlerDecorator = (handler) => {
|
|
478
|
-
return handlerDecorator._impl(handler);
|
|
479
|
-
};
|
|
480
|
-
handlerDecorator._impl = (handler) => handler;
|
|
481
|
-
handlerDecorator.setup = (impl) => {
|
|
482
|
-
handlerDecorator._impl = impl;
|
|
483
|
-
};
|
|
484
|
-
|
|
485
485
|
function useLink() {
|
|
486
486
|
const basePath = getBasePath(env.SITE_URL);
|
|
487
487
|
const router = useRouter();
|
|
@@ -1073,6 +1073,24 @@
|
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
1075
|
|
|
1076
|
+
function locationNavigator() {
|
|
1077
|
+
return locationNavigator._impl();
|
|
1078
|
+
}
|
|
1079
|
+
locationNavigator._impl = () => ({
|
|
1080
|
+
assign: (url, target) => {
|
|
1081
|
+
globalThis.open(url, target || '_self');
|
|
1082
|
+
},
|
|
1083
|
+
get origin() {
|
|
1084
|
+
return globalThis.location.origin;
|
|
1085
|
+
},
|
|
1086
|
+
get href() {
|
|
1087
|
+
return globalThis.location.href;
|
|
1088
|
+
},
|
|
1089
|
+
});
|
|
1090
|
+
locationNavigator.setup = (impl) => {
|
|
1091
|
+
locationNavigator._impl = impl;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1076
1094
|
const QUERY_STORAGE_KEY = 'rshb-query-params';
|
|
1077
1095
|
function saveSessionQuery() {
|
|
1078
1096
|
const result = globalThis.location?.search || globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY) || '';
|
|
@@ -1094,69 +1112,18 @@
|
|
|
1094
1112
|
return url.toString();
|
|
1095
1113
|
};
|
|
1096
1114
|
|
|
1097
|
-
function assertNonEmpty(value) {
|
|
1098
|
-
if (!value) {
|
|
1099
|
-
throw new Error('Value should be fulfilled');
|
|
1100
|
-
}
|
|
1101
|
-
return value;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
const baseTableFunc = (table) => (input) => {
|
|
1105
|
-
const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
|
|
1106
|
-
return unit(input);
|
|
1107
|
-
};
|
|
1108
|
-
const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
|
|
1109
|
-
tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
|
|
1110
|
-
class TableFuncBuilder {
|
|
1111
|
-
parent;
|
|
1112
|
-
predicate;
|
|
1113
|
-
unit;
|
|
1114
|
-
get entry() {
|
|
1115
|
-
return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
|
|
1116
|
-
}
|
|
1117
|
-
constructor(parent, predicate, unit) {
|
|
1118
|
-
this.parent = parent;
|
|
1119
|
-
this.predicate = predicate;
|
|
1120
|
-
this.unit = unit;
|
|
1121
|
-
}
|
|
1122
|
-
if(predicate) {
|
|
1123
|
-
return new TableFuncBuilder(this, predicate);
|
|
1124
|
-
}
|
|
1125
|
-
then(unit) {
|
|
1126
|
-
return new TableFuncBuilder(this.parent, this.predicate, unit);
|
|
1127
|
-
}
|
|
1128
|
-
else(unit) {
|
|
1129
|
-
return baseTableFunc([...buildTable(this), [() => true, unit]]);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
const buildTable = (builder) => [
|
|
1133
|
-
...(builder?.parent ? buildTable(builder.parent) : []),
|
|
1134
|
-
builder.entry,
|
|
1135
|
-
];
|
|
1136
|
-
|
|
1137
1115
|
const forwardQuery = (ev) => {
|
|
1138
1116
|
const anchor = ev.target?.closest('a');
|
|
1139
|
-
|
|
1117
|
+
const navigator = locationNavigator();
|
|
1118
|
+
if (isURL(anchor?.href) && !anchor?.href?.startsWith(navigator.origin)) {
|
|
1140
1119
|
ev.preventDefault();
|
|
1141
1120
|
ev.stopPropagation();
|
|
1142
1121
|
const url = adjustSessionQuery(anchor?.href) || anchor?.href;
|
|
1143
1122
|
if (url) {
|
|
1144
|
-
|
|
1145
|
-
transition?.(url);
|
|
1123
|
+
navigator.assign(url, anchor?.target);
|
|
1146
1124
|
}
|
|
1147
1125
|
}
|
|
1148
1126
|
};
|
|
1149
|
-
const getTransition = tableFunc([
|
|
1150
|
-
[(_) => _ === '_blank', (url) => globalThis.open(url, '_blank')],
|
|
1151
|
-
[(_) => _ === '_parent', (url) => globalThis.parent && (globalThis.parent.location.href = url)],
|
|
1152
|
-
[
|
|
1153
|
-
(_) => _ === '_top',
|
|
1154
|
-
(url) => {
|
|
1155
|
-
globalThis.top && (globalThis.top.location.href = url);
|
|
1156
|
-
},
|
|
1157
|
-
],
|
|
1158
|
-
[() => true, (url) => globalThis.location && (globalThis.location.href = url)],
|
|
1159
|
-
]);
|
|
1160
1127
|
|
|
1161
1128
|
function useAspects() {
|
|
1162
1129
|
return useAspects._impl();
|
|
@@ -3371,10 +3338,10 @@
|
|
|
3371
3338
|
creditProgramId: 13,
|
|
3372
3339
|
});
|
|
3373
3340
|
const data = await response?.json();
|
|
3374
|
-
return data?.paymentSystems?.map((paymentSystem) => ({
|
|
3341
|
+
return (data?.paymentSystems?.map((paymentSystem) => ({
|
|
3375
3342
|
id: paymentSystem.type,
|
|
3376
3343
|
text: paymentSystem.name,
|
|
3377
|
-
}));
|
|
3344
|
+
})) ?? []);
|
|
3378
3345
|
};
|
|
3379
3346
|
|
|
3380
3347
|
const PaymentSystemField = JSX(({ field, input }) => {
|
|
@@ -3427,7 +3394,7 @@
|
|
|
3427
3394
|
|
|
3428
3395
|
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);
|
|
3429
3396
|
|
|
3430
|
-
const ProductField =
|
|
3397
|
+
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) })));
|
|
3431
3398
|
const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
|
|
3432
3399
|
|
|
3433
3400
|
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
@@ -3983,7 +3950,7 @@
|
|
|
3983
3950
|
else {
|
|
3984
3951
|
setHasError(isValidCode);
|
|
3985
3952
|
}
|
|
3986
|
-
}, []);
|
|
3953
|
+
}, [code]);
|
|
3987
3954
|
const handleCreateCaptcha = useCallback(() => {
|
|
3988
3955
|
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
3989
3956
|
}, []);
|
|
@@ -4232,12 +4199,13 @@
|
|
|
4232
4199
|
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
4233
4200
|
|
|
4234
4201
|
const EsiaLoginDialog = JSX(function ({ handleClose }) {
|
|
4202
|
+
const navigator = locationNavigator();
|
|
4235
4203
|
const handleAuth = useCallback(async () => {
|
|
4236
4204
|
const resp = await getLink({
|
|
4237
|
-
redirectUri:
|
|
4205
|
+
redirectUri: navigator.href,
|
|
4238
4206
|
});
|
|
4239
4207
|
if (resp) {
|
|
4240
|
-
|
|
4208
|
+
navigator.assign(resp.link);
|
|
4241
4209
|
}
|
|
4242
4210
|
}, []);
|
|
4243
4211
|
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" })] })] }) }));
|
|
@@ -4245,9 +4213,10 @@
|
|
|
4245
4213
|
|
|
4246
4214
|
const useEsiaLoginDialog = (nextStepLink) => {
|
|
4247
4215
|
const { open, close } = useDialogManager();
|
|
4216
|
+
const navigator = locationNavigator();
|
|
4248
4217
|
const handleClose = useCallback(() => {
|
|
4249
4218
|
close();
|
|
4250
|
-
|
|
4219
|
+
navigator.assign(nextStepLink);
|
|
4251
4220
|
}, []);
|
|
4252
4221
|
return {
|
|
4253
4222
|
open: (options = {}) => open(jsx(EsiaLoginDialog, { handleClose: handleClose }), options),
|
|
@@ -4323,11 +4292,12 @@
|
|
|
4323
4292
|
|
|
4324
4293
|
const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
4325
4294
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
4295
|
+
const navigator = locationNavigator();
|
|
4326
4296
|
return {
|
|
4327
4297
|
sendToBank: true,
|
|
4328
4298
|
taskKind: 'SHORT',
|
|
4329
4299
|
task: {
|
|
4330
|
-
taskSource:
|
|
4300
|
+
taskSource: navigator.origin,
|
|
4331
4301
|
id: taskId,
|
|
4332
4302
|
participants: [
|
|
4333
4303
|
{
|
|
@@ -4494,6 +4464,7 @@
|
|
|
4494
4464
|
};
|
|
4495
4465
|
|
|
4496
4466
|
const useInitApplicationLead = (nextStepLink) => {
|
|
4467
|
+
const navigator = locationNavigator();
|
|
4497
4468
|
const [isLoading, setIsLoading] = useState(false);
|
|
4498
4469
|
const [profileId] = useLocalStorage('profileId');
|
|
4499
4470
|
const [leadForm, setLeadForm] = useLocalStorage('leadForm');
|
|
@@ -4506,14 +4477,14 @@
|
|
|
4506
4477
|
profileId: profileId,
|
|
4507
4478
|
code,
|
|
4508
4479
|
state,
|
|
4509
|
-
redirectUri:
|
|
4480
|
+
redirectUri: navigator.href,
|
|
4510
4481
|
});
|
|
4511
4482
|
data &&
|
|
4512
4483
|
setLeadForm({
|
|
4513
4484
|
...leadForm,
|
|
4514
4485
|
...parseEsiaProfile(data),
|
|
4515
4486
|
});
|
|
4516
|
-
|
|
4487
|
+
navigator.assign(nextStepLink);
|
|
4517
4488
|
}
|
|
4518
4489
|
}, []);
|
|
4519
4490
|
useEffect(() => {
|
|
@@ -6167,14 +6138,18 @@
|
|
|
6167
6138
|
}
|
|
6168
6139
|
}, type: "button", ...(isUnfolded ? getAspectsAttributes(data) : {}), children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
6169
6140
|
|
|
6141
|
+
const PORTAL_NATURAL_URL = '/';
|
|
6170
6142
|
const UPDATING_INTERVAL = 60000 * 4;
|
|
6171
|
-
const updateRefreshToken = (
|
|
6143
|
+
const updateRefreshToken = () => {
|
|
6172
6144
|
const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
|
|
6173
6145
|
const accessToken = globalThis.sessionStorage?.getItem('accessToken');
|
|
6174
6146
|
const taskId = globalThis.localStorage.getItem('taskId');
|
|
6147
|
+
const navigator = locationNavigator();
|
|
6175
6148
|
if (!accessToken || !refreshToken || !taskId) {
|
|
6176
|
-
|
|
6177
|
-
return () =>
|
|
6149
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
6150
|
+
return () => {
|
|
6151
|
+
// do nothing
|
|
6152
|
+
};
|
|
6178
6153
|
}
|
|
6179
6154
|
const updateTokenRequest = async () => {
|
|
6180
6155
|
const res = await doRequest('/auth/refresh', 'POST', {
|
|
@@ -6184,7 +6159,7 @@
|
|
|
6184
6159
|
access_token: accessToken,
|
|
6185
6160
|
});
|
|
6186
6161
|
if (res?.status == 401) {
|
|
6187
|
-
|
|
6162
|
+
navigator.assign(PORTAL_NATURAL_URL);
|
|
6188
6163
|
}
|
|
6189
6164
|
if (res?.ok) {
|
|
6190
6165
|
const data = await res.json();
|
|
@@ -6197,16 +6172,6 @@
|
|
|
6197
6172
|
return () => clearInterval(timer);
|
|
6198
6173
|
};
|
|
6199
6174
|
|
|
6200
|
-
function useNavigator() {
|
|
6201
|
-
return useNavigator._impl();
|
|
6202
|
-
}
|
|
6203
|
-
useNavigator._impl = () => ({
|
|
6204
|
-
assign: (url) => globalThis.location.assign(url),
|
|
6205
|
-
});
|
|
6206
|
-
useNavigator.setup = (impl) => {
|
|
6207
|
-
useNavigator._impl = impl;
|
|
6208
|
-
};
|
|
6209
|
-
|
|
6210
6175
|
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] })] })));
|
|
6211
6176
|
|
|
6212
6177
|
const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
|
|
@@ -6624,11 +6589,12 @@
|
|
|
6624
6589
|
};
|
|
6625
6590
|
|
|
6626
6591
|
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
6592
|
+
const navigator = locationNavigator();
|
|
6627
6593
|
return {
|
|
6628
6594
|
sendToBank: true,
|
|
6629
6595
|
taskKind: 'UNITED',
|
|
6630
6596
|
task: {
|
|
6631
|
-
taskSource:
|
|
6597
|
+
taskSource: navigator.origin,
|
|
6632
6598
|
id: taskId,
|
|
6633
6599
|
office: {
|
|
6634
6600
|
id: '650', // TODO: Remove hardcode
|
|
@@ -7075,7 +7041,6 @@
|
|
|
7075
7041
|
],
|
|
7076
7042
|
];
|
|
7077
7043
|
|
|
7078
|
-
const PORTAL_NATURAL_URL$1 = '/';
|
|
7079
7044
|
const WIZARD_STEPS$1 = 6;
|
|
7080
7045
|
const WIZARD_TITLES$1 = [
|
|
7081
7046
|
'Параметры карты',
|
|
@@ -7089,8 +7054,7 @@
|
|
|
7089
7054
|
const [step, setStep] = useState(0);
|
|
7090
7055
|
const formContainerRef = useRef(null);
|
|
7091
7056
|
const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
|
|
7092
|
-
|
|
7093
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL$1)), []);
|
|
7057
|
+
useEffect(updateRefreshToken, []);
|
|
7094
7058
|
const handleNextStep = useCallback(() => {
|
|
7095
7059
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
|
|
7096
7060
|
scrollToTop();
|
|
@@ -7488,36 +7452,39 @@
|
|
|
7488
7452
|
};
|
|
7489
7453
|
};
|
|
7490
7454
|
|
|
7491
|
-
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) =>
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
id:
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
id:
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7455
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
7456
|
+
const navigator = locationNavigator();
|
|
7457
|
+
return {
|
|
7458
|
+
sendToBank: true,
|
|
7459
|
+
taskKind: 'UNITED',
|
|
7460
|
+
task: {
|
|
7461
|
+
taskSource: navigator.origin,
|
|
7462
|
+
id: taskId,
|
|
7463
|
+
office: {
|
|
7464
|
+
id: '',
|
|
7465
|
+
},
|
|
7466
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
7467
|
+
participants: [
|
|
7468
|
+
{
|
|
7469
|
+
id: participantId,
|
|
7470
|
+
profile: {
|
|
7471
|
+
id: profileId,
|
|
7472
|
+
},
|
|
7473
|
+
roleCd: {
|
|
7474
|
+
key: 'BORROWER',
|
|
7475
|
+
value: 'Заемщик',
|
|
7476
|
+
},
|
|
7477
|
+
...getCurrentStepData(step, formData),
|
|
7510
7478
|
},
|
|
7511
|
-
|
|
7479
|
+
],
|
|
7480
|
+
...getZeroStepData(formData),
|
|
7481
|
+
...getFifthStepData(formData),
|
|
7482
|
+
esiaAccountTypeCd: {
|
|
7483
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
7512
7484
|
},
|
|
7513
|
-
],
|
|
7514
|
-
...getZeroStepData(formData),
|
|
7515
|
-
...getFifthStepData(formData),
|
|
7516
|
-
esiaAccountTypeCd: {
|
|
7517
|
-
key: formData?.esiaAccountTypeCd?.key,
|
|
7518
7485
|
},
|
|
7519
|
-
}
|
|
7520
|
-
}
|
|
7486
|
+
};
|
|
7487
|
+
};
|
|
7521
7488
|
const getCurrentStepData = (step, formData) => {
|
|
7522
7489
|
switch (step) {
|
|
7523
7490
|
case 0:
|
|
@@ -7868,7 +7835,6 @@
|
|
|
7868
7835
|
],
|
|
7869
7836
|
];
|
|
7870
7837
|
|
|
7871
|
-
const PORTAL_NATURAL_URL = '/';
|
|
7872
7838
|
const WIZARD_STEPS = 5;
|
|
7873
7839
|
const WIZARD_TITLES = [
|
|
7874
7840
|
'',
|
|
@@ -7882,8 +7848,7 @@
|
|
|
7882
7848
|
const [step, setStep] = useState(0);
|
|
7883
7849
|
const formContainerRef = useRef(null);
|
|
7884
7850
|
const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
|
|
7885
|
-
|
|
7886
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
|
|
7851
|
+
useEffect(updateRefreshToken, []);
|
|
7887
7852
|
const handleNextStep = useCallback(() => {
|
|
7888
7853
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
7889
7854
|
scrollToTop();
|
|
@@ -8281,6 +8246,46 @@
|
|
|
8281
8246
|
};
|
|
8282
8247
|
const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
|
|
8283
8248
|
|
|
8249
|
+
function assertNonEmpty(value) {
|
|
8250
|
+
if (!value) {
|
|
8251
|
+
throw new Error('Value should be fulfilled');
|
|
8252
|
+
}
|
|
8253
|
+
return value;
|
|
8254
|
+
}
|
|
8255
|
+
|
|
8256
|
+
const baseTableFunc = (table) => (input) => {
|
|
8257
|
+
const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
|
|
8258
|
+
return unit(input);
|
|
8259
|
+
};
|
|
8260
|
+
const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
|
|
8261
|
+
tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
|
|
8262
|
+
class TableFuncBuilder {
|
|
8263
|
+
parent;
|
|
8264
|
+
predicate;
|
|
8265
|
+
unit;
|
|
8266
|
+
get entry() {
|
|
8267
|
+
return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
|
|
8268
|
+
}
|
|
8269
|
+
constructor(parent, predicate, unit) {
|
|
8270
|
+
this.parent = parent;
|
|
8271
|
+
this.predicate = predicate;
|
|
8272
|
+
this.unit = unit;
|
|
8273
|
+
}
|
|
8274
|
+
if(predicate) {
|
|
8275
|
+
return new TableFuncBuilder(this, predicate);
|
|
8276
|
+
}
|
|
8277
|
+
then(unit) {
|
|
8278
|
+
return new TableFuncBuilder(this.parent, this.predicate, unit);
|
|
8279
|
+
}
|
|
8280
|
+
else(unit) {
|
|
8281
|
+
return baseTableFunc([...buildTable(this), [() => true, unit]]);
|
|
8282
|
+
}
|
|
8283
|
+
}
|
|
8284
|
+
const buildTable = (builder) => [
|
|
8285
|
+
...(builder?.parent ? buildTable(builder.parent) : []),
|
|
8286
|
+
builder.entry,
|
|
8287
|
+
];
|
|
8288
|
+
|
|
8284
8289
|
const callbackCurrencySelect = (props) => tableFunc([
|
|
8285
8290
|
[
|
|
8286
8291
|
(_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
|
|
@@ -9938,18 +9943,18 @@
|
|
|
9938
9943
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
9939
9944
|
});
|
|
9940
9945
|
|
|
9941
|
-
const packageVersion = "0.14.
|
|
9946
|
+
const packageVersion = "0.14.680";
|
|
9942
9947
|
|
|
9943
9948
|
exports.Blocks = Blocks;
|
|
9944
9949
|
exports.ContentPage = ContentPage;
|
|
9945
9950
|
exports.handlerDecorator = handlerDecorator;
|
|
9946
9951
|
exports.joinList = joinList;
|
|
9952
|
+
exports.locationNavigator = locationNavigator;
|
|
9947
9953
|
exports.packageVersion = packageVersion;
|
|
9948
9954
|
exports.projectSettings = projectSettings;
|
|
9949
9955
|
exports.setup = setup;
|
|
9950
9956
|
exports.setupHooks = setupHooks;
|
|
9951
9957
|
exports.url = url;
|
|
9952
|
-
exports.useNavigator = useNavigator;
|
|
9953
9958
|
exports.useRouter = useRouter;
|
|
9954
9959
|
|
|
9955
9960
|
Object.defineProperty(exports, '__esModule', { value: true });
|