@mychoice/mychoice-sdk-modules 2.1.65 → 2.1.66
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/cjs/index.js +8 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -20
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -177,7 +177,7 @@ const TITLE = {
|
|
|
177
177
|
const TEXT = {
|
|
178
178
|
car: 'Our apologies but unfortunately, we are unable to provide you with an auto insurance rate in your home province at this current time however we are actively working on adding partners to our platform who will be able to provide you with a rate in the near future! Please check back with us at a later date, in the meantime, drive safely!',
|
|
179
179
|
home: 'Our apologies but unfortunately, we are unable to provide you with an property insurance rate in your home province at this current time however we are actively working on adding partners to our platform who will be able to provide you with a rate in the near future! Please check back with us at a later date, in the meantime, stay safe!',
|
|
180
|
-
life: 'Our apologies but
|
|
180
|
+
life: 'Our apologies, but at this time, none of our insurance partners offer any life insurance products that match the combination of your age, product type, and desired coverage amount you selected. As you shop around, it’s important to note that once you reach a certain age, life insurance options become more limited, as many providers have stricter eligibility criteria for older applicants. We encourage you to consider selecting a different product or coverage amount and try again.',
|
|
181
181
|
};
|
|
182
182
|
const NoQuotesMessage = ({ type }) => {
|
|
183
183
|
const { appConfigState: { appType }, } = useStoreAppConfig();
|
|
@@ -1878,14 +1878,9 @@ const PageCarQuote = () => {
|
|
|
1878
1878
|
const { appConfigState: { localIndex, insuranceType }, } = useStoreAppConfig();
|
|
1879
1879
|
const { items, quoteConfirm } = quoteState;
|
|
1880
1880
|
const isTheBig = appType === AppTypes.TheBig;
|
|
1881
|
-
const hasConfirmStep = !!(items?.length &&
|
|
1882
|
-
!isTheBig &&
|
|
1883
|
-
items[0]?.confirmQuote &&
|
|
1884
|
-
quoteConfirm);
|
|
1881
|
+
const hasConfirmStep = !!(items?.length && !isTheBig && items[0]?.confirmQuote && quoteConfirm);
|
|
1885
1882
|
const quoteItems = hasConfirmStep ? items?.slice(0, 2) : items;
|
|
1886
|
-
const showContentWhileLoading = hasConfirmStep
|
|
1887
|
-
? true
|
|
1888
|
-
: !appLoaderState.isOpen;
|
|
1883
|
+
const showContentWhileLoading = hasConfirmStep ? true : !appLoaderState.isOpen;
|
|
1889
1884
|
const navigate = useNavigate();
|
|
1890
1885
|
useEffectOnce(() => {
|
|
1891
1886
|
if (!vehicleFormIsValid) {
|
|
@@ -1894,10 +1889,7 @@ const PageCarQuote = () => {
|
|
|
1894
1889
|
if (vehicleFormIsValid && !driverFormIsValid) {
|
|
1895
1890
|
driverFormValidate();
|
|
1896
1891
|
}
|
|
1897
|
-
if (vehicleFormIsValid &&
|
|
1898
|
-
driverFormIsValid &&
|
|
1899
|
-
!carDiscountFormIsValid &&
|
|
1900
|
-
!quoteState.isRequested) {
|
|
1892
|
+
if (vehicleFormIsValid && driverFormIsValid && !carDiscountFormIsValid && !quoteState.isRequested) {
|
|
1901
1893
|
carDiscountFormValidate();
|
|
1902
1894
|
}
|
|
1903
1895
|
if (!quoteState.isRequested) {
|
|
@@ -1918,10 +1910,8 @@ const PageCarQuote = () => {
|
|
|
1918
1910
|
saturdayHours: items[0]?.brokerProfile.hoursSaturday,
|
|
1919
1911
|
sundayHours: items[0]?.brokerProfile.hoursSunday,
|
|
1920
1912
|
weekdayHours: items[0]?.brokerProfile.hoursWorkdays,
|
|
1921
|
-
}, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '' }) })) : (jsx(SplashScreen$2, {})) })) : (jsx(NoQuotesMessage, { type: "car" })) })), (!hasConfirmStep || appDeviceType !== DeviceTypes.Mobile) && (jsxs(Fragment, { children: [jsx(SectionQuoteEdit$2, {}), jsx(SectionQuoteRecalc$1, {})] }))] }), appDeviceType !== DeviceTypes.Mobile &&
|
|
1922
|
-
|
|
1923
|
-
(appDeviceType === DeviceTypes.Mobile &&
|
|
1924
|
-
index !== 0)) && (jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
|
|
1913
|
+
}, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '' }) })) : (jsx(SplashScreen$2, {})) })) : (jsx(NoQuotesMessage, { type: "car" })) })), (!hasConfirmStep || appDeviceType !== DeviceTypes.Mobile) && (jsxs(Fragment, { children: [jsx(SectionQuoteEdit$2, {}), jsx(SectionQuoteRecalc$1, {})] }))] }), appDeviceType !== DeviceTypes.Mobile && quoteState.showCallMessage && jsx(SplashScreen$2, {}), !quoteState.showCallMessage && (jsx(Fragment, { children: jsxs("div", { style: { position: 'relative', width: '100%' }, children: [hasConfirmStep && (jsxs(Fragment, { children: [jsx("div", { className: "offer-container", children: jsx(SectionConfirm, {}) }), appDeviceType === DeviceTypes.Mobile && (jsxs(Fragment, { children: [jsx(SectionQuoteEdit$2, {}), jsx(SectionQuoteRecalc$1, {})] }))] })), jsx("div", { className: `offer-container ${hasConfirmStep ? 'blur' : ''}`, children: !!items?.length ? (quoteItems.map(({ company, brokerProfile, priceMonthly, priceYearly }, index) => (jsx("div", { children: (appDeviceType !== DeviceTypes.Mobile ||
|
|
1914
|
+
(appDeviceType === DeviceTypes.Mobile && index !== 0)) && (jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
|
|
1925
1915
|
monthly: priceMonthly,
|
|
1926
1916
|
yearly: priceYearly,
|
|
1927
1917
|
}, operationHours: {
|
|
@@ -2968,10 +2958,8 @@ const PageHomeQuote = () => {
|
|
|
2968
2958
|
saturdayHours: items[0]?.brokerProfile.hoursSaturday,
|
|
2969
2959
|
sundayHours: items[0]?.brokerProfile.hoursSunday,
|
|
2970
2960
|
weekdayHours: items[0]?.brokerProfile.hoursWorkdays,
|
|
2971
|
-
}, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '', fulfillmentUrl: items[0]?.fulfillmentUrl || '' }) })) : (jsx(SplashScreen$1, {})) })) : (jsx(NoQuotesMessage, { type: "home" })) })), jsx(SectionQuoteEdit$1, {}), jsx(SectionQuoteRecalc, {})] }), appDeviceType !== DeviceTypes.Mobile &&
|
|
2972
|
-
|
|
2973
|
-
(appDeviceType === DeviceTypes.Mobile &&
|
|
2974
|
-
index !== 0)) && (jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
|
|
2961
|
+
}, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '', fulfillmentUrl: items[0]?.fulfillmentUrl || '' }) })) : (jsx(SplashScreen$1, {})) })) : (jsx(NoQuotesMessage, { type: "home" })) })), jsx(SectionQuoteEdit$1, {}), jsx(SectionQuoteRecalc, {})] }), appDeviceType !== DeviceTypes.Mobile && quoteState.showCallMessage && jsx(SplashScreen$1, {}), !quoteState.showCallMessage && (jsx("div", { className: "offer-container", children: !!items?.length ? (items.map(({ company, brokerProfile, priceMonthly, priceYearly, fulfillmentUrl }, index) => (jsx("div", { children: (appDeviceType !== DeviceTypes.Mobile ||
|
|
2962
|
+
(appDeviceType === DeviceTypes.Mobile && index !== 0)) && (jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
|
|
2975
2963
|
monthly: priceMonthly,
|
|
2976
2964
|
yearly: priceYearly,
|
|
2977
2965
|
}, operationHours: {
|