@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
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
7
|
+
import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
|
+
import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
+
import "../../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useLocalCalendarDay as i } from "../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
|
|
11
|
+
import "../../../../shared/feature/dist/index.js";
|
|
12
|
+
import { derivePayableStatus as a } from "../../../util/dist/lib/derivePayableStatus.js";
|
|
13
|
+
import { DuplicateVerdict as o } from "../../../util/dist/lib/duplicateVerdict.js";
|
|
14
|
+
import { formatScheduledDateLabel as s } from "../../../util/dist/lib/formatScheduledDateLabel.js";
|
|
15
|
+
import { hasSuspectedPayableDuplicate as c, suspectedPayableDuplicates as l } from "../../../util/dist/lib/payableDuplicates.js";
|
|
16
|
+
import { compareByArrival as u, duplicateVerdictMatches as d, resolveDuplicateOriginalId as f } from "../../../util/dist/lib/groupDuplicates.js";
|
|
17
|
+
import { isEditablePayableStatus as ee } from "../../../util/dist/lib/isEditablePayableStatus.js";
|
|
18
|
+
import { payableRemoval as te } from "../../../util/dist/lib/payableRemoval.js";
|
|
19
|
+
import { resolveVendorName as ne } from "../../../util/dist/lib/resolveVendor.js";
|
|
20
|
+
import { useApplyDuplicateVerdictsMutation as p } from "../../../data-access/dist/lib/useApplyDuplicateVerdictsMutation.js";
|
|
21
|
+
import "../../../data-access/dist/index.js";
|
|
22
|
+
import { BillColumn as m } from "../../ui/dist/index19.js";
|
|
23
|
+
import "../../ui/dist/index.js";
|
|
24
|
+
import { BillQueue as h, DEFAULT_BILL_QUEUE as g, billQueueColumns as _, billQueueHasScheduledPayment as re, billQueueOffersAddPanel as ie, billQueueStatuses as ae, billSortColumnId as oe, billSortField as se } from "./index4.js";
|
|
25
|
+
import { duplicateRemovalPrompt as ce } from "./index10.js";
|
|
26
|
+
import { useBillsFilters as le } from "./index14.js";
|
|
27
|
+
import { BillVendorLookup as ue, useBillVendorNames as de } from "./index15.js";
|
|
28
|
+
import { useFirstPayablesPagesQuery as fe } from "../../data-access/dist/index2.js";
|
|
29
|
+
import { usePayablesQuery as pe } from "../../data-access/dist/index4.js";
|
|
30
|
+
import { usePayablesTotalCountQuery as me } from "../../data-access/dist/index5.js";
|
|
31
|
+
import "../../data-access/dist/index.js";
|
|
32
|
+
import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
|
|
33
|
+
import { BanIcon as he, FileCheckIcon as ge, Trash2Icon as _e } from "lucide-react";
|
|
34
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js
|
|
35
|
+
var ve = 10, S = 100, ye = 3, be = [{
|
|
36
|
+
id: "addedOnLabel",
|
|
37
|
+
desc: !0
|
|
38
|
+
}], C = {
|
|
39
|
+
AllBills: "allBills",
|
|
40
|
+
PossibleDuplicates: "possibleDuplicates"
|
|
41
|
+
};
|
|
42
|
+
function xe(e, t) {
|
|
43
|
+
let n = new Map(e.map((e) => [e.id, e])), r = /* @__PURE__ */ new Map(), i = (e) => {
|
|
44
|
+
r.has(e) || r.set(e, /* @__PURE__ */ new Set());
|
|
45
|
+
}, a = (e, t) => {
|
|
46
|
+
i(e), i(t), r.get(e)?.add(t), r.get(t)?.add(e);
|
|
47
|
+
};
|
|
48
|
+
for (let t of e) {
|
|
49
|
+
let e = l(t);
|
|
50
|
+
if (e.length !== 0) {
|
|
51
|
+
i(t.id);
|
|
52
|
+
for (let n of e) a(t.id, n.matched_payable_id);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
|
|
56
|
+
for (let e of r.keys()) {
|
|
57
|
+
if (s.has(e)) continue;
|
|
58
|
+
let i = [], a = [e];
|
|
59
|
+
for (s.add(e); a.length > 0;) {
|
|
60
|
+
let e = a.pop();
|
|
61
|
+
n.has(e) && i.push(e);
|
|
62
|
+
for (let t of r.get(e) ?? []) s.has(t) || (s.add(t), a.push(t));
|
|
63
|
+
}
|
|
64
|
+
if (i.length === 0) continue;
|
|
65
|
+
let c = i.map((e) => n.get(e)).filter((e) => !!e).sort(u), l = f(c), [d] = c, ee = {
|
|
66
|
+
key: `duplicate-group:${[...i].sort().join(":")}`,
|
|
67
|
+
headerLabel: t.groupHeader({
|
|
68
|
+
vendorLabel: ne(d),
|
|
69
|
+
invoiceNumberLabel: d?.document_id ?? ""
|
|
70
|
+
}),
|
|
71
|
+
memberCount: i.length,
|
|
72
|
+
originalPayableId: l
|
|
73
|
+
};
|
|
74
|
+
for (let e of i) o.set(e, ee);
|
|
75
|
+
}
|
|
76
|
+
return o;
|
|
77
|
+
}
|
|
78
|
+
function w({ enabled: l = !0, canReadVendors: u = !0, isVendorFilterPaused: f = !1, filterLabels: ue, onOpenBill: w, duplicateRowNote: we, attachmentLabel: Te, duplicateGroupLabels: T, canManageDuplicates: Ee = !1, duplicateView: E = C.AllBills, scheduledRelativeDayLabels: De }) {
|
|
79
|
+
let Oe = i(), [D, ke] = x(g), [Ae, je] = x(be), [O, Me] = x(ve), [Ne, k] = x(), [Pe, A] = x(0), [j, M] = x(""), [N, Fe] = x(""), [P, F] = x(), [I, L] = x(), R = v(() => {
|
|
80
|
+
k(void 0), A(0);
|
|
81
|
+
}, []);
|
|
82
|
+
y(() => {
|
|
83
|
+
if (j === N) return;
|
|
84
|
+
let e = setTimeout(() => {
|
|
85
|
+
Fe(j), R();
|
|
86
|
+
}, 300);
|
|
87
|
+
return () => clearTimeout(e);
|
|
88
|
+
}, [
|
|
89
|
+
j,
|
|
90
|
+
N,
|
|
91
|
+
R
|
|
92
|
+
]), y(() => {
|
|
93
|
+
R();
|
|
94
|
+
}, [E, R]);
|
|
95
|
+
let z = le({
|
|
96
|
+
offersStatusFilter: D === h.All,
|
|
97
|
+
offersVendorFilter: u,
|
|
98
|
+
isVendorFilterPaused: f,
|
|
99
|
+
labels: ue,
|
|
100
|
+
onFiltersChange: R
|
|
101
|
+
}), { clearAll: Ie, filterByVendor: Le } = z, Re = Ae[0], B = se(Re?.id), ze = B ? Re?.desc ? "desc" : "asc" : void 0, V = E === C.PossibleDuplicates, H = V ? h.All : D, U = b(() => ({
|
|
102
|
+
...z.query,
|
|
103
|
+
limit: V ? S : O,
|
|
104
|
+
pagination_token: V ? void 0 : Ne,
|
|
105
|
+
status__in: V ? void 0 : ae(H) ?? z.query.status__in,
|
|
106
|
+
has_scheduled_payment: V ? void 0 : re(H),
|
|
107
|
+
duplicate_match_status: V ? "suspected" : void 0,
|
|
108
|
+
counterpart_name__icontains: N || void 0,
|
|
109
|
+
sort: B,
|
|
110
|
+
order: ze
|
|
111
|
+
}), [
|
|
112
|
+
z.query,
|
|
113
|
+
O,
|
|
114
|
+
Ne,
|
|
115
|
+
V,
|
|
116
|
+
H,
|
|
117
|
+
N,
|
|
118
|
+
B,
|
|
119
|
+
ze
|
|
120
|
+
]), { organizationId: Be } = r(), W = JSON.stringify([Be, U]), G = pe({
|
|
121
|
+
...U,
|
|
122
|
+
enabled: l && !V,
|
|
123
|
+
pollWhileOcrProcessing: !0
|
|
124
|
+
}), K = fe({
|
|
125
|
+
...U,
|
|
126
|
+
enabled: l && V,
|
|
127
|
+
maxPages: ye
|
|
128
|
+
}), q = V ? {
|
|
129
|
+
...K,
|
|
130
|
+
data: { data: K.payables },
|
|
131
|
+
isLoading: K.isResolving,
|
|
132
|
+
isFetching: K.isFetching || K.isResolving
|
|
133
|
+
} : G, J = (q.data?.data ?? []).filter((e) => e.ocr_status !== "processing"), Y = p(), X = v(async (t, n, r, i) => {
|
|
134
|
+
let a = d(t, n, i);
|
|
135
|
+
if (a.length) try {
|
|
136
|
+
await Y.mutateAsync({
|
|
137
|
+
verdict: n,
|
|
138
|
+
targets: a.map((e) => ({
|
|
139
|
+
payableId: t.id,
|
|
140
|
+
duplicateId: e.id,
|
|
141
|
+
matchedPayableId: e.matched_payable_id,
|
|
142
|
+
removeBy: te(t.status)
|
|
143
|
+
}))
|
|
144
|
+
}), e.success(r);
|
|
145
|
+
} catch {
|
|
146
|
+
e.error(T.actionFailedToast);
|
|
147
|
+
}
|
|
148
|
+
}, [Y, T.actionFailedToast]), Z = b(() => ({
|
|
149
|
+
delete: {
|
|
150
|
+
action: T.deleteAction,
|
|
151
|
+
title: T.deleteConfirmTitle,
|
|
152
|
+
description: T.deleteConfirmDescription,
|
|
153
|
+
confirmButton: T.deleteConfirmButton,
|
|
154
|
+
backButton: T.cancelConfirmBackButton,
|
|
155
|
+
toast: T.deletedToast
|
|
156
|
+
},
|
|
157
|
+
cancel: {
|
|
158
|
+
action: T.cancelAction,
|
|
159
|
+
title: T.cancelConfirmTitle,
|
|
160
|
+
description: T.cancelConfirmDescription,
|
|
161
|
+
confirmButton: T.cancelConfirmButton,
|
|
162
|
+
backButton: T.cancelConfirmBackButton,
|
|
163
|
+
toast: T.cancelledToast
|
|
164
|
+
},
|
|
165
|
+
confirm: {
|
|
166
|
+
action: T.confirmAction,
|
|
167
|
+
title: T.confirmDuplicateTitle,
|
|
168
|
+
description: T.confirmDuplicateDescription,
|
|
169
|
+
confirmButton: T.confirmDuplicateButton,
|
|
170
|
+
backButton: T.cancelConfirmBackButton,
|
|
171
|
+
toast: T.confirmedToast
|
|
172
|
+
}
|
|
173
|
+
}), [T]), Ve = P?.removeBy ?? "cancel", He = v(async () => {
|
|
174
|
+
P && (await X(P.payable, o.Remove, Z[P.removeBy].toast), F(void 0));
|
|
175
|
+
}, [
|
|
176
|
+
X,
|
|
177
|
+
P,
|
|
178
|
+
Z
|
|
179
|
+
]), Ue = v(async () => {
|
|
180
|
+
I && (await X(I.payable, o.Keep, T.dismissedToast, I.originalPayableId), L(void 0));
|
|
181
|
+
}, [
|
|
182
|
+
X,
|
|
183
|
+
T.dismissedToast,
|
|
184
|
+
I
|
|
185
|
+
]), [We, Ge] = x(W);
|
|
186
|
+
y(() => {
|
|
187
|
+
q.isFetching || Ge(W);
|
|
188
|
+
}, [q.isFetching, W]);
|
|
189
|
+
let Ke = q.data?.data.length, qe = Ke === 0, Je = me({ enabled: l && qe }), Ye = !qe || (Je.data?.count ?? 1) > 0, Q = b(() => E === C.PossibleDuplicates ? xe(J, T) : /* @__PURE__ */ new Map(), [
|
|
190
|
+
E,
|
|
191
|
+
J,
|
|
192
|
+
T
|
|
193
|
+
]), Xe = b(() => {
|
|
194
|
+
if (Q.size === 0) return J;
|
|
195
|
+
let e = /* @__PURE__ */ new Map();
|
|
196
|
+
return J.forEach((t, n) => {
|
|
197
|
+
let r = Q.get(t.id)?.key;
|
|
198
|
+
r !== void 0 && !e.has(r) && e.set(r, n);
|
|
199
|
+
}), J.map((t, n) => ({
|
|
200
|
+
payable: t,
|
|
201
|
+
order: e.get(Q.get(t.id)?.key ?? "") ?? n
|
|
202
|
+
})).sort((e, t) => e.order - t.order).map(({ payable: e }) => e);
|
|
203
|
+
}, [J, Q]), { vendorNames: Ze, lookup: Qe } = de({
|
|
204
|
+
payables: q.data?.data,
|
|
205
|
+
enabled: l,
|
|
206
|
+
canReadVendors: u,
|
|
207
|
+
isPaused: f
|
|
208
|
+
}), $e = b(() => Xe.map((e) => {
|
|
209
|
+
let r = a({
|
|
210
|
+
apiStatus: e.status,
|
|
211
|
+
dueDate: e.due_date,
|
|
212
|
+
scheduledPaymentDate: e.scheduled_payment_date
|
|
213
|
+
}), i = e.amount_due ?? e.total_amount, o = e.status === "partially_paid" || e.status === "paid", l = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), u = s(e.scheduled_payment_date, De, Oe), d = Q.get(e.id), f = c(e), p = ne(e) || (e.counterpart_id ? Ze.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = te(e.status), _ = d?.originalPayableId !== void 0 && d.originalPayableId === e.id, re = V && f && Ee && d ? {
|
|
214
|
+
triggerLabel: T.menuTrigger({
|
|
215
|
+
vendorLabel: p,
|
|
216
|
+
invoiceNumberLabel: m
|
|
217
|
+
}),
|
|
218
|
+
items: [{
|
|
219
|
+
id: "not-duplicate",
|
|
220
|
+
label: T.notDuplicateAction,
|
|
221
|
+
icon: ge,
|
|
222
|
+
disabled: Y.isPending,
|
|
223
|
+
onSelect: () => L({
|
|
224
|
+
payable: e,
|
|
225
|
+
originalPayableId: _ ? void 0 : d.originalPayableId
|
|
226
|
+
})
|
|
227
|
+
}, ...g ? [{
|
|
228
|
+
id: "cancel-duplicate",
|
|
229
|
+
label: Z[g].action,
|
|
230
|
+
icon: g === "delete" ? _e : he,
|
|
231
|
+
disabled: Y.isPending,
|
|
232
|
+
onSelect: () => F({
|
|
233
|
+
payable: e,
|
|
234
|
+
removeBy: g
|
|
235
|
+
})
|
|
236
|
+
}] : []]
|
|
237
|
+
} : void 0;
|
|
238
|
+
return {
|
|
239
|
+
rowKey: e.id,
|
|
240
|
+
vendorLabel: p,
|
|
241
|
+
vendorLookup: p || !e.counterpart_id ? void 0 : Ce(Qe),
|
|
242
|
+
invoiceNumberLabel: m,
|
|
243
|
+
issueDateLabel: t(e.issued_at),
|
|
244
|
+
dueDateLabel: t(e.due_date),
|
|
245
|
+
dueDateTone: r.isOverdue ? "danger" : "default",
|
|
246
|
+
scheduledDateLabel: u.label,
|
|
247
|
+
scheduledDateExact: u.absoluteLabel,
|
|
248
|
+
scheduledDateIsGap: H === h.Scheduled,
|
|
249
|
+
paidDateLabel: t(e.paid_at?.slice(0, 10)),
|
|
250
|
+
amountDueLabel: l(i),
|
|
251
|
+
amountPaidLabel: o ? l(e.amount_paid) : "",
|
|
252
|
+
amountPaidIsGap: H === h.Paid,
|
|
253
|
+
amountScheduledLabel: l(e.amount_to_pay ?? i),
|
|
254
|
+
totalAmountLabel: l(e.total_amount),
|
|
255
|
+
attachment: e.file_id ? { label: Te } : void 0,
|
|
256
|
+
status: r.status,
|
|
257
|
+
statusTone: r.tone,
|
|
258
|
+
addedOnLabel: t(e.created_at?.slice(0, 10)),
|
|
259
|
+
...d ? {
|
|
260
|
+
group: {
|
|
261
|
+
key: d.key,
|
|
262
|
+
headerLabel: d.headerLabel,
|
|
263
|
+
memberCount: d.memberCount
|
|
264
|
+
},
|
|
265
|
+
groupedRowLabel: p,
|
|
266
|
+
groupedRowLabelTone: void 0,
|
|
267
|
+
groupedRowBadge: _ ? T.originalBill : void 0
|
|
268
|
+
} : {},
|
|
269
|
+
...re ? { menu: re } : {},
|
|
270
|
+
...!V && !d && f ? {
|
|
271
|
+
rowTone: "warning",
|
|
272
|
+
rowNote: we
|
|
273
|
+
} : {},
|
|
274
|
+
onOpen: () => w(e.id, ee(e.status))
|
|
275
|
+
};
|
|
276
|
+
}), [
|
|
277
|
+
Xe,
|
|
278
|
+
Q,
|
|
279
|
+
T,
|
|
280
|
+
Z,
|
|
281
|
+
Y.isPending,
|
|
282
|
+
Ee,
|
|
283
|
+
V,
|
|
284
|
+
we,
|
|
285
|
+
Te,
|
|
286
|
+
De,
|
|
287
|
+
Oe,
|
|
288
|
+
w,
|
|
289
|
+
H,
|
|
290
|
+
Ze,
|
|
291
|
+
Qe
|
|
292
|
+
]), et = b(() => V ? Se($e, S) : [], [$e, V]), $ = Math.min(Pe, Math.max(0, et.length - 1)), tt = V ? et[$] ?? [] : $e, nt = v((e) => {
|
|
293
|
+
let t = e;
|
|
294
|
+
ke(t), je((e) => {
|
|
295
|
+
let n = e[0]?.id;
|
|
296
|
+
return n ? _(t).some((e) => oe(e) === n) ? e : be : e;
|
|
297
|
+
}), R();
|
|
298
|
+
}, [R]), rt = v((e) => {
|
|
299
|
+
nt(h.All), M(""), Le(e);
|
|
300
|
+
}, [Le, nt]), it = v(() => {
|
|
301
|
+
M(""), Fe(""), Ie(), R();
|
|
302
|
+
}, [Ie, R]), at = v((e) => {
|
|
303
|
+
je((t) => typeof e == "function" ? e(t) : e), R();
|
|
304
|
+
}, [R]), ot = v((e) => {
|
|
305
|
+
Me(e), R();
|
|
306
|
+
}, [R]), st = v(() => {
|
|
307
|
+
if (V) {
|
|
308
|
+
A($ + 1);
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
k(G.data?.next_pagination_token ?? void 0);
|
|
312
|
+
}, [
|
|
313
|
+
$,
|
|
314
|
+
V,
|
|
315
|
+
G.data?.next_pagination_token
|
|
316
|
+
]), ct = v(() => {
|
|
317
|
+
if (V) {
|
|
318
|
+
A(Math.max(0, $ - 1));
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
k(G.data?.prev_pagination_token ?? void 0);
|
|
322
|
+
}, [
|
|
323
|
+
$,
|
|
324
|
+
V,
|
|
325
|
+
G.data?.prev_pagination_token
|
|
326
|
+
]), lt = v(() => {
|
|
327
|
+
q.refetch();
|
|
328
|
+
}, [q.refetch]);
|
|
329
|
+
return {
|
|
330
|
+
rows: tt,
|
|
331
|
+
isLoading: q.isLoading || W !== We || qe && Je.isLoading || (Ke ?? 0) > 0 && tt.length === 0,
|
|
332
|
+
isError: q.isError,
|
|
333
|
+
onRetry: lt,
|
|
334
|
+
selectedFilterTabId: D,
|
|
335
|
+
onFilterTabChange: nt,
|
|
336
|
+
showVendorBills: rt,
|
|
337
|
+
clearQueryConstraints: it,
|
|
338
|
+
searchValue: j,
|
|
339
|
+
onSearchChange: M,
|
|
340
|
+
hasAnyBills: Ye,
|
|
341
|
+
isSearchActive: N.length > 0 || z.isFilterActive || V,
|
|
342
|
+
filterBarProps: z.filterBarProps,
|
|
343
|
+
visibleColumns: V ? [
|
|
344
|
+
m.Vendor,
|
|
345
|
+
m.AmountDue,
|
|
346
|
+
m.DueDate,
|
|
347
|
+
m.AddedOn,
|
|
348
|
+
m.Status
|
|
349
|
+
] : _(D),
|
|
350
|
+
showAddPanelWhenEmpty: !V && ie(D),
|
|
351
|
+
sorting: Ae,
|
|
352
|
+
onSortingChange: at,
|
|
353
|
+
pageSize: V ? S : O,
|
|
354
|
+
pageSizeOptions: V ? [S] : void 0,
|
|
355
|
+
onPageSizeChange: ot,
|
|
356
|
+
hasNextPage: V ? $ < et.length - 1 : !!G.data?.next_pagination_token,
|
|
357
|
+
hasPrevPage: V ? $ > 0 : !!G.data?.prev_pagination_token,
|
|
358
|
+
onNextPage: st,
|
|
359
|
+
onPrevPage: ct,
|
|
360
|
+
cancelConfirmation: {
|
|
361
|
+
open: !!P,
|
|
362
|
+
copy: ce(Z[Ve], Ve),
|
|
363
|
+
onConfirm: () => void He(),
|
|
364
|
+
onCancel: () => F(void 0),
|
|
365
|
+
isPending: Y.isPending,
|
|
366
|
+
cancelButtonLabel: Z[Ve].backButton
|
|
367
|
+
},
|
|
368
|
+
keepConfirmation: {
|
|
369
|
+
open: !!I,
|
|
370
|
+
copy: {
|
|
371
|
+
title: T.notDuplicateConfirmTitle,
|
|
372
|
+
description: T.notDuplicateConfirmDescription,
|
|
373
|
+
confirmButton: T.notDuplicateConfirmButton,
|
|
374
|
+
presentation: {
|
|
375
|
+
alignment: "center",
|
|
376
|
+
icon: ge,
|
|
377
|
+
actionWidth: "equal"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
onConfirm: () => void Ue(),
|
|
381
|
+
onCancel: () => L(void 0),
|
|
382
|
+
isPending: Y.isPending,
|
|
383
|
+
cancelButtonLabel: T.notDuplicateConfirmBackButton
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
function Se(e, t) {
|
|
388
|
+
let n = [], r = [];
|
|
389
|
+
return e.forEach((i, a) => {
|
|
390
|
+
let o = i.group !== void 0 && i.group.key === e[a - 1]?.group?.key;
|
|
391
|
+
r.length >= t && !o && (n.push(r), r = []), r.push(i);
|
|
392
|
+
}), r.length && n.push(r), n;
|
|
393
|
+
}
|
|
394
|
+
function Ce(e) {
|
|
395
|
+
return e === ue.Settled ? void 0 : e;
|
|
396
|
+
}
|
|
397
|
+
//#endregion
|
|
398
|
+
export { C as BillDuplicateView, w as useBillsTable };
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { useMailboxAddress as n } from "../../../../shared/data-access/dist/lib/useMailboxAddress.js";
|
|
8
|
+
import { Scope as r } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import "../../../../shared/ui/dist/index.js";
|
|
11
|
+
import { useWidgetConfig as i, useWidgetInitStaleForToken as a } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
|
+
import "../../../../shared/feature/dist/index.js";
|
|
13
|
+
import { BillDecisionDialog as o } from "../../../ui/dist/index4.js";
|
|
14
|
+
import "../../../ui/dist/index.js";
|
|
15
|
+
import { AddBillDialog as s } from "../../ui/dist/index6.js";
|
|
16
|
+
import { BillsScreen as c } from "../../ui/dist/index20.js";
|
|
17
|
+
import "../../ui/dist/index.js";
|
|
18
|
+
import { BILL_QUEUE_ORDER as l } from "./index4.js";
|
|
19
|
+
import { BILLS_TAB_LABELS_EN as u } from "./index7.js";
|
|
20
|
+
import { BillDuplicateView as d, useBillsTable as f } from "./index16.js";
|
|
21
|
+
import { useDuplicateBillsCount as ee } from "./index2.js";
|
|
22
|
+
import { formatBillQueueBadge as p } from "./index3.js";
|
|
23
|
+
import { copyTextToClipboard as m } from "./index5.js";
|
|
24
|
+
import { resolveDuplicateWarning as h } from "./index6.js";
|
|
25
|
+
import { billsTableCellTestIds as g } from "./index8.js";
|
|
26
|
+
import { useBillQueueCounts as _ } from "./index9.js";
|
|
27
|
+
import { useEffect as v, useImperativeHandle as y, useMemo as b, useState as x } from "react";
|
|
28
|
+
import { Fragment as S, jsx as C, jsxs as te } from "react/jsx-runtime";
|
|
29
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js
|
|
30
|
+
var ne = () => void 0;
|
|
31
|
+
function w({ labels: w, onOpenBill: re, onEnterManually: T, onFilesSelected: E, maxFiles: D, onSettingsClick: O, ref: k }) {
|
|
32
|
+
let A = b(() => ({
|
|
33
|
+
...u,
|
|
34
|
+
...w,
|
|
35
|
+
queues: {
|
|
36
|
+
...u.queues,
|
|
37
|
+
...w?.queues
|
|
38
|
+
},
|
|
39
|
+
scheduledRelativeDay: {
|
|
40
|
+
...u.scheduledRelativeDay,
|
|
41
|
+
...w?.scheduledRelativeDay
|
|
42
|
+
},
|
|
43
|
+
filters: {
|
|
44
|
+
...u.filters,
|
|
45
|
+
...w?.filters,
|
|
46
|
+
presets: {
|
|
47
|
+
...u.filters.presets,
|
|
48
|
+
...w?.filters?.presets
|
|
49
|
+
},
|
|
50
|
+
statuses: {
|
|
51
|
+
...u.filters.statuses,
|
|
52
|
+
...w?.filters?.statuses
|
|
53
|
+
},
|
|
54
|
+
dateFieldNames: {
|
|
55
|
+
...u.filters.dateFieldNames,
|
|
56
|
+
...w?.filters?.dateFieldNames
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
filterBar: {
|
|
60
|
+
...u.filterBar,
|
|
61
|
+
...w?.filterBar
|
|
62
|
+
},
|
|
63
|
+
queueEmptyStates: l.reduce((e, t) => ({
|
|
64
|
+
...e,
|
|
65
|
+
[t]: {
|
|
66
|
+
...u.queueEmptyStates[t],
|
|
67
|
+
...w?.queueEmptyStates?.[t]
|
|
68
|
+
}
|
|
69
|
+
}), {})
|
|
70
|
+
}), [w]), [j, M] = x(!1), [N, P] = x(d.AllBills), { initResponse: F } = i(), I = a(), L = t(F?.scopes, [r.PayableReadOrg]), R = t(F?.scopes, [r.PayableWriteOrg]), z = !F || L, B = !F || R, V = t(F?.scopes, [r.CounterpartReadOrg]), H = b(() => ({
|
|
71
|
+
originalBill: A.duplicateOriginalBillLabel,
|
|
72
|
+
menuTrigger: A.duplicateMenuTrigger,
|
|
73
|
+
notDuplicateAction: A.duplicateNotDuplicateAction,
|
|
74
|
+
notDuplicateConfirmTitle: A.duplicateNotDuplicateConfirmTitle,
|
|
75
|
+
notDuplicateConfirmDescription: A.duplicateNotDuplicateConfirmDescription,
|
|
76
|
+
notDuplicateConfirmButton: A.duplicateNotDuplicateConfirmButton,
|
|
77
|
+
notDuplicateConfirmBackButton: A.duplicateNotDuplicateConfirmBackButton,
|
|
78
|
+
deleteAction: A.duplicateDeleteAction,
|
|
79
|
+
deleteConfirmTitle: A.duplicateDeleteConfirmTitle,
|
|
80
|
+
deleteConfirmDescription: A.duplicateDeleteConfirmDescription,
|
|
81
|
+
deleteConfirmButton: A.duplicateDeleteConfirmButton,
|
|
82
|
+
deletedToast: A.duplicateDeletedToast,
|
|
83
|
+
confirmAction: A.duplicateConfirmAction,
|
|
84
|
+
confirmDuplicateTitle: A.duplicateConfirmDuplicateTitle,
|
|
85
|
+
confirmDuplicateDescription: A.duplicateConfirmDuplicateDescription,
|
|
86
|
+
confirmDuplicateButton: A.duplicateConfirmDuplicateButton,
|
|
87
|
+
confirmedToast: A.duplicateConfirmedToast,
|
|
88
|
+
cancelAction: A.duplicateCancelAction,
|
|
89
|
+
cancelConfirmTitle: A.duplicateCancelConfirmTitle,
|
|
90
|
+
cancelConfirmDescription: A.duplicateCancelConfirmDescription,
|
|
91
|
+
cancelConfirmButton: A.duplicateCancelConfirmButton,
|
|
92
|
+
cancelConfirmBackButton: A.duplicateCancelConfirmBackButton,
|
|
93
|
+
dismissedToast: A.duplicateDismissedToast,
|
|
94
|
+
cancelledToast: A.duplicateCancelledToast,
|
|
95
|
+
actionFailedToast: A.duplicateActionFailedToast,
|
|
96
|
+
groupHeader: A.duplicateGroupHeader
|
|
97
|
+
}), [
|
|
98
|
+
A.duplicateOriginalBillLabel,
|
|
99
|
+
A.duplicateMenuTrigger,
|
|
100
|
+
A.duplicateNotDuplicateAction,
|
|
101
|
+
A.duplicateNotDuplicateConfirmTitle,
|
|
102
|
+
A.duplicateNotDuplicateConfirmDescription,
|
|
103
|
+
A.duplicateNotDuplicateConfirmButton,
|
|
104
|
+
A.duplicateNotDuplicateConfirmBackButton,
|
|
105
|
+
A.duplicateDeleteAction,
|
|
106
|
+
A.duplicateDeleteConfirmTitle,
|
|
107
|
+
A.duplicateDeleteConfirmDescription,
|
|
108
|
+
A.duplicateDeleteConfirmButton,
|
|
109
|
+
A.duplicateDeletedToast,
|
|
110
|
+
A.duplicateConfirmAction,
|
|
111
|
+
A.duplicateConfirmDuplicateTitle,
|
|
112
|
+
A.duplicateConfirmDuplicateDescription,
|
|
113
|
+
A.duplicateConfirmDuplicateButton,
|
|
114
|
+
A.duplicateConfirmedToast,
|
|
115
|
+
A.duplicateCancelAction,
|
|
116
|
+
A.duplicateCancelConfirmTitle,
|
|
117
|
+
A.duplicateCancelConfirmDescription,
|
|
118
|
+
A.duplicateCancelConfirmButton,
|
|
119
|
+
A.duplicateCancelConfirmBackButton,
|
|
120
|
+
A.duplicateDismissedToast,
|
|
121
|
+
A.duplicateCancelledToast,
|
|
122
|
+
A.duplicateActionFailedToast,
|
|
123
|
+
A.duplicateGroupHeader
|
|
124
|
+
]), { mailboxAddress: U } = n({ relatedObjectType: "payable" }), W = f({
|
|
125
|
+
enabled: z,
|
|
126
|
+
canReadVendors: V,
|
|
127
|
+
isVendorFilterPaused: I,
|
|
128
|
+
filterLabels: A.filters,
|
|
129
|
+
onOpenBill: re ?? ne,
|
|
130
|
+
duplicateRowNote: A.duplicateRowNote,
|
|
131
|
+
attachmentLabel: A.attachmentIndicator,
|
|
132
|
+
duplicateGroupLabels: H,
|
|
133
|
+
canManageDuplicates: B,
|
|
134
|
+
duplicateView: N,
|
|
135
|
+
scheduledRelativeDayLabels: A.scheduledRelativeDay
|
|
136
|
+
}), G = ee({ enabled: z }), K = h(G, A, N === d.PossibleDuplicates);
|
|
137
|
+
v(() => {
|
|
138
|
+
N === d.PossibleDuplicates && !G.isLoading && (G.isError || G.count === 0) && P(d.AllBills);
|
|
139
|
+
}, [
|
|
140
|
+
N,
|
|
141
|
+
G.count,
|
|
142
|
+
G.isError,
|
|
143
|
+
G.isLoading
|
|
144
|
+
]);
|
|
145
|
+
let q = _({ enabled: z }), J = b(() => l.map((e) => ({
|
|
146
|
+
id: e,
|
|
147
|
+
label: A.queues[e],
|
|
148
|
+
badge: p(q[e])
|
|
149
|
+
})), [A.queues, q]), Y = b(() => ({
|
|
150
|
+
createButton: A.createButton,
|
|
151
|
+
settingsButton: A.settingsButton,
|
|
152
|
+
addBill: { heading: A.nonEmptyHeading }
|
|
153
|
+
}), [
|
|
154
|
+
A.createButton,
|
|
155
|
+
A.settingsButton,
|
|
156
|
+
A.nonEmptyHeading
|
|
157
|
+
]), ie = b(() => ({
|
|
158
|
+
...W.filterBarProps,
|
|
159
|
+
labels: A.filterBar
|
|
160
|
+
}), [W.filterBarProps, A.filterBar]), X = () => {
|
|
161
|
+
M(!1), T?.();
|
|
162
|
+
}, Z = (e) => {
|
|
163
|
+
M(!1), E?.(e);
|
|
164
|
+
}, Q = U ? {
|
|
165
|
+
emailAddress: U,
|
|
166
|
+
onCopyEmail: async () => {
|
|
167
|
+
U && (await m(U) ? e.success(A.emailCopiedToast) : e.error(A.emailCopyFailedToast));
|
|
168
|
+
}
|
|
169
|
+
} : {
|
|
170
|
+
emailAddress: void 0,
|
|
171
|
+
onCopyEmail: void 0
|
|
172
|
+
}, { showVendorBills: $ } = W;
|
|
173
|
+
return y(k, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ te(S, { children: [
|
|
174
|
+
/* @__PURE__ */ C(c, {
|
|
175
|
+
rows: W.rows,
|
|
176
|
+
isLoading: W.isLoading || !F,
|
|
177
|
+
isError: W.isError,
|
|
178
|
+
onRetry: W.onRetry,
|
|
179
|
+
sorting: W.sorting,
|
|
180
|
+
onSortingChange: W.onSortingChange,
|
|
181
|
+
pageSize: W.pageSize,
|
|
182
|
+
onPageSizeChange: W.onPageSizeChange,
|
|
183
|
+
pageSizeOptions: W.pageSizeOptions,
|
|
184
|
+
hasNextPage: W.hasNextPage,
|
|
185
|
+
hasPrevPage: W.hasPrevPage,
|
|
186
|
+
onNextPage: W.onNextPage,
|
|
187
|
+
onPrevPage: W.onPrevPage,
|
|
188
|
+
filterTabs: J,
|
|
189
|
+
selectedFilterTabId: W.selectedFilterTabId,
|
|
190
|
+
onFilterTabChange: W.onFilterTabChange,
|
|
191
|
+
searchValue: W.searchValue,
|
|
192
|
+
onSearchChange: W.onSearchChange,
|
|
193
|
+
filters: ie,
|
|
194
|
+
visibleColumns: W.visibleColumns,
|
|
195
|
+
cellTestIds: g,
|
|
196
|
+
isSearchActive: W.isSearchActive,
|
|
197
|
+
showAddPanelWhenEmpty: W.showAddPanelWhenEmpty,
|
|
198
|
+
emptyState: A.queueEmptyStates[W.selectedFilterTabId],
|
|
199
|
+
onCreateClick: B ? () => M(!0) : void 0,
|
|
200
|
+
onSettingsClick: O,
|
|
201
|
+
onEnterManually: B ? X : void 0,
|
|
202
|
+
onFilesSelected: B ? Z : void 0,
|
|
203
|
+
maxFiles: D,
|
|
204
|
+
...Q,
|
|
205
|
+
duplicateWarning: K,
|
|
206
|
+
duplicateReviewControl: G.isError ? void 0 : {
|
|
207
|
+
isActive: N === d.PossibleDuplicates,
|
|
208
|
+
reviewLabel: A.duplicateReviewButton,
|
|
209
|
+
clearLabel: A.duplicateReviewClearButton,
|
|
210
|
+
activeFilterLabel: A.duplicateFilterChip,
|
|
211
|
+
onReview: () => {
|
|
212
|
+
W.clearQueryConstraints(), P(d.PossibleDuplicates);
|
|
213
|
+
},
|
|
214
|
+
onClear: () => P(d.AllBills)
|
|
215
|
+
},
|
|
216
|
+
labels: Y
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ C(o, {
|
|
219
|
+
open: W.cancelConfirmation.open,
|
|
220
|
+
copy: W.cancelConfirmation.copy,
|
|
221
|
+
onConfirm: W.cancelConfirmation.onConfirm,
|
|
222
|
+
onCancel: W.cancelConfirmation.onCancel,
|
|
223
|
+
isPending: W.cancelConfirmation.isPending,
|
|
224
|
+
labels: { cancelButton: W.cancelConfirmation.cancelButtonLabel }
|
|
225
|
+
}),
|
|
226
|
+
/* @__PURE__ */ C(o, {
|
|
227
|
+
open: W.keepConfirmation.open,
|
|
228
|
+
copy: W.keepConfirmation.copy,
|
|
229
|
+
onConfirm: W.keepConfirmation.onConfirm,
|
|
230
|
+
onCancel: W.keepConfirmation.onCancel,
|
|
231
|
+
isPending: W.keepConfirmation.isPending,
|
|
232
|
+
labels: { cancelButton: W.keepConfirmation.cancelButtonLabel }
|
|
233
|
+
}),
|
|
234
|
+
B ? /* @__PURE__ */ C(s, {
|
|
235
|
+
open: j,
|
|
236
|
+
onOpenChange: M,
|
|
237
|
+
onFilesSelected: Z,
|
|
238
|
+
maxFiles: D,
|
|
239
|
+
onEnterManually: X,
|
|
240
|
+
...Q,
|
|
241
|
+
labels: { heading: W.hasAnyBills ? A.nonEmptyHeading : A.emptyHeading }
|
|
242
|
+
}) : null
|
|
243
|
+
] });
|
|
244
|
+
}
|
|
245
|
+
//#endregion
|
|
246
|
+
export { w as BillsList, w as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BILL_PAY_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js
|
|
3
|
+
var t = `${e}.bills_list`, n = { Mounted: `${t}.mounted` };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as BillsListWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { countSuspectedPayableDuplicateGroups as e } from "
|
|
6
|
-
import { usePayablesQuery as t } from "../../data-access/dist/
|
|
5
|
+
import { countSuspectedPayableDuplicateGroups as e } from "../../../util/dist/lib/payableDuplicates.js";
|
|
6
|
+
import { usePayablesQuery as t } from "../../data-access/dist/index4.js";
|
|
7
7
|
import "../../data-access/dist/index.js";
|
|
8
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index2.js
|
|
9
9
|
function n(e) {
|
|
10
10
|
return e.isError && e.data === void 0;
|
|
11
11
|
}
|