1import{a as re}from"./chunk-QMAL25EO.js";import{a as ae,b as oe,c as se}from"./chunk-IPDMJRPJ.js";import{a as Z,c as X}from"./chunk-ZJS5HXJN.js";import{b as ee,e as te,g as T,h as ie}from"./chunk-3OUVEPIE.js";import{a as ne}from"./chunk-CF7EVTQX.js";import"./chunk-O7CPGF42.js";import"./chunk-BVCJLPAF.js";import"./chunk-PJH6NUZC.js";import"./chunk-AAIJDFRH.js";import"./chunk-ZHB5E4AR.js";import"./chunk-CACWWE4C.js";import"./chunk-TAONTFWY.js";import"./chunk-SQ2ZWZXU.js";import"./chunk-Z2Z57XXV.js";import"./chunk-LDUITLAM.js";import"./chunk-N2X7ME44.js";import"./chunk-4D45MVAF.js";import"./chunk-GTR5XB5J.js";import"./chunk-IMS2ZE7S.js";import"./chunk-GSRKDYAT.js";import"./chunk-I6GIQGKJ.js";import"./chunk-F6FQKYBN.js";import"./chunk-LAPGHTKZ.js";import{v as J}from"./chunk-C5EYPI63.js";import{o as G,x as Q}from"./chunk-EKAX7267.js";import{$c as S,Aa as I,Ac as a,Bc as o,Cc as h,Db as l,Gd as K,Ha as c,Ia as m,Ic as A,Ja as F,Jc as x,Md as b,Nc as _,Pc as r,Pd as D,Qd as p,Rd as z,Sb as $,Ua as f,Xa as N,Xb as U,Xc as H,Yc as Y,Zc as L,cd as d,dd as w,ec as j,ed as v,fd as W,qc as k,sc as g,uc as y,ud as O,wc as q,xb as B,xc as V,yb as E,yc as R,zc as u}from"./chunk-TGQWEB7T.js";import"./chunk-7GOIYQEF.js";var ce=["mediaPlayer"],de=t=>({$implicit:t}),me=(t,i)=>i.id;function ue(t,i){if(t&1){let e=x();a(0,"button",17),_("click",function(){c(e);let s=r();return m(s.edit.emit())}),h(1,"cs-icon",18),o()}t&2&&(l(),u("size",14))}function _e(t,i){if(t&1&&(a(0,"p",9),d(1),o()),t&2){let e=r();l(),w(e.subheading())}}function pe(t,i){if(t&1&&(a(0,"div",11),A(1,19),o()),t&2){let e=r(),n=L(19);l(),u("ngTemplateOutlet",n)("ngTemplateOutletContext",O(2,de,e.media()[0]))}}function Ce(t,i){if(t&1){let e=x();a(0,"button",28),_("click",function(){let s=c(e).$index,C=r(2);return m(C.idx.set(s))}),o()}if(t&2){let e=i.$index,n=r(2);S("is-active",e===n.safeIdx()),k("aria-selected",e===n.safeIdx())("aria-label","Slide "+(e+1))}}function ge(t,i){if(t&1){let e=x();a(0,"div",12)(1,"div",20),_("swipeLeft",function(){c(e);let s=r();return m(s.go(s.safeIdx()+1))})("swipeRight",function(){c(e);let s=r();return m(s.go(s.safeIdx()-1))}),A(2,19),a(3,"button",21),_("click",function(){c(e);let s=r();return m(s.go(s.safeIdx()-1))}),h(4,"cs-icon",22),o(),a(5,"button",23),_("click",function(){c(e);let s=r();return m(s.go(s.safeIdx()+1))}),h(6,"cs-icon",24),o(),a(7,"span",25),d(8),o()(),a(9,"div",26),V(10,Ce,1,4,"button",27,me),o()()}if(t&2){let e=r(),n=L(19);l(2),u("ngTemplateOutlet",n)("ngTemplateOutletContext",O(6,de,e.media()[e.safeIdx()])),l(2),u("size",20),l(2),u("size",20),l(2),W("",e.safeIdx()+1," / ",e.media().length),l(2),R(e.media())}}function ye(t,i){t&1&&(a(0,"aside",13)(1,"div",29),h(2,"span",30)(3,"span",31)(4,"span",31),a(5,"span",32),d(6,"Loading donation options\u2026"),o()()())}function be(t,i){if(t&1){let e=x();a(0,"button",39),_("click",function(){c(e);let s=r(3);return m(s.setupStripe.emit())}),d(1," Set up Stripe "),o()}}function he(t,i){t&1&&(a(0,"p",37),d(1," A club owner or administrator needs to connect it. "),o())}function xe(t,i){if(t&1&&(a(0,"h3",36),d(1," Connect Stripe to accept donations "),o(),a(2,"p",37),d(3," Your donation page is ready, but the club can\u2019t collect any money until Stripe is connected. Visitors currently see this section as unavailable. "),o(),g(4,be,2,0,"button",38)(5,he,2,0,"p",37)),t&2){let e=r(2);l(4),y(e.canSetupStripe()?4:5)}}function fe(t,i){t&1&&(a(0,"h3",36),d(1," Donations aren\u2019t available right now "),o(),a(2,"p",37),d(3," Online giving is being set up. Please check back soon \u2014 thank you for your support. "),o())}function ve(t,i){if(t&1&&(a(0,"aside",14)(1,"div",33)(2,"span",34),h(3,"cs-icon",35),o(),g(4,xe,6,1)(5,fe,4,0),o()()),t&2){let e=r();l(3),u("name",e.isAdmin()?"alert-triangle":"heart")("size",22),l(),y(e.isAdmin()?4:5)}}function De(t,i){if(t&1&&(a(0,"div",45)(1,"div",51),h(2,"cs-icon",52),a(3,"span"),d(4,"Receipt sent to "),a(5,"strong"),d(6),o()()()()),t&2){let e=r(2);l(2),u("size",14),l(4),w(e.receiptEmail())}}function Se(t,i){t&1&&(a(0,"p",46),d(1," A receipt is on its way to your email. "),o())}function Pe(t,i){if(t&1){let e=x();a(0,"aside",15)(1,"div",40)(2,"span",41),h(3,"cs-icon",42),o(),a(4,"h3",43),d(5),o(),a(6,"p",44),d(7," Your "),a(8,"strong"),d(9),o(),d(10),o(),g(11,De,7,2,"div",45)(12,Se,2,0,"p",46),a(13,"p",47),d(14," Keep this receipt for your records. Consult a tax professional regarding deductibility. "),o(),a(15,"div",48)(16,"button",49),_("click",function(){c(e);let s=r();return m(s.backHome.emit())}),d(17," Back to homepage "),o(),a(18,"button",50),_("click",function(){c(e);let s=r();return m(s.resetToAmount())}),d(19," Make another donation "),o()()()()}if(t&2){let e=r();
1l(3),u("size",30),l(2),v(" ",e.receiptFirstName()?"Thank you, "+e.receiptFirstName()+"!":"Thank you!"," "),l(4),w(e.fmt(e.paidAmount())),l(),v(" gift to ",e.clubName()," has been received \u2014 it makes a real difference. "),l(),y(e.receiptEmail()?11:12)}}function Ee(t,i){if(t&1){let e=x();a(0,"h3",36),d(1," Donations are open to members "),o(),a(2,"p",37),d(3),o(),a(4,"div",59)(5,"button",39),_("click",function(){c(e);let s=r(3);return m(s.authRequired.emit("donate"))}),d(6," Join the club "),o(),a(7,"button",60),_("click",function(){c(e);let s=r(3);return m(s.resetToAmount())}),d(8," Back "),o()()}if(t&2){let e=r(3);l(3),v(" Online giving is for club members right now. Join ",e.clubName()," or sign in, and you can support the club from here. Nothing has been charged. ")}}function ke(t,i){if(t&1){let e=x();a(0,"h3",36),d(1," We can\u2019t complete this donation "),o(),a(2,"p",37),d(3," Something on our side is stopping this gift from going through. Nothing has been charged. Please contact the club so they can take your donation directly. "),o(),a(4,"div",59)(5,"button",60),_("click",function(){c(e);let s=r(3);return m(s.resetToAmount())}),d(6," Back "),o()()}}function we(t,i){if(t&1&&(a(0,"div",57)(1,"span",34),h(2,"cs-icon",58),o(),g(3,Ee,9,1)(4,ke,7,0),o()),t&2){let e=r(2);l(2),u("size",22),l(),y(e.blockReason()==="membership"?3:4)}}function Me(t,i){if(t&1&&(a(0,"span",64),h(1,"cs-icon",42),a(2,"span"),d(3),o()()),t&2){let e=r(3);l(),u("size",12),l(2),v("Signed in as ",e.viewerName())}}function Ne(t,i){t&1&&(a(0,"span",69),d(1,"Enter a valid email address."),o())}function Te(t,i){if(t&1&&(a(0,"span",70),d(1),o()),t&2){let e=r(3);l(),v(" ",e.isSignedIn()&&e.viewerEmail()?"Using your account email \u2014 edit if you\u2019d like the receipt sent elsewhere.":"We\u2019ll email your donation receipt here."," ")}}function Ie(t,i){t&1&&(a(0,"p",71),d(1," Enter your name and a valid email to continue to payment. "),o())}function Ve(t,i){if(t&1){let e=x();a(0,"div",72)(1,"p"),d(2),o(),a(3,"button",60),_("click",function(){c(e);let s=r(3);return m(s.requestBootstrap(!0))}),d(4," Retry "),o()()}if(t&2){let e=r(3);l(2),v(" We couldn\u2019t start the payment. ",e.stripeErrorDetail()||"Please try again."," ")}}function Re(t,i){if(t&1){let e=x();a(0,"rs-saved-payment-methods",81),_("selectId",function(s){c(e);let C=r(4);return m(C.selectPaymentMethodID.emit(s))})("setDefaultId",function(s){c(e);let C=r(4);return m(C.setDefaultPaymentMethodID.emit(s))}),o()}if(t&2){let e=r(4);u("methods",e.savedPaymentMethods())("selectedId",e.selectedPaymentMethodID())("loading",e.savedMethodsLoading())("disabled",e.paying())("allowSetDefault",e.allowSetDefault())("settingDefaultId",e.settingDefaultId())}}function Ae(t,i){if(t&1&&(a(0,"p",82),d(1),o()),t&2){let e=r(4);S("csdn-pay__error-text--warn",e.payErrorTone()==="warn"),l(),v(" ",e.payError()," ")}}function Le(t,i){if(t&1){let e=x();g(0,Re,1,6,"rs-saved-payment-methods",78),a(1,"rs-checkout",79),_("canPay",function(s){c(e);let C=r(3);return m(C.cardReady.set(s))})("errored",function(s){c(e);let C=r(3);return m(C.onCheckoutError(s))}),o(),g(2,Ae,2,3,"p",80)}if(t&2){let e,n=r(3);y(n.savedMethodsLoading()||n.savedPaymentMethods().length>0?0:-1),l(),u("clientSecret",((e=n.checkoutSession())==null?null:e.clientSecret)??"")("stripeAccountId",n.stripeAccountId())("collapsed",n.usingSavedMethod()),l(),y(n.payError()?2:-1)}}function Oe(t,i){t&1&&(a(0,"div",73),h(1,"span",30)(2,"span",31),a(3,"span",32),d(4,"Preparing secure payment\u2026"),o()())}function ze(t,i){t&1&&h(0,"span",77)}function Fe(t,i){if(t&1){let e=x();a(0,"div",61)(1,"div",62)(2,"span",63),d(3,"Your details"),o(),g(4,Me,4,2,"span",64),o(),a(5,"label",65)(6,"span",66),d(7,"Your name"),o(),a(8,"input",67),_("input",function(s){c(e);let C=r(2);return m(C.name.set(s.target.value))})("blur",function(){c(e);let s=r(2);return m(s.onDetailsCommit())}),o()(),a(9,"label",65)(10,"span",66),d(11,"Email for your receipt"),o(),a(12,"input",68),_("input",function(s){c(e);let C=r(2);return m(C.email.set(s.target.value))})("blur",function(){c(e);let s=r(2);return s.emailTouched.set(!0),m(s.onDetailsCommit())}),o(),g(13,Ne,2,0,"span",69)(14,Te,2,1,"span",70),o()(),g(15,Ie,2,0,"p",71)(16,Ve,5,1,"div",72)(17,Le,3,5)(18,Oe,5,0,"div",73),a(19,"div",74)(20,"button",75),_("click",function(){c(e);let s=r(2);return m(s.resetToAmount())}),h(21,"cs-icon",22),a(22,"span"),d(23,"Back"),o()(),a(24,"button",76),_("click",function(){c(e);let s=r(2);return m(s.onPay())}),g(25,ze,1,0,"span",77),d(26),o()()}if(t&2){let e,n=r(2);l(4),y(n.isSignedIn()&&n.viewerName()?4:-1),l(4),u("value",n.name()),l(4),S("is-error",n.emailTouched()&&!n.emailOk()),u("value",n.email()
1),l(),y(n.emailTouched()&&!n.emailOk()?13:14),l(2),y(n.detailsValid()?n.stripeError()?16:(e=n.checkoutSession())!=null&&e.clientSecret?17:18:15),l(5),u("disabled",n.paying()),l(),u("size",15),l(3),S("is-saving",n.paying()),u("disabled",n.paymentLocked()?n.paying():!n.canPay()),k("aria-busy",n.paying()),l(),y(n.paying()?25:-1),l(),v(" ",n.paying()?"Processing\u2026":n.paymentLocked()?"Finish payment":"Pay "+n.fmt(n.amount())," ")}}function Be(t,i){if(t&1&&(a(0,"aside",16)(1,"div",53)(2,"span",54),d(3,"One-time donation"),o(),a(4,"div",55)(5,"span"),d(6,"Your gift"),o(),a(7,"strong"),d(8),o()()(),a(9,"div",56),g(10,we,5,2,"div",57)(11,Fe,27,15),o()()),t&2){let e=r();l(8),w(e.fmt(e.amount())),l(2),y(e.settlementBlocked()?10:11)}}function $e(t,i){if(t&1){let e=x();a(0,"button",91),_("click",function(){let s=c(e).$implicit,C=r(2);return m(C.pickAmount(s))}),d(1),o()}if(t&2){let e=i.$implicit,n=r(2);S("is-active",n.sel()===e),k("aria-pressed",n.sel()===e),l(),v(" ",n.fmt(e)," ")}}function Ue(t,i){if(t&1){let e=x();a(0,"button",92),_("click",function(){c(e);let s=r(2);return m(s.pickCustom())}),d(1," Other "),o()}if(t&2){let e=r(2);S("is-active",e.sel()==="custom"),k("aria-pressed",e.sel()==="custom")}}function je(t,i){if(t&1&&(a(0,"span",97),d(1),o()),t&2){let e=r(3);S("is-error",e.customNum()>0&&e.customNum()<e.customMin()),l(),v("Minimum ",e.fmt(e.customMin()))}}function qe(t,i){if(t&1){let e=x();a(0,"div",87)(1,"div",93)(2,"span",94),d(3,"$"),o(),a(4,"input",95),_("input",function(s){c(e);let C=r(2);return m(C.custom.set(C.parseWhole(s.target.value)))}),o()(),g(5,je,2,3,"span",96),o()}if(t&2){let e=r(2);l(4),u("value",e.customDisplay()),l(),y(e.customMin()?5:-1)}}
1function He(t,i){if(t&1){let e=x();a(0,"aside",16)(1,"div",53)(2,"span",54),d(3,"One-time donation"),o(),a(4,"h3",83),d(5,"Choose an amount"),o()(),a(6,"div",84),V(7,$e,2,4,"button",85,q),g(9,Ue,2,3,"button",86),o(),g(10,qe,6,2,"div",87),a(11,"button",88),_("click",function(){c(e);let s=r();return m(s.goToPayment())}),d(12),o(),a(13,"p",89),h(14,"cs-icon",90),a(15,"span"),d(16,"Secure checkout powered by Stripe"),o()()()}if(t&2){let e=r();l(7),R(e.amounts()),l(2),y(e.allowCustom()?9:-1),l(),y(e.allowCustom()&&e.sel()==="custom"?10:-1),l(),u("disabled",!e.canContinue()),l(),v(" ",e.canContinue()?"Donate "+e.fmt(e.amount()):"Donate"," "),l(2),u("size",12)}}function Ye(t,i){if(t&1&&h(0,"rs-mux-video",100,1),t&2){let e=r(2).$implicit;u("source",e.muxPlaybackID)("poster",e.posterUrl||null)("autoplay",!0)}}function We(t,i){if(t&1&&h(0,"video",101),t&2){let e=r(2).$implicit;u("src",e.url,E)("poster",e.posterUrl||"")}}function Ke(t,i){if(t&1&&h(0,"img",102),t&2){let e=r(3).$implicit;u("src",e.posterUrl,E)("alt",e.name||"")}}function Ge(t,i){if(t&1&&h(0,"video",103),t&2){let e=r(3).$implicit;u("src",e.url,E)}}function Qe(t,i){if(t&1){let e=x();g(0,Ke,1,2,"img",102)(1,Ge,1,1,"video",103),a(2,"button",104),_("click",function(){c(e);let s=r(2).$implicit,C=r();return m(C.onPlayMedia(s.id))}),F(),a(3,"svg",105),h(4,"path",106),o()()}if(t&2){let e=r(2).$implicit;y(e.posterUrl?0:1)}}function Je(t,i){if(t&1&&(a(0,"div",98),g(1,Ye,2,3,"rs-mux-video",100)(2,We,1,2,"video",101)(3,Qe,5,1),o()),t&2){let e=r().$implicit,n=r();l(),y(n.playingId()===e.id&&e.muxPlaybackID?1:n.playingId()===e.id?2:3)}}function Ze(t,i){if(t&1&&(a(0,"div",99),h(1,"img",102),o()),t&2){let e=r().$implicit;l(),u("src",e.url,E)("alt",e.name||"")}}function Xe(t,i){if(t&1&&g(0,Je,4,1,"div",98)(1,Ze,2,2,"div",99),t&2){let e=i.$implicit;y(e.kind==="video"?0:1)}}var M={heading:ae,subheading:oe,description:se,amounts:[25,50,100,250],allowCustom:!0,customMin:5};function et(t){let i=Number(t);return"$"+(Number.isFinite(i)?i:0).toLocaleString("en-US",{maximumFractionDigits:0})}function tt(t){let e=String(t??"").replace(/[^\d.]/g,"").match(/^\d+/);return e?String(Math.min(parseInt(e[0],10),1e6)):""}var P=class P{constructor(){this.sanitizer=I(J);this.club=p(null);this.clubId=p(0);this.isAdmin=p(!1);this.canSetupStripe=p(!0);this.content=p(null);this.stripeConnected=p(!1);this.chargesReady=p(null);this.canSettle=p(null);this.isMember=p(!1);this.isSignedIn=p(!1);this.viewerName=p("");this.viewerEmail=p("");this.checkoutSession=p(null);this.savedPaymentMethods=p([]);this.savedMethodsLoading=p(!1);this.selectedPaymentMethodID=p(null);this.allowSetDefault=p(!1);this.settingDefaultId=p(null);this.stripeAccountId=p("");this.stripeError=p(!1);this.stripeErrorDetail=p(null);this.paymentResult=p(null);this.edit=D();this.setupStripe=D();this.backHome=D();this.paymentStepEnter=D();this.pay=D();this.paymentLocked=p(!1);this.finishPayment=D();this.stripeRetry=D();this.authRequired=D();this.selectPaymentMethodID=D();this.setDefaultPaymentMethodID=D();this.parseWhole=tt;this.fmt=et;this.step=f("amount");this.sel=f(0);this.custom=f("");this.idx=f(0);this.playingId=f(null);this.name=f("");this.email=f("");this.emailTouched=f(!1);this.cardReady=f(!1);this.usingSavedMethod=b(()=>this.selectedPaymentMethodID()!=null&&this.savedPaymentMethods().length>0);this.payError=f("");this.payErrorTone=f("error");this.checkoutRef=z(T);this.paying=f(!1);this.paidAmount=f(0);this.receiptEmail=f("");this.receiptName=f("");this.lastBootstrapKey="";this.appRef=I(j);this.mediaPlayer=z("mediaPlayer");this.heading=b(()=>(this.content()?.heading||"").trim()||M.heading);this.subheading=b(()=>(this.content()?.subheading||"").trim()||M.subheading);this.description=b(()=>(this.content()?.description||"").trim()||M.description);this.media=b(()=>this.content()?.media??[]);this.amounts=b(()=>{let i=[...new Set((this.content()?.amounts??M.amounts).map(Number).filter(e=>e>0))];return i.length?i:M.amounts.slice()});this.allowCustom=b(()=>this.content()?.allowCustom!==!1);this.customMin=b(()=>{let i=this.content()?.customMin;return i?Number(i):0});this.clubName=b(()=>this.club()?.name||"the club");this.customNum=b(()=>this.custom()===""?0:Number(this.custom()));this.customDisplay=b(()=>
1this.custom()===""?"":Number(this.custom()).toLocaleString("en-US"));this.amount=b(()=>this.sel()==="custom"?this.customNum():Number(this.sel()));this.minOk=b(()=>{if(!this.allowCustom()||this.sel()!=="custom")return!0;let i=this.customMin();return this.customNum()>0&&(!i||this.customNum()>=i)});this.canContinue=b(()=>this.amount()>0&&this.minOk());this.safeIdx=b(()=>Math.min(this.idx(),Math.max(0,this.media().length-1)));this.emailOk=b(()=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.email().trim()));this.detailsValid=b(()=>this.emailOk()&&this.name().trim().length>0);this.receiptFirstName=b(()=>{let i=this.receiptName().trim();return i?i.split(/\s+/)[0]:""});this.canPay=b(()=>this.detailsValid()&&(this.cardReady()||this.usingSavedMethod())&&!this.paying());this.blockReason=b(()=>this.isMember()?this.canSettle()===!1?"settlement":"none":"membership");this.settlementBlocked=b(()=>this.blockReason()!=="none");N(()=>{let i=this.amounts();this.sel()===0&&this.sel.set(i.length?i[0]:"custom")}),N(()=>{this.isSignedIn()&&(!this.name()&&this.viewerName()&&this.name.set(this.viewerName()),!this.email()&&this.viewerEmail()&&this.email.set(this.viewerEmail()))}),N(()=>{let i=this.paymentResult();i&&(i.status==="success"?(this.paidAmount.set(i.amount),this.receiptEmail.set(i.email),this.receiptName.set(i.name),this.paying.set(!1),this.step.set("success")):i.status==="error"&&(this.paying.set(!1),this.payError.set(i.message),this.payErrorTone.set(i.tone??"error")))})}pickAmount(i){this.sel.set(i)}pickCustom(){this.sel.set("custom")}goToPayment(){this.canContinue()&&(this.step.set("payment"),this.detailsValid()&&this.requestBootstrap())}go(i){let e=this.media().length;e&&(this.idx.set((i%e+e)%e),this.playingId.set(null))}requestBootstrap(i=!1){if(!this.detailsValid()||this.settlementBlocked())return;let e=String(this.amount());if(!i&&e===this.lastBootstrapKey)return;this.lastBootstrapKey=e,this.cardReady.set(!1),this.payError.set("");let n=this.name().trim().split(/\s+/),s=n[0]??"",C=n.slice(1).join(" ");i&&this.stripeRetry.emit(),this.paymentStepEnter.emit({amount:this.amount(),firstName:s,lastName:C,email:this.email().trim()})}onDetailsCommit(){this.step()==="payment"&&this.detailsValid()&&this.requestBootstrap()}onCheckoutError(i){this.payError.set(i),this.cardReady.set(!1)}async onPay(){if(this.paymentLocked()){this.paying()||(this.paying.set(!0),this.payError.set(""),this.finishPayment.emit());return}let i=this.checkoutRef();if(!this.canPay()||!i)return;this.payError.set(""),this.paying.set(!0);let e=this.usingSavedMethod()?this.selectedPaymentMethodID():null,n=this.checkoutSession()?.stripeCheckoutSessionID||"",s=i.sessionStatus()==="complete"?{ok:!0,kind:"confirmed",sessionId:n}:await i.confirm(e?{paymentMethod:e}:void 0);if(s.kind==="not_sent"){this.paying.set(!1),this.payError.set("The card form isn't ready yet \u2014 give it a moment and try again.");return}if(s.kind==="declined"){this.paying.set(!1),console.warn("[donate] confirm declined:",s.message),this.payError.set(te(s.declineCode,ee.declined));return}s.kind==="uncertain"&&console.warn("[donate] confirm uncertain \u2014 settling:",s.message),this.pay.emit({amount:this.amount(),name:this.name().trim(),email:this.email().trim(),checkoutSessionID:s.sessionId||n,confirm:s.kind==="confirmed"?"confirmed":"uncertain"})}resetToAmount(){this.step.set("amount"),this.cardReady.set(!1),this.payError.set(""),this.paying.set(!1),this.lastBootstrapKey=""}onPlayMedia(i){this.playingId.set(i),Z(this.appRef,()=>this.mediaPlayer())}};P.\u0275fac=function(e){return new(e||P)},P.\u0275cmp=$({type:P,selectors:[["cs-donate-page"]],viewQuery:function(e,n){e&1&&H(n.checkoutRef,T,5)(n.mediaPlayer,ce,5),e&2&&Y(2)},inputs:{club:[1,"club"],clubId:[1,"clubId"],isAdmin:[1,"isAdmin"],canSetupStripe:[1,"canSetupStripe"],content:[1,"content"],stripeConnected:[1,"stripeConnected"],chargesReady:[1,"chargesReady"],canSettle:[1,"canSettle"],isMember:[1,"isMember"],isSignedIn:[1,"isSignedIn"],viewerName:[1,"viewerName"],viewerEmail:[1,"viewerEmail"],checkoutSession:[1,"checkoutSession"],savedPaymentMethods:[1,"savedPaymentMethods"],savedMethodsLoading:[1,"savedMethodsLoading"],selectedPaymentMethodID:[1,"selectedPaymentMethodID"],allowSetDefault:[1,"allowSetDefault"],settingDefaultId:[1,"settingDefaultId"],stripeAccountId:[1,"stripeAccountId"],stripeError:[1,"stripeError"],stripeErrorDetail:[1,"stripeErrorDetail"],paymentResult:[1,"paymentResult"],paymentLocked:[1,"paymentLocked"]},outputs:{edit:"edit",setupStripe:"setupStripe",backHome:"backHome",paymentStepEnter:"paymentStepEnter",pay:"pay",finishPayment:"finishPayment",stripeRetry:"stripeRetry",authRequired:"authRequired",selectPaymentMethodID:"selectPaymentMethodID",setDefaultPaymentMethodID:"setDefaultPaymentMethodID"},decls:20,vars:6,consts:[["frame",""],["mediaPlayer",""],["aria-label","Donate",1,"csdn","cs-container"],[1,"csdn-grid"],[1,"csdn-story"],[1,"csdn-story__head"],[1,"csdn-story__eyebrow"],[1,"csdn-story__title"],["type","button","aria-label","Edit donation settings",1,"cs-admin-edit","cs-admin-edit--icon","csdn-story__edit"],[1,"csdn-story__sub"],[1,"csdn-story__body",3,"innerHTML"],[1,"csdn-media","csdn-media--single"],["aria-roledescription","carousel",1,"csdn-media","csdn-media--carousel"],[1,"csdn-panel","csdn-panel--loading"],[1,"csdn-panel","csdn-panel--gated"],[1,"csdn-panel","csdn-panel--success"],[1,"csdn-panel"],["type","button","aria-label","Edit donation settings",1,"cs-admin-edit","cs-admin-edit--icon","csdn-story__edit",3,"click"],["name","edit",3,"size"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["csSwipe","",1,"csdn-media__stage",3,"swipeLeft","swipeRight"],["type","button","aria-label","Previous",1,"csdn-media__nav","csdn-media__nav--prev",3,"click"],["name","chevron-left",3,"size"],["type","button","aria-label","Next",1,"csdn-media__nav","csdn-media__nav--next",3,"click"],["name","chevron-right",3,"size"],[1,"csdn-media__counter"],["role","tablist","aria-label","Choose slide",1,"csdn-media__dots"],["type","button","role","tab",1,"csdn-media__dot",3,"is-active"],["type","button","role","tab",1,"csdn-media__dot",3,"click"],["role","status","aria-live","polite","aria-busy","true","aria-label","Loading donation options",1,"jcf-pay-skel"],[1,"jcf-pay-skel__bar","jcf-pay-skel__bar--label"],[1,"jcf-pay-skel__bar","jcf-pay-skel__bar--field"],[1,"jcf-pay-skel__cap"],[1,"csdn-gate"],["aria-hidden","true",1,"csdn-gate__icon"],[3,"name","size"],[1,"csdn-gate__title"],[1,"csdn-gate__text"],["type","button",1,"cs-btn","cs-btn--primary"],["type","button",1,"cs-btn","cs-btn--primary",3,"click"],[1,"csdn-success"],["aria-hidden","true",1,"csdn-success__ring"],["name","check",3,"size"],[1,"csdn-success__title"],[1,"csdn-success__text"],[1,"csdn-success__receiptcard"],[1,"csdn-success__receipt"],[1,"csdn-success__fine"],[1,"csdn-success__actions"],["type","button",1,"cs-btn","cs-btn--primary","csdn-success__btn",3,"click"],["type","button",1,"cs-btn","cs-btn--ghost","csdn-success__btn",3,"click"],[1,"csdn-success__receiptrow"],["name","mail",3,"size"],[1,"csdn-panel__head"],[1,"csdn-panel__eyebrow"],[1,"csdn-panel__amountline"],[1,"csdn-pay"],[1,"csdn-gate","csdn-gate--pay"],["name","heart",3,"size"],[1,"csdn-gate__actions"],["type","button",1,"cs-btn","cs-btn--ghost",3,"click"],[1,"csdn-contact"],[1,"csdn-contact__head"],[1,"csdn-contact__title"],[1,"csdn-contact__chip"],[1,"csdn-contact__field"],[1,"csdn-contact__label"],["placeholder","Full name","autocomplete","name","aria-label","Your name",1,"csdn-contact__input",3,"input","blur","value"],["type","email","autocomplete","email","placeholder","[email protected]","aria-label","Email for your receipt",1,"csdn-contact__input",3,"input","blur","value"],[1,"csdn-contact__err"],[1,"csdn-contact__hint"],[1,"csdn-pay__hint"],["role","alert",1,"csdn-pay__error"],["role","status","aria-live","polite","aria-busy","true","aria-label","Preparing secure payment",1,"jcf-pay-skel"],[1,"csdn-pay__actions"],["type","button",1,"csdn-linkbtn",3,"click","disabled"],["type","button",1,"cs-btn","cs-btn--primary","csdn-paybtn",3,"click","disabled"],["aria-hidden","true",1,"save-spinner"],[1,"csdn-pay__saved",3,"methods","selectedId","loading","disabled","allowSetDefault","settingDefaultId"],["enableRedisplay","never",3,"canPay","errored","clientSecret","stripeAccountId","collapsed"],["role","alert",1,"csdn-pay__error-text",3,"csdn-pay__error-text--warn"],[1,"csdn-pay__saved",3,"selectId","setDefaultId","methods","selectedId","loading","disabled","allowSetDefault","settingDefaultId"],["role","alert",1,"csdn-pay__error-text"],[1,"csdn-panel__title"],[1,"csdn-amounts"],["type","button",1,"csdn-chip",3,"is-active"],["type","button",1,"csdn-chip","csdn-chip--other",3,"is-active"],[1,"csdn-custom"],["type","button",1,"cs-btn","cs-btn--primary","csdn-continue",3,"click","disabled"],[1,"csdn-panel__assure"],["name","lock",3,"size"],["type","button",1,"csdn-chip",3,"click"],["type","button",1,"csdn-chip","csdn-chip--other",3,"click"],[1,"csdn-custom__field"],["aria-hidden","true",1,"csdn-custom__sym"],["type","text","inputmode","decimal","autocomplete","off","placeholder","0","aria-label","Custom donation amount",1,"csdn-custom__input",3,"input","value"],[1,"csdn-custom__hint",3,"is-error"],[1,"csdn-custom__hint"],[1,"csdn-media__frame","csdn-media__frame--video"],[1,"csdn-media__frame"],["title","Video player",1,"csdn-media__el",3,"source","poster","autoplay"],["controls","","autoplay","","playsinline","",1,"csdn-media__el",3,"src","poster"],["loading","lazy",1,"csdn-media__el",3,"src","alt"],["preload","metadata","playsinline","",1,"csdn-media__el",3,"src"],["type","button","aria-label","Play video",1,"csf-detail__play",3,"click"],["width","32","height","32","viewBox","0 0 24 24","fill","currentColor","aria-hidden","true"],["d","M8 5v14l11-7L8 5Z"]],template:function(e,n){e&1&&(a(0,"section",2)(1,"div",3)(2,"div",4)(3,"header",5)(4,"span",6),d(5,"Donate"),o(),a(6,"h1",7),d(7
1),g(8,ue,2,1,"button",8),o(),g(9,_e,2,1,"p",9),o(),h(10,"div",10),g(11,pe,2,4,"div",11)(12,ge,12,8,"div",12),o(),g(13,ye,7,0,"aside",13)(14,ve,6,3,"aside",14)(15,Pe,20,5,"aside",15)(16,Be,12,2,"aside",16)(17,He,17,5,"aside",16),o()(),U(18,Xe,2,1,"ng-template",null,0,K)),e&2&&(l(7),v(" ",n.heading()," "),l(),y(n.isAdmin()?8:-1),l(),y(n.subheading()?9:-1),l(),u("innerHTML",n.description(),B),l(),y(n.media().length===1?11:n.media().length>1?12:-1),l(2),y(!n.stripeConnected()&&n.chargesReady()===null?13:!n.stripeConnected()&&n.chargesReady()===!1?14:n.step()==="success"?15:n.step()==="payment"?16:17))},dependencies:[Q,G,ne,re,T,ie,X],encapsulation:2,changeDetection:0});var le=P;export{le as CsDonatePageComponent};
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.