@tesouro/embedded-components-react 0.3.19 → 0.3.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.css +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- 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/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +28 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +81 -176
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +50 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +250 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +106 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +209 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +114 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +36 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +10 -283
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +14 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +314 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +85 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +113 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +81 -145
- 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 +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +8 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +72 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +99 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +35 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +171 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +5 -456
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +455 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +51 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +39 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +143 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +114 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +20 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +18 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +149 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +136 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +31 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +116 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +10 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +50 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +34 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +86 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +0 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +129 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +105 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +48 -779
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +780 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +84 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +105 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +14 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +163 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +204 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +146 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +95 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +13 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +186 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +41 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +219 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +32 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +168 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +66 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +104 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +72 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +144 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +91 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +66 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -1
- 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/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +16 -11
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +0 -2
|
@@ -2,113 +2,112 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
9
|
-
import "
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import "
|
|
14
|
-
import { BillPayWidgetUi as o } from "../../ui/dist/index44.js";
|
|
15
|
-
import { BillUploadStatusTray as s } from "../../ui/dist/index63.js";
|
|
16
|
-
import "../../ui/dist/index.js";
|
|
17
|
-
import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
18
|
-
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
19
|
-
import { useBillUploadQueue as l } from "./index52.js";
|
|
20
|
-
import "./index53.js";
|
|
21
|
-
import { billsTabTestIds as u } from "./index61.js";
|
|
22
|
-
import { BillsTab as d } from "./index63.js";
|
|
23
|
-
import "./index64.js";
|
|
24
|
-
import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index47.js";
|
|
25
|
-
import { DEFAULT_TABS_LABELS as m } from "./index65.js";
|
|
26
|
-
import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
|
|
27
|
-
import "../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
-
import { useCallback as g, useEffect as _, useState as v } from "react";
|
|
29
|
-
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
5
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
6
|
+
import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
7
|
+
import { resolveVendorName as n } from "./index3.js";
|
|
8
|
+
import { usePayablesQuery as r, usePayablesTotalCountQuery as i } from "../../data-access/dist/index13.js";
|
|
9
|
+
import "../../data-access/dist/index.js";
|
|
10
|
+
import { derivePayableStatus as a } from "./index22.js";
|
|
11
|
+
import { BillQueue as o, DEFAULT_BILL_QUEUE as s, billQueueColumns as c, billQueueHasScheduledPayment as l, billQueueOffersAddPanel as u, billQueueStatuses as d, billSortColumnId as f, billSortField as p } from "./index58.js";
|
|
12
|
+
import { useBillsFilters as m } from "./index65.js";
|
|
13
|
+
import { useCallback as h, useEffect as g, useMemo as _, useState as v } from "react";
|
|
30
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
15
|
+
var y = 10, b = [{
|
|
16
|
+
id: "addedOnLabel",
|
|
17
|
+
desc: !0
|
|
18
|
+
}];
|
|
19
|
+
function x({ enabled: x = !0, canReadVendors: S = !0, isVendorFilterPaused: C = !1, filterLabels: w, onOpenBill: T, duplicateBillIds: E, duplicateBadgeLabel: D, attachmentLabel: O }) {
|
|
20
|
+
let [k, A] = v(s), [j, M] = v(b), [N, P] = v(y), [F, I] = v(), [L, R] = v(""), [z, B] = v(""), V = h(() => I(void 0), []);
|
|
21
|
+
g(() => {
|
|
22
|
+
let e = setTimeout(() => {
|
|
23
|
+
B(L), V();
|
|
24
|
+
}, 300);
|
|
25
|
+
return () => clearTimeout(e);
|
|
26
|
+
}, [L, V]);
|
|
27
|
+
let H = m({
|
|
28
|
+
offersStatusFilter: k === o.All,
|
|
29
|
+
offersVendorFilter: S,
|
|
30
|
+
isVendorFilterPaused: C,
|
|
31
|
+
labels: w,
|
|
32
|
+
onFiltersChange: V
|
|
33
|
+
}), U = j[0], W = p(U?.id), G = r({
|
|
34
|
+
...H.query,
|
|
35
|
+
limit: N,
|
|
36
|
+
pagination_token: F,
|
|
37
|
+
status__in: d(k) ?? H.query.status__in,
|
|
38
|
+
has_scheduled_payment: l(k),
|
|
39
|
+
counterpart_name__icontains: z || void 0,
|
|
40
|
+
sort: W,
|
|
41
|
+
order: W ? U?.desc ? "desc" : "asc" : void 0,
|
|
42
|
+
enabled: x
|
|
43
|
+
}), K = G.data?.data.length === 0, q = i({ enabled: x && K }), J = !K || (q.data?.count ?? 1) > 0, Y = _(() => new Set(E), [E]), X = _(() => (G.data?.data ?? []).map((r) => {
|
|
44
|
+
let i = a({
|
|
45
|
+
apiStatus: r.status,
|
|
46
|
+
dueDate: r.due_date,
|
|
47
|
+
scheduledPaymentDate: r.scheduled_payment_date
|
|
48
|
+
}), o = r.amount_due ?? r.total_amount, s = (e) => e == null ? "" : t(e / 100, { currencyCode: r.currency ?? "USD" });
|
|
49
|
+
return {
|
|
50
|
+
vendorLabel: n(r),
|
|
51
|
+
issueDateLabel: e(r.issued_at),
|
|
52
|
+
dueDateLabel: e(r.due_date),
|
|
53
|
+
scheduledDateLabel: e(r.scheduled_payment_date),
|
|
54
|
+
paidDateLabel: e(r.paid_at?.slice(0, 10)),
|
|
55
|
+
amountDueLabel: s(o),
|
|
56
|
+
amountPaidLabel: s(r.amount_paid),
|
|
57
|
+
amountScheduledLabel: s(r.amount_to_pay ?? o),
|
|
58
|
+
totalAmountLabel: s(r.total_amount),
|
|
59
|
+
attachment: r.file_id ? { label: O } : void 0,
|
|
60
|
+
status: i.status,
|
|
61
|
+
statusTone: i.tone,
|
|
62
|
+
addedOnLabel: e(r.created_at?.slice(0, 10)),
|
|
63
|
+
duplicateBadge: Y.has(r.id) ? {
|
|
64
|
+
label: D,
|
|
65
|
+
tone: "warning"
|
|
66
|
+
} : void 0,
|
|
67
|
+
onOpen: () => T(r.id, i.status === "draft")
|
|
68
|
+
};
|
|
69
|
+
}), [
|
|
70
|
+
G.data?.data,
|
|
71
|
+
Y,
|
|
72
|
+
D,
|
|
73
|
+
O,
|
|
74
|
+
T
|
|
75
|
+
]), Z = h((e) => {
|
|
76
|
+
let t = e;
|
|
77
|
+
A(t), M((e) => {
|
|
78
|
+
let n = e[0]?.id;
|
|
79
|
+
return n ? c(t).some((e) => f(e) === n) ? e : b : e;
|
|
80
|
+
}), V();
|
|
81
|
+
}, [V]), Q = h((e) => {
|
|
82
|
+
M((t) => typeof e == "function" ? e(t) : e), V();
|
|
83
|
+
}, [V]), $ = h((e) => {
|
|
84
|
+
P(e), V();
|
|
85
|
+
}, [V]), ee = h(() => I(G.data?.next_pagination_token ?? void 0), [G.data?.next_pagination_token]), te = h(() => I(G.data?.prev_pagination_token ?? void 0), [G.data?.prev_pagination_token]), ne = h(() => {
|
|
86
|
+
G.refetch();
|
|
87
|
+
}, [G.refetch]);
|
|
88
|
+
return {
|
|
89
|
+
rows: X,
|
|
90
|
+
isLoading: G.isFetching || K && q.isLoading,
|
|
91
|
+
isError: G.isError,
|
|
92
|
+
onRetry: ne,
|
|
93
|
+
selectedFilterTabId: k,
|
|
94
|
+
onFilterTabChange: Z,
|
|
95
|
+
searchValue: L,
|
|
96
|
+
onSearchChange: R,
|
|
97
|
+
hasAnyBills: J,
|
|
98
|
+
isSearchActive: z.length > 0 || H.isFilterActive,
|
|
99
|
+
filterBarProps: H.filterBarProps,
|
|
100
|
+
visibleColumns: c(k),
|
|
101
|
+
showAddPanelWhenEmpty: u(k),
|
|
102
|
+
sorting: j,
|
|
103
|
+
onSortingChange: Q,
|
|
104
|
+
pageSize: N,
|
|
105
|
+
onPageSizeChange: $,
|
|
106
|
+
hasNextPage: !!G.data?.next_pagination_token,
|
|
107
|
+
hasPrevPage: !!G.data?.prev_pagination_token,
|
|
108
|
+
onNextPage: ee,
|
|
109
|
+
onPrevPage: te
|
|
110
|
+
};
|
|
112
111
|
}
|
|
113
112
|
//#endregion
|
|
114
|
-
export {
|
|
113
|
+
export { x as useBillsTable };
|
|
@@ -1 +1,209 @@
|
|
|
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 ee, useWidgetInitStaleForToken as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
+
import "../../../shared/feature/dist/index.js";
|
|
12
|
+
import { AddBillDialog as i } from "../../ui/dist/index10.js";
|
|
13
|
+
import { BillsScreen as a } from "../../ui/dist/index64.js";
|
|
14
|
+
import "../../ui/dist/index.js";
|
|
15
|
+
import { BillCreateDialog as o } from "./index41.js";
|
|
16
|
+
import "./index42.js";
|
|
17
|
+
import { BillDetailsContainer as s } from "./index45.js";
|
|
18
|
+
import "./index46.js";
|
|
19
|
+
import "./index52.js";
|
|
20
|
+
import "./index53.js";
|
|
21
|
+
import { DuplicateBillsContainer as te } from "./index56.js";
|
|
22
|
+
import "./index57.js";
|
|
23
|
+
import { BILL_QUEUE_ORDER as c, BillQueue as l } from "./index58.js";
|
|
24
|
+
import { BILLS_TAB_LABELS_EN as u } from "./index60.js";
|
|
25
|
+
import { useBillsTable as ne } from "./index66.js";
|
|
26
|
+
import { copyTextToClipboard as re } from "./index59.js";
|
|
27
|
+
import { billsTabTestIds as d, billsTableCellTestIds as f } from "./index61.js";
|
|
28
|
+
import { useCallback as p, useEffect as ie, useMemo as m, useState as h } from "react";
|
|
29
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
30
|
+
import { CalendarClockIcon as v, CheckIcon as y, FilePenIcon as b, ListIcon as x, LoaderCircleIcon as S } from "lucide-react";
|
|
31
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js
|
|
32
|
+
var C = "bills@business-banking.app", ae = {
|
|
33
|
+
[l.Drafts]: /* @__PURE__ */ g(b, {
|
|
34
|
+
className: "ttw:size-4",
|
|
35
|
+
"aria-hidden": !0
|
|
36
|
+
}),
|
|
37
|
+
[l.Pending]: /* @__PURE__ */ g(S, {
|
|
38
|
+
className: "ttw:size-4",
|
|
39
|
+
"aria-hidden": !0
|
|
40
|
+
}),
|
|
41
|
+
[l.Scheduled]: /* @__PURE__ */ g(v, {
|
|
42
|
+
className: "ttw:size-4",
|
|
43
|
+
"aria-hidden": !0
|
|
44
|
+
}),
|
|
45
|
+
[l.Paid]: /* @__PURE__ */ g(y, {
|
|
46
|
+
className: "ttw:size-4",
|
|
47
|
+
"aria-hidden": !0
|
|
48
|
+
}),
|
|
49
|
+
[l.All]: /* @__PURE__ */ g(x, {
|
|
50
|
+
className: "ttw:size-4",
|
|
51
|
+
"aria-hidden": !0
|
|
52
|
+
})
|
|
53
|
+
};
|
|
54
|
+
function w({ labels: l, onEnqueueFiles: v, openPayableId: y, onOpenPayableHandled: b, poweredByBankName: x, duplicateBills: S }) {
|
|
55
|
+
let w = m(() => ({
|
|
56
|
+
...u,
|
|
57
|
+
...l,
|
|
58
|
+
queues: {
|
|
59
|
+
...u.queues,
|
|
60
|
+
...l?.queues
|
|
61
|
+
},
|
|
62
|
+
filters: {
|
|
63
|
+
...u.filters,
|
|
64
|
+
...l?.filters,
|
|
65
|
+
presets: {
|
|
66
|
+
...u.filters.presets,
|
|
67
|
+
...l?.filters?.presets
|
|
68
|
+
},
|
|
69
|
+
statuses: {
|
|
70
|
+
...u.filters.statuses,
|
|
71
|
+
...l?.filters?.statuses
|
|
72
|
+
},
|
|
73
|
+
dateFieldNames: {
|
|
74
|
+
...u.filters.dateFieldNames,
|
|
75
|
+
...l?.filters?.dateFieldNames
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
filterBar: {
|
|
79
|
+
...u.filterBar,
|
|
80
|
+
...l?.filterBar
|
|
81
|
+
},
|
|
82
|
+
queueEmptyStates: c.reduce((e, t) => ({
|
|
83
|
+
...e,
|
|
84
|
+
[t]: {
|
|
85
|
+
...u.queueEmptyStates[t],
|
|
86
|
+
...l?.queueEmptyStates?.[t]
|
|
87
|
+
}
|
|
88
|
+
}), {})
|
|
89
|
+
}), [l]), [T, E] = h(!1), [D, O] = h(), [k, A] = h(!1), [j, M] = h(), [N, P] = h(!1), [F, I] = h(!1), [L, R] = h(!1), { initResponse: z } = ee(), B = r(), V = t(z?.scopes, [n.PayableReadOrg]), H = t(z?.scopes, [n.PayableWriteOrg]), U = !z || V, W = !z || H, G = p((e, t) => {
|
|
90
|
+
if (t && W) {
|
|
91
|
+
O(e), A(!0);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
M(e), P(!0);
|
|
95
|
+
}, [W]), K = m(() => (S ?? []).filter((e) => e.isPossibleDuplicate).map((e) => e.id), [S]), q = t(z?.scopes, [n.CounterpartReadOrg]), J = ne({
|
|
96
|
+
enabled: U,
|
|
97
|
+
canReadVendors: q,
|
|
98
|
+
isVendorFilterPaused: B,
|
|
99
|
+
filterLabels: w.filters,
|
|
100
|
+
onOpenBill: G,
|
|
101
|
+
duplicateBillIds: K,
|
|
102
|
+
duplicateBadgeLabel: w.duplicateBadge,
|
|
103
|
+
attachmentLabel: w.attachmentIndicator
|
|
104
|
+
}), Y = (e) => !!(e && K.includes(e)), X = K.length, oe = X === 0 ? void 0 : X === 1 ? w.duplicateWarningOne : w.duplicateWarningMany(X), se = m(() => c.map((e) => ({
|
|
105
|
+
id: e,
|
|
106
|
+
label: w.queues[e],
|
|
107
|
+
icon: ae[e]
|
|
108
|
+
})), [w.queues]), ce = (e) => {
|
|
109
|
+
R(!1), M(e), P(!0);
|
|
110
|
+
}, le = () => {
|
|
111
|
+
P(!1), I(!0);
|
|
112
|
+
}, ue = m(() => ({
|
|
113
|
+
createButton: w.createButton,
|
|
114
|
+
addBill: { heading: w.nonEmptyHeading }
|
|
115
|
+
}), [w.createButton, w.nonEmptyHeading]), de = m(() => ({
|
|
116
|
+
...J.filterBarProps,
|
|
117
|
+
labels: w.filterBar
|
|
118
|
+
}), [J.filterBarProps, w.filterBar]), Z = () => {
|
|
119
|
+
E(!1), O(void 0), A(!0);
|
|
120
|
+
}, Q = (e) => {
|
|
121
|
+
E(!1), v?.(e);
|
|
122
|
+
}, $ = async () => {
|
|
123
|
+
await re(C) ? e.success(w.emailCopiedToast) : e.error(w.emailCopyFailedToast);
|
|
124
|
+
};
|
|
125
|
+
return ie(() => {
|
|
126
|
+
y && (O(y), A(!0), b?.());
|
|
127
|
+
}, [b, y]), /* @__PURE__ */ _("div", {
|
|
128
|
+
"data-testid": d.root,
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ g(a, {
|
|
131
|
+
rows: J.rows,
|
|
132
|
+
isLoading: J.isLoading || !z,
|
|
133
|
+
isError: J.isError,
|
|
134
|
+
onRetry: J.onRetry,
|
|
135
|
+
sorting: J.sorting,
|
|
136
|
+
onSortingChange: J.onSortingChange,
|
|
137
|
+
pageSize: J.pageSize,
|
|
138
|
+
onPageSizeChange: J.onPageSizeChange,
|
|
139
|
+
hasNextPage: J.hasNextPage,
|
|
140
|
+
hasPrevPage: J.hasPrevPage,
|
|
141
|
+
onNextPage: J.onNextPage,
|
|
142
|
+
onPrevPage: J.onPrevPage,
|
|
143
|
+
filterTabs: se,
|
|
144
|
+
selectedFilterTabId: J.selectedFilterTabId,
|
|
145
|
+
onFilterTabChange: J.onFilterTabChange,
|
|
146
|
+
searchValue: J.searchValue,
|
|
147
|
+
onSearchChange: J.onSearchChange,
|
|
148
|
+
filters: de,
|
|
149
|
+
visibleColumns: J.visibleColumns,
|
|
150
|
+
cellTestIds: f,
|
|
151
|
+
isSearchActive: J.isSearchActive,
|
|
152
|
+
showAddPanelWhenEmpty: J.showAddPanelWhenEmpty,
|
|
153
|
+
emptyState: w.queueEmptyStates[J.selectedFilterTabId],
|
|
154
|
+
onCreateClick: W ? () => E(!0) : void 0,
|
|
155
|
+
onEnterManually: W ? Z : void 0,
|
|
156
|
+
onFilesSelected: W ? Q : void 0,
|
|
157
|
+
maxFiles: 10,
|
|
158
|
+
emailAddress: C,
|
|
159
|
+
onCopyEmail: $,
|
|
160
|
+
duplicateWarning: oe,
|
|
161
|
+
onReviewDuplicates: () => R(!0),
|
|
162
|
+
labels: ue
|
|
163
|
+
}),
|
|
164
|
+
L ? /* @__PURE__ */ g(te, {
|
|
165
|
+
open: L,
|
|
166
|
+
onOpenChange: R,
|
|
167
|
+
bills: S,
|
|
168
|
+
canManageDuplicates: W,
|
|
169
|
+
onOpenBill: ce
|
|
170
|
+
}) : null,
|
|
171
|
+
W ? /* @__PURE__ */ g(i, {
|
|
172
|
+
open: T,
|
|
173
|
+
onOpenChange: E,
|
|
174
|
+
onFilesSelected: Q,
|
|
175
|
+
maxFiles: 10,
|
|
176
|
+
onEnterManually: Z,
|
|
177
|
+
emailAddress: C,
|
|
178
|
+
onCopyEmail: $,
|
|
179
|
+
labels: { heading: J.hasAnyBills ? w.nonEmptyHeading : w.emptyHeading }
|
|
180
|
+
}) : null,
|
|
181
|
+
k ? /* @__PURE__ */ g(o, {
|
|
182
|
+
open: k,
|
|
183
|
+
onOpenChange: A,
|
|
184
|
+
payableId: D,
|
|
185
|
+
isPossibleDuplicate: Y(D)
|
|
186
|
+
}) : null,
|
|
187
|
+
N ? /* @__PURE__ */ g(s, {
|
|
188
|
+
open: N,
|
|
189
|
+
onOpenChange: P,
|
|
190
|
+
payableId: j,
|
|
191
|
+
onClose: () => P(!1),
|
|
192
|
+
onExpand: le,
|
|
193
|
+
isPossibleDuplicate: Y(j),
|
|
194
|
+
testId: d.detailsSheet,
|
|
195
|
+
poweredByBankName: x
|
|
196
|
+
}) : null,
|
|
197
|
+
F ? /* @__PURE__ */ g(o, {
|
|
198
|
+
open: F,
|
|
199
|
+
onOpenChange: I,
|
|
200
|
+
payableId: j,
|
|
201
|
+
readOnly: !0,
|
|
202
|
+
poweredByBankName: x,
|
|
203
|
+
isPossibleDuplicate: Y(j)
|
|
204
|
+
}) : null
|
|
205
|
+
]
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
//#endregion
|
|
209
|
+
export { w as BillsTab, w as default };
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"use client";
|
|
5
|
-
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
-
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
-
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import { BillPayWidgetMonite as n } from "./index48.js";
|
|
9
|
-
import "./index49.js";
|
|
10
|
-
import { BillPayWidgetNative as r } from "./index66.js";
|
|
1
|
+
import "./index58.js";
|
|
2
|
+
import "./index60.js";
|
|
3
|
+
import "./index66.js";
|
|
11
4
|
import "./index67.js";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js
|
|
14
|
-
function a({ implementation: a, ...o }) {
|
|
15
|
-
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
-
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
-
implementation: c,
|
|
18
|
-
...o
|
|
19
|
-
}) : /* @__PURE__ */ i(n, {
|
|
20
|
-
implementation: c,
|
|
21
|
-
...o
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { a as BillPayWidget, a as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SOURCE_ACCOUNT_LABELS_EN as e } from "./index6.js";
|
|
2
|
-
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as t } from "../../ui/dist/
|
|
3
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as n } from "../../ui/dist/
|
|
2
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as t } from "../../ui/dist/index79.js";
|
|
3
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as n } from "../../ui/dist/index82.js";
|
|
4
4
|
import "../../ui/dist/index.js";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js
|
|
6
6
|
var r = {
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
|
+
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
|
+
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
|
+
import "../../../shared/feature/dist/index.js";
|
|
14
|
+
import { BillPayWidgetUi as o } from "../../ui/dist/index44.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index67.js";
|
|
16
|
+
import "../../ui/dist/index.js";
|
|
17
|
+
import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
18
|
+
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
19
|
+
import { useBillUploadQueue as l } from "./index52.js";
|
|
20
|
+
import "./index53.js";
|
|
21
|
+
import { billsTabTestIds as u } from "./index61.js";
|
|
22
|
+
import { BillsTab as d } from "./index67.js";
|
|
23
|
+
import "./index68.js";
|
|
24
|
+
import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index47.js";
|
|
25
|
+
import { DEFAULT_TABS_LABELS as m } from "./index69.js";
|
|
26
|
+
import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
|
|
27
|
+
import "../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
+
import { useCallback as g, useEffect as _, useState as v } from "react";
|
|
29
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
30
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js
|
|
31
|
+
var S = {
|
|
32
|
+
Bills: "bills",
|
|
33
|
+
Vendors: "vendors",
|
|
34
|
+
Settings: "settings"
|
|
35
|
+
}, C = [
|
|
36
|
+
S.Bills,
|
|
37
|
+
S.Vendors,
|
|
38
|
+
S.Settings
|
|
39
|
+
];
|
|
40
|
+
function w({ labels: i, tabsLabels: p, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E, poweredByBankName: D }) {
|
|
41
|
+
let O = r();
|
|
42
|
+
_(() => {
|
|
43
|
+
O(f.Mounted);
|
|
44
|
+
}, [O]);
|
|
45
|
+
let k = {
|
|
46
|
+
...m,
|
|
47
|
+
...p
|
|
48
|
+
}, { initResponse: A } = a(), j = e(A?.scopes, [t.ApprovalPolicyWriteOrg]), M = !A || j, [N, P] = v(S.Bills), [F, I] = v(), L = g((e) => {
|
|
49
|
+
P(S.Bills), I(e);
|
|
50
|
+
}, []), R = l({ onOpenBill: L }), z = [{
|
|
51
|
+
id: S.Bills,
|
|
52
|
+
label: k.bills,
|
|
53
|
+
content: /* @__PURE__ */ b(d, {
|
|
54
|
+
onEnqueueFiles: R.enqueue,
|
|
55
|
+
openPayableId: F,
|
|
56
|
+
onOpenPayableHandled: () => I(void 0),
|
|
57
|
+
poweredByBankName: D
|
|
58
|
+
})
|
|
59
|
+
}, {
|
|
60
|
+
id: S.Vendors,
|
|
61
|
+
label: k.vendors,
|
|
62
|
+
content: /* @__PURE__ */ b(h, {
|
|
63
|
+
...E,
|
|
64
|
+
counterpartType: "vendor",
|
|
65
|
+
onViewAllDocuments: () => P(S.Bills)
|
|
66
|
+
})
|
|
67
|
+
}];
|
|
68
|
+
M && z.push({
|
|
69
|
+
id: S.Settings,
|
|
70
|
+
label: k.settings,
|
|
71
|
+
content: /* @__PURE__ */ b(c, {
|
|
72
|
+
labels: w,
|
|
73
|
+
componentLabels: T
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
77
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
78
|
+
/* @__PURE__ */ b(n, {}),
|
|
79
|
+
/* @__PURE__ */ b(o, {
|
|
80
|
+
labels: i,
|
|
81
|
+
tabs: z,
|
|
82
|
+
selectedTabId: B,
|
|
83
|
+
onTabChange: P
|
|
84
|
+
}),
|
|
85
|
+
R.isVisible ? /* @__PURE__ */ b(s, {
|
|
86
|
+
sections: R.sections,
|
|
87
|
+
summaryLabel: R.summaryLabel,
|
|
88
|
+
collapsed: R.collapsed,
|
|
89
|
+
onToggleCollapsed: R.onToggleCollapsed,
|
|
90
|
+
onClose: R.onClose,
|
|
91
|
+
testId: u.uploadTray
|
|
92
|
+
}) : null
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, ...m }) {
|
|
96
|
+
return /* @__PURE__ */ b(i, {
|
|
97
|
+
widgetName: p,
|
|
98
|
+
baseUrl: e,
|
|
99
|
+
widgetToken: t,
|
|
100
|
+
organizationId: n,
|
|
101
|
+
configClient: r,
|
|
102
|
+
gatewayRouting: a,
|
|
103
|
+
linkComponent: o,
|
|
104
|
+
implementation: s,
|
|
105
|
+
uiFramework: c,
|
|
106
|
+
errorFallback: l,
|
|
107
|
+
onError: u,
|
|
108
|
+
analytics: d,
|
|
109
|
+
disclosuresAcceptance: f,
|
|
110
|
+
children: /* @__PURE__ */ b(w, { ...m })
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { T as BillPayWidgetNative, T as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index70.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
+
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
+
import "../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillPayWidgetMonite as n } from "./index48.js";
|
|
9
|
+
import "./index49.js";
|
|
10
|
+
import { BillPayWidgetNative as r } from "./index70.js";
|
|
11
|
+
import "./index71.js";
|
|
12
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js
|
|
14
|
+
function a({ implementation: a, ...o }) {
|
|
15
|
+
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
+
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
+
implementation: c,
|
|
18
|
+
...o
|
|
19
|
+
}) : /* @__PURE__ */ i(n, {
|
|
20
|
+
implementation: c,
|
|
21
|
+
...o
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as BillPayWidget, a as default };
|