1"use strict";(self.webpackChunk_om_site_builder=self.webpackChunk_om_site_builder||[]).push([[55808],{21557:function(e,t,a){a.d(t,{R:function(){return i}});var l=a(83878),n=a(10321);const r=(0,l.Mz)(n.X,e=>e.sessionCamVariables),i=(0,l.Mz)(r,e=>e?e.requestId:"")},80953:function(e,t,a){a.d(t,{U:function(){return l}});const l=800},20010:function(e,t,a){var l=a(14041),n=a(10061);t.A=e=>{let{fourColumnLayout:t,slot:a}=e;if(!t[0])return"";const{has_boundary:r,use_heading_as_h1:i,section_heading:o,section_caption:s,img_url_first:c,icon_name_first:m,sub_title_first:d,paragraph_first:u,side_drawer_content_first:p,button_text_first:h,img_url_second:E,icon_name_second:b,sub_title_second:v,paragraph_second:y,side_drawer_content_second:f,button_text_second:g,img_url_third:_,icon_name_third:N,sub_title_third:w,paragraph_third:M,side_drawer_content_third:C,button_text_third:k,img_url_fourth:S,icon_name_fourth:A,sub_title_fourth:I,paragraph_fourth:O,side_drawer_content_fourth:T,button_text_fourth:L,button_text:x,open_tab:P,button_url:D,button_action_type:H,call_me_back:F,redirect_url_first:B,redirect_url_first_android:R,redirect_url_first_apple:U,redirect_url_second:z,redirect_url_second_android:V,redirect_url_second_apple:j,redirect_url_third:Y,redirect_url_fourth:Q,redirect_url_third_android:q,redirect_url_third_a
1pple:G,redirect_url_fourth_android:Z,redirect_url_fourth_apple:J}=t[0];return l.createElement(n.Fw_,{slot:a,hasBoundary:r,imageUrlFirst:c&&c.url?c.url:"",redirectUrlFirst:B,redirectUrlFirstAndroid:R,redirectUrlFirstApple:U,iconNameFirst:m,subTitleFirst:d,paragraphFirst:u,imageUrlSecond:E&&E.url?E.url:"",redirectUrlSecond:z,redirectUrlSecondAndroid:V,redirectUrlSecondApple:j,iconNameSecond:b,subTitleSecond:v,paragraphSecond:y,imageUrlThird:_&&_.url?_.url:"",redirectUrlThird:Y,redirectUrlThirdAndroid:q,redirectUrlThirdApple:G,iconNameThird:N,subTitleThird:w,paragraphThird:M,imageUrlFourth:S&&S.url?S.url:"",redirectUrlFourth:Q,redirectUrlFourthAndroid:Z,redirectUrlFourthApple:J,iconNameFourth:A,subTitleFourth:I,paragraphFourth:O,buttonTextFirst:h,buttonTextSecond:g,buttonTextThird:k,buttonTextFourth:L,buttonTexts:x,buttonUrl:D&&D.href,buttonActionType:H,buttonCallMeBackObject:F,openTab:P},i?l.createElement("h1",{slot:"section-heading",dangerouslySetInnerHTML:{__html:o}}):l.createElement("span",{slot:"section-heading",dangerouslySetInnerHTML:{__html:o}}),s?l.createElement("span",{slot:"section-caption",dangerouslySetInnerHTML:{__html:s}}):"",p?l.createElement("span",{slot:"side-drawer-content-first",dangerouslySetInnerHTML:{__html:p}}):"",f?l.createElement("span",{slot:"side-drawer-content-second",dangerouslySetInnerHTML:{__html:f}}):"",C?l.createElement("span",{slot:"side-drawer-content-third",dangerouslySetInnerHTML:{__html:C}}):"",T?l.createElement("span",{slot:"side-drawer-content-fourth",dangerouslySetInnerHTML:{__html:T}}):"")}},56720:function(e,t,a){var l=a(14041),n=a(10061);t.A=e=>{let{threeColumnIllustrationContent:t,buttonType:a,slot:r}=e;if(!t)return"";const{uid:i,has_boundary:o,img_url_left:s,redirect_url_left:c,redirect_url_left_android:m,redirect_url_left_apple:d,icon_name_left:u,sub_title_left:p,paragraph_left:h,button_text_left:E,button_action_type_left:b,button_url_left:v,img_url_middle:y,redirect_url_middle:f,redirect_url_middle_android:g,redirect_url_middle_apple:_,icon_name_middle:N,sub_title_middle:w,paragraph_middle:M,button_text_middle:C,button_action_type_middle:k,button_url_middle:S,img_url_right:A,redirect_url_right:I,redirect_url_right_android:O,redirect_url_right_apple:T,icon_name_right:L,sub_title_right:x,paragraph_right:P,button_text_right:D,button_action_type_right:H,button_url_right:F,button_text:B,button_url:R,button_action_type:U,button_call_me_back_product:z,button_call_me_back_email:V,open_tab:j,section_heading:Y,use_heading_as_h1:Q,section_caption:q,side_drawer_content_left:G,side_drawer_content_middle:Z,side_drawer_content_right:J}=t;return l.createElement("section",{slot:r},l.createElement(n.LgT,{id:i,hasBoundary:o,buttonType:a,imageUrlLeft:s?s.url:"",iconNameLeft:u,redirectUrlLeft:c,redirectUrlLeftAndroid:m,redirectUrlLeftApple:d,subTitleLeft:p,paragraphLeft:h,buttonTextLeft:E,buttonActionTypeLeft:b,buttonUrlLeft:v,imageUrlMiddle:y?y.url:"",iconNameMiddle:N,redirectUrlMiddle:f,redirectUrlMiddleAndroid:g,redirectUrlMiddleApple:_,subTitleMiddle:w,paragraphMiddle:M,buttonTextMiddle:C,buttonActionTypeMiddle:k,buttonUrlMiddle:S,imageUrlRight:A?A.url:"",iconNameRight:L,redirectUrlRight:I,redirectUrlRightAndroid:O,redirectUrlRightApple:T,subTitleRight:x,paragraphRight:P,buttonTextRight:D,buttonActionTypeRight:H,buttonUrlRight:F,buttonTexts:B,buttonUrl:R?R.href:"",buttonActionType:U,buttonCallMeBackProduct:z,buttonCallMeBackEmail:V,openTab:j},Y?Q?l.createElement("h1",{slot:"section-heading",dangerouslySetInnerHTML:{__html:Y}}):l.createElement("span",{slot:"section-heading",dangerouslySetInnerHTML:{__html:Y}}):"",q?l.createElement("span",{slot:"section-caption",dangerouslySetInnerHTML:{__html:q}}):"",G?l.createElement("span",{slot:"side-drawer-content-left",dangerouslySetInnerHTML:{__html:G}}
1):"",Z?l.createElement("span",{slot:"side-drawer-content-middle",dangerouslySetInnerHTML:{__html:Z}}):"",J?l.createElement("span",{slot:"side-drawer-content-right",dangerouslySetInnerHTML:{__html:J}}):""))}},9389:function(e,t,a){var l=a(14041),n=a(10061);t.A=e=>{let{id:t,className:a,iconClass:r,borderLeft:i,small:o,iconName:s,tooltipContent:c}=e;return l.createElement(n.M9x,{id:t,className:a,borderLeft:i,small:o},l.createElement("div",{className:r,slot:"icon"},l.createElement(n.GQU,{iconName:s})),l.createElement("p",{slot:"tooltip-content",dangerouslySetInnerHTML:{__html:c}}))}},19955:function(e,t,a){a.d(t,{u:function(){return n}});var l=a(14041);function n(e){(0,l.useEffect)(()=>{window.sessioncamConfiguration||(window.sessioncamConfiguration={}),window.sessioncamConfiguration.customDataObjects||(window.sessioncamConfiguration.customDataObjects=[]);const t={key:"requestId",value:e};window.sessioncamConfiguration.customDataObjects.push(t)},[e])}},37391:function(e,t,a){var l=a(63473),n=a(14041),r=a(28373),i=a(10061),o=a(75691);t.A=e=>{let{theme:t,hasBackground:a,aside:s,children:c}=e;return n.createElement(l.A,{themeContent:t},n.createElement(i.k9D,{hasBackground:a},n.createElement("svg",{slot:"bg-svg-1",width:"360",height:"1200",viewBox:"0 0 400 1200",fill:"#F1F2F2",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 990.938L208.572 792.747L417.11 594.746H208.572L417.11 396.575L625.464 198.383L834.236 0H1042.97L834.236 198.383L625.464 396.575H834.236H1042.97L1248 201.359V399.53L1042.97 594.746L834.236 792.747V594.746H625.464L417.11 792.747L208.572 990.938L0 1189.13V990.938ZM418.667 962.027L626.642 763.924L835.018 962.027L1043.34 763.924L1248 569.179V767.281L1043.34 962.027L835.018 1160.13L626.642 962.027L418.667 1160.13H210.525L418.667 962.027Z",fill:"#F1F2F2"})),n.createElement("svg",{slot:"bg-svg-2",width:"400",height:"1200",viewBox:"0 0 400 1200",fill:"#F1F2F2",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 990.938L208.572 792.747L417.11 594.746H208.572L417.11 396.575L625.464 198.383L834.236 0H1042.97L834.236 198.383L625.464 396.575H834.236H1042.97L1248 201.359V399.53L1042.97 594.746L834.236 792.747V594.746H625.464L417.11 792.747L208.572 990.938L0 1189.13V990.938ZM418.667 962.027L626.642 763.924L835.018 962.027L1043.34 763.924L1248 569.179V767.281L1043.34 962.027L835.018 1160.13L626.642 962.027L418.667 1160.13H210.525L418.667 962.027Z",fill:"#F1F2F2"})),n.createElement("div",{slot:"content"},c,n.createElement("aside",null,s,n.createElement(r.A,null),n.createElement(o.A,null)))))}},51522:function(e,t,a){a.r(t),a.d(t,{default:function(){return Ne}});var l=a(14041),n=a(11147),r=a(83878),i=a(49782),o=a(51503),s=a(19955),c=a(66345),m=a(67551),d=a(10321);const u=(0,r.Mz)(d.X,e=>e.scrolling),p=((0,r.Mz)(u,e=>e.scrollToClass),(0,r.Mz)(u,e=>e.scrollToId));var h=a(66839),E=a(67790),b=a(14011),v=a(21557),y=a(10061),f=a(37391),g=a(22038),_=a(41551),N=a(43198);var w=()=>{const e=(0,n.wA)(),{activePageIndex:t,replacementPolicyDisabled:a,continueButtonText:s,doEfpNavigation:m}=(0,n.d4)((0,r.j8)({activePageIndex:b.IC,replacementPolicyDisabled:_.H8,continueButtonText:b.FS,doEfpNavigation:b.b5})),d=(0,o.useLocation)();(0,l.useEffect)(()=>{if(!m)return;c.Nb.map(e=>e.URL).indexOf(d.pathname)!==t?(0,i.navigate)(c.Nb[t].URL):e((0,E.$n)())},[d,t,e,m]);return 7!==t&&l.createElement(y.BCg,{index:t,totalCount:c.Nb.length},l.createElement(g.A,{slot:"left",type:"text",size:"small",text:"Previous",disabled:!1,onClick:()=>{t===c.i.REPLACEMENT_POLICY||t===c.i.PERSONAL_DETAILS?(e((0,N.AS)()),(0,i.navigate)(c.S9)):e((0,E.pt)())}}),l.createElement(g.A,{slot:"right",type:"primary",size:"small",text:s,disabled:t===c.i.REPLACEMENT_POLICY,onClick:()=>e((0,E.VZ)())}))},M=a(85792),C=a(2442),k=a(2933),S=a(32181),A=a(57773),I=a(1934),O=a(35728),T=a(30745),L=a(92269),x=a(8647),P=a(7617);var D=e=>{const t=(0,n.wA)(),{hideDesktop:a,hideMobile:o,progressBarIndex:s,skipConfirmationPage:d}=(0,n.d4)((0,r.j8)({hideDesktop:b.jT,hideMobile:b.H$,progressBarIndex:b.xt,skipConfirmationPage:x.Gj})),u=()=>{(0,P.bj)(!0),(0,i.navigate)(c.S9),t((0,M.aY)()),t((0,N.AS)()),t((0,C.Wd)()),t((0,k.t9)()),t((0,S.dE)()),t((0,A.Rr)()),t((0,I.cF)()),t((0,O.k0)()),t((0,h.XD)()),t((0,m.B0)()),t((0,E.aJ)()),t((0,T.vd)())};return l.createElement(y.Rxd,{helpNumber:"0860 22 52 46",headerTexture:e?e.mobileHeaderTexture.url:""},l.createElement("div",{slot:"wizard-title"},l.createElement("h5",null,l.createElement("strong",null,"Easiplus Funeral Plan"))),l.createElement(g.A,{slot:"contact-button",type:"secondary",size:"small",text:"Call me back",onClick:()=>t((0,h.zH)(L.QJ.GENERIC))}),l.createElement(i.Link,{slot:"close-button",to:c.S9}
1,l.createElement(y.GQU,{className:"close-icon",iconName:"close",onClick:()=>u()})),l.createElement("div",{slot:"progress-bar"},l.createElement(y.S0w,{className:"header"},l.createElement(y.ng9,{applicationName:"Easiplus Funeral Plan",steps:(p=d,p?["Personal Details","Lives Covered","Beneficiaries","Payment details"].join("|"):["Personal Details","Lives Covered","Beneficiaries","Payment details","Confirmation"].join("|")),index:s,closable:!0,hideDesktop:a,hideMobile:o},l.createElement(g.A,{actionType:"Default",slot:"close-application",type:"text",size:"small",text:"CLOSE",onClick:()=>u()})))));var p},H=a(51632),F=a(80953);var B=()=>{const e=(0,n.wA)(),{editDrawerIsOpen:t,editBeneficiaryFormIsValid:a,editId:i,title:o,firstName:s,surname:c,dateOfBirth:m,relationship:d,mobileNumber:u,email:p,livesCoveredMembers:h,relationships:E,isExistingMember:b,selectedExistingBeneficiary:v,beneficiaryRelationshipTitles:f}=(0,n.d4)((0,r.j8)({editDrawerIsOpen:H.qR,editBeneficiaryFormIsValid:H.E$,editId:H.xc,title:H.LK,firstName:H.O4,surname:H.EZ,dateOfBirth:H.db,relationship:H.hi,mobileNumber:H.W6,email:H.hS,livesCoveredMembers:H.gJ,relationships:H.ZX,isExistingMember:H.hN,selectedExistingBeneficiary:H.GC,beneficiaryRelationshipTitles:H.Ng}));return l.createElement(y.dfI,{onOnSideDrawerClosed:()=>(e((0,S.eS)()),void e((0,S.L_)())),open:t},l.createElement("div",{slot:"side-drawer-content"},l.createElement(y.QLj,null,l.createElement("div",{slot:"om-application-beneficiary-details"},l.createElement("div",null,l.createElement("h5",{className:"no-top-margin side-drawer-header"},i?l.createElement("strong",null," Edit beneficiary details "):l.createElement("strong",null," Add beneficiary details ")),null==i&&h.length>1&&l.createElement(y.N6P,{isSensitive:!0,className:"inline-field",useNativeMobileDropdown:!0,required:!0,size:"small",formId:"beneficiaryDetails",placeholder:"Select existing cover member",displayLabel:"false",name:"existingCoverMember",align:"left",onOnSelect:t=>e((0,S.vh)(t.detail.id)),value:v,options:h&&JSON.stringify(h.map(e=>({value:e.code,label:e.name,disabled:e.isDisabled})))}),l.createElement(y.N6P,{isSensitive:!0,className:"inline-field",useNativeMobileDropdown:!0,required:!0,size:"small",formId:"beneficiaryDetails",placeholder:"Title",name:"title",align:"left",disabled:b,onOnSelect:t=>e((0,S.QH)(t.detail.id)),value:o.value,state:o.status,errorMessage:o.error,options:f&&JSON.stringify(f.map(e=>({value:e.code,label:e.description})))}),l.createElement(y.OHw,{isSensitive:!0,required:!0,formId:"beneficiaryDetails",size:"full",align:"left",name:"firstName",placeholder:"First name(s)",validationDelay:F.U,value:s.displayValue,state:b?"disabled":s.status,errorMessage:s.error,onPersist:t=>e((0,S.BI)(t.detail))}),l.createElement(y.OHw,{isSensitive:!0,required:!0,formId:"beneficiaryDetails",size:"full",align:"left",name:"surname",placeholder:"Surname",validationDelay:F.U,value:c.displayValue,state:b?"disabled":c.status,errorMessage:c.error,onPersist:t=>e((0,S.TN)(t.detail))}),l.createElement(y.OHw,{isSensitive:!0,required:!0,labelAlwaysShow:!0,formId:"beneficiaryDetails",size:"full",align:"left",name:"dateOfBirth",mask:"date",placeholder:"dd/mm/yyyy",label:"Date of birth",validationDelay:F.U,value:m.value,state:b?"disabled":m.status,errorMessage:m.error,onPersist:t=>e((0,S.cZ)(t.detail))}),l.createElement(y.N6P,{className:"inline-field",useNativeMobileDropdown:!0,required:!0,size:"small",formId:"beneficiaryDetails",placeholder:"Relationship",name:"relationship",align:"left",disabled:b,onOnSelect:t=>e((0,S.WF)(t.detail.id)),value:d.value,state:d.status,errorMessage:d.error,options:E&&JSON.stringify(E.map(e=>({value:e,label:e})))}),l.createElement("h6",{className:"no-bottom-margin"}," ","Please supply at least one of the following:"," "),l.createElement("div",{className:"mobile-field"},l.createElement(y.aP5,{onOnPersist:t=>(t=>{e((0,S.sY)(t.detail))})(t),formId:"beneficiaryDetails",validationDelay:F.U,state:u.status,value:u.displayValue,errorMessage:u.error,hintText:u.status===L.wK.VALID?"":"Remember to add â0â in front of your mobile number. E.g. 082 123 4567"})),l.createElement(y.OHw,{isSensitive:!0,required:!0,formId:"benef
1iciaryDetails",size:"full",align:"left",name:"email",placeholder:"Email",validationDelay:F.U,value:p.displayValue,state:p.status,errorMessage:p.error,onPersist:t=>e((0,S.yJ)(t.detail))})),l.createElement("div",{className:"action-buttons"},l.createElement(g.A,{className:"cancel-button",type:"text",size:"small",text:"CANCEL",onClick:()=>{e((0,S.eS)()),e((0,S.L_)())}}),l.createElement(g.A,{className:"save-button",type:"primary",size:"small",text:"SAVE BENEFICIARY",onClick:()=>{a&&e((0,S.eS)()),e((0,S.R)(i))}}))))))};var R=()=>{const e=(0,n.wA)();return l.createElement(y.yTu,{name:"removeModal",dismissible:!0},l.createElement("div",{slot:"content"},l.createElement(y.GQU,{imageUrl:"https://eu-images.contentstack.com/v3/assets/blt0554f48052bb4620/bltc34f1c6e32fb7291/5ec3d2d2a4bead4101d1941f/TrashSVG.svg"}),l.createElement("p",null,"Are you sure you want to remove this beneficiary?")),l.createElement(g.A,{slot:"button",className:"cancel-button",type:"primary",size:"small",text:"YES, REMOVE",onClick:()=>e((0,S.hJ)())}))};var U=()=>l.createElement(y.yTu,{name:"maxAdded",dismissible:!0},l.createElement("div",{slot:"content"},l.createElement("p",null,l.createElement("strong",null,"Unfortunately,")," you are only allowed to add up to 10 beneficiaries online.")),l.createElement("div",{slot:"button"},l.createElement(g.A,{type:"primary",size:"small",text:"OKAY"})));var z=()=>{const e=(0,n.wA)(),{showMustHaveBeneficiary:t,addedMaxBeneficiaries:a}=(0,n.d4)((0,r.j8)({showMustHaveBeneficiary:H.et,addedMaxBeneficiaries:H.Wy}));return l.createElement(y.yTu,{onModalClosed:()=>{e((0,S.Zh)(!1))},name:"mustHaveBeneficiary",open:t,dismissible:!0},l.createElement("div",{slot:"content"},l.createElement("p",null,"Due to you being the only direct family member covered by this policy, you need to add a beneficiary.")),l.createElement("div",{slot:"button"},l.createElement(g.A,{type:"primary",size:"small",text:"ADD BENEFICIARY",onClick:()=>{a||(e((0,S.Zh)(!1)),e((0,S.by)()),e((0,S.eS)()))}})))};const V=e=>{let{number:t,firstName:a,surname:n,editHandler:r,removeHandler:i}=e;return l.createElement(y.yxf,{onEditBeneficiary:()=>r(),onPopupModal:()=>i(),number:t,name:a,surname:n})};var j=()=>{const e=(0,n.wA)(),{beneficiaryList:t,numberOfBeneficiaries:a,addedMaxBeneficiaries:i}=(0,n.d4)((0,r.j8)({beneficiaryList:H.Kc,numberOfBeneficiaries:H.y8,addedMaxBeneficiaries:H.Wy})),o=()=>{i||(e((0,S.by)()),e((0,S.eS)()))};return l.createElement(y.TUN,null,l.createElement(B,null),l.createElement(U,null),l.createElement(R,null),l.createElement(z,null),a?l.createElement("div",null,l.createElement("h5",{className:"no-top-margin"},"Your ",l.createElement("span",{className:"medium"}," beneficiary list ")),l.createElement(y.enR,{count:a,className:"sessioncamhidetext"},l.createElement("div",{slot:"beneficiary-cards"},t.map((t,a)=>l.createElement(V,{key:a,number:a+1,firstName:t.value.firstName.value,surname:t.value.surname.value,editHandler:()=>{return a=t.id,e((0,S.cY)(a)),void e((0,S.eS)());var a},removeHandler:()=>{return a=t.id,void e((0,S.BD)(a));var a}})))),l.createElement(y.vN1,{onClick:o,className:"add-beneficiary-button",iconName:"add",size:"small",type:"secondary",text:"ADD BENEFICIARY",actionType:i})):l.createElement("div",null,l.createElement("h5",{className:"no-top-margin"},"Why you should ",l.createElement("span",{className:"medium"}," add a beneficiary ")),l.createElement("ul",{className:"trustees"},l.createElement("li",null,"As the policyholder, you will receive the payouts should anything happen to the people you've covered"),l.createElement("li",null,"You can nominate someone to receive the payout in the event of your death.")),l.createElement(y.vN1,{onClick:o,className:"add-beneficiary-button",iconName:"add",size:"small",type:"secondary",text:"ADD BENEFICIARY"})))},Y=a(58370);const Q=e=>{let{index:t,maxLength:a,value:n,state:r,persistHandler:i}=e;return l.createElement(y.OHw,{slot:"percentage-input",placeholder:"",required:!0,size:"full",align:"center",keyboardMode:"numeric",id:"percentage-field-"+(t+1),name:"percentage-field-"+(t+1),value:n,state:r,maxlength:a,onPersist:e=>{i(e.detail)}})};var q=()=>{const e=(0,n.wA)(),{beneficiaryList:t,beneficiaryListStatus:a,totalPercentage:i,splitError:o,isEvenSplit:s,splitFields:c}=(0,n.d4)((0,r.j8)({beneficiaryList:H.Kc,beneficiaryListStatus:Y.UU,totalPercentage:Y.T0,splitError:Y.Lv,isEvenSplit:Y.nZ,splitFields:Y._S}));return l.createElement(y.TUN,null,l.createElement("div",null,l.createElement("h5",{className:"no-top-margin"},"How would you like to ",l.createElement("span",{className:"strong"},"split the payout? ")),l.createElement(y.enR,{onCheckBoxChanged:()=>
1{if(s)return e((0,A.er)()),void e((0,A.lP)());e((0,A.Le)())},evenSplit:s,totalPercentage:i,errorMessage:o,state:a},l.createElement("div",{slot:"beneficiary-cards"},t.map((t,a)=>l.createElement(y.c9b,{key:a,number:a+1,name:t.value.firstName.value,surname:t.value.surname.value,errorMessage:c[a].error},l.createElement(Q,{index:a,maxLength:2,value:c[a].value,state:c[a].status,persistHandler:a=>((t,a)=>{e((0,A.wc)(t,a))})(a,t.id)})))))))},G=a(91801),Z=a(83095),J=a(5646);var X=e=>{let{headingText:t,slot:a,children:n}=e;return l.createElement(y.Ph7,{headingText:t,slot:a},l.createElement("div",{slot:"content"},n))};var K=()=>{const e=(0,n.wA)(),t=(0,n.d4)((0,r.j8)({formattedBankName:G.Q3,formattedAccountType:G.fm,accountNumber:G.HA,debitOrderDay:G.T9,paymentAuthorization:G.C4,premium:J.o$,firstNames:Z.Xd,surname:Z.EZ,fullName:Z.dS,idNumber:Z.OX,email:Z.hS,mobileNumber:Z.zd,postalAddressSame:Z.GT,addressLabel:Z.Z2,formattedContactNumber:Z.aT,streetAddress:Z.Kg,resedentialStreetAddress:Z.u8,postallAddressMethod:Z.l_,postallAddress:Z.eG,isSelfEmployed:G.sm,livesCoveredMember:J.SA,livesCoveredMemberKeys:J.xe,beneficiaryList:H.ZO,splitField01:Y.oz,splitField02:Y.vh,splitField03:Y.CV,splitField04:Y.vw,splitField05:Y.C_,splitField06:Y.vb,splitField07:Y.CP,splitField08:Y.v4,splitField09:Y.CG,splitField10:Y.e1,declarationsChecked:x.yO,declarationsInvalid:x.zb,declarationErrorMessage:x.Ul,isConfirmationPage:b.ZU}));return l.createElement(y.Bhl,null,l.createElement("h4",{slot:"heading",className:"no-top-margin no-bottom-margin"},"Lastly, ",l.createElement("strong",null,"please confirm your details")),l.createElement(X,{headingText:"Product summary",slot:"summary-card"},l.createElement("h6",{className:"no-top-margin no-bottom-margin total-heading"},"total monthly premium is:"),l.createElement("div",{className:"wrap-text"},l.createElement("h5",{className:"no-top-margin no-bottom-margin medium"},"R",t.premium," p/m"),l.createElement("h4",{className:"no-top-margin no-bottom-margin"},"Total monthly premium"))),l.createElement("div",{slot:"form"},l.createElement(y.Unx,{titleHeader:"Lives Covered"},l.createElement("span",{slot:"edit-link",onClick:()=>e((0,E.Gk)())},l.createElement("h6",{className:"small"},l.createElement("strong",null,"EDIT"))),l.createElement("div",{slot:"section-body"},t.livesCoveredMemberKeys.map((e,a)=>l.createElement(y.PsQ,{key:a,"is-sensitive":"true",label:"Full name",value:t.livesCoveredMember[e].fullName})))),l.createElement(y.Unx,{titleHeader:"Personal Details"},l.createElement("span",{slot:"edit-link",onClick:()=>e((0,E.xN)())},l.createElement("h6",{className:"small"},l.createElement("strong",null,"EDIT"))),l.createElement("div",{slot:"section-body"},l.createElement(y.PsQ,{"is-sensitive":"true",label:"Full name",value:t.fullName}),l.createElement(y.PsQ,{"is-sensitive":"true",label:"ID number",value:t.idNumber.value}))),l.createElement(y.Unx,{titleHeader:"Contact Details"},l.createElement("span",{slot:"edit-link",onClick:()=>e((0,E.xN)())},l.createElement("h6",{className:"small"},l.createElement("strong",null,"EDIT"))),l.createElement("div",{slot:"section-body"},l.createElement(y.PsQ,{"is-sensitive":"true",label:"Mobile number",value:t.formattedContactNumber}),l.createElement(y.PsQ,{"is-sensitive":"true",label:"Email",value:t.email.value}))),l.createElement(y.Unx,{titleHeader:"Address Details"},l.createElement("span",{slot:"edit-link",onClick:()=>e((0,E.xN)())},l.createElement("h6",{className:"small"},l.createElement("strong",null,"EDIT"))),l.createElement("div",{slot:"section-body"},l.createElement(y.PsQ,{"is-sensitive":"true",label:t.addressLabel,value:t.resedentialStreetAddress}),t.postalAddressSame.value?"":l.createElement(y.PsQ,{"is-sensitive":"true",label:"Postal address",value:t.postallAddress}))),t.beneficiaryList.length>=1?l.createElement(y.Unx,{titleHeader:"Beneficiary Details"},l.createElement("span",{slot:"edit-link",onClick:()=>e((0,E.ym)())},l.createElement("h6",{className:"small"},l.createElement("strong",null,"EDIT"))),l.createElement("div",{slot:"section-body"},t.beneficiaryList.map((e,t)=>l.createElement(y.PsQ,{key:t,"is-sensitive":!0,className:"beneficiary-name",label:"Full name",value:e.FullName})))):"",l.createElement(y.Unx,{titleHeader:"Payment Details"},l.createElement("span",{slot:"edit-link",onClick:()=>e((0,E.Ho)())},l.createElement("h6",{className:"small"},l.createElement("strong",null,"EDIT"))),l.createElement("div",{slot:"section-body"},l.createElement(y.PsQ,{label:"Bank name",value:t.formattedBankName}),l.createElement(y.PsQ,{"is-sensitive":"true",label:"Account holder name",value:t.fullName}),l.createElement(y.PsQ,{"is-sensitive":"true",label:"Account number",value:t.accountNumber.value}),l.createElement(y.PsQ,{label:"Account type",value:t.formattedAccountType}),l.createElement(y.PsQ,{label:"Debit order date",value:t.debitOrderDay.value+" of every month"}),l.createElement(y.PsQ,{label:"Are you self-employed?",value:t.isSelfEmployed.value?"Yes":"No"}))),l.createElement("div",{className:"check-box-container"},l.createElement(y.M1,{checked:t.declarationsChecked,onOnCheckBoxChanged:()=>
1e((0,O.uk)())},l.createElement("p",{slot:"text-slot"},"I accept the ",l.createElement("button",{onClick:()=>e((0,O.xp)(!0))},"declarations."))),l.createElement(y.pdE,{message:t.declarationErrorMessage}))))},W=a(9389);var $=()=>{const e=(0,n.wA)(),{coverMember:t,isEditMode:a,referenceTitles:i,title:o,firstName:s,surname:m,dateOfBirth:d,coverAmount:u,monthlyPremium:p,sliderSteps:h,hintText:E,coverCategory:b,dobError:v,description:f,hasCaption:_}=(0,n.d4)((0,r.j8)({coverMember:J.Cy,isEditMode:J.Ou,referenceTitles:J.uv,title:J.LK,firstName:J.O4,surname:J.EZ,dateOfBirth:J.db,coverAmount:J.co,monthlyPremium:J.z9,sliderSteps:J.Ny,hintText:J.x0,coverCategory:J.OH,dobError:J.K1,description:J.rx,hasCaption:J.$o})),N=e=>Number(e).toLocaleString("en").split(",").join(" ");return l.createElement(y.dfI,{onOnSideDrawerClosed:()=>e((0,k.YB)()),open:t,className:"lives-covered-side-drawer"},l.createElement("div",{slot:"side-drawer-content"},l.createElement(y.OTI,{key:f},l.createElement("div",{slot:"lives-covered-details-side-drawer"},l.createElement("h5",{className:"strong no-top-margin side-drawer-header"},f),_&&l.createElement("p",{className:"description"},"Someone married to you or couples living together (common-law relationship)."),l.createElement(y.N6P,{isSensitive:!0,disabled:a,useNativeMobileDropdown:!0,required:!0,size:"small",formId:"livesCoveredDetails",placeholder:"Title",name:"title",align:"left",onOnSelect:t=>e((0,k.QH)(t.detail.id)),value:o.value,state:o.status,errorMessage:o.error,options:JSON.stringify(i.map(e=>({value:e.code,label:e.description})))}),l.createElement(y.OHw,{isSensitive:!0,required:!0,name:"firstName",size:"full",align:"left",placeholder:"First name",validationDelay:F.U,value:s.displayValue,state:a?"disabled":s.status,errorMessage:s.error,onPersist:t=>e((0,k.BI)(t.detail))}),l.createElement(y.OHw,{isSensitive:!0,required:!0,name:"surname",size:"full",align:"left",placeholder:"Surname",validationDelay:F.U,value:m.displayValue,state:a?"disabled":m.status,errorMessage:m.error,onPersist:t=>e((0,k.TN)(t.detail))}),l.createElement(y.OHw,{isSensitive:!0,required:!0,labelAlwaysShow:!0,hintText:E,name:"dateOfBirth",size:"full",align:"left",mask:"date",placeholder:"dd/mm/yyyy",label:"Date of birth",validationDelay:F.U,value:d.value,state:a?"disabled":d.status,errorMessage:v,onPersist:t=>e((0,k.cZ)(t.detail))}),l.createElement("p",null,"Cover amount: "),l.createElement(y.ya7,{stepString:JSON.stringify(h.sliderSteps),minLabel:h.minLabel,maxLabel:h.maxLabel,value:u.value,onSliderChange:t=>{return a=t.detail,void(d.status!==L.Oz.VALID||v?e((0,k.cZ)(d.value)):e((0,k.js)(a)));var a}}),l.createElement("div",{className:"cover-premium-container"},l.createElement("div",{className:"cover-premium-left"},l.createElement("h5",{className:"strong"},"R",N(u.value)),l.createElement("p",{className:"small"},"Cover amount")),l.createElement("div",{className:"cover-premium-right"},l.createElement("h5",{className:"strong"},"R",N(p.value)),l.createElement("p",{className:"small"},"Total monthly premium"))),b===c.l_.DIRECT_FAMILY.key&&l.createElement(W.A,{iconName:"information_outline",tooltipContent:"By adjusting the slider, <strong>you are updating the cover amount for every member</strong> in the Me & My Direct Family cover category."}),l.createElement("div",{className:"action-buttons"},l.createElement(g.A,{className:"cancel-button",size:"small",type:"text",text:"CANCEL",onClick:()=>e((0,k.YB)())}),l.createElement(g.A,{className:"save-button",size:"small",type:"primary",text:"SAVE",onClick:()=>e((0,k.SP)())}))))))};var ee=e=>{let{open:t,confirmHandler:a}=e;return l.createElement(y.yTu,{onModalClosed:()=>a(),name:"LivesCoveredIncompleteModal",dismissible:"true",exitable:"true",open:t},l.createElement("div",{slot:"content"},l.createElement("p",null,"To proceed, fill in all the details for the members youâve selected.")),l.createElement("div",{slot:"button"},l.createElement(g.A,{type:"primary",size:"small",text:"Okay, thanks",onClick:()=>a()})))};var te=e=>{let{open:t,confirmHandler:a}=e;return l.createElement(y.yTu,{onModalClosed:()=>a(),name:"LivesCoveredMaxMembersModal",dismissible:!0,exitable:!0,open:t},l.createElement("div",{slot:"content"},l.createElement("p",null,"Unfortunately, you are only allowed to add cover for a maximum of 7 children")),l.createElement("div",{slot:"button"},l.createElement(g.A,{type:"primary",size:"small",text:"Okay, thanks",onClick:()=>a()})))};var ae=e=>{let{open:t,dismissHandler:a,confirmHandler:n}=e;return l.createElement(y.yTu,{onModalClosed:()=>a(),name:"LivesCoveredRemoveConfirmationModal",dismissible:!0,exitable:!0,open:t},l.createElement("div",{slot:"content"},l.createElement(y.GQU,{imageUrl:"https://eu-images.contentstack.com/v3/assets/blt0554f48052bb4620/blt94f2cb596218bd62/5f2935c8ee8504335e705005/WRONG_CMOS.svg"}),l.createElement("p",null,"Are you sure you want to remove this member?")),l.createElement(g.A,{slot:"button",type:"primary",size:"small",text:"Yes, remove",onClick:()=>n()}))};var le=e=>
1{let{member:t,hasDetails:a,canRemove:n,description:r,displayFirstLabelSet:i,displaySecondLabelSet:o,fullName:s,coverAmount:c,monthlyPremium:m,age:d,editCoverMemberHandler:u,removeMemberHandler:p,addCoverMemberHandler:h}=e;return l.createElement(y.m9m,{id:t,onEditDetailsClicked:()=>{u()},onRemoveMembersClicked:()=>{p()},onAddDetailsClicked:()=>{h()},editEnabled:a,deleteEnabled:n},l.createElement("h6",{slot:"family-member-card-heading"},r),l.createElement("div",{slot:"family-member-card-body"},i?l.createElement("div",null,l.createElement(y.PsQ,{isSensitive:"true",label:"Name & Surname",value:s}),l.createElement(y.PsQ,{label:"Cover Amount",value:c}),l.createElement(y.PsQ,{label:"Monthly Premium",value:m})):o?l.createElement("div",null,l.createElement(y.PsQ,{isSensitive:"true",label:"Name & Surname",value:s}),l.createElement(y.PsQ,{label:"Age",value:d})):void 0))};var ne=e=>{let{complete:t,headingText:a,viewMoreText:r,coverCategoryCodes:i,coverMembers:o,viewMoreHandler:s}=e;const m=(0,n.wA)(),d=e=>"R"+Number(e).toLocaleString("en").split(",").join(" ");return l.createElement(y.vn5,{onViewMembers:()=>{s()},complete:t,headingAlignment:"left",headingText:a,buttonText:r},l.createElement("div",{slot:"family-member-card-items"},i.map((e,t)=>l.createElement(le,{key:t,id:e,hasDetails:o[e].hasDetails,canRemove:o[e].canRemove,description:o[e].description,displayFirstLabelSet:o[e].displayFirstLabelSet,displaySecondLabelSet:o[e].displaySecondLabelSet,fullName:o[e].fullName,coverAmount:d(o[e].coverAmount.value),monthlyPremium:d(o[e].monthlyPremium.value),age:o[e].age.value,editCoverMemberHandler:()=>m((0,k.ie)(e)),removeMemberHandler:()=>{return t=e,m((0,k.ER)(t)),void m((0,k.gn)(c.gG.REMOVE_CONFIRMATION));var t},addCoverMemberHandler:()=>m((0,k.rK)(e))}))))};var re=()=>{const e=(0,n.wA)(),{coverMembers:t,coverCategories:a,popupModalValue:i,quoteSummaryCategories:o,quoteSummaryPremiums:s}=(0,n.d4)((0,r.j8)({coverMembers:J.SA,coverCategories:J.K5,popupModalValue:J.L9,quoteSummaryCategories:J.nY,quoteSummaryPremiums:J.R0}));return l.createElement(y.Rk1,null,l.createElement("h4",{slot:"heading",className:"heading"},"Now, add details of ",l.createElement("strong",null,"the people you want to cover")),l.createElement("div",{slot:"content"},Object.keys(a).map(n=>l.createElement(ne,{key:a[n].description,complete:a[n].isComplete,headingText:a[n].description,viewMoreText:a[n].viewMoreText,coverMembers:t,coverCategoryCodes:a[n].codes,viewMoreHandler:()=>e((0,k.X)(n))})),l.createElement("div",{className:"gap"})),l.createElement("div",{slot:"quote-summary-card"},l.createElement(y.Zt6,{name:"livesCoveredSticky",aboveFooter:!0,isSticky:!1,productName:"funeral plan",coverCategories:o,coverCategoryAmounts:s})),l.createElement("div",{slot:"side-drawers"},l.createElement($,null)),l.createElement("div",{slot:"modals"},l.createElement(ee,{open:i===c.gG.INCOMPLETE_MODAL,confirmHandler:()=>e((0,k.O4)(c.gG.INCOMPLETE_MODAL))}),l.createElement(te,{open:i===c.gG.MAX_CHILDREN,confirmHandler:()=>e((0,k.O4)())}),l.createElement(ae,{open:i===c.gG.REMOVE_CONFIRMATION,dismissHandler:()=>e((0,k.O4)()),confirmHandler:()=>(e((0,k.n0)()),void e((0,k.gn)(null)))})))};var ie=e=>{let{slot:t,open:a,buttonHandler:n}=e;return l.createElement(y.yTu,{slot:t,name:"ErrorResponseModal",exitable:!1,open:a},l.createElement("div",{slot:"content"},l.createElement(y.GQU,{imageUrl:"https://eu-images.contentstack.com/v3/assets/blt0554f48052bb4620/blt94f2cb596218bd62/5f2935c8ee8504335e705005/WRONG_CMOS.svg"}),l.createElement("h5",{className:"no-bottom-margin"},"Something looks wrong?"),l.createElement("h6",{className:"no-bottom-margin account-verification-text"},"Please re-enter your banking details. It appears that the details you have entered are incorrect or the account does not belong to you.")),l.createElement(g.A,{slot:"button",type:"primary",size:"large",text:"Try again",onClick:()=>n()}))};var oe=e=>{let{slot:t,open:a,buttonHandler:n}=e;return l.createElement(y.yTu,{slot:t,name:"successModal",dismissible:!0,open:a},l.createElement("div",{slot:"content"},l.createElement(y.GQU,{imageUrl:"https://eu-images.contentstack.com/v3/assets/blt0554f48052bb4620/blt801513b7ef009be6/5f2935c8dfac843bffcdecfa/SUCCESS_CMOS.svg"}),l.createElement("h5",{className:"no-bottom-margin"},"All good to go!")),l.createElement(g.A,{slot:"button",type:"primary",size:"large",text:"Okay, thanks",onClick:()=>n()}))};var se=e=>{let{slot:t,open:a,buttonHandler:n}=e;return l.createElement(y.yTu,{slot:t,name:"serverErrorResponseModal",exitable:!1,open:a},l.createElement("div",{slot:"content"},l.createElement(y.GQU,{imageUrl:"https://eu-images.contentstack.com/v3/assets/blt0554f48052bb4620/blt7379af7d0a25dd73/5ee9f203557e3a516a2d9a29/desktop_monitor_smiley.svg"}),l.createElement("h5",{className:"no-top-margin no-bottom-margin"},"Oops!",l.createElement("br",null),"Something went wrong?"),l.createElement("h6",{className:"no-bottom-margin account-verification-text"},"It's not you, itâs us. Not to worry, we will be in contact with you shortly to help you proceed with your application.")),l.createElement("div",{slot:"button"},l.createElement(g.A,{type:"primary",size:"large",text:"Okay, thanks",onClick:()=>n()})))}
1,ce=a(40532);var me=e=>{let{includeAvs:t,includeCdv:a}=e;const o=(0,n.wA)(),{paymentAuthorizationValid:s,paymentAuthorizationInvalid:m,name:d,surname:u,bankName:p,accountNumber:h,accountType:b,debitOrderDay:v,paymentAuthorization:f,referenceBanks:g,referenceAccountTypes:_,referenceDebitOrderDates:N,accountValidationStatus:w,paymentDetailsCompleted:M,declarationsChecked:C,declarationsInvalid:k,declarationErrorMessage:S,skipConfirmationPage:A,premium:T,displaySuccessModal:L,isSelfEmployed:P}=(0,n.d4)((0,r.j8)({paymentAuthorizationValid:G.AC,paymentAuthorizationInvalid:G.Bp,name:Z.Xd,surname:Z.EZ,bankName:G.Am,accountNumber:G.HA,accountType:G.U8,debitOrderDay:G.T9,paymentAuthorization:G.C4,referenceBanks:ce.TM,referenceAccountTypes:ce.YT,referenceDebitOrderDates:ce.PE,accountValidationStatus:G.B1,paymentDetailsCompleted:G.c7,declarationsChecked:x.yO,declarationsInvalid:x.zb,declarationErrorMessage:x.Ul,skipConfirmationPage:x.Gj,premium:J.o$,displaySuccessModal:G.BX,isSelfEmployed:G.sm}));(0,l.useEffect)(()=>{t&&o((0,I.n3)()),a&&o((0,I.Sd)())},[]);return l.createElement(y.k4k,null,l.createElement("h5",{slot:"heading",className:"heading",id:"heading-anchor"},"Now, we'd like to know ",l.createElement("strong",null,"your payment details")),A&&l.createElement(y.Ph7,{slot:"summary-card"},l.createElement("div",{slot:"content"},l.createElement("h6",{className:"no-top-margin no-bottom-margin total-heading"},"total monthly premium is:"),l.createElement("div",{className:"wrap-text"},l.createElement("h5",{className:"no-top-margin no-bottom-margin medium"},"R",T," p/m"),l.createElement("h4",{className:"no-top-margin no-bottom-margin"},"Total monthly premium")))),!A&&l.createElement("p",{slot:"subheading"},"We need the following information to setup your contract."),l.createElement("div",{slot:"form"},l.createElement("section",{className:"form-section"},l.createElement(y.N6P,{useNativeMobileDropdown:!0,required:!0,formId:"paymentDetailsForm",placeholder:"Bank name",name:"bankName",align:"left",onOnSelect:e=>o((0,I.x3)(e.detail.id)),value:p.value,state:p.status,"error-message":p.error,options:g&&JSON.stringify(g.map(e=>({value:e.code,label:e.description})))}),l.createElement(y.OHw,{isSensitive:!0,required:!0,id:"accountHolderName",size:"full",align:"left",placeholder:"Account holder name","form-id":"paymentDetailsForm",name:"accountHolderName","error-message":d.error,state:"disabled",value:d.value+" "+u.value}),l.createElement(y.OHw,{isSensitive:!0,required:!0,id:"accountNumber",size:"full",align:"left",mask:"number",placeholder:"Account number","form-id":"paymentDetailsForm",name:"accountNumber","keyboard-mode":"numeric",validationDelay:F.U,value:h.value,"error-message":h.error,state:h.status,onPersist:e=>{e.detail!==h.value&&o((0,I.gh)(e.detail))}}),l.createElement(y.N6P,{useNativeMobileDropdown:!0,required:!0,formId:"paymentDetailsForm",placeholder:"Account type",name:"accountType",align:"left",onOnSelect:e=>o((0,I.$O)(e.detail.id)),value:b.value,"error-message":b.error,state:b.status,options:_&&JSON.stringify(_.map(e=>({value:e.code,label:e.description})))}),l.createElement(y.N6P,{useNativeMobileDropdown:!0,required:!0,formId:"paymentDetailsForm",placeholder:"Select a day for your debit order",name:"debitOrderDay",align:"left",onOnSelect:e=>o((0,I.sQ)(e.detail.value)),value:v.value,"error-message":v.error,state:v.status,options:N&&JSON.stringify(N.map(e=>({value:e.code,label:e.description})))}),l.createElement("div",{className:"check-box-container",id:"paymentAuthorization"},l.createElement(y.M1,{disabled:!M,text:"I hereby confirm that the above-provided banking details are mine. I understand that my application will be declined if the provided banking details are not mine.",checked:s,value:f.value,onOnCheckBoxChanged:()=>{o((0,I.gi)())}}),l.createElement(y.pdE,{message:m?"Authorization required to continue.":""})),A&&l.createElement("div",{className:"check-box-container"},l.createElement(y.M1,{checked:C,onOnCheckBoxChanged:()=>o((0,O.uk)())},l.createElement("p",{slot:"text-slot"},"I accept the ",l.createElement("button",{onClick:()=>o((0,O.xp)(!0))},"declarations."))),l.createElement(y.pdE,{message:S})),s&&l.createElement("div",null,l.createElement("h5",{slot:"heading",className:"heading",id:"heading-anchor"},"Employment details"),l.createElement("p",{slot:"subheading"},"To protect you and fellow South Africans from fraud and money laundering, we need to know the following:"),l.createElement("h6",null,l.createElement("strong",null,"Are you self-employed?")),l.createElement(y.n78,{id:"isSelfEmployed",name:"isSelfEmployed",value:P.value,onOnSelection:e=>o((0,I.ZT)("true"===e.detail))},l.createElement("ul",{slot:"list-items"},[{value:!0,description:"Yes"},{value:!1,description:"No"}].map((e,t)=>l.createElement("li",{value:e.value,key:t},e.description)))),l.createElement(y.pdE,{message:P.error})))),l.createElement(y.Rw7,{slot:"loading-modal",loaderText:"Verifying your bank account details",verticalAlignMiddle:"true",open:w===c.dY.PENDING}),l.createElement(ie,{slot:"error-modal",open:w===c.dY.FAILED,buttonHandler:()=>o((0,I.GG)())}),l.createElement(oe,{slot:"good-to-go-modal",open:L,buttonHandler:()=>o(A?(0,I.T4)(c.dY.IDLE):(0,E.VZ)())}),l.createElement(se,{slot:"server-error-modal",open:w===c.dY.ERROR,buttonHandler:()=>{o((0,I.GG)()),(0,i.navigate)(c.S9)}}))},de=a(73057);var ue=()=>{const e={required:!0,size:"full",formId:"personalDetailsForm",align:"left",validationDelay:F.U},t=(0,n.wA)(),{city:a,complex:i,country:o,email:s,firstNames:c,id:m,mobile:d,postalCode:u,streetAddress:p,suburb:h,surname:E,referenceNationalities:b}=(0,n.d4)((0,r.j8)({city:Z.KM,complex:Z.Bk,country:Z.JJ,email:Z.hS,firstNames:Z.Xd,id:Z.OX,mobile:Z.zd,postalCode:Z.FQ,streetAddress:Z.Kg,suburb:Z._H,surname:Z.EZ,referenceNationalities:ce.Q6}));return(0,l.useEffect)(()=>{(0,C.dx)("1")}),l.createElement(y.CMV,null,l.createElement("h5",{slot:"heading",className:"heading"}
1,"Letâs get to know you"),l.createElement("p",{slot:"subheading"},"To help us process your application and give you the best service, we need some details from you."),l.createElement("div",{slot:"form"},l.createElement("section",{className:"form-section"},l.createElement("h6",{className:"no-bottom-margin"},l.createElement("strong",null,"Your personal details")),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"firstNames",name:"name",placeholder:"First name(s)",value:c.displayValue,state:c.status,errorMessage:c.error,onPersist:e=>{t((0,C.ri)(e.detail)),t((0,de.KF)(e.detail))}})),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"surname",name:"surname",placeholder:"Surname",value:E.displayValue,state:E.status,errorMessage:E.error,onPersist:e=>t((0,C.TN)(e.detail))})),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"id",placeholder:"South African ID number",name:"id",hintText:"E.g. 790210111111",keyboardMode:"numeric",value:m.displayValue,state:m.status,errorMessage:m.error,onPersist:e=>t((0,C.$e)(e.detail))})),l.createElement("h6",{className:"no-bottom-margin"},l.createElement("strong",null,"Contact details")),l.createElement("div",{className:"mobile-field"},l.createElement(y.aP5,{id:"mobileNumber",formId:"personalDetailsForm",placeholderText:"Contact Number",validationDelay:F.U,value:d.displayValue,state:d.status,errorMessage:d.error,onPersist:e=>t((0,C.sY)(e.detail)),hintText:d.status===L.wK.VALID?"":"Remember to add â0â in front of your mobile number. E.g. 082 123 4567"})),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"email",placeholder:"Email",name:"email",value:s.displayValue,state:s.status,errorMessage:s.error,onPersist:e=>t((0,C.yJ)(e.detail))})),l.createElement("h6",{className:"no-bottom-margin"},l.createElement("strong",null,"Residential address details")),l.createElement("p",null,"PO BOX or Private Bag addresses will not be accepted as a residential address. This will result in your application being declined."),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"complex",placeholder:"Complex/building",name:"complex",value:i.value,state:i.status,errorMessage:i.error,onPersist:e=>t((0,C.yB)(e.detail))})),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"streetAddress",placeholder:"Street address",name:"streetAddress",value:p.value,state:p.status,errorMessage:p.error,onPersist:e=>t((0,C.Fe)(e.detail)),hintText:"Only a street address is allowed."})),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"suburb",placeholder:"Suburb",name:"suburb",value:h.value,state:h.status,errorMessage:h.error,onPersist:e=>t((0,C.h7)(e.detail))})),l.createElement(y.OHw,Object.assign({},e,{id:"city",placeholder:"City",name:"city",value:a.value,state:a.status,errorMessage:a.error,onPersist:e=>t((0,C.Lx)(e.detail))})),l.createElement(y.OHw,Object.assign({},e,{isSensitive:!0,id:"postalCode",placeholder:"Postal code",name:"postalCode",value:u.displayValue,state:u.status,errorMessage:u.error,onPersist:e=>t((0,C.o4)(e.detail))})),l.createElement(y.N6P,Object.assign({},{useNativeMobileDropdown:!0,required:!0,formId:"personalDetailsForm",align:"left"},{size:"full",id:"country",name:"country",placeholder:"Country",disabled:"true",filterable:"true",errorMessagePopupAlignment:"left",value:o.value,onOnSelect:e=>t((0,C.yi)(e.detail.value)),options:b&&JSON.stringify(b.map(e=>({value:e.code,label:e.description})))})))))};var pe=e=>{let{excludeConfirmDetailsPage:t}=e;const a=(0,n.wA)(),{isReplacementPolicy:i,isReplacementPolicyValue:o}=(0,n.d4)((0,r.j8)({scrollToId:p,isReplacementPolicy:_.tZ,isReplacementPolicyValue:_.FS}));return(0,l.useEffect)(()=>{t&&a((0,O.vy)(!0))},[]),l.createElement(y.oJI,null,l.createElement("h3",{slot:"heading",className:"no-top-margin no-bottom-margin"},"Are you replacing an existing funeral policy with this one?"),l.createElement("div",{slot:"form"},l.createElement("section",{className:"form-section"},l.createElement(y.n78,{value:o,onOnSelection:e=>{a((0,N.sv)("true"===e.detail)),"false"===e.detail&&a((0,E.VZ)())}},l.createElement("ul",{slot:"list-items"},l.createElement("li",{value:!0},"YES"),l.createElement("li",{value:!1},"NO"))),i.value&&l.createElement(y.JXG,null,l.createElement("div",{slot:"card-content"},l.createElement("h6",{className:"medium no-top-margin no-bottom-margin"},"Why do we ask?"),l.createElement("p",null,l.createElement("small",null,"You may not be able to get the same type of cover or there could be waiting periods that can delay this application. For guidance, you can talk to an adviser.")),l.createElement("br",null),l.createElement(g.A,{text:"Continue",type:"primary",size:"small",onClick:()=>a((0,E.xN)())}),l.createElement("span",{className:"mobile-line-break"},l.createElement("br",null)),l.createElement(g.A,{text:"Call me back",type:"secondary",size:"small",onClick:()=>a((0,h.zH)(L.QJ.REPLACEMENT))}))),l.createElement("span",{id:"continue-button-anchor"}))))};const he=(0,r.Mz)(d.X,e=>e.thankYou),Ee=(0,r.Mz)(he,e=>e&&e.referenceNumber),be=(0,r.Mz)(he,e=>{if(e)return e.firstNames});var ve=a(20010);a(56720);var ye=e=>{let{thankYouEntry:t,threeColumnLayout:a,fourColumnLayout:i,callMeBack:o}=e;const s=(0,n.wA)(),{applicationReferenceNumber:c,firstName:d}=(0,n.d4)((0,r.j8)({applicationReferenceNumber:Ee,firstName:be}));if((0,l.useEffect)(()=>{s((0,M.aY)()),s((0,N.AS)()),s((0,C.Wd)()),s((0,k.t9)()),s((0,S.dE)()),s((0,A.Rr)()),s((0,I.cF)()),s((0,O.k0)()),s((0,h.XD)()),s((0,m.B0)()),s((0,E.aJ)()),o&&o[0]&&o[0].call_me_back_product&&s((0,h.u6)(o[0].call_me_back_product))},[o,s]),!t)return"";const{close_button_link:u,success_image_link:p,caption:b,contact_caption:v,button:f}=t[0];return l.createElement(y.zP8,null,l.createElement(y.CnU,{slot:"thank-you",closeButtonLink:u&&u.href?u.href:"",imageLink:p&&p.href?p.href:"",personName:d,thankYouCaption:b,referenceNumber:c,contactCaption:v,buttonName:f?f.title:"",buttonLink:f?f.href:""}),!1,l.createElement(ve.A,{slot:"three-col",fourColumnLayout:i}))},fe=a(37364);var ge=()=>{const e={required:!0,isSensitive:!0,size:"full",align:"left",formId:"efpCallMeBackForm"},t=(0,n.wA)(),{callMeBackDrawerIsOpen:a,name:o,surname:s,contactNumber:c,sendCallMeBackStatus:m,callMeBackType:d,callMeBackButtonText:u,callMeBackButtonDisabled:p,callMeBackStatusIsSuccess:E,callMeBackStatusIsFailure:b}=(0,n.d4)((0,r.j8)({callMeBackDrawerIsOpen:fe.fe,name:fe.mG,surname:fe.EZ,contactNumber:fe.or,sendCallMeBackStatus:fe.Q6,callMeBackType:fe.YS,callMeBackButtonText:fe.J2,callMeBackButtonDisabled:fe.i3,callMeBackStatusIsSuccess:fe.h3,callMeBackStatusIsFailure:fe.K3}));return(0,l.useEffect)(()=>{m===L.rs.SUCCESS&&d===L.QJ.REPLACEMENT&&setTimeout(()=>{(0,i.navigate)("/personal/solutions/funeral/")},2e3)},[m,d]),l.createElement(y.dfI,{onOnSideDrawerClosed:()=>t((0,h.zH)(null)),open:a},l.createElement("div",{slot:"side-drawer-content",className:"speak-to-an-adviser"},l.createElement("h5",{className:"no-top-margin"},l.createElement("strong",null,"Weâll get in touch soon")),l.createElement("h6",{className:"no-top-margin"},"Share your details with us and we'll get in touch as soon as possible."),l.createElement("div",{className:"contact-details"},l.createElement(y.OHw,Object.assign({},e,{name:"name",placeholder:"Name",value:o.value,state:o.status,errorMessage:o.error,validationDelay:F.U,onPersist:e=>t((0,h.x_)(e.detail))})),l.createElement("br",null),l.createElement(y.OHw,Object.assign({},e,{name:"surname",placeholder:"Surname",value:s.value,state:s.status,errorMessage:s.error,validationDelay:F.U,onPersist:e=>t((0,h.TN)(e.detail))})),l.createElement("br",null),l.createElement(y.OHw,Object.assign({},e,{name:"mobileNumber",placeholder:"Mobile Number",value:c.displayValue,state:c.status,errorMessage:c.error,validationDelay:F.U,onPersist:e=>t((0,h.nH)(e.detail))}))),l.createElement("div",{className:"form-submit-details"},l.createElement(g.A,{type:"primary",size:"small",text:u,disabled:p,onClick:()=>(e=>{let t="0.0";try{const e=ga.getAll();e&&e.length>0&&(t=e[0].get("clientId"))}catch(a){console.log(a)}e((0,h.LG)(window.location.href)),e((0,h.dn)(t)),e((0,h.XX)())})(t)}),l.createElement("div",{className:"marketing-disclaimer"},l.createElement(y.GQU,{iconName:"lock_outline"}),l.createElement("span",null,"Donât worry, we will not contact you for marketing purposes ")),E&&l.createElement("div",{className:"cmb-success-message"},l.createElement("h5",{className:"medium sessioncamhidetext"},"Thank you ",o.value,"!"),l.createElement("h6",{className:"no-margin-top"},"One of our consultants will call you shortly.")),b&&l.createElement("div",{className:"cmb-fail-message"},l.createElement("h5",{className:"medium"},"Sorry ",o.value,"!"),l.createElement("h6",{className:"no-margin-top"},"Please try again.")))))};var _e=()=>{const e=(0,n.wA)(),{drawerOpen:t}=(0,n.d4)((0,r.j8)({drawerOpen:x.Ex}));return l.createElement(y.dfI,{open:t,onOnSideDrawerClosed:()=>e((0,O.WR)())},l.createElement("div",{slot:"side-drawer-content"},l.createElement("h5",{className:"no-top-margin"},l.createElement("strong",null,"Declarations")),l.createElement("section",null,l.createElement("p",null,l.createElement("small",null,l.createElement("strong",null,"Old Mutual Life Assurance Company (SA) is a licensed Financial Services Provider and Life Insurer and holds Professional Indemnity Insurance"))),l.createElement("p",null,l.createElement("small",null,l.createElement("strong",null,"I have read and understood the product information given to me during this application.")))),l.createElement("section",null,l.createElement("small",null,"I ",l.createElement("strong",null,"understand and agree")," that:",l.createElement("ul",null,l.createElement("li",null,"All the information I have provided to Old Mutual in this application is true and correct."),l.createElement("li",null,"This is only an application. Old Mutual will evaluate this application and may accept or refuse it."),l.createElement("li",null,"I acknowledge that when Old Mutual evaluates my application, Old Mutual may accept or adjust the cover that I have chosen."),l.createElement("li",null,"If Old Mutual accepts my application, they will send me an English policy contract."),l.createElement("li",null,"I understand that this funeral plan has a six-month waiting period from the application date or date on which an insured person was added under the plan. During this waiting period, Old Mutual will only pay the cover if the insured person dies because of an accident. However, if the funeral plan I am claiming on was taken out within two months of a previous policy that was designed to cover funeral expenses being cancelled (including because it had lapsed or its term had ended), the waiting period may be reduced. I also understand that the waiting period will not be reduced if the previous policy was cancelled but cover under it had not ended when an insured person dies. If I applied for more cover under this plan than I had under the previous policy, Old Mutual will not reduce the waiting period on the increased portion of cover."),l.createElement("li",null,"You have 30 days to opt out the contract from date of receiving the policy contract at no cost to you."),l.createElement("li",null,"The cover will be changed if Old Mutual at claims stage discovers that the date of birth I provided for any insured person differs from his/her date of birth on the death certificate or his/her ID document. It is important to ensure that the date of birth for all insured persons are correct and to notify Old Mutual of any changes."),l.createElement("li",null,"The premiums will increase on 1 July each year but the cover will stay the same. If I donât pay the increased premium, the cover will reduce by the same portion as the premium should have increased."),l.createElement("li",null,"I may cancel this Funeral Plan but will not get any money because this product does not have any withdrawal or cancellation value."),l.createElement("li",null,"I must tell Old Mutual if any of my personal details change or the details of any beneficiaries or the premium payer (if different)."),l.createElement("li",null,"Old Mutual needs access to my personal information to evaluate any application for insurance I make for underwriting purposes and to consider a claim for benef
1its. If Old Mutual doesnât have access to this information, it cannot evaluate my application and consider claims. I also understand that my personal information may be shared with other insurers to enable all insurers to consider applications for insurance that I make for underwriting and claims purposes. I understand that my personal information is protected by law and will be treated confidentially. I authorise a doctor, hospital or any other person to provide the information that Old Mutual may need."),l.createElement("li",null,"I understand that legal limits also apply to insured persons younger than 14 and Old Mutual has set its own limit relating to stillborn children. I am aware that at the time of death, Old Mutual will never pay more than what is allowed by law."),l.createElement("li",null,"I understand replacing any insurance policy for this product may be to my disadvantage and that I should preferably speak to a qualified financial adviser before doing so."),l.createElement("li",null,"When paying for my policy :",l.createElement("br",null),l.createElement("ul",null,l.createElement("li",null,"I give Old Mutual permission to arrange for the payment of the premiums with my bank."),l.createElement("li",null,"Premium increases and up to two outstanding premiums may be included in these deductions."),l.createElement("li",null,"Premiums for an Old Mutual Group Schemes policy will show on my bank statement as âOMGPSCHEMEâ."),l.createElement("li",null,"The bank will deduct the premium on the day that I have chosen, or where this is not possible, the soonest date thereafter."),l.createElement("li",null,"Old Mutual will use an early debit order service provided by certain banks to collect premiums when there is not enough money in my account on the date that I have chosen. This service allows Old Mutual to track my bank account and to deduct my premiums when there is enough money in my account. Any premium for an Old Mutual Group Schemes policy that is deducted with the early debit order service will show on my bank statement as âOLD MUTUALâ."))),l.createElement("li",null," I ",l.createElement("strong",null,"declare")," that: ",l.createElement("br",null),l.createElement("ul",null,l.createElement("li",null,"All insured persons on this application are permanent residents of the Republic of South Africa."),l.createElement("li",null,"My current financial position makes it possible for me to pay the monthly premiums for the product/products I am applying for."),l.createElement("li",null,"I am responsible for the funeral costs of all the insured persons on this application."),l.createElement("li",null,"I confirm that all information provided is true and complete. I understand that if I misstated or failed to give certain facts, Old Mutual may keep the premiums I have paid and I will not receive any benefits."))),l.createElement("li",null,"All transactions are recorded and can be made available upon request."),l.createElement("li",null,"For Complaints process and options please visit our website: https://www.oldmutual.co.za/customer-complaints/.")),l.createElement("strong",null,"Protection of Personal Information (PPI)"),l.createElement("br",null),l.createElement("br",null),"The Old Mutual Group would like to offer you ongoing financial services and may use your personal information to provide you with information about products or services that may be suitable to meet your financial needs. Please sms your ID number to 30994 if you would prefer not to receive such information and/or financial services.",l.createElement("br",null),l.createElement("br",null),"We may use your information or obtain information about you for the following purposes:",l.createElement("ul",null,l.createElement("li",null,"Underwriting"),l.createElement("li",null,"Assessment and processing of claims"),l.createElement("li",null,"Credit searches or verification of personal information"),l.createElement("li",null,"Claims checks (Life & Claims Register)"),l.createElement("li",null,"Tracing beneficiaries"),l.createElement("li",null,"Fraud prevention and detection"),l.createElement("li",null,"Market research and statistical analysis"),l.createElement("li",null,"Audit & record keeping purposes"),l.createElement("li",null,"Compliance with legal & regulatory requirements"),l.createElement("li",null,"Verifying your identity"),l.createElement("li",null,"Sharing information with service providers we engage to process such information on our behalf or who render services to us. These service providers may be abroad, but we will not share your information with them unless we are satisfied that they have adequate security measures in place to protect your personal information.")),l.createElement("br",null),"You may access your personal information that we hold and may also request us to correct any errors or to delete this information. In certain cases you have the right to object to the processing of your personal information.",l.createElement("br",null),"You also have the right to complain to the Information Regulator, whose contact details are:",l.createElement("br",null),l.createElement("br",null),l.createElement("ul",null,l.createElement("li",null,"http://www.justice.gov.za/inforeg/index.html"),l.createElement("li",null,"General enquiries: [email protected]"),l.createElement("li",null,"Complaints: [email protected]")),"To view our full privacy notice, please visit our website on www.oldmutual.co.za"))))};var Ne=e=>{let{data:t}=e;const{0:a,1:d}=(0,l.useState)(!1),u=(0,o.useLocation)(),g=(0,n.wA)(),{mobile_header_texture:_,thank_you:N,thank_you_four_column_layout:M,thank_you_three_column_layout:C,call_me_back_replacement:k,call_me_back_generic:S,include_avs:A,include_c
1dv:I,exclude_confirm_details_page:O}=t.contentstackEasiplusFuneralPlanApplication,{activePageIndex:T,scrollToId:L,requestId:x}=(0,n.d4)((0,r.j8)({activePageIndex:b.IC,scrollToId:p,requestId:v.R}));return(0,l.useEffect)(()=>{g((0,h.XT)(k[0].call_me_back_product)),g((0,h.u6)(S[0].call_me_back_product))},[k,S,g]),(0,l.useEffect)(()=>{c.Nb.map(e=>e.URL).indexOf(u.pathname)!==T?T===c.kX?(0,i.navigate)(c.S9):((0,i.navigate)(c.Nb[T].URL),g((0,E.Um)(T))):d(!0)},[T,u.pathname,g]),(0,s.u)(x),a?l.createElement(f.A,null,l.createElement(y.SN9,{onScrollEnd:()=>{g((0,m.B0)())},scrollToId:L},l.createElement("div",{slot:"header"},l.createElement(D,{mobileHeaderTexture:_})),l.createElement("div",{slot:"content-no-sidebar"},l.createElement(o.Router,null,l.createElement(pe,{path:c.Z2.REPLACEMENT_POLICY,excludeConfirmDetailsPage:O}),l.createElement(ue,{path:c.Z2.PERSONAL_DETAILS}),l.createElement(re,{path:c.Z2.LIVES_COVERED}),l.createElement(j,{path:c.Z2.BENEFICIARIES}),l.createElement(q,{path:c.Z2.BENEFICIARIES_SPLIT}),l.createElement(me,{path:c.Z2.PAYMENT_DETAILS,includeAvs:A,includeCdv:I}),l.createElement(K,{path:c.Z2.CONFIRMATION}),l.createElement(ye,{path:c.Z2.THANK_YOU,thankYouEntry:N,threeColumnLayout:C,fourColumnLayout:M,callMeBack:S}))),l.createElement("div",{slot:"side-drawer"},l.createElement(ge,null),l.createElement(_e,null)),l.createElement("div",{slot:"footer"},l.createElement(w,null)))):l.createElement(l.Fragment,null)}}}]); 2//# sourceMappingURL=component---src-templates-efp-application-page-js-f22e8a172511d34601ee.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.