@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,92 +1,5 @@
|
|
|
1
|
-
|
|
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 "../../../shared/counterpart-management/feature/dist/index.js";
|
|
13
|
-
import { mergeVendorInlineFormLabels as o } from "./index38.js";
|
|
14
|
-
import { useMemo as s } from "react";
|
|
15
|
-
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
1
|
+
import { BILL_PAY_WIDGET_NAME as e } from "../../util/dist/lib/widgetName.js";
|
|
16
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
|
|
17
|
-
|
|
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
|
-
});
|
|
90
|
-
}
|
|
3
|
+
var t = { Mounted: `${e}.mounted` }, n = e;
|
|
91
4
|
//#endregion
|
|
92
|
-
export {
|
|
5
|
+
export { t as BillPayWidgetAnalyticsEvent, n as WIDGET_NAME };
|
|
@@ -2,414 +2,45 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
-
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
-
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import "../../../shared/ui/dist/index.js";
|
|
10
|
-
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
5
|
+
import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
6
|
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import "
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { useCounterpartForm as le } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
|
|
20
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
21
|
-
import { VENDOR_SECTION_PROPS_LABELS_EN as ue } from "./index38.js";
|
|
22
|
-
import { buildVendorPrefill as de } from "./index40.js";
|
|
23
|
-
import { VendorInlineForm as fe } from "./index41.js";
|
|
24
|
-
import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
25
|
-
import { jsx as pe } from "react/jsx-runtime";
|
|
7
|
+
import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index41.js";
|
|
8
|
+
import { Payables as r } from "../../../monite-sdk/dist/index436.js";
|
|
9
|
+
import "../../../monite-sdk/dist/index.js";
|
|
10
|
+
import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
|
|
11
|
+
import "../../../shared/monite-wrapper/feature/dist/index.js";
|
|
12
|
+
import { useEffect as a } from "react";
|
|
13
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
26
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
accountHolderName: e.account_holder_name ?? "",
|
|
35
|
-
routingNumber: e.routing_number ?? "",
|
|
36
|
-
accountNumber: e.account_number ?? ""
|
|
37
|
-
};
|
|
15
|
+
var s = (e) => e;
|
|
16
|
+
function c(n) {
|
|
17
|
+
let i = e();
|
|
18
|
+
return a(() => {
|
|
19
|
+
i(t.Mounted);
|
|
20
|
+
}, [i]), /* @__PURE__ */ o(r, { ...n });
|
|
38
21
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_,
|
|
61
|
-
y,
|
|
62
|
-
ze,
|
|
63
|
-
We,
|
|
64
|
-
z
|
|
65
|
-
]), d(() => {
|
|
66
|
-
Re.current !== l && (Re.current = l, R(), Le((e) => e?.counterpartId === l ? e : void 0));
|
|
67
|
-
}, [l, R]), d(() => {
|
|
68
|
-
let e = setTimeout(() => {
|
|
69
|
-
De(w.trim());
|
|
70
|
-
}, he);
|
|
71
|
-
return () => clearTimeout(e);
|
|
72
|
-
}, [w]);
|
|
73
|
-
let B = ae({
|
|
74
|
-
sort: "counterpart_name",
|
|
75
|
-
order: "asc",
|
|
76
|
-
limit: me,
|
|
77
|
-
counterpart_name__icontains: T || void 0,
|
|
78
|
-
is_vendor: !0,
|
|
79
|
-
enabled: !y && (E === "edit" || !E && !l) && ye && Te
|
|
22
|
+
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
|
|
23
|
+
return /* @__PURE__ */ o(i, {
|
|
24
|
+
widgetName: n,
|
|
25
|
+
baseUrl: e,
|
|
26
|
+
widgetToken: t,
|
|
27
|
+
organizationId: r,
|
|
28
|
+
configClient: a,
|
|
29
|
+
gatewayRouting: l,
|
|
30
|
+
linkComponent: u,
|
|
31
|
+
implementation: d,
|
|
32
|
+
uiFramework: f,
|
|
33
|
+
errorFallback: p,
|
|
34
|
+
onError: m,
|
|
35
|
+
finopsThemeColors: h,
|
|
36
|
+
analytics: g,
|
|
37
|
+
disclosuresAcceptance: _,
|
|
38
|
+
providerLabels: v,
|
|
39
|
+
children: /* @__PURE__ */ o(c, {
|
|
40
|
+
...b,
|
|
41
|
+
pageTitleComponent: y
|
|
42
|
+
})
|
|
80
43
|
});
|
|
81
|
-
d(() => {
|
|
82
|
-
B.isPlaceholderData || (Oe.current = T);
|
|
83
|
-
}, [T, B.isPlaceholderData]);
|
|
84
|
-
let Ke = B.isPlaceholderData && Oe.current !== T, V = ce({
|
|
85
|
-
selectedId: l,
|
|
86
|
-
enabled: Te
|
|
87
|
-
}), qe = oe(), Je = se(), H = le({
|
|
88
|
-
view: Ae,
|
|
89
|
-
setView: je,
|
|
90
|
-
selectedId: Me,
|
|
91
|
-
setSelectedId: Ne,
|
|
92
|
-
messages: a,
|
|
93
|
-
counterpartType: "vendor",
|
|
94
|
-
counterpart: V.counterpart,
|
|
95
|
-
primaryAddress: V.primaryAddress,
|
|
96
|
-
includeBankAccount: !1
|
|
97
|
-
}), { openCreate: Ye, openEdit: Xe, close: Ze, setValues: U, submit: Qe } = H, W = f(() => de(v), [v]), G = W?.bankAccount, K = f(() => {
|
|
98
|
-
let e = V.counterpart;
|
|
99
|
-
if (!e) return;
|
|
100
|
-
if (V.isBankAccountsLoading) return {
|
|
101
|
-
name: c(e),
|
|
102
|
-
email: s(e),
|
|
103
|
-
methodLabel: C.paymentMethodLoading,
|
|
104
|
-
hasPaymentInstructions: !1
|
|
105
|
-
};
|
|
106
|
-
if (V.isBankAccountsError) return {
|
|
107
|
-
name: c(e),
|
|
108
|
-
email: s(e),
|
|
109
|
-
methodLabel: C.paymentMethodUnavailable,
|
|
110
|
-
hasPaymentInstructions: !1
|
|
111
|
-
};
|
|
112
|
-
let t = ne(V.bankAccounts);
|
|
113
|
-
return {
|
|
114
|
-
name: c(e),
|
|
115
|
-
email: s(e),
|
|
116
|
-
methodLabel: t ? C.paymentInstructionsValue(t.account_number?.slice(-4) ?? "") : C.noMethod,
|
|
117
|
-
hasPaymentInstructions: !!t
|
|
118
|
-
};
|
|
119
|
-
}, [
|
|
120
|
-
V.bankAccounts,
|
|
121
|
-
V.counterpart,
|
|
122
|
-
V.isBankAccountsError,
|
|
123
|
-
V.isBankAccountsLoading,
|
|
124
|
-
C
|
|
125
|
-
]), $e = f(() => {
|
|
126
|
-
let e = Ge?.trim();
|
|
127
|
-
if (!e || l || E) return;
|
|
128
|
-
let t = G?.accountNumber;
|
|
129
|
-
return {
|
|
130
|
-
name: e,
|
|
131
|
-
email: v?.email ?? "",
|
|
132
|
-
description: C.pendingVendorDescription,
|
|
133
|
-
methodLabel: t ? C.paymentInstructionsValue(t.slice(-4)) : "",
|
|
134
|
-
hasPaymentInstructions: !!t
|
|
135
|
-
};
|
|
136
|
-
}, [
|
|
137
|
-
l,
|
|
138
|
-
G?.accountNumber,
|
|
139
|
-
v?.email,
|
|
140
|
-
Ge,
|
|
141
|
-
E,
|
|
142
|
-
C.paymentInstructionsValue,
|
|
143
|
-
C.pendingVendorDescription
|
|
144
|
-
]), q = l === _ ? ve : void 0, J = f(() => _e(V.bankAccounts, q), [V.bankAccounts, q]), et = f(() => ne(V.bankAccounts)?.id, [V.bankAccounts]), tt = !V.counterpart || V.isLoading || V.isFetching || V.isError || V.isBankAccountsLoading || V.isBankAccountsFetching || V.isBankAccountsError, nt = tt || V.isAddressesLoading || V.isAddressesFetching || V.isAddressesError, rt = b && !tt && V.isAddressesError ? { onRetry: V.refetchAddresses } : void 0, Y = u(() => {
|
|
145
|
-
Ze(), ke(void 0), D(!1), I.current = void 0;
|
|
146
|
-
}, [Ze]), it = u((e) => {
|
|
147
|
-
if (D(!1), I.current = void 0, e === "edit") Ne(l), Xe();
|
|
148
|
-
else {
|
|
149
|
-
Ye();
|
|
150
|
-
let e = w.trim();
|
|
151
|
-
U((t) => ({
|
|
152
|
-
...t,
|
|
153
|
-
entityType: "organization",
|
|
154
|
-
legalName: e || W?.legalName || t.legalName,
|
|
155
|
-
email: W?.email || t.email,
|
|
156
|
-
phone: W?.phone || t.phone,
|
|
157
|
-
address: W?.address ?? t.address
|
|
158
|
-
})), j(G ?? h), P(void 0), M.current = h;
|
|
159
|
-
}
|
|
160
|
-
ke(e);
|
|
161
|
-
}, [
|
|
162
|
-
l,
|
|
163
|
-
G,
|
|
164
|
-
Ye,
|
|
165
|
-
Xe,
|
|
166
|
-
w,
|
|
167
|
-
U,
|
|
168
|
-
W
|
|
169
|
-
]), at = u(() => {
|
|
170
|
-
let e = J ? ge(J) : h;
|
|
171
|
-
M.current = e, j(e), P(void 0), k(!0);
|
|
172
|
-
}, [J]), ot = u((e) => {
|
|
173
|
-
j((t) => ({
|
|
174
|
-
...t,
|
|
175
|
-
...e
|
|
176
|
-
})), P(void 0);
|
|
177
|
-
}, []), st = u(() => {
|
|
178
|
-
Ue ? S(R) : R();
|
|
179
|
-
}, [
|
|
180
|
-
R,
|
|
181
|
-
S,
|
|
182
|
-
Ue
|
|
183
|
-
]), X = u(() => {
|
|
184
|
-
Y(), R();
|
|
185
|
-
}, [R, Y]), Z = Pe || Ue, Q = u((e) => {
|
|
186
|
-
let t = () => {
|
|
187
|
-
X(), e();
|
|
188
|
-
};
|
|
189
|
-
Z ? S(t) : t();
|
|
190
|
-
}, [
|
|
191
|
-
S,
|
|
192
|
-
X,
|
|
193
|
-
Z
|
|
194
|
-
]), ct = u(() => {
|
|
195
|
-
Z ? S(X) : X();
|
|
196
|
-
}, [
|
|
197
|
-
S,
|
|
198
|
-
X,
|
|
199
|
-
Z
|
|
200
|
-
]), lt = u(async (t) => {
|
|
201
|
-
let n = l, r = !1, i = Fe.current;
|
|
202
|
-
if (!g(i, M.current)) {
|
|
203
|
-
let e = ie(i);
|
|
204
|
-
if (Object.keys(e).length > 0) return P(e), E !== "create" && k(!0), { ok: !1 };
|
|
205
|
-
}
|
|
206
|
-
if (E === "edit" && nt) return { ok: !1 };
|
|
207
|
-
if (E) {
|
|
208
|
-
if (E === "create" && I.current) n = I.current;
|
|
209
|
-
else {
|
|
210
|
-
let e = await Qe();
|
|
211
|
-
if (!e.ok) return { ok: !1 };
|
|
212
|
-
E === "create" ? (n = e.counterpartId, I.current = n) : n = e.counterpartId ?? n;
|
|
213
|
-
}
|
|
214
|
-
E === "create" && (r = !0);
|
|
215
|
-
}
|
|
216
|
-
if (!n) return { ok: !0 };
|
|
217
|
-
let a = V.isBankAccountsLoading || V.isBankAccountsFetching || V.isBankAccountsError;
|
|
218
|
-
if (g(i, M.current)) {
|
|
219
|
-
let e = F ?? q;
|
|
220
|
-
return e ? (t && (k(!1), E && Y()), r && z(n), {
|
|
221
|
-
ok: !0,
|
|
222
|
-
counterpartId: n,
|
|
223
|
-
counterpartBankAccountId: e
|
|
224
|
-
}) : r ? (t && Y(), z(n), {
|
|
225
|
-
ok: !0,
|
|
226
|
-
counterpartId: n
|
|
227
|
-
}) : a ? { ok: !1 } : (t && (k(!1), E && Y()), {
|
|
228
|
-
ok: !0,
|
|
229
|
-
counterpartId: n,
|
|
230
|
-
counterpartBankAccountId: et
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
if (a) return { ok: !1 };
|
|
234
|
-
P(void 0);
|
|
235
|
-
let o = re(V.bankAccounts, F ?? J?.id), s;
|
|
236
|
-
try {
|
|
237
|
-
o.kind === "update" ? (await Je.mutateAsync({
|
|
238
|
-
path: {
|
|
239
|
-
counterpart_id: n,
|
|
240
|
-
bank_account_id: o.bankAccountId
|
|
241
|
-
},
|
|
242
|
-
body: te(i, { includeAchDefaults: o.includeAchDefaults })
|
|
243
|
-
}), s = o.bankAccountId) : s = (await qe.mutateAsync({
|
|
244
|
-
path: { counterpart_id: n },
|
|
245
|
-
body: ee(i, { isDefaultForCurrency: o.isDefaultForCurrency })
|
|
246
|
-
}))?.id;
|
|
247
|
-
} catch {
|
|
248
|
-
return e.error(C.bankAccountSaveFailed), {
|
|
249
|
-
ok: !1,
|
|
250
|
-
counterpartId: n
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
return M.current = i, Le(s ? {
|
|
254
|
-
counterpartId: n,
|
|
255
|
-
bankAccountId: s
|
|
256
|
-
} : void 0), t && (k(!1), E && Y()), r && z(n), {
|
|
257
|
-
ok: !0,
|
|
258
|
-
counterpartId: n,
|
|
259
|
-
counterpartBankAccountId: s
|
|
260
|
-
};
|
|
261
|
-
}, [
|
|
262
|
-
Y,
|
|
263
|
-
l,
|
|
264
|
-
qe,
|
|
265
|
-
V.bankAccounts,
|
|
266
|
-
V.isBankAccountsError,
|
|
267
|
-
V.isBankAccountsFetching,
|
|
268
|
-
V.isBankAccountsLoading,
|
|
269
|
-
E,
|
|
270
|
-
nt,
|
|
271
|
-
q,
|
|
272
|
-
et,
|
|
273
|
-
z,
|
|
274
|
-
J,
|
|
275
|
-
Qe,
|
|
276
|
-
Je,
|
|
277
|
-
F
|
|
278
|
-
]), ut = u((e) => {
|
|
279
|
-
if (L.current) return L.current;
|
|
280
|
-
let t = e?.closeOnSuccess ?? !0, n = (async () => {
|
|
281
|
-
He(!0);
|
|
282
|
-
try {
|
|
283
|
-
return await lt(t);
|
|
284
|
-
} finally {
|
|
285
|
-
L.current = void 0, He(!1);
|
|
286
|
-
}
|
|
287
|
-
})();
|
|
288
|
-
return L.current = n, n;
|
|
289
|
-
}, [lt]), dt = u(() => {
|
|
290
|
-
k(!1), E && Y();
|
|
291
|
-
}, [E, Y]), ft = f(() => (B.data?.data ?? []).map((e) => ({
|
|
292
|
-
name: c(e),
|
|
293
|
-
email: s(e),
|
|
294
|
-
onSelect: () => {
|
|
295
|
-
Q(() => z(e.id));
|
|
296
|
-
}
|
|
297
|
-
})), [
|
|
298
|
-
B.data,
|
|
299
|
-
Q,
|
|
300
|
-
z
|
|
301
|
-
]), pt = u((e) => {
|
|
302
|
-
D(!0), U((t) => e.entityType === "individual" && t.entityType !== "individual" ? {
|
|
303
|
-
...t,
|
|
304
|
-
...e,
|
|
305
|
-
firstName: t.firstName || t.legalName,
|
|
306
|
-
legalName: t.legalName
|
|
307
|
-
} : e.entityType === "organization" && t.entityType !== "organization" ? {
|
|
308
|
-
...t,
|
|
309
|
-
...e,
|
|
310
|
-
legalName: t.legalName || [t.firstName, t.lastName].filter(Boolean).join(" ")
|
|
311
|
-
} : {
|
|
312
|
-
...t,
|
|
313
|
-
...e
|
|
314
|
-
});
|
|
315
|
-
}, [U]), mt = u((e) => {
|
|
316
|
-
D(!0), U((t) => ({
|
|
317
|
-
...t,
|
|
318
|
-
address: {
|
|
319
|
-
...t.address,
|
|
320
|
-
...e
|
|
321
|
-
}
|
|
322
|
-
}));
|
|
323
|
-
}, [U]), ht = {
|
|
324
|
-
query: w,
|
|
325
|
-
onQueryChange: Ee,
|
|
326
|
-
isLoading: !ye || !we || !!l && V.isLoading || B.isLoading || B.isFetching && Ke,
|
|
327
|
-
onAddVendor: () => {
|
|
328
|
-
Q(() => it("create"));
|
|
329
|
-
},
|
|
330
|
-
results: ft
|
|
331
|
-
}, gt = x && (E === "create" || !tt) ? {
|
|
332
|
-
isOpen: O,
|
|
333
|
-
values: A,
|
|
334
|
-
errors: N,
|
|
335
|
-
onOpen: at,
|
|
336
|
-
onCancel: st,
|
|
337
|
-
onChange: ot
|
|
338
|
-
} : void 0, _t = E !== "create" && gt ? {
|
|
339
|
-
...gt,
|
|
340
|
-
onOpen: E === "edit" ? () => Q(at) : gt.onOpen,
|
|
341
|
-
canEditExisting: Se
|
|
342
|
-
} : void 0, vt = H.isSubmitting || qe.isPending || Je.isPending, $ = {
|
|
343
|
-
prepareVendorForSave: ut,
|
|
344
|
-
isVendorSavePending: Ve || vt,
|
|
345
|
-
hasUnsavedVendorChanges: Z,
|
|
346
|
-
isPendingVendor: !!$e,
|
|
347
|
-
isEditingPayTo: !!E || O,
|
|
348
|
-
activePayToOperation: E ? "vendor" : O ? K?.hasPaymentInstructions ? "existingInstructions" : "missingInstructions" : void 0,
|
|
349
|
-
discardPayToEdits: X,
|
|
350
|
-
finalizePayToSave: dt,
|
|
351
|
-
openPaymentInstructions: at,
|
|
352
|
-
paymentInstructions: _t,
|
|
353
|
-
detailsWarning: rt
|
|
354
|
-
}, yt = E === "create" && x ? {
|
|
355
|
-
values: A,
|
|
356
|
-
errors: N,
|
|
357
|
-
onChange: ot,
|
|
358
|
-
isExtracted: !!(G && g(A, G))
|
|
359
|
-
} : void 0;
|
|
360
|
-
if (E) return {
|
|
361
|
-
mode: "creating",
|
|
362
|
-
summary: K,
|
|
363
|
-
newVendorForm: /* @__PURE__ */ pe(fe, {
|
|
364
|
-
mode: E,
|
|
365
|
-
values: H.values,
|
|
366
|
-
errors: H.errors,
|
|
367
|
-
onChange: pt,
|
|
368
|
-
onAddressChange: mt,
|
|
369
|
-
sectionsToExpand: H.sectionsToExpand,
|
|
370
|
-
onAddressExpand: H.expandAddress,
|
|
371
|
-
onCancel: ct,
|
|
372
|
-
onSave: ut,
|
|
373
|
-
isSaving: vt,
|
|
374
|
-
search: E === "edit" && !y ? ht : void 0,
|
|
375
|
-
paymentInstructions: yt
|
|
376
|
-
}),
|
|
377
|
-
...$
|
|
378
|
-
};
|
|
379
|
-
if (K) return {
|
|
380
|
-
mode: "resolved",
|
|
381
|
-
summary: K,
|
|
382
|
-
onEdit: b && !nt ? () => Q(() => it("edit")) : void 0,
|
|
383
|
-
...$
|
|
384
|
-
};
|
|
385
|
-
if ($e) {
|
|
386
|
-
let e = () => Q(() => {
|
|
387
|
-
Be(!0), it("create");
|
|
388
|
-
});
|
|
389
|
-
return {
|
|
390
|
-
mode: "resolved",
|
|
391
|
-
summary: $e,
|
|
392
|
-
onEdit: b ? e : void 0,
|
|
393
|
-
error: xe,
|
|
394
|
-
...$,
|
|
395
|
-
showPaymentInstructions: !0,
|
|
396
|
-
paymentInstructions: b && x ? {
|
|
397
|
-
isOpen: !1,
|
|
398
|
-
values: A,
|
|
399
|
-
errors: N,
|
|
400
|
-
onOpen: e,
|
|
401
|
-
onChange: ot,
|
|
402
|
-
onCancel: st,
|
|
403
|
-
canEditExisting: !0
|
|
404
|
-
} : void 0
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
return {
|
|
408
|
-
mode: "selecting",
|
|
409
|
-
error: B.isError ? C.searchFailed : V.isError ? C.vendorDetailsFailed : xe,
|
|
410
|
-
search: ht,
|
|
411
|
-
...$
|
|
412
|
-
};
|
|
413
44
|
}
|
|
414
45
|
//#endregion
|
|
415
|
-
export {
|
|
46
|
+
export { l as BillPayWidgetMonite, l as default };
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function e(e) {
|
|
3
|
-
return new Promise((t, n) => {
|
|
4
|
-
let r = new FileReader();
|
|
5
|
-
r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("Failed to read file")), r.onload = () => {
|
|
6
|
-
let e = r.result;
|
|
7
|
-
if (typeof e != "string") {
|
|
8
|
-
n(/* @__PURE__ */ Error("Failed to read file as a data URL"));
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
t(e.slice(e.indexOf(",") + 1));
|
|
12
|
-
}, r.readAsDataURL(e);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { e as encodeFileToBase64 };
|
|
1
|
+
import "./index42.js";
|
|
@@ -1,87 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { countSuspectedPayableDuplicateGroups as e } from "../../util/dist/lib/payableDuplicates.js";
|
|
6
|
+
import { usePayablesQuery as t } from "../../data-access/dist/lib/usePayablesQueries/usePayablesQuery.js";
|
|
7
|
+
import "../../data-access/dist/index.js";
|
|
2
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return Number.isFinite(n) && n > 0 ? n : null;
|
|
12
|
-
}
|
|
13
|
-
function i(e) {
|
|
14
|
-
return !!(e.description.trim() || e.glCode.trim() || n(e.price) !== null || n(e.amount) !== null);
|
|
15
|
-
}
|
|
16
|
-
function a(e) {
|
|
17
|
-
return n(e) ?? 0;
|
|
18
|
-
}
|
|
19
|
-
function o(e) {
|
|
20
|
-
let t = Number.parseFloat(e);
|
|
21
|
-
return Number.isFinite(t) ? t : 0;
|
|
22
|
-
}
|
|
23
|
-
function s(e) {
|
|
24
|
-
let t = n(e);
|
|
25
|
-
return t === null ? e : c(t);
|
|
26
|
-
}
|
|
27
|
-
function c(e) {
|
|
28
|
-
return (e / 100).toFixed(2);
|
|
29
|
-
}
|
|
30
|
-
function l({ values: e, initialLineItems: r, counterpartId: i, clearCounterpart: a, counterpartBankAccountId: o, editedTotals: s, currentTotals: c, lineItems: l, document: f, includeBlankPoNumber: p = !0 }) {
|
|
31
|
-
let m = { currency: t };
|
|
32
|
-
i ? m.counterpart_id = i : a && (m.counterpart_id = null), i ? m.counterpart_bank_account_id = o ?? null : a && (m.counterpart_bank_account_id = null), e.invoiceNumber && (m.document_id = e.invoiceNumber), e.invoiceDate && (m.issued_at = e.invoiceDate), e.dueDate && (m.due_date = e.dueDate);
|
|
33
|
-
let h = e.poNumber.trim();
|
|
34
|
-
if ((h || p) && (m.purchase_order_number = h || null), f && (m.base64_encoded_file = f.base64EncodedFile, m.file_name = f.fileName), s && (m.discount = n(s.discount) ?? 0, m.tax_amount = n(s.tax) ?? 0, s.total !== void 0 && (m.total_amount = n(s.total) ?? 0)), c && l) {
|
|
35
|
-
let e = d(l), t = n(c.tax) ?? 0, r = n(c.discount) ?? 0, i = c.total === void 0 ? (e ?? 0) - r + t : n(c.total) ?? 0;
|
|
36
|
-
e !== void 0 && (m.subtotal = e), m.discount = r, m.tax_amount = t, m.total_amount = i;
|
|
37
|
-
} else if (r && !("total_amount" in m)) {
|
|
38
|
-
let e = u(r, {
|
|
39
|
-
tax: s?.tax,
|
|
40
|
-
discount: s?.discount
|
|
41
|
-
});
|
|
42
|
-
e !== void 0 && (m.total_amount = e);
|
|
43
|
-
}
|
|
44
|
-
return m;
|
|
45
|
-
}
|
|
46
|
-
function u(e, { tax: t, discount: r }) {
|
|
47
|
-
let i = d(e);
|
|
48
|
-
if (i !== void 0) return i + (t ? n(t) ?? 0 : 0) - (r ? n(r) ?? 0 : 0);
|
|
49
|
-
}
|
|
50
|
-
function d(e) {
|
|
51
|
-
let t = !1, r = e.reduce((e, r) => {
|
|
52
|
-
if (!i(r)) return e;
|
|
53
|
-
let a = n(r.amount);
|
|
54
|
-
return a === null ? e : (t = !0, e + a);
|
|
55
|
-
}, 0);
|
|
56
|
-
if (t) return r;
|
|
57
|
-
}
|
|
58
|
-
function f({ lineItems: e, editedTotals: t }) {
|
|
59
|
-
let r = d(e), i = n(t.tax) ?? 0, a = n(t.discount) ?? 0, o = {
|
|
60
|
-
discount: a,
|
|
61
|
-
tax_amount: i
|
|
62
|
-
};
|
|
63
|
-
return r !== void 0 && (o.subtotal = r), t.total === void 0 ? r !== void 0 && (o.total_amount = r - a + i) : o.total_amount = n(t.total) ?? 0, o;
|
|
64
|
-
}
|
|
65
|
-
function p(e) {
|
|
66
|
-
return e.filter(i).map((e) => {
|
|
67
|
-
let t = n(e.amount), i = r(e.quantity) ?? 1, a = n(e.price) ?? (t === null ? 0 : Math.round(t / i)), o = Math.round(i * a), s = t ?? o;
|
|
68
|
-
return {
|
|
69
|
-
name: e.description,
|
|
70
|
-
quantity: i,
|
|
71
|
-
unit_price: a,
|
|
72
|
-
tax: 0,
|
|
73
|
-
subtotal: s,
|
|
74
|
-
tax_amount: 0,
|
|
75
|
-
total: s,
|
|
76
|
-
...e.glCode ? { ledger_account_id: e.glCode } : {}
|
|
77
|
-
};
|
|
9
|
+
function n(e) {
|
|
10
|
+
return e.isError && e.data === void 0;
|
|
11
|
+
}
|
|
12
|
+
function r({ enabled: r = !0 } = {}) {
|
|
13
|
+
let i = t({
|
|
14
|
+
duplicate_match_status: "suspected",
|
|
15
|
+
limit: 100,
|
|
16
|
+
enabled: r
|
|
78
17
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
18
|
+
return {
|
|
19
|
+
count: i.data?.data?.length ?? 0,
|
|
20
|
+
groupCount: e(i.data?.data ?? []),
|
|
21
|
+
isCapped: !!i.data?.next_pagination_token,
|
|
22
|
+
isError: n(i),
|
|
23
|
+
isLoading: i.isLoading
|
|
24
|
+
};
|
|
85
25
|
}
|
|
86
26
|
//#endregion
|
|
87
|
-
export {
|
|
27
|
+
export { r as useDuplicateBillsCount };
|