@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
|
@@ -1,4 +1,416 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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";
|
|
27
|
+
import "../../ui/dist/index.js";
|
|
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 "./index44.js";
|
|
39
|
+
import { useBillCreateController as Te } from "./index53.js";
|
|
40
|
+
import { useBillForm as Ee } from "./index55.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 { buildBillHistory as Re } from "./index41.js";
|
|
53
|
+
import { SourceDocumentContainer as ze } from "./index45.js";
|
|
54
|
+
import { useVendorSectionProps as Be } from "./index48.js";
|
|
55
|
+
import { usePaymentInstructionsForm as Ve } from "./index49.js";
|
|
56
|
+
import { billCreateTestIds as r } from "./index56.js";
|
|
57
|
+
import { useCallback as i, useEffect as He, useMemo as a, useRef as Ue, useState as o } from "react";
|
|
58
|
+
import { Fragment as s, jsx as c, jsxs as We } from "react/jsx-runtime";
|
|
59
|
+
import { Trash2Icon as Ge } from "lucide-react";
|
|
60
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js
|
|
61
|
+
function l({ open: l, onOpenChange: u, payableId: Ke, readOnly: d = !1, copy: qe, onCollapse: Je, poweredByBankName: Ye }) {
|
|
62
|
+
let f = a(() => we(qe), [qe]), [p, Xe] = o(), [m, Ze] = o(!1), [Qe, $e] = o(!1), [et, h] = o(!1), [tt, nt] = o(), g = Ke ?? tt, _ = se(g, { pollWhileOcrProcessing: !0 }), v = oe(g), { initResponse: y } = re(), rt = !!y, b = e(y?.scopes, [t.AccountingConfigReadOrg]), x = ee({ enabled: b }), S = _.data, C = !g || !!S, w = !d && C && !!g && S?.status !== "draft", it = !d && !!S && !Fe(S?.status), T = d || it, E = Ee({
|
|
63
|
+
payable: S,
|
|
64
|
+
lineItems: v.lineItems
|
|
65
|
+
}), D = S?.counterpart_id;
|
|
66
|
+
He(() => {
|
|
67
|
+
m || D && (Xe(D), Ze(!0));
|
|
68
|
+
}, [m, D]);
|
|
69
|
+
let at = i((e) => {
|
|
70
|
+
Ze(!0), Xe(e);
|
|
71
|
+
}, []), O = Be({
|
|
72
|
+
payableId: d ? void 0 : g,
|
|
73
|
+
counterpartId: d ? void 0 : p,
|
|
74
|
+
payableCounterpartId: D,
|
|
75
|
+
isVendorKnown: !d && C,
|
|
76
|
+
onCounterpartChange: at,
|
|
77
|
+
requiredError: E.errors?.vendor,
|
|
78
|
+
payableCounterpartBankAccountId: S?.counterpart_bank_account_id ?? void 0,
|
|
79
|
+
extractedVendor: S?.counterpart_raw_data ?? void 0
|
|
80
|
+
}), ot = !!(g && m) && !p, st = _.refetch, ct = i(async () => {
|
|
81
|
+
let { data: e } = await st();
|
|
82
|
+
return e?.status ?? void 0;
|
|
83
|
+
}, [st]), lt = a(() => w ? { draftSaved: Ce.submittedSaved } : void 0, [w]), k = Te({
|
|
84
|
+
payableId: Ke,
|
|
85
|
+
form: E,
|
|
86
|
+
labels: lt,
|
|
87
|
+
counterpartId: p,
|
|
88
|
+
clearCounterpart: ot,
|
|
89
|
+
prepareVendorForSave: O.savePaymentInstructions,
|
|
90
|
+
onPayableCreated: nt,
|
|
91
|
+
onSaved: nt,
|
|
92
|
+
onDraftSaved: () => u(!1),
|
|
93
|
+
onFinalized: () => u(!1),
|
|
94
|
+
readSavedStatus: w ? ct : void 0
|
|
95
|
+
}), ut = !!(k.isSavingDraft || k.isFinalizing), A = d ? g : void 0, j = Me({
|
|
96
|
+
payableId: A,
|
|
97
|
+
status: S?.status
|
|
98
|
+
}), dt = Ue(null), M = Pe({
|
|
99
|
+
payableId: g,
|
|
100
|
+
scheduledPaymentDate: S?.scheduled_payment_date,
|
|
101
|
+
enabled: d || w
|
|
102
|
+
}), ft = le(S), N = ve(y?.scopes), P = be({
|
|
103
|
+
counterpartId: d ? D : void 0,
|
|
104
|
+
currency: S?.currency,
|
|
105
|
+
currentBankAccountId: d ? S?.counterpart_bank_account_id ?? void 0 : void 0,
|
|
106
|
+
enabled: N && d
|
|
107
|
+
}), F = Ve({
|
|
108
|
+
payableId: A,
|
|
109
|
+
counterpartId: d ? D : void 0,
|
|
110
|
+
currentBankAccountId: S?.counterpart_bank_account_id ?? void 0,
|
|
111
|
+
canReadCounterpartBankAccounts: N,
|
|
112
|
+
saveErrorMessage: f.detail.paymentInstructionsSaveError,
|
|
113
|
+
linkErrorMessage: f.detail.paymentInstructionsLinkError
|
|
114
|
+
}), pt = e(y?.scopes, [t.PayableWriteOrg]), I = e(y?.scopes, [t.CounterpartWriteOrg]) && pt, mt = I && ce(S?.status) && !M.hasScheduledPayment && !M.isResolving, L = Se({
|
|
115
|
+
payableId: A,
|
|
116
|
+
amountDueMinorUnits: ye(S) ?? 0,
|
|
117
|
+
amountToPayMinorUnits: S?.amount_to_pay ?? void 0,
|
|
118
|
+
currencyCode: S?.currency ?? void 0,
|
|
119
|
+
dueDate: S?.due_date,
|
|
120
|
+
hasScheduledPayment: M.hasScheduledPayment,
|
|
121
|
+
labels: f.markAsPaid
|
|
122
|
+
}), R = Ae({
|
|
123
|
+
payableId: A,
|
|
124
|
+
approvalPolicyId: S?.approval_policy_id,
|
|
125
|
+
enabled: d,
|
|
126
|
+
copy: f.approvalPolicyCopy
|
|
127
|
+
}), ht = _e({
|
|
128
|
+
status: S?.status,
|
|
129
|
+
scopes: y?.scopes,
|
|
130
|
+
hasWaitingRequest: j.hasWaitingRequest,
|
|
131
|
+
arePendingApproversUnknown: R.isLoading
|
|
132
|
+
}), { actions: z, decisionDialog: gt, isActionPending: _t } = Ne({
|
|
133
|
+
payableId: d || w ? g : void 0,
|
|
134
|
+
status: S?.status,
|
|
135
|
+
currentApprovalRequestId: j.id,
|
|
136
|
+
hasWaitingRequest: j.hasWaitingRequest,
|
|
137
|
+
arePendingApproversUnknown: R.isLoading,
|
|
138
|
+
hasScheduledPayment: M.hasScheduledPayment,
|
|
139
|
+
scheduledPaymentIntentId: M.scheduledPaymentIntentId,
|
|
140
|
+
isScheduledPaymentUnknown: M.isResolving,
|
|
141
|
+
pendingApprovers: R.pendingApprovers,
|
|
142
|
+
labels: f.actions,
|
|
143
|
+
isMarkAsPaidPending: L.isPending,
|
|
144
|
+
onMarkAsPaidSelect: L.open,
|
|
145
|
+
onPayBillSelect: () => dt.current?.open(),
|
|
146
|
+
onActionSucceeded: w ? () => u(!1) : void 0
|
|
147
|
+
}), B = Ie({
|
|
148
|
+
payableId: g,
|
|
149
|
+
status: S?.status,
|
|
150
|
+
enabled: !d,
|
|
151
|
+
labels: f.deleteDraft,
|
|
152
|
+
onDeleted: () => u(!1)
|
|
153
|
+
}), V = ut || _t, H = _.isLoading || v.isResolving || x.isResolving || P.isLoading, U = _.isError || v.isError || x.isError, vt = a(() => [...B.menuItems, ...w || d && !H && !U ? z.menu.map((e) => ({
|
|
154
|
+
id: e.id,
|
|
155
|
+
label: e.label,
|
|
156
|
+
onSelect: e.onSelect,
|
|
157
|
+
disabled: e.disabled,
|
|
158
|
+
icon: e.icon,
|
|
159
|
+
sectionHeading: e.sectionHeading
|
|
160
|
+
})) : []], [
|
|
161
|
+
z.menu,
|
|
162
|
+
B.menuItems,
|
|
163
|
+
w,
|
|
164
|
+
d,
|
|
165
|
+
H,
|
|
166
|
+
U
|
|
167
|
+
]), W = a(() => (x.data?.data ?? []).map((e) => ({
|
|
168
|
+
value: e.id,
|
|
169
|
+
label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
|
|
170
|
+
})), [x.data]), G;
|
|
171
|
+
rt && (b ? x.isError ? G = f.lineItemsGlCodeUnavailable.loadError : !x.isResolving && W.length === 0 && (G = f.lineItemsGlCodeUnavailable.empty) : G = f.lineItemsGlCodeUnavailable.noAccess);
|
|
172
|
+
let yt = !rt || !!G || x.isResolving, bt = b && !x.isResolving && !x.isError, K = ae(A), xt = S?.status === "rejected" || !d && w, St = e(y?.scopes, [t.ApprovalRequestReadOrg]), Ct = xt && St, wt = e(y?.scopes, [t.UserReadOrg]), q = te({ enabled: (d || xt) && wt }), Tt = a(() => Re(K.data?.data ?? [], q.data?.data ?? [], f.history), [
|
|
173
|
+
K.data,
|
|
174
|
+
q.data,
|
|
175
|
+
f.history
|
|
176
|
+
]), Et = ke({
|
|
177
|
+
payableId: g,
|
|
178
|
+
enabled: Ct
|
|
179
|
+
}), Dt = ie(g, { enabled: Ct }), Ot = a(() => Oe(Dt.data?.data, Et.roundStartedAt), [Dt.data, Et.roundStartedAt]), J = a(() => je({
|
|
180
|
+
payableStatus: S?.status,
|
|
181
|
+
approvalRequests: Ot,
|
|
182
|
+
users: q.data?.data ?? [],
|
|
183
|
+
payableUpdatedAt: S?.updated_at,
|
|
184
|
+
labels: f.detail
|
|
185
|
+
}), [
|
|
186
|
+
S?.status,
|
|
187
|
+
S?.updated_at,
|
|
188
|
+
Ot,
|
|
189
|
+
q.data,
|
|
190
|
+
f.detail
|
|
191
|
+
]), Y = a(() => De({
|
|
192
|
+
records: M.paymentRecords,
|
|
193
|
+
events: K.data?.data ?? [],
|
|
194
|
+
currencyCode: S?.currency,
|
|
195
|
+
labels: f.detail
|
|
196
|
+
}), [
|
|
197
|
+
M.paymentRecords,
|
|
198
|
+
K.data,
|
|
199
|
+
S?.currency,
|
|
200
|
+
f.detail
|
|
201
|
+
]), kt = a(() => d && S ? Le({
|
|
202
|
+
payable: S,
|
|
203
|
+
lineItems: v.lineItems,
|
|
204
|
+
glCodeOptions: W,
|
|
205
|
+
glCodeRosterAvailable: bt,
|
|
206
|
+
history: Tt,
|
|
207
|
+
paymentHistory: Y,
|
|
208
|
+
approvalPolicy: R.view,
|
|
209
|
+
labels: f.detail,
|
|
210
|
+
hasScheduledPayment: M.hasScheduledPayment,
|
|
211
|
+
rejection: J,
|
|
212
|
+
payableAchInstructions: P.achInstructions,
|
|
213
|
+
payableAchInstructionsReadable: N && !P.isError
|
|
214
|
+
}) : void 0, [
|
|
215
|
+
M.hasScheduledPayment,
|
|
216
|
+
R.view,
|
|
217
|
+
N,
|
|
218
|
+
f.detail,
|
|
219
|
+
W,
|
|
220
|
+
bt,
|
|
221
|
+
Tt,
|
|
222
|
+
v.lineItems,
|
|
223
|
+
S,
|
|
224
|
+
P.achInstructions,
|
|
225
|
+
P.isError,
|
|
226
|
+
Y,
|
|
227
|
+
d,
|
|
228
|
+
J
|
|
229
|
+
]), At = S?.source_of_payable_data === "ocr", X = ft?.name, jt = d ? X ? f.viewTitle(X) : f.readOnlyTitle : X && (At || w) ? f.extractedTitle(X) : f.newTitle, Mt = d && S?.created_at ? f.addedOn(ne(S.created_at.slice(0, 10))) : void 0, Z = i(() => {
|
|
230
|
+
let e = E.isDirty || O.hasUnsavedVendorChanges || !!k.stagedFile || k.isFileDeletionPending;
|
|
231
|
+
if (!T && e) {
|
|
232
|
+
h(!0);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
u(!1);
|
|
236
|
+
}, [
|
|
237
|
+
k.isFileDeletionPending,
|
|
238
|
+
k.stagedFile,
|
|
239
|
+
E.isDirty,
|
|
240
|
+
T,
|
|
241
|
+
u,
|
|
242
|
+
O.hasUnsavedVendorChanges
|
|
243
|
+
]), Nt = i(() => {
|
|
244
|
+
h(!1), u(!1);
|
|
245
|
+
}, [u]), Q = v.isResolving || O.mode === "creating", Pt = i(async () => {
|
|
246
|
+
if (Q) return;
|
|
247
|
+
let e = await k.saveDraft();
|
|
248
|
+
h(!1), e && u(!1);
|
|
249
|
+
}, [
|
|
250
|
+
k,
|
|
251
|
+
Q,
|
|
252
|
+
u
|
|
253
|
+
]), $ = ge({
|
|
254
|
+
payable: S,
|
|
255
|
+
onRemoved: () => u(!1),
|
|
256
|
+
canManage: pt
|
|
257
|
+
}), Ft = i((e) => {
|
|
258
|
+
if (!(V || $.isBusy)) return e ? u(!0) : Z();
|
|
259
|
+
}, [
|
|
260
|
+
$.isBusy,
|
|
261
|
+
V,
|
|
262
|
+
Z,
|
|
263
|
+
u
|
|
264
|
+
]), It = $.isPossibleDuplicate, Lt = !d && At && !Qe, Rt = !d && !!J, zt = Rt || It || Lt ? /* @__PURE__ */ We(s, { children: [
|
|
265
|
+
Rt && J ? /* @__PURE__ */ c(fe, {
|
|
266
|
+
...J,
|
|
267
|
+
labels: f.rejectedBanner
|
|
268
|
+
}) : null,
|
|
269
|
+
It ? /* @__PURE__ */ c(de, {
|
|
270
|
+
onNotADuplicate: $.onNotADuplicate,
|
|
271
|
+
onRemoveBill: $.onRemoveBill,
|
|
272
|
+
isActionDisabled: $.isBusy,
|
|
273
|
+
labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
|
|
274
|
+
testId: r.duplicateNotice
|
|
275
|
+
}) : null,
|
|
276
|
+
Lt ? /* @__PURE__ */ c(pe, { onDismiss: () => $e(!0) }) : null
|
|
277
|
+
] }) : void 0;
|
|
278
|
+
return /* @__PURE__ */ We(s, { children: [
|
|
279
|
+
/* @__PURE__ */ c(ue, {
|
|
280
|
+
open: l,
|
|
281
|
+
onOpenChange: Ft,
|
|
282
|
+
title: jt,
|
|
283
|
+
subtitle: Mt,
|
|
284
|
+
notice: zt,
|
|
285
|
+
vendor: {
|
|
286
|
+
...O,
|
|
287
|
+
testId: r.vendorSection
|
|
288
|
+
},
|
|
289
|
+
values: E.values,
|
|
290
|
+
errors: E.errors,
|
|
291
|
+
onChange: E.onChange,
|
|
292
|
+
lineItems: {
|
|
293
|
+
items: E.lineItemRows,
|
|
294
|
+
glCodeOptions: W,
|
|
295
|
+
glCodeDisabled: yt,
|
|
296
|
+
glCodeUnavailableMessage: G,
|
|
297
|
+
discount: E.discount,
|
|
298
|
+
onDiscountChange: E.onDiscountChange,
|
|
299
|
+
tax: E.tax,
|
|
300
|
+
onTaxChange: E.onTaxChange,
|
|
301
|
+
total: E.total,
|
|
302
|
+
onTotalChange: E.onTotalChange,
|
|
303
|
+
onAddLineItem: E.onAddLineItem,
|
|
304
|
+
errors: E.lineItemErrors,
|
|
305
|
+
totalsErrors: E.totalsErrors,
|
|
306
|
+
testId: r.lineItems
|
|
307
|
+
},
|
|
308
|
+
documentPanel: /* @__PURE__ */ c(ze, {
|
|
309
|
+
payableId: g,
|
|
310
|
+
readOnly: T,
|
|
311
|
+
isDocumentPending: !!g && !S?.file && (_.isLoading || S?.ocr_status === "processing"),
|
|
312
|
+
file: S?.file ? {
|
|
313
|
+
id: S.file.id,
|
|
314
|
+
name: S.file.name,
|
|
315
|
+
url: S.file.url,
|
|
316
|
+
mimetype: S.file.mimetype
|
|
317
|
+
} : void 0,
|
|
318
|
+
staging: {
|
|
319
|
+
stagedFile: k.stagedFile,
|
|
320
|
+
onFileStaged: k.stageFile,
|
|
321
|
+
onClearStagedFile: k.clearStagedFile,
|
|
322
|
+
isSaving: ut
|
|
323
|
+
},
|
|
324
|
+
deletion: {
|
|
325
|
+
isPending: k.isFileDeletionPending,
|
|
326
|
+
onRequest: k.requestFileDeletion,
|
|
327
|
+
onDetachNow: k.detachFileNow,
|
|
328
|
+
isDeleting: k.isDeletingFile,
|
|
329
|
+
hasFailed: k.hasFileDeletionFailed
|
|
330
|
+
}
|
|
331
|
+
}),
|
|
332
|
+
menuItems: vt,
|
|
333
|
+
readOnly: T,
|
|
334
|
+
detail: d ? {
|
|
335
|
+
view: kt,
|
|
336
|
+
actions: z,
|
|
337
|
+
scheduledSummary: M.hasScheduledPayment && M.scheduledDateLabel ? f.scheduledSummary(M.scheduledDateLabel) : void 0,
|
|
338
|
+
showApprovalOverrideNotice: ht,
|
|
339
|
+
onEditPaymentInstructions: D && mt ? F.open : void 0,
|
|
340
|
+
paymentInstructionsForm: D && (mt || I && S?.status === "rejected") ? {
|
|
341
|
+
isOpen: F.isOpen,
|
|
342
|
+
values: F.values,
|
|
343
|
+
errors: F.errors,
|
|
344
|
+
isSaving: F.isSaving,
|
|
345
|
+
onOpen: F.open,
|
|
346
|
+
onCancel: F.close,
|
|
347
|
+
onChange: F.onChange,
|
|
348
|
+
onSave: F.save
|
|
349
|
+
} : void 0,
|
|
350
|
+
hideMissingPaymentInstructions: S?.status === "paid" || S?.status === "canceled",
|
|
351
|
+
isLoading: H,
|
|
352
|
+
isError: U,
|
|
353
|
+
paymentHistoryError: M.isError || K.isError,
|
|
354
|
+
paymentHistoryLoading: M.isResolving || K.isLoading
|
|
355
|
+
} : void 0,
|
|
356
|
+
isLineItemsLoading: v.isResolving,
|
|
357
|
+
isSaving: V,
|
|
358
|
+
isSavingDraft: k.isSavingDraft,
|
|
359
|
+
isSubmitting: k.isFinalizing,
|
|
360
|
+
onCancel: Z,
|
|
361
|
+
onCollapse: d ? Je : void 0,
|
|
362
|
+
onSaveDraft: k.saveDraft,
|
|
363
|
+
onFinalize: k.finalize,
|
|
364
|
+
scrollToErrorToken: k.scrollToErrorToken,
|
|
365
|
+
showSubmit: !T && C,
|
|
366
|
+
testId: r.dialog
|
|
367
|
+
}),
|
|
368
|
+
/* @__PURE__ */ c(he, {
|
|
369
|
+
open: et,
|
|
370
|
+
onSaveDraft: Pt,
|
|
371
|
+
onDiscard: Nt,
|
|
372
|
+
onCancel: () => h(!1),
|
|
373
|
+
isSaving: k.isSavingDraft,
|
|
374
|
+
isSaveDraftDisabled: Q,
|
|
375
|
+
labels: f.unsavedChanges,
|
|
376
|
+
testId: r.unsavedDialog,
|
|
377
|
+
saveDraftTestId: r.unsavedSaveDraft,
|
|
378
|
+
discardTestId: r.unsavedDiscard,
|
|
379
|
+
closeTestId: r.unsavedClose
|
|
380
|
+
}),
|
|
381
|
+
/* @__PURE__ */ c(n, {
|
|
382
|
+
...gt,
|
|
383
|
+
labels: { cancelButton: f.actions.decisionDialog.cancelButton },
|
|
384
|
+
testId: r.decisionDialog,
|
|
385
|
+
confirmTestId: r.decisionConfirm,
|
|
386
|
+
reasonTestId: r.decisionReason
|
|
387
|
+
}),
|
|
388
|
+
/* @__PURE__ */ c(n, {
|
|
389
|
+
...B.dialog,
|
|
390
|
+
labels: { cancelButton: f.actions.decisionDialog.cancelButton },
|
|
391
|
+
testId: r.deleteDraftDialog,
|
|
392
|
+
confirmTestId: r.deleteDraftConfirm
|
|
393
|
+
}),
|
|
394
|
+
/* @__PURE__ */ c(n, {
|
|
395
|
+
open: $.removeConfirmation.open,
|
|
396
|
+
copy: $.removeConfirmation.copy,
|
|
397
|
+
onConfirm: $.removeConfirmation.onConfirm,
|
|
398
|
+
onCancel: $.removeConfirmation.onCancel,
|
|
399
|
+
isPending: $.removeConfirmation.isPending,
|
|
400
|
+
confirmIcon: /* @__PURE__ */ c(Ge, {}),
|
|
401
|
+
labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
|
|
402
|
+
testId: r.duplicateRemoveDialog,
|
|
403
|
+
confirmTestId: r.duplicateRemoveConfirm
|
|
404
|
+
}),
|
|
405
|
+
/* @__PURE__ */ c(me, { ...L.dialogProps }),
|
|
406
|
+
d && S ? /* @__PURE__ */ c(xe, {
|
|
407
|
+
ref: dt,
|
|
408
|
+
payable: S,
|
|
409
|
+
onMissingAchInstructions: I ? F.open : void 0,
|
|
410
|
+
poweredByBankName: Ye,
|
|
411
|
+
labels: f.payBill
|
|
412
|
+
}) : null
|
|
413
|
+
] });
|
|
414
|
+
}
|
|
415
|
+
//#endregion
|
|
416
|
+
export { l as BillCreateDialog, l as default };
|
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./index27.js";
|
|
6
|
-
import { BILL_DETAIL_ACTIONS_LABELS_EN as r, PAYMENT_HISTORY_LABELS_EN as i, SCHEDULED_SUMMARY_LABEL_EN as a } from "./index41.js";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js
|
|
8
|
-
var o = {
|
|
9
|
-
subtitle: "Accounts payable",
|
|
10
|
-
vendorRow: "Vendor",
|
|
11
|
-
bankAccountRow: "ACH bank account",
|
|
12
|
-
bankAccountValue: (e) => `Account ending in ${e}`,
|
|
13
|
-
...i,
|
|
14
|
-
invoiceNumberRow: "Number",
|
|
15
|
-
issueDateRow: "Issue date",
|
|
16
|
-
dueDateRow: "Due date",
|
|
17
|
-
poNumberRow: "PO number",
|
|
18
|
-
notProvided: "Not provided",
|
|
19
|
-
glCodeMissing: "GL code not specified",
|
|
20
|
-
quantityValue: (e, t) => `${e} x ${t}`,
|
|
21
|
-
subtotalRow: "Subtotal",
|
|
22
|
-
discountsRow: "Discounts",
|
|
23
|
-
taxRow: "Tax",
|
|
24
|
-
totalRow: "Total",
|
|
25
|
-
actionError: r.actionError,
|
|
26
|
-
actionSuccess: r.actionSuccess,
|
|
27
|
-
scheduledSummary: a,
|
|
28
|
-
paidOnLabel: (e) => `Paid on ${e}`,
|
|
29
|
-
sheet: e,
|
|
30
|
-
decisionDialog: r.decisionDialog,
|
|
31
|
-
approvalPolicyCopy: n,
|
|
32
|
-
markAsPaid: t
|
|
33
|
-
};
|
|
34
|
-
//#endregion
|
|
35
|
-
export { o as BILL_DETAILS_LABELS_EN };
|
|
1
|
+
import "./index44.js";
|
|
2
|
+
import "./index53.js";
|
|
3
|
+
import "./index55.js";
|
|
4
|
+
import "./index57.js";
|
|
@@ -1,192 +1,38 @@
|
|
|
1
|
-
|
|
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 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";
|
|
1
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index61.js";
|
|
19
2
|
import "../../ui/dist/index.js";
|
|
20
|
-
import {
|
|
21
|
-
import "./
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
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";
|
|
3
|
+
import { MARK_AS_PAID_FLOW_LABELS_EN as t } from "./index15.js";
|
|
4
|
+
import "./index18.js";
|
|
5
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./index28.js";
|
|
6
|
+
import { BILL_DETAIL_ACTIONS_LABELS_EN as r, PAYMENT_HISTORY_LABELS_EN as i, SCHEDULED_SUMMARY_LABEL_EN as a } from "./index42.js";
|
|
39
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js
|
|
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
|
-
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
|
-
}
|
|
8
|
+
var o = {
|
|
9
|
+
subtitle: "Accounts payable",
|
|
10
|
+
vendorRow: "Vendor",
|
|
11
|
+
bankAccountRow: "ACH bank account",
|
|
12
|
+
bankAccountValue: (e) => `Account ending in ${e}`,
|
|
13
|
+
...i,
|
|
14
|
+
invoiceNumberRow: "Number",
|
|
15
|
+
issueDateRow: "Issue date",
|
|
16
|
+
dueDateRow: "Due date",
|
|
17
|
+
poNumberRow: "PO number",
|
|
18
|
+
notProvided: "Not provided",
|
|
19
|
+
glCodeMissing: "GL code not specified",
|
|
20
|
+
quantityValue: (e, t) => `${e} x ${t}`,
|
|
21
|
+
subtotalRow: "Subtotal",
|
|
22
|
+
discountsRow: "Discounts",
|
|
23
|
+
taxRow: "Tax",
|
|
24
|
+
totalRow: "Total",
|
|
25
|
+
actionError: r.actionError,
|
|
26
|
+
actionSuccess: r.actionSuccess,
|
|
27
|
+
scheduledSummary: a,
|
|
28
|
+
paidOnLabel: (e) => `Paid on ${e}`,
|
|
29
|
+
rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
|
|
30
|
+
rejectedOn: (e) => `Rejected on ${e}`,
|
|
31
|
+
rejectionMessage: (e) => `"${e}"`,
|
|
32
|
+
sheet: e,
|
|
33
|
+
decisionDialog: r.decisionDialog,
|
|
34
|
+
approvalPolicyCopy: n,
|
|
35
|
+
markAsPaid: t
|
|
36
|
+
};
|
|
191
37
|
//#endregion
|
|
192
|
-
export {
|
|
38
|
+
export { o as BILL_DETAILS_LABELS_EN };
|