@tesouro/embedded-components-react 0.11.179 → 0.11.181

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