@redneckz/wildless-cms-uni-blocks 0.14.680 → 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 +143 -151
- 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/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/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 +127 -122
- 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/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/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/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/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] })));
|
|
@@ -6644,11 +6597,12 @@
|
|
|
6644
6597
|
};
|
|
6645
6598
|
|
|
6646
6599
|
const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
6600
|
+
const navigator = locationNavigator();
|
|
6647
6601
|
return {
|
|
6648
6602
|
sendToBank: true,
|
|
6649
6603
|
taskKind: 'UNITED',
|
|
6650
6604
|
task: {
|
|
6651
|
-
taskSource:
|
|
6605
|
+
taskSource: navigator.origin,
|
|
6652
6606
|
id: taskId,
|
|
6653
6607
|
office: {
|
|
6654
6608
|
id: '650', // TODO: Remove hardcode
|
|
@@ -7095,7 +7049,6 @@
|
|
|
7095
7049
|
],
|
|
7096
7050
|
];
|
|
7097
7051
|
|
|
7098
|
-
const PORTAL_NATURAL_URL$1 = '/';
|
|
7099
7052
|
const WIZARD_STEPS$1 = 6;
|
|
7100
7053
|
const WIZARD_TITLES$1 = [
|
|
7101
7054
|
'Параметры карты',
|
|
@@ -7109,8 +7062,7 @@
|
|
|
7109
7062
|
const [step, setStep] = useState(0);
|
|
7110
7063
|
const formContainerRef = useRef(null);
|
|
7111
7064
|
const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
|
|
7112
|
-
|
|
7113
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL$1)), []);
|
|
7065
|
+
useEffect(updateRefreshToken, []);
|
|
7114
7066
|
const handleNextStep = useCallback(() => {
|
|
7115
7067
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
|
|
7116
7068
|
scrollToTop();
|
|
@@ -7508,36 +7460,39 @@
|
|
|
7508
7460
|
};
|
|
7509
7461
|
};
|
|
7510
7462
|
|
|
7511
|
-
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) =>
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
id:
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
id:
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7463
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
7464
|
+
const navigator = locationNavigator();
|
|
7465
|
+
return {
|
|
7466
|
+
sendToBank: true,
|
|
7467
|
+
taskKind: 'UNITED',
|
|
7468
|
+
task: {
|
|
7469
|
+
taskSource: navigator.origin,
|
|
7470
|
+
id: taskId,
|
|
7471
|
+
office: {
|
|
7472
|
+
id: '',
|
|
7473
|
+
},
|
|
7474
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
7475
|
+
participants: [
|
|
7476
|
+
{
|
|
7477
|
+
id: participantId,
|
|
7478
|
+
profile: {
|
|
7479
|
+
id: profileId,
|
|
7480
|
+
},
|
|
7481
|
+
roleCd: {
|
|
7482
|
+
key: 'BORROWER',
|
|
7483
|
+
value: 'Заемщик',
|
|
7484
|
+
},
|
|
7485
|
+
...getCurrentStepData(step, formData),
|
|
7530
7486
|
},
|
|
7531
|
-
|
|
7487
|
+
],
|
|
7488
|
+
...getZeroStepData(formData),
|
|
7489
|
+
...getFifthStepData(formData),
|
|
7490
|
+
esiaAccountTypeCd: {
|
|
7491
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
7532
7492
|
},
|
|
7533
|
-
],
|
|
7534
|
-
...getZeroStepData(formData),
|
|
7535
|
-
...getFifthStepData(formData),
|
|
7536
|
-
esiaAccountTypeCd: {
|
|
7537
|
-
key: formData?.esiaAccountTypeCd?.key,
|
|
7538
7493
|
},
|
|
7539
|
-
}
|
|
7540
|
-
}
|
|
7494
|
+
};
|
|
7495
|
+
};
|
|
7541
7496
|
const getCurrentStepData = (step, formData) => {
|
|
7542
7497
|
switch (step) {
|
|
7543
7498
|
case 0:
|
|
@@ -7888,7 +7843,6 @@
|
|
|
7888
7843
|
],
|
|
7889
7844
|
];
|
|
7890
7845
|
|
|
7891
|
-
const PORTAL_NATURAL_URL = '/';
|
|
7892
7846
|
const WIZARD_STEPS = 5;
|
|
7893
7847
|
const WIZARD_TITLES = [
|
|
7894
7848
|
'',
|
|
@@ -7902,8 +7856,7 @@
|
|
|
7902
7856
|
const [step, setStep] = useState(0);
|
|
7903
7857
|
const formContainerRef = useRef(null);
|
|
7904
7858
|
const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
|
|
7905
|
-
|
|
7906
|
-
useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
|
|
7859
|
+
useEffect(updateRefreshToken, []);
|
|
7907
7860
|
const handleNextStep = useCallback(() => {
|
|
7908
7861
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
|
|
7909
7862
|
scrollToTop();
|
|
@@ -8302,6 +8255,46 @@
|
|
|
8302
8255
|
};
|
|
8303
8256
|
const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
|
|
8304
8257
|
|
|
8258
|
+
function assertNonEmpty(value) {
|
|
8259
|
+
if (!value) {
|
|
8260
|
+
throw new Error('Value should be fulfilled');
|
|
8261
|
+
}
|
|
8262
|
+
return value;
|
|
8263
|
+
}
|
|
8264
|
+
|
|
8265
|
+
const baseTableFunc = (table) => (input) => {
|
|
8266
|
+
const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
|
|
8267
|
+
return unit(input);
|
|
8268
|
+
};
|
|
8269
|
+
const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
|
|
8270
|
+
tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
|
|
8271
|
+
class TableFuncBuilder {
|
|
8272
|
+
parent;
|
|
8273
|
+
predicate;
|
|
8274
|
+
unit;
|
|
8275
|
+
get entry() {
|
|
8276
|
+
return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
|
|
8277
|
+
}
|
|
8278
|
+
constructor(parent, predicate, unit) {
|
|
8279
|
+
this.parent = parent;
|
|
8280
|
+
this.predicate = predicate;
|
|
8281
|
+
this.unit = unit;
|
|
8282
|
+
}
|
|
8283
|
+
if(predicate) {
|
|
8284
|
+
return new TableFuncBuilder(this, predicate);
|
|
8285
|
+
}
|
|
8286
|
+
then(unit) {
|
|
8287
|
+
return new TableFuncBuilder(this.parent, this.predicate, unit);
|
|
8288
|
+
}
|
|
8289
|
+
else(unit) {
|
|
8290
|
+
return baseTableFunc([...buildTable(this), [() => true, unit]]);
|
|
8291
|
+
}
|
|
8292
|
+
}
|
|
8293
|
+
const buildTable = (builder) => [
|
|
8294
|
+
...(builder?.parent ? buildTable(builder.parent) : []),
|
|
8295
|
+
builder.entry,
|
|
8296
|
+
];
|
|
8297
|
+
|
|
8305
8298
|
const callbackCurrencySelect = (props) => tableFunc([
|
|
8306
8299
|
[
|
|
8307
8300
|
(_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
|
|
@@ -10091,7 +10084,6 @@
|
|
|
10091
10084
|
AdTile,
|
|
10092
10085
|
ApplicationForm,
|
|
10093
10086
|
ApplicationLeadForm,
|
|
10094
|
-
ApplicationStatus,
|
|
10095
10087
|
BankAccountFiltration,
|
|
10096
10088
|
BenefitsBlock,
|
|
10097
10089
|
BonusBenefitsBlock,
|
|
@@ -10324,18 +10316,18 @@
|
|
|
10324
10316
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10325
10317
|
});
|
|
10326
10318
|
|
|
10327
|
-
const packageVersion = "0.14.
|
|
10319
|
+
const packageVersion = "0.14.680";
|
|
10328
10320
|
|
|
10329
10321
|
exports.Blocks = Blocks;
|
|
10330
10322
|
exports.ContentPage = ContentPage;
|
|
10331
10323
|
exports.handlerDecorator = handlerDecorator;
|
|
10332
10324
|
exports.joinList = joinList;
|
|
10325
|
+
exports.locationNavigator = locationNavigator;
|
|
10333
10326
|
exports.packageVersion = packageVersion;
|
|
10334
10327
|
exports.projectSettings = projectSettings;
|
|
10335
10328
|
exports.setup = setup;
|
|
10336
10329
|
exports.setupHooks = setupHooks;
|
|
10337
10330
|
exports.url = url;
|
|
10338
|
-
exports.useNavigator = useNavigator;
|
|
10339
10331
|
exports.useRouter = useRouter;
|
|
10340
10332
|
|
|
10341
10333
|
Object.defineProperty(exports, '__esModule', { value: true });
|