@tesouro/embedded-components-react 0.5.141 → 0.5.142

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 (168) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
  164. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  165. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/relativeCalendarDay.js +12 -0
  166. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
@@ -1,318 +1,88 @@
1
- import { AuditHistoryList as e, Badge as t, Button as n, CollapsibleSection as r, Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c, Skeleton as l, Typography as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ApprovalPolicyCard as d } from "./index13.js";
3
- import "./index14.js";
4
- import { BillRejectionNotice as f } from "./index17.js";
5
- import { BADGE_TONE_CLASS_NAME as p } from "./index15.js";
6
- import { BillStatusBadge as m } from "./index19.js";
7
- import "./index20.js";
8
- import { DueDateValue as h } from "./index22.js";
9
- import "./index23.js";
10
- import { PaymentHistoryList as g } from "./index24.js";
11
- import "./index25.js";
12
- import { BILL_DETAILS_SHEET_LABELS_EN as _ } from "./index36.js";
13
- import { BillActionButtons as v, NO_BILL_ACTIONS as y } from "./index16.js";
14
- import { BillOverflowMenu as b } from "./index44.js";
15
- import "./index45.js";
16
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
17
- import { MoveDiagonal2Icon as w, XIcon as T } from "lucide-react";
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, FieldRequirement as s, Label as c, Textarea as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { mergeBillDecisionDialogLabels as u } from "./index64.js";
3
+ import { Fragment as d, useEffect as f, useState as p } from "react";
4
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
18
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js
19
- function E({ items: e }) {
20
- return /* @__PURE__ */ S("dl", {
21
- className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
22
- children: e.map((e) => /* @__PURE__ */ C("div", {
23
- className: "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5",
24
- children: [/* @__PURE__ */ S("dt", {
25
- className: "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
26
- children: e.label
27
- }), /* @__PURE__ */ C("dd", {
28
- className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:items-start",
29
- children: [/* @__PURE__ */ S("span", {
30
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
31
- children: e.value
32
- }), e.secondaryValue ? /* @__PURE__ */ S("span", {
33
- className: "ttw:text-sm ttw:text-muted-foreground",
34
- children: e.secondaryValue
35
- }) : null]
36
- })]
37
- }, e.label))
38
- });
39
- }
40
- function D({ open: D, onOpenChange: O, details: k, actions: A = y, approvalPolicy: j, showApprovalOverrideNotice: M, awaitingApprovalNotice: N, scheduledSummary: P, paymentHistory: F, paymentHistoryError: I, paymentHistoryLoading: L, auditHistory: R, auditHistoryError: z, auditHistoryLoading: B, auditHistoryNamesError: V, isLoading: H, isError: U, notice: W, onClose: G, onExpand: K, testId: q, labels: J }) {
41
- let Y = {
42
- ..._,
43
- ...J,
44
- statusBadge: {
45
- ..._.statusBadge,
46
- ...J?.statusBadge
47
- },
48
- approvalPolicy: {
49
- ..._.approvalPolicy,
50
- ...J?.approvalPolicy
6
+ function g({ open: g, copy: _, onConfirm: v, onCancel: y, isPending: b, confirmIcon: x, labels: S, testId: C, confirmTestId: w, reasonTestId: T, reasonFieldId: E = "bill-decision-reason" }) {
7
+ let D = u(S), [O, k] = p("");
8
+ if (f(() => {
9
+ g || k("");
10
+ }, [g]), !_) return null;
11
+ let { alignment: A = "start", icon: j, tone: M = "default", actionWidth: N = "auto" } = _.presentation ?? {}, P = A === "center", F = N === "equal", I = _.pendingApprovers ?? [];
12
+ return /* @__PURE__ */ m(e, {
13
+ open: g,
14
+ onOpenChange: (e) => {
15
+ e || y();
51
16
  },
52
- dueDate: {
53
- ..._.dueDate,
54
- ...J?.dueDate
55
- },
56
- auditHistory: {
57
- ..._.auditHistory,
58
- ...J?.auditHistory
59
- }
60
- };
61
- return /* @__PURE__ */ S(i, {
62
- open: D,
63
- onOpenChange: (e) => e ? O(e) : G(),
64
- children: /* @__PURE__ */ C(a, {
65
- showCloseButton: !1,
66
- className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
67
- "data-testid": q,
68
- children: [/* @__PURE__ */ C(s, {
69
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
70
- children: [/* @__PURE__ */ C("div", {
71
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
72
- children: [
73
- /* @__PURE__ */ S(c, {
74
- className: H ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
75
- children: U ? Y.errorTitle : H ? Y.loadingTitle : k?.title
76
- }),
77
- H ? /* @__PURE__ */ C("div", {
78
- "aria-hidden": !0,
79
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
80
- children: [/* @__PURE__ */ S(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ S(l, { className: "ttw:h-4 ttw:w-28" })]
81
- }) : null,
82
- k && !H && !U ? /* @__PURE__ */ S("p", {
83
- className: "ttw:text-sm ttw:text-muted-foreground",
84
- children: k.subtitle
85
- }) : null,
86
- /* @__PURE__ */ S(o, {
87
- className: "ttw:sr-only",
88
- children: Y.hiddenDescription
89
- })
90
- ]
91
- }), /* @__PURE__ */ C("div", {
92
- className: "ttw:flex ttw:items-center ttw:gap-1",
17
+ children: /* @__PURE__ */ h(t, {
18
+ "data-testid": C,
19
+ children: [
20
+ /* @__PURE__ */ h(i, {
21
+ className: P ? "ttw:items-center ttw:sm:text-center" : void 0,
93
22
  children: [
94
- K ? /* @__PURE__ */ S(n, {
95
- type: "button",
96
- variant: "ghost",
97
- size: "icon",
98
- "aria-label": Y.expandButton,
99
- onClick: K,
100
- children: /* @__PURE__ */ S(w, { className: "ttw:size-4" })
23
+ j ? /* @__PURE__ */ m("span", {
24
+ className: M === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
25
+ children: /* @__PURE__ */ m(j, { className: M === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
101
26
  }) : null,
102
- k && !H && !U ? /* @__PURE__ */ S(b, {
103
- actions: A.menu,
104
- triggerLabel: Y.overflowMenuTrigger,
105
- placement: "header"
106
- }) : null,
107
- /* @__PURE__ */ S(n, {
108
- type: "button",
109
- variant: "ghost",
110
- size: "icon",
111
- "aria-label": Y.closeButton,
112
- onClick: G,
113
- children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
114
- })
27
+ /* @__PURE__ */ m(a, { children: _.title }),
28
+ /* @__PURE__ */ m(n, { children: _.description })
115
29
  ]
116
- })]
117
- }), /* @__PURE__ */ S("div", {
118
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
119
- children: U ? /* @__PURE__ */ S("p", {
120
- className: "ttw:text-sm ttw:text-muted-foreground",
121
- children: Y.errorDescription
122
- }) : H ? /* @__PURE__ */ C("div", {
123
- className: "ttw:flex ttw:flex-col ttw:gap-6",
124
- children: [/* @__PURE__ */ S(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ C("div", {
125
- className: "ttw:flex ttw:flex-col ttw:gap-2",
126
- children: [
127
- /* @__PURE__ */ S(l, { className: "ttw:h-4 ttw:w-40" }),
128
- /* @__PURE__ */ S(l, { className: "ttw:h-9 ttw:w-full" }),
129
- /* @__PURE__ */ S(l, { className: "ttw:h-9 ttw:w-full" })
130
- ]
30
+ }),
31
+ I.length > 0 ? /* @__PURE__ */ m("div", {
32
+ className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
33
+ children: /* @__PURE__ */ m("ul", {
34
+ className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
35
+ children: I.map((e) => /* @__PURE__ */ m("li", {
36
+ className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
37
+ children: e.names.map((e, t) => /* @__PURE__ */ h(d, { children: [t > 0 ? /* @__PURE__ */ m("span", {
38
+ className: "ttw:text-muted-foreground",
39
+ children: ` ${D.orConnector} `
40
+ }) : null, /* @__PURE__ */ m("span", {
41
+ className: "ttw:font-medium",
42
+ children: e
43
+ })] }, e))
44
+ }, e.id))
45
+ })
46
+ }) : null,
47
+ _.reason ? /* @__PURE__ */ h("div", {
48
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
49
+ children: [/* @__PURE__ */ m(c, {
50
+ htmlFor: E,
51
+ requirement: s.Optional,
52
+ labels: D.fieldMarkers,
53
+ children: _.reason.label
54
+ }), /* @__PURE__ */ m(l, {
55
+ id: E,
56
+ value: O,
57
+ placeholder: _.reason.placeholder,
58
+ onChange: (e) => k(e.target.value),
59
+ disabled: b,
60
+ "data-testid": T
61
+ })]
62
+ }) : null,
63
+ /* @__PURE__ */ h(r, {
64
+ className: P ? "ttw:sm:justify-center" : void 0,
65
+ children: [/* @__PURE__ */ m(o, {
66
+ type: "button",
67
+ variant: "outline",
68
+ onClick: y,
69
+ disabled: b,
70
+ className: F ? "ttw:flex-1" : void 0,
71
+ children: D.cancelButton
72
+ }), /* @__PURE__ */ h(o, {
73
+ type: "button",
74
+ variant: M === "destructive" ? "destructive" : "default",
75
+ loading: b,
76
+ disabled: b,
77
+ onClick: () => v(_.reason ? O.trim() : void 0),
78
+ className: F ? "ttw:flex-1" : void 0,
79
+ "data-testid": w,
80
+ children: [b ? null : x, _.confirmButton]
131
81
  })]
132
- }) : k ? /* @__PURE__ */ C(x, { children: [
133
- W,
134
- /* @__PURE__ */ C("section", {
135
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
136
- children: [
137
- /* @__PURE__ */ C("div", {
138
- className: "ttw:flex ttw:flex-col ttw:gap-2",
139
- children: [k.paidOnLabel ? /* @__PURE__ */ C("div", {
140
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
141
- children: [/* @__PURE__ */ C("div", {
142
- className: "ttw:flex ttw:flex-col",
143
- children: [/* @__PURE__ */ S("span", {
144
- className: "ttw:text-sm ttw:text-muted-foreground",
145
- children: Y.amountDueHeading
146
- }), /* @__PURE__ */ S("span", {
147
- className: "ttw:text-3xl ttw:font-semibold",
148
- children: k.amountDueLabel
149
- })]
150
- }), /* @__PURE__ */ C("div", {
151
- className: "ttw:flex ttw:flex-col",
152
- children: [/* @__PURE__ */ S("span", {
153
- className: "ttw:text-sm ttw:text-muted-foreground",
154
- children: Y.amountPaidHeading
155
- }), /* @__PURE__ */ S("span", {
156
- className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
157
- children: k.amountPaidLabel
158
- })]
159
- })]
160
- }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("span", {
161
- className: "ttw:text-sm ttw:text-muted-foreground",
162
- children: Y.amountDueHeading
163
- }), /* @__PURE__ */ S("span", {
164
- className: "ttw:text-3xl ttw:font-semibold",
165
- children: k.amountDueLabel
166
- })] }), /* @__PURE__ */ S("div", { children: k.paidOnLabel ? /* @__PURE__ */ S(t, {
167
- variant: "outline",
168
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
169
- children: k.paidOnLabel
170
- }) : P ? /* @__PURE__ */ S(t, {
171
- variant: "outline",
172
- className: p.committed,
173
- children: P
174
- }) : /* @__PURE__ */ S(m, {
175
- status: k.status,
176
- tone: k.statusTone,
177
- labels: Y.statusBadge
178
- }) })]
179
- }),
180
- /* @__PURE__ */ C("div", {
181
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
182
- children: [/* @__PURE__ */ C("div", {
183
- className: "ttw:flex ttw:flex-col",
184
- children: [/* @__PURE__ */ S("span", {
185
- className: "ttw:text-xs ttw:text-muted-foreground",
186
- children: Y.invoiceDateLabel
187
- }), /* @__PURE__ */ S("span", {
188
- className: "ttw:text-sm ttw:font-medium",
189
- children: k.invoiceDateLabel
190
- })]
191
- }), /* @__PURE__ */ C("div", {
192
- className: "ttw:flex ttw:flex-col",
193
- children: [/* @__PURE__ */ S("span", {
194
- className: "ttw:text-xs ttw:text-muted-foreground",
195
- children: Y.dueDateLabel
196
- }), /* @__PURE__ */ S(h, {
197
- className: "ttw:text-sm ttw:font-medium",
198
- value: k.dueDateLabel,
199
- tone: k.dueDateTone,
200
- labels: Y.dueDate
201
- })]
202
- })]
203
- }),
204
- k.rejection ? /* @__PURE__ */ S(f, { ...k.rejection }) : null,
205
- M ? /* @__PURE__ */ S(u, {
206
- variant: "caption",
207
- color: "muted",
208
- children: Y.approvalOverrideNotice
209
- }) : N ? /* @__PURE__ */ S(u, {
210
- variant: "caption",
211
- color: "muted",
212
- children: N
213
- }) : null,
214
- A.row.length ? /* @__PURE__ */ S("div", {
215
- className: "ttw:flex ttw:items-center ttw:gap-2",
216
- children: /* @__PURE__ */ S(v, { actions: A.row })
217
- }) : null
218
- ]
219
- }),
220
- /* @__PURE__ */ S(r, {
221
- defaultOpen: !0,
222
- heading: k.paidOnLabel ? Y.payToHeadingPaid : Y.payToHeading,
223
- children: /* @__PURE__ */ S(E, { items: k.payToItems })
224
- }),
225
- F?.length || I || L ? /* @__PURE__ */ S(r, {
226
- defaultOpen: !0,
227
- heading: Y.paymentHistoryHeading,
228
- children: I ? /* @__PURE__ */ S("p", {
229
- className: "ttw:text-sm ttw:text-muted-foreground",
230
- children: Y.paymentHistoryErrorDescription
231
- }) : L ? /* @__PURE__ */ S(l, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ S(g, { records: F ?? [] })
232
- }) : null,
233
- /* @__PURE__ */ S(r, {
234
- defaultOpen: !0,
235
- heading: Y.invoiceDetailsHeading,
236
- children: /* @__PURE__ */ C("div", {
237
- className: "ttw:flex ttw:flex-col ttw:gap-4",
238
- children: [
239
- /* @__PURE__ */ S(E, { items: k.invoiceItems }),
240
- k.lineItems.length ? /* @__PURE__ */ C("table", {
241
- className: "ttw:w-full ttw:text-sm",
242
- children: [/* @__PURE__ */ S("thead", { children: /* @__PURE__ */ C("tr", {
243
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
244
- children: [
245
- /* @__PURE__ */ S("th", {
246
- className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
247
- children: Y.lineItemsHeading
248
- }),
249
- /* @__PURE__ */ S("th", {
250
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
251
- children: Y.lineItemsQuantityHeading
252
- }),
253
- /* @__PURE__ */ S("th", {
254
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
255
- children: Y.lineItemsAmountHeading
256
- })
257
- ]
258
- }) }), /* @__PURE__ */ S("tbody", { children: k.lineItems.map((e) => /* @__PURE__ */ C("tr", {
259
- className: "ttw:border-b ttw:border-border",
260
- children: [
261
- /* @__PURE__ */ C("td", {
262
- className: "ttw:px-3 ttw:py-2",
263
- children: [/* @__PURE__ */ S("span", {
264
- className: "ttw:block",
265
- children: e.description
266
- }), /* @__PURE__ */ S("span", {
267
- className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
268
- children: e.glCodeLabel
269
- })]
270
- }),
271
- /* @__PURE__ */ S("td", {
272
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
273
- children: e.quantityLabel
274
- }),
275
- /* @__PURE__ */ S("td", {
276
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
277
- children: e.amountLabel
278
- })
279
- ]
280
- }, e.id)) })]
281
- }) : null,
282
- /* @__PURE__ */ S("dl", {
283
- className: "ttw:flex ttw:flex-col ttw:gap-1",
284
- children: k.totals.map((e) => /* @__PURE__ */ C("div", {
285
- className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
286
- children: [/* @__PURE__ */ S("dt", {
287
- className: e.emphasis ? "" : "ttw:text-muted-foreground",
288
- children: e.label
289
- }), /* @__PURE__ */ S("dd", { children: e.value })]
290
- }, e.label))
291
- })
292
- ]
293
- })
294
- }),
295
- /* @__PURE__ */ C(r, {
296
- heading: Y.auditHistory.heading,
297
- children: [V ? /* @__PURE__ */ S(u, {
298
- variant: "caption",
299
- color: "muted",
300
- children: Y.auditHistory.namesError
301
- }) : null, /* @__PURE__ */ S(e, {
302
- rows: R ?? [],
303
- isLoading: B,
304
- isError: z,
305
- labels: Y.auditHistory
306
- })]
307
- }),
308
- j ? /* @__PURE__ */ S(d, {
309
- view: j,
310
- labels: Y.approvalPolicy
311
- }) : null
312
- ] }) : null
313
- })]
82
+ })
83
+ ]
314
84
  })
315
85
  });
316
86
  }
317
87
  //#endregion
318
- export { D as BillDetailsSheet, D as default };
88
+ export { g as BillDecisionDialog, g as default };
@@ -1,9 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js
2
- var e = {
3
- title: "Discard unsaved changes?",
4
- description: "Your changes will be lost if you stop editing now.",
5
- keepEditingButton: "Keep editing",
6
- discardButton: "Discard changes"
7
- };
8
- //#endregion
9
- export { e as DISCARD_CHANGES_DIALOG_LABELS_EN };
1
+ import "./index64.js";
2
+ import "./index65.js";