@tesouro/embedded-components-react 0.7.22 → 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.
Files changed (32) hide show
  1. package/dist/index.d.ts +9 -1
  2. package/dist/lib/CounterpartsWidget.d.ts +9 -1
  3. package/dist/lib/CounterpartsWidgetPublic.d.ts +9 -1
  4. package/dist/lib/CustomersWidget.d.ts +9 -1
  5. package/dist/lib/ReceivablesWidget.d.ts +9 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +50 -51
  9. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +4 -2
  10. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +72 -128
  13. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +183 -38
  14. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +503 -193
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +57 -55
  16. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +14 -14
  17. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +114 -102
  18. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +12 -11
  19. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +534 -7
  20. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +7 -179
  21. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +179 -6
  22. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +3 -1
  23. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index14.js +4 -28
  24. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +28 -4
  25. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index16.js +4 -0
  26. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -2
  27. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index7.js +140 -55
  28. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +53 -47
  29. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +51 -539
  30. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  31. package/package.json +1 -1
  32. 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/index9.js";
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 o } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js";
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 s, WIDGET_NAME as c } from "./analytics/events.js";
16
- import { PAGE_SIZE_OPTIONS as l } from "./constants.js";
17
- import { InvoicesFilterBar as u } from "../../../../ui/dist/index4.js";
18
- import { ReceivableActionsModal as d } from "../../../../ui/dist/index9.js";
19
- import { ReceivableActionDialog as f } from "../../../../ui/dist/index15.js";
20
- import { ReceivableBankAccountSection as p } from "../../../../ui/dist/index16.js";
21
- import { ReceivableBillingSection as m } from "../../../../ui/dist/index21.js";
22
- import { ReceivableDetailsPanel as h } from "../../../../ui/dist/index40.js";
23
- import { ReceivableFormDialog as g } from "../../../../ui/dist/index44.js";
24
- import { ReceivablePaymentDialog as _ } from "../../../../ui/dist/index45.js";
25
- import { ReceivablePreview as v } from "../../../../ui/dist/index49.js";
26
- import { ReceivableRecurrenceEmailDialog as y } from "../../../../ui/dist/index51.js";
27
- import { ReceivableRecurrenceSection as b } from "../../../../ui/dist/index53.js";
28
- import { ReceivableRemindersSection as x } from "../../../../ui/dist/index55.js";
29
- import { ReceivablesScreen as S } from "../../../../ui/dist/index57.js";
30
- import { UnsavedInvoiceDialog as ee } from "../../../../ui/dist/index58.js";
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 te } from "./ReceivableAttachmentsSection.js";
33
- import { ReceivableCustomerSection as ne } from "./ReceivableCustomerSection.js";
34
- import { MeasureUnitsManagerContainer as re } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
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: c, counterpartFormLabels: A, counterpartMessageLabels: j, detailsLabels: M, embeddedBankName: N, filterBarLabels: P, filterLabels: F, formLabels: I, headerStart: L, initialCounterpartId: R, initialView: ie, measureUnitDeleteLabels: z, measureUnitsLabels: B, messageLabels: V, onReceivableCreated: H, onReceivableOpened: U, onTemplateSettingsClick: W, pageSizeOptions: G = l, paymentLabels: K, previewLabels: q, productMessageLabels: J, screenLabels: Y, actionLabels: ae, actionsModalLabels: oe }) {
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(s.Mounted);
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: R,
52
- initialView: ie,
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
- }), se = E(), Q = E(), $ = E(), ce = E(), le = E(), ue = E();
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(S, {
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(u, {
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: c,
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(g, {
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(ne, {
103
- idPrefix: Q,
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(m, {
148
- idPrefix: se,
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(b, {
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(y, {
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(x, {
186
- idPrefix: le,
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(p, {
202
- idPrefix: ce,
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(te, {
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(v, {
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(ee, {
240
+ /* @__PURE__ */ O(ne, {
240
241
  ...Z.form.unsavedPrompt,
241
242
  labels: I
242
243
  }),
243
- /* @__PURE__ */ O(h, {
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(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(f, {
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: ae
301
+ labels: oe
301
302
  }),
302
- /* @__PURE__ */ O(d, {
303
- idPrefix: ue,
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: oe
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(re, {
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: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
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: c,
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: l,
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/index9.js";
4
- import { BankAccountFormSheet as r } from "../../ui/dist/index11.js";
5
- import { ConfirmDeleteDialog as i } from "../../ui/dist/index14.js";
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, buildCounterpartRows as c, counterpartFormBankAccountToCreatePayload as l, counterpartFormBankAccountToUpdatePayload as u, counterpartToFormValues as d, emptyCounterpartFormValues as f, formatMoney as p, getAchInstructions as m, getCounterpartEmail as h, getCounterpartName as g, getPayableAchInstructions as _, hasCounterpartFormErrors as v, hasSelectedText as y, isAchCompatibleBankAccount as b, resolveCounterpartBankAccountWrite as x, validateAchFormValues as S, validateCounterpartForm as C } from "./lib/helpers.js";
9
- import { useCounterpartQuery as w, useCounterpartsByIdsQuery as T, useCounterpartsQuery as E, useCreateCounterpartMutation as D } from "../../data-access/dist/index3.js";
10
- import { useCreateCounterpartBankAccountMutation as O, useUpdateCounterpartBankAccountMutation as k } from "../../data-access/dist/index5.js";
11
- import { useCounterpartAddressesForRowsQuery as A, useCounterpartAddressesQuery as j } from "../../data-access/dist/index7.js";
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 M } from "./lib/useAddressForm.js";
14
- import { useCounterpartDetails as N } from "./lib/useCounterpartDetails.js";
15
- import { usePayableAchInstructions as P } from "./lib/usePayableAchInstructions.js";
16
- import { useCounterpartForm as F } from "./lib/useCounterpartForm.js";
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 I } from "./lib/useDeleteController.js";
19
+ import { useDeleteController as L } from "./lib/useDeleteController.js";
20
20
  import "./lib/useSubEntityForm.js";
21
- import { useBankAccountForm as L } 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 buildCounterpartRows, l as counterpartFormBankAccountToCreatePayload, u as counterpartFormBankAccountToUpdatePayload, d as counterpartToFormValues, f as emptyCounterpartFormValues, p as formatMoney, m as getAchInstructions, h as getCounterpartEmail, g as getCounterpartName, _ as getPayableAchInstructions, v as hasCounterpartFormErrors, y as hasSelectedText, b as isAchCompatibleBankAccount, x as resolveCounterpartBankAccountWrite, M as useAddressForm, L as useBankAccountForm, A as useCounterpartAddressesForRowsQuery, j as useCounterpartAddressesQuery, N as useCounterpartDetails, F as useCounterpartForm, w as useCounterpartQuery, T as useCounterpartsByIdsQuery, E as useCounterpartsQuery, O as useCreateCounterpartBankAccountMutation, D as useCreateCounterpartMutation, I as useDeleteController, n as useFocusFirstInvalidField, P as usePayableAchInstructions, k as useUpdateCounterpartBankAccountMutation, S as validateAchFormValues, C as validateCounterpartForm };
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 };