@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.
Files changed (118) hide show
  1. package/README.md +14 -13
  2. package/dist/index.css +15 -0
  3. package/dist/index.d.ts +9 -0
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -0
  6. package/dist/lib/BillPayWidget.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +155 -151
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
  108. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
  109. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
  111. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
  112. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +126 -105
  114. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +13 -6
  115. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  116. package/package.json +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
@@ -1,8 +1,115 @@
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/index53.js";
15
+ import { BillUploadStatusTray as s } from "../../ui/dist/index85.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 "./index70.js";
20
+ import "./index71.js";
21
+ import { billsTabTestIds as u } from "./index76.js";
22
+ import { BillsTab as d } from "./index82.js";
23
+ 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";
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";
1
30
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js
2
- var e = {
3
- bills: "Bills",
4
- vendors: "Vendors",
5
- settings: "Settings"
6
- };
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, providerLabels: m, ...h }) {
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
+ providerLabels: m,
111
+ children: /* @__PURE__ */ b(w, { ...h })
112
+ });
113
+ }
7
114
  //#endregion
8
- export { e as DEFAULT_TABS_LABELS };
115
+ export { T as BillPayWidgetNative, T as default };
@@ -1,115 +1 @@
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/index53.js";
15
- import { BillUploadStatusTray as s } from "../../ui/dist/index82.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 "./index71.js";
20
- import "./index72.js";
21
- import { billsTabTestIds as u } from "./index77.js";
22
- import { BillsTab as d } from "./index83.js";
23
- import "./index84.js";
24
- import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index66.js";
25
- import { DEFAULT_TABS_LABELS as m } from "./index85.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/index86.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, providerLabels: m, ...h }) {
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
- providerLabels: m,
111
- children: /* @__PURE__ */ b(w, { ...h })
112
- });
113
- }
114
- //#endregion
115
- export { T as BillPayWidgetNative, T as default };
1
+ import "./index85.js";
@@ -1 +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 "./index66.js";
9
+ import "./index67.js";
10
+ import { BillPayWidgetNative as r } from "./index85.js";
1
11
  import "./index86.js";
12
+ import { jsx as i } from "react/jsx-runtime";
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
19
+ }) : /* @__PURE__ */ i(n, {
20
+ implementation: c,
21
+ ...o
22
+ });
23
+ }
24
+ //#endregion
25
+ export { a as BillPayWidget, a as default };
@@ -34,17 +34,20 @@ import "./index38.js";
34
34
  import "./index39.js";
35
35
  import "./index40.js";
36
36
  import "./index41.js";
37
+ import "./index42.js";
38
+ import { VendorSearchCombobox as n } from "./index43.js";
39
+ import "./index44.js";
37
40
  import "./index45.js";
38
41
  import "./index46.js";
39
42
  import "./index47.js";
40
43
  import "./index48.js";
41
- import { BillCreateScreen as n } from "./index50.js";
44
+ import { BillCreateScreen as r } from "./index50.js";
42
45
  import "./index51.js";
43
46
  import "./index52.js";
44
- import { BillPayWidgetUi as r } from "./index53.js";
47
+ import { BillPayWidgetUi as i } from "./index53.js";
45
48
  import "./index54.js";
46
49
  import "./index55.js";
47
- import { BillDecisionDialog as i } from "./index56.js";
50
+ import { BillDecisionDialog as a } from "./index56.js";
48
51
  import "./index57.js";
49
52
  import "./index58.js";
50
53
  import "./index59.js";
@@ -52,47 +55,50 @@ import "./index60.js";
52
55
  import "./index61.js";
53
56
  import "./index62.js";
54
57
  import "./index63.js";
55
- import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index64.js";
56
- import { BillDetailsSheet as o } from "./index65.js";
57
- import "./index66.js";
58
- import "./index67.js";
58
+ import { BILL_DETAILS_SHEET_LABELS_EN as o } from "./index64.js";
59
+ import { BillDetailsSheet as s } from "./index65.js";
60
+ import { DISCARD_CHANGES_DIALOG_LABELS_EN as c } from "./index66.js";
61
+ import { DiscardChangesDialog as l } from "./index67.js";
59
62
  import "./index68.js";
60
- import { BillDuplicateNotice as s } from "./index69.js";
63
+ import "./index69.js";
61
64
  import "./index70.js";
62
- import { BILL_REJECTED_BANNER_LABELS_EN as c } from "./index71.js";
63
- import { BillRejectedBanner as l } from "./index72.js";
65
+ import "./index71.js";
66
+ import { BillDuplicateNotice as u } from "./index72.js";
64
67
  import "./index73.js";
65
- import "./index74.js";
66
- import { BillsFilterField as u } from "./index75.js";
68
+ import { BILL_REJECTED_BANNER_LABELS_EN as d } from "./index74.js";
69
+ import { BillRejectedBanner as f } from "./index75.js";
67
70
  import "./index76.js";
68
71
  import "./index77.js";
69
- import { BillColumn as d } from "./index78.js";
70
- import { BillsScreen as f } from "./index79.js";
72
+ import { BillsFilterField as p } from "./index78.js";
73
+ import "./index79.js";
71
74
  import "./index80.js";
72
- import { BillUploadStatusTray as p } from "./index82.js";
73
- import "./index84.js";
74
- import "./index86.js";
75
- import { DuplicateBillsDialog as m } from "./index87.js";
76
- import "./index88.js";
75
+ import { BillColumn as m } from "./index81.js";
76
+ import { BillsScreen as h } from "./index82.js";
77
+ import "./index83.js";
78
+ import { BillUploadStatusTray as g } from "./index85.js";
79
+ import "./index87.js";
77
80
  import "./index89.js";
78
- import { ExtractionNotice as h } from "./index90.js";
81
+ import { DuplicateBillsDialog as _ } from "./index90.js";
79
82
  import "./index91.js";
80
83
  import "./index92.js";
81
- import "./index93.js";
84
+ import { ExtractionNotice as v } from "./index93.js";
82
85
  import "./index94.js";
83
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as g } from "./index95.js";
84
- import { ReviewTransactionDialog as _ } from "./index96.js";
86
+ import "./index95.js";
87
+ import "./index96.js";
85
88
  import "./index97.js";
86
- import { MARK_AS_PAID_DIALOG_LABELS_EN as v } from "./index98.js";
87
- import { MarkAsPaidDialog as y } from "./index99.js";
89
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as y } from "./index98.js";
90
+ import { ReviewTransactionDialog as b } from "./index99.js";
88
91
  import "./index100.js";
89
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as b } from "./index101.js";
90
- import { SchedulePaymentDialog as x } from "./index103.js";
91
- import "./index104.js";
92
- import "./index105.js";
93
- import { SourceDocumentPanel as S } from "./index106.js";
92
+ import { MARK_AS_PAID_DIALOG_LABELS_EN as x } from "./index101.js";
93
+ import { MarkAsPaidDialog as S } from "./index102.js";
94
+ import "./index103.js";
95
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as C } from "./index104.js";
96
+ import { SchedulePaymentDialog as w } from "./index106.js";
94
97
  import "./index107.js";
95
- import { UNSAVED_BILL_DIALOG_LABELS_EN as C } from "./index108.js";
96
- import { UnsavedBillDialog as w } from "./index109.js";
98
+ import "./index108.js";
99
+ import { SourceDocumentPanel as T } from "./index109.js";
97
100
  import "./index110.js";
98
- export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, c as BILL_REJECTED_BANNER_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, d as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, l as BillRejectedBanner, p as BillUploadStatusTray, u as BillsFilterField, f as BillsScreen, m as DuplicateBillsDialog, h as ExtractionNotice, v as MARK_AS_PAID_DIALOG_LABELS_EN, y as MarkAsPaidDialog, g as REVIEW_TRANSACTION_DIALOG_LABELS_EN, _ as ReviewTransactionDialog, b as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, x as SchedulePaymentDialog, S as SourceDocumentPanel, C as UNSAVED_BILL_DIALOG_LABELS_EN, w as UnsavedBillDialog };
101
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as E } from "./index111.js";
102
+ import { UnsavedBillDialog as D } from "./index112.js";
103
+ import "./index113.js";
104
+ export { e as AddBillDialog, o as BILL_DETAILS_SHEET_LABELS_EN, d as BILL_REJECTED_BANNER_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, m as BillColumn, r as BillCreateScreen, a as BillDecisionDialog, s as BillDetailsSheet, u as BillDuplicateNotice, i as BillPayWidgetUi, f as BillRejectedBanner, g as BillUploadStatusTray, p as BillsFilterField, h as BillsScreen, c as DISCARD_CHANGES_DIALOG_LABELS_EN, l as DiscardChangesDialog, _ as DuplicateBillsDialog, v as ExtractionNotice, x as MARK_AS_PAID_DIALOG_LABELS_EN, S as MarkAsPaidDialog, y as REVIEW_TRANSACTION_DIALOG_LABELS_EN, b as ReviewTransactionDialog, C as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, w as SchedulePaymentDialog, T as SourceDocumentPanel, E as UNSAVED_BILL_DIALOG_LABELS_EN, D as UnsavedBillDialog, n as VendorSearchCombobox };
@@ -1,18 +1,17 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js
2
2
  var e = {
3
- title: "Schedule payment",
4
- hiddenDescription: "Choose the account to pay from and the payment date.",
5
- payFrom: "Pay from",
6
- payFromPlaceholder: "Select an account",
3
+ title: "Mark this bill as paid",
4
+ description: "You can't undo this action.",
5
+ amountDue: "Amount due",
6
+ paymentAmount: "Payment amount",
7
7
  paymentDate: "Payment date",
8
- paymentDatePlaceholder: "Choose a date",
8
+ paymentDatePlaceholder: "Select",
9
9
  today: "Today",
10
- noAccounts: "No accounts available",
11
- loadingAccounts: "Loading accounts",
12
- accountsError: "Couldn't load accounts. Try again.",
13
- poweredByBank: (e) => `Powered by ${e}`,
10
+ comments: "Comments",
11
+ commentsOptionalSuffix: "(optional)",
12
+ commentsPlaceholder: "Additional context for this payment.",
14
13
  cancelButton: "Cancel",
15
- reviewButton: "Review payment"
14
+ confirmButton: "Mark as paid"
16
15
  };
17
16
  //#endregion
18
- export { e as SCHEDULE_PAYMENT_DIALOG_LABELS_EN };
17
+ export { e as MARK_AS_PAID_DIALOG_LABELS_EN };
@@ -1,10 +1,125 @@
1
+ import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as o, DialogHeader as s, DialogTitle as c, Label as l, Popover as u, PopoverContent as d, PopoverTrigger as f, Textarea as p } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { MARK_AS_PAID_DIALOG_LABELS_EN as m } from "./index101.js";
3
+ import { useId as h } from "react";
4
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
5
+ import { CalendarIcon as v } from "lucide-react";
1
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js
2
- var e = {
3
- neutral: "ttw:text-foreground",
4
- muted: "ttw:text-muted-foreground",
5
- success: "ttw:text-emerald-700",
6
- warning: "ttw:text-amber-700",
7
- error: "ttw:text-destructive"
8
- };
7
+ function y({ open: y, amountDue: b, dueDateSuffix: x, paymentAmount: S, selectedDate: C, selectedDateLabel: w, isToday: T, comment: E, isSubmitting: D, onDateChange: O, onCommentChange: k, onConfirm: A, onCancel: j, testId: M, confirmTestId: N, labels: P }) {
8
+ let F = {
9
+ ...m,
10
+ ...P
11
+ }, I = h(), L = h(), R = h();
12
+ return /* @__PURE__ */ g(r, {
13
+ open: y,
14
+ onOpenChange: (e) => e ? void 0 : j(),
15
+ children: /* @__PURE__ */ _(i, {
16
+ "data-testid": M,
17
+ className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
18
+ children: [
19
+ /* @__PURE__ */ _(s, { children: [/* @__PURE__ */ g(c, { children: F.title }), /* @__PURE__ */ g(a, { children: F.description })] }),
20
+ /* @__PURE__ */ _("div", {
21
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
22
+ children: [
23
+ /* @__PURE__ */ _("div", {
24
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
25
+ children: [/* @__PURE__ */ g("p", {
26
+ className: "ttw:text-base ttw:text-muted-foreground",
27
+ children: F.amountDue
28
+ }), /* @__PURE__ */ _("div", {
29
+ className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
30
+ children: [/* @__PURE__ */ g("p", {
31
+ className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
32
+ children: b
33
+ }), x ? /* @__PURE__ */ g("p", {
34
+ className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
35
+ children: x
36
+ }) : null]
37
+ })]
38
+ }),
39
+ /* @__PURE__ */ _("div", {
40
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
41
+ children: [/* @__PURE__ */ _("div", {
42
+ className: "ttw:grid ttw:gap-2.5",
43
+ children: [/* @__PURE__ */ g(l, { children: F.paymentAmount }), /* @__PURE__ */ g("div", {
44
+ "aria-disabled": !0,
45
+ className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
46
+ children: S
47
+ })]
48
+ }), /* @__PURE__ */ _("div", {
49
+ className: "ttw:grid ttw:gap-2.5",
50
+ children: [/* @__PURE__ */ g(l, {
51
+ id: I,
52
+ children: F.paymentDate
53
+ }), /* @__PURE__ */ _(u, { children: [/* @__PURE__ */ g(f, {
54
+ asChild: !0,
55
+ children: /* @__PURE__ */ _(t, {
56
+ type: "button",
57
+ variant: "outline",
58
+ className: "ttw:justify-start ttw:gap-2",
59
+ "aria-labelledby": `${I} ${L}`,
60
+ children: [
61
+ /* @__PURE__ */ g(v, { className: "ttw:size-4" }),
62
+ /* @__PURE__ */ g("span", {
63
+ id: L,
64
+ children: w ?? F.paymentDatePlaceholder
65
+ }),
66
+ T ? /* @__PURE__ */ g(e, {
67
+ variant: "secondary",
68
+ children: F.today
69
+ }) : null
70
+ ]
71
+ })
72
+ }), /* @__PURE__ */ g(d, {
73
+ align: "start",
74
+ className: "ttw:w-auto ttw:p-0",
75
+ children: /* @__PURE__ */ g(n, {
76
+ mode: "single",
77
+ selected: C,
78
+ onSelect: O
79
+ })
80
+ })] })]
81
+ })]
82
+ }),
83
+ /* @__PURE__ */ _("div", {
84
+ className: "ttw:grid ttw:gap-2.5",
85
+ children: [/* @__PURE__ */ _(l, {
86
+ htmlFor: R,
87
+ children: [
88
+ F.comments,
89
+ " ",
90
+ /* @__PURE__ */ g("span", {
91
+ className: "ttw:font-normal ttw:text-muted-foreground",
92
+ children: F.commentsOptionalSuffix
93
+ })
94
+ ]
95
+ }), /* @__PURE__ */ g(p, {
96
+ id: R,
97
+ value: E,
98
+ placeholder: F.commentsPlaceholder,
99
+ onChange: (e) => k(e.target.value)
100
+ })]
101
+ })
102
+ ]
103
+ }),
104
+ /* @__PURE__ */ _(o, {
105
+ className: "ttw:pt-4 ttw:sm:gap-3",
106
+ children: [/* @__PURE__ */ g(t, {
107
+ type: "button",
108
+ variant: "outline",
109
+ onClick: j,
110
+ children: F.cancelButton
111
+ }), /* @__PURE__ */ g(t, {
112
+ type: "button",
113
+ "data-testid": N,
114
+ disabled: !C,
115
+ loading: D,
116
+ onClick: A,
117
+ children: F.confirmButton
118
+ })]
119
+ })
120
+ ]
121
+ })
122
+ });
123
+ }
9
124
  //#endregion
10
- export { e as TONE_TEXT_CLASS };
125
+ export { y as MarkAsPaidDialog, y as default };