@tesouro/embedded-components-react 0.5.222 → 0.5.224
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/dist/index.d.ts +214 -214
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.d.ts +151 -151
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +251 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index10.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useForceApprovePayableMutation.js → bill-detail/data-access/dist/index11.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useForceRejectPayableMutation.js → bill-detail/data-access/dist/index12.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useReopenPayableMutation.js → bill-detail/data-access/dist/index13.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useSubmitPayableForApprovalMutation.js → bill-detail/data-access/dist/index14.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useUpdatePayableMutation.js → bill-detail/data-access/dist/index15.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useValidatePayableMutation.js → bill-detail/data-access/dist/index16.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index17.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablePaymentRecordsQuery.js → bill-detail/data-access/dist/index18.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableSuggestionsQuery.js → bill-detail/data-access/dist/index19.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableApprovalRequests.js → bill-detail/data-access/dist/index2.js} +6 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/payablePolicyAssignmentQueryOptions.js → bill-detail/data-access/dist/index20.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayableQuery.js → bill-detail/data-access/dist/index21.js} +9 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesByIdsQueries.js → bill-detail/data-access/dist/index22.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index23.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableHistoryQuery.js → bill-detail/data-access/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableLineItems.js → bill-detail/data-access/dist/index4.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useAttachPayableFileMutation.js → bill-detail/data-access/dist/index5.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useCancelPayableMutation.js → bill-detail/data-access/dist/index6.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index7.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index8.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index9.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index15.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index17.js → bill-detail/feature/dist/index16.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index18.js → bill-detail/feature/dist/index17.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index19.js → bill-detail/feature/dist/index18.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index20.js → bill-detail/feature/dist/index19.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index2.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index21.js → bill-detail/feature/dist/index20.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index22.js → bill-detail/feature/dist/index21.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index23.js → bill-detail/feature/dist/index22.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index24.js → bill-detail/feature/dist/index23.js} +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index25.js → bill-detail/feature/dist/index24.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index26.js → bill-detail/feature/dist/index25.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index27.js → bill-detail/feature/dist/index26.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index28.js → bill-detail/feature/dist/index27.js} +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index29.js → bill-detail/feature/dist/index28.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index30.js → bill-detail/feature/dist/index29.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index31.js → bill-detail/feature/dist/index30.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index32.js → bill-detail/feature/dist/index31.js} +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index33.js → bill-detail/feature/dist/index32.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index34.js → bill-detail/feature/dist/index33.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index35.js → bill-detail/feature/dist/index34.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index36.js → bill-detail/feature/dist/index35.js} +71 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index38.js → bill-detail/feature/dist/index37.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index39.js → bill-detail/feature/dist/index38.js} +49 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +67 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +229 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +87 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index29.js → bill-detail/ui/dist/index10.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index30.js → bill-detail/ui/dist/index11.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index31.js → bill-detail/ui/dist/index12.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index33.js → bill-detail/ui/dist/index14.js} +12 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index34.js → bill-detail/ui/dist/index15.js} +27 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index36.js → bill-detail/ui/dist/index17.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index37.js → bill-detail/ui/dist/index18.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index2.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index42.js → bill-detail/ui/dist/index20.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index43.js → bill-detail/ui/dist/index21.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index45.js → bill-detail/ui/dist/index23.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index46.js → bill-detail/ui/dist/index24.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index48.js → bill-detail/ui/dist/index26.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index49.js → bill-detail/ui/dist/index27.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index51.js → bill-detail/ui/dist/index29.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index52.js → bill-detail/ui/dist/index30.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index53.js → bill-detail/ui/dist/index31.js} +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index61.js → bill-detail/ui/dist/index33.js} +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index62.js → bill-detail/ui/dist/index34.js} +22 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index69.js → bill-detail/ui/dist/index36.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index70.js → bill-detail/ui/dist/index37.js} +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index72.js → bill-detail/ui/dist/index39.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index73.js → bill-detail/ui/dist/index40.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index64.js → bill-detail/ui/dist/index42.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index65.js → bill-detail/ui/dist/index43.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index89.js → bill-detail/ui/dist/index45.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index90.js → bill-detail/ui/dist/index46.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index95.js → bill-detail/ui/dist/index48.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index96.js → bill-detail/ui/dist/index49.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index98.js → bill-detail/ui/dist/index51.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index99.js → bill-detail/ui/dist/index52.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index54.js → bill-detail/ui/dist/index53.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/useFirstPayablesPagesQuery.js → bills-list/data-access/dist/index2.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesCountQueries.js → bills-list/data-access/dist/index3.js} +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesQuery.js → bills-list/data-access/dist/index4.js} +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index52.js → bills-list/feature/dist/index11.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index53.js → bills-list/feature/dist/index12.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index54.js → bills-list/feature/dist/index13.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index55.js → bills-list/feature/dist/index14.js} +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index56.js → bills-list/feature/dist/index15.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +398 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +246 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index44.js → bills-list/feature/dist/index2.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index45.js → bills-list/feature/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index46.js → bills-list/feature/dist/index4.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index47.js → bills-list/feature/dist/index5.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index48.js → bills-list/feature/dist/index6.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index49.js → bills-list/feature/dist/index7.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index50.js → bills-list/feature/dist/index8.js} +3 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index77.js → bills-list/ui/dist/index10.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index79.js → bills-list/ui/dist/index12.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index80.js → bills-list/ui/dist/index13.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index82.js → bills-list/ui/dist/index15.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index83.js → bills-list/ui/dist/index16.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index85.js → bills-list/ui/dist/index18.js} +15 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index86.js → bills-list/ui/dist/index19.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index87.js → bills-list/ui/dist/index20.js} +24 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index5.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index6.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index7.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index75.js → bills-list/ui/dist/index8.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index76.js → bills-list/ui/dist/index9.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +3 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +23 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +3 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +109 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +104 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +17 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +74 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/{index59.js → index4.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +2 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/feature/dist/index16.js → shared/feature/dist/lib/calendar/useLocalCalendarDay.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +0 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +0 -396
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +0 -334
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +0 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +0 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +0 -2
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index35.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index38.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index41.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index44.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index47.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index50.js +0 -0
|
@@ -1,11 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
+
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
+
import "../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillPayWidgetMonite as n } from "./index3.js";
|
|
9
|
+
import "./index4.js";
|
|
10
|
+
import { BillPayWidgetNative as r } from "./index8.js";
|
|
11
|
+
import "./index9.js";
|
|
12
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
1
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js
|
|
2
|
-
function
|
|
3
|
-
let t =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
14
|
+
function a({ implementation: a, initialTab: o, onSettingsClick: s, ...c }) {
|
|
15
|
+
let l = t().implementation, u = a ?? l ?? e.Monite;
|
|
16
|
+
return u === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
+
implementation: u,
|
|
18
|
+
initialTab: o,
|
|
19
|
+
onSettingsClick: s,
|
|
20
|
+
...c
|
|
21
|
+
}) : /* @__PURE__ */ i(n, {
|
|
22
|
+
implementation: u,
|
|
23
|
+
...c
|
|
7
24
|
});
|
|
8
|
-
return t;
|
|
9
25
|
}
|
|
10
26
|
//#endregion
|
|
11
|
-
export {
|
|
27
|
+
export { a as BillPayWidget, a as default };
|
|
@@ -1,59 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { formatBillMoney as t } from "../../util/dist/lib/formatBillMoney.js";
|
|
1
|
+
import { BILL_PAY_WIDGET_NAME as e } from "../../util/dist/lib/widgetName.js";
|
|
3
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js
|
|
4
|
-
var
|
|
5
|
-
"marked_as_paid",
|
|
6
|
-
"marked_as_partially_paid",
|
|
7
|
-
"payment_reverted"
|
|
8
|
-
]);
|
|
9
|
-
function r(e, t) {
|
|
10
|
-
let n = e?.[t];
|
|
11
|
-
return typeof n == "string" && n ? n : void 0;
|
|
12
|
-
}
|
|
13
|
-
function i(e, t) {
|
|
14
|
-
let n = e?.[t];
|
|
15
|
-
return typeof n == "number" ? n : void 0;
|
|
16
|
-
}
|
|
17
|
-
function a(e) {
|
|
18
|
-
let t;
|
|
19
|
-
for (let n of e.history ?? []) n.status === e.status && (t = n.timestamp);
|
|
20
|
-
return t;
|
|
21
|
-
}
|
|
22
|
-
var o = /* @__PURE__ */ new Set(["created", "processing"]);
|
|
23
|
-
function s(e, t) {
|
|
24
|
-
if (e) return t[e.toLowerCase()] ?? e.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
25
|
-
}
|
|
26
|
-
function c({ records: c, events: l = [], currencyCode: u, labels: d }) {
|
|
27
|
-
let f = (e) => t(e, u), p = (e) => e?.slice(0, 10) ?? "", m = [], h = new Set(c.map((e) => e.id));
|
|
28
|
-
for (let t of c) {
|
|
29
|
-
let n = o.has(t.status ?? ""), r = t.paid_at ?? a(t), i = n ? t.planned_payment_date : r?.slice(0, 10) ?? t.planned_payment_date, c = t.status === "succeeded" ? d.paymentHistorySentLabel : n ? d.paymentHistoryScheduledLabel : t.status === "canceled" ? d.paymentHistoryCanceledLabel : d.paymentHistoryOtherLabel, l = s(t.payment_method, d.paymentHistoryMethodLabels), u = t.overpaid_amount && t.overpaid_amount > 0 ? f(t.overpaid_amount) : void 0;
|
|
30
|
-
m.push({
|
|
31
|
-
key: p(i),
|
|
32
|
-
view: {
|
|
33
|
-
id: t.id,
|
|
34
|
-
dateLabel: e(i),
|
|
35
|
-
statusLabel: l ? d.paymentHistoryMethodSuffix(c, l) : c,
|
|
36
|
-
amountLabel: f(t.amount) ?? "",
|
|
37
|
-
overpaidLabel: u ? d.paymentHistoryOverpaidLabel(u) : void 0
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
for (let t of l) {
|
|
42
|
-
if (!n.has(t.event_type)) continue;
|
|
43
|
-
let a = t.event_data, o = r(a, "payment_record_id");
|
|
44
|
-
if (o && h.has(o)) continue;
|
|
45
|
-
let c = a?.is_external === !0, l = t.event_type === "payment_reverted" ? d.paymentHistoryRevertedLabel : t.event_type === "marked_as_partially_paid" ? c ? d.paymentHistoryPartiallyPaidExternalLabel : d.paymentHistoryPartiallyPaidLabel : c ? d.paymentHistoryMarkedPaidExternalLabel : d.paymentHistoryMarkedPaidLabel, u = s(r(a, "payment_method"), d.paymentHistoryMethodLabels), g = r(a, "paid_at") ?? t.timestamp;
|
|
46
|
-
m.push({
|
|
47
|
-
key: p(g),
|
|
48
|
-
view: {
|
|
49
|
-
id: `event:${t.id}`,
|
|
50
|
-
dateLabel: e(g?.slice(0, 10)),
|
|
51
|
-
statusLabel: u ? d.paymentHistoryMethodSuffix(l, u) : l,
|
|
52
|
-
amountLabel: f(i(a, "amount_paid")) ?? ""
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return m.slice().sort((e, t) => !e.key || !t.key ? e.key ? -1 : +!!t.key : e.key.localeCompare(t.key)).map((e) => e.view);
|
|
57
|
-
}
|
|
3
|
+
var t = { Mounted: `${e}.mounted` }, n = e;
|
|
58
4
|
//#endregion
|
|
59
|
-
export {
|
|
5
|
+
export { t as BillPayWidgetAnalyticsEvent, n as WIDGET_NAME };
|
|
@@ -1,7 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
+
import "../../../shared/feature/dist/index.js";
|
|
7
|
+
import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index2.js";
|
|
8
|
+
import { Payables as r } from "../../../monite-sdk/dist/index436.js";
|
|
9
|
+
import "../../../monite-sdk/dist/index.js";
|
|
10
|
+
import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
|
|
11
|
+
import "../../../shared/monite-wrapper/feature/dist/index.js";
|
|
12
|
+
import { useEffect as a } from "react";
|
|
13
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
1
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
15
|
+
var s = (e) => e;
|
|
16
|
+
function c(n) {
|
|
17
|
+
let i = e();
|
|
18
|
+
return a(() => {
|
|
19
|
+
i(t.Mounted);
|
|
20
|
+
}, [i]), /* @__PURE__ */ o(r, { ...n });
|
|
21
|
+
}
|
|
22
|
+
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
|
|
23
|
+
return /* @__PURE__ */ o(i, {
|
|
24
|
+
widgetName: n,
|
|
25
|
+
baseUrl: e,
|
|
26
|
+
widgetToken: t,
|
|
27
|
+
organizationId: r,
|
|
28
|
+
configClient: a,
|
|
29
|
+
gatewayRouting: l,
|
|
30
|
+
linkComponent: u,
|
|
31
|
+
implementation: d,
|
|
32
|
+
uiFramework: f,
|
|
33
|
+
errorFallback: p,
|
|
34
|
+
onError: m,
|
|
35
|
+
finopsThemeColors: h,
|
|
36
|
+
analytics: g,
|
|
37
|
+
disclosuresAcceptance: _,
|
|
38
|
+
providerLabels: v,
|
|
39
|
+
children: /* @__PURE__ */ o(c, {
|
|
40
|
+
...b,
|
|
41
|
+
pageTitleComponent: y
|
|
42
|
+
})
|
|
43
|
+
});
|
|
5
44
|
}
|
|
6
45
|
//#endregion
|
|
7
|
-
export {
|
|
46
|
+
export { l as BillPayWidgetMonite, l as default };
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js
|
|
3
|
-
function n(n, r) {
|
|
4
|
-
return {
|
|
5
|
-
title: n.title,
|
|
6
|
-
description: n.description,
|
|
7
|
-
confirmButton: n.confirmButton,
|
|
8
|
-
presentation: {
|
|
9
|
-
alignment: "center",
|
|
10
|
-
icon: r === "delete" ? t : e,
|
|
11
|
-
tone: r === "confirm" ? "default" : "destructive",
|
|
12
|
-
actionWidth: "equal"
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { n as duplicateRemovalPrompt };
|
|
1
|
+
import "./index3.js";
|
|
@@ -1,40 +1,7 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
reviewGroup: ({ vendorLabel: e, count: t }) => `${e} — ${t} possible duplicate bills`,
|
|
6
|
-
selectGroup: ({ vendorLabel: e }) => `Select every bill from ${e}`,
|
|
7
|
-
deleteBillButton: "Remove this bill",
|
|
8
|
-
deleteConfirmTitle: "Remove duplicate bill?",
|
|
9
|
-
deleteConfirmDescription: "You can't undo this action.",
|
|
10
|
-
deleteConfirmButton: "Remove duplicate bill",
|
|
11
|
-
deleteConfirmBackButton: "Cancel",
|
|
12
|
-
cancelBillButton: "Cancel this bill",
|
|
13
|
-
confirmBillButton: "Confirm duplicate",
|
|
14
|
-
cancelConfirmTitle: "Cancel duplicate bill?",
|
|
15
|
-
cancelConfirmDescription: "You can't undo this action.",
|
|
16
|
-
cancelConfirmButton: "Cancel this bill",
|
|
17
|
-
cancelConfirmBackButton: "Back",
|
|
18
|
-
confirmDuplicateTitle: "Confirm duplicate?",
|
|
19
|
-
confirmDuplicateDescription: "This bill is already cancelled. This records it as a duplicate.",
|
|
20
|
-
notDuplicateAction: "Not a duplicate",
|
|
21
|
-
notDuplicateConfirmTitle: "Mark as not a duplicate?",
|
|
22
|
-
notDuplicateConfirmDescription: "You can't undo this action.",
|
|
23
|
-
notDuplicateConfirmButton: "Not a duplicate",
|
|
24
|
-
notDuplicateConfirmBackButton: "Back",
|
|
25
|
-
deleteAction: "Remove bill",
|
|
26
|
-
cancelAction: "Cancel bill",
|
|
27
|
-
confirmAction: "Confirm duplicate",
|
|
28
|
-
currentBillBadge: "This bill",
|
|
29
|
-
originalBillBadge: "Original bill",
|
|
30
|
-
showMoreRows: (e) => `Show ${e} more`,
|
|
31
|
-
deletedToast: "Duplicate removed",
|
|
32
|
-
cancelledToast: "Duplicate cancelled",
|
|
33
|
-
confirmedToast: "Duplicate confirmed",
|
|
34
|
-
dismissedToast: "Marked as “not a duplicate”.",
|
|
35
|
-
removedToast: "Duplicate removed",
|
|
36
|
-
verdictFailedToast: "Couldn't update this duplicate. Try again.",
|
|
37
|
-
allResolvedToast: "All possible duplicates resolved"
|
|
3
|
+
root: "bill-pay-bills-tab",
|
|
4
|
+
detailsSheet: "bill-pay-details-sheet"
|
|
38
5
|
};
|
|
39
6
|
//#endregion
|
|
40
|
-
export { e as
|
|
7
|
+
export { e as billsTabTestIds };
|
|
@@ -2,227 +2,117 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import "../../../shared/
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import "
|
|
19
|
-
import {
|
|
20
|
-
import { DUPLICATE_BILLS_LABELS_EN as h } from "./index5.js";
|
|
21
|
-
import { useCallback as g, useMemo as _, useState as v } from "react";
|
|
22
|
-
import { BanIcon as y, FileCheckIcon as b, Trash2Icon as x } from "lucide-react";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
|
+
import "../../../shared/feature/dist/index.js";
|
|
10
|
+
import { billsTabTestIds as r } from "./index5.js";
|
|
11
|
+
import { BillCreateWidget as i, BillDetailsWidget as a } from "../../bill-detail/feature/dist/index41.js";
|
|
12
|
+
import "../../bill-detail/feature/dist/index.js";
|
|
13
|
+
import "../../bill-upload/feature/dist/index.js";
|
|
14
|
+
import { BillsListWidget as o } from "../../bills-list/feature/dist/index20.js";
|
|
15
|
+
import "../../bills-list/feature/dist/index.js";
|
|
16
|
+
import { PayBillWidget as s } from "../../pay-bill/feature/dist/index14.js";
|
|
17
|
+
import "../../pay-bill/feature/dist/index.js";
|
|
18
|
+
import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
19
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
23
20
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}))
|
|
43
|
-
}), e.success(r), i?.();
|
|
44
|
-
} catch {
|
|
45
|
-
e.error(O.verdictFailedToast);
|
|
46
|
-
}
|
|
47
|
-
}, [P, O]), U = g((e, t, n) => H(s, e, t, n), [H, s]), W = V === "delete" ? {
|
|
48
|
-
button: O.deleteBillButton,
|
|
49
|
-
title: O.deleteConfirmTitle,
|
|
50
|
-
description: O.deleteConfirmDescription,
|
|
51
|
-
confirmButton: O.deleteConfirmButton,
|
|
52
|
-
backButton: O.deleteConfirmBackButton,
|
|
53
|
-
toast: O.deletedToast
|
|
54
|
-
} : V === "confirm" ? {
|
|
55
|
-
button: O.confirmBillButton,
|
|
56
|
-
title: O.confirmDuplicateTitle,
|
|
57
|
-
description: O.confirmDuplicateDescription,
|
|
58
|
-
confirmButton: O.confirmBillButton,
|
|
59
|
-
backButton: O.cancelConfirmBackButton,
|
|
60
|
-
toast: O.confirmedToast
|
|
61
|
-
} : {
|
|
62
|
-
button: O.cancelBillButton,
|
|
63
|
-
title: O.cancelConfirmTitle,
|
|
64
|
-
description: O.cancelConfirmDescription,
|
|
65
|
-
confirmButton: O.cancelConfirmButton,
|
|
66
|
-
backButton: O.cancelConfirmBackButton,
|
|
67
|
-
toast: O.cancelledToast
|
|
68
|
-
}, G = g(async () => {
|
|
69
|
-
await U(i.Remove, W.toast, T), I(!1);
|
|
70
|
-
}, [
|
|
71
|
-
U,
|
|
72
|
-
T,
|
|
73
|
-
W.toast
|
|
74
|
-
]), K = _(() => ({
|
|
75
|
-
delete: {
|
|
76
|
-
action: O.deleteAction,
|
|
77
|
-
title: O.deleteConfirmTitle,
|
|
78
|
-
description: O.deleteConfirmDescription,
|
|
79
|
-
confirmButton: O.deleteConfirmButton,
|
|
80
|
-
backButton: O.deleteConfirmBackButton,
|
|
81
|
-
toast: O.deletedToast
|
|
82
|
-
},
|
|
83
|
-
cancel: {
|
|
84
|
-
action: O.cancelAction,
|
|
85
|
-
title: O.cancelConfirmTitle,
|
|
86
|
-
description: O.cancelConfirmDescription,
|
|
87
|
-
confirmButton: O.cancelConfirmButton,
|
|
88
|
-
backButton: O.cancelConfirmBackButton,
|
|
89
|
-
toast: O.cancelledToast
|
|
90
|
-
},
|
|
91
|
-
confirm: {
|
|
92
|
-
action: O.confirmAction,
|
|
93
|
-
title: O.confirmDuplicateTitle,
|
|
94
|
-
description: O.confirmDuplicateDescription,
|
|
95
|
-
confirmButton: O.confirmBillButton,
|
|
96
|
-
backButton: O.cancelConfirmBackButton,
|
|
97
|
-
toast: O.confirmedToast
|
|
98
|
-
}
|
|
99
|
-
}), [O]), q = K[L?.removeBy ?? "cancel"], J = g(async () => {
|
|
100
|
-
L && (await H(L.payable, i.Remove, K[L.removeBy].toast, L.payable.id === j ? T : void 0), R(void 0));
|
|
101
|
-
}, [
|
|
102
|
-
H,
|
|
103
|
-
T,
|
|
104
|
-
j,
|
|
105
|
-
L,
|
|
106
|
-
K
|
|
107
|
-
]), Y = g(async () => {
|
|
108
|
-
z && (await H(z.payable, i.Keep, O.dismissedToast, void 0, z.originalPayableId), B(void 0));
|
|
109
|
-
}, [
|
|
110
|
-
H,
|
|
111
|
-
O.dismissedToast,
|
|
112
|
-
z
|
|
113
|
-
]), X = w && !!(A && j), Z = X && !!V, Q = _(() => {
|
|
114
|
-
let e = new Map(N.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
|
|
115
|
-
s?.id && e.set(s.id, s);
|
|
116
|
-
let i = C([...e.values()], j);
|
|
117
|
-
if (i.length < 2) return [];
|
|
118
|
-
let o = c(i), f = (e) => {
|
|
119
|
-
let t = e.total_amount ?? e.amount_due;
|
|
120
|
-
return t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
|
|
121
|
-
};
|
|
122
|
-
return i.map((e) => {
|
|
123
|
-
let n = e.status ? r({
|
|
124
|
-
apiStatus: e.status,
|
|
125
|
-
dueDate: e.due_date,
|
|
126
|
-
scheduledPaymentDate: e.scheduled_payment_date
|
|
127
|
-
}) : void 0, i = e.id === o, s = e.id === j, c = w && a(e).length > 0, p = d(e), m = u(e.status);
|
|
128
|
-
return {
|
|
129
|
-
id: e.id,
|
|
130
|
-
roleLabel: p,
|
|
131
|
-
badges: [...i ? [O.originalBillBadge] : [], ...s ? [O.currentBillBadge] : []],
|
|
132
|
-
invoiceNumberLabel: e.document_id ?? "",
|
|
133
|
-
roleTone: i ? void 0 : "warning",
|
|
134
|
-
amountLabel: f(e),
|
|
135
|
-
addedOnLabel: t(e.created_at?.slice(0, 10)),
|
|
136
|
-
dueDateLabel: t(e.due_date),
|
|
137
|
-
status: n?.status,
|
|
138
|
-
statusTone: n?.tone,
|
|
139
|
-
onOpen: !s && E ? () => E(e.id, l(e.status ?? void 0)) : void 0,
|
|
140
|
-
menu: c ? {
|
|
141
|
-
triggerLabel: O.openRow({
|
|
142
|
-
vendorLabel: p,
|
|
143
|
-
invoiceNumberLabel: "",
|
|
144
|
-
addedOnLabel: t(e.created_at?.slice(0, 10))
|
|
145
|
-
}),
|
|
146
|
-
items: [{
|
|
147
|
-
id: "not-duplicate",
|
|
148
|
-
label: O.notDuplicateAction,
|
|
149
|
-
icon: b,
|
|
150
|
-
disabled: P.isPending,
|
|
151
|
-
onSelect: () => B({
|
|
152
|
-
payable: e,
|
|
153
|
-
originalPayableId: i ? void 0 : o
|
|
154
|
-
})
|
|
155
|
-
}, ...m ? [{
|
|
156
|
-
id: "cancel-duplicate",
|
|
157
|
-
label: K[m].action,
|
|
158
|
-
icon: m === "delete" ? x : y,
|
|
159
|
-
disabled: P.isPending,
|
|
160
|
-
onSelect: () => R({
|
|
161
|
-
payable: e,
|
|
162
|
-
removeBy: m
|
|
163
|
-
})
|
|
164
|
-
}] : []]
|
|
165
|
-
} : void 0
|
|
166
|
-
};
|
|
21
|
+
function h({ labels: h, onEnqueueFiles: g, openPayableId: _, onOpenPayableHandled: v, vendorIntent: y, onVendorIntentHandled: b, poweredByBankName: x, onSettingsClick: S }) {
|
|
22
|
+
let C = d(null), [w, T] = f(), [E, D] = f(), [O, k] = f(!1), [A, j] = f(), [M, N] = f(!1), [P, F] = f(!1), [I, L] = f(null), R = !I || {
|
|
23
|
+
create: O,
|
|
24
|
+
details: M,
|
|
25
|
+
view: P
|
|
26
|
+
}[I.surface];
|
|
27
|
+
l(() => {
|
|
28
|
+
R || L(null);
|
|
29
|
+
}, [R]);
|
|
30
|
+
let z = u(() => {
|
|
31
|
+
let e = (e) => (t) => /* @__PURE__ */ p(s, {
|
|
32
|
+
...t,
|
|
33
|
+
poweredByBankName: x,
|
|
34
|
+
openFlow: I?.surface === e ? I.flow : null,
|
|
35
|
+
onOpenFlowChange: (t) => L(t ? {
|
|
36
|
+
surface: e,
|
|
37
|
+
flow: t
|
|
38
|
+
} : null)
|
|
167
39
|
});
|
|
40
|
+
return {
|
|
41
|
+
create: e("create"),
|
|
42
|
+
details: e("details"),
|
|
43
|
+
view: e("view")
|
|
44
|
+
};
|
|
45
|
+
}, [I, x]), { initResponse: B } = n(), V = !B || e(B.scopes, [t.PayableWriteOrg]), H = c((e, t) => {
|
|
46
|
+
if (t && V) {
|
|
47
|
+
T(e), D(void 0), k(!0);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
j(e), F(!0);
|
|
51
|
+
}, [V]), U = (e, t) => {
|
|
52
|
+
k(!1), F(!1), H(e, t);
|
|
53
|
+
}, W = () => {
|
|
54
|
+
N(!1), F(!0);
|
|
55
|
+
}, G = () => {
|
|
56
|
+
F(!1), N(!0);
|
|
57
|
+
}, K = () => {
|
|
58
|
+
N(!1), F(!1), T(A), D(void 0), k(!0);
|
|
59
|
+
}, q = c((e) => {
|
|
60
|
+
T(void 0), D(e), k(!0);
|
|
61
|
+
}, []);
|
|
62
|
+
return l(() => {
|
|
63
|
+
_ && (T(_), D(void 0), k(!0), v?.());
|
|
64
|
+
}, [v, _]), l(() => {
|
|
65
|
+
y && (y.action === "createBill" ? V && q(y.vendorId) : C.current?.showVendorBills({
|
|
66
|
+
id: y.vendorId,
|
|
67
|
+
name: y.vendorName
|
|
68
|
+
}), b?.());
|
|
168
69
|
}, [
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
onConfirm: () => void Y(),
|
|
217
|
-
onCancel: () => B(void 0),
|
|
218
|
-
isPending: P.isPending,
|
|
219
|
-
cancelButtonLabel: O.notDuplicateConfirmBackButton
|
|
220
|
-
},
|
|
221
|
-
isBusy: P.isPending,
|
|
222
|
-
rows: Q,
|
|
223
|
-
collapsedRowCount: S,
|
|
224
|
-
showMoreLabel: Q.length > S ? O.showMoreRows(Q.length - S) : void 0
|
|
225
|
-
};
|
|
70
|
+
V,
|
|
71
|
+
b,
|
|
72
|
+
q,
|
|
73
|
+
y
|
|
74
|
+
]), /* @__PURE__ */ m("div", {
|
|
75
|
+
"data-testid": r.root,
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ p(o, {
|
|
78
|
+
ref: C,
|
|
79
|
+
labels: h,
|
|
80
|
+
onOpenBill: H,
|
|
81
|
+
onEnterManually: () => q(),
|
|
82
|
+
onFilesSelected: g,
|
|
83
|
+
maxFiles: 10,
|
|
84
|
+
onSettingsClick: S
|
|
85
|
+
}),
|
|
86
|
+
O ? /* @__PURE__ */ p(i, {
|
|
87
|
+
open: O,
|
|
88
|
+
onOpenChange: k,
|
|
89
|
+
payableId: w,
|
|
90
|
+
initialCounterpartId: E,
|
|
91
|
+
onOpenBill: U,
|
|
92
|
+
renderPaymentFlows: z.create
|
|
93
|
+
}, w) : null,
|
|
94
|
+
M ? /* @__PURE__ */ p(a, {
|
|
95
|
+
open: M,
|
|
96
|
+
onOpenChange: N,
|
|
97
|
+
payableId: A,
|
|
98
|
+
onClose: () => N(!1),
|
|
99
|
+
onExpand: W,
|
|
100
|
+
onEdit: K,
|
|
101
|
+
testId: r.detailsSheet,
|
|
102
|
+
renderPaymentFlows: z.details
|
|
103
|
+
}) : null,
|
|
104
|
+
P ? /* @__PURE__ */ p(i, {
|
|
105
|
+
open: P,
|
|
106
|
+
onOpenChange: F,
|
|
107
|
+
payableId: A,
|
|
108
|
+
readOnly: !0,
|
|
109
|
+
onCollapse: G,
|
|
110
|
+
onEdit: K,
|
|
111
|
+
onOpenBill: U,
|
|
112
|
+
renderPaymentFlows: z.view
|
|
113
|
+
}, A) : null
|
|
114
|
+
]
|
|
115
|
+
});
|
|
226
116
|
}
|
|
227
117
|
//#endregion
|
|
228
|
-
export {
|
|
118
|
+
export { h as BillsTab, h as default };
|
|
@@ -1,87 +1,7 @@
|
|
|
1
|
-
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
2
|
-
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
-
import "../../../shared/data-access/dist/index.js";
|
|
4
|
-
import { isEditablePayableStatus as n } from "../../util/dist/lib/isEditablePayableStatus.js";
|
|
5
|
-
import { BanIcon as r, CalendarXIcon as i, RotateCcwIcon as a, ThumbsDownIcon as o, ThumbsUpIcon as s } from "lucide-react";
|
|
6
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let s = e(r, [t.PayableApproveOrg]);
|
|
12
|
-
return !!(n === "approve_in_progress" && s);
|
|
13
|
-
}
|
|
14
|
-
function u({ status: u, scopes: d, canDecideApprovalRequest: f, hasScheduledPayment: p, scheduledPaymentIntentId: m, arePendingApproversUnknown: h, hasApprovalPolicy: g, hasWaitingRequest: _, isPayabilityUnknown: v, canEdit: y, labels: b }) {
|
|
15
|
-
let x = e(d, [t.PayablePayOrg]), S = e(d, [t.BankAccountReadOrg]), C = c(d), w = e(d, [t.PaymentRailAch]), T = e(d, [t.PayableWriteOrg]), E = x, D = [];
|
|
16
|
-
if (y && n(u) && T && D.push({
|
|
17
|
-
id: "edit",
|
|
18
|
-
label: b.edit,
|
|
19
|
-
variant: "default",
|
|
20
|
-
surface: "row"
|
|
21
|
-
}), u === "approve_in_progress" && f && (D.push({
|
|
22
|
-
id: "approve",
|
|
23
|
-
label: b.approve,
|
|
24
|
-
variant: "default",
|
|
25
|
-
surface: "row"
|
|
26
|
-
}), D.push({
|
|
27
|
-
id: "reject",
|
|
28
|
-
label: b.reject,
|
|
29
|
-
variant: "ghost",
|
|
30
|
-
surface: "row"
|
|
31
|
-
})), l({
|
|
32
|
-
status: u,
|
|
33
|
-
scopes: d,
|
|
34
|
-
arePendingApproversUnknown: h,
|
|
35
|
-
hasApprovalPolicy: g,
|
|
36
|
-
hasWaitingRequest: _
|
|
37
|
-
})) {
|
|
38
|
-
let e = g === !1 ? void 0 : b.policyOverridesHeading;
|
|
39
|
-
D.push({
|
|
40
|
-
id: "forceApprove",
|
|
41
|
-
label: b.forceApprove,
|
|
42
|
-
variant: "ghost",
|
|
43
|
-
surface: "menu",
|
|
44
|
-
icon: s,
|
|
45
|
-
sectionHeading: e
|
|
46
|
-
}), D.push({
|
|
47
|
-
id: "forceReject",
|
|
48
|
-
label: b.forceReject,
|
|
49
|
-
variant: "ghost",
|
|
50
|
-
surface: "menu",
|
|
51
|
-
icon: o,
|
|
52
|
-
sectionHeading: e
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
let O = u === "waiting_to_be_paid" && x && !p, k = u === "waiting_to_be_paid" && x && S && C && w && !p && !v;
|
|
56
|
-
return O && D.push({
|
|
57
|
-
id: "markAsPaid",
|
|
58
|
-
label: b.markAsPaid,
|
|
59
|
-
variant: "outline",
|
|
60
|
-
surface: "row"
|
|
61
|
-
}), k && D.push({
|
|
62
|
-
id: "payBill",
|
|
63
|
-
label: b.payBill,
|
|
64
|
-
variant: "default",
|
|
65
|
-
surface: "row"
|
|
66
|
-
}), u === "new" && T && D.push({
|
|
67
|
-
id: "cancel",
|
|
68
|
-
label: b.cancel,
|
|
69
|
-
variant: "ghost",
|
|
70
|
-
surface: "menu",
|
|
71
|
-
icon: r
|
|
72
|
-
}), (u === "rejected" || u === "waiting_to_be_paid" && !p) && T && D.push({
|
|
73
|
-
id: "reopen",
|
|
74
|
-
label: b.reopen,
|
|
75
|
-
variant: "ghost",
|
|
76
|
-
surface: "menu",
|
|
77
|
-
icon: a
|
|
78
|
-
}), u === "waiting_to_be_paid" && p && m && E && D.push({
|
|
79
|
-
id: "cancelScheduledPayment",
|
|
80
|
-
label: b.cancelScheduledPayment,
|
|
81
|
-
variant: "ghost",
|
|
82
|
-
surface: "menu",
|
|
83
|
-
icon: i
|
|
84
|
-
}), D;
|
|
85
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
bills: "Bills",
|
|
4
|
+
vendors: "Vendors"
|
|
5
|
+
};
|
|
86
6
|
//#endregion
|
|
87
|
-
export {
|
|
7
|
+
export { e as DEFAULT_TABS_LABELS };
|