PageSourceSearch

https://thebestorg.com/chunk-66GY7MWX.js

js thebestorg.com collected 2026-10-04 03:51:49 UTC 111,726 bytes, 4 lines download raw bytes

1import{a as ve}from"./chunk-DMEZWVLV.js";import{a as ye}from"./chunk-WAN6OEWY.js";import{a as pn}from"./chunk-PLDTPKBY.js";import{$a as Mt,$c as Ot,Aa as ht,Af as Qt,Ba as $,Ca as z,Da as gt,Dg as rn,Ea as _t,Ef as jt,Fa as bt,Fh as un,Ga as Ct,Gh as mn,Ha as yt,Ia as vt,Ja as fe,Jf as W,Ka as Pe,Kf as $t,La as xt,Lf as Gt,Ma as St,Na as It,Nf as Ht,Oa as Ft,Of as Wt,Og as sn,Pa as wt,Qa as re,Qe as Vt,Ra as B,Sa as Pt,Sf as Yt,Ta as qt,Ua as he,Va as Dt,Vf as be,Wa as qe,Wf as Zt,Xa as De,Xg as ln,Ya as ke,Yf as Jt,Za as kt,_a as At,_f as Xt,bg as Kt,cd as Tt,cg as en,eg as tn,ff as Bt,fg as nn,gg as Ce,jh as cn,pg as on,qf as se,sf as ge,tg as G,ug as an,va as pt,vf as zt,vh as dn,wa as Y,xa as ft,xf as Ut,ya as oe,yf as Rt,za as ae}from"./chunk-Z7QJGSO2.js";import"./chunk-CAAQCI76.js";import{a as Et,c as Ae}from"./chunk-2DG4EMG2.js";import"./chunk-HSHVAMXQ.js";import"./chunk-HT4BWSKW.js";import{d as Nt,q as Lt}from"./chunk-7IP4N3MI.js";import"./chunk-Y7VNH7AT.js";import{F as rt,G as st,H as lt,J as ct,K as dt,M as _e,b as Ye,c as Ze,e as P,g as Je,h as Xe,j as Fe,l as Ke,m as k,o as et,p as tt,q as nt,v as it,x as ot,y as at}from"./chunk-SN2LMZH2.js";import{a as pe}from"./chunk-SKJKBA5P.js";import{$a as Ne,Ab as D,Fb as y,Fd as te,Gd as we,Hb as l,Hc as ue,I as Ve,K as I,Lb as Qe,Ma as J,Mb as je,Nb as $e,Nc as me,Ra as s,Rd as ne,Sb as Ge,Sd as ut,Td as ie,Vc as K,Wb as c,Xb as V,Xd as mt,Ya as _,Yb as N,Yd as L,_a as X,_c as ee,ad as We,eb as Le,ia as Be,ic as M,jb as p,kc as He,lb as f,n as Se,nb as ze,ob as Ue,oc as v,pb as Re,pc as x,qa as b,qb as m,ra as C,rb as a,s as Oe,sa as O,sb as r,ta as T,tb as g,x as Ie,z as Te}from"./chunk-TMJ7EB5C.js";import"./chunk-XLHMB6CO.js";import"./chunk-N2ADYHRH.js";import"./chunk-2N4XUULZ.js";import{a as E,b as j}from"./chunk-E5QWB6YB.js";var fn=i=>({"form-is-submitted":i}),hn=i=>({opened:i}),gn=i=>({disabled:i}),xe=i=>({selected:i}),Ee=i=>({"is-focus":i}),Dn=i=>({"only-one":i}),kn=(i,u,e)=>({amount:i,questId:u,backeeId:e,transactionType:"DONATION"});function An(i,u){if(i&1&&(a(0,"strong",1),c(1,"Donating to"),r()),i&2){let e=l();m("hidden",e.isQuantityBased()||e.isAmountBased())}}function Mn(i,u){i&1&&(a(0,"div",22)(1,"div"),c(2,"Please choose a brand to donate to"),r()())}function En(i,u){if(i&1){let e=D();a(0,"div",2)(1,"app-brand-list",21),y("onBrandSelected",function(n){b(e);let o=l();return C(o.onBrandSelected(n))}),r(),p(2,Mn,3,0,"div",22),r()}if(i&2){let e=l();m("hidden",e.isQuantityBased()||e.isAmountBased()),s(),m("brandsList",e.brands)("placeholder","-Select-")("disableDefaults",!0),s(),f(e.donateFormSubmitted&&!e.selectedTeamCreatorId&&!e.touchedBrandSelect?2:-1)}}function On(i,u){if(i&1){let e=D();a(0,"div",3)(1,"app-brand-list",23),y("onBrandSelected",function(n){b(e);let o=l();return C(o.onSecondaryBrandSelected(n))}),r()()}if(i&2){let e=l();s(),m("hidden",e.secondaryBrands.length===1)("brandsList",e.secondaryBrands)("placeholder","Please select recipient 2")("disableDefaults",!0)}}function Tn(i,u){i&1&&(a(0,"div",4)(1,"strong",24),c(2,"$500 sponsors a full game"),r()())}function Vn(i,u){i&1&&c(0," $50 per athlete sponsored ")}function Bn(i,u){i&1&&c(0," $25 per pack ")}function Nn(i,u){i&1&&(a(0,"span"),c(1,"\xA0($15 of each $50 contribution is tax-deductible)"),r())}function Ln(i,u){if(i&1&&(a(0,"strong",24),p(1,Vn,1,0),p(2,Bn,1,0),r(),p(3,Nn,2,0,"span")),i&2){let e=l(2);s(),f(!e.environment.production&&e.questId===2889||e.environment.production&&e.questId===1331?1:-1),s(),f(!e.environment.production&&e.questId===3330||e.environment.production&&e.questId===1384?2:-1),s(),f(!e.environment.production&&e.questId===2889||e.environment.production&&e.questId===1331?3:-1)}}function zn(i,u){i&1&&c(0," Number of Athletes ")}function Un(i,u){i&1&&c(0," Number of packs ")}function Rn(i,u){if(i&1){let e=D();a(0,"div",4),p(1,Ln,4,3),r(),a(2,"div",25)(3,"div",26)(4,"div",4)(5,"div",8),p(6,zn,1,0),p(7,Un,1,0),r(),a(8,"div",27)(9,"div",28),y("click",function(){b(e);let n=l();return C(n.updateTicketCount("minus"))}),O(),a(10,"svg",29),g(11,"use",30),r()(),T(),a(12,"div",31),g(13,"input",32),r(),a(14,"div",33),y("click",function(){b(e);let n=l();return C(n.updateTicketCount("plus"))}),O(),a(15,"svg",34),g(16,"use",35),r()()()()(),T(),a(17,"div",36)(18,"div",4)(19,"div",8),c(20,"Amount"),r(),a(21,"div",9)(22,"div",37)(23,"div",38)(24,"div",39)(25,"span"),c(26,"$"),r()(),a(27,"div"),c(28),r()()()()()()()}if(i&2){let e=l();s(),f(!e.environment.production&&(e.questId===2889||e.questId===3330)||e.environment.production&&(e.questId===1331||e.questId===1384)?1:-1),s(5),f(!e.environment.production&&e.questId===2889||e.environment.production&&e.questId===1331?6:-1),s(),f(!e.environment.production&&e.questId===3330||e.environment.production&&e.questId===1384?7:-1),s(2),m("ngClass",M(6,gn,(e.donateForm==null||e.donateForm.value==null?null:e.donateForm.value.quantity)<=1)),s(5),m("ngClass",M(8,gn,(e.donateForm==null||e.donateForm.value==null?null:e.donateForm.value.quantity)>
1=99)),s(14),V(e.donateForm.value.amountOwn)}}function Qn(i,u){if(i&1){let e=D();a(0,"div",47),y("click",function(){b(e);let n=l(3);return C(n.changeDonateFrequency("single"))}),a(1,"span"),c(2,"One Time"),r()()}if(i&2){let e=l(3);m("ngClass",M(1,xe,e.donationFrequency==="single"))}}function jn(i,u){if(i&1){let e=D();a(0,"div",47),y("click",function(){b(e);let n=l(3);return C(n.changeDonateFrequency("monthly"))}),a(1,"span"),c(2,"Monthly"),r()()}if(i&2){let e=l(3);m("ngClass",M(1,xe,e.donationFrequency==="monthly"))}}function $n(i,u){if(i&1){let e=D();a(0,"div",47),y("click",function(){b(e);let n=l(3);return C(n.changeDonateFrequency("quarterly"))}),a(1,"span"),c(2,"Quarterly"),r()()}if(i&2){let e=l(3);m("ngClass",M(1,xe,e.donationFrequency==="quarterly"))}}function Gn(i,u){if(i&1){let e=D();a(0,"div",47),y("click",function(){b(e);let n=l(3);return C(n.changeDonateFrequency("yearly"))}),a(1,"span"),c(2,"Yearly"),r()()}if(i&2){let e=l(3);m("ngClass",M(1,xe,e.donationFrequency==="yearly"))}}function Hn(i,u){if(i&1&&(a(0,"div",40)(1,"label",44),c(2,"Donation frequency"),r(),a(3,"div",45),p(4,Qn,3,3,"div",46),p(5,jn,3,3,"div",46),p(6,$n,3,3,"div",46),p(7,Gn,3,3,"div",46),r()()),i&2){let e=l(2);m("hidden",e.isQuantityBased()||e.isAmountBased()),s(4),f(!e.monthlyFlag||e.oneTimeEnabled?4:-1),s(),f(e.isIntervalEnabled("monthly")?5:-1),s(),f(e.isIntervalEnabled("quarterly")?6:-1),s(),f(e.isIntervalEnabled("yearly")?7:-1)}}function Wn(i,u){if(i&1){let e=D();a(0,"div",42)(1,"div",48)(2,"div",39)(3,"span"),c(4,"$"),r()(),a(5,"input",49),y("focus",function(){b(e);let n=l(2);return C(n.setPrice("own"))}),r()()()}if(i&2){let e=l(2);s(),m("ngClass",M(1,Ee,e.selectedPriceNotFromSet()))}}function Yn(i,u){if(i&1){let e=D();a(0,"div",50)(1,"button",51),y("click",function(){let n=b(e).$implicit,o=l(3);return C(o.setPrice(n))}),a(2,"span"),c(3),r()()()}if(i&2){let e=u.$implicit,t=l(3);s(),m("ngClass",M(2,Ee,e===t.enteredAmount)),s(2),N("$",e)}}function Zn(i,u){if(i&1&&Ue(0,Yn,4,4,"div",50,ze),i&2){let e=l(2);Re(e.prices)}}function Jn(i,u){if(i&1){let e=D();a(0,"div",43)(1,"div",48)(2,"div",39)(3,"span"),c(4,"$"),r()(),a(5,"input",49),y("focus",function(){b(e);let n=l(2);return C(n.setPrice("own"))}),r()()()}if(i&2){let e=l(2);m("ngClass",M(2,Dn,e.prices.length===1)),s(),m("ngClass",M(4,Ee,e.selectedPriceNotFromSet()))}}function Xn(i,u){if(i&1&&(p(0,Hn,8,5,"div",40),v(1,"async"),a(2,"strong",1),c(3),r(),a(4,"div",41),p(5,Wn,6,3,"div",42),p(6,Zn,2,0),p(7,Jn,6,6,"div",43),r()),i&2){let e,t=l();f(t.monthlyFlag&&!((e=x(1,9,t.donateState))!=null&&e.offlineFlag)?0:-1),s(2),m("hidden",t.isQuantityBased()),s(),V(t.donationFrequency==="single"?"Select amount":"Select "+t.donationFrequency+" amount"),s(),Ge("--price-col-width",t.priceColWidth),m("hidden",t.isQuantityBased()),s(),f(t.allowAmountEdit?5:-1),s(),f(!t.allowAmountEdit||t.prices.length!==1?6:-1),s(),f(t.allowAmountEdit?7:-1)}}function Kn(i,u){i&1&&(a(0,"div"),c(1,"Maximum donation amount is $999,999.00"),r())}function ei(i,u){i&1&&(a(0,"div"),c(1,"Minimum donation amount is $1.00"),r())}function ti(i,u){if(i&1&&(a(0,"div",6),p(1,Kn,2,0,"div"),p(2,ei,2,0,"div"),r()),i&2){let e=l();s(),f(e.donateForm.get("amount").errors.max?1:-1),s(),f(e.donateForm.get("amount").errors.min?2:-1)}}function ni(i,u){if(i&1&&(a(0,"div"),c(1),r()),i&2){let e=l(2);s(),V(e.messages.required)}}function ii(i,u){i&1&&(a(0,"div"),c(1,"Please enter only numeric value"),r())}function oi(i,u){if(i&1&&(a(0,"div",6),p(1,ni,2,1,"div"),p(2,ii,2,0,"div"),r()),i&2){let e=l();s(),f(e.donateForm.get("amount").errors.required?1:-1),s(),f(e.donateForm.get("amount").errors.pattern?2:-1)}}function ai(i,u){i&1&&(a(0,"div",4)(1,"label",52),g(2,"input",53),a(3,"span",54),O(),a(4,"svg",55),g(5,"use",56),r()(),T(),a(6,"span",57)(7,"strong"),c(8,"This is an offline donation"),r()()()())}function ri(i,u){if(i&1){let e=D();a(0,"div",4)(1,"app-tip-selector",58),y("tipSelect",function(n){b(e);let o=l();return C(o.onTipSelect(n))})("customTipToggle",function(){b(e);let n=l();return C(n.toggleCustomTip())}),r()()}if(i&2){let e=l();s(),m("formGroup",e.donateForm)("isCustomTip",e.isCustomTip)("step",e.stepValue)("displayAmount",e.donateStateValues.amount*e.tipPercent/100/100)("displayPercent",e.tipPercent)}}function si(i,u){i&1&&(a(0,"p",11),c(1,"Shown with your donation activity post"),r())}function li(i,u){if(i&1){let e=D();a(0,"div",16)(1,"div",59)(2,"div",17)(3,"label",52)(4,"input",60),y("change",function(n){b(e);let o=l();return C(o.onChangeDonorDisplayControl(n))}),r(),a(5,"span",54),O(),a(6,"svg",55),g(7,"use",56),r()(),T(),a(8,"span",57)(9,"b"),c(10,"Customize donor display name"),r(),g(11,"i",61),r()()(),a(12,"div",62)(13,"div",25)(14,"div",63)(15,"app-ui-control",64),g(16,"input",65),r()(),a(17,"div",63)(18,"app-ui-control",66),g(19,"input",67),r()()()(),a(20,"div",17)(21,"label",52)(22,"input",68),y("change",function(n){b(e);let o=l();return C(o.onChangeBackerDisplayControl(n))}),r(),a(23,"span",54),O(),a(24,"svg",55),g(25,"use",56),r()(),T(),a(26,"span",57)(27,"b"),c(28,"Dedicate the donation in honor or in memory of someone"),r()()()(),a(29,"div",69)(30,"div",70)(31,"label",71),g(32,"input",72)(33,"span",73),a(34,"span",74)(35,"span",75),c(36," In honor of "),r()()(),a(37,"label",71),g(38,"input",76)(39,"span",73),a(40,"span",74)(41,"span",75),c(42," In memory of "),r()()()()(),a(43,"div",77)(44,"div",25)(45,"div",78)(46,"app-ui-control",79),g(47,"input",80),r()()()()(),a(48,"div",17)(49,"label",52)(50,"input",81),y("change",function(n){b(e);let o=l();return C(o.onChangeDonationAmountDisplay(n))}),r(),a(51,"span",54),O(),a(52,"svg",55),g(53,"use",56),r()(),T(),a(54,"span",57)(55,"b"),c(56,"Hide donation amount"),r()()()(),a(57,"div",82)(58,"label",52)(59,"input",83),y("change",function(n){b(e);let o=l();return C(o.onChangeAnonymousControl(n))}),r(),a(60,"span",54),O(),a(61,"svg",55),g(62,"use",56),r()(),T(),a(63,"span",57)(64,"b"),c(65,"Hide my name on the supporter list"),r()()()()()}if(i&2){let e=l();s(11),m("ngbTooltip","Use this to change the donor display name from something other than the payment billing name"),s(),m("hidden",!e.donorForm.get("backerDisplay.changeDonorDisplay").value),s(3),m("legend","First name")("controlClass","is-required")("control",e.donorForm.get("backerDisplay.firstName"))("formIsSubmitted",e.donateFormSubmitted),s(3),m("legend","Last name")("control",e.donorForm.get("backerDisplay.lastName"))("formIsSubmitted",e.donateFormSubmitted),s(11),m("hidden",!e.donorForm.get("backerDisplay.changeBackerDisplay").value),s(14),m("hidden",!e.donorForm.get("backerDisplay.changeBackerDisplay").value),s(3),m("controlClass","is-required")("control",e.donorForm.get("backerDisplay.secondaryFirstName"))("formIsSubmitted",e.donateFormSubmitted)}}function ci(i,u){if(i&1){let e=D();a(0,"div",17)(1,"label",52)(2,"input",84),y("change",function(){b(e);let n=l();return C(n.coverTransactionFeeChange())}),r(),a(3,"span",54),O(),a(4,"svg",55),g(5,"use",56),r()(),T(),a(6,"span",57)(7,"b"),c(8),v(9,"currency"),r()()()()}if(i&2){let e=l();s(8),N("I\u2019d like to help cover the transaction fee by adding ",x(9,1,((e.feeCoverage==null?null:e.feeCoverage.fees)||0)/100)," to my donation")}}
1function di(i,u){if(i&1&&(a(0,"div"),c(1),r()),i&2){let e=l(3);s(),V(e.messages.required)}}function ui(i,u){if(i&1&&(a(0,"div",87),p(1,di,2,1,"div"),r()),i&2){let e=l(2);s(),f(e.donateForm.get("selectedPayment").errors.required?1:-1)}}function mi(i,u){if(i&1){let e=D();a(0,"div",18),g(1,"input",85),a(2,"app-stripe-payment-embed",86),y("paymentUpdate",function(n){b(e);let o=l();return C(o.checkPaymentStatusAndProceed(n))})("paymentTypeSelected",function(n){b(e);let o=l();return C(o.onSelectedPayment(n))})("updatePaymentIntentStatus",function(n){b(e);let o=l();return C(o.handleUpdatePaymentIntentStatus(n))}),r(),p(3,ui,2,1,"div",87),r()}if(i&2){let e=l();m("formGroup",e.donateForm),s(),m("hidden",!0),s(),m("submitFormForPayment",e.submitFormForPayment)("transactionDetails",He(9,kn,e.donateStateValues==null?null:e.donateStateValues.brutTotal,e.questId,e.userId))("showBillingInfo",!0)("checkAnonymousForBilling",!0)("updatePaymentIntent",e.updatePaymentIntent)("isRecurring",e.donationFrequency!=="single"),s(),f(e.donateForm.get("selectedPayment").invalid&&(e.donateForm.get("selectedPayment").touched||e.donateFormSubmitted)?3:-1)}}function pi(i,u){if(i&1&&g(0,"span",101),i&2){let e=u.item,t=l(2);m("innerHTML",t.buildOption(e.key,e.value),J)}}function fi(i,u){if(i&1&&g(0,"span",101),i&2){let e=u.item,t=l(2);m("innerHTML",t.buildOption(e.key,e.value),J)}}function hi(i,u){if(i&1&&(a(0,"div"),c(1),r()),i&2){let e=l(3);s(),V(e.messages.required)}}function gi(i,u){if(i&1&&(a(0,"div",98),p(1,hi,2,1,"div"),r()),i&2){let e=l(2);s(),f(e.offlineBillingInfo.get("country").errors.required?1:-1)}}function _i(i,u){if(i&1){let e=D();a(0,"div",19)(1,"div",25)(2,"div",63)(3,"app-ui-control",88),g(4,"input",89),r()()(),a(5,"div",25)(6,"div",63)(7,"app-ui-control",90),g(8,"input",91),r()(),a(9,"div",63)(10,"app-ui-control",92),g(11,"input",93),r()()(),a(12,"div",25)(13,"div",63)(14,"app-ui-control",94)(15,"ng-select",95),y("open",function(){b(e);let n=l();return C(n.openedDropdown())})("close",function(){b(e);let n=l();return C(n.closedDropdown())}),Le(16,pi,1,1,"ng-template",96)(17,fi,1,1,"ng-template",97),r(),p(18,gi,2,1,"div",98),r()(),a(19,"div",63)(20,"app-ui-control",99),g(21,"input",100),r()()()()}if(i&2){let e=l();m("formGroup",e.offlineBillingInfo),s(3),m("controlClass","is-required")("control",e.offlineBillingInfo.get("email"))("formIsSubmitted",e.submitFormForPayment),s(4),m("controlClass","is-required")("control",e.offlineBillingInfo.get("firstName"))("formIsSubmitted",e.submitFormForPayment),s(3),m("controlClass","is-required")("control",e.offlineBillingInfo.get("lastName"))("formIsSubmitted",e.submitFormForPayment),s(4),m("formIsSubmitted",e.submitFormForPayment)("controlClass","is-required")("control",e.offlineBillingInfo.get("country")),s(),m("searchable",!0)("clearable",!1)("items",e.countries)("placeholder","Please select country..."),s(3),f((e.offlineBillingInfo.get("country").touched||e.submitFormForPayment)&&e.offlineBillingInfo.get("country").invalid?18:-1),s(2),m("controlClass","is-required")("control",e.offlineBillingInfo.get("zip"))("formIsSubmitted",e.submitFormForPayment)}}function bi(i,u){if(i&1&&(a(0,"div",20),g(1,"p",101),r()),i&2){let e=l();s(),m("innerHTML",e.donateStateValues.disclaimer,J)}}var xn=(()=>{class i{constructor(e,t,n,o,d,S,h,F,q,A,R,H,Q,U,Z,le,ce){this.router=e,this.route=t,this.questService=n,this.uiSelectTeamService=o,this.store=d,this.currencyMask=S,this.notifier=h,this.modalService=F,this.fb=q,this.donateService=A,this.accountService=R,this.paymentsService=H,this.accountTierService=Q,this.referenceDataService=U,this.keysPipe=Z,this.cdr=le,this.winRef=ce,this.messages=Et,this.donateFormSubmitted=!1,this.prices=[25,50,100,250,500],this.enteredAmount=100,this.showSecondaryBrand=!0,this.touchedTeamSelect=!1,this.touchedBrandSelect=!1,this.tippingEnabled=!1,this.consumeTip=!0,this.multiSellerEnabled=!1,this.brandsInitialized=!1,this.monthlyFlag=!1,this.donationFrequency="single",this.enabledIntervals=["monthly","quarterly","yearly"],this.allowAmountEdit=!0,this.oneTimeEnabled=!0,this.tipPercent=10,this.stepValue=1,this.tipsArr=[],this.isCu
1stomTip=!1,this.isUserAuthenticated=!1,this.loggedInUserId=0,this.isLoading=!1,this.getLoggedUserTeamIdCalled=!1,this.feeCoverage=null,this.stripeLogo="../../../../assets/static/powered_by_stripe.png",this.submitFormForPayment=!1,this.existBillingInfo={firstName:null,lastName:null,email:null,country:null,zip:null,disableSignUp:!1},this.paymentInfoPatched=!1,this.paymentName="creditCard",this.isPaymentProcessed=!1,this.customizationOpen=!1,this.environment=L,this.countries=[],this.updatePaymentIntent=!1,this.feeApiCalled=!1,this.isEntryProcesses=!1;let de=ce.nativeWindow.Stripe;this.stripe=de(Nt);for(let w=0;w<=30;w++)this.tipsArr.push(w);this.authState=this.store.select("auth"),this.donateState=this.store.select("donate"),this.donateForm=new Fe({targetBrand:new k(0),targetSecondaryBrand:new k(0),quantity:new Ke(1,[P.max(99),P.min(1)]),amount:new k(0,[P.required,w=>w.value===void 0||w.value===null||(w.value+""||"").trim()==="$"?null:this.currencyMask.formatString(w.value)>999999?{max:!0}:this.currencyMask.formatString(w.value)<1?{min:!0}:null]),amountOwn:new k(null,[w=>w.value===void 0||w.value===null||(w.value+""||"").trim()==="$"?null:this.currencyMask.formatString(w.value)>999999?{max:!0}:this.currencyMask.formatString(w.value)<1?{min:!0}:null]),tipPercent:new k(0,[w=>w.value===void 0||w.value===null?null:this.currencyMask.formatString(w.value)>999999?{max:!0}:this.currencyMask.formatString(w.value)<0?{min:!0}:null]),tipAmount:new k(null),offlineFlag:new k(!1),selectedPayment:new k(""),recurrent:new k(!1),interval:new k(null)}),this.donorForm=new Fe({message:new k(""),backerDisplay:this.fb.group({changeDonorDisplay:[!1],firstName:new k(""),lastName:new k(""),changeBackerDisplay:[!1],backingFor:new k("inHonor"),secondaryFirstName:new k(""),secondaryLastName:new k("")}),anonymous:new k(!1),hideAmount:new k(!1),absorbFees:new k(null),coverTransactionFee:new k(!1)}),this.offlineBillingInfo=this.fb.group({firstName:[""],lastName:[""],email:[""],country:["US"],zip:[""]})}ngOnInit(){this.authState.subscribe(o=>{this.isUserAuthenticated=o.authenticated,this.isUserAuthenticated?(this.store.select("userInfo").pipe(I(4)).subscribe(d=>{this.donorForm.controls.backerDisplay.patchValue({firstName:d.firstName,lastName:d.lastName},{emitEvent:!1}),d.id&&(this.existBillingInfo=j(E({},this.existBillingInfo),{firstName:d.firstName,lastName:d.lastName,email:d.email,country:d?.address?.country||"US",zip:d?.address?.zip||null}),this.offlineBillingInfo.patchValue(this.existBillingInfo),this.store.dispatch(new qe(this.existBillingInfo)))}),this.store.select("userInfo").subscribe(d=>{this.loggedInUserId=d.id})):this.loggedInUserId=0,this.cdr.detectChanges()});let e={amount:!0,success:!1};this.store.dispatch(new fe(e)),this.route.parent.params.pipe(I(1)).subscribe(o=>{this.questId=Number(o.questId),this.userId=o.userId,this.teamId=o.teamId?Number(o.teamId):null,this.getUserFeeDetails(),this.isQuantityBased()?(this.enteredAmount=!L.production&&this.questId===2889||L.production&&this.questId===1331?50:25,this.donateForm.controls.quantity.setValidators([P.required])):this.isAmountBased()&&(this.prices=[25,50,100,250,500],this.enteredAmount=100),this.loadQuestTeams(this.questId),this.store.dispatch(new Tt(this.questId)),this.getUserInfoForFee();let d=!1;this.donateState.pipe(I(1)).subscribe(S=>{d=S.amount>0}),this.questService.getDonationAmounts(this.questId).pipe(I(1)).subscribe(S=>{let h=S?.amounts;if(this.allowAmountEdit=S?.allowAmountEdit!==!1,h&&h.length>0){let F=h.filter(A=>A.isEnabled!==!1);this.prices=F.map(A=>A.amountCents/100);let q=F.find(A=>A.isDefault);q&&!d&&(this.enteredAmount=q.amountCents/100,this.setPrice(q.amountCents/100),this.breakdownQuest(this.paymentName)),this.cdr.detectChanges()}}),this.questService.getRecurringOptions(this.questId).pipe(I(1)).subscribe(S=>{let h=S?.options;this.oneTimeEnabled=S?.oneTimeEnabled!==!1,h&&h.length>0?(this.enabledIntervals=h.filter(F=>F.isEnabled).map(F=>F.recurringInterval),this.donationFrequency!=="single"&&!this.enabledIntervals.includes(this.donationFrequency)&&(this.donationFrequency=this.enabledIntervals.length>0?this.enabledIntervals[0]:"single"),!this.oneTimeEnabled&&this.donationFrequency==="single"&&this.enabledIntervals.length>0&&(this.donationFrequency=this.enabledIntervals[0])):this.oneTimeEnabled||(this.donationFrequency=this.enabledIntervals[0]??"monthly"),this.applyRestartFrequency(),this.cdr.detectChanges()})}),this.donateState.pipe(I(3)).subscribe(o=>{let d;o.amount>0&&(this.enteredAmount=o.amount/100,d=this.currencyMask.transform(this.enteredAmount)),this.isCu
1stomTip=o.isCustomTip,this.donateForm.patchValue({targetBrand:o.brandId,targetSecondaryBrand:o.secondaryBrandId,amount:d,offlineFlag:o.offlineFlag,tipPercent:o.tipPercent,tipAmount:o.tipAmount/100}),this.donorForm.patchValue({message:o.message}),(o.brandId||o.amount>0)&&this.breakdownQuest(this.paymentName),this.cdr.detectChanges()}),this.brandsSubscription=this.store.pipe(we(Vt),Oe(o=>o.selectedQuestBrands)).subscribe(o=>{this.secondaryBrands=o.filter(d=>d.secondaryRecipient),this.brands=o.filter(d=>!d.secondaryRecipient),this.brandsInitialized=!0});let t=!1,n=!1;this.donateStateSubscription=this.donateState.subscribe(o=>{if(this.donateStateValues=o,this.questDetail=o.quest,this.monthlyFlag=o.monthlyFlag,this.tippingEnabled=o.tippingFlag,this.consumeTip=o.consumeTip!==!1,!this.consumeTip&&o.tippingFlag&&!n?(n=!0,t=!0,this.tipPercent=0,this.donateForm.patchValue({tipPercent:0,tipAmount:0}),this.store.dispatch(new $(0)),this.store.dispatch(new z(0))):o.tippingFlag&&!t&&(t=!0,this.tipPercent=o.tipPercent,this.donateForm.patchValue({tipPercent:o.tipPercent,tipAmount:isNaN(o.amount)?0:o.amount*(o.tipPercent/100)/100}),!this.isCustomTip&&!isNaN(o.amount)&&o.amount&&o.amount>0&&o.tipPercent&&o.tipPercent>0&&this.store.dispatch(new z(o.amount*(o.tipPercent/100)))),o.brandId!==this.selectedBrandUserId&&(this.selectedBrandUserId=o.brandId,this.donateForm.patchValue({targetBrand:o.brandId||-1})),o.secondaryBrandId!==this.selectedSecondaryBrandUserId&&(this.selectedSecondaryBrandUserId=o.secondaryBrandId,this.donateForm.patchValue({targetSecondaryBrand:o.secondaryBrandId||-1})),o.formDetails.step1.submitted){this.onSubmitDonateForm();let d=E({},o.formDetails);d.step1.submitted=!1,this.store.dispatch(new re(d))}o.fundraisingLink&&(this.fundraisingLink=o.fundraisingLink||null,this.fundraisingLink&&this.fundraisingLink.quest.multiSellerEnabled&&(this.multiSellerEnabled=!0,this.showSecondaryBrand=this.fundraisingLink.secondaryBrand!==null),this.brandsInitialized=!0),o.quest&&o.quest.quest&&o.quest.quest.multiTeamsEnabled&&o.quest.quest.mode==="diyMode"&&!this.getLoggedUserTeamIdCalled&&(this.getLoggedUserTeamIdCalled=!0,this.getLoggedUserTeamId()),this.cdr.detectChanges()}),this.store.pipe(we(Bt)).subscribe(()=>{this.breakdownQuest(this.paymentName)}),this.donateForm.controls.amount.valueChanges.subscribe(o=>{o=this.currencyMask.formatString(o+"");let d=this.currencyMask.transform(o);this.donateForm.patchValue({amount:d,amountOwn:o||null},{emitEvent:!1}),this.store.dispatch(new ae(o*100))}),this.donateForm.controls.tipAmount.valueChanges.subscribe(o=>{this.store.dispatch(new z(o*100))}),this.donateForm.controls.offlineFlag.valueChanges.subscribe(o=>{if(this.tippingEnabled){this.tippingEnabled=!o,this.tipPercent=o?0:this.donateForm.value.tipPercent;let d=this.getTip(this.currencyMask.transform(this.tipPercent).substring(2)),S=(this.donateStateValues.amount||0)*d/100/100;this.donateForm.patchValue({tipPercent:d,tipAmount:S},{emitEvent:!1}),this.store.dispatch(new $(this.tipPercent)),this.tippingEnabled&&!this.isCustomTip&&this.store.dispatch(new z(S*100))}this.donorForm.value.backerDisplay.changeDonorDisplay&&(o?this.donorForm.controls.backerDisplay.patchValue({firstName:"",lastName:""},{emitEvent:!1}):this.isUserAuthenticated&&this.store.select("userInfo").pipe(I(1)).subscribe(d=>{this.donorForm.controls.backerDisplay.patchValue({firstName:d.firstName,lastName:d.lastName},{emitEvent:!1})})),o?(this.donateForm.patchValue({selectedPayment:"OfflineMode"}),this.store.dispatch(new De({selectedPayment:{paymentMode:"OfflineMode"}})),this.enableAllValidatorsForBilling(),this.paymentName="OfflineMode",this.breakdownQuest(this.paymentName)):(this.disableAllValidatorsForBilling(),this.breakdownQuest(this.paymentName||"CreditCard")),this.store.dispatch(new gt(o))}),this.donateForm.controls.selectedPayment.valueChanges.pipe(Ve(()=>Te(1e3))).subscribe(o=>{this.donateForm.get("selectedPayment").valid&&this.paymentInfoPatched&&(this.paymentName=o,this.breakdownQuest(this.paymentName))}),this.donateFormSubscription=this.donateForm.valueChanges.subscribe(()=>{this.donateState.pipe(I(1)).subscribe(o=>{this.store.dispatch(new re(j(E({},o.formDetails),{step1:{valid:this.donateForm.valid&&this.donorForm.valid,value:E(E({},this.donateForm.value),this.donorForm.value)}})))})}),this.donorFormSubscription=this.donorForm.valueChanges.subscribe(()=>{this.donateState.pipe(I(1)).subscribe(o=>{this.store.dispatch(new re(j(E({},o.formDetails),{step1:{valid:this.donateForm.valid&&this.donorForm.valid,value:E(E({},this.donateForm.value),this.donorForm.value)}})))})}),this.donateForm.controls.amountOwn.valueChanges.subscribe(o=>{this.setPrice(o&&o>0?o:0)}),this.isQuantityBased()&&this.donateForm.controls.quantity.valueChanges.subscribe(o=>{let d=!L.production&&this.questId===2889||L.production&&this.questId===1331?50:25;
1this.donateForm.patchValue({amountOwn:d*o})}),setTimeout(()=>{this.donateState.pipe(I(1)).subscribe(o=>{o.amount||(this.setPrice(this.enteredAmount),this.breakdownQuest(this.paymentName))})},500),this.referenceDataService.getSupportedCountries().subscribe(o=>{this.countries=this.keysPipe.transform(o)})}ngOnDestroy(){this.donateFormSubscription&&this.donateFormSubscription.unsubscribe(),this.donorFormSubscription&&this.donorFormSubscription.unsubscribe(),this.donateStateSubscription&&this.donateStateSubscription.unsubscribe(),this.brandsSubscription&&this.brandsSubscription.unsubscribe()}getUserInfoForFee(){this.accountService.getUserInfoById(this.userId).subscribe(e=>{this.creatorAbsorbFees=e.userAbsorbFees,this.donateForm.patchValue({absorbFees:this.creatorAbsorbFees}),this.creatorAbsorbFees===2&&(this.donorForm.patchValue({coverTransactionFee:!0}),this.coverTransactionFeeChange()),this.store.dispatch(new It(this.creatorAbsorbFees)),this.cdr.detectChanges()})}getLoggedUserTeamId(){this.store.select("userInfo").pipe(I(1),I(1)).subscribe(e=>{e&&e.id&&this.questService.getUserTeamIdForQuest(this.questId,e.id).subscribe(t=>{this.loggedUserTeamId=t&&t.id,this.cdr.detectChanges()})})}setPrice(e){if(e==="own")return;e=Number(e),this.enteredAmount=e;let t=this.currencyMask.transform(e);this.donateForm.patchValue({amount:t}),this.store.dispatch(new ae(e*100)),this.donateForm.patchValue({tipAmount:e*100*(this.tipPercent/100)/100},{emitEvent:!1}),this.tippingEnabled&&!this.isCustomTip&&e>0&&this.store.dispatch(new z(e*100*(this.tipPercent/100))),this.breakdownQuest(this.donateForm.value.selectedPayment)}onSubmitDonateForm(){if(this.donateFormSubmitted=!0,this.submitFormForPayment=!1,console.log("639 amount",this.donateStateValues),this.isQuantityBased()&&this.donateForm.get("quantity").invalid){this.notifier.notify("error","Quantity can be from 1 and 99");return}if(console.log("647",this.donateForm),this.donateForm.invalid||this.currencyMask.formatString(this.donateForm.get("amount").value)<1)return this.notifier.notify("error","Please fill all the fields"),!this.touchedTeamSelect&&this.teamsList&&this.teamsList.length>0&&this.notifier.notify("warning","Please choose a donation recipient"),!1;if(!this.touchedTeamSelect&&this.teamsList&&this.teamsList.length>0)return this.notifier.notify("warning","Please choose a donation recipient"),!1;if(!this.questDetail.quest.isTemplate)if(this.store.dispatch(new Y(this.donateForm.get("targetBrand").value)),this.store.dispatch(new oe(this.donateForm.get("targetSecondaryBrand").value)),this.store.dispatch(new ae(this.currencyMask.formatString(this.donateForm.get("amount").value)*100)),this.store.dispatch(new $(this.tippingEnabled&&!this.isCustomTip?this.donateForm.get("tipPercent").value:0)),this.store.dispatch(new z(this.tippingEnabled?Number(this.donateForm.get("tipAmount").value)*100:0)),this.store.dispatch(new ht(this.donorForm.get("message").value)),this.store.dispatch(new Ct({donorFirstName:this.donorForm.value.backerDisplay.firstName,donorLastName:this.donorForm.value.backerDisplay.lastName,donorDisplay:this.donorForm.value.backerDisplay.changeDonorDisplay,backerFirstName:this.donorForm.value.backerDisplay.secondaryFirstName,backerLastName:this.donorForm.value.backerDisplay.secondaryLastName,backerDisplay:this.donorForm.value.backerDisplay.changeBackerDisplay,donatingFor:this.donorForm.value.backerDisplay.backingFor==="inMemory"?"In memory of ":"In honor of"})),this.isUserAuthenticated){let e=this.donateStateValues.billingInfo;if(!e||!e.email||!e.firstName){this.store.select("userInfo").pipe(I(1)).subscribe(t=>{t&&t.id&&(this.existBillingInfo=j(E({},this.existBillingInfo),{firstName:t.firstName,lastName:t.lastName,email:t.email,country:t?.address?.country||"US",zip:t?.address?.zip||null}),this.store.dispatch(new qe(this.existBillingInfo))),this.store.dispatch(new B(!0)),this.donateStateValues.offlineFlag?this.processPaymentNew():this.updatePaymentIntent=!0});return}this.store.dispatch(new B(!0)),this.donateStateValues.offlineFlag?this.processPaymentNew():this.updatePaymentIntent=!0}else{let e=this.donateStateValues.billingInfo;if(this.donateStateValues.offlineFlag&&(e=this.offlineBillingInfo.value),
1console.log("680-",e),!e||e&&(!e.email||e.email==="")||this.donateStateValues.offlineFlag&&this.offlineBillingInfo.invalid){this.notifier.notify("error","Please fill required fields");return}this.store.dispatch(new B(!0)),this.donateStateValues.offlineFlag?this.processPaymentNew():this.updatePaymentIntent=!0}}handleUpdatePaymentIntentStatus(e){this.updatePaymentIntent=!1,e?this.processPaymentNew():setTimeout(()=>{this.store.dispatch(new B(!1))})}processPaymentNew(){if(this.donateStateValues.offlineFlag)this.logEntryForDonation(null);else{let e=this.donateService.getPendingPaymentFinalization(this.paymentFinalizationScope());if(this.donateService.isRecoverablePaymentFinalization(e)){this.logEntryForDonation(e.responseData,e.paymentMode,e.guestBillingInfo);return}this.submitFormForPayment=!0}}paymentFinalizationScope(){return`quest-${this.questId}-${this.userId}-${this.teamId||0}`}logEntryForDonation(e,t,n){if(this.isEntryProcesses)return;console.log("710 amount",this.donateStateValues);let o=this.donateStateValues.billingInfo;this.donateStateValues.offlineFlag&&(o=this.offlineBillingInfo.value),this.isEntryProcesses=!0;let d=n?.personalInfo??{firstName:o.firstName,lastName:o.lastName,email:o.email},S=n?.address??{zip:o.zip||10001,country:o.country||"US"},h={amount:this.donateStateValues.amount,tip:this.donateStateValues.tipAmount,brandUserId:this.donateStateValues.brandId,secondaryBrandUserId:this.donateStateValues.secondaryBrandId,currency:"usd",message:this.donateStateValues.message,anonymous:this.donateStateValues.billing.anonymous,hideDonationAmount:this.donateStateValues.billing.hideAmount,mailing:this.donateStateValues.mailing,billingInfo:{personalInfo:{firstName:d.firstName,lastName:d.lastName,email:d.email},address:{zip:S.zip||10001,country:S.country||"US"}},teamId:this.donateStateValues.teamId||0,paymentMode:this.donateStateValues.offlineFlag?"OfflineMode":t||"CreditCard",stripeTransactionId:e?.id||"FREE",stripeTransactionUsing:e?.payment_method_types?.[0]==="us_bank_account"?"BankAccount":"CreditCard",coverFees:!1,consumeTip:this.donateStateValues.consumeTip!==!1};this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.donorDisplay&&(h.backerDisplayFirstName=this.donateStateValues.changeDisplay.donorFirstName,h.backerDisplayLastName=this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.donorLastName?this.donateStateValues.changeDisplay.donorLastName:""),this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.backerDisplay&&(h.tributeType=this.donateStateValues.changeDisplay.donatingFor.trim(),h.tributeName=this.donateStateValues.changeDisplay.backerFirstName),h.absorbFees=this.creatorAbsorbFees===1,h.coverFees=this.creatorAbsorbFees===2?this.donorForm.value.coverTransactionFee:this.creatorAbsorbFees===0,h.recurrent=this.donateStateValues.recurrency,h.interval=this.donateStateValues.interval,h.payNow=!0,this.isUserAuthenticated||(h.signUp=this.donateStateValues.recurrency?!0:n!=null?n.signUp:this.donateStateValues.signUpUser),this.isLoading=!0,this.donateService.backQuest(this.questId,this.userId,h).subscribe(F=>{this.donateService.clearPendingPaymentFinalization(this.paymentFinalizationScope()),this.donateStateValues.recurrency?this.notifier.notify("success","Subscription successful"):this.notifier.notify("success","Payment successful"),setTimeout(()=>{this.store.dispatch(new Pe(h));let q=JSON.parse(localStorage.getItem("donate-amount_"+this.questId+"_"+this.userId)),A="",R=null;this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.donorDisplay&&(R=this.donateStateValues.changeDisplay.donorFirstName+" "+this.donateStateValues.changeDisplay.donorLastName),this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.backerDisplay&&(A=this.donateStateValues.changeDisplay.donatingFor+" "+this.donateStateValues.changeDisplay.backerFirstName+" "+this.donateStateValues.changeDisplay.backerLastName);let H={pillarId:3,activityId:54,attributeValue:1,title:A,comment:h.message,location:null,tags:"",images:null,time:{hour:null,minute:null,second:null},taskToComplete:null,calculatedSteps:0,stepsOverride:0,activityRecordListId:null,activityRecordListPoints:null,durationValue:null,countValue:null,completedValue:null,volumeValue:null,distanceValue:null,elevationValue:null,repsValue:null,amountValue:h.amount,teamId:this.donateStateValues.teamId?this.donateStateValues.teamId:this.loggedUserTeamId||null,isAnonymous:h.anonymous,displayName:R,questBackingId:F.questBackingId};this.loggedInUserId=F.userId||0;let Q=[q&&q.membershipPurchase&&!L.production&&(this.questId===2945||this.questId===2946||this.questId===2947||this.questId===2948)?this.accountTierService.purchaseTierPlan(F.userId,{interval:"yearly",paymentMode:h.paymentMode,lastFour:h.lastFour,token:h.token,plan:q.membershipPlan,couponCode:"HERTEXASDONATEMEMBERSHIP"}):Se([]).pipe(),this.donateService.logDonateActivity(this.questId,this.loggedInUserId,H)];Ie(Q).subscribe(([U,Z])=>{U&&q&&q.membershipPurchase&&this.notifier.notify("success","Membership subscribed successfully"),localStorage.removeItem("donate-amount_"+this.questId+"_"+this.userId),Z&&(console.log("donate activity logged success"),this.store.dispatch(new B(!1)),this.router.navigate([`/donate/${this.questId}/${this.userId}/${this.teamId||0}/success`]),this.isLoading=!1)},U=>{let Z=!1,le="Payment failed. Check your details and try again.",ce=[U?.error?.description,U?.description,U?.error?.message,U?.message];for(let de in G){for(let w of ce)if(w&&w?.includes(de)){Z=!0,le=G[de];break}if(Z)break}this.notifier.notify("error",le),this.isLoading=!1}),localStorage.removeItem("donate-amount_"+this.questId+"_"+this.userId)})},F=>{let q,A=!1,R=[F?.error?.description,F?.description,F?.error?.message,F?.message];for(let H in G){for(let Q of R)if(Q&&Q?.includes(H)){A=!0,q=G[H];break}if(A)break}A?this.notifier.notify("error",q):this.notifier.notify("error","Payment failed. Check your details and try again."),this.isEntryProcesses=!1,this.store.dispatch(new B(!1)),this.isLoading=!1}),this.cdr.detectChanges()}processPayment(){if(this.isPaymentProcessed)return;console.log("575 amount",this.donateStateValues);let e=this.donateStateValues.billingInfo;if(this.donateStateValues.offlineFlag&&(e=this.offlineBillingInfo.value,this.offlineBillingInfo.invalid)){this.notifier.notify("error","Please fill required fields"),this.store.dispatch(new B(!1));return}if(!this.donateStateValues.paymentDetails||this.donateStateValues.paymentDetails&&!this.donateStateValues.paymentDetails.selectedPayment){this.notifier.notify("error","Please select payment type"),this.store.dispatch(new B(!1));return}if(!this.submitFormForPayment&&this.donateStateValues.paymentDetails?.selectedPayment&&this.donateStateValues.paymentDetails?.selectedPayment.paymentMode==="newCardFilled"){console.log("593",this.submitFormForPayment),this.submitFormForPayment=!0,this.store.dispatch(new B(!1));return}this.isPaymentProcessed=!0;let t=j(E({},this.donateStateValues.paymentDetails.selectedPayment),{amount:this.donateStateValues.amount,tip:this.donateStateValues.tipAmount,brandUserId:this.donateStateValues.brandId,secondaryBrandUserId:this.donateStateValues.secondaryBrandId,currency:"usd",message:this.donateStateValues.message,anonymous:this.donateStateValues.billing.anonymous,hideDonationAmount:this.donateStateValues.billing.hideAmount,mailing:this.donateStateValues.mailing,billingInfo:{personalInfo:{firstName:e.firstName,lastName:e.lastName,email:e.email},address:{zip:e.zip||10001,country:e.country||"US"}},teamId:this.donateStateValues.teamId||0,stripeTransactionId:null,
1stripeTransactionUsing:this.donateStateValues.paymentDetails.selectedPayment&&this.donateStateValues.paymentDetails.selectedPayment.paymentMode,coverFees:!1});this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.donorDisplay&&(t.backerDisplayFirstName=this.donateStateValues.changeDisplay.donorFirstName,t.backerDisplayLastName=this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.donorLastName?this.donateStateValues.changeDisplay.donorLastName:""),this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.backerDisplay&&(t.tributeType=this.donateStateValues.changeDisplay.donatingFor.trim(),t.tributeName=this.donateStateValues.changeDisplay.backerFirstName),t.absorbFees=this.creatorAbsorbFees===1,t.coverFees=this.creatorAbsorbFees===2?this.donorForm.value.coverTransactionFee:this.creatorAbsorbFees===0,t.recurrent=this.donateStateValues.recurrency,t.interval=this.donateStateValues.interval,t.payNow=!0,this.isUserAuthenticated||(t.signUp=this.donateStateValues.recurrency?!0:this.donateStateValues.signUpUser),this.isLoading=!0,this.donateService.backQuest(this.questId,this.userId,t).subscribe(n=>{this.donateStateValues.recurrency?this.notifier.notify("success","Subscription successful"):this.notifier.notify("success","Payment successful"),setTimeout(()=>{this.store.dispatch(new Pe(t));let o=JSON.parse(localStorage.getItem("donate-amount_"+this.questId+"_"+this.userId)),d="",S=null;this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.donorDisplay&&(S=this.donateStateValues.changeDisplay.donorFirstName+" "+this.donateStateValues.changeDisplay.donorLastName),this.donateStateValues.changeDisplay&&this.donateStateValues.changeDisplay.backerDisplay&&(d=this.donateStateValues.changeDisplay.donatingFor+" "+this.donateStateValues.changeDisplay.backerFirstName+" "+this.donateStateValues.changeDisplay.backerLastName);let h={pillarId:3,activityId:54,attributeValue:1,title:d,comment:t.message,location:null,tags:"",images:null,time:{hour:null,minute:null,second:null},taskToComplete:null,calculatedSteps:0,stepsOverride:0,activityRecordListId:null,activityRecordListPoints:null,durationValue:null,countValue:null,completedValue:null,volumeValue:null,distanceValue:null,elevationValue:null,repsValue:null,amountValue:t.amount,teamId:this.donateStateValues.teamId?this.donateStateValues.teamId:this.loggedUserTeamId||null,isAnonymous:t.anonymous,displayName:S,questBackingId:n.questBackingId};this.loggedInUserId=n.userId||0;let F=[o&&o.membershipPurchase&&!L.production&&(this.questId===2945||this.questId===2946||this.questId===2947||this.questId===2948)?this.accountTierService.purchaseTierPlan(n.userId,{interval:"yearly",paymentMode:t.paymentMode,lastFour:t.lastFour,token:t.token,plan:o.membershipPlan,couponCode:"HERTEXASDONATEMEMBERSHIP"}):Se([]).pipe(),this.donateService.logDonateActivity(this.questId,this.loggedInUserId,h)];Ie(F).subscribe(([q,A])=>{q&&o&&o.membershipPurchase&&this.notifier.notify("success","Membership subscribed successfully"),localStorage.removeItem("donate-amount_"+this.questId+"_"+this.userId),A&&(console.log("donate activity logged success"),this.store.dispatch(new B(!1)),this.router.navigate([`/donate/${this.questId}/${this.userId}/${this.teamId||0}/success`]),this.isLoading=!1)},q=>{let A=!1,R="Payment failed. Check your details and try again.",H=[q?.error?.description,q?.description,q?.error?.message,q?.message];for(let Q in G){for(let U of H)if(U&&U?.includes(Q)){A=!0,R=G[Q];break}if(A)break}this.notifier.notify("error",R)}),localStorage.removeItem("donate-amount_"+this.questId+"_"+this.userId)})},n=>{let o,d=!1,S=[n?.error?.description,n?.description,n?.error?.message,n?.message];for(let h in G){for(let F of S)if(F&&F?.includes(h)){d=!0,o=G[h];break}if(d)break}console.log("error",n,o),d?this.notifier.notify("error",o):this.notifier.notify("error","Payment failed. Check your details and try again."),this.store.dispatch(new B(!1)),this.isLoading=!1}),this.cdr.detectChanges()}loadQuestTeams(e){this.uiSelectTeamService.loadQuestTeams(e).subscribe(t=>{this.teamsList=t;let n=this.teamsList.find(o=>o.creatorId==this.userId);n&&n.teamId&&(this.initialTeam=n,this.touchedTeamSelect=!0),this.cdr.detectChanges()})}onTeamSelect(e){this.onTeamTouch();let t=this.teamsList.find(n=>n.teamId==e);this.selectedTeamCreatorId=t?t.creatorId:null,this.selectedTeamCreatorId===null?(this.showSecondaryBrand=!1,this.donateForm.controls.targetBrand.enable(),this.donateForm.controls.targetSecondaryBrand.disable(),this.store.dispatch(new Y(null))):(this.brandsInitialized=!1,this.getTeamFundraisingLink(this.questId,this.selectedTeamCreatorId,t.teamId),this.donateForm.controls.targetBrand.disable(),this.donateForm.controls.targetSecondaryBrand.disable()),this.cdr.detectChanges()}getTeamFundraisingLink(e,t,n){this.questService.getFundraisingLink(e,t,n,!0).subscribe(o=>{this.fundraisingLink=o||null,this.store.dispatch(new he(this.fundraisingLink)),this.fundraisingLink&&this.fundraisingLink.quest.multiSellerEnabled&&(this.multiSellerEnabled=!0,this.showSecondaryBrand=this.fundraisingLink.secondaryBrand!==null,this.store.dispatch(new Y(this.fundraisingLink.brand?this.fundraisingLink.brand.id:null)),this.store.dispatch(new oe(this.fundraisingLink.secondaryBrand?this.fundraisingLink.secondaryBrand.id:null))),this.brandsInitialized=!0,this.cdr.detectChanges()})}onTeamTouch(){this.touchedTeamSelect=!0}toggleCustomTip(){this.tippingEnabled||this.store.dispatch(new z(0)),this.isCu
1stomTip=!this.isCustomTip,this.store.dispatch(new Dt(this.isCustomTip)),this.isCustomTip?(this.donateForm.get("tipAmount").setValidators([P.required,P.min(1)]),this.donateForm.patchValue({tipAmount:this.donateStateValues.amount*this.tipPercent/100/100},{emitEvent:!1}),this.store.dispatch(new z(this.donateStateValues.tipAmount))):(this.donateForm.get("tipAmount").clearValidators(),this.donateForm.get("tipAmount").setErrors(null),this.donateForm.patchValue({tipAmount:this.donateStateValues.amount*this.tipPercent/100/100},{emitEvent:!1}),this.store.dispatch(new $(this.tipPercent)),this.store.dispatch(new z(this.donateStateValues.amount*this.tipPercent/100))),this.cdr.detectChanges()}onTipSelect(e){this.tippingEnabled||this.store.dispatch(new z(0)),this.tipPercent=e;let t=this.donateStateValues.amount*(this.tipPercent/100)/100;this.donateForm.patchValue({tipPercent:this.tipPercent,tipAmount:t}),this.store.dispatch(new $(e)),this.store.dispatch(new z(t*100)),this.breakdownQuest(this.donateForm.value.selectedPayment),this.cdr.detectChanges()}tipInput(e){["e","E","+","-","."].includes(e.key)&&e.preventDefault()}getTip(e){return e==0?e:parseInt(String(e).replace(/,/g,""))}onBrandSelected(e){this.store.dispatch(new Y(e));let t=this.brands.filter(n=>n.id===e);this.store.dispatch(new ft(t[0].name)),this.breakdownQuest(this.donateForm.value.selectedPayment)}onSecondaryBrandSelected(e){this.store.dispatch(new oe(e))}openLoginModal(){this.modalService.open(Qt,{windowClass:"no-overflow small-login-modal",size:"lg"})}openedDropdown(){setTimeout(()=>{let e=document.getElementsByClassName("ng-select-opened");for(let t=0;t<e.length;t++)e[t].style.zIndex="99"},300)}closedDropdown(){setTimeout(()=>{let e=document.getElementsByClassName("ng-select");for(let t=0;t<e.length;t++)e[t].style.zIndex="9"},500)}onChangeDonorDisplayControl(e){if(e.target.checked==!1){this.donorForm.controls.backerDisplay.controls.firstName.clearValidators(),this.donorForm.controls.backerDisplay.controls.firstName.setErrors(null),this.donorForm.controls.backerDisplay.controls.lastName.clearValidators(),this.donorForm.controls.backerDisplay.controls.lastName.setErrors(null),this.donorForm.controls.anonymous.enable();return}if(this.donorForm.controls.backerDisplay.controls.firstName.setValidators([P.required]),this.donorForm.controls.backerDisplay.controls.firstName.setErrors({required:!0}),this.donorForm.controls.anonymous.disable(),this.donateForm.value.offlineFlag){this.donorForm.controls.backerDisplay.patchValue({firstName:"",lastName:""},{emitEvent:!1});return}this.isUserAuthenticated&&this.store.select("userInfo").pipe(I(1)).subscribe(t=>{this.donorForm.controls.backerDisplay.patchValue({firstName:t.firstName,lastName:t.lastName},{emitEvent:!1})})}onChangeBackerDisplayControl(e){if(e.target.checked==!1){this.donorForm.controls.backerDisplay.controls.secondaryFirstName.clearValidators(),this.donorForm.controls.backerDisplay.controls.secondaryFirstName.setErrors(null),this.donorForm.controls.backerDisplay.controls.secondaryLastName.clearValidators(),this.donorForm.controls.backerDisplay.controls.secondaryLastName.setErrors(null);return}this.donorForm.controls.backerDisplay.controls.secondaryFirstName.setValidators([P.required]),this.donorForm.controls.backerDisplay.controls.secondaryFirstName.setErrors({required:!0})}applyRestartFrequency(){let e=this.route.parent.snapshot?.queryParamMap;if(e?.get("restart")==="true"){let t=(e.get("interval")||"").toLowerCase();["monthly","quarterly","yearly"].includes(t)&&this.isIntervalEnabled(t)?this.changeDonateFrequency(t):(this.notifier.notify("warning","The previous donation frequency is not available. Please select a frequency."),this.changeDonateFrequency(this.donationFrequency))}}isIntervalEnabled(e){return this.enabledIntervals.includes(e)}changeDonateFrequency(e){this.donationFrequency=e;let t=e==="monthly"||e==="quarterly"||e==="yearly",n=t?e:null;this.store.dispatch(new bt({recurrent:t,interval:n})),this.donateForm.patchValue({recurrent:t,interval:n}),console.log("1096",t),this.existBillingInfo=j(E({},this.existBillingInfo),{disableSignUp:t}),this.cdr.detectChanges()}selectedPriceNotFromSet(){let e=this.donateForm.value.amount;return e=this.currencyMask.formatString(e),this.prices.findIndex(t=>t===e)<0}get priceColWidth(){let e=this.prices.length,t=e<=3?25:75/e;return e===1&&(t=100),`${t}%`}onChangeAnonymousControl(e){this.store.dispatch(new yt(e.target.checked))}onChangeDonationAmountDisplay(e){this.store.dispatch(new vt(e.target.checked))}onSelectedPayment(e){console.log("922 amount",e),this.donateForm.patchValue({selectedPayment:e.paymentMode}),this.paymentInfoPatched=!0,this.store.dispatch(new De({selectedPayment:e}))}checkPaymentStatusAndProceed(e){this.submitFormForPayment=!1,e.status==="success"?(this.donateService.isRecoverablePaymentFinalization(e)&&this.donateService.setPendingPaymentFinalization(this.paymentFinalizationScope(),e),this.logEntryForDonation(e.responseData,e.paymentMode,e.guestBillingInfo)):this.store.dispatch(new B(!1))}breakdownQuest(e){let t;
1switch(e){case"creditCard":t="CreditCard";break;case"bankAccount":case"us_bank_account":t="BankAccount";break;case"OfflineMode":t="OfflineMode";break;default:t="CreditCard";break}this.donateState.pipe(I(1)).subscribe(n=>{if(n.amount<1||n?.quest?.quest?.multiSellerEnabled&&!n.brandId||n.fundraisingLink&&n.fundraisingLink.quest&&n.fundraisingLink.quest.multiSellerEnabled&&!n.brandId)return;let o=this.creatorAbsorbFees===2?this.donorForm.value.coverTransactionFee:this.creatorAbsorbFees===0;this.paymentsService.breakdownQuest(this.questId,this.userId,Number(this.teamId)||null,n.brandId,n.amount,n.tipAmount,t,o,n.consumeTip!==!1).subscribe(d=>{this.feeCoverage=d.feeCoverage||null,this.store.dispatch(new wt({fee:d.platformFee,surcharge:d.platformSurcharge,platformSupportFee:d.platformSupportFee})),this.store.dispatch(new Ft({fee:d.stripeFee,surcharge:d.stripeSurcharge})),this.store.dispatch(new pt(d.brutTotal)),this.cdr.detectChanges()})})}toggleCustomization(){this.customizationOpen=!this.customizationOpen}isQuantityBased(){return!L.production&&(this.questId===2889||this.questId===3330)||L.production&&(this.questId===1331||this.questId===1384)}isAmountBased(){return!L.production&&this.questId===2907||L.production&&this.questId===1332}updateTicketCount(e){let t=this.donateForm.value.quantity;if(e==="plus"){if(t===99)return;t+=1}else{if(t===1)return;t-=1}this.donateForm.patchValue({quantity:t})}coverTransactionFeeChange(){this.breakdownQuest(this.paymentName)}buildOption(e,t){return`
2      <i class='flag flag-${e.toLowerCase()}'></i>
3      <span>${t}</span>
4    `}disableAllValidatorsForBilling(){Object.keys(this.offlineBillingInfo.controls).forEach(e=>{let t=this.offlineBillingInfo.get(e);t.clearValidators(),t.updateValueAndValidity()})}enableAllValidatorsForBilling(){this.offlineBillingInfo.get("firstName").setValidators([P.required,P.minLength(2),P.maxLength(255)]),this.offlineBillingInfo.get("lastName").setValidators([P.required,P.minLength(2),P.maxLength(255)]),this.offlineBillingInfo.get("email").setValidators([P.required,P.email,P.pattern(Lt)]),this.offlineBillingInfo.get("country").setValidators([P.required]),this.offlineBillingInfo.get("zip").setValidators([P.required,P.pattern(/^[a-zA-Z0-9][a-zA-Z0-9\- ]{0,10}[a-zA-Z0-9]$/),P.minLength(1),P.maxLength(255)]),this.offlineBillingInfo.updateValueAndValidity()}getUserFeeDetails(){!this.userId||this.feeApiCalled||(this.feeApiCalled=!0,this.questService.getUserPaymentFeeDetails(this.userId).subscribe(e=>{if(this.consumeTip){if(e.tipPercent&&e.tipPercent>0){this.store.dispatch(new $(e.tipPercent));return}this.store.dispatch(new $(Ae))}},()=>{this.consumeTip&&this.store.dispatch(new $(Ae))}))}static{this.\u0275fac=function(t){return new(t||i)(_(ie),_(ne),_(W),_(rn),_(te),_(ye),_(pe),_(se),_(lt),_(ve),_(_e),_(an),_(pn),_(Ut),_(Zt),_(ue),_(en))}}static{this.\u0275cmp=X({type:i,selectors:[["app-donate-amount"]],standalone:!1,decls:34,vars:37,consts:[[1,"",3,"formGroup","ngClass"],[1,"c-n-form__legend",3,"hidden"],[1,"",3,"hidden"],[1,""],[1,"c-n-form__group"],[1,"c-n-form__group","mb-10"],[1,"c-n-form__message","is-bottom","is-red","d-block"],[1,"c-n-form__group","mb-20"],[1,"c-n-form__legend"],[1,"c-n-form__control"],["aria-label","Add message","formControlName","message","placeholder","Add message","type","text","autosize","",1,"c-n-form__input",2,"min-height","70px",3,"appInputAutoHeight"],[1,"mt-10"],[1,"customization-cont","mb-30",3,"ngClass"],[1,"customization-cont__btn","w-100p",3,"click","ngClass"],[1,"icon","icon-accordion-down"],[0,"xlink","href","#icon-accordion-down"],[1,"customization-cont__list"],[1,"c-n-form__group","is-flexed"],[1,"c-donate__payDialog","c-n-form__group",3,"formGroup"],[3,"formGroup"],[1,"c-n-form__group","mb-0","mr-10"],["id","donate-form-brand","formControlName","targetBrand",1,"c-n-form__group",3,"onBrandSelected","brandsList","placeholder","disableDefaults"],[1,"c-n-form__message","is-bottom","is-red"],["id","donate-form-secondary-brand","formControlName","targetSecondaryBrand",1,"c-dl-team-control",3,"onBrandSelected","hidden","brandsList","placeholder","disableDefaults"],[1,"c-n-form__legend","pb-0",2,"font-size","1.6rem","display","inline"],[1,"row"],[1,"col-12","col-md-3"],[1,"c-n-form__control","quantity-counter"],[1,"quantity-counter__item","minus",3,"click","ngClass"],[1,"icon","icon-minus-slim"],[0,"xlink","href","#icon-m
4inus-slim"],[1,"quantity-counter__item","field"],["formControlName","quantity","type","number","placeholder","-",1,"c-n-form__input","text-center"],[1,"quantity-counter__item","plus",3,"click","ngClass"],[1,"icon","icon-plus-slim"],[0,"xlink","href","#icon-plus-slim"],[1,"col-12","col-md-4"],[1,"c-donate__prices__col","own-amount","w-100",2,"padding-left","0"],[1,"c-n-form__input","own-amount-child","c-donate__price",2,"height","40px"],[1,"label"],[1,"c-donate__frequency",3,"hidden"],[1,"c-donate__prices",3,"hidden"],[1,"c-donate__prices__col","own-amount","desktop-only"],[1,"c-donate__prices__col","own-amount","mobile-only",3,"ngClass"],["for","",1,"c-n-form__legend"],[1,"c-donate__frequency-cont"],[1,"c-donate__frequency-cont__item",3,"ngClass"],[1,"c-donate__frequency-cont__item",3,"click","ngClass"],[1,"c-n-form__input","own-amount-child","c-donate__price",3,"ngClass"],["aria-label","Other","formControlName","amountOwn","placeholder","Other","minlength","1","maxlength","9",1,"",3,"focus"],[1,"c-donate__prices__col"],["type","button",1,"c-n-form__input","c-donate__price",3,"click","ngClass"],["role","checkbox",1,"c-checkbox"],["name","offlineFlag","aria-label","Offline payment?","formControlName","offlineFlag","type","checkbox"],[1,"c-checkbox__icon"],[1,"icon","icon-checked"],[0,"xlink","href","#icon-checked"],[1,"c-checkbox__caption"],[3,"tipSelect","customTipToggle","formGroup","isCustomTip","step","displayAmount","displayPercent"],["formGroupName","backerDisplay"],["aria-label","Customize Donor Display Name","formControlName","changeDonorDisplay","type","checkbox",3,"change"],["tooltipClass","c-dl-tooltip",1,"e-help","tip-tooltip","alternate-tooltip",2,"margin-left","5px",3,"ngbTooltip"],[1,"c-n-form__group","mb-0",3,"hidden"],[1,"col-12","col-md-6"],[1,"c-n-form__group",3,"legend","controlClass","control","formIsSubmitted"],["aria-label","First name","placeholder","First name*","formControlName","firstName","type","text",1,"c-n-form__input"],[1,"c-n-form__group",3,"legend","control","formIsSubmitted"],["aria-label","Last name","placeholder","Last name","formControlName","lastName","type","text",1,"c-n-form__input"],["aria-label","Change Backer Display","formControlName","changeBackerDisplay","type","checkbox",3,"change"],[1,"c-n-form__group","mb-10",3,"hidden"],[1,"d-flex","donating-for-row"],[1,"e-radio"],["type","radio","formControlName","backingFor","value","inHonor"],[1,"e-radio__icon"],[1,"e-radio__caption"],[1,"e-radio__title"],["type","radio","formControlName","backingFor","value","inMemory"],[1,"c-n-form__group",3,"hidden"],[1,"col-12","col-md-8"],[1,"c-n-form__group",3,"controlClass","control","formIsSubmitted"],["aria-label","Recipient\u2019s name*","placeholder","Recipient\u2019s name*","formControlName","secondaryFirstName","type","text",1,"c-n-form__input"],["aria-label","Hide donation amount","formControlName","hideAmount","type","checkbox",3,"change"],[1,"c-n-form__group","is-flexed","mb-0"],["aria-label","Anonymous payment?","formControlName","anonymous","type","checkbox",3,"change"],["formControlName","coverTransactionFee","type","checkbox",3,"change"],["aria-label","Select payment method","formControlName","selectedPayment","type","hidden",1,"c-donate__payDialog__input",3,"hidden"],[3,"paymentUpdate","paymentTypeSelected","updatePaymentIntentStatus","submitFormForPayment","transactionDetails","showBillingInfo","checkAnonymousForBilling","updatePaymentIntent","isRecurring"],["role","alert",1,"c-n-form__message","is-bottom","is-red"],["legend","Email:",1,"c-n-form__group",3,"controlClass","control","formIsSubmitted"],["aria-label","Email","formControlName","email","type","email",1,"c-n-form__input"],["legend","First name:",1,"c-n-form__group",3,"controlClass","control","formIsSubmitted"],["aria-label","First name","formControlName","firstName","type","text",1,"c-n-form__input"],["legend","Last name:",1,"c-n-form__group",3,"controlClass","control","formIsSubmitted"],["aria-label","Last name","formControlName","lastName","type","text",1,"c-n-form__input"],["legend","Country:",1,"c-n-form__group","mb-0",3,"formIsSubmitted","controlClass","control"],["bindValue","key","bindLabel","value","formControlName","country",1,"c-n-form__input",3,"open","close","searchable","clearable","items","placeholder"],["ng-label-tmp",""],["ng-option-tmp",""],["role","alert",1,"c-forms__message","is-red"],["legend","Zip | Postal code:",1,"c-n-form__group",3,"controlClass","control","formIsSubmitted"],["aria-label","Zip | Postal code","formControlName","zip","type","text",1,"c-n-form__input"],[3,"innerHTML"]],template:function(t,n){if(t&1&&(a(0,"form",0),p(1,An,2,1,"strong",1),p(2,En,3,5,"div",2),p(3,On,2,4,"div",3),p(4,Tn,3,0,"div",4),p(5,Rn,29,10),p(6,Xn,8,11),a(7,"div",5),p(8,ti,3,2,"div",6),p(9,oi,3,2,"div",6),r(),p(10,ai,9,0,"div",4),v(11,"async"),p(12,ri,2,5,"div",4),r(),a(13,"form",0)(14,"div",7)(1
45,"strong",8),c(16,"Words of support"),r(),a(17,"div",9)(18,"textarea",10),c(19,"      "),r()(),p(20,si,2,0,"p",11),r(),a(21,"div",12)(22,"div",13),y("click",function(){return n.toggleCustomization()}),a(23,"label",8),c(24,"Customize your donation"),r(),O(),a(25,"svg",14),g(26,"use",15),r()(),p(27,li,66,14,"div",16),r(),p(28,ci,10,3,"div",17),r(),p(29,mi,4,13,"div",18),v(30,"async"),p(31,_i,22,21,"div",19),v(32,"async"),p(33,bi,2,1,"div",20)),t&2){let o,d,S;m("formGroup",n.donateForm)("ngClass",M(29,fn,n.donateFormSubmitted||((o=n.donateForm.get("amount").errors)==null?null:o.max)||((o=n.donateForm.get("amount").errors)==null?null:o.min))),s(),f(n.multiSellerEnabled&&n.brandsInitialized&&n.brands.length>0?1:-1),s(),f(n.multiSellerEnabled&&n.brandsInitialized&&n.brands.length>0?2:-1),s(),f(n.multiSellerEnabled&&n.brandsInitialized&&n.showSecondaryBrand&&n.secondaryBrands.length>0?3:-1),s(),f(n.isAmountBased()?4:-1),s(),f(n.isQuantityBased()?5:-1),s(),f(n.donateStateValues!=null&&n.donateStateValues.showAmountOptions?6:-1),s(2),f(n.donateForm.get("amount").errors&&(n.donateForm.get("amount").errors.max||n.donateForm.get("amount").errors.min)?8:-1),s(),f((n.donateForm.get("amount").touched||n.donateFormSubmitted)&&n.donateForm.get("amount").invalid?9:-1),s(),f(x(11,23,n.donateState).userAdmin?10:-1),s(2),f(n.tippingEnabled&&!n.donateForm.value.offlineFlag?12:-1),s(),m("formGroup",n.donorForm)("ngClass",M(31,fn,n.donateFormSubmitted)),s(5),m("appInputAutoHeight",n.donorForm.get("message")),s(2),f(n.donorForm.value.message&&n.donorForm.value.message.length>0?20:-1),s(),m("ngClass",M(33,hn,n.customizationOpen)),s(),m("ngClass",M(35,hn,n.customizationOpen)),s(5),f(n.customizationOpen?27:-1),s(),f((n.donateStateValues==null?null:n.donateStateValues.creatorAbsorbFees)===2&&!n.donateForm.value.offlineFlag?28:-1),s(),f((d=x(30,25,n.donateState))!=null&&d.offlineFlag?-1:29),s(2),f((S=x(32,27,n.donateState))!=null&&S.offlineFlag?31:-1),s(2),f(n.donateStateValues!=null&&n.donateStateValues.disclaimer&&(n.donateStateValues==null?null:n.donateStateValues.disclaimer)!==""?33:-1)}},dependencies:[me,ln,cn,ge,tn,Kt,zt,Rt,et,Ze,tt,Ye,nt,Je,Xe,rt,st,at,ot,it,Ht,$t,Gt,K,ee],styles:["[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;
4--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}.donate-tooltip[_ngcontent-%COMP%]{background-color:#fff;border-radius:3px}.tooltip-padding[_ngcontent-%COMP%]{padding:4px}.tip-tooltip[_ngcontent-%COMP%]{font-size:12px}.tipping-select[_ngcontent-%COMP%]{width:100%}.other-selected[_ngcontent-%COMP%]{width:50%;padding-right:5px}.tipping-div[_ngcontent-%COMP%]{display:flex}.tipping-custom[_ngcontent-%COMP%]{width:50%;padding-left:5px}.c-donate__prices[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-left:-5px;margin-right:-5px;margin-bottom:0}.c-donate__prices__col[_ngcontent-%COMP%]{width:var(--price-col-width, 12.5%);min-width:calc(var(--price-col-width, 12.5%) - 10px);max-width:var(--price-col-width, 12.5%);padding-left:5px;padding-right:5px;margin-bottom:10px}@media(max-width:570px){.c-donate__prices__col[_ngcontent-%COMP%]{width:50%}}.c-donate__prices__col.own-amount[_ngcontent-%COMP%]{width:25%;max-width:25%;min-width:25%}@media(max-width:570px){.c-donate__prices__col.own-amount[_ngcontent-%COMP%]{width:100%;min-width:30%;max-width:30%}}@media(max-width:570px){.c-donate__prices__col.own-amount.only-one[_ngcontent-%COMP%]{min-width:100%;max-width:100%}}
4.c-donate__prices__col.own-amount[_ngcontent-%COMP%]   .own-amount-child[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding:0 10px;justify-content:start}.c-donate__prices__col.own-amount[_ngcontent-%COMP%]   .own-amount-child[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:14px;border-right:solid 1px #c5c9cb;padding-right:1.4rem;margin-right:10px}.c-donate__prices__col.own-amount[_ngcontent-%COMP%]   .own-amount-child[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{color:var(--bg-text-color-light);margin-top:3px}.c-donate__prices__col.own-amount[_ngcontent-%COMP%]   .own-amount-child[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;background-color:transparent;width:100%;color:inherit}.c-donate__prices__col.own-amount[_ngcontent-%COMP%]   .own-amount-child[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:none;border:none}.c-donate__prices__col.own-amount[_ngcontent-%COMP%]   .own-amount-child[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:active{outline:none;border:none}.c-donate__price[_ngcontent-%COMP%]{display:flex;justify-content:center;text-align:center!important;align-items:center;font-family:ProximaNova-Bold;height:44px;font-size:1.6rem}.c-donate__price.is-focus[_ngcontent-%COMP%]{border-width:1px;border-color:var(--accent-color)}.c-donate__tip-cont[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-radius:5px;justify-content:space-between}@media(max-width:570px){.c-donate__tip-cont[_ngcontent-%COMP%]{flex-wrap:wrap;background:transparent}}.c-donate__tip-cont__item[_ngcontent-%COMP%]{width:16.6666666667%;padding:.4rem 1rem;cursor:pointer;font-size:13px;text-align:center;border:solid 1px #c5c9cb;border-collapse:collapse;border-radius:5px;margin:auto 5px}@media(max-width:570px){.c-donate__tip-cont__item[_ngcontent-%COMP%]{width:calc(50% - 5px);margin:0 10px 10px 0;border:solid 1px #c5c9cb;border-radius:5px}}@media(max-width:570px){.c-donate__tip-cont__item[_ngcontent-%COMP%]:nth-child(2n){margin:0 0 10px}}.c-donate__tip-cont__item.selected[_ngcontent-%COMP%]{border:solid 1px var(--accent-color)}.c-donate__frequency[_ngcontent-%COMP%]{margin-bottom:20px}.c-donate__frequency-cont[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;width:100%}@media(max-width:570px){.c-donate__frequency-cont[_ngcontent-%COMP%]{flex-wrap:wrap}}.c-donate__frequency-cont__item[_ngcontent-%COMP%]{width:25%;padding:11px 3rem;font-family:ProximaNova-Semibold;font-size:14px;cursor:pointer;margin-right:10px;border-radius:var(--border-radius-val);border:solid 1px var(--lightGreyColor);text-align:center}@media(max-width:570px){.c-donate__frequency-cont__item[_ngcontent-%COMP%]{width:calc(50% - 10px);margin-bottom:10px}}.c-donate__frequency-cont__item.selected[_ngcontent-%COMP%]{font-family:ProximaNova-Bold;color:var(--btn-text-light);background-color:var(--accent-color)}.c-donate__frequency-cont__item[_ngcontent-%COMP%]:last-child{margin-right:0}.donating-for-row[_ngcontent-%COMP%]{flex-direction:row}@media(max-width:570px){.donating-for-row[_ngcontent-%COMP%]{flex-direction:column}}.donating-for-row[_ngcontent-%COMP%]   .e-radio[_ngcontent-%COMP%]:first-child{margin-right:20px}@media(max-width:570px){.donating-for-row[_ngcontent-%COMP%]   .e-radio[_ngcontent-%COMP%]:first-child{margin-right:0}}.slider-container[_ngcontent-%COMP%]{width:100%;text-align:center;position:relative}@media(max-width:767px){.slider-container[_ngcontent-%COMP%]{flex-direction:column;align-items:end!important}}@media(max-width:767px){.slider-container[_ngcontent-%COMP%]   .custom-tip-label[_ngcontent-%COMP%]{margin-top:5px}}.slider-container[_ngcontent-%COMP%]   .tip-display[_ngcontent-%COMP%]{font-size:1.4rem;color:var(--bg-text-color);padding:3px 5px;box-shadow:0 0 2px #000;border-radius:5px;text-align:center;margin-left:15px;border:solid 1px var(--accent-color)}.slider-container[_ngcontent-%COMP%]   .text-right[_ngcontent-%COMP%]{text-align:right}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]{font-size:1.5rem;width:270px;color:var(--accent-color);--thumb-height: 1.125em;--track-height: .125em;--track-color: rgba(0, 0, 0, .2);--brightness-hover: 80%;--brightness-down: 80%;--clip-edges: .125em}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]{position:relative;background:#fff0;overflow:hidden}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]:active{cursor:grabbing}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]:disabled{filter:grayscale(1);opacity:.3;cursor:not-allowed}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%], .slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]::-webkit-slider-runnable-track, .slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]::-webkit-slider-thumb{-webkit-appearance:none;transition:all ease .1s;height:var(--thumb-height)}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]::-webkit-slider-runnable-track, .slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]::-webkit-slider-thumb{position:relative}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]::-webkit-slider-thumb{--thumb-radius: calc((var(--thumb-height) * .5) - 1px);--clip-top: calc((var(--thumb-height) - var(--track-height)) * .5 - .5px);--clip-bottom: calc(var(--thumb-height) - var(--clip-top));--clip-further: calc(100% + 1px) ;--box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0 100vmax currentColor;width:var(--thumb-width, var(--thumb-height));background:linear-gradient(currentColor 0 0) scroll no-repeat left center/50% calc(var(--track-height) + 1px);background-color:currentColor;box-shadow:var(--box-fill);border-radius:var(--thumb-width, var(--thumb-height));
4filter:brightness(100%);clip-path:polygon(100% -1px,var(--clip-edges) -1px,0 var(--clip-top),-100vmax var(--clip-top),-100vmax var(--clip-bottom),0 var(--clip-bottom),var(--clip-edges) 100%,var(--clip-further) var(--clip-further))}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]:hover::-webkit-slider-thumb{filter:brightness(var(--brightness-hover));cursor:grab}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]:active::-webkit-slider-thumb{filter:brightness(var(--brightness-down));cursor:grabbing}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]::-webkit-slider-runnable-track{background:linear-gradient(var(--track-color) 0 0) scroll no-repeat center/100% calc(var(--track-height) + 1px)}.slider-container[_ngcontent-%COMP%]   input[type=range][_ngcontent-%COMP%]:disabled::-webkit-slider-thumb{cursor:not-allowed}.customization-cont.opened[_ngcontent-%COMP%]{position:relative}.customization-cont.opened[_ngcontent-%COMP%]   .icon-accordion-down[_ngcontent-%COMP%]{transform:rotate(180deg)}.customization-cont__btn[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:8px;border-bottom:solid 1px var(--platinum);cursor:pointer}.customization-cont__btn[_ngcontent-%COMP%]:hover   .c-n-form__legend[_ngcontent-%COMP%]{text-decoration:underline}.customization-cont__btn[_ngcontent-%COMP%]   .c-n-form__legend[_ngcontent-%COMP%]{cursor:pointer}.customization-cont__btn[_ngcontent-%COMP%]   .c-n-form__legend[_ngcontent-%COMP%]:hover{text-decoration:underline}.customization-cont__btn.opened[_ngcontent-%COMP%]{border-bottom:0}.customization-cont__list[_ngcontent-%COMP%]{padding:0 0 15px;border-bottom:solid 1px var(--platinum)}.quantity-counter[_ngcontent-%COMP%]{display:flex;align-items:center}.quantity-counter__item[_ngcontent-%COMP%]   .c-n-form__input[_ngcontent-%COMP%]{border-collapse:collapse;border-radius:0;max-width:90px}.quantity-counter__item.plus[_ngcontent-%COMP%], .quantity-counter__item.minus[_ngcontent-%COMP%]{border:solid 1px var(--bg-text-color-secondary);padding:1em;height:40px;width:40px;display:flex;align-items:center;justify-content:center;border-collapse:collapse;cursor:pointer}.quantity-counter__item.plus.disabled[_ngcontent-%COMP%], .quantity-counter__item.minus.disabled[_ngcontent-%COMP%]{opacity:.8;cursor:no-drop}.quantity-counter__item.plus[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .quantity-counter__item.minus[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{fill:var(--accent-color)}.quantity-counter__item.minus[_ngcontent-%COMP%]{border-radius:5px 0 0 5px}.quantity-counter__item.minus[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:12px}.quantity-counter__item.plus[_ngcontent-%COMP%]{border-radius:0 5px 5px 0;margin-right:2rem}.quantity-counter__item.plus[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:12px;height:12px}[_nghost-%COMP%]  .c-dl-tooltip .tooltip-inner{min-width:270px!important;max-width:270px!important}"],changeDetection:0})}}return i})();var yi=["clipboardTrigger"];function vi(i,u){if(i&1&&(c(0),v(1,"async")),i&2){let e,t=l();N(" , ",(e=x(1,1,t.donateState).successInfo)==null||e.billingInfo==null||e.billingInfo.personalInfo==null?null:e.billingInfo.personalInfo.firstName," ")}}function xi(i,u){i&1&&(a(0,"span"),c(1," and instructions on how to activate your new account"),r())}function Si(i,u){if(i&1&&(g(0,"div",8),v(1,"normalizeRichText")),i&2){let e=l();m("innerHTML",x(1,1,e.successMessage),J)}}var Sn=(()=>{class i{constructor(e,t,n,o,d,S,h,F){this.router=e,this.store=t,this.route=n,this.accountService=o,this.questService=d,this.notifier=S,this.modalService=h,this.cdr=F,this.isLoaded=!1,this.openedDialog="",this.creatorUserName="",this.successMessage=null,this.donateState=this.store.select("donate")}ngOnInit(){let e={amount:!1,success:!0};this.store.dispatch(new fe(e)),this.donateState.pipe(I(1)).subscribe(t=>{if(!t.formDetails.step1||t.formDetails.step1&&!t.formDetails.step1.valid){this.notifier.notify("warning","Please complete the previous step.");let n;n="enter-amount",this.route.parent.params.pipe(I(1)).subscribe(o=>{this.questId=o.questId,this.userId=o.userId,this.router.navigate([`/donate/${o.questId}/${o.userId}/${o.teamId}/${n}`])})}else this.route.parent.params.pipe(I(1)).subscribe(n=>{this.questId=n.questId,this.userId=n.userId,this.teamId=Number(n.teamId)||null,this.questService.getDonationSuccessMessage(this.questId).pipe(I(1)).subscribe(o=>{this.successMessage=o?.message||null,this.cdr.detectChanges()}),this.accountService.getUserInfoById(n.userId).subscribe(o=>{this.userInfo=o,this.isLoaded=!0}),this.questService.getQuestDetail(n.questId,n.userId,this.teamId).subscribe(o=>{this.questInfo=o,this.creatorUserName=this.questInfo&&this.questInfo.quest&&this.questInfo.quest.user&&this.questInfo.quest.user.userName?this.questInfo.quest.user.userName:"QUEST ORDER",this.creatorUserName=this.creatorUserName.slice(0,10).toUpperCase(),this.store.dispatch(new Ot(this.questInfo.quest.id))}),setTimeout(()=>{let o=this.modalService.open(Ce,{windowClass:"no-overflow"});o.componentInstance.questId=this.questId,o.componentInstance.teamId=this.teamId,this.questInfo.quest.mode==="paceYourselfMode"&&(o.componentInstance.userId=this.userId)},1e3)});this.cdr.detectChanges()})}ngOnDestroy(){this.closeModal(),this.clipboard&&this.clipboard.destroy()}closeModal(){this.modalService.dismissAll()}static{this.\u0275fac=function(t){return new(t||i)(_(ie),_(te),_(ne),_(_e),_(W),_(pe),_(se),_(ue))}}static{this.\u0275cmp=X({type:i,selectors:[["app-donate-success"]],viewQuery:function(t,n){if(t&1&&Qe(yi,5),t&2){let o;je(o=$e())&&(n.clipboardTrigger=o.first)}},standalone:!1,decls:40,vars:22,consts:[[1,"c-donate__success"],[1,"c-donate__success__title"],[1,"c-donate__success__caption-dark"],[1,"icon","icon-support-hand"],[0,"xlink","href","#icon-support-hand"],[1,"quest-msg"],[1,"c-donate__success__caption"],["href","mailto:[email protected]"],[1,"c-donate__success__caption","h-typography","rich-text-wrap",3,"innerHTML"]],template:function(t,n){if(t&1&&(a(0,"div",0)(1,"p",1),c(2,"Payment successful!"),r(),a(3,"div",2)(4,"strong"),c(5,"You have made a difference"),p(6,vi,2,3),v(7,"async"),r(),a(8,"p"),O(),a(9,"svg",3),g(10,"use",4),r(),T(),a(11,"span"),c(12,"Your support will be greatly appreciated by "),a(13,"b"),c(14),v(15,"async"),v(16,"async"),v(1
47,"async"),v(18,"brandDisplayName"),r()()()(),a(19,"div",5)(20,"div",6)(21,"strong"),c(22),v(23,"async"),v(24,"currency"),r(),a(25,"p"),c(26,"You will receive an email from "),a(27,"a",7),c(28,"[email protected]"),r(),c(29," with your contribution details"),p(30,xi,2,0,"span"),v(31,"async"),c(32,". If you do not receive this email, please check your spam folder."),r(),a(33,"p"),c(34,"Your charge will appear as "),a(35,"b"),c(36),r()()()(),a(37,"p"),c(38,"\xA0"),r(),p(39,Si,2,3,"div",8),r()),t&2){let o;s(6),f(!((o=x(7,6,n.donateState).successInfo)==null||o.billingInfo==null||o.billingInfo.personalInfo==null)&&o.billingInfo.personalInfo.firstName?6:-1),s(8),V(x(15,8,n.donateState).selectedBrandName&&x(16,10,n.donateState).selectedBrandName!==""?x(17,12,n.donateState).selectedBrandName:x(18,14,n.questInfo==null||n.questInfo.user==null?null:n.questInfo.user.brand)||(n.questInfo==null||n.questInfo.user==null?null:n.questInfo.user.name)),s(8),N("Your donation of ",x(24,18,(x(23,16,n.donateState).brutTotal||0)/100)," has been processed."),s(8),f(x(31,20,n.donateState).successInfo.signUp?30:-1),s(6),N("",n.creatorUserName,": QUEST"),s(3),f(n.successMessage?39:-1)}},dependencies:[K,ee,be,Jt],styles:["[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;
4--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}.quest-msg[_ngcontent-%COMP%]{padding:1.5rem;background:#eee;border-radius:8px}.c-donate-btns[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-margin[_ngcontent-%COMP%]{margin-right:10px}.min-width[_ngcontent-%COMP%]{min-width:180px}.share-cont[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-family:ProximaNova-Bold;margin-bottom:15px}.success__social-icons[_ngcontent-%COMP%]{margin-bottom:10px}.c-donate__success[_ngcontent-%COMP%]{color:var(--bg-text-color)}.c-donate__success__title[_ngcontent-%COMP%]{font-size:28px;font-style:normal;font-family:ProximaNova-Bold;padding:0;margin:0 0 25px}.c-donate__success__caption[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-family:ProximaNova-Bold;display:block}.c-donate__success__caption[_ngcontent-%COMP%]     p{font-size:16px;font-style:normal;font-family:ProximaNova-Semibold;margin-bottom:10px}.c-donate__success__caption-dark[_ngcontent-%COMP%]{padding:8px 16px;background:var(--accent-color-secondary-light);margin-bottom:24px}.c-donate__success__caption-dark[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--accent-color);font-size:20px;font-family:ProximaNova-Bold;margin-bottom:8px}.c-donate__success__caption-dark[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:16px;display:flex;align-items:center}.c-donate__success__caption-dark[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   .icon-support-hand[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:8px}.c-donate__success__caption-dark[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-family:ProximaNova-Bold}.c-donate__success__tools[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px}.c-donate__success__tools__title[_ngcontent-%COMP%]{text-align:center;display:block;margin-bottom:10px}.c-donate__success__tools__body[_ngcontent-%COMP%]{display:flex;justify-content:left;margin-bottom:40px}.c-donate__success__tool[_ngcontent-%COMP%]{margin:0;min-width:140px}.c-donate__success__tool[_ngcontent-%COMP%]:not(:last-child){margin-right:20px}.c-donate__success__footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.c-donate__success__explore[_ngcontent-%COMP%]{margin-top:30px;padding:0;font-size:14px;font-style:normal;font-family:ProximaNova-Semibold}@media(max-width:570px){.c-donate__success__explore[_ngcontent-%COMP%]{font-size:14px;padding-bottom:20px}}.c-donate__success__explore[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{margin-right:10px;font-family:ProximaNova-Bold}@media(max-width:570px){.c-donate__success__explore[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{margin-right:10px}}.share-modal-donate[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px!important;margin-bottom:25px!important}"],changeDetection:0})}}return i})();var Ii=i=>({donateState:i}),Fi=i=>({"no-image":i}),wi=i=>({"is-loading":i});function Pi(i,u){if(i&1){let e=D();a(0,"div",9)(1,"app-quest-header",38),y("photoExists",function(n){b(e);let o=l(3);return C(o.photoExistCheck(n))}),r()()}if(i&2){let e=l(3);m("ngClass",M(4,Fi,!e.doesCoverImageExists)),s(),m("questData",e.questInfo)("isViewShort",!0)("isOnDonation",!0)}}function qi(i,u){if(i&1&&g(0,"app-quest-description",27),i&2){let e=l(3);m("questInfo",e.questInfo==null?null:e.questInfo.quest)("mode","wrapped")}}function Di(i,u){i&1&&(a(0,"div",30),c(1,"Invalid tip"),r())}function ki(i,u){if(i&1){let e=D();a(0,"div",4),p(1,Pi,2,6,"div",9),a(2,"div",10)(3,"div",11),c(4),r(),a(5,"div",12)(6,"div",13)(7,"div",14)(8,"app-profile-avatar",15),v(9,"brandDisplayName"),v(10,"brandDisplayName"),v(11,"brandDisplayName"),y("click",function(){b(e);let n=l(2);return C(n.firstAvatarClick())}),r()(),a(12,"div",16)(13,"div",17)(14,"span",18),y("click",function(){b(e);let n=l(2);return C(n.firstAvatarClick())}),c(15),v(16,"brandDisplayName"),v(17,"brandDisplayName"),r()(),a(18,"div",19)(19,"div",20)(20,"span"),c(21),v(22,"digitk"),r()(),a(23,"div",21)(24,"span"),c(25),v(26,"timeAgo"),r()()()()(),a(27,"div",22)(28,"span",23),y("click",function(){b(e);let n=l(2);return C(n.openShareModal())}
4),O(),a(29,"svg",24),g(30,"use",25),r(),T(),a(31,"span",26),c(32,"Share"),r()()()(),p(33,qi,1,2,"app-quest-description",27),g(34,"div",28),a(35,"div",29)(36,"dl",30)(37,"dt",31),c(38,"Your donation"),r(),a(39,"dd",32),c(40),v(41,"currency"),r()(),g(42,"app-checkout-fees",33),p(43,Di,2,0,"div",30),a(44,"dl",34)(45,"dt",35),c(46),r(),a(47,"dd",36),c(48),v(49,"currency"),r()()(),a(50,"div",37)(51,"span"),c(52),r()()()()}if(i&2){let e=l(),t=l();s(),f(t.questInfo?1:-1),s(3),V((t.questInfo==null||t.questInfo.quest==null?null:t.questInfo.quest.title)||""),s(4),m("avatar",t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.profilePictureURL)("firstName",x(9,19,t.questInfo==null||t.questInfo.user==null?null:t.questInfo.user.brand)?x(10,21,t.questInfo==null||t.questInfo.user==null?null:t.questInfo.user.brand):t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.firstName)("isBrand",t.isOrganizationIdentity(t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.brand,t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.isUserBrand))("lastName",x(11,23,t.questInfo==null||t.questInfo.user==null?null:t.questInfo.user.brand)?"":t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.lastName)("userName",(t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.firstName)+" "+(t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.lastName)),s(7),V(x(16,25,t.questInfo==null||t.questInfo.user==null?null:t.questInfo.user.brand)?x(17,27,t.questInfo==null||t.questInfo.user==null?null:t.questInfo.user.brand):(t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.firstName)+" "+(t.questInfo==null||t.questInfo.quest==null||t.questInfo.quest.user==null?null:t.questInfo.quest.user.lastName)),s(6),N("",x(22,29,t.questInfo==null||t.questInfo.quest==null?null:t.questInfo.quest.views)," views"),s(4),V(x(26,31,t.questInfo==null||t.questInfo.quest==null?null:t.questInfo.quest.dateModified)),s(8),f(t.questInfo!=null&&t.questInfo.quest?33:-1),s(7),V(x(41,33,(t.getAmount(e.donateState==null?null:e.donateState.amount)||0)/100)),s(2),m("platformFee",((e.donateState==null?null:e.donateState.creatorAbs
4orbFees)===2&&(e.donateState==null||e.donateState.formDetails==null||e.donateState.formDetails.step1==null||e.donateState.formDetails.step1.value==null?null:e.donateState.formDetails.step1.value.coverTransactionFee)===!0||(e.donateState==null?null:e.donateState.creatorAbsorbFees)===0)&&!e.donateState.offlineFlag?((e.donateState==null?null:e.donateState.platformFee)||0)+((e.donateState==null?null:e.donateState.platformSurcharge)||0):0)("processingFee",((e.donateState==null?null:e.donateState.creatorAbsorbFees)===2&&(e.donateState==null||e.donateState.formDetails==null||e.donateState.formDetails.step1==null||e.donateState.formDetails.step1.value==null?null:e.donateState.formDetails.step1.value.coverTransactionFee)===!0||(e.donateState==null?null:e.donateState.creatorAbsorbFees)===0)&&!e.donateState.offlineFlag?((e.donateState==null?null:e.donateState.stripeFee)||0)+((e.donateState==null?null:e.donateState.stripeSurcharge)||0):0)("platformSupport",e.donateState.offlineFlag?0:(e.donateState.tippingFlag&&(e.donateState==null?null:e.donateState.tipAmount)||0)+(((e.donateState==null?null:e.donateState.creatorAbs
4orbFees)===2&&(e.donateState==null||e.donateState.formDetails==null||e.donateState.formDetails.step1==null||e.donateState.formDetails.step1.value==null?null:e.donateState.formDetails.step1.value.coverTransactionFee)===!0||(e.donateState==null?null:e.donateState.creatorAbsorbFees)===0)&&(e.donateState==null?null:e.donateState.platformSupportFee)||0)),s(),f(e.donateState.tippingFlag&&e.donateState.tipAmount<0&&!e.donateState.offlineFlag?43:-1),s(3),N("",e.donateState!=null&&e.donateState.recurrency?"Today's Charge":"Total",":"),s(2),N(" USD ",x(49,35,e.donateState.brutTotal/100)," "),s(4),N("",(t.questInfo==null||t.questInfo.user==null||t.questInfo.user.brand==null?null:t.questInfo.user.brand.orgType)==="non_profit"?"Tax deductible:":""," \xA0You'll receive a receipt via email")}}function Ai(i,u){i&1&&(a(0,"span",42),c(1,"\xA0"),r())}function Mi(i,u){if(i&1){let e=D();a(0,"button",39),y("click",function(){b(e);let n=l(2);return C(n.goBackStage())}),a(1,"span"),c(2,"Back"),r()(),a(3,"div",40)(4,"button",41),y("click",function(){b(e);let n=l(2);return C(n.continuePayment())}),c(5," Donate now "),r(),p(6,Ai,2,0,"span",42),r()}if(i&2){let e=l(),t=l();s(4),m("disabled",(t.questInfo==null||t.questInfo.quest==null?null:t.questInfo.quest.isTemplate)||e.donateState.isLoading)("ngClass",M(3,wi,e.donateState.isLoading)),s(2),f(!(t.questInfo==null||t.questInfo.quest==null)&&t.questInfo.quest.isTemplate?6:-1)}}function Ei(i,u){if(i&1){let e=D();a(0,"button",43),y("click",function(){b(e);let n=l(2);return C(n.goBackToQuest())}),c(1," Back "),r()}}function Oi(i,u){if(i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),g(4,"router-outlet"),r(),p(5,ki,53,37,"div",4),r()(),a(6,"div",5)(7,"div",6)(8,"div",7),p(9,Mi,7,5)(10,Ei,2,0,"button",8),r()()()()),i&2){let e=u;s(5),f(e.donateState.steps.success?-1:5),s(4),f(e.donateState.steps.success?10:9)}}var In=(()=>{class i{constructor(e,t,n,o,d,S){this.route=e,this.store=t,this.questService=n,this.currencyMask=o,this.modalService=d,this.router=S,this.isOrganizationIdentity=on,this.fundraisingLink=null,this.monthlyDonationEnabled=!1,this.defaultTeamId=0,this.doesCoverImageExists=!1,this.modalReference=null,this.donateState=this.store.select("donate"),this.userInfoState=this.store.select("userInfo")}ngOnInit(){this.donateSubscriber=this.route.params.subscribe(e=>{this.questId=Number(e.questId),this.userId=Number(e.userId),this.teamId=Number(e.teamId)||null,this.route.queryParams.pipe(I(1)).subscribe(t=>{t?.restart==="true"&&this.store.dispatch(new Mt);let n=t&&t.amount?t.amount:null;n&&n>0&&this.store.dispatch(new ae(n));let o=this.route.snapshot.queryParamMap.get("amount-opts");this.store.dispatch(new kt(o==""||o===null?!0:o==="true"));let d=this.route.snapshot.queryParamMap.get("platform_support");this.store.dispatch(new At(d===null||d!=="false"))}),this.store.dispatch(new qt(this.teamId)),this.questService.getQuestDetail(this.questId,this.userId,this.teamId).subscribe(t=>{this.questInfo=t,this.store.dispatch(new Pt(this.questInfo)),this.monthlyDonationEnabled=t.quest.monthlyDonationEnabled,this.photo=this.questService.prepareCoverPhoto(this.questInfo.quest.photo,this.questInfo.quest.pillar),this.userInfoState.pipe(I(1)).subscribe(n=>{this.loggedInUser=n,this.store.dispatch(new _t(W.isEditableByUser(this.questInfo.quest,n))),this.questService.checkQuestCustomColorAndApply(this.questInfo,n.id,this.userId)}),this.store.dispatch(new xt(t.quest.tippingEnabled)),this.store.dispatch(new St(this.monthlyDonationEnabled)),this.questInfo&&this.questInfo.quest&&this.questInfo.quest.mode==="diyMode"&&this.questService.getQuestTeams(this.questId).subscribe(n=>{let o=n.filter(d=>d.defaultTeam);this.defaultTeamId=o&&o.length>0?o[0].teamId:0,this.teamId&&(this.teamDetail=n.find(d=>Number(d.teamId)===Number(this.teamId))),this.teamId&&this.teamDetail?.creatorId!==this.userId&&this.router.navigate([`/donate/${this.questId}/${this.teamDetail.creatorId}/${this.teamId}/enter-amount`])}),this.questService.getFundraisingLink(this.questId,this.userId,this.teamId,t.quest.mode==="diyMode").subscribe(n=>{this.fundraisingLink=n,this.store.dispatch(new he(n)),this.fundraisingLink&&this.fundraisingLink.quest.multiSellerEnabled&&(this.store.dispatch(new Y(this.fundraisingLink.brand?this.fundraisingLink.brand.id:null)),this.store.dispatch(new oe(this.fundraisingLink.secondaryBrand?this.fundraisingLink.secondaryBrand.id:null)))}),this.getMessagingDetails()})})}ngOnDestroy(){this.donateSubscriber&&this.donateSubscriber.unsubscribe()}getAmount(e){return Number(this.currencyMask.formatString(String(e)))}continuePayment(){this.donateState.pipe(I(1)).subscribe(e=>{if(e.steps.amount){let t=Object.assign(E({},e.formDetails));t.step1=j(E({},t.step1),{submitted:!0}),this.store.dispatch(new re(t));return}})}goBackToQuest(){if(this.questInfo&&this.questInfo.quest&&this.questInfo.quest.title&&this.questInfo.isParentQuest&&(this.questInfo.quest.title.toLowerCase().indexOf("general fund")>-1||this.questInfo.quest.title.toLowerCase().indexOf("general donation")>-1)){let e=this.questInfo.megaQuests&&this.questInfo.megaQuests.length>0?this.questInfo.megaQuests[0]:this.questInfo.quest;this.router.navigate([`/quest-detail/${e.id}/${e.user.id}/0/details`])}else this.router.navigate([`/quest-detail/${this.questId}/${this.questInfo.quest.user.id||this.userId}/${this.defaultTeamId||0}/details`])}goBackStage(){this.donateState.pipe(I(1)).subscribe(e=>{if(e.steps.amount){this.router.navigate([`/quest-detail/${this.questId}/${this.questInfo.quest.user.id||this.userId}/${this.defaultTeamId||0}/details`]);return}})}firstAvatarClick(){let e=jt(this.questInfo?.user,this.loggedInUser);e&&window.open(window.location.origin+e.join("/"),"_blank")}photoExistCheck(e){this.doesCoverImageExists=e}getMessagingDetails(){this.store.dispatch(new ke(null)),this.questService.getDonateMessagingDetail(this.questInfo?.user?.brand?.id||null).subscribe(e=>{this.store.dispatch(new ke(e&&e.disclaimer?e.disclaimer.trim():null))})}openShareModal(){this.modalReference=this.modalService.open(Ce,{windowClass:"no-overflow"}),this.modalReference.componentInstance.questId=this.questInfo.quest.id,this.modalReference.componentInstance.teamId=this.teamId,this.questInfo.quest.mode==="paceYourselfMode"&&(this.modalReference.componentInstance.userId=this.userId)}static{this.\u0275fac=function(t){return new(t||i)(_(ne),_(te),_(W),_(ye),_(se),_(ie))}}static{this.\u0275cmp=X({type:i,selectors:[["app-donate"]],standalone:!1,decls:2,vars:5,consts:[[1,"c-purchase-flow"],[1,"c-container","c-purchase-flow__content-container","no-header"],[1,"c-purchase-flow__content-container__body"],[1,"left-panel__parent"],[1,"right-panel__parent"],[1,"c-purchase-flow__footer"],[1,"c-container"],[1,"c-purchase-flow__footer__inner"],["type","button",1,"c-btn","c-btn_ms","c-btn_dark"],[1,"right-panel__parent__image",3,"ngClass"],[1,"right-panel__parent__content"],[1,"right-panel__parent__content__title"],[1,"right-panel__parent__content__title-cont"],[1,"creator-section"],[1,"creator-section__img"],[1,"c-avatar","is-creator","mr-10",3,"click","avatar","firstName","
4isBrand","lastName","userName"],[1,"c-quest-detail__layout__creator-cont"],[1,"created-by-parent"],[3,"click"],[1,"d-flex"],[1,"views-count"],[1,"dot"],[1,"share-icon"],["title","Share",3,"click"],[1,"icon","icon-bi-share"],[0,"xlink","href","#icon-bi-share"],[1,"text"],["id","skip-nav-target",1,"mb-4",3,"questInfo","mode"],[1,"hr-break"],[1,"infoRow"],[1,"info"],[1,"info__label"],[1,"info__value"],[3,"platformFee","processingFee","platformSupport"],[1,"info","total-payment"],[1,"info__label","total-payment"],[1,"info__value","total-payment"],[1,"tax-msg"],[1,"c-quest-header","row-xm",3,"photoExists","questData","isViewShort","isOnDonation"],[1,"c-btn","c-btn_ms","c-btn_dark-alternate",3,"click"],[1,"position-relative"],["type","button",1,"c-btn","c-btn_ms","c-btn_dark",3,"click","disabled","ngClass"],["tooltipClass","c-dl-tooltip","ngbTooltip","Use the template to activate this feature",1,"disabled-tooltip-msg"],["type","button",1,"c-btn","c-btn_ms","c-btn_dark",3,"click"]],template:function(t,n){if(t&1&&(p(0,Oi,11,2,"div",0),v(1,"async")),t&2){let o;f((o=M(3,Ii,x(1,1,n.donateState)))?0:-1,o)}},dependencies:[ut,me,un,ge,nn,sn,dn,K,ee,be,Xt,Yt],styles:['[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;
4--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}.c-donate__title[_ngcontent-%COMP%]{font-size:24px;font-style:normal;font-family:ProximaNova-Bold;line-height:28px;color:var(--bg-text-color)}@media(max-width:767px){.c-donate__title[_ngcontent-%COMP%]{font-size:20px;line-height:22px}}.c-donate__title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:inherit}.c-donate__title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:inherit}.left-panel__parent[_ngcontent-%COMP%]{width:58%;padding:20px 30px}@media(max-width:768px){.left-panel__parent[_ngcontent-%COMP%]{width:100%}}.right-panel__parent[_ngcontent-%COMP%]{width:42%;background:var(--quest-detail-right);color:var(--bg-text-color)}@media(max-width:650px){.right-panel__parent[_ngcontent-%COMP%]{width:100%}}.right-panel__parent__content[_ngcontent-%COMP%]{padding:20px 30px}.right-panel__parent__content__title[_ngcontent-%COMP%]{font-size:2.4rem;font-family:ProximaNova-Bold;margin-bottom:10px}.right-panel__parent__content__title-cont[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.right-panel__parent__content[_ngcontent-%COMP%]   .created-by-parent[_ngcontent-%COMP%]{width:100%}.right-panel__parent__content[_ngcontent-%COMP%]   .created-by-parent[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{max-width:80%}@media(max-width:650px){.right-panel__parent__image[_ngcontent-%COMP%]{display:none}}.right-panel__parent__image.no-image[_ngcontent-%COMP%]{display:none}.right-panel__parent__image[_ngcontent-%COMP%]   .c-quest-detail__header[_ngcontent-%COMP%]{aspect-ratio:4/1}.right-panel__parent[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]{font-size:2.4rem;font-style:normal;font-family:ProximaNova-Bold;line-height:42px;margin-top:30px}.right-panel__parent[_ngcontent-%COMP%]   .hr-break[_ngcontent-%COMP%]{background:var(--platinum);height:1px;width:100%;margin-top:30px;margin-bottom:30px}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]{margin-top:20px}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{font-size:16px;font-family:ProximaNova-Semibold;display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]   .info.total-payment[_ngcontent-%COMP%]{margin-top:25px;padding-top:30px;border-top:solid 1px var(--platinum)}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .info__label[_ngcontent-%COMP%]{width:68%;font-family:ProximaNova-Regular;font-size:14px}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .info__label.total-payment[_ngcontent-%COMP%]{text-transform:uppercase;width:58%}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .info__value[_ngcontent-%COMP%]{font-family:ProximaNova-Semibold;width:28%;text-align:right}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .info__value.total-payment[_ngcontent-%COMP%]{color:var(--accent-color);width:38%}.right-panel__parent[_ngcontent-%COMP%]   .infoRow[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .total-payment[_ngcontent-%COMP%]{font-family:ProximaNova-Semibold;font-size:20px}.right-panel__parent[_ngcontent-%COMP%]   .tax-msg[_ngcontent-%COMP%]{background-color:var(--feedback-bg);border-radius:var(--border-radius-val);padding:8px 15px;width:100%;text-align:center;font-size:12px;font-family:ProximaNova-Regular;margin-top:30px}.right-panel__parent__image[_ngcontent-%COMP%]     app-quest-header .c-quest-detail__header.no-image-header{min-height:70px;aspect-ratio:auto}.right-panel__parent__image[_ngcontent-%COMP%]     app-quest-header .c-quest-detail__header.no-image-header .c-quest-detail__header__title-short:before{height:100%}.creator-section[_ngcontent-%COMP%]   .c-quest-detail__layout__creator-cont[_ngcontent-%COMP%]{font-size:12px;display:flex;flex-direction:row;align-items:center;margin:0;color:var(--accent-color);list-style-position:inside}.creator-section[_ngcontent-%COMP%]   .c-quest-detail__layout__creator-cont[_ngcontent-%COMP%]   .created-by-parent[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;align-items:center}.creator-section[_ngcontent-%COMP%]   .c-quest-detail__layout__creator-cont[_ngcontent-%COMP%]   .c-avatar[_ng
4content-%COMP%]{display:block;width:22px;height:22px;border:solid 1px var(--accent-color);cursor:pointer}.creator-section[_ngcontent-%COMP%]   .c-quest-detail__layout__creator-cont[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:80%}.share-icon[_ngcontent-%COMP%]{font-size:14px;display:flex;height:30px;align-items:center;border-radius:5px;border:solid 1px var(--theme-text-dark);padding:6px 10px;cursor:pointer}.share-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:10px}@media(max-width:767px){.share-icon[_ngcontent-%COMP%]{width:30px;justify-content:center;padding:0}.share-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:0}.share-icon[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{display:none}}.creator-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:70%;align-items:center}.creator-section__img[_ngcontent-%COMP%]{width:40px;height:40px;margin-right:10px}.creator-section__img[_ngcontent-%COMP%]   .c-avatar[_ngcontent-%COMP%]{width:100%;height:100%}.creator-section[_ngcontent-%COMP%]   .c-quest-detail__layout__creator-cont[_ngcontent-%COMP%]{flex-direction:column;width:calc(100% - 50px);align-items:flex-start}.creator-section[_ngcontent-%COMP%]   .c-quest-detail__layout__creator-cont[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{position:relative;margin-left:20px}.creator-section[_ngcontent-%COMP%]   .c-quest-detail__layout__creator-cont[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--bg-text-color-light);position:absolute;left:-12px;top:40%}']})}}return i})();var Ti=[{path:"",component:In,children:[{path:"enter-amount",component:xn},{path:"success",component:Sn},{path:"**",redirectTo:"enter-amount"}]},{path:"**",redirectTo:""}],zo=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=Ne({type:i})}static{this.\u0275inj=Be({providers:[ve],imports:[mt.forChild(Ti),We,mn,ct,dt,Wt]})}}return i})();export{zo as DonateModule};

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.