@tesouro/embedded-components-react 0.5.28 → 0.5.29
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 +12 -0
- 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 +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/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
|
@@ -2,130 +2,48 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import { getStateOptions as
|
|
7
|
-
import { AchFieldGroup as
|
|
8
|
-
import { CounterpartFormFields as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
5
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { getStateOptions as t } from "../../../shared/util/dist/lib/usStates.js";
|
|
7
|
+
import { AchFieldGroup as n } from "../../../shared/counterpart-management/ui/dist/index5.js";
|
|
8
|
+
import { CounterpartFormFields as r, useFocusFirstInvalidField as i } from "../../../shared/counterpart-management/ui/dist/index9.js";
|
|
9
|
+
import "../../../shared/counterpart-management/ui/dist/index.js";
|
|
10
|
+
import { VendorSearchCombobox as a } from "../../ui/dist/index43.js";
|
|
11
|
+
import "../../ui/dist/index.js";
|
|
11
12
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
12
|
-
import { VENDOR_INLINE_FORM_LABELS_EN as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { VENDOR_INLINE_FORM_LABELS_EN as o } from "./index48.js";
|
|
14
|
+
import { useMemo as s } from "react";
|
|
15
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
16
|
+
import { Plus as u } from "lucide-react";
|
|
16
17
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [V, M]);
|
|
25
|
-
let G = h(() => s(), []), K = g(F), q = g(!1), J = d({
|
|
26
|
-
view: F,
|
|
27
|
-
setView: I,
|
|
28
|
-
selectedId: L,
|
|
29
|
-
setSelectedId: R,
|
|
30
|
-
messages: u,
|
|
31
|
-
counterpartType: "vendor",
|
|
32
|
-
counterpart: C,
|
|
33
|
-
primaryAddress: w,
|
|
34
|
-
bankAccounts: T,
|
|
35
|
-
isBankAccountsLoading: E,
|
|
36
|
-
isBankAccountsError: D
|
|
37
|
-
}), { openCreate: Y, openEdit: X, setValues: Z, expandAddress: Q } = J, re = l(J.errors);
|
|
38
|
-
m(() => {
|
|
39
|
-
S === "edit" ? X() : Y();
|
|
40
|
-
}, [
|
|
41
|
-
S,
|
|
42
|
-
Y,
|
|
43
|
-
X
|
|
44
|
-
]), m(() => {
|
|
45
|
-
K.current !== "none" && F === "none" && L && A(L), K.current = F;
|
|
46
|
-
}, [
|
|
47
|
-
F,
|
|
48
|
-
L,
|
|
49
|
-
A
|
|
50
|
-
]), m(() => {
|
|
51
|
-
S !== "create" || q.current || (q.current = !0, Z((e) => ({
|
|
52
|
-
...e,
|
|
53
|
-
entityType: "organization",
|
|
54
|
-
legalName: O?.trim() || k?.legalName || e.legalName,
|
|
55
|
-
email: k?.email || e.email,
|
|
56
|
-
phone: k?.phone || e.phone,
|
|
57
|
-
address: k?.address ?? e.address
|
|
58
|
-
})), k?.address && Object.values(k.address).some(Boolean) && Q());
|
|
59
|
-
}, [
|
|
60
|
-
S,
|
|
61
|
-
O,
|
|
62
|
-
k,
|
|
63
|
-
Z,
|
|
64
|
-
Q
|
|
65
|
-
]), m(() => {
|
|
66
|
-
S === "edit" && (J.values.bankAccount.routingNumber || J.values.bankAccount.accountNumber) && B(!0);
|
|
67
|
-
}, [
|
|
68
|
-
S,
|
|
69
|
-
J.values.bankAccount.accountNumber,
|
|
70
|
-
J.values.bankAccount.routingNumber
|
|
71
|
-
]), m(() => {
|
|
72
|
-
J.sectionsToExpand.bankAccount && B(!0);
|
|
73
|
-
}, [J.sectionsToExpand.bankAccount]);
|
|
74
|
-
let $ = p(() => {
|
|
75
|
-
if (V) {
|
|
76
|
-
W(!0);
|
|
77
|
-
return;
|
|
18
|
+
function d({ mode: d, values: f, errors: p, onChange: m, onAddressChange: h, sectionsToExpand: g, onAddressExpand: _, onCancel: v, paymentInstructions: y, search: b, labels: x }) {
|
|
19
|
+
let S = {
|
|
20
|
+
...o,
|
|
21
|
+
...x,
|
|
22
|
+
ach: {
|
|
23
|
+
...o.ach,
|
|
24
|
+
...x?.ach
|
|
78
25
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
...t,
|
|
83
|
-
...e,
|
|
84
|
-
firstName: t.firstName || t.legalName,
|
|
85
|
-
legalName: t.legalName
|
|
86
|
-
} : e.entityType === "organization" && t.entityType !== "organization" ? {
|
|
87
|
-
...t,
|
|
88
|
-
...e,
|
|
89
|
-
legalName: t.legalName || [t.firstName, t.lastName].filter(Boolean).join(" ")
|
|
90
|
-
} : {
|
|
91
|
-
...t,
|
|
92
|
-
...e
|
|
93
|
-
});
|
|
94
|
-
}, [Z]);
|
|
95
|
-
return /* @__PURE__ */ y("div", {
|
|
96
|
-
ref: re,
|
|
26
|
+
}, C = s(() => t(), []), w = i(p ?? {});
|
|
27
|
+
return /* @__PURE__ */ l("div", {
|
|
28
|
+
ref: w,
|
|
97
29
|
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
98
30
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
className: "ttw:
|
|
101
|
-
children:
|
|
102
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
103
|
-
children: S === "edit" ? P.editTitle : P.createTitle
|
|
104
|
-
}), /* @__PURE__ */ v(o, {
|
|
105
|
-
type: "button",
|
|
106
|
-
variant: "ghost",
|
|
107
|
-
size: "icon",
|
|
108
|
-
"aria-label": P.close,
|
|
109
|
-
onClick: $,
|
|
110
|
-
children: /* @__PURE__ */ v(x, { className: "ttw:size-4" })
|
|
111
|
-
})]
|
|
31
|
+
/* @__PURE__ */ c("p", {
|
|
32
|
+
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
33
|
+
children: d === "edit" ? S.editTitle : S.createTitle
|
|
112
34
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
35
|
+
d === "edit" && b ? /* @__PURE__ */ c(a, {
|
|
36
|
+
...b,
|
|
37
|
+
labels: { fieldLabel: S.switchVendorFieldLabel }
|
|
38
|
+
}) : null,
|
|
39
|
+
/* @__PURE__ */ c(r, {
|
|
40
|
+
mode: d,
|
|
115
41
|
counterpartMode: "vendor",
|
|
116
|
-
values:
|
|
117
|
-
errors:
|
|
118
|
-
stateOptions:
|
|
119
|
-
onChange:
|
|
120
|
-
onAddressChange:
|
|
121
|
-
H(!0), Z((t) => ({
|
|
122
|
-
...t,
|
|
123
|
-
address: {
|
|
124
|
-
...t.address,
|
|
125
|
-
...e
|
|
126
|
-
}
|
|
127
|
-
}));
|
|
128
|
-
},
|
|
42
|
+
values: f,
|
|
43
|
+
errors: p,
|
|
44
|
+
stateOptions: C,
|
|
45
|
+
onChange: m,
|
|
46
|
+
onAddressChange: h,
|
|
129
47
|
sections: {
|
|
130
48
|
entityType: !0,
|
|
131
49
|
profileHeading: !1,
|
|
@@ -134,103 +52,46 @@ function S({ mode: S, counterpart: C, primaryAddress: w, bankAccounts: T, isBank
|
|
|
134
52
|
address: "collapsible",
|
|
135
53
|
bankAccount: !1
|
|
136
54
|
},
|
|
137
|
-
sectionsToExpand:
|
|
138
|
-
onAddressExpand:
|
|
139
|
-
labels: { businessNameLabel:
|
|
55
|
+
sectionsToExpand: g,
|
|
56
|
+
onAddressExpand: _,
|
|
57
|
+
labels: { businessNameLabel: S.nameLabel }
|
|
140
58
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
className: "ttw:flex ttw:flex-col ttw:gap-
|
|
143
|
-
children: [/* @__PURE__ */
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
})
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
className: "ttw:flex ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:p-3",
|
|
153
|
-
children: [/* @__PURE__ */ v("span", {
|
|
154
|
-
className: "ttw:flex ttw:size-8 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md ttw:bg-primary",
|
|
155
|
-
children: /* @__PURE__ */ v(b, {
|
|
156
|
-
"aria-hidden": !0,
|
|
157
|
-
className: "ttw:size-4 ttw:text-white"
|
|
158
|
-
})
|
|
159
|
-
}), /* @__PURE__ */ y("div", {
|
|
160
|
-
className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:gap-3",
|
|
161
|
-
children: [/* @__PURE__ */ y("div", {
|
|
162
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
163
|
-
children: [/* @__PURE__ */ v("p", {
|
|
164
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
165
|
-
children: P.achTitle
|
|
166
|
-
}), /* @__PURE__ */ v("p", {
|
|
167
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
168
|
-
children: P.achDescription
|
|
169
|
-
})]
|
|
170
|
-
}), z ? /* @__PURE__ */ y(te, { children: [/* @__PURE__ */ v(ee, {
|
|
171
|
-
idPrefix: "vendor-inline-ach",
|
|
172
|
-
values: J.values.bankAccount,
|
|
173
|
-
errors: J.errors?.bankAccount,
|
|
174
|
-
onChange: (e) => {
|
|
175
|
-
H(!0), Z((t) => ({
|
|
176
|
-
...t,
|
|
177
|
-
bankAccount: {
|
|
178
|
-
...t.bankAccount,
|
|
179
|
-
...e
|
|
180
|
-
}
|
|
181
|
-
}));
|
|
182
|
-
},
|
|
183
|
-
labels: {
|
|
184
|
-
accountHolderName: P.accountHolderNameLabel,
|
|
185
|
-
routingNumber: P.routingNumberLabel,
|
|
186
|
-
accountNumber: P.accountNumberLabel
|
|
187
|
-
}
|
|
188
|
-
}), /* @__PURE__ */ v("p", {
|
|
189
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
190
|
-
children: P.achHelp
|
|
191
|
-
})] }) : /* @__PURE__ */ y(o, {
|
|
59
|
+
y ? y.isOpen ? /* @__PURE__ */ l("div", {
|
|
60
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
61
|
+
children: [/* @__PURE__ */ c(n, {
|
|
62
|
+
idPrefix: "vendor-inline-ach",
|
|
63
|
+
values: y.values,
|
|
64
|
+
errors: y.errors,
|
|
65
|
+
onChange: y.onChange,
|
|
66
|
+
labels: S.ach
|
|
67
|
+
}), /* @__PURE__ */ c("div", {
|
|
68
|
+
className: "ttw:flex ttw:justify-end",
|
|
69
|
+
children: /* @__PURE__ */ c(e, {
|
|
192
70
|
type: "button",
|
|
193
|
-
variant: "
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
})]
|
|
198
|
-
})]
|
|
199
|
-
}),
|
|
200
|
-
/* @__PURE__ */ y("div", {
|
|
201
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
202
|
-
children: [/* @__PURE__ */ v(o, {
|
|
203
|
-
type: "button",
|
|
204
|
-
variant: "outline",
|
|
205
|
-
onClick: $,
|
|
206
|
-
children: P.cancel
|
|
207
|
-
}), /* @__PURE__ */ v(o, {
|
|
208
|
-
type: "button",
|
|
209
|
-
onClick: J.submit,
|
|
210
|
-
loading: J.isSubmitting,
|
|
211
|
-
disabled: J.isSubmitting,
|
|
212
|
-
children: P.save
|
|
71
|
+
variant: "outline",
|
|
72
|
+
onClick: y.onCancel,
|
|
73
|
+
children: S.cancelPaymentInstructions
|
|
74
|
+
})
|
|
213
75
|
})]
|
|
214
|
-
}),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
76
|
+
}) : /* @__PURE__ */ l(e, {
|
|
77
|
+
type: "button",
|
|
78
|
+
variant: "link",
|
|
79
|
+
className: "ttw:w-fit ttw:px-0",
|
|
80
|
+
onClick: y.onOpen,
|
|
81
|
+
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), S.addPaymentInstructions]
|
|
82
|
+
}) : null,
|
|
83
|
+
/* @__PURE__ */ c("div", {
|
|
84
|
+
className: "ttw:flex ttw:justify-end",
|
|
85
|
+
children: /* @__PURE__ */ c(e, {
|
|
219
86
|
type: "button",
|
|
220
87
|
variant: "outline",
|
|
221
|
-
onClick:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
variant: "destructive",
|
|
226
|
-
onClick: () => {
|
|
227
|
-
W(!1), j();
|
|
228
|
-
},
|
|
229
|
-
children: P.discardChangesAction
|
|
230
|
-
})] })] })
|
|
88
|
+
onClick: v,
|
|
89
|
+
"aria-label": S.cancelAriaLabel,
|
|
90
|
+
children: S.cancel
|
|
91
|
+
})
|
|
231
92
|
})
|
|
232
93
|
]
|
|
233
94
|
});
|
|
234
95
|
}
|
|
235
96
|
//#endregion
|
|
236
|
-
export {
|
|
97
|
+
export { d as VendorInlineForm, d as default };
|