@axos-web-dev/shared-components 2.0.0-dev.enableCTA2 → 2.0.0-dev.insights.11

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 (90) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -1
  2. package/dist/Auth/ErrorAlert.js +1 -1
  3. package/dist/Button/Button.js +1 -1
  4. package/dist/Calculators/ApyCalculator/index.js +5 -78
  5. package/dist/Calculators/Calculator.js +1 -1
  6. package/dist/Calculators/MarginTradingCalculator/index.js +1 -1
  7. package/dist/Carousel/index.js +1 -1
  8. package/dist/Chatbot/Bubble.css.js +0 -1
  9. package/dist/Chatbot/ChatWindow.d.ts +0 -1
  10. package/dist/Chatbot/ChatWindow.js +10 -5
  11. package/dist/Chatbot/Chatbot.css.js +1 -0
  12. package/dist/Chatbot/Chatbot.js +42 -75
  13. package/dist/Chatbot/ChatbotMessage.d.ts +0 -1
  14. package/dist/Chatbot/ChatbotMessage.js +1 -2
  15. package/dist/Chatbot/store/messages.d.ts +1 -6
  16. package/dist/Chatbot/store/messages.js +3 -62
  17. package/dist/Chevron/index.js +1 -1
  18. package/dist/Comparison/Comparison.js +1 -1
  19. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  20. package/dist/FaqAccordion/index.js +1 -1
  21. package/dist/FdicCallout/index.js +1 -1
  22. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  23. package/dist/Forms/ApplyNow.js +1 -1
  24. package/dist/Forms/ContactUsBusiness.js +1 -1
  25. package/dist/Forms/ContactUsBusinessNameEmail.js +1 -1
  26. package/dist/Forms/ContactUsNMLSId.js +1 -1
  27. package/dist/Forms/CpraRequest.js +1 -1
  28. package/dist/Forms/CraPublicFile.js +1 -1
  29. package/dist/Forms/EmailOnly.js +2 -12
  30. package/dist/Forms/FormEnums.d.ts +0 -16
  31. package/dist/Forms/FormEnums.js +0 -27
  32. package/dist/Forms/MortgageRate/MortgageRateForm.js +9 -27
  33. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +11 -33
  34. package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
  35. package/dist/Forms/MortgageRate/MortgageRateWatch.js +18 -91
  36. package/dist/Forms/MortgageWarehouseLending.js +1 -1
  37. package/dist/Forms/SuccesForm.js +1 -1
  38. package/dist/Forms/index.d.ts +0 -1
  39. package/dist/Forms/index.js +0 -2
  40. package/dist/Hyperlink/index.js +1 -1
  41. package/dist/ImageLink/ImageLink.js +1 -1
  42. package/dist/ImageLink/ImageLinkSet.js +1 -1
  43. package/dist/ImageLink/index.js +1 -1
  44. package/dist/ImageToast/index.js +1 -1
  45. package/dist/Input/DownPaymentInput.js +0 -1
  46. package/dist/Insight/Featured/CategorySelector.css.d.ts +5 -3
  47. package/dist/Insight/Featured/CategorySelector.css.js +12 -8
  48. package/dist/Insight/Featured/CategorySelector.d.ts +1 -0
  49. package/dist/Insight/Featured/CategorySelector.js +75 -35
  50. package/dist/Insight/Featured/Featured.css.d.ts +13 -4
  51. package/dist/Insight/Featured/Featured.css.js +37 -18
  52. package/dist/Insight/Featured/Featured.d.ts +1 -0
  53. package/dist/Insight/Featured/Featured.js +130 -94
  54. package/dist/Insight/Featured/Header.css.d.ts +1 -0
  55. package/dist/Insight/Featured/Header.css.js +9 -6
  56. package/dist/Insight/Featured/Header.js +11 -18
  57. package/dist/Insight/Featured/index.js +13 -4
  58. package/dist/Insight/index.js +13 -4
  59. package/dist/LandingPageHeader/WithLogin.js +1 -1
  60. package/dist/Modal/Modal.js +1 -1
  61. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  62. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +1 -1
  63. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +1 -1
  64. package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -2
  65. package/dist/NavigationMenu/AxosBank/index.js +1 -1
  66. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  67. package/dist/NavigationMenu/NavItem/index.js +1 -1
  68. package/dist/NavigationMenu/ServerNavigation/DropwdownButton.js +1 -1
  69. package/dist/NavigationMenu/ServerNavigation/Menu.js +1 -1
  70. package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.js +14 -12
  71. package/dist/NavigationMenu/ServerNavigation/SubNavBar.js +1 -1
  72. package/dist/NavigationMenu/ServerNavigation/SubNavItem.js +1 -1
  73. package/dist/NavigationMenu/ServerNavigation/index.js +1 -1
  74. package/dist/SetContainer/SetContainer.js +1 -1
  75. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  76. package/dist/VideoTile/VideoTile.js +1 -1
  77. package/dist/VideoWrapper/index.js +1 -1
  78. package/dist/assets/CallToActionBar/CallToActionBar.css +2 -1
  79. package/dist/assets/Forms/Forms.css +2 -1
  80. package/dist/assets/Input/Input.css +1 -0
  81. package/dist/assets/Insight/Featured/CategorySelector.css +60 -38
  82. package/dist/assets/Insight/Featured/Featured.css +126 -65
  83. package/dist/assets/Insight/Featured/Header.css +22 -13
  84. package/dist/assets/TextBlock/TextBlock.css +1 -0
  85. package/dist/icons/Clock/index.js +1 -0
  86. package/dist/main.js +12 -5
  87. package/dist/utils/allowedAxosDomains.js +3 -2
  88. package/package.json +4 -5
  89. package/dist/Forms/NonQMLoans.d.ts +0 -16
  90. package/dist/Forms/NonQMLoans.js +0 -471
@@ -80,10 +80,10 @@ import "../../Auth/SignInPassword.js";
80
80
  /* empty css */
81
81
  import "../../Carousel/index.js";
82
82
  /* empty css */
83
- import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
84
83
  /* empty css */
85
84
  import "../../Chatbot/store/chat.js";
86
85
  import "../../Chatbot/Chatbot.js";
86
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
87
87
  /* empty css */
88
88
  import "../../Chatbot/store/messages.js";
89
89
  /* empty css */
@@ -140,34 +140,12 @@ const RateWatchForm = ({
140
140
  toggleModal,
141
141
  setRateWatchSubmitted
142
142
  }) => {
143
- const desiredRateFields = [
144
- "tR1DesiredRate",
145
- "tR2DesiredRate",
146
- "tR3DesiredRate"
147
- ];
148
- const sanitizeDesiredRate = (value) => {
149
- if (!value) return "";
150
- const normalizedValue = value.replace(/[^\d.]/g, "");
151
- if (!normalizedValue || normalizedValue === ".") return "";
152
- const [wholePart, decimalPart = ""] = normalizedValue.split(".");
153
- const trimmedDecimal = decimalPart.slice(0, 4);
154
- const formattedValue = trimmedDecimal ? `${wholePart || "0"}.${trimmedDecimal}` : wholePart || "0";
155
- const numericValue = Number(formattedValue);
156
- if (!Number.isFinite(numericValue)) return "";
157
- return Number.isInteger(numericValue) ? String(numericValue) : numericValue.toFixed(4).replace(/\.0+$|(?<=\.\d*)(0+)$/, "").replace(/\.$/, "");
158
- };
159
- const isDesiredRateOutOfRange = (value) => {
160
- if (!value) return false;
161
- const numericValue = Number(value);
162
- if (!Number.isFinite(numericValue)) return false;
163
- return numericValue < 2 || numericValue > 10;
164
- };
165
143
  const [updateType, setUpdateType] = useState(
166
144
  "Target Rate"
167
145
  );
168
146
  const schema = z.object({
169
147
  updateType: z.string().min(1, { message: "Update type is required." }),
170
- updateCadence: z.string().optional().refine((val) => !(updateType === "Frequency" && !val), {
148
+ updateCadence: z.string().refine((val) => !(updateType === "Frequency" && !val), {
171
149
  message: "Frequency is required."
172
150
  }),
173
151
  loanTerms: z.string().optional().refine((val) => !(updateType === "Frequency" && !val), {
@@ -176,13 +154,11 @@ const RateWatchForm = ({
176
154
  hasSmsConsent: z.boolean().refine((val) => val === true, {
177
155
  message: "You must agree to receive SMS messages."
178
156
  }),
179
- tR1DesiredRate: z.string().optional().refine((val) => updateType === "Target Rate" ? !!val : true, {
180
- message: "Desired Rate is required."
181
- }).refine(
157
+ tR1DesiredRate: z.string().optional().refine(
182
158
  (val) => {
183
159
  if (val && updateType === "Target Rate") {
184
160
  const numericValue = +val;
185
- return numericValue >= 2 && numericValue <= 10;
161
+ return !val || numericValue >= 2 && numericValue <= 10;
186
162
  }
187
163
  return true;
188
164
  },
@@ -221,21 +197,15 @@ const RateWatchForm = ({
221
197
  email: z.string()
222
198
  });
223
199
  const methods = useForm({
224
- resolver: zodResolver(schema),
225
- mode: "onChange"
200
+ resolver: zodResolver(schema)
226
201
  });
227
202
  const {
228
203
  handleSubmit,
229
204
  register,
230
205
  formState: { errors, isSubmitting, isValid },
231
206
  setValue,
232
- clearErrors,
233
- watch
207
+ clearErrors
234
208
  } = methods;
235
- const watchedDesiredRates = watch(desiredRateFields);
236
- const hasDesiredRateWarning = desiredRateFields.some(
237
- (_, index) => isDesiredRateOutOfRange(watchedDesiredRates[index])
238
- );
239
209
  const submitForm = async (data) => {
240
210
  const processedData = {
241
211
  ...data,
@@ -274,22 +244,12 @@ const RateWatchForm = ({
274
244
  const handleTypeChange = (event) => {
275
245
  const value = event.target.value;
276
246
  setUpdateType(value);
277
- methods.setValue("updateType", value, { shouldValidate: true });
278
- };
279
- const handleDesiredRateChange = (fieldName) => (event) => {
280
- const sanitizedValue = sanitizeDesiredRate(event.target.value);
281
- event.target.value = sanitizedValue;
282
- setValue(fieldName, sanitizedValue, {
283
- shouldValidate: true,
284
- shouldDirty: true,
285
- shouldTouch: true
286
- });
287
247
  };
288
248
  const handleSubmitClick = () => {
289
249
  handleSubmit(submitForm)();
290
250
  };
291
251
  useEffect(() => {
292
- methods.reset({ updateType });
252
+ methods.reset();
293
253
  }, [updateType]);
294
254
  return /* @__PURE__ */ jsx("section", { className: "rate-watch-form", children: /* @__PURE__ */ jsx(FormProvider, { ...methods, children: /* @__PURE__ */ jsx(
295
255
  SuccesFormWrapper,
@@ -367,7 +327,7 @@ const RateWatchForm = ({
367
327
  /* @__PURE__ */ jsx("p", { className: mt1Rem, children: "You can establish up to three different targets with one rate watch." }),
368
328
  /* @__PURE__ */ jsxs("div", { className: threeColRow, children: [
369
329
  /* @__PURE__ */ jsxs("div", { children: [
370
- /* @__PURE__ */ jsx("label", { className: resposiveLabel, children: "Select a Loan Type" }),
330
+ /* @__PURE__ */ jsx("label", { className: resposiveLabel, children: "Select a Loan Type*" }),
371
331
  /* @__PURE__ */ jsxs(
372
332
  Dropdown,
373
333
  {
@@ -386,24 +346,18 @@ const RateWatchForm = ({
386
346
  )
387
347
  ] }),
388
348
  /* @__PURE__ */ jsxs("div", { children: [
389
- /* @__PURE__ */ jsxs("label", { className: resposiveLabel, children: [
390
- "Desired Rate",
391
- /* @__PURE__ */ jsx("sup", { children: "*" })
392
- ] }),
349
+ /* @__PURE__ */ jsx("label", { className: resposiveLabel, children: "Desired Rate" }),
393
350
  /* @__PURE__ */ jsx(
394
351
  Input,
395
352
  {
396
353
  className: dynPH,
397
354
  ...register("tR1DesiredRate", {
398
- setValueAs: (value) => sanitizeDesiredRate(String(value ?? ""))
355
+ setValueAs: (value) => value ? `${value}` : ""
399
356
  }),
400
- onChange: handleDesiredRateChange("tR1DesiredRate"),
401
357
  type: "number",
402
- min: "2",
403
- max: "10",
404
358
  placeholder: "Desired Rate",
405
359
  error: !!errors.tR1DesiredRate,
406
- helperText: isDesiredRateOutOfRange(watch("tR1DesiredRate")) ? "Desired Rate must be between 2 and 10." : errors.tR1DesiredRate?.message
360
+ helperText: errors.tR1DesiredRate?.message
407
361
  }
408
362
  )
409
363
  ] }),
@@ -454,16 +408,9 @@ const RateWatchForm = ({
454
408
  Input,
455
409
  {
456
410
  className: dynPH,
457
- ...register("tR2DesiredRate", {
458
- setValueAs: (value) => sanitizeDesiredRate(String(value ?? ""))
459
- }),
460
- onChange: handleDesiredRateChange("tR2DesiredRate"),
461
- type: "number",
462
- min: "2",
463
- max: "10",
464
- placeholder: "Desired Rate",
465
- error: isDesiredRateOutOfRange(watch("tR2DesiredRate")),
466
- helperText: isDesiredRateOutOfRange(watch("tR2DesiredRate")) ? "Desired Rate must be between 2 and 10." : errors.tR2DesiredRate?.message
411
+ ...register("tR2DesiredRate"),
412
+ type: "string",
413
+ placeholder: "Desired Rate"
467
414
  }
468
415
  ) }),
469
416
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
@@ -509,17 +456,10 @@ const RateWatchForm = ({
509
456
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
510
457
  Input,
511
458
  {
512
- ...register("tR3DesiredRate", {
513
- setValueAs: (value) => sanitizeDesiredRate(String(value ?? ""))
514
- }),
515
- onChange: handleDesiredRateChange("tR3DesiredRate"),
516
- type: "number",
517
- min: "2",
518
- max: "10",
459
+ ...register("tR3DesiredRate"),
460
+ type: "string",
519
461
  placeholder: "Desired Rate",
520
- className: dynPH,
521
- error: isDesiredRateOutOfRange(watch("tR3DesiredRate")),
522
- helperText: isDesiredRateOutOfRange(watch("tR3DesiredRate")) ? "Desired Rate must be between 2 and 10." : errors.tR3DesiredRate?.message
462
+ className: dynPH
523
463
  }
524
464
  ) }),
525
465
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
@@ -544,20 +484,7 @@ const RateWatchForm = ({
544
484
  }
545
485
  ) })
546
486
  ] }),
547
- /* @__PURE__ */ jsxs(
548
- "p",
549
- {
550
- className: mt1Rem,
551
- style: {
552
- color: hasDesiredRateWarning ? "#d92d20" : void 0,
553
- fontWeight: hasDesiredRateWarning ? 600 : void 0
554
- },
555
- children: [
556
- /* @__PURE__ */ jsx("sup", { children: "*" }),
557
- " Please enter a desired rate between 2% and 10%"
558
- ]
559
- }
560
- )
487
+ /* @__PURE__ */ jsx("p", { className: mt1Rem, children: "*The number in Desired Rate must be at least 2% and no more than 10%" })
561
488
  ] }),
562
489
  /* @__PURE__ */ jsxs("div", { className: modalCheckboxContainer, children: [
563
490
  /* @__PURE__ */ jsx(
@@ -83,10 +83,10 @@ import "../Auth/SignInPassword.js";
83
83
  /* empty css */
84
84
  import "../Carousel/index.js";
85
85
  /* empty css */
86
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
87
86
  /* empty css */
88
87
  import "../Chatbot/store/chat.js";
89
88
  import "../Chatbot/Chatbot.js";
89
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
90
90
  /* empty css */
91
91
  import "../Chatbot/store/messages.js";
92
92
  /* empty css */
@@ -66,10 +66,10 @@ import "../Auth/SignInPassword.js";
66
66
  /* empty css */
67
67
  import "../Carousel/index.js";
68
68
  /* empty css */
69
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
70
69
  /* empty css */
71
70
  import "../Chatbot/store/chat.js";
72
71
  import "../Chatbot/Chatbot.js";
72
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
73
73
  import "../LoadingIndicator/LoadingIndicator.css.js";
74
74
  import "react-use";
75
75
  /* empty css */
@@ -39,4 +39,3 @@ export * from './SuccesForm';
39
39
  export * from './VendorQuestionnaire';
40
40
  export * from './WcplSurvey';
41
41
  export * from './BoatMooringLocation';
42
- export * from './NonQMLoans';
@@ -45,7 +45,6 @@ import { SuccesFormWrapper } from "./SuccesForm.js";
45
45
  import { VendorQuestionnaire } from "./VendorQuestionnaire.js";
46
46
  import { WCPLSurvey } from "./WcplSurvey.js";
47
47
  import { BoatMooringLocation } from "./BoatMooringLocation.js";
48
- import { NonQMLoans } from "./NonQMLoans.js";
49
48
  import { honeyPotFieldsSchema, honeyPotSchema, isValidHoneyPot } from "./HoneyPot/honeyPotValidation.js";
50
49
  export {
51
50
  ApplicationStart,
@@ -77,7 +76,6 @@ export {
77
76
  MortgageRate,
78
77
  MortgageRateFilters,
79
78
  MortgageWarehouseLending,
80
- NonQMLoans,
81
79
  QuickPricer,
82
80
  RateWatchForm,
83
81
  SalesforceFieldsForm,
@@ -77,10 +77,10 @@ import "../Auth/SignInPassword.js";
77
77
  /* empty css */
78
78
  import "../Carousel/index.js";
79
79
  /* empty css */
80
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
81
80
  /* empty css */
82
81
  import "../Chatbot/store/chat.js";
83
82
  import "../Chatbot/Chatbot.js";
83
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
84
84
  /* empty css */
85
85
  import "../Chatbot/store/messages.js";
86
86
  /* empty css */
@@ -72,10 +72,10 @@ import "../Auth/SignInPassword.js";
72
72
  /* empty css */
73
73
  import "../Carousel/index.js";
74
74
  /* empty css */
75
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
76
75
  /* empty css */
77
76
  import "../Chatbot/store/chat.js";
78
77
  import "../Chatbot/Chatbot.js";
78
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
79
  /* empty css */
80
80
  import "../Chatbot/store/messages.js";
81
81
  /* empty css */
@@ -77,10 +77,10 @@ import "../Auth/SignInPassword.js";
77
77
  /* empty css */
78
78
  import "../Carousel/index.js";
79
79
  /* empty css */
80
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
81
80
  /* empty css */
82
81
  import "../Chatbot/store/chat.js";
83
82
  import "../Chatbot/Chatbot.js";
83
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
84
84
  /* empty css */
85
85
  import "../Chatbot/store/messages.js";
86
86
  /* empty css */
@@ -75,10 +75,10 @@ import "../Auth/SignInPassword.js";
75
75
  /* empty css */
76
76
  import "../Carousel/index.js";
77
77
  /* empty css */
78
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
78
  /* empty css */
80
79
  import "../Chatbot/store/chat.js";
81
80
  import "../Chatbot/Chatbot.js";
81
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
82
  /* empty css */
83
83
  import "../Chatbot/store/messages.js";
84
84
  /* empty css */
@@ -79,10 +79,10 @@ import "../Auth/SignInPassword.js";
79
79
  /* empty css */
80
80
  import "../Carousel/index.js";
81
81
  /* empty css */
82
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
83
82
  /* empty css */
84
83
  import "../Chatbot/store/chat.js";
85
84
  import "../Chatbot/Chatbot.js";
85
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
86
86
  /* empty css */
87
87
  import "../Chatbot/store/messages.js";
88
88
  /* empty css */
@@ -17,7 +17,6 @@ const DownPaymentInput = forwardRef(
17
17
  disabled,
18
18
  helperText: helper,
19
19
  error = false,
20
- defaultValue,
21
20
  ...rest
22
21
  }, ref) => {
23
22
  const [downPayment, setDownPayment] = useState(0);
@@ -1,10 +1,12 @@
1
1
  export declare const selector_section: string;
2
2
  export declare const selector_link: string;
3
- export declare const selector_link_mobile: string;
4
3
  export declare const selector_title_link: string;
5
4
  export declare const selector_more: string;
6
5
  export declare const selector_grid_items: string;
6
+ export declare const selector_grid_stacked: string;
7
7
  export declare const selector_small_item: string;
8
- export declare const selector_title: string;
9
- export declare const selector_grid_content: string;
10
8
  export declare const selector_img: string;
9
+ export declare const img_fit: string;
10
+ export declare const selector_grid_content: string;
11
+ export declare const selector_title: string;
12
+ export declare const selector_link_mobile: string;
@@ -7,17 +7,21 @@ import '../../assets/Insight/Featured/CategorySelector.css';import '../../assets
7
7
  /* empty css */
8
8
  var selector_section = "_13y9ptj0";
9
9
  var selector_link = "_13y9ptj1";
10
- var selector_link_mobile = "_13y9ptj2 _13y9ptj1";
11
- var selector_title_link = "_13y9ptj3";
12
- var selector_more = "_13y9ptj4";
13
- var selector_grid_items = "_13y9ptj5";
14
- var selector_small_item = "_13y9ptj6 _1sr2o6v9";
15
- var selector_title = "_13y9ptj7";
16
- var selector_grid_content = "_13y9ptj8";
17
- var selector_img = "_13y9ptj9";
10
+ var selector_title_link = "_13y9ptj2";
11
+ var selector_more = "_13y9ptj3";
12
+ var selector_grid_items = "_13y9ptj4";
13
+ var selector_grid_stacked = "_13y9ptj5";
14
+ var selector_small_item = "_13y9ptj6 _1sr2o6v5";
15
+ var selector_img = "_13y9ptj7";
16
+ var img_fit = "_13y9ptj8";
17
+ var selector_grid_content = "_13y9ptj9";
18
+ var selector_title = "_13y9ptja";
19
+ var selector_link_mobile = "_13y9ptjb _13y9ptj1";
18
20
  export {
21
+ img_fit,
19
22
  selector_grid_content,
20
23
  selector_grid_items,
24
+ selector_grid_stacked,
21
25
  selector_img,
22
26
  selector_link,
23
27
  selector_link_mobile,
@@ -10,6 +10,7 @@ export interface CategorySelectorProps extends PropsWithChildren {
10
10
  insights?: FeaturedItemProps[];
11
11
  hideLink?: boolean;
12
12
  hideMore?: boolean;
13
+ stackOnMobile?: boolean;
13
14
  }
14
15
  export declare const CategorySelector: (props: CategorySelectorProps) => import("react").JSX.Element;
15
16
  export declare const InsightItem: (props: FeaturedItemProps) => import("react").JSX.Element;
@@ -6,7 +6,7 @@ import { title } from "../../IconBillboard/IconBillboard.css.js";
6
6
  import "../../icons/ArrowIcon/ArrowIcon.css.js";
7
7
  import "../../icons/CheckIcon/CheckIcon.css.js";
8
8
  import ClockIcon from "../../icons/Clock/index.js";
9
- import '../../assets/Modal/Modal.css';import '../../assets/VideoWrapper/VideoWrapper.css';import '../../assets/TopicalNavSet/TopicalNavSet.css';import '../../assets/TopicalNavItem/TopicalNavItem.css';import '../../assets/Topic/Topic.css';import '../../assets/TextBlock/TextBlock.css';import '../../assets/SocialMediaBar/SocialMediaBar.css';import '../../assets/SecondaryFooter/SecondaryFooter.css';import '../../assets/Pagination/Pagination.css';import '../../assets/PageNavSet/PageNavigationSet.css';import '../../assets/NavigationMenu/LaVictoire/NavBar2.css';import '../../assets/NavigationMenu/AxosALTS/NavBar2.css';import '../../assets/NavigationMenu/AxosClearing/NavBar2.css';import '../../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../../assets/NavigationMenu/ServerNavigation/NavigationBar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/NavBar2.css';import '../../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisor/NavBar2.css';import '../../assets/NavigationMenu/AxosBank/NavBar2.css';import '../../assets/Insight/Featured/Header.css';import '../../assets/ImageLink/ImageLink.css';import '../../assets/VideoTile/VideoTile.css';import '../../assets/HelpArticle/HelpArticle.css';import '../../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../../assets/DownloadTile/DownloadTile.css';import '../../assets/CollectInformationAlert/CollectInformationAlert.css';import '../../assets/Chatbot/ChatWindow.css';import '../../assets/Chatbot/Bubble.css';import '../../assets/Chatbot/AnimatedGradientBorder.css';import '../../assets/CallToActionBar/CallToActionBar.css';import '../../assets/Insight/Insight.css';import '../../assets/AwardsItem/AwardsItem.css';import '../../assets/AwardsBanner/AwardsBanner.css';import '../../assets/Auth/SignIn.css';import '../../assets/Auth/ErrorAlert.css';import '../../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../../assets/Forms/QuickPricer/UserInformation.css';import '../../assets/Forms/QuickPricer/QuickPricerResults.css';import '../../assets/Forms/HoneyPot/HoneyPot.css';import '../../assets/ImageToast/ImageToast.css';import '../../assets/BulletItem/BulletItem.css';import '../../assets/Typography/Typography.css';import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/ufb.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
9
+ import '../../assets/Modal/Modal.css';import '../../assets/VideoWrapper/VideoWrapper.css';import '../../assets/TopicalNavSet/TopicalNavSet.css';import '../../assets/TopicalNavItem/TopicalNavItem.css';import '../../assets/Topic/Topic.css';import '../../assets/TextBlock/TextBlock.css';import '../../assets/SocialMediaBar/SocialMediaBar.css';import '../../assets/SecondaryFooter/SecondaryFooter.css';import '../../assets/Pagination/Pagination.css';import '../../assets/PageNavSet/PageNavigationSet.css';import '../../assets/NavigationMenu/LaVictoire/NavBar2.css';import '../../assets/NavigationMenu/AxosALTS/NavBar2.css';import '../../assets/NavigationMenu/AxosClearing/NavBar2.css';import '../../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../../assets/NavigationMenu/ServerNavigation/NavigationBar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/NavBar2.css';import '../../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisor/NavBar2.css';import '../../assets/NavigationMenu/AxosBank/NavBar2.css';import '../../assets/ImageLink/ImageLink.css';import '../../assets/VideoTile/VideoTile.css';import '../../assets/HelpArticle/HelpArticle.css';import '../../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../../assets/DownloadTile/DownloadTile.css';import '../../assets/CollectInformationAlert/CollectInformationAlert.css';import '../../assets/Chatbot/ChatWindow.css';import '../../assets/Chatbot/Bubble.css';import '../../assets/Chatbot/AnimatedGradientBorder.css';import '../../assets/CallToActionBar/CallToActionBar.css';import '../../assets/Insight/Insight.css';import '../../assets/AwardsItem/AwardsItem.css';import '../../assets/AwardsBanner/AwardsBanner.css';import '../../assets/Auth/SignIn.css';import '../../assets/Auth/ErrorAlert.css';import '../../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../../assets/Forms/QuickPricer/UserInformation.css';import '../../assets/Forms/QuickPricer/QuickPricerResults.css';import '../../assets/Forms/HoneyPot/HoneyPot.css';import '../../assets/ImageToast/ImageToast.css';import '../../assets/BulletItem/BulletItem.css';import '../../assets/Typography/Typography.css';import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/ufb.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
@@ -79,10 +79,10 @@ import "../../Auth/SignInPassword.js";
79
79
  /* empty css */
80
80
  import "../../Carousel/index.js";
81
81
  /* empty css */
82
- import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
83
82
  /* empty css */
84
83
  import "../../Chatbot/store/chat.js";
85
84
  import "../../Chatbot/Chatbot.js";
85
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
86
86
  /* empty css */
87
87
  import "../../Chatbot/store/messages.js";
88
88
  /* empty css */
@@ -101,8 +101,8 @@ import "../../ImageBillboard/ImageBillboard.css.js";
101
101
  import "next/script.js";
102
102
  /* empty css */
103
103
  /* empty css */
104
- import { featured_maingrid_img, featured_center_vertical, featured_maingrid_item } from "./Featured.css.js";
105
- /* empty css */
104
+ import { featured_maingrid_text, info_details, onhover } from "./Featured.css.js";
105
+ import { insight_wrap } from "./Header.css.js";
106
106
  import "../../LandingPageHeader/LandingPageHeader.css.js";
107
107
  import "next/link.js";
108
108
  /* empty css */
@@ -132,7 +132,7 @@ import "../../StepItemSet/StepItemSet.css.js";
132
132
  /* empty css */
133
133
  /* empty css */
134
134
  /* empty css */
135
- import { selector_title_link, selector_more, selector_link, selector_grid_items, selector_link_mobile, selector_section, selector_img, selector_title, selector_grid_content, selector_small_item } from "./CategorySelector.css.js";
135
+ import { selector_section, selector_link, selector_title_link, selector_more, selector_grid_items, selector_grid_stacked, selector_link_mobile, img_fit, selector_img, selector_grid_content, selector_title, selector_small_item } from "./CategorySelector.css.js";
136
136
  const CategorySelector = (props) => {
137
137
  const {
138
138
  id,
@@ -143,66 +143,106 @@ const CategorySelector = (props) => {
143
143
  insights,
144
144
  children,
145
145
  hideLink = false,
146
- hideMore = false
146
+ hideMore = false,
147
+ stackOnMobile = false
147
148
  } = props;
148
149
  const base = section ? `/${section}/insights` : `/insights`;
149
150
  const url = (subcategory !== void 0 ? `${base}/${category}/${subcategory}` : `${base}/${category}/`).toLowerCase();
150
- return /* @__PURE__ */ jsx("section", { id, className: clsx(selector_section), children: /* @__PURE__ */ jsxs("div", { className: clsx("containment"), children: [
151
- !hideLink && /* @__PURE__ */ jsx("div", { className: clsx(selector_link), children: !hideMore ? /* @__PURE__ */ jsxs(Fragment, { children: [
152
- /* @__PURE__ */ jsx("a", { href: url, className: clsx(selector_title_link), children: title2.replaceAll("-", " ") }),
151
+ return /* @__PURE__ */ jsx("section", { id, className: selector_section, children: /* @__PURE__ */ jsxs("div", { className: insight_wrap, children: [
152
+ !hideLink && /* @__PURE__ */ jsx("div", { className: selector_link, children: !hideMore ? /* @__PURE__ */ jsxs(Fragment, { children: [
153
+ /* @__PURE__ */ jsx("h2", { children: /* @__PURE__ */ jsx("a", { href: url, className: selector_title_link, children: title2.replaceAll("-", " ") }) }),
153
154
  /* @__PURE__ */ jsx(
154
155
  Chevron,
155
156
  {
156
157
  targetUrl: url,
157
158
  variant: "primary",
158
159
  className: selector_more,
159
- children: `See More ${title2.replaceAll("-", " ")} Articles`
160
+ children: `See More Articles`
160
161
  }
161
162
  )
162
- ] }) : /* @__PURE__ */ jsx("p", { className: clsx(selector_title_link), children: subcategory !== void 0 ? subcategory : title2 }) }),
163
- /* @__PURE__ */ jsx("div", { className: clsx(selector_grid_items), children: typeof insights !== "undefined" ? insights.map((item) => /* @__PURE__ */ jsx(
164
- InsightItem,
163
+ ] }) : /* @__PURE__ */ jsx("p", { className: selector_title_link, children: subcategory !== void 0 ? subcategory.replaceAll("-", " ") : title2.replaceAll("-", " ") }) }),
164
+ /* @__PURE__ */ jsx(
165
+ "div",
165
166
  {
166
- id: item.id,
167
- image: item.image,
168
- readingTime: item.readingTime,
169
- title: item.title,
170
- url: item.url
171
- },
172
- item.id
173
- )) : children }),
167
+ className: clsx(
168
+ selector_grid_items,
169
+ stackOnMobile && selector_grid_stacked
170
+ ),
171
+ children: typeof insights !== "undefined" ? insights.map((item) => /* @__PURE__ */ jsx(
172
+ InsightItem,
173
+ {
174
+ id: item.id,
175
+ image: item.image,
176
+ readingTime: item.readingTime,
177
+ title: item.title,
178
+ text: item.text,
179
+ url: item.url,
180
+ supertag: item.supertag
181
+ },
182
+ item.id
183
+ )) : children
184
+ }
185
+ ),
174
186
  !hideLink && /* @__PURE__ */ jsx("div", { className: clsx(selector_link_mobile), children: /* @__PURE__ */ jsx(
175
187
  Chevron,
176
188
  {
177
189
  targetUrl: url,
178
190
  variant: "primary",
179
191
  className: selector_more,
180
- children: `See More ${title2.replaceAll("-", " ")} Articles`
192
+ children: `See More Articles`
181
193
  }
182
194
  ) })
183
195
  ] }) });
184
196
  };
185
197
  const InsightItem = (props) => {
186
- const { id, image, readingTime, title: itemTitle, url } = props;
187
- return /* @__PURE__ */ jsxs("a", { id, href: url, className: clsx(selector_small_item), children: [
188
- /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
198
+ const {
199
+ id,
200
+ image,
201
+ readingTime,
202
+ title: itemTitle,
203
+ url,
204
+ text,
205
+ supertag
206
+ } = props;
207
+ return /* @__PURE__ */ jsxs("a", { id, href: url, className: clsx(onhover, selector_small_item), children: [
208
+ /* @__PURE__ */ jsx("div", { className: clsx(selector_img, "relative"), "aria-hidden": "true", children: /* @__PURE__ */ jsx(
189
209
  OptimizeImage,
190
210
  {
191
211
  src: `${image?.url}`,
192
212
  alt: image?.alt ?? "",
193
- className: clsx(featured_maingrid_img, selector_img),
194
- height: 207,
195
- width: 368,
213
+ className: img_fit,
214
+ height: 200,
215
+ width: 384,
196
216
  rootMargin: "210px"
197
217
  }
198
218
  ) }),
199
- /* @__PURE__ */ jsxs("div", { className: clsx(featured_maingrid_item, selector_grid_content), children: [
200
- /* @__PURE__ */ jsx("h2", { className: clsx(title({ variant: "primary" }), selector_title), children: itemTitle ?? "" }),
201
- /* @__PURE__ */ jsxs("div", { children: [
202
- /* @__PURE__ */ jsx(ClockIcon, { className: clsx(featured_center_vertical) }),
203
- " ",
204
- /* @__PURE__ */ jsx("span", { className: clsx(featured_center_vertical), children: (readingTime ?? "0") + " minutes" })
205
- ] })
219
+ /* @__PURE__ */ jsxs("div", { className: selector_grid_content, children: [
220
+ /* @__PURE__ */ jsx("h3", { className: clsx(title({ variant: "primary" }), selector_title), children: itemTitle ?? "" }),
221
+ /* @__PURE__ */ jsx(
222
+ "p",
223
+ {
224
+ className: featured_maingrid_text,
225
+ style: { marginBottom: 24, color: "#1F1F1F" },
226
+ children: text ?? ""
227
+ }
228
+ ),
229
+ /* @__PURE__ */ jsx("div", { style: { marginTop: "auto" }, children: /* @__PURE__ */ jsxs("div", { className: "flex middle", style: { gap: "4px" }, children: [
230
+ /* @__PURE__ */ jsx(ClockIcon, {}),
231
+ /* @__PURE__ */ jsx("span", { className: info_details, children: (readingTime ?? "0") + " minute read" }),
232
+ /* @__PURE__ */ jsx("div", { className: "flex middle", style: { paddingInline: "8px" }, children: /* @__PURE__ */ jsx(
233
+ "svg",
234
+ {
235
+ xmlns: "http://www.w3.org/2000/svg",
236
+ width: 1,
237
+ height: 20,
238
+ viewBox: "0 0 1 20",
239
+ fill: "none",
240
+ "aria-hidden": "true",
241
+ children: /* @__PURE__ */ jsx("path", { d: "M0.5 0V20", stroke: "#14263D" })
242
+ }
243
+ ) }),
244
+ /* @__PURE__ */ jsx("span", { className: info_details, style: { fontWeight: "600" }, children: (typeof supertag == "string" && supertag.replaceAll("-", " ")) ?? "" })
245
+ ] }) })
206
246
  ] })
207
247
  ] });
208
248
  };
@@ -1,14 +1,23 @@
1
+ export declare const onhover: string;
1
2
  export declare const featured_section: string;
2
3
  export declare const featured_title: string;
3
4
  export declare const featured_supertag: string;
4
5
  export declare const featured_grid: string;
6
+ export declare const featured_maingrid: string;
7
+ export declare const ratio: string;
8
+ export declare const featured_main_wrapper: string;
9
+ export declare const featured_maingrid_title: string;
10
+ export declare const featured_maingrid_text: string;
11
+ export declare const info_details: string;
12
+ export declare const tab_details: string;
5
13
  export declare const featured_subgrid: string;
14
+ export declare const featured_subimage: string;
15
+ export declare const divider_tab: string;
6
16
  export declare const featured_subgrid_item: string;
7
17
  export declare const featured_subgrid_title: string;
8
- export declare const featured_subgrid_divider: string;
9
18
  export declare const featured_center_vertical: string;
10
- export declare const featured_maingrid: string;
11
- export declare const featured_hero: string;
12
19
  export declare const featured_maingrid_img: string;
13
20
  export declare const featured_maingrid_item: string;
14
- export declare const featured_maingrid_title: string;
21
+ export declare const featured_subcontent: string;
22
+ export declare const featured_subwrap: string;
23
+ export declare const featured_subouter: string;