@mychoice/mychoice-sdk-modules 2.1.64 → 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 CHANGED
@@ -187,7 +187,7 @@ const TITLE = {
187
187
  const TEXT = {
188
188
  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!',
189
189
  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!',
190
- life: 'Our apologies but unfortunately, we are unable to provide you with an life insurance rate in your home province at this current time however we are actively working on adding more 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!',
190
+ 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.',
191
191
  };
192
192
  const NoQuotesMessage = ({ type }) => {
193
193
  const { appConfigState: { appType }, } = mychoiceSdkStore.useStoreAppConfig();
@@ -1888,14 +1888,9 @@ const PageCarQuote = () => {
1888
1888
  const { appConfigState: { localIndex, insuranceType }, } = mychoiceSdkStore.useStoreAppConfig();
1889
1889
  const { items, quoteConfirm } = quoteState;
1890
1890
  const isTheBig = appType === mychoiceSdkComponents.AppTypes.TheBig;
1891
- const hasConfirmStep = !!(items?.length &&
1892
- !isTheBig &&
1893
- items[0]?.confirmQuote &&
1894
- quoteConfirm);
1891
+ const hasConfirmStep = !!(items?.length && !isTheBig && items[0]?.confirmQuote && quoteConfirm);
1895
1892
  const quoteItems = hasConfirmStep ? items?.slice(0, 2) : items;
1896
- const showContentWhileLoading = hasConfirmStep
1897
- ? true
1898
- : !appLoaderState.isOpen;
1893
+ const showContentWhileLoading = hasConfirmStep ? true : !appLoaderState.isOpen;
1899
1894
  const navigate = reactRouterDom.useNavigate();
1900
1895
  mychoiceSdkComponents.useEffectOnce(() => {
1901
1896
  if (!vehicleFormIsValid) {
@@ -1904,10 +1899,7 @@ const PageCarQuote = () => {
1904
1899
  if (vehicleFormIsValid && !driverFormIsValid) {
1905
1900
  driverFormValidate();
1906
1901
  }
1907
- if (vehicleFormIsValid &&
1908
- driverFormIsValid &&
1909
- !carDiscountFormIsValid &&
1910
- !quoteState.isRequested) {
1902
+ if (vehicleFormIsValid && driverFormIsValid && !carDiscountFormIsValid && !quoteState.isRequested) {
1911
1903
  carDiscountFormValidate();
1912
1904
  }
1913
1905
  if (!quoteState.isRequested) {
@@ -1928,10 +1920,8 @@ const PageCarQuote = () => {
1928
1920
  saturdayHours: items[0]?.brokerProfile.hoursSaturday,
1929
1921
  sundayHours: items[0]?.brokerProfile.hoursSunday,
1930
1922
  weekdayHours: items[0]?.brokerProfile.hoursWorkdays,
1931
- }, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '' }) })) : (jsxRuntime.jsx(SplashScreen$2, {})) })) : (jsxRuntime.jsx(NoQuotesMessage, { type: "car" })) })), (!hasConfirmStep || appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SectionQuoteEdit$2, {}), jsxRuntime.jsx(SectionQuoteRecalc$1, {})] }))] }), appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile &&
1932
- quoteState.showCallMessage && jsxRuntime.jsx(SplashScreen$2, {}), !quoteState.showCallMessage && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { style: { position: 'relative', width: '100%' }, children: [hasConfirmStep && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "offer-container", children: jsxRuntime.jsx(SectionConfirm, {}) }), appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SectionQuoteEdit$2, {}), jsxRuntime.jsx(SectionQuoteRecalc$1, {})] }))] })), jsxRuntime.jsx("div", { className: `offer-container ${hasConfirmStep ? 'blur' : ''}`, children: !!items?.length ? (quoteItems.map(({ company, brokerProfile, priceMonthly, priceYearly, }, index) => (jsxRuntime.jsx("div", { children: (appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile ||
1933
- (appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile &&
1934
- index !== 0)) && (jsxRuntime.jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
1923
+ }, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '' }) })) : (jsxRuntime.jsx(SplashScreen$2, {})) })) : (jsxRuntime.jsx(NoQuotesMessage, { type: "car" })) })), (!hasConfirmStep || appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SectionQuoteEdit$2, {}), jsxRuntime.jsx(SectionQuoteRecalc$1, {})] }))] }), appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile && quoteState.showCallMessage && jsxRuntime.jsx(SplashScreen$2, {}), !quoteState.showCallMessage && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { style: { position: 'relative', width: '100%' }, children: [hasConfirmStep && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "offer-container", children: jsxRuntime.jsx(SectionConfirm, {}) }), appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SectionQuoteEdit$2, {}), jsxRuntime.jsx(SectionQuoteRecalc$1, {})] }))] })), jsxRuntime.jsx("div", { className: `offer-container ${hasConfirmStep ? 'blur' : ''}`, children: !!items?.length ? (quoteItems.map(({ company, brokerProfile, priceMonthly, priceYearly }, index) => (jsxRuntime.jsx("div", { children: (appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile ||
1924
+ (appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile && index !== 0)) && (jsxRuntime.jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
1935
1925
  monthly: priceMonthly,
1936
1926
  yearly: priceYearly,
1937
1927
  }, operationHours: {
@@ -2978,10 +2968,8 @@ const PageHomeQuote = () => {
2978
2968
  saturdayHours: items[0]?.brokerProfile.hoursSaturday,
2979
2969
  sundayHours: items[0]?.brokerProfile.hoursSunday,
2980
2970
  weekdayHours: items[0]?.brokerProfile.hoursWorkdays,
2981
- }, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '', fulfillmentUrl: items[0]?.fulfillmentUrl || '' }) })) : (jsxRuntime.jsx(SplashScreen$1, {})) })) : (jsxRuntime.jsx(NoQuotesMessage, { type: "home" })) })), jsxRuntime.jsx(SectionQuoteEdit$1, {}), jsxRuntime.jsx(SectionQuoteRecalc, {})] }), appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile &&
2982
- quoteState.showCallMessage && jsxRuntime.jsx(SplashScreen$1, {}), !quoteState.showCallMessage && (jsxRuntime.jsx("div", { className: "offer-container", children: !!items?.length ? (items.map(({ company, brokerProfile, priceMonthly, priceYearly, fulfillmentUrl, }, index) => (jsxRuntime.jsx("div", { children: (appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile ||
2983
- (appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile &&
2984
- index !== 0)) && (jsxRuntime.jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
2971
+ }, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '', fulfillmentUrl: items[0]?.fulfillmentUrl || '' }) })) : (jsxRuntime.jsx(SplashScreen$1, {})) })) : (jsxRuntime.jsx(NoQuotesMessage, { type: "home" })) })), jsxRuntime.jsx(SectionQuoteEdit$1, {}), jsxRuntime.jsx(SectionQuoteRecalc, {})] }), appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile && quoteState.showCallMessage && jsxRuntime.jsx(SplashScreen$1, {}), !quoteState.showCallMessage && (jsxRuntime.jsx("div", { className: "offer-container", children: !!items?.length ? (items.map(({ company, brokerProfile, priceMonthly, priceYearly, fulfillmentUrl }, index) => (jsxRuntime.jsx("div", { children: (appDeviceType !== mychoiceSdkComponents.DeviceTypes.Mobile ||
2972
+ (appDeviceType === mychoiceSdkComponents.DeviceTypes.Mobile && index !== 0)) && (jsxRuntime.jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
2985
2973
  monthly: priceMonthly,
2986
2974
  yearly: priceYearly,
2987
2975
  }, operationHours: {