@tesouro/embedded-components-react 0.3.19 → 0.3.20

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.
Files changed (58) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +4 -4
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +14 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +4 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +28 -97
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +81 -176
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +50 -4
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +250 -5
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +106 -107
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +209 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -24
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +114 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +1 -0
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +25 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +21 -17
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +36 -11
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +10 -283
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +199 -8
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +3 -8
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +14 -91
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +314 -0
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -2
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +4 -14
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +85 -105
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -7
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +16 -28
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +113 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -7
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +5 -32
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +30 -2
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -12
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +5 -104
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -2
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -18
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +9 -7
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +81 -145
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +15 -11
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +8 -87
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +170 -2
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -0
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +14 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +89 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -0
  54. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  55. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  56. package/dist/packages/shared-ui-shadcn/dist/index.js +16 -11
  57. package/package.json +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +0 -2
@@ -1 +1,209 @@
1
- import "./index66.js";
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 { AddBillDialog as i } from "../../ui/dist/index10.js";
13
+ import { BillsScreen as a } from "../../ui/dist/index64.js";
14
+ import "../../ui/dist/index.js";
15
+ import { BillCreateDialog as o } from "./index41.js";
16
+ import "./index42.js";
17
+ import { BillDetailsContainer as s } from "./index45.js";
18
+ import "./index46.js";
19
+ import "./index52.js";
20
+ import "./index53.js";
21
+ import { DuplicateBillsContainer as te } from "./index56.js";
22
+ import "./index57.js";
23
+ import { BILL_QUEUE_ORDER as c, BillQueue as l } from "./index58.js";
24
+ import { BILLS_TAB_LABELS_EN as u } from "./index60.js";
25
+ import { useBillsTable as ne } from "./index66.js";
26
+ import { copyTextToClipboard as re } from "./index59.js";
27
+ import { billsTabTestIds as d, billsTableCellTestIds as f } from "./index61.js";
28
+ import { useCallback as p, useEffect as ie, useMemo as m, useState as h } from "react";
29
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
30
+ import { CalendarClockIcon as v, CheckIcon as y, FilePenIcon as b, ListIcon as x, LoaderCircleIcon as S } from "lucide-react";
31
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js
32
+ var C = "bills@business-banking.app", ae = {
33
+ [l.Drafts]: /* @__PURE__ */ g(b, {
34
+ className: "ttw:size-4",
35
+ "aria-hidden": !0
36
+ }),
37
+ [l.Pending]: /* @__PURE__ */ g(S, {
38
+ className: "ttw:size-4",
39
+ "aria-hidden": !0
40
+ }),
41
+ [l.Scheduled]: /* @__PURE__ */ g(v, {
42
+ className: "ttw:size-4",
43
+ "aria-hidden": !0
44
+ }),
45
+ [l.Paid]: /* @__PURE__ */ g(y, {
46
+ className: "ttw:size-4",
47
+ "aria-hidden": !0
48
+ }),
49
+ [l.All]: /* @__PURE__ */ g(x, {
50
+ className: "ttw:size-4",
51
+ "aria-hidden": !0
52
+ })
53
+ };
54
+ function w({ labels: l, onEnqueueFiles: v, openPayableId: y, onOpenPayableHandled: b, poweredByBankName: x, duplicateBills: S }) {
55
+ let w = m(() => ({
56
+ ...u,
57
+ ...l,
58
+ queues: {
59
+ ...u.queues,
60
+ ...l?.queues
61
+ },
62
+ filters: {
63
+ ...u.filters,
64
+ ...l?.filters,
65
+ presets: {
66
+ ...u.filters.presets,
67
+ ...l?.filters?.presets
68
+ },
69
+ statuses: {
70
+ ...u.filters.statuses,
71
+ ...l?.filters?.statuses
72
+ },
73
+ dateFieldNames: {
74
+ ...u.filters.dateFieldNames,
75
+ ...l?.filters?.dateFieldNames
76
+ }
77
+ },
78
+ filterBar: {
79
+ ...u.filterBar,
80
+ ...l?.filterBar
81
+ },
82
+ queueEmptyStates: c.reduce((e, t) => ({
83
+ ...e,
84
+ [t]: {
85
+ ...u.queueEmptyStates[t],
86
+ ...l?.queueEmptyStates?.[t]
87
+ }
88
+ }), {})
89
+ }), [l]), [T, E] = h(!1), [D, O] = h(), [k, A] = h(!1), [j, M] = h(), [N, P] = h(!1), [F, I] = h(!1), [L, R] = h(!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 = p((e, t) => {
90
+ if (t && W) {
91
+ O(e), A(!0);
92
+ return;
93
+ }
94
+ M(e), P(!0);
95
+ }, [W]), K = m(() => (S ?? []).filter((e) => e.isPossibleDuplicate).map((e) => e.id), [S]), q = t(z?.scopes, [n.CounterpartReadOrg]), J = ne({
96
+ enabled: U,
97
+ canReadVendors: q,
98
+ isVendorFilterPaused: B,
99
+ filterLabels: w.filters,
100
+ onOpenBill: G,
101
+ duplicateBillIds: K,
102
+ duplicateBadgeLabel: w.duplicateBadge,
103
+ attachmentLabel: w.attachmentIndicator
104
+ }), Y = (e) => !!(e && K.includes(e)), X = K.length, oe = X === 0 ? void 0 : X === 1 ? w.duplicateWarningOne : w.duplicateWarningMany(X), se = m(() => c.map((e) => ({
105
+ id: e,
106
+ label: w.queues[e],
107
+ icon: ae[e]
108
+ })), [w.queues]), ce = (e) => {
109
+ R(!1), M(e), P(!0);
110
+ }, le = () => {
111
+ P(!1), I(!0);
112
+ }, ue = m(() => ({
113
+ createButton: w.createButton,
114
+ addBill: { heading: w.nonEmptyHeading }
115
+ }), [w.createButton, w.nonEmptyHeading]), de = m(() => ({
116
+ ...J.filterBarProps,
117
+ labels: w.filterBar
118
+ }), [J.filterBarProps, w.filterBar]), Z = () => {
119
+ E(!1), O(void 0), A(!0);
120
+ }, Q = (e) => {
121
+ E(!1), v?.(e);
122
+ }, $ = async () => {
123
+ await re(C) ? e.success(w.emailCopiedToast) : e.error(w.emailCopyFailedToast);
124
+ };
125
+ return ie(() => {
126
+ y && (O(y), A(!0), b?.());
127
+ }, [b, y]), /* @__PURE__ */ _("div", {
128
+ "data-testid": d.root,
129
+ children: [
130
+ /* @__PURE__ */ g(a, {
131
+ rows: J.rows,
132
+ isLoading: J.isLoading || !z,
133
+ isError: J.isError,
134
+ onRetry: J.onRetry,
135
+ sorting: J.sorting,
136
+ onSortingChange: J.onSortingChange,
137
+ pageSize: J.pageSize,
138
+ onPageSizeChange: J.onPageSizeChange,
139
+ hasNextPage: J.hasNextPage,
140
+ hasPrevPage: J.hasPrevPage,
141
+ onNextPage: J.onNextPage,
142
+ onPrevPage: J.onPrevPage,
143
+ filterTabs: se,
144
+ selectedFilterTabId: J.selectedFilterTabId,
145
+ onFilterTabChange: J.onFilterTabChange,
146
+ searchValue: J.searchValue,
147
+ onSearchChange: J.onSearchChange,
148
+ filters: de,
149
+ visibleColumns: J.visibleColumns,
150
+ cellTestIds: f,
151
+ isSearchActive: J.isSearchActive,
152
+ showAddPanelWhenEmpty: J.showAddPanelWhenEmpty,
153
+ emptyState: w.queueEmptyStates[J.selectedFilterTabId],
154
+ onCreateClick: W ? () => E(!0) : void 0,
155
+ onEnterManually: W ? Z : void 0,
156
+ onFilesSelected: W ? Q : void 0,
157
+ maxFiles: 10,
158
+ emailAddress: C,
159
+ onCopyEmail: $,
160
+ duplicateWarning: oe,
161
+ onReviewDuplicates: () => R(!0),
162
+ labels: ue
163
+ }),
164
+ L ? /* @__PURE__ */ g(te, {
165
+ open: L,
166
+ onOpenChange: R,
167
+ bills: S,
168
+ canManageDuplicates: W,
169
+ onOpenBill: ce
170
+ }) : null,
171
+ W ? /* @__PURE__ */ g(i, {
172
+ open: T,
173
+ onOpenChange: E,
174
+ onFilesSelected: Q,
175
+ maxFiles: 10,
176
+ onEnterManually: Z,
177
+ emailAddress: C,
178
+ onCopyEmail: $,
179
+ labels: { heading: J.hasAnyBills ? w.nonEmptyHeading : w.emptyHeading }
180
+ }) : null,
181
+ k ? /* @__PURE__ */ g(o, {
182
+ open: k,
183
+ onOpenChange: A,
184
+ payableId: D,
185
+ isPossibleDuplicate: Y(D)
186
+ }) : null,
187
+ N ? /* @__PURE__ */ g(s, {
188
+ open: N,
189
+ onOpenChange: P,
190
+ payableId: j,
191
+ onClose: () => P(!1),
192
+ onExpand: le,
193
+ isPossibleDuplicate: Y(j),
194
+ testId: d.detailsSheet,
195
+ poweredByBankName: x
196
+ }) : null,
197
+ F ? /* @__PURE__ */ g(o, {
198
+ open: F,
199
+ onOpenChange: I,
200
+ payableId: j,
201
+ readOnly: !0,
202
+ poweredByBankName: x,
203
+ isPossibleDuplicate: Y(j)
204
+ }) : null
205
+ ]
206
+ });
207
+ }
208
+ //#endregion
209
+ export { w as BillsTab, w as default };
@@ -1,25 +1,4 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
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 "./index48.js";
9
- import "./index49.js";
10
- import { BillPayWidgetNative as r } from "./index66.js";
1
+ import "./index58.js";
2
+ import "./index60.js";
3
+ import "./index66.js";
11
4
  import "./index67.js";
12
- import { jsx as i } from "react/jsx-runtime";
13
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js
14
- function a({ implementation: a, ...o }) {
15
- let s = t().implementation, c = a ?? s ?? e.Monite;
16
- return c === e.Native ? /* @__PURE__ */ i(r, {
17
- implementation: c,
18
- ...o
19
- }) : /* @__PURE__ */ i(n, {
20
- implementation: c,
21
- ...o
22
- });
23
- }
24
- //#endregion
25
- export { a as BillPayWidget, a as default };
@@ -0,0 +1,8 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js
2
+ var e = {
3
+ bills: "Bills",
4
+ vendors: "Vendors",
5
+ settings: "Settings"
6
+ };
7
+ //#endregion
8
+ export { e as DEFAULT_TABS_LABELS };
@@ -1,6 +1,6 @@
1
1
  import { SOURCE_ACCOUNT_LABELS_EN as e } from "./index6.js";
2
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as t } from "../../ui/dist/index75.js";
3
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as n } from "../../ui/dist/index78.js";
2
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as t } from "../../ui/dist/index79.js";
3
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as n } from "../../ui/dist/index82.js";
4
4
  import "../../ui/dist/index.js";
5
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js
6
6
  var r = {
@@ -0,0 +1,114 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
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/index44.js";
15
+ import { BillUploadStatusTray as s } from "../../ui/dist/index67.js";
16
+ import "../../ui/dist/index.js";
17
+ import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
18
+ import "../../../shared/approval-policy/feature/dist/index.js";
19
+ import { useBillUploadQueue as l } from "./index52.js";
20
+ import "./index53.js";
21
+ import { billsTabTestIds as u } from "./index61.js";
22
+ import { BillsTab as d } from "./index67.js";
23
+ import "./index68.js";
24
+ import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index47.js";
25
+ import { DEFAULT_TABS_LABELS as m } from "./index69.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/index70.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: p, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E, poweredByBankName: D }) {
41
+ let O = r();
42
+ _(() => {
43
+ O(f.Mounted);
44
+ }, [O]);
45
+ let k = {
46
+ ...m,
47
+ ...p
48
+ }, { initResponse: A } = a(), j = e(A?.scopes, [t.ApprovalPolicyWriteOrg]), M = !A || j, [N, P] = v(S.Bills), [F, I] = v(), L = g((e) => {
49
+ P(S.Bills), I(e);
50
+ }, []), R = l({ onOpenBill: L }), z = [{
51
+ id: S.Bills,
52
+ label: k.bills,
53
+ content: /* @__PURE__ */ b(d, {
54
+ onEnqueueFiles: R.enqueue,
55
+ openPayableId: F,
56
+ onOpenPayableHandled: () => I(void 0),
57
+ poweredByBankName: D
58
+ })
59
+ }, {
60
+ id: S.Vendors,
61
+ label: k.vendors,
62
+ content: /* @__PURE__ */ b(h, {
63
+ ...E,
64
+ counterpartType: "vendor",
65
+ onViewAllDocuments: () => P(S.Bills)
66
+ })
67
+ }];
68
+ M && z.push({
69
+ id: S.Settings,
70
+ label: k.settings,
71
+ content: /* @__PURE__ */ b(c, {
72
+ labels: w,
73
+ componentLabels: T
74
+ })
75
+ });
76
+ let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
77
+ return /* @__PURE__ */ x(y, { children: [
78
+ /* @__PURE__ */ b(n, {}),
79
+ /* @__PURE__ */ b(o, {
80
+ labels: i,
81
+ tabs: z,
82
+ selectedTabId: B,
83
+ onTabChange: P
84
+ }),
85
+ R.isVisible ? /* @__PURE__ */ b(s, {
86
+ sections: R.sections,
87
+ summaryLabel: R.summaryLabel,
88
+ collapsed: R.collapsed,
89
+ onToggleCollapsed: R.onToggleCollapsed,
90
+ onClose: R.onClose,
91
+ testId: u.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: f, ...m }) {
96
+ return /* @__PURE__ */ b(i, {
97
+ widgetName: p,
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: f,
110
+ children: /* @__PURE__ */ b(w, { ...m })
111
+ });
112
+ }
113
+ //#endregion
114
+ export { T as BillPayWidgetNative, T as default };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
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 "./index48.js";
9
+ import "./index49.js";
10
+ import { BillPayWidgetNative as r } from "./index70.js";
11
+ import "./index71.js";
12
+ import { jsx as i } from "react/jsx-runtime";
13
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js
14
+ function a({ implementation: a, ...o }) {
15
+ let s = t().implementation, c = a ?? s ?? e.Monite;
16
+ return c === e.Native ? /* @__PURE__ */ i(r, {
17
+ implementation: c,
18
+ ...o
19
+ }) : /* @__PURE__ */ i(n, {
20
+ implementation: c,
21
+ ...o
22
+ });
23
+ }
24
+ //#endregion
25
+ export { a as BillPayWidget, a as default };
@@ -49,27 +49,31 @@ import "./index55.js";
49
49
  import "./index56.js";
50
50
  import { BillDuplicateNotice as s } from "./index57.js";
51
51
  import "./index58.js";
52
- import { BillColumn as c } from "./index59.js";
53
- import { BillsScreen as l } from "./index60.js";
52
+ import "./index59.js";
53
+ import { BillsFilterField as c } from "./index60.js";
54
54
  import "./index61.js";
55
- import { BillUploadStatusTray as u } from "./index63.js";
55
+ import "./index62.js";
56
+ import { BillColumn as l } from "./index63.js";
57
+ import { BillsScreen as u } from "./index64.js";
56
58
  import "./index65.js";
57
- import "./index66.js";
58
- import { DuplicateBillsDialog as d } from "./index67.js";
59
- import "./index68.js";
59
+ import { BillUploadStatusTray as d } from "./index67.js";
60
60
  import "./index69.js";
61
- import { ExtractionNotice as f } from "./index70.js";
62
- import "./index71.js";
61
+ import "./index70.js";
62
+ import { DuplicateBillsDialog as f } from "./index71.js";
63
63
  import "./index72.js";
64
64
  import "./index73.js";
65
- import "./index74.js";
66
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as p } from "./index75.js";
67
- import { ReviewTransactionDialog as m } from "./index76.js";
65
+ import { ExtractionNotice as p } from "./index74.js";
66
+ import "./index75.js";
67
+ import "./index76.js";
68
68
  import "./index77.js";
69
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as h } from "./index78.js";
70
- import { SchedulePaymentDialog as g } from "./index80.js";
69
+ import "./index78.js";
70
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as m } from "./index79.js";
71
+ import { ReviewTransactionDialog as h } from "./index80.js";
71
72
  import "./index81.js";
72
- import "./index82.js";
73
- import { SourceDocumentPanel as _ } from "./index83.js";
74
- import "./index84.js";
75
- export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, c as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, u as BillUploadStatusTray, l as BillsScreen, d as DuplicateBillsDialog, f as ExtractionNotice, p as REVIEW_TRANSACTION_DIALOG_LABELS_EN, m as ReviewTransactionDialog, h as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, g as SchedulePaymentDialog, _ as SourceDocumentPanel };
73
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as g } from "./index82.js";
74
+ import { SchedulePaymentDialog as _ } from "./index84.js";
75
+ import "./index85.js";
76
+ import "./index86.js";
77
+ import { SourceDocumentPanel as v } from "./index87.js";
78
+ import "./index88.js";
79
+ export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, l as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, d as BillUploadStatusTray, c as BillsFilterField, u as BillsScreen, f as DuplicateBillsDialog, p as ExtractionNotice, m as REVIEW_TRANSACTION_DIALOG_LABELS_EN, h as ReviewTransactionDialog, g as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, _ as SchedulePaymentDialog, v as SourceDocumentPanel };
@@ -45,12 +45,14 @@ var a = {
45
45
  }, c = {
46
46
  createButton: "Add bill",
47
47
  columnVendor: "Vendor",
48
+ columnIssueDate: "Issue date",
48
49
  columnDueDate: "Due date",
49
50
  columnScheduledDate: "Scheduled date",
50
51
  columnPaidDate: "Paid date",
51
52
  columnAmountDue: "Amount due",
52
53
  columnAmountScheduled: "Amount scheduled",
53
54
  columnAmountPaid: "Amount paid",
55
+ columnTotalAmount: "Total amount",
54
56
  columnStatus: "Status",
55
57
  columnAddedOn: "Added on",
56
58
  columnActions: "Actions",
@@ -1,14 +1,39 @@
1
+ import { AMOUNT_FILTER_LABELS_EN as e, DATE_RANGE_PICKER_LABELS_EN as t, FILTER_MENU_BUTTON_LABELS_EN as n, FILTER_TAG_LABELS_EN as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js
2
- var e = {
3
- Vendor: "vendor",
4
- DueDate: "dueDate",
5
- ScheduledDate: "scheduledDate",
6
- PaidDate: "paidDate",
7
- Status: "status",
8
- AmountDue: "amountDue",
9
- AmountScheduled: "amountScheduled",
10
- AmountPaid: "amountPaid",
11
- AddedOn: "addedOn"
3
+ var i = {
4
+ fields: {
5
+ vendor: "Vendor",
6
+ issueDate: "Issue date",
7
+ dueDate: "Due date",
8
+ status: "Status",
9
+ totalAmount: "Total amount",
10
+ addedOn: "Added on",
11
+ attachment: "Attachment"
12
+ },
13
+ fieldMenuLabel: "Filter bills by",
14
+ amountMin: "No less than",
15
+ amountMax: "No more than",
16
+ vendorSearchPlaceholder: "Search vendors",
17
+ vendorSearchLabel: "Search vendors",
18
+ vendorEmpty: "No vendors match",
19
+ vendorLoading: "Loading vendors",
20
+ vendorError: "Couldn't load vendors",
21
+ attachmentAny: "Any",
22
+ attachmentHas: "Has attachment",
23
+ attachmentNone: "No attachment",
24
+ attachmentLabel: "Filter by attachment",
25
+ clearAll: "Clear all",
26
+ filterMenuButton: n,
27
+ filterTag: r,
28
+ amountFilter: {
29
+ modeAny: e.modeAny,
30
+ modeExact: e.modeExact,
31
+ modeRange: e.modeRange,
32
+ flowAny: e.flowAny,
33
+ flowIn: e.flowIn,
34
+ flowOut: e.flowOut
35
+ },
36
+ dateRangePicker: { presetPlaceholder: t.presetPlaceholder }
12
37
  };
13
38
  //#endregion
14
- export { e as BillColumn };
39
+ export { i as BILLS_FILTER_BAR_LABELS_EN };