PageSourceSearch

https://rootsvb.org/chunk-AL3LQXSE.js

js rootsvb.org collected 2026-10-02 00:42:21 UTC 30,368 bytes, 222 lines download raw bytes

1import"./chunk-XDSB64N2.js";import{a as Ot,b as Nt}from"./chunk-3HFTO6XY.js";import{a as It,b as Tt,d as Et,g as Ft}from"./chunk-IZKA562T.js";import"./chunk-BROSYERN.js";import{k as ft}from"./chunk-Y2KCFOCP.js";import"./chunk-Z52L74DH.js";import{a as wt}from"./chunk-CYDDDATF.js";import{c as tt}from"./chunk-GWQPV7EH.js";import"./chunk-RQ74XYI3.js";import{a as gt}from"./chunk-3IFGWXMA.js";import{l as j}from"./chunk-EME7BUOO.js";import{d as V}from"./chunk-VVVN3YIZ.js";import{a as X}from"./chunk-NXTJBJRP.js";import{a as _t}from"./chunk-U22BTVEZ.js";import{$b as bt,Hd as Dt,Td as Z,ka as W,kd as St,kh as yt,ta as xt,ua as Ct,zd as vt}from"./chunk-X5J6QTCG.js";import{$ as U,$a as d,Ad as it,Db as Q,E as k,Fa as s,Fb as y,H as st,Ib as t,Ka as b,Kb as h,Ma as N,Mb as dt,Na as z,Sa as E,Sc as ut,U as F,W as O,_ as mt,ba as M,bb as u,cc as nt,d as rt,db as w,di as ht,eb as P,fa as C,fb as A,ga as _,gb as p,hb as a,ib as r,jb as v,k as T,lc as g,mc as I,pb as Y,pj as J,q as R,qb as D,qc as H,ra as q,sb as S,tb as m,u as lt,vd as K,xb as ct,xd as G,yb as $,yd as pt,zb as B}from"./chunk-SMW7PHYX.js";import{a as ot,b as at}from"./chunk-BMIYOSOG.js";var x=(function(n){return n[n.DONATION_SELECT=1]="DONATION_SELECT",n[n.DEMO_INFO=2]="DEMO_INFO",n[n.PAYMENT=3]="PAYMENT",n[n.CONFIRMATION=4]="CONFIRMATION",n})(x||{});function zt(n,o){if(n&1&&(t(0,`
2      `),a(1,"div",1),t(2,`
3        `),a(3,"div"),t(4),r(),t(5,`
4        `),a(6,"div",2),t(7),g(8,"sprocketCurrency"),r(),t(9,`
5      `),r(),t(10,`
6    `)),n&2){let e=o.$implicit,l=o.$index,i=o.$count;s(),y("border-bottom",l!==i-1)("pb-2",l!==i-1),s(3),h(`
7          `,e.clubDonationOption.title,`
8        `),s(3),h(`
9          `,I(8,6,e.amount),`
10        `)}}function Yt(n,o){if(n&1&&(t(0,`
11      `),a(1,"div",3),t(2,`
12        `),a(3,"div"),t(4,`
13          Your Donation(s)
14        `),r(),t(5,`
15        `),a(6,"div",4),t(7),g(8,"sprocketCurrency"),r(),t(9,`
16      `),r(),t(10,`
17      `),a(11,"div",1),t(12,`
18        `),a(13,"div"),t(14),r(),t(15,`
19        `),a(16,"div",2),t(17),g(18,"sprocketCurrency"),r(),t(19,`
20      `),r(),t(20,`
21      `),a(21,"div",5),t(22,`
22        `),a(23,"div",6),t(24),r(),t(25,`
23        `),a(26,"div",4),t(27),g(28,"sprocketCurrency"),r(),t(29,`
24      `),r(),t(30,`
25    `)),n&2){let e=m(2);s(7),h(`
26          `,I(8,5,e.amount||0),`
27        `),s(7),h(`
28          `,e.clubPaymentFee.paymentType.feeDescription,`
29        `),s(3),h(`
30          `,I(18,7,e.clubPaymentFee.userFee),`
31        `),s(7),h(`
32          `,e.amountDueText,`
33        `),s(3),h(`
34          `,I(28,9,(e.amount||0)+((e.clubPaymentFee==null?null:e.clubPaymentFee.userFee)||0)),`
35        `)}}function Qt(n,o){if(n&1&&(t(0,`
36      `),a(1,"div",5),t(2,`
37        `),a(3,"div",6),t(4,`
38          Your Donation(s)
39        `),r(),t(5,`
40        `),a(6,"div",4),t(7),g(8,"sprocketCurrency"),r(),t(9,`
41      `),r(),t(10,`
42    `)),n&2){let e=m(2);s(7),h(`
43          `,I(8,1,(e.amount||0)+((e.clubPaymentFee==null?null:e.clubPaymentFee.userFee)||0)),`
44        `)}}function Ht(n,o){if(n&1&&(t(0,`
45  `),a(1,"div"),t(2,`
46    `),a(3,"div",0),t(4),r(),t(5,`
47    `),P(6,zt,11,8,null,null,w),d(8,Yt,31,11)(9,Qt,11,3),r(),t(10,`
48`)),n&2){let e=m();s(),y("card",e.renderAsCard),s(3),h("",e.isNonProfit?"Donation":"Contribution"," Summary"),s(2),A(e.selectedDonations),s(2),u((e.clubPaymentFee==null?null:e.clubPaymentFee.userFee)>0?8:9)}}var Pt=(()=>{let o=class o{constructor(){this.isNonProfit=!0,this.renderAsCard=!0,this.amountDueText="Amount Due"}ngOnChanges(){this.userClubDonation?.userClubDonationOptions?.length&&(this.selectedDonations=this.userClubDonation.userClubDonationOptions.filter(l=>l.clubDonationOption.clubDonationOptionTypeID===V.DONATION))}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=N({type:o,selectors:[["app-donation-summary"]],inputs:{isNonProfit:"isNonProfit",userClubDonation:"userClubDonation",clubPaymentFee:"clubPaymentFee",renderAsCard:"renderAsCard",amount:"amount",amountDueText:"amountDueText"},standalone:!1,features:[q],decls:1,vars:1,consts:[[1,"text-header-2","mb-3"],[1,"d-flex","align-items-center","text-medium","mb-2"],[1,"d-flex","justify-content-end","ml-auto","fw-600"],[1,"d-flex","align-items-center","text-medium","mb-2","pt-2","fw-600","subtotal-row","border-bottom","pb-2"],[1,"d-flex","justify-content-end","ml-auto","fw-800"],[1,"d-flex","align-items-center","pt-2","fw-800","total-row","text-navy"],[1,"text-uppercase"]],template:function(i,c){i&1&&d(0,Ht,11,4),i&2&&u(c.selectedDonations!=null&&c.selectedDonations.length?0:-1)},dependencies:[Z],styles:[".total-row[_ngcontent-%COMP%]{border-top:3px solid var(--blue-1000)}.subtotal-row[_ngcontent-%COMP%]{border-top:2px solid var(--blue-1000)}"]});let n=o;return n})();function Gt(n,o){if(n&1&&(t(0,`
49      `),a(1,"div",1),t(2,`
50        `),a(3,"div"),t(4),r(),t(5,`
51        `),a(6,"div",2),t(7),r(),t(8,`
52      `),r(),t(9,`
53    `)),n&2){let e=o.$implicit,l=o.$index,i=o.$count;s(),y("border-bottom",l!==i-1)("pb-2",l!==i-1),s(3),h(`
54          `,e.clubDonationOption.title,`
55        `),s(3),h(`
56          `,e.value,`
57        `)}}function Jt(n,o){if(n&1&&(t(0,`
58  `),a(1,"div"),t(2,`
59    `),a(3,"div",0),t(4,"Volunteering Summary"),r(),t(5,`
60    `),P(6,Gt,10,6,null,null,w),r(),t(8,`
61`)),n&2){let e=m();s(),y("card",e.renderAsCard),s(5),A(e.selectedVolunteerOptions)}}var At=(()=>{let o=class o{constructor(){this.renderAsCard=!0}ngOnChanges(){this.userClubDonation?.userClubDonationOptions?.length&&(this.selectedVolunteerOptions=this.userClubDonation.userClubDonationOptions.filter(l=>l.clubDonationOption.clubDonationOptionTypeID===V.VOLUNTEER))}};o.\u0275fac=function(i){return new(i||o)}
61,o.\u0275cmp=N({type:o,selectors:[["app-volunteer-summary"]],inputs:{userClubDonation:"userClubDonation",renderAsCard:"renderAsCard"},standalone:!1,features:[q],decls:1,vars:1,consts:[[1,"text-header-2","mb-3"],[1,"d-flex","align-items-center","text-medium","mb-2"],[1,"d-flex","justify-content-end","ml-auto","fw-600"]],template:function(i,c){i&1&&d(0,Jt,9,2),i&2&&u(c.selectedVolunteerOptions!=null&&c.selectedVolunteerOptions.length?0:-1)},encapsulation:2});let n=o;return n})();var te=["demoForm"],ee=["paymentForm"],ne=["recaptcha"],Vt=()=>["/"];function ie(n,o){if(n&1&&(t(0,`
62      `),a(1,"h1",27),t(2),r(),t(3,`
63    `)),n&2){let e=m(2);s(2),h("",e.clubName," Donations")}}function oe(n,o){if(n&1){let e=D();t(0,`
64            `),a(1,"button",28),S("click",function(){C(e);let i=m(2);return _(i.next())}),t(2,`
65              `),a(3,"span",29),t(4,"Submit"),r(),t(5,`
66            `),r(),t(6,`
67          `)}if(n&2){let e=m(2);s(),p("disabled",e.changingSteps)}}function ae(n,o){if(n&1){let e=D();t(0,`
68            `),a(1,"button",16),S("click",function(){C(e);let i=m(2);return _(i.next())}),t(2,`
69              `),a(3,"span",29),t(4,"Next"),r(),t(5,`
70            `),r(),t(6,`
71          `)}if(n&2){let e=m(2);s(),p("disabled",e.changingSteps)}}function re(n,o){if(n&1){let e=D();t(0,`
72        `),a(1,"app-dynamic-form",30,4),S("onCancel",function(){C(e);let i=m(2);return _(i.back())})("onSubmit",function(){C(e);let i=m(2);return _(i.next())}),t(3,`
73          `),v(4,"app-dynamic-form-field",31),t(5,`
74          `),v(6,"app-dynamic-form-field",32),t(7,`
75          `),v(8,"app-dynamic-form-field",33),t(9,`
76        `),r(),t(10,`
77      `)}if(n&2){let e=m(2);s(),p("entity",e.clubUser==null?null:e.clubUser.user)("contentFieldsMode",!0)("fields",e.demographicFields)("showCancelButton",!1)("showSubmitButton",!1)("horizontalForm",!0)("buttonsPosition","spread")}}function le(n,o){n&1&&(t(0,`
78              `),a(1,"span",29),t(2,"Next"),r(),t(3,`
79            `))}function se(n,o){n&1&&(t(0,`
80              `),a(1,"span",29),t(2,"Please wait..."),r(),t(3,`
81            `))}function me(n,o){if(n&1){let e=D();t(0,`
82                `),a(1,"app-payment-form",37,5),S("paymentTypeChanged",function(i){C(e);let c=m(3);return _(c.paymentTypeChanged(i.clubPaymentFee))})("stripePaymentAttempted",function(i){C(e);let c=m(3);return _(c.handleStripePaymentAttempt(i))}),t(3,`
83                `),r(),t(4,`
84              `)}if(n&2){let e=m(3);s(),p("horizontalForm",!1)("clubID",e.clubID)("includeHeader",!1)("paymentData",e.paymentData)("sitePaymentTypeID",e.SitePaymentType.DONATION)("paymentIntentMetadata",e.metadata)("firstName",e.demoForm==null||e.demoForm.value==null?null:e.demoForm.value.firstName)("lastName",e.demoForm==null||e.demoForm.value==null?null:e.demoForm.value.lastName)("email",e.demoForm==null||e.demoForm.value==null?null:e.demoForm.value.email)}}function ce(n,o){n&1&&(t(0,`
85                      `),a(1,"div",40),t(2,`
86                        Please check "I'm not a robot"
87                      `),r(),t(3,`
88                    `))}function de(n,o){if(n&1){let e=D();t(0,`
89                `),a(1,"div",38),t(2,`
90                  `),a(3,"div"),t(4,`
91                    `),a(5,"re-captcha",39,6),S("resolved",function(i){C(e);let c=m(3);return _(c.resolved(i))})("error",function(i){C(e);let c=m(3);return _(c.error(i))}),r(),t(7,`
92                    `),d(8,ce,4,0),r(),t(9,`
93                `),r(),t(10,`
94              `)}if(n&2){let e=m(3);s(3),y("mb-1",e.showCaptchaError),s(2),p("siteKey",e.captchaSettings.siteKey),s(3),u(e.showCaptchaError?8:-1)}}function ue(n,o){n&1&&(t(0,`
95                        `),v(1,"span",42),t(2,`
96                      `))}function pe(n,o){n&1&&t(0,`
97                        Submitting...
98                      `)}function he(n,o){if(n&1&&t(0),n&2){let e=m(4);h(`
99                        `,e.isNonProfit?"Donate":"Contribute",`
100                      `)}}function xe(n,o){if(n&1){let e=D();t(0,`
101                    `),a(1,"button",41),S("click",function(){C(e);let i=m(3);return i.donating=!0,_(i.next())}),t(2,`
102                      `),d(3,ue,3,0),d(4,pe,1,0),d(5,he,1,1),r(),t(6,`
103                  `)}if(n&2){let e=m(3);s(),p("disabled",e.donating||!(e.paymentForm!=null&&e.paymentForm.isValid)),s(2),u(e.donating?3:-1),s(),u(e.donating?4:-1),s(),u(e.donating?-1:5)}}function Ce(n,o){if(n&1){let e=D();t(0,`
104              `),d(1,me,5,9),d(2,de,11,4),a(3,"div",34),t(4,`
105                `),a(5,"div",35),t(6,`
106                  `),a(7,"button",15),S("click",function(){C(e);let i=m(2);return _(i.back())}),t(8,`
107                    Back
108                  `),r(),t(9,`
109                `),r(),t(10,`
110                `),a(11,"div",36),t(12,`
111                  `),d(13,xe,7,4),r(),t(14,`
112              `),r(),t(15,`
113            `)}if(n&2){let e=m(2);s(),u(e.currentStep===e.DonationSteps.PAYMENT?1:-1),s(),u(!e.user&&e.captchaSettings?2:-1),s(5),p("disabled",e.donating),s(6),u(e.showDonateButton?13:-1)}}function _e(n,o){n&1&&Y(0)}function fe(n,o){n&1&&Y(0)}function be(n,o){n&1&&Y(0)}function Se(n,o){if(n&1&&(t(0,`
114              `),a(1,"p"),t(2),g(3,"sprocketCurrency"),r(),t(4,`
115            `)),n&2){let e=m(3);s(2),dt(`
116                `,e.clubName,` thanks you for your
117                `,I(3,3,e.amount||0),`
118                `,e.isNonProfit?"donation":"contribution",`!
119              `)}}function ve(n,o){if(n&1&&(t(0,`
120              `),a(1,"p"),t(2),r(),t(3,`
121            `)),n&2){let e=m(3);
121s(2),h("A receipt has been emailed to ",e.email||"you")}}function De(n,o){if(n&1&&(t(0,`
122              `),a(1,"p"),t(2),r(),t(3,`
123            `)),n&2){let e=m(3);s(2),h("Your receipt will be emailed to ",e.email||"you",`.
124              `)}}function ye(n,o){if(n&1&&(t(0,`
125          `),a(1,"div"),t(2,`
126            `),d(3,Se,5,5),d(4,ve,4,1),d(5,De,4,1),r(),t(6,`
127        `)),n&2){let e=m(2);s(3),u(e.amount>0?3:-1),s(),u(e.paymentResult!=null&&e.paymentResult.userClubDonation?4:-1),s(),u(e.paymentResult!=null&&e.paymentResult.userClubDonation?-1:5)}}function ge(n,o){if(n&1&&(t(0,`
128          `),a(1,"div",43),t(2),r(),t(3,`
129        `)),n&2){let e=m(2);s(2),h(`Confirmation
130            Number:
131          `,e.paymentResult==null?null:e.paymentResult.userClubDonation.userClubDonationID)}}function Ie(n,o){if(n&1&&(t(0,`
132            `),v(1,"app-volunteer-summary",44),t(2,`
133          `)),n&2){let e=m(2);s(),p("userClubDonation",e.userClubDonation)("renderAsCard",!1)}}function Te(n,o){if(n&1&&(t(0,`
134            `),v(1,"app-donation-summary",45),t(2,`
135          `)),n&2){let e=m(2);s(),p("userClubDonation",e.userClubDonation)("renderAsCard",!1)("amount",e.amount)("clubPaymentFee",e.clubPaymentFee)("isNonProfit",e.isNonProfit)}}function Ee(n,o){if(n&1){let e=D();t(0,`
136    `),d(1,ie,4,1),a(2,"div",8),t(3,`
137      `),a(4,"app-club-donation-options",9,3),S("donationSelectionChange",function(i){C(e);let c=m();return _(c.donationSelectionChanged(i))})("optionsNotFound",function(i){C(e);let c=m();return _(c.optionsNotFound=i)}),t(6,`
138      `),r(),t(7,`
139      `),a(8,"div",10),t(9,`
140        `),a(10,"div",11),t(11,`
141          `),d(12,oe,7,1),d(13,ae,7,1),r(),t(14,`
142      `),r(),t(15,`
143    `),r(),t(16,`
144    `),a(17,"div",12),t(18,`
145      `),a(19,"div",13),t(20,"Basic Information"),r(),t(21,`
146      `),d(22,re,11,7),a(23,"div",10),t(24,`
147        `),a(25,"div",14),t(26,`
148          `),a(27,"button",15),S("click",function(){C(e);let i=m();return _(i.back())}),t(28,"Back"),r(),t(29,`
149        `),r(),t(30,`
150        `),a(31,"div",11),t(32,`
151          `),a(33,"button",16),S("click",function(){C(e);let i=m();return _(i.demoForm.submitForm())}),t(34,`
152            `),d(35,le,4,0),d(36,se,4,0),r(),t(37,`
153        `),r(),t(38,`
154      `),r(),t(39,`
155    `),r(),t(40,`
156    `),a(41,"div",17),t(42,`
157      `),a(43,"div",18),t(44,`
158        `),a(45,"div",19),t(46,`
159          `),a(47,"div",20),t(48,`
160            `),a(49,"div",13),t(50,"Payment Information"),r(),t(51,`
161            `),d(52,Ce,16,4),r(),t(53,`
162        `),r(),t(54,`
163        `),a(55,"div",19),t(56,`
164          `),E(57,_e,1,0,"ng-container",21),t(58,`
165          `),E(59,fe,1,0,"ng-container",21),t(60,`
166          `),E(61,be,1,0,"ng-container",21),t(62,`
167        `),r(),t(63,`
168      `),r(),t(64,`
169    `),r(),t(65,`
170    `),a(66,"div",22),t(67,`
171      `),a(68,"div",20),t(69,`
172        `),a(70,"div",13),t(71,"Thank you!"),r(),t(72,`
173        `),d(73,ye,7,3),d(74,ge,4,1),a(75,"div",23),t(76,`
174          `),d(77,Ie,3,2),r(),t(78,`
175        `),a(79,"div",23),t(80,`
176          `),d(81,Te,3,5),r(),t(82,`
177      `),r(),t(83,`
178      `),a(84,"div",24),t(85,`
179        `),a(86,"div",25),t(87,`
180          `),a(88,"a",26),t(89,"Return to Dashboard"),r(),t(90,`
181        `),r(),t(91,`
182      `),r(),t(92,`
183    `),r(),t(93,`
184  `)}if(n&2){let e=m(),l=Q(6),i=Q(9),c=Q(12);s(),u(e.clubName?1:-1),s(),p("hidden",e.currentStep!==e.DonationSteps.DONATION_SELECT)("@fadeIn",e.currentStep===e.DonationSteps.DONATION_SELECT?"visible":"hidden"),s(2),p("selectionRequired",!e.registrationSectionID)("clubVolunteerOptionID",e.clubVolunteerOptionID)("registrationSectionID",e.registrationSectionID)("submitted",e.nextButtonClicked),s(8),u(e.clubVolunteerOptionID?12:-1),s(),u(e.clubVolunteerOptionID?-1:13),s(4),p("hidden",e.currentStep!==e.DonationSteps.DEMO_INFO)("@fadeIn",e.currentStep===e.DonationSteps.DEMO_INFO?"visible":"hidden"),s(5),u(e.demographicFields?22:-1),s(5),p("disabled",e.changingSteps),s(6),p("disabled",e.changingSteps),s(2),u(e.changingSteps?-1:35),s(),u(e.changingSteps?36:-1),s(5),p("hidden",e.currentStep!==e.DonationSteps.PAYMENT)("@fadeIn",e.currentStep===e.DonationSteps.PAYMENT?"visible":"hidden"),s(11),u(e.userClubDonation?52:-1),s(5),p("ngTemplateOutlet",c),s(2),p("ngTemplateOutlet",i),s(2),p("ngTemplateOutlet",l),s(5),p("hidden",e.currentStep!==e.DonationSteps.CONFIRMATION)("@fadeIn",e.currentStep===e.DonationSteps.CONFIRMATION?"visible":"hidden"),s(7),u(!e.clubVolunteerOptionID&&(e.paymentResult!=null&&e.paymentResult.paymentMadeSuccessfully)?73:-1),s(),u(e.paymentResult!=null&&e.paymentResult.userClubDonation&&(e.paymentResult!=null&&e.paymentResult.paymentMadeSuccessfully)?74:-1),s(3),u(e.userClubDonation?77:-1),s(4),u(e.userClubDonation?81:-1),s(7),p("routerLink",nt(29,Vt))}}function Fe(n,o){n&1&&(t(0,`
185    `),a(1,"div",46),t(2,`
186      `),a(3,"div",47),t(4,`
187        `),a(5,"div"),t(6,`
188          `),a(7,"h3"),t(8,"No opportunities available at this time."),r(),t(9,`
189        `),r(),t(10,`
190        `),a(11,"div",48),t(12,`
191          `),a(13,"a",26),t(14,"Return to Dashboard"),r(),t(15,`
192        `),r(),t(16,`
193      `),r(),t(17,`
194    `),r(),t(18,`
195  `)),n&2&&(s(13),p("routerLink",nt(1,Vt)))}function Oe(n,o){if(n&1&&(t(0,`
196    `),v(1,"app-donation-summary",49),t(2,`
197  `)),n&2){let e=m(2);s(),p("userClubDonation",e.userClubDonation)("renderAsCard",!0)("amount",e.amount)("clubPaymentFee",e.clubPaymentFee)("isNonProfit",e.isNonProfit)}}function Ne(n,o){if(n&1&&(t(0,`
198  `),d(1,Oe,3,5)),n&2){let e=m();s(),u(e.userClubDonation?1:-1)}}function we(n,o){if(n&1&&(t(0,`
199    `),v(1,"app-volunteer-summary",44),t(2,`
200  `)),n&2){let e=m(2);s(),p("userClubDonation",e.userClubDonation)("renderAsCard",!0)}}function Pe(n,o){if(n&1&&(t(0,`
201  `),d(1,we,3,2)),n&2){let e=m();s(),u(e.userClubDonation?1:-1)}}function Ae(n,o){if(n&1&&(t(0,`
202        `),a(1,"div",50),t(2,`
203          `),a(3,"div"),t(4),r(),t(5,`
204          `),a(6,"div",51),t(7),r(),t(8,`
205        `),r(),t(9,`
206      `)),n&2){let e=o.$implicit,l=o.$index,i=o.$count,c=m(3);s(),y("mb-2",l!==i-1),s(3),h(`
207            `,e.label,`
208          `),s(3),h(`
209            `,c.userClubDonation[e.controlName],`
210          `)}}function Ve(n,o){if(n&1&&(t(0,`
211    `),a(1,"div",20),t(2,`
212      `),a(3,"div",13),t(4,"Basic Information"),r(),t(5,`
213      `),P(6,Ae,10,4,null,null,w),r(),t(8,`
214  `)),n&2){let e=m(2);s(6),A(e.demographicFields)}}function Re(n,o){if(n&1&&(t(0,`
215  `),d(1,Ve,9,0)),n&2){let e=m();s(),u(e.userClubDonation&&e.demographicFields?1:-1)}}var Rt=(()=>{let o=class o{constructor(l,i,c,f,Mt,$t,Bt,jt,Lt,Ut){this.siteDataService=l,this.donationsService=i,this.clubService=c,this.formService=f,this.paymentFormService=Mt,this.router=$t,this.route=Bt,this.userService=jt,this.authorizeService=Lt,this.analyticsService=Ut,this.currentStep=x.DONATION_SELECT,this.DonationSteps=x,this.loading=!0,this.optionsNotFound=!1,this.changingSteps=!0,this.nextButtonClicked=!1,this.ClubDonationOptionTypes=V,this.RegistrationSectionID=j,this.showCaptchaError=!1,this.donating=!1,this.showDonateButton=!0,this.donateButtonDisabled=!0,this.SitePaymentType=W,this.metadata=new It(W.DONATION),this.unsubscribe$=new rt}ngOnInit(){window.scrollTo(0,0),this.loading=!0,this.siteDataService.showSiteLoader(),this.programID=+this.route.
215snapshot.params.programID,this.clubVolunteerOptionID=+this.route.snapshot.params.clubVolunteerOptionID,this.registrationSectionID=+this.route.snapshot.data.registrationSectionID,this.programID&&(this.registrationSectionID=j.VOLUNTEER_OPPORTUNITIES),this.authorizeService.getUser().pipe(st(1),O(l=>this.user=l),k(()=>this.user?T(null):this.siteDataService.getRecaptchaConfig().pipe(O(l=>{this.captchaSettings=l}))),k(()=>lt({club:this.clubService.getAnonymousClub(),metadata:this.donationsService.getFormMetadata()})),F(this.unsubscribe$)).subscribe({next:l=>{this.clubName=l.club.name,this.clubID=l.club.clubID,this.isNonProfit=l.club.isNonProfit,this.setPageTitle(),this.userService.loggedInClubUser&&(this.clubUser=this.userService.loggedInClubUser),this.demographicFields=l.metadata,this.loading=!1,this.currentStep=x.DONATION_SELECT,this.siteDataService.hideSiteLoader(),this.doneChangingSteps()},error:l=>{l.status===404&&this.router.navigate(["/error/not-found"],{relativeTo:this.route})}})}setPageTitle(){let l=this.registrationSectionID===j.VOLUNTEER_OPPORTUNITIES;this.clubName?document.title=l?this.clubName+" - Volunteer":this.clubName+" Donations":document.title=l?"Volunteer":"Donate"}resolved(l){this.captcha=l,this.captcha?this.showCaptchaError=!1:this.showCaptchaError=!0}error(l){this.recaptchaRef.reset(),this.captcha=null,this.showCaptchaError=!0}donationSelectionChanged(l){this.userClubDonation=l}next(){this.nextButtonClicked=!0,this.changingSteps=!0;let l;switch(this.currentStep){case x.DONATION_SELECT:this.donationForm.valid?this.clubVolunteerOptionID?this.userClubDonation?this.userService.submitVolunteerRequest(this.programID,this.clubVolunteerOptionID,this.userClubDonation.userClubDonationOptions[0].clubDonationOptionValueID,this.userClubDonation.userClubDonationOptions[0].clubUserID).subscribe({next:()=>{this.router.navigateByUrl("/account/manage/requests")},error:()=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("There was a problem submitting your request.")}}):this.router.navigateByUrl("/dashboard"):(this.currentStep=x.DEMO_INFO,this.doneChangingSteps()):this.changingSteps=!1;break;case x.DEMO_INFO:this.email=this.demoForm.form.value.email,this.userClubDonation.email=this.email,this.userClubDonation.firstName=this.demoForm.form.value.firstName,this.userClubDonation.lastName=this.demoForm.form.value.lastName,this.userClubDonationSessionID?l=this.donationsService.updateDonationSession(this.userClubDonationSessionID,this.userClubDonation):l=this.donationsService.createDonationSession(this.userClubDonation).pipe(O(i=>{this.userClubDonationSessionID=i.userClubDonationSessionID})),l.pipe(F(this.unsubscribe$)).subscribe({next:()=>{this.metadata.userClubDonationSessionID=this.userClubDonationSessionID,this.formService.hideFormLoader(),this.registrationSectionID===j.VOLUNTEER_OPPORTUNITIES?this.submit(!1):(this.currentStep=x.PAYMENT,this.amount=this.donationForm.total,this.paymentData=[{sitePaymentTypeID:W.DONATION,amount:this.amount}],this.doneChangingSteps())},error:()=>{this.formService.hideFormLoader(),this.siteDataService.showSiteErrorAlert("There was a problem updating your donation data.")}});break;case x.PAYMENT:this.formService.hideFormLoader(),this.formService.clearFormErrorMessage(),this.submit();break}}back(){switch(this.formService.clearFormErrorMessage(),this.changingSteps=!0,this.currentStep){case x.DEMO_INFO:this.currentStep=x.DONATION_SELECT;break;case x.PAYMENT:this.demoForm.loading=!1,this.currentStep=x.DEMO_INFO;break}this.doneChangingSteps()}doneChangingSteps(){setTimeout(()=>{this.nextButtonClicked=!1,this.changingSteps=!1},0)}selectedDonationOptions(l){return this.paymentResult&&this.paymentResult.userClubDonation?this.paymentResult.userClubDonation.userClubDonationOptions.filter(i=>i.clubDonationOption.clubDonationOptionTypeID===l):null}submit(l=!0){this.formService.clearFormErrorMessage(),l&&this.paymentForm.isValid&&(this.user||this.captcha)?(this.donating=!0,this.userClubDonation.paymentTypeID=this.paymentForm.value.paymentType,this.donationsService.updateDonationSession(this.userClubDonationSessionID,this.userClubDonation).pipe(k(()=>{let i;return this.user?i=T({recaptchaInvalid:!1,recaptchaScoreFailed:!1}):i=this.donationsService.validateCaptcha(this.captcha),i}),k(i=>{if(i?.recaptchaScoreFailed||i?.recaptchaInvalid)return this.handleCaptchaFailure(i),this.doneChangingSteps(),this.donating=!1,T({result:null,goToConfirm:!1,captchaFail:!0});if(this.paymentForm.activePaymentVendor===xt.STRIPE)return this.paymentFormService.submitPaymentIntent(),T({result:null,goToConfirm:!1,captchaFail:!1});{let c=this.getPaymentDetails();return this.donationsService.completeDonationSession(this.userClubDonationSessionID,c).pipe(R(f=>({result:f,goToConfirm:!0,captchaFail:!1})))}}),F(this.unsubscribe$)).subscribe({next:i=>{i.goToConfirm&&(this.paymentResult=i.result,i.result?.paymentMadeSuccessfully?(this.currentStep=x.CONFIRMATION,this.trackDonationPurchase()):(this.paymentFormService.handleFailedPayment(this.formService,this.siteDataService,this.paymentResult),this.formService.hideFormLoader()),this.doneChangingSteps(),this.donating=!1)},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem submitting your donation"),this.doneChangingSteps(),this.donating=!1}})):l?(this.donating=!1,this.paymentForm.isValid||this.paymentForm.submitForm(
215),!this.user&&!this.captcha&&(this.showCaptchaError=!0)):this.donationsService.completeDonationSession(this.userClubDonationSessionID,{paymentTypeID:0},!1).pipe(R(i=>({result:i,goToConfirm:!0,captchaFail:!1})),F(this.unsubscribe$)).subscribe({next:i=>{i.goToConfirm&&(this.paymentResult=i.result,i.result?.requestHandledSuccessfully&&(this.currentStep=x.CONFIRMATION),this.doneChangingSteps(),this.donating=!1)},error:()=>{this.siteDataService.showSiteErrorAlert("There was a problem submitting your donation"),this.doneChangingSteps(),this.donating=!1}})}handleStripePaymentAttempt(l){let i="There was a problem submitting your donation";if(l.success){let c=this.paymentForm?.value;this.donationsService.completeDonationSessionWithPaymentIntent(this.userClubDonationSessionID,l.result.paymentIntent.id,c?.isInternational,c?.billingCountry).pipe(F(this.unsubscribe$)).subscribe({next:()=>{this.currentStep=x.CONFIRMATION,this.doneChangingSteps(),this.donating=!1,this.trackDonationPurchase()},error:()=>{this.siteDataService.showSiteErrorAlert(i),this.formService.showFormErrorMessage(i),this.error(null)}})}else this.donating=!1,this.error(null)}trackDonationPurchase(){this.analyticsService.makeSingleItemPurchase(`donation_session_${this.userClubDonationSessionID}`,this.amount,"Donation","Donation")}paymentTypeChanged(l){this.clubPaymentFee=l}getPaymentDetails(){return at(ot({},this.paymentForm.value),{email:this.email,firstName:this.demoForm.form.value.firstName,lastName:this.demoForm.form.value.lastName})}handleCaptchaFailure(l){l?.recaptchaScoreFailed?this.handleCaptchaScoreFailed():l?.recaptchaInvalid&&this.handleCaptchaInvalid()}handleCaptchaScoreFailed(){this.showDonateButton=!1,this.siteDataService.showSiteErrorAlert("There was a problem submitting your donation"),this.formService.showFormErrorMessage("There was a problem submitting your donation")}handleCaptchaInvalid(){this.recaptchaRef.reset(),this.captcha=null,this.siteDataService.showSiteErrorAlert("reCAPTCHA failed."),this.formService.showFormErrorMessage(`reCAPTCHA failed. Please check "I'm not a robot."`)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};o.\u0275fac=function(i){return new(i||o)(b(J),b(gt),b(X),b(bt),b(Tt),b(G),b(K),b(Ct),b(ht),b(ft))},o.\u0275cmp=N({type:o,selectors:[["ng-component"]],viewQuery:function(i,c){if(i&1&&ct(tt,5)(te,5)(ee,5)(ne,5),i&2){let f;$(f=B())&&(c.donationForm=f.first),$(f=B())&&(c.demoForm=f.first),$(f=B())&&(c.paymentForm=f.first),$(f=B())&&(c.recaptchaRef=f.first)}},standalone:!1,decls:13,vars:2,consts:[["donationsCard",""],["volunteerCard",""],["demoInfoCard",""],["donationOptionsForm",""],["demoForm",""],["paymentForm",""],["recaptcha",""],[1,"p-0","mt-3"],["data-testid","donate-step-options",1,"wrapper","card",3,"hidden"],[3,"donationSelectionChange","optionsNotFound","selectionRequired","clubVolunteerOptionID","registrationSectionID","submitted"],[1,"form-action"],[1,"right-buttons"],["data-testid","donate-step-basic-info",1,"wrapper","card",3,"hidden"],[1,"text-header-2","mb-3"],[1,"left-buttons"],[1,"btn","btn-lg","btn-naked","btn-icon-chevron-left","pl-0",3,"click","disabled"],["data-testid","donate-next",1,"btn","btn-primary","btn-lg","btn-icon-chevron-right-after",3,"click","disabled"],["data-testid","donate-step-payment",1,"container",3,"hidden"],[1,"row"],[1,"col-md-6"],[1,"card"],[4,"ngTemplateOutlet"],["data-testid","donate-step-confirmation",1,"wrapper",3,"hidden"],[1,"mt-3"],[1,"d-flex","align-items-center"],[1,"d-flex","justify-content-end","ml-auto"],[1,"btn","btn-lg","btn-naked","btn-icon-home",3,"routerLink"],[1,"sr-only"],["data-testid","donate-next",1,"btn","btn-primary","btn-lg",3,"click","disabled"],[1,"mr-1"],[3,"onCancel","onSubmit","entity","contentFieldsMode","fields","showCancelButton","showSubmitButton","horizontalForm","buttonsPosition"],["fieldName","firstName"],["fieldName","lastName"],["fieldName","email"],[1,"row","form-action","no-gutters"],[1,"col","left-buttons"],[1,"col","right-buttons"],[3,"paymentTypeChanged","stripePaymentAttempted","horizontalForm","clubID","includeHeader","paymentData","sitePaymentTypeID","paymentIntentMetadata","firstName","lastName","email"],[1,"mb-3"],["action","test-action",3,"resolved","error","siteKey"],[1,"form-error-message"],["data-testid","donate-submit",1,"btn","btn-primary","btn-lg",3,"click","disabled"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],["data-testid","donate-confirmation-number"],[3,"userClubDonation","renderAsCard"],["amountDueText","Amount Paid",3,"userClubDonation","renderAsCard","amount","clubPaymentFee","isNonProfit"],[1,"wrapper","card"],[1,"align-items-center"],[1,""],[3,"userClubDonation","renderAsCard","amount","clubPaymentFee","isNonProfit"],[1,"d-flex","align-items-center","text-medium"],[1,"d-flex","justify-content-end","ml-auto","fw-600"]],template:function(i,c){i&1&&(a(0,"div",7),t(1,`
216  `),d(2,Ee,94,30),d(3,Fe,19,2),r(),t(4,`
217
218`),E(5,Ne,2,1,"ng-template",null,0,H),t(7,`
219
220`),E(8,Pe,2,1,"ng-template",null,1,H),t(10,`
221
222`),E(11,Re,2,1,"ng-template",null,2,H)),i&2&&(s(2),u(!c.loading&&!c.optionsNotFound?2:-1),s(),u(!c.loading&&c.optionsNotFound?3:-1))},dependencies:[ut,Dt,St,pt,tt,Et,Ot,Pt,At,Z],styles:[".wrapper[_ngcontent-%COMP%]{max-width:700px;padding:30px;background:var(--color-white);color:var(--color-black-lt);position:relative;margin:60px auto}.brand[_ngcontent-%COMP%]{margin-top:-30px}.logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:300px;margin-top:-30px}"],data:{animation:[vt]}});let n=o;return n})();var et=(()=>{let o=class o{constructor(l,i,c,f){this.siteDataService=l,this.router=i,this.route=c,this.sessionService=f}canActivate(l,i){return this.handleAuthorization$()}canActivateChild(l,i){return this.handleAuthorization$()}handleAuthorization$(){return window.location.hostname.indexOf("testsprocketsports.com")>-1||!["sprocketsports.com","localhost"].some(i=>window.location.hostname.indexOf(i)>-1)?this.siteDataService.getPrivateClubDomain().pipe(O(i=>{window.location.href=`${i}/donate`}),R(()=>!1)):T(!0)}};o.\u0275fac=function(i){return new(i||o)(M(J),M(G),M(K),M(_t))}
222,o.\u0275prov=mt({token:o,factory:o.\u0275fac});let n=o;return n})();var kt=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=z({type:o}),o.\u0275inj=U({imports:[it.forChild([{path:"",component:Rt,canActivate:[et],children:[{path:"**",redirectTo:"error/not-found"}]}]),it]});let n=o;return n})();var li=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=z({type:o}),o.\u0275inj=U({providers:[X,et],imports:[yt,wt,kt,Ft,Nt]});let n=o;return n})();export{li 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.