@tesouro/embedded-components-react 0.4.13 → 0.4.15

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 (176) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/lib/monite-sdk.d.ts +204 -468
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +14 -14
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +37 -78
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +98 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +81 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +7 -26
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +16 -61
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +26 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +63 -65
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +2 -6
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +66 -5
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +3 -41
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +28 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +40 -44
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +173 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +45 -47
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +1 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +45 -11
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +4 -8
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +13 -14
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +55 -22
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -66
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +7 -19
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +58 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +15 -11
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +134 -4
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +14 -31
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +4 -5
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +39 -87
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +78 -67
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +78 -48
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +24 -57
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +47 -91
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +119 -33
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +33 -168
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +170 -75
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +75 -21
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +23 -210
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +199 -203
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +198 -89
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +105 -13
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +12 -47
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +23 -6
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +47 -31
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +27 -198
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +198 -30
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +30 -234
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +240 -19
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +19 -347
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +364 -4
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -34
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -167
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +186 -3
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +56 -5
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +2 -44
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +46 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +1 -8
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +6 -9
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +9 -92
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +94 -3
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +3 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +125 -8
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -7
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -69
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -46
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +43 -18
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +20 -28
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +27 -82
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +83 -47
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -250
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +239 -101
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +107 -202
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +209 -3
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +4 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -43
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +6 -113
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +115 -1
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -24
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +25 -0
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +64 -89
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +42 -40
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +52 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +29 -47
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -297
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +52 -2
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +307 -7
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +2 -49
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +9 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -14
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -50
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +18 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +48 -21
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -340
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +23 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +338 -14
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +2 -120
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +16 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +118 -10
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -99
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +12 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +97 -11
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +1 -58
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +12 -1
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +53 -49
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -13
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +52 -179
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -2
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +180 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -41
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +4 -2
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +39 -5
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -92
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +7 -2
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +90 -2
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +2 -16
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +4 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +14 -84
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -287
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +86 -11
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +296 -1
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +11 -6
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +1 -39
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +8 -2
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +37 -37
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +37 -199
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +12 -3
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +199 -15
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -346
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +13 -6
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +345 -6
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +8 -91
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -0
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +93 -2
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -28
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +120 -82
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +28 -2
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +87 -5
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +2 -30
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +7 -2
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +28 -5
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +2 -34
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +7 -2
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +32 -10
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -105
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +12 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +104 -15
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -125
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +17 -2
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +123 -16
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -10
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +15 -167
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +10 -2
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +167 -11
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -108
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +14 -2
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +106 -8
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +2 -52
  167. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index3.js +15 -3
  168. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +63 -65
  169. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +4 -2
  170. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +6 -5
  171. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +1 -1
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +1 -1
  173. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  174. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  175. package/package.json +7 -7
  176. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +0 -127
@@ -1,115 +1,8 @@
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/index49.js";
15
- import { BillUploadStatusTray as s } from "../../ui/dist/index72.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 "./index65.js";
20
- import "./index66.js";
21
- import { billsTabTestIds as u } from "./index71.js";
22
- import { BillsTab as d } from "./index77.js";
23
- import "./index78.js";
24
- import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index60.js";
25
- import { DEFAULT_TABS_LABELS as m } from "./index79.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
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.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
- }
2
+ var e = {
3
+ bills: "Bills",
4
+ vendors: "Vendors",
5
+ settings: "Settings"
6
+ };
114
7
  //#endregion
115
- export { T as BillPayWidgetNative, T as default };
8
+ export { e as DEFAULT_TABS_LABELS };
@@ -1 +1,115 @@
1
- import "./index80.js";
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/index51.js";
15
+ import { BillUploadStatusTray as s } from "../../ui/dist/index74.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 "./index66.js";
20
+ import "./index67.js";
21
+ import { billsTabTestIds as u } from "./index72.js";
22
+ import { BillsTab as d } from "./index78.js";
23
+ import "./index79.js";
24
+ import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index61.js";
25
+ import { DEFAULT_TABS_LABELS as m } from "./index80.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/index81.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,25 +1 @@
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 "./index61.js";
9
- import "./index62.js";
10
- import { BillPayWidgetNative as r } from "./index80.js";
11
1
  import "./index81.js";
12
- import { jsx as i } from "react/jsx-runtime";
13
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.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,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 "./index62.js";
9
+ import "./index63.js";
10
+ import { BillPayWidgetNative as r } from "./index81.js";
11
+ import "./index82.js";
12
+ import { jsx as i } from "react/jsx-runtime";
13
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.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 };
@@ -2,97 +2,72 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import "../../../shared/ui/dist/index.js";
7
- import { DUPLICATE_BILLS_LABELS_EN as t } from "./index2.js";
8
- import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from "../../data-access/dist/index7.js";
5
+ import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
6
+ import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
7
+ import { suspectedPayableDuplicates as n } from "../../data-access/dist/index7.js";
8
+ import { useAllSuspectedDuplicatePayablesQuery as r, usePayablesQuery as i } from "../../data-access/dist/index15.js";
9
9
  import "../../data-access/dist/index.js";
10
- import { useDuplicateBills as i } from "./index7.js";
11
- import { useDuplicateBillsSelection as a } from "./index8.js";
12
- import { DuplicateBillsDialog as o } from "../../ui/dist/index77.js";
13
- import "../../ui/dist/index.js";
14
- import { useMemo as s, useState as c } from "react";
15
- import { jsx as l } from "react/jsx-runtime";
10
+ import { groupSuspectedDuplicates as a } from "./index5.js";
11
+ import { derivePayableStatus as o } from "./index6.js";
12
+ import { payableRemoval as s } from "./index8.js";
13
+ import { resolveVendorName as c } from "./index7.js";
14
+ import { useMemo as l } from "react";
16
15
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js
17
- function u({ open: u, onOpenChange: d, enabled: f = !0, canManageDuplicates: p = !0, onOpenBill: m, labels: h, dialogLabels: g }) {
18
- let _ = s(() => ({
19
- ...t,
20
- ...h
21
- }), [h]), v = i({ enabled: f }), y = s(() => v.groups.flatMap((e) => e.bills.map((e) => e.id)), [v.groups]), b = a({ reviewIds: y }), x = r(), [S, C] = c(), [w, T] = c(), E = s(() => {
22
- let [e] = v.groups;
23
- if (e) return w ? v.groups.some((e) => e.id === w.id) ? w.id : (v.groups[w.index] ?? v.groups[v.groups.length - 1]).id : e.id;
24
- }, [w, v.groups]), D = (e) => e.bills.filter((e) => b.isSelected(e.id)), O = async (t, n, r, i) => {
25
- let a = D(t);
26
- if (a.length === 0) throw Error("Duplicate review action taken with no bills selected — keeping and removing both need a subject.");
27
- let o = a.flatMap((e) => e.matches.map((t) => ({
28
- payableId: e.id,
29
- duplicateId: t.matchId,
30
- matchedPayableId: t.matchedPayableId,
31
- removeBy: e.removeBy
32
- })));
33
- C({
34
- groupId: t.id,
35
- action: r
36
- });
37
- try {
38
- await x.mutateAsync({
39
- verdict: n,
40
- targets: o
41
- }), e.success(i), b.deselect(a.map((e) => e.id));
42
- } catch {
43
- e.error(_.verdictFailedToast);
44
- } finally {
45
- C(void 0);
46
- }
47
- }, k = v.groups.map((e) => {
48
- let t = e.bills.map((e) => e.id), r = D(e), i = {
49
- vendorLabel: e.vendorLabel,
50
- count: e.bills.length
51
- };
52
- return {
53
- id: e.id,
54
- titleLabel: e.vendorLabel,
55
- countLabel: String(e.bills.length),
56
- accessibleLabel: _.reviewGroup(i),
57
- selectAllLabel: _.selectGroup(i),
58
- selectAllChecked: b.checkedState(t),
59
- onToggleAllRows: () => b.toggleAll(t),
60
- rows: e.bills.map((e) => ({
61
- id: e.id,
62
- status: e.status,
63
- statusTone: e.statusTone,
64
- removalOutcome: e.removeBy === "delete" || e.removeBy === "cancel" ? e.removeBy : void 0,
65
- invoiceNumberLabel: e.invoiceNumberLabel,
66
- amountLabel: e.amountLabel,
67
- invoiceDateLabel: e.invoiceDateLabel,
68
- addedOnLabel: e.addedOnLabel,
69
- selectLabel: _.selectRow(e),
70
- openLabel: _.openRow(e),
71
- isSelected: b.isSelected(e.id),
72
- onToggleSelected: () => b.toggle(e.id),
73
- onOpen: () => m?.(e.id)
74
- })),
75
- onKeepSelected: p ? () => void O(e, n.Keep, "keep", _.dismissedToast) : void 0,
76
- onRemoveDuplicates: p ? () => void O(e, n.Remove, "remove", _.removedToast) : void 0,
77
- isActionDisabled: r.length === 0,
78
- isRemoveUnavailable: r.some((e) => !e.removeBy),
79
- pendingAction: S?.groupId === e.id ? S.action : void 0
80
- };
81
- });
82
- return /* @__PURE__ */ l(o, {
83
- open: u,
84
- onOpenChange: d,
85
- groups: k,
86
- isLoading: v.isLoading,
87
- isError: v.isError,
88
- expandedGroupId: E,
89
- onExpandedGroupChange: (e) => T({
90
- id: e,
91
- index: v.groups.findIndex((t) => t.id === e)
92
- }),
93
- isBusy: !!S,
94
- labels: g
16
+ function u(e) {
17
+ return e.isError && e.data === void 0;
18
+ }
19
+ function d(e, n) {
20
+ return e == null ? "" : t(e / 100, { currencyCode: n ?? "USD" });
21
+ }
22
+ function f(t) {
23
+ let r = t.status ? o({
24
+ apiStatus: t.status,
25
+ dueDate: t.due_date,
26
+ scheduledPaymentDate: t.scheduled_payment_date
27
+ }) : void 0;
28
+ return {
29
+ id: t.id,
30
+ status: r?.status,
31
+ statusTone: r?.tone,
32
+ matches: n(t).map((e) => ({
33
+ matchId: e.id,
34
+ matchedPayableId: e.matched_payable_id
35
+ })),
36
+ removeBy: s(t.status),
37
+ vendorLabel: c(t),
38
+ invoiceNumberLabel: t.document_id ?? "",
39
+ amountLabel: d(t.total_amount ?? t.amount_due, t.currency),
40
+ invoiceDateLabel: e(t.issued_at),
41
+ addedOnLabel: e(t.created_at?.slice(0, 10))
42
+ };
43
+ }
44
+ function p(e) {
45
+ return a(e).map(({ members: e }) => e).filter((e) => e.length > 1).map((e) => ({
46
+ id: e[0].id,
47
+ vendorLabel: e.map(c).find(Boolean) ?? "",
48
+ bills: e.map(f)
49
+ }));
50
+ }
51
+ function m({ enabled: e = !0 } = {}) {
52
+ let t = r({ enabled: e }), n = t.data?.data;
53
+ return {
54
+ groups: l(() => p(n ?? []), [n]),
55
+ isLoading: t.isLoading,
56
+ isError: u(t)
57
+ };
58
+ }
59
+ function h({ enabled: e = !0 } = {}) {
60
+ let t = i({
61
+ duplicate_match_status: "suspected",
62
+ limit: 100,
63
+ enabled: e
95
64
  });
65
+ return {
66
+ count: t.data?.data?.length ?? 0,
67
+ isCapped: !!t.data?.next_pagination_token,
68
+ isError: u(t),
69
+ isLoading: t.isLoading
70
+ };
96
71
  }
97
72
  //#endregion
98
- export { u as DuplicateBillsContainer, u as default };
73
+ export { m as useDuplicateBills, h as useDuplicateBillsCount };
@@ -31,59 +31,61 @@ import "./index34.js";
31
31
  import "./index35.js";
32
32
  import "./index36.js";
33
33
  import "./index37.js";
34
- import "./index41.js";
35
- import "./index42.js";
34
+ import "./index38.js";
35
+ import "./index39.js";
36
36
  import "./index43.js";
37
37
  import "./index44.js";
38
- import { BillCreateScreen as n } from "./index46.js";
39
- import "./index47.js";
40
- import "./index48.js";
41
- import { BillPayWidgetUi as r } from "./index49.js";
38
+ import "./index45.js";
39
+ import "./index46.js";
40
+ import { BillCreateScreen as n } from "./index48.js";
41
+ import "./index49.js";
42
42
  import "./index50.js";
43
- import "./index51.js";
44
- import { BillDecisionDialog as i } from "./index52.js";
43
+ import { BillPayWidgetUi as r } from "./index51.js";
44
+ import "./index52.js";
45
45
  import "./index53.js";
46
- import "./index54.js";
46
+ import { BillDecisionDialog as i } from "./index54.js";
47
47
  import "./index55.js";
48
48
  import "./index56.js";
49
- import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index57.js";
50
- import { BillDetailsSheet as o } from "./index58.js";
51
- import "./index59.js";
52
- import "./index60.js";
49
+ import "./index57.js";
50
+ import "./index58.js";
51
+ import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index59.js";
52
+ import { BillDetailsSheet as o } from "./index60.js";
53
53
  import "./index61.js";
54
- import { BillDuplicateNotice as s } from "./index62.js";
54
+ import "./index62.js";
55
55
  import "./index63.js";
56
- import "./index64.js";
57
- import { BillsFilterField as c } from "./index65.js";
56
+ import { BillDuplicateNotice as s } from "./index64.js";
57
+ import "./index65.js";
58
58
  import "./index66.js";
59
- import "./index67.js";
60
- import { BillColumn as l } from "./index68.js";
61
- import { BillsScreen as u } from "./index69.js";
62
- import "./index70.js";
63
- import { BillUploadStatusTray as d } from "./index72.js";
64
- import "./index74.js";
59
+ import { BillsFilterField as c } from "./index67.js";
60
+ import "./index68.js";
61
+ import "./index69.js";
62
+ import { BillColumn as l } from "./index70.js";
63
+ import { BillsScreen as u } from "./index71.js";
64
+ import "./index72.js";
65
+ import { BillUploadStatusTray as d } from "./index74.js";
65
66
  import "./index76.js";
66
- import { DuplicateBillsDialog as f } from "./index77.js";
67
67
  import "./index78.js";
68
- import "./index79.js";
69
- import { ExtractionNotice as p } from "./index80.js";
68
+ import { DuplicateBillsDialog as f } from "./index79.js";
69
+ import "./index80.js";
70
70
  import "./index81.js";
71
- import "./index82.js";
71
+ import { ExtractionNotice as p } from "./index82.js";
72
72
  import "./index83.js";
73
73
  import "./index84.js";
74
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as m } from "./index85.js";
75
- import { ReviewTransactionDialog as h } from "./index86.js";
76
- import "./index87.js";
77
- import { MARK_AS_PAID_DIALOG_LABELS_EN as g } from "./index88.js";
78
- import { MarkAsPaidDialog as _ } from "./index89.js";
79
- import "./index90.js";
80
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index91.js";
81
- import { SchedulePaymentDialog as y } from "./index93.js";
82
- import "./index94.js";
83
- import "./index95.js";
84
- import { SourceDocumentPanel as b } from "./index96.js";
74
+ import "./index85.js";
75
+ import "./index86.js";
76
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as m } from "./index87.js";
77
+ import { ReviewTransactionDialog as h } from "./index88.js";
78
+ import "./index89.js";
79
+ import { MARK_AS_PAID_DIALOG_LABELS_EN as g } from "./index90.js";
80
+ import { MarkAsPaidDialog as _ } from "./index91.js";
81
+ import "./index92.js";
82
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index93.js";
83
+ import { SchedulePaymentDialog as y } from "./index95.js";
84
+ import "./index96.js";
85
85
  import "./index97.js";
86
- import { UNSAVED_BILL_DIALOG_LABELS_EN as x } from "./index98.js";
87
- import { UnsavedBillDialog as S } from "./index99.js";
88
- import "./index100.js";
86
+ import { SourceDocumentPanel as b } from "./index98.js";
87
+ import "./index99.js";
88
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as x } from "./index100.js";
89
+ import { UnsavedBillDialog as S } from "./index101.js";
90
+ import "./index102.js";
89
91
  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, g as MARK_AS_PAID_DIALOG_LABELS_EN, _ as MarkAsPaidDialog, m as REVIEW_TRANSACTION_DIALOG_LABELS_EN, h as ReviewTransactionDialog, v as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, y as SchedulePaymentDialog, b as SourceDocumentPanel, x as UNSAVED_BILL_DIALOG_LABELS_EN, S as UnsavedBillDialog };
@@ -1,2 +1,10 @@
1
- import "./index98.js";
2
- import "./index99.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js
2
+ var e = {
3
+ title: "Save this bill as a draft?",
4
+ description: "This bill has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
5
+ saveDraftButton: "Save as draft",
6
+ discardButton: "Discard changes",
7
+ closeButton: "Close"
8
+ };
9
+ //#endregion
10
+ export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
@@ -0,0 +1,52 @@
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as s } from "./index100.js";
3
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { XIcon as u } from "lucide-react";
5
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js
6
+ function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _, testId: v, saveDraftTestId: y, discardTestId: b, closeTestId: x }) {
7
+ let S = {
8
+ ...s,
9
+ ..._
10
+ };
11
+ return /* @__PURE__ */ c(e, {
12
+ open: d,
13
+ onOpenChange: (e) => {
14
+ !e && !h && m();
15
+ },
16
+ children: /* @__PURE__ */ l(t, {
17
+ "data-testid": v,
18
+ children: [
19
+ /* @__PURE__ */ l("button", {
20
+ type: "button",
21
+ onClick: m,
22
+ disabled: h,
23
+ "data-testid": x,
24
+ className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
25
+ children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
26
+ className: "ttw:sr-only",
27
+ children: S.closeButton
28
+ })]
29
+ }),
30
+ /* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
31
+ /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
32
+ type: "button",
33
+ variant: "outline",
34
+ onClick: p,
35
+ disabled: h,
36
+ "data-testid": b,
37
+ children: S.discardButton
38
+ }), /* @__PURE__ */ c(o, {
39
+ type: "button",
40
+ variant: "default",
41
+ loading: h,
42
+ disabled: h || g,
43
+ onClick: f,
44
+ "data-testid": y,
45
+ children: S.saveDraftButton
46
+ })] })
47
+ ]
48
+ })
49
+ });
50
+ }
51
+ //#endregion
52
+ export { d as UnsavedBillDialog, d as default };
@@ -0,0 +1,2 @@
1
+ import "./index100.js";
2
+ import "./index101.js";