@tesouro/embedded-components-react 0.5.213 → 0.5.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +88 -1
- package/dist/index.js +2 -2
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +88 -1
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/shared/util-validation/dist/index5.js +7 -0
- 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/invoicing-widget/data-access/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/data-access/dist/index31.js → invoicing-widget/data-access/dist/index12.js} +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
- 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/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
- 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/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,11 +1,187 @@
|
|
|
1
|
+
import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o, mergeBillDetailActionsLabels as s, mergePaymentHistoryMethodLabels as c } from "../../util/dist/lib/billDetailLabels.js";
|
|
2
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as l } from "./index8.js";
|
|
3
|
+
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as u } from "./index22.js";
|
|
4
|
+
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as d } from "./index23.js";
|
|
5
|
+
import { ACH_FIELD_GROUP_LABELS_EN as f } from "../../../shared/counterpart-management/ui/dist/index2.js";
|
|
6
|
+
import "../../../shared/counterpart-management/ui/dist/index.js";
|
|
7
|
+
import { DISCARD_CHANGES_DIALOG_LABELS_EN as p } from "../../ui/dist/index64.js";
|
|
8
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as m } from "../../ui/dist/index72.js";
|
|
9
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as h } from "../../ui/dist/index98.js";
|
|
10
|
+
import "../../ui/dist/index.js";
|
|
1
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
12
|
+
var g = {
|
|
13
|
+
unmappedValidationError: (e, t) => `${e}: ${t}`,
|
|
14
|
+
unknownValidationField: "(unknown field)",
|
|
15
|
+
requiredField: "This field is required.",
|
|
16
|
+
saveFailed: "We could not save this bill. Try again.",
|
|
17
|
+
discountTaxBlockedByLineItems: "Discount and Tax can't be saved on a bill with line items. Remove them, then save again.",
|
|
18
|
+
vendorResolutionFailed: "We couldn't create this vendor automatically. Select or add a vendor before submitting.",
|
|
19
|
+
finalizeFailed: "We could not submit this bill. Try again.",
|
|
20
|
+
draftSaved: "Bill saved as a draft.",
|
|
21
|
+
submittedSaved: "Bill updated.",
|
|
22
|
+
submittedDemoted: "Bill updated. It moved back to Drafts because some required details are missing.",
|
|
23
|
+
billFinalized: "Bill submitted for approval.",
|
|
24
|
+
numbersOnly: "Enter numbers only.",
|
|
25
|
+
unreadableMoney: "Enter a valid amount.",
|
|
26
|
+
unusableQuantity: "Enter a quantity greater than 0.",
|
|
27
|
+
lineItemsNeedAttention: "Check the highlighted line items before saving.",
|
|
28
|
+
unreadableDiscount: "Enter a valid discount amount.",
|
|
29
|
+
unreadableTax: "Enter a valid tax amount.",
|
|
30
|
+
unreadableTotal: "Enter a valid total amount.",
|
|
31
|
+
totalNotGreaterThanZero: "Total amount must be greater than $0.",
|
|
32
|
+
poNumberTooLong: "PO number must be 255 characters or fewer.",
|
|
33
|
+
implausibleInvoiceDate: "Enter an invoice date within the last 10 years, no more than 30 days from today.",
|
|
34
|
+
implausibleDueDate: "Enter a due date within the last 10 years and next 5 years.",
|
|
35
|
+
dueBeforeInvoiceDate: "Due date must be on or after the invoice date."
|
|
36
|
+
}, _ = {
|
|
37
|
+
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
38
|
+
noMethod: "No payment method on file",
|
|
39
|
+
paymentMethodLoading: "Loading payment method...",
|
|
40
|
+
paymentMethodUnavailable: "We could not load payment methods. Try again.",
|
|
41
|
+
searchFailed: "We could not load vendors. Try again.",
|
|
42
|
+
vendorDetailsFailed: "We could not load this vendor. Try again.",
|
|
43
|
+
pendingVendorDescription: "Will be created when submitted",
|
|
44
|
+
bankAccountSaveFailed: "We could not save these payment instructions. Try again."
|
|
45
|
+
}, v = {
|
|
46
|
+
attachFailed: "We could not attach that file. Try again.",
|
|
47
|
+
deleteFailed: "We could not remove that document. Try again.",
|
|
48
|
+
noDocument: "No document attached to this bill.",
|
|
49
|
+
pendingDeletionNotice: "This document will be removed when you save this bill.",
|
|
50
|
+
preview: d
|
|
51
|
+
}, y = {
|
|
52
|
+
...r,
|
|
53
|
+
notProvided: "Not provided",
|
|
54
|
+
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
55
|
+
paymentInstructionsNotSet: "Not set",
|
|
56
|
+
invoiceDateRow: "Invoice date",
|
|
57
|
+
dueDateRow: "Due date",
|
|
58
|
+
invoiceNumberRow: "Invoice number",
|
|
59
|
+
glCodeMissing: "GL code not specified",
|
|
60
|
+
glCodeUnavailable: "GL code unavailable",
|
|
61
|
+
qtyPriceValue: (e, t) => `${e} x ${t}`,
|
|
62
|
+
qtyOnlyValue: (e) => e,
|
|
63
|
+
subtotalRow: "Subtotal",
|
|
64
|
+
taxRow: "Tax",
|
|
65
|
+
discountRow: "Discounts",
|
|
66
|
+
totalRow: "Total",
|
|
67
|
+
paidOnLabel: (e) => `Paid on ${e}`,
|
|
68
|
+
paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
|
|
69
|
+
paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again.",
|
|
70
|
+
rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
|
|
71
|
+
rejectedOn: (e) => `Rejected on ${e}`,
|
|
72
|
+
rejectionMessage: (e) => `"${e}"`
|
|
73
|
+
}, b = {
|
|
74
|
+
newTitle: "New bill",
|
|
75
|
+
extractedTitle: (e) => `Bill from ${e}`,
|
|
76
|
+
viewTitle: (e) => `Bill from ${e}`,
|
|
77
|
+
readOnlyTitle: "Bill details",
|
|
78
|
+
addedOn: (e) => `Added on ${e}`,
|
|
79
|
+
unsavedChanges: h,
|
|
80
|
+
discardChanges: p,
|
|
81
|
+
scheduledRelativeDay: i,
|
|
82
|
+
scheduledSummary: o,
|
|
83
|
+
scheduledStatusBadge: a,
|
|
84
|
+
awaitingApprovalNotice: e,
|
|
85
|
+
awaitingApprovalUnknownNotice: t,
|
|
86
|
+
actions: n,
|
|
87
|
+
detail: y,
|
|
88
|
+
history: u,
|
|
89
|
+
approvalPolicyCopy: l,
|
|
90
|
+
deleteDraft: {
|
|
91
|
+
menuItem: "Delete draft",
|
|
92
|
+
dialog: {
|
|
93
|
+
title: "Delete this draft?",
|
|
94
|
+
description: "The draft and anything entered on it are removed. This can't be undone.",
|
|
95
|
+
confirmButton: "Delete draft"
|
|
96
|
+
},
|
|
97
|
+
error: "Couldn't delete this draft. Try again."
|
|
98
|
+
},
|
|
99
|
+
lineItemsGlCodeUnavailable: {
|
|
100
|
+
loadError: "Couldn't load GL codes",
|
|
101
|
+
noAccess: "You don't have access to GL codes",
|
|
102
|
+
empty: "No GL codes set up yet"
|
|
103
|
+
},
|
|
104
|
+
rejectedBanner: m
|
|
105
|
+
};
|
|
106
|
+
function x(e) {
|
|
107
|
+
return {
|
|
108
|
+
...b,
|
|
109
|
+
...e,
|
|
110
|
+
actions: s(e?.actions),
|
|
111
|
+
detail: {
|
|
112
|
+
...b.detail,
|
|
113
|
+
...e?.detail,
|
|
114
|
+
paymentHistoryMethodLabels: c(e?.detail?.paymentHistoryMethodLabels)
|
|
115
|
+
},
|
|
116
|
+
history: {
|
|
117
|
+
...b.history,
|
|
118
|
+
...e?.history
|
|
119
|
+
},
|
|
120
|
+
lineItemsGlCodeUnavailable: {
|
|
121
|
+
...b.lineItemsGlCodeUnavailable,
|
|
122
|
+
...e?.lineItemsGlCodeUnavailable
|
|
123
|
+
},
|
|
124
|
+
unsavedChanges: {
|
|
125
|
+
...b.unsavedChanges,
|
|
126
|
+
...e?.unsavedChanges
|
|
127
|
+
},
|
|
128
|
+
discardChanges: {
|
|
129
|
+
...b.discardChanges,
|
|
130
|
+
...e?.discardChanges
|
|
131
|
+
},
|
|
132
|
+
rejectedBanner: {
|
|
133
|
+
...b.rejectedBanner,
|
|
134
|
+
...e?.rejectedBanner
|
|
135
|
+
},
|
|
136
|
+
approvalPolicyCopy: {
|
|
137
|
+
...b.approvalPolicyCopy,
|
|
138
|
+
...e?.approvalPolicyCopy
|
|
139
|
+
},
|
|
140
|
+
scheduledRelativeDay: {
|
|
141
|
+
...b.scheduledRelativeDay,
|
|
142
|
+
...e?.scheduledRelativeDay
|
|
143
|
+
},
|
|
144
|
+
deleteDraft: {
|
|
145
|
+
...b.deleteDraft,
|
|
146
|
+
...e?.deleteDraft,
|
|
147
|
+
dialog: (() => {
|
|
148
|
+
let t = {
|
|
149
|
+
...b.deleteDraft.dialog,
|
|
150
|
+
...e?.deleteDraft?.dialog
|
|
151
|
+
};
|
|
152
|
+
return delete t.reason, t;
|
|
153
|
+
})()
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
var S = {
|
|
158
|
+
createTitle: "New vendor",
|
|
159
|
+
editTitle: "Edit vendor",
|
|
160
|
+
switchVendorFieldLabel: "Switch to a different vendor",
|
|
161
|
+
nameLabel: "Business name",
|
|
162
|
+
addAddress: "Add address (optional)",
|
|
163
|
+
cancel: "Cancel",
|
|
164
|
+
save: "Save",
|
|
165
|
+
cancelAriaLabel: "Cancel vendor",
|
|
166
|
+
saveAriaLabel: "Save vendor",
|
|
167
|
+
paymentInstructionsHeading: "Payment instructions",
|
|
168
|
+
paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
|
|
169
|
+
paymentInstructionsExtracted: "We read these from the bill. Check them before saving.",
|
|
170
|
+
ach: f
|
|
171
|
+
};
|
|
172
|
+
function C(e) {
|
|
173
|
+
return {
|
|
174
|
+
...S,
|
|
175
|
+
...e,
|
|
176
|
+
ach: {
|
|
177
|
+
...S.ach,
|
|
178
|
+
...e?.ach,
|
|
179
|
+
fieldMarkers: {
|
|
180
|
+
...S.ach.fieldMarkers,
|
|
181
|
+
...e?.ach?.fieldMarkers
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
};
|
|
9
185
|
}
|
|
10
186
|
//#endregion
|
|
11
|
-
export {
|
|
187
|
+
export { g as BILL_CREATE_MESSAGE_LABELS_EN, b as BILL_CREATE_SCREEN_LABELS_EN, y as BILL_DETAIL_VIEW_LABELS_EN, v as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, S as VENDOR_INLINE_FORM_LABELS_EN, _ as VENDOR_SECTION_PROPS_LABELS_EN, x as mergeBillCreateScreenCopy, C as mergeVendorInlineFormLabels };
|
|
@@ -2,16 +2,79 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { createSourceDocumentPreview as e } from "./index23.js";
|
|
6
|
+
import { SourceDocumentPanel as t } from "../../ui/dist/index96.js";
|
|
7
|
+
import "../../ui/dist/index.js";
|
|
8
|
+
import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as n } from "./index24.js";
|
|
9
|
+
import { useAttachPayableFileMutation as r } from "../../data-access/dist/lib/usePayableMutations/useAttachPayableFileMutation.js";
|
|
6
10
|
import "../../data-access/dist/index.js";
|
|
11
|
+
import { useEffect as i, useState as a } from "react";
|
|
12
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
7
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
function s(e) {
|
|
15
|
+
let [t, n] = a();
|
|
16
|
+
return i(() => {
|
|
17
|
+
if (!e) {
|
|
18
|
+
n(void 0);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
let t = URL.createObjectURL(e);
|
|
22
|
+
return n(t), () => URL.revokeObjectURL(t);
|
|
23
|
+
}, [e]), t;
|
|
24
|
+
}
|
|
25
|
+
function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, readOnly: u, staging: d, deletion: f, labels: p }) {
|
|
26
|
+
let { stagedFile: m, onFileStaged: h, onClearStagedFile: g, isSaving: _ } = d ?? {}, { isPending: v, onRequest: y, onDetachNow: b, isDeleting: x, hasFailed: S } = f ?? {}, C = {
|
|
27
|
+
...n,
|
|
28
|
+
...p,
|
|
29
|
+
preview: {
|
|
30
|
+
...n.preview,
|
|
31
|
+
...p?.preview
|
|
32
|
+
}
|
|
33
|
+
}, w = r(), T = s(m), E = !!(a && !v || m);
|
|
34
|
+
if (!E && (c || w.isPending)) return /* @__PURE__ */ o(t, {
|
|
35
|
+
mode: "loading",
|
|
36
|
+
fileName: l
|
|
37
|
+
});
|
|
38
|
+
if (!E && u) return /* @__PURE__ */ o("div", {
|
|
39
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-sm ttw:text-muted-foreground",
|
|
40
|
+
children: C.noDocument
|
|
41
|
+
});
|
|
42
|
+
if (!E) return /* @__PURE__ */ o(t, {
|
|
43
|
+
mode: "upload",
|
|
44
|
+
uploadStatus: w.isPending || x ? "uploading" : "idle",
|
|
45
|
+
uploadErrorMessage: w.isError ? C.attachFailed : S ? C.deleteFailed : void 0,
|
|
46
|
+
noticeMessage: v && !S ? C.pendingDeletionNotice : void 0,
|
|
47
|
+
onFilesSelected: (e) => {
|
|
48
|
+
let [t] = e;
|
|
49
|
+
if (t) {
|
|
50
|
+
if (i) {
|
|
51
|
+
let e = () => w.mutate({
|
|
52
|
+
path: { payable_id: i },
|
|
53
|
+
file: t
|
|
54
|
+
});
|
|
55
|
+
if (v && b) {
|
|
56
|
+
b().then(e, () => void 0);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
e();
|
|
60
|
+
} else h?.(t);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
let D = a?.name ?? m?.name ?? "", O = e(a || {
|
|
65
|
+
name: D,
|
|
66
|
+
url: T ?? "",
|
|
67
|
+
mimetype: m?.type ?? ""
|
|
68
|
+
}, C.preview);
|
|
69
|
+
return /* @__PURE__ */ o(t, {
|
|
70
|
+
mode: "document",
|
|
71
|
+
fileName: D,
|
|
72
|
+
preview: O,
|
|
73
|
+
isDeleting: x,
|
|
74
|
+
deleteErrorMessage: S ? C.deleteFailed : void 0,
|
|
75
|
+
onDownload: a ? () => window.open(a.url, "_blank", "noopener,noreferrer") : void 0,
|
|
76
|
+
onDelete: u ? void 0 : a && i ? y : _ ? void 0 : g
|
|
77
|
+
});
|
|
15
78
|
}
|
|
16
79
|
//#endregion
|
|
17
|
-
export {
|
|
80
|
+
export { c as SourceDocumentContainer, c as default };
|
|
@@ -1,69 +1,35 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
-
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
-
import { useAllOrganizationRolesQuery as n } from "../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
|
|
8
|
-
import { useAllOrganizationUsersQuery as r } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
|
-
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { useWidgetConfig as i } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
-
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { usePayableApprovalRequestsQuery as a } from "../../data-access/dist/index16.js";
|
|
13
|
-
import "../../data-access/dist/index.js";
|
|
14
|
-
import { useGetApprovalPoliciesQuery as o } from "../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
|
|
15
|
-
import "../../../shared/approval-policy/data-access/dist/index.js";
|
|
16
|
-
import { buildApprovalPolicyCardView as s } from "./index22.js";
|
|
17
|
-
import { currentApprovalRound as c } from "./index3.js";
|
|
18
|
-
import { usePayableApprovalRoundStart as l } from "./index25.js";
|
|
19
|
-
import { buildPendingApproverGroups as u } from "./index23.js";
|
|
20
|
-
import { buildPendingApproverGroupsFromCardView as d } from "./index24.js";
|
|
21
|
-
import { useMemo as f } from "react";
|
|
22
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return {
|
|
53
|
-
view: N,
|
|
54
|
-
pendingApprovers: f(() => _ ? N ? d(N) : u({
|
|
55
|
-
requestsNewestFirst: E.data?.data,
|
|
56
|
-
roundStartedAt: D,
|
|
57
|
-
lookup: O
|
|
58
|
-
}) : [], [
|
|
59
|
-
_,
|
|
60
|
-
N,
|
|
61
|
-
E.data,
|
|
62
|
-
D,
|
|
63
|
-
O
|
|
64
|
-
]),
|
|
65
|
-
isLoading: !!m && (!h || C.isResolving || w.isResolving || T.isResolving || E.isLoading || E.isError || !b)
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e?.trim() ?? "";
|
|
4
|
+
}
|
|
5
|
+
function t(t) {
|
|
6
|
+
let n = e(t);
|
|
7
|
+
return n.length === 2 ? n.toUpperCase() : "";
|
|
8
|
+
}
|
|
9
|
+
function n(t) {
|
|
10
|
+
let n = e(t.bank_account?.routing_number), r = e(t.bank_account?.account_number);
|
|
11
|
+
if (n || r) return {
|
|
12
|
+
accountHolderName: e(t.bank_account?.account_holder_name) || e(t.name),
|
|
13
|
+
routingNumber: n,
|
|
14
|
+
accountNumber: r
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function r(r) {
|
|
18
|
+
if (!r) return;
|
|
19
|
+
let i = {
|
|
20
|
+
legalName: e(r.name),
|
|
21
|
+
email: e(r.email),
|
|
22
|
+
phone: e(r.phone),
|
|
23
|
+
address: {
|
|
24
|
+
line1: e(r.address?.line1),
|
|
25
|
+
line2: e(r.address?.line2),
|
|
26
|
+
city: e(r.address?.city),
|
|
27
|
+
state: t(r.address?.state),
|
|
28
|
+
postalCode: e(r.address?.postal_code)
|
|
29
|
+
},
|
|
30
|
+
bankAccount: n(r)
|
|
66
31
|
};
|
|
32
|
+
return i.legalName || i.email || i.phone || Object.values(i.address).some(Boolean) || i.bankAccount ? i : void 0;
|
|
67
33
|
}
|
|
68
34
|
//#endregion
|
|
69
|
-
export {
|
|
35
|
+
export { r as buildVendorPrefill };
|
|
@@ -1,13 +1,92 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { getStateOptions as t } from "../../../shared/util/dist/lib/usStates.js";
|
|
7
|
+
import { AchFieldGroup as n } from "../../../shared/counterpart-management/ui/dist/index5.js";
|
|
8
|
+
import { CounterpartFormFields as r, useFocusFirstInvalidField as i } from "../../../shared/counterpart-management/ui/dist/index9.js";
|
|
9
|
+
import "../../../shared/counterpart-management/ui/dist/index.js";
|
|
10
|
+
import { VendorSearchCombobox as a } from "../../ui/dist/index46.js";
|
|
11
|
+
import "../../ui/dist/index.js";
|
|
12
|
+
import { mergeVendorInlineFormLabels as o } from "./index24.js";
|
|
13
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
14
|
+
import { useMemo as s } from "react";
|
|
15
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
2
16
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js
|
|
3
|
-
function
|
|
4
|
-
let s =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
function u({ mode: u, values: d, errors: f, onChange: p, onAddressChange: m, sectionsToExpand: h, onAddressExpand: g, onCancel: _, onSave: v, isSaving: y = !1, search: b, paymentInstructions: x, labels: S }) {
|
|
18
|
+
let C = s(() => o(S), [S]), w = s(() => t(), []), T = i(f ?? {});
|
|
19
|
+
return /* @__PURE__ */ l("div", {
|
|
20
|
+
ref: T,
|
|
21
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ c("p", {
|
|
24
|
+
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
25
|
+
children: u === "edit" ? C.editTitle : C.createTitle
|
|
26
|
+
}),
|
|
27
|
+
u === "edit" && b ? /* @__PURE__ */ c(a, {
|
|
28
|
+
...b,
|
|
29
|
+
labels: { fieldLabel: C.switchVendorFieldLabel }
|
|
30
|
+
}) : null,
|
|
31
|
+
/* @__PURE__ */ c(r, {
|
|
32
|
+
mode: u,
|
|
33
|
+
counterpartMode: "vendor",
|
|
34
|
+
values: d,
|
|
35
|
+
errors: f,
|
|
36
|
+
stateOptions: w,
|
|
37
|
+
onChange: p,
|
|
38
|
+
onAddressChange: m,
|
|
39
|
+
sections: {
|
|
40
|
+
entityType: !0,
|
|
41
|
+
profileHeading: !1,
|
|
42
|
+
title: !1,
|
|
43
|
+
taxId: !1,
|
|
44
|
+
address: "collapsible",
|
|
45
|
+
bankAccount: !1
|
|
46
|
+
},
|
|
47
|
+
sectionsToExpand: h,
|
|
48
|
+
onAddressExpand: g,
|
|
49
|
+
labels: { businessNameLabel: C.nameLabel }
|
|
50
|
+
}),
|
|
51
|
+
x ? /* @__PURE__ */ l("div", {
|
|
52
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
53
|
+
children: [/* @__PURE__ */ l("div", {
|
|
54
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
55
|
+
children: [/* @__PURE__ */ c("p", {
|
|
56
|
+
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
57
|
+
children: C.paymentInstructionsHeading
|
|
58
|
+
}), /* @__PURE__ */ c("p", {
|
|
59
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
60
|
+
children: x.isExtracted ? C.paymentInstructionsExtracted : C.paymentInstructionsDescription
|
|
61
|
+
})]
|
|
62
|
+
}), /* @__PURE__ */ c(n, {
|
|
63
|
+
idPrefix: "vendor-inline-ach",
|
|
64
|
+
values: x.values,
|
|
65
|
+
errors: x.errors,
|
|
66
|
+
onChange: x.onChange,
|
|
67
|
+
labels: C.ach
|
|
68
|
+
})]
|
|
69
|
+
}) : null,
|
|
70
|
+
/* @__PURE__ */ l("div", {
|
|
71
|
+
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
72
|
+
children: [/* @__PURE__ */ c(e, {
|
|
73
|
+
type: "button",
|
|
74
|
+
variant: "outline",
|
|
75
|
+
onClick: _,
|
|
76
|
+
"aria-label": C.cancelAriaLabel,
|
|
77
|
+
disabled: y,
|
|
78
|
+
children: C.cancel
|
|
79
|
+
}), v ? /* @__PURE__ */ c(e, {
|
|
80
|
+
type: "button",
|
|
81
|
+
onClick: v,
|
|
82
|
+
"aria-label": C.saveAriaLabel,
|
|
83
|
+
loading: y,
|
|
84
|
+
disabled: y,
|
|
85
|
+
children: C.save
|
|
86
|
+
}) : null]
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
});
|
|
11
90
|
}
|
|
12
91
|
//#endregion
|
|
13
|
-
export {
|
|
92
|
+
export { u as VendorInlineForm, u as default };
|