1"use strict";(self.webpackChunkusgi=self.webpackChunkusgi||[]).push([[8661],{18661:(Te,A,c)=>{c.r(A),c.d(A,{HealthChoosePlanModule:()=>Ee});var g=c(60177),D=c(46359),e=c(54438),G=c(98699),b=c(50779),F=c(41392),j=c(61575),x=c(93442),U=c(5992);const L=()=>["/health-insurance"],Y=o=>({rotate:o});let X=(()=>{class o{constructor(t,i,n,a){this.modalService=t,this.healthJourneyGenderRepository=i,this.healthJourneypdpRepository=n,this._chooseplan=a,this.isCollapsed=!1,this.memberCount=0,this.totalMember=0,this.members=0,this.Parents=0,this.isChildChecked=0,this.isCollapsed=window.innerWidth<767}ngOnInit(){this.healthJourneyGenderRepository.healthJourneygender$.subscribe(t=>{this.health_header_data=t}),this.healthJourneypdpRepository.healthJourneyPersonalDetails$.subscribe(t=>{this.details=t,this.members=0,this.Parents=0,1==t.isSelf&&(this.members=this.members+1),1==t.mother&&(this.Parents=this.Parents+1),1==t.father&&(this.Parents=this.Parents+1),1==t.fatherInLaw&&(this.Parents=this.Parents+1),1==t.motherInLaw&&(this.Parents=this.Parents+1),1==t.spouse&&(this.members=this.members+1),this.isChildChecked=1==t.child?this.details?.childcount:0,this.memberCount=this.members,this.totalMember=this.memberCount+this.isChildChecked+this.Parents})}openMembersPopup(){this.modalService.show(G.Z,Object.assign({class:"members-popup modal-lg",backdrop:"static"}))}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(b.I8),e.rXU(F.KI),e.rXU(j.hF),e.rXU(x.o))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-health-buy-choose-plan-header"]],decls:50,vars:16,consts:[[1,"vehicle-details-wrapper","p-lg-3","mb-5"],[1,"row","m-0","position-relative"],[1,"col-12","col-lg-9","vehicle-details-left","p-3","p-lg-0"],[1,"row","m-0"],[1,"col-12","col-lg-3","sub-details-left","align-items-center","p-0","d-flex"],[1,"d-none","d-lg-block",3,"routerLink"],["src","./assets/images/icons/back-arrow.svg","alt","back-arrow"],["src","./assets/images/family.png","alt","family",1,"img-fluid","car-img"],[1,"col-12","col-lg-9","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-0","mt-lg-3","pl-0","pl-lg-4"],[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"],[1,"sub-details-blk2","mb-3","mb-lg-0"],[1,"fs-12","montserrat-bold","text-bold","text-black","pt-1"],[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-3","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","mb-4","mb-xl-2"],[1,"fs-14","montserrat-bold","text-bold","text-black","mr-2"],["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"],["id","claimBouns",1,"row","pt-1","collapsex"],[1,"col-6","col-lg-4"],[1,"col-6","col-lg-8"],[1,"d-inline","d-lg-block"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"a",5),e.nrm(6,"img",6),e.k0s(),e.nrm(7,"img",7),e.k0s(),e.j41(8,"div",8)(9,"div",9)(10,"div",10)(11,"p",11),e.EFF(12,"Name "),e.k0s(),e.j41(13,"p",12),e.EFF(14),e.k0s()(),e.j41(15,"div",13)(16,"p",11),e.EFF(17," Product Name "),e.k0s(),e.j41(18,"p",14),e.EFF(19," Complete Healthcare Insurance "),e.k0s()(),e.j41(20,"div",15)(21,"p",11),e.EFF(22," Product Type "),e.k0s(),e.j41(23,"p",16),e.EFF(24," Health "),e.k0s()()()()(),e.j41(25,"figure",17),e.bIt("click",function(){return n.isCollapsed=!n.isCollapsed}),e.nrm(26,"img",18),e.k0s()(),e.j41(27,"div",19)(28,"div",20)(29,"p",21),e.EFF(30,"Member Details "),e.k0s(),e.j41(31,"a",22),e.bIt("click",function(){return n.openMembersPopup()}),e.nrm(32,"img",23),e.k0s()(),e.j41(33,"div",24)(34,"div",25)(35,"p",11),e.EFF(36,"Total"),e.k0s(),e.j41(37,"p",14),e.EFF(38),e.k0s()(),e.j41(39,"div",26)(40,"p",11),e.EFF(41,"Age Group"),e.k0s(),e.j41(42,"div")(43,"p",14)(44,"span",27),e.EFF(45),e.k0s(),e.j41(46,"span",27),e.EFF(47),e.k0s(),e.j41(48,"span"),e.EFF(49),e.k0s()()()()()()()()),2&i&&(e.R7$(5),e.Y8G("routerLink",e.lJ4(13,L)),e.R7$(9),e.SpI(" ",null==n.health_header_data?null:n.health_header_data.userName," "),e.R7$(11),e.Y8G("ngClass",e.eq3(14,Y,n.isCollapsed)),e.BMQ("aria-expanded",!n.isCollapsed),e.R7$(2),e.Y8G("collapse",n.isCollapsed)("isAnimated",!0),e.R7$(11),e.SpI(" ",n.totalMember," "),e.R7$(7),e.Lme("",n.memberCount," Adult",n.memberCount>1?"s":"",""),e.R7$(2),e.Lme("",n.isChildChecked," Children",n.isChildChecked>1?"s":"",""),e.R7$(2),e.Lme("",n.Parents," Parent",n.Parents>1?"s":"",""))},dependencies:[g.YU,D.Wk,U.D],styles:[".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-blk3[_ngcontent-%COMP%]{width:25%}.vehicle-details-left[_ngcontent-%COMP%] .sub-details-right[_ngcontent-%COMP%] .sub-details-blk2[_ngcontent-%COMP%]{width:40%} .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}.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}.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-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}#claimBouns[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:45%}}"]})}}return o}
1)();var l=c(89417),f=c(5964),v=c(10444),y=c(18359),C=c(96697),_=c(92965);let V=(()=>{class o{constructor(t,i){this.modalService=t,this.healthJourneyConfig=i,this.subscriptions=new y.yU,this.discountData=[],this.sublimitBenefitForm=new l.J3({checkbox1:new l.hs("A",[l.k0.required])})}ngOnDestroy(){this.subscriptions.unsubscribe()}saveCheckedData(t){this.sublimitBenefitForm.controls.checkbox1.patchValue(t)}ngOnInit(){$('input[name="sublimit"][value="A"]').prop("checked",!0),this.subscriptions.add(this.healthJourneyConfig.healthJoruneyConfigAdditionalDiscount$.pipe((0,f.p)(t=>!!t),(0,C.s)(1)).subscribe(t=>{this.discountData=[...t],this.discountData.filter(i=>"Sub Category Discount"==i.name).forEach(i=>{this.saveCheckedData(i.rate),setTimeout(()=>{$('input[name="sublimit"][value="'+i.rate+'"]').prop("checked",!0)},100)})}))}closePopup(){this.healthJourneyConfig.healthJoruneyConfigSelectedDiscounts$.pipe((0,C.s)(1)).subscribe(t=>{(t=t.filter(a=>"Sub Category Discount"!=a.name)).push({name:"Sub Category Discount",active:!0,disabled:!1});let n=this.discountData.filter(a=>"Sub Category Discount"==a.name);if(n.length>0)n.forEach(a=>{a.rate=this.sublimitBenefitForm.value.checkbox1});else{let a={name:"Sub Category Discount"};a.rate=this.sublimitBenefitForm.value.checkbox1,this.discountData.push(a)}(0,v.Bt)(()=>{this.healthJourneyConfig.saveSelectedAdditionalDiscount(this.discountData),this.healthJourneyConfig.saveSelectedDiscount(t)})}),this.modalService.hide()}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(b.I8),e.rXU(_.NP))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-journey-sublimit-benefit-popup"]],decls:29,vars:1,consts:[[1,"popup-wrapper","sublimit-popup","text-center","py-3","py-lg-4","px-lg-3"],[1,"popup-header","position-relative"],["href","javascript:void(0)","aria-label","Close",1,"close",3,"click"],["src","./assets/images/icons/close-btn.svg","alt","close-btn"],[1,"popup-body","px-lg-5","px-3","px-lg-0"],[1,"sublimit-icon","text-center","mb-2","mb-lg-4"],["src","./assets/images/usgi-icons/sublimit-shild.svg","alt","",1,"mx-auto"],[1,"montserrat-bold","text-bold","text-dark","mb-2","mb-lg-4","text-center"],[1,"fs-16","text-primary","montserrat-medium","text-medium","mb-3","mb-lg-4"],[3,"formGroup"],[1,"form-group","radio-btn-sm"],[1,"radio-data","d-flex","flex-wrap","justify-content-center"],[1,"text-primary","mr-lg-5","mr-3","mb-3","mb-lg-0"],["type","radio","value","A","name","sublimit",3,"click"],[1,"checkmark"],["type","radio","value","B","name","sublimit",3,"click"],[1,"text-primary","mb-3","mb-lg-0"],["type","radio","value","C","name","sublimit",3,"click"],[1,"text-center","mt-4","mt-lg-5"],[1,"btn","btn-danger",3,"click"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"a",2),e.bIt("click",function(){return n.modalService.hide()}),e.nrm(3,"img",3),e.k0s()(),e.j41(4,"div",4)(5,"figure",5),e.nrm(6,"img",6),e.k0s(),e.j41(7,"h5",7),e.EFF(8," Sublimit Benefit "),e.k0s(),e.j41(9,"p",8),e.EFF(10,"Choose the Sublimit value "),e.k0s(),e.j41(11,"form",9)(12,"div",10)(13,"div",11)(14,"label",12),e.EFF(15," Sub limit A "),e.j41(16,"input",13),e.bIt("click",function(){return n.saveCheckedData("A")}),e.k0s(),e.nrm(17,"span",14),e.k0s(),e.j41(18,"label",12),e.EFF(19," Sub limit B "),e.j41(20,"input",15),e.bIt("click",function(){return n.saveCheckedData("B")}),e.k0s(),e.nrm(21,"span",14),e.k0s(),e.j41(22,"label",16),e.EFF(23," Sub limit C "),e.j41(24,"input",17),e.bIt("click",function(){return n.saveCheckedData("C")}),e.k0s(),e.nrm(25,"span",14),e.k0s()()()(),e.j41(26,"div",18)(27,"button",19),e.bIt("click",function(){return n.closePopup()}),e.EFF(28,"Proceed "),e.k0s()()()()),2&i&&(e.R7$(11),e.Y8G("formGroup",n.sublimitBenefitForm))},dependencies:[l.qT,l.cb,l.j4],styles:[".sublimit-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70px} .sublimit-popup .form-group.radio-btn-sm .radio-data label{padding:0 0 0 30px}@media screen and (max-width: 992px){.sublimit-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:55px}.sublimit-popup[_ngcontent-%COMP%] .fs-16[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.sublimit-popup[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin-right:0}}"]})}}return o}
1)();var O=c(12254);let W=(()=>{class o{constructor(t,i,n,a){this.modalService=t,this.healthJoruneyConfig=i,this.fb=n,this.healthJourneyChoosePlanRepository=a,this.activePlan$=new y.yU,this.personalAccidentForm=this.fb.group({checkbox1:new l.hs("A",[l.k0.required])})}ngOnDestroy(){this.activePlan$.unsubscribe()}saveCheckedData(t){this.personalAccidentForm.controls.checkbox1.patchValue(t)}ngOnInit(){$('input[name="paCover"][value="A"]').prop("checked",!0),this.healthJoruneyConfig.healthJoruneyConfigPersonalAccidentCatValue$.pipe((0,f.p)(t=>!!t),(0,C.s)(1)).subscribe(t=>{this.saveCheckedData(t),setTimeout(()=>{$('input[name="paCover"][value="'+t+'"]').prop("checked",!0)},100)})}closePopup(){let t=this.personalAccidentForm.value.checkbox1;this.healthJoruneyConfig.savePersonalAccidentCategory(this.personalAccidentForm.value.checkbox1),this.activePlan$.add(this.healthJourneyChoosePlanRepository.healthJourneyActivePlan$.pipe((0,f.p)(i=>!!i)).subscribe(i=>{this.healthJoruneyConfig.healthJoruneyConfigPackageAndAdditionCoverSelected$.pipe((0,C.s)(1)).subscribe(n=>{let a=i.active_comfort_option.yearPlanWise[n.yearSelected-1];a.api_data.Root.Product.GeneralProposal.GeneralProposalGroup.GeneralProposalInformation.PersonalAccidentCategory==t&&a.all_sum_array.filter(s=>"Personal Accident Cover"==s.CoverGroups).forEach(s=>{s.active=!0,s.disabled=!1,n.selectedAdditionalCoverAndDiscount.push(s),this.healthJoruneyConfig.saveSelectedAdditionalCoverAndDiscount(n.selectedAdditionalCoverAndDiscount),this.activePlan$.unsubscribe(),this.modalService.hide()})})}))}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(b.I8),e.rXU(_.NP),e.rXU(l.ze),e.rXU(O.Jb))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-journey-personal-accident-cover-popup"]],decls:21,vars:1,consts:[[1,"popup-wrapper","sublimit-popup","text-center","py-3","py-lg-4","px-lg-3"],[1,"popup-header","position-relative"],["href","javascript:void(0)","aria-label","Close",1,"close",3,"click"],["src","./assets/images/icons/close-btn.svg","alt","close-btn"],[1,"popup-body","px-lg-5","px-3","px-lg-0"],[1,"sublimit-icon","text-center","mb-2","mb-lg-4"],["src","./assets/images/usgi-icons/medical-insurance-shild.svg","alt","",1,"mx-auto"],[1,"montserrat-bold","text-bold","text-dark","mb-2","mb-lg-4","text-center"],[1,"fs-16","text-primary","montserrat-medium","text-medium","mb-3","mb-lg-4"],[3,"formGroup"],[1,"form-group","radio-btn-sm"],[1,"radio-data","d-flex","flex-wrap","justify-content-center"],[1,"text-primary","mr-lg-5","mr-3","mb-3","mb-lg-0"],["type","radio","value","A","name","paCover",3,"click"],[1,"checkmark"],[1,"text-center","mt-4","mt-lg-5"],[1,"btn","btn-danger",3,"click"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"a",2),e.bIt("click",function(){return n.modalService.hide()}),e.nrm(3,"img",3),e.k0s()(),e.j41(4,"div",4)(5,"figure",5),e.nrm(6,"img",6),e.k0s(),e.j41(7,"h5",7),e.EFF(8," Personal Accident Cover "),e.k0s(),e.j41(9,"p",8),e.EFF(10,"Select personal accident cover category"),e.k0s(),e.j41(11,"form",9)(12,"div",10)(13,"div",11)(14,"label",12),e.EFF(15," Type A "),e.j41(16,"input",13),e.bIt("click",function(){return n.saveCheckedData("A")}),e.k0s(),e.nrm(17,"span",14),e.k0s()()()(),e.j41(18,"div",15)(19,"button",16),e.bIt("click",function(){return n.closePopup()}),e.EFF(20,"Proceed "),e.k0s()()()()),2&i&&(e.R7$(11),e.Y8G("formGroup",n.personalAccidentForm))},dependencies:[l.qT,l.cb,l.j4],styles:[".sublimit-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70px} .sublimit-popup .form-group.radio-btn-sm .radio-data label{padding:0 0 0 30px}@media screen and (max-width: 992px){.sublimit-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:55px}.sublimit-popup[_ngcontent-%COMP%] .fs-16[_ngcontent-%COMP%]{font-size:14px;line-height:18px}.sublimit-popup[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin-right:0}}"]})}}return o})();var J=c(534),M=c(41198),E=c(81779);const K=o=>({"bg-danger , text-white":o});function Z(o,m){if(1&o&&(e.EFF(0),e.nrm(1,"br"),e.j41(2,"span",24),e.EFF(3),e.k0s()),2&o){const t=e.XpG().$implicit;e.SpI("",t.toolTipDes," "),e.R7$(3),e.JRh(t.message)}}function Q(o,m){if(1&o){const t=e.RV6();e.j41(0,"div",8),e.nrm(1,"input",9),e.j41(2,"label",10)(3,"div",11)(4,"div",12)(5,"div",13)(6,"figure",14),e.nrm(7,"img",15),e.k0s(),e.j41(8,"div",16)(9,"p",17),e.EFF(10),e.k0s(),e.j41(11,"div",18),e.nrm(12,"img",19),e.DNE(13,Z,4,2,"ng-template",null,1,e.C5r),e.k0s()()(),e.j41(15,"div",20)(16,"h5",21),e.EFF(17),e.nI1(18,"customIndianCurrency"),e.j41(19,"span",22),e.EFF(20,"p.a."),e.k0s()(),e.j41(21,"a",23),e.bIt("click",function(){const n=e.eBV(t).$implicit,a=e.XpG();return e.Njj(!(null!=n&&n.hard_active)&&a.add_addons(n,null==n?null:n.active))}),e.EFF(22),e.k0s()()()()()()}if(2&o){const t=m.$implicit,i=m.index,n=e.sdS(14),a=e.XpG();e.R7$(),e.FS9("id","addonId"+i),e.R7$(6),e.FS9("src",null==t?null:t.imgSrc,e.B4B),e.R7$(3),e.SpI(" ",(null==t?null:t.addonName)+(null!=t&&t.addonName.includes("Personal")?" - "+a.paCoverName:""),""),e.R7$(2),e.Y8G("tooltip",n),e.R7$(5),e.SpI(" ",e.bMT(18,7,null==t?null:t.amount)," "),e.R7$(4),e.Y8G("ngClass",e.eq3(9,K,(null==t?null:t.hard_active)||(null==t?null:t.active))),e.R7$(),e.SpI(" ",null!=t&&t.hard_active?"Added":null!=t&&t.active?"Remove":"Add"," ")}}let q=(()=>{class o{constructor(t,i,n,a,s,d){this.fb=t,this.modalService=i,this.healthJourneyChoosePlanRepository=n,this.healthJourneypdpRepository=a,this.healthJourneyGender_Repository=s,this.healthJourneyConfig=d,this.selectedAddons={},this.add_onsdata=[],this.addonData=[],this.sex="female",this.show=!1,this.addonsData=[],this.unaddAddons=[],this.addOnCoverages=[{imgSrc:"/assets/images/usgi-icons/Pre-Hospitalization.svg",addonName:"Basic Insurance Cover",toolTipDes:"Opt this add-on to increase the limit of Pre-Hospitalization expenses of 30 days to 90 days.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Pre-Hospitalization.svg",addonName:"Extension under Pre-Hospitalization",toolTipDes:"Opt this add-on to increase the limit of Pre-Hospitalization expenses of 30 days to 90 days.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Post-Hospitalization.svg",addonName:"Extension under Post-Hospitalization",toolTipDes:"Opt this add-on to increase the limit of Post-Hospitalization expenses of 60 days to 120 days.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Maternity-and-Childcare-Benefit.svg",addonName:"Maternity and Childcare Benefit Waiting Perio
1d Modification",toolTipDes:"Decrease your awaiting period from 36 month to 24 months, with this add-on",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Coverage-for-Non-Medical-Items.svg",addonName:"Coverage for Non-Medical Items",toolTipDes:"Cover yourself against payment of non-medical items by chosing this add-on.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Condition-waiver-under-Restore-Benefit.svg",addonName:"Condition waiver under Restore Benefit",toolTipDes:"Opt this add-on to use your restored premium. ",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Daily-Hospital-Cash-Cover.svg",addonName:"Daily Hospital Cash Cover",toolTipDes:"If you are hospitalized for more than 3 days, a daily cash allowance will be provided by opting this add-on.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Personal-Accident-Cover-A.svg",addonName:"Personal Accident Cover",toolTipDes:"This add-on covers accidental death by bodily injury & permanent total disability conditions resulting from an Accident.",message:"Note : this add-on will not applicable for below 5 year age children.",amount:"0",active:!0,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Critical-Illness-Cover.svg",addonName:"Critical Illness Cover",toolTipDes:"Opt this add-on to cover against Critical Illness such as Heart attack, Stroke, Organ transplant, Kidney failure, Cancer etc.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Pre-Existing-Diseas-waiting-period.svg",addonName:"Pre-Existing Disease waiting period",toolTipDes:"If you have pre-existing disease, opt this add-on to decrease your waiting period to 12 months.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Outpatient-Dental.svg",addonName:"Outpatient Dental Waiting Period Modification",toolTipDes:"Decrease your waiting period for outpatient dental treatment from 36 month to 24 months, with this add-on.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Emergency-Travelling-Allowance.svg",addonName:"Emergency Travelling Allowance",toolTipDes:"If you reach hosiptal through ambulance or using paid cabs in medical situation during your traval, we cover you with this add-on.",amount:"0",active:!0,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Second-Opinion.svg",addonName:"Second Opinion",toolTipDes:"We will reimburse Your expenses incurred towards a second opinion from Network Medical Practitioner.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Rest-Cure.svg",addonName:"Rest Cure, Rehabilitation and Respite Care Nursing Care Expenses Extension",toolTipDes:"Opt this add-on to avail expenses related to rest cure, rehabilitation and respite care [Nursing Care] .",amount:"0",active:!0,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Weight-Control-Expenses-Extension.svg",addonName:"Obesity/ Weight Control Expenses Extension",toolTipDes:"Opt this add-on to cover yourself against expenses related to the surgical treatment of obesity.",amount:"0",active:!0,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Sterility-and-Infertility.svg",addonName:"Sterility and Infertility Treatment Expenses Extension",toolTipDes:"By opting this add-on we cover you against contraception, sterlization etc.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Enhance-Organ-Donor-Expenses.svg",addonName:"Enhanced Organ Donor Expenses",toolTipDes:"Opt this add-on and we will pay the Medical Expenses for an organ donor\u2019s treatment.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Premium-Waiver.svg",addonName:"Premium Waiver",toolTipDes:"Waive premium for renewal of 4th year of CHI policy by opting this add-on.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Global-Cover.svg",addonName:"Global Cover",toolTipDes:"Opt this add-on and we will insure you if you are outside of India for less than 180 days",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Medically-Advised-Support-Devices.svg",addonName:"Medically Advised Support Devices",toolTipDes:"Opt this add-on and your medically prescribed prosthetic or artificial device cost is on us.",amount:"0",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Emergency-Assistance-Service.svg",addonName:"Emergency Assistance Service",toolTipDes:"If you are more than 150 kms away from your registered address, opt this add-on to cover emergency medical requirements.",amount:"0",active:!0,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Home-Care-Treatment.svg",addonName:"Home Care Treatment",toolTipDes:"Opt this add-on and we will insure you against cost incurred in treatment at home.",amount:"890",active:!1,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Wellness-Benefit.svg",addonName:"Wellness Benefit",toolTipDes:"Opt this add-on where we provide comprehensive program to maintain the health and overall wellbeing of the insured person.",amount:"0",active:!0,hard_active:!1},{imgSrc:"/assets/images/usgi-icons/Disease-Management-Program.svg",addonName:"Disease Management Program",toolTipDes:"By opting this add-on we will show you how to deal with crucial diseases like diabetes, asthma, hypertension etc..",amount:"0",active:!1,hard_active:!1}],this.addOnsCheckBoxForms=this.fb.group({addOnsCheck1:["",l.k0.required]}),this.subscriptions=new y.yU,this.paCoverName="A",this.showBothPACover=!1,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}}]}}ngOnDestroy(){this.subscriptions.unsubscribe()}ngOnInit(){let t;this.self_gender=this.healthJourneyGender_Repository.getHealthJourneyGenderValue(),this.subscriptions.add(this.healthJourneyChoosePlanRepository.healthJourneyActivePlan$.pipe((0,f.p)(i=>!!i)).subscribe(i=>{i&&JSON.stringify(t)==JSON.stringify(i)||!i||(t=i,this.showBothPACover="Plus"==i.active_comfort_option.planTitle||"Premier"==i.active_comfort_option.planTitle||"Executive"==i.active_comfort_option.planTitle,this.add_onsdata=[],setTimeout(()=>{this.common_addons(i)},500))})),this.subscriptions.add(this.healthJourneyConfig.healthJoruneyConfigPersonalAccidentCatValue$.pipe((0,f.p)(i=>!!i)).subscribe(i=>{this.paCoverName=i}))}openMembersPopup(){this.modalService.show(V,Object.assign({class:"modal-lg",backdrop:"static"}))}openPcaMembersPopup(){this.modalService.show(W,Object.assign({class:"modal-lg",backdrop:"static"}))}condition_returns(t){let i=[];switch(t){case"Essential":case"Privilege":i.length=0,i.push("Sterility and Infertility Treatment Expenses Extension","Global Cover");break;case"Plus":case"Premier":case"Excutive":i.length=0,i.push();break;case"Digi-Pro":i.length=0,i.push("Maternity and Childcare Benefit Waiting Perio
1d Modification","Condition waiver under Restore Benefit","Coverage for Non-Medical Items","Daily Hospital Cash Cover","Personal Accident Cover","Critical Illness Cover","Outpatient Dental Waiting Period Modification","Emergency Travelling Allowance","Second Opinion","Rest Cure, Rehabilitation and Respite Care Nursing Care Expenses Extension","Obesity/ Weight Control Expenses Extension","Sterility and Infertility Treatment Expenses Extension","Enhanced Organ Donor Expenses","Global Cover","Medically Advised Support Devices","Home Care Treatment","Premium Waiver","Extension under Pre-Hospitalization","Extension under Post-Hospitalization")}return i}evaluateAddons(t,i){let n=[],a=this.condition_returns(i),s=`item.addonName !== '${a[0]}'`;for(let d=1;d<a.length;d++)s+=`&& item.addonName !== '${a[d]}'`;return n=t.filter(d=>!a.includes(d.addonName)),JSON.parse(JSON.stringify(n))}add_addons(t,i){if("sublimit"!=t.addonName||t.active)if("Personal Accident Cover"!=t.addonName||!this.showBothPACover||t.active)if(t.active=!i,t.hard_active=!1,t.addonName.includes("Treatment only in tiered network")||t.addonName.includes("sublimit")){if((this.selectedDiscount.filter(s=>s.name.toLowerCase()==("sublimit"==t.addonName?"Sub Category Discount":"Treatment only in tiered network").toLowerCase())||[]).length>0){let s=this.selectedDiscount.findIndex(d=>d.name.toLowerCase()==("sublimit"==t.addonName?"Sub Category Discount":"Treatment only in tiered network").toLowerCase());s>=0&&this.selectedDiscount.splice(s,1)}else{let s={};s&&(s.name="sublimit"==t.addonName?"Sub Category Discount":t.addonName,s.price=t.amount,s.active=!0,s.disabled=!1,this.selectedDiscount.push(s))}this.healthJourneyConfig.saveSelectedDiscount(this.selectedDiscount)}else{if((this.selectedAddonsData.filter(a=>t.addonName==a.CoverGroups)||[]).length>0){let a=this.selectedAddonsData.findIndex(s=>t.addonName==s.CoverGroups);a>=0&&this.selectedAddonsData.splice(a,1)}else{let a=this.activeAddonsData.find(s=>t.addonName==s.CoverGroups)||void 0;a&&(a.active=!0,a.disabled=!1,this.selectedAddonsData.push(a))}this.healthJourneyConfig.saveSelectedAdditionalCoverAndDiscount(this.selectedAddonsData)}else this.openPcaMembersPopup();else this.openMembersPopup()}common_addons(t){let n,i=this.evaluateAddons(this.addOnCoverages,t?.active_comfort_option?.planTitle);i=i?.filter(a=>"Basic Insurance Cover"!=a?.addonName),this.yearSubscriber&&this.yearSubscriber.unsubscribe(),this.yearSubscriber=this.healthJourneyConfig.healthJoruneyConfigPackageAndAdditionCoverSelected$.subscribe(a=>{if(a&&JSON.stringify(n)==JSON.stringify(a)||!a)return;n=JSON.parse(JSON.stringify(a)),this.add_onsdata.length>0&&(this.add_onsdata.length=0),"Digi-Pro"==t?.active_comfort_option?.planTitle&&(i=i.filter(r=>"Treatment only in tiered network"!=r?.addonName&&!r?.addonName.includes("Rest Cure")));let s=t.active_comfort_option.yearPlanWise[parseInt(a.yearSelected||"1")-1];this.activeAddonsData=s?.all_sum_array||[],this.activeDiscountsData=s?.discount||[],this.selectedAddonsData=a?.selectedAdditionalCoverAndDiscount||[],this.selectedDiscount=a?.selectedDiscounts||[];let d=0;this.selectedAddonsData.forEach(r=>{d+=parseInt(r.CoverPremium||0)});let h=parseInt(s?.basicPremium||"0.00")+d;i.forEach((r,p)=>{if(this.activeAddonsData?.forEach(u=>{u?.CoverGroups==r?.addonName&&(r.amount=u?.CoverPremium),r.active=!1,r.hard_active=!1}),"sublimit"==r?.addonName||"Treatment only in tiered network"==r?.addonName){let u=this.activeDiscountsData.find(P=>P.Description==("sublimit"==r?.addonName?"Sub Category Discount":r?.addonName));r.amount=h*(parseFloat(u.Rate)/100),r.hard_active=r.active=!1}}
1),i.forEach(r=>{this.selectedAddonsData?.forEach(p=>{r?.addonName==p?.CoverGroups&&(r.active=!0,r.hard_active=p.disabled)}),("sublimit"==r?.addonName||"Treatment only in tiered network"==r?.addonName)&&this.selectedDiscount?.forEach(p=>{("sublimit"==r?.addonName?"Sub Category Discount":r?.addonName)==p?.name&&(r.active=!0,r.hard_active=p.disabled)}),("sublimit"==r?.addonName||"Treatment only in tiered network"==r?.addonName)&&"Package 5"==a?.packagePlan&&(r.hard_active=r.active=!0)});let k=i.filter(r=>"0"!=r.amount||"sublimit"==r.addonName);JSON.stringify(k)!=JSON.stringify(this.add_onsdata)&&(this.add_onsdata=k)})}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(l.ze),e.rXU(b.I8),e.rXU(O.Jb),e.rXU(j.hF),e.rXU(F.KI),e.rXU(_.NP))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-health-add-ons"]],decls:9,vars:2,consts:[["slickModal","slick-carousel"],["tolTemplate",""],[1,"add-ons-content","health-buy-now-addons","mb-5","mb-md-4","mb-xl-5","pt-4"],[1,"add-ons-header","d-flex","justify-content-between"],[1,"montserrat-bolder","text-bolder","text-primary"],[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,"id"],[1,"p-0"],[1,"card","add-ons-cards","py-1","px-2"],[1,"card-body"],[1,"card-body-header","d-flex","align-items-center","mb-3"],[1,"mr-3","add-ons-icon"],["alt","...",1,"img-fluid","w-28",3,"src"],[1,"d-flex","add-ons-name"],[1,"fs-14","montserrat-bold","text-bold","montserrat-bold","text-primary","mr-2"],[1,"position-relative","custom-tooltip"],["src","./assets/images/icons/info-icon.svg","alt","info","placement","left",1,"img-fluid","info-icon",3,"tooltip"],[1,"card-body-blk","d-flex","justify-content-between","align-items-center","pb-1"],[1,"montserrat-bolder","text-bold","text-primary","montserrat-medium","d-flex","align-items-center"],[1,"fs-14","montserrat-medium","text-medium","pl-1"],["target","#addOnsCheck1","role","button",1,"btn","btn-danger",3,"click","ngClass"],[1,"d-inline-block","montserrat-bolder","text-bold"]],template:function(i,n){1&i&&(e.j41(0,"div",2)(1,"div",3)(2,"h5",4),e.EFF(3,"Add-Ons For You"),e.k0s()(),e.j41(4,"form")(5,"div",5)(6,"ngx-slick-carousel",6,0),e.DNE(8,Q,23,11,"div",7),e.k0s()()()()),2&i&&(e.R7$(6),e.Y8G("config",n.plansSlideConfig),e.R7$(2),e.Y8G("ngForOf",n.add_onsdata))},dependencies:[g.YU,g.Sq,l.qT,l.cb,l.cV,J.dg,M.qW,M.Hv,E.G],styles:[".health-buy-now-addons .add-ons-plan .slick-track{padding-top:30px}.health-buy-now-addons[_ngcontent-%COMP%] .w-28[_ngcontent-%COMP%]{width:28px}.cssclass[_ngcontent-%COMP%]{display:none!important;visibility:hidden!important}.add-ons-name[_ngcontent-%COMP%]{width:calc(100% - 30px)}.add-ons-name[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:calc(100% - 15px);line-height:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.add-ons-name[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{width:13px}@media screen and (max-width: 991.2px){.add-ons-plan[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{padding:0 10px!important}}.disable_addons[_ngcontent-%COMP%]{pointer-events:none}"]})}}return o})();var N=c(1807);let ee=(()=>{class o{constructor(t,i,n){this.modalService=t,this._choosePlan=i,this.options=n}ngOnInit(){let t=this.options?.initialState;t=t.planType,"Plus"==t&&(this.benefitsDetails={planName:t,planAmount:"(15 to 20 Lakhs)",benefitList:{inPatientHospitalization:"Up to Sum Insured",preHospitalization:'<span class="montserrat-bolder text-bolder">30</span> days',postHospitalization:'<span class="montserrat-bolder text-bolder">60</span> days',dayCare:'<img src="./assets/images/icons/green-right-icon.svg" alt="" class="img-fluid">',organDonar:"Up to Sum Insured",dailyCash:'Rs <span class="montserrat-bolder text-bolder">1000</span> per day subject to maximum of Rs <span\n class="montserrat-bolder text-bolder">30,000</span>',ambulanceCover:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">5000</span>
1/ Hospitalization',domiciliaryHospitalization:'Up to <span class="montserrat-bolder text-bolder">20%</span> SI'}}),"Premier"==t&&(this.benefitsDetails={planName:t,planAmount:"(25 to 30 Lakhs)",benefitList:{inPatientHospitalization:"Up to Sum Insured",preHospitalization:'<span class="montserrat-bolder text-bolder">30</span> days',postHospitalization:'<span class="montserrat-bolder text-bolder">60</span> days',dayCare:'<img src="./assets/images/icons/green-right-icon.svg" alt="" class="img-fluid">',organDonar:"Up to Sum Insured",dailyCash:'Rs <span class="montserrat-bolder text-bolder">2000</span> per day subject to maximum of Rs <span\n class="montserrat-bolder text-bolder">60,000</span>',ambulanceCover:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">10000</span>/ Hospitalization',domiciliaryHospitalization:'Up to <span class="montserrat-bolder text-bolder">20%</span> SI'}}),"Executive"==t&&(this.benefitsDetails={planName:t,planAmount:"(40 to 50 Lakhs)",benefitList:{inPatientHospitalization:"Up to Sum Insured",preHospitalization:'<span class="montserrat-bolder text-bolder">30</span> days',postHospitalization:'<span class="montserrat-bolder text-bolder">60</span> days',dayCare:'<img src="./assets/images/icons/green-right-icon.svg" alt="" class="img-fluid">',organDonar:"Up to Sum Insured",dailyCash:'Rs <span class="montserrat-bolder text-bolder">5000</span> per day subject to maximum of Rs <span\n class="montserrat-bolder text-bolder">1,50,000</span>',ambulanceCover:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">25,000</span>/ Hospitalization',domiciliaryHospitalization:'Up to <span class="montserrat-bolder text-bolder">20%</span> SI'}}),"Digi-Pro"==t&&(this.benefitsDetails={planName:t,planAmount:"(1 to 10 Lakhs)",benefitList:{inPatientHospitalization:"Up to Sum Insured",preHospitalization:'<span class="montserrat-bolder text-bolder">30</span> days',postHospitalization:'<span class="montserrat-bolder text-bolder">60</span> days',dayCare:'<img src="./assets/images/icons/green-right-icon.svg" alt="" class="img-fluid">',organDonar:"Up to Sum Insured",dailyCash:"NA",ambulanceCover:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">3000</span>/ Hospitalization',domiciliaryHospitalization:'Up to <span class="montserrat-bolder text-bolder">20%</span> SI'}}),"Basic"==t&&(this.benefitsDetails={planName:t,planAmount:"(1 to 2 Lakhs)",benefitList:{inPatientHospitalization:"Up to Sum Insured",preHospitalization:'<span class="montserrat-bolder text-bolder">30</span> days',postHospitalization:'<span class="montserrat-bolder text-bolder">60</span> days',dayCare:'<img src="./assets/images/icons/green-right-icon.svg" alt="" class="img-fluid">',organDonar:"Up to Sum Insured",dailyCash:"NA",ambulanceCover:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">1000</span>/ Hospitalization',domiciliaryHospitalization:'Up to <span class="montserrat-bolder text-bolder">20%</span> SI'}}),"Essential"==t&&(this.benefitsDetails={planName:t,planAmount:"(3 to 5 Lakhs)",benefitList:{inPatientHospitalization:"Up to Sum Insured",preHospitalization:'<span class="montserrat-bolder text-bolder">30</span> days',postHospitalization:'<span class="montserrat-bolder text-bolder">60</span> days',dayCare:'<img src="./assets/images/icons/green-right-icon.svg" alt="" class="img-fluid">',organDonar:"Up to Sum Insured",dailyCash:'Rs <span class="montserrat-bolder text-bolder">300</span> per day subject to maximum of Rs <span\n class="montserrat-bolder text-bolder">9000</span>',ambulanceCover:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">2,000</span>/ Hospitalization',domiciliaryHospitalization:'Up to <span class="montserrat-bolder text-bolder">20%</span> SI'}}),"Privilege"==t&&(this.benefitsDetails={planName:t,planAmount:"(6 to 10 Lakhs)",benefitList:{inPatientHospital
1ization:"Up to Sum Insured",preHospitalization:'<span class="montserrat-bolder text-bolder">30</span> days',postHospitalization:'<span class="montserrat-bolder text-bolder">60</span> days',dayCare:'<img src="./assets/images/icons/green-right-icon.svg" alt="" class="img-fluid">',organDonar:"Up to Sum Insured",dailyCash:'Rs <span class="montserrat-bolder text-bolder">500</span> per day subject to maximum of Rs <span\n class="montserrat-bolder text-bolder">15,000</span>',ambulanceCover:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">3000</span>/ Hospitalization',domiciliaryHospitalization:'Up to <span class="montserrat-bolder text-bolder">1%</span> SI or Rs. <span\n class="montserrat-bolder text-bolder">3000</span>/ Hospitalization'}})}closePopup(){this.modalService.hide()}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(b.I8),e.rXU(x.o),e.rXU(b.m_))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-journey-benefit-popup"]],decls:69,vars:10,consts:[[1,"popup-wrapper","journey-benefit-popup","py-3","py-lg-4","px-lg-3"],[1,"popup-header","position-relative"],["href","javascript:void(0)","aria-label","Close",1,"close",3,"click"],["src","./assets/images/icons/close-btn.svg","alt","close-btn"],[1,"popup-body","px-lg-5","px-3","px-lg-0"],[1,"benefit-icon","text-center","mb-2","mb-lg-4"],["src","./assets/images/icons/benefit-icons.svg","alt","",1,"mx-auto"],[1,"montserrat-bold","text-bold","text-dark","mb-2","mb-lg-4","text-center"],[1,"card","border-radius-8"],[1,"card-body","py-0","px-3"],[1,"py-2","text-center"],[1,"fs-18","text-danger","text-bolder","montserrat-bolder","d-block","mb-2"],[1,"plannig-rate","fs-12","montserrat-medium","d-block","mb-3"],[1,"row","py-2"],[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-medium","text-medium","text-dark",3,"innerHtml"],[1,"text-info","fs-16","montserrat-medium","text-medium","text-dark"],[1,"montserrat-bolder","text-bolder",3,"innerHtml"],[1,"text-center","mt-4"],[1,"btn","btn-danger",3,"click"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"a",2),e.bIt("click",function(){return n.closePopup()}),e.nrm(3,"img",3),e.k0s()(),e.j41(4,"div",4)(5,"figure",5),e.nrm(6,"img",6),e.k0s(),e.j41(7,"h5",7),e.EFF(8," Here are the Benefits! "),e.k0s(),e.j41(9,"div",8)(10,"div",9)(11,"ul")(12,"li",10)(13,"span",11),e.EFF(14),e.k0s(),e.j41(15,"span",12),e.EFF(16),e.k0s()(),e.j41(17,"li",13)(18,"div",14)(19,"div",15),e.EFF(20," In-Patient Hospitalization "),e.k0s()(),e.j41(21,"div",16),e.nrm(22,"div",17),e.k0s()(),e.j41(23,"li",13)(24,"div",14)(25,"div",15),e.EFF(26," Pre-Hospitalization "),e.k0s()(),e.j41(27,"div",16)(28,"div",18),e.nrm(29,"span",19),e.k0s()()(),e.j41(30,"li",13)(31,"div",14)(32,"div",15),e.EFF(33," Post-Hospitalization "),e.k0s()(),e.j41(34,"div",16),e.nrm(35,"div",17),e.k0s()(),e.j41(36,"li",13)(37,"div",14)(38,"div",15),e.EFF(39," Day care "),e.k0s()(),e.j41(40,"div",16),e.nrm(41,"div",17),e.k0s()(),e.j41(42,"li",13)(43,"div",14)(44,"div",15),e.EFF(45," Organ Donor "),e.k0s()(),e.j41(46,"div",16),e.nrm(47,"div",17),e.k0s()(),e.j41(48,"li",13)(49,"div",14)(50,"div",15),e.EFF(51," Daily Cash "),e.k0s()(),e.j41(52,"div",16),e.nrm(53,"div",17),e.k0s()(),e.j41(54,"li",13)(55,"div",14)(56,"div",15),e.EFF(57," Ambulance Cover "),e.k0s()(),e.j41(58,"div",16),e.nrm(59,"div",17),e.k0s()(),e.j41(60,"li",13)(61,"div",14)(62,"div",15),e.EFF(63," Domiciliary Hospitalization "),e.k0s()(),e.j41(64,"div",16),e.nrm(65,"div",17),e.k0s()()()()(),e.j41(66,"div",20)(67,"button",21),e.bIt("click",function(){return n.closePopup()}),e.EFF(68,"Proceed "),e.k0s()()()()),2&i&&(e.R7$(14),e.JRh(null==n.benefitsDetails?null:n.benefitsDetails.planName),e.R7$(2),e.JRh(null==n.benefitsDetails?null:n.benefitsDetails.planAmount),e.R7$(6),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.inPatientHospital
1ization,e.npT),e.R7$(7),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.preHospitalization,e.npT),e.R7$(6),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.postHospitalization,e.npT),e.R7$(6),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.dayCare,e.npT),e.R7$(6),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.organDonar,e.npT),e.R7$(6),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.dailyCash,e.npT),e.R7$(6),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.ambulanceCover,e.npT),e.R7$(6),e.FS9("innerHtml",null==n.benefitsDetails||null==n.benefitsDetails.benefitList?null:n.benefitsDetails.benefitList.domiciliaryHospitalization,e.npT))},styles:["@media screen and (max-width: 992px){.benefit-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:55px}.journey-benefit-popup[_ngcontent-%COMP%] .text-label[_ngcontent-%COMP%]{padding-right:10px}}"]})}}return o})();var H=c(63620);const te=["slickModal"],ne=o=>({active:o});function ie(o,m){1&o&&(e.EFF(0," The premium shown in plan card is basic - direct policy discount and 2nd and 3rd year premium shown in delete text "),e.j41(1,"del"),e.EFF(2,"(xxxx)"),e.k0s(),e.EFF(3," excluding 5% and 7.5% discount price. "))}function ae(o,m){if(1&o&&(e.j41(0,"span",32)(1,"span"),e.EFF(2,"\u20b9"),e.k0s(),e.EFF(3),e.k0s()),2&o){const t=e.XpG(2).$implicit;e.R7$(3),e.SpI(" ",null==t?null:t.oldPrice,"")}}function oe(o,m){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" Discount :",null==t?null:t.discountPercent,"%")}}function se(o,m){if(1&o){const t=e.RV6();e.j41(0,"div")(1,"div",23)(2,"label",24),e.EFF(3),e.j41(4,"input",25),e.bIt("click",function(){e.eBV(t);const n=e.XpG().$implicit,a=e.XpG();return e.Njj(a.change_radio(null==n?null:n.year,a.temp[0],0))}),e.k0s(),e.nrm(5,"span",26),e.k0s()(),e.j41(6,"p",27),e.EFF(7),e.k0s(),e.j41(8,"div",28),e.DNE(9,ae,4,1,"span",29),e.j41(10,"span",30)(11,"span"),e.EFF(12,"\u20b9"),e.k0s(),e.EFF(13),e.k0s()(),e.j41(14,"p",31),e.DNE(15,oe,2,1,"span",22),e.k0s()()}if(2&o){const t=e.XpG().$implicit,i=e.XpG();e.R7$(2),e.FS9("for",null==t?null:t.id),e.R7$(),e.SpI("",null==t?null:t.year," "),e.R7$(),e.FS9("id",null==t?null:t.id),e.FS9("formControlName",null==t?null:t.formControlName),e.FS9("name",null==t?null:t.name),e.FS9("value",null==t?null:t.value),e.Y8G("checked",null==t?null:t.checked),e.R7$(3),e.SpI(" ",null==t?null:t.desc," "),e.R7$(2),e.Y8G("ngIf","1 year"!==(null==t?null:t.year)),e.R7$(4),e.SpI(" ",i.convertTwoDigit(null==t?null:t.newPrice),""),e.R7$(2),e.Y8G("ngIf","1 year"!=(null==t?null:t.year))}}function re(o,m){if(1&o&&(e.j41(0,"div",21),e.DNE(1,se,16,11,"div",22),e.k0s()),2&o){const t=m.$implicit;e.R7$(),e.Y8G("ngIf",null==t?null:t.year)}}let le=(()=>{class o{constructor(t,i,n,a,s){this.fb=t,this.healthJourneyChoosePlanRepository=i,this._choosePlan=n,this.modalService=a,this.healthJourneyConfig=s,this.data=5,this.Essential=[],this.temp=[],this.yearwise=[],this.plansSlideConfig={infinite:!1,autoplay:!1,autoplaySpeed:3e3,slidesToShow:3,slidesToScroll:1,dots:!0,arrows:!0,responsive:[{breakpoint:1300,settings:{slidesToShow:3,slidesToScroll:1}},{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}}]},this.active_plan_title="Privilege",this.subscription=new y.yU,this.dataFetched=!1,this.policyPlanForm=this.fb.group({comprehensivePlan:["oneYearODP",l.k0.required]})}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){this.subscription.add(this.healthJourneyChoosePlanRepository.healthJourneyActivePlan$.pipe((0,f.p)(i=>!!i)).subscribe(i=>{this.sum_insuredData=i.Sum_Insured||9,this.selectedCardData=i.active_comfort_option,this._choosePlan.toggleLoader=!0,(0,N.O)(500).subscribe(n=>{let a=this.healthJourneyChoosePlanRepository.getAllProductsData.map(s=>s.active_comfort_option).sort((s,d)=>s.ProductCode-d.ProductCode);this.temp=[],this.chooseIns(a)})}))}change_radio(t,i,n){(0,v.Bt)(()=>{this.healthJourneyConfig.saveSelectedYear(t.split(" ")[0]),this.selectedCardData?.ProductCode!=i.ProductCode&&("Digi-Pro"!=i.ProductName&&this.healthJourneyConfig.healthJoruneyConfigPackagePlanSelected$.pipe((0,C.s)(1)).subscribe(a=>{"CustomizePack"==a&&this.healthJourneyConfig.savePackagePlan("CustomizePack")}),this.healthJourneyChoosePlanRepository.setActiveId(i.ProductCode))})}chooseIns(t){this._choosePlan.toggleLoader=!0,this.temp=t,console.log(this.temp),setTimeout(()=>{this._choosePlan.toggleLoader=!1,this.healthJourneyConfig.healthJoruneyConfigYearSelected$.pipe((0,C.s)(1)).subscribe(i=>{this.temp.forEach(n=>
1{n?.yearPlanWise?.forEach(a=>{const s=sessionStorage.getItem("CHIPlanID");i==a.year.split(" ")[0]&&s==n.ProductCode||i==a.year.split(" ")[0]&&this.selectedCardData?.ProductCode==n.ProductCode?$(`#${a.id}`).prop("checked",!0):$(`#${a.id}`).prop("checked",!1)})})})},300)}convertTwoDigit(t){return parseFloat(t).toFixed(2)}benefitsPopup(t){this.modalService.show(ee,Object.assign({class:"members-popup modal-lg",initialState:{planType:t}}))}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(l.ze),e.rXU(O.Jb),e.rXU(x.o),e.rXU(b.I8),e.rXU(_.NP))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-health-comfort-option"]],viewQuery:function(i,n){if(1&i&&e.GBs(te,5),2&i){let a;e.mGM(a=e.lsd())&&(n.slickModal=a.first)}},decls:31,vars:12,consts:[["slickModal","slick-carousel"],["tolTemplate",""],[1,"policy-plan-wrapper","health-buy-now-journey","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"],[1,"carousel","d-flex",3,"config"],["ngxSlickItem","",1,"card","policy-plan-cards","mx-2",3,"ngClass"],[1,"card-body","py-3","px-0"],[1,"px-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"fs-16","montserrat-bolder","text-bolder","text-black","d-flex"],[1,"position-relative","custom-tooltip","pl-1"],["src","./assets/images/icons/info-icon.svg","alt","info","placement","right",1,"img-fluid","info-icon",3,"tooltip"],["href","javascript:void(0);",1,"fs-12","montserrat-medium","text-medium","text-link",3,"click"],[1,"fs-12","montserrat-regular","text-regular","text-primary","mb-3"],[1,"d-flex","align-items-center"],[1,"fs-12","montserrat-bold","text-bold","mr-2",3,"ngClass"],[1,"fs-16","montserrat-bolder","text-bolder",3,"ngClass"],[1,"row","mx-2","mt-4"],["class","col-4 plan-year-blk mr-1",4,"ngFor","ngForOf"],[1,"col-4","plan-year-blk","mr-1"],[4,"ngIf"],[1,"radio-data","mb-1"],[1,"montserrat-medium","text-medium","text-dark","m-0",3,"for"],["type","radio",3,"click","id","formControlName","name","checked","value"],[1,"checkmark"],[1,"fs-8","montserrat-regular","text-remontserrat-regular","text-primary","text-center","mh-18"],[1,"mb-2","text-center"],["class","fs-10 d-block text-gray text-bold montserrat-bold text-decoartion-line-through mb-1",4,"ngIf"],[1,"fs-10","d-block","text-dark","text-bold","montserrat-bold"],[1,"fs-8","text-primary","montserrat-regular","text-regular","text-center"],[1,"fs-10","d-block","text-gray","text-bold","montserrat-bold","text-decoartion-line-through","mb-1"]],template:function(i,n){if(1&i){const a=e.RV6();e.j41(0,"div",2)(1,"h5",3),e.EFF(2,"Select Comfort Option"),e.k0s(),e.j41(3,"div",4)(4,"form",5)(5,"ngx-slick-carousel",6,0)(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"p",11),e.EFF(12),e.j41(13,"span",12),e.nrm(14,"img",13),e.DNE(15,ie,4,0,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(17,"a",14),e.bIt("click",function(){return e.eBV(a),e.Njj(n.benefitsPopup(null==n.temp[0]?null:n.temp[0].planTitle))}),e.j41(18,"u"),e.EFF(19,"Benefits"),e.k0s()()(),e.j41(20,"p",15),e.EFF(21),e.k0s(),e.j41(22,"div",16)(23,"span",17),e.EFF(24,"Sum Insured:"),e.k0s(),e.j41(25,"span",18)(26,"span"),e.EFF(27,"\u20b9"),e.k0s(),e.EFF(28),e.k0s()()(),e.j41(29,"div",19),e.DNE(30,re,2,1,"div",20),e.k0s()()()()()()()}if(2&i){const a=e.sdS(16);e.R7$(4),e.Y8G("formGroup",n.policyPlanForm),e.R7$(),e.Y8G("config",n.plansSlideConfig),e.R7$(2),e.Y8G("ngClass",e.eq3(10,ne,(null==n.selectedCardData?null:n.selectedCardData.ProductCode)===(null==n.temp[0]?null:n.temp[0].ProductCode))),e.R7$(5),e.SpI("",null==n.temp[0]?null:n.temp[0].planTitle," "),e.R7$(2),e.Y8G("tooltip",a),e.R7$(7),e.SpI("",null==n.temp[0]?null:n.temp[0].planDesc," "),e.R7$(2),e.Y8G("ngClass",(null==n.selectedCardData?null:n.selectedCardData.ProductCode)===(null==n.temp[0]?null:n.temp[0].ProductCode)?"text-dark":"text-gray"),e.R7$(2),e.Y8G("ngClass",(null==n.selectedCardData?null:n.selectedCardData.ProductCode)===(null==n.temp[0]?null:n.temp[0].ProductCode)?"text-danger":"text-gray"),e.R7$(3),e.SpI(" ",n.sum_insuredData," Lakh p.a."),e.R7$(2),e.Y8G("ngForOf",null==n.temp[0]?null:n.temp[0].yearPlanWise)}},dependencies:[g.YU,g.Sq,g.bT,l.qT,l.me,l.Fm,l.BC,l.cb,l.j4,l.JD,J.dg,M.qW,M.Hv,H.ZP],styles:[".health-buy-now-journey[_ngcontent-%COMP%] .policy-plan-cards[_ngcontent-%COMP%]{border:1px solid #D8D8D8;box-sizing:border-box;border-radius:20px;position:relative;width:285px;cursor:pointer;margin-top:38px}.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:60px} .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}.text-decoartion-line-through[_ngcontent-%COMP%]{text-decoration:line-through} .health-buy-now-journey .slick-slider .slick-track{padding-bottom:20px!important}.health-buy-now-journey[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]{display:none;width:154px;max-width:154px;border:.5px solid #CC0022;border-radius:3px;padding:5px;color:#707070;font-weight:600;font-size:10px;left:calc(50% - 80px);line-height:12px;top:-50px;text-align:center;z-index:1}.health-buy-now-journey[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]:after{margin-left:0;top:auto;bottom:-10px;left:50%;transform:translate(-50%) rotate(180deg)}.health-buy-now-journey[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%]{display:block} .health-buy-now-journey .slick-dots{bottom:-30px}@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}.policy-plan-cards[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .plan-year-blk.col-4[_ngcontent-%COMP%]{max-width:31.7%}}@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} .health-buy-now-journey .slick-slider .slick-track{padding-bottom:30px!important}}@media (max-width: 768px) and (min-width: 576px){.policy-plan-wrapper[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px}.policy-plan-wrapper[_ngcontent-%COMP%] p.fs-18[_ngcontent-%COMP%], .policy-plan-wrapper[_ngcontent-%COMP%] p.fs-16[_ngcontent-%COMP%]{font-size:14px} .health-buy-now-journey .slick-slider .slick-track{padding-bottom:30px!important}}@media (max-width: 575px) and (min-width: 320px){.policy-plan-wrapper[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px}.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}}"]})}}return o}
1)();var ce=c(63863),B=c(94982),de=c(92724);const pe=o=>({"form-group-error":o}),ue=()=>({standalone:!0});function me(o,m){if(1&o&&(e.j41(0,"small",36),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.JRh(t.errMsg)}}let he=(()=>{class o{constructor(t,i,n,a,s,d,h){this.fb=t,this.healthJourneyChoosePlanRepository=i,this._choosePlan=n,this.modalService=a,this.healthJoruneyConfig=s,this.healthservice=d,this.healthJourneyGenderRepository=h,this.discounts=[],this.active=!1,this.policy_number="",this.disable_input=!1,this.discountData=!1,this.isLoyaltyDiscountChecked=!1,this.isCoPaymentChecked=!1,this.isPledgePopupChecked=!1,this.subscriptions=new y.yU,this.errMsg="",this.FirstName="",this.packageName="CustomizePack",this.isRenewalChecked=!1,this.discountInformation=this.fb.group({BenefitRenewal:["",l.k0.required]})}ngOnDestroy(){this.subscriptions.unsubscribe()}ngOnInit(){let i,t=sessionStorage.getItem("fvRenewalBenefit");t&&(this.discountInformation.patchValue({BenefitRenewal:t}),setTimeout(()=>{this._choosePlan.toggleCTAButtonValue(!1)},2e3)),this.subscriptions.add(this.healthJoruneyConfig.healthJoruneyConfigDiscountCheckersValue$.pipe((0,f.p)(n=>!!n)).subscribe(n=>{this.active=this.isCoPaymentChecked=n.coPaymentChecked,this.isLoyaltyDiscountChecked=n.loyaltyChecked,this.isPledgePopupChecked=n.organDonorChecked})),this.subscriptions.add(this.healthJourneyChoosePlanRepository.healthJourneyActivePlan$.subscribe(n=>{n&&JSON.stringify(i)==JSON.stringify(n)||!n||(i=n,this.discountData=!0,"Digi-Pro"==n.active_comfort_option.planTitle&&(this.discountData=!1),this.packagePlan$&&this.packagePlan$.unsubscribe(),this.packagePlan$=this.healthJoruneyConfig.healthJoruneyConfigPackagePlanSelected$.subscribe(a=>{this.packageName=a?.trim(),this.isCoPaymentChecked="Package 5"==this.packageName?this.active="Package 5"==this.packageName:this.active}))})),this.subscriptions.add(this.healthJoruneyConfig.healthJoruneyConfigAdditionalDiscount$.pipe((0,f.p)(n=>!!n)).subscribe(n=>{this.discounts=JSON.parse(JSON.stringify(n));let a=this.discounts.find(d=>"Loyalty Discount"==d.name)||void 0;this.policy_number=a?a.policy_number:"";let s=this.discounts.find(d=>"Co-Payment Discount"==d.name)||void 0;this.data=s?s.rate:"10"})),this.healthJourneyGenderRepository.healthJourneygender$.subscribe(n=>{this.FirstName=n.firstName||n.userName}),this.initSelfValidation()}initSelfValidation(){let t;this.discountInformation.statusChanges.subscribe(i=>{t!=i&&(t=i,this._choosePlan.toggleCTAButtonValue("INVALID"==i))})}changeEvent(t,i){if(console.log("event-----",t),"loyalty"==i){if(this.isLoyaltyDiscountChecked=t.target.checked,t.target.checked)return this.errMsg="",this.policy_number?void this.healthservice.getPolicyData(this.policy_number).subscribe(n=>n&&"FAIL"!=n.Status&&this.FirstName?.split(" ")[0].toLocaleLowerCase()==n.CustomerName?.split(" ")[0].toLocaleLowerCase()?"Active"!=n.PolicyStatus?(this.openErrorPopup("Entered policy is not active."),this.isLoyaltyDiscountChecked=!1,$("#imtCheck1").prop("checked",!1),void(this.errMsg="Enter Valid Policy Number")):(this.loyaltyDiscountAdd(),void(0,v.Bt)(()=>{this.healthJoruneyConfig.saveDiscountChecker({loyaltyChecked:this.isLoyaltyDiscountChecked,coPaymentChecked:this.isCoPaymentChecked,organDonorChecked:this.isPledgePopupChecked}),this.healthJoruneyConfig.saveSelectedAdditionalDiscount(this.discounts)})):(this.openErrorPopup("Entered policy details not found."),this.isLoyaltyDiscountChecked=!1,$("#imtCheck1").prop("checked",!1),void(this.errMsg="Enter Valid Policy Number")),n=>{console.log(n)}):(this.isLoyaltyDiscountChecked=!1,$("#imtCheck1").prop("checked",!1),void(this.errMsg="Enter Valid Policy Number"));this.policy_number="",(0,v.Bt)(()=>{this.healthJoruneyConfig.saveDiscountChecker({loyaltyChecked:this.isLoyaltyDiscountChecked,coPaymentChecked:this.isCoPaymentChecked,organDonorChecked:this.isPledgePopupChecked}),this.healthJoruneyConfig.saveSelectedAdditionalDiscount(this.discounts)})}else"co-payment"==i&&(this.isCoPaymentChecked=t.target.checked,this.healthJoruneyConfig.saveDiscountChecker({loyaltyChecked:this.isLoyaltyDiscountChecked,coPaymentChecked:this.isCoPaymentChecked,organDonorChecked:this.isPledgePopupChecked}))}policyNumberChange(){this.policyNumberChange$&&this.policyNumberChange$.unsubscribe(),this.policyNumberChange$=(0,N.O)(1500).subscribe(t=>{this.isLoyaltyDiscountChecked&&this.policy_number&&(this.loyaltyDiscountAdd(),this.healthJoruneyConfig.saveSelectedAdditionalDiscount(this.discounts))})}loyaltyDiscountAdd(){this.discounts=this.discounts.filter(i=>"Loyalty Discount"!=i.name),this.discounts.push({name:"Loyalty Discount",policy_number:this.policy_number})}discount_rate(t){this.data=t;
1let i={name:"Co-Payment Discount",rate:t};this.discounts=this.discounts.filter(n=>"Co-Payment Discount"!=n.name),this.discounts.push(i),this.healthJoruneyConfig.saveSelectedAdditionalDiscount(this.discounts)}omit_special_char(t){var i;return(i=t.charCode)>64&&i<91||i>96&&i<123||8==i||32==i||i>=47&&i<=57}openPledgePopup(t){this.discounts=this.discounts.filter(i=>"Organ-Donor Discount"!=i.name),t&&(this.modalService.show(ce.F,Object.assign({class:" modal-lg"})),this.discounts.push({name:"Organ-Donor Discount"})),(0,v.Bt)(()=>{this.healthJoruneyConfig.saveDiscountChecker({loyaltyChecked:this.isLoyaltyDiscountChecked,coPaymentChecked:this.isCoPaymentChecked,organDonorChecked:this.isPledgePopupChecked})})}openRenewalBenefit(t){t.target.checked&&sessionStorage.setItem("fvRenewalBenefit",this.discountInformation.value.BenefitRenewal??t.target.Value)}openErrorPopup(t){this.modalService.show(B.u,Object.assign({error:t,class:"thankyou-popup modal-xl",initialState:{error:t},backdrop:"static"}))}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(l.ok),e.rXU(O.Jb),e.rXU(x.o),e.rXU(b.I8),e.rXU(_.NP),e.rXU(de.a),e.rXU(F.KI))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-health-discounts"]],decls:68,vars:10,consts:[[1,"health-discounts","additional-covers-content","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"],[1,"additional-covers-plan"],[1,"imt-cards","p-3","mb-3"],[1,"imt-card-header","d-flex","mb-1"],[1,"checkbox-red","form-check-sm","mr-2"],["type","checkbox","id","imtCheck1","value","true","name","disCountCard1",1,"form-check-input",3,"ngModelChange","click","ngModel"],["for","imtCheck1"],[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/Loyalty-Discount.svg","alt","...",1,"img-fluid","w-55"],[1,"montserrat-semibold","text-semibold","text-dark","d-flex","align-items-center"],[1,"imt-card-body"],[1,"fs-14","montserrat-medium","text-medium","text-dark-gray","mb-2","mt-2","mt-lg-0"],[1,"d-flex","flex-column","pt-md-1"],[1,"form-group",3,"ngClass"],[1,"fs-16","montserrat-semibold","text-semibold","text-dark-gray","mb-2","mb-lg-1"],[1,"text-danger"],["type","text","onkeypress","if(this.value.length ==20)return false","placeholder","Enter your policy number",1,"form-control",3,"keydown.space","ngModelChange","keypress","ngModel","ngModelOptions"],["class","err-txt text-danger",4,"ngIf"],["type","checkbox","id","imtCheck3","value","true","name","disCountCard3",1,"form-check-input",3,"ngModelChange","change","ngModel"],["for","imtCheck3"],["src","./assets/images/usgi-icons/kidney-48-icon.svg","alt","...",1,"img-fluid","w-55"],[1,"new-form",3,"formGroup"],["type","checkbox","checked","checked","disabled","","id","imtCheckRenw","name","disCountCard34",1,"form-check-input",3,"click"],["for","imtCheckRenw"],["src","./assets/images/usgi-icons/renewal-benefits.png","alt","...",1,"img-fluid","w-55"],[1,"fs-16","montserrat-semibold","text-semibold","text-dark-gray","mb-1"],[1,"radio-data","radio-data-sm","d-flex","flex-wrap"],["for","Bonus",1,"montserrat-semibold","text-semibold","text-primary","pl-4","mr-3","mr-md-4"],["type","radio","id","Bonus","name","BenefitRenewal","formControlName","BenefitRenewal","value","Cumulative Bonus",3,"change"],[1,"checkmark"],["for","Discount",1,"montserrat-semibold","text-semibold","text-primary","pl-4","mr-3","mr-md-4"],["type","radio","id","Discount","name","BenefitRenewal","formControlName","BenefitRenewal","value","Renewal Premium Discount",3,"change"],[1,"err-txt","text-danger"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"h5",2),e.EFF(3,"Discounts For You"),e.k0s()(),e.j41(4,"form")(5,"div",3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"input",7),e.mxI("ngModelChange",function(s){return e.DH7(n.isLoyaltyDiscountChecked,s)||(n.isLoyaltyDiscountChecked=s),s}),e.bIt("click",function(s){return n.changeEvent(s,"loyalty")}),e.k0s(),e.nrm(10,"label",8),e.k0s(),e.j41(11,"div",9)(12,"div",10)(13,"figure",11),e.nrm(14,"img",12),e.k0s(),e.j41(15,"h6",13),e.EFF(16,"Loyalty Discount "),e.k0s()()()(),e.j41(17,"div",14)(18,"p",15),e.EFF(19," The loyalty discount is applicable only if you have another active retail policy with USGI that remains active at the time of purchasing this policy. "),e.k0s(),e.j41(20,"div",16)(21,"div",17)(22,"label",18),e.EFF(23," Policy Number"),e.j41(24,"span",19),e.EFF(25,"*"),e.k0s()(),e.j41(26,"input",20),e.bIt("keydown.space",function(s){return s.preventDefault()})("ngModelChange",function(){return n.policyNumberChange()})("keypress",function(s){return n.omit_special_char(s)}),e.mxI("ngModelChange",function(s){return e.DH7(n.policy_number,s)||(n.policy_number=s),s}),e.k0s(),e.DNE(27,me,2,1,"small",21),e.k0s()()()(),e.j41(28,"div",4)(29,"div",5)(30,"div",6)(31,"input",22),e.mxI("ngModelChange",function(s){return e.DH7(n.isPledgePopupChecked,s)||(n.isPledgePopupChecked=s),s}),e.bIt("change",function(){return n.openPledgePopup(n.isPledgePopupChecked)}),e.k0s(),e.nrm(32,"label",23),e.k0s(),e.j41(33,"div",9)(34,"div",10)(35,"figure",11),e.nrm(36,"img",24),e.k0s(),e.j41(37,"h6",13),e.EFF(38,"Organ Donor Discount "),e.k0s()()()()(),e.j41(39,"form",25)(40,"div",4)(41,"div",5)(42,"div",6)(43,"input",26),e.bIt("click",function(s){return n.changeEvent(s,"RenewalChecked")}),e.k0s(),e.nrm(44,"label",27),e.k0s(),e.j41(45,"div",9)(46,"div",10)(47,"figure",11),e.nrm(48,"img",28),e.k0s(),e.j41(49,"h6",13),e.EFF(50," Renewal Benefit\xa0"),e.j41(51,"span",19),e.EFF(52,"*"),e.k0s()()()()(),e.j41(53,"div",14)(54,"p",15),e.EFF(55," On selection of this option your renewal benefit under the policy will be considered and cannot be exchanged in future. "),e.k0s(),e.j41(56,"div",16)(57,"label",29),e.EFF(58,"No Claim Bonus can be opted through: "),e.k0s(),e.j41(59,"div",30)(60,"label",31),e.EFF(61," Cumulative Bonus "),e.j41(62,"input",32),e.bIt("change",function(s){return n.openRenewalBenefit(s)}),e.k0s(),e.nrm(63,"span",33),e.k0s(),e.j41(64,"label",34),e.EFF(65," Renewal Premium Discount "),e.j41(66,"input",35),e.bIt("change",function(s){return n.openRenewalBenefit(s)}),e.k0s(),e.nrm(67,"span",33),e.k0s()()()()()()()()()),2&i&&(e.R7$(9),e.R50("ngModel",n.isLoyaltyDiscountChecked),e.R7$(12),e.Y8G("ngClass",e.eq3(7,pe,n.errMsg)),e.R7$(5),e.R50("ngModel",n.policy_number),e.Y8G("ngModelOptions",e.lJ4(9,ue)),e.R7$(),e.Y8G("ngIf",n.errMsg),e.R7$(4),e.R50("ngModel",n.isPledgePopupChecked),e.R7$(8),e.Y8G("formGroup",n.discountInformation))},dependencies:[g.YU,g.bT,l.qT,l.me,l.Zm,l.Fm,l.BC,l.cb,l.vS,l.cV,l.j4,l.JD,H.ZP],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:110px}.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;
1height: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}.health-discounts[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{width:290px;background:#f7f7f7}.health-discounts[_ngcontent-%COMP%] .imt-cards[_ngcontent-%COMP%] img.w-55[_ngcontent-%COMP%]{width:55px}@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;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 o})();var ge=c(84572),z=c(96354),I=c(75658),fe=c(3281);let be=(()=>{class o{constructor(t,i,n,a,s,d,h){this.healthJourneyChoosePlanRepository=t,this.healthJourneyGenderRepository=i,this.healthJourneyConfig=n,this.healthJourneypdpRepository=a,this.healthChoosePlanService=s,this.modalService=d,this.route=h,this.discounts=[],this.firstTime=!0,this.subscription=new y.yU,this.value=9,this.options={floor:0,ceil:50,showSelectionBar:!0,showTicks:!0,translate:(k,r)=>"\u20b9 "+k+" Lakh",stepsArray:[{value:4,legend:"4 lakh"},{value:5,legend:"5 lakh"},{value:6,legend:"6 lakh"},{value:7,legend:"7 lakh"},{value:8,legend:"8 lakh"},{value:9,legend:"9 lakh"},{value:10,legend:"10 lakh"},{value:15,legend:"15 lakh"},{value:20,legend:"20 lakh"},{value:25,legend:"25 lakh"},{value:30,legend:"30 lakh"},{value:40,legend:"40 lakh"},{value:50,legend:"50 lakh"}]}}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){const t=this.healthJourneyConfig.healthJoruneyConfig$.pipe((0,z.T)(({yearSelected:a,packagePlan:s,selectedAdditionalCoverAndDiscount:d,alcoholConsume:h,discountChecker:k,selectedDiscounts:r,costSummaryData:p,isPremiumRecalculateRequiredForLoadingAddon:u,recalculateAddon:P,additionalDiscountsSelect:T,...R})=>R)),i=this.healthJourneypdpRepository.healthJourneyPersonalDetails$.pipe((0,z.T)(({FinalPremium:a,...s})=>s));let n;this.subscription.add((0,ge.z)([t,i]).subscribe(([a,s])=>{let d={...a,...s};if(d&&JSON.stringify(d)==JSON.stringify(n))return;if(n=JSON.parse(JSON.stringify(d)),this.healthJourneyChoosePlanRepository.getActiveProductId&&this.firstTime)return this.firstTime=!1,void(this.value=a.sumInsured);this.firstTime=!1,this.value=a.sumInsured;const h=[...I.dj].filter(p=>{let u=a.sumInsured||9;return"Essential"===p?.planTitle&&(4==u||5==u)||"Digi-Pro"===p?.planTitle&&u<=10||"Privilege"===p?.planTitle&&u>=6&&u<=10||"Plus"===p?.planTitle&&(15==u||20==u)||"Premier"===p?.planTitle&&(25==u||30==u)||"Executive"===p?.planTitle&&(40==u||50==u)});(0,v.Bt)(()=>{this.healthJourneyChoosePlanRepository.removeProductData(I.dj.map(p=>p.ProductCode)),this.healthJourneyConfig.saveAddonLoadingPremiumRecalculate(!1),this.healthJourneyConfig.saveRecalculatedAddonData([])});var k=this.healthJourneyGenderRepository.getHealthJourneyGenderValue(),r=!1;h.forEach((p,u)=>{u+1==h.length&&this.route.url.includes("health-choose-plan")&&setTimeout(()=>{const P=sessionStorage.getItem("CHIPlanID");this.healthJourneyChoosePlanRepository.setActiveId(P||h[0].ProductCode)},2e3),p.yearPlanWise.forEach(P=>{let T=parseInt(P.year.split(" ")[0]),R=(0,I.qZ)({...a,family_list:s,planData:{plan_type:p?.planTitle,year:T},selfGender:k});
1this.healthChoosePlanService.health_choose_plan(R).subscribe(S=>{""==S.Root.Errors.ErrorCode?this.healthChoosePlanService.processLoadPolicyDataResponse(S,p,T,a,!0):r||(r=!0,"Validation Failed In Health Indicators : Existing Policy Number not exists in system"==S.Root.Errors.ErrDescription?(this.openErrorPopup("This Policy Number not exists in system."),this.loyaltyDiscountRemove()):(console.log(S.Root.Errors.ErrDescription),this.openErrorPopup(S.Root.Errors.ErrDescription)))})})})}))}onChangePlan(t){(0,v.Bt)(()=>{this.healthJourneyConfig.savePersonalAccidentCategory("A"),this.healthJourneyConfig.savePackagePlan("CustomizePack"),this.healthJourneyConfig.saveSumInsuredValue(t)})}openErrorPopup(t){this.modalService.show(B.u,Object.assign({error:t},{class:"thankyou-popup modal-xl",initialState:{error:t}}))}loyaltyDiscountRemove(){this.subscription.add(this.healthJourneyConfig.healthJoruneyConfigAdditionalDiscount$.pipe((0,f.p)(t=>!!t)).subscribe(t=>{this.discounts=JSON.parse(JSON.stringify(t)),this.discounts=this.discounts.filter(i=>"Loyalty Discount"!=i.name),this.healthJourneyConfig.saveSelectedAdditionalDiscount(this.discounts)}))}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(O.Jb),e.rXU(F.KI),e.rXU(_.NP),e.rXU(j.hF),e.rXU(x.o),e.rXU(b.I8),e.rXU(D.Ix))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-health-right-sum-insured"]],decls:7,vars:2,consts:[[1,"card","health-right-sum-insured","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","pr-4"],[1,"idv-section-header","mb-4","mb-lg-5"],[1,"montserrat-bolder","text-bolder","text-primary","pb-4"],[1,"value-slider","ticks-slider","mb-4","mb-lg-5"],[3,"valueChange","userChangeEnd","value","options"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),e.EFF(4," Select The Right Sum Insured "),e.k0s()(),e.j41(5,"div",4)(6,"ngx-slider",5),e.mxI("valueChange",function(s){return e.DH7(n.value,s)||(n.value=s),s}),e.bIt("userChangeEnd",function(s){return n.onChangePlan(s.value)}),e.k0s()()()()),2&i&&(e.R7$(6),e.R50("value",n.value),e.Y8G("options",n.options))},dependencies:[fe.d1]})}}return o})();function Ce(o,m){if(1&o&&(e.j41(0,"li",13)(1,"div",14),e.EFF(2),e.k0s(),e.j41(3,"div",15)(4,"span",16),e.EFF(5),e.nI1(6,"customIndianCurrency"),e.k0s(),e.EFF(7," p.a. "),e.k0s()()),2&o){const t=m.$implicit;e.R7$(2),e.SpI(" ",t.addon_name," "),e.R7$(3),e.SpI(" ",e.bMT(6,2,null==t?null:t.price),"")}}let ve=(()=>{class o{constructor(t,i,n){this.modalService=t,this.healthJourneyConfig=i,this.options=n,this.subscriptions=new y.yU}ngOnInit(){const t=this.options?.initialState;this.active_package={package_name:t.package_name,premium_addons:t.premium_addons}}closePopup(){this.modalService.hide()}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(b.I8),e.rXU(_.NP),e.rXU(b.m_))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-journey-basic-add-ons"]],decls:15,vars:3,consts:[[1,"basic-add-ons","mb-4","mb-xl-5","pt-4"],[1,"popup-header","position-relative","px-3"],["href","javascript:void(0)","aria-label","Close",1,"close",3,"click"],["src","./assets/images/icons/close-btn.svg","alt","close-btn"],[1,"popup-body","px-lg-5","px-3","px-lg-0","mt-4","mt-lg-3"],[1,"add-ons-icon","text-center","mb-2","mb-lg-4"],["alt","",1,"mx-auto",3,"src"],[1,"montserrat-bold","text-bold","text-dark","mb-4","text-center"],[1,"package-add-ons","mb-4"],[1,"add-ons-list"],["class","d-flex justify-content-between align-items-center mb-4",4,"ngFor","ngForOf"],[1,"text-center","mt-4","mt-lg-5"],[1,"btn","btn-danger","mr-3",3,"click"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"label","fs-14","text-dark","montserrat-medium","text-medium","mr-4"],[1,"info","fs-14","text-primary","montserrat-medium","text-medium"],[1,"montserrat-bold","text-bold"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"a",2),e.bIt("click",function(){return n.closePopup()}),e.nrm(3,"img",3),e.k0s()(),e.j41(4,"div",4)(5,"figure",5),e.nrm(6,"img",6),e.k0s(),e.j41(7,"h5",7),e.EFF(8),e.k0s(),e.j41(9,"div",8)(10,"ul",9),e.DNE(11,Ce,8,4,"li",10),e.k0s()(),e.j41(12,"div",11)(13,"button",12),e.bIt("click",function(){return n.closePopup()}),e.EFF(14,"Okay, Got it "),e.k0s()()()()),2&i&&(e.R7$(6),e.FS9("src",null==n.active_package?null:n.active_package.package_logo,e.B4B),e.R7$(2),e.SpI(" ",null==n.active_package?null:n.active_package.package_name," "),e.R7$(3),e.Y8G("ngForOf",null==n.active_package?null:n.active_package.premium_addons))},dependencies:[g.Sq,E.G],styles:['.basic-add-ons[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{position:absolute;right:20px}.add-ons-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px}.add-ons-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between}.add-ons-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:20px;position:relative;width:45%;align-items:flex-start}.add-ons-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:after{position:absolute;
1left:0;top:0;content:"";background:url(yellow-check-icon.aa4423a4ace5742e.svg);width:16px;height:16px}.add-ons-list[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{line-height:16px;margin-right:10px}.add-ons-list[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{white-space:nowrap}@media screen and (max-width: 992px){.add-ons-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%}}']})}}return o})();const w=o=>({active:o});function ye(o,m){if(1&o&&(e.j41(0,"li",33)(1,"div",29),e.EFF(2),e.k0s(),e.j41(3,"div",34),e.EFF(4),e.nI1(5,"customIndianCurrency"),e.k0s()()),2&o){const t=m.$implicit;e.R7$(2),e.SpI(" ",t.addon_name," "),e.R7$(2),e.SpI("",e.bMT(5,2,t.price)," p.a.")}}function _e(o,m){if(1&o&&(e.j41(0,"li",33)(1,"div",29),e.EFF(2),e.k0s(),e.j41(3,"div",34),e.EFF(4),e.nI1(5,"customIndianCurrency"),e.k0s()()),2&o){const t=m.$implicit;e.R7$(2),e.SpI(" ",t.addon_name," "),e.R7$(2),e.SpI(" ",e.bMT(5,2,t.price)," p.a.")}}function ke(o,m){if(1&o&&(e.j41(0,"li",33)(1,"div",29),e.EFF(2),e.k0s(),e.j41(3,"div",34),e.EFF(4),e.nI1(5,"customIndianCurrency"),e.k0s()()),2&o){const t=m.$implicit;e.R7$(2),e.SpI(" ",t.addon_name," "),e.R7$(2),e.SpI(" ",e.bMT(5,2,t.price)," p.a.")}}function Pe(o,m){if(1&o&&(e.j41(0,"li",33)(1,"div",29),e.EFF(2),e.k0s(),e.j41(3,"div",34),e.EFF(4),e.nI1(5,"customIndianCurrency"),e.k0s()()),2&o){const t=m.$implicit;e.R7$(2),e.SpI(" ",t.addon_name," "),e.R7$(2),e.SpI(" ",e.bMT(5,2,t.price)," p.a.")}}function xe(o,m){if(1&o){const t=e.RV6();e.j41(0,"div",2)(1,"h5",3),e.EFF(2,"Select Your Package"),e.k0s(),e.j41(3,"div",4)(4,"ngx-slick-carousel",5,0)(6,"div",6),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.packageSelection("customPackage"))}),e.j41(7,"div",7)(8,"figure",8),e.nrm(9,"img",9),e.k0s(),e.j41(10,"div",10),e.EFF(11," Base plan "),e.k0s(),e.j41(12,"div",11),e.EFF(13," We have an exciting option for you! You can customize the package by selecting the Add-on "),e.k0s(),e.j41(14,"button",12),e.EFF(15," Customize "),e.k0s()()(),e.j41(16,"div",13),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.packageSelection(n.packageOne))}),e.j41(17,"div",14)(18,"div",15)(19,"div",16)(20,"div",17),e.EFF(21),e.k0s()(),e.j41(22,"div",18)(23,"span",19),e.EFF(24),e.nI1(25,"customIndianCurrency"),e.k0s(),e.j41(26,"span",20),e.EFF(27,"p.a."),e.k0s(),e.j41(28,"span",21),e.EFF(29,"*Excl. of GST"),e.k0s()()(),e.j41(30,"p",22),e.EFF(31),e.k0s()(),e.j41(32,"div",23)(33,"div",24)(34,"ul",25),e.DNE(35,ye,6,4,"li",26),e.nI1(36,"slice"),e.k0s(),e.j41(37,"p",27),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.basicAddOnsComponent(n.packageOne))}),e.EFF(38," View More "),e.k0s()()()(),e.j41(39,"div",13),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.packageSelection(n.packageTwo))}),e.j41(40,"div",14)(41,"div",15)(42,"div",16)(43,"div",17),e.EFF(44),e.k0s()(),e.j41(45,"div",18)(46,"span",19),e.EFF(47),e.nI1(48,"customIndianCurrency"),e.k0s(),e.j41(49,"span",20),e.EFF(50,"p.a."),e.k0s(),e.j41(51,"span",21),e.EFF(52,"*Excl. of GST"),e.k0s()()(),e.j41(53,"p",22),e.EFF(54),e.k0s()(),e.j41(55,"div",23)(56,"div",24)(57,"ul",25),e.DNE(58,_e,6,4,"li",26),e.nI1(59,"slice"),e.k0s(),e.j41(60,"p",27),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.basicAddOnsComponent(n.packageTwo))}),e.EFF(61," View More "),e.k0s()()()(),e.j41(62,"div",13),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.packageSelection(n.packageThree))}),e.j41(63,"div",14)(64,"div",15)(65,"div",16)(66,"div",17),e.EFF(67),e.k0s()(),e.j41(68,"div",18)(69,"span",19),e.EFF(70),e.nI1(71,"customIndianCurrency"),e.k0s(),e.j41(72,"span",20),e.EFF(73,"p.a."),e.k0s(),e.j41(74,"span",21),e.EFF(75,"*Excl. of GST"),e.k0s()()(),e.j41(76,"p",22),e.EFF(77),e.k0s()(),e.j41(78,"div",23)(79,"div",24)(80,"ul",25),e.DNE(81,ke,6,4,"li",26),e.nI1(82,"slice"),e.k0s(),e.j41(83,"p",27),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.basicAddOnsComponent(n.packageThree))}),e.EFF(84," View More "),e.k0s()()()(),e.j41(85,"div",13),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.packageSelection(n.packageFour))}),e.j41(86,"div",14)(87,"div",15)(88,"div",16)(89,"div",17),e.EFF(90),e.k0s()(),e.j41(91,"div",18)(92,"span",19),e.EFF(93),e.nI1(94,"customIndianCurrency"),e.k0s(),e.j41(95,"span",20),e.EFF(96,"p.a."),e.k0s(),e.j41(97,"span",21),e.EFF(98,"*Excl. of GST"),e.k0s()()(),e.j41(99,"p",22),e.EFF(100),e.k0s()(),e.j41(101,"div",23)(102,"div",24)(103,"ul",25),e.DNE(104,Pe,6,4,"li",26),e.nI1(105,"slice"),e.k0s()()()(),e.j41(106,"div",13),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.packageSelection(n.packageFive))}),e.j41(107,"div",14)(108,"div",15)(109,"div",16)(110,"div",17),e.EFF(111),e.k0s()(),e.j41(112,"div",18)(113,"span",19),e.EFF(114),e.nI1(115,"customIndianCurrency"),e.k0s(),e.j41(116,"span",20),e.EFF(117,"p.a."),e.k0s(),e.j41(118,"span",21),e.EFF(119,"*Excl. of GST"),e.k0s()()(),e.j41(120,"p",22),e.EFF(121),e.k0s()(),e.j41(122,"div",23)(123,"div",24)(124,"ul",25)(125,"li",28)(126,"div",29),e.EFF(127," Wellness Benefit "),e.k0s(),e.j41(128,"div",30)(129,"span",31),e.EFF(130),e.nI1(131,"customIndianCurrency"),e.k0s(),e.EFF(132," p.a."),e.k0s()()(),e.nrm(133,"p",32),e.k0s()()()()()()}if(2&o){const t=e.XpG();e.R7$(4),e.Y8G("config",t.packageSlideConfig),e.R7$(2),e.AVh("selected",!(t.packageOne[0].active||t.packageTwo[0].active||t.packageThree[0].active||t.packageFour[0].active||t.packageFive[0].active)),e.R7$(10),e.AVh("selected",!0===t.packageOne[0].active),e.Y8G("ngClass",e.eq3(66,w,1==t.packageOne[0].active)),e.R7$(5),e.SpI(" ",t.packageOne[0].package_name," "),e.R7$(3),e.SpI(" ",e.bMT(25,38,t.packageOne[0].package_premium)," "),e.R7$(7),e.SpI("",t.packageOne[0].package_desc," "),e.R7$(4),e.Y8G("ngForOf",e.brH(36,40,t.packageOne[0].premium_addons,0,4)),e.R7$(4),e.AVh("selected",!0===t.packageTwo[0].active),e.Y8G("ngClass",e.eq3(68,w,1==t.packageTwo[0].active)),e.R7$(5),e.SpI(" ",t.packageTwo[0].package_name," "),e.R7$(3),e.SpI(" ",e.bMT(48,44,t.packageTwo[0].package_premium)," "),e.R7$(7),e.SpI("",t.packageTwo[0].package_desc," "),e.R7$(4),e.Y8G("ngForOf",e.brH(59,46,t.packageTwo[0].premium_addons,0,4)),e.R7$(4),e.AVh("selected",!0===t.packageThree[0].active),e.Y8G("ngClass",e.eq3(70,w,1==t.packageThree[0].active)),e.R7$(5),e.SpI(" ",t.packageThree[0].package_name," "),e.R7$(3),e.SpI(" ",e.bMT(71,50,t.packageThree[0].package_premium)," "),e.R7$(7),e.SpI("",t.packageThree[0].package_desc," "),e.R7$(4),e.Y8G("ngForOf",e.brH(82,52,t.packageThree[0].premium_addons,0,4)),e.R7$(4),e.AVh("selected",!0===t.packageFour[0].active),e.Y8G("ngClass",e.eq3(72,w,1==t.packageFour[0].active)),e.R7$(5),e.SpI(" ",t.packageFour[0].package_name," "),e.R7$(3),e.SpI(" ",e.bMT(94,56,t.packageFour[0].package_premium)," "),e.R7$(7),e.SpI("",t.packageFour[0].package_desc," "),e.R7$(4),e.Y8G("ngForOf",e.brH(105,58,t.packageFour[0].premium_addons,0,4)),e.R7$(2),e.AVh("selected",!0===t.packageFive[0].active),e.Y8G("ngClass",e.eq3(74,w,1==t.packageFive[0].active)),e.R7$(5),e.SpI(" ",t.packageFive[0].package_name," "),e.R7$(3),e.SpI(" ",e.bMT(115,62,t.pack_5)," "),e.R7$(7),e.SpI("",t.packageFive[0].package_desc," "),e.R7$(9),e.JRh(e.bMT(131,64,null==t.
1wellnessBenefit[0]?null:t.wellnessBenefit[0].CoverPremium))}}let Oe=(()=>{class o{constructor(t,i,n,a){this.modalService=t,this.healthJourneyChoosePlanRepository=i,this.healthJourneyConfig=n,this._choosePlan=a,this.show=!1,this.custom=!1,this.condi_waiver=[],this.daily_hospital=[],this.Critical_Illness_Cover=[],this.co_payment=[],this.treatment=[],this.wellnessBenefit=[],this.subLimits=["Sub limit A","Sub limit B","Sub limit C"],this.subLimitsIndex=0,this.coPayment=["10 %","20 %","30 %","40 %","50 %"],this.coPaymentIndex=0,this.subLimitVal=[],this.packageOne=[{package_name:"Package 1",package_premium:"700",active:!1,package_desc:"Covers all the basic features and some add-on enhanced features.",premium_addons:[{addon_name:"Condition waiver under Restore Benefit",price:"100"},{addon_name:"Extension under Pre-Hospitalization",price:"100"},{addon_name:"Extension under Post-Hospitalization",price:"100"},{addon_name:"Wellness Benefit",price:"100"},{addon_name:"Emergency Assistance Service",price:"100"},{addon_name:"Personal Accident Cover",price:"100"}]}],this.packageTwo=[{package_name:"Package 2",package_premium:"1000",active:!1,package_logo:"./assets/images/icons/package-silver.svg",package_desc:"Covers all the basic features and some add-on enhanced features.",premium_addons:[{addon_name:"Condition waiver under Restore Benefit",price:"100"},{addon_name:"Premium Waiver",price:"100"},{addon_name:"Emergency Assistance Service",price:"100"},{addon_name:"Second Opinion",price:"100"},{addon_name:"Personal Accident Cover",price:"100"}]}],this.packageThree=[{package_name:"Package 3",package_premium:"1500",active:!1,package_desc:"Covers all the basic features and some add-on enhanced features.",premium_addons:[{addon_name:"Condition waiver under Restore Benefit",price:"100"},{addon_name:"Coverage for Non-Medical Items",price:"100"},{addon_name:"Home Care Treatment",price:"100"},{addon_name:"Medically Advised Support Devices",price:"100"},{addon_name:"Enhanced Organ Donor Expenses",price:"100"},{addon_name:"Personal Accident Cover",price:"100"}]}],this.packageFour=[{package_name:"Package 4",package_premium:"700",active:!1,package_desc:"Covers all the basic features and some add-on enhanced features.",premium_addons:[{addon_name:"Condition waiver under Restore Benefit",price:"100"},{addon_name:"Personal Accident Cover",price:"100"},{addon_name:"Critical Illness Cover",price:"100"},{addon_name:"Daily Hospital Cash Cover",price:"100"}]}],this.packageFive=[{package_name:"Package 5",package_premium:"700",active:!1,package_desc:"Covers all the basic features and some add-on enhanced features.",premium_addons:[{addon_name:"Wellness Benefit",price:"100"}]}],this.package_show=!0,this.subscription=new y.yU,this.isUserFromPrevPage=!1,this.packageSlideConfig={infinite:!1,autoplay:!1,dots:!0,arrows:!0,responsive:[{breakpoint:9999,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:1100,settings:{slidesToShow:2,slidesToScroll:1,infinite:!1,arrows:!0,autoplay:!1}},{breakpoint:768,settings:{slidesToShow:1.1,slidesToScroll:1,arrows:!1,infinite:!1,autoplay:!1}}]}}ngOnInit(){let t;this.healthJourneyConfig.healthJoruneyConfigAdditionalCoverAndDiscount$.pipe((0,C.s)(1)).subscribe(i=>{this.isUserFromPrevPage=i.length>0}),this.subscription.add(this.healthJourneyConfig.healthJoruneyConfigAdditionalDiscount$.pipe((0,f.p)(i=>!!i)).subscribe(i=>{JSON.stringify(this.discounts)!=JSON.stringify(i)&&(this.discounts=i),this.discounts.forEach(n=>{"Sub Category Discount"==n.name?(this.subLimitsIndex=-1,setTimeout(()=>{this.subLimitsIndex=this.subLimits.findIndex(a=>a=="Sub limit "+n.rate)},300)):"Co-Payment Discount"==n.name&&(this.coPaymentIndex=-1,setTimeout(()=>{this.coPaymentIndex=this.coPayment.findIndex(a=>a==n.rate+" %")},300))})})),this.subscription.add(this.healthJourneyChoosePlanRepository.healthJourneyActivePlan$.pipe((0,f.p)(i=>!!i)).subscribe(i=>{if(i&&JSON.stringify(t)==JSON.stringify(i)||!i)return;let n;t=JSON.parse(JSON.stringify(i)),this.package_show="Digi-Pro"!=i.active_comfort_option.planTitle,this.package_show||this.packageSelection("CustomizePack"),this.yearSubscriber&&this.yearSubscriber.unsubscribe(),this.yearSubscriber=this.healthJourneyConfig.healthJoruneyConfigWithYearAndSelectionCovers$.pipe((0,f.p)(a=>!!a)).subscribe(a=>{if(a&&JSON.stringify(n)==JSON.stringify(a)||!a)return;n=a;let s={...i.active_comfort_option.yearPlanWise[parseInt(a.yearSelected||"1")-1]};this.activeAddonsData=s?.all_sum_array||[],this.activeDiscountsData=s?.discount||[],[this.packageOne,this.packageTwo,this.packageThree,this.packageFour].forEach(r=>{this.fetchPackagesPremium(r,this.activeAddonsData)});let d=a?.selectedAdditionalCoverAndDiscount||[],h=0;d.forEach(r=>{h+=Math.round(r.CoverPremium||0)}),Math.round(s?.basicPremium||"0.00"),this.co_payment=this.activeDiscountsData?.filter(r=>"Co-payment"==r.Description),this.co_payment.forEach(r=>{let p=(0,I.VJ)(d)||[],u=Math.round(s?.basicPremium||"0.00");p.forEach(P=>{u+=Math.round(P.CoverPremium||0)}),r.Premium=u*(parseFloat(r.Rate)/100)}),this.wellnessBenefit=this.activeAddonsData?.filter(r=>"Wellness Benefit"==r.CoverGroups),this.packageFive[0].premium_addons[0].price=this.wellnessBenefit[0]?.CoverPremium,this.pack_5=Math.round(parseFloat(this.wellnessBenefit[0]?.CoverPremium||"0.00")),this.packagePlan$&&this.packagePlan$.unsubscribe(),this.packagePlan$=this.healthJourneyConfig.healthJoruneyConfigPackagePlanSelected$.pipe((0,f.p)(r=>!!r),(0,C.s)(1)).subscribe(r=>{[this.packageOne,this.packageTwo,this.packageThree,this.packageFour,this.packageFive].forEach(p=>{p[0].active=r==p[0].package_name,setTimeout(()=>{p[0].active&&this.package_show&&this.packageSelection(p,this.isUserFromPrevPage)},300)})})})}))}fetchPackagesPremium(t,i){t?.forEach(n=>
1{n.package_premium=0,i?.forEach(a=>{n?.premium_addons.forEach(s=>{a.CoverGroups==s.addon_name&&(s.price=a.CoverPremium,n.package_premium+=Math.round(s.price))})})})}sub_limt(t){t=t.split(" ")[2],this.updateDiscounts("Sub Category Discount",t)}coPaymentChange(t){t=t.split(" ")[0],this.updateDiscounts("Co-Payment Discount",t)}updateDiscounts(t,i){let n={name:t,rate:i};this.discounts=this.discounts.filter(a=>a.name!=t),this.discounts.push(n),this.healthJourneyConfig.saveSelectedAdditionalDiscount(this.discounts)}basicAddOnsComponent(t){this.modalService.show(ve,Object.assign({class:"modal-lg",initialState:t[0]}))}packageSelection(t,i=!1){this.prevPackageSelection&&JSON.stringify(this.prevPackageSelection)==JSON.stringify(t)||(this.prevPackageSelection=JSON.parse(JSON.stringify(t)),[this.packageOne,this.packageTwo,this.packageThree,this.packageFour,this.packageFive].forEach(n=>{n[0].active=JSON.stringify(n)==JSON.stringify(t)}),i?this.isUserFromPrevPage=!1:(0,v.Bt)(()=>{if(this.healthJourneyConfig.savePackagePlan("string"==typeof t?"CustomizePack":t[0]?.package_name),this.healthJourneyConfig.saveSelectedDiscount([]),"string"==typeof t)return void this.healthJourneyConfig.saveSelectedAdditionalCoverAndDiscount([]);let n;if(this.healthJourneyConfig.healthJourneyAdditionalDiscountsSelect$.pipe((0,C.s)(1)).subscribe(s=>{n=s}),n)return void this.healthJourneyConfig.saveAdditionalDiscountsSelect(!1);this.activeAddonsData?.forEach(s=>{s.active=s.disabled=!1,(t[0]?.premium_addons?.filter(h=>s?.CoverGroups.includes(h?.addon_name))||[]).length&&(s.active=s.disabled=!0)});let a=this.activeAddonsData?.filter(s=>s.active&&s.disabled);this.healthJourneyConfig.saveSelectedAdditionalCoverAndDiscount(a)}))}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(b.I8),e.rXU(O.Jb),e.rXU(_.NP),e.rXU(x.o))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-health-select-your-package"]],decls:1,vars:1,consts:[["slickModal","slick-carousel"],["class","select-package-wrapper mb-5 mb-sm-4 pr-0",4,"ngIf"],[1,"select-package-wrapper","mb-5","mb-sm-4","pr-0"],[1,"montserrat-bolder","text-bolder","text-primary","mb-3"],[1,"select-package","position-reletive","d-flex"],[1,"carousel",3,"config"],["ngxSlickItem","",1,"card-package","card","mx-2",3,"click"],[1,"card-body","text-center","mb-4"],[1,"mb-2"],["src","./assets/images/icons/package-customize.png","alt","",1,"img-fluid","mx-auto"],[1,"fs-18","text-primary","montserrat-extrabold","text-extrabold","mb-3"],[1,"fs-14","text-primary","montserrat-medium","text-medium","mb-5"],[1,"btn","btn-outline-danger"],["ngxSlickItem","",1,"card-package","card","mx-2",3,"click","ngClass"],[1,"card-header","pt-4","pb-2"],[1,"package-name-amount","mb-2"],[1,"package-name","mb-1"],[1,"fs-18","text-primary","montserrat-extrabold","text-extrabold"],[1,"package-amount"],[1,"h6","text-primary","montserrat-bold","text-bold"],[1,"fs-14","text-primary","montserrat-medium","text-medium"],[1,"fs-8","text-gray","montserrat-medium","text-medium"],[1,"fs-12","text-dark"],[1,"card-body"],[1,"package-add-ons"],[1,"add-ons-list"],["class","d-flex justify-content-between align-items-center mb-3",4,"ngFor","ngForOf"],[1,"fs-12","text-bold","montserrat-bold","text-link","cursor","mb-2","d-inline",3,"click"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"label","fs-12","text-dark","montserrat-medium","text-medium"],[1,"info","fs-12","text-primary","montserrat-medium","text-medium"],[1,"fs-14"],[1,"fs-12","text-bold","montserrat-bold","text-link","cursor","mb-2","d-inline"],[1,"d-flex","justify-content-between","align-items-center","mb-3"],[1,"info","fs-14","text-primary","montserrat-medium","text-medium"]],template:function(i,n){1&i&&e.DNE(0,xe,134,76,"div",1),2&i&&e.Y8G("ngIf",n.package_show)},dependencies:[g.YU,g.Sq,g.bT,M.qW,M.Hv,g.P9,E.G],styles:['.card-package[_ngcontent-%COMP%]{border-radius:32px;-webkit-border-radius:32px;-moz-border-radius:32px;-ms-border-radius:32px;-o-border-radius:32px}.card-package[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{background-color:#fff;border-radius:32px 32px 0 0;-webkit-border-radius:32px 32px 0 0;-moz-border-radius:32px 32px 0 0;-ms-border-radius:32px 32px 0 0;-o-border-radius:32px 32px 0 0;border:0;border-bottom:1px solid rgba(0,0,0,.125)}.card-package[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:16px}.card-package[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:20px 6px}.card-package[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%]{padding:25px 16px;background-color:#fff;border-radius:0 0 32px 32px;-webkit-border-radius:0 0 32px 32px 0 0;-moz-border-radius:0 0 32px 32px 0 0;-ms-border-radius:0 0 32px 32px 0 0;-o-border-radius:0 0 32px 32px 0 0;border:0;position:relative;display:none}.card-package[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%]:after{position:absolute;width:90%;margin:0 auto;height:1px;background-color:#0003;content:"";top:0}.package-add-ons[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:20px}.add-ons-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:20px;position:relative}.add-ons-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:after{position:absolute;
1left:0;top:0;content:"";background:url(yellow-check-icon.aa4423a4ace5742e.svg);width:16px;height:16px}.add-ons-list[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{line-height:16px;margin-right:10px}.add-ons-list[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{white-space:nowrap}.card-package[_ngcontent-%COMP%] .text-link[_ngcontent-%COMP%]{text-decoration:underline}.card-package.selected[_ngcontent-%COMP%]{border:1px solid #CC0022}.card-package.selected[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{background-color:#c02;box-shadow:none;margin:-1px}.card-package.selected[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .text-primary[_ngcontent-%COMP%], .card-package.selected[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .text-gray[_ngcontent-%COMP%], .card-package.selected[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .text-dark[_ngcontent-%COMP%]{color:#fff!important}.card-package.selected[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%]{display:block} .select-package .carousel .slick-dots{bottom:-35px} .select-control.xs-select-control .ngx-select .form-control.btn, .select-control.xs-select-control .ngx-select input{font-size:12px;padding:5px 10px;max-height:25px;line-height:25px} .select-control.xs-select-control .ngx-select .ngx-select__placeholder, .select-control.xs-select-control .ngx-select .ngx-select__placeholder span, .select-control.xs-select-control .ngx-select .ngx-select__selected-single{line-height:14px;font-size:12px;margin-right:5px} .select-control.xs-select-control .dropdown-toggle:after{width:7px;height:5px;background:url(down-arrow-xs.ea7aae85ae6566a7.svg)} .form-group.radio-btn-xs .checkmark{height:18px;width:18px} .form-group.radio-btn-xs .checkmark:after{top:calc(50% - 5px);left:calc(50% - 5.2px);height:10px;width:10px} .form-group.radio-btn-xs .radio-data label{font-size:12px;line-height:18px} .select-package-wrapper .slick-list{padding-left:7px}.package-add-ons[_ngcontent-%COMP%] ul.add-ons-list[_ngcontent-%COMP%]{min-height:205px}@media (max-width: 991px) and (min-width: 320px){.select-package-wrapper[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:18px!important} .select-package .carousel .slick-dots{bottom:-45px}}']})}}return o})();const Me=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-health-choose-plan"]],decls:9,vars:0,consts:[[1,"mt-3","mb-4"],[1,"pl-3","pl-lg-4","pr-3","pr-lg-0"],[1,"pl-3","pl-lg-4","pr-0","pb-5"]],template:function(i,n){1&i&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"app-health-buy-choose-plan-header"),e.k0s(),e.j41(3,"div",2),e.nrm(4,"app-health-right-sum-insured")(5,"app-health-comfort-option")(6,"app-health-select-your-package")(7,"app-health-add-ons")(8,"app-health-discounts"),e.k0s()())},dependencies:[X,q,le,he,be,Oe]})}}return o})()}];let we=(()=>{class o{static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({imports:[D.iI.forChild(Me),D.iI]})}}return o})();var Se=c(44626),De=c(39331),Fe=c(5452),Ie=c(31555),je=c(14644);let Ee=(()=>{class o{static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({imports:[g.MD,we,Se.v,l.YN,l.X1,De.CustomCommonModule,Fe.PluginsModule,Ie.WidgetsModule,je.e]})}}return o})()}}]);
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.