@tesouro/embedded-components-react 0.5.45 → 0.5.46

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 (36) hide show
  1. package/README.md +7 -5
  2. package/dist/index.d.ts +54 -24
  3. package/dist/lib/BankAccountOnboardingWidget.d.ts +15 -1
  4. package/dist/lib/BillPayWidget.d.ts +16 -1
  5. package/dist/lib/SettingsWidget.d.ts +1 -0
  6. package/dist/lib/WidgetSuite.d.ts +1 -0
  7. package/dist/lib/monite-sdk.d.ts +2 -0
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +12 -8
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +233 -211
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +3 -3
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +7 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +387 -387
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +1 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +119 -113
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +55 -70
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +9 -7
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -0
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +163 -151
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +77 -77
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js +17 -10
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js +2 -1
  26. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +10 -4
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +23 -23
  30. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +1 -0
  31. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +13 -4
  32. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +27 -29
  33. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +29 -28
  34. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +13 -13
  35. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  36. package/package.json +1 -1
@@ -37,6 +37,7 @@ var t = {
37
37
  emptyHeading: "Add your first bill",
38
38
  nonEmptyHeading: "Add a bill",
39
39
  createButton: "Add bill",
40
+ settingsButton: "Bill pay settings",
40
41
  emailCopiedToast: "Email address copied to clipboard",
41
42
  emailCopyFailedToast: "Could not copy the email address",
42
43
  queues: t,
@@ -17,124 +17,129 @@ import { DuplicateBillsContainer as te } from "./index12.js";
17
17
  import "./index14.js";
18
18
  import { BillCreateDialog as s } from "./index60.js";
19
19
  import "./index61.js";
20
- import { BillDetailsContainer as ne } from "./index63.js";
20
+ import { BillDetailsContainer as c } from "./index63.js";
21
21
  import "./index64.js";
22
22
  import "./index70.js";
23
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";
24
+ import { BILL_QUEUE_ORDER as l, BillQueue as u } from "./index72.js";
25
+ import { BILLS_TAB_LABELS_EN as d } from "./index75.js";
26
+ import { useBillsTable as f } from "./index81.js";
27
+ import { copyTextToClipboard as p } from "./index73.js";
28
+ import { resolveDuplicateWarning as m } from "./index74.js";
29
+ import { billsTabTestIds as h, billsTableCellTestIds as ne } from "./index76.js";
30
+ import { useCallback as re, useEffect as ie, useMemo as g, useState as _ } from "react";
31
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
32
+ import { CalendarClockIcon as b, CheckIcon as x, FilePenIcon as S, ListIcon as C, LoaderCircleIcon as w } from "lucide-react";
33
33
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js
34
- var w = "bills@business-banking.app", T = {
35
- [l.Drafts]: /* @__PURE__ */ _(x, {
34
+ var T = "bills@business-banking.app", E = {
35
+ [u.Drafts]: /* @__PURE__ */ v(S, {
36
36
  className: "ttw:size-4",
37
37
  "aria-hidden": !0
38
38
  }),
39
- [l.Pending]: /* @__PURE__ */ _(C, {
39
+ [u.Pending]: /* @__PURE__ */ v(w, {
40
40
  className: "ttw:size-4",
41
41
  "aria-hidden": !0
42
42
  }),
43
- [l.Scheduled]: /* @__PURE__ */ _(y, {
43
+ [u.Scheduled]: /* @__PURE__ */ v(b, {
44
44
  className: "ttw:size-4",
45
45
  "aria-hidden": !0
46
46
  }),
47
- [l.Paid]: /* @__PURE__ */ _(b, {
47
+ [u.Paid]: /* @__PURE__ */ v(x, {
48
48
  className: "ttw:size-4",
49
49
  "aria-hidden": !0
50
50
  }),
51
- [l.All]: /* @__PURE__ */ _(S, {
51
+ [u.All]: /* @__PURE__ */ v(C, {
52
52
  className: "ttw:size-4",
53
53
  "aria-hidden": !0
54
54
  })
55
55
  };
56
- function E({ labels: l, onEnqueueFiles: y, openPayableId: b, onOpenPayableHandled: x, poweredByBankName: S }) {
57
- let C = h(() => ({
56
+ function D({ labels: u, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandled: S, poweredByBankName: C, onSettingsClick: w }) {
57
+ let D = g(() => ({
58
+ ...d,
58
59
  ...u,
59
- ...l,
60
60
  queues: {
61
- ...u.queues,
62
- ...l?.queues
61
+ ...d.queues,
62
+ ...u?.queues
63
63
  },
64
64
  filters: {
65
- ...u.filters,
66
- ...l?.filters,
65
+ ...d.filters,
66
+ ...u?.filters,
67
67
  presets: {
68
- ...u.filters.presets,
69
- ...l?.filters?.presets
68
+ ...d.filters.presets,
69
+ ...u?.filters?.presets
70
70
  },
71
71
  statuses: {
72
- ...u.filters.statuses,
73
- ...l?.filters?.statuses
72
+ ...d.filters.statuses,
73
+ ...u?.filters?.statuses
74
74
  },
75
75
  dateFieldNames: {
76
- ...u.filters.dateFieldNames,
77
- ...l?.filters?.dateFieldNames
76
+ ...d.filters.dateFieldNames,
77
+ ...u?.filters?.dateFieldNames
78
78
  }
79
79
  },
80
80
  filterBar: {
81
- ...u.filterBar,
82
- ...l?.filterBar
81
+ ...d.filterBar,
82
+ ...u?.filterBar
83
83
  },
84
- queueEmptyStates: c.reduce((e, t) => ({
84
+ queueEmptyStates: l.reduce((e, t) => ({
85
85
  ...e,
86
86
  [t]: {
87
- ...u.queueEmptyStates[t],
88
- ...l?.queueEmptyStates?.[t]
87
+ ...d.queueEmptyStates[t],
88
+ ...u?.queueEmptyStates?.[t]
89
89
  }
90
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);
91
+ }), [u]), [ae, O] = _(!1), [oe, k] = _(), [A, j] = _(!1), [M, N] = _(), [P, F] = _(!1), [I, L] = _(!1), [R, z] = _(!1), { initResponse: B } = ee(), V = r(), H = t(B?.scopes, [n.PayableReadOrg]), U = t(B?.scopes, [n.PayableWriteOrg]), W = !B || H, G = !B || U, K = re((e, t) => {
92
+ if (t && G) {
93
+ k(e), j(!0);
94
94
  return;
95
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) => ({
96
+ N(e), F(!0);
97
+ }, [G]), se = t(B?.scopes, [n.CounterpartReadOrg]), q = f({
98
+ enabled: W,
99
+ canReadVendors: se,
100
+ isVendorFilterPaused: V,
101
+ filterLabels: D.filters,
102
+ onOpenBill: K,
103
+ duplicateRowNote: D.duplicateRowNote,
104
+ attachmentLabel: D.attachmentIndicator
105
+ }), J = i({ enabled: W }), ce = m(J, D), le = g(() => l.map((e) => ({
106
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);
107
+ label: D.queues[e],
108
+ icon: E[e]
109
+ })), [D.queues]), ue = (e) => {
110
+ z(!1), N(e), F(!0);
111
+ }, de = () => {
112
+ F(!1), L(!0);
113
+ }, fe = () => {
114
+ L(!1), F(!0);
113
115
  }, 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(() => ({
116
+ F(!1), L(!1), k(M), j(!0);
117
+ }, X = g(() => ({
118
+ createButton: D.createButton,
119
+ settingsButton: D.settingsButton,
120
+ addBill: { heading: D.nonEmptyHeading }
121
+ }), [
122
+ D.createButton,
123
+ D.settingsButton,
124
+ D.nonEmptyHeading
125
+ ]), pe = g(() => ({
121
126
  ...q.filterBarProps,
122
- labels: C.filterBar
123
- }), [q.filterBarProps, C.filterBar]), Z = () => {
124
- D(!1), O(void 0), A(!0);
127
+ labels: D.filterBar
128
+ }), [q.filterBarProps, D.filterBar]), Z = () => {
129
+ O(!1), k(void 0), j(!0);
125
130
  }, Q = (e) => {
126
- D(!1), y?.(e);
131
+ O(!1), b?.(e);
127
132
  }, $ = async () => {
128
- await f(w) ? e.success(C.emailCopiedToast) : e.error(C.emailCopyFailedToast);
133
+ await p(T) ? e.success(D.emailCopiedToast) : e.error(D.emailCopyFailedToast);
129
134
  };
130
- return ae(() => {
131
- b && (O(b), A(!0), x?.());
132
- }, [x, b]), /* @__PURE__ */ v("div", {
133
- "data-testid": m.root,
135
+ return ie(() => {
136
+ x && (k(x), j(!0), S?.());
137
+ }, [S, x]), /* @__PURE__ */ y("div", {
138
+ "data-testid": h.root,
134
139
  children: [
135
- /* @__PURE__ */ _(o, {
140
+ /* @__PURE__ */ v(o, {
136
141
  rows: q.rows,
137
- isLoading: q.isLoading || !z,
142
+ isLoading: q.isLoading || !B,
138
143
  isError: q.isError,
139
144
  onRetry: q.onRetry,
140
145
  sorting: q.sorting,
@@ -145,70 +150,71 @@ function E({ labels: l, onEnqueueFiles: y, openPayableId: b, onOpenPayableHandle
145
150
  hasPrevPage: q.hasPrevPage,
146
151
  onNextPage: q.onNextPage,
147
152
  onPrevPage: q.onPrevPage,
148
- filterTabs: ce,
153
+ filterTabs: le,
149
154
  selectedFilterTabId: q.selectedFilterTabId,
150
155
  onFilterTabChange: q.onFilterTabChange,
151
156
  searchValue: q.searchValue,
152
157
  onSearchChange: q.onSearchChange,
153
- filters: fe,
158
+ filters: pe,
154
159
  visibleColumns: q.visibleColumns,
155
- cellTestIds: re,
160
+ cellTestIds: ne,
156
161
  isSearchActive: q.isSearchActive,
157
162
  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,
163
+ emptyState: D.queueEmptyStates[q.selectedFilterTabId],
164
+ onCreateClick: G ? () => O(!0) : void 0,
165
+ onSettingsClick: w,
166
+ onEnterManually: G ? Z : void 0,
167
+ onFilesSelected: G ? Q : void 0,
162
168
  maxFiles: 10,
163
- emailAddress: w,
169
+ emailAddress: T,
164
170
  onCopyEmail: $,
165
- duplicateWarning: se,
166
- onReviewDuplicates: J.isError ? void 0 : () => R(!0),
167
- labels: de
171
+ duplicateWarning: ce,
172
+ onReviewDuplicates: J.isError ? void 0 : () => z(!0),
173
+ labels: X
168
174
  }),
169
- L ? /* @__PURE__ */ _(te, {
170
- open: L,
171
- onOpenChange: R,
172
- enabled: U,
173
- canManageDuplicates: W,
174
- onOpenBill: le
175
+ R ? /* @__PURE__ */ v(te, {
176
+ open: R,
177
+ onOpenChange: z,
178
+ enabled: W,
179
+ canManageDuplicates: G,
180
+ onOpenBill: ue
175
181
  }) : null,
176
- W ? /* @__PURE__ */ _(a, {
177
- open: E,
178
- onOpenChange: D,
182
+ G ? /* @__PURE__ */ v(a, {
183
+ open: ae,
184
+ onOpenChange: O,
179
185
  onFilesSelected: Q,
180
186
  maxFiles: 10,
181
187
  onEnterManually: Z,
182
- emailAddress: w,
188
+ emailAddress: T,
183
189
  onCopyEmail: $,
184
- labels: { heading: q.hasAnyBills ? C.nonEmptyHeading : C.emptyHeading }
190
+ labels: { heading: q.hasAnyBills ? D.nonEmptyHeading : D.emptyHeading }
185
191
  }) : null,
186
- k ? /* @__PURE__ */ _(s, {
187
- open: k,
188
- onOpenChange: A,
192
+ A ? /* @__PURE__ */ v(s, {
193
+ open: A,
194
+ onOpenChange: j,
189
195
  payableId: oe
190
196
  }) : 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
197
+ P ? /* @__PURE__ */ v(c, {
198
+ open: P,
199
+ onOpenChange: F,
200
+ payableId: M,
201
+ onClose: () => F(!1),
202
+ onExpand: de,
203
+ onEdit: Y,
204
+ testId: h.detailsSheet,
205
+ poweredByBankName: C
200
206
  }) : null,
201
- F ? /* @__PURE__ */ _(s, {
202
- open: F,
203
- onOpenChange: I,
204
- payableId: j,
207
+ I ? /* @__PURE__ */ v(s, {
208
+ open: I,
209
+ onOpenChange: L,
210
+ payableId: M,
205
211
  readOnly: !0,
206
- onCollapse: Y,
207
- onEdit: X,
208
- poweredByBankName: S
212
+ onCollapse: fe,
213
+ onEdit: Y,
214
+ poweredByBankName: C
209
215
  }) : null
210
216
  ]
211
217
  });
212
218
  }
213
219
  //#endregion
214
- export { E as BillsTab, E as default };
220
+ export { D as BillsTab, D as default };
@@ -1,8 +1,7 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js
2
2
  var e = {
3
3
  bills: "Bills",
4
- vendors: "Vendors",
5
- settings: "Settings"
4
+ vendors: "Vendors"
6
5
  };
7
6
  //#endregion
8
7
  export { e as DEFAULT_TABS_LABELS };
@@ -14,87 +14,72 @@ import "../../../shared/feature/dist/index.js";
14
14
  import { BillPayWidgetUi as o } from "../../ui/dist/index53.js";
15
15
  import { BillUploadStatusTray as s } from "../../ui/dist/index85.js";
16
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 "./index70.js";
17
+ import { useBillUploadQueue as c } from "./index70.js";
20
18
  import "./index71.js";
21
- import { billsTabTestIds as u } from "./index76.js";
22
- import { BillsTab as d } from "./index82.js";
19
+ import { billsTabTestIds as l } from "./index76.js";
20
+ import { BillsTab as u } from "./index82.js";
23
21
  import "./index83.js";
24
- import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index65.js";
25
- import { DEFAULT_TABS_LABELS as m } from "./index84.js";
26
- import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
22
+ import { BillPayWidgetAnalyticsEvent as d, WIDGET_NAME as f } from "./index65.js";
23
+ import { DEFAULT_TABS_LABELS as p } from "./index84.js";
24
+ import { CounterpartsWidget as m } from "../../../counterparts-widget/feature/dist/index8.js";
27
25
  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";
26
+ import { useCallback as h, useEffect as g, useState as _ } from "react";
27
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
30
28
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js
31
- var S = {
29
+ var x = {
32
30
  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
31
+ Vendors: "vendors"
32
+ }, S = [x.Bills, x.Vendors];
33
+ function C({ labels: i, initialTab: f = x.Bills, tabsLabels: C, vendorLabels: w, poweredByBankName: T, onSettingsClick: E }) {
34
+ let D = r();
35
+ g(() => {
36
+ D(d.Mounted);
37
+ }, [D]);
38
+ let O = {
39
+ ...p,
40
+ ...C
41
+ }, { initResponse: k } = a(), A = e(k?.scopes, [t.ApprovalPolicyWriteOrg]) && e(k?.scopes, [t.PayableWriteOrg]) && e(k?.scopes, [t.RoleReadOrg]) && e(k?.scopes, [t.UserReadOrg]), [j, M] = _(f), [N, P] = _(), F = h((e) => {
42
+ M(x.Bills), P(e);
43
+ }, []), I = c({ onOpenBill: F }), L = [{
44
+ id: x.Bills,
45
+ label: O.bills,
46
+ content: /* @__PURE__ */ y(u, {
47
+ onEnqueueFiles: I.enqueue,
48
+ openPayableId: N,
49
+ onOpenPayableHandled: () => P(void 0),
50
+ poweredByBankName: T,
51
+ onSettingsClick: E && A ? E : void 0
58
52
  })
59
53
  }, {
60
- id: S.Vendors,
61
- label: k.vendors,
62
- content: /* @__PURE__ */ b(h, {
63
- ...E,
54
+ id: x.Vendors,
55
+ label: O.vendors,
56
+ content: /* @__PURE__ */ y(m, {
57
+ ...w,
64
58
  counterpartType: "vendor",
65
- onViewAllDocuments: () => P(S.Bills)
59
+ onViewAllDocuments: () => M(x.Bills)
66
60
  })
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, {
61
+ }], R = L.some((e) => e.id === j) ? j : S.find((e) => L.some((t) => t.id === e)) ?? L[0]?.id ?? "";
62
+ return /* @__PURE__ */ b(v, { children: [
63
+ /* @__PURE__ */ y(n, {}),
64
+ /* @__PURE__ */ y(o, {
80
65
  labels: i,
81
- tabs: z,
82
- selectedTabId: B,
83
- onTabChange: P
66
+ tabs: L,
67
+ selectedTabId: R,
68
+ onTabChange: M
84
69
  }),
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
70
+ I.isVisible ? /* @__PURE__ */ y(s, {
71
+ sections: I.sections,
72
+ summaryLabel: I.summaryLabel,
73
+ collapsed: I.collapsed,
74
+ onToggleCollapsed: I.onToggleCollapsed,
75
+ onClose: I.onClose,
76
+ testId: l.uploadTray
92
77
  }) : null
93
78
  ] });
94
79
  }
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, providerLabels: m, ...h }) {
96
- return /* @__PURE__ */ b(i, {
97
- widgetName: p,
80
+ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: p, providerLabels: m, ...h }) {
81
+ return /* @__PURE__ */ y(i, {
82
+ widgetName: f,
98
83
  baseUrl: e,
99
84
  widgetToken: t,
100
85
  organizationId: n,
@@ -106,10 +91,10 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
106
91
  errorFallback: l,
107
92
  onError: u,
108
93
  analytics: d,
109
- disclosuresAcceptance: f,
94
+ disclosuresAcceptance: p,
110
95
  providerLabels: m,
111
- children: /* @__PURE__ */ b(w, { ...h })
96
+ children: /* @__PURE__ */ y(C, { ...h })
112
97
  });
113
98
  }
114
99
  //#endregion
115
- export { T as BillPayWidgetNative, T as default };
100
+ export { w as BillPayWidgetNative, w as default };
@@ -11,14 +11,16 @@ import { BillPayWidgetNative as r } from "./index85.js";
11
11
  import "./index86.js";
12
12
  import { jsx as i } from "react/jsx-runtime";
13
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.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
14
+ function a({ implementation: a, initialTab: o, onSettingsClick: s, ...c }) {
15
+ let l = t().implementation, u = a ?? l ?? e.Monite;
16
+ return u === e.Native ? /* @__PURE__ */ i(r, {
17
+ implementation: u,
18
+ initialTab: o,
19
+ onSettingsClick: s,
20
+ ...c
19
21
  }) : /* @__PURE__ */ i(n, {
20
- implementation: c,
21
- ...o
22
+ implementation: u,
23
+ ...c
22
24
  });
23
25
  }
24
26
  //#endregion
@@ -1,4 +1,4 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js
2
- var e = { description: "Review, approve, and pay your bills." };
2
+ var e = {};
3
3
  //#endregion
4
4
  export { e as DEFAULT_LABELS };
@@ -13,13 +13,13 @@ function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
13
13
  };
14
14
  return /* @__PURE__ */ o("section", {
15
15
  className: "ttw:w-full ttw:space-y-5",
16
- children: [/* @__PURE__ */ a("div", {
16
+ children: [d.description ? /* @__PURE__ */ a("div", {
17
17
  className: "ttw:min-w-0",
18
18
  children: /* @__PURE__ */ a("p", {
19
19
  className: "ttw:text-sm ttw:text-muted-foreground",
20
20
  children: d.description
21
21
  })
22
- }), /* @__PURE__ */ o(e, {
22
+ }) : null, /* @__PURE__ */ o(e, {
23
23
  value: l,
24
24
  onValueChange: u,
25
25
  className: "ttw:w-full",
@@ -55,6 +55,7 @@ var s = {
55
55
  }
56
56
  }, u = {
57
57
  createButton: "Add bill",
58
+ settingsButton: "Bill pay settings",
58
59
  columnVendor: "Vendor",
59
60
  columnAttachment: "Attachment",
60
61
  columnIssueDate: "Issue date",