@tesouro/embedded-components-react 0.5.28 → 0.5.31
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 +14 -13
- package/dist/index.css +15 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +155 -151
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
- 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 +46 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
- 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 +122 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
- 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/ui/dist/lib/OnboardingShell/OnboardingShell.js +126 -105
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +13 -6
- 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/feature/dist/index88.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
|
@@ -2,133 +2,213 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import "
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
5
|
+
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
+
import "../../../shared/data-access/dist/index.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useWidgetConfig as ee, useWidgetInitStaleForToken as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
+
import "../../../shared/feature/dist/index.js";
|
|
12
|
+
import { useDuplicateBillsCount as i } from "./index10.js";
|
|
13
|
+
import { AddBillDialog as a } from "../../ui/dist/index10.js";
|
|
14
|
+
import { BillsScreen as o } from "../../ui/dist/index82.js";
|
|
15
|
+
import "../../ui/dist/index.js";
|
|
16
|
+
import { DuplicateBillsContainer as te } from "./index12.js";
|
|
17
|
+
import "./index14.js";
|
|
18
|
+
import { BillCreateDialog as s } from "./index60.js";
|
|
19
|
+
import "./index61.js";
|
|
20
|
+
import { BillDetailsContainer as ne } from "./index63.js";
|
|
21
|
+
import "./index64.js";
|
|
22
|
+
import "./index70.js";
|
|
23
|
+
import "./index71.js";
|
|
24
|
+
import { BILL_QUEUE_ORDER as c, BillQueue as l } from "./index72.js";
|
|
25
|
+
import { BILLS_TAB_LABELS_EN as u } from "./index75.js";
|
|
26
|
+
import { useBillsTable as d } from "./index81.js";
|
|
27
|
+
import { copyTextToClipboard as f } from "./index73.js";
|
|
28
|
+
import { resolveDuplicateWarning as p } from "./index74.js";
|
|
29
|
+
import { billsTabTestIds as m, billsTableCellTestIds as re } from "./index76.js";
|
|
30
|
+
import { useCallback as ie, useEffect as ae, useMemo as h, useState as g } from "react";
|
|
31
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
32
|
+
import { CalendarClockIcon as y, CheckIcon as b, FilePenIcon as x, ListIcon as S, LoaderCircleIcon as C } from "lucide-react";
|
|
17
33
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js
|
|
18
|
-
var
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}, [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
onRetry: le,
|
|
114
|
-
selectedFilterTabId: O,
|
|
115
|
-
onFilterTabChange: ae,
|
|
116
|
-
searchValue: I,
|
|
117
|
-
onSearchChange: L,
|
|
118
|
-
hasAnyBills: re,
|
|
119
|
-
isSearchActive: R.length > 0 || V.isFilterActive,
|
|
120
|
-
filterBarProps: V.filterBarProps,
|
|
121
|
-
visibleColumns: c(O),
|
|
122
|
-
showAddPanelWhenEmpty: u(O),
|
|
123
|
-
sorting: A,
|
|
124
|
-
onSortingChange: oe,
|
|
125
|
-
pageSize: M,
|
|
126
|
-
onPageSizeChange: $,
|
|
127
|
-
hasNextPage: !!J.data?.next_pagination_token,
|
|
128
|
-
hasPrevPage: !!J.data?.prev_pagination_token,
|
|
129
|
-
onNextPage: se,
|
|
130
|
-
onPrevPage: ce
|
|
34
|
+
var w = "bills@business-banking.app", T = {
|
|
35
|
+
[l.Drafts]: /* @__PURE__ */ _(x, {
|
|
36
|
+
className: "ttw:size-4",
|
|
37
|
+
"aria-hidden": !0
|
|
38
|
+
}),
|
|
39
|
+
[l.Pending]: /* @__PURE__ */ _(C, {
|
|
40
|
+
className: "ttw:size-4",
|
|
41
|
+
"aria-hidden": !0
|
|
42
|
+
}),
|
|
43
|
+
[l.Scheduled]: /* @__PURE__ */ _(y, {
|
|
44
|
+
className: "ttw:size-4",
|
|
45
|
+
"aria-hidden": !0
|
|
46
|
+
}),
|
|
47
|
+
[l.Paid]: /* @__PURE__ */ _(b, {
|
|
48
|
+
className: "ttw:size-4",
|
|
49
|
+
"aria-hidden": !0
|
|
50
|
+
}),
|
|
51
|
+
[l.All]: /* @__PURE__ */ _(S, {
|
|
52
|
+
className: "ttw:size-4",
|
|
53
|
+
"aria-hidden": !0
|
|
54
|
+
})
|
|
55
|
+
};
|
|
56
|
+
function E({ labels: l, onEnqueueFiles: y, openPayableId: b, onOpenPayableHandled: x, poweredByBankName: S }) {
|
|
57
|
+
let C = h(() => ({
|
|
58
|
+
...u,
|
|
59
|
+
...l,
|
|
60
|
+
queues: {
|
|
61
|
+
...u.queues,
|
|
62
|
+
...l?.queues
|
|
63
|
+
},
|
|
64
|
+
filters: {
|
|
65
|
+
...u.filters,
|
|
66
|
+
...l?.filters,
|
|
67
|
+
presets: {
|
|
68
|
+
...u.filters.presets,
|
|
69
|
+
...l?.filters?.presets
|
|
70
|
+
},
|
|
71
|
+
statuses: {
|
|
72
|
+
...u.filters.statuses,
|
|
73
|
+
...l?.filters?.statuses
|
|
74
|
+
},
|
|
75
|
+
dateFieldNames: {
|
|
76
|
+
...u.filters.dateFieldNames,
|
|
77
|
+
...l?.filters?.dateFieldNames
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
filterBar: {
|
|
81
|
+
...u.filterBar,
|
|
82
|
+
...l?.filterBar
|
|
83
|
+
},
|
|
84
|
+
queueEmptyStates: c.reduce((e, t) => ({
|
|
85
|
+
...e,
|
|
86
|
+
[t]: {
|
|
87
|
+
...u.queueEmptyStates[t],
|
|
88
|
+
...l?.queueEmptyStates?.[t]
|
|
89
|
+
}
|
|
90
|
+
}), {})
|
|
91
|
+
}), [l]), [E, D] = g(!1), [oe, O] = g(), [k, A] = g(!1), [j, M] = g(), [N, P] = g(!1), [F, I] = g(!1), [L, R] = g(!1), { initResponse: z } = ee(), B = r(), V = t(z?.scopes, [n.PayableReadOrg]), H = t(z?.scopes, [n.PayableWriteOrg]), U = !z || V, W = !z || H, G = ie((e, t) => {
|
|
92
|
+
if (t && W) {
|
|
93
|
+
O(e), A(!0);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
M(e), P(!0);
|
|
97
|
+
}, [W]), K = t(z?.scopes, [n.CounterpartReadOrg]), q = d({
|
|
98
|
+
enabled: U,
|
|
99
|
+
canReadVendors: K,
|
|
100
|
+
isVendorFilterPaused: B,
|
|
101
|
+
filterLabels: C.filters,
|
|
102
|
+
onOpenBill: G,
|
|
103
|
+
duplicateRowNote: C.duplicateRowNote,
|
|
104
|
+
attachmentLabel: C.attachmentIndicator
|
|
105
|
+
}), J = i({ enabled: U }), se = p(J, C), ce = h(() => c.map((e) => ({
|
|
106
|
+
id: e,
|
|
107
|
+
label: C.queues[e],
|
|
108
|
+
icon: T[e]
|
|
109
|
+
})), [C.queues]), le = (e) => {
|
|
110
|
+
R(!1), M(e), P(!0);
|
|
111
|
+
}, ue = () => {
|
|
112
|
+
P(!1), I(!0);
|
|
113
|
+
}, Y = () => {
|
|
114
|
+
I(!1), P(!0);
|
|
115
|
+
}, X = () => {
|
|
116
|
+
P(!1), I(!1), O(j), A(!0);
|
|
117
|
+
}, de = h(() => ({
|
|
118
|
+
createButton: C.createButton,
|
|
119
|
+
addBill: { heading: C.nonEmptyHeading }
|
|
120
|
+
}), [C.createButton, C.nonEmptyHeading]), fe = h(() => ({
|
|
121
|
+
...q.filterBarProps,
|
|
122
|
+
labels: C.filterBar
|
|
123
|
+
}), [q.filterBarProps, C.filterBar]), Z = () => {
|
|
124
|
+
D(!1), O(void 0), A(!0);
|
|
125
|
+
}, Q = (e) => {
|
|
126
|
+
D(!1), y?.(e);
|
|
127
|
+
}, $ = async () => {
|
|
128
|
+
await f(w) ? e.success(C.emailCopiedToast) : e.error(C.emailCopyFailedToast);
|
|
131
129
|
};
|
|
130
|
+
return ae(() => {
|
|
131
|
+
b && (O(b), A(!0), x?.());
|
|
132
|
+
}, [x, b]), /* @__PURE__ */ v("div", {
|
|
133
|
+
"data-testid": m.root,
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ _(o, {
|
|
136
|
+
rows: q.rows,
|
|
137
|
+
isLoading: q.isLoading || !z,
|
|
138
|
+
isError: q.isError,
|
|
139
|
+
onRetry: q.onRetry,
|
|
140
|
+
sorting: q.sorting,
|
|
141
|
+
onSortingChange: q.onSortingChange,
|
|
142
|
+
pageSize: q.pageSize,
|
|
143
|
+
onPageSizeChange: q.onPageSizeChange,
|
|
144
|
+
hasNextPage: q.hasNextPage,
|
|
145
|
+
hasPrevPage: q.hasPrevPage,
|
|
146
|
+
onNextPage: q.onNextPage,
|
|
147
|
+
onPrevPage: q.onPrevPage,
|
|
148
|
+
filterTabs: ce,
|
|
149
|
+
selectedFilterTabId: q.selectedFilterTabId,
|
|
150
|
+
onFilterTabChange: q.onFilterTabChange,
|
|
151
|
+
searchValue: q.searchValue,
|
|
152
|
+
onSearchChange: q.onSearchChange,
|
|
153
|
+
filters: fe,
|
|
154
|
+
visibleColumns: q.visibleColumns,
|
|
155
|
+
cellTestIds: re,
|
|
156
|
+
isSearchActive: q.isSearchActive,
|
|
157
|
+
showAddPanelWhenEmpty: q.showAddPanelWhenEmpty,
|
|
158
|
+
emptyState: C.queueEmptyStates[q.selectedFilterTabId],
|
|
159
|
+
onCreateClick: W ? () => D(!0) : void 0,
|
|
160
|
+
onEnterManually: W ? Z : void 0,
|
|
161
|
+
onFilesSelected: W ? Q : void 0,
|
|
162
|
+
maxFiles: 10,
|
|
163
|
+
emailAddress: w,
|
|
164
|
+
onCopyEmail: $,
|
|
165
|
+
duplicateWarning: se,
|
|
166
|
+
onReviewDuplicates: J.isError ? void 0 : () => R(!0),
|
|
167
|
+
labels: de
|
|
168
|
+
}),
|
|
169
|
+
L ? /* @__PURE__ */ _(te, {
|
|
170
|
+
open: L,
|
|
171
|
+
onOpenChange: R,
|
|
172
|
+
enabled: U,
|
|
173
|
+
canManageDuplicates: W,
|
|
174
|
+
onOpenBill: le
|
|
175
|
+
}) : null,
|
|
176
|
+
W ? /* @__PURE__ */ _(a, {
|
|
177
|
+
open: E,
|
|
178
|
+
onOpenChange: D,
|
|
179
|
+
onFilesSelected: Q,
|
|
180
|
+
maxFiles: 10,
|
|
181
|
+
onEnterManually: Z,
|
|
182
|
+
emailAddress: w,
|
|
183
|
+
onCopyEmail: $,
|
|
184
|
+
labels: { heading: q.hasAnyBills ? C.nonEmptyHeading : C.emptyHeading }
|
|
185
|
+
}) : null,
|
|
186
|
+
k ? /* @__PURE__ */ _(s, {
|
|
187
|
+
open: k,
|
|
188
|
+
onOpenChange: A,
|
|
189
|
+
payableId: oe
|
|
190
|
+
}) : null,
|
|
191
|
+
N ? /* @__PURE__ */ _(ne, {
|
|
192
|
+
open: N,
|
|
193
|
+
onOpenChange: P,
|
|
194
|
+
payableId: j,
|
|
195
|
+
onClose: () => P(!1),
|
|
196
|
+
onExpand: ue,
|
|
197
|
+
onEdit: X,
|
|
198
|
+
testId: m.detailsSheet,
|
|
199
|
+
poweredByBankName: S
|
|
200
|
+
}) : null,
|
|
201
|
+
F ? /* @__PURE__ */ _(s, {
|
|
202
|
+
open: F,
|
|
203
|
+
onOpenChange: I,
|
|
204
|
+
payableId: j,
|
|
205
|
+
readOnly: !0,
|
|
206
|
+
onCollapse: Y,
|
|
207
|
+
onEdit: X,
|
|
208
|
+
poweredByBankName: S
|
|
209
|
+
}) : null
|
|
210
|
+
]
|
|
211
|
+
});
|
|
132
212
|
}
|
|
133
213
|
//#endregion
|
|
134
|
-
export {
|
|
214
|
+
export { E as BillsTab, E as default };
|
|
@@ -1,214 +1,4 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
-
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
-
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import "../../../shared/ui/dist/index.js";
|
|
10
|
-
import { useWidgetConfig as ee, useWidgetInitStaleForToken as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
-
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { useDuplicateBillsCount as i } from "./index10.js";
|
|
13
|
-
import { AddBillDialog as a } from "../../ui/dist/index10.js";
|
|
14
|
-
import { BillsScreen as o } from "../../ui/dist/index79.js";
|
|
15
|
-
import "../../ui/dist/index.js";
|
|
16
|
-
import { DuplicateBillsContainer as te } from "./index12.js";
|
|
17
|
-
import "./index14.js";
|
|
18
|
-
import { BillCreateDialog as s } from "./index61.js";
|
|
19
|
-
import "./index62.js";
|
|
20
|
-
import { BillDetailsContainer as ne } from "./index64.js";
|
|
21
|
-
import "./index65.js";
|
|
22
|
-
import "./index71.js";
|
|
23
1
|
import "./index72.js";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { copyTextToClipboard as f } from "./index74.js";
|
|
28
|
-
import { resolveDuplicateWarning as p } from "./index75.js";
|
|
29
|
-
import { billsTabTestIds as m, billsTableCellTestIds as re } from "./index77.js";
|
|
30
|
-
import { useCallback as ie, useEffect as ae, useMemo as h, useState as g } from "react";
|
|
31
|
-
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
32
|
-
import { CalendarClockIcon as y, CheckIcon as b, FilePenIcon as x, ListIcon as S, LoaderCircleIcon as C } from "lucide-react";
|
|
33
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js
|
|
34
|
-
var w = "bills@business-banking.app", T = {
|
|
35
|
-
[l.Drafts]: /* @__PURE__ */ _(x, {
|
|
36
|
-
className: "ttw:size-4",
|
|
37
|
-
"aria-hidden": !0
|
|
38
|
-
}),
|
|
39
|
-
[l.Pending]: /* @__PURE__ */ _(C, {
|
|
40
|
-
className: "ttw:size-4",
|
|
41
|
-
"aria-hidden": !0
|
|
42
|
-
}),
|
|
43
|
-
[l.Scheduled]: /* @__PURE__ */ _(y, {
|
|
44
|
-
className: "ttw:size-4",
|
|
45
|
-
"aria-hidden": !0
|
|
46
|
-
}),
|
|
47
|
-
[l.Paid]: /* @__PURE__ */ _(b, {
|
|
48
|
-
className: "ttw:size-4",
|
|
49
|
-
"aria-hidden": !0
|
|
50
|
-
}),
|
|
51
|
-
[l.All]: /* @__PURE__ */ _(S, {
|
|
52
|
-
className: "ttw:size-4",
|
|
53
|
-
"aria-hidden": !0
|
|
54
|
-
})
|
|
55
|
-
};
|
|
56
|
-
function E({ labels: l, onEnqueueFiles: y, openPayableId: b, onOpenPayableHandled: x, poweredByBankName: S }) {
|
|
57
|
-
let C = h(() => ({
|
|
58
|
-
...u,
|
|
59
|
-
...l,
|
|
60
|
-
queues: {
|
|
61
|
-
...u.queues,
|
|
62
|
-
...l?.queues
|
|
63
|
-
},
|
|
64
|
-
filters: {
|
|
65
|
-
...u.filters,
|
|
66
|
-
...l?.filters,
|
|
67
|
-
presets: {
|
|
68
|
-
...u.filters.presets,
|
|
69
|
-
...l?.filters?.presets
|
|
70
|
-
},
|
|
71
|
-
statuses: {
|
|
72
|
-
...u.filters.statuses,
|
|
73
|
-
...l?.filters?.statuses
|
|
74
|
-
},
|
|
75
|
-
dateFieldNames: {
|
|
76
|
-
...u.filters.dateFieldNames,
|
|
77
|
-
...l?.filters?.dateFieldNames
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
filterBar: {
|
|
81
|
-
...u.filterBar,
|
|
82
|
-
...l?.filterBar
|
|
83
|
-
},
|
|
84
|
-
queueEmptyStates: c.reduce((e, t) => ({
|
|
85
|
-
...e,
|
|
86
|
-
[t]: {
|
|
87
|
-
...u.queueEmptyStates[t],
|
|
88
|
-
...l?.queueEmptyStates?.[t]
|
|
89
|
-
}
|
|
90
|
-
}), {})
|
|
91
|
-
}), [l]), [E, D] = g(!1), [oe, O] = g(), [k, A] = g(!1), [j, M] = g(), [N, P] = g(!1), [F, I] = g(!1), [L, R] = g(!1), { initResponse: z } = ee(), B = r(), V = t(z?.scopes, [n.PayableReadOrg]), H = t(z?.scopes, [n.PayableWriteOrg]), U = !z || V, W = !z || H, G = ie((e, t) => {
|
|
92
|
-
if (t && W) {
|
|
93
|
-
O(e), A(!0);
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
M(e), P(!0);
|
|
97
|
-
}, [W]), K = t(z?.scopes, [n.CounterpartReadOrg]), q = d({
|
|
98
|
-
enabled: U,
|
|
99
|
-
canReadVendors: K,
|
|
100
|
-
isVendorFilterPaused: B,
|
|
101
|
-
filterLabels: C.filters,
|
|
102
|
-
onOpenBill: G,
|
|
103
|
-
duplicateRowNote: C.duplicateRowNote,
|
|
104
|
-
attachmentLabel: C.attachmentIndicator
|
|
105
|
-
}), J = i({ enabled: U }), se = p(J, C), ce = h(() => c.map((e) => ({
|
|
106
|
-
id: e,
|
|
107
|
-
label: C.queues[e],
|
|
108
|
-
icon: T[e]
|
|
109
|
-
})), [C.queues]), le = (e) => {
|
|
110
|
-
R(!1), M(e), P(!0);
|
|
111
|
-
}, ue = () => {
|
|
112
|
-
P(!1), I(!0);
|
|
113
|
-
}, Y = () => {
|
|
114
|
-
I(!1), P(!0);
|
|
115
|
-
}, X = () => {
|
|
116
|
-
P(!1), I(!1), O(j), A(!0);
|
|
117
|
-
}, de = h(() => ({
|
|
118
|
-
createButton: C.createButton,
|
|
119
|
-
addBill: { heading: C.nonEmptyHeading }
|
|
120
|
-
}), [C.createButton, C.nonEmptyHeading]), fe = h(() => ({
|
|
121
|
-
...q.filterBarProps,
|
|
122
|
-
labels: C.filterBar
|
|
123
|
-
}), [q.filterBarProps, C.filterBar]), Z = () => {
|
|
124
|
-
D(!1), O(void 0), A(!0);
|
|
125
|
-
}, Q = (e) => {
|
|
126
|
-
D(!1), y?.(e);
|
|
127
|
-
}, $ = async () => {
|
|
128
|
-
await f(w) ? e.success(C.emailCopiedToast) : e.error(C.emailCopyFailedToast);
|
|
129
|
-
};
|
|
130
|
-
return ae(() => {
|
|
131
|
-
b && (O(b), A(!0), x?.());
|
|
132
|
-
}, [x, b]), /* @__PURE__ */ v("div", {
|
|
133
|
-
"data-testid": m.root,
|
|
134
|
-
children: [
|
|
135
|
-
/* @__PURE__ */ _(o, {
|
|
136
|
-
rows: q.rows,
|
|
137
|
-
isLoading: q.isLoading || !z,
|
|
138
|
-
isError: q.isError,
|
|
139
|
-
onRetry: q.onRetry,
|
|
140
|
-
sorting: q.sorting,
|
|
141
|
-
onSortingChange: q.onSortingChange,
|
|
142
|
-
pageSize: q.pageSize,
|
|
143
|
-
onPageSizeChange: q.onPageSizeChange,
|
|
144
|
-
hasNextPage: q.hasNextPage,
|
|
145
|
-
hasPrevPage: q.hasPrevPage,
|
|
146
|
-
onNextPage: q.onNextPage,
|
|
147
|
-
onPrevPage: q.onPrevPage,
|
|
148
|
-
filterTabs: ce,
|
|
149
|
-
selectedFilterTabId: q.selectedFilterTabId,
|
|
150
|
-
onFilterTabChange: q.onFilterTabChange,
|
|
151
|
-
searchValue: q.searchValue,
|
|
152
|
-
onSearchChange: q.onSearchChange,
|
|
153
|
-
filters: fe,
|
|
154
|
-
visibleColumns: q.visibleColumns,
|
|
155
|
-
cellTestIds: re,
|
|
156
|
-
isSearchActive: q.isSearchActive,
|
|
157
|
-
showAddPanelWhenEmpty: q.showAddPanelWhenEmpty,
|
|
158
|
-
emptyState: C.queueEmptyStates[q.selectedFilterTabId],
|
|
159
|
-
onCreateClick: W ? () => D(!0) : void 0,
|
|
160
|
-
onEnterManually: W ? Z : void 0,
|
|
161
|
-
onFilesSelected: W ? Q : void 0,
|
|
162
|
-
maxFiles: 10,
|
|
163
|
-
emailAddress: w,
|
|
164
|
-
onCopyEmail: $,
|
|
165
|
-
duplicateWarning: se,
|
|
166
|
-
onReviewDuplicates: J.isError ? void 0 : () => R(!0),
|
|
167
|
-
labels: de
|
|
168
|
-
}),
|
|
169
|
-
L ? /* @__PURE__ */ _(te, {
|
|
170
|
-
open: L,
|
|
171
|
-
onOpenChange: R,
|
|
172
|
-
enabled: U,
|
|
173
|
-
canManageDuplicates: W,
|
|
174
|
-
onOpenBill: le
|
|
175
|
-
}) : null,
|
|
176
|
-
W ? /* @__PURE__ */ _(a, {
|
|
177
|
-
open: E,
|
|
178
|
-
onOpenChange: D,
|
|
179
|
-
onFilesSelected: Q,
|
|
180
|
-
maxFiles: 10,
|
|
181
|
-
onEnterManually: Z,
|
|
182
|
-
emailAddress: w,
|
|
183
|
-
onCopyEmail: $,
|
|
184
|
-
labels: { heading: q.hasAnyBills ? C.nonEmptyHeading : C.emptyHeading }
|
|
185
|
-
}) : null,
|
|
186
|
-
k ? /* @__PURE__ */ _(s, {
|
|
187
|
-
open: k,
|
|
188
|
-
onOpenChange: A,
|
|
189
|
-
payableId: oe
|
|
190
|
-
}) : null,
|
|
191
|
-
N ? /* @__PURE__ */ _(ne, {
|
|
192
|
-
open: N,
|
|
193
|
-
onOpenChange: P,
|
|
194
|
-
payableId: j,
|
|
195
|
-
onClose: () => P(!1),
|
|
196
|
-
onExpand: ue,
|
|
197
|
-
onEdit: X,
|
|
198
|
-
testId: m.detailsSheet,
|
|
199
|
-
poweredByBankName: S
|
|
200
|
-
}) : null,
|
|
201
|
-
F ? /* @__PURE__ */ _(s, {
|
|
202
|
-
open: F,
|
|
203
|
-
onOpenChange: I,
|
|
204
|
-
payableId: j,
|
|
205
|
-
readOnly: !0,
|
|
206
|
-
onCollapse: Y,
|
|
207
|
-
onEdit: X,
|
|
208
|
-
poweredByBankName: S
|
|
209
|
-
}) : null
|
|
210
|
-
]
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
//#endregion
|
|
214
|
-
export { E as BillsTab, E as default };
|
|
2
|
+
import "./index75.js";
|
|
3
|
+
import "./index81.js";
|
|
4
|
+
import "./index82.js";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js
|
|
2
|
+
var e = {
|
|
3
|
+
bills: "Bills",
|
|
4
|
+
vendors: "Vendors",
|
|
5
|
+
settings: "Settings"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as DEFAULT_TABS_LABELS };
|