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