@tesouro/embedded-components-react 0.4.12 → 0.4.13

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 (104) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +127 -122
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +42 -41
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +12 -62
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +12 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -12
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -16
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +30 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +46 -26
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +296 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -50
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +7 -300
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +49 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +2 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +14 -45
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +50 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -23
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +21 -338
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +340 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -16
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +13 -117
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +120 -2
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -12
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +10 -97
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +99 -2
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +1 -12
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +11 -57
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +58 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -54
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +52 -10
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +10 -157
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +181 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -4
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -39
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +41 -2
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -7
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +5 -90
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +92 -2
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -4
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -14
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +16 -2
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +1 -85
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +83 -284
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +283 -9
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +13 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -8
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +6 -37
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -2
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -39
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +36 -9
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -199
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +201 -3
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +3 -17
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +15 -345
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +345 -8
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +6 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -91
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +93 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -127
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +125 -26
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +26 -87
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +89 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -7
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +5 -28
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -2
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -7
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -32
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +34 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -12
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -104
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +105 -1
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -17
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +15 -123
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +125 -2
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +2 -18
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +14 -6
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -167
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +170 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -14
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +11 -105
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -10
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -50
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
  102. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  103. package/package.json +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +0 -2
@@ -1,2 +1,297 @@
1
+ import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { ApprovalPolicyCard as a } from "./index13.js";
5
+ import "./index14.js";
6
+ import { BillStatusBadge as o } from "./index18.js";
7
+ import "./index19.js";
8
+ import { DueDateValue as s } from "./index21.js";
1
9
  import "./index22.js";
2
- import "./index23.js";
10
+ import { mergeBillDetailBodyLabels as c } from "./index23.js";
11
+ import { BillActionButtons as l, NO_BILL_ACTIONS as u } from "./index15.js";
12
+ import { AchFieldGroup as d } from "../../../shared/counterpart-management/ui/dist/index5.js";
13
+ import "../../../shared/counterpart-management/ui/dist/index.js";
14
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
15
+ import { AlertTriangle as m, ChevronRight as h } from "lucide-react";
16
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js
17
+ var g = "ttw:text-base ttw:font-semibold", _ = "ttw:px-3 ttw:py-2", v = "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";
18
+ function y({ view: y, actions: b = u, scheduledSummary: x, paymentInstructionsForm: S, isLoading: C, isError: w, labels: T }) {
19
+ let E = c(T);
20
+ if (w) return /* @__PURE__ */ f(i, {
21
+ title: E.errorTitle,
22
+ description: E.errorDescription
23
+ });
24
+ if (C || !y) return /* @__PURE__ */ p("div", {
25
+ "aria-hidden": !0,
26
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
27
+ children: [
28
+ /* @__PURE__ */ f(n, { className: "ttw:h-40 ttw:w-full" }),
29
+ /* @__PURE__ */ f(n, { className: "ttw:h-32 ttw:w-full" }),
30
+ /* @__PURE__ */ f(n, { className: "ttw:h-24 ttw:w-full" })
31
+ ]
32
+ });
33
+ let D = !y.payTo.paymentInstructionsLabel && S;
34
+ return /* @__PURE__ */ p("div", {
35
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
36
+ children: [
37
+ D ? /* @__PURE__ */ p("div", {
38
+ 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",
39
+ children: [
40
+ /* @__PURE__ */ f(m, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
41
+ /* @__PURE__ */ f("p", {
42
+ className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
43
+ children: E.missingPaymentInstructionsBanner
44
+ }),
45
+ /* @__PURE__ */ f(t, {
46
+ type: "button",
47
+ variant: "outline",
48
+ size: "sm",
49
+ onClick: S.onOpen,
50
+ children: E.addPaymentInstructions
51
+ })
52
+ ]
53
+ }) : null,
54
+ /* @__PURE__ */ p("section", {
55
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
56
+ children: [
57
+ y.paidOnLabel ? /* @__PURE__ */ p("div", {
58
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
59
+ children: [/* @__PURE__ */ p("div", {
60
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
61
+ children: [/* @__PURE__ */ f("span", {
62
+ className: "ttw:text-sm ttw:text-muted-foreground",
63
+ children: E.amountDueHeading
64
+ }), /* @__PURE__ */ f("span", {
65
+ className: "ttw:text-3xl ttw:font-semibold",
66
+ children: y.amountDue
67
+ })]
68
+ }), /* @__PURE__ */ p("div", {
69
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
70
+ children: [/* @__PURE__ */ f("span", {
71
+ className: "ttw:text-sm ttw:text-muted-foreground",
72
+ children: E.amountPaidHeading
73
+ }), /* @__PURE__ */ f("span", {
74
+ className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
75
+ children: y.amountPaid
76
+ })]
77
+ })]
78
+ }) : /* @__PURE__ */ p("div", {
79
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
80
+ children: [/* @__PURE__ */ f("span", {
81
+ className: "ttw:text-sm ttw:text-muted-foreground",
82
+ children: E.amountDueHeading
83
+ }), /* @__PURE__ */ f("span", {
84
+ className: "ttw:text-3xl ttw:font-semibold",
85
+ children: y.amountDue
86
+ })]
87
+ }),
88
+ /* @__PURE__ */ f("div", { children: y.paidOnLabel ? /* @__PURE__ */ f(e, {
89
+ variant: "outline",
90
+ className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
91
+ children: y.paidOnLabel
92
+ }) : /* @__PURE__ */ f(o, {
93
+ status: y.status,
94
+ tone: y.statusTone,
95
+ labels: E.statusBadge
96
+ }) }),
97
+ /* @__PURE__ */ p("div", {
98
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
99
+ children: [/* @__PURE__ */ p("div", {
100
+ className: "ttw:flex ttw:flex-col",
101
+ children: [/* @__PURE__ */ f("span", {
102
+ className: "ttw:text-xs ttw:text-muted-foreground",
103
+ children: E.invoiceDateLabel
104
+ }), /* @__PURE__ */ f("span", {
105
+ className: "ttw:text-sm ttw:font-medium",
106
+ children: y.invoiceDateLabel
107
+ })]
108
+ }), /* @__PURE__ */ p("div", {
109
+ className: "ttw:flex ttw:flex-col",
110
+ children: [/* @__PURE__ */ f("span", {
111
+ className: "ttw:text-xs ttw:text-muted-foreground",
112
+ children: E.dueDateLabel
113
+ }), /* @__PURE__ */ f(s, {
114
+ className: "ttw:text-sm ttw:font-medium",
115
+ value: y.dueDateLabel,
116
+ tone: y.dueDateTone,
117
+ labels: E.dueDate
118
+ })]
119
+ })]
120
+ }),
121
+ x ? /* @__PURE__ */ f("div", { children: /* @__PURE__ */ f(e, {
122
+ variant: "outline",
123
+ className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
124
+ children: x
125
+ }) }) : b.row.length ? /* @__PURE__ */ f("div", {
126
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
127
+ children: /* @__PURE__ */ f(l, { actions: b.row })
128
+ }) : null
129
+ ]
130
+ }),
131
+ /* @__PURE__ */ p("section", {
132
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
133
+ children: [
134
+ /* @__PURE__ */ f("h3", {
135
+ className: g,
136
+ children: y.paidOnLabel ? E.payToHeadingPaid : E.payToHeading
137
+ }),
138
+ /* @__PURE__ */ p("div", {
139
+ className: v,
140
+ children: [/* @__PURE__ */ f("span", {
141
+ className: "ttw:text-sm ttw:text-muted-foreground",
142
+ children: E.vendorRow
143
+ }), /* @__PURE__ */ p("div", {
144
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-right",
145
+ children: [/* @__PURE__ */ p("div", {
146
+ className: "ttw:flex ttw:flex-col",
147
+ children: [/* @__PURE__ */ f("span", {
148
+ className: "ttw:text-sm ttw:font-medium ttw:text-primary",
149
+ children: y.payTo.name
150
+ }), y.payTo.email ? /* @__PURE__ */ f("span", {
151
+ className: "ttw:text-xs ttw:text-muted-foreground",
152
+ children: y.payTo.email
153
+ }) : null]
154
+ }), /* @__PURE__ */ f(h, {
155
+ "aria-hidden": !0,
156
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
157
+ })]
158
+ })]
159
+ }),
160
+ /* @__PURE__ */ p("div", {
161
+ className: v,
162
+ children: [/* @__PURE__ */ f("span", {
163
+ className: "ttw:text-sm ttw:text-muted-foreground",
164
+ children: E.paymentInstructionsRow
165
+ }), /* @__PURE__ */ p("div", {
166
+ className: "ttw:flex ttw:items-center ttw:gap-2",
167
+ children: [y.payTo.paymentInstructionsLabel ? /* @__PURE__ */ f("span", {
168
+ className: "ttw:text-sm ttw:font-medium",
169
+ children: y.payTo.paymentInstructionsLabel
170
+ }) : S ? /* @__PURE__ */ f("button", {
171
+ type: "button",
172
+ onClick: S.onOpen,
173
+ className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
174
+ children: E.addPaymentInstructions
175
+ }) : /* @__PURE__ */ f("span", {
176
+ className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
177
+ children: E.addPaymentInstructions
178
+ }), /* @__PURE__ */ f(h, {
179
+ "aria-hidden": !0,
180
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
181
+ })]
182
+ })]
183
+ }),
184
+ S?.isOpen ? /* @__PURE__ */ p("div", {
185
+ className: "ttw:mt-2 ttw:rounded-lg ttw:border ttw:border-border ttw:p-4",
186
+ children: [/* @__PURE__ */ f(d, {
187
+ idPrefix: "bill-detail-payment-instructions",
188
+ values: S.values,
189
+ errors: S.errors,
190
+ onChange: S.onChange
191
+ }), /* @__PURE__ */ p("div", {
192
+ className: "ttw:mt-4 ttw:flex ttw:justify-end ttw:gap-2",
193
+ children: [/* @__PURE__ */ f(t, {
194
+ type: "button",
195
+ variant: "ghost",
196
+ onClick: S.onCancel,
197
+ children: E.paymentInstructionsCancel
198
+ }), /* @__PURE__ */ f(t, {
199
+ type: "button",
200
+ loading: S.isSaving,
201
+ onClick: S.onSave,
202
+ children: E.paymentInstructionsSave
203
+ })]
204
+ })]
205
+ }) : null
206
+ ]
207
+ }),
208
+ /* @__PURE__ */ f("dl", {
209
+ className: "ttw:flex ttw:flex-col",
210
+ children: y.invoiceFields.map((e) => /* @__PURE__ */ p("div", {
211
+ className: v,
212
+ children: [/* @__PURE__ */ f("dt", {
213
+ className: "ttw:text-sm ttw:text-muted-foreground",
214
+ children: e.label
215
+ }), /* @__PURE__ */ f("dd", {
216
+ className: "ttw:text-right ttw:text-sm ttw:font-medium",
217
+ children: e.value
218
+ })]
219
+ }, e.label))
220
+ }),
221
+ /* @__PURE__ */ f("section", { children: /* @__PURE__ */ p("table", {
222
+ className: "ttw:w-full ttw:text-sm",
223
+ children: [/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ p("tr", {
224
+ className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
225
+ children: [
226
+ /* @__PURE__ */ f("th", {
227
+ className: r(_, "ttw:text-left ttw:font-normal"),
228
+ children: E.descriptionAndGlCodeColumn
229
+ }),
230
+ /* @__PURE__ */ f("th", {
231
+ className: r(_, "ttw:text-right ttw:font-normal"),
232
+ children: E.qtyPriceColumn
233
+ }),
234
+ /* @__PURE__ */ f("th", {
235
+ className: r(_, "ttw:text-right ttw:font-normal"),
236
+ children: E.amountColumn
237
+ })
238
+ ]
239
+ }) }), /* @__PURE__ */ p("tbody", { children: [y.lineItems.map((e) => /* @__PURE__ */ p("tr", {
240
+ className: "ttw:border-b ttw:border-border",
241
+ children: [
242
+ /* @__PURE__ */ f("td", {
243
+ className: _,
244
+ children: /* @__PURE__ */ p("div", {
245
+ className: "ttw:flex ttw:flex-col",
246
+ children: [/* @__PURE__ */ f("span", { children: e.description }), /* @__PURE__ */ f("span", {
247
+ className: "ttw:text-xs ttw:text-muted-foreground",
248
+ children: e.glCodeLabel
249
+ })]
250
+ })
251
+ }),
252
+ /* @__PURE__ */ f("td", {
253
+ className: r(_, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
254
+ children: e.qtyPriceLabel
255
+ }),
256
+ /* @__PURE__ */ f("td", {
257
+ className: r(_, "ttw:text-right ttw:whitespace-nowrap"),
258
+ children: e.amount
259
+ })
260
+ ]
261
+ }, e.id)), y.amountRows.map((e) => /* @__PURE__ */ p("tr", {
262
+ className: r(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
263
+ children: [/* @__PURE__ */ f("td", {
264
+ colSpan: 2,
265
+ className: _,
266
+ children: e.label
267
+ }), /* @__PURE__ */ f("td", {
268
+ className: r(_, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
269
+ children: e.value
270
+ })]
271
+ }, e.label))] })]
272
+ }) }),
273
+ y.approvalPolicy ? /* @__PURE__ */ f(a, {
274
+ view: y.approvalPolicy,
275
+ labels: E.approvalPolicy
276
+ }) : null,
277
+ y.history.length ? /* @__PURE__ */ p("section", {
278
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
279
+ children: [/* @__PURE__ */ f("h3", {
280
+ className: g,
281
+ children: E.historyHeading
282
+ }), /* @__PURE__ */ f("ul", {
283
+ className: "ttw:flex ttw:flex-col",
284
+ children: y.history.map((e) => /* @__PURE__ */ p("li", {
285
+ className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
286
+ children: [/* @__PURE__ */ f("span", {
287
+ className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
288
+ children: e.dateLabel
289
+ }), /* @__PURE__ */ f("span", { children: e.description })]
290
+ }, e.id))
291
+ })]
292
+ }) : null
293
+ ]
294
+ });
295
+ }
296
+ //#endregion
297
+ export { y as BillDetailBody, y as default };
@@ -1,51 +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 "./index18.js";
4
- import "./index21.js";
5
- import { DUE_DATE_VALUE_LABELS_EN as n } from "./index22.js";
1
+ import "./index23.js";
6
2
  import "./index24.js";
7
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js
8
- var r = {
9
- errorTitle: "Couldn't load this bill",
10
- errorDescription: "Something went wrong. Try again.",
11
- amountDueHeading: "Amount due",
12
- amountPaidHeading: "Amount paid",
13
- invoiceDateLabel: "Invoice date",
14
- dueDateLabel: "Due date",
15
- payToHeading: "Pay to",
16
- payToHeadingPaid: "Paid to",
17
- vendorRow: "Vendor",
18
- paymentInstructionsRow: "Payment instructions",
19
- addPaymentInstructions: "Add payment instructions",
20
- missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
21
- paymentInstructionsCancel: "Cancel",
22
- paymentInstructionsSave: "Save",
23
- descriptionAndGlCodeColumn: "Description and GL code",
24
- qtyPriceColumn: "Qty/Price",
25
- amountColumn: "Amount",
26
- historyHeading: "Audit history",
27
- overflowMenuTriggerLabel: "Bill actions",
28
- statusBadge: t,
29
- approvalPolicy: e,
30
- dueDate: n
31
- };
32
- function i(e) {
33
- return {
34
- ...r,
35
- ...e,
36
- statusBadge: {
37
- ...r.statusBadge,
38
- ...e?.statusBadge
39
- },
40
- approvalPolicy: {
41
- ...r.approvalPolicy,
42
- ...e?.approvalPolicy
43
- },
44
- dueDate: {
45
- ...r.dueDate,
46
- ...e?.dueDate
47
- }
48
- };
49
- }
50
- //#endregion
51
- export { r as BILL_DETAIL_BODY_LABELS_EN, i as mergeBillDetailBodyLabels };
@@ -1,302 +1,9 @@
1
- import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { ApprovalPolicyCard as a } from "./index13.js";
5
- import "./index14.js";
6
- import { BillOverflowMenu as o } from "./index16.js";
7
- import "./index17.js";
8
- import { BillStatusBadge as s } from "./index20.js";
9
- import "./index21.js";
10
- import { DueDateValue as c } from "./index23.js";
11
- import "./index24.js";
12
- import { mergeBillDetailBodyLabels as l } from "./index25.js";
13
- import { BillActionButtons as u, NO_BILL_ACTIONS as d, hasBillActions as f } from "./index15.js";
14
- import { AchFieldGroup as p } from "../../../shared/counterpart-management/ui/dist/index5.js";
15
- import "../../../shared/counterpart-management/ui/dist/index.js";
16
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
17
- import { AlertTriangle as g, ChevronRight as _ } from "lucide-react";
18
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js
19
- 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";
20
- function x({ view: x, actions: S = d, scheduledSummary: C, paymentInstructionsForm: w, isLoading: T, isError: E, labels: D }) {
21
- let O = l(D);
22
- if (E) return /* @__PURE__ */ m(i, {
23
- title: O.errorTitle,
24
- description: O.errorDescription
25
- });
26
- if (T || !x) return /* @__PURE__ */ h("div", {
27
- "aria-hidden": !0,
28
- className: "ttw:flex ttw:flex-col ttw:gap-6",
29
- children: [
30
- /* @__PURE__ */ m(n, { className: "ttw:h-40 ttw:w-full" }),
31
- /* @__PURE__ */ m(n, { className: "ttw:h-32 ttw:w-full" }),
32
- /* @__PURE__ */ m(n, { className: "ttw:h-24 ttw:w-full" })
33
- ]
34
- });
35
- let k = !x.payTo.paymentInstructionsLabel && w;
36
- return /* @__PURE__ */ h("div", {
37
- className: "ttw:flex ttw:flex-col ttw:gap-6",
38
- children: [
39
- k ? /* @__PURE__ */ h("div", {
40
- 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",
41
- children: [
42
- /* @__PURE__ */ m(g, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
43
- /* @__PURE__ */ m("p", {
44
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
45
- children: O.missingPaymentInstructionsBanner
46
- }),
47
- /* @__PURE__ */ m(t, {
48
- type: "button",
49
- variant: "outline",
50
- size: "sm",
51
- onClick: w.onOpen,
52
- children: O.addPaymentInstructions
53
- })
54
- ]
55
- }) : null,
56
- /* @__PURE__ */ h("section", {
57
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
58
- children: [
59
- x.paidOnLabel ? /* @__PURE__ */ h("div", {
60
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
61
- children: [/* @__PURE__ */ h("div", {
62
- className: "ttw:flex ttw:flex-col ttw:gap-1",
63
- children: [/* @__PURE__ */ m("span", {
64
- className: "ttw:text-sm ttw:text-muted-foreground",
65
- children: O.amountDueHeading
66
- }), /* @__PURE__ */ m("span", {
67
- className: "ttw:text-3xl ttw:font-semibold",
68
- children: x.amountDue
69
- })]
70
- }), /* @__PURE__ */ h("div", {
71
- className: "ttw:flex ttw:flex-col ttw:gap-1",
72
- children: [/* @__PURE__ */ m("span", {
73
- className: "ttw:text-sm ttw:text-muted-foreground",
74
- children: O.amountPaidHeading
75
- }), /* @__PURE__ */ m("span", {
76
- className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
77
- children: x.amountPaid
78
- })]
79
- })]
80
- }) : /* @__PURE__ */ h("div", {
81
- className: "ttw:flex ttw:flex-col ttw:gap-1",
82
- children: [/* @__PURE__ */ m("span", {
83
- className: "ttw:text-sm ttw:text-muted-foreground",
84
- children: O.amountDueHeading
85
- }), /* @__PURE__ */ m("span", {
86
- className: "ttw:text-3xl ttw:font-semibold",
87
- children: x.amountDue
88
- })]
89
- }),
90
- /* @__PURE__ */ m("div", { children: x.paidOnLabel ? /* @__PURE__ */ m(e, {
91
- variant: "outline",
92
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
93
- children: x.paidOnLabel
94
- }) : /* @__PURE__ */ m(s, {
95
- status: x.status,
96
- tone: x.statusTone,
97
- labels: O.statusBadge
98
- }) }),
99
- /* @__PURE__ */ h("div", {
100
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
101
- children: [/* @__PURE__ */ h("div", {
102
- className: "ttw:flex ttw:flex-col",
103
- children: [/* @__PURE__ */ m("span", {
104
- className: "ttw:text-xs ttw:text-muted-foreground",
105
- children: O.invoiceDateLabel
106
- }), /* @__PURE__ */ m("span", {
107
- className: "ttw:text-sm ttw:font-medium",
108
- children: x.invoiceDateLabel
109
- })]
110
- }), /* @__PURE__ */ h("div", {
111
- className: "ttw:flex ttw:flex-col",
112
- children: [/* @__PURE__ */ m("span", {
113
- className: "ttw:text-xs ttw:text-muted-foreground",
114
- children: O.dueDateLabel
115
- }), /* @__PURE__ */ m(c, {
116
- className: "ttw:text-sm ttw:font-medium",
117
- value: x.dueDateLabel,
118
- tone: x.dueDateTone,
119
- labels: O.dueDate
120
- })]
121
- })]
122
- }),
123
- C ? /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(e, {
124
- variant: "outline",
125
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
126
- children: C
127
- }) }) : f(S) ? /* @__PURE__ */ h("div", {
128
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
129
- children: [/* @__PURE__ */ m(u, { actions: S.row }), /* @__PURE__ */ m(o, {
130
- actions: S.menu,
131
- triggerLabel: O.overflowMenuTriggerLabel
132
- })]
133
- }) : null
134
- ]
135
- }),
136
- /* @__PURE__ */ h("section", {
137
- className: "ttw:flex ttw:flex-col ttw:gap-1",
138
- children: [
139
- /* @__PURE__ */ m("h3", {
140
- className: v,
141
- children: x.paidOnLabel ? O.payToHeadingPaid : O.payToHeading
142
- }),
143
- /* @__PURE__ */ h("div", {
144
- className: b,
145
- children: [/* @__PURE__ */ m("span", {
146
- className: "ttw:text-sm ttw:text-muted-foreground",
147
- children: O.vendorRow
148
- }), /* @__PURE__ */ h("div", {
149
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-right",
150
- children: [/* @__PURE__ */ h("div", {
151
- className: "ttw:flex ttw:flex-col",
152
- children: [/* @__PURE__ */ m("span", {
153
- className: "ttw:text-sm ttw:font-medium ttw:text-primary",
154
- children: x.payTo.name
155
- }), x.payTo.email ? /* @__PURE__ */ m("span", {
156
- className: "ttw:text-xs ttw:text-muted-foreground",
157
- children: x.payTo.email
158
- }) : null]
159
- }), /* @__PURE__ */ m(_, {
160
- "aria-hidden": !0,
161
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
162
- })]
163
- })]
164
- }),
165
- /* @__PURE__ */ h("div", {
166
- className: b,
167
- children: [/* @__PURE__ */ m("span", {
168
- className: "ttw:text-sm ttw:text-muted-foreground",
169
- children: O.paymentInstructionsRow
170
- }), /* @__PURE__ */ h("div", {
171
- className: "ttw:flex ttw:items-center ttw:gap-2",
172
- children: [x.payTo.paymentInstructionsLabel ? /* @__PURE__ */ m("span", {
173
- className: "ttw:text-sm ttw:font-medium",
174
- children: x.payTo.paymentInstructionsLabel
175
- }) : w ? /* @__PURE__ */ m("button", {
176
- type: "button",
177
- onClick: w.onOpen,
178
- className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
179
- children: O.addPaymentInstructions
180
- }) : /* @__PURE__ */ m("span", {
181
- className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
182
- children: O.addPaymentInstructions
183
- }), /* @__PURE__ */ m(_, {
184
- "aria-hidden": !0,
185
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
186
- })]
187
- })]
188
- }),
189
- w?.isOpen ? /* @__PURE__ */ h("div", {
190
- className: "ttw:mt-2 ttw:rounded-lg ttw:border ttw:border-border ttw:p-4",
191
- children: [/* @__PURE__ */ m(p, {
192
- idPrefix: "bill-detail-payment-instructions",
193
- values: w.values,
194
- errors: w.errors,
195
- onChange: w.onChange
196
- }), /* @__PURE__ */ h("div", {
197
- className: "ttw:mt-4 ttw:flex ttw:justify-end ttw:gap-2",
198
- children: [/* @__PURE__ */ m(t, {
199
- type: "button",
200
- variant: "ghost",
201
- onClick: w.onCancel,
202
- children: O.paymentInstructionsCancel
203
- }), /* @__PURE__ */ m(t, {
204
- type: "button",
205
- loading: w.isSaving,
206
- onClick: w.onSave,
207
- children: O.paymentInstructionsSave
208
- })]
209
- })]
210
- }) : null
211
- ]
212
- }),
213
- /* @__PURE__ */ m("dl", {
214
- className: "ttw:flex ttw:flex-col",
215
- children: x.invoiceFields.map((e) => /* @__PURE__ */ h("div", {
216
- className: b,
217
- children: [/* @__PURE__ */ m("dt", {
218
- className: "ttw:text-sm ttw:text-muted-foreground",
219
- children: e.label
220
- }), /* @__PURE__ */ m("dd", {
221
- className: "ttw:text-right ttw:text-sm ttw:font-medium",
222
- children: e.value
223
- })]
224
- }, e.label))
225
- }),
226
- /* @__PURE__ */ m("section", { children: /* @__PURE__ */ h("table", {
227
- className: "ttw:w-full ttw:text-sm",
228
- children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
229
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
230
- children: [
231
- /* @__PURE__ */ m("th", {
232
- className: r(y, "ttw:text-left ttw:font-normal"),
233
- children: O.descriptionAndGlCodeColumn
234
- }),
235
- /* @__PURE__ */ m("th", {
236
- className: r(y, "ttw:text-right ttw:font-normal"),
237
- children: O.qtyPriceColumn
238
- }),
239
- /* @__PURE__ */ m("th", {
240
- className: r(y, "ttw:text-right ttw:font-normal"),
241
- children: O.amountColumn
242
- })
243
- ]
244
- }) }), /* @__PURE__ */ h("tbody", { children: [x.lineItems.map((e) => /* @__PURE__ */ h("tr", {
245
- className: "ttw:border-b ttw:border-border",
246
- children: [
247
- /* @__PURE__ */ m("td", {
248
- className: y,
249
- children: /* @__PURE__ */ h("div", {
250
- className: "ttw:flex ttw:flex-col",
251
- children: [/* @__PURE__ */ m("span", { children: e.description }), /* @__PURE__ */ m("span", {
252
- className: "ttw:text-xs ttw:text-muted-foreground",
253
- children: e.glCodeLabel
254
- })]
255
- })
256
- }),
257
- /* @__PURE__ */ m("td", {
258
- className: r(y, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
259
- children: e.qtyPriceLabel
260
- }),
261
- /* @__PURE__ */ m("td", {
262
- className: r(y, "ttw:text-right ttw:whitespace-nowrap"),
263
- children: e.amount
264
- })
265
- ]
266
- }, e.id)), x.amountRows.map((e) => /* @__PURE__ */ h("tr", {
267
- className: r(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
268
- children: [/* @__PURE__ */ m("td", {
269
- colSpan: 2,
270
- className: y,
271
- children: e.label
272
- }), /* @__PURE__ */ m("td", {
273
- className: r(y, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
274
- children: e.value
275
- })]
276
- }, e.label))] })]
277
- }) }),
278
- x.approvalPolicy ? /* @__PURE__ */ m(a, {
279
- view: x.approvalPolicy,
280
- labels: O.approvalPolicy
281
- }) : null,
282
- x.history.length ? /* @__PURE__ */ h("section", {
283
- className: "ttw:flex ttw:flex-col ttw:gap-3",
284
- children: [/* @__PURE__ */ m("h3", {
285
- className: v,
286
- children: O.historyHeading
287
- }), /* @__PURE__ */ m("ul", {
288
- className: "ttw:flex ttw:flex-col",
289
- children: x.history.map((e) => /* @__PURE__ */ h("li", {
290
- className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
291
- children: [/* @__PURE__ */ m("span", {
292
- className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
293
- children: e.dateLabel
294
- }), /* @__PURE__ */ m("span", { children: e.description })]
295
- }, e.id))
296
- })]
297
- }) : null
298
- ]
299
- });
300
- }
2
+ var e = {
3
+ invoiceNumber: "Invoice number",
4
+ invoiceDate: "Invoice date",
5
+ dueDate: "Due date",
6
+ poNumber: "PO number (optional)"
7
+ };
301
8
  //#endregion
302
- export { x as BillDetailBody, x as default };
9
+ export { e as BILL_FORM_FIELDS_LABELS_EN };