@tesouro/embedded-components-react 0.5.141 → 0.5.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/relativeCalendarDay.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { RefreshingRootWidgetProvider as y } from "./libs/tesouro-embedded-compo
|
|
|
15
15
|
import { useDisclosuresAcceptanceSurface as b, useOwnWidgetConfig as x, useRefetchWidget as S, useWidgetConfig as C, useWidgetError as w, useWidgetInitStaleForToken as T, useWidgetLoading as E } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
16
16
|
import { BankAccountsWidget as D } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
17
17
|
import { CounterpartsWidget as O } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
18
|
-
import { BillPayWidget as k } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
18
|
+
import { BillPayWidget as k } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js";
|
|
19
19
|
import { CardDetailsWidget as A } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
|
|
20
20
|
import { CreditCardsWidget as j } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
|
|
21
21
|
import { DebitCardsWidget as M } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
1
|
+
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
|
|
3
3
|
export { e as BillPayWidget };
|
|
@@ -9,24 +9,24 @@ import "./index13.js";
|
|
|
9
9
|
import "./index14.js";
|
|
10
10
|
import "./index27.js";
|
|
11
11
|
import "./index28.js";
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./index56.js";
|
|
12
|
+
import "./index41.js";
|
|
13
|
+
import "./index44.js";
|
|
14
|
+
import "./index50.js";
|
|
16
15
|
import "./index58.js";
|
|
17
16
|
import "./index60.js";
|
|
18
|
-
import "./index61.js";
|
|
19
17
|
import "./index62.js";
|
|
20
18
|
import "./index63.js";
|
|
21
19
|
import "./index64.js";
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
20
|
+
import "./index65.js";
|
|
21
|
+
import "./index66.js";
|
|
24
22
|
import "./index70.js";
|
|
25
23
|
import "./index71.js";
|
|
24
|
+
import "./index72.js";
|
|
26
25
|
import "./index73.js";
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./index85.js";
|
|
26
|
+
import "./index75.js";
|
|
27
|
+
import "./index78.js";
|
|
30
28
|
import "./index86.js";
|
|
31
|
-
import
|
|
29
|
+
import "./index87.js";
|
|
30
|
+
import "./index88.js";
|
|
31
|
+
import { BillPayWidget as e } from "./index92.js";
|
|
32
32
|
export { e as BillPayWidget };
|
|
@@ -9,7 +9,7 @@ import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from ".
|
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
10
|
import { useDuplicateBills as i } from "./index10.js";
|
|
11
11
|
import { useDuplicateBillsSelection as a } from "./index11.js";
|
|
12
|
-
import { DuplicateBillsDialog as o } from "../../ui/dist/
|
|
12
|
+
import { DuplicateBillsDialog as o } from "../../ui/dist/index92.js";
|
|
13
13
|
import "../../ui/dist/index.js";
|
|
14
14
|
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
15
15
|
import { jsx as u } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/
|
|
1
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/index103.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js
|
|
4
4
|
var n = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/
|
|
2
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t, mergeSchedulePaymentDialogLabels as n } from "../../ui/dist/
|
|
1
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index100.js";
|
|
2
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t, mergeSchedulePaymentDialogLabels as n } from "../../ui/dist/index106.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
4
|
import { SOURCE_ACCOUNT_LABELS_EN as r } from "./index24.js";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { useWidgetConfig as e } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
6
6
|
import "../../../shared/feature/dist/index.js";
|
|
7
7
|
import { resolveVendor as t } from "./index8.js";
|
|
8
|
-
import { ReviewTransactionDialog as n } from "../../ui/dist/
|
|
9
|
-
import { SchedulePaymentDialog as r } from "../../ui/dist/
|
|
8
|
+
import { ReviewTransactionDialog as n } from "../../ui/dist/index101.js";
|
|
9
|
+
import { SchedulePaymentDialog as r } from "../../ui/dist/index108.js";
|
|
10
10
|
import "../../ui/dist/index.js";
|
|
11
11
|
import { canReadCounterpartBankAccounts as i } from "./index20.js";
|
|
12
12
|
import { resolveAmountDueMinorUnits as a } from "./index21.js";
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 "../../../shared/data-access/dist/index.js";
|
|
8
|
-
import { formatCalendarDate as n } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
9
|
-
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
|
-
import "../../../shared/feature/dist/index.js";
|
|
11
|
-
import { isLiveScheduledPaymentRecord as i } from "../../data-access/dist/index3.js";
|
|
12
|
-
import { usePayablePaymentRecordsQuery as a } from "../../data-access/dist/index11.js";
|
|
13
|
-
import "../../data-access/dist/index.js";
|
|
1
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
+
import { getRelativeCalendarDay as t } from "../../../shared/util/dist/lib/relativeCalendarDay.js";
|
|
14
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js
|
|
15
|
-
function
|
|
16
|
-
let
|
|
17
|
-
return {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
isResolving: d.isResolving,
|
|
22
|
-
scheduledDateLabel: m ? n(m) : void 0,
|
|
23
|
-
scheduledPaymentIntentId: f?.payment_intent_id ?? void 0
|
|
24
|
-
};
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
let a = e(n), o = t(n, i);
|
|
6
|
+
return o ? {
|
|
7
|
+
label: r[o],
|
|
8
|
+
absoluteLabel: a
|
|
9
|
+
} : { label: a };
|
|
25
10
|
}
|
|
26
11
|
//#endregion
|
|
27
|
-
export {
|
|
12
|
+
export { n as formatScheduledDateLabel };
|
|
@@ -2,43 +2,27 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
-
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
-
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import "../../../shared/ui/dist/index.js";
|
|
10
|
-
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
-
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { useDeletePayableMutation as i } from "../../data-access/dist/index13.js";
|
|
13
|
-
import "../../data-access/dist/index.js";
|
|
14
|
-
import { useState as a } from "react";
|
|
5
|
+
import { useEffect as e, useState as t } from "react";
|
|
15
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
onSuccess: () => {
|
|
36
|
-
m(!1), u();
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
7
|
+
var n = (e) => [
|
|
8
|
+
e.getFullYear(),
|
|
9
|
+
String(e.getMonth() + 1).padStart(2, "0"),
|
|
10
|
+
String(e.getDate()).padStart(2, "0")
|
|
11
|
+
].join("-"), r = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1).getTime() - e.getTime();
|
|
12
|
+
function i() {
|
|
13
|
+
let [i, a] = t();
|
|
14
|
+
return e(() => {
|
|
15
|
+
let e, t = () => a(n(/* @__PURE__ */ new Date())), i = () => {
|
|
16
|
+
e = setTimeout(() => {
|
|
17
|
+
t(), i();
|
|
18
|
+
}, r(/* @__PURE__ */ new Date()));
|
|
19
|
+
}, o = () => {
|
|
20
|
+
document.visibilityState === "visible" && (t(), clearTimeout(e), i());
|
|
21
|
+
};
|
|
22
|
+
return t(), i(), document.addEventListener("visibilitychange", o), () => {
|
|
23
|
+
clearTimeout(e), document.removeEventListener("visibilitychange", o);
|
|
24
|
+
};
|
|
25
|
+
}, []), i;
|
|
42
26
|
}
|
|
43
27
|
//#endregion
|
|
44
|
-
export {
|
|
28
|
+
export { i as useLocalCalendarDay };
|
|
@@ -1,19 +1,26 @@
|
|
|
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 "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
|
+
import "../../../shared/feature/dist/index.js";
|
|
10
|
+
import { isLiveScheduledPaymentRecord as r } from "../../data-access/dist/index3.js";
|
|
11
|
+
import { usePayablePaymentRecordsQuery as i } from "../../data-access/dist/index11.js";
|
|
12
|
+
import "../../data-access/dist/index.js";
|
|
1
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
5
|
-
}
|
|
6
|
-
function n(e) {
|
|
7
|
-
let n = t(e), r = Math.round(Number(Math.abs(n).toFixed(6)));
|
|
8
|
-
return n < 0 ? -r || 0 : r;
|
|
9
|
-
}
|
|
10
|
-
function r({ quantity: r, unitPrice: i, tax: a }) {
|
|
11
|
-
let o = n(t(r) * t(i)), s = n(o * t(a) / e);
|
|
14
|
+
function a({ payableId: a, scheduledPaymentDate: o, enabled: s = !0 }) {
|
|
15
|
+
let { initResponse: c } = n(), l = e(c?.scopes, [t.PaymentRecordReadOrg]), u = i(s ? a : void 0, { enabled: s && l }), d = u.paymentRecords.find(r), f = !!d || !!o, p = d?.planned_payment_date ?? (f ? o : void 0);
|
|
12
16
|
return {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
hasScheduledPayment: f,
|
|
18
|
+
paymentRecords: u.paymentRecords,
|
|
19
|
+
isError: u.isError,
|
|
20
|
+
isResolving: u.isResolving,
|
|
21
|
+
scheduledDate: p ?? void 0,
|
|
22
|
+
scheduledPaymentIntentId: d?.payment_intent_id ?? void 0
|
|
16
23
|
};
|
|
17
24
|
}
|
|
18
25
|
//#endregion
|
|
19
|
-
export {
|
|
26
|
+
export { a as useScheduledPayment };
|
|
@@ -1,11 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
+
import "../../../shared/data-access/dist/index.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
+
import "../../../shared/feature/dist/index.js";
|
|
12
|
+
import { useDeletePayableMutation as i } from "../../data-access/dist/index13.js";
|
|
13
|
+
import "../../data-access/dist/index.js";
|
|
14
|
+
import { useState as a } from "react";
|
|
2
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
16
|
+
function o({ payableId: o, status: s, enabled: c = !0, labels: l, onDeleted: u }) {
|
|
17
|
+
let { initResponse: d } = r(), f = i(), [p, m] = a(!1), h = t(d?.scopes, [n.PayableWriteOrg]), g = !!(c && o && s === "draft" && h), _ = g ? [{
|
|
18
|
+
id: "deleteDraft",
|
|
19
|
+
label: l.menuItem,
|
|
20
|
+
destructive: !0,
|
|
21
|
+
onSelect: () => m(!0)
|
|
22
|
+
}] : [], v = p && g;
|
|
23
|
+
return {
|
|
24
|
+
menuItems: _,
|
|
25
|
+
dialog: {
|
|
26
|
+
open: v,
|
|
27
|
+
copy: v ? l.dialog : void 0,
|
|
28
|
+
isPending: f.isPending,
|
|
29
|
+
onCancel: () => {
|
|
30
|
+
f.isPending || m(!1);
|
|
31
|
+
},
|
|
32
|
+
onConfirm: () => {
|
|
33
|
+
g && o && !f.isPending && f.mutate({ path: { payable_id: o } }, {
|
|
34
|
+
onError: () => e.error(l.error),
|
|
35
|
+
onSuccess: () => {
|
|
36
|
+
m(!1), u();
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
9
42
|
}
|
|
10
43
|
//#endregion
|
|
11
|
-
export {
|
|
44
|
+
export { o as useDraftDelete };
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
|
|
2
|
-
var e =
|
|
3
|
-
function t(
|
|
4
|
-
return e
|
|
2
|
+
var e = 1e4;
|
|
3
|
+
function t(e) {
|
|
4
|
+
return typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
5
|
+
}
|
|
6
|
+
function n(e) {
|
|
7
|
+
let n = t(e), r = Math.round(Number(Math.abs(n).toFixed(6)));
|
|
8
|
+
return n < 0 ? -r || 0 : r;
|
|
9
|
+
}
|
|
10
|
+
function r({ quantity: r, unitPrice: i, tax: a }) {
|
|
11
|
+
let o = n(t(r) * t(i)), s = n(o * t(a) / e);
|
|
12
|
+
return {
|
|
13
|
+
subtotal: o,
|
|
14
|
+
taxAmount: s,
|
|
15
|
+
total: o + s
|
|
16
|
+
};
|
|
5
17
|
}
|
|
6
18
|
//#endregion
|
|
7
|
-
export {
|
|
19
|
+
export { e as TAX_RATE_SCALE, r as calculateLineItemTotals, n as roundToMinorUnits };
|
|
@@ -1,101 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { derivePayableStatus as t } from "./index7.js";
|
|
3
|
-
import { resolveVendor as n, resolveVendorName as r } from "./index8.js";
|
|
4
|
-
import { formatBillMoney as i } from "./index2.js";
|
|
5
|
-
import { resolveLineItemAmountMinorUnits as a } from "./index40.js";
|
|
6
|
-
import { resolveLineItemQuantity as o } from "./index41.js";
|
|
1
|
+
import { calculateLineItemTotals as e } from "./index41.js";
|
|
7
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
function l({ payable: l, lineItems: d, ledgerAccounts: f, labels: p, hasScheduledPayment: m, now: h, rejection: g, achInstructions: _, achInstructionsReadable: v = !1 }) {
|
|
15
|
-
let y = l.currency, b = (e) => i(e, y), x = t({
|
|
16
|
-
apiStatus: l.status,
|
|
17
|
-
dueDate: l.due_date,
|
|
18
|
-
scheduledPaymentDate: l.scheduled_payment_date,
|
|
19
|
-
hasScheduledPayment: m,
|
|
20
|
-
now: h
|
|
21
|
-
}), S = n(l), C = r(l), w = e(l.issued_at) || p.notProvided, T = e(l.due_date) || p.notProvided, E = [{
|
|
22
|
-
label: p.vendorRow,
|
|
23
|
-
value: C || p.notProvided,
|
|
24
|
-
secondaryValue: S?.email ?? void 0
|
|
25
|
-
}], D = v ? _?.account_number : void 0;
|
|
26
|
-
D && E.push({
|
|
27
|
-
label: p.bankAccountRow,
|
|
28
|
-
value: p.bankAccountValue(D.slice(-4))
|
|
29
|
-
});
|
|
30
|
-
let O = [
|
|
31
|
-
{
|
|
32
|
-
label: p.invoiceNumberRow,
|
|
33
|
-
value: l.document_id || p.notProvided
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: p.issueDateRow,
|
|
37
|
-
value: w
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: p.dueDateRow,
|
|
41
|
-
value: T
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: p.poNumberRow,
|
|
45
|
-
value: c(l.purchase_order_number) || p.notProvided
|
|
46
|
-
}
|
|
47
|
-
], k = new Map(f.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), A = d.map((e) => {
|
|
48
|
-
let t = b(e.unit_price), n = String(o(e));
|
|
49
|
-
return {
|
|
50
|
-
id: e.id,
|
|
51
|
-
description: e.name ?? e.description ?? "",
|
|
52
|
-
glCodeLabel: (e.ledger_account_id ? k.get(e.ledger_account_id) : void 0) || p.glCodeMissing,
|
|
53
|
-
quantityLabel: t ? p.quantityValue(n, t) : p.quantityOnlyValue(n),
|
|
54
|
-
amountLabel: b(a(e)) ?? ""
|
|
55
|
-
};
|
|
56
|
-
}), j = [
|
|
57
|
-
{
|
|
58
|
-
label: p.subtotalRow,
|
|
59
|
-
value: l.subtotal
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: p.discountsRow,
|
|
63
|
-
value: l.discount
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
label: p.taxRow,
|
|
67
|
-
value: l.tax_amount
|
|
68
|
-
}
|
|
69
|
-
].map(({ label: e, value: t }) => ({
|
|
70
|
-
label: e,
|
|
71
|
-
value: b(t)
|
|
72
|
-
})).filter((e) => !!e.value), M = b(s(l));
|
|
73
|
-
M && j.push({
|
|
74
|
-
label: p.totalRow,
|
|
75
|
-
value: M,
|
|
76
|
-
emphasis: !0
|
|
77
|
-
});
|
|
78
|
-
let N = u(l);
|
|
79
|
-
return {
|
|
80
|
-
title: C,
|
|
81
|
-
subtitle: p.subtitle,
|
|
82
|
-
status: x.status,
|
|
83
|
-
statusTone: x.tone,
|
|
84
|
-
amountDueLabel: b(l.amount_due) ?? b(l.total_amount) ?? "",
|
|
85
|
-
amountPaidLabel: N ? b(l.amount_paid) : void 0,
|
|
86
|
-
paidOnLabel: N ? p.paidOnLabel(N) : void 0,
|
|
87
|
-
invoiceDateLabel: w,
|
|
88
|
-
dueDateLabel: T,
|
|
89
|
-
dueDateTone: x.isOverdue ? "danger" : "default",
|
|
90
|
-
payToItems: E,
|
|
91
|
-
invoiceItems: O,
|
|
92
|
-
lineItems: A,
|
|
93
|
-
totals: j,
|
|
94
|
-
rejection: g
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function u(t) {
|
|
98
|
-
return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
|
|
3
|
+
function t(t) {
|
|
4
|
+
if (typeof t.subtotal == "number") return t.subtotal;
|
|
5
|
+
if (typeof t.quantity == "number" && typeof t.unit_price == "number") return e({
|
|
6
|
+
quantity: t.quantity,
|
|
7
|
+
unitPrice: t.unit_price
|
|
8
|
+
}).subtotal;
|
|
99
9
|
}
|
|
100
10
|
//#endregion
|
|
101
|
-
export {
|
|
11
|
+
export { t as resolveLineItemAmountMinorUnits };
|
|
@@ -1,86 +1,7 @@
|
|
|
1
|
-
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
-
import { derivePayableStatus as t } from "./index7.js";
|
|
3
|
-
import { resolveVendor as n } from "./index8.js";
|
|
4
|
-
import { resolveAmountDueMinorUnits as r } from "./index21.js";
|
|
5
|
-
import { formatBillMoney as i } from "./index2.js";
|
|
6
|
-
import { resolveLineItemAmountMinorUnits as a } from "./index40.js";
|
|
7
|
-
import { resolveLineItemQuantity as o } from "./index41.js";
|
|
8
|
-
import { getPaidAtLabel as s, resolveInvoiceTotalMinorUnits as c } from "./index42.js";
|
|
9
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
dueDate: l.due_date,
|
|
14
|
-
scheduledPaymentDate: l.scheduled_payment_date,
|
|
15
|
-
hasScheduledPayment: _
|
|
16
|
-
}), C = n(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
|
|
17
|
-
{
|
|
18
|
-
label: g.subtotalRow,
|
|
19
|
-
minorUnits: l.subtotal
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: g.discountRow,
|
|
23
|
-
minorUnits: l.discount
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: g.taxRow,
|
|
27
|
-
minorUnits: l.tax_amount
|
|
28
|
-
}
|
|
29
|
-
].map((e) => ({
|
|
30
|
-
label: e.label,
|
|
31
|
-
value: i(e.minorUnits, x)
|
|
32
|
-
})).filter((e) => !!e.value), j = i(c(l), x);
|
|
33
|
-
j && A.push({
|
|
34
|
-
label: g.totalRow,
|
|
35
|
-
value: j,
|
|
36
|
-
emphasis: !0
|
|
37
|
-
});
|
|
38
|
-
let M = s(l);
|
|
39
|
-
return {
|
|
40
|
-
amountDue: i(r(l), x) ?? "",
|
|
41
|
-
amountPaid: M ? i(l.amount_paid, x) : void 0,
|
|
42
|
-
paidOnLabel: M ? g.paidOnLabel(M) : void 0,
|
|
43
|
-
invoiceDateLabel: D,
|
|
44
|
-
dueDateLabel: O,
|
|
45
|
-
dueDateTone: S.isOverdue ? "danger" : "default",
|
|
46
|
-
status: S.status,
|
|
47
|
-
statusTone: S.tone,
|
|
48
|
-
payTo: {
|
|
49
|
-
name: C?.name || g.notProvided,
|
|
50
|
-
email: C?.email ?? "",
|
|
51
|
-
methodLabel: E ? g.paymentInstructionsValue(T?.slice(-4) ?? "") : g.paymentInstructionsNotSet,
|
|
52
|
-
hasPaymentInstructions: E
|
|
53
|
-
},
|
|
54
|
-
invoiceFields: [
|
|
55
|
-
{
|
|
56
|
-
label: g.invoiceDateRow,
|
|
57
|
-
value: D
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: g.dueDateRow,
|
|
61
|
-
value: O
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
label: g.invoiceNumberRow,
|
|
65
|
-
value: l.document_id || g.notProvided
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
lineItems: u.map((e) => {
|
|
69
|
-
let t = i(e.unit_price, x), n = String(o(e));
|
|
70
|
-
return {
|
|
71
|
-
id: e.id,
|
|
72
|
-
description: e.name ?? e.description ?? "",
|
|
73
|
-
glCodeLabel: e.ledger_account_id ? k.get(e.ledger_account_id) ?? (f ? g.glCodeMissing : g.glCodeUnavailable) : g.glCodeMissing,
|
|
74
|
-
qtyPriceLabel: t ? g.qtyPriceValue(n, t) : g.qtyOnlyValue(n),
|
|
75
|
-
amount: i(a(e), x) ?? ""
|
|
76
|
-
};
|
|
77
|
-
}),
|
|
78
|
-
amountRows: A,
|
|
79
|
-
approvalPolicy: h,
|
|
80
|
-
paymentHistory: m,
|
|
81
|
-
history: p,
|
|
82
|
-
rejection: v
|
|
83
|
-
};
|
|
2
|
+
var e = (e) => typeof e == "number" && Number.isFinite(e) && e > 0;
|
|
3
|
+
function t({ quantity: t, unit_price: n, subtotal: r }) {
|
|
4
|
+
return e(t) ? t : e(n) && e(r) && r % n === 0 ? r / n : 1;
|
|
84
5
|
}
|
|
85
6
|
//#endregion
|
|
86
|
-
export {
|
|
7
|
+
export { t as resolveLineItemQuantity };
|
|
@@ -1,6 +1,101 @@
|
|
|
1
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
+
import { derivePayableStatus as t } from "./index7.js";
|
|
3
|
+
import { resolveVendor as n, resolveVendorName as r } from "./index8.js";
|
|
4
|
+
import { formatBillMoney as i } from "./index2.js";
|
|
5
|
+
import { resolveLineItemAmountMinorUnits as a } from "./index42.js";
|
|
6
|
+
import { resolveLineItemQuantity as o } from "./index43.js";
|
|
1
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js
|
|
2
|
-
function
|
|
3
|
-
return e
|
|
8
|
+
function s(e) {
|
|
9
|
+
return e.total_amount ?? e.amount_due ?? void 0;
|
|
10
|
+
}
|
|
11
|
+
function c(e) {
|
|
12
|
+
return typeof e == "string" ? e : "";
|
|
13
|
+
}
|
|
14
|
+
function l({ payable: l, lineItems: d, ledgerAccounts: f, labels: p, hasScheduledPayment: m, now: h, rejection: g, achInstructions: _, achInstructionsReadable: v = !1 }) {
|
|
15
|
+
let y = l.currency, b = (e) => i(e, y), x = t({
|
|
16
|
+
apiStatus: l.status,
|
|
17
|
+
dueDate: l.due_date,
|
|
18
|
+
scheduledPaymentDate: l.scheduled_payment_date,
|
|
19
|
+
hasScheduledPayment: m,
|
|
20
|
+
now: h
|
|
21
|
+
}), S = n(l), C = r(l), w = e(l.issued_at) || p.notProvided, T = e(l.due_date) || p.notProvided, E = [{
|
|
22
|
+
label: p.vendorRow,
|
|
23
|
+
value: C || p.notProvided,
|
|
24
|
+
secondaryValue: S?.email ?? void 0
|
|
25
|
+
}], D = v ? _?.account_number : void 0;
|
|
26
|
+
D && E.push({
|
|
27
|
+
label: p.bankAccountRow,
|
|
28
|
+
value: p.bankAccountValue(D.slice(-4))
|
|
29
|
+
});
|
|
30
|
+
let O = [
|
|
31
|
+
{
|
|
32
|
+
label: p.invoiceNumberRow,
|
|
33
|
+
value: l.document_id || p.notProvided
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: p.issueDateRow,
|
|
37
|
+
value: w
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: p.dueDateRow,
|
|
41
|
+
value: T
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: p.poNumberRow,
|
|
45
|
+
value: c(l.purchase_order_number) || p.notProvided
|
|
46
|
+
}
|
|
47
|
+
], k = new Map(f.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), A = d.map((e) => {
|
|
48
|
+
let t = b(e.unit_price), n = String(o(e));
|
|
49
|
+
return {
|
|
50
|
+
id: e.id,
|
|
51
|
+
description: e.name ?? e.description ?? "",
|
|
52
|
+
glCodeLabel: (e.ledger_account_id ? k.get(e.ledger_account_id) : void 0) || p.glCodeMissing,
|
|
53
|
+
quantityLabel: t ? p.quantityValue(n, t) : p.quantityOnlyValue(n),
|
|
54
|
+
amountLabel: b(a(e)) ?? ""
|
|
55
|
+
};
|
|
56
|
+
}), j = [
|
|
57
|
+
{
|
|
58
|
+
label: p.subtotalRow,
|
|
59
|
+
value: l.subtotal
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: p.discountsRow,
|
|
63
|
+
value: l.discount
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: p.taxRow,
|
|
67
|
+
value: l.tax_amount
|
|
68
|
+
}
|
|
69
|
+
].map(({ label: e, value: t }) => ({
|
|
70
|
+
label: e,
|
|
71
|
+
value: b(t)
|
|
72
|
+
})).filter((e) => !!e.value), M = b(s(l));
|
|
73
|
+
M && j.push({
|
|
74
|
+
label: p.totalRow,
|
|
75
|
+
value: M,
|
|
76
|
+
emphasis: !0
|
|
77
|
+
});
|
|
78
|
+
let N = u(l);
|
|
79
|
+
return {
|
|
80
|
+
title: C,
|
|
81
|
+
subtitle: p.subtitle,
|
|
82
|
+
status: x.status,
|
|
83
|
+
statusTone: x.tone,
|
|
84
|
+
amountDueLabel: b(l.amount_due) ?? b(l.total_amount) ?? "",
|
|
85
|
+
amountPaidLabel: N ? b(l.amount_paid) : void 0,
|
|
86
|
+
paidOnLabel: N ? p.paidOnLabel(N) : void 0,
|
|
87
|
+
invoiceDateLabel: w,
|
|
88
|
+
dueDateLabel: T,
|
|
89
|
+
dueDateTone: x.isOverdue ? "danger" : "default",
|
|
90
|
+
payToItems: E,
|
|
91
|
+
invoiceItems: O,
|
|
92
|
+
lineItems: A,
|
|
93
|
+
totals: j,
|
|
94
|
+
rejection: g
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function u(t) {
|
|
98
|
+
return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
|
|
4
99
|
}
|
|
5
100
|
//#endregion
|
|
6
|
-
export {
|
|
101
|
+
export { u as getPaidAtLabel, l as mapPayableToBillDetails, s as resolveInvoiceTotalMinorUnits };
|