@axos-web-dev/shared-components 0.0.117 → 0.0.118

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 (59) hide show
  1. package/dist/Accordion/Accordion.css.d.ts +9 -9
  2. package/dist/ArticlesSet/ArticlesSet.js +1 -1
  3. package/dist/Calculators/MarginTradingCalculator/index.js +4 -2
  4. package/dist/Calculators/calculators.js +6 -0
  5. package/dist/Carousel/index.d.ts +1 -0
  6. package/dist/Carousel/index.js +5 -4
  7. package/dist/Comparison/Comparison.css.js +2 -2
  8. package/dist/ContentBanner/index.js +1 -1
  9. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  10. package/dist/FaqAccordion/index.d.ts +1 -0
  11. package/dist/FaqAccordion/index.js +2 -2
  12. package/dist/FooterDisclosure/FooterDisclosure.d.ts +5 -2
  13. package/dist/FooterDisclosure/FooterDisclosure.js +18 -2
  14. package/dist/Forms/ApplicationStart.js +105 -113
  15. package/dist/Forms/ClearingForm.js +177 -185
  16. package/dist/Forms/CommercialLending.js +276 -281
  17. package/dist/Forms/ContactCompany.js +107 -115
  18. package/dist/Forms/ContactUs.js +89 -97
  19. package/dist/Forms/ContactUsAAS.js +170 -178
  20. package/dist/Forms/ContactUsBusiness.js +128 -136
  21. package/dist/Forms/ContactUsNMLSId.js +111 -119
  22. package/dist/Forms/CpraRequest.js +592 -600
  23. package/dist/Forms/DealerServices.js +219 -227
  24. package/dist/Forms/EmailOnly.js +48 -56
  25. package/dist/Forms/EmailUs.js +65 -73
  26. package/dist/Forms/Forms.css.js +2 -2
  27. package/dist/Forms/SalesforceFieldsForm.d.ts +1 -0
  28. package/dist/Forms/ScheduleCall.js +149 -160
  29. package/dist/Forms/ScheduleCallPremier.js +171 -179
  30. package/dist/Forms/WcplSurvey.js +102 -110
  31. package/dist/HeroBanner/HeroBanner.css.js +1 -1
  32. package/dist/HeroBanner/HeroBanner.js +2 -2
  33. package/dist/IconBillboard/IconBillboard.d.ts +1 -0
  34. package/dist/IconBillboard/IconBillboard.js +6 -4
  35. package/dist/ImageBillboard/ImageBillboard.css.js +1 -1
  36. package/dist/ImageBillboard/ImageBillboardSet.js +1 -0
  37. package/dist/Input/Checkbox.d.ts +1 -1
  38. package/dist/Input/Input.css.js +1 -1
  39. package/dist/Input/InputProps.d.ts +0 -6
  40. package/dist/Insight/Featured/CategorySelector.css.js +1 -1
  41. package/dist/StepItemSet/StepItemSet.js +1 -1
  42. package/dist/Table/Table.d.ts +13 -13
  43. package/dist/TextBlock/TextBlock.js +1 -1
  44. package/dist/VideoTile/VideoTile.js +1 -1
  45. package/dist/VideoWrapper/index.js +22 -30
  46. package/dist/assets/Comparison/Comparison.css +0 -1
  47. package/dist/assets/Table/Table.css +8 -8
  48. package/dist/index.css.js +1 -1
  49. package/package.json +121 -121
  50. package/dist/Input/DatePicker.css.d.ts +0 -1
  51. package/dist/Input/DatePicker.css.js +0 -6
  52. package/dist/Input/Datepicker.d.ts +0 -3
  53. package/dist/Input/Datepicker.js +0 -47
  54. package/dist/Input/InputDate.css.d.ts +0 -6
  55. package/dist/Input/InputDate.css.js +0 -15
  56. package/dist/Input/InputDate.d.ts +0 -3
  57. package/dist/Input/InputDate.js +0 -47
  58. package/dist/assets/Input/DatePicker.css +0 -95
  59. package/dist/assets/Input/InputDate.css +0 -39
@@ -106,7 +106,10 @@ const CommercialLending = ({
106
106
  Type_of_Equipment_Finance__c: z.union([z.string(), z.undefined()]),
107
107
  Loan__c: z.union([z.string(), z.undefined()]),
108
108
  Asset_Class__c: z.union([z.string(), z.undefined()]),
109
- Requested_loan_amount_and_leverage__c: z.union([z.string(), z.undefined()])
109
+ Requested_loan_amount_and_leverage__c: z.union([
110
+ z.string().min(0),
111
+ z.undefined()
112
+ ])
110
113
  });
111
114
  const methods = useForm({
112
115
  resolver: zodResolver(schema.merge(SalesforceSchema), {
@@ -126,287 +129,279 @@ const CommercialLending = ({
126
129
  await onSubmit(data);
127
130
  };
128
131
  const variant = getVariant(fullVariant);
129
- return /* @__PURE__ */ jsx(
130
- "section",
131
- {
132
- id: `id_${id}`,
133
- className: clsx(formContainer({ variant })),
134
- children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
135
- icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
136
- /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
137
- /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
138
- description && /* @__PURE__ */ jsx(
139
- "div",
140
- {
141
- className: clsx(
142
- "text_center",
143
- form,
144
- descriptionField({ variant })
145
- ),
146
- children: description
147
- }
148
- )
149
- ] }),
150
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
151
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
152
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
153
- Input,
154
- {
155
- id: "first_name",
156
- ...register("first_name", { required: true }),
157
- label: "First Name",
158
- sizes: "medium",
159
- required: true,
160
- error: !!errors.first_name,
161
- helperText: errors.first_name?.message,
162
- variant
132
+ return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
133
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
134
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
135
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
136
+ description && /* @__PURE__ */ jsx(
137
+ "div",
138
+ {
139
+ className: clsx(
140
+ "text_center",
141
+ form,
142
+ descriptionField({ variant })
143
+ ),
144
+ children: description
145
+ }
146
+ )
147
+ ] }),
148
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
149
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
150
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
151
+ Input,
152
+ {
153
+ id: "first_name",
154
+ ...register("first_name", { required: true }),
155
+ label: "First Name",
156
+ sizes: "medium",
157
+ required: true,
158
+ error: !!errors.first_name,
159
+ helperText: errors.first_name?.message,
160
+ variant
161
+ }
162
+ ) }),
163
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
164
+ Input,
165
+ {
166
+ id: "last_name",
167
+ ...register("last_name", { required: true }),
168
+ label: "Last Name",
169
+ sizes: "medium",
170
+ required: true,
171
+ error: !!errors.last_name,
172
+ helperText: errors.last_name?.message,
173
+ variant
174
+ }
175
+ ) }),
176
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
177
+ Input,
178
+ {
179
+ id: "email",
180
+ ...register("email", {
181
+ required: true,
182
+ validate: {
183
+ isValid: associatedEmail
163
184
  }
164
- ) }),
165
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
166
- Input,
167
- {
168
- id: "last_name",
169
- ...register("last_name", { required: true }),
170
- label: "Last Name",
171
- sizes: "medium",
172
- required: true,
173
- error: !!errors.last_name,
174
- helperText: errors.last_name?.message,
175
- variant
176
- }
177
- ) }),
178
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
179
- Input,
180
- {
181
- id: "email",
182
- ...register("email", {
183
- required: true,
184
- validate: {
185
- isValid: associatedEmail
186
- }
187
- }),
188
- label: "Business Email",
189
- sizes: "medium",
190
- required: true,
191
- error: !!errors.email,
192
- helperText: errors.email?.message,
193
- variant
194
- }
195
- ) }),
196
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
197
- InputPhone,
198
- {
199
- id: "General_Business_Phone_SFDC2__c",
200
- ...register("General_Business_Phone_SFDC2__c", {
201
- required: true,
202
- maxLength: 12
203
- }),
204
- label: "Business Phone",
205
- sizes: "medium",
206
- required: true,
207
- error: !!errors.General_Business_Phone_SFDC2__c,
208
- helperText: errors.General_Business_Phone_SFDC2__c?.message,
209
- variant
210
- }
211
- ) }),
212
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
213
- Input,
214
- {
215
- id: "Company_NMLS_ID__c",
216
- ...register("Company_NMLS_ID__c"),
217
- label: "Company NMLS ID",
218
- sizes: "medium",
219
- error: !!errors.Company_NMLS_ID__c,
220
- helperText: errors.Company_NMLS_ID__c?.message,
221
- variant
222
- }
223
- ) }),
224
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
225
- Input,
226
- {
227
- id: "Business_Name__c",
228
- ...register("Business_Name__c"),
229
- label: "Business Name",
230
- sizes: "medium",
231
- error: !!errors.Business_Name__c,
232
- helperText: errors.Business_Name__c?.message,
233
- variant
234
- }
235
- ) }),
236
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
237
- Input,
238
- {
239
- id: "Property_Zip__c",
240
- ...register("Property_Zip__c"),
241
- label: "Property Location or ZIP Code",
242
- sizes: "medium",
243
- error: !!errors.Property_Zip__c,
244
- helperText: errors.Property_Zip__c?.message,
245
- variant
246
- }
247
- ) }),
248
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
249
- Dropdown,
250
- {
251
- id: "Annual_Gross_Revenue__c",
252
- ...register("Annual_Gross_Revenue__c", {
253
- required: true
254
- }),
255
- label: "Annual Gross Revenue",
256
- sizes: "medium",
257
- required: true,
258
- error: !!errors.Annual_Gross_Revenue__c,
259
- helperText: errors.Annual_Gross_Revenue__c?.message,
260
- variant,
261
- children: [
262
- /* @__PURE__ */ jsx("option", { value: "<$5MM", children: "<$5MM" }),
263
- /* @__PURE__ */ jsx("option", { value: "$5-10MM", children: "$5-10MM" }),
264
- /* @__PURE__ */ jsx("option", { value: "$10MM-$20MM", children: "$10MM-$20MM" }),
265
- /* @__PURE__ */ jsx("option", { value: "$20MM+", children: "$20MM+" })
266
- ]
267
- }
268
- ) }),
269
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
270
- Dropdown,
271
- {
272
- id: "Time_in_Business__c",
273
- ...register("Time_in_Business__c", {
274
- required: true
275
- }),
276
- label: "Time in Business",
277
- sizes: "medium",
278
- required: true,
279
- error: !!errors.Time_in_Business__c,
280
- helperText: errors.Time_in_Business__c?.message,
281
- variant,
282
- children: [
283
- /* @__PURE__ */ jsx("option", { value: "< 2 Years in Business", children: "< 2 Years in Business" }),
284
- /* @__PURE__ */ jsx("option", { value: "2-5 Years in Business", children: "2-5 Years in Business" }),
285
- /* @__PURE__ */ jsx("option", { value: "5+ Years in Business", children: "5+ Years in Business" })
286
- ]
287
- }
288
- ) }),
289
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
290
- Dropdown,
291
- {
292
- id: "Lead_Type__c",
293
- ...register("Lead_Type__c", {
294
- required: true
295
- }),
296
- label: "Type",
297
- sizes: "medium",
298
- required: true,
299
- error: !!errors.Lead_Type__c,
300
- helperText: errors.Lead_Type__c?.message,
301
- variant,
302
- children: [
303
- /* @__PURE__ */ jsx("option", { value: "Broker", children: "Broker" }),
304
- /* @__PURE__ */ jsx("option", { value: "Borrower", children: "Borrower" })
305
- ]
306
- }
307
- ) }),
308
- equipmentPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
309
- Dropdown,
310
- {
311
- id: "Type_of_Equipment_Finance__c",
312
- ...register("Type_of_Equipment_Finance__c"),
313
- label: "Type of Equipment",
314
- sizes: "medium",
315
- error: !!errors.Type_of_Equipment_Finance__c,
316
- helperText: errors.Type_of_Equipment_Finance__c?.message,
317
- variant,
318
- defaultValue: "",
319
- children: [
320
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
321
- /* @__PURE__ */ jsx("option", { value: "Agriculture", children: "Agriculture" }),
322
- /* @__PURE__ */ jsx("option", { value: "Transportation and Material Handling", children: "Transportation and Material Handling" }),
323
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" }),
324
- /* @__PURE__ */ jsx("option", { value: "Healthcare", children: "Healthcare" }),
325
- /* @__PURE__ */ jsx("option", { value: "Manufacturing", children: "Manufacturing" }),
326
- /* @__PURE__ */ jsx("option", { value: "Energy", children: "Energy" }),
327
- /* @__PURE__ */ jsx("option", { value: "Technology and Service", children: "Technology and Service" }),
328
- /* @__PURE__ */ jsx("option", { value: "Insurance", children: "Insurance" }),
329
- /* @__PURE__ */ jsx("option", { value: "Pharmaceutical and Laboratory", children: "Pharmaceutical and Laboratory" })
330
- ]
331
- }
332
- ) }),
333
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
334
- Dropdown,
335
- {
336
- id: "Asset_Class__c",
337
- ...register("Asset_Class__c"),
338
- label: "Asset Class",
339
- sizes: "medium",
340
- error: !!errors.Asset_Class__c,
341
- helperText: errors.Asset_Class__c?.message,
342
- variant,
343
- defaultValue: "",
344
- children: [
345
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
346
- /* @__PURE__ */ jsx("option", { value: "Multifamily", children: "Multifamily" }),
347
- CRESLPage && /* @__PURE__ */ jsx("option", { value: "Mixed-Use", children: "Mixed-Use" }),
348
- /* @__PURE__ */ jsx("option", { value: "Office", children: "Office" }),
349
- /* @__PURE__ */ jsx("option", { value: "Retail", children: "Retail" }),
350
- /* @__PURE__ */ jsx("option", { value: "Hospitality", children: "Hospitality" }),
351
- /* @__PURE__ */ jsx("option", { value: "Industrial/Warehouse", children: "Industrial/Warehouse" }),
352
- /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
353
- ]
354
- }
355
- ) }),
356
- CRESLPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
357
- Dropdown,
358
- {
359
- id: "Loan__c",
360
- ...register("Loan__c"),
361
- label: "Purpose of Loan",
362
- sizes: "medium",
363
- error: !!errors.Loan__c,
364
- helperText: errors.Loan__c?.message,
365
- variant,
366
- defaultValue: "",
367
- children: [
368
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
369
- /* @__PURE__ */ jsx("option", { value: "Bridge", children: "Bridge" }),
370
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" })
371
- ]
372
- }
373
- ) }),
374
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
375
- Input,
376
- {
377
- id: "Requested_loan_amount_and_leverage__c",
378
- ...register("Requested_loan_amount_and_leverage__c"),
379
- label: "Requested loan amount and leverage",
380
- sizes: "medium",
381
- error: !!errors.Requested_loan_amount_and_leverage__c,
382
- helperText: errors.Requested_loan_amount_and_leverage__c?.message,
383
- variant
384
- }
385
- ) })
386
- ] }),
387
- children,
388
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
389
- /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
390
- LoadingIndicator,
391
- {
392
- style: { marginInline: "auto" },
393
- variant
394
- }
395
- ) : /* @__PURE__ */ jsx(
396
- Button,
397
- {
398
- color: getVariant(callToAction?.variant),
399
- as: "button",
400
- type: "submit",
401
- disabled: !isValid || isSubmitting,
402
- children: callToAction?.displayText
403
- }
404
- ) })
405
- ] })
406
- ] }) })
407
- },
408
- id
409
- );
185
+ }),
186
+ label: "Business Email",
187
+ sizes: "medium",
188
+ required: true,
189
+ error: !!errors.email,
190
+ helperText: errors.email?.message,
191
+ variant
192
+ }
193
+ ) }),
194
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
195
+ InputPhone,
196
+ {
197
+ id: "General_Business_Phone_SFDC2__c",
198
+ ...register("General_Business_Phone_SFDC2__c", {
199
+ required: true,
200
+ maxLength: 12
201
+ }),
202
+ label: "Business Phone",
203
+ sizes: "medium",
204
+ required: true,
205
+ error: !!errors.General_Business_Phone_SFDC2__c,
206
+ helperText: errors.General_Business_Phone_SFDC2__c?.message,
207
+ variant
208
+ }
209
+ ) }),
210
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
211
+ Input,
212
+ {
213
+ id: "Company_NMLS_ID__c",
214
+ ...register("Company_NMLS_ID__c"),
215
+ label: "Company NMLS ID",
216
+ sizes: "medium",
217
+ error: !!errors.Company_NMLS_ID__c,
218
+ helperText: errors.Company_NMLS_ID__c?.message,
219
+ variant
220
+ }
221
+ ) }),
222
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
223
+ Input,
224
+ {
225
+ id: "Business_Name__c",
226
+ ...register("Business_Name__c"),
227
+ label: "Business Name",
228
+ sizes: "medium",
229
+ error: !!errors.Business_Name__c,
230
+ helperText: errors.Business_Name__c?.message,
231
+ variant
232
+ }
233
+ ) }),
234
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
235
+ Input,
236
+ {
237
+ id: "Property_Zip__c",
238
+ ...register("Property_Zip__c"),
239
+ label: "Property Location or ZIP Code",
240
+ sizes: "medium",
241
+ error: !!errors.Property_Zip__c,
242
+ helperText: errors.Property_Zip__c?.message,
243
+ variant
244
+ }
245
+ ) }),
246
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
247
+ Dropdown,
248
+ {
249
+ id: "Annual_Gross_Revenue__c",
250
+ ...register("Annual_Gross_Revenue__c", {
251
+ required: true
252
+ }),
253
+ label: "Annual Gross Revenue",
254
+ sizes: "medium",
255
+ required: true,
256
+ error: !!errors.Annual_Gross_Revenue__c,
257
+ helperText: errors.Annual_Gross_Revenue__c?.message,
258
+ variant,
259
+ children: [
260
+ /* @__PURE__ */ jsx("option", { value: "<$5MM", children: "<$5MM" }),
261
+ /* @__PURE__ */ jsx("option", { value: "$5-10MM", children: "$5-10MM" }),
262
+ /* @__PURE__ */ jsx("option", { value: "$10MM-$20MM", children: "$10MM-$20MM" }),
263
+ /* @__PURE__ */ jsx("option", { value: "$20MM+", children: "$20MM+" })
264
+ ]
265
+ }
266
+ ) }),
267
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
268
+ Dropdown,
269
+ {
270
+ id: "Time_in_Business__c",
271
+ ...register("Time_in_Business__c", {
272
+ required: true
273
+ }),
274
+ label: "Time in Business",
275
+ sizes: "medium",
276
+ required: true,
277
+ error: !!errors.Time_in_Business__c,
278
+ helperText: errors.Time_in_Business__c?.message,
279
+ variant,
280
+ children: [
281
+ /* @__PURE__ */ jsx("option", { value: "< 2 Years in Business", children: "< 2 Years in Business" }),
282
+ /* @__PURE__ */ jsx("option", { value: "2-5 Years in Business", children: "2-5 Years in Business" }),
283
+ /* @__PURE__ */ jsx("option", { value: "5+ Years in Business", children: "5+ Years in Business" })
284
+ ]
285
+ }
286
+ ) }),
287
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
288
+ Dropdown,
289
+ {
290
+ id: "Lead_Type__c",
291
+ ...register("Lead_Type__c", {
292
+ required: true
293
+ }),
294
+ label: "Type",
295
+ sizes: "medium",
296
+ required: true,
297
+ error: !!errors.Lead_Type__c,
298
+ helperText: errors.Lead_Type__c?.message,
299
+ variant,
300
+ children: [
301
+ /* @__PURE__ */ jsx("option", { value: "Broker", children: "Broker" }),
302
+ /* @__PURE__ */ jsx("option", { value: "Borrower", children: "Borrower" })
303
+ ]
304
+ }
305
+ ) }),
306
+ equipmentPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
307
+ Dropdown,
308
+ {
309
+ id: "Type_of_Equipment_Finance__c",
310
+ ...register("Type_of_Equipment_Finance__c"),
311
+ label: "Type of Equipment",
312
+ sizes: "medium",
313
+ error: !!errors.Type_of_Equipment_Finance__c,
314
+ helperText: errors.Type_of_Equipment_Finance__c?.message,
315
+ variant,
316
+ defaultValue: "",
317
+ children: [
318
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
319
+ /* @__PURE__ */ jsx("option", { value: "Agriculture", children: "Agriculture" }),
320
+ /* @__PURE__ */ jsx("option", { value: "Transportation and Material Handling", children: "Transportation and Material Handling" }),
321
+ /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" }),
322
+ /* @__PURE__ */ jsx("option", { value: "Healthcare", children: "Healthcare" }),
323
+ /* @__PURE__ */ jsx("option", { value: "Manufacturing", children: "Manufacturing" }),
324
+ /* @__PURE__ */ jsx("option", { value: "Energy", children: "Energy" }),
325
+ /* @__PURE__ */ jsx("option", { value: "Technology and Service", children: "Technology and Service" }),
326
+ /* @__PURE__ */ jsx("option", { value: "Insurance", children: "Insurance" }),
327
+ /* @__PURE__ */ jsx("option", { value: "Pharmaceutical and Laboratory", children: "Pharmaceutical and Laboratory" })
328
+ ]
329
+ }
330
+ ) }),
331
+ (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
332
+ Dropdown,
333
+ {
334
+ id: "Asset_Class__c",
335
+ ...register("Asset_Class__c"),
336
+ label: "Asset Class",
337
+ sizes: "medium",
338
+ error: !!errors.Asset_Class__c,
339
+ helperText: errors.Asset_Class__c?.message,
340
+ variant,
341
+ defaultValue: "",
342
+ children: [
343
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
344
+ /* @__PURE__ */ jsx("option", { value: "Multifamily", children: "Multifamily" }),
345
+ CRESLPage && /* @__PURE__ */ jsx("option", { value: "Mixed-Use", children: "Mixed-Use" }),
346
+ /* @__PURE__ */ jsx("option", { value: "Office", children: "Office" }),
347
+ /* @__PURE__ */ jsx("option", { value: "Retail", children: "Retail" }),
348
+ /* @__PURE__ */ jsx("option", { value: "Hospitality", children: "Hospitality" }),
349
+ /* @__PURE__ */ jsx("option", { value: "Industrial/Warehouse", children: "Industrial/Warehouse" }),
350
+ /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
351
+ ]
352
+ }
353
+ ) }),
354
+ CRESLPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
355
+ Dropdown,
356
+ {
357
+ id: "Loan__c",
358
+ ...register("Loan__c"),
359
+ label: "Purpose of Loan",
360
+ sizes: "medium",
361
+ error: !!errors.Loan__c,
362
+ helperText: errors.Loan__c?.message,
363
+ variant,
364
+ defaultValue: "",
365
+ children: [
366
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
367
+ /* @__PURE__ */ jsx("option", { value: "Bridge", children: "Bridge" }),
368
+ /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" })
369
+ ]
370
+ }
371
+ ) }),
372
+ (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
373
+ Input,
374
+ {
375
+ id: "Requested_loan_amount_and_leverage__c",
376
+ ...register("Requested_loan_amount_and_leverage__c"),
377
+ label: "Requested Loan Amount and Leverage",
378
+ sizes: "medium",
379
+ error: !!errors.Requested_loan_amount_and_leverage__c,
380
+ helperText: errors.Requested_loan_amount_and_leverage__c?.message,
381
+ variant
382
+ }
383
+ ) })
384
+ ] }),
385
+ children,
386
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
387
+ /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
388
+ LoadingIndicator,
389
+ {
390
+ style: { marginInline: "auto" },
391
+ variant
392
+ }
393
+ ) : /* @__PURE__ */ jsx(
394
+ Button,
395
+ {
396
+ color: getVariant(callToAction?.variant),
397
+ as: "button",
398
+ type: "submit",
399
+ disabled: !isValid || isSubmitting,
400
+ children: callToAction?.displayText
401
+ }
402
+ ) })
403
+ ] })
404
+ ] }) }) }, id);
410
405
  };
411
406
  export {
412
407
  CommercialLending