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