@tesouro/embedded-components-react 0.5.141 → 0.5.144
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.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
- 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/relativeCalendarDay.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
|
@@ -2,213 +2,34 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "../../../shared/
|
|
9
|
-
import "
|
|
10
|
-
import { useWidgetConfig as ee, useWidgetInitStaleForToken as te } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
-
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { useDuplicateBillsCount as ne } from "./index10.js";
|
|
13
|
-
import { AddBillDialog as r } from "../../ui/dist/index10.js";
|
|
14
|
-
import { BillsScreen as re } from "../../ui/dist/index82.js";
|
|
15
|
-
import "../../ui/dist/index.js";
|
|
16
|
-
import { DuplicateBillsContainer as ie } from "./index12.js";
|
|
17
|
-
import "./index14.js";
|
|
18
|
-
import { BillCreateDialog as i } from "./index60.js";
|
|
19
|
-
import "./index61.js";
|
|
20
|
-
import { BillDetailsContainer as ae } from "./index63.js";
|
|
21
|
-
import "./index64.js";
|
|
22
|
-
import "./index70.js";
|
|
23
|
-
import "./index71.js";
|
|
24
|
-
import { BILL_QUEUE_ORDER as a } from "./index73.js";
|
|
25
|
-
import { BILLS_TAB_LABELS_EN as o } from "./index76.js";
|
|
26
|
-
import { useBillsTable as s } from "./index84.js";
|
|
27
|
-
import { formatBillQueueBadge as c } from "./index72.js";
|
|
28
|
-
import { copyTextToClipboard as l } from "./index74.js";
|
|
29
|
-
import { resolveDuplicateWarning as u } from "./index75.js";
|
|
30
|
-
import { billsTabTestIds as d, billsTableCellTestIds as f } from "./index77.js";
|
|
31
|
-
import { useBillQueueCounts as oe } from "./index78.js";
|
|
32
|
-
import { useCallback as p, useEffect as m, useMemo as h, useState as g } from "react";
|
|
33
|
-
import { jsx as _, jsxs as se } from "react/jsx-runtime";
|
|
5
|
+
import { useCounterpartsByIdsQuery as e } from "../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
6
|
+
import { resolveVendorName as t } from "./index8.js";
|
|
7
|
+
import { getCounterpartName as n } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
8
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
9
|
+
import { useMemo as r } from "react";
|
|
34
10
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
...y?.filters?.statuses
|
|
54
|
-
},
|
|
55
|
-
dateFieldNames: {
|
|
56
|
-
...o.filters.dateFieldNames,
|
|
57
|
-
...y?.filters?.dateFieldNames
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
filterBar: {
|
|
61
|
-
...o.filterBar,
|
|
62
|
-
...y?.filterBar
|
|
63
|
-
},
|
|
64
|
-
queueEmptyStates: a.reduce((e, t) => ({
|
|
65
|
-
...e,
|
|
66
|
-
[t]: {
|
|
67
|
-
...o.queueEmptyStates[t],
|
|
68
|
-
...y?.queueEmptyStates?.[t]
|
|
69
|
-
}
|
|
70
|
-
}), {})
|
|
71
|
-
}), [y]), [ce, O] = g(!1), [le, k] = g(), [A, j] = g(), [M, N] = g(!1), [P, F] = g(), [I, L] = g(!1), [R, z] = g(!1), [B, V] = g(!1), { initResponse: H } = ee(), U = te(), ue = t(H?.scopes, [n.PayableReadOrg]), de = t(H?.scopes, [n.PayableWriteOrg]), W = !H || ue, G = !H || de, fe = p((e, t) => {
|
|
72
|
-
if (t && G) {
|
|
73
|
-
k(e), j(void 0), N(!0);
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
F(e), z(!0);
|
|
77
|
-
}, [G]), pe = t(H?.scopes, [n.CounterpartReadOrg]), K = s({
|
|
78
|
-
enabled: W,
|
|
79
|
-
canReadVendors: pe,
|
|
80
|
-
isVendorFilterPaused: U,
|
|
81
|
-
filterLabels: D.filters,
|
|
82
|
-
onOpenBill: fe,
|
|
83
|
-
duplicateRowNote: D.duplicateRowNote,
|
|
84
|
-
attachmentLabel: D.attachmentIndicator
|
|
85
|
-
}), q = ne({ enabled: W }), me = u(q, D), J = oe({ enabled: W }), he = h(() => a.map((e) => ({
|
|
86
|
-
id: e,
|
|
87
|
-
label: D.queues[e],
|
|
88
|
-
badge: c(J[e])
|
|
89
|
-
})), [D.queues, J]), ge = (e) => {
|
|
90
|
-
V(!1), F(e), z(!0);
|
|
91
|
-
}, _e = () => {
|
|
92
|
-
L(!1), z(!0);
|
|
93
|
-
}, ve = () => {
|
|
94
|
-
z(!1), L(!0);
|
|
95
|
-
}, Y = () => {
|
|
96
|
-
L(!1), z(!1), k(P), j(void 0), N(!0);
|
|
97
|
-
}, ye = h(() => ({
|
|
98
|
-
createButton: D.createButton,
|
|
99
|
-
settingsButton: D.settingsButton,
|
|
100
|
-
addBill: { heading: D.nonEmptyHeading }
|
|
101
|
-
}), [
|
|
102
|
-
D.createButton,
|
|
103
|
-
D.settingsButton,
|
|
104
|
-
D.nonEmptyHeading
|
|
105
|
-
]), be = h(() => ({
|
|
106
|
-
...K.filterBarProps,
|
|
107
|
-
labels: D.filterBar
|
|
108
|
-
}), [K.filterBarProps, D.filterBar]), X = p((e) => {
|
|
109
|
-
O(!1), k(void 0), j(e), N(!0);
|
|
110
|
-
}, []), Z = (e) => {
|
|
111
|
-
O(!1), b?.(e);
|
|
112
|
-
}, Q = async () => {
|
|
113
|
-
await l(v) ? e.success(D.emailCopiedToast) : e.error(D.emailCopyFailedToast);
|
|
11
|
+
var i = {
|
|
12
|
+
Resolving: "resolving",
|
|
13
|
+
Unavailable: "unavailable",
|
|
14
|
+
Settled: "settled"
|
|
15
|
+
}, a = /* @__PURE__ */ new Map();
|
|
16
|
+
function o({ payables: i, enabled: o, canReadVendors: c = !0, isPaused: l = !1 } = {}) {
|
|
17
|
+
let u = r(() => (i ?? []).filter((e) => !t(e)).map((e) => e.counterpart_id).filter((e) => !!e), [i]), d = e({
|
|
18
|
+
counterpartIds: u,
|
|
19
|
+
enabled: o !== !1 && c && !l
|
|
20
|
+
}), f = !c && !l;
|
|
21
|
+
return {
|
|
22
|
+
vendorNames: r(() => f ? a : new Map((d.data?.data ?? []).map((e) => [e.id, n(e)]).filter((e) => !!e[1])), [d.data?.data, f]),
|
|
23
|
+
lookup: s({
|
|
24
|
+
hasUnresolvedIds: u.length > 0,
|
|
25
|
+
isScopeWithdrawn: f,
|
|
26
|
+
isFetching: d.isFetching,
|
|
27
|
+
isError: d.isError
|
|
28
|
+
})
|
|
114
29
|
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
let { showVendorBills: $ } = K;
|
|
119
|
-
return m(() => {
|
|
120
|
-
C && (C.action === "createBill" ? G && X(C.vendorId) : $({
|
|
121
|
-
id: C.vendorId,
|
|
122
|
-
name: C.vendorName
|
|
123
|
-
}), w?.());
|
|
124
|
-
}, [
|
|
125
|
-
G,
|
|
126
|
-
w,
|
|
127
|
-
X,
|
|
128
|
-
$,
|
|
129
|
-
C
|
|
130
|
-
]), /* @__PURE__ */ se("div", {
|
|
131
|
-
"data-testid": d.root,
|
|
132
|
-
children: [
|
|
133
|
-
/* @__PURE__ */ _(re, {
|
|
134
|
-
rows: K.rows,
|
|
135
|
-
isLoading: K.isLoading || !H,
|
|
136
|
-
isError: K.isError,
|
|
137
|
-
onRetry: K.onRetry,
|
|
138
|
-
sorting: K.sorting,
|
|
139
|
-
onSortingChange: K.onSortingChange,
|
|
140
|
-
pageSize: K.pageSize,
|
|
141
|
-
onPageSizeChange: K.onPageSizeChange,
|
|
142
|
-
hasNextPage: K.hasNextPage,
|
|
143
|
-
hasPrevPage: K.hasPrevPage,
|
|
144
|
-
onNextPage: K.onNextPage,
|
|
145
|
-
onPrevPage: K.onPrevPage,
|
|
146
|
-
filterTabs: he,
|
|
147
|
-
selectedFilterTabId: K.selectedFilterTabId,
|
|
148
|
-
onFilterTabChange: K.onFilterTabChange,
|
|
149
|
-
searchValue: K.searchValue,
|
|
150
|
-
onSearchChange: K.onSearchChange,
|
|
151
|
-
filters: be,
|
|
152
|
-
visibleColumns: K.visibleColumns,
|
|
153
|
-
cellTestIds: f,
|
|
154
|
-
isSearchActive: K.isSearchActive,
|
|
155
|
-
showAddPanelWhenEmpty: K.showAddPanelWhenEmpty,
|
|
156
|
-
emptyState: D.queueEmptyStates[K.selectedFilterTabId],
|
|
157
|
-
onCreateClick: G ? () => O(!0) : void 0,
|
|
158
|
-
onSettingsClick: E,
|
|
159
|
-
onEnterManually: G ? () => X() : void 0,
|
|
160
|
-
onFilesSelected: G ? Z : void 0,
|
|
161
|
-
maxFiles: 10,
|
|
162
|
-
emailAddress: v,
|
|
163
|
-
onCopyEmail: Q,
|
|
164
|
-
duplicateWarning: me,
|
|
165
|
-
onReviewDuplicates: q.isError ? void 0 : () => V(!0),
|
|
166
|
-
labels: ye
|
|
167
|
-
}),
|
|
168
|
-
B ? /* @__PURE__ */ _(ie, {
|
|
169
|
-
open: B,
|
|
170
|
-
onOpenChange: V,
|
|
171
|
-
enabled: W,
|
|
172
|
-
canManageDuplicates: G,
|
|
173
|
-
onOpenBill: ge
|
|
174
|
-
}) : null,
|
|
175
|
-
G ? /* @__PURE__ */ _(r, {
|
|
176
|
-
open: ce,
|
|
177
|
-
onOpenChange: O,
|
|
178
|
-
onFilesSelected: Z,
|
|
179
|
-
maxFiles: 10,
|
|
180
|
-
onEnterManually: () => X(),
|
|
181
|
-
emailAddress: v,
|
|
182
|
-
onCopyEmail: Q,
|
|
183
|
-
labels: { heading: K.hasAnyBills ? D.nonEmptyHeading : D.emptyHeading }
|
|
184
|
-
}) : null,
|
|
185
|
-
M ? /* @__PURE__ */ _(i, {
|
|
186
|
-
open: M,
|
|
187
|
-
onOpenChange: N,
|
|
188
|
-
payableId: le,
|
|
189
|
-
initialCounterpartId: A
|
|
190
|
-
}) : null,
|
|
191
|
-
I ? /* @__PURE__ */ _(ae, {
|
|
192
|
-
open: I,
|
|
193
|
-
onOpenChange: L,
|
|
194
|
-
payableId: P,
|
|
195
|
-
onClose: () => L(!1),
|
|
196
|
-
onExpand: _e,
|
|
197
|
-
onEdit: Y,
|
|
198
|
-
testId: d.detailsSheet,
|
|
199
|
-
poweredByBankName: T
|
|
200
|
-
}) : null,
|
|
201
|
-
R ? /* @__PURE__ */ _(i, {
|
|
202
|
-
open: R,
|
|
203
|
-
onOpenChange: z,
|
|
204
|
-
payableId: P,
|
|
205
|
-
readOnly: !0,
|
|
206
|
-
onCollapse: ve,
|
|
207
|
-
onEdit: Y,
|
|
208
|
-
poweredByBankName: T
|
|
209
|
-
}) : null
|
|
210
|
-
]
|
|
211
|
-
});
|
|
30
|
+
}
|
|
31
|
+
function s({ hasUnresolvedIds: e, isScopeWithdrawn: t, isFetching: n, isError: r }) {
|
|
32
|
+
return e ? t ? i.Unavailable : n ? i.Resolving : r ? i.Unavailable : i.Settled : i.Settled;
|
|
212
33
|
}
|
|
213
34
|
//#endregion
|
|
214
|
-
export {
|
|
35
|
+
export { i as BillVendorLookup, o as useBillVendorNames };
|
|
@@ -1,4 +1,160 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { formatCalendarDate as t } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
7
|
+
import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
|
+
import { hasSuspectedPayableDuplicate as ee } from "../../data-access/dist/index7.js";
|
|
9
|
+
import { usePayablesQuery as r, usePayablesTotalCountQuery as i } from "../../data-access/dist/index17.js";
|
|
10
|
+
import "../../data-access/dist/index.js";
|
|
11
|
+
import { derivePayableStatus as te } from "./index7.js";
|
|
12
|
+
import { resolveVendorName as ne } from "./index8.js";
|
|
13
|
+
import { isEditablePayableStatus as re } from "./index19.js";
|
|
14
|
+
import { formatScheduledDateLabel as a } from "./index37.js";
|
|
15
|
+
import { useLocalCalendarDay as o } from "./index38.js";
|
|
16
|
+
import { BillQueue as s, DEFAULT_BILL_QUEUE as c, billQueueColumns as l, billQueueHasScheduledPayment as u, billQueueOffersAddPanel as ie, billQueueStatuses as ae, billSortColumnId as oe, billSortField as d } from "./index75.js";
|
|
17
|
+
import { useBillsFilters as f } from "./index84.js";
|
|
18
|
+
import { BillVendorLookup as p, useBillVendorNames as se } from "./index85.js";
|
|
19
|
+
import { useCallback as m, useEffect as h, useMemo as g, useState as _ } from "react";
|
|
20
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js
|
|
21
|
+
var v = 10, y = [{
|
|
22
|
+
id: "addedOnLabel",
|
|
23
|
+
desc: !0
|
|
24
|
+
}];
|
|
25
|
+
function b({ enabled: p = !0, canReadVendors: b = !0, isVendorFilterPaused: x = !1, filterLabels: S, onOpenBill: C, duplicateRowNote: w, attachmentLabel: T, scheduledRelativeDayLabels: E }) {
|
|
26
|
+
let D = o(), [O, k] = _(c), [A, j] = _(y), [M, le] = _(v), [N, P] = _(), [F, I] = _(""), [L, ue] = _(""), R = m(() => P(void 0), []);
|
|
27
|
+
h(() => {
|
|
28
|
+
if (F === L) return;
|
|
29
|
+
let e = setTimeout(() => {
|
|
30
|
+
ue(F), R();
|
|
31
|
+
}, 300);
|
|
32
|
+
return () => clearTimeout(e);
|
|
33
|
+
}, [
|
|
34
|
+
F,
|
|
35
|
+
L,
|
|
36
|
+
R
|
|
37
|
+
]);
|
|
38
|
+
let z = f({
|
|
39
|
+
offersStatusFilter: O === s.All,
|
|
40
|
+
offersVendorFilter: b,
|
|
41
|
+
isVendorFilterPaused: x,
|
|
42
|
+
labels: S,
|
|
43
|
+
onFiltersChange: R
|
|
44
|
+
}), { filterByVendor: B } = z, V = A[0], H = d(V?.id), U = H ? V?.desc ? "desc" : "asc" : void 0, W = g(() => ({
|
|
45
|
+
...z.query,
|
|
46
|
+
limit: M,
|
|
47
|
+
pagination_token: N,
|
|
48
|
+
status__in: ae(O) ?? z.query.status__in,
|
|
49
|
+
has_scheduled_payment: u(O),
|
|
50
|
+
counterpart_name__icontains: L || void 0,
|
|
51
|
+
sort: H,
|
|
52
|
+
order: U
|
|
53
|
+
}), [
|
|
54
|
+
z.query,
|
|
55
|
+
M,
|
|
56
|
+
N,
|
|
57
|
+
O,
|
|
58
|
+
L,
|
|
59
|
+
H,
|
|
60
|
+
U
|
|
61
|
+
]), { organizationId: de } = e(), G = JSON.stringify([de, W]), K = r({
|
|
62
|
+
...W,
|
|
63
|
+
enabled: p,
|
|
64
|
+
pollWhileOcrProcessing: !0
|
|
65
|
+
}), [fe, pe] = _(G);
|
|
66
|
+
h(() => {
|
|
67
|
+
K.isFetching || pe(G);
|
|
68
|
+
}, [K.isFetching, G]);
|
|
69
|
+
let q = K.data?.data.length, J = q === 0, Y = i({ enabled: p && J }), me = !J || (Y.data?.count ?? 1) > 0, { vendorNames: X, lookup: Z } = se({
|
|
70
|
+
payables: K.data?.data,
|
|
71
|
+
enabled: p,
|
|
72
|
+
canReadVendors: b,
|
|
73
|
+
isPaused: x
|
|
74
|
+
}), Q = g(() => (K.data?.data ?? []).filter((e) => e.ocr_status !== "processing").map((e) => {
|
|
75
|
+
let r = te({
|
|
76
|
+
apiStatus: e.status,
|
|
77
|
+
dueDate: e.due_date,
|
|
78
|
+
scheduledPaymentDate: e.scheduled_payment_date
|
|
79
|
+
}), i = e.amount_due ?? e.total_amount, o = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), l = a(e.scheduled_payment_date, E, D), u = ne(e) || (e.counterpart_id ? X.get(e.counterpart_id) ?? "" : "");
|
|
80
|
+
return {
|
|
81
|
+
rowKey: e.id,
|
|
82
|
+
vendorLabel: u,
|
|
83
|
+
vendorLookup: u || !e.counterpart_id ? void 0 : ce(Z),
|
|
84
|
+
issueDateLabel: t(e.issued_at),
|
|
85
|
+
dueDateLabel: t(e.due_date),
|
|
86
|
+
dueDateTone: r.isOverdue ? "danger" : "default",
|
|
87
|
+
scheduledDateLabel: l.label,
|
|
88
|
+
scheduledDateExact: l.absoluteLabel,
|
|
89
|
+
scheduledDateIsGap: O === s.Scheduled,
|
|
90
|
+
paidDateLabel: t(e.paid_at?.slice(0, 10)),
|
|
91
|
+
amountDueLabel: c(i),
|
|
92
|
+
amountPaidLabel: o ? c(e.amount_paid) : "",
|
|
93
|
+
amountPaidIsGap: O === s.Paid,
|
|
94
|
+
amountScheduledLabel: c(e.amount_to_pay ?? i),
|
|
95
|
+
totalAmountLabel: c(e.total_amount),
|
|
96
|
+
attachment: e.file_id ? { label: T } : void 0,
|
|
97
|
+
status: r.status,
|
|
98
|
+
statusTone: r.tone,
|
|
99
|
+
addedOnLabel: t(e.created_at?.slice(0, 10)),
|
|
100
|
+
...ee(e) ? {
|
|
101
|
+
rowTone: "warning",
|
|
102
|
+
rowNote: w
|
|
103
|
+
} : {},
|
|
104
|
+
onOpen: () => C(e.id, re(e.status))
|
|
105
|
+
};
|
|
106
|
+
}), [
|
|
107
|
+
K.data?.data,
|
|
108
|
+
w,
|
|
109
|
+
T,
|
|
110
|
+
E,
|
|
111
|
+
D,
|
|
112
|
+
C,
|
|
113
|
+
O,
|
|
114
|
+
X,
|
|
115
|
+
Z
|
|
116
|
+
]), $ = m((e) => {
|
|
117
|
+
let t = e;
|
|
118
|
+
k(t), j((e) => {
|
|
119
|
+
let n = e[0]?.id;
|
|
120
|
+
return n ? l(t).some((e) => oe(e) === n) ? e : y : e;
|
|
121
|
+
}), R();
|
|
122
|
+
}, [R]), he = m((e) => {
|
|
123
|
+
$(s.All), I(""), B(e);
|
|
124
|
+
}, [B, $]), ge = m((e) => {
|
|
125
|
+
j((t) => typeof e == "function" ? e(t) : e), R();
|
|
126
|
+
}, [R]), _e = m((e) => {
|
|
127
|
+
le(e), R();
|
|
128
|
+
}, [R]), ve = m(() => P(K.data?.next_pagination_token ?? void 0), [K.data?.next_pagination_token]), ye = m(() => P(K.data?.prev_pagination_token ?? void 0), [K.data?.prev_pagination_token]), be = m(() => {
|
|
129
|
+
K.refetch();
|
|
130
|
+
}, [K.refetch]);
|
|
131
|
+
return {
|
|
132
|
+
rows: Q,
|
|
133
|
+
isLoading: K.isLoading || G !== fe || J && Y.isLoading || (q ?? 0) > 0 && Q.length === 0,
|
|
134
|
+
isError: K.isError,
|
|
135
|
+
onRetry: be,
|
|
136
|
+
selectedFilterTabId: O,
|
|
137
|
+
onFilterTabChange: $,
|
|
138
|
+
showVendorBills: he,
|
|
139
|
+
searchValue: F,
|
|
140
|
+
onSearchChange: I,
|
|
141
|
+
hasAnyBills: me,
|
|
142
|
+
isSearchActive: L.length > 0 || z.isFilterActive,
|
|
143
|
+
filterBarProps: z.filterBarProps,
|
|
144
|
+
visibleColumns: l(O),
|
|
145
|
+
showAddPanelWhenEmpty: ie(O),
|
|
146
|
+
sorting: A,
|
|
147
|
+
onSortingChange: ge,
|
|
148
|
+
pageSize: M,
|
|
149
|
+
onPageSizeChange: _e,
|
|
150
|
+
hasNextPage: !!K.data?.next_pagination_token,
|
|
151
|
+
hasPrevPage: !!K.data?.prev_pagination_token,
|
|
152
|
+
onNextPage: ve,
|
|
153
|
+
onPrevPage: ye
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function ce(e) {
|
|
157
|
+
return e === p.Settled ? void 0 : e;
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
export { b as useBillsTable };
|
|
@@ -1,7 +1,219 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
+
import "../../../shared/data-access/dist/index.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useWidgetConfig as ee, useWidgetInitStaleForToken as te } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
+
import "../../../shared/feature/dist/index.js";
|
|
12
|
+
import { useDuplicateBillsCount as ne } from "./index10.js";
|
|
13
|
+
import { AddBillDialog as r } from "../../ui/dist/index10.js";
|
|
14
|
+
import { BillsScreen as re } from "../../ui/dist/index84.js";
|
|
15
|
+
import "../../ui/dist/index.js";
|
|
16
|
+
import { DuplicateBillsContainer as ie } from "./index12.js";
|
|
17
|
+
import "./index14.js";
|
|
18
|
+
import { BillCreateDialog as i } from "./index62.js";
|
|
19
|
+
import "./index63.js";
|
|
20
|
+
import { BillDetailsContainer as ae } from "./index65.js";
|
|
21
|
+
import "./index66.js";
|
|
22
|
+
import "./index72.js";
|
|
23
|
+
import "./index73.js";
|
|
24
|
+
import { BILL_QUEUE_ORDER as a } from "./index75.js";
|
|
25
|
+
import { BILLS_TAB_LABELS_EN as o } from "./index78.js";
|
|
26
|
+
import { useBillsTable as s } from "./index86.js";
|
|
27
|
+
import { formatBillQueueBadge as c } from "./index74.js";
|
|
28
|
+
import { copyTextToClipboard as l } from "./index76.js";
|
|
29
|
+
import { resolveDuplicateWarning as u } from "./index77.js";
|
|
30
|
+
import { billsTabTestIds as d, billsTableCellTestIds as f } from "./index79.js";
|
|
31
|
+
import { useBillQueueCounts as oe } from "./index80.js";
|
|
32
|
+
import { useCallback as p, useEffect as m, useMemo as h, useState as g } from "react";
|
|
33
|
+
import { jsx as _, jsxs as se } from "react/jsx-runtime";
|
|
1
34
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
35
|
+
var v = "bills@business-banking.app";
|
|
36
|
+
function y({ labels: y, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandled: S, vendorIntent: C, onVendorIntentHandled: w, poweredByBankName: T, onSettingsClick: E }) {
|
|
37
|
+
let D = h(() => ({
|
|
38
|
+
...o,
|
|
39
|
+
...y,
|
|
40
|
+
queues: {
|
|
41
|
+
...o.queues,
|
|
42
|
+
...y?.queues
|
|
43
|
+
},
|
|
44
|
+
scheduledRelativeDay: {
|
|
45
|
+
...o.scheduledRelativeDay,
|
|
46
|
+
...y?.scheduledRelativeDay
|
|
47
|
+
},
|
|
48
|
+
filters: {
|
|
49
|
+
...o.filters,
|
|
50
|
+
...y?.filters,
|
|
51
|
+
presets: {
|
|
52
|
+
...o.filters.presets,
|
|
53
|
+
...y?.filters?.presets
|
|
54
|
+
},
|
|
55
|
+
statuses: {
|
|
56
|
+
...o.filters.statuses,
|
|
57
|
+
...y?.filters?.statuses
|
|
58
|
+
},
|
|
59
|
+
dateFieldNames: {
|
|
60
|
+
...o.filters.dateFieldNames,
|
|
61
|
+
...y?.filters?.dateFieldNames
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
filterBar: {
|
|
65
|
+
...o.filterBar,
|
|
66
|
+
...y?.filterBar
|
|
67
|
+
},
|
|
68
|
+
queueEmptyStates: a.reduce((e, t) => ({
|
|
69
|
+
...e,
|
|
70
|
+
[t]: {
|
|
71
|
+
...o.queueEmptyStates[t],
|
|
72
|
+
...y?.queueEmptyStates?.[t]
|
|
73
|
+
}
|
|
74
|
+
}), {})
|
|
75
|
+
}), [y]), [ce, O] = g(!1), [le, k] = g(), [A, j] = g(), [M, N] = g(!1), [P, F] = g(), [I, L] = g(!1), [R, z] = g(!1), [B, V] = g(!1), { initResponse: H } = ee(), U = te(), ue = t(H?.scopes, [n.PayableReadOrg]), de = t(H?.scopes, [n.PayableWriteOrg]), W = !H || ue, G = !H || de, fe = p((e, t) => {
|
|
76
|
+
if (t && G) {
|
|
77
|
+
k(e), j(void 0), N(!0);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
F(e), z(!0);
|
|
81
|
+
}, [G]), pe = t(H?.scopes, [n.CounterpartReadOrg]), K = s({
|
|
82
|
+
enabled: W,
|
|
83
|
+
canReadVendors: pe,
|
|
84
|
+
isVendorFilterPaused: U,
|
|
85
|
+
filterLabels: D.filters,
|
|
86
|
+
onOpenBill: fe,
|
|
87
|
+
duplicateRowNote: D.duplicateRowNote,
|
|
88
|
+
attachmentLabel: D.attachmentIndicator,
|
|
89
|
+
scheduledRelativeDayLabels: D.scheduledRelativeDay
|
|
90
|
+
}), q = ne({ enabled: W }), me = u(q, D), J = oe({ enabled: W }), he = h(() => a.map((e) => ({
|
|
91
|
+
id: e,
|
|
92
|
+
label: D.queues[e],
|
|
93
|
+
badge: c(J[e])
|
|
94
|
+
})), [D.queues, J]), ge = (e) => {
|
|
95
|
+
V(!1), F(e), z(!0);
|
|
96
|
+
}, _e = () => {
|
|
97
|
+
L(!1), z(!0);
|
|
98
|
+
}, ve = () => {
|
|
99
|
+
z(!1), L(!0);
|
|
100
|
+
}, Y = () => {
|
|
101
|
+
L(!1), z(!1), k(P), j(void 0), N(!0);
|
|
102
|
+
}, ye = h(() => ({
|
|
103
|
+
createButton: D.createButton,
|
|
104
|
+
settingsButton: D.settingsButton,
|
|
105
|
+
addBill: { heading: D.nonEmptyHeading }
|
|
106
|
+
}), [
|
|
107
|
+
D.createButton,
|
|
108
|
+
D.settingsButton,
|
|
109
|
+
D.nonEmptyHeading
|
|
110
|
+
]), be = h(() => ({
|
|
111
|
+
...K.filterBarProps,
|
|
112
|
+
labels: D.filterBar
|
|
113
|
+
}), [K.filterBarProps, D.filterBar]), X = p((e) => {
|
|
114
|
+
O(!1), k(void 0), j(e), N(!0);
|
|
115
|
+
}, []), Z = (e) => {
|
|
116
|
+
O(!1), b?.(e);
|
|
117
|
+
}, Q = async () => {
|
|
118
|
+
await l(v) ? e.success(D.emailCopiedToast) : e.error(D.emailCopyFailedToast);
|
|
119
|
+
};
|
|
120
|
+
m(() => {
|
|
121
|
+
x && (k(x), j(void 0), N(!0), S?.());
|
|
122
|
+
}, [S, x]);
|
|
123
|
+
let { showVendorBills: $ } = K;
|
|
124
|
+
return m(() => {
|
|
125
|
+
C && (C.action === "createBill" ? G && X(C.vendorId) : $({
|
|
126
|
+
id: C.vendorId,
|
|
127
|
+
name: C.vendorName
|
|
128
|
+
}), w?.());
|
|
129
|
+
}, [
|
|
130
|
+
G,
|
|
131
|
+
w,
|
|
132
|
+
X,
|
|
133
|
+
$,
|
|
134
|
+
C
|
|
135
|
+
]), /* @__PURE__ */ se("div", {
|
|
136
|
+
"data-testid": d.root,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ _(re, {
|
|
139
|
+
rows: K.rows,
|
|
140
|
+
isLoading: K.isLoading || !H,
|
|
141
|
+
isError: K.isError,
|
|
142
|
+
onRetry: K.onRetry,
|
|
143
|
+
sorting: K.sorting,
|
|
144
|
+
onSortingChange: K.onSortingChange,
|
|
145
|
+
pageSize: K.pageSize,
|
|
146
|
+
onPageSizeChange: K.onPageSizeChange,
|
|
147
|
+
hasNextPage: K.hasNextPage,
|
|
148
|
+
hasPrevPage: K.hasPrevPage,
|
|
149
|
+
onNextPage: K.onNextPage,
|
|
150
|
+
onPrevPage: K.onPrevPage,
|
|
151
|
+
filterTabs: he,
|
|
152
|
+
selectedFilterTabId: K.selectedFilterTabId,
|
|
153
|
+
onFilterTabChange: K.onFilterTabChange,
|
|
154
|
+
searchValue: K.searchValue,
|
|
155
|
+
onSearchChange: K.onSearchChange,
|
|
156
|
+
filters: be,
|
|
157
|
+
visibleColumns: K.visibleColumns,
|
|
158
|
+
cellTestIds: f,
|
|
159
|
+
isSearchActive: K.isSearchActive,
|
|
160
|
+
showAddPanelWhenEmpty: K.showAddPanelWhenEmpty,
|
|
161
|
+
emptyState: D.queueEmptyStates[K.selectedFilterTabId],
|
|
162
|
+
onCreateClick: G ? () => O(!0) : void 0,
|
|
163
|
+
onSettingsClick: E,
|
|
164
|
+
onEnterManually: G ? () => X() : void 0,
|
|
165
|
+
onFilesSelected: G ? Z : void 0,
|
|
166
|
+
maxFiles: 10,
|
|
167
|
+
emailAddress: v,
|
|
168
|
+
onCopyEmail: Q,
|
|
169
|
+
duplicateWarning: me,
|
|
170
|
+
onReviewDuplicates: q.isError ? void 0 : () => V(!0),
|
|
171
|
+
labels: ye
|
|
172
|
+
}),
|
|
173
|
+
B ? /* @__PURE__ */ _(ie, {
|
|
174
|
+
open: B,
|
|
175
|
+
onOpenChange: V,
|
|
176
|
+
enabled: W,
|
|
177
|
+
canManageDuplicates: G,
|
|
178
|
+
onOpenBill: ge
|
|
179
|
+
}) : null,
|
|
180
|
+
G ? /* @__PURE__ */ _(r, {
|
|
181
|
+
open: ce,
|
|
182
|
+
onOpenChange: O,
|
|
183
|
+
onFilesSelected: Z,
|
|
184
|
+
maxFiles: 10,
|
|
185
|
+
onEnterManually: () => X(),
|
|
186
|
+
emailAddress: v,
|
|
187
|
+
onCopyEmail: Q,
|
|
188
|
+
labels: { heading: K.hasAnyBills ? D.nonEmptyHeading : D.emptyHeading }
|
|
189
|
+
}) : null,
|
|
190
|
+
M ? /* @__PURE__ */ _(i, {
|
|
191
|
+
open: M,
|
|
192
|
+
onOpenChange: N,
|
|
193
|
+
payableId: le,
|
|
194
|
+
initialCounterpartId: A
|
|
195
|
+
}) : null,
|
|
196
|
+
I ? /* @__PURE__ */ _(ae, {
|
|
197
|
+
open: I,
|
|
198
|
+
onOpenChange: L,
|
|
199
|
+
payableId: P,
|
|
200
|
+
onClose: () => L(!1),
|
|
201
|
+
onExpand: _e,
|
|
202
|
+
onEdit: Y,
|
|
203
|
+
testId: d.detailsSheet,
|
|
204
|
+
poweredByBankName: T
|
|
205
|
+
}) : null,
|
|
206
|
+
R ? /* @__PURE__ */ _(i, {
|
|
207
|
+
open: R,
|
|
208
|
+
onOpenChange: z,
|
|
209
|
+
payableId: P,
|
|
210
|
+
readOnly: !0,
|
|
211
|
+
onCollapse: ve,
|
|
212
|
+
onEdit: Y,
|
|
213
|
+
poweredByBankName: T
|
|
214
|
+
}) : null
|
|
215
|
+
]
|
|
216
|
+
});
|
|
217
|
+
}
|
|
6
218
|
//#endregion
|
|
7
|
-
export {
|
|
219
|
+
export { y as BillsTab, y as default };
|