@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.
- package/dist/ATMLocator/ATMLocator.js +8 -1
- package/dist/ArticlesSet/ArticlesSet.js +2 -2
- package/dist/Auth/ErrorAlert.js +10 -3
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/Button/Button.js +10 -3
- package/dist/Calculators/Calculator.js +22 -3
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
- package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
- package/dist/Calculators/index.d.ts +2 -1
- package/dist/Calculators/index.js +3 -1
- package/dist/Carousel/index.js +10 -3
- package/dist/Chatbot/Bubble.css.d.ts +1 -0
- package/dist/Chatbot/Bubble.css.js +5 -0
- package/dist/Chatbot/Bubble.d.ts +3 -0
- package/dist/Chatbot/Bubble.js +48 -0
- package/dist/Chatbot/Chat.d.ts +1 -0
- package/dist/Chatbot/Chat.js +165 -0
- package/dist/Chatbot/ChatWindow.css.d.ts +11 -0
- package/dist/Chatbot/ChatWindow.css.js +25 -0
- package/dist/Chatbot/ChatWindow.d.ts +23 -0
- package/dist/Chatbot/ChatWindow.js +202 -0
- package/dist/Chatbot/Chatbot.css.d.ts +1 -0
- package/dist/Chatbot/Chatbot.css.js +5 -0
- package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
- package/dist/Chatbot/Chatbot.d.ts +1 -0
- package/dist/Chatbot/Chatbot.js +39 -0
- package/dist/Chatbot/authenticate.d.ts +3 -0
- package/dist/Chatbot/authenticate.js +16 -0
- package/dist/Chatbot/index.d.ts +9 -0
- package/dist/Chatbot/index.js +31 -0
- package/dist/Chatbot/store/chat.d.ts +9 -0
- package/dist/Chatbot/store/chat.js +11 -0
- package/dist/Chatbot/store/messages.d.ts +14 -0
- package/dist/Chatbot/store/messages.js +12 -0
- package/dist/Chatbot/useHeadlessChat.d.ts +22 -0
- package/dist/Chatbot/useHeadlessChat.js +157 -0
- package/dist/Chevron/index.js +10 -3
- package/dist/Comparison/Comparison.js +10 -3
- package/dist/ExecutiveBio/ExecutiveBio.js +10 -3
- package/dist/FaqAccordion/index.js +10 -3
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +10 -3
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplicationStart.js +111 -89
- package/dist/Forms/ApplyNow.d.ts +2 -2
- package/dist/Forms/ApplyNow.js +178 -146
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/ClearingForm.js +184 -162
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.js +201 -179
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +278 -256
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +128 -106
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompany.js +113 -91
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.js +127 -105
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUs.js +99 -77
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.js +180 -158
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +143 -115
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +112 -84
- package/dist/Forms/ContactUsLVF.d.ts +3 -1
- package/dist/Forms/ContactUsLVF.js +127 -101
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +126 -98
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +641 -619
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +118 -90
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +225 -204
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +65 -39
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +75 -53
- package/dist/Forms/FormProps.d.ts +3 -0
- package/dist/Forms/Forms.css.d.ts +18 -0
- package/dist/Forms/Forms.css.js +44 -38
- package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
- package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
- package/dist/Forms/HoneyPot/index.d.ts +23 -0
- package/dist/Forms/HoneyPot/index.js +69 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +376 -348
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +10 -3
- package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
- package/dist/Forms/MortgageWarehouseLending.js +343 -0
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +156 -134
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.js +178 -156
- package/dist/Forms/SuccesForm.js +13 -6
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/VendorQuestionnaire.js +817 -795
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/WcplSurvey.js +112 -90
- package/dist/Forms/applynow-utils.d.ts +1 -0
- package/dist/Forms/applynow-utils.js +48 -0
- package/dist/Forms/index.d.ts +3 -0
- package/dist/Forms/index.js +12 -2
- package/dist/HeroBanner/HeroBanner.js +42 -1
- package/dist/Hyperlink/index.js +10 -3
- package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
- package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
- package/dist/ImageLink/ImageLink.js +10 -3
- package/dist/ImageLink/ImageLinkSet.js +10 -3
- package/dist/ImageLink/index.js +10 -3
- package/dist/Input/Input.js +3 -1
- package/dist/Insight/Featured/CategorySelector.js +10 -3
- package/dist/Insight/Featured/Featured.js +10 -3
- package/dist/Insight/Featured/Header.js +10 -3
- package/dist/Modal/Modal.js +10 -3
- package/dist/NavigationMenu/AxosALTS/NavData.js +10 -3
- package/dist/NavigationMenu/AxosALTS/index.js +10 -3
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +25 -7
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
- package/dist/NavigationMenu/AxosBank/NavData.js +10 -3
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +32 -8
- package/dist/NavigationMenu/AxosBank/index.js +10 -3
- package/dist/NavigationMenu/LaVictoire/NavData.js +10 -3
- package/dist/NavigationMenu/LaVictoire/index.js +10 -3
- package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
- package/dist/NavigationMenu/NavDataJson.js +315 -0
- package/dist/NavigationMenu/Navbar.d.ts +5 -0
- package/dist/NavigationMenu/Navbar.js +201 -0
- package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
- package/dist/NavigationMenu/SignInNavButton.js +369 -0
- package/dist/SetContainer/SetContainer.js +10 -3
- package/dist/SocialMediaBar/iconsRepository.js +10 -3
- package/dist/Table/Table.d.ts +1 -1
- package/dist/VideoTile/VideoTile.js +10 -3
- package/dist/VideoWrapper/index.js +10 -3
- package/dist/assets/Blockquote/Blockquote.css.css +68 -68
- package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
- package/dist/assets/Chatbot/Bubble.css +40 -0
- package/dist/assets/Chatbot/ChatWindow.css +107 -0
- package/dist/assets/Forms/Forms.css +135 -105
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -191
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -473
- package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
- package/dist/icons/Logos/AXB.d.ts +8 -0
- package/dist/icons/Logos/AXB.js +74 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +43 -3
- package/dist/utils/allowedAxosDomains.js +2 -1
- package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
- 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(
|
|
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(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
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
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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;
|