@tesouro/embedded-components-react 0.2.317 → 0.2.319
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/README.md +5 -4
- package/dist/index.css +9 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.d.ts +4 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +170 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +33 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +18 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +40 -131
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +48 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +29 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +13 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +49 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +4 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +73 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +4 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +7 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +38 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +115 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +56 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +206 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +195 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +58 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +46 -139
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +155 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +3 -60
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +92 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +191 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +4 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +78 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +92 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +53 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +79 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +148 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -197
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +85 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +30 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +38 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +20 -151
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +158 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +13 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +31 -283
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +261 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +7 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +20 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +286 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +14 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +120 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +8 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +11 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +57 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +50 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +138 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +5 -227
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +37 -188
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +55 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +229 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +195 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +88 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +5 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +106 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -156
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +157 -97
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1834 -1819
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +10 -10
- 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/index7.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +0 -2
|
@@ -1,114 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
-
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
-
import "../../../shared/data-access/dist/index.js";
|
|
8
|
-
import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
9
|
-
import "../../../shared/ui/dist/index.js";
|
|
10
|
-
import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
|
-
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
|
-
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
|
-
import "../../../shared/feature/dist/index.js";
|
|
14
|
-
import { BillPayWidgetUi as o } from "../../ui/dist/index31.js";
|
|
15
|
-
import { BillUploadStatusTray as s } from "../../ui/dist/index41.js";
|
|
16
|
-
import "../../ui/dist/index.js";
|
|
17
|
-
import { billsTabTestIds as c } from "./index25.js";
|
|
18
|
-
import { BillsTab as l } from "./index27.js";
|
|
19
|
-
import "./index28.js";
|
|
20
|
-
import { useBillUploadQueue as u } from "./index31.js";
|
|
21
|
-
import "./index32.js";
|
|
22
|
-
import { BillPayWidgetAnalyticsEvent as d, WIDGET_NAME as f } from "./index19.js";
|
|
23
|
-
import { DEFAULT_TABS_LABELS as p } from "./index33.js";
|
|
24
|
-
import { ApprovalPoliciesSettings as m } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
25
|
-
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
26
|
-
import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
|
|
27
|
-
import "../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
-
import { useCallback as g, useEffect as _, useState as v } from "react";
|
|
29
|
-
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
30
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js
|
|
31
|
-
var S = {
|
|
32
|
-
Bills: "bills",
|
|
33
|
-
Vendors: "vendors",
|
|
34
|
-
Settings: "settings"
|
|
35
|
-
}, C = [
|
|
36
|
-
S.Bills,
|
|
37
|
-
S.Vendors,
|
|
38
|
-
S.Settings
|
|
39
|
-
];
|
|
40
|
-
function w({ labels: i, tabsLabels: f, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E }) {
|
|
41
|
-
let D = r();
|
|
42
|
-
_(() => {
|
|
43
|
-
D(d.Mounted);
|
|
44
|
-
}, [D]);
|
|
45
|
-
let O = {
|
|
46
|
-
...p,
|
|
47
|
-
...f
|
|
48
|
-
}, { initResponse: k } = a(), A = e(k?.scopes, [t.ApprovalPolicyWriteOrg]), j = !k || A, [M, N] = v(S.Bills), [P, F] = v(), I = g((e) => {
|
|
49
|
-
N(S.Bills), F(e);
|
|
50
|
-
}, []), L = u({ onOpenBill: I }), R = [{
|
|
51
|
-
id: S.Bills,
|
|
52
|
-
label: O.bills,
|
|
53
|
-
content: /* @__PURE__ */ b(l, {
|
|
54
|
-
onEnqueueFiles: L.enqueue,
|
|
55
|
-
openPayableId: P,
|
|
56
|
-
onOpenPayableHandled: () => F(void 0)
|
|
57
|
-
})
|
|
58
|
-
}, {
|
|
59
|
-
id: S.Vendors,
|
|
60
|
-
label: O.vendors,
|
|
61
|
-
content: /* @__PURE__ */ b(h, {
|
|
62
|
-
...E,
|
|
63
|
-
counterpartType: "vendor",
|
|
64
|
-
showTitle: !1,
|
|
65
|
-
onViewAllDocuments: () => N(S.Bills)
|
|
66
|
-
})
|
|
67
|
-
}];
|
|
68
|
-
j && R.push({
|
|
69
|
-
id: S.Settings,
|
|
70
|
-
label: O.settings,
|
|
71
|
-
content: /* @__PURE__ */ b(m, {
|
|
72
|
-
labels: w,
|
|
73
|
-
componentLabels: T
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
let z = R.some((e) => e.id === M) ? M : C.find((e) => R.some((t) => t.id === e)) ?? R[0]?.id ?? "";
|
|
77
|
-
return /* @__PURE__ */ x(y, { children: [
|
|
78
|
-
/* @__PURE__ */ b(n, {}),
|
|
79
|
-
/* @__PURE__ */ b(o, {
|
|
80
|
-
labels: i,
|
|
81
|
-
tabs: R,
|
|
82
|
-
selectedTabId: z,
|
|
83
|
-
onTabChange: N
|
|
84
|
-
}),
|
|
85
|
-
L.isVisible ? /* @__PURE__ */ b(s, {
|
|
86
|
-
sections: L.sections,
|
|
87
|
-
summaryLabel: L.summaryLabel,
|
|
88
|
-
collapsed: L.collapsed,
|
|
89
|
-
onToggleCollapsed: L.onToggleCollapsed,
|
|
90
|
-
onClose: L.onClose,
|
|
91
|
-
testId: c.uploadTray
|
|
92
|
-
}) : null
|
|
93
|
-
] });
|
|
94
|
-
}
|
|
95
|
-
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: p, ...m }) {
|
|
96
|
-
return /* @__PURE__ */ b(i, {
|
|
97
|
-
widgetName: f,
|
|
98
|
-
baseUrl: e,
|
|
99
|
-
widgetToken: t,
|
|
100
|
-
organizationId: n,
|
|
101
|
-
configClient: r,
|
|
102
|
-
gatewayRouting: a,
|
|
103
|
-
linkComponent: o,
|
|
104
|
-
implementation: s,
|
|
105
|
-
uiFramework: c,
|
|
106
|
-
errorFallback: l,
|
|
107
|
-
onError: u,
|
|
108
|
-
analytics: d,
|
|
109
|
-
disclosuresAcceptance: p,
|
|
110
|
-
children: /* @__PURE__ */ b(w, { ...m })
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
|
-
export { T as BillPayWidgetNative, T as default };
|
|
1
|
+
import "./index22.js";
|
|
2
|
+
import "./index29.js";
|
|
3
|
+
import "./index31.js";
|
|
4
|
+
import "./index33.js";
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index40.js";
|
|
2
|
+
import "../../ui/dist/index.js";
|
|
3
|
+
import { BILL_DETAIL_ACTIONS_LABELS_EN as t, SCHEDULED_SUMMARY_LABEL_EN as n } from "./index20.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js
|
|
5
|
+
var r = {
|
|
6
|
+
subtitle: "Accounts payable",
|
|
7
|
+
vendorRow: "Vendor",
|
|
8
|
+
bankAccountRow: "ACH bank account",
|
|
9
|
+
bankAccountValue: (e) => `Account ending in ${e}`,
|
|
10
|
+
invoiceNumberRow: "Number",
|
|
11
|
+
issueDateRow: "Issue date",
|
|
12
|
+
dueDateRow: "Due date",
|
|
13
|
+
poNumberRow: "PO number",
|
|
14
|
+
notProvided: "Not provided",
|
|
15
|
+
glCodeMissing: "GL code not specified",
|
|
16
|
+
quantityValue: (e, t) => `${e} x ${t}`,
|
|
17
|
+
subtotalRow: "Subtotal",
|
|
18
|
+
discountsRow: "Discounts",
|
|
19
|
+
taxRow: "Tax",
|
|
20
|
+
totalRow: "Total",
|
|
21
|
+
actionError: t.actionError,
|
|
22
|
+
scheduledSummary: n,
|
|
23
|
+
sheet: e
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { r as BILL_DETAILS_LABELS_EN };
|
|
@@ -1,25 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
-
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
-
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import { BillPayWidgetMonite as n } from "./index20.js";
|
|
9
|
-
import "./index21.js";
|
|
10
|
-
import { BillPayWidgetNative as r } from "./index34.js";
|
|
11
|
-
import "./index35.js";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
1
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
+
import { resolveVendor as t } from "./index3.js";
|
|
3
|
+
import { derivePayableStatus as n } from "./index16.js";
|
|
4
|
+
import { formatBillMoney as r } from "./index17.js";
|
|
13
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
function i({ payable: i, lineItems: a, ledgerAccounts: o, labels: s }) {
|
|
7
|
+
let c = i.currency, l = (e) => r(e, c), u = n({
|
|
8
|
+
apiStatus: i.status,
|
|
9
|
+
dueDate: i.due_date,
|
|
10
|
+
scheduledPaymentDate: i.scheduled_payment_date
|
|
11
|
+
}), d = t(i), f = d?.name ?? "", p = e(i.issued_at) || s.notProvided, m = e(i.due_date) || s.notProvided, h = [{
|
|
12
|
+
label: s.vendorRow,
|
|
13
|
+
value: f || s.notProvided,
|
|
14
|
+
secondaryValue: d?.email ?? void 0
|
|
15
|
+
}], g = d?.bank_account?.account_number;
|
|
16
|
+
g && h.push({
|
|
17
|
+
label: s.bankAccountRow,
|
|
18
|
+
value: s.bankAccountValue(g.slice(-4))
|
|
22
19
|
});
|
|
20
|
+
let _ = [
|
|
21
|
+
{
|
|
22
|
+
label: s.invoiceNumberRow,
|
|
23
|
+
value: i.document_id || s.notProvided
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: s.issueDateRow,
|
|
27
|
+
value: p
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: s.dueDateRow,
|
|
31
|
+
value: m
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: s.poNumberRow,
|
|
35
|
+
value: s.notProvided
|
|
36
|
+
}
|
|
37
|
+
], v = new Map(o.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), y = a.map((e) => {
|
|
38
|
+
let t = l(e.unit_price);
|
|
39
|
+
return {
|
|
40
|
+
id: e.id,
|
|
41
|
+
description: e.name ?? e.description ?? "",
|
|
42
|
+
glCodeLabel: (e.ledger_account_id ? v.get(e.ledger_account_id) : void 0) || s.glCodeMissing,
|
|
43
|
+
quantityLabel: e.quantity != null && t ? s.quantityValue(String(e.quantity), t) : "",
|
|
44
|
+
amountLabel: l(e.subtotal) ?? ""
|
|
45
|
+
};
|
|
46
|
+
}), b = [
|
|
47
|
+
{
|
|
48
|
+
label: s.subtotalRow,
|
|
49
|
+
value: i.subtotal
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: s.discountsRow,
|
|
53
|
+
value: i.discount
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: s.taxRow,
|
|
57
|
+
value: i.tax_amount
|
|
58
|
+
}
|
|
59
|
+
].map(({ label: e, value: t }) => ({
|
|
60
|
+
label: e,
|
|
61
|
+
value: l(t)
|
|
62
|
+
})).filter((e) => !!e.value), x = l(i.total_amount);
|
|
63
|
+
return x && b.push({
|
|
64
|
+
label: s.totalRow,
|
|
65
|
+
value: x,
|
|
66
|
+
emphasis: !0
|
|
67
|
+
}), {
|
|
68
|
+
title: f,
|
|
69
|
+
subtitle: s.subtitle,
|
|
70
|
+
status: u.status,
|
|
71
|
+
statusTone: u.tone,
|
|
72
|
+
amountDueLabel: l(i.amount_due) ?? l(i.total_amount) ?? "",
|
|
73
|
+
invoiceDateLabel: p,
|
|
74
|
+
dueDateLabel: m,
|
|
75
|
+
payToItems: h,
|
|
76
|
+
invoiceItems: _,
|
|
77
|
+
lineItems: y,
|
|
78
|
+
totals: b
|
|
79
|
+
};
|
|
23
80
|
}
|
|
24
81
|
//#endregion
|
|
25
|
-
export {
|
|
82
|
+
export { i as mapPayableToBillDetails };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useAllLedgerAccountsQuery as e } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
6
|
+
import "../../../shared/data-access/dist/index.js";
|
|
7
|
+
import { resolveVendor as t } from "./index3.js";
|
|
8
|
+
import { BillDetailsSheet as n } from "../../ui/dist/index41.js";
|
|
9
|
+
import "../../ui/dist/index.js";
|
|
10
|
+
import { useAllPayableLineItemsQuery as r } from "../../data-access/dist/index7.js";
|
|
11
|
+
import { usePayableQuery as i } from "../../data-access/dist/index13.js";
|
|
12
|
+
import "../../data-access/dist/index.js";
|
|
13
|
+
import { PayBillFlow as a } from "./index10.js";
|
|
14
|
+
import "./index11.js";
|
|
15
|
+
import { useCurrentApprovalRequestId as o } from "./index12.js";
|
|
16
|
+
import { usePayableDetailActions as s } from "./index14.js";
|
|
17
|
+
import { useScheduledPayment as c } from "./index15.js";
|
|
18
|
+
import { BILL_DETAILS_LABELS_EN as l } from "./index35.js";
|
|
19
|
+
import { mapPayableToBillDetails as u } from "./index36.js";
|
|
20
|
+
import { useMemo as d, useRef as f } from "react";
|
|
21
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
22
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js
|
|
23
|
+
function g(e) {
|
|
24
|
+
return !!(e?.bank_account?.account_holder_name && e.bank_account.routing_number && e.bank_account.account_number);
|
|
25
|
+
}
|
|
26
|
+
function _({ open: _, onOpenChange: v, payableId: y, onClose: b, onExpand: x, testId: S, labels: C, poweredByBankName: w }) {
|
|
27
|
+
let T = d(() => ({
|
|
28
|
+
...l,
|
|
29
|
+
...C,
|
|
30
|
+
sheet: {
|
|
31
|
+
...l.sheet,
|
|
32
|
+
...C?.sheet
|
|
33
|
+
}
|
|
34
|
+
}), [C]), E = i(y), D = r(y), O = e(), k = E.data, A = f(null), j = o({
|
|
35
|
+
payableId: y,
|
|
36
|
+
status: k?.status
|
|
37
|
+
}), M = c({
|
|
38
|
+
payableId: y,
|
|
39
|
+
scheduledPaymentDate: k?.scheduled_payment_date
|
|
40
|
+
}), { actions: N } = s({
|
|
41
|
+
payableId: k ? y : void 0,
|
|
42
|
+
status: k?.status,
|
|
43
|
+
currentApprovalRequestId: j.id,
|
|
44
|
+
hasScheduledPayment: M.hasScheduledPayment,
|
|
45
|
+
isScheduledPaymentUnknown: M.isResolving,
|
|
46
|
+
labels: {
|
|
47
|
+
payBill: T.sheet.payButton,
|
|
48
|
+
markAsPaid: T.sheet.markAsPaidButton,
|
|
49
|
+
reject: T.sheet.rejectButton,
|
|
50
|
+
actionError: T.actionError
|
|
51
|
+
},
|
|
52
|
+
onPayBillSelect: () => {
|
|
53
|
+
if (!g(t(k)) && x) {
|
|
54
|
+
x();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
A.current?.open();
|
|
58
|
+
}
|
|
59
|
+
}), P = M.hasScheduledPayment && M.scheduledDateLabel ? /* @__PURE__ */ m("p", {
|
|
60
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
61
|
+
children: T.scheduledSummary(M.scheduledDateLabel)
|
|
62
|
+
}) : void 0, F = d(() => k ? u({
|
|
63
|
+
payable: k,
|
|
64
|
+
lineItems: D.lineItems,
|
|
65
|
+
ledgerAccounts: O.data?.data ?? [],
|
|
66
|
+
labels: T
|
|
67
|
+
}) : void 0, [
|
|
68
|
+
k,
|
|
69
|
+
D.lineItems,
|
|
70
|
+
O.data,
|
|
71
|
+
T
|
|
72
|
+
]), I = E.isLoading || D.isResolving || O.isResolving, L = E.isError || D.isError || O.isError;
|
|
73
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(n, {
|
|
74
|
+
open: _,
|
|
75
|
+
onOpenChange: v,
|
|
76
|
+
details: F,
|
|
77
|
+
actions: N,
|
|
78
|
+
isLoading: I,
|
|
79
|
+
isError: L,
|
|
80
|
+
notice: P,
|
|
81
|
+
onClose: b,
|
|
82
|
+
onExpand: x,
|
|
83
|
+
testId: S,
|
|
84
|
+
labels: T.sheet
|
|
85
|
+
}), k ? /* @__PURE__ */ m(a, {
|
|
86
|
+
ref: A,
|
|
87
|
+
payable: k,
|
|
88
|
+
poweredByBankName: w
|
|
89
|
+
}) : null] });
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { _ as BillDetailsContainer, _ as default };
|
|
@@ -1,208 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { getStateOptions as t } from "../../../shared/util/dist/lib/usStates.js";
|
|
7
|
-
import { VENDOR_INLINE_FORM_LABELS_EN as n } from "./index2.js";
|
|
8
|
-
import { AchFieldGroup as r } from "../../../shared/counterpart-management/ui/dist/index5.js";
|
|
9
|
-
import { CounterpartFormFields as i, useFocusFirstInvalidField as a } from "../../../shared/counterpart-management/ui/dist/index9.js";
|
|
10
|
-
import { COUNTERPART_MESSAGE_LABELS_EN as o } from "../../../shared/counterpart-management/feature/dist/lib/labels.js";
|
|
11
|
-
import { useCounterpartForm as s } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
|
|
12
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
13
|
-
import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
14
|
-
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
15
|
-
import { Landmark as g, Plus as _, X as v } from "lucide-react";
|
|
16
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, [j, M] = f("none"), [N, P] = f(b?.id), [F, I] = f(!1), [L, R] = f(!1);
|
|
22
|
-
l(() => {
|
|
23
|
-
O?.(L);
|
|
24
|
-
}, [L, O]);
|
|
25
|
-
let z = u(() => t(), []), B = d(j), V = d(!1), H = s({
|
|
26
|
-
view: j,
|
|
27
|
-
setView: M,
|
|
28
|
-
selectedId: N,
|
|
29
|
-
setSelectedId: P,
|
|
30
|
-
messages: o,
|
|
31
|
-
counterpartType: "vendor",
|
|
32
|
-
counterpart: b,
|
|
33
|
-
primaryAddress: x,
|
|
34
|
-
bankAccounts: S,
|
|
35
|
-
isBankAccountsLoading: C,
|
|
36
|
-
isBankAccountsError: w
|
|
37
|
-
}), { openCreate: U, openEdit: W, setValues: G } = H, K = a(H.errors);
|
|
38
|
-
l(() => {
|
|
39
|
-
y === "edit" ? W() : U();
|
|
40
|
-
}, [
|
|
41
|
-
y,
|
|
42
|
-
U,
|
|
43
|
-
W
|
|
44
|
-
]), l(() => {
|
|
45
|
-
B.current !== "none" && j === "none" && N && E(N), B.current = j;
|
|
46
|
-
}, [
|
|
47
|
-
j,
|
|
48
|
-
N,
|
|
49
|
-
E
|
|
50
|
-
]), l(() => {
|
|
51
|
-
y !== "create" || V.current || (V.current = !0, G((e) => ({
|
|
52
|
-
...e,
|
|
53
|
-
entityType: "organization",
|
|
54
|
-
legalName: T?.trim() || e.legalName
|
|
55
|
-
})));
|
|
56
|
-
}, [
|
|
57
|
-
y,
|
|
58
|
-
T,
|
|
59
|
-
G
|
|
60
|
-
]), l(() => {
|
|
61
|
-
y === "edit" && (H.values.bankAccount.routingNumber || H.values.bankAccount.accountNumber) && I(!0);
|
|
62
|
-
}, [
|
|
63
|
-
y,
|
|
64
|
-
H.values.bankAccount.accountNumber,
|
|
65
|
-
H.values.bankAccount.routingNumber
|
|
66
|
-
]), l(() => {
|
|
67
|
-
H.sectionsToExpand.bankAccount && I(!0);
|
|
68
|
-
}, [H.sectionsToExpand.bankAccount]);
|
|
69
|
-
let q = c((e) => {
|
|
70
|
-
R(!0), G((t) => e.entityType === "individual" && t.entityType !== "individual" ? {
|
|
71
|
-
...t,
|
|
72
|
-
...e,
|
|
73
|
-
firstName: t.firstName || t.legalName,
|
|
74
|
-
legalName: t.legalName
|
|
75
|
-
} : e.entityType === "organization" && t.entityType !== "organization" ? {
|
|
76
|
-
...t,
|
|
77
|
-
...e,
|
|
78
|
-
legalName: t.legalName || [t.firstName, t.lastName].filter(Boolean).join(" ")
|
|
79
|
-
} : {
|
|
80
|
-
...t,
|
|
81
|
-
...e
|
|
82
|
-
});
|
|
83
|
-
}, [G]);
|
|
84
|
-
return /* @__PURE__ */ h("div", {
|
|
85
|
-
ref: K,
|
|
86
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ h("div", {
|
|
89
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-2",
|
|
90
|
-
children: [/* @__PURE__ */ m("p", {
|
|
91
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
92
|
-
children: y === "edit" ? A.editTitle : A.createTitle
|
|
93
|
-
}), /* @__PURE__ */ m(e, {
|
|
94
|
-
type: "button",
|
|
95
|
-
variant: "ghost",
|
|
96
|
-
size: "icon",
|
|
97
|
-
"aria-label": A.close,
|
|
98
|
-
onClick: D,
|
|
99
|
-
children: /* @__PURE__ */ m(v, { className: "ttw:size-4" })
|
|
100
|
-
})]
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ m(i, {
|
|
103
|
-
mode: y,
|
|
104
|
-
counterpartMode: "vendor",
|
|
105
|
-
values: H.values,
|
|
106
|
-
errors: H.errors,
|
|
107
|
-
stateOptions: z,
|
|
108
|
-
onChange: q,
|
|
109
|
-
onAddressChange: (e) => {
|
|
110
|
-
R(!0), G((t) => ({
|
|
111
|
-
...t,
|
|
112
|
-
address: {
|
|
113
|
-
...t.address,
|
|
114
|
-
...e
|
|
115
|
-
}
|
|
116
|
-
}));
|
|
117
|
-
},
|
|
118
|
-
sections: {
|
|
119
|
-
entityType: !0,
|
|
120
|
-
profileHeading: !1,
|
|
121
|
-
title: !1,
|
|
122
|
-
taxId: !1,
|
|
123
|
-
address: "collapsible",
|
|
124
|
-
bankAccount: !1
|
|
125
|
-
},
|
|
126
|
-
sectionsToExpand: H.sectionsToExpand,
|
|
127
|
-
onAddressExpand: H.expandAddress,
|
|
128
|
-
labels: { businessNameLabel: A.nameLabel }
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ h("div", {
|
|
131
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
132
|
-
children: [/* @__PURE__ */ m("p", {
|
|
133
|
-
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
134
|
-
children: A.paymentMethodsHeading
|
|
135
|
-
}), /* @__PURE__ */ m("p", {
|
|
136
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
137
|
-
children: A.paymentMethodsDescription
|
|
138
|
-
})]
|
|
139
|
-
}),
|
|
140
|
-
/* @__PURE__ */ h("div", {
|
|
141
|
-
className: "ttw:flex ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:p-3",
|
|
142
|
-
children: [/* @__PURE__ */ m("span", {
|
|
143
|
-
className: "ttw:flex ttw:size-8 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md ttw:bg-primary",
|
|
144
|
-
children: /* @__PURE__ */ m(g, {
|
|
145
|
-
"aria-hidden": !0,
|
|
146
|
-
className: "ttw:size-4 ttw:text-white"
|
|
147
|
-
})
|
|
148
|
-
}), /* @__PURE__ */ h("div", {
|
|
149
|
-
className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:gap-3",
|
|
150
|
-
children: [/* @__PURE__ */ h("div", {
|
|
151
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
152
|
-
children: [/* @__PURE__ */ m("p", {
|
|
153
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
154
|
-
children: A.achTitle
|
|
155
|
-
}), /* @__PURE__ */ m("p", {
|
|
156
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
157
|
-
children: A.achDescription
|
|
158
|
-
})]
|
|
159
|
-
}), F ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(r, {
|
|
160
|
-
idPrefix: "vendor-inline-ach",
|
|
161
|
-
values: H.values.bankAccount,
|
|
162
|
-
errors: H.errors?.bankAccount,
|
|
163
|
-
onChange: (e) => {
|
|
164
|
-
R(!0), G((t) => ({
|
|
165
|
-
...t,
|
|
166
|
-
bankAccount: {
|
|
167
|
-
...t.bankAccount,
|
|
168
|
-
...e
|
|
169
|
-
}
|
|
170
|
-
}));
|
|
171
|
-
},
|
|
172
|
-
labels: {
|
|
173
|
-
accountHolderName: A.accountHolderNameLabel,
|
|
174
|
-
routingNumber: A.routingNumberLabel,
|
|
175
|
-
accountNumber: A.accountNumberLabel
|
|
176
|
-
}
|
|
177
|
-
}), /* @__PURE__ */ m("p", {
|
|
178
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
179
|
-
children: A.achHelp
|
|
180
|
-
})] }) : /* @__PURE__ */ h(e, {
|
|
181
|
-
type: "button",
|
|
182
|
-
variant: "link",
|
|
183
|
-
className: "ttw:w-fit ttw:px-0",
|
|
184
|
-
onClick: () => I(!0),
|
|
185
|
-
children: [/* @__PURE__ */ m(_, { className: "ttw:size-4" }), A.addBankAccount]
|
|
186
|
-
})]
|
|
187
|
-
})]
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ h("div", {
|
|
190
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
191
|
-
children: [/* @__PURE__ */ m(e, {
|
|
192
|
-
type: "button",
|
|
193
|
-
variant: "outline",
|
|
194
|
-
onClick: D,
|
|
195
|
-
children: A.cancel
|
|
196
|
-
}), /* @__PURE__ */ m(e, {
|
|
197
|
-
type: "button",
|
|
198
|
-
onClick: H.submit,
|
|
199
|
-
loading: H.isSubmitting,
|
|
200
|
-
disabled: H.isSubmitting,
|
|
201
|
-
children: A.save
|
|
202
|
-
})]
|
|
203
|
-
})
|
|
204
|
-
]
|
|
205
|
-
});
|
|
206
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
scheduleDialog: "pay-bill-schedule-dialog",
|
|
4
|
+
reviewDialog: "pay-bill-review-dialog"
|
|
5
|
+
};
|
|
207
6
|
//#endregion
|
|
208
|
-
export {
|
|
7
|
+
export { e as payBillFlowTestIds };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
+
import "../../../shared/feature/dist/index.js";
|
|
7
|
+
import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index39.js";
|
|
8
|
+
import { Payables as r } from "../../../monite-sdk/dist/index434.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";
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js
|
|
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 });
|
|
21
|
+
}
|
|
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: _, pageTitleComponent: v = s, ...y }) {
|
|
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
|
+
children: /* @__PURE__ */ o(c, {
|
|
39
|
+
...y,
|
|
40
|
+
pageTitleComponent: v
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { l as BillPayWidgetMonite, l as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index40.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
|
|
2
|
+
var e = {
|
|
3
|
+
Drafts: "drafts",
|
|
4
|
+
Pending: "pending",
|
|
5
|
+
Scheduled: "scheduled",
|
|
6
|
+
Paid: "paid",
|
|
7
|
+
All: "all"
|
|
8
|
+
}, t = {
|
|
9
|
+
[e.Drafts]: ["draft"],
|
|
10
|
+
[e.Pending]: [
|
|
11
|
+
"new",
|
|
12
|
+
"approve_in_progress",
|
|
13
|
+
"waiting_to_be_paid",
|
|
14
|
+
"partially_paid"
|
|
15
|
+
],
|
|
16
|
+
[e.Scheduled]: [
|
|
17
|
+
"new",
|
|
18
|
+
"approve_in_progress",
|
|
19
|
+
"waiting_to_be_paid",
|
|
20
|
+
"partially_paid"
|
|
21
|
+
],
|
|
22
|
+
[e.Paid]: ["paid"],
|
|
23
|
+
[e.All]: void 0
|
|
24
|
+
}, n = {
|
|
25
|
+
[e.Drafts]: void 0,
|
|
26
|
+
[e.Pending]: !1,
|
|
27
|
+
[e.Scheduled]: !0,
|
|
28
|
+
[e.Paid]: void 0,
|
|
29
|
+
[e.All]: void 0
|
|
30
|
+
}, r = e.Drafts, i = [
|
|
31
|
+
e.Drafts,
|
|
32
|
+
e.Pending,
|
|
33
|
+
e.Scheduled,
|
|
34
|
+
e.Paid,
|
|
35
|
+
e.All
|
|
36
|
+
];
|
|
37
|
+
function a(e) {
|
|
38
|
+
let n = t[e];
|
|
39
|
+
return n ? [...n] : void 0;
|
|
40
|
+
}
|
|
41
|
+
function o(e) {
|
|
42
|
+
return n[e];
|
|
43
|
+
}
|
|
44
|
+
var s = {
|
|
45
|
+
vendorLabel: "counterpart_name",
|
|
46
|
+
dueDateLabel: "due_date",
|
|
47
|
+
addedOnLabel: "created_at"
|
|
48
|
+
};
|
|
49
|
+
function c(e) {
|
|
50
|
+
if (e) return s[e];
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { n as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, i as BILL_QUEUE_ORDER, t as BILL_QUEUE_STATUSES, s as BILL_SORT_FIELDS, e as BillQueue, r as DEFAULT_BILL_QUEUE, o as billQueueHasScheduledPayment, a as billQueueStatuses, c as billSortField };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
|
|
2
|
+
async function e(e) {
|
|
3
|
+
if (!e.trim()) return !1;
|
|
4
|
+
try {
|
|
5
|
+
return await navigator.clipboard.writeText(e), !0;
|
|
6
|
+
} catch {
|
|
7
|
+
return !1;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as copyTextToClipboard };
|