@tesouro/embedded-components-react 0.5.280 → 0.5.281
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 +8 -0
- package/dist/index.d.ts +2 -2
- package/dist/lib/BankAccountOnboardingWidget.d.ts +2 -2
- package/dist/lib/WidgetSuite.d.ts +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +8 -160
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +148 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +37 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +83 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +3 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +54 -184
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +108 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +181 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +74 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +27 -412
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +413 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +77 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +216 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +44 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +233 -611
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +647 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +4 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +42 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +250 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +2 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +67 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +1 -0
- 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/ui/dist/lib/OnboardingShell/OnboardingShell.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useAnalyticsTrack as e } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
+
import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
|
+
import "../../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillCreateDialog as n } from "./index37.js";
|
|
9
|
+
import "./index38.js";
|
|
10
|
+
import { BillDetailsContainer as r } from "./index40.js";
|
|
11
|
+
import "./index41.js";
|
|
12
|
+
import { BillDetailWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index42.js";
|
|
13
|
+
import { useEffect as o } from "react";
|
|
14
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
15
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js
|
|
16
|
+
function c() {
|
|
17
|
+
let t = e();
|
|
18
|
+
o(() => {
|
|
19
|
+
t(i.Mounted);
|
|
20
|
+
}, [t]);
|
|
21
|
+
}
|
|
22
|
+
function l(e) {
|
|
23
|
+
return c(), /* @__PURE__ */ s(n, { ...e });
|
|
24
|
+
}
|
|
25
|
+
function u(e) {
|
|
26
|
+
return c(), /* @__PURE__ */ s(r, { ...e });
|
|
27
|
+
}
|
|
28
|
+
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
|
|
29
|
+
return /* @__PURE__ */ s(t, {
|
|
30
|
+
widgetName: a,
|
|
31
|
+
baseUrl: e,
|
|
32
|
+
widgetToken: n,
|
|
33
|
+
organizationId: r,
|
|
34
|
+
configClient: i,
|
|
35
|
+
gatewayRouting: o,
|
|
36
|
+
linkComponent: c,
|
|
37
|
+
implementation: u,
|
|
38
|
+
uiFramework: d,
|
|
39
|
+
errorFallback: f,
|
|
40
|
+
onError: p,
|
|
41
|
+
analytics: m,
|
|
42
|
+
disclosuresAcceptance: h,
|
|
43
|
+
providerLabels: g,
|
|
44
|
+
children: /* @__PURE__ */ s(l, { ..._ })
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function f({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, implementation: l, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
|
|
48
|
+
return /* @__PURE__ */ s(t, {
|
|
49
|
+
widgetName: a,
|
|
50
|
+
baseUrl: e,
|
|
51
|
+
widgetToken: n,
|
|
52
|
+
organizationId: r,
|
|
53
|
+
configClient: i,
|
|
54
|
+
gatewayRouting: o,
|
|
55
|
+
linkComponent: c,
|
|
56
|
+
implementation: l,
|
|
57
|
+
uiFramework: d,
|
|
58
|
+
errorFallback: f,
|
|
59
|
+
onError: p,
|
|
60
|
+
analytics: m,
|
|
61
|
+
disclosuresAcceptance: h,
|
|
62
|
+
providerLabels: g,
|
|
63
|
+
children: /* @__PURE__ */ s(u, { ..._ })
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { d as BillCreateWidget, f as BillDetailsWidget };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index43.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js
CHANGED
|
@@ -18,7 +18,7 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
18
18
|
..._?.ach?.fieldMarkers
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
}), [_]), y = !!p?.isOpen, b =
|
|
21
|
+
}), [_]), y = !!p?.isOpen, b = /* @__PURE__ */ a("div", {
|
|
22
22
|
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
23
23
|
children: [
|
|
24
24
|
/* @__PURE__ */ i("span", {
|
|
@@ -34,14 +34,14 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
34
34
|
children: d.description
|
|
35
35
|
}) : null
|
|
36
36
|
]
|
|
37
|
-
}),
|
|
38
|
-
return
|
|
37
|
+
}), x;
|
|
38
|
+
return x = p && y ? /* @__PURE__ */ i(n, {
|
|
39
39
|
paymentInstructions: p,
|
|
40
40
|
labels: v
|
|
41
|
-
}) : d.hasPaymentInstructions ?
|
|
41
|
+
}) : d.hasPaymentInstructions ? p?.onEditExisting ? /* @__PURE__ */ a("button", {
|
|
42
42
|
type: "button",
|
|
43
43
|
"aria-label": v.editPaymentInstructionsAction,
|
|
44
|
-
onClick: p
|
|
44
|
+
onClick: p.onEditExisting,
|
|
45
45
|
className: u,
|
|
46
46
|
children: [/* @__PURE__ */ i("span", {
|
|
47
47
|
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
@@ -64,11 +64,11 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
64
64
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
65
65
|
children: v.paymentInstructionsDescription
|
|
66
66
|
})]
|
|
67
|
-
}), p ? /* @__PURE__ */ a(e, {
|
|
67
|
+
}), p?.onAdd ? /* @__PURE__ */ a(e, {
|
|
68
68
|
type: "button",
|
|
69
69
|
variant: "link",
|
|
70
70
|
className: "ttw:w-fit ttw:px-0",
|
|
71
|
-
onClick: p.
|
|
71
|
+
onClick: p.onAdd,
|
|
72
72
|
children: [/* @__PURE__ */ i(s, { className: "ttw:size-4" }), v.addPaymentInstructions]
|
|
73
73
|
}) : /* @__PURE__ */ i("p", {
|
|
74
74
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
@@ -102,13 +102,13 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
102
102
|
"aria-label": v.editAction,
|
|
103
103
|
onClick: f,
|
|
104
104
|
className: u,
|
|
105
|
-
children: [
|
|
105
|
+
children: [b, /* @__PURE__ */ i(o, {
|
|
106
106
|
"aria-hidden": "true",
|
|
107
107
|
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
108
108
|
})]
|
|
109
109
|
}) : /* @__PURE__ */ i("div", {
|
|
110
110
|
className: "ttw:flex ttw:flex-1",
|
|
111
|
-
children:
|
|
111
|
+
children: b
|
|
112
112
|
})]
|
|
113
113
|
}), m && y ? /* @__PURE__ */ a("div", {
|
|
114
114
|
className: c,
|
|
@@ -117,7 +117,7 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
117
117
|
children: v.achBankAccountLabel
|
|
118
118
|
}), /* @__PURE__ */ i("div", {
|
|
119
119
|
className: "ttw:flex-1",
|
|
120
|
-
children:
|
|
120
|
+
children: x
|
|
121
121
|
})]
|
|
122
122
|
}) : m ? /* @__PURE__ */ a("div", {
|
|
123
123
|
className: c,
|
|
@@ -126,7 +126,7 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
126
126
|
children: v.achBankAccountLabel
|
|
127
127
|
}), /* @__PURE__ */ i("div", {
|
|
128
128
|
className: "ttw:flex ttw:flex-1",
|
|
129
|
-
children:
|
|
129
|
+
children: x
|
|
130
130
|
})]
|
|
131
131
|
}) : null]
|
|
132
132
|
})
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js
CHANGED
|
@@ -20,21 +20,21 @@ import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
|
20
20
|
import { AlertTriangle as x } from "lucide-react";
|
|
21
21
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js
|
|
22
22
|
var S = "ttw:text-base ttw:font-semibold", C = "ttw:px-3 ttw:py-2", w = "ttw:py-2 ttw:pr-3", T = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", E = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
|
|
23
|
-
function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate: A, scheduledStatusLabel: j, showApprovalOverrideNotice: M, awaitingApprovalNotice: N, payTo: P,
|
|
24
|
-
let
|
|
25
|
-
...
|
|
26
|
-
payToHeading: D?.paidOnLabel ?
|
|
27
|
-
vendorLabel:
|
|
28
|
-
achBankAccountLabel:
|
|
29
|
-
}), [
|
|
30
|
-
...
|
|
23
|
+
function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate: A, scheduledStatusLabel: j, showApprovalOverrideNotice: M, awaitingApprovalNotice: N, payTo: P, paymentHistoryError: F, paymentHistoryLoading: I, historyError: L, historyLoading: R, historyNamesError: z, isLoading: B, isError: V, labels: H }) {
|
|
24
|
+
let U = v(() => g(H), [H]), W = v(() => ({
|
|
25
|
+
...U.payToCard,
|
|
26
|
+
payToHeading: D?.paidOnLabel ? U.payToHeadingPaid : U.payToHeading,
|
|
27
|
+
vendorLabel: U.vendorRow,
|
|
28
|
+
achBankAccountLabel: U.paymentInstructionsRow
|
|
29
|
+
}), [U, D?.paidOnLabel]), G = v(() => ({
|
|
30
|
+
...U.statusBadge,
|
|
31
31
|
...j ? { scheduled: j } : void 0
|
|
32
|
-
}), [
|
|
33
|
-
if (
|
|
34
|
-
title:
|
|
35
|
-
description:
|
|
32
|
+
}), [U.statusBadge, j]);
|
|
33
|
+
if (V) return /* @__PURE__ */ y(s, {
|
|
34
|
+
title: U.errorTitle,
|
|
35
|
+
description: U.errorDescription
|
|
36
36
|
});
|
|
37
|
-
if (
|
|
37
|
+
if (B || !D) return /* @__PURE__ */ b("div", {
|
|
38
38
|
"aria-hidden": !0,
|
|
39
39
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
40
40
|
children: [
|
|
@@ -43,24 +43,24 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
43
43
|
/* @__PURE__ */ y(i, { className: "ttw:h-24 ttw:w-full" })
|
|
44
44
|
]
|
|
45
45
|
});
|
|
46
|
-
let
|
|
46
|
+
let K = P?.paymentInstructions, q = K?.onAdd;
|
|
47
47
|
return /* @__PURE__ */ b("div", {
|
|
48
48
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
49
49
|
children: [
|
|
50
|
-
|
|
50
|
+
q ? /* @__PURE__ */ b("div", {
|
|
51
51
|
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
|
|
52
52
|
children: [
|
|
53
53
|
/* @__PURE__ */ y(x, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
54
54
|
/* @__PURE__ */ y("p", {
|
|
55
55
|
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
56
|
-
children:
|
|
56
|
+
children: U.missingPaymentInstructionsBanner
|
|
57
57
|
}),
|
|
58
58
|
/* @__PURE__ */ y(n, {
|
|
59
59
|
type: "button",
|
|
60
60
|
variant: "outline",
|
|
61
61
|
size: "sm",
|
|
62
|
-
onClick:
|
|
63
|
-
children:
|
|
62
|
+
onClick: q,
|
|
63
|
+
children: U.addPaymentInstructions
|
|
64
64
|
})
|
|
65
65
|
]
|
|
66
66
|
}) : null,
|
|
@@ -73,7 +73,7 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
73
73
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
74
74
|
children: [/* @__PURE__ */ y("span", {
|
|
75
75
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
76
|
-
children:
|
|
76
|
+
children: U.amountDueHeading
|
|
77
77
|
}), /* @__PURE__ */ y("span", {
|
|
78
78
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
79
79
|
children: D.amountDue
|
|
@@ -82,7 +82,7 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
82
82
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
83
83
|
children: [/* @__PURE__ */ y("span", {
|
|
84
84
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
85
|
-
children:
|
|
85
|
+
children: U.amountPaidHeading
|
|
86
86
|
}), /* @__PURE__ */ y("span", {
|
|
87
87
|
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
88
88
|
children: D.amountPaid
|
|
@@ -92,7 +92,7 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
92
92
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
93
93
|
children: [/* @__PURE__ */ y("span", {
|
|
94
94
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
95
|
-
children:
|
|
95
|
+
children: U.amountDueHeading
|
|
96
96
|
}), /* @__PURE__ */ y("span", {
|
|
97
97
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
98
98
|
children: D.amountDue
|
|
@@ -108,7 +108,7 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
108
108
|
}) : /* @__PURE__ */ y(m, {
|
|
109
109
|
status: D.status,
|
|
110
110
|
tone: D.statusTone,
|
|
111
|
-
labels:
|
|
111
|
+
labels: G
|
|
112
112
|
}) }),
|
|
113
113
|
/* @__PURE__ */ b("div", {
|
|
114
114
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
@@ -116,7 +116,7 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
116
116
|
className: "ttw:flex ttw:flex-col",
|
|
117
117
|
children: [/* @__PURE__ */ y("span", {
|
|
118
118
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
119
|
-
children:
|
|
119
|
+
children: U.invoiceDateLabel
|
|
120
120
|
}), /* @__PURE__ */ y("span", {
|
|
121
121
|
className: "ttw:text-sm ttw:font-medium",
|
|
122
122
|
children: D.invoiceDateLabel
|
|
@@ -125,12 +125,12 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
125
125
|
className: "ttw:flex ttw:flex-col",
|
|
126
126
|
children: [/* @__PURE__ */ y("span", {
|
|
127
127
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
128
|
-
children:
|
|
128
|
+
children: U.dueDateLabel
|
|
129
129
|
}), /* @__PURE__ */ y(h, {
|
|
130
130
|
className: "ttw:text-sm ttw:font-medium",
|
|
131
131
|
value: D.dueDateLabel,
|
|
132
132
|
tone: D.dueDateTone,
|
|
133
|
-
labels:
|
|
133
|
+
labels: U.dueDate
|
|
134
134
|
})]
|
|
135
135
|
})]
|
|
136
136
|
}),
|
|
@@ -138,7 +138,7 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
138
138
|
M ? /* @__PURE__ */ y(a, {
|
|
139
139
|
variant: "caption",
|
|
140
140
|
color: "muted",
|
|
141
|
-
children:
|
|
141
|
+
children: U.approvalOverrideNotice
|
|
142
142
|
}) : N ? /* @__PURE__ */ y(a, {
|
|
143
143
|
variant: "caption",
|
|
144
144
|
color: "muted",
|
|
@@ -150,37 +150,37 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
150
150
|
}) : null
|
|
151
151
|
]
|
|
152
152
|
}),
|
|
153
|
-
|
|
153
|
+
K?.isOpen ? /* @__PURE__ */ y(r, { labels: U.requiredFieldsLegend }) : null,
|
|
154
154
|
P?.editForm ? /* @__PURE__ */ b("div", {
|
|
155
155
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
156
156
|
children: [P.editForm, /* @__PURE__ */ y(d, {
|
|
157
157
|
summary: D.payTo,
|
|
158
|
-
paymentInstructions:
|
|
158
|
+
paymentInstructions: K,
|
|
159
159
|
detailsWarning: P?.detailsWarning,
|
|
160
|
-
labels:
|
|
160
|
+
labels: W
|
|
161
161
|
})]
|
|
162
162
|
}) : /* @__PURE__ */ y(d, {
|
|
163
163
|
summary: D.payTo,
|
|
164
164
|
onEdit: P?.onEdit,
|
|
165
|
-
paymentInstructions:
|
|
165
|
+
paymentInstructions: K,
|
|
166
166
|
detailsWarning: P?.detailsWarning,
|
|
167
|
-
labels:
|
|
167
|
+
labels: W
|
|
168
168
|
}),
|
|
169
|
-
D.paymentHistory.length ||
|
|
169
|
+
D.paymentHistory.length || F || I ? /* @__PURE__ */ b("section", {
|
|
170
170
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
171
171
|
children: [/* @__PURE__ */ y("h3", {
|
|
172
172
|
className: S,
|
|
173
|
-
children:
|
|
174
|
-
}),
|
|
173
|
+
children: U.paymentHistoryHeading
|
|
174
|
+
}), F ? /* @__PURE__ */ y("p", {
|
|
175
175
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
176
|
-
children:
|
|
177
|
-
}) :
|
|
176
|
+
children: U.paymentHistoryErrorDescription
|
|
177
|
+
}) : I ? /* @__PURE__ */ y(i, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ y(u, { records: D.paymentHistory })]
|
|
178
178
|
}) : null,
|
|
179
179
|
/* @__PURE__ */ b("section", {
|
|
180
180
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
181
181
|
children: [/* @__PURE__ */ y("h3", {
|
|
182
182
|
className: S,
|
|
183
|
-
children:
|
|
183
|
+
children: U.invoiceDetailsHeading
|
|
184
184
|
}), /* @__PURE__ */ y("dl", {
|
|
185
185
|
className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
186
186
|
children: D.invoiceFields.map((e) => /* @__PURE__ */ b("div", {
|
|
@@ -202,15 +202,15 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
202
202
|
children: [
|
|
203
203
|
/* @__PURE__ */ y("th", {
|
|
204
204
|
className: o(w, "ttw:text-left ttw:font-normal"),
|
|
205
|
-
children:
|
|
205
|
+
children: U.descriptionAndGlCodeColumn
|
|
206
206
|
}),
|
|
207
207
|
/* @__PURE__ */ y("th", {
|
|
208
208
|
className: o(C, "ttw:text-right ttw:font-normal"),
|
|
209
|
-
children:
|
|
209
|
+
children: U.qtyPriceColumn
|
|
210
210
|
}),
|
|
211
211
|
/* @__PURE__ */ y("th", {
|
|
212
212
|
className: o(C, "ttw:text-right ttw:font-normal"),
|
|
213
|
-
children:
|
|
213
|
+
children: U.amountColumn
|
|
214
214
|
})
|
|
215
215
|
]
|
|
216
216
|
}) }), /* @__PURE__ */ b("tbody", { children: [D.lineItems.map((e) => /* @__PURE__ */ b("tr", {
|
|
@@ -249,25 +249,25 @@ function D({ view: D, actions: O = p, scheduledSummary: k, scheduledSummaryDate:
|
|
|
249
249
|
}) }),
|
|
250
250
|
D.approvalPolicy ? /* @__PURE__ */ y(c, {
|
|
251
251
|
view: D.approvalPolicy,
|
|
252
|
-
labels:
|
|
252
|
+
labels: U.approvalPolicy
|
|
253
253
|
}) : null,
|
|
254
254
|
/* @__PURE__ */ b("section", {
|
|
255
255
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
256
256
|
children: [
|
|
257
257
|
/* @__PURE__ */ y("h3", {
|
|
258
258
|
className: S,
|
|
259
|
-
children:
|
|
259
|
+
children: U.history.heading
|
|
260
260
|
}),
|
|
261
|
-
|
|
261
|
+
z ? /* @__PURE__ */ y(a, {
|
|
262
262
|
variant: "caption",
|
|
263
263
|
color: "muted",
|
|
264
|
-
children:
|
|
264
|
+
children: U.history.namesError
|
|
265
265
|
}) : null,
|
|
266
266
|
/* @__PURE__ */ y(e, {
|
|
267
267
|
rows: D.history,
|
|
268
|
-
isLoading:
|
|
269
|
-
isError:
|
|
270
|
-
labels:
|
|
268
|
+
isLoading: R,
|
|
269
|
+
isError: L,
|
|
270
|
+
labels: U.history
|
|
271
271
|
})
|
|
272
272
|
]
|
|
273
273
|
})
|
|
@@ -17,9 +17,9 @@ async function l({ client: l, organizationId: u, payableId: d, payableIds: f, de
|
|
|
17
17
|
...v.flatMap((e) => [
|
|
18
18
|
i(e),
|
|
19
19
|
r(e),
|
|
20
|
-
o(e),
|
|
21
20
|
...m ? [a(e)] : []
|
|
22
|
-
])
|
|
21
|
+
]),
|
|
22
|
+
...v.length > 0 ? [o(g)] : []
|
|
23
23
|
];
|
|
24
24
|
await Promise.all(y.map((t) => e(t))), await Promise.all([..._].map((e) => c({
|
|
25
25
|
client: l,
|
|
@@ -2,33 +2,33 @@ import { getPayablesId as e } from "../../../../../shared/data-access/dist/lib/r
|
|
|
2
2
|
import { organizationHeaders as t } from "../../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../../../shared/data-access/dist/index.js";
|
|
4
4
|
import { invalidatePayableQueries as n } from "./invalidatePayableQueries.js";
|
|
5
|
-
import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as r, PAYABLE_PROJECTION_POLL_TIMEOUT_MS as i } from "./payableProjectionPolling.js";
|
|
6
|
-
import { hasLiveScheduledRecord as
|
|
5
|
+
import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as r, PAYABLE_PROJECTION_POLL_TIMEOUT_MS as i, nextPollInterval as a } from "./payableProjectionPolling.js";
|
|
6
|
+
import { hasLiveScheduledRecord as o } from "./hasLiveScheduledRecord.js";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js
|
|
8
|
-
async function
|
|
9
|
-
let
|
|
10
|
-
for (; !
|
|
8
|
+
async function s({ client: s, organizationId: c, payableId: l }) {
|
|
9
|
+
let u = Date.now() + i, d = r, f = !1;
|
|
10
|
+
for (; !f && Date.now() < u;) {
|
|
11
11
|
await new Promise((e) => {
|
|
12
|
-
setTimeout(e,
|
|
13
|
-
});
|
|
12
|
+
setTimeout(e, Math.min(d, u - Date.now()));
|
|
13
|
+
}), d = a(d);
|
|
14
14
|
try {
|
|
15
15
|
let { data: n } = await e({
|
|
16
|
-
client:
|
|
17
|
-
headers: t(
|
|
18
|
-
path: { payable_id:
|
|
16
|
+
client: s,
|
|
17
|
+
headers: t(c),
|
|
18
|
+
path: { payable_id: l }
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
client:
|
|
22
|
-
organizationId:
|
|
23
|
-
payableId:
|
|
20
|
+
f = !n?.scheduled_payment_date && await o({
|
|
21
|
+
client: s,
|
|
22
|
+
organizationId: c,
|
|
23
|
+
payableId: l
|
|
24
24
|
}) === !1;
|
|
25
25
|
} catch {}
|
|
26
26
|
}
|
|
27
27
|
return await n({
|
|
28
|
-
client:
|
|
29
|
-
organizationId:
|
|
30
|
-
payableId:
|
|
31
|
-
}),
|
|
28
|
+
client: s,
|
|
29
|
+
organizationId: c,
|
|
30
|
+
payableId: l
|
|
31
|
+
}), f;
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
export {
|
|
34
|
+
export { s as reconcileCancelledPaymentQueries };
|
|
@@ -8,7 +8,7 @@ import "../../../../../shared/data-access/dist/index.js";
|
|
|
8
8
|
import { useWidgetConfig as n } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
9
|
import "../../../../../shared/feature/dist/index.js";
|
|
10
10
|
import { billsTabTestIds as r } from "./testIds.js";
|
|
11
|
-
import { BillCreateWidget as i, BillDetailsWidget as a } from "../../../../bill-detail/feature/dist/
|
|
11
|
+
import { BillCreateWidget as i, BillDetailsWidget as a } from "../../../../bill-detail/feature/dist/index43.js";
|
|
12
12
|
import "../../../../bill-detail/feature/dist/index.js";
|
|
13
13
|
import "../../../../bill-upload/feature/dist/index.js";
|
|
14
14
|
import { BillsListWidget as o } from "../../../../bills-list/feature/dist/index20.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { invalidatePayableQueries as e } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
|
|
2
|
-
import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as t, PAYABLE_PROJECTION_POLL_TIMEOUT_MS as n } from "../../../data-access/dist/lib/invalidatePayableQueries/payableProjectionPolling.js";
|
|
3
|
-
import { hasLiveScheduledRecord as
|
|
2
|
+
import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as t, PAYABLE_PROJECTION_POLL_TIMEOUT_MS as n, nextPollInterval as r } from "../../../data-access/dist/lib/invalidatePayableQueries/payableProjectionPolling.js";
|
|
3
|
+
import { hasLiveScheduledRecord as i } from "../../../data-access/dist/lib/invalidatePayableQueries/hasLiveScheduledRecord.js";
|
|
4
4
|
import "../../../data-access/dist/invalidation.js";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index4.js
|
|
6
|
-
async function
|
|
7
|
-
let
|
|
8
|
-
for (; !
|
|
9
|
-
setTimeout(e,
|
|
10
|
-
}),
|
|
11
|
-
client:
|
|
12
|
-
organizationId:
|
|
13
|
-
payableId:
|
|
6
|
+
async function a({ client: a, organizationId: o, payableId: s }) {
|
|
7
|
+
let c = Date.now() + n, l = t, u = !1;
|
|
8
|
+
for (; !u && Date.now() < c;) await new Promise((e) => {
|
|
9
|
+
setTimeout(e, Math.min(l, c - Date.now()));
|
|
10
|
+
}), l = r(l), u = await i({
|
|
11
|
+
client: a,
|
|
12
|
+
organizationId: o,
|
|
13
|
+
payableId: s
|
|
14
14
|
}) === !0;
|
|
15
15
|
return await e({
|
|
16
|
-
client:
|
|
17
|
-
organizationId:
|
|
18
|
-
payableId:
|
|
19
|
-
}),
|
|
16
|
+
client: a,
|
|
17
|
+
organizationId: o,
|
|
18
|
+
payableId: s
|
|
19
|
+
}), u;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
export {
|
|
22
|
+
export { a as reconcileScheduledPaymentQueries };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js
CHANGED
|
@@ -7114,6 +7114,8 @@ var Rp = e.enum([
|
|
|
7114
7114
|
"IDENTITY_VERIFICATION_STATUS_CHANGED",
|
|
7115
7115
|
"BANK_ACCOUNT_APPLICATION_STATUS_CHANGED",
|
|
7116
7116
|
"BANK_ACCOUNT_APPLICATION_KYC_STATUS_CHANGED",
|
|
7117
|
+
"BANK_ACCOUNT_TRANSFER_STATUS_CHANGED",
|
|
7118
|
+
"EXTERNAL_BANK_ACCOUNT_CHANGED",
|
|
7117
7119
|
"LEDGER_TRANSACTION",
|
|
7118
7120
|
"LEDGER_POSTING_EXCEPTION",
|
|
7119
7121
|
"LEDGER_ACCOUNT_EXCEPTION",
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.281", n = "89e9fc42239a64407381e406fe4a16c5ef81c92e", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -110,7 +110,7 @@ function S({ open: i, defaultOpen: a = !0, onOpenChange: S, isFullScreenInline:
|
|
|
110
110
|
variant: "ghost",
|
|
111
111
|
disabled: X,
|
|
112
112
|
onClick: M,
|
|
113
|
-
className: "ttw:h-auto ttw:max-w-full ttw:whitespace-normal ttw:rounded-2xl ttw:px-3 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-
|
|
113
|
+
className: "ttw:h-auto ttw:max-w-full ttw:whitespace-normal ttw:rounded-2xl ttw:px-3 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-destructive/10 ttw:hover:text-[color-mix(in_srgb,var(--ttw-destructive),black_10%)]",
|
|
114
114
|
"data-testid": H?.delete,
|
|
115
115
|
children: [/* @__PURE__ */ m(v, {
|
|
116
116
|
className: "ttw:size-4",
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
backButton: "Back",
|
|
4
4
|
cancelButton: "Cancel",
|
|
5
|
-
saveAndCloseButton: "Save and
|
|
6
|
-
deleteButton: "
|
|
5
|
+
saveAndCloseButton: "Save and continue later",
|
|
6
|
+
deleteButton: "Delete",
|
|
7
7
|
dismissAriaLabel: "Close onboarding",
|
|
8
8
|
stepperAriaLabel: "Onboarding progress",
|
|
9
9
|
scrollForMore: "Scroll for more"
|