@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,229 @@
|
|
|
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 "../../../../shared/ui/dist/index.js";
|
|
9
|
+
import { derivePayableStatus as r } from "../../../util/dist/lib/derivePayableStatus.js";
|
|
10
|
+
import { DuplicateVerdict as i } from "../../../util/dist/lib/duplicateVerdict.js";
|
|
11
|
+
import { suspectedPayableDuplicates as a } from "../../../util/dist/lib/payableDuplicates.js";
|
|
12
|
+
import { duplicateVerdictMatches as o, groupSuspectedDuplicates as s, resolveDuplicateOriginalId as c } from "../../../util/dist/lib/groupDuplicates.js";
|
|
13
|
+
import { isEditablePayableStatus as l } from "../../../util/dist/lib/isEditablePayableStatus.js";
|
|
14
|
+
import { payableRemoval as u } from "../../../util/dist/lib/payableRemoval.js";
|
|
15
|
+
import { resolveVendorName as d } from "../../../util/dist/lib/resolveVendor.js";
|
|
16
|
+
import { useApplyDuplicateVerdictsMutation as f } from "../../../data-access/dist/lib/useApplyDuplicateVerdictsMutation.js";
|
|
17
|
+
import "../../../data-access/dist/index.js";
|
|
18
|
+
import { usePayablesByIdsQueries as p } from "../../data-access/dist/index22.js";
|
|
19
|
+
import "../../data-access/dist/index.js";
|
|
20
|
+
import { duplicateRemovalPrompt as m } from "./index4.js";
|
|
21
|
+
import { DUPLICATE_BILLS_LABELS_EN as h } from "./index5.js";
|
|
22
|
+
import { useCallback as g, useMemo as _, useState as v } from "react";
|
|
23
|
+
import { BanIcon as y, FileCheckIcon as b, Trash2Icon as x } from "lucide-react";
|
|
24
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js
|
|
25
|
+
var S = 5;
|
|
26
|
+
function C(e, t) {
|
|
27
|
+
return t ? s(e).map(({ members: e }) => e).find((e) => e.some((e) => e.id === t)) ?? [] : [];
|
|
28
|
+
}
|
|
29
|
+
function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labels: D }) {
|
|
30
|
+
let O = _(() => ({
|
|
31
|
+
...h,
|
|
32
|
+
...D
|
|
33
|
+
}), [D]), k = a(s), [A] = k, j = s?.id, M = _(() => [...new Set(k.map((e) => e.matched_payable_id))], [k]), N = p(M, { enabled: !!(A && j) }), P = f(), [F, I] = v(!1), [L, R] = v(), [z, B] = v(), V = u(s?.status), H = g(async (t, n, r, i, a) => {
|
|
34
|
+
let s = o(t, n, a);
|
|
35
|
+
if (s.length && t?.id) try {
|
|
36
|
+
await P.mutateAsync({
|
|
37
|
+
verdict: n,
|
|
38
|
+
targets: s.map((e) => ({
|
|
39
|
+
payableId: t.id,
|
|
40
|
+
duplicateId: e.id,
|
|
41
|
+
matchedPayableId: e.matched_payable_id,
|
|
42
|
+
removeBy: u(t.status)
|
|
43
|
+
}))
|
|
44
|
+
}), e.success(r), i?.();
|
|
45
|
+
} catch {
|
|
46
|
+
e.error(O.verdictFailedToast);
|
|
47
|
+
}
|
|
48
|
+
}, [P, O]), U = g((e, t, n) => H(s, e, t, n), [H, s]), W = V === "delete" ? {
|
|
49
|
+
button: O.deleteBillButton,
|
|
50
|
+
title: O.deleteConfirmTitle,
|
|
51
|
+
description: O.deleteConfirmDescription,
|
|
52
|
+
confirmButton: O.deleteConfirmButton,
|
|
53
|
+
backButton: O.deleteConfirmBackButton,
|
|
54
|
+
toast: O.deletedToast
|
|
55
|
+
} : V === "confirm" ? {
|
|
56
|
+
button: O.confirmBillButton,
|
|
57
|
+
title: O.confirmDuplicateTitle,
|
|
58
|
+
description: O.confirmDuplicateDescription,
|
|
59
|
+
confirmButton: O.confirmBillButton,
|
|
60
|
+
backButton: O.cancelConfirmBackButton,
|
|
61
|
+
toast: O.confirmedToast
|
|
62
|
+
} : {
|
|
63
|
+
button: O.cancelBillButton,
|
|
64
|
+
title: O.cancelConfirmTitle,
|
|
65
|
+
description: O.cancelConfirmDescription,
|
|
66
|
+
confirmButton: O.cancelConfirmButton,
|
|
67
|
+
backButton: O.cancelConfirmBackButton,
|
|
68
|
+
toast: O.cancelledToast
|
|
69
|
+
}, G = g(async () => {
|
|
70
|
+
await U(i.Remove, W.toast, T), I(!1);
|
|
71
|
+
}, [
|
|
72
|
+
U,
|
|
73
|
+
T,
|
|
74
|
+
W.toast
|
|
75
|
+
]), K = _(() => ({
|
|
76
|
+
delete: {
|
|
77
|
+
action: O.deleteAction,
|
|
78
|
+
title: O.deleteConfirmTitle,
|
|
79
|
+
description: O.deleteConfirmDescription,
|
|
80
|
+
confirmButton: O.deleteConfirmButton,
|
|
81
|
+
backButton: O.deleteConfirmBackButton,
|
|
82
|
+
toast: O.deletedToast
|
|
83
|
+
},
|
|
84
|
+
cancel: {
|
|
85
|
+
action: O.cancelAction,
|
|
86
|
+
title: O.cancelConfirmTitle,
|
|
87
|
+
description: O.cancelConfirmDescription,
|
|
88
|
+
confirmButton: O.cancelConfirmButton,
|
|
89
|
+
backButton: O.cancelConfirmBackButton,
|
|
90
|
+
toast: O.cancelledToast
|
|
91
|
+
},
|
|
92
|
+
confirm: {
|
|
93
|
+
action: O.confirmAction,
|
|
94
|
+
title: O.confirmDuplicateTitle,
|
|
95
|
+
description: O.confirmDuplicateDescription,
|
|
96
|
+
confirmButton: O.confirmBillButton,
|
|
97
|
+
backButton: O.cancelConfirmBackButton,
|
|
98
|
+
toast: O.confirmedToast
|
|
99
|
+
}
|
|
100
|
+
}), [O]), q = K[L?.removeBy ?? "cancel"], J = g(async () => {
|
|
101
|
+
L && (await H(L.payable, i.Remove, K[L.removeBy].toast, L.payable.id === j ? T : void 0), R(void 0));
|
|
102
|
+
}, [
|
|
103
|
+
H,
|
|
104
|
+
T,
|
|
105
|
+
j,
|
|
106
|
+
L,
|
|
107
|
+
K
|
|
108
|
+
]), Y = g(async () => {
|
|
109
|
+
z && (await H(z.payable, i.Keep, O.dismissedToast, void 0, z.originalPayableId), B(void 0));
|
|
110
|
+
}, [
|
|
111
|
+
H,
|
|
112
|
+
O.dismissedToast,
|
|
113
|
+
z
|
|
114
|
+
]), X = w && !!(A && j), Z = X && !!V, Q = _(() => {
|
|
115
|
+
let e = new Map(N.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
|
|
116
|
+
s?.id && e.set(s.id, s);
|
|
117
|
+
let i = C([...e.values()], j);
|
|
118
|
+
if (i.length < 2) return [];
|
|
119
|
+
let o = c(i), f = (e) => {
|
|
120
|
+
let t = e.total_amount ?? e.amount_due;
|
|
121
|
+
return t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
|
|
122
|
+
};
|
|
123
|
+
return i.map((e) => {
|
|
124
|
+
let n = e.status ? r({
|
|
125
|
+
apiStatus: e.status,
|
|
126
|
+
dueDate: e.due_date,
|
|
127
|
+
scheduledPaymentDate: e.scheduled_payment_date
|
|
128
|
+
}) : void 0, i = e.id === o, s = e.id === j, c = w && a(e).length > 0, p = d(e), m = u(e.status);
|
|
129
|
+
return {
|
|
130
|
+
id: e.id,
|
|
131
|
+
roleLabel: p,
|
|
132
|
+
badges: [...i ? [O.originalBillBadge] : [], ...s ? [O.currentBillBadge] : []],
|
|
133
|
+
invoiceNumberLabel: e.document_id ?? "",
|
|
134
|
+
roleTone: i ? void 0 : "warning",
|
|
135
|
+
amountLabel: f(e),
|
|
136
|
+
addedOnLabel: t(e.created_at?.slice(0, 10)),
|
|
137
|
+
dueDateLabel: t(e.due_date),
|
|
138
|
+
status: n?.status,
|
|
139
|
+
statusTone: n?.tone,
|
|
140
|
+
onOpen: !s && E ? () => E(e.id, l(e.status ?? void 0)) : void 0,
|
|
141
|
+
menu: c ? {
|
|
142
|
+
triggerLabel: O.openRow({
|
|
143
|
+
vendorLabel: p,
|
|
144
|
+
invoiceNumberLabel: "",
|
|
145
|
+
addedOnLabel: t(e.created_at?.slice(0, 10))
|
|
146
|
+
}),
|
|
147
|
+
items: [{
|
|
148
|
+
id: "not-duplicate",
|
|
149
|
+
label: O.notDuplicateAction,
|
|
150
|
+
icon: b,
|
|
151
|
+
disabled: P.isPending,
|
|
152
|
+
onSelect: () => B({
|
|
153
|
+
payable: e,
|
|
154
|
+
originalPayableId: i ? void 0 : o
|
|
155
|
+
})
|
|
156
|
+
}, ...m ? [{
|
|
157
|
+
id: "cancel-duplicate",
|
|
158
|
+
label: K[m].action,
|
|
159
|
+
icon: m === "delete" ? x : y,
|
|
160
|
+
disabled: P.isPending,
|
|
161
|
+
onSelect: () => R({
|
|
162
|
+
payable: e,
|
|
163
|
+
removeBy: m
|
|
164
|
+
})
|
|
165
|
+
}] : []]
|
|
166
|
+
} : void 0
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
}, [
|
|
170
|
+
P.isPending,
|
|
171
|
+
w,
|
|
172
|
+
N,
|
|
173
|
+
O,
|
|
174
|
+
E,
|
|
175
|
+
s,
|
|
176
|
+
j,
|
|
177
|
+
K
|
|
178
|
+
]);
|
|
179
|
+
return {
|
|
180
|
+
isPossibleDuplicate: !!A,
|
|
181
|
+
onNotADuplicate: X ? () => B({ payable: s }) : void 0,
|
|
182
|
+
onRemoveBill: Z ? () => I(!0) : void 0,
|
|
183
|
+
removeBillLabel: Z ? W.button : void 0,
|
|
184
|
+
removeConfirmation: {
|
|
185
|
+
open: F,
|
|
186
|
+
copy: {
|
|
187
|
+
title: W.title,
|
|
188
|
+
description: W.description,
|
|
189
|
+
confirmButton: W.confirmButton,
|
|
190
|
+
presentation: { tone: "destructive" }
|
|
191
|
+
},
|
|
192
|
+
onConfirm: () => void G(),
|
|
193
|
+
onCancel: () => I(!1),
|
|
194
|
+
isPending: P.isPending,
|
|
195
|
+
cancelButtonLabel: W.backButton
|
|
196
|
+
},
|
|
197
|
+
cancelRowConfirmation: {
|
|
198
|
+
open: !!L,
|
|
199
|
+
copy: m(q, L?.removeBy ?? "cancel"),
|
|
200
|
+
onConfirm: () => void J(),
|
|
201
|
+
onCancel: () => R(void 0),
|
|
202
|
+
isPending: P.isPending,
|
|
203
|
+
cancelButtonLabel: q.backButton
|
|
204
|
+
},
|
|
205
|
+
keepRowConfirmation: {
|
|
206
|
+
open: !!z,
|
|
207
|
+
copy: {
|
|
208
|
+
title: O.notDuplicateConfirmTitle,
|
|
209
|
+
description: O.notDuplicateConfirmDescription,
|
|
210
|
+
confirmButton: O.notDuplicateConfirmButton,
|
|
211
|
+
presentation: {
|
|
212
|
+
alignment: "center",
|
|
213
|
+
icon: b,
|
|
214
|
+
actionWidth: "equal"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
onConfirm: () => void Y(),
|
|
218
|
+
onCancel: () => B(void 0),
|
|
219
|
+
isPending: P.isPending,
|
|
220
|
+
cancelButtonLabel: O.notDuplicateConfirmBackButton
|
|
221
|
+
},
|
|
222
|
+
isBusy: P.isPending,
|
|
223
|
+
rows: Q,
|
|
224
|
+
collapsedRowCount: S,
|
|
225
|
+
showMoreLabel: Q.length > S ? O.showMoreRows(Q.length - S) : void 0
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
//#endregion
|
|
229
|
+
export { w as usePayableDuplicateReview };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
2
|
+
import { Scope as t } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
import { isEditablePayableStatus as n } from "../../../util/dist/lib/isEditablePayableStatus.js";
|
|
5
|
+
import { BanIcon as r, CalendarXIcon as i, RotateCcwIcon as a, ThumbsDownIcon as o, ThumbsUpIcon as s } from "lucide-react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js
|
|
7
|
+
function c(n) {
|
|
8
|
+
return e(n, [t.CounterpartReadOrg]);
|
|
9
|
+
}
|
|
10
|
+
function l({ status: n, scopes: r, arePendingApproversUnknown: i, hasApprovalPolicy: a = !0, hasWaitingRequest: o }) {
|
|
11
|
+
let s = e(r, [t.PayableApproveOrg]);
|
|
12
|
+
return !!(n === "approve_in_progress" && s);
|
|
13
|
+
}
|
|
14
|
+
function u({ status: u, scopes: d, canDecideApprovalRequest: f, hasScheduledPayment: p, scheduledPaymentIntentId: m, arePendingApproversUnknown: h, hasApprovalPolicy: g, hasWaitingRequest: _, isPayabilityUnknown: v, canEdit: y, labels: b }) {
|
|
15
|
+
let x = e(d, [t.PayablePayOrg]), S = e(d, [t.BankAccountReadOrg]), C = c(d), w = e(d, [t.PaymentRailAch]), T = e(d, [t.PayableWriteOrg]), E = x, D = [];
|
|
16
|
+
if (y && n(u) && T && D.push({
|
|
17
|
+
id: "edit",
|
|
18
|
+
label: b.edit,
|
|
19
|
+
variant: "default",
|
|
20
|
+
surface: "row"
|
|
21
|
+
}), u === "approve_in_progress" && f && (D.push({
|
|
22
|
+
id: "approve",
|
|
23
|
+
label: b.approve,
|
|
24
|
+
variant: "default",
|
|
25
|
+
surface: "row"
|
|
26
|
+
}), D.push({
|
|
27
|
+
id: "reject",
|
|
28
|
+
label: b.reject,
|
|
29
|
+
variant: "ghost",
|
|
30
|
+
surface: "row"
|
|
31
|
+
})), l({
|
|
32
|
+
status: u,
|
|
33
|
+
scopes: d,
|
|
34
|
+
arePendingApproversUnknown: h,
|
|
35
|
+
hasApprovalPolicy: g,
|
|
36
|
+
hasWaitingRequest: _
|
|
37
|
+
})) {
|
|
38
|
+
let e = g === !1 ? void 0 : b.policyOverridesHeading;
|
|
39
|
+
D.push({
|
|
40
|
+
id: "forceApprove",
|
|
41
|
+
label: b.forceApprove,
|
|
42
|
+
variant: "ghost",
|
|
43
|
+
surface: "menu",
|
|
44
|
+
icon: s,
|
|
45
|
+
sectionHeading: e
|
|
46
|
+
}), D.push({
|
|
47
|
+
id: "forceReject",
|
|
48
|
+
label: b.forceReject,
|
|
49
|
+
variant: "ghost",
|
|
50
|
+
surface: "menu",
|
|
51
|
+
icon: o,
|
|
52
|
+
sectionHeading: e
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
let O = u === "waiting_to_be_paid" && x && !p, k = u === "waiting_to_be_paid" && x && S && C && w && !p && !v;
|
|
56
|
+
return O && D.push({
|
|
57
|
+
id: "markAsPaid",
|
|
58
|
+
label: b.markAsPaid,
|
|
59
|
+
variant: "outline",
|
|
60
|
+
surface: "row"
|
|
61
|
+
}), k && D.push({
|
|
62
|
+
id: "payBill",
|
|
63
|
+
label: b.payBill,
|
|
64
|
+
variant: "default",
|
|
65
|
+
surface: "row"
|
|
66
|
+
}), u === "new" && T && D.push({
|
|
67
|
+
id: "cancel",
|
|
68
|
+
label: b.cancel,
|
|
69
|
+
variant: "ghost",
|
|
70
|
+
surface: "menu",
|
|
71
|
+
icon: r
|
|
72
|
+
}), (u === "rejected" || u === "waiting_to_be_paid" && !p) && T && D.push({
|
|
73
|
+
id: "reopen",
|
|
74
|
+
label: b.reopen,
|
|
75
|
+
variant: "ghost",
|
|
76
|
+
surface: "menu",
|
|
77
|
+
icon: a
|
|
78
|
+
}), u === "waiting_to_be_paid" && p && m && E && D.push({
|
|
79
|
+
id: "cancelScheduledPayment",
|
|
80
|
+
label: b.cancelScheduledPayment,
|
|
81
|
+
variant: "ghost",
|
|
82
|
+
surface: "menu",
|
|
83
|
+
icon: i
|
|
84
|
+
}), D;
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { l as canOverrideApprovalPolicy, c as canReadCounterpartBankAccounts, u as getBillDetailActions };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ApprovalPoliciesSettingsDefaultLabels as e } from "../../../../shared/approval-policy/feature/dist/lib/labels.js";
|
|
2
|
+
import { parseApprovalPolicyScript as t } from "../../../../shared/approval-policy/util/dist/lib/policyScript.js";
|
|
3
|
+
import { parseApprovalPolicyTrigger as n } from "../../../../shared/approval-policy/util/dist/lib/policyTrigger.js";
|
|
4
|
+
import { buildPolicySentence as r, buildPolicyTitle as i } from "../../../../shared/approval-policy/feature/dist/lib/policyViewModel.js";
|
|
5
|
+
import "../../../../shared/approval-policy/feature/dist/index.js";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js
|
|
7
|
+
var a = {
|
|
8
|
+
ruleTitleRange: e.ruleTitleRange,
|
|
9
|
+
ruleTitleUpTo: e.ruleTitleUpTo,
|
|
10
|
+
ruleTitleFrom: e.ruleTitleFrom,
|
|
11
|
+
ruleTitleAny: e.ruleTitleAny,
|
|
12
|
+
ruleSentenceRange: e.ruleSentenceRange,
|
|
13
|
+
ruleSentenceUpTo: e.ruleSentenceUpTo,
|
|
14
|
+
ruleSentenceFrom: e.ruleSentenceFrom,
|
|
15
|
+
ruleSentenceAny: e.ruleSentenceAny
|
|
16
|
+
};
|
|
17
|
+
function o({ policy: a, lookup: o, approvedUserIds: s, approvedRoleIds: c, copy: l }) {
|
|
18
|
+
let u = t(a.script);
|
|
19
|
+
if (!u.groups.length || !u.isSupported) return;
|
|
20
|
+
let d = [];
|
|
21
|
+
for (let [e, t] of u.groups.entries()) {
|
|
22
|
+
let n = [];
|
|
23
|
+
for (let e of [...t.roleIds, ...t.userIds]) {
|
|
24
|
+
let t = o.get(e);
|
|
25
|
+
t && n.push({
|
|
26
|
+
id: e,
|
|
27
|
+
label: t.label,
|
|
28
|
+
approved: t.kind === "user" ? s.has(e) : !!c?.has(e)
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
n.length && d.push({
|
|
32
|
+
id: `group-${e + 1}`,
|
|
33
|
+
chips: n
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (!d.length) return;
|
|
37
|
+
let { condition: f, hasKnownAmountBounds: p } = n(a.trigger);
|
|
38
|
+
if (!p) return;
|
|
39
|
+
let m = {
|
|
40
|
+
...e,
|
|
41
|
+
...l
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
title: i(f, m),
|
|
45
|
+
sentence: r(f, m),
|
|
46
|
+
steps: d
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { a as APPROVAL_POLICY_RULE_COPY_EN, o as buildApprovalPolicyCardView };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { currentApprovalRound as e } from "./index3.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js
|
|
3
|
+
function t({ requestsNewestFirst: t, roundStartedAt: n, lookup: r }) {
|
|
4
|
+
let i = e(t, n), a = [];
|
|
5
|
+
for (let e of i) {
|
|
6
|
+
if (e.status !== "waiting") continue;
|
|
7
|
+
let t = [...e.role_ids ?? [], ...e.user_ids ?? []].map((e) => r.get(e)?.label).filter((e) => !!e);
|
|
8
|
+
t.length && a.push({
|
|
9
|
+
id: e.id,
|
|
10
|
+
names: t
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return a;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as buildPendingApproverGroups };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import "./index2.js";
|
|
2
|
+
import "./index3.js";
|
|
3
|
+
import "./index4.js";
|
|
4
|
+
import "./index6.js";
|
|
5
|
+
import "./index7.js";
|
|
6
|
+
import "./index8.js";
|
|
7
|
+
import "./index9.js";
|
|
8
|
+
import "./index11.js";
|
|
9
|
+
import "./index12.js";
|
|
10
|
+
import "./index13.js";
|
|
11
|
+
import "./index14.js";
|
|
12
|
+
import "./index15.js";
|
|
13
|
+
import "./index16.js";
|
|
14
|
+
import "./index17.js";
|
|
15
|
+
import "./index18.js";
|
|
16
|
+
import "./index19.js";
|
|
17
|
+
import "./index20.js";
|
|
18
|
+
import "./index21.js";
|
|
19
|
+
import "./index22.js";
|
|
20
|
+
import "./index23.js";
|
|
21
|
+
import { VendorSearchCombobox as e } from "./index24.js";
|
|
22
|
+
import "./index25.js";
|
|
23
|
+
import "./index26.js";
|
|
24
|
+
import "./index27.js";
|
|
25
|
+
import "./index28.js";
|
|
26
|
+
import "./index29.js";
|
|
27
|
+
import { BillCreateScreen as t } from "./index31.js";
|
|
28
|
+
import "./index32.js";
|
|
29
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as n } from "./index33.js";
|
|
30
|
+
import { BillDetailsSheet as r } from "./index34.js";
|
|
31
|
+
import "./index35.js";
|
|
32
|
+
import "./index36.js";
|
|
33
|
+
import { BillDuplicateNotice as i } from "./index37.js";
|
|
34
|
+
import "./index38.js";
|
|
35
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as a } from "./index39.js";
|
|
36
|
+
import { BillRejectedBanner as o } from "./index40.js";
|
|
37
|
+
import "./index41.js";
|
|
38
|
+
import { DISCARD_CHANGES_DIALOG_LABELS_EN as s } from "./index42.js";
|
|
39
|
+
import { DiscardChangesDialog as c } from "./index43.js";
|
|
40
|
+
import "./index44.js";
|
|
41
|
+
import "./index45.js";
|
|
42
|
+
import { ExtractionNotice as l } from "./index46.js";
|
|
43
|
+
import "./index47.js";
|
|
44
|
+
import "./index48.js";
|
|
45
|
+
import { SourceDocumentPanel as u } from "./index49.js";
|
|
46
|
+
import "./index50.js";
|
|
47
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as d } from "./index51.js";
|
|
48
|
+
import { UnsavedBillDialog as f } from "./index52.js";
|
|
49
|
+
import "./index53.js";
|
|
50
|
+
export { n as BILL_DETAILS_SHEET_LABELS_EN, a as BILL_REJECTED_BANNER_LABELS_EN, t as BillCreateScreen, r as BillDetailsSheet, i as BillDuplicateNotice, o as BillRejectedBanner, s as DISCARD_CHANGES_DIALOG_LABELS_EN, c as DiscardChangesDialog, l as ExtractionNotice, u as SourceDocumentPanel, d as UNSAVED_BILL_DIALOG_LABELS_EN, f as UnsavedBillDialog, e as VendorSearchCombobox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Button as e } from "
|
|
2
|
-
import { AchFieldGroup as t } from "
|
|
3
|
-
import "
|
|
1
|
+
import { Button as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { AchFieldGroup as t } from "../../../../shared/counterpart-management/ui/dist/index5.js";
|
|
3
|
+
import "../../../../shared/counterpart-management/ui/dist/index.js";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js
|
|
6
6
|
function i({ paymentInstructions: i, labels: a }) {
|
|
7
7
|
return /* @__PURE__ */ r("div", {
|
|
8
8
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ACH_FIELD_GROUP_LABELS_EN as e } from "
|
|
2
|
-
import "
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/
|
|
1
|
+
import { ACH_FIELD_GROUP_LABELS_EN as e } from "../../../../shared/counterpart-management/ui/dist/index2.js";
|
|
2
|
+
import "../../../../shared/counterpart-management/ui/dist/index.js";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js
|
|
4
4
|
var t = {
|
|
5
5
|
payToHeading: "Pay to",
|
|
6
6
|
vendorLabel: "Vendor",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Button as e } from "
|
|
2
|
-
import { VENDOR_SUMMARY_CARD_LABELS_EN as t } from "./
|
|
3
|
-
import { AchEditGroup as n } from "./
|
|
1
|
+
import { Button as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as t } from "./index11.js";
|
|
3
|
+
import { AchEditGroup as n } from "./index10.js";
|
|
4
4
|
import { useMemo as r } from "react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronRightIcon as o, Plus as s } from "lucide-react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js
|
|
8
8
|
var c = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", l = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground", u = "ttw:-mx-2 ttw:-my-1 ttw:flex ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-3 ttw:rounded-md ttw:px-2 ttw:py-1 ttw:text-left ttw:hover:bg-muted";
|
|
9
9
|
function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructions: m = !0, detailsWarning: h, testId: g, labels: _ }) {
|
|
10
10
|
let v = r(() => ({
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AUDIT_HISTORY_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "
|
|
2
|
-
import { APPROVAL_POLICY_CARD_LABELS_EN as r } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js
|
|
1
|
+
import { AUDIT_HISTORY_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { APPROVAL_POLICY_CARD_LABELS_EN as r } from "./index2.js";
|
|
3
|
+
import "./index4.js";
|
|
4
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as i } from "./index11.js";
|
|
5
|
+
import "./index13.js";
|
|
6
|
+
import { BILL_STATUS_BADGE_LABELS_EN as a } from "../../../ui/dist/index15.js";
|
|
7
|
+
import { DUE_DATE_VALUE_LABELS_EN as o } from "../../../ui/dist/index23.js";
|
|
8
|
+
import "../../../ui/dist/index.js";
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js
|
|
11
10
|
var s = {
|
|
12
11
|
...e,
|
|
13
12
|
error: "Couldn't load audit history.",
|
|
@@ -33,11 +32,11 @@ var s = {
|
|
|
33
32
|
paymentHistoryHeading: "Payment history",
|
|
34
33
|
paymentHistoryErrorDescription: "Couldn't load payment history.",
|
|
35
34
|
history: s,
|
|
36
|
-
statusBadge:
|
|
35
|
+
statusBadge: a,
|
|
37
36
|
approvalPolicy: r,
|
|
38
|
-
dueDate:
|
|
37
|
+
dueDate: o,
|
|
39
38
|
payToCard: {
|
|
40
|
-
...
|
|
39
|
+
...i,
|
|
41
40
|
editAction: "Edit vendor"
|
|
42
41
|
},
|
|
43
42
|
requiredFieldsLegend: t
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { AuditHistoryList as e, Badge as t, Button as n, RequiredFieldsLegend as r, Skeleton as i, Typography as a, cn as o } from "
|
|
2
|
-
import { ErrorState as s } from "
|
|
3
|
-
import "
|
|
4
|
-
import { ApprovalPolicyCard as c } from "./
|
|
5
|
-
import "./
|
|
6
|
-
import { BillRejectionNotice as l } from "./
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import {
|
|
11
|
-
import "./
|
|
12
|
-
import {
|
|
13
|
-
import "
|
|
14
|
-
import {
|
|
15
|
-
import "
|
|
16
|
-
import { mergeBillDetailBodyLabels as
|
|
17
|
-
import { ScheduledSummaryBadge as
|
|
18
|
-
import { BillActionButtons as g, NO_BILL_ACTIONS as _ } from "./index18.js";
|
|
1
|
+
import { AuditHistoryList as e, Badge as t, Button as n, RequiredFieldsLegend as r, Skeleton as i, Typography as a, cn as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as s } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
|
+
import "../../../../shared/ui/dist/index.js";
|
|
4
|
+
import { ApprovalPolicyCard as c } from "./index3.js";
|
|
5
|
+
import "./index4.js";
|
|
6
|
+
import { BillRejectionNotice as l } from "./index6.js";
|
|
7
|
+
import "./index7.js";
|
|
8
|
+
import { PaymentHistoryList as u } from "./index8.js";
|
|
9
|
+
import "./index9.js";
|
|
10
|
+
import { VendorSummaryCard as d } from "./index12.js";
|
|
11
|
+
import "./index13.js";
|
|
12
|
+
import { BillActionButtons as f, NO_BILL_ACTIONS as p } from "../../../ui/dist/index2.js";
|
|
13
|
+
import { BillStatusBadge as m } from "../../../ui/dist/index16.js";
|
|
14
|
+
import { DueDateValue as h } from "../../../ui/dist/index24.js";
|
|
15
|
+
import "../../../ui/dist/index.js";
|
|
16
|
+
import { mergeBillDetailBodyLabels as g } from "./index14.js";
|
|
17
|
+
import { ScheduledSummaryBadge as _ } from "./index5.js";
|
|
19
18
|
import { useMemo as v } from "react";
|
|
20
19
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
21
20
|
import { AlertTriangle as x } from "lucide-react";
|
|
22
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/
|
|
21
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js
|
|
23
22
|
var S = "ttw:text-base ttw:font-semibold", C = "ttw:px-3 ttw:py-2", w = "ttw:py-2 ttw:pr-3", T = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", E = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
|
|
24
|
-
function D({ view: D, actions: O =
|
|
25
|
-
let W = v(() =>
|
|
23
|
+
function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate: A, scheduledStatusLabel: j, showApprovalOverrideNotice: M, awaitingApprovalNotice: N, payTo: P, hideMissingPaymentInstructions: F, paymentHistoryError: I, paymentHistoryLoading: L, historyError: R, historyLoading: z, historyNamesError: B, isLoading: V, isError: H, labels: U }) {
|
|
24
|
+
let W = v(() => g(U), [U]), G = v(() => ({
|
|
26
25
|
...W.payToCard,
|
|
27
26
|
payToHeading: D?.paidOnLabel ? W.payToHeadingPaid : W.payToHeading,
|
|
28
27
|
vendorLabel: W.vendorRow,
|
|
@@ -103,10 +102,10 @@ function D({ view: D, actions: O = _, scheduledSummary: k, scheduledSummaryDate:
|
|
|
103
102
|
variant: "outline",
|
|
104
103
|
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
105
104
|
children: D.paidOnLabel
|
|
106
|
-
}) : k ? /* @__PURE__ */ y(
|
|
105
|
+
}) : k ? /* @__PURE__ */ y(_, {
|
|
107
106
|
summary: k,
|
|
108
107
|
date: A
|
|
109
|
-
}) : /* @__PURE__ */ y(
|
|
108
|
+
}) : /* @__PURE__ */ y(m, {
|
|
110
109
|
status: D.status,
|
|
111
110
|
tone: D.statusTone,
|
|
112
111
|
labels: K
|
|
@@ -127,7 +126,7 @@ function D({ view: D, actions: O = _, scheduledSummary: k, scheduledSummaryDate:
|
|
|
127
126
|
children: [/* @__PURE__ */ y("span", {
|
|
128
127
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
129
128
|
children: W.dueDateLabel
|
|
130
|
-
}), /* @__PURE__ */ y(
|
|
129
|
+
}), /* @__PURE__ */ y(h, {
|
|
131
130
|
className: "ttw:text-sm ttw:font-medium",
|
|
132
131
|
value: D.dueDateLabel,
|
|
133
132
|
tone: D.dueDateTone,
|
|
@@ -147,20 +146,20 @@ function D({ view: D, actions: O = _, scheduledSummary: k, scheduledSummaryDate:
|
|
|
147
146
|
}) : null,
|
|
148
147
|
!k && O.row.length ? /* @__PURE__ */ y("div", {
|
|
149
148
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
150
|
-
children: /* @__PURE__ */ y(
|
|
149
|
+
children: /* @__PURE__ */ y(f, { actions: O.row })
|
|
151
150
|
}) : null
|
|
152
151
|
]
|
|
153
152
|
}),
|
|
154
153
|
q?.isOpen && !F ? /* @__PURE__ */ y(r, { labels: W.requiredFieldsLegend }) : null,
|
|
155
154
|
P?.editForm ? /* @__PURE__ */ b("div", {
|
|
156
155
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
157
|
-
children: [P.editForm, /* @__PURE__ */ y(
|
|
156
|
+
children: [P.editForm, /* @__PURE__ */ y(d, {
|
|
158
157
|
summary: D.payTo,
|
|
159
158
|
paymentInstructions: q,
|
|
160
159
|
detailsWarning: P?.detailsWarning,
|
|
161
160
|
labels: G
|
|
162
161
|
})]
|
|
163
|
-
}) : /* @__PURE__ */ y(
|
|
162
|
+
}) : /* @__PURE__ */ y(d, {
|
|
164
163
|
summary: D.payTo,
|
|
165
164
|
onEdit: P?.onEdit,
|
|
166
165
|
paymentInstructions: q,
|
|
@@ -175,7 +174,7 @@ function D({ view: D, actions: O = _, scheduledSummary: k, scheduledSummaryDate:
|
|
|
175
174
|
}), I ? /* @__PURE__ */ y("p", {
|
|
176
175
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
177
176
|
children: W.paymentHistoryErrorDescription
|
|
178
|
-
}) : L ? /* @__PURE__ */ y(i, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ y(
|
|
177
|
+
}) : L ? /* @__PURE__ */ y(i, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ y(u, { records: D.paymentHistory })]
|
|
179
178
|
}) : null,
|
|
180
179
|
/* @__PURE__ */ b("section", {
|
|
181
180
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LABEL_LABELS_EN as e } from "
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/
|
|
1
|
+
import { LABEL_LABELS_EN as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js
|
|
3
3
|
var t = {
|
|
4
4
|
invoiceNumber: "Invoice number",
|
|
5
5
|
invoiceDate: "Invoice date",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FieldRequirement as e, Input as t, Label as n } from "
|
|
2
|
-
import { mergeBillFormFieldsLabels as r } from "./
|
|
1
|
+
import { FieldRequirement as e, Input as t, Label as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { mergeBillFormFieldsLabels as r } from "./index17.js";
|
|
3
3
|
import { useId as i } from "react";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js
|
|
6
6
|
var s = 255, c = {
|
|
7
7
|
invoiceDate: e.Required,
|
|
8
8
|
dueDate: e.Required,
|