@tesouro/embedded-components-react 0.2.254 → 0.2.255

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 (138) hide show
  1. package/dist/core.js +1 -1
  2. package/dist/index.css +15 -0
  3. package/dist/index.js +2 -2
  4. package/dist/lib/BillPayWidget.d.ts +151 -151
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/InsightsWidget.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +4 -4
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +40 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +36 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +28 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +22 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +7 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +75 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +166 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +17 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +9 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +99 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +4 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +43 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +50 -0
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +8 -0
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +7 -0
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +93 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +42 -2
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +8 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +9 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +85 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +3 -0
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +8 -0
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +112 -0
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +25 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +51 -35
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +235 -1
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +106 -7
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +35 -88
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +122 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +36 -22
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +74 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +15 -8
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +24 -3
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +12 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +83 -3
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +1 -0
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +18 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +205 -4
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -0
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +89 -4
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +10 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +131 -4
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +1 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +10 -0
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +45 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +17 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +149 -7
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +73 -4
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -0
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +24 -2
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +24 -1
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +145 -6
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +10 -0
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +8 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +93 -4
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +7 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +30 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +13 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +88 -5
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +62 -5
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +7 -0
  85. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index4.js +2 -2
  86. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +13 -13
  87. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js +58 -58
  88. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +19 -19
  89. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +2 -2
  91. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +13 -62
  92. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index11.js +66 -0
  93. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +11 -109
  94. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +113 -21
  95. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +21 -15
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +2 -2
  98. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index8.js +3 -3
  99. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +1 -1
  100. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +15 -15
  102. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +9 -9
  103. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +32 -29
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useSubEntityForm.js +1 -1
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
  107. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +232 -220
  108. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +19 -19
  109. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +171 -138
  110. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/client/index.js +1 -0
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/core/bodySerializer.gen.js +9 -2
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +404 -293
  113. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +1 -1
  114. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/index.js +1 -1
  116. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index3.js → lib/amountOutputToMajorUnits.js} +1 -1
  119. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index14.js → lib/apiErrors.js} +1 -1
  120. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index2.js → lib/coerceAmountValueToMinorUnits.js} +1 -1
  121. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js +13 -0
  122. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index4.js → lib/formatMoneyExact.js} +1 -1
  123. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index5.js → lib/formatPhoneDisplay.js} +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index6.js → lib/getInitials.js} +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index7.js → lib/normalizeAmountOutputCurrencyCode.js} +1 -1
  126. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index8.js → lib/parseAmountOutputMajorUnits.js} +1 -1
  127. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index9.js → lib/parseDecimalAmountToMinorUnits.js} +2 -2
  128. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index10.js → lib/sumAmountOutputsMajorUnits.js} +3 -3
  129. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index11.js → lib/usStates.js} +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index13.js → lib/widgetDomEvents.js} +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/{index12.js → lib/widgetTokenManager.js} +1 -1
  132. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index8.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index4.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +4 -4
  136. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index5.js +1 -1
  137. package/dist/packages/shared-ui-shadcn/dist/index.js +3593 -3582
  138. package/package.json +1 -1
@@ -7,55 +7,66 @@ import { FormSheet as l } from "./index7.js";
7
7
  import { useId as u } from "react";
8
8
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
9
9
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js
10
- function m({ open: m, onOpenChange: h, mode: g, counterpartMode: _ = "customer", values: v, errors: y, stateOptions: b, inProgress: x, submitDisabled: S, onChange: C, onAddressChange: w, onBankAccountChange: T, onSubmit: E, onCancel: D, labels: O }) {
11
- let k = {
10
+ var m = {
11
+ entityType: !0,
12
+ profileHeading: !0,
13
+ addressHeading: !0,
14
+ taxId: !0,
15
+ address: !0,
16
+ bankAccount: !0
17
+ };
18
+ function h({ open: h, onOpenChange: g, mode: _, counterpartMode: v = "customer", values: y, errors: b, stateOptions: x, inProgress: S, submitDisabled: C, onChange: w, onAddressChange: T, onBankAccountChange: E, onSubmit: D, onCancel: O, sections: k, labels: A }) {
19
+ let j = {
12
20
  ...a,
13
- ...O
14
- }, A = u(), j = v.entityType === "organization", M = _ === "customer", N = _ === "vendor", P = g === "edit" ? M ? k.editTitleCustomer : k.editTitleVendor : M ? k.createTitleCustomer : k.createTitleVendor, F = g === "create" ? M ? k.createDescriptionCustomer : k.createDescriptionVendor : void 0, I = M ? k.customerTypeHeading : k.vendorTypeHeading, L = M ? k.customerTaxIdHelp : k.vendorTaxIdHelp;
21
+ ...A
22
+ }, M = {
23
+ ...m,
24
+ ...k
25
+ }, N = u(), P = y.entityType === "organization", F = v === "customer", I = v === "vendor", L = _ === "edit" ? F ? j.editTitleCustomer : j.editTitleVendor : F ? j.createTitleCustomer : j.createTitleVendor, R = _ === "create" ? F ? j.createDescriptionCustomer : j.createDescriptionVendor : void 0, z = F ? j.customerTypeHeading : j.vendorTypeHeading, B = F ? j.customerTaxIdHelp : j.vendorTaxIdHelp;
15
26
  return /* @__PURE__ */ p(l, {
16
- open: m,
17
- onOpenChange: h,
18
- title: P,
19
- description: F,
20
- formError: y?.form,
21
- inProgress: x,
22
- submitDisabled: S,
23
- submitLabel: g === "edit" ? k.saveButton : k.createButton,
24
- cancelLabel: k.cancelButton,
25
- onSubmit: E,
26
- onCancel: D,
27
+ open: h,
28
+ onOpenChange: g,
29
+ title: L,
30
+ description: R,
31
+ formError: b?.form,
32
+ inProgress: S,
33
+ submitDisabled: C,
34
+ submitLabel: _ === "edit" ? j.saveButton : j.createButton,
35
+ cancelLabel: j.cancelButton,
36
+ onSubmit: D,
37
+ onCancel: O,
27
38
  children: [
28
- g === "create" && /* @__PURE__ */ f(c, {
29
- value: v.entityType,
30
- onChange: (e) => C({ entityType: e }),
39
+ _ === "create" && /* @__PURE__ */ f(c, {
40
+ value: y.entityType,
41
+ onChange: (e) => w({ entityType: e }),
31
42
  labels: {
32
- heading: I,
33
- organization: k.businessTypeOption,
34
- organizationHint: k.businessTypeHint,
35
- individual: k.personTypeOption,
36
- individualHint: k.personTypeHint
43
+ heading: z,
44
+ organization: j.businessTypeOption,
45
+ organizationHint: j.businessTypeHint,
46
+ individual: j.personTypeOption,
47
+ individualHint: j.personTypeHint
37
48
  }
38
49
  }),
39
- /* @__PURE__ */ f(i, {
50
+ M.profileHeading && /* @__PURE__ */ f(i, {
40
51
  variant: "body2",
41
52
  className: "ttw:font-semibold",
42
- children: k.profileHeading
53
+ children: j.profileHeading
43
54
  }),
44
- j ? /* @__PURE__ */ p("div", {
55
+ P ? /* @__PURE__ */ p("div", {
45
56
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
46
57
  children: [
47
58
  /* @__PURE__ */ f(n, {
48
- htmlFor: `${A}-legal-name`,
49
- children: k.businessNameLabel
59
+ htmlFor: `${N}-legal-name`,
60
+ children: j.businessNameLabel
50
61
  }),
51
62
  /* @__PURE__ */ f(t, {
52
- id: `${A}-legal-name`,
63
+ id: `${N}-legal-name`,
53
64
  autoFocus: !0,
54
- value: v.legalName,
55
- "aria-invalid": !!y?.legalName,
56
- onChange: (e) => C({ legalName: e.target.value })
65
+ value: y.legalName,
66
+ "aria-invalid": !!b?.legalName,
67
+ onChange: (e) => w({ legalName: e.target.value })
57
68
  }),
58
- /* @__PURE__ */ f(o, { message: y?.legalName })
69
+ /* @__PURE__ */ f(o, { message: b?.legalName })
59
70
  ]
60
71
  }) : /* @__PURE__ */ p("div", {
61
72
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
@@ -63,44 +74,44 @@ function m({ open: m, onOpenChange: h, mode: g, counterpartMode: _ = "customer",
63
74
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
64
75
  children: [
65
76
  /* @__PURE__ */ f(n, {
66
- htmlFor: `${A}-first-name`,
67
- children: k.firstNameLabel
77
+ htmlFor: `${N}-first-name`,
78
+ children: j.firstNameLabel
68
79
  }),
69
80
  /* @__PURE__ */ f(t, {
70
- id: `${A}-first-name`,
81
+ id: `${N}-first-name`,
71
82
  autoFocus: !0,
72
- value: v.firstName,
73
- "aria-invalid": !!y?.firstName,
74
- onChange: (e) => C({ firstName: e.target.value })
83
+ value: y.firstName,
84
+ "aria-invalid": !!b?.firstName,
85
+ onChange: (e) => w({ firstName: e.target.value })
75
86
  }),
76
- /* @__PURE__ */ f(o, { message: y?.firstName })
87
+ /* @__PURE__ */ f(o, { message: b?.firstName })
77
88
  ]
78
89
  }), /* @__PURE__ */ p("div", {
79
90
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
80
91
  children: [
81
92
  /* @__PURE__ */ f(n, {
82
- htmlFor: `${A}-last-name`,
83
- children: k.lastNameLabel
93
+ htmlFor: `${N}-last-name`,
94
+ children: j.lastNameLabel
84
95
  }),
85
96
  /* @__PURE__ */ f(t, {
86
- id: `${A}-last-name`,
87
- value: v.lastName,
88
- "aria-invalid": !!y?.lastName,
89
- onChange: (e) => C({ lastName: e.target.value })
97
+ id: `${N}-last-name`,
98
+ value: y.lastName,
99
+ "aria-invalid": !!b?.lastName,
100
+ onChange: (e) => w({ lastName: e.target.value })
90
101
  }),
91
- /* @__PURE__ */ f(o, { message: y?.lastName })
102
+ /* @__PURE__ */ f(o, { message: b?.lastName })
92
103
  ]
93
104
  })]
94
105
  }),
95
- !j && /* @__PURE__ */ p("div", {
106
+ !P && /* @__PURE__ */ p("div", {
96
107
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
97
108
  children: [/* @__PURE__ */ f(n, {
98
- htmlFor: `${A}-title`,
99
- children: k.titleLabel
109
+ htmlFor: `${N}-title`,
110
+ children: j.titleLabel
100
111
  }), /* @__PURE__ */ f(t, {
101
- id: `${A}-title`,
102
- value: v.title,
103
- onChange: (e) => C({ title: e.target.value })
112
+ id: `${N}-title`,
113
+ value: y.title,
114
+ onChange: (e) => w({ title: e.target.value })
104
115
  })]
105
116
  }),
106
117
  /* @__PURE__ */ p("div", {
@@ -109,115 +120,114 @@ function m({ open: m, onOpenChange: h, mode: g, counterpartMode: _ = "customer",
109
120
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
110
121
  children: [
111
122
  /* @__PURE__ */ f(n, {
112
- htmlFor: `${A}-email`,
113
- children: k.emailLabel
123
+ htmlFor: `${N}-email`,
124
+ children: j.emailLabel
114
125
  }),
115
126
  /* @__PURE__ */ f(t, {
116
- id: `${A}-email`,
127
+ id: `${N}-email`,
117
128
  type: "email",
118
- value: v.email,
119
- "aria-invalid": !!y?.email,
120
- onChange: (e) => C({ email: e.target.value })
129
+ value: y.email,
130
+ "aria-invalid": !!b?.email,
131
+ onChange: (e) => w({ email: e.target.value })
121
132
  }),
122
- /* @__PURE__ */ f(o, { message: y?.email })
133
+ /* @__PURE__ */ f(o, { message: b?.email })
123
134
  ]
124
135
  }), /* @__PURE__ */ p("div", {
125
136
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
126
137
  children: [/* @__PURE__ */ f(n, {
127
- htmlFor: `${A}-phone`,
128
- children: k.phoneLabel
138
+ htmlFor: `${N}-phone`,
139
+ children: j.phoneLabel
129
140
  }), /* @__PURE__ */ f(t, {
130
- id: `${A}-phone`,
131
- value: v.phone,
132
- onChange: (e) => C({ phone: e.target.value })
141
+ id: `${N}-phone`,
142
+ value: y.phone,
143
+ onChange: (e) => w({ phone: e.target.value })
133
144
  })]
134
145
  })]
135
146
  }),
136
- /* @__PURE__ */ p("div", {
147
+ M.taxId && /* @__PURE__ */ p("div", {
137
148
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
138
149
  children: [
139
150
  /* @__PURE__ */ f(n, {
140
- htmlFor: `${A}-tax-id`,
141
- children: k.taxIdLabel
151
+ htmlFor: `${N}-tax-id`,
152
+ children: j.taxIdLabel
142
153
  }),
143
154
  /* @__PURE__ */ f(t, {
144
- id: `${A}-tax-id`,
145
- value: v.taxId,
146
- onChange: (e) => C({ taxId: e.target.value })
155
+ id: `${N}-tax-id`,
156
+ value: y.taxId,
157
+ onChange: (e) => w({ taxId: e.target.value })
147
158
  }),
148
159
  /* @__PURE__ */ f(i, {
149
160
  variant: "caption",
150
161
  className: "ttw:text-muted-foreground",
151
- children: L
162
+ children: B
152
163
  })
153
164
  ]
154
165
  }),
155
- M && /* @__PURE__ */ p(n, {
156
- htmlFor: `${A}-reminders`,
166
+ F && /* @__PURE__ */ p(n, {
167
+ htmlFor: `${N}-reminders`,
157
168
  className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:p-3",
158
169
  children: [/* @__PURE__ */ f(e, {
159
- id: `${A}-reminders`,
160
- checked: v.remindersEnabled,
161
- onCheckedChange: (e) => C({ remindersEnabled: e === !0 })
170
+ id: `${N}-reminders`,
171
+ checked: y.remindersEnabled,
172
+ onCheckedChange: (e) => w({ remindersEnabled: e === !0 })
162
173
  }), /* @__PURE__ */ p("span", {
163
174
  className: "ttw:flex ttw:flex-col ttw:gap-0.5",
164
175
  children: [/* @__PURE__ */ f("span", {
165
176
  className: "ttw:text-sm ttw:font-medium",
166
- children: k.paymentRemindersLabel
177
+ children: j.paymentRemindersLabel
167
178
  }), /* @__PURE__ */ f("span", {
168
179
  className: "ttw:text-sm ttw:text-muted-foreground",
169
- children: k.paymentRemindersDescription
180
+ children: j.paymentRemindersDescription
170
181
  })]
171
182
  })]
172
183
  }),
173
- /* @__PURE__ */ f(r, { className: "ttw:my-1" }),
174
- /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p("div", {
184
+ M.address && /* @__PURE__ */ p(d, { children: [M.addressHeading && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(r, { className: "ttw:my-1" }), /* @__PURE__ */ p("div", {
175
185
  className: "ttw:flex ttw:flex-col ttw:gap-1",
176
186
  children: [/* @__PURE__ */ f(i, {
177
187
  variant: "body2",
178
188
  className: "ttw:font-semibold",
179
- children: k.addressHeading
180
- }), M && /* @__PURE__ */ f(i, {
189
+ children: j.addressHeading
190
+ }), F && /* @__PURE__ */ f(i, {
181
191
  variant: "body2",
182
192
  className: "ttw:text-muted-foreground",
183
- children: k.customerAddressDescription
193
+ children: j.customerAddressDescription
184
194
  })]
185
- }), /* @__PURE__ */ f(s, {
186
- idPrefix: `${A}-address`,
187
- values: v.address,
188
- errors: y?.address,
189
- stateOptions: b,
190
- onChange: w,
191
- labels: k.address
195
+ })] }), /* @__PURE__ */ f(s, {
196
+ idPrefix: `${N}-address`,
197
+ values: y.address,
198
+ errors: b?.address,
199
+ stateOptions: x,
200
+ onChange: T,
201
+ labels: j.address
192
202
  })] }),
193
- g === "create" && N && /* @__PURE__ */ p(d, { children: [
203
+ _ === "create" && I && M.bankAccount && /* @__PURE__ */ p(d, { children: [
194
204
  /* @__PURE__ */ f(r, { className: "ttw:my-1" }),
195
205
  /* @__PURE__ */ p("div", {
196
206
  className: "ttw:flex ttw:flex-col ttw:gap-1",
197
207
  children: [/* @__PURE__ */ f(i, {
198
208
  variant: "body2",
199
209
  className: "ttw:font-semibold",
200
- children: k.paymentMethodsHeading
210
+ children: j.paymentMethodsHeading
201
211
  }), /* @__PURE__ */ f(i, {
202
212
  variant: "body2",
203
213
  className: "ttw:text-muted-foreground",
204
- children: k.paymentMethodsDescription
214
+ children: j.paymentMethodsDescription
205
215
  })]
206
216
  }),
207
217
  /* @__PURE__ */ p("div", {
208
218
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
209
219
  children: [
210
220
  /* @__PURE__ */ f(n, {
211
- htmlFor: `${A}-account-holder`,
212
- children: k.accountHolderNameLabel
221
+ htmlFor: `${N}-account-holder`,
222
+ children: j.accountHolderNameLabel
213
223
  }),
214
224
  /* @__PURE__ */ f(t, {
215
- id: `${A}-account-holder`,
216
- value: v.bankAccount.accountHolderName,
217
- "aria-invalid": !!y?.bankAccount?.accountHolderName,
218
- onChange: (e) => T?.({ accountHolderName: e.target.value })
225
+ id: `${N}-account-holder`,
226
+ value: y.bankAccount.accountHolderName,
227
+ "aria-invalid": !!b?.bankAccount?.accountHolderName,
228
+ onChange: (e) => E?.({ accountHolderName: e.target.value })
219
229
  }),
220
- /* @__PURE__ */ f(o, { message: y?.bankAccount?.accountHolderName })
230
+ /* @__PURE__ */ f(o, { message: b?.bankAccount?.accountHolderName })
221
231
  ]
222
232
  }),
223
233
  /* @__PURE__ */ p("div", {
@@ -226,31 +236,31 @@ function m({ open: m, onOpenChange: h, mode: g, counterpartMode: _ = "customer",
226
236
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
227
237
  children: [
228
238
  /* @__PURE__ */ f(n, {
229
- htmlFor: `${A}-routing-number`,
230
- children: k.routingNumberLabel
239
+ htmlFor: `${N}-routing-number`,
240
+ children: j.routingNumberLabel
231
241
  }),
232
242
  /* @__PURE__ */ f(t, {
233
- id: `${A}-routing-number`,
234
- value: v.bankAccount.routingNumber,
235
- "aria-invalid": !!y?.bankAccount?.routingNumber,
236
- onChange: (e) => T?.({ routingNumber: e.target.value })
243
+ id: `${N}-routing-number`,
244
+ value: y.bankAccount.routingNumber,
245
+ "aria-invalid": !!b?.bankAccount?.routingNumber,
246
+ onChange: (e) => E?.({ routingNumber: e.target.value })
237
247
  }),
238
- /* @__PURE__ */ f(o, { message: y?.bankAccount?.routingNumber })
248
+ /* @__PURE__ */ f(o, { message: b?.bankAccount?.routingNumber })
239
249
  ]
240
250
  }), /* @__PURE__ */ p("div", {
241
251
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
242
252
  children: [
243
253
  /* @__PURE__ */ f(n, {
244
- htmlFor: `${A}-account-number`,
245
- children: k.accountNumberLabel
254
+ htmlFor: `${N}-account-number`,
255
+ children: j.accountNumberLabel
246
256
  }),
247
257
  /* @__PURE__ */ f(t, {
248
- id: `${A}-account-number`,
249
- value: v.bankAccount.accountNumber,
250
- "aria-invalid": !!y?.bankAccount?.accountNumber,
251
- onChange: (e) => T?.({ accountNumber: e.target.value })
258
+ id: `${N}-account-number`,
259
+ value: y.bankAccount.accountNumber,
260
+ "aria-invalid": !!b?.bankAccount?.accountNumber,
261
+ onChange: (e) => E?.({ accountNumber: e.target.value })
252
262
  }),
253
- /* @__PURE__ */ f(o, { message: y?.bankAccount?.accountNumber })
263
+ /* @__PURE__ */ f(o, { message: b?.bankAccount?.accountNumber })
254
264
  ]
255
265
  })]
256
266
  })
@@ -258,43 +268,46 @@ function m({ open: m, onOpenChange: h, mode: g, counterpartMode: _ = "customer",
258
268
  ]
259
269
  });
260
270
  }
261
- function h({ mode: l, counterpartMode: m = "customer", values: h, errors: g, stateOptions: _, onChange: v, onAddressChange: y, onBankAccountChange: b, labels: x }) {
262
- let S = {
271
+ function g({ mode: l, counterpartMode: h = "customer", values: g, errors: _, stateOptions: v, onChange: y, onAddressChange: b, onBankAccountChange: x, sections: S, labels: C }) {
272
+ let w = {
263
273
  ...a,
264
- ...x
265
- }, C = u(), w = h.entityType === "organization", T = m === "customer", E = m === "vendor", D = T ? S.customerTypeHeading : S.vendorTypeHeading, O = T ? S.customerTaxIdHelp : S.vendorTaxIdHelp;
274
+ ...C
275
+ }, T = {
276
+ ...m,
277
+ ...S
278
+ }, E = u(), D = g.entityType === "organization", O = h === "customer", k = h === "vendor", A = O ? w.customerTypeHeading : w.vendorTypeHeading, j = O ? w.customerTaxIdHelp : w.vendorTaxIdHelp;
266
279
  return /* @__PURE__ */ p(d, { children: [
267
- l === "create" && /* @__PURE__ */ f(c, {
268
- value: h.entityType,
269
- onChange: (e) => v({ entityType: e }),
280
+ l === "create" && T.entityType && /* @__PURE__ */ f(c, {
281
+ value: g.entityType,
282
+ onChange: (e) => y({ entityType: e }),
270
283
  labels: {
271
- heading: D,
272
- organization: S.businessTypeOption,
273
- organizationHint: S.businessTypeHint,
274
- individual: S.personTypeOption,
275
- individualHint: S.personTypeHint
284
+ heading: A,
285
+ organization: w.businessTypeOption,
286
+ organizationHint: w.businessTypeHint,
287
+ individual: w.personTypeOption,
288
+ individualHint: w.personTypeHint
276
289
  }
277
290
  }),
278
- /* @__PURE__ */ f(i, {
291
+ T.profileHeading && /* @__PURE__ */ f(i, {
279
292
  variant: "body2",
280
293
  className: "ttw:font-semibold",
281
- children: S.profileHeading
294
+ children: w.profileHeading
282
295
  }),
283
- w ? /* @__PURE__ */ p("div", {
296
+ D ? /* @__PURE__ */ p("div", {
284
297
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
285
298
  children: [
286
299
  /* @__PURE__ */ f(n, {
287
- htmlFor: `${C}-legal-name`,
288
- children: S.businessNameLabel
300
+ htmlFor: `${E}-legal-name`,
301
+ children: w.businessNameLabel
289
302
  }),
290
303
  /* @__PURE__ */ f(t, {
291
- id: `${C}-legal-name`,
304
+ id: `${E}-legal-name`,
292
305
  autoFocus: !0,
293
- value: h.legalName,
294
- "aria-invalid": !!g?.legalName,
295
- onChange: (e) => v({ legalName: e.target.value })
306
+ value: g.legalName,
307
+ "aria-invalid": !!_?.legalName,
308
+ onChange: (e) => y({ legalName: e.target.value })
296
309
  }),
297
- /* @__PURE__ */ f(o, { message: g?.legalName })
310
+ /* @__PURE__ */ f(o, { message: _?.legalName })
298
311
  ]
299
312
  }) : /* @__PURE__ */ p("div", {
300
313
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
@@ -302,44 +315,44 @@ function h({ mode: l, counterpartMode: m = "customer", values: h, errors: g, sta
302
315
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
303
316
  children: [
304
317
  /* @__PURE__ */ f(n, {
305
- htmlFor: `${C}-first-name`,
306
- children: S.firstNameLabel
318
+ htmlFor: `${E}-first-name`,
319
+ children: w.firstNameLabel
307
320
  }),
308
321
  /* @__PURE__ */ f(t, {
309
- id: `${C}-first-name`,
322
+ id: `${E}-first-name`,
310
323
  autoFocus: !0,
311
- value: h.firstName,
312
- "aria-invalid": !!g?.firstName,
313
- onChange: (e) => v({ firstName: e.target.value })
324
+ value: g.firstName,
325
+ "aria-invalid": !!_?.firstName,
326
+ onChange: (e) => y({ firstName: e.target.value })
314
327
  }),
315
- /* @__PURE__ */ f(o, { message: g?.firstName })
328
+ /* @__PURE__ */ f(o, { message: _?.firstName })
316
329
  ]
317
330
  }), /* @__PURE__ */ p("div", {
318
331
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
319
332
  children: [
320
333
  /* @__PURE__ */ f(n, {
321
- htmlFor: `${C}-last-name`,
322
- children: S.lastNameLabel
334
+ htmlFor: `${E}-last-name`,
335
+ children: w.lastNameLabel
323
336
  }),
324
337
  /* @__PURE__ */ f(t, {
325
- id: `${C}-last-name`,
326
- value: h.lastName,
327
- "aria-invalid": !!g?.lastName,
328
- onChange: (e) => v({ lastName: e.target.value })
338
+ id: `${E}-last-name`,
339
+ value: g.lastName,
340
+ "aria-invalid": !!_?.lastName,
341
+ onChange: (e) => y({ lastName: e.target.value })
329
342
  }),
330
- /* @__PURE__ */ f(o, { message: g?.lastName })
343
+ /* @__PURE__ */ f(o, { message: _?.lastName })
331
344
  ]
332
345
  })]
333
346
  }),
334
- !w && /* @__PURE__ */ p("div", {
347
+ !D && /* @__PURE__ */ p("div", {
335
348
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
336
349
  children: [/* @__PURE__ */ f(n, {
337
- htmlFor: `${C}-title`,
338
- children: S.titleLabel
350
+ htmlFor: `${E}-title`,
351
+ children: w.titleLabel
339
352
  }), /* @__PURE__ */ f(t, {
340
- id: `${C}-title`,
341
- value: h.title,
342
- onChange: (e) => v({ title: e.target.value })
353
+ id: `${E}-title`,
354
+ value: g.title,
355
+ onChange: (e) => y({ title: e.target.value })
343
356
  })]
344
357
  }),
345
358
  /* @__PURE__ */ p("div", {
@@ -348,115 +361,114 @@ function h({ mode: l, counterpartMode: m = "customer", values: h, errors: g, sta
348
361
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
349
362
  children: [
350
363
  /* @__PURE__ */ f(n, {
351
- htmlFor: `${C}-email`,
352
- children: S.emailLabel
364
+ htmlFor: `${E}-email`,
365
+ children: w.emailLabel
353
366
  }),
354
367
  /* @__PURE__ */ f(t, {
355
- id: `${C}-email`,
368
+ id: `${E}-email`,
356
369
  type: "email",
357
- value: h.email,
358
- "aria-invalid": !!g?.email,
359
- onChange: (e) => v({ email: e.target.value })
370
+ value: g.email,
371
+ "aria-invalid": !!_?.email,
372
+ onChange: (e) => y({ email: e.target.value })
360
373
  }),
361
- /* @__PURE__ */ f(o, { message: g?.email })
374
+ /* @__PURE__ */ f(o, { message: _?.email })
362
375
  ]
363
376
  }), /* @__PURE__ */ p("div", {
364
377
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
365
378
  children: [/* @__PURE__ */ f(n, {
366
- htmlFor: `${C}-phone`,
367
- children: S.phoneLabel
379
+ htmlFor: `${E}-phone`,
380
+ children: w.phoneLabel
368
381
  }), /* @__PURE__ */ f(t, {
369
- id: `${C}-phone`,
370
- value: h.phone,
371
- onChange: (e) => v({ phone: e.target.value })
382
+ id: `${E}-phone`,
383
+ value: g.phone,
384
+ onChange: (e) => y({ phone: e.target.value })
372
385
  })]
373
386
  })]
374
387
  }),
375
- /* @__PURE__ */ p("div", {
388
+ T.taxId && /* @__PURE__ */ p("div", {
376
389
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
377
390
  children: [
378
391
  /* @__PURE__ */ f(n, {
379
- htmlFor: `${C}-tax-id`,
380
- children: S.taxIdLabel
392
+ htmlFor: `${E}-tax-id`,
393
+ children: w.taxIdLabel
381
394
  }),
382
395
  /* @__PURE__ */ f(t, {
383
- id: `${C}-tax-id`,
384
- value: h.taxId,
385
- onChange: (e) => v({ taxId: e.target.value })
396
+ id: `${E}-tax-id`,
397
+ value: g.taxId,
398
+ onChange: (e) => y({ taxId: e.target.value })
386
399
  }),
387
400
  /* @__PURE__ */ f(i, {
388
401
  variant: "caption",
389
402
  className: "ttw:text-muted-foreground",
390
- children: O
403
+ children: j
391
404
  })
392
405
  ]
393
406
  }),
394
- T && /* @__PURE__ */ p(n, {
395
- htmlFor: `${C}-reminders`,
407
+ O && /* @__PURE__ */ p(n, {
408
+ htmlFor: `${E}-reminders`,
396
409
  className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:p-3",
397
410
  children: [/* @__PURE__ */ f(e, {
398
- id: `${C}-reminders`,
399
- checked: h.remindersEnabled,
400
- onCheckedChange: (e) => v({ remindersEnabled: e === !0 })
411
+ id: `${E}-reminders`,
412
+ checked: g.remindersEnabled,
413
+ onCheckedChange: (e) => y({ remindersEnabled: e === !0 })
401
414
  }), /* @__PURE__ */ p("span", {
402
415
  className: "ttw:flex ttw:flex-col ttw:gap-0.5",
403
416
  children: [/* @__PURE__ */ f("span", {
404
417
  className: "ttw:text-sm ttw:font-medium",
405
- children: S.paymentRemindersLabel
418
+ children: w.paymentRemindersLabel
406
419
  }), /* @__PURE__ */ f("span", {
407
420
  className: "ttw:text-sm ttw:text-muted-foreground",
408
- children: S.paymentRemindersDescription
421
+ children: w.paymentRemindersDescription
409
422
  })]
410
423
  })]
411
424
  }),
412
- /* @__PURE__ */ f(r, { className: "ttw:my-1" }),
413
- /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p("div", {
425
+ T.address && /* @__PURE__ */ p(d, { children: [T.addressHeading && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(r, { className: "ttw:my-1" }), /* @__PURE__ */ p("div", {
414
426
  className: "ttw:flex ttw:flex-col ttw:gap-1",
415
427
  children: [/* @__PURE__ */ f(i, {
416
428
  variant: "body2",
417
429
  className: "ttw:font-semibold",
418
- children: S.addressHeading
419
- }), T && /* @__PURE__ */ f(i, {
430
+ children: w.addressHeading
431
+ }), O && /* @__PURE__ */ f(i, {
420
432
  variant: "body2",
421
433
  className: "ttw:text-muted-foreground",
422
- children: S.customerAddressDescription
434
+ children: w.customerAddressDescription
423
435
  })]
424
- }), /* @__PURE__ */ f(s, {
425
- idPrefix: `${C}-address`,
426
- values: h.address,
427
- errors: g?.address,
428
- stateOptions: _,
429
- onChange: y,
430
- labels: S.address
436
+ })] }), /* @__PURE__ */ f(s, {
437
+ idPrefix: `${E}-address`,
438
+ values: g.address,
439
+ errors: _?.address,
440
+ stateOptions: v,
441
+ onChange: b,
442
+ labels: w.address
431
443
  })] }),
432
- l === "create" && E && /* @__PURE__ */ p(d, { children: [
444
+ l === "create" && k && T.bankAccount && /* @__PURE__ */ p(d, { children: [
433
445
  /* @__PURE__ */ f(r, { className: "ttw:my-1" }),
434
446
  /* @__PURE__ */ p("div", {
435
447
  className: "ttw:flex ttw:flex-col ttw:gap-1",
436
448
  children: [/* @__PURE__ */ f(i, {
437
449
  variant: "body2",
438
450
  className: "ttw:font-semibold",
439
- children: S.paymentMethodsHeading
451
+ children: w.paymentMethodsHeading
440
452
  }), /* @__PURE__ */ f(i, {
441
453
  variant: "body2",
442
454
  className: "ttw:text-muted-foreground",
443
- children: S.paymentMethodsDescription
455
+ children: w.paymentMethodsDescription
444
456
  })]
445
457
  }),
446
458
  /* @__PURE__ */ p("div", {
447
459
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
448
460
  children: [
449
461
  /* @__PURE__ */ f(n, {
450
- htmlFor: `${C}-account-holder`,
451
- children: S.accountHolderNameLabel
462
+ htmlFor: `${E}-account-holder`,
463
+ children: w.accountHolderNameLabel
452
464
  }),
453
465
  /* @__PURE__ */ f(t, {
454
- id: `${C}-account-holder`,
455
- value: h.bankAccount.accountHolderName,
456
- "aria-invalid": !!g?.bankAccount?.accountHolderName,
457
- onChange: (e) => b?.({ accountHolderName: e.target.value })
466
+ id: `${E}-account-holder`,
467
+ value: g.bankAccount.accountHolderName,
468
+ "aria-invalid": !!_?.bankAccount?.accountHolderName,
469
+ onChange: (e) => x?.({ accountHolderName: e.target.value })
458
470
  }),
459
- /* @__PURE__ */ f(o, { message: g?.bankAccount?.accountHolderName })
471
+ /* @__PURE__ */ f(o, { message: _?.bankAccount?.accountHolderName })
460
472
  ]
461
473
  }),
462
474
  /* @__PURE__ */ p("div", {
@@ -465,31 +477,31 @@ function h({ mode: l, counterpartMode: m = "customer", values: h, errors: g, sta
465
477
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
466
478
  children: [
467
479
  /* @__PURE__ */ f(n, {
468
- htmlFor: `${C}-routing-number`,
469
- children: S.routingNumberLabel
480
+ htmlFor: `${E}-routing-number`,
481
+ children: w.routingNumberLabel
470
482
  }),
471
483
  /* @__PURE__ */ f(t, {
472
- id: `${C}-routing-number`,
473
- value: h.bankAccount.routingNumber,
474
- "aria-invalid": !!g?.bankAccount?.routingNumber,
475
- onChange: (e) => b?.({ routingNumber: e.target.value })
484
+ id: `${E}-routing-number`,
485
+ value: g.bankAccount.routingNumber,
486
+ "aria-invalid": !!_?.bankAccount?.routingNumber,
487
+ onChange: (e) => x?.({ routingNumber: e.target.value })
476
488
  }),
477
- /* @__PURE__ */ f(o, { message: g?.bankAccount?.routingNumber })
489
+ /* @__PURE__ */ f(o, { message: _?.bankAccount?.routingNumber })
478
490
  ]
479
491
  }), /* @__PURE__ */ p("div", {
480
492
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
481
493
  children: [
482
494
  /* @__PURE__ */ f(n, {
483
- htmlFor: `${C}-account-number`,
484
- children: S.accountNumberLabel
495
+ htmlFor: `${E}-account-number`,
496
+ children: w.accountNumberLabel
485
497
  }),
486
498
  /* @__PURE__ */ f(t, {
487
- id: `${C}-account-number`,
488
- value: h.bankAccount.accountNumber,
489
- "aria-invalid": !!g?.bankAccount?.accountNumber,
490
- onChange: (e) => b?.({ accountNumber: e.target.value })
499
+ id: `${E}-account-number`,
500
+ value: g.bankAccount.accountNumber,
501
+ "aria-invalid": !!_?.bankAccount?.accountNumber,
502
+ onChange: (e) => x?.({ accountNumber: e.target.value })
491
503
  }),
492
- /* @__PURE__ */ f(o, { message: g?.bankAccount?.accountNumber })
504
+ /* @__PURE__ */ f(o, { message: _?.bankAccount?.accountNumber })
493
505
  ]
494
506
  })]
495
507
  })
@@ -497,4 +509,4 @@ function h({ mode: l, counterpartMode: m = "customer", values: h, errors: g, sta
497
509
  ] });
498
510
  }
499
511
  //#endregion
500
- export { h as CounterpartFormFields, m as CounterpartFormSheet, m as default };
512
+ export { g as CounterpartFormFields, h as CounterpartFormSheet, h as default };