@tesouro/embedded-components-react 0.4.14 → 0.4.16

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 (125) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -4
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +47 -21
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +20 -77
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +75 -24
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +36 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +64 -48
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +10 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +141 -118
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +93 -93
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +83 -67
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +235 -218
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +5 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +9 -6
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +17 -17
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -39
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -10
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +8 -50
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +52 -2
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -0
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +26 -49
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +19 -306
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +154 -2
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +2 -9
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +60 -45
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +251 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -18
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +7 -48
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +49 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -23
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +15 -337
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +50 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -16
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +21 -118
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +340 -2
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +2 -12
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +10 -97
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +99 -2
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +11 -57
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +58 -1
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -54
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +52 -10
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +10 -179
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +181 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -4
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -39
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +41 -2
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -7
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +5 -90
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +92 -2
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -4
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -14
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +16 -2
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -87
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +83 -291
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +292 -9
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +13 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +1 -8
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +6 -37
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +39 -2
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -39
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +36 -9
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -199
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +201 -3
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +3 -17
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +15 -345
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +345 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +6 -4
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +6 -91
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +93 -0
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -127
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +124 -25
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +26 -87
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +89 -2
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -7
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -28
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +30 -2
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -7
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +5 -32
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +34 -2
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -12
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +10 -104
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +105 -1
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +2 -17
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +15 -123
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +125 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -18
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +14 -6
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +7 -167
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +170 -2
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -14
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +11 -105
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +108 -2
  107. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index3.js +15 -3
  108. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +63 -65
  109. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +4 -2
  110. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +6 -5
  111. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +1 -1
  112. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +8 -8
  113. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +4 -4
  114. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
  115. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +19 -19
  116. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +39 -33
  117. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +15 -15
  118. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +9 -9
  119. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +37 -37
  121. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +15 -15
  122. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  124. package/package.json +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +0 -2
@@ -1,296 +1,88 @@
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";
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";
3
5
  import "./index14.js";
4
- import { BillStatusBadge as p } from "./index18.js";
6
+ import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index16.js";
5
7
  import "./index19.js";
6
- import { DueDateValue as m } from "./index21.js";
8
+ import { DUE_DATE_VALUE_LABELS_EN as i } from "./index20.js";
7
9
  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";
10
+ import { MISSING_VALUE_LABELS_EN as a } from "./index57.js";
11
+ import "./index59.js";
16
12
  //#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
- }
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
+ };
295
87
  //#endregion
296
- export { O as BillDetailsSheet, O as default };
88
+ export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };