@axos-web-dev/shared-components 1.0.99-dev-2 → 1.0.99-dev-6

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 (53) hide show
  1. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  2. package/dist/Calculators/Calculator.d.ts +3 -1
  3. package/dist/Calculators/Calculator.js +4 -2
  4. package/dist/Calculators/MonthlyPaymentCalculator/index.d.ts +3 -1
  5. package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -8
  6. package/dist/Forms/ApplicationStart.d.ts +1 -1
  7. package/dist/Forms/ApplicationStart.js +101 -89
  8. package/dist/Forms/ClearingForm.d.ts +1 -1
  9. package/dist/Forms/ClearingForm.js +174 -162
  10. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  11. package/dist/Forms/CommercialDeposits.js +191 -179
  12. package/dist/Forms/CommercialLending.d.ts +1 -1
  13. package/dist/Forms/CommercialLending.js +268 -256
  14. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  15. package/dist/Forms/CommercialPremiumFinance.js +106 -94
  16. package/dist/Forms/ContactCompany.d.ts +1 -1
  17. package/dist/Forms/ContactCompany.js +103 -91
  18. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  19. package/dist/Forms/ContactCompanyTitle.js +117 -105
  20. package/dist/Forms/ContactUs.js +2 -1
  21. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  22. package/dist/Forms/ContactUsAAS.js +170 -158
  23. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  24. package/dist/Forms/ContactUsBusiness.js +124 -112
  25. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  26. package/dist/Forms/ContactUsBusinessNameEmail.js +93 -81
  27. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  28. package/dist/Forms/ContactUsLVF.js +117 -101
  29. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  30. package/dist/Forms/ContactUsNMLSId.js +107 -95
  31. package/dist/Forms/CpraRequest.d.ts +1 -1
  32. package/dist/Forms/CpraRequest.js +630 -618
  33. package/dist/Forms/CraPublicFile.d.ts +1 -1
  34. package/dist/Forms/CraPublicFile.js +99 -87
  35. package/dist/Forms/DealerServices.d.ts +1 -1
  36. package/dist/Forms/DealerServices.js +215 -203
  37. package/dist/Forms/EmailOnly.d.ts +1 -1
  38. package/dist/Forms/EmailOnly.js +46 -34
  39. package/dist/Forms/EmailUs.d.ts +1 -1
  40. package/dist/Forms/EmailUs.js +65 -53
  41. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  42. package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -343
  43. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  44. package/dist/Forms/QuickPricer/QuickPricerForm.js +608 -596
  45. package/dist/Forms/ScheduleCall.d.ts +1 -1
  46. package/dist/Forms/ScheduleCall.js +146 -134
  47. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  48. package/dist/Forms/ScheduleCallPremier.js +168 -156
  49. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  50. package/dist/Forms/VendorQuestionnaire.js +807 -795
  51. package/dist/Forms/WcplSurvey.d.ts +1 -1
  52. package/dist/Forms/WcplSurvey.js +102 -90
  53. package/package.json +133 -133
@@ -46,6 +46,7 @@ const CommercialLending = ({
46
46
  headline,
47
47
  callToAction,
48
48
  validateEmail,
49
+ onValidate,
49
50
  description,
50
51
  id
51
52
  }) => {
@@ -163,263 +164,274 @@ const CommercialLending = ({
163
164
  }
164
165
  )
165
166
  ] }),
166
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
167
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
168
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
169
- Input,
170
- {
171
- id: "first_name",
172
- ...register("first_name", { required: true }),
173
- label: "First Name",
174
- sizes: "medium",
175
- required: true,
176
- error: !!errors.first_name,
177
- helperText: errors.first_name?.message,
178
- variant
179
- }
180
- ) }),
181
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
182
- Input,
183
- {
184
- id: "last_name",
185
- ...register("last_name", { required: true }),
186
- label: "Last Name",
187
- sizes: "medium",
188
- required: true,
189
- error: !!errors.last_name,
190
- helperText: errors.last_name?.message,
191
- variant
192
- }
193
- ) }),
194
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
195
- Input,
196
- {
197
- id: "email",
198
- ...register("email", {
199
- required: true,
200
- validate: {
201
- 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
202
189
  }
203
- }),
204
- label: "Business Email",
205
- sizes: "medium",
206
- required: true,
207
- error: !!errors.email,
208
- helperText: errors.email?.message,
209
- variant
210
- }
211
- ) }),
212
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
213
- InputPhone,
214
- {
215
- id: "General_Business_Phone_SFDC2__c",
216
- ...register("General_Business_Phone_SFDC2__c", {
217
- required: true,
218
- maxLength: 12
219
- }),
220
- label: "Business Phone",
221
- sizes: "medium",
222
- required: true,
223
- error: !!errors.General_Business_Phone_SFDC2__c,
224
- helperText: errors.General_Business_Phone_SFDC2__c?.message,
225
- variant
226
- }
227
- ) }),
228
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
229
- Input,
230
- {
231
- id: "Company_NMLS_ID__c",
232
- ...register("Company_NMLS_ID__c"),
233
- label: "Company NMLS ID",
234
- sizes: "medium",
235
- error: !!errors.Company_NMLS_ID__c,
236
- helperText: errors.Company_NMLS_ID__c?.message,
237
- variant
238
- }
239
- ) }),
240
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
241
- Input,
242
- {
243
- id: "Business_Name__c",
244
- ...register("Business_Name__c"),
245
- label: "Business Name",
246
- sizes: "medium",
247
- error: !!errors.Business_Name__c,
248
- helperText: errors.Business_Name__c?.message,
249
- variant
250
- }
251
- ) }),
252
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
253
- Input,
254
- {
255
- id: "Property_Zip__c",
256
- ...register("Property_Zip__c"),
257
- label: "Property Location or ZIP Code",
258
- sizes: "medium",
259
- error: !!errors.Property_Zip__c,
260
- helperText: errors.Property_Zip__c?.message,
261
- variant
262
- }
263
- ) }),
264
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
265
- Dropdown,
266
- {
267
- id: "Annual_Gross_Revenue__c",
268
- ...register("Annual_Gross_Revenue__c", {
269
- required: true
270
- }),
271
- label: "Annual Gross Revenue",
272
- sizes: "medium",
273
- required: true,
274
- error: !!errors.Annual_Gross_Revenue__c,
275
- helperText: errors.Annual_Gross_Revenue__c?.message,
276
- variant,
277
- children: [
278
- /* @__PURE__ */ jsx("option", { value: "<$5MM", children: "<$5MM" }),
279
- /* @__PURE__ */ jsx("option", { value: "$5-10MM", children: "$5-10MM" }),
280
- /* @__PURE__ */ jsx("option", { value: "$10MM-$20MM", children: "$10MM-$20MM" }),
281
- /* @__PURE__ */ jsx("option", { value: "$20MM+", children: "$20MM+" })
282
- ]
283
- }
284
- ) }),
285
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
286
- Dropdown,
287
- {
288
- id: "Time_in_Business__c",
289
- ...register("Time_in_Business__c", {
290
- required: true
291
- }),
292
- label: "Time in Business",
293
- sizes: "medium",
294
- required: true,
295
- error: !!errors.Time_in_Business__c,
296
- helperText: errors.Time_in_Business__c?.message,
297
- variant,
298
- children: [
299
- /* @__PURE__ */ jsx("option", { value: "< 2 Years in Business", children: "< 2 Years in Business" }),
300
- /* @__PURE__ */ jsx("option", { value: "2-5 Years in Business", children: "2-5 Years in Business" }),
301
- /* @__PURE__ */ jsx("option", { value: "5+ Years in Business", children: "5+ Years in Business" })
302
- ]
303
- }
304
- ) }),
305
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
306
- Dropdown,
307
- {
308
- id: "Lead_Type__c",
309
- ...register("Lead_Type__c", {
310
- required: true
311
- }),
312
- label: "Type",
313
- sizes: "medium",
314
- required: true,
315
- error: !!errors.Lead_Type__c,
316
- helperText: errors.Lead_Type__c?.message,
317
- variant,
318
- children: [
319
- /* @__PURE__ */ jsx("option", { value: "Broker", children: "Broker" }),
320
- /* @__PURE__ */ jsx("option", { value: "Borrower", children: "Borrower" })
321
- ]
322
- }
323
- ) }),
324
- equipmentPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
325
- Dropdown,
326
- {
327
- id: "Type_of_Equipment_Finance__c",
328
- ...register("Type_of_Equipment_Finance__c"),
329
- label: "Type of Equipment",
330
- sizes: "medium",
331
- error: !!errors.Type_of_Equipment_Finance__c,
332
- helperText: errors.Type_of_Equipment_Finance__c?.message,
333
- variant,
334
- defaultValue: "",
335
- children: [
336
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
337
- /* @__PURE__ */ jsx("option", { value: "Agriculture", children: "Agriculture" }),
338
- /* @__PURE__ */ jsx("option", { value: "Transportation and Material Handling", children: "Transportation and Material Handling" }),
339
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" }),
340
- /* @__PURE__ */ jsx("option", { value: "Healthcare", children: "Healthcare" }),
341
- /* @__PURE__ */ jsx("option", { value: "Manufacturing", children: "Manufacturing" }),
342
- /* @__PURE__ */ jsx("option", { value: "Energy", children: "Energy" }),
343
- /* @__PURE__ */ jsx("option", { value: "Technology and Service", children: "Technology and Service" }),
344
- /* @__PURE__ */ jsx("option", { value: "Insurance", children: "Insurance" }),
345
- /* @__PURE__ */ jsx("option", { value: "Pharmaceutical and Laboratory", children: "Pharmaceutical and Laboratory" })
346
- ]
347
- }
348
- ) }),
349
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
350
- Dropdown,
351
- {
352
- id: "Asset_Class__c",
353
- ...register("Asset_Class__c"),
354
- label: "Asset Class",
355
- sizes: "medium",
356
- error: !!errors.Asset_Class__c,
357
- helperText: errors.Asset_Class__c?.message,
358
- variant,
359
- defaultValue: "",
360
- children: [
361
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
362
- /* @__PURE__ */ jsx("option", { value: "Multifamily", children: "Multifamily" }),
363
- CRESLPage && /* @__PURE__ */ jsx("option", { value: "Mixed-Use", children: "Mixed-Use" }),
364
- /* @__PURE__ */ jsx("option", { value: "Office", children: "Office" }),
365
- /* @__PURE__ */ jsx("option", { value: "Retail", children: "Retail" }),
366
- /* @__PURE__ */ jsx("option", { value: "Hospitality", children: "Hospitality" }),
367
- /* @__PURE__ */ jsx("option", { value: "Industrial/Warehouse", children: "Industrial/Warehouse" }),
368
- /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
369
- ]
370
- }
371
- ) }),
372
- CRESLPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
373
- Dropdown,
374
- {
375
- id: "Loan__c",
376
- ...register("Loan__c"),
377
- label: "Purpose of Loan",
378
- sizes: "medium",
379
- error: !!errors.Loan__c,
380
- helperText: errors.Loan__c?.message,
381
- variant,
382
- defaultValue: "",
383
- children: [
384
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
385
- /* @__PURE__ */ jsx("option", { value: "Bridge", children: "Bridge" }),
386
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" })
387
- ]
388
- }
389
- ) }),
390
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
391
- Input,
392
- {
393
- id: "Requested_loan_amount_and_leverage__c",
394
- ...register("Requested_loan_amount_and_leverage__c"),
395
- label: "Requested Loan Amount and Leverage",
396
- sizes: "medium",
397
- error: !!errors.Requested_loan_amount_and_leverage__c,
398
- helperText: errors.Requested_loan_amount_and_leverage__c?.message,
399
- variant
400
- }
401
- ) }),
402
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
403
- ] }),
404
- children,
405
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
406
- /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
407
- LoadingIndicator,
408
- {
409
- style: { marginInline: "auto" },
410
- variant
411
- }
412
- ) : /* @__PURE__ */ jsx(
413
- Button,
414
- {
415
- color: getVariant(callToAction?.variant),
416
- as: "button",
417
- type: "submit",
418
- disabled: !isValid || isSubmitting,
419
- children: callToAction?.displayText
420
- }
421
- ) })
422
- ] })
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, errors, 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
+ )
423
435
  ] }) }) }, id);
424
436
  };
425
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;