PageSourceSearch

https://www.universalsompo.com/3087.16165d59d4cf8655.js

js universalsompo.com collected 2026-10-03 21:38:03 UTC 287,148 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkusgi=self.webpackChunkusgi||[]).push([[3087],{16230:(Mt,Oe,m)=>{m.r(Oe),m.d(Oe,{MotorChoosePlansModule:()=>g});var O=m(60177),M=m(89417),e=m(5992),L=m(5452),B=m(46359),t=m(54438),I=m(18359),J=m(5964),Ie=m(94982),Ne=m(62155),we=m(50779),o=m(91484),Ce=m(54005),te=m(71780),Re=m(32374),xe=m(62233),Me=m(67747),Be=m(64673),ae=m(60040),X=m(534);const Qe=i=>({rotate:i});function Je(i,b){1&i&&t.nrm(0,"img",27)}function et(i,b){1&i&&t.nrm(0,"img",28)}function Xe(i,b){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const n=t.XpG();t.R7$(),t.SpI("CC- ",n.cubicCapacity?n.cubicCapacity:"NA","")}}function r(i,b){if(1&i){const n=t.RV6();t.j41(0,"a",30),t.bIt("click",function(){t.eBV(n);const c=t.XpG(4);return t.Njj(c.openEditClaimPopup())}),t.nrm(1,"img",31),t.EFF(2,"Edit "),t.k0s()}}function He(i,b){if(1&i&&(t.j41(0,"div"),t.DNE(1,r,3,0,"a",29),t.k0s()),2&i){const n=t.XpG(3);t.R7$(),t.Y8G("ngIf",n.is_edit&&"Yes"==n.ncbDetails.previousPolicyPresent)}}function tt(i,b){if(1&i&&(t.j41(0,"div"),t.DNE(1,He,2,1,"div",15),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf","Liability"!=n.ncbDetails.previousPolicyType)}}function ot(i,b){if(1&i&&(t.j41(0,"div"),t.DNE(1,tt,2,1,"div",15),t.k0s()),2&i){const n=t.XpG();t.R7$(),t.Y8G("ngIf",!n.ncb90days)}}let We=(()=>{class i{constructor(n,a,c,C,k){this.modalService=n,this.motorJourneyVehicleDetailsRepository=a,this.motorJourneyProductPlanRepository=c,this.motorJourneyRepository=C,this.location=k,this.isCollapsed=!1,this.is_edit=!0,this.subscriptions=new I.yU,this.ncb90days=!1,this.isCollapsed=window.innerWidth<767}PresentDate(){var n=new Date;const a=n.getFullYear();var c=n.getMonth()+1,C=n.getDate();return C<10&&(C="0"+C),c<10&&(c="0"+c),c+"/"+C+"/"+a}ngOnInit(){this.initStoreData(),this.initNcbDetails(),this.initActiveVehicleDetails()}ngOnDestroy(){this.subscriptions.unsubscribe()}initStoreData(){this.subscriptions.add(this.motorJourneyRepository.quotationDialog$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.journeyName=n.journeyName,this.vehicleNumber=n?.vehicleNumber,"new"==n?.vehicleSelection&&(this.is_edit=!1)})),this.subscriptions.add(this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(n=>{this.cubicCapacity=n.cubicCapacity,this.fuelType=n.selectFuelType})),this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.productData=n})}diffDaysCalu(n){const a=n,[c,C,k]=a.split("/"),w=`${C}/${c}/${k}`,P=this.PresentDate(),K=new Date(w);let j=new Date(P).getTime()-K.getTime();return Math.ceil(j/864e5)}initNcbDetails(){this.subscriptions.add(this.motorJourneyRepository.previousPolicyDialog$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.ncbDetails=n,("Liability"===this.ncbDetails.previousPolicyType||"No"===this.ncbDetails.previousPolicyPresent)&&(this.ncbDetails.previousPolicyyNoClaimBonus="");let a=n.previousPolicyEndDate?this.diffDaysCalu(n.previousPolicyEndDate):0;0<a&&a>90&&(this.ncbDetails.previousPolicyClaim="",this.ncbDetails.previousPolicyyNoClaimBonus="",this.ncbDetails.futurePolicyNoClaimBonus="",this.ncb90days=!0)}))}initActiveVehicleDetails(){this.subscriptions.add(this.motorJourneyVehicleDetailsRepository.motorJourneyVehicleDetails$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.aadrila=n,this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(a=>{this.vehicleDetails=a,(!a||!a.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(n){n.preventDefault(),n.stopImmediatePropagation(),this.location.back()}openErrorPopup(n){this.bsmodelRef=this.modalService.show(Ie.u,Object.assign({error:n,class:"thankyou-popup modal
1-xl",initialState:{error:n},backdrop:"static"}))}openLoginProcessPopup(){this.modalService.show(Be.K,Object.assign({class:"edit-claim-popup modal-lg",backdrop:"static",initialState:{aadrila:this.aadrila}}))}openEditClaimPopup(){this.modalService.show(Me.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(a){return new(a||i)(t.rXU(we.I8),t.rXU(ae.Mq),t.rXU(o.CH),t.rXU(te.ml),t.rXU(O.aZ))}}static{this.\u0275cmp=t.VBU({type:i,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(a,c){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"img",5),t.bIt("click",function(k){return c.backBtnClickHandler(k)}),t.k0s(),t.DNE(6,Je,1,0,"img",6)(7,et,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,Xe,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 c.isCollapsed=!c.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,ot,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&a&&(t.R
17$(6),t.Y8G("ngIf","MotorTwoWheeler"==c.journeyName||null==c.journeyName),t.R7$(),t.Y8G("ngIf","MotorPrivateCar"==c.journeyName),t.R7$(7),t.SpI(" ",c.aadrila.rc_maker_model?c.aadrila.rc_maker_model:"--"," "),t.R7$(5),t.SpI(" ",c.vehicleNumber?c.vehicleNumber:"--"," "),t.R7$(2),t.SpI(" ",c.aadrila.rc_rto_code?c.aadrila.rc_rto_code:"--"," "),t.R7$(2),t.Y8G("ngIf",!c.fuelType.includes("ELECTRICAL")),t.R7$(5),t.SpI(" ",c.aadrila.rc_registered_at?c.aadrila.rc_registered_at:"--"," "),t.R7$(2),t.SpI(" ",c.aadrila.rc_regn_dt?c.aadrila.rc_regn_dt:"--"," "),t.R7$(),t.Y8G("ngClass",t.eq3(15,Qe,c.isCollapsed)),t.BMQ("aria-expanded",!c.isCollapsed),t.R7$(2),t.Y8G("collapse",c.isCollapsed)("isAnimated",!0),t.R7$(6),t.Y8G("ngIf","No"===c.ncbDetails.previousPolicyPresent||"No"===c.ncbDetails.previousPolicyClaim),t.R7$(6),t.SpI(" ",c.ncbDetails.previousPolicyClaim?c.ncbDetails.previousPolicyClaim:"--"," "),t.R7$(5),t.SpI(" ",c.ncbDetails.previousPolicyyNoClaimBonus?c.ncbDetails.previousPolicyyNoClaimBonus:"--"," "))},dependencies:[O.YU,O.bT,X.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 i})();var it=m(10467),Y=m(10444),be=m(96697),Ke=m(96354),ze=m(79344),nt=m(75374),Te=m(98518),oe=m(97586),Le=m(18703),ke=m(41198),$e=m(63620),Ge=m(81779);const qe=i=>({active:i});function rt(i,b){if(1&i){const n=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(n);const c=t.XpG(2).$implicit,C=t.XpG(2);return t.Njj(C.onPolicyPlanDurationClicked(c))}),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&i){const n=t.XpG().$implicit,a=t.XpG().$implicit;t.R7$(2),t.FS9("for",n.id),t.R7$(),t.SpI("",n.year," "),t.R7$(),t.FS9("id",n.id),t.FS9("formControlName",n.formControlName),t.FS9("value",n.value),t.Y8G("checked",n.checked),t.R7$(3),t.SpI(" ",n.desc," "),t.R7$(2),t.SpI(" ",t.bMT(10,8,a.planPrice)," p.a. ")}}function st(i,b){if(1&i&&(t.j41(0,"div",15),t.DNE(1,rt,11,10,"div",16),t.k0s()),2&i){const n=b.$implicit;t.R7$(),t.Y8G("ngIf",n.year)}}function Q(i,b){if(1&i&&(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,st,2,1,"div",14),t.k0s()()()),2&i){const n=b.$implicit,a=t.XpG(2);t.Y8G("ngClass",t.eq3(4,qe,(null==a.selectedCardData?null:a.selectedCardData.ProductCode)===n.ProductCode)),t.R7$(4),t.JRh(n.planTitle),t.R7$(2),t.SpI("",n.planDesc," "),t.R7$(2),t.Y8G("ngForOf",n.yearPlanWise)}}function at(i,b){if(1&i&&(t.j41(0,"form",5)(1,"ngx-slick-carousel",6,0),t.DNE(3,Q,9,6,"div",7),t.k0s()()),2&i){const n=t.XpG();t.Y8G("formGroup",n.policyPlanForm),t.R7$(),t.Y8G("config",n.plansSlideConfig),t.R7$(2),t.Y8G("ngForOf",n.cardData)}}let lt=(()=>{class i{constructor(n,a,c,C,k,w,P){this.fb=n,this.modalService=a,this.motorJourneyProductPlanRepository=c,this.motorJourneyRepository=C,this.journeyRestService=k,this.journeyHomeService=w,this.motorJourneyVehilceDetails=P,this.cardData=[],this.pageData=[],this.binding="",this.subscriptions=new I.yU,this.subscriptionsChg=new I.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 K=new Date;K.setDate(K.getDate()),this.policyStartDate=oe(K).format("DD/MM/YYYY")}ngOnInit(){this.journeyHomeService.showCard.subscribe(n=>this.showCard=n),this.createForm(),this.initCoverDiscount(),this.subscriptions.add(this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(n=>{let a=this.cardData.map(c=>c.ProductCode);o.$i.update((0,Te.js)()),o.$i.update((0,Te.f3)(a)),this.subscriptionsChg.unsubscribe(),this.subscriptionsChg=new I.yU,this.journeyName="",this.obsoluteVehicle=n,this.initJourneyName()})),this.inSelectedActiveProductPlan(),this.initToSelectAllProductPlansSubsription()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.subscriptionsChg.unsubscribe()}createForm(){this.policyPlanForm=this.fb.group({comprehensivePlan:["oneYearCP",M.k0.required]})}initJourneyName(){var n=this;const a=this.policyStartDate;let c;this.motorJourneyRepository.previousPolicyDialog$.subscribe(C=>{c=C,this.previousPolicyPresent=C?.previousPolicyPresent}).unsubscribe(),this.subscriptionsChg.add(this.motorJourneyRepository.vehicleDetailsDialog$.subscribe(C=>{this.companyName=C?.selectedVehicleBrand})),this.motorJourneyRepository.personalAccidentCover$.subscribe(C=>{this.personalAccidentCover=C}),this.subscriptionsChg.add(this.motorJourneyRepository.quotationDialog$.pipe((0,J.p)(C=>!!C)).subscribe(C=>{let k=0;if(this.journeyName==C.journeyName)return;this.journeyName=C.journeyName,this.openPopWhenVCOld=C.vehicleSelection,this.cardData="MotorPrivateCar"===this.journeyName?ze.q:nt.y;let w=this.motorJourneyVehilceDetails.getMotorJourneyVehicalDetailsValue(),P=[],K=this.dateConvertToMMDDYYYY(w?.rc_regn_dt),de=oe(new Date).format("YYYYMMDD"),j=this.getAge(new Date(K)),se=C.vehicleSelection,N=sessionStorage.getItem("policy_startDate")||(c?.previousPolicyStartDate?this.dateConvertToYYYYMMDD(c?.previousPolicyStartDate):""),E=sessionStorage.getItem("policy_endDate")||(c?.previousPolicyEndDate?this.dateConvertToYYYYMMDD(c?.previousPolicyEndDate):""),ie=sessionStorage.getItem("policy_effective_to")||(c?.policyEffectiveTo?this.dateConvertToYYYYMMDD(c?.policyEffectiveTo):""),Ae=(sessionStorage.getItem("policy_effective_from")||c?.policyEffectiveFrom&&this.dateConvertToYYYYMMDD(c?.policyEffectiveFrom),oe(N).format("YYYY")),Se=oe(K).format("YYYY");
1this.cardData.forEach(function(){var A=(0,it.A)(function*(x){if("Comprehensive Plan"==x.planTitle&&(n.comprehensivePlanName="Comprehensive Plan"),"Own Damage Plan"==x.planTitle&&(C?.vehicleNumber||"old"==se)&&E!==ie&&E<ie)j<("MotorPrivateCar"===n.journeyName?3:5)&&"liability"!=c?.previousPolicyType?.toLowerCase()&&P.push(x);else if("Yes"==n.previousPolicyPresent&&j>=("MotorPrivateCar"===n.journeyName?3:5)){if(de&&"Own Damage Plan"==x.planTitle)return;P.push(x)}else if("Comprehensive Plan"!=x.planTitle||!C?.vehicleNumber&&"old"!=se)"Own Damage Plan"==x.planTitle&&"No"==n.previousPolicyPresent&&j<=("MotorPrivateCar"===n.journeyName?3:5)||"Third Party Plan"==x.planTitle&&"No"==n.previousPolicyPresent&&j>=("MotorPrivateCar"===n.journeyName?3:5)||"Comprehensive Plan"==x.planTitle&&"No"==n.previousPolicyPresent&&j>=("MotorPrivateCar"===n.journeyName?3:5)?P.push(x):"Comprehensive Plan"==x.planTitle&&"new"==se&&(x.ProductCode="MotorPrivateCar"===n.journeyName?2367:2369,x.ProductName=2367==x.ProductCode?"MOTOR - MOTOR PRIVATE CAR - BUNDLED":"MOTOR - MOTOR TWO WHEELER  - BUNDLED",P.push(x));else if(Se!==Ae&&E<ie)P.push(x);else{if(E<ie)return;P.push(x)}});return function(x){return A.apply(this,arguments)}}()),this.cardData=P;var q=sessionStorage.getItem("selectedPlanID")||"";this.activePlan=o.$i.query(Te.UP)||"";let ee=o.$i.query((0,Te.Dq)())||"";typeof ee.id<"u"?(this.selectedActiveId=ee.id,++k):q?this.selectedActiveId=q:0==k&&""==this.selectedActiveId&&(this.selectedActiveId=P[0]?.ProductCode),P.forEach(A=>{let x=o.$i.query(Te.UP)||"";A.yearPlanWise[0].selected=!1,A.planDefault=!1,(A.ProductCode===parseInt(this.selectedActiveId)||1==P.length)&&(A.yearPlanWise[0].selected=!0,A.planDefault=!0,this.motorJourneyProductPlanRepository.setActiveProductPlan(A?.ProductCode)),(A.planDefault&&!x||!A.planDefault&&1==P.length&&!x||x&&x==A?.ProductCode)&&(this.selectedCardData=A,this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,be.s)(1)).subscribe(()=>{setTimeout(()=>{$('input[name="comprehensivePlan"]').prop("checked",!1),$("#"+A.yearPlanWise[0].id).prop("checked",A.yearPlanWise[0]?.selected),setTimeout(()=>{$('input[name="comprehensivePlan"]').prop("checked",!1),$("#"+A.yearPlanWise[0].id).prop("checked",A.yearPlanWise[0]?.selected)},1500)},500)}));let S,_e=!1,fe=!0;this.subscriptionsChg.add(this.motorJourneyRepository.motorJourney$.pipe((0,Ke.T)(({costSummaryData:Pe,selectedAddonsAndCoverage:ce,selectedAdditionalCoverAndDiscount:Ye,selectedDiscounts:Ve,personalAccidentCover:me,vehicleExShowroomPrices:je,postDataQuoteId:ue,...pe})=>pe)).subscribe(Pe=>{if(S&&Pe&&JSON.stringify(S)!=JSON.stringify(Pe)||!S&&Pe){if(S=Pe,this.activePlan&&ee&&!_e)return void(_e=!0);if(_e=!0,!fe)return void(fe=!0);fe&&0==Pe.choosePlanData.selectedIDVValue&&(fe=!1);let ce=[];try{j=oe().diff(this.dateConvertToMMDDYYYY(Pe?.vehicleDetailsDialog.selectedVehicleYearOfPurchase),"years",!0),j=parseFloat(j.toFixed(2))}catch{}this.addonDetails.forEach(G=>{let ne=this.companyName.toUpperCase().includes("MARUTI"),ve=this.companyName.toUpperCase().includes("HONDA"),ye=this.companyName.toUpperCase().includes("TATA");"ENGINE PROTECTOR - PETROL"===G.value||"ENGINE PROTECTOR - DIESEL"===G.value?(j<=5&&(ne||ve)||j<=7&&(ye||!ne&&!ve&&!ye))&&ce.push(G):"RETURN TO INVOICE"===G.value?j<=5&&ce.push(G):"KEY REPLACEMENT"===G.value?(j<=5&&(ne||ve||!ne&&!ve&&!ye)||j<=7&&ye)&&ce.push(G):"COST OF CONSUMABLES"===G.value?(j<=7&&ne||j<=7&&!ve&&"MotorPrivateCar"===this.journeyName||j<=5&&"MotorTwoWheeler"===this.journeyName)&&ce.push(G):"SECURE TOWING"===G.value?j<=5&&!ne&&!ve&&ce.push(G):"Nil Depreciation Waiver cover"===G.value?(j<=7&&ne||j<=7&&!ne)&&ce.push(G):"DAILY CASH ALLOWANCE - METRO"===G.value||"DAILY CASH ALLOWANCE - NONMETRO"===G.value||"Tyre and Rim secure"===G.value?j<=5&&!ne&&!ye&&ce.push(G):"ACCIDENTAL HOSPITALIZATION"===G.value?j<=5&&!ne&&!ve&&!ye&&ce.push(G):"HYDROSTATIC LOCK COVER"===G.value||ce.push(G)});let Ye={...Pe,selectedAddonsAndCoverage:this.selectedAddon?this.selectedAddon:[],selectedAdditionalCoverAndDiscount:this.selectedCoverDiscounts?this.selectedCoverDiscounts:[],selectedDiscounts:this.selectedDiscounts?this.selectedDiscounts:[],personalAccidentCover:this.personalAccidentCover?this.personalAccidentCover:[]},Ve={...Pe,selectedAddonsAndCoverage:ce,selectedAdditionalCoverAndDiscount:this.coverAddonDetail
1s,selectedDiscounts:this.discountDetails,personalAccidentCover:this.personalAccidentCover?this.personalAccidentCover:[]},me=new Date,je=oe(me,"DD-MM-YYYY").add(1,"days");je=oe(je).format("DD/MM/YYYY");let pe,ue=oe(me,"DD-MM-YYYY").add(1,"years");if(ue=oe(ue).format("DD/MM/YYYY"),"MOTOR - MOTOR PRIVATE CAR - BUNDLED"===A.ProductName){let G=new Date((new Date).setFullYear((new Date).getFullYear()+3));pe=oe(G).subtract(1,"days").format("DD/MM/YYYY")}else if("MOTOR - MOTOR TWO WHEELER  - BUNDLED"===A.ProductName){let G=new Date((new Date).setFullYear((new Date).getFullYear()+5));pe=oe(G).subtract(1,"days").format("DD/MM/YYYY")}else{let G=new Date((new Date).setFullYear((new Date).getFullYear()+1));pe=oe(G).subtract(1,"days").format("DD/MM/YYYY")}"Invalid date"==je&&(je=a),"Invalid date"==ue&&(ue=pe),this.productCodeForZone=A.ProductCode,(0,Y.Bt)(()=>{this.journeyRestService.loadPolicyPlanDataBlaze({ProductCode:A.ProductCode,ProductName:A.ProductName,Fromdate:"old"==se?je:a,Todate:"old"==se?ue:pe,...Ye},{ProductCode:A.ProductCode,ProductName:A.ProductName,Fromdate:"old"==se?je:a,Todate:"old"==se?ue:pe,...Ve})})}}))}),this.getChange("Comprehensive Plan"==this.comprehensivePlanName&&"new"==se&&"MotorPrivateCar"===this.journeyName?"1 year OD + 3 year TP":"Comprehensive Plan"==this.comprehensivePlanName&&"new"==se&&"MotorTwoWheeler"===this.journeyName?"1 year OD + 5 year TP":"1 year")}))}dateAgeDifference(n,a){let c=new Date(this.dateConvertToMMDDYYYY(n)).getTime(),w=(new Date(this.dateConvertToMMDDYYYY(a)).getTime()-c).toString();return w=w.slice(0,-8),w=parseInt(w),Math.floor(w)}dateConvertToMMDDYYYY(n){const[a,c,C]=n?.split("/");return`${c}/${a}/${C}`}dateConvertToYYYYMMDD(n){const[a,c,C]=n?.split("/");return`${C}${c}${a}`}getAge(n,a=new Date){const c=new Date(n).getTime(),k=(new Date(a).getTime()-c)/31536e6;return Math.floor(k)}inSelectedActiveProductPlan(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.subscribe(n=>{if(n){const a=this.cardData.find(c=>c.ProductCode===n.id);a&&(a.yearPlanWise[0].selected=!0,setTimeout(()=>{$('input[name="comprehensivePlan"]').prop("checked",!1),$("#"+a.yearPlanWise[0].id).prop("checked",a.yearPlanWise[0].selected),this.selectedCardData=a},1800))}}))}initToSelectAllProductPlansSubsription(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectAllProductPlans$.subscribe(n=>{n.forEach(a=>{if(a){const c=this.cardData.find(C=>C.ProductCode===a.id);c&&(c.planPrice=`${a.finalPremium||"0.0"}`)}})}))}getChange(n){this.cardData.forEach(a=>{a.yearPlanWise.forEach(c=>{c.year===n?this.binding=c.year:c.year=n})})}onPolicyPlanDurationClicked(n){"old"==this.openPopWhenVCOld&&this.openLoginProcessPopup(),this.journeyHomeService.planChanged.next(!0),this.selectedCardData=n,this.motorJourneyProductPlanRepository.setActiveProductPlan(n.ProductCode),n.ProductCode&&(sessionStorage.setItem("selectedPlanID",n.ProductCode.toString()),this.motorJourneyRepository.saveSelectedOtherAddonData([]),this.motorJourneyRepository.saveSelectedAdditionalCoverAndDiscount([]))}initCoverDiscount(){this.subscriptions.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.selectedCoverDiscounts=n.coversDiscount,this.selectedAddon=n.addonCoverage,this.selectedDiscounts=n.discountPackage}))}openLoginProcessPopup(){this.modalService.show(Be.K,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static"}))}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(M.ze),t.rXU(we.I8),t.rXU(o.CH),t.rXU(te.ml),t.rXU(Le.I),t.rXU(Ce.L),t.rXU(ae.Mq))}}static{this.\u0275cmp=t.VBU({type:i,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(a,c){1&a&&(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,at,4,3,"form",4),t.k0s()()),2&a&&(t.R
17$(4),t.Y8G("ngIf",!0===c.showCard))},dependencies:[O.YU,O.Sq,O.bT,ke.qW,ke.Hv,$e.ZP,M.qT,M.me,M.Fm,M.BC,M.cb,M.j4,M.JD,Ge.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 i})();var Ue=m(1807);const Ze=i=>({disableque:i});function ct(i,b){if(1&i){const n=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(n);const c=t.XpG(2);return t.Njj(c.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(n);const c=t.XpG(2);return t.Njj(c.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(n);const c=t.XpG(2);return t.Njj(c.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(n);const c=t.XpG(2);return t.Njj(c.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(n);const c=t.XpG(2);return t.Njj(c.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(n);const c=t.XpG(2);return t.Njj(c.liacence_(!1,!0))}),t.k0s(),t.EFF(38," No "),t.nrm(39,"span",15),t.k0s()()()()}if(2&i){const n=t.XpG(2);t.R7$(14),t.Y8G("ngClass",t.eq3(2,Ze,n.disabled)),t.R7$(13),t.Y8G("ngClass",t.eq3(4,Ze,n.disabled))}}function dt(i,b){if(1&i&&(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,ct,40,6,"div",18),t.k0s()()),2&i){const n=t.XpG();t.R7$(9),t.Y8G("formGroup",n.personalAccidentCoverForm),t.R7$(16),t.Y8G("ngIf",n.fieldDisabled)}}let mt=(()=>{class i{constructor(n,a,c){this.fb=n,this.motorJourneyRepository=a,this.motorJourneyProductPlanRepository=c,this.fieldDisabled=!0,this.disabled=!0,this.subscription=new I.yU}ngOnInit(){this.personalAccidentCoverForm=this.fb.group({coverageType:["Individual",M.k0.required],activeDrivingLicense:["Yes",M.k0.required],alternatePaCover:["No",M.k0.required],alternateGPACover:["No",M.k0.required]}),this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.productCardId=n.id.toString(),this.motorJourneyRepository.personalAccidentCover$.subscribe(a=>{"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"===a?.isActiveDrivingLicensePresent,!1)):(this.personalAccidentCoverForm.get("coverageType")?.setValue(a?.selectedCoverageType),this.personalAccidentCoverForm.get("activeDrivingLicense")?.setValue(a?.isActiveDrivingLicensePresent),this.personalAccidentCoverForm.get("alternatePaCover")?.setValue(a?.isAlternatePAC
1overPresent),this.personalAccidentCoverForm.get("alternateGPACover")?.setValue(a?.isAlternateGPACoverPresent),this.liacence("Yes"===a?.isActiveDrivingLicensePresent,!1))})}),this.personalAccidentCoverForm.valueChanges.subscribe(n=>{this.initSelectedCoverType()}),this.personalAccidentCoverForm.get("coverageType")?.valueChanges.subscribe(n=>{this.fieldDisabled="Individual"==n})}ngOnDestroy(){this.subscription.unsubscribe()}paCoverStart(){this.paCoverTimer&&this.paCoverTimer.unsubscribe(),this.paCoverTimer=(0,Ue.O)(1500).subscribe(n=>{this.initSelectedCoverType()})}initSelectedCoverType(){(0,Y.Bt)(()=>{this.motorJourneyRepository.savePersonalAccidentCover({selectedCoverageType:this.personalAccidentCoverForm.get("coverageType")?.value,isActiveDrivingLicensePresent:this.personalAccidentCoverForm.get("activeDrivingLicense")?.value,isAlternatePACoverPresent:this.personalAccidentCoverForm.get("alternatePaCover")?.value,isAlternateGPACoverPresent:this.personalAccidentCoverForm.get("alternateGPACover")?.value})})}liacence(n,a){n?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)),a&&setTimeout(()=>{window.location.reload()})}liacence_(n,a){a&&setTimeout(()=>{window.location.reload()})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(M.ze),t.rXU(te.ml),t.rXU(o.CH))}}static{this.\u0275cmp=t.VBU({type:i,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(a,c){1&a&&t.DNE(0,dt,26,2,"div",0),2&a&&t.Y8G("ngIf","2398"!=c.productCardId&&"2397"!=c.productCardId)},dependencies:[O.YU,O.bT,$e.ZP,M.qT,M.me,M.Fm,M.BC,M.cb,M.j4,M.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 i})();var ut=m(19365),pt=m(99809);const ht=i=>({active:i});function gt(i,b){if(1&i){const n=t.RV6();t.j41(0,"div",9)(1,"input",10),t.bIt("change",function(c){const C=t.eBV(n).$implicit,k=t.XpG(2);return t.Njj(k.handleAddonSelection(c,C))}),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&i){const n=b.$implicit,a=b.index,c=t.XpG(2);t.R7$(),t.FS9("id","addonId"+a),t.R7$(),t.FS9("for","addonId"+a),t.R7$(),t.Y8G("ngClass",t.eq3(8,ht,c.isAddonSelected(n))),t.R7$(6),t.SpI(" ",n.AddonCoverGroups.$.Value," "),t.R7$(4),t.SpI(" ",t.bMT(14,6,n.Premium.$.Value),"* "),t.R7$(8),t.JRh(c.isAddonSelected(n)?"Remove":"Add")}}function ft(i,b){if(1&i&&(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,gt,22,10,"div",8),t.k0s()()()()),2&i){const n=t.XpG();t.R7$(4),t.Y8G("formGroup",n.addOnsCheckBoxForms),t.R7$(2),t.Y8G("config",n.plansSlideConfig),t.R7$(2),t.Y8G("ngForOf",n.addOnCoverages)}}let Dt=(()=>{class i{constructor(n,a,c,C,k,w,P){this.fb=n,this.modalService=a,this.journeyRestService=c,this.motorJourneyRepository=C,this.motorJourneyProductPlanRepository=k,this.motorJourneyVehicalDetailsRepository=w,this.journeyHomeService=P,this.addOnCoverages=[],this.selectedAddons={},this.addonsCovers=[],this.subscription=new I.yU,this.subscriptionCH=new I.yU,this.addOnsCheckBoxForms=this.fb.group({addOnsCheck1:["",M.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(n=>{!0===n&&this.initVehicleDetails()}),this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore(),this.vcSelection()}ngOnDestroy(){this.subscription.unsubscribe(),this.subscriptionCH.unsubscribe()}initVehicleDetails(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>
1!!n)).subscribe(n=>{n&&(n?.addOnCoverageswithPremium.sort((a,c)=>a.AddonCoverGroups.$.Value.localeCompare(c.AddonCoverGroups.$.Value)),this.addOnCoverages=n?.addOnCoverageswithPremium.filter(a=>"0.00"!=a.Premium.$.Value&&""!=a.Premium.$.Value),this.addOnlenth=this.addOnCoverages.length)}).unsubscribe())}initSelectedAddonAndCoverageFromStore(){this.motorJourneyRepository.selectedAddonsAndCoverage$.pipe((0,J.p)(n=>!!n),(0,be.s)(1)).subscribe(n=>{this.selectedAddons=n.reduce((a,c)=>(a[c.value]={},a),{})})}handleAddonSelection(n,a){"old"==this.vehicleSelection&&"Nil Depreciation Waiver cover"===a.AddonCoverGroups.$.Value?!0===n.target.checked&&"Nil Depreciation Waiver cover"===a.AddonCoverGroups.$.Value&&(this.modalService.show(pt.r,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static",keyboard:!1})).content.newItemEvent.subscribe(C=>{"Yes"===C.value?this.selectedAddons[a.AddonCoverGroups.$.Value]={}:delete this.selectedAddons[a.AddonCoverGroups.$.Value],this.otherAddOnsCovers(),this.selectedAddons={...this.selectedAddons},this.motorJourneyRepository.saveSelectedAddonsAndCoverage(Object.keys(this.selectedAddons||[]).map(k=>({value:k})))}),this.addonsCovers.push(a.AddonCoverGroups.$.Value)):(!0===n.target.checked?this.selectedAddons[a.AddonCoverGroups.$.Value]={}:delete this.selectedAddons[a.AddonCoverGroups.$.Value],this.selectedAddons={...this.selectedAddons},this.motorJourneyRepository.saveSelectedAddonsAndCoverage(Object.keys(this.selectedAddons||[]).map(c=>({value:c}))),this.addonsCovers.push(a.AddonCoverGroups.$.Value),this.otherAddOnsCovers())}isAddonSelected(n){return this.selectedAddons.hasOwnProperty(n.AddonCoverGroups.$.Value)}otherAddOnsCovers(){this.amountTimer&&this.amountTimer.unsubscribe(),this.amountTimer=(0,Ue.O)(2e3).subscribe(n=>{this.motorJourneyRepository.saveSelectedOtherAddonsData(Object.keys(this.selectedAddons||[]).map(a=>({value:a})))})}vcSelection(){this.subscriptionCH.add(this.motorJourneyRepository.quotationDialog$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.vehicleSelection=n.vehicleSelection}))}newVehiclePopup(){this.modalService.show(ut.w,Object.assign({class:"login-process-popup modal-lg bottom-slide"}))}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(M.ze),t.rXU(we.I8),t.rXU(Le.I),t.rXU(te.ml),t.rXU(o.CH),t.rXU(ae.Mq),t.rXU(Ce.L))}}static{this.\u0275cmp=t.VBU({type:i,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(a,c){1&a&&t.DNE(0,ft,9,3,"div",1),2&a&&t.Y8G("ngIf",c.addOnlenth>0)},dependencies:[O.YU,O.Sq,O.bT,ke.qW,ke.Hv,M.qT,M.cb,M.j4,Ge.G]})}}return i})();var vt=m(17039);function yt(i,b){if(1&i){const n=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(n);const c=t.XpG(2);return t.Njj(c.imtCoversPopup())}),t.EFF(8," Click here to explore Additional Covers "),t.k0s()()()()}}function Ct(i,b){if(1&i&&(t.j41(0,"div",4),t.DNE(1,yt,9,0,"div",5),t.k0s()),2&i){const n=b.index;t.R7$(),t.Y8G("ngIf",0==n)}}let bt=(()=>{class i{constructor(n,a,c,C,k,w){this.fb=n,this.modalService=a,this.motorJourneyRepository=c,this.journeyHomeService=C,this.motorJourneyProductPlanRepository=k,this.motorJourneyVehicalDetailsRepository=w,this.fieldDisabled1=!0,this.fieldDisabled2=!0,this.showSingleCard=!1,this.selectedAddons={},this.subscription=new I.yU,this.coverDiscountForm=this.fb.group({amount:["",M.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(P=>{!0===P&&(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 n;this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(a=>!!a)).subscribe(a=>{try{n=[],this.coverDiscounts=[];let c=[];c=a.coverDiscountsPremium.filter(C=>"Basic TP"!=C.CoverGroups.$.Value&&"Basic OD"!=C.CoverGroups.$.Value&&"PA COVER TO OWNER DRIVER"!=C.CoverGroups.$.Value),c.map(C=>{"0.00"!=C.Premium.$.Value&&n.push(C)}),this.coverDiscounts=n}catch{}}))}initSelectedAddonAndCoverageFromStore(){this.motorJourneyRepository.selectedAdditionalCoverAndDiscount$.pipe((0,J.p)(n=>
1!!n)).subscribe(n=>{this.selectedDiscount=n,this.totalPremium=0,this.selectedDiscount.forEach(a=>{this.totalPremium+=parseInt(a.value)}),n?.forEach(a=>{this.coverDiscounts?.forEach(c=>{a.name==c.CoverGroups.$.Value&&(c.selected=!0)})})})}handleAddonSelection(n,a){n.target.checked?(this.selectedDiscount[a.Premium.$.Value]={},a.selected=!0):(delete this.selectedDiscount[a.Premium.$.Value],a.selected=!1),this.selectedDiscount={...this.selectedDiscount};let c=this.coverDiscounts.filter(C=>C?.selected);this.motorJourneyRepository.saveSelectedAdditionalCoverAndDiscount(c.map(C=>({name:C.CoverGroups.$.Value,value:C.Premium.$.Value})))}isAddonSelected(n){return this.selectedAddons.hasOwnProperty(n.AddonCoverGroups.$.Value)}imtCoversPopup(){this.modalService.show(vt.Y,Object.assign({class:"edit-claim-popup modal-lg",backdrop:"static",keyboard:!1}))}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(M.ze),t.rXU(we.I8),t.rXU(te.ml),t.rXU(Ce.L),t.rXU(o.CH),t.rXU(ae.Mq))}}static{this.\u0275cmp=t.VBU({type:i,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(a,c){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"h5",2),t.EFF(3,"Additional Covers "),t.k0s()(),t.DNE(4,Ct,2,1,"div",3),t.k0s()),2&a&&(t.R7$(4),t.Y8G("ngForOf",c.coverDiscounts))},dependencies:[O.Sq,O.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 i})();var D=m(21413),W=m(3281);const d=i=>({"form-group-error":i});function f(i,b){if(1&i&&(t.j41(0,"small",12),t.EFF(1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.errorMsg," ")}}function p(i,b){if(1&i){const n=t.RV6();t.j41(0,"div",13)(1,"ngx-slider",14),t.mxI("valueChange",function(c){t.eBV(n);const C=t.XpG(2);return t.DH7(C.idvSelectedValue,c)||(C.idvSelectedValue=c),t.Njj(c)}),t.bIt("userChangeStart",function(){t.eBV(n);const c=t.XpG(2);return t.Njj(c.stateis("start"))})("userChangeEnd",function(){t.eBV(n);const c=t.XpG(2);return t.Njj(c.on_value_change(c.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&i){const n=t.XpG(2);t.R7$(),t.R50("value",n.idvSelectedValue),t.Y8G("options",n.options)}}function V(i,b){if(1&i){const n=t.RV6();t.j41(0,"div",17)(1,"ngx-slider",14),t.mxI("valueChange",function(c){t.eBV(n);const C=t.XpG(2);return t.DH7(C.idvSelectedValue,c)||(C.idvSelectedValue=c),t.Njj(c)}),t.bIt("userChangeStart",function(){t.eBV(n);const c=t.XpG(2);return t.Njj(c.stateis("start"))})("userChangeEnd",function(){t.eBV(n);const c=t.XpG(2);return t.Njj(c.on_value_change(c.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&i){const n=t.XpG(2);t.R7$(),t.R50("value",n.idvSelectedValue),t.Y8G("options",n.options)}}function R(i,b){if(1&i){const n=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(c){t.eBV(n);const C=t.XpG();return t.DH7(C.inputIdvValue,c)||(C.inputIdvValue=c),t.Njj(c)}),t.bIt("ngModelChange",function(){t.eBV(n);const c=t.XpG();return t.Njj(c.on_input_value_change(c.inputIdvValue))}),t.k0s(),t.DNE(10,f,2,1,"small",9),t.k0s()()(),t.DNE(11,p,6,2,"div",10)(12,V,6,2,"div",11),t.k0s()()}if(2&i){const n=t.XpG();t.R7$(7),t.Y8G("formGroup",n.choosePlanForm),t.R7$(),t.Y8G("ngClass",t.eq3(7,d,n.errorMsg)),t.R7$(),t.Y8G("value",n.idvSelectedValue),t.R50("ngModel",n.inputIdvValue),t.R7$(),t.Y8G("ngIf",n.errorMsg),t.R7$(),t.Y8G("ngIf","MotorTwoWheeler"==n.journeyName||null==n.journeyName),t.R7$(),t.Y8G("ngIf","MotorPrivateCar"==n.journeyName)}}let H=(()=>{class i{constructor(n,a,c,C,k,w,P){this.fb=n,this.motorJourneyProductPlanRepository=a,this.motorJourneyRepository=c,this.motorJourneyVehicalDetailsRepository=C,this.ngzone=k,this.journeyRestService=w,this.journeyHomeService=P,this.idvDefaultValue=255900,this.idvSelectedValue=255900,this.changeD=!1,this.idvPrice=new D.B,this.errorMsg="",this.subscription=new I.yU,this.options={floor:1e5,ceil:5e5,showSelectionBar:!0,translate:(K,de)=>"\u20b9 "+Math.floor(K).toString().replace(/(\d)(?=(\d\d)+\d$)/g,"$1,")},this.amount=new D.B}ngOnInit(){this.initJourneyName(),this.initVehicleDetails(),this.initActiveProductPlan(),this.choosePlanForm=this.fb.group({inputIdvValue:["",M.k0.required]})}IVDStart(n){this.idvTimer&&this.idvTimer.unsubscribe(),this.idvTimer=(0,Ue.O)(1e3).subscribe(a=>{this.journeyHomeService.setSubjectshowCard(!1),this.motorJourneyRepository.saveIdvValue(n)})}ngOnDestroy(){this.subscription.unsubscribe()}initJourneyName(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.pipe((0,J.p)(n=>
1!!n)).subscribe(n=>{this.journeyName=n.journeyName}))}initVehicleDetails(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.dataState=n,this.changeD=!1,this.updateIDVRangeOnProductPlanChange(n),this.finalPremium=n.finalPremium}))}initActiveProductPlan(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{this.productCardId!=n.id&&(this.changeD=!1,this.updateIDVRangeOnProductPlanChange(n)),this.productCardId=n.id,!this.changeD&&n.idvDefaultValue!=this.idvSelectedValue&&this.updateIDVRangeOnProductPlanChange(n),this.journeyHomeService.defaultIDVEmit.subscribe(a=>{a&&(this.changeD=!1,this.journeyHomeService.defaultIDVEmit.next(!1))})})),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>!!n),(0,be.s)(1)).subscribe(n=>{this.updateIDVRangeOnProductPlanChange(n)}))}stateis(n){console.log(n),this.idvTimer&&this.idvTimer.unsubscribe()}updateIDVRangeOnProductPlanChange(n){const a=n.minIDV,c=n.maxIDV;n&&n.idvDefaultValue&&parseFloat(n.idvStaticValue||n.idvDefaultValue),this.idvSelectedValue=n&&n.idvDefaultValue?parseFloat(n.idvDefaultValue):0,this.inputIdvValue=this.idvSelectedValue,this.ngzone.run(()=>{const k=Object.assign({},this.options);!1===this.changeD&&(k.floor=Math.round(a),k.ceil=Math.round(c),this.options=k,this.changeD=!0),this.motorJourneyRepository.saveIdvValue(this.idvSelectedValue,n.idvStaticValue||n.idvDefaultValue)})}on_value_change(n){this.amount.next(n),this.changeD=!0,this.IVDStart(n)}on_input_value_change(n){this.errorMsg="",n!=this.idvSelectedValue&&(this.options?.floor<=n&&this.options?.ceil>=n?this.IVDStart(n):this.errorMsg="Entered IDV is not valid")}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(M.ze),t.rXU(o.CH),t.rXU(te.ml),t.rXU(ae.Mq),t.rXU(t.SKi),t.rXU(Le.I),t.rXU(Ce.L))}}static{this.\u0275cmp=t.VBU({type:i,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","options"],[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(a,c){1&a&&t.DNE(0,R,13,9,"div",0),2&a&&t.Y8G("ngIf",!("2319"==c.productCardId||"2320"==c.productCardId))},dependencies:[O.YU,O.bT,$e.ZP,W.d1,M.qT,M.me,M.BC,M.cb,M.j4,M.JD]})}}return i})();var he=m(32709);const Ee=()=>({dateInputFormat:"DD-MM-YYYY",showWeekNumbers:!1,adaptivePosition:!0});function _(i,b){1&i&&(t.j41(0,"h5",6),t.EFF(1,"Discounts For You"),t.k0s())}function U(i,b){1&i&&(t.j41(0,"p",22),t.EFF(1," Discount is offered if Anti-theft device approved by ARAI is installed to protect your vehicle from theft "),t.k0s())}function s(i,b){1&i&&(t.j41(0,"p",22),t.EFF(1," Discount is offered if policyholder is a member of Automobile Association of India (AAI) "),t.k0s())}function u(i,b){1&i&&(t.j41(0,"p",22),t.EFF(1," Discount is offered if vehicle is specially designed / modified for physically / mentally challenged persons "),t.k0s())}function v(i,b){1&i&&(t.j41(0,"p",22),t.EFF(1," Discount is offered by restricting Third Party Property Damage to Rs 6,000 from Rs 7,50,000 "),t.k0s())}function y(i,b){1&i&&(t.j41(0,"p",22),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 T(i,b){1&i&&(t.j41(0,"div",23)(1,"div",24)(2,"div",25)(3,"div",26)(4,"label",27),t.EFF(5,"Certificate Number "),t.k0s(),t.nrm(6,"input",28),t.k0s()()(),t.j41(7,"div",24)(8,"div",25)(9,"div",29),t.nrm(10,"img",30),t.j41(11,"label",27),t.EFF(12,"Expiry Date"),t.k0s(),t.nrm(13,"input",31),t.k0s()()()()),2&i&&(t.R7$(13),t.Y8G("bsConfig",t.lJ4(1,Ee)))}function z(i,b){if(1&i){const n=t.RV6();t.j41(0,"label",34),t.EFF(1),t.j41(2,"input",35),t.bIt("click",function(c){t.eBV(n);const C=t.XpG(2).$implicit,k=t.XpG();return t.Njj(k.getDiscountVoluntary(c,C))}),t.k0s(),t.nrm(3,"span",36),t.k0s()}if(2&i){const n=b.$implicit,a=b.index,c=t.XpG(3);t.FS9("for","discountItemz"+a),t.R7$(),t.SpI(" ",n," "),t.R7$(),t.FS9("id","discountItemz"+a),t.Y8G("checked",n==c.suminsured)("value",n)("disabled",c.discountRadio)}}function Z(i,b){if(1&i&&(t.j41(0,"div",25)(1,"div",32),t.DNE(2,z,4,6,"label",33),t.k0s()()),2&i){const n=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",n.discountVoluntary)}}function re(i,b){if(1&i){const n=t.RV6();t.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"input",10),t.bIt("click",function(c){const C=t.eBV(n).$implicit,k=t.XpG();return t.Njj(k.handleDiscountSelection(c,C))}),t.k0s(),t.nrm(4,"label",11),t.k0s(),t.j41(5,"div",12)(6,"div",13)(7,"figure",14),t.nrm(8,"img",15),t.k0s(),t.j41(9,"h6",16),t.EFF(10),t.k0s()()()(),t.j41(11,"div",17),t.DNE(12,U,2,0,"p",18)(13,s,2,0,"p",18)(14,u,2,0,"p",18)(15,v,2,0,"p",18)(16,y,2,0,"p",18),t.j41(17,"form",19),t.DNE(18,T,14,2,"div",20),t.k0s(),t.DNE(19,Z,3,1,"div",21),t.k0s()()}if(2&i){const n=b.$implicit,a=b.index,c=t.XpG();t.R7$(3),t.FS9("id","discountItem"+a),t.Y8G("checked",null==n?null:n.selected),t.R7$(),t.FS9("for","discountItem"+a),t.R7$(6),t.SpI(" ","Voluntary deductable"===n.Description.$.Value?"Voluntary deductible":n.Description.$.Value," "),t.R7$(2),t.Y8G("ngIf","Antitheft device discount"===n.Description.$.Value),t.R7$(),t.Y8G("ngIf","Automobile Association discount"===n.Description.$.Value),t.R7$(),t.Y8G("ngIf","Handicap Discount"===n.Description.$.Value),t.R7$(),t.Y8G("ngIf","TPPD Discount"===n.Description.$.Value),t.R7$(),t.Y8G("ngIf","Voluntary deductable"===n.Description.$.Value),t.R7$(),t.Y8G("formGroup",c.discountForm),t.R7$(),t.Y8G("ngIf","Automobile Association discount"===n.Description.$.Value),t.R7$(),t.Y8G("ngIf","Voluntary deductable"===n.Description.$.Value)}}let le=(()=>{class i{constructor(n,a,c,C){this.fb=n,this.motorJourneyProductPlanRepository=a,this.journeyHomeService=c,this.motorJourneyRepository=C,this.discountVoluntary=[],this.cardshow=!1,this.selectedDiscount=[],this.suminsured=new M.hs(""),this.discountRadio=!0,this.subscription=new I.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,be.s)(1)).subscribe(n=>{this.discountVoluntary="MotorPrivateCar"===n.journeyName?[2500,5e3,7500,15e3]:[500,750,1e3,1500,3e3]}),this.journeyHomeService.addPre.subscribe(n=>{!0===n&&(this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore())}),this.initVehicleDetails(),this.initSelectedAddonAndCoverageFromStore(),this.motorJourneyRepository.selectedOtherDiscount$.subscribe(n=>{this.suminsured=n[0]?.sumInsured,this.createForm()})}createForm(){this.discountForm=this.fb.group({certificate:["",M.k0.required],expiryDate:["",M.k0.required]})}initVehicleDetails(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>
1!!n)).subscribe(n=>{if(n){let a=n?.discountswithPremium.filter(c=>"No claim bonus"!=c?.Description?.$?.Value).sort((c,C)=>c.Description.$.Value.localeCompare(C.Description.$.Value));"2311"==n.id||"2312"==n.id||"2367"==n.id||"2369"==n.id?this.discountCover=JSON.parse(JSON.stringify(a)).filter(c=>c?.Description?.$?.Value.includes("Voluntary deductable")):"2319"==n.id||"2320"==n.id?this.discountCover=JSON.parse(JSON.stringify(a)).filter(c=>c?.Description?.$?.Value.includes("none")):("2397"==n.id||"2398"==n.id)&&(this.discountCover=JSON.parse(JSON.stringify(a)).filter(c=>c?.Description?.$?.Value.includes("Voluntary deductable")))}}).unsubscribe())}initSelectedAddonAndCoverageFromStore(){this.motorJourneyRepository.selectedDiscounts$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{n.forEach(a=>{this.discountCover.forEach(c=>{a.value==c.Description.$.Value&&(c.selected=!0,this.selectedDiscount?.find(C=>C.value==a.value)||this.selectedDiscount.push(a),this.discountRadio=!1)})})})}getDiscountVoluntary(n,a){let c=[];c.push({name:"Voluntary deductable",sumInsured:n.target.value,premium:a.Premium.$.Value}),this.motorJourneyRepository.saveSelectedOtherDiscountData(c)}handleDiscountSelection(n,a){if(n.target.checked)this.discountRadio=!1,this.selectedDiscount?.find(c=>c.value==a.Description.$.Value)||this.selectedDiscount?.push({value:a.Description.$.Value,amount:a.Premium.$.Value});else{let c=[];this.discountForm.reset(),this.discountRadio=!0;let C=this.selectedDiscount?.findIndex(k=>k.value==a.Description.$.Value);this.selectedDiscount?.splice(C,1),this.motorJourneyRepository.saveSelectedOtherDiscountData(c)}this.motorJourneyRepository.saveDiscountDetails(this.selectedDiscount)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(M.ze),t.rXU(o.CH),t.rXU(Ce.L),t.rXU(te.ml))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-motor-dicounts"]],decls:7,vars:3,consts:[["slickModal","slick-carousel"],[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"],[1,"carousel","additional-covers-plan",3,"config"],["ngxSlickItem","","class","slide position-relative imt-cards p-3",4,"ngFor","ngForOf"],[1,"montserrat-bolder","text-bolder","text-primary","mb-3","mb-md-4"],["ngxSlickItem","",1,"slide","position-relative","imt-cards","p-3"],[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"],["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"]],template:function(a,c){1&a&&(t.j41(0,"div",1)(1,"div",2),t.DNE(2,_,2,0,"h5",3),t.k0s(),t.j41(3,"form")(4,"ngx-slick-carousel",4,0),t.DNE(6,re,20,12,"div",5),t.k0s()()()),2&a&&(t.R
17$(2),t.Y8G("ngIf",0!=(null==c.discountCover?null:c.discountCover.length)),t.R7$(2),t.Y8G("config",c.coversSlideConfig),t.R7$(2),t.Y8G("ngForOf",c.discountCover))},dependencies:[O.Sq,O.bT,he.pc,he.p0,ke.qW,ke.Hv,$e.ZP,M.qT,M.me,M.BC,M.cb,M.cV,M.j4,M.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}@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 i})();function De(i,b){if(1&i){const n=t.RV6();t.j41(0,"div",5)(1,"ng-lottie",6),t.bIt("animationCreated",function(c){t.eBV(n);const C=t.XpG();return t.Njj(C.animationCreated(c))}),t.k0s()()}if(2&i){const n=t.XpG();t.R7$(),t.Y8G("options",n.options)}}const h=[{path:"",component:(()=>{class i{animationCreated(n){}constructor(n,a,c,C,k,w){this.modalService=n,this.router=a,this.motorJourneyProductPlanRepository=c,this.journeyHomeService=C,this.motorJourneyRepository=k,this._message=w,this.comHide=!1,this.subscription=new I.yU,this.loading=!1,this.options={path:"/assets/animations/car.json"},this.newItemEvent=new t.bkB}ngOnInit(){this.journeyHomeService.showCard.subscribe(n=>this.loading=n),this.initVehicleDetails(),this.initQuotationDailog()}ngOnDestroy(){this.subscription.unsubscribe()}initVehicleDetails(){let n=0;this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.subscribe(a=>{this.journeyHomeService.netPreniumMotor_pre.subscribe(c=>
1{n=c,setTimeout(()=>{this.finalPremium=parseInt(c||"0.00")},100)}),this.finalPremium=a?.finalPremium?parseInt(a.finalPremium):0,this.activeProductPlan=a,this.productName=a?.productName}))}initQuotationDailog(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.subscribe(n=>{this.mobileNo=n.vehicleOwnerMobileNumber}))}onChoosePlanContinueCta(){this.router.navigateByUrl("/motor-insurance-calculator-journey/personal-information"),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,J.p)(n=>!!n)).subscribe(n=>{let a=n.posPolicyQuoteNo;void 0!==n.posPolicyQuoteNo&&(this.motorJourneyRepository.saveCustomerDetails({quotationId:a}),this.journeyHomeService.postQuotationData("choose-plan"),this.journeyHomeService.smsInspectionReferenceId({QuotationNumber:a,MobileNumber:this.mobileNo,InsuranceType:this.productName}))})),this._message.changeMessage("personalInformation")}openErrorPopup(n){this.bsmodelRef=this.modalService.show(Ie.u,Object.assign({error:n,class:"thankyou-popup modal-xl",initialState:{error:n},backdropdro:"static"}))}leftPanelDetailCard(){this.bsmodelRef=this.modalService.show(Ne.S,Object.assign({class:"left-panel-detail-card-popup",backdrop:"static"}))}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(we.I8),t.rXU(B.Ix),t.rXU(o.CH),t.rXU(Ce.L),t.rXU(te.ml),t.rXU(Re.h))}}static{this.\u0275cmp=t.VBU({type:i,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(a,c){1&a&&(t.j41(0,"div",1),t.DNE(1,De,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:[xe.xm,We,lt,mt,Dt,bt,H,le]})}}return i})()}];let F=(()=>{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=t.G2t({imports:[B.iI.forChild(h),B.iI]})}}return i})();var l=m(44626);let g=(()=>{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=t.G2t({imports:[O.MD,L.PluginsModule,M.YN,l.v,M.X1,F,e.G.forRoot(),l.v]})}}return i})()},13087:(Mt,Oe,m)=>{m.r(Oe),m.d(Oe,{MotorInsuranceCalculatorJourneyModule:()=>Ee});var O=m(60177),M=m(46359),e=m(18359),L=m(5964),B=m(96354),t=m(70152),I=m(23294),J=m(35334),Ie=m(96697),Ne=m(91484),we=m(15714),o=m(71649),Ce=m(86369),te=m(62155),Re=m(90057),xe=m(86651),Me=m(68869),Be=m(12546),ae=m(10444),X=m(97586),Qe=m(5655),Je=m(98518),et=m(20901),Xe=m(95613),r=m(54438),He=m(18703),tt=m(50779),ot=m(71780),We=m(60040),it=m(18389),Y=m(54005),be=m(32374),Ke=m(70482),ze=m(33802),nt=m(51451),Te=m(5992),oe=m(62233),Le=m(13220),ke=m(81779);const $e=()=>["/motor-insurance-calculator"],Ge=()=>["/motor-insurance-calculator-journey/choose-plans"],qe=_=>({rotate:_});function rt(_,U){if(1&_&&r.nrm(0,"ngx-loading",75),2&_){const s=r.XpG(),u=r.sdS(2);r.Y8G("show",!s.loading)("template",u)}}function st(_,U){if(1&_){const s=r.RV6();r.j41(0,"div",76)(1,"ng-lottie",77),r.bIt("animationCreated",function(v){r.eBV(s);const y=r.XpG();return r.Njj(y.animationCreated(v))}),r.k0s()()}if(2&_){const s=r.XpG();r.R7$(),r.Y8G("options",s.options)}}function Q(_,U){if(1&_&&r.nrm(0,"ngx-loading",75),2&_){const s=r.XpG(),u=r.sdS(5);r.Y8G("show",!s.loading)("template",u)}}function at(_,U){if(1&_){const s=r.RV6();r.j41(0,"div",76)(1,"ng-lottie",77),r.bIt("animationCreated",function(v){r.eBV(s);const y=r.XpG();return r.Njj(y.animationCreated(v))}),r.k0s()()}if(2&_){const s=r.XpG();r.R7$(),r.Y8G("options",s.twoWheelerOptions)}}function lt(_,U){1&_&&(r.j41(0,"span"),r.EFF(1,"Two Wheeler"),r.k0s())}function Ue(_,U){1&_&&(r.j41(0,"span"),r.EFF(1,"Four Wheeler"),r.k0s())}function Ze(_,U){1&_&&(r.j41(0,"span",78),r.EFF(1," Comprehensive Plan "),r.k0s())}function ct(_,U){1&_&&(r.j41(0,"span",79),r.EFF(1," Third Party Plan "),r.k0s())}function dt(_,U){1&_&&(r.j41(0,"span",79),r.EFF(1," Own Damage Plan "),r.k0s())}function mt(_,U){if(1&_){const s=r.RV6();r.j41(0,"div",80),r.bIt("click",function(){r.eBV(s);const v=r.XpG();
1return r.Njj(v.openJourneyHighLightPopupTW())}),r.EFF(1," Preview in 2 minutes "),r.k0s()}}function ut(_,U){if(1&_){const s=r.RV6();r.j41(0,"div",80),r.bIt("click",function(){r.eBV(s);const v=r.XpG();return r.Njj(v.openJourneyHighLightPopupPC())}),r.EFF(1," Preview in 2 minutes "),r.k0s()}}function pt(_,U){if(1&_&&(r.j41(0,"div",89),r.EFF(1),r.k0s()),2&_){const s=r.XpG().$implicit,u=r.XpG(2);r.R7$(),r.SpI(" ","Discount"===s.label&&u.discount?"Discount":s.label," ")}}function ht(_,U){if(1&_&&(r.j41(0,"div",90),r.EFF(1),r.nI1(2,"customIndianCurrency"),r.k0s()),2&_){const s=r.XpG().$implicit,u=r.XpG(2);r.R7$(),r.LHq(" ","NCB Discount"===s.label?"- ":""," ","Discount"!==s.label||u.discount?"":"- "," ","Discount"===s.label&&u.discount?"- "+u.discountAmount+"%":s.info?r.bMT(2,4,s.info):"\u20b9 0"," ","NCB Discount"===s.label?u.current_ncb_percentage:""," ")}}function gt(_,U){if(1&_&&(r.j41(0,"div",86)(1,"div",53),r.DNE(2,pt,2,1,"div",87),r.k0s(),r.j41(3,"div",55),r.DNE(4,ht,3,6,"div",88),r.k0s()()),2&_){const s=U.index;r.R7$(2),r.Y8G("ngIf",9!=s),r.R7$(2),r.Y8G("ngIf",9!=s)}}function ft(_,U){if(1&_){const s=r.RV6();r.j41(0,"div",81)(1,"div",82)(2,"p",83),r.EFF(3," Cost Summary "),r.k0s(),r.j41(4,"p",84),r.bIt("click",function(){r.eBV(s);const v=r.XpG();return r.Njj(v.openCostSummaryPopup())}),r.EFF(5," View Details "),r.k0s()(),r.DNE(6,gt,5,2,"div",85),r.k0s()}if(2&_){const s=r.XpG();r.R7$(6),r.Y8G("ngForOf",s.costSummary)}}function Dt(_,U){1&_&&r.nrm(0,"img",91)}function vt(_,U){1&_&&r.nrm(0,"img",92)}function yt(_,U){if(1&_&&(r.j41(0,"div",89),r.EFF(1),r.k0s()),2&_){const s=r.XpG().$implicit;r.R7$(),r.SpI(" ",s.label," ")}}function Ct(_,U){if(1&_&&(r.j41(0,"div",89),r.EFF(1),r.nI1(2,"customIndianCurrency"),r.k0s()),2&_){const s=r.XpG().$implicit,u=r.XpG();r.R7$(),r.LHq(" ","NCB Discount"===s.label?"- ":""," ","Discount"!==s.label||u.discount?"":"- "," ","Discount"===s.label&&u.discount?"- "+u.discountAmount+"%":s.info?r.bMT(2,4,s.info):"\u20b9 0"," ","NCB Discount"===s.label?u.current_ncb_percentage:""," ")}}function bt(_,U){if(1&_&&(r.j41(0,"div",93)(1,"div",53),r.DNE(2,yt,2,1,"div",87),r.k0s(),r.j41(3,"div",55),r.DNE(4,Ct,3,6,"div",87),r.k0s()()),2&_){const s=U.index;r.R7$(2),r.Y8G("ngIf",9!=s),r.R7$(2),r.Y8G("ngIf",9!=s)}}function D(_,U){if(1&_){const s=r.RV6();r.j41(0,"div",94)(1,"div",5)(2,"div",95)(3,"div",96),r.EFF(4,"Total Premium"),r.k0s(),r.j41(5,"div",57)(6,"div",97)(7,"span",98),r.EFF(8),r.nI1(9,"customIndianCurrency"),r.k0s()(),r.j41(10,"a",99),r.bIt("click",function(){r.eBV(s);const v=r.XpG();return r.Njj(v.openCostSummaryPopup())}),r.EFF(11," View Details "),r.k0s()()()()()}if(2&_){const s=r.XpG();r.R7$(8),r.SpI(" ",r.bMT(9,1,s.costSummary[9].info),"/- p.a.")}}const d=[{path:"motor-insurance-calculator-journey",component:(()=>{class _{constructor(s,u,v,y,T,z,Z,re,le,De,Fe,h){this.journeyRestService=s,this.modalService=u,this.motorJourneyRepository=v,this.motorJourneyVehicalDetailsRepository=y,this.motorJourneyCkycRepository=T,this.motorJourneyProductPlanRepository=z,this.journeyHomeService=Z,this._commonSrc=re,this.transactionService=le,this.journeyAadrilaService=De,this.motorJourneyOwnerDetailsRepository=Fe,this.router=h,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.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(l=>{setTimeout(()=>{this.loading=l},100)}),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,L.p)(l=>!!l)).subscribe(l=>{"0.00"!==l.deTariffDiscount.Rate.$.Value&&(this.discount=!0,this.discountAmount=parseInt(l.deTariffDiscount.Rate.$.Value))}));const F=new Date;this.policyStartDate=new Date(F.setDate(F.getDate())).toISOString(),this.policyStartDate=X(this.policyStartDate).format("DD/MM/YYYY"),this.journeyHomeService.validationPer.subscribe(l=>this.showPop=l),this.journeyHomeService.panCardSelection.subscribe(l=>this.panCardValidation=l),this.journeyHomeService.panCardStatus.subscribe(l=>this.panCardStatus=l),this.router.events.subscribe(l=>{this.firstLoadPageHandle(),this.loaderNavigator(l)}),this.journeyHomeService.breakIn.subscribe(l=>{"/motor-insurance-calculator-journey/summary"==this.router.url&&(this.breakInCase=l)})}animationCreated(s){}loaderNavigator(s){s instanceof M.Z&&setTimeout(()=>{this.loading=!1},100),(s instanceof M.wF||s instanceof M.j5||s instanceof M.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-calculator-journey"==this.router.url&&this.obsoluteVehicle&&!this.firstHitDone&&(this.firstHitDone=!0,this.modalService.show(et.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,L.p)(s=>!!s)).subscribe(s=>{null!=s.addOnCoverageswithPremium&&null!=s.coverDiscountsPremium&&(this.journeyHomeService.addPre.next(!0),this.coverDiscounts=s.coverDiscounts.filter(u=>"Basic OD"==u.CoverGroups?.$.Value||"Basic TP"==u.CoverGroups?.$.Value),this.coverDiscounts&&this.calcuateAPrenium(s))})),this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,L.p)(s=>!!s),(0,B.T)(({costSummaryData:s,...u})=>u)).subscribe(s=>{this.dataState=s,this.GPACover=s.isAlternateGPACoverPresent,this.PACover=s.isAlternatePACoverPresent}))}ngOnDestroy(){this.subscriptions.unsubscribe()}firstLoadPageHandle(){let s=this.router.url;"/motor-insurance-calculator-journey/choose-plans"==s||"/motor-insurance-calculator-journey"==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-calculator-journey/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-calculator-journey/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,L.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,L.p)(s=>!!s),(0,B.T)(({costSummaryData:s,...u})=>u),(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,L.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 u;this.subscriptions.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,ae.u5)(),(0,L.p)(v=>!!v),(0,I.F)(),(0,J.d)()).subscribe(v=>{const y=Ne.$i.query((0,Je.Dq)());y?.addOnCoverageswithPremium&&y?.coverDiscountsPremium&&y?.discountswithPremium&&(v?.addonCoverage&&JSON.stringify(v?.addonCoverage)==JSON.stringify(this.addonAdditionalCover)&&v?.coversDiscount&&JSON.stringify(v?.coversDiscount)==JSON.stringify(this.addonDiscountCover)&&v?.discountPackage&&JSON.stringify(v?.discountPackage)==JSON.stringify(this.discountPackages)||(this.addonAdditionalCover=v.add
1onCoverage,this.discountPackages=[...v.discountPackage],this.addonDiscountCover=v.coversDiscount,this.calcuateAPrenium(y)))})),this.subscriptions.add(this.motorJourneyRepository.personalAccidentCover$.pipe((0,ae.u5)(),(0,L.p)(v=>!!v),(0,I.F)(),(0,J.d)()).subscribe(v=>{v&&JSON.stringify(u)==JSON.stringify(v)||(u=v,this.calcuateAPrenium(Ne.$i.query((0,Je.Dq)())))})),this.motorJourneyRepository.selectedAdditionalCoverAndDiscount$.pipe((0,L.p)(v=>!!v),(0,Ie.s)(1)).subscribe(v=>{v=v?.filter(T=>!T.name.includes("Built in CNG Kit")||!T.name.includes("Built in CNG Kit"))||[];const y=s?.coverDiscountsPremium?.filter(T=>T.CoverGroups.$.Value.includes("Built in CNG Kit")||T.CoverGroups.$.Value.includes("Built in CNG Kit"))||[];y.length>0&&(y.forEach(T=>{v.push({name:T.CoverGroups.$.Value,value:T.Premium.$.Value})}),this.motorJourneyRepository.saveSelectedAdditionalCoverAndDiscount(v))})}))}calPercentage(s,u){return s/100*u}calcuateAPrenium(s){this.netPremium=s.netPremium,this.idvValue=s.idvDefaultValue;let u=s?.addOnCoverageswithPremium?.filter(w=>this.addonAdditionalCover.some(P=>P.value==w.AddonCoverGroups.$.Value))||[],v=s?.discountswithPremium?.filter(w=>this.discountPackages.some(P=>P.value==w.Description.$.Value))||[],y=s?.coverDiscountsPremium?.filter(w=>this.addonDiscountCover.some(P=>P.name==w.CoverGroups.$.Value))||[];s?.coverDiscountsPremium?.some(w=>{"PA COVER TO OWNER DRIVER"==w.CoverGroups.$.Value&&this.motorJourneyRepository.personalAccidentCover$.pipe((0,Ie.s)(1)).subscribe(P=>
1{"Individual"!=P.selectedCoverageType||"Yes"!=P.isActiveDrivingLicensePresent||"No"!=P.isAlternateGPACoverPresent||"No"!=P.isAlternatePACoverPresent||y.push(w)})});let T=0,z=0,Z=0,re=0,le=0;u?.forEach(w=>{T+=parseFloat(w.Premium.$.Value||"0.00")}),v?.forEach(w=>{w.Description.$.Value.includes("Voluntary")||w.Description.$.Value.includes("Handicap")||s.productName.includes("PRIVATE CAR")&&!w.Description.$.Value.includes("TPPD")?Z+=parseFloat(w.Premium.$.Value||"0.00"):w.Description.$.Value.includes("TPPD")?le+=parseFloat(w.Premium.$.Value||"0.00"):re+=parseFloat(w.Rate.$.Value||"0.00")});let De=!1;this.fibertankODDiscount=0;let Fe=0,h=0,F=0;y?.forEach(w=>{if(z+=parseFloat(w.Premium.$.Value||"0.00"),"Built in CNG Kit - OD"==w.CoverGroups.$.Value||"FIBERTANK OD"==w.CoverGroups.$.Value||"CNG Kit - OD"==w.CoverGroups.$.Value||"LPG Kit - OD"==w.CoverGroups.$.Value||w.CoverGroups.$.Value.includes("ELECTRICAL ACCESSORY OD")){let P=w.Premium.$.Value;this.ncbDetails_percentage&&s.ncbDiscount>0&&(De=!0,Fe+=parseFloat(P),this.fibertankODDiscount+=this.calPercentage(P,this.ncbDetails_percentage)),s.productName.includes("BUNDLED")&&(h+=parseFloat(P),F+=parseFloat(P))}});let l=0,g=0,i=Number(2319!=s.id&&2320!=s.id?this.coverDiscounts[0]?.Premium.$.Value:"0.00"),b=Number(2398!=s.id&&2397!=s.id?this.coverDiscounts[1]?.Premium.$.Value:"0.00");i+=Fe,l=(i+h-Z)*(Number(s?.deTariffDiscount?.Rate.$.Value||"0.00")/100),l=Number(l.toFixed(2)),g=(i+F-Z)*(Number(s?.deTariffLoading?.Rate.$.Value||"0.00")/100),g=Number(g.toFixed(2)),re>0&&(Z+=Number((i*re).toFixed(2))),i=0!=l?i-l:i+g,i=Number(i||0),i-=Z,this.ncbDetails_percentage>0&&i>0&&(s.ncbDiscount=s.ncbDiscount,i-=Math.round(s.ncbDiscount)),this.netPremium=i+b-le,le+=0!=l?l:g,Z+=le;let a=Number(s?.netPremium)+T+(z-Fe);this.netPremium=s?.netPremium,this.gstAmtStatus=Math.round(.18*a);let k=a;this.current_ncb_percentage=`(${parseFloat(s?.ncbDiscountRate).toFixed(0)}%)`,this.total_premium=this.finalPremium=k,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:T?.toFixed()||"0.00",additional_Cover_Total:z?.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,L.p)(u=>!!u),(0,Ie.s)(1)).subscribe(u=>{s=u})),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,L.p)(s=>!!s)).subscribe(s=>{this.aadrila=s}))}stepShow(s){"choosePlans"==s?(this.router.navigate(["motor-insurance-calculator-journey/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-calculator-journey/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-calculator-journey/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(){let s=this.router.url;"/motor-insurance-calculator-journey/choose-plans"==s||"/motor-insurance-calculator-journey"==s?(this.stepShow("personalInformation"),this.Continue="Continue",this.payCOn1=!0,this.onChoosePlanContinueCta()):"/motor-insurance-calculator-journey/personal-information"==s&&(this.stepShow("summary"),this.Continue="Pay",this.payCOn2=!0,this.payCOn1=!1,this.onPersonalInfromationContinueCta())}onChoosePlanContinueCta(){this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,L.p)(v=>!!v)).subscribe(v=>{this.postDataQuoteId=v?.postDataQuoteId?.postDataQuoteId||v?.postDataQuoteId?.postDataQuoteId?.postDataQuoteId,this.quotationId=v?.quotationDialog?.quotationId||""})),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,L.p)(v=>!!v)).subscribe(v=>{this.posPolicyNo=v.posPolicyQuoteNo,this.productName=v.productName||""})),this.motorJourneyRepository.saveCustomerDetails({quotationId:this.quotationId||this.posPolicyNo}),this.journeyHomeService.smsQuotationID({QuotationNumber:this.quotationId||this.posPolicyNo,MobileNumber:this.ownerPhoneNo,InsuranceType:this.productName}).subscribe(v=>{this.router.navigateByUrl("/motor-insurance-calculator-journey/personal-information")});let s=this.router?.url,u="";"/motor-insurance-calculator-journey/choose-plans"==s?.toLocaleLowerCase()||s?.toLocaleLowerCase()?.includes("choose-plan"),this.postDataQuoteId?this.journeyHomeService.updateQuotationData("personal-information",this.postDataQuoteId,this.quotationId||this.posPolicyNo).subscribe(v=>{this.motorJourneyRepository.savePostDataQuoteId({postDataQuoteId:this.postDataQuoteId}),this.saveChoosePlanData(this.postDataQuoteId)}):(this.journeyHomeService.postQuotationData("choose-plan").subscribe(v=>{this.postDataQuoteId=v?.id,this.motorJourneyRepository.savePostDataQuoteId({postDataQuoteId:this.postDataQuoteId}),this.saveChoosePlanData(this.postDataQuoteId)}),this.router.navigateByUrl("/motor-insurance-calculator-journey/personal-information"))}onPersonalInfromationContinueCta(){this.journeyHomeService.savePersonalInfo.next(!0),this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,L.p)(s=>!!s),(0,Ie.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(u=>{})}))}initQuotationDialog(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.pipe((0,L.p)(s=>!!s)).subscribe(s=>{this.quotationDialogDtls=s,this.ownerPhoneNo=s.vehicleOwnerMobileNumber?s.vehicleOwnerMobileNumber:"--"}))}initActiveProductPlan(){this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,L.p)(v=>!!v)).subscribe(v=>{this.de_Terrif_discount=v.deTariffDiscount,this.de_Terrif_loading=v.deTariffLoading,this.productPlan=v,v.coverDiscounts?.forEach(z=>{}),this.finalPremium=parseInt(this.productPlan.finalPremium)}))}initOwnerDetails(){this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,L.p)(s=>!!s)).subscribe(s=>{this.proposalData=s}))}initVehicleDetails(){this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.pipe((0,L.p)(s=>!!s)).subscribe(s=>{this.ownerDetails=s||"--",this.vehicleDetails=s||"--"}))}initCKYCDetails(){this.subscription.add(this.motorJourneyCkycRepository.motorJourneyckyc$.pipe((0,L.p)(s=>!!s)).subscribe(s=>
1{this.ckycDetails=s||"--"}))}initCoverDiscount(){this.subscription.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,L.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:""}),X(this.ckycDetails.dob).format("MM/DD/YYYY");let v=X(new Date).format("DD/MM/YYYY"),y=X(new Date((new Date).setFullYear((new Date).getFullYear()+1))).format("DD/MM/YYYY");const T=new Date;let Z,re,z=new Date(T.setDate(T.getDate())).toISOString();if(z=X(z).format("DD/MM/YYYY"),"old"==this.proposalData.quotationDialog.vehicleSelection)if(1==this.proposalData?.previousPolicyDialog?.breakIn&&"MotorTwoWheeler"===this.proposalData?.quotationDialog?.journeyName){let h=new Date((new Date).setFullYear((new Date).getFullYear()+1));Z=X(h).add(0,"days").format("DD/MM/YYYY")}else{let h=X(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD/MM/YYYY").format("YYYY-MM-DD[T]HH:mm:ss"),F=new Date(new Date(h).setFullYear(new Date(h).getFullYear()+1));if(Z=X(F).subtract(0,"days").format("DD/MM/YYYY"),"Invalid date"==Z){let l=new Date((new Date).setFullYear((new Date).getFullYear()+1));Z=X(l).subtract(1,"days").format("DD/MM/YYYY")}}else if("MOTOR - MOTOR PRIVATE CAR - BUNDLED"===this.productPlan.productName){let h=new Date((new Date).setFullYear((new Date).getFullYear()+3));Z=X(h).subtract(1,"days").format("DD/MM/YYYY")}else if("MOTOR - MOTOR TWO WHEELER  - BUNDLED"===this.productPlan.productName){let h=new Date((new Date).setFullYear((new Date).getFullYear()+5));Z=X(h).subtract(1,"days").format("DD/MM/YYYY")}"old"==this.proposalData.quotationDialog.vehicleSelection&&(1==this.proposalData?.previousPolicyDialog?.breakIn&&"MotorTwoWheeler"===this.proposalData?.quotationDialog?.journeyName?(this.policyStartDate=new Date(T.setDate(T.getDate()+1)).toISOString(),this.policyStartDate=X(this.policyStartDate).format("DD/MM/YYYY")):(re=X(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD/MM/YYYY").format("YYYY-MM-DD[T]HH:mm:ss"),re=X(re).add(1,"days").format("DD/MM/YYYY"),this.policyStartDate=re,"Invalid date"==this.policyStartDate&&(this.policyStartDate=new Date(T.setDate(T.getDate()+1)).toISOString(),this.policyStartDate=X(this.policyStartDate).format("DD/MM/YYYY"))));let le=X(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD-MM-YYYY").add(1,"days");le=X(le).subtract(1,"days").format("DD/MM/YYYY");let Fe,De=X(this.proposalData.previousPolicyDialog?.previousPolicyEndDate,"DD-MM-YYYY").subtract(1,"years");De=X(De).add(1,"days").format("DD/MM/YYYY"),this.journeyRestService.loadProposalPlanDataBlaze({CustomerType:"Individual",CustomerName:null!=this.ckycDetails.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_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.productC
1ode.productCode,NomineeName:this.ownerDetails.rc_nominee_name||"",NomineeRelation:this.ownerDetails.rc_nominee_relation||"",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:z||"",proposalDateStart:this.policyStartDate?this.policyStartDate:"",proposalDateEnd:Z||"",Fromdate:v,Todate:y,PolicyEffectiveTo:le,PolicyEffectiveFrom:De,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,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||""}),this.subscriptions.add(this.motorJourneyRepository.costSummaryData$.pipe((0,L.p)(h=>!!h)).subscribe(h=>{Fe=h}))}saveChoosePlanData(s){let u;this.motorJourneyRepository.motorJourney$.subscribe(y=>u=y);let v={insurancePlanMasterID:0,insurerMasterID:u.quotationDialog.insurerMasterID,planType:this.productPlan.productName,idV_Value:u.choosePlanData.selectedIDVValue.toString(),quotationID:u.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:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),vld_Alt_PA_Cvr_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),vld_Alt_GPA_Cvr_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),paCvrUndHirer_Flag:u?.otherAddonData?.length>0&&!!u?.otherAddonData.find(y=>"ELECTRICAL ACCESSORY OD"===y.name),paCvrUndHirer_SumIns:u?.otherAddonData?.length>0&&u?.otherAddonData.find(y=>"ELECTRICAL ACCESSORY OD"===y.name)?.sumInsured||0,paCvrUndHirer_Prm:u?.otherAddonData?.length>0&&u?.otherAddonData.find(y=>"ELECTRICAL ACCESSORY OD"===y.name)?.premium||0,adnlAcs_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),adnlAcs_SumIns:0,adnlAcs_Prm:0,namedPACover_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),namedPACover_SumIns:0,namedPACover_Prm:0,undPACover_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),undPACover_SumIns:0,undPACover_Prm:0,paidDriver_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),paidDriver_SumIns:0,paidDriver_Prm:0,empofIns_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),empofIns_SumIns:0,empofIns_Prm:0,rallyOD_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),rallyOD_SumIns:0,rally_Prm:0,rallyTP_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),rallyTP_SumIns:0,rallyTP_Prm:0,cngKit_TP_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),cngKit_TP_SumIns:0,cngKit_TP_Prm:0,lpgKit_TP_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),lpgKit_TP_SumIns:0,lpgKit_TP_Prm:0,cngKit_OD_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),cngKit_OD_SumIns:0,cngKit_OD_Prm:0,lpgKit_OD_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),lpgKit_OD_SumIns:0,lpgKit_OD_Prm:0,elcAcs_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),elcAcs_SumIns:0,elcAcs_Prm:0,nonElcAcs_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),nonElcAcs_SumIns:0,nonElcAcs_Prm:0,paCvrOwn_Driver_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),paCvrOwn_Driver_SumIns:0,paCvrOwn_Driver_Prm:0,fbGlsFTank_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),fbGlsFTank_SumIns:0,fbGlsFTank_Prm:0,geoExtns_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),geoExtns_SumIns:0,geoExtns_Prm:0,anTftDvc_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),anTftDvc_SumIns:0,anTftDvc_Prm:0,handicapped_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),handicapped_SumIns:0,handicapped_Prm:0,ambAscDisc_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),ambAscDisc_SumIns:0,ambAscDisc_Prm:0,ltdOwnPms_OD_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),ltdOwnPms_OD_SumIns:0,ltdOwnPms_OD_Prm:0,ltdOwnPms_TP_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),ltdOwnPms_TP_SumIns:0,ltdOwnPms_TP_Prm:0,tppdDisc_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),tppdDisc_SumIns:0,tppdDisc_Prm:0,vlExsDisc_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),vlExsDisc_SumIns:0,vlExsDisc_Prm:0,scDisc_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),scDisc_SumIns:0,scDisc_Prm:0,drvTuition_OD_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),drvTuition_OD_SumIns:0,drvTuition_OD_Prm:0,drvTuition_TP_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),drvTuition_TP_SumIns:0,drvTuition_TP_Prm:0,tftConvRisk_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),tftConvRisk_SumIns:0,tftConvRisk_Prm:0,impVhlCDuty_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.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:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),adn_DCAllowance:0,adn_TyreCover:0,adn_AcdHspt:0,adn_WFCover:0,adn_LOfPBlg:0,vlnDuc_Flag:u?.selectedAdditionalCoverAndDiscount?.length>0&&!!u?.selectedAdditionalCoverAndDiscount.find(y=>"Other OD"===y.name),vlnDucAmt:0};this.transactionService.postPlanMasterData(v).subscribe(y=>console.log(y))}policyEndDate(){let s=(new Date).getMonth(),u=new Date((new Date).setFullYear((new Date).getFullYear()+3));return`${u.setDate(u.getDate()+1)}/${s}/${u}`}dateConvertToYear(s){const[u,v,y]=s?.split("/");return`${y}`}openRegistrationPopup(){this.modalService.show(Be.T,Object.assign({class:"edit-claim-popup modal
1-lg",backdrop:"static"}))}surveillancePopup(){this.modalService.show(Me.d,Object.assign({class:"surveillance-popup modal-lg",backdrop:"static"}))}journeyLeavingPopup(){this.modalService.show(Ce.Q,Object.assign({class:"journey-leaving-popup modal-lg",backdrop:"static"}))}openCallMePopup(){this.bsmodelRef=this.modalService.show(we.O,Object.assign({class:"callme-popup",backdrop:"static"}))}leftPanelDetailCard(){this.bsmodelRef=this.modalService.show(te.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"}]}}}}))}openPaymentSuccessfulPopup(){this.modalService.show(xe.E,Object.assign({paymentDetails:this.paymentDetails,class:"payment-successful-popup modal-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(Qe.p,Object.assign({paymentDetails:this.paymentDetails,class:"cost-summary-popup",backdrop:"static"}))}checkVCModelNoAdrilaApi(){if(this.InsertUserLogs({Name:this.ckycDetail
1s?.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 v={rc_no:this.VehicleData?.vehicleNumber,consent:"Y",rc_source:"ONLINE",waappcode:"30000143",wacode:"20000141"};this.journeyAadrilaService.CKYCTokenWeb().subscribe(y=>{"Y"==y?.Flag&&(this.journeyAadrilaService.setBootstrap(y.Cst,y.VidBe,y.ExpiresInMs,y.nonce),this.journeyAadrilaService.postAadrillaDataWeb(v,y?.Token).subscribe(T=>{if(T?.data){let z=T?.data?.rc_vch_catg;if("LMV"===z||"2WN"==z){if(1==((T?.data?.rc_owner_first_name?.split(" ")?T?.data?.rc_owner_first_name?.split(" "):"")[0]?.toLowerCase()===this.ckycDetails?.firstName?.toLowerCase())){let le=T?.data?.pass_id_data[0]?.make_id,De=T?.data?.pass_id_data[0]?.model_id,Fe=this.proposalData?.vehicleDetailsDialog?.brandId,h=this.proposalData?.vehicleDetailsDialog?.variantId;le==Fe&&De==h?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.")},T=>{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(Xe.h,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static",keyboard:!1,initialState:{textDescription:s}}))}InsertUserLogs(s){var u="Unknown OS";-1!=navigator.userAgent.indexOf("Win")&&(u="Windows"),-1!=navigator.userAgent.indexOf("Mac")&&(u="Macintosh"),-1!=navigator.userAgent.indexOf("Linux")&&(u="Linux"),-1!=navigator.userAgent.indexOf("Android")&&(u="Android"),-1!=navigator.userAgent.indexOf("like Mac")&&(u="iOS"),this._commonSrc.InsertUserLogs({Name:s?.Name,Email:s?.Email?s?.Email:"",MobileNumber:s?.MobileNumber?s?.MobileNumber:"",OperatingSystem:u,BrowserIP:this.pubIPaddress?this.pubIPaddress:"",AddressNetwork:s?.AddressNetwork?s?.AddressNetwork:"",NetworkProvider:"Website Continue",AgentType:s?.AgentType?s?.AgentType:""}).subscribe(y=>{})}getPIPAdd(){this._commonSrc.getPublicIPAddress().subscribe(s=>{this.pubIPaddress=s?.ip})}checkVCTypeWithChassinNO(){const s={WACode:"20000141",WAAppCode:"30000143",regnNo:this.VehicleData?.vehicleNumber?this.VehicleData?.vehicleNumber.toUpperCase():"",chasiNo:this.ownerDetails?.rc_chasi_no};this._commonSrc.vahanAPIWithChassinNO(s).subscribe(u=>{"Motor Car"==u?.vehicleClass||"M-Cycle/Scooter"==u?.vehicleClass||"new"==this.VehicleData?.vehicleSelection?this.normalJourneyPayCta():this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")})}static{this.\u0275fac=function(u){return new(u||_)(r.rXU(He.I),r.rXU(tt.I8),r.rXU(ot.ml),r.rXU(We.Mq),r.rXU(it.WM),r.rXU(Ne.CH),r.rXU(Y.L),r.rXU(be.h),r.rXU(Ke.k),r.rXU(ze.i),r.rXU(nt.ts),r.rXU(M.Ix))}}static{this.\u0275cmp=r.VBU({type:_,selectors:[["app-motor-insurance-calculator-journey"]],decls:137,vars:44,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"],[1,"d-flex","align-items-center"],["aria-controls","collapseBasic",1,"down-icon","ml-2","cursor",3,"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"],[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,"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"]],template:function(u,v){if(1&u){const y=r.RV6();r.DNE(0,rt,1,2,"ngx-loading",2)(1,st,2,1,"ng-template",null,0,r.C5r)(3,Q,1,2,"ngx-loading",2)(4,at,2,1,"ng-template",null,1,r.C5r),r.j41(6,"header",3)(7,"div",4)(8,"div",5)(9,"a",6),r.nrm(10,"img",7),r.k0s(),r.j41(11,"h6",8),r.EFF(12),r.k0s(),r.j41(13,"div",9)(14,"button",10),r.bIt("click",function(){return r.eBV(y),r.Njj(v.openCallMePopup())}),r.EFF(15," Call Me "),r.k0s()()()(),r.j41(16,"div",11)(17,"div",5)(18,"div",12)(19,"a",13),r.nrm(20,"img",7),r.k0s()(),r.j41(21,"a",14),r.nrm(22,"img",15),r.k0s()()()(),r.j41(23,"div",16)(24,"div",17),r.EFF(25),r.k0s()(),r.j41(26,"section",18)(27,"div",19)(28,"div",20)(29,"div",21)(30,"div",22),r.EFF(31,"Steps -"),r.k0s(),r.j41(32,"div",23)(33,"div",24)(34,"div",25)(35,"span",26),r.EFF(36,"1"),r.k0s(),r.j41(37,"figure",27),r.nrm(38,"img",28),r.k0s()(),r.j41(39,"div",29)(40,"span"),r.EFF(41,"Basic Details"),r.k0s(),r.j41(42,"figure",30),r.nrm(43,"img",31),r.k0s()()(),r.j41(44,"div",32)(45,"div",33)(46,"div",25)(47,"span",34),r.EFF(48," 2"),r.k0s(),r.j41(49,"figure",27),r.nrm(50,"img",28),r.k0s()(),r.j41(51,"div",35)(52,"span",36),r.EFF(53,"Choose Plan "),r.j41(54,"figure",37),r.bIt("click",function(){return r.eBV(y),r.Njj(v.stepShow("choosePlans"))}),r.nrm(55,"img",38),r.k0s()(),r.j41(56,"figure",39),r.bIt("click",function(){return r.eBV(y),r.Njj(v.stepShow("choosePlans"))}),r.nrm(57,"img",31),r.k0s()()(),r.j41(58,"div",40)(59,"div",41)(60,"div",42)(61,"div",43)(62,"div",44)(63,"div",45),r.DNE(64,lt,2,0,"span",46)(65,Ue,2,0,"span",46)(66,Ze,2,0,"span",47)(67,ct,2,0,"span",48)(68,dt,2,0,"span",48),r.k0s()(),r.j41(69,"div",49),r.DNE(70,mt,2,0,"div",50)(71,ut,2,0,"div",50),r.k0s()()(),r.DNE(72,ft,7,1,"div",51),r.j41(73,"div",52)(74,"div",20)(75,"div",53)(76,"div",54),r.EFF(77,"Total Premium: "),r.k0s()(),r.j41(78,"div",55)(79,"div",54),r.EFF(80),r.nI1(81,"customIndianCurrency"),r.k0s()()()()()()(),r.j41(82,"div",56)(83,"div",33)(84,"div",25)(85,"span",26),r.EFF(86,"3"),r.k0s(),r.j41(87,"figure",27),r.nrm(88,"img",28),r.k0s()(),r.j41(89,"div",35)(90,"span",57),r.EFF(91,"Personal Information "),r.j41(92,"figure",58),r.nrm(93,"img",38),r.k0s()(),r.j41(94,"figure",30),r.nrm(95,"img",31),r.k0s()()(),r.j41(96,"div",59)(97,"div",41)(98,"div",60)(99,"div",61),r.EFF(100,"For Your Vehicle: "),r.k0s(),r.nrm(101,"div",62),r.j41(102,"div",20)(103,"div",63)(104,"figure",64),r.DNE(105,Dt,1,0,"img",65),r.k0s(),r.j41(106,"figure",64),r.DNE(107,vt,1,0,"img",66),r.k0s()(),r.j41(108,"div",67)(109,"div",68),r.EFF(110),r.k0s(),r.nrm(111,"div",68),r.k0s()(),r.DNE(112,bt,5,2,"div",69),r.k0s(),r.j41(113,"div",52)(114,"div",20)(115,"div",67)(116,"div",54),r.EFF(117,"Total Premium: "),r.k0s()(),r.j41(118,"div",70)(119,"div",54),r.EFF(120),r.nI1(121,"customIndianCurrency"),r.k0s()()()()()()(),r.j41(122,"div",71)(123,"div",25)(124,"span",26),r.EFF(125,"4"),r.k0s(),r.j41(126,"figure",27),r.nrm(127,"img",28),r.k0s()(),r.j41(128,"div",35)(129,"span"),r.EFF(130,"Payment"),r.k0s(),r.j41(131,"figure",30),r.nrm(132,"img",31),r.k0s()()()()(),r.j41(133,"div",72)(134,"div",73),r.nrm(135,"router-outlet"),r.k0s()()()()(),r.DNE(136,D,12,3,"div",74)}
12&u&&(r.Y8G("ngIf","MotorPrivateCar"===v.journeyName),r.R7$(3),r.Y8G("ngIf","MotorTwoWheeler"===v.journeyName),r.R7$(9),r.SpI(" ",v.showHeading?"Four-Wheeler Insurance":"Two-Wheeler Insurance"," "),r.R7$(13),r.JRh(v.showHeading?"Four-Wheeler Insurance":"Two-Wheeler Insurance"),r.R7$(14),r.Y8G("routerLink",r.lJ4(37,$e))("replaceUrl",!0),r.R7$(5),r.Y8G("ngClass",v.isCompC),r.R7$(3),r.Y8G("routerLink",r.lJ4(38,Ge)),r.R7$(5),r.Y8G("routerLink",r.lJ4(39,Ge)),r.R7$(2),r.Y8G("ngClass",r.eq3(40,qe,v.isCollapsed)),r.BMQ("aria-expanded",!v.isCollapsed),r.R7$(4),r.Y8G("collapse",v.isCollapsed)("isAnimated",!0),r.R7$(6),r.Y8G("ngIf","MotorTwoWheeler"==v.journeyName||null==v.journeyName),r.R7$(),r.Y8G("ngIf","MotorPrivateCar"==v.journeyName),r.R7$(),r.Y8G("ngIf",null==v.productCardId||"2311"==v.productCardId||"2367"==v.productCardId||"2369"==v.productCardId||"2312"==v.productCardId),r.R7$(),r.Y8G("ngIf","2319"==v.productCardId||"2320"==v.productCardId),r.R7$(),r.Y8G("ngIf","2398"==v.productCardId||"2397"==v.productCardId),r.R7$(2),r.Y8G("ngIf","MotorTwoWheeler"==v.journeyName||null==v.journeyName),r.R7$(),r.Y8G("ngIf","MotorPrivateCar"==v.journeyName),r.R7$(),r.Y8G("ngIf",null!=v.gstAmtStatus),r.R7$(8),r.SpI(" ",r.bMT(81,33,v.costSummary[9].info),"/- "),r.R7$(2),r.Y8G("ngClass",v.isCompP),r.R7$(10),r.Y8G("ngClass",r.eq3(42,qe,v.isCollapsed2)),r.BMQ("aria-expanded",!v.isCollapsed2),r.R7$(4),r.Y8G("collapse",v.isCollapsed2)("isAnimated",!0),r.R7$(9),r.Y8G("ngIf","MotorTwoWheeler"==v.journeyName||null==v.journeyName),r.R7$(2),r.Y8G("ngIf","MotorPrivateCar"==v.journeyName),r.R7$(3),r.SpI(" ",null==v.VehicleData?null:v.VehicleData.vehicleNumber," "),r.R7$(2),r.Y8G("ngForOf",v.costSummary),r.R7$(8),r.SpI(" ",r.bMT(121,35,v.costSummary[9].info),"/- "),r.R7$(16),r.Y8G("ngIf",!v.breakInCase))},dependencies:[O.YU,O.Sq,O.bT,M.n3,M.Wk,Te.D,oe.xm,Le.bt,ke.G]})}}return _})(),children:[{path:"",loadChildren:()=>Promise.resolve().then(m.bind(m,16230)).then(_=>_.MotorChoosePlansModule)},{path:"choose-plans",loadChildren:()=>Promise.resolve().then(m.bind(m,16230)).then(_=>_.MotorChoosePlansModule)},{path:"personal-information",loadChildren:()=>Promise.resolve().then(m.bind(m,99966)).then(_=>_.MotorPersonalInformationModule)},{path:"summary",loadChildren:()=>Promise.resolve().then(m.bind(m,85529)).then(_=>_.MotorSummaryModule)}]}];let f=(()=>{class _{static{this.\u0275fac=function(u){return new(u||_)}}static{this.\u0275mod=r.$C({type:_})}static{this.\u0275inj=r.G2t({imports:[M.iI.forChild(d),M.iI]})}}return _})();var p=m(89417),V=m(5452),R=m(85529),H=m(16230),he=m(99966);let Ee=(()=>{class _{static{this.\u0275fac=function(u){return new(u||_)}}static{this.\u0275mod=r.$C({type:_})}static{this.\u0275inj=r.G2t({imports:[O.MD,f,H.MotorChoosePlansModule,he.MotorPersonalInformationModule,R.MotorSummaryModule,p.YN,p.X1,V.PluginsModule]})}}return _})()},99966:(Mt,Oe,m)=>{m.r(Oe),m.d(Oe,{MotorPersonalInformationModule:()=>Fe});var O=m(60177),M=m(46359),e=m(54438),L=m(18359),B=m(91484),t=m(54005),I=m(89417),J=m(63620),Ie=m(1807),Ne=m(5964),we=m(25558),o=m(97586),Ce=m(10444),te=m(94982),Re=m(18389),xe=m(46145),Me=m(80267),Be=m(19549),X=(m(45312),m(95613)),Qe=m(23102),Je=m(50779),et=m(70482),Xe=m(32374),r=m(71780),He=m(60040),tt=m(51451),ot=m(33802),We=m(32709),it=m(5553);const Y=h=>({"form-group-error":h}),be=()=>({dateInputFormat:"DD-MM-YYYY",showWeekNumbers:!1}),Ke=(h,F)=>[h,F],ze=h=>({display:h});function nt(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Email ID"),e.k0s())}function Te(h,F){1&h&&(e.j41(0,"span"),e.EFF(1,"(Enter Reference Number)"),e.k0s())}function oe(h,F){if(1&h){const l=e.RV6();e.j41(0,"input",87),e.bIt("keyup",function(){e.eBV(l);const i=e.XpG();return e.Njj(i.ckycValidation())}),e.k0s()}}function Le(h,F){if(1&h){const l=e.RV6();e.j41(0,"input",88),e.bIt("keyup",function(){e.eBV(l);const i=e.XpG();return e.Njj(i.ckycValidation())}),e.k0s()}}function ke(h,F){1&h&&(e.j41(0,"small",89),e.EFF(1,"Invalid ID Number"),e.k0s())}function $e(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter First Name"),e.k0s())}function Ge(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Middle Name"),e.k0s())}function qe(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Last Name"),e.k0s())}function rt(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Email ID"),e.k0s())}function st(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Mobile Number"),e.k0s())}function Q(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your Marital Status"),e.k0s())}function at(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Registered Address"),e.k0s())}function lt(h,F){if(1&h&&(e.j41(0,"small",90),e.EFF(1),e.k0s()),2&h){const l=e.XpG();e.Y8G("ngStyle",e.eq3(2,ze,l.pincodeErrorMsgRegistered?"block":"")),e.R7$(),e.JRh(l.pincodeErrorMsgRegistered?"Entered Pincode is not val
1id":"Please Enter Your Pincode")}}function Ue(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your State"),e.k0s())}function Ze(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your City"),e.k0s())}function ct(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Address"),e.k0s())}function dt(h,F){if(1&h&&(e.j41(0,"small",90),e.EFF(1),e.k0s()),2&h){const l=e.XpG();e.Y8G("ngStyle",e.eq3(2,ze,l.pincodeErrorMsgOwner?"block":"")),e.R7$(),e.JRh(l.pincodeErrorMsgOwner?"Entered Pincode is not valid":"Please Enter Your Pincode")}}function mt(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your State"),e.k0s())}function ut(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your City"),e.k0s())}function pt(h,F){1&h&&(e.j41(0,"small",89),e.EFF(1,"Invalid State"),e.k0s())}function ht(h,F){1&h&&(e.j41(0,"small",89),e.EFF(1,"Invalid Mid Value."),e.k0s())}function gt(h,F){1&h&&(e.j41(0,"small",89),e.EFF(1,"Invalid Rto No."),e.k0s())}function ft(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Registration Number"),e.k0s())}function Dt(h,F){1&h&&(e.j41(0,"small",89),e.EFF(1,"Please enter a valid Registration number."),e.k0s())}function vt(h,F){if(1&h){const l=e.RV6();e.j41(0,"div",65)(1,"div",9)(2,"label",33),e.EFF(3,"Registration Number "),e.j41(4,"span",11),e.EFF(5,"*"),e.k0s()(),e.j41(6,"div",91),e.nrm(7,"input",92)(8,"input",93),e.j41(9,"input",94),e.bIt("keyup",function(){e.eBV(l);const i=e.XpG();return e.Njj(i.checkValidMidValidations())}),e.k0s(),e.j41(10,"input",95),e.bIt("keyup",function(){e.eBV(l);const i=e.XpG();return e.Njj(i.checkCommonValidations())}),e.k0s()(),e.DNE(11,pt,2,0,"small",24)(12,ht,2,0,"small",24)(13,gt,2,0,"small",24)(14,ft,2,0,"small",13)(15,Dt,2,0,"small",24),e.k0s()()}if(2&h){let l,g;const i=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(10,Y,(null==(l=i.personalInformation.get("ownerRegistrationNo"))?null:l.invalid)&&((null==(l=i.personalInformation.get("ownerRegistrationNo"))?null:l.dirty)||(null==(l=i.personalInformation.get("ownerRegistrationNo"))?null:l.touched)))),e.R7$(6),e.Y8G("readonly",i.vehicleNo&&i.state),e.R7$(),e.Y8G("readonly",(i.vehicleNo||i.rtoNoDisable)&&i.rtoNo),e.R7$(),e.Y8G("readonly",(i.vehicleNo||i.rtoNoDisable)&&i.vehicleMidNo),e.R7$(),e.Y8G("readonly",i.vehicleNo&&i.vehicleLastNo),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==(g=i.personalInformation.get("ownerRegistrationNo"))?null:g.errors)&&((null==(g=i.personalInformation.get("ownerRegistrationNo"))?null:g.dirty)||(null==(g=i.personalInformation.get("ownerRegistrationNo"))?null:g.touched))
1),e.R7$(),e.Y8G("ngIf",i.errorMsgForVehicle)}}function yt(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Chasis Number"),e.k0s())}function Ct(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Engine Number"),e.k0s())}function bt(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Previous Policy Number"),e.k0s())}function D(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your ownerPreviousPolicyCompany"),e.k0s())}function W(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your Previous Policy End Date"),e.k0s())}function d(h,F){1&h&&(e.j41(0,"label",108),e.EFF(1," Liability "),e.nrm(2,"input",109)(3,"span",43),e.k0s())}function f(h,F){1&h&&(e.j41(0,"label",41),e.EFF(1," SAOD "),e.nrm(2,"input",110)(3,"span",43),e.k0s())}function p(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your Previous Policy Type"),e.k0s())}function V(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your ncbValue"),e.k0s())}function R(h,F){if(1&h&&(e.j41(0,"div",4)(1,"div",63),e.EFF(2," Previous Policy Details "),e.k0s(),e.j41(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"label",33),e.EFF(8,"Previous Policy Number "),e.j41(9,"span",11),e.EFF(10,"*"),e.k0s()(),e.nrm(11,"input",96),e.DNE(12,bt,2,0,"small",13),e.k0s()(),e.j41(13,"div",8)(14,"div",50)(15,"label",10),e.EFF(16,"Previous Policy Company "),e.j41(17,"span",11),e.EFF(18,"*"),e.k0s()(),e.nrm(19,"ngx-select",97),e.DNE(20,D,2,0,"small",13),e.k0s()(),e.j41(21,"div",8)(22,"div",98)(23,"label",33),e.EFF(24,"Previous Policy End Date "),e.j41(25,"span",11),e.EFF(26,"*"),e.k0s()(),e.j41(27,"div",99),e.nrm(28,"img",16)(29,"input",100),e.k0s(),e.DNE(30,W,2,0,"small",13),e.k0s()()(),e.j41(31,"div",7)(32,"div",101)(33,"div",38)(34,"label",102),e.EFF(35,"Previous Policy Type "),e.j41(36,"span",11),e.EFF(37,"*"),e.k0s()(),e.j41(38,"div",40),e.DNE(39,d,4,0,"label",103),e.j41(40,"label",104),e.EFF(41," Comprehensive "),e.nrm(42,"input",105)(43,"span",43),e.k0s(),e.DNE(44,f,4,0,"label",106),e.k0s(),e.DNE(45,p,2,0,"small",13),e.k0s()(),e.j41(46,"div",8)(47,"div",60)(48,"label",33),e.EFF(49,"NCB Value "),e.j41(50,"span",11),e.EFF(51,"*"),e.k0s()(),e.nrm(52,"ngx-select",107),e.DNE(53,V,2,0,"small",13),e.k0s()()()()()),2&h){let l,g,i,b,n,a,c,C,k,w;const P=e.XpG();e.R7$(6),e.Y8G("ngClass",e.eq3(15,Y,(null==(l=P.personalInformation.get("ownerPreviousPolicyNo"))?null:l.invalid)&&((null==(l=P.personalInformation.get("ownerPreviousPolicyNo"))?null:l.dirty)||(null==(l=P.personalInformation.get("ownerPreviousPolicyNo"))?null:l.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(g=P.personalInformation.get("ownerPreviousPolicyNo"))?null:g.errors)&&((null==(g=P.personalInformation.get("ownerPreviousPolicyNo"))?null:g.dirty)||(null==(g=P.personalInformation.get("ownerPreviousPolicyNo"))?null:g.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(17,Y,(null==(i=P.personalInformation.get("ownerPreviousPolicyCompany"))?null:i.invalid)&&((null==(i=P.personalInformation.get("ownerPreviousPolicyCompany"))?null:i.dirty)||(null==(i=P.personalInformation.get("ownerPreviousPolicyCompany"))?null:i.touched)))),e.R7$(5),e.Y8G("items",P.previousPolicyCompany),e.R7$(),e.Y8G("ngIf",(null==(b=P.personalInformation.get("ownerPreviousPolicyCompany"))?null:b.invalid)&&(null==(b=P.personalInformation.get("ownerPreviousPolicyCompany"))?null:b.touched)),e.R7$(2),e.Y8G("ngClass",e.eq3(19,Y,(null==(n=P.personalInformation.get("ownerPreviousPolicyEndDate"))?null:n.errors)&&(null==(n=P.personalInformation.get("ownerPreviousPolicyEndDate"))?null:n.touched))),e.R7$(7),e.Y8G("bsConfig",e.lJ4(21,be)),e.R7$(),e.Y8G("ngIf",(null==(a=P.personalInformation.get("ownerPreviousPolicyEndDate"))?null:a.errors)&&(null==(a=P.personalInformation.get("ownerPreviousPolicyEndDate"))?null:a.touched)),e.R7$(3),e.Y8G("ngClass",e.eq3(22,Y,(null==(c=P.personalInformation.get("ownerPreviousPolicyType"))?null:c.invalid)&&((null==(c=P.personalInformation.get("ownerPreviousPolicyType"))?null:c.dirty)||(null==(c=P.personalInformation.get("ownerPreviousPolicyType"))?null:c.touched)))),e.R7$(6),e.Y8G("ngIf",!(null!=P.ncbDetailsA&&P.ncbDetailsA.isSoad)),e.R7$(5),e.Y8G("ngIf",1==(null==P.ncbDetailsA?null:P.ncbDetailsA.isSoad)),e.R7$(),e.Y8G("ngIf",(null==(C=P.personalInformation.get("ownerPreviousPolicyType"))?null:C.errors)&&((null==(C=P.personalInformation.get("ownerPreviousPolicyType"))?null:C.dirty)||(null==(C=P.personalInformation.get("ownerPreviousPolicyType"))?null:C.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(24,Y,(null==(k=P.personalInformation.get("ownerNcbValue"))?null:k.invalid)&&((null==(k=P.personalInformation.get("ownerNcbValue"))?null:k.dirty)||(null==(k=P.personalInformation.get("ownerNcbValue"))?null:k.touched)))),e.R7$(5),e.Y8G("items",P.ncbValue),e.R7$(),e.Y8G("ngIf",(null==(w=P.personalInformation.get("ownerNcbValue"))?null:w.invalid)&&(null==(w=P.personalInformation.get("ownerNcbValue"))?null:w.touched))}}function H(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter TP Insurer Name"),e.k0s())}function he(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter TP Policy No"),e.k0s())}function Ee(h,F){if(1&h&&(e.j41(0,"div",4)(1,"div",63),e.EFF(2," Previous TP Policy Details "),e.k0s(),e.j41(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",111)(7,"label",33),e.EFF(8,"TP Plan Date From "),e.j41(9,"span",11),e.EFF(10,"*"),e.k0s()(),e.j41(11,"div",99),e.nrm(12,"img",16)(13,"input",112),e.k0s()()(),e.j41(14,"div",8)(15,"div",111)(16,"label",33),e.EFF(17,"TP Plan Date To "),e.j41(18,"span",11),e.EFF(19,"*"),e.k0s()(),e.j41(20,"div",99),e.nrm(21,"img",16)(22,"input",113),e.k0s()()()(),e.j41(23,"div",7)(24,"div",8)(25,"div",60)(26,"label",33),e.EFF(27,"TP Insurer Name "),e.j41(28,"span",11),e.EFF(29,"*"),e.k0s()(),e.nrm(30,"ngx-select",114),e.DNE(31,H,2,0,"small",13),e.k0s()(),e.j41(32,"div",8)(33,"div",9)(34,"label",33),e.EFF(35,"TP Policy No "),e.j41(36,"span",11),e.EFF(37,"*"),e.k0s()(),e.nrm(38,"input",115),e.DNE(39,he,2,0,"small",13),e.k0s()()()()()),2&h){let l,g,i,b;const n=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,Y,(null==(l=n.personalInformation.get("ownerTPInsurerName"))?null:l.invalid)&&((null==(l=n.personalInformation.get("ownerTPInsurerName"))?null:l.dirty)||(null==(l=n.personalInformation.get("ownerTPInsurerName"))?null:l.touched)))),e.R7$(5),e.Y8G("items",n.previousPolicyCompany),e.R7$(),e.Y8G("ngIf",(null==(g=n.personalInformation.get("ownerTPInsurerName"))?null:g.errors)&&((null==(g=n.personalInformation.get("ownerTPInsurerName"))?null:g.dirty)||(null==(g=n.personalInformation.get("ownerTPInsurerName"))?null:g.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(11,Y,(null==(i=n.personalInformation.get("ownerTPPolicyNo"))?null:i.invalid)&&((null==(i=n.personalInformation.get("ownerTPPolicyNo"))?null:i.dirty)||(null==(i=n.personalInformation.get("ownerTPPolicyNo"))?null:i.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(b=n.personalInformation.get("ownerTPPolicyNo"))?null:b.errors)&&((null==(b=n.personalInformation.get("ownerTPPolicyNo"))?null:b.dirty)||(null==(b=n.personalInformation.get("ownerTPPolicyNo"))?null:b.touched)))}}function _(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Your Nominee Name"),e.k0s())}function U(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your Nominee Relation "),e.k0s())}function s(h,F){if(1&h&&(e.j41(0,"div",4)(1,"div",63),e.EFF(2," Nominee Details "),e.k0s(),e.j41(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"label",33),e.EFF(8,"Nominee Name "),e.j41(9,"span",11),e.EFF(10,"*"),e.k0s()(),e.nrm(11,"input",116),e.DNE(12,_,2,0,"small",13),e.k0s()(),e.j41(13,"div",8)(14,"div",60)(15,"label",10),e.EFF(16,"Nominee Relation "),e.j41(17,"span",11),e.EFF(18,"*"),e.k0s()(),e.nrm(19,"ngx-select",117),e.DNE(20,U,2,0,"small",13),e.k0s()()()()()),2&h){let l,g,i,b;const n=e.XpG();e.R7$(6),e.Y8G("ngClass",e.eq3(5,Y,(null==(l=n.personalInformation.get("ownerNomineeName"))?null:l.invalid)&&((null==(l=n.personalInformation.get("ownerNomineeName"))?null:l.dirty)||(null==(l=n.personalInformation.get("ownerNomineeName"))?null:l.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(g=n.personalInformation.get("ownerNomineeName"))?null:g.errors)&&((null==(g=n.personalInformation.get("ownerNomineeName"))?null:g.dirty)||(null==(g=n.personalInformation.get("ownerNomineeName"))?null:g.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(7,Y,(null==(i=n.personalInformation.get("ownerNomineeRelation"))?null:i.invalid)&&((null==(i=n.personalInformation.get("ownerNomineeRelation"))?null:i.dirty)||(null==(i=n.personalInformation.get("ownerNomineeRelation"))?null:i.touched)))),e.R7$(5),e.Y8G("items",n.nomineeRelation),e.R7$(),e.Y8G("ngIf",(null==(b=n.personalInformation.get("ownerNomineeRelation"))?null:b.invalid)&&(null==(b=n.personalInformation.get("ownerNomineeRelation"))?null:b.touched))}}function u(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Select Your choice"),e.k0s())}function v(h,F){1&h&&(e.j41(0,"small",86),e.EFF(1,"Please Enter Loan Provider Name"),e.k0s())}function y(h,F){if(1&h&&(e.j41(0,"div",118)(1,"div",9)(2,"label",10),e.EFF(3,"Loan Provider Name "),e.j41(4,"span",11),e.EFF(5,"*"),e.k0s()(),e.nrm(6,"input",119),e.DNE(7,v,2,0,"small",13),e.k0s()()),2&h){let l,g;const i=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(2,Y,(null==(l=i.personalInformation.get("ownerLoanProviderName"))?null:l.invalid)&&((null==(l=i.personalInformation.get("ownerLoanProviderName"))?null:l.dirty)||(null==(l=i.personalInformation.get("ownerLoanProviderName"))?null:l.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(g=i.personalInformation.get("ownerLoanProviderName"))?null:g.errors)&&((null==(g=i.personalInformation.get("ownerLoanProviderName"))?null:g.dirty)||(null==(g=i.personalInformation.get("ownerLoanProviderName"))?null:g.touched))
1)}}let T=(()=>{class h{constructor(l,g,i,b,n,a,c,C,k,w,P,K,de){this.fb=l,this.modalService=g,this.router=i,this.ngZone=b,this.journeyHomeService=n,this.transactionService=a,this._commonSrc=c,this.motorJourneyRepository=C,this.motorJourneyVehicalDetailsRepository=k,this.motorJourneyOwnerDetailsRepository=w,this.motorJourneyProductPlanRepository=P,this.motorJourneyCkycRepository=K,this.journeyAadrilaService=de,this.isDisabled=!0,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 L.yU,this.subscription=new L.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.datepicketConfig={dateInputFormat:"DD/MM/YYYY",showWeekNumbers:!1},this.preferredCountries=[J.ij.India,J.ij.UnitedStates,J.ij.UnitedKingdom],this.onlyCountries=[J.ij.India],this.PhoneNumberFormat=J.Hr,this.CountryISO=J.ij,this.separateDialCode=!1,this.SearchCountryField=J.XY,this.idType=["PAN Card","Voter ID","Driving License","Passport","Existing CKYC Number","Reference Number"],this.checkAdtrilaCKYCData=!1,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(){this.stateCondition=!0,this.vehicleMidCondition=!0,this.rtoCondition=!0,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,Ne.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 g=this.personalInformation.value.vehicleMidNo?this.personalInformation.value.vehicleMidNo:"",i=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+i+g+this.personalInformation.get("vehicleLastNo")?.value,sessionStorage.setItem("mpc_vehicleNo",this.personalInformation.value.ownerRegistrationNo)),this.motorJourneyVehicalDetailsRepository.setVehicalDetails({rc_owner_ckycEmailId:this.personalInformation.value.ckycEmail,rc_owner_ckycDob:this.personalInformation.value.dob,rc_owner_ckycIdType:this.personalInformation.value.ID_Type,rc_owner_ckycIdNumber:this.personalInformation.value.ID_Number,rc_owner_ckycMobileNumber:this.personalInformation.value.ownerPhone,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:["",I.k0.required],dob:["",I.k0.required],ID_Type:["",I.k0.required],ID_Number:["",I.k0.required],tbConsent:[!1,I.k0.requiredTrue],ownerFirstName:["",[I.k0.required,this.noWhitespaceValidator]],ownerMiddleName:[""],ownerLastName:["",[I.k0.required,this.noWhitespaceValidator]],ownerEmailID:["",I.k0.required],ownerPhone:["",I.k0.required],ownerMaritalStatus:["",I.k0.required],ownerRegisteredAddress:["",I.k0.required],ownerRegisteredAddressPincode:["",I.k0.required],ownerRegisteredAddressState:["",I.k0.required],ownerRegisteredAddressCity:["",I.k0.required],ownerIsCommunicationAddressSame:[!1],ownerCommunicationAddress:["",I.k0.required],ownerCommunicationAddressPincode:["",I.k0.required],ownerCommunicationAddressState:["",I.k0.required],ownerCommunicationAddressCity:["",I.k0.required],ownerRegistrationNo:[{value:""}],ownerChasisNo:[{value:""},I.k0.required],ownerEngineNo:[{value:""},I.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:[""],ownerOptedForLoan:["No"],ownerLoanProviderName:[""],ownerIsAgreeTermsAndConditions:[{value:!0,disabled:!0},I.k0.required],state:[{value:""}],rtoNo:[{value:""}],vehicleMidNo:[{value:""}],vehicleLastNo:[{value:""}],IsPhysicalCopy:[!1]}),setTimeout(()=>{$("#No").prop("checked",!0)},500)}initValidations(){"old"==this.vehicleSelection?(this.personalInformation.controls.state.setValidators([I.k0.required]),this.personalInformation.controls.state.updateValueAndValidity(),this.personalInformation.controls.rtoNo.setValidators([I.k0.required]),this.personalInformation.controls.rtoNo.updateV
1alueAndValidity(),this.personalInformation.controls.vehicleMidNo.setValidators([]),this.personalInformation.controls.vehicleMidNo.updateValueAndValidity(),this.personalInformation.controls.vehicleLastNo.setValidators([I.k0.required]),this.personalInformation.controls.vehicleLastNo.updateValueAndValidity(),this.personalInformation.controls.ownerChasisNo.setValidators([I.k0.required]),this.personalInformation.controls.ownerChasisNo.updateValueAndValidity(),this.personalInformation.controls.ownerEngineNo.setValidators([I.k0.required]),this.personalInformation.controls.ownerEngineNo.updateValueAndValidity()):(this.personalInformation.controls.ownerChasisNo.setValidators([I.k0.required,I.k0.minLength(5)]),this.personalInformation.controls.ownerChasisNo.updateValueAndValidity(),this.personalInformation.controls.ownerEngineNo.setValidators([I.k0.required,I.k0.maxLength(25)]),this.personalInformation.controls.ownerEngineNo.updateValueAndValidity()),"old"==this.vehicleSelection&&"Yes"==this.ncbDetails&&(this.personalInformation.controls.ownerPreviousPolicyNo.setValidators([I.k0.required]),this.personalInformation.controls.ownerPreviousPolicyNo.updateValueAndValidity(),this.personalInformation.controls.ownerPreviousPolicyCompany.setValidators([I.k0.required]),this.personalInformation.controls.ownerPreviousPolicyCompany.updateValueAndValidity(),this.personalInformation.controls.ownerPreviousPolicyEndDate.setValidators([I.k0.required]),this.personalInformation.controls.ownerPreviousPolicyEndDate.updateValueAndValidity(),this.personalInformation.controls.ownerPreviousPolicyType.setValidators([I.k0.required]),this.personalInformation.controls.ownerPreviousPolicyType.updateValueAndValidity(),this.personalInformation.controls.ownerNcbValue.setValidators([I.k0.required]),this.personalInformation.controls.ownerNcbValue.updateValueAndValidity()),"old"==this.vehicleSelection&&"Yes"==this.ncbDetails&&1==this.ncbDetailsA?.isSoad&&(this.personalInformation.controls.owneTpPolicyPlanFromDate.setValidators([I.k0.required]),this.personalInformation.controls.owneTpPolicyPlanFromDate.updateValueAndValidity(),this.personalInformation.controls.owneTpPolicyPlanToDate.setValidators([I.k0.required]),this.personalInformation.controls.owneTpPolicyPlanToDate.updateValueAndValidity(),this.personalInformation.controls.ownerTPInsurerName.setValidators([I.k0.required]),this.personalInformation.controls.ownerTPInsurerName.updateValueAndValidity(),this.personalInformation.controls.ownerTPPolicyNo.setValidators([I.k0.required]),this.personalInformation.controls.ownerTPPolicyNo.updateValueAndValidity()),"No"==this.paCover&&"No"==this.gpaCover&&(this.personalInformation.controls.ownerNomineeName.setValidators([I.k0.required]),this.personalInformation.controls.ownerNomineeName.updateValueAndValidity(),this.personalInformation.controls.ownerNomineeRelation.setValidators([I.k0.required]),this.personalInformation.controls.ownerNomineeRelation.updateValueAndValidity())}noWhitespaceValidator(l){return 0!==(l.value||"").trim().length?null:{whitespace:!0}}Space(l){0===l.target.selectionStart&&"Space"===l.code&&l.preventDefault()}openCkycProcessPopup(l){this.modalService.show(xe.z,Object.assign({class:"term-condition-popup modal-lg",initialState:{ckycUrl:l},backdrop:"static"}))}openCkycCompletedPopup(){this.modalService.show(Me.c,Object.assign({class:"ckyc-completed-popup modal-lg bottom-slide",backdrop:"static"}))}getCkycDetailsOnSubmit(){if(this.idNumberValidate){let n,a;if((0,Ce.G)().forEach(N=>{Re.pQ.reset()}),this.personalInformation.value.dob instanceof Date){n=o(this.personalInformation.value.dob).format("DD-MM-YY");const[N,E,ie]=n.split("-");a=[N,E,ie].join("-").replaceAll("-","")}else if("string"!=typeof this.personalInformation.value.dob){var l=new Date(this.personalInformation.value.dob).getFullYear().toString();n=o(this.personalInformation.value.dob).format("DD-MM");const[N,E]=n.split("-");a=[E,N,l.substr(2,4)].join("")}else{n=this.personalInformation.value.dob.split("-");const N=n[0],E=n[1];a=[N,E,this.personalInformation.value.dob.substr(8,9)].join("");var i=n[2];this.personalInformation.value.dob=[E,N,i].join("-"),this.formDobVal=[N,E,i].join("-")}let c=100,w="WEBONLINE/"+a+"/"+(Math.floor(Math.random()*(999-c+1))+c);this.uniqueNo=w,sessionStorage.setItem("hap_dob",o(this.personalInformation.value.dob).format("DD-MM-YYYY"));let K={source:"WEBONLINE",customerType:"I",uniqueTransactionNumber:w,idType:this.idTypeApi,idNo:this.personalInformation.value.ID_Number,dob:(Date,o(this.personalInformation.value.dob).format("DD-MM-YYYY")),mobileNo:this.mobileNo,pincode:"",cKYCNo:""},j={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(N=>{}),"Reference Number"===this.personalInformation.value.ID_Type)this.journeyHomeService.checkCKYCReturningUser({source:"ONLINE",uniqueTransactionNumber:this.personalInformation.value.ID_Number}).subscribe(E=>
1{if(E){let x={MobileNumber:this.mobileNo,CusomerName:this.vehicleOwnerName};if(E.result)if("True"===E.result.kycVerifiedStatus){this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue();var ge=this.vehicleSelection,Ae=this.vehicleOwnerName.split(" "),Se=E.result.name.split(" "),q=o(E.result.dob).format("DD-MM-YYYY");console.log("Checking DOB:",q,K.dob),"old"==ge&&Ae[0].toUpperCase()===Se[0].toUpperCase()||"new"==ge?(this.openCkycCompletedPopup(),this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:this.personalInformation.value.ID_Number,address1:E.result.address,firstName:E.result.name,pincode:E.result.pincode,city:E.result.city,state:E.result.state,email:E.result.email||this.personalInformation.value.email,dob:E.result.dob,kycVerify:E.result.kycVerifiedStatus,mobileNumber:E.result.mobileNumber||this.mobileNo,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number})):this.ckycMismatchedPopup(),setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}else"False"===E.result.kycVerifiedStatus&&(this.openCkycProcessPopup("https://www.usgi.co.in/p?q=dt5JTMP3Lz"),this.journeyHomeService.SendSMSCKYCUser(x).subscribe(S=>{console.log("CkycSMS",S)},S=>{console.log(S)}),this.journeyHomeService.CKYCUsgiEmailApi(j).subscribe(S=>{console.log("usgiEmailApi",S)},S=>{console.log(S)}));else this.openCkycProcessPopup("https://www.usgi.co.in/p?q=dt5JTMP3Lz"),this.journeyHomeService.SendSMSCKYCUser(x).subscribe(S=>{console.log("CkycSMS",S)},S=>{console.log(S)}),this.journeyHomeService.CKYCUsgiEmailApi(j).subscribe(S=>{console.log("usgiEmailApi",S)},S=>{console.log(S)})}});else{var b=this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue();this.journeyHomeService.checkCKYC(K).subscribe(N=>{if(N)if(N.result.ckycNo){var E=this.vehicleSelection;this.ckycMobileNumber=N.result.mobileNumber,this.ckycNum=N.result.ckycNo;var ie="old"==E?b.rc_f_name?.split(" "):"";ie=ie??"";let q=this.customerDetails?.rc_owner_first_name?.split(" ")?this.customerDetails?.rc_owner_first_name?.split(" "):"";var ge=N.result.firstName,Ae=o(N.result.dob).format("DD-MM-YYYY");if(console.log("Checking DOB:",Ae,K.dob),"old"==E&&ie[0].toUpperCase()===ge.toUpperCase()||"new"==E){let ee=ge?.toUpperCase()===q[0]?.toUpperCase();1==ee?(this.openCkycCompletedPopup(),this.subscription.add(this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({CKYCNumber:N.result.ckycNo,UidNumber:w,address1:N.result.address1,address2:N.result.address2,address3:N.result.address3,pincode:N.result.pincode,city:N.result.city,state:N.result.state,permAndCorresAddSame:N.result.permAndCorresAddSame,corresAddress1:N.result.corresAddress1,corresAddress2:N.result.corresAddress2,corresAddress3:N.result.corresAddress3,corresCity:N.result.corresCity,corresDist:N.result.corresDist,corresState:N.result.corresState,corresCountry:N.result.corresCountry,corresPin:N.result.corresPin,firstName:N.result.firstName,middleName:N.result.middleName,lastName:N.result.lastName,email:N.result.email||this.personalInformation.value.ckycEmail,mobileNumber:N.result.mobileNumber,dob:N.result.dob,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number})),this.subscription.add(this.motorJourneyVehicalDetailsRepository.setVehicalDetails({rc_owner_uniqueKycNumber:N.result.ckycNo,rc_owner_ekycNo:w}))):0==ee&&""!=q&&this.vcModelMismatchedPopup("Your  CKYC details are not matching with your registration number."),""===q?(this.openCkycCompletedPopup(),this.subscription.add(this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({CKYCNumber:N.result.ckycNo,UidNumber:w,address1:N.result.address1,address2:N.result.address2,address3:N.result.address3,pincode:N.result.pincode,city:N.result.city,state:N.result.state,permAndCorresAddSame:N.result.permAndCorresAddSame,corresAddress1:N.result.corresAddress1,corresAddress2:N.result.corresAddress2,corresAddress3:N.result.corresAddress3,corresCity:N.result.corresCity,corresDist:N.result.corresDist,corresState:N.result.corresState,corresCountry:N.result.corresCountry,corresPin:N.result.corresPin,firstName:N.result.firstName,middleName:N.result.middleName,lastName:N.result.lastName,email:N.result.email||this.personalInformation.value.ckycEmail,mobileNumber:N.result.mobileNumber,dob:N.result.dob,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number})),this.subscription.add(this.motorJourneyVehicalDetailsRepository.setVehicalDetails({rc_owner_uniqueKycNumber:N.result.ckycNo,rc_owner_ekycNo:w}))):0==ee&&this.vcModelMismatchedPopup("Your CKYC details are not matching with your registration number.")}else this.ckycMismatchedPopup();setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}else N.result.manualKYCurl&&this.journeyHomeService.checkCKYCUniqueNo(this.idTypeApi,this.personalInformation.value.ID_Number).subscribe(q=>{if(0===q.length){let ee={journeyType:"New",productName:"Motor",ckycui
1d:w,documentType:this.idTypeApi,documentNumber:this.personalInformation.value.ID_Number,name:"old"==E?b.rc_f_name?.split(" "):this.vehicleOwnerName,dob:o(this.personalInformation.value.dob).format("DD-MM-YYYY"),ckycmanualurl:N.result.manualKYCurl};this.journeyHomeService.CKYCUserDataSave(ee).subscribe(S=>{console.log("CKYCUserDataSave",S)},S=>{console.log(S)}),this.subscription.add(this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:w,dob:o(this.personalInformation.value.dob).format("DD-MM-YYYY")})),this.openCkycProcessPopup(N.result.manualKYCurl);let A={mobileNo:this.mobileNo,smsContent:`Dear ${"old"==this.vehicleSelection?b.rc_f_name?.split(" ")[0]:this.vehicleOwnerName} ,Greetings from Universal Sompo General Insurance! Click here ${N.result.manualKYCurl} to complete your KYC. Please ignore if you have completed the KYC.`};const x={auth:{WACode:"20000141",WAAppCode:"30000143",Source:"USGI Website"},subject:"Kindly Complete Your KYC",to:[{email:this.personalInformation.value.ckycEmail,name:"old"==this.vehicleSelection?b.rc_f_name?.split(" ")[0]:this.vehicleOwnerName}],cc:[{email:"None"}],bcc:[{email:"None"}],content:[{type:"html",value:`<p>Hi ${"old"==this.vehicleSelection?b.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 ${N.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(x).subscribe(S=>{console.log("CkycEmail",S)},S=>{console.log(S)}),this._commonSrc.CKYCSendSms(A).subscribe(S=>{console.log("usgiSMSApi",S)},S=>{console.log(S)})}else this.journeyHomeService.checkCKYCReturningUser({source:"ONLINE",uniqueTransactionNumber:q[0].CKYCUID}).subscribe(A=>{if(A)if(A.result)if("True"===A.result.kycVerifiedStatus){var x=this.vehicleOwnerName.split(" "),S=A.result.name,_e=o(A.result.dob).format("DD-MM-YYYY"),fe=K.dob;console.log("Checking DOB:",_e,fe),console.log("Checking Name:",x[0].toUpperCase(),S.toUpperCase()),x[0].toUpperCase()===S.toUpperCase()&&_e===fe?(this.openCkycCompletedPopup(),this.motorJourneyCkycRepository.setMotorJourneyCkycPersonalDetails({UidNumber:q[0].CKYCUID,address1:A.result.address,firstName:A.result.name,pincode:A.result.pincode,city:A.result.city,state:A.result.state,email:A.result.email||this.personalInformation.value.email,dob:A.result.dob,kycVerify:A.result.kycVerifiedStatus,mobileNumber:A.result.mobileNumber||this.mobileNo,idType:this.idTypeApi,idNumber:this.personalInformation.value.ID_Number})):this.ckycMismatchedPopup(),setTimeout(()=>{this.bindPersonalInformationDataToForm()},3e3)}else"False"===A.result.kycVerifiedStatus&&this.openCkycProcessPopup(q[0].CkycManualUrl);else{this.openCkycProcessPopup(q[0].CkycManualUrl);let Ye={mobileNo:this.mobileNo,smsContent:`Dear ${"old"==this.vehicleSelection?b.rc_f_name?.split(" ")[0]:this.vehicleOwnerName} ,Greetings from Universal Sompo General Insurance! Click here ${q[0].CkycManualUrl} to complete your KYC. Please ignore if you have completed the KYC.`};const Ve={auth:{WACode:"20000141",WAAppCode:"30000143",Source:"USGI Website"},subject:"Kindly Complete Your KYC",to:[{email:this.personalInformation.value.ckycEmail,name:"old"==this.vehicleSelection?b.rc_f_name?.split(" ")[0]:this.vehicleOwnerName}],cc:[{email:"None"}],bcc:[{email:"None"}],content:[{type:"html",value:`<p>Hi ${"old"==this.vehicleSelection?b.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 ${q[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-ad
1ded 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(Ve).subscribe(me=>{console.log("CkycEmail",me)},me=>{console.log(me)}),this._commonSrc.CKYCSendSms(Ye).subscribe(me=>{console.log("usgiSMSApi",me)},me=>{console.log(me)}),(0,Ce.G)().forEach(me=>{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-calculator-journey/summary"),this.onSubmitPersonalData()}initFinalPremium(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,Ne.p)(l=>!!l)).subscribe(l=>{this.finalPremium=l.finalPremium}))}initJourneyData(){this.subscriptions.add(this.motorJourneyRepository.motorJourney$.pipe((0,Ne.p)(l=>!!l)).subscribe(l=>{this.vehicleNo=l.quotationDialog.vehicleNumber,this.vehicleSelection=l.quotationDialog.vehicleSelection,this.VehicleNoPresent=l.quotationDialog.VehicleNoPresent,this.vehicleType=l.quotationDialog.vehicleType,this.paCover=l.personalAccidentCover.isAlternatePAC
1overPresent,this.gpaCover=l.personalAccidentCover.isAlternateGPACoverPresent,this.ncbDetailsA=l.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 l;this.motorJourneyRepository.previousPolicyDialog$.subscribe(g=>{this.previousPolicy=g,this.previousNcbValue=g.previousPolicyyNoClaimBonus}),this.subscriptions.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.subscribe(g=>{this.sectionNo=g,("true"===this.VehicleNoPresent||g?.rc_chasi_no)&&(this.ChasisNo=g?.rc_chasi_no,this.EngineNo=g?.rc_eng_no),JSON.stringify(g)!=JSON.stringify(l)&&(l=g,this.customerDetails=g,g&&("Yes"==g?.rc_optedForLoan&&this.personalInformation.controls.ownerLoanProviderName.setValidators([I.k0.required]),this.bindPersonalInformationDataToForm(),setTimeout(()=>{$(`#${g?.rc_optedForLoan}`).prop("checked",!0)},500),g.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,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 l="";if(null!=sessionStorage.getItem("mv_dob")){let i=sessionStorage.getItem("mv_dob");const b=o(i).format("DD-MM-YYYY");if(i instanceof Date&&null!=b){const[n,a,c]=b.split("-");l=[n,a,c].join("-"),sessionStorage.setItem("mv_dob",l)}}let g=sessionStorage.getItem("mv_dob")?sessionStorage.getItem("mv_dob"):"";this.ckycDetails.CKYCNumber?(this.inPutreadonly=!0,this.pincodeReadOnly=!0,this.personalInformation.controls.ownerPhone.disable(),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"):""),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.ckycDetails.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.ckycDetail
1s.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||"",state:this.state||"",rtoNo:this.rtoNo||"",vehicleMidNo:this.vehicleMidNo||"",vehicleLastNo:this.vehicleLastNo||""})):this.ckycDetails.kycVerify?(this.inPutreadonly=!0,this.pincodeReadOnly=!1,this.personalInformation.controls.ownerPhone.disable(),this.personalInformation.patchValue({ckycEmail:this.ckycDetailsNew.rc_owner_ckycEmailId||sessionStorage.getItem("mv_email"),dob:this.ckycDetailsNew.rc_owner_ckycDob||(g||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"),ownerFirstName:this.ckycDetails.firstName,ownerMiddleName:this.ckycDetails.middleName||".",ownerLastName:this.ckycDetails.lastName||".",ownerEmailID:this.ckycDetails.email?this.ckycDetails.email:sessionStorage.getItem("mv_email"),ownerPhone: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||"",ownerRegisteredAddressState:this.ckycDetails.state||this.customerDetails.rc_owner_registered_state,ownerRegisteredAddressCity:this.ckycDetails.city||this.customerDetails.rc_owner_registered_city,ownerIsCommunicationAddressSame:"Y"==this.ckycDetails.permAndCorresAddSame?"true":"false",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||"",state:this.state||"",rtoNo:this.rtoNo||"",vehicleMidNo:this.vehicleMidNo||"",vehicleLastNo:this.vehicleLastNo||""})):this.personalInformation.patchValue({ckycEmail:this.ckycDetail
1sNew.rc_owner_ckycEmailId||sessionStorage.getItem("mv_email"),dob:this.ckycDetailsNew.rc_owner_ckycDob||(g||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:this.customerDetails.rc_owner_first_name,ownerMiddleName:this.customerDetails.rc_owner_middle_name,ownerLastName:this.customerDetails.rc_owner_last_name,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||"",state:this.state||"",rtoNo:this.rtoNo||"",vehicleMidNo:this.vehicleMidNo||"",vehicleLastNo:this.vehicleLastNo||""})}getStatesListRegistered(){this.subscriptions.add(this.journeyHomeService.getStateListCommon().subscribe(l=>{this.StateListRegistered=l},l=>{console.log(l)}))}checkValidMidValidations(){if(this.personalInformation.value.vehicleMidNo){if(1==this.personalInformation.value.vehicleMidNo.length){const l=new RegExp("[a-zA-Z]{1}$");this.vehicleMidCondition=l.test(this.personalInformation.value.vehicleMidNo)}if(this.personalInformation.value.vehicleMidNo.length>1){let l;l=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=l.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.updateValueAndValidity(),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 l;3==this.personalInformation.value.state.length&&(this.errorMsgForVehicle=!1),this.personalInformation.value.state.length<3&&this.personalInformation.value.rtoNo&&(l=this.personalInformation.value.state+this.personalInformation.value.rtoNo),l?this.journeyHomeService.checkVehicleNumberIsValidOrNot({RegionCode:l}).subscribe(i=>{this.errorMsgForVehicle=0==i.length,this.checkCommonValidations()},i=>
1{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("DL"==this.personalInformation.value.state){const l=new RegExp("[0-9]{1}[a-zA-Z0-9]$");this.rtoCondition=l.test(this.personalInformation.value.rtoNo)}else{const l=new RegExp("[0-9]$");this.rtoCondition=l.test(this.personalInformation.value.rtoNo)}}checkStatePattern(){if(this.stateCondition=!0,this.rtoCondition=!0,this.personalInformation.value.state)if(this.personalInformation.value.state.length<3){this.rtoNoDisable=!1;const l=new RegExp("[a-zA-Z]{2}$");this.stateCondition=l.test(this.personalInformation.value.state),"old"==this.vehicleSelection&&(this.personalInformation.controls.rtoNo.setValidators([I.k0.required]),this.personalInformation.controls.rtoNo.updateValueAndValidity())}else if(3===this.personalInformation.value.state.length){const l=new RegExp("[a-zA-Z]{2}[0-9]$");this.stateCondition=l.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,we.n)(l=>this.journeyHomeService.getCityListCommon({StateCode:l}))).subscribe(l=>{this.cityListRegistered=[""];for(let g=0;g<l.length;g++)this.cityListRegistered.push(l[g].CityName)},l=>{console.log(l)}))}getStatesListCommunication(){this.subscriptions.add(this.journeyHomeService.getStateListCommon().subscribe(l=>{this.StateListCommunication=l},l=>{console.log(l)}))}handleStateListValueChangeCommunication(){this.subscriptions.add(this.personalInformation.get("ownerCommunicationAddressState")?.valueChanges.pipe((0,we.n)(l=>this.journeyHomeService.getCityListCommon({StateCode:l}))).subscribe(l=>{this.cityListCommunication=[""];for(let g=0;g<l.length;g++)this.cityListCommunication.push(l[g].CityName)},l=>{console.log(l)}))}CompanyNameList(){this.journeyHomeService.getCompanyName().subscribe(l=>{for(let g=0;g<l.length;g++)this.previousPolicyCompany.push(l[g].COMPANYNAME)},l=>{console.log(l)})}stateListValueChangeRegistered(){this.pincodeErrorMsgRegistered=!1,this.personalInformation.get(["ownerRegisteredAddressState"])?.reset(),this.personalInformation.get(["ownerRegisteredAddressCity"])?.reset(),this.pinCodeRegisterTimer&&this.pinCodeRegisterTimer.unsubscribe(),this.pinCodeRegisterTimer=(0,Ie.O)(1500).subscribe(l=>{this.send_object=this.personalInformation.controls.ownerRegisteredAddressPincode.value,this.journeyHomeService.get_State_City_By_Pincode({PinCodevalue:this.send_object}).subscribe(i=>{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,Ie.O)(1500).subscribe(l=>{this.send_object=this.personalInformation.controls.ownerCommunicationAddressPincode.value,this.journeyHomeService.get_State_City_By_Pincode({PinCodevalue:this.send_object}).subscribe(i=>{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(l){l?(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.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(l=>{this.personalInformation.controls.ownerLoanProviderName.setValidators("Yes"==l?[I.k0.required]:[]),this.personalInformation.controls.ownerLoanProviderName.updateValueAndValidity()}))}onSubmitPersonalData(){let l=this.personalInformation.value.vehicleMidNo?this.personalInformation.value.vehicleMidNo:"",g=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+g+l+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-calculator-journey/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_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||""})}storeTransactionData(){let l;this.motorJourneyRepository.motorJourney$.subscribe(i=>l=i),this.updateOnlyVCNo(this.personalInformation.value.ownerRegistrationNo);let g={personalDetailsMasterID:0,insurerMasterID:l.quotationDialog.insurerMasterID,emailID:this.personalInformation.value.ckycEmail,dob:o(new Date(this.personalInformation.value.dob)).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:l.previousPolicyDialog.previousPolicyEndDate instanceof Date?o(this.dateConvertToMMDDYYYY(l.previousPolicyDialog.previousPolicyEndDate)).format():"0001-01-01",prvPl
1cyType:this.personalInformation.controls.ownerPreviousPolicyType?.value||"",prvPlcyNCBValue:this.personalInformation.controls.ownerNcbValue?.value||"",prvPlcyTPPFDate:l.previousPolicyDialog.policyEffectiveFrom instanceof Date?o(this.dateConvertToMMDDYYYY(l.previousPolicyDialog.policyEffectiveFrom)).format():"0001-01-01",prvPlcyTPPTDate:l.previousPolicyDialog.policyEffectiveTo instanceof Date?o(this.dateConvertToMMDDYYYY(l.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||""};this.transactionService.postPersonalInfoData(g).subscribe(i=>console.log(i))}dateConvertToMMDDYYYY(l){if(!l)return"0001-01-01";const[g,i,b]=l?.split("/");return`${i}/${g}/${b}`}formatDate(l){var g=new Date(l),i=""+(g.getMonth()+1),b=""+g.getDate(),n=g.getFullYear();return i.length<2&&(i="0"+i),b.length<2&&(b="0"+b),[b,i,n].join("-")}openErrorPopup(l){this.bsmodelRef=this.modalService.show(te.u,Object.assign({error:l},{class:"thankyou-popup modal-xl",initialState:{error:l}}))}ckycMismatchedPopup(){this.modalService.show(Be.A,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static"}))}vcModelMismatchedPopup(l){this.bsmodelRef=this.modalService.show(X.h,Object.assign({class:"login-process-popup modal-lg bottom-slide",backdrop:"static",keyboard:!1,initialState:{textDescription:l}}))}onIdTypeOptionsSelected(){this.personalInformation.get(["ID_Number"])?.reset()}ckycValidation(){if("PAN Card"===this.personalInformation.value.ID_Type){const l=new RegExp("[A-Z]{5}[0-9]{4}[A-Z]{1}$");this.idNumberValidate=l.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 l=new RegExp("^[0-9]{4}$");this.idNumberValidate=l.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 l=new RegExp("^[a-zA-Z]{3}([0-9]){7}?$");this.idNumberValidate=l.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 l=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=l.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 l=new RegExp("[A-Z]{5}[0-9]{4}[A-Z]{1}$");this.idNumberValidate=l.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]{6}[/]{1}[0-9]{6}[/]{1}[0-9]{3}$"),this.idNumberValidate=!0,this.idName="REF_NO",this.idTypeApi="REF_NO",console.log("Reference Number"))}updateOnlyVCNo(l){this.motorJourneyRepository.saveCustomerDetails({vehicleNumber:l})}checkVCModelNoAdrilaApi(l){this.journeyAadrilaService.postAadrillaData({rc_no:l,consent:"Y",rc_source:"45"}).subscribe(i=>{if(i?.data){let b=i?.data?.rc_vch_catg;if("LMV"===b||"2WN"==b){let n=i?.data?.rc_owner_first_name?.split(" ")?i?.data?.rc_owner_first_name?.split(" "):"";
1this.checkAdtrilaCKYCData=n[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(l){this.bsmodelRef=this.modalService.show(Qe.W,Object.assign({class:"thankyou-popup modal-xl",initialState:{AppNo:"",textDescription:l}}))}changeConsent(){sessionStorage.setItem("IsPhysicalCopy",this.personalInformation.value.IsPhysicalCopy)}static{this.\u0275fac=function(g){return new(g||h)(e.rXU(I.ze),e.rXU(Je.I8),e.rXU(M.Ix),e.rXU(e.SKi),e.rXU(t.L),e.rXU(et.k),e.rXU(Xe.h),e.rXU(r.ml),e.rXU(He.Mq),e.rXU(tt.ts),e.rXU(B.CH),e.rXU(Re.WM),e.rXU(ot.i))}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-motor-details-from"]],decls:254,vars:122,consts:[["phoneField",""],[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,"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","minDate"],[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"],[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"],[1,"btn","btn-danger",3,"click","disabled"],["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"],[1,"form-group","form-select","mb-md-0","mr-xl-0",3,"ngClass"],["formControlName","ownerPhone","customPlaceholder","Enter Mobile Number","maxLength","10","i
1d","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"],["type","text","formControlName","ownerRegisteredAddressState","placeholder","Enter State",1,"form-control",3,"readonly"],["type","text","formControlName","ownerRegisteredAddressCity","placeholder","Enter City",1,"form-control",3,"readonly"],[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"],["type","text","formControlName","ownerCommunicationAddressState","placeholder","Enter State",1,"form-control",3,"readonly"],["type","text","formControlName","ownerCommunicationAddressCity","placeholder","Enter City",1,"form-control",3,"readonly"],[1,"card-title","montserrat-semibold","text-semibold","text-black","py-2","px-3","bg-lighter-orange","mb-0","mt-3"],["class","col-12 col-lg-4 mb-4 mb-lg-3",4,"ngIf"],[1,"col-12","col-lg-4","mb-4","mb-lg-3"],["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,"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","i
1d","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,"err-txt","text-danger",3,"ngStyle"],[1,"d-flex","reg-number-blk"],["type","text","placeholder","RJ1","minlength","2","maxlength","3","name","state","formControlName","state","oninput","this.value=this.value.toUpperCase()",1,"form-control","px-2","mr-1",3,"readonly"],["type","text","placeholder","14","minlength","1","maxlength","2","name","rtoNo","formControlName","rtoNo","oninput","this.value=this.value.toUpperCase()",1,"form-control","px-2","mr-1",3,"readonly"],["type","text","placeholder","DY","maxlength","3","name","vehicleMidNo","formControlName","vehicleMidNo","oninput","this.value=this.value.toUpperCase()",1,"form-control","px-2","mr-1",3,"keyup","readonly"],["type","text","placeholder","2736","minlength","4","maxlength","4","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"],[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"]],template:function(g,i){if(1&g){const b=e.RV6();e.j41(0,"form",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5),e.EFF(5," CKYC Details "),e.k0s(),e.j41(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"label",10),e.EFF(11,"Email ID "),e.j41(12,"span",11),e.EFF(13,"*"),e.k0s()(),e.nrm(14,"input",12),e.DNE(15,nt,2,0,"small",13),e.k0s()(),e.j41(16,"div",8)(17,"div",14)(18,"label",15),e.EFF(19,"DOB "),e.j41(20,"span",11),e.EFF(21,"*"),e.k0s()(),e.nrm(22,"img",16)(23,"input",17),e.k0s()(),e.j41(24,"div",8)(25,"div",18)(26,"label",10),e.EFF(27,"ID Type "),e.j41(28,"span",11),e.EFF(29,"*"),e.k0s()(),e.j41(30,"ngx-select",19),e.bIt("ngModelChange",function(){return e.eBV(b),e.Njj(i.onIdT
1ypeOptionsSelected())}),e.k0s()()(),e.j41(31,"div",8)(32,"div",20)(33,"label",10),e.EFF(34,"ID Number "),e.j41(35,"span",11),e.EFF(36,"* "),e.k0s(),e.DNE(37,Te,2,0,"span",21),e.k0s(),e.DNE(38,oe,1,0,"input",22)(39,Le,1,0,"input",23)(40,ke,2,0,"small",24),e.k0s()(),e.j41(41,"div",25)(42,"div",20),e.nrm(43,"input",26),e.j41(44,"label",27),e.EFF(45," I hereby give consent to Universal Sompo General Insurance Co Ltd to receive and download information from Central KYC Registry. "),e.k0s()()()()(),e.j41(46,"div",28)(47,"button",29),e.bIt("click",function(){return e.eBV(b),e.Njj(i.getCkycDetailsOnSubmit())}),e.EFF(48," Submit"),e.k0s()()(),e.j41(49,"div",4)(50,"div",5),e.EFF(51," Owner Details "),e.k0s(),e.j41(52,"div",6)(53,"div",7)(54,"div",8)(55,"div",9)(56,"label",10),e.EFF(57,"First Name "),e.j41(58,"span",11),e.EFF(59,"*"),e.k0s()(),e.nrm(60,"input",30),e.DNE(61,$e,2,0,"small",13),e.k0s()(),e.j41(62,"div",8)(63,"div",9)(64,"label",10),e.EFF(65,"Middle Name "),e.k0s(),e.nrm(66,"input",31),e.DNE(67,Ge,2,0,"small",13),e.k0s()(),e.j41(68,"div",8)(69,"div",9)(70,"label",10),e.EFF(71,"Last Name "),e.j41(72,"span",11),e.EFF(73,"*"),e.k0s()(),e.nrm(74,"input",32),e.DNE(75,qe,2,0,"small",13),e.k0s()(),e.j41(76,"div",8)(77,"div",9)(78,"label",33),e.EFF(79,"Email ID "),e.j41(80,"span",11),e.EFF(81,"*"),e.k0s()(),e.j41(82,"input",34),e.bIt("keydown",function(a){return e.eBV(b),e.Njj(i.Space(a))}),e.k0s(),e.DNE(83,rt,2,0,"small",13),e.k0s()(),e.j41(84,"div",8)(85,"div",35)(86,"label",10),e.EFF(87,"CKYC Mobile Number "),e.j41(88,"span",11),e.EFF(89,"*"),e.k0s()(),e.j41(90,"ngx-intl-tel-input",36,0),e.bIt("keydown",function(a){return e.eBV(b),e.Njj(i.Space(a))})("countryChange",function(){return e.eBV(b),e.Njj(i.countryChange())}),e.k0s(),e.DNE(92,st,2,0,"small",13),e.k0s()(),e.j41(93,"div",37)(94,"div",38)(95,"label",39),e.EFF(96,"Marital Status"),e.j41(97,"span",11),e.EFF(98,"*"),e.k0s()(),e.j41(99,"div",40)(100,"label",41),e.EFF(101,"Single "),e.nrm(102,"input",42)(103,"span",43),e.k0s(),e.j41(104,"label",44),e.EFF(105," Married "),e.nrm(106,"input",45)(107,"span",43),e.k0s()(),e.DNE(108,Q,2,0,"small",13),e.k0s()()(),e.j41(109,"div",7)(110,"div",46)(111,"div",9)(112,"label",33),e.EFF(113,"Registered Address "),e.j41(114,"span",11),e.EFF(115,"*"),e.k0s()(),e.j41(116,"textarea",47),e.bIt("keydown",function(a){return e.eBV(b),e.Njj(i.Space(a))}),e.k0s(),e.DNE(117,at,2,0,"small",13),e.k0s()(),e.j41(118,"div",8)(119,"div",9)(120,"label",33),e.EFF(121,"Pincode "),e.j41(122,"span",11),e.EFF(123,"*"),e.k0s()(),e.j41(124,"input",48),e.bIt("keyup",function(){return e.eBV(b),e.Njj(i.stateListValueChangeRegistered())}),e.k0s(),e.DNE(125,lt,2,4,"small",49),e.k0s()(),e.j41(126,"div",8)(127,"div",50)(128,"label",33),e.EFF(129,"State "),e.j41(130,"span",11),e.EFF(131,"*"),e.k0s()(),e.nrm(132,"input",51),e.DNE(133,Ue,2,0,"small",13),e.k0s()(),e.j41(134,"div",8)(135,"div",50)(136,"label",33),e.EFF(137,"City "),e.j41(138,"span",11),e.EFF(139,"*"),e.k0s()(),e.nrm(140,"input",52),e.DNE(141,Ze,2,0,"small",13),e.k0s()(),e.j41(142,"div",46)(143,"div",53)(144,"div",54)(145,"input",55),e.bIt("change",function(){let a;return e.eBV(b),e.Njj(i.sameAddress(null==(a=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:a.value))}),e.k0s(),e.j41(146,"label",56),e.EFF(147," Communication address same as registered. "),e.k0s()()()()(),e.j41(148,"div",7)(149,"div",57)(150,"div",9)(151,"label",33),e.EFF(152,"Communication address "),e.j41(153,"span",11),e.EFF(154,"*"),e.k0s()(),e.j41(155,"textarea",58),e.bIt("keydown",function(a){return e.eBV(b),e.Njj(i.Space(a))}),e.k0s(),e.DNE(156,ct,2,0,"small",13),e.k0s()(),e.j41(157,"div",8)(158,"div",9)(159,"label",33),e.EFF(160,"Pincode "),e.j41(161,"span",11),e.EFF(162,"*"),e.k0s()(),e.j41(163,"input",59),e.bIt("keyup",function(){return e.eBV(b),e.Njj(i.stateListValueChangeCommunication())}),e.k0s(),e.DNE(164,dt,2,4,"small",49),e.k0s()(),e.j41(165,"div",8)(166,"div",60)(167,"label",33),e.EFF(168,"State "),e.j41(169,"span",11),e.EFF(170,"*"),e.k0s()(),e.nrm(171,"input",61),e.DNE(172,mt,2,0,"small",13),e.k0s()(),e.j41(173,"div",8)(174,"div",60)(175,"label",33),e.EFF(176,"City "),e.j41(177,"span",11),e.EFF(178,"*"),e.k0s()(),e.nrm(179,"input",62),e.DNE(180,ut,2,0,"small",13),e.k0s()()()()(),e.j41(181,"div",4)(182,"div",63),e.EFF(183," Vehicle Details "),e.k0s(),e.j41(184,"div",6)(185,"div",7),e.DNE(186,vt,16,12,"div",64),e.j41(187,"div",65)(188,"div",9)(189,"label",33),e.EFF(190,"Chassis Number "),e.j41(191,"span",11),e.EFF(192,"*"),e.k0s()(),e.nrm(193,"input",66),e.DNE(194,yt,2,0,"small",13),e.j41(195,"div",67)(196,"span",68),e.EFF(197," You can find your "),e.nrm(198,"span",69),e.EFF(199," vehicle chassis No. in the RC book "),e.k0s()()()(),e.j41(200,"div",65)(201,"div",9)(202,"label",33),e.EFF(203,"Engine Number "),e.j41(204,"span",11),e.EFF(205,"*"),e.k0s()(),e.nrm(206,"input",70),e.DNE(207,Ct,2,0,"small",13),e.j41(208,"div",67)(209,"span",68),e.EFF(210," You can find your "),e.nrm(211,"span",69),e.EFF(212," vehicle engine No. in the RC book "),e.k0s()()()()()()(),e.DNE(213,R,54,26,"div",71)(214,Ee,40,13,"div",71)(215,s,21,9,"div",71),e.j41(216,"div",4)(217,"div",63),e.EFF(218," Hypothecation Details "),e.k0s(),e.j41(219,"div",6)(220,"div",7)(221,"div",72)(222,"div",38)(223,"label",73),e.EFF(224,"Is your vehicle currently on loan? "),e.j41(225,"span",11),e.EFF(226,"*"),e.k0s()(),e.j41(227,"div",40)(228,"label",41),e.EFF(229,"Yes "),e.nrm(230,"input",74)(231,"span",43),e.k0s(),e.j41(232,"label",44),e.EFF(233," No "),e.nrm(234,"input",75)(235,"span",43),e.k0s()(),e.DNE(236,u,2,0,"small",13),e.k0s()(),e.DNE(237,y,8,4,"div",76),e.k0s()()(),e.j41(238,"div",46)(239,"div",53)(240,"div",77)(241,"span",78),e.EFF(242,"\u2605"),e.k0s(),e.j41(243,"input",79),e.bIt("change",function(){return e.eBV(b),e.Njj(i.changeConsent())}
1),e.k0s(),e.j41(244,"label",80),e.EFF(245," I would like to avail physical copy of policy schedule "),e.k0s()()()(),e.j41(246,"p",81),e.EFF(247," Previous year policy document is required in case of claim within 30 days of the Universal Sompo start date. "),e.k0s()()(),e.j41(248,"div",82),e.nrm(249,"input",83),e.j41(250,"label",84),e.EFF(251," By tapping on continue I declare that I have provided correct details and have read Universal Sompo "),e.j41(252,"a",85),e.EFF(253,"T&C"),e.k0s()()()()}if(2&g){let b,n,a,c,C,k,w,P,K,de,j,se,N,E,ie,ge,Ae,Se,q,ee,A,x,S,_e,fe,Pe,ce,Ye,Ve,me,je,ue,pe,G,ne,ve,ye,_t,Pt,It,Nt,wt,kt;e.Y8G("formGroup",i.personalInformation),e.R7$(9),e.Y8G("ngClass",e.eq3(77,Y,(null==(b=i.personalInformation.get("ckycEmail"))?null:b.invalid)&&((null==(b=i.personalInformation.get("ckycEmail"))?null:b.dirty)||(null==(b=i.personalInformation.get("ckycEmail"))?null:b.touched)))),e.R7$(6),e.Y8G("ngIf",(null==(n=i.personalInformation.get("ckycEmail"))?null:n.invalid)&&((null==(n=i.personalInformation.get("ckycEmail"))?null:n.dirty)||(null==(n=i.personalInformation.get("ckycEmail"))?null:n.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(79,Y,(null==(a=i.personalInformation.get("dob"))?null:a.errors)&&(null==(a=i.personalInformation.get("dob"))?null:a.touched))),e.R7$(6),e.Y8G("bsConfig",e.lJ4(81,be))("maxDate",i.maxDate)("minDate",i.minDate),e.R7$(7),e.Y8G("items",i.idType),e.R7$(7),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$(7),e.Y8G("disabled",(null==(c=i.personalInformation.get("ckycEmail"))?null:c.invalid)||!i.idNumberValidate||!i.personalInformation.value.ID_Number||!i.personalInformation.value.ID_Type||!i.personalInformation.value.dob||!i.personalInformation.value.ckycEmail||!i.personalInformation.value.tbConsent),e.R7$(8),e.Y8G("ngClass",e.eq3(82,Y,(null==(C=i.personalInformation.get("ownerFirstName"))?null:C.invalid)&&((null==(C=i.personalInformation.get("ownerFirstName"))?null:C.dirty)||(null==(C=i.personalInformation.get("ownerFirstName"))?null:C.touched)))),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(k=i.personalInformation.get("ownerFirstName"))?null:k.errors)&&((null==(k=i.personalInformation.get("ownerFirstName"))?null:k.dirty)||(null==(k=i.personalInformation.get("ownerFirstName"))?null:k.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(84,Y,(null==(w=i.personalInformation.get("ownerMiddleName"))?null:w.invalid)&&((null==(w=i.personalInformation.get("ownerMiddleName"))?null:w.dirty)||(null==(w=i.personalInformation.get("ownerMiddleName"))?null:w.touched)))),e.R7$(3),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(P=i.personalInformation.get("ownerMiddleName"))?null:P.errors)&&((null==(P=i.personalInformation.get("ownerMiddleName"))?null:P.dirty)||(null==(P=i.personalInformation.get("ownerMiddleName"))?null:P.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(86,Y,(null==(K=i.personalInformation.get("ownerLastName"))?null:K.invalid)&&((null==(K=i.personalInformation.get("ownerLastName"))?null:K.dirty)||(null==(K=i.personalInformation.get("ownerLastName"))?null:K.touched)))),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(de=i.personalInformation.get("ownerLastName"))?null:de.errors)&&((null==(de=i.personalInformation.get("ownerLastName"))?null:de.dirty)||(null==(de=i.personalInformation.get("ownerLastName"))?null:de.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(88,Y,(null==(j=i.personalInformation.get("ownerEmailID"))?null:j.invalid)&&((null==(j=i.personalInformation.get("ownerEmailID"))?null:j.dirty)||(null==(j=i.personalInformation.get("ownerEmailID"))?null:j.touched)))),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(se=i.personalInformation.get("ownerEmailID"))?null:se.errors)&&((null==(se=i.personalInformation.get("ownerEmailID"))?null:se.dirty)||(null==(se=i.personalInformation.get("ownerEmailID"))?null:se.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(90,Y,(null==(N=i.personalInformation.get("ownerPhone"))?null:N.errors)&&(null==(N=i.personalInformation.get("ownerPhone"))?null:N.touched))),e.R7$(5),e.Y8G("cssClass","intl-tel-number contact-number")("preferredCountries",e.l_i(92,Ke,i.CountryISO.UnitedStates,i.CountryISO.UnitedKingdom))("enableAutoCountrySelect",!1)("enablePlaceholder",!0)("searchCountryFlag",!0)("searchCountryField",e.l_i(95,Ke,i.SearchCountryField.Iso2,i.SearchCountryField.Name))("selectFirstCountry",!1)("selectedCountryISO",i.CountryISO.India)("phoneValidation",!0),e.R7$(2),e.Y8G("ngIf",(null==(E=i.personalInformation.get("ownerPhone"))?null:E.errors)&&(null==(E=i.personalInformation.get("ownerPhone"))?null:E.touched)),e.R7$(2),e.Y8G("ngClass",e.eq3(98,Y,(null==(ie=i.personalInformation.get("ownerMaritalStatus"))?null:ie.invalid)&&((null==(ie=i.personalInformation.get("ownerMaritalStatus"))?null:ie.dirty)||(null==(ie=i.personalInformation.get("ownerMaritalStatus"))?null:ie.touched)))),e.R7$(14),e.Y8G("ngIf",(null==(ge=i.personalInformation.get("ownerMaritalStatus"))?null:ge.errors)&&((null==(ge=i.personalInformation.get("ownerMaritalStatus"))?null:ge.dirty)||(null==(ge=i.personalInformation.get("ownerMaritalStatus"))?null:ge.touched))),e.R7$(3),e.Y8G("ngClass",e.eq3(100,Y,(null==(Ae=i.personalInformation.get("ownerRegisteredAddress"))?null:Ae.invalid)&&((null==(Ae=i.personalInformation.get("ownerRegisteredAddress"))?null:Ae.dirty)||(null==(Ae=i.personalInformation.get("ownerRegisteredAddress"))?null:Ae.touched))
1)),e.R7$(5),e.Y8G("readonly",i.inPutreadonly),e.R7$(),e.Y8G("ngIf",(null==(Se=i.personalInformation.get("ownerRegisteredAddress"))?null:Se.errors)&&((null==(Se=i.personalInformation.get("ownerRegisteredAddress"))?null:Se.dirty)||(null==(Se=i.personalInformation.get("ownerRegisteredAddress"))?null:Se.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(102,Y,(null==(q=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:q.invalid)&&((null==(q=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:q.dirty)||(null==(q=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:q.touched)))),e.R7$(5),e.Y8G("readonly",i.pincodeReadOnly),e.R7$(),e.Y8G("ngIf",i.pincodeErrorMsgRegistered||(null==(ee=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:ee.errors)&&((null==(ee=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:ee.dirty)||(null==(ee=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:ee.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(104,Y,(null==(A=i.personalInformation.get("ownerRegisteredAddressState"))?null:A.invalid)&&((null==(A=i.personalInformation.get("ownerRegisteredAddressState"))?null:A.dirty)||(null==(A=i.personalInformation.get("ownerRegisteredAddressState"))?null:A.touched)))),e.R7$(5),e.Y8G("readonly",!0),e.R7$(),e.Y8G("ngIf",(null==(x=i.personalInformation.get("ownerRegisteredAddressState"))?null:x.errors)&&((null==(x=i.personalInformation.get("ownerRegisteredAddressState"))?null:x.dirty)||(null==(x=i.personalInformation.get("ownerRegisteredAddressState"))?null:x.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(106,Y,(null==(S=i.personalInformation.get("ownerRegisteredAddressCity"))?null:S.invalid)&&((null==(S=i.personalInformation.get("ownerRegisteredAddressCity"))?null:S.dirty)||(null==(S=i.personalInformation.get("ownerRegisteredAddressCity"))?null:S.touched)))),e.R7$(5),e.Y8G("readonly",!0),e.R7$(),e.Y8G("ngIf",(null==(_e=i.personalInformation.get("ownerRegisteredAddressCity"))?null:_e.errors)&&((null==(_e=i.personalInformation.get("ownerRegisteredAddressCity"))?null:_e.dirty)||(null==(_e=i.personalInformation.get("ownerRegisteredAddressCity"))?null:_e.touched))
1),e.R7$(9),e.Y8G("ngClass",e.eq3(108,Y,(null==(fe=i.personalInformation.get("ownerCommunicationAddress"))?null:fe.invalid)&&((null==(fe=i.personalInformation.get("ownerCommunicationAddress"))?null:fe.dirty)||(null==(fe=i.personalInformation.get("ownerCommunicationAddress"))?null:fe.touched)))),e.R7$(5),e.Y8G("disabled",null==(Pe=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:Pe.value)("readonly",null==(ce=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:ce.value),e.R7$(),e.Y8G("ngIf",(null==(Ye=i.personalInformation.get("ownerCommunicationAddress"))?null:Ye.errors)&&((null==(Ye=i.personalInformation.get("ownerCommunicationAddress"))?null:Ye.dirty)||(null==(Ye=i.personalInformation.get("ownerCommunicationAddress"))?null:Ye.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(110,Y,(null==(Ve=i.personalInformation.get("ownerCommunicationAddressPincode"))?null:Ve.invalid)&&((null==(Ve=i.personalInformation.get("ownerCommunicationAddressPincode"))?null:Ve.dirty)||(null==(Ve=i.personalInformation.get("ownerCommunicationAddressPincode"))?null:Ve.touched)))),e.R7$(5),e.Y8G("disabled",null==(me=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:me.value)("readonly",null==(je=i.personalInformation.get("ownerIsCommunicationAddressSame"))?null:je.value),e.R7$(),e.Y8G("ngIf",i.pincodeErrorMsgOwner||(null==(ue=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:ue.errors)&&((null==(ue=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:ue.dirty)||(null==(ue=i.personalInformation.get("ownerRegisteredAddressPincode"))?null:ue.touched))
1),e.R7$(2),e.Y8G("ngClass",e.eq3(112,Y,(null==(pe=i.personalInformation.get("ownerCommunicationAddressState"))?null:pe.invalid)&&((null==(pe=i.personalInformation.get("ownerCommunicationAddressState"))?null:pe.dirty)||(null==(pe=i.personalInformation.get("ownerCommunicationAddressState"))?null:pe.touched)))),e.R7$(5),e.Y8G("readonly",!0),e.R7$(),e.Y8G("ngIf",(null==(G=i.personalInformation.get("ownerCommunicationAddressState"))?null:G.errors)&&((null==(G=i.personalInformation.get("ownerCommunicationAddressState"))?null:G.dirty)||(null==(G=i.personalInformation.get("ownerCommunicationAddressState"))?null:G.touched))),e.R7$(2),e.Y8G("ngClass",e.eq3(114,Y,(null==(ne=i.personalInformation.get("ownerCommunicationAddressCity"))?null:ne.invalid)&&((null==(ne=i.personalInformation.get("ownerCommunicationAddressCity"))?null:ne.dirty)||(null==(ne=i.personalInformation.get("ownerCommunicationAddressCity"))?null:ne.touched)))),e.R7$(5),e.Y8G("readonly",!0),e.R7$(),e.Y8G("ngIf",(null==(ve=i.personalInformation.get("ownerCommunicationAddressCity"))?null:ve.errors)&&((null==(ve=i.personalInformation.get("ownerCommunicationAddressCity"))?null:ve.dirty)||(null==(ve=i.personalInformation.get("ownerCommunicationAddressCity"))?null:ve.touched))
1),e.R7$(6),e.Y8G("ngIf","old"==i.vehicleSelection),e.R7$(2),e.Y8G("ngClass",e.eq3(116,Y,(null==(ye=i.personalInformation.get("ownerChasisNo"))?null:ye.invalid)&&((null==(ye=i.personalInformation.get("ownerChasisNo"))?null:ye.dirty)||(null==(ye=i.personalInformation.get("ownerChasisNo"))?null:ye.touched)))),e.R7$(5),e.Y8G("readonly",i.ChasisNo),e.R7$(),e.Y8G("ngIf",(null==(_t=i.personalInformation.get("ownerChasisNo"))?null:_t.errors)&&((null==(_t=i.personalInformation.get("ownerChasisNo"))?null:_t.dirty)||(null==(_t=i.personalInformation.get("ownerChasisNo"))?null:_t.touched))),e.R7$(7),e.Y8G("ngClass",e.eq3(118,Y,(null==(Pt=i.personalInformation.get("ownerEngineNo"))?null:Pt.invalid)&&((null==(Pt=i.personalInformation.get("ownerEngineNo"))?null:Pt.dirty)||(null==(Pt=i.personalInformation.get("ownerEngineNo"))?null:Pt.touched)))),e.R7$(5),e.Y8G("readonly",i.EngineNo),e.R7$(),e.Y8G("ngIf",(null==(It=i.personalInformation.get("ownerEngineNo"))?null:It.errors)&&((null==(It=i.personalInformation.get("ownerEngineNo"))?null:It.dirty)||(null==(It=i.personalInformation.get("ownerEngineNo"))?null:It.touched))
1),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$(7),e.Y8G("ngClass",e.eq3(120,Y,(null==(Nt=i.personalInformation.get("ownerOptedForLoan"))?null:Nt.invalid)&&((null==(Nt=i.personalInformation.get("ownerOptedForLoan"))?null:Nt.dirty)||(null==(Nt=i.personalInformation.get("ownerOptedForLoan"))?null:Nt.touched)))),e.R7$(14),e.Y8G("ngIf",(null==(wt=i.personalInformation.get("ownerOptedForLoan"))?null:wt.errors)&&((null==(wt=i.personalInformation.get("ownerOptedForLoan"))?null:wt.dirty)||(null==(wt=i.personalInformation.get("ownerOptedForLoan"))?null:wt.touched))),e.R7$(),e.Y8G("ngIf","Yes"==(null==(kt=i.personalInformation.get("ownerOptedForLoan"))?null:kt.value))}},dependencies:[O.YU,O.bT,O.B3,I.qT,I.me,I.Zm,I.Fm,I.BC,I.cb,I.YS,I.xh,I.tU,I.R_,I.j4,I.JD,We.pc,We.p0,it.RM,J.NA,J.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}.declaration[_ngcontent-%COMP%]{display:flex;justify-content:start}.declaration[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:10px;height:20px}"]})}}return h})(),z=(()=>{class h{constructor(l,g){this.motorJourneyCkycRepository=l,this.location=g}ngOnInit(){this.ckycDetails=this.motorJourneyCkycRepository.getMotorJourneyCkycValue()}backBtnClickHandler(l){l.preventDefault(),l.stopImmediatePropagation(),this.location.back()}static{this.\u0275fac=function(g){return new(g||h)(e.rXU(Re.WM),e.rXU(O.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(g,i){1&g&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),e.bIt("click",function(n){return i.backBtnClickHandler(n)}),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&g&&(e.R7$(10),e.SpI("Good Going ",e.bMT(11,1,i.ckycDetails.firstName)," !"))},dependencies:[O.PV]})}}return h})();const re=[{path:"",component:(()=>{class h{constructor(l,g){this.motorJourneyProductPlanRepository=l,this.journeyHomeService=g,this.subscription=new L.yU,this.newItemEvent=new e.bkB}ngOnInit(){this.journeyHomeService.personalRefersh.next(!0),this.journeyHomeService.showCard.next(!0)}ngOnDestroy(){this.subscription.unsubscribe()}onPersonalInfromationContinueCta(l){this.newItemEvent.emit("summary")}
1static{this.\u0275fac=function(g){return new(g||h)(e.rXU(B.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(g,i){1&g&&(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(n){return i.onPersonalInfromationContinueCta(n)}),e.k0s()())},dependencies:[T,z]})}}return h})()}];let le=(()=>{class h{static{this.\u0275fac=function(g){return new(g||h)}}static{this.\u0275mod=e.$C({type:h})}static{this.\u0275inj=e.G2t({imports:[M.iI.forChild(re),M.iI]})}}return h})();var De=m(5452);let Fe=(()=>{class h{static{this.\u0275fac=function(g){return new(g||h)}}static{this.\u0275mod=e.$C({type:h})}static{this.\u0275inj=e.G2t({imports:[O.MD,le,I.YN,I.X1,De.PluginsModule]})}}return h})()},85529:(Mt,Oe,m)=>{m.r(Oe),m.d(Oe,{MotorSummaryModule:()=>bt});var O=m(60177),M=m(46359),e=m(97586),L=m(18359),B=m(5964),t=m(25558),I=m(96354),J=m(79697),Ie=m(62155),Ne=m(45312),we=m(95613),o=m(54438),Ce=m(50779),te=m(91484),Re=m(51451),xe=m(60040),Me=m(71780),Be=m(18389),ae=m(54005),X=m(18703),Qe=m(70482),Je=m(32374),et=m(534),Xe=m(98518),r=m(96697),He=m(81779);function tt(D,W){1&D&&o.nrm(0,"img",20)}function ot(D,W){1&D&&(o.j41(0,"figure",3),o.nrm(1,"img",21),o.k0s())}function We(D,W){1&D&&(o.j41(0,"span",22),o.EFF(1," Comprehensive Plan "),o.k0s())}function it(D,W){1&D&&(o.j41(0,"span",22),o.EFF(1," Third Party Plan "),o.k0s())}function Y(D,W){1&D&&(o.j41(0,"span",22),o.EFF(1," Own Damage Plan "),o.k0s())}let be=(()=>{class D{constructor(d,f,p){this.motorJourneyProductPlanRepository=d,this.motorJourneyVehicleDetailsRepository=f,this.motorJourneyRepository=p,this.coverDiscounts=[],this.addOns=[],this.subscriptions=new L.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 d;let f;this.initJourneyName(),this.initVehicleDetails(),this.previouspolicyDetailsFun(),this.initFinalPremiumValue(),this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(p=>!!p)).subscribe(p=>{d=p.deTariffDiscount})),this.subscriptions.add(this.motorJourneyRepository.costSummaryData$.pipe((0,B.p)(p=>!!p)).subscribe(p=>{f=p})),this.costSummary[1].info=f?.basic_TP,this.costSummary[2].info=f?.basic_OD,this.costSummary[3].info=d?.Rate.$.Value?parseInt(d?.Rate.$.Value).toString():"0",this.costSummary[4].info=f?.addon_Total,this.costSummary[5].info=f?.additional_Cover_Total,this.costSummary[6].info=f?.ncbDiscount,this.costSummary[7].info=f?.netPremium,this.costSummary[8].info=f?.gstIn,this.costSummary[9].info=f?.totalPremium,this.getPolicyStartDate()}ngOnDestroy(){this.subscriptions.unsubscribe()}initJourneyName(){this.subscriptions.add(this.motorJourneyRepository.quotationDialog$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.vcDtls=d,this.journeyName=d.journeyName}))}previouspolicyDetailsFun(){this.subscriptions.add(this.motorJourneyRepository.previousPolicyDialog$.pipe((0,r.s)(1)).subscribe(d=>{this.previousPolicyDetails=d}))}dateConvertToMMDDYYYY(d){const[f,p,V]=d?.split("/");return`${p}/${f}/${V}`}getPolicyStartDate(){let d;this.motorJourneyRepository.motorJourney$.subscribe(p=>{d=p.productCode.productCode}),this.productCardId||(this.productCardId=te.$i.query(Xe.UP)||d||"");let f=this.previousPolicyDetails?.previousPolicyEndDate?.split("/");if(f&&(f=new Date(f[1]+"/"+f[0]+"/"+f[2])),console.log(f),"2319"!=this.productCardId&&"2320"!=this.productCardId&&"Liability"==this.previousPolicyDetails?.previousPolicyType){let p=new Date;p.setDate(p.getDate()+1),this.policyStartDate=e(p).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!0})}else if(!(f>new Date||e(f).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 p=new Date;p.setDate(p.getDate()),this.policyStartDate=e(p).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!1})}else if(f<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(f<new Date&&("2319"==this.productCardId||"2320"==this.productCardId)||"2367"==this.productCardId||"2369"==this.productCardId||"Yes"==this.previousPolicyDetails?.previousPolicyPresent){let p=new Date;p.setDate(p.getDate()),this.policyStartDate=e(p).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!1})}}else f.setDate(f.getDate()),this.policyStartDate=e(f).format("DD/MM/YYYY"),this.motorJourneyRepository.savePreviousPolicyDetails({breakIn:!1});this.motorJourneyRepository.previousPolicyDialog$.pipe((0,r.s)(1)).subscribe(p=>{let V=new Date;
1if(0==p?.breakIn&&p?.previousPolicyEndDate&&(V=new Date(this.dateConvertToMMDDYYYY(p?.previousPolicyEndDate))),1==p?.breakIn&&"MotorTwoWheeler"==this.journeyName){let R=new Date;R.setDate(R.getDate()+1),this.previousPolicyEnd=e(R).format("DD/MM/YYYY")}else if(1==p?.breakIn&&"MotorPrivateCar"==this.journeyName){let R=new Date;R.setDate(R.getDate()+2),this.previousPolicyEnd=e(R).format("DD/MM/YYYY")}else if("old"==this.vcDtls?.vehicleSelection){let R;R=e(p?.previousPolicyEndDate,"DD/MM/YYYY").format("YYYY-MM-DD[T]HH:mm:ss"),R=e(R).add(1,"days").format("DD/MM/YYYY"),this.previousPolicyEnd=R}else{let R=new Date;R.setDate(R.getDate()),this.previousPolicyEnd=e(R).format("DD/MM/YYYY")}})}initVehicleDetails(){this.subscriptions.add(this.motorJourneyVehicleDetailsRepository.motorJourneyVehicleDetails$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.vehicleModel=d.rc_maker_model,this.vehicleNo=d.rc_regn_no,this.vehicleNo||sessionStorage.mpc_vehicleNo&&(this.vehicleNo=sessionStorage.mpc_vehicleNo)}))}initFinalPremiumValue(){this.subscriptions.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.productCardId=d.id?d.id:2312,this.finalPremium=d.finalPremium}))}static{this.\u0275fac=function(f){return new(f||D)(o.rXU(te.CH),o.rXU(xe.Mq),o.rXU(Me.ml))}}static{this.\u0275cmp=o.VBU({type:D,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(f,p){1&f&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"figure",3),o.DNE(4,tt,1,0,"img",4),o.k0s(),o.DNE(5,ot,2,0,"figure",5),o.j41(6,"div"),o.DNE(7,We,2,0,"span",6)(8,it,2,0,"span",6)(9,Y,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&f&&(o.R7$(4),o.Y8G("ngIf","MotorTwoWheeler"==p.journeyName||null==p.journeyName),o.R7$(),o.Y8G("ngIf","MotorPrivateCar"==p.journeyName),o.R7$(2),o.Y8G("ngIf",null==p.productCardId||"2311"==p.productCardId||"2367"==p.productCardId||"2369"==p.productCardId||"2312"==p.productCardId),o.R7$(),o.Y8G("ngIf","2319"==p.productCardId||"2320"==p.productCardId),o.R7$(),o.Y8G("ngIf","2398"==p.productCardId||"2397"==p.productCardId),o.R7$(2),o.SpI(" ",p.vehicleModel?p.vehicleModel:"--"," "),o.R7$(2),o.JRh(p.vehicleNo?p.vehicleNo:"--"),o.R7$(8),o.SpI(" ",p.previousPolicyEnd?p.previousPolicyEnd:p.policyStartDate," "),o.R7$(7),o.SpI(" ",o.bMT(29,17,p.costSummary[2].info)," "),o.R7$(8),o.SpI(" ",o.bMT(37,19,p.costSummary[1].info)," "),o.R7$(8),o.SpI(" - ",p.costSummary[3].info?p.costSummary[3].info+"%":o.bMT(45,21,p.costSummary[3].info)," "),o.R7$(8),o.SpI(" - ",p.costSummary[6].info?p.costSummary[6].info:o.bMT(53,23,0)," "),o.R7$(8),o.SpI(" ",o.bMT(61,25,p.costSummary[4].info)," "),o.R7$(8),o.SpI(" ",o.bMT(69,27,p.costSummary[5].info)," "),o.R7$(8),o.SpI(" ",o.bMT(77,29,p.costSummary[7].info)," "),o.R7$(8),o.SpI(" ",o.bMT(85,31,p.costSummary[8].info)," "),o.R7$(8),o.SpI(" ",o.bMT(93,33,p.costSummary[9].info),"/- "))},dependencies:[O.bT,He.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 D})();function Ke(D,W){if(1&D&&(o.j41(0,"div",8),o.EFF(1),o.k0s()),2&D){const d=o.XpG().$implicit;o.R7$(),o.SpI(" ",d.info," ")}}function ze(D,W){if(1&D&&(o.j41(0,"div",8),o.EFF(1),o.k0s()),2&D){const d=o.XpG(2);o.R7$(),o.SpI(" ",d.vehicleNumber?d.vehicleNumber:"New"," ")}}function nt(D,W){if(1&D&&(o.j41(0,"div",4)(1,"div",5)(2,"div",6),o.EFF(3),o.k0s()(),o.j41(4,"div",7),o.DNE(5,Ke,2,1,"div",9)(6,ze,2,1,"div",9),o.k0s()()),2&D){const d=W.$implicit;o.R7$(3),o.SpI(" ",d.label," "),o.R7$(2),o.Y8G("ngIf","Vehicle Number"!=d.label),o.R7$(),o.Y8G("ngIf","Vehicle Number"==d.label)}}let Te=(()=>{class D{constructor(d,f,p,V,R){this.motorJourneyVehicleDetailsRepository=d,this.motorJourneyRepository=f,this.motorJourneyVehicalDetailsRepository=p,this.motorJourneyProductPlanRepository=V,this.journeyHomeService=R,this.subscription=new L.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(d=>{this.idvDefaultValue=d?.choosePlanData?.selectedIDVValue?.selectedIDVValue||d?.choosePlanData?.selectedIDVValue,this.productC
1ode=te.$i.query(Xe.UP)||d?.productCode?.productCode||"",this.prodCode=d?.productCode?.productCode})),this.subscription.add(this.motorJourneyProductPlanRepository.selectActiveProductPlan$.subscribe(d=>{this.productCode=d?.id||this.prodCode,this.idvValue=d?.idvDefaultValue,this.initVehicleDetails()})),this.subscription.add(this.motorJourneyRepository.motorJourney$.subscribe(d=>{this.regNo=d?.quotationDialog.vehicleNumber})),this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.subscribe(d=>{this.vehicleNumber=this.regNo?this.regNo:d.rc_regn_no})),this.initVehicleDetails()}ngOnDestroy(){this.subscription.unsubscribe()}initVehicleDetails(){this.subscription.add(this.motorJourneyVehicleDetailsRepository.motorJourneyVehicleDetails$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.vehicleDetails=this.vehicleDetails.map(f=>(f.info=d[f.fieldName]?d[f.fieldName]:"--",{...f}))}))}static{this.\u0275fac=function(f){return new(f||D)(o.rXU(xe.Mq),o.rXU(Me.ml),o.rXU(xe.Mq),o.rXU(te.CH),o.rXU(ae.L))}}static{this.\u0275cmp=o.VBU({type:D,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(f,p){1&f&&(o.j41(0,"div",0)(1,"div",1),o.EFF(2," Vehicle Details "),o.k0s(),o.j41(3,"div",2),o.DNE(4,nt,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&f&&(o.R7$(4),o.Y8G("ngForOf",p.vehicleDetails),o.R7$(7),o.SpI(" ",2319===p.productCode||2320===p.productCode||"2319"===p.productCode||"2320"===p.productCode?"--":o.bMT(12,2,(p.idvValue&&"0.00"!==p.idvValue?p.idvValue:p.idvDefaultValue)||"")," "))},dependencies:[O.Sq,O.bT,He.G],styles:[".mh-330[_ngcontent-%COMP%]{min-height:330px}"]})}}return D})();var oe=m(10444),Le=m(23294),ke=m(70152);let $e=(()=>{class D{constructor(d,f,p,V,R,H,he){this.motorJourneyOwnerDetailsRepository=d,this.motorJourneyRepository=f,this._message=p,this.motorJourneyVehicalDetailsRepository=V,this.motorJourneyProductPlanRepository=R,this.journeyHomeService=H,this.journeyRestService=he,this.subscription=new L.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,Le.F)(),(0,oe.u5)(),(0,ke.B)(2e3)).subscribe(d=>{this.data=d,d&&this.motorJourneyRepository.motorJourney$.pipe((0,B.p)(f=>!!f),(0,I.T)(({costSummaryData:f,...p})=>p)).subscribe(f=>{(this.dataState&&f&&JSON.stringify(this.dataState)!=JSON.stringify(f)||!this.dataState&&f)&&(this.dataState=f,this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,I.T)(({id:p,productName:V})=>({ProductCode:p,ProductName:V}))).subscribe(p=>{}).unsubscribe())}).unsubscribe()})}ngOnDestroy(){this.subscription.unsubscribe()}initOwnerDetails(){this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.ownerName=`${d.rc_owner_first_name?d.rc_owner_first_name:"--"} ${d.rc_owner_last_name?d.rc_owner_last_name:""}`,this.ownerEmailId=d.rc_owner_email_id,this.ownerPincode=d.rc_owner_registered_pincode}))}initQuotationDialog(){this.subscription.add(this.motorJourneyRepository.quotationDialog$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.ownerPhoneNo=d.vehicleOwnerMobileNumber?d.vehicleOwnerMobileNumber:"--",this._message.changeMessage(d)}
1))}static{this.\u0275fac=function(f){return new(f||D)(o.rXU(Re.ts),o.rXU(Me.ml),o.rXU(Je.h),o.rXU(xe.Mq),o.rXU(te.CH),o.rXU(ae.L),o.rXU(X.I))}}static{this.\u0275cmp=o.VBU({type:D,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(f,p){1&f&&(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&f&&(o.R7$(10),o.SpI(" ",p.ownerName?p.ownerName:"--"," "),o.R7$(7),o.SpI(" ",p.ownerEmailId?p.ownerEmailId:"--"," "),o.R7$(7),o.SpI(" ",p.ownerPhoneNo?p.ownerPhoneNo:"--"," "),o.R7$(7),o.SpI(" ",p.ownerPincode?p.ownerPincode:"--"," "))},styles:[".mh-330[_ngcontent-%COMP%]{min-height:330px}"]})}}return D})();var Ge=m(62233);function qe(D,W){if(1&D){const d=o.RV6();o.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"a",4),o.bIt("click",function(p){o.eBV(d);const V=o.XpG();return o.Njj(V.backBtnClickHandler(p))}),o.nrm(4,"img",5),o.k0s()(),o.j41(5,"div",2)(6,"figure",6)(7,"ng-lottie",7),o.bIt("animationCreated",function(p){o.eBV(d);const V=o.XpG();return o.Njj(V.animationCreated(p))}),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&D){const d=o.XpG();o.R7$(7),o.Y8G("options",d.options)}}function rt(D,W){1&D&&(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 st=(()=>{class D{constructor(d,f){this.motorJourneyRepository=d,this.location=f,this.subscriptions=new L.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,B.p)(d=>!!d)).subscribe(d=>{this.policyEndDate=d.previousPolicyEndDate,this.policyType=d.previousPolicyType}))}backBtnClickHandler(d){d.preventDefault(),d.stopImmediatePropagation(),this.location.back()}animationCreated(d){}static{this.\u0275fac=function(f){return new(f||D)(o.rXU(Me.ml),o.rXU(O.aZ))}}static{this.\u0275cmp=o.VBU({type:D,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(f,p){1&f&&o.DNE(0,qe,19,1,"div",0)(1,rt,7,0,"div",0),2&f&&(o.Y8G("ngIf",0==p.breakIn),o.R7$(),o.Y8G("ngIf",1==p.breakIn&&"Liability"==p.policyType))},dependencies:[O.bT,Ge.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 D})();var Q=m(89417),at=m(63620);const lt=D=>({"form-group-error":D});function Ue(D,W){1&D&&(o.j41(0,"small"),o.EFF(1," Please Enter Your PAN Card Number"),o.k0s())}function Ze(D,W){1&D&&(o.j41(0,"small"),o.EFF(1," Please Enter Valid PAN Card Number"),o.k0s())}function ct(D,W){if(1&D&&(o.j41(0,"div",14),o.DNE(1,Ue,2,0,"small",15)(2,Ze,2,0,"small",15),o.k0s()),2&D){let d,f;const p=o.XpG();o.R7$(),o.Y8G("ngIf",null==(d=p.panCardForm.get("panCard"))||null==d.errors?null:d.errors.required),o.R7$(),o.Y8G("ngIf",null==(f=p.panCardForm.get("panCard"))||null==f.errors?null:f.errors.pattern)}}let dt=(()=>{class D{constructor(d,f,p){this.fb=d,this.journeyHomeService=f,this.motorJourneyRepository=p,this.panCard=sessionStorage.getItem("panCard"),this.pancardValidations=new o.bkB,this.panCardForm=this.fb.group({panCard:new Q.hs(sessionStorage.getItem("panCard")?sessionStorage.getItem("panCard"):"",[Q.k0.required,Q.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(d){console.log(d)}static{this.\u0275fac=function(f){return new(f||D)(o.rXU(Q.ze),o.rXU(ae.L
1),o.rXU(Me.ml))}}static{this.\u0275cmp=o.VBU({type:D,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(f,p){if(1&f&&(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(R){return p.animationCreated(R)}),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(R){return p.panCard=R.toUpperCase()})("keyup",function(){return p.onAddedPanCard()}),o.k0s(),o.DNE(14,ct,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&f){let V,R;o.R7$(6),o.Y8G("options",p.options),o.R7$(),o.Y8G("formGroup",p.panCardForm),o.R7$(),o.Y8G("ngClass",o.eq3(5,lt,(null==(V=p.panCardForm.get("panCard"))?null:V.invalid)&&((null==(V=p.panCardForm.get("panCard"))?null:V.dirty)||(null==(V=p.panCardForm.get("panCard"))?null:V.touched)))),o.R7$(5),o.Y8G("ngModel",p.panCard),o.R7$(),o.Y8G("ngIf",(null==(R=p.panCardForm.get("panCard"))?null:R.invalid)&&((null==(R=p.panCardForm.get("panCard"))?null:R.dirty)||(null==(R=p.panCardForm.get("panCard"))?null:R.touched)))}},dependencies:[O.YU,O.bT,at.ZP,Ge.xm,Q.qT,Q.me,Q.BC,Q.cb,Q.xh,Q.tU,Q.j4,Q.JD],styles:[".pan-card svg{width:95px!important}"]})}}return D})();function mt(D,W){if(1&D){const d=o.RV6();o.j41(0,"div",14)(1,"app-summary-pan-card",15),o.bIt("pancardValidations",function(p){o.eBV(d);const V=o.XpG();return o.Njj(V.panCardValue(p))}),o.k0s()()}}function ut(D,W){1&D&&(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(D,W){if(1&D){const d=o.RV6();o.j41(0,"button",29),o.bIt("click",function(){o.eBV(d);const p=o.XpG(2);return o.Njj(p.breakInJourneyContinueCtaFourWheeler())}),o.EFF(1,"Continue"),o.k0s()}}function ht(D,W){1&D&&(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 gt(D,W){if(1&D){const d=o.RV6();o.j41(0,"button",29),o.bIt("click",function(){o.eBV(d);const p=o.XpG(2);return o.Njj(p.checkVCTypeWithChassinNO())}),o.EFF(1,"Continue"),o.k0s()}}function ft(D,W){if(1&D&&(o.j41(0,"div",16)(1,"div",17)(2,"div",18),o.DNE(3,ut,11,0,"div",19)(4,pt,2,0,"button",20)(5,ht,11,0,"div",19)(6,gt,2,0,"button",20),o.k0s()()()),2&D){const d=o.XpG();o.R7$(3),o.Y8G("ngIf","MotorPrivateCar"==d.journeyName),o.R7$(),o.Y8G("ngIf","MotorPrivateCar"==d.journeyName),o.R7$(),o.Y8G("ngIf","MotorTwoWheeler"==d.journeyName),o.R7$(),o.Y8G("ngIf","MotorTwoWheeler"==d.journeyName)}}const vt=[{path:"",component:(()=>{class D{constructor(d,f,p,V,R,H,he,Ee,_,U){this.modalService=d,this.motorJourneyProductPlanRepository=f,this.motorJourneyOwnerDetailsRepository=p,this.motorJourneyVehicalDetailsRepository=V,this.motorJourneyRepository=R,this.motorJourneyCkycRepository=H,this.journeyHomeService=he,this.journeyRestService=Ee,this.transactionService=_,this._common=U,this.panCardActive=!1,this.finalPremium=16889,this.subscription=new L.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,B.p)(d=>!!d)).subscribe(d=>{d.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,B.p)(d=>!!d)).subscribe(d=>{this.quotationDialogDtls=d,this.journeyName=d.journeyName,this.ownerPhoneNo=d.vehicleOwnerMobileNumber?d.vehicleOwnerMobileNumber:"--"}))}initOwnerDetails(){this.subscription.add(this.motorJourneyOwnerDetailsRepository.motorJourneyVehicleDetails$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.ownerDetails=d||"--"}))}initVehicleDetails(){this.subscription.add(this.motorJourneyVehicalDetailsRepository.motorJourneyVehicleDetails$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.vehicleDetails=d||"--"}))}panCardStaus(){this.journeyHomeService.emitFinalPremium.subscribe(d=>{d&&d>=5e4?(this.panCardActive=!0,this.journeyHomeService.panCardStatus.next(this.panCardActive)):this.panCardActive=!1})}initActiveProduct(){this.motorJourneyProductPlanRepository.selectActiveProductPlan$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.productPlan=d,this.finalPremium=parseInt(this.productPlan.finalPremium)})}initCoverDiscount(){this.subscription.add(this.motorJourneyRepository.selectedAddonsAndCoverageCoversAndDiscount$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.selectedCoverDiscounts=d.coversDiscount,this.selectedAddon=d.addonCoverage}))}initJourneyDetails(){this.subscription.add(this.motorJourneyRepository.motorJourney$.pipe((0,B.p)(d=>!!d)).subscribe(d=>{this.proposalData=d}))}productId(){this.subscription.add(this.motorJourneyRepository.motorJourney$.subscribe(d=>
1{this.alternateProdId=d.productCode.productCode}))}panCardValue(d){this.pancardValue=d}generatePostBodyForInspectionReferenceIdApi(){this.motorJourneyOwnerDetailsRepository.getMotorJourneyOwnerDetailsValue();const f=this.motorJourneyVehicalDetailsRepository.getMotorJourneyVehicalDetailsValue();return{Authentication:{WACode:`${Ne.c.WACode}`,WAAppCode:`${Ne.c.WAAppCodeMotor}`,ProductCode:this.productPlan?.id||this.alternateProdId},Name:f.rc_owner_first_name,Email:f.rc_owner_email_id,mobileNumber:this.ownerPhoneNo,Address:f.rc_permanent_address,regNumber:f.rc_regn_no,VehicleType:f.rc_vch_catg,Make:f.rc_maker_desc,brand:f.rc_maker_model,ModelYear:f.rc_manu_month_yr,FuelType:f.rc_fuel_desc,regType:f.rc_vh_class_desc,ReferenceId:""}}breakInJourneyContinueCtaFourWheeler(){this.journeyHomeService.createInspectionReferenceId(this.generatePostBodyForInspectionReferenceIdApi()).pipe((0,t.n)(d=>this._common.CKYCSendSms({mobileNo:d.mobileNumber,smsContent:"Dear Customer, Your journey is break-in and your vehicle inspection process has been initiated by Universal Sompo. Your reference no is "+d.ReferenceId+". You will soon get notified with further instruction"}).pipe((0,I.T)(f=>({sendSmsApiSucRes:f,createReferenceIdForBreakingInspectioApinSucRes:d}))))).subscribe(d=>{console.log(d),this.ReferenceId=d.createReferenceIdForBreakingInspectioApinSucRes?.ReferenceId;const f=this.motorJourneyCkycRepository.getMotorJourneyCkycValue(),p=this.motorJourneyOwnerDetailsRepository.getMotorJourneyOwnerDetailsValue();let H,he;this.journeyHomeService.storeBreakinData({first_name:f.firstName,middle_name:f.middleName,last_name:f.lastName,email:f.email,phone:this.ownerPhoneNo,address1:f.address1,address2:f.address2,address3:f.address3,pincode:f.pincode,city:f.city,state:f.state,reg_number:p.ownerRegistrationNo,chassis_number:p.ownerChasisNo,engine_number:p.ownerEngineNo,prev_policy_no:p.ownerPreviousPolicyNo,prev_policy_company:p.ownerPreviousPolicyCompany,prev_policy_end_date:p.ownerPreviousPolicyEndDate,prev_policy_type:p.ownerPreviousPolicyType,product_name:"",product_code:"",pos_policy_no:"",breakin_ref_id:this.ReferenceId,breakin_status:"true"}).subscribe(v=>{console.log(v)}),this.motorJourneyRepository.motorJourney$.subscribe(v=>{H=v,he=v.previousPolicyDialog.previousPolicyEndDate});let Ee=he?new Date(this.dateConvertToMMDDYYYY(he)):null,_=Ee?e(Ee.setDate(Ee.getDate()+1)).format():null,U=new Date;U.setDate(U.getDate()+1);let s=e(U).format(),u={paymentTransactionID:0,insurerMasterID:H.quotationDialog.insurerMasterID,policyStartDate:_?new Date(_):new Date(s),ownDamagePrmAmt:H.costSummaryData.basic_OD,tpPremAmt:H.costSummaryData.basic_TP,discount:H.costSummaryData.other_discount,ncbDiscount:H.costSummaryData.ncbDiscount,totalAddOn:H.costSummaryData.addon_Total,totalAddlCover:H.costSummaryData.additional_Cover_Total,netPremium:H.costSummaryData.netPremium,gstPercentage:"18",gstAmount:H.costSummaryData.gstIn,finalPremium:H.costSummaryData.totalPremium,panNumber:H.panCard,quotationID:H.quotationDialog.quotationId||"",breakIn_Flag:H.previousPolicyDialog.breakIn||!1,breakIn_ID:this.ReferenceId||"",posPolicyNumber:H.posPolicyNo.posPolicyNo||"",paymentStatus:"TRUE"};this.transactionService.postPaymentsDetailsData(u).subscribe(v=>{console.log(v),this.motorJourneyRepository.saveCustomerDetails({payDataId:v.id,paymentTransactionID:v.paymentTransactionID})}),this.openBreakinThankYouPopup(this.ReferenceId)})}dateConvertToMMDDYYYY(d){const[f,p,V]=d?.split("/");return`${p}/${f}/${V}`}breakInJourneyContinueCtaTwoWheeler(){this.journeyHomeService.breakInTwoWheeler.next(!0)}openBreakinThankYouPopup(d){this.modalService.show(J.W,Object.assign({class:"edit-claim-popup modal-lg",initialState:{refId:d},backdrop:"static"}))}leftPanelDetailCard(){this.bsmodelRef=this.modalService.show(Ie.S,Object.assign({},{class:"left-panel-detail-card-popup"}))}checkVCTypeWithChassinNO(){const d={WACode:"20000141",WAAppCode:"30000143",regnNo:this.quotationDialogDtls?.vehicleNumber?this.quotationDialogDtls?.vehicleNumber.toUpperCase():"",chasiNo:this.vehicleDetails?.rc_chasi_no};this._common.vahanAPIWithChassinNO(d).subscribe(f=>{"M-Cycle/Scooter"==f?.vehicleClass?this.breakInJourneyContinueCtaTwoWheeler():this.vcModelMismatchedPopup("Your vehicle details are not matching with your registration number.")})}vcModelMismatchedPopup(d){this.bsmodelRef=this.modalService.show(we.h,Object.assign({class:"login-process-popup modal
1-lg bottom-slide",backdrop:"static",keyboard:!1,initialState:{textDescription:d}}))}static{this.\u0275fac=function(f){return new(f||D)(o.rXU(Ce.I8),o.rXU(te.CH),o.rXU(Re.ts),o.rXU(xe.Mq),o.rXU(Me.ml),o.rXU(Be.WM),o.rXU(ae.L),o.rXU(X.I),o.rXU(Qe.k),o.rXU(Je.h))}}static{this.\u0275cmp=o.VBU({type:D,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(f,p){1&f&&(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,mt,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,ft,7,4,"div",13)),2&f&&(o.R7$(),o.Y8G("breakIn",p.breakInStatus),o.R7$(8),o.Y8G("ngIf",p.panCardActive),o.R7$(11),o.Y8G("ngIf",p.breakInStatus))},dependencies:[O.bT,et.dg,be,Te,$e,st,dt]})}}return D})()}];let yt=(()=>{class D{static{this.\u0275fac=function(f){return new(f||D)}}static{this.\u0275mod=o.$C({type:D})}static{this.\u0275inj=o.G2t({imports:[M.iI.forChild(vt),M.iI]})}}return D})();var Ct=m(5452);let bt=(()=>{class D{static{this.\u0275fac=function(f){return new(f||D)}}static{this.\u0275mod=o.$C({type:D})}static{this.\u0275inj=o.G2t({imports:[O.MD,Ct.PluginsModule,Q.YN,Q.X1,yt]})}}return D})()}}]);

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.