@tesouro/embedded-components-react 0.2.326 → 0.2.328
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 +3 -0
- package/dist/index.d.ts +59 -59
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -10
- 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/index12.js +45 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +25 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +49 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +91 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +20 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +52 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +67 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +46 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +80 -205
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +32 -192
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +117 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +54 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +205 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +184 -143
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +63 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +46 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +146 -182
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +38 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +102 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +200 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +132 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +3 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +43 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +50 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -145
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +78 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +138 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +25 -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/ui/dist/index.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +58 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -262
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +41 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +271 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -286
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +47 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -120
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +284 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +118 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +1 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +93 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -138
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +53 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +137 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +42 -59
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -238
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +61 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +67 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +248 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +204 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +4 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +142 -102
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -12
|
@@ -2,84 +2,147 @@
|
|
|
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 {
|
|
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 { AddBillDialog as i } from "../../ui/dist/index10.js";
|
|
13
|
+
import { BillsScreen as a } from "../../ui/dist/index53.js";
|
|
14
|
+
import "../../ui/dist/index.js";
|
|
15
|
+
import { BillCreateDialog as o } from "./index37.js";
|
|
16
|
+
import "./index38.js";
|
|
17
|
+
import { BillDetailsContainer as s } from "./index41.js";
|
|
18
|
+
import "./index42.js";
|
|
19
|
+
import { BILL_QUEUE_ORDER as c, BillQueue as l } from "./index46.js";
|
|
20
|
+
import { BILLS_TAB_LABELS_EN as u } from "./index48.js";
|
|
21
|
+
import { billsTabTestIds as d } from "./index49.js";
|
|
22
|
+
import { useBillsTable as f } from "./index50.js";
|
|
23
|
+
import { copyTextToClipboard as p } from "./index47.js";
|
|
24
|
+
import { useCallback as m, useEffect as h, useMemo as g, useState as _ } from "react";
|
|
25
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
26
|
+
import { CalendarClockIcon as b, CheckIcon as x, FilePenIcon as S, ListIcon as C, LoaderCircleIcon as w } from "lucide-react";
|
|
13
27
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
var T = "bills@business-banking.app", E = {
|
|
29
|
+
[l.Drafts]: /* @__PURE__ */ v(S, {
|
|
30
|
+
className: "ttw:size-4",
|
|
31
|
+
"aria-hidden": !0
|
|
32
|
+
}),
|
|
33
|
+
[l.Pending]: /* @__PURE__ */ v(w, {
|
|
34
|
+
className: "ttw:size-4",
|
|
35
|
+
"aria-hidden": !0
|
|
36
|
+
}),
|
|
37
|
+
[l.Scheduled]: /* @__PURE__ */ v(b, {
|
|
38
|
+
className: "ttw:size-4",
|
|
39
|
+
"aria-hidden": !0
|
|
40
|
+
}),
|
|
41
|
+
[l.Paid]: /* @__PURE__ */ v(x, {
|
|
42
|
+
className: "ttw:size-4",
|
|
43
|
+
"aria-hidden": !0
|
|
44
|
+
}),
|
|
45
|
+
[l.All]: /* @__PURE__ */ v(C, {
|
|
46
|
+
className: "ttw:size-4",
|
|
47
|
+
"aria-hidden": !0
|
|
48
|
+
})
|
|
49
|
+
};
|
|
50
|
+
function D({ labels: l, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandled: S, poweredByBankName: C }) {
|
|
51
|
+
let w = g(() => ({
|
|
52
|
+
...u,
|
|
53
|
+
...l,
|
|
54
|
+
queues: {
|
|
55
|
+
...u.queues,
|
|
56
|
+
...l?.queues
|
|
38
57
|
}
|
|
39
|
-
}, [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
_
|
|
44
|
-
]), C = n({ payableIds: b.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
|
|
45
|
-
o(() => {
|
|
46
|
-
for (let { payableId: e, ocrStatus: t, isError: n } of C) {
|
|
47
|
-
let r = b.find((t) => t.payableId === e && t.status === "uploading");
|
|
48
|
-
r && (t === "success" ? x(r.localId, { status: "ready" }) : (n || t === "error" || t === "canceled") && x(r.localId, { status: "failed" }));
|
|
58
|
+
}), [l]), [D, O] = _(!1), [k, A] = _(), [j, M] = _(!1), [N, P] = _(), [F, I] = _(!1), [L, R] = _(!1), { initResponse: z } = r(), B = t(z?.scopes, [n.PayableReadOrg]), V = t(z?.scopes, [n.PayableWriteOrg]), H = !z || B, U = !z || V, W = m((e, t) => {
|
|
59
|
+
if (t && U) {
|
|
60
|
+
A(e), M(!0);
|
|
61
|
+
return;
|
|
49
62
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
caption: p.failedCaption(E.length),
|
|
70
|
-
items: E.map(D)
|
|
71
|
-
}] : []], k = w.length ? p.uploadingSummary(b.length) : T.length ? p.completeSummary(T.length) : p.failedCaption(E.length), A = a(() => {
|
|
72
|
-
h.setQueryData(g, []);
|
|
73
|
-
}, [h, g]);
|
|
74
|
-
return {
|
|
75
|
-
enqueue: S,
|
|
76
|
-
sections: O,
|
|
77
|
-
summaryLabel: k,
|
|
78
|
-
collapsed: v,
|
|
79
|
-
onToggleCollapsed: a(() => y((e) => !e), []),
|
|
80
|
-
onClose: A,
|
|
81
|
-
isVisible: b.length > 0
|
|
63
|
+
P(e), I(!0);
|
|
64
|
+
}, [U]), G = f({
|
|
65
|
+
enabled: H,
|
|
66
|
+
onOpenBill: W
|
|
67
|
+
}), K = g(() => c.map((e) => ({
|
|
68
|
+
id: e,
|
|
69
|
+
label: w.queues[e],
|
|
70
|
+
icon: E[e]
|
|
71
|
+
})), [w.queues]), q = () => {
|
|
72
|
+
I(!1), R(!0);
|
|
73
|
+
}, J = g(() => ({
|
|
74
|
+
createButton: w.createButton,
|
|
75
|
+
addBill: { heading: w.emptyHeading }
|
|
76
|
+
}), [w.createButton, w.emptyHeading]), Y = () => {
|
|
77
|
+
O(!1), A(void 0), M(!0);
|
|
78
|
+
}, X = (e) => {
|
|
79
|
+
O(!1), b?.(e);
|
|
80
|
+
}, Z = async () => {
|
|
81
|
+
await p(T) ? e.success(w.emailCopiedToast) : e.error(w.emailCopyFailedToast);
|
|
82
82
|
};
|
|
83
|
+
return h(() => {
|
|
84
|
+
x && (A(x), M(!0), S?.());
|
|
85
|
+
}, [S, x]), /* @__PURE__ */ y("div", {
|
|
86
|
+
"data-testid": d.root,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ v(a, {
|
|
89
|
+
rows: G.rows,
|
|
90
|
+
isLoading: G.isLoading || !z,
|
|
91
|
+
isError: G.isError,
|
|
92
|
+
onRetry: G.onRetry,
|
|
93
|
+
sorting: G.sorting,
|
|
94
|
+
onSortingChange: G.onSortingChange,
|
|
95
|
+
pageSize: G.pageSize,
|
|
96
|
+
onPageSizeChange: G.onPageSizeChange,
|
|
97
|
+
hasNextPage: G.hasNextPage,
|
|
98
|
+
hasPrevPage: G.hasPrevPage,
|
|
99
|
+
onNextPage: G.onNextPage,
|
|
100
|
+
onPrevPage: G.onPrevPage,
|
|
101
|
+
filterTabs: K,
|
|
102
|
+
selectedFilterTabId: G.selectedFilterTabId,
|
|
103
|
+
onFilterTabChange: G.onFilterTabChange,
|
|
104
|
+
searchValue: G.searchValue,
|
|
105
|
+
onSearchChange: G.onSearchChange,
|
|
106
|
+
isFiltering: G.hasAnyBills,
|
|
107
|
+
onCreateClick: U ? () => O(!0) : void 0,
|
|
108
|
+
onEnterManually: U ? Y : void 0,
|
|
109
|
+
onFilesSelected: U ? X : void 0,
|
|
110
|
+
emailAddress: T,
|
|
111
|
+
onCopyEmail: Z,
|
|
112
|
+
labels: J
|
|
113
|
+
}),
|
|
114
|
+
U ? /* @__PURE__ */ v(i, {
|
|
115
|
+
open: D,
|
|
116
|
+
onOpenChange: O,
|
|
117
|
+
onFilesSelected: X,
|
|
118
|
+
onEnterManually: Y,
|
|
119
|
+
emailAddress: T,
|
|
120
|
+
onCopyEmail: Z,
|
|
121
|
+
labels: { heading: G.hasAnyBills ? w.nonEmptyHeading : w.emptyHeading }
|
|
122
|
+
}) : null,
|
|
123
|
+
j ? /* @__PURE__ */ v(o, {
|
|
124
|
+
open: j,
|
|
125
|
+
onOpenChange: M,
|
|
126
|
+
payableId: k
|
|
127
|
+
}) : null,
|
|
128
|
+
F ? /* @__PURE__ */ v(s, {
|
|
129
|
+
open: F,
|
|
130
|
+
onOpenChange: I,
|
|
131
|
+
payableId: N,
|
|
132
|
+
onClose: () => I(!1),
|
|
133
|
+
onExpand: q,
|
|
134
|
+
testId: d.detailsSheet,
|
|
135
|
+
poweredByBankName: C
|
|
136
|
+
}) : null,
|
|
137
|
+
L ? /* @__PURE__ */ v(o, {
|
|
138
|
+
open: L,
|
|
139
|
+
onOpenChange: R,
|
|
140
|
+
payableId: N,
|
|
141
|
+
readOnly: !0,
|
|
142
|
+
poweredByBankName: C
|
|
143
|
+
}) : null
|
|
144
|
+
]
|
|
145
|
+
});
|
|
83
146
|
}
|
|
84
147
|
//#endregion
|
|
85
|
-
export {
|
|
148
|
+
export { D as BillsTab, D as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js
|
|
2
|
-
var e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var e = (e) => [
|
|
3
|
+
"bill-pay",
|
|
4
|
+
"upload-queue",
|
|
5
|
+
e ?? ""
|
|
6
|
+
];
|
|
7
7
|
//#endregion
|
|
8
|
-
export { e as
|
|
8
|
+
export { e as billPayUploadQueueKey };
|
|
@@ -1,115 +1,9 @@
|
|
|
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/index38.js";
|
|
15
|
-
import { BillUploadStatusTray as s } from "../../ui/dist/index48.js";
|
|
16
|
-
import "../../ui/dist/index.js";
|
|
17
|
-
import { billsTabTestIds as c } from "./index45.js";
|
|
18
|
-
import { BillsTab as l } from "./index47.js";
|
|
19
|
-
import "./index48.js";
|
|
20
|
-
import { useBillUploadQueue as u } from "./index51.js";
|
|
21
|
-
import "./index52.js";
|
|
22
|
-
import { BillPayWidgetAnalyticsEvent as d, WIDGET_NAME as f } from "./index39.js";
|
|
23
|
-
import { DEFAULT_TABS_LABELS as p } from "./index53.js";
|
|
24
|
-
import { ApprovalPoliciesSettings as m } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
25
|
-
import "../../../shared/approval-policy/feature/dist/index.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
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
S.Vendors,
|
|
38
|
-
S.Settings
|
|
39
|
-
];
|
|
40
|
-
function w({ labels: i, tabsLabels: f, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E, poweredByBankName: D }) {
|
|
41
|
-
let O = r();
|
|
42
|
-
_(() => {
|
|
43
|
-
O(d.Mounted);
|
|
44
|
-
}, [O]);
|
|
45
|
-
let k = {
|
|
46
|
-
...p,
|
|
47
|
-
...f
|
|
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 = u({ onOpenBill: L }), z = [{
|
|
51
|
-
id: S.Bills,
|
|
52
|
-
label: k.bills,
|
|
53
|
-
content: /* @__PURE__ */ b(l, {
|
|
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
|
-
showTitle: !1,
|
|
66
|
-
onViewAllDocuments: () => P(S.Bills)
|
|
67
|
-
})
|
|
68
|
-
}];
|
|
69
|
-
M && z.push({
|
|
70
|
-
id: S.Settings,
|
|
71
|
-
label: k.settings,
|
|
72
|
-
content: /* @__PURE__ */ b(m, {
|
|
73
|
-
labels: w,
|
|
74
|
-
componentLabels: T
|
|
75
|
-
})
|
|
76
|
-
});
|
|
77
|
-
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
78
|
-
return /* @__PURE__ */ x(y, { children: [
|
|
79
|
-
/* @__PURE__ */ b(n, {}),
|
|
80
|
-
/* @__PURE__ */ b(o, {
|
|
81
|
-
labels: i,
|
|
82
|
-
tabs: z,
|
|
83
|
-
selectedTabId: B,
|
|
84
|
-
onTabChange: P
|
|
85
|
-
}),
|
|
86
|
-
R.isVisible ? /* @__PURE__ */ b(s, {
|
|
87
|
-
sections: R.sections,
|
|
88
|
-
summaryLabel: R.summaryLabel,
|
|
89
|
-
collapsed: R.collapsed,
|
|
90
|
-
onToggleCollapsed: R.onToggleCollapsed,
|
|
91
|
-
onClose: R.onClose,
|
|
92
|
-
testId: c.uploadTray
|
|
93
|
-
}) : null
|
|
94
|
-
] });
|
|
95
|
-
}
|
|
96
|
-
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: p, ...m }) {
|
|
97
|
-
return /* @__PURE__ */ b(i, {
|
|
98
|
-
widgetName: f,
|
|
99
|
-
baseUrl: e,
|
|
100
|
-
widgetToken: t,
|
|
101
|
-
organizationId: n,
|
|
102
|
-
configClient: r,
|
|
103
|
-
gatewayRouting: a,
|
|
104
|
-
linkComponent: o,
|
|
105
|
-
implementation: s,
|
|
106
|
-
uiFramework: c,
|
|
107
|
-
errorFallback: l,
|
|
108
|
-
onError: u,
|
|
109
|
-
analytics: d,
|
|
110
|
-
disclosuresAcceptance: p,
|
|
111
|
-
children: /* @__PURE__ */ b(w, { ...m })
|
|
112
|
-
});
|
|
113
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
uploadingSummary: (e) => `Uploading and scanning ${e} ${e === 1 ? "file" : "files"}`,
|
|
4
|
+
completeSummary: (e) => `${e} ${e === 1 ? "upload" : "uploads"} complete`,
|
|
5
|
+
readyCaption: (e) => `${e} new ${e === 1 ? "bill" : "bills"} ready`,
|
|
6
|
+
failedCaption: (e) => `${e} failed to upload`
|
|
7
|
+
};
|
|
114
8
|
//#endregion
|
|
115
|
-
export {
|
|
9
|
+
export { e as BILL_UPLOAD_QUEUE_LABELS_EN };
|
|
@@ -1 +1,85 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { useUploadPayableFromFileMutation as t } from "../../data-access/dist/index10.js";
|
|
7
|
+
import { usePayableOcrQueries as n } from "../../data-access/dist/index12.js";
|
|
8
|
+
import "../../data-access/dist/index.js";
|
|
9
|
+
import { billPayUploadQueueKey as r } from "./index53.js";
|
|
10
|
+
import { BILL_UPLOAD_QUEUE_LABELS_EN as i } from "./index54.js";
|
|
11
|
+
import { useCallback as a, useEffect as o, useMemo as s, useState as c } from "react";
|
|
12
|
+
import { useQuery as l, useQueryClient as u } from "@tanstack/react-query";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js
|
|
14
|
+
function d({ onOpenBill: d, labels: f } = {}) {
|
|
15
|
+
let p = {
|
|
16
|
+
...i,
|
|
17
|
+
...f
|
|
18
|
+
}, { organizationId: m } = e(), h = u(), g = s(() => r(m), [m]), _ = t(), [v, y] = c(!1), { data: b = [] } = l({
|
|
19
|
+
queryKey: g,
|
|
20
|
+
queryFn: () => h.getQueryData(g) ?? [],
|
|
21
|
+
staleTime: Infinity,
|
|
22
|
+
gcTime: Infinity,
|
|
23
|
+
initialData: []
|
|
24
|
+
}), x = a((e, t) => {
|
|
25
|
+
h.setQueryData(g, (n) => (n ?? []).map((n) => n.localId === e ? {
|
|
26
|
+
...n,
|
|
27
|
+
...t
|
|
28
|
+
} : n));
|
|
29
|
+
}, [h, g]), S = a((e) => {
|
|
30
|
+
y(!1);
|
|
31
|
+
for (let t of e) {
|
|
32
|
+
let e = crypto.randomUUID();
|
|
33
|
+
h.setQueryData(g, (n) => [...n ?? [], {
|
|
34
|
+
localId: e,
|
|
35
|
+
fileName: t.name,
|
|
36
|
+
status: "uploading"
|
|
37
|
+
}]), _.mutateAsync({ file: t }).then((t) => x(e, { payableId: t?.id })).catch(() => x(e, { status: "failed" }));
|
|
38
|
+
}
|
|
39
|
+
}, [
|
|
40
|
+
x,
|
|
41
|
+
h,
|
|
42
|
+
g,
|
|
43
|
+
_
|
|
44
|
+
]), C = n({ payableIds: b.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
|
|
45
|
+
o(() => {
|
|
46
|
+
for (let { payableId: e, ocrStatus: t, isError: n } of C) {
|
|
47
|
+
let r = b.find((t) => t.payableId === e && t.status === "uploading");
|
|
48
|
+
r && (t === "success" ? x(r.localId, { status: "ready" }) : (n || t === "error" || t === "canceled") && x(r.localId, { status: "failed" }));
|
|
49
|
+
}
|
|
50
|
+
}, [
|
|
51
|
+
b,
|
|
52
|
+
C,
|
|
53
|
+
x
|
|
54
|
+
]);
|
|
55
|
+
let w = b.filter((e) => e.status === "uploading"), T = b.filter((e) => e.status === "ready"), E = b.filter((e) => e.status === "failed"), D = (e) => ({
|
|
56
|
+
id: e.localId,
|
|
57
|
+
fileName: e.fileName,
|
|
58
|
+
status: e.status,
|
|
59
|
+
onOpen: e.status === "ready" && e.payableId && d ? () => d(e.payableId) : void 0
|
|
60
|
+
}), O = w.length ? [{
|
|
61
|
+
id: "in-progress",
|
|
62
|
+
items: b.map(D)
|
|
63
|
+
}] : [...T.length ? [{
|
|
64
|
+
id: "ready",
|
|
65
|
+
caption: p.readyCaption(T.length),
|
|
66
|
+
items: T.map(D)
|
|
67
|
+
}] : [], ...E.length ? [{
|
|
68
|
+
id: "failed",
|
|
69
|
+
caption: p.failedCaption(E.length),
|
|
70
|
+
items: E.map(D)
|
|
71
|
+
}] : []], k = w.length ? p.uploadingSummary(b.length) : T.length ? p.completeSummary(T.length) : p.failedCaption(E.length), A = a(() => {
|
|
72
|
+
h.setQueryData(g, []);
|
|
73
|
+
}, [h, g]);
|
|
74
|
+
return {
|
|
75
|
+
enqueue: S,
|
|
76
|
+
sections: O,
|
|
77
|
+
summaryLabel: k,
|
|
78
|
+
collapsed: v,
|
|
79
|
+
onToggleCollapsed: a(() => y((e) => !e), []),
|
|
80
|
+
onClose: A,
|
|
81
|
+
isVisible: b.length > 0
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { d as useBillUploadQueue };
|
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 "./index40.js";
|
|
9
|
-
import "./index41.js";
|
|
10
|
-
import { BillPayWidgetNative as r } from "./index54.js";
|
|
1
|
+
import "./index53.js";
|
|
2
|
+
import "./index54.js";
|
|
11
3
|
import "./index55.js";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.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 };
|
|
@@ -0,0 +1,115 @@
|
|
|
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/index43.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index56.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 { billsTabTestIds as l } from "./index49.js";
|
|
20
|
+
import { BillsTab as u } from "./index51.js";
|
|
21
|
+
import "./index52.js";
|
|
22
|
+
import { useBillUploadQueue as d } from "./index55.js";
|
|
23
|
+
import "./index56.js";
|
|
24
|
+
import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index43.js";
|
|
25
|
+
import { DEFAULT_TABS_LABELS as m } from "./index57.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/index58.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 = d({ onOpenBill: L }), z = [{
|
|
51
|
+
id: S.Bills,
|
|
52
|
+
label: k.bills,
|
|
53
|
+
content: /* @__PURE__ */ b(u, {
|
|
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
|
+
showTitle: !1,
|
|
66
|
+
onViewAllDocuments: () => P(S.Bills)
|
|
67
|
+
})
|
|
68
|
+
}];
|
|
69
|
+
M && z.push({
|
|
70
|
+
id: S.Settings,
|
|
71
|
+
label: k.settings,
|
|
72
|
+
content: /* @__PURE__ */ b(c, {
|
|
73
|
+
labels: w,
|
|
74
|
+
componentLabels: T
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
78
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
79
|
+
/* @__PURE__ */ b(n, {}),
|
|
80
|
+
/* @__PURE__ */ b(o, {
|
|
81
|
+
labels: i,
|
|
82
|
+
tabs: z,
|
|
83
|
+
selectedTabId: B,
|
|
84
|
+
onTabChange: P
|
|
85
|
+
}),
|
|
86
|
+
R.isVisible ? /* @__PURE__ */ b(s, {
|
|
87
|
+
sections: R.sections,
|
|
88
|
+
summaryLabel: R.summaryLabel,
|
|
89
|
+
collapsed: R.collapsed,
|
|
90
|
+
onToggleCollapsed: R.onToggleCollapsed,
|
|
91
|
+
onClose: R.onClose,
|
|
92
|
+
testId: l.uploadTray
|
|
93
|
+
}) : null
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
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 }) {
|
|
97
|
+
return /* @__PURE__ */ b(i, {
|
|
98
|
+
widgetName: p,
|
|
99
|
+
baseUrl: e,
|
|
100
|
+
widgetToken: t,
|
|
101
|
+
organizationId: n,
|
|
102
|
+
configClient: r,
|
|
103
|
+
gatewayRouting: a,
|
|
104
|
+
linkComponent: o,
|
|
105
|
+
implementation: s,
|
|
106
|
+
uiFramework: c,
|
|
107
|
+
errorFallback: l,
|
|
108
|
+
onError: u,
|
|
109
|
+
analytics: d,
|
|
110
|
+
disclosuresAcceptance: f,
|
|
111
|
+
children: /* @__PURE__ */ b(w, { ...m })
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
export { T as BillPayWidgetNative, T as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index58.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 "./index44.js";
|
|
9
|
+
import "./index45.js";
|
|
10
|
+
import { BillPayWidgetNative as r } from "./index58.js";
|
|
11
|
+
import "./index59.js";
|
|
12
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.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/index65.js";
|
|
3
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as n } from "../../ui/dist/index68.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 = {
|