@tesouro/embedded-components-react 0.4.21 → 0.4.22
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 +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +135 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +47 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +33 -177
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +186 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +22 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +223 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +202 -103
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +121 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +198 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +30 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +19 -385
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +416 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +35 -189
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +214 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +112 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +124 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +239 -101
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +107 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +209 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
- 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/formatRejectionDate.js +11 -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/index80.js +0 -94
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
|
|
|
14
14
|
import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetLoading as C } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
15
|
import { BankAccountsWidget as w } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
16
16
|
import { CounterpartsWidget as T } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
17
|
-
import { BillPayWidget as E } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
17
|
+
import { BillPayWidget as E } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js";
|
|
18
18
|
import { CardDetailsWidget as D } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
|
|
19
19
|
import { CreditCardsWidget as O } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
|
|
20
20
|
import { DebitCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
1
|
+
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
|
|
3
3
|
export { e as BillPayWidget };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import "./index4.js";
|
|
2
1
|
import "./index5.js";
|
|
3
2
|
import "./index6.js";
|
|
4
|
-
import "./
|
|
3
|
+
import "./index7.js";
|
|
5
4
|
import "./index9.js";
|
|
6
5
|
import "./index10.js";
|
|
7
6
|
import "./index11.js";
|
|
8
7
|
import "./index12.js";
|
|
9
8
|
import "./index13.js";
|
|
10
|
-
import "./
|
|
9
|
+
import "./index14.js";
|
|
11
10
|
import "./index26.js";
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
11
|
+
import "./index27.js";
|
|
12
|
+
import "./index39.js";
|
|
13
|
+
import "./index44.js";
|
|
14
|
+
import "./index53.js";
|
|
15
|
+
import "./index55.js";
|
|
17
16
|
import "./index57.js";
|
|
18
17
|
import "./index58.js";
|
|
19
18
|
import "./index59.js";
|
|
20
19
|
import "./index60.js";
|
|
21
|
-
import "./
|
|
20
|
+
import "./index61.js";
|
|
22
21
|
import "./index65.js";
|
|
23
22
|
import "./index66.js";
|
|
24
23
|
import "./index67.js";
|
|
25
24
|
import "./index68.js";
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
25
|
+
import "./index69.js";
|
|
26
|
+
import "./index72.js";
|
|
28
27
|
import "./index78.js";
|
|
29
28
|
import "./index79.js";
|
|
30
|
-
import
|
|
29
|
+
import "./index80.js";
|
|
30
|
+
import { BillPayWidget as e } from "./index84.js";
|
|
31
31
|
export { e as BillPayWidget };
|
|
@@ -2,45 +2,72 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
6
|
+
import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
7
|
+
import { suspectedPayableDuplicates as n } from "../../data-access/dist/index7.js";
|
|
8
|
+
import { useAllSuspectedDuplicatePayablesQuery as r, usePayablesQuery as i } from "../../data-access/dist/index16.js";
|
|
9
|
+
import "../../data-access/dist/index.js";
|
|
10
|
+
import { groupSuspectedDuplicates as a } from "./index6.js";
|
|
11
|
+
import { derivePayableStatus as o } from "./index7.js";
|
|
12
|
+
import { payableRemoval as s } from "./index9.js";
|
|
13
|
+
import { resolveVendorName as c } from "./index8.js";
|
|
14
|
+
import { useMemo as l } from "react";
|
|
6
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
16
|
+
function u(e) {
|
|
17
|
+
return e.isError && e.data === void 0;
|
|
18
|
+
}
|
|
19
|
+
function d(e, n) {
|
|
20
|
+
return e == null ? "" : t(e / 100, { currencyCode: n ?? "USD" });
|
|
21
|
+
}
|
|
22
|
+
function f(t) {
|
|
23
|
+
let r = t.status ? o({
|
|
24
|
+
apiStatus: t.status,
|
|
25
|
+
dueDate: t.due_date,
|
|
26
|
+
scheduledPaymentDate: t.scheduled_payment_date
|
|
27
|
+
}) : void 0;
|
|
28
|
+
return {
|
|
29
|
+
id: t.id,
|
|
30
|
+
status: r?.status,
|
|
31
|
+
statusTone: r?.tone,
|
|
32
|
+
matches: n(t).map((e) => ({
|
|
33
|
+
matchId: e.id,
|
|
34
|
+
matchedPayableId: e.matched_payable_id
|
|
35
|
+
})),
|
|
36
|
+
removeBy: s(t.status),
|
|
37
|
+
vendorLabel: c(t),
|
|
38
|
+
invoiceNumberLabel: t.document_id ?? "",
|
|
39
|
+
amountLabel: d(t.total_amount ?? t.amount_due, t.currency),
|
|
40
|
+
dueDateLabel: e(t.due_date),
|
|
41
|
+
addedOnLabel: e(t.created_at?.slice(0, 10))
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function p(e) {
|
|
45
|
+
return a(e).map(({ members: e }) => e).filter((e) => e.length > 1).map((e) => ({
|
|
46
|
+
id: e[0].id,
|
|
47
|
+
vendorLabel: e.map(c).find(Boolean) ?? "",
|
|
48
|
+
bills: e.map(f)
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
function m({ enabled: e = !0 } = {}) {
|
|
52
|
+
let t = r({ enabled: e }), n = t.data?.data;
|
|
53
|
+
return {
|
|
54
|
+
groups: l(() => p(n ?? []), [n]),
|
|
55
|
+
isLoading: t.isLoading,
|
|
56
|
+
isError: u(t)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function h({ enabled: e = !0 } = {}) {
|
|
60
|
+
let t = i({
|
|
61
|
+
duplicate_match_status: "suspected",
|
|
62
|
+
limit: 100,
|
|
63
|
+
enabled: e
|
|
64
|
+
});
|
|
34
65
|
return {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
let t = e.filter((e) => i.has(e)).length;
|
|
40
|
-
return t === 0 ? !1 : t === e.length || "indeterminate";
|
|
41
|
-
}, [i]),
|
|
42
|
-
deselect: c
|
|
66
|
+
count: t.data?.data?.length ?? 0,
|
|
67
|
+
isCapped: !!t.data?.next_pagination_token,
|
|
68
|
+
isError: u(t),
|
|
69
|
+
isLoading: t.isLoading
|
|
43
70
|
};
|
|
44
71
|
}
|
|
45
72
|
//#endregion
|
|
46
|
-
export {
|
|
73
|
+
export { m as useDuplicateBills, h as useDuplicateBillsCount };
|
|
@@ -2,117 +2,45 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import "../../../shared/ui/dist/index.js";
|
|
7
|
-
import { DUPLICATE_BILLS_LABELS_EN as t } from "./index4.js";
|
|
8
|
-
import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from "../../data-access/dist/index7.js";
|
|
9
|
-
import "../../data-access/dist/index.js";
|
|
10
|
-
import { useDuplicateBills as i } from "./index9.js";
|
|
11
|
-
import { useDuplicateBillsSelection as a } from "./index10.js";
|
|
12
|
-
import { DuplicateBillsDialog as o } from "../../ui/dist/index80.js";
|
|
13
|
-
import "../../ui/dist/index.js";
|
|
14
|
-
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
15
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
import { useCallback as e, useEffect as t, useState as n } from "react";
|
|
16
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (e) {
|
|
25
|
-
if (!k) return e.id;
|
|
26
|
-
if (k.id !== d) return x.groups.some((e) => e.id === k.id) ? k.id : (x.groups[k.index] ?? x.groups[x.groups.length - 1]).id;
|
|
27
|
-
}
|
|
28
|
-
}, [k, x.groups]);
|
|
29
|
-
s(() => {
|
|
30
|
-
if (!f) {
|
|
31
|
-
O(!1);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
!D || x.isLoading || x.isError || x.groups.length > 0 || (e.success(b), p(!1));
|
|
35
|
-
}, [
|
|
36
|
-
b,
|
|
37
|
-
D,
|
|
38
|
-
p,
|
|
39
|
-
f,
|
|
40
|
-
x.groups.length,
|
|
41
|
-
x.isError,
|
|
42
|
-
x.isLoading
|
|
43
|
-
]);
|
|
44
|
-
let M = (e) => e.bills.filter((e) => C.isSelected(e.id)), N = async (t, n, r, i) => {
|
|
45
|
-
let a = M(t);
|
|
46
|
-
if (a.length === 0) throw Error("Duplicate review action taken with no bills selected — keeping and removing both need a subject.");
|
|
47
|
-
let o = a.flatMap((e) => e.matches.map((t) => ({
|
|
48
|
-
payableId: e.id,
|
|
49
|
-
duplicateId: t.matchId,
|
|
50
|
-
matchedPayableId: t.matchedPayableId,
|
|
51
|
-
removeBy: e.removeBy
|
|
52
|
-
})));
|
|
53
|
-
E({
|
|
54
|
-
groupId: t.id,
|
|
55
|
-
action: r
|
|
7
|
+
function r({ reviewIds: r }) {
|
|
8
|
+
let [i, a] = n(/* @__PURE__ */ new Set());
|
|
9
|
+
t(() => {
|
|
10
|
+
let e = new Set(r);
|
|
11
|
+
a((t) => {
|
|
12
|
+
let n = new Set([...t].filter((t) => e.has(t)));
|
|
13
|
+
return n.size === t.size ? t : n;
|
|
56
14
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
amountLabel: e.amountLabel,
|
|
87
|
-
dueDateLabel: e.dueDateLabel,
|
|
88
|
-
addedOnLabel: e.addedOnLabel,
|
|
89
|
-
selectLabel: y.selectRow(e),
|
|
90
|
-
openLabel: y.openRow(e),
|
|
91
|
-
isSelected: C.isSelected(e.id),
|
|
92
|
-
onToggleSelected: () => C.toggle(e.id),
|
|
93
|
-
onOpen: () => g?.(e.id)
|
|
94
|
-
})),
|
|
95
|
-
onKeepSelected: h ? () => void N(e, n.Keep, "keep", y.dismissedToast) : void 0,
|
|
96
|
-
onRemoveDuplicates: h ? () => void N(e, n.Remove, "remove", y.removedToast) : void 0,
|
|
97
|
-
isActionDisabled: r.length === 0,
|
|
98
|
-
isRemoveUnavailable: r.some((e) => !e.removeBy),
|
|
99
|
-
pendingAction: T?.groupId === e.id ? T.action : void 0
|
|
100
|
-
};
|
|
101
|
-
});
|
|
102
|
-
return /* @__PURE__ */ u(o, {
|
|
103
|
-
open: f,
|
|
104
|
-
onOpenChange: p,
|
|
105
|
-
groups: P,
|
|
106
|
-
isLoading: x.isLoading,
|
|
107
|
-
isError: x.isError,
|
|
108
|
-
expandedGroupId: j,
|
|
109
|
-
onExpandedGroupChange: (e) => A({
|
|
110
|
-
id: e,
|
|
111
|
-
index: x.groups.findIndex((t) => t.id === e)
|
|
112
|
-
}),
|
|
113
|
-
isBusy: !!T,
|
|
114
|
-
labels: v
|
|
115
|
-
});
|
|
15
|
+
}, [r]);
|
|
16
|
+
let o = e((e) => {
|
|
17
|
+
a((t) => {
|
|
18
|
+
let n = new Set(t);
|
|
19
|
+
return n.delete(e) || n.add(e), n;
|
|
20
|
+
});
|
|
21
|
+
}, []), s = e((e) => {
|
|
22
|
+
a((t) => {
|
|
23
|
+
let n = new Set(t), r = e.every((e) => n.has(e));
|
|
24
|
+
return e.forEach((e) => {
|
|
25
|
+
r ? n.delete(e) : n.add(e);
|
|
26
|
+
}), n;
|
|
27
|
+
});
|
|
28
|
+
}, []), c = e((e) => {
|
|
29
|
+
a((t) => {
|
|
30
|
+
let n = new Set(t);
|
|
31
|
+
return e.forEach((e) => n.delete(e)), n;
|
|
32
|
+
});
|
|
33
|
+
}, []);
|
|
34
|
+
return {
|
|
35
|
+
isSelected: e((e) => i.has(e), [i]),
|
|
36
|
+
toggle: o,
|
|
37
|
+
toggleAll: s,
|
|
38
|
+
checkedState: e((e) => {
|
|
39
|
+
let t = e.filter((e) => i.has(e)).length;
|
|
40
|
+
return t === 0 ? !1 : t === e.length || "indeterminate";
|
|
41
|
+
}, [i]),
|
|
42
|
+
deselect: c
|
|
43
|
+
};
|
|
116
44
|
}
|
|
117
45
|
//#endregion
|
|
118
|
-
export {
|
|
46
|
+
export { r as useDuplicateBillsSelection };
|
|
@@ -4,84 +4,115 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
|
-
import { DUPLICATE_BILLS_LABELS_EN as t } from "./
|
|
8
|
-
import { DuplicateVerdict as n,
|
|
7
|
+
import { DUPLICATE_BILLS_LABELS_EN as t } from "./index5.js";
|
|
8
|
+
import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from "../../data-access/dist/index7.js";
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { useDuplicateBills as i } from "./index10.js";
|
|
11
|
+
import { useDuplicateBillsSelection as a } from "./index11.js";
|
|
12
|
+
import { DuplicateBillsDialog as o } from "../../ui/dist/index84.js";
|
|
13
|
+
import "../../ui/dist/index.js";
|
|
14
|
+
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
15
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
12
16
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
var d = "";
|
|
18
|
+
function f({ open: f, onOpenChange: p, enabled: m = !0, canManageDuplicates: h = !0, onOpenBill: g, labels: _, dialogLabels: v }) {
|
|
19
|
+
let y = c(() => ({
|
|
15
20
|
...t,
|
|
16
|
-
...
|
|
17
|
-
}), [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} catch {
|
|
29
|
-
e.error(p.verdictFailedToast);
|
|
21
|
+
..._
|
|
22
|
+
}), [_]), b = _?.allResolvedToast ?? t.allResolvedToast, x = i({ enabled: m }), S = c(() => x.groups.flatMap((e) => e.bills.map((e) => e.id)), [x.groups]), C = a({ reviewIds: S }), w = r(), [T, E] = l(), [D, O] = l(!1), [k, A] = l(), j = c(() => {
|
|
23
|
+
let [e] = x.groups;
|
|
24
|
+
if (e) {
|
|
25
|
+
if (!k) return e.id;
|
|
26
|
+
if (k.id !== d) return x.groups.some((e) => e.id === k.id) ? k.id : (x.groups[k.index] ?? x.groups[x.groups.length - 1]).id;
|
|
27
|
+
}
|
|
28
|
+
}, [k, x.groups]);
|
|
29
|
+
s(() => {
|
|
30
|
+
if (!f) {
|
|
31
|
+
O(!1);
|
|
32
|
+
return;
|
|
30
33
|
}
|
|
34
|
+
!D || x.isLoading || x.isError || x.groups.length > 0 || (e.success(b), p(!1));
|
|
31
35
|
}, [
|
|
32
|
-
|
|
36
|
+
b,
|
|
37
|
+
D,
|
|
33
38
|
p,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
39
|
+
f,
|
|
40
|
+
x.groups.length,
|
|
41
|
+
x.isError,
|
|
42
|
+
x.isLoading
|
|
43
|
+
]);
|
|
44
|
+
let M = (e) => e.bills.filter((e) => C.isSelected(e.id)), N = async (t, n, r, i) => {
|
|
45
|
+
let a = M(t);
|
|
46
|
+
if (a.length === 0) throw Error("Duplicate review action taken with no bills selected — keeping and removing both need a subject.");
|
|
47
|
+
let o = a.flatMap((e) => e.matches.map((t) => ({
|
|
48
|
+
payableId: e.id,
|
|
49
|
+
duplicateId: t.matchId,
|
|
50
|
+
matchedPayableId: t.matchedPayableId,
|
|
51
|
+
removeBy: e.removeBy
|
|
52
|
+
})));
|
|
53
|
+
E({
|
|
54
|
+
groupId: t.id,
|
|
55
|
+
action: r
|
|
56
|
+
});
|
|
57
|
+
try {
|
|
58
|
+
await w.mutateAsync({
|
|
59
|
+
verdict: n,
|
|
60
|
+
targets: o
|
|
61
|
+
}), e.success(i), O(!0), C.deselect(a.map((e) => e.id));
|
|
62
|
+
} catch {
|
|
63
|
+
e.error(y.verdictFailedToast);
|
|
64
|
+
} finally {
|
|
65
|
+
E(void 0);
|
|
66
|
+
}
|
|
67
|
+
}, P = x.groups.map((e) => {
|
|
68
|
+
let t = e.bills.map((e) => e.id), r = M(e), i = {
|
|
69
|
+
vendorLabel: e.vendorLabel,
|
|
70
|
+
count: e.bills.length
|
|
71
|
+
};
|
|
72
|
+
return {
|
|
73
|
+
id: e.id,
|
|
74
|
+
titleLabel: e.vendorLabel,
|
|
75
|
+
countLabel: String(e.bills.length),
|
|
76
|
+
accessibleLabel: y.reviewGroup(i),
|
|
77
|
+
selectAllLabel: y.selectGroup(i),
|
|
78
|
+
selectAllChecked: C.checkedState(t),
|
|
79
|
+
onToggleAllRows: () => C.toggleAll(t),
|
|
80
|
+
rows: e.bills.map((e) => ({
|
|
81
|
+
id: e.id,
|
|
82
|
+
status: e.status,
|
|
83
|
+
statusTone: e.statusTone,
|
|
84
|
+
removalOutcome: e.removeBy === "delete" || e.removeBy === "cancel" ? e.removeBy : void 0,
|
|
85
|
+
invoiceNumberLabel: e.invoiceNumberLabel,
|
|
86
|
+
amountLabel: e.amountLabel,
|
|
87
|
+
dueDateLabel: e.dueDateLabel,
|
|
88
|
+
addedOnLabel: e.addedOnLabel,
|
|
89
|
+
selectLabel: y.selectRow(e),
|
|
90
|
+
openLabel: y.openRow(e),
|
|
91
|
+
isSelected: C.isSelected(e.id),
|
|
92
|
+
onToggleSelected: () => C.toggle(e.id),
|
|
93
|
+
onOpen: () => g?.(e.id)
|
|
94
|
+
})),
|
|
95
|
+
onKeepSelected: h ? () => void N(e, n.Keep, "keep", y.dismissedToast) : void 0,
|
|
96
|
+
onRemoveDuplicates: h ? () => void N(e, n.Remove, "remove", y.removedToast) : void 0,
|
|
97
|
+
isActionDisabled: r.length === 0,
|
|
98
|
+
isRemoveUnavailable: r.some((e) => !e.removeBy),
|
|
99
|
+
pendingAction: T?.groupId === e.id ? T.action : void 0
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
return /* @__PURE__ */ u(o, {
|
|
103
|
+
open: f,
|
|
104
|
+
onOpenChange: p,
|
|
105
|
+
groups: P,
|
|
106
|
+
isLoading: x.isLoading,
|
|
107
|
+
isError: x.isError,
|
|
108
|
+
expandedGroupId: j,
|
|
109
|
+
onExpandedGroupChange: (e) => A({
|
|
110
|
+
id: e,
|
|
111
|
+
index: x.groups.findIndex((t) => t.id === e)
|
|
112
|
+
}),
|
|
113
|
+
isBusy: !!T,
|
|
114
|
+
labels: v
|
|
115
|
+
});
|
|
85
116
|
}
|
|
86
117
|
//#endregion
|
|
87
|
-
export {
|
|
118
|
+
export { f as DuplicateBillsContainer, f as default };
|
|
@@ -1,7 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "./
|
|
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 "../../../shared/ui/dist/index.js";
|
|
7
|
+
import { DUPLICATE_BILLS_LABELS_EN as t } from "./index5.js";
|
|
8
|
+
import { DuplicateVerdict as n, suspectedPayableDuplicates as r, useApplyDuplicateVerdictsMutation as i } from "../../data-access/dist/index7.js";
|
|
9
|
+
import "../../data-access/dist/index.js";
|
|
10
|
+
import { payableRemoval as a } from "./index9.js";
|
|
11
|
+
import { useCallback as o, useMemo as s, useState as c } from "react";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js
|
|
13
|
+
function l({ payable: l, canManage: u = !0, onRemoved: d, labels: f }) {
|
|
14
|
+
let p = s(() => ({
|
|
15
|
+
...t,
|
|
16
|
+
...f
|
|
17
|
+
}), [f]), m = r(l), [h] = m, g = l?.id, _ = i(), [v, y] = c(!1), b = a(l?.status), x = o(async (t, n, r) => {
|
|
18
|
+
if (!(!m.length || !g)) try {
|
|
19
|
+
await _.mutateAsync({
|
|
20
|
+
verdict: t,
|
|
21
|
+
targets: m.map((e) => ({
|
|
22
|
+
payableId: g,
|
|
23
|
+
duplicateId: e.id,
|
|
24
|
+
matchedPayableId: e.matched_payable_id,
|
|
25
|
+
removeBy: b
|
|
26
|
+
}))
|
|
27
|
+
}), e.success(n), r?.();
|
|
28
|
+
} catch {
|
|
29
|
+
e.error(p.verdictFailedToast);
|
|
30
|
+
}
|
|
31
|
+
}, [
|
|
32
|
+
_,
|
|
33
|
+
p,
|
|
34
|
+
m,
|
|
35
|
+
g,
|
|
36
|
+
b
|
|
37
|
+
]), S = b === "delete" ? {
|
|
38
|
+
button: p.deleteBillButton,
|
|
39
|
+
title: p.deleteConfirmTitle,
|
|
40
|
+
description: p.deleteConfirmDescription,
|
|
41
|
+
confirmButton: p.deleteConfirmButton,
|
|
42
|
+
backButton: p.deleteConfirmBackButton,
|
|
43
|
+
toast: p.deletedToast
|
|
44
|
+
} : b === "confirm" ? {
|
|
45
|
+
button: p.confirmBillButton,
|
|
46
|
+
title: p.cancelConfirmTitle,
|
|
47
|
+
description: p.cancelConfirmDescription,
|
|
48
|
+
confirmButton: p.confirmBillButton,
|
|
49
|
+
backButton: p.cancelConfirmBackButton,
|
|
50
|
+
toast: p.confirmedToast
|
|
51
|
+
} : {
|
|
52
|
+
button: p.cancelBillButton,
|
|
53
|
+
title: p.cancelConfirmTitle,
|
|
54
|
+
description: p.cancelConfirmDescription,
|
|
55
|
+
confirmButton: p.cancelConfirmButton,
|
|
56
|
+
backButton: p.cancelConfirmBackButton,
|
|
57
|
+
toast: p.cancelledToast
|
|
58
|
+
}, C = o(async () => {
|
|
59
|
+
await x(n.Remove, S.toast, d), y(!1);
|
|
60
|
+
}, [
|
|
61
|
+
x,
|
|
62
|
+
d,
|
|
63
|
+
S.toast
|
|
64
|
+
]), w = u && !!(h && g), T = w && !!b;
|
|
65
|
+
return {
|
|
66
|
+
isPossibleDuplicate: !!h,
|
|
67
|
+
onNotADuplicate: w ? () => void x(n.Keep, p.dismissedToast) : void 0,
|
|
68
|
+
onRemoveBill: T ? b === "delete" ? () => y(!0) : () => void C() : void 0,
|
|
69
|
+
removeBillLabel: T ? S.button : void 0,
|
|
70
|
+
removeConfirmation: {
|
|
71
|
+
open: v,
|
|
72
|
+
copy: {
|
|
73
|
+
title: S.title,
|
|
74
|
+
description: S.description,
|
|
75
|
+
confirmButton: S.confirmButton,
|
|
76
|
+
presentation: { tone: "destructive" }
|
|
77
|
+
},
|
|
78
|
+
onConfirm: () => void C(),
|
|
79
|
+
onCancel: () => y(!1),
|
|
80
|
+
isPending: _.isPending,
|
|
81
|
+
cancelButtonLabel: S.backButton
|
|
82
|
+
},
|
|
83
|
+
isBusy: _.isPending
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { l as usePayableDuplicateReview };
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
dialog: e
|
|
9
|
-
};
|
|
10
|
-
function n(e) {
|
|
11
|
-
return {
|
|
12
|
-
...t,
|
|
13
|
-
...e,
|
|
14
|
-
dialog: {
|
|
15
|
-
...t.dialog,
|
|
16
|
-
...e?.dialog
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { t as MARK_AS_PAID_FLOW_LABELS_EN, n as mergeMarkAsPaidFlowLabels };
|
|
1
|
+
import "./index5.js";
|
|
2
|
+
import "./index6.js";
|
|
3
|
+
import "./index9.js";
|
|
4
|
+
import "./index10.js";
|
|
5
|
+
import "./index11.js";
|
|
6
|
+
import "./index12.js";
|
|
7
|
+
import "./index13.js";
|