@tesouro/embedded-components-react 0.5.212 → 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,47 +1,614 @@
|
|
|
1
|
-
|
|
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 { buildPayableAuditHistory as n, hasUnattributedAuditRows as r } from "../../../shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js";
|
|
8
|
+
import { hasAnyScope as i } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
9
|
+
import { Scope as a } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
10
|
+
import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
11
|
+
import "../../../shared/data-access/dist/index.js";
|
|
12
|
+
import "../../../shared/ui/dist/index.js";
|
|
13
|
+
import { useWidgetConfig as te } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
14
|
+
import { useOrganizationUserNames as ne } from "../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
|
|
15
|
+
import "../../../shared/feature/dist/index.js";
|
|
16
|
+
import { hasUnpaidBalance as re } from "../../util/dist/lib/derivePayableStatus.js";
|
|
17
|
+
import { formatScheduledDateLabel as ie } from "../../util/dist/lib/formatScheduledDateLabel.js";
|
|
18
|
+
import { isEditablePayableStatus as ae } from "../../util/dist/lib/isEditablePayableStatus.js";
|
|
19
|
+
import { resolveVendor as oe } from "../../util/dist/lib/resolveVendor.js";
|
|
20
|
+
import { BillCreateScreen as se } from "../../ui/dist/index53.js";
|
|
21
|
+
import { BillDecisionDialog as o } from "../../ui/dist/index59.js";
|
|
22
|
+
import { DiscardChangesDialog as ce } from "../../ui/dist/index65.js";
|
|
23
|
+
import { BillDuplicateNotice as le } from "../../ui/dist/index70.js";
|
|
24
|
+
import { BillRejectedBanner as ue } from "../../ui/dist/index73.js";
|
|
25
|
+
import { ExtractionNotice as de } from "../../ui/dist/index90.js";
|
|
26
|
+
import { UnsavedBillDialog as fe } from "../../ui/dist/index99.js";
|
|
27
|
+
import "../../ui/dist/index.js";
|
|
28
|
+
import { BILL_CREATE_MESSAGE_LABELS_EN as pe, mergeBillCreateScreenCopy as me } from "./index24.js";
|
|
29
|
+
import { usePayableApprovalRequestsQuery as he } from "../../data-access/dist/lib/usePayableApprovalRequests.js";
|
|
30
|
+
import { usePayableHistoryQuery as ge } from "../../data-access/dist/lib/usePayableHistoryQuery.js";
|
|
31
|
+
import { useAllPayableLineItemsQuery as _e } from "../../data-access/dist/lib/usePayableLineItems.js";
|
|
32
|
+
import { useUpdatePayableMutation as ve } from "../../data-access/dist/lib/usePayableMutations/useUpdatePayableMutation.js";
|
|
33
|
+
import { usePayableQuery as ye } from "../../data-access/dist/lib/usePayablesQueries/usePayableQuery.js";
|
|
34
|
+
import "../../data-access/dist/index.js";
|
|
35
|
+
import { useBillCreateController as be } from "./index32.js";
|
|
36
|
+
import { useBillForm as xe } from "./index34.js";
|
|
37
|
+
import { buildPaymentHistory as Se } from "./index2.js";
|
|
38
|
+
import { currentApprovalRound as Ce } from "./index3.js";
|
|
39
|
+
import { usePayableDuplicateReview as we } from "./index6.js";
|
|
40
|
+
import { canOverrideApprovalPolicy as Te, canReadCounterpartBankAccounts as Ee } from "./index7.js";
|
|
41
|
+
import { usePayableApprovalRoundStart as De } from "./index11.js";
|
|
42
|
+
import { useApprovalPolicyCardView as Oe } from "./index12.js";
|
|
43
|
+
import { resolveBillRejectionNotice as ke } from "./index13.js";
|
|
44
|
+
import { useCurrentApprovalRequestId as Ae } from "./index14.js";
|
|
45
|
+
import { usePayableDetailActions as je } from "./index15.js";
|
|
46
|
+
import { useLocalCalendarDay as Me } from "./index16.js";
|
|
47
|
+
import { useScheduledPayment as Ne } from "./index17.js";
|
|
48
|
+
import { useDraftDelete as Pe } from "./index18.js";
|
|
49
|
+
import { buildBillDetailView as Fe } from "./index20.js";
|
|
50
|
+
import { resolveEditorDismissal as Ie } from "./index21.js";
|
|
51
|
+
import { SourceDocumentContainer as Le } from "./index25.js";
|
|
52
|
+
import { usePayableAchInstructions as Re } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
53
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
54
|
+
import { useVendorSectionProps as ze } from "./index28.js";
|
|
55
|
+
import { billCreateTestIds as s } from "./index35.js";
|
|
56
|
+
import { cloneElement as Be, isValidElement as Ve, useCallback as c, useEffect as He, useMemo as l, useRef as Ue, useState as u } from "react";
|
|
57
|
+
import { Fragment as We, jsx as d, jsxs as Ge } from "react/jsx-runtime";
|
|
58
|
+
import { Trash2Icon as Ke } from "lucide-react";
|
|
2
59
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
60
|
+
function qe(e) {
|
|
61
|
+
let t = [...new Set(e)];
|
|
62
|
+
return t.length > 0 ? t : void 0;
|
|
63
|
+
}
|
|
64
|
+
function Je({ open: Je, onOpenChange: f, payableId: p, initialCounterpartId: Ye, readOnly: m = !1, copy: Xe, onCollapse: Ze, onEdit: Qe, onOpenBill: h, renderPaymentFlows: $e }) {
|
|
65
|
+
let g = l(() => me(Xe), [Xe]), et = p ? void 0 : Ye, [tt, nt] = u(et), [rt, it] = u(!!et), [at, ot] = u(!1), [st, _] = u(!1), [ct, v] = u(), y = c((e) => {
|
|
66
|
+
v(() => e);
|
|
67
|
+
}, []), [lt, ut] = u(), b = p ?? lt, x = ye(b, { pollWhileOcrProcessing: !0 }), S = _e(b), { initResponse: C } = te(), dt = !!C, ft = i(C?.scopes, [a.AccountingConfigReadOrg]), w = ee({ enabled: ft }), T = x.data, E = !b || !!T, D = !m && E && !!b && T?.status !== "draft", pt = !m && !!T && !ae(T?.status), O = m || pt, k = xe({
|
|
68
|
+
payable: T,
|
|
69
|
+
lineItems: S.lineItems
|
|
70
|
+
}), A = T?.counterpart_id;
|
|
71
|
+
He(() => {
|
|
72
|
+
rt || A && (nt(A), it(!0));
|
|
73
|
+
}, [rt, A]);
|
|
74
|
+
let mt = c((e) => {
|
|
75
|
+
it(!0), nt(e);
|
|
76
|
+
}, []), j = Ne({
|
|
77
|
+
payableId: b,
|
|
78
|
+
scheduledPaymentDate: T?.scheduled_payment_date,
|
|
79
|
+
enabled: m || D
|
|
80
|
+
}), ht = Me(), M = l(() => j.hasScheduledPayment && j.scheduledDate ? ie(j.scheduledDate, g.scheduledRelativeDay, ht) : void 0, [
|
|
81
|
+
j.hasScheduledPayment,
|
|
82
|
+
j.scheduledDate,
|
|
83
|
+
g.scheduledRelativeDay,
|
|
84
|
+
ht
|
|
85
|
+
]), N = Ee(C?.scopes), gt = i(C?.scopes, [a.PayableWriteOrg]), _t = i(C?.scopes, [a.CounterpartWriteOrg]) && gt, P = _t && re(T?.status) && !j.hasScheduledPayment && !j.isResolving, vt = P && N, yt = P || _t && T?.status === "rejected", bt = !m && E && (!b || T?.status === "draft") && !j.hasScheduledPayment && !j.isResolving, F = ze({
|
|
86
|
+
payableId: b,
|
|
87
|
+
counterpartId: m ? A : tt,
|
|
88
|
+
payableCounterpartId: A,
|
|
89
|
+
isVendorKnown: m ? !!T : E,
|
|
90
|
+
onCounterpartChange: mt,
|
|
91
|
+
requiredError: k.errors?.vendor,
|
|
92
|
+
payableCounterpartBankAccountId: T?.counterpart_bank_account_id ?? void 0,
|
|
93
|
+
extractedVendor: T?.counterpart_raw_data ?? void 0,
|
|
94
|
+
readOnly: m,
|
|
95
|
+
canEditVendor: !m || vt,
|
|
96
|
+
canEditPaymentInstructions: !m || P,
|
|
97
|
+
canAddPaymentInstructions: !m || yt,
|
|
98
|
+
confirmDiscard: y
|
|
99
|
+
}), I = F.activePayToOperation === "missingInstructions" ? bt || yt : F.activePayToOperation === "existingInstructions" ? bt || P : F.activePayToOperation === "vendor" && m ? vt : !1, xt = !!(b && rt) && !tt, L = x.refetch, St = c(async () => {
|
|
100
|
+
let { data: e } = await L();
|
|
101
|
+
return e?.status ?? void 0;
|
|
102
|
+
}, [L]), Ct = ve(), [R, wt] = u(!1), z = Ue(void 0), Tt = c(async () => {
|
|
103
|
+
if (z.current) return z.current;
|
|
104
|
+
let t = (async () => {
|
|
105
|
+
if (I) {
|
|
106
|
+
wt(!0);
|
|
107
|
+
try {
|
|
108
|
+
let t;
|
|
109
|
+
try {
|
|
110
|
+
t = await F.prepareVendorForSave({ closeOnSuccess: !1 });
|
|
111
|
+
} catch {
|
|
112
|
+
e.error(g.detail.paymentInstructionsSaveError);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (!t.ok) return;
|
|
116
|
+
if (!b) {
|
|
117
|
+
F.finalizePayToSave();
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
let n = t.counterpartId && t.counterpartId !== T?.counterpart_id ? t.counterpartId : void 0, r = t.counterpartBankAccountId && t.counterpartBankAccountId !== T?.counterpart_bank_account_id ? t.counterpartBankAccountId : void 0;
|
|
121
|
+
if (n || r) {
|
|
122
|
+
let t = {
|
|
123
|
+
path: { payable_id: b },
|
|
124
|
+
body: {
|
|
125
|
+
...n ? { counterpart_id: n } : {},
|
|
126
|
+
...r ? { counterpart_bank_account_id: r } : {}
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
try {
|
|
130
|
+
await Ct.mutateAsync(t);
|
|
131
|
+
} catch {
|
|
132
|
+
try {
|
|
133
|
+
await Ct.mutateAsync(t);
|
|
134
|
+
} catch {
|
|
135
|
+
e.error(g.detail.paymentInstructionsLinkError);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
F.finalizePayToSave();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
F.finalizePayToSave(), await L();
|
|
143
|
+
} finally {
|
|
144
|
+
wt(!1);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
})();
|
|
148
|
+
z.current = t;
|
|
149
|
+
try {
|
|
150
|
+
await t;
|
|
151
|
+
} finally {
|
|
152
|
+
z.current = void 0;
|
|
153
|
+
}
|
|
154
|
+
}, [
|
|
155
|
+
I,
|
|
156
|
+
g.detail.paymentInstructionsLinkError,
|
|
157
|
+
g.detail.paymentInstructionsSaveError,
|
|
158
|
+
Ct,
|
|
159
|
+
T?.counterpart_bank_account_id,
|
|
160
|
+
T?.counterpart_id,
|
|
161
|
+
b,
|
|
162
|
+
L,
|
|
163
|
+
F
|
|
164
|
+
]), B = l(() => I ? F.mode === "creating" && Ve(F.newVendorForm) ? {
|
|
165
|
+
...F,
|
|
166
|
+
newVendorForm: Be(F.newVendorForm, {
|
|
167
|
+
onSave: Tt,
|
|
168
|
+
isSaving: R
|
|
169
|
+
})
|
|
170
|
+
} : F.mode === "resolved" && F.paymentInstructions ? {
|
|
171
|
+
...F,
|
|
172
|
+
paymentInstructions: {
|
|
173
|
+
...F.paymentInstructions,
|
|
174
|
+
onSave: Tt,
|
|
175
|
+
isSaving: R
|
|
176
|
+
}
|
|
177
|
+
} : F : F, [
|
|
178
|
+
I,
|
|
179
|
+
R,
|
|
180
|
+
Tt,
|
|
181
|
+
F
|
|
182
|
+
]);
|
|
183
|
+
He(() => {
|
|
184
|
+
m && F.isEditingPayTo && !I && F.discardPayToEdits();
|
|
185
|
+
}, [
|
|
186
|
+
I,
|
|
187
|
+
m,
|
|
188
|
+
F.discardPayToEdits,
|
|
189
|
+
F.isEditingPayTo
|
|
190
|
+
]);
|
|
191
|
+
let Et = l(() => D ? { draftSaved: pe.submittedSaved } : void 0, [D]), V = be({
|
|
192
|
+
payableId: p,
|
|
193
|
+
form: k,
|
|
194
|
+
labels: Et,
|
|
195
|
+
counterpartId: tt,
|
|
196
|
+
isVendorPending: F.mode === "creating" || F.isPendingVendor,
|
|
197
|
+
clearCounterpart: xt,
|
|
198
|
+
prepareVendorForSave: F.prepareVendorForSave,
|
|
199
|
+
onPayableCreated: ut,
|
|
200
|
+
onSaved: ut,
|
|
201
|
+
onDraftSaved: () => f(!1),
|
|
202
|
+
onFinalized: () => f(!1),
|
|
203
|
+
readSavedStatus: D ? St : void 0
|
|
204
|
+
}), Dt = !!(V.isSavingDraft || V.isFinalizing || F.isVendorSavePending), H = m ? b : void 0, U = Ae({
|
|
205
|
+
payableId: H,
|
|
206
|
+
status: T?.status
|
|
207
|
+
}), Ot = Ue(null), [kt, At] = u(!1), jt = oe(T), W = Re({
|
|
208
|
+
counterpartId: m ? A : void 0,
|
|
209
|
+
currency: T?.currency,
|
|
210
|
+
currentBankAccountId: m ? T?.counterpart_bank_account_id ?? void 0 : void 0,
|
|
211
|
+
enabled: N && m
|
|
212
|
+
}), G = Oe({
|
|
213
|
+
payableId: H,
|
|
214
|
+
approvalPolicyId: T?.approval_policy_id,
|
|
215
|
+
enabled: m,
|
|
216
|
+
copy: g.approvalPolicyCopy
|
|
217
|
+
}), Mt = Te({
|
|
218
|
+
status: T?.status,
|
|
219
|
+
scopes: C?.scopes,
|
|
220
|
+
arePendingApproversUnknown: G.isLoading,
|
|
221
|
+
hasApprovalPolicy: !!T?.approval_policy_id,
|
|
222
|
+
hasWaitingRequest: U.hasWaitingRequest
|
|
223
|
+
}), Nt = !!U.id, Pt = U.isLoading || G.isLoading, Ft = l(() => qe(G.pendingApprovers.flatMap((e) => e.names)), [G.pendingApprovers]), It = m || D ? b : void 0, Lt = m ? Qe : void 0, K = c((e) => {
|
|
224
|
+
let t = () => {
|
|
225
|
+
F.discardPayToEdits(), e?.();
|
|
226
|
+
};
|
|
227
|
+
F.hasUnsavedVendorChanges ? y(t) : t();
|
|
228
|
+
}, [y, F]), { actions: Rt, decisionDialog: zt, isActionPending: Bt } = je({
|
|
229
|
+
payableId: It,
|
|
230
|
+
status: T?.status,
|
|
231
|
+
currentApprovalRequestId: U.id,
|
|
232
|
+
arePendingApproversUnknown: G.isLoading,
|
|
233
|
+
hasScheduledPayment: j.hasScheduledPayment,
|
|
234
|
+
scheduledPaymentIntentId: j.scheduledPaymentIntentId,
|
|
235
|
+
isScheduledPaymentUnknown: j.isResolving,
|
|
236
|
+
isPayabilityUnknown: W.isLoading,
|
|
237
|
+
hasApprovalPolicy: !!T?.approval_policy_id,
|
|
238
|
+
hasWaitingRequest: U.hasWaitingRequest,
|
|
239
|
+
pendingApprovers: G.pendingApprovers,
|
|
240
|
+
labels: g.actions,
|
|
241
|
+
isMarkAsPaidPending: kt,
|
|
242
|
+
onMarkAsPaidSelect: () => Ot.current?.openMarkAsPaid(),
|
|
243
|
+
onPayBillSelect: () => K(() => Ot.current?.openPayBill()),
|
|
244
|
+
onEditSelect: Lt,
|
|
245
|
+
onActionSucceeded: (e) => {
|
|
246
|
+
if (e === "reopen") {
|
|
247
|
+
Lt?.();
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
D && f(!1);
|
|
251
|
+
}
|
|
252
|
+
}), Vt = Pe({
|
|
253
|
+
payableId: b,
|
|
254
|
+
status: T?.status,
|
|
255
|
+
enabled: !m,
|
|
256
|
+
labels: g.deleteDraft,
|
|
257
|
+
onDeleted: () => f(!1)
|
|
258
|
+
}), Ht = Dt || Bt, Ut = T?.ocr_status === "processing", Wt = x.isLoading || S.isResolving || Ut, Gt = x.isLoading || S.isResolving || w.isResolving || W.isLoading, Kt = x.isError || S.isError || w.isError, qt = l(() => [...Vt.menuItems, ...D || m && !Gt && !Kt ? Rt.menu.map((e) => ({
|
|
259
|
+
id: e.id,
|
|
260
|
+
label: e.label,
|
|
261
|
+
onSelect: e.onSelect,
|
|
262
|
+
disabled: e.disabled,
|
|
263
|
+
icon: e.icon,
|
|
264
|
+
sectionHeading: e.sectionHeading
|
|
265
|
+
})) : []], [
|
|
266
|
+
Rt.menu,
|
|
267
|
+
Vt.menuItems,
|
|
268
|
+
D,
|
|
269
|
+
m,
|
|
270
|
+
Gt,
|
|
271
|
+
Kt
|
|
272
|
+
]), q = l(() => (w.data?.data ?? []).map((e) => ({
|
|
273
|
+
value: e.id,
|
|
274
|
+
label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
|
|
275
|
+
})), [w.data]), J;
|
|
276
|
+
dt && (ft ? w.isError ? J = g.lineItemsGlCodeUnavailable.loadError : !w.isResolving && q.length === 0 && (J = g.lineItemsGlCodeUnavailable.empty) : J = g.lineItemsGlCodeUnavailable.noAccess);
|
|
277
|
+
let Jt = !dt || !!J || w.isResolving, Yt = ft && !w.isResolving && !w.isError, Y = ge(H), Xt = T?.status === "rejected" || !m && D, Zt = i(C?.scopes, [a.ApprovalRequestReadOrg]), Qt = Xt && Zt, $t = i(C?.scopes, [a.UserReadOrg]), { userNames: X, isError: en, isResolving: tn } = ne({ enabled: (m || Xt) && $t }), nn = l(() => n(Y.data?.data ?? [], X, g.history), [
|
|
278
|
+
Y.data,
|
|
279
|
+
X,
|
|
280
|
+
g.history
|
|
281
|
+
]), rn = $t && en && r(Y.data?.data ?? [], nn, X), an = De({
|
|
282
|
+
payableId: b,
|
|
283
|
+
enabled: Qt
|
|
284
|
+
}), on = he(b, { enabled: Qt }), sn = l(() => Ce(on.data?.data, an.roundStartedAt), [on.data, an.roundStartedAt]), Z = l(() => ke({
|
|
285
|
+
payableStatus: T?.status,
|
|
286
|
+
approvalRequests: sn,
|
|
287
|
+
userNames: X,
|
|
288
|
+
payableUpdatedAt: T?.updated_at,
|
|
289
|
+
labels: g.detail
|
|
290
|
+
}), [
|
|
291
|
+
T?.status,
|
|
292
|
+
T?.updated_at,
|
|
293
|
+
sn,
|
|
294
|
+
X,
|
|
295
|
+
g.detail
|
|
296
|
+
]), cn = l(() => Se({
|
|
297
|
+
records: j.paymentRecords,
|
|
298
|
+
events: Y.data?.data ?? [],
|
|
299
|
+
currencyCode: T?.currency,
|
|
300
|
+
labels: g.detail
|
|
301
|
+
}), [
|
|
302
|
+
j.paymentRecords,
|
|
303
|
+
Y.data,
|
|
304
|
+
T?.currency,
|
|
305
|
+
g.detail
|
|
306
|
+
]), ln = l(() => {
|
|
307
|
+
if (!m || !T) return;
|
|
308
|
+
let e = Fe({
|
|
309
|
+
payable: T,
|
|
310
|
+
lineItems: S.lineItems,
|
|
311
|
+
glCodeOptions: q,
|
|
312
|
+
glCodeRosterAvailable: Yt,
|
|
313
|
+
history: nn,
|
|
314
|
+
paymentHistory: cn,
|
|
315
|
+
approvalPolicy: G.view,
|
|
316
|
+
labels: g.detail,
|
|
317
|
+
hasScheduledPayment: j.hasScheduledPayment,
|
|
318
|
+
rejection: Z,
|
|
319
|
+
payableAchInstructions: W.achInstructions,
|
|
320
|
+
payableAchInstructionsReadable: N && !W.isError
|
|
321
|
+
});
|
|
322
|
+
return F.mode === "resolved" && F.summary ? {
|
|
323
|
+
...e,
|
|
324
|
+
payTo: F.summary
|
|
325
|
+
} : e;
|
|
326
|
+
}, [
|
|
327
|
+
j.hasScheduledPayment,
|
|
328
|
+
G.view,
|
|
329
|
+
N,
|
|
330
|
+
g.detail,
|
|
331
|
+
q,
|
|
332
|
+
Yt,
|
|
333
|
+
nn,
|
|
334
|
+
S.lineItems,
|
|
335
|
+
T,
|
|
336
|
+
W.achInstructions,
|
|
337
|
+
W.isError,
|
|
338
|
+
cn,
|
|
339
|
+
m,
|
|
340
|
+
Z,
|
|
341
|
+
F.mode,
|
|
342
|
+
F.summary
|
|
343
|
+
]), un = T?.source_of_payable_data === "ocr", Q = jt?.name, dn = m ? Q ? g.viewTitle(Q) : g.readOnlyTitle : Q && (un || D) ? g.extractedTitle(Q) : g.newTitle, fn = m && T?.created_at ? g.addedOn(t(T.created_at.slice(0, 10))) : void 0, pn = c(() => {
|
|
344
|
+
if (m && F.isEditingPayTo) {
|
|
345
|
+
K(() => f(!1));
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
let e = k.isDirty || F.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending;
|
|
349
|
+
switch (Ie({
|
|
350
|
+
isUnsavedPromptOpen: st,
|
|
351
|
+
isLocked: O,
|
|
352
|
+
isDirty: e
|
|
353
|
+
})) {
|
|
354
|
+
case "dismiss-prompt":
|
|
355
|
+
_(!1);
|
|
356
|
+
return;
|
|
357
|
+
case "prompt":
|
|
358
|
+
_(!0);
|
|
359
|
+
return;
|
|
360
|
+
default: f(!1);
|
|
361
|
+
}
|
|
362
|
+
}, [
|
|
363
|
+
V.isFileDeletionPending,
|
|
364
|
+
V.stagedFile,
|
|
365
|
+
k.isDirty,
|
|
366
|
+
O,
|
|
367
|
+
st,
|
|
368
|
+
K,
|
|
369
|
+
f,
|
|
370
|
+
m,
|
|
371
|
+
F.hasUnsavedVendorChanges,
|
|
372
|
+
F.isEditingPayTo
|
|
373
|
+
]), mn = c((e, t) => {
|
|
374
|
+
if (!h) return;
|
|
375
|
+
let n = () => h(e, t);
|
|
376
|
+
if (m && F.isEditingPayTo) {
|
|
377
|
+
K(n);
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
let r = k.isDirty || F.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending;
|
|
381
|
+
!O && r ? y(n) : n();
|
|
382
|
+
}, [
|
|
383
|
+
y,
|
|
384
|
+
V.isFileDeletionPending,
|
|
385
|
+
V.stagedFile,
|
|
386
|
+
k.isDirty,
|
|
387
|
+
O,
|
|
388
|
+
K,
|
|
389
|
+
h,
|
|
390
|
+
m,
|
|
391
|
+
F.hasUnsavedVendorChanges,
|
|
392
|
+
F.isEditingPayTo
|
|
393
|
+
]), hn = c(() => {
|
|
394
|
+
if (F.isEditingPayTo) {
|
|
395
|
+
K(Ze);
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
Ze?.();
|
|
399
|
+
}, [
|
|
400
|
+
K,
|
|
401
|
+
Ze,
|
|
402
|
+
F.isEditingPayTo
|
|
403
|
+
]), gn = c(() => {
|
|
404
|
+
_(!1), f(!1);
|
|
405
|
+
}, [f]), _n = Wt || F.mode === "creating", vn = c(async () => {
|
|
406
|
+
if (_n) return;
|
|
407
|
+
let e = await V.saveDraft();
|
|
408
|
+
_(!1), e && f(!1);
|
|
409
|
+
}, [
|
|
410
|
+
V,
|
|
411
|
+
_n,
|
|
412
|
+
f
|
|
413
|
+
]), $ = we({
|
|
414
|
+
payable: T,
|
|
415
|
+
onOpenPayable: h ? mn : void 0,
|
|
416
|
+
onRemoved: () => f(!1),
|
|
417
|
+
canManage: gt
|
|
418
|
+
}), yn = c((e) => {
|
|
419
|
+
if (!(Ht || $.isBusy)) return e ? f(!0) : pn();
|
|
420
|
+
}, [
|
|
421
|
+
$.isBusy,
|
|
422
|
+
Ht,
|
|
423
|
+
pn,
|
|
424
|
+
f
|
|
425
|
+
]), bn = $.isPossibleDuplicate, xn = !m && un && !at, Sn = !m && !!Z, Cn = Sn || bn || xn ? /* @__PURE__ */ Ge(We, { children: [
|
|
426
|
+
Sn && Z ? /* @__PURE__ */ d(ue, {
|
|
427
|
+
...Z,
|
|
428
|
+
labels: g.rejectedBanner
|
|
429
|
+
}) : null,
|
|
430
|
+
bn ? /* @__PURE__ */ d(le, {
|
|
431
|
+
onNotADuplicate: $.onNotADuplicate,
|
|
432
|
+
onRemoveBill: $.onRemoveBill,
|
|
433
|
+
isActionDisabled: $.isBusy,
|
|
434
|
+
rows: $.rows,
|
|
435
|
+
collapsedRowCount: $.collapsedRowCount,
|
|
436
|
+
showMoreLabel: $.showMoreLabel,
|
|
437
|
+
labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
|
|
438
|
+
testId: s.duplicateNotice
|
|
439
|
+
}) : null,
|
|
440
|
+
xn ? /* @__PURE__ */ d(de, { onDismiss: () => ot(!0) }) : null
|
|
441
|
+
] }) : void 0;
|
|
442
|
+
return /* @__PURE__ */ Ge(We, { children: [
|
|
443
|
+
/* @__PURE__ */ d(se, {
|
|
444
|
+
open: Je,
|
|
445
|
+
onOpenChange: yn,
|
|
446
|
+
title: dn,
|
|
447
|
+
subtitle: fn,
|
|
448
|
+
notice: Cn,
|
|
449
|
+
vendor: {
|
|
450
|
+
...B,
|
|
451
|
+
testId: s.vendorSection
|
|
452
|
+
},
|
|
453
|
+
values: k.values,
|
|
454
|
+
errors: k.errors,
|
|
455
|
+
onChange: k.onChange,
|
|
456
|
+
lineItems: {
|
|
457
|
+
items: k.lineItemRows,
|
|
458
|
+
glCodeOptions: q,
|
|
459
|
+
glCodeDisabled: Jt,
|
|
460
|
+
glCodeUnavailableMessage: J,
|
|
461
|
+
discount: k.discount,
|
|
462
|
+
onDiscountChange: k.onDiscountChange,
|
|
463
|
+
onDiscountBlur: k.onDiscountBlur,
|
|
464
|
+
tax: k.tax,
|
|
465
|
+
onTaxChange: k.onTaxChange,
|
|
466
|
+
onTaxBlur: k.onTaxBlur,
|
|
467
|
+
total: k.total,
|
|
468
|
+
onTotalChange: k.onTotalChange,
|
|
469
|
+
onTotalBlur: k.onTotalBlur,
|
|
470
|
+
onAddLineItem: k.onAddLineItem,
|
|
471
|
+
errors: k.lineItemErrors,
|
|
472
|
+
totalsErrors: k.totalsErrors,
|
|
473
|
+
testId: s.lineItems
|
|
474
|
+
},
|
|
475
|
+
documentPanel: /* @__PURE__ */ d(Le, {
|
|
476
|
+
payableId: b,
|
|
477
|
+
readOnly: O,
|
|
478
|
+
isDocumentPending: !!b && !T?.file && (x.isLoading || T?.ocr_status === "processing"),
|
|
479
|
+
file: T?.file ? {
|
|
480
|
+
id: T.file.id,
|
|
481
|
+
name: T.file.name,
|
|
482
|
+
url: T.file.url,
|
|
483
|
+
mimetype: T.file.mimetype
|
|
484
|
+
} : void 0,
|
|
485
|
+
staging: {
|
|
486
|
+
stagedFile: V.stagedFile,
|
|
487
|
+
onFileStaged: V.stageFile,
|
|
488
|
+
onClearStagedFile: V.clearStagedFile,
|
|
489
|
+
isSaving: Dt
|
|
490
|
+
},
|
|
491
|
+
deletion: {
|
|
492
|
+
isPending: V.isFileDeletionPending,
|
|
493
|
+
onRequest: V.requestFileDeletion,
|
|
494
|
+
onDetachNow: V.detachFileNow,
|
|
495
|
+
isDeleting: V.isDeletingFile,
|
|
496
|
+
hasFailed: V.hasFileDeletionFailed
|
|
497
|
+
}
|
|
498
|
+
}),
|
|
499
|
+
menuItems: qt,
|
|
500
|
+
readOnly: O,
|
|
501
|
+
detail: m ? {
|
|
502
|
+
view: ln,
|
|
503
|
+
actions: Rt,
|
|
504
|
+
scheduledSummary: M ? g.scheduledSummary(M.label) : void 0,
|
|
505
|
+
scheduledSummaryDate: M?.absoluteLabel,
|
|
506
|
+
scheduledStatusLabel: M ? g.scheduledStatusBadge(M.label) : void 0,
|
|
507
|
+
showApprovalOverrideNotice: !Pt && Mt,
|
|
508
|
+
awaitingApprovalNotice: !Pt && !Nt && !Mt && T?.status === "approve_in_progress" && T?.approval_policy_id ? Ft ? g.awaitingApprovalNotice(Ft) : g.awaitingApprovalUnknownNotice : void 0,
|
|
509
|
+
payTo: {
|
|
510
|
+
onEdit: B.mode === "resolved" ? B.onEdit : void 0,
|
|
511
|
+
paymentInstructions: B.paymentInstructions,
|
|
512
|
+
detailsWarning: B.detailsWarning,
|
|
513
|
+
editForm: B.mode === "creating" ? B.newVendorForm : void 0
|
|
514
|
+
},
|
|
515
|
+
hideMissingPaymentInstructions: T?.status === "paid" || T?.status === "canceled",
|
|
516
|
+
isLoading: Gt,
|
|
517
|
+
isError: Kt,
|
|
518
|
+
paymentHistoryError: j.isError || Y.isError,
|
|
519
|
+
paymentHistoryLoading: j.isResolving || Y.isLoading,
|
|
520
|
+
historyError: Y.isError,
|
|
521
|
+
historyLoading: Y.isLoading || tn,
|
|
522
|
+
historyNamesError: rn
|
|
523
|
+
} : void 0,
|
|
524
|
+
isLineItemsLoading: Wt,
|
|
525
|
+
isSaving: Ht || R,
|
|
526
|
+
isSavingDraft: V.isSavingDraft,
|
|
527
|
+
isSubmitting: V.isFinalizing,
|
|
528
|
+
onCancel: pn,
|
|
529
|
+
onCollapse: m ? hn : void 0,
|
|
530
|
+
onSaveDraft: V.saveDraft,
|
|
531
|
+
onFinalize: V.finalize,
|
|
532
|
+
scrollToErrorToken: V.scrollToErrorToken,
|
|
533
|
+
showSubmit: !O && E,
|
|
534
|
+
testId: s.dialog
|
|
535
|
+
}),
|
|
536
|
+
/* @__PURE__ */ d(fe, {
|
|
537
|
+
open: st,
|
|
538
|
+
onSaveDraft: vn,
|
|
539
|
+
onDiscard: gn,
|
|
540
|
+
onCancel: () => _(!1),
|
|
541
|
+
isSaving: V.isSavingDraft,
|
|
542
|
+
isSaveDraftDisabled: _n,
|
|
543
|
+
labels: g.unsavedChanges,
|
|
544
|
+
testId: s.unsavedDialog,
|
|
545
|
+
saveDraftTestId: s.unsavedSaveDraft,
|
|
546
|
+
discardTestId: s.unsavedDiscard,
|
|
547
|
+
closeTestId: s.unsavedClose
|
|
548
|
+
}),
|
|
549
|
+
/* @__PURE__ */ d(ce, {
|
|
550
|
+
open: !!ct,
|
|
551
|
+
onDiscard: () => {
|
|
552
|
+
let e = ct;
|
|
553
|
+
v(void 0), e?.();
|
|
554
|
+
},
|
|
555
|
+
onKeepEditing: () => v(void 0),
|
|
556
|
+
labels: g.discardChanges,
|
|
557
|
+
testId: s.discardDialog,
|
|
558
|
+
discardTestId: s.discardConfirm
|
|
559
|
+
}),
|
|
560
|
+
/* @__PURE__ */ d(o, {
|
|
561
|
+
...zt,
|
|
562
|
+
labels: { cancelButton: g.actions.decisionDialog.cancelButton },
|
|
563
|
+
testId: s.decisionDialog,
|
|
564
|
+
confirmTestId: s.decisionConfirm,
|
|
565
|
+
reasonTestId: s.decisionReason
|
|
566
|
+
}),
|
|
567
|
+
/* @__PURE__ */ d(o, {
|
|
568
|
+
...Vt.dialog,
|
|
569
|
+
labels: { cancelButton: g.actions.decisionDialog.cancelButton },
|
|
570
|
+
testId: s.deleteDraftDialog,
|
|
571
|
+
confirmTestId: s.deleteDraftConfirm
|
|
572
|
+
}),
|
|
573
|
+
/* @__PURE__ */ d(o, {
|
|
574
|
+
open: $.removeConfirmation.open,
|
|
575
|
+
copy: $.removeConfirmation.copy,
|
|
576
|
+
onConfirm: $.removeConfirmation.onConfirm,
|
|
577
|
+
onCancel: $.removeConfirmation.onCancel,
|
|
578
|
+
isPending: $.removeConfirmation.isPending,
|
|
579
|
+
confirmIcon: /* @__PURE__ */ d(Ke, {}),
|
|
580
|
+
labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
|
|
581
|
+
testId: s.duplicateRemoveDialog,
|
|
582
|
+
confirmTestId: s.duplicateRemoveConfirm
|
|
583
|
+
}),
|
|
584
|
+
/* @__PURE__ */ d(o, {
|
|
585
|
+
open: $.cancelRowConfirmation.open,
|
|
586
|
+
copy: $.cancelRowConfirmation.copy,
|
|
587
|
+
onConfirm: $.cancelRowConfirmation.onConfirm,
|
|
588
|
+
onCancel: $.cancelRowConfirmation.onCancel,
|
|
589
|
+
isPending: $.cancelRowConfirmation.isPending,
|
|
590
|
+
labels: { cancelButton: $.cancelRowConfirmation.cancelButtonLabel },
|
|
591
|
+
testId: s.duplicateCancelRowDialog,
|
|
592
|
+
confirmTestId: s.duplicateCancelRowConfirm
|
|
593
|
+
}),
|
|
594
|
+
/* @__PURE__ */ d(o, {
|
|
595
|
+
open: $.keepRowConfirmation.open,
|
|
596
|
+
copy: $.keepRowConfirmation.copy,
|
|
597
|
+
onConfirm: $.keepRowConfirmation.onConfirm,
|
|
598
|
+
onCancel: $.keepRowConfirmation.onCancel,
|
|
599
|
+
isPending: $.keepRowConfirmation.isPending,
|
|
600
|
+
labels: { cancelButton: $.keepRowConfirmation.cancelButtonLabel }
|
|
601
|
+
}),
|
|
602
|
+
$e?.({
|
|
603
|
+
ref: Ot,
|
|
604
|
+
payable: T,
|
|
605
|
+
payableId: H,
|
|
606
|
+
isPayBillEnabled: m,
|
|
607
|
+
hasScheduledPayment: j.hasScheduledPayment,
|
|
608
|
+
onMissingAchInstructions: _t ? F.openPaymentInstructions : void 0,
|
|
609
|
+
onMarkAsPaidPendingChange: At
|
|
610
|
+
})
|
|
611
|
+
] });
|
|
612
|
+
}
|
|
46
613
|
//#endregion
|
|
47
|
-
export {
|
|
614
|
+
export { Je as BillCreateDialog, Je as default };
|