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