PageSourceSearch

https://www.ketto.org/new/2138.01d1e55228b0ef6e.js

js ketto.org collected 2026-09-24 17:18:22 UTC 497,060 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[2138],{7045:(q,S,d)=>{d.d(S,{P:()=>w});var _=d(1222),i=d(4666),t=d(3458),l=d(2560);let w=(()=>{class y{}return(0,_.Z)(y,"\u0275fac",function(O){return new(O||y)}),(0,_.Z)(y,"\u0275cmp",l.Xpm({type:y,selectors:[["app-ketto-assured"]],standalone:!0,features:[l.jDz],decls:33,vars:25,consts:[[1,"popover__wrapper"],["href","javascript:void(0)",1,"logo","auto-shining"],[1,"popover__title"],["loading","lazy","data-src","/assets/images/Assured1.png","alt","ketto assured",1,"assure_image","img-responsive"],[1,"popover__content"],[1,"popover-title"],[1,"inline"],[1,"material-icons"]],template:function(O,C){1&O&&(l.TgZ(0,"div",0)(1,"a",1)(2,"p",2),l._UZ(3,"img",3),l.qZA()(),l.TgZ(4,"div",4)(5,"h3",5),l._uU(6),l.ALo(7,"async"),l.ALo(8,"translatePipe"),l.qZA(),l.TgZ(9,"div",6)(10,"i",7),l._uU(11,"check_circle"),l.qZA(),l._uU(12),l.ALo(13,"async"),l.ALo(14,"translatePipe"),l.qZA(),l.TgZ(15,"div",6)(16,"i",7),l._uU(17,"check_circle"),l.qZA(),l._uU(18),l.ALo(19,"async"),l.ALo(20,"translatePipe"),l.qZA(),l.TgZ(21,"div",6)(22,"i",7),l._uU(23,"check_circle"),l.qZA(),l._uU(24),l.ALo(25,"async"),l.ALo(26,"translatePipe"),l.qZA(),l.TgZ(27,"div",6)(28,"i",7),l._uU(29,"check_circle"),l.qZA(),l._uU(30),l.ALo(31,"async"),l.ALo(32,"translatePipe"),l.qZA()()()),2&O&&(l.xp6(6),l.Oqu(l.lcZ(7,5,l.lcZ(8,7,"Stories.donations.sealTrustAuthenticity"))),l.xp6(6),l.hij("",l.lcZ(13,9,l.lcZ(14,11,"Stories.donations.directToBeneficiary"))," "),l.xp6(6),l.hij("",l.lcZ(19,13,l.lcZ(20,15,"Stories.donations.donationProtection"))," "),l.xp6(6),l.hij("",l.lcZ(25,17,l.lcZ(26,19,"Stories.donations.donorProtection"))," "),l.xp6(6),l.hij("",l.lcZ(31,21,l.lcZ(32,23,"Stories.donations.encrypted"))," "))},dependencies:[i.Ov,t.a],styles:['.popover__wrapper[_ngcontent-%COMP%]{position:relative;display:inline-block}.popover__wrapper[_ngcontent-%COMP%]   .popover__content[_ngcontent-%COMP%]{padding:15px;border-radius:10px;box-shadow:0 0 13px #00000029;opacity:0;visibility:hidden;position:absolute}.popover__wrapper[_ngcontent-%COMP%]   .popover__content[_ngcontent-%COMP%]:before{position:absolute;z-index:-1;content:"";top:-7px;border-style:solid;border-width:0 10px 10px 10px;transition-duration:.3s;transition-property:transform}.popover__wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{position:relative;display:inline-block;margin:0 auto;border-radius:13px;overflow:hidden}.popover__wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.popover__wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]:after{position:absolute;top:0;left:-35px;content:"";width:104px;height:100%;background:url(/assets/images/mi-shine.png) no-repeat 0 0}.popover__wrapper[_ngcontent-%COMP%]   .auto-shining[_ngcontent-%COMP%]:after{opacity:1;transition:opacity .3s;animation:_ngcontent-%COMP%_logo 2.5s linear infinite}.popover__wrapper[_ngcontent-%COMP%]   .inline[_ngcontent-%COMP%]{display:flex;color:#fff;margin-top:11px}.popover__wrapper[_ngcontent-%COMP%]   .inline[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:15px;vertical-align:middle;margin-right:5px;transform:rotate(.03deg)}.popover__wrapper[_ngcontent-%COMP%]   .popover-title[_ngcontent-%COMP%]{color:#fff;text-align:center;font-weight:400}.popover__wrapper[_ngcontent-%COMP%]   .assure_image[_ngcontent-%COMP%]{width:100%}.popover__wrapper[_ngcontent-%COMP%]:hover   .popover__content[_ngcontent-%COMP%]{z-index:10;opacity:1;visibility:visible}@keyframes _ngcontent-%COMP%_logo{0%{transform:translateZ(0)}50%,to{transform:translate3d(250px,0,0)}}@media (min-width: 767px){.popover__content[_ngcontent-%COMP%]{left:-70px;background:#067F7E;width:290px}.popover__content[_ngcontent-%COMP%]   .inline[_ngcontent-%COMP%]{font-size:14px}.popover__content[_ngcontent-%COMP%]:before{right:calc(50% - 10px);border-color:transparent transparent #067F7E transparent}}@media (max-width: 767px){.popover__content[_ngcontent-%COMP%]{left:-133px;background:#067f7e;width:233px;top:50px}.popover__content[_ngcontent-%COMP%]   .inline[_ngcontent-%COMP%]{margin-bottom:10px;font-size:12px}.popover__content[_ngcontent-%COMP%]   .popover-title[_ngcontent-%COMP%]{font-size:16px;border-bottom:2px solid rgba(204,204,204,.6901960784);margin-left:-15px;margin-right:-15px;
1display:block;padding-bottom:15px;margin-top:10px;font-weight:600}.popover__content[_ngcontent-%COMP%]:before{right:50px;border-color:transparent transparent #067f7e transparent}}']})),y})()},5554:(q,S,d)=>{d.d(S,{v:()=>h});var _=d(1222),i=d(2560),t=d(4666),l=d(1322);function w(u,v){if(1&u&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&u){const P=v.$implicit,I=v.index,A=i.oxw(3);i.xp6(1),i.AsE("",P," ",I<=(null==A.vars.fundraiser?null:A.vars.fundraiser.multi_patient_beneficiaries.length)-3?", ":I+1!==(null==A.vars.fundraiser?null:A.vars.fundraiser.multi_patient_beneficiaries.length)?" and ":"","")}}function y(u,v){if(1&u&&(i.TgZ(0,"div",7),i._uU(1,"Your contribution will be used to support the treatment of other critically ill patients like "),i.YNc(2,w,2,2,"span",8),i._uU(3,", there by saving more lives."),i.qZA()),2&u){const P=i.oxw(2);i.xp6(2),i.Q6J("ngForOf",null==P.vars.fundraiser?null:P.vars.fundraiser.multi_patient_beneficiaries)}}function f(u,v){if(1&u&&(i.TgZ(0,"div")(1,"div",2),i._uU(2),i.ALo(3,"titlecase"),i.qZA(),i.TgZ(4,"em",3),i._uU(5,"info_outline"),i.qZA(),i.TgZ(6,"div",4)(7,"div",5),i._uU(8,"One contribution, many helped"),i.qZA(),i.YNc(9,y,4,1,"div",6),i.qZA()()),2&u){const P=i.oxw();i.Gre("multipatient ",P.theme,""),i.xp6(2),i.hij("For ",i.lcZ(3,5,null==P.vars.fundraiser||null==P.vars.fundraiser.beneficiaryname||null==P.vars.fundraiser.beneficiaryname.info_1?null:P.vars.fundraiser.beneficiaryname.info_1.split(" ")[0])," and other patients in need "),i.xp6(7),i.Q6J("ngIf",null==P.vars.fundraiser?null:P.vars.fundraiser.multi_patient_beneficiaries)}}function O(u,v){1&u&&(i.TgZ(0,"div",7),i._uU(1,"Your contribution will help support the feature patient alone."),i.qZA())}function C(u,v){if(1&u&&(i.ynx(0),i._uU(1),i.ALo(2,"titlecase"),i.BQk()),2&u){const P=v.$implicit,I=v.index,A=i.oxw(3);i.xp6(1),i.AsE("",i.lcZ(2,2,P),"",(null==A.vars.fundraiser||null==A.vars.fundraiser.multi_patient_beneficiaries?null:A.vars.fundraiser.multi_patient_beneficiaries.length)-1>I?", ":"","")}}function g(u,v){if(1&u&&(i.TgZ(0,"div",7),i._uU(1),i.ALo(2,"titlecase"),i.YNc(3,C,3,4,"ng-container",8),i._uU(4," and others fighting a similar illness. This is truly a remarkable deed, thank you."),i.qZA()),2&u){const P=i.oxw(2);i.xp6(1),i.hij("You\u2019ve chosen to contribute to ",i.lcZ(2,2,null==P.vars.fundraiser||null==P.vars.fundraiser.beneficiaryname?null:P.vars.fundraiser.beneficiaryname.info_1)," and others. our donation right now will help "),i.xp6(2),i.Q6J("ngForOf",null==P.vars.fundraiser?null:P.vars.fundraiser.multi_patient_beneficiaries)}}function x(u,v){if(1&u){const P=i.EpF();i.TgZ(0,"div",9)(1,"div",10),i.NdJ("click",function(){i.CHM(P);const A=i.oxw();return i.KtG(A.onShowClick(!A.showDesc))}),i.O4$(),i.TgZ(2,"svg",11),i._UZ(3,"path",12),i.qZA()(),i.kcU(),i.TgZ(4,"div",13),i.NdJ("click",function(){i.CHM(P);const A=i.oxw();return i.KtG(A.onShowClick(!A.showDesc))}),i._uU(5),i.qZA(),i.YNc(6,O,2,0,"div",6),i.YNc(7,g,5,4,"div",6),i.qZA()}if(2&u){const P=i.oxw();i.xp6(1),i.ekj("show",P.showDesc),i.xp6(4),i.hij("",P.vars.donateMultiPatient?"*":"","Know where your contribution goes"),i.xp6(1),i.Q6J("ngIf",P.showDesc&&!P.vars.donateMultiPatient),i.xp6(1),i.Q6J("ngIf",P.showDesc&&P.vars.donateMultiPatient)}}let h=(()=>{class u{constructor(){(0,_.Z)(this,"vars",(0,i.f3M)(l.a)),(0,_.Z)(this,"theme",void 0),(0,_.Z)(this,"showDesc",!1)}onShowClick(P){this.showDesc=P}}return(0,_.Z)(u,"\u0275fac",function(P){return new(P||u)}),(0,_.Z)(u,"\u0275cmp",i.Xpm({type:u,selectors:[["app-multi-patient-note"]],inputs:{theme:"theme"},standalone:!0,features:[i.jDz],decls:2,vars:2,consts:[[3,"class",4,"ngIf"],["class","multipatient-noPopover",4,"ngIf"],[1,"text"],[1,"material-icons"],[1,"popover-content"],[1,"sub-title"],["class","desc",4,"ngIf"],[1,"desc"],[4,"ngFor","ngForOf"],[1,"multipatient-noPopover"],[1,"arrowIcon",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 20 20","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.7417 10.242L10.5834 8.08366C10.2584 7.75866 9.73337 7.75866 9.40837 8.08366L7.25004 10.242C6.72504 10.767 7.10004 11.667 7.84171 11.66
17H12.1584C12.9 11.667 13.2667 10.767 12.7417 10.242Z","fill","#444444"],[1,"title",3,"click"]],template:function(P,I){1&P&&(i.YNc(0,f,10,7,"div",0),i.YNc(1,x,8,5,"div",1)),2&P&&(i.Q6J("ngIf",(null==I.vars.fundraiser?null:I.vars.fundraiser.is_multi_patient_campaign)&&"noPopover"!==I.theme),i.xp6(1),i.Q6J("ngIf",(null==I.vars.fundraiser?null:I.vars.fundraiser.is_multi_patient_campaign)&&"noPopover"===I.theme))},dependencies:[t.ez,t.sg,t.O5,t.rS],styles:['.multipatient[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin:auto;color:#667085;font-family:Source Sans Pro;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative}.multipatient[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{text-decoration:underline}.multipatient[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]{position:absolute;right:-20px;bottom:30px;width:100%;max-width:233px;padding:15px;border-radius:8px;background:#394556;box-shadow:0 6px 20px #00000045;color:#fff;line-height:normal;z-index:10}.multipatient[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]:not(:hover){display:none}.multipatient[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]:before{position:absolute;z-index:-1;content:"";right:20px;bottom:-9px;border-style:solid;border-color:transparent transparent #394556 transparent;border-width:0 10px 10px 10px;transition-duration:.3s;transition-property:transform;transform:rotate(180deg)}.multipatient[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{margin-bottom:20px;font-size:16px;font-weight:600}.multipatient[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:12px;font-weight:400}.multipatient[_ngcontent-%COMP%]:hover   .popover-content[_ngcontent-%COMP%], .multipatient[_ngcontent-%COMP%]:focus   .popover-content[_ngcontent-%COMP%], .multipatient[_ngcontent-%COMP%]:active   .popover-content[_ngcontent-%COMP%]{display:unset}.multipatient-noPopover[_ngcontent-%COMP%]{position:relative;width:100%;padding:14px 12px;border-radius:5px;background:#F6F5F5}.multipatient-noPopover[_ngcontent-%COMP%]   .arrowIcon[_ngcontent-%COMP%]{display:flex;position:absolute;top:12px;right:12px;cursor:pointer;transition:all .3s}.multipatient-noPopover[_ngcontent-%COMP%]   .arrowIcon[_ngcontent-%COMP%]:not(.show){transform:rotate(180deg)}.multipatient-noPopover[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#394556;font-size:14px;font-weight:600;line-height:130%;cursor:pointer}.multipatient-noPopover[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{margin:6px 8px 0;color:#737373;font-size:14px;font-weight:400;line-height:normal}@media screen and (max-width: 767px){.multipatient[_ngcontent-%COMP%]:not(.v2)   .popover-content[_ngcontent-%COMP%]{right:7px}.multipatient[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:15.08px}.multipatient[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:14px;margin-left:5px;font-size:18px;font-weight:400;line-height:15.08px}.multipatient-noPopover[_ngcontent-%COMP%]{padding:14px 8px;border-radius:0}.multipatient-noPopover[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px}.multipatient-noPopover[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{margin:8px 4px 0;font-size:12px}}@media screen and (min-width: 768px){.multipatient[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:17px;font-weight:400;line-height:21px}.multipatient[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:20px;margin-left:5px;font-size:17px;font-weight:400;line-height:21px}}.multipatient.v2[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]{bottom:unset;top:29px}.multipatient.v2[_ngcontent-%COMP%]   .popover-content[_ngcontent-%COMP%]:before{transform:rotate(0);bottom:unset;top:-9px}']})),u})()},2138:(q,S,d)=>{d.d(S,{p:()=>_r});var _=d(1670),i=d(1222),t=d(2560),l=d(4666),w=d(4865),y=d(1484),f=d(4522),O=d(7822),C=d(3547),g=d(9766),x=d(7837),h=d(1349),u=d(1322),v=d(3420);const P={title:"Please don't go yet!",extraProductTitle:"Please don't leave!",title1:"Wait! We want to contribute on your behalf!",description:(o,s,n)=>`Just ${n}${s} can give ${o} a shot at surviving this life-threatening disease and your contribution can make this possible`,de
1scription1:o=>`Download the Ketto App. We\u2019ll support ${o} in your name.`,non_med_desc:o=>`<div>${o}, can really use your help right now.</div> <div>Even a small contribution from you could make a significant impact.</div>`,extraProductDescription:()=>"Life is difficult for them but a single contribution from you will help them go on."};var I=d(253),A=d(3458),J=d(374),V=d(9796),W=d(7299),M=d(5759);function N(o,s){if(1&o&&t._UZ(0,"app-currency-icon",14),2&o){const n=t.oxw(3);t.Q6J("currency",null==n.data||null==n.data.contributeDetails?null:n.data.contributeDetails.selected_currency)}}function b(o,s){if(1&o&&(t.TgZ(0,"span",12),t._uU(1),t.ALo(2,"async"),t.ALo(3,"translatePipe"),t._UZ(4,"br"),t._uU(5),t.ALo(6,"async"),t.ALo(7,"translatePipe"),t.YNc(8,N,1,1,"app-currency-icon",13),t._uU(9),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,4,t.lcZ(3,6,"Stories.donations.couldUseHelp"))," "),t.xp6(4),t.hij(" ",t.lcZ(6,8,t.lcZ(7,10,"Stories.donations.smallContribution"))," "),t.xp6(3),t.Q6J("ngIf",null==n.data?null:n.data.contributeDetails),t.xp6(1),t.hij(" ",null==n.data||null==n.data.contributeDetails?null:n.data.contributeDetails.min_donation," ")}}function k(o,s){if(1&o&&t._UZ(0,"span",15),2&o){const n=t.oxw(2);t.Q6J("innerHTML",n.info.extraProductDescription(),t.oJD)}}function F(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",3)(1,"div",4),t._UZ(2,"img",5),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,b,10,12,"span",7),t.YNc(5,k,1,1,"span",8),t.qZA(),t.TgZ(6,"div",9)(7,"button",10),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return a.dialog.closeAll(),t.KtG(a.cancelPayment.next(!0))}),t._uU(8),t.ALo(9,"async"),t.ALo(10,"translatePipe"),t.qZA(),t.TgZ(11,"button",11),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.dialogRef.close())}),t._uU(12),t.ALo(13,"async"),t.ALo(14,"translatePipe"),t.qZA()()()}if(2&o){const n=t.oxw();t.xp6(2),t.Q6J("alt","Campaigner - "+(null==n.campaigner?null:n.campaigner.full_name)),t.uIk("data-src",(null==n.campaigner||null==n.campaigner.avtar?null:n.campaigner.avtar.cdn_path)||n.vars.defaultImg),t.xp6(2),t.Q6J("ngIf",!n.vars.showKCart),t.xp6(1),t.Q6J("ngIf",n.vars.showKCart),t.xp6(3),t.Oqu(t.lcZ(9,6,t.lcZ(10,8,"Stories.donations.noThanks"))),t.xp6(4),t.Oqu(t.lcZ(13,10,t.lcZ(14,12,"Stories.donations.surewillHelp")))}}function E(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"i",18),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.handleCloseAndSendEvent("closeBtn"))}),t._uU(3,"close"),t.qZA()(),t.TgZ(4,"div",19),t._UZ(5,"img",20),t.qZA(),t.TgZ(6,"div",21)(7,"div",22),t._uU(8),t.qZA(),t._UZ(9,"div",23),t.ALo(10,"utilPipe"),t.ALo(11,"currencyIcon"),t.qZA(),t.TgZ(12,"div",24)(13,"app-button",25),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.handleCloseAndSendEvent("help"))}),t.qZA(),t.TgZ(14,"button",26),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.handleCloseAndSendEvent("cancel"))}),t._uU(15," Sorry, not today "),t.qZA()()()}if(2&o){const n=t.oxw();t.xp6(5),t.uIk("data-src","/assets/images/donation-confirmation-img.png"),t.xp6(3),t.hij(" ",n.vars.showKCart?n.info.extraProductTitle:n.info.title," "),t.xp6(1),t.Q6J("innerHTML",n.vars.showKCart?n.info.extraProductDescription():n.isMedical?n.info.description(n.beneficiaryName,null==n.data||null==n.data.contributeDetails?null:n.data.contributeDetails.min_donation,t.lcZ(11,6,null==n.data?null:n.data.currency)):n.info.non_med_desc(t.xi3(10,3,n.beneficiaryName,"titleCaseEveryWord")),t.oJD)}}let R=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"dialogRef",(0,t.f3M)(y.so)),(0,i.Z)(this,"data",(0,t.f3M)(y.WI)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"actRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"beneficiaryName",""),(0,i.Z)(this,"isNGO",!1),(0,i.Z)(this,"isStorypage",!1),(0,i.Z)(this,"miniStory",!1),(0,i.Z)(this,"campaigner",void 0),(0,i.Z)(this,"isMedical",!1),(0,i.Z)(this,"cancelPayment",new I.x),(0,i.Z)(this,"info",P)}ngOnInit(){this.getBeneficiaryName(),this.router.url.match("stories")&&(this.isStorypage=!0),this.actRoute.snapshot.queryParams.mini_story&&(this.miniStory=!0)}getBeneficiaryName(){this.beneficiaryName=this.vars.fundraiser&&this.vars.fundraiser.beneficiary?this.vars.fundraiser?.beneficiary?.full_name||this.vars.basicInfo?.beneficiary_name:this.vars.fundraiser?.beneficiaryname?this.vars.fundraiser?.beneficiaryname?.info_1:this.vars.basicInfo?.beneficiary_name,this.isNGO=48===this.vars.fundraiser?.parent_cause_id,this.isMedical=!!this.vars.ALL_MEDICAL_CAUSES.includes(this.vars.fundraiser?.cause?.id)}handleCloseAndSendEvent(n){const e=this,r={cancel:()=>(e.dialog.closeAll(),this.cancelPayment.next(!0),"cancel_popup"),closeBtn:()=>(e.dialogRef.close(),"close_btn_popup"),help:()=>(e.dialogRef.close(),"help_popup")}[n]()||"";this.events.sendSystemEvent({eventName:"donation_confirmation",event_type:"campaign",page_name:this.vars.pageName||"home",event_type_id:this.vars.fundraiser.id,info_1:r,info_2:""}).subscribe(m=>m)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-donation-confirmation"]],standalone:!0,features:[t.jDz],decls:3,vars:2,consts:[[1,"dmsans"],["class","popup-wraper",4,"ngIf"],["class","popup-wrapper",4,"ngIf"],[1,"popup-wraper"],[1,"campainer-img-container"],["loading","lazy",1,"campainer-img",3,"alt"],[1,"appeal"],["class","txt",4,"ngIf"],["class","txt",3,"innerHTML",4,"ngIf"],[1,"action-btns"],["type","button","mat-button","",1,"act-btn","btn1",3,"click"],["type","button","mat-raised-button","",1,"act-btn","btn2",3,"click"],[1,"txt"],[3,"currency",4,"ngIf"],[3,"currency"],[1,"txt",3,"innerHTML"],[1,"popup-wrapper"],[1,"close-btn"],[1,"material-icons",3,"click"],[1,"top-img-wrapper"],["loading","lazy","alt","hands image"],[1,"content"],[1,"title"],[1,"description",3,"innerHTML"],[1,"action-wrapper"],["label","Yes, I will help","btnClass","full-width",3,"click"],["mat-button","",1,"full-width",3,"click"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,F,15,14,"div",1),t.YNc(2,E,16,8,"div",2),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngIf",e.isNGO),t.xp6(1),t.Q6J("ngIf",!e.isNGO))},dependencies:[l.O5,l.Ov,A.a,J.j,V.O,W.r,M.N,f.ot,f.lW],styles:[".popup-wraper[_ngcontent-%COMP%]   .campainer-img-container[_ngcontent-%COMP%]{height:70px;width:70px;background:#ffffff;position:absolute;
1left:calc(50% - 35px);top:calc(50% - 124px);border-radius:50%;display:flex;align-items:center;justify-content:center}.popup-wraper[_ngcontent-%COMP%]   .campainer-img-container[_ngcontent-%COMP%]   .campainer-img[_ngcontent-%COMP%]{height:62px;width:62px;border-radius:50%;object-fit:cover}.popup-wraper[_ngcontent-%COMP%]   .appeal[_ngcontent-%COMP%]{margin:20px auto;text-align:center}.popup-wraper[_ngcontent-%COMP%]   .appeal[_ngcontent-%COMP%]   .txt[_ngcontent-%COMP%]{line-height:24px;font-size:14px;-webkit-text-fill-color:#444444}.popup-wraper[_ngcontent-%COMP%]   .action-btns[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.popup-wraper[_ngcontent-%COMP%]   .action-btns[_ngcontent-%COMP%]   .act-btn[_ngcontent-%COMP%]{width:154px;min-width:auto;height:40px;border-radius:3px}.popup-wraper[_ngcontent-%COMP%]   .action-btns[_ngcontent-%COMP%]   .btn1[_ngcontent-%COMP%]{color:var(--primary-color)}.popup-wraper[_ngcontent-%COMP%]   .action-btns[_ngcontent-%COMP%]   .btn2[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff}.popup-wraper[_ngcontent-%COMP%]   .currency-icon[_ngcontent-%COMP%]{font-weight:600}.popup-wrapper[_ngcontent-%COMP%]{position:relative}.popup-wrapper[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{top:0;right:0;background-color:#fff;cursor:pointer}.popup-wrapper[_ngcontent-%COMP%]   .top-img-wrapper[_ngcontent-%COMP%]{padding-top:64px;display:flex;justify-content:center;min-height:230px}.popup-wrapper[_ngcontent-%COMP%]   .top-img-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;max-width:167.08px;max-height:166px}.popup-wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;margin:20px 0 16px;font-style:normal}.popup-wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:28px;text-align:center;color:#262626;margin-bottom:16px}.popup-wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#8c8c8c}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]{margin:20px auto 0;text-align:center;display:flex;flex-direction:column;justify-content:center}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]     app-button{font-style:normal}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]     app-button button{font-weight:700;font-size:17px;line-height:20px;height:44px}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:24px;color:#8c8c8c;height:44px;background-color:#fff;margin-top:10px}"]})),o})(),G=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"bottomSheetRef",(0,t.f3M)(w.oL)),(0,i.Z)(this,"data",(0,t.f3M)(w.OG)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"activatedRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"campaigner",void 0),(0,i.Z)(this,"cancelPayment",new I.x),(0,i.Z)(this,"isStorypage",!1),(0,i.Z)(this,"miniStory",!1),(0,i.Z)(this,"info",P),(0,i.Z)(this,"beneficiaryName",""),(0,i.Z)(this,"isNGO",!1),(0,i.Z)(this,"isMedical",!1)}ngOnInit(){this.campaigner=this.vars.fundraiser.campaigner,this.getBeneficiaryName(),this.router.url.match("stories")&&(this.isStorypage=!0),this.activatedRoute.snapshot.queryParams.mini_story&&(this.miniStory=!0)}getBeneficiaryName(){this.vars.beneficiary?this.beneficiaryName=this.vars.beneficiary.full_name:this.vars.fundraiser?.beneficiaryname?.info_1?this.beneficiaryName=this.vars.fundraiser?.beneficiaryname?.info_1:this.vars.fundraiser?.basicinfo&&(this.beneficiaryName=this.vars.fundraiser.basicinfo.find(n=>"beneficiary_name"===n.info_type)?.info_1),this.isNGO=48===this.vars.fundraiser.parent_cause_id,this.isMedical=!!this.vars.ALL_MEDICAL_CAUSES.includes(this.vars.fundraiser?.cause?.id)}handleCloseAndSendEvent(n){const e=this,r={cancel:()=>(e.bottomSheetRef.dismiss(),this.dialog.closeAll(),this.cancelPayment.next(!0),"cancel_popup"),closeBtn:()=>(e.bottomSheetRef.dismiss(),"close_btn_popup"),help:()=>(e.bottomSheetRef.dismiss(),"help_popup")}[n]()||"";this.events.sendSystemEvent({eventName:"donation_confirmation",event_type:"campaign",page_name:this.vars.pageName||"home",event_type_id:this.vars.fundraiser.id,info_1:r,info_2:""}).subscribe(m=>m)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-donation-confirmation-sheet"]],standalone:!0,features:[t.jDz],decls:16,vars:8,consts:[[1,"popup-wrapper"],[1,"close-btn"],[1,"material-icons",3,"click"],[1,"top-img-wrapper"],["loading","lazy"],[1,"content"],[1,"title"],[1,"description",3,"innerHTML"],[1,"action-wrapper"],["label","Yes, I will help","btnClass","full-width",3,"click"],["mat-button","",1,"full-width",3,"click"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"i",2),t.NdJ("click",function(){return e.handleCloseAndSendEvent("closeBtn")}),t._uU(3,"close"),t.qZA()(),t.TgZ(4,"div",3),t._UZ(5,"img",4),t.qZA(),t.TgZ(6,"div",5)(7,"div",6),t._uU(8),t.qZA(),t._UZ(9,"div",7),t.ALo(10,"utilPipe"),t.ALo(11,"currencyIcon"),t.qZA(),t.TgZ(12,"div",8)(13,"a
1pp-button",9),t.NdJ("click",function(){return e.handleCloseAndSendEvent("help")}),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.handleCloseAndSendEvent("cancel")}),t._uU(15," Sorry, not today "),t.qZA()()()),2&n&&(t.xp6(5),t.uIk("data-src","/assets/images/donation-confirmation-img.png"),t.xp6(3),t.hij(" ",e.vars.showKCart?e.info.extraProductTitle:e.info.title," "),t.xp6(1),t.Q6J("innerHTML",e.vars.showKCart?e.info.extraProductDescription():e.isMedical?e.info.description(e.beneficiaryName,null==e.data||null==e.data.contributeDetails?null:e.data.contributeDetails.min_donation,t.lcZ(11,6,null==e.data?null:e.data.currency)):e.info.non_med_desc(t.xi3(10,3,e.beneficiaryName,"titleCaseEveryWord")),t.oJD))},dependencies:[J.j,V.O,W.r,f.ot,f.lW],styles:['@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap";.popup-wrapper[_ngcontent-%COMP%]{position:relative}.popup-wrapper[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{top:10px;right:0;background-color:#fff;cursor:pointer;position:absolute}.popup-wrapper[_ngcontent-%COMP%]   .top-img-wrapper[_ngcontent-%COMP%]{padding-top:64px;display:flex;justify-content:center;min-height:230px}.popup-wrapper[_ngcontent-%COMP%]   .top-img-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;max-width:167.08px;max-height:166px}.popup-wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;margin:20px 0 16px;font-style:normal}.popup-wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:28px;text-align:center;color:#262626;margin-bottom:16px}.popup-wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#8c8c8c}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]{margin:20px auto 0;text-align:center;display:flex;flex-direction:column;justify-content:center}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]     app-button{font-style:normal}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]     app-button button{font-weight:700;font-size:17px;line-height:20px;height:44px}.popup-wrapper[_ngcontent-%COMP%]   .action-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:24px;color:#8c8c8c;height:44px;background-color:#fff;margin-top:10px}']})),o})();var ot=d(2516);const pt=["exitIntentModal"];function kt(o,s){if(1&o&&(t.TgZ(0,"div",17),t._UZ(1,"img",18),t.TgZ(2,"div",19)(3,"div",20),t._uU(4),t.qZA(),t.TgZ(5,"div",21),t._uU(6,"supporters "),t.qZA()()()),2&o){const n=t.oxw(3);t.xp6(4),t.hij("",n.supporterCount,"+ ")}}function Zt(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",14),t.YNc(1,kt,7,1,"div",15),t.TgZ(2,"button",16),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.handleClose())}),t.TgZ(3,"mat-icon"),t._uU(4,"close"),t.qZA()()()}if(2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf","exit_intent_trust"===n.vwo.exit_intent_AB())}}function Tt(o,s){1&o&&(t.TgZ(0,"div",22),t._UZ(1,"img",23),t.TgZ(2,"span",24),t._uU(3,"Secure, Verified, Transparent Giving"),t.qZA()())}const At=function(){return{width:"100%",height:"52px",borderRadius:"32px",bgColor:"#01BFBD",textColor:"#FCFCFC",fontSize:"16px",fontWeight:"700"}},It=function(){return{width:"100%",height:"52px",borderRadius:"32px",borderColor:"#F3F3F3",bgColor:"#F3F3F3",textColor:"#737373",fontSize:"16px",fontWeight:"700"}};function St(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",1),t.YNc(1,Zt,5,1,"div",2),t.TgZ(2,"div",3)(3,"div",4)(4,"div",5),t._UZ(5,"img",6),t.qZA(),t.TgZ(6,"div",7)(7,"h3",8),t._uU(8),t.qZA(),t._UZ(9,"p",9),t.qZA(),t.TgZ(10,"div",10)(11,"div",11)(12,"app-basic-button",12),t.NdJ("btnClicked",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.HandleHelp())}),t.qZA(),t.YNc(13,Tt,4,0,"div",13),t.qZA(),t.TgZ(14,"app-basic-button",12),t.NdJ("btnClicked",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.maybeLater())}),t.qZA()()()()()}if(2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("ngIf",n.showClose),t.xp6(7),t.Oqu(n.subtitle),t.xp6(1),t.Q6J("innerHTML",n.desc,t.oJD),t.xp6(3),t.Q6J("label",n.btnlabel)("themeConfig",t.DdM(8,At)),t.xp6(1),t.Q6J("ngIf","exit_intent_trust"===n.vwo.exit_intent_AB()),t.xp6(1),t.Q6J("label","Maybe later")("themeConfig",t.DdM(9,It))}}let Nt=(()=>{class o{constructor(){(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"bottomSheet",(0,t.f3M)(w.ch)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"actRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"exitIntentModal",void 0),(0,i.Z)(this,"handleHelp",new t.vpe),(0,i.Z)(this,"handleMaybeLater",new t.vpe),(0,i.Z)(this,"subtitle",""),(0,i.Z)(this,"btnlabel",""),(0,i.Z)(this,"desc",""),(0,i.Z)(this,"contributeDetails",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"mode","auto"),(0,i.Z)(this,"disableClose",!1),(0,i.Z)(this,"showClose",!0),(0,i.Z)(this,"supporterCount",850),(0,i.Z)(this,"dialogRef",void 0),(0,i.Z)(this,"sheetRef",void 0)}open(){"sheet"===this.mode||"auto"===this.mode&&this.vars.isMobile?(this.sheetRef=this.bottomSheet.open(this.exitIntentModal,{disableClose:this.disableClose,panelClass:"exit-intent-sheet"}),this.sheetRef.backdropClick().subscribe(()=>{this.sendEventOnBackClick()})):(this.dialogRef=this.dialog.open(this.exitIntentModal,{disableClose:this.disableClose,panelClass:"exit-intent-dialog"}),this.dialogRef.backdropClick().subscribe(()=>{this.sendEventOnBackClick()}))}sendEventOnBackClick(){this.events.sendSystemEvent({eventName:"donation_confirmation",event_type_id:this.vars.fundraiser.id,info_1:"close_btn_popup",info_2:this.contributeDetails?.min_donation}).subscribe(e=>e)}handleClose(){this.closePopup(),this.events.sendSystemEvent({eventName:"donation_confirmation",page_name:this.vars.pageName||"home",event_type_id:this.vars.fundraiser.id,info_1:"close_btn_popup",info_2:this.contributeDetails?.min_donation}).subscribe(e=>e)}closePopup(){this.dialogRef&&this.dialogRef.close(),this.sheetRef&&this.sheetRef.dismiss()}HandleHelp(){const n=this.vars.pageName?.match("stories"),a={...this.actRoute.snapshot.queryParams};n&&!this.vars.isMobile&&"options"===a.payment?this.dialog.closeAll():this.closePopup(),this.handleHelp.emit(),this.vars.ShowIntentWithMinAmount.next(!0)}maybeLater(){this.vars.ShowIntentWithMinAmount.next(!1),this.dialog&&this.dialog.closeAll(),this.bottomSheet&&this.bottomSheet.dismiss(),this.handleMaybeLater.emit()}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-exit-intent"]],viewQuery:function(n,e){if(1&n&&t.Gf(pt,7),2&n){let a;t.iGM(a=t.CRH())&&(e.exitIntentModal=a.first)}},inputs:{subtitle:"subtitle",btnlabel:"btnlabel",desc:"desc",contributeDetails:"contributeDetails",currency:"currency",mode:"mode",disableClose:"disableClose",showClose:"showClose",supporterCount:"supporterCount"},outputs:{handleHelp:"handleHelp",handleMaybeLater:"handleMaybeLater"},standalone:!0,features:[t.jDz],decls:2,vars:0,consts:[["exitIntentModal",""],[1,"overlay"],["class","overlay__header",4,"ngIf"],[1,"overlay__body"],[1,"exit-intent"],["aria-hidden","true",1,"illustration"],["src","assets/images/back_modal_img.png","alt","Helping hands illustration",1,"art"],[1,"copy"],[1,"title"],[1,"desc",3,"innerHTML"],[1,"actions"],[1,"action-top"],[3,"label","themeConfig","btnClicked"],["class","secure",4,"ngIf"],[1,"overlay__header"],["class","supporter_wrap",4,"ngIf"],["type","button","aria-label","Close",1,"overlay__close",3,"click"],[1,"supporter_wrap"],["src","assets/images/supporter_img.png","alt","supporter",1,"support_img"],[1,"supporter_text"],[1,"supporter_text_title"],[1,"supporter_text_subtitle"],[1,"secure"],["src","assets/icons/lock.png","alt","secure",1,"secure-icon"],[1,"secure-text"]],template:function(n,e){1&n&&t.YNc(0,St,15,10,"ng-template",null,0,t.W1O)},dependencies:[l.ez,l.O5,y.Is,w._r,O.Ps,O.Hw,ot.n],styles:[".overlay[_ngcontent-%COMP%]{width:100%;max-width:560px}.overlay__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.overlay__header[_ngcontent-%COMP%]   .supporter_wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:6px}.overlay__header[_ngcontent-%COMP%]   .supporter_wrap[_ngcontent-%COMP%]   .support_img[_ngcontent-%COMP%]{height:28px}.overlay__header[_ngcontent-%COMP%]   .supporter_wrap[_ngcontent-%COMP%]   .supporter_text[_ngcontent-%COMP%]   .supporter_text_title[_ngcontent-%COMP%]{color:var(--Neutral-Black-6);font-size:14px;font-weight:800;line-height:10px;margin-bottom:3px}.overlay__header[_ngcontent-%COMP%]   .supporter_wrap[_ngcontent-%COMP%]   .supporter_text[_ngcontent-%COMP%]   .supporter_text_subtitle[_ngcontent-%COMP%]{color:#404040;font-size:14px;font-weight:400;line-height:10px;text-transform:uppercase}.overlay__title[_ngcontent-%COMP%]{font-size:20px;line-height:28px;font-weight:600;color:#0b0b0f}.overlay__close[_ngcontent-%COMP%]{background:transparent;border:none;width:40px;height:40px;line-height:40px;text-align:center;border-radius:8px;font-size:18px;
1cursor:pointer;margin-left:auto}.overlay__body[_ngcontent-%COMP%]{color:#3f3f46;font-size:14px;line-height:20px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:480px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .supporters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;align-self:flex-start}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .illustration[_ngcontent-%COMP%]{position:relative;width:241px;height:158.841px;margin:20px 0 5px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .illustration[_ngcontent-%COMP%]   .oval[_ngcontent-%COMP%]{position:absolute;bottom:-83.25px;left:50%;width:241px;height:241px;transform:translate(-50%) rotate(180deg)}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .illustration[_ngcontent-%COMP%]   .art[_ngcontent-%COMP%]{position:absolute;top:-29.58px;left:23px;width:202.659px;height:202.659px;object-fit:contain}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .copy[_ngcontent-%COMP%]{text-align:center;width:392px;max-width:100%}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .copy[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:20px;line-height:28px;font-weight:700;color:#262626;margin:0 0 6px;letter-spacing:0}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .copy[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:17px;line-height:24px;color:#737373;margin:0;font-weight:500;letter-spacing:0}@media (max-width: 768px){.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .copy[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:14px}}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .copy[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]     span{font-weight:700}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{width:328px;max-width:100%;display:flex;flex-direction:column;gap:12px;margin-top:40px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .action-top[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .action-top[_ngcontent-%COMP%]   .secure[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:4px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .action-top[_ngcontent-%COMP%]   .secure[_ngcontent-%COMP%]   .secure-icon[_ngcontent-%COMP%]{width:12px;height:12px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .action-top[_ngcontent-%COMP%]   .secure[_ngcontent-%COMP%]   .secure-text[_ngcontent-%COMP%]{font-size:10px;line-height:12px;color:#737373;font-weight:400;letter-spacing:.2px}.overlay__body[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .cta[_ngcontent-%COMP%]{height:52px;border-radius:32px;font-weight:700;font-size:16px}.overlay__actions[_ngcontent-%COMP%]{display:flex;gap:12px;justify-content:flex-end;padding:16px 24px 24px;border-top:1px solid rgba(0,0,0,.08)}  .ea-unified-dialog .mat-mdc-dialog-container .mdc-dialog__surface{border-radius:16px;padding:0;box-shadow:0 10px 30px #00000029;background:#fcfcfc}  .exit-intent-dialog .mat-dialog-container{padding:10px 10px 24px!important}  .exit-intent-sheet .mat-bottom-sheet-container{padding:18px 10px 24px!important}  .ea-unified-sheet .mat-bottom-sheet-container{border-top-left-radius:16px;border-top-right-radius:16px;padding:0;box-shadow:0 -6px 24px #0000001f;background:#fcfcfc}@media (min-width: 480px){  .ea-unified-sheet .mat-bottom-sheet-container{max-width:640px;margin:0 auto}}@media (max-width: 768px){.overlay[_ngcontent-%COMP%]   .exit-intent[_ngcontent-%COMP%]{width:100%}.overlay__header[_ngcontent-%COMP%]   .supporter_wrap[_ngcontent-%COMP%]   .supporter_text[_ngcontent-%COMP%]   .supporter_text_title[_ngcontent-%COMP%], .overlay__header[_ngcontent-%COMP%]   .supporter_wrap[_ngcontent-%COMP%]   .supporter_text[_ngcontent-%COMP%]   .supporter_text_subtitle[_ngcontent-%COMP%]{font-size:12px;line-height:10px}}"]})),o})();var at=d(7802),$=d(4775);const Dt=["exitIntentModal"];function Ut(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",17),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.back())}
1),t.TgZ(1,"em",18),t._uU(2,"arrow_back_ios"),t.qZA(),t._uU(3," Back"),t.qZA()}}function Ft(o,s){}function Et(o,s){1&o&&t._UZ(0,"app-ketto-assured")}function qt(o,s){1&o&&t._UZ(0,"app-ketto-assured-v2")}function Lt(o,s){if(1&o&&(t.TgZ(0,"div",7),t.YNc(1,Ut,4,0,"div",8),t.TgZ(2,"div",9),t.YNc(3,Ft,0,0,"ng-template",10),t.TgZ(4,"div",11)(5,"span"),t._uU(6,"Contribute to:"),t.qZA(),t.TgZ(7,"div",12),t._uU(8),t.qZA(),t.TgZ(9,"span",13),t._uU(10),t.ALo(11,"async"),t.ALo(12,"translatePipe"),t.TgZ(13,"i",14),t._uU(14,"check_circle"),t.qZA()()(),t.TgZ(15,"div",15),t.YNc(16,Et,1,0,"app-ketto-assured",16),t.YNc(17,qt,1,0,"app-ketto-assured-v2",16),t.qZA()()()),2&o){const n=t.oxw(),e=t.MAs(9);t.xp6(1),t.Q6J("ngIf",n.vars.selectedKCart&&n.isMobile),t.xp6(2),t.Q6J("ngTemplateOutlet",e),t.xp6(5),t.AsE("",null!=n.vars.fundraiser&&n.vars.fundraiser.is_multi_patient_campaign&&"stories"===n.vars.pageName&&n.vwo.multi_patient_note_AB()&&n.vars.donateMultiPatient?"*":"","",null==n.fundraiser||null==n.fundraiser.beneficiaryname?null:n.fundraiser.beneficiaryname.info_1,""),t.xp6(2),t.Oqu(t.lcZ(11,7,t.lcZ(12,9,"Stories.donations.beneficiary"))),t.xp6(6),t.Q6J("ngIf","v1"===n.type),t.xp6(1),t.Q6J("ngIf","v2"===n.type)}}function Jt(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.back())}),t.TgZ(2,"mat-icon"),t._uU(3,"chevron_left"),t.qZA()()()}}function Rt(o,s){if(1&o&&(t.TgZ(0,"div",25),t._uU(1),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Oqu(n.getTitle(n.params.payment,(null==n.params?null:n.params.op)||(null==n.params?null:n.params.method)))}}function Qt(o,s){if(1&o&&(t.TgZ(0,"div",26),t._uU(1),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.hij("Total amount \u20b9",n.vars.selected_insurance.plan_amount,"")}}function Bt(o,s){if(1&o&&(t.TgZ(0,"div",26),t._uU(1),t.TgZ(2,"span",27),t._uU(3),t.qZA()()),2&o){const n=t.oxw(2);t.xp6(1),t.hij("Total amount \u20b9",null==n.vars.couponDetails?null:n.vars.couponDetails.payable_amount," "),t.xp6(2),t.hij("\u20b9",n.vars.selected_insurance.plan_amount,"")}}function zt(o,s){1&o&&(t.TgZ(0,"div",25),t._uU(1),t.ALo(2,"async"),t.ALo(3,"translatePipe"),t.qZA()),2&o&&(t.xp6(1),t.Oqu(t.lcZ(2,1,t.lcZ(3,3,"Stories.donations.donatingIn"))))}function Yt(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-currency-dropdown",31),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.setCurrency(a))}),t.qZA()}if(2&o){const n=t.oxw(3);t.Q6J("currencies",n.supportedCurrencies)("selectedCurrency",n.currency)}}function Ht(o,s){if(1&o&&(t.TgZ(0,"div",28),t.YNc(1,zt,4,5,"div",20),t.TgZ(2,"div",29),t.YNc(3,Yt,1,2,"app-currency-dropdown",30),t.qZA()()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.isMobile),t.xp6(2),t.Q6J("ngIf",n.supportedCurrencies)}}function Kt(o,s){if(1&o&&(t.TgZ(0,"header"),t.YNc(1,Jt,4,0,"div",19),t.YNc(2,Rt,2,1,"div",20),t.YNc(3,Qt,2,1,"div",21),t.YNc(4,Bt,4,2,"div",21),t.YNc(5,Ht,4,2,"div",22),t.qZA()),2&o){const n=t.oxw();t.ekj("white-header",("options"==(null==n.params?null:n.params.payment)||(null==n.vars.fundraiser?null:n.vars.fundraiser.is_multi_patient_campaign))&&n.isMobile),t.xp6(1),t.Q6J("ngIf",!("options"!==(null==n.params?null:n.params.payment)&&n.util.isApp()||n.vars.selected_insurance||n.isStandAlone&&"options"!==(null==n.params?null:n.params.payment)||n.vars.isOrderLoading)),t.xp6(1),t.Q6J("ngIf",!("form"===(null==n.params?null:n.params.payment)&&n.isMobile||n.vars.selected_insurance||n.vars.selectedKCart&&"form"===(null==n.params?null:n.params.payment))),t.xp6(1),t.Q6J("ngIf",n.vars.selected_insurance&&!(null!=n.vars.couponDetails&&n.vars.couponDetails.discount_amount)),t.xp6(1),t.Q6J("ngIf",n.vars.selected_insurance&&(null==n.vars.couponDetails?null:n.vars.couponDetails.discount_amount)),t.xp6(1),t.Q6J("ngIf","lead"!==(null==n.params?null:n.params.type)&&"options"!==n.params.payment&&!n.vars.selectedKCart)}}function jt(o,s){1&o&&(t.TgZ(0,"div",32),t._UZ(1,"app-component-loader",33),t.qZA())}function Vt(o,s){1&o&&(t.TgZ(0,"div",34),t._UZ(1,"app-component-loader",35),t.qZA())}function Gt(o,s){if(1&o&&(t.TgZ(0,"div",38),t._UZ(1,"img",39),t.qZA()),2&o){const n=t.oxw(2);
1t.xp6(1),t.Q6J("alt","Profile Pic - "+(null==n.vars.beneficiary?null:n.vars.beneficiary.full_name)),t.uIk("data-src",null==n.fundraiser||null==n.fundraiser.media_beneficiary?null:n.fundraiser.media_beneficiary.cdn_path)}}function $t(o,s){1&o&&t._UZ(0,"i",40)}function Wt(o,s){if(1&o&&(t.YNc(0,Gt,2,2,"div",36),t.YNc(1,$t,1,0,"i",37)),2&o){const n=t.oxw();t.Q6J("ngIf",null==n.fundraiser?null:n.fundraiser.media_beneficiary),t.xp6(1),t.Q6J("ngIf",!(null!=n.fundraiser&&n.fundraiser.media_beneficiary))}}let Xt=(()=>{class o{constructor(){(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"location",(0,t.f3M)(l.Ye)),(0,i.Z)(this,"actRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"bottomSheet",(0,t.f3M)(w.ch)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"exitIntentModal",void 0),(0,i.Z)(this,"fundraiser",void 0),(0,i.Z)(this,"isReward",void 0),(0,i.Z)(this,"selectedCurrency",void 0),(0,i.Z)(this,"screenName",void 0),(0,i.Z)(this,"showBeneficiary",void 0),(0,i.Z)(this,"contributeDetails",void 0),(0,i.Z)(this,"isStandAlone",void 0),(0,i.Z)(this,"type","v1"),(0,i.Z)(this,"tiptyp",void 0),(0,i.Z)(this,"userSelectionCurrency",new t.vpe),(0,i.Z)(this,"supportedCurrencies",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"params",void 0),(0,i.Z)(this,"currentUrl",void 0),(0,i.Z)(this,"isMobile",this.vars.isMobile)}ngOnInit(){this.vars.showKCart&&(this.vwo.exit_intent_AB=()=>""),this.getCurrencyDetails(),this.actRoute.queryParams.subscribe(n=>{this.params=n})}handleHelpWithMininumAmount(){"mini_story"===this.vars.pageName&&this.dialog?this.dialog.closeAll():("stories"===this.vars.pageName||"mini_story"===this.vars.pageName&&this.bottomSheet)&&this.bottomSheet.dismiss(),this.events.sendSystemEvent({eventName:"donation_confirmation",page_name:this.vars.pageName||"home",event_type_id:this.fundraiser.id,info_1:"help_popup",info_2:this.contributeDetails?.min_donation}).subscribe(e=>e)}handleMaybeLater(){this.events.sendSystemEvent({eventName:"donation_confirmation",page_name:this.vars.pageName||"home",event_type_id:this.fundraiser.id,info_1:"cancel_popup",info_2:this.contributeDetails?.min_donation}).subscribe(e=>e)}getCurrencyDetails(){this.paymentUtil.supportedCurrencies.subscribe({next:n=>{n&&setTimeout(()=>{this.supportedCurrencies=n},0)}}),this.paymentUtil.paymentCurrency.subscribe({next:n=>{this.currency=n}})}getTitle(n,e){if(e&&this.vars.isMobile)switch(e){case"c":return this.vars.isMobile?"":"Enter your card details";case"p":return"Payment using PayTM"}else switch(n){case"rd":return"Choose Reward amount";case"form":return"Choose a contribution amount";case"options":return"Choose payment option"}}setCurrency(n){this.paymentUtil.paymentCurrency.next(n.currency),this.userSelectionCurrency.emit(n)}back(){const n={...this.actRoute.snapshot.queryParams};if("f"===n?.st&&n?.frtip&&"thank_you"===this.vars.pageName)this.dialog.closeAll();else{if(this.isMobile&&this.vars.pageName.match("mini_story")&&"options"===n?.payment)return this.vars.paymentFormAction.next("closed"),this.dialog.closeAll(),void this.router.navigate([],{queryParams:{st:null,payment:"form",op:null},queryParamsHandling:"merge"});if("f"===n?.st&&"options"===n?.payment&&this.vars.showKCart&&(!this.vars.isMobile&&this.vars.pageName.match("stories|mini_story")||this.vars.isMobile&&!this.vars.pageName.match("stories|mini_story")))return this.router.navigate([],{queryParams:{payment:"form"},queryParamsHandling:"merge"}),void(this.screenName="form");if("f"===n?.st&&"options"===n?.payment)return this.router.navigate([],{queryParams:{payment:"form",op:null},queryParamsHandling:"merge"}),void(this.screenName="form");if("f"===n?.st&&"options"===n?.payment&&this.vars.isMobile&&(this.vars.pageName.match("stories|mini_story")||this.vars.showStoryOnFundraiser))return this.router.navigate([],{queryParams:{payment:"form"},queryParamsHandling:"merge"}),void(this.screenName="form");this.screenName!==this.params.payment||this.params.op||this.isStandAlone?"f"===this.params?.st&&"options"===this.params?.payment&&!this.params?.op&&this.isStandAlone?this.router.navigate([],{queryParams:{payment:"form"},queryParamsHandling:"merge"}):(this.location.back(),this.paymentUtil.backButton.next(this.params),this.paymentUtil.cartSubs.forEac
1h(e=>e.unsubscribe())):(this.tiptyp||"exit_intent"!==this.vwo.exit_intent_AB()&&"exit_intent_trust"!==this.vwo.exit_intent_AB()?this.vars.isMobile||this.tiptyp?this.vars.isMobile&&!this.tiptyp?this.bottomSheet.open(G,{data:{contributeDetails:this.contributeDetails,currency:this.currency},panelClass:"confirmation-modal-sheet"}).afterDismissed().subscribe(r=>{this.vars.paymentFormAction.next("closed"),this.isStandAlone?this.location.back():this.vars.pageName.match("stories|mini_story")?this.vars.pageName.match("mini_story")&&this.location.back():this.router.navigate([],{queryParams:{st:null},queryParamsHandling:"merge"})}):(this.dialog.closeAll(),this.isStandAlone&&this.location.back()):this.dialog.open(R,{data:{contributeDetails:this.contributeDetails,currency:this.currency},width:"100%",height:"auto",maxWidth:"500px",maxHeight:"536px",panelClass:"confirmation-modal"}).componentInstance.cancelPayment.subscribe(()=>{this.vars.paymentFormAction.next("closed"),this.isStandAlone?this.location.back():this.vars.pageName.match("stories|mini_story")||this.router.navigate([],{queryParams:{st:null},queryParamsHandling:"merge"})}):this.exitIntentModal.open(),this.events.sendSystemEvent({eventName:"exitIntent_back",event_type_id:this.fundraiser.id}).subscribe(a=>a))}}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-payment-header"]],viewQuery:function(n,e){if(1&n&&t.Gf(Dt,5),2&n){let a;t.iGM(a=t.CRH())&&(e.exitIntentModal=a.first)}},inputs:{fundraiser:"fundraiser",isReward:"isReward",selectedCurrency:"selectedCurrency",screenName:"screenName",showBeneficiary:"showBeneficiary",contributeDetails:"contributeDetails",isStandAlone:"isStandAlone",type:"type",tiptyp:"tiptyp"},outputs:{userSelectionCurrency:"userSelectionCurrency"},standalone:!0,features:[t.jDz],decls:10,vars:14,consts:[["class","beneficiary-details d-sm-none",4,"ngIf"],[3,"white-header",4,"ngIf"],[3,"desc","subtitle","btnlabel","mode","contributeDetails","currency","handleHelp","handleMaybeLater"],["exitIntentModal",""],["class","extra-product-details",4,"ngIf"],["class","multi-patient-dropdown",4,"ngIf"],["profilePic",""],[1,"beneficiary-details","d-sm-none"],["class","back-action",3,"click",4,"ngIf"],[1,"flex-div","align-items-center"],[3,"ngTemplateOutlet"],[1,"details"],[1,"bene-name"],[1,"heading"],[1,"material-icons","check-circle"],[1,"ketto-assured-logo"],[4,"ngIf"],[1,"back-action",3,"click"],[1,"material-icons"],["class","action-icons",4,"ngIf"],["class","title",4,"ngIf"],["class","title partner",4,"ngIf"],["class","you-are-donating",4,"ngIf"],[1,"action-icons"],["type","button","mat-icon-button","",3,"click"],[1,"title"],[1,"title","partner"],[1,"before-discount"],[1,"you-are-donating"],[1,"currency-dropdown"],[3,"currencies","selectedCurrency","userSelectionCurrency",4,"ngIf"],[3,"currencies","selectedCurrency","userSelectionCurrency"],[1,"extra-product-details"],["selector","app-extra-product-details"],[1,"multi-patient-dropdown"],["selector","app-multi-patient-dropdown"],["class","profile-img",4,"ngIf"],["class","icon-user1",4,"ngIf"],[1,"profile-img"],["loading","lazy","alt","donor_img",3,"alt"],[1,"icon-user1"]],template:function(n,e){1&n&&(t.YNc(0,Lt,18,11,"div",0),t.YNc(1,Kt,6,7,"header",1),t.TgZ(2,"app-exit-intent",2,3),t.NdJ("handleHelp",function(){return e.handleHelpWithMininumAmount()})("handleMaybeLater",function(){return e.handleMaybeLater()}),t.ALo(4,"currencyIcon"),t.ALo(5,"currencyIcon"),t.qZA(),t.YNc(6,jt,2,0,"div",4),t.YNc(7,Vt,2,0,"div",5),t.YNc(8,Wt,2,2,"ng-template",null,6,t.W1O)),2&n&&(t.Q6J("ngIf",e.showBeneficiary&&"form"==(null==e.params?null:e.params.payment)),t.xp6(1),t.Q6J("ngIf",!e.vars.selectedKCart||!e.isMobile||e.vars.selectedKCart&&"form"!==(null==e.params?null:e.params.payment)&&e.isMobile),t.xp6(1),t.Q6J("desc","You\u2019ve already made a difference by showing up, a <span>"+t.lcZ(4,10,e.currency)+(null==e.contributeDetails?null:e.contributeDetails.min_donation)+" gift</span> can bring hope to someone in need.")("subtitle","One Last Thought")("btnlabel","Help with "+t.lcZ(5,12,e.currency)+(null==e.contributeDetails?null:e.contributeDetails.min_donation)+" ")("mode","auto")("contributeDetails",e.contributeDetails)("currency",e.currency),t.xp6(4),t.Q6J("ngIf",e.vars.selectedKCart&&e.isMobile&&"options"!==e.params.payment),t.xp6(1),t.Q6J("ngIf",(null==e.vars.fundraiser?null:e.vars.fundraiser.is_multi_patient_campaign)&&e.isMobile&&"stories"===e.vars.pageName&&"options"!==(null==e.params?null:e.params.payment)))},dependencies:[l.O5,l.tP,l.Ov,f.ot,f.lW,O.Ps,O.Hw,Nt,A.a,J.j,at.n,$.s],styles:["header[_ngcontent-%COMP%]{display:flex;align-items:center;background:#f7f8f8;position:relative;padding:0 5px}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{text-align:center}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--primary-color)}.extra-product-details[_ngcontent-%COMP%]{margin:17px 0 20px}@media (min-width: 769px){header[_ngcontent-%COMP%]{justify-content:space-between;
1height:58px;margin-bottom:10px}header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{width:100%;text-align:center;font-weight:700;font-size:20px;color:var(--primary-color)}header[_ngcontent-%COMP%]   .back-txt[_ngcontent-%COMP%]{display:none}  app-payment-header .currency-dropdown a{display:block;padding:8px}  .confirmation-modal .mat-dialog-container{border-radius:10px}  .sip-popup-container .mat-dialog-container{border-radius:8px;padding:0!important}}@media only screen and (max-width: 767px){  .sip-popup-container{max-width:320px!important}  .sip-popup-container .mat-dialog-container{border-radius:8px!important;padding:0!important}.beneficiary-details[_ngcontent-%COMP%]{padding:16px;position:relative;background:#f7f7f7}.beneficiary-details[_ngcontent-%COMP%]:has(.back-action){padding-top:30px}.beneficiary-details[_ngcontent-%COMP%]   .back-action[_ngcontent-%COMP%]{position:absolute;top:10px;display:flex;align-items:center;font-family:Proxima-Nova;font-size:12px;font-weight:700;line-height:130%;letter-spacing:-.24px;color:var(--primary-color);cursor:pointer}.beneficiary-details[_ngcontent-%COMP%]   .back-action[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:12px;font-weight:700}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]{display:flex}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:48px}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%;width:48px;height:48px;object-fit:cover}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .bene-name[_ngcontent-%COMP%]{font-weight:600;font-size:17px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{width:100%;margin-left:10px;line-height:19px}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}
1.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .check-circle[_ngcontent-%COMP%]{color:#01bfbd;font-size:15px;vertical-align:middle;margin-left:4px}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .ketto-assured-logo[_ngcontent-%COMP%]{margin-top:-10px}header.white-header[_ngcontent-%COMP%]{width:100%;background:#ffffff}header.white-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:0 auto;font-weight:700;font-size:15px;line-height:120%;letter-spacing:.005em;color:var(--primary-color)}header[_ngcontent-%COMP%]{height:52px;padding:15px;justify-content:flex-end}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:17px;padding:0;margin:0 0 0 30px;color:#444;font-weight:400}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]{position:absolute;left:5px}header[_ngcontent-%COMP%]     .mat-standard-chip{padding:0;min-height:23px;border-radius:4px!important}header[_ngcontent-%COMP%]     .currency-chip{height:22px!important}header[_ngcontent-%COMP%]     .currency-chip .mat-icon{right:0!important}header[_ngcontent-%COMP%]     .currency-chip .currency-select{width:56px!important}header[_ngcontent-%COMP%]     .mat-chip-list-wrapper{margin:0}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-transform:uppercase;margin-top:-10px;padding-right:3px;width:auto;font-weight:700}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]     .mat-button-wrapper{color:var(--primary-color)!important}  .currency-dropdown .mat-chip.mat-standard-chip{background:transparent;border:.75px solid #949494;border-radius:0}  .mat-menu-item{line-height:38px!important;height:38px!important}.you-are-donating[_ngcontent-%COMP%]{display:flex;font-weight:600;align-items:center}.back-text[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;vertical-align:inherit;width:18px;font-weight:700}  .back-text{font-weight:700}  .confirmation-modal-sheet mat-bottom-sheet-container{border-radius:24px 24px 0 0!important;max-height:90vh}}header[_ngcontent-%COMP%]   .title.partner[_ngcontent-%COMP%]{font-family:Sentient,serif;font-size:17px;font-weight:700;line-height:120%;color:#56648c}header[_ngcontent-%COMP%]   .title.partner[_ngcontent-%COMP%]   .before-discount[_ngcontent-%COMP%]{font-size:13px;font-weight:700;line-height:120%;text-decoration:line-through;color:#56648cba}.multi-patient-dropdown[_ngcontent-%COMP%]{padding:0 10px}"]})),o})();var X=d(3328),p=d(2508);const tn=["otherAmountBtnRef"],nn=["otherAmountRef"],en=["amountRef"];function on(o,s){if(1&o&&(t.TgZ(0,"div",18),t._uU(1),t.qZA()),2&o){const n=t.oxw(3);t.xp6(1),t.Oqu(n.tagLabel||"RECOMMENDED")}}function an(o,s){if(1&o&&t._UZ(0,"app-currency-icon",19),2&o){const n=t.oxw(3);t.Q6J("currency",n.currency)}}function sn(o,s){if(1&o&&(t.TgZ(0,"span",20),t._uU(1,"/Month"),t.qZA()),2&o){const n=t.oxw().$implicit;t.ekj("month-label-s",n.isSelected)}}function rn(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw(2);return c.setAmount(r),t.KtG(c.vars.resetSelectedKCart.next(!0))}),t.YNc(1,on,2,1,"div",15),t.YNc(2,an,1,1,"app-currency-icon",16),t._uU(3),t.YNc(4,sn,2,2,"span",17),t.qZA()}if(2&o){const n=s.$implicit,e=t.oxw(2);t.ekj("selected",n.isSelected),t.xp6(1),t.Q6J("ngIf",e.contributeDetails.default_amount===n.amount&&e.recommendTag),t.xp6(1),t.Q6J("ngIf",e.currency),t.xp6(1),t.hij(" \xa0",n.amount," "),t.xp6(1),t.Q6J("ngIf","sip_cause"==e.type)}}function cn(o,s){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,rn,5,6,"button",13),t.qZA()),2&o){const n=t.oxw();t.Gre("tokens-div ",n.theme,""),t.ekj("compact-ui",(null==n.vars.fundraiser?null:n.vars.fundraiser.is_multi_patient_campaign)&&"mini_story"!==n.vars.pageName),t.xp6(1),t.Q6J("ngForOf",n.slabs)}}function pn(o,s){if(1&o&&t._UZ(0,"app-currency-icon",19),2&o){const n=t.oxw(3);t.Q6J("currency",n.currency)}}function ln(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw(2);return t.KtG(c.setAmount(r))}),t.TgZ(1,"div")(2,"div"),t.YNc(3,pn,1,1,"app-currency-icon",16),t._uU(4),t.qZA(),t.TgZ(5,"div",22),t._uU(6,"per month"),t.qZA()()()}if(2&o){const n=s.$implicit,e=t.oxw(2);t.ekj("selected",n.isSelected),t.xp6(3),t.Q6J("ngIf",e.currency),t.xp6(1),t.Oqu(n.amount),t.xp6(1),t.ekj("active",n.isSelected)}}function dn(o,s){if(1&o&&(t.TgZ(0,"div",21),t.YNc(1,ln,7,6,"button",13),t.qZA()),2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("ngForOf",n.slabs)}}function un(o,s){1&o&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"async"),t.ALo(3,"translatePipe"),t.qZA()),2&o&&(t.xp6(1),t.Oqu(t.lcZ(2,1,t.lcZ(3,3,"Stories.bankTransfer.requiredField"))))}function mn(o,s){1&o&&(t.TgZ(0,"div"),t._uU(1,"Invalid Amount"),t.qZA())}function _n(o,s){if(1&o&&t._UZ(0,"app-currency-icon",19),2&o){const n=t.oxw(3);t.Q6J("currency",n.currency)}}function gn(o,s){if(1&o&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"async"),t.ALo(3,"translatePipe"),t.YNc(4,_n,1,1,"app-currency-icon",16),t._uU(5),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,3,t.lcZ(3,5,"Stories.bankTransfer.valueGreaterValidation"))," "),t.xp6(3),t.Q6J("ngIf",n.currency),t.xp6(1),t.hij(" ",null==n.contributeDetails?null:n.contributeDetails.min_donation,". ")}}function hn(o,s){if(1&o&&t._UZ(0,"app-currency-icon",19),2&o){const n=t.oxw(3);t.Q6J("currency",n.currency)}}function fn(o,s){if(1&o&&(t.TgZ(0,"div"),t._uU(1,"Please enter a value less than or equal to "),t.YNc(2,hn,1,1,"app-currency-icon",16),t._uU(3),t.qZA()),2&o){const n=t.oxw(2);t.xp6(2),t.Q6J("ngIf",n.currency),t.xp6(1),t.hij(" ",n.max_donation,".")}}function Cn(o,s){if(1&o&&(t.TgZ(0,"div",23),t.YNc(1,un,4,5,"div",24),t.YNc(2,mn,2,0,"div",24),t.YNc(3,gn,6,7,"div",24),t.YNc(4,fn,4,2,"div",24),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.amount.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.amount.hasError("pattern")),t.xp6(1),t.Q6J("ngIf",n.amount.hasError("min")),t.xp6(1),t.Q6J("ngIf",n.amount.hasError("max"))}}function On(o,s){1&o&&(t.TgZ(0,"div",25),t._uU(1,"Bigger the contribution, bigger your tax savings"),t.qZA())}let lt=(()=>{class o{constructor(){(0,i.Z)(this,"actiRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"storage",(0,t.f3M)(X.V)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"params",void 0),(0,i.Z)(this,"reward",void 0),(0,i.Z)(this,"isReward",void 0),(0,i.Z)(this,"type",void 0),(0,i.Z)(this,"setOtherAmount",void 0),(0,i.Z)(this,"contributeDetails",void 0),(0,i.Z)(this,"checkForOtherCases",!0),(0,i.Z)(this,"showSlabNameTag",void 0),(0,i.Z)(this,"recommendTag",void 0),(0,i.Z)(this,"payment_config",void 0),(0,i.Z)(this,"tagLabel",void 0),(0,i.Z)(this,"theme",void 0),(0,i.Z)(this,"isQR",void 0),(0,i.Z)(this,"userSelectionCurrency",new t.vpe),(0,i.Z)(this,"amountChange",new t.vpe),(0,i.Z)(this,"slabs",[]),(0,i.Z)(this,"amountForm",void 0),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"oldAmountValue",0),(0,i.Z)(this,"otherAmountLabel","Other Amount"),(0,i.Z)(this,"otherAmountBtnRef",void 0),(0,i.Z)(this,"otherAmountRef",void 0),(0,i.Z)(this,"amountRef",void 0),(0,i.Z)(this,"otherAmountSelected",!1),(0,i.Z)(this,"language",void 0),(0,i.Z)(this,"max_donation",5e7),(0,i.Z)(this,"subs",[])}ngOnChanges(n){n.contributeDetails&&!n.contributeDetails.firstChange&&(this.updateMinValidation(),this.slabConditions())}ngOnInit(){this.vars.ShowIntentWithMinAmount.subscribe(n=>{n&&(this.otherAmountAnimate(),this.amount.setValue(this.contributeDetails.min_donation),this.amountRef.nativeElement.focus())}),this.vars.languageObs.subscribe(n=>{this.language=n}),"UPI"===this.isQR?.name&&(this.max_donation=1e5),this.setConfig(),this.amountForm=new p.cw({amount:this.amount=new p.NI("",[p.kI.required,p.kI.pattern(/^[0-9]+$/),p.kI.min(this.contributeDetails.min_donation),p.kI.max(this.max_donation)])}),this.slabConditions(),this.paymentUtil.selectedReward.subscribe({next:n=>{n&&(this.reward=n,this.amount.setValue(this.reward.amount))}}),this.amount.valueChanges.subscribe(n=>{this.amountChange.next(n||0)}),this.vars.showKCart&&this.subs.push(this.vars.kKartSelectionChange.subscribe(n=>{this.vars.selectedKCart?this.setSlabs(this.contributeDetails.slabs,n?.amount||0):this.slabConditions()}))}setConfig(){this.subs.push(this.paymentUtil.paymentConfig.subscribe(n=>{n&&(this.payment_config={...this.payment_config,...n})}))}ngAfterViewInit(){this.isReward&&setTimeout(()=>{this.otherAmountAnimate(),this.amountRef.nativeElement.focus()},0)}updateMinValidation(){this.amount.setValidators([p.kI.required,p.kI.pattern(/^[0-9]+$/),p.kI.min(this.contributeDetails.min_donation),p.kI.max(this.max_donation)])}slabConditions(){if("f"===this.params.st){const n=this.storage.getFromSession("cartData"),e=n?.tip_amount?+n.tip_amount:0;
1n?.bulkdonation&&Object.keys(n?.bulkdonation).forEach(a=>{this.vars.fundraiser.id===+a&&n?.bulkdonation?.[a]?.amount&&(n.donated_amount=+n.bulkdonation[a].amount)}),this.setSlabs(this.contributeDetails.slabs,n.donated_amount-e)}else this.isReward?(this.amount.setValue(this.reward?this.reward.amount:this.contributeDetails.default_amount),this.amountChange.next(this.reward?this.reward.amount:this.contributeDetails.default_amount)):(this.amount.setValue(this.contributeDetails.default_amount),this.amountChange.next(this.contributeDetails.default_amount),this.setSlabs(this.contributeDetails.slabs,this.contributeDetails.default_amount))}setSlabs(n,e){e<this.contributeDetails.min_donation&&(e=this.contributeDetails.default_amount),this.slabs=[];const a=this.actiRoute.snapshot.queryParams;this.amount.setValidators([p.kI.required,p.kI.pattern(/^[0-9]+$/),p.kI.min(this.contributeDetails.min_donation),p.kI.max(this.max_donation)]);const r={amount:this.paymentUtil.utmProceedClicked?e+100:e,isSelected:!1};for(const c of n)this.slabs.push({amount:this.paymentUtil.utmProceedClicked?c+100:c,isSelected:c===e});if(this.checkForOtherCases)if(a.donated_amount)this.setAmountIfFailed(n,+a.donated_amount,{amount:+a.donated_amount,isSelected:!1});else if(a.abandon)this.setAmountIfFailed(n,+a.amount,{amount:+a.amount,isSelected:!1});else if("f"===this.params.st&&this.storage.getFromSession("cartData")){const c=this.storage.getFromSession("cartData"),m=c?.tip_amount?+c.tip_amount:0;c?.bulkdonation&&Object.keys(c?.bulkdonation).forEach(Z=>{this.vars.fundraiser.id===+Z&&c?.bulkdonation?.[Z]?.amount&&(c.donated_amount=+c.bulkdonation[Z].amount)}),this.setAmountIfFailed(n,c.donated_amount-m,r)}else this.setAmount(r);else this.setAmount(r)}setAmountIfFailed(n,e,a){if(this.setAmount(a),-1!==n?.map(Number)?.indexOf(e))for(const r of this.slabs)r.isSelected=+r.amount===e;else this.otherAmountAnimate()}setAmount(n){for(const e of this.slabs)e.isSelected=e.amount===n.amount;this.amount.setValue(n.amount),this.amountChange.next(n.amount)}otherAmountAnimate(){for(const e of this.slabs)e.isSelected=!1;this.otherAmountBtnRef&&(this.otherAmountBtnRef._elementRef.nativeElement.style.width="100%",this.otherAmountSelected=!0,this.otherAmountLabel="",this.otherAmountRef.nativeElement.style.display="unset");const n=this.storage.getFromSession("cartData");n?.campaign_products&&this.vars.resetSelectedKCart.next(n.campaign_products)}otherAmountBlur(n){const e=+n;149!==this.vars.fundraiser?.cause?.parent_cause_id||e<=0||e===this.oldAmountValue||(this.oldAmountValue=e,this.events.sendSystemEvent({eventName:"Amount less than limit",info_1:e}).subscribe(r=>r))}setCurrency(n){this.userSelectionCurrency.emit(n)}ngOnDestroy(){this.oldAmountValue=0,this.subs.forEach(n=>n.unsubscribe())}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-slabs"]],viewQuery:function(n,e){if(1&n&&(t.Gf(tn,5),t.Gf(nn,5),t.Gf(en,5)),2&n){let a;t.iGM(a=t.CRH())&&(e.otherAmountBtnRef=a.first),t.iGM(a=t.CRH())&&(e.otherAmountRef=a.first),t.iGM(a=t.CRH())&&(e.amountRef=a.first)}},inputs:{currency:"currency",params:"params",reward:"reward",isReward:"isReward",type:"type",setOtherAmount:"setOtherAmount",contributeDetails:"contributeDetails",checkForOtherCases:"checkForOtherCases",showSlabNameTag:"showSlabNameTag",recommendTag:"recommendTag",payment_config:"payment_config",tagLabel:"tagLabel",theme:"theme",isQR:"isQR"},outputs:{userSelectionCurrency:"userSelectionCurrency",amountChange:"amountChange"},standalone:!0,features:[t.TTD,t.jDz],decls:16,vars:17,consts:[[3,"class","compact-ui",4,"ngIf"],["class","tokens-div",4,"ngIf"],[3,"formGroup"],[1,"text-center"],["type","button","mat-raised-button","","disableRipple","",1,"other-amount",3,"click"],["otherAmountBtnRef",""],[1,"amount-input",3,"click"],["otherAmountRef",""],[1,"amout-select",3,"selectedCurrency","currencies","userSelectionCurrency"],["type","number","formControlName","amount",1,"other-input",3,"min","click","wheel","blur"],["amountRef",""],["class","other-error",4,"ngIf"],["class","tax-nudge",4,"ngIf"],["class","amount-token","type","button","mat-raised-button","",3,"selected","click",4,"ngFor","ngForOf"],["type","button","mat-raised-button","",1,"amount-token",3,"click"],["class","recommended-tag",4,"ngIf"],[3,"currency",4,"ngIf"],["class","month-label memorial",3,"month-label-s",4,"ngIf"],[1,"recommended-tag"],[3,"currency"],[1,"month-label","memorial"],[1,"tokens-div"],[1,"month-label"],[1,"other-error"],[4,"ngIf"],[1,"tax-nudge"]],template:function(n,e){1&n&&(t.YNc(0,cn,2,6,"div",0),t.YNc(1,dn,2,1,"div",1),t.TgZ(2,"form",2)(3,"div",3)(4,"button",4,5),t.NdJ("click",function(){return e.otherAmountAnimate()}),t._uU(6),t.ALo(7,"async"),t.ALo(8,"translatePipe"),t.TgZ(9,"div",6,7),t.NdJ("click",function(r){return r.stopPropagation()}),t.TgZ(11,"app-currency-dropdown",8),t.NdJ("userSelectionCurrency",function(r){return e.setCurrency(r)}),t.qZA(),t.TgZ(12,"input",9,10),t.NdJ("click",function(){return e.otherAmountAnimate()})("wheel",function(r){return r.preventDefault()})("blur",function(r){return e.otherAmountBlur(null==r||null==r.target?null:r.target.value)}),t.qZA()()(),t.YNc(14,Cn,5,4,"div",11),t.YNc(15,On,2,0,"div",12),t.qZA()()),2&n&&(t.Q6J("ngIf",!(e.isReward||null!=e.payment_config&&e.payment_config.is_sip
1)),t.xp6(1),t.Q6J("ngIf",!e.isReward&&(null==e.payment_config?null:e.payment_config.is_sip)),t.xp6(1),t.ekj("compact-ui",(null==e.vars.fundraiser?null:e.vars.fundraiser.is_multi_patient_campaign)&&"mini_story"!==e.vars.pageName),t.Q6J("formGroup",e.amountForm),t.xp6(2),t.ekj("error-border",e.amount.touched&&(null==e.amount?null:e.amount.invalid)&&(!(null!=e.payment_config&&e.payment_config.enable_min_cart_lead)||(null==e.payment_config?null:e.payment_config.cart_response))),t.xp6(2),t.hij(" ","en"===e.language||e.otherAmountSelected?e.otherAmountLabel:t.lcZ(7,13,t.lcZ(8,15,"Stories.donations.otheramount"))," "),t.xp6(5),t.Q6J("selectedCurrency",e.currency)("currencies",null==e.contributeDetails?null:e.contributeDetails.supported_currency),t.xp6(1),t.Q6J("min",(null==e.contributeDetails?null:e.contributeDetails.min_donation)||0),t.xp6(2),t.Q6J("ngIf",e.amount.touched&&e.amount.invalid&&(!(null!=e.payment_config&&e.payment_config.enable_min_cart_lead)||(null==e.payment_config?null:e.payment_config.cart_response))),t.xp6(1),t.Q6J("ngIf",!(null!=e.amount&&e.amount.invalid)&&(null==e.params?null:e.params.mini_story)))},dependencies:[l.O5,l.ax,l.Ov,p.UX,p._Y,p.Fj,p.wV,p.JJ,p.JL,p.qQ,p.sg,p.u,f.ot,f.lW,A.a,M.N,at.n],styles:[".tokens-div{display:flex;justify-content:center;gap:15px;width:100%}.tokens-div .selected{background-color:var(--primary-color);color:#fff!important}.tokens-div .selected:hover{background:var(--primary-hover-color)!important}.tokens-div .month-label-s{color:inherit!important}.tokens-div .amount-token{margin:0;border:1px solid var(--primary-color);font-size:16px;color:#444;overflow:hidden;position:relative}.tokens-div .amount-token .recommended-tag{position:absolute;inset:0 0 auto;z-index:10;width:100%;height:9px;background:#FFD964;color:#9d321a;font-size:6px;font-weight:700;line-height:10px}.tokens-div .amount-token:hover{background:#eeeeee}.tokens-div .amount-token .mat-button-wrapper{display:flex;align-items:center;justify-content:center}.tokens-div .amount-token .month-label{color:#999}.tokens-div .amount-token .month-label.memorial{font-size:12px}.tokens-div .reccuring-slabs{width:100px;border:2px solid #EEEEEE;box-sizing:border-box;border-radius:4px;padding:0;background-color:#fff;min-height:50px}@media (max-width: 350px){.tokens-div .reccuring-slabs{width:88px}}.tokens-div .reccuring-slabs .slab-name-tag{font-size:12px;font-weight:700;line-height:120%;letter-spacing:.5px;white-space:break-spaces;margin:10px 10px 4px;padding:0 10px 8px;border-bottom:1px solid #D7EFEF;color:#0e5166}@media (max-width: 768px){.tokens-div .reccuring-slabs .slab-name-tag{font-size:10px}}.tokens-div .reccuring-slabs .amount{width:-moz-fit-content;width:fit-content;margin:auto;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;font-weight:700;font-size:26px;line-height:33px;height:66px;color:var(--primary-color)}.tokens-div .reccuring-slabs .amount.with-name-tag{color:#0e5166!important;padding-bottom:4px}.tokens-div .reccuring-slabs .footer{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.02);color:#999;font-size:14px;line-height:110%;height:30px}.tokens-div .reccuring-slabs:nth-child(2){margin:auto 10px}.tokens-div .selected-ruccuring{border:2px solid var(--primary-color);box-shadow:0 4px 8px #01bfbd4d}.tokens-div .selected-ruccuring .slab-name-tag,.tokens-div .selected-ruccuring .amount.with-name-tag{color:#fff!important}.tokens-div .selected-ruccuring .selected-tick{display:flex;align-items:center;justify-content:center}.tokens-div .selected-ruccuring .footer{color:var(--green-color);background:rgba(1,191,189,.5);font-weight:700}.tokens-div .selected-tick{position:absolute;top:-10px;right:-10px;display:none;height:27px;width:27px;border-radius:50%;background-color:#fff}.tokens-div .selected-tick i{height:19px;width:19px;font-size:19px;border-radius:50%;background:#01BFBD;color:#fff}.tokens-div.v1 .amount-token{padding:2px 0}.tokens-div.v1 .amount-token .recommended-tag{font-size:7px;font-weight:700;line-height:10px}.other-amount{width:220px;max-width:365px;height:40px;margin:20px auto;border:1px solid var(--primary-color);color:#444;font-size:17px;transition:width .3s ease-in}.other-amount input{border:0;padding-left:10px;border-left:1px solid #ccc;float:left}
1.other-amount input:focus{outline:0}.other-amount .amount-input{display:none}.other-amount .amount-input .other-input{width:100%;max-width:245px;height:80%;position:absolute;top:50%;left:82px;transform:translateY(-50%);font-size:17px;background:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.other-amount .amount-input .amout-select .mat-chip.mat-standard-chip{padding:0 15px;margin:0;background:none}.other-amount .amount-input .amout-select{width:56px;margin:3px;border-radius:50px;border:0;float:left}.other-amount .amount-input .amout-select:focus{outline:0}.other-amount .amount-input .amout-select .icon{color:#444}.other-error{font-size:13px;color:#f44336}.tax-nudge{color:#019997;font-size:12px;font-weight:400;line-height:18px}.error-border{border:1px solid #f44336!important}#story-container .other-error{margin-top:-15px}.popular{font-weight:700;font-size:10px;line-height:14px;color:#204b6b;position:absolute;top:1px;left:7px}.popular i{font-size:9px}@media only screen and (min-width: 768px){.tokens-div .amount-token{min-width:100px}}@media only screen and (max-width: 768px){.tokens-div{display:flex;align-items:center;justify-content:center;gap:15px;width:100%}.tokens-div .amount-token{width:100%;min-height:40px}.other-amount{min-height:40px}.other-amount .amount-input .other-input{width:-webkit-fill-available}}.tokens-div.compact-ui .amount-token{min-height:32px;margin:0;line-height:130%}.compact-ui .other-amount{height:unset;min-height:32px;margin:14px auto;padding-left:10px;line-height:130%}.compact-ui .other-amount .amount-input .other-input{left:78px}\n"],encapsulation:2})),o})();var L=d(2933),dt=d(6256),tt=d(1647),ut=d(2487),B=d(8074),Pn=d(6370),bn=d(8525);let mt=(()=>{class o{constructor(){(0,i.Z)(this,"dialogRef",(0,t.f3M)(y.so,{optional:!0})),(0,i.Z)(this,"bottomSheetRef",(0,t.f3M)(w.oL,{optional:!0})),(0,i.Z)(this,"message","Ketto is committed to transparency and ensuring that all parties understand how donations are utilized. Ketto\n    reserves\n    the right to first use the donations received to cover the costs involved in creating, marketing, and distributing\n    the\n    campaign. These costs may include platform fees, license fee, and other operational expenses necessary to\n    facilitate the\n    campaign. After these costs are deducted, the remaining funds will be disbursed to the campaigner. Ketto reserves\n    the\n    right to prioritize the coverage of these costs before making payments to the campaigner. This approach ensures\n    that our\n    platform can effectively support and promote your campaign while maintaining financial integrity.")}close(n){this.bottomSheetRef?this.bottomSheetRef.dismiss(n):this.dialogRef.close(n)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-disclaimer-content"]],standalone:!0,features:[t.jDz],decls:7,vars:1,consts:[[1,"disclaimer-wrap"],[1,"disclaimer-title"],[1,"close-btn","cursor-pointer",3,"click"],[1,"disclaimer-content"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2,"Disclaimer"),t.qZA(),t.TgZ(3,"mat-icon",2),t.NdJ("click",function(){return e.close()}),t._uU(4,"close"),t.qZA(),t.TgZ(5,"div",3),t._uU(6),t.qZA()()),2&n&&(t.xp6(6),t.Oqu(e.message))},dependencies:[l.ez,O.Ps,O.Hw],styles:[".disclaimer-wrap[_ngcontent-%COMP%]{position:relative}.disclaimer-wrap[_ngcontent-%COMP%]   .disclaimer-title[_ngcontent-%COMP%]{text-align:center;color:var(--Neutral-Black-6);font-size:20px;font-style:normal;font-weight:700;line-height:28px;margin-bottom:8px}.disclaimer-wrap[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background-color:#fcfcfc;width:20px;height:20px}.disclaimer-wrap[_ngcontent-%COMP%]   .disclaimer-content[_ngcontent-%COMP%]{align-self:stretch;color:#737373;text-align:left;font-size:14px;font-style:normal;font-weight:500;line-height:20px}  .disclaimer-wrap .mat-dialog-container{width:100%;max-width:480px;padding:20px 20px 24px;border-radius:10px;background:#FCFCFC}  .disclaimer-wrap .mat-bottom-sheet-container{width:100%;padding:20px 16px 24px;background:#FCFCFC}"]})),o})();var z=d(4792),st=d(2922);const Mn=function(o,s,n,e,a){return{recentPayMode:o,order:s,userData:n,origin:"s",type:"v3",header_type:"v2",showSlabs:!1,showTip:!1,fundraiser:e,slabTheme:"slab-theme-v5",paymentBtnClass:"payment-btn-theme-v3",themeColor:"#01bfbd",donatingAs:!0,currency:a,donateBtnLabel:"Repeat Contribution",optionsCheck:!1,onpage:!1,onAmtForm:!0,theme:"v3",buttonId:"c1"}},_t=function(o){return{config:o}};function xn(o,s){if(1&o&&(t.TgZ(0,"div",6),t._UZ(1,"app-component-loader",7),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("inputs",t.VKq(7,_t,t.qbA(1,Mn,n.recentPaymodes[0],n.orders[0],n.user,n.vars.fundraiser,n.currency)))}}const vn=function(o,s,n,e,a){return{recentPayMode:o,order:s,userData:n,origin:"s",type:"v3",header_type:"v2",showSlabs:!1,showTip:!1,fundraiser:e,slabTheme:"slab-theme-v5",paymentBtnClass:"payment-btn-theme-v3",themeColor:"#01bfbd",donatingAs:!0,currency:a,donateBtnLabel:"Repeat Contribution",optionsCheck:!1,onpage:!1,onAmtForm:!0,theme:"v3",buttonId:"c2"}};function yn(o,s){if(1&o&&(t.TgZ(0,"div",8),t._UZ(1,"app-component-loader",7),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("inputs",t.VKq(7,_t,t.qbA(1,vn,n.recentPaymodes[1],n.orders[1],n.user,n.vars.fundraiser,n.currency)))}}function wn(o,s){if(1&o&&(t.TgZ(0,"div",1)(1,"div",2),t._uU(2,"Repeat past order"),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,xn,2,9,"div",4),t.YNc(5,yn,2,9,"div",5),t.qZA()()),2&o){const n=t.oxw();
1t.xp6(4),t.Q6J("ngIf","c2"!==(null==n.paymentV2.selectedButtonId?null:n.paymentV2.selectedButtonId.getValue())),t.xp6(1),t.Q6J("ngIf","c1"!==(null==n.paymentV2.selectedButtonId?null:n.paymentV2.selectedButtonId.getValue()))}}let kn=(()=>{class o{constructor(){(0,i.Z)(this,"auth",(0,t.f3M)(dt.e)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"paymentService",(0,t.f3M)(L.t)),(0,i.Z)(this,"paymentV2",(0,t.f3M)(B.i)),(0,i.Z)(this,"recentPaymodes",[]),(0,i.Z)(this,"orders",[]),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"user",void 0)}ngOnInit(){this.vars.userData.subscribe(n=>{this.user=n}),this.user?.lastorder&&this.getPaymentOptionsforQD(this.currency)}getPaymentOptionsforQD(n){let e=`&mobile_no=${this.user?.phone_1}&is_mobile=${this.vars.isMobile?1:0}&amount=${this.user?.lastorder?.donated_amount_local}`;this.vars.utmsUrlString&&(e+=`&${this.vars.utmsUrlString}`),this.paymentService.getPaymentOptions(n,e).subscribe(a=>{this.vwo.new_upi_AB()&&a?.data?.options&&(a.data.options.vpa_collect_enabled=!1),a?.data?.options?.PREVIOUSPAYMENTGATEWAY?(this.recentPaymodes[0]=Object.values(a?.data?.options?.PREVIOUSPAYMENTGATEWAY)[0],this.recentPaymodes[1]=Object.values(a?.data?.options?.PREVIOUSPAYMENTGATEWAY)[1]||Object.values(a.data.options.PREVIOUSPAYMENTGATEWAY)[0]):(this.recentPaymodes[0]=null,this.recentPaymodes[1]=null)}),this.getBeneficiaries()}getBeneficiaries(){var n=this;return(0,_.Z)(function*(){const e="?with=campaign;campaign.beneficiary;campaign.beneficiaryname;campaign.mediaBeneficiary;campaign.campaigner.avtar;campaign.updatesCount;campaign.basicinfo;campaign.hospital;".concat("campaign.viewmedicalbill;campaign.leaderboard;campaign.theater;campaign.storyTitle;campaign.storyDescription&limit=200&orderBy=creation_date&sortedBy=desc"),a=yield n.auth.getUserOrders(e);a?.data?.length&&(n.orders[0]=a.data[0],n.orders[1]=a.data[1]||"",n.orders=n.orders.filter(r=>r))})()}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-quickdonate-card"]],inputs:{currency:"currency"},standalone:!0,features:[t.jDz],decls:1,vars:1,consts:[["class","recocard-wrapper",4,"ngIf"],[1,"recocard-wrapper"],[1,"title"],[1,"recocard"],["class","reco1",4,"ngIf"],["class","reco2",4,"ngIf"],[1,"reco1"],["selector","app-order-reco-card",3,"inputs"],[1,"reco2"]],template:function(n,e){1&n&&t.YNc(0,wn,6,2,"div",0),2&n&&t.Q6J("ngIf",(null==e.orders?null:e.orders.length)>1&&(null==e.orders[0]?null:e.orders[0].iso_currency)===e.currency&&(null==e.orders[1]?null:e.orders[1].iso_currency)===e.currency)},dependencies:[l.O5,$.s],styles:[".recocard-wrapper[_ngcontent-%COMP%]{margin:20px -20px;background:#f0f6f3;padding:20px 16px;font-size:20px;font-weight:700;line-height:25px;color:#444}.recocard-wrapper[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-bottom:12px}.recocard-wrapper[_ngcontent-%COMP%]   .recocard[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.recocard-wrapper[_ngcontent-%COMP%]   .recocard[_ngcontent-%COMP%]     app-payment-otd app-payment-sip-upi-timer .vpa-wrapper{position:fixed!important;height:100vh!important}"]})),o})();var Zn=d(5313),nt=d(4714);function Tn(o,s){1&o&&(t.TgZ(0,"div",4),t._uU(1,"Help us support hundreds of families this week."),t.qZA())}function An(o,s){1&o&&(t.TgZ(0,"div",4),t._uU(1,"Help us support hundreds of lives every month."),t.qZA())}let In=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"api",(0,t.f3M)(ut.s)),(0,i.Z)(this,"payment_config",void 0),(0,i.Z)(this,"isContributeCalled",!1),(0,i.Z)(this,"pre_currency","INR"),(0,i.Z)(this,"subs",[])}ngOnInit(){this.setConfig()}setConfig(){this.subs.push(this.paymentUtil.paymentConfig.subscribe(n=>{n&&(this.payment_config={...this.payment_config,...n},n?.currency&&this.getSipContribute())}))}sipToggle(n){var e=this;return(0,_.Z)(function*(){e.isContributeCalled||(yield e.getSipContribute()),e.paymentUtil.paymentConfig.next({is_sip:n}),e.events.sendSystemEvent({eventName:"toggleswitch",info_1:n?"sip":"one time"}).subscribe(r=>r)})()}getSipContribute(){var n=this;return(0,_.Z)(function*(){return new Promise((e,a)=>{try{n.isContributeCalled=!0,n.api.get(Zn.c.GET_RECURRING_CONTRIBUTE_DETAILS+`?currency=${n.payment_config.currency}&origin=${n.payment_config.origin}&${n.vars.utmsUrlString}`).subscribe(m=>{n.paymentUtil.paymentConfig.next({sip_contribute_details:m?.data?.data}),n.isContributeCalled=!1,e(!0)})}catch{a(!1)}})})()}
1ngOnDestroy(){this.subs.forEach(n=>n.unsubscribe())}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-otd-sip-toggle"]],inputs:{payment_config:"payment_config"},standalone:!0,features:[t.jDz],decls:9,vars:7,consts:[[1,"sip-switch"],[1,"toggle-btn"],[3,"checked","change"],["class","desc",4,"ngIf"],[1,"desc"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3,"Give Once"),t.qZA(),t.TgZ(4,"mat-slide-toggle",2),t.NdJ("change",function(r){return e.sipToggle(r.checked)}),t.qZA(),t.TgZ(5,"span"),t._uU(6,"Give Monthly"),t.qZA()(),t.YNc(7,Tn,2,0,"div",3),t.YNc(8,An,2,0,"div",3),t.qZA()),2&n&&(t.xp6(2),t.ekj("active",!(null!=e.payment_config&&e.payment_config.is_sip)),t.xp6(2),t.Q6J("checked",null==e.payment_config?null:e.payment_config.is_sip),t.xp6(1),t.ekj("active",null==e.payment_config?null:e.payment_config.is_sip),t.xp6(2),t.Q6J("ngIf",!(null!=e.payment_config&&e.payment_config.is_sip)),t.xp6(1),t.Q6J("ngIf",null==e.payment_config?null:e.payment_config.is_sip))},dependencies:[l.O5,nt.rP,nt.Rr],styles:['@import"https://api.fontshare.com/v2/css?f[]=sentient@700&display=swap";.sip-switch[_ngcontent-%COMP%]{margin:15px auto 30px;text-align:center}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]{margin-bottom:30px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Sentient,serif;font-size:20px;font-weight:700;line-height:120%;color:#a3a9b6}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{color:#01bfbd}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle .mat-slide-toggle-label{margin:auto 12px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-bar{width:25px;background-color:#444}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-thumb-container{width:10px;height:10px;top:2px;left:1px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-thumb-container .mat-slide-toggle-thumb{height:10px;width:10px;box-shadow:none;background-color:#fafafa}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle.mat-checked .mat-slide-toggle-label .mat-slide-toggle-thumb-container{left:-2px}.sip-switch[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-style:italic;font-size:16px;font-weight:400;line-height:24px;color:#204b6b}@media (max-width: 769px){.sip-switch[_ngcontent-%COMP%]{margin:10px auto 25px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]{margin-bottom:15px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:120%}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-bar{height:14px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-thumb-container{width:11px;height:11px;top:1px;left:2px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle .mat-slide-toggle-label .mat-slide-toggle-thumb-container .mat-slide-toggle-thumb{height:11px;width:11px}.sip-switch[_ngcontent-%COMP%]   .toggle-btn[_ngcontent-%COMP%]     .mat-slide-toggle.mat-checked .mat-slide-toggle-label .mat-slide-toggle-thumb-container{left:-3px}.sip-switch[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:20px}}']})),o})();var Sn=d(5235),U=d(5074),Y=d(6939),H=d(7371),D=d(207);function Nn(o,s){1&o&&(t.TgZ(0,"span",14),t._uU(1,"Ketto is charging 0% platform fee* for this fundraiser, relying solely on the generosity of contributors like you. "),t.qZA())}function Dn(o,s){1&o&&(t.TgZ(0,"span",14),t._uU(1,"If you like what we are doing, you can leave us small tip!"),t.qZA())}function Un(o,s){if(1&o&&t._UZ(0,"div",17),2&o){t.oxw(3);const n=t.MAs(13);t.Q6J("ngTemplateOutlet",n)}}function Fn(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",15),t.NdJ("mouseenter",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.showPopover=!0)})("mouseleave",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.showPopover=!1)}),t.TgZ(1,"mat-icon"),t._uU(2,"info"),t.qZA(),t.YNc(3,Un,1,1,"div",16),t.qZA()}if(2&o){const n=t.oxw(2);t.xp6(3),t.Q6J("ngIf",n.showPopover)}}function En(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"span",18),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2),r=t.MAs(13);return t.KtG(a.openTipInfo(r))}),t._uU(1," Know more"),t.qZA()}}function qn(o,s){if(1&o&&(t.TgZ(0,"div",10),t.YNc(1,Nn,2,0,"span",11),t.YNc(2,Dn,2,0,"span",11),t.YNc(3,Fn,4,1,"button",12),t.YNc(4,En,2,0,"span",13),t.qZA()),2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!n.vars.showKCart),t.xp6(1),t.Q6J("ngIf",n.vars.showKCart),t.xp6(1),t.Q6J("ngIf",!n.isMobile),t.xp6(1),t.Q6J("ngIf",n.isMobile&&!n.vars.showKCart)}}function Ln(o,s){1&o&&(t.TgZ(0,"div",10),t._uU(1,"If you like what we are doing, you can leave us small tip!"),t.qZA())}function Jn(o,s){1&o&&(t.TgZ(0,"div",10),t._uU(1,"If you like what we are doing support us by adding a tip of 18%"),t.qZA())}function Rn(o,s){1&o&&(t.TgZ(0,"span",14),t._uU(1,"Support us by adding a tip of :"),t.qZA())}function Qn(o,s){1&o&&(t.TgZ(0,"span",14),t._uU(1,"Tip to Ketto Volunteer"),t.qZA())}function Bn(o,s){}function zn(o,s){if(1&o&&t.YNc(0,Bn,0,0,"ng-template",17),2&o){t.oxw(2);const n=t.MAs(9);t.Q6J("ngTemplateOutlet",n)}}function Yn(o,s){}function Hn(o,s){if(1&o&&t.YNc(0,Yn,0,0,"ng-template",17),2&o){t.oxw(2);const n=t.MAs(11);t.Q6J("ngTemplateOutlet",n)}}function Kn(o,s){if(1&o&&(t.TgZ(0,"div",19),t.YNc(1,Rn,2,0,"span",11),t.YNc(2,Qn,2,0,"span",11),t.YNc(3,zn,1,1,null,20),t.YNc(4,Hn,1,1,null,20),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngIf","mini_story"!==n.vars.pageName),t.xp6(1),t.Q6J("ngIf","mini_story"===n.vars.pageName),t.xp6(1),t.Q6J("ngIf",!n.isMobile),t.xp6(1),t.Q6J("ngIf",n.isMobile)}}function jn(o,s){1&o&&(t.TgZ(0,"span"),t._uU(1,"98% donors have left a tip \u2b50\ufe0f"),t.qZA())}function Vn(o,s){if(1&o&&(t.TgZ(0,"div",26),t._UZ(1,"app-currency-icon",27),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("currency",n.currency)}}function Gn(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",21)(1,"div",22)(2,"label"),t._uU(3,"Tip Amount: "),t.qZA(),t.YNc(4,jn,2,0,"span",20),t.qZA(),t.TgZ(5,"mat-form-field",23)(6,"input",24),t.NdJ("input",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onInput())}),t.qZA(),t.YNc(7,Vn,2,1,"div",25),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.ekj("custom-tipAmount-v2","campaign"===n.vars.pageName&&n.vwo.fundraiser_tip_badge_AB()),t.xp6(3),t.Q6J("ngIf","campaign"===n.vars.pageName&&n.vwo.fundraiser_tip_badge_AB()),t.xp6(1),t.Q6J("formGroup",n.customAmountForm),t.xp6(1),t.Q6J("formControl",n.customAmount),t.xp6(1),t.Q6J("ngIf",n.currency)}}function $n(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",28)(1,"div",29)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",30),t.NdJ("change",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.toggle(a))}),t.qZA()(),t.TgZ(5,"div",31),t._uU(6," Contribution : "),t._UZ(7,"app-currency-icon",27),t._uU(8),t._UZ(9,"app-currency-icon",27),t._uU(10),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(3),t.hij("Give ",n.noTipDefault,"% of your contribution to Ketto and help more people raise funds for free."),t.xp6(1),t.Q6J("checked",n.isToggleChecked),t.xp6(3),t.Q6J("currency",n.currency),t.xp6(1),t.hij("",n.baseAmtToggle," + Tip : "),t.xp6(1),t.Q6J("currency",n.currency),t.xp6(1),t.hij("",n.tipAmtToggle," ")}}function Wn(o,s){if(1&o&&(t.TgZ(0,"div",32),t._uU(1),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.hij("Total Amount: ",n.currency+" "+n.amount,"")}}function Xn(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.hij("",n.percent,"%")}}function te(o,s){if(1&o&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.hij(" ",n.label,"")}}function ne(o,s){if(1&o&&(t.TgZ(0,"mat-option",36)(1,"span"),t.YNc(2,Xn,2,1,"span",20),t.YNc(3,te,2,1,"span",37),t.qZA()()),2&o){const n=s.$implicit,e=t.oxw(2);t.Q6J("value",n.percent),t.xp6(2),t.Q6J("ngIf",n.percent>0),t.xp6(1),t.Q6J("ngIf",e.baseAmount||"Other"===n.label)}}function ee(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"mat-form-field",33)(1,"mat-select",34),t.NdJ("selectionChange",function(a){t.CHM(n);const r=t.oxw();return r.selectTip(a),t.KtG(r.triggerOtherTipEvent(a))})("valueChange",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.selectedTip=a)}),t.YNc(2,ne,4,3,"mat-option",35),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("value",n.selectedTip),t.xp6(1),t.Q6J("ngForOf",n.tips)}}function ie(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.hij("",n.percent,"%")}}function oe(o,s){if(1&o&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.hij(" ",n.label,"")}}function ae(o,s){if(1&o&&(t.TgZ(0,"option",41)(1,"span"),t.YNc(2,ie,2,1,"span",20),t.YNc(3,oe,2,1,"span",37),t.qZA()()),2&o){const n=s.$implicit,e=t.oxw(2);t.Q6J("value",n.percent)("selected",e.selectedTip===n.percent),t.xp6(2),t.Q6J("ngIf",n.percent>0),t.xp6(1),t.Q6J("ngIf",e.baseAmount||"Other"===n.label)}}function se(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"mat-form-field",33)(1,"select",39),t.NdJ("change",function(a){t.CHM(n);const r=t.oxw();return r.selectTip(a,!0),t.KtG(r.triggerOtherTipEvent(a,!0))})("valueChange",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.selectedTip=a)}),t.YNc(2,ae,4,4,"option",40),t.qZA()()}if(2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("value",n.selectedTip),t.xp6(1),t.Q6J("ngForOf",n.tips)}}function re(o,s){1&o&&(t.TgZ(0,"span",53),t._uU(1,"arrow_drop_up"),t.qZA())}function ce(o,s){if(1&o&&(t.TgZ(0,"div",42)(1,"div",43),t.YNc(2,re,2,0,"span",44),t._UZ(3,"app-close-btn",45),t.TgZ(4,"div",46),t._uU(5,"Help Ketto help more people"),t.qZA(),t._UZ(6,"div",47),t.TgZ(7,"div",48),t._uU(8,"Ketto relies on tips from contributors like you so that we can stay as a 100% free fundraising platform for our fundraisers. We also use the tips to:"),t.qZA(),t.TgZ(9,"div",49)(10,"div",50)(11,"i",51),t._uU(12,"fiber_manual_record"),t.qZA(),t.TgZ(13,"span",52),t._uU(14,"Run marketing campaigns to raise awareness for our fundraisers like this one."),t.qZA()(),t.TgZ(15,"div",50)(16,"i",51),t._uU(17,"fiber_manual_record"),t.qZA(),t.TgZ(18,"span",52),t._uU(19,"Keep the lights on for Ketto."),t.qZA()(),t.TgZ(20,"div",50)(21,"i",51),t._uU(22,"fiber_manual_record"),t.qZA(),t.TgZ(23,"span",52),t._uU(24,"Visit and meet with people in need to help them create fundraising pages."),t.qZA()()()()()),2&o){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",!n.isMobile)}}function pe(o,s){1&o&&(t.TgZ(0,"div",54),t._UZ(1,"app-close-btn",45),t.TgZ(2,"div",46),t._uU(3,"Help us stay a Free Fundraising Platform"),t.qZA(),t._UZ(4,"div",47),t.TgZ(5,"div",49)(6,"div",52),t._uU(7,"With the contribution you offer, Ketto will be able:"),t.qZA(),t.TgZ(8,"div",50)(9,"i",51),t._uU(10,"check_circle"),t.qZA(),t.TgZ(11,"span",52),t._uU(12,"To raise awareness regarding integral social causes"),t.qZA()(),t.TgZ(13,"div",50)(14,"i",51),t._uU(15,"check_circle"),t.qZA(),t.TgZ(16,"span",52),t._uU(17,"Continue to offer better solutions and reach out to more people"),t.qZA()(),t.TgZ(18,"div",50)(19,"i",51),t._uU(20,"check_circle"),t.qZA(),t.TgZ(21,"span",52),t._uU(22,"Put in all our efforts to make sure that all those in need are funded"),t.qZA()(),t.TgZ(23,"div",50)(24,"i",51),t._uU(25,"check_circle"),t.qZA(),t.TgZ(26,"span",52),t._uU(27,"Stay a 100% free fundraising platform"),t.qZA()(),t.TgZ(28,"div",52),t._uU(29,"We have chosen a different approach. Will you support it?"),t.qZA()()())}let le=(()=>{class o{constructor(){(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"sheet",(0,t.f3M)(w.ch)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"v2",void 0),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"baseAmount",void 0),(0,i.Z)(this,"lastTipAmtObj",new t.vpe),(0,i.Z)(this,"tipAmount",new t.vpe),(0,i.Z)(this,"tipPercent",new t.vpe),(0,i.Z)(this,"selectedTip",18),(0,i.Z)(this,"noTipDefault",5),(0,i.Z)(this,"tips",[]),(0,i.Z)(this,"tipAmt",0),(0,i.Z)(this,"tipAmtToggle",0),(0,i.Z)(this,"baseAmtToggle",0),(0,i.Z)(this,"initialDefaultAmt",!1),(0,i.Z)(this,"showToggleAmt",!1),(0,i.Z)(this,"isToggleChecked",!0),(0,i.Z)(this,"customAmountForm",void 0),(0,i.Z)(this,"customAmount",void 0),(0,i.Z)(this,"previousVal",0),(0,i.Z)(this,"showPopover",void 0),(0,i.Z)(this,"defaultTip5",["mission-oxygen-helping-hospitals-to-save-lives","dream11-for-india"]),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"addExtraTip",n=>{this.selectTip({value:0}),setTimeout(()=>{this.customAmount.setValue(n),this.onInput()},100)})}ngOnChanges(n){(n&&n.baseAmount||n.amount||n.currency)&&(this.selectTip({value:this.selectedTip}),n?.baseAmount?.currentValue&&(this.baseAmount=n.baseAmount.currentValue),(!this.showToggleAmt||n.currency||n.baseAmount)&&this.setTipArray())}ngOnInit(){this.initForm(),this.defaultTip5.includes(this.vars.fundraiser.custom_tag)&&(this.selectedTip=5),this.paymentUtil.paymentCurrency.subscribe(n=>{this.currency=n,"stories"===this.vars.pageName&&("INR"!==this.currency?(this.selectedTip=10,this.selectTip({value:this.selectedTip})):(this.selectedTip=18,this.vwo.slab_changes_tip_AB()&&(this.selectedTip=20),this.selectTip({value:this.selectedTip})))}),("stories"===this.vars.pageName||20===this.vars.fundraiser.parent_cause_id)&&this.vwo.slab_changes_tip_AB()&&(this.selectedTip=20,this.selectTip({value:this.selectedTip})),setTimeout(()=>{this.selectTip({value:this.selectedTip}),this.showToggleAmt||this.setTipArray()},100)}initForm(){this.customAmountForm=new p.cw({customAmount:this.customAmount=new p.NI(0,[p.kI.required,p.kI.min(0)])}),this.customAmount.valueChanges.subscribe(n=>{n&&!this.vars.numberOnlyRegex.test(n)&&this.tipAmt!==+n&&this.customAmount.setValue(this.tipAmt||0)})}selectTip(n,e){if(this.selectedTip=e?+n.target.value:+n.value,this.vars.selectTipPercentage=this.selectedTip,0===this.selectedTip)return this.tipAmount.emit(this.tipAmt?this.tipAmt:null),this.tipPercent.emit("other "+(100*this.tipAmt/this.baseAmount).toFixed(2)),!1;this.tipAmount.emit(this.calculateTIp(this.selectedTip)),this.tipPercent.emit(this.selectedTip)}calculateTIp(n){return Math.round(this.baseAmount*n/100)}openTipInfo(n){this.sheet.open(n,{panelClass:"bottom-sheet-container"})}setTipArray(){this.tips=[];let n=[18,10,5];("stories"===this.vars.pageName||20===this.vars.fundraiser.parent_cause_id)&&this.vwo.slab_changes_tip_AB()&&(n=[20,15,10]),this.selectedTip||this.setOtherAmount(n);for(const e of n)this.tips.push({percent:e,label:`(${this.currency} ${this.calculateTIp(e)})`});this.tips.push({label:"Other",percent:0})}setOtherAmount(n){const e=this.calculateTIp(this.selectedTip?this.selectedTip:n[2]);!this.customAmountForm||this.tipAmt!==this.previousVal&&this.initialDefaultAmt?this.showToggleAmt&&this.getTipFromBaseAmt(this.isToggleChecked):(this.initialDefaultAmt=!0,this.customAmountForm.controls.customAmount.setValue(e||0),this.previousVal=e,this.tipAmt=e,this.tipAmount.emit(e))}onInput(){const n=this.customAmount.value?this.customAmount.value:0;n?0!==n&&(this.customAmountForm.reset(),this.customAmount.setValue(n)):this.customAmount.setValue(n),this.tipAmt=n,this.tipAmount.emit(n)}toggle(n){this.isToggleChecked=n.checked,this.getTipFromBaseAmt(this.isToggleChecked)}getTipFromBaseAmt(n=!0){setTimeout(()=>{this.tipAmtToggle=n?Math.round(this.noTipDefault/100*this.baseAmount):0,this.baseAmtToggle=this.baseAmount-this.tipAmtToggle,this.lastTipAmtObj.emit({baseAmt:this.baseAmtToggle,tipAmt:this.tipAmtToggle}),this.showToggleAmt=!0},100)}triggerOtherTipEvent(n,e){0==(e?+n.target.value:+n.value)&&this.events.sendSystemEvent({eventName:"other tip selected"}).subscribe(r=>r)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-tip-card"]],inputs:{currency:"currency",v2:"v2",amount:"amount",baseAmount:"baseAmount"},outputs:{lastTipAmtObj:"lastTipAmtObj",tipAmount:"tipAmount",tipPercent:"tipPercent"},standalone:!0,features:[t.TTD,t.jDz],decls:16,vars:7,consts:[[1,"wrapper"],["class","content",4,"ngIf"],["class","tip",4,"ngIf"],["class","custom-tipAmount",4,"ngIf"],["class","toggle-div",4,"ngIf"],["class","amount",4,"ngIf"],["tipSelect",""],["t
1ipSelectNativ",""],["tipInfo",""],["tipInfo2",""],[1,"content"],["class","text",4,"ngIf"],["type","button","class","info-btn","mat-icon-button","",3,"mouseenter","mouseleave",4,"ngIf"],["class","know-more",3,"click",4,"ngIf"],[1,"text"],["type","button","mat-icon-button","",1,"info-btn",3,"mouseenter","mouseleave"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"know-more",3,"click"],[1,"tip"],[4,"ngIf"],[1,"custom-tipAmount"],[1,"custom-tip-label"],["appearance","outline",1,"input-container",3,"formGroup"],["matInput","","type","number","min","0",3,"formControl","input"],["matPrefix","",4,"ngIf"],["matPrefix",""],[3,"currency"],[1,"toggle-div"],[1,"toggle-amt"],[3,"checked","change"],[1,"donation"],[1,"amount"],[1,"tip-select"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["class","tip-amount",4,"ngIf"],[1,"tip-amount"],["matNativeControl","",3,"value","change","valueChange"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],[1,"tip-tip"],[1,"tip-info"],["class","material-icons arrow-up",4,"ngIf"],["type","sheet","top","10px","right","10px"],[1,"title"],[1,"line"],[1,"desc"],[1,"info"],[1,"item"],[1,"material-icons"],[1,"bullet"],[1,"material-icons","arrow-up"],[1,"tip-info","tip-info-txt"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,qn,5,4,"div",1),t.YNc(2,Ln,2,0,"div",1),t.YNc(3,Jn,2,0,"div",1),t.YNc(4,Kn,5,4,"div",2),t.YNc(5,Gn,8,6,"div",3),t.YNc(6,$n,11,6,"div",4),t.YNc(7,Wn,2,1,"div",5),t.qZA(),t.YNc(8,ee,3,2,"ng-template",null,6,t.W1O),t.YNc(10,se,3,2,"ng-template",null,7,t.W1O),t.YNc(12,ce,25,1,"ng-template",null,8,t.W1O),t.YNc(14,pe,30,0,"ng-template",null,9,t.W1O)),2&n&&(t.xp6(1),t.Q6J("ngIf",!(null!=e.vars.pageName&&e.vars.pageName.match("stories|mini_story"))&&!e.vars.showStoryOnFundraiser||e.vars.showKCart&&!e.isMobile),t.xp6(1),t.Q6J("ngIf",("stories"===e.vars.pageName||e.vars.showStoryOnFundraiser)&&!(e.vars.showKCart&&!e.isMobile)),t.xp6(1),t.Q6J("ngIf","mini_story"===e.vars.pageName),t.xp6(1),t.Q6J("ngIf",!e.showToggleAmt),t.xp6(1),t.Q6J("ngIf",0===e.selectedTip&&!e.showToggleAmt),t.xp6(1),t.Q6J("ngIf",e.showToggleAmt),t.xp6(1),t.Q6J("ngIf",e.amount&&!e.showToggleAmt))},dependencies:[l.ax,l.O5,l.tP,M.N,Sn.F,p.UX,p.YN,p.Kr,p.Fj,p.wV,p.JJ,p.JL,p.qQ,p.oH,p.sg,p.u5,nt.rP,nt.Rr,f.ot,f.lW,O.Ps,O.Hw,U.lN,U.KE,U.qo,Y.c,Y.Nt,H.LD,H.gD,D.ey,D.XK],styles:[".wrapper[_ngcontent-%COMP%]{background:#D7EFEF;border-radius:8px;padding:10px;color:#444}.wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:12.7px;line-height:20px}.wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:25px;height:25px;line-height:25px;margin-bottom:7px}.wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--primary-color)}.wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .know-more[_ngcontent-%COMP%]{color:var(--primary-color);text-decoration:underline;cursor:pointer}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-weight:600;margin-top:7px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]     mat-form-field .mat-form-field-infix{padding-left:10px;background:#FFFFFF;box-shadow:0 4px 8px #0000001a;border-radius:4px;border-top:none}.wrapper[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]{text-align:end;font-size:12px;line-height:15px;margin-top:-8px}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]   .custom-tip-label[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]   .custom-tip-label[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#394556;font-size:14px;font-style:normal;font-weight:600;line-height:150%;letter-spacing:.24px}
1.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]   .custom-tip-label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;padding:2px 4px;align-items:center;gap:10px;border-radius:4px;border:.5px solid #FFF;background:linear-gradient(94deg,rgba(255,255,255,0) .76%,rgba(255,255,255,.7) 10.16%,rgba(255,255,255,0) 30.39%,rgba(255,255,255,.7) 86.84%,rgba(255,255,255,0) 98.92%),rgba(29,98,102,.22);color:#1d6266;font-size:10px;font-style:normal;font-weight:700;line-height:14px;letter-spacing:.2px}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]     .mat-form-field-flex{display:flex;align-items:center}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]     .mat-form-field-flex>.mat-form-field-infix{padding:.4em 0!important;margin-top:-.3em;margin-left:.4em}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-label{margin-top:-15px}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]     label.ng-star-inserted{transform:translateY(-.59375em) scale(.75)!important}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]     .mat-form-field-outline{background:white;border:1px solid #CCCCCC;box-sizing:border-box;border-radius:4px}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px;line-height:20px;color:#444;margin-right:14px;font-weight:600}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:43.4%;margin-bottom:-4%}@media only screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%]   .custom-tipAmount[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{max-width:130px}}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount-v2[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;align-items:center}.wrapper[_ngcontent-%COMP%]   .custom-tipAmount-v2[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:unset}.tip-select[_ngcontent-%COMP%]   .tip-amount[_ngcontent-%COMP%]{font-size:14px;line-height:20px;color:#999}.tip-info[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{border-top:1px solid #FFFFFF;opacity:.1;margin:0 -10px}.tip-info[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{margin-top:10px;font-size:14px;line-height:20px;letter-spacing:.229974px}.tip-info[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-top:14px}.tip-info[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .bullet[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:.229974px}.tip-info[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;margin:14px auto}.tip-info[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px;height:auto;width:auto;margin-right:8px;margin-top:4px;color:var(--primary-color);flex-shrink:0}@media only screen and (min-width: 768px){.wrapper[_ngcontent-%COMP%]{margin:0 30px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{margin-top:10px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]     mat-form-field .mat-form-field-infix{max-width:150px}.wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   button.info-btn[_ngcontent-%COMP%]{height:20px;margin-bottom:0}.wrapper[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   button.info-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:17px;line-height:1}.tip-tip[_ngcontent-%COMP%]{position:relative}.tip-tip[_ngcontent-%COMP%]   .tip-info[_ngcontent-%COMP%]{text-align:left;white-space:normal;cursor:auto;pointer-events:none;position:absolute;z-index:9999;top:5px;right:-7px;padding:15px 10px;color:#fff;background:#067F7E;box-shadow:0 6px 20px #00000045;width:359px}.tip-tip[_ngcontent-%COMP%]   .tip-info[_ngcontent-%COMP%]   .arrow-up[_ngcontent-%COMP%]{position:absolute;top:-13px;right:7px;color:#067f7e}.tip-tip[_ngcontent-%COMP%]   .tip-info[_ngcontent-%COMP%]   app-close-btn[_ngcontent-%COMP%]{display:none}.tip-tip[_ngcontent-%COMP%]   .tip-info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:25px;margin-bottom:13px}.tip-wrapper[_ngcontent-%COMP%]{border:1px solid #CCCCCC;padding:10px}.tip-wrapper[_ngcontent-%COMP%]   .free-txt[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:15px;margin-bottom:7px}.tip-info-txt[_ngcontent-%COMP%]{width:260px!important;border-radius:10px;padding:15px!important}.tip-info-txt[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:600;font-size:14px;line-height:18px}.tip-info-txt[_ngcontent-%COMP%]   .bullet[_ngcontent-%COMP%]{font-size:12px!important;line-height:15px!important}.tip-info-txt[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#fff!important}}@media only screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%]{margin:0 -10px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]{margin-top:10px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:12px;line-height:15px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]     mat-form-field .mat-form-field-infix{max-width:130px}.wrapper[_ngcontent-%COMP%]   .tip[_ngcontent-%COMP%]     mat-form-field .mat-form-field-infix:after{right:7px!important}.tip-info[_ngcontent-%COMP%]{padding:20px 5px;color:#444;border-radius:6px}.tip-info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:700;font-size:26px;line-height:33px;color:#000}.tip-wrapper[_ngcontent-%COMP%]{padding:5px 0}.tip-wrapper[_ngcontent-%COMP%]   .free-txt[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:20px}.tip-wrapper[_ngcontent-%COMP%]   .free-txt[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#01bfbd;vertical-align:sub;margin-left:5px;font-size:18px}.tip-wrapper[_ngcontent-%COMP%]     .mat-form-field-type-mat-native-select .mat-form-field-infix:after{right:10px}}.tip-wrapper[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;font-weight:700;font-size:14px;line-height:20px;color:#444}.tip-wrapper[_ngcontent-%COMP%]   .support-txt[_ngcontent-%COMP%]{position:relative}@media (max-width: 768px){.tip-wrapper[_ngcontent-%COMP%]   .support-txt[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:absolute;top:16px;right:-10px}}.tip-wrapper[_ngcontent-%COMP%]   .support-txt[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--primary-color)}.tip-wrapper[_ngcontent-%COMP%]   .support-txt[_ngcontent-%COMP%]   .amount[_ng
1content-%COMP%]{font-weight:700;color:#444;font-size:17px;line-height:20px}.tip-wrapper[_ngcontent-%COMP%]   .support-txt[_ngcontent-%COMP%]     .mat-checkbox-label{line-height:20px}.tip-wrapper[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}.tip-wrapper[_ngcontent-%COMP%]     .mat-form-field-infix{border:1px solid #ccc;border-radius:4px;padding:5px 10px;height:35px;display:flex;align-items:center}.tip-wrapper[_ngcontent-%COMP%]     .mat-form-field-underline{height:0;display:none}.tip-wrapper[_ngcontent-%COMP%]     .mat-form-field{width:100%}.tip-bg[_ngcontent-%COMP%]{background:#F5F5F5}@media (min-width: 767px){.tip-bg[_ngcontent-%COMP%]{border-radius:4px!important;padding:10px 20px;border:0}}@media (max-width: 768px){.tip-bg[_ngcontent-%COMP%]{border-radius:8px;padding:20px;margin:0 -10px}}.tip-bg[_ngcontent-%COMP%]   .support-txt[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:20px;color:#999}.tip-bg[_ngcontent-%COMP%]   .support-txt[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{line-height:0;height:0;width:0}.tip-bg[_ngcontent-%COMP%]   .pills[_ngcontent-%COMP%]{background:#FFFFFF;border:2px solid #EEEEEE;box-sizing:border-box;border-radius:31px;box-shadow:none;font-weight:700;font-size:14px;line-height:20px;color:#999;padding:10px;text-align:center;margin:10px 3px 0}.tip-bg[_ngcontent-%COMP%]   .active-pill[_ngcontent-%COMP%]{color:#01bfbd;box-shadow:0 4px 8px #0000001a;border:1px solid #01BFBD}.toggle-amt[_ngcontent-%COMP%]{display:flex;margin-top:16px}.toggle-amt[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;line-height:20px;color:#000}.toggle-amt[_ngcontent-%COMP%]     .mat-slide-toggle-thumb{background-color:#fff}.toggle-amt[_ngcontent-%COMP%]     .mat-checked .mat-slide-toggle-bar{background-color:#00948b!important}.toggle-amt[_ngcontent-%COMP%]     .mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(21px,0,0)!important}.donation[_ngcontent-%COMP%]{font-size:10px;line-height:20px;color:#262626;margin-top:9px;background:rgba(255,255,255,.4);border-radius:20px;padding:3.5px 10px;display:inline-block}"]})),o})();var de=d(409),ue=d(1072),me=d(4377);function _e(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.updateAmount("plus"))}),t._uU(1,"Add"),t.qZA()}}function ge(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",21)(1,"button",22),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.updateAmount("minus"))}),t.TgZ(2,"em",8),t._uU(3,"remove"),t.qZA()(),t.TgZ(4,"div",13),t._UZ(5,"app-currency",14),t._uU(6),t.qZA(),t.TgZ(7,"button",23),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.updateAmount("plus"))}),t.TgZ(8,"em",8),t._uU(9,"add"),t.qZA()()()}if(2&o){const n=t.oxw(2);t.xp6(5),t.Q6J("currency",n.currency),t.xp6(1),t.Oqu(n.selectedAmount),t.xp6(1),t.ekj("max",n.selectedAmount===n.maxAmt),t.Q6J("disabled",n.selectedAmount===n.maxAmt)}}function he(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5),t._uU(5),t.ALo(6,"titlecase"),t.qZA(),t.TgZ(7,"div",6),t._uU(8,"The insurance cover of Daily Hospital cash will cover the hospitalization charges for the insured person for 30 days."),t.qZA(),t.TgZ(9,"div",7),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.viewMore=!a.viewMore)}),t._uU(10),t.TgZ(11,"em",8),t._uU(12,"expand_more"),t.qZA()()(),t.TgZ(13,"div",9),t._UZ(14,"img",10),t.qZA()(),t.TgZ(15,"div",11)(16,"div",12)(17,"div",13)(18,"strong"),t._UZ(19,"app-currency",14),t._uU(20),t.qZA(),t._uU(21," remaining"),t.qZA(),t.TgZ(22,"div",15),t._UZ(23,"div",16),t.qZA()(),t.TgZ(24,"div",17),t.YNc(25,_e,2,0,"button",18),t.YNc(26,ge,10,5,"div",19),t.qZA()()()()}if(2&o){const n=t.oxw();t.xp6(5),t.AsE("Provide insurance for ",t.lcZ(6,13,null==n.vars.fundraiser||null==n.vars.fundraiser.beneficiaryname?null:n.vars.fundraiser.beneficiaryname.info_1)," ",n.insuranceAgeTxt,"."),t.xp6(2),t.ekj("expanded",n.viewMore),t.xp6(3),t.Oqu(n.viewMore?"Know Less":"Know More"),t.xp6(1),t.ekj("expanded",n.viewMore),t.xp6(8),t.Q6J("currency",n.currency),t.xp6(1),t.Oqu(null==n.insureData?null:n.insureData.left_amount),t.xp6(3),t.Udp("width",n.progPerc+"%"),t.xp6(2),t.Q6J("ngIf",0===n.selectedAmount),t.xp6(1),t.Q6J("ngIf",n.selectedAmount>0)}}let fe=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"insureData",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"updateFamilyInsurance",new t.vpe),(0,i.Z)(this,"insureAge",void 0),(0,i.Z)(this,"viewMore",!1),(0,i.Z)(this,"insuranceAgeTxt","Family"),(0,i.Z)(this,"incremetalAmounts",me._3),(0,i.Z)(this,"selectedAmount",0),(0,i.Z)(this,"maxAmt",0),(0,i.Z)(this,"progPerc",0),(0,i.Z)(this,"desc",[{text:"The critical illness insurance Daily  will c
1over for"},{text:"major critical illness like,  cancer, dialysis and"},{text:"other major illnesses with proof of medical disease"}])}ngOnInit(){this.insuranceAgeTxt=this.insureAge?"plus one Family member":"'s Family"}ngOnChanges(n){n?.currency?.currentValue&&(this.maxAmt=this.incremetalAmounts[this.currency].max,this.progPerc=this.util.getPercentage(this.insureData?.amount_requested,this.insureData?.raised),this.vwo.insurance_optin_amount_AB()&&!this.vars.selectedFamilyInsurance?this.selectedAmount=0:(this.selectedAmount=4*(this.incremetalAmounts[this.currency]?.min||0),this.updateAmount("plus")))}updateAmount(n){"plus"===n&&this.selectedAmount<this.maxAmt?this.selectedAmount+=this.incremetalAmounts[this.currency].increment:"minus"===n&&this.selectedAmount>0&&(this.selectedAmount-=this.incremetalAmounts[this.currency].increment),this.setSelected()}setSelected(){this.vars.selectedFamilyInsurance=this.selectedAmount?{[this.insureData?.id]:{amount:this.selectedAmount}}:null,this.updateFamilyInsurance.emit(this.vars.selectedFamilyInsurance)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-insure-select"]],inputs:{insureData:"insureData",currency:"currency",insureAge:"insureAge"},outputs:{updateFamilyInsurance:"updateFamilyInsurance"},standalone:!0,features:[t.TTD,t.jDz],decls:1,vars:1,consts:[["class","wrap",4,"ngIf"],[1,"wrap"],[1,"content"],[1,"section-1"],[1,"text"],[1,"title","dmsans"],[1,"sub-title"],[1,"read-more",3,"click"],[1,"material-icons"],[1,"logo"],["src","/assets/images/insure-shield.png","alt","insure-shield"],[1,"section-2"],[1,"left"],[1,"amount"],[3,"currency"],[1,"bar"],[1,"prog"],[1,"right"],["class","add-btn","mat-ripple","",3,"click",4,"ngIf"],["class","increment-btn",4,"ngIf"],["mat-ripple","",1,"add-btn",3,"click"],[1,"increment-btn"],["mat-ripple","",1,"plus",3,"click"],["mat-ripple","",1,"minus",3,"disabled","click"]],template:function(n,e){1&n&&t.YNc(0,he,27,15,"div",0),2&n&&t.Q6J("ngIf",e.insureData)},dependencies:[l.ez,l.O5,l.rS,D.si,D.wG,ue.Q],styles:[".wrap[_ngcontent-%COMP%]{width:100%;border-radius:8px;background:#FCFCFC;box-shadow:0 2px 18px #00000014}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{padding:12px 12px 8px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]{width:100%;display:flex;gap:8px;margin-bottom:8px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:100%;color:#404040;font-size:14px;letter-spacing:-.28px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:700;line-height:130%}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{max-width:272px;height:43px;font-weight:400;line-height:150%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;transition:all .3s}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .sub-title.expanded[_ngcontent-%COMP%]{-webkit-line-clamp:4;height:65px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{height:0px;overflow:hidden;transition:all .3s}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .desc.expanded[_ngcontent-%COMP%]{height:54px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:25px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:#737373;font-size:12px;font-weight:400;line-height:150%;letter-spacing:-.24px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-top:3px;color:#737373;font-size:12px;font-weight:700;line-height:130%;cursor:pointer}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{height:12px;color:#737373;font-size:14px;transition:all .3s}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   em.expanded[_ngcontent-%COMP%]{height:14px;transform:rotate(-180deg)}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:72px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:inherit}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:8px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{width:100%}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .amount[_ng
1content-%COMP%]{margin-bottom:8px;color:#404040;font-size:14px;font-weight:400;line-height:150%;letter-spacing:-.28px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]{width:100%;height:8px;border-radius:16px;background:#F3F3F3}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]   .prog[_ngcontent-%COMP%]{max-width:100%;height:inherit;background:var(--primary-color);border-radius:inherit}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{width:100%;max-width:110px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .add-btn[_ngcontent-%COMP%], .wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]{width:100%;height:38px;border:1px solid #019997;border-radius:4px;background:rgba(153,229,229,.1);font-size:12px;font-weight:700;color:#019997}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:4px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%], .wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .minus[_ngcontent-%COMP%]{width:28%;height:inherit;background:none;border:none;color:#019997;display:flex;align-items:center;justify-content:center}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%], .wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .minus[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:12px;font-weight:700}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .plus.max[_ngcontent-%COMP%], .wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .minus.max[_ngcontent-%COMP%]{color:#c2c2c2}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]{font-size:12px;font-weight:700;line-height:130%;letter-spacing:-.24px;color:#019997}@media (max-width: 768px){.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{height:38px;font-size:12px;letter-spacing:-.24px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .sub-title.expanded[_ngcontent-%COMP%]{height:65px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .desc.expanded[_ngcontent-%COMP%]{height:45px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:10px;letter-spacing:-.2px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-1[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:64px}}"]})),o})();
1var Ce=d(7199),rt=d(5953),Oe=d(6215);function Pe(o,s){1&o&&(t.TgZ(0,"div",2),t._uU(1," Contribute and we'll add another "),t.TgZ(2,"span"),t._uU(3," \u20b9100 "),t.qZA(),t._uU(4," from our end "),t.qZA())}function be(o,s){if(1&o&&(t.TgZ(0,"div",2),t._uU(1),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.AsE(" You contribute ",n.donation," campaigner gets ",n.donation+100," ")}}let K=(()=>{class o{constructor(){(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"donation",void 0),(0,i.Z)(this,"type",void 0)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-utm-wallet-hundred"]],inputs:{donation:"donation",type:"type"},standalone:!0,features:[t.jDz],decls:4,vars:5,consts:[["loading","lazy","data-src","/assets/images/star-accelerate.png","alt","star accelerate"],["class","text",4,"ngIf"],[1,"text"]],template:function(n,e){1&n&&(t.TgZ(0,"div"),t._UZ(1,"img",0),t.YNc(2,Pe,5,0,"div",1),t.YNc(3,be,2,2,"div",1),t.qZA()),2&n&&(t.Gre("nudge-wrapper ",e.type,""),t.xp6(2),t.Q6J("ngIf","form"===e.type),t.xp6(1),t.Q6J("ngIf","payment"===e.type))},dependencies:[l.O5],styles:[".nudge-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}@media (max-width: 768px){.nudge-wrapper.payment[_ngcontent-%COMP%]{background:#fff}}.nudge-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:36.57px;transform:translate(15px)}.nudge-wrapper[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:32px;width:279px;background:#DDEFEE;border:1px solid #C2E5E4;box-sizing:border-box;border-radius:0 6px 6px 0;font-family:Source Sans Pro;font-style:normal;font-weight:400;font-size:12px;line-height:20px;color:#444}.nudge-wrapper[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700!important;padding:0 3px}.payment[_ngcontent-%COMP%]{margin:15px auto 12px}.form[_ngcontent-%COMP%]{margin:10px auto}"]})),o})(),Me=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"baseAmount",void 0),(0,i.Z)(this,"selectedTipPerc",void 0),(0,i.Z)(this,"setLastTipAmt",new t.vpe),(0,i.Z)(this,"setTipAmount",new t.vpe),(0,i.Z)(this,"setTipPercent",new t.vpe),(0,i.Z)(this,"defaultTipPerc",5),(0,i.Z)(this,"tipEnable",!0),(0,i.Z)(this,"tipAmt",0)}ngOnInit(){this.vars.numberOnlyRegex.test(this.selectedTipPerc)||(this.selectedTipPerc=this.defaultTipPerc),this.selectTip(this.selectedTipPerc)}ngOnChanges(n){(n&&n.baseAmount||n.amount||n.currency)&&(this.selectTip(this.tipEnable?this.selectedTipPerc:0),n?.baseAmount?.currentValue&&(this.baseAmount=n.baseAmount.currentValue))}onCheckBoxChange(n){this.selectTip(n.checked?this.selectedTipPerc:0)}selectTip(n){if(this.vars.selectTipPercentage=n,0===n)return this.setTipAmount.emit(0),this.setTipPercent.emit(n),!1;this.setTipAmount.emit(this.calculateTip(n)),this.setTipPercent.emit(n)}calculateTip(n){let e=Math.round(this.baseAmount*n/100);return 0===e&&this.tipEnable&&(e=1),e}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-tip-select-nudge"]],inputs:{currency:"currency",amount:"amount",baseAmount:"baseAmount",selectedTipPerc:"selectedTipPerc"},outputs:{setLastTipAmt:"setLastTipAmt",setTipAmount:"setTipAmount",setTipPercent:"setTipPercent"},standalone:!0,features:[t.TTD,t.jDz],decls:10,vars:2,consts:[[1,"wrap"],[1,"content"],[1,"sections"],[1,"check-box"],[3,"ngModel","ngModelChange","change"],[1,"text"],[1,"title"],[1,"sub-title"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-checkbox",4),t.NdJ("ngModelChange",function(r){return e.tipEnable=r})("change",function(r){return e.onCheckBoxChange(r)}),t.qZA()(),t.TgZ(5,"div",5)(6,"div",6),t._uU(7),t.qZA(),t.TgZ(8,"div",7),t._uU(9,"If you like what we are doing, leave us a tip !"),t.qZA()()()()()),2&n&&(t.xp6(4),t.Q6J("ngModel",e.tipEnable),t.xp6(3),t.hij("Give ",e.selectedTipPerc,"% to Ketto to keep us afloat"))},dependencies:[l.ez,z.p9,z.oG,p.u5,p.JJ,p.On],styles:[".wrap[_ngcontent-%COMP%]{width:100%;border-radius:8px;background:rgba(1,191,189,.05);font-family:Proxima-Nova}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{width:100%;padding:12px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]{width:100%;display:flex;gap:8px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .check-box[_ngcontent-%COMP%]     .mat-checkbox .mat-checkbox-layout .mat-checkbox-inner-container{width:20px;height:20px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .check-box[_ngcontent-%COMP%]     .mat-checkbox .mat-checkbox-layout .mat-checkbox-inner-container .mat-checkbox-frame{border-radius:4px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .check-box[_ngcontent-%COMP%]     .mat-checkbox .mat-checkbox-layout .mat-checkbox-inner-container .mat-checkbox-background{border-radius:4px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .check-box[_ngcontent-%COMP%]     .mat-checkbox-checked .mat-checkbox-layout .mat-checkbox-inner-container .mat-checkbox-background{background-color:#288b91}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-bottom:2px;color:#262626;font-size:12px;font-weight:700;line-height:130%;letter-spacing:-.28px}.wrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .sections[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{color:#737373;font-size:11px;font-weight:400;line-height:130%;letter-spacing:-.24px}"]})),o})();var Q=d(7593),ct=d(8068);const gt={INR:{minamt:50,incramt:50},GBP:{minamt:10,incramt:10},EUR:{minamt:10,incramt:10},AED:{minamt:10,incramt:10},SAR:{minamt:10,incramt:10},USD:{minamt:10,incramt:10},SGD:{minamt:10,incramt:10},CAD:{minamt:10,incramt:10},HKD:{minamt:10,incramt:10},QAR:{minamt:10,incramt:10},AUD:{minamt:10,incramt:10},MYR:{minamt:10,incramt:10}};var ht=d(3664),ft=d(1841),Ct=d(5660),Ot=d(7491);const xe=["bulkDonation"];function ve(o,s){if(1&o&&t._UZ(0,"app-currency-icon",28),2&o){const n=t.oxw(4);t.Q6J("currency",n.currency)}}function ye(o,s){if(1&o&&(t.TgZ(0,"div",26)(1,"strong"),t.YNc(2,ve,1,1,"app-currency-icon",27),t._uU(3),t.ALo(4,"inrFormat"),t.qZA(),t._uU(5," remaining"),t.qZA()),2&o){const n=t.oxw().$implicit,e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.currency),t.xp6(1),t.hij(" ",t.lcZ(4,2,null==n?null:n.amount_remaining),"")}}function we(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(2);return t.KtG(r.hide(a.id))}),t.TgZ(1,"em",16),t._uU(2,"add"),t.qZA(),t._uU(3," Contribute "),t.qZA()}}function ke(o,s){if(1&o&&t._UZ(0,"app-currency-icon",28),2&o){const n=t.oxw(4);t.Q6J("currency",n.currency)}}function Ze(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",30)(1,"button",31),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(2);return t.KtG(r.amtchanger("minus",a.id))}),t.TgZ(2,"em",16),t._uU(3,"remove"),t.qZA()(),t.TgZ(4,"div"),t.YNc(5,ke,1,1,"app-currency-icon",27),t._uU(6),t.qZA(),t.TgZ(7,"button",32),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(2);
1return t.KtG(r.amtchanger("plus",a.id))}),t.TgZ(8,"em",16),t._uU(9,"add"),t.qZA()()()}if(2&o){const n=t.oxw().$implicit,e=t.oxw(2);t.xp6(5),t.Q6J("ngIf",e.currency),t.xp6(1),t.Oqu(e.bulkData[n.id].amount),t.xp6(1),t.ekj("max",e.bulkData[n.id].amount===20*e.minamount[e.currency].minamt)}}function Te(o,s){if(1&o&&(t.TgZ(0,"div",12)(1,"div",13)(2,"div",14)(3,"div",15)(4,"em",16),t._uU(5,"schedule"),t.qZA(),t.TgZ(6,"span"),t._uU(7),t.ALo(8,"customDate"),t.qZA()(),t.TgZ(9,"div",17),t._uU(10),t.qZA(),t.YNc(11,ye,6,4,"div",18),t.TgZ(12,"div",19),t._UZ(13,"app-progress-bar",20),t.qZA()(),t.TgZ(14,"div",21),t._UZ(15,"img",22),t.TgZ(16,"div",23),t.YNc(17,we,4,0,"button",24),t.qZA(),t.YNc(18,Ze,10,4,"div",25),t.qZA()()()),2&o){const n=s.$implicit,e=t.oxw(2);t.xp6(7),t.hij("",t.Dn7(8,9,null==n?null:n.end_date,"remaingTime","D-H")," left"),t.xp6(3),t.Oqu(null==n?null:n.title),t.xp6(1),t.Q6J("ngIf",null==n?null:n.amount_remaining),t.xp6(2),t.Q6J("amount",null==n||null==n.raised?null:n.raised.raised)("goal",null==n?null:n.amount_requested),t.xp6(2),t.Q6J("default",e.vars.defaultImg),t.uIk("data-src",(null==n||null==n.story_widget?null:n.story_widget.cdn_path)||(null==n||null==n.widget?null:n.widget.cdn_path)),t.xp6(2),t.Q6J("ngIf",!e.selected.includes(n.id)),t.xp6(1),t.Q6J("ngIf",e.selected.includes(n.id))}}function Ae(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Oqu(n.btnlabel)}}function Ie(o,s){1&o&&(t.TgZ(0,"div",33),t._UZ(1,"div")(2,"div")(3,"div")(4,"div"),t.qZA())}function Se(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",3)(1,"div",4)(2,"div",5),t._uU(3,"Contribute as much as you can"),t.qZA(),t.TgZ(4,"div",6),t._uU(5,"Fundraisers that couldn\u2019t raise money"),t.qZA()(),t._UZ(6,"div",7),t.YNc(7,Te,19,13,"div",8),t.TgZ(8,"div",9)(9,"button",1),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.submit())}),t.YNc(10,Ae,2,1,"span",10),t.YNc(11,Ie,5,0,"div",11),t.qZA()()()}if(2&o){const n=t.oxw();t.xp6(7),t.Q6J("ngForOf",n.campaigns),t.xp6(1),t.ekj("active",n.isAnySelected),t.xp6(1),t.Q6J("disabled",!!n.isOrderLoading),t.xp6(1),t.Q6J("ngIf",!n.isOrderLoading),t.xp6(1),t.Q6J("ngIf",n.isOrderLoading)}}let Ne=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"bottomSheet",(0,t.f3M)(w.ch)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"fundraiserService",(0,t.f3M)(ct.R)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"campaign_id",void 0),(0,i.Z)(this,"disabled",void 0),(0,i.Z)(this,"isOrderLoading",void 0),(0,i.Z)(this,"onSubmit",new t.vpe),(0,i.Z)(this,"bulkDonation",void 0),(0,i.Z)(this,"bulkData",{}),(0,i.Z)(this,"minamt",0),(0,i.Z)(this,"selected",[]),(0,i.Z)(this,"totalamt",void 0),(0,i.Z)(this,"campaigns",void 0),(0,i.Z)(this,"btnlabel",void 0),(0,i.Z)(this,"isAnySelected",!1),(0,i.Z)(this,"isCampaignLoading",!1),(0,i.Z)(this,"minamount",gt)}ngOnInit(){this.util.addCssToGlobal("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"),this.util.addCssToGlobal("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700;800;900&display=swap")}handleContinueCta(n){n&&n.preventDefault(),this.getCampaigns(this.currency)}getCampaigns(n){this.isCampaignLoading=!0,this.fundraiserService.getUrgentStoryCampaigns(`?campaignId=${this.vars.fundraiser?.id}&causeId=${this.vars.fundraiser?.cause_id}&limit=3&tags=featured&with=beneficiaryname;storyWidget&orderBy=priority_entity&sortBy=ASC&currency=`+n).subscribe(a=>{const r=a.data.data;this.campaigns=r.filter(c=>this.campaign_id!==c?.id).filter((c,m)=>m<2),this.campaigns=this.campaigns.map((c,m)=>(c?.raised?.raised&&c?.amount_requested&&(c.amount_remaining=c?.amount_requested-c?.raised?.raised,c?.amount_remaining<0&&(c.amount_remaining="0")),c)),this.setBtnLabel(),0===r.length?this.onSubmit.emit(!1):this.openSheet(),this.isCampaignLoading=!1})}openSheet(){if(this.btnlabel=`Skip and Contribute ${this.util.formatAmount(this.amount,this.currency)}`,this.disabled)return this.onSubmit.emit(!1),!1;this.bottomSheet.open(this.bulkDonation,{panelClass:"bulk-sheet"})}closeSheet(){this.paymentUtil.cartResponse.subscribe(n=>{n&&this.bottomSheet.dismiss(this.bulkDonation)})}hide(n){this.selected.push(n),this.bulkData[n]={amount:this.minamt},0===this.bulkData[n].amount&&(this.bulkData[n].amount=this.bulkData[n].amount+this.minamount[this.currency].minamt),this.setBtnLabel(),this.events.sendSystemEvent({eventName:"amountinc"}).subscribe(e=>e)}amtchanger(n,e){"plus"===n&&this.bulkData[e]?.amount<20*this.minamount[this.currency]?.minamt&&(this.bulkData[e].amount=this.bulkData[e].amount+this.minamount[this.currency].incramt),"minu
1s"===n&&(this.bulkData[e].amount>this.minamount[this.currency].minamt?this.bulkData[e].amount=this.bulkData[e].amount-this.minamount[this.currency].incramt:(this.events.sendSystemEvent({eventName:"amountdec"}).subscribe(a=>a),this.selected.splice(this.selected.indexOf(e),1),this.bulkData[e].amount=0,delete this.bulkData[e])),this.setBtnLabel()}setBtnLabel(){this.totalamt=Object.values(this.bulkData).reduce((n,{amount:e})=>n+e,0),this.totalamt>0?(this.isAnySelected=!0,this.btnlabel=`Contribute ${this.util.formatAmount(this.amount,this.currency)} + ${this.util.formatAmount(this.totalamt,this.currency)}`):(this.isAnySelected=!1,this.btnlabel=`Skip and Contribute ${this.util.formatAmount(this.amount,this.currency)}`)}submit(){0===Object.keys(this.bulkData).length?this.onSubmit.emit(!1):this.onSubmit.emit(this.bulkData),this.closeSheet()}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-bulk-donation-selection"]],viewQuery:function(n,e){if(1&n&&t.Gf(xe,7),2&n){let a;t.iGM(a=t.CRH())&&(e.bulkDonation=a.first)}},inputs:{amount:"amount",currency:"currency",campaign_id:"campaign_id",disabled:"disabled",isOrderLoading:"isOrderLoading"},outputs:{onSubmit:"onSubmit"},standalone:!0,features:[t.jDz],decls:5,vars:1,consts:[[1,"bulk-btn"],["mat-button","",3,"disabled","click"],["bulkDonation",""],[1,"wrap-bulk"],[1,"header"],[1,"maintitle"],[1,"subtitle"],[1,"divideline"],["class","storytiles",4,"ngFor","ngForOf"],[1,"submitbtn"],[4,"ngIf"],["class","lds-ellipsis",4,"ngIf"],[1,"storytiles"],[1,"tile"],[1,"tileinfo"],[1,"timeleft"],[1,"material-icons"],[1,"storytitle"],["class","moneyshort",4,"ngIf"],[1,"progress"],[3,"amount","goal"],[1,"tileimg"],["loading","lazy","appImgFallback","","alt","",3,"default"],[1,"dntbtn"],["class","btn",3,"click",4,"ngIf"],["class","incrementbtn",4,"ngIf"],[1,"moneyshort"],[3,"currency",4,"ngIf"],[3,"currency"],[1,"btn",3,"click"],[1,"incrementbtn"],["mat-ripple","",1,"plus",3,"click"],["mat-ripple","",1,"minus",3,"click"],[1,"lds-ellipsis"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(r){return!e.isCampaignLoading&&e.handleContinueCta(r)}),t._uU(2,"Continue"),t.qZA()(),t.YNc(3,Se,12,6,"ng-template",null,2,t.W1O)),2&n&&(t.xp6(1),t.Q6J("disabled",e.isCampaignLoading))},dependencies:[l.ez,l.sg,l.O5,f.ot,f.lW,D.si,D.wG,ht.m,Ot.R,ft.Z,Ct.F,M.N],styles:[".lds-ellipsis[_ngcontent-%COMP%]{display:inline-block;position:relative;width:64px;height:10px}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis1 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(3){left:26px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(4){left:45px;animation:_ngcontent-%COMP%_lds-ellipsis3 .6s infinite}@keyframes _ngcontent-%COMP%_lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _ngcontent-%COMP%_lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _ngcontent-%COMP%_lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(19px)}}.bulk-btn[_ngcontent-%COMP%]{background-color:#fff;padding:5px 0}.bulk-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:50px;width:100%;font-size:20px;font-weight:700;line-height:21px;background-color:var(--primary-color);color:#fff}.bulk-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{pointer-events:none;opacity:.5}.wrap-bulk[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;padding:36px 12px 0}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{margin-bottom:20px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .maintitle[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:21px;color:#394556}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-family:Sentient,serif;font-size:17px;font-weight:700;line-height:20px;color:#394556}.wrap-bulk[_ngcontent-%COMP%]   .divideline[_ngcontent-%COMP%]{margin:auto;height:0px;border:1px solid #F0F3F7}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin:20px 0 40px}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileinfo[_ngcontent-%COMP%]   .timeleft[_ngcontent-%COMP%]{padding:3px 4px;border:.2px solid #E86570;box-shadow:0 1px 2px #0000001a;margin-bottom:8px;border-radius:4px;color:#e86570;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:600;line-height:0px;width:max-content}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileinfo[_ngcontent-%COMP%]   .timeleft[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{color:#e86570;font-size:9px;margin-right:3px}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileinfo[_ngcontent-%COMP%]   .storytitle[_ngcontent-%COMP%]{margin-right:15px;max-width:160px;font-size:14px;font-weight:400;line-height:21px;margin-bottom:8px}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]   .tileinfo[_ngcontent-%COMP%]   .moneyshort[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:21px;color:#e86570;margin-bottom:5px}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileinfo[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{width:100px}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;height:132px;width:132px;border-radius:8px}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .dntbtn[_ngcontent-%COMP%]{position:absolute;bottom:-15px;display:flex;align-items:center;justify-content:center}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .dntbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:12px;font-weight:700;line-height:18px;display:flex;align-items:center;justify-content:center;color:#fff;border:none;width:100px;height:36px;background:#01BFBD;border-radius:4px}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]   .tileimg[_ngcontent-%COMP%]   .dntbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{margin-right:7px;font-size:15px;font-weight:400}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .dntbtn[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{display:none}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]{padding:8px 10px;max-width:105px;background:#FFFFFF;border:1px solid #99E5E5;box-shadow:0 2px 14px #0000001a;border-radius:4px;position:absolute;bottom:-15px;display:flex;align-items:center;justify-content:center}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%], .wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]   .minus[_ngcontent-%COMP%]{background:none;border:none;color:#60729c;width:36px;display:flex;align-items:center;justify-content:center}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%], .wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]   .minus[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:15px;font-weight:700}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]   .plus.max[_ngcontent-%COMP%], .wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]   .minus.max[_ngcontent-%COMP%]{color:#d2d6d4}.wrap-bulk[_ngcontent-%COMP%]   .storytiles[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tileimg[_ngcontent-%COMP%]   .incrementbtn[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:0 8px;font-size:14px;font-weight:700;line-height:21px;color:#019997}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]{background-color:#fff;border-radius:8px;margin-bottom:16px}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;height:60px;border-radius:8px;color:var(--primary-color);border:1px solid #01BFBD}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Sentient,serif;font-size:20px;font-weight:700;line-height:21px}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background:#01BFBD}.wrap-bulk[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{background-color:var(--primary-color)}.wrap-bulk[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border-radius:8px;font-size:20px;font-weight:700;line-height:21px;color:#fff}.wrap-bulk[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background:#fff}  .bulk-sheet .mat-bottom-sheet-container{max-height:90vh;background:#FFFFFF;box-shadow:0 -4px 24px #00000040;border-radius:24px 24px 0 0;transition:all .2s ease-in-out}@keyframes _ngcontent-%COMP%_auto-shining{0%{transform:rotate(45deg) translateZ(0)}50%,to{transform:rotate(45deg) translate3d(370px,0,0)}}"]})),o})();const De=["bulkDonation"];function Ue(o,s){if(1&o&&t._UZ(0,"app-currency-icon",6),2&o){const n=t.oxw(2);t.Q6J("currency",n.currency)}}function Fe(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.hij(" ",(null==n.vars.couponDetails?null:n.vars.couponDetails.payable_amount)||n.amount,"")}}function Ee(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1,"Contribute \xa0"),t.YNc(2,Ue,1,1,"app-currency-icon",5),t.YNc(3,Fe,2,1,"span",2),t.qZA()),2&o){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.currency&&n.amount),t.xp6(1),t.Q6J("ngIf",n.amount)}}function qe(o,s){1&o&&(t.TgZ(0,"div",7),t._UZ(1,"div")(2,"div")(3,"div")(4,"div"),t.qZA())}function Le(o,s){if(1&o&&(t.TgZ(0,"div",29)(1,"strong"),t._UZ(2,"span",30),t.ALo(3,"currencyIcon"),t._uU(4),t.ALo(5,"inrFormat"),t.qZA(),t._uU(6," remaining"),t.qZA()),2&o){const n=t.oxw().$implicit,e=t.oxw(3);t.xp6(2),t.Q6J("innerHTML",t.lcZ(3,2,e.currency),t.oJD),t.xp6(2),t.hij(" ",t.lcZ(5,4,null==n?null:n.amount_remaining),"")}}function Je(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(3);return t.KtG(r.hide(a.id))}),t.TgZ(1,"em",11),t._uU(2,"add"),t.qZA(),t._uU(3," Contribute "),t.qZA()}}function Re(o,s){if(1&o&&t._UZ(0,"app-currency-icon",6),2&o){const n=t.oxw(5);t.Q6J("currency",n.currency)}}function Qe(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",32)(1,"button",33),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(3);return t.KtG(r.amtchanger("minus",a.id))}),t.TgZ(2,"em",11),t._uU(3,"remove"),t.qZA()(),t.TgZ(4,"div",34),t.YNc(5,Re,1,1,"app-currency-icon",5),t._uU(6),t.qZA(),t.TgZ(7,"button",35),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(3);
1return t.KtG(r.amtchanger("plus",a.id))}),t.TgZ(8,"em",11),t._uU(9,"add"),t.qZA()()()}if(2&o){const n=t.oxw().$implicit,e=t.oxw(3);t.xp6(5),t.Q6J("ngIf",e.currency),t.xp6(1),t.Oqu(e.bulkData[n.id].amount),t.xp6(1),t.ekj("max",e.bulkData[n.id].amount===20*e.bulkMinAmount[e.currency].minamt)}}function Be(o,s){if(1&o&&(t.TgZ(0,"div",17)(1,"div",18)(2,"div",19)(3,"div",20)(4,"em",11),t._uU(5,"schedule"),t.qZA(),t.TgZ(6,"span"),t._uU(7),t.ALo(8,"customDate"),t.qZA()(),t.TgZ(9,"div",13),t._uU(10),t.qZA(),t.YNc(11,Le,7,6,"div",21),t.TgZ(12,"div",22),t._UZ(13,"app-progress-bar",23),t.qZA()(),t.TgZ(14,"div",24),t._UZ(15,"img",25),t.TgZ(16,"div",26),t.YNc(17,Je,4,0,"button",27),t.qZA(),t.YNc(18,Qe,10,4,"div",28),t.qZA()()()),2&o){const n=s.$implicit,e=t.oxw(3);t.xp6(7),t.hij("",t.Dn7(8,10,null==n?null:n.end_date,"remaingTime","D-H")," left"),t.xp6(3),t.Oqu(null==n?null:n.title),t.xp6(1),t.Q6J("ngIf",null==n?null:n.amount_remaining),t.xp6(2),t.Q6J("amount",null==n||null==n.raised?null:n.raised.raised)("goal",null==n?null:n.amount_requested)("height",e.isMobile?"6px":"8px"),t.xp6(2),t.Q6J("default",e.vars.defaultImg),t.uIk("data-src",(null==n||null==n.story_widget?null:n.story_widget.cdn_path)||(null==n||null==n.widget?null:n.widget.cdn_path)),t.xp6(2),t.Q6J("ngIf",!e.selected.includes(n.id)),t.xp6(1),t.Q6J("ngIf",e.selected.includes(n.id))}}function ze(o,s){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,Be,19,14,"div",16),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.campaigns)}}function Ye(o,s){1&o&&(t.TgZ(0,"div",17)(1,"div",18)(2,"div",19),t._UZ(3,"div",36)(4,"div",37)(5,"div",38)(6,"div",39),t.qZA(),t._UZ(7,"div",40),t.qZA()())}const He=function(){return[1,2]};function Ke(o,s){1&o&&(t.TgZ(0,"div"),t.YNc(1,Ye,8,0,"div",16),t.qZA()),2&o&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,He)))}function je(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Oqu(n.btnlabel)}}function Ve(o,s){1&o&&(t.TgZ(0,"div",7),t._UZ(1,"div")(2,"div")(3,"div")(4,"div"),t.qZA())}function Ge(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",8)(1,"div",9)(2,"div",10),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.close())}),t.TgZ(3,"em",11),t._uU(4,"arrow_back_ios_new"),t.qZA()(),t.TgZ(5,"div",12),t._uU(6,"Before you go,"),t.qZA(),t.TgZ(7,"div",13),t._uU(8,"It\u2019d be a big help in saving their lives if you could contribute to them also."),t.qZA()(),t.YNc(9,ze,2,1,"div",2),t.YNc(10,Ke,2,2,"div",2),t.TgZ(11,"div",14)(12,"button",15),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.submit())}),t.YNc(13,je,2,1,"span",2),t.YNc(14,Ve,5,0,"div",3),t.qZA()()()}if(2&o){const n=t.oxw();t.xp6(9),t.Q6J("ngIf",(null==n.campaigns?null:n.campaigns.length)>0),t.xp6(1),t.Q6J("ngIf",!(null!=n.campaigns&&n.campaigns.length)),t.xp6(1),t.ekj("active",n.isAnySelected),t.xp6(1),t.Q6J("disabled",!!n.isOrderLoading),t.xp6(1),t.Q6J("ngIf",!n.isOrderLoading),t.xp6(1),t.Q6J("ngIf",n.isOrderLoading)}}let Pt=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"bottomSheet",(0,t.f3M)(w.ch)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"fundraiserService",(0,t.f3M)(ct.R)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"campaign_id",void 0),(0,i.Z)(this,"disabled",void 0),(0,i.Z)(this,"isOrderLoading",void 0),(0,i.Z)(this,"onSubmit",new t.vpe),(0,i.Z)(this,"bulkDonation",void 0),(0,i.Z)(this,"bulkData",{}),(0,i.Z)(this,"minamt",0),(0,i.Z)(this,"selected",[]),(0,i.Z)(this,"totalamt",void 0),(0,i.Z)(this,"campaigns",void 0),(0,i.Z)(this,"btnlabel",void 0),(0,i.Z)(this,"isAnySelected",!1),(0,i.Z)(this,"bulkMinAmount",gt),(0,i.Z)(this,"isMobile",this.vars.isMobile)}getCampaigns(n){this.fundraiserService.getUrgentStoryCampaigns(`?campaignId=${this.vars.fundraiser?.id}&causeId=${this.vars.fundraiser?.cause_id}&limit=3&tags=featured&with=beneficiaryname;storyWidget&orderBy=priority_entity&sortBy=ASC&currency=`+n).subscribe(a=>{this.campaigns=a.data.data.filter(c=>this.campaign_id!==c?.id).filter((c,m)=>m<2),this.campaigns=this.campaigns.map((c,m)=>(c?.raised?.raised&&c?.amount_requested&&(c.amount_remaining=c?.amount_requested-c?.raised?.raised,c?.amount_remaining<0&&(c.amount_remaining="0")),c
1)),this.setBtnLabel()})}openSheet(n){if(this.btnlabel=`Skip and Contribute ${this.util.formatAmount(this.amount,this.currency)}`,this.getCampaigns(this.currency),this.disabled)return this.onSubmit.emit(!1),!1;this.vars.isMobile?this.bottomSheet.open(this.bulkDonation,{panelClass:"bulk-sheet"}):this.dialog.open(this.bulkDonation,{width:"531px",panelClass:"bulk-dialog"}),n&&n.preventDefault()}hide(n){this.selected.push(n),this.bulkData[n]={amount:this.minamt},0===this.bulkData[n].amount&&(this.bulkData[n].amount=this.bulkData[n].amount+this.bulkMinAmount[this.currency].minamt),this.setBtnLabel(),this.events.sendSystemEvent({eventName:"amountinc"}).subscribe(e=>e)}amtchanger(n,e){"plus"===n&&this.bulkData[e]?.amount<20*this.bulkMinAmount[this.currency]?.minamt&&(this.bulkData[e].amount=this.bulkData[e].amount+this.bulkMinAmount[this.currency].incramt),"minus"===n&&(this.bulkData[e].amount>this.bulkMinAmount[this.currency].minamt?this.bulkData[e].amount=this.bulkData[e].amount-this.bulkMinAmount[this.currency].incramt:(this.events.sendSystemEvent({eventName:"amountdec"}).subscribe(a=>a),this.selected.splice(this.selected.indexOf(e),1),this.bulkData[e].amount=0,delete this.bulkData[e])),this.setBtnLabel()}setBtnLabel(){this.totalamt=Object.values(this.bulkData).reduce((n,{amount:e})=>n+e,0),this.totalamt>0?(this.isAnySelected=!0,this.btnlabel=`Contribute ${this.util.formatAmount(this.amount+this.totalamt,this.currency)}`):(this.isAnySelected=!1,this.btnlabel=`Skip and Contribute ${this.util.formatAmount(this.amount,this.currency)}`)}close(){this.vars.isMobile?this.bottomSheet.dismiss(this.bulkDonation):this.dialog.closeAll()}submit(){0===Object.keys(this.bulkData).length?this.onSubmit.emit(!1):this.onSubmit.emit(this.bulkData),this.paymentUtil.cartResponse.subscribe(n=>{n&&(this.vars.isMobile?this.bottomSheet.dismiss(this.bulkDonation):this.dialog.closeAll())})}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-bulk-donation-selection-v2"]],viewQuery:function(n,e){if(1&n&&t.Gf(De,7),2&n){let a;t.iGM(a=t.CRH())&&(e.bulkDonation=a.first)}},inputs:{amount:"amount",currency:"currency",campaign_id:"campaign_id",disabled:"disabled",isOrderLoading:"isOrderLoading"},outputs:{onSubmit:"onSubmit"},standalone:!0,features:[t.jDz],decls:6,vars:2,consts:[[1,"bulk-btn"],["mat-button","",3,"click"],[4,"ngIf"],["class","lds-ellipsis",4,"ngIf"],["bulkDonation",""],[3,"currency",4,"ngIf"],[3,"currency"],[1,"lds-ellipsis"],[1,"wrap-bulk"],[1,"header"],["mat-ripple","",1,"back-btn",3,"click"],[1,"material-icons"],[1,"sub-title"],[1,"title"],[1,"submitbtn"],["mat-button","",3,"disabled","click"],["class","stories",4,"ngFor","ngForOf"],[1,"stories"],[1,"tile"],[1,"tile-info"],[1,"time-left"],["class","required-amt",4,"ngIf"],[1,"progress"],[3,"amount","goal","height"],[1,"tile-img"],["loading","lazy","appImgFallback","","alt","",3,"default"],[1,"dnt-btn"],["class","btn",3,"click",4,"ngIf"],["class","increment-btn",4,"ngIf"],[1,"required-amt"],[3,"innerHTML"],[1,"btn",3,"click"],[1,"increment-btn"],["mat-ripple","",1,"plus",3,"click"],[1,"text"],["mat-ripple","",1,"minus",3,"click"],[1,"time-left","skeleton","p-2"],[1,"title","skeleton","p-4"],[1,"required-amt","skeleton","p-2"],[1,"progress","skeleton","p-2"],[1,"tile-img","skeleton"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(r){return e.openSheet(r)}),t.YNc(2,Ee,4,2,"span",2),t.YNc(3,qe,5,0,"div",3),t.qZA()(),t.YNc(4,Ge,15,7,"ng-template",null,4,t.W1O)),2&n&&(t.xp6(2),t.Q6J("ngIf",!e.isOrderLoading),t.xp6(1),t.Q6J("ngIf",e.isOrderLoading))},dependencies:[l.ez,l.sg,l.O5,f.ot,f.lW,D.si,D.wG,ht.m,Ot.R,ft.Z,Ct.F,J.j,M.N],styles:[".lds-ellipsis[_ngcontent-%COMP%]{display:inline-block;position:relative;width:64px;height:10px}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis1 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(3){left:26px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(4){left:45px;animation:_ngcontent-%COMP%_lds-ellipsis3 .6s infinite}@keyframes _ngcontent-%COMP%_lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _ngcontent-%COMP%_lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _ngcontent-%COMP%_lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(19px)}}.bulk-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:45px;width:100%;font-size:15px;font-weight:700;line-height:22px;background-color:var(--primary-color);color:#fff;border-radius:3.75082px}.wrap-bulk[_ngcontent-%COMP%]{padding:24px 16px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{margin-bottom:16px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .back-btn[_ngcontent-%COMP%]{height:24px;width:24px;margin-bottom:16px;cursor:pointer}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{margin-bottom:8px;color:#667085;font-size:17px;font-weight:400;line-height:150%;letter-spacing:-.34px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#394556;font-size:24px;font-weight:700;line-height:100%;letter-spacing:-.48px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]{display:flex;align-items:center;gap:16px;margin:20px 0 34px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-info[_ngcontent-%COMP%]{width:100%}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-info[_ngcontent-%COMP%]   .time-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;width:max-content;margin-bottom:8px;padding:2px 4px;border:1px solid #E86570;border-radius:8px;color:#e86570;font-size:12px;font-weight:400;line-height:150%;letter-spacing:-.24px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-info[_ngcontent-%COMP%]   .time-left[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{color:#e86570;font-size:9px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-bottom:16px;color:#394556;font-size:17px;font-weight:400;line-height:150%;letter-spacing:-.34px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]   .tile-info[_ngcontent-%COMP%]   .required-amt[_ngcontent-%COMP%]{margin-bottom:8px;color:#394556;font-size:17px;font-weight:400;line-height:130%;letter-spacing:-.34px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]{width:100%;max-width:178px;height:178px;position:relative}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;width:178px;height:178px;border-radius:8px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .dnt-btn[_ngcontent-%COMP%]{position:absolute;bottom:-15px;left:50%;transform:translate(-50%)}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .dnt-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:110px;height:36px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:700;line-height:18px;color:#fff;border:none;background:#01BFBD;border-radius:4px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]   .tile-img[_ngcontent-%COMP%]   .dnt-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:16px;font-weight:400}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .dnt-btn[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{display:none}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]{width:110px;height:36px;position:absolute;bottom:-15px;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid #99E5E5;background:#FFF}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%], .wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .minus[_ngcontent-%COMP%]{width:36px;height:100%;display:flex;align-items:center;background:none;border:none;color:#444}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .plus[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%], .wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .minus[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:16px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .plus.max[_ngcontent-%COMP%], .wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .minus.max[_ngcontent-%COMP%]{color:#d2d6d4}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:calc(100% - 56px);display:inline;font-size:17px;font-weight:700;line-height:18px;color:#01bfbd;text-align:center}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]{width:100%}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;height:60px;border-radius:8px;border:1px solid #01BFBD;background:#FFF;color:#01bfbd;font-size:24px;font-weight:700;line-height:normal}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:top}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background:#01BFBD}.wrap-bulk[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:#01BFBD;color:#fff}.wrap-bulk[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{background:#fff}.skeleton[_ngcontent-%COMP%]{display:inline-block;height:100%;width:100%;background:linear-gradient(90deg,#f0f0f0,#e0e0e0,#f0f0f0);background-size:200% 100%;animation:_ngcontent-%COMP%_loading 1.5s infinite;border-radius:4px}  .bulk-dialog .mat-dialog-container{padding:0;background:#FFF;border-radius:12px}  .bulk-sheet .mat-bottom-sheet-container{max-height:90vh;padding:0;background:#FFFFFF;box-shadow:0 -4px 24px #00000040;border-radius:12px 12px 0 0;transition:all .2s ease-in-out}@keyframes _ngcontent-%COMP%_auto-shining{0%{transform:rotate(45deg) translateZ(0)}50%,to{transform:rotate(45deg) translate3d(370px,0,0)}}@keyframes _ngcontent-%COMP%_loading{0%{background-position:200% 0}to{background-position:-200% 0}}@media only screen and (max-width: 767px){.bulk-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:50px;border-radius:5px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .back-btn[_ngcontent-%COMP%]{height:16px;width:16px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .back-btn[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:16px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{margin-bottom:4px;font-size:14px;letter-spacing:-.28px}.wrap-bulk[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:17px;line-height:120%;letter-spacing:-.34px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]{margin-bottom:32px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]{gap:24px;margin:16px 0}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-info[_ngcontent-%COMP%]   .time-left[_ngcontent-%COMP%]{padding:2px 4px;font-size:10px;line-height:130%;letter-spacing:-.2px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px;letter-spacing:-.28px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-info[_ngcontent-%COMP%]   .required-amt[_ngcontent-%COMP%]{font-size:12px;line-height:150%;letter-spacing:-.24px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]{max-width:132px;height:132px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:132px;height:132px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ng
1content-%COMP%]   .tile-img[_ngcontent-%COMP%]   .dnt-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100px;gap:6.63px;font-size:14px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .dnt-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:15px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]{width:100px}.wrap-bulk[_ngcontent-%COMP%]   .stories[_ngcontent-%COMP%]   .tile[_ngcontent-%COMP%]   .tile-img[_ngcontent-%COMP%]   .increment-btn[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:calc(100% - 48px);font-size:14px}.wrap-bulk[_ngcontent-%COMP%]   .submitbtn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:37px;font-size:14px;line-height:21px}}"]})),o})();var bt=d(5707);function $e(o,s){if(1&o&&(t.ynx(0),t._uU(1," Contribute "),t._UZ(2,"app-currency-icon",12),t._uU(3),t.BQk()),2&o){const n=t.oxw();t.xp6(2),t.Q6J("currency",n.currency),t.xp6(1),t.hij("",n.amount," ")}}function We(o,s){1&o&&(t.TgZ(0,"div",13),t._UZ(1,"div")(2,"div")(3,"div")(4,"div"),t.qZA())}let Xe=(()=>{class o{constructor(){(0,i.Z)(this,"payment",(0,t.f3M)(L.t)),(0,i.Z)(this,"currency","INR"),(0,i.Z)(this,"amount",0),(0,i.Z)(this,"isLoading",!1),(0,i.Z)(this,"payUsingOther",new t.vpe)}togglePaymentMode(){this.payUsingOther.emit(!0)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-donate-btn-v2"]],inputs:{currency:"currency",amount:"amount",isLoading:"isLoading"},outputs:{payUsingOther:"payUsingOther"},standalone:!0,features:[t.jDz],decls:15,vars:9,consts:[[1,"wrap"],[1,"selected-mode"],["matRipple","",1,"other",3,"click"],[1,"text"],[1,"icon"],[3,"name","size"],[1,"label-icon"],[1,"label"],[1,"action-btn"],["type","submit","matRipple","",3,"disabled"],[4,"ngIf"],["class","lds-ellipsis",4,"ngIf"],[3,"currency"],[1,"lds-ellipsis"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.NdJ("click",function(){return e.togglePaymentMode()}),t.TgZ(3,"div",3),t._uU(4,"PAY USING"),t.qZA(),t.TgZ(5,"div",4),t._UZ(6,"app-icon",5),t.qZA()(),t.TgZ(7,"div",6),t._UZ(8,"div"),t.TgZ(9,"div",7),t._uU(10),t.qZA()()(),t.TgZ(11,"div",8)(12,"button",9),t.YNc(13,$e,4,2,"ng-container",10),t.YNc(14,We,5,0,"div",11),t.qZA()()()),2&n&&(t.xp6(6),t.Q6J("name","arrow_drop_down")("size",8),t.xp6(2),t.Gre("icon ",e.payment.selectedModeValue,""),t.xp6(2),t.Oqu(e.payment.selectedPaymentModeLabel),t.xp6(2),t.Q6J("disabled",e.isLoading),t.xp6(1),t.Q6J("ngIf",!e.isLoading),t.xp6(1),t.Q6J("ngIf",e.isLoading))},dependencies:[l.O5,bt.o,M.N],styles:[".lds-ellipsis[_ngcontent-%COMP%]{display:inline-block;position:relative;width:64px;height:10px}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis1 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(3){left:26px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(4){left:45px;animation:_ngcontent-%COMP%_lds-ellipsis3 .6s infinite}@keyframes _ngcontent-%COMP%_lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _ngcontent-%COMP%_lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _ngcontent-%COMP%_lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(19px)}}.wrap[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:10px 5px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]{min-width:-moz-fit-content;min-width:fit-content}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .other[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:4px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .other[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:#394556;text-align:center;font-size:10px;font-weight:600;line-height:normal;letter-spacing:.2px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .other[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#394556}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:4px;border:.75px solid var(--Neutral-gray-1, #F0F3F7);background-image:url(/assets/images/payment/payment-icons-large.png);background-size:13px auto;background-repeat:no-repeat;background-color:#fff}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]   .icon.GooglePay[_ngcontent-%COMP%]{background-position:5px 4px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]   .icon.PhonePe[_ngcontent-%COMP%]{background-position:5.5px -14px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]   .icon.Paytm[_ngcontent-%COMP%]{background-size:15px auto;background-position:4px -37px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]   .icon.Whatsapp[_ngcontent-%COMP%]{background-size:16px auto;background-position:3.5px -61px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]   .icon.BHIM[_ngcontent-%COMP%]{background-size:20px auto;background-position:1.5px -105px}.wrap[_ngcontent-%COMP%]   .selected-mode[_ngcontent-%COMP%]   .label-icon[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#394556;font-size:12px;font-weight:600;line-height:normal;letter-spacing:.24px}.wrap[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%]{width:100%}.wrap[_ngcontent-%COMP%]   .action-btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;height:46px;border-radius:6px;border:none;background:var(--primary-color);box-shadow:0 2px 4px #0000001a,0 2px 8px #0000003d;color:#fff;text-align:center;font-size:20px;font-weight:700;line-height:25px;outline:none}"]})),o})();var Mt=d(5567),ti=d(2057);function ni(o,s){1&o&&t._UZ(0,"app-currency-icon",15),2&o&&t.Q6J("currency","INR")}function ei(o,s){if(1&o&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&o){const n=t.oxw().index,e=t.oxw(2);t.xp6(1),t.hij("***",null==e.lastPaymentmode[n]||null==e.lastPaymentmode[n].checksum?null:e.lastPaymentmode[n].checksum.last4,"")}}function ii(o,s){if(1&o&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&o){const n=t.oxw().index,e=t.oxw(2);t.xp6(1),t.Oqu(null==e.lastPaymentmode[n]||null==e.lastPaymentmode[n].checksum?null:e.lastPaymentmode[n].checksum.name)}}function oi(o,s){if(1&o&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&o){const n=t.oxw().index,e=t.oxw(2);t.xp6(1),t.Oqu(null==e.lastPaymentmode[n]||null==e.lastPaymentmode[n].payment_mode_value?null:e.lastPaymentmode[n].payment_mode_value.toLowerCase())}}function ai(o,s){if(1&o&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&o){const n=t.oxw().index,e=t.oxw(2);t.Gre("op-value ",null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode,""),t.xp6(1),t.Oqu(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].checksum)}}function si(o,s){if(1&o&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&o){const n=t.oxw().index,e=t.oxw(2);t.xp6(1),t.Oqu(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode_value)}}function ri(o,s){1&o&&(t.TgZ(0,"div",17),t._uU(1," Contribute "),t.TgZ(2,"i",18),t._uU(3,"chevron_right"),t.qZA()())}function ci(o,s){1&o&&(t.TgZ(0,"div",19),t._UZ(1,"div")(2,"div")(3,"div")(4,"div"),t.qZA())}function pi(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",4)(1,"div",5)(2,"div",6),t.YNc(3,ni,1,1,"app-currency-icon",7),t._uU(4),t.qZA(),t.TgZ(5,"div",8),t._UZ(6,"span"),t.TgZ(7,"div",9),t.YNc(8,ei,2,1,"div",10),t.YNc(9,ii,2,1,"div",10),t.YNc(10,oi,2,1,"div",10),t.YNc(11,ai,2,4,"div",11),t.YNc(12,si,2,1,"div",10),t.qZA()()(),t.TgZ(13,"button",12),t.NdJ("click",function(){const r=t.CHM(n).index,c=t.oxw(2);return t.KtG(c.donate(r))}),t.YNc(14,ri,4,0,"div",13),t.YNc(15,ci,5,0,"div",14),t.qZA()()}if(2&o){const n=s.index,e=t.oxw(2);t.xp6(3),t.Q6J("ngIf",!0),t.xp6(1),t.Oqu(e.lastPaymentmode[n].amount),t.xp6(2),t.MT6("icons payment-icons-v1 OP_",null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode," ",null==e.lastPaymentmode[n]||null==e.lastPaymentmode[n].payment_mode_value?null:e.lastPaymentmode[n].payment_mode_value.toUpperCase(),""),t.xp6(2),t.Q6J("ngIf","CARD"===(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode)),t.xp6(1),t.Q6J("ngIf","NB"===(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode)),t.xp6(1),t.Q6J("ngIf","WALLET"===(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode)),t.xp6(1),t.Q6J("ngIf","UPI"===(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode)&&"VPA"===(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode_value)),t.xp6(1),t.Q6J("ngIf","UPI"===(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode)&&"VPA"!==(null==e.lastPaymentmode[n]?null:e.lastPaymentmode[n].payment_mode_value)),t.xp6(2),t.Q6J("ngIf",!e.paymentV2.isOrderLoading),t.xp6(1),t.Q6J("ngIf",e.paymentV2.isOrderLoading)}}function li(o,s){if(1&o&&(t.TgZ(0,"ngx-glide",2),t.YNc(1,pi,16,13,"div",3),t.qZA()),2&o){const n=t.oxw();t.Q6J("showArrows",!1)("showBullets",!0)("type","slider")("bound",!0)("gap",10)("arrowLeftLabel","")("arrowRightLabel","")("perView",1.1),t.xp6(1),t.Q6J("ngForOf",n.lastPaymentmode)}}function di(o,s){1&o&&(t.TgZ(0,"div",20),t._UZ(1,"app-payment-sip-upi-timer"),t.qZA())}let ui=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"paymentService",(0,t.f3M)(L.t)),(0,i.Z)(this,"paymentV2",(0,t.f3M)(B.i)),(0,i.Z)(this,"currency","INR"),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"isIos",void 0),(0,i.Z)(this,"user",void 0),(0,i.Z)(this,"lastPaymentmode",[])}ngOnInit(){this.isIos=this.util.isIOSDevice(),this.vars.userData.subscribe(n=>{this.user=n,this.user&&this.getPaymentOptionsforQD(this.currency)})}getPaymentOptionsforQD(n){let e=`&mobile_no=${this.user?.phone_1}&is_mobile=${this.vars.isMobile?1:0}&amount=${this.user?.lastorder?.donated_amount_local}`;this.vars.utmsUrlString&&(e+=`&${this.vars.utmsUrlString}`),this.paymentService.getPaymentOptions(n,e).subscribe(a=>{this.vwo.new_upi_AB()&&a?.data?.options&&(a.data.options.vpa_collect_enabled=!1),a?.data?.options?.PREVPAYGATEWAYRECOMM?Object.keys(a?.data?.options?.PREVPAYGATEWAYRECOMM).sort().reverse().slice(0,3).forEach((r,c)=>{if(("UPI"!==a?.data?.options?.PREVPAYGATEWAYRECOMM[r].payment_mode||"VPA"===a?.data?.options?.PREVPAYGATEWAYRECOMM[r].payment_mode_value||!this.isIos&&this.isMobile)&&(this.lastPaymentmode.push(a?.data?.options?.PREVPAYGATEWAYRECOMM[r]),this.lastPaymentmode[c]?.checksum?.name)){const T=a?.data?.options?.PREVPAYGATEWAYRECOMM[r]?.checksum?.name.toLowerCase().split(" ");for(var m=0;m<T.length;m++)T[m]=T[m].charAt(0).toUpperCase()+T[m].slice(1);this.lastPaymentmode[c].checksum.name=T.join(" ")}}):this.lastPaymentmode=null})}donate(n){this.vars.otdpayment.next({paymode:this.lastPaymentmode[n],amount:this.lastPaymentmode[n].amount})}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-quicdonate_carousel"]],inputs:{currency:"currency"},standalone:!0,features:[t.jDz],decls:2,vars:2,consts:[[3,"showArrows","showBullets","type","bound","gap","arrowLeftLabel","arrowRightLabel","perView",4,"ngIf"],["class","upi-timer",4,"ngIf"],[3,"showArrows","showBullets","type","bound","gap","arrowLeftLabel","arrowRightLabel","perView"],["class","container",4,"ngFor","ngForOf"],[1,"container"],[1,"leftcontent"],[1,"amount"],[3,"currency",4,"ngIf"],[1,"lastpaymode"],[1,"op-text"],["class","op-value",4,"ngIf"],[3,"class",4,"ngIf"],["mat-button","",3,"click"],["class","text",4,"ngIf"],["class","lds-ellipsis",4,"ngIf"],[3,"currency"],[1,"op-value"],[1,"text"],[1,"material-icons"],[1,"lds-ellipsis"],[1,"upi-timer"]],template:function(n,e){1&n&&(t.YNc(0,li,2,9,"
1ngx-glide",0),t.YNc(1,di,2,0,"div",1)),2&n&&(t.Q6J("ngIf",null==e.lastPaymentmode?null:e.lastPaymentmode.length),t.xp6(1),t.Q6J("ngIf",e.vars.upiTimer))},dependencies:[l.ax,l.O5,f.ot,f.lW,Mt.G,Mt.u,M.N,O.Ps,ti.w],styles:['@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap";@import"https://api.fontshare.com/v2/css?f[]=sentient@700&display=swap";.payment-icons[_ngcontent-%COMP%], .PAYCASH[_ngcontent-%COMP%], .YPAYCASH[_ngcontent-%COMP%], .YESPAY[_ngcontent-%COMP%], .OXIGEN[_ngcontent-%COMP%], .PAYZAPP[_ngcontent-%COMP%], .AIRTELMONEY[_ngcontent-%COMP%], .JIOMONEY[_ngcontent-%COMP%], .OLAMONEY[_ngcontent-%COMP%], .FREECHARGE[_ngcontent-%COMP%], .AMAZONPAY[_ngcontent-%COMP%], .MOBIKWIK[_ngcontent-%COMP%], .OTHER[_ngcontent-%COMP%], .PAYTM[_ngcontent-%COMP%], .BHIM[_ngcontent-%COMP%], .WHATSAPP[_ngcontent-%COMP%], .PHONEPE[_ngcontent-%COMP%], .GOOGLEPAY[_ngcontent-%COMP%], .NB_CANR[_ngcontent-%COMP%], .NB_SBI[_ngcontent-%COMP%], .SBI[_ngcontent-%COMP%], .NB_KOTAK[_ngcontent-%COMP%], .NB_ICICI[_ngcontent-%COMP%], .NB_HDFC[_ngcontent-%COMP%], .NB_AXIS[_ngcontent-%COMP%], .RUPAY[_ngcontent-%COMP%], .MAESTRO[_ngcontent-%COMP%], .MX[_ngcontent-%COMP%], .MASTER[_ngcontent-%COMP%], .MASTERCARD[_ngcontent-%COMP%], .VISA[_ngcontent-%COMP%], .VPA[_ngcontent-%COMP%], .other-upi[_ngcontent-%COMP%], .other-bank[_ngcontent-%COMP%], .OP_WALLET[_ngcontent-%COMP%], .OP_UPI[_ngcontent-%COMP%], .OP_NB[_ngcontent-%COMP%], .OP_CARD[_ngcontent-%COMP%]{background-image:url(/assets/images/payment/payment-icons.png);background-size:34px auto;background-repeat:no-repeat;background-color:#fff;border-radius:6px;vertical-align:middle;margin-right:10px;display:inline-block}.payment-icons-v1[_ngcontent-%COMP%]{height:36px;width:36px;border:1px solid #E1E1E1}.OP_CARD[_ngcontent-%COMP%]{background-position:0px -578px}.OP_NB[_ngcontent-%COMP%]{background-position:0px -544px}.OP_UPI[_ngcontent-%COMP%]{background-position:0px -136px}.OP_WALLET[_ngcontent-%COMP%]{background-position:0px -510px}.other-bank[_ngcontent-%COMP%]{background-position:0px -545px}.VPA[_ngcontent-%COMP%], .other-upi[_ngcontent-%COMP%]{background-position:0px -136px}.VISA[_ngcontent-%COMP%]{background-position:0px -170px}.MASTER[_ngcontent-%COMP%], .MASTERCARD[_ngcontent-%COMP%]{background-position:0px -204px}.MX[_ngcontent-%COMP%]{background-position:0px -272px}.MAESTRO[_ngcontent-%COMP%]{background-position:0px -306px}.RUPAY[_ngcontent-%COMP%]{background-position:0px -238px}.NB_AXIS[_ngcontent-%COMP%]{background-position:0px -374px}.NB_HDFC[_ngcontent-%COMP%]{background-position:0px -340px}.NB_ICICI[_ngcontent-%COMP%]{background-position:0px -442px}.NB_KOTAK[_ngcontent-%COMP%]{background-position:0px -476px}.NB_SBI[_ngcontent-%COMP%], .SBI[_ngcontent-%COMP%]{background-position:0px -408px}.NB_CANR[_ngcontent-%COMP%]{background-position:0px -783px}.GOOGLEPAY[_ngcontent-%COMP%]{background-position:0px -35px}.PHONEPE[_ngcontent-%COMP%]{background-position:0px -68px}.WHATSAPP[_ngcontent-%COMP%]{background-position:0px -102px}.BHIM[_ngcontent-%COMP%]{background-position:0px -136px}.PAYTM[_ngcontent-%COMP%]{background-position:0px 0px}.OTHER[_ngcontent-%COMP%]{background-position:0px -510px}.MOBIKWIK[_ngcontent-%COMP%]{background-position:0px -715px}.AMAZONPAY[_ngcontent-%COMP%]{background-position:0px -682px}.FREECHARGE[_ngcontent-%COMP%]{background-position:0px -748px}.OLAMONEY[_ngcontent-%COMP%], .JIOMONEY[_ngcontent-%COMP%], .AIRTELMONEY[_ngcontent-%COMP%], .PAYZAPP[_ngcontent-%COMP%], .OXIGEN[_ngcontent-%COMP%], .YESPAY[_ngcontent-%COMP%], .YPAYCASH[_ngcontent-%COMP%], .PAYCASH[_ngcontent-%COMP%]{background-position:0px -510px}.lds-ellipsis[_ngcontent-%COMP%]{display:inline-block;position:relative;width:64px;height:10px}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis1 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(3){left:26px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(4){left:45px;animation:_ngcontent-%COMP%_lds-ellipsis3 .6s infinite}@keyframes _ngcontent-%COMP%_lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _ngcontent-%COMP%_lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _ngcontent-%COMP%_lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(19px)}}
1.container[_ngcontent-%COMP%]{padding:12px 16px 12px 8px;border-radius:11px;border:1px solid #D8E2EB;background:#FFF;display:flex;align-items:center;justify-content:space-between}.container[_ngcontent-%COMP%]   .leftcontent[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]{margin-left:8px;color:#019997;font-size:17px;font-weight:700;line-height:26px}.container[_ngcontent-%COMP%]   .leftcontent[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]     app-currency-icon .currency-symbol{font-family:Poppins,sans-serif}.container[_ngcontent-%COMP%]   .leftcontent[_ngcontent-%COMP%]   .lastpaymode[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.container[_ngcontent-%COMP%]   .leftcontent[_ngcontent-%COMP%]   .lastpaymode[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{border:none;margin-right:0}.container[_ngcontent-%COMP%]   .leftcontent[_ngcontent-%COMP%]   .lastpaymode[_ngcontent-%COMP%]   .op-text[_ngcontent-%COMP%]{font-size:10px;font-weight:400;line-height:15px}.container[_ngcontent-%COMP%]   .leftcontent[_ngcontent-%COMP%]   .lastpaymode[_ngcontent-%COMP%]   .op-text[_ngcontent-%COMP%]   .op-value[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.container[_ngcontent-%COMP%]   .leftcontent[_ngcontent-%COMP%]   .lastpaymode[_ngcontent-%COMP%]   .op-text[_ngcontent-%COMP%]   .UPI[_ngcontent-%COMP%]{width:70px}.container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:12px;font-weight:700;line-height:18px;padding:12px 16px;color:#fff;border-radius:4px;background:#01BFBD}.container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{height:12px;display:flex;align-items:center;justify-content:center}  ngx-glide .glide{height:110px}  ngx-glide .glide .glide__bullets{top:80px}  ngx-glide .glide .glide__bullets .glide__bullet{height:1px;width:1px;background-color:#d8e2eb;margin:1.5px}  ngx-glide .glide .glide__bullets .glide__bullet--active{width:20px;height:1px;border-radius:30px;background-color:#7490a8}']})),o})();function mi(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onClickEdit())}),t.TgZ(1,"mat-icon",10),t._uU(2,"edit"),t.qZA()()}}function _i(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"mat-checkbox",11),t.NdJ("ngModelChange",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.isAnonymous=a)})("change",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.isAnonymousChange.emit(a.isAnonymous))}),t._uU(1),t.ALo(2,"async"),t.ALo(3,"translatePipe"),t.qZA()}if(2&o){const n=t.oxw();t.Q6J("ngModel",n.isAnonymous),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"Stories.donations.donationAnonymous"))," ")}}function gi(o,s){1&o&&(t.TgZ(0,"div",12),t._UZ(1,"app-quicdonate_carousel"),t.qZA())}function hi(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",13)(1,"app-donate-btn",14),t.NdJ("onClickListner",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onSubmit())}),t.ALo(2,"async"),t.ALo(3,"translatePipe"),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("btnClass","contri-initiate-btn donation-form-submit")("label",t.lcZ(2,7,t.lcZ(3,9,n.config.donate_label)))("isOrderLoading",!(!n.isLoading&&!n.paymentV2.isOrderLoading))("amount",n.amount)("type",n.paymentUtil.paymentMode)("isSipCause",n.isSipCause)("payment_config",n.payment_config)}}function fi(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",15)(1,"app-bulk-donation-selection-v2",16),t.NdJ("onSubmit",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.submitBulk(a))}),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("amount",n.amount)("campaign_id",n.campaignId)("currency",n.currency)("disabled",n.disabled)("isOrderLoading",n.isLoading)}}let Ci=(()=>{class o{constructor(){(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"actiRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"paymentV2",(0,t.f3M)(B.i)),(0,i.Z)(this,"config",void 0),(0,i.Z)(this,"user",void 0),(0,i.Z)(this,"isLoading",void 0),(0,i.Z)(this,"isSipCause",void 0),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"campaignId",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"isAnonymous",void 0),(0,i.Z)(this,"disabled",void 0),(0,i.Z)(this,"payment_config",void 0),(0,i.Z)(this,"isAnonymousChange",new t.vpe),(0,i.Z)(this,"onSubmitBulk",new t.vpe),(0,i.Z)(this,"onBtnClick",new t.vpe),(0,i.Z)(this,"onEditClick",new t.vpe),(0,i.Z)(this,"params",void 0),(0,i.Z)(this,"subs",[]),(0,i.Z)(this,"submitBulk",n=>{this.onSubmitBulk.emit(n)})}ngOnInit(){this.setConfig(),this.params=this.actiRoute.snapshot.queryParams}setConfig(){this.subs.push(this.paymentUtil.paymentConfig.subscribe(n=>{n&&(this.payment_config={...this.payment_config,...n})}))}onClickEdit(){this.events.sendSystemEvent({eventName:"edit_donation_form",event_type:"campaign",event_type_id:this.vars.fundraiser.id}).subscribe(n=>n),this.onEditClick.emit(!0)}onSubmit(){this.onBtnClick.emit(!0)}
1ngOnDestroy(){this.subs.forEach(n=>n.unsubscribe())}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-user-info"]],inputs:{config:"config",user:"user",isLoading:"isLoading",isSipCause:"isSipCause",amount:"amount",campaignId:"campaignId",currency:"currency",isAnonymous:"isAnonymous",disabled:"disabled",payment_config:"payment_config"},outputs:{isAnonymousChange:"isAnonymousChange",onSubmitBulk:"onSubmitBulk",onBtnClick:"onBtnClick",onEditClick:"onEditClick"},standalone:!0,features:[t.jDz],decls:12,vars:7,consts:[[1,"user-info"],[1,"info"],[1,"name"],[1,"email"],["mat-icon-button","",3,"click",4,"ngIf"],["class","anonymous-check","color","primary",3,"ngModel","ngModelChange","change",4,"ngIf"],["class","quickdonate-wrapper",4,"ngIf"],["class","text-center proceed-btn",4,"ngIf"],["class","bulk-selection",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"edit-icon"],["color","primary",1,"anonymous-check",3,"ngModel","ngModelChange","change"],[1,"quickdonate-wrapper"],[1,"text-center","proceed-btn"],["id","formSubmit","type","submit",1,"app-button",3,"btnClass","label","isOrderLoading","amount","type","isSipCause","payment_config","onClickListner"],[1,"bulk-selection"],[3,"amount","campaign_id","currency","disabled","isOrderLoading","onSubmit"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"div",2),t._uU(4),t.qZA(),t.TgZ(5,"div",3),t._uU(6),t.qZA()(),t.YNc(7,mi,3,0,"button",4),t.qZA(),t.YNc(8,_i,4,6,"mat-checkbox",5),t.YNc(9,gi,2,0,"div",6),t.YNc(10,hi,4,11,"div",7),t.YNc(11,fi,2,5,"div",8),t.qZA()),2&n&&(t.xp6(4),t.hij("Hi, ",null==e.user||null==e.user.full_name?null:e.user.full_name.split(" ")[0],""),t.xp6(2),t.Oqu(null==e.user?null:e.user.email),t.xp6(1),t.Q6J("ngIf",!e.vars.isAgent),t.xp6(1),t.Q6J("ngIf",!(null!=e.payment_config&&e.payment_config.is_sip)),t.xp6(1),t.Q6J("ngIf",e.user&&e.vwo.repeatorder_ministoryAB()&&"1"===(null==e.params?null:e.params.mini_story)),t.xp6(1),t.Q6J("ngIf",!("mini_story"===e.vars.pageName&&e.vars.showBulkDonationForMiniStory.test(null==e.params?null:e.params.utm_source))),t.xp6(1),t.Q6J("ngIf","mini_story"===e.vars.pageName&&e.vars.showBulkDonationForMiniStory.test(null==e.params?null:e.params.utm_source)))},dependencies:[l.O5,l.Ov,p.u5,p.JJ,p.On,f.ot,f.lW,O.Ps,O.Hw,z.p9,z.oG,A.a,ui,Q.$,Pt],styles:[".user-info[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;color:#000;margin:15px auto}.user-info[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:17px;margin-bottom:4px}.user-info[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{font-size:13px;font-weight:400;line-height:17px}.user-info[_ngcontent-%COMP%]   .anonymous-check[_ngcontent-%COMP%]{color:#9e9e9e}.user-info[_ngcontent-%COMP%]   .anonymous-check[_ngcontent-%COMP%]   .mat-checkbox-frame[_ngcontent-%COMP%]{border-color:#9e9e9e}.user-info[_ngcontent-%COMP%]     mat-checkbox .mat-checkbox-frame{border-color:#9e9e9e}.user-info[_ngcontent-%COMP%]   .bulk-selection[_ngcontent-%COMP%]{margin:20px auto}"]})),o})();var Oi=d(5554);const Pi=["paytmLoginRef"],bi=["captchaRef"],Mi=["amountFormRef"];function xi(o,s){1&o&&(t.TgZ(0,"div",35),t._UZ(1,"app-component-loader",36),t.qZA())}function vi(o,s){}function yi(o,s){if(1&o&&(t.TgZ(0,"div",37)(1,"div",38)(2,"p"),t._uU(3,"Most Contributors contribute approx "),t.TgZ(4,"span"),t.YNc(5,vi,0,0,"ng-template",39),t._uU(6),t.qZA(),t._uU(7," to this Fundraiser"),t.qZA()()()),2&o){const n=t.oxw(),e=t.MAs(47);t.xp6(5),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Oqu(null==n.contributeDetails?null:n.contributeDetails.default_amount)}}function wi(o,s){if(1&o&&t._UZ(0,"app-quickdonate-card",40),2&o){const n=t.oxw();t.Q6J("currency",n.currency)}}function ki(o,s){1&o&&(t.TgZ(0,"div",44),t._UZ(1,"app-component-loader",45),t.qZA())}function Zi(o,s){if(1&o&&(t.TgZ(0,"div",46),t._UZ(1,"app-otd-sip-toggle",47),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("payment_config",n.payment_config)}}function Ti(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",48)(1,"app-slabs",49),t.NdJ("amountChange",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.setAmount(a))})("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.setCurrency(a))}),t.qZA()()}if(2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("params",n.params)("currency",n.currency)("contributeDetails",n.contributeDetails)("isRew
1ard",n.isReward)("reward",n.reward)("type",n.isSipCause?"sip_cause":"")("recommendTag",n.recommendTag)("isQR",n.isQR)("tagLabel",n.tagLabel)("theme",n.theme)("payment_config",n.payment_config)}}function Ai(o,s){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,ki,2,0,"div",41),t.YNc(2,Zi,2,1,"div",42),t.YNc(3,Ti,2,11,"div",43),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.vars.selectedKCart&&!n.isMobile),t.xp6(1),t.Q6J("ngIf",null==n.payment_config?null:n.payment_config.enable_sip_switch),t.xp6(1),t.Q6J("ngIf",!n.vars.selectedKCart||n.isMobile)}}function Ii(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",53)(1,"i",54),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.memorialTooltip=!1)}),t._uU(2,"close"),t.qZA(),t.TgZ(3,"div",55)(4,"strong"),t._uU(5,"Are you sure? "),t.qZA(),t._uU(6," Your contribution can help this family-"),t.qZA(),t.TgZ(7,"div",56)(8,"div",57)(9,"i",58),t._uU(10,"add_circle"),t.qZA(),t._uU(11,"Pay their financial debt"),t.qZA(),t.TgZ(12,"div",57)(13,"i",58),t._uU(14,"check_circle"),t.qZA(),t._uU(15,"Seek essential medical aid"),t.qZA(),t.TgZ(16,"div",57)(17,"i",59),t._uU(18,"favorite"),t.qZA(),t._uU(19,"Create a future for themselves"),t.qZA()()()}}function Si(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",50)(1,"mat-checkbox",51),t.NdJ("change",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.memorialSipCheck())})("ngModelChange",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.isSipCause=a)}),t._uU(2," I agree to contribute on a monthly basis "),t.qZA(),t.YNc(3,Ii,20,0,"div",52),t.qZA()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngModel",n.isSipCause),t.xp6(2),t.Q6J("ngIf",n.memorialTooltip)}}function Ni(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",61)(1,"app-tip-card",62),t.NdJ("tipAmount",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.setTipAmount(a))})("lastTipAmtObj",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.setLastTipAmt(a))})("tipPercent",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.setTipPercent(a))}),t.qZA()()}if(2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("currency",n.currency)("amount",n.amount)("baseAmount",n.baseAmount)}}function Di(o,s){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,Ni,2,3,"div",60),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==n.vars.fundraiser?null:n.vars.fundraiser.tip_model)||n.vwo.kcart_tip_story_AB()&&n.vars.showKCart||(null==n.vars.pageName?null:n.vars.pageName.match("stories|mini_story"))&&!(null!=n.params&&null!=n.params.utm_source&&n.params.utm_source.match("email"))&&n.isMobile||(null==n.params||null==n.params.utm_source?null:n.params.utm_source.match("internal_stories_otd_calling"))&&1==+(null==n.params?null:n.params.mini_story))}}function Ui(o,s){if(1&o&&(t.TgZ(0,"div",63),t._UZ(1,"app-sip-pitch-otd",40),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("currency",n.currency)}}function Fi(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",64)(1,"app-insure-select",65),t.NdJ("updateFamilyInsurance",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.updateFamilyInsurance(a))}),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("currency",n.currency)("insureData",null==n.contributeDetails?null:n.contributeDetails.insurance)("insureAge",null==n.contributeDetails?null:n.contributeDetails.insurance_under_18)}}function Ei(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-captcha-input",66,67),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.captchaResponse(a))}),t.qZA()}if(2&o){const n=t.oxw();t.Q6J("control",n.captcha)("type",n.captchaType)("execute",!0)}}function qi(o,s){1&o&&(t.TgZ(0,"span",68)(1,"i",58),t._uU(2,"info"),t.qZA(),t._uU(3,"This Fundraiser can only accept INR contributions!"),t.qZA())}function Li(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-input",69),t.NdJ("onFocusOut",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onFocusOut("email"))}),t.ALo(1,"async"),t.ALo(2,"translatePipe"),t.ALo(3,"async"),t.ALo(4,"translatePipe"),t.ALo(5,"async"),t.ALo(6,"translatePipe"),t.qZA()}if(2&o){const n=t.oxw();t.Q6J("control",n.emailControl)("group",n.amountForm)("placeHolder",t.lcZ(1,5,t.lcZ(2,7,"Stories.donations.email.placeholder")))("fieldRequired",t.lcZ(3,9,t.lcZ(4,11,"Stories.bankTransfer.requiredField")))("errorMessage",t.lcZ(5,13,t.lcZ(6,15,"Stories.donations.email.error")))}}function Ji(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-phone-number-input-v2",70),t.NdJ("onCountryChange",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.setCountry(a))})("onFocus",function(a){t.CHM(n);const r=t.oxw();return t.KtG(a?void 0:r.onFocusOut("phone"))}),t.qZA()}if(2&o){const n=t.oxw();t.Q6J("group",n.amountForm)("control",n.mobileControl)}}function Ri(o,s){1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-utm-wallet-hundred",71),t.qZA())}function Qi(o,s){if(1&o&&t._UZ(0,"app-input",72),2&o){const n=t.oxw();t.Q6J("control",n.amountForm.controls.address)("group",n.amountForm)("placeHolder",n.info.address.placeholder)("errorMessage",n.info.address.error)}}function Bi(o,s){if(1&o&&t._UZ(0,"app-input",73),2&o){const n=t.oxw();t.Q6J("control",n.pancard)("group",n.amountForm)("placeHolder",n.info.pancard.placeholder)("errorMessage",n.info.pancard.error)}}function zi(o,s){if(1&o&&t._UZ(0,"app-input",73),2&o){const n=t.oxw();t.Q6J("control",n.passport)("group",n.amountForm)("placeHolder",n.info.passport.placeholder)("errorMessage",n.info.passport.error)}}function Yi(o,s){if(1&o&&t._UZ(0,"app-input",74),2&o){const n=t.oxw();t.Q6J("control",n.pincode)("group",n.amountForm)("placeHolder",n.info.pincode.placeholder)("errorMessage",n.info.pincode.error)}}function Hi(o,s){1&o&&(t.TgZ(0,"small",79),t._uU(1,"This field is required"),t.qZA())}function Ki(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",75)(1,"mat-radio-group",76),t.NdJ("ngModelChange",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.selectedNationality=a)})("change",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.nationalityChange())}),t.TgZ(2,"mat-radio-button",77),t._uU(3,"I\u2019m an Indian National"),t.qZA(),t.TgZ(4,"mat-radio-button",77),t._uU(5,"I\u2019m not an Indian National"),t.qZA()(),t.YNc(6,Hi,2,0,"small",78),t.qZA()}if(2&o){const n=t.oxw();t.ekj("fmargin","f"===n.origin)("smargin","s"===n.origin),t.xp6(1),t.Q6J("ngModel",n.selectedNationality),t.xp6(1),t.Q6J("value",!0),t.xp6(2),t.Q6J("value","0"),t.xp6(2),t.Q6J("ngIf",n.nationality.invalid&&n.nationality.touched)}}function ji(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",80)(1,"app-tip-select-nudge",81),t.NdJ("setTipAmount",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.setTipAmount(a))})("setLastTipAmt",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.setLastTipAmt(a))})("setTipPercent",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.setTipPercent(a))}),t.qZA()()}if(2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("currency",n.currency)("amount",n.amount)("baseAmount",n.baseAmount)("selectedTipPerc",n.vwo.tip_desktop_story_AB())}}function Vi(o,s){1&o&&(t.TgZ(0,"div",82)(1,"i",58),t._uU(2,"info"),t.qZA(),t.TgZ(3,"div",83),t._uU(4,"For tax benefits, update your PAN and address under profile details after completing your contribution."),t.qZA()())}function Gi(o,s){if(1&o&&(t.TgZ(0,"div",87),t._uU(1," Contribution : "),t._UZ(2,"app-currency-icon",40),t._uU(3),t._UZ(4,"app-currency-icon",40),t._uU(5),t.qZA()),2&o){const n=t.oxw(2);t.xp6(2),t.Q6J("currency",n.currency),t.xp6(1),t.hij("",n.amount-n.tipAmount," + Tip : "),t.xp6(1),t.Q6J("currency",n.currency),t.xp6(1),t.hij("",n.tipAmount," ")}}function $i(o,s){if(1&o&&(t.TgZ(0,"div",84),t.YNc(1,Gi,6,4,"div",85),t._UZ(2,"app-donate-btn",86),t.ALo(3,"async"),t.ALo(4,"translatePipe"),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.fromToggleTip),t.xp6(1),t.Q6J("btnClass","contri-initiate-btn donation-form-submit")("miniStory",n.miniStory)("label",null!=n.params&&n.params.sip_story?"Pledge":t.lcZ(3,13,t.lcZ(4,15,n.config.donate_label)))("isOrderLoading",n.isLoading||n.vars.isOrderLoading)("amount",n.amount)("type",n.paymentUtil.paymentMode)("isSipCause",n.isSipCause)("ngo_Sip",n.ngo_sip)("payment_config",n.payment_config)("month_interval",n.month_interval)("fundraiser",n.vars.fundraiser)("hideAmount",!1)}}function Wi(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",84)(1,"app-bulk-donation-selection",88),t.NdJ("onSubmit",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.submitBulk(a))}),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("campaign_id",n.campaignId)("amount",n.amount)("disabled",n.amountForm.invalid)("currency",n.currency)("isOrderLoading",n.isLoading)}}function Xi(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",89)(1,"app-bulk-donation-selection-v2",90),t.NdJ("onSubmit",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.submitBulk(a))}),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("amount",n.amount)("campaign_id",n.campaignId)("currency",n.currency)("disabled",n.amountForm.invalid)("isOrderLoading",n.isLoading)}}function to(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",91)(1,"app-donate-btn-v2",92),t.NdJ("payUsingOther",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.payUsingOther())}),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("currency",n.currency)("amount",n.amount)("isLoading",n.isLoading||n.vars.isOrderLoading)}}function no(o,s){1&o&&(t.TgZ(0,"div",93),t._UZ(1,"div",94)(2,"div",95)(3,"div",96)(4,"div",97),t.qZA())}function eo(o,s){1&o&&(t.TgZ(0,"div",98)(1,"mat-checkbox",99)(2,"span",100),t._uU(3,"I agree to receive marketing SMS messages from Ketto Online Ventures Pvt. Ltd. Message frequency may be up to 6 messages per month. Message and data rates may apply. Reply STOP to unsubscribe. Reply HELP for help. Consent is not a condition of purchase."),t.qZA()()())}function io(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"span"),t._uU(1,"Read the full "),t.TgZ(2,"a",104),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.openDisclaimer())}),t._uU(3,"Disclaimer"),t.qZA()()}}function oo(o,s){if(1&o&&(t.TgZ(0,"div",101)(1,"p"),t._uU(2),t.ALo(3,"async"),t.ALo(4,"translatePipe"),t.TgZ(5,"a",102),t._uU(6),t.ALo(7,"async"),t.ALo(8,"translatePipe"),t.qZA(),t._uU(9),t.ALo(10,"async"),t.ALo(11,"translatePipe"),t._UZ(12,"br"),t.TgZ(13,"a",103),t._uU(14),t.ALo(15,"async"),t.ALo(16,"translatePipe"),t.qZA(),t._uU(17),t.ALo(18,"async"),t.ALo(19,"translatePipe"),t.YNc(20,io,4,0,"span",5),t.qZA()()),2&o){const n=t.oxw();t.xp6(2),t.hij("",t.lcZ(3,6,t.lcZ(4,8,"Stories.donations.termsconditionsStatement1"))," "),t.xp6(4),t.Oqu(t.lcZ(7,10,t.lcZ(8,12,"Stories.donations.termsService"))),t.xp6(3),t.hij(" ",t.lcZ(10,14,t.lcZ(11,16,"Stories.donations.and"))," "),t.xp6(5),t.hij("",t.lcZ(15,18,t.lcZ(16,20,"Stories.donations.privacyPolicy")),"."),t.xp6(3),t.hij(" ",t.lcZ(18,22,t.lcZ(19,24,"Stories.donations.termsconditionsStatement2"))," "),t.xp6(3),t.Q6J("ngIf","stories"===n.vars.pageName||"mini_story"===n.vars.pageName)}}function ao(o,s){1&o&&(t.TgZ(0,"div",105),t._uU(1," This site is protected by reCAPTCHA and the Google "),t.TgZ(2,"a",106),t._uU(3,"Privacy Policy"),t.qZA(),t._uU(4," and "),t.TgZ(5,"a",107),t._uU(6,"Terms of Service"),t.qZA(),t._uU(7," apply. "),t.qZA())}function so(o,s){1&o&&(t.TgZ(0,"div",108),t._UZ(1,"app-multi-patient-note",109),t.qZA())}function ro(o,s){if(1&o&&t._UZ(0,"i"),2&o){const n=t.oxw(2);t.Gre("icon ",null==n.currencyDetails?null:n.currencyDetails.icon,"")}}function co(o,s){if(1&o&&t._UZ(0,"span",112),2&o){const n=t.oxw(2);t.Q6J("innerHTML",null==n.currencyDetails?null:n.currencyDetails.symbol,t.oJD)}}function po(o,s){if(1&o&&(t.YNc(0,ro,1,3,"i",110),t.YNc(1,co,1,1,"span",111)),2&o){const n=t.oxw();t.Q6J("ngIf",null==n.currencyDetails?null:n.currencyDetails.is_symbol),t.xp6(1),t.Q6J("ngIf",!(null!=n.currencyDetails&&n.currencyDetails.is_symbol))}}function lo(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",113)(1,"p"),t._uU(2,"Login is mandatory to proceed"),t.qZA(),t.TgZ(3,"div",114)(4,"button",115),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return a.paytmLoginConsent(),t.KtG(a.dialogRef.close())}),t._uU(5,"OK"),t.qZA(),t.TgZ(6,"button",116),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.exitPaytm())}),t._uU(7,"Exit"),t.qZA()()()}}let uo=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"paymentService",(0,t.f3M)(L.t)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"actiRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"storage",(0,t.f3M)(X.V)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"auth",(0,t.f3M)(dt.e)),(0,i.Z)(this,"scriptLoaderService",(0,t.f3M)(tt.$)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"bottomSheet",(0,t.f3M)(w.ch)),(0,i.Z)(this,"api",(0,t.f3M)(ut.s)),(0,i.Z)(this,"paymentV2",(0,t.f3M)(B.i)),(0,i.Z)(this,"campaignId",void 0),(0,i.Z)(this,"contributeDetails",void 0),(0,i.Z)(this,"isReward",void 0),(0,i.Z)(this,"config",void 0),(0,i.Z)(this,"isLoading",void 0),(0,i.Z)(this,"paymentFlowType",void 0),(0,i.Z)(this,"userSelectionCurrency",new t.vpe),(0,i.Z)(this,"isSumbited",new t.vpe),(0,i.Z)(this,"isRewardSelected",void 0),(0,i.Z)(this,"isQR",void 0),(0,i.Z)(this,"fixedAmount",void 0),(0,i.Z)(this,"eventCause",void 0),(0,i.Z)(this,"event",void 0),(0,i.Z)(this,"upiMode",void 0),(0,i.Z)(this,"onpage",void 0),(0,i.Z)(this,"captchaType",void 0),(0,i.Z)(this,"skipFailedCase",void 0),(0,i.Z)(this,"paymentIcons",void 0),(0,i.Z)(this,"recommendTag",void 0),(0,i.Z)(this,"inputFields",void 0),(0,i.Z)(this,"position",void 0),(0,i.Z)(this,"origin",void 0),(0,i.Z)(this,"isSipStory",void 0),(0,i.Z)(this,"payment_config",void 0),(0,i.Z)(this,"tagLabel",void 0),(0,i.Z)(this,"theme",void 0),(0,i.Z)(this,"miniStory",void 0),(0,i.Z)(this,"submitOrder",new t.vpe),(0,i.Z)(this,"amountForm",void 0),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"familyInsuranceAmount",0),(0,i.Z)(this,"nameControl",new p.NI("",[p.kI.required,p.kI.pattern(this.vars.name_Pattern_Regex),p.kI.minLength(3)])),(0,i.Z)(this,"mobileControl",new p.NI("",p.kI.required)),(0,i.Z)(this,"emailControl",new p.NI("",[p.kI.required,p.kI.pattern(this.vars.email_Pattern_Regex)])),(0,i.Z)(this,"nationality",void 0),(0,i.Z)(this,"captcha",void 0),(0,i.Z)(this,"address",void 0),(0,i.Z)(this,"pincode",void 0),(0,i.Z)(this,"pancard",void 0),(0,i.Z)(this,"passport",void 0),(0,i.Z)(this,"is_anonymous",void 0),(0,i.Z)(this,"info",Pn.C),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"inputFieldData",{email:"",ph
1one:""}),(0,i.Z)(this,"supportedCurrencies",[]),(0,i.Z)(this,"clientData",void 0),(0,i.Z)(this,"cartResponse",void 0),(0,i.Z)(this,"slabs",[]),(0,i.Z)(this,"reward",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"currencyDetails",void 0),(0,i.Z)(this,"params",void 0),(0,i.Z)(this,"isLoggedIn",void 0),(0,i.Z)(this,"geocoder",void 0),(0,i.Z)(this,"backPressed",!1),(0,i.Z)(this,"isPanCardExists",!1),(0,i.Z)(this,"askPassport",!1),(0,i.Z)(this,"askPincode",void 0),(0,i.Z)(this,"extn",void 0),(0,i.Z)(this,"failedTransaction",void 0),(0,i.Z)(this,"cartValues",void 0),(0,i.Z)(this,"tipAmount",void 0),(0,i.Z)(this,"tipPercent",void 0),(0,i.Z)(this,"baseAmount",void 0),(0,i.Z)(this,"selectedNationality",!0),(0,i.Z)(this,"initialContributeLoad",!1),(0,i.Z)(this,"subs",[]),(0,i.Z)(this,"paytmLogin",void 0),(0,i.Z)(this,"captchaRef",void 0),(0,i.Z)(this,"slabsComponent",void 0),(0,i.Z)(this,"dialogRef",void 0),(0,i.Z)(this,"exitCounter",0),(0,i.Z)(this,"enableCaptha",!1),(0,i.Z)(this,"screen",void 0),(0,i.Z)(this,"sipAmount",0),(0,i.Z)(this,"isSipCause",!1),(0,i.Z)(this,"memorialTooltip",!1),(0,i.Z)(this,"sipCause",void 0),(0,i.Z)(this,"ngo_sip",void 0),(0,i.Z)(this,"user",void 0),(0,i.Z)(this,"isEdit",void 0),(0,i.Z)(this,"fromToggleTip",!1),(0,i.Z)(this,"randomDonorCount",0),(0,i.Z)(this,"max_donation",5e7),(0,i.Z)(this,"bulkdata",void 0),(0,i.Z)(this,"bulkamount",void 0),(0,i.Z)(this,"bulkShown",!1),(0,i.Z)(this,"pancard_regex",/^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/),(0,i.Z)(this,"is_any_active_sip",void 0),(0,i.Z)(this,"month_interval",void 0),(0,i.Z)(this,"addedExtraAmountCount",0),(0,i.Z)(this,"showBulkDonationFor",/^(facebook|fbad|crt|adroll|taboola|tabool|keywee|keeyee|timescol|rtbhouse|Affiliates)/i),(0,i.Z)(this,"currencies",bn.so),(0,i.Z)(this,"activeSips",[]),(0,i.Z)(this,"optionCalled",!1),(0,i.Z)(this,"selectedCountryData",void 0),(0,i.Z)(this,"amountFormRef",void 0),(0,i.Z)(this,"isAnonymousChange",n=>{this.is_anonymous.setValue(n)}),(0,i.Z)(this,"submitBulk",n=>{this.bulkShown=!0,this.bulkdata=null,this.bulkamount=null;try{Object.keys(n).length>0&&(this.bulkdata={[this.campaignId]:{amount:this.amount},...n},this.bulkamount=Object.values(this.bulkdata).reduce((e,{amount:a})=>e+a,0))}catch{}this.submitPayment()}),(0,i.Z)(this,"independeceAmount",0),(0,i.Z)(this,"setAmountNudge",n=>{this.independeceAmount=n>0?n:0,this.amount=this.amount+n}),(0,i.Z)(this,"updateFamilyInsurance",n=>{this.vars.selectedFamilyInsurance?this.familyInsuranceAmount=+Object.values(this.vars.selectedFamilyInsurance).reduce((e,{amount:a})=>e+a,0)||0:(this.familyInsuranceAmount=0,this.bulkdata=void 0,this.bulkamount=void 0),setTimeout(()=>{this.setTotalAmount()},100)}),(0,i.Z)(this,"addSip",n=>{this.vars.selectedOtdSipAmt=n}),this.initForm(),this.params=this.actiRoute.snapshot.queryParams}ngOnInit(){this.vars.isAutoLogin&&this.updateValidation("email",!0),"f"===this.params?.st&&this.isMobile&&this.vars.pageName.match("mini_story")&&this.util.scrollInto("amount-form-wrapper"),this.setConfig(),this.actiRoute.queryParams.subscribe(n=>{this.screen=n.payment,this.params=n}),this.fixedAmount&&(this.amount=this.fixedAmount),this.contributeDetails?.ngo_sip_campaign&&(this.isSipCause=!0,this.ngo_sip=!0),this.vars.showKCart&&this.subs.push(this.vars.kKartSelectionChange.subscribe(n=>{this.setAmount(n?.amount||0)})),this.failedTransaction="f"===this.actiRoute.snapshot.queryParams.st,this.vars.intlNumber.subscribe({next:n=>{n&&n.extn&&(this.extn=n.extn)}}),this.subs.push(this.vars.clientLocationData.subscribe(n=>this.clientData=n)),this.subs.push(this.paymentUtil.paymentCurrency.subscribe({next:n=>{this.currency=n,this.currencyDetails=this.util.getCurrencyInfo(this.currency),n&&"INR"!==n?this.info.pincode.placeholder="Zipcode":this.toggleCaptcha(!1)}})),this.vars.isLoggedIn$.subscribe({next:n=>{this.isLoggedIn=n,this.fillCart()}}),setTimeout(()=>{this.fillCart()},0),this.rewardSelection(),this.paytmLoginConsent(),this.subs.push(this.vars.sip_cause.subscribe(n=>{this.sipCause=null,n&&(this.isSipCause=!0,this.sipCause=n)})),this.subs.push(this.vars.onUpiOptionClick.subscribe(n=>
1{this.isLoading||this.submitForm()})),"UPI"===this.isQR?.name&&(this.max_donation=1e5),this.is_any_active_sip=this.util.checkForActiveSip(this.util.getUserData()?.listsubscriptions),this.activeSips=this.util.getActiveSip(this.util.getUserData()?.listsubscriptions),this.campaignId&&(this.vars.campaignId=this.campaignId),this.params?.sip_story&&(this.paymentUtil.paymentMode="recuring",this.month_interval=1),this.vars.isDummyEmail&&(this.nameControl.setValue(""),this.emailControl.setValue("")),this.vars.fundraiser?.settings?.verify_mobile&&this.subs.push(this.vars.leadGenData$.subscribe(n=>{n&&this.amountForm.patchValue({mobile:this.user?.phone_1||n.phone})})),this.subs.push(this.vars.tipCartCreated$.subscribe(n=>{n&&(this.cartResponse=n,this.paymentUtil.cartResponse.next(n),this.paymentV2.paymentConfig.next({cart:n}),this.storage.checkFromSession("cartData",n),n?.eventPushed||this.pushEvents(),this.vars.isOrderLoading=!0,this.getPaymentOptions(n.currency,!0))})),"stories"===this.vars.pageName&&150===this.vars.fundraiser?.cause?.id&&this.paymentUtil.paymentConfig.next({enable_min_cart_lead:!0})}openDisclaimer(){this.vars.isMobile?this.bottomSheet.open(mt,{panelClass:"disclaimer-wrap"}):this.dialog.open(mt,{panelClass:"disclaimer-wrap"}),this.events.sendSystemEvent({eventName:"disclaimer_viewed"}).subscribe(n=>n)}setConfig(){this.subs.push(this.paymentUtil.paymentConfig.subscribe(n=>{n&&(this.payment_config={...this.payment_config,...n})}))}toggleCaptcha(n){this.enableCaptha=this.controlToggle("captcha",n),this.captchaRef&&this.enableCaptha&&(this.captchaRef.resetCaptcha(),this.captchaRef.executeCaptcha(),this.captcha.setValue(""))}paytmLoginConsent(){this.vars.isPaytmMini&&!this.util.getUserData()&&this.exitCounter<3&&(this.isLoading=!0,this.paymentService.paytmAuthFetch().then(n=>{this.isLoading=!1,n.data&&(this.nameControl.setValue(n.data.profileInfo.displayName||""),this.emailControl.setValue(n.data.email||""),this.mobileControl.setValue(n.data.phoneInfo.phoneNumber||""))}).catch(()=>{this.isLoading=!1,this.exitCounter++,this.exitCounter>=3?this.exitPaytm():this.dialogRef=this.dialog.open(this.paytmLogin)}))}exitPaytm(){this.dialog.closeAll(),window.JSBridge.call("popWindow")}fillCart(){if(this.actiRoute.snapshot.queryParams.selected_currency)this.patchAmountForm(this.actiRoute.snapshot.queryParams);else if(this.storage.getFromSession("cartData")&&!this.vars.thirdPartyApp){const n=this.storage.getFromSession("cartData");if(this.user=this.util.getUserData(),this.amount&&"f"!==this.params.st&&(n.donated_amount=this.amount),n.pincode=this.user?.pincode,"f"===this.params.st){if(this.optionCalled&&n?.currency===this.paymentUtil.paymentCurrency.value&&n?.donated_amount===this.paymentUtil.cartResponse.value?.donated_amount)return;this.optionCalled=!0,this.patchAmountForm(n),this.paymentUtil.paymentCurrency.next(n.currency),this.paymentUtil.cartResponse.next(n),this.paymentV2.paymentConfig.next({cart:n}),this.subs.push(this.paymentUtil.backButton.subscribe(e=>{e&&(this.backPressed=!0)})),!this.backPressed&&!this.isQR&&!this.skipFailedCase&&this.getPaymentOptions(n.currency)}else this.patchAmountForm(n)}else this.util.getUserData()&&(this.user=this.util.getUserData(),this.fillStoryForm(this.user))}fillStoryForm(n){n&&(this.nameControl.setValue(this.vars.isDummyEmail?"":n.full_name),this.emailControl.setValue(this.vars.isDummyEmail?"":n.email),this.mobileControl.setValue("1111111111"===n.phone_1?null:n.phone_1)),n?.address_1&&this.amountForm.patchValue({address:n?.address_1||""}),n?.pan_number?.info_1&&this.controlToggle("pancard",!0,this.pancard_regex,n?.pan_number?.info_1),n?.pincode&&this.amountForm.patchValue({pincode:n?.pincode})}rewardSelection(){this.subs.push(this.paymentUtil.selectedReward.subscribe(n=>{n&&(this.reward=n,this.isRewardSelected=!0,this.isReward=!0,this.amount=n.amount)}))}patchAmountForm(n){this.cartValues=n,this.amount=n?.donated_amount_local||n?.donated_amount||this.amount,this.amountForm.patchValue({amount:n.donated_amount,name:n.donor_name,is_anonymous:n.is_anonymous,mobile:1111111111===n.donor_phone?this.mobileControl.reset():n.donor_phone,email:n.donor_email,address:n.donor_address,pancard:n.pan,passport:n.passport,nationality:n.indian,pincode:n?.pincode}),n.passport&&this.nationalityChange(),n?.donor_extension&&(this.extn=n.donor_extension)}ngOnChanges(n){this.contributeDetails&&void 0!==n.contributeDetails&&n.contributeDetails.currentValue&&this.getContributeFormDetails()}initForm(){this.amountForm=new p.cw({name:this.nameControl,is_anonymous:this.is_anonymous=new p.NI(!1),mobile:this.mobileControl,email:this.emailControl}),this.emailControl.valueChanges.subscribe(n=>{if(this.inputFieldData.email!==n&&(this.inputFieldData.email=n,this.vars.isAutoLogin)){const e=this.util.getValidatorKeys(this.emailControl);
1n===this.user?.email?e?.includes("pattern")&&this.updateValidation("email",!0):e?.includes("pattern")||this.updateValidation("email",!0,this.vars.email_Pattern_Regex)}}),this.mobileControl.valueChanges.subscribe(n=>{if(this.inputFieldData.phone!==n&&(this.inputFieldData.phone=n,this.vars.isAutoLogin)){const e=this.util.getValidatorKeys(this.mobileControl);n===this.user?.phone_1?e?.includes("pattern")&&this.updateValidation("phone",!0):e?.includes("pattern")||this.updateValidation("phone",!0,this.selectedCountryData?.pattern)}})}setAmount(n){setTimeout(()=>{this.baseAmount=+n,this.checkPanMinAmt(n),this.setTotalAmount()},0)}checkPanMinAmt(n){return n>=this.contributeDetails.pan_required_amount&&this.contributeDetails.ask_pan&&"0"!==this.selectedNationality?(this.isPanCardExists=this.controlToggle("pancard",!0,this.pancard_regex,this.user?.pan_number?.info_1),!0):(this.isPanCardExists=this.controlToggle("pancard",!1),!1)}setTipAmount(n){this.vars.askTipOnPayOpt=!(n||"INR"!==this.currency||!this.vwo.zero_tip_AB()||"campaign"!==this.vars.pageName||20!==this.vars.fundraiser?.parent_cause_id||!this.vars.validCausePM.includes(this.vars.fundraiser?.cause_id)),setTimeout(()=>{this.tipAmount=+n,this.setTotalAmount()},0)}setTotalAmount(){this.storage.getFromSession("india")&&this.setAmountNudge("INR"===this.contributeDetails?.selected_currency?200:this.contributeDetails.min_donation),this.amount=(+this.baseAmount||0)+(+this.tipAmount||0)+(+this.independeceAmount||0)+this.familyInsuranceAmount}setLastTipAmt(n){setTimeout(()=>{this.fromToggleTip=!0,this.tipAmount=n.tipAmt,this.amount=n.baseAmt+n.tipAmt},0)}setTipPercent(n){this.tipPercent=n}setCurrency(n){this.userSelectionCurrency.emit(n)}setIsSubmit(){this.router.navigate([],{queryParams:{payment:"options",op:this.isMobile&&"INR"!==this.currency?"c":null},queryParamsHandling:"merge"})}nationalityChange(){"0"===this.selectedNationality&&this.contributeDetails.ask_passport?(this.askPassport=this.controlToggle("passport",this.contributeDetails.ask_passport,/(^[a-zA-Z0-9]{2,20}$)/),this.isPanCardExists=this.controlToggle("pancard",!1)):!0===this.selectedNationality&&this.contributeDetails.ask_pan&&this.checkPanMinAmt(this.baseAmount)?(this.isPanCardExists=this.controlToggle("pancard",this.contributeDetails.ask_pan,/[a-zA-Z]{5}[0-9]{4}[a-zA-Z]{1}/g),this.askPassport=this.controlToggle("passport",!1)):(this.askPassport=this.controlToggle("passport",!1),this.isPanCardExists=this.controlToggle("pancard",!1))}captchaResponse(n){this.paymentV2.captchaResponse=n,this.submitPayment()}submitPayment(n=!0){this.paymentService.useSeletedMode=n,this.paymentV2.captchaResponse||this.enableCaptha||!this.params?.payment?.match("form|rd")||"INR"===this.currency?this.submitForm():this.toggleCaptcha(!0)}submitForm(){this.vars.selectedFamilyInsurance&&(this.bulkdata={[this.campaignId]:{amount:this.amount-this.vars.selectedFamilyInsurance?.[this.contributeDetails?.insurance?.id]?.amount},...this.vars.selectedFamilyInsurance},this.bulkamount=Object.values(this.bulkdata).reduce((a,{amount:r})=>a+r,0));const n=this.util.getUrlParams(),e=this.storage.get("userdata");if(n?.utm_source?.match("internal_impact_calling|internal_stories_otd_calling")){const a=e?.email;if(this.emailControl.value!==a)return this.util.openSnackBar("User login error, please reopen in fresh incognito window","error"),void this.events.sendSystemEvent({eventName:"user_missmatch",info_1:a,info_2:this.emailControl.value}).subscribe(r=>r)}if(this.amountForm.valid&&this.checkBaseAmtValidity()){const a={campaign_id:this.campaignId,currency:this.currency,donated_amount:this.amount,donor_name:this.nameControl.value,donor_email:this.emailControl.value,is_anonymous:this.is_anonymous.value?"1":"0",device:this.vars.deviceType,donor_country:this.clientData.country_name,donor_city:this.clientData?.city_name,donor_extension:this.extn||e?.extension||"",donor_phone:this.mobileControl.value.replace(/\s/g,""),showError:"false"};if(this.pincode&&(a.donor_pincode=this.amountForm.value.pincode),this.enableCaptha&&(a["g-recaptcha-response"]=this.captcha.value),"number"==typeof this.tipAmount&&(a.tip_amount=this.tipAmount),(this.isQR||this.upiMode||"tann"===this.origin||this.params?.min_donation||"s"===this.origin&&!this.params?.mini_story||this.payment_config?.enable_min_cart_lead&&this.payment_config?.bypass_for_min_cart_only
1)&&!this.isSipStory&&(a.skipmin=!0),this.address&&(a.donor_address=this.amountForm.controls.address.value),this.isPanCardExists&&(a.pan=this.amountForm.value.pancard||""),this.askPassport&&(a.passport=this.amountForm.value.passport||""),this.reward&&(a.reward_id=this.reward.id),this.contributeDetails.ask_citizenship&&this.config.nationality&&(a.indian=!0===this.selectedNationality),this.vars.couponDetails&&(a.coupon_code=this.vars.couponDetails.coupon_code),this.isSipCause&&(a.split=!1,a.recurring=1,this.ngo_sip?a.ngo_sip=1:a.sip_cause=this.sipCause.info_3),this.isSipStory&&(a.split=!1,a.recurring=1,a.cause_amount=1,a.sip_cause=[{sip_cause:this.vars.default_sip_cause,amount:+this.amount}]),this.payment_config?.is_sip&&(a.recurring=1),this.bulkdata&&(a.bulkdonation=this.bulkdata,a.donated_amount=this.bulkamount),a.tip_amount||!this.vwo.support_fee_AB()||this.payment_config?.is_sip?this.vars.supportFee=0:(this.vars.supportFee=this.amount/100*(this.contributeDetails?.support_fee_perc??1),a.tip_amount=this.vars.supportFee,a.donated_amount=a.donated_amount+this.vars.supportFee),this.vars.selectedKCart?(a.campaign_products=this.vars.selectedKCart,this.storage.check("selectedKCart",this.vars.selectedKCart)):this.storage.delete("selectedKCart"),this.amount<1)return!1;this.sendAmountDetails(a)}else this.isMobile&&this.util.scrollInto("amountForm"),this.inputFields=!1,this.util.checkValidForm(this.amountForm),this.enableCaptha&&this.captcha&&this.captcha.invalid&&this.toggleCaptcha(!0)}checkBaseAmtValidity(){let n=this.contributeDetails.min_donation;this.vars.selectedKCart&&(n=this.vars.selectedKCart[0].per_unit_amount);const e=new p.NI(this.baseAmount,[p.kI.required,p.kI.pattern(/^[0-9]+$/),p.kI.min(n),p.kI.max(this.max_donation)]);
1return this.payment_config?.enable_min_cart_lead&&!this.payment_config?.cart_response&&this.baseAmount<n?(this.paymentUtil.paymentConfig.next({bypass_for_min_cart_only:!0}),!0):e.valid}sendAmountDetails(n){this.isLoading=!0,this.paymentService.sendAmount(n,this.campaignId).subscribe(e=>{this.captcha?.reset(),this.paymentV2.captchaResponse&&"INR"!==this.currency&&(this.paymentV2.captchaResponse=""),this.vars.isDummyEmail&&this.events.updateCTprofile({name:n?.donor_name,email:n?.donor_email}),this.failedTransaction=!1;let a={timestamp:(new Date).getTime()};if(this.vars.supportFee&&(a.supportFee=this.vars.supportFee),this.vars.selected_insurance&&(a.vendor=this.vars.selected_insurance.vendor,a.plan=this.vars.selected_insurance.plan),this.vars.showKCart&&(a.showKCart=!0),this.vars.showKCart&&this.vars.selectedKCart&&(a.campaign_products=this.vars.selectedKCart),this.vars.isAutoLogin&&(e.data.cart.donor_phone=n.donor_phone),this.cartResponse={...e.data.cart,...a},this.vars.userPhoneExt=`${this.cartResponse.donor_extension}`,this.vars.userPhoneNumber=`${n?.donor_phone||this.cartResponse.donor_phone}`,this.user&&!this.user?.phone_1&&(this.user.extension=this.vars.userPhoneExt,this.user.phone_1=this.vars.userPhoneNumber,this.util.setUserData(this.user)),this.contributeDetails.ask_citizenship&&this.config.nationality&&(this.cartResponse.indian=!0===this.selectedNationality||"0"),this.paymentUtil.initaiteQr=!0,this.fromToggleTip&&this.pushToggleEvents(n),this.isSipCause&&!this.ngo_sip&&(this.cartResponse.sip_cause=this.sipCause.info_3),this.isSipCause&&this.ngo_sip&&(this.cartResponse.ngo_sip=1),this.paymentUtil.cartResponse.next(this.cartResponse),this.paymentV2.paymentConfig.next({cart:this.cartResponse}),this.storage.checkFromSession("cartData",this.cartResponse),this.storage.checkFromSession("cartDataForOTDSIP",this.cartResponse),this.paymentUtil.paymentConfig.next({cart_response:this.cartResponse}),this.isSipStory||this.payment_config?.is_sip){const r={...e.data,sip_cause_str:this.util.jsonToString(n?.sip_cause),timestamp:(new Date).getTime()};this.storage.checkFromSession("sip_cart",r),this.paymentV2.eventForInitiatePayment(11,e.data.campaign,e.data.cart,{}),this.paymentV2.eventAfterCreatingCart(e.data.campaign,e.data.cart,{})}else this.storage.checkFromSession("cartData",this.cartResponse);e.data.hasOwnProperty("token")?(this.vars.loginMethod="cart",this.auth.userLogin(e.data).then(()=>{this.afterCartCreateActions()})):this.afterCartCreateActions(),this.addCoupon()},e=>{this.paymentUtil.paymentConfig.next({bypass_for_min_cart_only:!1}),this.util.openSnackBar(e?.error?.message,"error"),this.isLoading=!1,this.enableCaptha&&this.captcha&&403!==e?.status&&this.toggleCaptcha(!0)})}afterCartCreateActions(){this.isSipCause||this.isSipStory||this.ngo_sip&&this.isSipCause||this.payment_config?.is_sip?this.sipRedirection():(this.pushEvents(),this.payment_config.bypass_for_min_cart_only?this.isLoading=!1:this.getPaymentOptions(this.contributeDetails.selected_currency),this.bulkShown&&this.bulkDataEvent(),this.vars.selectedFamilyInsurance&&this.familyInsureEvent(),this.paymentUtil.paymentConfig.next({bypass_for_min_cart_only:!1}))}familyInsureEvent(){this.events.sendSystemEvent({eventName:"Insurance_clicked",info_1:this.vars.selectedFamilyInsurance?.[this.contributeDetails?.insurance?.id]?.amount,info_2:"insurance for family"}).subscribe(n=>n)}bulkDataEvent(){this.bulkdata?this.events.sendSystemEvent({eventName:"multi_donation",event_type_id:this.vars.fundraiser.id,info_1:`${JSON.stringify(this.bulkdata)}`||"",info_2:this.bulkamount||""}).subscribe(n=>n):this.events.sendSystemEvent({eventName:"skip multi_donation",event_type_id:this.vars.fundraiser.id}).subscribe(n=>n)}sipRedirection(){const n={currency:this.currency,amt:this.amount||"",campaign_id:this.campaignId};this.isSipCause&&!this.ngo_sip&&(n.sip_cause=this.sipCause.info_3),this.isSipStory&&(n.sip_story=1),this.ngo_sip&&(n.ngo_sip=1),this.dialog.closeAll(),this.vars.router.navigate(["/new/sip/payment-standalone"],{queryParams:n,queryParamsHandling:"merge"})}addCoupon(){this.config.utm_nudge&&this.paymentUtil.utmProceedClicked&&this.api.applyCoupon(this.campaignId,{coupon_id:59}).subscribe(n=>{n.error||this.storage.add("walletOffer100",!0)},n=>{this.storage.add("walletOffer100",!0),n.error&&this.dialog.closeAll()})}
1getContributeFormDetails(){if(this.familyInsuranceAmount=0,this.contributeDetails.pincode&&this.config.pincode){let n;"INR"===this.contributeDetails.selected_currency&&(n="^[1-9][0-9]{5}$"),this.askPincode=this.controlToggle("pincode",this.contributeDetails.pincode,n)}this.config.anonymous_from_api&&this.is_anonymous.setValue(this.contributeDetails.anonymous),this.nationalityChange(),this.contributeDetails.address&&this.config.address&&(this.address=this.controlToggle("address",this.contributeDetails.address)),this.contributeDetails.ask_citizenship&&this.config.nationality&&this.amountForm.addControl("nationality",this.nationality=new p.NI(!0,[p.kI.required])),this.isQR&&this.isQR.name.match("UPI|Paytm")&&(this.contributeDetails.min_donation="s"===this.origin?99:this.contributeDetails.min_donation),this.params?.min_donation&&(this.contributeDetails.min_donation=+this.params?.min_donation),this.isSipStory&&(this.contributeDetails.min_donation=+this.paymentUtil.getMinimumAmountOnlySIP(this.contributeDetails.selected_currency))}controlToggle(n,e,a,r){const c=[p.kI.required];return a&&c.push(p.kI.pattern(a)),e&&!this.amountForm.controls[n]?(this.amountForm.addControl(n,this[n]=new p.NI(r||"",c)),!0):!!e||(this.amountForm.removeControl(n),!1)}getPaymentOptions(n,e=!1){let a=`&mobile_no=${this.user?.phone_1}&is_mobile=${this.vars.isMobile?1:0}&campaign_id=${this.cartResponse?.campaign_id}&indian=${!0===this.cartResponse?.indian}`;a=a.concat(this.bulkdata||e?`&amount=${this.cartResponse?.donated_amount}`:`&amount=${this.amount}`),"internal_stories_otd_calling"===this.params.utm_source&&(a=a.concat("&internal_mini_story=1")),this.vars.utmsUrlString&&(a+=`&${this.vars.utmsUrlString}`),this.paymentService.setConfig({optionsResponse:void 0}),this.paymentService.getPaymentOptions(n,a).subscribe({next:r=>{this.vwo.new_upi_AB()&&r?.data?.options&&(r.data.options.vpa_collect_enabled=!1),r.data.doNotSetOption=e,this.paymentUtil.paymentOptionsObs.next(r.data),this.paymentV2.paymentOptions.next(r.data),this.paymentService.setConfig({optionsResponse:r.data});const c=Object.keys(r?.data?.options?.TOPUPI||r?.data?.options?.UPI||{}),m=this.paymentService.selectedMode,T=this.paymentService.selectedModeValue;if(m&&T&&this.paymentService.useSeletedMode&&c.includes(T))return this.isLoading=!1,this.submitOrder.next({mode:m,mode_value:T}),void this.vars.upi_payment_status.subscribe(Z=>{"success"===Z&&(this.dialog.closeAll(),this.vars.upiTimer=!1,this.vars.router.navigate(["/new/payment-route"],{queryParams:this.vars.tyParams}))});if(this.upiMode&&"iOS"!==this.util.getMobileOperatingSystem()&&this.submitOrder.next({mode:this.upiMode.mode,mode_value:this.upiMode.value,payment_gateway:this.upiMode?.payment_gateway||""}),1===Object.keys(r.data.options).length)for(const[Z]of Object.entries(r.data.options)){const j=Z.charAt(0).toLowerCase();this.router.navigate([],{queryParams:{payment:"options",op:j},queryParamsHandling:"merge"}),"u"===j&&this.vars.upiTimerOuter.next(!0);break}else this.vars.isPhonePe?(this.paymentUtil.miniApps.next({mode:"CASH",mode_value:"PHONEPE"}),this.isLoading=!0,setTimeout(()=>{this.isLoading=!1},1e4)):this.vars.isPaytmMini?(this.paymentUtil.miniApps.next({mode:"PAYTMMA",mode_value:"PAYTM"}),this.isLoading=!0,setTimeout(()=>{this.isLoading=!1},1e4)):e||this.setIsSubmit();"onpage"===this.paymentFlowType&&!this.failedTransaction&&this.paymentUtil.isSubmitted.next(!0),this.isLoading=!1},error:r=>{this.isLoading=!1,this.vars.isOrderLoading=!1}})}pushEvents(){const n={isLoggedIn:this.isLoading,extn:this.extn,campaignId:this.campaignId,reward:this.reward,currency:this.currency,amount:this.amount,position:this.position,info3:this.tipPercent};this.contributeDetails&&this.contributeDetails.slabs&&(n.slabs=this.contributeDetails.slabs),this.paymentUtil.donationFormEvents(this.cartResponse,n,this.onpage)}pushToggleEvents(n){this.events.sendSystemEvent({eventName:"tip_amount",event_type:"campaign",page_name:"campaign",info_1:`${n.tip_amount}/${n.donated_amount}`,info_2:n.tip_amount?"toggle":"",info_3:"campaign",info_4:""}).subscribe(a=>a)}memorialSipCheck(){this.memorialTooltip=!this.isSipCause,this.isSipCause&&(this.tipAmount=0,this.amount=this.baseAmount),this.events.sendSystemEvent({eventName:this.isSipCause?"check monthly giving":"Uncheck monthly giving"}).subscribe(e=>e)}showInputFields(n=!0){this.inputFields=!n}onFocusOut(n){"email"===n&&this.vars.isAutoLogin?this.emailControl.value===this.user?.email?this.updateV
1alidation("email",!0):this.updateValidation("email",!0,this.vars.email_Pattern_Regex):"phone"===n&&this.vars.isAutoLogin&&(this.mobileControl.value===this.user?.phone_1?this.updateValidation("phone",!0):this.updateValidation("phone",!0,this.selectedCountryData?.pattern))}updateValidation(n,e,a){const r=[];e&&r.push(p.kI.required),a&&r.push(p.kI.pattern(a)),"email"===n?(this.emailControl.clearValidators(),this.emailControl.addValidators(r),this.emailControl.updateValueAndValidity()):"phone"===n&&(this.mobileControl.clearValidators(),this.mobileControl.addValidators(r),this.mobileControl.updateValueAndValidity())}setCountry(n){this.selectedCountryData=n,this.extn=n?.dialCode,this.vars.isAutoLogin&&n?.pattern?.test(this.mobileControl.value.replaceAll("*","1"))?this.updateValidation("phone",!0):this.updateValidation("phone",!0,n?.pattern)}payUsingOther(){this.events.sendSystemEvent({eventName:"pay_using_other",info_1:this.paymentService.selectedModeValue}).subscribe(n=>n),this.submitPayment(!1)}ngOnDestroy(){this.subs.forEach(n=>n.unsubscribe())}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-amount-form"]],viewQuery:function(n,e){if(1&n&&(t.Gf(Pi,7),t.Gf(bi,5),t.Gf(lt,5),t.Gf(Mi,5)),2&n){let a;t.iGM(a=t.CRH())&&(e.paytmLogin=a.first),t.iGM(a=t.CRH())&&(e.captchaRef=a.first),t.iGM(a=t.CRH())&&(e.slabsComponent=a.first),t.iGM(a=t.CRH())&&(e.amountFormRef=a.first)}},inputs:{campaignId:"campaignId",contributeDetails:"contributeDetails",isReward:"isReward",config:"config",isLoading:"isLoading",paymentFlowType:"paymentFlowType",isRewardSelected:"isRewardSelected",isQR:"isQR",fixedAmount:"fixedAmount",eventCause:"eventCause",event:"event",upiMode:"upiMode",onpage:"onpage",captchaType:"captchaType",skipFailedCase:"skipFailedCase",paymentIcons:"paymentIcons",recommendTag:"recommendTag",inputFields:"inputFields",position:"position",origin:"origin",isSipStory:"isSipStory",payment_config:"payment_config",tagLabel:"tagLabel",theme:"theme",miniStory:"miniStory"},outputs:{userSelectionCurrency:"userSelectionCurrency",isSumbited:"isSumbited",submitOrder:"submitOrder"},standalone:!0,features:[t.TTD,t.jDz],decls:50,vars:65,consts:[["id","amount-form-wrapper",1,"main-container","onpage-popup"],["amountFormRef",""],["class","multi-patient-dropdown",4,"ngIf"],["class","amount-btn text-center",4,"ngIf"],[3,"currency",4,"ngIf"],[4,"ngIf"],["class","memorial-check",4,"ngIf"],["class","sipPitch",4,"ngIf"],["class","insurance-card",4,"ngIf"],["id","amountForm",3,"formGroup","hidden","ngSubmit"],["size","invisible",3,"control","type","execute","dataEmit",4,"ngIf"],["class","accept-inr-donations",4,"ngIf"],[1,"wrap-input-field"],["inputType","text","icon","icon-user",3,"control","group","placeHolder","fieldRequired","errorMessage","isAnonymous"],["formControlName","is_anonymous","color","primary",1,"anonymous-check",3,"hidden"],["inputType","email","icon","icon-mail",3,"control","group","placeHolder","fieldRequired","errorMessage","onFocusOut",4,"ngIf"],["inputId","mobileInput","theme","material",3,"group","control","onCountryChange","onFocus",4,"ngIf"],["inputType","text","icon","icon-city",3,"control","group","placeHolder","errorMessage",4,"ngIf"],["icon","icon-PAN",3,"control","group","placeHolder","errorMessage",4,"ngIf"],["icon","icon-city",3,"control","group","placeHolder","errorMessage",4,"ngIf"],["class","nationality",3,"fmargin","smargin",4,"ngIf"],["class","tip-desktop",4,"ngIf"],["class","tax_nudge",4,"ngIf"],["class","text-center proceed-btn",4,"ngIf"],["class","bulk-selection text-center proceed-btn",4,"ngIf"],["class","proceed-btn",4,"ngIf"],[3,"hidden"],[3,"amount","campaignId","currency","isLoading","config","user","disabled","payment_config","isAnonymous","onBtnClick","onSubmitBulk","isAnonymousChange","onEditClick"],["class","payment-gateways",4,"ngIf"],["class","sms-promo",4,"ngIf"],["class","tnc",4,"ngIf"],["class","captcha-note",4,"ngIf"],["class","multi-patient-info",4,"ngIf"],["currencyTemp",""],["paytmLoginRef",""],[1,"multi-patient-dropdown"],["selector","app-multi-patient-dropdown"],[1,"amount-btn","text-center"],[1,"approx"],[3,"ngTemplateOutlet"],[3,"currency"],["class","extra-product-details",4,"ngIf"],["class","sip-switch",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"extra-product-details"],["selector","app-extra-product-details"],[1,"sip-switch"],[3,"payment_config"],[1,"text-center"],[3,"params","currency","contributeDetails","isReward","reward","type","recommendTag","isQR","tagLabel","theme","payment_config","amountChange","userSelectionCurrency"],[1,"memorial-check"],["color","primary",3,"ngModel","change","ngModelChange"],["class","memorial-tooltip",4,"ngIf"],[1,"memorial-tooltip"],[1,"material-icons","close",3,"click"],[1,"heading"],[1,"desc"],[1,"list"],[1,"material-icons"],[1,"material-icons","heart"],["class","tip-card",4,"ngIf"],[1,"tip-card"],[3,"currency","amount","baseAmount","tipAmount","lastTipAmtObj","tipPercent"],[1,"sipPitch"],[1,"insurance-card"],[3,"currency","insureData","insureAge","updateFamilyInsurance"],["size","invisible",3,"control","type","execute","dataEmit"],["captchaRef",""],[1,"accept-inr-donations"],["inputType","email","icon","icon-mail",3,"control","group","placeHolder","fieldRequired","errorMessage","onFocusOut"],["inputId","mobileInput","theme","material",3,"group","control","onCountryChange","onFocus"],["type","form"],["inputType","text","icon","icon-city",3,"control","group","placeHolder","errorMessage"],["icon","icon-PAN",3,"control","group","placeHolder","errorMessage"],["icon","icon-city",3,"control","group","placeHolder","errorMessage"],[1,"nationality"],["formControlName","nationality",1,"nationality-group",3,"ngModel","ngModelChange","change"],[1,"nationality-radio-btn",3,"value"],["class","error-message",4,"ngIf"],[1,"error-message"],[1,"tip-desktop"],[3,"currency","amount","baseAmount","selectedTipPerc","setTipAmount","setLastTipAmt","setTipPercent"],[1,"tax_nudge"],[1,"nudge_text"],[1,"text-center","proceed-btn"],["class","tipDistribution",4,"ngIf"],["id","formSubmit","type","submit",1,"app-button",3,"btnClass","miniStory","label","isOrderLoading","amount","type","isSipCause","ngo_Sip","payment_config","month_interval","fundraiser","hideAmount"],[1,"tipDistribution"],[3,"campaign_id","amount","disabled","currency","isOrderLoading","onSubmit"],[1,"bulk-selection","text-center","proceed-btn"],[3,"amount","campaign_id","currency","disabled","isOrderLoading","onSubmit"],[1,"proceed-btn"],[3,"currency","amount","isLoading","payUsingOther"],[1,"payment-gateways"],[1,"safekey"],[1,"visa"],[1,"mastercard"],[1,"stripe"],[1,"sms-promo"],["color","primary"],[2,"color","#888888"],[1,"tnc"],["rel","noopener","href","https://customerhappiness.ketto.org/portal/en
1/kb/articles/terms-of-use-7-8-2021-1","target","_blank"],["rel","noopener","href","https://customerhappiness.ketto.org/portal/en/kb/articles/privacy-policy-7-8-2021","target","_blank"],[1,"cursor-pointer",3,"click"],[1,"captcha-note"],["href","https://policies.google.com/privacy","target","_blank"],["href","https://policies.google.com/terms","target","_blank"],[1,"multi-patient-info"],["theme","noPopover"],[3,"class",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"paytm-consent"],[1,"actions"],["mat-stroked-button","",3,"click"],["mat-button","",1,"exit",3,"click"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0,1),t.YNc(2,xi,2,0,"div",2),t.YNc(3,yi,8,2,"div",3),t.YNc(4,wi,1,1,"app-quickdonate-card",4),t.YNc(5,Ai,4,3,"div",5),t.YNc(6,Si,4,2,"div",6),t.YNc(7,Di,2,1,"div",5),t.YNc(8,Ui,2,1,"div",7),t.YNc(9,Fi,2,3,"div",8),t.TgZ(10,"form",9),t.NdJ("ngSubmit",function(){return e.submitPayment()}),t.YNc(11,Ei,2,3,"app-captcha-input",10),t.YNc(12,qi,4,0,"span",11),t.TgZ(13,"div",12),t._UZ(14,"app-input",13),t.ALo(15,"async"),t.ALo(16,"translatePipe"),t.ALo(17,"async"),t.ALo(18,"translatePipe"),t.ALo(19,"async"),t.ALo(20,"translatePipe"),t.TgZ(21,"mat-checkbox",14),t._uU(22),t.ALo(23,"async"),t.ALo(24,"translatePipe"),t.qZA()(),t.YNc(25,Li,7,17,"app-input",15),t.YNc(26,Ji,1,2,"app-phone-number-input-v2",16),t.YNc(27,Ri,2,0,"div",5),t.YNc(28,Qi,1,4,"app-input",17),t.YNc(29,Bi,1,4,"app-input",18),t.YNc(30,zi,1,4,"app-input",18),t.YNc(31,Yi,1,4,"app-input",19),t.YNc(32,Ki,7,8,"div",20),t.YNc(33,ji,2,4,"div",21),t.YNc(34,Vi,5,0,"div",22),t.YNc(35,$i,5,17,"div",23),t.YNc(36,Wi,2,5,"div",23),t.YNc(37,Xi,2,5,"div",24),t.YNc(38,to,2,3,"div",25),t.qZA(),t.TgZ(39,"div",26)(40,"app-user-info",27),t.NdJ("onBtnClick",function(){return e.submitPayment()})("onSubmitBulk",function(r){return e.submitBulk(r)})("isAnonymousChange",function(r){return e.isAnonymousChange(r)})("onEditClick",function(r){return e.showInputFields(r)}),t.qZA()(),t.YNc(41,no,5,0,"div",28),t.YNc(42,eo,4,0,"div",29),t.YNc(43,oo,21,26,"div",30),t.YNc(44,ao,8,0,"div",31),t.YNc(45,so,2,0,"div",32),t.qZA(),t.YNc(46,po,2,2,"ng-template",null,33,t.W1O),t.YNc(48,lo,8,0,"ng-template",null,34,t.W1O)),2&n&&(t.xp6(2),t.Q6J("ngIf",(null==e.vars.fundraiser?null:e.vars.fundraiser.is_multi_patient_campaign)&&"mini_story"===e.vars.pageName&&e.miniStory),t.xp6(1),t.Q6J("ngIf",!e.isReward&&!e.fixedAmount&&(e.isMobile||(null==e.config?null:e.config.mostDonors))&&!e.vars.selectedKCart&&!e.vars.showStoryOnFundraiser),t.xp6(1),t.Q6J("ngIf","v2"===e.vwo.quickDonate_fallback_p1_AB()&&e.isMobile),t.xp6(1),t.Q6J("ngIf",!(e.fixedAmount||e.vars.selectedKCart&&e.isMobile)),t.xp6(1),t.Q6J("ngIf",e.sipCause||(null==e.contributeDetails?null:e.contributeDetails.ngo_sip_campaign)),t.xp6(1),t.Q6J("ngIf",!(null!=e.params&&e.params.sip_story||e.isSipCause||null!=e.contributeDetails&&e.contributeDetails.ngo_sip_campaign)),t.xp6(1),t.Q6J("ngIf",e.vwo.otd_sip_AB()&&!e.vars.showKCart&&e.isMobile&&"inr"!==(null==e.currency?null:e.currency.toLowerCase())&&!(null!=e.activeSips&&e.activeSips.includes("medical"))&&(!(null!=e.params&&e.params.payment)||"form"===(null==e.params?null:e.params.payment))),t.xp6(1),t.Q6J("ngIf",null==e.contributeDetails?null:e.contributeDetails.insurance),t.xp6(1),t.Q6J("formGroup",e.amountForm)("hidden",!(!e.user||!e.inputFields||!e.user.phone_1||e.vars.isDummyEmail)),t.xp6(1),t.Q6J("ngIf",e.enableCaptha),t.xp6(1),t.Q6J("ngIf",e.config.only_inr&&(null==e.vars.fundraiser?null:e.vars.fundraiser.disable_foreign_donation)),t.xp6(2),t.Q6J("control",e.nameControl)("group",e.amountForm)("placeHolder",t.lcZ(15,49,t.lcZ(16,51,"Stories.donations.name.placeholder")))("fieldRequired",t.lcZ(17,53,t.lcZ(18,55,"Stories.bankTransfer.requiredField")))("errorMessage",t.lcZ(19,57,t.lcZ(20,59,"Stories.donations.name.error")))("isAnonymous",null==e.is_anonymous?null:e.is_anonymous.value),t.xp6(7),t.Q6J("hidden",e.isSipStory||(null==e.payment_config?null:e.payment_config.is_sip)),t.xp6(1),t.hij(" ",t.lcZ(23,61,t.lcZ(24,63,"Stories.donations.donationAnonymous"))," "),t.xp6(3),t.Q6J("ngIf",!e.vars.isAgent||!(null!=e.user&&e.user.email)),t.xp6(1),t.Q6J("ngIf",!e.vars.isAgent||!(null!=e.user&&e.user.phone_1)),t.xp6(1),t.Q6J("ngIf",e.config.utm_nudge&&e.paymentUtil.utmProceedClicked),t.xp6(1),t.Q6J("ngIf",e.address&&e.config.address),t.xp6(1),t.Q6J("ngIf",e.isPanCardExists&&(null==e.config?null:e.config.pan)),t.xp6(1),t.Q6J("ngIf",e.askPassport&&(null==e.config?null:e.config.passport)),t.xp6(1),t.Q6J("ngIf",e.askPincode&&(null==e.config?null:e.config.pincode)),t.xp6(1),t.Q6J("ngIf",e.config.nationality&&e.contributeDetails.ask_citizenship),t.xp6(1),t.Q6J("ngIf",e.vars.pageName.match("stories")&&!e.isMobile&&e.vwo.tip_desktop_story_AB()),t.xp6(1),t.Q6J("ngIf",("stories"===e.vars.pageName||e.vars.showStoryOnFundraiser)&&(null==e.vars.fundraiser||null==e.vars.fundraiser.beneficiary?null:e.vars.fundraiser.beneficiary.tax_benefit)&&!e.params.mini_story&&"INR"===e.currency&&!(e.vars.pageName.match("stories")&&!e.isMobile&&e.vwo.tip_desktop_story_AB())),t.xp6(1),t.Q6J("ngIf",!((e.showBulkDonationFor.test(null==e.params?null:e.params.utm_medium)||e.vars.showKCart)&&"stories"===e.vars.pageName&&e.isMobile||"mini_story"===e.vars.pageName&&e.vars.showBulkDonationForMiniStory.test(null==e.params?null:e.params.utm_source)||e.paymentService.selectedModeValue)),t.xp6(1),t.Q6J("ngIf",(e.showBulkDonationFor.test(null==e.params?null:e.params.utm_medium)||e.vars.showKCart)&&"stories"===e.vars.pageName&&e.isMobile&&!e.paymentService.selectedModeValue),t.xp6(1),t.Q6J("ngIf","mini_story"===e.vars.pageName&&e.vars.showBulkDonationForMiniStory.test(null==e.params?null:e.params.utm_source)&&!e.paymentService.selectedModeValue),t.xp6(1),t.Q6J("ngIf",e.paymentService.selectedModeValue),t.xp6(1),t.Q6J("hidden",!(e.user&&e.inputFields)||e.user&&!(null!=e.user&&e.user.phone_1)||e.vars.isDummyEmail),t.xp6(1),t.Q6J("amount",e.amount)("campaignId",e.campaignId)("currency",e.currency)("isLoading",e.isLoading)("config",e.config)("user",e.user)("disabled",e.amountForm.invali
1d)("payment_config",e.payment_config)("isAnonymous",null==e.contributeDetails?null:e.contributeDetails.anonymous),t.xp6(1),t.Q6J("ngIf",e.paymentIcons),t.xp6(1),t.Q6J("ngIf",190929===(null==e.vars.fundraiser?null:e.vars.fundraiser.id)||57877===(null==e.vars.fundraiser?null:e.vars.fundraiser.id)),t.xp6(1),t.Q6J("ngIf",!e.vars.thirdPartyApp&&"ngo"!==(null==e.params?null:e.params.entity_type)),t.xp6(1),t.Q6J("ngIf",!1),t.xp6(1),t.Q6J("ngIf",e.isMobile&&(null==e.vars.fundraiser?null:e.vars.fundraiser.is_multi_patient_campaign)&&"stories"===e.vars.pageName&&e.vwo.multi_patient_note_AB()))},dependencies:[l.O5,l.tP,l.Ov,p.u5,p._Y,p.JJ,p.JL,p.On,p.UX,p.sg,p.u,z.p9,z.oG,st.Fk,st.VQ,st.U0,A.a,$.s,kn,In,lt,le,de.SipPitchOtdComponent,fe,Ce.Y,rt.a,Oe.H,K,Me,M.N,Q.$,Ne,Pt,Xe,Ci,Oi.v],styles:['.grecaptcha-badge{visibility:hidden}  .contri-initiate-btn{margin-top:5px}.main-container[_ngcontent-%COMP%]{margin:0 auto}.main-container[_ngcontent-%COMP%]   .multi-patient-dropdown[_ngcontent-%COMP%]{margin-bottom:20px}.main-container[_ngcontent-%COMP%]   .extra-product-details[_ngcontent-%COMP%]{margin:8px 0 15px}.main-container[_ngcontent-%COMP%]   .tip-desktop[_ngcontent-%COMP%]{margin-top:16px}.main-container[_ngcontent-%COMP%]   .insurance-card[_ngcontent-%COMP%]{margin:12px auto 16px}.main-container[_ngcontent-%COMP%]   .tax_nudge[_ngcontent-%COMP%]{max-width:290px;margin:15px auto 10px;background-color:#ffea02;padding:9px;border-radius:30px;display:flex;align-items:center;justify-content:center}.main-container[_ngcontent-%COMP%]   .tax_nudge[_ngcontent-%COMP%]   .nudge_text[_ngcontent-%COMP%]{font-size:10px;font-weight:400;line-height:normal;color:#000;text-align:center}.main-container[_ngcontent-%COMP%]   .tax_nudge[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:18px}.main-container[_ngcontent-%COMP%]   app-intl-input[_ngcontent-%COMP%]     .mat-form-field-should-float .mat-form-field-label{transform:translateY(-1.2em) translate(1em) scale(.75) perspective(100px) translateZ(.001px)}.main-container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{-webkit-text-fill-color:inherit;font-size:calc(100% - 3px)}.main-container[_ngcontent-%COMP%]   .amount-btn[_ngcontent-%COMP%]{margin-top:5px}.main-container[_ngcontent-%COMP%]   .amount-btn[_ngcontent-%COMP%]   .approx[_ngcontent-%COMP%]{padding-top:12px}.main-container[_ngcontent-%COMP%]   .amount-btn[_ngcontent-%COMP%]   .approx[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-style:italic;color:#888;font-size:12px}.main-container[_ngcontent-%COMP%]   .amount-btn[_ngcontent-%COMP%]   .approx[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .main-container[_ngcontent-%COMP%]   .amount-btn[_ngcontent-%COMP%]   .approx[_ngcontent-%COMP%]   i.icon[_ngcontent-%COMP%]:before{color:var(--primary-color);font-weight:400}.main-container[_ngcontent-%COMP%]   .anonymous-check[_ngcontent-%COMP%]{height:16px;line-height:15px;font-size:12px;color:#6d6e71}.main-container[_ngcontent-%COMP%]   .tnc[_ngcontent-%COMP%]{font-size:12px;color:#888;font-style:italic}.main-container[_ngcontent-%COMP%]   .tnc[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--primary-color)}.main-container[_ngcontent-%COMP%]   .captcha-note[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:15px;color:#999;margin-top:12px}.main-container[_ngcontent-%COMP%]   .captcha-note[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--primary-color)}@media (max-width: 768px){.main-container[_ngcontent-%COMP%]   .tnc[_ngcontent-%COMP%]{text-align:center}}.main-container[_ngcontent-%COMP%]     app-button button{width:340px;font-size:20px}.main-container[_ngcontent-%COMP%]   .nationality[_ngcontent-%COMP%]{margin:10px auto}.main-container[_ngcontent-%COMP%]   .nationality.fmargin[_ngcontent-%COMP%]{margin:5px auto 10px}.main-container[_ngcontent-%COMP%]   .nationality.smargin[_ngcontent-%COMP%]{margin:20px auto 0}.main-container[_ngcontent-%COMP%]   .nationality[_ngcontent-%COMP%]   .nationality-group[_ngcontent-%COMP%]{display:flex;justify-content:center}.main-container[_ngcontent-%COMP%]   .nationality[_ngcontent-%COMP%]   .nationality-group[_ngcontent-%COMP%]   .nationality-radio-btn[_ngcontent-%COMP%]{color:#666;border:1px solid #ccc;font-size:12px;line-height:16px;padding:.5rem 7px 0;border-radius:30px;margin-right:10px}@media (max-width: 768px){.main-container[_ngcontent-%COMP%]   .nationality[_ngcontent-%COMP%]   .nationality-group[_ngcontent-%COMP%]   .nationality-radio-btn[_ngcontent-%COMP%]{color:#666;border:1px solid #ccc;font-size:11px;line-height:16px;padding:.5rem 7px 0;border-radius:30px;margin-right:5px}.main-container[_ngcontent-%COMP%]   .nationality[_ngcontent-%COMP%]   .nationality-group[_ngcontent-%COMP%]   .nationality-radio-btn[_ngcontent-%COMP%]     .mat-radio-label-content{padding-right:8px}}.main-container[_ngcontent-%COMP%]   .tip-card[_ngcontent-%COMP%]{margin-bottom:10px}.main-container[_ngcontent-%COMP%]   .sipPitch[_ngcontent-%COMP%]{width:100%;margin:25px auto 13px}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]{text-align:center;margin:12px;position:relative}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]{text-align:left;position:absolute;color:#fff;left:calc(50% - 145px);top:47px;width:290px;height:164px;background:rgba(0,0,0,.9019607843);border-radius:8px;padding:12px 16px;z-index:2}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]:after{content:"";position:absolute;width:13px;height:20px;top:-20px;
1left:calc(50% - 10px);border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:16px solid rgba(0,0,0,.9019607843)}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]   i.material-icons.close[_ngcontent-%COMP%]{text-align:right;position:absolute;font-size:14px;right:7px;top:7px;cursor:pointer}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{display:block}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:12px;font-size:14px;font-weight:400;line-height:20px}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   i.material-icons[_ngcontent-%COMP%]{margin-right:10px;color:#01bfbd;font-size:18px}.main-container[_ngcontent-%COMP%]   .memorial-check[_ngcontent-%COMP%]   .memorial-tooltip[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   i.material-icons.heart[_ngcontent-%COMP%]{color:#ed6f69}.main-container[_ngcontent-%COMP%]   .payment-gatway-sprite[_ngcontent-%COMP%], .main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .stripe[_ngcontent-%COMP%], .main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .mastercard[_ngcontent-%COMP%], .main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .visa[_ngcontent-%COMP%], .main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .safekey[_ngcontent-%COMP%]{background-image:url(https://kettocdn.gumlet.io/images/payment_gateways/payment-modes.png);height:14px;width:41px;background-repeat:no-repeat;display:inline-block;background-size:100% auto}.main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]{max-width:194px;height:21px;display:flex;justify-content:space-around;margin:0 auto}.main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .safekey[_ngcontent-%COMP%]{background-position:0px 2px}.main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .visa[_ngcontent-%COMP%]{background-position:0px -17px}.main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .mastercard[_ngcontent-%COMP%]{background-position:0px -31px}.main-container[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .stripe[_ngcontent-%COMP%]{background-position:0px -46px}@media (max-width: 992px){.main-container[_ngcontent-%COMP%]{padding:0 16px 90px;background:#ffffff}.main-container[_ngcontent-%COMP%]   .proceed-btn[_ngcontent-%COMP%]{position:fixed;box-shadow:0 0 7px #00000038;left:0;right:0;bottom:0;background:#ffffff;padding:0 5px;z-index:2}.main-container[_ngcontent-%COMP%]   .multi-patient-info[_ngcontent-%COMP%]{width:calc(100% + 32px);margin:20px 0 -30px -16px}  #formSubmit button{margin:5px 0;border-radius:5px}  .fundraiserPage .tip-card .wrapper{margin:20px 0}.tipDistribution[_ngcontent-%COMP%]{position:fixed;left:50%;transform:translate(-50%);bottom:60px;background:white;width:100%}}@media (min-width: 769px){.onpage-popup[_ngcontent-%COMP%]{width:365px;height:100%;overflow:hidden}.onpage-popup[_ngcontent-%COMP%]     .proceed-btn button{height:50px;margin-bottom:10px}  .fundraiserPage .tip-card .wrapper{margin:15px 0}}  .wrap-input-field .mat-form-field-wrapper{margin-bottom:-15px}  .wrap-input-field .mat-form-field-invalid.ng-invalid .mat-form-field-wrapper{margin-bottom:0!important}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.hint-txt[_ngcontent-%COMP%]{color:#999;font-style:italic;font-size:11px;font-weight:400}.accept-inr-donations[_ngcontent-%COMP%]{font-size:12px;font-style:italic;text-align:center;display:block;color:#444}.accept-inr-donations[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px;vertical-align:text-bottom}  .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#ddd!important}  app-amount-form .mat-form-field-infix input{font-size:17px;color:#333;line-height:22px}  app-amount-form .mat-form-field-infix .mat-form-field-label-wrapper{font-size:14px;color:#666;line-height:19px}  app-amount-form   .mat-icon:not(.edit-icon){font-size:17px!important;line-height:24px}  app-amount-form   .mat-error{color:#ff2501;font-size:14px;font-style:italic}
1  .fundraiserPage .tip-card .content{padding:0 3px}.paytm-consent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.paytm-consent[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .exit[_ngcontent-%COMP%]{background-color:#ff2501;color:#fff}.mat-radio-button.mat-accent[_ngcontent-%COMP%]   .mat-radio-inner-circle[_ngcontent-%COMP%]{color:var(--primary-color);background-color:var(--primary-color)}.mat-radio-button.mat-accent[_ngcontent-%COMP%]   .mat-radio-ripple[_ngcontent-%COMP%]   .mat-ripple-element[_ngcontent-%COMP%]{background-color:var(--primary-color)}.tipDistribution[_ngcontent-%COMP%]{font-size:11px;line-height:20px;text-align:center;color:#262626}@media (min-width: 769px){.sms-promo[_ngcontent-%COMP%]{padding:10px 16px}}.sms-promo[_ngcontent-%COMP%]     .mat-checkbox-layout{white-space:unset}']})),o})();var mo=d(7045);function _o(o,s){}function go(o,s){if(1&o&&(t.TgZ(0,"div",6)(1,"div",7),t.YNc(2,_o,0,0,"ng-template",8),t.TgZ(3,"div",9)(4,"span"),t._uU(5,"Contribute to:"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.qZA(),t.TgZ(8,"span",11),t._uU(9),t.ALo(10,"async"),t.ALo(11,"translatePipe"),t.TgZ(12,"i",12),t._uU(13,"check_circle"),t.qZA()()(),t.TgZ(14,"div"),t._UZ(15,"app-ketto-assured"),t.qZA()()()),2&o){const n=t.oxw(),e=t.MAs(6);t.xp6(2),t.Q6J("ngTemplateOutlet",e),t.xp6(5),t.Oqu(null==n.vars.beneficiary?null:n.vars.beneficiary.full_name),t.xp6(2),t.Oqu(t.lcZ(10,3,t.lcZ(11,5,"Stories.donations.beneficiary")))}}function ho(o,s){if(1&o&&(t.TgZ(0,"div",13),t._UZ(1,"img",14),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("src",null!=n.vars.fundraiser&&null!=n.vars.fundraiser.beneficiary&&null!=n.vars.fundraiser.beneficiary.avtar&&n.vars.fundraiser.beneficiary.avtar.cdn_path?null==n.vars.fundraiser||null==n.vars.fundraiser.beneficiary||null==n.vars.fundraiser.beneficiary.avtar?null:n.vars.fundraiser.beneficiary.avtar.cdn_path:n.vars.defaultImg,t.LSH)}}const fo=function(o){return["/stories/",o]},Co=function(){return{frm:"payment"}};function Oo(o,s){if(1&o&&(t.TgZ(0,"a",18),t._uU(1," View Story "),t.qZA()),2&o){const n=t.oxw(2);t.Q6J("routerLink",t.VKq(2,fo,n.params.ct))("queryParams",t.DdM(4,Co))}}function Po(o,s){if(1&o&&(t.TgZ(0,"div",15)(1,"div",16),t._uU(2),t.qZA(),t.YNc(3,Oo,2,5,"a",17),t.qZA()),2&o){const n=t.oxw();t.xp6(2),t.hij(" ","Support "+(null==n.vars.fundraiser||null==n.vars.fundraiser.campaigner?null:n.vars.fundraiser.campaigner.full_name)," "),t.xp6(1),t.Q6J("ngIf",n.params.ct)}}function bo(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-currency-dropdown",22),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.setCurrency(a))}),t.qZA()}if(2&o){const n=t.oxw(2);t.Q6J("currencies",n.supportedCurrencies)("selectedCurrency",n.currency)}}function Mo(o,s){if(1&o&&(t.TgZ(0,"div",19)(1,"div",20),t.YNc(2,bo,1,2,"app-currency-dropdown",21),t.qZA()()),2&o){const n=t.oxw();t.xp6(1),t.Udp("display","options"==n.params.payment?"none":"block"),t.xp6(1),t.Q6J("ngIf",n.supportedCurrencies)}}function xo(o,s){if(1&o&&(t.TgZ(0,"div",25),t._UZ(1,"img",26),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("alt","Profile Pic - "+(null==n.vars.beneficiary?null:n.vars.beneficiary.full_name)),t.uIk("data-src",null==n.fundraiser||null==n.fundraiser.media_beneficiary?null:n.fundraiser.media_beneficiary.cdn_path)}}function vo(o,s){1&o&&t._UZ(0,"i",27)}function yo(o,s){if(1&o&&(t.YNc(0,xo,2,2,"div",23),t.YNc(1,vo,1,0,"i",24)),2&o){const n=t.oxw();t.Q6J("ngIf",null==n.fundraiser?null:n.fundraiser.media_beneficiary),t.xp6(1),t.Q6J("ngIf",!(null!=n.fundraiser&&n.fundraiser.media_beneficiary))}}let wo=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"location",(0,t.f3M)(l.Ye)),(0,i.Z)(this,"actRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"fundraiser",void 0),(0,i.Z)(this,"isReward",void 0),(0,i.Z)(this,"selectedCurrency",void 0),(0,i.Z)(this,"screenName",void 0),(0,i.Z)(this,"showBeneficiary",void 0),(0,i.Z)(this,"contributeDetails",void 0),(0,i.Z)(this,"isStandAlone",void 0),(0,i.Z)(this,"userSelectionCurrency",new t.vpe),(0,i.Z)(this,"supportedCurrencies",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"params",void 0),(0,i.Z)(this,"currentUrl",void 0),(0,i.Z)(this,"domainUrl",void 0),(0,i.Z)(this,"isMobile",this.vars.isMobile)}ngOnInit(){this.getCurrencyDetails(),this.actRoute.queryParams.subscribe(n=>{this.params=n}),this.domainUrl=this.vars.domainData.url}getCurrencyDetails(){this.paymentUtil.supportedCurrencies.subscribe({next:n=>{n&&setTimeout(()=>{this.supportedCurrencies=n},0)}}),this.paymentUtil.paymentCurrency.subscribe({next:n=>this.currency=n})}getTitle(n,e){if(e)switch(e){case"c":return this.vars.isMobile?"":"Enter your card details";case"p":return"Payment using PayTM"}else switch(n){case"rd":return"Choose Reward amount";case"form":return"Choose a contribution amount";case"options":return"Choose payment option"}}setCurrency(n){this.paymentUtil.paymentCurrency.next(n.currency),this.userSelectionCurrency.emit(n)}back(){this.screenName===this.params.payment?this.vars.isMobile?(this.dialog.closeAll(),this.isStandAlone&&this.location.back()):this.dialog.open(R,{data:{contributeDetails:this.contributeDetails,currency:this.currency},width:"428px",panelClass:"confirmation-modal"}).componentInstance.cancelPayment.subscribe(()=>{this.isStandAlone&&this.location.back()}):(this.location.back(),this.paymentUtil.backButton.next(this.params),this.paymentUtil.cartSubs.forEac
1h(n=>n.unsubscribe()))}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-payment-header-stories"]],inputs:{fundraiser:"fundraiser",isReward:"isReward",selectedCurrency:"selectedCurrency",screenName:"screenName",showBeneficiary:"showBeneficiary",contributeDetails:"contributeDetails",isStandAlone:"isStandAlone"},outputs:{userSelectionCurrency:"userSelectionCurrency"},standalone:!0,features:[t.jDz],decls:7,vars:6,consts:[["class","beneficiary-details d-sm-none",4,"ngIf"],[1,"stories-header"],["class","stories-img-wrapper",4,"ngIf"],["class","title-stories",4,"ngIf"],["class","you-are-donating",4,"ngIf"],["profilePic",""],[1,"beneficiary-details","d-sm-none"],[1,"flex-div","align-items-center"],[3,"ngTemplateOutlet"],[1,"details"],[1,"bene-name"],[1,"heading"],[1,"material-icons","check-circle"],[1,"stories-img-wrapper"],["alt","",1,"left-img",3,"src"],[1,"title-stories"],[1,"main"],["class","sub-title",3,"routerLink","queryParams",4,"ngIf"],[1,"sub-title",3,"routerLink","queryParams"],[1,"you-are-donating"],[1,"currency-dropdown"],[3,"currencies","selectedCurrency","userSelectionCurrency",4,"ngIf"],[3,"currencies","selectedCurrency","userSelectionCurrency"],["class","profile-img",4,"ngIf"],["class","icon-user1",4,"ngIf"],[1,"profile-img"],["loading","lazy","alt","donor_img",3,"alt"],[1,"icon-user1"]],template:function(n,e){1&n&&(t.YNc(0,go,16,7,"div",0),t.TgZ(1,"header",1),t.YNc(2,ho,2,1,"div",2),t.YNc(3,Po,4,2,"div",3),t.YNc(4,Mo,3,3,"div",4),t.qZA(),t.YNc(5,yo,2,2,"ng-template",null,5,t.W1O)),2&n&&(t.Q6J("ngIf",e.showBeneficiary&&"form"==(null==e.params?null:e.params.payment)),t.xp6(1),t.ekj("white-header","options"==(null==e.params?null:e.params.payment)&&e.isMobile),t.xp6(1),t.Q6J("ngIf",e.params.ct),t.xp6(1),t.Q6J("ngIf",e.params.ct),t.xp6(1),t.Q6J("ngIf","lead"!==(null==e.params?null:e.params.type)))},dependencies:[l.O5,l.Ov,C.Bz,C.rH,A.a,mo.P,at.n],styles:["header[_ngcontent-%COMP%]{display:flex;background:#f7f8f8;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{text-align:center}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:var(--primary-color);font-weight:700}header.stories-header[_ngcontent-%COMP%]{height:96px;display:grid;grid-template-columns:76px 70% 12%;justify-content:space-between;grid-column-gap:10px}@media (max-width: 768px){header.stories-header[_ngcontent-%COMP%]{grid-template-columns:15% 65% 20%;grid-column-gap:5px}}header[_ngcontent-%COMP%]   .title-stories[_ngcontent-%COMP%]{align-self:center;font-family:Source Sans Pro;font-style:normal}header[_ngcontent-%COMP%]   .title-stories[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]{font-weight:700;font-size:17px;line-height:20px;text-transform:capitalize;color:#039695}header[_ngcontent-%COMP%]   .title-stories[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:20px;text-decoration-line:underline;color:gray;cursor:pointer}header[_ngcontent-%COMP%]   .stories-img-wrapper[_ngcontent-%COMP%]{width:76px;height:96px;display:flex;align-items:center;justify-content:center}@media (max-width: 768px){header[_ngcontent-%COMP%]   .stories-img-wrapper[_ngcontent-%COMP%]{width:50px;height:70px}}header[_ngcontent-%COMP%]   .stories-img-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;border-top-left-radius:4px}header[_ngcontent-%COMP%]   .you-are-donating[_ngcontent-%COMP%]{margin-top:20px}header[_ngcontent-%COMP%]   .you-are-donating[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px}@media (max-width: 768px){header[_ngcontent-%COMP%]   .you-are-donating[_ngcontent-%COMP%]{margin-top:0}}@media (min-width: 769px){header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;height:58px;margin-bottom:10px}header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:700;font-size:20px;padding:14px 0;color:var(--primary-color);margin:0 auto}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{top:10%;left:10px}header[_ngcontent-%COMP%]   .back-txt[_ngcontent-%COMP%]{display:none}  app-payment-header .currency-dropdown a{display:block;padding:8px}  .confirmation-modal .mat-dialog-container{border-radius:10px}  .sip-popup-container .mat-dialog-container{border-radius:8px;padding:0!important}}@media only screen and (max-width: 767px){  .sip-popup-container{max-width:320px!important}  .sip-popup-container .mat-dialog-container{border-radius:8px!important;padding:0!important}.beneficiary-details[_ngcontent-%COMP%]{padding:35px 15px 15px 20px;position:relative;background:#f7f7f7}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]{display:flex}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:48px}
1.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%;width:48px;height:48px}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .bene-name[_ngcontent-%COMP%]{font-weight:600;font-size:17px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;width:110px}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{margin-left:10px;line-height:19px}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.beneficiary-details[_ngcontent-%COMP%]   .flex-div[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .check-circle[_ngcontent-%COMP%]{color:#01bfbd;font-size:15px;vertical-align:middle;margin-left:4px}header.white-header[_ngcontent-%COMP%]{width:100%;display:inline-flex;justify-content:unset!important;background:#ffffff}header.white-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-align:center;display:block;margin:0 auto}header.white-header[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{width:auto!important}header[_ngcontent-%COMP%]{height:52px;padding:15px;justify-content:space-between}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:17px;padding:0;
1margin:0 0 0 30px;color:#444;font-weight:400}header[_ngcontent-%COMP%]     .mat-standard-chip{padding:0;min-height:23px;border-radius:4px!important}header[_ngcontent-%COMP%]     .currency-chip{height:22px!important}header[_ngcontent-%COMP%]     .currency-chip .mat-icon{right:0!important}header[_ngcontent-%COMP%]     .currency-chip .currency-select{width:56px!important}header[_ngcontent-%COMP%]     .mat-chip-list-wrapper{margin:0}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]{display:flex}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-transform:uppercase;margin-top:-10px;padding-right:3px;width:auto;font-weight:700}header[_ngcontent-%COMP%]   .action-icons[_ngcontent-%COMP%]     .mat-button-wrapper{color:var(--primary-color)!important}  .currency-dropdown .mat-chip.mat-standard-chip{background:transparent;border:.75px solid #949494;border-radius:0}  .mat-menu-item{line-height:38px!important;height:38px!important}.you-are-donating[_ngcontent-%COMP%]{display:flex;font-weight:600;align-items:center}.back-text[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;vertical-align:inherit;width:18px;font-weight:700}  .back-text{font-weight:700}}"]})),o})();function ko(o,s){if(1&o&&t._UZ(0,"app-currency-icon",9),2&o){const n=t.oxw(3);t.Q6J("currency",n.currency)}}function Zo(o,s){if(1&o&&(t.TgZ(0,"div",7),t.YNc(1,ko,1,1,"app-currency-icon",8),t._uU(2),t.qZA()),2&o){const n=t.oxw().$implicit,e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.currency),t.xp6(1),t.hij(" ",null==n?null:n.amount," ")}}function To(o,s){1&o&&(t.TgZ(0,"div",7)(1,"span"),t._uU(2,"SOLD OUT"),t.qZA()())}function Ao(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div")(1,"div",4),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.setAmount(r))}),t.YNc(2,Zo,3,2,"div",5),t.YNc(3,To,3,0,"div",5),t.TgZ(4,"div",3),t._uU(5),t.qZA(),t._UZ(6,"div",6),t.qZA()()}if(2&o){const n=s.$implicit;t.xp6(1),t.ekj("fr-ended",!n.status),t.Q6J("matRippleDisabled",!n.status),t.xp6(1),t.Q6J("ngIf",n.status),t.xp6(1),t.Q6J("ngIf",!n.status),t.xp6(2),t.Oqu(n.descp),t.xp6(1),t.Q6J("innerHTML",n.notes,t.oJD)}}let Io=(()=>{class o{constructor(){(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"rewards",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"campaignId",void 0)}setAmount(n,e){if(e){const a={amount_from:""};this.trackingEvents(n),this.paymentUtil.selectedReward.next(a),this.router.navigate([],{queryParams:{payment:"form"},queryParamsHandling:"merge"})}else n.status&&(this.paymentUtil.selectedReward.next(n),this.router.navigate([],{queryParams:{payment:"form"},queryParamsHandling:"merge"}))}trackingEvents(n){const e={Step:0,id:this.campaignId,Amount:n.amount,Reward:n.id,Type_AB:"typeAB","Page Name":this.vars.campaignType||"",iso_currency:this.currency,Recurring:!!n.recurring};this.vars.fundraiser&&(e["Custom Tag"]=this.vars.fundraiser.custom_tag),this.events.claverTapPush("New Contribution",e)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-rewards"]],inputs:{rewards:"rewards",currency:"currency",campaignId:"campaignId"},standalone:!0,features:[t.jDz],decls:5,vars:1,consts:[[1,"main-container"],[4,"ngFor","ngForOf"],["matRipple","",1,"item",3,"click"],[1,"title"],["matRipple","",1,"item",3,"matRippleDisabled","click"],["class","amount",4,"ngIf"],[1,"desc",3,"innerHTML"],[1,"amount"],[3,"currency",4,"ngIf"],[3,"currency"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,Ao,7,7,"div",1),t.TgZ(2,"div",2),t.NdJ("click",function(){return e.setAmount("",!0)}),t.TgZ(3,"div",3),t._uU(4,"ENTER YOUR OWN AMOUNT"),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("ngForOf",e.rewards))},dependencies:[l.O5,l.ax,D.si,D.wG,M.N],styles:[".main-container[_ngcontent-%COMP%]   .fr-ended[_ngcontent-%COMP%]{opacity:.4;cursor:not-allowed}.main-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f8f8f8;border-radius:3px;box-shadow:0 7px 10px #00000026;cursor:pointer;overflow:hidden}.main-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .amount[_ngcontent-%COMP%]{font-size:21px;font-weight:700;-webkit-text-fill-color:#000}.main-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:600;margin:0 0 2px;color:var(--primary-color)}.main-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{color:#555}"]})),o})();var So=d(4497),No=d(4681),Do=d(2340),xt=d(7139),vt=d(5166),yt=d(6896);function Uo(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.selectTopBank(r))}),t.qZA(),t.TgZ(2,"div"),t._uU(3),t.qZA()()}if(2&o){const n=s.$implicit,e=t.oxw();
1t.xp6(1),t.Tol(n),t.ekj("active",e.banksName.value==n),t.Q6J("disabled",e.vars.isOrderLoading),t.xp6(2),t.Oqu(e.topBank[n])}}function Fo(o,s){if(1&o&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&o){const n=s.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.hij(" ",e.option[n]," ")}}function Eo(o,s){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-utm-wallet-hundred",12),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("donation",null==n.cartDetails?null:n.cartDetails.donated_amount)}}let qo=(()=>{class o{constructor(){(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"option",void 0),(0,i.Z)(this,"topBank",void 0),(0,i.Z)(this,"isOrderLoading",void 0),(0,i.Z)(this,"cartDetails",void 0),(0,i.Z)(this,"dataEmit",new t.vpe),(0,i.Z)(this,"netBankForm",void 0),(0,i.Z)(this,"banksName",void 0),(0,i.Z)(this,"searchForm",void 0),(0,i.Z)(this,"searchText",void 0),(0,i.Z)(this,"bankList",void 0)}ngOnInit(){this.netBankForm=new p.cw({banksName:this.banksName=new p.NI("",[p.kI.required])}),this.searchForm=new p.cw({searchText:this.searchText=new p.NI("")})}getBankNames(n){return n?this.util.sortArray(Object.keys(n)):null}selectTopBank(n){this.banksName.setValue(n)}submitTopBank(){this.netBankForm.valid?this.dataEmit.emit({mode:"NB",mode_value:this.banksName.value}):this.util.checkValidForm(this.netBankForm)}search(n){this.bankList||(this.bankList=this.option),this.option=this.util.filterObject(this.bankList,n)}resetSearch(){this.search(""),this.searchForm.controls.searchText.setValue("")}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-netbanking"]],inputs:{option:"option",topBank:"topBank",isOrderLoading:"isOrderLoading",cartDetails:"cartDetails"},outputs:{dataEmit:"dataEmit"},standalone:!0,features:[t.jDz],decls:10,vars:11,consts:[[1,"top-banks"],["class","bank-icons",4,"ngFor","ngForOf"],[1,"bank-dropdown"],[3,"formGroup","ngSubmit"],["placeholder","Select Bank",3,"formControl","disabled","openedChange"],["inputType","text","placeHolder","Search",1,"search-input",3,"control","group","OnChange"],["class","bankDropdownList",3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["label","proceed to contribute",3,"btnClass","amount","isOrderLoading"],[1,"bank-icons"],["type","button","mat-stroked-button","",3,"disabled","click"],[1,"bankDropdownList",3,"value"],["type","payment",3,"donation"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,Uo,4,7,"div",1),t.qZA(),t.TgZ(2,"div",2)(3,"form",3),t.NdJ("ngSubmit",function(){return e.submitTopBank()}),t.TgZ(4,"mat-form-field")(5,"mat-select",4),t.NdJ("openedChange",function(){return e.resetSearch()}),t.TgZ(6,"app-input",5),t.NdJ("OnChange",function(r){return e.search(r)}),t.qZA(),t.YNc(7,Fo,2,2,"mat-option",6),t.qZA()(),t.YNc(8,Eo,2,1,"div",7),t._UZ(9,"app-donate-btn",8),t.qZA()()),2&n&&(t.xp6(1),t.Q6J("ngForOf",e.getBankNames(e.topBank)),t.xp6(2),t.Q6J("formGroup",e.netBankForm),t.xp6(2),t.Q6J("formControl",e.banksName)("disabled",e.vars.isOrderLoading),t.xp6(1),t.Q6J("control",e.searchText)("group",e.searchForm),t.xp6(1),t.Q6J("ngForOf",e.getBankNames(e.option)),t.xp6(1),t.Q6J("ngIf",e.paymentUtil.utmProceedClicked),t.xp6(1),t.Q6J("btnClass","submit-payment")("amount",null==e.cartDetails?null:e.cartDetails.donated_amount)("isOrderLoading",e.isOrderLoading||e.vars.isOrderLoading))},dependencies:[l.O5,l.ax,p.UX,p._Y,p.JJ,p.JL,p.oH,p.sg,f.ot,f.lW,U.lN,U.KE,H.LD,H.gD,D.ey,rt.a,K,Q.$],styles:[".banks[_ngcontent-%COMP%], .top-banks[_ngcontent-%COMP%]   .NB_SBI[_ngcontent-%COMP%], .top-banks[_ngcontent-%COMP%]   .NB_KOTAK[_ngcontent-%COMP%], .top-banks[_ngcontent-%COMP%]   .NB_ICICI[_ngcontent-%COMP%], .top-banks[_ngcontent-%COMP%]   .NB_HDFC[_ngcontent-%COMP%], .top-banks[_ngcontent-%COMP%]   .NB_AXIS[_ngcontent-%COMP%]{width:90px;height:90px;background-image:url(/assets/images/payment/top-netbanking.png);background-size:auto 100%;display:block;background-repeat:no-repeat}.top-banks[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.top-banks[_ngcontent-%COMP%]   .bank-icons[_ngcontent-%COMP%]{margin-left:10px;width:26%;height:120px;
1display:flex;align-items:center;flex-direction:column}.top-banks[_ngcontent-%COMP%]   .NB_AXIS[_ngcontent-%COMP%]{background-position:-102px 0}.top-banks[_ngcontent-%COMP%]   .NB_HDFC[_ngcontent-%COMP%]{background-position:0 0}.top-banks[_ngcontent-%COMP%]   .NB_ICICI[_ngcontent-%COMP%]{background-position:-205px 0}.top-banks[_ngcontent-%COMP%]   .NB_KOTAK[_ngcontent-%COMP%]{background-position:-410px 0}.top-banks[_ngcontent-%COMP%]   .NB_SBI[_ngcontent-%COMP%]{background-position:-307px 0}.top-banks[_ngcontent-%COMP%]   .is-active[_ngcontent-%COMP%]{background:#d7efef}.bank-dropdown[_ngcontent-%COMP%]{margin-top:40px;text-align:center}  app-input.search-input mat-form-field .mat-form-field-wrapper{margin:0 16px -15px}@media (max-width: 768px){.bank-dropdown[_ngcontent-%COMP%]     .mat-form-field-infix{min-width:420px}}@media (min-width: 767px){.bank-dropdown[_ngcontent-%COMP%]     .mat-form-field-infix{min-width:380px}}.active[_ngcontent-%COMP%]{background:transparent;background-color:#d7efef}"]})),o})();var et=d(6851);function Lo(o,s){1&o&&(t.TgZ(0,"div",18)(1,"h2"),t._uU(2,"ENTER YOUR CARD DETAILS"),t.qZA(),t.TgZ(3,"div",19),t._UZ(4,"i",20),t.TgZ(5,"span"),t._uU(6,"100% SECURE"),t.qZA()()())}function Jo(o,s){1&o&&t._UZ(0,"div",24)}const Ro=function(o,s){return{lastOrderData:o,selectetCardOpt:s}},Qo=function(o,s,n){return{onInputChange:o,onChange:s,onSubmit:n}};function Bo(o,s){if(1&o&&(t.TgZ(0,"div",21),t.YNc(1,Jo,1,0,"div",22),t._UZ(2,"app-component-loader",23),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.isMobile),t.xp6(1),t.Q6J("inputs",t.WLB(3,Ro,n.lastOrderData,n.selectetCardOpt))("outputs",t.kEZ(6,Qo,n.last2InputChange,n.onCardOptChange,n.onOneTapSubmit))}}function zo(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid Card"),t.qZA())}function Yo(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"This card is not supported"),t.qZA())}function Ho(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid Date"),t.qZA())}function Ko(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"mat-form-field",25)(1,"mat-label"),t._uU(2,"Exp Date"),t.qZA(),t.TgZ(3,"input",26),t.NdJ("blur",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.validateCardExp(a))}),t.qZA(),t.YNc(4,Ho,2,0,"mat-error",7),t.qZA()}if(2&o){const n=t.oxw();t.xp6(4),t.Q6J("ngIf",n.cardExpiry.invalid&&n.cardExpiry.touched)}}function jo(o,s){1&o&&t._UZ(0,"span",27)}function Vo(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid Secret Code"),t.qZA())}function Go(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"mat-form-field",28)(1,"input",29),t.NdJ("blur",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.validateCardCvv(a))}),t.qZA(),t.YNc(2,Vo,2,0,"mat-error",7),t._UZ(3,"div",30),t.qZA()}if(2&o){const n=t.oxw();t.xp6(1),t.Q6J("mask",n.cardCvvMask),t.xp6(1),t.Q6J("ngIf",n.cardCvv.invalid&&n.cardCvv.touched)}}function $o(o,s){1&o&&t._UZ(0,"span",31)}function Wo(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Field required"),t.qZA())}function Xo(o,s){if(1&o&&(t.TgZ(0,"mat-form-field",32),t._UZ(1,"input",33),t.YNc(2,Wo,2,0,"mat-error",7),t.qZA()),2&o){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.zipcode.hasError("required")&&n.zipcode.touched)}}function ta(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Field required"),t.qZA())}function na(o,s){1&o&&(t.TgZ(0,"span")(1,"b"),t._uU(2,"Note:"),t.qZA(),t._uU(3,' On clicking "Contribute" button you might be taken to your bank\'s website for 3D secure authentication'),t.qZA())}function ea(o,s){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-utm-wallet-hundred",38),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("donation",(n.cartDetails?null==n.cartDetails?null:n.cartDetails.donated_amount:null==n.cartResponse?null:n.cartResponse.donated_amount)||n.amount)}}function ia(o,s){1&o&&(t.TgZ(0,"div",39)(1,"b"),t._uU(2,"Note:"),t.qZA(),t._uU(3,' This card will be linked to the subscription and future payments will be charged automatically. On clicking "Pledge" button you might be taken to your bank\'s website for 3D secure authentication.'),t.qZA())}function oa(o,s){if(1&o&&(t.TgZ(0,"div",34)(1,"div",35),t.YNc(2,na,4,0,"span",7),t.qZA(),t.YNc(3,ea,2,1,"div",7),t._UZ(4,"app-donate-btn",36),t.YNc(5,ia,4,0,"div",37),t.qZA()),2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("hidden",n.showOneTapPay&&2!==n.selectetCardOpt),t.xp6(1),t.Q6J("ngIf","recuring"!==n.type),t.xp6(1),t.Q6J("ngIf",n.paymentUtil.utmProceedClicked),t.xp6(1),t.Q6J("label",n.donateBtnLabel)("hideAmount",n.hidePledgeBtnAmount)("btnClass",n.btnClass)("amount",(n.cartDetails?null==n.cartDetails?null:n.cartDetails.donated_amount:null==n.cartResponse?null:n.cartResponse.donated_amount)||n.amount)("isOrderLoading",n.isOrderLoading||n.vars.isOrderLoading)("type",n.type),t.xp6(1),t.Q6J("ngIf","recuring"===n.type)}}function aa(o,s){1&o&&(t.TgZ(0,"div"),t._UZ(1,"span",41)(2,"span",42)(3,"span",43),t.qZA())}function sa(o,s){if(1&o&&(t.TgZ(0,"div",40),t.YNc(1,aa,4,0,"div",7),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngIf","recuring"!==n.type)}}const ra=function(o){return[o]};let ca=(()=>{class o{constructor(){(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"location",(0,t.f3M)(l.Ye)),(0,i.Z)(this,"script",(0,t.f3M)(tt.$)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"amount",void 0),(0,i.Z)(this,"option",void 0),(0,i.Z)(this,"isOrderLoading",void 0),(0,i.Z)(this,"showBtn",!0),(0,i.Z)(this,"showZip",void 0),(0,i.Z)(this,"fullName",void 0),(0,i.Z)(this,"showBackBtn",void 0),(0,i.Z)(this,"type",void 0),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"btnClass","submit-payment"),(0,i.Z)(this,"donateBtnLabel","Contribute"),(0,i.Z)(this,"hidePledgeBtnAmount",void 0),(0,i.Z)(this,"showPrefMethodText",void 0),(0,i.Z)(this,"cartDetails",void 0),(0,i.Z)(this,"dataEmit",new t.vpe),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"cartResponse",void 0),(0,i.Z)(this,"cardForm",void 0),(0,i.Z)(this,"cardNumber",void 0),(0,i.Z)(this,"cardExpiry",void 0),(0,i.Z)(this,"cardCvv",void 0),(0,i.Z)(this,"nameOnCard",void 0),(0,i.Z)(this,"zipcode",void 0),(0,i.Z)(this,"expiryNumber",void 0),(0,i.Z)(this,"cardType",void 0),(0,i.Z)(this,"card",void 0),(0,i.Z)(this,"cardDetails",void 0),(0,i.Z)(this,"cardNumberMask","0000 0000 0000 0000"),(0,i.Z)(this,"cardPrefix",""),(0,i.Z)(this,"cardCvvMask","000"),(0,i.Z)(this,"addedValidCard",void 0),(0,i.Z)(this,"addedCard",void 0),(0,i.Z)(this,"lastOrderInfo",{show:!1,last4:"",customer_id:"",mode_value:""}),(0,i.Z)(this,"userdata",void 0),(0,i.Z)(this,"showOneTapPay",!1),(0,i.Z)(this,"selectetCardOpt",1),(0,i.Z)(this,"lastOrderData",void 0),(0,i.Z)(this,"enteredLast2",void 0),(0,i.Z)(this,"subs",[]),(0,i.Z)(this,"onCardOptChange",n=>{this.selectetCardOpt=n}),(0,i.Z)(this,"last2InputChange",n=>{this.enteredLast2=n}),(0,i.Z)(this,"onOneTapSubmit",n=>{this.onSubmit()})}ngOnInit(){this.script.loadScript("card-validator").then(()=>this.getCartDetails())}ngOnChanges(n){this.cardForm||this.formInit(),n&&n.showZip&&(n.showZip.currentValue?this.cardForm.addControl("zipcode",this.zipcode=new p.NI("",[p.kI.required])):this.cardForm.get("zipcode")&&this.cardForm.removeControl("zipcode")),n?.currency?.currentValue&&(this.lastOrderData=this.vars.lastOrderInfo.getValue(),this.vars.isLoggedIn$.getValue()&&this.lastOrderData?.last4&&"INR"!==this.lastOrderData?.iso_currency&&"INR"!==this.currency?(this.showOneTapPay=!0,this.vars.oneTapPayError.subscribe(a=>{"limit_exceed"===a&&(this.showOneTapPay=!1)})):this.showOneTapPay=!1)}formInit(){this.cardForm=new p.cw({cardNumber:this.cardNumber=new p.NI("",[p.kI.required]),cardExpiry:this.cardExpiry=new p.NI("",[p.kI.required,p.kI.minLength(4)]),nameOnCard:this.nameOnCard=new p.NI("",[p.kI.required]),cardCvv:this.cardCvv=new p.NI("",[p.kI.required])}),this.vars.userData.subscribe({next:n=>{n&&(this.userdata=n,this.nameOnCard.setValue(n.full_name))}})}resetLastOrderValues(n){this.lastOrderInfo.show&&(this.lastOrderInfo.show=!1,this.cardNumber.setValue(""),this.cardPrefix="",this.cardNumberMask="0000 0000 0000 0000",n.target.value="")}validateCardNumber(n){if(this.resetLastOrderValues(n),n.target.value&&typeof cardValidator<"u"){this.card=cardValidator(n.target.value),this.cardDetails=this.card.getCardDetails(),this.cardNumberMask=this.addMask(this.cardDetail
1s.max_length,this.cardDetails.gaps),this.cardDetails.cvv_length?(this.cardCvv||this.cardForm.addControl("cardCvv",this.cardCvv=new p.NI("",[p.kI.required])),this.cardCvvMask=this.addMask(this.cardDetails.cvv_length[this.cardDetails.cvv_length.length-1])):(this.cardForm.removeControl("cardCvv"),this.cardCvv=void 0);for(const e of Object.keys(this.option)){if(this.addedCard=this.cardDetails.card_type,this.cardDetails.card_type.toUpperCase().includes(e)){this.addedValidCard=e;break}this.addedValidCard=null}}}validateCardNumberOnBlur(n){this.resetLastOrderValues(n),n.target.value&&this.addValidations(this.cardDetails)}validateCardExp(n,e){this.expiryNumber=e?n:n.target.value;const a=this.expiryNumber?.replace(/\s/g,""),r=a?.split("/");this.expiryNumber&&this.card&&(r.length>1&&2===r[1].length?(r[1]="20"+r[1],this.addErrorInControl("cardExpiry",this.card.validateExpiry(r.join("/")))):this.addErrorInControl("cardExpiry",this.card.validateExpiry(a)))}validateCardCvv(n){n?.target?.value&&this.card&&this.addErrorInControl("cardCvv",this.card.validateCvv(n.target.value))}addValidations(n){this.addErrorInControl("cardNumber",n.valid,"cardNumber"),this.cardCvv&&(this.cardCvv.setValidators([p.kI.required,p.kI.minLength(n.cvv_length[0]),p.kI.maxLength(n.cvv_length[n.cvv_length.length-1])]),this.cardCvv.updateValueAndValidity())}addErrorInControl(n,e,a){e?(this.cardForm.controls[n].setErrors({invalid:null}),this.cardForm.controls[n].setValidators([p.kI.required]),this.cardForm.controls[n].updateValueAndValidity()):this.cardForm.controls[n].setErrors({invalid:!0})}addMask(n,e){let a="";for(let r=1;r<=n;r++)a=a.concat("0");if(e)for(let r=0;r<e.length;r++)a=a.substr(0,e[r]+r)+" "+a.substr(e[r]+r);return a}getCartDetails(){this.paymentUtil.cartResponse.subscribe({next:n=>{this.cartResponse=n,this.cartResponse&&(this.nameOnCard.setValue(this.cartResponse.donor_name),this.subs.push(this.vars.lastOrderInfo.subscribe({next:e=>{e&&"CARD"===e.mode&&this.cartResponse?.currency===e.iso_currency&&"recuring"===this.type&&"INR"!==e.iso_currency&&e.customer_id&&!this.cartResponse?.skipCardPrefil&&(this.lastOrderInfo=e,this.lastOrderInfo.show=!0,this.cardNumberMask="0000",this.cardNumber.setValue(+this.lastOrderInfo.last4),this.cardPrefix="**** **** **** ")}})))}})}onSubmit(){if(this.showOneTapPay&&1===this.selectetCardOpt){if(2!==this.enteredLast2?.length||!this.vars.numberOnlyRegex.test(this.enteredLast2))return void this.vars.oneTapPayError.next("invalid");const n={oneTapPay:!0,mode:"CARD",card_name_fill:this.userdata?.full_name||"",card_no:`${this.lastOrderData?.last4?.slice(0,2)}${this.enteredLast2}`,mode_value:this.lastOrderData?.mode_value,customer_id:this.lastOrderData?.customer_id};this.dataEmit.emit(n)}else{if(this.lastOrderInfo.show||this.validateCardExp(this.expiryNumber,!0),!this.addedValidCard){const n={eventName:"invalid_mode_value",event_type:"payment",info_1:this.cardNumber.value.substring(0,4)};return this.events.sendSystemEvent(n).subscribe(e=>e),this.cardForm.controls.cardNumber.setErrors({nosupport:!0}),!1}if(this.cardForm.valid||this.lastOrderInfo.show){const n={mode:"CARD",card_name_fill:this.userdata?.full_name||""};if(this.lastOrderInfo.show)n.mode_value=this.lastOrderInfo.mode_value,n.customer_id=this.lastOrderInfo.customer_id;else{const e=this.expiryNumber?.replace(/\s+/g,"")?.trim()?.split("/");n.mode_value=this.addedValidCard?.toUpperCase(),n.card_month_fill=e?.[0],n.card_year_fill=e?.[1],n.card_number_fill=this.cardNumber.value.toString().trim(),n.card_cvv_fill=this.cardCvv.value}this.showZip&&(n.donor_pincode=this.zipcode.value),this.dataEmit.emit(n)}else this.util.checkValidForm(this.cardForm)}}ngOnDestroy(){this.subs.forEach(n=>n.unsubscribe())}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-cards"]],inputs:{amount:"amount",option:"option",isOrderLoading:"isOrderLoading",showBtn:"showBtn",showZip:"showZip",fullName:"fullName",showBackBtn:"showBackBtn",type:"type",currency:"currency",btnClass:"btnClass",donateBtnLabel:"donateBtnLabel",hidePledgeBtnAmount:"hidePledgeBtnAmount",showPrefMethodText:"showPrefMethodText",cartDetails:"cartDetails"},outputs:{dataEmit:"dataEmit"},standalone:!0,features:[t._Bn([{provide:et.vc,useValue:et.um}]),t.TTD,t.jDz],decls:23,vars:23,consts:[[1,"card-wrapper"],["class","heading",4,"ngIf"],[3,"formGroup","ngSubmit"],["class","otd-card-onetap",4,"ngIf"],[1,"card-fields",3,"hidden"],[1,"full-width"],["matInput","","placeholder","1234 XXXX XXXX XXXX","formControlName","cardNumber","id","cc-number","type","tel",3,"prefix","mask","input","blur"],[4,"ngIf"],["data-bg","/assets/images/payment/sprite-accepted-cards.png"],["class","exp-date",4,"ngIf"],["class","space-card",4,"ngIf"],["class","cvv",4,"ngIf"],["class","space-card-zip",4,"ngIf"],["class","Zipcode",4,"ngIf"],["matInput","","placeholder","Name on Card","formControlName","nameOnCard","id","cc-name-on-card","type","text"],["data-bg","/assets/images/wallets.png?w=auto",1,"chip-img"],["class","btn-wrapper",4,"ngIf"],["class","payment-gateways",4,"ngIf"],[1,"heading"],[1,"secure"],[1,"icon-trust"],[1,"otd-card-onetap"],["class","sp-line",4,"ngIf"],["selector","app-otd-card-onetap",3,"inputs","outputs"],[1,"sp-line"],[1,"exp-date"],["matInput","","placeholder","MM / YYYY","formControlName","cardExpiry","id","cc-exp-date","type","tel","mask","00 / 0000","autocomplete","false",3,"blur"],[1,"space-card"],[1,"cvv"],["matInput","","placeholder","CVV / CVC","formControlName","cardCvv","id","cc-cvc","type","password","autocomplete","new-password",3,"mask","blur"],[1,"cvv-icon"],[1,"space-card-zip"],[1,"Zipcode"],["matInput","","placeholder","Zipcode","formControlName","zipcode","id","cc-zip","type","text"],[1,"btn-wrapper"],[1,"note",3,"hidden"],[3,"label","hideAmount","btnClass","amount","isOrderLoading","type"],["class","note",4,"ngIf"],["type","payment",3,"donation"],[1,"n
1ote"],[1,"payment-gateways"],["data-bg","/assets/images/payment-modes.png?w=auto",1,"amex-exprs"],["data-bg","/assets/images/payment-modes.png?w=auto",1,"visa-card"],["data-bg","/assets/images/payment-modes.png?w=auto",1,"mastercard-img"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,Lo,7,0,"div",1),t.TgZ(2,"form",2),t.NdJ("ngSubmit",function(){return e.onSubmit()}),t.YNc(3,Bo,3,10,"div",3),t.TgZ(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),t._uU(7,"Card Number"),t.qZA(),t.TgZ(8,"input",6),t.NdJ("input",function(r){return e.validateCardNumber(r)})("blur",function(r){return e.validateCardNumberOnBlur(r)}),t.qZA(),t.YNc(9,zo,2,0,"mat-error",7),t.YNc(10,Yo,2,0,"mat-error",7),t._UZ(11,"div",8),t.qZA(),t.YNc(12,Ko,5,1,"mat-form-field",9),t.YNc(13,jo,1,0,"span",10),t.YNc(14,Go,4,2,"mat-form-field",11),t.YNc(15,$o,1,0,"span",12),t.YNc(16,Xo,3,1,"mat-form-field",13),t.TgZ(17,"mat-form-field"),t._UZ(18,"input",14),t.YNc(19,ta,2,0,"mat-error",7),t._UZ(20,"div",15),t.qZA()(),t.YNc(21,oa,6,10,"div",16),t.qZA(),t.YNc(22,sa,2,1,"div",17),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngIf",e.isMobile&&!e.showOneTapPay&&"INR"===e.currency&&"recuring"!==e.type),t.xp6(1),t.Q6J("formGroup",e.cardForm),t.xp6(1),t.Q6J("ngIf",e.showOneTapPay),t.xp6(1),t.Q6J("hidden",e.showOneTapPay&&2!==e.selectetCardOpt),t.xp6(4),t.Q6J("prefix",e.cardPrefix)("mask",e.cardNumberMask),t.xp6(1),t.Q6J("ngIf",e.cardNumber.invalid&&e.cardNumber.touched&&!e.cardNumber.hasError("nosupport")),t.xp6(1),t.Q6J("ngIf",e.cardNumber.hasError("nosupport")),t.xp6(1),t.Tol(null==e.cardDetails?null:e.cardDetails.card_type),t.xp6(1),t.Q6J("ngIf",!(null!=e.lastOrderInfo&&e.lastOrderInfo.show)),t.xp6(1),t.Q6J("ngIf",!(null!=e.lastOrderInfo&&e.lastOrderInfo.show)),t.xp6(1),t.Q6J("ngIf",e.cardCvv&&!(null!=e.lastOrderInfo&&e.lastOrderInfo.show)),t.xp6(1),t.Q6J("ngIf",e.showZip),t.xp6(1),t.Q6J("ngIf",e.showZip&&!(null!=e.lastOrderInfo&&e.lastOrderInfo.show)),t.xp6(1),t.Tol(t.VKq(21,ra,e.isMobile?"full-width":"half-width")),t.xp6(2),t.Q6J("ngIf",e.nameOnCard.hasError("required")&&e.nameOnCard.touched),t.xp6(2),t.Q6J("ngIf",e.showBtn),t.xp6(1),t.Q6J("ngIf",e.showBtn))},dependencies:[l.O5,p.UX,p._Y,p.Fj,p.JJ,p.JL,p.sg,p.u,U.lN,U.TO,U.KE,U.hX,Y.c,Y.Nt,et.yI,et.hx,$.s,K,Q.$],styles:[".payment-gateway-sprite[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .razorpay[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .rupay-logo[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .maestro-logo[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .payubiz[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .mastercard-img[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .visa-card[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .amex-exprs[_ngcontent-%COMP%]{background-size:100% auto;width:75px;height:30px;display:inline-block}.card-type-sprite[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .laser[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .sodexo[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .diners_club_international[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .diners_club_carte_blanche[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .jcb[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .rupay[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .cvv-icon[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .discover[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .visa_electron[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .maestro[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .mastercard[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .amex[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .visa[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background-size:100% auto;width:38px;height:24px;display:inline-block}
1.card-wrapper[_ngcontent-%COMP%]   .card-fields[_ngcontent-%COMP%]{border-radius:6px}.card-wrapper[_ngcontent-%COMP%]   .card-fields[_ngcontent-%COMP%]     mat-checkbox .mat-checkbox-layout{display:block}.card-wrapper[_ngcontent-%COMP%]   .card-fields[_ngcontent-%COMP%]     mat-checkbox .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:var(--primary-color)}.card-wrapper[_ngcontent-%COMP%]   .card-fields[_ngcontent-%COMP%]     mat-checkbox .mat-radio-button.mat-primary.mat-radio-inner-circle{background-color:var(--primary-color)}.card-wrapper[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%]   .note-recuring[_ngcontent-%COMP%]{font-size:12px;line-height:15px;color:#999;margin-bottom:10px}.card-wrapper[_ngcontent-%COMP%]   .space-card[_ngcontent-%COMP%]{margin:20px}.card-wrapper[_ngcontent-%COMP%]   .exp-date[_ngcontent-%COMP%]{width:40%}.card-wrapper[_ngcontent-%COMP%]   .cvv[_ngcontent-%COMP%]{width:calc(60% - 40px)}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]{text-align:center}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .amex-exprs[_ngcontent-%COMP%]{background-position:1px 6px}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .visa-card[_ngcontent-%COMP%]{background-position:0 -31px}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .mastercard-img[_ngcontent-%COMP%]{background-position:0 -59px}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .payubiz[_ngcontent-%COMP%]{background-position:0 -117px}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .maestro-logo[_ngcontent-%COMP%]{background-position:0 -172px}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .rupay-logo[_ngcontent-%COMP%]{background-position:0 281px}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]   .razorpay[_ngcontent-%COMP%]{background-position:0 -144px}.card-wrapper[_ngcontent-%COMP%]   .visa[_ngcontent-%COMP%]{background-position:0 0p
1x}.card-wrapper[_ngcontent-%COMP%]   .amex[_ngcontent-%COMP%]{background-position:0 -24px}.card-wrapper[_ngcontent-%COMP%]   .mastercard[_ngcontent-%COMP%]{background-position:0 -48px}.card-wrapper[_ngcontent-%COMP%]   .maestro[_ngcontent-%COMP%]{background-position:0 -72px}.card-wrapper[_ngcontent-%COMP%]   .visa_electron[_ngcontent-%COMP%]{background-position:0 -96px}.card-wrapper[_ngcontent-%COMP%]   .discover[_ngcontent-%COMP%]{background-position:0 -121px}.card-wrapper[_ngcontent-%COMP%]   .cvv-icon[_ngcontent-%COMP%]{background-position:0 -168px}.card-wrapper[_ngcontent-%COMP%]   .rupay[_ngcontent-%COMP%]{background-position:0 -192px}.card-wrapper[_ngcontent-%COMP%]   .jcb[_ngcontent-%COMP%]{background-position:0 96px}.card-wrapper[_ngcontent-%COMP%]   .diners_club_international[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .diners_club_carte_blanche[_ngcontent-%COMP%]{background-position:0 70px}.card-wrapper[_ngcontent-%COMP%]   .sodexo[_ngcontent-%COMP%]{background-position:0 42px}.card-wrapper[_ngcontent-%COMP%]   .laser[_ngcontent-%COMP%]{background-position:0 24px}.card-wrapper[_ngcontent-%COMP%]   .chip-img[_ngcontent-%COMP%]{position:absolute;top:-14px;right:-76px;background-size:250% auto;width:56px;height:56px;display:inline-block;background-position:-41px 123px}.card-wrapper[_ngcontent-%COMP%]   .full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 767px){.card-wrapper[_ngcontent-%COMP%]{max-width:440px}.card-wrapper[_ngcontent-%COMP%]   .card-fields[_ngcontent-%COMP%]{padding:20px;background:#ffffff}.card-wrapper[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%]{margin-top:20px;text-align:center}.card-wrapper[_ngcontent-%COMP%]   .half-width[_ngcontent-%COMP%]{width:80%}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]{margin-top:10px}}@media (max-width: 768px){.card-wrapper[_ngcontent-%COMP%]{background:#ffffff}.card-wrapper[_ngcontent-%COMP%]   .card-fields[_ngcontent-%COMP%]{padding:20px 20px 0}.card-wrapper[_ngcontent-%COMP%]   .chip-img[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .cvv-icon[_ngcontent-%COMP%]{display:none}.card-wrapper[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%]{padding:0 20px}.card-wrapper[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%], .card-wrapper[_ngcontent-%COMP%]   .btn-wrapper[_ngcontent-%COMP%]   .note-recuring[_ngcontent-%COMP%]{color:#999}.card-wrapper[_ngcontent-%COMP%]   .payment-gateways[_ngcontent-%COMP%]{filter:grayscale(100%);margin-top:27px}.card-wrapper[_ngcontent-%COMP%]   .space-card-zip[_ngcontent-%COMP%]{margin:38px}.card-wrapper[_ngcontent-%COMP%]   .exp-date[_ngcontent-%COMP%]{width:81px}.card-wrapper[_ngcontent-%COMP%]   .cvv[_ngcontent-%COMP%]{width:68px}.card-wrapper[_ngcontent-%COMP%]   .Zipcode[_ngcontent-%COMP%]{width:100px}.card-wrapper[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{display:flex;justify-content:space-between;background:#f5f5f5;padding:10px 20px;align-items:center;height:57px;text-transform:uppercase;overflow:hidden}.card-wrapper[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:600;line-height:23px;margin:auto 0;font-size:17px;letter-spacing:1px;color:#444;display:inline-block;overflow:hidden}}@media (max-width: 768px) and (max-width: 345px){.card-wrapper[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 768px){.card-wrapper[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .secure[_ngcontent-%COMP%]{display:flex;align-items:center;width:71px;color:var(--primary-color)}.card-wrapper[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .secure[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before{font-size:27px;color:inherit}.card-wrapper[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .secure[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;font-size:12px;line-height:15px;margin-left:6px}}.sp-line[_ngcontent-%COMP%]{width:100%;height:8px;background:#F1F3F7}"]})),o})();function pa(o,s){if(1&o&&t._UZ(0,"img",6),2&o){const n=t.oxw();t.Q6J("hidden",!n.qrCodeUrl)("src","data:image/png;base64,"+n.qrCodeUrl,t.LSH)}}function la(o,s){1&o&&t._UZ(0,"div",7)}function da(o,s){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-utm-wallet-hundred",8),t.qZA()),2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("donation",null==n.cartDetails?null:n.cartDetails.donated_amount)}}let ua=(()=>{class o{constructor(){(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"option",void 0),(0,i.Z)(this,"cartDetails",void 0),(0,i.Z)(this,"isOrderLoading",void 0),(0,i.Z)(this,"qrCodeUrl",void 0),(0,i.Z)(this,"dataEmit",new t.vpe)}submitPayTm(){this.dataEmit.emit({mode:"PAYTM",mode_value:"PAYTM"})}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-paytm"]],inputs:{option:"option",cartDetails:"cartDetails",isOrderLoading:"isOrderLoading",qrCodeUrl:"qrCodeUrl"},outputs:{dataEmit:"dataEmit"},standalone:!0,features:[t.jDz],decls:7,vars:3,consts:[[1,"paytm-wrapper"],[1,"pay-via"],["data-bg","/assets/images/wallets.png?w=auto",1,"paytm-icon"],["loading","lazy","width","120","alt","qr code",3,"hidden","src",4,"ngIf"],["class","linear-background",4,"ngIf"],[4,"ngIf"],["loading","lazy","width","120","alt","qr code",3,"hidden","src"],[1,"linear-background"],["type","payment",3,"donation"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"span",1),t._uU(2,"Scan here to pay with Paytm Wallet"),t.qZA(),t._UZ(3,"span",2),t.YNc(4,pa,1,2,"img",3),t.YNc(5,la,1,0,"div",4),t.YNc(6,da,2,1,"div",5),t.qZA()),2&n&&(t.xp6(4),t.Q6J("ngIf",e.qrCodeUrl),t.xp6(1),t.Q6J("ngIf",!e.qrCodeUrl),t.xp6(1),t.Q6J("ngIf",e.paymentUtil.utmProceedClicked))},dependencies:[l.O5,K],styles:[".paytm-wrapper[_ngcontent-%COMP%]{padding:10px 0;background:#ffffff;display:flex;flex-direction:column;align-items:center}.paytm-wrapper[_ngcontent-%COMP%]   .paytm-icon[_ngcontent-%COMP%]{background-position:0px -438px;background-repeat:no-repeat;width:120px;height:55px;margin:16px auto 30px;display:block;transform:scale(.7)}.paytm-wrapper[_ngcontent-%COMP%]   .pay-via[_ngcontent-%COMP%]{font-size:14px;line-height:20px;display:block;text-align:center}.paytm-wrapper[_ngcontent-%COMP%]   .linear-background[_ngcontent-%COMP%]{animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:_ngcontent-%COMP%_placeHolderShimmer;animation-timing-function:linear;background:#f6f7f8;background:linear-gradient(to right,#eeeeee 8%,#dddddd 18%,#eeeeee 33%);background-size:1000px 104px;height:112px;width:112px;position:relative;overflow:hidden;margin:auto}@keyframes _ngcontent-%COMP%_placeHolderShimmer{0%{background-position:-468px 0}to{background-position:468px 0}}@media (min-width: 767px){.paytm-wrapper[_ngcontent-%COMP%]{width:410px}}"]})),o})();function ma(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",8)(1,"button",9),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw();return t.KtG(c.selectWallet(r))}
1),t._UZ(2,"span",10),t.qZA()()}if(2&o){const n=s.$implicit,e=t.oxw();t.xp6(1),t.ekj("active",e.walletName.value==n),t.Q6J("disabled",e.vars.isOrderLoading),t.xp6(1),t.Tol(n)}}function _a(o,s){if(1&o&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&o){const n=s.$implicit,e=t.oxw();t.Q6J("value",n),t.xp6(1),t.hij(" ",e.option[n]," ")}}function ga(o,s){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-utm-wallet-hundred",12),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("donation",null==n.cartDetails?null:n.cartDetails.donated_amount)}}let ha=(()=>{class o{constructor(){(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"option",void 0),(0,i.Z)(this,"topWallets",void 0),(0,i.Z)(this,"cartDetails",void 0),(0,i.Z)(this,"isOrderLoading",void 0),(0,i.Z)(this,"dataEmit",new t.vpe),(0,i.Z)(this,"selectedWallet",void 0),(0,i.Z)(this,"walletForm",void 0),(0,i.Z)(this,"walletName",void 0)}ngOnInit(){this.walletForm=new p.cw({walletName:this.walletName=new p.NI("",[p.kI.required])})}getWalletNames(n){return n?this.util.sortArray(Object.keys(n)):null}selectWallet(n){this.selectedWallet=n,this.walletName.setValue(n)}submitWallet(){this.walletForm.valid?this.dataEmit.emit({mode:"WALLET",mode_value:this.walletName.value}):this.util.checkValidForm(this.walletForm)}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-wallets"]],inputs:{option:"option",topWallets:"topWallets",cartDetails:"cartDetails",isOrderLoading:"isOrderLoading"},outputs:{dataEmit:"dataEmit"},standalone:!0,features:[t.jDz],decls:9,vars:9,consts:[[1,"wallets-wrapper"],["class","wallets-icon",4,"ngFor","ngForOf"],[1,"wallets-dropdown"],[3,"formGroup","ngSubmit"],["placeholder","Select Wallet",3,"formControl","disabled"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["label","proceed to contribute",3,"btnClass","amount","isOrderLoading"],[1,"wallets-icon"],["type","button","mat-stroked-button","",3,"disabled","click"],["data-bg","/assets/images/wallets.png?w=auto"],[3,"value"],["type","payment",3,"donation"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,ma,3,6,"div",1),t.qZA(),t.TgZ(2,"div",2)(3,"form",3),t.NdJ("ngSubmit",function(){return e.submitWallet()}),t.TgZ(4,"mat-form-field")(5,"mat-select",4),t.YNc(6,_a,2,2,"mat-option",5),t.qZA()(),t.YNc(7,ga,2,1,"div",6),t._UZ(8,"app-donate-btn",7),t.qZA()()),2&n&&(t.xp6(1),t.Q6J("ngForOf",e.getWalletNames(e.topWallets)),t.xp6(2),t.Q6J("formGroup",e.walletForm),t.xp6(2),t.Q6J("formControl",e.walletName)("disabled",e.vars.isOrderLoading),t.xp6(1),t.Q6J("ngForOf",e.getWalletNames(e.option)),t.xp6(1),t.Q6J("ngIf",e.paymentUtil.utmProceedClicked),t.xp6(1),t.Q6J("btnClass","submit-payment")("amount",null==e.cartDetails?null:e.cartDetails.donated_amount)("isOrderLoading",e.isOrderLoading||e.vars.isOrderLoading))},dependencies:[l.O5,l.ax,p.UX,p._Y,p.JJ,p.JL,p.oH,p.sg,f.ot,f.lW,U.lN,U.KE,H.LD,H.gD,D.ey,K,Q.$],styles:[".wallets-sprite[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .YPAYCASH[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .YESPAY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .SODEXO[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .PAYUMONEY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .PAYCASH[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .OXIGEN[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .LAZYPAY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .AMEXEZECLICK[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .AIRTELMONEY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .JIOMONEY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .PAYZAPP[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .FREECHARGE[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .PHONEPE[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .AMAZONPAY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .PAYTM[_ngcontent-%COMP%]{width:95px;height:40px;background-size:100% auto;display:block;background-repeat:no-repeat}.wallets-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.wallets-wrapper[_ngcontent-%COMP%]   .wallets-icon[_ngcontent-%COMP%]{margin-right:20px;height:80px}.wallets-wrapper[_ngcontent-%COMP%]   .wallets-icon[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px}.wallets-wrapper[_ngcontent-%COMP%]   .PAYTM[_ngcontent-%COMP%]{background-image:url(/assets/images/payment/wallets-upi.png)!important;background-position:2px 5px;background-size:93% auto}.wallets-wrapper[_ngcontent-%COMP%]   .AMAZONPAY[_ngcontent-%COMP%]{background-position:0 -926px}.wallets-wrapper[_ngcontent-%COMP%]   .PHONEPE[_ngcontent-%COMP%]{background-position:0 -887px}.wallets-wrapper[_ngcontent-%COMP%]   .FREECHARGE[_ngcontent-%COMP%]{background-position:0 -39px}.wallets-wrapper[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%]{background-position:0 -121px}.wallets-wrapper[_ngcontent-%COMP%]   .PAYZAPP[_ngcontent-%COMP%]{background-position:0 -239px}.wallets-wrapper[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%]{background-position:0 -281px}.wallets-wrapper[_ngcontent-%COMP%]   .JIOMONEY[_ngcontent-%COMP%]{background-position:0 -846px}.wallets-wrapper[_ngcontent-%COMP%]   .AIRTELMONEY[_ngcontent-%COMP%]{background-position:0 -158px}.wallets-wrapper[_ngcontent-%COMP%]   .AMEXEZECLICK[_ngcontent-%COMP%]{background-position:0px -720px}
1.wallets-wrapper[_ngcontent-%COMP%]   .LAZYPAY[_ngcontent-%COMP%]{background-position:0 -1054px}.wallets-wrapper[_ngcontent-%COMP%]   .OXIGEN[_ngcontent-%COMP%]{background-position:0 0}.wallets-wrapper[_ngcontent-%COMP%]   .PAYCASH[_ngcontent-%COMP%]{background-position:0 -804px}.wallets-wrapper[_ngcontent-%COMP%]   .PAYUMONEY[_ngcontent-%COMP%], .wallets-wrapper[_ngcontent-%COMP%]   .SODEXO[_ngcontent-%COMP%]{background-position:0 -1054px}.wallets-wrapper[_ngcontent-%COMP%]   .YESPAY[_ngcontent-%COMP%]{background-position:0 -83px}.wallets-wrapper[_ngcontent-%COMP%]   .YPAYCASH[_ngcontent-%COMP%]{background-position:0 -198px}@media (min-width: 767px){form[_ngcontent-%COMP%]{text-align:center}.wallets-dropdown[_ngcontent-%COMP%]     .mat-form-field-infix{min-width:380px}}.active[_ngcontent-%COMP%]{background:transparent;background-color:#d7efef}"]})),o})();var fa=d(5524),Ca=d(9295),Oa=d(635),Pa=d(458);function ba(o,s){1&o&&t._UZ(0,"div",18)}function Ma(o,s){if(1&o&&(t.TgZ(0,"div",19),t._UZ(1,"span",20),t.TgZ(2,"span",21),t._uU(3),t.qZA()()),2&o){const n=s.$implicit,e=t.oxw(2);t.xp6(1),t.Tol(n.toUpperCase()),t.xp6(2),t.Oqu(null==e.option?null:e.option.TOPUPI[n])}}function xa(o,s){if(1&o&&(t.TgZ(0,"div",10)(1,"div",11),t._uU(2,"Scan the QR code from the app and make payment"),t.qZA(),t.TgZ(3,"div",12),t._UZ(4,"img",13),t.YNc(5,ba,1,0,"div",14),t.qZA(),t.TgZ(6,"div",15)(7,"div",16),t.YNc(8,Ma,4,4,"div",17),t.qZA()()()),2&o){const n=t.oxw();t.xp6(4),t.Q6J("hidden",!n.qrURL)("src","data:image/png;base64,"+n.qrURL,t.LSH),t.xp6(1),t.Q6J("ngIf",!n.qrURL),t.xp6(3),t.Q6J("ngForOf",n.getObjectKeys(null==n.option?null:n.option.TOPUPI))}}function va(o,s){if(1&o&&t._UZ(0,"img",30),2&o){const n=s.$implicit;t.MGl("src","assets/images/payment/static-icons/",n,".png",t.LSH),t.s9C("alt",n)}}function ya(o,s){1&o&&t._UZ(0,"div",18)}function wa(o,s){if(1&o&&t._UZ(0,"app-currency-icon",31),2&o){const n=t.oxw(2);t.Q6J("currency",null==n.cartDetails?null:n.cartDetails.currency)}}function ka(o,s){if(1&o&&(t.TgZ(0,"div",22)(1,"div",23),t._uU(2,"Scan QR to pay using any UPI app"),t.qZA(),t.TgZ(3,"div",24),t.YNc(4,va,1,2,"img",25),t.TgZ(5,"div",26),t._uU(6,"and more..."),t.qZA()(),t.TgZ(7,"div",27),t._UZ(8,"img",13),t.YNc(9,ya,1,0,"div",14),t.qZA(),t.TgZ(10,"div",28),t._uU(11,"Contribute "),t.YNc(12,wa,1,1,"app-currency-icon",29),t._uU(13),t.qZA()()),2&o){const n=t.oxw();t.xp6(4),t.Q6J("ngForOf",n.staticIcons),t.xp6(4),t.Q6J("hidden",!n.qrURL)("src","data:image/png;base64,"+n.qrURL,t.LSH),t.xp6(1),t.Q6J("ngIf",!n.qrURL),t.xp6(3),t.Q6J("ngIf",null==n.cartDetails?null:n.cartDetails.currency),t.xp6(1),t.Oqu(null==n.cartDetails?null:n.cartDetails.donated_amount)}}function Za(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",35),t.NdJ("click",function(a){const c=t.CHM(n).$implicit,m=t.oxw(3);return t.KtG(m.vars.upiTimer?a.stopPropagation():m.submitOrderMobile("UPI",c))}),t._UZ(1,"span",36),t.TgZ(2,"span",21),t._uU(3),t.qZA()()}if(2&o){const n=s.$implicit,e=t.oxw(3);t.Udp("opacity",e.vars.upiTimer?"0.5":"1"),t.Q6J("hidden",n.match("DESKTOPQR|VPA")||"iOS"===e.util.getMobileOperatingSystem()&&!e.iosSupportedIntent.includes(n)),t.xp6(1),t.Tol(n.toUpperCase()),t.xp6(2),t.Oqu(null==e.option?null:e.option.UPI[n])}}function Ta(o,s){if(1&o&&(t.TgZ(0,"div",16),t.YNc(1,Za,4,7,"div",34),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.getObjectKeys(null==n.option?null:n.option.UPI))}}function Aa(o,s){1&o&&t._UZ(0,"div",47)}function Ia(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-donate-btn",48),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(3);return t.KtG(r.submitOrderMobile("UPI",a))}),t.qZA()}if(2&o){const n=t.oxw(4);t.Q6J("amount",null==n.cartDetails?null:n.cartDetails.donated_amount)("isOrderLoading",n.isOrderLoading||n.vars.isOrderLoading)}}function Sa(o,s){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw(3);return t.KtG(c.selectAppForPayment(r))}),t.TgZ(2,"div",40),t._UZ(3,"img",41),t.TgZ(4,"span",42),t._uU(5),t.qZA()(),t.TgZ(6,"div",43),t.YNc(7,Aa,1,0,"div",44),t.qZA()(),t.YNc(8,Ia,1,2,"app-donate-btn",45),t._UZ(9,"div",46),t.BQk()}if(2&o){const n=s.$implicit,e=t.oxw(3);t.xp6(1),t.ekj("active",e.selectedApp===n),t.xp6(2),t.s9C("src",e.vars.upiImages[n],t.LSH),t.Q6J("alt",n
1),t.xp6(2),t.Oqu(n),t.xp6(2),t.Q6J("ngIf",e.selectedApp===n),t.xp6(1),t.Q6J("ngIf",e.selectedApp===n)}}function Na(o,s){if(1&o&&(t.TgZ(0,"div",37),t.YNc(1,Sa,10,7,"ng-container",38),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.upiOptions)}}function Da(o,s){if(1&o&&(t.TgZ(0,"div",15)(1,"div",11)(2,"h2"),t._uU(3),t.qZA()(),t.YNc(4,Ta,2,1,"div",32),t.YNc(5,Na,2,1,"div",33),t.qZA()),2&o){const n=t.oxw();t.xp6(3),t.Oqu(null!=n.option&&n.option.vpa_collect_enabled?"SELECT A UPI APP":"Select Payment Method"),t.xp6(1),t.Q6J("ngIf",null==n.option?null:n.option.vpa_collect_enabled),t.xp6(1),t.Q6J("ngIf",!(null!=n.option&&n.option.vpa_collect_enabled))}}function Ua(o,s){if(1&o&&t._UZ(0,"img",55),2&o){const n=t.oxw().$implicit;t.uIk("data-src",null==n?null:n.image)}}function Fa(o,s){1&o&&t._UZ(0,"img",56)}function Ea(o,s){if(1&o&&(t.TgZ(0,"div",51),t.YNc(1,Ua,1,1,"img",52),t.YNc(2,Fa,1,0,"img",53),t._UZ(3,"span",54),t.qZA()),2&o){const n=s.$implicit;t.xp6(1),t.Q6J("ngIf",null==n?null:n.image),t.xp6(1),t.Q6J("ngIf",!(null!=n&&n.image)),t.xp6(1),t.Q6J("innerHTML",null==n?null:n.title,t.oJD)}}function qa(o,s){if(1&o&&(t.TgZ(0,"div",49),t.YNc(1,Ea,4,3,"div",50),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",n.upiOffers)}}function La(o,s){1&o&&(t.TgZ(0,"div",57),t._UZ(1,"div",58),t.TgZ(2,"span",59),t._uU(3,"OR"),t.qZA(),t._UZ(4,"div",58),t.qZA())}function Ja(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-upi-input",60),t.NdJ("onSubmit",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.upiInputSubmit(a))}),t.qZA()}if(2&o){const n=t.oxw();t.Q6J("recommendedVpa",n.recommendedVpa)("cartDetails",n.cartDetails)("isOrderLoading",n.isOrderLoading)("disableAll",!!n.vars.upiTimer)}}function Ra(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid UPI ID"),t.qZA())}function Qa(o,s){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"This field is required"),t.qZA())}function Ba(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"form",61),t.NdJ("ngSubmit",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.submit())}),t.TgZ(1,"mat-form-field",62)(2,"mat-label"),t._uU(3,"Enter UPI Address (VPA)"),t.qZA(),t.TgZ(4,"input",63),t.NdJ("focusout",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.onVpaFocusOut())}),t.qZA(),t.YNc(5,Ra,2,0,"mat-error",8),t.YNc(6,Qa,2,0,"mat-error",8),t.qZA(),t._UZ(7,"app-donate-btn",64),t.qZA()}if(2&o){const n=t.oxw();t.Q6J("formGroup",n.upiForm),t.xp6(1),t.Q6J("appearance",n.isMobile?"standard":"fill"),t.xp6(3),t.Q6J("disabled",n.vars.upiTimer),t.xp6(1),t.Q6J("ngIf",n.upiInput.hasError("pattern")&&n.upiInput.touched),t.xp6(1),t.Q6J("ngIf",n.upiInput.hasError("required")&&n.upiInput.touched),t.xp6(1),t.Q6J("btnClass","submit-payment")("amount",null==n.cartDetails?null:n.cartDetails.donated_amount)("disabled",n.vars.upiTimer)("isOrderLoading",n.isOrderLoading||n.vars.isOrderLoading)}}function za(o,s){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"app-utm-wallet-hundred",65),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("donation",null==n.cartDetails?null:n.cartDetails.donated_amount)}}function Ya(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",66)(1,"span"),t._uU(2,"Open your UPI app on your phone to approve the payment request from Ketto."),t.qZA(),t.TgZ(3,"span",67),t._uU(4),t.qZA(),t.TgZ(5,"button",68),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.cancelPayment())}),t._uU(6,"Cancel Payment"),t.qZA()()}if(2&o){const n=t.oxw();t.ekj("mt-2",n.vars.isAgent),t.xp6(4),t.hij(" (",n.countdown,")")}}let Ha=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"paymentService",(0,t.f3M)(L.t)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"cartDetails",void 0),(0,i.Z)(this,"isOrderLoading",void 0),(0,i.Z)(this,"qrURL",void 0),(0,i.Z)(this,"origin",void 0),(0,i.Z)(this,"campaignId",void 0),(0,i.Z)(this,"customTag",void 0),(0,i.Z)(this,"option",void 0),(0,i.Z)(this,"dataEmit",new t.vpe),(0,i.Z)(this,"disableOptions",new t.vpe),(0,i.Z)(this,"cardDetail
1sEmit",new t.vpe),(0,i.Z)(this,"upiForm",void 0),(0,i.Z)(this,"upiInput",new p.NI("",[p.kI.required,p.kI.pattern(this.vars.upi_regex)])),(0,i.Z)(this,"countdown",void 0),(0,i.Z)(this,"timerSub",void 0),(0,i.Z)(this,"generalSubs",[]),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"iosSupportedIntent",this.vars.iosSupportedIntent),(0,i.Z)(this,"upiOffers",[]),(0,i.Z)(this,"userData",void 0),(0,i.Z)(this,"recommendedVpa",""),(0,i.Z)(this,"inputFieldData",{vpa:""}),(0,i.Z)(this,"selectedApp",""),(0,i.Z)(this,"upiOptions",[]),(0,i.Z)(this,"upiOptionSorting",{GooglePay:0,PhonePe:1,Paytm:2,AMAZONPAY:3,BHIM:4,Whatsapp:5,MOBIKWIK:6,OLAMONEY:7,OTHER:8}),(0,i.Z)(this,"staticIcons",["gpay","paytm","phonepe","amazonpay"])}ngOnInit(){this.upiOptions=this.getObjectKeys(this.option?.UPI).filter(n=>"DESKTOPQR"!==n&&"VPA"!==n).sort((n,e)=>this.upiOptionSorting[n]-this.upiOptionSorting[e]),"iOS"===this.util.getMobileOperatingSystem()&&(this.upiOptions=this.upiOptions.filter(n=>this.iosSupportedIntent.includes(n))),this.selectedApp=this.upiOptions[0]??"",this.userData=this.util.getUserData(),"VPA"===this.userData?.lastorder?.payment_mode_value&&(this.recommendedVpa=this.userData?.lastorder?.checksum||""),this.option?.payment_offers?.length>0&&(this.upiOffers=this.option?.payment_offers?.filter(n=>"UPI"===n?.mode)),this.vars.upiTimerOuter.subscribe(n=>{n&&this.startTimer(300)}),this.upiForm=new p.cw({upiInput:this.upiInput}),this.prefillUpiId(),this.isMobile||this.vars.getCartInsurance.subscribe(n=>{n&&this.cardDetailsEmit.emit(n)}),this.upiInput.valueChanges.subscribe(n=>{this.inputFieldData.vpa!==n&&(this.inputFieldData.vpa=n,this.onVpaFocusOut())})}selectAppForPayment(n){this.selectedApp=n}prefillUpiId(){this.generalSubs.push(this.vars.lastOrderInfo.subscribe({next:n=>{this.recommendedVpa=this.recommendedVpa||n?.upi_id||n?.checksum||this.option?.RECOMMENDED_VPA||"",this.recommendedVpa&&this.vars.upi_regex.test(this.recommendedVpa.replaceAll("*","a"))&&(this.upiInput.setValue(this.recommendedVpa),this.updateValidation("vpa",!0)),this.vars.recommendedVpa=this.upiInput.value,this.prefillEvent({info_1:this.upiInput.value?"yes":"no"})}}))}onVpaFocusOut(){this.upiInput?.value===this.recommendedVpa?this.updateValidation("vpa",!0):this.updateValidation("vpa",!0,this.vars.upi_regex)}updateValidation(n,e,a){const r=[];e&&r.push(p.kI.required),a&&r.push(p.kI.pattern(a)),"vpa"===n&&(this.upiInput.clearValidators(),this.upiInput.addValidators(r),this.upiInput.updateValueAndValidity())}prefillEvent(n){this.events.sendSystemEvent({eventName:"vpa_prefill",info_1:n.info_1,info_2:this.vars.recommendedVpa}).subscribe(e=>e)}cancelPayment(){this.upiInput.enable(),this.vars.upiTimer=!1,this.vars.upi_payment_status.next("canceled"),this.timerSub&&this.timerSub.unsubscribe(),this.disableOptions.next(!1)}startTimer(n){this.upiInput.disable(),this.timerSub&&this.timerSub.unsubscribe(),this.timerSub=(0,fa.H)(0,1e3).pipe((0,Ca.q)(n),(0,Oa.U)(e=>{const a=n-e-1;a<=0&&this.cancelPayment();const r=Math.floor(a/60).toString().padStart(2,"0"),c=(a%60).toString().padStart(2,"0");return this.countdown=`${r} : ${c}`,a})).subscribe()}submit(){if(this.upiForm.valid){this.isOrderLoading=!0;const n={vpa:this.upiInput.value};this.vars.isAutoLogin&&(n.vpa_type=this.upiInput?.value?.includes("*")?"lastused":"custom"),this.checkUpiIdValidation(n)}else this.util.checkValidForm(this.upiForm)}checkUpiIdValidation(n){this.startTimer(300),this.disableOptions.next(!0),this.dataEmit.emit({mode:"UPI",mode_value:"VPA",VPA:n.vpa,origin:"payment_form",vpa_type:n?.vpa_type||null}),this.isOrderLoading=!1,this.checkVpaResponse()}submitOrderMobile(n,e){if(this.isOrderLoading)return;const a={mode:n,mode_value:e};this.checkVpaResponse(),this.dataEmit.emit(a)}checkVpaResponse(){this.startTimer(300),this.generalSubs.push(this.vars.upi_payment_status.subscribe(n=>{"success"===n?(this.dialog.closeAll(),this.router.navigate(["/new/payment-route"],{queryParams:this.vars.tyParams})):"failed"===n?this.cancelPayment():"canceled"===n&&(this.isOrderLoading=!1)}))}getObjectKeys(n){if(n)return Object.keys(n)}upiInputSubmit(n){this.checkUpiIdValidation({vpa:n?.upi,vpa_type:n?.vpa_type})}
1ngOnDestroy(){this.generalSubs.forEach(n=>n.unsubscribe()),this.timerSub&&this.timerSub.unsubscribe()}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-upi"]],inputs:{cartDetails:"cartDetails",isOrderLoading:"isOrderLoading",qrURL:"qrURL",origin:"origin",campaignId:"campaignId",customTag:"customTag",option:"option"},outputs:{dataEmit:"dataEmit",disableOptions:"disableOptions",cardDetailsEmit:"cardDetailsEmit"},standalone:!0,features:[t.jDz],decls:10,vars:11,consts:[[1,"upi-wrapper"],["class","qr-warpper",4,"ngIf"],["class","qr-warp",4,"ngIf"],["class","cards",4,"ngIf"],["class","cashback-section",4,"ngIf"],["class","or",4,"ngIf"],[3,"recommendedVpa","cartDetails","isOrderLoading","disableAll","onSubmit",4,"ngIf"],["class","upi-form",3,"formGroup","ngSubmit",4,"ngIf"],[4,"ngIf"],["class","upi-process",3,"mt-2",4,"ngIf"],[1,"qr-warpper"],[1,"heading"],[1,"upi-qr"],["loading","lazy","alt","qr code",3,"hidden","src"],["class","linear-background",4,"ngIf"],[1,"cards"],[1,"card-section","text-center","upi-links"],["class","all-bank submit-payment mt-1",4,"ngFor","ngForOf"],[1,"linear-background"],[1,"all-bank","submit-payment","mt-1"],["matRipple","","data-bg","/assets/images/payment-modes.png?w=auto"],[1,"b-name"],[1,"qr-warp"],[1,"title"],[1,"icons"],["class","icon","loading","lazy",3,"src","alt",4,"ngFor","ngForOf"],[1,"text"],[1,"qr-scanner"],[1,"amount-info"],[3,"currency",4,"ngIf"],["loading","lazy",1,"icon",3,"src","alt"],[3,"currency"],["class","card-section text-center upi-links",4,"ngIf"],["class","upi-list",4,"ngIf"],["class","all-bank submit-payment mt-1 upi-icons",3,"hidden","opacity","click",4,"ngFor","ngForOf"],[1,"all-bank","submit-payment","mt-1","upi-icons",3,"hidden","click"],["matRipple","","data-bg","/assets/images/payment-modes.png"],[1,"upi-list"],[4,"ngFor","ngForOf"],[1,"upi-item",3,"click"],[1,"upi-left"],[3,"src","alt"],[1,"upi-name"],[1,"upi-radio"],["class","cricle",4,"ngIf"],["label","Pay",3,"amount","isOrderLoading","click",4,"ngIf"],[1,"divider"],[1,"cricle"],["label","Pay",3,"amount","isOrderLoading","click"],[1,"cashback-section"],["class","cashback-strip",4,"ngFor","ngForOf"],[1,"cashback-strip"],["loading","lazy","alt","upi_cashback",4,"ngIf"],["loading","lazy","src","/assets/images/payment/paytm_cashback.png","alt","upi_cashback",4,"ngIf"],[1,"title",3,"innerHTML"],["loading","lazy","alt","upi_cashback"],["loading","lazy","src","/assets/images/payment/paytm_cashback.png","alt","upi_cashback"],[1,"or"],[1,"or-line"],[1,"or-label"],[3,"recommendedVpa","cartDetails","isOrderLoading","disableAll","onSubmit"],[1,"upi-form",3,"formGroup","ngSubmit"],[1,"upi-input",3,"appearance"],["matInput","","formControlName","upiInput","placeholder","E.g. yourname@icici",3,"disabled","focusout"],["label","Contribute",3,"btnClass","amount","disabled","isOrderLoading"],["type","payment",3,"donation"],[1,"upi-process"],[1,"timer"],["type","button","mat-button","",1,"cancel-btn",3,"click"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,xa,9,4,"div",1),t.YNc(2,ka,14,6,"div",2),t.YNc(3,Da,6,3,"div",3),t.YNc(4,qa,2,1,"div",4),t.YNc(5,La,5,0,"div",5),t.YNc(6,Ja,1,4,"app-upi-input",6),t.YNc(7,Ba,8,9,"form",7),t.YNc(8,za,2,1,"div",8),t.YNc(9,Ya,7,3,"div",9),t.qZA()),2&n&&(t.ekj("bg-white",e.paymentUtil.utmProceedClicked),t.xp6(1),t.Q6J("ngIf",!e.isMobile&&(null==e.option?null:e.option.vpa_collect_enabled)),t.xp6(1),t.Q6J("ngIf",!(e.isMobile||null!=e.option&&e.option.vpa_collect_enabled)),t.xp6(1),t.Q6J("ngIf",e.isMobile&&!e.vars.disableUpi),t.xp6(1),t.Q6J("ngIf",(null==e.upiOffers?null:e.upiOffers.length)>0&&20==(null==e.vars.fundraiser||null==e.vars.fundraiser.cause?null:e.vars.fundraiser.cause.parent_cause_id)&&"campaign"===e.vars.pageName),t.xp6(1),t.Q6J("ngIf",!e.vars.disableUpi&&(null==e.option?null:e.option.vpa_collect_enabled)),t.xp6(1),t.Q6J("ngIf",e.vars.isAgent&&(null==e.option?null:e.option.vpa_collect_enabled)),t.xp6(1),t.Q6J("ngIf",!e.vars.isAgent&&(null==e.option?null:e.option.vpa_collect_enabled)),t.xp6(1),t.Q6J("ngIf",e.paymentUtil.utmProceedClicked),t.xp6(1),t.Q6J("ngIf",e.vars.upiTimer))},dependencies:[l.O5,l.ax,p.UX,p._Y,p.Fj,p.JJ,p.JL,p.sg,p.u,U.lN,U.TO,U.KE,U.hX,Y.c,Y.Nt,f.ot,f.lW,D.si,D.wG,M.N,Q.$,Pa.T,K],styles:['@charset "UTF-8";.dots-loader-v2[_ngcontent-%COMP%]{--size: 49px;--dot-size: calc(var(--size) * .25);--move-distance: calc(var(--size) * .33);position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);width:var(--size);height:var(--size)}.dots-loader-v2[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;width:var(--dot-size);height:var(--dot-size);background:var(--primary-color);border-radius:50%;animation:_ngcontent-%COMP%_dots-loader-v2-1 2s cubic-bezier(.77,0,.175,1) infinite}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;inset:0;margin:auto;width:100%;height:100%;animation:_ngcontent-%COMP%_dots-loader-v2-2 2s cubic-bezier(.77,0,.175,1) infinite}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before, .dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;width:var(--dot-size);height:var(--dot-size);background:var(--primary-color);border-radius:50%}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_dots-loader-v2-3 2s cubic-bezier(.77,0,.175,1) infinite}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{animation:_ngcontent-%COMP%_dots-loader-v2-4 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-v2-1{0%{transform:scale(0);opacity:0}50%{transform:scale(1);opacity:1}to{transform:scale(0);opacity:0}}@keyframes _ngcontent-%COMP%_dots-loader-v2-2{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_dots-loader-v2-3{0%{transform:translate(0) scale(1)}50%{transform:translate(calc(-1 * var(--move-distance))) scale(.5)}to{transform:translate(0) scale(1)}}@keyframes _ngcontent-%COMP%_dots-loader-v2-4{0%{transform:translate(0) scale(1)}50%{transform:translate(var(--move-distance)) scale(.5)}to{transform:translate(0) scale(1)}}.dots-loader[_ngcontent-%COMP%]{height:32px;width:32px}.dots-loader[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:12px;height:12px;inset:0;margin:auto;background:var(--primary-color);border-radius:50%;animation:_ngcontent-%COMP%_dots-loader-1 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-1{0%{transform:scale(0);opacity:0}50%{transform:scale(1);opacity:1}to{transform:scale(0);opacity:0}}.dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;position:absolute;inset:0;margin:auto;height:32px;width:32px;animation:_ngcontent-%COMP%_dots-loader-2 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-2{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before, .dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;inset:0;margin:auto;height:12px;width:12px;background:var(--primary-color);border-radius:50%;animation:_ngcontent-%COMP%_dots-loader-3 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-3{0%{transform:translateZ(0) scale(1)}50%{transform:translate3d(-16px,0,0) scale(.5)}to{transform:translateZ(0) scale(1)}}.dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{animation:_ngcontent-%COMP%_dots-loader-4 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-4{0%{transform:translateZ(0) scale(1)}50%{transform:translate3d(16px,0,0) scale(.5)}to{transform:translateZ(0) scale(1)}}.visible-hide[_ngcontent-%COMP%]{visibility:hidden}  mat-Tooltip-component .mat-tooltip{font-size:10px;font-style:normal;font-weight:400;line-height:14px}.sf-container[_ngcontent-%COMP%]{background:#F7F7F7;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:0 16px 8px;align-self:stretch}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]{background:#FFF;padding:10px 16px 0 10px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]{display:flex;padding:8px;flex-direction:column;align-items:flex-start;align-self:stretch}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--Neutral-Black-6, #262626);font-family:DM Sans;font-size:20px;font-style:normal;font-weight:400;line-height:28px}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .sf-total-amount[_ng
1content-%COMP%]{color:var(--Neutral-Black-6, #262626);font-family:DM Sans;font-size:20px;font-style:normal;font-weight:700;line-height:28px}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .sf-total-amount[_ngcontent-%COMP%]{font-size:17px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{color:var(--Neutral-Black-4, #737373);font-family:DM Sans;font-size:14px;font-style:normal;font-weight:400;line-height:20px;display:flex;flex-direction:row;gap:8px;align-items:center}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:12px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .infoIcon[_ngcontent-%COMP%]{display:flex}.option-container[_ngcontent-%COMP%]   .place-holder[_ngcontent-%COMP%]{min-width:150px}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option-tab[_ngcontent-%COMP%]{min-width:150px;padding:18px 7px 18px 18px;border:1px solid #f5f5f5;border-radius:0}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option-tab[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:30px;float:left}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option-tab[_ngcontent-%COMP%]   .option-name[_ngcontent-%COMP%]{float:left;margin-left:8px}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .is-active[_ngcontent-%COMP%]{border-left:3px solid var(--primary-color);background:#f7f7f7;font-weight:700;color:var(--primary-color)}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .is-active[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before{color:var(--primary-color)}.option-container[_ngcontent-%COMP%]   .routes[_ngcontent-%COMP%]{padding:0 10px 0 18px;margin:10px auto 25px}.option-container[_ngcontent-%COMP%]   .sp-line[_ngcontent-%COMP%]{width:100%;height:8px;background:#F1F3F7}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]{max-width:440px;margin:0 auto;padding:0 16px}@media (min-width: 768px){.option-container[_ngcontent-%COMP%]   .stripeLinkPay.oneTapEnable[_ngcontent-%COMP%]{margin-bottom:16px}}@media (max-width: 768px){.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]{position:relative;margin-bottom:-10px;padding:14px 16px 0;background:#fff;z-index:1}}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .actBtn[_ngcontent-%COMP%]{margin:0 0 16px}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .orPay[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;max-width:320px;margin:auto}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .orPay[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{width:100%;height:1px;background:#CCC}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .orPay[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:100%;min-width:130px;text-align:center;color:#404040;font-size:15px;font-weight:400;line-height:normal}  app-input.search-input mat-form-field .mat-form-field-wrapper{margin:0 16px -15px}.top-bank-sprite[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_SBI[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_KOTAK[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_ICICI[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_HDFC[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_AXIS[_ngcontent-%COMP%]{height:49px;width:49px;background-repeat:no-repeat;display:block;box-shadow:0 2px 5px #00000026;border-radius:50%;background-size:auto 110%;margin:0 auto}.upi-sprite[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OTHER[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PAYTM[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .BHIM[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .WHATSAPP[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PHONEPE[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .GOOGLEPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .loader-key[_ngcontent-%COMP%]{background-image:url(https://kettocdn.gumlet.io/images/payment_gateways/payment-modes.png);height:49px;width:49px;background-repeat:no-repeat;display:inline-block;box-shadow:0 2px 5px #00000026;border-radius:50%;background-size:300% auto}.all-wallets-sprite[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .PAYCASH[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .YPAYCASH[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .YESPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .OXIGEN[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .FREECHARGE[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .PAYZAPP[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .AMAZONPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .AIRTELMONEY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .JIOMONEY[_ngcontent-%COMP%]{background-image:url(https://kettocdn.gumlet.io/images/payment_gateways/wallet-md-logo.png);height:49px;width:49px;background-repeat:no-repeat;display:inline-block;box-shadow:0 2px 5px #00000026;border-radius:50%;background-size:100% auto}.cards[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:700;line-height:15px;font-size:14px;letter-spacing:1px;color:#444;display:inline-block;overflow:hidden}.cards[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .recommended[_ngcontent-%COMP%]{margin-left:8px;padding:2px 8px;border-radius:20px;color:#fff;font-size:10px!important;font-weight:700!important;line-height:12px!important;text-transform:uppercase;background:#01bfbd}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{background:#f5f5f5;padding:15px 27px;height:41px;margin-top:15px;text-transform:uppercase}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .bank-select[_ngcontent-%COMP%]{width:95px;color:var(--primary-color);font-weight:600;border:0;background:0}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .bank-select[_ngcontent-%COMP%]:focus{outline:none}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]::-ms-expand{display:none}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{float:right;font-weight:600;line-height:20px;font-size:12px}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--primary-color);text-transform:capitalize}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]{padding:20px;background:#FFF}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;border-radius:16px;cursor:pointer;margin-bottom:10px}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:36px;height:36px;object-fit:contain}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]   .upi-name[_ng
1content-%COMP%]{font-size:14px;font-weight:400;color:#626262;font-weight:500;line-height:120%}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-radio[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;border:2px solid #01BFBD;position:relative;transition:all .2s ease}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-radio[_ngcontent-%COMP%]   .cricle[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:12px;height:12px;border-radius:50%;background-color:#01bfbd}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]     app-donate-btn button{font-size:14px;min-height:46px;max-height:46px;width:100%}.cards[_ngcontent-%COMP%]   .card-section[_ngcontent-%COMP%]{padding:20px;background:#ffffff}.cards[_ngcontent-%COMP%]   .card-section.CARDS[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.cards[_ngcontent-%COMP%]   .card-section[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{float:right}.cards[_ngcontent-%COMP%]   .card-section.blurBack[_ngcontent-%COMP%]{opacity:.7}.cards[_ngcontent-%COMP%]   .loading-cards[_ngcontent-%COMP%]{height:137px;overflow:hidden}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]{display:flex}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .upi-ops[_ngcontent-%COMP%]{order:6}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .GooglePay[_ngcontent-%COMP%]{order:1}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .PhonePe[_ngcontent-%COMP%]{order:2}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .Paytm[_ngcontent-%COMP%]{order:3}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .BHIM[_ngcontent-%COMP%]{order:4}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .Whatsapp[_ngcontent-%COMP%]{order:5}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]:nth-child(4n){flex-basis:100%}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]{display:inline-block;width:20%;text-align:center;vertical-align:top}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .loader-key[_ngcontent-%COMP%]{background-position:11px -712px!important}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_AXIS[_ngcontent-%COMP%]{background-position:-66px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_HDFC[_ngcontent-%COMP%]{background-position:-3px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_ICICI[_ngcontent-%COMP%]{background-position:-129px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_KOTAK[_ngcontent-%COMP%]{background-position:-255px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_SBI[_ngcontent-%COMP%]{background-position:-191px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .b-name[_ngcontent-%COMP%]{font-size:12px;line-height:15px;color:#444;display:block}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .GOOGLEPAY[_ngcontent-%COMP%]{background-position:-49px -596px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PHONEPE[_ngcontent-%COMP%]{background-position:-49px -654px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .WHATSAPP[_ngcontent-%COMP%]{background-position:-49px -536px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .BHIM[_ngcontent-%COMP%]{background-position:-49px -712px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PAYTM[_ngcontent-%COMP%]{background-image:url(/assets/images/payment/payment_modes_sprite.png)!important;background-position:-51px -1083px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OTHER[_ngcontent-%COMP%]{background-position:-49px -888px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%]{background-position:-49px -827px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%]{background-position:-50px -770px}.cards[_ngcontent-%COMP%]   .JIOMONEY[_ngcontent-%COMP%]{background-position:-11px -1367px;background-size:142% auto}.cards[_ngcontent-%COMP%]   .AIRTELMONEY[_ngcontent-%COMP%]{background-position:0 -218px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .paytm-wallet[_ngcontent-%COMP%]{background-image:url(https://kettocdn.gumlet.io/images/payment_gateways/wallet-md-logo.png);height:26px;width:60px;background-repeat:no-repeat;display:inline-block;background-size:100% auto;background-position:0 -500px}.cards[_ngcontent-%COMP%]   .AMAZONPAY[_ngcontent-%COMP%]{background-position:-9px -1470px;background-size:140% auto}.cards[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%]{background-position:0 -160px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%]{background-position:3px -363px}.cards[_ngcontent-%COMP%]   .PAYZAPP[_ngcontent-%COMP%]{background-position:3px -267px;background-size:85%}
1.cards[_ngcontent-%COMP%]   .FREECHARGE[_ngcontent-%COMP%]{background-position:0 -51px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .OXIGEN[_ngcontent-%COMP%]{background-position:0 1px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .YESPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .YPAYCASH[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .PAYCASH[_ngcontent-%COMP%]{background-position:0 -51px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .wallet[_ngcontent-%COMP%]{line-height:24px;font-size:17px;margin-left:7.9px}.list-dilaog[_ngcontent-%COMP%]{margin:-24px}.list-dilaog[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{display:flex;align-items:center}.list-dilaog[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{width:60px}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]{width:100%;text-align:start;padding:0}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]     .mat-button-wrapper span{dis
1play:flex;align-items:center;justify-content:space-between;border-top:1px solid #eee;height:55px;padding:0 15px}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]     .mat-button-wrapper .dots-loader span{border:0}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:unset}.list-dilaog[_ngcontent-%COMP%]   .lits-icon[_ngcontent-%COMP%]{color:#ccc}@media (min-width: 769px){.option-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding:0}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{display:flex;flex-direction:column}}@media (max-width: 768px){.option-container[_ngcontent-%COMP%]{background:#f5f5f5}.with-no-heading[_ngcontent-%COMP%]{margin-top:28px}.wallets-container[_ngcontent-%COMP%]{margin-bottom:30px}}.new-option[_ngcontent-%COMP%]{width:100%;background:#FFF}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#F5F5F5;padding:23px 20px 8px}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%], .new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{display:flex;align-items:center}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#444;font-size:14px;font-weight:700;line-height:20px;letter-spacing:1px}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .recommended[_ngcontent-%COMP%]{margin-left:8px;padding:2px 8px;background:var(--primary-color);border-radius:20px;color:#fff;font-size:10px;font-weight:700;line-height:12px;text-transform:uppercase}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .recommended.AB[_ngcontent-%COMP%]{margin-left:6px;padding:4.5px 8px;background:#56648C;font-size:8px;line-height:normal}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .view-all[_ngcontent-%COMP%]{color:var(--primary-color);font-size:12px;font-weight:600;line-height:24px;cursor:pointer}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]{width:100%;padding:16px 20px}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:18px}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{position:relative}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.active[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:before{content:"";width:inherit;height:inherit;position:absolute;opacity:.5;background:white}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .veiw-all[_ngcontent-%COMP%]{width:24px;height:24px;display:flex;align-items:center;margin-left:auto;border-radius:50%;color:#444}.new-option.option-upi[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{padding:13px 20px 8px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%;background-image:url(/assets/images/payment/payment_modes_sprite.png);background-size:110px auto;background-repeat:no-repeat}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.BHIM[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -533px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.GooglePay[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -446.5px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.Paytm[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37.5px -358px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.PhonePe[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -490px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.Whatsapp[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -402px}.blurBack[_ngcontent-%COMP%]{opacity:.7}@media (max-width: 768px){.upi-wrapper.bg-white[_ngcontent-%COMP%]{background:#fff}}.upi-wrapper[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{font-size:17px;line-height:27px;color:#444}.upi-wrapper[_ngcontent-%COMP%]   .upi-qr[_ngcontent-%COMP%]{display:flex;width:160px;height:160px}.upi-wrapper[_ngcontent-%COMP%]   .upi-qr[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.upi-wrapper[_ngcontent-%COMP%]   .upi-qr[_ngcontent-%COMP%]   .linear-background[_ngcontent-%COMP%]{animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:_ngcontent-%COMP%_placeHolderShimmer;animation-timing-function:linear;background:#f6f7f8;background:linear-gradient(to right,#eeeeee 8%,#dddddd 18%,#eeeeee 33%);background-size:1000px 104px;height:112px;width:112px;position:relative;overflow:hidden;margin:auto}@keyframes _ngcontent-%COMP%_placeHolderShimmer{0%{background-position:-468px 0}to{background-position:468px 0}}.upi-wrapper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]{margin:18px auto;display:flex;justify-content:center;align-items:center;width:80%}.upi-wrapper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]   .or-line[_ngcontent-%COMP%]{width:50%;border:0;height:1px}.upi-wrapper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]   .or-label[_ngcontent-%COMP%]{font-size:14px;text-align:center;padding:2px;width:50px}.upi-wrapper[_ngcontent-%COMP%]   .upi-process[_ngcontent-%COMP%]{font-size:15px;line-height:24px;color:var(--primary-color);margin-top:-15px;max-width:335px}.upi-wrapper[_ngcontent-%COMP%]   .upi-process[_ngcontent-%COMP%]   .cancel-btn[_ngcontent-%COMP%]{display:block;color:#e82943;font-size:15px;line-height:19px;height:19px;padding:0}.upi-wrapper[_ngcontent-%COMP%]   .upi-process[_ngcontent-%COMP%]   .timer[_ngcontent-%COMP%]{color:#444}@media only screen and (min-width: 768px){.upi-wrapper[_ngcontent-%COMP%]   .qr-warp
1per[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.upi-wrapper[_ngcontent-%COMP%]   .qr-warpper[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]   .card-section[_ngcontent-%COMP%]{padding:0}.upi-wrapper[_ngcontent-%COMP%]   .qr-warpper[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]   .card-section[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]{transform:scale(.8);margin:-9px 5px}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]{max-width:324px;margin:16px auto;padding:11px 24px;text-align:center}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-bottom:8px;color:#000;font-size:17px;font-weight:700;line-height:20px}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:8px}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:18px}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:#737373;font-size:10px;font-weight:400;line-height:16px}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .qr-scanner[_ngcontent-%COMP%]{width:200px;height:200px;margin:0 auto 8px;padding:5px;border-radius:5px}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .qr-scanner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .qr-scanner[_ngcontent-%COMP%]   .linear-background[_ngcontent-%COMP%]{animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:_ngcontent-%COMP%_placeHolderShimmer;animation-timing-function:linear;background:#f6f7f8;background:linear-gradient(to right,#eeeeee 8%,#dddddd 18%,#eeeeee 33%);background-size:1000px 104px;height:100%;width:100%;position:relative;overflow:hidden;margin:auto}@keyframes placeHolderShimmer{0%{background-position:-468px 0}to{background-position:468px 0}}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .amount-info[_ngcontent-%COMP%]{color:#000;font-size:14px;font-weight:700;line-height:20px}.upi-wrapper[_ngcontent-%COMP%]   .qr-warp[_ngcontent-%COMP%]   .amount-info[_ngcontent-%COMP%]     app-currency-icon .currency-symbol{font-family:var(--font-source-sans-pro)!important}.upi-wrapper[_ngcontent-%COMP%]   .upi-form[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;gap:16px;max-width:420px;margin:auto}.upi-wrapper[_ngcontent-%COMP%]   .upi-form[_ngcontent-%COMP%]   .upi-in
1put[_ngcontent-%COMP%]{width:100%}.upi-wrapper[_ngcontent-%COMP%]   .upi-form[_ngcontent-%COMP%]   .upi-input[_ngcontent-%COMP%]     .mat-form-field-flex{height:50px;padding:.45em .75em 0}.upi-wrapper[_ngcontent-%COMP%]   .upi-form[_ngcontent-%COMP%]     app-donate-btn button{width:180px;height:50px;padding:4px;border-radius:4px;box-shadow:0 2px 10px #17848066}.upi-wrapper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]   .or-line[_ngcontent-%COMP%]{background-color:#d7efef}.upi-wrapper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]   .or-label[_ngcontent-%COMP%]{background-color:#fff;color:#444}}@media only screen and (max-width: 767px){.upi-wrapper[_ngcontent-%COMP%]   .upi-form[_ngcontent-%COMP%]{height:153px;padding:20px;background-color:#fff}.upi-wrapper[_ngcontent-%COMP%]   .upi-form[_ngcontent-%COMP%]   .upi-input[_ngcontent-%COMP%]{width:100%;margin-bottom:5px}.upi-wrapper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]   .or-line[_ngcontent-%COMP%]{background-color:#ccc}.upi-wrapper[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]   .or-label[_ngcontent-%COMP%]{color:#999}.upi-wrapper[_ngcontent-%COMP%]   .upi-process[_ngcontent-%COMP%]{padding:20px}.upi-wrapper[_ngcontent-%COMP%]   .upi-icons[_ngcontent-%COMP%]{width:25%!important}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]{padding:20px;background:#FFF}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{height:1px;background:#eee;margin:20px 0}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]:first-child{display:none}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]:last-child{display:none}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;border-radius:16px;cursor:pointer;margin-bottom:10px}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:36px;height:36px;object-fit:contain}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]   .upi-name[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#626262;font-weight:500;line-height:120%}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-radio[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;border:2px solid #CCC;position:relative;transition:all .2s ease}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-radio[_ngcontent-%COMP%]   .cricle[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:12px;height:12px;border-radius:50%;background-color:#01bfbd}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]   .upi-item.active[_ngcontent-%COMP%]   .upi-radio[_ngcontent-%COMP%]{border-color:#01bfbd}.cards[_ngcontent-%COMP%]   .upi-list[_ngcontent-%COMP%]     app-donate-btn button{font-size:14px;min-height:46px;max-height:46px}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]{display:block}}.cashback-section[_ngcontent-%COMP%]{align-self:stretch;margin:16px 0 0}.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]:only-child{margin-bottom:0}.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;background-color:#ddf6f7;padding:8px;border-radius:4px;width:400px}@media (max-width: 768px){.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]{width:100%}}.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:8px;width:24px;height:24px}.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]     .title p{margin:unset;color:#404040;font-style:normal;white-space:normal;word-break:break-word;font-size:14px;font-weight:400;line-height:16px}@media (max-width: 768px){.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]     .title p{font-size:12px;font-weight:400;line-height:16px}}.cashback-section[_ngcontent-%COMP%]   .cashback-strip[_ngcontent-%COMP%]     .title p span{color:#262626;font-style:normal;font-size:12px;font-weight:700;line-height:16px}']})),o})();const Ka=["stripeBtnElement"];let ja=(()=>{class o{constructor(){(0,i.Z)(this,"payments",(0,t.f3M)(L.t)),(0,i.Z)(this,"scriptLoader",(0,t.f3M)(tt.$)),(0,i.Z)(this,"currency","usd"),(0,i.Z)(this,"amount",100),(0,i.Z)(this,"availablePaymentMethods",new t.vpe),(0,i.Z)(this,"onCheckoutClick",new t.vpe),(0,i.Z)(this,"stripeBtnElement",void 0),(0,i.Z)(this,"stripe",void 0),(0,i.Z)(this,"stripeElements",void 0),(0,i.Z)(this,"expressCheckout",void 0),(0,i.Z)(this,"config",void 0),(0,i.Z)(this,"loadTryCount",0)}ngOnChanges(n){this.stripe?(n?.amount?.currentValue!==n?.amount?.previousValue||n?.currency?.currentValue!==n?.currency?.previousValue)&&this.updateElements():this.load()}load(){var n=this;return(0,_.Z)(function*(){if(n.config=n.payments.getConfig(),!n.config?.optionsResponse)return;if(yield n.scriptLoader.newLoad("stripeV3"),typeof Stripe>"u"){if(n.loadTryCount>5)return;return void setTimeout(()=>{n.loadTryCount++,n.load()},200)}const e=n.config.optionsResponse.setting.stripe.key;n.stripe=yield Stripe(e),n.stripe&&(n.stripeElements=n.stripe.elements({mode:"payment",currency:n.currency?.toLowerCase(),amount:100*n.amount}),n.expressCheckout=n.stripeElements.create("expressCheckout"),n.expressCheckout.mount(n.stripeBtnElement.nativeElement),n.expressCheckout.on("ready",a=>{n.availablePaymentMethods.emit(a.availablePaymentMethods)}),n.expressCheckout.on("click",a=>{n.payments.setConfig({currency:"USD"}),n.onCheckoutClick.emit(a),a.resolve({})}),n.expressCheckout.on("confirm",function(){var a=(0,_.Z)(function*(r){const c=setInterval(()=>{n.config=n.payments.getConfig(),n.config?.sendResponse?.params?.client_secret&&(n.stripe?.confirmPayment({clientSecret:n.config?.sendResponse?.params?.client_secret,elements:n.stripeElements,confirmParams:{return_url:n.config?.sendPayoad?.return_url||""}}),clearInterval(c))},500)});return function(r){return a.apply(this,arguments)}}()))})()}updateElements(){this.stripeElements&&this.stripeElements.update({amount:100*this.amount,currency:this.currency?.toLowerCase()})}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-stripe-express"]],viewQuery:function(n,e){if(1&n&&t.Gf(Ka,7),2&n){let a;t.iGM(a=t.CRH())&&(e.stripeBtnElement=a.first)}},inputs:{currency:"currency",amount:"amount"},outputs:{availablePaymentMethods:"availablePaymentMethods",onCheckoutClick:"onCheckoutClick"},standalone:!0,features:[t.TTD,t.jDz],decls:2,vars:0,consts:[["id","stripeBtnElement"],["stripeBtnElement",""]],template:function(n,e){1&n&&t._UZ(0,"div",0,1)}})),o})();function Va(o,s){}function Ga(o,s){if(1&o&&t.YNc(0,Va,0,0,"ng-template",8),2&o){t.oxw();const n=t.MAs(8);t.Q6J("ngTemplateOutlet",n)}}function $a(o,s){1&o&&t._UZ(0,"div",14)}function Wa(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(3);return t.KtG(r.setOptionRoute(a))}),t.TgZ(1,"span"),t._UZ(2,"i"),t.qZA(),t.TgZ(3,"span",19),t._uU(4),t.qZA()()}if(2&o){const n=t.oxw().$implicit,e=t.oxw(3);t.ekj("is-active",e.activeButton==n.route),t.Q6J("disabled",e.optionsDisble||e.vars.isOrderLoading),t.xp6(2),t.Tol(null==n?null:n.icon),t.xp6(2),t.Oqu(null==n?null:n.name)}}function Xa(o,s){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,Wa,5,7,"button",17),t.qZA()),2&o){const n=s.$implicit;t.xp6(1),t.Q6J("ngIf",n)}}function ts(o,s){if(1&o&&(t.TgZ(0,"div",15),t.YNc(1,Xa,2,1,"div",16),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.options)}}function ns(o,s){}function es(o,s){if(1&o&&t.YNc(0,ns,0,0,"ng-template",8),2&o){t.oxw(3);const n=t.MAs(10);t.Q6J("ngTemplateOutlet",n)}}function is(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-upi",26),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.submitOrder(a))})("disableOptions",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.disableOptions(a))}
1)("cardDetailsEmit",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.cartDetails=a)}),t.qZA()}if(2&o){const n=t.oxw(3);t.Q6J("option",null==n.paymentOptions?null:n.paymentOptions.options)("cartDetails",n.cartDetails)("isOrderLoading",n.isOrderLoading)("qrURL",null==n.qrCodes?null:n.qrCodes.upi)("campaignId",n.campaignId)("origin",n.origin)("customTag",n.customTag)("hidden","u"!=n.activeButton)}}function os(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",20),t.YNc(1,es,1,1,null,0),t.TgZ(2,"app-netbanking",21),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.submitOrder(a))}),t.qZA(),t.TgZ(3,"app-cards",22),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.submitOrder(a))}),t.qZA(),t.TgZ(4,"app-paytm",23),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.submitOrder(a))}),t.qZA(),t.TgZ(5,"app-wallets",24),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.submitOrder(a))}),t.qZA(),t.YNc(6,is,1,8,"app-upi",25),t.qZA()}if(2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf","INR"!==n.pCurrency),t.xp6(1),t.Q6J("option",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.NB)("topBank",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.TOPNB)("hidden","nb"!=n.activeButton)("cartDetails",n.cartDetails)("isOrderLoading",n.isOrderLoading),t.xp6(1),t.Q6J("cartDetails",n.cartDetails)("option",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.CARD)("hidden","c"!=n.activeButton)("isOrderLoading",n.isOrderLoading)("currency",n.pCurrency)("showZip","INR"!==n.pCurrency),t.xp6(1),t.Q6J("option",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.PAYTM)("hidden","p"!=n.activeButton)("cartDetails",n.cartDetails)("qrCodeUrl",null==n.qrCodes?null:n.qrCodes.paytm)("isOrderLoading",n.isOrderLoading),t.xp6(1),t.Q6J("option",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.WALLET)("hidden","w"!=n.activeButton)("cartDetails",n.cartDetails)("isOrderLoading",n.isOrderLoading)("topWallets",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.TOPWALLET),t.xp6(1),t.Q6J("ngIf",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.UPI)}}function as(o,s){}function ss(o,s){if(1&o&&t.YNc(0,as,0,0,"ng-template",8),2&o){t.oxw(3);const n=t.MAs(10);t.Q6J("ngTemplateOutlet",n)}}function rs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-upi",30),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.submitOrder(a))})("disableOptions",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.disableOptions(a))}),t.qZA()}if(2&o){const n=t.oxw(3);t.Q6J("option",null==n.paymentOptions?null:n.paymentOptions.options)("hidden","u"!=n.optionRoute.op)("cartDetails",n.cartDetails)("isOrderLoading",n.isOrderLoading)("qrURL",null==n.qrCodes?null:n.qrCodes.upi)("campaignId",n.campaignId)("origin",n.origin)("customTag",n.customTag)}}function cs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",15),t.YNc(1,ss,1,1,null,0),t.TgZ(2,"app-cards",27),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.submitOrder(a))}),t.qZA(),t.TgZ(3,"app-paytm",28),t.NdJ("dataEmit",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.submitOrder(a))}),t.qZA(),t.YNc(4,rs,1,8,"app-upi",29),t.qZA()}if(2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf","INR"!==n.pCurrency),t.xp6(1),t.Q6J("option",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.CARD)("hidden","c"!=n.optionRoute.op)("isOrderLoading",n.isOrderLoading)("currency",n.pCurrency)("showZip","INR"!==n.pCurrency),t.xp6(1),t.Q6J("option",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.PAYTM)("hidden","p"!=n.optionRoute.op)("cartDetails",n.cartDetails)("isOrderLoading",n.isOrderLoading),t.xp6(1),t.Q6J("ngIf",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.UPI)}}function ps(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",32)(1,"div",33)(2,"h2"),t._uU(3,"Previously Used"),t.qZA()(),t.TgZ(4,"div",39)(5,"div",40)(6,"div",41),t._UZ(7,"img",42),t.TgZ(8,"span",43),t._uU(9),t.qZA()(),t.TgZ(10,"div",44),t._UZ(11,"div",45),t.qZA()(),t.TgZ(12,"app-donate-btn",46),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3);return t.KtG(a.submitOrderMobile("UPI",a.prevUsedUpi))}),t.qZA()()()}if(2&o){const n=t.oxw(3);t.xp6(1),t.ekj("mt-0",n.vars.askTipOnPayOpt),t.xp6(6),t.s9C("src",n.vars.upiImages[n.prevUsedUpi],t.LSH
1),t.Q6J("alt",n.prevUsedUpi),t.xp6(2),t.Oqu(n.prevUsedUpi),t.xp6(3),t.Q6J("amount",null==n.cartDetails?null:n.cartDetails.donated_amount)("isOrderLoading",n.isOrderLoading||n.vars.isOrderLoading)}}function ls(o,s){if(1&o&&(t.TgZ(0,"div",56),t._uU(1,"RECOMMENDED"),t.qZA()),2&o){const n=t.oxw(4);t.ekj("AB",n.vwo.payment_otd_AB())}}function ds(o,s){1&o&&(t.TgZ(0,"div",62),t._UZ(1,"span"),t.qZA())}function us(o,s){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"div")(2,"div",60),t.NdJ("click",function(){t.CHM(n);const a=t.oxw().$implicit,r=t.oxw(5);return t.KtG(r.vwo.payment_otd_AB()?r.submitOrderMobile("UPI",a):null)}),t.YNc(3,ds,2,0,"div",61),t.qZA()(),t.BQk()}if(2&o){const n=t.oxw().$implicit,e=t.oxw(5);t.xp6(1),t.Gre("item ",n,""),t.ekj("active",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n),t.xp6(1),t.ekj("blurBack",e.vars.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)!==n),t.xp6(1),t.Q6J("ngIf",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n)}}function ms(o,s){if(1&o&&(t.ynx(0),t.YNc(1,us,4,8,"ng-container",0),t.BQk()),2&o){const n=s.$implicit,e=s.index,a=t.oxw(5);t.xp6(1),t.Q6J("ngIf",(null==a.paymentOptions||null==a.paymentOptions.options?null:a.paymentOptions.options.TOPUPI[n])&&e<5)}}function _s(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",57),t.YNc(1,ms,2,1,"ng-container",16),t.TgZ(2,"div",58),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(4);return t.KtG(a.vwo.payment_otd_AB()?a.goToInnerRoute("u","UPI"):null)}),t._UZ(3,"app-icon",59),t.qZA()()}if(2&o){const n=t.oxw(4);t.xp6(1),t.Q6J("ngForOf",n.topUpiApps),t.xp6(2),t.Q6J("name",n.vwo.payment_otd_AB()?"chevron_right":"arrow_forward_ios")}}function gs(o,s){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",47)(2,"div",48)(3,"div",49)(4,"div",50),t._uU(5,"UPI"),t.qZA(),t.YNc(6,ls,2,2,"div",51),t.qZA(),t.TgZ(7,"div",52)(8,"div",53),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3);return t.KtG(a.goToInnerRoute("u","UPI"))}),t._uU(9,"View All UPI"),t.qZA()()(),t.TgZ(10,"div",54),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3);return t.KtG(a.vwo.payment_otd_AB()?null:a.goToInnerRoute("u","UPI"))}),t.YNc(11,_s,4,2,"div",55),t.qZA()(),t.BQk()}if(2&o){const n=t.oxw(3);t.xp6(6),t.Q6J("ngIf",!(null!=n.paymentOptions&&null!=n.paymentOptions.options&&n.paymentOptions.options.vpa_collect_enabled)),t.xp6(5),t.Q6J("ngIf",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.TOPUPI)}}function hs(o,s){1&o&&t._UZ(0,"app-icon",63)}function fs(o,s){1&o&&(t.TgZ(0,"i",64),t._uU(1,"arrow_forward_ios"),t.qZA())}function Cs(o,s){1&o&&(t.TgZ(0,"div",72),t._UZ(1,"span"),t.qZA())}function Os(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",68),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw(4);return t.KtG(c.submitOrderMobile("NB",r))}),t.TgZ(1,"div",69),t.YNc(2,Cs,2,0,"div",70),t.qZA(),t.TgZ(3,"span",71),t._uU(4),t.qZA()()}if(2&o){const n=s.$implicit,e=t.oxw(4);t.xp6(1),t.Tol(n),t.ekj("loader-key",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n),t.xp6(1),t.Q6J("ngIf",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n),t.xp6(2),t.Oqu(null==e.paymentOptions||null==e.paymentOptions.options?null:e.paymentOptions.options.TOPNB[n])}}function Ps(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",32)(1,"div",33)(2,"h2"),t._uU(3,"Netbanking"),t.qZA(),t.TgZ(4,"span")(5,"a",65),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3),r=t.MAs(4);return t.KtG(a.openSelectMenu(r,"Net Banking"))}),t._uU(6,"View All Banks"),t.qZA()()(),t.TgZ(7,"div",66),t.YNc(8,Os,5,7,"div",67),t.qZA()()}if(2&o){const n=t.oxw(3);t.xp6(7),t.ekj("prevent-click",n.vars.isOrderLoading)("blurBack",n.vars.isOrderLoading),t.xp6(1),t.Q6J("ngForOf",n.getObjectKeys(null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.TOPNB))}}function bs(o,s){1&o&&(t.TgZ(0,"div",76),t._UZ(1,"span"),t.qZA())}function Ms(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",68),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw(4);return t.KtG(c.submitOrderMobile("WALLET",r))}),t.TgZ(1,"div",74),t.YNc(2,bs,2,0,"div",75),t.qZA(),t.TgZ(3,"span",71),t._uU(4),t.qZA()()}if(2&o){const n=s.$implicit,e=t.oxw(4);t.xp6(1),t.Tol(n),t.ekj("loader-key",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n),t.xp6(1),t.Q6J("ngIf",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n),t.xp6(2),t.Oqu(null==e.paymentOptions||null==e.paymentOptions.options?null:e.paymentOptions.options.TOPWALLET[n])}}function xs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",73)(1,"div",33)(2,"h2"),t._uU(3,"Wallets"),t.qZA(),t.TgZ(4,"span")(5,"a",65),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(3),r=t.MAs(6);return t.KtG(a.openSelectMenu(r,"Wallets"))}),t._uU(6,"View All Wallets"),t.qZA()()(),t.TgZ(7,"div",66),t.YNc(8,Ms,5,7,"div",67),t.qZA()()}if(2&o){const n=t.oxw(3);t.xp6(7),t.ekj("prevent-click",n.vars.isOrderLoading)("blurBack",n.vars.isOrderLoading),t.xp6(1),t.Q6J("ngForOf",n.getObjectKeys(null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.TOPWALLET,"wallet"))}}function vs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div"),t.YNc(1,ps,13,7,"div",31),t.YNc(2,gs,12,2,"ng-container",0),t.TgZ(3,"div",32)(4,"div",33)(5,"h2"),t._uU(6,"DEBIT / CREDIT CARD"),t.qZA()(),t.TgZ(7,"div",34),t.NdJ("click",function(){t.CHM(n);const a=t.oxw(2);return t.KtG(a.goToInnerRoute("c","Debit/Credit"))}),t._UZ(8,"img",35),t.YNc(9,hs,1,0,"app-icon",36),t.YNc(10,fs,2,0,"i",37),t.qZA()(),t.YNc(11,Ps,9,5,"div",31),t.YNc(12,xs,9,5,"div",38),t.qZA()}if(2&o){const n=t.oxw(2);t.ekj("prevent-click",n.vars.isOrderLoading),t.xp6(1),t.Q6J("ngIf",!(null!=n.paymentOptions&&null!=n.paymentOptions.options&&n.paymentOptions.options.vpa_collect_enabled)&&(null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.PREVIOUSPAYMENTGATEWAY)&&n.prevUsedUpi),t.xp6(1),t.Q6J("ngIf",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.UPI),t.xp6(2),t.ekj("mt-0",n.vars.askTipOnPayOpt&&!(null!=n.paymentOptions&&null!=n.paymentOptions.options&&n.paymentOptions.options.UPI)),t.xp6(3),t.ekj("prevent-click",n.vars.isOrderLoading)("blurBack",n.vars.isOrderLoading),t.xp6(2),t.Q6J("ngIf",n.vwo.payment_otd_AB()),t.xp6(1),t.Q6J("ngIf",!n.vwo.payment_otd_AB()),t.xp6(1),t.Q6J("ngIf",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.TOPNB),t.xp6(1),t.Q6J("ngIf",null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.TOPWALLET)}}function ys(o,s){if(1&o&&(t.TgZ(0,"div",9),t.YNc(1,$a,1,0,"div",10),t.YNc(2,ts,2,1,"div",11),t.YNc(3,os,7,23,"div",12),t.YNc(4,cs,5,11,"div",11),t.YNc(5,vs,13,14,"div",13),t.qZA()),2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!(null!=n.options&&n.options.length)),t.xp6(1),t.Q6J("ngIf",(null==n.options?null:n.options.length)>1&&!n.isMobile),t.xp6(1),t.Q6J("ngIf",!n.isMobile),t.xp6(1),t.Q6J("ngIf",n.isMobile),t.xp6(1),t.Q6J("ngIf",n.isMobile&&!n.optionRoute.op)}}function ws(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"mat-icon",84),t._uU(3,"keyboard_arrow_right"),t.qZA()()),2&o){const n=t.oxw().$implicit,e=t.oxw(2);t.xp6(1),t.hij("",null==e.paymentOptions||null==e.paymentOptions.options?null:e.paymentOptions.options.NB[n]," ")}}function ks(o,s){1&o&&(t.TgZ(0,"div",76),t._UZ(1,"span"),t.qZA())}function Zs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",82)(1,"button",83),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw(2);return t.KtG(c.submitOrderMobile("NB",r))}),t.YNc(2,ws,4,1,"span",0),t.YNc(3,ks,2,0,"div",75),t.qZA()()}if(2&o){const n=s.$implicit,e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.isOrderLoading),t.xp6(1),t.Q6J("ngIf",!(e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n)),t.xp6(1),t.Q6J("ngIf",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n)}}function Ts(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",77)(1,"div",78)(2,"button",79),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.location.back())}),t.TgZ(3,"mat-icon"),t._uU(4,"arrow_back"),t.qZA(),t._uU(5," BACK"),t.qZA()(),t.TgZ(6,"app-input",80),t.NdJ("OnChange",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.search(a))}),t.qZA(),t.TgZ(7,"mat-list"),t.YNc(8,Zs,4,3,"div",81),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(2),t.ekj("visible-hide",n.vars.isOrderLoading),t.xp6(4),t.Q6J("control",n.searchText)("group",n.searchForm),t.xp6(2),t.Q6J("ngForOf",n.getObjectKeys(null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.NB))}}function As(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"mat-icon",84),t._uU(3,"keyboard_arrow_right"),t.qZA()()),2&o){const n=t.oxw().$implicit,e=t.oxw(2);t.xp6(1),t.hij("",null==e.paymentOptions||null==e.paymentOptions.options?null:e.paymentOptions.options.WALLET[n]," ")}}function Is(o,s){1&o&&(t.TgZ(0,"div",76),t._UZ(1,"span"),t.qZA())}function Ss(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",86)(1,"button",87),t.NdJ("click",function(){const r=t.CHM(n).$implicit,c=t.oxw(2);return t.KtG(c.submitOrderMobile("WALLET",r))}),t.YNc(2,As,4,1,"span",0),t.YNc(3,Is,2,0,"div",75),t.qZA()()}if(2&o){const n=s.$implicit,e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",!(e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n)),t.xp6(1),t.Q6J("ngIf",e.isOrderLoading&&(null==e.submitOrderData?null:e.submitOrderData.mode_value)===n)}}function Ns(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",77)(1,"div",78)(2,"button",79),t.NdJ("click",function(){t.CHM(n);const a=t.oxw();return t.KtG(a.location.back())}),t.TgZ(3,"mat-icon"),t._uU(4,"arrow_back"),t.qZA(),t._uU(5," BACK"),t.qZA()(),t.TgZ(6,"mat-list"),t.YNc(7,Ss,4,2,"div",85),t.qZA()()}if(2&o){const n=t.oxw();t.xp6(2),t.ekj("visible-hide",n.vars.isOrderLoading),t.xp6(5),t.Q6J("ngForOf",n.getObjectKeys(null==n.paymentOptions||null==n.paymentOptions.options?null:n.paymentOptions.options.WALLET,"wallet"))}}function Ds(o,s){}const Fs=function(){return{tooltipMessage:"Helps us keep our platform free for those who need to start fundraisers. It also covers the cost of verification, customer support, and technology that ensures contributions reach the people who need them most"}};function Es(o,s){if(1&o&&(t.TgZ(0,"div",88)(1,"div",89)(2,"span",50),t._uU(3," Total Amount "),t._UZ(4,"span",90),t.ALo(5,"currencyIcon"),t.TgZ(6,"span",91),t._uU(7),t.qZA()(),t.TgZ(8,"span",92),t._uU(9," Including fundraiser support fee "),t.YNc(10,Ds,0,0,"ng-template",93),t.qZA()()()),2&o){const n=t.oxw(),e=t.MAs(12);t.xp6(4),t.Q6J("innerHtml",t.lcZ(5,4,null==n.cartDetails?null:n.cartDetails.currency),t.oJD),t.xp6(3),t.Oqu(null==n.cartDetails?null:n.cartDetails.donated_amount),t.xp6(3),t.Q6J("ngTemplateOutlet",e)("ngTemplateOutletContext",t.DdM(6,Fs))}}function qs(o,s){1&o&&t._UZ(0,"div",96)}function Ls(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",97)(1,"div",98)(2,"app-stripe-express",99),t.NdJ("availablePaymentMethods",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.onStripeExpressReady(a))})("onCheckoutClick",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.onStripeCheckoutClick(a))}),t.qZA()(),t.TgZ(3,"div",100),t._UZ(4,"div",101),t.TgZ(5,"div",102),t._uU(6,"or pay with card"),t.qZA(),t._UZ(7,"div",101),t.qZA()()}if(2&o){const n=t.oxw(2);t.ekj("oneTapEnable",n.showOneTapPay),t.Q6J("hidden",!n.showStripeLink),t.xp6(2),t.Q6J("amount",(null==n.cartDetails?null:n.cartDetails.donated_amount)||100)("currency",(null==n.cartDetails?null:n.cartDetails.currency)||"usd")}}function Js(o,s){if(1&o&&(t.YNc(0,qs,1,0,"div",94),t.YNc(1,Ls,8,5,"div",95)),2&o){const n=t.oxw();t.Q6J("ngIf",n.isMobile&&n.showStripeLink),t.xp6(1),t.Q6J("ngIf",null==n.payConfig?null:n.payConfig.optionsResponse)}}function Rs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div",103,104),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(1),r=t.oxw();return t.KtG(r.vars.isMobile?a.show():"")}),t.O4$(),t.TgZ(2,"svg",105),t._UZ(3,"path",106)(4,"path",107)(5,"path",108),t.qZA()()}2&o&&t.Q6J("matTooltip",s.tooltipMessage)}let wt=(()=>{class o{constructor(){(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"paymentService",(0,t.f3M)(L.t)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"actRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"scriptLoaderService",(0,t.f3M)(tt.$)),(0,i.Z)(this,"storage",(0,t.f3M)(X.V)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"domSanitizer",(0,t.f3M)(So.H7)),(0,i.Z)(this,"fundraiserService",(0,t.f3M)(ct.R)),(0,i.Z)(this,"events",(0,t.f3M)(x.n)),(0,i.Z)(this,"location",(0,t.f3M)(l.Ye)),(0,i.Z)(this,"zone",(0,t.f3M)(t.R0b)),(0,i.Z)(this,"pusherService",(0,t.f3M)(No.y)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"paymentV2",(0,t.f3M)(B.i)),(0,i.Z)(this,"bottomSheet",(0,t.f3M)(w.ch)),(0,i.Z)(this,"gCaptchaComponent",void 0),(0,i.Z)(this,"config",void 0),(0,i.Z)(this,"campaignId",void 0),(0,i.Z)(this,"customTag",void 0),(0,i.Z)(this,"origin",void 0),(0,i.Z)(this,"position",void 0),(0,i.Z)(this,"contributeDetails",void 0),(0,i.Z)(this,"stripeSwitch",void 0),(0,i.Z)(this,"isQR",void 0),(0,i.Z)(this,"eventCause",void 0),(0,i.Z)(this,"peo
1pleServed",void 0),(0,i.Z)(this,"updateId",void 0),(0,i.Z)(this,"subscribed",void 0),(0,i.Z)(this,"skipFailedCase",void 0),(0,i.Z)(this,"payment_method_change",!0),(0,i.Z)(this,"sip",!1),(0,i.Z)(this,"showOptions",!0),(0,i.Z)(this,"isSipStory",void 0),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"cartDetails",void 0),(0,i.Z)(this,"pCurrency",void 0),(0,i.Z)(this,"paymentOptions",void 0),(0,i.Z)(this,"options",[]),(0,i.Z)(this,"optionRoute",void 0),(0,i.Z)(this,"activeButton",void 0),(0,i.Z)(this,"activeOption",void 0),(0,i.Z)(this,"dataEmitedFromChild",void 0),(0,i.Z)(this,"topBanks",[{key:"NB_HDFC",label:"HDFC"},{key:"NB_AXIS",label:"AXIS"},{key:"NB_ICICI",label:"ICICI"},{key:"NB_SBI",label:"SBI"},{key:"NB_KOTAK",label:"KOTAK"}]),(0,i.Z)(this,"isLoading",!1),(0,i.Z)(this,"isOrderLoading",!1),(0,i.Z)(this,"reward",void 0),(0,i.Z)(this,"qrCodes",{paytm:"",upi:""}),(0,i.Z)(this,"optionsDisble",void 0),(0,i.Z)(this,"generalSubs",[]),(0,i.Z)(this,"stripeFailed",void 0),(0,i.Z)(this,"userdata",void 0),(0,i.Z)(this,"tokenUS",void 0),(0,i.Z)(this,"tyParams",void 0),(0,i.Z)(this,"searchForm",void 0),(0,i.Z)(this,"searchText",void 0),(0,i.Z)(this,"bankList",void 0),(0,i.Z)(this,"submitOrderData",void 0),(0,i.Z)(this,"captchaResponse",""),(0,i.Z)(this,"showStripeLink",!1),(0,i.Z)(this,"payConfig",void 0),(0,i.Z)(this,"showOneTapPay",!1),(0,i.Z)(this,"lastOrderData",void 0),(0,i.Z)(this,"prevUsedUpi",void 0),(0,i.Z)(this,"topUpiApps",[""]),(0,i.Z)(this,"stripeTokens",{})}ngOnInit(){"f"===this.actRoute.snapshot.queryParams.st&&!this.isQR&&!this.skipFailedCase&&(this.paymentUtil.initaiteQr=!0),this.getCart(),this.actRoute.queryParams.subscribe(n=>this.optionRoute=n),this.generalSubs.push(this.paymentUtil.paymentCurrency.subscribe({next:n=>this.pCurrency=n})),this.generalSubs.push(this.paymentUtil.selectedReward.subscribe({next:n=>this.reward=n})),this.generalSubs.push(this.paymentUtil.paymentOptionsObs.subscribe(n=>this.setDefaultPaymentOption(n))),this.generalSubs.push(this.paymentUtil.miniApps.subscribe(n=>this.submitOrder(n))),this.generalSubs.push(this.vars.userData.subscribe(n=>this.userdata=n)),this.searchForm=new p.cw({searchText:this.searchText=new p.NI("")}),this.generalSubs.push(this.vars.reload_qr_code.subscribe(n=>{n&&(this.qrCodes={paytm:"",upi:""})})),this.generalSubs.push(this.paymentService.onConfigChange$.subscribe(n=>{console.log("Config change detected in options nav",n),this.payConfig=this.paymentService.getConfig(),this.getPreviousUpiMethod(),n.optionsResponse&&this.paymentOptions.options.TOPUPI&&(this.topUpiApps=Object.keys(this.util.getSortedObject(this.paymentOptions.options.TOPUPI,this.vars.priorityTopUpiApps)),"iOS"===this.util.getMobileOperatingSystem()&&(this.topUpiApps=this.topUpiApps.filter(e=>this.vars.iosSupportedIntent.includes(e))))}))}getPreviousUpiMethod(){const n=this.getObjectKeys(this.paymentOptions?.options?.PREVIOUSPAYMENTGATEWAY,"UPI")?.[0];if(!n)return null;this.prevUsedUpi=this.vars.previusUPIMethod.find(e=>e===n)??null}getCart(){this.generalSubs.push(this.paymentUtil.cartResponse.subscribe({next:n=>{n&&(this.cartDetails=n,("healthfirst_payment_standalone"===this.vars.pageName||this.cartDetails?.resetQR)&&!this.isMobile&&(this.qrCodes.paytm="",this.qrCodes.upi="",this.paymentUtil.initaiteQr=!0),this.qrCodes&&(this.qrCodes.paytm||this.qrCodes.upi)&&(this.qrCodes={paytm:"",upi:""},this.setOptionRoute({name:"Debit/Credit",route:"c"})))}}))}setDefaultPaymentOption(n){n&&n.options&&(this.paymentOptions=n,this.options=[],this.setOptionsObject(n),"INR"===this.pCurrency||this.isMobile?"INR"===this.pCurrency&&this.isQR?(this.setOptionRoute(this.isQR),this.isMobile||this.util.arrayMovePosition(this.options,"name","UPI",0)):"INR"===this.pCurrency&&(0!==Object.keys(this.vars.setPaymentOption.getValue()).length?this.openPaymentTab():this.isMobile?this.setOptionRoute({name:"Debit/Credit",route:"c"}):(this.util.arrayMovePosition(this.options,"name","UPI",0),this.setOptionRoute({name:this.options[0].name,route:this.options[0].route}))):this.setOptionRoute({name:"Debit/Credit",route:"c"}))}openPaymentTab(){this.generalSubs.push(this.vars.setPaymentOption.subscribe({next:n=>{switch(!0){case n.card:this.setOptionRoute({name:"Debit/Credit",route:"c"});break;case n.netbanking:this.setOptionRoute({name:"Net Banking",route:"nb"})}}}))}setOptionRoute(n){this.activeOption&&this.paymentOptions.doNotSetOption&&this.paymentUtil.initaiteQr?n=this.activeOption:this.activeOption=n,this.vars.isOrderLoading=!1,this.paymentOptions.doNotSetOption=!1,this.cartDetails&&(this.sip||this.checkoutGTMEvent({iso_currency:this.pCurrency,payment_mode:n.name,donated_amount:this.cartDetails?.donated_amount_inr,tip_amount_inr:this.cartDetails?.tip_amount_inr},1)),this.options.some(e=>e.route===n.route)?("UPI"===n.name&&!this.qrCodes.upi&&this.paymentUtil.initaiteQr?this.submitOrder({mode:n.name,mode_value:"DESKTOPQR"}):"Paytm"===n.name&&!this.qrCodes.paytm&&this.paymentUtil.initaiteQr&&this.submitOrder({mode:n.name.toUpperCase(),mode_value:"DESKTOPQR"}),this.activeButton=n.route):this.activeButton=this.options[0]?.route}disableOptions(n){this.optionsDisble=n}goToInnerRoute(n,e){this.checkoutGTMEvent({iso_currency:this.pCurrency,payment_mode:e,donated_amount:this.cartDetails?.donated_amount_inr,tip_amount_inr:this.cartDetails?.tip_amount_inr},1),this.router.navigate([],{queryParams:{op:n},queryParamsHandling:"merge"})}getObjectKeys(n,e){if(n){if("wallet"===e)for(const a of Object.keys(n))n[a]=-1===n[a].search("Wallet")?n[a]:n[a].replace("Wallet","");return this.util.sortArray(Object.keys(n))}}openSelectMenu(n,e){this.checkoutGTMEvent({iso_currency:this.pCurrency,payment_mode:e,donated_amount:this.cartDetails?.donated_amount_inr,tip_amount_inr:this.cartDetails?.tip_amount_inr},1),this.router.navigate([],{queryParams:{modal:"list"},queryParamsHandling:"merge"}),this.dialog.open(n,{width:"100vw",maxWidth:"100vw",height:"100%",maxHeight:"100vh"})}setOptionsObject(n){let e=0;for(const a of Object.keys(n.options)){switch(a){case"NB":this.pushToOptionsArray("Net Banking","icon-bank","nb",n.options[a],e);break;case"CARD":this.pushToOptionsArray("Debit/Credit","icon-cardsecure","c",n.options[a],e);break;case"WALLET":this.pushToOptionsArray("Wallets","icon-wallet","w",n.options[a],e);break;case"PAYTM":this.pushToOptionsArray("Paytm","icon-wallet","p",n.options[a],e);break;case"UPI":this.pushToOptionsArray("UPI","icon-wallet","u",n.options[a],e);break;default:e--}e++}this.util.sortArrayOfBject(this.options,"name")}pushToOptionsArray(n,e,a,r,c){r&&(this.options[c]={name:n,icon:e,route:a,data:r})}submitOrderMobile(n,e){if(this.isOrderLoading)return!1;this.router.navigate([],{queryParams:{modal:null},queryParamsHandling:"merge"}),this.submitOrder({mode:n,mode_value:e})}submitOrder(n){this.vars.selected_insurance&&this.cartDetails&&this.vars.selected_insurance.plan_amount!==this.cartDetails.donated_amount&&(this.vars.createCart=!0,this.cartDetails=null),this.submitOrderData=n,this.vars.createCart&&!this.cartDetails?this.subscribed&&this.config&&this.config.pledgeMoreAmou
1nt?this.paymentUtil.createCart(this.config.pledgeMoreAmount,!0).then(()=>this.submitOrderAPI(n)):this.subscribed?this.paymentUtil.createCart(this.subscribed.amount).then(()=>this.submitOrderAPI(n)):this.vars.selected_insurance?.plan_amount?(this.payment_method_change=!1,this.paymentUtil.createCart(this.vars.selected_insurance.plan_amount,!1,!0).then(()=>this.submitOrderAPI(n))):this.util.openSnackBar("You have not subscribed to any SIP yet!","error"):this.vars.createCartNewUser&&!this.cartDetails?this.paymentUtil.createCart(this.vars.createCartNewUser).then(()=>this.submitOrderAPI(n)):this.submitOrderAPI(n)}submitOrderAPI(n){var e=this;return(0,_.Z)(function*(){let a=e.vars.pageName||e.vars.campaignType;e.vars.fundraiser.story_title&&"payment_page"===e.vars.pageName&&(a="stories"),e.dataEmitedFromChild=n;const r=e.storage.getDecodedCookies("k_utm"),c={campaign_id:e.cartDetails.campaign_id||e.campaignId,cart_id:e.cartDetails.id,mode:n.mode,gateway:e.paymentOptions.gateway,mode_value:n.mode_value,bin:"CARD"===n.mode&&!n.customer_id&&n.card_number_fill?n.card_number_fill.substr(0,6):null,page_type:a,ab_testname:e.events.ab.abtestname||"",ab_value:e.events.ab.abvalue||"",vpa:n.VPA||"",tenure:n.tenure||"",payment_gateway:n.payment_gateway||"",is_indian:e.cartDetails.indian||"",cause_id:e.eventCause?e.eventCause.id:""};if(!e.payment_method_change&&e.subscribed&&(c.subscription_id=e.subscribed.id),e.vars.donateMultiPatient&&(c.is_multi_patient_campaign=!0),e.vars.fundraiser.support_campaign&&(c.support_campaign_id=e.vars.fundraiser.support_campaign.id),e.stripeSwitch&&"INR"===e.pCurrency&&!e.stripeFailed&&(c.payment_gateway="stripe_recurring"),n.donor_pincode&&(c.donor_pincode=n.donor_pincode),r&&(c.utm_campaign=r?.utm_campaign||"",c.utm_medium=r?.utm_medium||"",c.utm_source=r?.utm_source||"",c.utm_term=r?.utm_term||"",c.utm_content=r?.utm_content||"",c.utm_placement=r?.utm_placement||""),n.auto_pay_m1&&(c.auto_pay_m1=n.auto_pay_m1),n.month_interval&&(c.month_interval=n.month_interval),n.ketto_wallet&&(c.ketto_wallet=n.ketto_wallet),"stripe_recurring"===c.payment_gateway&&"INR"===e.pCurrency&&"CARD"===n.mode&&["tp"].includes(e.origin)&&e.stripeSwitch&&(e.stripeFailed=!0,c.payment_gateway="",c.ketto_wallet=1),e.cartDetails.sip_cause&&(c.sip_cause=e.cartDetails.sip_cause),e.cartDetails?.bulkdonation&&(c.bulkdonation=e.cartDetails.bulkdonation),e.vars.selected_insurance?.plan_id&&(c.vendor=e.vars.selected_insurance?.vendor,c.plan=e.vars.selected_insurance?.plan,c.plan_id=e.vars.selected_insurance?.plan_id,e.vars.selectedIllness?.illnessAmount&&(c.critical_illness=e.vars.selectedIllness.illnessAmount)),e.vars.couponDetails&&(c.coupon_code=e.vars.couponDetails.coupon_code),e.vars.selectedKCart?.length>0?(c.campaign_products=e.vars.selectedKCart,e.storage.check("selectedKCart",e.vars.selectedKCart)):e.storage.delete("selectedKCart"),n?.oneTapPay&&(c.repeat_donor=1,c.card_no=n?.card_no,c.customer_id=n?.customer_id),"CARD"===n?.mode&&n?.card_number_fill&&"INR"===e.pCurrency){const m=yield e.checkCardDetails();console.log("Card country:",m?.card?.country),m&&"IN"!==m?.card?.country&&(c.payment_gateway="stripe",c.is_international_card=!0),e.events.sendSystemEvent({eventName:"inr_non_indian_card",info_1:m?.card?.country||"",card_country:m?.card?.country||""}).subscribe(T=>T)}"UPI"===n?.mode&&"DESKTOPQR"===n?.mode_value&&e.vwo.phonepe_qr_AB()&&(c.payment_gateway="phonepe"),e.vars.supportFee&&e.vwo.support_fee_AB()&&!e.sip&&(c.support_fee_ab=1),n?.vpa_type&&(c.vpa_type=n?.vpa_type),e.placeOrderAPI(c,n)})()}placeOrderAPI(n,e){var a=this;this.isOrderLoading=!0,this.vars.isOrderLoading=!0,n?.vpa&&this.vars.recommendedVpa&&n?.vpa!==this.vars.recommendedVpa&&this.events.sendSystemEvent({eventName:"vpa_changed",info_1:"new vpa = "+n?.vpa,info_2:"old vpa = "+this.vars.recommendedVpa}).subscribe(r=>r),this.paymentService.placeOrder(n,this.cartDetails.campaign_id||this.campaignId).subscribe(function(){var r=(0,_.Z)(function*(c){const m=c;e.auto_pay_m1&&(m.data.auto_pay_m1=e.auto_pay_m1),yield a.trackingEvents(m.data),m.data.payment_mode.match("UPI|PAYTM")&&a.pusherService.activateUPIPusher(c.data),a.storage.checkFromSession(c.data.order_id,a.cartDetails),m.data.payment_gateway.match("stripe|stripeindia")&&"LINK"!==m?.data?.payment_mode&&!e?.oneTapPay?a.stripePayment(m,e):m.data.payment_gateway.match("juspay")&&"CARD"===m.data.payment_mode?a.juspayCheck(m):a.sendOrder(m.data,e)});return function(c){return r.apply(this,arguments)}}(),r=>{this.isOrderLoading=!1,this.vars.isOrderLoading=!1,r?.error?.message?.match("Invalid card number")?this.vars.oneTapPayError.next("invalid"):r?.error?.message?.match("Limit exceeded")&&this.vars.oneTapPayError.next("limit_exceed"),n?.vpa&&(this.vars.showTimer=!1,this.vars.upi_payment_status.next("failed"))})}stripePayment(n,e){this.stripeSwitch&&"INR"===this.pCurrency?this.stripeSwitchForRecurringDonations(n,e):this.stripeSwitch&&"INR"!==this.pCurrency&&e.customer_id?this.sendOrder(n.data,{customer_id:e.customer_id,save_card:this.dataEmitedFromChild.save_card}):this.getStripeToken(n)}getStripeToken(n,e=this.paymentOptions.setting.stripe.key){var a=this;return(0,_.Z)(function*(){try{if("INR"===a.pCurrency&&a.dataEmitedFromChild?.card_number_fill&&a.stripeTokens[a.dataEmitedFromChild.card_number_fill])return void a.sendOrder(n.data,{token:a.stripeTokens[a.dataEmitedFromChild.card_number_fill].id,save_card:a.dataEmitedFromChild.save_card});const r=yield a.createStripeCardToken(a.dataEmitedFromChild,e);a.sendOrder(n.data,{token:r,save_card:a.dataEmitedFromChild.save_card})}catch(r){a.util.openSnackBar(r.message,"error"),a.isOrderLoading=!1,a.vars.isOrderLoading=!1}})()}stripeSwitchForOneTimeDonations(n,e){var a=this;return(0,_.Z)(function*(){try{if(e.customer_id)a.sendOrder(n.data,{customer_id:e.customer_id});else{a.tokenUS=yield a.createStripeCardToken(a.dataEmitedFromChild,a.paymentOptions?.setting?.stripe?.key_us);const r=yield a.createStripeCardToken(a.dataEmitedFromChild,a.paymentOptions.setting.stripe.key);a.sendOrder(n.data,{token:r,save_card:a.dataEmitedFromChild.save_card})}}catch(r){a.util.openSnackBar(r.message,"error"),a.isOrderLoading=!1,a.vars.isOrderLoading=!1}})()}stripeSwitchForRecurringDonations(n,e){e.customer_id?this.sendOrder(n.data,this.vars.stripeUsToken&&!this.stripeFailed?{token:this.vars.stripeUsToken,save_card:this.dataEmitedFromChild.save_card}:{customer_id:e.customer_id,save_card:this.dataEmitedFromChild.save_card}
1):this.stripeFailed?this.getStripeToken(n):this.getStripeToken(n,this.paymentOptions?.setting?.stripe?.key_us)}createStripeCardToken(n,e=this.paymentOptions.setting.stripe.key){var a=this;return new Promise(function(){var r=(0,_.Z)(function*(c,m){try{a.paymentService.createStripeToken({key:e,"card[number]":n.card_number_fill,"card[cvc]":n.card_cvv_fill,"card[exp_month]":n.card_month_fill,"card[exp_year]":n.card_year_fill}).subscribe({next:Z=>{c(Z.id)},error:Z=>{m(Z?.error?.error)}})}catch{m(!1)}});return function(c,m){return r.apply(this,arguments)}}())}juspayCheck(n){this.dataEmitedFromChild.merchant_id=this.paymentOptions.setting.juspay.key,this.scriptLoaderService.load("jquery").then(()=>{this.scriptLoaderService.load("juspay").then(()=>{this.sendOrder(n.data)})})}sendOrder(n,e){var a=this;const r={order_id:n.order_id,return_url:this.vars.domainData.url+Do.N.base_ref+`payment-route?or=${this.origin}&id=${this.cartDetails.campaign_id||this.campaignId}&oi=${n.order_id}&ct=${this.customTag}&pcurrency=${n.iso_currency}`,token:e&&e.token?e.token:"",token_1:this.tokenUS||"",save_card:e&&e.save_card?e.save_card:"",customer_id:e&&e.customer_id?e.customer_id:null,account_no:e&&e.bank_account?e.bank_account:"",ifsc_code:e&&e.bank_ifsc?e.bank_ifsc:"",bank_code:e&&e.bank_code?e.bank_code:"",bank_name:e&&e.bank_name?e.bank_name:""},c=this.actRoute.snapshot.queryParams;e&&e.auth_mode&&(r.auth_mode=e.auth_mode),this.vars.fundraiser&&this.vars.fundraiser.cause&&(r.return_url=r.return_url.concat(`&cause=${this.vars.fundraiser.cause.info_1}`)),this.vars.createCart&&(r.return_url=r.return_url.concat(`&email=${this.userdata.email}`),r.payment_method_change=this.payment_method_change?this.subscribed?.id:null),this.vars.thirdPartyApp&&(r.return_url=r.return_url.concat("&social=0&payops=0&utm_source=phonepe")),this.eventCause&&this.eventCause.id&&(r.return_url=r.return_url.concat(`&eventPage=true&ward_id=${this.eventCause.id}&served=${this.peopleServed}&ward_name=${this.eventCause.info_4}`)),this.updateId&&(r.return_url=r.return_url.concat(`&fmd_id=${c.fmd_id}&update_id=${this.updateId}&action_date=${c.action_date}&donated_amount=${c.donated_amount}&donated_currency=${c.donated_currency}&is_donor=${c.is_donor}`)),"f"===c.ord&&(r.return_url=r.return_url.concat(`&pn=${c.pn}&amt=${n.donated_amount}&ord=f`)),this.router.url.match("new/thankyou|new/kettokart/thankyou")&&(r.return_url=r.return_url.concat(`&typOr=${c.or}`)),(this.router.url.match("new/sip/welcome")||this.router.url.match("new/sip/payment-standalone"))&&(r.return_url=r.return_url.concat(`&amt=${n.donated_amount}`)),c.utm_campaign&&c.utm_campaign.includes("mbm")&&(r.return_url=r.return_url.concat(`&utm_campaign=${c.utm_campaign}`)),c.offer&&(r.return_url=r.return_url.concat(`&offer=${c.offer}`));const m=this.userdata&&this.userdata.aggdonationall&&this.userdata.aggdonationall?.funds?"rp":"fs";r.return_url=r.return_url.concat(`&dnr=${m}&lpm=${n.payment_gateway.match("stripe")?"strp":"nstrp"}`),this.submitOrderData&&this.submitOrderData.lastPaymentBank&&(r.return_url=r.return_url+`&lpb=${this.submitOrderData.lastPaymentBank}`),this.submitOrderData&&this.submitOrderData.mode&&(r.return_url=r.return_url+`&last_pay_mode=${this.submitOrderData.auth_mode||this.submitOrderData.mode}`),(e&&e.auto_pay_m1||n.auto_pay_m1)&&(r.return_url=r.return_url+"&auto_pay_m1=1"),this.vars.tyParams={id:this.cartDetails.campaign_id||this.campaignId,or:this.origin,oi:n.order_id,dnr:m,lgm:n.payment_gateway.match("stripe")?"strp":"nstrp",offer:c.offer||null,ct:this.customTag},this.config&&this.config.pledgeMoreAmount&&(r.return_url=r.return_url+`&amt=${this.config.pledgeMoreAmount}&pledgeMore=1`,this.vars.tyParams.pledgeMore=1),c.coupon&&(r.return_url=r.return_url+`&coupon=${c.coupon}`,this.vars.tyParams.coupon=c.coupon),c.month_interval&&(this.vars.tyParams.month_interval=c.month_interval,r.return_url=r.return_url+`&month_interval=${c.month_interval}`),this.isSipStory&&!this.userdata.subscribed&&(this.vars.tyParams.sip_story=1,r.return_url=r.return_url+"&sip_story=1"),this.optionRoute?.min_donation&&(this.vars.tyParams.min_donation=+this.optionRoute?.min_donation,r.return_url=r.return_url+"&min_donation="+ +this.optionRoute?.min_donation),c.mini_story&&(r.return_url=r.return_url+`&mini_story=${c.mini_story}`,this.vars.tyParams.mini_story=c.mini_story),c.utm_source&&(r.return_url=r.return_url+`&${this.vars.utmsUrlString}`,this.vars.tyParams={...this.vars.tyParams,...this.vars.utmsObj}),n?.tip_amount&&"tp"===this.origin&&(r.return_url=r.return_url+`&tip_amount=${n?.tip_amount}`,this.vars.tyParams.tip_amount=n?.tip_amount),c?.utm_source?.match("otd_calling")&&c?.mini_story&&(r.return_url=r.return_url+"&ministoryquiz=true",this.vars.tyParams.ministoryquiz="true"),this.vars.selected_insurance?.plan&&(r.return_url=r.return_url+`&vendor=${this.vars.selected_insurance.vendor}&plan=${this.vars.selected_insurance.plan}`,this.vars.tyParams.vendor=this.vars.selected_insurance.vendor,this.vars.tyParams.plan=this.vars.selected_insurance.plan,c.pledge_more&&(r.return_url=r.return_url+`&pledge_more=${c.pledge_more}`,this.vars.tyParams.pledge_more=c.pledge_more)),(0===n?.tip_amount&&"f"===this.origin&&this.vars.fundraiser.tip_model||"true"===c.frtip||"standalonetip"===this.vars.pageName)&&(r.return_url=r.return_url+"&frtip=true",this.vars.tyParams.frtip=!0),this.vars.selectedIllness?.person&&(r.return_url=r.return_url+`&person=${this.vars.selectedIllness.person}&cover=${this.vars.selectedIllness.cover_count}&cover_amount=${this.vars.selectedIllness.illnessAmount}`,this.vars.tyParams.person=this.vars.selectedIllness.person,this.vars.tyParams.cover=this.vars.selectedIllness.cover_count,this.vars.tyParams.cover_amount=this.vars.selectedIllness.illnessAmount),this.vars.c
1ouponDetails&&(r.return_url+=`&coupon_code=${this.vars.couponDetails.coupon_code}`,this.vars.tyParams.coupon_code=this.vars.couponDetails.coupon_code),this.vars.fundraiser.is_multi_patient_campaign&&(r.return_url+=`&multi_patient_opted=${this.vars.donateMultiPatient||0}`,this.vars.tyParams.multi_patient_opted=this.vars.donateMultiPatient||0),n?.sub_campaign_id&&(r.return_url+=`&sub_campaign_id=${n?.sub_campaign_id}`,this.vars.tyParams.sub_campaign_id=n?.sub_campaign_id),this.vars.selectedOtdSipAmt&&(r.return_url+=`&otd_sip=${this.vars.selectedOtdSipAmt}`,this.vars.tyParams.otd_sip=this.vars.selectedOtdSipAmt,this.storage.checkFromSession("orderData",n)),c?.entity_type&&(r.return_url=r.return_url.concat(`&entity_type=${c.entity_type}`),this.vars.tyParams.entity_type=c.entity_type),e&&e.manual?this.goToThankYouPage(n):(this.vars.paymentOrigin=this.origin,this.paymentService.setConfig({sendPayoad:r}),this.paymentService.sendOrder(r).subscribe(function(){var T=(0,_.Z)(function*(Z){if(a.vars.showTimer=!0,a.storage.deleteFromSession("payment_return_params"),!1===Z?.data?.charged&&"LINK"===n?.payment_mode&&Z?.data?.params?.client_secret)return a.paymentService.setConfig({sendResponse:Z?.data}),a.vars.isOrderLoading=!1,void(a.isOrderLoading=!1);if(Z.data.charged){if("success"===Z.data.status){let j=a.util.getActiveSip(a.util.getUserData()?.listsubscriptions);a.vars.selectedOtdSipAmt&&!j?.includes("medical")?a.otdToSip(n):a.goToThankYouPage(n)}}else if(!1===Z.data.charged){if("razorpay"===n.payment_gateway){if(Z.data.UPI&&a.isMobile&&!n.private_key)a.util.nativeNavigation(Z.data.url),a.vars.upiTimer=!0;else{if("DESKTOPQR"!==n.payment_mode_value)return void a.scriptLoaderService.load("razor_pay_custom_checkout").then(()=>{a.razorpayCustomCheckoutPayment(n,Z.data.params)});a.qrCodes.upi=Z?.data?.params?.upi?.message}return a.vars.isOrderLoading=!1,void(a.isOrderLoading=!1)}if(Z.data.UPI)"phonepe"!==n.payment_gateway&&"payu"!==n.payment_gateway||"DESKTOPQR"===n?.payment_mode_value?a.isMobile?(a.util.nativeNavigation(Z.data.url),a.isOrderLoading=!1,a.vars.isOrderLoading=!1,a.vars.upiTimer=!0):"DESKTOPQR"===n.payment_mode_value&&("UPI"===n.payment_mode&&(a.qrCodes.upi=Z?.data?.params?.upi?.message),"PAYTM"===n.payment_mode&&(a.qrCodes.paytm=Z.data.params.paytm.message),a.isOrderLoading=!1,a.vars.isOrderLoading=!1):(a.isMobile&&Z.data.url?a.util.nativeNavigation(Z.data.url):a.vars.upiTimer=!0,a.pusherService.vpaTxnStatus({order_id:n.order_id,origin:a.dataEmitedFromChild.origin}),a.isOrderLoading=!1,a.vars.isOrderLoading=!1);else if(Z.data.hasOwnProperty("pg_txn_id")&&"VPA"===n.payment_mode_value)a.pusherService.vpaTxnStatus({order_id:n.order_id,origin:a.dataEmitedFromChild.origin}),a.vars.upiTimer=!0,a.isOrderLoading=!1,a.vars.isOrderLoading=!1;else if("PAYTMMA"===n.payment_mode){const j={amount:Z.data.params.TXN_AMOUNT.toString(),orderId:n.order_id,txnToken:Z.data.params.TXN_TOKEN,mid:Z.data.params.MID};a.paymentService.isPaytmReady(()=>{window.JSBridge.call("paytmPayment",j,it=>{a.zone.run(()=>{"TXN_SUCCESS"===(it&&it.data?JSON.parse(it.data):it).STATUS?(a.dialog.closeAll(),a.router.navigate(["/new/payment-route"],{queryParams:a.vars.tyParams})):(a.isOrderLoading=!1,a.vars.isOrderLoading=!1,a.util.openSnackBar("Please try again","error"))})})})}else"Emandate"===n.payment_mode_value&&"razorpay_emandate"===n.payment_gateway?a.scriptLoaderService.load("razor_pay").then(()=>{a.startRazorPayment(n,Z.data.params)}):a.submitToPaymentGateway(Z,n,r)}});return function(Z){return T.apply(this,arguments)}}(),T=>{this.isOrderLoading=!1,this.vars.isOrderLoading=!1,this.vars.showTimer=!1,"stripe_recurring"===n.payment_gateway&&"INR"===this.pCurrency&&"CARD"===n.payment_mode&&this.stripeSwitch?(this.stripeFailed=!0,this.submitOrder(this.dataEmitedFromChild)):this.stripeFailed=!1,"phonepe"===n.payment_gateway&&this.vars.upi_payment_status.next("failed")}))}submitToPaymentGateway(n,e,a){let r=n.data;if(r.params)for(const c of Object.entries(r.params))this.dataEmitedFromChild.hasOwnProperty(c[1])&&(r.params[c[0]]=this.dataEmitedFromChild[c[1].toString()]);if("Simpl"===e.payment_mode)r.url=r.url+`&merchant_payload=${JSON.stringify({return_url:encodeURIComponent(a.return_url)})}`,this.util.nativeNavigation(r.url);else{if(!r?.url)return this.isOrderLoading=!1,this.vars.isOrderLoading=!1,this.vars.showTimer=!1,this.util.openSnackBar(r?.message||"something went wrong please try again","error"),void this.disableOptions(!1);this.paymentService.submitToPaymentGateway(r,this.paymentOptions.gateway,this.dataEmitedFromChild.mode)}}startRazorPayment(n,e){new Razorpay({key:this.paymentOptions.setting.razorpay.key,order_id:e.recurring_order_id,customer_id:e.customer_id,recurring:"1",modal:{ondismiss:()=>{this.zone.run(()=>{this.isOrderLoading=!1,this.vars.isOrderLoading=!1})}},handler:c=>{this.zone.run(()=>{const m={...c,...this.vars.tyParams};this.router.navigate(["/new/payment-route"],{queryParams:m})})},notes:{order_id:n.order_id,camp_id:n.campaign_id},theme:{color:"#01bfbd"}}).open()}razorpayCustomCheckoutPayment(n,e){const r=new Razorpay({key:this.paymentOptions.setting.razorpay.key,image:`${this.vars.imageDomain}/images/logo-light-bg.svg`}),c={amount:e.amount,currency:e.currency?.toUpperCase()||null,email:e.email,contact:e.contact,order_id:e.order_id,method:"",notes:{order_id:n.order_id,camp_id:n.campaign_id}};"CARD"===n.payment_mode?(c.method="card",c.card={name:n.donor_first_name,number:this.dataEmitedFromChild.card_number_fill,cvv:this.dataEmitedFromChild.card_cvv_fill,expiry_month:this.dataEmitedFromChild.card_month_fill,expiry_year:this.dataEmitedFromChild.card_year_fill}):"NB"===n.payment_mode?(c.method="netbanking",c.bank=e.bankcode):"UPI"===n.payment_mode&&n.checksum?(c.method="upi",c.vpa=n.checksum):"WALLET"===n.payment_mode&&(c.method="wallet",c.wallet=n.payment_mode_value?.toLowerCase()),r.createPayment(c),"UPI"!==n.payment_mode&&r.on("payment.success",m=>{this.isOrderLoading=!1,this.vars.isOrderLoading=!1,Object.assign(this.vars.tyParams,m),this.vars.router.navigate(["/new/payment-route"],{queryParams:this.vars.tyParams}),this.dialog.closeAll(),this.bottomSheet.dismiss()}),r.on("payment.error",m=>{this.razorpayFailedPayment(m?.error)})}razorpayFailedPayment(n){this.disableOptions(!1),this.isOrderLoading=!1,this.vars.isOrderLoading=!1,this.vars.tyParams={...this.vars.tyParams,razorpay_payment_id:n?.metadata?.payment_id||"",razorpay_order_id:n?.metadata?.order_id||"",source:n?.source||"",reason:n?.description||"",showError:"false"},this.util.openSnackBar(n?.description,"error"),this.paymentService.getOrderStatusAfterPayment(this.vars.tyParams).subscribe({next:e=>{console.log("success",e),this.vars.router.navigate(["/new/payment-route"],{queryParams:this.vars.tyParams})},error:e=>{this.paymentFailedEvent(e?.error)}})}paymentFailedEvent(n){const e={eventName:"payment_response",event_type:"payment",page_name:"payment-redirect-page",info_1:"failed",info_2:this.vars.tyParams.oi,info_3:JSON.stringify(this.vars.tyParams),info_4:n?.message||""};this.events.sendSystemEvent(e).subscribe(a=>a)}razorpayCardPaymnt(n,e,a){const r=new Razorpay({key:this.paymentOptions.setting.razorpay.key,amount:n.donated_amount,name:"Ketto",image:"https://dev2.ketto.org/assets/logo.svg"});r.createPayment({amount:e.amount,email:e.email,contact:e.contact,order_id:e.order_id,method:"card","card[name]":n.donor_first_name,"card[number]":a.card_number_fill,"card[cvv]":a.card_cvv_fill,"card[expiry_month]":a.card_month_fill,"card[expiry_year]":a.card_year_fill}),r.on("payment.success",c=>{this.zone.run(()=>{Object.assign(this.vars.tyParams,c),this.router.navigate(["/new/payment-route"],{queryParams:this.vars.tyParams}),this.dialog.closeAll()})}),r.on("payment.error",c=>{this.isOrderLoading=!1,this.vars.isOrderLoading=!1,this.util.openSnackBar(c.error.description,"error")})}goToThankYouPage(n){this.zone.run(()=>{this.router.navigate([this.vars.showKCart?"/new/kettokart/thankyou":"/new/thankyou"],{queryParams:this.vars.tyParams}).then(()=>this.dialog.closeAll()),this.storage.deleteFromSession(n.order_id),this.paymentUtil.cartResponse.next(null),this.paymentV2.paymentConfig.next(null),this.paymentV2.sheet.dismiss()})}trackingEvents(n){return new Promise((e,a)=>{try{const r={id:this.cartDetails.campaign_id||this.campaignId,Step:3,Name:this.cartDetails.donor_name,Email:this.cartDetails.donor_email,Amount:n.donated_amount_local,"Payment Mode":n.payment_mode,Type_AB:"typeAB","Page Name":this.vars.campaignType||"",TipAmount:n.tip_amount_local,"Iso Currency":n.iso_currency,"Cart ID":this.cartDetails.id,Recurring:!!this.cartDetails.recurring};this.vars.fundraiser&&(r["Custom Tag"]=this.vars.fundraiser.custom_tag,r["Parent Cause Id"]=this.vars.fundraiser.parent_cause_id),this.checkoutGTMEvent(n,2),this.reward&&(r.Reward=this.reward.id),this.events.claverTapPush("New Contribution Step 3",r);let c=this.vars.event_info.info_1||this.position||"";this.vars.selectedIllness?.illnessAmount?c=`${JSON.stringify(this.contributeDetails.slabs)}/${this.vars.selectedIllness.person}; ${this.vars.selectedIllness.illnessAmount}`:this.contributeDetails&&this.contributeDetails.slabs&&(c=`${JSON.stringify(this.contributeDetails.slabs)}/${n.donated_amount}`),this.vars.selectedKCart&&(c=this.paymentUtil.getSelectedProductAsInfo());const m={eventName:"order_created",event_type:"campaign",event_type_id:this.cartDetails.campaign_id||this.campaignId,info_1:c,info_2:n.id,info_3:this.vars.event_info.info_3||this.vars.campaignType};this.vars.fundraiser?.is_multi_patient_campaign&&this.vars.pageName.match("stories|mini_story")&&(m.info_3+=this.vars.donateMultiPatient?",multi_p_enabled":",multi_p_disabled"),this.events.sendSystemEvent(m).subscribe(T=>e(!0),T=>e(T))}catch{a(!1)}})}checkoutGTMEvent(n,e){const a={event:"checkout",sip:this.sip,value:n.donated_amount,currency:n.iso_currency,ecommerce:{checkout:{actionField:{step:e,option:n.payment_mode},products:[{name:this.vars.fundraiser.custom_tag,id:this.vars.fundraiser.id,category:this.util.getCampaignTypeFromId(this.vars.fundraiser.parent_cause_id),variant:this.vars.fundraiser.cause_id,price:n.donated_amount,quantity:1,dimension
15:"",dimension6:n.iso_currency,dimension7:this.vars.fundraiser.cause_id,dimension8:this.vars.fundraiser.custom_tag,dimension9:this.vars.fundraiser.id,dimension10:this.util.getCampaignTypeFromId(this.vars.fundraiser.parent_cause_id),dimension15:n.donated_amount,dimension16:this.vars.selectTipPercentage||"",dimension17:n.tip_amount_inr}]}}};this.events.gtmPush(a)}search(n){this.bankList||(this.bankList=this.paymentOptions.options.NB),this.paymentOptions.options.NB=this.util.filterObject(this.bankList,n)}gotCaptchaResponse(n){this.captchaResponse=n,this.otdToSip()}otdToSip(n){var e=this;return(0,_.Z)(function*(){if(n&&"INR"!==n?.iso_currency&&!e.captchaResponse)return e.events.sendSystemEvent({eventName:"otd_to_sip_started",info_1:"waiting_for_captcha"}).subscribe(r=>r),e.storage.checkFromSession("orderData",n),void e.gCaptchaComponent.executeCaptcha();n||(n=e.storage.getFromSession("orderData"));const a={origin:e.origin,currency:n?.iso_currency,amount:e.vars.selectedOtdSipAmt,donor_email:e.cartDetails?.donor_email,donor_extension:e.cartDetails?.donor_extension,donor_name:e.cartDetails?.donor_name||n?.donor_first_name,donor_phone:e.cartDetails?.donor_phone,sip_cause:[{sip_cause:e.vars.default_sip_cause,amount:e.vars.selectedOtdSipAmt}],captchaResponse:e.captchaResponse};(yield e.paymentV2.oneTapSip(a))&&(e.vars.tyParams.otd_sip_success=!0),e.captchaResponse="",e.goToThankYouPage(n)})()}onStripeExpressReady(n){n&&(Object.keys(n).forEach(e=>{n[e]&&(this.showStripeLink=!0)}),this.showStripeLink&&(this.lastOrderData=this.vars.lastOrderInfo.getValue(),this.vars.isLoggedIn$.getValue()&&this.lastOrderData?.last4&&"INR"!==this.lastOrderData?.iso_currency&&"INR"!==this.pCurrency?(this.showOneTapPay=!0,this.vars.oneTapPayError.subscribe(a=>{"limit_exceed"===a&&(this.showOneTapPay=!1)})):this.showOneTapPay=!1))}onStripeCheckoutClick(n){this.submitOrder({mode:"LINK",mode_value:n?.expressPaymentType}),console.log(n)}checkCardDetails(n=this.dataEmitedFromChild){return new Promise((e,a)=>{const r=this.paymentOptions?.setting?.stripe?.key_us||this.paymentOptions?.setting?.stripe?.key||"";if(!r)return e(null),null;this.paymentService.createStripeToken({key:r,"card[number]":n.card_number_fill,"card[cvc]":n.card_cvv_fill,"card[exp_month]":n.card_month_fill,"card[exp_year]":n.card_year_fill}).subscribe({next:m=>{m?.id&&(this.stripeTokens[n.card_number_fill]=m),e(m)},error:m=>{e(null)}})})}ngOnDestroy(){this.paymentUtil.cartSubs.forEach(n=>n.unsubscribe()),this.paymentUtil.initaiteQr=!1,this.generalSubs.forEach(n=>n.unsubscribe())}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-options-nav"]],viewQuery:function(n,e){if(1&n&&t.Gf(xt.h,7),2&n){let a;t.iGM(a=t.CRH())&&(e.gCaptchaComponent=a.first)}},inputs:{config:"config",campaignId:"campaignId",customTag:"customTag",origin:"origin",position:"position",contributeDetails:"contributeDetails",stripeSwitch:"stripeSwitch",isQR:"isQR",eventCause:"eventCause",peopleServed:"peopleServed",updateId:"updateId",subscribed:"subscribed",skipFailedCase:"skipFailedCase",payment_method_change:"payment_method_change",sip:"sip",showOptions:"showOptions",isSipStory:"isSipStory"},standalone:!0,features:[t.jDz],decls:13,vars:2,consts:[[4,"ngIf"],["class","option-container",4,"ngIf"],["size","invisible",3,"dataEmit"],["allBanks",""],["allWallet",""],["supportFeeTemplate",""],["stripeLink",""],["infoIcon",""],[3,"ngTemplateOutlet"],[1,"option-container"],["class","place-holder",4,"ngIf"],["class","options",4,"ngIf"],["class","routes",4,"ngIf"],[3,"prevent-click",4,"ngIf"],[1,"place-holder"],[1,"options"],[4,"ngFor","ngForOf"],["class","option-tab","type","button","mat-stroked-button","",3,"is-active","disabled","click",4,"ngIf"],["type","button","mat-stroked-button","",1,"option-tab",3,"disabled","click"],[1,"option-name"],[1,"routes"],[3,"option","topBank","hidden","cartDetails","isOrderLoading","dataEmit"],[3,"cartDetails","option","hidden","isOrderLoading","currency","showZip","dataEmit"],[3,"option","hidden","cartDetails","qrCodeUrl","isOrderLoading","dataEmit"],[3,"option","hidden","cartDetails","isOrderLoading","topWallets","dataEmit"],[3,"option","cartDetails","isOrderLoading","qrURL","campaignId","origin","customTag","hidden","dataEmit","disableOptions","cardDetail
1sEmit",4,"ngIf"],[3,"option","cartDetails","isOrderLoading","qrURL","campaignId","origin","customTag","hidden","dataEmit","disableOptions","cardDetailsEmit"],[3,"option","hidden","isOrderLoading","currency","showZip","dataEmit"],[3,"option","hidden","cartDetails","isOrderLoading","dataEmit"],[3,"option","hidden","cartDetails","isOrderLoading","qrURL","campaignId","origin","customTag","dataEmit","disableOptions",4,"ngIf"],[3,"option","hidden","cartDetails","isOrderLoading","qrURL","campaignId","origin","customTag","dataEmit","disableOptions"],["class","cards",4,"ngIf"],[1,"cards"],[1,"heading"],["matRipple","",1,"card-section","CARDS",3,"click"],["loading","lazy","data-src","/assets/images/story/Payment-Methods-icos.png","alt","Payment methods icons"],["name","chevron_right",4,"ngIf"],["class","material-icons",4,"ngIf"],["class","cards wallerts-container",4,"ngIf"],[1,"previously-upi"],[1,"upi-item"],[1,"upi-left"],[3,"src","alt"],[1,"upi-name"],[1,"upi-radio"],[1,"cricle"],["label","Pay",3,"amount","isOrderLoading","click"],[1,"new-option","option-upi"],[1,"head"],[1,"left"],[1,"title"],["class","recommended",3,"AB",4,"ngIf"],[1,"right"],[1,"view-all",3,"click"],[1,"body-content",3,"click"],["class","main-option",4,"ngIf"],[1,"recommended"],[1,"main-option"],["matRipple","",1,"veiw-all",3,"click"],[3,"name"],[1,"icon",3,"click"],["class","dots-loader-v2","style","--size: 38px;",4,"ngIf"],[1,"dots-loader-v2",2,"--size","38px"],["name","chevron_right"],[1,"material-icons"],[3,"click"],[1,"card-section","text-center"],["class","all-bank submit-payment",3,"click",4,"ngFor","ngForOf"],[1,"all-bank","submit-payment",3,"click"],["matRipple","","data-bg","/assets/images/payment/top-netbanking.png"],["class","dots-loader-v2","style","--size: 49px",4,"ngIf"],[1,"b-name"],[1,"dots-loader-v2",2,"--size","49px"],[1,"cards","wallerts-container"],["matRipple",""],["class","dots-loader",4,"ngIf"],[1,"dots-loader"],[1,"list-dilaog"],[1,"close"],["type","button","mat-icon-button","",3,"click"],["inputType","text","placeHolder","Search",1,"search-input",3,"control","group","OnChange"],["class","list-container bankDropdownList","mat-list-item","",4,"ngFor","ngForOf"],["mat-list-item","",1,"list-container","bankDropdownList"],["type","button","mat-button","",1,"list-btn","submit-payment",3,"disabled","click"],[1,"lits-icon"],["class","list-container","mat-list-item","",4,"ngFor","ngForOf"],["mat-list-item","",1,"list-container"],["type","button","mat-button","",1,"list-btn","submit-payment",3,"click"],[1,"sf-container"],[1,"sf-details"],[1,"sf-total-amount",3,"innerHtml"],[1,"sf-total-amount"],[1,"subtitle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","sp-line",4,"ngIf"],["class","stripeLinkPay",3,"hidden","oneTapEnable",4,"ngIf"],[1,"sp-line"],[1,"stripeLinkPay",3,"hidden"],[1,"actBtn"],[3,"amount","currency","availablePaymentMethods","onCheckoutClick"],[1,"orPay"],[1,"line"],[1,"text"],[1,"infoIcon",3,"matTooltip","click"],["tooltip","matTooltip"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 14 14","fill","none"],["d","M7 0.999998C3.68629 0.999997 1 3.68629 1 7C1 10.3137 3.68629 13 7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 0.999998 7 0.999998Z","stroke","#737373","stroke-linecap","round","stroke-linejoin","round"],["d","M7 9.3999L7 6.9999","stroke","#737373","stroke-linecap","round","stroke-linejoin","round"],["d","M7 4.6001L6.994 4.6001","stroke","#737373","stroke-linecap","round","stroke-linejoin","round"]],template:function(n,e){1&n&&(t.YNc(0,Ga,1,1,null,0),t.YNc(1,ys,6,5,"div",1),t.TgZ(2,"app-captcha",2),t.NdJ("dataEmit",function(r){return e.gotCaptchaResponse(r)}),t.qZA(),t.YNc(3,Ts,9,5,"ng-template",null,3,t.W1O),t.YNc(5,Ns,8,3,"ng-template",null,4,t.W1O),t.YNc(7,Es,11,7,"ng-template",null,5,t.W1O),t.YNc(9,Js,2,2,"ng-template",null,6,t.W1O),t.YNc(11,Rs,6,1,"ng-template",null,7,t.W1O)),2&n&&(t.Q6J("ngIf",59===(null==e.vars.fundraiser?null:e.vars.fundraiser.cause_id)&&20===(null==e.vars.fundraiser?null:e.vars.fundraiser.parent_cause_id)&&!(null!=e.cartDetails&&e.cartDetails.recurring)&&(e.vars.supportFee>0||(null==e.cartDetails?null:e.cartDetails.supportFee)>0)),t.xp6(1),t.Q6J("ngIf",e.showOptions))},dependencies:[l.O5,l.ax,f.ot,f.lW,vt.ie,vt.i$,O.Ps,O.Hw,D.si,D.wG,yt.AV,yt.gM,J.j,qo,ca,ua,ha,Ha,Q.$,rt.a,bt.o,xt.h,ja],styles:['@charset "UTF-8";.dots-loader-v2[_ngcontent-%COMP%]{--size: 49px;--dot-size: calc(var(--size) * .25);--move-distance: calc(var(--size) * .33);position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);width:var(--size);height:var(--size)}.dots-loader-v2[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;width:var(--dot-size);height:var(--dot-size);background:var(--primary-color);border-radius:50%;animation:_ngcontent-%COMP%_dots-loader-v2-1 2s cubic-bezier(.77,0,.175,1) infinite}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;inset:0;margin:auto;width:100%;height:100%;animation:_ngcontent-%COMP%_dots-loader-v2-2 2s cubic-bezier(.77,0,.175,1) infinite}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before, .dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;width:var(--dot-size);height:var(--dot-size);background:var(--primary-color);border-radius:50%}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_dots-loader-v2-3 2s cubic-bezier(.77,0,.175,1) infinite}.dots-loader-v2[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{animation:_ngcontent-%COMP%_dots-loader-v2-4 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-v2-1{0%{transform:scale(0);opacity:0}50%{transform:scale(1);opacity:1}to{transform:scale(0);opacity:0}}@keyframes _ngcontent-%COMP%_dots-loader-v2-2{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_dots-loader-v2-3{0%{transform:translate(0) scale(1)}50%{transform:translate(calc(-1 * var(--move-distance))) scale(.5)}to{transform:translate(0) scale(1)}}@keyframes _ngcontent-%COMP%_dots-loader-v2-4{0%{transform:translate(0) scale(1)}50%{transform:translate(var(--move-distance)) scale(.5)}to{transform:translate(0) scale(1)}}.dots-loader[_ngcontent-%COMP%]{height:32px;width:32px}.dots-loader[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:12px;height:12px;inset:0;margin:auto;background:var(--primary-color);border-radius:50%;animation:_ngcontent-%COMP%_dots-loader-1 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-1{0%{transform:scale(0);opacity:0}50%{transform:scale(1);opacity:1}to{transform:scale(0);opacity:0}}.dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;position:absolute;inset:0;margin:auto;height:32px;width:32px;animation:_ngcontent-%COMP%_dots-loader-2 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-2{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before, .dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;inset:0;margin:auto;height:12px;width:12px;background:var(--primary-color);border-radius:50%;animation:_ngcontent-%COMP%_dots-loader-3 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-3{0%{transform:translateZ(0) scale(1)}50%{transform:translate3d(-16px,0,0) scale(.5)}to{transform:translateZ(0) scale(1)}}.dots-loader[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{animation:_ngcontent-%COMP%_dots-loader-4 2s cubic-bezier(.77,0,.175,1) infinite}@keyframes _ngcontent-%COMP%_dots-loader-4{0%{transform:translateZ(0) scale(1)}50%{transform:translate3d(16px,0,0) scale(.5)}to{transform:translateZ(0) scale(1)}}.visible-hide[_ngcontent-%COMP%]{visibility:hidden}  mat-Tooltip-component .mat-tooltip{font-size:10px;font-style:normal;font-weight:400;line-height:14px}.sf-container[_ngcontent-%COMP%]{background:#F7F7F7;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:0 16px 8px;align-self:stretch}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]{background:#FFF;padding:10px 16px 0 10px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]{display:flex;padding:8px;flex-direction:column;align-items:flex-start;align-self:stretch}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--Neutral-Black-6, #262626);font-family:DM Sans;font-size:20px;font-style:normal;font-weight:400;line-height:28px}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .sf-total-amount[_ng
1content-%COMP%]{color:var(--Neutral-Black-6, #262626);font-family:DM Sans;font-size:20px;font-style:normal;font-weight:700;line-height:28px}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .sf-total-amount[_ngcontent-%COMP%]{font-size:17px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{color:var(--Neutral-Black-4, #737373);font-family:DM Sans;font-size:14px;font-style:normal;font-weight:400;line-height:20px;display:flex;flex-direction:row;gap:8px;align-items:center}@media (max-width: 768px){.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:12px}}.sf-container[_ngcontent-%COMP%]   .sf-details[_ngcontent-%COMP%]   .infoIcon[_ngcontent-%COMP%]{display:flex}.option-container[_ngcontent-%COMP%]   .place-holder[_ngcontent-%COMP%]{min-width:150px}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option-tab[_ngcontent-%COMP%]{min-width:150px;padding:18px 7px 18px 18px;border:1px solid #f5f5f5;border-radius:0}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option-tab[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:30px;float:left}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .option-tab[_ngcontent-%COMP%]   .option-name[_ngcontent-%COMP%]{float:left;margin-left:8px}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .is-active[_ngcontent-%COMP%]{border-left:3px solid var(--primary-color);background:#f7f7f7;font-weight:700;color:var(--primary-color)}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .is-active[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before{color:var(--primary-color)}.option-container[_ngcontent-%COMP%]   .routes[_ngcontent-%COMP%]{padding:0 10px 0 18px;margin:10px auto 25px}.option-container[_ngcontent-%COMP%]   .sp-line[_ngcontent-%COMP%]{width:100%;height:8px;background:#F1F3F7}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]{max-width:440px;margin:0 auto;padding:0 16px}@media (min-width: 768px){.option-container[_ngcontent-%COMP%]   .stripeLinkPay.oneTapEnable[_ngcontent-%COMP%]{margin-bottom:16px}}@media (max-width: 768px){.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]{position:relative;margin-bottom:-10px;padding:14px 16px 0;background:#fff;z-index:1}}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .actBtn[_ngcontent-%COMP%]{margin:0 0 16px}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .orPay[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;max-width:320px;margin:auto}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .orPay[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{width:100%;height:1px;background:#CCC}.option-container[_ngcontent-%COMP%]   .stripeLinkPay[_ngcontent-%COMP%]   .orPay[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{width:100%;min-width:130px;text-align:center;color:#404040;font-size:15px;font-weight:400;line-height:normal}  app-input.search-input mat-form-field .mat-form-field-wrapper{margin:0 16px -15px}.top-bank-sprite[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_SBI[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_KOTAK[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_ICICI[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_HDFC[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_AXIS[_ngcontent-%COMP%]{height:49px;width:49px;background-repeat:no-repeat;display:block;box-shadow:0 2px 5px #00000026;border-radius:50%;background-size:auto 110%;margin:0 auto}.upi-sprite[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OTHER[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PAYTM[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .BHIM[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .WHATSAPP[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PHONEPE[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .GOOGLEPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .loader-key[_ngcontent-%COMP%]{background-image:url(https://kettocdn.gumlet.io/images/payment_gateways/payment-modes.png);height:49px;width:49px;background-repeat:no-repeat;display:inline-block;box-shadow:0 2px 5px #00000026;border-radius:50%;background-size:300% auto}.all-wallets-sprite[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .PAYCASH[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .YPAYCASH[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .YESPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .OXIGEN[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .FREECHARGE[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .PAYZAPP[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .AMAZONPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .AIRTELMONEY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .JIOMONEY[_ngcontent-%COMP%]{background-image:url(https://kettocdn.gumlet.io/images/payment_gateways/wallet-md-logo.png);height:49px;width:49px;background-repeat:no-repeat;display:inline-block;box-shadow:0 2px 5px #00000026;border-radius:50%;background-size:100% auto}.cards[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:700;line-height:15px;font-size:14px;letter-spacing:1px;color:#444;display:inline-block;overflow:hidden}.cards[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .recommended[_ngcontent-%COMP%]{margin-left:8px;padding:2px 8px;border-radius:20px;color:#fff;font-size:10px!important;font-weight:700!important;line-height:12px!important;text-transform:uppercase;background:#01bfbd}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{background:#f5f5f5;padding:15px 27px;height:41px;margin-top:15px;text-transform:uppercase}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .bank-select[_ngcontent-%COMP%]{width:95px;color:var(--primary-color);font-weight:600;border:0;background:0}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .bank-select[_ngcontent-%COMP%]:focus{outline:none}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]::-ms-expand{display:none}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{float:right;font-weight:600;line-height:20px;font-size:12px}.cards[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--primary-color);text-transform:capitalize}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]{padding:20px;background:#FFF}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;border-radius:16px;cursor:pointer;margin-bottom:10px}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:36px;height:36px;object-fit:contain}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-left[_ngcontent-%COMP%]   .upi-name[_ng
1content-%COMP%]{font-size:14px;font-weight:400;color:#626262;font-weight:500;line-height:120%}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-radio[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;border:2px solid #01BFBD;position:relative;transition:all .2s ease}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]   .upi-item[_ngcontent-%COMP%]   .upi-radio[_ngcontent-%COMP%]   .cricle[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:12px;height:12px;border-radius:50%;background-color:#01bfbd}.cards[_ngcontent-%COMP%]   .previously-upi[_ngcontent-%COMP%]     app-donate-btn button{font-size:14px;min-height:46px;max-height:46px;width:100%}.cards[_ngcontent-%COMP%]   .card-section[_ngcontent-%COMP%]{padding:20px;background:#ffffff}.cards[_ngcontent-%COMP%]   .card-section.CARDS[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.cards[_ngcontent-%COMP%]   .card-section[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{float:right}.cards[_ngcontent-%COMP%]   .card-section.blurBack[_ngcontent-%COMP%]{opacity:.7}.cards[_ngcontent-%COMP%]   .loading-cards[_ngcontent-%COMP%]{height:137px;overflow:hidden}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]{display:flex}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .upi-ops[_ngcontent-%COMP%]{order:6}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .GooglePay[_ngcontent-%COMP%]{order:1}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .PhonePe[_ngcontent-%COMP%]{order:2}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .Paytm[_ngcontent-%COMP%]{order:3}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .BHIM[_ngcontent-%COMP%]{order:4}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]   .Whatsapp[_ngcontent-%COMP%]{order:5}.cards[_ngcontent-%COMP%]   .upi-links[_ngcontent-%COMP%]:nth-child(4n){flex-basis:100%}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]{display:inline-block;width:20%;text-align:center;vertical-align:top}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .loader-key[_ngcontent-%COMP%]{background-position:11px -712px!important}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_AXIS[_ngcontent-%COMP%]{background-position:-66px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_HDFC[_ngcontent-%COMP%]{background-position:-3px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_ICICI[_ngcontent-%COMP%]{background-position:-129px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_KOTAK[_ngcontent-%COMP%]{background-position:-255px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .NB_SBI[_ngcontent-%COMP%]{background-position:-191px 0}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .b-name[_ngcontent-%COMP%]{font-size:12px;line-height:15px;color:#444;display:block}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .GOOGLEPAY[_ngcontent-%COMP%]{background-position:-49px -596px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PHONEPE[_ngcontent-%COMP%]{background-position:-49px -654px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .WHATSAPP[_ngcontent-%COMP%]{background-position:-49px -536px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .BHIM[_ngcontent-%COMP%]{background-position:-49px -712px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .PAYTM[_ngcontent-%COMP%]{background-image:url(/assets/images/payment/payment_modes_sprite.png)!important;background-position:-51px -1083px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OTHER[_ngcontent-%COMP%]{background-position:-49px -888px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%]{background-position:-49px -827px}.cards[_ngcontent-%COMP%]   .all-bank[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%]{background-position:-50px -770px}.cards[_ngcontent-%COMP%]   .JIOMONEY[_ngcontent-%COMP%]{background-position:-11px -1367px;background-size:142% auto}.cards[_ngcontent-%COMP%]   .AIRTELMONEY[_ngcontent-%COMP%]{background-position:0 -218px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .paytm-wallet[_ngcontent-%COMP%]{background-image:url(https://kettocdn.gumlet.io/images/payment_gateways/wallet-md-logo.png);height:26px;width:60px;background-repeat:no-repeat;display:inline-block;background-size:100% auto;background-position:0 -500px}.cards[_ngcontent-%COMP%]   .AMAZONPAY[_ngcontent-%COMP%]{background-position:-9px -1470px;background-size:140% auto}.cards[_ngcontent-%COMP%]   .OLAMONEY[_ngcontent-%COMP%]{background-position:0 -160px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .MOBIKWIK[_ngcontent-%COMP%]{background-position:3px -363px}.cards[_ngcontent-%COMP%]   .PAYZAPP[_ngcontent-%COMP%]{background-position:3px -267px;background-size:85%}
1.cards[_ngcontent-%COMP%]   .FREECHARGE[_ngcontent-%COMP%]{background-position:0 -51px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .OXIGEN[_ngcontent-%COMP%]{background-position:0 1px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .YESPAY[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .YPAYCASH[_ngcontent-%COMP%], .cards[_ngcontent-%COMP%]   .PAYCASH[_ngcontent-%COMP%]{background-position:0 -51px;background-size:100% auto}.cards[_ngcontent-%COMP%]   .wallet[_ngcontent-%COMP%]{line-height:24px;font-size:17px;margin-left:7.9px}.list-dilaog[_ngcontent-%COMP%]{margin:-24px}.list-dilaog[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{display:flex;align-items:center}.list-dilaog[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{width:60px}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]{width:100%;text-align:start;padding:0}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]     .mat-button-wrapper span{dis
1play:flex;align-items:center;justify-content:space-between;border-top:1px solid #eee;height:55px;padding:0 15px}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]     .mat-button-wrapper .dots-loader span{border:0}.list-dilaog[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:unset}.list-dilaog[_ngcontent-%COMP%]   .lits-icon[_ngcontent-%COMP%]{color:#ccc}@media (min-width: 769px){.option-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding:0}.option-container[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{display:flex;flex-direction:column}}@media (max-width: 768px){.option-container[_ngcontent-%COMP%]{background:#f5f5f5}.with-no-heading[_ngcontent-%COMP%]{margin-top:28px}.wallets-container[_ngcontent-%COMP%]{margin-bottom:30px}}.new-option[_ngcontent-%COMP%]{width:100%;background:#FFF}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#F5F5F5;padding:23px 20px 8px}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%], .new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{display:flex;align-items:center}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#444;font-size:14px;font-weight:700;line-height:20px;letter-spacing:1px}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .recommended[_ngcontent-%COMP%]{margin-left:8px;padding:2px 8px;background:var(--primary-color);border-radius:20px;color:#fff;font-size:10px;font-weight:700;line-height:12px;text-transform:uppercase}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   .recommended.AB[_ngcontent-%COMP%]{margin-left:6px;padding:4.5px 8px;background:#56648C;font-size:8px;line-height:normal}.new-option[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .view-all[_ngcontent-%COMP%]{color:var(--primary-color);font-size:12px;font-weight:600;line-height:24px;cursor:pointer}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]{width:100%;padding:16px 20px}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:18px}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{position:relative}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.active[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:before{content:"";width:inherit;height:inherit;position:absolute;opacity:.5;background:white}.new-option[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .veiw-all[_ngcontent-%COMP%]{width:24px;height:24px;display:flex;align-items:center;margin-left:auto;border-radius:50%;color:#444}.new-option.option-upi[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{padding:13px 20px 8px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%;background-image:url(/assets/images/payment/payment_modes_sprite.png);background-size:110px auto;background-repeat:no-repeat}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.BHIM[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -533px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.GooglePay[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -446.5px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.Paytm[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37.5px -358px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.PhonePe[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -490px}.new-option.option-upi[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]   .main-option[_ngcontent-%COMP%]   .item.Whatsapp[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background-position:-37px -402px}.blurBack[_ngcontent-%COMP%]{opacity:.7}']})),o})();var Qs=d(49);const Bs={mostDonors:!1,nationality:!0,address:!1,anonymous_from_api:!0,only_inr:!1,donate_label:"Stories.proceedDonate",recurring:!0,utm_nudge:!0,story_link:!0,most_donors:!0,pincode:!1},zs={mostDonors:!0,nationality:!0,address:!0,anonymous_from_api:!1,only_inr:!0,donate_label:"Fundraiser.proceedPay",tip:!0,recurring:!1,passport:!0,pan:!0,utm_nudge:!1,story_link:!1,pincode:!0},Ys={mostDonors:!0,nationality:!0,address:!0,anonymous_from_api:!1,only_inr:!0,donate_label:"Fundraiser.proceedPay",tip:!0,recurring:!1,passport:!0,pan:!0,utm_nudge:!1,story_link:!1,pincode:!0},Hs=["storyPaymentRef"],Ks=["fullPayment"];function js(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-payment-header",7),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.getCurrencyFromHeader(a))}),t.qZA()}if(2&o){const n=t.oxw(2);t.Q6J("isReward",n.checkReward())("selectedCurrency",null==n.contributeDetails?null:n.contributeDetails.selected_currency)("screenName",n.screenName)("fundraiser",n.fundraiser)("showBeneficiary",n.showBeneficiary)("contributeDetails",n.contributeDetails)("type",n.headerType)}}function Vs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-amount-form",8),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.getCurrencyFromHeader(a))})("isSumbited",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.isSubmited(a))}),t.qZA()}if(2&o){const n=t.oxw(2);t.Q6J("isReward",n.checkReward())("contributeDetails",n.contributeDetails)("origin",n.origin)("campaignId",null==n.params?null:n.params.id)("config",n.config)("isQR",n.isQR)("c
1aptchaType",n.captchaType)("isLoading",n.isCurrencyLoading)("paymentFlowType",n.type)("isRewardSelected",n.isRewardSelected)("onpage",n.onpage)("paymentIcons",n.paymentIcons)("miniStory",n.payment_config.mini_story)("recommendTag",n.recommendTag)("inputFields",n.inputFields)("position",n.position)("isSipStory",n.isSipStory)("tagLabel",n.tagLabel)("theme",n.theme)("payment_config",n.payment_config)}}function Gs(o,s){if(1&o&&(t.TgZ(0,"section"),t.YNc(1,js,1,7,"app-payment-header",5),t.YNc(2,Vs,1,20,"app-amount-form",6),t.qZA()),2&o){const n=t.oxw();t.Tol(n.customTheme),t.xp6(1),t.Q6J("ngIf",n.isMobile&&n.paymentHeader),t.xp6(1),t.Q6J("ngIf",n.contributeDetails)}}function $s(o,s){}function Ws(o,s){if(1&o&&(t.TgZ(0,"section"),t.YNc(1,$s,0,0,"ng-template",9),t.qZA()),2&o){t.oxw();const n=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",n)}}function Xs(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"div")(1,"app-payment-header-stories",20),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.getCurrencyFromHeader(a))}),t.qZA()()}if(2&o){const n=t.oxw(3);t.xp6(1),t.Q6J("isReward",n.checkReward())("selectedCurrency",null==n.contributeDetails?null:n.contributeDetails.selected_currency)("screenName",n.screenName)("fundraiser",n.fundraiser)("showBeneficiary",n.showBeneficiary)("contributeDetails",n.contributeDetails)("isStandAlone",n.isStandAlone)}}function tr(o,s){1&o&&(t.TgZ(0,"div",21),t._UZ(1,"app-component-loader",22),t.qZA())}function nr(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-payment-header",24),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(4);return t.KtG(r.getCurrencyFromHeader(a))}),t.qZA()}if(2&o){const n=t.oxw(4);t.Q6J("isReward",n.checkReward())("selectedCurrency",null==n.contributeDetails?null:n.contributeDetails.selected_currency)("screenName",n.screenName)("fundraiser",n.fundraiser)("showBeneficiary",n.showBeneficiary&&!n.isSipStory&&!(null!=n.urlParams&&n.urlParams.hide_el))("contributeDetails",n.contributeDetails)("isStandAlone",n.isStandAlone)("type",n.headerType)("tiptyp",n.tiptyp)}}function er(o,s){if(1&o&&t.YNc(0,nr,1,9,"app-payment-header",23),2&o){const n=t.oxw(3);t.Q6J("ngIf",null==n.contributeDetails?null:n.contributeDetails.selected_currency)}}function ir(o,s){if(1&o&&t._UZ(0,"app-rewards",25),2&o){const n=t.oxw(3);t.Q6J("currency",null==n.contributeDetails?null:n.contributeDetails.selected_currency)("rewards",null==n.contributeDetails?null:n.contributeDetails.rewards)("campaignId",null==n.params?null:n.params.id)}}function or(o,s){1&o&&(t.TgZ(0,"div",26),t._UZ(1,"app-component-loader",27),t.qZA())}const ar=function(){return{theme:"v02"}},sr=function(o){return{config:o}};function rr(o,s){1&o&&(t.TgZ(0,"div",28),t._UZ(1,"app-component-loader",29),t.qZA()),2&o&&(t.xp6(1),t.Q6J("inputs",t.VKq(2,sr,t.DdM(1,ar))))}function cr(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"section",11),t.YNc(1,Xs,2,7,"div",12),t.YNc(2,tr,2,0,"div",13),t.YNc(3,er,1,1,"ng-template",null,14,t.W1O),t.YNc(5,ir,1,3,"app-rewards",15),t.YNc(6,or,2,0,"div",16),t.YNc(7,rr,2,4,"div",17),t.TgZ(8,"app-amount-form",18),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(r.getCurrencyFromHeader(a))})("submitOrder",function(a){t.CHM(n);const r=t.oxw(2);return t.KtG(null==r.optionsNav?null:r.optionsNav.submitOrder(a))}),t.qZA(),t._UZ(9,"app-options-nav",19),t.qZA()}if(2&o){const n=t.MAs(4),e=t.oxw(2);t.Gre("full-payment-wrapper ",e.customTheme,""),t.xp6(1),t.Q6J("ngIf",(null==e.urlParams?null:e.urlParams.ct)&&"form"===(null==e.params?null:e.params.payment)&&e.isStoryLink&&(null==e.fundraiser?null:e.fundraiser.story_title))("ngIfElse",n),t.xp6(1),t.Q6J("ngIf",e.vars.askTipOnPayOpt&&"options"==(null==e.params?null:e.params.payment)),t.xp6(3),t.Q6J("ngIf",e.contributeDetails.rewards&&"rd"==(null==e.params?null:e.params.payment)),t.xp6(1),t.Q6J("ngIf",(null==e.vars.selected_insurance?null:e.vars.selected_insurance.vendor)&&!(null!=e.urlParams&&null!=e.urlParams.plan&&e.urlParams.plan.match("plus"))&&!e.vars.couponDetails),t.xp6(1),t.Q6J("ngIf",e.isSipStory&&"options"!==(null==e.params?null:e.params.payment)),t.xp6(1),t.Q6J("isReward",e.checkReward())("contributeDetails",e.contributeDetails)("origin",e.origin)("campaignId",null==e.params?null:e.params.id)("hidden","form"!=(null==e.params?null:e.params.payment))("config",e.config)("isQR",e.isQR)("isLoading",e.isCurrencyLoading)("paymentFlowType",e.type)("isRewardSelected",e.isRewardSelected)("inputFields",e.inputFields)("fixedAmount",e.fixedAmount)("eventCause",e.eventCause)("event",e.event)("upiMode",e.upiMode)("onpage",e.onpage)("captchaType",e.captchaType)("skipFailedCase",e.skipFailedCase)("recommendTag",e.re
1commendTag)("paymentIcons",e.paymentIcons)("miniStory",e.payment_config.mini_story)("position",e.position)("isSipStory",e.isSipStory)("tagLabel",e.tagLabel)("theme",e.theme)("payment_config",e.payment_config),t.xp6(1),t.Q6J("campaignId",null==e.params?null:e.params.id)("hidden","options"!=(null==e.params?null:e.params.payment))("isQR",e.isQR)("origin",(null==e.params?null:e.params.or)||e.origin)("customTag",null==e.params?null:e.params.ct)("contributeDetails",e.contributeDetails)("eventCause",e.eventCause)("peopleServed",e.peopleServed)("updateId",e.updateId)("skipFailedCase",e.skipFailedCase)("isSipStory",e.isSipStory)}}function pr(o,s){if(1&o&&t.YNc(0,cr,10,46,"section",10),2&o){const n=t.oxw();t.Q6J("ngIf",n.contributeDetails)}}function lr(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-payment-header-stories",33),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.getCurrencyFromHeader(a))}),t.qZA()}if(2&o){const n=t.oxw(3);t.Q6J("isReward",n.checkReward())("selectedCurrency",null==n.contributeDetails?null:n.contributeDetails.selected_currency)("screenName",n.screenName)("fundraiser",n.fundraiser)("showBeneficiary",n.showBeneficiary)("contributeDetails",n.contributeDetails)}}function dr(o,s){if(1&o){const n=t.EpF();t.TgZ(0,"app-payment-header",33),t.NdJ("userSelectionCurrency",function(a){t.CHM(n);const r=t.oxw(3);return t.KtG(r.getCurrencyFromHeader(a))}),t.qZA()}if(2&o){const n=t.oxw(3);t.Q6J("isReward",n.checkReward())("selectedCurrency",null==n.contributeDetails?null:n.contributeDetails.selected_currency)("screenName",n.screenName)("fundraiser",n.fundraiser)("showBeneficiary",n.showBeneficiary)("contributeDetails",n.contributeDetails)}}function ur(o,s){if(1&o&&(t.TgZ(0,"section",11),t.YNc(1,lr,1,6,"app-payment-header-stories",31),t.YNc(2,dr,1,6,"app-payment-header",31),t._UZ(3,"app-options-nav",32),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(null==n.config?null:n.config.story_link)&&(null==n.urlParams?null:n.urlParams.ct)&&n.isStoryLink&&(null==n.fundraiser?null:n.fundraiser.story_title)),t.xp6(1),t.Q6J("ngIf",(null==n.config?null:n.config.story_link)&&!(null!=n.urlParams&&n.urlParams.ct)),t.xp6(1),t.Q6J("campaignId",null==n.params?null:n.params.id)("hidden","options"!=(null==n.params?null:n.params.payment))("isQR",n.isQR)("origin",(null==n.params?null:n.params.or)||n.origin)("customTag",null==n.params?null:n.params.ct)("contributeDetails",n.contributeDetails)("isSipStory",n.isSipStory)}}function mr(o,s){if(1&o&&t.YNc(0,ur,4,9,"section",30),2&o){const n=t.oxw();t.Q6J("ngIf",n.contributeDetails)}}let _r=(()=>{class o{constructor(){(0,i.Z)(this,"actRoute",(0,t.f3M)(C.gz)),(0,i.Z)(this,"router",(0,t.f3M)(C.F0)),(0,i.Z)(this,"paymentUtil",(0,t.f3M)(g.K)),(0,i.Z)(this,"paymentService",(0,t.f3M)(L.t)),(0,i.Z)(this,"util",(0,t.f3M)(h.f)),(0,i.Z)(this,"dialog",(0,t.f3M)(y.uw)),(0,i.Z)(this,"storage",(0,t.f3M)(X.V)),(0,i.Z)(this,"vwo",(0,t.f3M)(v.Q)),(0,i.Z)(this,"vars",(0,t.f3M)(u.a)),(0,i.Z)(this,"paymentV2",(0,t.f3M)(B.i)),(0,i.Z)(this,"fundraiser",void 0),(0,i.Z)(this,"origin",void 0),(0,i.Z)(this,"event",void 0),(0,i.Z)(this,"internal",void 0),(0,i.Z)(this,"showBeneficiary",void 0),(0,i.Z)(this,"type",void 0),(0,i.Z)(this,"isBtnClicked",void 0),(0,i.Z)(this,"isRewardSelected",!1),(0,i.Z)(this,"isQR",void 0),(0,i.Z)(this,"fixedAmount",void 0),(0,i.Z)(this,"onlyCurrency",void 0),(0,i.Z)(this,"eventCause",void 0),(0,i.Z)(this,"peopleServed",void 0),(0,i.Z)(this,"isStandAlone",void 0),(0,i.Z)(this,"upiMode",void 0),(0,i.Z)(this,"updateId",void 0),(0,i.Z)(this,"onpage",void 0),(0,i.Z)(this,"skipFailedCase",void 0),(0,i.Z)(this,"captchaType","dialog"),(0,i.Z)(this,"paymentIcons",void 0),(0,i.Z)(this,"recommendTag",void 0),(0,i.Z)(this,"customTheme",""),(0,i.Z)(this,"skipMobileCheck",void 0),(0,i.Z)(this,"paymentHeader",!0),(0,i.Z)(this,"sipCause",void 0),(0,i.Z)(this,"isSipStory",void 0),(0,i.Z)(this,"inputFields",void 0),(0,i.Z)(this,"headerType","v1"),(0,i.Z)(this,"position",void 0),(0,i.Z)(this,"payment_config",void 0),(0,i.Z)(this,"tagLabel",void 0),(0,i.Z)(this,"theme",void 0),(0,i.Z)(this,"tiptyp",void 0),(0,i.Z)(this,"config",void 0),(0,i.Z)(this,"params",{}),(0,i.Z)(this,"contributeDetails",void 0),(0,i.Z)(this,"isMobile",this.vars.isMobile),(0,i.Z)(this,"currency",void 0),(0,i.Z)(this,"screenName",void 0),(0,i.Z)(this,"subscriptions",[]),(0,i.Z)(this,"isCurrencyLoading",void 0),(0,i.Z)(this,"closeDialog",void 0),(0,i.Z)(this,"urlParam
1s",void 0),(0,i.Z)(this,"userdata",void 0),(0,i.Z)(this,"storyPaymentRef",void 0),(0,i.Z)(this,"fullPayment",void 0),(0,i.Z)(this,"optionsNav",void 0),(0,i.Z)(this,"previousCurrency",void 0),(0,i.Z)(this,"paymentCur",void 0),(0,i.Z)(this,"isStoryLink",!1),(0,i.Z)(this,"cartData",void 0),(0,i.Z)(this,"contributeCalled",!1),this.actRoute.queryParams.subscribe(n=>{this.urlParams=n,this.params.payment=n.payment,this.params.oi=n.oi,this.isStoryLink="true"===n.sl,!n.payment&&this.closeDialog&&(this.dialog.closeAll(),this.closeDialog=!1)})}ngOnInit(){var n=this;return(0,_.Z)(function*(){yield n.util.cleanDuplicateUTMs(n.urlParams),n.setConfig(),n.getDetails(),n.getConfig(),n.subscriptions.push(n.vars.userData.subscribe(e=>n.userdata=e)),n.subscriptions.push(n.paymentUtil.paymentCurrency.subscribe({next:e=>n.paymentCur=e})),n.subscriptions.push(n.vars.sipActiveOnPayment.subscribe({next:e=>setTimeout(()=>n.params.or=e,0)})),n.previousCurrency=n.storage.getFromSession("currency"),n.subscriptions.push(n.paymentUtil.isSubmitted.subscribe({next:e=>{e&&n.vars.showKCart&&!n.vars.isMobile&&n.vars.pageName.match("stories|mini_story")&&!n.urlParam
1s?.utm_source?.match("internal_stories_otd_calling")||e&&!n.isQR&&n.isSubmited(e)}})),n.paymentUtil.cartResponse.subscribe({next:e=>{n.cartData=e}})})()}setConfig(){this.payment_config={...Qs.X,...this.payment_config},this.subscriptions.push(this.paymentUtil.paymentConfig.subscribe(n=>{n&&(this.payment_config={...this.payment_config,...n},!0===n?.is_sip&&this.payment_config.sip_contribute_details||!0===this.payment_config?.is_sip&&n?.sip_contribute_details?this.getSipContribute():!1===n?.is_sip&&this.getDetails())}))}getDetails(){this.internal?(this.params.id=this.fundraiser.id,this.params.or=this.origin,this.params.ct=this.fundraiser.custom_tag):this.actRoute.queryParams.subscribe(n=>{this.params={id:n.id,or:n.or,ct:n.ct,payment:n.payment,type:n.type},this.type=this.params.type||this.type}),this.subscriptions.push(this.vars.currency$.subscribe({next:n=>{if((!this.contributeCalled||this.currency!==n)&&(this.contributeCalled=!0,this.currency=n,this.params.id&&n&&this.vars.isBrowser))if(this.actRoute.snapshot.queryParams.selected_currency)this.getContributeFormDetails(this.actRoute.snapshot.queryParams.selected_currency);else if("tip"!==this.origin){const e=this.storage.getFromSession("cartData");this.getContributeFormDetails(this.vars.showKCart&&"f"!==this.urlParams?.st?this.currency:e?.currency||this.currency)}}}))}getConfig(){"s"===this.params.or||"tann"===this.params.or?(this.config=Bs,this.vars.showKCart&&!this.isMobile&&(this.config.mostDonors=!0)):"f"===this.params.or||"up"===this.params.or?(this.config=zs,this.vars.showStoryOnFundraiser&&(this.config.mostDonors=!1)):this.config=Ys}navigateToForms(n){this.router.navigate([],{queryParams:n,queryParamsHandling:"merge"})}getContibuteParams(n){let e=`?currency=${n.currency}&no_pan_change=true&update_multiplier=true&origin=${this.origin}&device=${this.vars.deviceType}`;return this.sipCause&&(e=e.concat(`&sip_cause=${this.sipCause}`)),this.isQR&&(e=e.concat("&currency_only=INR")),this.onlyCurrency&&(e=e.concat(`&currency_only=${this.onlyCurrency}`)),this.previousCurrency&&(e=e.concat(`&pcurrency=${this.previousCurrency}`)),this.vars.utmsUrlString&&(e=e.concat(`&${this.vars.utmsUrlString}`)),this.router.url.match("stories")&&(e=e.concat("&is_story=true")),"INR"===n.currency&&"s"===this.origin&&!this.actRoute.snapshot.queryParams.mini_story&&this.urlParams?.utm_campaign?.toLowerCase().match("lo|bd")&&(e=e.concat("&min_donation=99")),this.vwo.slab_AB()&&(e=e.concat(`&slab_ab=${this.vwo.slab_AB()}`)),"1"===this.urlParams?.birthdaytime&&(e=e.concat("&birthdaytime=1")),this.isSipStory&&(e=e.concat("&sip_story=1")),e}getCurrencyFromHeader(n){var e=this;if(this.isCurrencyLoading=!0,this.payment_config?.is_sip)return void this.paymentUtil.paymentConfig.next({currency:n?.currency||"INR"});const a=this.getContibuteParams(n);this.paymentService.getContributeDetails(this.params.id,a).subscribe(function(){var r=(0,_.Z)(function*(c){c.data.data=yield e.setSlabs(c.data.data),e.contributeDetails=c.data.data,e.contributeDetails?.insurance||(e.vars.selectedFamilyInsurance=null),e.setAnniversaryAmount(),e.paymentUtil.paymentCurrency.next(e.contributeDetails.selected_currency),e.paymentUtil.supportedCurrencies.next(e.contributeDetails.supported_currency),e.isCurrencyLoading=!1});return function(c){return r.apply(this,arguments)}}())}checkReward(){return this.contributeDetails&&this.contributeDetails.rewards&&this.contributeDetails.rewards.length&&!this.isRewardSelected&&!this.fixedAmount}isSubmited(n){if((!this.isMobile||this.onpage||this.isMobile&&!this.vars.pageName.match("stories|mini_story"))&&(this.screenName="options"),this.dialog.getDialogById("otdPaymentDialog"))return;let e;e="s"===this.origin?this.isMobile?this.fullPayment:this.storyPaymentRef:this.fullPayment,this.isStoryLink||setTimeout(()=>{typeof document<"u"&&(this.vars.document.body.style.overflowY="hidden"),this.dialog.closeAll();const a={id:"otdPaymentDialog",width:"100vw",maxWidth:"660px",minHeight:"550px",height:"auto",maxHeight:"calc(100vh - 50px)",panelClass:"payment-dialog",disableClose:!0,closeOnNavigation:!1};this.vars.isMobile&&(a.height="100vh",a.maxHeight="auto"),this.dialog.open(e,a).afterClosed().subscribe(()=>{typeof document<"u"&&(this.vars.document.body.style.overflowY="auto"),this.navigateToForms({modal:null,op:null})})},0)}setAnniversaryAmount(){this.router.url.includes("anniversary")&&!this.urlParam
1s.enable_sip&&(this.contributeDetails.min_donation=10,this.contributeDetails.default_amount=10,this.contributeDetails.slabs[0]=10)}getContributeFormDetails(n){var e=this;const a=this.getContibuteParams({currency:n});this.paymentService.getContributeDetails(this.params.id,a).subscribe(function(){var r=(0,_.Z)(function*(c){c.data.data=yield e.setSlabs(c.data.data),e.contributeDetails={...c.data.data},e.paymentUtil.sendDonationSlabEvent(e.contributeDetails),e.setAnniversaryAmount(),e.paymentUtil.supportedCurrencies.next(c.data.data.supported_currency),e.upiMode&&(e.contributeDetails.min_donation="s"===e.origin?99:1),e.isQR&&(e.contributeDetails.min_donation="s"===e.origin?99:1);const m=e.upiMode&&e.upiMode.mode.match("UPI|WALLET")?["INR"]:e.contributeDetails.supported_currency;if(e.contributeDetails.supported_currency=[...m],e.paymentUtil.supportedCurrencies.next(m),e.paymentUtil.paymentCurrency.next(e.contributeDetails.selected_currency),e.closeDialog=!0,e.checkReward()&&!e.fixedAmount)e.navigateToForms({payment:"rd"}),e.screenName="rd";else{const T=e.storage.getFromSession("cartData");"f"===e.actRoute.snapshot.queryParams.st&&T?e.isBtnClicked&&(!e.vars.showKCart||e.vars.isMobile||!e.vars.pageName.match("stories|mini_story"))&&(e.navigateToForms({payment:"form"}),e.screenName="form"):(e.navigateToForms({payment:e.screenName||"form"}),e.screenName||(e.screenName="form"))}});return function(c){return r.apply(this,arguments)}}())}setSlabs(n){return new Promise(e=>{e(n)})}getSipContribute(){this.contributeDetails=this.payment_config?.sip_contribute_details,this.params.id=this.payment_config?.sip_contribute_details?.campaign?.id,this.paymentUtil.paymentCurrency.next(this.payment_config?.currency),this.paymentUtil.supportedCurrencies.next(this.payment_config?.sip_contribute_details?.supported_currency),this.isCurrencyLoading=!1}ngOnDestroy(){this.paymentUtil.isSubmitted.next(!1),this.subscriptions.forEach(n=>n.unsubscribe())}}return(0,i.Z)(o,"\u0275fac",function(n){return new(n||o)}),(0,i.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-payment"]],viewQuery:function(n,e){if(1&n&&(t.Gf(Hs,7),t.Gf(Ks,7),t.Gf(wt,5)),2&n){let a;t.iGM(a=t.CRH())&&(e.storyPaymentRef=a.first),t.iGM(a=t.CRH())&&(e.fullPayment=a.first),t.iGM(a=t.CRH())&&(e.optionsNav=a.first)}},inputs:{fundraiser:"fundraiser",origin:"origin",event:"event",internal:"internal",showBeneficiary:"showBeneficiary",type:"type",isBtnClicked:"isBtnClicked",isRewardSelected:"isRewardSelected",isQR:"isQR",fixedAmount:"fixedAmount",onlyCurrency:"onlyCurrency",eventCause:"eventCause",peopleServed:"peopleServed",isStandAlone:"isStandAlone",upiMode:"upiMode",updateId:"updateId",onpage:"onpage",skipFailedCase:"skipFailedCase",captchaType:"captchaType",paymentIcons:"paymentIcons",recommendTag:"recommendTag",customTheme:"customTheme",skipMobileCheck:"skipMobileCheck",paymentHeader:"paymentHeader",sipCause:"sipCause",isSipStory:"isSipStory",inputFields:"inputFields",headerType:"headerType",position:"position",payment_config:"payment_config",tagLabel:"tagLabel",theme:"theme",tiptyp:"tiptyp",contributeDetails:"contributeDetails",screenName:"screenName"},standalone:!0,features:[t._Bn([g.K]),t.jDz],decls:7,vars:2,consts:[[1,"dmsans"],[3,"class",4,"ngIf"],[4,"ngIf"],["fullPayment",""],["storyPaymentRef",""],[3,"isReward","selectedCurrency","screenName","fundraiser","showBeneficiary","contributeDetails","type","userSelectionCurrency",4,"ngIf"],[3,"isReward","contributeDetails","origin","campaignId","config","isQR","captchaType","isLoading","paymentFlowType","isRewardSelected","onpage","paymentIcons","miniStory","recommendTag","inputFields","position","isSipStory","tagLabel","theme","payment_config","userSelectionCurrency","isSumbited",4,"ngIf"],[3,"isReward","selectedCurrency","screenName","fundraiser","showBeneficiary","contributeDetails","type","userSelectionCurrency"],[3,"isReward","contributeDetails","origin","campaignId","config","isQR","captchaType","isLoading","paymentFlowType","isRewardSelected","onpage","paymentIcons","miniStory","recommendTag","inputFields","position","isSipStory","tagLabel","theme","payment_config","userSelectionCurrency","isSumbited"],[3,"ngTemplateOutlet"],["id","full-payment-wrapper",3,"class",4,"ngIf"],["id","full-payment-wrapper"],[4,"ngIf","ngIfElse"],["class","tipToggle",4,"ngIf"],["defaultHeader",""],[3,"currency","rewards","campaignId",4,"ngIf"],["class","partner-pay",4,"ngIf"],["class","sip-details",4,"ngIf"],[3,"isReward","contributeDetails","origin","campaignId","hidden","config","isQR","isLoading","paymentFlowType","isRewardSelected","inputFields","fixedAmount","eventCause","event","upiMode","onpage","captchaType","skipFailedCase","recommendTag","paymentIcons","miniStory","position","isSipStory","tagLabel","theme","payment_config","userSelectionCurrency","submitOrder"],[3,"campaignId","hidden","isQR","origin","customTag","contributeDetails","eventCause","peopleServed","updateId","skipFailedCase","isSipStory"],[3,"isReward","selectedCurrency","screenName","fundraiser","showBeneficiary","contributeDetails","isStandAlone","userSelectionCurrency"],[1,"tipToggle"],["selector","app-tip-toggle"],[3,"isReward","selectedCurrency","screenName","fundraiser","showBeneficiary","contributeDetails","isStandAlone","type","tiptyp","userSelectionCurrency",4,"ngIf"],[3,"isReward","selectedCurrency","screenName","fundraiser","showBeneficiary","contributeDetails","isStandAlone","type","tiptyp","userSelectionCurrency"],[3,"currency","rewards","campaignId"],[1,"partner-pay"],["selector","app-partner-plan-upgrade-nudge"],[1,"sip-details"],["selector","app-sip-story-banner",3,"inputs"],["id","full-payment-wrapper",4,"ngIf"],[3,"isReward","selectedCurrency","screenName","fundraiser","showBeneficiary","contributeDetails","userSelectionCurrency",4,"ngIf"],[3,"campaignId","hidden","isQR","origin","customTag","contributeDetails","isSipStory"],[3,"isReward","selectedCurrency","screenName","fundraiser","showBeneficiary","contributeDetails","userSelectionCurrency"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,Gs,3,5,"section",1),t.YNc(2,Ws,2,1,"section",2),t.YNc(3,pr,1,1,"ng-template",null,3,t.W1O),t.YNc(5,mr,1,1,"ng-template",null,4,t.W1O),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngIf","onpage"==e.type&&(!e.isMobile||e.skipMobileCheck)),t.xp6(1),t.Q6J("ngIf","full"==e.type))},dependencies:[l.O5,l.tP,Xt,uo,wo,Io,wt,$.s],styles:['@import"https://api.fontshare.com/v2/css?f[]=sentient@700&display=swap";@media (min-width: 768px){  .payment-dialog .mat-dialog-container{position:relative}}.sip-details[_ngcontent-%COMP%]{max-width:310px;margin:13px auto 30px;text-align:center;color:#444}.sip-details[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-bottom:10px;font-size:20px;font-weight:700;line-height:26px}.sip-details[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:15px;opacity:.85}.theme-v2[_ngcontent-%COMP%]     app-amount-form *:not(.mat-icon):not(.currency-symbol):not(.material-icons):not(i), .theme-v3[_ngcontent-%COMP%]     app-amount-form *:not(.mat-icon):not(.currency-symbol):not(.material-icons):not(i), .theme-v5[_ngcontent-%COMP%]     app-amount-form *:not(.mat-icon):not(.currency-symbol):not(.material-icons):not(i){font-family:Poppins}.theme-v2[_ngcontent-%COMP%]     app-amount-form .main-container, .theme-v3[_ngcontent-%COMP%]     app-amount-form .main-container, .theme-v5[_ngcontent-%COMP%]     app-amount-form .main-container{width:100%;padding:10px 20px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .amount-btn, .theme-v3[_ngcontent-%COMP%]     app-amount-form .amount-btn, .theme-v5[_ngcontent-%COMP%]     app-amount-form .amount-btn{display:none}.theme-v2[_ngcontent-%COMP%]     app-amount-form .tip-card, .theme-v3[_ngcontent-%COMP%]     app-amount-form .tip-card, .theme-v5[_ngcontent-%COMP%]     app-amount-form .tip-card{margin:20px 5px!important}.theme-v2[_ngcontent-%COMP%]     app-amount-form .tip-card .content, .theme-v3[_ngcontent-%COMP%]     app-amount-form .tip-card .content, .theme-v5[_ngcontent-%COMP%]     app-amount-form .tip-card .content{font-size:12px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .tip-card .tip-select, .theme-v3[_ngcontent-%COMP%]     app-amount-form .tip-card .tip-select, .theme-v5[_ngcontent-%COMP%]     app-amount-form .tip-card .tip-select{font-size:14px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .tokens-div, .theme-v3[_ngcontent-%COMP%]     app-amount-form .tokens-div, .theme-v5[_ngcontent-%COMP%]     app-amount-form .tokens-div{justify-content:space-between}.theme-v2[_ngcontent-%COMP%]     app-amount-form .amount-token, .theme-v3[_ngcontent-%COMP%]     app-amount-form .amount-token, .theme-v5[_ngcontent-%COMP%]     app-amount-form .amount-token{font-size:14px;font-weight:700;line-height:21px;border:.856897px solid rgba(168,168,187,.44);box-sizing:border-box;box-shadow:0 1px 1px #4e9a9266;border-radius:5.99828px;
1height:41px;width:100%;margin:0;color:#209f91}.theme-v2[_ngcontent-%COMP%]     app-amount-form .other-amount, .theme-v3[_ngcontent-%COMP%]     app-amount-form .other-amount, .theme-v5[_ngcontent-%COMP%]     app-amount-form .other-amount{font-size:12px;font-weight:400;line-height:22px;background:#FFFFFF;border:.856897px solid rgba(168,168,187,.44);box-sizing:border-box;border-radius:5.99828px;width:100%;box-shadow:none;color:#000;margin:10px auto 20px;padding:0 12px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .other-amount .other-input, .theme-v3[_ngcontent-%COMP%]     app-amount-form .other-amount .other-input, .theme-v5[_ngcontent-%COMP%]     app-amount-form .other-amount .other-input{font-size:14px;font-weight:400;line-height:21px;height:100%}.theme-v2[_ngcontent-%COMP%]     app-amount-form .input-container input, .theme-v3[_ngcontent-%COMP%]     app-amount-form .input-container input, .theme-v5[_ngcontent-%COMP%]     app-amount-form .input-container input{color:#000;font-size:12px;font-weight:400;line-height:16px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .mat-form-field-label, .theme-v3[_ngcontent-%COMP%]     app-amount-form .mat-form-field-label, .theme-v5[_ngcontent-%COMP%]     app-amount-form .mat-form-field-label{font-size:12px;font-weight:400;line-height:16px;top:20px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .proceed-btn, .theme-v3[_ngcontent-%COMP%]     app-amount-form .proceed-btn, .theme-v5[_ngcontent-%COMP%]     app-amount-form .proceed-btn{position:unset!important;box-shadow:none!important;background-color:transparent!important;padding:0!important;margin:20px auto!important}.theme-v2[_ngcontent-%COMP%]     app-amount-form .proceed-btn button, .theme-v3[_ngcontent-%COMP%]     app-amount-form .proceed-btn button, .theme-v5[_ngcontent-%COMP%]     app-amount-form .proceed-btn button{font-size:15px;font-weight:700;line-height:22px;background:var(--primary-color);border-radius:3.75082px;height:45px;box-shadow:none;max-width:100%;margin:0!important}.theme-v2[_ngcontent-%COMP%]     app-amount-form .tnc p, .theme-v3[_ngcontent-%COMP%]     app-amount-form .tnc p, .theme-v5[_ngcontent-%COMP%]     app-amount-form .tnc p{text-align:center;font-style:normal;font-size:8px;font-weight:400;line-height:17px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .tnc a, .theme-v3[_ngcontent-%COMP%]     app-amount-form .tnc a, .theme-v5[_ngcontent-%COMP%]     app-amount-form .tnc a{font-weight:600;color:#000!important;text-decoration:underline}.theme-v2[_ngcontent-%COMP%]     app-amount-form .mat-checkbox .mat-checkbox-label, .theme-v3[_ngcontent-%COMP%]     app-amount-form .mat-checkbox .mat-checkbox-label, .theme-v5[_ngcontent-%COMP%]     app-amount-form .mat-checkbox .mat-checkbox-label{font-size:10px;font-weight:400;line-height:16px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .mat-checkbox .mat-checkbox-inner-container, .theme-v3[_ngcontent-%COMP%]     app-amount-form .mat-checkbox .mat-checkbox-inner-container, .theme-v5[_ngcontent-%COMP%]     app-amount-form .mat-checkbox .mat-checkbox-inner-container{height:12px;width:12px;margin-right:5px}.theme-v2[_ngcontent-%COMP%]     app-amount-form .mat-error, .theme-v2[_ngcontent-%COMP%]     app-amount-form .mat-hint, .theme-v3[_ngcontent-%COMP%]     app-amount-form .mat-error, .theme-v3[_ngcontent-%COMP%]     app-amount-form .mat-hint, .theme-v5[_ngcontent-%COMP%]     app-amount-form .mat-error, .theme-v5[_ngcontent-%COMP%]     app-amount-form .mat-hint{font-size:10px;font-weight:400;line-height:16px;font-style:normal}.theme-v2[_ngcontent-%COMP%]     app-amount-form .other-error, .theme-v3[_ngcontent-%COMP%]     app-amount-form .other-error, .theme-v5[_ngcontent-%COMP%]     app-amount-form .other-error{font-size:10px;font-weight:400;line-height:16px;margin-top:-10px}@media only screen and (min-width: 768px){.theme-v2[_ngcontent-%COMP%]     app-amount-form .mat-standard-chip, .theme-v3[_ngcontent-%COMP%]     app-amount-form .mat-standard-chip, .theme-v5[_ngcontent-%COMP%]     app-amount-form .mat-standard-chip{padding:7px}}.theme-v4[_ngcontent-%COMP%]     app-amount-form *:not(i):not(.material-icons):not(.currency-symbol){font-family:Poppins}.theme-v4[_ngcontent-%COMP%]     app-amount-form .onpage-popup{width:auto;padding:0 20px;overflow:unset!important}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .tokens-div{gap:4px}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .tokens-div button{font-size:17px;font-weight:700;line-height:150%;color:#394556;margin:unset!important;width:100.67px;height:56px;border:2px solid #D8E2EB;box-shadow:0 4px 4px #0000000a;border-radius:10px}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .other-amount{width:100%;height:45px;font-size:14px;font-weight:400;line-height:150%;letter-spacing:.02em;border:2px solid #D8E2EB;box-shadow:0 4px 4px #0000000a;border-radius:10px;margin:8px auto;padding:0}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .other-amount   .currency-symbol{font-size:17px;font-weight:700}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .other-amount input{width:auto;height:100%}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .other-amount .mat-standard-chip{padding:5px}.theme-v4[_ngcontent-%COMP%]     app-amount-form .nationality-group{transform:scale(.8)}.theme-v4[_ngcontent-%COMP%]     app-amount-form mat-checkbox .mat-checkbox-inner-container{height:14px;width:14px;margin-right:4px}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-intl-input input, .theme-v4[_ngcontent-%COMP%]     app-amount-form app-input input{font-size:14px;font-weight:400;line-height:150%}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-intl-input .mat-error, .theme-v4[_ngcontent-%COMP%]     app-amount-form app-input .mat-error{font-size:12px;font-weight:400;line-height:150%}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-intl-input .mat-hint, .theme-v4[_ngcontent-%COMP%]     app-amount-form app-input .mat-hint{font-size:11px;font-weight:400;line-height:150%}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-donate-btn .donation-form-submit{margin:10px auto;height:60px;font-size:20px;font-weight:700;line-height:150%;border-radius:4px}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-donate-btn .donation-form-submit .content span{font-family:DM Sans,serif!important}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-donate-btn .donation-form-submit .currency-symbol{font-family:DM Sans,serif!important}.theme-v4[_ngcontent-%COMP%]     app-amount-form .tnc{font-size:12px;font-weight:400;line-height:150%;text-align:center}@media only screen and (min-width: 767px){.theme-v4[_ngcontent-%COMP%]     app-amount-form .onpage-popup{max-width:400px}}@media only screen and (max-width: 769px){.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .tokens-div button{width:100%!important}.theme-v4[_ngcontent-%COMP%]     app-amount-form app-slabs .other-amount{max-width:auto!important}}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div{gap:15px}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div button{width:100%;height:87px;margin:auto!important;font-family:Sentient,serif;font-size:22px;font-weight:700;line-height:35px;color:#626262;border:1px solid #E1E1E1;border-radius:5px;box-shadow:none}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div button .recommended-tag{display:none}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div button span{font-family:Sentient,serif!important}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div button span div{font-family:Sentient,serif!important}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div button span div .month-label{font-family:Poppins,sans-serif!important;color:#626262;font-size:12px;font-weight:400;line-height:19px}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div button span div .month-label.active{color:#fff}.theme-v5[_ngcontent-%COMP%]     app-slabs .other-amount{font-size:13px;font-weight:400;line-height:22px;max-width:400px}@media (max-width: 768px){  .main-container{background:#ffffff}.theme-v5[_ngcontent-%COMP%]     app-amount-form .main-container{padding:10px 15px}.theme-v5[_ngcontent-%COMP%]     app-slabs .tokens-div{gap:10px}}']}
1)),o})()},7491:(q,S,d)=>{d.d(S,{R:()=>t});var _=d(1222),i=d(2560);let t=(()=>{class l{constructor(){(0,_.Z)(this,"amount",0),(0,_.Z)(this,"goal",0),(0,_.Z)(this,"height","6px"),(0,_.Z)(this,"percentage",void 0)}ngOnChanges(){this.setProgressbar()}setProgressbar(){this.percentage=this.amount/this.goal*100+"%"}}return(0,_.Z)(l,"\u0275fac",function(y){return new(y||l)}),(0,_.Z)(l,"\u0275cmp",i.Xpm({type:l,selectors:[["app-progress-bar"]],inputs:{amount:"amount",goal:"goal",height:"height"},standalone:!0,features:[i.TTD,i.jDz],decls:3,vars:4,consts:[[1,"progress-bar"],["id","bar"],["progresbar",""]],template:function(y,f){1&y&&(i.TgZ(0,"div",0),i._UZ(1,"div",1,2),i.qZA()),2&y&&(i.xp6(1),i.Udp("width",f.percentage)("height",f.height))},styles:[".progress-bar[_ngcontent-%COMP%]{width:100%;background-color:rgba(var(--primary-color-rgb),.3);border-radius:1rem}#bar[_ngcontent-%COMP%]{width:1%;max-width:100%;background-color:var(--primary-color);border-radius:1rem}"]})),l})()},2516:(q,S,d)=>{d.d(S,{n:()=>C});var _=d(1222),i=d(2560),t=d(4666),l=d(207);function w(g,x){if(1&g&&(i.TgZ(0,"em",5),i._uU(1),i.qZA()),2&g){const h=i.oxw(2);i.xp6(1),i.Oqu(h.preIcon)}}function y(g,x){if(1&g&&(i.TgZ(0,"em",5),i._uU(1),i.qZA()),2&g){const h=i.oxw(2);i.xp6(1),i.Oqu(h.postIcon)}}function f(g,x){if(1&g&&(i.TgZ(0,"div"),i.YNc(1,w,2,1,"em",3),i._UZ(2,"span",4),i.YNc(3,y,2,1,"em",3),i.qZA()),2&g){const h=i.oxw();i.Udp("font-size",null==h.themeConfig?null:h.themeConfig.fontSize)("font-family",null==h.themeConfig?null:h.themeConfig.fontFamily)("color",null==h.themeConfig?null:h.themeConfig.textColor)("background",null==h.themeConfig?null:h.themeConfig.bgColor)("letter-spacing",null==h.themeConfig?null:h.themeConfig.letterSpacing),i.xp6(1),i.Q6J("ngIf",h.preIcon),i.xp6(1),i.Q6J("innerHTML",h.label,i.oJD),i.xp6(1),i.Q6J("ngIf",h.postIcon)}}function O(g,x){1&g&&(i.TgZ(0,"div",6)(1,"div",7),i._UZ(2,"div")(3,"div")(4,"div")(5,"div"),i.qZA()())}let C=(()=>{class g{constructor(){(0,_.Z)(this,"type","button"),(0,_.Z)(this,"id",""),(0,_.Z)(this,"class",""),(0,_.Z)(this,"disabled",void 0),(0,_.Z)(this,"label",""),(0,_.Z)(this,"preIcon",""),(0,_.Z)(this,"postIcon",""),(0,_.Z)(this,"loading",!1),(0,_.Z)(this,"themeConfig",{textColor:"",borderSize:"",borderColor:"",bgColor:"",width:"",height:"",fontSize:"",fontFamily:"",letterSpacing:"",boxShadow:"",borderRadius:""}),(0,_.Z)(this,"btnClicked",new i.vpe)}}return(0,_.Z)(g,"\u0275fac",function(h){return new(h||g)}),(0,_.Z)(g,"\u0275cmp",i.Xpm({type:g,selectors:[["app-basic-button"]],inputs:{type:"type",id:"id",class:"class",disabled:"disabled",label:"label",preIcon:"preIcon",postIcon:"postIcon",loading:"loading",themeConfig:"themeConfig"},outputs:{btnClicked:"btnClicked"},standalone:!0,features:[i.jDz],decls:3,vars:22,consts:[[3,"type","id","disabled","click"],[3,"font-size","font-family","color","background","letter-spacing",4,"ngIf"],["class","loader",4,"ngIf"],["class","material-icons",4,"ngIf"],[3,"innerHTML"],[1,"material-icons"],[1,"loader"],[1,"lds-ellipsis"]],template:function(h,u){1&h&&(i.TgZ(0,"button",0),i.NdJ("click",function(P){return u.btnClicked.emit(P)}),i.YNc(1,f,4,13,"div",1),i.YNc(2,O,6,0,"div",2),i.qZA()),2&h&&(i.Tol(u.class),i.Udp("width",null==u.themeConfig?null:u.themeConfig.width)("height",null==u.themeConfig?null:u.themeConfig.height)("background",null==u.themeConfig?null:u.themeConfig.borderColor)("padding",null==u.themeConfig?null:u.themeConfig.borderSize)("box-shadow",null==u.themeConfig?null:u.themeConfig.boxShadow)("border-radius",null==u.themeConfig?null:u.themeConfig.borderRadius)("opacity",u.disabled?"0.5":"1"),i.Q6J("type",u.type)("id",u.id)("disabled",u.disabled||u.loading),i.xp6(1),i.Q6J("ngIf",!u.loading),i.xp6(1),i.Q6J("ngIf",u.loading))},dependencies:[t.ez,t.O5,l.si],styles:[".lds-ellipsis[_ngcontent-%COMP%]{display:inline-block;position:relative;width:64px;height:10px}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;animation-timing-function:cubic-bezier(0,1,1,0)}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis1 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){left:6px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(3){left:26px;animation:_ngcontent-%COMP%_lds-ellipsis2 .6s infinite}.lds-ellipsis[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(4){left:45px;animation:_ngcontent-%COMP%_lds-ellipsis3 .6s infinite}@keyframes _ngcontent-%COMP%_lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _ngcontent-%COMP%_lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _ngcontent-%COMP%_lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(19px)}}button[_ngcontent-%COMP%]{width:100%;height:48px;border-radius:4px;padding:2px;background:linear-gradient(to top,var(--primary-color-shadow-9),var(--primary-color-shadow-8));box-shadow:0 2px 4px #00000014;border:none}button[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;gap:4px;background:var(--primary-color);border-radius:inherit;font-size:14px;font-weight:700;line-height:130%;letter-spacing:-.28px;color:#fff}button[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   em.material-icons[_ngcontent-%COMP%]{font-size:120%}button[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{width:100%}button[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]   .lds-ellipsis[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-left:-56px}"]})),g})()},409:(q,S,d)=>{d.r(S),d.d(S,{SipPitchOtdComponent:()=>x});var _=d(1222),i=d(2560),t=d(4666),l=d(1072),w=d(7837),y=d(1322),f=d(3547);function O(h,u){1&h&&(i.O4$(),i._UZ(0,"rect",17))}function C(h,u){1&h&&(i.O4$(),i._UZ(0,"path",18))}function g(h,u){1&h&&(i.O4$(),i._UZ(0,"rect",19))}let x=(()=>{class h{constructor(){(0,_.Z)(this,"actRoute",(0,i.f3M)(f.gz)),(0,_.Z)(this,"events",(0,i.f3M)(w.n)),(0,_.Z)(this,"vars",(0,i.f3M)(y.a)),(0,_.Z)(this,"currency",void 0),(0,_.Z)(this,"isChecked",!1),(0,_.Z)(this,"displayAmt",0),(0,_.Z)(this,"amounts",{USD:15,GBP:10,EUR:5,AED:30,SAR:15,SGD:10,CAD:5,HKD:20,QAR:10,AUD:10,MYR:10}),(0,_.Z)(this,"params",{...this.actRoute.snapshot.queryParams})}ngOnInit(){console.log("app-sip-pitch-otd init",this.vars.selectedOtdSipAmt),"f"===this.params?.st&&+this.params?.otd_sip===this.amounts[this.currency]&&(this.isChecked=!0,this.setValue())}ngOnChanges(v){this.vars.selectedOtdSipAmt&&(this.isChecked=!0),v?.currency&&v?.currency?.currentValue!==v?.currency?.previousValue&&(this.displayAmt=Object.keys(this.amounts).includes(this.currency)?this.amounts[this.currency]:5,this.setValue())}onCheck(){this.isChecked=!this.isChecked,this.setValue(),this.events.sendSystemEvent({eventName:"otd_sip_click",info_1:`${this.isChecked}`,info_2:this.currency}).subscribe(v=>v)}setValue(){this.vars.selectedOtdSipAmt=this.isChecked?this.displayAmt:0}ngOnDestroy(){console.log("app-sip-pitch-otd destroy")}}return(0,_.Z)(h,"\u0275fac",function(v){return new(v||h)}),(0,_.Z)(h,"\u0275cmp",i.Xpm({type:h,selectors:[["app-sip-pitch-otd"]],inputs:{currency:"currency"},standalone:!0,features:[i.TTD,i.jDz],decls:22,vars:5,consts:[[1,"sipPitchOtdWrap"],[1,"content"],[1,"logo"],["ngSrc","assets/images/hunger.png","width","80","height","98","alt","hunger"],[1,"actSection"],[1,"checkBox",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","17","height","18","viewBox","0 0 17 18","fill","none"],["clip-path","url(#clip0_5583_11015)"],["y","0.299805","width","20","height","20","fill","#288B91",4,"ngIf"],["d","M5 8.7998L7.66667 11.2998L13 6.2998","stroke","#FCFCFC","stroke-width","2",4,"ngIf"],["x","0.5","y","0.799805","width","16","height","16","rx","6","stroke","#288B91","stroke-width","1","fill","none",4,"ngIf"],["id","clip0_5583_11015"],["y","0.299805","width","17","height","17","rx","6","fill","white"],[1,"text"],[1,"title"],[1,"sub-title"],[3,"currency"],["y","0.299805","width","20","height","20","fill","#288B91"],["d","M5 8.7998L7.66667 11.2998L13 6.2998","stroke","#FCFCFC","stroke-width","2"],["x","0.5","y","0.799805","width","16","height","16","rx","6","stroke","#288B91","stroke-width","1","fill","none"]],template:function(v,P){1&v&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2),i._UZ(3,"img",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5),i.NdJ("
1click",function(){return P.onCheck()}),i.O4$(),i.TgZ(6,"svg",6)(7,"g",7),i.YNc(8,O,1,0,"rect",8),i.YNc(9,C,1,0,"path",9),i.YNc(10,g,1,0,"rect",10),i.qZA(),i.TgZ(11,"defs")(12,"clipPath",11),i._UZ(13,"rect",12),i.qZA()()()(),i.kcU(),i.TgZ(14,"div",13)(15,"div",14),i._uU(16,"Make a lasting impact."),i.qZA(),i.TgZ(17,"div",15),i._uU(18,"Choose a monthly contribution plan with just "),i.TgZ(19,"strong"),i._UZ(20,"app-currency",16),i._uU(21),i.qZA()()()()()()),2&v&&(i.xp6(8),i.Q6J("ngIf",P.isChecked),i.xp6(1),i.Q6J("ngIf",P.isChecked),i.xp6(1),i.Q6J("ngIf",!P.isChecked),i.xp6(10),i.Q6J("currency",P.currency),i.xp6(1),i.hij("",P.displayAmt,"/ month."))},dependencies:[t.ez,t.O5,l.Q,t.Zd],styles:[".sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{min-height:91px;position:relative;padding:12px;border-radius:12px;background:var(--Neutral-White, #FCFCFC);box-shadow:0 0 20px #0000001f}.sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{position:absolute;right:9px;bottom:3.8px;width:80px;height:98px}.sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:inherit;height:inherit}.sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actSection[_ngcontent-%COMP%]{display:flex;gap:8px}.sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actSection[_ngcontent-%COMP%]   .checkBox[_ngcontent-%COMP%]{cursor:pointer}.sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actSection[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{max-width:193px}.sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actSection[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-bottom:4px;color:#262626;font-size:14px;font-weight:700;line-height:130%;letter-spacing:-.28px}.sipPitchOtdWrap[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .actSection[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .sub-title[_ngcontent-%COMP%]{color:#444;font-size:12px;font-weight:400;line-height:150%;letter-spacing:-.24px}"]})),h})()},5660:(q,S,d)=>{d.d(S,{F:()=>l});var _=d(1222),i=d(2560),t=d(2890);let l=(()=>{class w{constructor(){(0,_.Z)(this,"dateHelper",(0,i.f3M)(t.m))}transform(f="",...O){switch(O[0]){case"format":{const C={};return O?.[2]&&(C[`${O?.[2]}`]=Number(O?.[3])||0),O?.[4]&&(C[`${O?.[4]}`]=Number(O?.[5])||0),O?.[6]&&(C[`${O?.[4]}`]=Number(O?.[7])||0),this.dateHelper.formatDate(f,String(O?.[1]),C)}case"timeAgo":return this.dateHelper.getTimeAgo(f);case"diffInSec":return this.dateHelper.getRemainingTime("s",f,String(O?.[1]||""),+O?.[2]||0);case"diffInMins":return this.dateHelper.getRemainingTime("m",f,String(O?.[1]||""),+O?.[2]||0);case"diffInHrs":return this.dateHelper.getRemainingTime("H",f,String(O?.[1]||""),+O?.[2]||0);case"diffInDays":return this.dateHelper.getRemainingTime("D",f,String(O?.[1]||""),+O?.[2]||0);case"diffInMonths":return this.dateHelper.getRemainingTime("M",f,String(O?.[1]||""),+O?.[2]||0);case"remaingTime":{const C={};String(O?.[1]||"D-H-m-s").split("-").forEach(h=>C[h]=!0);let g=this.dateHelper.getRelativeTimeRemaining(f);C?.Y&&0===g?.Y&&(C.M=!0),C?.M&&0===g?.M&&(C.D=!0),C?.D&&0===g?.D&&(C.H=!0),C?.H&&0===g?.H&&(C.m=!0),C?.m&&0===g?.m&&(C.s=!0),g=this.dateHelper.getRelativeTimeRemaining(f,C);let x="";return C?.Y&&(x=`${x} ${g.Y} ${1===g.Y?"Year":"Years"}`),C?.M&&g.M&&(x=`${x} ${g.M} ${1===g.M?"Month":"Months"}`),C?.D&&g.D&&(x=`${x} ${g.D} ${1===g.D?"Day":"Days"}`),C?.H&&g.H&&(x=`${x} ${g.H} ${1===g.H?"Hour":"Hours"}`),C?.m&&g.m&&(x=`${x} ${g.m} ${1===g.m?"Minute":"Minutes"}`),C?.s&&g.s&&(x=`${x} ${g.s} ${1===g.s?"Second":"Seconds"}`),x=x.split(" ").map((h,u)=>(2!==u&&(h=h.toLowerCase()),h)).join(" "),x}case"isAfter":return this.dateHelper.getRemainingTime("ms",f,String(O?.[1]||""))>0}return""}}return(0,_.Z)(w,"\u0275fac",function(f){return new(f||w)}),(0,_.Z)(w,"\u0275pipe",i.Yjl({name:"customDate",type:w,pure:!0,standalone:!0})),w})()},9796:(q,S,d)=>{d.d(S,{O:()=>l});var _=d(1222),i=d(2560),t=d(1349);let l=(()=>{class w{constructor(){(0,_.Z)(this,"util",(0,i.f3M)(t.f))}transform(f,O){switch(O){case"titleCaseFirstWord":return this.util.titleCaseFirstWord(f);case"titleCaseEveryWord":return this.util.titleCaseEveryWord(f)}return"incorrect util method"}}return(0,_.Z)(w,"\u0275fac",function(f){return new(f||w)}),(0,_.Z)(w,"\u0275pipe",i.Yjl({name:"utilPipe",type:w,pure:!0,standalone:!0})),w})()},4714:(q,S,d)=>{d.d(S,{Rr:()=>I,rP:()=>W});var _=d(3773),i=d(2560),t=d(207),l=d(4218),w=d(8971),y=d(2508);const f=["input"],O=function(M){return{enterDuration:M}},C=["*"],g=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let x=0;const h={provide:y.JU,useExisting:(0,i.Gpc)(()=>I),multi:!0};class u{constructor(N,b){this.source=N,this.checked=b}}const v=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(M){this._elementRef=M}}))));let P=(()=>{class M extends v{constructor(b,k,F,E,R,G,ot){super(b),this._focusMonitor=k,this._changeDetectorRef=F,this.defaults=R,this._onChange=pt=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(E)||0,this.color=this.defaultColor=R.color||"accent",this._noopAnimations="NoopAnimations"===G,this.id=this._uniqueId=`${ot}${++x}`}get required(){return this._required}set required(b){this._required=(0,w.Ig)(b)}get checked(){return this._checked}set checked(b){this._checked=(0,w.Ig)(b),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(b=>{"keyboard"===b||"program"===b?this._focused=!0:b||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(b){this.checked=!!b}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}setDisabledState(b){this.disabled=b,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return M.\u0275fac=function(b){i.$Z()},M.\u0275dir=i.lG2({type:M,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[i.qOj]}),M})(),I=(()=>{class M extends P{constructor(b,k,F,E,R,G){super(b,k,F,E,R,G,"mat-slide-toggle-")}_createChangeEvent(b){return new u(this,b)}_onChangeEvent(b){b.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(b){b.stopPropagation()}focus(b,k){k?this._focusMonitor.focusVia(this._inputElement,k,b):this._inputElement.nativeElement.focus(b)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return M.\u0275fac=function(b){return new(b||M)(i.Y36(i.SBq),i.Y36(l.tE),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(g),i.Y36(i.QbO,8))},M.\u0275cmp=i.Xpm({type:M,selectors:[["mat-slide-toggle"]],viewQuery:function(b,k){if(1&b&&i.Gf(f,5),2&b){let F;i.iGM(F=i.CRH())&&(k._inputElement=F.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(b,k){2&b&&(i.Ikx("id",k.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),i.e
1kj("mat-checked",k.checked)("mat-disabled",k.disabled)("mat-slide-toggle-label-before","before"==k.labelPosition)("_mat-animation-noopable",k._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[i._Bn([h]),i.qOj],ngContentSelectors:C,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(b,k){if(1&b&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(E){return k._onChangeEvent(E)})("click",function(E){return k._onInputClick(E)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()()(),i.TgZ(9,"span",9,10),i.NdJ("cdkObserveContent",function(){return k._onLabelTextChange()}),i.TgZ(11,"span",11),i._uU(12,"\xa0"),i.qZA(),i.Hsn(13),i.qZA()()),2&b){const F=i.MAs(1),E=i.MAs(10);i.uIk("for",k.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!E.textContent||!E.textContent.trim()),i.xp6(1),i.Q6J("id",k.inputId)("required",k.required)("tabIndex",k.tabIndex)("checked",k.checked)("disabled",k.disabled),i.uIk("name",k.name)("aria-checked",k.checked)("aria-label",k.ariaLabel)("aria-labelledby",k.ariaLabelledby)("aria-describedby",k.ariaDescribedby),i.xp6(4),i.Q6J("matRippleTrigger",F)("matRippleDisabled",k.disableRipple||k.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,O,k._noopAnimations?0:150))}},dependencies:[t.wG,_.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}
1@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),M})(),V=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=i.oAB({type:M}),M.\u0275inj=i.cJS({}),M})(),W=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=i.oAB({type:M}),M.\u0275inj=i.cJS({imports:[V,t.si,t.BQ,_.Q8,V,t.BQ]}),M})()}}]);
2//# sourceMappingURL=2138.01d1e55228b0ef6e.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.