@mychoice/mychoice-sdk-modules 2.1.59 → 2.1.60
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 +12 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/shared/sections/quotes/NoQuotesMessage/NoQuotesMessage.d.ts +1 -1
- package/dist/esm/index.js +12 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/shared/sections/quotes/NoQuotesMessage/NoQuotesMessage.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -172,10 +172,12 @@ var logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA80AAAEGCAYAAABfBnerAA
|
|
|
172
172
|
const TITLE = {
|
|
173
173
|
car: 'Hello Canadian Drivers, Welcome to MyChoice!',
|
|
174
174
|
home: 'Hello Canadian Residents, Welcome to MyChoice!',
|
|
175
|
+
life: 'Hello Canadian Residents, Welcome to MyChoice!',
|
|
175
176
|
};
|
|
176
177
|
const TEXT = {
|
|
177
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!',
|
|
178
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 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!',
|
|
179
181
|
};
|
|
180
182
|
const NoQuotesMessage = ({ type }) => {
|
|
181
183
|
return (jsxs("div", { className: "offer-section mychoice", children: [jsx("div", { style: { width: '100%' }, children: jsx("img", { src: logo, alt: "My Choice", style: { width: '120px' } }) }), jsx("p", { children: jsx("h3", { style: { whiteSpace: 'normal' }, children: TITLE[type] }) }), jsx("p", { style: { lineHeight: '1.25rem' }, children: TEXT[type] })] }));
|
|
@@ -3238,25 +3240,22 @@ const PageLifeQuote = () => {
|
|
|
3238
3240
|
behavior: 'smooth',
|
|
3239
3241
|
});
|
|
3240
3242
|
});
|
|
3241
|
-
return (jsx("div", { className: "quote-page-content", children: !appLoaderState.isOpen && (jsxs(Fragment, { children: [jsxs("div", { className: "form-section-container", children: [appDeviceType === DeviceTypes.Mobile && (jsx(Fragment, { children: !!items?.length
|
|
3243
|
+
return (jsx("div", { className: "quote-page-content", children: !appLoaderState.isOpen && (jsxs(Fragment, { children: [jsxs("div", { className: "form-section-container", children: [appDeviceType === DeviceTypes.Mobile && (jsx(Fragment, { children: !!items?.length ? (jsx(Fragment, { children: !quoteState.showCallMessage ? (jsx("div", { className: "offer-container", children: jsx(OfferSection, { isBestOffer: true, offerCompany: items[0]?.company, brokerCompany: items[0]?.brokerProfile, offerPrice: {
|
|
3242
3244
|
monthly: items[0]?.priceMonthly,
|
|
3243
3245
|
yearly: items[0]?.priceYearly,
|
|
3244
3246
|
}, operationHours: {
|
|
3245
3247
|
saturdayHours: items[0]?.brokerProfile.hoursSaturday,
|
|
3246
3248
|
sundayHours: items[0]?.brokerProfile.hoursSunday,
|
|
3247
3249
|
weekdayHours: items[0]?.brokerProfile.hoursWorkdays,
|
|
3248
|
-
}, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '' }) })) : (jsx(SplashScreen, {})) })) })), jsx(SectionQuoteEdit, {})] }), appDeviceType !== DeviceTypes.Mobile &&
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
sundayHours: brokerProfile.hoursSunday,
|
|
3258
|
-
weekdayHours: brokerProfile.hoursWorkdays,
|
|
3259
|
-
}, phoneNumber: formatPhoneObject(brokerProfile.phone), redirectUrl: brokerProfile.redirectUrl || '' })) }, index))) }))] })) }));
|
|
3250
|
+
}, phoneNumber: formatPhoneObject(items[0]?.brokerProfile.phone), redirectUrl: items[0]?.brokerProfile.redirectUrl || '' }) })) : (jsx(SplashScreen, {})) })) : (jsx(NoQuotesMessage, { type: "life" })) })), jsx(SectionQuoteEdit, {})] }), appDeviceType !== DeviceTypes.Mobile && quoteState.showCallMessage && jsx(SplashScreen, {}), !quoteState.showCallMessage && (jsx("div", { className: "offer-container", children: !!items?.length ? (items.map(({ company, brokerProfile, priceMonthly, priceYearly }, index) => (jsx("div", { children: (appDeviceType !== DeviceTypes.Mobile ||
|
|
3251
|
+
(appDeviceType === DeviceTypes.Mobile && index !== 0)) && (jsx(OfferSection, { isBestOffer: index === 0, offerCompany: company, brokerCompany: brokerProfile, offerPrice: {
|
|
3252
|
+
monthly: priceMonthly,
|
|
3253
|
+
yearly: priceYearly,
|
|
3254
|
+
}, operationHours: {
|
|
3255
|
+
saturdayHours: brokerProfile.hoursSaturday,
|
|
3256
|
+
sundayHours: brokerProfile.hoursSunday,
|
|
3257
|
+
weekdayHours: brokerProfile.hoursWorkdays,
|
|
3258
|
+
}, phoneNumber: formatPhoneObject(brokerProfile.phone), redirectUrl: brokerProfile.redirectUrl || '' })) }, index)))) : (jsx(NoQuotesMessage, { type: "life" })) }))] })) }));
|
|
3260
3259
|
};
|
|
3261
3260
|
|
|
3262
3261
|
const getFormattedAddress = (unitNumber, streetAddress, city, provinceCode, postalCode, country) => {
|