@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, 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 CommercialLending = ({
38
39
  icon = false,
@@ -45,6 +46,7 @@ const CommercialLending = ({
45
46
  headline,
46
47
  callToAction,
47
48
  validateEmail,
49
+ onValidate,
48
50
  description,
49
51
  id
50
52
  }) => {
@@ -120,8 +122,16 @@ const CommercialLending = ({
120
122
  z.undefined()
121
123
  ])
122
124
  });
125
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
126
+ if (!isValidHoneyPot(data)) {
127
+ ctx.addIssue({
128
+ code: z.ZodIssueCode.custom,
129
+ message: "fields are not valid."
130
+ });
131
+ }
132
+ });
123
133
  const methods = useForm({
124
- resolver: zodResolver(schema.merge(SalesforceSchema), {
134
+ resolver: zodResolver(gen_schema, {
125
135
  async: true
126
136
  }),
127
137
  mode: "all",
@@ -154,262 +164,274 @@ const CommercialLending = ({
154
164
  }
155
165
  )
156
166
  ] }),
157
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
158
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
159
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
160
- Input,
161
- {
162
- id: "first_name",
163
- ...register("first_name", { required: true }),
164
- label: "First Name",
165
- sizes: "medium",
166
- required: true,
167
- error: !!errors.first_name,
168
- helperText: errors.first_name?.message,
169
- variant
170
- }
171
- ) }),
172
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
173
- Input,
174
- {
175
- id: "last_name",
176
- ...register("last_name", { required: true }),
177
- label: "Last Name",
178
- sizes: "medium",
179
- required: true,
180
- error: !!errors.last_name,
181
- helperText: errors.last_name?.message,
182
- variant
183
- }
184
- ) }),
185
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
186
- Input,
187
- {
188
- id: "email",
189
- ...register("email", {
190
- required: true,
191
- validate: {
192
- isValid: associatedEmail
167
+ /* @__PURE__ */ jsxs(
168
+ "form",
169
+ {
170
+ className: form,
171
+ onSubmit: async (e) => {
172
+ onValidate && onValidate(e);
173
+ await handleSubmit(submitForm)(e);
174
+ e.preventDefault();
175
+ },
176
+ children: [
177
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
178
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
179
+ Input,
180
+ {
181
+ id: "first_name",
182
+ ...register("first_name", { required: true }),
183
+ label: "First Name",
184
+ sizes: "medium",
185
+ required: true,
186
+ error: !!errors.first_name,
187
+ helperText: errors.first_name?.message,
188
+ variant
193
189
  }
194
- }),
195
- label: "Business Email",
196
- sizes: "medium",
197
- required: true,
198
- error: !!errors.email,
199
- helperText: errors.email?.message,
200
- variant
201
- }
202
- ) }),
203
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
204
- InputPhone,
205
- {
206
- id: "General_Business_Phone_SFDC2__c",
207
- ...register("General_Business_Phone_SFDC2__c", {
208
- required: true,
209
- maxLength: 12
210
- }),
211
- label: "Business Phone",
212
- sizes: "medium",
213
- required: true,
214
- error: !!errors.General_Business_Phone_SFDC2__c,
215
- helperText: errors.General_Business_Phone_SFDC2__c?.message,
216
- variant
217
- }
218
- ) }),
219
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
220
- Input,
221
- {
222
- id: "Company_NMLS_ID__c",
223
- ...register("Company_NMLS_ID__c"),
224
- label: "Company NMLS ID",
225
- sizes: "medium",
226
- error: !!errors.Company_NMLS_ID__c,
227
- helperText: errors.Company_NMLS_ID__c?.message,
228
- variant
229
- }
230
- ) }),
231
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
232
- Input,
233
- {
234
- id: "Business_Name__c",
235
- ...register("Business_Name__c"),
236
- label: "Business Name",
237
- sizes: "medium",
238
- error: !!errors.Business_Name__c,
239
- helperText: errors.Business_Name__c?.message,
240
- variant
241
- }
242
- ) }),
243
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
244
- Input,
245
- {
246
- id: "Property_Zip__c",
247
- ...register("Property_Zip__c"),
248
- label: "Property Location or ZIP Code",
249
- sizes: "medium",
250
- error: !!errors.Property_Zip__c,
251
- helperText: errors.Property_Zip__c?.message,
252
- variant
253
- }
254
- ) }),
255
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
256
- Dropdown,
257
- {
258
- id: "Annual_Gross_Revenue__c",
259
- ...register("Annual_Gross_Revenue__c", {
260
- required: true
261
- }),
262
- label: "Annual Gross Revenue",
263
- sizes: "medium",
264
- required: true,
265
- error: !!errors.Annual_Gross_Revenue__c,
266
- helperText: errors.Annual_Gross_Revenue__c?.message,
267
- variant,
268
- children: [
269
- /* @__PURE__ */ jsx("option", { value: "<$5MM", children: "<$5MM" }),
270
- /* @__PURE__ */ jsx("option", { value: "$5-10MM", children: "$5-10MM" }),
271
- /* @__PURE__ */ jsx("option", { value: "$10MM-$20MM", children: "$10MM-$20MM" }),
272
- /* @__PURE__ */ jsx("option", { value: "$20MM+", children: "$20MM+" })
273
- ]
274
- }
275
- ) }),
276
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
277
- Dropdown,
278
- {
279
- id: "Time_in_Business__c",
280
- ...register("Time_in_Business__c", {
281
- required: true
282
- }),
283
- label: "Time in Business",
284
- sizes: "medium",
285
- required: true,
286
- error: !!errors.Time_in_Business__c,
287
- helperText: errors.Time_in_Business__c?.message,
288
- variant,
289
- children: [
290
- /* @__PURE__ */ jsx("option", { value: "< 2 Years in Business", children: "< 2 Years in Business" }),
291
- /* @__PURE__ */ jsx("option", { value: "2-5 Years in Business", children: "2-5 Years in Business" }),
292
- /* @__PURE__ */ jsx("option", { value: "5+ Years in Business", children: "5+ Years in Business" })
293
- ]
294
- }
295
- ) }),
296
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
297
- Dropdown,
298
- {
299
- id: "Lead_Type__c",
300
- ...register("Lead_Type__c", {
301
- required: true
302
- }),
303
- label: "Type",
304
- sizes: "medium",
305
- required: true,
306
- error: !!errors.Lead_Type__c,
307
- helperText: errors.Lead_Type__c?.message,
308
- variant,
309
- children: [
310
- /* @__PURE__ */ jsx("option", { value: "Broker", children: "Broker" }),
311
- /* @__PURE__ */ jsx("option", { value: "Borrower", children: "Borrower" })
312
- ]
313
- }
314
- ) }),
315
- equipmentPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
316
- Dropdown,
317
- {
318
- id: "Type_of_Equipment_Finance__c",
319
- ...register("Type_of_Equipment_Finance__c"),
320
- label: "Type of Equipment",
321
- sizes: "medium",
322
- error: !!errors.Type_of_Equipment_Finance__c,
323
- helperText: errors.Type_of_Equipment_Finance__c?.message,
324
- variant,
325
- defaultValue: "",
326
- children: [
327
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
328
- /* @__PURE__ */ jsx("option", { value: "Agriculture", children: "Agriculture" }),
329
- /* @__PURE__ */ jsx("option", { value: "Transportation and Material Handling", children: "Transportation and Material Handling" }),
330
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" }),
331
- /* @__PURE__ */ jsx("option", { value: "Healthcare", children: "Healthcare" }),
332
- /* @__PURE__ */ jsx("option", { value: "Manufacturing", children: "Manufacturing" }),
333
- /* @__PURE__ */ jsx("option", { value: "Energy", children: "Energy" }),
334
- /* @__PURE__ */ jsx("option", { value: "Technology and Service", children: "Technology and Service" }),
335
- /* @__PURE__ */ jsx("option", { value: "Insurance", children: "Insurance" }),
336
- /* @__PURE__ */ jsx("option", { value: "Pharmaceutical and Laboratory", children: "Pharmaceutical and Laboratory" })
337
- ]
338
- }
339
- ) }),
340
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
341
- Dropdown,
342
- {
343
- id: "Asset_Class__c",
344
- ...register("Asset_Class__c"),
345
- label: "Asset Class",
346
- sizes: "medium",
347
- error: !!errors.Asset_Class__c,
348
- helperText: errors.Asset_Class__c?.message,
349
- variant,
350
- defaultValue: "",
351
- children: [
352
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
353
- /* @__PURE__ */ jsx("option", { value: "Multifamily", children: "Multifamily" }),
354
- CRESLPage && /* @__PURE__ */ jsx("option", { value: "Mixed-Use", children: "Mixed-Use" }),
355
- /* @__PURE__ */ jsx("option", { value: "Office", children: "Office" }),
356
- /* @__PURE__ */ jsx("option", { value: "Retail", children: "Retail" }),
357
- /* @__PURE__ */ jsx("option", { value: "Hospitality", children: "Hospitality" }),
358
- /* @__PURE__ */ jsx("option", { value: "Industrial/Warehouse", children: "Industrial/Warehouse" }),
359
- /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
360
- ]
361
- }
362
- ) }),
363
- CRESLPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
364
- Dropdown,
365
- {
366
- id: "Loan__c",
367
- ...register("Loan__c"),
368
- label: "Purpose of Loan",
369
- sizes: "medium",
370
- error: !!errors.Loan__c,
371
- helperText: errors.Loan__c?.message,
372
- variant,
373
- defaultValue: "",
374
- children: [
375
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
376
- /* @__PURE__ */ jsx("option", { value: "Bridge", children: "Bridge" }),
377
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" })
378
- ]
379
- }
380
- ) }),
381
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
382
- Input,
383
- {
384
- id: "Requested_loan_amount_and_leverage__c",
385
- ...register("Requested_loan_amount_and_leverage__c"),
386
- label: "Requested Loan Amount and Leverage",
387
- sizes: "medium",
388
- error: !!errors.Requested_loan_amount_and_leverage__c,
389
- helperText: errors.Requested_loan_amount_and_leverage__c?.message,
390
- variant
391
- }
392
- ) })
393
- ] }),
394
- children,
395
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
396
- /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
397
- LoadingIndicator,
398
- {
399
- style: { marginInline: "auto" },
400
- variant
401
- }
402
- ) : /* @__PURE__ */ jsx(
403
- Button,
404
- {
405
- color: getVariant(callToAction?.variant),
406
- as: "button",
407
- type: "submit",
408
- disabled: !isValid || isSubmitting,
409
- children: callToAction?.displayText
410
- }
411
- ) })
412
- ] })
190
+ ) }),
191
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
192
+ Input,
193
+ {
194
+ id: "last_name",
195
+ ...register("last_name", { required: true }),
196
+ label: "Last Name",
197
+ sizes: "medium",
198
+ required: true,
199
+ error: !!errors.last_name,
200
+ helperText: errors.last_name?.message,
201
+ variant
202
+ }
203
+ ) }),
204
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
205
+ Input,
206
+ {
207
+ id: "email",
208
+ ...register("email", {
209
+ required: true,
210
+ validate: {
211
+ isValid: associatedEmail
212
+ }
213
+ }),
214
+ label: "Business Email",
215
+ sizes: "medium",
216
+ required: true,
217
+ error: !!errors.email,
218
+ helperText: errors.email?.message,
219
+ variant
220
+ }
221
+ ) }),
222
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
223
+ InputPhone,
224
+ {
225
+ id: "General_Business_Phone_SFDC2__c",
226
+ ...register("General_Business_Phone_SFDC2__c", {
227
+ required: true,
228
+ maxLength: 12
229
+ }),
230
+ label: "Business Phone",
231
+ sizes: "medium",
232
+ required: true,
233
+ error: !!errors.General_Business_Phone_SFDC2__c,
234
+ helperText: errors.General_Business_Phone_SFDC2__c?.message,
235
+ variant
236
+ }
237
+ ) }),
238
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
239
+ Input,
240
+ {
241
+ id: "Company_NMLS_ID__c",
242
+ ...register("Company_NMLS_ID__c"),
243
+ label: "Company NMLS ID",
244
+ sizes: "medium",
245
+ error: !!errors.Company_NMLS_ID__c,
246
+ helperText: errors.Company_NMLS_ID__c?.message,
247
+ variant
248
+ }
249
+ ) }),
250
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
251
+ Input,
252
+ {
253
+ id: "Business_Name__c",
254
+ ...register("Business_Name__c"),
255
+ label: "Business Name",
256
+ sizes: "medium",
257
+ error: !!errors.Business_Name__c,
258
+ helperText: errors.Business_Name__c?.message,
259
+ variant
260
+ }
261
+ ) }),
262
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
263
+ Input,
264
+ {
265
+ id: "Property_Zip__c",
266
+ ...register("Property_Zip__c"),
267
+ label: "Property Location or ZIP Code",
268
+ sizes: "medium",
269
+ error: !!errors.Property_Zip__c,
270
+ helperText: errors.Property_Zip__c?.message,
271
+ variant
272
+ }
273
+ ) }),
274
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
275
+ Dropdown,
276
+ {
277
+ id: "Annual_Gross_Revenue__c",
278
+ ...register("Annual_Gross_Revenue__c", {
279
+ required: true
280
+ }),
281
+ label: "Annual Gross Revenue",
282
+ sizes: "medium",
283
+ required: true,
284
+ error: !!errors.Annual_Gross_Revenue__c,
285
+ helperText: errors.Annual_Gross_Revenue__c?.message,
286
+ variant,
287
+ children: [
288
+ /* @__PURE__ */ jsx("option", { value: "<$5MM", children: "<$5MM" }),
289
+ /* @__PURE__ */ jsx("option", { value: "$5-10MM", children: "$5-10MM" }),
290
+ /* @__PURE__ */ jsx("option", { value: "$10MM-$20MM", children: "$10MM-$20MM" }),
291
+ /* @__PURE__ */ jsx("option", { value: "$20MM+", children: "$20MM+" })
292
+ ]
293
+ }
294
+ ) }),
295
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
296
+ Dropdown,
297
+ {
298
+ id: "Time_in_Business__c",
299
+ ...register("Time_in_Business__c", {
300
+ required: true
301
+ }),
302
+ label: "Time in Business",
303
+ sizes: "medium",
304
+ required: true,
305
+ error: !!errors.Time_in_Business__c,
306
+ helperText: errors.Time_in_Business__c?.message,
307
+ variant,
308
+ children: [
309
+ /* @__PURE__ */ jsx("option", { value: "< 2 Years in Business", children: "< 2 Years in Business" }),
310
+ /* @__PURE__ */ jsx("option", { value: "2-5 Years in Business", children: "2-5 Years in Business" }),
311
+ /* @__PURE__ */ jsx("option", { value: "5+ Years in Business", children: "5+ Years in Business" })
312
+ ]
313
+ }
314
+ ) }),
315
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
316
+ Dropdown,
317
+ {
318
+ id: "Lead_Type__c",
319
+ ...register("Lead_Type__c", {
320
+ required: true
321
+ }),
322
+ label: "Type",
323
+ sizes: "medium",
324
+ required: true,
325
+ error: !!errors.Lead_Type__c,
326
+ helperText: errors.Lead_Type__c?.message,
327
+ variant,
328
+ children: [
329
+ /* @__PURE__ */ jsx("option", { value: "Broker", children: "Broker" }),
330
+ /* @__PURE__ */ jsx("option", { value: "Borrower", children: "Borrower" })
331
+ ]
332
+ }
333
+ ) }),
334
+ equipmentPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
335
+ Dropdown,
336
+ {
337
+ id: "Type_of_Equipment_Finance__c",
338
+ ...register("Type_of_Equipment_Finance__c"),
339
+ label: "Type of Equipment",
340
+ sizes: "medium",
341
+ error: !!errors.Type_of_Equipment_Finance__c,
342
+ helperText: errors.Type_of_Equipment_Finance__c?.message,
343
+ variant,
344
+ defaultValue: "",
345
+ children: [
346
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
347
+ /* @__PURE__ */ jsx("option", { value: "Agriculture", children: "Agriculture" }),
348
+ /* @__PURE__ */ jsx("option", { value: "Transportation and Material Handling", children: "Transportation and Material Handling" }),
349
+ /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" }),
350
+ /* @__PURE__ */ jsx("option", { value: "Healthcare", children: "Healthcare" }),
351
+ /* @__PURE__ */ jsx("option", { value: "Manufacturing", children: "Manufacturing" }),
352
+ /* @__PURE__ */ jsx("option", { value: "Energy", children: "Energy" }),
353
+ /* @__PURE__ */ jsx("option", { value: "Technology and Service", children: "Technology and Service" }),
354
+ /* @__PURE__ */ jsx("option", { value: "Insurance", children: "Insurance" }),
355
+ /* @__PURE__ */ jsx("option", { value: "Pharmaceutical and Laboratory", children: "Pharmaceutical and Laboratory" })
356
+ ]
357
+ }
358
+ ) }),
359
+ (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
360
+ Dropdown,
361
+ {
362
+ id: "Asset_Class__c",
363
+ ...register("Asset_Class__c"),
364
+ label: "Asset Class",
365
+ sizes: "medium",
366
+ error: !!errors.Asset_Class__c,
367
+ helperText: errors.Asset_Class__c?.message,
368
+ variant,
369
+ defaultValue: "",
370
+ children: [
371
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
372
+ /* @__PURE__ */ jsx("option", { value: "Multifamily", children: "Multifamily" }),
373
+ CRESLPage && /* @__PURE__ */ jsx("option", { value: "Mixed-Use", children: "Mixed-Use" }),
374
+ /* @__PURE__ */ jsx("option", { value: "Office", children: "Office" }),
375
+ /* @__PURE__ */ jsx("option", { value: "Retail", children: "Retail" }),
376
+ /* @__PURE__ */ jsx("option", { value: "Hospitality", children: "Hospitality" }),
377
+ /* @__PURE__ */ jsx("option", { value: "Industrial/Warehouse", children: "Industrial/Warehouse" }),
378
+ /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
379
+ ]
380
+ }
381
+ ) }),
382
+ CRESLPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
383
+ Dropdown,
384
+ {
385
+ id: "Loan__c",
386
+ ...register("Loan__c"),
387
+ label: "Purpose of Loan",
388
+ sizes: "medium",
389
+ error: !!errors.Loan__c,
390
+ helperText: errors.Loan__c?.message,
391
+ variant,
392
+ defaultValue: "",
393
+ children: [
394
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
395
+ /* @__PURE__ */ jsx("option", { value: "Bridge", children: "Bridge" }),
396
+ /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" })
397
+ ]
398
+ }
399
+ ) }),
400
+ (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
401
+ Input,
402
+ {
403
+ id: "Requested_loan_amount_and_leverage__c",
404
+ ...register("Requested_loan_amount_and_leverage__c"),
405
+ label: "Requested Loan Amount and Leverage",
406
+ sizes: "medium",
407
+ error: !!errors.Requested_loan_amount_and_leverage__c,
408
+ helperText: errors.Requested_loan_amount_and_leverage__c?.message,
409
+ variant
410
+ }
411
+ ) }),
412
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant })
413
+ ] }),
414
+ children,
415
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
416
+ /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
417
+ LoadingIndicator,
418
+ {
419
+ style: { marginInline: "auto" },
420
+ variant
421
+ }
422
+ ) : /* @__PURE__ */ jsx(
423
+ Button,
424
+ {
425
+ color: getVariant(callToAction?.variant),
426
+ as: "button",
427
+ type: "submit",
428
+ disabled: !isValid || isSubmitting,
429
+ children: callToAction?.displayText
430
+ }
431
+ ) })
432
+ ]
433
+ }
434
+ )
413
435
  ] }) }) }, id);
414
436
  };
415
437
  export {
@@ -7,4 +7,4 @@ export type CommercialPremiumFinanceInputs = {
7
7
  Insurance_Company__c: string;
8
8
  Type_of_Policy__c: string;
9
9
  };
10
- export declare const CommercialPremiumFinance: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CommercialPremiumFinance: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;