@redneckz/wildless-cms-uni-blocks 0.14.1027 → 0.14.1029
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +251 -119
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/bundle/components/RatesTable/RatesTable.d.ts +6 -0
- package/bundle/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/bundle/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/bundle/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/bundle/components/RatesTable/renderDate.d.ts +6 -0
- package/bundle/components/RatesTable/renderLink.d.ts +1 -0
- package/bundle/hooks/useRates.d.ts +4 -0
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/bundle/retail/api/createDraftTask.d.ts +1 -1
- package/bundle/retail/api/createParticipant.d.ts +5 -1
- package/bundle/retail/api/draftTasksKZO.d.ts +2 -1
- package/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
- package/bundle/retail/api/getUserTasks.d.ts +2 -40
- package/bundle/retail/api/getUserTasksCard.d.ts +2 -0
- package/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
- package/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
- package/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
- package/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/bundle/ui-kit/Rate/Rate.d.ts +12 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/dist/components/RatesTable/RatesTable.d.ts +6 -0
- package/dist/components/RatesTable/RatesTable.js +17 -0
- package/dist/components/RatesTable/RatesTable.js.map +1 -0
- package/dist/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/dist/components/RatesTable/RatesTableContent.js +2 -0
- package/dist/components/RatesTable/RatesTableContent.js.map +1 -0
- package/dist/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/dist/components/RatesTable/RatesTableItem.js +16 -0
- package/dist/components/RatesTable/RatesTableItem.js.map +1 -0
- package/dist/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/dist/components/RatesTable/renderDataPickForm.js +8 -0
- package/dist/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/dist/components/RatesTable/renderDate.d.ts +6 -0
- package/dist/components/RatesTable/renderDate.js +24 -0
- package/dist/components/RatesTable/renderDate.js.map +1 -0
- package/dist/components/RatesTable/renderLink.d.ts +1 -0
- package/dist/components/RatesTable/renderLink.js +8 -0
- package/dist/components/RatesTable/renderLink.js.map +1 -0
- package/dist/hooks/useRates.d.ts +4 -0
- package/dist/hooks/useRates.js +42 -0
- package/dist/hooks/useRates.js.map +1 -0
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/dist/retail/api/createDraftTask.d.ts +1 -1
- package/dist/retail/api/createParticipant.d.ts +5 -1
- package/dist/retail/api/createParticipant.js +1 -1
- package/dist/retail/api/createParticipant.js.map +1 -1
- package/dist/retail/api/draftTasksKZO.d.ts +2 -1
- package/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/dist/retail/api/getLastTaskStatus.d.ts +2 -1
- package/dist/retail/api/getLastTaskStatus.js.map +1 -1
- package/dist/retail/api/getUserTasks.d.ts +2 -40
- package/dist/retail/api/getUserTasks.js +2 -6
- package/dist/retail/api/getUserTasks.js.map +1 -1
- package/dist/retail/api/getUserTasksCard.d.ts +2 -0
- package/dist/retail/api/getUserTasksCard.js +8 -0
- package/dist/retail/api/getUserTasksCard.js.map +1 -0
- package/dist/retail/api/getUserTasksCredit.d.ts +2 -0
- package/dist/retail/api/getUserTasksCredit.js +9 -0
- package/dist/retail/api/getUserTasksCredit.js.map +1 -0
- package/dist/retail/api/getUserTasksDebit.d.ts +2 -0
- package/dist/retail/api/getUserTasksDebit.js +8 -0
- package/dist/retail/api/getUserTasksDebit.js.map +1 -0
- package/dist/retail/api/getUserTasksTypes.d.ts +39 -0
- package/dist/retail/api/getUserTasksTypes.js +9 -0
- package/dist/retail/api/getUserTasksTypes.js.map +1 -0
- package/dist/retail/api/updateUserTask.d.ts +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/dist/ui-kit/Rate/Rate.d.ts +12 -0
- package/dist/ui-kit/Rate/Rate.js +11 -0
- package/dist/ui-kit/Rate/Rate.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/lib/components/RatesTable/RatesTable.d.ts +6 -0
- package/lib/components/RatesTable/RatesTable.fixture.d.ts +6 -0
- package/lib/components/RatesTable/RatesTable.fixture.mobile.d.ts +6 -0
- package/lib/components/RatesTable/RatesTable.js +15 -0
- package/lib/components/RatesTable/RatesTable.js.map +1 -0
- package/lib/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/lib/components/RatesTable/RatesTableContent.js +2 -0
- package/lib/components/RatesTable/RatesTableContent.js.map +1 -0
- package/lib/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/lib/components/RatesTable/RatesTableItem.js +14 -0
- package/lib/components/RatesTable/RatesTableItem.js.map +1 -0
- package/lib/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/lib/components/RatesTable/renderDataPickForm.js +5 -0
- package/lib/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/lib/components/RatesTable/renderDate.d.ts +6 -0
- package/lib/components/RatesTable/renderDate.js +21 -0
- package/lib/components/RatesTable/renderDate.js.map +1 -0
- package/lib/components/RatesTable/renderLink.d.ts +1 -0
- package/lib/components/RatesTable/renderLink.js +5 -0
- package/lib/components/RatesTable/renderLink.js.map +1 -0
- package/lib/hooks/useRates.d.ts +4 -0
- package/lib/hooks/useRates.js +39 -0
- package/lib/hooks/useRates.js.map +1 -0
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/lib/retail/api/createDraftTask.d.ts +1 -1
- package/lib/retail/api/createParticipant.d.ts +5 -1
- package/lib/retail/api/createParticipant.js +1 -1
- package/lib/retail/api/createParticipant.js.map +1 -1
- package/lib/retail/api/draftTasksKZO.d.ts +2 -1
- package/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/lib/retail/api/getLastTaskStatus.d.ts +2 -1
- package/lib/retail/api/getLastTaskStatus.js.map +1 -1
- package/lib/retail/api/getUserTasks.d.ts +2 -40
- package/lib/retail/api/getUserTasks.js +1 -6
- package/lib/retail/api/getUserTasks.js.map +1 -1
- package/lib/retail/api/getUserTasksCard.d.ts +2 -0
- package/lib/retail/api/getUserTasksCard.js +5 -0
- package/lib/retail/api/getUserTasksCard.js.map +1 -0
- package/lib/retail/api/getUserTasksCredit.d.ts +2 -0
- package/lib/retail/api/getUserTasksCredit.js +6 -0
- package/lib/retail/api/getUserTasksCredit.js.map +1 -0
- package/lib/retail/api/getUserTasksDebit.d.ts +2 -0
- package/lib/retail/api/getUserTasksDebit.js +5 -0
- package/lib/retail/api/getUserTasksDebit.js.map +1 -0
- package/lib/retail/api/getUserTasksTypes.d.ts +39 -0
- package/lib/retail/api/getUserTasksTypes.js +7 -0
- package/lib/retail/api/getUserTasksTypes.js.map +1 -0
- package/lib/retail/api/updateUserTask.d.ts +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/lib/ui-kit/Rate/Rate.d.ts +12 -0
- package/lib/ui-kit/Rate/Rate.js +9 -0
- package/lib/ui-kit/Rate/Rate.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +216 -84
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/bundle/components/RatesTable/RatesTable.d.ts +6 -0
- package/mobile/bundle/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/mobile/bundle/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/mobile/bundle/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/mobile/bundle/components/RatesTable/renderDate.d.ts +6 -0
- package/mobile/bundle/components/RatesTable/renderLink.d.ts +1 -0
- package/mobile/bundle/hooks/useRates.d.ts +4 -0
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/bundle/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/bundle/retail/api/createParticipant.d.ts +5 -1
- package/mobile/bundle/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/bundle/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/bundle/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/bundle/ui-kit/Rate/Rate.d.ts +12 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/dist/components/RatesTable/RatesTable.d.ts +6 -0
- package/mobile/dist/components/RatesTable/RatesTable.js +17 -0
- package/mobile/dist/components/RatesTable/RatesTable.js.map +1 -0
- package/mobile/dist/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/mobile/dist/components/RatesTable/RatesTableContent.js +2 -0
- package/mobile/dist/components/RatesTable/RatesTableContent.js.map +1 -0
- package/mobile/dist/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/mobile/dist/components/RatesTable/RatesTableItem.js +16 -0
- package/mobile/dist/components/RatesTable/RatesTableItem.js.map +1 -0
- package/mobile/dist/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/mobile/dist/components/RatesTable/renderDataPickForm.js +8 -0
- package/mobile/dist/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/mobile/dist/components/RatesTable/renderDate.d.ts +6 -0
- package/mobile/dist/components/RatesTable/renderDate.js +24 -0
- package/mobile/dist/components/RatesTable/renderDate.js.map +1 -0
- package/mobile/dist/components/RatesTable/renderLink.d.ts +1 -0
- package/mobile/dist/components/RatesTable/renderLink.js +8 -0
- package/mobile/dist/components/RatesTable/renderLink.js.map +1 -0
- package/mobile/dist/hooks/useRates.d.ts +4 -0
- package/mobile/dist/hooks/useRates.js +42 -0
- package/mobile/dist/hooks/useRates.js.map +1 -0
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/dist/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/dist/retail/api/createParticipant.d.ts +5 -1
- package/mobile/dist/retail/api/createParticipant.js +1 -1
- package/mobile/dist/retail/api/createParticipant.js.map +1 -1
- package/mobile/dist/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/dist/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/dist/retail/api/getLastTaskStatus.js.map +1 -1
- package/mobile/dist/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/dist/retail/api/getUserTasks.js +2 -6
- package/mobile/dist/retail/api/getUserTasks.js.map +1 -1
- package/mobile/dist/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksCard.js +8 -0
- package/mobile/dist/retail/api/getUserTasksCard.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksCredit.js +9 -0
- package/mobile/dist/retail/api/getUserTasksCredit.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksDebit.js +8 -0
- package/mobile/dist/retail/api/getUserTasksDebit.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/dist/retail/api/getUserTasksTypes.js +9 -0
- package/mobile/dist/retail/api/getUserTasksTypes.js.map +1 -0
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/dist/ui-kit/Rate/Rate.d.ts +12 -0
- package/mobile/dist/ui-kit/Rate/Rate.js +11 -0
- package/mobile/dist/ui-kit/Rate/Rate.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/lib/components/RatesTable/RatesTable.d.ts +6 -0
- package/mobile/lib/components/RatesTable/RatesTable.js +15 -0
- package/mobile/lib/components/RatesTable/RatesTable.js.map +1 -0
- package/mobile/lib/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/mobile/lib/components/RatesTable/RatesTableContent.js +2 -0
- package/mobile/lib/components/RatesTable/RatesTableContent.js.map +1 -0
- package/mobile/lib/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/mobile/lib/components/RatesTable/RatesTableItem.js +14 -0
- package/mobile/lib/components/RatesTable/RatesTableItem.js.map +1 -0
- package/mobile/lib/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/mobile/lib/components/RatesTable/renderDataPickForm.js +5 -0
- package/mobile/lib/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/mobile/lib/components/RatesTable/renderDate.d.ts +6 -0
- package/mobile/lib/components/RatesTable/renderDate.js +21 -0
- package/mobile/lib/components/RatesTable/renderDate.js.map +1 -0
- package/mobile/lib/components/RatesTable/renderLink.d.ts +1 -0
- package/mobile/lib/components/RatesTable/renderLink.js +5 -0
- package/mobile/lib/components/RatesTable/renderLink.js.map +1 -0
- package/mobile/lib/hooks/useRates.d.ts +4 -0
- package/mobile/lib/hooks/useRates.js +39 -0
- package/mobile/lib/hooks/useRates.js.map +1 -0
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/lib/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/lib/retail/api/createParticipant.d.ts +5 -1
- package/mobile/lib/retail/api/createParticipant.js +1 -1
- package/mobile/lib/retail/api/createParticipant.js.map +1 -1
- package/mobile/lib/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/lib/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/lib/retail/api/getLastTaskStatus.js.map +1 -1
- package/mobile/lib/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/lib/retail/api/getUserTasks.js +1 -6
- package/mobile/lib/retail/api/getUserTasks.js.map +1 -1
- package/mobile/lib/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksCard.js +5 -0
- package/mobile/lib/retail/api/getUserTasksCard.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksCredit.js +6 -0
- package/mobile/lib/retail/api/getUserTasksCredit.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksDebit.js +5 -0
- package/mobile/lib/retail/api/getUserTasksDebit.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/lib/retail/api/getUserTasksTypes.js +7 -0
- package/mobile/lib/retail/api/getUserTasksTypes.js.map +1 -0
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/lib/ui-kit/Rate/Rate.d.ts +12 -0
- package/mobile/lib/ui-kit/Rate/Rate.js +9 -0
- package/mobile/lib/ui-kit/Rate/Rate.js.map +1 -0
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
- package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
- package/mobile/src/components/RatesTable/RatesTable.example.json +7 -0
- package/mobile/src/components/RatesTable/RatesTable.tsx +38 -0
- package/mobile/src/components/RatesTable/RatesTable.ui.json +7 -0
- package/mobile/src/components/RatesTable/RatesTableContent.ts +13 -0
- package/mobile/src/components/RatesTable/RatesTableItem.tsx +39 -0
- package/mobile/src/components/RatesTable/renderDataPickForm.tsx +9 -0
- package/mobile/src/components/RatesTable/renderDate.tsx +42 -0
- package/mobile/src/components/RatesTable/renderLink.tsx +8 -0
- package/mobile/src/hooks/useRates.ts +65 -0
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
- package/mobile/src/retail/api/createDraftTask.ts +1 -1
- package/mobile/src/retail/api/createParticipant.ts +3 -2
- package/mobile/src/retail/api/draftTasksKZO.ts +2 -1
- package/mobile/src/retail/api/getLastTaskStatus.ts +2 -1
- package/mobile/src/retail/api/getUserTasks.ts +2 -42
- package/mobile/src/retail/api/getUserTasksCard.ts +6 -0
- package/mobile/src/retail/api/getUserTasksCredit.ts +8 -0
- package/mobile/src/retail/api/getUserTasksDebit.ts +6 -0
- package/mobile/src/retail/api/getUserTasksTypes.ts +42 -0
- package/mobile/src/retail/api/updateUserTask.ts +1 -1
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
- package/mobile/src/ui-kit/Rate/Rate.tsx +27 -0
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
- package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
- package/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
- package/src/components/RatesTable/RatesTable.example.json +7 -0
- package/src/components/RatesTable/RatesTable.fixture.mobile.tsx +26 -0
- package/src/components/RatesTable/RatesTable.fixture.tsx +26 -0
- package/src/components/RatesTable/RatesTable.tsx +38 -0
- package/src/components/RatesTable/RatesTable.ui.json +7 -0
- package/src/components/RatesTable/RatesTableContent.ts +13 -0
- package/src/components/RatesTable/RatesTableItem.tsx +39 -0
- package/src/components/RatesTable/renderDataPickForm.tsx +9 -0
- package/src/components/RatesTable/renderDate.tsx +42 -0
- package/src/components/RatesTable/renderLink.tsx +8 -0
- package/src/hooks/useRates.ts +65 -0
- package/src/icons/IconName.ts +4 -4
- package/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
- package/src/retail/api/createDraftTask.ts +1 -1
- package/src/retail/api/createParticipant.ts +3 -2
- package/src/retail/api/draftTasksKZO.ts +2 -1
- package/src/retail/api/getLastTaskStatus.ts +2 -1
- package/src/retail/api/getUserTasks.ts +2 -42
- package/src/retail/api/getUserTasksCard.ts +6 -0
- package/src/retail/api/getUserTasksCredit.ts +8 -0
- package/src/retail/api/getUserTasksDebit.ts +6 -0
- package/src/retail/api/getUserTasksTypes.ts +42 -0
- package/src/retail/api/updateUserTask.ts +1 -1
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
- package/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
- package/src/ui-kit/Rate/Rate.tsx +27 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -6845,7 +6845,7 @@
|
|
|
6845
6845
|
return res || {};
|
|
6846
6846
|
};
|
|
6847
6847
|
|
|
6848
|
-
const createParticipant = (body) => fetchRetailJSON('/public-data/createParticipant', 'POST', body).then((res) => res
|
|
6848
|
+
const createParticipant = (body) => fetchRetailJSON('/public-data/createParticipant', 'POST', body).then((res) => res || null);
|
|
6849
6849
|
|
|
6850
6850
|
const createUserProfile = (body) => fetchRetailJSON('/public-data/createUserProfile', 'POST', body).then((res) => res?.profile?.id || null);
|
|
6851
6851
|
|
|
@@ -7153,10 +7153,11 @@
|
|
|
7153
7153
|
}
|
|
7154
7154
|
};
|
|
7155
7155
|
return {
|
|
7156
|
-
open: ({ phone, profileId, onFail, taskId, participantId }) => open({
|
|
7156
|
+
open: ({ phone, profileId, userId, onFail, taskId, participantId }) => open({
|
|
7157
7157
|
onSubmit: handleSubmitBkiConsent({
|
|
7158
7158
|
phone,
|
|
7159
7159
|
profileId,
|
|
7160
|
+
userId,
|
|
7160
7161
|
onFail,
|
|
7161
7162
|
taskId,
|
|
7162
7163
|
participantId,
|
|
@@ -7380,7 +7381,10 @@
|
|
|
7380
7381
|
};
|
|
7381
7382
|
|
|
7382
7383
|
const parseDraftTask = (task) => {
|
|
7383
|
-
const participant = task.participants[0];
|
|
7384
|
+
const participant = task.participant || task.participants?.[0];
|
|
7385
|
+
if (!participant) {
|
|
7386
|
+
throw new Error('Task does not contain participant data');
|
|
7387
|
+
}
|
|
7384
7388
|
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
|
|
7385
7389
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
7386
7390
|
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, } = participant;
|
|
@@ -7445,16 +7449,18 @@
|
|
|
7445
7449
|
const DraftDialog = JSX(function ({ task, isFromLead = false, isDebit = false, sendAspects = noop, onClose = noop, }) {
|
|
7446
7450
|
const retailFormStore = useRetailFormStore();
|
|
7447
7451
|
const navigator = locationNavigator();
|
|
7448
|
-
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
7452
|
+
const { participants, participant, creditProgram, createdDate = '', id: taskId } = task;
|
|
7449
7453
|
const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
7450
7454
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
7451
7455
|
const productData = getProductData(isDebit, isCredit);
|
|
7452
|
-
const
|
|
7456
|
+
const currentParticipant = participant || participants?.[0];
|
|
7457
|
+
const { id: participantId, profile } = currentParticipant || {};
|
|
7453
7458
|
const handleGoToDraft = useCallback(() => {
|
|
7454
7459
|
const taskFromDraft = parseDraftTask(task);
|
|
7455
7460
|
retailFormStore.participantId = participantId ?? null;
|
|
7456
7461
|
retailFormStore.taskId = taskId;
|
|
7457
7462
|
retailFormStore.profileId = profile?.id ?? null;
|
|
7463
|
+
retailFormStore.userId = profile?.id ?? null;
|
|
7458
7464
|
retailFormStore.programId = programmId;
|
|
7459
7465
|
retailFormStore.leadForm = taskFromDraft;
|
|
7460
7466
|
if (profile?.id) {
|
|
@@ -7600,10 +7606,11 @@
|
|
|
7600
7606
|
|
|
7601
7607
|
const useSaveUserData = () => {
|
|
7602
7608
|
const leadFormStore = useLeadFormStore();
|
|
7603
|
-
return useCallback(({ participantId, taskId, profileId, programId: programNumber, formData }) => {
|
|
7609
|
+
return useCallback(({ participantId, taskId, userId, profileId, programId: programNumber, formData, }) => {
|
|
7604
7610
|
leadFormStore.participantId = participantId;
|
|
7605
7611
|
leadFormStore.taskId = taskId;
|
|
7606
7612
|
leadFormStore.profileId = profileId;
|
|
7613
|
+
leadFormStore.userId = userId;
|
|
7607
7614
|
leadFormStore.programId = programNumber;
|
|
7608
7615
|
leadFormStore.leadForm = formData;
|
|
7609
7616
|
}, []);
|
|
@@ -7719,42 +7726,43 @@
|
|
|
7719
7726
|
try {
|
|
7720
7727
|
startSending();
|
|
7721
7728
|
const transformedFormData = transformFormData(formData);
|
|
7722
|
-
const
|
|
7729
|
+
const participantData = await createParticipant({
|
|
7723
7730
|
phone: formatPhone(transformedFormData.phone),
|
|
7724
7731
|
email: transformedFormData.email,
|
|
7725
7732
|
});
|
|
7726
7733
|
const referalData = leadFormStore.referalData;
|
|
7727
7734
|
const marketingInfo = sessionStore.marketingInfo;
|
|
7735
|
+
if (!participantData) {
|
|
7736
|
+
throw new Error();
|
|
7737
|
+
}
|
|
7738
|
+
const { participantId, userId } = participantData;
|
|
7728
7739
|
if (!participantId) {
|
|
7729
7740
|
throw new Error();
|
|
7730
7741
|
}
|
|
7731
|
-
const sendCurrentTask =
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
handleFailSendForm();
|
|
7756
|
-
}
|
|
7757
|
-
};
|
|
7742
|
+
const sendCurrentTask = createSendCurrentTaskNew({
|
|
7743
|
+
programId,
|
|
7744
|
+
participantId,
|
|
7745
|
+
userId,
|
|
7746
|
+
formData: transformedFormData,
|
|
7747
|
+
referalData,
|
|
7748
|
+
productType,
|
|
7749
|
+
marketingInfo,
|
|
7750
|
+
saveUserData,
|
|
7751
|
+
sendAspects,
|
|
7752
|
+
verifyPhoneDialog,
|
|
7753
|
+
consentBkiDialog,
|
|
7754
|
+
handleFailSendForm,
|
|
7755
|
+
});
|
|
7756
|
+
const handleSuccessVerify = createHandleSuccessVerifyNew({
|
|
7757
|
+
userId,
|
|
7758
|
+
programId,
|
|
7759
|
+
productType,
|
|
7760
|
+
verifyPhoneDialog,
|
|
7761
|
+
draftDialog,
|
|
7762
|
+
sendAspects,
|
|
7763
|
+
sendCurrentTask,
|
|
7764
|
+
handleFailSendForm,
|
|
7765
|
+
});
|
|
7758
7766
|
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
7759
7767
|
verifyPhoneDialog.open({
|
|
7760
7768
|
phone: transformedFormData.phone,
|
|
@@ -7775,6 +7783,54 @@
|
|
|
7775
7783
|
handleSubmit: isNewMicroservice ? handleSubmitNewMicroservice : handleSubmitOldMicroservice,
|
|
7776
7784
|
};
|
|
7777
7785
|
};
|
|
7786
|
+
const createSendCurrentTaskNew = ({ programId, participantId, userId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, verifyPhoneDialog, consentBkiDialog, handleFailSendForm, }) => async () => {
|
|
7787
|
+
const taskId = await updateUserDataNewMicroservice({
|
|
7788
|
+
programId,
|
|
7789
|
+
participantId,
|
|
7790
|
+
userId,
|
|
7791
|
+
formData,
|
|
7792
|
+
referalData,
|
|
7793
|
+
productType,
|
|
7794
|
+
marketingInfo,
|
|
7795
|
+
saveUserData,
|
|
7796
|
+
sendAspects,
|
|
7797
|
+
});
|
|
7798
|
+
verifyPhoneDialog.close();
|
|
7799
|
+
consentBkiDialog.open({
|
|
7800
|
+
phone: formData.phone,
|
|
7801
|
+
taskId,
|
|
7802
|
+
userId,
|
|
7803
|
+
participantId,
|
|
7804
|
+
onFail: handleFailSendForm,
|
|
7805
|
+
});
|
|
7806
|
+
};
|
|
7807
|
+
const createHandleSuccessVerifyNew = ({ userId, programId, productType, verifyPhoneDialog, draftDialog, sendAspects, sendCurrentTask, handleFailSendForm, }) => async () => {
|
|
7808
|
+
try {
|
|
7809
|
+
const lastTaskId = await getLastTaskStatus({
|
|
7810
|
+
userId,
|
|
7811
|
+
profileId: userId,
|
|
7812
|
+
programId,
|
|
7813
|
+
});
|
|
7814
|
+
if (lastTaskId) {
|
|
7815
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
7816
|
+
if (task) {
|
|
7817
|
+
verifyPhoneDialog.close();
|
|
7818
|
+
draftDialog.open({
|
|
7819
|
+
task,
|
|
7820
|
+
isFromLead: true,
|
|
7821
|
+
isDebit: productType === 'debitCard',
|
|
7822
|
+
sendAspects,
|
|
7823
|
+
onClose: sendCurrentTask,
|
|
7824
|
+
});
|
|
7825
|
+
return;
|
|
7826
|
+
}
|
|
7827
|
+
}
|
|
7828
|
+
await sendCurrentTask();
|
|
7829
|
+
}
|
|
7830
|
+
catch {
|
|
7831
|
+
handleFailSendForm();
|
|
7832
|
+
}
|
|
7833
|
+
};
|
|
7778
7834
|
const getAcceptedConsents = (formData, productType) => {
|
|
7779
7835
|
const consents = productTypeToConsentsMap[productType];
|
|
7780
7836
|
return Object.keys(consents)
|
|
@@ -7826,7 +7882,7 @@
|
|
|
7826
7882
|
console.log(ex);
|
|
7827
7883
|
}
|
|
7828
7884
|
};
|
|
7829
|
-
const updateUserDataNewMicroservice = async ({ programId, participantId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, }) => {
|
|
7885
|
+
const updateUserDataNewMicroservice = async ({ programId, userId, participantId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, }) => {
|
|
7830
7886
|
let taskId;
|
|
7831
7887
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
7832
7888
|
try {
|
|
@@ -7848,8 +7904,8 @@
|
|
|
7848
7904
|
...referalData,
|
|
7849
7905
|
});
|
|
7850
7906
|
}
|
|
7851
|
-
sendAspects(participantId, taskId);
|
|
7852
|
-
saveUserData({ participantId, taskId, programId, formData });
|
|
7907
|
+
sendAspects(userId || participantId, taskId);
|
|
7908
|
+
saveUserData({ participantId, taskId, userId, programId, formData });
|
|
7853
7909
|
return taskId;
|
|
7854
7910
|
}
|
|
7855
7911
|
catch (ex) {
|
|
@@ -8792,11 +8848,11 @@
|
|
|
8792
8848
|
return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
|
|
8793
8849
|
});
|
|
8794
8850
|
|
|
8795
|
-
const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName, color = 'text-secondary-text', }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: color, children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex @xl:justify-center gradient-color-text gap-xs", children: [jsx("span", { className: "font-mohave text-title-huge -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl mt-5", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
|
|
8851
|
+
const Rate$1 = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName, color = 'text-secondary-text', }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: color, children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex @xl:justify-center gradient-color-text gap-xs", children: [jsx("span", { className: "font-mohave text-title-huge -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl mt-5", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
|
|
8796
8852
|
|
|
8797
8853
|
const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { className: "space-y-s lg:min-w-96", children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx(Icon, { className: "w-10 h-auto lg:w-40", name: "PercentIcon" }), jsx("div", { className: "w-64", children: jsx(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }) })] })));
|
|
8798
8854
|
|
|
8799
|
-
const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, color = 'text-secondary-text', children, ...rest }) => rate ? (jsxs("div", { className: "flex flex-col", children: [jsx("div", { className: "hidden lg:block min-w-96", children: jsx(Rate, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, color: color, ...rest }) }), jsx(CalculatorValue, { className: "lg:hidden", title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, color: color, ...rest }), children] })) : (jsx(UnknownRate, { title: title, ...rest }));
|
|
8855
|
+
const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, color = 'text-secondary-text', children, ...rest }) => rate ? (jsxs("div", { className: "flex flex-col", children: [jsx("div", { className: "hidden lg:block min-w-96", children: jsx(Rate$1, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, color: color, ...rest }) }), jsx(CalculatorValue, { className: "lg:hidden", title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, color: color, ...rest }), children] })) : (jsx(UnknownRate, { title: title, ...rest }));
|
|
8800
8856
|
|
|
8801
8857
|
const DEFAULT_BONUS_CALCULATOR_PARAMS$1 = {
|
|
8802
8858
|
minSumTravel: 6000,
|
|
@@ -13796,6 +13852,160 @@
|
|
|
13796
13852
|
return (jsx(BlockWrapper, { version: "transparent", className: style(className), defaultPadding: "p-0", ...rest, children: dataType === 'offices' ? jsx(OfficesMap, {}) : jsx(AtmsMap, { descriptionData: data }) }));
|
|
13797
13853
|
});
|
|
13798
13854
|
|
|
13855
|
+
const RATES_URL = `${API_BASE_URI}/rates`;
|
|
13856
|
+
const ARCHIVE_RATES_URL = `${API_BASE_URI}/historyrates`;
|
|
13857
|
+
const EMPTY_RATES = [
|
|
13858
|
+
[
|
|
13859
|
+
{
|
|
13860
|
+
currencyPair: 'Валютная пара',
|
|
13861
|
+
buyRate: 0,
|
|
13862
|
+
sellRate: 0,
|
|
13863
|
+
},
|
|
13864
|
+
],
|
|
13865
|
+
];
|
|
13866
|
+
function useRates(isArchive) {
|
|
13867
|
+
const url = isArchive ? ARCHIVE_RATES_URL : RATES_URL;
|
|
13868
|
+
const rateKey = isArchive ? 'archiveRates' : 'rates';
|
|
13869
|
+
const ratesStore = useLocalStore();
|
|
13870
|
+
// проверяем, надо ли обновлять значения ставок
|
|
13871
|
+
const shouldUpdate = getShouldUpdate(isArchive, ratesStore);
|
|
13872
|
+
// костыль, не отправлять запрос на бэк, если уже был запрос менее 15 мин назад
|
|
13873
|
+
const { data } = useAsyncData(shouldUpdate ? url : '', fetchJSONUnsafe);
|
|
13874
|
+
// если есть data и значение надо обновить, то обновляем локалсторадж
|
|
13875
|
+
if (shouldUpdate && data) {
|
|
13876
|
+
const nextUpdate = getTimeAfter15Minutes();
|
|
13877
|
+
ratesStore[rateKey] = { rate: data, nextUpdate };
|
|
13878
|
+
}
|
|
13879
|
+
// берем данные из локалсторадж
|
|
13880
|
+
const rates = ratesStore[rateKey]?.rate;
|
|
13881
|
+
// возвращаем данные из локалсторадж или заглушку
|
|
13882
|
+
return Array.isArray(rates) ? rates : EMPTY_RATES;
|
|
13883
|
+
}
|
|
13884
|
+
// Отсчитываем 15 минут с текущего момента
|
|
13885
|
+
const getTimeAfter15Minutes = () => Date.now() + 15 * 60 * 1000;
|
|
13886
|
+
const getShouldUpdate = (isArchive, ratesStore) => isArchive
|
|
13887
|
+
? !ratesStore?.archiveRates || ratesStore?.archiveRates.nextUpdate <= Date.now()
|
|
13888
|
+
: !ratesStore?.rates || ratesStore?.rates.nextUpdate <= Date.now();
|
|
13889
|
+
|
|
13890
|
+
const useCarouselControls = (props, initialIndex = 0) => {
|
|
13891
|
+
const { itemCount, visibleItemCount } = props;
|
|
13892
|
+
const [activeIndex, setActiveIndex] = useState(initialIndex);
|
|
13893
|
+
const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
|
|
13894
|
+
const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
|
|
13895
|
+
const canInc = visibleItemCount
|
|
13896
|
+
? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
|
|
13897
|
+
: activeIndex < itemCount - 1;
|
|
13898
|
+
const canDec = activeIndex > 0;
|
|
13899
|
+
const isScrollAvailable = canDec || canInc;
|
|
13900
|
+
return [
|
|
13901
|
+
activeIndex,
|
|
13902
|
+
{
|
|
13903
|
+
inc,
|
|
13904
|
+
dec,
|
|
13905
|
+
canInc,
|
|
13906
|
+
canDec,
|
|
13907
|
+
isScrollAvailable,
|
|
13908
|
+
},
|
|
13909
|
+
];
|
|
13910
|
+
};
|
|
13911
|
+
|
|
13912
|
+
/** @deprecated */
|
|
13913
|
+
const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
|
|
13914
|
+
|
|
13915
|
+
const COLUMN_WIDTH = 140;
|
|
13916
|
+
const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
|
|
13917
|
+
|
|
13918
|
+
const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
13919
|
+
if (!rowData?.length) {
|
|
13920
|
+
return null;
|
|
13921
|
+
}
|
|
13922
|
+
const [headerColumn, ...columns] = rowData;
|
|
13923
|
+
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
13924
|
+
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 min-w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
13925
|
+
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
13926
|
+
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
13927
|
+
};
|
|
13928
|
+
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', { 'text-secondary-text': rowIndex === 0 }), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
|
|
13929
|
+
|
|
13930
|
+
const InnerTableBodyItem = JSX(({ rows }) => {
|
|
13931
|
+
const rowsLength = rows?.[0]?.length ?? 0;
|
|
13932
|
+
const CARD_VIEW_COUNT = 5;
|
|
13933
|
+
const [activeIndex, controls] = useCarouselControls({
|
|
13934
|
+
itemCount: rowsLength,
|
|
13935
|
+
visibleItemCount: CARD_VIEW_COUNT,
|
|
13936
|
+
});
|
|
13937
|
+
return (jsxs("div", { children: [rows?.map(renderInnerTableRow(activeIndex)), renderArrows({
|
|
13938
|
+
...controls,
|
|
13939
|
+
btnClass: ['left-3 top-20', 'right-3 top-20'],
|
|
13940
|
+
className: '',
|
|
13941
|
+
})] }));
|
|
13942
|
+
});
|
|
13943
|
+
|
|
13944
|
+
const InnerTableBody = JSX(({ activeTabIndex, items }) => (jsx("div", { children: items.map((_, tableIdx) => {
|
|
13945
|
+
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
13946
|
+
return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
13947
|
+
}) })));
|
|
13948
|
+
|
|
13949
|
+
const linkButtonVersion = 'secondary';
|
|
13950
|
+
|
|
13951
|
+
const TableColor = (isEqual = false) => `${isEqual ? 'text-white' : 'text-secondary-text'}`;
|
|
13952
|
+
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between items-center w-full py-lg", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: style('rounded-md px-4 py-3 cursor-pointer', {
|
|
13953
|
+
'bg-primary-main': idx === activeTabIndex,
|
|
13954
|
+
}), onClick: () => setActiveTabIndex(idx), children: jsx(Text, { size: "text-xl", font: "font-light", color: TableColor(idx === activeTabIndex), children: currency || idx + 1 }) }, currency))) })) : null, linkToPDF ? (jsx(LinkButton, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
13955
|
+
|
|
13956
|
+
const EMPTY_DATA$1 = 'Данных нет';
|
|
13957
|
+
const InnerTable = UniBlock(({ tableSource }) => {
|
|
13958
|
+
const tableData = tableSource?.tableData;
|
|
13959
|
+
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
13960
|
+
const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
|
|
13961
|
+
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
13962
|
+
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
13963
|
+
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items })] })) : (jsx("div", { className: "space-y-m text-center", children: jsx(Text, { size: "text-h6", children: EMPTY_DATA$1 }) }));
|
|
13964
|
+
});
|
|
13965
|
+
|
|
13966
|
+
const DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
|
|
13967
|
+
const TariffsTableRowContainer = JSX(({ children, tableInner, onClick }) => (jsxs("div", { className: style('self-start flex flex-col gap-xl', DIVIDER_STYLE), role: "row", children: [jsx("div", { className: style('flex flex-col lg:flex-row gap-x-5xl gap-y-xs'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onClick }) })) : null] })));
|
|
13968
|
+
|
|
13969
|
+
const RATES_COLUMN_STYLE = `grid grid-cols-3 gap-s`;
|
|
13970
|
+
const Rate = UniBlock(({ currencyPair = '', buyRate = 0, sellRate = 0 }) => (jsxs("div", { className: style('mb-s', RATES_COLUMN_STYLE, DIVIDER_STYLE), children: [jsx("div", { children: formatCurrencyPair(currencyPair) }), jsx("div", { children: formatRate(buyRate) }), jsx("div", { children: formatRate(sellRate) })] })));
|
|
13971
|
+
const formatCurrencyPair = (currency) => currency.replace('_TOD', '');
|
|
13972
|
+
const formatRate = (rate) => rate.toFixed(4);
|
|
13973
|
+
|
|
13974
|
+
const TIMEZONE = 'МСК';
|
|
13975
|
+
const renderDate = ({ dateString, isArchive = false }) => {
|
|
13976
|
+
const date = new Date(String(dateString));
|
|
13977
|
+
const formatTime = date.toLocaleTimeString('ru-RU', {
|
|
13978
|
+
timeZone: 'Europe/Moscow',
|
|
13979
|
+
hour: '2-digit',
|
|
13980
|
+
minute: '2-digit',
|
|
13981
|
+
hour12: false,
|
|
13982
|
+
});
|
|
13983
|
+
const formatDate = date.toLocaleDateString('ru-RU', {
|
|
13984
|
+
timeZone: 'Europe/Moscow',
|
|
13985
|
+
day: 'numeric',
|
|
13986
|
+
month: 'long',
|
|
13987
|
+
year: 'numeric',
|
|
13988
|
+
});
|
|
13989
|
+
return isArchive ? (jsxs("div", { children: [jsx(Paragraph, { color: "text-secondary-text", font: "font-medium", children: formatDate }), jsxs(Paragraph, { color: "text-secondary-text", children: [formatTime, " (", TIMEZONE, ")"] })] })) : (jsxs(Text, { color: "text-secondary-text", children: ["\u041A\u0443\u0440\u0441\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u044B \u043D\u0430 ", formatTime, " (", TIMEZONE, "), ", formatDate] }));
|
|
13990
|
+
};
|
|
13991
|
+
|
|
13992
|
+
const RatesTableItem = JSX(({ isArchive = false, isRatesValid, list = [], infoMessage }) => {
|
|
13993
|
+
const maxDate = isRatesValid
|
|
13994
|
+
? list.map((item) => item.lastUpdatedAt).reduce((a, b) => (String(a) > String(b) ? a : b))
|
|
13995
|
+
: '';
|
|
13996
|
+
return (jsxs("div", { className: "space-y-xl mb-3xl", children: [maxDate && renderDate({ dateString: maxDate, isArchive }), jsxs("div", { className: style(RATES_COLUMN_STYLE), children: [jsx(Text, { font: "font-medium", children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), jsx(Text, { font: "font-medium", children: "\u041F\u043E\u043A\u0443\u043F\u043A\u0430" }), jsx(Text, { font: "font-medium", children: "\u041F\u0440\u043E\u0434\u0430\u0436\u0430" })] }), list.length > 0 ? (list.map((rate, i) => jsx(Rate, { ...rate }, String(i)))) : (jsx(Paragraph, { children: "\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445" })), jsx(Paragraph, { color: "text-secondary-text", children: infoMessage })] }));
|
|
13997
|
+
});
|
|
13998
|
+
|
|
13999
|
+
const renderDataPickForm = () => (jsxs("div", { className: "flex justify-start items-end space-x-xl", children: [jsx(DatePicker, { label: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0435\u043D\u044C", maxDate: new Date() }), jsx(SubmitButton$1, { className: "h-fit", children: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C" })] }));
|
|
14000
|
+
|
|
14001
|
+
const renderLink = (href) => (jsxs(Paragraph, { children: ["\u041F\u043E\u043B\u043D\u044B\u0439 \u0430\u0440\u0445\u0438\u0432 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C ", jsx(Link, { href: href, children: "\u0437\u0434\u0435\u0441\u044C" })] }));
|
|
14002
|
+
|
|
14003
|
+
const RatesTable = JSX(({ href, className = '', infoMessage, title, isArchive = false, ...rest }) => {
|
|
14004
|
+
const ratesList = useRates(isArchive);
|
|
14005
|
+
const isRatesValid = ratesList[0].length > 0;
|
|
14006
|
+
return (jsxs(BlockWrapper, { className: style('p-6xl space-y-xl', className), defaultPadding: "p-0", ...rest, children: [jsx(Heading, { className: "mb-xl", children: title }), isArchive ? renderDataPickForm() : null, ratesList.map((list, i) => (jsx(RatesTableItem, { list: list, isRatesValid: isRatesValid, isArchive: isArchive, infoMessage: infoMessage }, String(i)))), href ? renderLink(href) : null] }));
|
|
14007
|
+
});
|
|
14008
|
+
|
|
13799
14009
|
const RichTextBlock = UniBlock((props) => {
|
|
13800
14010
|
const { __html, dynamicQueryParamText = {}, dynamicTextSource, richVersion = '', ...rest } = props;
|
|
13801
14011
|
const formatText = getFormatDynamicText(dynamicQueryParamText, dynamicTextSource?.list, __html);
|
|
@@ -14089,85 +14299,6 @@
|
|
|
14089
14299
|
: null }));
|
|
14090
14300
|
});
|
|
14091
14301
|
|
|
14092
|
-
const useCarouselControls = (props, initialIndex = 0) => {
|
|
14093
|
-
const { itemCount, visibleItemCount } = props;
|
|
14094
|
-
const [activeIndex, setActiveIndex] = useState(initialIndex);
|
|
14095
|
-
const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
|
|
14096
|
-
const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
|
|
14097
|
-
const canInc = visibleItemCount
|
|
14098
|
-
? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
|
|
14099
|
-
: activeIndex < itemCount - 1;
|
|
14100
|
-
const canDec = activeIndex > 0;
|
|
14101
|
-
const isScrollAvailable = canDec || canInc;
|
|
14102
|
-
return [
|
|
14103
|
-
activeIndex,
|
|
14104
|
-
{
|
|
14105
|
-
inc,
|
|
14106
|
-
dec,
|
|
14107
|
-
canInc,
|
|
14108
|
-
canDec,
|
|
14109
|
-
isScrollAvailable,
|
|
14110
|
-
},
|
|
14111
|
-
];
|
|
14112
|
-
};
|
|
14113
|
-
|
|
14114
|
-
/** @deprecated */
|
|
14115
|
-
const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
|
|
14116
|
-
|
|
14117
|
-
const COLUMN_WIDTH = 140;
|
|
14118
|
-
const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
|
|
14119
|
-
|
|
14120
|
-
const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
14121
|
-
if (!rowData?.length) {
|
|
14122
|
-
return null;
|
|
14123
|
-
}
|
|
14124
|
-
const [headerColumn, ...columns] = rowData;
|
|
14125
|
-
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
14126
|
-
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 min-w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
14127
|
-
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
14128
|
-
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
14129
|
-
};
|
|
14130
|
-
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', { 'text-secondary-text': rowIndex === 0 }), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
|
|
14131
|
-
|
|
14132
|
-
const InnerTableBodyItem = JSX(({ rows }) => {
|
|
14133
|
-
const rowsLength = rows?.[0]?.length ?? 0;
|
|
14134
|
-
const CARD_VIEW_COUNT = 5;
|
|
14135
|
-
const [activeIndex, controls] = useCarouselControls({
|
|
14136
|
-
itemCount: rowsLength,
|
|
14137
|
-
visibleItemCount: CARD_VIEW_COUNT,
|
|
14138
|
-
});
|
|
14139
|
-
return (jsxs("div", { children: [rows?.map(renderInnerTableRow(activeIndex)), renderArrows({
|
|
14140
|
-
...controls,
|
|
14141
|
-
btnClass: ['left-3 top-20', 'right-3 top-20'],
|
|
14142
|
-
className: '',
|
|
14143
|
-
})] }));
|
|
14144
|
-
});
|
|
14145
|
-
|
|
14146
|
-
const InnerTableBody = JSX(({ activeTabIndex, items }) => (jsx("div", { children: items.map((_, tableIdx) => {
|
|
14147
|
-
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
14148
|
-
return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
14149
|
-
}) })));
|
|
14150
|
-
|
|
14151
|
-
const linkButtonVersion = 'secondary';
|
|
14152
|
-
|
|
14153
|
-
const TableColor = (isEqual = false) => `${isEqual ? 'text-white' : 'text-secondary-text'}`;
|
|
14154
|
-
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between items-center w-full py-lg", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: style('rounded-md px-4 py-3 cursor-pointer', {
|
|
14155
|
-
'bg-primary-main': idx === activeTabIndex,
|
|
14156
|
-
}), onClick: () => setActiveTabIndex(idx), children: jsx(Text, { size: "text-xl", font: "font-light", color: TableColor(idx === activeTabIndex), children: currency || idx + 1 }) }, currency))) })) : null, linkToPDF ? (jsx(LinkButton, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
14157
|
-
|
|
14158
|
-
const EMPTY_DATA$1 = 'Данных нет';
|
|
14159
|
-
const InnerTable = UniBlock(({ tableSource }) => {
|
|
14160
|
-
const tableData = tableSource?.tableData;
|
|
14161
|
-
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
14162
|
-
const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
|
|
14163
|
-
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
14164
|
-
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
14165
|
-
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items })] })) : (jsx("div", { className: "space-y-m text-center", children: jsx(Text, { size: "text-h6", children: EMPTY_DATA$1 }) }));
|
|
14166
|
-
});
|
|
14167
|
-
|
|
14168
|
-
const DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
|
|
14169
|
-
const TariffsTableRowContainer = JSX(({ children, tableInner, onClick }) => (jsxs("div", { className: style('self-start flex flex-col gap-xl', DIVIDER_STYLE), role: "row", children: [jsx("div", { className: style('flex flex-col lg:flex-row gap-x-5xl gap-y-xs'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onClick }) })) : null] })));
|
|
14170
|
-
|
|
14171
14302
|
const TariffsTableRow = JSX(({ row: { header, data = [] }, ...rest }) => {
|
|
14172
14303
|
const [tableInner, setTableInner] = useState(undefined);
|
|
14173
14304
|
const handleSetTableInner = useCallback((_) => {
|
|
@@ -14269,6 +14400,7 @@
|
|
|
14269
14400
|
CashbackCalculator,
|
|
14270
14401
|
CalculatorRko,
|
|
14271
14402
|
RkoTariffCardsTable,
|
|
14403
|
+
RatesTable,
|
|
14272
14404
|
};
|
|
14273
14405
|
|
|
14274
14406
|
const applyAspects = (aspects) => (ev) => {
|
|
@@ -14413,7 +14545,7 @@
|
|
|
14413
14545
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14414
14546
|
});
|
|
14415
14547
|
|
|
14416
|
-
const packageVersion = "0.14.
|
|
14548
|
+
const packageVersion = "0.14.1028";
|
|
14417
14549
|
|
|
14418
14550
|
exports.Blocks = Blocks;
|
|
14419
14551
|
exports.ContentPage = ContentPage;
|