1"use strict";(self.webpackChunkusgi=self.webpackChunkusgi||[]).push([[5159],{94235:(et,pe,m)=>{m.d(pe,{M:()=>e});var b=m(54438),S=m(50779);let e=(()=>{class Y{constructor(t){this.modalService=t}ngOnInit(){}closePopup(){this.modalService.hide()}static{this.\u0275fac=function(_){return new(_||Y)(b.rXU(S.I8))}}static{this.\u0275cmp=b.VBU({type:Y,selectors:[["app-journey-add-appointee-popup"]],decls:14,vars:0,consts:[[1,"popup-wrapper","sublimit-popup","text-center","py-3","py-lg-4","px-lg-3"],[1,"popup-header","position-relative"],["href","javascript:void(0)","aria-label","Close",1,"close",3,"click"],["src","./assets/images/icons/close-btn.svg","alt","close-btn"],[1,"popup-body","px-lg-5","px-3","px-lg-0"],[1,"sublimit-icon","text-center","mb-2","mb-lg-3"],["src","./assets/images/usgi-icons/add-user-100-icon.svg","alt","",1,"mx-auto"],[1,"montserrat-bold","text-bold","text-dark","mb-3","mb-lg-4","text-center"],[1,"h6","text-black","montserrat-bold","text-bold"],[1,"text-center","mt-4","mt-lg-5"],[1,"btn","btn-danger",3,"click"]],template:function(_,B){1&_&&(b.j41(0,"div",0)(1,"div",1)(2,"a",2),b.bIt("click",function(){return B.closePopup()}),b.nrm(3,"img",3),b.k0s()(),b.j41(4,"div",4)(5,"figure",5),b.nrm(6,"img",6),b.k0s(),b.j41(7,"h5",7),b.EFF(8,"Add Appointee"),b.k0s(),b.j41(9,"p",8),b.EFF(10,"Because your nominee is minor i.e less than 18 year old Therefore please provide Appointee details"),b.k0s(),b.j41(11,"div",9)(12,"button",10),b.bIt("click",function(){return B.closePopup()}),b.EFF(13,"Okay, Got it"),b.k0s()()()())}})}}return Y})()},41339:(et,pe,m)=>{m.r(pe),m.d(pe,{MotorChoosePlansModule:()=>se});var b=m(60177),S=m(89417),e=m(5992),Y=m(5452),q=m(46359),t=m(54438),_=m(18359),B=m(5964),he=m(94982),Ie=m(62155),Ee=m(50779),o=m(91484),Te=m(54005),ge=m(71780),Re=m(32374),je=m(62233),Ye=m(67747),tt=m(59233),Pe=m(60040),Z=m(534);const mt=g=>({rotate:g});function qe(g,x){1&g&&t.nrm(0,"img",27)}function ut(g,x){1&g&&t.nrm(0,"img",28)}function ot(g,x){if(1&g&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&g){const a=t.XpG();t.R7$(),t.SpI("CC- ",a.cubicCapacity?a.cubicCapacity:"NA","")}}function Je(g,x){if(1&g){const a=t.RV6();t.j41(0,"a",30),t.bIt("click",function(){t.eBV(a);const d=t.XpG(4);return t.Njj(d.openEditClaimPopup())}),t.nrm(1,"img",31),t.EFF(2,"Edit "),t.k0s()}}function n(g,x){if(1&g&&(t.j41(0,"div"),t.DNE(1,Je,3,0,"a",29),t.k0s()),2&g){const a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.is_edit&&"Yes"==a.ncbDetails.previousPolicyPresent)}}function pt(g,x){if(1&g&&(t.j41(0,"div"),t.DNE(1,n,2,1,"div",15),t.k0s()),2&g){const a=t.XpG(2);t.R7$(),t.Y8G("ngIf","Liability"!=a.ncbDetails.previousPolicyType)}}function ht(g,x){if(1&g&&(t.j41(0,"div"),t.DNE(1,pt,2,1,"div",15),t.k0s()),2&g){const a=t.XpG();t.R7$(),t.Y8G("ngIf",!a.ncb90days)}}let gt=(()=>{class g{constructor(a,c,d,P,T){this.modalService=a,this.motorJourneyVehicleDetailsRepository=c,this.motorJourneyProductPlanRepository=d,this.motorJourneyRepository=P,this.location=T,this.isCollapsed=!1,this.is_edit=!0,this.subscriptions=new _.yU,this.ncb90days=!1,this.isCollapsed=window.innerWidth<767}PresentDate(){var a=new Date;const c=a.getFullYear();var d=a.getMonth()+1,P=a.getDate();return P<10&&(P="0"+P),d<10&&(d="0"+d),d+"/"+P+"/"+c}ngOnInit(){this.initStoreData(),this.initNcbDetails(),this.initActiveVehicleDetails()}ngOnDestroy(){this.subscriptions.unsubscribe()}initStoreData(){this.subscriptions.add(this.motorJourneyRepository.quotationDialog$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.journeyName=a.journeyName,this.vehicleNumber=a?.vehicleNumber,"new"==a?.vehicleSelection&&(this.is_edit=!1)})),this.subscriptions.add(this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(a=>{this.cubicCapacity=a.cubicCapacity,this.fuelType=a.selectFuelType})),this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.productData=a})}diffDaysCalu(a){const c=a,[d,P,T]=c.split("/"),R=`${P}/${d}/${T}`,X=this.PresentDate(),oe=new Date(R);let ee=new Date(X).getTime()-oe.getTime();return Math.ceil(ee/864e5)}initNcbDetails(){this.subscriptions.add(this.motorJourneyRepository.previousPolicyDialog$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.ncbDetails=a,("Liability"===this.ncbDetails.previousPolicyType||"No"===this.ncbDetails.previousPolicyPresent)&&(this.ncbDetails.previousPolicyyNoClaimBonus="");let c=a.previousPolicyEndDate?this.diffDaysCalu(a.previousPolicyEndDate):0;0<c&&c>90&&(this.ncbDetails.previousPolicyClaim="",this.ncbDetails.previousPolicyyNoClaimBonus="",this.ncbDetails.futurePolicyNoClaimBonus="",this.ncb90days=!0)}))}initActiveVehicleDetails(){this.subscriptions.add(this.motorJourneyVehicleDetailsRepository.motorJourneyVehicleDetails$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.aadrila=a,this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(c=>{this.vehicleDetails=c,(!c||!c.rto)&&this.register()}).unsubscribe()}))}register(){this.motorJourneyRepository.saveVehicleDetailsDialog({selectedVehicleBrand:this.aadrila?.pass_id_data?this.aadrila.pass_id_data[0]?.rc_make:"",selectedVehicleVariant:this.aadrila?.pass_id_data?this.aadrila.pass_id_data[0].rc_model:"",stateOfPurchase:this.aadrila.rc_registered_at,rto:this.aadrila.state_code+this.aadrila.rto_code,selectFuelType:this.aadrila?.pass_id_data?this.aadrila.pass_id_data[0].rc_fuel_desc:"",selectedVehicleYearOfPurchase:this.aadrila.rc_regn_dt,brandId:this.aadrila?.pass_id_data?this.aadrila.pass_id_data[0].make_id:"",variantId:this.aadrila?.pass_id_data?this.aadrila.pass_id_data[0].model_id:"",rtoId:this.aadrila.state_code+this.aadrila.rto_code,cubicCapacity:this.aadrila?this.aadrila.rc_cubic_cap:"",seatingCapacity:this.aadrila?this.aadrila.rc_seat_cap:"",vehicleModelStatus:this.aadrila?this.aadrila.rc_status:"",carryingCapacity:this.aadrila?this.aadrila.rc_seat_cap:"",grossVehicleWeight:this.aadrila?this.aadrila.rc_unld_wt:""})}backBtnClickHandler(a){a.preventDefault(),a.stopImmediatePropagation(),this.location.back()}openErrorPopup(a){this.bsmodelRef=this.modalService.show(he.u,Object.assign({error:a,class:"thankyou-popup modal
1-xl",initialState:{error:a},backdrop:"static"}))}openLoginProcessPopup(){this.modalService.show(tt.K,Object.assign({class:"edit-claim-popup modal-lg",backdrop:"static",initialState:{aadrila:this.aadrila}}))}openEditClaimPopup(){this.modalService.show(Ye.m,Object.assign({ncbDetails:this.ncbDetails,class:"edit-claim-popup modal-lg",backdrop:"static",initialState:{ncbDetails:this.ncbDetails}}))}divCollapsed(){this.isCollapsed=!this.isCollapsed}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(Ee.I8),t.rXU(Pe.Mq),t.rXU(o.CH),t.rXU(ge.ml),t.rXU(b.aZ))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-your-vehicle-details"]],decls:51,vars:17,consts:[[1,"vehicle-details-wrapper","p-lg-3","mb-3","mb-sm-4","mb-lg-5"],[1,"row","m-0","position-relative"],[1,"col-12","col-lg-8","vehicle-details-left","p-3","p-lg-0"],[1,"row","m-0"],[1,"col-12","col-lg-2","sub-details-left","align-items-center","p-0","d-flex"],["src","./assets/images/icons/back-arrow.svg","alt","back-arrow",1,"img-fluid","d-none","d-lg-block","cursor",3,"click"],["src","./assets/images/two-wheeler-img.png","class","img-fluid car-img","alt","two-wheeler-img",4,"ngIf"],["src","./assets/images/car-image.png","class","img-fluid car-img","alt","four-wheeler-img",4,"ngIf"],[1,"col-12","col-lg-10","sub-details-right","py-0","px-0","text-right","pr-lg-3"],[1,"sub-details-blk","d-flex","flex-column","flex-lg-row","justify-content-between","text-left","mt-3","pl-0","pl-lg-5"],[1,"sub-details-blk1","mb-3","mb-lg-0"],[1,"fs-14","montserrat-medium","text-medium","text-primary","mb-1","mb-lg-2"],[1,"fs-12","montserrat-bold","text-bold","text-black","word-breack"],[1,"sub-details-blk2","mb-3","mb-lg-0"],[1,"fs-12","montserrat-bold","text-bold","text-black","pt-1"],[4,"ngIf"],[1,"sub-details-blk3"],[1,"fs-12","montserrat-bold","text-bold","text-black","pt-1","text-left"],["aria-controls","collapseBasic3",1,"down-arrow-blk","d-lg-none","cursor",3,"click","ngClass"],["src","./assets/images/icons/down-arrow-orange.svg"],["id","collapseBasic3",1,"col-12","col-lg-4","vehicle-details-right","py-3","py-lg-0","px-3","pl-xl-4","pr-lg-0",3,"collapse","isAnimated"],[1,"d-flex","align-items-center","justify-content-between","mb-4","mb-xl-3"],[1,"fs-14","montserrat-bold","text-bold","text-black"],["href","javascript:void(0)","tooltip","No Claim Bonus or NCB is\xa0a reward given by an insurance company to an insured for not raising any claim requests during a policy year.\xa0The NCB is a discount ranging between 20%-50% and is given to the insured while renewing a policy on the premium amount.","containerClass","custom-tooltip",1,"cursor","d-inline-block","vertical-align-bottom"],["src","./assets/images/icons/info-icon.svg","alt","info-icon",1,"pl-2"],["id","claimBouns",1,"d-flex","justify-content-between","pt-1","w-75","collapse"],[1,"fs-14","montserrat-medium","text-medium","text-primary","mb-3"],["src","./assets/images/two-wheeler-img.png","alt","two-wheeler-img",1,"img-fluid","car-img"],["src","./assets/images/car-image.png","alt","four-wheeler-img",1,"img-fluid","car-img"],["href","javascript:void(0)","class","fs-12 montserrat-bold text-bold",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"fs-12","montserrat-bold","text-bold",3,"click"],["src","./assets/images/icons/edit-pen-icon.svg","alt","edit-pen-icon",1,"d-inline-block","vertical-align-bottom"]],template:function(c,d){1&c&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"img",5),t.bIt("click",function(T){return d.backBtnClickHandler(T)}),t.k0s(),t.DNE(6,qe,1,0,"img",6)(7,ut,1,0,"img",7),t.k0s(),t.j41(8,"div",8)(9,"div",9)(10,"div",10)(11,"p",11),t.EFF(12,"Your Vehicle Details "),t.k0s(),t.j41(13,"p",12),t.EFF(14),t.k0s()(),t.j41(15,"div",13)(16,"p",11),t.EFF(17," Registration Number RTO "),t.k0s(),t.j41(18,"p",14),t.EFF(19),t.nrm(20,"br"),t.EFF(21),t.nrm(22,"br"),t.DNE(23,ot,2,1,"span",15),t.k0s()(),t.j41(24,"div",16)(25,"p",11),t.EFF(26," State & Date of Purchase "),t.k0s(),t.j41(27,"p",17),t.EFF(28),t.nrm(29,"br"),t.EFF(30),t.k0s()()()()(),t.j41(31,"figure",18),t.bIt("click",function(){return d.isCollapsed=!d.isCollapsed}),t.nrm(32,"img",19),t.k0s()(),t.j41(33,"div",20)(34,"div",21)(35,"p",22),t.EFF(36,"No Claim Bonus "),t.j41(37,"span",23),t.nrm(38,"img",24),t.k0s()(),t.DNE(39,ht,2,1,"div",15),t.k0s(),t.j41(40,"div",25)(41,"div")(42,"p",26),t.EFF(43,"Claim"),t.k0s(),t.j41(44,"p",14),t.EFF(45),t.k0s()(),t.j41(46,"div")(47,"p",26),t.EFF(48,"Previous NCB"),t.k0s(),t.j41(49,"p",14),t.EFF(50),t.k0s()()()()()()),2&c&&(t.R7$(6),t.Y8G("ngIf","MotorTwoWheeler"==d.journeyName||null==d.journeyName),t.R7$(),t.Y8G("ngIf","MotorPrivateCar"==d.journeyName),t.R7$(7),t.SpI(" ",d.aadrila.rc_maker_model?d.aadrila.rc_maker_model:"--"," "),t.R7$(5),t.SpI(" ",d.vehicleNumber?d.vehicleNumber:"--"," "),t.R7$(2),t.SpI(" ",d.aadrila.rc_rto_code?d.aadrila.rc_rto_code:"--"," "),t.R7$(2),t.Y8G("ngIf",!d.fuelType.includes("ELECTRICAL")),t.R7$(5),t.SpI(" ",d.aadrila.rc_registered_at?d.aadrila.rc_registered_at:"--"," "),t.R7$(2),t.SpI(" ",d.aadrila.rc_regn_dt?d.aadrila.rc_regn_dt:"--"," "),t.R7$(),t.Y8G("ngClass",t.eq3(15,mt,d.isCollapsed)),t.BMQ("aria-expanded",!d.isCollapsed),t.R7$(2),t.Y8G("collapse",d.isCollapsed)("isAnimated",!0),t.R7$(6),t.Y8G("ngIf","No"===d.ncbDetails.previousPolicyPresent||"No"===d.ncbDetails.previousPolicyClaim),t.R7$(6),t.SpI(" ",d.ncbDetails.previousPolicyClaim?d.ncbDetails.previousPolicyClaim:"--"," "),t.R7$(5),t.SpI(" ",d.ncbDetails.previousPolicyyNoClaimBonus?d.ncbDetails.previousPolicyyNoClaimBonus:"--"," "))},dependencies:[b.YU,b.bT,Z.dg,e.D],styles:[".word-breack[_ngcontent-%COMP%]{word-break:break-all}.vertical-align-bottom[_ngcontent-%COMP%]{vertical-align:bottom}.vehicle-details-wrapper[_ngcontent-%COMP%]{background:#fff;border:.1px solid #C4C4C4;box-sizing:border-box;box-shadow:0 2px 32px #a7a7a740;position:relative}.vehicle-details-wrapper[_ngcontent-%COMP%] .down-arrow-blk[_ngcontent-%COMP%]{width:24px;height:24px;position:absolute;bottom:-12px;left:0;right:0;margin:0 auto;background:#fff;box-shadow:0 4px 4px #00000040;border-radius:24px}.vehicle-details-wrapper[_ngcontent-%COMP%] .down-arrow-blk[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:1s;transform:rotate(180deg)}.vehicle-details-wrapper[_ngcontent-%COMP%] .down-arrow-blk.rotate[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:rotate(0)}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%] .col-md-3[_ngcontent-%COMP%]{flex:0 0 24%;max-width:24%}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%]{border-right:1px solid #D8D8D8}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk1[_ngcontent-%COMP%], .vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk2[_ngcontent-%COMP%], .vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk3[_ngcontent-%COMP%]{width:30%} .not-your-vehicle .car-register-content{margin-bottom:32px}@media (max-width: 1200px) and (min-width: 992px){.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px}.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-14[_ngcontent-%COMP%]{font-size:12px!important}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk3[_ngcontent-%COMP%]{width:32%}}@media (max-width: 991px) and (min-width: 769px){.vehicle-details-wrapper[_ngcontent-%COMP%]{padding:0}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%]{border-right:none;border-bottom:1px solid #D8D8D8}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%]{margin-top:-13px!important}.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px}.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-14[_ngcontent-%COMP%]{font-size:12px!important}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-left[_ngcontent-%COMP%]{justify-content:end;position:static}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%] .col-md-3[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}.vehicle-details-left[_ngcontent-%COMP%] .car-img[_ngcontent-%COMP%]{width:100px;position:absolute;top:45px}.vehicle-details-left[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk1[_ngcontent-%COMP%], .vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk2[_ngcontent-%COMP%]{width:60%}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk3[_ngcontent-%COMP%]{width:100%}.vehicle-details-wrapper[_ngcontent-%COMP%] .down-arrow-blk[_ngcontent-%COMP%]{bottom:-10px}.vehicle-details-right[_ngcontent-%COMP%] .w-75[_ngcontent-%COMP%]{width:100%!important}}@media (max-width: 768px) and (min-width: 576px){.vehicle-details-wrapper[_ngcontent-%COMP%]{padding:0}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%]{border-right:none;border-bottom:1px solid #D8D8D8}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%]{margin-top:-13px!important}.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px}.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-14[_ngcontent-%COMP%]{font-size:12px!important}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-left[_ngcontent-%COMP%]{justify-content:end;position:static}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%] .col-md-3[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}.vehicle-details-left[_ngcontent-%COMP%] .car-img[_ngcontent-%COMP%]{width:100px;position:absolute;top:45px}.vehicle-details-left[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk1[_ngcontent-%COMP%], .vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk2[_ngcontent-%COMP%]{width:60%}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk3[_ngcontent-%COMP%]{width:100%}.vehicle-details-wrapper[_ngcontent-%COMP%] .down-arrow-blk[_ngcontent-%COMP%]{bottom:-10px}.vehicle-details-right[_ngcontent-%COMP%] .w-75[_ngcontent-%COMP%]{width:100%!important}}@media (max-width: 575px) and (min-width: 320px){.vehicle-details-wrapper[_ngcontent-%COMP%]{padding:0}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%]{border-right:none;border-bottom:1px solid #D8D8D8}.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px}.sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%] p.fs-14[_ngcontent-%COMP%]{font-size:12px!important}.vehicle-details-left[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{flex-direction:column-reverse!important}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-left[_ngcontent-%COMP%]{justify-content:end;position:static}.vehicle-details-wrapper[_ngcontent-%COMP%] .vehicle-details-left[_ngcontent-%COMP%] .col-md-3[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}.vehicle-details-left[_ngcontent-%COMP%] .car-img[_ngcontent-%COMP%]{width:100px;position:absolute;top:45px}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk[_ngcontent-%COMP%]{margin-top:-13px!important}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk1[_ngcontent-%COMP%], .vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk2[_ngcontent-%COMP%]{width:60%}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk3[_ngcontent-%COMP%]{width:100%}.vehicle-details-wrapper[_ngcontent-%COMP%] .down-arrow-blk[_ngcontent-%COMP%]{bottom:-10px}.vehicle-details-right[_ngcontent-%COMP%] .w-75[_ngcontent-%COMP%]{width:100%!important}}"]})}}return g})();var ft=m(10467),nt=m(10444),Ue=m(96697),vt=m(96354),yt=m(79344),Ct=m(75374),Ve=m(98518),ve=m(97586),ze=m(18703),He=m(41198),Xe=m(63620),Ke=m(81779);const it=g=>({active:g});function j(g,x){if(1&g){const a=t.RV6();t.j41(0,"div")(1,"div",17)(2,"label",18),t.EFF(3),t.j41(4,"input",19),t.bIt("click",function(){t.eBV(a);const d=t.XpG(2).$implicit,P=t.XpG(2);return t.Njj(P.onPolicyPlanDurationClicked(d))}),t.k0s(),t.nrm(5,"span",20),t.k0s()(),t.j41(6,"p",21),t.EFF(7),t.k0s(),t.j41(8,"p",22),t.EFF(9),t.nI1(10,"customIndianCurrency"),t.k0s()()}if(2&g){const a=t.XpG().$implicit,c=t.XpG().$implicit;t.R7$(2),t.FS9("for",a.id),t.R7$(),t.SpI("",a.year," "),t.R7$(),t.FS9("id",a.id),t.FS9("formControlName",a.formControlName),t.FS9("value",a.value),t.Y8G("checked",a.checked),t.R7$(3),t.SpI(" ",a.desc," "),t.R7$(2),t.SpI(" ",t.bMT(10,8,c.planPrice)," p.a. ")}}function Be(g,x){if(1&g&&(t.j41(0,"div",15),t.DNE(1,j,11,10,"div",16),t.k0s()),2&g){const a=x.$implicit;t.R7$(),t.Y8G("ngIf",a.year)}}function ue(g,x){if(1&g&&(t.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"p",11),t.EFF(4),t.k0s(),t.j41(5,"p",12),t.EFF(6),t.k0s()(),t.j41(7,"div",13),t.DNE(8,Be,2,1,"div",14),t.k0s()()()),2&g){const a=x.$implicit,c=t.XpG(2);t.Y8G("ngClass",t.eq3(4,it,(null==c.selectedCardData?null:c.selectedCardData.ProductCode)===a.ProductCode)),t.R7$(4),t.JRh(a.planTitle),t.R7$(2),t.SpI("",a.planDesc," "),t.R7$(2),t.Y8G("ngForOf",a.yearPlanWise)}}function rt(g,x){if(1&g&&(t.j41(0,"form",5)(1,"ngx-slick-carousel",6,0),t.DNE(3,ue,9,6,"div",7),t.k0s()()),2&g){const a=t.XpG();t.Y8G("formGroup",a.policyPlanForm),t.R7$(),t.Y8G("config",a.plansSlideConfig),t.R7$(2),t.Y8G("ngForOf",a.cardData)}}let at=(()=>{class g{constructor(a,c,d,P,T,R,X){this.fb=a,this.modalService=c,this.motorJourneyProductPlanRepository=d,this.motorJourneyRepository=P,this.journeyRestService=T,this.journeyHomeService=R,this.motorJourneyVehilceDetails=X,this.cardData=[],this.pageData=[],this.binding="",this.subscriptions=new _.yU,this.subscriptionsChg=new _.yU,this.selectedActiveId="",this.addonDetail
1s=[{value:"Nil Depreciation Waiver cover"},{value:"DAILY CASH ALLOWANCE - NONMETRO"},{value:"DAILY CASH ALLOWANCE - METRO"},{value:"KEY REPLACEMENT"},{value:"RETURN TO INVOICE"},{value:"HYDROSTATIC LOCK COVER"},{value:"Tyre and Rim secure"},{value:"ENGINE PROTECTOR - PETROL"},{value:"ENGINE PROTECTOR - DIESEL"},{value:"SECURE TOWING"},{value:"COST OF CONSUMABLES"},{value:"ACCIDENTAL HOSPITALIZATION"}],this.coverAddonDetails=[{name:"NAMED PA COVER TO PASSENGERS"},{name:"PA COVER TO PAID DRIVER"},{name:"Other TP"},{name:"FIBERTANK OD"},{name:"Other OD"},{name:"UNNAMED PA COVER TO PASSENGERS"},{name:"PA COVER TO OWNER DRIVER"},{name:"LEGAL LIABILITY TO PAID DRIVER"},{name:"ELECTRICAL ACCESSORY OD"},{name:"NON ELECTRICAL ACCESSORY OD"},{name:"CNG Kit - TP"},{name:"LPG Kit - TP"},{name:"LPG Kit - OD"},{name:"CNG Kit - OD"},{name:"GEOGRAPHICAL EXTENSION - OD"},{name:"GEOGRAPHICAL EXTENSION - TP"}],this.discountDetails=[{name:"Antitheft device discount"},{name:"Automobile Association discount"},{name:"Handicap Discount"},{name:"Voluntary deductable"},{name:"TPPD Discount"}],this.plansSlideConfig={infinite:!1,autoplay:!1,autoplaySpeed:3e3,slidesToShow:3,slidesToScroll:3,dots:!0,arrows:!0,responsive:[{breakpoint:9999,settings:"unslick"},{breakpoint:780,settings:{slidesToShow:2.2,slidesToScroll:1,infinite:!1,arrows:!1,autoplay:!1}},{breakpoint:600,settings:{slidesToShow:1.2,slidesToScroll:1,arrows:!1,infinite:!1,autoplay:!1}}]};let oe=new Date;oe.setDate(oe.getDate()),this.policyStartDate=ve(oe).format("DD/MM/YYYY")}ngOnInit(){this.journeyHomeService.showCard.subscribe(a=>this.showCard=a),this.createForm(),this.initCoverDiscount(),this.subscriptions.add(this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(a=>{let c=this.cardData.map(d=>d.ProductCode);o.$i.update((0,Ve.js)()),o.$i.update((0,Ve.f3)(c)),this.subscriptionsChg.unsubscribe(),this.subscriptionsChg=new _.yU,this.journeyName="",this.obsoluteVehicle=a,this.initJourneyName()})),this.inSelectedActiveProductPlan(),this.initToSelectAllProductPlansSubsription()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.subscriptionsChg.unsubscribe()}createForm(){this.policyPlanForm=this.fb.group({comprehensivePlan:["oneYearCP",S.k0.required]})}initJourneyName(){var a=this;const c=this.policyStartDate;let d;this.motorJourneyRepository.previousPolicyDialog$.subscribe(P=>{d=P,this.previousPolicyPresent=P?.previousPolicyPresent}).unsubscribe(),this.subscriptionsChg.add(this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(P=>{this.companyName=P?.selectedVehicleBrand})),this.motorJourneyRepository.personalAccidentCover$.subscribe(P=>{this.personalAccidentCover=P}),this.subscriptionsChg.add(this.motorJourneyRepository.quotationDialog$.pipe((0,B.p)(P=>!!P)).subscribe(P=>{let T=0;if(this.journeyName==P.journeyName)return;this.journeyName=P.journeyName,this.openPopWhenVCOld=P.vehicleSelection,this.cardData="MotorPrivateCar"===this.journeyName?yt.q:Ct.y;let R=this.motorJourneyVehilceDetails.getMotorJourneyVehicalDetailsValue(),X=[],oe=this.dateConvertToMMDDYYYY(R?.rc_regn_dt),Qe=ve(new Date).format("YYYYMMDD"),ee=this.getAge(new Date(oe)),Ae=P.vehicleSelection,ho=sessionStorage.getItem("policy_startDate")||(d?.previousPolicyStartDate?this.dateConvertToYYYYMMDD(d?.previousPolicyStartDate):""),Yt=sessionStorage.getItem("policy_endDate")||(d?.previousPolicyEndDate?this.dateConvertToYYYYMMDD(d?.previousPolicyEndDate):""),ct=sessionStorage.getItem("policy_effective_to")||(d?.policyEffectiveTo?this.dateConvertToYYYYMMDD(d?.policyEffectiveTo):""),fe=(sessionStorage.getItem("policy_effective_from")||d?.policyEffectiveFrom&&this.dateConvertToYYYYMMDD(d?.policyEffectiveFrom),ve(ho).format("YYYY")),Co=ve(oe).format("YYYY");this.cardData.forEach(function(){var le=(0,ft.A)(function*(ne){if("Comprehensive Plan"==ne.planTitle&&(a.comprehensivePlanName="Comprehensive Plan"),"Own Damage Plan"==ne.planTitle&&(P?.vehicleNumber||"old"==Ae)&&Yt!==ct&&Yt<ct)ee<("MotorPrivateCar"===a.journeyName?3:5)&&"liability"!=d?.previousPolicyType?.toLowerCase()&&X.push(ne);else if("Yes"==a.previousPolicyPresent&&ee>=("MotorPrivateCar"===a.journeyName?3:5)){if(Qe&&"Own Damage Plan"==ne.planTitle)return;X.push(ne)}else if("Comprehensive Plan"!=ne.planTitle||!P?.vehicleNumber&&"old"!=Ae)"Own Damage Plan"==ne.planTitle&&"No"==a.previousPolicyPresent&&ee<=("MotorPrivateCar"===a.journeyName?3:5)||"Third Party Plan"==ne.planTitle&&"No"==a.previousPolicyPresent&&ee>=("MotorPrivateCar"===a.journeyName?3:5)||"Comprehensive Plan"==ne.planTitle&&"No"==a.previousPolicyPresent&&ee>=("MotorPrivateCar"===a.journeyName?3:5)?X.push(ne):"Comprehensive Plan"==ne.planTitle&&"new"==Ae&&(ne.ProductCode="MotorPrivateCar"===a.journeyName?2367:2369,ne.ProductName=2367==ne.ProductCode?"MOTOR - MOTOR PRIVATE CAR - BUNDLED":"MOTOR - MOTOR TWO WHEELER - BUNDLED",X.push(ne));else if(Co!==fe&&Yt<ct)X.push(ne);else{if(Yt<ct)return;X.push(ne)}});return function(ne){return le.apply(this,arguments)}}()),this.cardData=X;var go=sessionStorage.getItem("selectedPlanID")||"";this.activePlan=o.$i.query(Ve.UP)||"";let mo=o.$i.query((0,Ve.Dq)())||"";typeof mo.id<"u"?(this.selectedActiveId=mo.id,++T):go?this.selectedActiveId=go:0==T&&""==this.selectedActiveId&&(this.selectedActiveId=X[0]?.ProductCode),X.forEac
1h(le=>{let ne=o.$i.query(Ve.UP)||"";le.yearPlanWise[0].selected=!1,le.planDefault=!1,(le.ProductCode===parseInt(this.selectedActiveId)||1==X.length)&&(le.yearPlanWise[0].selected=!0,le.planDefault=!0,this.motorJourneyProductPlanRepository.setActiveProductPlan(le?.ProductCode)),(le.planDefault&&!ne||!le.planDefault&&1==X.length&&!ne||ne&&ne==le?.ProductCode)&&(this.selectedCardData=le,this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Ue.s)(1)).subscribe(()=>{setTimeout(()=>{$('input[name="comprehensivePlan"]').prop("checked",!1),$("#"+le.yearPlanWise[0].id).prop("checked",le.yearPlanWise[0]?.selected),setTimeout(()=>{$('input[name="comprehensivePlan"]').prop("checked",!1),$("#"+le.yearPlanWise[0].id).prop("checked",le.yearPlanWise[0]?.selected)},1500)},500)}));let Rt,uo=!1,jt=!0;this.subscriptionsChg.add(this.motorJourneyRepository.motorJourney$.pipe((0,vt.T)(({costSummaryData:We,selectedAddonsAndCoverage:Fe,selectedAdditionalCoverAndDiscount:fo,selectedDiscounts:vo,personalAccidentCover:po,vehicleExShowroomPrices:h,postDataQuoteId:A,...r})=>r)).subscribe(We=>{if(Rt&&We&&JSON.stringify(Rt)!=JSON.stringify(We)||!Rt&&We){if(Rt=We,this.activePlan&&mo&&!uo)return void(uo=!0);if(uo=!0,!jt)return void(jt=!0);jt&&0==We.choosePlanData.selectedIDVValue&&(jt=!1);let Fe=[];try{ee=ve().diff(this.dateConvertToMMDDYYYY(We?.vehicleDetailsDialog.selectedVehicleYearOfPurchase),"years",!0),ee=parseFloat(ee.toFixed(2))}catch{}this.addonDetails.forEach(l=>{let i=this.companyName.toUpperCase().includes("MARUTI"),v=this.companyName.toUpperCase().includes("HONDA"),I=this.companyName.toUpperCase().includes("TATA");"ENGINE PROTECTOR - PETROL"===l.value||"ENGINE PROTECTOR - DIESEL"===l.value?"Electrical"!=this.obsoluteVehicle?.selectFuelType&&(ee<=5&&(i||v)||ee<=7&&(I||!i&&!v&&!I))&&Fe.push(l):"RETURN TO INVOICE"===l.value?ee<=3&&Fe.push(l):"KEY REPLACEMENT"===l.value?(ee<=5&&(i||v||!i&&!v&&!I)||ee<=7&&I)&&Fe.push(l):"COST OF CONSUMABLES"===l.value?(ee<=7&&i||ee<=7&&!v&&"MotorPrivateCar"===this.journeyName||ee<=5&&"MotorTwoWheeler"===this.journeyName)&&Fe.push(l):"SECURE TOWING"===l.value?ee<=5&&!i&&!v&&Fe.push(l):"Nil Depreciation Waiver cover"===l.value?(ee<=7&&i||ee<=7&&!i)&&Fe.push(l):"DAILY CASH ALLOWANCE - METRO"===l.value||"DAILY CASH ALLOWANCE - NONMETRO"===l.value||"Tyre and Rim secure"===l.value?ee<=5&&!i&&!I&&Fe.push(l):"ACCIDENTAL HOSPITALIZATION"===l.value?ee<=5&&!i&&!v&&!I&&Fe.push(l):"HYDROSTATIC LOCK COVER"===l.value||Fe.push(l)});let fo={...We,selectedAddonsAndCoverage:this.selectedAddon?this.selectedAddon:[],selectedAdditionalCoverAndDiscount:this.selectedCoverDiscounts?this.selectedCoverDiscounts:[],selectedDiscounts:this.selectedDiscounts?this.selectedDiscounts:[],personalAccidentCover:this.personalAccidentCover?this.personalAccidentCover:[]},vo={...We,selectedAddonsAndCoverage:Fe,selectedAdditionalCoverAndDiscount:this.coverAddonDetails,selectedDiscounts:this.discountDetails,personalAccidentCover:this.personalAccidentCover?this.personalAccidentCover:[]},po=new Date,h=ve(po,"DD-MM-YYYY").add(1,"days");h=ve(h).format("DD/MM/YYYY");let r,A=ve(po,"DD-MM-YYYY").add(1,"years");if(A=ve(A).format("DD/MM/YYYY"),"MOTOR - MOTOR PRIVATE CAR - BUNDLED"===le.ProductName){let l=new Date((new Date).setFullYear((new Date).getFullYear()+3));r=ve(l).subtract(1,"days").format("DD/MM/YYYY")}else if("MOTOR - MOTOR TWO WHEELER - BUNDLED"===le.ProductName){let l=new Date((new Date).setFullYear((new Date).getFullYear()+5));r=ve(l).subtract(1,"days").format("DD/MM/YYYY")}else{let l=new Date((new Date).setFullYear((new Date).getFullYear()+1));r=ve(l).subtract(1,"days").format("DD/MM/YYYY")}"Invalid date"==h&&(h=c),"Invalid date"==A&&(A=r),this.productCodeForZone=le.ProductCode,(0,nt.Bt)(()=>{this.journeyRestService.loadPolicyPlanDataBlaze({ProductCode:le.ProductCode,ProductName:le.ProductName,Fromdate:"old"==Ae?h:c,Todate:"old"==Ae?A:r,...fo},{ProductCode:le.ProductCode,ProductName:le.ProductName,Fromdate:"old"==Ae?h:c,Todate:"old"==Ae?A:r,...vo})})}}))}),this.getChange("Comprehensive Plan"==this.comprehensivePlanName&&"new"==Ae&&"MotorPrivateCar"===this.journeyName?"1 year OD + 3 year TP":"Comprehensive Plan"==this.comprehensivePlanName&&"new"==Ae&&"MotorTwoWheeler"===this.journeyName?"1 year OD + 5 year TP":"1 year")}))}dateAgeDifference(a,c){let d=new Date(this.dateConvertToMMDDYYYY(a)).getTime(),R=(new Date(this.dateConvertToMMDDYYYY(c)).getTime()-d).toString();return R=R.slice(0,-8),R=parseInt(R),Math.floor(R)}
1dateConvertToMMDDYYYY(a){const[c,d,P]=a?.split("/");return`${d}/${c}/${P}`}dateConvertToYYYYMMDD(a){const[c,d,P]=a?.split("/");return`${P}${d}${c}`}getAge(a,c=new Date){const d=new Date(a).getTime(),T=(new Date(c).getTime()-d)/31536e6;return Math.floor(T)}inSelectedActiveProductPlan(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.subscribe(a=>{if(a){const c=this.cardData.find(d=>d.ProductCode===a.id);c&&(c.yearPlanWise[0].selected=!0,setTimeout(()=>{$('input[name="comprehensivePlan"]').prop("checked",!1),$("#"+c.yearPlanWise[0].id).prop("checked",c.yearPlanWise[0].selected),this.selectedCardData=c},1800))}}))}initToSelectAllProductPlansSubsription(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectAllProductPlans$.subscribe(a=>{a.forEach(c=>{if(c){const d=this.cardData.find(P=>P.ProductCode===c.id);d&&(d.planPrice=`${c.finalPremium||"0.0"}`)}})}))}getChange(a){this.cardData.forEach(c=>{c.yearPlanWise.forEach(d=>{d.year===a?this.binding=d.year:d.year=a})})}onPolicyPlanDurationClicked(a){"old"==this.openPopWhenVCOld&&this.openLoginProcessPopup(),this.journeyHomeService.planChanged.next(!0),this.selectedCardData=a,this.motorJourneyProductPlanRepository.setActiveProductPlan(a.ProductCode),a.ProductCode&&(sessionStorage.setItem("selectedPlanID",a.ProductCode.toString()),this.motorJourneyRepository.saveSelectedOtherAddonData([]),this.motorJourneyRepository.saveSelectedAdditionalCoverAndDiscount([]))}initCoverDiscount(){this.subscriptions.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.selectedCoverDiscounts=a.coversDiscount,this.selectedAddon=a.addonCoverage,this.selectedDiscounts=a.discountPackage}))}openLoginProcessPopup(){this.modalService.show(tt.K,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static"}))}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(S.ze),t.rXU(Ee.I8),t.rXU(o.CH),t.rXU(ge.ml),t.rXU(ze.I),t.rXU(Te.L),t.rXU(Pe.Mq))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-policy-plan-duration"]],decls:5,vars:1,consts:[["slickModal","slick-carousel"],[1,"policy-plan-wrapper","mb-5","mb-sm-4","mb-xl-5","pr-0"],[1,"montserrat-bolder","text-bolder","text-primary"],[1,"policy-plan-content","position-reletive"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"carousel","d-flex",3,"config"],["ngxSlickItem","","class","card policy-plan-cards mr-3",3,"ngClass",4,"ngFor","ngForOf"],["ngxSlickItem","",1,"card","policy-plan-cards","mr-3",3,"ngClass"],[1,"card-body","py-3","px-0"],[1,"px-3"],[1,"fs-16","montserrat-bolder","text-bolder","text-black","mb-2"],[1,"fs-12","montserrat-regular","text-regular","text-primary","mb-3","mh-60"],[1,"row","mx-2","mt-4","justify-content-center"],["class","col-8 plan-year-blk mr-1",4,"ngFor","ngForOf"],[1,"col-8","plan-year-blk","mr-1"],[4,"ngIf"],[1,"radio-data","radio-data-sm","mb-1"],[1,"montserrat-medium","text-medium","text-dark","m-0","pl-4",3,"for"],["type","radio","name","comprehensivePlan",3,"click","id","formControlName","value","checked"],[1,"checkmark"],[1,"fs-8","montserrat-regular","text-remontserrat-regular","text-primary","mb-2","text-center","mh-18"],[1,"fs-12","montserrat-semibold","text-semibold","text-dark","text-center"]],template:function(c,d){1&c&&(t.j41(0,"div",1)(1,"h5",2),t.EFF(2,"Select Policy Plan & Duration"),t.k0s(),t.j41(3,"div",3),t.DNE(4,rt,4,3,"form",4),t.k0s()()),2&c&&(t.R7$(4),t.Y8G("ngIf",!0===d.showCard))},dependencies:[b.YU,b.Sq,b.bT,He.qW,He.Hv,Xe.ZP,S.qT,S.me,S.Fm,S.BC,S.cb,S.j4,S.JD,Ke.G],styles:[".policy-plan-wrapper[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin-bottom:38px}.policy-plan-cards[_ngcontent-%COMP%]{border:1px solid #D8D8D8;box-sizing:border-box;border-radius:20px;position:relative;width:285px;cursor:pointer}.policy-plan-cards[_ngcontent-%COMP%]:last-child{margin:0!important}.policy-plan-cards[_ngcontent-%COMP%]:hover, .policy-plan-cards.active[_ngcontent-%COMP%]{box-shadow:0 4px 40px #0000001a;border-color:#c02!important}.policy-plan-cards[_ngcontent-%COMP%] .plan-tag[_ngcontent-%COMP%]{border-radius:2px;font-size:8px;line-height:14px;position:absolute;top:-11px;right:20px}.policy-plan-cards[_ngcontent-%COMP%] .plan-tag.pink[_ngcontent-%COMP%]{background-color:#ffedd8;color:#c56b02}.policy-plan-cards[_ngcontent-%COMP%] .plan-tag.blue[_ngcontent-%COMP%]{background-color:#d8faff;color:#0296c5}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:14px 12px 24px}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .plan-year-blk[_ngcontent-%COMP%]{background:#fff;border:.5px solid #D8D8D8;box-sizing:border-box;border-radius:8px;padding:8px 6px}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .plan-year-blk[_ngcontent-%COMP%] .mh-18[_ngcontent-%COMP%]{min-height:18px}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] p.mh-60[_ngcontent-%COMP%]{min-height:75px;line-height:15px} .plan-year-blk .radio-data label{font-size:12px;font-family:montserrat-medium;font-weight:500;padding:0 0 0 20px;white-space:nowrap}.plan-year-blk[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{top:2px;height:15px;width:15px}.plan-year-blk[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{top:calc(50% - 5px);left:calc(50% - 5px);width:10px;height:10px}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .plan-year-blk.col-4[_ngcontent-%COMP%]{flex:0 0 32%;max-width:32%}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .plan-year-blk[_ngcontent-%COMP%]:last-child{margin:0!important}.policy-plan-cards[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;background-color:#c02;border-top:1px solid #cc0022;border-radius:0 0 20px 20px}@media (max-width: 1200px) and (min-width: 992px){.policy-plan-cards[_ngcontent-%COMP%]{margin-right:8px!important}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .plan-year-blk[_ngcontent-%COMP%]{padding:8px 2px}}@media (max-width: 1024px) and (min-width: 992px){.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] p.mh-60[_ngcontent-%COMP%]{min-height:80px}}@media (max-width: 991px) and (min-width: 769px){.policy-plan-wrapper[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px!important}.policy-plan-wrapper[_ngcontent-%COMP%] p.fs-18[_ngcontent-%COMP%], .policy-plan-wrapper[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px} .policy-plan-content .slick-track{padding-top:16px}}@media (max-width: 768px) and (min-width: 576px){.policy-plan-wrapper[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px;margin-bottom:16px}.policy-plan-wrapper[_ngcontent-%COMP%] p.fs-18[_ngcontent-%COMP%], .policy-plan-wrapper[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px} .policy-plan-content .slick-track{padding-top:16px}}@media (max-width: 575px) and (min-width: 320px){.policy-plan-wrapper[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px;margin-bottom:16px}.policy-plan-wrapper[_ngcontent-%COMP%] p.fs-18[_ngcontent-%COMP%], .policy-plan-wrapper[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px} .policy-plan-wrapper .policy-plan-content .carousel .slick-dots{bottom:-28px} .policy-plan-content .slick-track{padding-top:16px}}"]})}}return g})();var Ze=m(1807);const st=g=>({disableque:g});function bt(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",19)(1,"div",8)(2,"div",20)(3,"label",21),t.EFF(4,"Do you have valid driving license?"),t.k0s()(),t.j41(5,"div",22)(6,"label",23)(7,"input",24),t.bIt("change",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.liacence(!0,!0))}),t.k0s(),t.EFF(8," Yes "),t.nrm(9,"span",15),t.k0s(),t.j41(10,"label",25)(11,"input",26),t.bIt("change",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.liacence(!1,!0))}),t.k0s(),t.EFF(12," No "),t.nrm(13,"span",15),t.k0s()()(),t.j41(14,"div",27)(15,"div",20)(16,"label",21),t.EFF(17," Do you have an alternate PA Cover? "),t.k0s()(),t.j41(18,"div",22)(19,"label",23)(20,"input",28),t.bIt("change",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.liacence_(!1,!0))}),t.k0s(),t.EFF(21," Yes "),t.nrm(22,"span",15),t.k0s(),t.j41(23,"label",25)(24,"input",29),t.bIt("change",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.liacence_(!1,!0))}),t.k0s(),t.EFF(25," No "),t.nrm(26,"span",15),t.k0s()()(),t.j41(27,"div",27)(28,"div",20)(29,"label",21),t.EFF(30,"Do you have an alternate GPA cover?"),t.k0s()(),t.j41(31,"div",22)(32,"label",23)(33,"input",30),t.bIt("change",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.liacence_(!1,!0))}),t.k0s(),t.EFF(34," Yes "),t.nrm(35,"span",15),t.k0s(),t.j41(36,"label",25)(37,"input",31),t.bIt("change",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.liacence_(!1,!0))}),t.k0s(),t.EFF(38," No "),t.nrm(39,"span",15),t.k0s()()()()}if(2&g){const a=t.XpG(2);t.R7$(14),t.Y8G("ngClass",t.eq3(2,st,a.disabled)),t.R7$(13),t.Y8G("ngClass",t.eq3(4,st,a.disabled))}}function _t(g,x){if(1&g&&(t.j41(0,"div",1)(1,"div",2)(2,"h5",3),t.EFF(3,"Personal Accident
1Cover "),t.k0s(),t.j41(4,"p",4),t.EFF(5,"Owner driver"),t.k0s(),t.nrm(6,"div",5),t.j41(7,"p",6),t.EFF(8,"*Coverage includes compensation of \u20b9 15 Lakh to the family of the registered owner-driver in case of an accidental death."),t.k0s()(),t.j41(9,"form",7)(10,"div",8)(11,"div",9)(12,"label",10),t.EFF(13,"Select a Coverage Type?"),t.j41(14,"span",11),t.EFF(15,"*"),t.k0s()()(),t.j41(16,"div",12)(17,"label",13),t.EFF(18," Individual "),t.nrm(19,"input",14)(20,"span",15),t.k0s(),t.j41(21,"label",16),t.EFF(22," Corporate "),t.nrm(23,"input",17)(24,"span",15),t.k0s()()(),t.DNE(25,bt,40,6,"div",18),t.k0s()()),2&g){const a=t.XpG();t.R7$(9),t.Y8G("formGroup",a.personalAccidentCoverForm),t.R7$(16),t.Y8G("ngIf",a.fieldDisabled)}}let Dt=(()=>{class g{constructor(a,c,d){this.fb=a,this.motorJourneyRepository=c,this.motorJourneyProductPlanRepository=d,this.fieldDisabled=!0,this.disabled=!0,this.subscription=new _.yU}ngOnInit(){this.personalAccidentCoverForm=this.fb.group({coverageType:["Individual",S.k0.required],activeDrivingLicense:["Yes",S.k0.required],alternatePaCover:["No",S.k0.required],alternateGPACover:["No",S.k0.required]}),this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.productCardId=a.id.toString(),this.motorJourneyRepository.personalAccidentCover$.subscribe(c=>{"2398"==this.productCardId||"2397"==this.productCardId?(this.personalAccidentCoverForm.get("coverageType")?.setValue("Individual"),this.personalAccidentCoverForm.get("activeDrivingLicense")?.setValue("Yes"),this.personalAccidentCoverForm.get("alternatePaCover")?.setValue("Yes"),this.personalAccidentCoverForm.get("alternateGPACover")?.setValue("Yes"),this.liacence("Yes"===c?.isActiveDrivingLicensePresent,!1)):(this.personalAccidentCoverForm.get("coverageType")?.setValue(c?.selectedCoverageType),this.personalAccidentCoverForm.get("activeDrivingLicense")?.setValue(c?.isActiveDrivingLicensePresent),this.personalAccidentCoverForm.get("alternatePaCover")?.setValue(c?.isAlternatePAC
1overPresent),this.personalAccidentCoverForm.get("alternateGPACover")?.setValue(c?.isAlternateGPACoverPresent),this.liacence("Yes"===c?.isActiveDrivingLicensePresent,!1))})}),this.personalAccidentCoverForm.valueChanges.subscribe(a=>{this.initSelectedCoverType()}),this.personalAccidentCoverForm.get("coverageType")?.valueChanges.subscribe(a=>{this.fieldDisabled="Individual"==a})}ngOnDestroy(){this.subscription.unsubscribe()}paCoverStart(){this.paCoverTimer&&this.paCoverTimer.unsubscribe(),this.paCoverTimer=(0,Ze.O)(1500).subscribe(a=>{this.initSelectedCoverType()})}initSelectedCoverType(){(0,nt.Bt)(()=>{this.motorJourneyRepository.savePersonalAccidentCover({selectedCoverageType:this.personalAccidentCoverForm.get("coverageType")?.value,isActiveDrivingLicensePresent:this.personalAccidentCoverForm.get("activeDrivingLicense")?.value||"No",isAlternatePACoverPresent:this.personalAccidentCoverForm.get("alternatePaCover")?.value||"No",isAlternateGPACoverPresent:this.personalAccidentCoverForm.get("alternateGPACover")?.value||"No"})})}liacence(a,c){a?this.disabled=!1:(this.disabled=!0,this.personalAccidentCoverForm.get("alternatePaCover")?.setValue(""),this.personalAccidentCoverForm.get("alternateGPACover")?.setValue(""),setTimeout(()=>{$('input[name = "alternatePaCover"]').prop("checked",!1),$('input[name = "alternateGPACover"]').prop("checked",!1)},100)),c&&setTimeout(()=>{window.location.reload()})}liacence_(a,c){c&&setTimeout(()=>{window.location.reload()})}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(S.ze),t.rXU(ge.ml),t.rXU(o.CH))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-personal-accident-cover"]],decls:1,vars:1,consts:[["class","accident-covers-wrapper mb-3 mb-sm-4 mb-lg-5 pr-3 pr-lg-0",4,"ngIf"],[1,"accident-covers-wrapper","mb-3","mb-sm-4","mb-lg-5","pr-3","pr-lg-0"],[1,"accident-covers-header","mb-4"],[1,"montserrat-bolder","text-bolder","text-primary","mb-3","mb-md-3"],[1,"fs-18","montserrat-bolder","text-bolder","text-black","mb-md-3"],[1,"divider-grey"],[1,"fs-12","montserrat-regular","text-regular","text-primary","mb-2","pt-1","pt-md-3"],[1,"accident-covers-form","pl-md-2",3,"formGroup"],[1,"row","mx-0"],[1,"col-12","col-md-4","col-xl-3","p-0","text-left"],[1,"fs-16","montserrat-bolder","text-bolder","text-primary"],[1,"text-danger"],[1,"radio-data","radio-data-sm","col-12","col-md-8","col-xl-9","d-flex","p-0"],[1,"montserrat-semibold","text-semibold","text-primary","pl-4","mr-5","mr-md-4"],["type","radio","id","yes","name","coverageType","formControlName","coverageType","value","Individual","checked",""],[1,"checkmark"],[1,"montserrat-semibold","text-semibold","text-primary","pl-4"],["type","radio","id","no","name","coverageType","formControlName","coverageType","value","Corporate"],["class","form-qustions pl-md-3",4,"ngIf"],[1,"form-qustions","pl-md-3"],[1,"col-12","col-md-5","col-lg-6","col-xl-5","p-0","text-left"],[1,"fs-16","montserrat-semibold","text-semibold","text-primary"],[1,"radio-data","radio-data-sm","col-12","col-md-7","col-lg-6","col-xl-7","d-flex","p-0"],[1,"montserrat-semibold","text-semibold","text-primary","pt-md-0","mr-3","mr-md-4"],["type","radio","id","yes_3","name","activeDrivingLicense","formControlName","activeDrivingLicense","value","Yes",3,"change"],[1,"montserrat-semibold","text-semibold","text-primary","pt-md-0"],["type","radio","id","no_3","name","activeDrivingLicense","formControlName","activeDrivingLicense","value","No",3,"change"],[1,"row","mx-0",3,"ngClass"],["type","radio","id","paCover_1","name","alternatePaCover","formControlName","alternatePaCover","checked","false","value","Yes",3,"change"],["type","radio","id","paCover_2","name","alternatePaCover","formControlName","alternatePaCover","checked","false","value","No",3,"change"],["type","radio","id","gpaCover_1","name","alternateGPACover","formControlName","alternateGPACover","checked","false","value","Yes",3,"change"],["type","radio","id","gpaCover_2","name","alternateGPACover","formControlName","alternateGPACover","checked","false","value","No",3,"change"]],template:function(c,d){1&c&&t.DNE(0,_t,26,2,"div",0),2&c&&t.Y8G("ngIf","2398"!=d.productCardId&&"2397"!=d.productCardId)},dependencies:[b.YU,b.bT,Xe.ZP,S.qT,S.me,S.Fm,S.BC,S.cb,S.j4,S.JD],styles:['.accident-covers-header[_ngcontent-%COMP%] .divider-grey[_ngcontent-%COMP%]{border-top:1px solid #D8D8D8}.accident-covers-form[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{top:2px;height:15px;width:15px}.accident-covers-form[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{top:calc(50% - 5px);left:calc(50% - 5px);width:10px;height:10px}.accident-covers-form[_ngcontent-%COMP%] .cust-select-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{position:absolute;opacity:0}
1.accident-covers-form[_ngcontent-%COMP%] .cust-select-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:93px;height:32px;background:#fff;color:#707070;border:1px solid #D8D8D8;box-sizing:border-box;border-radius:40px;display:flex;justify-content:center;align-items:center;margin-bottom:16px;margin-right:44px;cursor:pointer} .accident-covers-form .row{margin-bottom:16px}.vertical-align-middle[_ngcontent-%COMP%]{vertical-align:middle}.accident-covers-form[_ngcontent-%COMP%] .disableque[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{display:none;content:""}.accident-covers-form[_ngcontent-%COMP%] .disableque[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{border:1px solid #D8D8D8;background-color:#d8d8d8}@media (max-width: 1200px) and (min-width: 992px){.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:16px;line-height:20px}}@media (max-width: 991px) and (min-width: 768px){.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px;line-height:20px} .accident-covers-form .radio-data label{line-height:20px}.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:16px;line-height:20px}}@media (max-width: 767px) and (min-width: 576px){.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px;line-height:20px}.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-header[_ngcontent-%COMP%] p.fs-18[_ngcontent-%COMP%]{font-size:16px;line-height:20px}.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-header[_ngcontent-%COMP%] p.fs-12[_ngcontent-%COMP%]{font-size:10px;line-height:18px}.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px;line-height:17px;margin-bottom:21px}.accident-covers-form[_ngcontent-%COMP%] .cust-select-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:16px} .accident-covers-form .radio-data label{line-height:20px}.accident-covers-header[_ngcontent-%COMP%] .divider-grey[_ngcontent-%COMP%]{display:none} .accident-covers-form .row{margin-bottom:0}}@media (max-width: 575px) and (min-width: 320px){.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px;line-height:20px}.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-header[_ngcontent-%COMP%] p.fs-18[_ngcontent-%COMP%]{font-size:16px;line-height:20px}.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-header[_ngcontent-%COMP%] p.fs-12[_ngcontent-%COMP%]{font-size:10px;line-height:18px}.accident-covers-wrapper[_ngcontent-%COMP%] .accident-covers-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px;line-height:17px;margin-bottom:21px}.accident-covers-form[_ngcontent-%COMP%] .cust-select-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:16px}.accident-covers-form[_ngcontent-%COMP%] .cust-select-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:80px}.accident-covers-header[_ngcontent-%COMP%] .divider-grey[_ngcontent-%COMP%]{display:none} .accident-covers-form .row{margin-bottom:0}}.disableque[_ngcontent-%COMP%]{pointer-events:none!important}']})}}return g})();var It=m(19365),Pt=m(99809);const Nt=g=>({active:g});function wt(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",9)(1,"input",10),t.bIt("change",function(d){const P=t.eBV(a).$implicit,T=t.XpG(2);return t.Njj(T.handleAddonSelection(d,P))}),t.k0s(),t.j41(2,"label",11)(3,"div",12)(4,"div",13)(5,"div",14)(6,"figure",15),t.nrm(7,"img",16),t.k0s(),t.j41(8,"p",17),t.EFF(9),t.k0s()(),t.j41(10,"div",18)(11,"div")(12,"h6",19),t.EFF(13),t.nI1(14,"customIndianCurrency"),t.j41(15,"span",20),t.EFF(16,"p.a./"),t.k0s()(),t.j41(17,"p",21),t.EFF(18," *All Prices are exclusive of GST "),t.k0s()(),t.j41(19,"a",22)(20,"span"),t.EFF(21),t.k0s()()()()()()()}if(2&g){const a=x.$implicit,c=x.index,d=t.XpG(2);t.R7$(),t.FS9("id","addonId"+c),t.R7$(),t.FS9("for","addonId"+c),t.R7$(),t.Y8G("ngClass",t.eq3(8,Nt,d.isAddonSelected(a))),t.R7$(6),t.SpI(" ",a.AddonCoverGroups.$.Value," "),t.R7$(4),t.SpI(" ",t.bMT(14,6,a.Premium.$.Value),"* "),t.R7$(8),t.JRh(d.isAddonSelected(a)?"Remove":"Add")}}function kt(g,x){if(1&g&&(t.j41(0,"div",2)(1,"div",3)(2,"h5",4),t.EFF(3,"Add-Ons & Coverages"),t.k0s()(),t.j41(4,"form",5)(5,"div",6)(6,"ngx-slick-carousel",7,0),t.DNE(8,wt,22,10,"div",8),t.k0s()()()()),2&g){const a=t.XpG();t.R7$(4),t.Y8G("formGroup",a.addOnsCheckBoxForms),t.R7$(2),t.Y8G("config",a.plansSlideConfig),t.R7$(2),t.Y8G("ngForOf",a.addOnCoverages)}}let xt=(()=>{class g{constructor(a,c,d,P,T,R,X){this.fb=a,this.modalService=c,this.journeyRestService=d,this.motorJourneyRepository=P,this.motorJourneyProductPlanRepository=T,this.motorJourneyVehicalDetailsRepository=R,this.journeyHomeService=X,this.addOnCoverages=[],this.selectedAddons={},this.addonsCovers=[],this.subscription=new _.yU,this.subscriptionCH=new _.yU,this.addOnsCheckBoxForms=this.fb.group({addOnsCheck1:["",S.k0.required]}),this.plansSlideConfig={infinite:!1,autoplay:!1,autoplaySpeed:3e3,dots:!0,arrows:!0,responsive:[{breakpoint:9999,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:992,settings:{slidesToShow:2.2,slidesToScroll:1,arrows:!1,dots:!1}},{breakpoint:737,settings:{slidesToShow:1.2,slidesToScroll:1,arrows:!1,dots:!1}}]}}ngOnInit(){this.journeyHomeService.addPre.subscribe(a=>{!0===a&&this.initVehicleDetails()}),this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore(),this.vcSelection()}ngOnDestroy(){this.subscription.unsubscribe(),this.subscriptionCH.unsubscribe()}initVehicleDetails(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{if(a){a?.addOnCoverageswithPremium.sort((P,T)=>P.AddonCoverGroups.$.Value.localeCompare(T.AddonCoverGroups.$.Value)),this.addOnCoverages=a?.addOnCoverageswithPremium.filter(P=>"0.00"!=P.Premium.$.Value&&""!=P.Premium.$.Value||P.AddonCoverGroups.$.Value.includes("pay less drive less")&&"True"==P.Applicable.$.Value);const d=this.addOnCoverages.findIndex(P=>"pay less drive less"===P.AddonCoverGroups.$.Value);if(d>-1){const[P]=this.addOnCoverages.splice(d,1);this.addOnCoverages.unshift(P),localStorage.getItem("IsPayDSelected")||this.handleAddonSelection("",this.addOnCoverages[0])}this.addOnlenth=this.addOnCoverages.length}}).unsubscribe())}initSelectedAddonAndCoverageFromStore(){this.motorJourneyRepository.selectedAddonsAndCoverage$.pipe((0,B.p)(a=>!!a),(0,Ue.s)(1)).subscribe(a=>{this.selectedAddons=a.reduce((c,d)=>(c[d.value]={},c),{})})}handleAddonSelection(a,c){"old"==this.vehicleSelection&&"Nil Depreciation Waiver cover"===c.AddonCoverGroups.$.Value?!0===a.target.checked&&"Nil Depreciation Waiver cover"===c.AddonCoverGroups.$.Value&&(this.modalService.show(Pt.r,Object.assign({class:"login-process-popup modal
1-lg bottom-slide",backdrop:"static",keyboard:!1})).content.newItemEvent.subscribe(P=>{"Yes"===P.value?this.selectedAddons[c.AddonCoverGroups.$.Value]={}:delete this.selectedAddons[c.AddonCoverGroups.$.Value],this.otherAddOnsCovers(),this.selectedAddons={...this.selectedAddons},this.motorJourneyRepository.saveSelectedAddonsAndCoverage(Object.keys(this.selectedAddons||[]).map(T=>({value:T})))}),this.addonsCovers.push(c.AddonCoverGroups.$.Value)):(""==a||!0===a.target.checked?(this.selectedAddons[c.AddonCoverGroups.$.Value]={},""==a&&localStorage.setItem("IsPayDSelected","true")):delete this.selectedAddons[c.AddonCoverGroups.$.Value],this.selectedAddons={...this.selectedAddons},this.motorJourneyRepository.saveSelectedAddonsAndCoverage(Object.keys(this.selectedAddons||[]).map(d=>({value:d}))),this.addonsCovers.push(c.AddonCoverGroups.$.Value),this.otherAddOnsCovers())}isAddonSelected(a){return this.selectedAddons.hasOwnProperty(a.AddonCoverGroups.$.Value)}otherAddOnsCovers(){this.amountTimer&&this.amountTimer.unsubscribe(),this.amountTimer=(0,Ze.O)(2e3).subscribe(a=>{this.motorJourneyRepository.saveSelectedOtherAddonsData(Object.keys(this.selectedAddons||[]).map(c=>({value:c})))})}vcSelection(){this.subscriptionCH.add(this.motorJourneyRepository.quotationDialog$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.vehicleSelection=a.vehicleSelection}))}newVehiclePopup(){this.modalService.show(It.w,Object.assign({class:"login-process-popup modal-lg bottom-slide"}))}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(S.ze),t.rXU(Ee.I8),t.rXU(ze.I),t.rXU(ge.ml),t.rXU(o.CH),t.rXU(Pe.Mq),t.rXU(Te.L))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-add-ons-and-coverages"]],decls:1,vars:1,consts:[["slickModal","slick-carousel"],["class","add-ons-content mb-5 mb-md-4 mb-xl-5",4,"ngIf"],[1,"add-ons-content","mb-5","mb-md-4","mb-xl-5"],[1,"add-ons-header","d-flex","justify-content-between"],[1,"montserrat-bolder","text-bolder","text-primary"],[3,"formGroup"],[1,"add-ons-plan"],[1,"carousel",3,"config"],["ngxSlickItem","","class","slide position-relative",4,"ngFor","ngForOf"],["ngxSlickItem","",1,"slide","position-relative"],["type","checkbox",1,"form-check-sm","position-absolute",3,"change","id"],[1,"p-0",3,"for"],[1,"card","add-ons-cards","py-1","px-2","active",3,"ngClass"],[1,"card-body"],[1,"card-body-header","d-flex","align-items-center","mb-3"],[1,"mr-3"],["src","./assets/images/usgi-icons/cash-icon-28.svg","alt","cash-icon-28",1,""],[1,"fs-14","montserrat-bold","text-bold","montserrat-bold","text-primary","mh-45"],[1,"card-body-blk","d-flex","justify-content-between","align-items-center"],[1,"montserrat-bolder","text-bold","text-primary","montserrat-medium","mb-1"],[1,"fs-18","montserrat-medium","text-medium"],[1,"fs-8","montserrat-medium","text-medimontserrat-medium","text-dark-gray"],["target","#addOnsCheck1","role","button",1,"btn","btn-danger"]],template:function(c,d){1&c&&t.DNE(0,kt,9,3,"div",1),2&c&&t.Y8G("ngIf",d.addOnlenth>0)},dependencies:[b.YU,b.Sq,b.bT,He.qW,He.Hv,S.qT,S.cb,S.j4,Ke.G]})}}return g})();var Mt=m(17039);function Ot(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",6)(1,"div",7)(2,"div",8),t.nrm(3,"label",9),t.k0s(),t.j41(4,"div",10)(5,"figure",11),t.nrm(6,"img",12),t.k0s(),t.j41(7,"a",13),t.bIt("click",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.imtCoversPopup())}),t.EFF(8," Click here to explore Additional Covers "),t.k0s()()()()}}function At(g,x){if(1&g&&(t.j41(0,"div",4),t.DNE(1,Ot,9,0,"div",5),t.k0s()),2&g){const a=x.index;t.R7$(),t.Y8G("ngIf",0==a)}}let Ft=(()=>{class g{constructor(a,c,d,P,T,R){this.fb=a,this.modalService=c,this.motorJourneyRepository=d,this.journeyHomeService=P,this.motorJourneyProductPlanRepository=T,this.motorJourneyVehicalDetailsRepository=R,this.fieldDisabled1=!0,this.fieldDisabled2=!0,this.showSingleCard=!1,this.selectedAddons={},this.subscription=new _.yU,this.coverDiscountForm=this.fb.group({amount:["",S.k0.required]}),this.selectedDiscount={},this.coversSlideConfig={infinite:!1,autoplay:!1,autoplaySpeed:3e3,slidesToShow:3,slidesToScroll:3,dots:!0,arrows:!0,responsive:[{breakpoint:9999,settings:"unslick"},{breakpoint:575,settings:{slidesToShow:1.1,slidesToScroll:1,arrows:!1,infinite:!1,autoplay:!1}}]},this.journeyHomeService.addPre.subscribe(X=>{!0===X&&(this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore())})}ngOnInit(){this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore()}ngOnDestroy(){this.subscription.unsubscribe()}coverChangeSelect1(){this.fieldDisabled1=!this.fieldDisabled1}coverChangeSelect2(){this.fieldDisabled2=!this.fieldDisabled2}initVehicleDetails(){let a;this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(c=>!!c)).subscribe(c=>{try{a=[],this.coverDiscounts=[];let d=[];d=c.coverDiscountsPremium.filter(P=>"Basic TP"!=P.CoverGroups.$.Value&&"Basic OD"!=P.CoverGroups.$.Value&&"PA COVER TO OWNER DRIVER"!=P.CoverGroups.$.Value),d.map(P=>{"0.00"!=P.Premium.$.Value&&a.push(P)}),this.coverDiscounts=a}catch{}}))}initSelectedAddonAndCoverageFromStore(){this.motorJourneyRepository.selectedAdditionalCoverAndDiscount$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.selectedDiscount=a,this.totalPremium=0,this.selectedDiscount.forEach(c=>{this.totalPremium+=parseInt(c.value)}),a?.forEach(c=>{this.coverDiscounts?.forEach(d=>{c.name==d.CoverGroups.$.Value&&(d.selected=!0)})})})}handleAddonSelection(a,c){a.target.checked?(this.selectedDiscount[c.Premium.$.Value]={},c.selected=!0):(delete this.selectedDiscount[c.Premium.$.Value],c.selected=!1),this.selectedDiscount={...this.selectedDiscount};let d=this.coverDiscounts.filter(P=>P?.selected);this.motorJourneyRepository.saveSelectedAdditionalCoverAndDiscount(d.map(P=>({name:P.CoverGroups.$.Value,value:P.Premium.$.Value})))}isAddonSelected(a){return this.selectedAddons.hasOwnProperty(a.AddonCoverGroups.$.Value)}imtCoversPopup(){this.modalService.show(Mt.Y,Object.assign({class:"edit-claim-popup modal
1-lg",backdrop:"static",keyboard:!1}))}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(S.ze),t.rXU(Ee.I8),t.rXU(ge.ml),t.rXU(Te.L),t.rXU(o.CH),t.rXU(Pe.Mq))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-additional-covers-discounts"]],decls:5,vars:1,consts:[[1,"additional-covers-content","mb-5","mb-sm-4","mb-xl-5","pr-3","pr-lg-0"],[1,"additional-covers-header","d-flex","justify-content-between"],[1,"montserrat-bolder","text-bolder","text-primary","mb-3","mb-md-4"],["class","additional-covers-plan",4,"ngFor","ngForOf"],[1,"additional-covers-plan"],["class","imt-cards p-3 mb-3",4,"ngIf"],[1,"imt-cards","p-3","mb-3"],[1,"imt-card-header","d-flex","mb-1"],[1,"form-check-sm","mr-2"],["for","imtCheck1"],[1,"d-flex","align-items-center"],[1,"mr-2","mr-md-3"],["src","./assets/images/usgi-icons/blue-car-70-icon.svg","alt","blue-car-32-icon",1,"car-img"],["href","javascript:void(0);",1,"h6","montserrat-semibold","text-semibold","d-flex","align-items-center",3,"click"]],template:function(c,d){1&c&&(t.j41(0,"div",0)(1,"div",1)(2,"h5",2),t.EFF(3,"Additional Covers "),t.k0s()(),t.DNE(4,At,2,1,"div",3),t.k0s()),2&c&&(t.R7$(4),t.Y8G("ngForOf",d.coverDiscounts))},dependencies:[b.Sq,b.bT],styles:[".additional-covers-plan[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%]{padding:20px 10px 20x 18px;background:#fff;box-shadow:0 2px 32px #a7a7a740;border-radius:7px;position:relative}.additional-covers-plan[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%]{padding-left:125px}.additional-covers-plan[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] .form-check-sm[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:before{top:-5px;width:24px;height:24px}.additional-covers-plan[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] .form-check-sm[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before{background:#c02;border:1px solid #DCDCDC;border-radius:2px}.additional-covers-plan[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] .form-check-sm[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{top:0;left:4px;width:14px;height:14px;background:url(checkbox-white-tick.86b37431c39beeef.svg)}.additional-covers-plan[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{top:2px;height:15px;width:15px}.additional-covers-plan[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{top:calc(50% - 5px);left:calc(50% - 5.5px);width:10.5px;height:10px}@media (max-width: 1200px) and (min-width: 992px){.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:16px}}@media (max-width: 991px) and (min-width: 769px){.additional-covers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px}.additional-covers-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:16px;line-height:20px;align-items:center!important}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] .price[_ngcontent-%COMP%]{font-size:18px;line-height:21px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px!important}}@media (max-width: 768px) and (min-width: 320px){.additional-covers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px}.additional-covers-content[_ngcontent-%COMP%] a.fs-16[_ngcontent-%COMP%]{font-size:12px}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] .car-img[_ngcontent-%COMP%]{width:32px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%]{padding-left:35px!important}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .fs-14[_ngcontent-%COMP%]{font-size:10px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .fs-16[_ngcontent-%COMP%]{font-size:12px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px;margin-top:8px}.additional-covers-plan[_ngcontent-%COMP%] .h6[_ngcontent-%COMP%]{font-size:16px}}"]})}}return g})();var w=m(21413),re=m(3281);const u=g=>({"form-group-error":g});function C(g,x){if(1&g&&(t.j41(0,"small",12),t.EFF(1),t.k0s()),2&g){const a=t.XpG(2);t.R7$(),t.SpI(" ",a.errorMsg," ")}}function f(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",13)(1,"ngx-slider",14),t.mxI("valueChange",function(d){t.eBV(a);
1const P=t.XpG(2);return t.DH7(P.idvSelectedValue,d)||(P.idvSelectedValue=d),t.Njj(d)}),t.bIt("userChangeStart",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.stateis("start"))})("userChangeEnd",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.on_value_change(d.idvSelectedValue))}),t.k0s(),t.j41(2,"div",15),t.EFF(3,"Highest IDV"),t.k0s(),t.j41(4,"div",16),t.EFF(5," Lowest IDV"),t.k0s()()}if(2&g){const a=t.XpG(2);t.R7$(),t.R50("value",a.idvSelectedValue),t.Y8G("options",a.options)}}function H(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",17)(1,"ngx-slider",14),t.mxI("valueChange",function(d){t.eBV(a);const P=t.XpG(2);return t.DH7(P.idvSelectedValue,d)||(P.idvSelectedValue=d),t.Njj(d)}),t.bIt("userChangeStart",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.stateis("start"))})("userChangeEnd",function(){t.eBV(a);const d=t.XpG(2);return t.Njj(d.on_value_change(d.idvSelectedValue))}),t.k0s(),t.j41(2,"div",15),t.EFF(3,"High IDV"),t.k0s(),t.j41(4,"div",16),t.EFF(5," Low IDV"),t.k0s()()}if(2&g){const a=t.XpG(2);t.R7$(),t.R50("value",a.idvSelectedValue),t.Y8G("options",a.options)}}function ae(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"h5",4),t.EFF(4," Select The Right IDV For You "),t.k0s(),t.j41(5,"p",5),t.EFF(6," *IDV is the maximum sum assured fixed by the insurer that is offered in case of theft or loss of vehicle "),t.k0s(),t.j41(7,"form",6)(8,"div",7)(9,"input",8),t.mxI("ngModelChange",function(d){t.eBV(a);
1const P=t.XpG();return t.DH7(P.inputIdvValue,d)||(P.inputIdvValue=d),t.Njj(d)}),t.bIt("ngModelChange",function(){t.eBV(a);const d=t.XpG();return t.Njj(d.on_input_value_change(d.inputIdvValue))}),t.k0s(),t.DNE(10,C,2,1,"small",9),t.k0s()()(),t.DNE(11,f,6,2,"div",10)(12,H,6,2,"div",11),t.k0s()()}if(2&g){const a=t.XpG();t.R7$(7),t.Y8G("formGroup",a.choosePlanForm),t.R7$(),t.Y8G("ngClass",t.eq3(7,u,a.errorMsg)),t.R7$(),t.Y8G("value",a.idvSelectedValue),t.R50("ngModel",a.inputIdvValue),t.R7$(),t.Y8G("ngIf",a.errorMsg),t.R7$(),t.Y8G("ngIf","MotorTwoWheeler"==a.journeyName||null==a.journeyName),t.R7$(),t.Y8G("ngIf","MotorPrivateCar"==a.journeyName)}}let G=(()=>{class g{constructor(a,c,d,P,T,R,X){this.fb=a,this.motorJourneyProductPlanRepository=c,this.motorJourneyRepository=d,this.motorJourneyVehicalDetailsRepository=P,this.ngzone=T,this.journeyRestService=R,this.journeyHomeService=X,this.idvDefaultValue=255900,this.idvSelectedValue=255900,this.changeD=!1,this.idvPrice=new w.B,this.errorMsg="",this.subscription=new _.yU,this.options={floor:1e5,ceil:5e5,showSelectionBar:!0,translate:(oe,Qe)=>"\u20b9 "+Math.floor(oe).toString().replace(/(\d)(?=(\d\d)+\d$)/g,"$1,")},this.amount=new w.B}ngOnInit(){this.initJourneyName(),this.initVehicleDetails(),this.initActiveProductPlan(),this.choosePlanForm=this.fb.group({inputIdvValue:["",S.k0.required]})}IVDStart(a){this.idvTimer&&this.idvTimer.unsubscribe(),this.idvTimer=(0,Ze.O)(1e3).subscribe(c=>{this.journeyHomeService.setSubjectshowCard(!1),this.motorJourneyRepository.saveIdvValue(a)})}ngOnDestroy(){this.subscription.unsubscribe()}initJourneyName(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.journeyName=a.journeyName}))}initVehicleDetails(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.dataState=a,this.changeD=!1,this.updateIDVRangeOnProductPlanChange(a),this.finalPremium=a.finalPremium}))}initActiveProductPlan(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{this.productCardId!=a.id&&(this.changeD=!1,this.updateIDVRangeOnProductPlanChange(a)),this.productCardId=a.id,!this.changeD&&a.idvDefaultValue!=this.idvSelectedValue&&this.updateIDVRangeOnProductPlanChange(a),this.journeyHomeService.defaultIDVEmit.subscribe(c=>{c&&(this.changeD=!1,this.journeyHomeService.defaultIDVEmit.next(!1))})})),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a),(0,Ue.s)(1)).subscribe(a=>{this.updateIDVRangeOnProductPlanChange(a)}))}stateis(a){console.log(a),this.idvTimer&&this.idvTimer.unsubscribe()}updateIDVRangeOnProductPlanChange(a){const c=a.minIDV,d=a.maxIDV;a&&a.idvDefaultValue&&parseFloat(a.idvStaticValue||a.idvDefaultValue),this.idvSelectedValue=a&&a.idvDefaultValue?parseFloat(a.idvDefaultValue):0,this.inputIdvValue=this.idvSelectedValue,this.ngzone.run(()=>{const T=Object.assign({},this.options);!1===this.changeD&&(T.floor=Math.round(c),T.ceil=Math.round(d),this.options=T,this.changeD=!0),this.motorJourneyRepository.saveIdvValue(this.idvSelectedValue,a.idvStaticValue||a.idvDefaultValue)})}on_value_change(a){this.amount.next(a),this.changeD=!0,this.IVDStart(a)}on_input_value_change(a){this.errorMsg="",a!=this.idvSelectedValue&&(this.options?.floor<=a&&this.options?.ceil>=a?this.IVDStart(a):this.errorMsg="Entered IDV is not valid")}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(S.ze),t.rXU(o.CH),t.rXU(ge.ml),t.rXU(Pe.Mq),t.rXU(t.SKi),t.rXU(ze.I),t.rXU(Te.L))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-choose-plan-idv"]],decls:1,vars:1,consts:[["class","card idv-section-content mb-3 mb-sm-4 mb-lg-5 bg-gray border-radius-8 border-0 mr-3 mr-lg-0",4,"ngIf"],[1,"card","idv-section-content","mb-3","mb-sm-4","mb-lg-5","bg-gray","border-radius-8","border-0","mr-3","mr-lg-0"],[1,"card-body","p-3"],[1,"idv-section-header","mb-4","mb-lg-5"],[1,"montserrat-bolder","text-bolder","text-primary","mb-1"],[1,"fs-12","montserrat-regular","text-regular","text-primary"],[1,"row",3,"formGroup"],[1,"form-group","mt-3","col-6","col-md-3",3,"ngClass"],["type","text","formControlName","inputIdvValue","placeholder","Enter IDV Value",1,"form-control",3,"ngModelChange","value","ngModel"],["class","err-txt text-danger",4,"ngIf"],["class","value-slider low-high-risk-slider bike-slider mb-4 mb-lg-5",4,"ngIf"],["class","value-slider low-high-risk-slider car-slider mb-4 mb-lg-5",4,"ngIf"],[1,"err-txt","text-danger"],[1,"value-slider","low-high-risk-slider","bike-slider","mb-4","mb-lg-5"],[3,"valueChange","userChangeStart","userChangeEnd","value","o
1ptions"],[1,"fs-8","text-primary","text-bold","montserrat-bold","high-risk","slider-label"],[1,"fs-8","text-primary","text-bold","montserrat-bold","low-risk","slider-label"],[1,"value-slider","low-high-risk-slider","car-slider","mb-4","mb-lg-5"]],template:function(c,d){1&c&&t.DNE(0,ae,13,9,"div",0),2&c&&t.Y8G("ngIf",!("2319"==d.productCardId||"2320"==d.productCardId))},dependencies:[b.YU,b.bT,Xe.ZP,re.d1,S.qT,S.me,S.BC,S.cb,S.j4,S.JD]})}}return g})();var ye=m(32709);const Me=()=>({dateInputFormat:"DD-MM-YYYY",showWeekNumbers:!1,adaptivePosition:!0});function $e(g,x){1&g&&(t.j41(0,"h5",4),t.EFF(1,"Discounts For You"),t.k0s())}function Ge(g,x){1&g&&(t.j41(0,"p",20),t.EFF(1," Discount is offered if Anti-theft device approved by ARAI is installed to protect your vehicle from theft "),t.k0s())}function St(g,x){1&g&&(t.j41(0,"p",20),t.EFF(1," Discount is offered if policyholder is a member of Automobile Association of India (AAI) "),t.k0s())}function Tt(g,x){1&g&&(t.j41(0,"p",20),t.EFF(1," Discount is offered if vehicle is specially designed / modified for physically / mentally challenged persons "),t.k0s())}function Et(g,x){1&g&&(t.j41(0,"p",20),t.EFF(1," Discount is offered by restricting Third Party Property Damage to Rs 6,000 from Rs 7,50,000 "),t.k0s())}function Oe(g,x){1&g&&(t.j41(0,"p",20),t.EFF(1," Discount id offered if policyholder Voluntarily agrees to pay predetermined amount from his pocket against future repairs at the time of claim "),t.k0s())}function lt(g,x){1&g&&(t.j41(0,"div",21)(1,"div",22)(2,"div",23)(3,"div",24)(4,"label",25),t.EFF(5,"Certificate Number "),t.k0s(),t.nrm(6,"input",26),t.k0s()()(),t.j41(7,"div",22)(8,"div",23)(9,"div",27),t.nrm(10,"img",28),t.j41(11,"label",25),t.EFF(12,"Expiry Date"),t.k0s(),t.nrm(13,"input",29),t.k0s()()()()),2&g&&(t.R7$(13),t.Y8G("bsConfig",t.lJ4(1,Me)))}function lo(g,x){if(1&g){const a=t.RV6();t.j41(0,"label",32),t.EFF(1),t.j41(2,"input",33),t.bIt("click",function(d){t.eBV(a);
1const P=t.XpG(2).$implicit,T=t.XpG();return t.Njj(T.getDiscountVoluntary(d,P))}),t.k0s(),t.nrm(3,"span",34),t.k0s()}if(2&g){const a=x.$implicit,c=x.index,d=t.XpG(3);t.FS9("for","discountItemz"+c),t.R7$(),t.SpI(" ",a," "),t.R7$(),t.FS9("id","discountItemz"+c),t.Y8G("checked",a==d.suminsured)("value",a)("disabled",d.discountRadio)}}function co(g,x){if(1&g&&(t.j41(0,"div",23)(1,"div",30),t.DNE(2,lo,4,6,"label",31),t.k0s()()),2&g){const a=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",a.discountVoluntary)}}function N(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"input",8),t.bIt("click",function(d){const P=t.eBV(a).$implicit,T=t.XpG();return t.Njj(T.handleDiscountSelection(d,P))}),t.k0s(),t.nrm(4,"label",9),t.k0s(),t.j41(5,"div",10)(6,"div",11)(7,"figure",12),t.nrm(8,"img",13),t.k0s(),t.j41(9,"h6",14),t.EFF(10),t.k0s()()()(),t.j41(11,"div",15),t.DNE(12,Ge,2,0,"p",16)(13,St,2,0,"p",16)(14,Tt,2,0,"p",16)(15,Et,2,0,"p",16)(16,Oe,2,0,"p",16),t.j41(17,"form",17),t.DNE(18,lt,14,2,"div",18),t.k0s(),t.DNE(19,co,3,1,"div",19),t.k0s()()}if(2&g){const a=x.$implicit,c=x.index,d=t.XpG();t.R7$(3),t.FS9("id","discountItem"+c),t.Y8G("checked",null==a?null:a.selected),t.R7$(),t.FS9("for","discountItem"+c),t.R7$(6),t.SpI(" ","Voluntary deductable"===a.Description.$.Value?"Voluntary deductible":a.Description.$.Value," "),t.R7$(2),t.Y8G("ngIf","Antitheft device discount"===a.Description.$.Value),t.R7$(),t.Y8G("ngIf","Automobile Association discount"===a.Description.$.Value),t.R7$(),t.Y8G("ngIf","Handicap Discount"===a.Description.$.Value),t.R7$(),t.Y8G("ngIf","TPPD Discount"===a.Description.$.Value),t.R7$(),t.Y8G("ngIf","Voluntary deductable"===a.Description.$.Value),t.R7$(),t.Y8G("formGroup",d.discountForm),t.R7$(),t.Y8G("ngIf","Automobile Association discount"===a.Description.$.Value),t.R7$(),t.Y8G("ngIf","Voluntary deductable"===a.Description.$.Value)}}let K=(()=>{class g{constructor(a,c,d,P){this.fb=a,this.motorJourneyProductPlanRepository=c,this.journeyHomeService=d,this.motorJourneyRepository=P,this.discountVoluntary=[],this.cardshow=!1,this.selectedDiscount=[],this.suminsured=new S.hs(""),this.discountRadio=!0,this.subscription=new _.yU,this.coversSlideConfig={infinite:!1,autoplay:!1,autoplaySpeed:3e3,dots:!0,arrows:!0,responsive:[{breakpoint:9999,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:737,settings:{slidesToShow:1.2,slidesToScroll:1,arrows:!1,dots:!0}}]}}ngOnInit(){this.motorJourneyRepository.quotationDialog$.pipe((0,Ue.s)(1)).subscribe(a=>{this.discountVoluntary="MotorPrivateCar"===a.journeyName?[2500,5e3,7500,15e3]:[500,750,1e3,1500,3e3]}),this.journeyHomeService.addPre.subscribe(a=>{!0===a&&(this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore())}),this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore(),this.motorJourneyRepository.selectedOtherDiscount$.subscribe(a=>{this.suminsured=a[0]?.sumInsured,this.createForm()})}createForm(){this.discountForm=this.fb.group({certificate:["",S.k0.required],expiryDate:["",S.k0.required]})}initVehicleDetails(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{if(a){let c=a?.discountswithPremium.filter(d=>"No claim bonus"!=d?.Description?.$?.Value).sort((d,P)=>d.Description.$.Value.localeCompare(P.Description.$.Value));"2311"==a.id||"2312"==a.id||"2367"==a.id||"2369"==a.id?this.discountCover=JSON.parse(JSON.stringify(c)).filter(d=>d?.Description?.$?.Value.includes("Voluntary deductable")):"2319"==a.id||"2320"==a.id?this.discountCover=JSON.parse(JSON.stringify(c)).filter(d=>d?.Description?.$?.Value.includes("none")):("2397"==a.id||"2398"==a.id)&&(this.discountCover=JSON.parse(JSON.stringify(c)).filter(d=>d?.Description?.$?.Value.includes("Voluntary deductable")))}}).unsubscribe())}initSelectedAddonAndCoverageFromStore(){this.motorJourneyRepository.selectedDiscounts$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{a.forEach(c=>{this.discountCover.forEach(d=>{c.value==d.Description.$.Value&&(d.selected=!0,this.selectedDiscount?.find(P=>P.value==c.value)||this.selectedDiscount.push(c),this.discountRadio=!1)})})})}getDiscountVoluntary(a,c){let d=[];d.push({name:"Voluntary deductable",sumInsured:a.target.value,premium:c.Premium.$.Value}),this.motorJourneyRepository.saveSelectedOtherDiscountData(d)}handleDiscountSelection(a,c){if(a.target.checked)this.discountRadio=!1,this.selectedDiscount?.find(d=>d.value==c.Description.$.Value)||this.selectedDiscount?.push({value:c.Description.$.Value,amount:c.Premium.$.Value});else{let d=[];this.discountForm.reset(),this.discountRadio=!0;let P=this.selectedDiscount?.findIndex(T=>T.value==c.Description.$.Value);this.selectedDiscount?.splice(P,1),this.motorJourneyRepository.saveSelectedOtherDiscountData(d)}this.motorJourneyRepository.saveDiscountDetails(this.selectedDiscount)}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(S.ze),t.rXU(o.CH),t.rXU(Te.L),t.rXU(ge.ml))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-motor-dicounts"]],decls:5,vars:2,consts:[[1,"health-discounts","additional-covers-content"],[1,"additional-covers-header","d-flex","justify-content-between"],["class","montserrat-bolder text-bolder text-primary mb-3 mb-md-4",4,"ngIf"],["class","slide position-relative imt-cards p-3 discounts-card",4,"ngFor","ngForOf"],[1,"montserrat-bolder","text-bolder","text-primary","mb-3","mb-md-4"],[1,"slide","position-relative","imt-cards","p-3","discounts-card"],[1,"imt-card-header","d-flex","mb-1"],[1,"checkbox-red","form-check-sm","mr-2"],["type","checkbox","name","disCountCard1",1,"form-check-input",3,"click","id","checked"],[3,"for"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,"d-flex","align-items-center"],[1,"mr-2","mr-md-3"],["src","./assets/images/usgi-icons/locality-discount-56.svg","alt","...",1,"img-fluid","w-55"],[1,"montserrat-semibold","text-semibold","text-dark","d-flex","align-items-center"],[1,"imt-card-body"],["class","fs-14 montserrat-medium text-medium text-dark-gray mb-2 mt-2 mt-lg-0 lh-16",4,"ngIf"],[3,"formGroup"],["class","row",4,"ngIf"],["class","d-flex flex-column pt-md-1",4,"ngIf"],[1,"fs-14","montserrat-medium","text-medium","text-dark-gray","mb-2","mt-2","mt-lg-0","lh-16"],[1,"row"],[1,"col-12","col-lg-6"],[1,"d-flex","flex-column","pt-md-1"],[1,"form-group"],[1,"fs-16","montserrat-semibold","text-semibold","text-dark-gray","mb-2","mb-lg-2"],["type","text","formControlName","certificate","placeholder","Enter your certificate number",1,"form-control"],[1,"form-group","position-relative","datpicker"],["src","./assets/images/icons/calendar-icon.svg","alt","calendar",1,"img-fluid"],["type","text","formControlName","expiryDate","placeholder","DD/MM/YYYY","bsDatepicker","",1,"form-control","position-relative",3,"bsConfig"],[1,"radio-data","d-flex","flex-wrap","discount-radio-btn"],["class","montserrat-semibold text-semibold text-primary pl-4 mr-3",3,"for",4,"ngFor","ngForOf"],[1,"montserrat-semibold","text-semibold","text-primary","pl-4","mr-3",3,"for"],["type","radio","name","sum_assured",3,"click","id","checked","value","disabled"],[1,"checkmark"]
1],template:function(c,d){1&c&&(t.j41(0,"div",0)(1,"div",1),t.DNE(2,$e,2,0,"h5",2),t.k0s(),t.j41(3,"form"),t.DNE(4,N,20,12,"div",3),t.k0s()()),2&c&&(t.R7$(2),t.Y8G("ngIf",0!=(null==d.discountCover?null:d.discountCover.length)),t.R7$(2),t.Y8G("ngForOf",d.discountCover))},dependencies:[b.Sq,b.bT,ye.pc,ye.p0,Xe.ZP,S.qT,S.me,S.BC,S.cb,S.cV,S.j4,S.JD],styles:[".lh-16[_ngcontent-%COMP%]{line-height:18px}.additional-covers-plan[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%]{padding:20px 10px 20x 18px;background:#fff;box-shadow:0 2px 32px #a7a7a740;border-radius:7px;position:relative;margin:16px;min-height:200px}.additional-covers-plan[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{top:2px;height:15px;width:15px}.additional-covers-plan[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{top:calc(50% - 5px);left:calc(50% - 5.5px);width:10.5px;height:10px}.health-discounts[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] img.w-55[_ngcontent-%COMP%]{width:45px}.health-discounts[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] p.mh-60[_ngcontent-%COMP%]{min-height:60px} .additional-covers-plan .slick-dots{bottom:0}.form-group.datpicker[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;bottom:12px;right:8px;z-index:1;width:20px} .discounts-card{background:#fff;box-shadow:0 2px 32px #a7a7a740;border-radius:7px;position:relative;margin:16px}.radio-data[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:20px;height:20px;left:-2px}@media (max-width: 1200px) and (min-width: 992px){.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:16px}}@media (max-width: 991px) and (min-width: 769px){.additional-covers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px}.additional-covers-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:16px;line-height:20px;align-items:center!important}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] .price[_ngcontent-%COMP%]{font-size:18px;line-height:21px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px!important}}@media (max-width: 768px) and (min-width: 320px){.additional-covers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px}.additional-covers-content[_ngcontent-%COMP%] a.fs-16[_ngcontent-%COMP%]{font-size:12px}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.imt-cards[_ngcontent-%COMP%] .imt-card-header[_ngcontent-%COMP%] .car-img[_ngcontent-%COMP%]{width:32px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%]{padding-left:0!important}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .fs-14[_ngcontent-%COMP%]{font-size:10px;line-height:14px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .fs-16[_ngcontent-%COMP%]{font-size:12px}.imt-cards[_ngcontent-%COMP%] .imt-card-body[_ngcontent-%COMP%] .radio-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px;margin-top:8px}.health-discounts[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{width:100%}}.disableInput[_ngcontent-%COMP%]{pointer-events:none!important}"]})}}return g})();function s(g,x){if(1&g){const a=t.RV6();t.j41(0,"div",5)(1,"ng-lottie",6),t.bIt("animationCreated",function(d){t.eBV(a);
1const P=t.XpG();return t.Njj(P.animationCreated(d))}),t.k0s()()}if(2&g){const a=t.XpG();t.R7$(),t.Y8G("options",a.options)}}const y=[{path:"",component:(()=>{class g{animationCreated(a){}constructor(a,c,d,P,T,R){this.modalService=a,this.router=c,this.motorJourneyProductPlanRepository=d,this.journeyHomeService=P,this.motorJourneyRepository=T,this._message=R,this.comHide=!1,this.subscription=new _.yU,this.loading=!1,this.options={path:"/assets/animations/car.json"},this.newItemEvent=new t.bkB}ngOnInit(){this.journeyHomeService.showCard.subscribe(a=>this.loading=a),this.initVehicleDetails(),this.initQuotationDailog()}ngOnDestroy(){this.subscription.unsubscribe()}initVehicleDetails(){let a=0;this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.subscribe(c=>{this.journeyHomeService.netPreniumMotor_pre.subscribe(d=>{a=d,setTimeout(()=>{this.finalPremium=parseInt(d||"0.00")},100)}),this.finalPremium=c?.finalPremium?parseInt(c.finalPremium):0,this.activeProductPlan=c,this.productName=c?.productName}))}initQuotationDailog(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.subscribe(a=>{this.mobileNo=a.vehicleOwnerMobileNumber}))}onChoosePlanContinueCta(){this.router.navigateByUrl("/motor-insurance-buy-now/personal-information"),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(a=>!!a)).subscribe(a=>{let c=a.posPolicyQuoteNo;void 0!==a.posPolicyQuoteNo&&(this.motorJourneyRepository.saveCustomerDetails({quotationId:c}),this.journeyHomeService.postQuotationData("choose-plan"),this.journeyHomeService.smsInspectionReferenceId({QuotationNumber:c,MobileNumber:this.mobileNo,InsuranceType:this.productName}))})),this._message.changeMessage("personalInformation")}openErrorPopup(a){this.bsmodelRef=this.modalService.show(he.u,Object.assign({error:a,class:"thankyou-popup modal-xl",initialState:{error:a},backdropdro:"static"}))}leftPanelDetailCard(){this.bsmodelRef=this.modalService.show(Ie.S,Object.assign({class:"left-panel-detail-card-popup",backdrop:"static"}))}static{this.\u0275fac=function(c){return new(c||g)(t.rXU(Ee.I8),t.rXU(q.Ix),t.rXU(o.CH),t.rXU(Te.L),t.rXU(ge.ml),t.rXU(Re.h))}}static{this.\u0275cmp=t.VBU({type:g,selectors:[["app-motor-choose-plans"]],outputs:{newItemEvent:"newItemEvent"},decls:12,vars:0,consts:[["customLoadingTemplate",""],[1,"mt-3","mb-4"],[1,"pl-3","pl-lg-4","pr-3","pr-lg-0"],[1,"pl-3","pl-lg-4","pr-0","pr-md-3","pr-lg-0"],[1,"mb-5"],[1,"loader-background"],[1,"loader-animation",3,"animationCreated","options"]],template:function(c,d){1&c&&(t.j41(0,"div",1),t.DNE(1,s,2,1,"ng-template",null,0,t.C5r),t.j41(3,"div",2),t.nrm(4,"app-your-vehicle-details"),t.k0s(),t.j41(5,"div",3),t.nrm(6,"app-policy-plan-duration")(7,"app-choose-plan-idv")(8,"app-personal-accident-cover")(9,"app-additional-covers-discounts")(10,"app-add-ons-and-coverages",4)(11,"app-motor-dicounts"),t.k0s()())},dependencies:[je.xm,gt,at,Dt,xt,Ft,G,K]})}}return g})()}];let D=(()=>{class g{static{this.\u0275fac=function(c){return new(c||g)}}static{this.\u0275mod=t.$C({type:g})}static{this.\u0275inj=t.G2t({imports:[q.iI.forChild(y),q.iI]})}}return g})();var V=m(44626);let se=(()=>{class g{static{this.\u0275fac=function(c){return new(c||g)}}static{this.\u0275mod=t.$C({type:g})}static{this.\u0275inj=t.G2t({imports:[b.MD,Y.PluginsModule,S.YN,V.v,S.X1,D,e.G.forRoot(),V.v]})}}return g})()},75159:(et,pe,m)=>{m.r(pe),m.d(pe,{MotorInsuranceJourneyModule:()=>co});var b=m(60177),S=m(46359),e=m(18359),Y=m(5964),q=m(96354),t=m(70152),_=m(23294),B=m(35334),he=m(96697),Ie=m(91484),Ee=m(15714),o=m(71649),Te=m(86369),ge=m(62155),Re=m(90057),je=m(86651),Ye=m(68869),tt=m(12546),Pe=m(10444),Z=m(97586),mt=m(5655),qe=m(98518),ut=m(20901),ot=m(95613),Je=m(47669),n=m(54438),pt=m(18703),ht=m(50779),gt=m(71780),ft=m(60040),nt=m(18389),Ue=m(54005),vt=m(32374),yt=m(70482),Ct=m(33802),Ve=m(51451),ve=m(5992),ze=m(62233),He=m(13220),Xe=m(81779);const Ke=()=>[""],it=()=>["/motor-insurance-buy-now/choose-plans"],j=N=>({rotate:N}),Be=()=>["/motor-insurance-buy-now/personal-information"];function ue(N,K){if(1&N&&n.nrm(0,"ngx-loading",75),2&N){const s=n.XpG(),p=n.sdS(2);n.Y8G("show",!s.loading)("template",p)}}
1function rt(N,K){if(1&N){const s=n.RV6();n.j41(0,"div",76)(1,"ng-lottie",77),n.bIt("animationCreated",function(y){n.eBV(s);const D=n.XpG();return n.Njj(D.animationCreated(y))}),n.k0s()()}if(2&N){const s=n.XpG();n.R7$(),n.Y8G("options",s.options)}}function at(N,K){if(1&N&&n.nrm(0,"ngx-loading",75),2&N){const s=n.XpG(),p=n.sdS(5);n.Y8G("show",!s.loading)("template",p)}}function Ze(N,K){if(1&N){const s=n.RV6();n.j41(0,"div",76)(1,"ng-lottie",77),n.bIt("animationCreated",function(y){n.eBV(s);const D=n.XpG();return n.Njj(D.animationCreated(y))}),n.k0s()()}if(2&N){const s=n.XpG();n.R7$(),n.Y8G("options",s.twoWheelerOptions)}}function st(N,K){1&N&&(n.j41(0,"span"),n.EFF(1,"Two Wheeler"),n.k0s())}function bt(N,K){1&N&&(n.j41(0,"span"),n.EFF(1,"Four Wheeler"),n.k0s())}function _t(N,K){1&N&&(n.j41(0,"span",78),n.EFF(1," Comprehensive Plan "),n.k0s())}function Dt(N,K){1&N&&(n.j41(0,"span",79),n.EFF(1," Third Party Plan "),n.k0s())}function It(N,K){1&N&&(n.j41(0,"span",79),n.EFF(1," Own Damage Plan "),n.k0s())}function Pt(N,K){if(1&N){const s=n.RV6();n.j41(0,"div",80),n.bIt("click",function(){n.eBV(s);const y=n.XpG();return n.Njj(y.openJourneyHighLightPopupTW())}),n.EFF(1," Preview in 2 minutes "),n.k0s()}}function Nt(N,K){if(1&N){const s=n.RV6();n.j41(0,"div",80),n.bIt("click",function(){n.eBV(s);const y=n.XpG();return n.Njj(y.openJourneyHighLightPopupPC())}),n.EFF(1," Preview in 2 minutes "),n.k0s()}}function wt(N,K){if(1&N&&(n.j41(0,"div",89),n.EFF(1),n.k0s()),2&N){const s=n.XpG().$implicit,p=n.XpG(2);n.R7$(),n.SpI(" ","Discount"===s.label&&p.discount?"Discount":s.label," ")}}function kt(N,K){if(1&N&&(n.j41(0,"div",90),n.EFF(1),n.nI1(2,"customIndianCurrency"),n.k0s()),2&N){const s=n.XpG().$implicit,p=n.XpG(2);n.R7$(),n.LHq(" ","NCB Discount"===s.label?"- ":""," ","Discount"!==s.label||p.discount?"":"- "," ","Discount"===s.label&&p.discount?"- "+p.discountAmount+"%":s.info?n.bMT(2,4,s.info):"\u20b9 0"," ","NCB Discount"===s.label?p.current_ncb_percentage:""," ")}}function xt(N,K){if(1&N&&(n.j41(0,"div",86)(1,"div",53),n.DNE(2,wt,2,1,"div",87),n.k0s(),n.j41(3,"div",55),n.DNE(4,kt,3,6,"div",88),n.k0s()()),2&N){const s=K.index;n.R7$(2),n.Y8G("ngIf",9!=s),n.R7$(2),n.Y8G("ngIf",9!=s)}}function Mt(N,K){if(1&N){const s=n.RV6();n.j41(0,"div",81)(1,"div",82)(2,"p",83),n.EFF(3," Cost Summary "),n.k0s(),n.j41(4,"p",84),n.bIt("click",function(){n.eBV(s);const y=n.XpG();return n.Njj(y.openCostSummaryPopup())}),n.EFF(5," View Details "),n.k0s()(),n.DNE(6,xt,5,2,"div",85),n.k0s()}if(2&N){const s=n.XpG();n.R7$(6),n.Y8G("ngForOf",s.costSummary)}}function Ot(N,K){1&N&&n.nrm(0,"img",91)}function At(N,K){1&N&&n.nrm(0,"img",92)}function Ft(N,K){if(1&N&&(n.j41(0,"div",89),n.EFF(1),n.k0s()),2&N){const s=n.XpG().$implicit;n.R7$(),n.SpI(" ",s.label," ")}}function w(N,K){if(1&N&&(n.j41(0,"div",89),n.EFF(1),n.nI1(2,"customIndianCurrency"),n.k0s()),2&N){const s=n.XpG().$implicit,p=n.XpG();n.R7$(),n.LHq(" ","NCB Discount"===s.label?"- ":""," ","Discount"!==s.label||p.discount?"":"- "," ","Discount"===s.label&&p.discount?"- "+p.discountAmount+"%":s.info?n.bMT(2,4,s.info):"\u20b9 0"," ","NCB Discount"===s.label?p.current_ncb_percentage:""," ")}}function re(N,K){if(1&N&&(n.j41(0,"div",93)(1,"div",53),n.DNE(2,Ft,2,1,"div",87),n.k0s(),n.j41(3,"div",55),n.DNE(4,w,3,6,"div",87),n.k0s()()),2&N){const s=K.index;n.R7$(2),n.Y8G("ngIf",9!=s),n.R7$(2),n.Y8G("ngIf",9!=s)}}function u(N,K){if(1&N){const s=n.RV6();n.j41(0,"button",107),n.bIt("click",function(){n.eBV(s);const y=n.XpG(2);return n.Njj(y.btn())}),n.EFF(1),n.k0s()}if(2&N){const s=n.XpG(2);n.R7$(),n.JRh(s.Continue)}}function C(N,K){if(1&N){const s=n.RV6();n.j41(0,"button",108),n.bIt("click",function(){n.eBV(s);const y=n.XpG(2);return n.Njj(y.checkVCModelNoAdrilaApi())}),n.EFF(1),n.k0s()}if(2&N){const s=n.XpG(2);n.R7$(),n.JRh(s.Continue)}}function f(N,K){if(1&N){const s=n.RV6();n.j41(0,"button",107),n.bIt("click",function(){n.eBV(s);const y=n.XpG(2);return n.Njj(y.checkVCModelNoAdrilaApi())}),n.EFF(1),n.k0s()}if(2&N){const s=n.XpG(2);n.R7$(),n.JRh(s.Continue)}}function H(N,K){if(1&N){const s=n.RV6();n.j41(0,"button",107),n.bIt("click",function(){n.eBV(s);const y=n.XpG(2);return n.Njj(y.checkVCTypeWithChassinNO())}),n.EFF(1),n.nI1(2,"customIndianCurrency"),n.k0s()}if(2&N){const s=n.XpG(2);
1n.R7$(),n.SpI("Pay ",n.bMT(2,1,s.costSummary[9].info),"")}}function ae(N,K){if(1&N){const s=n.RV6();n.j41(0,"button",108),n.bIt("click",function(){n.eBV(s);const y=n.XpG(2);return n.Njj(y.checkVCTypeWithChassinNO())}),n.EFF(1),n.nI1(2,"customIndianCurrency"),n.k0s()}if(2&N){const s=n.XpG(2);n.R7$(),n.SpI("Pay ",n.bMT(2,1,s.costSummary[9].info),"")}}function G(N,K){if(1&N){const s=n.RV6();n.j41(0,"button",107),n.bIt("click",function(){n.eBV(s);const y=n.XpG(2);return n.Njj(y.checkVCTypeWithChassinNO())}),n.EFF(1),n.nI1(2,"customIndianCurrency"),n.k0s()}if(2&N){const s=n.XpG(2);n.R7$(),n.SpI("Pay ",n.bMT(2,1,s.costSummary[9].info),"")}}function ye(N,K){if(1&N){const s=n.RV6();n.j41(0,"div",94)(1,"div",5)(2,"div",95)(3,"div",96),n.EFF(4,"Total Premium"),n.k0s(),n.j41(5,"div",97)(6,"div",98)(7,"span",99),n.EFF(8),n.nI1(9,"customIndianCurrency"),n.k0s()(),n.j41(10,"a",100),n.bIt("click",function(){n.eBV(s);const y=n.XpG();return n.Njj(y.openCostSummaryPopup())}),n.EFF(11," View Details "),n.k0s()()(),n.j41(12,"div",101)(13,"div",97)(14,"figure",102),n.nrm(15,"img",103),n.k0s(),n.j41(16,"div",104),n.EFF(17," Total premium will be paid annually "),n.k0s()(),n.DNE(18,u,2,1,"button",105)(19,C,2,1,"button",106)(20,f,2,1,"button",105)(21,H,3,3,"button",105)(22,ae,3,3,"button",106)(23,G,3,3,"button",105),n.k0s()()()}if(2&N){const s=n.XpG();n.R7$(8),n.SpI(" ",n.bMT(9,7,s.costSummary[9].info),"/- p.a."),n.R7$(10),n.Y8G("ngIf",!1===s.payCOn1&&!1===s.payCOn2),n.R7$(),n.Y8G("ngIf",!0===s.payCOn1&&!1===s.payCOn2&&!1===s.showPop),n.R7$(),n.Y8G("ngIf",!0===s.payCOn1&&!1===s.payCOn2&&!0===s.showPop),n.R7$(),n.Y8G("ngIf",!0===s.payCOn2&&!1===s.payCOn1&&!1===s.panCardStatus),n.R7$(),n.Y8G("ngIf",!0===s.payCOn2&&!1===s.payCOn1&&!0===s.panCardStatus&&!1===s.panCardValidation),n.R7$(),n.Y8G("ngIf",!0===s.payCOn2&&!1===s.payCOn1&&!0===s.panCardStatus&&!0===s.panCardValidation)}}function Me(N,K){if(1&N){const s=n.RV6();n.j41(0,"div",109)(1,"div",110)(2,"div",111)(3,"p",112)(4,"b"),n.EFF(5,"Note:"),n.k0s(),n.nrm(6,"br"),n.EFF(7," Error 400 in Pay as you drive cover : Kindly connect nearest branch to opt this cover or proceed by unselecting this cover "),n.k0s(),n.j41(8,"div",113)(9,"button",107),n.bIt("click",function(){n.eBV(s);const y=n.XpG();return n.Njj(y.pressOkay())}),n.EFF(10,"Ok"),n.k0s()()()()()}}const Ge=[{path:"motor-insurance-buy-now",component:(()=>{class N{constructor(s,p,y,D,V,se,g,x,a,c,d,P){this.journeyRestService=s,this.modalService=p,this.motorJourneyRepository=y,this.motorJourneyVehicalDetailsRepository=D,this.motorJourneyCkycRepository=V,this.motorJourneyProductPlanRepository=se,this.journeyHomeService=g,this._commonSrc=x,this.transactionService=a,this.journeyAadrilaService=c,this.motorJourneyOwnerDetailsRepository=d,this.router=P,this.showHeading=!0,this.firstHitDone=!1,this.additionalCover=[],this.discountPackages=[],this.payCOn1=!1,this.payCOn2=!1,this.breakInCase=!1,this.subscriptions=new e.yU,this.isCompC={active:!0,completed:!1},this.isCompP={active:!1,completed:!1},this.isCompS={active:!1,completed:!1},this.discount=!1,this.costSummary=[{label:"IDV ",info:"\u20b9 --",fieldName:"idv"},{label:"Basic TP ",info:"\u20b9 --",fieldName:"basic_TP"},{label:"Basic OD ",info:"\u20b9 --",fieldName:"basic_OD"},{label:"Discount",info:"\u20b9 --",fieldName:"ownDamageDiscount"},{label:"Addon Total",info:"\u20b9 --",fieldName:"addon_Total"},{label:"Additional Cover Total ",info:"\u20b9 --",fieldName:"additional_Cover_Total"},{label:"NCB Discount",info:"\u20b9 --",fieldName:"ncbDiscount"},{label:"Net Premium",info:"\u20b9 --",fieldName:"netPremium"},{label:"GST In (18%)",info:"18 %",fieldName:"gstIn"},{label:"Total Premium:",info:"",fieldName:"totalPremium"}],this.subscription=new e.yU,this.coverDiscounts=[],this.show=!1,this.showPop=!1,this.panCardValidation=!1,this.panCardStatus=!1,this.IsPressed=!1,this.selectedAddons={},this.loading=!0,this.options={path:"/assets/animations/car.json"},this.twoWheelerOptions={path:"/assets/animations/two-wheeler-loader.json"},this.addonDiscountCover=[],this.addonAdditionalCover=[],this.fibertankODDiscount=0,this.isCollapsed=!1,this.isCollapsed2=!0,this.choosePlans=!0,this.personalInformation=!1,this.summary=!1,this.Continue="Continue",this.journeyHomeService.showCard.subscribe(R=>{setTimeout(()=>{this.loading=R},100)}),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Y.p)(R=>!!R)).subscribe(R=>{"0.00"!==R?.deTariffDiscount?.Rate?.$?.Value&&(this.discount=!0,this.discountAmount=parseInt(R?.deTariffDiscount?.Rate?.$?.Value))}));const T=new Date;this.policyStartDate=new Date(T.setDate(T.getDate())).toISOString(),this.policyStartDate=Z(this.policyStartDate).format("DD/MM/YYYY"),this.journeyHomeService.validationPer.subscribe(R=>this.showPop=R),this.journeyHomeService.panCardSelection.subscribe(R=>this.panCardValidation=R),this.journeyHomeService.panCardStatus.subscribe(R=>this.panCardStatus=R),this.router.events.subscribe(R=>{this.firstLoadPageHandle(),this.loaderNavigator(R)}),this.journeyHomeService.breakIn.subscribe(R=>{"/motor-insurance-buy-now/summary"==this.router.url&&(this.breakInCase=R)})}animationCreated(s){}loaderNavigator(s){s instanceof S.Z&&setTimeout(()=>{this.loading=!1},100),(s instanceof S.wF||s instanceof S.j5||s instanceof S.L6)&&setTimeout(()=>{this.loading=!0},100)}ngOnInit(){this.initActiveVehicleDetails(),this.initJourneyName(),this.getPIPAdd(),this.initActiveProductPlan(),this.initQuotationDialog(),this.initOwnerDetails(),this.initVehicleDetails(),this.initCKYCDetails(),this.initCoverDiscount(),this.journeyHomeService.personalRefersh.subscribe(s=>{1==s&&this.getCSData()}),this.motorJourneyRepository.obsoluteVehicle$.subscribe(s=>{this.obsoluteVehicle=s.obsoluteVehicle,"/motor-insurance-buy-now"==this.router.url&&this.obsoluteVehicle&&!this.firstHitDone&&(this.firstHitDone=!0,this.modalService.show(ut.a,Object.assign({class:"quatation-error-popup modal
1-lg",backdrop:"static"})))}),this.journeyHomeService.breakInTwoWheeler.subscribe(s=>{s&&this.normalJourneyPayCta()}),this.initProductPlanDetails(),this.motorJourneyRepository.previousPolicyDialog$.subscribe(s=>{this.ncbDetails_percentage=s.futurePolicyNoClaimBonus?s.futurePolicyNoClaimBonus:0}),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{null!=s.addOnCoverageswithPremium&&null!=s.coverDiscountsPremium&&(this.journeyHomeService.addPre.next(!0),this.coverDiscounts=s.coverDiscounts.filter(p=>"Basic OD"==p.CoverGroups?.$.Value||"Basic TP"==p.CoverGroups?.$.Value),this.coverDiscounts&&this.calcuateAPrenium(s))})),this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,Y.p)(s=>!!s),(0,q.T)(({costSummaryData:s,...p})=>p)).subscribe(s=>{this.dataState=s,this.GPACover=s.isAlternateGPACoverPresent,this.PACover=s.isAlternatePACoverPresent})),this.initSelectedAddonAndCoverageFromStore()}ngOnDestroy(){this.subscriptions.unsubscribe()}firstLoadPageHandle(){let s=this.router.url;"/motor-insurance-buy-now/choose-plans"==s||"/motor-insurance-buy-now"==s?(this.isCollapsed=!1,this.choosePlans=!0,this.personalInformation=!1,this.summary=!1,this.isCollapsed2=!0,this.isCompC={active:!0,completed:!1},this.isCompP={active:!1,completed:!1},this.isCompS={active:!1,completed:!1},this.payCOn1=!1,this.payCOn2=!1,this.breakInCase=!1,this.Continue="Continue"):"/motor-insurance-buy-now/personal-information"==s?(this.choosePlans=!1,this.breakInCase=!1,this.personalInformation=!0,this.summary=!1,this.isCollapsed2=!1,this.isCollapsed=!0,this.isCompC={active:!1,completed:!0},this.isCompP={active:!0,completed:!1},this.isCompS={active:!1,completed:!1},this.payCOn1=!0,this.payCOn2=!1,this.showPop=!1,this.Continue="Continue"):"/motor-insurance-buy-now/summary"==s&&(this.journeyHomeService.emitFinalPremium.next(this.finalPremium),this.BreakInCase(),this.choosePlans=!1,this.personalInformation=!1,this.isCollapsed2=!0,this.isCollapsed=!0,this.summary=!0,this.isCompC={active:!1,completed:!0},this.isCompP={active:!1,completed:!0},this.isCompS={active:!0,completed:!1},this.payCOn1=!1,this.payCOn2=!0)}breakInJourneyContinueCta(){}initJourneyName(){this.subscriptions.add(this.motorJourneyRepository.quotationDialog$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.VehicleData=s,this.journeyName=s.journeyName,this.showHeading="MotorPrivateCar"==this.journeyName})),this.subscription.add(this.motorJourneyRepository.choosePlanData$.subscribe(s=>{this.idvDefaultValue=s?.selectedIDVValue?.selectedIDVValue||s?.selectedIDVValue}))}BreakInCase(){this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,Y.p)(s=>!!s),(0,q.T)(({costSummaryData:s,...p})=>p),(0,t.B)(2e3)).subscribe(s=>{this.dataState=s,this.GPACover=s.isAlternateGPACoverPresent,this.PACover=s.isAlternatePAC
1overPresent}))}initProductPlanDetails(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.productCardId=s.id?s.id:2312,this.finalPremium=parseInt(s.finalPremium),localStorage.setItem("total2",`${this.finalPremium}`),this.netPremium=s.netPremium,this.gstPremium=s.gstIn,this.ncbPremium=s.ncbDiscount?s.ncbDiscount:0;try{this.calcuateAPrenium(s)}catch{}let p;this.subscriptions.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,Pe.u5)(),(0,Y.p)(y=>!!y),(0,_.F)(),(0,B.d)()).subscribe(y=>{const D=Ie.$i.query((0,qe.Dq)());D?.addOnCoverageswithPremium&&D?.coverDiscountsPremium&&D?.discountswithPremium&&(y?.addonCoverage&&JSON.stringify(y?.addonCoverage)==JSON.stringify(this.addonAdditionalCover)&&y?.coversDiscount&&JSON.stringify(y?.coversDiscount)==JSON.stringify(this.addonDiscountCover)&&y?.discountPackage&&JSON.stringify(y?.discountPackage)==JSON.stringify(this.discountPackages)||(this.addonAdditionalCover=y.addonCoverage,this.discountPackages=[...y.discountPackage],this.addonDiscountCover=y.coversDiscount,this.calcuateAPrenium(D)))})),this.subscriptions.add(this.motorJourneyRepository.personalAccidentCover$.pipe((0,Pe.u5)(),(0,Y.p)(y=>!!y),(0,_.F)(),(0,B.d)()).subscribe(y=>{y&&JSON.stringify(p)==JSON.stringify(y)||(p=y,this.calcuateAPrenium(Ie.$i.query((0,qe.Dq)())))})),this.motorJourneyRepository.selectedAdditionalCoverAndDiscount$.pipe((0,Y.p)(y=>!!y),(0,he.s)(1)).subscribe(y=>{y=y?.filter(V=>!V.name.includes("Built in CNG Kit")||!V.name.includes("Built in CNG Kit"))||[];const D=s?.coverDiscountsPremium?.filter(V=>V.CoverGroups.$.Value.includes("Built in CNG Kit")||V.CoverGroups.$.Value.includes("Built in CNG Kit"))||[];D.length>0&&(D.forEach(V=>{y.push({name:V.CoverGroups.$.Value,value:V.Premium.$.Value})}),this.motorJourneyRepository.saveSelectedAdditionalCoverAndDiscount(y))})}))}calPercentage(s,p){return s/100*p}calcuateAPrenium(s){this.netPremium=s.netPremium,this.idvValue=s.idvDefaultValue;let p=s?.addOnCoverageswithPremium?.filter(te=>this.addonAdditionalCover.some(fe=>fe.value==te.AddonCoverGroups.$.Value))||[],y=s?.discountswithPremium?.filter(te=>this.discountPackages.some(fe=>fe.value==te.Description.$.Value))||[],D=s?.coverDiscountsPremium?.filter(te=>this.addonDiscountCover.some(fe=>fe.name==te.CoverGroups.$.Value))||[];s?.coverDiscountsPremium?.some(te=>{"PA COVER TO OWNER DRIVER"==te.CoverGroups.$.Value&&this.motorJourneyRepository.personalAccidentCover$.pipe((0,he.s)(1)).subscribe(fe=>{"Individual"!=fe.selectedCoverageType||"Yes"!=fe.isActiveDrivingLicensePresent||"No"!=fe.isAlternateGPACoverPresent||"No"!=fe.isAlternatePAC
1overPresent||D.push(te)})});let V=0,se=0,g=0,x=0,a=0;p?.forEach(te=>{V+=parseFloat(te.Premium.$.Value||"0.00")}),y?.forEach(te=>{te.Description.$.Value.includes("Voluntary")||te.Description.$.Value.includes("Handicap")||s.productName.includes("PRIVATE CAR")&&!te.Description.$.Value.includes("TPPD")?g+=parseFloat(te.Premium.$.Value||"0.00"):te.Description.$.Value.includes("TPPD")?a+=parseFloat(te.Premium.$.Value||"0.00"):x+=parseFloat(te.Rate.$.Value||"0.00")});let c=!1;this.fibertankODDiscount=0;let d=0,P=0,T=0;D?.forEach(te=>{if(se+=parseFloat(te.Premium.$.Value||"0.00"),"Built in CNG Kit - OD"==te.CoverGroups.$.Value||"FIBERTANK OD"==te.CoverGroups.$.Value||"CNG Kit - OD"==te.CoverGroups.$.Value||"LPG Kit - OD"==te.CoverGroups.$.Value||te.CoverGroups.$.Value.includes("ELECTRICAL ACCESSORY OD")){let fe=te.Premium.$.Value;this.ncbDetails_percentage&&s.ncbDiscount>0&&(c=!0,d+=parseFloat(fe),this.fibertankODDiscount+=this.calPercentage(fe,this.ncbDetails_percentage)),s.productName.includes("BUNDLED")&&(P+=parseFloat(fe),T+=parseFloat(fe))}});let R=0,X=0,oe=Number(2319!=s.id&&2320!=s.id?this.coverDiscounts[0]?.Premium.$.Value:"0.00"),Qe=Number(2398!=s.id&&2397!=s.id?this.coverDiscounts[1]?.Premium.$.Value:"0.00");oe+=d,R=(oe+P-g)*(Number(s?.deTariffDiscount?.Rate?.$?.Value||"0.00")/100),R=Number(R.toFixed(2)),X=(oe+T-g)*(Number(s?.deTariffLoading?.Rate?.$?.Value||"0.00")/100),X=Number(X.toFixed(2)),x>0&&(g+=Number((oe*x).toFixed(2))),oe=0!=R?oe-R:oe+X,oe=Number(oe||0),oe-=g,this.ncbDetails_percentage>0&&oe>0&&(s.ncbDiscount=s.ncbDiscount,oe-=Math.round(s.ncbDiscount)),this.netPremium=oe+Qe-a,a+=0!=R?R:X,g+=a;let Ae=Number(s?.netPremium)+V+(se-d);this.netPremium=s?.netPremium,this.gstAmtStatus=Math.round(.18*Ae);let ct=Ae;this.current_ncb_percentage=`(${parseFloat(s?.ncbDiscountRate).toFixed(0)}%)`,this.total_premium=this.finalPremium=ct,this.journeyHomeService.emitFinalPremium.next(this.finalPremium),this.productCode=s.id,this.motorJourneyRepository.saveCostSummaryData({basic_OD:2319!=s.id&&2320!=s.id?s?.basic_OD:"0.00",basic_TP:2398!=s.id&&2397!=s.id?s?.basic_TP:"0.00",addon_Total:V?.toFixed()||"0.00",additional_Cover_Total:se?.toFixed()||"0.00",ncbDiscount:2319!=s.id&&2320!=s.id?parseFloat(s?.ncbDiscount||"0.00").toFixed(2):"0.00",netPremium:s?.netPremium,other_discount:"0.00",gstIn:s?.gstIn,totalPremium:s?.finalPremium}),this.getCSData()}getCSData(){let s;this.subscriptions.add(this.motorJourneyRepository.costSummaryData$.pipe((0,Y.p)(p=>!!p),(0,he.s)(1)).subscribe(p=>{s=p})),this.costSummary[0].info=this.idvValue?this.idvValue:this.idvDefaultValue||"0.00",this.costSummary[1].info=s?.basic_TP,this.costSummary[2].info=s?.basic_OD,this.costSummary[3].info=s?.other_discount,this.costSummary[4].info=s?.addon_Total,this.costSummary[5].info=s?.additional_Cover_Total,this.costSummary[6].info=s?.ncbDiscount,this.costSummary[7].info=s?.netPremium,this.costSummary[8].info=s?.gstIn,this.costSummary[9].info=s?.totalPremium,this.journeyHomeService.setSubjectValuenetPreniumMotor_pre(this.total_premium)}initActiveVehicleDetails(){this.subscriptions.add(this.motorJourneyVehicalDetailsRepository?.motorJourneyVehicleDetails$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.aadrila=s}))}stepShow(s){"choosePlans"==s?(this.router.navigate(["motor-insurance-buy-now/choose-plans"]),this.isCollapsed=!this.isCollapsed,this.choosePlans=!0,this.personalInformation=!1,this.summary=!1,this.isCollapsed2=!0,this.isCompC={active:!0,completed:!1},this.isCompP={active:!1,completed:!1},this.isCompS={active:!1,completed:!1},this.breakInCase=!1,this.payCOn1=!1,this.payCOn2=!1,this.Continue="Continue"):"personalInformation"==s?(this.router.navigate(["motor-insurance-buy-now/personal-information"]),this.isCollapsed2=!1,this.choosePlans=!1,this.personalInformation=!0,this.summary=!1,this.isCollapsed=!0,this.isCompC={active:!1,completed:!0},this.isCompP={active:!0,completed:!1},this.isCompS={active:!1,completed:!1},this.payCOn1=!0,this.payCOn2=!1,this.showPop=!1,this.Continue="Continue"):"summary"==s&&(this.journeyHomeService.emitFinalPremium.next(this.finalPremium),this.BreakInCase(),this.router.navigate(["motor-insurance-buy-now/summary"]),this.choosePlans=!1,this.personalInformation=!1,this.isCollapsed2=!0,this.isCollapsed=!0,this.summary=!0,this.isCompC={active:!1,completed:!0},this.isCompP={active:!1,completed:!0},this.isCompS={active:!0,completed:!1},this.payCOn1=!1,this.payCOn2=!0)}btn(){sessionStorage.removeItem("OtpByJourney");let s=this.router.url;"/motor-insurance-buy-now/choose-plans"==s||"/motor-insurance-buy-now"==s?(this.stepShow("personalInformation"),this.Continue="Continue",this.payCOn1=!0,this.onChoosePlanContinueCta()):"/motor-insurance-buy-now/personal-information"==s&&(this.selectedAddons["pay less drive less"]?this.IsPressed=!0:(this.stepShow("summary"),this.Continue="Pay",this.payCOn2=!0,this.payCOn1=!1,this.onPersonalInfromationContinueCta()))}
1onChoosePlanContinueCta(){this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,Y.p)(y=>!!y)).subscribe(y=>{this.postDataQuoteId=y?.postDataQuoteId?.postDataQuoteId||y?.postDataQuoteId?.postDataQuoteId?.postDataQuoteId,this.quotationId=y?.quotationDialog?.quotationId||""})),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Y.p)(y=>!!y)).subscribe(y=>{this.posPolicyNo=y.posPolicyQuoteNo,this.productName=y.productName||""})),this.motorJourneyRepository.saveCustomerDetails({quotationId:this.quotationId||this.posPolicyNo}),this.journeyHomeService.smsQuotationID({QuotationNumber:this.quotationId||this.posPolicyNo,MobileNumber:this.ownerPhoneNo,InsuranceType:this.productName}).subscribe(y=>{this.router.navigateByUrl("/motor-insurance-buy-now/personal-information")});let s=this.router?.url,p="";"/motor-insurance-buy-now/choose-plans"==s?.toLocaleLowerCase()||s?.toLocaleLowerCase()?.includes("choose-plan"),this.postDataQuoteId?this.journeyHomeService.updateQuotationData("personal-information",this.postDataQuoteId,this.quotationId||this.posPolicyNo).subscribe(y=>{this.motorJourneyRepository.savePostDataQuoteId({postDataQuoteId:this.postDataQuoteId}),this.saveChoosePlanData(this.postDataQuoteId)}):(this.journeyHomeService.postQuotationData("choose-plan").subscribe(y=>{this.postDataQuoteId=y?.id,this.motorJourneyRepository.savePostDataQuoteId({postDataQuoteId:this.postDataQuoteId}),this.saveChoosePlanData(this.postDataQuoteId)}),this.router.navigateByUrl("/motor-insurance-buy-now/personal-information"))}onPersonalInfromationContinueCta(){this.journeyHomeService.savePersonalInfo.next(!0),this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,Y.p)(s=>!!s),(0,he.s)(1)).subscribe(s=>{this.postDataQuoteId=s?.postDataQuoteId?.postDataQuoteId||s?.postDataQuoteId?.postDataQuoteId?.postDataQuoteId,this.quotationId=s?.quotationDialog?.quotationId||"",this.journeyHomeService.updateQuotationData("personal-information",this.postDataQuoteId,this.quotationId||this.posPolicyNo).subscribe(p=>{})}))}initQuotationDialog(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.quotationDialogDtls=s,this.ownerPhoneNo=s.vehicleOwnerMobileNumber?s.vehicleOwnerMobileNumber:"--"}))}initActiveProductPlan(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Y.p)(y=>!!y)).subscribe(y=>{this.de_Terrif_discount=y.deTariffDiscount,this.de_Terrif_loading=y.deTariffLoading,this.productPlan=y,y.coverDiscounts?.forEach(se=>{}),this.finalPremium=parseInt(this.productPlan.finalPremium)}))}initOwnerDetails(){this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.proposalData=s}))}initVehicleDetails(){this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.ownerDetails=s||"--",this.vehicleDetails=s||"--"}))}initCKYCDetails(){this.subscription.add(this.motorJourneyCkycRepository.motorJourneyckyc$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.ckycDetails=s||"--"}))}initCoverDiscount(){this.subscription.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,Y.p)(s=>!!s)).subscribe(s=>{this.selectedCoverDiscounts=s.coversDiscount,this.selectedAddon=s.addonCoverage,this.selectedDiscounts=s.discountPackage}))}normalJourneyPayCta(){this.InsertUserLogs({Name:this.ckycDetails?.firstName?this.ckycDetails?.firstName:"",AgentType:this.VehicleData?.vehicleNumber?this.VehicleData?.vehicleNumber:"",MobileNumber:this.ckycDetails?.mobileNumber?this.ckycDetails?.mobileNumber:"",AddressNetwork:this.ckycDetails?.idNumber?this.ckycDetails?.idNumber:""}),Z(this.ckycDetails.dob).format("MM/DD/YYYY");let y=Z(new Date).format("DD/MM/YYYY"),D=Z(new Date((new Date).setFullYear((new Date).getFullYear()+1))).format("DD/MM/YYYY");const V=new Date;let g,x,se=new Date(V.setDate(V.getDate())).toISOString();if(se=Z(se).format("DD/MM/YYYY"),"old"==this.proposalData.quotationDialog.vehicleSelection)if(1==this.proposalData?.previousPolicyDialog?.breakIn&&"MotorTwoWheeler"===this.proposalData?.quotationDialog?.journeyName)this.policyStartDate=new Date(V.setDate(V.getDate()+1)).toISOString(),this.policyStartDate=Z(this.policyStartDate).format("DD/MM/YYYY");else if("Liability"==this.proposalData.previousPolicyDialog?.previousPolicyType||"Comprehensive"==this.proposalData.previousPolicyDialog?.previousPolicyType){let T=this.proposalData.previousPolicyDialog?.previousPolicyEndDate?.split("/");T&&(T=new Date(T[1]+"/"+T[0]+"/"+T[2])),V.setDate(V>T?V.getDate()+2:T.getDate()+1),g=new Date(new Date(V).setFullYear(new Date(V).getFullYear()+1)),g=Z(g).subtract(1,"days").format("DD/MM/YYYY")}else x=Z(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD/MM/YYYY").format("YYYY-MM-DD[T]HH:mm:ss"),x=Z(x).add(1,"days").format("DD/MM/YYYY"),this.policyStartDate=x,"Invalid date"==this.policyStartDate&&(this.policyStartDate=new Date(V.setDate(V.getDate()+1)).toISOString(),this.policyStartDate=Z(this.policyStartDate).format("DD/MM/YYYY"));if("old"==this.proposalData.quotationDialog.vehicleSelection)if(1==this.proposalData?.previousPolicyDialog?.breakIn&&"MotorTwoWheeler"===this.proposalData?.quotationDialog?.journeyName){let T=new Date((new Date).setFullYear((new Date).getFullYear()+1));g=Z(T).add(0,"days").format("DD/MM/YYYY")}else if("Liability"==this.proposalData.previousPolicyDialog?.previousPolicyType||"Comprehensive"==this.proposalData.previousPolicyDialog?.previousPolicyType){const T=Z(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD/MM/YYYY");let R;R=T.isAfter(Z())?T.clone().add(1,"days"):Z().add(1,"days"),this.policyStartDate=R.format("DD/MM/YYYY"),g=R.clone().add(1,"years").subtract(1,"days").format("DD/MM/YYYY")}else{let T=Z(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD/MM/YYYY").format("YYYY-MM-DD[T]HH:mm:ss"),R=new Date(new Date(T).setFullYear(new Date(T).getFullYear()+1));if(g=Z(R).subtract(0,"days").format("DD/MM/YYYY"),"Invalid date"==g){let X=this.policyStartDate?new Date(Z(this.policyStartDate,"DD/MM/YYYY").format("YYYY-MM-DD[T]HH:mm:ss")):new Date,oe=new Date(X.setFullYear(X.getFullYear()+1));g=Z(oe).subtract(1,"days").format("DD/MM/YYYY")}}else if("MOTOR - MOTOR PRIVATE CAR - BUNDLED"===this.productPlan.productName){let T=new Date((new Date).setFullYear((new Date).getFullYear()+3));g=Z(T).subtract(1,"days").format("DD/MM/YYYY")}else if("MOTOR - MOTOR TWO WHEELER - BUNDLED"===this.productPlan.productName){let T=new Date((new Date).setFullYear((new Date).getFullYear()+5));g=Z(T).subtract(1,"days").format("DD/MM/YYYY")}let a=Z(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD-MM-YYYY").add(1,"days");a=Z(a).subtract(1,"days").format("DD/MM/YYYY");let d,c=Z(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD-MM-YYYY").subtract(1,"years");c=Z(c).add(1,"days").format("DD/MM/YYYY"),this.journeyRestService.loadProposalPlanDataBlaze({CustomerType:"Individual",CustomerName:null!=this.ckycDetail
1s.firstName?`${this.ckycDetails?.firstName} ${this.ckycDetails?.middleName||""} ${this.ckycDetails?.lastName||""}`:`${this.ownerDetails?.rc_owner_first_name||""} ${this.ownerDetails?.rc_owner_middle_name||""} ${this.ownerDetails?.rc_owner_last_name||""}`,DOB:this.ckycDetails.dob?this.ckycDetails.dob:"",Gender:"Male",RegistrationZoneDescription:"A",CanBeParent:"0",Emailid:this.ownerDetails.rc_owner_ckycEmailId?this.ownerDetails.rc_owner_ckycEmailId:this.ownerDetails.rc_owner_email_id,MobileNo:this.ownerPhoneNo,PresentAddressLine1:this.ownerDetails.rc_owner_registered_address,PresentAddressLine2:this.ownerDetails.rc_owner_registered_city,PresentStateCode:this.ownerDetails.rc_owner_registered_state,PresentCityDistCode:this.ownerDetails.rc_owner_registered_pincode,PresentPinCode:this.ownerDetails.rc_owner_registered_pincode,PermanentAddressLine1:this.ownerDetails.rc_owner_communication_address,PermanentAddressLine2:this.ownerDetails.rc_owner_communication_city,PermanentStateCode:this.ownerDetails.rc_owner_communication_state,PermanentCityDistCode:this.ownerDetails.rc_owner_communication_pincode,PermanentPinCode:this.ownerDetails.rc_owner_communication_pincode,ProductName:this.productPlan?.productName||this.proposalData.productName.productName,ProductCode:this.productPlan?.id||this.proposalData.productCode.productCode,NomineeName:this.ownerDetails.rc_nominee_name||"",NomineeRelation:this.ownerDetails.rc_nominee_relation||"",NomineeDOB:this.ownerDetails.rc_ownerNomineeDOB||"",AppointeeName:this.ownerDetails.rc_appointeetName||"",AppointeeRelation:this.ownerDetails.rc_appointeetRelation||"",AppointeeDOB:this.ownerDetails.rc_appointeetDOB||"",AappointeetGender:this.ownerDetails.rc_appointeetGender||"",Hypothecation:this.ownerDetails.rc_loanProviderName||"",EkycNo:this.ownerDetails?.rc_owner_ekycNo||this.ckycDetails?.CKYCNumber?this.ckycDetails.CKYCNumber:"",Ref_No_Unique_KYC:this.ownerDetails?.rc_owner_uniqueKycNumber||this.ckycDetails?.UidNumber?this.ckycDetails.UidNumber:"",PosPolicyNo:this.posPolicyNo?this.posPolicyNo:"",PANNo:this.ckycDetails?.idNumber?this.ckycDetails?.idNumber:this.proposalData.panCard.panCard,ProposalDate:se||"",proposalDateStart:this.policyStartDate?this.policyStartDate:"",proposalDateEnd:g||"",Fromdate:y,Todate:D,PolicyEffectiveTo:a,PolicyEffectiveFrom:c,PolicyNo:this.ownerDetails.rc_policy_no,PolicyStatus:"Unexpired",InsurerName:this.ownerDetails.rc_company_name,BusinessType:"old"==this.proposalData.quotationDialog.vehicleSelection?"Rollover":"New",ownerTPInsurerName:this.ownerDetails.rc_TPInsuranceName,previousPolicyPresentYesNO:this.proposalData?.previousPolicyDialog?.previousPolicyPresent,ownerTPPolicyNo:this.ownerDetails.rc_TPInsurancePolicy,owneTpPolicyPlanFromDate:this.ownerDetails?.rc_TPEffectiveTo,owneTpPolicyPlanToDate:this.ownerDetails?.rc_TPEffectiveFrom,DateOfInspection:"",PaymentDate:"",personalAccidentCover:"Individual"==this.proposalData.personalAccidentCover.selectedCoverageType&&"Yes"==this.proposalData.personalAccidentCover.isActiveDrivingLicensePresent&&"No"==this.proposalData.personalAccidentCover.isAlternatePAC
1overPresent&&"No"==this.proposalData.personalAccidentCover.isAlternateGPACoverPresent,addOnSelected:this.selectedAddon,coverTypeSelected:this.selectedCoverDiscounts,discountSelected:this.selectedDiscounts,otherDiscount:this.proposalData.otherDiscountData,De_Tarrif_DiscountRate:this.de_Terrif_discount?.Rate?.$.Value||this.proposalData?.deTariffDiscount?.deTariffDiscount,De_Tarrif_LoadingRate:this.de_Terrif_loading?.Rate?.$.Value||"",DiscountRate:this.proposalData.previousPolicyDialog.futurePolicyNoClaimBonus,otherAddonData:this.proposalData.otherAddonData,previousPolicyDialog:this.proposalData.previousPolicyDialog,VehicleClassCode:this.proposalData.quotationDialog.vehicleType,VehicleMakeCode:this.proposalData.vehicleDetailsDialog.brandId,VehicleModelCode:this.proposalData.vehicleDetailsDialog.variantId,RTOLocationCode:this.proposalData.vehicleDetailsDialog.rto,RegistrationNumber:this.proposalData.quotationDialog.vehicleNumber?this.proposalData.quotationDialog.vehicleNumber:"New",regState:this.proposalData.quotationDialog.vehicleNumber?this.proposalData.quotationDialog.vehicleNumber.slice(0,2):this.vehicleDetails.rc_regState||"",regRtoNo:this.proposalData.quotationDialog.vehicleNumber?this.proposalData.quotationDialog.vehicleNumber.slice(2,4):this.vehicleDetails.rc_regRtoNo||"",regVehicleMidNo:this.proposalData.quotationDialog.vehicleNumber?this.proposalData.quotationDialog.vehicleNumber.slice(4,6):this.vehicleDetails.rc_regVehicleMidNo||"",regVehicleLastNo:this.proposalData.quotationDialog.vehicleNumber?this.proposalData.quotationDialog.vehicleNumber.slice(6,10):this.vehicleDetails.rc_regVehicleLastNo||"",PlaceOfRegistration:this.proposalData.vehicleDetailsDialog.rtoId.toUpperCase(),VehicleModel:this.proposalData.vehicleDetailsDialog.selectedVehicleVariant,EngineNumber:this.ownerDetails.rc_eng_no?this.ownerDetails.rc_eng_no:"New",ChassisNumber:this.ownerDetails.rc_chasi_no?this.ownerDetails.rc_chasi_no:"New",FuelType:this.proposalData.vehicleDetailsDialog.selectFuelType,RegistrationDate:this.proposalData.vehicleDetailsDialog.selectedVehicleYearOfPurchase,YearOfManufacture:this.dateConvertToYear(this.proposalData.vehicleDetailsDialog.selectedVehicleYearOfPurchase),VehicleClass:this.proposalData.quotationDialog.vehicleType,VehicleType:this.proposalData.quotationDialog.vehicleType?this.proposalData.quotationDialog.vehicleType:"NEW",vehicleSelection:this.proposalData.quotationDialog.vehicleSelection,VehicleMake:this.proposalData.vehicleDetailsDialog.selectedVehicleBrand,ModelOfVehicle:this.proposalData.vehicleDetailsDialog.selectedVehicleVariant,VehicleIDV:this.productPlan?.idvDefaultValue||this.productPlan?.idvStaticValue||"",minIDV:this.productPlan?.minIDV?this.productPlan?.minIDV:"",maxIDV:this.productPlan?.maxIDV?this.productPlan?.maxIDV:"",VehicleExShowroomPrice:this.productPlan?.vehicleExShowroomPrices.vehicleExShowroomPrice||"",BodyTypeCode:this.proposalData?.vehicleDetailsDialog.bodyTypeCode||"",ModelStatus:this.proposalData?.vehicleDetailsDialog.vehicleModelStatus||"",GrossVehicleWeight:this.proposalData?.vehicleDetailsDialog.grossVehicleWeight||"",NumberOfWheels:this.proposalData?.vehicleDetailsDialog.numberOfWheels||"",RegistrationZone:this.proposalData?.vehicleDetailsDialog.registrationZone||"",CarryingCapacity:this.proposalData?.vehicleDetailsDialog.carryingCapacity||"",CubicCapacity:parseInt(this.proposalData?.vehicleDetailsDialog.cubicCapacity)||"",SeatingCapacity:this.proposalData?.vehicleDetailsDialog.seatingCapacity||"",OwnerAccountName:this.ownerDetails.OwnerAccountName,OwnerAccountNo:this.ownerDetails.OwnerAccountNo,OwnerBankList:this.ownerDetails.OwnerBankList,OwnerBankName:this.ownerDetails.OwnerBankName,OwnerAccountType:this.ownerDetails.OwnerAccountType,OwnerIFSCCode:this.ownerDetails.OwnerIFSCCode,OwnerPanNo:this.ownerDetails.OwnerPanNo,IsPhysicalCopy:this.ownerDetails.IsPhysicalCopy,IsPEP:this.ownerDetails.IsPEP,IsDisableDeclare:this.ownerDetails.IsDisableDeclare,IsDataPrivacy:this.ownerDetails.IsDataPrivacy});const P={...this.ownerDetails,...this.productPlan,...this.proposalData?.vehicleDetailsDialog};this.saveBankAndZoneOtherDtls(P),this.subscriptions.add(this.motorJourneyRepository.costSummaryData$.pipe((0,Y.p)(T=>!!T)).subscribe(T=>{d=T}))}saveChoosePlanData(s){let p;this.motorJourneyRepository.motorJourney$.subscribe(D=>p=D);let y={insurancePlanMasterID:0,insurerMasterID:p.quotationDialog.
1insurerMasterID,planType:this.productPlan.productName,idV_Value:p.choosePlanData.selectedIDVValue.toString(),quotationID:p.quotationDialog.quotationId,productName:this.productPlan.productName,productCode:this.productPlan.id.toString(),vehicleExShowroomPrices:this.productPlan?.vehicleExShowroomPrices.vehicleExShowroomPrice||"",deTariffDiscount:this.productPlan?.deTariffDiscount?.Rate?.$.Value||"",deTariffLoading:this.productPlan?.deTariffLoading?.Rate?.$.Value||"",additionalCovers:"string",coverType:s,vld_DL_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),vld_Alt_PA_Cvr_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),vld_Alt_GPA_Cvr_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),paCvrUndHirer_Flag:p?.otherAddonData?.length>0&&!!p?.otherAddonData.find(D=>"ELECTRICAL ACCESSORY OD"===D.name),paCvrUndHirer_SumIns:p?.otherAddonData?.length>0&&p?.otherAddonData.find(D=>"ELECTRICAL ACCESSORY OD"===D.name)?.sumInsured||0,paCvrUndHirer_Prm:p?.otherAddonData?.length>0&&p?.otherAddonData.find(D=>"ELECTRICAL ACCESSORY OD"===D.name)?.premium||0,adnlAcs_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),adnlAcs_SumIns:0,adnlAcs_Prm:0,namedPACover_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),namedPACover_SumIns:0,namedPACover_Prm:0,undPACover_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),undPACover_SumIns:0,undPACover_Prm:0,paidDriver_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),paidDriver_SumIns:0,paidDriver_Prm:0,empofIns_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),empofIns_SumIns:0,empofIns_Prm:0,rallyOD_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),rallyOD_SumIns:0,rally_Prm:0,rallyTP_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),rallyTP_SumIns:0,rallyTP_Prm:0,cngKit_TP_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),cngKit_TP_SumIns:0,cngKit_TP_Prm:0,lpgKit_TP_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),lpgKit_TP_SumIns:0,lpgKit_TP_Prm:0,cngKit_OD_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),cngKit_OD_SumIns:0,cngKit_OD_Prm:0,lpgKit_OD_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),lpgKit_OD_SumIns:0,lpgKit_OD_Prm:0,elcAcs_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),elcAcs_SumIns:0,elcAcs_Prm:0,nonElcAcs_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),nonElcAcs_SumIns:0,nonElcAcs_Prm:0,paCvrOwn_Driver_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),paCvrOwn_Driver_SumIns:0,paCvrOwn_Driver_Prm:0,fbGlsFTank_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),fbGlsFTank_SumIns:0,fbGlsFTank_Prm:0,geoExtns_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),geoExtns_SumIns:0,geoExtns_Prm:0,anTftDvc_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),anTftDvc_SumIns:0,anTftDvc_Prm:0,handicapped_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),handicapped_SumIns:0,handicapped_Prm:0,ambAscDisc_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),ambAscDisc_SumIns:0,ambAscDisc_Prm:0,ltdOwnPms_OD_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),ltdOwnPms_OD_SumIns:0,ltdOwnPms_OD_Prm:0,ltdOwnPms_TP_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),ltdOwnPms_TP_SumIns:0,ltdOwnPms_TP_Prm:0,tppdDisc_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),tppdDisc_SumIns:0,tppdDisc_Prm:0,vlExsDisc_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),vlExsDisc_SumIns:0,vlExsDisc_Prm:0,scDisc_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),scDisc_SumIns:0,scDisc_Prm:0,drvTuition_OD_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),drvTuition_OD_SumIns:0,drvTuition_OD_Prm:0,drvTuition_TP_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),drvTuition_TP_SumIns:0,drvTuition_TP_Prm:0,tftConvRisk_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),tftConvRisk_SumIns:0,tftConvRisk_Prm:0,impVhlCDuty_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),impVhlCDuty_SumIns:0,impVhlCDuty_Prm:0,adn_EngProtect:0,adn_RetToInv:0,adn_KeyRepmt:0,adn_EngineProtect:0,adn_RoadSideAst:0,adn_CConsumable:0,adn_STCharges:0,adn_DepWaiver:0,adn_DepWaiver_PPlan_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),adn_DCAllowance:0,adn_TyreCover:0,adn_AcdHspt:0,adn_WFCover:0,adn_LOfPBlg:0,vlnDuc_Flag:p?.selectedAdditionalCoverAndDiscount?.length>0&&!!p?.selectedAdditionalCoverAndDiscount.find(D=>"Other OD"===D.name),vlnDucAmt:0};this.transactionService.postPlanMasterData(y).subscribe(D=>console.log(D))}policyEndDate(){let s=(new Date).getMonth(),p=new Date((new Date).setFullYear((new Date).getFullYear()+3));return`${p.setDate(p.getDate()+1)}/${s}/${p}`}dateConvertToYear(s){const[p,y,D]=s?.split("/");return`${D}`}openRegistrationPopup(){this.modalService.show(tt.T,Object.assign({class:"edit-claim-popup modal
1-lg",backdrop:"static"}))}surveillancePopup(){this.modalService.show(Ye.d,Object.assign({class:"surveillance-popup modal-lg",backdrop:"static"}))}journeyLeavingPopup(){this.modalService.show(Te.Q,Object.assign({class:"journey-leaving-popup modal-lg",backdrop:"static"}))}openCallMePopup(){this.bsmodelRef=this.modalService.show(Ee.O,Object.assign({class:"callme-popup",backdrop:"static"}))}leftPanelDetailCard(){this.bsmodelRef=this.modalService.show(ge.S,Object.assign({class:"left-panel-detail-card-popup",backdrop:"static"}))}openJourneyHighLightPopupTW(){this.bsmodelRef=this.modalService.show(o.s,Object.assign({class:"hightlight-popup modal-xl",initialState:{KnowYourPlansIn2Min:{title:"Know what you will get in Two-Wheeler Insurance in 2 Mins",btnName:"Buy Now",motorData:!0,RightPanelHeading:" Two-Wheeler Insurance",BuyNowLink:"/motor-two-wheeler",Feature:[{Heading:"Damage to your Two-Wheeler due to accident",Content:""},{Heading:"Damage to your Two-Wheeler in case of natural calamities",Content:""},{Heading:"Personal accident cover.",Content:""},{Heading:"Death of Third party.",Content:""},{Heading:"Theft of your vehicle.",Content:""},{Heading:"Select from varieties of add-ons.",Content:""}],Coverage:[{Heading:"Loss or Damage to your car due to natural Calamities",Content:""},{Heading:"Personal Accident Cover",Content:""},{Heading:"Third Party Legal Liablity",Content:""}],ClaimProcess:[{id:"1",Heading:"Intimation",Content:"Paperless Intimation of claims. We are available 24*7"},{id:"2",Heading:"Surveyor Appointment",Content:"A surveyor will be assigned to help with your vehicle assesment."},{id:"3",Heading:"Claim assessment and settlement",Content:"Sit back and relax while we assess and settle your claim with the network garage."}],RightPanel:{Cover:"NA",Customer_feedback:"",Claim_Settlement_Ratio:"91%",Downloads:[{FileName:"Policy Wording",Link:"./assets/file/motor-two-wheeler-insurance/motor-two-wheeler-insurance-policy-wordings.pdf"},{FileName:"Prospectus",Link:"./assets/file/motor-two-wheeler-insurance/motor-two-wheeler-insurance-prospectus.pdf"}]}}},backdrop:"static"}))}openJourneyHighLightPopupPC(){this.bsmodelRef=this.modalService.show(o.s,Object.assign({class:"hightlight-popup modal-xl",backdrop:"static",initialState:{KnowYourPlansIn2Min:{title:"Know what you will get in Motor Private Car Insurance in 2 Mins",btnName:"Buy Now",motorData:!0,RightPanelHeading:"Motor Private Car Insurance",BuyNowLink:"/motor-insurance-details",Feature:[{Heading:"Damage to your Own car due to accident",Content:""},{Heading:"Damage to your Own car in case of natural calamities",Content:""},{Heading:"Personal accident cover.",Content:""},{Heading:"Death of Third party.",Content:""},{Heading:"Theft of your vehicle.",Content:""},{Heading:"Variety of Add-on features.",Content:""}],Coverage:[{Heading:"Loss or Damage to your car due to natural Calamities",Content:""},{Heading:"Personal Accident Cover",Content:""},{Heading:"Third Party Legal Liablity",Content:""}],ClaimProcess:[{id:"1",Heading:"Intimation",Content:"Paperless Intimation of claims. We are available 24*7"},{id:"2",Heading:"Surveyor Appointment",Content:"A surveyor will be assigned to help with your vehicle assesment."},{id:"3",Heading:"Claim assessment and settlement",Content:"Sit back and relax while we assess and settle your claim with the network garage."}],RightPanel:{Cover:"NA",Customer_feedback:"",Claim_Settlement_Ratio:"91%",Downloads:[{FileName:"Policy Wording",Link:"./assets/file/motor-private-car/motor-private-car-policy-wordings.pdf"},{FileName:"Prospectus",Link:"./assets/file/motor-private-car/motor-private-car-prospectus.pdf"}]}}}}))}pressOkay(){delete this.selectedAddons["pay less drive less"],this.selectedAddons={...this.selectedAddons},this.motorJourneyRepository.saveSelectedAddonsAndCoverage(Object.keys(this.selectedAddons||[]).map(s=>({value:s}))),this.IsPressed=!1,this.stepShow("summary"),this.Continue="Pay",this.payCOn2=!0,this.payCOn1=!1,this.onPersonalInfromationContinueCta()}Remove(){delete this.selectedAddons["pay less drive less"],this.selectedAddons={...this.selectedAddons},this.motorJourneyRepository.saveSelectedAddonsAndCoverage(Object.keys(this.selectedAddons||[]).map(s=>({value:s}))),this.IsPressed=!1,this.stepShow("personalInformation"),this.Continue="Continue",this.payCOn1=!0,this.onChoosePlanContinueCta()}openPaymentSuccessfulPopup(){this.modalService.show(je.E,Object.assign({paymentDetails:this.paymentDetails,class:"payment-successful-popup modal
1-lg",backdrop:"static",initialState:{paymentDetails:this.paymentDetails}}))}openPaymentFailedPopup(){this.modalService.show(Re.t,Object.assign({paymentDetails:this.paymentDetails,class:"payment-failed-popup modal-lg",backdrop:"static",initialState:{paymentDetails:this.paymentDetails}}))}openCostSummaryPopup(){this.modalService.show(mt.p,Object.assign({paymentDetails:this.paymentDetails,class:"cost-summary-popup",backdrop:"static"}))}checkVCModelNoAdrilaApi(){if(this.InsertUserLogs({Name:this.ckycDetails?.firstName?this.ckycDetails?.firstName:"",AgentType:this.VehicleData?.vehicleNumber?this.VehicleData?.vehicleNumber:"",MobileNumber:this.ckycDetails?.mobileNumber?this.ckycDetails?.mobileNumber:"",AddressNetwork:this.ckycDetails?.idNumber?this.ckycDetails?.idNumber:""}),"old"==this.VehicleData?.vehicleSelection){let y={rc_no:this.VehicleData?.vehicleNumber,consent:"Y",rc_source:"ONLINE",waappcode:"30000143",wacode:"20000141"};this.journeyAadrilaService.CKYCTokenWeb().subscribe(D=>{"Y"==D?.Flag&&this.journeyAadrilaService.postAadrillaDataWebI(y,D?.Token).subscribe(V=>{if(V?.data){let se=V?.data?.rc_vch_catg;if("LMV"===se||"2WN"==se){let g=V?.data?.rc_owner_first_name?.replace(/^\s*(Mr|Mrs|Ms|Miss)\.?\s*/i,"").split(" ")?V?.data?.rc_owner_first_name?.replace(/^\s*(Mr|Mrs|Ms|Miss)\.?\s*/i,"").split(" "):"",x=this.ckycDetails?.firstName?.split(" ");if(1==(g[0]?.toLowerCase()===x[0].toLowerCase()||"na"==g[0]?.toLowerCase().trim())){let c=V?.data?.pass_id_data[0]?.make_id,d=V?.data?.pass_id_data[0]?.model_id,P=this.proposalData?.vehicleDetailsDialog?.brandId,T=this.proposalData?.vehicleDetailsDialog?.variantId;c==P&&d==T?this.btn():this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")}else this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")}else this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")}else this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")},V=>{this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")})})}else"new"==this.VehicleData?.vehicleSelection?this.btn():this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")}vcModelMismatchedPopup(s){this.bsmodelRef=this.modalService.show(ot.h,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static",keyboard:!1,initialState:{textDescription:s}}))}InsertUserLogs(s){var p="Unknown OS";-1!=navigator.userAgent.indexOf("Win")&&(p="Windows"),-1!=navigator.userAgent.indexOf("Mac")&&(p="Macintosh"),-1!=navigator.userAgent.indexOf("Linux")&&(p="Linux"),-1!=navigator.userAgent.indexOf("Android")&&(p="Android"),-1!=navigator.userAgent.indexOf("like Mac")&&(p="iOS"),this._commonSrc.InsertUserLogs({Name:s?.Name,Email:s?.Email?s?.Email:"",MobileNumber:s?.MobileNumber?s?.MobileNumber:"",OperatingSystem:p,BrowserIP:this.pubIPaddress?this.pubIPaddress:"",AddressNetwork:s?.AddressNetwork?s?.AddressNetwork:"",NetworkProvider:"Website Continue",AgentType:s?.AgentType?s?.AgentType:""}).subscribe(D=>{})}getPIPAdd(){this._commonSrc.getPublicIPAddress().subscribe(s=>{this.pubIPaddress=s?.ip})}checkVCTypeWithChassinNO(){if("20000001"==Je.c.WACode)return void this.normalJourneyPayCta();const s={WACode:Je.c.WACode,WAAppCode:Je.c.WAAppCode,regnNo:this.VehicleData?.vehicleNumber?this.VehicleData?.vehicleNumber.toUpperCase():"",chasiNo:this.ownerDetails?.rc_chasi_no};this._commonSrc.vahanAPIWithChassinNO(s).subscribe(p=>{"Motor Car"==p?.vehicleClass||"M-Cycle/Scooter"==p?.vehicleClass||"new"==this.VehicleData?.vehicleSelection?this.normalJourneyPayCta():this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")})}initSelectedAddonAndCoverageFromStore(){this.subscription.add(this.motorJourneyRepository.selectedAddonsAndCoverage$.subscribe(s=>{this.selectedAddons=s.reduce((p,y)=>(p[y.value]={},p),{})}))}saveBankAndZoneOtherDtls(s){let p;this.motorJourneyRepository.motorJourney$.subscribe(g=>p=g);const y=new Date(s?.rc_ownerNomineeDOB),D=Math.abs(Date.now()-y.getTime()),V=Math.floor(D/864e5/365),se={Id:sessionStorage.getItem("ZoneBankDtlId")?sessionStorage.getItem("ZoneBankDtlId"):0,InsurerMasterID:p?.quotationDialog?.insurerMasterID?p?.quotationDialog?.insurerMasterID:0,UserAgent:p?.quotationDialog?.journeyName?p?.quotationDialog?.journeyName:"TW_FW",OwnerAccountName:s?.OwnerAccountName?s?.OwnerAccountName:"",OwnerAccountNo:s?.OwnerAccountNo?s?.OwnerAccountNo:"",OwnerBankList:s?.OwnerBankList?s?.OwnerBankList:"",OwnerPanNo:s?.OwnerPanNo?s?.OwnerPanNo:"",OwnerIFSCCode:s?.OwnerIFSCCode?s?.OwnerIFSCCode:"",OwnerBankName:s?.OwnerBankName?s?.OwnerBankName:"",IsDataPrivacy:s?.IsDataPrivacy?s?.IsDataPrivacy:"",OwnerAccountType:s?.OwnerAccountType?s?.OwnerAccountType:"SAVING",IsDisableDeclare:s?.IsDisableDeclare?s?.IsDisableDeclare:"",IsPEP:s?.IsPEP?s?.IsPEP:"",IsPhysicalCopy:s?.IsPhysicalCopy?s?.IsPhysicalCopy:"",rc_owner_ckycIdNumber:s?.rc_owner_ckycIdNumber?s?.rc_owner_ckycIdNumber:"",rc_owner_ckycIdType:s?.rc_owner_ckycIdType?s?.rc_owner_ckycIdType:"",rc_owner_ckycMobileNumber:this.ownerPhoneNo?this.ownerPhoneNo:s?.rc_owner_ckycMobileNumber?.number?s?.rc_owner_ckycMobileNumber?.number:s?.rc_owner_ckycMobileNumber?s?.rc_owner_ckycMobileNumber:"",rc_owner_email_id:s?.rc_owner_email_id?s?.rc_owner_email_id:"",rc_regn_no:s?.rc_regn_no?s?.rc_regn_no:"",seatingCapacity:s?.seatingCapacity?s?.seatingCapacity:"",numberOfWheels:s?.numberOfWheels?s?.numberOfWheels:"",registrationZone:s?.registrationZone?s?.registrationZone:"",IMDCode:"200398646454",IMDBName:"DIRECT EMERGING MARKETING",SubSrc:"20000141",carryingCapacity:s?.carryingCapacity?s?.carryingCapacity:"",minIDV:s?.minIDV?s?.minIDV:0,maxIDV:s?.maxIDV?s?.maxIDV:0,isPrevZeroDepPresent:p?.quotationDialog?.VehicleNoPresent?p?.quotationDialog?.VehicleNoPresent:"",Age:V||30,Relationship:s?.rc_nominee_relation?s?.rc_nominee_relation:"",AppointeeName:s?.rc_nominee_name?s?.rc_nominee_name:"",AppointeeRelationWithNomine:s?.rc_appointeetRelation?s?.rc_appointeetRelation:"",TPPolicyEffectiveTo:"2027-11-12 00:00:00.000",TPPolicyEffectiveFrom:"2022-11-12 00:00:00.000",TpInsurerName:s?.rc_TPInsuranceName?s?.rc_TPInsuranceName:"",TpInsurerPolicyno:s?.rc_TPInsurancePolicy?s?.rc_TPInsurancePolicy:"",PosPolicyNo:this.posPolicyNo?this.posPolicyNo:this.quotationId?this.quotationId:p?.quotationDialog?.quotationId?p?.quotationDialog?.quotationId:"",CustomerName:s?.rc_f_name?s?.rc_f_name:s?.rc_owner_name?s?.rc_owner_name:"",QuotationId:p?.quotationDialog?.quotationId?p?.quotationDialog?.quotationId:this.quotationId?this.quotationId:this.posPolicyNo?this.posPolicyNo:"",RegistrationNumber:s?.rc_regn_no?s?.rc_regn_no:"",ownerNomineeDOB:s?.rc_ownerNomineeDOB?s?.rc_ownerNomineeDOB:"",CKYCAgree:"true",ExtraField:""};this.transactionService.updateBankZoneOtherDtls(se).subscribe(g=>{sessionStorage.setItem("ZoneBankDtlId",g?.Result[0]?.Id)})}static{this.\u0275fac=function(p){return new(p||N)(n.rXU(pt.I),n.rXU(ht.I8),n.rXU(gt.ml),n.rXU(ft.Mq),n.rXU(nt.WM),n.rXU(Ie.CH),n.rXU(Ue.L),n.rXU(vt.h),n.rXU(yt.k),n.rXU(Ct.i),n.rXU(Ve.ts),n.rXU(S.Ix))}}static{this.\u0275cmp=n.VBU({type:N,selectors:[["app-motor-insurance-buy-now"]],decls:138,vars:49,consts:[["customLoadingTemplate",""],["customLoadingTemplatetw",""],[3,"show","template",4,"ngIf"],[1,"top-fixed-panel"],[1,"desktop-nav","d-none","d-lg-block","p-lg-3","bottom-header-wrapper"],[1,"container","d-flex","justify-content-between","align-items-center"],["routerLink","/",1,"header-logo"],["src","./assets/images/usgi-logo.svg","alt","Logo",1,"img-fluid"],[1,"text-bolder","montserrat-bolder","text-primary"],[1,"nav-list"],[1,"call-me-btn","btn","btn-outline-danger","nav-links",3,"click"],[1,"bg-light-gray","mobile-nav","d-block","d-lg-none","py-2"],[1,"navbar"],["routerLink","/",1,"navbar-brand"],["href","tel:1800-22-4030"],["src","./assets/images/usgi-icons/call-me-black-24.svg","alt","call me",1,"img-fluid"],[1,"container","d-flex","align-items-center","d-lg-none","py-3"],[1,"fs-18","text-bolder","montserrat-bolder","text-primary"],[1,"choose-plan-sec"],[1,"container"],[1,"row","m-0"],[1,"col-12","col-lg-3","choose-plan-left","p-3","p-lg-0"],[1,"step-heading","fs-18","text-dark","text-bolder","montserrat-bolder","mt-lg-4"],[1,"stepper","stepper-pink","mt-lg-4","my-3"],[1,"step","d-flex","align-items-center","completed"],[1,"step-number","d-flex","justify-content-center","align-items-center"],[1,"number","fs-12","text-bold","montserrat-bold"],[1,"right-tick"],["src","./assets/images/usgi-icons/circle-green-tick-sm.svg","alt",""],[1,"step-name","fs-12","text-bolder","montserrat-bolder","d-flex","align-items-center",3,"routerLink","replaceUrl"],[1,"edit-icon","ml-2","cursor"],["src","./assets/images/usgi-icons/red-edit-icon-sm.svg","alt",""],[1,"step","completedx",3,"ngClass"],[1,"d-lg-flex","align-items-center"],[1,"number","fs-12","text-bold","montserrat-bold",3,"routerLink"],[1,"step-name","fs-12","text-bolder","montserrat-bolder","d-flex","align-items-center"],[1,"d-flex","align-items-center",3,"routerLink"],["aria-controls","collapseBasic2",1,"down-icon","ml-2","cursor",3,"click","ngClass"],["src","./assets/images/usgi-icons/orange-arrow.svg","alt",""],[1,"edit-icon","ml-2","cursor",3,"click"],["id","collapseBasic2",3,"collapse","isAnimated"],[1,"card","left-panel-card","shadow","border-radius-16","border-0"],[1,"card-header","bg-lighter-orange","px-3","border-0"],[1,"row"],[1,"col-12","col-xl-8","mb-1"],[1,"fs-12","text-primary"],[4,"ngIf"],["class","fs-16 text-bold montserrat-bold text-orange mb-2 d-block",4,"ngIf"],["class","d-block text-dark mt-1 text-bolder montserrat-bolder",4,"ngIf"],[1,"col-12","col-xl-4","text-xl-right"],["class","text-link fs-10 cursor text-medium montserrat-medium",3,"click",4,"ngIf"],["class","card-body py-0 px-3",4,"ngIf"],[1,"card-footer","bg-lighter-orange","px-3","border-0"],[1,"col-6","p-0"],[1,"fs-12","text-orange","text-bolder","montserrat-bolder"],[1,"col-6","text-right","p-0"],[1,"step","activex",3,"ngClass"],["aria-controls","collapseBasic",1,"down-icon","ml-2","cursor",3,"click","ngClass"],["
1id","collapseBasic",3,"collapse","isAnimated"],[1,"card-body"],[1,"fs-12","text-bolder","montserrat-bolder","text-dark","mb-2"],[1,"fs-12","text-bolder","montserrat-bolder","text-primary","mb-3"],[1,"col-4","p-0"],[1,"mr-2"],["src","./assets/images/two-wheeler-img.png","alt","two-wheeler-img","class","img-fluid car-img",4,"ngIf"],["src","./assets/images/car-image.png","alt","four-wheeler-img","class","img-fluid car-img",4,"ngIf"],[1,"col-8","p-0"],[1,"fs-12","text-bold","montserrat-bold","text-primary","mb-2"],["class","row py-2 m-0",4,"ngFor","ngForOf"],[1,"col-4","text-right","p-0"],[1,"step","d-flex","align-items-center"],[1,"col-12","col-lg-9","choose-plan-right","p-0","pb-3","pb-lg-5"],[1,"inner-right-blk","pb-5"],["class","bottom-fixed-panel",4,"ngIf"],["class","popup-wrapper",4,"ngIf"],[3,"show","template"],[1,"loader-background"],[1,"loader-animation",3,"animationCreated","options"],[1,"fs-16","text-bold","montserrat-bold","text-orange","mb-2","d-block"],[1,"d-block","text-dark","mt-1","text-bolder","montserrat-bolder"],[1,"text-link","fs-10","cursor","text-medium","montserrat-medium",3,"click"],[1,"card-body","py-0","px-3"],[1,"d-flex","justify-content-between","border-bottom","pt-3","pb-2"],[1,"12px","text-primary","text-bolder","montserrat-bolder","text-bolder"],[1,"text-link","fs-10","cursor","text-medium","montserrat-medium","w-50","text-right",3,"click"],["class","row py-3 m-0",4,"ngFor","ngForOf"],[1,"row","py-3","m-0"],["class","fs-12 text-primary text-regular montserrat-regular",4,"ngIf"],["class","fs-12 text-primary text-regular montserrat-regular info",4,"ngIf"],[1,"fs-12","text-primary","text-regular","montserrat-regular"],[1,"fs-12","text-primary","text-regular","montserrat-regular","info"],["src","./assets/images/two-wheeler-img.png","alt","two-wheeler-img",1,"img-fluid","car-img"],["src","./assets/images/car-image.png","alt","four-wheeler-img",1,"img-fluid","car-img"],[1,"row","py-2","m-0"],[1,"bottom-fixed-panel"],[1,"d-flex","align-items-lg-center","flex-column","flex-lg-row"],[1,"fs-16","text-bold","montserrat-bolder","text-dark","mr-3","mb-1","mb-lg-0"],[1,"d-flex","align-items-center"],[1,"h6","montserrat-medium","text-danger"],[1,"montserrat-extrabold"],["href","javascript:void(0);",1,"text-link","fs-12","montserrat-medium","text-medium","d-inline-block","d-lg-none","ml-2","mt-1",3,"click"],[1,"d-flex","align-items-center","justify-content-between","w-100x"],[1,"mr-3","d-none","d-lg-block"],["src","./assets/images/icons/hand.svg","alt",""],[1,"fs-16","text-primary","montserrat-medium","mr-4","d-none","d-lg-block"],["class","btn btn-danger",3,"click",4,"ngIf"],["class","btn btn-danger","disabled","",3,"click",4,"ngIf"],[1,"btn","btn-danger",3,"click"],["disabled","",1,"btn","btn-danger",3,"click"],[1,"popup-wrapper"],[1,"popup-body"],[1,"thankyou-popup-main"],[1,"fs-16"],[1,"d-flex","align-items-center","justify-content-center","w-100x"]],template:function(p,y){if(1&p){const D=n.RV6();n.DNE(0,ue,1,2,"ngx-loading",2)(1,rt,2,1,"ng-template",null,0,n.C5r)(3,at,1,2,"ngx-loading",2)(4,Ze,2,1,"ng-template",null,1,n.C5r),n.j41(6,"header",3)(7,"div",4)(8,"div",5)(9,"a",6),n.nrm(10,"img",7),n.k0s(),n.j41(11,"h6",8),n.EFF(12),n.k0s(),n.j41(13,"div",9)(14,"button",10),n.bIt("click",function(){return n.eBV(D),n.Njj(y.openCallMePopup())}),n.EFF(15," Call Me "),n.k0s()()()(),n.j41(16,"div",11)(17,"div",5)(18,"div",12)(19,"a",13),n.nrm(20,"img",7),n.k0s()(),n.j41(21,"a",14),n.nrm(22,"img",15),n.k0s()()()(),n.j41(23,"div",16)(24,"div",17),n.EFF(25),n.k0s()(),n.j41(26,"section",18)(27,"div",19)(28,"div",20)(29,"div",21)(30,"div",22),n.EFF(31,"Steps -"),n.k0s(),n.j41(32,"div",23)(33,"div",24)(34,"div",25)(35,"span",26),n.EFF(36,"1"),n.k0s(),n.j41(37,"figure",27),n.nrm(38,"img",28),n.k0s()(),n.j41(39,"div",29)(40,"span"),n.EFF(41,"Basic Details"),n.k0s(),n.j41(42,"figure",30),n.nrm(43,"img",31),n.k0s()()(),n.j41(44,"div",32)(45,"div",33)(46,"div",25)(47,"span",34),n.EFF(48," 2"),n.k0s(),n.j41(49,"figure",27),n.nrm(50,"img",28),n.k0s()(),n.j41(51,"div",35)(52,"span",36),n.EFF(53,"Choose Plan "),n.j41(54,"figure",37),n.bIt("click",function(){return n.eBV(D),n.Njj(y.stepShow("choosePlans"))}),n.nrm(55,"img",38),n.k0s()(),n.j41(56,"figure",39),n.bIt("click",function(){return n.eBV(D),n.Njj(y.stepShow("choosePlans"))}),n.nrm(57,"img",31),n.k0s()()(),n.j41(58,"div",40)(59,"div",41)(60,"div",42)(61,"div",43)(62,"div",44)(63,"div",45),n.DNE(64,st,2,0,"span",46)(65,bt,2,0,"span",46)(66,_t,2,0,"span",47)(67,Dt,2,0,"span",48)(68,It,2,0,"span",48),n.k0s()(),n.j41(69,"div",49),n.DNE(70,Pt,2,0,"div",50)(71,Nt,2,0,"div",50),n.k0s()()(),n.DNE(72,Mt,7,1,"div",51),n.j41(73,"div",52)(74,"div",20)(75,"div",53)(76,"div",54),n.EFF(77,"Total Premium: "),n.k0s()(),n.j41(78,"div",55)(79,"div",54),n.EFF(80),n.nI1(81,"customIndianCurrency"),n.k0s()()()()()()(),n.j41(82,"div",56)(83,"div",33)(84,"div",25)(85,"span",34),n.EFF(86,"3"),n.k0s(),n.j41(87,"figure",27),n.nrm(88,"img",28),n.k0s()(),n.j41(89,"div",35)(90,"span",36),n.EFF(91,"Personal Information "),n.j41(92,"figure",57),n.bIt("click",function(){return n.eBV(D),n.Njj(y.stepShow("personalInformation"))}),n.nrm(93,"img",38),n.k0s()(),n.j41(94,"figure",39),n.bIt("click",function(){return n.eBV(D),n.Njj(y.stepShow("personalInformation"))}),n.nrm(95,"img",31),n.k0s()()(),n.j41(96,"div",58)(97,"div",41)(98,"div",59)(99,"div",60),n.EFF(100,"For Your Vehicle: "),n.k0s(),n.nrm(101,"div",61),n.j41(102,"div",20)(103,"div",62)(104,"figure",63),n.DNE(105,Ot,1,0,"img",64),n.k0s(),n.j41(106,"figure",63),n.DNE(107,At,1,0,"img",65),n.k0s()(),n.j41(108,"div",66)(109,"div",67),n.EFF(110),n.k0s(),n.nrm(111,"div",67),n.k0s()(),n.DNE(112,re,5,2,"div",68),n.k0s(),n.j41(113,"div",52)(114,"div",20)(115,"div",66)(116,"div",54),n.EFF(117,"Total Premium: "),n.k0s()(),n.j41(118,"div",69)(119,"div",54),n.EFF(120
1),n.nI1(121,"customIndianCurrency"),n.k0s()()()()()()(),n.j41(122,"div",70)(123,"div",25)(124,"span",26),n.EFF(125,"4"),n.k0s(),n.j41(126,"figure",27),n.nrm(127,"img",28),n.k0s()(),n.j41(128,"div",35)(129,"span"),n.EFF(130,"Payment"),n.k0s(),n.j41(131,"figure",30),n.nrm(132,"img",31),n.k0s()()()()(),n.j41(133,"div",71)(134,"div",72),n.nrm(135,"router-outlet"),n.k0s()()()()(),n.DNE(136,ye,24,9,"div",73)(137,Me,11,0,"div",74)}2&p&&(n.Y8G("ngIf","MotorPrivateCar"===y.journeyName),n.R7$(3),n.Y8G("ngIf","MotorTwoWheeler"===y.journeyName),n.R7$(9),n.SpI(" ",y.showHeading?"Four-Wheeler Insurance":"Two-Wheeler Insurance"," "),n.R7$(13),n.JRh(y.showHeading?"Four-Wheeler Insurance":"Two-Wheeler Insurance"),n.R7$(14),n.Y8G("routerLink",n.lJ4(40,Ke))("replaceUrl",!0),n.R7$(5),n.Y8G("ngClass",y.isCompC),n.R7$(3),n.Y8G("routerLink",n.lJ4(41,it)),n.R7$(5),n.Y8G("routerLink",n.lJ4(42,it)),n.R7$(2),n.Y8G("ngClass",n.eq3(43,j,y.isCollapsed)),n.BMQ("aria-expanded",!y.isCollapsed),n.R7$(4),n.Y8G("collapse",y.isCollapsed)("isAnimated",!0),n.R7$(6),n.Y8G("ngIf","MotorTwoWheeler"==y.journeyName||null==y.journeyName),n.R7$(),n.Y8G("ngIf","MotorPrivateCar"==y.journeyName),n.R7$(),n.Y8G("ngIf",null==y.productCardId||"2311"==y.productCardId||"2367"==y.productCardId||"2369"==y.productCardId||"2312"==y.productCardId),n.R7$(),n.Y8G("ngIf","2319"==y.productCardId||"2320"==y.productCardId),n.R7$(),n.Y8G("ngIf","2398"==y.productCardId||"2397"==y.productCardId),n.R7$(2),n.Y8G("ngIf","MotorTwoWheeler"==y.journeyName||null==y.journeyName),n.R7$(),n.Y8G("ngIf","MotorPrivateCar"==y.journeyName),n.R7$(),n.Y8G("ngIf",null!=y.gstAmtStatus),n.R7$(8),n.SpI(" ",n.bMT(81,36,y.costSummary[9].info),"/- "),n.R7$(2),n.Y8G("ngClass",y.isCompP),n.R7$(3),n.Y8G("routerLink",n.lJ4(45,Be)),n.R7$(5),n.Y8G("routerLink",n.lJ4(46,Be)),n.R7$(2),n.Y8G("ngClass",n.eq3(47,j,y.isCollapsed2)),n.BMQ("aria-expanded",!y.isCollapsed2),n.R7$(4),n.Y8G("collapse",y.isCollapsed2)("isAnimated",!0),n.R7$(9),n.Y8G("ngIf","MotorTwoWheeler"==y.journeyName||null==y.journeyName),n.R7$(2),n.Y8G("ngIf","MotorPrivateCar"==y.journeyName),n.R7$(3),n.SpI(" ",null==y.VehicleData?null:y.VehicleData.vehicleNumber," "),n.R7$(2),n.Y8G("ngForOf",y.costSummary),n.R7$(8),n.SpI(" ",n.bMT(121,38,y.costSummary[9].info),"/- "),n.R7$(16),n.Y8G("ngIf",!y.breakInCase),n.R7$(),n.Y8G("ngIf",y.IsPressed))},dependencies:[b.YU,b.Sq,b.bT,S.n3,S.Wk,ve.D,ze.xm,He.bt,Xe.G],styles:[".popup-wrapper[_ngcontent-%COMP%]{padding:20px;position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:#0006}.popup-body[_ngcontent-%COMP%]{background-color:#fefefe;margin:15% auto;padding:20px;border:1px solid #888;width:600px;display:flex;justify-content:flex-start;line-height:20px}.thankyou-popup-main[_ngcontent-%COMP%]{padding:0 25px;text-align:center;display:flex;flex-direction:column;align-items:end}.thankyou-popup-main[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:25px;margin-bottom:35px;text-align:justify}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{display:flex;font-size:21px;opacity:1!important}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}"]})}}return N})(),children:[{path:"",loadChildren:()=>Promise.resolve().then(m.bind(m,41339)).then(N=>N.MotorChoosePlansModule)},{path:"choose-plans",loadChildren:()=>Promise.resolve().then(m.bind(m,41339)).then(N=>N.MotorChoosePlansModule)},{path:"personal-information",loadChildren:()=>Promise.resolve().then(m.bind(m,42551)).then(N=>N.MotorPersonalInformationModule)},{path:"summary",loadChildren:()=>Promise.resolve().then(m.bind(m,34240)).then(N=>N.MotorSummaryModule)}]}];let St=(()=>{class N{static{this.\u0275fac=function(p){return new(p||N)}}static{this.\u0275mod=n.$C({type:N})}static{this.\u0275inj=n.G2t({imports:[S.iI.forChild(Ge),S.iI]})}}return N})();var Tt=m(41339),Et=m(42551),Oe=m(34240),lt=m(89417),lo=m(5452);let co=(()=>{class N{static{this.\u0275fac=function(p){return new(p||N)}}static{this.\u0275mod=n.$C({type:N})}static{this.\u0275inj=n.G2t({imports:[b.MD,St,Tt.MotorChoosePlansModule,Et.MotorPersonalInformationModule,Oe.MotorSummaryMo
1dule,lt.YN,lt.X1,lo.PluginsModule]})}}return N})()},42551:(et,pe,m)=>{m.r(pe),m.d(pe,{MotorPersonalInformationModule:()=>po});var b=m(60177),S=m(46359),e=m(54438),Y=m(18359),q=m(91484),t=m(54005),_=m(89417),B=m(63620),he=m(1807),Ie=m(5964),Ee=m(25558),o=m(97586),Te=m(10444),ge=m(94982),Re=m(18389),je=m(46145),Ye=m(80267),tt=m(19549),Z=(m(45312),m(95613)),mt=m(23102),qe=m(94235),ut=m(66894),ot=m(62208),Je=m(54034),n=m(59233),pt=m(62180),ht=m(90458),gt=m(50779),ft=m(56007),nt=m(70482),Ue=m(32374),vt=m(71780),yt=m(60040),Ct=m(51451),Ve=m(33802),ve=m(63876),ze=m(4149),He=m(16326),Xe=m(32541),Ke=m(32709),it=m(5553);const j=h=>({"form-group-error":h}),Be=()=>({dateInputFormat:"DD-MM-YYYY",showWeekNumbers:!1}),ue=(h,A)=>[h,A],rt=h=>({display:h}),at=()=>({dateInputFormat:"MM-DD-YYYY",showWeekNumbers:!1});function Ze(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Email ID"),e.k0s())}function st(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Mobile Number"),e.k0s())}function bt(h,A){1&h&&(e.qex(0),e.j41(1,"span"),e.EFF(2,"(Enter Aadhar Last 4 Digits)"),e.k0s(),e.bVm())}function _t(h,A){1&h&&(e.qex(0),e.j41(1,"span"),e.EFF(2,"(Enter Reference Number)"),e.k0s(),e.bVm())}function Dt(h,A){if(1&h){const r=e.RV6();e.j41(0,"input",113),e.bIt("keyup",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.ckycValidation())}),e.k0s()}}function It(h,A){if(1&h){const r=e.RV6();e.j41(0,"input",114),e.bIt("keyup",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.ckycValidation())}),e.k0s()}}function Pt(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Invalid ID Number"),e.k0s())}function Nt(h,A){if(1&h){const r=e.RV6();e.j41(0,"div",31)(1,"div",116)(2,"div",117),e.nrm(3,"img",118),e.j41(4,"img",119),e.bIt("click",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.loadCaptcha())}),e.k0s()(),e.nrm(5,"input",120),e.j41(6,"button",121),e.bIt("click",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.verifyCaptcha())}),e.EFF(7,"Verify"),e.k0s()()()}if(2&h){let r;const l=e.XpG();e.R7$(3),e.Y8G("src","data:image/jpeg;base64,"+l.captchaBase64,e.B4B),e.R7$(3),e.Y8G("disabled",(null==(r=l.personalInformation.get("ckycEmail"))?null:r.invalid)||(null==(r=l.personalInformation.get("ckycPhone"))?null:r.invalid)||!l.idNumberValidate||!l.personalInformation.value.ID_Number||!l.personalInformation.value.ID_Type||!l.personalInformation.value.dob||!l.personalInformation.value.ckycEmail||!l.personalInformation.value.ckycPhone||!l.personalInformation.value.captcha||(null==(r=l.personalInformation.get("captcha"))?null:r.invalid))}}function wt(h,A){if(1&h){const r=e.RV6();e.qex(0),e.j41(1,"button",122),e.bIt("click",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.sendOTP(0))}),e.EFF(2,"Verify CKYC"),e.k0s(),e.j41(3,"button",123),e.bIt("click",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.updateStatusByRefId())}),e.EFF(4,"Update Status"),e.k0s(),e.bVm()}if(2&h){let r;const l=e.XpG();e.R7$(),e.Y8G("disabled",(null==(r=l.personalInformation.get("ckycEmail"))?null:r.invalid)||(null==(r=l.personalInformation.get("ckycPhone"))?null:r.invalid)||!l.idNumberValidate||!l.personalInformation.value.ID_Number||!l.personalInformation.value.ID_Type||!l.personalInformation.value.dob||!l.personalInformation.value.ckycEmail||!l.personalInformation.value.ckycPhone||!l.personalInformation.value.tbConsent||!l.isCaptchaVerified||l.isChangedRefIDType),e.R7$(2),e.Y8G("disabled",!l.isChangedRefIDType)}}function kt(h,A){if(1&h){const r=e.RV6();e.j41(0,"button",123),e.bIt("click",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.sendOTP(0))}),e.EFF(1,"Verify CKYC"),e.k0s()}if(2&h){let r;const l=e.XpG();e.Y8G("disabled",(null==(r=l.personalInformation.get("ckycEmail"))?null:r.invalid)||(null==(r=l.personalInformation.get("ckycPhone"))?null:r.invalid)||!l.idNumberValidate||!l.personalInformation.value.ID_Number||!l.personalInformation.value.ID_Type||!l.personalInformation.value.dob||!l.personalInformation.value.ckycEmail||!l.personalInformation.value.ckycPhone||!l.personalInformation.value.tbConsent||!l.isCaptchaVerified)}}function xt(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter First Name"),e.k0s())}function Mt(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Middle Name"),e.k0s())}function Ot(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Last Name"),e.k0s())}function At(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Email ID"),e.k0s())}function Ft(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Mobile Number"),e.k0s())}function w(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Marital Status"),e.k0s())}function re(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Registered Address"),e.k0s())}function u(h,A){if(1&h&&(e.j41(0,"small",124),e.EFF(1),e.k0s()),2&h){const r=e.XpG();e.Y8G("ngStyle",e.eq3(2,rt,r.pincodeErrorMsgRegistered?"block":"")),e.R7$(),e.JRh(r.pincodeErrorMsgRegistered?"Entered Pincode is not val
1id":"Please Enter Your Pincode")}}function C(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your State"),e.k0s())}function f(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your City"),e.k0s())}function H(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Address"),e.k0s())}function ae(h,A){if(1&h&&(e.j41(0,"small",124),e.EFF(1),e.k0s()),2&h){const r=e.XpG();e.Y8G("ngStyle",e.eq3(2,rt,r.pincodeErrorMsgOwner?"block":"")),e.R7$(),e.JRh(r.pincodeErrorMsgOwner?"Entered Pincode is not valid":"Please Enter Your Pincode")}}function G(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your State"),e.k0s())}function ye(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your City"),e.k0s())}function Me(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Please Enter Account Holder Name"),e.k0s())}function $e(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Please Enter Account Number"),e.k0s())}function Ge(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Bank Name"),e.k0s())}function St(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Bank Name"),e.k0s())}function Tt(h,A){if(1&h&&(e.j41(0,"div",71)(1,"div",12)(2,"label",41),e.EFF(3,"Other Bank Name "),e.j41(4,"span",14),e.EFF(5,"*"),e.k0s()(),e.nrm(6,"input",125),e.DNE(7,St,2,0,"small",16),e.k0s()()),2&h){let r,l;const i=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(2,j,(null==(r=i.personalInformation.get("OwnerBankName"))?null:r.invalid)&&((null==(r=i.personalInformation.get("OwnerBankName"))?null:r.dirty)||(null==(r=i.personalInformation.get("OwnerBankName"))?null:r.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(l=i.personalInformation.get("OwnerBankName"))?null:l.errors)&&((null==(l=i.personalInformation.get("OwnerBankName"))?null:l.dirty)||(null==(l=i.personalInformation.get("OwnerBankName"))?null:l.touched)))}}function Et(h,A){if(1&h&&(e.j41(0,"option",126),e.EFF(1),e.k0s()),2&h){const r=A.$implicit;e.Y8G("value",r),e.R7$(),e.JRh(r)}}function Oe(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Please Enter Account Type"),e.k0s())}function lt(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter IFSC Number"),e.k0s())}function lo(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter PAN Number"),e.k0s())}function co(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Invalid State"),e.k0s())}function N(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Invalid Mid Value."),e.k0s())}function K(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Invalid Rto No."),e.k0s())}function s(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Registration Number"),e.k0s())}function p(h,A){1&h&&(e.j41(0,"small",115),e.EFF(1,"Please enter a valid Registration number."),e.k0s())}function y(h,A){if(1&h){const r=e.RV6();e.j41(0,"div",71)(1,"div",12)(2,"label",41),e.EFF(3,"Registration Number "),e.j41(4,"span",14),e.EFF(5,"*"),e.k0s()(),e.j41(6,"div",72),e.nrm(7,"input",127)(8,"input",128),e.j41(9,"input",129),e.bIt("keyup",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.checkValidMidValidations())}),e.k0s(),e.j41(10,"input",130),e.bIt("keyup",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.checkCommonValidations())}),e.k0s()(),e.DNE(11,co,2,0,"small",29)(12,N,2,0,"small",29)(13,K,2,0,"small",29)(14,s,2,0,"small",16)(15,p,2,0,"small",29),e.k0s()()}if(2&h){let r,l;const i=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(22,j,(null==(r=i.personalInformation.get("ownerRegistrationNo"))?null:r.invalid)&&((null==(r=i.personalInformation.get("ownerRegistrationNo"))?null:r.dirty)||(null==(r=i.personalInformation.get("ownerRegistrationNo"))?null:r.touched)))),e.R7$(6),e.Y8G("readonly",i.vehicleNo&&i.state),e.BMQ("placeholder",i.statePlaceholder)("minlength",i.stateMinLength)("maxlength",i.stateMaxlength),e.R7$(),e.Y8G("readonly",(i.vehicleNo||i.rtoNoDisable)&&i.rtoNo),e.BMQ("placeholder",i.rtoPlaceholder)("minlength",i.rtoMinLength)("maxlength",i.rtoMaxlength),e.R7$(),e.Y8G("readonly",(i.vehicleNo||i.rtoNoDisable)&&i.vehicleMidNo),e.BMQ("placeholder",i.midPlaceholder)("minlength",i.midMinLength)("maxlength",i.midMaxlength),e.R7$(),e.Y8G("readonly",i.vehicleNo&&i.vehicleLastNo),e.BMQ("placeholder",i.lastPlaceholder)("minlength",i.lastMinLength)("maxlength",i.lastMaxlength),e.R7$(),e.Y8G("ngIf",!i.stateCondition),e.R7$(),e.Y8G("ngIf",!i.vehicleMidCondition),e.R7$(),e.Y8G("ngIf",!i.rtoCondition),e.R7$(),e.Y8G("ngIf",(null==(l=i.personalInformation.get("ownerRegistrationNo"))?null:l.errors)&&((null==(l=i.personalInformation.get("ownerRegistrationNo"))?null:l.dirty)||(null==(l=i.personalInformation.get("ownerRegistrationNo"))?null:l.touched))
1),e.R7$(),e.Y8G("ngIf",i.errorMsgForVehicle)}}function D(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Chasis Number"),e.k0s())}function V(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Engine Number"),e.k0s())}function se(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Previous Policy Number"),e.k0s())}function g(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your ownerPreviousPolicyCompany"),e.k0s())}function x(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Previous Policy End Date"),e.k0s())}function a(h,A){1&h&&(e.j41(0,"label",143),e.EFF(1," Liability "),e.nrm(2,"input",144)(3,"span",50),e.k0s())}function c(h,A){1&h&&(e.j41(0,"label",48),e.EFF(1," SAOD "),e.nrm(2,"input",145)(3,"span",50),e.k0s())}function d(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Previous Policy Type"),e.k0s())}function P(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your ncbValue"),e.k0s())}function T(h,A){if(1&h&&(e.j41(0,"div",6)(1,"div",70),e.EFF(2," Previous Policy Details "),e.k0s(),e.j41(3,"div",8)(4,"div",10)(5,"div",11)(6,"div",12)(7,"label",41),e.EFF(8,"Previous Policy Number "),e.j41(9,"span",14),e.EFF(10,"*"),e.k0s()(),e.nrm(11,"input",131),e.DNE(12,se,2,0,"small",16),e.k0s()(),e.j41(13,"div",11)(14,"div",57)(15,"label",13),e.EFF(16,"Previous Policy Company "),e.j41(17,"span",14),e.EFF(18,"*"),e.k0s()(),e.nrm(19,"ngx-select",132),e.DNE(20,g,2,0,"small",16),e.k0s()(),e.j41(21,"div",11)(22,"div",133)(23,"label",41),e.EFF(24,"Previous Policy End Date "),e.j41(25,"span",14),e.EFF(26,"*"),e.k0s()(),e.j41(27,"div",134),e.nrm(28,"img",19)(29,"input",135),e.k0s(),e.DNE(30,x,2,0,"small",16),e.k0s()()(),e.j41(31,"div",10)(32,"div",136)(33,"div",45)(34,"label",137),e.EFF(35,"Previous Policy Type "),e.j41(36,"span",14),e.EFF(37,"*"),e.k0s()(),e.j41(38,"div",47),e.DNE(39,a,4,0,"label",138),e.j41(40,"label",139),e.EFF(41," Comprehensive "),e.nrm(42,"input",140)(43,"span",50),e.k0s(),e.DNE(44,c,4,0,"label",141),e.k0s(),e.DNE(45,d,2,0,"small",16),e.k0s()(),e.j41(46,"div",11)(47,"div",67)(48,"label",41),e.EFF(49,"NCB Value "),e.j41(50,"span",14),e.EFF(51,"*"),e.k0s()(),e.nrm(52,"ngx-select",142),e.DNE(53,P,2,0,"small",16),e.k0s()()()()()),2&h){let r,l,i,v,I,k,F,L,E,W;const O=e.XpG();e.R7$(6),e.Y8G("ngClass",e.eq3(15,j,(null==(r=O.personalInformation.get("ownerPreviousPolicyNo"))?null:r.invalid)&&((null==(r=O.personalInformation.get("ownerPreviousPolicyNo"))?null:r.dirty)||(null==(r=O.personalInformation.get("ownerPreviousPolicyNo"))?null:r.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(l=O.personalInformation.get("ownerPreviousPolicyNo"))?null:l.errors)&&((null==(l=O.personalInformation.get("ownerPreviousPolicyNo"))?null:l.dirty)||(null==(l=O.personalInformation.get("ownerPreviousPolicyNo"))?null:l.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(17,j,(null==(i=O.personalInformation.get("ownerPreviousPolicyCompany"))?null:i.invalid)&&((null==(i=O.personalInformation.get("ownerPreviousPolicyCompany"))?null:i.dirty)||(null==(i=O.personalInformation.get("ownerPreviousPolicyCompany"))?null:i.touched)))),e.R7$(5),e.Y8G("items",O.previousPolicyCompany),e.R7$(),e.Y8G("ngIf",(null==(v=O.personalInformation.get("ownerPreviousPolicyCompany"))?null:v.invalid)&&(null==(v=O.personalInformation.get("ownerPreviousPolicyCompany"))?null:v.touched)),e.R7$(2),e.Y8G("ngClass",e.eq3(19,j,(null==(I=O.personalInformation.get("ownerPreviousPolicyEndDate"))?null:I.errors)&&(null==(I=O.personalInformation.get("ownerPreviousPolicyEndDate"))?null:I.touched))),e.R7$(7),e.Y8G("bsConfig",e.lJ4(21,Be)),e.R7$(),e.Y8G("ngIf",(null==(k=O.personalInformation.get("ownerPreviousPolicyEndDate"))?null:k.errors)&&(null==(k=O.personalInformation.get("ownerPreviousPolicyEndDate"))?null:k.touched)),e.R7$(3),e.Y8G("ngClass",e.eq3(22,j,(null==(F=O.personalInformation.get("ownerPreviousPolicyType"))?null:F.invalid)&&((null==(F=O.personalInformation.get("ownerPreviousPolicyType"))?null:F.dirty)||(null==(F=O.personalInformation.get("ownerPreviousPolicyType"))?null:F.touched)))),e.R7$(6),e.Y8G("ngIf",!(null!=O.ncbDetailsA&&O.ncbDetailsA.isSoad)),e.R7$(5),e.Y8G("ngIf",1==(null==O.ncbDetailsA?null:O.ncbDetailsA.isSoad)),e.R7$(),e.Y8G("ngIf",(null==(L=O.personalInformation.get("ownerPreviousPolicyType"))?null:L.errors)&&((null==(L=O.personalInformation.get("ownerPreviousPolicyType"))?null:L.dirty)||(null==(L=O.personalInformation.get("ownerPreviousPolicyType"))?null:L.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(24,j,(null==(E=O.personalInformation.get("ownerNcbValue"))?null:E.invalid)&&((null==(E=O.personalInformation.get("ownerNcbValue"))?null:E.dirty)||(null==(E=O.personalInformation.get("ownerNcbValue"))?null:E.touched)))),e.R7$(5),e.Y8G("items",O.ncbValue),e.R7$(),e.Y8G("ngIf",(null==(W=O.personalInformation.get("ownerNcbValue"))?null:W.invalid)&&(null==(W=O.personalInformation.get("ownerNcbValue"))?null:W.touched))}}function R(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter TP Insurer Name"),e.k0s())}function X(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter TP Policy No"),e.k0s())}function oe(h,A){if(1&h&&(e.j41(0,"div",6)(1,"div",70),e.EFF(2," Previous TP Policy Details "),e.k0s(),e.j41(3,"div",8)(4,"div",10)(5,"div",11)(6,"div",146)(7,"label",41),e.EFF(8,"TP Plan Date From "),e.j41(9,"span",14),e.EFF(10,"*"),e.k0s()(),e.j41(11,"div",134),e.nrm(12,"img",19)(13,"input",147),e.k0s()()(),e.j41(14,"div",11)(15,"div",146)(16,"label",41),e.EFF(17,"TP Plan Date To "),e.j41(18,"span",14),e.EFF(19,"*"),e.k0s()(),e.j41(20,"div",134),e.nrm(21,"img",19)(22,"input",148),e.k0s()()()(),e.j41(23,"div",10)(24,"div",11)(25,"div",67)(26,"label",41),e.EFF(27,"TP Insurer Name "),e.j41(28,"span",14),e.EFF(29,"*"),e.k0s()(),e.nrm(30,"ngx-select",149),e.DNE(31,R,2,0,"small",16),e.k0s()(),e.j41(32,"div",11)(33,"div",12)(34,"label",41),e.EFF(35,"TP Policy No "),e.j41(36,"span",14),e.EFF(37,"*"),e.k0s()(),e.nrm(38,"input",150),e.DNE(39,X,2,0,"small",16),e.k0s()()()()()),2&h){let r,l,i,v;const I=e.XpG();e.R7$(13),e.Y8G("bsConfig",e.lJ4(7,Be)),e.R7$(9),e.Y8G("bsConfig",e.lJ4(8,Be)),e.R7$(3),e.Y8G("ngClass",e.eq3(9,j,(null==(r=I.personalInformation.get("ownerTPInsurerName"))?null:r.invalid)&&((null==(r=I.personalInformation.get("ownerTPInsurerName"))?null:r.dirty)||(null==(r=I.personalInformation.get("ownerTPInsurerName"))?null:r.touched)))),e.R7$(5),e.Y8G("items",I.previousPolicyCompany),e.R7$(),e.Y8G("ngIf",(null==(l=I.personalInformation.get("ownerTPInsurerName"))?null:l.errors)&&((null==(l=I.personalInformation.get("ownerTPInsurerName"))?null:l.dirty)||(null==(l=I.personalInformation.get("ownerTPInsurerName"))?null:l.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(11,j,(null==(i=I.personalInformation.get("ownerTPPolicyNo"))?null:i.invalid)&&((null==(i=I.personalInformation.get("ownerTPPolicyNo"))?null:i.dirty)||(null==(i=I.personalInformation.get("ownerTPPolicyNo"))?null:i.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(v=I.personalInformation.get("ownerTPPolicyNo"))?null:v.errors)&&((null==(v=I.personalInformation.get("ownerTPPolicyNo"))?null:v.dirty)||(null==(v=I.personalInformation.get("ownerTPPolicyNo"))?null:v.touched)))}}function Qe(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Nominee Name"),e.k0s())}function ee(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Nominee Relation "),e.k0s())}function Ae(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Nominee DOB "),e.k0s())}function ho(h,A){if(1&h){const r=e.RV6();e.j41(0,"div",6)(1,"div",70),e.EFF(2," Nominee Details "),e.k0s(),e.j41(3,"div",8)(4,"div",10)(5,"div",11)(6,"div",12)(7,"label",41),e.EFF(8,"Nominee Name "),e.j41(9,"span",14),e.EFF(10,"*"),e.k0s()(),e.nrm(11,"input",151),e.DNE(12,Qe,2,0,"small",16),e.k0s()(),e.j41(13,"div",11)(14,"div",67)(15,"label",13),e.EFF(16,"Nominee Relation "),e.j41(17,"span",14),e.EFF(18,"*"),e.k0s()(),e.nrm(19,"ngx-select",152),e.DNE(20,ee,2,0,"small",16),e.k0s()(),e.j41(21,"div",11)(22,"div",133)(23,"label",13),e.EFF(24,"Nominee DOB "),e.j41(25,"span",14),e.EFF(26,"*"),e.k0s()(),e.j41(27,"div",134),e.nrm(28,"img",19),e.j41(29,"input",153),e.bIt("bsValueChange",function(i){e.eBV(r);const v=e.XpG();return e.Njj(v.onNominieAge(i))})("keydown",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.disabledDate())}),e.k0s()(),e.DNE(30,Ae,2,0,"small",16),e.k0s()()()()()}if(2&h){let r,l,i,v,I,k;const F=e.XpG();e.R7$(6),e.Y8G("ngClass",e.eq3(9,j,(null==(r=F.personalInformation.get("ownerNomineeName"))?null:r.invalid)&&((null==(r=F.personalInformation.get("ownerNomineeName"))?null:r.dirty)||(null==(r=F.personalInformation.get("ownerNomineeName"))?null:r.touched))
1)),e.R7$(6),e.Y8G("ngIf",(null==(l=F.personalInformation.get("ownerNomineeName"))?null:l.errors)&&((null==(l=F.personalInformation.get("ownerNomineeName"))?null:l.dirty)||(null==(l=F.personalInformation.get("ownerNomineeName"))?null:l.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(11,j,(null==(i=F.personalInformation.get("ownerNomineeRelation"))?null:i.invalid)&&((null==(i=F.personalInformation.get("ownerNomineeRelation"))?null:i.dirty)||(null==(i=F.personalInformation.get("ownerNomineeRelation"))?null:i.touched)))),e.R7$(5),e.Y8G("items",F.nomineeRelation),e.R7$(),e.Y8G("ngIf",(null==(v=F.personalInformation.get("ownerNomineeRelation"))?null:v.invalid)&&(null==(v=F.personalInformation.get("ownerNomineeRelation"))?null:v.touched)),e.R7$(2),e.Y8G("ngClass",e.eq3(13,j,(null==(I=F.personalInformation.get("ownerNomineeDOB"))?null:I.invalid)&&((null==(I=F.personalInformation.get("ownerNomineeDOB"))?null:I.dirty)||(null==(I=F.personalInformation.get("ownerNomineeDOB"))?null:I.touched)))),e.R7$(7),e.Y8G("bsConfig",e.lJ4(15,at))("maxDate",F.childDateFormat),e.R7$(),e.Y8G("ngIf",(null==(k=F.personalInformation.get("ownerNomineeDOB"))?null:k.invalid)&&(null==(k=F.personalInformation.get("ownerNomineeDOB"))?null:k.touched))}}function Yt(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Appointeet Name"),e.k0s())}function ct(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Nominee Relation "),e.k0s())}function te(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Your Birth Date"),e.k0s())}function fe(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your Gender "),e.k0s())}function Co(h,A){if(1&h){const r=e.RV6();e.j41(0,"div",6)(1,"div",70),e.EFF(2," Appointee Details "),e.k0s(),e.j41(3,"div",8)(4,"div",10)(5,"div",154)(6,"div",12)(7,"label",13),e.EFF(8,"Enter Appointee Name "),e.j41(9,"span",14),e.EFF(10,"*"),e.k0s()(),e.j41(11,"input",155),e.bIt("keydown",function(i){e.eBV(r);const v=e.XpG();return e.Njj(v.Space(i))}),e.k0s(),e.DNE(12,Yt,2,0,"small",16),e.k0s()(),e.j41(13,"div",156)(14,"div",57)(15,"label",13),e.EFF(16,"Select Your Relation with Proposer "),e.j41(17,"span",14),e.EFF(18,"*"),e.k0s()(),e.nrm(19,"ngx-select",157),e.DNE(20,ct,2,0,"small",16),e.k0s()(),e.j41(21,"div",154)(22,"div",158)(23,"label",13),e.EFF(24,"DOB "),e.j41(25,"span",14),e.EFF(26,"*"),e.k0s()(),e.j41(27,"div",134),e.nrm(28,"img",19),e.j41(29,"input",159),e.bIt("keydown",function(){e.eBV(r);const i=e.XpG();return e.Njj(i.disabledDate())}),e.k0s()(),e.DNE(30,te,2,0,"small",16),e.k0s()(),e.j41(31,"div",156)(32,"div",57)(33,"label",13),e.EFF(34," Gender "),e.j41(35,"span",14),e.EFF(36,"*"),e.k0s()(),e.nrm(37,"ngx-select",160),e.DNE(38,fe,2,0,"small",16),e.k0s()()()()()}if(2&h){let r,l,i,v,I,k,F,L;const E=e.XpG();e.R7$(6),e.Y8G("ngClass",e.eq3(13,j,(null==(r=E.personalInformation.get("appointeetName"))?null:r.invalid)&&((null==(r=E.personalInformation.get("appointeetName"))?null:r.dirty)||(null==(r=E.personalInformation.get("appointeetName"))?null:r.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(l=E.personalInformation.get("appointeetName"))?null:l.errors)&&((null==(l=E.personalInformation.get("appointeetName"))?null:l.dirty)||(null==(l=E.personalInformation.get("appointeetName"))?null:l.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(15,j,(null==(i=E.personalInformation.get("appointeetRelation"))?null:i.invalid)&&((null==(i=E.personalInformation.get("appointeetRelation"))?null:i.dirty)||(null==(i=E.personalInformation.get("appointeetRelation"))?null:i.touched)))),e.R7$(5),e.Y8G("items",E.nomineeRelation),e.R7$(),e.Y8G("ngIf",(null==(v=E.personalInformation.get("appointeetRelation"))?null:v.invalid)&&(null==(v=E.personalInformation.get("appointeetRelation"))?null:v.touched)),e.R7$(2),e.Y8G("ngClass",e.eq3(17,j,(null==(I=E.personalInformation.get("appointeetDOB"))?null:I.invalid)&&((null==(I=E.personalInformation.get("appointeetDOB"))?null:I.dirty)||(null==(I=E.personalInformation.get("appointeetDOB"))?null:I.touched)))),e.R7$(7),e.Y8G("bsConfig",e.lJ4(19,at))("maxDate",E.maxDate)("minDate",E.minDate),e.R7$(),e.Y8G("ngIf",(null==(k=E.personalInformation.get("appointeetDOB"))?null:k.errors)&&((null==(k=E.personalInformation.get("appointeetDOB"))?null:k.dirty)||(null==(k=E.personalInformation.get("appointeetDOB"))?null:k.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(20,j,(null==(F=E.personalInformation.get("appointeetGender"))?null:F.invalid)&&((null==(F=E.personalInformation.get("appointeetGender"))?null:F.dirty)||(null==(F=E.personalInformation.get("appointeetGender"))?null:F.touched)))),e.R7$(5),e.Y8G("items",E.nomineeGender),e.R7$(),e.Y8G("ngIf",(null==(L=E.personalInformation.get("appointeetGender"))?null:L.invalid)&&(null==(L=E.personalInformation.get("appointeetGender"))?null:L.touched))}}function go(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Select Your choice"),e.k0s())}function mo(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Loan Provider Name"),e.k0s())}function le(h,A){if(1&h&&(e.j41(0,"div",161)(1,"div",12)(2,"label",13),e.EFF(3,"Loan Provider Name "),e.j41(4,"span",14),e.EFF(5,"*"),e.k0s()(),e.nrm(6,"input",162),e.DNE(7,mo,2,0,"small",16),e.k0s()()),2&h){let r,l;const i=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(2,j,(null==(r=i.personalInformation.get("ownerLoanProviderName"))?null:r.invalid)&&((null==(r=i.personalInformation.get("ownerLoanProviderName"))?null:r.dirty)||(null==(r=i.personalInformation.get("ownerLoanProviderName"))?null:r.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(l=i.personalInformation.get("ownerLoanProviderName"))?null:l.errors)&&((null==(l=i.personalInformation.get("ownerLoanProviderName"))?null:l.dirty)||(null==(l=i.personalInformation.get("ownerLoanProviderName"))?null:l.touched)))}}function ne(h,A){1&h&&(e.j41(0,"small",112),e.EFF(1,"Please Enter Disability Description"),e.k0s())}function Rt(h,A){if(1&h){const r=e.RV6();e.j41(0,"div",163)(1,"div",12)(2,"input",164),e.bIt("input",function(i){e.eBV(r);const v=e.XpG();return e.Njj(v.onInputDisability(i))})("keydown",function(i){e.eBV(r);const v=e.XpG();return e.Njj(v.Space(i))}),e.k0s(),e.DNE(3,ne,2,0,"small",16),e.k0s()()}if(2&h){let r,l;const i=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(2,j,(null==(r=i.HealthPersonalInfo.controls.personalInfo.get("DisableDecription"))?null:r.invalid)&&((null==(r=i.HealthPersonalInfo.controls.personalInfo.get("DisableDecription"))?null:r.dirty)||(null==(r=i.HealthPersonalInfo.controls.personalInfo.get("DisableDecription"))?null:r.touched)))),e.R7$(2),e.Y8G("ngIf",(null==(l=i.HealthPersonalInfo.controls.personalInfo.get("DisableDecription"))?null:l.errors)&&((null==(l=i.HealthPersonalInfo.controls.personalInfo.get("DisableDecription"))?null:l.dirty)||(null==(l=i.HealthPersonalInfo.controls.personalInfo.get("DisableDecription"))?null:l.touched)))}}let uo=(()=>{class h{constructor(r,l,i,v,I,k,F,L,E,W,O,Ce,J,z,be,De,Se,Le){this.fb=r,this.modalService=l,this.router=i,this.ngZone=v,this.google=I,this.journeyHomeService=k,this.transactionService=F,this._commonSrc=L,this.motorJourneyRepository=E,this.motorJourneyVehicalDetailsRepository=W,this.motorJourneyOwnerDetailsRepository=O,this.motorJourneyProductPlanRepository=Ce,this.motorJourneyCkycRepository=J,this.journeyAadrilaService=z,this.captchaService=be,this.aesHelper=De,this.smsEmailSrvc=Se,this.globalSpinnerService=Le,this.isDisabled=!0,this.isOtherBank=!1,this.errorMsgForVehicle=!1,this.requiredInputVal=!1,this.fieldDisabled=!0,this.pincodeErrorMsgRegistered=!1,this.pincodeErrorMsgOwner=!1,this.CKYCNumber=null,this.inPutreadonly=!0,this.pincodeReadOnly=!1,this.idNumberValidate=!0,this.rtoNoDisable=!1,this.subscriptions=new Y.yU,this.subscription=new Y.yU,this.StateListRegistered=[],this.StateListCommunication=[],this.cityListRegistered=[],this.cityListCommunication=[],this.previousPolicyCompany=[],this.ncbValue=["0%","20%","25%","35%","45%","50%"],this.nomineeRelation=["Father","Mother","Son","Daughter","Brother","Sister","Spouse"],this.nomineeGender=["Male","Female","Other"],this.accountType=["Saving","Current","Salary"],this.isAppointee=!1,this.isAppointeeValid=!1,this.stateMinLength=2,this.stateMaxlength=3,this.stateAccept="this.value=this.value.toUpperCase()",this.rtoMinLength=1,this.rtoMaxlength=2,this.midMinLength=1,this.midMaxlength=3,this.lastMinLength=4,this.lastMaxlength=4,this.isBharatSeries=!1,this.statePlaceholder="RJ1",this.rtoPlaceholder="14",this.midPlaceholder="DY",this.lastPlaceholder="2736",this.stateErrorMsg="Invalid State",this.rtoErrorMsg="Invalid Rto No.",this.midErrorMsg="Invalid Mid Value.",this.lastErrorMsg="2736",this.datepicketConfig={dateInputFormat:"DD/MM/YYYY",showWeekNumbers:!1},this.userCaptchaInput="",this.captchaText="",this.isCaptchaVerified=!1,this.isReferenceNumber=!1,this.IsDisable=!1,this.originalRefIDType="",this.selectedRefIDType="",this.isChangedRefIDType=!1,this.indianCitys=[],this.statelist=[],this.pincodelist=[],this.statedupliRemove=[],this.lstStateCity=[],this.statesList=[],this.citiesList=[],this.preferredCountries=[B.ij.India,B.ij.UnitedStates,B.ij.UnitedKingdom],this.onlyCountries=[B.ij.India],this.PhoneNumberFormat=B.Hr,this.CountryISO=B.ij,this.separateDialCode=!1,this.SearchCountryField=B.XY,this.idType=["PAN Card","Voter ID","Driving License","Passport","Aadhar Card","Existing CKYC Number","Reference Number"],this.checkAdtrilaCKYCData=!1,this.bankList=["Axis Bank Ltd.","Bandhan Bank Ltd.","CSB Bank Limited","City Union Bank Ltd.","DCB Bank Ltd.","Dhanlaxmi Bank Ltd.","Federal Bank Ltd.","HDFC Bank Ltd","ICICI Bank Ltd.","IndusInd Bank Ltd","IDFC FIRST Bank Limited","Jammu & Kashmir Bank Ltd.","Karnataka Bank Ltd.","Karur Vysya Bank Ltd.","Kotak Mahindra Bank Ltd","Nainital bank Ltd.","RBL Bank Ltd.","South Indian Bank Ltd.","Tamilnad Mercantile Bank Ltd.","YES Bank Ltd.","IDBI Bank Limited","Coastal Local Area Bank Ltd","Krishna Bhima Samruddhi LAB Ltd","Subhadra Local Bank Ltd","Au Small Finance Bank Ltd.","Capital Small Finance Bank Ltd","Fincare Small Finance Bank Ltd.","Equitas Small Finance Bank Ltd","ESAF Small Finance Bank Ltd.","Suryoday Small Finance Bank Ltd.","Ujjivan Small Finance Bank Ltd.","Utkarsh
1Small Finance Bank Ltd.","North East Small finance Bank Ltd","Jana Small Finance Bank Ltd","Shivalik Small Finance Bank Ltd","Unity Small Finance Bank Ltd","Airtel Payments Bank Ltd","India Post Payments Bank Ltd","FINO Payments Bank Ltd","Paytm Payments Bank Ltd","Jio Payments Bank Ltd","NSDL Payments Bank Limited","Bank of Baroda","Bank of India","Bank of Maharashtra","Canara Bank","Central Bank of India","Indian Bank","Indian Overseas Bank","Punjab & Sind Bank","Punjab National Bank","State Bank of India","UCO Bank","Union Bank of India","National Bank for Agriculture and Rural Development","Export-Import Bank of India","National Housing Bank","Small Industries Development Bank of India","Assam Gramin Vikash Bank","Andhra Pradesh Grameena Vikas Bank","Andhra Pragathi Grameena Bank","Arunachal Pradesh Rural Bank","Aryavart Bank","Bangiya Gramin Vikash Bank","Baroda Gujarat Gramin Bank","Baroda Rajasthan Kshetriya Gramin Bank","Baroda UP Bank","Chaitanya Godavari GB","Chhattisgarh Rajya Gramin Bank","Dakshin Bihar Gramin Bank","Ellaquai Dehati Bank","Himachal Pradesh Gramin Bank","J&K Grameen Bank","Jharkhand Rajya Gramin Bank","Karnataka Gramin Bank","Karnataka Vikas Gramin Bank","Kerala Gramin Bank","Madhya Pradesh Gramin Bank","Madhyanchal Gramin Bank","Maharashtra Gramin Bank","Manipur Rural Bank","Meghalaya Rural Bank","Mizoram Rural Bank","Nagaland Rural Bank","Odisha Gramya Bank","Paschim Banga Gramin Bank","Prathama U.P. Gramin Bank","Puduvai Bharathiar Grama Bank","Punjab Gramin Bank","Rajasthan Marudhara Gramin Bank","Saptagiri Grameena Bank","Sarva Haryana Gramin Bank","Saurashtra Gramin Bank","Tamil Nadu Grama Bank","Telangana Grameena Bank","Tripura Gramin Bank","Uttar Bihar Gramin Bank","Utkal Grameen Bank","Uttarbanga Kshetriya Gramin Bank","Vidharbha Konkan Gramin Bank","Uttarakhand Gramin Bank","Australia and New Zealand Banking Group Ltd.","National Australia Bank","Bank of Bahrain & Kuwait BSC","AB Bank Ltd.","Sonali Bank Ltd.\xa0","Bank of Nova Scotia","Industrial & Commercial Bank of China Ltd.","BNP Paribas","Credit Agricole
1Corporate & Investment Bank\xa0","Societe Generale","Deutsche Bank","HSBC Ltd\xa0","PT Bank Maybank Indonesia TBK","Mizuho Bank Ltd.","Sumitomo Mitsui Banking Corporation","MUFG Bank, Ltd.","Cooperatieve Rabobank U.A.","Doha Bank","Qatar National Bank SAQ","JSC VTB Bank","Sberbank","United Overseas Bank Ltd.","FirstRand Bank Ltd.","Shinhan Bank","Woori Bank","KEB Hana Bank","Industrial Bank of Korea","Bank of Ceylon","Credit Suisse A.G","CTBC Bank Co., Ltd.","Krung Thai Bank Public Co. Ltd.","Abu Dhabi Commercial Bank Ltd.","Mashreq Bank PSC","First Abu Dhabi Bank PJSC","Emirates NBD Bank PJSC","Barclays Bank Plc.","Standard Chartered Bank","NatWest Markets plc","American Express Banking Corp.","Bank of America","Citibank N.A.","J.P. Morgan Chase Bank N.A.","THE SHAMRAO VITHAL COOPERATIVE BANK","Saraswat Co-operative Bank Ltd","APNA SAHAKARI BANK LIMITED","Cosmos Co-Operative Bank Ltd","THE KOLHAPUR URBAN CO OP BANK LTD","SHRI PANCHGANGA NAGARI SAHKARI BANK LTD","RAJKOT NAGARIK SAHAKARI BANK LTD","Other"],this.createForm(),this.maxDate=new Date,this.maxDate.setFullYear(this.maxDate.getFullYear()-18),this.minDate=new Date,this.minDate.setFullYear(this.minDate.getFullYear()-75)}ngOnInit(){let r=JSON.parse(sessionStorage.getItem("manualKYCurlUpdate"));this.mngetCkycUpdateDlts=r,this.stateCondition=!0,this.vehicleMidCondition=!0,this.rtoCondition=!0,this.getPIPAdd(),this.loadCaptcha(),this.OTPactions(),this.journeyHomeService.savePersonalInfo.subscribe(l=>{1==l&&(this.onSubmitPersonalData(),this.storeTransactionData())}
1),this.getStatesListRegistered(),this.getStatesListCommunication(),this.initFinalPremium(),this.initJourneyData(),this.initValidations(),this.initVehicleSelectionData(),this.CompanyNameList(),this.handleIsLoanOpted(),this.motorJourneyRepository.quotationDialog$.pipe((0,Ie.p)(l=>!!l)).subscribe(l=>{this.vreg=l.vehicleNumber,this.mobileNo=l.vehicleOwnerMobileNumber,this.vehicleOwnerName=l.vehicleOwnerName}),this.personalInformation?.get("state")?.valueChanges.subscribe(l=>{null!=l&&""!=l?(this.personalInformation.value.state=this.personalInformation.get("state")?.value,this.personalInformation.get("state")?.value&&this.onVehicleNumberChangeOne(),!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value||this.personalInformation.get("state")?.value&&this.personalInformation.get("rtoNo")?.value&&this.personalInformation.get("vehicleLastNo")?.value?(this.stateCondition=!0,this.checkValidMidValidations(),this.rtoCondition=!0,this.requiredInputVal=!1):(this.personalInformation.value.state.length<3&&(this.requiredInputVal=!0),3==this.personalInformation.value.state.length&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.requiredInputVal=!0)),!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!1)):(this.rtoNoDisable=!1,!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!1),!this.personalInformation.get("state")?.value&&this.personalInformation.get("rtoNo")?.value&&(this.errorMsgForVehicle=!0),!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&(this.errorMsgForVehicle=!1,this.stateCondition=!0,!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.requiredInputVal=!1),this.personalInformation.get("vehicleLastNo")?.value&&(this.requiredInputVal=!0)))}),this.personalInformation?.get("rtoNo")?.valueChanges.subscribe(l=>{null!=l&&""!=l?(this.personalInformation.value.rtoNo=this.personalInformation.get("rtoNo")?.value,this.personalInformation.get("rtoNo")?.value&&this.onVehicleNumberChangeTwo(),(!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&!this.personalInformation.get("state")?.value||this.personalInformation.get("rtoNo")?.value&&this.personalInformation.get("vehicleLastNo")?.value&&this.personalInformation.get("state")?.value)&&(this.stateCondition=!0,this.checkValidMidValidations(),this.rtoCondition=!0,this.requiredInputVal=!1)):(!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!1),this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&(this.personalInformation.value.state.length<3&&(this.errorMsgForVehicle=!0),3==this.personalInformation.value.state.length&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.requiredInputVal=!0)),!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!!this.personalInformation.get("vehicleLastNo")?.value))}),this.personalInformation?.get("vehicleMidNo")?.valueChanges.subscribe(l=>{null!=l&&""!=l?(this.personalInformation.value.vehicleMidNo=this.personalInformation.get("vehicleMidNo")?.value,this.vehicleMidCondition=!0,this.personalInformation.get("vehicleMidNo")?.value&&this.checkValidMidValidations(),!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!1)):(this.vehicleMidCondition=!0,!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!1))}),this.personalInformation?.get("vehicleLastNo")?.valueChanges.subscribe(l=>{null!=l&&""!=l?(this.personalInformation.value.vehicleLastNo=this.personalInformation.get("vehicleLastNo")?.value,this.personalInformation.get("vehicleLastNo")?.value&&this.checkCommonValidations(),!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&!this.personalInformation.get("state")?.value||this.personalInformation.get("rtoNo")?.value&&this.personalInformation.get("vehicleLastNo")?.value&&this.personalInformation.get("state")?.value?(this.stateCondition=!0,this.checkValidMidValidations(),this.rtoCondition=!0,this.requiredInputVal=!1):this.personalInformation.value.state.length<3&&(this.requiredInputVal=!0),!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!1)):(!this.personalInformation.get("state")?.value&&!this.personalInformation.get("rtoNo")?.value&&!this.personalInformation.get("vehicleMidNo")?.value&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.errorMsgForVehicle=!1,this.requiredInputVal=!1),(this.personalInformation.get("state")?.value||this.personalInformation.get("rtoNo")?.value)&&!this.personalInformation.get("vehicleLastNo")?.value&&(this.requiredInputVal=!0))}),this.personalInformation?.valueChanges.subscribe(l=>
1{if(this.ckycDetails?.firstName&&"old"==this.vehicleSelection&&this.vehicleNo&&(this.vcNoFull=l.state+l.rtoNo+l.vehicleMidNo+l.vehicleLastNo),this.errorMsgForVehicle?setTimeout(()=>{this.journeyHomeService.validationPer.next("VALID"==this.personalInformation.status&&!this.errorMsgForVehicle&&!this.requiredInputVal&&this.stateCondition&&this.vehicleMidCondition&&this.rtoCondition)},300):this.journeyHomeService.validationPer.next("VALID"==this.personalInformation.status&&!this.errorMsgForVehicle&&!this.requiredInputVal&&this.stateCondition&&this.vehicleMidCondition&&this.rtoCondition),"VALID"==this.personalInformation.status&&!this.errorMsgForVehicle&&!this.requiredInputVal&&this.stateCondition&&this.vehicleMidCondition&&this.rtoCondition){this.personalInformation.value.ownerRegistrationNo="";let i=this.personalInformation.value.vehicleMidNo?this.personalInformation.value.vehicleMidNo:"",v=this.personalInformation.value.rtoNo?this.personalInformation.value.rtoNo:"";this.personalInformation.value.state&&this.personalInformation.value.vehicleLastNo&&(this.personalInformation.value.ownerRegistrationNo=this.personalInformation.get("state")?.value+v+i+this.personalInformation.get("vehicleLastNo")?.value,sessionStorage.setItem("mpc_vehicleNo",this.personalInformation.value.ownerRegistrationNo)),this.motorJourneyVehicalDetailsRepository.setVehicalDetails({rc_owner_ckycEmailId:this.personalInformation.value.ckycEmail??this.personalInformation.controls.ckycEmail?.value,rc_owner_ckycDob:this.personalInformation.value.dob??this.personalInformation.controls.dob?.value,rc_owner_ckycIdType:this.personalInformation.value.ID_Type??this.personalInformation.controls.ID_Type?.value,rc_owner_ckycIdNumber:this.personalInformation.value.ID_Number??this.personalInformation.controls.ID_Number?.value,rc_owner_ckycMobileNumber:this.personalInformation.value.ownerPhone??this.personalInformation.controls.ownerPhone?.value.number,rc_owner_first_name:this.personalInformation.value.ownerFirstName,rc_owner_middle_name:this.personalInformation.value.ownerMiddleName,rc_owner_last_name:this.personalInformation.value.ownerLastName,rc_owner_email_id:this.personalInformation.value.ownerEmailID,rc_owner_Marital_status:this.personalInformation.value.ownerMaritalStatus,rc_permanent_address:this.personalInformation.value.ownerRegisteredAddress,rc_owner_registered_address:this.personalInformation.value.ownerRegisteredAddress,rc_owner_registered_pincode:this.personalInformation.value.ownerRegisteredAddressPincode,rc_owner_registered_state:this.personalInformation.value.ownerRegisteredAddressState,rc_owner_registered_city:this.personalInformation.value.ownerRegisteredAddressCity,rc_owner_is_communication_registered_same:this.personalInformation.value.ownerIsCommunicationAddressSame,rc_owner_communication_address:this.personalInformation.value.ownerCommunicationAddress,rc_owner_communication_pincode:this.personalInformation.value.ownerCommunicationAddressPincode,rc_owner_communication_state:this.personalInformation.value.ownerCommunicationAddressState,rc_owner_communication_city:this.personalInformation.value.ownerCommunicationAddressCity,rc_regn_no:this.personalInformation.value.ownerRegistrationNo,rc_chasi_no:this.personalInformation.value.ownerChasisNo,rc_eng_no:this.personalInformation.value.ownerEngineNo,rc_policy_no:this.personalInformation.value.ownerPreviousPolicyNo,rc_company_name:this.personalInformation.value.ownerPreviousPolicyCompany,rc_nominee_name:this.personalInformation.value.ownerNomineeName,rc_nominee_relation:this.personalInformation.value.ownerNomineeRelation,rc_optedForLoan:this.personalInformation.value.ownerOptedForLoan,rc_loanProviderName:this.personalInformation.value.ownerLoanProviderName})}})}ngOnDestroy(){this.subscriptions.unsubscribe()}createForm(){this.personalInformation=this.fb.group({ckycEmail:["",_.k0.required],ckycPhone:[sessionStorage.getItem("mpc_mobileNo")||sessionStorage.getItem("mtw_mobileNo")||"",_.k0.required],dob:["",_.k0.required],ID_Type:["",_.k0.required],ID_Number:["",_.k0.required],captcha:[],tbConsent:[!1,_.k0.requiredTrue],ownerFirstName:["",[_.k0.required,this.noWhitespaceValidator]],ownerMiddleName:[""],ownerLastName:["",[_.k0.required,this.noWhitespaceValidator]],ownerEmailID:["",_.k0.required],ownerPhone:["",_.k0.required],ownerMaritalStatus:["",_.k0.required],ownerRegisteredAddress:["",_.k0.required],ownerRegisteredAddressPincode:["",_.k0.required],ownerRegisteredAddressState:["",_.k0.required],ownerRegisteredAddressCity:["",_.k0.required],OwnerAccountName:["",_.k0.required],OwnerAccountNo:["",_.k0.required],OwnerBankList:["",_.k0.required],OwnerBankName:["",_.k0.required],OwnerAccountType:["",_.k0.required],OwnerIFSCCode:["",_.k0.required],OwnerPanNo:["",_.k0.required],ownerIsCommunicationAddressSame:[!1],ownerCommunicationAddress:["",_.k0.required],ownerCommunicationAddressPincode:["",_.k0.required],ownerCommunicationAddressState:["",_.k0.required],ownerCommunicationAddressCity:["",_.k0.required],ownerRegistrationNo:[{value:""}],ownerChasisNo:[{value:""},_.k0.required],ownerEngineNo:[{value:""},_.k0.required],ownerPreviousPolicyCompany:[""],ownerPreviousPolicyNo:[""],ownerPreviousPolicyEndDate:[{value:"",disabled:!0}],ownerPreviousPolicyType:[{value:"Comprehensive",disabled:!0}],ownerNcbValue:[{value:"",disabled:!0}],owneTpPolicyPlanFromDate:[{value:"",disabled:!0}],owneTpPolicyPlanToDate:[{value:"",disabled:!0}],ownerTPInsurerName:[""],ownerTPPolicyNo:[""],ownerNomineeName:[""],ownerNomineeRelation:[""],ownerNomineeDOB:[""],appointeetName:[""],appointeetRelation:[""],appointeetDOB:[""],appointeetGender:[""],ownerOptedForLoan:["No"],ownerLoanProviderName:[""],ownerIsAgreeTermsAndConditions:[{value:!0,disabled:!0},_.k0.required],state:[{value:""}],rtoNo:[{value:""}],vehicleMidNo:[{value:""}],vehicleLastNo:[{value:""}],IsPhysicalCopy:[!1],IsPEP:["No"],IsDisableDeclare:[!1],DisableDecription:[""],IsDataPrivacy:[!1,_.k0.required]}),setTimeout(()=>{$("#No").prop("checked",!0)},500)}initValidations(){"old"==this.vehicleSelection?(this.personalInformation.controls.state.setValidators([_.k0.required]),this.personalInformation.controls.state.updateValueAndValidity(),this.personalInformation.controls.rtoNo.setValidators([_.k0.required]),this.personalInformation.controls.rtoNo.updateV
1alueAndValidity(),this.personalInformation.controls.vehicleMidNo.setValidators([]),this.personalInformation.controls.vehicleMidNo.updateValueAndValidity(),this.personalInformation.controls.vehicleLastNo.setValidators([_.k0.required]),this.personalInformation.controls.vehicleLastNo.updateValueAndValidity(),this.personalInformation.controls.ownerChasisNo.setValidators([_.k0.required]),this.personalInformation.controls.ownerChasisNo.updateValueAndValidity(),this.personalInformation.controls.ownerEngineNo.setValidators([_.k0.required]),this.personalInformation.controls.ownerEngineNo.updateValueAndValidity()):(this.personalInformation.controls.ownerChasisNo.setValidators([_.k0.required,_.k0.minLength(5)]),this.personalInformation.controls.ownerChasisNo.updateValueAndValidity(),this.personalInformation.controls.ownerEngineNo.setValidators([_.k0.required,_.k0.maxLength(25)]),this.personalInformation.controls.ownerEngineNo.updateValueAndValidity()),"old"==this.vehicleSelection&&"Yes"==this.ncbDetails&&(this.personalInformation.controls.ownerPreviousPolicyNo.setValidators([_.k0.required]),this.personalInformation.controls.ownerPreviousPolicyNo.updateValueAndValidity(),this.personalInformation.controls.ownerPreviousPolicyCompany.setValidators([_.k0.required]),this.personalInformation.controls.ownerPreviousPolicyCompany.updateValueAndValidity(),this.personalInformation.controls.ownerPreviousPolicyEndDate.setValidators([_.k0.required]),this.personalInformation.controls.ownerPreviousPolicyEndDate.updateValueAndValidity(),this.personalInformation.controls.ownerPreviousPolicyType.setValidators([_.k0.required]),this.personalInformation.controls.ownerPreviousPolicyType.updateValueAndValidity(),this.personalInformation.controls.ownerNcbValue.setValidators([_.k0.required]),this.personalInformation.controls.ownerNcbValue.updateValueAndValidity()),"old"==this.vehicleSelection&&"Yes"==this.ncbDetails&&1==this.ncbDetailsA?.isSoad&&(this.personalInformation.controls.owneTpPolicyPlanFromDate.setValidators([_.k0.required]),this.personalInformation.controls.owneTpPolicyPlanFromDate.updateValueAndValidity(),this.personalInformation.controls.owneTpPolicyPlanToDate.setValidators([_.k0.required]),this.personalInformation.controls.owneTpPolicyPlanToDate.updateValueAndValidity(),this.personalInformation.controls.ownerTPInsurerName.setValidators([_.k0.required]),this.personalInformation.controls.ownerTPInsurerName.updateValueAndValidity(),this.personalInformation.controls.ownerTPPolicyNo.setValidators([_.k0.required]),this.personalInformation.controls.ownerTPPolicyNo.updateValueAndValidity()),"No"==this.paCover&&"No"==this.gpaCover&&(this.personalInformation.controls.ownerNomineeName.setValidators([_.k0.required]),this.personalInformation.controls.ownerNomineeName.updateValueAndValidity(),this.personalInformation.controls.ownerNomineeRelation.setValidators([_.k0.required]),this.personalInformation.controls.ownerNomineeRelation.updateValueAndValidity(),this.personalInformation.controls.ownerNomineeDOB.setValidators([_.k0.required]),this.personalInformation.controls.ownerNomineeDOB.updateValueAndValidity())}noWhitespaceValidator(r){return 0!==(r.value||"").trim().length?null:{whitespace:!0}}Space(r){0===r.target.selectionStart&&"Space"===r.code&&r.preventDefault()}openCkycProcessPopup(r){this.modalService.show(je.z,Object.assign({class:"term-condition-popup modal-lg",initialState:{ckycUrl:r},backdrop:"static"}))}openCkycCompletedPopup(){this.modalService.show(Ye.c,Object.assign({class:"ckyc-completed-popup modal-lg bottom-slide",backdrop:"static"}))}getCkycDetailsOnSubmit(){if(this.idNumberValidate){let k,F;if(this.InsertUserLogs({Name:this.personalInformation.value.ownerFirstName?this.personalInformation.value.ownerFirstName:"",AgentType:this.personalInformation.value.vehicleNo?this.personalInformation.value.vehicleNo:"",MobileNumber:this.personalInformation.value.ID_Number?this.personalInformation.value.ID_Number:"",AddressNetwork:this.mobileNo?this.mobileNo:""}),(0,Te.G)().forEach(de=>{Re.pQ.reset()}),this.personalInformation.value.dob instanceof Date){k=o(this.personalInformation.value.dob).format("DD-MM-YY");const[de,M,_e]=k.split("-");F=[de,M,_e].join("-").replaceAll("-","")}else if("string"!=typeof this.personalInformation.value.dob){var r=new Date(this.personalInformation.value.dob).getFullYear().toString();k=o(this.personalInformation.value.dob).format("DD-MM");const[de,M]=k.split("-");F=[M,de,r.substr(2,4)].join("")}else{k=this.personalInformation.value.dob.split("-");const de=k[0],M=k[1];F=[de,M,this.personalInformation.value.dob.substr(8,9)].join("");var i=k[2];this.personalInformation.value.dob=[M,de,i].join("-"),this.formDobVal=[de,M,i].join("-")}this.personalInformation.controls.OwnerPanNo.setValue("PAN"==this.idTypeApi?this.personalInformation.value.ID_Number:"");let L=100,O="WEBONLINE/"+F+"/"+(Math.floor(Math.random()*(999-L+1))+L);this.uniqueNo=O,sessionStorage.setItem("hap_dob",o(this.personalInformation.value.dob).format("DD-MM-YYYY"));let J=(Date,o(this.personalInformation.value.dob).format("DD-MM-YYYY"));"Invalid date"!==J?(Date,J=o(this.personalInformation.value.dob).format("DD-MM-YYYY")):J=this.personalInformation.value.dob;let z={source:"WEBONLINE",customerType:"I",uniqueTransactionNumber:O,idType:this.idTypeApi,idNo:this.personalInformation.value.ID_Number,dob:J,mobileNo:this.mobileNo,pincode:"",cKYCNo:""},be={source:"WEBONLINE",customerType:"I",uniqueTransactionNumber:O,idType:"",idNo:"",dob:"",mobileNo:"",pincode:"",cKYCNo:""},Se={email:this.personalInformation.value.ckycEmail,customerName:this.vehicleOwnerName};if(sessionStorage.setItem("Consent",1==this.personalInformation.value.tbConsent?"Yes":"No"),this._commonSrc.CustomerConsent(this.personalInformation.value.ownerFirstName,this.personalInformation.value.ownerPhone,"",1==this.personalInformation.value.tbConsent?"Yes":"No").subscribe(de=>{}),"Reference Number"===this.personalInformation.value.ID_Type)this.journeyHomeService.checkCKYCReturningUser({source:"WEBONLINE",uniqueTransactionNumber:this.personalInformation.value.ID_Number}).subscribe(M=>
1{if(M){let we={MobileNumber:this.mobileNo,CusomerName:this.vehicleOwnerName};if(M.result)if("True"===M.result.kycVerifiedStatus){this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue();var me=this.vehicleSelection,U=this.vehicleOwnerName.split(" "),Q=M.result.name.split(" "),Ne=o(M.result.dob).format("DD-MM-YYYY");console.log("Checking DOB:",Ne,z.dob),"old"==me&&U[0].toUpperCase()===Q[0].toUpperCase()||"new"==me?(this.openCkycCompletedPopup(),this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:this.personalInformation.value.ID_Number,address1:M.result.address,firstName:M.result.name,pincode:M.result.pincode,city:M.result.city,state:M.result.state,email:M.result.email||this.personalInformation.value.email,dob:M.result.dob,kycVerify:M.result.kycVerifiedStatus,mobileNumber:M.result.mobileNumber||this.mobileNo,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number,PanNumber:M.result.pan})):this.ckycMismatchedPopup(),setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}else"False"===M.result.kycVerifiedStatus&&(this.openErrorPopup("This is not valid number"),this.journeyHomeService.SendSMSCKYCUser(we).subscribe(ie=>{console.log("CkycSMS",ie)},ie=>{console.log(ie)}),this.journeyHomeService.CKYCUsgiEmailApi(Se).subscribe(ie=>{console.log("usgiEmailApi",ie)},ie=>{console.log(ie)}));else this.openErrorPopup("This is not valid number"),this.journeyHomeService.SendSMSCKYCUser(we).subscribe(ie=>{console.log("CkycSMS",ie)},ie=>{console.log(ie)}),this.journeyHomeService.CKYCUsgiEmailApi(Se).subscribe(ie=>{console.log("usgiEmailApi",ie)},ie=>{console.log(ie)})}});else{var v=this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue();this._commonSrc.CKYCTokenWeb().subscribe(de=>{"Y"==de?.Flag&&this._commonSrc.CKYCSearchUser_web(z,de?.Token).subscribe(M=>{if(M)if(M.result.ckycNo){var _e=this.vehicleSelection;this._commonSrc.CKYCTokenWeb().subscribe(me=>{"Y"==me?.Flag&&this._commonSrc.DownloadKYCDetailsMCA(be,me?.Token).subscribe(U=>{if(U.result.ckycNo){this.ckycMobileNumber=M.result.mobileNumber,this.ckycNum=M.result.ckycNo;var Q="old"==_e?v.rc_f_name?.split(" "):"";Q=Q??"";let we=this.customerDetails?.rc_owner_first_name?.split(" ")?this.customerDetails?.rc_owner_first_name?.split(" "):"";var Ne=M.result.firstName,ce=o(M.result.dob).format("DD-MM-YYYY");if(console.log("Checking DOB:",ce,z.dob),"old"==_e&&Q[0].toUpperCase()===Ne.toUpperCase()||"new"==_e){let ie=Ne?.toUpperCase()===we[0]?.toUpperCase();1==ie?(this.openCkycCompletedPopup(),this.subscription.add(this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({CKYCNumber:U.result.ckycNo,UidNumber:O,address1:M.result.address1,address2:M.result.address2,address3:M.result.address3,pincode:M.result.pincode,city:M.result.city,state:M.result.state,permAndCorresAddSame:M.result.permAndCorresAddSame,corresAddress1:M.result.corresAddress1,corresAddress2:M.result.corresAddress2,corresAddress3:M.result.corresAddress3,corresCity:M.result.corresCity,corresDist:M.result.corresDist,corresState:M.result.corresState,corresCountry:M.result.corresCountry,corresPin:M.result.corresPin,firstName:M.result.firstName,middleName:M.result.middleName,lastName:M.result.lastName,email:M.result.email||this.personalInformation.value.ckycEmail,mobileNumber:M.result.mobileNumber,dob:U.result.dob,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number})),this.subscription.add(this.motorJourneyVehicalDetailsRepository.setVehicalDetails({rc_owner_uniqueKycNumber:U.result.ckycNo,rc_owner_ekycNo:O}))):0==ie&&""!=we&&this.vcModelMismatchedPopup("Your CKYC details are not matching with your registration number."),""===we?(this.openCkycCompletedPopup(),this.subscription.add(this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({CKYCNumber:U.result.ckycNo,UidNumber:O,address1:M.result.address1,address2:M.result.address2,address3:M.result.address3,pincode:M.result.pincode,city:M.result.city,state:M.result.state,permAndCorresAddSame:M.result.permAndCorresAddSame,corresAddress1:M.result.corresAddress1,corresAddress2:M.result.corresAddress2,corresAddress3:M.result.corresAddress3,corresCity:M.result.corresCity,corresDist:M.result.corresDist,corresState:M.result.corresState,corresCountry:M.result.corresCountry,corresPin:M.result.corresPin,firstName:M.result.firstName,middleName:M.result.middleName,lastName:M.result.lastName,email:M.result.email||this.personalInformation.value.ckycEmail,mobileNumber:M.result.mobileNumber,dob:U.result.dob,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number,PanNumber:M.result.pan})),this.subscription.add(this.motorJourneyVehicalDetailsRepository.setVehicalDetails({rc_owner_uniqueKycNumber:U.result.ckycNo,rc_owner_ekycNo:O}))):0==ie&&this.vcModelMismatchedPopup("Your CKYC details are not matching with your registration number.")}else this.ckycMismatchedPopup();setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}})})}else M.result.manualKYCurl&&this.journeyHomeService.checkCKYCUniqueNo(this.idTypeApi,this.personalInformation.value.ID_Number).subscribe(me=>
1{if(0===me.length){let U={journeyType:"New",productName:"Motor",Name:"",ckycuid:O,documentType:this.idTypeApi,documentNumber:this.personalInformation.value.ID_Number,name:"old"==_e?v.rc_f_name?.split(" "):this.vehicleOwnerName,dob:this.personalInformation.value.dob,ckycmanualurl:M.result.manualKYCurl};this.journeyHomeService.CKYCUserDataSaveWeb(U).subscribe(ce=>{console.log("CKYCUserDataSave",ce)},ce=>{console.log(ce)}),this.subscription.add(this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:O,dob:o(this.personalInformation.value.dob).format("DD-MM-YYYY")})),this.openCkycProcessPopup(M.result.manualKYCurl);let Q={mobileNo:this.mobileNo,smsContent:`Dear ${"old"==this.vehicleSelection?v.rc_f_name?.split(" ")[0]:this.vehicleOwnerName} ,Greetings from Universal Sompo General Insurance! Click here ${M.result.manualKYCurl} to complete your KYC. Please ignore if you have completed the KYC.`};const Ne={auth:{WACode:"20000141",WAAppCode:"30000143",Source:"USGI Website"},subject:"Kindly Complete Your KYC",to:[{email:this.personalInformation.value.ckycEmail,name:"old"==this.vehicleSelection?v.rc_f_name?.split(" ")[0]:this.vehicleOwnerName}],cc:[{email:"None"}],bcc:[{email:"None"}],content:[{type:"html",value:`<p>Hi ${"old"==this.vehicleSelection?v.rc_f_name?.split(" ")[0]:this.vehicleOwnerName}</br></br> Thank you for choosing Universal Sompo General Insurance as your Insurance Partner. Please complete your KYC by clicking ${M.result.manualKYCurl}.</br></br> We promise to be there for you 24x7, whenever you need us. In case you have any query, feel free to reach us at 1800 200 4030 or mail at [email protected]. </br></br>Don't forget to download PULZ App on which you can manage your policy easily and explore a host of value-added services. </br></br>Explore the app: <a href='play.google.com/store/apps/details?id=com.universalsompo.meta' target='_blank'>Download LINK</p>`}]};this._commonSrc.CKYCSendEmail(Ne).subscribe(ce=>{console.log("CkycEmail",ce)},ce=>{console.log(ce)}),this._commonSrc.CKYCSendSms(Q).subscribe(ce=>{console.log("usgiSMSApi",ce)},ce=>{console.log(ce)})}else this.journeyHomeService.checkCKYCReturningUser({source:"WEBONLINE",uniqueTransactionNumber:me[0].CKYCUID}).subscribe(Q=>{if(Q)if(Q.result)if("True"===Q.result.kycVerifiedStatus){var Ne=this.vehicleOwnerName.split(" "),ce=Q.result.name,xe=o(Q.result.dob).format("DD-MM-YYYY"),we=z.dob;console.log("Checking DOB:",xe,we),console.log("Checking Name:",Ne[0].toUpperCase(),ce.toUpperCase()),Ne[0].toUpperCase()===ce.toUpperCase()&&xe===we?(this.openCkycCompletedPopup(),this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:me[0].CKYCUID,address1:Q.result.address,firstName:Q.result.name,pincode:Q.result.pincode,city:Q.result.city,state:Q.result.state,email:Q.result.email||this.personalInformation.value.email,dob:Q.result.dob,kycVerify:Q.result.kycVerifiedStatus,mobileNumber:Q.result.mobileNumber||this.mobileNo,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number,PanNumber:Q.result.pan})):this.ckycMismatchedPopup(),setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}else"False"===Q.result.kycVerifiedStatus&&this.openCkycProcessPopup(me[0].CkycManualUrl);else{this.openCkycProcessPopup(me[0].CkycManualUrl);let yo={mobileNo:this.mobileNo,smsContent:`Dear ${"old"==this.vehicleSelection?v.rc_f_name?.split(" ")[0]:this.vehicleOwnerName} ,Greetings from Universal Sompo General Insurance! Click here ${me[0].
1CkycManualUrl} to complete your KYC. Please ignore if you have completed the KYC.`};const dt={auth:{WACode:"20000141",WAAppCode:"30000143",Source:"USGI Website"},subject:"Kindly Complete Your KYC",to:[{email:this.personalInformation.value.ckycEmail,name:"old"==this.vehicleSelection?v.rc_f_name?.split(" ")[0]:this.vehicleOwnerName}],cc:[{email:"None"}],bcc:[{email:"None"}],content:[{type:"html",value:`<p>Hi ${"old"==this.vehicleSelection?v.rc_f_name?.split(" ")[0]:this.vehicleOwnerName}</br></br> Thank you for choosing Universal Sompo General Insurance as your Insurance Partner. Please complete your KYC by clicking ${me[0].CkycManualUrl}.</br></br> We promise to be there for you 24x7, whenever you need us. In case you have any query, feel free to reach us at 1800 200 4030 or mail at [email protected]. </br></br>Don't forget to download PULZ App on which you can manage your policy easily and explore a host of value-added services. </br></br>Explore the app: <a href='play.google.com/store/apps/details?id=com.universalsompo.meta' target='_blank'>Download LINK</p>`}]};this._commonSrc.CKYCSendEmail(dt).subscribe(ke=>{console.log("CkycEmail",ke)},ke=>{console.log(ke)}),this._commonSrc.CKYCSendSms(yo).subscribe(ke=>{console.log("usgiSMSApi",ke)},ke=>{console.log(ke)}),(0,Te.G)().forEach(ke=>{Re.pQ.reset()}),this.bindPersonalInformationDataToForm()}})})})})}sessionStorage.setItem("mv_dob",this.personalInformation.value.dob instanceof Date?o(this.personalInformation.value.dob).format("DD-MM-YYYY"):this.formDobVal),sessionStorage.setItem("mv_ID_Type",this.personalInformation.value.ID_Type),sessionStorage.setItem("mv_ID_TypeAPI",this.idTypeApi),sessionStorage.setItem("mv_ID_Number",this.personalInformation.value.ID_Number),sessionStorage.setItem("mv_email",this.personalInformation.value.ckycEmail)}}countryChange(){this.personalInformation.controls.ownerPhone.reset()}onPersonalInfromationContinueCta(){this.router.navigateByUrl("/motor-insurance-buy-now/summary"),this.onSubmitPersonalData()}initFinalPremium(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Ie.p)(r=>!!r)).subscribe(r=>{this.finalPremium=r.finalPremium}))}initJourneyData(){this.subscriptions.add(this.motorJourneyRepository.motorJourney$.pipe((0,Ie.p)(r=>!!r)).subscribe(r=>{this.vehicleNo=r.quotationDialog.vehicleNumber,this.vehicleSelection=r.quotationDialog.vehicleSelection,this.VehicleNoPresent=r.quotationDialog.VehicleNoPresent,this.vehicleType=r.quotationDialog.vehicleType,this.paCover=r.personalAccidentCover.isAlternatePAC
1overPresent,this.gpaCover=r.personalAccidentCover.isAlternateGPACoverPresent,this.ncbDetailsA=r.previousPolicyDialog,"Liability"===this.ncbDetailsA.previousPolicyType&&(this.ncbDetailsA.isSoad=!1),this.personalInformation.controls.ownerPreviousPolicyType.setValue(this.ncbDetailsA.previousPolicyType),this.ncbDetails=this.ncbDetailsA.previousPolicyPresent,this.selectedNcbValue=this.ncbDetailsA.previousPolicyyNoClaimBonus}))}initVehicleSelectionData(){let r;this.motorJourneyRepository.previousPolicyDialog$.subscribe(l=>{this.previousPolicy=l,this.previousNcbValue=l.previousPolicyyNoClaimBonus}),this.subscriptions.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.subscribe(l=>{this.sectionNo=l,("true"===this.VehicleNoPresent||l?.rc_chasi_no)&&(this.ChasisNo=l?.rc_chasi_no,this.EngineNo=l?.rc_eng_no),JSON.stringify(l)!=JSON.stringify(r)&&(r=l,this.customerDetails=l,l&&("Yes"==l?.rc_optedForLoan&&this.personalInformation.controls.ownerLoanProviderName.setValidators([_.k0.required]),this.bindPersonalInformationDataToForm(),setTimeout(()=>{$(`#${l?.rc_optedForLoan}`).prop("checked",!0)},500),l.rc_owner_is_communication_registered_same||this.ckycDetails.CKYCNumber?this.personalInformation.get(["ownerIsCommunicationAddressSame"])?.patchValue(!0):this.personalInformation.get(["ownerIsCommunicationAddressSame"])?.patchValue(!1),this.journeyHomeService.validationPer.next("VALID"==this.personalInformation.status)))}).unsubscribe())}bindPersonalInformationDataToForm(){this.state=this.sectionNo?.rc_regState,this.rtoNo=this.sectionNo?.rc_regRtoNo,this.vehicleMidNo=this.sectionNo?.rc_regVehicleMidNo,this.vehicleLastNo=this.sectionNo?.rc_regVehicleLastNo,-1!=(this.rtoNo??"").indexOf("BH")&&(this.stateMinLength=2,this.stateMaxlength=2,this.rtoMinLength=2,this.rtoMaxlength=2,this.midMinLength=4,this.midMaxlength=4,this.lastMinLength=1,this.lastMaxlength=2,this.statePlaceholder="22",this.rtoPlaceholder="BH",this.midPlaceholder="1234",this.lastPlaceholder="AA",this.stateErrorMsg="Enter first two numbers",this.rtoErrorMsg="Enter BH",this.midErrorMsg="Enter four digits numbers"),null!=this.state&&3===this.state.length&&(this.rtoNoDisable=!0,this.personalInformation.controls.rtoNo.setValidators([]),this.personalInformation.controls.rtoNo.updateValueAndValidity()),this.ckycDetails=this.motorJourneyCkycRepository.getMotorJourneyCkycValue(),this.ckycDetailsNew=this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue(),this.idTypeApi=sessionStorage.getItem("mv_ID_TypeAPI")||"";let r="";if(null!=sessionStorage.getItem("mv_dob")){let L=sessionStorage.getItem("mv_dob");const E=o(L).format("DD-MM-YYYY");if(L instanceof Date&&null!=E){const[W,O,Ce]=E.split("-");r=[W,O,Ce].join("-"),sessionStorage.setItem("mv_dob",r)}}let l=sessionStorage.getItem("mv_dob")?sessionStorage.getItem("mv_dob"):"";if(this.ckycDetails.CKYCNumber)this.inPutreadonly=!0,this.pincodeReadOnly=!0,this.personalInformation.controls.ownerPhone.disable(),this.customerDetails?.tbConsent&&this.personalInformation.get(["tbConsent"])?.patchValue(!0),this.personalInformation.patchValue({ckycEmail:this.ckycDetailsNew.rc_owner_ckycEmailId||sessionStorage.getItem("mv_email"),dob:o(this.ckycDetails.dob,"DD-MM-YYYY")?o(this.ckycDetails.dob,"DD-MM-YYYY").format("DD-MM-YYYY"):this.personalInformation.get(["dob"])?.setValue(sessionStorage.getItem("hap_dob")?o(sessionStorage.getItem("hap_dob")).format("DD-MM-YYYY"):o(this.mngetCkycUpdateDlts?.dob).format("DD-MM-YYYY")?o(this.mngetCkycUpdateDlts?.dob).format("DD-MM-YYYY"):""),ID_Type:this.ckycDetailsNew.rc_owner_ckycIdType||sessionStorage.getItem("mv_ID_Type"),ID_Number:this.ckycDetailsNew.rc_owner_ckycIdNumber||sessionStorage.getItem("mv_ID_Number"),ownerFirstName:this.ckycDetails.firstName,ownerMiddleName:this.ckycDetails.middleName||".",ownerLastName:this.ckycDetails.lastName||".",ownerEmailID:this.ckycDetails.email?this.ckycDetails.email:this.customerDetails.rc_owner_email_id,ownerPhone:this.personalInformation.value.ckycPhone?.number.trim()?this.personalInformation.value.ckycPhone?.number.trim():this.ckycDetail
1s.mobileNumber?this.ckycDetails.mobileNumber:this.ckycDetailsNew.rc_owner_ckycMobileNumber,ownerMaritalStatus:this.customerDetails.rc_owner_Marital_status,ownerRegisteredAddress:`${this.ckycDetails.address1}, ${this.ckycDetails.address2}, ${this.ckycDetails.address3}`||"",ownerRegisteredAddressPincode:this.ckycDetails.pincode,ownerRegisteredAddressState:this.ckycDetails.state,ownerRegisteredAddressCity:this.ckycDetails.city,ownerIsCommunicationAddressSame:"Y"==this.ckycDetails.permAndCorresAddSame?"true":"false",ownerCommunicationAddress:`${this.ckycDetails.corresAddress1}, ${this.ckycDetails.corresAddress2}, ${this.ckycDetails.corresAddress3}`||"",ownerCommunicationAddressPincode:this.ckycDetails.corresPin,ownerCommunicationAddressState:this.ckycDetails.corresState,ownerCommunicationAddressCity:this.ckycDetails.corresCity,ownerRegistrationNo:this.customerDetails?.rc_regn_no?this.customerDetails?.rc_regn_no:this.vehicleNo||"",ownerChasisNo:this.customerDetails?.rc_chasi_no||"",ownerEngineNo:this.customerDetails?.rc_eng_no||"",ownerPreviousPolicyNo:this.customerDetails?.rc_policy_no||"",ownerPreviousPolicyCompany:this.customerDetails?.rc_company_name||"",ownerPreviousPolicyEndDate:this.previousPolicy?.previousPolicyEndDate||"",owneTpPolicyPlanToDate:this.previousPolicy?.policyEffectiveTo||"",owneTpPolicyPlanFromDate:this.previousPolicy?.previousPolicyEndDate||"",ownerNcbValue:this.previousNcbValue||"",ownerPreviousPolicyType:this.ncbDetailsA?.previousPolicyType||"",ownerTPInsurerName:this.customerDetails?.rc_TPInsuranceName,ownerTPPolicyNo:this.customerDetails?.rc_TPInsurancePolicy,ownerNomineeName:this.customerDetails?.rc_nominee_name||"",ownerNomineeRelation:this.customerDetails?.rc_nominee_relation||"",ownerOptedForLoan:this.customerDetails?.rc_optedForLoan||"No",ownerLoanProviderName:this.customerDetails?.rc_loanProviderName||"",ownerNomineeDOB:this.customerDetails?.rc_ownerNomineeDOB?this.formatDate(this.customerDetails?.rc_ownerNomineeDOB):"",state:this.state||"",rtoNo:this.rtoNo||"",vehicleMidNo:this.vehicleMidNo||"",vehicleLastNo:this.vehicleLastNo||"",OwnerPanNo:this.ckycDetails.PanNumber||("PAN"==this.ckycDetails.idType?this.ckycDetails.idNumber:"")||"",OwnerAccountName:this.customerDetails.OwnerAccountName||"",OwnerAccountNo:this.customerDetails.OwnerAccountNo||"",OwnerBankList:this.customerDetails.OwnerBankList||"",OwnerBankName:this.customerDetails.OwnerBankName||"",OwnerAccountType:this.customerDetails.OwnerAccountType||"",OwnerIFSCCode:this.customerDetails.OwnerIFSCCode||""});else if(this.ckycDetails.kycVerify){this.inPutreadonly=!0,this.pincodeReadOnly=!1,this.personalInformation.controls.ownerPhone.disable();var v=(i=this.ckycDetails.firstName.split(" ")).length>0?i[0]:this.ckycDetails.firstName,I=i.length>2?i[1]:"",k=i.length>2?i[2]:2==i.length?i[1]:"";this.customerDetails?.tbConsent&&this.personalInformation.get(["tbConsent"])?.patchValue(!0),this.personalInformation.patchValue({ckycEmail:this.ckycDetailsNew.rc_owner_ckycEmailId||sessionStorage.getItem("mv_email"),dob:this.ckycDetailsNew.rc_owner_ckycDob||(l||this.ckycDetails.dob instanceof Date?this.ckycDetails.dob:o(this.mngetCkycUpdateDlts?.dob).format("DD-MM-YYYY")?o(this.mngetCkycUpdateDlts?.dob).format("DD-MM-YYYY"):sessionStorage.getItem("mv_dob")),ID_Type:this.ckycDetailsNew.rc_owner_ckycIdType||sessionStorage.getItem("mv_ID_Type"),ID_Number:this.ckycDetailsNew.rc_owner_ckycIdNumber||sessionStorage.getItem("mv_ID_Number"),ownerFirstName:v,ownerMiddleName:this.ckycDetails.middleName||I||".",ownerLastName:this.ckycDetails.lastName||k||".",ownerEmailID:this.ckycDetails.email?this.ckycDetails.email:sessionStorage.getItem("mv_email"),ownerPhone:this.personalInformation.value.ckycPhone?.number.trim()?this.personalInformation.value.ckycPhone?.number.trim():this.ckycDetails.mobileNumber?this.ckycDetails.mobileNumber:this.ckycDetailsNew.rc_owner_ckycMobileNumber,ownerMaritalStatus:this.customerDetails.rc_owner_Marital_status,ownerRegisteredAddress:`${this.ckycDetails.address1}`||this.customerDetails.rc_owner_registered_address,ownerRegisteredAddressPincode:this.customerDetails.rc_owner_registered_pincode||this.ckycDetail
1s.pincode||"",ownerRegisteredAddressState:this.ckycDetails.state||this.customerDetails.rc_owner_registered_state,ownerRegisteredAddressCity:this.ckycDetails.city||this.customerDetails.rc_owner_registered_city,ownerCommunicationAddress:this.customerDetails.rc_owner_communication_address||"",ownerCommunicationAddressPincode:this.ckycDetails.corresPin||this.customerDetails.rc_owner_communication_pincode,ownerCommunicationAddressState:this.ckycDetails.corresState||this.customerDetails.rc_owner_communication_state,ownerCommunicationAddressCity:this.ckycDetails.corresCity||this.customerDetails.rc_owner_communication_city,ownerRegistrationNo:this.customerDetails?.rc_regn_no?this.customerDetails?.rc_regn_no:this.vehicleNo||"",ownerChasisNo:this.customerDetails?.rc_chasi_no||"",ownerEngineNo:this.customerDetails?.rc_eng_no||"",ownerPreviousPolicyNo:this.customerDetails?.rc_policy_no||"",ownerPreviousPolicyCompany:this.customerDetails?.rc_company_name||"",ownerPreviousPolicyEndDate:this.previousPolicy?.previousPolicyEndDate||"",owneTpPolicyPlanToDate:this.previousPolicy?.policyEffectiveTo||"",owneTpPolicyPlanFromDate:this.previousPolicy?.policyEffectiveFrom||"",ownerNcbValue:this.previousNcbValue||"",ownerPreviousPolicyType:this.ncbDetailsA?.previousPolicyType||"",ownerTPInsurerName:this.customerDetails?.rc_TPInsuranceName,ownerTPPolicyNo:this.customerDetails?.rc_TPInsurancePolicy,ownerNomineeName:this.customerDetails?.rc_nominee_name||"",ownerNomineeRelation:this.customerDetails?.rc_nominee_relation||"",ownerOptedForLoan:this.customerDetails?.rc_optedForLoan||"No",ownerLoanProviderName:this.customerDetails?.rc_loanProviderName||"",ownerNomineeDOB:this.customerDetails?.rc_ownerNomineeDOB?this.formatDate(this.customerDetails?.rc_ownerNomineeDOB):"",state:this.state||"",rtoNo:this.rtoNo||"",vehicleMidNo:this.vehicleMidNo||"",vehicleLastNo:this.vehicleLastNo||"",OwnerPanNo:this.ckycDetails.PanNumber||"",OwnerAccountName:this.customerDetails.OwnerAccountName||"",OwnerAccountNo:this.customerDetails.OwnerAccountNo||"",OwnerBankList:this.customerDetails.OwnerBankList||"",OwnerBankName:this.customerDetails.OwnerBankName||"",OwnerAccountType:this.customerDetails.OwnerAccountType||"",OwnerIFSCCode:this.customerDetails.OwnerIFSCCode||""})}else{var i;I=(i=(this.customerDetails.rc_owner_first_name||"").split(" ")).length>2?i[1]:"",k=i.length>2?i[2]:2==i.length?i[1]:"",v="NA"==(v=i.length>0?i[0]:this.ckycDetails.firstName)?"":v,this.customerDetails?.tbConsent&&this.personalInformation.get(["tbConsent"])?.patchValue(!0),this.personalInformation.patchValue({ckycEmail:this.ckycDetailsNew.rc_owner_ckycEmailId||sessionStorage.getItem("mv_email"),dob:this.ckycDetailsNew.rc_owner_ckycDob||(l||this.ckycDetails.dob instanceof Date?this.ckycDetails.dob:""),ID_Type:this.ckycDetailsNew.rc_owner_ckycIdType||sessionStorage.getItem("mv_ID_Type"),ID_Number:this.ckycDetailsNew.rc_owner_ckycIdNumber||sessionStorage.getItem("mv_ID_Number"),ownerPhone:this.customerDetails.rc_mobile_no||this.ckycDetailsNew.rc_owner_ckycMobileNumber,ownerFirstName:i.length>0?v:this.customerDetails.rc_owner_first_name,ownerMiddleName:this.customerDetails.rc_owner_middle_name||I,ownerLastName:this.customerDetails.rc_owner_last_name||k,ownerEmailID:this.customerDetails.rc_owner_email_id,ownerMaritalStatus:this.customerDetails.rc_owner_Marital_status,ownerRegisteredAddress:this.customerDetails.rc_present_address||this.customerDetails.rc_owner_registered_address,ownerRegisteredAddressPincode:this.customerDetails.rc_owner_registered_pincode,ownerRegisteredAddressState:this.customerDetails.rc_owner_registered_state,ownerRegisteredAddressCity:this.customerDetails.rc_owner_registered_city,ownerIsCommunicationAddressSame:this.customerDetails.rc_owner_is_communication_registered_same,ownerCommunicationAddress:this.customerDetails.rc_owner_communication_address,ownerCommunicationAddressPincode:this.customerDetails.rc_owner_communication_pincode,ownerCommunicationAddressState:this.customerDetails.rc_owner_communication_state,ownerCommunicationAddressCity:this.customerDetails.rc_owner_communication_city,ownerRegistrationNo:this.customerDetails?.rc_regn_no?this.customerDetails?.rc_regn_no:this.vehicleNo||"",ownerChasisNo:this.customerDetails?.rc_chasi_no||"",ownerEngineNo:this.customerDetails?.rc_eng_no||"",ownerPreviousPolicyNo:this.customerDetails?.rc_policy_no||"",ownerPreviousPolicyCompany:this.customerDetails?.rc_company_name||"",ownerPreviousPolicyEndDate:this.previousPolicy?.previousPolicyEndDate||"",owneTpPolicyPlanToDate:this.previousPolicy?.policyEffectiveTo||"",owneTpPolicyPlanFromDate:this.previousPolicy?.policyEffectiveFrom||"",ownerNcbValue:this.previousNcbValue||"",ownerPreviousPolicyType:this.ncbDetailsA?.previousPolicyType||"",ownerTPInsurerName:this.customerDetails?.rc_TPInsuranceName,ownerTPPolicyNo:this.customerDetails?.rc_TPInsurancePolicy,ownerNomineeName:this.customerDetails?.rc_nominee_name||"",ownerNomineeRelation:this.customerDetails?.rc_nominee_relation||"",ownerOptedForLoan:this.customerDetails?.rc_optedForLoan||"No",ownerLoanProviderName:this.customerDetails?.rc_loanProviderName||"",ownerNomineeDOB:this.customerDetails?.rc_ownerNomineeDOB?this.formatDate(this.customerDetails?.rc_ownerNomineeDOB):"",state:this.state||"",rtoNo:this.rtoNo||"",vehicleMidNo:this.vehicleMidNo||"",vehicleLastNo:this.vehicleLastNo||"",OwnerPanNo:this.customerDetails.OwnerPanNo||"",OwnerAccountName:this.customerDetails.OwnerAccountName||"",OwnerAccountNo:this.customerDetails.OwnerAccountNo||"",OwnerBankList:this.customerDetails.OwnerBankList||"",OwnerBankName:this.customerDetails.OwnerBankName||"",OwnerAccountType:this.customerDetails.OwnerAccountType||"",OwnerIFSCCode:this.customerDetails.OwnerIFSCCode||""})}this.stateListValueChangeRegistered()}getStatesListRegistered(){this.subscriptions.add(this.journeyHomeService.getStateListCommon().subscribe(r=>{this.StateListRegistered=r},r=>{console.log(r)}))}checkValidMidValidations(){if(this.personalInformation.value.vehicleMidNo)if(-1!=(this.personalInformation.value.rtoNo??"").indexOf("BH")){const r=new RegExp("[0-9]{4}$");this.vehicleMidCondition=r.test(this.personalInformation.value.vehicleMidNo)}else{if(1==this.personalInformation.value.vehicleMidNo.length){const r=new RegExp("[a-zA-Z]{1}$");this.vehicleMidCondition=r.test(this.personalInformation.value.vehicleMidNo)}if(this.personalInformation.value.vehicleMidNo.length>1){let r;r=2==this.personalInformation.value.vehicleMidNo.length?new RegExp("[a-zA-Z]{1}[a-zA-Z0-9]{1}$"):new RegExp("[a-zA-Z]{1}[a-zA-Z0-9]{2}$"),this.vehicleMidCondition=r.test(this.personalInformation.value.vehicleMidNo)}}this.checkCommonValidations()}checkCommonValidations(){this.requiredInputVal=!1,this.personalInformation.value.state?2==this.personalInformation.value.state.length?(this.personalInformation.value.rtoNo||(this.requiredInputVal=!0),this.personalInformation.value.vehicleLastNo||(this.requiredInputVal=!0)):3==this.personalInformation.value.state.length&&(this.personalInformation.controls.rtoNo.setValidators([]),this.personalInformation.controls.rtoNo.updateV
1alueAndValidity(),this.personalInformation.value.vehicleLastNo||(this.requiredInputVal=!0)):this.requiredInputVal=!0}onVehicleNumberChangeOne(){this.errorMsgForVehicle=!1,this.checkStatePattern(),this.checkStateApi()}checkStateApi(){if(this.personalInformation.value.state){let r;3==this.personalInformation.value.state.length&&(this.errorMsgForVehicle=!1),this.personalInformation.value.state.length<3&&this.personalInformation.value.rtoNo&&(r=this.personalInformation.value.state+this.personalInformation.value.rtoNo),r&&"BH"!=this.personalInformation.value.rtoNo?this.journeyHomeService.checkVehicleNumberIsValidOrNot({RegionCode:r}).subscribe(i=>{this.errorMsgForVehicle=0==i.length,this.checkCommonValidations()},i=>{this.errorMsgForVehicle=!0,console.error("There was an error!",i)}):this.checkCommonValidations()}else this.checkCommonValidations()}onVehicleNumberChangeTwo(){this.checkRtoPattern(),this.checkStateApi()}checkRtoPattern(){if(this.stateCondition=!0,this.rtoCondition=!0,this.personalInformation.value.state&&this.personalInformation.value.rtoNo)if(-1!=(this.personalInformation.value.rtoNo??"").indexOf("BH")){const r=new RegExp("^BH");this.rtoCondition=r.test(this.personalInformation.value.rtoNo.toUpperCase())}else if("DL"==this.personalInformation.value.state){const r=new RegExp("[0-9]{1}[a-zA-Z0-9]$");this.rtoCondition=r.test(this.personalInformation.value.rtoNo)}else{const r=new RegExp("[0-9]$");this.rtoCondition=r.test(this.personalInformation.value.rtoNo)}}checkStatePattern(){if(this.stateCondition=!0,this.rtoCondition=!0,this.personalInformation.value.state)if(-1!=(this.personalInformation.value.rtoNo??"").indexOf("BH")){const r=new RegExp("[0-9]{2}$");this.stateCondition=r.test(this.personalInformation.value.state)}else if(this.personalInformation.value.state.length<3){this.rtoNoDisable=!1;const r=new RegExp("[a-zA-Z]{2}$");this.stateCondition=r.test(this.personalInformation.value.state),"old"==this.vehicleSelection&&(this.personalInformation.controls.rtoNo.setValidators([_.k0.required]),this.personalInformation.controls.rtoNo.updateValueAndValidity())}else if(3===this.personalInformation.value.state.length){const r=new RegExp("[a-zA-Z]{2}[0-9]$");this.stateCondition=r.test(this.personalInformation.value.state),this.personalInformation.controls.rtoNo.reset(),this.personalInformation.controls.vehicleMidNo.reset(),this.rtoNoDisable=!0,this.vehicleMidCondition=!0,this.personalInformation.controls.rtoNo.setValidators([]),this.personalInformation.controls.rtoNo.updateValueAndValidity()}}handleStateListValueChangeRegistered(){this.subscriptions.add(this.personalInformation.get("ownerRegisteredAddressState")?.valueChanges.pipe((0,Ee.n)(r=>this.journeyHomeService.getCityListCommon({StateCode:r}))).subscribe(r=>{this.cityListRegistered=[""];for(let l=0;l<r.length;l++)this.cityListRegistered.push(r[l].CityName)},r=>{console.log(r)}))}getStatesListCommunication(){this.subscriptions.add(this.journeyHomeService.getStateListCommon().subscribe(r=>{this.StateListCommunication=r},r=>{console.log(r)}))}handleStateListValueChangeCommunication(){this.subscriptions.add(this.personalInformation.get("ownerCommunicationAddressState")?.valueChanges.pipe((0,Ee.n)(r=>this.journeyHomeService.getCityListCommon({StateCode:r}))).subscribe(r=>{this.cityListCommunication=[""];for(let l=0;l<r.length;l++)this.cityListCommunication.push(r[l].CityName)},r=>{console.log(r)}))}CitybyStateReg(r){var l;if(this.indianCitys=[],0==this.lstStateCity.length)6==r.length&&this.google.getPincode(this.personalInformation.controls.ownerRegisteredAddressPincode?.value).subscribe(v=>{var I=v;for(let k=0;k<I.length;k++)I[k].State==r&&this.indianCitys.push(I[k].City)});else{l=this.lstStateCity;for(let i=0;i<l.length;i++)l[i].State==r&&this.indianCitys.push(l[i].City)}}CitybyState(r){var l;if(this.citiesList=[],0==this.lstStateCity.length)this.google.getPincode(this.personalInformation.controls.ownerCommunicationAddressPincode?.value).subscribe(i=>{var v=i;for(let I=0;I<v.length;I++)v[I].State==r&&this.citiesList.push(v[I].City)});else{l=this.lstStateCity;for(let i=0;i<l.length;i++)l[i].State==r&&this.citiesList.push(l[i].City)}}handleStateListValueChange(){this.personalInformation.get("ownerCommunicationAddressState")?.reset(),this.personalInformation.get("ownerCommunicationAddressCity")?.reset(),this.send_object=this.personalInformation.controls.ownerCommunicationAddressPincode?.value,this.citiesList=[],this.statesList=[],this.google.getPincode(this.send_object).subscribe(l=>{for(let v=0;v<l.length;v++)this.statesList.push(l[v].State),this.statedupliRemove=[...new Set(this.statesList)];if(this.statesList=this.statedupliRemove,sessionStorage.getItem("jhc_pincode"),l.length>0){let v=0;
1this.send_object!=this.personalInformation.controls.ownerRegisteredAddressPincode?.value||(v=1)}},l=>{})}CompanyNameList(){this.journeyHomeService.getCompanyName().subscribe(r=>{for(let l=0;l<r.length;l++)this.previousPolicyCompany.push(r[l].COMPANYNAME)},r=>{console.log(r)})}stateListValueChangeRegistered(){this.pincodeErrorMsgRegistered=!1,this.personalInformation.get(["ownerRegisteredAddressState"])?.reset(),this.personalInformation.get(["ownerRegisteredAddressCity"])?.reset(),this.pinCodeRegisterTimer&&this.pinCodeRegisterTimer.unsubscribe(),this.pinCodeRegisterTimer=(0,he.O)(1500).subscribe(r=>{this.send_object=this.personalInformation.controls.ownerRegisteredAddressPincode.value,this.google.getPincode(this.send_object).subscribe(i=>{if(i){this.lstStateCity=i;for(let v=0;v<this.lstStateCity.length;v++)this.statelist.push(i[v].State),this.statedupliRemove=[...new Set(this.statelist)];this.statelist=this.statedupliRemove,this.stateName=i[0].State,this.cityName=i[0].City,this.personalInformation.get(["ownerRegisteredAddressState"])?.setValue(this.stateName),this.personalInformation.get(["ownerRegisteredAddressCity"])?.setValue(this.cityName)}},i=>{this.pincodeErrorMsgRegistered=i.error.text.toLowerCase().indexOf("error")>-1})})}stateListValueChangeCommunication(){this.pincodeErrorMsgOwner=!1,this.personalInformation.get(["ownerCommunicationAddressState"])?.reset(),this.personalInformation.get(["ownerCommunicationAddressCity"])?.reset(),this.pinCodeCommunicationTimer&&this.pinCodeCommunicationTimer.unsubscribe(),this.pinCodeCommunicationTimer=(0,he.O)(1500).subscribe(r=>{this.send_object=this.personalInformation.controls.ownerCommunicationAddressPincode.value,this.google.getPincode(this.send_object).subscribe(i=>{for(let v=0;v<i.length;v++)this.citiesList.push(i[v].City),this.statesList.push(i[v].State),this.statedupliRemove=[...new Set(this.statesList)];this.statesList=this.statedupliRemove,this.stateName=i[0].State,this.cityName=i[0].City,this.personalInformation.get(["ownerCommunicationAddressState"])?.setValue(this.stateName),this.personalInformation.get(["ownerCommunicationAddressCity"])?.setValue(this.cityName)},i=>{this.pincodeErrorMsgOwner=i.error.text.toLowerCase().indexOf("error")>-1})})}sameAddress(r){r?(this.personalInformation.controls.ownerCommunicationAddress.setValue(this.personalInformation.get(["ownerRegisteredAddress"])?.value),this.personalInformation.controls.ownerCommunicationAddressState.setValue(this.personalInformation.controls.ownerRegisteredAddressState?.value),this.personalInformation.controls.ownerCommunicationAddressCity.setValue(this.personalInformation.controls.ownerRegisteredAddressCity?.value),this.personalInformation.controls.ownerCommunicationAddressPincode.setValue(this.personalInformation.controls.ownerRegisteredAddressPincode?.value),this.statesList.push(this.personalInformation.controls.ownerRegisteredAddressState?.value),this.citiesList.push(this.personalInformation.controls.ownerRegisteredAddressCity?.value)):(this.personalInformation.controls.ownerCommunicationAddress.reset(),this.personalInformation.controls.ownerCommunicationAddressState.reset(),this.personalInformation.controls.ownerCommunicationAddressCity.reset(),this.personalInformation.controls.ownerCommunicationAddressPincode.reset())}handleIsLoanOpted(){this.subscriptions.add(this.personalInformation.get("ownerOptedForLoan")?.valueChanges.subscribe(r=>{this.personalInformation.controls.ownerLoanProviderName.setValidators("Yes"==r?[_.k0.required]:[]),this.personalInformation.controls.ownerLoanProviderName.updateValueAndValidity()}))}onSubmitPersonalData(){let r=this.personalInformation.value.vehicleMidNo?this.personalInformation.value.vehicleMidNo:"",l=this.personalInformation.value.rtoNo?this.personalInformation.value.rtoNo:"";this.personalInformation.value.ownerRegistrationNo="",this.personalInformation.value.state&&this.personalInformation.value.vehicleLastNo&&(this.personalInformation.value.ownerRegistrationNo=this.personalInformation.get("state")?.value+l+r+this.personalInformation.get("vehicleLastNo")?.value),this.ckycDetail
1s=this.motorJourneyCkycRepository.getMotorJourneyCkycValue(),typeof this.ckycDetails.dob>"u"&&(this.ckycDetails.dob=this.personalInformation.value.dob),this.router.navigateByUrl("/motor-insurance-buy-now/summary"),this.motorJourneyVehicalDetailsRepository.setVehicalDetails({rc_owner_ckycEmailId:this.personalInformation.controls.ckycEmail?.value,rc_owner_ckycDob:this.personalInformation.controls.dob?.value,rc_owner_ckycIdType:this.personalInformation.controls.ID_Type?.value,rc_owner_ckycIdNumber:this.personalInformation.controls.ID_Number?.value,rc_owner_ckycMobileNumber:this.personalInformation.controls.ownerPhone?.value.number,rc_owner_uniqueKycNumber:this.uniqueNo||"",rc_owner_ekycNo:this.ckycNum||"",rc_owner_first_name:this.personalInformation.controls.ownerFirstName?.value,rc_owner_middle_name:this.personalInformation.controls.ownerMiddleName?.value,rc_owner_last_name:this.personalInformation.controls.ownerLastName?.value,rc_owner_email_id:this.personalInformation.controls.ownerEmailID?.value,rc_mobile_no:this.personalInformation.controls.ownerPhone?.value,rc_owner_Marital_status:this.personalInformation.controls.ownerMaritalStatus?.value,rc_TPEffectiveFrom:this.personalInformation.controls.owneTpPolicyPlanFromDate?.value||"",rc_TPEffectiveTo:this.personalInformation.controls.owneTpPolicyPlanToDate?.value||"",rc_permanent_address:this.personalInformation.controls.ownerRegisteredAddress?.value,rc_owner_registered_pincode:this.personalInformation.controls.ownerRegisteredAddressPincode?.value,rc_owner_registered_state:this.personalInformation.controls.ownerRegisteredAddressState?.value,rc_owner_registered_city:this.personalInformation.controls.ownerRegisteredAddressCity?.value,rc_TPInsurancePolicy:this.personalInformation.controls.ownerTPPolicyNo?.value?.toString()||"",rc_TPInsuranceName:this.personalInformation.controls.ownerTPInsurerName?.value||"",rc_owner_is_communication_registered_same:this.personalInformation.controls.ownerIsCommunicationAddressSame?.value,rc_owner_communication_address:this.personalInformation.controls.ownerCommunicationAddress?.value,rc_owner_communication_pincode:this.personalInformation.controls.ownerCommunicationAddressPincode?.value,rc_owner_communication_state:this.personalInformation.controls.ownerCommunicationAddressState?.value,rc_owner_communication_city:this.personalInformation.controls.ownerCommunicationAddressCity?.value,rc_regn_no:this.personalInformation.value.ownerRegistrationNo,rc_chasi_no:this.personalInformation.controls.ownerChasisNo?.value,rc_eng_no:this.personalInformation.controls.ownerEngineNo?.value,rc_policy_no:this.personalInformation.controls.ownerPreviousPolicyNo?.value,rc_company_name:this.personalInformation.controls.ownerPreviousPolicyCompany?.value,rc_insurance_upto:this.personalInformation.controls.ownerPreviousPolicyEndDate?.value,rc_owner_previous_policy_type:this.personalInformation.controls.ownerPreviousPolicyType?.value,rc_ncb_value:this.personalInformation.controls.ownerNcbValue?.value,rc_nominee_name:this.personalInformation.controls.ownerNomineeName?.value,rc_nominee_relation:this.personalInformation.controls.ownerNomineeRelation?.value,rc_ownerNomineeDOB:this.personalInformation.controls.ownerNomineeDOB?.value,rc_appointeetName:this.personalInformation.controls.appointeetName?.value,rc_appointeetRelation:this.personalInformation.controls.appointeetRelation?.value,rc_appointeetDOB:this.personalInformation.controls.appointeetDOB?.value,rc_appointeetGender:this.personalInformation.controls.appointeetGender?.value,rc_optedForLoan:this.personalInformation.controls.ownerOptedForLoan?.value,rc_loanProviderName:this.personalInformation.controls.ownerLoanProviderName?.value,rc_regState:this.personalInformation.get("state")?.value||"",rc_regRtoNo:this.personalInformation.get("rtoNo")?.value||"",rc_regVehicleMidNo:this.personalInformation.get("vehicleMidNo")?.value||"",rc_regVehicleLastNo:this.personalInformation.get("vehicleLastNo")?.value||"",OwnerAccountName:this.personalInformation.get("OwnerAccountName")?.value||"",OwnerAccountNo:this.personalInformation.get("OwnerAccountNo")?.value||"",OwnerBankList:this.personalInformation.get("OwnerBankList")?.value||"",OwnerBankName:this.personalInformation.get("OwnerBankName")?.value||"",OwnerAccountType:this.personalInformation.get("OwnerAccountType")?.value||"",OwnerIFSCCode:this.personalInformation.get("OwnerIFSCCode")?.value||"",OwnerPanNo:this.personalInformation.get("OwnerPanNo")?.value||"",IsPhysicalCopy:this.personalInformation.value.IsPhysicalCopy?"Yes":"No",IsPEP:this.personalInformation.get("IsPEP")?.value||"",IsDisableDeclare:this.personalInformation.value.IsDisableDeclare?"Yes":"No",IsDataPrivacy:this.personalInformation.value.IsDataPrivacy?"Yes":"No",tbConsent:"true"}),this.personalInformation.value.IsDisableDeclare&&(this.modalService.show(ht.G,Object.assign({class:"thankyou-popup modal
1-xl",backdrop:"static"})),setTimeout(()=>{this.router.navigate(["/"])},200))}storeTransactionData(){let r,l,i;this.motorJourneyRepository.motorJourney$.subscribe(J=>r=J),this.updateOnlyVCNo(this.personalInformation.value.ownerRegistrationNo),l=o(this.personalInformation.value.dob).format("DD-MM-YY");const[v,I,k]=l.split("-");let F=[v,I,k].join("-");i=F.replaceAll("-","");const L=this.personalInformation.value.dob?this.personalInformation.value.dob:this.ckycDetailsNew.rc_owner_ckycDob||(F||this.ckycDetails.dob instanceof Date?this.ckycDetails.dob:o(this.mngetCkycUpdateDlts?.dob).format("DD-MM-YYYY")?o(this.mngetCkycUpdateDlts?.dob).format("DD-MM-YYYY"):sessionStorage.getItem("mv_dob")),E=o(L,["YYYY-MM-DD","DD-MM-YYYY","MM-DD-YYYY"],!0);let W="";W=E.isValid()?E.format("YYYY-MM-DD"):o(L,"DD-MM-YYYY").format("YYYY-MM-DD");let O={personalDetailsMasterID:0,insurerMasterID:r.quotationDialog.insurerMasterID,emailID:this.personalInformation.value.ckycEmail,dob:W??o(L,"DD-MM-YYYY").format("YYYY-MM-DD"),kycidType:this.personalInformation.value.ID_Type,kycidNumber:this.personalInformation.value.ID_Number,ekycNo:this.ckycNum||"",uniqueKycNumber:this.uniqueNo||"",firstName:this.personalInformation.value.ownerFirstName,middleName:this.personalInformation.value.ownerMiddleName,lastName:this.personalInformation.value.ownerLastName,ownerEmailID:this.personalInformation.value.ownerEmailID,ckycMobileNumber:this.personalInformation.controls.ownerPhone?.value.number,maritalStatus:this.personalInformation.value.ownerMaritalStatus,regAddress1:this.personalInformation.value.ownerRegisteredAddress,regAddress2:"",pincode:this.personalInformation.value.ownerRegisteredAddressPincode,state:this.personalInformation.value.ownerRegisteredAddressState,city:this.personalInformation.value.ownerRegisteredAddressCity,comAdrs_SAReg_Flag:this.personalInformation.value.ownerIsCommunicationAddressSame,cmAddress1:this.personalInformation.value.ownerCommunicationAddress,cmAddress2:"",cmPincode:this.personalInformation.value.ownerRegisteredAddressPincode,cmState:this.personalInformation.value.ownerRegisteredAddressState,cmCity:this.personalInformation.value.ownerRegisteredAddressCity,chasisNumber:this.personalInformation.value.ownerChasisNo,engineNumber:this.personalInformation.value.ownerEngineNo,prvPlcyNumber:this.personalInformation.value.ownerPreviousPolicyNo,prvPlcyCompany:this.personalInformation.value.ownerPreviousPolicyCompany,prvPlcyEndDate:r.previousPolicyDialog.previousPolicyEndDate instanceof Date?o(this.dateConvertToMMDDYYYY(r.previousPolicyDialog.previousPolicyEndDate)).format():"0001-01-01",prvPlcyType:this.personalInformation.controls.ownerPreviousPolicyType?.value||"",prvPlcyNCBValue:this.personalInformation.controls.ownerNcbValue?.value||"",prvPlcyTPPFDate:r.previousPolicyDialog.policyEffectiveFrom instanceof Date?o(this.dateConvertToMMDDYYYY(r.previousPolicyDialog.policyEffectiveFrom)).format():"0001-01-01",prvPlcyTPPTDate:r.previousPolicyDialog.policyEffectiveTo instanceof Date?o(this.dateConvertToMMDDYYYY(r.previousPolicyDialog.policyEffectiveTo)).format():"0001-01-01",prvPlcyTPPInsName:this.personalInformation.value.ownerTPInsurerName||"",prvPlcyTPPPNum:this.personalInformation.value?.ownerTPPolicyNo||"",nomineeName:this.personalInformation.value.ownerNomineeName||"",nomineeRelation:this.personalInformation.value.ownerNomineeRelation||"",isVehicleOnLoan_Flag:"Yes"==this.personalInformation.value.ownerOptedForLoan,loanProviderName:this.personalInformation.value.ownerLoanProviderName||"",quotationID:"string",regState:this.personalInformation.get("state")?.value||"",regRtoNo:this.personalInformation.get("rtoNo")?.value||"",regVehicleMidNo:this.personalInformation.get("vehicleMidNo")?.value||"",regVehicleLastNo:this.personalInformation.get("vehicleLastNo")?.value||"",regNumber:this.personalInformation.value.ownerRegistrationNo||""};const Ce={...O};this.saveBankAndZoneOtherDtls(Ce),this.transactionService.postPersonalInfoData(O).subscribe(J=>console.log(J))}dateConvertToMMDDYYYY(r){if(!r)return"0001-01-01";const[l,i,v]=r?.split("/");return`${i}/${l}/${v}`}formatDate(r){var l=new Date(r),i=""+(l.getMonth()+1),v=""+l.getDate(),I=l.getFullYear();return i.length<2&&(i="0"+i),v.length<2&&(v="0"+v),[v,i,I].join("-")}openErrorPopup(r){this.bsmodelRef=this.modalService.show(ge.u,Object.assign({error:r}
1,{class:"thankyou-popup modal-xl",initialState:{error:r}}))}ckycMismatchedPopup(){this.modalService.show(tt.A,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static"}))}vcModelMismatchedPopup(r){this.bsmodelRef=this.modalService.show(Z.h,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static",keyboard:!1,initialState:{textDescription:r}}))}onIdTypeOptionsSelected(){this.personalInformation.get(["ID_Number"])?.reset(),this.isReferenceNumber="Reference Number"===this.personalInformation.value.ID_Type,this.isCaptchaVerified=this.isReferenceNumber,(this.isCaptchaVerified=this.isReferenceNumber)||this.personalInformation.controls.captcha.setValue(""),this.isChangedRefIDType=!1}ckycValidation(){if("PAN Card"===this.personalInformation.value.ID_Type){const r=new RegExp("[A-Z]{5}[0-9]{4}[A-Z]{1}$");this.idNumberValidate=r.test(this.personalInformation.value.ID_Number),this.idName="PAN",this.idTypeApi="PAN",console.log("PAN Card")}else if("Aadhar Card"===this.personalInformation.value.ID_Type){const r=new RegExp("^[0-9]{4}$");this.idNumberValidate=r.test(this.personalInformation.value.ID_Number),this.idName="AADHAAR",this.idTypeApi="AADHAAR",console.log("Aadhar Card")}else if("Voter ID"===this.personalInformation.value.ID_Type){const r=new RegExp("^[a-zA-Z]{3}([0-9]){7}?$");this.idNumberValidate=r.test(this.personalInformation.value.ID_Number),this.idName="VOTER_ID",this.idTypeApi="VOTER_ID",console.log("Voter ID")}else if("Driving License"===this.personalInformation.value.ID_Type){const r=new RegExp("^(([A-Z]{2}[0-9]{2})()|([A-Z]{2}-[0-9]{2}))((19|20)[0-9][0-9])[0-9]{7}$");this.idNumberValidate=r.test(this.personalInformation.value.ID_Number),this.idName="DRIVING_LICENCE",this.idTypeApi="DRIVING_LICENCE",console.log("Driving License")}else if("Passport"===this.personalInformation.value.ID_Type){const r=new RegExp("[A-Z]{1}[0-9]{7}$");this.idNumberValidate=r.test(this.personalInformation.value.ID_Number),this.idName="PASSPORT",this.idTypeApi="PASSPORT",console.log("Passport")}else"Existing CKYC Number"===this.personalInformation.value.ID_Type?(new RegExp("[0-9]{14}$"),this.idNumberValidate=!0,this.idName="CKYC_NO",this.idTypeApi="CKYC_NO",console.log("Existing CKYC Number")):"Reference Number"===this.personalInformation.value.ID_Type&&(new RegExp("^[A-Z]{9}[/]{1}[0-9]{6}[/]{1}[0-9]{3}$"),this.idNumberValidate=!0,this.idName="REF_NO",this.idTypeApi="REF_NO",console.log("Reference Number"))}updateOnlyVCNo(r){this.motorJourneyRepository.saveCustomerDetails({vehicleNumber:r})}checkVCModelNoAdrilaApi(r){this.journeyAadrilaService.postAadrillaData({rc_no:r,consent:"Y",rc_source:"45"}).subscribe(i=>{if(i?.data){let v=i?.data?.rc_vch_catg;if("LMV"===v||"2WN"==v){let I=i?.data?.rc_owner_first_name?.split(" ")?i?.data?.rc_owner_first_name?.split(" "):"";this.checkAdtrilaCKYCData=I[0]?.toLowerCase()===this.ckycDetails?.firstName?.toLowerCase(),1==this.checkAdtrilaCKYCData&&i.data.pass_id_data[0].make_id==this.sectionNo.rc_brand_id&&i.data.pass_id_data[0].model_id==this.sectionNo.rc_varient_id?(this.personalInformation.patchValue({ownerChasisNo:i?.data.rc_chasi_no||"",ownerEngineNo:i?.data.rc_eng_no||""}),this.ChasisNo=i?.data.rc_chasi_no||"",this.EngineNo=i?.data.rc_eng_no||""):this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")}}else this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")},i=>{this.personalInformation.controls.state.reset(),this.personalInformation.controls.rtoNo.reset(),this.personalInformation.controls.vehicleMidNo.reset(),this.personalInformation.controls.vehicleLastNo.reset(),this.personalInformation.controls.ownerChasisNo.reset(),this.personalInformation.controls.ownerEngineNo.reset(),this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")})}openModalWithErrorText(r){this.bsmodelRef=this.modalService.show(mt.W,Object.assign({class:"thankyou-popup modal-xl",initialState:{AppNo:"",textDescription:r}}))}changeConsent(){sessionStorage.setItem("IsPhysicalCopy",this.personalInformation.value.IsPhysicalCopy)}pepMember(r){r.target.checked&&this.modalService.show(Je.x,Object.assign({class:"thankyou-popup modal
1-xl",backdrop:"static"}))}openDisableConcent(r){r.target.checked?(this.IsDisable=!0,this.personalInformation.get(["DisableDecription"])?.setValue(""),this.personalInformation.get(["DisableDecription"])?.setValidators([_.k0.required]),this.personalInformation.get(["DisableDecription"])?.updateValueAndValidity()):(this.IsDisable=!1,this.personalInformation.get(["DisableDecription"])?.clearValidators(),this.personalInformation.get(["DisableDecription"])?.updateValueAndValidity())}selectBank(){var r=this.personalInformation.value.OwnerBankList;"Other"==r?(this.isOtherBank=!0,this.personalInformation.controls.OwnerBankName.setValue("")):(this.isOtherBank=!1,this.personalInformation.controls.OwnerBankName.setValue(r))}openDataPrivacy(){this.modalService.show(ot.E,Object.assign({class:"thankyou-popup modal-xl",backdrop:"static"}))}openDisableDeclare(){this.modalService.show(ut.r,Object.assign({class:"thankyou-popup modal-xl",backdrop:"static"}))}disabledDate(){return!1}onNominieAge(r){if(void 0!==r){const l=new Date(r),i=Math.abs(Date.now()-l.getTime());this.isnomineeAge=Math.floor(i/864e5/365),this.isnomineeAge<=18?(this.isAppointeeValid=!0,this.onAppointeeValidation()):(this.isAppointeeValid=!1,this.isAppointee=!1,this.onAppointeeValidation()),this.nominiesCTA()}}openAppointeePopup(){this.modalService.show(qe.M,Object.assign({class:"members-popup modal-lg"}))}nominiesCTA(){this.isnomineeAge<=18?(this.isAppointee=!0,this.openAppointeePopup()):this.isAppointee=!1}onAppointeeValidation(){!0===this.isAppointeeValid?(this.personalInformation.get(["appointeetName"])?.setValidators([_.k0.required]),this.personalInformation.get(["appointeetName"])?.updateValueAndValidity(),this.personalInformation.get(["appointeetRelation"])?.setValidators([_.k0.required]),this.personalInformation.get(["appointeetRelation"])?.updateValueAndValidity(),this.personalInformation.get(["appointeetDOB"])?.setValidators([_.k0.required]),this.personalInformation.get(["appointeetDOB"])?.updateValueAndValidity(),this.personalInformation.get(["appointeetGender"])?.setValidators([_.k0.required]),this.personalInformation.get(["appointeetGender"])?.updateValueAndValidity()):!1===this.isAppointeeValid&&(this.personalInformation.get(["appointeetName"])?.clearValidators(),this.personalInformation.get(["appointeetName"])?.updateValueAndValidity(),this.personalInformation.get(["appointeetRelation"])?.clearValidators(),this.personalInformation.get(["appointeetRelation"])?.updateValueAndValidity(),this.personalInformation.get(["appointeetDOB"])?.clearValidators(),this.personalInformation.get(["appointeetDOB"])?.updateValueAndValidity(),this.personalInformation.get(["appointeetGender"])?.clearValidators(),this.personalInformation.get(["appointeetGender"])?.updateValueAndValidity())}InsertUserLogs(r){var l="Unknown OS";-1!=navigator.userAgent.indexOf("Win")&&(l="Windows"),-1!=navigator.userAgent.indexOf("Mac")&&(l="Macintosh"),-1!=navigator.userAgent.indexOf("Linux")&&(l="Linux"),-1!=navigator.userAgent.indexOf("Android")&&(l="Android"),-1!=navigator.userAgent.indexOf("like Mac")&&(l="iOS"),this._commonSrc.InsertUserLogs({Name:r?.Name,Email:r?.Email?r?.Email:"",MobileNumber:r?.MobileNumber?r?.MobileNumber:"",OperatingSystem:l,BrowserIP:this.pubIPaddress?this.pubIPaddress:"",AddressNetwork:r?.AddressNetwork?r?.AddressNetwork:"",NetworkProvider:"Website",AgentType:r?.AgentType?r?.AgentType:""}).subscribe(v=>{})}getPIPAdd(){this._commonSrc.getPublicIPAddress().subscribe(r=>{this.pubIPaddress=r?.ip})}loadCaptcha(){this.captchaService.getCaptcha().subscribe(r=>{this.captchaBase64=r.CaptchaBase64,this.captchaText=r.CaptchaText})}verifyCaptcha(){let r=this.personalInformation.get("captcha")?.value;""!=r&&this.captchaService.verifyCaptcha(r,this.captchaText).subscribe(l=>{if(l.Success){const i=this.aesHelper.decrypt(l.Success,l.aesKeyValue);JSON.parse(i).Success?(this.openModalWithErrorText("Captcha verified successfully!"),this.personalInformation.controls.captcha?.setValue(""),this.isCaptchaVerified=!0,this.personalInformation.controls.captcha?.disable()):(this.openModalWithErrorText("Captcha verification failed. Please try again."),this.personalInformation.controls.captcha?.setValue(""),this.loadCaptcha(),this.isCaptchaVerified=!1)}else this.openModalWithErrorText("Captcha verification failed. Please try again."),this.personalInformation.controls.captcha.setValue(""),this.loadCaptcha(),this.isCaptchaVerified=!1},l=>{this.openModalWithErrorText("Error occurred while verifying the CAPTCHA."),this.personalInformation.controls.captcha.setValue(""),this.loadCaptcha(),this.isCaptchaVerified=!1})}sendOTP(r){this.globalSpinnerService.showSpinner(),sessionStorage.setItem("mv_dob",this.personalInformation.value.dob instanceof Date?o(this.personalInformation.value.dob).format("DD-MM-YYYY"):this.formDobVal),sessionStorage.setItem("mv_ID_Type",this.personalInformation.value.ID_Type),sessionStorage.setItem("mv_ID_TypeAPI",this.idTypeApi),sessionStorage.setItem("mv_ID_Number",this.personalInformation.value.ID_Number),sessionStorage.setItem("mv_email",this.personalInformation.value.ckycEmail);var l=this.personalInformation.value.ckycPhone?.number?this.personalInformation.value.ckycPhone?.number:this.mobileNo;if("Reference Number"===this.personalInformation.value.ID_Type){let k,i={source:"WEBONLINE",uniqueTransactionNumber:this.personalInformation.value.ID_Number},v=100,I=999,L="WEBONLINE/"+k+"/"+(Math.floor(Math.random()*(I-v+1))+v);this.uniqueNo=L,sessionStorage.setItem("hap_dob",o(this.personalInformation.value.dob).format("DD-MM-YYYY"));let W=(Date,o(this.personalInformation.value.dob).format("DD-MM-YYYY"));"Invalid date"!==W?(Date,W=o(this.personalInformation.value.dob).format("DD-MM-YYYY")):W=this.personalInformation.value.dob;let O={source:"WEBONLINE",customerType:"I",uniqueTransactionNumber:L,idType:this.idTypeApi,idNo:this.personalInformation.value.ID_Number,dob:W,mobileNo:this.mobileNo,pincode:"",cKYCNo:""},Ce={email:this.personalInformation.value.ckycEmail,customerName:this.vehicleOwnerName};this.journeyHomeService.checkCKYCReturningUser(i).subscribe(J=>
1{if(J){this.globalSpinnerService.hideSpinner(),this.saveCKYCdtls(J.result,i,J);let me={MobileNumber:this.mobileNo,CusomerName:this.vehicleOwnerName};if(J.result)if("True"===J.result.kycVerifiedStatus){this.motorJourneyRepository.saveCustomerDetails({vehicleOwnerMobileNumber:this.personalInformation.value.ckycPhone?.number.trim()}),this.personalInformation.get(["ownerPhone"])?.setValue((this.personalInformation.value.ckycPhone?.number??"").trim()?(this.personalInformation.value.ckycPhone?.number??"").trim():"");let U=o(this.personalInformation.value.dob).format("DD-MM-YYYY");if(""!=J.result.dob&&U!=J.result.dob)return void this.openErrorPopup("Your reference number is not matching with mentioned DOB.");var z=this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue(),be=this.vehicleSelection,De="old"==be?z.rc_f_name?.replace(/^\s*(Mr|Mrs|Ms|Miss)\.?\s*/i,"").trim().split(" "):"",Se=J.result.name.split(" "),Le=o(J.result.dob).format("DD-MM-YYYY");console.log("Checking DOB:",Le,O.dob);var M=De?De[0]:"";"old"==be&&M.toUpperCase()===Se[0].toUpperCase()||"old"==be&&"NA"===M.toUpperCase().trim()||"new"==be?(this.openCkycCompletedPopup(),this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:this.personalInformation.value.ID_Number,address1:J.result.address,firstName:J.result.name,pincode:J.result.pincode,city:J.result.city,state:J.result.state,email:J.result.email||this.personalInformation.value.email,dob:J.result.dob||o(this.personalInformation.value.dob).format("DD-MM-YY"),kycVerify:J.result.kycVerifiedStatus,mobileNumber:this.personalInformation.value.ckycPhone?.number.trim||J.result.mobileNumber||this.mobileNo,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number,PanNumber:J.result.pan})):this.ckycMismatchedPopup(),setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}else"False"===J.result.kycVerifiedStatus&&(this.openErrorPopup("This is not valid number"),this.journeyHomeService.SendSMSCKYCUser(me).subscribe(U=>{console.log("CkycSMS",U)},U=>{console.log(U)}),this.journeyHomeService.CKYCUsgiEmailApi(Ce).subscribe(U=>{console.log("usgiEmailApi",U)},U=>{console.log(U)}));else this.openErrorPopup("This is not valid number"),this.journeyHomeService.SendSMSCKYCUser(me).subscribe(U=>{console.log("CkycSMS",U)},U=>{console.log(U)}),this.journeyHomeService.CKYCUsgiEmailApi(Ce).subscribe(U=>{console.log("usgiEmailApi",U)},U=>{console.log(U)})}},J=>{this.openErrorPopup("Rate limit exceeded."==J.error.Message?"You've reached your usage limit for today. Please check after 24 hrs to continue using our service. Thank you for your understanding!":"Oops, Something went wrong. Please try again later.")})}else if(this.isCaptchaVerified){let i="",v="";if(0==r){let L=100;i="WEBONLINE/"+(this.personalInformation.value.dob instanceof Date?o(this.personalInformation.value.dob).format("DD-MM-YY"):this.personalInformation.value.dob).replaceAll("-","")+"/"+(Math.floor(Math.random()*(999-L+1))+L)}else 1==r&&(v=sessionStorage.getItem("a_txnId"),i=sessionStorage.getItem("a_uniqueTransactionNumber"));const I={source:"WEBONLINE",customerType:"I",uniqueTransactionNumber:i,idNo:this.personalInformation.value.ID_Number,idType:this.idTypeApi,dob:this.personalInformation.value.dob instanceof Date?o(this.personalInformation.value.dob).format("DD-MM-YYYY"):this.personalInformation.value.dob,mobileNo:l,pincode:"",cKYCNo:"",IsResendOTP:r.toString(),txnId:v};this.captchaService.getCKYCToken().subscribe(k=>{k.Success&&this.captchaService.sendOTPwithToken(I,k.Result).subscribe(F=>{if(F.Success){if(this.motorJourneyRepository.saveCustomerDetails({vehicleOwnerMobileNumber:this.personalInformation.value.ckycPhone?.number.trim()}),this.personalInformation.get(["ownerPhone"])?.setValue((this.personalInformation.value.ckycPhone?.number??"").trim()?(this.personalInformation.value.ckycPhone?.number??"").trim():""),this.globalSpinnerService.hide
1Spinner(),this.saveCKYCdtls(F.Result,I,F),null==F.Result.error)this.journeyAadrilaService.checkSendOTPTF("SendOTP"),sessionStorage.setItem("a_uniqueTransactionNumber",F.Result.uniqueTransactionNumber),sessionStorage.setItem("a_txnId",F.Result.txnId),this.openLoginProcessPopup();else if(F.Result.manualKYCurl){const L={ID_Type:"Reference Number",uniqueTransactionNumber:F.Result.uniqueTransactionNumber,dob:this.personalInformation.value.dob instanceof Date?o(this.personalInformation.value.dob).format("DD-MM-YYYY"):this.personalInformation.value.dob,idNo:this.personalInformation.value.ID_Number,manualKYCurl:F.Result.manualKYCurl};this.isChangedRefIDType=!0,sessionStorage.setItem("manualKYCurlUpdate",JSON.stringify(L)),this.openCkycProcessPopup(F.Result.manualKYCurl),setTimeout(()=>{let E=JSON.parse(sessionStorage.getItem("manualKYCurlUpdate"));this.mngetCkycUpdateDlts=E},1e3),this.smsEmailSrvc.sendKYCNotification({name:this.personalInformation?.value?.name?this.personalInformation?.value?.name:"Customer",email:this.personalInformation?.value?.ckycEmail,mobile:l||this.personalInformation.value.ownerPhone.trim(),kycUrl:F.Result.manualKYCurl?F.Result.manualKYCurl:"https://www.usgi.ai/p?q=ed3ASVwPRK"}).subscribe(([E,W])=>{console.log("Email Response:",E),console.log("SMS Response:",W)},E=>{console.error("Notification Error:",E)})}else this.openErrorPopup(F.Result.error.message);
1this.globalSpinnerService.hideSpinner()}},F=>{this.globalSpinnerService.hideSpinner(),this.openErrorPopup("Rate limit exceeded."==F.error.Message?"You've reached your usage limit for today. Please check after 24 hrs to continue using our service. Thank you for your understanding!":"Oops, Something went wrong. Please try again later.")})})}}openLoginProcessPopup(){localStorage.setItem("isOtpVerified","true"),this.modalService.show(n.K,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static"}))}OTPactions(){this.captchaService.motr_verify_OTP_observer.subscribe(l=>{""!=l&&(this.bindPersonalInformationDataToForm(),this.personalInformation.controls.ckycEmail?.disable(),this.personalInformation.controls.dob?.disable(),this.personalInformation.controls.ID_Type?.disable(),this.personalInformation.controls.ID_Number?.disable())}),this.captchaService.motr_resend_OTP_observer.subscribe(l=>{l&&this.sendOTP(1)})}saveCKYCdtls(r,l,i){let v;this.motorJourneyRepository.motorJourney$.subscribe(k=>v=k);const I={FirstName:r?.name||r?.name?r?.name:"NA",MiddleName:this.personalInformation.value.ownerMiddleName?this.personalInformation.value.ownerMiddleName:"NA",LastName:this.personalInformation.value.ownerLastName?this.personalInformation.value.ownerLastName:"NA",Gender:"Male",CkycMobileNumber:this.mobileNo?this.mobileNo:v.vehicleOwnerMobileNumber?v.vehicleOwnerMobileNumber:"NA",EmailID:this.personalInformation.value.ckycEmail?this.personalInformation.value.ckycEmail:r?.email||r?.email?r?.email:"NA",DOB:o(new Date(this.personalInformation.value.dob)).format("YYYY-MM-DD")?o(new Date(this.personalInformation.value.dob)).format("YYYY-MM-DD"):r?.result?.dob?r?.result?.dob:"0001-01-01T00:00:00",IDType:this.personalInformation.value.ID_Type?this.personalInformation.value.ID_Type:this.idTypeApi?this.idTypeApi:"NA",IDNumber:this.personalInformation.value.ID_Number?this.personalInformation.value.ID_Number:"NA",KycPan:this.personalInformation.value.ID_Number?this.personalInformation.value.ID_Number:"",CKYCNumber:this.personalInformation.value.ID_Number?this.personalInformation.value.ID_Number:"NA",UidNumber:this.uniqueNo?this.uniqueNo:this.ckycNum?this.ckycNum:"",Address1:r?.address?r?.address:"",Address2:"",Address3:"",CkycPincode:r?.pincode?r?.pincode:"NA",CkycCity:r?.city?r?.city:"NA",InsurerMasterID:v.quotationDialog.insurerMasterID?v.quotationDialog.insurerMasterID:0,CkycState:r?.state?r?.state:"",Zone:"NA",JourneyType:this.vehicleSelection?this.vehicleSelection:"NA",CKYCReq:JSON.stringify(l),CKYCRes:JSON.stringify(i)};this.transactionService.cKYCUpdateMotorJourney(I).subscribe(k=>{})}saveBankAndZoneOtherDtls(r){let l;this.motorJourneyRepository.motorJourney$.subscribe(F=>l=F);const i=new Date(r?.rc_ownerNomineeDOB),v=Math.abs(Date.now()-i.getTime()),I=Math.floor(v/864e5/365),k={Id:sessionStorage.getItem("ZoneBankDtlId")?sessionStorage.getItem("ZoneBankDtlId"):0,InsurerMasterID:l?.quotationDialog?.insurerMasterID?l?.quotationDialog?.insurerMasterID:0,UserAgent:l?.quotationDialog?.journeyName?l?.quotationDialog?.journeyName:"TW_FW",OwnerAccountName:this.personalInformation.get("OwnerAccountName")?.value?this.personalInformation.get("OwnerAccountName")?.value:r?.OwnerAccountName?r?.OwnerAccountName:"",OwnerAccountNo:this.personalInformation.get("OwnerAccountNo")?.value?this.personalInformation.get("OwnerAccountNo")?.value:r?.OwnerAccountNo?r?.OwnerAccountNo:"",OwnerBankList:this.personalInformation.get("OwnerBankList")?.value?this.personalInformation.get("OwnerBankList")?.value:r?.OwnerBankList?r?.OwnerBankList:"",OwnerPanNo:this.personalInformation.get("OwnerPanNo")?.value?this.personalInformation.get("OwnerPanNo")?.value:r?.OwnerPanNo?r?.OwnerPanNo:"",OwnerIFSCCode:this.personalInformation.get("OwnerIFSCCode")?.value?this.personalInformation.get("OwnerIFSCCode")?.value:r?.OwnerIFSCCode?r?.OwnerIFSCCode:"",OwnerBankName:this.personalInformation.get("OwnerBankName")?.value?this.personalInformation.get("OwnerBankName")?.value:r?.OwnerBankName?r?.OwnerBankName:"",OwnerAccountType:this.personalInformation.get("OwnerAccountType")?.value?this.personalInformation.get("OwnerAccountType")?.value:r?.OwnerAccountType?r?.OwnerAccountType:"",IsDataPrivacy:this.personalInformation.get("IsDataPrivacy")?.value?this.personalInformation.get("IsDataPrivacy")?.value:r?.IsDataPrivacy?r?.IsDataPrivacy:"NO",IsDisableDeclare:this.personalInformation.get("IsDisableDeclare")?.value?this.personalInformation.get("IsDisableDeclare")?.value:r?.IsDisableDeclare?r?.IsDisableDeclare:"NO",IsPEP:this.personalInformation.get("IsPEP")?.value?this.personalInformation.get("IsPEP")?.value:r?.IsPEP?r?.IsPEP:"NO",IsPhysicalCopy:this.personalInformation.get("IsPhysicalCopy")?.value?this.personalInformation.get("IsPhysicalCopy")?.value:r?.IsPhysicalCopy?r?.IsPhysicalCopy:"NO",rc_owner_ckycIdNumber:this.personalInformation.get("ID_Number")?.value?this.personalInformation.get("ID_Number")?.value:r?.rc_owner_ckycIdNumber?r?.rc_owner_ckycIdNumber:"",rc_owner_ckycIdType:this.personalInformation.get("ID_Type")?.value?this.personalInformation.get("ID_Type")?.value:r?.rc_owner_ckycIdType?r?.rc_owner_ckycIdType:"",rc_owner_ckycMobileNumber:this.ckycDetail
1s.mobileNumber?this.ckycDetails.mobileNumber:this.ckycDetailsNew.rc_owner_ckycMobileNumber?this.ckycDetailsNew.rc_owner_ckycMobileNumber:this.personalInformation.controls.ownerPhone?.value.number?this.personalInformation.controls.ownerPhone?.value.number:"",rc_owner_email_id:this.personalInformation.get("ckycEmail")?.value?this.personalInformation.get("ckycEmail")?.value:r?.rc_owner_email_id?r?.rc_owner_email_id:"",rc_regn_no:this.personalInformation.get("rc_regn_no")?.value?this.personalInformation.get("rc_regn_no")?.value:r?.rc_regn_no?r?.rc_regn_no:"",seatingCapacity:l?.vehicleDetailsDialog?.seatingCapacity?l?.vehicleDetailsDialog?.seatingCapacity:r?.seatingCapacity?r?.seatingCapacity:"",numberOfWheels:l?.vehicleDetailsDialog?.numberOfWheels?l?.vehicleDetailsDialog?.numberOfWheels:r?.numberOfWheels?r?.numberOfWheels:"",registrationZone:l?.vehicleDetailsDialog?.registrationZone?l?.vehicleDetailsDialog?.registrationZone:r?.registrationZone?r?.registrationZone:"",IMDCode:"200398646454",IMDBName:"DIRECT EMERGING MARKETING",SubSrc:"20000141",carryingCapacity:l?.vehicleDetailsDialog?.carryingCapacity?l?.vehicleDetailsDialog?.carryingCapacity:"",minIDV:r?.minIDV?r?.minIDV:0,maxIDV:r?.maxIDV?r?.maxIDV:0,isPrevZeroDepPresent:l?.quotationDialog?.VehicleNoPresent?l?.quotationDialog?.VehicleNoPresent:"",Age:I||30,Relationship:this.personalInformation.get("ownerNomineeRelation")?.value?this.personalInformation.get("ownerNomineeRelation")?.value:r?.rc_nominee_relation?r?.rc_nominee_relation:"",AppointeeName:this.personalInformation.get("ownerNomineeName")?.value?this.personalInformation.get("ownerNomineeName")?.value:r?.rc_nominee_name?r?.rc_nominee_name:"",AppointeeRelationWithNomine:this.personalInformation.get("rc_regn_no")?.value?this.personalInformation.get("rc_regn_no")?.value:r?.rc_appointeetRelation?r?.rc_appointeetRelation:"",TPPolicyEffectiveTo:"2027-11-12 00:00:00.000",TPPolicyEffectiveFrom:"2022-11-12 00:00:00.000",TpInsurerName:r?.prvPlcyTPPInsName?r?.prvPlcyTPPInsName:"",TpInsurerPolicyno:r?.prvPlcyTPPPNum?r?.prvPlcyTPPPNum:"",PosPolicyNo:l?.quotationDialog?.quotationId?l?.quotationDialog?.quotationId:"",CustomerName:r?.firstName?r?.firstName:r?.rc_owner_name?r?.rc_owner_name:"",QuotationId:l?.quotationDialog?.quotationId?l?.quotationDialog?.quotationId:"",RegistrationNumber:r?.regNumber?r?.regNumber:"",ownerNomineeDOB:this.personalInformation.get("ownerNomineeDOB")?.value?this.personalInformation.get("ownerNomineeDOB")?.value:r?.rc_nominee_name?r?.rc_nominee_name:"",CKYCAgree:"true",ExtraField:""};this.transactionService.updateBankZoneOtherDtls(k).subscribe(F=>{sessionStorage.setItem("ZoneBankDtlId",F?.Result[0]?.Id)})}formatDateTP(r){if(!r||!/^\d{2}\/\d{2}\/\d{4}$/.test(r))return null;const[l,i,v]=r.split("/");return`${v}-${i}-${l} 00:00:00.000`}updateStatusByRefId(){if("Reference Number"===this.personalInformation.value.ID_Type||"Reference Number"==this.mngetCkycUpdateDlts?.ID_Type){let v,r={source:"WEBONLINE",uniqueTransactionNumber:"Reference Number"===this.personalInformation.value.ID_Type?this.personalInformation.value.ID_Number:this.mngetCkycUpdateDlts?.uniqueTransactionNumber},l=100,i=999,k="WEBONLINE/"+v+"/"+(Math.floor(Math.random()*(i-l+1))+l);this.uniqueNo=k,sessionStorage.setItem("hap_dob",o(this.personalInformation.value.dob).format("DD-MM-YYYY"));let L=(Date,o(this.personalInformation.value.dob).format("DD-MM-YYYY"));"Invalid date"!==L?(Date,L=o(this.personalInformation.value.dob).format("DD-MM-YYYY")):L=this.personalInformation.value.dob;let W={email:this.personalInformation.value.ckycEmail,customerName:this.vehicleOwnerName};this.journeyHomeService.checkCKYCReturningUser(r).subscribe(O=>{if(O){this.saveCKYCdtls(O.result,r,O);let J={MobileNumber:this.mobileNo,CusomerName:this.vehicleOwnerName};if(O.result)if("True"===O.result.kycVerifiedStatus){if(o(this.personalInformation.value.dob).format("DD-MM-YYYY")!=O?.result?.dob&&this.personalInformation.value.dob!=O?.result?.dob)return"Reference Number"==this.mngetCkycUpdateDlts?.manualKYCurl?void this.openCkycProcessPopup(this.mngetCkycUpdateDlts?.manualKYCurl):void this.openErrorPopup("Your reference number is not matching with mentioned DOB.");let be=this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue(),De=this.vehicleSelection,Se="old"===De?be?.rc_f_name?.split(" ")??be?.rc_owner_first_name?.split(" ")??"":"",Le=O.result.name.split(" "),_e=(o(O.result.dob).format("DD-MM-YYYY"),Se?Se[0]:"");"old"==De&&_e.toUpperCase()===Le[0].toUpperCase()||"old"==De&&"NA"===_e.toUpperCase().trim()||"new"==De?(this.openCkycCompletedPopup(),this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:"Reference Number"===this.personalInformation.value.ID_Type?this.personalInformation.value.ID_Number:this.mngetCkycUpdateDlts?.uniqueTransactionNumber,address1:O.result.address,firstName:O.result.name,pincode:O.result.pincode,city:O.result.city,state:O.result.state,email:O.result.email||this.personalInformation.value.email,dob:O.result.dob,kycVerify:O.result.kycVerifiedStatus,mobileNumber:O.result.mobileNumber||this.mobileNo,idType:this.idTypeApi,idNumber:"Reference Number"===this.personalInformation.value.ID_Type?this.personalInformation.value.ID_Number:this.mngetCkycUpdateDlts?.uniqueTransactionNumber,PanNumber:O.result.pan})):this.ckycMismatchedPopup(),setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}else"False"===O.result.kycVerifiedStatus&&(this.openCkycProcessPopup(this.mngetCkycUpdateDlts?.manualKYCurl),this.journeyHomeService.SendSMSCKYCUser(J).subscribe(z=>{console.log("CkycSMS",z)},z=>{console.log(z)}),this.journeyHomeService.CKYCUsgiEmailApi(W).subscribe(z=>{console.log("usgiEmailApi",z)},z=>{console.log(z)}));else this.openCkycProcessPopup(this.mngetCkycUpdateDlts?.manualKYCurl),this.journeyHomeService.SendSMSCKYCUser(J).subscribe(z=>{console.log("CkycSMS",z)},z=>{console.log(z)}),this.journeyHomeService.CKYCUsgiEmailApi(W).subscribe(z=>{console.log("usgiEmailApi",z)},z=>{console.log(z)})}},O=>{this.openCkycProcessPopup(this.mngetCkycUpdateDlts?.manualKYCurl)})}}openckycguidePopupComponent(){this.modalService.show(pt.W,Object.assign({}
1,{class:"term-condition-popup modal-lg",backdrop:!0,ignoreBackdropClick:!0,keyboard:!1}))}onInputDisability(r){let l=r.target.value.replace(/[^0-9]/g,"");0==parseInt(l)||l<1?r.target.value="":l>100&&(r.target.value=100)}static{this.\u0275fac=function(l){return new(l||h)(e.rXU(_.ze),e.rXU(gt.I8),e.rXU(S.Ix),e.rXU(e.SKi),e.rXU(ft.z),e.rXU(t.L),e.rXU(nt.k),e.rXU(Ue.h),e.rXU(vt.ml),e.rXU(yt.Mq),e.rXU(Ct.ts),e.rXU(q.CH),e.rXU(Re.WM),e.rXU(Ve.i),e.rXU(ve._),e.rXU(ze.i),e.rXU(He.s),e.rXU(Xe.a))}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-motor-details-from"]],decls:370,vars:174,consts:[["phoneField",""],["notupdate",""],["hospital",""],[1,"new-form",3,"formGroup"],[1,"card","card-with-title","border-0","shadow"],[1,"card-body","p-0"],[1,"card","border-0"],[1,"card-title","montserrat-bold","text-semibold","text-black","py-2","px-3","bg-lighter-orange","mb-0","mt-3"],[1,"card-body","px-lg-4","pt-lg-4","pb-lg-0","px-3","pt-3","pb-0"],[1,"step-guide-text",2,"cursor","pointer",3,"click"],[1,"row"],[1,"col-12","col-lg-4","mb-4"],[1,"form-group",3,"ngClass"],["for",""],[1,"text-danger"],["type","text","formControlName","ckycEmail","placeholder","Enter Your Email ID","pattern","[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,3}$",1,"form-control"],["class","err-txt text-danger",4,"ngIf"],[1,"form-group","datepicker","position-relative","datepicker-icon",3,"ngClass"],["for","",1,"mb-2","fs-16","text-dark-gray","text-bold","montserrat-bold"],["src","./assets/images/icons/calendar-icon.svg","alt","calendar",1,"img-fluid"],["type","text","formControlName","dob","placeholder","DD-MM-YYYY","bsDatepicker","",1,"form-control","position-relative",3,"bsConfig","maxDate"],[1,"form-group","form-select","mb-md-0","mr-xl-0",3,"ngClass"],["formControlName","ckycPhone","customPlaceholder","Enter Mobile Number","maxLength","10","id","phoneField",3,"keydown","countryChange","cssClass","preferredCountries","enableAutoCountrySelect","enablePlaceholder","searchCountryFlag","searchCountryField","selectFirstCountry","selectedCountryISO","phoneValidation"],[1,"form-group","form-select","mr-xl-0"],["formControlName","ID_Type","placeholder","ID Type","required","",1,"select-control",3,"ngModelChange","items"],[1,"form-group"],[4,"ngIf"],["type","text","formControlName","ID_Number","class","form-control","oninput","this.value=this.value.toUpperCase()","placeholder","ID number",3,"keyup",4,"ngIf"],["type","text","formControlName","ID_Number","class","form-control","placeholder","ID number",3,"keyup",4,"ngIf"],["class","err-txt d-block text-danger",4,"ngIf"],["class","col-12 col-lg-12 mb-4",4,"ngIf"],[1,"col-12","col-lg-12","mb-4"],[1,"fs-12","montserrat-medium","text-danger"],[1,"col-12","col-lg-12","mb-12"],["type","checkbox","formControlName","tbConsent","id","tbConsent",1,"form-check-input"],["for","tbConsent",1,"fs-12","montserrat-medium","text-medium","text-dark-gray","hint-message","font-weight-light"],[1,"btn-control","text-right","mr-4"],[4,"ngIf","ngIfElse"],["type","text","formControlName","ownerFirstName","id","motorName","placeholder","Enter First Name","maxlength","70","oninput","this.value = this.value.replace(/[^a-zA-Z]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control",3,"readonly"],["type","text","formControlName","ownerMiddleName","placeholder","Enter Middle Name","maxlength","70","oninput","this.value = this.value.replace(/[^a-zA-Z]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control",3,"readonly"],["type","text","formControlName","ownerLastName","placeholder","Enter Last Name","maxlength","70","oninput","this.value = this.value.replace(/[^a-zA-Z]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control",3,"readonly"],["for","",1,"mb-2"],["type","text","formControlName","ownerEmailID","placeholder","Enter Your Email ID","pattern","[a-zA-Z0-9._%+-*]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,3}$",1,"form-control",3,"keydown","readonly"],["formControlName","ownerPhone","customPlaceholder","Enter Mobile Number","maxLength","10","id","phoneField",3,"keydown","countryChange","cssClass","preferredCountries","enableAutoCountrySelect","enablePlaceholder","searchCountryFlag","searchCountryField","selectFirstCountry","selectedCountryISO","phoneValidation"],[1,"col-12","col-lg-4","mb-4","pr-lg-0"],[1,"form-group","radio-btn-sm",3,"ngClass"],[1,"mb-3"],[1,"radio-data","d-flex","flex-wrap"],[1,"text-primary"],["type","radio","checked","","formControlName","ownerMaritalStatus","name","ownerMaritalStatus","value","Single"],[1,"checkmark"],[1,"text-primary","mb-0"],["type","radio","formControlName","ownerMaritalStatus","name","ownerMaritalStatus","value","Married"],[1,"col-12","mb-4"],["type","text","formControlName","ownerRegisteredAddress","maxlength","200","rows","3","placeholder","Enter Your Registered Address","oninput","this.value = this.value.replace(/[^0-9A-Za-z-/(), ]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control",3,"keydown","readonly"],["type","text","formControlName","ownerRegisteredAddressPincode","placeholder","Enter Your Pincode","minlength","6","maxlength","6","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control",3,"keyup","readonly"],["class","err-txt text-danger",3,"ngStyle",4,"ngIf"],[1,"form-group","form-select",3,"ngClass"],["formControlName","ownerRegisteredAddressState","placeholder","Select State","required","",1,"select-control",3,"keydown","ngModelChange","items"],["formControlName","ownerRegisteredAddressCity","placeholder","Select City","required","",1,"select-control",3,"keydown","items"],[1,"form-group","form-check","checkbox-md","pl-0","mt-2"],[1,"declaration"],["type","checkbox","formControlName","ownerIsCommunicationAddressSame","id","ownerIsCommunicationAddressSame",1,"form-check-input",3,"change"],["for","ownerIsCommunicationAddressSame",1,"fs-12","text-dark-gray","text-medium","montserrat-medium","d-inline","align-items-center","mb-0","pt-0"],[1,"col-12","mb-4","mb-4"],["type","text","formControlName","ownerCommunicationAddress","maxlength","200","rows","3","placeholder","Enter Your Address","oninput","this.value = this.value.replace(/[^0-9A-Za-z-/(), ]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control",3,"keydown","disabled","readonly"],["type","text","formControlName","ownerCommunicationAddressPincode","placeholder","Enter Your Pincode","minlength","6","maxlength","6","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control",3,"keyup","disabled","readonly"],[1,"form-group","form-select","up-dropdown",3,"ngClass"],["formControlName","ownerCommunicationAddressState","placeholder","Select State","required","",1,"select-control",3,"ngModelChange","keydown","items","disabled"],["formControlName","ownerCommunicationAddressCity","placeholder","Select City","required","",1,"select-control",3,"keydown","items","disabled"],[1,"card-title","montserrat-semibold","text-semibold","text-black","py-2","px-3","bg-lighter-orange","mb-0","mt-3"],[1,"col-12","col-lg-4","mb-4","mb-lg-3"],[1,"d-flex","reg-number-blk"],["type","text","placeholder","Account Holder Name","minlength","5","maxlength","50","name","Account","formControlName","OwnerAccountName",1,"form-control","px-2","mr-1"],["type","text","placeholder","Account Number","minlength","3","maxlength","30","name","Account","formControlName","OwnerAccountNo",1,"form-control","px-2","mr-1"],["formControlName","OwnerBankList","placeholder","Select Bank",1,"select-control","w-sm-100",3,"select","items"],["class","col-12 col-lg-4 mb-4 mb-lg-3",4,"ngIf"],["id","bank","formControlName","OwnerAccountType",1,"form-select","form-control","w-sm-100"],["value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],["type","text","formControlName","OwnerIFSCCode","placeholder","Enter Your IFSC Number","oninput","this.value = this.value.replace(/[^0-9A-Za-z/ .]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control"],["type","text","formControlName","OwnerPanNo","minlength","10","maxlength","17","placeholder","Enter Your PAN Number","oninput","this.value = this.value.replace(/[^0-9A-Za-z/ .]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control"],["type","text","formControlName","ownerChasisNo","minlength","17","maxlength","17","placeholder","Enter Your chasisNumber","oninput","this.value = this.value.replace(/[^0-9A-Za-z~/ .]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control",3,"readonly"],[1,"d-flex","align-items-center"],[1,"montserrat-medium","text-medium","fs-12","text-primary","mr-1","mt-2"],[1,"montserrat-semibold","text-semibold"],["type","text","formControlName","ownerEngineNo","minlength","5","maxlength","25","placeholder","Enter Your engineNumber","oninput","this.value = this.value.replace(/[^0-9A-Za-z~/ .]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control",3,"readonly"],["class","card border-0",4,"ngIf"],[1,"col-12","col-lg-5","mb-4","pr-lg-0"],[1,"mb-4"],["type","radio","formControlName","ownerOptedForLoan","name","ownerOptedForLoan","id","Yes","value","Yes"],["type","radio","formControlName","ownerOptedForLoan","name","ownerOptedForLoan","id","No","value","No","checked",""],["class","col-12 col-lg-5 mb-4",4,"ngIf"],[1,"col-12","declaration"],[1,"star"],["type","checkbox","formControlName","IsPhysicalCopy","id","IsPhysicalCopy",1,"form-check-input",3,"change"],["for","IsPhysicalCopy",1,"d-inline-block","align-items-center","mb-0","pt-0"],[1,"form-group","form-check","radio-btn-sm","pl-0","mt-2"],[1,"align-items-center","mb-2","pt-0"],["type","radio","formControlName","IsPEP","name","PEP","
1id","rdoYes","value","Yes",3,"change"],["type","radio","formControlName","IsPEP","name","PEP","id","rdoNo","value","No","checked",""],["type","checkbox","formControlName","IsDisableDeclare","id","IsDisableDeclare",1,"form-check-input",3,"change"],["for","IsDisableDeclare",1,"d-inline-block","align-items-center","mb-0","pt-0"],["src","./assets/images/i-img.png",3,"click"],["class","col-12 col-lg-4 mb-4 mt-2",4,"ngIf"],["type","checkbox","formControlName","IsDataPrivacy","id","IsDataPrivacy",1,"form-check-input"],["for","IsDataPrivacy",1,"d-inline-block","align-items-center","mb-0","pt-0"],[1,"fs-12","montserrat-medium","text-primary","mb-4","pl-4"],[1,"form-group","form-check","checkbox-md","pl-0","mt-5"],["type","checkbox","formControlName","ownerIsAgreeTermsAndConditions","id","declare",1,"form-check-input"],["for","declare",1,"fs-12","text-dark-gray","text-medium","montserrat-medium","mb-0","pt-0"],["target","_blank","href","https://www.universalsompo.com/Footer/PrivacyPolicy",1,"text-danger","ml-1","text-decoration-none"],[1,"err-txt","text-danger"],["type","text","formControlName","ID_Number","oninput","this.value=this.value.toUpperCase()","placeholder","ID number",1,"form-control",3,"keyup"],["type","text","formControlName","ID_Number","placeholder","ID number",1,"form-control",3,"keyup"],[1,"err-txt","d-block","text-danger"],[1,"captcha-section"],[1,"captchaSec-img"],["alt","Captcha Image",1,"captcha-image",3,"src"],["src","./assets/images/icons/refresh.png","alt","Refresh Image",1,"refresh-image",3,"click"],["type","text","id","captchaControl","formControlName","captcha","minlength","6","maxlength","6","placeholder","Enter CAPTCHA",1,"form-control",2,"width","200px","display","inline"],[1,"btn","btn-danger","px-4",3,"click","disabled"],[1,"btn","btn-danger","mr-3",3,"click","disabled"],[1,"btn","btn-danger",3,"click","disabled"],[1,"err-txt","text-danger",3,"ngStyle"],["type","text","formControlName","OwnerBankName","placeholder","Enter Bank Name","oninput","this.value = this.value.replace(/[^0-9A-Za-z/ .]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control"],[3,"value"],["type","text","name","state","formControlName","state","oninput","this.value=this.value.toUpperCase()",1,"form-control","px-2","mr-1",3,"readonly"],["type","text","name","rtoNo","formControlName","rtoNo","oninput","this.value=this.value.toUpperCase()",1,"form-control","px-2","mr-1",3,"readonly"],["type","text","name","vehicleMidNo","formControlName","vehicleMidNo","oninput","this.value=this.value.toUpperCase()",1,"form-control","px-2","mr-1",3,"keyup","readonly"],["type","text","formControlName","vehicleLastNo","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*)\\./g, '$1');","name","vehicleLastNo",1,"form-control","px-2",3,"keyup","readonly"],["type","text","formControlName","ownerPreviousPolicyNo","placeholder","2815 / 5263333 / 03 / 000","minlength","10","maxlength","20","oninput","this.value = this.value.replace(/[^0-9A-Za-z/ .]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control"],["formControlName","ownerPreviousPolicyCompany","placeholder","Select Previous Policy Company",1,"select-control",3,"items"],[1,"form-group","datepicker",3,"ngClass"],[1,"position-relative"],["type","text","formControlName","ownerPreviousPolicyEndDate","placeholder","DD/MM/YYYY","bsDatepicker","",1,"form-control",3,"bsConfig"],[1,"col-12","col-lg-7","col-xl-5","mb-4","pr-lg-0"],["for","",1,"mb-3"],["class","text-primary mb-0 mr-3",4,"ngIf"],[1,"text-primary","mr-3"],["type","radio","value","Comprehensive","name","ownerPreviousPolicyType","formControlName","ownerPreviousPolicyType"],["class","text-primary",4,"ngIf"],["formControlName","ownerNcbValue","placeholder","Select NCB Value","readonly","",1,"select-control",3,"items"],[1,"text-primary","mb-0","mr-3"],["type","radio","value","Liability","name","ownerPreviousPolicyType","formControlName","ownerPreviousPolicyType"],["type","radio","value","SAOD","name","ownerPreviousPolicyType","formControlName","ownerPreviousPolicyType"],[1,"form-group","datepicker"],["type","text","formControlName","owneTpPolicyPlanFromDate","maxlength","20","placeholder","DD/MM/YYYY","bsDatepicker","",1,"form-control",3,"bsConfig"],["type","text","formControlName","owneTpPolicyPlanToDate","placeholder","DD/MM/YYYY","bsDatepicker","",1,"form-control",3,"bsConfig"],["formControlName","ownerTPInsurerName","placeholder","TP Insurer Name",1,"select-control",3,"items"],["type","text","formControlName","ownerTPPolicyNo","placeholder","2815 / 5263333 / 03 / 000","minlength","10","maxlength","20","oninput","this.value = this.value.replace(/[^0-9A-Za-z/ .]/g, '').replace(/(\\..*)\\./g, '$1');",1,"form-control"],["type","text","formControlName","ownerNomineeName","placeholder","Enter Nominee Name","maxlength","70","oninput","this.value = this.value.replace(/[^a-zA-Z ]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control"],["formControlName","ownerNomineeRelation","placeholder","Select Nominee Relation",1,"select-control",3,"items"],["type","text","formControlName","ownerNomineeDOB","placeholder","MM/DD/YYYY","bsDatepicker","",1,"form-control","position-relative",3,"bsValueChange","keydown","bsConfig","maxDate"],[1,"col-12","col-lg-6","mb-4","pr-xl-5"],["type","text","formControlName","appointeetName","placeholder","Enter Your Appointeet Name","maxlength","20","oninput","this.value = this.value.replace(/[^a-zA-Z ]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control",3,"keydown"],[1,"col-12","col-lg-6","mb-4","pl-xl-5"],["formControlName","appointeetRelation","placeholder","Select Your Relation",1,"select-control",3,"items"],[1,"form-group","datepicker","position-relative",3,"ngClass"],["type","text","formControlName","appointeetDOB","placeholder","MM/DD/YYYY","bsDatepicker","",1,"form-control","position-relative",3,"keydown","bsConfig","maxDate","minDate"],["formControlName","appointeetGender","placeholder","Select Gender",1,"select-control",3,"items"],[1,"col-12","col-lg-5","mb-4"],["type","text","formControlName","ownerLoanProviderName","id","motorName","oninput","this.value = this.value.replace(/[^a-zA-Z ]/g, '').replace(/(\\..*)\\./g, '$1')","placeholder","Enter loan provider name","maxlength","70",1,"form-control"],[1,"col-12","col-lg-4","mb-4","mt-2"],["type","text","formControlName","DisableDecription","id","healthName","placeholder","Enter Disability Percent","maxlength","5","oninput","this.value = this.value.replace(/[^0-9]/g, '').replace(/(\\..*)\\./g, '$1')",1,"form-control",3,"input","keydown"]],template:function(l,i){if(1&l){const v=e.RV6();e.j41(0,"form",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),e.EFF(5," CKYC Details "),e.k0s(),e.j41(6,"div",8)(7,"div",9),e.bIt("click",function(){return e.eBV(v),e.Njj(i.openckycguidePopupComponent())}),e.EFF(8," Click here for a step-by-step guide to filling out your KYC form "),e.k0s(),e.j41(9,"div",10)(10,"div",11)(11,"div",12)(12,"label",13),e.EFF(13,"Email ID "),e.j41(14,"span",14),e.EFF(15,"*"),e.k0s()(),e.nrm(16,"input",15),e.DNE(17,Ze,2,0,"small",16),e.k0s()(),e.j41(18,"div",11)(19,"div",17)(20,"label",18),e.EFF(21,"DOB "),e.j41(22,"span",14),e.EFF(23,"*"),e.k0s()(),e.nrm(24,"img",19)(25,"input",20),e.k0s()(),e.j41(26,"div",11)(27,"div",21)(28,"label",13),e.EFF(29,"CKYC Mobile Number "),e.j41(30,"span",14),e.EFF(31,"*"),e.k0s()(),e.j41(32,"ngx-intl-tel-input",22,0),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))})("countryChange",function(){return e.eBV(v),e.Njj(i.countryChange())}),e.k0s(),e.DNE(34,st,2,0,"small",16),e.k0s()(),e.j41(35,"div",11)(36,"div",23)(37,"label",13),e.EFF(38,"ID Type "),e.j41(39,"span",14),e.EFF(40,"*"),e.k0s()(),e.j41(41,"ngx-select",24),e.bIt("ngModelChange",function(){return e.eBV(v),e.Njj(i.onIdT
1ypeOptionsSelected())}),e.k0s()()(),e.j41(42,"div",11)(43,"div",25)(44,"label",13),e.EFF(45,"ID Number "),e.j41(46,"span",14),e.EFF(47,"* "),e.k0s(),e.DNE(48,bt,3,0,"ng-container",26)(49,_t,3,0,"ng-container",26),e.k0s(),e.DNE(50,Dt,1,0,"input",27)(51,It,1,0,"input",28)(52,Pt,2,0,"small",29),e.k0s()(),e.DNE(53,Nt,8,2,"div",30),e.j41(54,"div",31)(55,"label",32),e.EFF(56,"Note: Policy schedule will be generated as per KYC details."),e.k0s()(),e.j41(57,"div",33)(58,"div",25),e.nrm(59,"input",34),e.j41(60,"label",35),e.EFF(61," I hereby give consent to Universal Sompo General Insurance Co Ltd to receive and download information from Central KYC Registry. "),e.k0s()()()()(),e.j41(62,"div",36),e.DNE(63,wt,5,2,"ng-container",37)(64,kt,2,1,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(66,"div",6)(67,"div",7),e.EFF(68," Owner Details "),e.k0s(),e.j41(69,"div",8)(70,"div",10)(71,"div",11)(72,"div",12)(73,"label",13),e.EFF(74,"First Name "),e.j41(75,"span",14),e.EFF(76,"*"),e.k0s()(),e.nrm(77,"input",38),e.DNE(78,xt,2,0,"small",16),e.k0s()(),e.j41(79,"div",11)(80,"div",12)(81,"label",13),e.EFF(82,"Middle Name "),e.k0s(),e.nrm(83,"input",39),e.DNE(84,Mt,2,0,"small",16),e.k0s()(),e.j41(85,"div",11)(86,"div",12)(87,"label",13),e.EFF(88,"Last Name "),e.j41(89,"span",14),e.EFF(90,"*"),e.k0s()(),e.nrm(91,"input",40),e.DNE(92,Ot,2,0,"small",16),e.k0s()(),e.j41(93,"div",11)(94,"div",12)(95,"label",41),e.EFF(96,"Email ID "),e.j41(97,"span",14),e.EFF(98,"*"),e.k0s()(),e.j41(99,"input",42),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))}),e.k0s(),e.DNE(100,At,2,0,"small",16),e.k0s()(),e.j41(101,"div",11)(102,"div",21)(103,"label",13),e.EFF(104,"CKYC Mobile Number "),e.j41(105,"span",14),e.EFF(106,"*"),e.k0s()(),e.j41(107,"ngx-intl-tel-input",43,0),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))})("countryChange",function(){return e.eBV(v),e.Njj(i.countryChange())}),e.k0s(),e.DNE(109,Ft,2,0,"small",16),e.k0s()(),e.j41(110,"div",44)(111,"div",45)(112,"label",46),e.EFF(113,"Marital Status"),e.j41(114,"span",14),e.EFF(115,"*"),e.k0s()(),e.j41(116,"div",47)(117,"label",48),e.
1EFF(118,"Single "),e.nrm(119,"input",49)(120,"span",50),e.k0s(),e.j41(121,"label",51),e.EFF(122," Married "),e.nrm(123,"input",52)(124,"span",50),e.k0s()(),e.DNE(125,w,2,0,"small",16),e.k0s()()(),e.j41(126,"div",10)(127,"div",53)(128,"div",12)(129,"label",41),e.EFF(130,"Registered Address "),e.j41(131,"span",14),e.EFF(132,"*"),e.k0s()(),e.j41(133,"textarea",54),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))}),e.k0s(),e.DNE(134,re,2,0,"small",16),e.k0s()(),e.j41(135,"div",11)(136,"div",12)(137,"label",41),e.EFF(138,"Pincode "),e.j41(139,"span",14),e.EFF(140,"*"),e.k0s()(),e.j41(141,"input",55),e.bIt("keyup",function(){return e.eBV(v),e.Njj(i.stateListValueChangeRegistered())}),e.k0s(),e.DNE(142,u,2,4,"small",56),e.k0s()(),e.j41(143,"div",11)(144,"div",57)(145,"label",41),e.EFF(146,"State "),e.j41(147,"span",14),e.EFF(148,"*"),e.k0s()(),e.j41(149,"ngx-select",58),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))})("ngModelChange",function(k){return e.eBV(v),e.Njj(i.CitybyStateReg(k))}),e.k0s(),e.DNE(150,C,2,0,"small",16),e.k0s()(),e.j41(151,"div",11)(152,"div",57)(153,"label",41),e.EFF(154,"City "),e.j41(155,"span",14),e.EFF(156,"*"),e.k0s()(),e.j41(157,"ngx-select",59),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))}),e.k0s(),e.DNE(158,f,2,0,"small",16),e.k0s()(),e.j41(159,"div",53)(160,"div",60)(161,"div",61)(162,"input",62),e.bIt("change",function(){let k;return e.eBV(v),e.Njj(i.sameAddress(null==(k=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:k.value))}),e.k0s(),e.j41(163,"label",63),e.EFF(164," Communication address same as registered. "),e.k0s()()()()(),e.j41(165,"div",10)(166,"div",64)(167,"div",12)(168,"label",41),e.EFF(169,"Communication address "),e.j41(170,"span",14),e.EFF(171,"*"),e.k0s()(),e.j41(172,"textarea",65),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))}),e.k0s(),e.DNE(173,H,2,0,"small",16),e.k0s()(),e.j41(174,"div",11)(175,"div",12)(176,"label",41),e.EFF(177,"Pincode "),e.j41(178,"span",14),e.EFF(179,"*"),e.k0s()(),e.j41(180,"input",66),e.bIt("keyup",function(){return e.eBV(v),e.Njj(i.stateListValueChangeCommunication())}),e.k0s(),e.DNE(181,ae,2,4,"small",56),e.k0s()(),e.j41(182,"div",11)(183,"div",67)(184,"label",41),e.EFF(185,"State "),e.j41(186,"span",14),e.EFF(187,"*"),e.k0s()(),e.j41(188,"ngx-select",68),e.bIt("ngModelChange",function(k){return e.eBV(v),e.Njj(i.CitybyState(k))})("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))}),e.k0s(),e.DNE(189,G,2,0,"small",16),e.k0s()(),e.j41(190,"div",11)(191,"div",67)(192,"label",41),e.EFF(193,"City "),e.j41(194,"span",14),e.EFF(195,"*"),e.k0s()(),e.j41(196,"ngx-select",69),e.bIt("keydown",function(k){return e.eBV(v),e.Njj(i.Space(k))}),e.k0s(),e.DNE(197,ye,2,0,"small",16),e.k0s()()()()(),e.j41(198,"div",6)(199,"div",70),e.EFF(200," Bank Details "),e.k0s(),e.j41(201,"div",8)(202,"div",10)(203,"div",71)(204,"div",12)(205,"label",41),e.EFF(206,"Account Holder Name "),e.j41(207,"span",14),e.EFF(208,"*"),e.k0s()(),e.j41(209,"div",72),e.nrm(210,"input",73),e.k0s(),e.DNE(211,Me,2,0,"small",29),e.k0s()(),e.j41(212,"div",71)(213,"div",12)(214,"label",41),e.EFF(215,"Account Number "),e.j41(216,"span",14),e.EFF(217,"*"),e.k0s()(),e.j41(218,"div",72),e.nrm(219,"input",74),e.k0s(),e.DNE(220,$e,2,0,"small",29),e.k0s()(),e.j41(221,"div",71)(222,"div",12)(223,"label",41),e.EFF(224,"Bank Name "),e.j41(225,"span",14),e.EFF(226,"*"),e.k0s()(),e.j41(227,"ngx-select",75,2),e.bIt("select",function(){return e.eBV(v),e.Njj(i.selectBank())}),e.k0s(),e.DNE(229,Ge,2,0,"small",16),e.k0s()(),e.DNE(230,Tt,8,4,"div",76),e.j41(231,"div",71)(232,"div",12)(233,"label",41),e.EFF(234,"Account Type "),e.j41(235,"span",14),e.EFF(236,"*"),e.k0s()(),e.j41(237,"div",72)(238,"select",77)(239,"option",78),e.EFF(240,"Select Account Type"),e.k0s(),e.DNE(241,Et,2,2,"option",79),e.k0s()(),e.DNE(242,Oe,2,0,"small",29),e.k0s()(),e.j41(243,"div",71)(244,"div",12)(245,"label",41),e.EFF(246,"IFSC Number"),e.j41(247,"span",14),e.EFF(248,"*"),e.k0s()(),e.nrm(249,"input",80),e.DNE(250,lt,2,0,"small",16),e.k0s()(),e.j41(251,"div",71)(252,"div",12)(253,"label",41),e.EFF(254,"PAN Number"),e.j41(255,"span",14),e.EFF(256,"*"),e.k0s()(),e.nrm(257,"input",81),e.DNE(258,lo,2,0,"small",16),e.k0s()()()()(),e.j41(259,"div",6)(260,"div",70),e.EFF(261," Vehicle Details "),e.k0s(),e.j41(262,"div",8)(263,"div",10),e.DNE(264,y,16,24,"div",76),e.j41(265,"div",71)(266,"div",12)(267,"label",41),e.EFF(268,"Chassis Number "),e.j41(269,"span",14),e.EFF(270,"*"),e.k0s()(),e.nrm(271,"input",82),e.DNE(272,D,2,0,"small",16),e.j41(273,"div",83)(274,"span",84),e.EFF(275," You can find your "),e.nrm(276,"span",85),e.EFF(277," vehicle chassis No. in the RC book "),e.k0s()()()(),e.j41(278,"div",71)(279,"div",12)(280,"label",41),e.EFF(281,"Engine Number "),e.j41(282,"span",14),e.EFF(283,"*"),e.k0s()(),e.nrm(284,"input",86),e.DNE(285,V,2,0,"small",16),e.j41(286,"div",83)(287,"span",84),e.EFF(288," You can find your "),e.nrm(289,"span",85),e.EFF(290," vehicle engine No. in the RC book "),e.k0s()()()()()()(),e.DNE(291,T,54,26,"div",87)(292,oe,40,13,"div",87)(293,ho,31,16,"div",87)(294,Co,39,22,"div",87),e.j41(295,"div",6)(296,"div",70),e.EFF(297," Hypothecation Details "),e.k0s(),e.j41(298,"div",8)(299,"div",10)(300,"div",88)(301,"div",45)(302,"label",89),e.EFF(303,"Is your vehicle currently on loan? "),e.j41(304,"
1span",14),e.EFF(305,"*"),e.k0s()(),e.j41(306,"div",47)(307,"label",48),e.EFF(308,"Yes "),e.nrm(309,"input",90)(310,"span",50),e.k0s(),e.j41(311,"label",51),e.EFF(312," No "),e.nrm(313,"input",91)(314,"span",50),e.k0s()(),e.DNE(315,go,2,0,"small",16),e.k0s()(),e.DNE(316,le,8,4,"div",92),e.k0s()()(),e.j41(317,"div",53)(318,"div",60)(319,"div",93)(320,"span",94),e.EFF(321,"\u2605"),e.k0s(),e.j41(322,"input",95),e.bIt("change",function(){return e.eBV(v),e.Njj(i.changeConsent())}),e.k0s(),e.j41(323,"label",96),e.EFF(324," I would like to avail physical copy of policy schedule "),e.k0s()()()(),e.j41(325,"div",53)(326,"div",97)(327,"div",93)(328,"label",98)(329,"span",94),e.EFF(330,"\u2605"),e.k0s(),e.EFF(331,"Are you a Politically Exposed Person or a relative of PEP? "),e.k0s(),e.j41(332,"div",47)(333,"label",48),e.EFF(334,"Yes "),e.j41(335,"input",99),e.bIt("change",function(k){return e.eBV(v),e.Njj(i.pepMember(k))}),e.k0s(),e.nrm(336,"span",50),e.k0s(),e.j41(337,"label",51),e.EFF(338," No "),e.nrm(339,"input",100)(340,"span",50),e.k0s()()()()(),e.j41(341,"div",53)(342,"div",60)(343,"div",93)(344,"span",94),e.EFF(345,"\u2605"),e.k0s(),e.j41(346,"input",101),e.bIt("change",function(k){return e.eBV(v),e.Njj(i.openDisableConcent(k))}),e.k0s(),e.j41(347,"label",102),e.EFF(348," DISABILITY DECLARATION"),e.k0s(),e.j41(349,"img",103),e.bIt("click",function(){return e.eBV(v),e.Njj(i.openDisableDeclare())}),e.k0s()(),e.DNE(350,Rt,4,4,"div",104),e.k0s()(),e.j41(351,"div",53)(352,"div",60)(353,"div",93)(354,"span",94),e.EFF(355,"\u2605"),e.k0s(),e.nrm(356,"input",105),e.j41(357,"label",106),e.EFF(358," Data Privacy "),e.j41(359,"span",14),e.EFF(360,"*"),e.k0s()(),e.j41(361,"img",103),e.bIt("click",function(){return e.eBV(v),e.Njj(i.openDataPrivacy())}),e.k0s()()()(),e.j41(362,"p",107),e.EFF(363," Previous year policy document is required in case of claim within 30 days of the Universal Sompo start date. "),e.k0s()()(),e.j41(364,"div",108),e.nrm(365,"input",109),e.j41(366,"label",110),e.EFF(367," By tapping on continue I declare that I have provided correct details and have read Universal Sompo "),e.j41(368,"a",111),e.EFF(369,"T&C"),e.k0s()()()()}if(2&l){let v,I,k,F,L,E,W,O,Ce,J,z,be,De,Se,Le,de,M,_e,me,U,Q,Ne,ce,xe,we,ie,bo,yo,dt,ke,_o,Do,Vt,Bt,Io,$t,Gt,Po,Lt,Jt,Ut,Ht,Xt,Kt,Wt,qt,zt,Zt,Qt,eo,to,oo,no,io,ro,ao,so,No;const wo=e.sdS(65);e.Y8G("formGroup",i.personalInformation),e.R7$(11),e.Y8G("ngClass",e.eq3(109,j,(null==(v=i.personalInformation.get("ckycEmail"))?null:v.invalid)&&((null==(v=i.personalInformation.get("ckycEmail"))?null:v.dirty)||(null==(v=i.personalInformation.get("ckycEmail"))?null:v.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(I=i.personalInformation.get("ckycEmail"))?null:I.invalid)&&((null==(I=i.personalInformation.get("ckycEmail"))?null:I.dirty)||(null==(I=i.personalInformation.get("ckycEmail"))?null:I.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(111,j,(null==(k=i.personalInformation.get("dob"))?null:k.errors)&&(null==(k=i.personalInformation.get("dob"))?null:k.touched))),e.R7$(6),e.Y8G("bsConfig",e.lJ4(113,Be))("maxDate",i.maxDate),e.R7$(2),e.Y8G("ngClass",e.eq3(114,j,(null==(F=i.personalInformation.get("ckycPhone"))?null:F.errors)&&(null==(F=i.personalInformation.get("ckycPhone"))?null:F.touched))),e.R7$(5),e.Y8G("cssClass","intl-tel-number contact-number")("preferredCountries",e.l_i(116,ue,i.CountryISO.UnitedStates,i.CountryISO.UnitedKingdom))("enableAutoCountrySelect",!1)("enablePlaceholder",!0)("searchCountryFlag",!0)("searchCountryField",e.l_i(119,ue,i.SearchCountryField.Iso2,i.SearchCountryField.Name))("selectFirstCountry",!1)("selectedCountryISO",i.CountryISO.India)("phoneValidation",!0),e.R7$(2),e.Y8G("ngIf",(null==(L=i.personalInformation.get("ckycPhone"))?null:L.errors)&&(null==(L=i.personalInformation.get("ckycPhone"))?null:L.touched)),e.R7$(7),e.Y8G("items",i.idType),e.R7$(7),e.Y8G("ngIf","Aadhar Card"===i.personalInformation.value.ID_Type),e.R7$(),e.Y8G("ngIf","Reference Number"===i.personalInformation.value.ID_Type),e.R7$(),e.Y8G("ngIf","Reference Number"!=i.personalInformation.value.ID_Type&&"Existing CKYC Number"!=i.personalInformation.value.ID_Type),e.R7$(),e.Y8G("ngIf","Reference Number"===i.personalInformation.value.ID_Type||"Existing CKYC Number"===i.personalInformation.value.ID_Type),e.R7$(),e.Y8G("ngIf",!i.idNumberValidate),e.R7$(),e.Y8G("ngIf",!i.isReferenceNumber),e.R7$(10),e.Y8G("ngIf",i.mngetCkycUpdateDlts)("ngIfElse",wo),e.R7$(9),e.Y8G("ngClass",e.eq3(122,j,(null==(E=i.personalInformation.get("ownerFirstName"))?null:E.invalid)&&
1((null==(E=i.personalInformation.get("ownerFirstName"))?null:E.dirty)||(null==(E=i.personalInformation.get("ownerFirstName"))?null:E.touched)))),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(W=i.personalInformation.get("ownerFirstName"))?null:W.errors)&&((null==(W=i.personalInformation.get("ownerFirstName"))?null:W.dirty)||(null==(W=i.personalInformation.get("ownerFirstName"))?null:W.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(124,j,(null==(O=i.personalInformation.get("ownerMiddleName"))?null:O.invalid)&&((null==(O=i.personalInformation.get("ownerMiddleName"))?null:O.dirty)||(null==(O=i.personalInformation.get("ownerMiddleName"))?null:O.touched)))),e.R7$(3),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(Ce=i.personalInformation.get("ownerMiddleName"))?null:Ce.errors)&&((null==(Ce=i.personalInformation.get("ownerMiddleName"))?null:Ce.dirty)||(null==(Ce=i.personalInformation.get("ownerMiddleName"))?null:Ce.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(126,j,(null==(J=i.personalInformation.get("ownerLastName"))?null:J.invalid)&&((null==(J=i.personalInformation.get("ownerLastName"))?null:J.dirty)||(null==(J=i.personalInformation.get("ownerLastName"))?null:J.touched)))),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(z=i.personalInformation.get("ownerLastName"))?null:z.errors)&&((null==(z=i.personalInformation.get("ownerLastName"))?null:z.dirty)||(null==(z=i.personalInformation.get("ownerLastName"))?null:z.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(128,j,(null==(be=i.personalInformation.get("ownerEmailID"))?null:be.invalid)&&((null==(be=i.personalInformation.get("ownerEmailID"))?null:be.dirty)||(null==(be=i.personalInformation.get("ownerEmailID"))?null:be.touched)))),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(De=i.personalInformation.get("ownerEmailID"))?null:De.errors)&&((null==(De=i.personalInformation.get("ownerEmailID"))?null:De.dirty)||(null==(De=i.personalInformation.get("ownerEmailID"))?null:De.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(130,j,(null==(Se=i.personalInformation.get("ownerPhone"))?null:Se.errors)&&(null==(Se=i.personalInformation.get("ownerPhone"))?null:Se.touched))),e.R7$(5),e.Y8G("cssClass","intl-tel-number contact-number")("preferredCountries",e.l_i(132,ue,i.CountryISO.UnitedStates,i.CountryISO.UnitedKingdom))("enableAutoCountrySelect",!1)("enablePlaceholder",!0)("searchCountryFlag",!0)("searchCountryField",e.l_i(135,ue,i.SearchCountryField.Iso2,i.SearchCountryField.Name))("selectFirstCountry",!1)("selectedCountryISO",i.CountryISO.India)("phoneValidation",!0),e.R7$(2),e.Y8G("ngIf",(null==(Le=i.personalInformation.get("ownerPhone"))?null:Le.errors)&&(null==(Le=i.personalInformation.get("ownerPhone"))?null:Le.touched)),e.R7$(2),e.Y8G("ngClass",e.eq3(138,j,(null==(de=i.personalInformation.get("ownerMaritalStatus"))?null:de.invalid)&&((null==(de=i.personalInformation.get("ownerMaritalStatus"))?null:de.dirty)||(null==(de=i.personalInformation.get("ownerMaritalStatus"))?null:de.touched)))),e.R7$(14),e.Y8G("ngIf",(null==(M=i.personalInformation.get("ownerMaritalStatus"))?null:M.errors)&&((null==(M=i.personalInformation.get("ownerMaritalStatus"))?null:M.dirty)||(null==(M=i.personalInformation.get("ownerMaritalStatus"))?null:M.touched))),e.R7$(3),e.Y8G("ngClass",e.eq3(140,j,(null==(_e=i.personalInformation.get("ownerRegisteredAddress"))?null:_e.invalid)&&((null==(_e=i.personalInformation.get("ownerRegisteredAddress"))?null:_e.dirty)||(null==(_e=i.personalInformation.get("ownerRegisteredAddress"))?null:_e.touched))
1)),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(me=i.personalInformation.get("ownerRegisteredAddress"))?null:me.errors)&&((null==(me=i.personalInformation.get("ownerRegisteredAddress"))?null:me.dirty)||(null==(me=i.personalInformation.get("ownerRegisteredAddress"))?null:me.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(142,j,(null==(U=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:U.invalid)&&((null==(U=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:U.dirty)||(null==(U=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:U.touched)))),e.R7$(5),e.Y8G("readonly",i.pincodeReadOnly),e.R7$(),e.Y8G("ngIf",i.pincodeErrorMsgRegistered||(null==(Q=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:Q.errors)&&((null==(Q=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:Q.dirty)||(null==(Q=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:Q.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(144,j,(null==(Ne=i.personalInformation.get("ownerRegisteredAddressState"))?null:Ne.invalid)&&((null==(Ne=i.personalInformation.get("ownerRegisteredAddressState"))?null:Ne.dirty)||(null==(Ne=i.personalInformation.get("ownerRegisteredAddressState"))?null:Ne.touched)))),e.R7$(5),e.Y8G("items",i.statelist),e.R7$(),e.Y8G("ngIf",(null==(ce=i.personalInformation.get("ownerRegisteredAddressState"))?null:ce.errors)&&((null==(ce=i.personalInformation.get("ownerRegisteredAddressState"))?null:ce.dirty)||(null==(ce=i.personalInformation.get("ownerRegisteredAddressState"))?null:ce.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(146,j,(null==(xe=i.personalInformation.get("ownerRegisteredAddressCity"))?null:xe.invalid)&&((null==(xe=i.personalInformation.get("ownerRegisteredAddressCity"))?null:xe.dirty)||(null==(xe=i.personalInformation.get("ownerRegisteredAddressCity"))?null:xe.touched)))),e.R7$(5),e.Y8G("items",i.indianCitys),e.R7$(),e.Y8G("ngIf",(null==(we=i.personalInformation.get("ownerRegisteredAddressCity"))?null:we.errors)&&((null==(we=i.personalInformation.get("ownerRegisteredAddressCity"))?null:we.dirty)||(null==(we=i.personalInformation.get("ownerRegisteredAddressCity"))?null:we.touched))),e.R7$(9),e.Y8G("ngClass",e.eq3(148,j,(null==(ie=i.personalInformation.get("ownerCommunicationAddress"))?null:ie.invalid)&&((null==(ie=i.personalInformation.get("ownerCommunicationAddress"))?null:ie.dirty)||(null==(ie=i.personalInformation.get("ownerCommunicationAddress"))?null:ie.touched)))),e.R7$(5),e.Y8G("disabled",null==(bo=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:bo.value)("readonly",null==(yo=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:yo.value),e.R7$(),e.Y8G("ngIf",(null==(dt=i.personalInformation.get("ownerCommunicationAddress"))?null:dt.errors)&&((null==(dt=i.personalInformation.get("ownerCommunicationAddress"))?null:dt.dirty)||(null==(dt=i.personalInformation.get("ownerCommunicationAddress"))?null:dt.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(150,j,(null==(ke=i.personalInformation.get("ownerCommunicationAddressPincode"))?null:ke.invalid)&&((null==(ke=i.personalInformation.get("ownerCommunicationAddressPincode"))?null:ke.dirty)||(null==(ke=i.personalInformation.get("ownerCommunicationAddressPincode"))?null:ke.touched)))),e.R7$(5),e.Y8G("disabled",null==(_o=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:_o.value)("readonly",null==(Do=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:Do.value),e.R7$(),e.Y8G("ngIf",i.pincodeErrorMsgOwner||(null==(Vt=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:Vt.errors)&&((null==(Vt=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:Vt.dirty)||(null==(Vt=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:Vt.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(152,j,(null==(Bt=i.personalInformation.get("ownerCommunicationAddressState"))?null:Bt.invalid)&&((null==(Bt=i.personalInformation.get("ownerCommunicationAddressState"))?null:Bt.dirty)||(null==(Bt=i.personalInformation.get("ownerCommunicationAddressState"))?null:Bt.touched))
1)),e.R7$(5),e.Y8G("items",i.statesList)("disabled",1==(null==(Io=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:Io.value)),e.R7$(),e.Y8G("ngIf",(null==($t=i.personalInformation.get("ownerCommunicationAddressState"))?null:$t.errors)&&((null==($t=i.personalInformation.get("ownerCommunicationAddressState"))?null:$t.dirty)||(null==($t=i.personalInformation.get("ownerCommunicationAddressState"))?null:$t.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(154,j,(null==(Gt=i.personalInformation.get("ownerCommunicationAddressCity"))?null:Gt.invalid)&&((null==(Gt=i.personalInformation.get("ownerCommunicationAddressCity"))?null:Gt.dirty)||(null==(Gt=i.personalInformation.get("ownerCommunicationAddressCity"))?null:Gt.touched)))),e.R7$(5),e.Y8G("items",i.citiesList)("disabled",1==(null==(Po=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:Po.value)),e.R7$(),e.Y8G("ngIf",(null==(Lt=i.personalInformation.get("ownerCommunicationAddressCity"))?null:Lt.errors)&&((null==(Lt=i.personalInformation.get("ownerCommunicationAddressCity"))?null:Lt.dirty)||(null==(Lt=i.personalInformation.get("ownerCommunicationAddressCity"))?null:Lt.touched))),e.R7$(7),e.Y8G("ngClass",e.eq3(156,j,(null==(Jt=i.personalInformation.get("OwnerAccountName"))?null:Jt.invalid)&&((null==(Jt=i.personalInformation.get("OwnerAccountName"))?null:Jt.dirty)||(null==(Jt=i.personalInformation.get("OwnerAccountName"))?null:Jt.touched)))),e.R7$(7),e.Y8G("ngIf",(null==(Ut=i.personalInformation.get("OwnerAccountName"))?null:Ut.errors)&&((null==(Ut=i.personalInformation.get("OwnerAccountName"))?null:Ut.dirty)||(null==(Ut=i.personalInformation.get("OwnerAccountName"))?null:Ut.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(158,j,(null==(Ht=i.personalInformation.get("OwnerAccountNo"))?null:Ht.invalid)&&((null==(Ht=i.personalInformation.get("OwnerAccountNo"))?null:Ht.dirty)||(null==(Ht=i.personalInformation.get("OwnerAccountNo"))?null:Ht.touched))
1)),e.R7$(7),e.Y8G("ngIf",(null==(Xt=i.personalInformation.get("OwnerAccountNo"))?null:Xt.errors)&&((null==(Xt=i.personalInformation.get("OwnerAccountNo"))?null:Xt.dirty)||(null==(Xt=i.personalInformation.get("OwnerAccountNo"))?null:Xt.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(160,j,(null==(Kt=i.personalInformation.get("OwnerBankList"))?null:Kt.invalid)&&((null==(Kt=i.personalInformation.get("OwnerBankList"))?null:Kt.dirty)||(null==(Kt=i.personalInformation.get("OwnerBankList"))?null:Kt.touched)))),e.R7$(5),e.Y8G("items",i.bankList),e.R7$(2),e.Y8G("ngIf",(null==(Wt=i.personalInformation.get("OwnerBankList"))?null:Wt.errors)&&((null==(Wt=i.personalInformation.get("OwnerBankList"))?null:Wt.dirty)||(null==(Wt=i.personalInformation.get("OwnerBankList"))?null:Wt.touched))),e.R7$(),e.Y8G("ngIf",i.isOtherBank),e.R7$(2),e.Y8G("ngClass",e.eq3(162,j,(null==(qt=i.personalInformation.get("OwnerAccountType"))?null:qt.invalid)&&((null==(qt=i.personalInformation.get("OwnerAccountType"))?null:qt.dirty)||(null==(qt=i.personalInformation.get("OwnerAccountType"))?null:qt.touched)))),e.R7$(9),e.Y8G("ngForOf",i.accountType),e.R7$(),e.Y8G("ngIf",(null==(zt=i.personalInformation.get("OwnerAccountType"))?null:zt.errors)&&((null==(zt=i.personalInformation.get("OwnerAccountType"))?null:zt.dirty)||(null==(zt=i.personalInformation.get("OwnerAccountType"))?null:zt.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(164,j,(null==(Zt=i.personalInformation.get("OwnerIFSCCode"))?null:Zt.invalid)&&((null==(Zt=i.personalInformation.get("OwnerIFSCCode"))?null:Zt.dirty)||(null==(Zt=i.personalInformation.get("OwnerIFSCCode"))?null:Zt.touched))
1)),e.R7$(6),e.Y8G("ngIf",(null==(Qt=i.personalInformation.get("OwnerIFSCCode"))?null:Qt.errors)&&((null==(Qt=i.personalInformation.get("OwnerIFSCCode"))?null:Qt.dirty)||(null==(Qt=i.personalInformation.get("OwnerIFSCCode"))?null:Qt.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(166,j,(null==(eo=i.personalInformation.get("OwnerPanNo"))?null:eo.invalid)&&((null==(eo=i.personalInformation.get("OwnerPanNo"))?null:eo.dirty)||(null==(eo=i.personalInformation.get("OwnerPanNo"))?null:eo.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(to=i.personalInformation.get("OwnerPanNo"))?null:to.errors)&&((null==(to=i.personalInformation.get("OwnerPanNo"))?null:to.dirty)||(null==(to=i.personalInformation.get("OwnerPanNo"))?null:to.touched))),e.R7$(6),e.Y8G("ngIf","old"==i.vehicleSelection),e.R7$(2),e.Y8G("ngClass",e.eq3(168,j,(null==(oo=i.personalInformation.get("ownerChasisNo"))?null:oo.invalid)&&((null==(oo=i.personalInformation.get("ownerChasisNo"))?null:oo.dirty)||(null==(oo=i.personalInformation.get("ownerChasisNo"))?null:oo.touched)))),e.R7$(5),e.Y8G("readonly",i.ChasisNo),e.R7$(),e.Y8G("ngIf",(null==(no=i.personalInformation.get("ownerChasisNo"))?null:no.errors)&&((null==(no=i.personalInformation.get("ownerChasisNo"))?null:no.dirty)||(null==(no=i.personalInformation.get("ownerChasisNo"))?null:no.touched))),e.R7$(7),e.Y8G("ngClass",e.eq3(170,j,(null==(io=i.personalInformation.get("ownerEngineNo"))?null:io.invalid)&&((null==(io=i.personalInformation.get("ownerEngineNo"))?null:io.dirty)||(null==(io=i.personalInformation.get("ownerEngineNo"))?null:io.touched)))),e.R7$(5),e.Y8G("readonly",i.EngineNo),e.R7$(),e.Y8G("ngIf",(null==(ro=i.personalInformation.get("ownerEngineNo"))?null:ro.errors)&&((null==(ro=i.personalInformation.get("ownerEngineNo"))?null:ro.dirty)||(null==(ro=i.personalInformation.get("ownerEngineNo"))?null:ro.touched))),e.R7$(6),e.Y8G("ngIf","old"==i.vehicleSelection&&"Yes"==i.ncbDetails),e.R7$(),e.Y8G("ngIf","Yes"==i.ncbDetailsA.previousPolicyPresent&&1==(null==i.ncbDetailsA?null:i.ncbDetailsA.isSoad)||(null==i.previousPolicy?null:i.previousPolicy.policyEffectiveFrom)&&(null==i.previousPolicy?null:i.previousPolicy.policyEffectiveTo)),e.R7$(),e.Y8G("ngIf","No"==i.paCover&&"No"==i.gpaCover),e.R7$(),e.Y8G("ngIf",i.isAppointee),e.R7$(7),e.Y8G("ngClass",e.eq3(172,j,(null==(ao=i.personalInformation.get("ownerOptedForLoan"))?null:ao.invalid)&&((null==(ao=i.personalInformation.get("ownerOptedForLoan"))?null:ao.dirty)||(null==(ao=i.personalInformation.get("ownerOptedForLoan"))?null:ao.touched)))),e.R7$(14),e.Y8G("ngIf",(null==(so=i.personalInformation.get("ownerOptedForLoan"))?null:so.errors)&&((null==(so=i.personalInformation.get("ownerOptedForLoan"))?null:so.dirty)||(null==(so=i.personalInformation.get("ownerOptedForLoan"))?null:so.touched))),e.R7$(),e.Y8G("ngIf","Yes"==(null==(No=i.personalInformation.get("ownerOptedForLoan"))?null:No.value)),e.R7$(34),e.Y8G("ngIf",i.IsDisable)}},dependencies:[b.YU,b.Sq,b.bT,b.B3,_.qT,_.xH,_.y7,_.me,_.Zm,_.wz,_.Fm,_.BC,_.cb,_.YS,_.xh,_.tU,_.R_,_.j4,_.JD,Ke.pc,Ke.p0,it.RM,B.NA,B.ZP],styles:[".select-control .dropdown .dropdown-menu{z-index:10} .new-form .iti{width:100%} .new-form input[type=tel]::placeholder{color:#d8d8d8!important;font-weight:500!important;font-family:montserrat-medium!important} .new-form input[type=tel]{font-family:montserrat-medium!important;font-size:16px;color:#707070}.new-form[_ngcontent-%COMP%] .form-group.datepicker-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;right:16px;top:38px;z-index:1}.star[_ngcontent-%COMP%]{color:#ffc107;font-size:22px;margin-left:-3px;margin-right:5px}.captcha-section[_ngcontent-%COMP%]{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.captchaSec-img[_ngcontent-%COMP%]{display:flex;align-items:center;gap:20px}.declaration[_ngcontent-%COMP%]{display:flex;justify-content:start}.declaration[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:10px;height:20px}.captcha-section[_ngcontent-%COMP%]{align-items:center;gap:15px}.captcha-image[_ngcontent-%COMP%]{display:inline-block;height:45px;width:130px;background-color:#add8e6;border:solid 1px}.refresh-image[_ngcontent-%COMP%]{height:15px;width:15px;cursor:pointer}"]})}}return h})(),jt=(()=>{class h{constructor(r,l){this.motorJourneyCkycRepository=r,this.location=l}
1ngOnInit(){this.ckycDetails=this.motorJourneyCkycRepository.getMotorJourneyCkycValue()}backBtnClickHandler(r){r.preventDefault(),r.stopImmediatePropagation(),this.location.back()}static{this.\u0275fac=function(l){return new(l||h)(e.rXU(Re.WM),e.rXU(b.aZ))}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-motor-welcome-user-msg"]],decls:23,vars:3,consts:[[1,"welcome-user","d-flex","align-items-center","justify-content-between","mb-3"],[1,"d-flex","align-items-center"],[1,"back-arrow","mr-4","d-none","d-lg-block"],[3,"click"],["src","./assets/images/icons/back-arrow.svg","alt",""],[1,"mr-3"],["src","./assets/images/icons/hand-thumb.svg","alt",""],[1,"fs-16","text-bold","montserrat-bold"],[1,"fs-18","text-danger","text-bolder","montserrat-bolder","d-block","mb-2"],[1,"card","easy-claim","shadow","border-0","d-none","d-lg-block"],[1,"card-body","d-flex","align-items-center","py-2","px-3"],[1,"mr-2"],["src","./assets/images/icons/easy-claim-settlement.svg","alt","",1,"img-fluid"],[1,"fs-12","montserrat-regular","text-dark"],[1,"d-block","montserrat-bold","mb-1"],[1,"montserrat-bold"]],template:function(l,i){1&l&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),e.bIt("click",function(I){return i.backBtnClickHandler(I)}),e.nrm(4,"img",4),e.k0s()(),e.j41(5,"div",1)(6,"figure",5),e.nrm(7,"img",6),e.k0s(),e.j41(8,"div",7)(9,"span",8),e.EFF(10),e.nI1(11,"titlecase"),e.k0s(),e.EFF(12," Here you can find all of the information about your plan. "),e.k0s()()(),e.j41(13,"div",9)(14,"div",10)(15,"figure",11),e.nrm(16,"img",12),e.k0s(),e.j41(17,"div",13)(18,"span",14),e.EFF(19,"94%"),e.k0s(),e.j41(20,"span",15),e.EFF(21,"Easy claim"),e.k0s(),e.EFF(22," settlement "),e.k0s()()()()),2&l&&(e.R7$(10),e.SpI("Good Going ",e.bMT(11,1,i.ckycDetails.firstName)," !"))},dependencies:[b.PV]})}}return h})();const Fe=[{path:"",component:(()=>{class h{constructor(r,l){this.motorJourneyProductPlanRepository=r,this.journeyHomeService=l,this.subscription=new Y.yU,this.newItemEvent=new e.bkB}ngOnInit(){this.journeyHomeService.personalRefersh.next(!0),this.journeyHomeService.showCard.next(!0)}ngOnDestroy(){this.subscription.unsubscribe()}onPersonalInfromationContinueCta(r){this.newItemEvent.emit("summary")}static{this.\u0275fac=function(l){return new(l||h)(e.rXU(q.CH),e.rXU(t.L))}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-motor-personal-information"]],outputs:{newItemEvent:"newItemEvent"},decls:3,vars:0,consts:[[1,"mt-3","mb-4","mx-3","ml-lg-4","mr-lg-0"],[3,"newItemEvent"]],template:function(l,i){1&l&&(e.j41(0,"div",0),e.nrm(1,"app-motor-welcome-user-msg"),e.j41(2,"app-motor-details-from",1),e.bIt("newItemEvent",function(I){return i.onPersonalInfromationContinueCta(I)}),e.k0s()())},dependencies:[uo,jt]})}}return h})()}];let fo=(()=>{class h{static{this.\u0275fac=function(l){return new(l||h)}}static{this.\u0275mod=e.$C({type:h})}static{this.\u0275inj=e.G2t({imports:[S.iI.forChild(Fe),S.iI]})}}return h})();var vo=m(5452);let po=(()=>{class h{static{this.\u0275fac=function(l){return new(l||h)}}static{this.\u0275mod=e.$C({type:h})}static{this.\u0275inj=e.G2t({imports:[b.MD,fo,_.YN,_.X1,vo.PluginsModule]})}}return h})()},34240:(et,pe,m)=>{m.r(pe),m.d(pe,{MotorSummaryModule:()=>Ft});var b=m(60177),S=m(46359),e=m(97586),Y=m(18359),q=m(5964),t=m(25558),_=m(96354),B=m(79697),he=m(62155),Ie=m(45312),Ee=m(95613),o=m(54438),Te=m(50779),ge=m(91484),Re=m(51451),je=m(60040),Ye=m(71780),tt=m(18389),Pe=m(54005),Z=m(18703),mt=m(70482),qe=m(32374),ut=m(534),ot=m(98518),Je=m(96697),n=m(81779);function pt(w,re){1&w&&o.nrm(0,"img",20)}function ht(w,re){1&w&&(o.j41(0,"figure",3),o.nrm(1,"img",21),o.k0s())}function gt(w,re){1&w&&(o.j41(0,"span",22),o.EFF(1," Comprehensive Plan "),o.k0s())}function ft(w,re){1&w&&(o.j41(0,"span",22),o.EFF(1," Third Party Plan "),o.k0s())}function nt(w,re){1&w&&(o.j41(0,"span",22),o.EFF(1," Own Damage Plan "),o.k0s())}let Ue=(()=>{class w{constructor(u,C,f){this.motorJourneyProductPlanRepository=u,this.motorJourneyVehicleDetailsRepository=C,this.motorJourneyRepository=f,this.coverDiscounts=[],this.addOns=[],this.subscriptions=new Y.yU,this.costSummary=[{label:"IDV ",info:"\u20b9 --",fieldName:"idv"},{label:"Basic TP ",info:"\u20b9 --",fieldName:"basic_TP"},{label:"Basic OD ",info:"\u20b9 --",fieldName:"basic_OD"},{label:"Discount",info:"\u20b9 --",fieldName:"ownDamageDiscount"},{label:"Addon Total",info:"\u20b9 --",fieldName:"addon_Total"},{label:"Additional Cover Total ",info:"\u20b9 --",fieldName:"additional_Cover_Total"},{label:"NCB Discount",info:"\u20b9 --",fieldName:"ncbDiscount"},{label:"Net Premium",info:"\u20b9 --",fieldName:"netPremium"},{label:"GST In (18%)",info:"18 %",fieldName:"gstIn"},{label:"Total Premium:",info:"",fieldName:"totalPremium"}]}ngOnInit(){var u;let C;this.initJourneyName(),this.initVehicleDetails(),this.previouspolicyDetailsFun(),this.initFinalPremium
1Value(),this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,q.p)(f=>!!f)).subscribe(f=>{u=f.deTariffDiscount})),this.subscriptions.add(this.motorJourneyRepository.costSummaryData$.pipe((0,q.p)(f=>!!f)).subscribe(f=>{C=f})),this.costSummary[1].info=C?.basic_TP,this.costSummary[2].info=C?.basic_OD,this.costSummary[3].info=u?.Rate?.$?.Value?parseInt(u?.Rate?.$?.Value).toString():"0",this.costSummary[4].info=C?.addon_Total,this.costSummary[5].info=C?.additional_Cover_Total,this.costSummary[6].info=C?.ncbDiscount,this.costSummary[7].info=C?.netPremium,this.costSummary[8].info=C?.gstIn,this.costSummary[9].info=C?.totalPremium,this.getPolicyStartDate()}ngOnDestroy(){this.subscriptions.unsubscribe()}initJourneyName(){this.subscriptions.add(this.motorJourneyRepository.quotationDialog$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.vcDtls=u,this.journeyName=u.journeyName}))}previouspolicyDetailsFun(){this.subscriptions.add(this.motorJourneyRepository.previousPolicyDialog$.pipe((0,Je.s)(1)).subscribe(u=>{this.previousPolicyDetails=u}))}dateConvertToMMDDYYYY(u){const[C,f,H]=u?.split("/");return`${f}/${C}/${H}`}getPolicyStartDate(){let u;this.motorJourneyRepository.motorJourney$.subscribe(f=>{u=f.productCode.productCode}),this.productCardId||(this.productCardId=ge.$i.query(ot.UP)||u||"");let C=this.previousPolicyDetails?.previousPolicyEndDate?.split("/");if(C&&(C=new Date(C[1]+"/"+C[0]+"/"+C[2])),console.log(C),"2319"!=this.productCardId&&"2320"!=this.productCardId&&"Liability"==this.previousPolicyDetails?.previousPolicyType){let f=new Date;f.setDate("Liability"==this.previousPolicyDetails?.previousPolicyType?f>C?f.getDate()+2:C.getDate()+1:f.getDate()+1),this.policyStartDate=e(f).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!0})}else if(!(C>new Date||e(C).format("DD/MM/YYYY")==e(new Date).format("DD/MM/YYYY"))||"2311"!=this.productCardId&&"2319"!=this.productCardId&&"2398"!=this.productCardId&&"2312"!=this.productCardId&&"2320"!=this.productCardId&&"2397"!=this.productCardId||"Yes"!=this.previousPolicyDetails?.previousPolicyPresent){if("2319"==this.productCardId||"2320"==this.productCardId){let f=new Date;f.setDate(f.getDate()+1),this.policyStartDate=e(f).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!1})}else if(C<new Date&&("2311"==this.productCardId||"2398"==this.productCardId||"2312"==this.productCardId||"2397"==this.productCardId)||"No"==this.previousPolicyDetails?.previousPolicyPresent)this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!0});else if(C<new Date&&("2319"==this.productCardId||"2320"==this.productCardId)||"2367"==this.productCardId||"2369"==this.productCardId||"Yes"==this.previousPolicyDetails?.previousPolicyPresent){let f=new Date;f.setDate(f.getDate()),this.policyStartDate=e(f).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!1})}}else C.setDate(C.getDate()),this.policyStartDate=e(C).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!1});this.motorJourneyRepository.previousPolicyDialog$.pipe((0,Je.s)(1)).subscribe(f=>{var H=this.policyStartDate;let ae=new Date;if(0==f?.breakIn&&f?.previousPolicyEndDate&&(ae=new Date(this.dateConvertToMMDDYYYY(f?.previousPolicyEndDate))),1==f?.breakIn&&"MotorTwoWheeler"==this.journeyName){let G=new Date;G.setDate(G.getDate()+1),this.previousPolicyEnd=e(G).format("DD/MM/YYYY")}else if(1==f?.breakIn&&"MotorPrivateCar"==this.journeyName){let G=new Date;G.setDate(G.getDate()+2),this.previousPolicyEnd=e(G).format("DD/MM/YYYY")}else if("old"==this.vcDtls?.vehicleSelection){if(f?.previousPolicyEndDate)if("Liability"==f?.previousPolicyType)this.previousPolicyEnd=H;else{let G;if(G=e(f?.previousPolicyEndDate,"DD/MM/YYYY").format("YYYY-MM-DD[T]HH:mm:ss"),G=e(G).add(1,"days").format("DD/MM/YYYY"),f?.previousPolicyEndDate){const ye=e(f.previousPolicyEndDate,"DD/MM/YYYY"),Me=e();if(ye.isBefore(Me,"day"))this.previousPolicyEnd=e().add(1,"days").format("DD/MM/YYYY");else if(ye.isAfter(Me,"day")){let $e=ye.add(1,"days").format("DD/MM/YYYY");this.previousPolicyEnd=$e}else this.previousPolicyEnd=e().add(1,"days").format("DD/MM/YYYY")}}}else{let G=new Date;G.setDate(G.getDate()),this.previousPolicyEnd=e(G).format("DD/MM/YYYY")}})}initVehicleDetails(){this.subscriptions.add(this.motorJourneyVehicleDetailsRepository.motorJourneyVehicleDetails$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.vehicleModel=u.rc_maker_model,this.vehicleNo=u.rc_regn_no,this.vehicleNo||sessionStorage.mpc_vehicleNo&&(this.vehicleNo=sessionStorage.mpc_vehicleNo)}))}
1initFinalPremiumValue(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.productCardId=u.id?u.id:2312,this.finalPremium=u.finalPremium}))}static{this.\u0275fac=function(C){return new(C||w)(o.rXU(ge.CH),o.rXU(je.Mq),o.rXU(Ye.ml))}}static{this.\u0275cmp=o.VBU({type:w,selectors:[["app-motor-summary-policy-plan"]],decls:94,vars:35,consts:[[1,"card","h-100","border-0","shadow"],[1,"card-body","p-0"],[1,"car-details","bg-lightest-orange","d-flex","align-items-center","px-3","px-lg-4","py-3"],[1,"car-img","mr-3","mr-lg-5"],["src","./assets/images/two-wheeler-img.png","alt","two-wheeler-img","class","img-fluid",4,"ngIf"],["class","car-img mr-3 mr-lg-5",4,"ngIf"],["class","fs-16 text-bold montserrat-bold text-orange mb-2 d-block",4,"ngIf"],[1,"fs-14","text-bold","montserrat-bold","text-primary"],[1,"d-block","mt-2"],[1,"comprehensive-plan","pt-1","pb-1","px-3","px-lg-4"],[1,"row","py-3"],[1,"col-6"],[1,"text-label","fs-14","montserrat-medium","text-medium","text-primary"],[1,"col-6","text-right"],[1,"text-info","fs-16","montserrat-semibold","text-semibold","text-dark"],[1,"row","py-4","final-premium","border-top"],[1,"col-7","pr-0"],[1,"h6","montserrat-bolder","text-bolder","text-danger"],[1,"col-5","pl-0","text-right"],[1,"h6","montserrat-extrabold","text-extrabold","text-danger"],["src","./assets/images/two-wheeler-img.png","alt","two-wheeler-img",1,"img-fluid"],["src","./assets/images/car-image.png","alt","four-wheeler-img",1,"img-fluid"],[1,"fs-16","text-bold","montserrat-bold","text-orange","mb-2","d-block"]],template:function(C,f){1&C&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"figure",3),o.DNE(4,pt,1,0,"img",4),o.k0s(),o.DNE(5,ht,2,0,"figure",5),o.j41(6,"div"),o.DNE(7,gt,2,0,"span",6)(8,ft,2,0,"span",6)(9,nt,2,0,"span",6),o.j41(10,"div",7),o.EFF(11),o.j41(12,"span",8),o.EFF(13),o.k0s()()()(),o.j41(14,"div",9)(15,"div",10)(16,"div",11)(17,"div",12),o.EFF(18," Policy Start Date "),o.k0s()(),o.j41(19,"div",13)(20,"div",14),o.EFF(21),o.k0s()()(),o.j41(22,"div",10)(23,"div",11)(24,"div",12),o.EFF(25," Own Damage Premium "),o.k0s()(),o.j41(26,"div",13)(27,"div",14),o.EFF(28),o.nI1(29,"customIndianCurrency"),o.k0s()()(),o.j41(30,"div",10)(31,"div",11)(32,"div",12),o.EFF(33," Third Party Premium "),o.k0s()(),o.j41(34,"div",13)(35,"div",14),o.EFF(36),o.nI1(37,"customIndianCurrency"),o.k0s()()(),o.j41(38,"div",10)(39,"div",11)(40,"div",12),o.EFF(41," Discount "),o.k0s()(),o.j41(42,"div",13)(43,"div",14),o.EFF(44),o.nI1(45,"customIndianCurrency"),o.k0s()()(),o.j41(46,"div",10)(47,"div",11)(48,"div",12),o.EFF(49," NCB Discount "),o.k0s()(),o.j41(50,"div",13)(51,"div",14),o.EFF(52),o.nI1(53,"customIndianCurrency"),o.k0s()()(),o.j41(54,"div",10)(55,"div",11)(56,"div",12),o.EFF(57," Addon Total "),o.k0s()(),o.j41(58,"div",13)(59,"div",14),o.EFF(60),o.nI1(61,"customIndianCurrency"),o.k0s()()(),o.j41(62,"div",10)(63,"div",11)(64,"div",12),o.EFF(65," Additional Cover Total "),o.k0s()(),o.j41(66,"div",13)(67,"div",14),o.EFF(68),o.nI1(69,"customIndianCurrency"),o.k0s()()(),o.j41(70,"div",10)(71,"div",11)(72,"div",12),o.EFF(73," Net Premium "),o.k0s()(),o.j41(74,"div",13)(75,"div",14),o.EFF(76),o.nI1(77,"customIndianCurrency"),o.k0s()()(),o.j41(78,"div",10)(79,"div",11)(80,"div",12),o.EFF(81," GST(18%) "),o.k0s()(),o.j41(82,"div",13)(83,"div",14),o.EFF(84),o.nI1(85,"customIndianCurrency"),o.k0s()()(),o.j41(86,"div",15)(87,"div",16)(88,"div",17),o.EFF(89," Final Premium "),o.k0s()(),o.j41(90,"div",18)(91,"div",19),o.EFF(92),o.nI1(93,"customIndianCurrency"),o.k0s()()()()()()),2&C&&(o.R7$(4),o.Y8G("ngIf","MotorTwoWheeler"==f.journeyName||null==f.journeyName),o.R7$(),o.Y8G("ngIf","MotorPrivateCar"==f.journeyName),o.R7$(2),o.Y8G("ngIf",null==f.productCardId||"2311"==f.productCardId||"2367"==f.productCardId||"2369"==f.productCardId||"2312"==f.productCardId),o.R7$(),o.Y8G("ngIf","2319"==f.productCardId||"2320"==f.productCardId),o.R7$(),o.Y8G("ngIf","2398"==f.productCardId||"2397"==f.productCardId),o.R7$(2),o.SpI(" ",f.vehicleModel?f.vehicleModel:"--"," "),o.R7$(2),o.JRh(f.vehicleNo?f.vehicleNo:"--"),o.R7$(8),o.SpI(" ",f.previousPolicyEnd?f.previousPolicyEnd:f.policyStartDate," "),o.R7$(7),o.SpI(" ",o.bMT(29,17,f.costSummary[2].info)," "),o.R7$(8),o.SpI(" ",o.bMT(37,19,f.costSummary[1].info)," "),o.R7$(8),o.SpI(" - ",f.costSummary[3].info?f.costSummary[3].info+"%":o.bMT(45,21,f.costSummary[3].info)," "),o.R7$(8),o.SpI(" - ",f.costSummary[6].info?f.costSummary[6].info:o.bMT(53,23,0)," "),o.R7$(8),o.SpI(" ",o.bMT(61,25,f.costSummary[4].info)," "),o.R7$(8),o.SpI(" ",o.bMT(69,27,f.costSummary[5].info)," "),o.R7$(8),o.SpI(" ",o.bMT(77,29,f.costSummary[7].info)," "),o.R7$(8),o.SpI(" ",o.bMT(85,31,f.costSummary[8].info)," "),o.R7$(8),o.SpI(" ",o.bMT(93,33,f.costSummary[9].info),"/- "))},dependencies:[b.bT,n.G],styles:["@media (max-width: 768px) and (min-width: 576px){.car-details[_ngcontent-%COMP%] .car-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:80px}}@media (max-width: 575px) and (min-width: 320px){.car-details[_ngcontent-%COMP%] .car-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:80px}}"]})}}return w})();function vt(w,re){if(1&w&&(o.j41(0,"div",8),o.EFF(1),o.k0s()),2&w){const u=o.XpG().$implicit;o.R7$(),o.SpI(" ",u.info," ")}}function yt(w,re){if(1&w&&(o.j41(0,"div",8),o.EFF(1),o.k0s()),2&w){const u=o.XpG(2);o.R7$(),o.SpI(" ",u.vehicleNumber?u.vehicleNumber:"New"," ")}}function Ct(w,re){if(1&w&&(o.j41(0,"div",4)(1,"div",5)(2,"div",6),o.EFF(3),o.k0s()(),o.j41(4,"div",7),o.DNE(5,vt,2,1,"div",9)(6,yt,2,1,"div",9),o.k0s()()),2&w){const u=re.$implicit;o.R7$(3),o.SpI(" ",u.label," "),o.R7$(2),o.Y8G("ngIf","Vehicle Number"!=u.label),o.R7$(),o.Y8G("ngIf","Vehicle Number"==u.label)}}let Ve=(()=>{class w{constructor(u,C,f,H,ae){this.motorJourneyVehicleDetailsRepository=u,this.motorJourneyRepository=C,this.motorJourneyVehicalDetailsRepository=f,this.motorJourneyProductPlanRepository=H,this.journeyHomeService=ae,this.subscription=new Y.yU,this.idvValue="0.00",this.idvDefaultValue="0.00",this.vehicleDetails=[{label:"Vehicle Number",info:"--",urlLink:" ",fieldName:"rc_regn_no"},{label:"Make/Model",info:"--",urlLink:" ",fieldName:"rc_maker_model"},{label:"Registration Year",info:"--",urlLink:" ",fieldName:"rc_regn_dt"}]}ngOnInit(){this.subscription.add(this.motorJourneyRepository.motorJourney$.subscribe(u=>{this.idvDefaultValue=u?.choosePlanData?.selectedIDVValue?.selectedIDVValue||u?.choosePlanData?.selectedIDVValue,this.productC
1ode=ge.$i.query(ot.UP)||u?.productCode?.productCode||"",this.prodCode=u?.productCode?.productCode})),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.subscribe(u=>{this.productCode=u?.id||this.prodCode,this.idvValue=u?.idvDefaultValue,this.initVehicleDetails()})),this.subscription.add(this.motorJourneyRepository.motorJourney$.subscribe(u=>{this.regNo=u?.quotationDialog.vehicleNumber})),this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.subscribe(u=>{this.vehicleNumber=this.regNo?this.regNo:u.rc_regn_no})),this.initVehicleDetails()}ngOnDestroy(){this.subscription.unsubscribe()}initVehicleDetails(){this.subscription.add(this.motorJourneyVehicleDetailsRepository.motorJourneyVehicleDetails$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.vehicleDetails=this.vehicleDetails.map(C=>(C.info=u[C.fieldName]?u[C.fieldName]:"--",{...C}))}))}static{this.\u0275fac=function(C){return new(C||w)(o.rXU(je.Mq),o.rXU(Ye.ml),o.rXU(je.Mq),o.rXU(ge.CH),o.rXU(Pe.L))}}static{this.\u0275cmp=o.VBU({type:w,selectors:[["app-motor-summary-vehicle-details"]],decls:13,vars:4,consts:[[1,"card","card-with-title","border-0","shadow","mh-330"],[1,"card-title","montserrat-bold","text-bolder","text-black","py-2","px-3","bg-lighter-orange","mb-0","mt-3"],[1,"card-body","py-2","px-3","px-lg-4"],["class","row py-3",4,"ngFor","ngForOf"],[1,"row","py-3"],[1,"col-6","col-xl-5","pr-0","pr-xl-3"],[1,"text-label","fs-14","montserrat-medium","text-medium","text-primary"],[1,"col-5","pl-0","pl-xl-3"],[1,"text-info","fs-16","montserrat-semibold","text-semibold","text-dark"],["class","text-info fs-16 montserrat-semibold text-semibold text-dark",4,"ngIf"]],template:function(C,f){1&C&&(o.j41(0,"div",0)(1,"div",1),o.EFF(2," Vehicle Details "),o.k0s(),o.j41(3,"div",2),o.DNE(4,Ct,7,3,"div",3),o.j41(5,"div",4)(6,"div",5)(7,"div",6),o.EFF(8," Insured Declared Value "),o.k0s()(),o.j41(9,"div",7)(10,"div",8),o.EFF(11),o.nI1(12,"customIndianCurrency"),o.k0s()()()()()),2&C&&(o.R7$(4),o.Y8G("ngForOf",f.vehicleDetails),o.R7$(7),o.SpI(" ",2319===f.productCode||2320===f.productCode||"2319"===f.productCode||"2320"===f.productCode?"--":o.bMT(12,2,(f.idvValue&&"0.00"!==f.idvValue?f.idvValue:f.idvDefaultValue)||"")," "))},dependencies:[b.Sq,b.bT,n.G],styles:[".mh-330[_ngcontent-%COMP%]{min-height:330px}"]})}}return w})();var ve=m(10444),ze=m(23294),He=m(70152);let Xe=(()=>{class w{constructor(u,C,f,H,ae,G,ye){this.motorJourneyOwnerDetailsRepository=u,this.motorJourneyRepository=C,this._message=f,this.motorJourneyVehicalDetailsRepository=H,this.motorJourneyProductPlanRepository=ae,this.journeyHomeService=G,this.journeyRestService=ye,this.subscription=new Y.yU,this.ownerDetails=[{label:"Name",info:"Shruti Jain"},{label:"E-mail Address",info:"[email protected]"},{label:"Mobile Number",info:"8723748983"},{label:"Pincode",info:"302012"}]}ngOnInit(){this.initOwnerDetails(),this.initQuotationDialog()}vehicalD(){this.motorJourneyRepository.motorJourney$.pipe((0,ze.F)(),(0,ve.u5)(),(0,He.B)(2e3)).subscribe(u=>{this.data=u,u&&this.motorJourneyRepository.motorJourney$.pipe((0,q.p)(C=>!!C),(0,_.T)(({costSummaryData:C,...f})=>f)).subscribe(C=>{(this.dataState&&C&&JSON.stringify(this.dataState)!=JSON.stringify(C)||!this.dataState&&C)&&(this.dataState=C,this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,_.T)(({id:f,productName:H})=>({ProductCode:f,ProductName:H}))).subscribe(f=>{}).unsubscribe())}).unsubscribe()})}ngOnDestroy(){this.subscription.unsubscribe()}initOwnerDetails(){this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.ownerName=`${u.rc_owner_first_name?u.rc_owner_first_name:"--"} ${u.rc_owner_last_name?u.rc_owner_last_name:""}`,this.ownerEmailId=u.rc_owner_email_id,this.ownerPincode=u.rc_owner_registered_pincode}))}initQuotationDialog(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.ownerPhoneNo=u.vehicleOwnerMobileNumber?u.vehicleOwnerMobileNumber:"--",this._message.changeMessage(u)}))}static{this.\u0275fac=function(C){return new(C||w)(o.rXU(Re.ts),o.rXU(Ye.ml),o.rXU(qe.h),o.rXU(je.Mq),o.rXU(ge.CH),o.rXU(Pe.L),o.rXU(Z.I))}}static{this.\u0275cmp=o.VBU({type:w,selectors:[["app-motor-summary-vehicle-owner-details"]],decls:32,vars:4,consts:[[1,"card","card-with-title","border-0","shadow","mh-330"],[1,"card-title","montserrat-bold","text-bolder","text-black","py-2","px-3","bg-lighter-orange","mb-0","mt-3"],[1,"card-body","py-2","px-3","px-lg-4"],[1,"row","py-3"],[1,"col-6","col-xl-5","pr-0","pr-xl-3"],[1,"text-label","fs-14","montserrat-medium","text-medium","text-primary"],[1,"col-5","pl-0","pl-xl-3"],[1,"text-info","fs-16","montserrat-semibold","text-semibold","text-dark"]],template:function(C,f){1&C&&(o.j41(0,"div",0)(1,"div",1),o.EFF(2," Vehicle Owner Details "),o.k0s(),o.j41(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),o.EFF(7," Name "),o.k0s()(),o.j41(8,"div",6)(9,"div",7),o.EFF(10),o.k0s()()(),o.j41(11,"div",3)(12,"div",4)(13,"div",5),o.EFF(14," E-mail Address "),o.k0s()(),o.j41(15,"div",6)(16,"div",7),o.EFF(17),o.k0s()()(),o.j41(18,"div",3)(19,"div",4)(20,"div",5),o.EFF(21," Mobile Number "),o.k0s()(),o.j41(22,"div",6)(23,"div",7),o.EFF(24),o.k0s()()(),o.j41(25,"div",3)(26,"div",4)(27,"div",5),o.EFF(28," Pincode "),o.k0s()(),o.j41(29,"div",6)(30,"div",7),o.EFF(31),o.k0s()()()()()),2&C&&(o.R7$(10),o.SpI(" ",f.ownerName?f.ownerName:"--"," "),o.R7$(7),o.SpI(" ",f.ownerEmailId?f.ownerEmailId:"--"," "),o.R7$(7),o.SpI(" ",f.ownerPhoneNo?f.ownerPhoneNo:"--"," "),o.R7$(7),o.SpI(" ",f.ownerPincode?f.ownerPincode:"--"," "))},styles:[".mh-330[_ngcontent-%COMP%]{min-height:330px}"]})}}return w})();var Ke=m(62233);function it(w,re){if(1&w){const u=o.RV6();o.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"a",4),o.bIt("click",function(f){o.eBV(u);const H=o.XpG();return o.Njj(H.backBtnClickHandler(f))}),o.nrm(4,"img",5),o.k0s()(),o.j41(5,"div",2)(6,"figure",6)(7,"ng-lottie",7),o.bIt("animationCreated",function(f){o.eBV(u);const H=o.XpG();return o.Njj(H.animationCreated(f))}),o.k0s()(),o.j41(8,"div",8)(9,"span",9),o.EFF(10,"The final step is super-quick!"),o.k0s(),o.EFF(11," Just confirm your details & move to payment "),o.k0s()()(),o.j41(12,"div",10)(13,"div",11)(14,"figure",12),o.nrm(15,"img",13),o.k0s(),o.j41(16,"div",14)(17,"span",15),o.EFF(18,"Save more as you go!"),o.k0s()()()()()}if(2&w){const u=o.XpG();o.R7$(7),o.Y8G("options",u.options)}}function j(w,re){1&w&&(o.j41(0,"div",1)(1,"div",2)(2,"div",2)(3,"div",8)(4,"span",9),o.EFF(5,"Uh-Oh Looks like your previous policy has already expired "),o.k0s(),o.EFF(6," Just confirm your details and you'll be good to go "),o.k0s()()()())}let Be=(()=>{class w{constructor(u,C){this.motorJourneyRepository=u,this.location=C,this.subscriptions=new Y.yU,this.options={path:"/assets/animations/green-tick.json"}}ngOnInit(){this.initPreviousPolicyDetails()}ngOnDestroy(){this.subscriptions.unsubscribe()}initPreviousPolicyDetails(){this.subscriptions.add(this.motorJourneyRepository.previousPolicyDialog$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.policyEndDate=u.previousPolicyEndDate,this.policyType=u.previousPolicyType}))}backBtnClickHandler(u){u.preventDefault(),u.stopImmediatePropagation(),this.location.back()}animationCreated(u){}static{this.\u0275fac=function(C){return new(C||w)(o.rXU(Ye.ml),o.rXU(b.aZ))}}static{this.\u0275cmp=o.VBU({type:w,selectors:[["app-motor-summary-header"]],inputs:{breakIn:"breakIn"},decls:2,vars:2,consts:[["class","welcome-user d-flex align-items-center justify-content-between mb-3",4,"ngIf"],[1,"welcome-user","d-flex","align-items-center","justify-content-between","mb-3"],[1,"d-flex","align-items-center"],[1,"back-arrow","mr-4","d-none","d-lg-block"],[3,"click"],["src","./assets/images/icons/back-arrow.svg","alt",""],[1,"mr-3"],[1,"green-tick",3,"animationCreated","options"],[1,"fs-16","text-bold","montserrat-bold"],[1,"fs-18","text-danger","text-bolder","montserrat-bolder","d-block","mb-2"],[1,"card","easy-claim","shadow","border-0","d-none","d-lg-block"],[1,"card-body","d-flex","align-items-center","py-2","px-3"],[1,"mr-2"],["src","./assets/images/icons/same-more-money.svg","alt","",1,"img-fluid"],[1,"fs-12","montserrat-regular","text-dark"],[1,"montserrat-bold"]],template:function(C,f){1&C&&o.DNE(0,it,19,1,"div",0)(1,j,7,0,"div",0),2&C&&(o.Y8G("ngIf",0==f.breakIn),o.R7$(),o.Y8G("ngIf",1==f.breakIn&&"Liability"==f.policyType))},dependencies:[b.bT,Ke.xm],styles:[".green-tick svg{width:75px!important}@media (max-width: 991.2px) and (min-width: 769px){ .green-tick svg{width:54px!important}}@media (max-width: 768px) and (min-width: 576px){ .green-tick svg{width:54px!important}}@media (max-width: 575px) and (min-width: 320px){ .green-tick svg{width:54px!important}}"]})}}return w})();var ue=m(89417),rt=m(63620);const at=w=>({"form-group-error":w});function Ze(w,re){1&w&&(o.j41(0,"small"),o.EFF(1," Please Enter Your PAN Card Number"),o.k0s())}function st(w,re){1&w&&(o.j41(0,"small"),o.EFF(1," Please Enter Valid PAN Card Number"),o.k0s())}function bt(w,re){if(1&w&&(o.j41(0,"div",14),o.DNE(1,Ze,2,0,"small",15)(2,st,2,0,"small",15),o.k0s()),2&w){let u,C;const f=o.XpG();o.R7$(),o.Y8G("ngIf",null==(u=f.panCardForm.get("panCard"))||null==u.errors?null:u.errors.required),o.R7$(),o.Y8G("ngIf",null==(C=f.panCardForm.get("panCard"))||null==C.errors?null:C.errors.pattern)}}let _t=(()=>{class w{constructor(u,C,f){this.fb=u,this.journeyHomeService=C,this.motorJourneyRepository=f,this.panCard=sessionStorage.getItem("panCard"),this.pancardValidations=new o.bkB,this.panCardForm=this.fb.group({panCard:new ue.hs(sessionStorage.getItem("panCard")?sessionStorage.getItem("panCard"):"",[ue.k0.required,ue.k0.pattern("[A-Z]{5}[0-9]{4}[A-Z]{1}")])}),this.options={path:"/assets/animations/pan-card.json"}}ngOnInit(){this.onAddedPanCard()}onAddedPanCard(){this.pancardValidations.emit("VALID"==this.panCardForm.status),this.journeyHomeService.panCardSelection.next("VALID"==this.panCardForm.status),sessionStorage.setItem("panCard",this.panCardForm.value.panCard),this.motorJourneyRepository.savePanCard({panCard:this.panCard})}animationCreated(u){console.log(u)}static{this.\u0275fac=function(C){return new(C||w)(o.rXU(ue.ze),o.rXU(Pe.L),o.rXU(Ye.ml))}}static{this.\u0275cmp=o.VBU({type:w,selectors:[["app-summary-pan-card"]],outputs:{pancardValidations:"pancardValidations"},decls:21,vars:7,consts:[[1,"card","mob-full-width-card","bg-lightest-orange","border-0","shadow","border-radius-32","sum-insured-card"],[1,"card-body","px-3","px-lg-4"],[1,"text-danger","montserrat-bolder","mb-3"],[1,"d-flex","align-items-center"],[1,"mr-3","d-none","d-lg-block"],[1,"pan-card",3,"animationCreated","options"],["skipValidation","",1,"new-form",3,"formGroup"],[1,"form-group",3,"ngClass"],["for","",1,"mb-2","d-flex"],[1,"text-danger"],["type","text","formControlName","panCard","placeholder","Enter Your PAN Card Number","minlength","10","maxlength","10",1,"form-control",3,"ngModelChange","keyup","ngModel"],["class","text-danger mt-2",4,"ngIf"],[1,"montserrat-medium","text-medium","fs-12","text-primary","mr-1","mt-2"],[1,"montserrat-bold","text-bold"],[1,"text-danger","mt-2"],[4,"ngIf"]],template:function(C,f){if(1&C&&(o.j41(0,"div",0)(1,"div",1)(2,"h6",2),o.EFF(3," Your sum insured rises above Rs. 50,000 Please enter your PAN Card Number. "),o.k0s(),o.j41(4,"div",3)(5,"figure",4)(6,"ng-lottie",5),o.bIt("animationCreated",function(ae){return f.animationCreated(ae)}),o.k0s()(),o.j41(7,"form",6)(8,"div",7)(9,"label",8),o.EFF(10,"PAN Card Number "),o.j41(11,"span",9),o.EFF(12,"*"),o.k0s()(),o.j41(13,"input",10),o.bIt("ngModelChange",function(ae){return f.panCard=ae.toUpperCase()})("keyup",function(){return f.onAddedPanCard()}),o.k0s(),o.DNE(14,bt,3,2,"div",11),o.j41(15,"div",3)(16,"span",12),o.EFF(17," Enter your "),o.j41(18,"span",13),o.EFF(19," 10 digit "),o.k0s(),o.EFF(20," alpha numeric PAN number "),o.k0s()()()()()()()),2&C){let H,ae;o.R7$(6),o.Y8G("options",f.options),o.R7$(),o.Y8G("formGroup",f.panCardForm),o.R7$(),o.Y8G("ngClass",o.eq3(5,at,(null==(H=f.panCardForm.get("panCard"))?null:H.invalid)&&
1((null==(H=f.panCardForm.get("panCard"))?null:H.dirty)||(null==(H=f.panCardForm.get("panCard"))?null:H.touched)))),o.R7$(5),o.Y8G("ngModel",f.panCard),o.R7$(),o.Y8G("ngIf",(null==(ae=f.panCardForm.get("panCard"))?null:ae.invalid)&&((null==(ae=f.panCardForm.get("panCard"))?null:ae.dirty)||(null==(ae=f.panCardForm.get("panCard"))?null:ae.touched)))}},dependencies:[b.YU,b.bT,rt.ZP,Ke.xm,ue.qT,ue.me,ue.BC,ue.cb,ue.xh,ue.tU,ue.j4,ue.JD],styles:[".pan-card svg{width:95px!important}"]})}}return w})();function Dt(w,re){if(1&w){const u=o.RV6();o.j41(0,"div",14)(1,"app-summary-pan-card",15),o.bIt("pancardValidations",function(f){o.eBV(u);const H=o.XpG();return o.Njj(H.panCardValue(f))}),o.k0s()()}}function It(w,re){1&w&&(o.j41(0,"div",21)(1,"figure",22),o.nrm(2,"img",23),o.k0s(),o.j41(3,"div",24),o.EFF(4," Your journey is "),o.j41(5,"span",25),o.EFF(6,"Break-In "),o.j41(7,"span",26),o.nrm(8,"img",27),o.k0s()(),o.j41(9,"span",28),o.EFF(10,"as your previous policy has already expired."),o.k0s()()())}function Pt(w,re){if(1&w){const u=o.RV6();o.j41(0,"button",29),o.bIt("click",function(){o.eBV(u);const f=o.XpG(2);return o.Njj(f.breakInJourneyContinueCtaFourWheeler())}),o.EFF(1,"Continue"),o.k0s()}}function Nt(w,re){1&w&&(o.j41(0,"div",21)(1,"figure",22),o.nrm(2,"img",23),o.k0s(),o.j41(3,"div",24),o.EFF(4," Your journey is "),o.j41(5,"span",25),o.EFF(6,"Break-In "),o.j41(7,"span",26),o.nrm(8,"img",27),o.k0s()(),o.j41(9,"span",28),o.EFF(10,"Risk start date would be T + 1 as your previous policy already expried "),o.k0s()()())}function wt(w,re){if(1&w){const u=o.RV6();o.j41(0,"button",29),o.bIt("click",function(){o.eBV(u);const f=o.XpG(2);return o.Njj(f.checkVCTypeWithChassinNO())}),o.EFF(1,"Continue"),o.k0s()}}function kt(w,re){if(1&w&&(o.j41(0,"div",16)(1,"div",17)(2,"div",18),o.DNE(3,It,11,0,"div",19)(4,Pt,2,0,"button",20)(5,Nt,11,0,"div",19)(6,wt,2,0,"button",20),o.k0s()()()),2&w){const u=o.XpG();o.R7$(3),o.Y8G("ngIf","MotorPrivateCar"==u.journeyName),o.R7$(),o.Y8G("ngIf","MotorPrivateCar"==u.journeyName),o.R7$(),o.Y8G("ngIf","MotorTwoWheeler"==u.journeyName),o.R7$(),o.Y8G("ngIf","MotorTwoWheeler"==u.journeyName)}}const Mt=[{path:"",component:(()=>{class w{constructor(u,C,f,H,ae,G,ye,Me,$e,Ge){this.modalService=u,this.motorJourneyProductPlanRepository=C,this.motorJourneyOwnerDetailsRepository=f,this.motorJourneyVehicalDetailsRepository=H,this.motorJourneyRepository=ae,this.motorJourneyCkycRepository=G,this.journeyHomeService=ye,this.journeyRestService=Me,this.transactionService=$e,this._common=Ge,this.panCardActive=!1,this.finalPremium=16889,this.subscription=new Y.yU,this.journeyHomeService.personalRefersh.next(!0)}ngOnInit(){this.initActiveProduct(),this.initQuotationDialog(),this.initOwnerDetails(),this.initVehicleDetails(),this.panCardStaus(),this.initCoverDiscount(),this.initJourneyDetails(),this.initBreakInStatus(),this.productId()}ngOnDestroy(){this.subscription.unsubscribe()}initBreakInStatus(){this.subscription.add(this.motorJourneyRepository.previousPolicyDialog$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{u.breakIn?(this.breakInStatus=!0,this.journeyHomeService.breakIn.next(!0)):(this.breakInStatus=!1,this.journeyHomeService.breakIn.next(!1))}))}initQuotationDialog(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.quotationDialogDtls=u,this.journeyName=u.journeyName,this.ownerPhoneNo=u.vehicleOwnerMobileNumber?u.vehicleOwnerMobileNumber:"--"}))}initOwnerDetails(){this.subscription.add(this.motorJourneyOwnerDetailsRepository.motorJourneyVehicleDetails$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.ownerDetails=u||"--"}))}initVehicleDetails(){this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.vehicleDetails=u||"--"}))}panCardStaus(){this.journeyHomeService.emitFinalPremium.subscribe(u=>{u&&u>=5e4?(this.panCardActive=!0,this.journeyHomeService.panCardStatus.next(this.panCardActive)):this.panCardActive=!1})}initActiveProduct(){this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.productPlan=u,this.finalPremium=parseInt(this.productPlan.finalPremium)})}initCoverDiscount(){this.subscription.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.selectedCoverDiscounts=u.coversDiscount,this.selectedAddon=u.addonCoverage}))}initJourneyDetails(){this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,q.p)(u=>!!u)).subscribe(u=>{this.proposalData=u}))}productId(){this.subscription.add(this.motorJourneyRepository.motorJourney$.subscribe(u=>
1{this.alternateProdId=u.productCode.productCode}))}panCardValue(u){this.pancardValue=u}generatePostBodyForInspectionReferenceIdApi(){this.motorJourneyOwnerDetailsRepository.getMotorJourneyOwnerDetailsValue();const C=this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue();return{Authentication:{WACode:`${Ie.c.WACode}`,WAAppCode:`${Ie.c.WAAppCodeMotor}`,ProductCode:this.productPlan?.id||this.alternateProdId},Name:C.rc_owner_first_name,Email:C.rc_owner_email_id,mobileNumber:this.ownerPhoneNo,Address:C.rc_permanent_address,regNumber:C.rc_regn_no,VehicleType:C.rc_vch_catg,Make:C.rc_maker_desc,brand:C.rc_maker_model,ModelYear:C.rc_manu_month_yr,FuelType:C.rc_fuel_desc,regType:C.rc_vh_class_desc,ReferenceId:""}}breakInJourneyContinueCtaFourWheeler(){this.journeyHomeService.createInspectionReferenceId(this.generatePostBodyForInspectionReferenceIdApi()).pipe((0,t.n)(u=>this._common.CKYCSendSms({mobileNo:u.mobileNumber,smsContent:"Dear Customer, Your journey is break-in and your vehicle inspection process has been initiated by Universal Sompo. Your reference no is "+u.ReferenceId+". You will soon get notified with further instruction"}).pipe((0,_.T)(C=>({sendSmsApiSucRes:C,createReferenceIdForBreakingInspectioApinSucRes:u}))))).subscribe(u=>{console.log(u),this.ReferenceId=u.createReferenceIdForBreakingInspectioApinSucRes?.ReferenceId;const C=this.motorJourneyCkycRepository.getMotorJourneyCkycValue(),f=this.motorJourneyOwnerDetailsRepository.getMotorJourneyOwnerDetailsValue();let G,ye;this.journeyHomeService.storeBreakinData({first_name:C.firstName,middle_name:C.middleName,last_name:C.lastName,email:C.email,phone:this.ownerPhoneNo,address1:C.address1,address2:C.address2,address3:C.address3,pincode:C.pincode,city:C.city,state:C.state,reg_number:f.ownerRegistrationNo,chassis_number:f.ownerChasisNo,engine_number:f.ownerEngineNo,prev_policy_no:f.ownerPreviousPolicyNo,prev_policy_company:f.ownerPreviousPolicyCompany,prev_policy_end_date:f.ownerPreviousPolicyEndDate,prev_policy_type:f.ownerPreviousPolicyType,product_name:"",product_code:"",pos_policy_no:"",breakin_ref_id:this.ReferenceId,breakin_status:"true"}).subscribe(Oe=>{console.log(Oe)}),this.motorJourneyRepository.motorJourney$.subscribe(Oe=>{G=Oe,ye=Oe.previousPolicyDialog.previousPolicyEndDate});let Me=ye?new Date(this.dateConvertToMMDDYYYY(ye)):null,$e=Me?e(Me.setDate(Me.getDate()+1)).format():null,Ge=new Date;Ge.setDate(Ge.getDate()+1);let St=e(Ge).format(),Tt={paymentTransactionID:0,insurerMasterID:G.quotationDialog.insurerMasterID,policyStartDate:$e?new Date($e):new Date(St),ownDamagePrmAmt:G.costSummaryData.basic_OD,tpPremAmt:G.costSummaryData.basic_TP,discount:G.costSummaryData.other_discount,ncbDiscount:G.costSummaryData.ncbDiscount,totalAddOn:G.costSummaryData.addon_Total,totalAddlCover:G.costSummaryData.additional_Cover_Total,netPremium:G.costSummaryData.netPremium,gstPercentage:"18",gstAmount:G.costSummaryData.gstIn,finalPremium:G.costSummaryData.totalPremium,panNumber:G.panCard,quotationID:G.quotationDialog.quotationId||"",breakIn_Flag:G.previousPolicyDialog.breakIn||!1,breakIn_ID:this.ReferenceId||"",posPolicyNumber:G.posPolicyNo.posPolicyNo||"",paymentStatus:"TRUE"};localStorage.setItem("ProposalDataPayment",JSON.stringify({ProposalMasterID:G.quotationDialog.insurerMasterID||"",PolicyNumber:G.posPolicyNo.posPolicyNo||"",JType:"MOTOROL",QuotationNumber:G.quotationDialog.quotationId||"",InsurerMasterID:G.quotationDialog.insurerMasterID||""})),this.transactionService.postPaymentsDetailsData(Tt).subscribe(Oe=>{localStorage.setItem("ProposalDataPayment",JSON.stringify({ProposalMasterID:Oe?.paymentTransactionID||"",PolicyNumber:G.posPolicyNo.posPolicyNo||"",JType:"MOTOROL",QuotationNumber:G.quotationDialog.quotationId||"",InsurerMasterID:G.quotationDialog.insurerMasterID||""})),this.motorJourneyRepository.saveCustomerDetails({payDataId:Oe.id,paymentTransactionID:Oe.paymentTransactionID})}),this.openBreakinThankYouPopup(this.ReferenceId)})}dateConvertToMMDDYYYY(u){const[C,f,H]=u?.split("/");return`${f}/${C}/${H}`}breakInJourneyContinueCtaTwoWheeler(){this.journeyHomeService.breakInTwoWheeler.next(!0)}openBreakinThankYouPopup(u){this.modalService.show(B.W,Object.assign({class:"edit-claim-popup modal
1-lg",initialState:{refId:u},backdrop:"static"}))}leftPanelDetailCard(){this.bsmodelRef=this.modalService.show(he.S,Object.assign({},{class:"left-panel-detail-card-popup"}))}checkVCTypeWithChassinNO(){if("20000001"==Ie.c.WACode)return void this.breakInJourneyContinueCtaTwoWheeler();const u={WACode:Ie.c.WACode,WAAppCode:Ie.c.WAAppCode,regnNo:this.quotationDialogDtls?.vehicleNumber?this.quotationDialogDtls?.vehicleNumber.toUpperCase():"",chasiNo:this.vehicleDetails?.rc_chasi_no};this._common.vahanAPIWithChassinNO(u).subscribe(C=>{"M-Cycle/Scooter"==C?.vehicleClass?this.breakInJourneyContinueCtaTwoWheeler():this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")})}vcModelMismatchedPopup(u){this.bsmodelRef=this.modalService.show(Ee.h,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static",keyboard:!1,initialState:{textDescription:u}}))}static{this.\u0275fac=function(C){return new(C||w)(o.rXU(Te.I8),o.rXU(ge.CH),o.rXU(Re.ts),o.rXU(je.Mq),o.rXU(Ye.ml),o.rXU(tt.WM),o.rXU(Pe.L),o.rXU(Z.I),o.rXU(mt.k),o.rXU(qe.h))}}static{this.\u0275cmp=o.VBU({type:w,selectors:[["app-motor-summary"]],decls:21,vars:3,consts:[[1,"mt-3","mb-4","mx-3","mx-lg-4"],[3,"breakIn"],[1,"row"],[1,"col-12","col-lg-6"],[1,"mb-4"],[1,"col-12","col-lg-6","mt-4","mt-lg-0"],["class","mt-4",4,"ngIf"],[1,"mt-5","ml-3","mx-md-3","mx-lg-4"],[1,"mx-3","ml-lg-4","mr-lg-0"],[1,"disclaimer","my-5"],[1,"fs-14","text-bolder","montserrat-bolder","text-dark","mb-3"],[1,"bullet-list"],[1,"mb-3","fs-14","montserrat-regular","text-regular","text-primary"],["class","bottom-fixed-panel",4,"ngIf"],[1,"mt-4"],[3,"pancardValidations"],[1,"bottom-fixed-panel"],[1,"container","d-flex","justify-content-between","align-items-center"],[1,"d-flex","align-items-center","justify-content-between","w-100x"],["class","d-flex align-items-center",4,"ngIf"],["class","btn btn-danger",3,"click",4,"ngIf"],[1,"d-flex","align-items-center"],[1,"mr-3","d-none","d-lg-block"],["src","./assets/images/icons/hand.svg","alt",""],[1,"fs-16","text-primary","montserrat-medium","mr-4"],[1,"text-danger","text-bolder","montserrat-bolder","d-flex","align-items-center","d-lg-inline","mt-2","mt-lg-0"],["tooltip","No Claim Bonus or NCB is\xa0a rewar","containerClass","custom-tooltip",1,"mx-1","d-inline-block"],["src","./assets/images/icons/info.svg","alt","",1,"d-inline-block"],[1,"d-none","d-lg-inline-block"],[1,"btn","btn-danger",3,"click"]],template:function(C,f){1&C&&(o.j41(0,"div",0),o.nrm(1,"app-motor-summary-header",1),o.j41(2,"div",2)(3,"div",3)(4,"div",4),o.nrm(5,"app-motor-summary-vehicle-details"),o.k0s(),o.nrm(6,"app-motor-summary-vehicle-owner-details"),o.k0s(),o.j41(7,"div",5),o.nrm(8,"app-motor-summary-policy-plan"),o.k0s()(),o.DNE(9,Dt,2,0,"div",6),o.k0s(),o.nrm(10,"div",7),o.j41(11,"div",8)(12,"div",9)(13,"div",10),o.EFF(14," Disclaimer "),o.k0s(),o.j41(15,"ul",11)(16,"li",12),o.EFF(17," Please ensure the Vehicle Details are correct before proceeding"),o.k0s(),o.j41(18,"li",12),o.EFF(19,"Please ensure your Vehicle Owner Details are correct before proceeding "),o.k0s()()()(),o.DNE(20,kt,7,4,"div",13)),2&C&&(o.R7$(),o.Y8G("breakIn",f.breakInStatus),o.R7$(8),o.Y8G("ngIf",f.panCardActive),o.R7$(11),o.Y8G("ngIf",f.breakInStatus))},dependencies:[b.bT,ut.dg,Ue,Ve,Xe,Be,_t]})}}return w})()}];let Ot=(()=>{class w{static{this.\u0275fac=function(C){return new(C||w)}}static{this.\u0275mod=o.$C({type:w})}static{this.\u0275inj=o.G2t({imports:[S.iI.forChild(Mt),S.iI]})}}return w})();var At=m(5452);let Ft=(()=>{class w{static{this.\u0275fac=function(C){return new(C||w)}}static{this.\u0275mod=o.$C({type:w})}static{this.\u0275inj=o.G2t({imports:[b.MD,At.PluginsModule,ue.YN,ue.X1,Ot]})}}return w})()},62208:(et,pe,m)=>{m.d(pe,{E:()=>e});var b=m(54438),S=m(50779);let e=(()=>{class Y{constructor(t){this.modalService=t}ngOnInit(){}closePopup(){this.modalService.hide()}static{this.\u0275fac=function(_){return new(_||Y)(b.rXU(S.I8))}}static{this.\u0275cmp=b.VBU({type:Y,selectors:[["app-data-privacy-popup"]],standalone:!0,features:[b.aNF],decls:12,vars:0,consts:[[1,"popup-wrapper"],[1,"modal-header","position-relative","border-0"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true",1,"visually-hidden"],[1,"popup-body"],[1,"thankyou-popup-main"]],template:function(_,B){1&_&&(b.j41(0,"div",0)(1,"div",1)(2,"button",2),b.bIt("click",function(){return B.closePopup()}),b.j41(3,"span",3),b.EFF(4,"\xd7"),b.k0s()()(),b.j41(5,"div",4)(6,"div",5)(7,"p")(8,"b"),b.EFF(9,"Data Privacy:"),b.k0s(),b.nrm(10,"br"),b.EFF(11," \u201cI/We authorize the Company to share / verify the information provided by me/us pertaining to my proposal with rating agencies, third parties or services providers for the purpose of underwriting the proposal, issuance, servicing and claims settlement of the policy, thereafter. I hereby consent to and authorize Universal Sompo General Insurance Company Limited (\u201cCompany\u201d) and its representatives to collect, use, share and disclose information provided by me, as per the Privacy policy of the Company. Company or its representatives are also hereby authorised to contact me (including overriding my registry on NCPR/NDNC and/
1or under any extant TRAI regulations) and / or notify about the services being rendered by the Company.\u201d."),b.k0s()()()())},styles:[".thankyou-popup-main[_ngcontent-%COMP%]{padding:0 25px;text-align:center;display:flex;flex-direction:column;align-items:center}.thankyou-popup-main[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:25px;margin-bottom:35px;text-align:justify}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{display:flex;font-size:21px;opacity:1!important}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}@media (max-width: 991.2px){ .thankyou-popup{max-width:500px}.thankyou-popup-main[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:24px}.thankyou-popup-main[_ngcontent-%COMP%]{padding:45px}}"]})}}return Y})()},90458:(et,pe,m)=>{m.d(pe,{G:()=>Y});var b=m(54438),S=m(50779),e=m(46359);let Y=(()=>{class q{constructor(_,B){this.modalService=_,this.router=B}ngOnInit(){}closePopup(){this.modalService.hide(),this.router.navigate(["/"])}static{this.\u0275fac=function(B){return new(B||q)(b.rXU(S.I8),b.rXU(e.Ix))}}static{this.\u0275cmp=b.VBU({type:q,selectors:[["app-disability-consent"]],decls:14,vars:0,consts:[[1,"popup-wrapper","nstp-popup","py-3","py-lg-4","px-lg-3"],[1,"popup-body","text-center","px-lg-5","px-3","px-lg-0"],[1,"hero-icon","my-4","mb-lg-5"],["src","./assets/images/usgi-icons/nstp-icon.svg","alt","",1,"mx-auto"],[1,"nstp-text","text-dark","montserrat-medium","text-medium","mb-3","mb-lg-4","mx-auto","lh-24"],[1,"montserrat-bolder","text-bolder","text-dark","mb-2","mb-lg-4","mr-0"],[1,"text-link","mb-3"],["href","tel:1800-22-4030"],[1,"text-center","mb-3"],[1,"btn","btn-outline-danger","mr-3",3,"click"]],template:function(B,he){1&B&&(b.j41(0,"div",0)(1,"div",1)(2,"figure",2),b.nrm(3,"img",3),b.k0s(),b.j41(4,"h6",4),b.EFF(5," Online policy issuance is not available for Disability Declaration. Please contact to nearest branch for policy issuance. "),b.k0s(),b.nrm(6,"h5",5),b.j41(7,"h6",6),b.EFF(8," Please Contact Us on "),b.j41(9,"a",7),b.EFF(10," 1800-22-4030 "),b.k0s()(),b.j41(11,"div",8)(12,"button",9),b.bIt("click",function(){return he.closePopup()}),b.EFF(13," Close "),b.k0s()()()())},styles:[".lh-24[_ngcontent-%COMP%]{line-height:24px}"]})}}return q})()},66894:(et,pe,m)=>{m.d(pe,{r:()=>e});var b=m(54438),S=m(50779);let e=(()=>{class Y{constructor(t){this.modalService=t}ngOnInit(){}closePopup(){this.modalService.hide()}static{this.\u0275fac=function(_){return new(_||Y)(b.rXU(S.I8))}}static{this.\u0275cmp=b.VBU({type:Y,selectors:[["app-disability-declairation"]],standalone:!0,features:[b.aNF],decls:12,vars:0,consts:[[1,"popup-wrapper"],[1,"modal-header","position-relative","border-0"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true",1,"visually-hidden"],[1,"popup-body"],[1,"thankyou-popup-main"]],template:function(_,B){1&_&&(b.j41(0,"div",0)(1,"div",1)(2,"button",2),b.bIt("click",function(){return B.closePopup()}),b.j41(3,"span",3),b.EFF(4,"\xd7"),b.k0s()()(),b.j41(5,"div",4)(6,"div",5)(7,"p")(8,"b"),b.EFF(9,"DISABILITY DECLARATION:"),b.k0s(),b.nrm(10,"br"),b.EFF(11," \u201cI/We hereby declare that a duly authorized representative appointed by me has explained details with respect to the proposal form, policy documents, terms and conditions and the EIA\u201d."),b.k0s()()()())},styles:[".thankyou-popup-main[_ngcontent-%COMP%]{padding:0 30px;text-align:center;display:flex;flex-direction:column;align-items:center}.thankyou-popup-main[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:25px;margin-bottom:35px;text-align:justify}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{display:flex;font-size:21px;opacity:1!important}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}@media (max-width: 991.2px){ .thankyou-popup{max-width:500px}.thankyou-popup-main[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:24px}.thankyou-popup-main[_ngcontent-%COMP%]{padding:45px}}"]})}}return Y})()},54034:(et,pe,m)=>{m.d(pe,{x:()=>e});var b=m(54438),S=m(50779);let e=(()=>{class Y{constructor(t){this.modalService=t}ngOnInit(){}closePopup(){this.modalService.hide()}static{this.\u0275fac=function(_){return new(_||Y)(b.rXU(S.I8))}}static{this.\u0275cmp=b.VBU({type:Y,selectors:[["app-pep-popup"]],standalone:!0,features:[b.aNF],decls:12,vars:0,consts:[[1,"popup-wrapper"],[1,"modal-header","position-relative","border-0"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true",1,"visually-hidden"],[1,"popup-body"],[1,"thankyou-popup-main"]],template:function(_,B){1&_&&(b.j41(0,"div",0)(1,"div",1)(2,"button",2),b.bIt("click",function(){return B.closePopup()}),b.j41(3,"span",3),b.EFF(4,"\xd7"),b.k0s()()(),b.j41(5,"div",4)(6,"div",5)(7,"p")(8,"b"),b.EFF(9,"Definition of PEP:"),b.k0s(),b.nrm(10,"br"),b.EFF(11," \u201cPolitically Exposed Persons (PEPs) are individuals who have been entrusted with prominent public functions by a foreign country, including the heads of States or Governments, senior politicians, senior government or judicial or military officers, senior executives of state-owned corporations and important political party officials.\u201d"),b.k0s()()()())},styles:[".thankyou-popup-main[_ngcontent-%COMP%]{padding:0 30px;text-align:center;display:flex;flex-direction:column;align-items:center}.thankyou-popup-main[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;line-height:25px;margin-bottom:35px;text-align:justify}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{display:flex;font-size:21px;opacity:1!important}.thankyou-popup-main[_ngcontent-%COMP%] .close[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}@media (max-width: 991.2px){ .thankyou-popup{max-width:500px}.thankyou-popup-main[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:24px}.thankyou-popup-main[_ngcontent-%COMP%]{padding:45px}}"]})}}return Y})()}}]);
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.