@tesouro/embedded-components-react 0.5.214 → 0.5.216

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 (123) hide show
  1. package/dist/index.d.ts +144 -3
  2. package/dist/index.js +14 -13
  3. package/dist/lib/BankAccountOnboardingWidget.d.ts +56 -2
  4. package/dist/lib/BankAccountOnboardingWidget.js +4 -3
  5. package/dist/lib/MarketingWidget.js +1 -1
  6. package/dist/lib/ReceivablesWidget.d.ts +88 -1
  7. package/dist/lib/ReceivablesWidget.js +1 -1
  8. package/dist/lib/WidgetSuite.d.ts +53 -0
  9. package/dist/libs/shared/util-validation/dist/index5.js +7 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +3 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +72 -72
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -1
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +15 -15
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +60 -60
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +12 -12
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +16 -16
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +11 -11
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +8 -8
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +71 -5
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +95 -33
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index24.js +6 -17
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +16 -616
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +669 -0
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +15 -13
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +52 -37
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +31 -37
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +33 -89
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -12
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +98 -2
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +14 -4
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +2 -185
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +4 -30
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +183 -21
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +26 -66
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +21 -233
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +66 -27
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +233 -26
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +27 -72
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +26 -85
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +74 -8
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +83 -55
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +6 -7
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +37 -42
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +11 -0
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +64 -0
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +7 -33
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +7 -7
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +6 -0
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
  109. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
  110. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +1 -1
  111. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index5.js +16 -19
  112. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index6.js +157 -16
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js +3 -1
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
  117. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +2 -1
  118. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  119. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/application/bankAccountApplication.js +26 -0
  120. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js +1 -1
  121. package/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
  122. package/package.json +1 -1
  123. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js +0 -161
@@ -1,121 +1,121 @@
1
- import { maskIdentifierLast4 as e } from "./index6.js";
2
- import { storedIdentifierFieldDisplay as t, usableStoredTaxIdLast4 as n } from "./index7.js";
3
- import { isValidWebsiteUrl as r } from "./index8.js";
4
- import { formatPhoneNumberInput as i } from "./index2.js";
5
- import { sanitizeZipCodeInput as a } from "./index3.js";
6
- import { sanitizeTaxIdInput as o } from "./index5.js";
7
- import { BUSINESS_DETAILS_LABELS_EN as s } from "../../ui/dist/index7.js";
8
- import { BUSINESS_DETAILS_PANEL_LABELS_EN as c } from "../../ui/dist/index18.js";
1
+ import { BUSINESS_DETAILS_LABELS_EN as e } from "../../ui/dist/index7.js";
2
+ import { BUSINESS_DETAILS_PANEL_LABELS_EN as t } from "../../ui/dist/index20.js";
9
3
  import "../../ui/dist/index.js";
4
+ import { maskIdentifierLast4 as n } from "./index6.js";
5
+ import { storedIdentifierFieldDisplay as r, usableStoredTaxIdLast4 as i } from "./index7.js";
6
+ import { isValidWebsiteUrl as a } from "./index8.js";
7
+ import { formatPhoneNumberInput as o } from "./index2.js";
8
+ import { sanitizeZipCodeInput as s } from "./index3.js";
9
+ import { sanitizeTaxIdInput as c } from "./index5.js";
10
10
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js
11
- function l(e) {
11
+ function l(t) {
12
12
  return {
13
- ...s,
14
13
  ...e,
14
+ ...t,
15
15
  companyStructureOptions: {
16
- ...s.companyStructureOptions,
17
- ...e?.companyStructureOptions
16
+ ...e.companyStructureOptions,
17
+ ...t?.companyStructureOptions
18
18
  },
19
19
  naicsTitles: {
20
- ...s.naicsTitles,
21
- ...e?.naicsTitles
20
+ ...e.naicsTitles,
21
+ ...t?.naicsTitles
22
22
  },
23
23
  stateTitles: {
24
- ...s.stateTitles,
25
- ...e?.stateTitles
24
+ ...e.stateTitles,
25
+ ...t?.stateTitles
26
26
  }
27
27
  };
28
28
  }
29
29
  function u(e) {
30
- return e.trim().length > 0 && !r(e);
30
+ return e.trim().length > 0 && !a(e);
31
31
  }
32
32
  function d(e) {
33
- let t = l(e);
33
+ let n = l(e);
34
34
  return {
35
- ...c,
36
- companyLegalName: t.companyLegalName,
37
- companyDbaName: t.companyDbaName,
38
- businessAddress: t.businessAddress,
39
- city: t.city,
40
- state: t.state,
41
- statePlaceholder: t.statePlaceholder,
42
- zipCode: t.zipCode,
43
- companyPhoneNumber: t.companyPhoneNumber,
44
- companyStructure: t.companyStructure,
45
- companyStructurePlaceholder: t.companyStructurePlaceholder,
46
- website: t.website,
47
- websiteInvalid: t.websiteInvalid,
48
- taxId: t.taxId,
49
- naicsCode: t.naicsCode,
50
- naicsCodePlaceholder: t.naicsCodePlaceholder
35
+ ...t,
36
+ companyLegalName: n.companyLegalName,
37
+ companyDbaName: n.companyDbaName,
38
+ businessAddress: n.businessAddress,
39
+ city: n.city,
40
+ state: n.state,
41
+ statePlaceholder: n.statePlaceholder,
42
+ zipCode: n.zipCode,
43
+ companyPhoneNumber: n.companyPhoneNumber,
44
+ companyStructure: n.companyStructure,
45
+ companyStructurePlaceholder: n.companyStructurePlaceholder,
46
+ website: n.website,
47
+ websiteInvalid: n.websiteInvalid,
48
+ taxId: n.taxId,
49
+ naicsCode: n.naicsCode,
50
+ naicsCodePlaceholder: n.naicsCodePlaceholder
51
51
  };
52
52
  }
53
- function f(t, r) {
54
- let i = d(r.labels), a = l(r.labels), o = n(t), s = t.companyStructure && a.companyStructureOptions[t.companyStructure], c = r.stateOptions.find((e) => e.value === t.state)?.label ?? t.state, u = r.naicsOptions.find((e) => e.value === t.naicsCode)?.label ?? t.naicsCode;
53
+ function f(e, t) {
54
+ let r = d(t.labels), a = l(t.labels), o = i(e), s = e.companyStructure && a.companyStructureOptions[e.companyStructure], c = t.stateOptions.find((t) => t.value === e.state)?.label ?? e.state, u = t.naicsOptions.find((t) => t.value === e.naicsCode)?.label ?? e.naicsCode;
55
55
  return [
56
56
  {
57
- label: i.companyLegalName,
58
- value: t.companyLegalName,
57
+ label: r.companyLegalName,
58
+ value: e.companyLegalName,
59
59
  testId: "business-details-summary-legal-name"
60
60
  },
61
61
  {
62
- label: i.companyDbaName,
63
- value: t.companyDbaName,
62
+ label: r.companyDbaName,
63
+ value: e.companyDbaName,
64
64
  testId: "business-details-summary-dba-name"
65
65
  },
66
66
  {
67
- label: i.businessAddress,
68
- value: t.businessAddress,
67
+ label: r.businessAddress,
68
+ value: e.businessAddress,
69
69
  testId: "business-details-summary-address"
70
70
  },
71
71
  {
72
- label: i.city,
73
- value: t.city,
72
+ label: r.city,
73
+ value: e.city,
74
74
  testId: "business-details-summary-city"
75
75
  },
76
76
  {
77
- label: i.state,
77
+ label: r.state,
78
78
  value: c,
79
79
  testId: "business-details-summary-state"
80
80
  },
81
81
  {
82
- label: i.zipCode,
83
- value: t.zipCode,
82
+ label: r.zipCode,
83
+ value: e.zipCode,
84
84
  testId: "business-details-summary-zip-code"
85
85
  },
86
86
  {
87
- label: i.companyPhoneNumber,
88
- value: t.companyPhoneNumber,
87
+ label: r.companyPhoneNumber,
88
+ value: e.companyPhoneNumber,
89
89
  testId: "business-details-summary-phone"
90
90
  },
91
91
  {
92
- label: i.companyStructure,
93
- value: s ?? t.companyStructure,
92
+ label: r.companyStructure,
93
+ value: s ?? e.companyStructure,
94
94
  testId: "business-details-summary-structure"
95
95
  },
96
96
  {
97
- label: i.website,
98
- value: t.website,
97
+ label: r.website,
98
+ value: e.website,
99
99
  testId: "business-details-summary-website"
100
100
  },
101
101
  {
102
- label: i.taxId,
103
- value: t.taxId ? t.taxId : o ? e(o) : "",
102
+ label: r.taxId,
103
+ value: e.taxId ? e.taxId : o ? n(o) : "",
104
104
  testId: "business-details-summary-tax-id"
105
105
  },
106
106
  {
107
- label: i.naicsCode,
107
+ label: r.naicsCode,
108
108
  value: u,
109
109
  testId: "business-details-summary-naics"
110
110
  }
111
111
  ];
112
112
  }
113
- function p(e, r) {
114
- let i = l(r);
115
- return t(n(e), i.taxIdOnFileTemplate);
113
+ function p(e, t) {
114
+ let n = l(t);
115
+ return r(i(e), n.taxIdOnFileTemplate);
116
116
  }
117
117
  function m(e, t, n) {
118
- let r = l(n.labels), s = [
118
+ let r = l(n.labels), i = [
119
119
  "CORPORATION_PUBLIC",
120
120
  "CORPORATION_PRIVATE",
121
121
  "CORPORATION_NOT_FOR_PROFIT",
@@ -130,39 +130,39 @@ function m(e, t, n) {
130
130
  ].map((e) => ({
131
131
  value: e,
132
132
  label: r.companyStructureOptions[e]
133
- })), c = (n) => (r) => t({
133
+ })), a = (n) => (r) => t({
134
134
  ...e,
135
135
  [n]: r
136
136
  });
137
137
  return {
138
138
  companyLegalName: {
139
139
  value: e.companyLegalName,
140
- onValueChange: c("companyLegalName")
140
+ onValueChange: a("companyLegalName")
141
141
  },
142
142
  companyDbaName: {
143
143
  value: e.companyDbaName,
144
- onValueChange: c("companyDbaName")
144
+ onValueChange: a("companyDbaName")
145
145
  },
146
146
  businessAddress: {
147
147
  value: e.businessAddress,
148
- onValueChange: c("businessAddress")
148
+ onValueChange: a("businessAddress")
149
149
  },
150
150
  city: {
151
151
  value: e.city,
152
- onValueChange: c("city")
152
+ onValueChange: a("city")
153
153
  },
154
154
  state: {
155
155
  value: e.state,
156
- onValueChange: c("state"),
156
+ onValueChange: a("state"),
157
157
  options: n.stateOptions
158
158
  },
159
159
  zipCode: {
160
160
  value: e.zipCode,
161
- onValueChange: (e) => c("zipCode")(a(e))
161
+ onValueChange: (e) => a("zipCode")(s(e))
162
162
  },
163
163
  companyPhoneNumber: {
164
164
  value: e.companyPhoneNumber,
165
- onValueChange: (e) => c("companyPhoneNumber")(i(e))
165
+ onValueChange: (e) => a("companyPhoneNumber")(o(e))
166
166
  },
167
167
  companyStructure: {
168
168
  value: e.companyStructure,
@@ -170,19 +170,19 @@ function m(e, t, n) {
170
170
  ...e,
171
171
  companyStructure: n
172
172
  }),
173
- options: s
173
+ options: i
174
174
  },
175
175
  website: {
176
176
  value: e.website,
177
- onValueChange: c("website")
177
+ onValueChange: a("website")
178
178
  },
179
179
  taxId: {
180
180
  value: e.taxId,
181
- onValueChange: (e) => c("taxId")(o(e))
181
+ onValueChange: (e) => a("taxId")(c(e))
182
182
  },
183
183
  naicsCode: {
184
184
  value: e.naicsCode,
185
- onValueChange: c("naicsCode"),
185
+ onValueChange: a("naicsCode"),
186
186
  options: n.naicsOptions
187
187
  }
188
188
  };
@@ -34,7 +34,10 @@ var e = {
34
34
  ownerDeleteOverlay: "additional-owner-delete-overlay",
35
35
  ownerDeleteContent: "additional-owner-delete-content",
36
36
  resultProcessing: "bank-account-onboarding-result-processing",
37
- resultDashboardButton: "bank-account-onboarding-result-dashboard-button"
37
+ resultDashboardButton: "bank-account-onboarding-result-dashboard-button",
38
+ statusCard: "bank-account-onboarding-status-card",
39
+ statusCardChip: "bank-account-onboarding-status-card-chip",
40
+ statusCardClose: "bank-account-onboarding-status-card-close"
38
41
  };
39
42
  //#endregion
40
43
  export { e as bankAccountOnboardingTestIds };
@@ -2,22 +2,22 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { bankAccountOnboardingTestIds as e } from "./index12.js";
6
- import { buildBusinessDetailsPanelFieldsSchema as t, buildBusinessDetailsSchema as n, isTaxIdSatisfied as r } from "./index10.js";
7
- import { BusinessDetailsPanel as i } from "../../ui/dist/index19.js";
8
- import { BusinessDisclosuresSection as a } from "../../ui/dist/index24.js";
5
+ import { BusinessDetailsPanel as e } from "../../ui/dist/index21.js";
6
+ import { BusinessDisclosuresSection as t } from "../../ui/dist/index26.js";
9
7
  import "../../ui/dist/index.js";
8
+ import { bankAccountOnboardingTestIds as n } from "./index12.js";
9
+ import { buildBusinessDetailsPanelFieldsSchema as r, buildBusinessDetailsSchema as i, isTaxIdSatisfied as a } from "./index10.js";
10
10
  import { buildBusinessDetailsEditFields as o, buildBusinessDetailsPanelLabels as s, buildBusinessDetailsSummaryRows as c, buildTaxIdFieldDisplay as l, isBusinessWebsiteInvalid as u, mergeBusinessDetailsLabels as d } from "./index11.js";
11
11
  import { useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
12
12
  import { jsx as g, jsxs as _ } from "react/jsx-runtime";
13
13
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js
14
14
  function v({ value: v, onValueChange: y, onSnapshotChange: b, naicsOptions: x, stateOptions: S, isSubmitting: C, labels: w, bankName: T, termsHref: E, privacyHref: D, electronicCommunicationHref: O, patriotActHref: k }) {
15
15
  let A = p(() => d(w), [w]), j = p(() => ({
16
- panelFields: t(A).refine(r, {
16
+ panelFields: r(A).refine(a, {
17
17
  message: A.taxIdInvalid,
18
18
  path: ["taxId"]
19
19
  }),
20
- full: n(A)
20
+ full: i(A)
21
21
  }), [A]), M = j.full.safeParse(v), N = M.success ? M.data : null, P = j.panelFields.safeParse(v).success, F = JSON.stringify(N), I = m(b);
22
22
  I.current = b, f(() => {
23
23
  I.current(N);
@@ -41,7 +41,7 @@ function v({ value: v, onValueChange: y, onSnapshotChange: b, naicsOptions: x, s
41
41
  ]), U = u(v.website), W = p(() => l(v, w), [v, w]);
42
42
  return /* @__PURE__ */ _("div", {
43
43
  className: "ttw:flex ttw:flex-col ttw:gap-6",
44
- children: [/* @__PURE__ */ g(i, {
44
+ children: [/* @__PURE__ */ g(e, {
45
45
  isEditing: L,
46
46
  onEditClick: () => R(!0),
47
47
  summaryRows: V,
@@ -53,15 +53,15 @@ function v({ value: v, onValueChange: y, onSnapshotChange: b, naicsOptions: x, s
53
53
  taxIdPlaceholder: W.placeholder,
54
54
  taxIdHelpText: W.helpText,
55
55
  testIds: {
56
- root: e.businessDetailsPanel,
57
- editButton: e.businessDetailsEditButton,
58
- summary: { root: e.businessDetailsSummary },
56
+ root: n.businessDetailsPanel,
57
+ editButton: n.businessDetailsEditButton,
58
+ summary: { root: n.businessDetailsSummary },
59
59
  editForm: {
60
- root: e.businessDetailsEditForm,
61
- naicsCombobox: e.businessDetailsNaicsCombobox
60
+ root: n.businessDetailsEditForm,
61
+ naicsCombobox: n.businessDetailsNaicsCombobox
62
62
  }
63
63
  }
64
- }), /* @__PURE__ */ g(a, {
64
+ }), /* @__PURE__ */ g(t, {
65
65
  value: {
66
66
  isAuthorized: v.isAuthorized,
67
67
  isCheckboxChecked: v.isCheckboxChecked
@@ -78,8 +78,8 @@ function v({ value: v, onValueChange: y, onSnapshotChange: b, naicsOptions: x, s
78
78
  electronicCommunicationHref: O,
79
79
  patriotActHref: k,
80
80
  testIds: {
81
- authorizationCheckbox: e.authorizationCheckbox,
82
- disclosureCheckbox: e.disclosureCheckbox
81
+ authorizationCheckbox: n.authorizationCheckbox,
82
+ disclosureCheckbox: n.disclosureCheckbox
83
83
  }
84
84
  })]
85
85
  });
@@ -1,10 +1,10 @@
1
- import { maskIdentifierLast4 as e } from "./index6.js";
2
- import { storedIdentifierFieldDisplay as t } from "./index7.js";
3
- import { formatPhoneNumberInput as n } from "./index2.js";
4
- import { sanitizeZipCodeInput as r } from "./index3.js";
5
- import { PERSONAL_DETAILS_LABELS_EN as i } from "../../ui/dist/index8.js";
6
- import { ABOUT_YOU_PANEL_LABELS_EN as a } from "../../ui/dist/index22.js";
1
+ import { PERSONAL_DETAILS_LABELS_EN as e } from "../../ui/dist/index8.js";
2
+ import { ABOUT_YOU_PANEL_LABELS_EN as t } from "../../ui/dist/index24.js";
7
3
  import "../../ui/dist/index.js";
4
+ import { maskIdentifierLast4 as n } from "./index6.js";
5
+ import { storedIdentifierFieldDisplay as r } from "./index7.js";
6
+ import { formatPhoneNumberInput as i } from "./index2.js";
7
+ import { sanitizeZipCodeInput as a } from "./index3.js";
8
8
  import { formatSsnInput as o, maskSsn as s, sanitizeSsnDigits as c } from "./index4.js";
9
9
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js
10
10
  function l(e) {
@@ -14,70 +14,70 @@ function l(e) {
14
14
  year: "numeric"
15
15
  }) : "";
16
16
  }
17
- function u(e) {
17
+ function u(t) {
18
18
  return {
19
- ...i,
20
- ...e
19
+ ...e,
20
+ ...t
21
21
  };
22
22
  }
23
23
  function d(e) {
24
- let t = u(e);
24
+ let n = u(e);
25
25
  return {
26
- ...a,
27
- firstName: t.firstName,
28
- lastName: t.lastName,
29
- dateOfBirth: t.dateOfBirth,
30
- dateOfBirthPlaceholder: t.dateOfBirthPlaceholder,
31
- ssn: t.ssn,
32
- ssnShow: t.ssnShow,
33
- ssnHide: t.ssnHide,
34
- homeAddress: t.homeAddress,
35
- city: t.city,
36
- state: t.state,
37
- statePlaceholder: t.statePlaceholder,
38
- zipCode: t.zipCode,
39
- mobilePhoneNumber: t.mobilePhoneNumber,
40
- workEmail: t.workEmail,
41
- ownsOver25Question: t.ownsOver25Question,
42
- ownsOver25SummaryLabel: t.ownsOver25SummaryLabel,
43
- ownsOver25Yes: t.ownsOver25Yes,
44
- ownsOver25No: t.ownsOver25No,
45
- ownershipPercentage: t.ownershipPercentage,
46
- ownershipPercentagePlaceholder: t.ownershipPercentagePlaceholder
26
+ ...t,
27
+ firstName: n.firstName,
28
+ lastName: n.lastName,
29
+ dateOfBirth: n.dateOfBirth,
30
+ dateOfBirthPlaceholder: n.dateOfBirthPlaceholder,
31
+ ssn: n.ssn,
32
+ ssnShow: n.ssnShow,
33
+ ssnHide: n.ssnHide,
34
+ homeAddress: n.homeAddress,
35
+ city: n.city,
36
+ state: n.state,
37
+ statePlaceholder: n.statePlaceholder,
38
+ zipCode: n.zipCode,
39
+ mobilePhoneNumber: n.mobilePhoneNumber,
40
+ workEmail: n.workEmail,
41
+ ownsOver25Question: n.ownsOver25Question,
42
+ ownsOver25SummaryLabel: n.ownsOver25SummaryLabel,
43
+ ownsOver25Yes: n.ownsOver25Yes,
44
+ ownsOver25No: n.ownsOver25No,
45
+ ownershipPercentage: n.ownershipPercentage,
46
+ ownershipPercentagePlaceholder: n.ownershipPercentagePlaceholder
47
47
  };
48
48
  }
49
- function f(t, n) {
50
- let r = d(n.labels), i = n.stateOptions.find((e) => e.value === t.state)?.label ?? t.state;
49
+ function f(e, t) {
50
+ let r = d(t.labels), i = t.stateOptions.find((t) => t.value === e.state)?.label ?? e.state;
51
51
  return [
52
52
  {
53
53
  label: r.firstName,
54
- value: t.firstName,
54
+ value: e.firstName,
55
55
  testId: "about-you-summary-first-name"
56
56
  },
57
57
  {
58
58
  label: r.lastName,
59
- value: t.lastName,
59
+ value: e.lastName,
60
60
  testId: "about-you-summary-last-name"
61
61
  },
62
62
  {
63
63
  label: r.dateOfBirth,
64
- value: l(t.dateOfBirth),
64
+ value: l(e.dateOfBirth),
65
65
  testId: "about-you-summary-dob"
66
66
  },
67
67
  {
68
68
  label: r.ssn,
69
- value: t.ssn ? s(t.ssn) : t.ssnOnFileLast4 ? e(t.ssnOnFileLast4) : "",
69
+ value: e.ssn ? s(e.ssn) : e.ssnOnFileLast4 ? n(e.ssnOnFileLast4) : "",
70
70
  testId: "about-you-summary-ssn",
71
71
  valueMonospace: !0
72
72
  },
73
73
  {
74
74
  label: r.homeAddress,
75
- value: t.homeAddress,
75
+ value: e.homeAddress,
76
76
  testId: "about-you-summary-home-address"
77
77
  },
78
78
  {
79
79
  label: r.city,
80
- value: t.city,
80
+ value: e.city,
81
81
  testId: "about-you-summary-city"
82
82
  },
83
83
  {
@@ -87,72 +87,72 @@ function f(t, n) {
87
87
  },
88
88
  {
89
89
  label: r.zipCode,
90
- value: t.zipCode,
90
+ value: e.zipCode,
91
91
  testId: "about-you-summary-zip-code"
92
92
  },
93
93
  {
94
94
  label: r.mobilePhoneNumber,
95
- value: t.mobilePhoneNumber,
95
+ value: e.mobilePhoneNumber,
96
96
  testId: "about-you-summary-mobile-phone"
97
97
  },
98
98
  {
99
99
  label: r.workEmail,
100
- value: t.workEmail,
100
+ value: e.workEmail,
101
101
  testId: "about-you-summary-email"
102
102
  },
103
103
  {
104
104
  label: r.ownershipPercentage,
105
- value: t.ownershipPercentage === null ? "" : `${t.ownershipPercentage}%`,
105
+ value: e.ownershipPercentage === null ? "" : `${e.ownershipPercentage}%`,
106
106
  testId: "about-you-summary-ownership-percentage"
107
107
  }
108
108
  ];
109
109
  }
110
- function p(e, t, i) {
111
- let a = (n) => (r) => t({
110
+ function p(e, t, n) {
111
+ let r = (n) => (r) => t({
112
112
  ...e,
113
113
  [n]: r
114
114
  });
115
115
  return {
116
116
  firstName: {
117
117
  value: e.firstName,
118
- onValueChange: a("firstName")
118
+ onValueChange: r("firstName")
119
119
  },
120
120
  lastName: {
121
121
  value: e.lastName,
122
- onValueChange: a("lastName")
122
+ onValueChange: r("lastName")
123
123
  },
124
124
  dateOfBirth: {
125
125
  value: e.dateOfBirth,
126
- onValueChange: a("dateOfBirth")
126
+ onValueChange: r("dateOfBirth")
127
127
  },
128
128
  ssn: {
129
129
  value: e.ssn,
130
- onValueChange: (e) => a("ssn")(c(e))
130
+ onValueChange: (e) => r("ssn")(c(e))
131
131
  },
132
132
  homeAddress: {
133
133
  value: e.homeAddress,
134
- onValueChange: a("homeAddress")
134
+ onValueChange: r("homeAddress")
135
135
  },
136
136
  city: {
137
137
  value: e.city,
138
- onValueChange: a("city")
138
+ onValueChange: r("city")
139
139
  },
140
140
  state: {
141
141
  value: e.state,
142
- onValueChange: a("state"),
143
- options: i.stateOptions
142
+ onValueChange: r("state"),
143
+ options: n.stateOptions
144
144
  },
145
145
  zipCode: {
146
146
  value: e.zipCode,
147
- onValueChange: (e) => a("zipCode")(r(e))
147
+ onValueChange: (e) => r("zipCode")(a(e))
148
148
  },
149
149
  mobilePhoneNumber: {
150
150
  value: e.mobilePhoneNumber,
151
- onValueChange: (e) => a("mobilePhoneNumber")(n(e))
151
+ onValueChange: (e) => r("mobilePhoneNumber")(i(e))
152
152
  },
153
153
  workEmail: {
154
154
  value: e.workEmail,
155
- onValueChange: a("workEmail")
155
+ onValueChange: r("workEmail")
156
156
  },
157
157
  ownsOver25Percent: {
158
158
  value: e.ownsOver25Percent === null ? "" : e.ownsOver25Percent ? "yes" : "no",
@@ -164,16 +164,16 @@ function p(e, t, i) {
164
164
  },
165
165
  ownershipPercentage: {
166
166
  value: e.ownershipPercentage,
167
- onValueChange: a("ownershipPercentage")
167
+ onValueChange: r("ownershipPercentage")
168
168
  }
169
169
  };
170
170
  }
171
- function m(e, n, r) {
172
- let i = u(r);
171
+ function m(e, t, n) {
172
+ let i = u(n);
173
173
  return {
174
174
  masked: s(e),
175
175
  formatted: o(e),
176
- ...t(n, i.ssnOnFileTemplate)
176
+ ...r(t, i.ssnOnFileTemplate)
177
177
  };
178
178
  }
179
179
  //#endregion
@@ -2,17 +2,17 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { bankAccountOnboardingTestIds as e } from "./index12.js";
6
- import { getMaxBirthDate as t } from "./index9.js";
7
- import { buildPersonalDetailsSchema as n } from "./index10.js";
8
- import { AboutYouPanel as r } from "../../ui/dist/index23.js";
5
+ import { AboutYouPanel as e } from "../../ui/dist/index25.js";
9
6
  import "../../ui/dist/index.js";
7
+ import { bankAccountOnboardingTestIds as t } from "./index12.js";
8
+ import { getMaxBirthDate as n } from "./index9.js";
9
+ import { buildPersonalDetailsSchema as r } from "./index10.js";
10
10
  import { buildAboutYouEditFields as i, buildAboutYouPanelLabels as a, buildAboutYouSummaryRows as o, buildSsnDisplayValues as s, mergePersonalDetailsLabels as c } from "./index14.js";
11
11
  import { useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
12
12
  import { jsx as p } from "react/jsx-runtime";
13
13
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js
14
14
  function m({ value: m, onValueChange: h, onSnapshotChange: g, stateOptions: _, isSubmitting: v, labels: y }) {
15
- let b = u(() => c(y), [y]), x = u(() => n(b), [b]).safeParse(m), S = x.success ? x.data : null, C = JSON.stringify({
15
+ let b = u(() => c(y), [y]), x = u(() => r(b), [b]).safeParse(m), S = x.success ? x.data : null, C = JSON.stringify({
16
16
  ...S,
17
17
  dateOfBirth: S?.dateOfBirth?.toISOString()
18
18
  }), w = d(g);
@@ -34,8 +34,8 @@ function m({ value: m, onValueChange: h, onSnapshotChange: g, stateOptions: _, i
34
34
  m.ssn,
35
35
  m.ssnOnFileLast4,
36
36
  y
37
- ]), P = u(() => t(), []);
38
- return /* @__PURE__ */ p(r, {
37
+ ]), P = u(() => n(), []);
38
+ return /* @__PURE__ */ p(e, {
39
39
  isEditing: T,
40
40
  onEditClick: () => E(!0),
41
41
  summaryRows: j,
@@ -53,12 +53,12 @@ function m({ value: m, onValueChange: h, onSnapshotChange: g, stateOptions: _, i
53
53
  ssnPlaceholder: N.placeholder,
54
54
  ssnHelpText: N.helpText,
55
55
  testIds: {
56
- root: e.aboutYouPanel,
57
- editButton: e.aboutYouEditButton,
58
- summary: { root: e.aboutYouSummary },
56
+ root: t.aboutYouPanel,
57
+ editButton: t.aboutYouEditButton,
58
+ summary: { root: t.aboutYouSummary },
59
59
  editForm: {
60
- root: e.aboutYouEditForm,
61
- ownsOver25Question: e.aboutYouOwnsOver25Question
60
+ root: t.aboutYouEditForm,
61
+ ownsOver25Question: t.aboutYouOwnsOver25Question
62
62
  }
63
63
  }
64
64
  });
@@ -1,9 +1,9 @@
1
- import { storedIdentifierFieldDisplay as e } from "./index7.js";
2
- import { getMaxBirthDate as t, isAtLeastMinOwnerAge as n } from "./index9.js";
3
- import { formatPhoneNumberInput as r } from "./index2.js";
4
- import { sanitizeZipCodeInput as i } from "./index3.js";
5
- import { ADDITIONAL_OWNERS_LABELS_EN as a } from "../../ui/dist/index5.js";
1
+ import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../ui/dist/index5.js";
6
2
  import "../../ui/dist/index.js";
3
+ import { storedIdentifierFieldDisplay as t } from "./index7.js";
4
+ import { getMaxBirthDate as n, isAtLeastMinOwnerAge as r } from "./index9.js";
5
+ import { formatPhoneNumberInput as i } from "./index2.js";
6
+ import { sanitizeZipCodeInput as a } from "./index3.js";
7
7
  import { formatSsnInput as o, maskSsn as s, sanitizeSsnDigits as c } from "./index4.js";
8
8
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js
9
9
  var l = {
@@ -23,25 +23,25 @@ function u(e) {
23
23
  return {
24
24
  ...e,
25
25
  ssn: c(e.ssn),
26
- zipCode: i(e.zipCode),
27
- mobilePhoneNumber: r(e.mobilePhoneNumber),
26
+ zipCode: a(e.zipCode),
27
+ mobilePhoneNumber: i(e.mobilePhoneNumber),
28
28
  ownsOver25Percent: e.ownershipPercentage === null ? null : e.ownershipPercentage >= 25
29
29
  };
30
30
  }
31
- function d(r, i) {
31
+ function d(i, a) {
32
32
  let c = {
33
- ...a,
34
- ...i
35
- }, l = e(r.ssnOnFileLast4, c.ssnOnFileTemplate);
33
+ ...e,
34
+ ...a
35
+ }, l = t(i.ssnOnFileLast4, c.ssnOnFileTemplate);
36
36
  return {
37
37
  ssnRequired: l.required,
38
38
  ssnPlaceholder: l.placeholder,
39
39
  ssnHelpText: l.helpText,
40
- dateOfBirthInvalid: r.dateOfBirth !== void 0 && !n(r.dateOfBirth),
41
- ownershipPercentageInvalid: r.ownershipPercentage !== null && r.ownershipPercentage < 25,
42
- maxBirthDate: t(),
43
- ssnMaskedDisplay: s(r.ssn),
44
- ssnFormattedDisplay: o(r.ssn)
40
+ dateOfBirthInvalid: i.dateOfBirth !== void 0 && !r(i.dateOfBirth),
41
+ ownershipPercentageInvalid: i.ownershipPercentage !== null && i.ownershipPercentage < 25,
42
+ maxBirthDate: n(),
43
+ ssnMaskedDisplay: s(i.ssn),
44
+ ssnFormattedDisplay: o(i.ssn)
45
45
  };
46
46
  }
47
47
  function f(e, t, n) {