@tesouro/embedded-components-react 0.4.21 → 0.4.23

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 (185) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -13
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +136 -16
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -121
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -13
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +119 -46
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -3
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -7
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +207 -5
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
  176. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
  177. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
  178. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
  179. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  180. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
  181. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  182. package/package.json +33 -1
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
  184. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
  185. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
@@ -1,2 +1,154 @@
1
- import "./index26.js";
2
- import "./index27.js";
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 { VENDOR_SUMMARY_CARD_LABELS_EN as s } from "./index27.js";
3
+ import { AchEditGroup as c } from "./index26.js";
4
+ import { useMemo as l, useState as u } from "react";
5
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
6
+ import { Eye as m, EyeOff as h, Pencil as g, Plus as _, X as v } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js
8
+ function y({ field: e, labels: t }) {
9
+ let [n, r] = u(!1), i = !!e.maskedValue, a = i && !n ? e.maskedValue : e.value;
10
+ return /* @__PURE__ */ p("div", {
11
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm",
12
+ children: [
13
+ /* @__PURE__ */ f("span", {
14
+ className: "ttw:w-44 ttw:shrink-0 ttw:text-muted-foreground",
15
+ children: e.label
16
+ }),
17
+ /* @__PURE__ */ f("span", {
18
+ className: "ttw:text-foreground",
19
+ children: a
20
+ }),
21
+ i ? /* @__PURE__ */ f("button", {
22
+ type: "button",
23
+ onClick: () => r((e) => !e),
24
+ "aria-label": n ? t.hideField(e.label) : t.revealField(e.label),
25
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
26
+ children: f(n ? h : m, { className: "ttw:size-4" })
27
+ }) : null
28
+ ]
29
+ });
30
+ }
31
+ function b({ summary: m, onEdit: h, onClear: b, paymentInstructions: x, instructionsCollapsed: S, testId: C, labels: w }) {
32
+ let [T, E] = u(!1), D = l(() => ({
33
+ ...s,
34
+ ...w,
35
+ ach: {
36
+ ...s.ach,
37
+ ...w?.ach
38
+ }
39
+ }), [w]);
40
+ return /* @__PURE__ */ p("div", {
41
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
42
+ "data-testid": C,
43
+ children: [
44
+ /* @__PURE__ */ p("div", {
45
+ className: "ttw:flex ttw:items-start ttw:justify-between",
46
+ children: [/* @__PURE__ */ p("div", {
47
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
48
+ children: [
49
+ /* @__PURE__ */ f("span", {
50
+ className: "ttw:text-xs ttw:text-muted-foreground",
51
+ children: D.payToHeading
52
+ }),
53
+ /* @__PURE__ */ f("span", {
54
+ className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
55
+ children: m.name
56
+ }),
57
+ /* @__PURE__ */ f("span", {
58
+ className: "ttw:text-sm ttw:text-muted-foreground",
59
+ children: m.email
60
+ })
61
+ ]
62
+ }), /* @__PURE__ */ p("div", {
63
+ className: "ttw:flex ttw:items-center ttw:gap-2",
64
+ children: [
65
+ h && !x?.isOpen ? /* @__PURE__ */ f(o, {
66
+ type: "button",
67
+ variant: "ghost",
68
+ size: "icon",
69
+ "aria-label": D.editAction,
70
+ onClick: h,
71
+ children: /* @__PURE__ */ f(g, { className: "ttw:size-4" })
72
+ }) : null,
73
+ h && !x?.isOpen && b ? /* @__PURE__ */ f("div", {
74
+ "aria-hidden": !0,
75
+ className: "ttw:h-5 ttw:w-px ttw:bg-border"
76
+ }) : null,
77
+ b ? /* @__PURE__ */ f(o, {
78
+ type: "button",
79
+ variant: "ghost",
80
+ size: "icon",
81
+ "aria-label": D.clearAction,
82
+ onClick: b,
83
+ children: /* @__PURE__ */ f(v, { className: "ttw:size-4" })
84
+ }) : null
85
+ ]
86
+ })]
87
+ }),
88
+ m.fields.length ? x?.isOpen ? /* @__PURE__ */ f("div", {
89
+ className: "ttw:mt-3 ttw:flex ttw:flex-col ttw:gap-3",
90
+ children: /* @__PURE__ */ f(c, {
91
+ paymentInstructions: x,
92
+ labels: D,
93
+ onCancel: () => E(!0)
94
+ })
95
+ }) : S ? /* @__PURE__ */ f("p", {
96
+ className: "ttw:mt-3 ttw:text-sm ttw:text-muted-foreground",
97
+ children: m.methodLabel
98
+ }) : /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("p", {
99
+ className: "ttw:mt-3 ttw:text-xs ttw:text-muted-foreground",
100
+ children: m.methodLabel
101
+ }), /* @__PURE__ */ f("div", {
102
+ className: "ttw:mt-2 ttw:flex ttw:flex-col ttw:gap-1",
103
+ children: m.fields.map((e) => /* @__PURE__ */ f(y, {
104
+ field: e,
105
+ labels: D
106
+ }, `${e.label}:${e.value}:${e.maskedValue ?? ""}`))
107
+ })] }) : /* @__PURE__ */ p("div", {
108
+ className: "ttw:mt-4 ttw:flex ttw:flex-col ttw:gap-3",
109
+ children: [/* @__PURE__ */ p("div", {
110
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
111
+ children: [/* @__PURE__ */ f("p", {
112
+ className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
113
+ children: D.paymentInstructionsHeading
114
+ }), /* @__PURE__ */ f("p", {
115
+ className: "ttw:text-sm ttw:text-muted-foreground",
116
+ children: D.paymentInstructionsDescription
117
+ })]
118
+ }), x?.isOpen ? /* @__PURE__ */ f(c, {
119
+ paymentInstructions: x,
120
+ labels: D,
121
+ onCancel: () => E(!0)
122
+ }) : x ? /* @__PURE__ */ p(o, {
123
+ type: "button",
124
+ variant: "link",
125
+ className: "ttw:w-fit ttw:px-0",
126
+ onClick: x.onOpen,
127
+ children: [/* @__PURE__ */ f(_, { className: "ttw:size-4" }), D.addPaymentInstructions]
128
+ }) : /* @__PURE__ */ f("p", {
129
+ className: "ttw:text-sm ttw:text-muted-foreground",
130
+ children: m.methodLabel
131
+ })]
132
+ }),
133
+ /* @__PURE__ */ f(e, {
134
+ open: T,
135
+ onOpenChange: E,
136
+ children: /* @__PURE__ */ p(t, { children: [/* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(a, { children: D.discardConfirmTitle }), /* @__PURE__ */ f(n, { children: D.discardConfirmDescription })] }), /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(o, {
137
+ type: "button",
138
+ variant: "outline",
139
+ onClick: () => E(!1),
140
+ children: D.keepEditingAction
141
+ }), /* @__PURE__ */ f(o, {
142
+ type: "button",
143
+ variant: "destructive",
144
+ onClick: () => {
145
+ E(!1), x?.onCancel?.();
146
+ },
147
+ children: D.discardChangesAction
148
+ })] })] })
149
+ })
150
+ ]
151
+ });
152
+ }
153
+ //#endregion
154
+ export { b as VendorSummaryCard, b as default };
@@ -1,65 +1,2 @@
1
- import { APPROVAL_POLICY_CARD_LABELS_EN as e } from "./index12.js";
2
- import "./index14.js";
3
- import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index16.js";
4
- import "./index19.js";
5
- import { DUE_DATE_VALUE_LABELS_EN as n } from "./index20.js";
6
- import "./index22.js";
7
- import { VENDOR_SUMMARY_CARD_LABELS_EN as r } from "./index26.js";
1
+ import "./index27.js";
8
2
  import "./index28.js";
9
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js
10
- var i = {
11
- errorTitle: "Couldn't load this bill",
12
- errorDescription: "Something went wrong. Try again.",
13
- amountDueHeading: "Amount due",
14
- amountPaidHeading: "Amount paid",
15
- invoiceDateLabel: "Invoice date",
16
- dueDateLabel: "Due date",
17
- approvalOverrideNotice: "If approvers are unavailable, you can override the approval policy from the overflow menu.",
18
- payToHeading: "Pay to",
19
- payToHeadingPaid: "Paid to",
20
- vendorRow: "Vendor",
21
- paymentInstructionsRow: "Payment instructions",
22
- addPaymentInstructions: "Add payment instructions",
23
- missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
24
- descriptionAndGlCodeColumn: "Description and GL code",
25
- qtyPriceColumn: "Qty/Price",
26
- amountColumn: "Amount",
27
- paymentHistoryHeading: "Payment history",
28
- paymentHistoryErrorDescription: "Couldn't load payment history.",
29
- historyHeading: "Audit history",
30
- statusBadge: t,
31
- approvalPolicy: e,
32
- dueDate: n,
33
- payToCard: {
34
- ...r,
35
- editAction: "Edit payment instructions"
36
- }
37
- };
38
- function a(e) {
39
- return {
40
- ...i,
41
- ...e,
42
- statusBadge: {
43
- ...i.statusBadge,
44
- ...e?.statusBadge
45
- },
46
- approvalPolicy: {
47
- ...i.approvalPolicy,
48
- ...e?.approvalPolicy
49
- },
50
- dueDate: {
51
- ...i.dueDate,
52
- ...e?.dueDate
53
- },
54
- payToCard: {
55
- ...i.payToCard,
56
- ...e?.payToCard,
57
- ach: {
58
- ...i.payToCard.ach,
59
- ...e?.payToCard?.ach
60
- }
61
- }
62
- };
63
- }
64
- //#endregion
65
- export { i as BILL_DETAIL_BODY_LABELS_EN, a as mergeBillDetailBodyLabels };
@@ -1,257 +1,65 @@
1
- import { Badge as e, Button as t, Skeleton as n, Typography as r, cn as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ErrorState as a } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { ApprovalPolicyCard as o } from "./index13.js";
1
+ import { APPROVAL_POLICY_CARD_LABELS_EN as e } from "./index12.js";
5
2
  import "./index14.js";
6
- import { BillStatusBadge as s } from "./index18.js";
7
- import "./index19.js";
8
- import { DueDateValue as c } from "./index21.js";
9
- import "./index22.js";
10
- import { PaymentHistoryList as l } from "./index23.js";
11
- import "./index24.js";
12
- import { VendorSummaryCard as u } from "./index27.js";
13
- import "./index28.js";
14
- import { mergeBillDetailBodyLabels as d } from "./index29.js";
15
- import { BillActionButtons as f, NO_BILL_ACTIONS as p } from "./index15.js";
16
- import { useMemo as m } from "react";
17
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
18
- import { AlertTriangle as _ } from "lucide-react";
3
+ import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index17.js";
4
+ import "./index20.js";
5
+ import { DUE_DATE_VALUE_LABELS_EN as n } from "./index21.js";
6
+ import "./index23.js";
7
+ import { VENDOR_SUMMARY_CARD_LABELS_EN as r } from "./index27.js";
8
+ import "./index29.js";
19
9
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js
20
- var v = "ttw:text-base ttw:font-semibold", y = "ttw:px-3 ttw:py-2", b = "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
21
- function x({ view: x, actions: S = p, scheduledSummary: C, showApprovalOverrideNotice: w, paymentInstructionsForm: T, hideMissingPaymentInstructions: E, onEditPaymentInstructions: D, paymentHistoryError: O, paymentHistoryLoading: k, isLoading: A, isError: j, labels: M }) {
22
- let N = m(() => d(M), [M]), P = m(() => ({
23
- ...N.payToCard,
24
- payToHeading: x?.paidOnLabel ? N.payToHeadingPaid : N.payToHeading
25
- }), [N, x?.paidOnLabel]);
26
- if (j) return /* @__PURE__ */ h(a, {
27
- title: N.errorTitle,
28
- description: N.errorDescription
29
- });
30
- if (A || !x) return /* @__PURE__ */ g("div", {
31
- "aria-hidden": !0,
32
- className: "ttw:flex ttw:flex-col ttw:gap-6",
33
- children: [
34
- /* @__PURE__ */ h(n, { className: "ttw:h-40 ttw:w-full" }),
35
- /* @__PURE__ */ h(n, { className: "ttw:h-32 ttw:w-full" }),
36
- /* @__PURE__ */ h(n, { className: "ttw:h-24 ttw:w-full" })
37
- ]
38
- });
39
- let F = E || x.payTo.fields.length > 0 ? void 0 : T;
40
- return /* @__PURE__ */ g("div", {
41
- className: "ttw:flex ttw:flex-col ttw:gap-6",
42
- children: [
43
- F ? /* @__PURE__ */ g("div", {
44
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
45
- children: [
46
- /* @__PURE__ */ h(_, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
47
- /* @__PURE__ */ h("p", {
48
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
49
- children: N.missingPaymentInstructionsBanner
50
- }),
51
- /* @__PURE__ */ h(t, {
52
- type: "button",
53
- variant: "outline",
54
- size: "sm",
55
- onClick: F.onOpen,
56
- children: N.addPaymentInstructions
57
- })
58
- ]
59
- }) : null,
60
- /* @__PURE__ */ g("section", {
61
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
62
- children: [
63
- x.paidOnLabel ? /* @__PURE__ */ g("div", {
64
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
65
- children: [/* @__PURE__ */ g("div", {
66
- className: "ttw:flex ttw:flex-col ttw:gap-1",
67
- children: [/* @__PURE__ */ h("span", {
68
- className: "ttw:text-sm ttw:text-muted-foreground",
69
- children: N.amountDueHeading
70
- }), /* @__PURE__ */ h("span", {
71
- className: "ttw:text-3xl ttw:font-semibold",
72
- children: x.amountDue
73
- })]
74
- }), /* @__PURE__ */ g("div", {
75
- className: "ttw:flex ttw:flex-col ttw:gap-1",
76
- children: [/* @__PURE__ */ h("span", {
77
- className: "ttw:text-sm ttw:text-muted-foreground",
78
- children: N.amountPaidHeading
79
- }), /* @__PURE__ */ h("span", {
80
- className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
81
- children: x.amountPaid
82
- })]
83
- })]
84
- }) : /* @__PURE__ */ g("div", {
85
- className: "ttw:flex ttw:flex-col ttw:gap-1",
86
- children: [/* @__PURE__ */ h("span", {
87
- className: "ttw:text-sm ttw:text-muted-foreground",
88
- children: N.amountDueHeading
89
- }), /* @__PURE__ */ h("span", {
90
- className: "ttw:text-3xl ttw:font-semibold",
91
- children: x.amountDue
92
- })]
93
- }),
94
- /* @__PURE__ */ h("div", { children: x.paidOnLabel ? /* @__PURE__ */ h(e, {
95
- variant: "outline",
96
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
97
- children: x.paidOnLabel
98
- }) : /* @__PURE__ */ h(s, {
99
- status: x.status,
100
- tone: x.statusTone,
101
- labels: N.statusBadge
102
- }) }),
103
- /* @__PURE__ */ g("div", {
104
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
105
- children: [/* @__PURE__ */ g("div", {
106
- className: "ttw:flex ttw:flex-col",
107
- children: [/* @__PURE__ */ h("span", {
108
- className: "ttw:text-xs ttw:text-muted-foreground",
109
- children: N.invoiceDateLabel
110
- }), /* @__PURE__ */ h("span", {
111
- className: "ttw:text-sm ttw:font-medium",
112
- children: x.invoiceDateLabel
113
- })]
114
- }), /* @__PURE__ */ g("div", {
115
- className: "ttw:flex ttw:flex-col",
116
- children: [/* @__PURE__ */ h("span", {
117
- className: "ttw:text-xs ttw:text-muted-foreground",
118
- children: N.dueDateLabel
119
- }), /* @__PURE__ */ h(c, {
120
- className: "ttw:text-sm ttw:font-medium",
121
- value: x.dueDateLabel,
122
- tone: x.dueDateTone,
123
- labels: N.dueDate
124
- })]
125
- })]
126
- }),
127
- w ? /* @__PURE__ */ h(r, {
128
- variant: "caption",
129
- color: "muted",
130
- children: N.approvalOverrideNotice
131
- }) : null,
132
- C ? /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(e, {
133
- variant: "outline",
134
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
135
- children: C
136
- }) }) : S.row.length ? /* @__PURE__ */ h("div", {
137
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
138
- children: /* @__PURE__ */ h(f, { actions: S.row })
139
- }) : null
140
- ]
141
- }),
142
- /* @__PURE__ */ h(u, {
143
- summary: x.payTo,
144
- onEdit: E ? void 0 : D,
145
- instructionsCollapsed: !0,
146
- paymentInstructions: T && !E ? {
147
- isOpen: T.isOpen,
148
- values: T.values,
149
- errors: T.errors,
150
- isSaving: T.isSaving,
151
- onOpen: T.onOpen,
152
- onChange: T.onChange,
153
- onSave: T.onSave,
154
- onCancel: T.onCancel
155
- } : void 0,
156
- labels: P
157
- }),
158
- x.paymentHistory.length || O || k ? /* @__PURE__ */ g("section", {
159
- className: "ttw:flex ttw:flex-col ttw:gap-3",
160
- children: [/* @__PURE__ */ h("h3", {
161
- className: v,
162
- children: N.paymentHistoryHeading
163
- }), O ? /* @__PURE__ */ h("p", {
164
- className: "ttw:text-sm ttw:text-muted-foreground",
165
- children: N.paymentHistoryErrorDescription
166
- }) : k ? /* @__PURE__ */ h(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ h(l, { records: x.paymentHistory })]
167
- }) : null,
168
- /* @__PURE__ */ h("dl", {
169
- className: "ttw:flex ttw:flex-col",
170
- children: x.invoiceFields.map((e) => /* @__PURE__ */ g("div", {
171
- className: b,
172
- children: [/* @__PURE__ */ h("dt", {
173
- className: "ttw:text-sm ttw:text-muted-foreground",
174
- children: e.label
175
- }), /* @__PURE__ */ h("dd", {
176
- className: "ttw:text-right ttw:text-sm ttw:font-medium",
177
- children: e.value
178
- })]
179
- }, e.label))
180
- }),
181
- /* @__PURE__ */ h("section", { children: /* @__PURE__ */ g("table", {
182
- className: "ttw:w-full ttw:text-sm",
183
- children: [/* @__PURE__ */ h("thead", { children: /* @__PURE__ */ g("tr", {
184
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
185
- children: [
186
- /* @__PURE__ */ h("th", {
187
- className: i(y, "ttw:text-left ttw:font-normal"),
188
- children: N.descriptionAndGlCodeColumn
189
- }),
190
- /* @__PURE__ */ h("th", {
191
- className: i(y, "ttw:text-right ttw:font-normal"),
192
- children: N.qtyPriceColumn
193
- }),
194
- /* @__PURE__ */ h("th", {
195
- className: i(y, "ttw:text-right ttw:font-normal"),
196
- children: N.amountColumn
197
- })
198
- ]
199
- }) }), /* @__PURE__ */ g("tbody", { children: [x.lineItems.map((e) => /* @__PURE__ */ g("tr", {
200
- className: "ttw:border-b ttw:border-border",
201
- children: [
202
- /* @__PURE__ */ h("td", {
203
- className: y,
204
- children: /* @__PURE__ */ g("div", {
205
- className: "ttw:flex ttw:flex-col",
206
- children: [/* @__PURE__ */ h("span", { children: e.description }), /* @__PURE__ */ h("span", {
207
- className: "ttw:text-xs ttw:text-muted-foreground",
208
- children: e.glCodeLabel
209
- })]
210
- })
211
- }),
212
- /* @__PURE__ */ h("td", {
213
- className: i(y, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
214
- children: e.qtyPriceLabel
215
- }),
216
- /* @__PURE__ */ h("td", {
217
- className: i(y, "ttw:text-right ttw:whitespace-nowrap"),
218
- children: e.amount
219
- })
220
- ]
221
- }, e.id)), x.amountRows.map((e) => /* @__PURE__ */ g("tr", {
222
- className: i(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
223
- children: [/* @__PURE__ */ h("td", {
224
- colSpan: 2,
225
- className: y,
226
- children: e.label
227
- }), /* @__PURE__ */ h("td", {
228
- className: i(y, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
229
- children: e.value
230
- })]
231
- }, e.label))] })]
232
- }) }),
233
- x.approvalPolicy ? /* @__PURE__ */ h(o, {
234
- view: x.approvalPolicy,
235
- labels: N.approvalPolicy
236
- }) : null,
237
- x.history.length ? /* @__PURE__ */ g("section", {
238
- className: "ttw:flex ttw:flex-col ttw:gap-3",
239
- children: [/* @__PURE__ */ h("h3", {
240
- className: v,
241
- children: N.historyHeading
242
- }), /* @__PURE__ */ h("ul", {
243
- className: "ttw:flex ttw:flex-col",
244
- children: x.history.map((e) => /* @__PURE__ */ g("li", {
245
- className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
246
- children: [/* @__PURE__ */ h("span", {
247
- className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
248
- children: e.dateLabel
249
- }), /* @__PURE__ */ h("span", { children: e.description })]
250
- }, e.id))
251
- })]
252
- }) : null
253
- ]
254
- });
10
+ var i = {
11
+ errorTitle: "Couldn't load this bill",
12
+ errorDescription: "Something went wrong. Try again.",
13
+ amountDueHeading: "Amount due",
14
+ amountPaidHeading: "Amount paid",
15
+ invoiceDateLabel: "Invoice date",
16
+ dueDateLabel: "Due date",
17
+ approvalOverrideNotice: "If approvers are unavailable, you can override the approval policy from the overflow menu.",
18
+ payToHeading: "Pay to",
19
+ payToHeadingPaid: "Paid to",
20
+ vendorRow: "Vendor",
21
+ paymentInstructionsRow: "Payment instructions",
22
+ addPaymentInstructions: "Add payment instructions",
23
+ missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
24
+ descriptionAndGlCodeColumn: "Description and GL code",
25
+ qtyPriceColumn: "Qty/Price",
26
+ amountColumn: "Amount",
27
+ paymentHistoryHeading: "Payment history",
28
+ paymentHistoryErrorDescription: "Couldn't load payment history.",
29
+ historyHeading: "Audit history",
30
+ statusBadge: t,
31
+ approvalPolicy: e,
32
+ dueDate: n,
33
+ payToCard: {
34
+ ...r,
35
+ editAction: "Edit payment instructions"
36
+ }
37
+ };
38
+ function a(e) {
39
+ return {
40
+ ...i,
41
+ ...e,
42
+ statusBadge: {
43
+ ...i.statusBadge,
44
+ ...e?.statusBadge
45
+ },
46
+ approvalPolicy: {
47
+ ...i.approvalPolicy,
48
+ ...e?.approvalPolicy
49
+ },
50
+ dueDate: {
51
+ ...i.dueDate,
52
+ ...e?.dueDate
53
+ },
54
+ payToCard: {
55
+ ...i.payToCard,
56
+ ...e?.payToCard,
57
+ ach: {
58
+ ...i.payToCard.ach,
59
+ ...e?.payToCard?.ach
60
+ }
61
+ }
62
+ };
255
63
  }
256
64
  //#endregion
257
- export { x as BillDetailBody, x as default };
65
+ export { i as BILL_DETAIL_BODY_LABELS_EN, a as mergeBillDetailBodyLabels };