@tesouro/embedded-components-react 0.2.336 → 0.2.338

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