@tesouro/embedded-components-react 0.4.13 → 0.4.15

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 (176) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/lib/monite-sdk.d.ts +204 -468
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +14 -14
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +37 -78
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +98 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +81 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +7 -26
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +16 -61
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +26 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +63 -65
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +2 -6
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +66 -5
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +3 -41
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +28 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +40 -44
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +173 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +45 -47
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +1 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +45 -11
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +4 -8
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +13 -14
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +55 -22
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -66
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +7 -19
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +58 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +15 -11
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +134 -4
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +14 -31
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +4 -5
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +39 -87
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +78 -67
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +78 -48
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +24 -57
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +47 -91
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +119 -33
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +33 -168
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +170 -75
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +75 -21
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +23 -210
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +199 -203
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +198 -89
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +105 -13
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +12 -47
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +23 -6
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +47 -31
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +27 -198
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +198 -30
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +30 -234
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +240 -19
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +19 -347
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +364 -4
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -34
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -167
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +186 -3
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +56 -5
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +2 -44
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +46 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +1 -8
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +6 -9
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +9 -92
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +94 -3
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +3 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +125 -8
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -7
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -69
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -46
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +43 -18
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +20 -28
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +27 -82
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +83 -47
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -250
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +239 -101
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +107 -202
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +209 -3
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +4 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -43
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +6 -113
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +115 -1
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -24
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +25 -0
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +64 -89
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +42 -40
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +52 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +29 -47
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -297
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +52 -2
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +307 -7
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +2 -49
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +9 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -14
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -50
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +18 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +48 -21
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -340
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +23 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +338 -14
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +2 -120
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +16 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +118 -10
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -99
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +12 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +97 -11
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +1 -58
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +12 -1
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +53 -49
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -13
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +52 -179
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -2
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +180 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -41
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +4 -2
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +39 -5
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -92
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +7 -2
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +90 -2
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +2 -16
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +4 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +14 -84
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -287
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +86 -11
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +296 -1
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +11 -6
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +1 -39
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +8 -2
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +37 -37
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +37 -199
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +12 -3
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +199 -15
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -346
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +13 -6
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +345 -6
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +8 -91
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -0
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +93 -2
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -28
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +120 -82
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +28 -2
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +87 -5
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +2 -30
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +7 -2
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +28 -5
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +2 -34
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +7 -2
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +32 -10
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -105
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +12 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +104 -15
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -125
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +17 -2
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +123 -16
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -10
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +15 -167
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +10 -2
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +167 -11
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -108
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +14 -2
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +106 -8
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +2 -52
  167. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index3.js +15 -3
  168. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +63 -65
  169. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +4 -2
  170. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +6 -5
  171. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +1 -1
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +1 -1
  173. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  174. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  175. package/package.json +7 -7
  176. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +0 -127
@@ -1,287 +1,2 @@
1
- import { Badge as e, Button as t, Collapsible as n, CollapsibleContent as r, CollapsibleTrigger as i, Sheet as a, SheetContent as o, SheetDescription as s, SheetHeader as c, SheetTitle as l, Skeleton as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ApprovalPolicyCard as f } from "./index13.js";
3
- import "./index14.js";
4
- import { BillStatusBadge as p } from "./index18.js";
5
- import "./index19.js";
6
- import { DueDateValue as m } from "./index21.js";
7
- import "./index22.js";
8
- import { BillActionButtons as h, NO_BILL_ACTIONS as g } from "./index15.js";
9
- import { BillOverflowMenu as _ } from "./index30.js";
10
- import "./index31.js";
11
- import { BILL_DETAILS_SHEET_LABELS_EN as v } from "./index57.js";
12
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
13
- import { ChevronDownIcon as S, MoveDiagonal2Icon as C, XIcon as w } from "lucide-react";
14
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js
15
- function T({ items: e }) {
16
- return /* @__PURE__ */ b("dl", {
17
- className: "ttw:flex ttw:flex-col",
18
- children: e.map((e) => /* @__PURE__ */ x("div", {
19
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
20
- children: [/* @__PURE__ */ b("dt", {
21
- className: "ttw:text-sm ttw:text-muted-foreground",
22
- children: e.label
23
- }), /* @__PURE__ */ x("dd", {
24
- className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
25
- children: [/* @__PURE__ */ b("span", {
26
- className: "ttw:text-sm ttw:font-medium",
27
- children: e.value
28
- }), e.secondaryValue ? /* @__PURE__ */ b("span", {
29
- className: "ttw:text-sm ttw:text-muted-foreground",
30
- children: e.secondaryValue
31
- }) : null]
32
- })]
33
- }, e.label))
34
- });
35
- }
36
- function E({ heading: e, children: t }) {
37
- return /* @__PURE__ */ x(n, {
38
- defaultOpen: !0,
39
- className: "ttw:flex ttw:flex-col ttw:gap-3",
40
- children: [/* @__PURE__ */ x(i, {
41
- className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
42
- children: [/* @__PURE__ */ b(d, {
43
- variant: "body1",
44
- className: "ttw:font-semibold",
45
- children: e
46
- }), /* @__PURE__ */ b(S, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
47
- }), /* @__PURE__ */ b(r, { children: t })]
48
- });
49
- }
50
- function D({ open: n, onOpenChange: r, details: i, actions: d = g, approvalPolicy: S, isLoading: D, isError: O, notice: k, onClose: A, onExpand: j, testId: M, labels: N }) {
51
- let P = {
52
- ...v,
53
- ...N,
54
- statusBadge: {
55
- ...v.statusBadge,
56
- ...N?.statusBadge
57
- },
58
- approvalPolicy: {
59
- ...v.approvalPolicy,
60
- ...N?.approvalPolicy
61
- },
62
- dueDate: {
63
- ...v.dueDate,
64
- ...N?.dueDate
65
- }
66
- };
67
- return /* @__PURE__ */ b(a, {
68
- open: n,
69
- onOpenChange: (e) => e ? r(e) : A(),
70
- children: /* @__PURE__ */ x(o, {
71
- showCloseButton: !1,
72
- className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
73
- "data-testid": M,
74
- children: [/* @__PURE__ */ x(c, {
75
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
76
- children: [/* @__PURE__ */ x("div", {
77
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
78
- children: [
79
- /* @__PURE__ */ b(l, {
80
- className: D ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
81
- children: O ? P.errorTitle : D ? P.loadingTitle : i?.title
82
- }),
83
- D ? /* @__PURE__ */ x("div", {
84
- "aria-hidden": !0,
85
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
86
- children: [/* @__PURE__ */ b(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ b(u, { className: "ttw:h-4 ttw:w-28" })]
87
- }) : null,
88
- i && !D && !O ? /* @__PURE__ */ b("p", {
89
- className: "ttw:text-sm ttw:text-muted-foreground",
90
- children: i.subtitle
91
- }) : null,
92
- /* @__PURE__ */ b(s, {
93
- className: "ttw:sr-only",
94
- children: P.hiddenDescription
95
- })
96
- ]
97
- }), /* @__PURE__ */ x("div", {
98
- className: "ttw:flex ttw:items-center ttw:gap-1",
99
- children: [
100
- j ? /* @__PURE__ */ b(t, {
101
- type: "button",
102
- variant: "ghost",
103
- size: "icon",
104
- "aria-label": P.expandButton,
105
- onClick: j,
106
- children: /* @__PURE__ */ b(C, { className: "ttw:size-4" })
107
- }) : null,
108
- i && !D && !O ? /* @__PURE__ */ b(_, {
109
- actions: d.menu,
110
- triggerLabel: P.overflowMenuTrigger,
111
- placement: "header"
112
- }) : null,
113
- /* @__PURE__ */ b(t, {
114
- type: "button",
115
- variant: "ghost",
116
- size: "icon",
117
- "aria-label": P.closeButton,
118
- onClick: A,
119
- children: /* @__PURE__ */ b(w, { className: "ttw:size-4" })
120
- })
121
- ]
122
- })]
123
- }), /* @__PURE__ */ b("div", {
124
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
125
- children: O ? /* @__PURE__ */ b("p", {
126
- className: "ttw:text-sm ttw:text-muted-foreground",
127
- children: P.errorDescription
128
- }) : D ? /* @__PURE__ */ x("div", {
129
- className: "ttw:flex ttw:flex-col ttw:gap-6",
130
- children: [/* @__PURE__ */ b(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ x("div", {
131
- className: "ttw:flex ttw:flex-col ttw:gap-2",
132
- children: [
133
- /* @__PURE__ */ b(u, { className: "ttw:h-4 ttw:w-40" }),
134
- /* @__PURE__ */ b(u, { className: "ttw:h-9 ttw:w-full" }),
135
- /* @__PURE__ */ b(u, { className: "ttw:h-9 ttw:w-full" })
136
- ]
137
- })]
138
- }) : i ? /* @__PURE__ */ x(y, { children: [
139
- k,
140
- /* @__PURE__ */ x("section", {
141
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
142
- children: [
143
- /* @__PURE__ */ x("div", {
144
- className: "ttw:flex ttw:flex-col ttw:gap-2",
145
- children: [i.paidOnLabel ? /* @__PURE__ */ x("div", {
146
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
147
- children: [/* @__PURE__ */ x("div", {
148
- className: "ttw:flex ttw:flex-col",
149
- children: [/* @__PURE__ */ b("span", {
150
- className: "ttw:text-sm ttw:text-muted-foreground",
151
- children: P.amountDueHeading
152
- }), /* @__PURE__ */ b("span", {
153
- className: "ttw:text-3xl ttw:font-semibold",
154
- children: i.amountDueLabel
155
- })]
156
- }), /* @__PURE__ */ x("div", {
157
- className: "ttw:flex ttw:flex-col",
158
- children: [/* @__PURE__ */ b("span", {
159
- className: "ttw:text-sm ttw:text-muted-foreground",
160
- children: P.amountPaidHeading
161
- }), /* @__PURE__ */ b("span", {
162
- className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
163
- children: i.amountPaidLabel
164
- })]
165
- })]
166
- }) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("span", {
167
- className: "ttw:text-sm ttw:text-muted-foreground",
168
- children: P.amountDueHeading
169
- }), /* @__PURE__ */ b("span", {
170
- className: "ttw:text-3xl ttw:font-semibold",
171
- children: i.amountDueLabel
172
- })] }), /* @__PURE__ */ b("div", { children: i.paidOnLabel ? /* @__PURE__ */ b(e, {
173
- variant: "outline",
174
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
175
- children: i.paidOnLabel
176
- }) : /* @__PURE__ */ b(p, {
177
- status: i.status,
178
- tone: i.statusTone,
179
- labels: P.statusBadge
180
- }) })]
181
- }),
182
- /* @__PURE__ */ x("div", {
183
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
184
- children: [/* @__PURE__ */ x("div", {
185
- className: "ttw:flex ttw:flex-col",
186
- children: [/* @__PURE__ */ b("span", {
187
- className: "ttw:text-xs ttw:text-muted-foreground",
188
- children: P.invoiceDateLabel
189
- }), /* @__PURE__ */ b("span", {
190
- className: "ttw:text-sm ttw:font-medium",
191
- children: i.invoiceDateLabel
192
- })]
193
- }), /* @__PURE__ */ x("div", {
194
- className: "ttw:flex ttw:flex-col",
195
- children: [/* @__PURE__ */ b("span", {
196
- className: "ttw:text-xs ttw:text-muted-foreground",
197
- children: P.dueDateLabel
198
- }), /* @__PURE__ */ b(m, {
199
- className: "ttw:text-sm ttw:font-medium",
200
- value: i.dueDateLabel,
201
- tone: i.dueDateTone,
202
- labels: P.dueDate
203
- })]
204
- })]
205
- }),
206
- d.row.length ? /* @__PURE__ */ b("div", {
207
- className: "ttw:flex ttw:items-center ttw:gap-2",
208
- children: /* @__PURE__ */ b(h, { actions: d.row })
209
- }) : null
210
- ]
211
- }),
212
- /* @__PURE__ */ b(E, {
213
- heading: i.paidOnLabel ? P.payToHeadingPaid : P.payToHeading,
214
- children: /* @__PURE__ */ b(T, { items: i.payToItems })
215
- }),
216
- /* @__PURE__ */ b(E, {
217
- heading: P.invoiceDetailsHeading,
218
- children: /* @__PURE__ */ x("div", {
219
- className: "ttw:flex ttw:flex-col ttw:gap-4",
220
- children: [
221
- /* @__PURE__ */ b(T, { items: i.invoiceItems }),
222
- i.lineItems.length ? /* @__PURE__ */ x("table", {
223
- className: "ttw:w-full ttw:text-sm",
224
- children: [/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ x("tr", {
225
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
226
- children: [
227
- /* @__PURE__ */ b("th", {
228
- className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
229
- children: P.lineItemsHeading
230
- }),
231
- /* @__PURE__ */ b("th", {
232
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
233
- children: P.lineItemsQuantityHeading
234
- }),
235
- /* @__PURE__ */ b("th", {
236
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
237
- children: P.lineItemsAmountHeading
238
- })
239
- ]
240
- }) }), /* @__PURE__ */ b("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ x("tr", {
241
- className: "ttw:border-b ttw:border-border",
242
- children: [
243
- /* @__PURE__ */ x("td", {
244
- className: "ttw:px-3 ttw:py-2",
245
- children: [/* @__PURE__ */ b("span", {
246
- className: "ttw:block",
247
- children: e.description
248
- }), /* @__PURE__ */ b("span", {
249
- className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
250
- children: e.glCodeLabel
251
- })]
252
- }),
253
- /* @__PURE__ */ b("td", {
254
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
255
- children: e.quantityLabel
256
- }),
257
- /* @__PURE__ */ b("td", {
258
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
259
- children: e.amountLabel
260
- })
261
- ]
262
- }, e.id)) })]
263
- }) : null,
264
- /* @__PURE__ */ b("dl", {
265
- className: "ttw:flex ttw:flex-col ttw:gap-1",
266
- children: i.totals.map((e) => /* @__PURE__ */ x("div", {
267
- 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",
268
- children: [/* @__PURE__ */ b("dt", {
269
- className: e.emphasis ? "" : "ttw:text-muted-foreground",
270
- children: e.label
271
- }), /* @__PURE__ */ b("dd", { children: e.value })]
272
- }, e.label))
273
- })
274
- ]
275
- })
276
- }),
277
- S ? /* @__PURE__ */ b(f, {
278
- view: S,
279
- labels: P.approvalPolicy
280
- }) : null
281
- ] }) : null
282
- })]
283
- })
284
- });
285
- }
286
- //#endregion
287
- export { D as BillDetailsSheet, D as default };
1
+ import "./index56.js";
2
+ import "./index57.js";
@@ -1,13 +1,88 @@
1
- import { Badge as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BADGE_TONE_CLASS_NAME as t } from "./index17.js";
3
- import { jsx as n } from "react/jsx-runtime";
1
+ import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
+ import "./index8.js";
4
+ import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
5
+ import "./index14.js";
6
+ import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index16.js";
7
+ import "./index19.js";
8
+ import { DUE_DATE_VALUE_LABELS_EN as i } from "./index20.js";
9
+ import "./index22.js";
10
+ import { MISSING_VALUE_LABELS_EN as a } from "./index56.js";
11
+ import "./index58.js";
4
12
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js
5
- function r({ label: r, tone: i = "warning" }) {
6
- return /* @__PURE__ */ n(e, {
7
- variant: "outline",
8
- className: t[i],
9
- children: r
10
- });
11
- }
13
+ var o = {
14
+ loadingTitle: "Loading bill…",
15
+ hiddenDescription: "Bill details",
16
+ errorTitle: "Couldn't load this bill",
17
+ errorDescription: "Something went wrong. Try again.",
18
+ amountDueHeading: "Amount due",
19
+ amountPaidHeading: "Amount paid",
20
+ invoiceDateLabel: "Invoice date",
21
+ dueDateLabel: "Due date",
22
+ payToHeading: "Pay to",
23
+ payToHeadingPaid: "Paid to",
24
+ paymentHistoryHeading: "Payment history",
25
+ paymentHistoryErrorDescription: "Couldn't load payment history.",
26
+ invoiceDetailsHeading: "Invoice details",
27
+ lineItemsHeading: "Line items",
28
+ lineItemsQuantityHeading: "Qty/Price",
29
+ lineItemsAmountHeading: "Amount",
30
+ payButton: "Pay",
31
+ markAsPaidButton: "Mark as paid",
32
+ rejectButton: "Reject",
33
+ approveButton: "Approve",
34
+ cancelButton: "Cancel bill",
35
+ cancelScheduledPaymentButton: "Cancel scheduled payment",
36
+ reopenButton: "Reopen bill",
37
+ forceApproveButton: "Approve",
38
+ forceRejectButton: "Reject",
39
+ policyOverridesGroup: "Policy overrides",
40
+ overflowMenuTrigger: "Bill actions",
41
+ expandButton: "Open full screen",
42
+ closeButton: "Close",
43
+ statusBadge: r,
44
+ approvalPolicy: n,
45
+ dueDate: i
46
+ }, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
47
+ ...t,
48
+ dropzone: {
49
+ ...t.dropzone,
50
+ fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
51
+ }
52
+ }, l = {
53
+ createButton: "Add bill",
54
+ columnVendor: "Vendor",
55
+ columnAttachment: "Attachment",
56
+ columnIssueDate: "Issue date",
57
+ columnDueDate: "Due date",
58
+ columnScheduledDate: "Scheduled date",
59
+ columnPaidDate: "Paid date",
60
+ columnAmountDue: "Amount due",
61
+ columnAmountScheduled: "Amount scheduled",
62
+ columnAmountPaid: "Amount paid",
63
+ columnTotalAmount: "Total amount",
64
+ columnStatus: "Status",
65
+ columnAddedOn: "Added on",
66
+ columnActions: "Actions",
67
+ openRow: (e) => `View bill — ${e}`,
68
+ duplicateBillsReviewButton: "Review duplicates",
69
+ searchPlaceholder: "Search by vendor name",
70
+ searchLabel: "Search bills by vendor name",
71
+ filterTabsLabel: "Filter bills by status",
72
+ filteredEmptyTitle: "No bills match",
73
+ filteredEmptyDescription: "Try a different search or status filter.",
74
+ errorTitle: "Couldn't load bills",
75
+ errorDescription: "Something went wrong. Try again.",
76
+ errorRetry: "Retry",
77
+ statusBadge: r,
78
+ addBill: c,
79
+ sortableHeader: {
80
+ sortedAscending: e.sortedAscending,
81
+ sortedDescending: e.sortedDescending,
82
+ notSorted: e.notSorted
83
+ },
84
+ missingValue: a,
85
+ dueDate: i
86
+ };
12
87
  //#endregion
13
- export { r as BillDuplicateBadge, r as default };
88
+ export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };
@@ -1 +1,296 @@
1
- import "./index59.js";
1
+ import { Badge as e, Button as t, Collapsible as n, CollapsibleContent as r, CollapsibleTrigger as i, Sheet as a, SheetContent as o, SheetDescription as s, SheetHeader as c, SheetTitle as l, Skeleton as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ApprovalPolicyCard as f } from "./index13.js";
3
+ import "./index14.js";
4
+ import { BillStatusBadge as p } from "./index18.js";
5
+ import "./index19.js";
6
+ import { DueDateValue as m } from "./index21.js";
7
+ import "./index22.js";
8
+ import { PaymentHistoryList as h } from "./index23.js";
9
+ import "./index24.js";
10
+ import { BillActionButtons as g, NO_BILL_ACTIONS as _ } from "./index15.js";
11
+ import { BillOverflowMenu as v } from "./index32.js";
12
+ import "./index33.js";
13
+ import { BILL_DETAILS_SHEET_LABELS_EN as y } from "./index59.js";
14
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
15
+ import { ChevronDownIcon as C, MoveDiagonal2Icon as w, XIcon as T } from "lucide-react";
16
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js
17
+ function E({ items: e }) {
18
+ return /* @__PURE__ */ x("dl", {
19
+ className: "ttw:flex ttw:flex-col",
20
+ children: e.map((e) => /* @__PURE__ */ S("div", {
21
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
22
+ children: [/* @__PURE__ */ x("dt", {
23
+ className: "ttw:text-sm ttw:text-muted-foreground",
24
+ children: e.label
25
+ }), /* @__PURE__ */ S("dd", {
26
+ className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
27
+ children: [/* @__PURE__ */ x("span", {
28
+ className: "ttw:text-sm ttw:font-medium",
29
+ children: e.value
30
+ }), e.secondaryValue ? /* @__PURE__ */ x("span", {
31
+ className: "ttw:text-sm ttw:text-muted-foreground",
32
+ children: e.secondaryValue
33
+ }) : null]
34
+ })]
35
+ }, e.label))
36
+ });
37
+ }
38
+ function D({ heading: e, children: t }) {
39
+ return /* @__PURE__ */ S(n, {
40
+ defaultOpen: !0,
41
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
42
+ children: [/* @__PURE__ */ S(i, {
43
+ className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
44
+ children: [/* @__PURE__ */ x(d, {
45
+ variant: "body1",
46
+ className: "ttw:font-semibold",
47
+ children: e
48
+ }), /* @__PURE__ */ x(C, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
49
+ }), /* @__PURE__ */ x(r, { children: t })]
50
+ });
51
+ }
52
+ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolicy: C, paymentHistory: O, paymentHistoryError: k, paymentHistoryLoading: A, isLoading: j, isError: M, notice: N, onClose: P, onExpand: F, testId: I, labels: L }) {
53
+ let R = {
54
+ ...y,
55
+ ...L,
56
+ statusBadge: {
57
+ ...y.statusBadge,
58
+ ...L?.statusBadge
59
+ },
60
+ approvalPolicy: {
61
+ ...y.approvalPolicy,
62
+ ...L?.approvalPolicy
63
+ },
64
+ dueDate: {
65
+ ...y.dueDate,
66
+ ...L?.dueDate
67
+ }
68
+ };
69
+ return /* @__PURE__ */ x(a, {
70
+ open: n,
71
+ onOpenChange: (e) => e ? r(e) : P(),
72
+ children: /* @__PURE__ */ S(o, {
73
+ showCloseButton: !1,
74
+ className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
75
+ "data-testid": I,
76
+ children: [/* @__PURE__ */ S(c, {
77
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
78
+ children: [/* @__PURE__ */ S("div", {
79
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
80
+ children: [
81
+ /* @__PURE__ */ x(l, {
82
+ className: j ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
83
+ children: M ? R.errorTitle : j ? R.loadingTitle : i?.title
84
+ }),
85
+ j ? /* @__PURE__ */ S("div", {
86
+ "aria-hidden": !0,
87
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
88
+ children: [/* @__PURE__ */ x(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ x(u, { className: "ttw:h-4 ttw:w-28" })]
89
+ }) : null,
90
+ i && !j && !M ? /* @__PURE__ */ x("p", {
91
+ className: "ttw:text-sm ttw:text-muted-foreground",
92
+ children: i.subtitle
93
+ }) : null,
94
+ /* @__PURE__ */ x(s, {
95
+ className: "ttw:sr-only",
96
+ children: R.hiddenDescription
97
+ })
98
+ ]
99
+ }), /* @__PURE__ */ S("div", {
100
+ className: "ttw:flex ttw:items-center ttw:gap-1",
101
+ children: [
102
+ F ? /* @__PURE__ */ x(t, {
103
+ type: "button",
104
+ variant: "ghost",
105
+ size: "icon",
106
+ "aria-label": R.expandButton,
107
+ onClick: F,
108
+ children: /* @__PURE__ */ x(w, { className: "ttw:size-4" })
109
+ }) : null,
110
+ i && !j && !M ? /* @__PURE__ */ x(v, {
111
+ actions: d.menu,
112
+ triggerLabel: R.overflowMenuTrigger,
113
+ placement: "header"
114
+ }) : null,
115
+ /* @__PURE__ */ x(t, {
116
+ type: "button",
117
+ variant: "ghost",
118
+ size: "icon",
119
+ "aria-label": R.closeButton,
120
+ onClick: P,
121
+ children: /* @__PURE__ */ x(T, { className: "ttw:size-4" })
122
+ })
123
+ ]
124
+ })]
125
+ }), /* @__PURE__ */ x("div", {
126
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
127
+ children: M ? /* @__PURE__ */ x("p", {
128
+ className: "ttw:text-sm ttw:text-muted-foreground",
129
+ children: R.errorDescription
130
+ }) : j ? /* @__PURE__ */ S("div", {
131
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
132
+ children: [/* @__PURE__ */ x(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ S("div", {
133
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
134
+ children: [
135
+ /* @__PURE__ */ x(u, { className: "ttw:h-4 ttw:w-40" }),
136
+ /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }),
137
+ /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" })
138
+ ]
139
+ })]
140
+ }) : i ? /* @__PURE__ */ S(b, { children: [
141
+ N,
142
+ /* @__PURE__ */ S("section", {
143
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
144
+ children: [
145
+ /* @__PURE__ */ S("div", {
146
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
147
+ children: [i.paidOnLabel ? /* @__PURE__ */ S("div", {
148
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
149
+ children: [/* @__PURE__ */ S("div", {
150
+ className: "ttw:flex ttw:flex-col",
151
+ children: [/* @__PURE__ */ x("span", {
152
+ className: "ttw:text-sm ttw:text-muted-foreground",
153
+ children: R.amountDueHeading
154
+ }), /* @__PURE__ */ x("span", {
155
+ className: "ttw:text-3xl ttw:font-semibold",
156
+ children: i.amountDueLabel
157
+ })]
158
+ }), /* @__PURE__ */ S("div", {
159
+ className: "ttw:flex ttw:flex-col",
160
+ children: [/* @__PURE__ */ x("span", {
161
+ className: "ttw:text-sm ttw:text-muted-foreground",
162
+ children: R.amountPaidHeading
163
+ }), /* @__PURE__ */ x("span", {
164
+ className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
165
+ children: i.amountPaidLabel
166
+ })]
167
+ })]
168
+ }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", {
169
+ className: "ttw:text-sm ttw:text-muted-foreground",
170
+ children: R.amountDueHeading
171
+ }), /* @__PURE__ */ x("span", {
172
+ className: "ttw:text-3xl ttw:font-semibold",
173
+ children: i.amountDueLabel
174
+ })] }), /* @__PURE__ */ x("div", { children: i.paidOnLabel ? /* @__PURE__ */ x(e, {
175
+ variant: "outline",
176
+ className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
177
+ children: i.paidOnLabel
178
+ }) : /* @__PURE__ */ x(p, {
179
+ status: i.status,
180
+ tone: i.statusTone,
181
+ labels: R.statusBadge
182
+ }) })]
183
+ }),
184
+ /* @__PURE__ */ S("div", {
185
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
186
+ children: [/* @__PURE__ */ S("div", {
187
+ className: "ttw:flex ttw:flex-col",
188
+ children: [/* @__PURE__ */ x("span", {
189
+ className: "ttw:text-xs ttw:text-muted-foreground",
190
+ children: R.invoiceDateLabel
191
+ }), /* @__PURE__ */ x("span", {
192
+ className: "ttw:text-sm ttw:font-medium",
193
+ children: i.invoiceDateLabel
194
+ })]
195
+ }), /* @__PURE__ */ S("div", {
196
+ className: "ttw:flex ttw:flex-col",
197
+ children: [/* @__PURE__ */ x("span", {
198
+ className: "ttw:text-xs ttw:text-muted-foreground",
199
+ children: R.dueDateLabel
200
+ }), /* @__PURE__ */ x(m, {
201
+ className: "ttw:text-sm ttw:font-medium",
202
+ value: i.dueDateLabel,
203
+ tone: i.dueDateTone,
204
+ labels: R.dueDate
205
+ })]
206
+ })]
207
+ }),
208
+ d.row.length ? /* @__PURE__ */ x("div", {
209
+ className: "ttw:flex ttw:items-center ttw:gap-2",
210
+ children: /* @__PURE__ */ x(g, { actions: d.row })
211
+ }) : null
212
+ ]
213
+ }),
214
+ /* @__PURE__ */ x(D, {
215
+ heading: i.paidOnLabel ? R.payToHeadingPaid : R.payToHeading,
216
+ children: /* @__PURE__ */ x(E, { items: i.payToItems })
217
+ }),
218
+ O?.length || k || A ? /* @__PURE__ */ x(D, {
219
+ heading: R.paymentHistoryHeading,
220
+ children: k ? /* @__PURE__ */ x("p", {
221
+ className: "ttw:text-sm ttw:text-muted-foreground",
222
+ children: R.paymentHistoryErrorDescription
223
+ }) : A ? /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ x(h, { records: O ?? [] })
224
+ }) : null,
225
+ /* @__PURE__ */ x(D, {
226
+ heading: R.invoiceDetailsHeading,
227
+ children: /* @__PURE__ */ S("div", {
228
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
229
+ children: [
230
+ /* @__PURE__ */ x(E, { items: i.invoiceItems }),
231
+ i.lineItems.length ? /* @__PURE__ */ S("table", {
232
+ className: "ttw:w-full ttw:text-sm",
233
+ children: [/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ S("tr", {
234
+ className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
235
+ children: [
236
+ /* @__PURE__ */ x("th", {
237
+ className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
238
+ children: R.lineItemsHeading
239
+ }),
240
+ /* @__PURE__ */ x("th", {
241
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
242
+ children: R.lineItemsQuantityHeading
243
+ }),
244
+ /* @__PURE__ */ x("th", {
245
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
246
+ children: R.lineItemsAmountHeading
247
+ })
248
+ ]
249
+ }) }), /* @__PURE__ */ x("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ S("tr", {
250
+ className: "ttw:border-b ttw:border-border",
251
+ children: [
252
+ /* @__PURE__ */ S("td", {
253
+ className: "ttw:px-3 ttw:py-2",
254
+ children: [/* @__PURE__ */ x("span", {
255
+ className: "ttw:block",
256
+ children: e.description
257
+ }), /* @__PURE__ */ x("span", {
258
+ className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
259
+ children: e.glCodeLabel
260
+ })]
261
+ }),
262
+ /* @__PURE__ */ x("td", {
263
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
264
+ children: e.quantityLabel
265
+ }),
266
+ /* @__PURE__ */ x("td", {
267
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
268
+ children: e.amountLabel
269
+ })
270
+ ]
271
+ }, e.id)) })]
272
+ }) : null,
273
+ /* @__PURE__ */ x("dl", {
274
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
275
+ children: i.totals.map((e) => /* @__PURE__ */ S("div", {
276
+ 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",
277
+ children: [/* @__PURE__ */ x("dt", {
278
+ className: e.emphasis ? "" : "ttw:text-muted-foreground",
279
+ children: e.label
280
+ }), /* @__PURE__ */ x("dd", { children: e.value })]
281
+ }, e.label))
282
+ })
283
+ ]
284
+ })
285
+ }),
286
+ C ? /* @__PURE__ */ x(f, {
287
+ view: C,
288
+ labels: R.approvalPolicy
289
+ }) : null
290
+ ] }) : null
291
+ })]
292
+ })
293
+ });
294
+ }
295
+ //#endregion
296
+ export { O as BillDetailsSheet, O as default };