@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.
- package/dist/Accordion/Accordion.css.d.ts +9 -9
- package/dist/ArticlesSet/ArticlesSet.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +4 -2
- package/dist/Calculators/calculators.js +6 -0
- package/dist/Carousel/index.d.ts +1 -0
- package/dist/Carousel/index.js +5 -4
- package/dist/Comparison/Comparison.css.js +2 -2
- package/dist/ContentBanner/index.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
- package/dist/FaqAccordion/index.d.ts +1 -0
- package/dist/FaqAccordion/index.js +2 -2
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +5 -2
- package/dist/FooterDisclosure/FooterDisclosure.js +18 -2
- package/dist/Forms/ApplicationStart.js +105 -113
- package/dist/Forms/ClearingForm.js +177 -185
- package/dist/Forms/CommercialLending.js +276 -281
- package/dist/Forms/ContactCompany.js +107 -115
- package/dist/Forms/ContactUs.js +89 -97
- package/dist/Forms/ContactUsAAS.js +170 -178
- package/dist/Forms/ContactUsBusiness.js +128 -136
- package/dist/Forms/ContactUsNMLSId.js +111 -119
- package/dist/Forms/CpraRequest.js +592 -600
- package/dist/Forms/DealerServices.js +219 -227
- package/dist/Forms/EmailOnly.js +48 -56
- package/dist/Forms/EmailUs.js +65 -73
- package/dist/Forms/Forms.css.js +2 -2
- package/dist/Forms/SalesforceFieldsForm.d.ts +1 -0
- package/dist/Forms/ScheduleCall.js +149 -160
- package/dist/Forms/ScheduleCallPremier.js +171 -179
- package/dist/Forms/WcplSurvey.js +102 -110
- package/dist/HeroBanner/HeroBanner.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.js +2 -2
- package/dist/IconBillboard/IconBillboard.d.ts +1 -0
- package/dist/IconBillboard/IconBillboard.js +6 -4
- package/dist/ImageBillboard/ImageBillboard.css.js +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +1 -0
- package/dist/Input/Checkbox.d.ts +1 -1
- package/dist/Input/Input.css.js +1 -1
- package/dist/Input/InputProps.d.ts +0 -6
- package/dist/Insight/Featured/CategorySelector.css.js +1 -1
- package/dist/StepItemSet/StepItemSet.js +1 -1
- package/dist/Table/Table.d.ts +13 -13
- package/dist/TextBlock/TextBlock.js +1 -1
- package/dist/VideoTile/VideoTile.js +1 -1
- package/dist/VideoWrapper/index.js +22 -30
- package/dist/assets/Comparison/Comparison.css +0 -1
- package/dist/assets/Table/Table.css +8 -8
- package/dist/index.css.js +1 -1
- package/package.json +121 -121
- package/dist/Input/DatePicker.css.d.ts +0 -1
- package/dist/Input/DatePicker.css.js +0 -6
- package/dist/Input/Datepicker.d.ts +0 -3
- package/dist/Input/Datepicker.js +0 -47
- package/dist/Input/InputDate.css.d.ts +0 -6
- package/dist/Input/InputDate.css.js +0 -15
- package/dist/Input/InputDate.d.ts +0 -3
- package/dist/Input/InputDate.js +0 -47
- package/dist/assets/Input/DatePicker.css +0 -95
- 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([
|
|
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
|
-
"
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
)
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
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
|