@tesouro/embedded-components-react 0.5.28 → 0.5.31
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/README.md +14 -13
- package/dist/index.css +15 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +155 -151
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
- 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 +126 -105
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import { Eye as a, EyeOff as o } from "lucide-react";
|
|
1
|
+
import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index92.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { Info as r, X as i } from "lucide-react";
|
|
6
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
className: "ttw:flex ttw:items-start ttw:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
children: r(u ? o : a, { className: "ttw:size-4" })
|
|
30
|
-
}) : null]
|
|
5
|
+
function a({ onDismiss: a, testId: o, labels: s }) {
|
|
6
|
+
let c = {
|
|
7
|
+
...e,
|
|
8
|
+
...s
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ n("div", {
|
|
11
|
+
className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
|
|
12
|
+
"data-testid": o,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
|
|
15
|
+
/* @__PURE__ */ t("p", {
|
|
16
|
+
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
17
|
+
children: c.message
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ t("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: a,
|
|
22
|
+
"aria-label": c.dismiss,
|
|
23
|
+
className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
24
|
+
children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
|
|
25
|
+
})
|
|
26
|
+
]
|
|
31
27
|
});
|
|
32
28
|
}
|
|
33
29
|
//#endregion
|
|
34
|
-
export {
|
|
30
|
+
export { a as ExtractionNotice, a as default };
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { REVEALABLE_FIELD_LABELS_EN as e } from "./index92.js";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payToHeading: "Pay to",
|
|
7
|
-
backButton: "Back",
|
|
8
|
-
submitButton: "Submit",
|
|
9
|
-
...e
|
|
2
|
+
var e = {
|
|
3
|
+
revealValue: "Show value",
|
|
4
|
+
hideValue: "Hide value"
|
|
10
5
|
};
|
|
11
6
|
//#endregion
|
|
12
|
-
export {
|
|
7
|
+
export { e as REVEALABLE_FIELD_LABELS_EN };
|
|
@@ -1,106 +1,34 @@
|
|
|
1
|
-
import { Button as e
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { REVEALABLE_FIELD_LABELS_EN as t } from "./index95.js";
|
|
3
|
+
import { useState as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Eye as a, EyeOff as o } from "lucide-react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
};
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ d("div", {
|
|
33
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
34
|
-
children: [/* @__PURE__ */ u("p", {
|
|
35
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
36
|
-
children: m
|
|
37
|
-
}), /* @__PURE__ */ u("p", {
|
|
38
|
-
className: "ttw:text-4xl ttw:font-semibold",
|
|
39
|
-
children: h
|
|
40
|
-
})]
|
|
41
|
-
}),
|
|
42
|
-
/* @__PURE__ */ u("dl", {
|
|
43
|
-
className: "ttw:flex ttw:flex-col",
|
|
44
|
-
children: g.map((e, t) => /* @__PURE__ */ d("div", {
|
|
45
|
-
className: s("ttw:flex ttw:items-center ttw:gap-4 ttw:py-2.5", t < g.length - 1 && "ttw:border-b ttw:border-border"),
|
|
46
|
-
children: [/* @__PURE__ */ u("dt", {
|
|
47
|
-
className: "ttw:w-32 ttw:shrink-0 ttw:text-sm ttw:text-muted-foreground",
|
|
48
|
-
children: e.label
|
|
49
|
-
}), /* @__PURE__ */ u("dd", {
|
|
50
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
51
|
-
children: e.value
|
|
52
|
-
})]
|
|
53
|
-
}, e.label))
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ d("section", {
|
|
56
|
-
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ u("p", {
|
|
59
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
60
|
-
children: w.payToHeading
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ u("p", {
|
|
63
|
-
className: "ttw:mt-1 ttw:text-xl ttw:font-semibold",
|
|
64
|
-
children: _.name
|
|
65
|
-
}),
|
|
66
|
-
_.email ? /* @__PURE__ */ u("p", {
|
|
67
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
68
|
-
children: _.email
|
|
69
|
-
}) : null,
|
|
70
|
-
_.methodLabel || _.fields.length > 0 ? /* @__PURE__ */ d("div", {
|
|
71
|
-
className: "ttw:mt-4 ttw:border-t ttw:border-border ttw:pt-4",
|
|
72
|
-
children: [_.methodLabel ? /* @__PURE__ */ u("p", {
|
|
73
|
-
className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
|
|
74
|
-
children: _.methodLabel
|
|
75
|
-
}) : null, /* @__PURE__ */ u("dl", {
|
|
76
|
-
className: "ttw:mt-3 ttw:grid ttw:gap-3",
|
|
77
|
-
children: _.fields.map((e) => /* @__PURE__ */ u(c, {
|
|
78
|
-
field: e,
|
|
79
|
-
labels: w
|
|
80
|
-
}, e.label))
|
|
81
|
-
})]
|
|
82
|
-
}) : null
|
|
83
|
-
]
|
|
84
|
-
})
|
|
85
|
-
]
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ d(i, {
|
|
88
|
-
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
89
|
-
children: [/* @__PURE__ */ u(e, {
|
|
90
|
-
type: "button",
|
|
91
|
-
variant: "outline",
|
|
92
|
-
onClick: y,
|
|
93
|
-
children: w.backButton
|
|
94
|
-
}), /* @__PURE__ */ u(e, {
|
|
95
|
-
type: "button",
|
|
96
|
-
loading: v,
|
|
97
|
-
onClick: x,
|
|
98
|
-
children: w.submitButton
|
|
99
|
-
})]
|
|
100
|
-
})
|
|
101
|
-
]
|
|
102
|
-
})
|
|
7
|
+
function s({ field: s, labels: c }) {
|
|
8
|
+
let l = {
|
|
9
|
+
...t,
|
|
10
|
+
...c
|
|
11
|
+
}, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
|
|
12
|
+
return /* @__PURE__ */ i("div", {
|
|
13
|
+
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
|
|
14
|
+
children: [/* @__PURE__ */ i("div", {
|
|
15
|
+
className: "ttw:min-w-0",
|
|
16
|
+
children: [/* @__PURE__ */ r("dt", {
|
|
17
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
18
|
+
children: s.label
|
|
19
|
+
}), /* @__PURE__ */ r("dd", {
|
|
20
|
+
className: "ttw:break-words ttw:text-sm ttw:font-medium",
|
|
21
|
+
children: f
|
|
22
|
+
})]
|
|
23
|
+
}), s.maskedValue ? /* @__PURE__ */ r(e, {
|
|
24
|
+
type: "button",
|
|
25
|
+
variant: "ghost",
|
|
26
|
+
size: "icon",
|
|
27
|
+
"aria-label": u ? l.hideValue : l.revealValue,
|
|
28
|
+
onClick: () => d((e) => !e),
|
|
29
|
+
children: r(u ? o : a, { className: "ttw:size-4" })
|
|
30
|
+
}) : null]
|
|
103
31
|
});
|
|
104
32
|
}
|
|
105
33
|
//#endregion
|
|
106
|
-
export {
|
|
34
|
+
export { s as RevealableField, s as default };
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
+
import { REVEALABLE_FIELD_LABELS_EN as e } from "./index95.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js
|
|
2
|
-
var
|
|
3
|
-
title: "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
today: "Today",
|
|
10
|
-
comments: "Comments",
|
|
11
|
-
commentsOptionalSuffix: "(optional)",
|
|
12
|
-
commentsPlaceholder: "Additional context for this payment.",
|
|
13
|
-
cancelButton: "Cancel",
|
|
14
|
-
confirmButton: "Mark as paid"
|
|
3
|
+
var t = {
|
|
4
|
+
title: "Review transaction",
|
|
5
|
+
hiddenDescription: "Review the payment before submitting it.",
|
|
6
|
+
payToHeading: "Pay to",
|
|
7
|
+
backButton: "Back",
|
|
8
|
+
submitButton: "Submit",
|
|
9
|
+
...e
|
|
15
10
|
};
|
|
16
11
|
//#endregion
|
|
17
|
-
export {
|
|
12
|
+
export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
|
|
@@ -1,120 +1,101 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RevealableField as c } from "./index96.js";
|
|
3
|
+
import "./index97.js";
|
|
4
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index98.js";
|
|
5
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
open:
|
|
14
|
-
onOpenChange: (e) => e ?
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
"data-testid":
|
|
17
|
-
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-
|
|
7
|
+
function f({ open: f, onOpenChange: p, amountLabel: m, amount: h, rows: g, payTo: _, isSubmitting: v, onBack: y, onCancel: b, onSubmit: x, testId: S, labels: C }) {
|
|
8
|
+
let w = {
|
|
9
|
+
...l,
|
|
10
|
+
...C
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ u(t, {
|
|
13
|
+
open: f,
|
|
14
|
+
onOpenChange: (e) => e ? p(e) : b(),
|
|
15
|
+
children: /* @__PURE__ */ d(n, {
|
|
16
|
+
"data-testid": S,
|
|
17
|
+
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-6",
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
/* @__PURE__ */ d(a, {
|
|
20
|
+
className: "ttw:border-b ttw:border-border ttw:pb-7",
|
|
21
|
+
children: [/* @__PURE__ */ u(o, {
|
|
22
|
+
className: "ttw:text-3xl ttw:tracking-tight",
|
|
23
|
+
children: w.title
|
|
24
|
+
}), /* @__PURE__ */ u(r, {
|
|
25
|
+
className: "ttw:sr-only",
|
|
26
|
+
children: w.hiddenDescription
|
|
27
|
+
})]
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ d("div", {
|
|
30
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
22
31
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1
|
|
25
|
-
children: [/* @__PURE__ */
|
|
26
|
-
className: "ttw:text-
|
|
27
|
-
children:
|
|
28
|
-
}), /* @__PURE__ */
|
|
29
|
-
className: "ttw:
|
|
30
|
-
children:
|
|
31
|
-
className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
|
|
32
|
-
children: b
|
|
33
|
-
}), x ? /* @__PURE__ */ g("p", {
|
|
34
|
-
className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
35
|
-
children: x
|
|
36
|
-
}) : null]
|
|
32
|
+
/* @__PURE__ */ d("div", {
|
|
33
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
34
|
+
children: [/* @__PURE__ */ u("p", {
|
|
35
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
36
|
+
children: m
|
|
37
|
+
}), /* @__PURE__ */ u("p", {
|
|
38
|
+
className: "ttw:text-4xl ttw:font-semibold",
|
|
39
|
+
children: h
|
|
37
40
|
})]
|
|
38
41
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
className: "ttw:
|
|
41
|
-
children:
|
|
42
|
-
className: "ttw:
|
|
43
|
-
children: [/* @__PURE__ */
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
/* @__PURE__ */ u("dl", {
|
|
43
|
+
className: "ttw:flex ttw:flex-col",
|
|
44
|
+
children: g.map((e, t) => /* @__PURE__ */ d("div", {
|
|
45
|
+
className: s("ttw:flex ttw:items-center ttw:gap-4 ttw:py-2.5", t < g.length - 1 && "ttw:border-b ttw:border-border"),
|
|
46
|
+
children: [/* @__PURE__ */ u("dt", {
|
|
47
|
+
className: "ttw:w-32 ttw:shrink-0 ttw:text-sm ttw:text-muted-foreground",
|
|
48
|
+
children: e.label
|
|
49
|
+
}), /* @__PURE__ */ u("dd", {
|
|
50
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
51
|
+
children: e.value
|
|
47
52
|
})]
|
|
48
|
-
}
|
|
49
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
50
|
-
children: [/* @__PURE__ */ g(l, {
|
|
51
|
-
id: I,
|
|
52
|
-
children: F.paymentDate
|
|
53
|
-
}), /* @__PURE__ */ _(u, { children: [/* @__PURE__ */ g(f, {
|
|
54
|
-
asChild: !0,
|
|
55
|
-
children: /* @__PURE__ */ _(t, {
|
|
56
|
-
type: "button",
|
|
57
|
-
variant: "outline",
|
|
58
|
-
className: "ttw:justify-start ttw:gap-2",
|
|
59
|
-
"aria-labelledby": `${I} ${L}`,
|
|
60
|
-
children: [
|
|
61
|
-
/* @__PURE__ */ g(v, { className: "ttw:size-4" }),
|
|
62
|
-
/* @__PURE__ */ g("span", {
|
|
63
|
-
id: L,
|
|
64
|
-
children: w ?? F.paymentDatePlaceholder
|
|
65
|
-
}),
|
|
66
|
-
T ? /* @__PURE__ */ g(e, {
|
|
67
|
-
variant: "secondary",
|
|
68
|
-
children: F.today
|
|
69
|
-
}) : null
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
}), /* @__PURE__ */ g(d, {
|
|
73
|
-
align: "start",
|
|
74
|
-
className: "ttw:w-auto ttw:p-0",
|
|
75
|
-
children: /* @__PURE__ */ g(n, {
|
|
76
|
-
mode: "single",
|
|
77
|
-
selected: C,
|
|
78
|
-
onSelect: O
|
|
79
|
-
})
|
|
80
|
-
})] })]
|
|
81
|
-
})]
|
|
53
|
+
}, e.label))
|
|
82
54
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
className: "ttw:
|
|
85
|
-
children: [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
55
|
+
/* @__PURE__ */ d("section", {
|
|
56
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ u("p", {
|
|
59
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
60
|
+
children: w.payToHeading
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ u("p", {
|
|
63
|
+
className: "ttw:mt-1 ttw:text-xl ttw:font-semibold",
|
|
64
|
+
children: _.name
|
|
65
|
+
}),
|
|
66
|
+
_.email ? /* @__PURE__ */ u("p", {
|
|
67
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
68
|
+
children: _.email
|
|
69
|
+
}) : null,
|
|
70
|
+
_.methodLabel || _.fields.length > 0 ? /* @__PURE__ */ d("div", {
|
|
71
|
+
className: "ttw:mt-4 ttw:border-t ttw:border-border ttw:pt-4",
|
|
72
|
+
children: [_.methodLabel ? /* @__PURE__ */ u("p", {
|
|
73
|
+
className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
|
|
74
|
+
children: _.methodLabel
|
|
75
|
+
}) : null, /* @__PURE__ */ u("dl", {
|
|
76
|
+
className: "ttw:mt-3 ttw:grid ttw:gap-3",
|
|
77
|
+
children: _.fields.map((e) => /* @__PURE__ */ u(c, {
|
|
78
|
+
field: e,
|
|
79
|
+
labels: w
|
|
80
|
+
}, e.label))
|
|
81
|
+
})]
|
|
82
|
+
}) : null
|
|
83
|
+
]
|
|
101
84
|
})
|
|
102
85
|
]
|
|
103
86
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ d(i, {
|
|
105
88
|
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
89
|
+
children: [/* @__PURE__ */ u(e, {
|
|
107
90
|
type: "button",
|
|
108
91
|
variant: "outline",
|
|
109
|
-
onClick:
|
|
110
|
-
children:
|
|
111
|
-
}), /* @__PURE__ */
|
|
92
|
+
onClick: y,
|
|
93
|
+
children: w.backButton
|
|
94
|
+
}), /* @__PURE__ */ u(e, {
|
|
112
95
|
type: "button",
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
onClick: A,
|
|
117
|
-
children: F.confirmButton
|
|
96
|
+
loading: v,
|
|
97
|
+
onClick: x,
|
|
98
|
+
children: w.submitButton
|
|
118
99
|
})]
|
|
119
100
|
})
|
|
120
101
|
]
|
|
@@ -122,4 +103,4 @@ function y({ open: y, amountDue: b, dueDateSuffix: x, paymentAmount: S, selected
|
|
|
122
103
|
});
|
|
123
104
|
}
|
|
124
105
|
//#endregion
|
|
125
|
-
export {
|
|
106
|
+
export { f as ReviewTransactionDialog, f as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useCounterpartQuery as
|
|
1
|
+
import "./index2.js";
|
|
2
|
+
import { useCounterpartQuery as e, useCounterpartsQuery as t, useCreateCounterpartMutation as n, useDeleteCounterpartMutation as r, useUpdateCounterpartMutation as i } from "./index3.js";
|
|
3
3
|
import "./index4.js";
|
|
4
|
-
import { useCounterpartBankAccountsQuery as
|
|
4
|
+
import { useCounterpartBankAccountsQuery as a, useCreateCounterpartBankAccountMutation as o, useDeleteCounterpartBankAccountMutation as s, useMakeCounterpartBankAccountDefaultMutation as c, useUpdateCounterpartBankAccountMutation as l } from "./index5.js";
|
|
5
5
|
import "./index6.js";
|
|
6
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
7
|
-
export {
|
|
6
|
+
import { useCounterpartAddressesForRowsQuery as u, useCounterpartAddressesQuery as d, useCreateCounterpartAddressMutation as f, useUpdateCounterpartAddressMutation as p } from "./index7.js";
|
|
7
|
+
export { u as useCounterpartAddressesForRowsQuery, d as useCounterpartAddressesQuery, a as useCounterpartBankAccountsQuery, e as useCounterpartQuery, t as useCounterpartsQuery, f as useCreateCounterpartAddressMutation, o as useCreateCounterpartBankAccountMutation, n as useCreateCounterpartMutation, s as useDeleteCounterpartBankAccountMutation, r as useDeleteCounterpartMutation, c as useMakeCounterpartBankAccountDefaultMutation, p as useUpdateCounterpartAddressMutation, l as useUpdateCounterpartBankAccountMutation, i as useUpdateCounterpartMutation };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "../../../util/dist/lib/apiErrors.js";
|
|
2
2
|
import { useCounterpartsQuery as e } from "../../data-access/dist/index3.js";
|
|
3
|
-
import {
|
|
4
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
3
|
+
import { useCreateCounterpartBankAccountMutation as t, useUpdateCounterpartBankAccountMutation as n } from "../../data-access/dist/index5.js";
|
|
4
|
+
import { useCounterpartAddressesForRowsQuery as r, useCounterpartAddressesQuery as i } from "../../data-access/dist/index7.js";
|
|
5
5
|
import "../../data-access/dist/index.js";
|
|
6
|
-
import
|
|
7
|
-
import { CounterpartFormFields as
|
|
8
|
-
import { BankAccountFormSheet as
|
|
9
|
-
import { AddressFormSheet as
|
|
10
|
-
import { ConfirmDeleteDialog as
|
|
6
|
+
import "../../ui/dist/index5.js";
|
|
7
|
+
import { CounterpartFormFields as a, CounterpartFormSheet as o, useFocusFirstInvalidField as s } from "../../ui/dist/index9.js";
|
|
8
|
+
import { BankAccountFormSheet as c } from "../../ui/dist/index11.js";
|
|
9
|
+
import { AddressFormSheet as l } from "../../ui/dist/index13.js";
|
|
10
|
+
import { ConfirmDeleteDialog as u } from "../../ui/dist/index14.js";
|
|
11
11
|
import "../../ui/dist/index.js";
|
|
12
|
-
import { COUNTERPART_MESSAGE_LABELS_EN as
|
|
13
|
-
import { buildAnalyticsMap as
|
|
14
|
-
import { useAddressForm as
|
|
15
|
-
import { useCounterpartDetails as
|
|
16
|
-
import { usePayableAchInstructions as
|
|
17
|
-
import { useCounterpartForm as
|
|
12
|
+
import { COUNTERPART_MESSAGE_LABELS_EN as d } from "./lib/labels.js";
|
|
13
|
+
import { buildAnalyticsMap as f, buildCounterpartRows as p, counterpartFormBankAccountToCreatePayload as m, counterpartFormBankAccountToUpdatePayload as h, formatCounterpartDate as g, formatMoney as _, getAchInstructions as v, getCounterpartEmail as y, getCounterpartName as b, getPayableAchInstructions as x, hasSelectedText as S, isAchCompatibleBankAccount as C, resolveCounterpartBankAccountWrite as w, validateAchFormValues as T } from "./lib/helpers.js";
|
|
14
|
+
import { useAddressForm as E } from "./lib/useAddressForm.js";
|
|
15
|
+
import { useCounterpartDetails as D } from "./lib/useCounterpartDetails.js";
|
|
16
|
+
import { usePayableAchInstructions as O } from "./lib/usePayableAchInstructions.js";
|
|
17
|
+
import { useCounterpartForm as k } from "./lib/useCounterpartForm.js";
|
|
18
18
|
import "./lib/useCounterpartSelector.js";
|
|
19
|
-
import { CounterpartSelector as
|
|
20
|
-
import { useDeleteController as
|
|
19
|
+
import { CounterpartSelector as A } from "./lib/CounterpartSelector.js";
|
|
20
|
+
import { useDeleteController as j } from "./lib/useDeleteController.js";
|
|
21
21
|
import "./lib/useSubEntityForm.js";
|
|
22
|
-
import { useBankAccountForm as
|
|
23
|
-
export {
|
|
22
|
+
import { useBankAccountForm as M } from "./lib/subEntityForms.js";
|
|
23
|
+
export { l as AddressFormSheet, c as BankAccountFormSheet, d as COUNTERPART_MESSAGE_LABELS_EN, u as ConfirmDeleteDialog, a as CounterpartFormFields, o as CounterpartFormSheet, A as CounterpartSelector, f as buildAnalyticsMap, p as buildCounterpartRows, m as counterpartFormBankAccountToCreatePayload, h as counterpartFormBankAccountToUpdatePayload, g as formatCounterpartDate, _ as formatMoney, v as getAchInstructions, y as getCounterpartEmail, b as getCounterpartName, x as getPayableAchInstructions, S as hasSelectedText, C as isAchCompatibleBankAccount, w as resolveCounterpartBankAccountWrite, E as useAddressForm, M as useBankAccountForm, r as useCounterpartAddressesForRowsQuery, i as useCounterpartAddressesQuery, D as useCounterpartDetails, k as useCounterpartForm, e as useCounterpartsQuery, t as useCreateCounterpartBankAccountMutation, j as useDeleteController, s as useFocusFirstInvalidField, O as usePayableAchInstructions, n as useUpdateCounterpartBankAccountMutation, T as validateAchFormValues };
|
|
@@ -26,10 +26,14 @@ function o({ selectedId: o, enabled: s = !0 }) {
|
|
|
26
26
|
counterpart: u,
|
|
27
27
|
isOrganization: d,
|
|
28
28
|
isLoading: l.isLoading,
|
|
29
|
+
isFetching: l.isFetching,
|
|
29
30
|
isBankAccountsLoading: m.isLoading,
|
|
30
31
|
isBankAccountsFetching: m.isFetching,
|
|
31
32
|
isError: l.isError,
|
|
32
33
|
isBankAccountsError: m.isError,
|
|
34
|
+
isAddressesLoading: p.isLoading,
|
|
35
|
+
isAddressesFetching: p.isFetching,
|
|
36
|
+
isAddressesError: p.isError,
|
|
33
37
|
primaryAddress: g,
|
|
34
38
|
detailsView: _,
|
|
35
39
|
bankAccounts: m.data?.data,
|