@tesouro/embedded-components-react 0.5.221 → 0.5.223
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.css +84 -0
- package/dist/index.d.ts +239 -214
- package/dist/index.js +2 -2
- package/dist/lib/BillPayWidget.d.ts +151 -151
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +25 -0
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index10.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useForceApprovePayableMutation.js → bill-detail/data-access/dist/index11.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useForceRejectPayableMutation.js → bill-detail/data-access/dist/index12.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useReopenPayableMutation.js → bill-detail/data-access/dist/index13.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useSubmitPayableForApprovalMutation.js → bill-detail/data-access/dist/index14.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useUpdatePayableMutation.js → bill-detail/data-access/dist/index15.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useValidatePayableMutation.js → bill-detail/data-access/dist/index16.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index17.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablePaymentRecordsQuery.js → bill-detail/data-access/dist/index18.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableSuggestionsQuery.js → bill-detail/data-access/dist/index19.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableApprovalRequests.js → bill-detail/data-access/dist/index2.js} +6 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/payablePolicyAssignmentQueryOptions.js → bill-detail/data-access/dist/index20.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayableQuery.js → bill-detail/data-access/dist/index21.js} +9 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesByIdsQueries.js → bill-detail/data-access/dist/index22.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index23.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableHistoryQuery.js → bill-detail/data-access/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableLineItems.js → bill-detail/data-access/dist/index4.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useAttachPayableFileMutation.js → bill-detail/data-access/dist/index5.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useCancelPayableMutation.js → bill-detail/data-access/dist/index6.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index7.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index8.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index9.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index15.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index17.js → bill-detail/feature/dist/index16.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index18.js → bill-detail/feature/dist/index17.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index19.js → bill-detail/feature/dist/index18.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index20.js → bill-detail/feature/dist/index19.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index2.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index21.js → bill-detail/feature/dist/index20.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index22.js → bill-detail/feature/dist/index21.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index23.js → bill-detail/feature/dist/index22.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index24.js → bill-detail/feature/dist/index23.js} +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index25.js → bill-detail/feature/dist/index24.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index26.js → bill-detail/feature/dist/index25.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index27.js → bill-detail/feature/dist/index26.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index28.js → bill-detail/feature/dist/index27.js} +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index29.js → bill-detail/feature/dist/index28.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index30.js → bill-detail/feature/dist/index29.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index31.js → bill-detail/feature/dist/index30.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index32.js → bill-detail/feature/dist/index31.js} +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index33.js → bill-detail/feature/dist/index32.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index34.js → bill-detail/feature/dist/index33.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index35.js → bill-detail/feature/dist/index34.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index36.js → bill-detail/feature/dist/index35.js} +71 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index38.js → bill-detail/feature/dist/index37.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index39.js → bill-detail/feature/dist/index38.js} +49 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +67 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +229 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +87 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index29.js → bill-detail/ui/dist/index10.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index30.js → bill-detail/ui/dist/index11.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index31.js → bill-detail/ui/dist/index12.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index33.js → bill-detail/ui/dist/index14.js} +12 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index34.js → bill-detail/ui/dist/index15.js} +27 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index36.js → bill-detail/ui/dist/index17.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index37.js → bill-detail/ui/dist/index18.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index2.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index42.js → bill-detail/ui/dist/index20.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index43.js → bill-detail/ui/dist/index21.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index45.js → bill-detail/ui/dist/index23.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index46.js → bill-detail/ui/dist/index24.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index48.js → bill-detail/ui/dist/index26.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index49.js → bill-detail/ui/dist/index27.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index51.js → bill-detail/ui/dist/index29.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index52.js → bill-detail/ui/dist/index30.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index53.js → bill-detail/ui/dist/index31.js} +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index61.js → bill-detail/ui/dist/index33.js} +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index62.js → bill-detail/ui/dist/index34.js} +22 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index69.js → bill-detail/ui/dist/index36.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index70.js → bill-detail/ui/dist/index37.js} +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index72.js → bill-detail/ui/dist/index39.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index73.js → bill-detail/ui/dist/index40.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index64.js → bill-detail/ui/dist/index42.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index65.js → bill-detail/ui/dist/index43.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index89.js → bill-detail/ui/dist/index45.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index90.js → bill-detail/ui/dist/index46.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index95.js → bill-detail/ui/dist/index48.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index96.js → bill-detail/ui/dist/index49.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index98.js → bill-detail/ui/dist/index51.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index99.js → bill-detail/ui/dist/index52.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index54.js → bill-detail/ui/dist/index53.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/useFirstPayablesPagesQuery.js → bills-list/data-access/dist/index2.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesCountQueries.js → bills-list/data-access/dist/index3.js} +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesQuery.js → bills-list/data-access/dist/index4.js} +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index52.js → bills-list/feature/dist/index11.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index53.js → bills-list/feature/dist/index12.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index54.js → bills-list/feature/dist/index13.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index55.js → bills-list/feature/dist/index14.js} +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index56.js → bills-list/feature/dist/index15.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +398 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +246 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index44.js → bills-list/feature/dist/index2.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index45.js → bills-list/feature/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index46.js → bills-list/feature/dist/index4.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index47.js → bills-list/feature/dist/index5.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index48.js → bills-list/feature/dist/index6.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index49.js → bills-list/feature/dist/index7.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index50.js → bills-list/feature/dist/index8.js} +3 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index77.js → bills-list/ui/dist/index10.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index79.js → bills-list/ui/dist/index12.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index80.js → bills-list/ui/dist/index13.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index82.js → bills-list/ui/dist/index15.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index83.js → bills-list/ui/dist/index16.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index85.js → bills-list/ui/dist/index18.js} +15 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index86.js → bills-list/ui/dist/index19.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index87.js → bills-list/ui/dist/index20.js} +24 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index5.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index6.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index7.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index75.js → bills-list/ui/dist/index8.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index76.js → bills-list/ui/dist/index9.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +3 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +23 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +3 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +109 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +104 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +17 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +74 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/{index59.js → index4.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +2 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +219 -453
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +463 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +34 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +75 -310
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +121 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +317 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +30 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +4 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +90 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +24 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +231 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +3 -353
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/feature/dist/index16.js → shared/feature/dist/lib/calendar/useLocalCalendarDay.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +0 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +0 -396
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +0 -334
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +0 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +0 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +0 -100
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index35.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index38.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index41.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index44.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index47.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index50.js +0 -0
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js
CHANGED
|
@@ -1,465 +1,231 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { getStateOptions as e } from "../../../shared/util/dist/lib/usStates.js";
|
|
6
|
-
import { extractApiErrorMessage as t } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
7
|
-
import { COUNTERPART_MESSAGE_LABELS_EN as n } from "../../../shared/counterpart-management/feature/dist/lib/labels.js";
|
|
8
|
-
import { useCounterpartAddressesQuery as r } from "../../../shared/counterpart-management/data-access/dist/index7.js";
|
|
9
|
-
import { useCounterpartForm as i } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
|
|
10
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
1
|
+
import { minorExponentForCurrency as e } from "../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
11
2
|
import "../../ui/dist/index10.js";
|
|
12
3
|
import "../../ui/dist/index.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { buildFormTotalsView as Ee, calculateFormTotals as De, validateDiscount as Oe, validateInvoiceTotals as ke } from "./index11.js";
|
|
18
|
-
import { createEmptyReceivableFormValues as Ae, hasReceivableFormErrors as je, receivableFormValuesToCreatePayload as Me, receivableFormValuesToLineItemChanges as Ne, receivableFormValuesToUpdatePayload as Pe, receivableToFormValues as Fe, validateReceivableForm as Ie } from "./index12.js";
|
|
19
|
-
import { shouldShowRemindersInitially as Le } from "./index14.js";
|
|
20
|
-
import { useCreateReceivableMutation as Re, useUpdateReceivableMutation as ze } from "../../data-access/dist/index7.js";
|
|
21
|
-
import { useCreateRecurrenceMutation as Be, useRecurrenceQuery as Ve, useUpdateRecurrenceMutation as He } from "../../data-access/dist/index11.js";
|
|
22
|
-
import "../../data-access/dist/index.js";
|
|
23
|
-
import { useReceivableAttachmentUploads as Ue } from "./index17.js";
|
|
24
|
-
import { useReceivablePaymentTerms as We } from "./index18.js";
|
|
25
|
-
import { useReceivableRecurrence as Ge } from "./index19.js";
|
|
26
|
-
import { useReceivableBankAccount as Ke } from "./index21.js";
|
|
27
|
-
import { useReceivableReminders as qe } from "./index22.js";
|
|
28
|
-
import { getCurrencyOptions as Je } from "../../../shared/product-catalog/feature/dist/lib/helpers.js";
|
|
29
|
-
import { useMeasureUnitsQuery as Ye } from "../../../shared/product-catalog/data-access/dist/index9.js";
|
|
30
|
-
import { useMeasureUnits as Xe } from "../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
|
|
31
|
-
import "../../../shared/product-catalog/feature/dist/index.js";
|
|
32
|
-
import { useCallback as s, useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
4
|
+
import { isBlankLineItem as t, parseQuantity as n, priceInputToMinorUnits as r } from "./index6.js";
|
|
5
|
+
import { formatTermDate as i, termDueDate as a } from "./index9.js";
|
|
6
|
+
import { formatMoney as o } from "./index12.js";
|
|
7
|
+
import { differenceInCalendarDays as s, isValid as c, parseISO as l } from "date-fns";
|
|
33
8
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
counterpartType: "customer",
|
|
71
|
-
counterpart: void 0,
|
|
72
|
-
primaryAddress: mt
|
|
73
|
-
}), bt = s((e) => C((t) => {
|
|
74
|
-
let n = e({
|
|
75
|
-
paymentTermsId: t.paymentTermsId,
|
|
76
|
-
paymentTermsCustomDate: t.paymentTermsCustomDate
|
|
77
|
-
});
|
|
9
|
+
var u = "US", d = 100;
|
|
10
|
+
function f(e) {
|
|
11
|
+
try {
|
|
12
|
+
return new Intl.DisplayNames(void 0, { type: "region" }).of(e) ?? e;
|
|
13
|
+
} catch {
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function p({ address: e, issuerCountry: t, formatCountry: n = f }) {
|
|
18
|
+
if (!e) return [];
|
|
19
|
+
let r = [e.city, e.state].filter(Boolean).join(", "), i = e.country === u && t === u;
|
|
20
|
+
return [
|
|
21
|
+
[e.line1, e.line2].filter(Boolean).join(" "),
|
|
22
|
+
[r, e.postal_code].filter(Boolean).join(" "),
|
|
23
|
+
e.country && !i ? n(e.country) : ""
|
|
24
|
+
].filter(Boolean);
|
|
25
|
+
}
|
|
26
|
+
var m = { kind: "pending" }, h = (e) => ({
|
|
27
|
+
kind: "text",
|
|
28
|
+
lines: e
|
|
29
|
+
});
|
|
30
|
+
function g(e, t) {
|
|
31
|
+
return e.previewNetDays.replace("{days}", String(t));
|
|
32
|
+
}
|
|
33
|
+
function _(e, t) {
|
|
34
|
+
let n = e.previewEarlyPaymentDays.replace("{days}", String(t.number_of_days));
|
|
35
|
+
return t.discount ? `${n}, ${e.previewEarlyPaymentDiscount.replace("{rate}", String(t.discount / d))}` : n;
|
|
36
|
+
}
|
|
37
|
+
function v({ paymentTermsId: e, paymentTermsCustomDate: t, paymentTerms: n, issueDate: r, messages: o }) {
|
|
38
|
+
let c = {
|
|
39
|
+
dueDate: m,
|
|
40
|
+
paymentTerms: m
|
|
41
|
+
};
|
|
42
|
+
if (e === "custom") {
|
|
43
|
+
if (!t) return c;
|
|
44
|
+
let e = l(t), n = Math.max(0, s(e, r));
|
|
78
45
|
return {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
...n.paymentTermsId === "receipt_due" ? { paymentReminderId: "" } : {}
|
|
82
|
-
};
|
|
83
|
-
}), []), xt = We({
|
|
84
|
-
paymentTermsId: S.paymentTermsId,
|
|
85
|
-
paymentTermsCustomDate: S.paymentTermsCustomDate,
|
|
86
|
-
isRecurring: S.type === "invoice" && o(S),
|
|
87
|
-
messages: f,
|
|
88
|
-
onChange: bt
|
|
89
|
-
}), V = xt.reset, St = s((e) => C((t) => ({
|
|
90
|
-
...t,
|
|
91
|
-
...e
|
|
92
|
-
})), []), Ct = Ke({
|
|
93
|
-
open: v,
|
|
94
|
-
bankAccountId: S.bankAccountId,
|
|
95
|
-
embeddedBankName: Qe,
|
|
96
|
-
messages: f,
|
|
97
|
-
onSelect: St
|
|
98
|
-
}), H = Ct.reset, wt = Ve(at), U = at ? wt.data : void 0, W = ye(U), G = W > 0, K = !!at && wt.isLoading, q = u(void 0);
|
|
99
|
-
c(() => {
|
|
100
|
-
U && q.current !== U.id && (q.current = U.id, C((e) => ({
|
|
101
|
-
...e,
|
|
102
|
-
...be(U)
|
|
103
|
-
})));
|
|
104
|
-
}, [U]);
|
|
105
|
-
let Tt = s((e) => C(e), []), Et = s((e) => w((t) => {
|
|
106
|
-
if (!e.some((e) => e in t)) return t;
|
|
107
|
-
let n = { ...t };
|
|
108
|
-
return e.forEach((e) => delete n[e]), n;
|
|
109
|
-
}), []), Dt = u([]), Ot = s((e) => {
|
|
110
|
-
if (!A) {
|
|
111
|
-
Et(e);
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
Dt.current.push(...e);
|
|
115
|
-
}, [Et, A]);
|
|
116
|
-
c(() => {
|
|
117
|
-
let e = Dt.current;
|
|
118
|
-
if (!e.length) return;
|
|
119
|
-
Dt.current = [];
|
|
120
|
-
let t = xe({
|
|
121
|
-
fields: S,
|
|
122
|
-
issuedCount: W,
|
|
123
|
-
messages: f
|
|
124
|
-
});
|
|
125
|
-
w((n) => {
|
|
126
|
-
let r = { ...n };
|
|
127
|
-
return e.forEach((e) => {
|
|
128
|
-
t[e] ? r[e] = t[e] : delete r[e];
|
|
129
|
-
}), r;
|
|
130
|
-
});
|
|
131
|
-
}, [
|
|
132
|
-
W,
|
|
133
|
-
f,
|
|
134
|
-
S
|
|
135
|
-
]);
|
|
136
|
-
let kt = Ge({
|
|
137
|
-
values: S,
|
|
138
|
-
errors: ot,
|
|
139
|
-
lockSchedule: G,
|
|
140
|
-
messages: f,
|
|
141
|
-
onChange: Tt,
|
|
142
|
-
onClearErrors: Et,
|
|
143
|
-
onRevalidateErrors: Ot
|
|
144
|
-
}), J = kt.reset, At = s((e) => C((t) => ({
|
|
145
|
-
...t,
|
|
146
|
-
...e
|
|
147
|
-
})), []), jt = p.isPending || m.isPending || et.isPending || tt.isPending, Mt = qe({
|
|
148
|
-
open: v,
|
|
149
|
-
isInvoice: S.type === "invoice",
|
|
150
|
-
disabled: jt,
|
|
151
|
-
paymentTermsId: S.paymentTermsId,
|
|
152
|
-
paymentTermsCustomDate: S.paymentTermsCustomDate,
|
|
153
|
-
paymentReminderId: S.paymentReminderId,
|
|
154
|
-
overdueReminderId: S.overdueReminderId,
|
|
155
|
-
messages: f,
|
|
156
|
-
onSelect: At
|
|
157
|
-
}), Y = Mt.reset, Nt = s(() => {
|
|
158
|
-
g.current = [], k(void 0), nt("create"), it(void 0), x(void 0), q.current = void 0, h.current = void 0, C(Ae()), w({}), j(!1), I(!1), F.current = {
|
|
159
|
-
lines: !1,
|
|
160
|
-
discount: !1
|
|
161
|
-
}, z(), J();
|
|
162
|
-
}, [z, J]), Pt = s((e = "invoice") => {
|
|
163
|
-
V(), H(), J();
|
|
164
|
-
let t = {
|
|
165
|
-
...Ae(),
|
|
166
|
-
type: e
|
|
167
|
-
};
|
|
168
|
-
Y(Le(t)), g.current = [], h.current = void 0, q.current = void 0, k(void 0), nt("create"), it(void 0), x(void 0), C(t), w({}), z(), j(!1), I(!1), F.current = {
|
|
169
|
-
lines: !1,
|
|
170
|
-
discount: !1
|
|
171
|
-
}, y(!0);
|
|
172
|
-
}, [
|
|
173
|
-
z,
|
|
174
|
-
V,
|
|
175
|
-
H,
|
|
176
|
-
J,
|
|
177
|
-
Y
|
|
178
|
-
]), Ft = s((e) => {
|
|
179
|
-
if (e.type === "credit_note") return;
|
|
180
|
-
V(), H(), J();
|
|
181
|
-
let t = Fe(e, D);
|
|
182
|
-
Y(Le(t)), g.current = e.line_items, _.current = e.currency, h.current = void 0, q.current = void 0, k(void 0), nt("edit"), it(e.id), x(e.type === "invoice" ? e.recurrence_id ?? void 0 : void 0), C(t), w({}), j(!1), I(!1), F.current = {
|
|
183
|
-
lines: !1,
|
|
184
|
-
discount: !1
|
|
185
|
-
}, z(), y(!0);
|
|
186
|
-
}, [
|
|
187
|
-
z,
|
|
188
|
-
V,
|
|
189
|
-
H,
|
|
190
|
-
J,
|
|
191
|
-
Y,
|
|
192
|
-
D
|
|
193
|
-
]);
|
|
194
|
-
c(() => {
|
|
195
|
-
D?.length && C((e) => {
|
|
196
|
-
let t = se(e.lineItems, D);
|
|
197
|
-
return t === e.lineItems ? e : {
|
|
198
|
-
...e,
|
|
199
|
-
lineItems: t
|
|
200
|
-
};
|
|
201
|
-
});
|
|
202
|
-
}, [D]);
|
|
203
|
-
let X = R.isUploading, It = s(() => {
|
|
204
|
-
X || (B(), y(!1), w({}));
|
|
205
|
-
}, [B, X]), Lt = s((e) => {
|
|
206
|
-
let t = { ...e };
|
|
207
|
-
t.taxRate !== void 0 && (t.taxRate = le(t.taxRate), P.current = !0), t.type !== void 0 && t.type !== "invoice" && B(), t.discount !== void 0 && A && (N.current = !0), t.discountType !== void 0 && (N.current = !0), t.currency !== void 0 && (M.current = !0), C((e) => {
|
|
208
|
-
let n = {
|
|
209
|
-
...e,
|
|
210
|
-
...t
|
|
211
|
-
};
|
|
212
|
-
return t.discount !== void 0 && (n.discount = Te(t.discount, n.discountType, n.currency)), n.currency !== e.currency && (n.lineItems = e.lineItems.map((t) => ({
|
|
213
|
-
...t,
|
|
214
|
-
price: ne(t.price, e.currency, n.currency)
|
|
215
|
-
}))), (n.currency !== e.currency || n.discountType !== e.discountType) && (n.discount = Se({
|
|
216
|
-
value: n.discount,
|
|
217
|
-
type: n.discountType,
|
|
218
|
-
currency: n.currency
|
|
219
|
-
})), n;
|
|
220
|
-
});
|
|
221
|
-
}, [B, A]), Rt = s(() => I(!0), []), zt = s(() => {
|
|
222
|
-
I(!1), N.current = !0, C((e) => ({
|
|
223
|
-
...e,
|
|
224
|
-
discount: Se({
|
|
225
|
-
value: e.discount,
|
|
226
|
-
type: e.discountType,
|
|
227
|
-
currency: e.currency
|
|
228
|
-
})
|
|
229
|
-
}));
|
|
230
|
-
}, []), Bt = s(() => {
|
|
231
|
-
P.current = !0, C((e) => {
|
|
232
|
-
let t = te(e.taxRate);
|
|
233
|
-
return t === e.taxRate ? e : {
|
|
234
|
-
...e,
|
|
235
|
-
taxRate: t
|
|
236
|
-
};
|
|
237
|
-
});
|
|
238
|
-
}, []), Z = s((e, { validate: t }) => {
|
|
239
|
-
t && (M.current = !0), C((t) => ({
|
|
240
|
-
...t,
|
|
241
|
-
lineItems: e(t.lineItems)
|
|
242
|
-
}));
|
|
243
|
-
}, []);
|
|
244
|
-
c(() => {
|
|
245
|
-
let e = M.current, t = N.current;
|
|
246
|
-
if (!e && !t && !P.current) return;
|
|
247
|
-
M.current = !1, N.current = !1, P.current = !1, e && (F.current.lines = !0), t && (F.current.discount = !0);
|
|
248
|
-
let n = e ? me(S.lineItems, {
|
|
249
|
-
currency: S.currency,
|
|
250
|
-
messages: f
|
|
251
|
-
}) : void 0;
|
|
252
|
-
w((t) => {
|
|
253
|
-
let r = { ...t };
|
|
254
|
-
return F.current.lines && (r.lineItems = e ? n : t.lineItems, r.lineItemsSummary = fe(r.lineItems, ke(S, f))), F.current.discount && (r.discount = Oe(S, f)), r;
|
|
255
|
-
});
|
|
256
|
-
}, [f, S]);
|
|
257
|
-
let Vt = s((e, t) => {
|
|
258
|
-
let { unit: n, ...r } = t, i = ce(r);
|
|
259
|
-
i.name !== void 0 && (i.productId = ""), n !== void 0 && (i.measureUnitId = n, i.measureUnitName = ""), i.taxable !== void 0 && (P.current = !0), Z((t) => t.map((t) => t.id === e ? {
|
|
260
|
-
...t,
|
|
261
|
-
...i
|
|
262
|
-
} : t), { validate: A });
|
|
263
|
-
}, [Z, A]), Ht = s((e, t) => {
|
|
264
|
-
Z((n) => n.map((n) => n.id === e ? {
|
|
265
|
-
...n,
|
|
266
|
-
...ae({
|
|
267
|
-
product: t,
|
|
268
|
-
currency: S.currency,
|
|
269
|
-
unitNamesById: O
|
|
270
|
-
})
|
|
271
|
-
} : n), { validate: !0 });
|
|
272
|
-
}, [
|
|
273
|
-
Z,
|
|
274
|
-
O,
|
|
275
|
-
S.currency
|
|
276
|
-
]), Q = s((e, t) => {
|
|
277
|
-
t && Z((n) => t.kind === "remove" ? n.filter((t) => t.id !== e) : n.map((n) => n.id === e ? {
|
|
278
|
-
...n,
|
|
279
|
-
...t.patch
|
|
280
|
-
} : n), { validate: !0 });
|
|
281
|
-
}, [Z]), Ut = s((e, t) => {
|
|
282
|
-
let n = S.lineItems.find((t) => t.id === e);
|
|
283
|
-
n && Q(e, ee({
|
|
284
|
-
lineItem: n,
|
|
285
|
-
field: t,
|
|
286
|
-
rowCount: S.lineItems.length,
|
|
287
|
-
currency: S.currency
|
|
288
|
-
}));
|
|
289
|
-
}, [
|
|
290
|
-
Q,
|
|
291
|
-
S.currency,
|
|
292
|
-
S.lineItems
|
|
293
|
-
]), Wt = s((e, t) => {
|
|
294
|
-
let n = S.lineItems.find((t) => t.id === e);
|
|
295
|
-
n && Q(e, ue({
|
|
296
|
-
lineItem: n,
|
|
297
|
-
step: t,
|
|
298
|
-
rowCount: S.lineItems.length
|
|
299
|
-
}));
|
|
300
|
-
}, [Q, S.lineItems]), Gt = s(() => {
|
|
301
|
-
let e = re(S.currency);
|
|
302
|
-
k(e.id), C((t) => ({
|
|
303
|
-
...t,
|
|
304
|
-
lineItems: [...t.lineItems, e]
|
|
305
|
-
}));
|
|
306
|
-
}, [S.currency]), Kt = s((e) => {
|
|
307
|
-
Z((t) => t.length <= 1 ? t : t.filter((t) => t.id !== e), { validate: !0 });
|
|
308
|
-
}, [Z]), qt = s(async () => {
|
|
309
|
-
if (X || K) return;
|
|
310
|
-
if (E.isLoading) {
|
|
311
|
-
w({ form: f.lineItemsLoading });
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
let e = de(S.lineItems), n = e.length === S.lineItems.length ? S : {
|
|
315
|
-
...S,
|
|
316
|
-
lineItems: e
|
|
46
|
+
dueDate: h([i(e)]),
|
|
47
|
+
paymentTerms: h([g(o, n)])
|
|
317
48
|
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
49
|
+
}
|
|
50
|
+
if (e === "receipt_due") return {
|
|
51
|
+
dueDate: h([i(r)]),
|
|
52
|
+
paymentTerms: h([o.previewDueOnReceipt])
|
|
53
|
+
};
|
|
54
|
+
let u = n?.find((t) => t.id === e);
|
|
55
|
+
if (!u) return c;
|
|
56
|
+
let d = a(u, r), f = [
|
|
57
|
+
u.term_1 && _(o, u.term_1),
|
|
58
|
+
u.term_2 && _(o, u.term_2),
|
|
59
|
+
u.term_final && g(o, u.term_final.number_of_days)
|
|
60
|
+
].filter((e) => !!e);
|
|
61
|
+
return {
|
|
62
|
+
dueDate: d ? h([i(d)]) : m,
|
|
63
|
+
paymentTerms: f.length > 0 ? h(f) : m
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function y(e, t) {
|
|
67
|
+
return t ? e.previewTaxId.replace("{taxId}", t) : void 0;
|
|
68
|
+
}
|
|
69
|
+
function b(e) {
|
|
70
|
+
return e.length > 0 ? e : void 0;
|
|
71
|
+
}
|
|
72
|
+
function x(e, t) {
|
|
73
|
+
return e ? {
|
|
74
|
+
name: e.type === "organization" ? e.organization.legal_name : void 0,
|
|
75
|
+
addressLines: b(p({
|
|
76
|
+
address: e.address,
|
|
77
|
+
issuerCountry: e.address?.country
|
|
78
|
+
})),
|
|
79
|
+
taxIdLine: y(t, e.tax_id),
|
|
80
|
+
email: e.email ?? void 0,
|
|
81
|
+
phone: e.phone ?? void 0
|
|
82
|
+
} : {};
|
|
83
|
+
}
|
|
84
|
+
function S(e) {
|
|
85
|
+
let t = "organization" in e ? e.organization : e.individual;
|
|
86
|
+
return {
|
|
87
|
+
name: "organization" in e ? e.organization.legal_name : [e.individual.first_name, e.individual.last_name].filter(Boolean).join(" "),
|
|
88
|
+
email: t.email,
|
|
89
|
+
phone: t.phone
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function C({ counterpart: e, billingAddress: t, issuerCountry: n, messages: r }) {
|
|
93
|
+
if (!e) return { kind: "pending" };
|
|
94
|
+
let { name: i, email: a, phone: o } = S(e);
|
|
95
|
+
return i ? {
|
|
96
|
+
kind: "party",
|
|
97
|
+
name: i,
|
|
98
|
+
addressLines: b(p({
|
|
99
|
+
address: t,
|
|
100
|
+
issuerCountry: n
|
|
101
|
+
})),
|
|
102
|
+
taxIdLine: y(r, e.tax_id),
|
|
103
|
+
email: a || void 0,
|
|
104
|
+
phone: o || void 0
|
|
105
|
+
} : { kind: "pending" };
|
|
106
|
+
}
|
|
107
|
+
function w({ lineItems: e, currency: i, unitNamesById: a, messages: s }) {
|
|
108
|
+
return e.filter((e) => !t(e)).map((e) => {
|
|
109
|
+
let t = r(e.price, i), c = n(e.quantity), l = a[e.measureUnitId] || e.measureUnitName;
|
|
110
|
+
return {
|
|
111
|
+
id: e.id,
|
|
112
|
+
name: e.name,
|
|
113
|
+
quantity: String(c),
|
|
114
|
+
price: o({
|
|
115
|
+
amount: t,
|
|
116
|
+
currency: i,
|
|
117
|
+
fallback: ""
|
|
324
118
|
}),
|
|
325
|
-
...
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
119
|
+
...l ? { unit: l } : {},
|
|
120
|
+
taxable: e.taxable ? s.previewTaxableYes : s.previewTaxableNo,
|
|
121
|
+
amount: o({
|
|
122
|
+
amount: Math.round(t * c),
|
|
123
|
+
currency: i,
|
|
124
|
+
fallback: ""
|
|
125
|
+
})
|
|
330
126
|
};
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
lineItems: oe(n.lineItems, i.line_items)
|
|
374
|
-
}, C(n));
|
|
375
|
-
}
|
|
376
|
-
r && (U ? await tt.mutateAsync({
|
|
377
|
-
path: { recurrence_id: U.id },
|
|
378
|
-
body: _e(n, { lockSchedule: G })
|
|
379
|
-
}) : await et.mutateAsync({ body: ge(n, e) }));
|
|
380
|
-
let i = b === "create";
|
|
381
|
-
y(!1), Nt(), i && $e?.(e, t);
|
|
382
|
-
} catch (e) {
|
|
383
|
-
w({ form: t(e) ?? f.genericError });
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function T(t, n) {
|
|
130
|
+
return new Intl.NumberFormat(void 0, {
|
|
131
|
+
style: "currency",
|
|
132
|
+
currency: n,
|
|
133
|
+
currencySign: "accounting"
|
|
134
|
+
}).format(-t / 10 ** e(n));
|
|
135
|
+
}
|
|
136
|
+
function E({ totals: e, currency: t, taxRate: n, messages: r }) {
|
|
137
|
+
let i = (e) => o({
|
|
138
|
+
amount: e,
|
|
139
|
+
currency: t,
|
|
140
|
+
fallback: ""
|
|
141
|
+
}), a = e.discountAmount > 0, s = e.taxableItemsSubtotal > 0, c = e.nonTaxableItemsSubtotal > 0, l = [{
|
|
142
|
+
id: "subtotal",
|
|
143
|
+
label: r.previewSubtotal,
|
|
144
|
+
value: i(e.subtotal)
|
|
145
|
+
}];
|
|
146
|
+
return a && l.push({
|
|
147
|
+
id: "discount",
|
|
148
|
+
label: r.previewDiscount,
|
|
149
|
+
value: T(e.discountAmount, t)
|
|
150
|
+
}), c && (s || a) && l.push({
|
|
151
|
+
id: "nonTaxableSubtotal",
|
|
152
|
+
label: r.previewNonTaxableSubtotal,
|
|
153
|
+
value: i(e.nonTaxableSubtotal),
|
|
154
|
+
muted: !0
|
|
155
|
+
}), s && (c || a) && l.push({
|
|
156
|
+
id: "taxableSubtotal",
|
|
157
|
+
label: r.previewTaxableSubtotal,
|
|
158
|
+
value: i(e.taxableSubtotal),
|
|
159
|
+
muted: !0
|
|
160
|
+
}), l.push({
|
|
161
|
+
id: "tax",
|
|
162
|
+
label: n ? r.previewTaxWithRate.replace("{rate}", n) : r.previewTax,
|
|
163
|
+
value: i(e.totalTaxes)
|
|
164
|
+
}), {
|
|
165
|
+
rows: l,
|
|
166
|
+
total: {
|
|
167
|
+
label: r.previewTotal,
|
|
168
|
+
value: i(e.total)
|
|
384
169
|
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
S
|
|
406
|
-
]), Jt = l(() => ({
|
|
407
|
-
...S,
|
|
408
|
-
discount: ut ? S.discount : Ce(we(S.discount, S.discountType, S.currency), S.discountType, S.currency),
|
|
409
|
-
lineItems: S.lineItems.map(pe)
|
|
410
|
-
}), [ut, S]), Yt = l(() => a(S.lineItems), [S.lineItems]), $ = l(() => De(S), [S]), Xt = l(() => Ee($, S.currency), [$, S.currency]);
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function D({ bankDetails: e, canReceivePayments: t, messages: n }) {
|
|
173
|
+
let r = e ? [
|
|
174
|
+
[n.previewAccountHolderName, e.accountHolderName],
|
|
175
|
+
[n.previewRoutingNumber, e.routingNumber],
|
|
176
|
+
[n.previewAccountNumber, e.accountNumber]
|
|
177
|
+
].filter((e) => !!e[1]).map(([e, t]) => e.replace("{value}", t)) : [];
|
|
178
|
+
if (t || r.length !== 0) return {
|
|
179
|
+
showPayOnline: t,
|
|
180
|
+
bankLines: r
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function O({ values: e, totals: t, entity: n, counterpart: r, billingAddress: a, paymentTerms: o, unitNamesById: s, bankDetails: u, canReceivePayments: d = !1, messages: f, today: p = /* @__PURE__ */ new Date() }) {
|
|
184
|
+
let h = w({
|
|
185
|
+
lineItems: e.lineItems,
|
|
186
|
+
currency: e.currency,
|
|
187
|
+
unitNamesById: s,
|
|
188
|
+
messages: f
|
|
189
|
+
}), g = n?.logo?.url, _ = l(e.issueDate), y = c(_) ? _ : p;
|
|
411
190
|
return {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
submitLabel: S.type === "invoice" && o(S) ? U ? f.recurrenceUpdateButton : f.recurrenceActivateButton : void 0,
|
|
450
|
-
showDueDateField: S.type === "quote",
|
|
451
|
-
openCreate: Pt,
|
|
452
|
-
openEdit: Ft,
|
|
453
|
-
close: It,
|
|
454
|
-
submit: qt,
|
|
455
|
-
units: T,
|
|
456
|
-
counterpartView: st,
|
|
457
|
-
counterpartForm: yt,
|
|
458
|
-
stateOptions: dt,
|
|
459
|
-
openCounterpartCreate: yt.openCreate,
|
|
460
|
-
bankAccount: Ct,
|
|
461
|
-
reminders: Mt
|
|
191
|
+
issuer: x(n, f),
|
|
192
|
+
logo: g ? {
|
|
193
|
+
kind: "image",
|
|
194
|
+
src: g
|
|
195
|
+
} : { kind: "placeholder" },
|
|
196
|
+
billTo: C({
|
|
197
|
+
counterpart: r,
|
|
198
|
+
billingAddress: a,
|
|
199
|
+
issuerCountry: n?.address?.country,
|
|
200
|
+
messages: f
|
|
201
|
+
}),
|
|
202
|
+
invoiceNumber: m,
|
|
203
|
+
issueDate: i(y),
|
|
204
|
+
...v({
|
|
205
|
+
paymentTermsId: e.paymentTermsId,
|
|
206
|
+
paymentTermsCustomDate: e.paymentTermsCustomDate,
|
|
207
|
+
paymentTerms: o,
|
|
208
|
+
issueDate: y,
|
|
209
|
+
messages: f
|
|
210
|
+
}),
|
|
211
|
+
openingNote: e.openingNote || void 0,
|
|
212
|
+
lineItems: h.length > 0 ? {
|
|
213
|
+
kind: "rows",
|
|
214
|
+
rows: h
|
|
215
|
+
} : { kind: "empty" },
|
|
216
|
+
totals: h.length > 0 ? E({
|
|
217
|
+
totals: t,
|
|
218
|
+
currency: e.currency,
|
|
219
|
+
taxRate: e.taxRate,
|
|
220
|
+
messages: f
|
|
221
|
+
}) : void 0,
|
|
222
|
+
closingNote: e.closingNote || void 0,
|
|
223
|
+
payment: D({
|
|
224
|
+
bankDetails: u,
|
|
225
|
+
canReceivePayments: d,
|
|
226
|
+
messages: f
|
|
227
|
+
})
|
|
462
228
|
};
|
|
463
229
|
}
|
|
464
230
|
//#endregion
|
|
465
|
-
export { f as
|
|
231
|
+
export { p as buildPreviewAddressLines, v as buildPreviewPaymentTerms, O as buildReceivablePreviewView, f as formatCountryName };
|