@tesouro/embedded-components-react 0.5.169 → 0.5.170

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 (129) hide show
  1. package/dist/index.css +39 -17
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +11 -11
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +95 -80
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +37 -11
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +56 -67
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +4 -43
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +6 -115
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +202 -63
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +2 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +84 -4
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -84
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +4 -5
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +32 -3
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +36 -30
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +167 -35
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +40 -164
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -49
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +50 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +11 -45
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -13
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +14 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +59 -7
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -64
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +24 -8
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +150 -18
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +9 -152
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +25 -9
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +19 -21
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +32 -14
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +14 -39
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +8 -16
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +4 -8
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +68 -83
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -83
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +143 -3
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -143
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +114 -45
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +189 -111
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +13 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +72 -186
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +31 -76
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +89 -32
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +406 -83
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -411
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +84 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +67 -72
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +222 -73
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +37 -223
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +245 -37
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +5 -23
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +23 -252
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +626 -21
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -586
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +45 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +256 -41
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -263
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +4 -3
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +44 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -46
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +22 -57
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +11 -6
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +130 -11
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -132
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +6 -3
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +129 -3
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -124
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +7 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +82 -8
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +19 -48
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -21
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +14 -6
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +28 -19
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +82 -27
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +47 -83
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +260 -47
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +24 -251
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +382 -25
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +294 -144
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +4 -223
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +7 -4
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +112 -5
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +37 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +1 -114
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +26 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -21
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +126 -10
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +1 -105
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +33 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +7 -28
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +126 -73
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +11 -30
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +106 -8
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +2 -181
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +10 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +50 -12
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +2 -108
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +6 -0
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +8 -4
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -1
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +154 -23
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +1 -0
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +343 -250
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -123
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -26
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -94
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +7 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +32 -5
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -30
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +12 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +104 -5
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -34
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +31 -2
  121. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  123. package/dist/packages/shared-ui-shadcn/dist/index.js +2458 -2284
  124. package/package.json +2 -1
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +0 -27
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -1,416 +1,509 @@
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";
1
+ import { Alert as e, AlertTitle as t, Badge as n, Button as r, ContextMenuItem as i, DataTable as a, DataTableSortableHeader as ee, Input as te, Skeleton as ne, Tabs as o, TabsContent as re, TabsList as ie, TabsTrigger as ae, Tooltip as s, TooltipContent as c, TooltipProvider as l, TooltipTrigger as oe, cn as se } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EmptyState as u } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
+ import { ErrorState as ce } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
4
  import "../../../shared/ui/dist/index.js";
5
- import { getAcceptedBillUploadFiles as ie } from "./index3.js";
5
+ import { getAcceptedBillUploadFiles as le } from "./index3.js";
6
6
  import "./index5.js";
7
- import { AddBillPanel as p } from "./index7.js";
7
+ import { AddBillPanel as d } from "./index7.js";
8
8
  import "./index8.js";
9
- import { BillStatusBadge as ae } from "./index21.js";
9
+ import { BillStatusBadge as ue } from "./index21.js";
10
10
  import "./index22.js";
11
- import { DueDateValue as oe } from "./index24.js";
11
+ import { DueDateValue as de } from "./index24.js";
12
12
  import "./index25.js";
13
- import { MissingValue as m } from "./index33.js";
13
+ import { MissingValue as f } from "./index33.js";
14
14
  import "./index34.js";
15
- import { NoValue as h } from "./index36.js";
15
+ import { NoValue as p } from "./index36.js";
16
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";
17
+ import { BILLS_SCREEN_LABELS_EN as m, BILLS_SCREEN_UPLOAD_ACCEPT as h } from "./index38.js";
18
+ import { DateDisclosure as fe } from "./index16.js";
19
+ import { BillOverflowMenu as pe } from "./index46.js";
20
+ import "./index47.js";
21
+ import { BillsFilterBar as me } from "./index81.js";
20
22
  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";
23
+ import { BillColumn as g } from "./index83.js";
24
+ import { useMemo as _, useState as he } from "react";
25
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
26
+ import { FileQuestionIcon as ge, PaperclipIcon as _e, PlusIcon as ve, SearchIcon as ye, SettingsIcon as be, UploadIcon as xe, XIcon as Se } from "lucide-react";
25
27
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js
26
- var ge = [
28
+ var Ce = [
27
29
  10,
28
30
  25,
29
31
  50,
30
32
  100
31
- ], _e = 240, ve = {
33
+ ], we = 240, Te = {
32
34
  default: "",
33
35
  warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
34
- }, S = {
36
+ }, x = {
35
37
  default: "",
36
38
  warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
39
+ }, Ee = {
40
+ success: "ttw:text-emerald-700",
41
+ warning: "ttw:text-amber-800"
37
42
  };
38
- function ye(e, t) {
43
+ function De(e, t) {
39
44
  return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
40
45
  }
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
46
+ var S = 40, Oe = [
47
+ g.Vendor,
48
+ g.InvoiceNumber,
49
+ g.Attachment,
50
+ g.IssueDate,
51
+ g.DueDate,
52
+ g.ScheduledDate,
53
+ g.PaidDate,
54
+ g.Status,
55
+ g.AmountDue,
56
+ g.AmountScheduled,
57
+ g.AmountPaid,
58
+ g.TotalAmount,
59
+ g.AddedOn
60
+ ], ke = [
61
+ g.Vendor,
62
+ g.Attachment,
63
+ g.DueDate,
64
+ g.Status,
65
+ g.AmountDue,
66
+ g.AddedOn
61
67
  ];
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,
68
+ function C({ rows: C, isLoading: w, isError: T, sorting: Ae, onSortingChange: je, pageSize: Me, onPageSizeChange: Ne, pageSizeOptions: E = Ce, pageInfo: Pe, hasNextPage: D, hasPrevPage: O, onNextPage: Fe, onPrevPage: Ie, filterTabs: k, selectedFilterTabId: A, onFilterTabChange: Le, searchValue: Re, onSearchChange: ze, filters: j, visibleColumns: M = ke, cellTestIds: N, isSearchActive: P, showAddPanelWhenEmpty: Be, emptyState: F, onCreateClick: I, onSettingsClick: L, onRetry: R, onFilesSelected: z, maxFiles: B, onEnterManually: V, uploadStatus: H, uploadErrorMessage: U, emailAddress: W, onCopyEmail: G, labels: K, duplicateWarning: q, duplicateReviewControl: J }) {
69
+ let Y = _(() => ({
70
+ ...m,
71
+ ...K,
66
72
  statusBadge: {
67
- ...g.statusBadge,
68
- ...G?.statusBadge
73
+ ...m.statusBadge,
74
+ ...K?.statusBadge
69
75
  },
70
76
  addBill: {
71
- ...g.addBill,
72
- ...G?.addBill,
77
+ ...m.addBill,
78
+ ...K?.addBill,
73
79
  dropzone: {
74
- ...g.addBill.dropzone,
75
- ...G?.addBill?.dropzone
80
+ ...m.addBill.dropzone,
81
+ ...K?.addBill?.dropzone
76
82
  }
77
83
  },
78
84
  sortableHeader: {
79
- ...g.sortableHeader,
80
- ...G?.sortableHeader
85
+ ...m.sortableHeader,
86
+ ...K?.sortableHeader
81
87
  },
82
88
  missingValue: {
83
- ...g.missingValue,
84
- ...G?.missingValue
89
+ ...m.missingValue,
90
+ ...K?.missingValue
85
91
  },
86
92
  noValue: {
87
- ...g.noValue,
88
- ...G?.noValue
93
+ ...m.noValue,
94
+ ...K?.noValue
89
95
  },
90
96
  dueDate: {
91
- ...g.dueDate,
92
- ...G?.dueDate
97
+ ...m.dueDate,
98
+ ...K?.dueDate
93
99
  }
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(() => {
100
+ }), [K]), Ve = C.some((e) => e.group), X = C.some((e) => e.menu?.items.length), Z = J?.isActive === !0, [He, Q] = he(!1), $ = !!z, Ue = (e) => Array.from(e.dataTransfer.types).includes("Files"), We = (e) => {
101
+ $ && Ue(e) && (e.preventDefault(), Q(!0));
102
+ }, Ge = (e) => {
103
+ $ && Ue(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Q(!0));
104
+ }, Ke = (e) => {
105
+ !e.currentTarget.contains(e.relatedTarget) && $ && Q(!1);
106
+ }, qe = (e) => {
107
+ if (!$) return;
108
+ e.preventDefault(), Q(!1);
109
+ let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = le(t, h, B !== 1);
110
+ n.length && z?.(n);
111
+ }, Je = _(() => {
106
112
  let e = (e) => function({ column: t }) {
107
- return /* @__PURE__ */ b(i, {
113
+ return /* @__PURE__ */ y(ee, {
108
114
  column: t,
109
115
  title: e,
110
- labels: J.sortableHeader
116
+ labels: Y.sortableHeader
111
117
  });
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", {
118
+ }, t = (e, t, n = /* @__PURE__ */ y(f, { labels: Y.missingValue }), r) => function({ row: i }) {
119
+ let a = r && i.original[r] ? /* @__PURE__ */ y(f, { labels: Y.missingValue }) : n;
120
+ return /* @__PURE__ */ y("span", {
115
121
  className: "ttw:whitespace-nowrap",
116
- "data-testid": M?.[t],
122
+ "data-testid": N?.[t],
117
123
  children: i.original[e] || a
118
124
  });
119
- }, n = function({ row: e }) {
120
- return /* @__PURE__ */ b("span", {
125
+ }, r = function({ row: e }) {
126
+ return /* @__PURE__ */ y("span", {
121
127
  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 }),
128
+ "data-testid": N?.[g.DueDate],
129
+ children: /* @__PURE__ */ y(de, {
130
+ value: e.original.dueDateLabel || /* @__PURE__ */ y(f, { labels: Y.missingValue }),
125
131
  tone: e.original.dueDateTone,
126
- labels: J.dueDate
132
+ labels: Y.dueDate
127
133
  })
128
134
  });
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", {
135
+ }, i = (e, t, n = /* @__PURE__ */ y(f, { labels: Y.missingValue }), r) => function({ row: i }) {
136
+ let a = r && i.original[r] ? /* @__PURE__ */ y(f, { labels: Y.missingValue }) : n;
137
+ return /* @__PURE__ */ y("div", {
132
138
  className: "ttw:text-right ttw:whitespace-nowrap",
133
- "data-testid": M?.[t],
139
+ "data-testid": N?.[t],
134
140
  children: i.original[e] || a
135
141
  });
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", {
142
+ }, a = /* @__PURE__ */ y(p, { labels: Y.noValue });
143
+ function te({ row: e }) {
144
+ let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ y(f, { labels: Y.missingValue }) : a, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
145
+ return /* @__PURE__ */ y("span", {
140
146
  className: "ttw:whitespace-nowrap",
141
- "data-testid": M?.[v.ScheduledDate],
142
- children: n && r ? /* @__PURE__ */ b(se, {
147
+ "data-testid": N?.[g.ScheduledDate],
148
+ children: n && r ? /* @__PURE__ */ y(fe, {
143
149
  date: r,
144
150
  children: n
145
151
  }) : n || t
146
152
  });
147
153
  }
148
- let s = (e) => function() {
149
- return /* @__PURE__ */ b("div", {
154
+ let o = (e) => function() {
155
+ return /* @__PURE__ */ y("div", {
150
156
  className: "ttw:text-right",
151
157
  children: e
152
158
  });
153
159
  };
154
160
  return {
155
- [v.Vendor]: {
161
+ [g.Vendor]: {
156
162
  accessorKey: "vendorLabel",
157
163
  enableSorting: !0,
158
- minSize: _e,
159
- header: e(J.columnVendor),
164
+ minSize: we,
165
+ header: e(Y.columnVendor),
160
166
  cell: ({ row: e }) => {
161
- let t = e.original.rowNote ? /* @__PURE__ */ b("span", {
167
+ let t = e.original.rowNote ? /* @__PURE__ */ y("span", {
162
168
  className: "ttw:sr-only",
163
169
  children: ` ${e.original.rowNote}`
164
170
  }) : 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, {
171
+ if (!e.original.vendorLabel && e.original.vendorLookup === "resolving") return /* @__PURE__ */ b("div", {
172
+ className: x[e.original.rowTone ?? "default"],
173
+ "data-testid": N?.[g.Vendor],
174
+ children: [/* @__PURE__ */ y(ne, {
169
175
  className: "ttw:h-4 ttw:w-32",
170
176
  "aria-hidden": !0
171
177
  }), 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]
178
+ });
179
+ let r = e.original.groupedRowLabel ?? e.original.vendorLabel;
180
+ return /* @__PURE__ */ b("span", {
181
+ className: se("ttw:inline-flex", e.original.group ? "ttw:flex-col ttw:items-start ttw:gap-1" : "ttw:items-center ttw:gap-2", e.original.group && "ttw:pl-6", e.original.groupedRowLabelTone ? Ee[e.original.groupedRowLabelTone] : x[e.original.rowTone ?? "default"]),
182
+ "data-testid": N?.[g.Vendor],
183
+ children: [
184
+ r || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ y(p, { labels: { none: Y.vendorUnavailable } }) : /* @__PURE__ */ y(f, { labels: Y.missingValue })),
185
+ e.original.groupedRowBadge ? /* @__PURE__ */ y(n, {
186
+ variant: "secondary",
187
+ children: e.original.groupedRowBadge
188
+ }) : null,
189
+ t
190
+ ]
176
191
  });
177
192
  }
178
193
  },
179
- [v.Attachment]: {
194
+ [g.InvoiceNumber]: {
195
+ accessorKey: "invoiceNumberLabel",
196
+ enableSorting: !1,
197
+ header: () => Y.columnInvoiceNumber,
198
+ cell: t("invoiceNumberLabel", g.InvoiceNumber)
199
+ },
200
+ [g.Attachment]: {
180
201
  accessorKey: "attachment",
181
202
  enableSorting: !1,
182
- size: C,
183
- minSize: C,
184
- header: () => /* @__PURE__ */ b("span", {
203
+ size: S,
204
+ minSize: S,
205
+ header: () => /* @__PURE__ */ y("span", {
185
206
  className: "ttw:sr-only",
186
- children: J.columnAttachment
207
+ children: Y.columnAttachment
187
208
  }),
188
- cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ b("div", {
209
+ cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ y("div", {
189
210
  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, {
211
+ "data-testid": N?.[g.Attachment],
212
+ children: /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(oe, {
192
213
  type: "button",
193
214
  className: "ttw:inline-flex ttw:cursor-default",
194
215
  "aria-label": e.original.attachment.label,
195
216
  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 })] }) })
217
+ children: /* @__PURE__ */ y(_e, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
218
+ }), /* @__PURE__ */ y(c, { children: e.original.attachment.label })] }) })
198
219
  }) : null
199
220
  },
200
- [v.IssueDate]: {
221
+ [g.IssueDate]: {
201
222
  accessorKey: "issueDateLabel",
202
223
  enableSorting: !0,
203
- header: e(J.columnIssueDate),
204
- cell: t("issueDateLabel", v.IssueDate)
224
+ header: e(Y.columnIssueDate),
225
+ cell: t("issueDateLabel", g.IssueDate)
205
226
  },
206
- [v.DueDate]: {
227
+ [g.DueDate]: {
207
228
  accessorKey: "dueDateLabel",
208
229
  enableSorting: !0,
209
- header: e(J.columnDueDate),
210
- cell: n
230
+ header: e(Y.columnDueDate),
231
+ cell: r
211
232
  },
212
- [v.ScheduledDate]: {
233
+ [g.ScheduledDate]: {
213
234
  accessorKey: "scheduledDateLabel",
214
235
  enableSorting: !0,
215
- header: e(J.columnScheduledDate),
216
- cell: o
236
+ header: e(Y.columnScheduledDate),
237
+ cell: te
217
238
  },
218
- [v.PaidDate]: {
239
+ [g.PaidDate]: {
219
240
  accessorKey: "paidDateLabel",
220
241
  enableSorting: !1,
221
- header: J.columnPaidDate,
222
- cell: t("paidDateLabel", v.PaidDate)
242
+ header: Y.columnPaidDate,
243
+ cell: t("paidDateLabel", g.PaidDate)
223
244
  },
224
- [v.Status]: {
245
+ [g.Status]: {
225
246
  accessorKey: "status",
226
247
  enableSorting: !1,
227
- header: J.columnStatus,
228
- cell: ({ row: e }) => /* @__PURE__ */ b("div", {
248
+ header: Y.columnStatus,
249
+ cell: ({ row: e }) => /* @__PURE__ */ y("div", {
229
250
  className: "ttw:flex ttw:items-center ttw:gap-1",
230
- "data-testid": M?.[v.Status],
231
- children: /* @__PURE__ */ b(ae, {
251
+ "data-testid": N?.[g.Status],
252
+ children: /* @__PURE__ */ y(ue, {
232
253
  status: e.original.status,
233
254
  tone: e.original.statusTone,
234
- labels: J.statusBadge
255
+ labels: Y.statusBadge
235
256
  })
236
257
  })
237
258
  },
238
- [v.AmountDue]: {
259
+ [g.AmountDue]: {
239
260
  accessorKey: "amountDueLabel",
240
261
  enableSorting: !1,
241
- header: s(J.columnAmountDue),
242
- cell: r("amountDueLabel", v.AmountDue)
262
+ header: o(Y.columnAmountDue),
263
+ cell: i("amountDueLabel", g.AmountDue)
243
264
  },
244
- [v.AmountScheduled]: {
265
+ [g.AmountScheduled]: {
245
266
  accessorKey: "amountScheduledLabel",
246
267
  enableSorting: !1,
247
- header: s(J.columnAmountScheduled),
248
- cell: r("amountScheduledLabel", v.AmountScheduled)
268
+ header: o(Y.columnAmountScheduled),
269
+ cell: i("amountScheduledLabel", g.AmountScheduled)
249
270
  },
250
- [v.AmountPaid]: {
271
+ [g.AmountPaid]: {
251
272
  accessorKey: "amountPaidLabel",
252
273
  enableSorting: !1,
253
- header: s(J.columnAmountPaid),
254
- cell: r("amountPaidLabel", v.AmountPaid, a, "amountPaidIsGap")
274
+ header: o(Y.columnAmountPaid),
275
+ cell: i("amountPaidLabel", g.AmountPaid, a, "amountPaidIsGap")
255
276
  },
256
- [v.TotalAmount]: {
277
+ [g.TotalAmount]: {
257
278
  accessorKey: "totalAmountLabel",
258
279
  enableSorting: !1,
259
- header: s(J.columnTotalAmount),
260
- cell: r("totalAmountLabel", v.TotalAmount)
280
+ header: o(Y.columnTotalAmount),
281
+ cell: i("totalAmountLabel", g.TotalAmount)
261
282
  },
262
- [v.AddedOn]: {
283
+ [g.AddedOn]: {
263
284
  accessorKey: "addedOnLabel",
264
285
  enableSorting: !0,
265
- header: e(J.columnAddedOn),
266
- cell: t("addedOnLabel", v.AddedOn)
286
+ header: e(Y.columnAddedOn),
287
+ cell: t("addedOnLabel", g.AddedOn)
267
288
  }
268
289
  };
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", {
290
+ }, [Y, N]), Ye = _(() => [...Oe.filter((e) => M.includes(e)).map((e) => Je[e]), ...X ? [{
291
+ id: "actions",
292
+ enableSorting: !1,
293
+ header: () => /* @__PURE__ */ y("span", {
294
+ className: "ttw:sr-only",
295
+ children: Y.columnActions
296
+ }),
297
+ cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ y("div", {
298
+ className: "ttw:flex ttw:justify-end",
299
+ children: /* @__PURE__ */ y(pe, {
300
+ actions: e.original.menu.items.map((e) => ({
301
+ ...e,
302
+ variant: "ghost"
303
+ })),
304
+ triggerLabel: e.original.menu.triggerLabel,
305
+ placement: "table"
306
+ })
307
+ }) : null
308
+ }] : []], [
309
+ Je,
310
+ X,
311
+ Y,
312
+ M
313
+ ]), Xe = !!(I && z) && !w && !T && !P && C.length === 0 && Be === !0, Ze = /* @__PURE__ */ b("div", {
270
314
  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, {
315
+ children: [/* @__PURE__ */ y(ye, { 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__ */ y(te, {
272
316
  className: "ttw:pl-9",
273
317
  type: "search",
274
- "aria-label": J.searchLabel,
275
- placeholder: J.searchPlaceholder,
276
- value: Me,
277
- onChange: (e) => Ne(e.target.value)
318
+ "aria-label": Y.searchLabel,
319
+ placeholder: Y.searchPlaceholder,
320
+ value: Re,
321
+ onChange: (e) => ze(e.target.value)
278
322
  })]
279
- }), He = A ? /* @__PURE__ */ b(ce, {
280
- ...A,
323
+ }), Qe = J?.isActive ? /* @__PURE__ */ b(r, {
324
+ type: "button",
325
+ variant: "outline",
326
+ size: "sm",
327
+ className: "ttw:h-8 ttw:gap-1.5 ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800 ttw:hover:bg-amber-100",
328
+ onClick: J.onClear,
329
+ children: [
330
+ J.activeFilterLabel,
331
+ /* @__PURE__ */ y(Se, {
332
+ className: "ttw:size-3.5",
333
+ "aria-hidden": !0
334
+ }),
335
+ " ",
336
+ /* @__PURE__ */ y("span", {
337
+ className: "ttw:sr-only",
338
+ children: J.clearLabel
339
+ })
340
+ ]
341
+ }) : null, $e = j ? /* @__PURE__ */ y(me, {
342
+ ...j,
281
343
  className: "ttw:px-4",
282
- searchSlot: $
344
+ searchSlot: /* @__PURE__ */ b("div", {
345
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
346
+ children: [Ze, Qe]
347
+ })
283
348
  }) : /* @__PURE__ */ b("div", {
284
349
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
285
- children: $
350
+ children: [Ze, Qe]
286
351
  });
287
- return /* @__PURE__ */ x("div", {
352
+ return /* @__PURE__ */ b("div", {
288
353
  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,
354
+ children: [q ? /* @__PURE__ */ b(e, {
355
+ className: "ttw:flex ttw:min-h-12 ttw:flex-wrap 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",
356
+ children: [
357
+ /* @__PURE__ */ y(ge, {
358
+ className: "ttw:size-5 ttw:shrink-0",
359
+ "aria-hidden": !0
360
+ }),
361
+ /* @__PURE__ */ y(t, {
362
+ className: "ttw:flex-1 ttw:font-semibold",
363
+ children: q
364
+ }),
365
+ J ? Z ? null : /* @__PURE__ */ y(r, {
366
+ type: "button",
367
+ variant: "outline",
368
+ size: "sm",
369
+ className: "ttw:bg-background ttw:text-foreground ttw:hover:bg-muted",
370
+ onClick: J.onReview,
371
+ children: J.reviewLabel
372
+ }) : null
373
+ ]
374
+ }) : null, /* @__PURE__ */ b(o, {
375
+ value: A,
376
+ onValueChange: Le,
304
377
  className: "ttw:flex ttw:flex-col ttw:gap-4",
305
- children: [/* @__PURE__ */ x("div", {
378
+ children: [/* @__PURE__ */ b("div", {
306
379
  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, {
380
+ children: [Z ? /* @__PURE__ */ y("div", {}) : /* @__PURE__ */ y(ie, {
381
+ "aria-label": Y.filterTabsLabel,
382
+ children: k.map((e) => /* @__PURE__ */ b(ae, {
310
383
  value: e.id,
311
384
  className: "ttw:group/tab ttw:min-w-28 ttw:gap-2",
312
- children: [e.label, e.badge ? /* @__PURE__ */ x(ue, { children: [" ", /* @__PURE__ */ b("span", {
385
+ children: [e.label, e.badge ? /* @__PURE__ */ b(v, { children: [" ", /* @__PURE__ */ y("span", {
313
386
  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
387
  children: e.badge
315
388
  })] }) : null]
316
389
  }, e.id))
317
- }), /* @__PURE__ */ x("div", {
390
+ }), /* @__PURE__ */ b("div", {
318
391
  className: "ttw:flex ttw:items-center ttw:gap-2",
319
- children: [I ? /* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ b(d, {
392
+ children: [L ? /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(oe, {
320
393
  asChild: !0,
321
- children: /* @__PURE__ */ b(n, {
394
+ children: /* @__PURE__ */ y(r, {
322
395
  variant: "outline",
323
396
  size: "icon",
324
- "aria-label": J.settingsButton,
325
- onClick: I,
326
- children: /* @__PURE__ */ b(me, { className: "ttw:size-4" })
397
+ "aria-label": Y.settingsButton,
398
+ onClick: L,
399
+ children: /* @__PURE__ */ y(be, { className: "ttw:size-4" })
327
400
  })
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]
401
+ }), /* @__PURE__ */ y(c, { children: Y.settingsButton })] }) }) : null, I ? /* @__PURE__ */ b(r, {
402
+ onClick: I,
403
+ children: [/* @__PURE__ */ y(ve, { className: "ttw:size-4" }), Y.createButton]
331
404
  }) : null]
332
405
  })]
333
406
  }), (() => {
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", {
407
+ let e = T ? /* @__PURE__ */ y(ce, {
408
+ title: Y.errorTitle,
409
+ description: Y.errorDescription,
410
+ retryLabel: R ? Y.errorRetry : void 0,
411
+ onRetry: R
412
+ }) : Xe && I && z ? /* @__PURE__ */ y("div", {
340
413
  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
414
+ children: W && G ? /* @__PURE__ */ y(d, {
415
+ emailAddress: W,
416
+ onCopyEmail: G,
417
+ onFilesSelected: z,
418
+ accept: h,
419
+ maxFiles: B,
420
+ uploadStatus: H,
421
+ uploadErrorMessage: U,
422
+ onEnterManually: V ?? I,
423
+ labels: Y.addBill
424
+ }) : /* @__PURE__ */ y(d, {
425
+ onFilesSelected: z,
426
+ accept: h,
427
+ maxFiles: B,
428
+ uploadStatus: H,
429
+ uploadErrorMessage: U,
430
+ onEnterManually: V ?? I,
431
+ labels: Y.addBill
359
432
  })
360
- }) : /* @__PURE__ */ x("div", {
433
+ }) : /* @__PURE__ */ b("div", {
361
434
  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,
435
+ onDragEnter: We,
436
+ onDragOver: Ge,
437
+ onDragLeave: Ke,
438
+ onDrop: qe,
439
+ children: [/* @__PURE__ */ y(a, {
440
+ columns: Ye,
441
+ data: C,
369
442
  getRowId: (e) => e.rowKey,
370
443
  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,
444
+ isLoading: w,
445
+ sorting: Ae,
446
+ onSortingChange: je,
447
+ pageSize: Me,
448
+ onPageSizeChange: Ne,
449
+ pageSizeOptions: E,
450
+ showPagination: E.length > 1 || D || O,
451
+ pageInfo: Pe,
452
+ hasNextPage: D,
453
+ hasPrevPage: O,
454
+ onNextPage: Fe,
455
+ onPrevPage: Ie,
382
456
  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
457
+ rowAriaLabel: (e) => Y.openRow(e.vendorLabel || De(e.vendorLookup, Y)),
458
+ rowClassName: (e) => Te[e.rowTone ?? "default"],
459
+ rowGroup: Ve ? (e) => e.group ? {
460
+ key: e.group.key,
461
+ nested: {
462
+ toggleLabel: Y.duplicateGroupToggle(e.group.headerLabel),
463
+ countLabel: Y.duplicateGroupBillCount(e.group.memberCount)
464
+ },
465
+ header: /* @__PURE__ */ y("span", {
466
+ className: "ttw:text-sm ttw:text-foreground",
467
+ children: e.group.headerLabel
468
+ })
469
+ } : void 0 : void 0,
470
+ rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ y(v, { children: e.menu.items.map((e) => {
471
+ let t = e.icon;
472
+ return /* @__PURE__ */ b(i, {
473
+ disabled: e.disabled,
474
+ onClick: e.onSelect,
475
+ children: [t ? /* @__PURE__ */ y(t, { className: "ttw:size-4" }) : null, e.label]
476
+ }, e.id);
477
+ }) }) : void 0,
478
+ filterComponent: $e,
479
+ children: P ? /* @__PURE__ */ y(u, {
480
+ title: Y.filteredEmptyTitle,
481
+ description: Y.filteredEmptyDescription
482
+ }) : F ? /* @__PURE__ */ y(u, {
483
+ title: F.title,
484
+ description: F.description
392
485
  }) : void 0
393
- }), Fe ? /* @__PURE__ */ b("div", {
486
+ }), He ? /* @__PURE__ */ y("div", {
394
487
  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", {
488
+ children: /* @__PURE__ */ b("div", {
396
489
  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", {
490
+ children: [/* @__PURE__ */ y(xe, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
398
491
  className: "ttw:text-sm ttw:font-medium",
399
- children: J.tableDropzoneTitle
400
- }), /* @__PURE__ */ b("p", {
492
+ children: Y.tableDropzoneTitle
493
+ }), /* @__PURE__ */ y("p", {
401
494
  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)}`
495
+ children: B === void 0 ? Y.addBill.dropzone.fileTypesHint : `${Y.addBill.dropzone.fileTypesHint} · ${Y.addBill.dropzone.fileCountHint(B)}`
403
496
  })] })]
404
497
  })
405
498
  }) : null]
406
499
  });
407
- return O.map((t) => /* @__PURE__ */ b(s, {
500
+ return k.map((t) => /* @__PURE__ */ y(re, {
408
501
  value: t.id,
409
- children: t.id === k ? e : null
502
+ children: t.id === A ? e : null
410
503
  }, t.id));
411
504
  })()]
412
505
  })]
413
506
  });
414
507
  }
415
508
  //#endregion
416
- export { T as BillsScreen, T as default, w as DEFAULT_BILL_COLUMNS };
509
+ export { C as BillsScreen, C as default, ke as DEFAULT_BILL_COLUMNS };