@tesouro/embedded-components-react 0.11.250 → 0.11.254

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 (111) hide show
  1. package/dist/index.css +9 -344
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
  97. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
  100. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +1 -1
  102. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
  103. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
  104. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
  105. package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
  106. package/package.json +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
@@ -1,34 +1,20 @@
1
- import { Button as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { AchFieldGroup as t } from "../../../../shared/counterpart-management/ui/dist/index5.js";
1
+ import { ACH_FIELD_GROUP_LABELS_EN as e } from "../../../../shared/counterpart-management/ui/dist/index2.js";
3
2
  import "../../../../shared/counterpart-management/ui/dist/index.js";
4
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
3
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js
6
- function i({ paymentInstructions: i, labels: a }) {
7
- return /* @__PURE__ */ r("div", {
8
- className: "ttw:flex ttw:flex-col ttw:gap-3",
9
- children: [/* @__PURE__ */ n(t, {
10
- idPrefix: "vendor-summary-ach",
11
- values: i.values,
12
- errors: i.errors,
13
- onChange: i.onChange,
14
- labels: a.ach
15
- }), /* @__PURE__ */ r("div", {
16
- className: "ttw:flex ttw:justify-end ttw:gap-2",
17
- children: [/* @__PURE__ */ n(e, {
18
- type: "button",
19
- variant: "outline",
20
- onClick: i.onCancel,
21
- disabled: i.isSaving,
22
- children: a.cancelAction
23
- }), i.onSave ? /* @__PURE__ */ n(e, {
24
- type: "button",
25
- onClick: i.onSave,
26
- "aria-label": a.saveAriaLabel,
27
- loading: i.isSaving,
28
- disabled: i.isSaving,
29
- children: a.saveAction
30
- }) : null]
31
- })]
32
- });
33
- }
34
- export { i as AchEditGroup };
4
+ var t = {
5
+ payToHeading: "Pay to",
6
+ vendorLabel: "Vendor",
7
+ achBankAccountLabel: "ACH bank account",
8
+ editAction: "Edit",
9
+ editPaymentInstructionsAction: "Edit payment instructions",
10
+ paymentInstructionsHeading: "Payment instructions",
11
+ paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
12
+ addPaymentInstructions: "Add payment instructions",
13
+ cancelAction: "Cancel",
14
+ saveAction: "Save",
15
+ saveAriaLabel: "Save payment instructions",
16
+ ach: e,
17
+ detailsWarning: "Some vendor details couldn't load, so editing the vendor profile is unavailable right now.",
18
+ retryAction: "Try again"
19
+ };
20
+ export { t as VENDOR_SUMMARY_CARD_LABELS_EN };
@@ -1,20 +1,151 @@
1
- import { ACH_FIELD_GROUP_LABELS_EN as e } from "../../../../shared/counterpart-management/ui/dist/index2.js";
2
- import "../../../../shared/counterpart-management/ui/dist/index.js";
1
+ import { Button as e, Heading as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { VENDOR_SUMMARY_CARD_LABELS_EN as n } from "./index10.js";
3
+ import { AchEditGroup as r } from "./index9.js";
4
+ import { useMemo as i } from "react";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import { ChevronRightIcon as s, Plus as c } from "lucide-react";
3
7
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js
4
- var t = {
5
- payToHeading: "Pay to",
6
- vendorLabel: "Vendor",
7
- achBankAccountLabel: "ACH bank account",
8
- editAction: "Edit",
9
- editPaymentInstructionsAction: "Edit payment instructions",
10
- paymentInstructionsHeading: "Payment instructions",
11
- paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
12
- addPaymentInstructions: "Add payment instructions",
13
- cancelAction: "Cancel",
14
- saveAction: "Save",
15
- saveAriaLabel: "Save payment instructions",
16
- ach: e,
17
- detailsWarning: "Some vendor details couldn't load, so editing the vendor profile is unavailable right now.",
18
- retryAction: "Retry"
19
- };
20
- export { t as VENDOR_SUMMARY_CARD_LABELS_EN };
8
+ var l = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", u = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground", d = "ttw:-mx-2 ttw:-my-1 ttw:flex ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-3 ttw:rounded-md ttw:px-2 ttw:py-1 ttw:text-left ttw:hover:bg-muted";
9
+ function f({ summary: f, onEdit: p, paymentInstructions: m, showPaymentInstructions: h = !0, detailsWarning: g, testId: _, hideHeading: v = !1, labels: y }) {
10
+ let b = i(() => ({
11
+ ...n,
12
+ ...y,
13
+ ach: {
14
+ ...n.ach,
15
+ ...y?.ach,
16
+ fieldMarkers: {
17
+ ...n.ach.fieldMarkers,
18
+ ...y?.ach?.fieldMarkers
19
+ }
20
+ }
21
+ }), [y]), x = !!m?.isOpen, S = /* @__PURE__ */ o("div", {
22
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
23
+ children: [
24
+ /* @__PURE__ */ a("span", {
25
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
26
+ children: f.name
27
+ }),
28
+ /* @__PURE__ */ a("span", {
29
+ className: "ttw:text-sm ttw:text-muted-foreground",
30
+ children: f.email
31
+ }),
32
+ f.description ? /* @__PURE__ */ a("span", {
33
+ className: "ttw:text-sm ttw:text-muted-foreground",
34
+ children: f.description
35
+ }) : null
36
+ ]
37
+ }), C;
38
+ return C = m && x ? /* @__PURE__ */ a(r, {
39
+ paymentInstructions: m,
40
+ labels: b
41
+ }) : f.hasPaymentInstructions ? m?.onEditExisting ? /* @__PURE__ */ o("button", {
42
+ type: "button",
43
+ onClick: m.onEditExisting,
44
+ className: d,
45
+ children: [
46
+ /* @__PURE__ */ a("span", {
47
+ className: "ttw:sr-only",
48
+ children: b.editPaymentInstructionsAction
49
+ }),
50
+ " ",
51
+ /* @__PURE__ */ a("span", {
52
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
53
+ children: f.methodLabel
54
+ }),
55
+ /* @__PURE__ */ a(s, {
56
+ "aria-hidden": "true",
57
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
58
+ })
59
+ ]
60
+ }) : /* @__PURE__ */ a("p", {
61
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
62
+ children: f.methodLabel
63
+ }) : /* @__PURE__ */ o("div", {
64
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
65
+ children: [/* @__PURE__ */ o("div", {
66
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
67
+ children: [/* @__PURE__ */ a("p", {
68
+ className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
69
+ children: b.paymentInstructionsHeading
70
+ }), /* @__PURE__ */ a("p", {
71
+ className: "ttw:text-sm ttw:text-muted-foreground",
72
+ children: b.paymentInstructionsDescription
73
+ })]
74
+ }), m?.onAdd ? /* @__PURE__ */ o(e, {
75
+ type: "button",
76
+ variant: "link",
77
+ className: "ttw:w-fit ttw:px-0",
78
+ onClick: m.onAdd,
79
+ children: [/* @__PURE__ */ a(c, { className: "ttw:size-4" }), b.addPaymentInstructions]
80
+ }) : /* @__PURE__ */ a("p", {
81
+ className: "ttw:text-sm ttw:text-muted-foreground",
82
+ children: f.methodLabel
83
+ })]
84
+ }), /* @__PURE__ */ o("div", {
85
+ "data-testid": _,
86
+ children: [
87
+ v ? null : /* @__PURE__ */ a(t, {
88
+ variant: "section",
89
+ level: 3,
90
+ children: b.payToHeading
91
+ }),
92
+ g ? /* @__PURE__ */ o("p", {
93
+ className: "ttw:mt-1 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-1.5 ttw:text-sm ttw:text-muted-foreground",
94
+ children: [b.detailsWarning, g.onRetry ? /* @__PURE__ */ a("button", {
95
+ type: "button",
96
+ onClick: g.onRetry,
97
+ className: "ttw:font-medium ttw:text-foreground ttw:underline ttw:underline-offset-2 ttw:hover:no-underline",
98
+ children: b.retryAction
99
+ }) : null]
100
+ }) : null,
101
+ /* @__PURE__ */ o("div", {
102
+ className: "ttw:mt-3 ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
103
+ children: [/* @__PURE__ */ o("div", {
104
+ className: l,
105
+ children: [/* @__PURE__ */ a("span", {
106
+ className: u,
107
+ children: b.vendorLabel
108
+ }), p && !x ? /* @__PURE__ */ o("button", {
109
+ type: "button",
110
+ onClick: p,
111
+ className: d,
112
+ children: [
113
+ /* @__PURE__ */ a("span", {
114
+ className: "ttw:sr-only",
115
+ children: b.editAction
116
+ }),
117
+ " ",
118
+ S,
119
+ /* @__PURE__ */ a(s, {
120
+ "aria-hidden": "true",
121
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
122
+ })
123
+ ]
124
+ }) : /* @__PURE__ */ a("div", {
125
+ className: "ttw:flex ttw:flex-1",
126
+ children: S
127
+ })]
128
+ }), h && x ? /* @__PURE__ */ o("div", {
129
+ className: l,
130
+ children: [/* @__PURE__ */ a("span", {
131
+ className: u,
132
+ children: b.achBankAccountLabel
133
+ }), /* @__PURE__ */ a("div", {
134
+ className: "ttw:flex-1",
135
+ children: C
136
+ })]
137
+ }) : h ? /* @__PURE__ */ o("div", {
138
+ className: l,
139
+ children: [/* @__PURE__ */ a("span", {
140
+ className: u,
141
+ children: b.achBankAccountLabel
142
+ }), /* @__PURE__ */ a("div", {
143
+ className: "ttw:flex ttw:flex-1",
144
+ children: C
145
+ })]
146
+ }) : null]
147
+ })
148
+ ]
149
+ });
150
+ }
151
+ export { f as VendorSummaryCard, f as default };
@@ -1,150 +1,2 @@
1
- import { Button as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { VENDOR_SUMMARY_CARD_LABELS_EN as t } from "./index11.js";
3
- import { AchEditGroup as n } from "./index10.js";
4
- import { useMemo as r } from "react";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import { ChevronRightIcon as o, Plus as s } from "lucide-react";
7
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js
8
- var c = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", l = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground", u = "ttw:-mx-2 ttw:-my-1 ttw:flex ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-3 ttw:rounded-md ttw:px-2 ttw:py-1 ttw:text-left ttw:hover:bg-muted";
9
- function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructions: m = !0, detailsWarning: h, testId: g, labels: _ }) {
10
- let v = r(() => ({
11
- ...t,
12
- ..._,
13
- ach: {
14
- ...t.ach,
15
- ..._?.ach,
16
- fieldMarkers: {
17
- ...t.ach.fieldMarkers,
18
- ..._?.ach?.fieldMarkers
19
- }
20
- }
21
- }), [_]), y = !!p?.isOpen, b = /* @__PURE__ */ a("div", {
22
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
23
- children: [
24
- /* @__PURE__ */ i("span", {
25
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
26
- children: d.name
27
- }),
28
- /* @__PURE__ */ i("span", {
29
- className: "ttw:text-sm ttw:text-muted-foreground",
30
- children: d.email
31
- }),
32
- d.description ? /* @__PURE__ */ i("span", {
33
- className: "ttw:text-sm ttw:text-muted-foreground",
34
- children: d.description
35
- }) : null
36
- ]
37
- }), x;
38
- return x = p && y ? /* @__PURE__ */ i(n, {
39
- paymentInstructions: p,
40
- labels: v
41
- }) : d.hasPaymentInstructions ? p?.onEditExisting ? /* @__PURE__ */ a("button", {
42
- type: "button",
43
- onClick: p.onEditExisting,
44
- className: u,
45
- children: [
46
- /* @__PURE__ */ i("span", {
47
- className: "ttw:sr-only",
48
- children: v.editPaymentInstructionsAction
49
- }),
50
- " ",
51
- /* @__PURE__ */ i("span", {
52
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
53
- children: d.methodLabel
54
- }),
55
- /* @__PURE__ */ i(o, {
56
- "aria-hidden": "true",
57
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
58
- })
59
- ]
60
- }) : /* @__PURE__ */ i("p", {
61
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
62
- children: d.methodLabel
63
- }) : /* @__PURE__ */ a("div", {
64
- className: "ttw:flex ttw:flex-col ttw:gap-3",
65
- children: [/* @__PURE__ */ a("div", {
66
- className: "ttw:flex ttw:flex-col ttw:gap-1",
67
- children: [/* @__PURE__ */ i("p", {
68
- className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
69
- children: v.paymentInstructionsHeading
70
- }), /* @__PURE__ */ i("p", {
71
- className: "ttw:text-sm ttw:text-muted-foreground",
72
- children: v.paymentInstructionsDescription
73
- })]
74
- }), p?.onAdd ? /* @__PURE__ */ a(e, {
75
- type: "button",
76
- variant: "link",
77
- className: "ttw:w-fit ttw:px-0",
78
- onClick: p.onAdd,
79
- children: [/* @__PURE__ */ i(s, { className: "ttw:size-4" }), v.addPaymentInstructions]
80
- }) : /* @__PURE__ */ i("p", {
81
- className: "ttw:text-sm ttw:text-muted-foreground",
82
- children: d.methodLabel
83
- })]
84
- }), /* @__PURE__ */ a("div", {
85
- "data-testid": g,
86
- children: [
87
- /* @__PURE__ */ i("h3", {
88
- className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
89
- children: v.payToHeading
90
- }),
91
- h ? /* @__PURE__ */ a("p", {
92
- className: "ttw:mt-1 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-1.5 ttw:text-sm ttw:text-muted-foreground",
93
- children: [v.detailsWarning, h.onRetry ? /* @__PURE__ */ i("button", {
94
- type: "button",
95
- onClick: h.onRetry,
96
- className: "ttw:font-medium ttw:text-foreground ttw:underline ttw:underline-offset-2 ttw:hover:no-underline",
97
- children: v.retryAction
98
- }) : null]
99
- }) : null,
100
- /* @__PURE__ */ a("div", {
101
- className: "ttw:mt-3 ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
102
- children: [/* @__PURE__ */ a("div", {
103
- className: c,
104
- children: [/* @__PURE__ */ i("span", {
105
- className: l,
106
- children: v.vendorLabel
107
- }), f && !y ? /* @__PURE__ */ a("button", {
108
- type: "button",
109
- onClick: f,
110
- className: u,
111
- children: [
112
- /* @__PURE__ */ i("span", {
113
- className: "ttw:sr-only",
114
- children: v.editAction
115
- }),
116
- " ",
117
- b,
118
- /* @__PURE__ */ i(o, {
119
- "aria-hidden": "true",
120
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
121
- })
122
- ]
123
- }) : /* @__PURE__ */ i("div", {
124
- className: "ttw:flex ttw:flex-1",
125
- children: b
126
- })]
127
- }), m && y ? /* @__PURE__ */ a("div", {
128
- className: c,
129
- children: [/* @__PURE__ */ i("span", {
130
- className: l,
131
- children: v.achBankAccountLabel
132
- }), /* @__PURE__ */ i("div", {
133
- className: "ttw:flex-1",
134
- children: x
135
- })]
136
- }) : m ? /* @__PURE__ */ a("div", {
137
- className: c,
138
- children: [/* @__PURE__ */ i("span", {
139
- className: l,
140
- children: v.achBankAccountLabel
141
- }), /* @__PURE__ */ i("div", {
142
- className: "ttw:flex ttw:flex-1",
143
- children: x
144
- })]
145
- }) : null]
146
- })
147
- ]
148
- });
149
- }
150
- export { d as VendorSummaryCard, d as default };
1
+ import "./index10.js";
2
+ import "./index11.js";
@@ -1,2 +1,76 @@
1
- import "./index11.js";
1
+ import { AUDIT_HISTORY_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_STATUS_BADGE_LABELS_EN as r } from "../../../../shared/document-status/ui/dist/index2.js";
3
+ import "../../../../shared/document-status/ui/dist/index.js";
4
+ import { APPROVAL_POLICY_CARD_LABELS_EN as i } from "./index2.js";
5
+ import "./index4.js";
6
+ import { VENDOR_SUMMARY_CARD_LABELS_EN as a } from "./index10.js";
2
7
  import "./index12.js";
8
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js
9
+ var o = {
10
+ ...e,
11
+ error: "Couldn't load audit history.",
12
+ namesError: "Some names could not be loaded."
13
+ }, s = {
14
+ loadingLabel: "Loading bill",
15
+ errorTitle: "Couldn't load this bill",
16
+ errorDescription: "Something went wrong. Try again.",
17
+ amountDueHeading: "Amount due",
18
+ amountPaidHeading: "Amount paid",
19
+ invoiceDateLabel: "Invoice date",
20
+ dueDateLabel: "Due date",
21
+ approvalOverrideNotice: "You can approve or reject this bill from the menu in the top right, bypassing any remaining approvers.",
22
+ payToHeading: "Pay to",
23
+ payToHeadingPaid: "Paid to",
24
+ vendorRow: "Vendor",
25
+ paymentInstructionsRow: "ACH bank account",
26
+ invoiceDetailsHeading: "Invoice details",
27
+ addPaymentInstructions: "Add payment instructions",
28
+ missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
29
+ descriptionAndGlCodeColumn: "Description and GL code",
30
+ qtyPriceColumn: "Qty/Price",
31
+ amountColumn: "Amount",
32
+ paymentHistoryHeading: "Payment history",
33
+ paymentHistoryErrorDescription: "Couldn't load payment history.",
34
+ paymentHistoryLoadingLabel: "Loading payment history",
35
+ history: o,
36
+ statusBadge: r,
37
+ approvalPolicy: i,
38
+ payToCard: {
39
+ ...a,
40
+ editAction: "Edit vendor"
41
+ },
42
+ requiredFieldsLegend: t
43
+ };
44
+ function c(e) {
45
+ let t = {
46
+ ...s.payToCard.ach.fieldMarkers,
47
+ ...e?.payToCard?.ach?.fieldMarkers
48
+ };
49
+ return {
50
+ ...s,
51
+ ...e,
52
+ statusBadge: {
53
+ ...s.statusBadge,
54
+ ...e?.statusBadge
55
+ },
56
+ approvalPolicy: {
57
+ ...s.approvalPolicy,
58
+ ...e?.approvalPolicy
59
+ },
60
+ payToCard: {
61
+ ...s.payToCard,
62
+ ...e?.payToCard,
63
+ ach: {
64
+ ...s.payToCard.ach,
65
+ ...e?.payToCard?.ach,
66
+ fieldMarkers: t
67
+ }
68
+ },
69
+ history: {
70
+ ...s.history,
71
+ ...e?.history
72
+ },
73
+ requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
74
+ };
75
+ }
76
+ export { o as BILL_AUDIT_HISTORY_SECTION_LABELS_EN, s as BILL_DETAIL_BODY_LABELS_EN, c as mergeBillDetailBodyLabels };