@tesouro/embedded-components-react 0.9.24 → 0.9.26

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