@tesouro/embedded-components-react 0.5.74 → 0.5.76
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/experimental/InvoiceSettings.d.ts +660 -0
- package/dist/experimental/InvoiceSettings.js +3 -0
- package/dist/experimental/index.d.ts +31 -2
- package/dist/experimental/index.js +4 -2
- package/dist/index.css +0 -8
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +140 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +46 -140
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +114 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +163 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -164
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +376 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +12 -381
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +84 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +54 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +223 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +37 -223
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +245 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +571 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -572
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +247 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +123 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +211 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +98 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +12 -269
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +97 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +76 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +277 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +16 -369
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +15 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +32 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +374 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +87 -188
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +10 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +88 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +167 -161
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index3.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js +5 -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 +1391 -1369
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -27
|
@@ -627,6 +627,35 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
627
627
|
providerLabels?: Partial<WidgetProviderLabels>;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
+
interface FinopsThemeColors {
|
|
631
|
+
primary?: string;
|
|
632
|
+
primaryForeground?: string;
|
|
633
|
+
}
|
|
634
|
+
interface MoniteWrapperProps {
|
|
635
|
+
finopsThemeColors?: FinopsThemeColors;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
639
|
+
|
|
640
|
+
type InvoiceSettingsProps = MoniteRegionProviderProps;
|
|
641
|
+
/**
|
|
642
|
+
* Entity invoice settings: document numbering, PDF options and the logo.
|
|
643
|
+
*
|
|
644
|
+
* **This still renders Monite's `TemplateSettings` inside.** The native
|
|
645
|
+
* replacement is being built one subtask at a time — the presentational layer
|
|
646
|
+
* in EMBD-5845 and its data-access hooks in EMBD-5844 — and EMBD-5848 swaps
|
|
647
|
+
* this component's body over to them. Standing the widget up now, around the
|
|
648
|
+
* surface that already works, is what lets the harness route (EMBD-5846), the
|
|
649
|
+
* published export and the Settings cutover (EMBD-5849) be wired and reviewed
|
|
650
|
+
* before that swap, so none of them move again when it happens.
|
|
651
|
+
*
|
|
652
|
+
* The whole prop type is the provider's, so everything spreads onto it. A prop
|
|
653
|
+
* this widget owns rather than forwards has to be destructured out here — a
|
|
654
|
+
* leftover spread would send it to the provider, which ignores what it does not
|
|
655
|
+
* recognise, and the prop would silently do nothing.
|
|
656
|
+
*/
|
|
657
|
+
declare function InvoiceSettings(props: InvoiceSettingsProps): React.JSX.Element;
|
|
658
|
+
|
|
630
659
|
interface CheckAmountAndDetailScreenLabels {
|
|
631
660
|
title: string;
|
|
632
661
|
backButton: string;
|
|
@@ -737,5 +766,5 @@ interface RemoteCheckCaptureWidgetProps extends WidgetProviderProps {
|
|
|
737
766
|
}
|
|
738
767
|
declare function RemoteCheckCaptureWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, labels, onDepositComplete, }: RemoteCheckCaptureWidgetProps): React.JSX.Element;
|
|
739
768
|
|
|
740
|
-
export { RemoteCheckCaptureWidget };
|
|
741
|
-
export type { RemoteCheckCaptureWidgetProps };
|
|
769
|
+
export { InvoiceSettings, RemoteCheckCaptureWidget };
|
|
770
|
+
export type { InvoiceSettingsProps, RemoteCheckCaptureWidgetProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InvoiceSettings as e } from "../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index3.js";
|
|
2
|
+
import "./InvoiceSettings.js";
|
|
3
|
+
import { RemoteCheckCaptureWidget as t } from "../libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js";
|
|
2
4
|
import "./RemoteCheckCapture.js";
|
|
3
|
-
export { e as RemoteCheckCaptureWidget };
|
|
5
|
+
export { e as InvoiceSettings, t as RemoteCheckCaptureWidget };
|
package/dist/index.css
CHANGED
|
@@ -4790,14 +4790,6 @@
|
|
|
4790
4790
|
.ttw\:focus-visible\:ring-offset-background:focus-visible {
|
|
4791
4791
|
--tw-ring-offset-color: var(--ttw-background);
|
|
4792
4792
|
}
|
|
4793
|
-
.ttw\:focus-visible\:outline-hidden:focus-visible {
|
|
4794
|
-
--tw-outline-style: none;
|
|
4795
|
-
outline-style: none;
|
|
4796
|
-
@media (forced-colors: active) {
|
|
4797
|
-
outline: 2px solid transparent;
|
|
4798
|
-
outline-offset: 2px;
|
|
4799
|
-
}
|
|
4800
|
-
}
|
|
4801
4793
|
.ttw\:focus-visible\:outline-1:focus-visible {
|
|
4802
4794
|
outline-style: var(--tw-outline-style);
|
|
4803
4795
|
outline-width: 1px;
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
|
|
|
14
14
|
import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetInitStaleForToken as C, useWidgetLoading as w } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
15
|
import { BankAccountsWidget as T } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
16
16
|
import { CounterpartsWidget as E } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
17
|
-
import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
17
|
+
import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
|
|
18
18
|
import { CardDetailsWidget as O } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
|
|
19
19
|
import { CreditCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
|
|
20
20
|
import { DebitCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
1
|
+
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
|
|
3
3
|
export { e as BillPayWidget };
|
|
@@ -11,22 +11,22 @@ import "./index27.js";
|
|
|
11
11
|
import "./index28.js";
|
|
12
12
|
import "./index39.js";
|
|
13
13
|
import "./index42.js";
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
14
|
+
import "./index48.js";
|
|
15
|
+
import "./index56.js";
|
|
16
|
+
import "./index58.js";
|
|
17
|
+
import "./index60.js";
|
|
17
18
|
import "./index61.js";
|
|
18
19
|
import "./index62.js";
|
|
19
20
|
import "./index63.js";
|
|
20
21
|
import "./index64.js";
|
|
21
|
-
import "./
|
|
22
|
+
import "./index68.js";
|
|
22
23
|
import "./index69.js";
|
|
23
24
|
import "./index70.js";
|
|
24
25
|
import "./index71.js";
|
|
25
26
|
import "./index72.js";
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
27
|
+
import "./index75.js";
|
|
28
|
+
import "./index81.js";
|
|
28
29
|
import "./index82.js";
|
|
29
30
|
import "./index83.js";
|
|
30
|
-
import "./
|
|
31
|
-
import { BillPayWidget as e } from "./index88.js";
|
|
31
|
+
import { BillPayWidget as e } from "./index87.js";
|
|
32
32
|
export { e as BillPayWidget };
|
|
@@ -1,10 +1,143 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
var e = {
|
|
3
|
+
edit: "Edit bill",
|
|
4
|
+
payBill: "Pay bill",
|
|
5
|
+
markAsPaid: "Mark as paid",
|
|
6
|
+
reject: "Reject",
|
|
7
|
+
approve: "Approve",
|
|
8
|
+
cancel: "Cancel bill",
|
|
9
|
+
cancelScheduledPayment: "Cancel scheduled payment",
|
|
10
|
+
reopen: "Reopen bill",
|
|
11
|
+
forceApprove: "Approve",
|
|
12
|
+
forceReject: "Reject",
|
|
13
|
+
policyOverridesHeading: "Policy overrides",
|
|
14
|
+
decisionDialog: {
|
|
15
|
+
reject: {
|
|
16
|
+
title: "Reject this bill?",
|
|
17
|
+
description: "The bill goes back as rejected and nobody else is asked to approve it.",
|
|
18
|
+
confirmButton: "Reject bill",
|
|
19
|
+
reason: {
|
|
20
|
+
label: "Reason",
|
|
21
|
+
placeholder: "Tell the submitter what needs to change"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
cancel: {
|
|
25
|
+
title: "Cancel this bill?",
|
|
26
|
+
description: "Cancelling is permanent. The bill can't be reopened, edited, or paid afterwards.",
|
|
27
|
+
confirmButton: "Cancel bill"
|
|
28
|
+
},
|
|
29
|
+
cancelScheduledPayment: {
|
|
30
|
+
title: "Cancel this scheduled payment?",
|
|
31
|
+
description: "The payment will not be sent. The bill stays ready to pay, so you can schedule it again for another date.",
|
|
32
|
+
confirmButton: "Cancel payment"
|
|
33
|
+
},
|
|
34
|
+
forceApprove: {
|
|
35
|
+
title: "Override approval policy?",
|
|
36
|
+
description: "The below people haven't approved this bill yet. Approving now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
37
|
+
confirmButton: "Override and approve",
|
|
38
|
+
noApprovalPolicy: {
|
|
39
|
+
title: "Approve this bill?",
|
|
40
|
+
description: "This bill has no approval policy applied. Approving now will be recorded in the audit history and can't be undone.",
|
|
41
|
+
confirmButton: "Approve bill"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
forceReject: {
|
|
45
|
+
title: "Override approval policy?",
|
|
46
|
+
description: "The below people haven't approved this bill yet. Rejecting now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
47
|
+
confirmButton: "Override and reject",
|
|
48
|
+
noApprovalPolicy: {
|
|
49
|
+
title: "Reject this bill?",
|
|
50
|
+
description: "This bill has no approval policy applied. Rejecting now will be recorded in the audit history and can't be undone.",
|
|
51
|
+
confirmButton: "Reject bill"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
cancelButton: "Cancel"
|
|
55
|
+
},
|
|
56
|
+
actionError: "Couldn't update this bill. Try again.",
|
|
57
|
+
actionSuccess: {
|
|
58
|
+
approve: "Bill approved.",
|
|
59
|
+
reject: "Bill rejected.",
|
|
60
|
+
markAsPaid: "Bill marked as paid.",
|
|
61
|
+
cancel: "Bill canceled.",
|
|
62
|
+
cancelScheduledPayment: "Scheduled payment canceled.",
|
|
63
|
+
reopen: "Bill reopened.",
|
|
64
|
+
forceApprove: "Bill approved, overriding the approval policy.",
|
|
65
|
+
forceReject: "Bill rejected, overriding the approval policy.",
|
|
66
|
+
forceApproveNoApprovalPolicy: "Bill approved.",
|
|
67
|
+
forceRejectNoApprovalPolicy: "Bill rejected."
|
|
68
|
+
}
|
|
69
|
+
}, t = (e) => `Payment scheduled for ${e}`, n = (e) => `Scheduled - ${e}`, r = (e) => `Awaiting approval from ${new Intl.ListFormat("en", {
|
|
70
|
+
style: "long",
|
|
71
|
+
type: "conjunction"
|
|
72
|
+
}).format(e)}.`, i = "Awaiting approval.", a = [
|
|
73
|
+
"reject",
|
|
74
|
+
"cancel",
|
|
75
|
+
"cancelScheduledPayment",
|
|
76
|
+
"forceApprove",
|
|
77
|
+
"forceReject"
|
|
78
|
+
];
|
|
79
|
+
function o(e, t) {
|
|
80
|
+
let n = e.reason ? {
|
|
81
|
+
...e.reason,
|
|
82
|
+
...t?.reason
|
|
83
|
+
} : void 0, r = e.noApprovalPolicy ? {
|
|
84
|
+
...e.noApprovalPolicy,
|
|
85
|
+
...t?.noApprovalPolicy
|
|
86
|
+
} : void 0, i = {
|
|
87
|
+
...e,
|
|
88
|
+
...t,
|
|
89
|
+
reason: n,
|
|
90
|
+
noApprovalPolicy: r
|
|
91
|
+
};
|
|
92
|
+
return n || delete i.reason, r || delete i.noApprovalPolicy, i;
|
|
93
|
+
}
|
|
94
|
+
function s(e, t) {
|
|
95
|
+
let n = {
|
|
96
|
+
...e,
|
|
97
|
+
...t
|
|
98
|
+
};
|
|
99
|
+
for (let r of a) n[r] = o(e[r], t?.[r]);
|
|
100
|
+
return n;
|
|
101
|
+
}
|
|
102
|
+
function c(t) {
|
|
103
|
+
let n = e;
|
|
104
|
+
return {
|
|
105
|
+
...n,
|
|
106
|
+
...t,
|
|
107
|
+
decisionDialog: s(n.decisionDialog, t?.decisionDialog),
|
|
108
|
+
actionSuccess: {
|
|
109
|
+
...n.actionSuccess,
|
|
110
|
+
...t?.actionSuccess
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
var l = {
|
|
115
|
+
paymentHistorySentLabel: "Payment sent",
|
|
116
|
+
paymentHistoryScheduledLabel: "Payment scheduled",
|
|
117
|
+
paymentHistoryCanceledLabel: "Payment canceled",
|
|
118
|
+
paymentHistoryOtherLabel: "Payment",
|
|
119
|
+
paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
|
|
120
|
+
paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
|
|
121
|
+
paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
|
|
122
|
+
paymentHistoryMarkedPaidLabel: "Marked as paid",
|
|
123
|
+
paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
|
|
124
|
+
paymentHistoryPartiallyPaidLabel: "Partial payment",
|
|
125
|
+
paymentHistoryRevertedLabel: "Payment reverted",
|
|
126
|
+
paymentHistoryMethodLabels: {
|
|
127
|
+
ach: "ACH",
|
|
128
|
+
us_ach: "ACH",
|
|
129
|
+
wire: "Wire",
|
|
130
|
+
check: "Check",
|
|
131
|
+
paper_check: "Check",
|
|
132
|
+
bank_account: "Bank transfer",
|
|
133
|
+
card: "Card"
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
function u(e) {
|
|
137
|
+
return {
|
|
138
|
+
...l.paymentHistoryMethodLabels,
|
|
139
|
+
...e
|
|
140
|
+
};
|
|
8
141
|
}
|
|
9
142
|
//#endregion
|
|
10
|
-
export { e as
|
|
143
|
+
export { r as AWAITING_APPROVAL_LABEL_EN, i as AWAITING_APPROVAL_UNKNOWN_LABEL_EN, e as BILL_DETAIL_ACTIONS_LABELS_EN, l as PAYMENT_HISTORY_LABELS_EN, n as SCHEDULED_STATUS_BADGE_LABEL_EN, t as SCHEDULED_SUMMARY_LABEL_EN, c as mergeBillDetailActionsLabels, s as mergeDecisionDialogCopy, u as mergePaymentHistoryMethodLabels };
|
|
@@ -1,143 +1,49 @@
|
|
|
1
|
+
import { formatBillMoney as e } from "./index2.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
description: "The below people haven't approved this bill yet. Rejecting now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
47
|
-
confirmButton: "Override and reject",
|
|
48
|
-
noApprovalPolicy: {
|
|
49
|
-
title: "Reject this bill?",
|
|
50
|
-
description: "This bill has no approval policy applied. Rejecting now will be recorded in the audit history and can't be undone.",
|
|
51
|
-
confirmButton: "Reject bill"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
cancelButton: "Cancel"
|
|
55
|
-
},
|
|
56
|
-
actionError: "Couldn't update this bill. Try again.",
|
|
57
|
-
actionSuccess: {
|
|
58
|
-
approve: "Bill approved.",
|
|
59
|
-
reject: "Bill rejected.",
|
|
60
|
-
markAsPaid: "Bill marked as paid.",
|
|
61
|
-
cancel: "Bill canceled.",
|
|
62
|
-
cancelScheduledPayment: "Scheduled payment canceled.",
|
|
63
|
-
reopen: "Bill reopened.",
|
|
64
|
-
forceApprove: "Bill approved, overriding the approval policy.",
|
|
65
|
-
forceReject: "Bill rejected, overriding the approval policy.",
|
|
66
|
-
forceApproveNoApprovalPolicy: "Bill approved.",
|
|
67
|
-
forceRejectNoApprovalPolicy: "Bill rejected."
|
|
68
|
-
}
|
|
69
|
-
}, t = (e) => `Payment scheduled for ${e}`, n = (e) => `Scheduled - ${e}`, r = (e) => `Awaiting approval from ${new Intl.ListFormat("en", {
|
|
70
|
-
style: "long",
|
|
71
|
-
type: "conjunction"
|
|
72
|
-
}).format(e)}.`, i = "Awaiting approval.", a = [
|
|
73
|
-
"reject",
|
|
74
|
-
"cancel",
|
|
75
|
-
"cancelScheduledPayment",
|
|
76
|
-
"forceApprove",
|
|
77
|
-
"forceReject"
|
|
78
|
-
];
|
|
79
|
-
function o(e, t) {
|
|
80
|
-
let n = e.reason ? {
|
|
81
|
-
...e.reason,
|
|
82
|
-
...t?.reason
|
|
83
|
-
} : void 0, r = e.noApprovalPolicy ? {
|
|
84
|
-
...e.noApprovalPolicy,
|
|
85
|
-
...t?.noApprovalPolicy
|
|
86
|
-
} : void 0, i = {
|
|
87
|
-
...e,
|
|
88
|
-
...t,
|
|
89
|
-
reason: n,
|
|
90
|
-
noApprovalPolicy: r
|
|
91
|
-
};
|
|
92
|
-
return n || delete i.reason, r || delete i.noApprovalPolicy, i;
|
|
93
|
-
}
|
|
94
|
-
function s(e, t) {
|
|
95
|
-
let n = {
|
|
96
|
-
...e,
|
|
97
|
-
...t
|
|
98
|
-
};
|
|
99
|
-
for (let r of a) n[r] = o(e[r], t?.[r]);
|
|
100
|
-
return n;
|
|
101
|
-
}
|
|
102
|
-
function c(t) {
|
|
103
|
-
let n = e;
|
|
104
|
-
return {
|
|
105
|
-
...n,
|
|
106
|
-
...t,
|
|
107
|
-
decisionDialog: s(n.decisionDialog, t?.decisionDialog),
|
|
108
|
-
actionSuccess: {
|
|
109
|
-
...n.actionSuccess,
|
|
110
|
-
...t?.actionSuccess
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
var l = {
|
|
115
|
-
paymentHistorySentLabel: "Payment sent",
|
|
116
|
-
paymentHistoryScheduledLabel: "Payment scheduled",
|
|
117
|
-
paymentHistoryCanceledLabel: "Payment canceled",
|
|
118
|
-
paymentHistoryOtherLabel: "Payment",
|
|
119
|
-
paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
|
|
120
|
-
paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
|
|
121
|
-
paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
|
|
122
|
-
paymentHistoryMarkedPaidLabel: "Marked as paid",
|
|
123
|
-
paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
|
|
124
|
-
paymentHistoryPartiallyPaidLabel: "Partial payment",
|
|
125
|
-
paymentHistoryRevertedLabel: "Payment reverted",
|
|
126
|
-
paymentHistoryMethodLabels: {
|
|
127
|
-
ach: "ACH",
|
|
128
|
-
us_ach: "ACH",
|
|
129
|
-
wire: "Wire",
|
|
130
|
-
check: "Check",
|
|
131
|
-
paper_check: "Check",
|
|
132
|
-
bank_account: "Bank transfer",
|
|
133
|
-
card: "Card"
|
|
134
|
-
}
|
|
3
|
+
var t = {
|
|
4
|
+
dateLabel: (e) => new Date(e).toLocaleDateString("en-US", {
|
|
5
|
+
month: "short",
|
|
6
|
+
day: "numeric",
|
|
7
|
+
year: "numeric"
|
|
8
|
+
}),
|
|
9
|
+
timeLabel: (e) => new Date(e).toLocaleTimeString(void 0, {
|
|
10
|
+
hour: "numeric",
|
|
11
|
+
minute: "2-digit",
|
|
12
|
+
timeZoneName: "short"
|
|
13
|
+
}),
|
|
14
|
+
byActor: (e, t) => `${e} by ${t}`,
|
|
15
|
+
formatAmount: (t) => e(t) ?? "",
|
|
16
|
+
billCreated: "Bill created",
|
|
17
|
+
createdManually: "Data entered manually",
|
|
18
|
+
createdFromUpload: "File uploaded and scanned automatically",
|
|
19
|
+
createdFromEmail: "File emailed and scanned automatically",
|
|
20
|
+
billDetailsUpdated: "Bill details updated",
|
|
21
|
+
submittedForReview: "Finalized and submitted for review",
|
|
22
|
+
approvalRequested: "Approval requested",
|
|
23
|
+
approved: "Approved",
|
|
24
|
+
approvedCount: (e, t) => `Approved (${e} of ${t})`,
|
|
25
|
+
approvedAutomatically: "Approved automatically",
|
|
26
|
+
rejected: "Rejected",
|
|
27
|
+
policyOverrideApproved: "Policy override: Approved",
|
|
28
|
+
policyOverrideRejected: "Policy override: Rejected",
|
|
29
|
+
actorWithReason: (e, t) => `${e}: "${t}"`,
|
|
30
|
+
quotedReason: (e) => `"${e}"`,
|
|
31
|
+
cancelled: "Cancelled",
|
|
32
|
+
reopened: "Re-opened for edit",
|
|
33
|
+
paymentReleased: "Payment released",
|
|
34
|
+
paid: (e) => `Paid ${e}`,
|
|
35
|
+
paymentReverted: "Payment reverted",
|
|
36
|
+
billMarkedAsFullyPaid: "Bill marked as fully paid",
|
|
37
|
+
billMarkedAsPartiallyPaid: "Bill marked as partially paid",
|
|
38
|
+
draftDeleted: "Draft deleted",
|
|
39
|
+
fileAttached: "File attached",
|
|
40
|
+
fileRemoved: "File removed",
|
|
41
|
+
creditNoteLinked: "Credit note linked",
|
|
42
|
+
creditNoteUnlinked: "Credit note unlinked",
|
|
43
|
+
lineItemsUpdated: "Line items updated",
|
|
44
|
+
lineItemAdded: "Line item added",
|
|
45
|
+
lineItemUpdated: "Line item updated",
|
|
46
|
+
lineItemRemoved: "Line item removed"
|
|
135
47
|
};
|
|
136
|
-
function u(e) {
|
|
137
|
-
return {
|
|
138
|
-
...l.paymentHistoryMethodLabels,
|
|
139
|
-
...e
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
48
|
//#endregion
|
|
143
|
-
export {
|
|
49
|
+
export { t as PAYABLE_AUDIT_HISTORY_LABELS_EN };
|