@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 clsx from "clsx";
33
33
  import { useForm, FormProvider } from "react-hook-form";
34
34
  import * as z from "zod";
35
35
  import { iconForm, headerForm, form, descriptionField, headerContainer, xc_input, fullRowForm, ro_input, 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 options = [
38
39
  { label: "Active Trading", value: "Active Trading" },
@@ -61,6 +62,7 @@ const ClearingForm = ({
61
62
  description,
62
63
  callToAction,
63
64
  validateEmail,
65
+ onValidate,
64
66
  id
65
67
  }) => {
66
68
  const schema = z.object({
@@ -113,8 +115,16 @@ const ClearingForm = ({
113
115
  setRequiredTOB(true);
114
116
  }
115
117
  };
118
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
119
+ if (!isValidHoneyPot(data)) {
120
+ ctx.addIssue({
121
+ code: z.ZodIssueCode.custom,
122
+ message: "fields are not valid."
123
+ });
124
+ }
125
+ });
116
126
  const methods = useForm({
117
- resolver: zodResolver(schema.merge(SalesforceSchema), {
127
+ resolver: zodResolver(gen_schema, {
118
128
  async: true
119
129
  }),
120
130
  mode: "all",
@@ -178,170 +188,182 @@ const ClearingForm = ({
178
188
  }
179
189
  )
180
190
  ] }),
181
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
182
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
183
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
184
- Input,
185
- {
186
- id: "first_name",
187
- ...register("first_name", {
188
- required: "First Name is required"
189
- }),
190
- label: "First Name",
191
- sizes: "medium",
192
- required: true,
193
- error: !!errors.first_name,
194
- helperText: errors.first_name?.message,
195
- variant
196
- }
197
- ) }),
198
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
199
- Input,
200
- {
201
- id: "last_name",
202
- ...register("last_name", { required: true }),
203
- label: "Last Name",
204
- sizes: "medium",
205
- required: true,
206
- error: !!errors.last_name,
207
- helperText: errors.last_name?.message,
208
- variant
209
- }
210
- ) }),
211
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
212
- Input,
213
- {
214
- id: "email",
215
- ...register("email", {
216
- required: true,
217
- validate: {
218
- isValid: associatedEmail
191
+ /* @__PURE__ */ jsxs(
192
+ "form",
193
+ {
194
+ className: form,
195
+ onSubmit: async (e) => {
196
+ onValidate && onValidate(e);
197
+ await handleSubmit(submitForm)(e);
198
+ e.preventDefault();
199
+ },
200
+ children: [
201
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
202
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
203
+ Input,
204
+ {
205
+ id: "first_name",
206
+ ...register("first_name", {
207
+ required: "First Name is required"
208
+ }),
209
+ label: "First Name",
210
+ sizes: "medium",
211
+ required: true,
212
+ error: !!errors.first_name,
213
+ helperText: errors.first_name?.message,
214
+ variant
219
215
  }
220
- }),
221
- label: "Email",
222
- sizes: "medium",
223
- required: true,
224
- error: !!errors.email,
225
- helperText: errors.email?.message,
226
- variant
227
- }
228
- ) }),
229
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
230
- InputPhone,
231
- {
232
- id: "phone",
233
- ...register("phone", { required: true, maxLength: 12 }),
234
- label: "Phone",
235
- sizes: "medium",
236
- required: true,
237
- error: !!errors.phone,
238
- helperText: errors.phone?.message,
239
- variant
240
- }
241
- ) }),
242
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
243
- Input,
244
- {
245
- id: "company",
246
- ...register("company", { required: true }),
247
- label: "Broker-Dealer Name",
248
- sizes: "medium",
249
- required: true,
250
- error: !!errors.company,
251
- helperText: errors.company?.message,
252
- variant
253
- }
254
- ) }),
255
- /* @__PURE__ */ jsx("div", { className: xc_input, children: /* @__PURE__ */ jsxs(
256
- Dropdown,
257
- {
258
- id: "Current_Assets_Under_Management__c",
259
- ...register("Current_Assets_Under_Management__c", {
260
- required: true
261
- }),
262
- label: "Assets Under Management",
263
- sizes: "medium",
264
- required: true,
265
- error: !!errors.Current_Assets_Under_Management__c,
266
- helperText: errors.Current_Assets_Under_Management__c?.message,
267
- variant,
268
- defaultValue: "Select option",
269
- onChange: handleDropdownChange,
270
- onClick: handleAUMerror,
271
- onBlur: handleAUMerror,
272
- children: [
273
- /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
274
- /* @__PURE__ */ jsx("option", { value: "$0 - $100MM", children: "$0 - $100MM" }),
275
- /* @__PURE__ */ jsx("option", { value: "$101MM - $200MM", children: "$101MM - $200MM" }),
276
- /* @__PURE__ */ jsx("option", { value: "$201MM - $500MM", children: "$201MM - $500MM" }),
277
- /* @__PURE__ */ jsx("option", { value: "$501MM - $750MM", children: "$501MM - $750MM" }),
278
- /* @__PURE__ */ jsx("option", { value: "$751MM - $1B", children: "$751MM - $1B" }),
279
- /* @__PURE__ */ jsx("option", { value: "$1B -$2B", children: "$1B -$2B" }),
280
- /* @__PURE__ */ jsx("option", { value: "$2B+", children: "$2B+" })
281
- ]
282
- }
283
- ) }),
284
- /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
285
- /* @__PURE__ */ jsx(
286
- Input,
287
- {
288
- id: "business_type_selection",
289
- label: "Type of Business",
290
- onFocus: handleShowBusinessType,
291
- onBlur: handleTOBerrors,
292
- sizes: "medium",
293
- placeholder: "Select All That Apply",
294
- error: !!errors.Business_Type__c,
295
- readOnly: true,
296
- className: ro_input
297
- }
298
- ),
299
- showBusinessTypes && /* @__PURE__ */ jsx(
300
- CheckboxGroup,
216
+ ) }),
217
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
218
+ Input,
219
+ {
220
+ id: "last_name",
221
+ ...register("last_name", { required: true }),
222
+ label: "Last Name",
223
+ sizes: "medium",
224
+ required: true,
225
+ error: !!errors.last_name,
226
+ helperText: errors.last_name?.message,
227
+ variant
228
+ }
229
+ ) }),
230
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
231
+ Input,
232
+ {
233
+ id: "email",
234
+ ...register("email", {
235
+ required: true,
236
+ validate: {
237
+ isValid: associatedEmail
238
+ }
239
+ }),
240
+ label: "Email",
241
+ sizes: "medium",
242
+ required: true,
243
+ error: !!errors.email,
244
+ helperText: errors.email?.message,
245
+ variant
246
+ }
247
+ ) }),
248
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
249
+ InputPhone,
250
+ {
251
+ id: "phone",
252
+ ...register("phone", { required: true, maxLength: 12 }),
253
+ label: "Phone",
254
+ sizes: "medium",
255
+ required: true,
256
+ error: !!errors.phone,
257
+ helperText: errors.phone?.message,
258
+ variant
259
+ }
260
+ ) }),
261
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
262
+ Input,
263
+ {
264
+ id: "company",
265
+ ...register("company", { required: true }),
266
+ label: "Broker-Dealer Name",
267
+ sizes: "medium",
268
+ required: true,
269
+ error: !!errors.company,
270
+ helperText: errors.company?.message,
271
+ variant
272
+ }
273
+ ) }),
274
+ /* @__PURE__ */ jsx("div", { className: xc_input, children: /* @__PURE__ */ jsxs(
275
+ Dropdown,
276
+ {
277
+ id: "Current_Assets_Under_Management__c",
278
+ ...register("Current_Assets_Under_Management__c", {
279
+ required: true
280
+ }),
281
+ label: "Assets Under Management",
282
+ sizes: "medium",
283
+ required: true,
284
+ error: !!errors.Current_Assets_Under_Management__c,
285
+ helperText: errors.Current_Assets_Under_Management__c?.message,
286
+ variant,
287
+ defaultValue: "Select option",
288
+ onChange: handleDropdownChange,
289
+ onClick: handleAUMerror,
290
+ onBlur: handleAUMerror,
291
+ children: [
292
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
293
+ /* @__PURE__ */ jsx("option", { value: "$0 - $100MM", children: "$0 - $100MM" }),
294
+ /* @__PURE__ */ jsx("option", { value: "$101MM - $200MM", children: "$101MM - $200MM" }),
295
+ /* @__PURE__ */ jsx("option", { value: "$201MM - $500MM", children: "$201MM - $500MM" }),
296
+ /* @__PURE__ */ jsx("option", { value: "$501MM - $750MM", children: "$501MM - $750MM" }),
297
+ /* @__PURE__ */ jsx("option", { value: "$751MM - $1B", children: "$751MM - $1B" }),
298
+ /* @__PURE__ */ jsx("option", { value: "$1B -$2B", children: "$1B -$2B" }),
299
+ /* @__PURE__ */ jsx("option", { value: "$2B+", children: "$2B+" })
300
+ ]
301
+ }
302
+ ) }),
303
+ /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
304
+ /* @__PURE__ */ jsx(
305
+ Input,
306
+ {
307
+ id: "business_type_selection",
308
+ label: "Type of Business",
309
+ onFocus: handleShowBusinessType,
310
+ onBlur: handleTOBerrors,
311
+ sizes: "medium",
312
+ placeholder: "Select All That Apply",
313
+ error: !!errors.Business_Type__c,
314
+ readOnly: true,
315
+ className: ro_input
316
+ }
317
+ ),
318
+ showBusinessTypes && /* @__PURE__ */ jsx(
319
+ CheckboxGroup,
320
+ {
321
+ options,
322
+ selectedValues,
323
+ onChange: handleBusinessTypeChange,
324
+ error: !!errors.Business_Type__c
325
+ }
326
+ )
327
+ ] }),
328
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
329
+ Input,
330
+ {
331
+ id: "Memo__c",
332
+ ...register("Memo__c", { required: false }),
333
+ label: "Please provide additional details about your clearing needs (optional)",
334
+ sizes: "medium",
335
+ required: false,
336
+ error: !!errors.Memo__c,
337
+ helperText: errors.Memo__c?.message,
338
+ variant
339
+ }
340
+ ) }),
341
+ /* @__PURE__ */ jsx(
342
+ "input",
343
+ {
344
+ type: "hidden",
345
+ ...register("Lead_Source_Detail_SFDC2__c", {
346
+ value: "Axos Clearing"
347
+ })
348
+ }
349
+ )
350
+ ] }),
351
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant }),
352
+ children,
353
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
354
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
355
+ Button,
301
356
  {
302
- options,
303
- selectedValues,
304
- onChange: handleBusinessTypeChange,
305
- error: !!errors.Business_Type__c
357
+ color: getVariant(callToAction?.variant),
358
+ as: "button",
359
+ type: "submit",
360
+ disabled: !isValid || isSubmitting || !requiredAUM || !requiredTOB,
361
+ children: callToAction?.displayText
306
362
  }
307
- )
308
- ] }),
309
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
310
- Input,
311
- {
312
- id: "Memo__c",
313
- ...register("Memo__c", { required: false }),
314
- label: "Please provide additional details about your clearing needs (optional)",
315
- sizes: "medium",
316
- required: false,
317
- error: !!errors.Memo__c,
318
- helperText: errors.Memo__c?.message,
319
- variant
320
- }
321
- ) }),
322
- /* @__PURE__ */ jsx(
323
- "input",
324
- {
325
- type: "hidden",
326
- ...register("Lead_Source_Detail_SFDC2__c", {
327
- value: "Axos Clearing"
328
- })
329
- }
330
- )
331
- ] }),
332
- children,
333
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
334
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
335
- Button,
336
- {
337
- color: getVariant(callToAction?.variant),
338
- as: "button",
339
- type: "submit",
340
- disabled: !isValid || isSubmitting || !requiredAUM || !requiredTOB,
341
- children: callToAction?.displayText
342
- }
343
- ) })
344
- ] })
363
+ ) })
364
+ ]
365
+ }
366
+ )
345
367
  ] }) }) }, id);
346
368
  };
347
369
  export {
@@ -14,4 +14,4 @@ export type CommercialDepositsInputs = {
14
14
  Others_Detail__c: string;
15
15
  Product_and_servicing_needs__c: string;
16
16
  };
17
- export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;