@tesouro/embedded-components-react 0.5.28 → 0.5.29

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 (112) hide show
  1. package/dist/index.css +12 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
  107. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
  108. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  109. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  110. package/package.json +1 -1
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
@@ -19,17 +19,22 @@ import { useMemo as g } from "react";
19
19
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
20
20
  import { AlertTriangle as y } from "lucide-react";
21
21
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js
22
- var b = "ttw:text-base ttw:font-semibold", x = "ttw:px-3 ttw:py-2", S = "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";
23
- function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideNotice: E, paymentInstructionsForm: D, hideMissingPaymentInstructions: O, onEditPaymentInstructions: k, paymentHistoryError: A, paymentHistoryLoading: j, isLoading: M, isError: N, labels: P }) {
24
- let F = g(() => p(P), [P]), I = g(() => ({
25
- ...F.payToCard,
26
- payToHeading: C?.paidOnLabel ? F.payToHeadingPaid : F.payToHeading
27
- }), [F, C?.paidOnLabel]);
28
- if (N) return /* @__PURE__ */ _(a, {
29
- title: F.errorTitle,
30
- description: F.errorDescription
22
+ var b = "ttw:text-base ttw:font-semibold", x = "ttw:px-3 ttw:py-2", S = "ttw:py-2 ttw:pr-3", C = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", w = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
23
+ function T({ view: T, actions: E = h, scheduledSummary: D, scheduledStatusLabel: O, showApprovalOverrideNotice: k, awaitingApprovalNotice: A, payTo: j, hideMissingPaymentInstructions: M, paymentHistoryError: N, paymentHistoryLoading: P, isLoading: F, isError: I, labels: L }) {
24
+ let R = g(() => p(L), [L]), z = g(() => ({
25
+ ...R.payToCard,
26
+ payToHeading: T?.paidOnLabel ? R.payToHeadingPaid : R.payToHeading,
27
+ vendorLabel: R.vendorRow,
28
+ achBankAccountLabel: R.paymentInstructionsRow
29
+ }), [R, T?.paidOnLabel]), B = g(() => ({
30
+ ...R.statusBadge,
31
+ ...O ? { scheduled: O } : void 0
32
+ }), [R.statusBadge, O]);
33
+ if (I) return /* @__PURE__ */ _(a, {
34
+ title: R.errorTitle,
35
+ description: R.errorDescription
31
36
  });
32
- if (M || !C) return /* @__PURE__ */ v("div", {
37
+ if (F || !T) return /* @__PURE__ */ v("div", {
33
38
  "aria-hidden": !0,
34
39
  className: "ttw:flex ttw:flex-col ttw:gap-6",
35
40
  children: [
@@ -38,73 +43,73 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
38
43
  /* @__PURE__ */ _(n, { className: "ttw:h-24 ttw:w-full" })
39
44
  ]
40
45
  });
41
- let L = O || C.payTo.fields.length > 0 ? void 0 : D;
46
+ let V = M ? void 0 : j?.paymentInstructions, H = T.payTo.hasPaymentInstructions ? void 0 : V;
42
47
  return /* @__PURE__ */ v("div", {
43
48
  className: "ttw:flex ttw:flex-col ttw:gap-6",
44
49
  children: [
45
- L ? /* @__PURE__ */ v("div", {
50
+ H ? /* @__PURE__ */ v("div", {
46
51
  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",
47
52
  children: [
48
53
  /* @__PURE__ */ _(y, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
49
54
  /* @__PURE__ */ _("p", {
50
55
  className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
51
- children: F.missingPaymentInstructionsBanner
56
+ children: R.missingPaymentInstructionsBanner
52
57
  }),
53
58
  /* @__PURE__ */ _(t, {
54
59
  type: "button",
55
60
  variant: "outline",
56
61
  size: "sm",
57
- onClick: L.onOpen,
58
- children: F.addPaymentInstructions
62
+ onClick: H.onOpen,
63
+ children: R.addPaymentInstructions
59
64
  })
60
65
  ]
61
66
  }) : null,
62
67
  /* @__PURE__ */ v("section", {
63
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
68
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
64
69
  children: [
65
- C.paidOnLabel ? /* @__PURE__ */ v("div", {
70
+ T.paidOnLabel ? /* @__PURE__ */ v("div", {
66
71
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
67
72
  children: [/* @__PURE__ */ v("div", {
68
73
  className: "ttw:flex ttw:flex-col ttw:gap-1",
69
74
  children: [/* @__PURE__ */ _("span", {
70
75
  className: "ttw:text-sm ttw:text-muted-foreground",
71
- children: F.amountDueHeading
76
+ children: R.amountDueHeading
72
77
  }), /* @__PURE__ */ _("span", {
73
78
  className: "ttw:text-3xl ttw:font-semibold",
74
- children: C.amountDue
79
+ children: T.amountDue
75
80
  })]
76
81
  }), /* @__PURE__ */ v("div", {
77
82
  className: "ttw:flex ttw:flex-col ttw:gap-1",
78
83
  children: [/* @__PURE__ */ _("span", {
79
84
  className: "ttw:text-sm ttw:text-muted-foreground",
80
- children: F.amountPaidHeading
85
+ children: R.amountPaidHeading
81
86
  }), /* @__PURE__ */ _("span", {
82
87
  className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
83
- children: C.amountPaid
88
+ children: T.amountPaid
84
89
  })]
85
90
  })]
86
91
  }) : /* @__PURE__ */ v("div", {
87
92
  className: "ttw:flex ttw:flex-col ttw:gap-1",
88
93
  children: [/* @__PURE__ */ _("span", {
89
94
  className: "ttw:text-sm ttw:text-muted-foreground",
90
- children: F.amountDueHeading
95
+ children: R.amountDueHeading
91
96
  }), /* @__PURE__ */ _("span", {
92
97
  className: "ttw:text-3xl ttw:font-semibold",
93
- children: C.amountDue
98
+ children: T.amountDue
94
99
  })]
95
100
  }),
96
- /* @__PURE__ */ _("div", { children: C.paidOnLabel ? /* @__PURE__ */ _(e, {
101
+ /* @__PURE__ */ _("div", { children: T.paidOnLabel ? /* @__PURE__ */ _(e, {
97
102
  variant: "outline",
98
103
  className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
99
- children: C.paidOnLabel
100
- }) : T ? /* @__PURE__ */ _(e, {
104
+ children: T.paidOnLabel
105
+ }) : D ? /* @__PURE__ */ _(e, {
101
106
  variant: "outline",
102
107
  className: c.committed,
103
- children: T
108
+ children: D
104
109
  }) : /* @__PURE__ */ _(l, {
105
- status: C.status,
106
- tone: C.statusTone,
107
- labels: F.statusBadge
110
+ status: T.status,
111
+ tone: T.statusTone,
112
+ labels: B
108
113
  }) }),
109
114
  /* @__PURE__ */ v("div", {
110
115
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
@@ -112,74 +117,74 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
112
117
  className: "ttw:flex ttw:flex-col",
113
118
  children: [/* @__PURE__ */ _("span", {
114
119
  className: "ttw:text-xs ttw:text-muted-foreground",
115
- children: F.invoiceDateLabel
120
+ children: R.invoiceDateLabel
116
121
  }), /* @__PURE__ */ _("span", {
117
122
  className: "ttw:text-sm ttw:font-medium",
118
- children: C.invoiceDateLabel
123
+ children: T.invoiceDateLabel
119
124
  })]
120
125
  }), /* @__PURE__ */ v("div", {
121
126
  className: "ttw:flex ttw:flex-col",
122
127
  children: [/* @__PURE__ */ _("span", {
123
128
  className: "ttw:text-xs ttw:text-muted-foreground",
124
- children: F.dueDateLabel
129
+ children: R.dueDateLabel
125
130
  }), /* @__PURE__ */ _(u, {
126
131
  className: "ttw:text-sm ttw:font-medium",
127
- value: C.dueDateLabel,
128
- tone: C.dueDateTone,
129
- labels: F.dueDate
132
+ value: T.dueDateLabel,
133
+ tone: T.dueDateTone,
134
+ labels: R.dueDate
130
135
  })]
131
136
  })]
132
137
  }),
133
- C.rejection ? /* @__PURE__ */ _(s, { ...C.rejection }) : null,
134
- E ? /* @__PURE__ */ _(r, {
138
+ T.rejection ? /* @__PURE__ */ _(s, { ...T.rejection }) : null,
139
+ k ? /* @__PURE__ */ _(r, {
135
140
  variant: "caption",
136
141
  color: "muted",
137
- children: F.approvalOverrideNotice
142
+ children: R.approvalOverrideNotice
143
+ }) : A ? /* @__PURE__ */ _(r, {
144
+ variant: "caption",
145
+ color: "muted",
146
+ children: A
138
147
  }) : null,
139
- !T && w.row.length ? /* @__PURE__ */ _("div", {
148
+ !D && E.row.length ? /* @__PURE__ */ _("div", {
140
149
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
141
- children: /* @__PURE__ */ _(m, { actions: w.row })
150
+ children: /* @__PURE__ */ _(m, { actions: E.row })
142
151
  }) : null
143
152
  ]
144
153
  }),
145
- /* @__PURE__ */ _(f, {
146
- summary: C.payTo,
147
- onEdit: O ? void 0 : k,
148
- instructionsCollapsed: !0,
149
- paymentInstructions: D && !O ? {
150
- isOpen: D.isOpen,
151
- values: D.values,
152
- errors: D.errors,
153
- isSaving: D.isSaving,
154
- onOpen: D.onOpen,
155
- onChange: D.onChange,
156
- onSave: D.onSave,
157
- onCancel: D.onCancel
158
- } : void 0,
159
- labels: I
154
+ j?.editForm ?? /* @__PURE__ */ _(f, {
155
+ summary: T.payTo,
156
+ onEdit: j?.onEdit,
157
+ paymentInstructions: V,
158
+ labels: z
160
159
  }),
161
- C.paymentHistory.length || A || j ? /* @__PURE__ */ v("section", {
160
+ T.paymentHistory.length || N || P ? /* @__PURE__ */ v("section", {
162
161
  className: "ttw:flex ttw:flex-col ttw:gap-3",
163
162
  children: [/* @__PURE__ */ _("h3", {
164
163
  className: b,
165
- children: F.paymentHistoryHeading
166
- }), A ? /* @__PURE__ */ _("p", {
164
+ children: R.paymentHistoryHeading
165
+ }), N ? /* @__PURE__ */ _("p", {
167
166
  className: "ttw:text-sm ttw:text-muted-foreground",
168
- children: F.paymentHistoryErrorDescription
169
- }) : j ? /* @__PURE__ */ _(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ _(d, { records: C.paymentHistory })]
167
+ children: R.paymentHistoryErrorDescription
168
+ }) : P ? /* @__PURE__ */ _(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ _(d, { records: T.paymentHistory })]
170
169
  }) : null,
171
- /* @__PURE__ */ _("dl", {
172
- className: "ttw:flex ttw:flex-col",
173
- children: C.invoiceFields.map((e) => /* @__PURE__ */ v("div", {
174
- className: S,
175
- children: [/* @__PURE__ */ _("dt", {
176
- className: "ttw:text-sm ttw:text-muted-foreground",
177
- children: e.label
178
- }), /* @__PURE__ */ _("dd", {
179
- className: "ttw:text-right ttw:text-sm ttw:font-medium",
180
- children: e.value
181
- })]
182
- }, e.label))
170
+ /* @__PURE__ */ v("section", {
171
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
172
+ children: [/* @__PURE__ */ _("h3", {
173
+ className: b,
174
+ children: R.invoiceDetailsHeading
175
+ }), /* @__PURE__ */ _("dl", {
176
+ className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
177
+ children: T.invoiceFields.map((e) => /* @__PURE__ */ v("div", {
178
+ className: C,
179
+ children: [/* @__PURE__ */ _("dt", {
180
+ className: w,
181
+ children: e.label
182
+ }), /* @__PURE__ */ _("dd", {
183
+ className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
184
+ children: e.value
185
+ })]
186
+ }, e.label))
187
+ })]
183
188
  }),
184
189
  /* @__PURE__ */ _("section", { children: /* @__PURE__ */ v("table", {
185
190
  className: "ttw:w-full ttw:text-sm",
@@ -187,23 +192,23 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
187
192
  className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
188
193
  children: [
189
194
  /* @__PURE__ */ _("th", {
190
- className: i(x, "ttw:text-left ttw:font-normal"),
191
- children: F.descriptionAndGlCodeColumn
195
+ className: i(S, "ttw:text-left ttw:font-normal"),
196
+ children: R.descriptionAndGlCodeColumn
192
197
  }),
193
198
  /* @__PURE__ */ _("th", {
194
199
  className: i(x, "ttw:text-right ttw:font-normal"),
195
- children: F.qtyPriceColumn
200
+ children: R.qtyPriceColumn
196
201
  }),
197
202
  /* @__PURE__ */ _("th", {
198
203
  className: i(x, "ttw:text-right ttw:font-normal"),
199
- children: F.amountColumn
204
+ children: R.amountColumn
200
205
  })
201
206
  ]
202
- }) }), /* @__PURE__ */ v("tbody", { children: [C.lineItems.map((e) => /* @__PURE__ */ v("tr", {
207
+ }) }), /* @__PURE__ */ v("tbody", { children: [T.lineItems.map((e) => /* @__PURE__ */ v("tr", {
203
208
  className: "ttw:border-b ttw:border-border",
204
209
  children: [
205
210
  /* @__PURE__ */ _("td", {
206
- className: x,
211
+ className: S,
207
212
  children: /* @__PURE__ */ v("div", {
208
213
  className: "ttw:flex ttw:flex-col",
209
214
  children: [/* @__PURE__ */ _("span", { children: e.description }), /* @__PURE__ */ _("span", {
@@ -221,11 +226,11 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
221
226
  children: e.amount
222
227
  })
223
228
  ]
224
- }, e.id)), C.amountRows.map((e) => /* @__PURE__ */ v("tr", {
229
+ }, e.id)), T.amountRows.map((e) => /* @__PURE__ */ v("tr", {
225
230
  className: i(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
226
231
  children: [/* @__PURE__ */ _("td", {
227
232
  colSpan: 2,
228
- className: x,
233
+ className: S,
229
234
  children: e.label
230
235
  }), /* @__PURE__ */ _("td", {
231
236
  className: i(x, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
@@ -233,18 +238,18 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
233
238
  })]
234
239
  }, e.label))] })]
235
240
  }) }),
236
- C.approvalPolicy ? /* @__PURE__ */ _(o, {
237
- view: C.approvalPolicy,
238
- labels: F.approvalPolicy
241
+ T.approvalPolicy ? /* @__PURE__ */ _(o, {
242
+ view: T.approvalPolicy,
243
+ labels: R.approvalPolicy
239
244
  }) : null,
240
- C.history.length ? /* @__PURE__ */ v("section", {
245
+ T.history.length ? /* @__PURE__ */ v("section", {
241
246
  className: "ttw:flex ttw:flex-col ttw:gap-3",
242
247
  children: [/* @__PURE__ */ _("h3", {
243
248
  className: b,
244
- children: F.historyHeading
249
+ children: R.historyHeading
245
250
  }), /* @__PURE__ */ _("ul", {
246
251
  className: "ttw:flex ttw:flex-col",
247
- children: C.history.map((e) => /* @__PURE__ */ v("li", {
252
+ children: T.history.map((e) => /* @__PURE__ */ v("li", {
248
253
  className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
249
254
  children: [/* @__PURE__ */ _("span", {
250
255
  className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
@@ -257,4 +262,4 @@ function C({ view: C, actions: w = h, scheduledSummary: T, showApprovalOverrideN
257
262
  });
258
263
  }
259
264
  //#endregion
260
- export { C as BillDetailBody, C as default };
265
+ export { T as BillDetailBody, T as default };
@@ -7,50 +7,49 @@ import { VENDOR_SECTION_LABELS_EN as r } from "./index45.js";
7
7
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
9
9
  function o(o) {
10
- let { onEdit: s, onClear: c, error: l, testId: u, labels: d, disabled: f } = o, p = {
10
+ let { onEdit: s, error: c, testId: l, labels: u, disabled: d } = o, f = {
11
11
  ...r,
12
- ...d,
12
+ ...u,
13
13
  summaryCard: {
14
14
  ...r.summaryCard,
15
- ...d?.summaryCard,
15
+ ...u?.summaryCard,
16
16
  ach: {
17
17
  ...r.summaryCard.ach,
18
- ...d?.summaryCard?.ach
18
+ ...u?.summaryCard?.ach
19
19
  }
20
20
  },
21
21
  search: {
22
22
  ...r.search,
23
- ...d?.search
23
+ ...u?.search
24
24
  }
25
25
  };
26
26
  return /* @__PURE__ */ a("section", {
27
27
  className: "ttw:flex ttw:flex-col ttw:gap-3",
28
- "data-invalid": l ? !0 : void 0,
29
- "data-testid": u,
28
+ "data-invalid": c ? !0 : void 0,
29
+ "data-testid": l,
30
30
  children: [
31
31
  /* @__PURE__ */ i(e, {
32
32
  component: "h2",
33
33
  variant: "h6",
34
34
  className: "ttw:font-semibold",
35
- children: p.heading
35
+ children: f.heading
36
36
  }),
37
37
  o.mode === "resolved" ? /* @__PURE__ */ i(t, {
38
38
  summary: o.summary,
39
39
  onEdit: s,
40
- onClear: c,
41
- paymentInstructions: f ? void 0 : o.paymentInstructions,
42
- labels: p.summaryCard
43
- }) : f ? /* @__PURE__ */ i(e, {
40
+ paymentInstructions: d ? void 0 : o.paymentInstructions,
41
+ labels: f.summaryCard
42
+ }) : d ? /* @__PURE__ */ i(e, {
44
43
  variant: "body2",
45
44
  className: "ttw:text-muted-foreground",
46
- children: p.noVendorPlaceholder
45
+ children: f.noVendorPlaceholder
47
46
  }) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
48
47
  ...o.search,
49
- labels: p.search
48
+ labels: f.search
50
49
  }) : o.newVendorForm,
51
- l ? /* @__PURE__ */ i("p", {
50
+ c ? /* @__PURE__ */ i("p", {
52
51
  className: "ttw:text-sm ttw:text-destructive",
53
- children: l
52
+ children: c
54
53
  }) : null
55
54
  ]
56
55
  });
@@ -14,6 +14,7 @@ var a = {
14
14
  cancelButton: "Cancel",
15
15
  saveDraftButton: "Save and close",
16
16
  submitButton: "Submit",
17
+ saveButton: "Save",
17
18
  hiddenDescription: "Enter the details of the bill you want to pay.",
18
19
  vendorSection: i,
19
20
  detailsFields: n,
@@ -15,17 +15,17 @@ import { mergeBillCreateScreenLabels as _ } from "./index48.js";
15
15
  import { useFocusFirstInvalidField as v } from "./index49.js";
16
16
  import { Fragment as y, useId as b } from "react";
17
17
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
18
- import { Minimize2 as w, MoreVertical as ne, X as T } from "lucide-react";
18
+ import { Minimize2 as w, MoreVertical as T, X as ne } from "lucide-react";
19
19
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js
20
- function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor: j, values: M, errors: N, onChange: P, lineItems: F, documentPanel: I, menuItems: L, readOnly: R, detail: z, isLineItemsLoading: B, isSaving: V, isSavingDraft: H, isSubmitting: U, showSubmit: W = !0, onCancel: G, onCollapse: K, onSaveDraft: q, onFinalize: J, scrollToErrorToken: Y, testId: X, labels: Z }) {
21
- let re = b(), Q = _(Z), $ = !!(R && z), ie = L ? m(L) : [], ae = v(Y);
20
+ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor: j, values: M, errors: N, onChange: P, lineItems: F, documentPanel: I, menuItems: L, readOnly: R, detail: z, detailEdit: B, isLineItemsLoading: V, isSaving: H, isSavingDraft: U, isSubmitting: W, showSubmit: G = !0, onCancel: K, onCollapse: q, onSaveDraft: J, onFinalize: Y, scrollToErrorToken: X, testId: Z, labels: re }) {
21
+ let ie = b(), Q = _(re), $ = !!(R && z), ae = L ? m(L) : [], oe = v(X);
22
22
  return /* @__PURE__ */ S(t, {
23
23
  open: E,
24
24
  onOpenChange: D,
25
25
  children: /* @__PURE__ */ C(n, {
26
26
  showCloseButton: !1,
27
27
  className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
28
- "data-testid": X,
28
+ "data-testid": Z,
29
29
  children: [
30
30
  /* @__PURE__ */ C(i, {
31
31
  className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
@@ -48,14 +48,14 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
48
48
  }), /* @__PURE__ */ C("div", {
49
49
  className: "ttw:flex ttw:items-center ttw:gap-1",
50
50
  children: [
51
- K ? /* @__PURE__ */ S(e, {
51
+ q ? /* @__PURE__ */ S(e, {
52
52
  type: "button",
53
53
  variant: "ghost",
54
54
  size: "icon",
55
55
  "aria-label": Q.collapseButton,
56
- disabled: V,
57
- onClick: K,
58
- children: /* @__PURE__ */ S(w, { className: "ttw:size-4" })
56
+ disabled: H,
57
+ onClick: q,
58
+ children: /* @__PURE__ */ S(w, { className: "ttw:size-4 ttw:rotate-90" })
59
59
  }) : null,
60
60
  L && L.length > 0 ? /* @__PURE__ */ C(o, { children: [/* @__PURE__ */ S(d, {
61
61
  asChild: !0,
@@ -64,12 +64,12 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
64
64
  variant: "ghost",
65
65
  size: "icon",
66
66
  "aria-label": Q.menuTrigger,
67
- disabled: V,
68
- children: /* @__PURE__ */ S(ne, { className: "ttw:size-4" })
67
+ disabled: H,
68
+ children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
69
69
  })
70
70
  }), /* @__PURE__ */ S(s, {
71
71
  align: "end",
72
- children: ie.map((e, t) => {
72
+ children: ae.map((e, t) => {
73
73
  let n = e.items.map((e) => {
74
74
  let t = e.icon;
75
75
  return /* @__PURE__ */ C(l, {
@@ -80,7 +80,7 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
80
80
  }, e.id);
81
81
  });
82
82
  if (!e.heading) return /* @__PURE__ */ S(y, { children: n }, e.items[0]?.id);
83
- let r = `${re}-${t}`;
83
+ let r = `${ie}-${t}`;
84
84
  return /* @__PURE__ */ C(y, { children: [
85
85
  t > 0 ? /* @__PURE__ */ S(ee, {}) : null,
86
86
  /* @__PURE__ */ S(u, {
@@ -100,9 +100,9 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
100
100
  variant: "ghost",
101
101
  size: "icon",
102
102
  "aria-label": Q.closeButton,
103
- disabled: V,
104
- onClick: G,
105
- children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
103
+ disabled: H,
104
+ onClick: K,
105
+ children: /* @__PURE__ */ S(ne, { className: "ttw:size-4" })
106
106
  })
107
107
  ]
108
108
  })]
@@ -110,7 +110,7 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
110
110
  /* @__PURE__ */ C("div", {
111
111
  className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
112
112
  children: [/* @__PURE__ */ C("div", {
113
- ref: ae,
113
+ ref: oe,
114
114
  className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
115
115
  children: [
116
116
  N?.form ? /* @__PURE__ */ S("div", {
@@ -128,7 +128,6 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
128
128
  /* @__PURE__ */ S(g, {
129
129
  ...j,
130
130
  onEdit: R ? void 0 : j.onEdit,
131
- onClear: R ? void 0 : j.onClear,
132
131
  disabled: R,
133
132
  labels: Q.vendorSection
134
133
  }),
@@ -141,7 +140,7 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
141
140
  }),
142
141
  /* @__PURE__ */ S(h, {
143
142
  ...F,
144
- disabled: F.disabled || B || R,
143
+ disabled: F.disabled || V || R,
145
144
  labels: Q.lineItems
146
145
  })
147
146
  ] })
@@ -151,26 +150,41 @@ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor:
151
150
  children: I
152
151
  })]
153
152
  }),
154
- $ ? null : /* @__PURE__ */ C("div", {
153
+ $ ? B ? /* @__PURE__ */ C("div", {
154
+ className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
155
+ children: [/* @__PURE__ */ S(e, {
156
+ type: "button",
157
+ variant: "ghost",
158
+ disabled: B.isSaving,
159
+ onClick: B.onCancel,
160
+ children: Q.cancelButton
161
+ }), /* @__PURE__ */ S(e, {
162
+ type: "button",
163
+ onClick: B.onSave,
164
+ loading: B.isSaving,
165
+ disabled: B.isSaving,
166
+ children: Q.saveButton
167
+ })]
168
+ }) : null : /* @__PURE__ */ C("div", {
155
169
  className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
156
170
  children: [/* @__PURE__ */ S(e, {
157
171
  type: "button",
158
172
  variant: "ghost",
159
- disabled: V,
160
- onClick: G,
173
+ disabled: H,
174
+ onClick: K,
161
175
  children: R ? Q.closeButton : Q.cancelButton
162
176
  }), R ? null : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(e, {
163
177
  type: "button",
164
- variant: W ? "secondary" : "default",
165
- onClick: q,
166
- loading: H,
167
- disabled: V || U || B || j.mode === "creating",
168
- children: Q.saveDraftButton
169
- }), W ? /* @__PURE__ */ S(e, {
170
- type: "button",
178
+ variant: G ? "secondary" : "default",
171
179
  onClick: J,
172
180
  loading: U,
173
- disabled: V || H || B || j.mode === "creating",
181
+ disabled: H || W || V,
182
+ children: Q.saveDraftButton
183
+ }), G ? /* @__PURE__ */ S(e, {
184
+ type: "button",
185
+ onClick: Y,
186
+ loading: W,
187
+ disabled: H || U || V,
174
188
  children: Q.submitButton
175
189
  }) : null] })]
176
190
  })