@tesouro/embedded-components-react 0.5.141 → 0.5.144

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,9 +1,416 @@
1
+ import { Alert as e, AlertTitle as t, Button as n, DataTable as r, DataTableSortableHeader as i, Input as a, Skeleton as ee, Tabs as o, TabsContent as s, TabsList as te, TabsTrigger as ne, Tooltip as c, TooltipContent as l, TooltipProvider as u, TooltipTrigger as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EmptyState as f } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
+ import { ErrorState as re } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
+ import "../../../shared/ui/dist/index.js";
5
+ import { getAcceptedBillUploadFiles as ie } from "./index3.js";
6
+ import "./index5.js";
7
+ import { AddBillPanel as p } from "./index7.js";
8
+ import "./index8.js";
9
+ import { BillStatusBadge as ae } from "./index21.js";
10
+ import "./index22.js";
11
+ import { DueDateValue as oe } from "./index24.js";
12
+ import "./index25.js";
13
+ import { MissingValue as m } from "./index33.js";
14
+ import "./index34.js";
15
+ import { NoValue as h } from "./index36.js";
16
+ import "./index37.js";
17
+ import { BILLS_SCREEN_LABELS_EN as g, BILLS_SCREEN_UPLOAD_ACCEPT as _ } from "./index38.js";
18
+ import { DateDisclosure as se } from "./index16.js";
19
+ import { BillsFilterBar as ce } from "./index81.js";
20
+ import "./index82.js";
21
+ import { BillColumn as v } from "./index83.js";
22
+ import { useMemo as y, useState as le } from "react";
23
+ import { Fragment as ue, jsx as b, jsxs as x } from "react/jsx-runtime";
24
+ import { PaperclipIcon as de, PlusIcon as fe, SearchIcon as pe, SettingsIcon as me, UploadIcon as he } from "lucide-react";
1
25
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js
2
- var e = {
3
- uploading: "ttw:text-muted-foreground",
4
- ready: "ttw:text-emerald-600",
5
- duplicate: "ttw:text-orange-600",
6
- failed: "ttw:text-destructive"
26
+ var ge = [
27
+ 10,
28
+ 25,
29
+ 50,
30
+ 100
31
+ ], _e = 240, ve = {
32
+ default: "",
33
+ warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
34
+ }, S = {
35
+ default: "",
36
+ warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
7
37
  };
38
+ function ye(e, t) {
39
+ return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
40
+ }
41
+ var C = 40, be = [
42
+ v.Vendor,
43
+ v.Attachment,
44
+ v.IssueDate,
45
+ v.DueDate,
46
+ v.ScheduledDate,
47
+ v.PaidDate,
48
+ v.Status,
49
+ v.AmountDue,
50
+ v.AmountScheduled,
51
+ v.AmountPaid,
52
+ v.TotalAmount,
53
+ v.AddedOn
54
+ ], w = [
55
+ v.Vendor,
56
+ v.Attachment,
57
+ v.DueDate,
58
+ v.Status,
59
+ v.AmountDue,
60
+ v.AddedOn
61
+ ];
62
+ function T({ rows: T, isLoading: E, isError: D, sorting: xe, onSortingChange: Se, pageSize: Ce, onPageSizeChange: we, pageSizeOptions: Te = ge, pageInfo: Ee, hasNextPage: De, hasPrevPage: Oe, onNextPage: ke, onPrevPage: Ae, filterTabs: O, selectedFilterTabId: k, onFilterTabChange: je, searchValue: Me, onSearchChange: Ne, filters: A, visibleColumns: j = w, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: Pe, emptyState: P, onCreateClick: F, onSettingsClick: I, onRetry: L, onFilesSelected: R, maxFiles: z, onEnterManually: B, uploadStatus: V, uploadErrorMessage: H, emailAddress: U, onCopyEmail: W, labels: G, duplicateWarning: K, onReviewDuplicates: q }) {
63
+ let J = y(() => ({
64
+ ...g,
65
+ ...G,
66
+ statusBadge: {
67
+ ...g.statusBadge,
68
+ ...G?.statusBadge
69
+ },
70
+ addBill: {
71
+ ...g.addBill,
72
+ ...G?.addBill,
73
+ dropzone: {
74
+ ...g.addBill.dropzone,
75
+ ...G?.addBill?.dropzone
76
+ }
77
+ },
78
+ sortableHeader: {
79
+ ...g.sortableHeader,
80
+ ...G?.sortableHeader
81
+ },
82
+ missingValue: {
83
+ ...g.missingValue,
84
+ ...G?.missingValue
85
+ },
86
+ noValue: {
87
+ ...g.noValue,
88
+ ...G?.noValue
89
+ },
90
+ dueDate: {
91
+ ...g.dueDate,
92
+ ...G?.dueDate
93
+ }
94
+ }), [G]), [Fe, Y] = le(!1), X = !!R, Z = (e) => Array.from(e.dataTransfer.types).includes("Files"), Ie = (e) => {
95
+ X && Z(e) && (e.preventDefault(), Y(!0));
96
+ }, Le = (e) => {
97
+ X && Z(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
98
+ }, Re = (e) => {
99
+ !e.currentTarget.contains(e.relatedTarget) && X && Y(!1);
100
+ }, ze = (e) => {
101
+ if (!X) return;
102
+ e.preventDefault(), Y(!1);
103
+ let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = ie(t, _, z !== 1);
104
+ n.length && R?.(n);
105
+ }, Q = y(() => {
106
+ let e = (e) => function({ column: t }) {
107
+ return /* @__PURE__ */ b(i, {
108
+ column: t,
109
+ title: e,
110
+ labels: J.sortableHeader
111
+ });
112
+ }, t = (e, t, n = /* @__PURE__ */ b(m, { labels: J.missingValue }), r) => function({ row: i }) {
113
+ let a = r && i.original[r] ? /* @__PURE__ */ b(m, { labels: J.missingValue }) : n;
114
+ return /* @__PURE__ */ b("span", {
115
+ className: "ttw:whitespace-nowrap",
116
+ "data-testid": M?.[t],
117
+ children: i.original[e] || a
118
+ });
119
+ }, n = function({ row: e }) {
120
+ return /* @__PURE__ */ b("span", {
121
+ className: "ttw:whitespace-nowrap",
122
+ "data-testid": M?.[v.DueDate],
123
+ children: /* @__PURE__ */ b(oe, {
124
+ value: e.original.dueDateLabel || /* @__PURE__ */ b(m, { labels: J.missingValue }),
125
+ tone: e.original.dueDateTone,
126
+ labels: J.dueDate
127
+ })
128
+ });
129
+ }, r = (e, t, n = /* @__PURE__ */ b(m, { labels: J.missingValue }), r) => function({ row: i }) {
130
+ let a = r && i.original[r] ? /* @__PURE__ */ b(m, { labels: J.missingValue }) : n;
131
+ return /* @__PURE__ */ b("div", {
132
+ className: "ttw:text-right ttw:whitespace-nowrap",
133
+ "data-testid": M?.[t],
134
+ children: i.original[e] || a
135
+ });
136
+ }, a = /* @__PURE__ */ b(h, { labels: J.noValue });
137
+ function o({ row: e }) {
138
+ let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ b(m, { labels: J.missingValue }) : a, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
139
+ return /* @__PURE__ */ b("span", {
140
+ className: "ttw:whitespace-nowrap",
141
+ "data-testid": M?.[v.ScheduledDate],
142
+ children: n && r ? /* @__PURE__ */ b(se, {
143
+ date: r,
144
+ children: n
145
+ }) : n || t
146
+ });
147
+ }
148
+ let s = (e) => function() {
149
+ return /* @__PURE__ */ b("div", {
150
+ className: "ttw:text-right",
151
+ children: e
152
+ });
153
+ };
154
+ return {
155
+ [v.Vendor]: {
156
+ accessorKey: "vendorLabel",
157
+ enableSorting: !0,
158
+ minSize: _e,
159
+ header: e(J.columnVendor),
160
+ cell: ({ row: e }) => {
161
+ let t = e.original.rowNote ? /* @__PURE__ */ b("span", {
162
+ className: "ttw:sr-only",
163
+ children: ` ${e.original.rowNote}`
164
+ }) : null;
165
+ return !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ x("div", {
166
+ className: S[e.original.rowTone ?? "default"],
167
+ "data-testid": M?.[v.Vendor],
168
+ children: [/* @__PURE__ */ b(ee, {
169
+ className: "ttw:h-4 ttw:w-32",
170
+ "aria-hidden": !0
171
+ }), t]
172
+ }) : /* @__PURE__ */ x("span", {
173
+ className: S[e.original.rowTone ?? "default"],
174
+ "data-testid": M?.[v.Vendor],
175
+ children: [e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ b(h, { labels: { none: J.vendorUnavailable } }) : /* @__PURE__ */ b(m, { labels: J.missingValue })), t]
176
+ });
177
+ }
178
+ },
179
+ [v.Attachment]: {
180
+ accessorKey: "attachment",
181
+ enableSorting: !1,
182
+ size: C,
183
+ minSize: C,
184
+ header: () => /* @__PURE__ */ b("span", {
185
+ className: "ttw:sr-only",
186
+ children: J.columnAttachment
187
+ }),
188
+ cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ b("div", {
189
+ className: "ttw:flex ttw:justify-center",
190
+ "data-testid": M?.[v.Attachment],
191
+ children: /* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ b(d, {
192
+ type: "button",
193
+ className: "ttw:inline-flex ttw:cursor-default",
194
+ "aria-label": e.original.attachment.label,
195
+ onClick: (e) => e.stopPropagation(),
196
+ children: /* @__PURE__ */ b(de, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
197
+ }), /* @__PURE__ */ b(l, { children: e.original.attachment.label })] }) })
198
+ }) : null
199
+ },
200
+ [v.IssueDate]: {
201
+ accessorKey: "issueDateLabel",
202
+ enableSorting: !0,
203
+ header: e(J.columnIssueDate),
204
+ cell: t("issueDateLabel", v.IssueDate)
205
+ },
206
+ [v.DueDate]: {
207
+ accessorKey: "dueDateLabel",
208
+ enableSorting: !0,
209
+ header: e(J.columnDueDate),
210
+ cell: n
211
+ },
212
+ [v.ScheduledDate]: {
213
+ accessorKey: "scheduledDateLabel",
214
+ enableSorting: !0,
215
+ header: e(J.columnScheduledDate),
216
+ cell: o
217
+ },
218
+ [v.PaidDate]: {
219
+ accessorKey: "paidDateLabel",
220
+ enableSorting: !1,
221
+ header: J.columnPaidDate,
222
+ cell: t("paidDateLabel", v.PaidDate)
223
+ },
224
+ [v.Status]: {
225
+ accessorKey: "status",
226
+ enableSorting: !1,
227
+ header: J.columnStatus,
228
+ cell: ({ row: e }) => /* @__PURE__ */ b("div", {
229
+ className: "ttw:flex ttw:items-center ttw:gap-1",
230
+ "data-testid": M?.[v.Status],
231
+ children: /* @__PURE__ */ b(ae, {
232
+ status: e.original.status,
233
+ tone: e.original.statusTone,
234
+ labels: J.statusBadge
235
+ })
236
+ })
237
+ },
238
+ [v.AmountDue]: {
239
+ accessorKey: "amountDueLabel",
240
+ enableSorting: !1,
241
+ header: s(J.columnAmountDue),
242
+ cell: r("amountDueLabel", v.AmountDue)
243
+ },
244
+ [v.AmountScheduled]: {
245
+ accessorKey: "amountScheduledLabel",
246
+ enableSorting: !1,
247
+ header: s(J.columnAmountScheduled),
248
+ cell: r("amountScheduledLabel", v.AmountScheduled)
249
+ },
250
+ [v.AmountPaid]: {
251
+ accessorKey: "amountPaidLabel",
252
+ enableSorting: !1,
253
+ header: s(J.columnAmountPaid),
254
+ cell: r("amountPaidLabel", v.AmountPaid, a, "amountPaidIsGap")
255
+ },
256
+ [v.TotalAmount]: {
257
+ accessorKey: "totalAmountLabel",
258
+ enableSorting: !1,
259
+ header: s(J.columnTotalAmount),
260
+ cell: r("totalAmountLabel", v.TotalAmount)
261
+ },
262
+ [v.AddedOn]: {
263
+ accessorKey: "addedOnLabel",
264
+ enableSorting: !0,
265
+ header: e(J.columnAddedOn),
266
+ cell: t("addedOnLabel", v.AddedOn)
267
+ }
268
+ };
269
+ }, [J, M]), Be = y(() => be.filter((e) => j.includes(e)).map((e) => Q[e]), [Q, j]), Ve = !!(F && R) && !E && !D && !N && T.length === 0 && Pe === !0, $ = /* @__PURE__ */ x("div", {
270
+ className: "ttw:relative ttw:w-80",
271
+ children: [/* @__PURE__ */ b(pe, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ b(a, {
272
+ className: "ttw:pl-9",
273
+ type: "search",
274
+ "aria-label": J.searchLabel,
275
+ placeholder: J.searchPlaceholder,
276
+ value: Me,
277
+ onChange: (e) => Ne(e.target.value)
278
+ })]
279
+ }), He = A ? /* @__PURE__ */ b(ce, {
280
+ ...A,
281
+ className: "ttw:px-4",
282
+ searchSlot: $
283
+ }) : /* @__PURE__ */ b("div", {
284
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
285
+ children: $
286
+ });
287
+ return /* @__PURE__ */ x("div", {
288
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
289
+ children: [K ? /* @__PURE__ */ x(e, {
290
+ className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-none ttw:border-0 ttw:border-l-4 ttw:border-l-amber-600 ttw:bg-amber-50 ttw:py-2 ttw:text-amber-700",
291
+ children: [/* @__PURE__ */ b(t, {
292
+ className: "ttw:flex-1 ttw:font-semibold",
293
+ children: K
294
+ }), q ? /* @__PURE__ */ b(n, {
295
+ type: "button",
296
+ variant: "outline",
297
+ className: "ttw:text-foreground",
298
+ onClick: q,
299
+ children: J.duplicateBillsReviewButton
300
+ }) : null]
301
+ }) : null, /* @__PURE__ */ x(o, {
302
+ value: k,
303
+ onValueChange: je,
304
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
305
+ children: [/* @__PURE__ */ x("div", {
306
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
307
+ children: [/* @__PURE__ */ b(te, {
308
+ "aria-label": J.filterTabsLabel,
309
+ children: O.map((e) => /* @__PURE__ */ x(ne, {
310
+ value: e.id,
311
+ className: "ttw:group/tab ttw:min-w-28 ttw:gap-2",
312
+ children: [e.label, e.badge ? /* @__PURE__ */ x(ue, { children: [" ", /* @__PURE__ */ b("span", {
313
+ className: "ttw:inline-flex ttw:h-5 ttw:min-w-5 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-background ttw:px-1 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:group-data-[state=active]/tab:bg-muted",
314
+ children: e.badge
315
+ })] }) : null]
316
+ }, e.id))
317
+ }), /* @__PURE__ */ x("div", {
318
+ className: "ttw:flex ttw:items-center ttw:gap-2",
319
+ children: [I ? /* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ b(d, {
320
+ asChild: !0,
321
+ children: /* @__PURE__ */ b(n, {
322
+ variant: "outline",
323
+ size: "icon",
324
+ "aria-label": J.settingsButton,
325
+ onClick: I,
326
+ children: /* @__PURE__ */ b(me, { className: "ttw:size-4" })
327
+ })
328
+ }), /* @__PURE__ */ b(l, { children: J.settingsButton })] }) }) : null, F ? /* @__PURE__ */ x(n, {
329
+ onClick: F,
330
+ children: [/* @__PURE__ */ b(fe, { className: "ttw:size-4" }), J.createButton]
331
+ }) : null]
332
+ })]
333
+ }), (() => {
334
+ let e = D ? /* @__PURE__ */ b(re, {
335
+ title: J.errorTitle,
336
+ description: J.errorDescription,
337
+ retryLabel: L ? J.errorRetry : void 0,
338
+ onRetry: L
339
+ }) : Ve && F && R ? /* @__PURE__ */ b("div", {
340
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
341
+ children: U && W ? /* @__PURE__ */ b(p, {
342
+ emailAddress: U,
343
+ onCopyEmail: W,
344
+ onFilesSelected: R,
345
+ accept: _,
346
+ maxFiles: z,
347
+ uploadStatus: V,
348
+ uploadErrorMessage: H,
349
+ onEnterManually: B ?? F,
350
+ labels: J.addBill
351
+ }) : /* @__PURE__ */ b(p, {
352
+ onFilesSelected: R,
353
+ accept: _,
354
+ maxFiles: z,
355
+ uploadStatus: V,
356
+ uploadErrorMessage: H,
357
+ onEnterManually: B ?? F,
358
+ labels: J.addBill
359
+ })
360
+ }) : /* @__PURE__ */ x("div", {
361
+ className: "ttw:relative",
362
+ onDragEnter: Ie,
363
+ onDragOver: Le,
364
+ onDragLeave: Re,
365
+ onDrop: ze,
366
+ children: [/* @__PURE__ */ b(r, {
367
+ columns: Be,
368
+ data: T,
369
+ getRowId: (e) => e.rowKey,
370
+ animatesNewRows: !0,
371
+ isLoading: E,
372
+ sorting: xe,
373
+ onSortingChange: Se,
374
+ pageSize: Ce,
375
+ onPageSizeChange: we,
376
+ pageSizeOptions: Te,
377
+ pageInfo: Ee,
378
+ hasNextPage: De,
379
+ hasPrevPage: Oe,
380
+ onNextPage: ke,
381
+ onPrevPage: Ae,
382
+ onRowClick: (e) => e.onOpen(),
383
+ rowAriaLabel: (e) => J.openRow(e.vendorLabel || ye(e.vendorLookup, J)),
384
+ rowClassName: (e) => ve[e.rowTone ?? "default"],
385
+ filterComponent: He,
386
+ children: N ? /* @__PURE__ */ b(f, {
387
+ title: J.filteredEmptyTitle,
388
+ description: J.filteredEmptyDescription
389
+ }) : P ? /* @__PURE__ */ b(f, {
390
+ title: P.title,
391
+ description: P.description
392
+ }) : void 0
393
+ }), Fe ? /* @__PURE__ */ b("div", {
394
+ className: "ttw:pointer-events-none ttw:absolute ttw:inset-0 ttw:z-20 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-xl ttw:border-2 ttw:border-dashed ttw:border-primary ttw:bg-background/85 ttw:backdrop-blur-[1px]",
395
+ children: /* @__PURE__ */ x("div", {
396
+ className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-lg ttw:border ttw:bg-card ttw:px-4 ttw:py-3 ttw:shadow-sm",
397
+ children: [/* @__PURE__ */ b(he, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
398
+ className: "ttw:text-sm ttw:font-medium",
399
+ children: J.tableDropzoneTitle
400
+ }), /* @__PURE__ */ b("p", {
401
+ className: "ttw:text-xs ttw:text-muted-foreground",
402
+ children: z === void 0 ? J.addBill.dropzone.fileTypesHint : `${J.addBill.dropzone.fileTypesHint} · ${J.addBill.dropzone.fileCountHint(z)}`
403
+ })] })]
404
+ })
405
+ }) : null]
406
+ });
407
+ return O.map((t) => /* @__PURE__ */ b(s, {
408
+ value: t.id,
409
+ children: t.id === k ? e : null
410
+ }, t.id));
411
+ })()]
412
+ })]
413
+ });
414
+ }
8
415
  //#endregion
9
- export { e as UPLOAD_ITEM_ICON_TONE };
416
+ export { T as BillsScreen, T as default, w as DEFAULT_BILL_COLUMNS };
@@ -1,93 +1,10 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index83.js";
3
- import { UPLOAD_ITEM_ICON_TONE as n } from "./index84.js";
4
- import { useId as r } from "react";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, CopyX as d, Loader2 as f, X as p, XCircle as m } from "lucide-react";
7
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js
8
- function h({ status: t }) {
9
- let r = e("ttw:size-4", n[t]);
10
- return t === "uploading" ? /* @__PURE__ */ a(f, {
11
- "aria-hidden": !0,
12
- className: e(r, "ttw:animate-spin")
13
- }) : a(t === "ready" ? s : t === "duplicate" ? d : m, {
14
- "aria-hidden": !0,
15
- className: r
16
- });
17
- }
18
- function g({ item: t, labels: n }) {
19
- let s = r(), c = /* @__PURE__ */ o(i, { children: [
20
- /* @__PURE__ */ a(h, { status: t.status }),
21
- /* @__PURE__ */ a("span", {
22
- id: s,
23
- className: "ttw:sr-only",
24
- children: n.statusLabel(t.status)
25
- }),
26
- /* @__PURE__ */ a("span", {
27
- className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
28
- children: t.fileName
29
- }),
30
- t.onOpen ? /* @__PURE__ */ a(l, {
31
- "aria-hidden": !0,
32
- className: "ttw:size-4"
33
- }) : null
34
- ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
- return t.onOpen ? /* @__PURE__ */ a("button", {
36
- type: "button",
37
- onClick: t.onOpen,
38
- "aria-describedby": s,
39
- "aria-label": n.openItem(t.fileName),
40
- className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
41
- children: c
42
- }) : /* @__PURE__ */ a("div", {
43
- "aria-describedby": s,
44
- className: u,
45
- children: c
46
- });
47
- }
48
- function _({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
49
- let f = {
50
- ...t,
51
- ...d
52
- };
53
- return /* @__PURE__ */ o("div", {
54
- className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
55
- "data-testid": l,
56
- children: [/* @__PURE__ */ o("div", {
57
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
58
- children: [
59
- /* @__PURE__ */ a("span", {
60
- "aria-live": "polite",
61
- className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
62
- children: n
63
- }),
64
- /* @__PURE__ */ a("button", {
65
- type: "button",
66
- onClick: i,
67
- "aria-label": r ? f.expand : f.collapse,
68
- "aria-expanded": !r,
69
- className: "ttw:text-muted-foreground ttw:hover:text-foreground",
70
- children: a(r ? u : c, { className: "ttw:size-4" })
71
- }),
72
- /* @__PURE__ */ a("button", {
73
- type: "button",
74
- onClick: s,
75
- "aria-label": f.close,
76
- className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
- children: /* @__PURE__ */ a(p, { className: "ttw:size-4" })
78
- })
79
- ]
80
- }), r ? null : /* @__PURE__ */ a("div", {
81
- className: "ttw:max-h-96 ttw:overflow-y-auto",
82
- children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
83
- className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
84
- children: e.caption
85
- }) : null, e.items.map((e) => /* @__PURE__ */ a(g, {
86
- item: e,
87
- labels: f
88
- }, e.id))] }, e.id))
89
- })]
90
- });
91
- }
2
+ var e = {
3
+ collapse: "Collapse upload status",
4
+ expand: "Expand upload status",
5
+ close: "Close upload status",
6
+ statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : e === "duplicate" ? "Possible duplicate" : "Failed",
7
+ openItem: (e) => `Open ${e}`
8
+ };
92
9
  //#endregion
93
- export { _ as BillUploadStatusTray, _ as default };
10
+ export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
@@ -0,0 +1,9 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js
2
+ var e = {
3
+ uploading: "ttw:text-muted-foreground",
4
+ ready: "ttw:text-emerald-600",
5
+ duplicate: "ttw:text-orange-600",
6
+ failed: "ttw:text-destructive"
7
+ };
8
+ //#endregion
9
+ export { e as UPLOAD_ITEM_ICON_TONE };
@@ -1,2 +1,93 @@
1
- import "./index83.js";
2
- import "./index85.js";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index85.js";
3
+ import { UPLOAD_ITEM_ICON_TONE as n } from "./index86.js";
4
+ import { useId as r } from "react";
5
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, CopyX as d, Loader2 as f, X as p, XCircle as m } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js
8
+ function h({ status: t }) {
9
+ let r = e("ttw:size-4", n[t]);
10
+ return t === "uploading" ? /* @__PURE__ */ a(f, {
11
+ "aria-hidden": !0,
12
+ className: e(r, "ttw:animate-spin")
13
+ }) : a(t === "ready" ? s : t === "duplicate" ? d : m, {
14
+ "aria-hidden": !0,
15
+ className: r
16
+ });
17
+ }
18
+ function g({ item: t, labels: n }) {
19
+ let s = r(), c = /* @__PURE__ */ o(i, { children: [
20
+ /* @__PURE__ */ a(h, { status: t.status }),
21
+ /* @__PURE__ */ a("span", {
22
+ id: s,
23
+ className: "ttw:sr-only",
24
+ children: n.statusLabel(t.status)
25
+ }),
26
+ /* @__PURE__ */ a("span", {
27
+ className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
28
+ children: t.fileName
29
+ }),
30
+ t.onOpen ? /* @__PURE__ */ a(l, {
31
+ "aria-hidden": !0,
32
+ className: "ttw:size-4"
33
+ }) : null
34
+ ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
+ return t.onOpen ? /* @__PURE__ */ a("button", {
36
+ type: "button",
37
+ onClick: t.onOpen,
38
+ "aria-describedby": s,
39
+ "aria-label": n.openItem(t.fileName),
40
+ className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
41
+ children: c
42
+ }) : /* @__PURE__ */ a("div", {
43
+ "aria-describedby": s,
44
+ className: u,
45
+ children: c
46
+ });
47
+ }
48
+ function _({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
49
+ let f = {
50
+ ...t,
51
+ ...d
52
+ };
53
+ return /* @__PURE__ */ o("div", {
54
+ className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
55
+ "data-testid": l,
56
+ children: [/* @__PURE__ */ o("div", {
57
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
58
+ children: [
59
+ /* @__PURE__ */ a("span", {
60
+ "aria-live": "polite",
61
+ className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
62
+ children: n
63
+ }),
64
+ /* @__PURE__ */ a("button", {
65
+ type: "button",
66
+ onClick: i,
67
+ "aria-label": r ? f.expand : f.collapse,
68
+ "aria-expanded": !r,
69
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
70
+ children: a(r ? u : c, { className: "ttw:size-4" })
71
+ }),
72
+ /* @__PURE__ */ a("button", {
73
+ type: "button",
74
+ onClick: s,
75
+ "aria-label": f.close,
76
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
+ children: /* @__PURE__ */ a(p, { className: "ttw:size-4" })
78
+ })
79
+ ]
80
+ }), r ? null : /* @__PURE__ */ a("div", {
81
+ className: "ttw:max-h-96 ttw:overflow-y-auto",
82
+ children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
83
+ className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
84
+ children: e.caption
85
+ }) : null, e.items.map((e) => /* @__PURE__ */ a(g, {
86
+ item: e,
87
+ labels: f
88
+ }, e.id))] }, e.id))
89
+ })]
90
+ });
91
+ }
92
+ //#endregion
93
+ export { _ as BillUploadStatusTray, _ as default };
@@ -1,28 +1,2 @@
1
- import { BILL_STATUS_BADGE_LABELS_EN as e } from "./index18.js";
2
- import "./index20.js";
3
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js
4
- var t = {
5
- title: "Possible duplicate files",
6
- descriptionFirstLine: "The following bills may be duplicates of each other.",
7
- descriptionSecondLine: "You can keep or remove duplicates, or view them for more detail before making a decision.",
8
- columnInvoiceNumber: "Invoice number",
9
- columnAmount: "Amount",
10
- columnStatus: "Status",
11
- columnDueDate: "Due date",
12
- columnAddedOn: "Added on",
13
- columnActions: "Actions",
14
- statusBadge: e,
15
- removalHelperBeforeUnsubmitted: "Removing duplicates deletes ",
16
- removalHelperUnsubmitted: "bills not yet submitted",
17
- removalHelperBetween: ", and cancels ",
18
- removalHelperSubmitted: "ones already submitted",
19
- removalHelperAfterSubmitted: ". This action cannot be undone.",
20
- removalOutcomeDelete: "Deletes this bill",
21
- removalOutcomeCancel: "Cancels this bill",
22
- keepSelectedButton: "Keep selected files as their own file",
23
- removeDuplicatesButton: "Remove selected duplicates",
24
- emptyState: "No possible duplicates left to review.",
25
- errorState: "Couldn't load the possible duplicates. Try again shortly."
26
- };
27
- //#endregion
28
- export { t as DUPLICATE_BILLS_DIALOG_LABELS_EN };
1
+ import "./index85.js";
2
+ import "./index87.js";