@tesouro/embedded-components-react 0.9.22 → 0.9.25
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.
- package/dist/index.css +82 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +278 -322
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js
CHANGED
|
@@ -1,300 +1,291 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EmptyState as
|
|
3
|
-
import { ErrorState as
|
|
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
|
|
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 {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
|
|
13
|
+
import { AddBillPanel as h } from "./index3.js";
|
|
13
14
|
import "./index4.js";
|
|
14
|
-
import { BillsFilterBar as
|
|
15
|
+
import { BillsFilterBar as le } from "./index10.js";
|
|
15
16
|
import "./index11.js";
|
|
16
|
-
import { MissingValue as
|
|
17
|
+
import { MissingValue as g } from "./index13.js";
|
|
17
18
|
import "./index14.js";
|
|
18
|
-
import { NoValue as
|
|
19
|
+
import { NoValue as ue } from "./index16.js";
|
|
19
20
|
import "./index17.js";
|
|
20
|
-
import { BILLS_SCREEN_LABELS_EN as
|
|
21
|
-
import { BillColumn as
|
|
22
|
-
import { useMemo as
|
|
23
|
-
import { Fragment as
|
|
24
|
-
import {
|
|
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
|
|
27
|
+
var ve = [
|
|
27
28
|
10,
|
|
28
29
|
25,
|
|
29
30
|
50,
|
|
30
31
|
100
|
|
31
|
-
],
|
|
32
|
+
], ye = 240, be = {
|
|
32
33
|
default: "",
|
|
33
|
-
warning: "ttw:bg-
|
|
34
|
-
},
|
|
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-
|
|
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
|
|
39
|
+
function xe(e, t) {
|
|
42
40
|
return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
|
|
43
41
|
}
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
],
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
67
|
-
let
|
|
68
|
-
...
|
|
69
|
-
...
|
|
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
|
-
...
|
|
72
|
-
...
|
|
69
|
+
..._.statusBadge,
|
|
70
|
+
...Y?.statusBadge
|
|
73
71
|
},
|
|
74
72
|
addBill: {
|
|
75
|
-
...
|
|
76
|
-
...
|
|
73
|
+
..._.addBill,
|
|
74
|
+
...Y?.addBill,
|
|
77
75
|
dropzone: {
|
|
78
|
-
...
|
|
79
|
-
...
|
|
76
|
+
..._.addBill.dropzone,
|
|
77
|
+
...Y?.addBill?.dropzone
|
|
80
78
|
}
|
|
81
79
|
},
|
|
82
80
|
sortableHeader: {
|
|
83
|
-
...
|
|
84
|
-
...
|
|
81
|
+
..._.sortableHeader,
|
|
82
|
+
...Y?.sortableHeader
|
|
85
83
|
},
|
|
86
84
|
missingValue: {
|
|
87
|
-
...
|
|
88
|
-
...
|
|
85
|
+
..._.missingValue,
|
|
86
|
+
...Y?.missingValue
|
|
89
87
|
},
|
|
90
88
|
noValue: {
|
|
91
|
-
...
|
|
92
|
-
...
|
|
89
|
+
..._.noValue,
|
|
90
|
+
...Y?.noValue
|
|
93
91
|
},
|
|
94
92
|
dueDate: {
|
|
95
|
-
...
|
|
96
|
-
...
|
|
93
|
+
..._.dueDate,
|
|
94
|
+
...Y?.dueDate
|
|
97
95
|
}
|
|
98
|
-
}), [
|
|
99
|
-
$ &&
|
|
100
|
-
},
|
|
101
|
-
$ &&
|
|
102
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
108
|
-
n.length &&
|
|
109
|
-
},
|
|
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__ */
|
|
109
|
+
return /* @__PURE__ */ S(r, {
|
|
112
110
|
column: t,
|
|
113
111
|
title: e,
|
|
114
|
-
labels:
|
|
112
|
+
labels: Z.sortableHeader
|
|
115
113
|
});
|
|
116
|
-
}, t = (e, t, n = /* @__PURE__ */
|
|
117
|
-
let a = r && i.original[r] ? /* @__PURE__ */
|
|
118
|
-
return /* @__PURE__ */
|
|
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":
|
|
118
|
+
"data-testid": I?.[t],
|
|
121
119
|
children: i.original[e] || a
|
|
122
120
|
});
|
|
123
|
-
},
|
|
124
|
-
return /* @__PURE__ */
|
|
121
|
+
}, n = t("invoiceNumberLabel", y.InvoiceNumber), i = function({ row: e }) {
|
|
122
|
+
return /* @__PURE__ */ S("span", {
|
|
125
123
|
className: "ttw:whitespace-nowrap",
|
|
126
|
-
"data-testid":
|
|
127
|
-
children: /* @__PURE__ */
|
|
128
|
-
value: e.original.dueDateLabel || /* @__PURE__ */
|
|
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:
|
|
128
|
+
labels: Z.dueDate
|
|
131
129
|
})
|
|
132
130
|
});
|
|
133
|
-
},
|
|
134
|
-
let a = r && i.original[r] ? /* @__PURE__ */
|
|
135
|
-
return /* @__PURE__ */
|
|
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":
|
|
135
|
+
"data-testid": I?.[t],
|
|
138
136
|
children: i.original[e] || a
|
|
139
137
|
});
|
|
140
|
-
},
|
|
141
|
-
function
|
|
142
|
-
let t = e.original.scheduledDateIsGap ? /* @__PURE__ */
|
|
143
|
-
return /* @__PURE__ */
|
|
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":
|
|
146
|
-
children: n && r ? /* @__PURE__ */
|
|
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
|
|
153
|
-
return /* @__PURE__ */
|
|
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
|
-
[
|
|
157
|
+
[y.Vendor]: {
|
|
160
158
|
accessorKey: "vendorLabel",
|
|
161
159
|
enableSorting: !0,
|
|
162
|
-
minSize:
|
|
163
|
-
header: e(
|
|
160
|
+
minSize: ye,
|
|
161
|
+
header: e(Z.columnVendor),
|
|
164
162
|
cell: ({ row: e }) => {
|
|
165
|
-
let t = e.original.rowNote ? /* @__PURE__ */
|
|
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__ */
|
|
170
|
-
className:
|
|
171
|
-
"data-testid":
|
|
172
|
-
children: [/* @__PURE__ */
|
|
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
|
|
178
|
-
return /* @__PURE__ */
|
|
179
|
-
className:
|
|
180
|
-
"data-testid":
|
|
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
|
-
[
|
|
183
|
+
[y.InvoiceNumber]: {
|
|
193
184
|
accessorKey: "invoiceNumberLabel",
|
|
194
185
|
enableSorting: !1,
|
|
195
|
-
header: () =>
|
|
196
|
-
cell:
|
|
186
|
+
header: () => Z.columnInvoiceNumber,
|
|
187
|
+
cell: (e) => e.row.original.isNested ? null : n(e)
|
|
197
188
|
},
|
|
198
|
-
[
|
|
189
|
+
[y.Attachment]: {
|
|
199
190
|
accessorKey: "attachment",
|
|
200
191
|
enableSorting: !1,
|
|
201
|
-
size:
|
|
202
|
-
minSize:
|
|
203
|
-
header: () => /* @__PURE__ */
|
|
192
|
+
size: T,
|
|
193
|
+
minSize: T,
|
|
194
|
+
header: () => /* @__PURE__ */ S("span", {
|
|
204
195
|
className: "ttw:sr-only",
|
|
205
|
-
children:
|
|
196
|
+
children: Z.columnAttachment
|
|
206
197
|
}),
|
|
207
|
-
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */
|
|
198
|
+
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ S("div", {
|
|
208
199
|
className: "ttw:flex ttw:justify-center",
|
|
209
|
-
"data-testid":
|
|
210
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
216
|
-
}), /* @__PURE__ */
|
|
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
|
-
[
|
|
210
|
+
[y.IssueDate]: {
|
|
220
211
|
accessorKey: "issueDateLabel",
|
|
221
212
|
enableSorting: !0,
|
|
222
|
-
header: e(
|
|
223
|
-
cell: t("issueDateLabel",
|
|
213
|
+
header: e(Z.columnIssueDate),
|
|
214
|
+
cell: t("issueDateLabel", y.IssueDate)
|
|
224
215
|
},
|
|
225
|
-
[
|
|
216
|
+
[y.DueDate]: {
|
|
226
217
|
accessorKey: "dueDateLabel",
|
|
227
218
|
enableSorting: !0,
|
|
228
|
-
header: e(
|
|
229
|
-
cell:
|
|
219
|
+
header: e(Z.columnDueDate),
|
|
220
|
+
cell: i
|
|
230
221
|
},
|
|
231
|
-
[
|
|
222
|
+
[y.ScheduledDate]: {
|
|
232
223
|
accessorKey: "scheduledDateLabel",
|
|
233
224
|
enableSorting: !0,
|
|
234
|
-
header: e(
|
|
235
|
-
cell:
|
|
225
|
+
header: e(Z.columnScheduledDate),
|
|
226
|
+
cell: s
|
|
236
227
|
},
|
|
237
|
-
[
|
|
228
|
+
[y.PaidDate]: {
|
|
238
229
|
accessorKey: "paidDateLabel",
|
|
239
230
|
enableSorting: !1,
|
|
240
|
-
header:
|
|
241
|
-
cell: t("paidDateLabel",
|
|
231
|
+
header: Z.columnPaidDate,
|
|
232
|
+
cell: t("paidDateLabel", y.PaidDate)
|
|
242
233
|
},
|
|
243
|
-
[
|
|
234
|
+
[y.Status]: {
|
|
244
235
|
accessorKey: "status",
|
|
245
236
|
enableSorting: !1,
|
|
246
|
-
header:
|
|
247
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
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":
|
|
250
|
-
children: /* @__PURE__ */
|
|
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:
|
|
244
|
+
labels: Z.statusBadge
|
|
254
245
|
})
|
|
255
246
|
})
|
|
256
247
|
},
|
|
257
|
-
[
|
|
248
|
+
[y.AmountDue]: {
|
|
258
249
|
accessorKey: "amountDueLabel",
|
|
259
250
|
enableSorting: !1,
|
|
260
|
-
header:
|
|
261
|
-
cell:
|
|
251
|
+
header: c(Z.columnAmountDue),
|
|
252
|
+
cell: a("amountDueLabel", y.AmountDue)
|
|
262
253
|
},
|
|
263
|
-
[
|
|
254
|
+
[y.AmountScheduled]: {
|
|
264
255
|
accessorKey: "amountScheduledLabel",
|
|
265
256
|
enableSorting: !1,
|
|
266
|
-
header:
|
|
267
|
-
cell:
|
|
257
|
+
header: c(Z.columnAmountScheduled),
|
|
258
|
+
cell: a("amountScheduledLabel", y.AmountScheduled)
|
|
268
259
|
},
|
|
269
|
-
[
|
|
260
|
+
[y.AmountPaid]: {
|
|
270
261
|
accessorKey: "amountPaidLabel",
|
|
271
262
|
enableSorting: !1,
|
|
272
|
-
header:
|
|
273
|
-
cell:
|
|
263
|
+
header: c(Z.columnAmountPaid),
|
|
264
|
+
cell: a("amountPaidLabel", y.AmountPaid, o, "amountPaidIsGap")
|
|
274
265
|
},
|
|
275
|
-
[
|
|
266
|
+
[y.TotalAmount]: {
|
|
276
267
|
accessorKey: "totalAmountLabel",
|
|
277
268
|
enableSorting: !1,
|
|
278
|
-
header:
|
|
279
|
-
cell:
|
|
269
|
+
header: c(Z.columnTotalAmount),
|
|
270
|
+
cell: a("totalAmountLabel", y.TotalAmount)
|
|
280
271
|
},
|
|
281
|
-
[
|
|
272
|
+
[y.AddedOn]: {
|
|
282
273
|
accessorKey: "addedOnLabel",
|
|
283
274
|
enableSorting: !0,
|
|
284
|
-
header: e(
|
|
285
|
-
cell: t("addedOnLabel",
|
|
275
|
+
header: e(Z.columnAddedOn),
|
|
276
|
+
cell: t("addedOnLabel", y.AddedOn)
|
|
286
277
|
}
|
|
287
278
|
};
|
|
288
|
-
}, [
|
|
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__ */
|
|
282
|
+
header: () => /* @__PURE__ */ S("span", {
|
|
292
283
|
className: "ttw:sr-only",
|
|
293
|
-
children:
|
|
284
|
+
children: Z.columnActions
|
|
294
285
|
}),
|
|
295
|
-
cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */
|
|
286
|
+
cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ S("div", {
|
|
296
287
|
className: "ttw:flex ttw:justify-end",
|
|
297
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
]),
|
|
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__ */
|
|
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":
|
|
317
|
-
placeholder:
|
|
318
|
-
value:
|
|
319
|
-
onChange: (e) =>
|
|
307
|
+
"aria-label": Z.searchLabel,
|
|
308
|
+
placeholder: Z.searchPlaceholder,
|
|
309
|
+
value: Me,
|
|
310
|
+
onChange: (e) => Ne(e.target.value)
|
|
320
311
|
})]
|
|
321
|
-
}),
|
|
322
|
-
|
|
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:
|
|
343
|
-
|
|
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:
|
|
318
|
+
children: Ke
|
|
349
319
|
});
|
|
350
|
-
return /* @__PURE__ */
|
|
320
|
+
return /* @__PURE__ */ C("div", {
|
|
351
321
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
352
|
-
children: [
|
|
353
|
-
|
|
354
|
-
children:
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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__ */
|
|
336
|
+
children: [/* @__PURE__ */ C("div", {
|
|
377
337
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
378
|
-
children: [
|
|
379
|
-
"aria-label":
|
|
380
|
-
children:
|
|
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: [
|
|
384
|
-
className:
|
|
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__ */
|
|
353
|
+
})] }, e.id))
|
|
354
|
+
}), /* @__PURE__ */ C("div", {
|
|
389
355
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
390
|
-
children: [
|
|
356
|
+
children: [B ? /* @__PURE__ */ S(d, { children: /* @__PURE__ */ C(l, { children: [/* @__PURE__ */ S(f, {
|
|
391
357
|
asChild: !0,
|
|
392
|
-
children: /* @__PURE__ */
|
|
358
|
+
children: /* @__PURE__ */ S(e, {
|
|
393
359
|
variant: "outline",
|
|
394
360
|
size: "icon",
|
|
395
|
-
"aria-label":
|
|
396
|
-
onClick:
|
|
397
|
-
children: /* @__PURE__ */
|
|
361
|
+
"aria-label": Z.settingsButton,
|
|
362
|
+
onClick: B,
|
|
363
|
+
children: /* @__PURE__ */ S(ge, { className: "ttw:size-4" })
|
|
398
364
|
})
|
|
399
|
-
}), /* @__PURE__ */
|
|
400
|
-
onClick:
|
|
401
|
-
children: [/* @__PURE__ */
|
|
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 =
|
|
406
|
-
title:
|
|
407
|
-
description:
|
|
408
|
-
retryLabel:
|
|
409
|
-
onRetry:
|
|
410
|
-
}) :
|
|
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:
|
|
413
|
-
emailAddress:
|
|
414
|
-
onCopyEmail:
|
|
415
|
-
onFilesSelected:
|
|
416
|
-
accept:
|
|
417
|
-
maxFiles:
|
|
418
|
-
uploadStatus:
|
|
419
|
-
uploadErrorMessage:
|
|
420
|
-
onEnterManually:
|
|
421
|
-
labels:
|
|
422
|
-
}) : /* @__PURE__ */
|
|
423
|
-
onFilesSelected:
|
|
424
|
-
accept:
|
|
425
|
-
maxFiles:
|
|
426
|
-
uploadStatus:
|
|
427
|
-
uploadErrorMessage:
|
|
428
|
-
onEnterManually:
|
|
429
|
-
labels:
|
|
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__ */
|
|
397
|
+
}) : /* @__PURE__ */ C("div", {
|
|
432
398
|
className: "ttw:relative",
|
|
433
|
-
onDragEnter:
|
|
434
|
-
onDragOver:
|
|
435
|
-
onDragLeave:
|
|
436
|
-
onDrop:
|
|
437
|
-
children: [/* @__PURE__ */
|
|
438
|
-
columns:
|
|
439
|
-
data:
|
|
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:
|
|
443
|
-
sorting:
|
|
444
|
-
onSortingChange:
|
|
445
|
-
pageSize:
|
|
446
|
-
onPageSizeChange:
|
|
447
|
-
pageSizeOptions:
|
|
448
|
-
showPagination:
|
|
449
|
-
pageInfo:
|
|
450
|
-
hasNextPage:
|
|
451
|
-
hasPrevPage:
|
|
452
|
-
onNextPage:
|
|
453
|
-
onPrevPage:
|
|
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) =>
|
|
456
|
-
rowClassName: (e) =>
|
|
457
|
-
rowGroup:
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
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: [
|
|
429
|
+
children: [n ? /* @__PURE__ */ S(n, { className: "ttw:size-4" }) : null, e.label]
|
|
474
430
|
}, e.id);
|
|
475
431
|
}) }) : void 0,
|
|
476
|
-
filterComponent:
|
|
477
|
-
children:
|
|
478
|
-
title:
|
|
479
|
-
description:
|
|
480
|
-
}) :
|
|
481
|
-
title:
|
|
482
|
-
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
|
-
}),
|
|
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__ */
|
|
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__ */
|
|
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:
|
|
491
|
-
}), /* @__PURE__ */
|
|
446
|
+
children: Z.tableDropzoneTitle
|
|
447
|
+
}), /* @__PURE__ */ S("p", {
|
|
492
448
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
493
|
-
children:
|
|
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
|
|
454
|
+
return Ae.map((t) => /* @__PURE__ */ S(s, {
|
|
499
455
|
value: t.id,
|
|
500
|
-
children: t.id ===
|
|
456
|
+
children: t.id === N ? e : null
|
|
501
457
|
}, t.id));
|
|
502
458
|
})()]
|
|
503
459
|
})]
|
|
504
460
|
});
|
|
505
461
|
}
|
|
506
462
|
//#endregion
|
|
507
|
-
export {
|
|
463
|
+
export { D as BillsScreen, D as default, E as DEFAULT_BILL_COLUMNS };
|