@tesouro/embedded-components-react 0.4.21 → 0.4.23
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 +13 -13
- 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 +136 -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 +3 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -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 +119 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
- 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 +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
- 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 +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
- 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 +207 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.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/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
- 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 +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
|
@@ -1,35 +1,427 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
8
|
+
import { useAllOrganizationUsersQuery as te } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
|
+
import "../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { formatCalendarDate as ne } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
11
|
+
import { useWidgetConfig as re } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
|
+
import "../../../shared/feature/dist/index.js";
|
|
13
|
+
import { usePayableApprovalRequestsQuery as ie } from "../../data-access/dist/index8.js";
|
|
14
|
+
import { usePayableHistoryQuery as ae } from "../../data-access/dist/index9.js";
|
|
15
|
+
import { useAllPayableLineItemsQuery as oe } from "../../data-access/dist/index10.js";
|
|
16
|
+
import { usePayableQuery as se } from "../../data-access/dist/index16.js";
|
|
17
|
+
import "../../data-access/dist/index.js";
|
|
18
|
+
import { hasUnpaidBalance as ce } from "./index7.js";
|
|
19
|
+
import { resolveVendor as le } from "./index8.js";
|
|
20
|
+
import { BillCreateScreen as ue } from "../../ui/dist/index50.js";
|
|
21
|
+
import { BillDecisionDialog as n } from "../../ui/dist/index56.js";
|
|
22
|
+
import { BillDuplicateNotice as de } from "../../ui/dist/index66.js";
|
|
23
|
+
import { BillRejectedBanner as fe } from "../../ui/dist/index69.js";
|
|
24
|
+
import { ExtractionNotice as pe } from "../../ui/dist/index87.js";
|
|
25
|
+
import { MarkAsPaidDialog as me } from "../../ui/dist/index96.js";
|
|
26
|
+
import { UnsavedBillDialog as he } from "../../ui/dist/index106.js";
|
|
2
27
|
import "../../ui/dist/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
28
|
+
import { usePayableDuplicateReview as ge } from "./index13.js";
|
|
29
|
+
import "./index14.js";
|
|
30
|
+
import { canOverrideApprovalPolicy as _e, canReadCounterpartBankAccounts as ve } from "./index19.js";
|
|
31
|
+
import { resolveAmountDueMinorUnits as ye } from "./index20.js";
|
|
32
|
+
import { usePayableAchInstructions as be } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
33
|
+
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
34
|
+
import { PayBillFlow as xe } from "./index26.js";
|
|
35
|
+
import "./index27.js";
|
|
36
|
+
import { useMarkAsPaidFlow as Se } from "./index17.js";
|
|
37
|
+
import "./index18.js";
|
|
38
|
+
import { BILL_CREATE_MESSAGE_LABELS_EN as Ce, mergeBillCreateScreenCopy as we } from "./index45.js";
|
|
39
|
+
import { useBillCreateController as Te } from "./index54.js";
|
|
40
|
+
import { useBillForm as Ee } from "./index56.js";
|
|
41
|
+
import { buildPaymentHistory as De } from "./index3.js";
|
|
42
|
+
import { currentApprovalRound as Oe } from "./index4.js";
|
|
43
|
+
import { usePayableApprovalRoundStart as ke } from "./index31.js";
|
|
44
|
+
import { useApprovalPolicyCardView as Ae } from "./index32.js";
|
|
45
|
+
import { resolveBillRejectionNotice as je } from "./index33.js";
|
|
46
|
+
import { useCurrentApprovalRequestId as Me } from "./index34.js";
|
|
47
|
+
import { usePayableDetailActions as Ne } from "./index35.js";
|
|
48
|
+
import { useScheduledPayment as Pe } from "./index36.js";
|
|
49
|
+
import { isEditablePayableStatus as Fe } from "./index37.js";
|
|
50
|
+
import { useDraftDelete as Ie } from "./index38.js";
|
|
51
|
+
import { buildBillDetailView as Le } from "./index40.js";
|
|
52
|
+
import { resolveEditorDismissal as Re } from "./index41.js";
|
|
53
|
+
import { buildBillHistory as ze } from "./index42.js";
|
|
54
|
+
import { SourceDocumentContainer as Be } from "./index46.js";
|
|
55
|
+
import { useVendorSectionProps as Ve } from "./index49.js";
|
|
56
|
+
import { usePaymentInstructionsForm as He } from "./index50.js";
|
|
57
|
+
import { billCreateTestIds as r } from "./index57.js";
|
|
58
|
+
import { useCallback as i, useEffect as Ue, useMemo as a, useRef as We, useState as o } from "react";
|
|
59
|
+
import { Fragment as Ge, jsx as s, jsxs as Ke } from "react/jsx-runtime";
|
|
60
|
+
import { Trash2Icon as qe } from "lucide-react";
|
|
7
61
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js
|
|
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
|
-
|
|
62
|
+
function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye, onCollapse: Xe, poweredByBankName: Ze }) {
|
|
63
|
+
let d = a(() => we(Ye), [Ye]), [f, Qe] = o(), [p, $e] = o(!1), [et, tt] = o(!1), [m, h] = o(!1), [nt, rt] = o(), g = Je ?? nt, _ = se(g, { pollWhileOcrProcessing: !0 }), v = oe(g), { initResponse: y } = re(), it = !!y, b = e(y?.scopes, [t.AccountingConfigReadOrg]), x = ee({ enabled: b }), S = _.data, C = !g || !!S, w = !u && C && !!g && S?.status !== "draft", at = !u && !!S && !Fe(S?.status), T = u || at, E = Ee({
|
|
64
|
+
payable: S,
|
|
65
|
+
lineItems: v.lineItems
|
|
66
|
+
}), D = S?.counterpart_id;
|
|
67
|
+
Ue(() => {
|
|
68
|
+
p || D && (Qe(D), $e(!0));
|
|
69
|
+
}, [p, D]);
|
|
70
|
+
let ot = i((e) => {
|
|
71
|
+
$e(!0), Qe(e);
|
|
72
|
+
}, []), O = Ve({
|
|
73
|
+
payableId: u ? void 0 : g,
|
|
74
|
+
counterpartId: u ? void 0 : f,
|
|
75
|
+
payableCounterpartId: D,
|
|
76
|
+
isVendorKnown: !u && C,
|
|
77
|
+
onCounterpartChange: ot,
|
|
78
|
+
requiredError: E.errors?.vendor,
|
|
79
|
+
payableCounterpartBankAccountId: S?.counterpart_bank_account_id ?? void 0,
|
|
80
|
+
extractedVendor: S?.counterpart_raw_data ?? void 0
|
|
81
|
+
}), st = !!(g && p) && !f, ct = _.refetch, lt = i(async () => {
|
|
82
|
+
let { data: e } = await ct();
|
|
83
|
+
return e?.status ?? void 0;
|
|
84
|
+
}, [ct]), ut = a(() => w ? { draftSaved: Ce.submittedSaved } : void 0, [w]), k = Te({
|
|
85
|
+
payableId: Je,
|
|
86
|
+
form: E,
|
|
87
|
+
labels: ut,
|
|
88
|
+
counterpartId: f,
|
|
89
|
+
clearCounterpart: st,
|
|
90
|
+
prepareVendorForSave: O.savePaymentInstructions,
|
|
91
|
+
onPayableCreated: rt,
|
|
92
|
+
onSaved: rt,
|
|
93
|
+
onDraftSaved: () => l(!1),
|
|
94
|
+
onFinalized: () => l(!1),
|
|
95
|
+
readSavedStatus: w ? lt : void 0
|
|
96
|
+
}), A = !!(k.isSavingDraft || k.isFinalizing), j = u ? g : void 0, M = Me({
|
|
97
|
+
payableId: j,
|
|
98
|
+
status: S?.status
|
|
99
|
+
}), dt = We(null), N = Pe({
|
|
100
|
+
payableId: g,
|
|
101
|
+
scheduledPaymentDate: S?.scheduled_payment_date,
|
|
102
|
+
enabled: u || w
|
|
103
|
+
}), ft = le(S), P = ve(y?.scopes), F = be({
|
|
104
|
+
counterpartId: u ? D : void 0,
|
|
105
|
+
currency: S?.currency,
|
|
106
|
+
currentBankAccountId: u ? S?.counterpart_bank_account_id ?? void 0 : void 0,
|
|
107
|
+
enabled: P && u
|
|
108
|
+
}), I = He({
|
|
109
|
+
payableId: j,
|
|
110
|
+
counterpartId: u ? D : void 0,
|
|
111
|
+
currentBankAccountId: S?.counterpart_bank_account_id ?? void 0,
|
|
112
|
+
canReadCounterpartBankAccounts: P,
|
|
113
|
+
saveErrorMessage: d.detail.paymentInstructionsSaveError,
|
|
114
|
+
linkErrorMessage: d.detail.paymentInstructionsLinkError
|
|
115
|
+
}), pt = e(y?.scopes, [t.PayableWriteOrg]), L = e(y?.scopes, [t.CounterpartWriteOrg]) && pt, mt = L && ce(S?.status) && !N.hasScheduledPayment && !N.isResolving, R = Se({
|
|
116
|
+
payableId: j,
|
|
117
|
+
amountDueMinorUnits: ye(S) ?? 0,
|
|
118
|
+
amountToPayMinorUnits: S?.amount_to_pay ?? void 0,
|
|
119
|
+
currencyCode: S?.currency ?? void 0,
|
|
120
|
+
dueDate: S?.due_date,
|
|
121
|
+
hasScheduledPayment: N.hasScheduledPayment,
|
|
122
|
+
labels: d.markAsPaid
|
|
123
|
+
}), z = Ae({
|
|
124
|
+
payableId: j,
|
|
125
|
+
approvalPolicyId: S?.approval_policy_id,
|
|
126
|
+
enabled: u,
|
|
127
|
+
copy: d.approvalPolicyCopy
|
|
128
|
+
}), ht = _e({
|
|
129
|
+
status: S?.status,
|
|
130
|
+
scopes: y?.scopes,
|
|
131
|
+
hasWaitingRequest: M.hasWaitingRequest,
|
|
132
|
+
arePendingApproversUnknown: z.isLoading
|
|
133
|
+
}), { actions: B, decisionDialog: gt, isActionPending: _t } = Ne({
|
|
134
|
+
payableId: u || w ? g : void 0,
|
|
135
|
+
status: S?.status,
|
|
136
|
+
currentApprovalRequestId: M.id,
|
|
137
|
+
hasWaitingRequest: M.hasWaitingRequest,
|
|
138
|
+
arePendingApproversUnknown: z.isLoading,
|
|
139
|
+
hasScheduledPayment: N.hasScheduledPayment,
|
|
140
|
+
scheduledPaymentIntentId: N.scheduledPaymentIntentId,
|
|
141
|
+
isScheduledPaymentUnknown: N.isResolving,
|
|
142
|
+
isPayabilityUnknown: F.isLoading,
|
|
143
|
+
pendingApprovers: z.pendingApprovers,
|
|
144
|
+
labels: d.actions,
|
|
145
|
+
isMarkAsPaidPending: R.isPending,
|
|
146
|
+
onMarkAsPaidSelect: R.open,
|
|
147
|
+
onPayBillSelect: () => dt.current?.open(),
|
|
148
|
+
onActionSucceeded: w ? () => l(!1) : void 0
|
|
149
|
+
}), V = Ie({
|
|
150
|
+
payableId: g,
|
|
151
|
+
status: S?.status,
|
|
152
|
+
enabled: !u,
|
|
153
|
+
labels: d.deleteDraft,
|
|
154
|
+
onDeleted: () => l(!1)
|
|
155
|
+
}), H = A || _t, U = _.isLoading || v.isResolving || x.isResolving || F.isLoading, W = _.isError || v.isError || x.isError, vt = a(() => [...V.menuItems, ...w || u && !U && !W ? B.menu.map((e) => ({
|
|
156
|
+
id: e.id,
|
|
157
|
+
label: e.label,
|
|
158
|
+
onSelect: e.onSelect,
|
|
159
|
+
disabled: e.disabled,
|
|
160
|
+
icon: e.icon,
|
|
161
|
+
sectionHeading: e.sectionHeading
|
|
162
|
+
})) : []], [
|
|
163
|
+
B.menu,
|
|
164
|
+
V.menuItems,
|
|
165
|
+
w,
|
|
166
|
+
u,
|
|
167
|
+
U,
|
|
168
|
+
W
|
|
169
|
+
]), G = a(() => (x.data?.data ?? []).map((e) => ({
|
|
170
|
+
value: e.id,
|
|
171
|
+
label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
|
|
172
|
+
})), [x.data]), K;
|
|
173
|
+
it && (b ? x.isError ? K = d.lineItemsGlCodeUnavailable.loadError : !x.isResolving && G.length === 0 && (K = d.lineItemsGlCodeUnavailable.empty) : K = d.lineItemsGlCodeUnavailable.noAccess);
|
|
174
|
+
let yt = !it || !!K || x.isResolving, bt = b && !x.isResolving && !x.isError, q = ae(j), xt = S?.status === "rejected" || !u && w, St = e(y?.scopes, [t.ApprovalRequestReadOrg]), Ct = xt && St, wt = e(y?.scopes, [t.UserReadOrg]), J = te({ enabled: (u || xt) && wt }), Tt = a(() => ze(q.data?.data ?? [], J.data?.data ?? [], d.history), [
|
|
175
|
+
q.data,
|
|
176
|
+
J.data,
|
|
177
|
+
d.history
|
|
178
|
+
]), Et = ke({
|
|
179
|
+
payableId: g,
|
|
180
|
+
enabled: Ct
|
|
181
|
+
}), Dt = ie(g, { enabled: Ct }), Ot = a(() => Oe(Dt.data?.data, Et.roundStartedAt), [Dt.data, Et.roundStartedAt]), Y = a(() => je({
|
|
182
|
+
payableStatus: S?.status,
|
|
183
|
+
approvalRequests: Ot,
|
|
184
|
+
users: J.data?.data ?? [],
|
|
185
|
+
payableUpdatedAt: S?.updated_at,
|
|
186
|
+
labels: d.detail
|
|
187
|
+
}), [
|
|
188
|
+
S?.status,
|
|
189
|
+
S?.updated_at,
|
|
190
|
+
Ot,
|
|
191
|
+
J.data,
|
|
192
|
+
d.detail
|
|
193
|
+
]), kt = a(() => De({
|
|
194
|
+
records: N.paymentRecords,
|
|
195
|
+
events: q.data?.data ?? [],
|
|
196
|
+
currencyCode: S?.currency,
|
|
197
|
+
labels: d.detail
|
|
198
|
+
}), [
|
|
199
|
+
N.paymentRecords,
|
|
200
|
+
q.data,
|
|
201
|
+
S?.currency,
|
|
202
|
+
d.detail
|
|
203
|
+
]), At = a(() => u && S ? Le({
|
|
204
|
+
payable: S,
|
|
205
|
+
lineItems: v.lineItems,
|
|
206
|
+
glCodeOptions: G,
|
|
207
|
+
glCodeRosterAvailable: bt,
|
|
208
|
+
history: Tt,
|
|
209
|
+
paymentHistory: kt,
|
|
210
|
+
approvalPolicy: z.view,
|
|
211
|
+
labels: d.detail,
|
|
212
|
+
hasScheduledPayment: N.hasScheduledPayment,
|
|
213
|
+
rejection: Y,
|
|
214
|
+
payableAchInstructions: F.achInstructions,
|
|
215
|
+
payableAchInstructionsReadable: P && !F.isError
|
|
216
|
+
}) : void 0, [
|
|
217
|
+
N.hasScheduledPayment,
|
|
218
|
+
z.view,
|
|
219
|
+
P,
|
|
220
|
+
d.detail,
|
|
221
|
+
G,
|
|
222
|
+
bt,
|
|
223
|
+
Tt,
|
|
224
|
+
v.lineItems,
|
|
225
|
+
S,
|
|
226
|
+
F.achInstructions,
|
|
227
|
+
F.isError,
|
|
228
|
+
kt,
|
|
229
|
+
u,
|
|
230
|
+
Y
|
|
231
|
+
]), jt = S?.source_of_payable_data === "ocr", X = ft?.name, Mt = u ? X ? d.viewTitle(X) : d.readOnlyTitle : X && (jt || w) ? d.extractedTitle(X) : d.newTitle, Nt = u && S?.created_at ? d.addedOn(ne(S.created_at.slice(0, 10))) : void 0, Z = i(() => {
|
|
232
|
+
let e = E.isDirty || O.hasUnsavedVendorChanges || !!k.stagedFile || k.isFileDeletionPending;
|
|
233
|
+
switch (Re({
|
|
234
|
+
isUnsavedPromptOpen: m,
|
|
235
|
+
isLocked: T,
|
|
236
|
+
isDirty: e
|
|
237
|
+
})) {
|
|
238
|
+
case "dismiss-prompt":
|
|
239
|
+
h(!1);
|
|
240
|
+
return;
|
|
241
|
+
case "prompt":
|
|
242
|
+
h(!0);
|
|
243
|
+
return;
|
|
244
|
+
default: l(!1);
|
|
245
|
+
}
|
|
246
|
+
}, [
|
|
247
|
+
k.isFileDeletionPending,
|
|
248
|
+
k.stagedFile,
|
|
249
|
+
E.isDirty,
|
|
250
|
+
T,
|
|
251
|
+
m,
|
|
252
|
+
l,
|
|
253
|
+
O.hasUnsavedVendorChanges
|
|
254
|
+
]), Pt = i(() => {
|
|
255
|
+
h(!1), l(!1);
|
|
256
|
+
}, [l]), Q = v.isResolving || O.mode === "creating", Ft = i(async () => {
|
|
257
|
+
if (Q) return;
|
|
258
|
+
let e = await k.saveDraft();
|
|
259
|
+
h(!1), e && l(!1);
|
|
260
|
+
}, [
|
|
261
|
+
k,
|
|
262
|
+
Q,
|
|
263
|
+
l
|
|
264
|
+
]), $ = ge({
|
|
265
|
+
payable: S,
|
|
266
|
+
onRemoved: () => l(!1),
|
|
267
|
+
canManage: pt
|
|
268
|
+
}), It = i((e) => {
|
|
269
|
+
if (!(H || $.isBusy)) return e ? l(!0) : Z();
|
|
270
|
+
}, [
|
|
271
|
+
$.isBusy,
|
|
272
|
+
H,
|
|
273
|
+
Z,
|
|
274
|
+
l
|
|
275
|
+
]), Lt = $.isPossibleDuplicate, Rt = !u && jt && !et, zt = !u && !!Y, Bt = zt || Lt || Rt ? /* @__PURE__ */ Ke(Ge, { children: [
|
|
276
|
+
zt && Y ? /* @__PURE__ */ s(fe, {
|
|
277
|
+
...Y,
|
|
278
|
+
labels: d.rejectedBanner
|
|
279
|
+
}) : null,
|
|
280
|
+
Lt ? /* @__PURE__ */ s(de, {
|
|
281
|
+
onNotADuplicate: $.onNotADuplicate,
|
|
282
|
+
onRemoveBill: $.onRemoveBill,
|
|
283
|
+
isActionDisabled: $.isBusy,
|
|
284
|
+
labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
|
|
285
|
+
testId: r.duplicateNotice
|
|
286
|
+
}) : null,
|
|
287
|
+
Rt ? /* @__PURE__ */ s(pe, { onDismiss: () => tt(!0) }) : null
|
|
288
|
+
] }) : void 0;
|
|
289
|
+
return /* @__PURE__ */ Ke(Ge, { children: [
|
|
290
|
+
/* @__PURE__ */ s(ue, {
|
|
291
|
+
open: c,
|
|
292
|
+
onOpenChange: It,
|
|
293
|
+
title: Mt,
|
|
294
|
+
subtitle: Nt,
|
|
295
|
+
notice: Bt,
|
|
296
|
+
vendor: {
|
|
297
|
+
...O,
|
|
298
|
+
testId: r.vendorSection
|
|
299
|
+
},
|
|
300
|
+
values: E.values,
|
|
301
|
+
errors: E.errors,
|
|
302
|
+
onChange: E.onChange,
|
|
303
|
+
lineItems: {
|
|
304
|
+
items: E.lineItemRows,
|
|
305
|
+
glCodeOptions: G,
|
|
306
|
+
glCodeDisabled: yt,
|
|
307
|
+
glCodeUnavailableMessage: K,
|
|
308
|
+
discount: E.discount,
|
|
309
|
+
onDiscountChange: E.onDiscountChange,
|
|
310
|
+
tax: E.tax,
|
|
311
|
+
onTaxChange: E.onTaxChange,
|
|
312
|
+
total: E.total,
|
|
313
|
+
onTotalChange: E.onTotalChange,
|
|
314
|
+
onAddLineItem: E.onAddLineItem,
|
|
315
|
+
errors: E.lineItemErrors,
|
|
316
|
+
totalsErrors: E.totalsErrors,
|
|
317
|
+
testId: r.lineItems
|
|
318
|
+
},
|
|
319
|
+
documentPanel: /* @__PURE__ */ s(Be, {
|
|
320
|
+
payableId: g,
|
|
321
|
+
readOnly: T,
|
|
322
|
+
isDocumentPending: !!g && !S?.file && (_.isLoading || S?.ocr_status === "processing"),
|
|
323
|
+
file: S?.file ? {
|
|
324
|
+
id: S.file.id,
|
|
325
|
+
name: S.file.name,
|
|
326
|
+
url: S.file.url,
|
|
327
|
+
mimetype: S.file.mimetype
|
|
328
|
+
} : void 0,
|
|
329
|
+
staging: {
|
|
330
|
+
stagedFile: k.stagedFile,
|
|
331
|
+
onFileStaged: k.stageFile,
|
|
332
|
+
onClearStagedFile: k.clearStagedFile,
|
|
333
|
+
isSaving: A
|
|
334
|
+
},
|
|
335
|
+
deletion: {
|
|
336
|
+
isPending: k.isFileDeletionPending,
|
|
337
|
+
onRequest: k.requestFileDeletion,
|
|
338
|
+
onDetachNow: k.detachFileNow,
|
|
339
|
+
isDeleting: k.isDeletingFile,
|
|
340
|
+
hasFailed: k.hasFileDeletionFailed
|
|
341
|
+
}
|
|
342
|
+
}),
|
|
343
|
+
menuItems: vt,
|
|
344
|
+
readOnly: T,
|
|
345
|
+
detail: u ? {
|
|
346
|
+
view: At,
|
|
347
|
+
actions: B,
|
|
348
|
+
scheduledSummary: N.hasScheduledPayment && N.scheduledDateLabel ? d.scheduledSummary(N.scheduledDateLabel) : void 0,
|
|
349
|
+
showApprovalOverrideNotice: ht,
|
|
350
|
+
onEditPaymentInstructions: D && mt ? I.open : void 0,
|
|
351
|
+
paymentInstructionsForm: D && (mt || L && S?.status === "rejected") ? {
|
|
352
|
+
isOpen: I.isOpen,
|
|
353
|
+
values: I.values,
|
|
354
|
+
errors: I.errors,
|
|
355
|
+
isSaving: I.isSaving,
|
|
356
|
+
onOpen: I.open,
|
|
357
|
+
onCancel: I.close,
|
|
358
|
+
onChange: I.onChange,
|
|
359
|
+
onSave: I.save
|
|
360
|
+
} : void 0,
|
|
361
|
+
hideMissingPaymentInstructions: S?.status === "paid" || S?.status === "canceled",
|
|
362
|
+
isLoading: U,
|
|
363
|
+
isError: W,
|
|
364
|
+
paymentHistoryError: N.isError || q.isError,
|
|
365
|
+
paymentHistoryLoading: N.isResolving || q.isLoading
|
|
366
|
+
} : void 0,
|
|
367
|
+
isLineItemsLoading: v.isResolving,
|
|
368
|
+
isSaving: H,
|
|
369
|
+
isSavingDraft: k.isSavingDraft,
|
|
370
|
+
isSubmitting: k.isFinalizing,
|
|
371
|
+
onCancel: Z,
|
|
372
|
+
onCollapse: u ? Xe : void 0,
|
|
373
|
+
onSaveDraft: k.saveDraft,
|
|
374
|
+
onFinalize: k.finalize,
|
|
375
|
+
scrollToErrorToken: k.scrollToErrorToken,
|
|
376
|
+
showSubmit: !T && C,
|
|
377
|
+
testId: r.dialog
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ s(he, {
|
|
380
|
+
open: m,
|
|
381
|
+
onSaveDraft: Ft,
|
|
382
|
+
onDiscard: Pt,
|
|
383
|
+
onCancel: () => h(!1),
|
|
384
|
+
isSaving: k.isSavingDraft,
|
|
385
|
+
isSaveDraftDisabled: Q,
|
|
386
|
+
labels: d.unsavedChanges,
|
|
387
|
+
testId: r.unsavedDialog,
|
|
388
|
+
saveDraftTestId: r.unsavedSaveDraft,
|
|
389
|
+
discardTestId: r.unsavedDiscard,
|
|
390
|
+
closeTestId: r.unsavedClose
|
|
391
|
+
}),
|
|
392
|
+
/* @__PURE__ */ s(n, {
|
|
393
|
+
...gt,
|
|
394
|
+
labels: { cancelButton: d.actions.decisionDialog.cancelButton },
|
|
395
|
+
testId: r.decisionDialog,
|
|
396
|
+
confirmTestId: r.decisionConfirm,
|
|
397
|
+
reasonTestId: r.decisionReason
|
|
398
|
+
}),
|
|
399
|
+
/* @__PURE__ */ s(n, {
|
|
400
|
+
...V.dialog,
|
|
401
|
+
labels: { cancelButton: d.actions.decisionDialog.cancelButton },
|
|
402
|
+
testId: r.deleteDraftDialog,
|
|
403
|
+
confirmTestId: r.deleteDraftConfirm
|
|
404
|
+
}),
|
|
405
|
+
/* @__PURE__ */ s(n, {
|
|
406
|
+
open: $.removeConfirmation.open,
|
|
407
|
+
copy: $.removeConfirmation.copy,
|
|
408
|
+
onConfirm: $.removeConfirmation.onConfirm,
|
|
409
|
+
onCancel: $.removeConfirmation.onCancel,
|
|
410
|
+
isPending: $.removeConfirmation.isPending,
|
|
411
|
+
confirmIcon: /* @__PURE__ */ s(qe, {}),
|
|
412
|
+
labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
|
|
413
|
+
testId: r.duplicateRemoveDialog,
|
|
414
|
+
confirmTestId: r.duplicateRemoveConfirm
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ s(me, { ...R.dialogProps }),
|
|
417
|
+
u && S ? /* @__PURE__ */ s(xe, {
|
|
418
|
+
ref: dt,
|
|
419
|
+
payable: S,
|
|
420
|
+
onMissingAchInstructions: L ? I.open : void 0,
|
|
421
|
+
poweredByBankName: Ze,
|
|
422
|
+
labels: d.payBill
|
|
423
|
+
}) : null
|
|
424
|
+
] });
|
|
425
|
+
}
|
|
34
426
|
//#endregion
|
|
35
|
-
export {
|
|
427
|
+
export { c as BillCreateDialog, c as default };
|
|
@@ -1,192 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
-
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
-
import { useAllLedgerAccountsQuery as n } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
8
|
-
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { useWidgetConfig as ee } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
|
-
import "../../../shared/feature/dist/index.js";
|
|
11
|
-
import { usePayableHistoryQuery as r } from "../../data-access/dist/index9.js";
|
|
12
|
-
import { useAllPayableLineItemsQuery as i } from "../../data-access/dist/index10.js";
|
|
13
|
-
import { usePayableQuery as a } from "../../data-access/dist/index16.js";
|
|
14
|
-
import "../../data-access/dist/index.js";
|
|
15
|
-
import { BillDecisionDialog as o } from "../../ui/dist/index55.js";
|
|
16
|
-
import { BillDetailsSheet as s } from "../../ui/dist/index61.js";
|
|
17
|
-
import { BillDuplicateNotice as c } from "../../ui/dist/index65.js";
|
|
18
|
-
import { MarkAsPaidDialog as l } from "../../ui/dist/index92.js";
|
|
19
|
-
import "../../ui/dist/index.js";
|
|
20
|
-
import { usePayableDuplicateReview as u } from "./index12.js";
|
|
21
|
-
import "./index13.js";
|
|
22
|
-
import { canOverrideApprovalPolicy as te } from "./index18.js";
|
|
23
|
-
import { resolveAmountDueMinorUnits as d } from "./index19.js";
|
|
24
|
-
import { PayBillFlow as f } from "./index25.js";
|
|
25
|
-
import "./index26.js";
|
|
26
|
-
import { mapPayableToBillDetails as p } from "./index38.js";
|
|
27
|
-
import { mergeMarkAsPaidFlowLabels as m } from "./index14.js";
|
|
28
|
-
import { useMarkAsPaidFlow as h } from "./index16.js";
|
|
29
|
-
import "./index17.js";
|
|
30
|
-
import { mergeDecisionDialogCopy as g, mergePaymentHistoryMethodLabels as ne } from "./index41.js";
|
|
31
|
-
import { buildPaymentHistory as _ } from "./index3.js";
|
|
32
|
-
import { useApprovalPolicyCardView as v } from "./index32.js";
|
|
33
|
-
import { useCurrentApprovalRequestId as y } from "./index33.js";
|
|
34
|
-
import { usePayableDetailActions as b } from "./index34.js";
|
|
35
|
-
import { useScheduledPayment as x } from "./index35.js";
|
|
36
|
-
import { BILL_DETAILS_LABELS_EN as S } from "./index58.js";
|
|
37
|
-
import { useMemo as C, useRef as w } from "react";
|
|
38
|
-
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
39
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js
|
|
40
|
-
function O({ open: O, onOpenChange: k, payableId: A, onClose: j, onExpand: M, testId: N, labels: P, poweredByBankName: F }) {
|
|
41
|
-
let I = C(() => ({
|
|
42
|
-
...S,
|
|
43
|
-
...P,
|
|
44
|
-
sheet: {
|
|
45
|
-
...S.sheet,
|
|
46
|
-
...P?.sheet,
|
|
47
|
-
statusBadge: {
|
|
48
|
-
...S.sheet.statusBadge,
|
|
49
|
-
...P?.sheet?.statusBadge
|
|
50
|
-
},
|
|
51
|
-
approvalPolicy: {
|
|
52
|
-
...S.sheet.approvalPolicy,
|
|
53
|
-
...P?.sheet?.approvalPolicy
|
|
54
|
-
},
|
|
55
|
-
dueDate: {
|
|
56
|
-
...S.sheet.dueDate,
|
|
57
|
-
...P?.sheet?.dueDate
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
decisionDialog: g(S.decisionDialog, P?.decisionDialog),
|
|
61
|
-
approvalPolicyCopy: {
|
|
62
|
-
...S.approvalPolicyCopy,
|
|
63
|
-
...P?.approvalPolicyCopy
|
|
64
|
-
},
|
|
65
|
-
markAsPaid: m(P?.markAsPaid),
|
|
66
|
-
actionSuccess: {
|
|
67
|
-
...S.actionSuccess,
|
|
68
|
-
...P?.actionSuccess
|
|
69
|
-
},
|
|
70
|
-
paymentHistoryMethodLabels: ne(P?.paymentHistoryMethodLabels)
|
|
71
|
-
}), [P]), L = a(A), R = i(A), z = n(), { initResponse: B } = ee(), V = L.data, H = w(null), U = y({
|
|
72
|
-
payableId: A,
|
|
73
|
-
status: V?.status
|
|
74
|
-
}), W = v({
|
|
75
|
-
payableId: A,
|
|
76
|
-
approvalPolicyId: V?.approval_policy_id,
|
|
77
|
-
copy: I.approvalPolicyCopy
|
|
78
|
-
}), G = te({
|
|
79
|
-
status: V?.status,
|
|
80
|
-
scopes: B?.scopes,
|
|
81
|
-
hasWaitingRequest: U.hasWaitingRequest,
|
|
82
|
-
arePendingApproversUnknown: W.isLoading
|
|
83
|
-
}), K = x({
|
|
84
|
-
payableId: A,
|
|
85
|
-
scheduledPaymentDate: V?.scheduled_payment_date
|
|
86
|
-
}), q = h({
|
|
87
|
-
payableId: A,
|
|
88
|
-
amountDueMinorUnits: d(V) ?? 0,
|
|
89
|
-
amountToPayMinorUnits: V?.amount_to_pay ?? void 0,
|
|
90
|
-
currencyCode: V?.currency ?? void 0,
|
|
91
|
-
dueDate: V?.due_date,
|
|
92
|
-
hasScheduledPayment: K.hasScheduledPayment,
|
|
93
|
-
testId: N,
|
|
94
|
-
labels: I.markAsPaid
|
|
95
|
-
}), { actions: J, decisionDialog: Y } = b({
|
|
96
|
-
payableId: V ? A : void 0,
|
|
97
|
-
status: V?.status,
|
|
98
|
-
currentApprovalRequestId: U.id,
|
|
99
|
-
hasWaitingRequest: U.hasWaitingRequest,
|
|
100
|
-
hasScheduledPayment: K.hasScheduledPayment,
|
|
101
|
-
scheduledPaymentIntentId: K.scheduledPaymentIntentId,
|
|
102
|
-
isScheduledPaymentUnknown: K.isResolving,
|
|
103
|
-
pendingApprovers: W.pendingApprovers,
|
|
104
|
-
arePendingApproversUnknown: W.isLoading,
|
|
105
|
-
labels: {
|
|
106
|
-
payBill: I.sheet.payButton,
|
|
107
|
-
markAsPaid: I.sheet.markAsPaidButton,
|
|
108
|
-
reject: I.sheet.rejectButton,
|
|
109
|
-
approve: I.sheet.approveButton,
|
|
110
|
-
cancel: I.sheet.cancelButton,
|
|
111
|
-
cancelScheduledPayment: I.sheet.cancelScheduledPaymentButton,
|
|
112
|
-
reopen: I.sheet.reopenButton,
|
|
113
|
-
forceApprove: I.sheet.forceApproveButton,
|
|
114
|
-
forceReject: I.sheet.forceRejectButton,
|
|
115
|
-
policyOverridesHeading: I.sheet.policyOverridesGroup,
|
|
116
|
-
decisionDialog: I.decisionDialog,
|
|
117
|
-
actionError: I.actionError,
|
|
118
|
-
actionSuccess: I.actionSuccess
|
|
119
|
-
},
|
|
120
|
-
isMarkAsPaidPending: q.isPending,
|
|
121
|
-
onMarkAsPaidSelect: q.open,
|
|
122
|
-
onPayBillSelect: () => H.current?.open()
|
|
123
|
-
}), X = K.hasScheduledPayment && K.scheduledDateLabel ? /* @__PURE__ */ E("p", {
|
|
124
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
125
|
-
children: I.scheduledSummary(K.scheduledDateLabel)
|
|
126
|
-
}) : void 0, Z = u({
|
|
127
|
-
payable: V,
|
|
128
|
-
canManage: e(B?.scopes, [t.PayableWriteOrg])
|
|
129
|
-
}), Q = Z.isPossibleDuplicate ? /* @__PURE__ */ E(c, {
|
|
130
|
-
onNotADuplicate: Z.onNotADuplicate,
|
|
131
|
-
isActionDisabled: Z.isBusy
|
|
132
|
-
}) : void 0, re = Q || X ? /* @__PURE__ */ D(T, { children: [Q, X] }) : void 0, $ = r(A), ie = C(() => _({
|
|
133
|
-
records: K.paymentRecords,
|
|
134
|
-
events: $.data?.data ?? [],
|
|
135
|
-
currencyCode: V?.currency,
|
|
136
|
-
labels: I
|
|
137
|
-
}), [
|
|
138
|
-
K.paymentRecords,
|
|
139
|
-
$.data,
|
|
140
|
-
V?.currency,
|
|
141
|
-
I
|
|
142
|
-
]), ae = C(() => V ? p({
|
|
143
|
-
payable: V,
|
|
144
|
-
lineItems: R.lineItems,
|
|
145
|
-
ledgerAccounts: z.data?.data ?? [],
|
|
146
|
-
labels: I,
|
|
147
|
-
hasScheduledPayment: K.hasScheduledPayment
|
|
148
|
-
}) : void 0, [
|
|
149
|
-
V,
|
|
150
|
-
R.lineItems,
|
|
151
|
-
z.data,
|
|
152
|
-
I,
|
|
153
|
-
K.hasScheduledPayment
|
|
154
|
-
]), oe = L.isLoading || R.isResolving || z.isResolving, se = L.isError || R.isError || z.isError;
|
|
155
|
-
return /* @__PURE__ */ D(T, { children: [
|
|
156
|
-
/* @__PURE__ */ E(s, {
|
|
157
|
-
open: O,
|
|
158
|
-
onOpenChange: k,
|
|
159
|
-
details: ae,
|
|
160
|
-
actions: J,
|
|
161
|
-
approvalPolicy: W.view,
|
|
162
|
-
showApprovalOverrideNotice: G,
|
|
163
|
-
paymentHistory: ie,
|
|
164
|
-
paymentHistoryError: K.isError || $.isError,
|
|
165
|
-
paymentHistoryLoading: K.isResolving || $.isLoading,
|
|
166
|
-
isLoading: oe,
|
|
167
|
-
isError: se,
|
|
168
|
-
notice: re,
|
|
169
|
-
onClose: j,
|
|
170
|
-
onExpand: M,
|
|
171
|
-
testId: N,
|
|
172
|
-
labels: I.sheet
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ E(o, {
|
|
175
|
-
...Y,
|
|
176
|
-
labels: { cancelButton: I.decisionDialog.cancelButton },
|
|
177
|
-
testId: N ? `${N}-decision-dialog` : void 0,
|
|
178
|
-
confirmTestId: N ? `${N}-decision-confirm` : void 0,
|
|
179
|
-
reasonTestId: N ? `${N}-decision-reason` : void 0,
|
|
180
|
-
reasonFieldId: N ? `${N}-decision-reason-field` : void 0
|
|
181
|
-
}),
|
|
182
|
-
/* @__PURE__ */ E(l, { ...q.dialogProps }),
|
|
183
|
-
V ? /* @__PURE__ */ E(f, {
|
|
184
|
-
ref: H,
|
|
185
|
-
payable: V,
|
|
186
|
-
onMissingAchInstructions: M,
|
|
187
|
-
poweredByBankName: F
|
|
188
|
-
}) : null
|
|
189
|
-
] });
|
|
190
|
-
}
|
|
191
|
-
//#endregion
|
|
192
|
-
export { O as BillDetailsContainer, O as default };
|
|
1
|
+
import "./index45.js";
|
|
2
|
+
import "./index54.js";
|
|
3
|
+
import "./index56.js";
|
|
4
|
+
import "./index58.js";
|