@tesouro/embedded-components-react 0.11.191 → 0.11.193
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/fixtures/index.d.ts +257 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +179 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +124 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +55 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index13.js +94 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +172 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
import { formatMoneyExact as e } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
6
6
|
import "../../../../shared/util/dist/index.js";
|
|
7
7
|
import "../../../util/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import { BillsFilterField as
|
|
8
|
+
import { billStatusFilterApiValues as t } from "./index4.js";
|
|
9
|
+
import { BillsFilterField as n } from "../../ui/dist/index12.js";
|
|
10
10
|
import "../../ui/dist/index.js";
|
|
11
|
-
import { BillSummaryCard as
|
|
12
|
-
import { BillsDatePreset as
|
|
13
|
-
import { BILLS_FILTER_LABELS_EN as
|
|
14
|
-
import { getCounterpartName as
|
|
15
|
-
import { useCounterpartsQuery as
|
|
11
|
+
import { BillSummaryCard as r, billSummaryCardFilter as i } from "./index10.js";
|
|
12
|
+
import { BillsDatePreset as a, resolveDatePreset as o } from "./index13.js";
|
|
13
|
+
import { BILLS_FILTER_LABELS_EN as s } from "./index14.js";
|
|
14
|
+
import { getCounterpartName as c } from "../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
15
|
+
import { useCounterpartsQuery as l } from "../../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
16
16
|
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
17
|
-
import { useCallback as
|
|
17
|
+
import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
18
18
|
import { format as h, formatISO as g } from "date-fns";
|
|
19
19
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js
|
|
20
20
|
var _ = {
|
|
@@ -24,28 +24,28 @@ var _ = {
|
|
|
24
24
|
Amount: "amount",
|
|
25
25
|
Vendor: "vendor",
|
|
26
26
|
Attachment: "attachment"
|
|
27
|
-
}, v = 50,
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
},
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
27
|
+
}, v = [], y = 50, b = 300, x = "MMM d, yyyy", S = 864e5, C = {
|
|
28
|
+
[n.IssueDate]: "issued_at",
|
|
29
|
+
[n.DueDate]: "due_date",
|
|
30
|
+
[n.AddedOn]: "created_at"
|
|
31
|
+
}, w = {
|
|
32
|
+
[a.Today]: "current",
|
|
33
|
+
[a.ThisWeek]: "current",
|
|
34
|
+
[a.ThisMonth]: "current",
|
|
35
|
+
[a.ThisQuarter]: "current",
|
|
36
|
+
[a.ThisYear]: "current",
|
|
37
|
+
[a.Yesterday]: "past",
|
|
38
|
+
[a.LastWeek]: "past",
|
|
39
|
+
[a.LastMonth]: "past",
|
|
40
|
+
[a.Last30Days]: "past",
|
|
41
|
+
[a.Last90Days]: "past",
|
|
42
|
+
[a.LastQuarter]: "past",
|
|
43
|
+
[a.LastYear]: "past"
|
|
44
44
|
};
|
|
45
|
-
function
|
|
45
|
+
function T(e = null) {
|
|
46
46
|
return {
|
|
47
47
|
summaryCard: e,
|
|
48
|
-
dateField:
|
|
48
|
+
dateField: n.DueDate,
|
|
49
49
|
statuses: [],
|
|
50
50
|
amountMode: "any",
|
|
51
51
|
amountMin: "",
|
|
@@ -53,242 +53,250 @@ function S(e = null) {
|
|
|
53
53
|
vendorIds: []
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function E(e) {
|
|
57
57
|
let t = Number.parseFloat(e);
|
|
58
58
|
return Number.isFinite(t) ? Math.round(t * 100) : void 0;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
let
|
|
62
|
-
...
|
|
63
|
-
...
|
|
60
|
+
function D({ statusOptions: a = v, offersVendorFilter: D = !0, isVendorFilterPaused: O = !1, onFiltersChange: k, initialSummaryCard: ee = null, onSummaryCardChange: A, today: j, labels: M } = {}) {
|
|
61
|
+
let N = f(() => ({
|
|
62
|
+
...s,
|
|
63
|
+
...M,
|
|
64
64
|
presets: {
|
|
65
|
-
...
|
|
66
|
-
...
|
|
65
|
+
...s.presets,
|
|
66
|
+
...M?.presets
|
|
67
67
|
},
|
|
68
68
|
statuses: {
|
|
69
|
-
...
|
|
70
|
-
...
|
|
69
|
+
...s.statuses,
|
|
70
|
+
...M?.statuses
|
|
71
71
|
},
|
|
72
72
|
dateFieldNames: {
|
|
73
|
-
...
|
|
74
|
-
...
|
|
73
|
+
...s.dateFieldNames,
|
|
74
|
+
...M?.dateFieldNames
|
|
75
75
|
}
|
|
76
|
-
}), [
|
|
77
|
-
e !==
|
|
78
|
-
}, [
|
|
79
|
-
|
|
76
|
+
}), [M]), [P, F] = m(() => T(ee)), I = a.length > 0 && !P.summaryCard, L = I ? a : v, R = u((e) => {
|
|
77
|
+
e !== P.summaryCard && A?.(e);
|
|
78
|
+
}, [A, P.summaryCard]), [z, B] = m({}), [V, H] = m(""), [U, W] = m(""), G = u((e) => {
|
|
79
|
+
F((t) => ({
|
|
80
80
|
...t,
|
|
81
81
|
...e
|
|
82
|
-
})),
|
|
83
|
-
}, [
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
})), k?.();
|
|
83
|
+
}, [k]);
|
|
84
|
+
d(() => {
|
|
85
|
+
D || F((e) => e.vendorIds.length === 0 ? e : (k?.(), {
|
|
86
86
|
...e,
|
|
87
87
|
vendorIds: []
|
|
88
88
|
}));
|
|
89
|
-
}, [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
statuses:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
let e =
|
|
89
|
+
}, [D, k]), d(() => {
|
|
90
|
+
F((e) => {
|
|
91
|
+
let t = e.statuses.filter((e) => L.includes(e));
|
|
92
|
+
return t.length === e.statuses.length ? e : (k?.(), {
|
|
93
|
+
...e,
|
|
94
|
+
statuses: t
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}, [L, k]);
|
|
98
|
+
let K = f(() => P.statuses.filter((e) => L.includes(e)), [P.statuses, L]), q = P.summaryCard === r.Overdue ? j : void 0, J = p(q);
|
|
99
|
+
d(() => {
|
|
100
|
+
let e = J.current;
|
|
101
|
+
J.current = q, e && q && e !== q && k?.();
|
|
102
|
+
}, [q, k]), d(() => {
|
|
103
|
+
let e = setTimeout(() => W(V.trim()), b);
|
|
101
104
|
return () => clearTimeout(e);
|
|
102
|
-
}, [
|
|
103
|
-
let
|
|
104
|
-
enabled:
|
|
105
|
+
}, [V]);
|
|
106
|
+
let Y = l({
|
|
107
|
+
enabled: D && !O,
|
|
105
108
|
is_vendor: !0,
|
|
106
109
|
sort: "counterpart_name",
|
|
107
110
|
order: "asc",
|
|
108
|
-
limit:
|
|
109
|
-
counterpart_name__icontains:
|
|
110
|
-
}),
|
|
111
|
+
limit: y,
|
|
112
|
+
counterpart_name__icontains: U || void 0
|
|
113
|
+
}), X = f(() => (Y.data?.data ?? []).map((e) => ({
|
|
111
114
|
value: e.id,
|
|
112
|
-
label:
|
|
113
|
-
})), [
|
|
115
|
+
label: c(e)
|
|
116
|
+
})), [Y.data?.data]), te = f(() => a.map((e) => ({
|
|
114
117
|
value: e,
|
|
115
|
-
label:
|
|
116
|
-
})), [
|
|
118
|
+
label: N.statuses[e]
|
|
119
|
+
})), [a, N.statuses]), ne = f(() => Object.entries(w).map(([e, t]) => ({
|
|
117
120
|
value: e,
|
|
118
|
-
label:
|
|
119
|
-
group: t === "current" ?
|
|
121
|
+
label: N.presets[e],
|
|
122
|
+
group: t === "current" ? N.presetGroupCurrent : N.presetGroupPast
|
|
120
123
|
})), [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
]),
|
|
125
|
-
let e = {},
|
|
126
|
-
if (
|
|
127
|
-
let t = "total_amount__gte", n = "total_amount__lte", r =
|
|
128
|
-
|
|
124
|
+
N.presetGroupCurrent,
|
|
125
|
+
N.presetGroupPast,
|
|
126
|
+
N.presets
|
|
127
|
+
]), re = f(() => {
|
|
128
|
+
let e = {}, n = C[P.dateField], r = (e) => Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
|
|
129
|
+
if (P.dateFrom && (e[`${n}__gte`] = n === "created_at" ? new Date(r(P.dateFrom)).toISOString() : g(P.dateFrom, { representation: "date" })), P.dateTo && (n === "created_at" ? e.created_at__lt = new Date(r(P.dateTo) + S).toISOString() : e[`${n}__lte`] = g(P.dateTo, { representation: "date" })), K.length > 0 && (e.status__in = t(K)), P.amountMode !== "any") {
|
|
130
|
+
let t = "total_amount__gte", n = "total_amount__lte", r = E(P.amountMin), i = E(P.amountMax);
|
|
131
|
+
P.amountMode === "exact" ? r !== void 0 && (e[t] = r, e[n] = r) : (r !== void 0 && (e[t] = r), i !== void 0 && (e[n] = i));
|
|
129
132
|
}
|
|
130
|
-
return
|
|
131
|
-
}, [
|
|
132
|
-
|
|
133
|
+
return P.vendorIds.length > 0 && (e.counterpart_id__in = [...P.vendorIds]), P.hasFile !== void 0 && (e.has_file = P.hasFile), P.summaryCard && Object.assign(e, i(P.summaryCard, j).query), e;
|
|
134
|
+
}, [
|
|
135
|
+
P,
|
|
136
|
+
K,
|
|
137
|
+
j
|
|
138
|
+
]), Z = f(() => {
|
|
139
|
+
let t = [], a = (e) => h(e, x), o = (e) => {
|
|
133
140
|
let [t, ...n] = e;
|
|
134
|
-
return t ? n.length === 0 ? t :
|
|
141
|
+
return t ? n.length === 0 ? t : N.moreSelected(t, n.length) : "";
|
|
135
142
|
};
|
|
136
|
-
if (
|
|
137
|
-
let { statuses: e } =
|
|
143
|
+
if (P.summaryCard) {
|
|
144
|
+
let { statuses: e } = i(P.summaryCard, j);
|
|
138
145
|
t.push({
|
|
139
146
|
key: _.SummaryCard,
|
|
140
|
-
label:
|
|
147
|
+
label: P.summaryCard === r.Overdue ? N.dateChip(N.dateFieldNames[n.DueDate], N.pastDue) : N.statusChip(e ? o(e.map((e) => N.statuses[e])) : N.scheduledStatus)
|
|
141
148
|
});
|
|
142
149
|
}
|
|
143
|
-
if (
|
|
144
|
-
let e = (
|
|
150
|
+
if (P.dateFrom || P.dateTo) {
|
|
151
|
+
let e = (P.datePreset ? N.presets[P.datePreset] : void 0) ?? (P.dateFrom && P.dateTo ? N.dateRange(a(P.dateFrom), a(P.dateTo)) : P.dateFrom ? N.dateFrom(a(P.dateFrom)) : N.dateTo(a(P.dateTo)));
|
|
145
152
|
t.push({
|
|
146
153
|
key: _.Date,
|
|
147
|
-
label:
|
|
154
|
+
label: N.dateChip(N.dateFieldNames[P.dateField], e)
|
|
148
155
|
});
|
|
149
156
|
}
|
|
150
|
-
if (
|
|
157
|
+
if (K.length > 0 && t.push({
|
|
151
158
|
key: _.Status,
|
|
152
|
-
label:
|
|
153
|
-
}),
|
|
159
|
+
label: N.statusChip(o(K.map((e) => N.statuses[e] ?? e)))
|
|
160
|
+
}), P.vendorIds.length > 0 && t.push({
|
|
154
161
|
key: _.Vendor,
|
|
155
|
-
label:
|
|
156
|
-
}),
|
|
162
|
+
label: N.vendorChip(o(P.vendorIds.map((e) => z[e] ?? e)))
|
|
163
|
+
}), P.amountMode !== "any") {
|
|
157
164
|
let n = (t) => {
|
|
158
165
|
let n = Number.parseFloat(t);
|
|
159
166
|
return Number.isFinite(n) ? e(n, { currencyCode: "USD" }) : "";
|
|
160
|
-
}, r = n(
|
|
167
|
+
}, r = n(P.amountMin), i = n(P.amountMax), a = P.amountMode === "exact" ? r : r && i ? N.amountBetween(r, i) : r ? N.amountAtLeast(r) : i ? N.amountAtMost(i) : "";
|
|
161
168
|
a && t.push({
|
|
162
169
|
key: _.Amount,
|
|
163
|
-
label:
|
|
170
|
+
label: N.amountChip(a)
|
|
164
171
|
});
|
|
165
172
|
}
|
|
166
|
-
return
|
|
173
|
+
return P.hasFile !== void 0 && t.push({
|
|
167
174
|
key: _.Attachment,
|
|
168
|
-
label:
|
|
175
|
+
label: P.hasFile ? N.attachmentChipHas : N.attachmentChipNone
|
|
169
176
|
}), t;
|
|
170
177
|
}, [
|
|
178
|
+
N,
|
|
179
|
+
P,
|
|
180
|
+
K,
|
|
171
181
|
j,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
I
|
|
175
|
-
]), Z = d((e) => {
|
|
182
|
+
z
|
|
183
|
+
]), ie = u((e) => {
|
|
176
184
|
switch (e) {
|
|
177
185
|
case _.SummaryCard:
|
|
178
|
-
|
|
186
|
+
R(null), G({ summaryCard: null });
|
|
179
187
|
break;
|
|
180
188
|
case _.Date:
|
|
181
|
-
|
|
189
|
+
G({
|
|
182
190
|
datePreset: void 0,
|
|
183
191
|
dateFrom: void 0,
|
|
184
192
|
dateTo: void 0
|
|
185
193
|
});
|
|
186
194
|
break;
|
|
187
195
|
case _.Status:
|
|
188
|
-
|
|
196
|
+
G({ statuses: [] });
|
|
189
197
|
break;
|
|
190
198
|
case _.Vendor:
|
|
191
|
-
|
|
199
|
+
G({ vendorIds: [] });
|
|
192
200
|
break;
|
|
193
201
|
case _.Amount:
|
|
194
|
-
|
|
202
|
+
G({
|
|
195
203
|
amountMode: "any",
|
|
196
204
|
amountMin: "",
|
|
197
205
|
amountMax: ""
|
|
198
206
|
});
|
|
199
207
|
break;
|
|
200
|
-
case _.Attachment:
|
|
208
|
+
case _.Attachment: G({ hasFile: void 0 });
|
|
201
209
|
}
|
|
202
|
-
}, [
|
|
203
|
-
|
|
204
|
-
}, [
|
|
205
|
-
|
|
210
|
+
}, [R, G]), Q = u(() => {
|
|
211
|
+
R(null), F(T()), k?.();
|
|
212
|
+
}, [k, R]), $ = u((e) => {
|
|
213
|
+
F((t) => t.summaryCard === e ? t : {
|
|
206
214
|
...t,
|
|
207
215
|
summaryCard: e
|
|
208
|
-
}),
|
|
209
|
-
}, [
|
|
210
|
-
|
|
211
|
-
}, [$,
|
|
212
|
-
|
|
216
|
+
}), k?.();
|
|
217
|
+
}, [k]), ae = u((e) => {
|
|
218
|
+
R(e), $(e);
|
|
219
|
+
}, [$, R]), oe = u((e) => {
|
|
220
|
+
B((t) => ({
|
|
213
221
|
...t,
|
|
214
222
|
[e.id]: e.name
|
|
215
|
-
})),
|
|
216
|
-
...
|
|
223
|
+
})), R(null), F({
|
|
224
|
+
...T(),
|
|
217
225
|
vendorIds: [e.id]
|
|
218
|
-
}),
|
|
219
|
-
}, [
|
|
220
|
-
|
|
226
|
+
}), k?.();
|
|
227
|
+
}, [k, R]), se = u((e) => {
|
|
228
|
+
B((t) => {
|
|
221
229
|
let n = { ...t };
|
|
222
|
-
for (let t of
|
|
230
|
+
for (let t of X) e.includes(t.value) && (n[t.value] = t.label);
|
|
223
231
|
return n;
|
|
224
|
-
}),
|
|
225
|
-
}, [
|
|
232
|
+
}), G({ vendorIds: e });
|
|
233
|
+
}, [G, X]);
|
|
226
234
|
return {
|
|
227
235
|
filterBarProps: {
|
|
228
|
-
fields: [...
|
|
229
|
-
...
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
...
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
], [
|
|
237
|
-
activeFilterCount:
|
|
238
|
-
chips:
|
|
239
|
-
onRemoveChip:
|
|
236
|
+
fields: [...f(() => [
|
|
237
|
+
...D ? [n.Vendor] : [],
|
|
238
|
+
n.IssueDate,
|
|
239
|
+
n.DueDate,
|
|
240
|
+
...I ? [n.Status] : [],
|
|
241
|
+
n.TotalAmount,
|
|
242
|
+
n.AddedOn,
|
|
243
|
+
n.Attachment
|
|
244
|
+
], [I, D])],
|
|
245
|
+
activeFilterCount: Z.length,
|
|
246
|
+
chips: Z,
|
|
247
|
+
onRemoveChip: ie,
|
|
240
248
|
onClearAll: Q,
|
|
241
|
-
dateField:
|
|
249
|
+
dateField: P.dateField,
|
|
242
250
|
onDateFieldChange: (e) => {
|
|
243
|
-
let t = !!(
|
|
244
|
-
|
|
251
|
+
let t = !!(P.dateFrom || P.dateTo);
|
|
252
|
+
F((t) => ({
|
|
245
253
|
...t,
|
|
246
254
|
dateField: e
|
|
247
|
-
})), t &&
|
|
255
|
+
})), t && k?.();
|
|
248
256
|
},
|
|
249
|
-
datePresets:
|
|
250
|
-
selectedDatePreset:
|
|
251
|
-
dateFrom:
|
|
252
|
-
dateTo:
|
|
253
|
-
onDateRangeChange: ({ from: e, to: t }) =>
|
|
257
|
+
datePresets: ne,
|
|
258
|
+
selectedDatePreset: P.datePreset,
|
|
259
|
+
dateFrom: P.dateFrom,
|
|
260
|
+
dateTo: P.dateTo,
|
|
261
|
+
onDateRangeChange: ({ from: e, to: t }) => G({
|
|
254
262
|
datePreset: void 0,
|
|
255
263
|
dateFrom: e,
|
|
256
264
|
dateTo: t
|
|
257
265
|
}),
|
|
258
266
|
onDatePresetChange: (e) => {
|
|
259
|
-
let t = /* @__PURE__ */ new Date(),
|
|
260
|
-
|
|
267
|
+
let t = /* @__PURE__ */ new Date(), r = P.dateField === n.AddedOn ? new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()) : t, { from: i, to: a } = o(e, r);
|
|
268
|
+
G({
|
|
261
269
|
datePreset: e,
|
|
262
270
|
dateFrom: i,
|
|
263
271
|
dateTo: a
|
|
264
272
|
});
|
|
265
273
|
},
|
|
266
|
-
statusOptions:
|
|
267
|
-
selectedStatuses:
|
|
268
|
-
onStatusChange: (e) =>
|
|
269
|
-
amountMode:
|
|
270
|
-
onAmountModeChange: (e) =>
|
|
271
|
-
amountMin:
|
|
272
|
-
amountMax:
|
|
273
|
-
onAmountMinChange: (e) =>
|
|
274
|
-
onAmountMaxChange: (e) =>
|
|
275
|
-
vendorOptions:
|
|
276
|
-
selectedVendors:
|
|
277
|
-
onVendorChange:
|
|
278
|
-
vendorSearchValue:
|
|
279
|
-
onVendorSearchChange:
|
|
280
|
-
isVendorLoading:
|
|
281
|
-
isVendorError:
|
|
282
|
-
hasAttachment:
|
|
283
|
-
onHasAttachmentChange: (e) =>
|
|
274
|
+
statusOptions: te,
|
|
275
|
+
selectedStatuses: K,
|
|
276
|
+
onStatusChange: (e) => G({ statuses: e }),
|
|
277
|
+
amountMode: P.amountMode,
|
|
278
|
+
onAmountModeChange: (e) => G({ amountMode: e }),
|
|
279
|
+
amountMin: P.amountMin,
|
|
280
|
+
amountMax: P.amountMax,
|
|
281
|
+
onAmountMinChange: (e) => G({ amountMin: e }),
|
|
282
|
+
onAmountMaxChange: (e) => G({ amountMax: e }),
|
|
283
|
+
vendorOptions: X,
|
|
284
|
+
selectedVendors: P.vendorIds,
|
|
285
|
+
onVendorChange: se,
|
|
286
|
+
vendorSearchValue: V,
|
|
287
|
+
onVendorSearchChange: H,
|
|
288
|
+
isVendorLoading: Y.isLoading || O,
|
|
289
|
+
isVendorError: Y.isError,
|
|
290
|
+
hasAttachment: P.hasFile,
|
|
291
|
+
onHasAttachmentChange: (e) => G({ hasFile: e })
|
|
284
292
|
},
|
|
285
|
-
query:
|
|
286
|
-
isFilterActive:
|
|
293
|
+
query: re,
|
|
294
|
+
isFilterActive: Z.length > 0,
|
|
287
295
|
clearAll: Q,
|
|
288
|
-
filterByVendor:
|
|
289
|
-
summaryCard:
|
|
290
|
-
selectSummaryCard:
|
|
296
|
+
filterByVendor: oe,
|
|
297
|
+
summaryCard: P.summaryCard,
|
|
298
|
+
selectSummaryCard: ae,
|
|
291
299
|
applySummaryCard: $
|
|
292
300
|
};
|
|
293
301
|
}
|
|
294
|
-
export { _ as BillsFilterChipKey,
|
|
302
|
+
export { _ as BillsFilterChipKey, D as useBillsFilters };
|