@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.
Files changed (112) hide show
  1. package/dist/index.css +12 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
  107. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
  108. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  109. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  110. package/package.json +1 -1
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
  112. 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 { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { getStateOptions as s } from "../../../shared/util/dist/lib/usStates.js";
7
- import { AchFieldGroup as ee } from "../../../shared/counterpart-management/ui/dist/index5.js";
8
- import { CounterpartFormFields as c, useFocusFirstInvalidField as l } from "../../../shared/counterpart-management/ui/dist/index9.js";
9
- import { COUNTERPART_MESSAGE_LABELS_EN as u } from "../../../shared/counterpart-management/feature/dist/lib/labels.js";
10
- import { useCounterpartForm as d } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
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 f } from "./index48.js";
13
- import { useCallback as p, useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
14
- import { Fragment as te, jsx as v, jsxs as y } from "react/jsx-runtime";
15
- import { Landmark as b, Plus as ne, X as x } from "lucide-react";
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 S({ mode: S, counterpart: C, primaryAddress: w, bankAccounts: T, isBankAccountsLoading: E, isBankAccountsError: D, initialName: O, initialValues: k, onSaved: A, onCancel: j, onDirtyChange: M, labels: N }) {
18
- let P = {
19
- ...f,
20
- ...N
21
- }, [F, I] = _("none"), [L, R] = _(C?.id), [z, B] = _(!1), [V, H] = _(!1), [U, W] = _(!1);
22
- m(() => {
23
- M?.(V);
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
- j();
80
- }, [V, j]), ie = p((e) => {
81
- H(!0), Z((t) => e.entityType === "individual" && t.entityType !== "individual" ? {
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__ */ y("div", {
100
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-2",
101
- children: [/* @__PURE__ */ v("p", {
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__ */ v(c, {
114
- mode: S,
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: J.values,
117
- errors: J.errors,
118
- stateOptions: G,
119
- onChange: ie,
120
- onAddressChange: (e) => {
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: J.sectionsToExpand,
138
- onAddressExpand: J.expandAddress,
139
- labels: { businessNameLabel: P.nameLabel }
55
+ sectionsToExpand: g,
56
+ onAddressExpand: _,
57
+ labels: { businessNameLabel: S.nameLabel }
140
58
  }),
141
- /* @__PURE__ */ y("div", {
142
- className: "ttw:flex ttw:flex-col ttw:gap-1",
143
- children: [/* @__PURE__ */ v("p", {
144
- className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
145
- children: P.paymentMethodsHeading
146
- }), /* @__PURE__ */ v("p", {
147
- className: "ttw:text-sm ttw:text-muted-foreground",
148
- children: P.paymentMethodsDescription
149
- })]
150
- }),
151
- /* @__PURE__ */ y("div", {
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: "link",
194
- className: "ttw:w-fit ttw:px-0",
195
- onClick: () => B(!0),
196
- children: [/* @__PURE__ */ v(ne, { className: "ttw:size-4" }), P.addBankAccount]
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
- /* @__PURE__ */ v(e, {
216
- open: U,
217
- onOpenChange: W,
218
- children: /* @__PURE__ */ y(t, { children: [/* @__PURE__ */ y(i, { children: [/* @__PURE__ */ v(a, { children: P.discardConfirmTitle }), /* @__PURE__ */ v(n, { children: P.discardConfirmDescription })] }), /* @__PURE__ */ y(r, { children: [/* @__PURE__ */ v(o, {
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: () => W(!1),
222
- children: P.keepEditingAction
223
- }), /* @__PURE__ */ v(o, {
224
- type: "button",
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 { S as VendorInlineForm, S as default };
97
+ export { d as VendorInlineForm, d as default };