@mychoice/mychoice-sdk-modules 2.1.51 → 2.1.53

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.
@@ -0,0 +1,3 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const BlockMCEndorsements: SdkFC;
3
+ export default BlockMCEndorsements;
package/dist/esm/index.js CHANGED
@@ -1748,6 +1748,10 @@ const BlockEndorsements = () => {
1748
1748
  return (jsxs("div", { className: "endorsements-container", children: [jsx("h4", { className: isTheBig ? 'thebig-bold' : '', children: "Endorsements" }), jsxs("div", { className: "labels-block", children: [jsx(LabelFormBox, { className: !isCoverage ? 'inActive' : '', name: "loss", title: "Loss of Use", description: "This endorsement will offer you protection in the event you are without use of your vehicle from an accident or it is stolen. You will be provided with a rental or replacement car while your own vehicle is in the process of being repaired or replaced.", isActive: isCoverage }), jsx(LabelFormBox, { className: !isCoverage ? 'inActive' : '', name: "liabilityDamage", title: "Liability for Damage for Non-owned Cars", description: "This endorsement will provide coverage and insure you as a driver for vehicles you do not own, for up to $50,000 in physical damages, effectively known as the \u2018rental car endorsement\u2019. This would be applicable throughout all of Canada and the USA.", isActive: isCoverage }), jsx(LabelFormBox, { name: "forgiveness", title: "Accident Waiver or Forgiveness", description: "Available to only drivers who have clean record, this endorsement will effectively forgive you and protect your driving record if you were to have your first at-fault accident. This would be beneficial as it would mean that you monthly premiums would not increase if you were to have an at-fault accident.", isActive: true })] })] }));
1749
1749
  };
1750
1750
 
1751
+ const BlockMCEndorsements = () => {
1752
+ return (jsxs("div", { className: "endorsements-container", children: [jsx("h4", { style: { marginBottom: '20px' }, children: "Endorsements" }), jsx("div", { className: "labels-block", children: jsx(LabelFormBox, { className: "isActive", name: "familyProtection", title: "Family Protection (OPCF 44R)", description: "This endorsement provides coverage for you and eligible family members in the event of injury or death caused by an underinsured, uninsured, or unidentified driver. It applies only when you are not at fault for the accident. The coverage limit for this endorsement matches your selected Third Party Liability Coverage limit.", isActive: true }) })] }));
1753
+ };
1754
+
1751
1755
  const SectionQuoteRecalc$1 = () => {
1752
1756
  const { appConfigState: { appType }, } = useStoreAppConfig();
1753
1757
  const isTheBig = appType === AppTypes.TheBig;
@@ -1772,7 +1776,7 @@ const SectionQuoteRecalc$1 = () => {
1772
1776
  payload: { coverage: true, limit: value },
1773
1777
  });
1774
1778
  };
1775
- return (jsxs("div", { className: "form-container", children: [jsx(TabVehicle, { readOnly: true }), jsxs("div", { className: `form-section edit-recalc-container ${mychoiceCls}`, children: [jsx(SelectFormBox, { options: coverageOptions, name: "comprehensive-coverage", onChange: handleComprehensiveChange, defaultValue: getSelectedOption(coverageOptions, comprehensive.coverage ? comprehensive.deductible : 0), title: "Comprehensive coverage", description: "This deductible is the amount of money that you will pay out of your own pocket if your vehicle is damaged in events not covered by collision coverage. This includes events such as falling or flying objects, vandalism, and theft. Your insurance company covers the cost of repair minus the deductible chosen.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsx(SelectFormBox, { options: coverageOptions, name: "collision-coverage", onChange: handleCollisionChange, defaultValue: getSelectedOption(coverageOptions, collision.coverage ? collision.deductible : 0), title: "Collision coverage", description: "This deductible is the specific dollar amount you will pay out of your own pocket if your vehicle is damaged in an accident. Your insurance company covers the remaining amount.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsx(SelectFormBox, { options: liabilityOptions, name: "liability-limit", onChange: handleLiabilityChange, defaultValue: getSelectedOption(liabilityOptions, liability.coverage ? liability.limit : 1000000), title: "Third Party Liability", description: "This protects you from lawsuits resulting from accidents causing bodily injury or death to others or property damage.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsx(BlockSubmit$2, { className: `${isTheBig ? 'thebig-bold' : 'mychoice'} recalculate`, label: "Recalculate Quote", buttonSize: SizeTypes.Medium, isRecalc: true }), isTheBig && jsx(BlockEndorsements, {})] })] }));
1779
+ return (jsxs("div", { className: "form-container", children: [jsx(TabVehicle, { readOnly: true }), jsxs("div", { className: `form-section edit-recalc-container ${mychoiceCls}`, children: [jsx(SelectFormBox, { options: coverageOptions, name: "comprehensive-coverage", onChange: handleComprehensiveChange, defaultValue: getSelectedOption(coverageOptions, comprehensive.coverage ? comprehensive.deductible : 0), title: "Comprehensive coverage", description: "This deductible is the amount of money that you will pay out of your own pocket if your vehicle is damaged in events not covered by collision coverage. This includes events such as falling or flying objects, vandalism, and theft. Your insurance company covers the cost of repair minus the deductible chosen.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsx(SelectFormBox, { options: coverageOptions, name: "collision-coverage", onChange: handleCollisionChange, defaultValue: getSelectedOption(coverageOptions, collision.coverage ? collision.deductible : 0), title: "Collision coverage", description: "This deductible is the specific dollar amount you will pay out of your own pocket if your vehicle is damaged in an accident. Your insurance company covers the remaining amount.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsx(SelectFormBox, { options: liabilityOptions, name: "liability-limit", onChange: handleLiabilityChange, defaultValue: getSelectedOption(liabilityOptions, liability.coverage ? liability.limit : 1000000), title: "Third Party Liability", description: "This protects you from lawsuits resulting from accidents causing bodily injury or death to others or property damage.", placeholder: "Select from the list", autoSelectIfValueIsOutOfOptions: false }), jsx(BlockSubmit$2, { className: `${isTheBig ? 'thebig-bold' : 'mychoice'} recalculate`, label: "Recalculate Quote", buttonSize: SizeTypes.Medium, isRecalc: true }), isTheBig ? jsx(BlockEndorsements, {}) : jsx(BlockMCEndorsements, {})] })] }));
1776
1780
  };
1777
1781
 
1778
1782
  const lockEmoji$1 = '\u{1F512}';
@@ -1937,7 +1941,6 @@ const SectionAddress = () => {
1937
1941
  ]
1938
1942
  .filter((field) => field)
1939
1943
  .join(' ');
1940
- console.log('AD: ', newPostalCode);
1941
1944
  if (!newPostalCode.short_name) {
1942
1945
  dispatchPostalState({
1943
1946
  type: StoreFormHomePostalActionTypes.FormHomePostalSet,