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