@axos-web-dev/shared-components 1.0.72 → 1.0.73
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.
|
@@ -113,13 +113,11 @@ const BuyDownCalculator = ({
|
|
|
113
113
|
const {
|
|
114
114
|
handleSubmit,
|
|
115
115
|
register,
|
|
116
|
-
watch,
|
|
117
116
|
setValue,
|
|
118
117
|
formState: { errors, isValid }
|
|
119
118
|
} = methods;
|
|
120
119
|
const calculator_variant = getVariant(variant);
|
|
121
|
-
const
|
|
122
|
-
const enableDependentInputs = enableFullTimeCharter && fullTimeCharterChecked;
|
|
120
|
+
const enableDependentInputs = enableFullTimeCharter;
|
|
123
121
|
const formatToNumber = (value) => {
|
|
124
122
|
const cleanValue = value.replace(/[%$, ]/gi, "");
|
|
125
123
|
return parseFloat(cleanValue);
|
|
@@ -211,10 +209,10 @@ const BuyDownCalculator = ({
|
|
|
211
209
|
};
|
|
212
210
|
const handleProgramChange = (event) => {
|
|
213
211
|
const value = event.target.value;
|
|
214
|
-
if (value !== "20 Year Fixed
|
|
212
|
+
if (value !== "20 Year Fixed Personal Use" && value !== "20 Year Fixed Limited Charter") {
|
|
215
213
|
setEnableFullTimeCharter(true);
|
|
216
214
|
setDisableMooringOutside(false);
|
|
217
|
-
if (value === "20 Year Fixed
|
|
215
|
+
if (value === "20 Year Fixed Full Time Charter") {
|
|
218
216
|
setValue("mooringOutsideContinentalUS", false);
|
|
219
217
|
setDisableMooringOutside(true);
|
|
220
218
|
}
|
|
@@ -605,28 +603,7 @@ const BuyDownCalculator = ({
|
|
|
605
603
|
}
|
|
606
604
|
) })
|
|
607
605
|
] }),
|
|
608
|
-
/* @__PURE__ */ jsx("div", { className: `${row_form}`, children: /* @__PURE__ */
|
|
609
|
-
/* @__PURE__ */ jsx("label", { children: "Loan Level Rate Adjustments" }),
|
|
610
|
-
/* @__PURE__ */ jsx(
|
|
611
|
-
Checkbox,
|
|
612
|
-
{
|
|
613
|
-
id: "fullTimeCharter",
|
|
614
|
-
...register("fullTimeCharter", {
|
|
615
|
-
onChange: (event) => {
|
|
616
|
-
if (!event.target.checked) {
|
|
617
|
-
setValue("mooringOutsideContinentalUS", false);
|
|
618
|
-
setValue("operatingAccount", false);
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}),
|
|
622
|
-
sizes: "medium",
|
|
623
|
-
variant: calculator_variant,
|
|
624
|
-
value: 0,
|
|
625
|
-
disabled: !enableFullTimeCharter,
|
|
626
|
-
children: "Full Time Charter"
|
|
627
|
-
}
|
|
628
|
-
)
|
|
629
|
-
] }) }),
|
|
606
|
+
/* @__PURE__ */ jsx("div", { className: `${row_form}`, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("label", { children: "Loan Level Rate Adjustments" }) }) }),
|
|
630
607
|
/* @__PURE__ */ jsxs("div", { className: `${row_form}`, children: [
|
|
631
608
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", { className: row_form, children: /* @__PURE__ */ jsxs(
|
|
632
609
|
RadioButtonSet,
|
|
@@ -656,7 +633,7 @@ const BuyDownCalculator = ({
|
|
|
656
633
|
id: "operatingAccount",
|
|
657
634
|
...register("operatingAccount"),
|
|
658
635
|
value: -0.25,
|
|
659
|
-
radioText: "
|
|
636
|
+
radioText: "Open and fund an LLC Operating Account with Axos - 0.25",
|
|
660
637
|
groupName: "dependentInputs"
|
|
661
638
|
}
|
|
662
639
|
)
|
|
@@ -863,7 +840,8 @@ const BuyDownCalculator = ({
|
|
|
863
840
|
label: "Dealer Contribution Amount",
|
|
864
841
|
disabled: true,
|
|
865
842
|
variant: calculator_variant,
|
|
866
|
-
value: dealerContributionAmount
|
|
843
|
+
value: dealerContributionAmount,
|
|
844
|
+
helperText: "Dealer reserve offset not included in this amount."
|
|
867
845
|
}
|
|
868
846
|
) }) })
|
|
869
847
|
]
|
package/dist/Forms/FormEnums.js
CHANGED
|
@@ -159,12 +159,16 @@ const Program = [
|
|
|
159
159
|
{ value: "3/6 SOFR ARM", text: "3/6 SOFR ARM" },
|
|
160
160
|
{ value: "5/6 SOFR ARM", text: "5/6 SOFR ARM" },
|
|
161
161
|
{
|
|
162
|
-
value: "20 Year Fixed
|
|
163
|
-
text: "20 Year Fixed
|
|
162
|
+
value: "20 Year Fixed Personal Use",
|
|
163
|
+
text: "20 Year Fixed Personal Use"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
value: "20 Year Fixed
|
|
167
|
-
text: "20 Year Fixed
|
|
166
|
+
value: "20 Year Fixed Limited Charter",
|
|
167
|
+
text: "20 Year Fixed Limited Charter"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
value: "20 Year Fixed Full Time Charter",
|
|
171
|
+
text: "20 Year Fixed Full Time Charter"
|
|
168
172
|
}
|
|
169
173
|
];
|
|
170
174
|
const Fico = [
|