@axos-web-dev/shared-components 1.0.99 → 1.0.100-dev.2

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 (160) hide show
  1. package/dist/ATMLocator/ATMLocator.js +8 -1
  2. package/dist/ArticlesSet/ArticlesSet.js +2 -2
  3. package/dist/Auth/ErrorAlert.js +10 -3
  4. package/dist/Blockquote/Blockquote.module.js +3 -3
  5. package/dist/Button/Button.js +10 -3
  6. package/dist/Calculators/Calculator.js +22 -3
  7. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
  8. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
  9. package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
  10. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
  11. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
  12. package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
  13. package/dist/Calculators/index.d.ts +2 -1
  14. package/dist/Calculators/index.js +3 -1
  15. package/dist/Carousel/index.js +10 -3
  16. package/dist/Chatbot/Bubble.css.d.ts +1 -0
  17. package/dist/Chatbot/Bubble.css.js +5 -0
  18. package/dist/Chatbot/Bubble.d.ts +3 -0
  19. package/dist/Chatbot/Bubble.js +48 -0
  20. package/dist/Chatbot/Chat.d.ts +1 -0
  21. package/dist/Chatbot/Chat.js +165 -0
  22. package/dist/Chatbot/ChatWindow.css.d.ts +11 -0
  23. package/dist/Chatbot/ChatWindow.css.js +25 -0
  24. package/dist/Chatbot/ChatWindow.d.ts +23 -0
  25. package/dist/Chatbot/ChatWindow.js +202 -0
  26. package/dist/Chatbot/Chatbot.css.d.ts +1 -0
  27. package/dist/Chatbot/Chatbot.css.js +5 -0
  28. package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
  29. package/dist/Chatbot/Chatbot.d.ts +1 -0
  30. package/dist/Chatbot/Chatbot.js +39 -0
  31. package/dist/Chatbot/authenticate.d.ts +3 -0
  32. package/dist/Chatbot/authenticate.js +16 -0
  33. package/dist/Chatbot/index.d.ts +9 -0
  34. package/dist/Chatbot/index.js +31 -0
  35. package/dist/Chatbot/store/chat.d.ts +9 -0
  36. package/dist/Chatbot/store/chat.js +11 -0
  37. package/dist/Chatbot/store/messages.d.ts +14 -0
  38. package/dist/Chatbot/store/messages.js +12 -0
  39. package/dist/Chatbot/useHeadlessChat.d.ts +22 -0
  40. package/dist/Chatbot/useHeadlessChat.js +157 -0
  41. package/dist/Chevron/index.js +10 -3
  42. package/dist/Comparison/Comparison.js +10 -3
  43. package/dist/ExecutiveBio/ExecutiveBio.js +10 -3
  44. package/dist/FaqAccordion/index.js +10 -3
  45. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +10 -3
  46. package/dist/Forms/ApplicationStart.d.ts +1 -1
  47. package/dist/Forms/ApplicationStart.js +111 -89
  48. package/dist/Forms/ApplyNow.d.ts +2 -2
  49. package/dist/Forms/ApplyNow.js +178 -146
  50. package/dist/Forms/ClearingForm.d.ts +1 -1
  51. package/dist/Forms/ClearingForm.js +184 -162
  52. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  53. package/dist/Forms/CommercialDeposits.js +201 -179
  54. package/dist/Forms/CommercialLending.d.ts +1 -1
  55. package/dist/Forms/CommercialLending.js +278 -256
  56. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  57. package/dist/Forms/CommercialPremiumFinance.js +128 -106
  58. package/dist/Forms/ContactCompany.d.ts +1 -1
  59. package/dist/Forms/ContactCompany.js +113 -91
  60. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  61. package/dist/Forms/ContactCompanyTitle.js +127 -105
  62. package/dist/Forms/ContactUs.d.ts +1 -1
  63. package/dist/Forms/ContactUs.js +99 -77
  64. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  65. package/dist/Forms/ContactUsAAS.js +180 -158
  66. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  67. package/dist/Forms/ContactUsBusiness.js +143 -115
  68. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  69. package/dist/Forms/ContactUsBusinessNameEmail.js +112 -84
  70. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  71. package/dist/Forms/ContactUsLVF.js +127 -101
  72. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  73. package/dist/Forms/ContactUsNMLSId.js +126 -98
  74. package/dist/Forms/CpraRequest.d.ts +1 -1
  75. package/dist/Forms/CpraRequest.js +641 -619
  76. package/dist/Forms/CraPublicFile.d.ts +1 -1
  77. package/dist/Forms/CraPublicFile.js +118 -90
  78. package/dist/Forms/DealerServices.d.ts +1 -1
  79. package/dist/Forms/DealerServices.js +225 -204
  80. package/dist/Forms/EmailOnly.d.ts +1 -1
  81. package/dist/Forms/EmailOnly.js +65 -39
  82. package/dist/Forms/EmailUs.d.ts +1 -1
  83. package/dist/Forms/EmailUs.js +75 -53
  84. package/dist/Forms/FormProps.d.ts +3 -0
  85. package/dist/Forms/Forms.css.d.ts +18 -0
  86. package/dist/Forms/Forms.css.js +44 -38
  87. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  88. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  89. package/dist/Forms/HoneyPot/index.d.ts +23 -0
  90. package/dist/Forms/HoneyPot/index.js +69 -0
  91. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  92. package/dist/Forms/MortgageRate/MortgageRateForm.js +376 -348
  93. package/dist/Forms/MortgageRate/MortgageRateWatch.js +10 -3
  94. package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
  95. package/dist/Forms/MortgageWarehouseLending.js +343 -0
  96. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  97. package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
  98. package/dist/Forms/ScheduleCall.d.ts +1 -1
  99. package/dist/Forms/ScheduleCall.js +156 -134
  100. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  101. package/dist/Forms/ScheduleCallPremier.js +178 -156
  102. package/dist/Forms/SuccesForm.js +13 -6
  103. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  104. package/dist/Forms/VendorQuestionnaire.js +817 -795
  105. package/dist/Forms/WcplSurvey.d.ts +1 -1
  106. package/dist/Forms/WcplSurvey.js +112 -90
  107. package/dist/Forms/applynow-utils.d.ts +1 -0
  108. package/dist/Forms/applynow-utils.js +48 -0
  109. package/dist/Forms/index.d.ts +3 -0
  110. package/dist/Forms/index.js +12 -2
  111. package/dist/HeroBanner/HeroBanner.js +42 -1
  112. package/dist/Hyperlink/index.js +10 -3
  113. package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
  114. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
  115. package/dist/ImageLink/ImageLink.js +10 -3
  116. package/dist/ImageLink/ImageLinkSet.js +10 -3
  117. package/dist/ImageLink/index.js +10 -3
  118. package/dist/Input/Input.js +3 -1
  119. package/dist/Insight/Featured/CategorySelector.js +10 -3
  120. package/dist/Insight/Featured/Featured.js +10 -3
  121. package/dist/Insight/Featured/Header.js +10 -3
  122. package/dist/Modal/Modal.js +10 -3
  123. package/dist/NavigationMenu/AxosALTS/NavData.js +10 -3
  124. package/dist/NavigationMenu/AxosALTS/index.js +10 -3
  125. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
  126. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
  127. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +25 -7
  128. package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
  129. package/dist/NavigationMenu/AxosBank/NavData.js +10 -3
  130. package/dist/NavigationMenu/AxosBank/SubNavBar.js +32 -8
  131. package/dist/NavigationMenu/AxosBank/index.js +10 -3
  132. package/dist/NavigationMenu/LaVictoire/NavData.js +10 -3
  133. package/dist/NavigationMenu/LaVictoire/index.js +10 -3
  134. package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
  135. package/dist/NavigationMenu/NavDataJson.js +315 -0
  136. package/dist/NavigationMenu/Navbar.d.ts +5 -0
  137. package/dist/NavigationMenu/Navbar.js +201 -0
  138. package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
  139. package/dist/NavigationMenu/SignInNavButton.js +369 -0
  140. package/dist/SetContainer/SetContainer.js +10 -3
  141. package/dist/SocialMediaBar/iconsRepository.js +10 -3
  142. package/dist/Table/Table.d.ts +1 -1
  143. package/dist/VideoTile/VideoTile.js +10 -3
  144. package/dist/VideoWrapper/index.js +10 -3
  145. package/dist/assets/Blockquote/Blockquote.css.css +68 -68
  146. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
  147. package/dist/assets/Chatbot/Bubble.css +40 -0
  148. package/dist/assets/Chatbot/ChatWindow.css +107 -0
  149. package/dist/assets/Forms/Forms.css +135 -105
  150. package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
  151. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -191
  152. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -473
  153. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
  154. package/dist/icons/Logos/AXB.d.ts +8 -0
  155. package/dist/icons/Logos/AXB.js +74 -0
  156. package/dist/main.d.ts +1 -0
  157. package/dist/main.js +43 -3
  158. package/dist/utils/allowedAxosDomains.js +2 -1
  159. package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
  160. package/package.json +136 -133
@@ -33,6 +33,7 @@ import { useForm, FormProvider } from "react-hook-form";
33
33
  import { z } from "zod";
34
34
  import { Roles } from "./FormEnums.js";
35
35
  import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
36
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
36
37
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
37
38
  const ContactUsAAS = ({
38
39
  icon = false,
@@ -46,6 +47,7 @@ const ContactUsAAS = ({
46
47
  description,
47
48
  callToAction,
48
49
  validateEmail,
50
+ onValidate,
49
51
  id
50
52
  }) => {
51
53
  const schema = z.object({
@@ -81,9 +83,17 @@ const ContactUsAAS = ({
81
83
  Role__c: z.string().min(1, { message: "Role is required." }).refine((val) => Roles.includes(val), "Role is required"),
82
84
  description: z.optional(z.string().trim().max(32e3))
83
85
  });
86
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
87
+ if (!isValidHoneyPot(data)) {
88
+ ctx.addIssue({
89
+ code: z.ZodIssueCode.custom,
90
+ message: "fields are not valid."
91
+ });
92
+ }
93
+ });
84
94
  const methods = useForm({
85
95
  resolver: zodResolver(
86
- schema.merge(SalesforceSchema),
96
+ gen_schema,
87
97
  {
88
98
  async: true
89
99
  },
@@ -116,163 +126,175 @@ const ContactUsAAS = ({
116
126
  }
117
127
  )
118
128
  ] }),
119
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
120
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
121
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
122
- Input,
123
- {
124
- id: "first_name",
125
- ...register("first_name", { required: true }),
126
- label: "First Name*",
127
- sizes: "medium",
128
- placeholder: "",
129
- required: true,
130
- error: !!errors.first_name,
131
- helperText: errors.first_name?.message,
132
- variant
133
- }
134
- ) }),
135
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
136
- Input,
137
- {
138
- id: "last_name",
139
- ...register("last_name", { required: true }),
140
- label: "Last Name*",
141
- sizes: "medium",
142
- placeholder: "",
143
- required: true,
144
- error: !!errors.last_name,
145
- helperText: errors.last_name?.message,
146
- variant
147
- }
148
- ) }),
149
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
150
- Input,
151
- {
152
- id: "email",
153
- ...register("email", {
154
- required: true
155
- }),
156
- type: "email",
157
- label: "Email*",
158
- sizes: "medium",
159
- placeholder: "",
160
- required: true,
161
- error: !!errors.email,
162
- helperText: errors.email?.message,
163
- variant
164
- }
165
- ) }),
166
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
167
- InputPhone,
168
- {
169
- id: "phone",
170
- ...register("phone", {
171
- required: true,
172
- maxLength: 12
173
- }),
174
- label: "Phone*",
175
- sizes: "medium",
176
- placeholder: "",
177
- type: "tel",
178
- required: true,
179
- error: !!errors.phone,
180
- helperText: errors.phone?.message,
181
- variant
182
- }
183
- ) }),
184
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
185
- Input,
186
- {
187
- id: "company",
188
- ...register("company"),
189
- label: "Company",
190
- sizes: "medium",
191
- placeholder: "",
192
- error: !!errors.company,
193
- helperText: errors.company?.message,
194
- variant
195
- }
196
- ) }),
197
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
198
- Dropdown,
199
- {
200
- id: "Current_Assets_Under_Management__c",
201
- ...register("Current_Assets_Under_Management__c"),
202
- label: "Current AUM",
203
- sizes: "medium",
204
- error: !!errors.Current_Assets_Under_Management__c,
205
- helperText: errors.Current_Assets_Under_Management__c?.message,
206
- variant,
207
- defaultValue: "",
208
- children: [
209
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
210
- /* @__PURE__ */ jsx("option", { value: "$0 - $25M", children: "$0 — $25M" }),
211
- /* @__PURE__ */ jsx("option", { value: "$26M - $150M", children: "$26M — $150M" }),
212
- /* @__PURE__ */ jsx("option", { value: "$151M - $500M", children: "$151M — $500M" }),
213
- /* @__PURE__ */ jsx("option", { value: "$501M - $1B", children: "$501M — $1B" }),
214
- /* @__PURE__ */ jsx("option", { value: "$1B+", children: "$1B+" })
215
- ]
216
- }
217
- ) }),
218
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
219
- Dropdown,
220
- {
221
- id: "Role__c",
222
- ...register("Role__c", {
223
- required: true
224
- }),
225
- label: "What best describes your role?*",
226
- sizes: "medium",
227
- required: true,
228
- error: !!errors.Role__c,
229
- helperText: errors.Role__c?.message,
230
- variant,
231
- defaultValue: "Select option",
232
- children: [
233
- /* @__PURE__ */ jsx("option", { value: "Select option", disabled: true, children: "Select Option" }),
234
- /* @__PURE__ */ jsx("option", { value: "RIA Principal", children: "RIA Principal" }),
235
- /* @__PURE__ */ jsx("option", { value: "Advisor (IAR)", children: "Advisor (IAR)" }),
236
- /* @__PURE__ */ jsx("option", { value: "Broker-Dealer Affiliated Advisor", children: "Broker-Dealer Affiliated Advisor" }),
237
- /* @__PURE__ */ jsx("option", { value: "I am not a Financial Advisor", children: "I am not a Financial Advisor" }),
238
- /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
239
- ]
240
- }
241
- ) }),
242
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
243
- InputTextArea,
244
- {
245
- id: "description",
246
- ...register("description"),
247
- label: "Comments",
248
- sizes: "medium",
249
- placeholder: "",
250
- error: !!errors.description,
251
- helperText: errors.description?.message,
252
- variant,
253
- rows: 1
254
- }
255
- ) })
256
- ] }),
257
- children,
258
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
259
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
260
- LoadingIndicator,
261
- {
262
- style: { marginInline: "auto" },
263
- variant
264
- }
265
- ) : /* @__PURE__ */ jsx(
266
- Button,
267
- {
268
- color: getVariant(callToAction?.variant),
269
- as: "button",
270
- type: "submit",
271
- disabled: !isValid || isSubmitting,
272
- children: callToAction?.displayText
273
- }
274
- ) }) })
275
- ] })
129
+ /* @__PURE__ */ jsxs(
130
+ "form",
131
+ {
132
+ className: form,
133
+ onSubmit: async (e) => {
134
+ onValidate && onValidate(e);
135
+ await handleSubmit(submitForm)(e);
136
+ e.preventDefault();
137
+ },
138
+ children: [
139
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
140
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
141
+ Input,
142
+ {
143
+ id: "first_name",
144
+ ...register("first_name", { required: true }),
145
+ label: "First Name*",
146
+ sizes: "medium",
147
+ placeholder: "",
148
+ required: true,
149
+ error: !!errors.first_name,
150
+ helperText: errors.first_name?.message,
151
+ variant
152
+ }
153
+ ) }),
154
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
155
+ Input,
156
+ {
157
+ id: "last_name",
158
+ ...register("last_name", { required: true }),
159
+ label: "Last Name*",
160
+ sizes: "medium",
161
+ placeholder: "",
162
+ required: true,
163
+ error: !!errors.last_name,
164
+ helperText: errors.last_name?.message,
165
+ variant
166
+ }
167
+ ) }),
168
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
169
+ Input,
170
+ {
171
+ id: "email",
172
+ ...register("email", {
173
+ required: true
174
+ }),
175
+ type: "email",
176
+ label: "Email*",
177
+ sizes: "medium",
178
+ placeholder: "",
179
+ required: true,
180
+ error: !!errors.email,
181
+ helperText: errors.email?.message,
182
+ variant
183
+ }
184
+ ) }),
185
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
186
+ InputPhone,
187
+ {
188
+ id: "phone",
189
+ ...register("phone", {
190
+ required: true,
191
+ maxLength: 12
192
+ }),
193
+ label: "Phone*",
194
+ sizes: "medium",
195
+ placeholder: "",
196
+ type: "tel",
197
+ required: true,
198
+ error: !!errors.phone,
199
+ helperText: errors.phone?.message,
200
+ variant
201
+ }
202
+ ) }),
203
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
204
+ Input,
205
+ {
206
+ id: "company",
207
+ ...register("company"),
208
+ label: "Company",
209
+ sizes: "medium",
210
+ placeholder: "",
211
+ error: !!errors.company,
212
+ helperText: errors.company?.message,
213
+ variant
214
+ }
215
+ ) }),
216
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
217
+ Dropdown,
218
+ {
219
+ id: "Current_Assets_Under_Management__c",
220
+ ...register("Current_Assets_Under_Management__c"),
221
+ label: "Current AUM",
222
+ sizes: "medium",
223
+ error: !!errors.Current_Assets_Under_Management__c,
224
+ helperText: errors.Current_Assets_Under_Management__c?.message,
225
+ variant,
226
+ defaultValue: "",
227
+ children: [
228
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
229
+ /* @__PURE__ */ jsx("option", { value: "$0 - $25M", children: "$0 — $25M" }),
230
+ /* @__PURE__ */ jsx("option", { value: "$26M - $150M", children: "$26M — $150M" }),
231
+ /* @__PURE__ */ jsx("option", { value: "$151M - $500M", children: "$151M — $500M" }),
232
+ /* @__PURE__ */ jsx("option", { value: "$501M - $1B", children: "$501M — $1B" }),
233
+ /* @__PURE__ */ jsx("option", { value: "$1B+", children: "$1B+" })
234
+ ]
235
+ }
236
+ ) }),
237
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
238
+ Dropdown,
239
+ {
240
+ id: "Role__c",
241
+ ...register("Role__c", {
242
+ required: true
243
+ }),
244
+ label: "What best describes your role?*",
245
+ sizes: "medium",
246
+ required: true,
247
+ error: !!errors.Role__c,
248
+ helperText: errors.Role__c?.message,
249
+ variant,
250
+ defaultValue: "Select option",
251
+ children: [
252
+ /* @__PURE__ */ jsx("option", { value: "Select option", disabled: true, children: "Select Option" }),
253
+ /* @__PURE__ */ jsx("option", { value: "RIA Principal", children: "RIA Principal" }),
254
+ /* @__PURE__ */ jsx("option", { value: "Advisor (IAR)", children: "Advisor (IAR)" }),
255
+ /* @__PURE__ */ jsx("option", { value: "Broker-Dealer Affiliated Advisor", children: "Broker-Dealer Affiliated Advisor" }),
256
+ /* @__PURE__ */ jsx("option", { value: "I am not a Financial Advisor", children: "I am not a Financial Advisor" }),
257
+ /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
258
+ ]
259
+ }
260
+ ) }),
261
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
262
+ InputTextArea,
263
+ {
264
+ id: "description",
265
+ ...register("description"),
266
+ label: "Comments",
267
+ sizes: "medium",
268
+ placeholder: "",
269
+ error: !!errors.description,
270
+ helperText: errors.description?.message,
271
+ variant,
272
+ rows: 1
273
+ }
274
+ ) }),
275
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant })
276
+ ] }),
277
+ children,
278
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
279
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
280
+ LoadingIndicator,
281
+ {
282
+ style: { marginInline: "auto" },
283
+ variant
284
+ }
285
+ ) : /* @__PURE__ */ jsx(
286
+ Button,
287
+ {
288
+ color: getVariant(callToAction?.variant),
289
+ as: "button",
290
+ type: "submit",
291
+ disabled: !isValid || isSubmitting,
292
+ children: callToAction?.displayText
293
+ }
294
+ ) }) })
295
+ ]
296
+ }
297
+ )
276
298
  ] }) }) }, id);
277
299
  };
278
300
  export {
@@ -8,4 +8,4 @@ export type ContactUsBusinessNmlsIdInputs = {
8
8
  phone: string;
9
9
  Company_NMLS_ID__c: string;
10
10
  };
11
- export declare const ContactUsBusiness: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ContactUsBusiness: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;