@tesouro/embedded-components-react 0.7.21 → 0.7.24
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/fixtures/index.d.ts +5 -1
- package/dist/index.d.ts +9 -1
- package/dist/lib/CounterpartsWidget.d.ts +9 -1
- package/dist/lib/CounterpartsWidgetPublic.d.ts +9 -1
- package/dist/lib/CustomersWidget.d.ts +9 -1
- package/dist/lib/ReceivablesWidget.d.ts +9 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +50 -51
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +72 -128
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +183 -38
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +503 -193
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +57 -55
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +114 -102
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +534 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +7 -179
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +179 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index14.js +4 -28
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +28 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index16.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index7.js +140 -55
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +51 -539
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +584 -549
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +0 -520
|
@@ -8,57 +8,58 @@ import "../../../../../shared/ui/dist/index.js";
|
|
|
8
8
|
import { useAnalyticsTrack as r } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
9
9
|
import { WidgetProvider as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
10
10
|
import "../../../../../shared/feature/dist/index.js";
|
|
11
|
-
import { CounterpartFormSheet as a } from "../../../../../shared/counterpart-management/ui/dist/
|
|
11
|
+
import { CounterpartFormSheet as a } from "../../../../../shared/counterpart-management/ui/dist/index10.js";
|
|
12
|
+
import { buildCounterpartFormTaxIdField as o } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
12
13
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
13
|
-
import { CounterpartDetailsContainer as
|
|
14
|
+
import { CounterpartDetailsContainer as s } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js";
|
|
14
15
|
import "../../../../../counterparts-widget/feature/dist/index.js";
|
|
15
|
-
import { ReceivablesWidgetAnalyticsEvent as
|
|
16
|
-
import { PAGE_SIZE_OPTIONS as
|
|
17
|
-
import { InvoicesFilterBar as
|
|
18
|
-
import { ReceivableActionsModal as
|
|
19
|
-
import { ReceivableActionDialog as
|
|
20
|
-
import { ReceivableBankAccountSection as
|
|
21
|
-
import { ReceivableBillingSection as
|
|
22
|
-
import { ReceivableDetailsPanel as
|
|
23
|
-
import { ReceivableFormDialog as
|
|
24
|
-
import { ReceivablePaymentDialog as
|
|
25
|
-
import { ReceivablePreview as
|
|
26
|
-
import { ReceivableRecurrenceEmailDialog as
|
|
27
|
-
import { ReceivableRecurrenceSection as
|
|
28
|
-
import { ReceivableRemindersSection as
|
|
29
|
-
import { ReceivablesScreen as
|
|
30
|
-
import { UnsavedInvoiceDialog as
|
|
16
|
+
import { ReceivablesWidgetAnalyticsEvent as c, WIDGET_NAME as l } from "./analytics/events.js";
|
|
17
|
+
import { PAGE_SIZE_OPTIONS as u } from "./constants.js";
|
|
18
|
+
import { InvoicesFilterBar as d } from "../../../../ui/dist/index4.js";
|
|
19
|
+
import { ReceivableActionsModal as f } from "../../../../ui/dist/index9.js";
|
|
20
|
+
import { ReceivableActionDialog as p } from "../../../../ui/dist/index15.js";
|
|
21
|
+
import { ReceivableBankAccountSection as m } from "../../../../ui/dist/index16.js";
|
|
22
|
+
import { ReceivableBillingSection as h } from "../../../../ui/dist/index21.js";
|
|
23
|
+
import { ReceivableDetailsPanel as g } from "../../../../ui/dist/index40.js";
|
|
24
|
+
import { ReceivableFormDialog as _ } from "../../../../ui/dist/index44.js";
|
|
25
|
+
import { ReceivablePaymentDialog as v } from "../../../../ui/dist/index45.js";
|
|
26
|
+
import { ReceivablePreview as y } from "../../../../ui/dist/index49.js";
|
|
27
|
+
import { ReceivableRecurrenceEmailDialog as b } from "../../../../ui/dist/index51.js";
|
|
28
|
+
import { ReceivableRecurrenceSection as x } from "../../../../ui/dist/index53.js";
|
|
29
|
+
import { ReceivableRemindersSection as ee } from "../../../../ui/dist/index55.js";
|
|
30
|
+
import { ReceivablesScreen as te } from "../../../../ui/dist/index57.js";
|
|
31
|
+
import { UnsavedInvoiceDialog as ne } from "../../../../ui/dist/index58.js";
|
|
31
32
|
import "../../../../ui/dist/index.js";
|
|
32
|
-
import { ReceivableAttachmentsSection as
|
|
33
|
-
import { ReceivableCustomerSection as
|
|
34
|
-
import { MeasureUnitsManagerContainer as
|
|
33
|
+
import { ReceivableAttachmentsSection as re } from "./ReceivableAttachmentsSection.js";
|
|
34
|
+
import { ReceivableCustomerSection as ie } from "./ReceivableCustomerSection.js";
|
|
35
|
+
import { MeasureUnitsManagerContainer as S } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
|
|
35
36
|
import { ProductSelector as C } from "../../../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
|
|
36
37
|
import "../../../../../shared/product-catalog/feature/dist/index.js";
|
|
37
38
|
import { useReceivablesWidget as w } from "./useReceivablesWidget.js";
|
|
38
39
|
import { useEffect as T, useId as E } from "react";
|
|
39
40
|
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
40
41
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js
|
|
41
|
-
function A({ auditHistoryLabels: i, bankAttribution:
|
|
42
|
+
function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A, counterpartMessageLabels: j, detailsLabels: M, embeddedBankName: N, filterBarLabels: P, filterLabels: F, formLabels: I, headerStart: L, initialCounterpartId: ae, initialView: R, measureUnitDeleteLabels: z, measureUnitsLabels: B, messageLabels: V, onReceivableCreated: H, onReceivableOpened: U, onTemplateSettingsClick: W, pageSizeOptions: G = u, paymentLabels: K, previewLabels: q, productMessageLabels: J, screenLabels: Y, actionLabels: oe, actionsModalLabels: se }) {
|
|
42
43
|
let X = r();
|
|
43
44
|
T(() => {
|
|
44
|
-
X(
|
|
45
|
+
X(c.Mounted);
|
|
45
46
|
}, [X]);
|
|
46
47
|
let Z = w({
|
|
47
48
|
auditHistoryLabels: i,
|
|
48
49
|
counterpartMessageLabels: j,
|
|
49
50
|
embeddedBankName: N,
|
|
50
51
|
filterLabels: F,
|
|
51
|
-
initialCounterpartId:
|
|
52
|
-
initialView:
|
|
52
|
+
initialCounterpartId: ae,
|
|
53
|
+
initialView: R,
|
|
53
54
|
messageLabels: V,
|
|
54
55
|
onReceivableCreated: H,
|
|
55
56
|
onReceivableOpened: U,
|
|
56
57
|
pageSizeOptions: G,
|
|
57
58
|
screenLabels: Y
|
|
58
|
-
}),
|
|
59
|
+
}), Q = E(), ce = E(), $ = E(), le = E(), ue = E(), de = E();
|
|
59
60
|
return /* @__PURE__ */ k(D, { children: [
|
|
60
61
|
/* @__PURE__ */ O(n, { position: "bottom-left" }),
|
|
61
|
-
/* @__PURE__ */ O(
|
|
62
|
+
/* @__PURE__ */ O(te, {
|
|
62
63
|
rows: Z.table.rows,
|
|
63
64
|
isLoading: Z.isTableLoading,
|
|
64
65
|
isError: Z.isError,
|
|
@@ -74,20 +75,20 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
74
75
|
onPrevPage: Z.table.onPrevPage,
|
|
75
76
|
statusCards: Z.table.statusCards,
|
|
76
77
|
onStatusCardSelect: Z.table.onStatusCardSelect,
|
|
77
|
-
filterBar: /* @__PURE__ */ O(
|
|
78
|
+
filterBar: /* @__PURE__ */ O(d, {
|
|
78
79
|
...Z.table.filterBar,
|
|
79
80
|
labels: P
|
|
80
81
|
}),
|
|
81
82
|
isFiltering: Z.table.isFiltering,
|
|
82
83
|
headerStart: L,
|
|
83
|
-
bankAttribution:
|
|
84
|
+
bankAttribution: l,
|
|
84
85
|
onCreateClick: Z.canWrite ? Z.openCreate : void 0,
|
|
85
86
|
onSettingsClick: Z.canEditSettings ? W : void 0,
|
|
86
87
|
onRowClick: Z.handleRowClick,
|
|
87
88
|
onRetry: Z.onRetry,
|
|
88
89
|
labels: Y
|
|
89
90
|
}),
|
|
90
|
-
/* @__PURE__ */ O(
|
|
91
|
+
/* @__PURE__ */ O(_, {
|
|
91
92
|
open: Z.form.open,
|
|
92
93
|
onRequestClose: Z.form.requestClose,
|
|
93
94
|
mode: Z.form.mode,
|
|
@@ -99,8 +100,8 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
99
100
|
autoFocusLineItemId: Z.form.autoFocusLineItemId,
|
|
100
101
|
lineItemsLoading: Z.form.lineItemsLoading,
|
|
101
102
|
inProgress: Z.form.fieldsDisabled || Z.actionsSuspended,
|
|
102
|
-
customerSection: /* @__PURE__ */ O(
|
|
103
|
-
idPrefix:
|
|
103
|
+
customerSection: /* @__PURE__ */ O(ie, {
|
|
104
|
+
idPrefix: ce,
|
|
104
105
|
customerId: Z.form.values.customerId,
|
|
105
106
|
customer: Z.form.customer,
|
|
106
107
|
customerName: Z.form.values.customerName,
|
|
@@ -144,8 +145,8 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
144
145
|
onAddLineItem: Z.form.addLineItem,
|
|
145
146
|
onRemoveLineItem: Z.form.removeLineItem,
|
|
146
147
|
showDueDateField: Z.form.showDueDateField,
|
|
147
|
-
billingSection: Z.form.showBillingSection && /* @__PURE__ */ O(
|
|
148
|
-
idPrefix:
|
|
148
|
+
billingSection: Z.form.showBillingSection && /* @__PURE__ */ O(h, {
|
|
149
|
+
idPrefix: Q,
|
|
149
150
|
paymentTerms: Z.form.paymentTerms.view,
|
|
150
151
|
paymentTermsError: Z.form.errors.paymentTermsId,
|
|
151
152
|
disabled: Z.form.fieldsDisabled,
|
|
@@ -159,7 +160,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
159
160
|
...Z.form.paymentTerms.calendar,
|
|
160
161
|
onSelect: Z.form.paymentTerms.selectCustomDate
|
|
161
162
|
}),
|
|
162
|
-
recurrenceSection: Z.form.showRecurrenceSection && (Z.form.recurrenceLoading ? /* @__PURE__ */ O(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ O(
|
|
163
|
+
recurrenceSection: Z.form.showRecurrenceSection && (Z.form.recurrenceLoading ? /* @__PURE__ */ O(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ O(x, {
|
|
163
164
|
idPrefix: $,
|
|
164
165
|
view: Z.form.recurrence.view,
|
|
165
166
|
disabled: Z.form.fieldsDisabled,
|
|
@@ -172,7 +173,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
172
173
|
onMaxOccurrencesChange: Z.form.recurrence.changeMaxOccurrences,
|
|
173
174
|
onCreationModeChange: Z.form.recurrence.changeCreationMode,
|
|
174
175
|
onSetUpEmailClick: Z.form.recurrence.setUpEmail,
|
|
175
|
-
emailDialog: /* @__PURE__ */ O(
|
|
176
|
+
emailDialog: /* @__PURE__ */ O(b, {
|
|
176
177
|
idPrefix: $,
|
|
177
178
|
view: Z.form.recurrence.emailView,
|
|
178
179
|
onOpenChange: Z.form.recurrence.changeEmailOpen,
|
|
@@ -182,8 +183,8 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
182
183
|
}),
|
|
183
184
|
labels: I
|
|
184
185
|
})),
|
|
185
|
-
remindersSection: Z.form.reminders.view && /* @__PURE__ */ O(
|
|
186
|
-
idPrefix:
|
|
186
|
+
remindersSection: Z.form.reminders.view && /* @__PURE__ */ O(ee, {
|
|
187
|
+
idPrefix: ue,
|
|
187
188
|
view: Z.form.reminders.view,
|
|
188
189
|
onToggle: Z.form.reminders.toggle,
|
|
189
190
|
onPaymentReminderSelect: Z.form.reminders.selectPaymentReminder,
|
|
@@ -198,8 +199,8 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
198
199
|
}),
|
|
199
200
|
labels: I
|
|
200
201
|
}),
|
|
201
|
-
bankAccountSection: /* @__PURE__ */ O(
|
|
202
|
-
idPrefix:
|
|
202
|
+
bankAccountSection: /* @__PURE__ */ O(m, {
|
|
203
|
+
idPrefix: le,
|
|
203
204
|
view: Z.form.bankAccount.view,
|
|
204
205
|
error: Z.form.errors.bankAccountId,
|
|
205
206
|
disabled: Z.form.fieldsDisabled,
|
|
@@ -210,7 +211,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
210
211
|
onFormCancel: Z.form.bankAccount.cancelAddAccount,
|
|
211
212
|
labels: I
|
|
212
213
|
}),
|
|
213
|
-
attachmentsSection: Z.form.attachmentsView && /* @__PURE__ */ O(
|
|
214
|
+
attachmentsSection: Z.form.attachmentsView && /* @__PURE__ */ O(re, {
|
|
214
215
|
view: Z.form.attachmentsView,
|
|
215
216
|
disabled: Z.form.fieldsDisabled,
|
|
216
217
|
onFilesSelect: Z.form.selectAttachmentFiles,
|
|
@@ -218,7 +219,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
218
219
|
onRemove: Z.form.removeAttachment,
|
|
219
220
|
labels: I
|
|
220
221
|
}),
|
|
221
|
-
preview: /* @__PURE__ */ O(
|
|
222
|
+
preview: /* @__PURE__ */ O(y, {
|
|
222
223
|
view: Z.form.preview,
|
|
223
224
|
labels: q
|
|
224
225
|
}),
|
|
@@ -236,11 +237,11 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
236
237
|
onPrimaryClick: Z.form.selectPrimaryMode,
|
|
237
238
|
labels: I
|
|
238
239
|
}),
|
|
239
|
-
/* @__PURE__ */ O(
|
|
240
|
+
/* @__PURE__ */ O(ne, {
|
|
240
241
|
...Z.form.unsavedPrompt,
|
|
241
242
|
labels: I
|
|
242
243
|
}),
|
|
243
|
-
/* @__PURE__ */ O(
|
|
244
|
+
/* @__PURE__ */ O(g, {
|
|
244
245
|
open: Z.detailsOpen,
|
|
245
246
|
onOpenChange: (e) => {
|
|
246
247
|
e || Z.closeDetails();
|
|
@@ -255,13 +256,13 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
255
256
|
disabledActions: Z.actions.pendingActions,
|
|
256
257
|
labels: M
|
|
257
258
|
}, Z.detailsPanelKey),
|
|
258
|
-
/* @__PURE__ */ O(
|
|
259
|
+
/* @__PURE__ */ O(s, {
|
|
259
260
|
counterpartId: Z.customerDetailsId,
|
|
260
261
|
counterpartType: "customer",
|
|
261
262
|
onClose: Z.closeCustomerDetails,
|
|
262
263
|
...Z.customerDetailsActions
|
|
263
264
|
}),
|
|
264
|
-
/* @__PURE__ */ O(
|
|
265
|
+
/* @__PURE__ */ O(v, {
|
|
265
266
|
open: Z.actions.payment.isOpen,
|
|
266
267
|
onOpenChange: (e) => {
|
|
267
268
|
e || Z.actions.payment.close();
|
|
@@ -281,7 +282,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
281
282
|
onCancel: Z.actions.payment.close,
|
|
282
283
|
labels: K
|
|
283
284
|
}),
|
|
284
|
-
Z.actions.actionDialog && /* @__PURE__ */ O(
|
|
285
|
+
Z.actions.actionDialog && /* @__PURE__ */ O(p, {
|
|
285
286
|
open: !!Z.actions.actionTarget,
|
|
286
287
|
onOpenChange: (e) => {
|
|
287
288
|
e || Z.actions.closeAction();
|
|
@@ -297,10 +298,10 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
297
298
|
onCommentChange: Z.actions.setActionComment,
|
|
298
299
|
onConfirm: Z.actions.confirmAction,
|
|
299
300
|
onCancel: Z.actions.closeAction,
|
|
300
|
-
labels:
|
|
301
|
+
labels: oe
|
|
301
302
|
}),
|
|
302
|
-
/* @__PURE__ */ O(
|
|
303
|
-
idPrefix:
|
|
303
|
+
/* @__PURE__ */ O(f, {
|
|
304
|
+
idPrefix: de,
|
|
304
305
|
open: Z.actionsModal.isOpen,
|
|
305
306
|
view: Z.actionsModal.view,
|
|
306
307
|
onSkip: Z.actionsModal.skip,
|
|
@@ -311,7 +312,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
311
312
|
onToggleAll: Z.actionsModal.toggleAll,
|
|
312
313
|
onAllSelectedChange: Z.actionsModal.setAllSelected,
|
|
313
314
|
onSaveItems: Z.actionsModal.saveItems,
|
|
314
|
-
labels:
|
|
315
|
+
labels: se
|
|
315
316
|
}),
|
|
316
317
|
/* @__PURE__ */ O(a, {
|
|
317
318
|
open: Z.form.counterpartView === "create",
|
|
@@ -322,6 +323,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
322
323
|
values: Z.form.counterpartForm.values,
|
|
323
324
|
errors: Z.form.counterpartForm.errors,
|
|
324
325
|
stateOptions: Z.form.stateOptions,
|
|
326
|
+
taxIdField: o(Z.form.counterpartForm.values.entityType, "customer", A),
|
|
325
327
|
inProgress: Z.form.counterpartForm.isSubmitting || Z.actionsSuspended,
|
|
326
328
|
onChange: (e) => Z.form.counterpartForm.setValues((t) => ({
|
|
327
329
|
...t,
|
|
@@ -338,7 +340,7 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
338
340
|
onCancel: Z.form.counterpartForm.close,
|
|
339
341
|
labels: A
|
|
340
342
|
}),
|
|
341
|
-
/* @__PURE__ */ O(
|
|
343
|
+
/* @__PURE__ */ O(S, {
|
|
342
344
|
open: Z.measureUnitsOpen,
|
|
343
345
|
onClose: Z.closeMeasureUnits,
|
|
344
346
|
suspended: Z.actionsSuspended,
|
|
@@ -348,9 +350,9 @@ function A({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: A
|
|
|
348
350
|
})
|
|
349
351
|
] });
|
|
350
352
|
}
|
|
351
|
-
function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework:
|
|
353
|
+
function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
|
|
352
354
|
return /* @__PURE__ */ O(i, {
|
|
353
|
-
widgetName:
|
|
355
|
+
widgetName: l,
|
|
354
356
|
baseUrl: e,
|
|
355
357
|
widgetToken: t,
|
|
356
358
|
organizationId: n,
|
|
@@ -358,7 +360,7 @@ function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
358
360
|
gatewayRouting: a,
|
|
359
361
|
linkComponent: o,
|
|
360
362
|
implementation: s,
|
|
361
|
-
uiFramework:
|
|
363
|
+
uiFramework: c,
|
|
362
364
|
errorFallback: u,
|
|
363
365
|
onError: d,
|
|
364
366
|
analytics: f,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "../../../util/dist/lib/apiErrors.js";
|
|
2
2
|
import "../../ui/dist/index5.js";
|
|
3
|
-
import { CounterpartFormFields as e, CounterpartFormSheet as t, useFocusFirstInvalidField as n } from "../../ui/dist/
|
|
4
|
-
import { BankAccountFormSheet as r } from "../../ui/dist/
|
|
5
|
-
import { ConfirmDeleteDialog as i } from "../../ui/dist/
|
|
3
|
+
import { CounterpartFormFields as e, CounterpartFormSheet as t, useFocusFirstInvalidField as n } from "../../ui/dist/index10.js";
|
|
4
|
+
import { BankAccountFormSheet as r } from "../../ui/dist/index12.js";
|
|
5
|
+
import { ConfirmDeleteDialog as i } from "../../ui/dist/index15.js";
|
|
6
6
|
import "../../ui/dist/index.js";
|
|
7
7
|
import { COUNTERPART_MESSAGE_LABELS_EN as a } from "./lib/labels.js";
|
|
8
|
-
import { addressResponseToFormValues as o, buildAnalyticsMap as s,
|
|
9
|
-
import { useCounterpartQuery as
|
|
10
|
-
import { useCreateCounterpartBankAccountMutation as
|
|
11
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
8
|
+
import { addressResponseToFormValues as o, buildAnalyticsMap as s, buildCounterpartFormTaxIdField as c, buildCounterpartRows as l, counterpartFormBankAccountToCreatePayload as u, counterpartFormBankAccountToUpdatePayload as d, counterpartToFormValues as f, emptyCounterpartFormValues as p, formatMoney as m, getAchInstructions as h, getCounterpartEmail as g, getCounterpartName as _, getPayableAchInstructions as v, hasCounterpartFormErrors as y, hasSelectedText as b, isAchCompatibleBankAccount as x, resolveCounterpartBankAccountWrite as S, validateAchFormValues as C, validateCounterpartForm as w } from "./lib/helpers.js";
|
|
9
|
+
import { useCounterpartQuery as T, useCounterpartsByIdsQuery as E, useCounterpartsQuery as D, useCreateCounterpartMutation as O } from "../../data-access/dist/index3.js";
|
|
10
|
+
import { useCreateCounterpartBankAccountMutation as k, useUpdateCounterpartBankAccountMutation as A } from "../../data-access/dist/index5.js";
|
|
11
|
+
import { useCounterpartAddressesForRowsQuery as j, useCounterpartAddressesQuery as M } from "../../data-access/dist/index7.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
|
-
import { useAddressForm as
|
|
14
|
-
import { useCounterpartDetails as
|
|
15
|
-
import { usePayableAchInstructions as
|
|
16
|
-
import { useCounterpartForm as
|
|
13
|
+
import { useAddressForm as N } from "./lib/useAddressForm.js";
|
|
14
|
+
import { useCounterpartDetails as P } from "./lib/useCounterpartDetails.js";
|
|
15
|
+
import { usePayableAchInstructions as F } from "./lib/usePayableAchInstructions.js";
|
|
16
|
+
import { useCounterpartForm as I } from "./lib/useCounterpartForm.js";
|
|
17
17
|
import "./lib/useCounterpartSelector.js";
|
|
18
18
|
import "./lib/CounterpartSelector.js";
|
|
19
|
-
import { useDeleteController as
|
|
19
|
+
import { useDeleteController as L } from "./lib/useDeleteController.js";
|
|
20
20
|
import "./lib/useSubEntityForm.js";
|
|
21
|
-
import { useBankAccountForm as
|
|
22
|
-
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet, o as addressResponseToFormValues, s as buildAnalyticsMap, c as
|
|
21
|
+
import { useBankAccountForm as R } from "./lib/subEntityForms.js";
|
|
22
|
+
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet, o as addressResponseToFormValues, s as buildAnalyticsMap, c as buildCounterpartFormTaxIdField, l as buildCounterpartRows, u as counterpartFormBankAccountToCreatePayload, d as counterpartFormBankAccountToUpdatePayload, f as counterpartToFormValues, p as emptyCounterpartFormValues, m as formatMoney, h as getAchInstructions, g as getCounterpartEmail, _ as getCounterpartName, v as getPayableAchInstructions, y as hasCounterpartFormErrors, b as hasSelectedText, x as isAchCompatibleBankAccount, S as resolveCounterpartBankAccountWrite, N as useAddressForm, R as useBankAccountForm, j as useCounterpartAddressesForRowsQuery, M as useCounterpartAddressesQuery, P as useCounterpartDetails, I as useCounterpartForm, T as useCounterpartQuery, E as useCounterpartsByIdsQuery, D as useCounterpartsQuery, k as useCreateCounterpartBankAccountMutation, O as useCreateCounterpartMutation, L as useDeleteController, n as useFocusFirstInvalidField, F as usePayableAchInstructions, A as useUpdateCounterpartBankAccountMutation, C as validateAchFormValues, w as validateCounterpartForm };
|