1import{a as ze}from"./chunk-BROSYERN.js";import{g as qt}from"./chunk-Z52L74DH.js";import{$b as Ye,Be as Bt,D as ot,E as lt,Hd as Oe,Hg as Lt,Kb as Mt,Mb as Re,Ob as mt,Qc as Ft,Qd as kt,Td as Vt,Wc as Ne,d as Rt,ja as D,k as Nt,ka as me,kd as $e,kh as Ke,na as Ot,ra as He,ta as we,ua as Ge,vd as wt,zd as Ut}from"./chunk-X5J6QTCG.js";import{$ as Se,$a as u,Ac as ye,C as Ve,Db as de,E as ae,Fa as m,Fb as Z,H as Pe,Ha as q,Ib as s,Jb as st,Ka as C,Kb as le,Lb as at,M as f,Ma as N,Na as Te,Oa as qe,Sa as X,Sc as k,T as _,U as L,Vc as Dt,W as z,Xa as gt,_ as ne,aa as Be,ad as V,ba as F,bb as h,bd as rt,cc as ue,cd as At,d as te,db as pe,di as Qe,e as it,eb as ie,fa as E,fb as se,fi as je,ga as b,gb as I,hb as o,hd as fe,ib as l,j as y,jb as g,k as A,lc as he,lh as Y,ma as c,mb as vt,mc as Ee,mh as De,na as It,nb as Pt,nc as St,ob as Et,pb as M,pj as Ae,q as K,qb as T,qc as be,ra as R,sb as S,tb as p,u as oe,ub as bt,vb as xt,wa as Le,wb as j,xb as O,yb as v,z as ke,zb as P,zc as Tt}from"./chunk-SMW7PHYX.js";import{a as Q,b as ve,j as x}from"./chunk-BMIYOSOG.js";var Ce=(()=>{let a=class a{constructor(t){this.webAPI=t,this.publicBaseUrl="public/stripe",this.privateBaseUrl="private/stripe",this.elementsAppearance={disableAnimations:!0,labels:"above",rules:{".Input":{boxShadow:"none",color:"rgb(0, 0, 0)",fontSize:"16px",fontWeight:"400"}},variables:{fontFamily:'"Gotham SSm A", "Gotham SSm B", "Montserrat", Roboto, Helvetica, Arial, sans-serif',colorText:"rgb(89, 92, 96)",borderRadius:"4px",focusBoxShadow:"none"}}}getConfig(){return this.webAPI.getData(`${this.publicBaseUrl}/config`)}createPaymentIntent(t){switch(t.metadata.sitePaymentTypeID){case me.DONATION:return t.metadata.userClubDonationSessionID?this.webAPI.postData(`public/donations/sessions/${t.metadata.userClubDonationSessionID}/payment-intents`,t):this.webAPI.postData(`user-club-donations/${t.metadata.userClubDonationID}/payment-intents`,t);case me.INVOICE:return this.webAPI.postData(`invoices/${t.metadata.fullInvoiceID}/payment-intents`,t);case me.TICKET:return this.webAPI.postData("public/ticket/payment-intents",t);default:return this.webAPI.postData("public/payments/payment-intents",t)}}createSetupIntent(t,i){let r=new fe;return i&&(r=r.append("clubStripeConnectedAccountID",i.toString())),this.webAPI.postData("payments/v2/setup-intents",t,r)}createRegistrationSetupIntent(t,i,r){return t?this.webAPI.postData(`players/${t}/player-registrations/${i}/setup-intents`,r):this.webAPI.postData(`team-registrations/${i}/setup-intents`,r)}getRegistrationSetupIntent(t,i,r){let d=new fe;return d=d.append("setupIntentID",r),t?this.webAPI.getData(`players/${t}/player-registrations/${i}/setup-intents`,d):this.webAPI.getData(`team-registrations/${i}/setup-intents`,d)}updatePaymentIntentSavePaymentInfo(t,i){return this.webAPI.putData(`${this.privateBaseUrl}/payment-intents/${t}/save-payment-info`,i)}cancelPaymentIntent(t){return this.webAPI.getData(`${this.publicBaseUrl}/payment-intents/${t}/cancel`)}getCustomerID(t){let i=new fe;return t&&(i=i.append("clubStripeConnectedAccountID",t.toString())),this.webAPI.getData(`${this.privateBaseUrl}/customer`,i)}getStripeAccountSession(){return this.webAPI.getData(`${this.privateBaseUrl}/default-account-session`)}getStripePaymentDetailsAccountSession(t){let i=new fe;return i=i.append("clubStripeConnectedAccountID",t.toString()),this.webAPI.getData(`${this.privateBaseUrl}/payment-details-account-session`,i)}};a.\u0275fac=function(i){return new(i||a)(F(je))},a.\u0275prov=ne({token:a,factory:a.\u0275fac});let n=a;return n})();var H=["stripeElementRef"];function en(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function tn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function nn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function sn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function an(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function rn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function on(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function ln(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function mn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function cn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function pn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function dn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function un(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}function hn(n,a){if(n&1&&M(0,2),n&2){let e=p();I("ngTemplateOutlet",e.loadingTemplate)}}var $=(()=>{class n{templateRef;constructor(e){this.templateRef=e}static \u0275fac=function(t){return new(t||n)(C(q))};static \u0275dir=qe({type:n,selectors:[["","ngxStripeLoadingTemplate",""]]})}return n}
1)(),pt=new Be("Stripe Publishable Key"),dt=new Be("Stripe Options"),ut=new Be("NGX_STRIPE_VERSION"),Ue=class{version;loader;window;key;options;stripe$=new it(void 0);stripe=this.stripe$.asObservable().pipe(ke(a=>!!a));constructor(a,e,t,i,r){this.version=a,this.loader=e,this.window=t,this.key=i,this.options=r,this.loader.asStream().pipe(ke(d=>d.loaded===!0),f(),K(()=>this.window.getNativeWindow().Stripe)).subscribe(d=>{let U=this.options?d(this.key,this.options):d(this.key);U.registerAppInfo(this.getNgxStripeAppInfo(this.version)),this.stripe$.next(U)})}getInstance(){return this.stripe$.getValue()}elements(a){return this.stripe.pipe(K(e=>e.elements(a)),f())}confirmPayment(a){return this.stripe.pipe(_(e=>y(e.confirmPayment(a))),f())}confirmAcssDebitPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmAcssDebitPayment(a,e,t))),f())}confirmUsBankAccountPayment(a,e){return this.stripe.pipe(_(t=>y(t.confirmUsBankAccountPayment(a,e))),f())}confirmAlipayPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmAlipayPayment(a,e,t))),f())}confirmAuBecsDebitPayment(a,e){return this.stripe.pipe(_(t=>y(t.confirmAuBecsDebitPayment(a,e))),f())}confirmBancontactPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmBancontactPayment(a,e,t))),f())}confirmBilliePayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmBilliePayment(a,e,t))),f())}confirmBlikPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmBlikPayment(a,e,t))),f())}confirmBoletoPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmBoletoPayment(a,e,t))),f())}confirmCardPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmCardPayment(a,e,t))),f())}confirmCashappPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmCashappPayment(a,e,t))),f())}confirmCustomerBalancePayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmCustomerBalancePayment(a,e,t))),f())}confirmEpsPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmEpsPayment(a,e,t))),f())}confirmFpxPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmFpxPayment(a,e,t))),f())}confirmGiropayPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmGiropayPayment(a,e,t))),f())}confirmGrabPayPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmGrabPayPayment(a,e,t))),f())}confirmIdealPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmIdealPayment(a,e,t))),f())}confirmKlarnaPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmKlarnaPayment(a,e,t))),f())}confirmKonbiniPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmKonbiniPayment(a,e,t))),f())}confirmMobilepayPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmMobilepayPayment(a,e,t))),f())}confirmMultibancoPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmMultibancoPayment(a,e,t))),f())}confirmOxxoPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmOxxoPayment(a,e,t))),f())}confirmP24Payment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmP24Payment(a,e,t))),f())}confirmPayNowPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmPayNowPayment(a,e,t))),f())}confirmPayPalPayment(a,e){return this.stripe.pipe(_(t=>y(t.confirmPayPalPayment(a,e))),f())}confirmPixPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmPixPayment(a,e,t))),f())}confirmPromptPayPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmPromptPayPayment(a,e,t))),f())}confirmSepaDebitPayment(a,e){return this.stripe.pipe(_(t=>y(t.confirmSepaDebitPayment(a,e))),f())}confirmSofortPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmSofortPayment(a,e,t))),f())}confirmTwintPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmTwintPayment(a,e,t))),f())}confirmWechatPayPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmWechatPayPayment(a,e,t))),f())}handleCardAction(a){return this.stripe.pipe(_(e=>y(e.handleCardAction(a))),f())}handleNextAction(a){return this.stripe.pipe(_(e=>y(e.handleNextAction(a))),f())}verifyMicrodepositsForPayment(a,e){return this.stripe.pipe(_(t=>y(t.verifyMicrodepositsForPayment(a,e))),f())}createRadarSession(){return this.stripe.pipe(_(a=>y(a.createRadarSession())),f())}collectBankAccountForPayment(a){return this.stripe.pipe(_(e=>y(e.collectBankAccountForPayment(a))),f())}createPaymentMethod(a){return this.stripe.pipe(_(e=>y(e.createPaymentMethod(a))),f())}createConfirmationToken(a){return this.stripe.pipe(_(e=>y(e.createConfirmationToken(a))),f())}retrievePaymentIntent(a){return this.stripe.pipe(_(e=>y(e.retrievePaymentIntent(a))),f())}confirmSetup(a){return this.stripe.pipe(_(e=>y(e.confirmSetup(a))),f())}confirmAcssDebitSetup(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmAcssDebitSetup(a,e,t))),f())}confirmUsBankAccountSetup(a,e){return this.stripe.pipe(_(t=>y(t.confirmUsBankAccountSetup(a,e))),f())}confirmAuBecsDebitSetup(a,e){return this.stripe.pipe(_(t=>y(t.confirmAuBecsDebitSetup(a,e))),f())}confirmBacsDebitSetup(a,e){return this.stripe.pipe(_(t=>y(t.confirmBacsDebitSetup(a,e))),f())}confirmBancontactSetup(a,e){return this.stripe.pipe(_(t=>y(t.confirmBancontactSetup(a,e))),f())}confirmCardSetup(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmCardSetup(a,e,t))),f())}confirmCashappSetup(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmCashappSetup(a,e,t))),f())}confirmIdealSetup(a,e){return this.stripe.pipe(_(t=>y(t.confirmIdealSetup(a,e))),f())}confirmPayPalSetup(a,e){return this.stripe.pipe(_(t=>y(t.confirmPayPalSetup(a,e))),f())}confirmSepaDebitSetup(a,e){return this.stripe.pipe(_(t=>y(t.confirmSepaDebitSetup(a,e))),f())}confirmSofortSetup(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmSofortSetup(a,e,t))),f())}confirmAffirmPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmAffirmPayment(a,e,t))),f())}confirmAfterpayClearpayPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmAfterpayClearpayPayment(a,e,t))),f())}verifyMicrodepositsForSetup(a,e){return this.stripe.pipe(_(t=>y(t.verifyMicrodepositsForSetup(a,e))),f())}collectBankAccountForSetup(a){return this.stripe.pipe(_(e=>y(e.collectBankAccountForSetup(a))),f())}retrieveSetupIntent(a){return this.stripe.pipe(_(e=>y(e.retrieveSetupIntent(a))),f())}processOrder(a){return this.stripe.pipe(_(e=>y(e.processOrder(a))),f())}retrieveOrder(a){return this.stripe.pipe(_(e=>y(e.retrieveOrder(a))),f())}paymentRequest(a){return this.getInstance().paymentRequest(a)}createToken(a,e){return this.stripe.pipe(_(t=>y(t.createToken(a,e))),f())}createSource(a,e){return this.stripe.pipe(_(t=>y(t.createSource(a,e))),f())}retrieveSource(a){return this.stripe.pipe(_(e=>y(e.retrieveSource(a))),f())}verifyIdentity(a){return this.stripe.pipe(_(e=>y(e.verifyIdentity(a))),f())}collectFinancialConnectionsAccounts(a){return this.stripe.pipe(_(e=>y(e.collectFinancialConnectionsAccounts(a))),f())}collectBankAccountToken(a){return this.stripe.pipe(_(e=>y(e.collectBankAccountToken(a))),f())}createEphemeralKeyNonce(a){return this.stripe.pipe(_(e=>y(e.createEphemeralKeyNonce(a))),f())}initCheckout(a){return this.stripe.pipe(K(e=>e.initCheckout(a)),f())}initEmbeddedCheckout(a){return this.stripe.pipe(_(e=>y(e.initEmbeddedCheckout(a))),f())}handleCardPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.handleCardPayment(a,e,t))),f())}confirmPaymentIntent(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmPaymentIntent(a,e,t))),f())}handleCardSetup(a,e,t){return this.stripe.pipe(_(i=>y(i.handleCardSetup(a,e,t))),f())}confirmSetupIntent(a,e,t){return this.stripe.pipe(_(i=>y(i.confirmSetupIntent(a,e,t))),f())}handleFpxPayment(a,e,t){return this.stripe.pipe(_(i=>y(i.handleFpxPayment(a,e,t))),f())}getNgxStripeAppInfo(a){return{name:"ngx-stripe",url:"https://ngx-stripe.dev",partner_id:"pp_partner_JR4l1rmvUoPP4V",version:a}}},Xe=(()=>{class n{platformId;constructor(e){this.platformId=e}getNativeWindow(){return rt(this.platformId)?window:{}}static \u0275fac=function(t){return new(t||n)(F(Le))};static \u0275prov=ne({token:n,factory:n.\u0275fac})}return n})(),Ht=(()=>{class n{platformId;constructor(e){this.platformId=e}getNativeDocument(){return rt(this.platformId)?document:{}}static \u0275fac=function(t){return new(t||n)(F(Le))};static \u0275prov=ne({token:n,factory:n.\u0275fac})}return n})(),ht=(()=>{class n{platformId;window;document;zone;status=new it({error:!1,loaded:!1,loading:!1});constructor(e,t,i,r){this.platformId=e,this.window=t,this.document=i,this.zone=r}asStream(){return this.load(),this.status.asObservable()}isReady(){return this.status.getValue().loaded}load(){if(At(this.platformId))return;let e=this.window.getNativeWindow(),{loaded:t,loading:i,error:r}=this.status.getValue();if(e.hasOwnProperty("Stripe")){this.status.next({loaded:!0,loading:!1,error:!1});return}!t&&!i&&(this.status.next({loaded:!1,loading:!0,error:r}),this.zone.runOutsideAngular(()=>this.injectScript()))}injectScript(){let e=this.document.getNativeDocument().createElement("script");e.type="text/javascript",e.async=!0,e.defer=!0,e.src="https://js.stripe.com/clover/stripe.js",e.onload=()=>{this.zone.run(()=>{this.status.next({loaded:!0,loading:!1,error:!1})})},e.onerror=()=>{this.zone.run(()=>{this.status.next({loaded:!1,loading:!1,error:!0})})},this.document.getNativeDocument().body.appendChild(e)}static \u0275fac=function(t){return new(t||n)(F(Le),F(Xe),F(Ht),F(It))};static \u0275prov=ne({token:n,factory:n.\u0275fac})}return n})(),Ie=(()=>{class n{version;key;options;loader;window;stripe;constructor(e,t,i,r,d){this.version=e,this.key=t,this.options=i,this.loader=r,this.window=d,t&&(this.stripe=new Ue(this.version,this.loader,this.window,t,i))}getStripeReference(){return this.loader.asStream().pipe(ke(e=>e.loaded===!0),K(()=>this.window.getNativeWindow().Stripe))}getInstance(){return this.stripe.getInstance()}setKey(e,t){return this.changeKey(e,t)}changeKey(e,t){return this.stripe=new Ue(this.version,this.loader,this.window,e,t),this.stripe}elements(e){return this.stripe.elements(e)}confirmPayment(e){return this.stripe.confirmPayment(e)}confirmAcssDebitPayment(e,t,i){return this.stripe.confirmAcssDebitPayment(e,t,i)}confirmUsBankAccountPayment(e,t){return this.stripe.confirmUsBankAccountPayment(e,t)}confirmAlipayPayment(e,t,i){return this.stripe.confirmAlipayPayment(e,t,i)}confirmAuBecsDebitPayment(e,t){return this.stripe.confirmAuBecsDebitPayment(e,t)}confirmBancontactPayment(e,t,i){return this.stripe.confirmBancontactPayment(e,t,i)}confirmBilliePayment(e,t,i){return this.stripe.confirmBilliePayment(e,t,i)}confirmBlikPayment(e,t,i){return this.stripe.confirmBlikPayment(e,t,i)}confirmBoletoPayment(e,t,i){return this.stripe.confirmBoletoPayment(e,t,i)}confirmCardPayment(e,t,i){return this.stripe.confirmCardPayment(e,t,i)}confirmCashappPayment(e,t,i){return this.stripe.confirmCashappPayment(e,t,i)}confirmCustomerBalancePayment(e,t,i){return this.stripe.confirmCustomerBalancePayment(e,t,i)}confirmEpsPayment(e,t,i){return this.stripe.confirmEpsPayment(e,t,i)}confirmFpxPayment(e,t,i){return this.stripe.confirmFpxPayment(e,t,i)}confirmGiropayPayment(e,t,i){return this.stripe.confirmGiropayPayment(e,t,i)}confirmGrabPayPayment(e,t,i){return this.stripe.confirmGrabPayPayment(e,t,i)}confirmIdealPayment(e,t,i){return this.stripe.confirmIdealPayment(e,t,i)}confirmKlarnaPayment(e,t,i){return this.stripe.confirmKlarnaPayment(e,t,i)}confirmKonbiniPayment(e,t,i){return this.stripe.confirmKonbiniPayment(e,t,i)}confirmMobilepayPayment(e,t,i){return this.stripe.confirmMobilepayPayment(e,t,i)}confirmMultibancoPayment(e,t,i){return this.stripe.confirmMultibancoPayment(e,t,i)}confirmOxxoPayment(e,t,i){return this.stripe.confirmOxxoPayment(e,t,i)}confirmP24Payment(e,t,i){return this.stripe.confirmP24Payment(e,t,i)}confirmPayNowPayment(e,t,i){return this.stripe.confirmPayNowPayment(e,t,i)}confirmPayPalPayment(e,t){return this.stripe.confirmPayPalPayment(e,t)}confirmPixPayment(e,t,i){return this.stripe.confirmPixPayment(e,t,i)}confirmPromptPayPayment(e,t,i){return this.stripe.confirmPromptPayPayment(e,t,i)}confirmSepaDebitPayment(e,t){return this.stripe.confirmSepaDebitPayment(e,t)}confirmSofortPayment(e,t,i){return this.stripe.confirmSofortPayment(e,t,i)}confirmTwintPayment(e,t,i){return this.stripe.confirmTwintPayment(e,t,i)}confirmWechatPayPayment(e,t,i){return this.stripe.confirmWechatPayPayment(e,t,i)}handleCardAction(e){return this.stripe.handleCardAction(e)}handleNextAction(e){return this.stripe.handleNextAction(e)}verifyMicrodepositsForPayment(e,t){return this.stripe.verifyMicrodepositsForPayment(e,t)}createRadarSession(){return this.stripe.createRadarSession()}collectBankAccountForPayment(e){return this.stripe.collectBankAccountForPayment(e)}createPaymentMethod(e){return this.stripe.createPaymentMethod(e)}createConfirmationToken(e){return this.stripe.createConfirmationToken(e)}retrievePaymentIntent(e){return this.stripe.retrievePaymentIntent(e)}confirmSetup(e){return this.stripe.confirmSetup(e)}confirmAcssDebitSetup(e,t,i){return this.stripe.confirmAcssDebitSetup(e,t,i)}confirmUsBankAccountSetup(e,t){return this.stripe.confirmUsBankAccountSetup(e,t)}confirmAuBecsDebitSetup(e,t){return this.stripe.confirmAuBecsDebitSetup(e,t)}confirmBacsDebitSetup(e,t){return this.stripe.confirmBacsDebitSetup(e,t)}confirmBancontactSetup(e,t){return this.stripe.confirmBancontactSetup(e,t)}confirmCardSetup(e,t,i){return this.stripe.confirmCardSetup(e,t,i)}confirmCashappSetup(e,t,i){return this.stripe.confirmCashappSetup(e,t,i)}confirmIdealSetup(e,t){return this.stripe.confirmIdealSetup(e,t)}confirmPayPalSetup(e,t){return this.stripe.confirmPayPalSetup(e,t)}confirmSepaDebitSetup(e,t){return this.stripe.confirmSepaDebitSetup(e,t)}confirmSofortSetup(e,t,i){return this.stripe.confirmSofortSetup(e,t,i)}confirmAffirmPayment(e,t,i){return this.stripe.confirmAffirmPayment(e,t,i)}confirmAfterpayClearpayPayment(e,t,i){return this.stripe.confirmAfterpayClearpayPayment(e,t,i)}verifyMicrodepositsForSetup(e,t){return this.stripe.verifyMicrodepositsForSetup(e,t)}collectBankAccountForSetup(e){return this.stripe.collectBankAccountForSetup(e)}retrieveSetupIntent(e){return this.stripe.retrieveSetupIntent(e)}processOrder(e){return this.stripe.processOrder(e)}retrieveOrder(e){return this.stripe.retrieveOrder(e)}paymentRequest(e){return this.stripe.paymentRequest(e)}createToken(e,t){return this.stripe.createToken(e,t)}createSource(e,t){return this.stripe.createSource(e,t)}retrieveSource(e){return this.stripe.retrieveSource(e)}verifyIdentity(e){return this.stripe.verifyIdentity(e)}collectFinancialConnectionsAccounts(e){return this.stripe.collectFinancialConnectionsAccounts(e)}collectBankAccountToken(e){return this.stripe.collectBankAccountToken(e)}createEphemeralKeyNonce(e){return this.stripe.createEphemeralKeyNonce(e)}initCheckout(e){return this.stripe.initCheckout(e)}initEmbeddedCheckout(e){return this.stripe.initEmbeddedCheckout(e)}handleCardPayment(e,t,i){return this.stripe.handleCardPayment(e,t,i)}confirmPaymentIntent(e,t,i){return this.stripe.confirmPaymentIntent(e,t,i)}handleCardSetup(e,t,i){return this.stripe.handleCardSetup(e,t,i)}confirmSetupIntent(e,t,i){return this.stripe.confirmSetupIntent(e,t,i)}handleFpxPayment(e,t,i){return this.stripe.handleFpxPayment(e,t,i)}static \u0275fac=function(t){return new(t||n)(F(ut),F(pt),F(dt),F(ht),F(Xe))};static \u0275prov=ne({token:n,factory:n.\u0275fac})}return n})(),B=(()=>{class n{stripeService;constructor(e){this.stripeService=e}elements(e,t){return e?Object.keys(t).length>0?e.elements(t):e.elements():Object.keys(t).length>0?this.stripeService.elements(t):this.stripeService.elements()}paymentRequest(e,t){return e?e.paymentRequest(t):this.stripeService.paymentRequest(t)}mergeOptions(e,t){return!t||e&&e.classes?e||{}:!e||!e.classes?ve(Q({},e||{}),{classes:{base:t,complete:`${t}--complete`,empty:`${t}--empty`,focus:`${t}--focus`,invalid:`${t}--invalid`,webkitAutoFill:`${t}--webkit-autoFill`}}):e||{}}static \u0275fac=function(t){return new(t||n)(F(Ie))};static \u0275prov=ne({token:n,factory:n.\u0275fac})}return n})(),G=(()=>{class n{stripeElementsService;elementsOptions;stripe;elements=new c;_elements;state="notready";constructor(e){this.stripeElementsService=e}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=this.elementsOptions,i=this.stripe;if(!i){this.state="notready";return}if(e.elementsOptions)if(this._elements){let r=Object.keys(t).reduce((d,U)=>(t[U]!==e.elementsOptions.previousValue[U]&&!["fonts","loader","clientSecret"].includes(U)&&(d[U]=t[U]),d),{});this._elements.update(r)}else this._elements=yield this.stripeElementsService.elements(i,t).toProm
1ise(),this.elements.emit(this._elements),this.state="ready"})}ngOnInit(){return x(this,null,function*(){this.state==="notready"&&(this.state="starting",this._elements=yield this.stripeElementsService.elements(this.stripe).toPromise(),this.elements.emit(this._elements),this.state="ready")})}fetchUpdates(){return this._elements?y(this._elements.fetchUpdates()):null}update(e){return this._elements?this._elements.update(e):null}submit(){return this._elements?y(this._elements.submit()):null}getElement(e){if(!this._elements)return null;switch(e){case"address":return this._elements.getElement("address");case"paymentMethodMessaging":return this._elements.getElement("paymentMethodMessaging");case"auBankAccount":return this._elements.getElement("auBankAccount");case"card":return this._elements.getElement("card");case"cardNumber":return this._elements.getElement("cardNumber");case"cardExpiry":return this._elements.getElement("cardExpiry");case"cardCvc":return this._elements.getElement("cardCvc");case"iban":return this._elements.getElement("iban");case"linkAuthentication":return this._elements.getElement("linkAuthentication");case"expressCheckout":return this._elements.getElement("expressCheckout");case"payment":return this._elements.getElement("payment");case"paymentRequestButton":return this._elements.getElement("paymentRequestButton");case"shippingAddress":return this._elements.getElement("shippingAddress");default:return this._elements.getElement(e)}}static \u0275fac=function(t){return new(t||n)(C(B))};static \u0275dir=qe({type:n,selectors:[["ngx-stripe-elements"],["","ngxStripeElements",""]],inputs:{elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{elements:"elements"},features:[R]})}return n})(),ce=(()=>{class n{stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;loaderror=new c;loaderstart=new c;elements;state="notready";elementsSubscription;constructor(e,t){this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i)),this.state="ready"})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e),this.state="ready"}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toPromise(),this.createElement(e),this.state="ready")})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){return this.element.update(e)}getValue(){return this.elements.getElement("address").getValue()}getAddressElement(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("address",e),this.element.on("change",t=>this.change.emit(t)),this.element.on("blur",()=>this.blur.emit()),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",()=>this.ready.emit()),this.element.on("escape",()=>this.escape.emit()),this.element.on("loaderror",()=>this.loaderror.emit()),this.element.on("loaderstart",()=>this.loaderstart.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-address"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape",loaderror:"loaderror",loaderstart:"loaderstart"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,en,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),yn=(()=>{class n{cdr;stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;elements;state="notready";elementsSubscription;constructor(e,t,i){this.cdr=e,this.stripeElementsService=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i))})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e)}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toProm
1ise(),this.createElement(e))})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}getCard(){return this.element}createElement(e={}){this.state="ready",this.cdr.detectChanges(),this.element&&this.element.unmount(),this.element=this.elements.create("card",e),this.element.on("change",t=>this.change.emit(t)),this.element.on("blur",()=>this.blur.emit()),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",()=>this.ready.emit()),this.element.on("escape",()=>this.escape.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(ye),C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-card"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,tn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),yt=(()=>{class n{stripeElementsService;elementsOptions;stripe;elements=new c;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;_elements;state="notready";constructor(e){this.stripeElementsService=e}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=this.elementsOptions,i=this.stripe;(e.elementsOptions||e.stripe||!this._elements)&&(this._elements=yield this.stripeElementsService.elements(i,t).toPromise(),this.elements.emit(this._elements)),this.state="ready"})}ngOnInit(){return x(this,null,function*(){this.state==="notready"&&(this.state="starting",this._elements=yield this.stripeElementsService.elements(this.stripe).toPromise(),this.elements.emit(this._elements),this.state="ready")})}static \u0275fac=function(t){return new(t||n)(C(B))};static \u0275dir=qe({type:n,selectors:[["ngx-stripe-card-group"],["","ngxStripeCardGroup",""]],inputs:{elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{elements:"elements",load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[R]})}return n})(),fn=(()=>{class n{stripeElementsService;cardGroup;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;elements;elementsSubscription;constructor(e,t,i){this.stripeElementsService=e,this.cardGroup=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){(e.options||e.containerClass)&&this.setupElement("options")})}ngOnInit(){if(this.cardGroup)this.elementsSubscription=this.cardGroup.elements.subscribe(e=>{this.elements=e,this.setupElement("elements")});else if(this.elementsProvider)this.elementsSubscription=this.elementsProvider.elements.subscribe(e=>{this.elements=e,this.setupElement("elements")});else throw new Error("StripeCardNumberComponent must have StripeCardGroupDirective or StripeElementsDirective parent")}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}getCardNumber(){return this.element}setupElement(e){let t=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.element&&e==="options"?this.update(t):this.elements&&e==="elements"&&(this.element=this.elements.create("cardNumber",t),this.element.on("change",i=>{this.change.emit(i),this.cardGroup?.change.emit(i)}),this.element.on("blur",()=>{this.blur.emit(),this.cardGroup?.blur.emit()}),this.element.on("focus",()=>{this.focus.emit(),this.cardGroup?.focus.emit()}),this.element.on("ready",()=>{this.ready.emit(),this.cardGroup?.ready.emit()}),this.element.on("escape",()=>{this.escape.emit(),this.cardGroup?.escape.emit()}),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element),this.cardGroup?.load.emit(this.element))}static \u0275fac=function(t){return new(t||n)(C(B),C(yt,8),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-card-number"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,nn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.cardGroup&&i.cardGroup.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),_n=(()=>{class n{stripeElementsService;cardGroup;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;elements;elementsSubscription;constructor(e,t,i){this.stripeElementsService=e,this.cardGroup=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){(e.options||e.containerClass)&&this.setupElement("options")})}ngOnInit(){if(this.cardGroup)this.elementsSubscription=this.cardGroup.elements.subscribe(e=>{this.elements=e,this.setupElement("elements")});else if(this.elementsProvider)this.elementsSubscription=this.elementsProvider.elements.subscribe(e=>{this.elements=e,this.setupElement("elements")});else throw new Error("StripeCardExpiryComponent must have StripeCardGroupDirective or StripeElementsDirective parent")}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}getCardExpiry(){return this.element}setupElement(e){let t=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.element&&e==="options"?this.update(t):this.elements&&e==="elements"&&(this.element=this.elements.create("cardExpiry",t),this.element.on("change",i=>{this.change.emit(i),this.cardGroup?.change.emit(i)}),this.element.on("blur",()=>{this.blur.emit(),this.cardGroup?.blur.emit()}),this.element.on("focus",()=>{this.focus.emit(),this.cardGroup?.focus.emit()}),this.element.on("ready",()=>{this.ready.emit(),this.cardGroup?.ready.emit()}),this.element.on("escape",()=>{this.escape.emit(),this.cardGroup?.escape.emit()}),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element),this.cardGroup?.load.emit(this.element))}static \u0275fac=function(t){return new(t||n)(C(B),C(yt,8),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-card-expiry"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,sn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.cardGroup&&i.cardGroup.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),Cn=(()=>{class n{stripeElementsService;cardGroup;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;elements;elementsSubscription;constructor(e,t,i){this.stripeElementsService=e,this.cardGroup=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){(e.options||e.containerClass)&&this.setupElement("options")})}ngOnInit(){if(this.cardGroup)this.elementsSubscription=this.cardGroup.elements.subscribe(e=>{this.elements=e,this.setupElement("elements")});else if(this.elementsProvider)this.elementsSubscription=this.elementsProvider.elements.subscribe(e=>{this.elements=e,this.setupElement("elements")});else throw new Error("StripeCardCvcComponent must have StripeCardGroupDirective or StripeElementsDirective parent")}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}getCardCvc(){return this.element}setupElement(e){let t=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.element&&e==="options"?this.update(t):this.elements&&e==="elements"&&(this.element=this.elements.create("cardCvc",t),this.element.on("change",i=>{this.change.emit(i),this.cardGroup?.change.emit(i)}),this.element.on("blur",()=>{this.blur.emit(),this.cardGroup?.blur.emit()}),this.element.on("focus",()=>{this.focus.emit(),this.cardGroup?.focus.emit()}),this.element.on("ready",()=>{this.ready.emit(),this.cardGroup?.ready.emit()}),this.element.on("escape",()=>{this.escape.emit(),this.cardGroup?.escape.emit()}),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element),this.cardGroup?.load.emit(this.element))}static \u0275fac=function(t){return new(t||n)(C(B),C(yt,8),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-card-cvc"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,an,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.cardGroup&&i.cardGroup.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),In=(()=>{class n{stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;blur=new c;
1cancel=new c;clicked=new c;confirm=new c;focus=new c;ready=new c;escape=new c;loaderror=new c;shippingaddresschange=new c;shippingratechange=new c;elements;state="notready";elementsSubscription;constructor(e,t){this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&this.elements&&t&&this.createElement(i),this.state="ready"})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e),this.state="ready"}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toPromise(),this.createElement(e),this.state="ready")})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){return this.element.update(e)}getLinkAuthenticationElement(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("expressCheckout",e),this.element.on("blur",()=>this.blur.emit()),this.element.on("cancel",()=>this.cancel.emit()),this.element.on("click",t=>this.clicked.emit(t)),this.element.on("confirm",t=>this.confirm.emit(t)),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",t=>this.ready.emit(t)),this.element.on("escape",()=>this.escape.emit()),this.element.on("loaderror",t=>this.loaderror.emit(t)),this.element.on("shippingaddresschange",t=>this.shippingaddresschange.emit(t)),this.element.on("shippingratechange",t=>this.shippingratechange.emit(t)),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-express-checkout"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",cancel:"cancel",clicked:"clicked",confirm:"confirm",focus:"focus",ready:"ready",escape:"escape",loaderror:"loaderror",shippingaddresschange:"shippingaddresschange",shippingratechange:"shippingratechange"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,rn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),gn=(()=>{class n{stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;elements;state="notready";elementsSubscription;constructor(e,t){this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i)),this.state="ready"})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e),this.state="ready"}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toProm
1ise(),this.createElement(e),this.state="ready")})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}getIban(){return this.element}createElement(e={}){this.element&&this.element.unmount(),this.element=this.elements.create("iban",e),this.element.on("change",t=>this.change.emit(t)),this.element.on("blur",()=>this.blur.emit()),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",()=>this.ready.emit()),this.element.on("escape",()=>this.escape.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-iban"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,on,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),vn=(()=>{class n{cdr;stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;elements;state="notready";elementsSubscription;constructor(e,t,i){this.cdr=e,this.stripeElementsService=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i))})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e)}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toPromise(),this.createElement(e))})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}createElement(e){this.state="ready",this.cdr.detectChanges(),this.element&&this.element.unmount(),this.element=this.elements.create("issuingCardCvcDisplay",e),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(ye),C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-issuing-card-cvc-display"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,ln,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),Pn=(()=>{class n{cdr;stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;elements;state="notready";elementsSubscription;constructor(e,t,i){this.cdr=e,this.stripeElementsService=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i))})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e)}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toProm
1ise(),this.createElement(e))})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}createElement(e){this.state="ready",this.cdr.detectChanges(),this.element&&this.element.unmount(),this.element=this.elements.create("issuingCardExpiryDisplay",e),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(ye),C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-issuing-card-expiry-display"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,mn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),En=(()=>{class n{cdr;stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;elements;state="notready";elementsSubscription;constructor(e,t,i){this.cdr=e,this.stripeElementsService=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i))})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e)}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toPromise(),this.createElement(e))})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}createElement(e){this.state="ready",this.cdr.detectChanges(),this.element&&this.element.unmount(),this.element=this.elements.create("issuingCardNumberDisplay",e),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(ye),C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-issuing-card-number-display"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,cn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),bn=(()=>{class n{cdr;stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;elements;state="notready";elementsSubscription;constructor(e,t,i){this.cdr=e,this.stripeElementsService=t,this.elementsProvider=i}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i))})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e)}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toProm
1ise(),this.createElement(e))})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}createElement(e){this.state="ready",this.cdr.detectChanges(),this.element&&this.element.unmount(),this.element=this.elements.create("issuingCardPinDisplay",e),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(ye),C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-issuing-card-pin-display"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,pn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),xn=(()=>{class n{stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;loaderror=new c;loaderstart=new c;elements;state="notready";elementsSubscription;constructor(e,t){this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&this.elements&&t&&this.createElement(i),this.state="ready"})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e),this.state="ready"}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toPromise(),this.createElement(e),this.state="ready")})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}getLinkAuthenticationElement(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("linkAuthentication",e),this.element.on("change",t=>this.change.emit(t)),this.element.on("blur",()=>this.blur.emit()),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",()=>this.ready.emit()),this.element.on("escape",()=>this.escape.emit()),this.element.on("loaderror",()=>this.loaderror.emit()),this.element.on("loaderstart",()=>this.loaderstart.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-link-authentication"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape",loaderror:"loaderror",loaderstart:"loaderstart"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,dn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),Sn=(()=>{class n{stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;elements;state="notready";elementsSubscription;constructor(e,t){this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i)),this.state="ready"})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e),this.state="ready"}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toProm
1ise(),this.createElement(e),this.state="ready")})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}getAuBankAccount(){return this.element}createElement(e={}){this.element&&this.element.unmount(),this.element=this.elements.create("auBankAccount",e),this.element.on("change",t=>this.change.emit(t)),this.element.on("blur",()=>this.blur.emit()),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",()=>this.ready.emit()),this.element.on("escape",()=>this.escape.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-au-bank-account"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,un,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})(),We=(()=>{class n{stripeElementsService;elementsProvider;stripeElementRef;element;elements;containerClass;options;elementsOptions;stripe;appearance;clientSecret;doNotCreateUntilClientSecretIsSet=!1;load=new c;blur=new c;change=new c;focus=new c;ready=new c;escape=new c;loaderror=new c;state="notready";elementsSubscription;constructor(e,t){this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||e.clientSecret||e.appearance||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,Q(Q(Q({},this.elementsOptions||{}),this.appearance?{appearance:this.appearance}:{}),this.clientSecret?{clientSecret:this.clientSecret}:{})).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i)),this.state="ready"})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e),this.state="ready"}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe,Q(Q(Q({},this.elementsOptions||{}),this.appearance?{appearance:this.appearance}:{}),this.clientSecret?{clientSecret:this.clientSecret}:{})).toPromise(),this.createElement(e),this.state="ready")})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){return this.element.update(e)}collapse(){return this.element.collapse()}fetchUpdates(){return y(this.elements.fetchUpdates())}createElement(e={}){this.element&&this.element.unmount();try{this.element=this.elements.create("payment",e)}catch(t){throw this.elements=null,t}this.element.on("change",t=>this.change.emit(t)),this.element.on("blur",t=>this.blur.emit(t)),this.element.on("focus",t=>this.focus.emit(t)),this.element.on("ready",t=>this.ready.emit(t)),this.element.on("escape",t=>this.escape.emit(t)),this.element.on("loaderror",t=>this.loaderror.emit(t)),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-payment"]],viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe",appearance:"appearance",clientSecret:"clientSecret",doNotCreateUntilClientSecretIsSet:"doNotCreateUntilClientSecretIsSet"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape",loaderror:"loaderror"},features:[R],decls:2,vars:0,consts:[["stripeElementRef",""],[1,"field"]],template:function(t,i){t&1&&vt(0,"div",1,0)},encapsulation:2})}return n})(),Tn=(()=>{class n{stripeElementsService;elementsProvider;loadingTemplate;stripeElementRef;element;containerClass;options;elementsOptions;stripe;load=new c;ready=new c;elements;state="notready";elementsSubscription;constructor(e,t){this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return x(this,null,function*(){this.state="starting";let t=!1;!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)&&(this.elements=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise(),t=!0);let i=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(i):this.elements&&t&&this.createElement(i)),this.state="ready"})}ngOnInit(){return x(this,null,function*(){let e=this.stripeElementsService.mergeOptions(this.options,this.containerClass);this.elementsProvider?this.elementsSubscription=this.elementsProvider.elements.subscribe(t=>{this.elements=t,this.createElement(e),this.state="ready"}):this.state==="notready"&&(this.state="starting",this.elements=yield this.stripeElementsService.elements(this.stripe).toProm
1ise(),this.createElement(e),this.state="ready")})}ngOnDestroy(){this.element&&this.element.destroy(),this.elementsSubscription&&this.elementsSubscription.unsubscribe()}update(e){this.element.update(e)}getPaymentMethodMessaging(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("paymentMethodMessaging",e),this.element.on("ready",()=>this.ready.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}static \u0275fac=function(t){return new(t||n)(C(B),C(G,8))};static \u0275cmp=N({type:n,selectors:[["ngx-stripe-payment-method-messaging"]],contentQueries:function(t,i,r){if(t&1&&j(r,$,5,q),t&2){let d;v(d=P())&&(i.loadingTemplate=d.first)}},viewQuery:function(t,i){if(t&1&&O(H,5),t&2){let r;v(r=P())&&(i.stripeElementRef=r.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",ready:"ready"},features:[R],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",1,0),u(2,hn,1,1,"ng-container",2),l()),t&2&&(m(2),h(i.state!=="ready"&&i.loadingTemplate?2:-1))},dependencies:[V,k],encapsulation:2})}return n})();var Dn=(()=>{class n{version;baseKey;baseOptions;loader;window;constructor(e,t,i,r,d){this.version=e,this.baseKey=t,this.baseOptions=i,this.loader=r,this.window=d}create(e,t){if(!e&&!this.baseKey)throw new Error("No key defined! Either you need to pass it as a parameter or define it when you call NgxStripeModule.forRoot()");return new Ue(this.version,this.loader,this.window,e||this.baseKey,t||this.baseOptions)}static \u0275fac=function(t){return new(t||n)(F(ut),F(pt),F(dt),F(ht),F(Xe))};static \u0275prov=ne({token:n,factory:n.\u0275fac})}return n})();var An="21.8.0";function Qt(n,a){return[ht,Ie,Dn,B,Xe,Ht,{provide:pt,useValue:n},{provide:dt,useValue:a},{provide:ut,useValue:An}]}var Gt=(()=>{class n{static forRoot(e,t){return{ngModule:n,providers:[...Qt(e,t)]}}static forChild(e,t){return{ngModule:n,providers:[...Qt(e,t)]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=Te({type:n});static \u0275inj=Se({imports:[V,ce,yn,fn,_n,Cn,In,gn,vn,Pn,En,bn,xn,Sn,Tn]})}return n})();var $t=class{constructor(a){this.sitePaymentTypeID=a}},Ze=class{constructor(a){this.paymentTypeID=a}},Me=class{},Je=class{};var J=(function(n){return n.SUCCEEDED="succeeded",n.PROCESSING="processing",n.REQUIRES_PAYMENT_METHOD="requires_payment_method",n.REQUIRES_CONFIRMATION="requires_confirmation",n.REQUIRES_ACTION="requires_action",n.REQUIRES_CAPTURE="requires_capture",n.REQUIRES_SOURCE="requires_source",n.REQUIRES_SOURCE_ACTION="requires_source_action",n.CANCELLED="canceled",n})(J||{});var w=(function(n){return n.ACCOUNT_CLOSED="account_closed",n.ACCOUNT_COUNTRY_INVALID_ADDRESS="account_country_invalid_address",n.ACCOUNT_ERROR_COUNTRY_CHANGE_REQUIRES_ADDITIONAL_STEPS="account_error_country_change_requires_additional_steps",n.ACCOUNT_INFORMATION_MISMATCH="account_information_mismatch",n.ACCOUNT_NUMBER_INVALID="account_number_invalid",n.ACSS_DEBIT_SESSION_INCOMPLETE="acss_debit_session_incomplete",n.ALIPAY_UPGRADE_REQUIRED="alipay_upgrade_required",n.AMOUNT_TOO_LARGE="amount_too_large",n.AMOUNT_TOO_SMALL="amount_too_small",n.API_KEY_EXPIRED="api_key_expired",n.APPLICATION_FEES_NOT_ALLOWED="application_fees_not_allowed",n.AUTHENTICATION_REQUIRED="authentication_required",n.BALANCE_INSUFFICIENT="balance_insufficient",n.BANK_ACCOUNT_BAD_ROUTING_NUMBERS="bank_account_bad_routing_numbers",n.BANK_ACCOUNT_DECLINED="bank_account_declined",n.BANK_ACCOUNT_EXISTS="bank_account_exists",n.BANK_ACCOUNT_RESTRICTED="bank_account_restricted",n.BANK_ACCOUNT_UNUSABLE="bank_account_unusable",n.BANK_ACCOUNT_UNVERIFIED="bank_account_unverified",n.BANK_ACCOUNT_VERIFICATION_FAILED="bank_account_verification_failed",n.BILLING_INVALID_MANDATE="billing_invalid_mandate",n.BITCOIN_UPGRADE_REQUIRED="bitcoin_upgrade_required",n.CAPTURE_CHARGE_AUTHORIZATION_EXPIRED="capture_charge_authorization_expired",n.CAPTURE_UNAUTHORIZED_PAYMENT="capture_unauthorized_payment",n.CARD_DECLINE_RATE_LIMIT_EXCEEDED="card_decline_rate_limit_exceeded",n.CARD_DECLINED="card_declined",n.CARDHOLDER_PHONE_NUMBER_REQUIRED="cardholder_phone_number_required",n.CHARGE_ALREADY_CAPTURED="charge_already_captured",n.CHARGE_ALREADY_REFUNDED="charge_already_refunded",n.CHARGE_DISPUTED="charge_disputed",n.CHARGE_EXCEEDS_SOURCE_LIMIT="charge_exceeds_source_limit",n.CHARGE_EXPIRED_FOR_CAPTURE="charge_expired_for_capture",n.CHARGE_INVA
1LID_PARAMETER="charge_invalid_parameter",n.CHARGE_NOT_REFUNDABLE="charge_not_refundable",n.CLEARING_CODE_UNSUPPORTED="clearing_code_unsupported",n.COUNTRY_CODE_INVALID="country_code_invalid",n.COUNTRY_UNSUPPORTED="country_unsupported",n.COUPON_EXPIRED="coupon_expired",n.CUSTOMER_MAX_PAYMENT_METHODS="customer_max_payment_methods",n.CUSTOMER_MAX_SUBSCRIPTIONS="customer_max_subscriptions",n.DEBIT_NOT_AUTHORIZED="debit_not_authorized",n.EMAIL_INVALID="email_invalid",n.EXPIRED_CARD="expired_card",n.IDEMPOTENCY_KEY_IN_USE="idempotency_key_in_use",n.INCORRECT_ADDRESS="incorrect_address",n.INCORRECT_CVC="incorrect_cvc",n.INCORRECT_NUMBER="incorrect_number",n.INCORRECT_ZIP="incorrect_zip",n.INSTANT_PAYOUTS_CONFIG_DISABLED="instant_payouts_config_disabled",n.INSTANT_PAYOUTS_CURRENCY_DISABLED="instant_payouts_currency_disabled",n.INSTANT_PAYOUTS_LIMIT_EXCEEDED="instant_payouts_limit_exceeded",n.INSTANT_PAYOUTS_UNSUPPORTED="instant_payouts_unsupported",n.INSUFFICIENT_FUNDS="insufficient_funds",n.INTENT_INVALID_STATE="intent_invalid_state",n.INTENT_VERIFICATION_METHOD_MISSING="intent_verification_method_missing",n.INVALID_CARD_TYPE="invalid_card_type",n.INVALID_CHARACTERS="invalid_characters",n.INVALID_CHARGE_AMOUNT="invalid_charge_amount",n.INVALID_CVC="invalid_cvc",n.INVALID_EXPIRY_MONTH="invalid_expiry_month",n.INVALID_EXPIRY_YEAR="invalid_expiry_year",n.INVALID_NUMBER="invalid_number",n.INVALID_SOURCE_USAGE="invalid_source_usage",n.INVALID_TAX_LOCATION="invalid_tax_location",n.INVOICE_NO_CUSTOMER_LINE_ITEMS="invoice_no_customer_line_items",n.INVOICE_NO_PAYMENT_METHOD_TYPES="invoice_no_payment_method_types",n.INVOICE_NO_SUBSCRIPTION_LINE_ITEMS="invoice_no_subscription_line_items",n.INVOICE_NOT_EDITABLE="invoice_not_editable",n.INVOICE_ON_BEHALF_OF_NOT_EDITABLE="invoice_on_behalf_of_not_editable",n.INVOICE_PAYMENT_INTENT_REQUIRES_ACTION="invoice_payment_intent_requires_action",n.INVOICE_UPCOMING_NONE="invoice_upcoming_none",n.LIVEMODE_MISMATCH="livemode_mismatch",n.LOCK_TIMEOUT="lock_timeout",n.MISSING="missing",n.NO_ACCOUNT="no_account",n.NOT_ALLOWED_ON_STANDARD_ACCOUNT="not_allowed_on_standard_account",n.OUT_OF_INVENTORY="out_of_inventory",n.OWNERSHIP_DECLARATION_NOT_ALLOWED="ownership_declaration_not_allowed",n.PARAMETER_INVALID_EMPTY="parameter_invalid_empty",n.PARAMETER_INVALID_INTEGER="parameter_invalid_integer",n.PARAMETER_INVALID_STRING_BLANK="parameter_invalid_string_blank",n.PARAMETER_INVALID_STRING_EMPTY="parameter_invalid_string_empty",n.PARAMETER_MISSING="parameter_missing",n.PARAMETER_UNKNOWN="parameter_unknown",n.PARAMETERS_EXCLUSIVE="parameters_exclusive",n.PAYMENT_INTENT_ACTION_REQUIRED="payment_intent_action_required",n.ERROR_ON_REQUIRES_ACTION="error_on_requires_action",n.PAYMENT_INTENT_AUTHENTICATION_FAILURE="payment_intent_authentication_failure",n.PAYMENT_INTENT_INCOMPATIBLE_PAYMENT_METHOD="payment_intent_incompatible_payment_method",n.PAYMENT_INTENT_INVALID_PARAMETER="payment_intent_invalid_parameter",n.PAYMENT_INTENT_KONBINI_REJECTED_CONFIRMATION_NUMBER="payment_intent_konbini_rejected_confirmation_number",n.CONFIRMATION_NUMBER="confirmation_number",n.PAYMENT_METHOD_OPTIONS_KONBINI="payment_method_options[konbini]",n.PAYMENT_INTENT_MANDATE_INVALID="payment_intent_mandate_invalid",n.PAYMENT_INTENT_PAYMENT_ATTEMPT_EXPIRED="payment_intent_payment_attempt_expired",n.PAYMENT_INTENT_PAYMENT_ATTEMPT_FAILED="payment_intent_payment_attempt_failed",n.PAYMENT_INTENT_UNEXPECTED_STATE="payment_intent_unexpected_state",n.PAYMENT_METHOD_BANK_ACCOUNT_ALREADY_VERIFIED="payment_method_bank_account_already_verified",n.PAYMENT_METHOD_BANK_ACCOUNT_BLOCKED="payment_method_bank_account_blocked",n.PAYMENT_METHOD_BILLING_DETAILS_ADDRESS_MISSING="payment_method_billing_details_address_missing",n.PAYMENT_METHOD_CONFIGURATION_FAILURES="payment_method_configuration_failures",n.PAYMENT_METHOD_CURRENCY_MISMATCH="payment_method_currency_mismatch",n.PAYMENT_METHOD_CUSTOMER_DECLINE="payment_method_customer_decline",n.PAYMENT_METHOD_INVALID_PARAMETER="payment_method_invalid_parameter",n.PAYMENT_METHOD_INVALID_PARAMETER_TESTMODE="payment_method_invalid_parameter_testmode",n.PAYMENT_METHOD_MICRODEPOSIT_FAILED="payment_method_microdeposit_failed",n.PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_INVALID="payment_method_microdeposit_verification_amounts_invalid",n.PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_MISMATCH="payment_method_microdeposit_verification_amounts_mismatch",n.PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_ATTEMPTS_EXCEEDED="payment_method_microdeposit_verification_attempts_exceeded",n.PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_DESCRIPTOR_CODE_MISMATCH="payment_method_microdeposit_verification_descriptor_code_mismatch",n.PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_TIMEOUT="payment_method_microdeposit_verification_timeout",n.PAYMENT_METHOD_NOT_AVAILABLE="payment_method_not_available",n.PAYMENT_METHOD_PRO
1VIDER_DECLINE="payment_method_provider_decline",n.PAYMENT_METHOD_PROVIDER_TIMEOUT="payment_method_provider_timeout",n.PAYMENT_METHOD_UNACTIVATED="payment_method_unactivated",n.PAYMENT_METHOD_UNEXPECTED_STATE="payment_method_unexpected_state",n.PAYMENT_METHOD_UNSUPPORTED_TYPE="payment_method_unsupported_type",n.PAYOUT_RECONCILIATION_NOT_READY="payout_reconciliation_not_ready",n.PAYOUTS_LIMIT_EXCEEDED="payouts_limit_exceeded",n.PAYOUTS_NOT_ALLOWED="payouts_not_allowed",n.PLATFORM_ACCOUNT_REQUIRED="platform_account_required",n.PLATFORM_API_KEY_EXPIRED="platform_api_key_expired",n.POSTAL_CODE_INVALID="postal_code_invalid",n.PROCESSING_ERROR="processing_error",n.PRODUCT_INACTIVE="product_inactive",n.PROGRESSIVE_ONBOARDING_LIMIT_EXCEEDED="progressive_onboarding_limit_exceeded",n.RATE_LIMIT="rate_limit",n.REFER_TO_CUSTOMER="refer_to_customer",n.REFUND_DISPUTED_PAYMENT="refund_disputed_payment",n.RESOURCE_ALREADY_EXISTS="resource_already_exists",n.RESOURCE_MISSING="resource_missing",n.RETURN_INTENT_ALREADY_PROCESSED="return_intent_already_processed",n.ROUTING_NUMBER_INVALID="routing_number_invalid",n.SECRET_KEY_REQUIRED="secret_key_required",n.SEPA_UNSUPPORTED_ACCOUNT="sepa_unsupported_account",n.SETUP_ATTEMPT_FAILED="setup_attempt_failed",n.SETUP_INTENT_AUTHENTICATION_FAILURE="setup_intent_authentication_failure",n.SETUP_INTENT_INVALID_PARAMETER="setup_intent_invalid_parameter",n.SETUP_INTENT_MANDATE_INVALID="setup_intent_mandate_invalid",n.SETUP_INTENT_SETUP_ATTEMPT_EXPIRED="setup_intent_setup_attempt_expired",n.SETUP_INTENT_UNEXPECTED_STATE="setup_intent_unexpected_state",n.SHIPPING_CALCULATION_FAILED="shipping_calculation_failed",n.SKU_INACTIVE="sku_inactive",n.STATE_UNSUPPORTED="state_unsupported",n.STATUS_TRANSITION_INVALID="status_transition_invalid",n.STRIPE_TAX_INACTIVE="str
1ipe_tax_inactive",n.TAX_ID_INVALID="tax_id_invalid",n.TAXES_CALCULATION_FAILED="taxes_calculation_failed",n.TERMINAL_LOCATION_COUNTRY_UNSUPPORTED="terminal_location_country_unsupported",n.TERMINAL_READER_BUSY="terminal_reader_busy",n.TERMINAL_READER_OFFLINE="terminal_reader_offline",n.TERMINAL_READER_TIMEOUT="terminal_reader_timeout",n.TESTMODE_CHARGES_ONLY="testmode_charges_only",n.TLS_VERSION_UNSUPPORTED="tls_version_unsupported",n.TOKEN_ALREADY_USED="token_already_used",n.TOKEN_IN_USE="token_in_use",n.TRANSFER_SOURCE_BALANCE_PARAMETERS_MISMATCH="transfer_source_balance_parameters_mismatch",n.TRANSFERS_NOT_ALLOWED="transfers_not_allowed",n.URL_INVALID="url_invalid",n})(w||{}),Fe=(function(n){return n.AUTHENTICATION_REQUIRED="authentication_required",n.APPROVE_WITH_ID="approve_with_id",n.CALL_ISSUER="call_issuer",n.CARD_NOT_SUPPORTED="card_not_supported",n.CARD_VELOCITY_EXCEEDED="card_velocity_exceeded",n.CURRENCY_NOT_SUPPORTED="currency_not_supported",n.DO_NOT_HONOR="do_not_honor",n.DO_NOT_TRY_AGAIN="do_not_try_again",n.DUPLICATE_TRANSACTION="duplicate_transaction",n.EXPIRED_CARD="expired_card",n.FRAUDULENT="fraudulent",n.GENERIC_DECLINE="generic_decline",n.INCORRECT_NUMBER="incorrect_number",n.INCORRECT_CVC="incorrect_cvc",n.INCORRECT_PIN="incorrect_pin",n.INCORRECT_ZIP="incorrect_zip",n.INSUFFICIENT_FUNDS="insufficient_funds",n.INVALID_ACCOUNT="invalid_account",n.INVALID_AMOUNT="invalid_amount",n.INVALID_CVC="invalid_cvc",n.INVALID_EXPIRY_MONTH="invalid_expiry_month",n.INVALID_EXPIRY_YEAR="invalid_expiry_year",n.INVALID_NUMBER="invalid_number",n.INVALID_PIN="invalid_pin",n.ISSUER_NOT_AVAILABLE="issuer_not_available",n.LOST_CARD="lost_card",n.MERCHANT_BLACKLIST="merchant_blacklist",n.NEW_ACCOUNT_INFORMATION_AVAILABLE="new_account_information_available",n.NO_ACTION_TAKEN="no_action_taken",n.NOT_PERMITTED="not_permitted",n.OFFLINE_PIN_REQUIRED="offline_pin_required",n.ONLINE_OR_OFFLINE_PIN_REQUIRED="online_or_offline_pin_required",n.PICKUP_CARD="pickup_card",n.PIN_TRY_EXCEEDED="pin_try_exceeded",n.PROCESSING_ERROR="processing_error",n.REENTER_TRANSACTION="reenter_transaction",n.RESTRICTED_CARD="restricted_card",n.REVOCATION_OF_ALL_AUTHORIZATIONS="revocation_of_all_authorizations",n.REVOCATION_OF_AUTHORIZATION="revocation_of_authorization",n.SECURITY_VIOLATION="security_violation",n.SERVICE_NOT_ALLOWED="service_not_allowed",n.STOLEN_CARD="stolen_card",n.STOP_PAYMENT_ORDER="stop_payment_order",n.TESTMODE_DECLINE="testmode_decline",n.TRANSACTION_NOT_ALLOWED="transaction_not_allowed",n.TRY_AGAIN_LATER="try_again_later",n.WITHDRAWAL_COUNT_LIMIT_EXCEEDED="withdrawal_count_limit_exceeded",n})(Fe||{});var ge=(()=>{let a=class a{constructor(t){this.webAPI=t,this.submitPaymentIntentSubj$=new te,this.paymentIntentSubmitted$=this.submitPaymentIntentSubj$.asObservable(),this.submitSetupIntentSubj$=new te,this.setupIntentSubmitted$=this.submitSetupIntentSubj$.asObservable()}getACHFields(){if(this.achFields)return A(this.achFields);{let t=new fe;return t=t.append("webVersion",(!0).toString()),this.webAPI.getData("public/payments/ach-metadata",t).pipe(z(r=>{r?.fields&&(this.achFields=r.fields)}),K(r=>r.fields))}}getCCFields(){return this.ccFields?A(this.ccFields):this.webAPI.getData("public/payments/cc-metadata").pipe(z(t=>{t?.fields&&(this.ccFields=t.fields)}),K(t=>t.fields))}getSavePaymentInformationMetadata(t){let i=new fe;return i=i.append("savePaymentInfoRequired",t.toString()),this.webAPI.getData("public/payments/save-payment-info-metadata",i)}getStripeBillingDetailsMetadata(){return this.webAPI.getData("public/payments/stripe-billing-details-metadata")}getFormMetadata(t,i,r=!1,d=!1){return oe([this.getACHFields(),this.getCCFields()]).pipe(z(U=>{U?.length&&U.forEach((xe,tt)=>{let W=xe.find(re=>re.controlName==="savePaymentInformation");W&&i&&(r?(W.required=!0,W.disabled=!0,W.tooltipText="This payment method must be saved in order to be used for the chosen payment plan.",W.validators.push({validatorType:mt.REQUIRED,message:"This payment method must be saved in order to be used for the chosen payment plan."})):(W.required=!1,W.disabled=!1,W.tooltipText=null,W.validators=W.validators.filter(re=>re.validatorType!==mt.REQUIRED)));let nt=xe.find(re=>re.controlName==="accountNickname");nt&&(d?nt.hidden=!1:nt.hidden=!0),tt===0?this.achFields=Array.from(xe.filter(re=>i||!i&&re.controlName!=="savePaymentInformation")):this.ccFields=Array.from(xe.filter(re=>i||!i&&re.controlName!=="savePaymentInformation"))})}),K(()=>t===D.CARD?this.ccFields:this.achFields))}getClubPaymentSettings(t,i,r){return this.webAPI.postData(`public/payments/payment-vendors/${t}/site-payment-types/${i}/payment-settings`,r)}getClubActivePaymentVendor(){return this.webAPI.getData("public/payments/payment-vendors/active")}handleFailedPayment(t,i,r){r?r?.errorMessages?.length&&[w.INCORRECT_CVC,w.EXPIRED_CARD,w.INCORRECT_NUMBER,Fe.INSUFFICIENT_FUNDS].some(d=>d===r.errorMessages[0].code)?(t.showFormErrorMessage(r.errorMessages[0].text),i.showSiteErrorAlert(r.errorMessages[0].text)):r.makePaymentResultCode===He.Declined?(t.showFormErrorMessage("Payment was declined"),i.showSiteErrorAlert("Payment was declined")):r.makePaymentResultCode===He.InvalidCreditCardNumber?(i.showSiteErrorAlert("Invalid credit card"),t.showFormErrorMessage("The credit card number is either invalid or not accepted at this time.")):r.makePaymentResultCode===He.InvalidExpirationDate?(i.showSiteErrorAlert("Invalid expiration date"),t.showFormErrorMessage("Invalid expiration date.")):r.errorMessages&&r.errorMessages.length>0?(t.showFormErrorMessage(r.errorMessages[0].text),i.showSiteErrorAlert(r.errorMessages[0].text)):r.requestMessages&&r.requestMessages.length>0?(t.showFormErrorMessage(r.requestMessages[0].text),i.showSiteErrorAlert(r.requestMessages[0].text)):(t.showFormErrorMessage("There was an error completing your payment"),i.showSiteErrorAlert("There was an error completing your payment")):(t.showFormErrorMessage("There was an error completing your payment"),i.showSiteErrorAlert("There was an error completing your payment"))}submitPaymentIntent(){this.submitPaymentIntentSubj$.next()}submitSetupIntent(){this.submitSetupIntentSubj$.next()}};a.\u0275fac=function(i){return new(i||a)(F(je))},a.\u0275prov=ne({token:a,factory:a.\u0275fac});let n=a;return n})();var Mn=["billingInfoForm"],Fn=["savePaymentInfoForm"],Wt=()=>[1,2,3],_t=()=>[1,2];function wn(n,a){if(n&1&&(s(0,` 2 `),o(1,"app-dynamic-form",8,1),s(3,` 3 `),o(4,"app-dynamic-form-field",9),s(5,`
4 `),l(),s(6,` 5 `),l(),s(7,` 6 `)),n&2){let e=p(2);m(),I("fields",e.billingInfoFields)("entity",e.billingInfoEntity)("horizontalForm",!1)("showSubmitButton",!1)("subscribeToFormServiceErrors",!1)("showCancelButton",!1)("contentFieldsMode",!0)}}function Un(n,a){n&1&&(s(0,` 7 `),g(1,"app-skeleton-template",10),s(2,` 8 `))}function kn(n,a){if(n&1&&(s(0,` 9 `),o(1,"div",5),s(2,` 10 `),o(3,"div",7),s(4,"Contact Info"),l(),s(5,` 11 `),u(6,wn,8,7),u(7,Un,3,0),l(),s(8,` 12 `)),n&2){let e=p();m(6),h(e.billingInfoFields&&!e.loading&&!e.loadingConfig?6:-1),m(),h(!e.billingInfoFields||e.loading?7:-1)}}function Vn(n,a){if(n&1){let e=T();s(0,` 13 `),o(1,"ngx-stripe-address",11),S("change",function(i){E(e);let r=p(2);return b(r.addressChange(i))})("load",function(i){E(e);let r=p(2);return b(r.loadAddress(i))})("loaderror",function(i){E(e);let r=p(2);return b(r.loadError(i,"address"))}),l(),s(2,` 14 `)}if(n&2){let e=p(2);m(),I("stripe",e.stripeService)("elementsOptions",e.elementsOptions)("options",e.addressElementOptions)}}function Bn(n,a){n&1&&(s(0,` 15 `),o(1,"div",12),s(2,` 16 `),g(3,"app-skeleton-template",10),s(4,` 17 `),l(),s(5,` 18 `))}function Ln(n,a){n&1&&(s(0,` 19 `),ie(1,Bn,6,0,null,null,pe)),n&2&&(m(),se(ue(0,Wt)))}function qn(n,a){if(n&1&&(s(0,` 20 `),o(1,"div",5),s(2,` 21 `),o(3,"div",7),s(4,"Billing Info"),l(),s(5,` 22 `),u(6,Vn,3,3),u(7,Ln,3,1),l(),s(8,` 23 `)),n&2){let e=p();m(6),h(e.stripeService&&!e.loadingConfig&&(e.elementsOptions!=null&&e.elementsOptions.clientSecret)?6:-1),m(),h(e.loadingAddress?7:-1)}}function Qn(n,a){n&1&&M(0)}function jn(n,a){if(n&1&&(s(0,` 24 `),X(1,Qn,1,0,"ng-container",13),s(2,` 25 `)),n&2){p(2);let e=de(24);m(),I("ngTemplateOutlet",e)}}function Hn(n,a){if(n&1){let e=T();s(0,` 26 `),o(1,"div",15),s(2,` 27 `),o(3,"button",16),S("click",function(){E(e);let i=p(3);return b(i.toggleBankAccountCollect(!1))}),s(4,` 28 Back to connect account 29 `),l(),s(5,` 30 `),l(),s(6,` 31 `)}if(n&2){let e=p(3);m(3),I("disabled",e.confirming)}}function Gn(n,a){if(n&1){let e=T();s(0,` 32 `),o(1,"div",7),s(2,"Payment Info"),l(),s(3,` 33 `),o(4,"ngx-stripe-payment",14),S("change",function(i){E(e);let r=p(2);return b(r.change(i))})("load",function(i){E(e);let r=p(2);return b(r.load(i))})("loaderror",function(i){E(e);let r=p(2);return b(r.loadError(i,r.useSetupIntents?"setup_intent":"payment_intent"))}),s(5,` 34 `),l(),s(6,` 35 `),u(7,Hn,7,1)}if(n&2){let e=p(2);m(4),I("clientSecret",e.elementsOptions.clientSecret)("options",e.options)("elementsOptions",e.elementsOptions),m(3),h(e.enterBankDetailsManually&&!e.forceManualBankEntry?7:-1)}}function Yn(n,a){if(n&1&&(s(0,` 36 `),u(1,jn,3,1)(2,Gn,8,4)),n&2){let e=p();m(),h(e.siteDataService.isMobileUser&&e.paymentTypeID===e.PaymentType.ACH&&!e.enterBankDetailsManually?1:2)}}function $n(n,a){if(n&1){let e=T();s(0,` 37 `),o(1,"app-inline-alert",17),s(2,` 38 `),o(3,"span",18),s(4,` 39 There was a problem connecting with our payment vendor. Click `),o(5,"a",19),S("click",function(){E(e);let i=p();return i.loading=!0,b(i.showLoadError=!1)}),s(6,"here"),l(),s(7,` to retry. 40 `),l(),s(8,` 41 `),l(),s(9,` 42 `)}n&2&&(m(),I("isInline",!0))}function Kn(n,a){n&1&&(s(0,` 43 `),o(1,"app-inline-alert",24),s(2,` 44 `),o(3,"span"),s(4,` 45 Due to selections in your cart, you must save this payment method. 46 `),l(),s(5,` 47 `),l(),s(6,` 48 `)),n&2&&(m(),I("isInline",!0))}function zn(n,a){n&1&&(s(0,` 49 `),o(1,"app-inline-alert",24),s(2,` 50 `),o(3,"span"),s(4,` 51 You have selected a payment plan. You must save this payment method.
52 `),l(),s(5,` 53 `),l(),s(6,` 54 `)),n&2&&(m(),I("isInline",!0))}function Xn(n,a){if(n&1&&(s(0,` 55 `),o(1,"div",23),s(2,` 56 `),u(3,Kn,7,1),u(4,zn,7,1),l(),s(5,` 57 `)),n&2){let e=p(2);m(3),h(e.isSplitPayment?3:-1),m(),h(!e.isSplitPayment&&e.showPaymentInfoRequiredMessage?4:-1)}}function Wn(n,a){if(n&1){let e=T();s(0,` 58 `),o(1,"app-dynamic-form",20,2),s(3,` 59 `),o(4,"app-dynamic-form-field",21),S("onChange",function(i){E(e);let r=p();return b(r.savePaymentInformationChange(i))}),s(5,` 60 `),l(),s(6,` 61 `),o(7,"app-dynamic-form-field",22),s(8,` 62 `),l(),s(9,` 63 `),l(),s(10,` 64 `),u(11,Xn,6,2)}if(n&2){let e=p();m(),I("fields",e.savePaymentInfoFields)("entity",e.savePaymentInfoEntity)("horizontalForm",!1)("showSubmitButton",!1)("showCancelButton",!1)("contentFieldsMode",!0)("subscribeToFormServiceErrors",!1)("saveBlankFields",!0),m(10),h(e.savePaymentInfoRequired?11:-1)}}function Zn(n,a){n&1&&(s(0,` 65 `),o(1,"div",12),s(2,` 66 `),g(3,"app-skeleton-template",10),s(4,` 67 `),l(),s(5,` 68 `))}function Jn(n,a){n&1&&(s(0,` 69 `),ie(1,Zn,6,0,null,null,pe)),n&2&&(m(),se(ue(0,_t)))}function ei(n,a){n&1&&(s(0,` 70 `),o(1,"div",25),s(2,` 71 By submitting, I agree to the site `),o(3,"a",26),s(4,"Terms"),l(),s(5,`. 72 `),l(),s(6,` 73 `))}function ti(n,a){n&1&&(s(0,` 74 `),o(1,"div",28),s(2,` 75 `),o(3,"div",29),s(4,` 76 `),g(5,"app-skeleton-template",10),s(6,` 77 `),l(),s(7,` 78 `),o(8,"div",29),s(9,` 79 `),g(10,"app-skeleton-template",10),s(11,` 80 `),l(),s(12,` 81 `),l(),s(13,` 82 `))}function ni(n,a){n&1&&(s(0,` 83 `),o(1,"div",28),s(2,` 84 `),o(3,"div",29),s(4,` 85 `),g(5,"app-skeleton-template",30),s(6,` 86 `),l(),s(7,` 87 `),o(8,"div",29),s(9,` 88 `),g(10,"app-skeleton-template",30),s(11,` 89 `),l(),s(12,` 90 `),l(),s(13,` 91 `),o(14,"div",28),s(15,` 92 `),o(16,"div",31),s(17,` 93 `),g(18,"app-skeleton-template",10),s(19,` 94 `),l(),s(20,` 95 `),l(),s(21,` 96 `),ie(22,ti,14,0,null,null,pe)),n&2&&(m(22),se(ue(0,_t)))}function ii(n,a){n&1&&(s(0,` 97 `),o(1,"div",12),s(2,` 98 `),g(3,"app-skeleton-template",10),s(4,` 99 `),l(),s(5,` 100 `))}function si(n,a){n&1&&(s(0,` 101 `),o(1,"div",28),s(2,` 102 `),o(3,"div",32),s(4,` 103 `),g(5,"app-skeleton-template",30),s(6,` 104 `),l(),s(7,` 105 `),o(8,"div",32),s(9,` 106 `),g(10,"app-skeleton-template",30),s(11,` 107 `),l(),s(12,` 108 `),o(13,"div",32),s(14,` 109 `),g(15,"app-skeleton-template",30),s(16,` 110 `),l(),s(17,` 111 `),l(),s(18,` 112 `))}function ai(n,a){n&1&&(s(0,` 113 `),ie(1,ii,6,0,null,null,pe),ie(3,si,19,0,null,null,pe)),n&2&&(m(),se(ue(0,Wt)),m(2),se(ue(1,_t)))}function ri(n,a){n&1&&(s(0,` 114 `),g(1,"app-skeleton-template",33),s(2,` 115 `))}function oi(n,a){if(n&1&&(s(0,` 116 `),o(1,"div",27),s(2,` 117 `),u(3,ni,24,1)(4,ai,5,2)(5,ri,3,0),s(6,` 118 `),l(),s(7,` 119 `)),n&2){let e,t=p();m(3),h((e=t.paymentTypeID)===t.PaymentType.CARD?3:e===t.PaymentType.ACH?4:5)}}function li(n,a){if(n&1){let e=T();s(0,` 120 `),o(1,"div",35),s(2,` 121 `),o(3,"button",36),S("click",function(){E(e);let i=p(2);return b(i.collectBankAccount())}),s(4,` 122 Change 123 `),l(),s(5,` 124 `),l(),s(6,` 125 `)}if(n&2){let e=p(2);m(3),I("disabled",!e.addressElementValid||e.confirming)}}function mi(n,a){if(n&1){let e=T();s(0,` 126 `),o(1,"div",37),s(2,` 127 `),o(3,"button",38),S("click",function(){E(e);let i=p(2);return b(i.collectBankAccount())}),s(4,` 128 Connect Account
129 `),l(),s(5,` 130 `),l(),s(6,` 131 `)}if(n&2){let e=p(2);m(3),I("disabled",!e.addressElementValid||e.confirming)}}function ci(n,a){if(n&1&&(s(0,` 132 `),o(1,"div",6),s(2,` 133 `),o(3,"div",39),s(4,` 134 `),o(5,"div",40),s(6,` 135 Bank 136 `),l(),s(7,` 137 `),o(8,"div",41),s(9),l(),s(10,` 138 `),l(),s(11,` 139 `),o(12,"div",39),s(13,` 140 `),o(14,"div",40),s(15,` 141 Account Type 142 `),l(),s(16,` 143 `),o(17,"div",42),s(18),he(19,"uppercase"),l(),s(20,` 144 `),l(),s(21,` 145 `),o(22,"div",43),s(23,` 146 `),o(24,"div",40),s(25,` 147 Account Number 148 `),l(),s(26,` 149 `),o(27,"div",42),s(28),l(),s(29,` 150 `),l(),s(30,` 151 `),l(),s(31,` 152 `)),n&2){let e=p(2);m(9),le(` 153 `,e.paymentMethod==null||e.paymentMethod.us_bank_account==null?null:e.paymentMethod.us_bank_account.bank_name,` 154 `),m(9),le(` 155 `,Ee(19,3,e.paymentMethod==null||e.paymentMethod.us_bank_account==null?null:e.paymentMethod.us_bank_account.account_type),` 156 `),m(10),le(` 157 ******`,e.paymentMethod==null||e.paymentMethod.us_bank_account==null?null:e.paymentMethod.us_bank_account.last4,` 158 `)}}function pi(n,a){if(n&1){let e=T();s(0,` 159 `),o(1,"div",34),s(2,` 160 `),o(3,"div",7),s(4,` 161 Payment Info 162 `),l(),s(5,` 163 `),u(6,li,7,1),l(),s(7,` 164 `),u(8,mi,7,1),u(9,ci,32,5),o(10,"div",6),s(11,` 165 `),o(12,"button",16),S("click",function(){E(e);let i=p();return b(i.toggleBankAccountCollect(!0))}),s(13,` 166 Enter bank details manually instead 167 `),l(),s(14,` 168 `),l(),s(15,` 169`)}if(n&2){let e=p();m(6),h((e.setupIntent==null?null:e.setupIntent.status)===e.PaymentIntentStatus.REQUIRES_CONFIRMATION?6:-1),m(2),h((e.setupIntent==null?null:e.setupIntent.status)!==e.PaymentIntentStatus.REQUIRES_CONFIRMATION&&(e.setupIntent==null?null:e.setupIntent.status)!==e.PaymentIntentStatus.SUCCEEDED?8:-1),m(),h((e.setupIntent==null?null:e.setupIntent.status)===e.PaymentIntentStatus.REQUIRES_CONFIRMATION||(e.setupIntent==null?null:e.setupIntent.status)===e.PaymentIntentStatus.SUCCEEDED?9:-1),m(3),I("disabled",e.confirming)}}var Zt=(()=>{let a=class a{get isValid(){return this.paymentTypeID===D.CARD?this.addressElementValid&&this.paymentElementValid&&this.billingInfoForm?.isValid:this.siteDataService.isMobileUser?this.enterBankDetailsManually?this.paymentElementValid&&this.billingInfoForm?.isValid:this.addressElementValid&&this.billingInfoForm?.isValid&&(this.setupIntent?.payment_method||null)!==null:this.paymentElementValid&&this.billingInfoForm?.isValid}constructor(t,i,r,d,U){this.stripeService=t,this.sprocketStripeService=i,this.siteDataService=r,this.paymentFormService=d,this.formService=U,this.savePaymentInfoRequired=!1,this.showPaymentInfoRequiredMessage=!1,this.useSetupIntents=!1,this.isRegistration=!1,this.forceManualBankEntry=!1,this.isSplitPayment=!1,this.billing_details={},this.paymentIntentCreated=new c,this.setupIntentCreated=new c,this.valid=new c,this.paymentResult=new c,this.setupResult=new c,this.paymentElementValid=!1,this.addressElementValid=!1,this.addressElementsOptions={locale:"en",appearance:this.sprocketStripeService.elementsAppearance},this.options={layout:{type:"tabs",defaultCollapsed:!1}},this.addressElementOptions={mode:"billing",allowedCountries:["US","CA"]},this.componentInitialized=!1,this.loadingConfig=!0,this.loading=!0,this.loadingAddress=!0,this.showLoadError=!1,this.paying=!1,this.confirming=!1,this.confirmed=!1,this.PaymentIntentStatus=J,this.PaymentType=D,this.enterBankDetailsManually=!1,this.unsubscribe$=new te}ngOnChanges(t){if(t.savePaymentInfoRequired&&!t.savePaymentInfoRequired.firstChange){let i=this.savePaymentInfoForm?.value;this.savePaymentInfoRequired?(this.savePaymentInfoFields?.length&&(this.savePaymentInfoFields.find(r=>r.controlName==="accountNickname").hidden=!1,this.savePaymentInfoFields.find(r=>r.controlName==="savePaymentInformation").disabled=!0),this.paymentIntentMetadata&&(this.paymentIntentMetadata.savePaymentInformation=!0),this.savePaymentInfoEntity={savePaymentInformation:!0,accountNickname:i?.accountNickname||""}):(this.savePaymentInfoFields?.length&&(!i?.savePaymentInformation&&!this.savePaymentInfoEntity.savePaymentInformation?this.savePaymentInfoFields.find(r=>r.controlName==="accountNickname").hidden=!0:this.savePaymentInfoFields.find(r=>r.controlName==="accountNickname").hidden=!1,this.savePaymentInfoFields.find(r=>r.controlName==="savePaymentInformation").disabled=!1),this.savePaymentInfoEntity={savePaymentInformation:i?.savePaymentInformation||this.savePaymentInfoEntity.savePaymentInformation||!1,accountNickname:i?.accountNickname||""})}}
169ngOnInit(){this.enterBankDetailsManually=this.forceManualBankEntry,this.init().pipe(L(this.unsubscribe$)).subscribe()}init(){return this.valid.emit(!1),!this.useSetupIntents&&!this.paymentIntentMetadata&&De("@Input metadata not provided"),this.useSetupIntents&&!this.customerID&&De("@Input customerID not provided"),this.setInitData(),oe({config:this.config?A(this.config):this.sprocketStripeService.getConfig(),savePaymentInfo:this.customerID?this.paymentFormService.getSavePaymentInformationMetadata(this.savePaymentInfoRequired):A(null),billingInfo:this.paymentFormService.getStripeBillingDetailsMetadata()}).pipe(z(t=>{this.config=t?.config,this.stripeService.changeKey(t.config.publishableKey),t.savePaymentInfo&&(this.savePaymentInfoFields=t.savePaymentInfo.fields,this.savePaymentInfoRequired&&(this.savePaymentInfoFields.find(i=>i.controlName==="accountNickname").hidden=!1)),t.billingInfo&&(this.billingInfoFields=t.billingInfo.fields)}),ae(()=>{if(this.useSetupIntents){let t=this.getSetupIntentCreate();return this.isRegistration?(this.setupIntentID?this.sprocketStripeService.getRegistrationSetupIntent(this.paymentIntentMetadata.playerID,this.paymentIntentMetadata.entityRegistrationID,this.setupIntentID):this.sprocketStripeService.createRegistrationSetupIntent(this.paymentIntentMetadata.playerID,this.paymentIntentMetadata.entityRegistrationID,t)).pipe(z(r=>{this.setupIntent=r,this.setupIntentID=r.id}),K(r=>r.client_secret)):this.sprocketStripeService.createSetupIntent(t,this.setupIntentClubStripeConnectedAccountID).pipe(z(i=>{this.setupIntent=i.setupIntent,this.setupIntentID=i.setupIntent.id,i.accountID&&this.stripeService.changeKey(this.config.publishableKey,{stripeAccount:i.accountID})}),K(i=>i.setupIntent.client_secret))}else{let t=this.getPaymentIntentCreate();return this.sprocketStripeService.createPaymentIntent(t).pipe(z(i=>{this.paymentIntent=i}),K(i=>i.client_secret))}}),ae(t=>(this.elementsOptions.clientSecret=t,this.paymentIntent&&this.paymentIntentCreated.emit(this.paymentIntent),this.setupIntent&&this.setupIntentCreated.emit(this.setupIntent),this.setBillingInfo(),this.loadingConfig=!1,this.siteDataService.isMobileUser&&(this.loading=!1),A(!0))),Ve(()=>(this.siteDataService.showSiteErrorAlertDefaultGET(),A(!1))),L(this.unsubscribe$))}setInitData(){this.savePaymentInfoRequired&&this.paymentIntentMetadata&&(this.paymentIntentMetadata.savePaymentInformation=!0),this.useSetupIntents?this.elementsOptions={locale:"en",paymentMethodCreation:"manual",currency:"usd",appearance:this.sprocketStripeService.elementsAppearance}:this.elementsOptions={locale:"en",appearance:this.sprocketStripeService.elementsAppearance},this.paymentTypeID===D.CARD?this.options.fields={billingDetails:{email:"never",name:"never",address:{city:"never",country:"never",line1:"never",line2:"never",postalCode:"never",state:"never"}}}:this.options.fields={billingDetails:{email:"never"}},this.elementsOptions.loader="always",this.savePaymentInfoEntity={savePaymentInformation:this.savePaymentInfoRequired,accountNickname:""}}setBillingInfo(){this.setupIntent?.payment_method&&typeof this.setupIntent.payment_method=="object"&&(this.paymentMethod=this.setupIntent.payment_method,this.paymentMethod.billing_details&&(this.billing_details=this.paymentMethod.billing_details,this.email=this.paymentMethod.billing_details.email)),Y("prepopulate billing details",this.billing_details),Y("prepopulate email",this.email),this.options.defaultValues={billingDetails:this.billing_details},this.addressElementOptions.defaultValues=this.billing_details,this.billingInfoEntity={email:this.email||""}}change(t){Y(t),t.complete?this.paymentElementValid=!0:this.paymentElementValid=!1,this.valid.emit(this.isValid)}addressChange(t){t.complete?this.addressElementValid=!0:this.addressElementValid=!1,this.valid.emit(this.isValid)}load(t){Y("load",t),this.loading=!1,this.paymentIntentIDToCancel&&this.sprocketStripeService.cancelPaymentIntent(this.paymentIntentIDToCancel).pipe(Pe(1),Ve(()=>A(null)),z(()=>this.paymentIntentIDToCancel=null)).subscribe()}loadAddress(t){Y("load",t),this.loadingAddress=!1}loadError(t,i){Y(`loadError-${i}`,t),this.loading=!1,this.showLoadError=!0}savePaymentInformationChange(t){(t!==this.savePaymentInfoEntity.savePaymentInformation||t)&&(this.savePaymentInfoEntity.savePaymentInformation=t),this.savePaymentInfoFields.find(i=>i.controlName==="accountNickname").hidden=!t,this.savePaymentInfoFields=Array.from(this.savePaymentInfoFields)}collectBankAccount(){this.collectBillingDetails().pipe(ae(t=>t?(this.billingDetails=t,this.stripeService.collectBankAccountForSetup({clientSecret:this.elementsOptions.clientSecret,params:{payment_method_type:"us_bank_account",payment_method_data:{billing_details:this.billingDetails}}}).pipe(ae(i=>(Y(i),!i||i?.error?(this.setupResult.emit({success:!1,result:i}),A(null)):this.sprocketStripeService.getRegistrationSetupIntent(this.paymentIntentMetadata.playerID,this.paymentIntentMetadata.entityRegistrationID,this.setupIntentID))))):A(null)),L(this.unsubscribe$)).subscribe({next:t=>{t&&(this.setupIntent=t,this.paymentMethod=this.setupIntent.payment_method),this.valid.emit(this.isValid)},error:t=>{De(t),this.setupResult.emit({success:!1})}})}
169toggleBankAccountCollect(t){this.enterBankDetailsManually=t,this.setupIntent=null,this.setupIntentID=null,this.init().pipe(L(this.unsubscribe$)).subscribe()}confirm(){this.confirmed?(Y("payment/setup already confirmed"),!this.useSetupIntents&&this.paymentIntentResult?this.paymentResult.emit(this.paymentIntentResult):this.setupIntentResult&&this.setupResult.emit(this.setupIntentResult)):this.savePaymentInfoForm&&!this.savePaymentInfoForm.isValid?(this.savePaymentInfoForm.submitForm(),this.formService.hideFormLoader()):this.billingInfoForm&&!this.billingInfoForm.isValid?(this.billingInfoForm.submitForm(),this.formService.hideFormLoader()):(this.confirming=!0,this.collectBillingDetails().pipe(L(this.unsubscribe$)).subscribe({next:t=>{this.billingDetails=t,this.useSetupIntents?this.confirmSetupIntent():this.confirmPaymentIntent()},error:t=>{De(t)}}))}confirmPaymentIntent(){let t=A(null);this.savePaymentInfoForm&&(this.savePaymentInfoRequired&&this.savePaymentInfoForm.value.accountNickname||this.savePaymentInfoForm?.value.savePaymentInformation)&&(t=this.sprocketStripeService.updatePaymentIntentSavePaymentInfo(this.paymentIntent.id,{savePaymentInformation:this.savePaymentInfoForm.value.savePaymentInformation,accountNickname:this.savePaymentInfoForm.value.accountNickname})),this.paying=!0,t.pipe(ae(()=>this.stripeService.confirmPayment({elements:this.paymentElement.elements,confirmParams:{payment_method_data:{billing_details:this.billingDetails}},redirect:"if_required"}))).subscribe({next:i=>{this.paying=!1,i?.paymentIntent?.status===J.REQUIRES_ACTION?this.stripeService.handleNextAction({clientSecret:this.elementsOptions.clientSecret}):(!i.error&&(i.paymentIntent?.status===J.SUCCEEDED||i.paymentIntent?.status===J.PROCESSING)?(this.paymentIntentResult={success:!0,result:i},this.paymentIntent=i.paymentIntent,this.confirmed=!0):this.paymentIntentResult={success:!1,result:i},this.paymentResult.emit(this.paymentIntentResult)),this.confirming=!1},error:()=>{this.paymentIntentResult={success:!1},this.paymentResult.emit(this.paymentIntentResult),this.confirming=!1}})}confirmSetupIntent(){let t={confirmParams:{payment_method_data:{billing_details:this.billingDetails}},redirect:"if_required"};this.siteDataService.isMobileUser&&this.paymentTypeID===D.ACH&&!this.enterBankDetailsManually?t.clientSecret=this.elementsOptions.clientSecret:t.elements=this.paymentElement.elements,this.stripeService.confirmSetup(t).subscribe({next:i=>{Y(i),this.paying=!1,i.setupIntent?.status===J.REQUIRES_ACTION?this.stripeService.handleNextAction({clientSecret:this.elementsOptions.clientSecret}):(!i.error&&(i.setupIntent?.status===J.SUCCEEDED||i.setupIntent?.status===J.PROCESSING)?(this.confirmed=!0,this.setupIntentResult={success:!0,result:i},this.setupIntent=i.setupIntent,Y("confirmed setup",this.setupIntent)):this.setupIntentResult={success:!1,result:i},this.setupResult.emit(this.setupIntentResult)),this.confirming=!1},error:i=>{De(i),this.setupIntentResult={success:!1},this.setupResult.emit(this.setupIntentResult),this.confirming=!1}})}getPaymentIntentCreate(){let t=new Me;return t.clubPaymentFeeStructureID=this.clubPaymentFeeStructureID,t.clubStripeConnectedAccountID=this.clubStripeConnectedAccountID,t.paymentTypeID=this.paymentTypeID,t.customerID=this.customerID,t.metadata=this.paymentIntentMetadata,t.isMobile=this.siteDataService.isMobileUser,t}getSetupIntentCreate(){let t=new Je;return t.paymentTypeID=this.paymentTypeID,t.metadata=new Ze(this.paymentTypeID),t.isMobile=this.siteDataService.isMobileUser,t.isRegistration=this.isRegistration,t.financialConnectionsRedirectUrl=this.siteDataService.isMobileUser?this.toAppReturnUrl(this.financialConnectionsRedirectUrl):this.financialConnectionsRedirectUrl,t.enterBankManually=this.enterBankDetailsManually,t}toAppReturnUrl(t){try{let i=new URL(t);i.searchParams.set("mobileAppUser","true");let r=i.pathname+i.search+i.hash,d=new URL(`${i.origin}/app-return`);return d.searchParams.set("mobileAppUser","true"),d.searchParams.set("to",r),d.toString()}catch(i){return t}}collectBillingDetails(){let t={};return t.email=this.billingInfoForm?.value?.email,this.addressElement?y(this.addressElement.getValue()).pipe(z(i=>{i.value&&(t.name=i.value.name,t.address=i.value.address)}),ae(()=>A(t))):A(t)}ngOnDestroy(){!this.confirmed&&this.paymentIntent?.id&&this.sprocketStripeService.cancelPaymentIntent(this.paymentIntent.i
169d).pipe(Pe(1),Ve(()=>A(null))).subscribe(),this.unsubscribe$.next(),this.unsubscribe$.complete()}};a.\u0275fac=function(i){return new(i||a)(C(Ie),C(Ce),C(Ae),C(ge),C(Ye))},a.\u0275cmp=N({type:a,selectors:[["app-stripe-payment-element"]],viewQuery:function(i,r){if(i&1&&O(We,5)(ce,5)(Mn,5)(Fn,5),i&2){let d;v(d=P())&&(r.paymentElement=d.first),v(d=P())&&(r.addressElement=d.first),v(d=P())&&(r.billingInfoForm=d.first),v(d=P())&&(r.savePaymentInfoForm=d.first)}},inputs:{config:"config",clubStripeConnectedAccountID:"clubStripeConnectedAccountID",setupIntentClubStripeConnectedAccountID:"setupIntentClubStripeConnectedAccountID",clubPaymentFeeStructureID:"clubPaymentFeeStructureID",paymentTypeID:"paymentTypeID",paymentIntentMetadata:"paymentIntentMetadata",savePaymentInfoRequired:"savePaymentInfoRequired",showPaymentInfoRequiredMessage:"showPaymentInfoRequiredMessage",customerID:"customerID",useSetupIntents:"useSetupIntents",isRegistration:"isRegistration",forceManualBankEntry:"forceManualBankEntry",financialConnectionsRedirectUrl:"financialConnectionsRedirectUrl",isSplitPayment:"isSplitPayment",email:"email",billing_details:"billing_details",setupIntentID:"setupIntentID"},outputs:{paymentIntentCreated:"paymentIntentCreated",setupIntentCreated:"setupIntentCreated",valid:"valid",paymentResult:"paymentResult",setupResult:"setupResult"},standalone:!1,features:[R],decls:25,vars:9,consts:[["mobileACH",""],["billingInfoForm",""],["savePaymentInfoForm",""],[1,"my-3",3,"hidden"],[1,"stripe-payment-element"],[1,"card"],[1,"mt-3"],[1,"text-navy","text-medium","mb-2","fw-600"],["formID","billing-info-form",3,"fields","entity","horizontalForm","showSubmitButton","subscribeToFormServiceErrors","showCancelButton","contentFieldsMode"],["fieldName","email","formID","billing-info-form"],["height","2.5rem"],[3,"change","load","loaderror","stripe","elementsOptions","options"],[1,"mb-3"],[4,"ngTemplateOutlet"],[3,"change","load","loaderror","clientSecret","options","elementsOptions"],[1,"mt-2"],["type","button",1,"btn","btn-naked","m-0","p-0","text-medium",3,"click","disabled"],["alertType","error",3,"isInline"],[1,"text-medium","fw-600"],["href","javascript:void(0)",3,"click"],["formID","payment-info-form",3,"fields","entity","horizontalForm","showSubmitButton","showCancelButton","contentFieldsMode","subscribeToFormServiceErrors","saveBlankFields"],["fieldName","savePaymentInformation","formID","payment-info-form",3,"onChange"],["fieldName","accountNickname","formID","payment-info-form"],[1,""],["alertType","info",3,"isInline"],[1,"text-small","text-grey","mb-3"],["href","/terms-and-conditions","target","_blank","rel","noopener noreferrer"],[1,"my-3"],[1,"mb-3","row","d-flex","align-items-center"],[1,"col-6"],["height","5rem"],[1,"col-12"],[1,"col-4"],["skeletonType","form-no-buttons"],[1,"mb-2","d-flex","align-items-center"],[1,"d-flex","justify-content-end","ml-auto"],[1,"btn","btn-naked","btn-icon-edit","text-medium",3,"click","disabled"],[1,"mt-3","d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","btn-icon-chevron-right-after","full-width",3,"click","disabled"],[1,"row","mb-2","text-medium","text-grey"],[1,"col-md-6","fw-600"],[1,"col-md-6","nowrap"],[1,"col-md-6"],[1,"row","text-medium","text-grey"]],template:function(i,r){i&1&&(Pt(0),s(1,` 170 `),o(2,"div",3),s(3,` 171 172 `),u(4,kn,9,2),u(5,qn,9,2),o(6,"div",4),s(7,` 173 `),o(8,"div",5),s(9,` 174 `),u(10,Yn,3,1),o(11,"div",6),s(12,` 175 `),u(13,$n,10,1),u(14,Wn,12,9),u(15,Jn,3,1),l(),s(16,` 176 `),u(17,ei,7,0),l(),s(18,` 177 `),l(),s(19,` 178 `),l(),s(20,` 179 `),u(21,oi,8,1),Et(),s(22,` 180 181`),X(23,pi,16,4,"ng-template",null,0,be)),i&2&&(m(2),I("hidden",r.loading),m(2),h(r.billingInfoFields&&!r.loading?4:-1),m(),h(!r.showLoadError&&(r.paymentTypeID===r.PaymentType.CARD||r.siteDataService.isMobileUser&&r.paymentTypeID===r.PaymentType.ACH&&!r.enterBankDetailsManually)?5:-1),m(5),h(!r.showLoadError&&!r.loadingConfig&&(r.elementsOptions!=null&&r.elementsOptions.clientSecret)?10:-1),m(3),h(r.showLoadError?13:-1),m(),h(r.savePaymentInfoFields&&!r.loading&&(!r.siteDataService.isMobileUser||r.paymentTypeID===r.PaymentType.CARD||(r.setupIntent==null?null:r.setupIntent.status)===r.PaymentIntentStatus.REQUIRES_CONFIRMATION||r.enterBankDetail
181sManually)?14:-1),m(),h(r.customerID&&(!r.savePaymentInfoFields||r.loading)?15:-1),m(2),h(r.paymentTypeID===r.PaymentType.ACH?17:-1),m(4),h(r.loading?21:-1))},dependencies:[k,Oe,$e,Ne,Re,ce,We,Dt],encapsulation:2});let n=a;return n})();var ui=()=>[1,2,3];function hi(n,a){if(n&1){let e=T();s(0,` 182 `),o(1,"ngx-stripe-address",0),S("change",function(i){E(e);let r=p();return b(r.addressChange(i))})("loaderror",function(i){E(e);let r=p();return b(r.loadError(i))})("load",function(){E(e);let i=p();return b(i.load())}),l(),s(2,` 183`)}if(n&2){let e=p();m(),I("stripe",e.stripeService)("elementsOptions",e.elementsOptions)("options",e.addressElementOptions)}}function yi(n,a){if(n&1&&(s(0,` 184 `),o(1,"div",1),s(2,` 185 `),g(3,"app-skeleton-template",2),s(4,` 186 `),l(),s(5,` 187 `)),n&2){let e=a.$index;m(),Z("mt-3",e===0)}}function fi(n,a){n&1&&(s(0,` 188 `),ie(1,yi,6,2,null,null,pe)),n&2&&(m(),se(ue(0,ui)))}var za=(()=>{let a=class a{constructor(t,i,r){this.stripeService=t,this.sprocketStripeService=i,this.siteDataService=r,this.billing_details={},this.valid=new c,this.loaded=new c,this.value=new c,this.addressElementValid=!1,this.elementsOptions={locale:"en",appearance:this.sprocketStripeService.elementsAppearance},this.addressElementOptions={mode:"billing",allowedCountries:["US","CA"],display:{name:"split"}},this.componentInitialized=!1,this.loadingConfig=!0,this.loading=!0,this.showLoadError=!1,this.paying=!1,this.confirmed=!1,this.PaymentType=D,this.unsubscribe$=new te}ngOnInit(){console.log(this.billing_details),this.valid.emit(!1),this.setInitData(),oe({config:this.config?A(this.config):this.sprocketStripeService.getConfig()}).pipe(z(t=>{this.config=t?.config,this.stripeService.changeKey(t.config.publishableKey)}),L(this.unsubscribe$)).subscribe({next:()=>{this.loadingConfig=!1},error:()=>{this.siteDataService.showSiteErrorAlertDefaultGET()}})}setInitData(){this.addressElementOptions.defaultValues=this.billing_details}addressChange(t){t.complete?(this.addressElementValid=!0,this.value.emit(this.collectBillingDetails())):this.addressElementValid=!1,this.valid.emit(this.addressElementValid)}load(){this.loading=!1,this.loaded.emit()}loadError(t){this.loading=!1,this.showLoadError=!0}collectBillingDetails(){let t={};return this.addressElement&&y(this.addressElement.getValue()).subscribe({next:i=>{i.value&&(t.firstName=i.value.firstName,t.lastName=i.value.lastName,t.address=i.value.address)}}),console.log(t),t}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};a.\u0275fac=function(i){return new(i||a)(C(Ie),C(Ce),C(Ae))},a.\u0275cmp=N({type:a,selectors:[["app-stripe-address-element"]],viewQuery:function(i,r){if(i&1&&O(ce,5),i&2){let d;v(d=P())&&(r.addressElement=d.first)}},inputs:{config:"config",customerID:"customerID",billing_details:"billing_details"},outputs:{valid:"valid",loaded:"loaded",value:"value"},standalone:!1,decls:2,vars:2,consts:[[3,"change","loaderror","load","stripe","elementsOptions","options"],[1,"mb-3"],["height","2.5rem"]],template:function(i,r){i&1&&(u(0,hi,3,3),u(1,fi,3,1)),i&2&&(h(r.stripeService&&!r.loadingConfig?0:-1),m(),h(r.loading?1:-1))},dependencies:[Ne,ce],encapsulation:2});let n=a;return n})();var Ct=(()=>{let a=class a{};a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=Te({type:a}),a.\u0275inj=Se({providers:[Ie,Ce],imports:[Ke,Gt.forRoot("",{betas:["blocked_card_brands_beta_2"]})]});let n=a;return n})();function Ii(n,a){if(n&1){let e=T();s(0,` 189 `),o(1,"app-dynamic-form",0),S("valueChanges",function(i){E(e);let r=p();return b(r.formChanged(i))}),s(2,` 190 `),o(3,"app-dynamic-form-field",1),s(4,` 191 `),l(),s(5,` 192 `),o(6,"app-dynamic-form-field",2),s(7,` 193 `),l(),s(8,` 194 `),g(9,"app-dynamic-form-field",3),s(10,` 195 `),g(11,"app-dynamic-form-field",4),s(12,` 196 `),g(13,"app-dynamic-form-field",5),s(14,` 197 `),o(15,"app-dynamic-form-field",6),s(16,` 198 `),l(),s(17,` 199 `),g(18,"app-dynamic-form-field",7),s(19,` 200 `),g(20,"app-dynamic-form-field",8),s(21,` 201 `),g(22,"app-dynamic-form-field",9),s(23,` 202 `),g(24,"app-dynamic-form-field",10),s(25,` 203 `),g(26,"app-dynamic-form-field",11),s(27,` 204 `),g(28,"app-dynamic-form-field",12),s(29,` 205 `),g(30,"app-dynamic-form-field",13),s(31,` 206 `),g(32,"app-dynamic-form-field",14),s(33,` 207 `),o(34,"app-dynamic-form-field",15),S("onChange",function(i){E(e);let r=p();return b(r.savePaymentInformationChange(i))}),s(35,`
208 `),l(),s(36,` 209 `),g(37,"app-dynamic-form-field",16),s(38,` 210 `),l(),s(39,` 211`)}if(n&2){let e=p();m(),I("fields",e.fields)("entity",e.entity)("horizontalForm",!0)("showSubmitButton",e.showSubmitButton)("showCancelButton",e.showCancelButton)("contentFieldsMode",!0)("subscribeToFormServiceErrors",e.subscribeToFormServiceErrors),m(14),I("preventPaste",!0)}}function gi(n,a){if(n&1){let e=T();s(0,` 212 `),o(1,"app-dynamic-form",0),S("valueChanges",function(i){E(e);let r=p();return b(r.formChanged(i))}),s(2,` 213 `),o(3,"div",17),s(4,` 214 `),o(5,"div",18),s(6,` 215 `),o(7,"app-dynamic-form-field",1),s(8,` 216 `),l(),s(9,` 217 `),l(),s(10,` 218 `),o(11,"div",18),s(12,` 219 `),o(13,"app-dynamic-form-field",2),s(14,` 220 `),l(),s(15,` 221 `),l(),s(16,` 222 `),l(),s(17,` 223 `),o(18,"div",17),s(19,` 224 `),o(20,"div",19),s(21,` 225 `),g(22,"app-dynamic-form-field",7),s(23,` 226 `),g(24,"app-dynamic-form-field",8),s(25,` 227 `),l(),s(26,` 228 `),l(),s(27,` 229 `),o(28,"div",17),s(29,` 230 `),o(30,"div",19),s(31,` 231 `),o(32,"app-dynamic-form-field",3),s(33,` 232 `),l(),s(34,` 233 `),o(35,"app-dynamic-form-field",4),s(36,` 234 `),l(),s(37,` 235 `),o(38,"app-dynamic-form-field",5),s(39,` 236 `),l(),s(40,` 237 `),g(41,"app-dynamic-form-field",6),s(42,` 238 `),l(),s(43,` 239 `),l(),s(44,` 240 `),o(45,"div",17),s(46,` 241 `),o(47,"div",18),s(48,` 242 `),g(49,"app-dynamic-form-field",9),s(50,` 243 `),l(),s(51,` 244 `),o(52,"div",18),s(53,` 245 `),g(54,"app-dynamic-form-field",10),s(55,` 246 `),l(),s(56,` 247 `),l(),s(57,` 248 `),o(58,"div",17),s(59,` 249 `),o(60,"div",19),s(61,` 250 `),g(62,"app-dynamic-form-field",11),s(63,` 251 `),l(),s(64,` 252 `),l(),s(65,` 253 `),o(66,"div",17),s(67,` 254 `),o(68,"div",18),s(69,` 255 `),o(70,"app-dynamic-form-field",12),s(71,` 256 `),l(),s(72,` 257 `),l(),s(73,` 258 `),o(74,"div",18),s(75,` 259 `),o(76,"app-dynamic-form-field",13),s(77,` 260 `),l(),s(78,` 261 `),l(),s(79,` 262 `),l(),s(80,` 263 `),o(81,"div",17),s(82,` 264 `),o(83,"div",19),s(84,` 265 `),g(85,"app-dynamic-form-field",14),s(86,` 266 `),o(87,"app-dynamic-form-field",15),S("onChange",function(i){E(e);let r=p();return b(r.savePaymentInformationChange(i))}),s(88,` 267 `),l(),s(89,` 268 `),o(90,"app-dynamic-form-field",16),s(91,` 269 `),l(),s(92,` 270 `),l(),s(93,` 271 `),l(),s(94,` 272 `),l(),s(95,` 273`)}if(n&2){let e=p();m(),I("fields",e.fields)("entity",e.entity)("horizontalForm",!1)("showSubmitButton",e.showSubmitButton)("showCancelButton",e.showCancelButton)("contentFieldsMode",!0)("subscribeToFormServiceErrors",e.subscribeToFormServiceErrors),m(40),I("preventPaste",!0)}}function vi(n,a){n&1&&(s(0,` 274 `),o(1,"div",20),s(2,` 275 `),o(3,"app-inline-alert",21),s(4,` 276 `),o(5,"span"),s(6,` 277 You have selected a payment plan. You must save this payment method. 278 `),l(),s(7,` 279 `),l(),s(8,` 280 `),l(),s(9,` 281`)),n&2&&(m(3),I("isInline",!0))}function Pi(n,a){n&1&&(s(0,` 282 `),o(1,"div",22),s(2,` 283 By submitting, I agree to the site `),o(3,"a",23),s(4,"Terms"),l(),s(5,`. 284`),l(),s(6,` 285`))}var et=(()=>{let a=class a{constructor(t,i,r){this.paymentFormService=t,this.userService=i,this.authorizeService=r,this.PaymentTypes=D,this.showSubmitButton=!1,this.submitButtonText="Save",this.showCancelButton=!1,this.cancelButtonText="Cancel",this.submitButtonSavingText="Submitting",this.savePaymentInfoRequired=!1,this.showPaymentInfoRequiredMessage=!1,this.subscribeToFormServiceErrors=!0,this.horizontalForm=!0,this.onSubmit=new c,this.onCancel=new c,this.formChanges=new c,this.unsubscribe$=new te,this.entity={}}ngOnChanges(t){t&&t.paymentTypeID&&!t.paymentTypeID.firstChange?this.setFormFields(this.savePaymentInfoRequired):t&&t.savePaymentInfoRequired&&!t.savePaymentInfoRequired.firstChange&&this.setFormFields(this.savePaymentInfoRequired)}ngOnInit(){this.currentClubUser?.user?(this.entity.firstName=this.currentClubUser.user.firstName,this.entity.lastName=this.currentClubUser.user.lastName):(this.entity.firstName=this.firstName,this.entity.lastName=this.lastName),this.savePaymentInfoRequired&&(this.entity.savePaymentInformation=!0),this.authorizeService.getUser().pipe(Pe(1)).subscribe({next:t=>{this.user=t,this.setFormFields(this.savePaymentInfoRequired)}})}formChanged(t){this.formChanges.emit(t)}savePaymentInformationChange(t){t!==this.entity.savePaymentInformation||t?(this.entity.savePaymentInformation=t,this.setFormFields(t)):this.setFormFields(this.savePaymentInfoRequired)}setFormFields(t=!1){let i=this.user!==null&&this.user!==void 0;this.paymentFormService.getFormMetadata(this.paymentTypeID,i,this.savePaymentInfoRequired,t).pipe(L(this.unsubscribe$)).subscribe(r=>{this.savePaymentInfoRequired&&this.dynamicForm&&(this.entity=ve(Q({},this.dynamicForm.entity),{savePaymentInformation:!0})),this.fields=Array.from(r),this.dynamicForm&&this.formChanges.emit(this.dynamicForm.value)})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}};a.\u0275fac=function(i){return new(i||a)(C(ge),C(Ge),C(Qe))},a.\u0275cmp=N({type:a,selectors:[["app-payment-info-form"]],viewQuery:function(i,r){if(i&1&&O(Oe,5),i&2){let d;v(d=P())&&(r.dynamicForm=d.first)}},inputs:{paymentTypeID:"paymentTypeID",firstName:"firstName",lastName:"lastName",showSubmitButton:"showSubmitButton",submitButtonText:"submitButtonText",showCancelButton:"showCancelButton",cancelButtonText:"cancelButtonText",submitButtonSavingText:"submitButtonSavingText",savePaymentInfoRequired:"savePaymentInfoRequired",showPaymentInfoRequiredMessage:"showPaymentInfoRequiredMessage",selectedClubUserPaymentMethodID:"selectedClubUserPaymentMethodID",subscribeToFormServiceErrors:"subscribeToFormServiceErrors",currentClubUser:"currentClubUser",horizontalForm:"horizontalForm"},outputs:{onSubmit:"onSubmit",onCancel:"onCancel",formChanges:"formChanges"},standalone:!1,features:[R],decls:4,vars:4,consts:[["formID","payment-info-form",3,"valueChanges","fields","entity","horizontalForm","showSubmitButton","showCancelButton","contentFieldsMode","subscribeToFormServiceErrors"],["fieldName","firstName","formID","payment-info-form"],["fieldName","lastName","formID","payment-info-form"],["fieldName","bankAccountType","formID","payment-info-form"],["fieldName","rout
285ingNumber","formID","payment-info-form"],["fieldName","accountNumber","formID","payment-info-form"],["fieldName","confirmAccountNumber","formID","payment-info-form",3,"preventPaste"],["fieldName","address","formID","payment-info-form"],["fieldName","city","formID","payment-info-form"],["fieldName","state","formID","payment-info-form"],["fieldName","zip","formID","payment-info-form"],["fieldName","ccNumber","formID","payment-info-form"],["fieldName","ccExpiryMonth","formID","payment-info-form"],["fieldName","ccExpiryYear","formID","payment-info-form"],["fieldName","cccvv","formID","payment-info-form"],["fieldName","savePaymentInformation","formID","payment-info-form",3,"onChange"],["fieldName","accountNickname","formID","payment-info-form"],[1,"row"],[1,"col-md-6"],[1,"col-md-12"],[1,""],["alertType","info",3,"isInline"],[1,"ach-terms","text-medium","text-grey","mb-3"],["href","/terms-and-conditions","target","_blank","rel","noopener noreferrer"]],template:function(i,r){i&1&&(u(0,Ii,40,8),u(1,gi,96,8),u(2,vi,10,1),u(3,Pi,7,0)),i&2&&(h(r.fields&&r.horizontalForm?0:-1),m(),h(r.fields&&!r.horizontalForm?1:-1),m(),h(r.savePaymentInfoRequired&&r.showPaymentInfoRequiredMessage?2:-1),m(),h(r.paymentTypeID===r.PaymentTypes.ACH?3:-1))},dependencies:[Oe,$e,Re],styles:[".ach-terms[_ngcontent-%COMP%]{font-size:var(--text-default);line-height:2} form:not(.horizontal-form) .form-group .form-dropdown{max-width:100%;width:100%}"]});let n=a;return n})();var bi=["stripeForm"],xi=["*"],Si=(n,a)=>a.paymentTypeID,Ti=(n,a)=>a.clubUserPaymentMethodID;function Di(n,a){n&1&&(s(0,` 286`),o(1,"div",5),s(2,` 287 `),g(3,"app-skeleton-template"),s(4,` 288`),l(),s(5,` 289`))}function Ai(n,a){n&1&&(s(0,` 290 `),o(1,"h3",24),s(2,` 291 Payment 292 `),l(),s(3,` 293 `))}function Ri(n,a){n&1&&(s(0,` 294 `),g(1,"i",25),s(2,` 295 `))}function Ni(n,a){n&1&&(s(0,` 296 `),g(1,"i",26),s(2,` 297 `))}function Oi(n,a){if(n&1&&(s(0,` 298 `),o(1,"span"),s(2,` 299 `),u(3,Ri,3,0),u(4,Ni,3,0),l(),s(5,` 300 `)),n&2){let e=p(2);m(3),h(e.paymentTypeID===e.PaymentTypes.ACH?3:-1),m(),h(e.paymentTypeID===e.PaymentTypes.CARD?4:-1)}}function Mi(n,a){if(n&1&&(s(0,` 301 `),o(1,"app-tooltip",27),he(2,"sprocketCurrency"),s(3),l(),s(4,` 302 `)),n&2){let e=p(4);m(),I("useIcon",!1)("tooltipText","Your account will be charged a service fee of "+Ee(2,3,e.selectedClubPaymentFee.userFee)+` The service fee covers several costs, including software maintenance, customer 303 support and payment processing.`),m(2),st(e.selectedClubPaymentFee.paymentType.paymentType)}}function Fi(n,a){if(n&1&&(s(0,` 304 `),o(1,"app-tooltip",27),he(2,"sprocketCurrency"),s(3),l(),s(4,` 305 `)),n&2){let e=p(4);m(),I("useIcon",!1)("tooltipText","Your card will be charged a service fee of "+Ee(2,3,e.selectedClubPaymentFee.userFee)+` The service fee covers several costs, including software maintenance, customer 306 support and payment processing.`),m(2),st(e.selectedClubPaymentFee.paymentType.paymentType)}}function wi(n,a){if(n&1&&(s(0,` 307 `),s(1,` 308 `),u(2,Mi,5,5),u(3,Fi,5,5)),n&2){let e=p(3);m(2),h(e.paymentTypeID===e.PaymentTypes.ACH?2:-1),m(),h(e.paymentTypeID===e.PaymentTypes.CARD?3:-1)}}function Ui(n,a){if(n&1&&s(0),n&2){let e=p(3);le(` 309 `,e.selectedClubPaymentFee.paymentType.paymentType,` 310 `)}}function ki(n,a){if(n&1&&(s(0,` 311 `),o(1,"span"),s(2,` 312 `),u(3,wi,4,2)(4,Ui,1,1),l(),s(5,` 313 `)),n&2){let e=p(2);m(3),h((e.selectedClubPaymentFee==null?null:e.selectedClubPaymentFee.userFee)>0?3:4)}}function Vi(n,a){n&1&&(s(0,` 314 `),o(1,"div",28),s(2,` 315 `),g(3,"i",29),s(4,`
316 `),l(),s(5,` 317 `))}function Bi(n,a){n&1&&(s(0,` 318 `),o(1,"div",30),s(2,` 319 `),g(3,"app-tooltip",31),s(4,` 320 `),l(),s(5,` 321 `))}function Li(n,a){n&1&&M(0)}function qi(n,a){if(n&1&&(s(0,` 322 `),o(1,"div"),s(2),he(3,"ellipsis"),l(),s(4,` 323 `)),n&2){let e=p(3);m(2),le(` 324 `,St(3,1,e.selectedClubUserPaymentMethod.accountNickname,20),` 325 `)}}function Qi(n,a){if(n&1&&(s(0,` 326 `),o(1,"div"),s(2),l(),s(3,` 327 `)),n&2){let e=p(4);m(2),at(` 328 `,e.selectedClubUserPaymentMethod.cardType,` - 329 `,e.selectedClubUserPaymentMethod.ccNumber,` 330 `)}}function ji(n,a){if(n&1&&(s(0,` 331 `),o(1,"div"),s(2),l(),s(3,` 332 `)),n&2){let e=p(4);m(2),at(` 333 `,e.selectedClubUserPaymentMethod.bankAccountType.description,` - 334 `,e.selectedClubUserPaymentMethod.accountNumber,` 335 `)}}function Hi(n,a){if(n&1&&(s(0,` 336 `),u(1,Qi,4,2),u(2,ji,4,2)),n&2){let e=p(3);m(),h(e.selectedClubUserPaymentMethod.cardType&&e.selectedClubUserPaymentMethod.ccNumber?1:-1),m(),h(e.selectedClubUserPaymentMethod.accountNumber&&(e.selectedClubUserPaymentMethod.bankAccountType!=null&&e.selectedClubUserPaymentMethod.bankAccountType.description)?2:-1)}}function Gi(n,a){if(n&1&&(s(0,` 337 `),o(1,"div"),s(2,` 338 `),u(3,qi,5,4),u(4,Hi,3,2),l(),s(5,` 339 `)),n&2){let e=p(2);m(3),h(e.selectedClubUserPaymentMethod.accountNickname?3:-1),m(),h(e.selectedClubUserPaymentMethod.accountNickname?-1:4)}}function Yi(n,a){n&1&&(s(0,` 340 `),o(1,"div",28),s(2,` 341 `),g(3,"i",29),s(4,` 342 `),l(),s(5,` 343 `))}function $i(n,a){n&1&&(s(0,` 344 `),g(1,"app-tooltip",32),s(2,` 345 `))}function Ki(n,a){n&1&&(s(0,` 346 `),g(1,"app-tooltip",33),s(2,` 347 `))}function zi(n,a){if(n&1&&(s(0,` 348 `),o(1,"div",30),s(2,` 349 `),u(3,$i,3,0),u(4,Ki,3,0),l(),s(5,` 350 `)),n&2){let e=p(2);m(3),h(e.selectedClubUserPaymentMethod?-1:3),m(),h((e.selectedClubUserPaymentMethod==null?null:e.selectedClubUserPaymentMethod.clubUserPaymentMethodID)===e.NEW_PAYMENT_METHOD_ID?4:-1)}}function Xi(n,a){n&1&&M(0)}function Wi(n,a){if(n&1&&(s(0,` 351 `),o(1,"div",34),s(2),l(),s(3,` 352 `)),n&2){let e=p(2);m(2),le(` 353 `,e.stripeError,` 354 `)}}function Zi(n,a){if(n&1){let e=T();s(0,` 355`),o(1,"div",6),s(2,` 356 `),u(3,Ai,4,0),xt(4),s(5,` 357 `),o(6,"div",7),s(7,` 358 `),o(8,"div",8),s(9,` 359 `),o(10,"div",9),s(11,` 360 `),o(12,"div",10),s(13,` 361 `),o(14,"div",11),s(15,` 362 `),o(16,"div",12),s(17,` 363 Payment Type 364 `),l(),s(18,` 365 `),l(),s(19,` 366 `),l(),s(20,` 367 `),o(21,"div",13),s(22,` 368 `),o(23,"div"),s(24,` 369 `),u(25,Oi,6,2),u(26,ki,6,1),l(),s(27,` 370 `),o(28,"div",14),s(29,` 371 `),u(30,Vi,6,0),u(31,Bi,6,0),l(),s(32,` 372 `),o(33,"div",15),s(34,` 373 `),o(35,"a",16),S("click",function(){E(e);let i=p();return b(i.togglePaymentTypeSection())}),s(36,` 374 `),g(37,"i",17),s(38,` 375 `),l(),s(39,` 376 `),l(),s(40,` 377 `),l(),s(41,` 378 `),l(),s(42,` 379 `),o(43,"div",18),s(44,` 380 `),o(45,"div",5),s(46,` 381 `),X(47,Li,1,0,"ng-container",19),s(48,` 382 `),l(),s(49,` 383 `),o(50,"div",20),s(51,` 384 `),o(52,"div",21),s(53,` 385 `),o(54,"button",22),S("click",function(){E(e);let i=p();return b(i.goToPaymentMethodSection())}),s(55,` 386 Next
387 `),l(),s(56,` 388 `),l(),s(57,` 389 `),l(),s(58,` 390 `),l(),s(59,` 391 `),l(),s(60,` 392 `),o(61,"div",23),s(62,` 393 `),o(63,"div",9),s(64,` 394 `),o(65,"div",10),s(66,` 395 `),o(67,"div",11),s(68,` 396 `),o(69,"div",12),s(70,` 397 Payment Method 398 `),l(),s(71,` 399 `),l(),s(72,` 400 `),l(),s(73,` 401 `),o(74,"div",13),s(75,` 402 `),u(76,Gi,6,2),o(77,"div",14),s(78,` 403 `),u(79,Yi,6,0),u(80,zi,6,2),l(),s(81,` 404 `),o(82,"div",15),s(83,` 405 `),o(84,"a",16),S("click",function(){E(e);let i=p();return b(i.togglePaymentMethodSection())}),s(85,` 406 `),g(86,"i",17),s(87,` 407 `),l(),s(88,` 408 `),l(),s(89,` 409 `),l(),s(90,` 410 `),l(),s(91,` 411 `),o(92,"div",18),s(93,` 412 `),o(94,"div",5),s(95,` 413 `),X(96,Xi,1,0,"ng-container",19),s(97,` 414 `),l(),s(98,` 415 `),l(),s(99,` 416 `),l(),s(100,` 417 `),l(),s(101,` 418 `),u(102,Wi,4,1),l(),s(103,` 419`)}if(n&2){let e=p(),t=de(5),i=de(8);m(3),h(e.includeHeader?3:-1),m(5),Z("expanded",e.paymentTypeExpanded),m(2),Z("border-bottom",e.paymentTypeExpanded),m(15),h(e.paymentTypeID?25:-1),m(),h(e.selectedClubPaymentFee!=null&&e.selectedClubPaymentFee.paymentType.paymentType?26:-1),m(4),h(e.selectedClubPaymentFee?30:-1),m(),h(e.selectedClubPaymentFee?-1:31),m(12),Z("slide-hide",!e.paymentTypeExpanded)("slide-show",e.paymentTypeExpanded),I("hidden",!e.paymentTypeExpanded),m(4),I("ngTemplateOutlet",t),m(7),I("disabled",!e.paymentTypeID),m(7),Z("expanded",e.paymentMethodExpanded)("disabled",!e.paymentTypeComplete),m(2),Z("text-grey",!e.paymentTypeComplete)("border-bottom",e.paymentMethodExpanded),m(13),h((e.selectedClubUserPaymentMethod==null?null:e.selectedClubUserPaymentMethod.clubUserPaymentMethodID)>0?76:-1),m(3),h(e.isValid?79:-1),m(),h(e.isValid?-1:80),m(12),Z("slide-hide",!e.paymentMethodExpanded)("slide-show",e.paymentMethodExpanded),I("hidden",!e.paymentMethodExpanded),m(4),I("ngTemplateOutlet",i),m(6),h(e.showStripeError&&e.stripeError?102:-1)}}function Ji(n,a){if(n&1){let e=T();s(0,` 420`),o(1,"div"),s(2,` 421 `),o(3,"app-inline-alert",35),s(4,` 422 `),o(5,"span",36),s(6,` 423 Unable to load payment information. Please `),o(7,"a",37),S("click",function(){E(e);let i=p();return b(i.loadFormData())}),s(8,"try again"),l(),s(9,`. 424 `),l(),s(10,` 425 `),l(),s(11,` 426`),l(),s(12,` 427`)}if(n&2){let e=p();m(),Z("mb-3",e.sitePaymentTypeID!==e.SitePaymentType.REGISTRATION),m(2),I("isInline",!0)}}function es(n,a){n&1&&s(0,` 428 Payments are disabled for this program. Please try again later. 429 `)}function ts(n,a){n&1&&s(0,` 430 Donation payments are currently disabled. Please try again later. 431 `)}function ns(n,a){n&1&&s(0,` 432 Invoice payments are currently disabled. Please try again later. 433 `)}function is(n,a){n&1&&s(0,` 434 Ticket payments are currently disabled. Please try again later. 435 `)}function ss(n,a){n&1&&s(0,` 436 Ticket payments require Stripe onboarding to be completed. Please complete onboarding and try 437 again. 438 `)}function as(n,a){if(n&1&&(s(0,` 439 `),u(1,is,1,0),u(2,ss,1,0)),n&2){let e=p(2);m(),h(e.showStripeRequired?-1:1),m(),h(e.showStripeRequired?2:-1)}}function rs(n,a){n&1&&s(0,` 440 Team fee payments are currently disabled. Please try again later. 441 `)}function os(n,a){n&1&&s(0,` 442 Team fee payments require Stripe onboarding to be completed. Please complete onboarding and try 443 again. 444 `)}function ls(n,a){if(n&1&&(s(0,` 445 `),u(1,rs,1,0),u(2,os,1,0)),n&2){let e=p(2);m(),h(e.showStripeRequired?-1:1),m(),h(e.showStripeRequired?2:-1)}}function ms(n,a){n&1&&s(0,` 446 Payments are currently disabled. Please try again later. 447 `)}function cs(n,a){if(n&1&&(s(0,` 448`),o(1,"div"),s(2,` 449 `),o(3,"app-inline-alert",38),s(4,` 450 `),o(5,"span",36),s(6,` 451 `),u(7,es,1,0)(8,ts,1,0)(9,ns,1,0)(10,as,3,2)(11,ls,3,2)(12,ms,1,0),s(13,`
452 `),l(),s(14,` 453 `),l(),s(15,` 454`),l(),s(16,` 455`)),n&2){let e,t=p();m(),Z("mb-3",t.sitePaymentTypeID!==t.SitePaymentType.REGISTRATION),m(2),I("isInline",!0),m(4),h((e=t.sitePaymentTypeID)===t.SitePaymentType.REGISTRATION?7:e===t.SitePaymentType.DONATION?8:e===t.SitePaymentType.INVOICE?9:e===t.SitePaymentType.TICKET?10:e===t.SitePaymentType.TEAM_FEE?11:12)}}function ps(n,a){if(n&1&&(s(0,` 456 `),g(1,"app-pill",40),he(2,"sprocketCurrency"),s(3,` 457 `)),n&2){let e=p(5);m(),I("text","Save "+Ee(2,1,e.achFeeDifference)+" on Fees")}}function ds(n,a){n&1&&(s(0,` 458 `),g(1,"app-pill",41),s(2,` 459 `))}function us(n,a){if(n&1&&(s(0,` 460 `),u(1,ps,4,3),u(2,ds,3,0)),n&2){let e=p(4);m(),h(e.achFeeDifference>1?1:-1),m(),h(e.achFeeDifference>1?-1:2)}}function hs(n,a){if(n&1&&(s(0,` 461 `),u(1,us,3,2)),n&2){let e=p().$implicit,t=p(2);m(),h(e.paymentTypeID===t.PaymentTypes.ACH&&t.achFeeDifference>0?1:-1)}}function ys(n,a){if(n&1){let e=T();s(0,` 462 `),o(1,"app-checkbox-row",39),S("selectionChange",function(i){E(e);let r=p(2);return b(r.paymentRadioChange(i))}),s(2,` 463 `),X(3,hs,2,1,"ng-template",null,3,be),s(5,` 464 `),l(),s(6,` 465 `)}if(n&2){let e=a.$implicit,t=a.$index,i=a.$count,r=p(2);m(),I("styleClass",t===i-1?"":"mb-3")("compact",!0)("inputId","paymentTypeID-"+e.paymentTypeID)("optionValue",e.paymentTypeID)("ngModel",r.paymentTypeID)("label",e.paymentType.description)("description",e.paymentType.shortFeeDescription),gt("data-testid","payment-type-"+e.paymentTypeID)}}function fs(n,a){if(n&1&&(s(0,` 466 `),o(1,"div",14),s(2,` 467 `),ie(3,ys,7,8,null,null,Si),l(),s(5,` 468`)),n&2){let e=p();m(3),se(e.clubPaymentFeeStructure.clubPaymentFees)}}function _s(n,a){if(n&1){let e=T();s(0),he(1,"sprocketCurrency"),o(2,"a",37),S("click",function(){E(e);let i=p(3);return b(i.goToACH())}),s(3,"Use ACH instead."),l(),s(4,` 469 `)}if(n&2){let e=p(3);le(` 470 Want to save `,Ee(1,1,e.getFeeDifferenceComparedToACH(e.paymentTypeID))," fees? ")}}function Cs(n,a){if(n&1){let e=T();s(0,` 471 Want to save on fees? `),o(1,"a",37),S("click",function(){E(e);let i=p(3);return b(i.goToACH())}),s(2,"Use ACH instead."),l(),s(3,` 472 `)}}function Is(n,a){if(n&1&&(s(0,` 473 `),o(1,"div",43),s(2,` 474 `),o(3,"app-inline-alert",38),s(4,` 475 `),o(5,"span",36),s(6,` 476 `),u(7,_s,5,3),u(8,Cs,4,0),l(),s(9,` 477 `),l(),s(10,` 478 `),l(),s(11,` 479 `)),n&2){let e=p(2);m(3),I("isInline",!0),m(4),h(e.getFeeDifferenceComparedToACH(e.paymentTypeID)>1?7:-1),m(),h(e.getFeeDifferenceComparedToACH(e.paymentTypeID)>1?-1:8)}}function gs(n,a){if(n&1){let e=T();s(0,` 480 `),o(1,"app-checkbox-row",44),S("selectionChange",function(i){let r=E(e).$implicit,d=p(3);return b(d.paymentMethodRadioChange(i,r))}),s(2,` 481 `),l(),s(3,` 482 `)}if(n&2){let e=a.$implicit,t=p(3);m(),I("verticalPadding",!0)("compact",!0)("inputId","paymentMethod-"+e.clubUserPaymentMethodID)("optionValue",e.clubUserPaymentMethodID)("ngModel",t.selectedClubUserPaymentMethodID)("disabled",!t.paymentTypeComplete)("label",e.fullDisplayName)("description",t.selectedClubPaymentFee==null||t.selectedClubPaymentFee.paymentType==null?null:t.selectedClubPaymentFee.paymentType.shortFeeDescription)}}function vs(n,a){if(n&1&&(s(0,` 483 `),ie(1,gs,4,8,null,null,Ti)),n&2){let e=p(2);m(),se(e.clubUserPaymentMethodsDisplay)}}function Ps(n,a){n&1&&M(0)}function Es(n,a){if(n&1&&(s(0,` 484 `),X(1,Ps,1,0,"ng-container",19),s(2,` 485 `)),n&2){p(3);let e=de(11);m(),I("ngTemplateOutlet",e)}}function bs(n,a){if(n&1){let e=T();s(0,` 486 `),o(1,"app-checkbox-row",45),S("selectionChange",function(i){E(e);let r=p(2);return b(r.paymentMethodRadioChange(i,r.newAcct))}),s(2,` 487 `),u(3,Es,3,1),l(),s(4,` 488 `)}if(n&2){let e=p(2);m(),I("verticalPadding",!0)("compact",!0)("inputId","paymentMethod-"+e.newAcct.clubUserPaymentMethodID)("optionValue",e.newAcct.clubUserPaymentMethodID)("ngModel",e.selectedClubUserPaymentMethodID)("disabled",!e.paymentTypeComplete)("description",e.selectedClubPaymentFee==null||e.selectedClubPaymentFee.paymentType==null?null:e.selectedClubPaymentFee.paymentType.shortFeeDescription),m(2),h(e.clubUserPaymentMethodsDisplay!=null&&e.clubUserPaymentMethodsDisplay.length?3:-1)}}function xs(n,a){n&1&&M(0)}function Ss(n,a){if(n&1&&(s(0,` 489 `),X(1,xs,1,0,"ng-container",19),s(2,` 490 `)),n&2){p(3);let e=de(11);m(),I("ngTemplateOutlet",e)}}function Ts(n,a){if(n&1){let e=T();s(0,` 491 `),o(1,"app-checkbox-row",46),S("selectionChange",function(i){E(e);let r=p(2);return b(r.paymentMethodRadioChange(i,r.newCard))}),s(2,` 492 `),u(3,Ss,3,1),l(),s(4,` 493 `)}if(n&2){let e=p(2);m(),I("verticalPadding",!0)("compact",!0)("inputId","paymentMethod-"+e.newCard.clubUserPaymentMethodID)("optionValue",e.newCard.clubUserPaymentMethodID)("ngModel",e.selectedClubUserPaymentMethodID)("disabled",!e.paymentTypeComplete)("description",e.selectedClubPaymentFee==null||e.selectedClubPaymentFee.paymentType==null?null:e.selectedClubPaymentFee.paymentType.shortFeeDescription),m(2),h(e.clubUserPaymentMethodsDisplay!=null&&e.clubUserPaymentMethodsDisplay.length?3:-1)}}function Ds(n,a){n&1&&M(0)}function As(n,a){if(n&1&&(s(0,` 494 `),X(1,Ds,1,0,"ng-container",19),s(2,` 495 `)),n&2){p(2);let e=de(11);m(),I("ngTemplateOutlet",e)}}function Rs(n,a){if(n&1&&(s(0,` 496 `),u(1,Is,12,3),u(2,vs,3,0),o(3,"div",42),s(4,` 497 `),u(5,bs,5,8),u(6,Ts,5,8),l(),s(7,` 498 `),u(8,As,3,1)),n&2){let e=p();m(),h(e.paymentMethodExpanded&&e.achEnabled&&e.paymentTypeID!==e.PaymentTypes.ACH&&e.getFeeDifferenceComparedToACH(e.paymentTypeID)>0?1:-1),m(),h(e.clubUserPaymentMethodsDisplay!=null&&e.clubUserPaymentMethodsDisplay.length?2:-1),m(),I("hidden",!(e.clubUserPaymentMethodsDisplay!=null&&e.clubUserPaymentMethodsDisplay.length)),m(2),h(e.paymentTypeID===e.PaymentTypes.ACH?5:-1),m(),h(e.paymentTypeID===e.PaymentTypes.CARD?6:-1),m(2),h(e.clubUserPaymentMethodsDisplay!=null&&e.clubUserPaymentMethodsDisplay.length?-1:8)}}function Ns(n,a){if(n&1){let e=T();s(0,` 499 `),o(1,"app-payment-info-form",48),S("formChanges",function(i){E(e);let r=p(3);return b(r.paymentFormChanges(i))}),s(2,`
500 `),l(),s(3,` 501 `)}if(n&2){let e=p(3);m(),I("paymentTypeID",e.paymentTypeID)("horizontalForm",e.horizontalForm)("currentClubUser",e.currentClubUser)("firstName",e.firstName)("lastName",e.lastName)("showSubmitButton",!1)("showCancelButton",!1)("savePaymentInfoRequired",e.savePaymentInfoRequired)("showPaymentInfoRequiredMessage",e.showPaymentInfoRequiredMessage)("subscribeToFormServiceErrors",e.subscribeToFormServiceErrors)}}function Os(n,a){if(n&1){let e=T();s(0,` 502 `),o(1,"app-stripe-payment-element",49,4),S("valid",function(i){E(e);let r=p(3);return r.stripeFormValid=i,b(r.paymentFormChanges(r.value))})("paymentResult",function(i){E(e);let r=p(3);return b(r.paymentAttempted(i))})("setupResult",function(i){E(e);let r=p(3);return b(r.setupAttempted(i))})("paymentIntentCreated",function(i){E(e);let r=p(3);return b(r.paymentIntentCreated.emit(i))})("setupIntentCreated",function(i){E(e);let r=p(3);return b(r.setupIntentCreated.emit(i))}),s(3,` 503 `),l(),s(4,` 504 `)}if(n&2){let e=p(3);m(),I("config",e.stripeConfig)("paymentTypeID",e.paymentTypeID)("paymentIntentMetadata",e.paymentIntentMetadata)("customerID",e.customerID)("billing_details",e.billing_details)("email",e.email)("useSetupIntents",e.useSetupIntents)("isRegistration",e.isRegistration)("isSplitPayment",e.paymentSettings==null?null:e.paymentSettings.isSplitPayment)("savePaymentInfoRequired",e.savePaymentInfoRequired||(e.paymentSettings==null?null:e.paymentSettings.isSplitPayment))("showPaymentInfoRequiredMessage",e.showPaymentInfoRequiredMessage)("financialConnectionsRedirectUrl",e.financialConnectionsRedirectUrl)("forceManualBankEntry",e.forceManualBankEntry)("clubStripeConnectedAccountID",e.paymentSettings.clubStripeConnectedAccountID)("setupIntentClubStripeConnectedAccountID",e.setupIntentClubStripeConnectedAccountID)("clubPaymentFeeStructureID",e.paymentSettings.clubPaymentFeeStructureID)("setupIntentID",e.setupIntentID)}}function Ms(n,a){if(n&1&&(s(0,` 505 `),o(1,"div",47),s(2,` 506 `),o(3,"div",6),s(4,` 507 `),u(5,Ns,4,10),u(6,Os,5,17),l(),s(7,` 508 `),l(),s(8,` 509 `)),n&2){let e=p(2);m(3),Z("mt-2",e.activePaymentVendor!==e.PaymentVendor.STRIPE),m(2),h(e.activePaymentVendor!==e.PaymentVendor.STRIPE?5:-1),m(),h(e.activePaymentVendor===e.PaymentVendor.STRIPE&&e.paymentTypeID?6:-1)}}function Fs(n,a){if(n&1&&(s(0,` 510 `),u(1,Ms,9,4)),n&2){let e=p();m(),h(e.renderPaymentForm?1:-1)}}var lo=(()=>{let a=class a{get value(){let t=new Ot;return this.currentClubUser&&(t.firstName=this.currentClubUser.user.firstName,t.lastName=this.currentClubUser.user.lastName,t.email=this.currentClubUser.user.email),this.selectedClubPaymentFee&&(t=ve(Q({},t),{paymentType:this.selectedClubPaymentFee.paymentTypeID})),this.paymentInfoForm?.dynamicForm?t=Q(Q({},t),this.paymentInfoForm.dynamicForm.value):this.stripeForm&&(this.stripeForm?.paymentIntent?t.paymentIntentID=this.stripeForm.paymentIntent.id:this.stripeForm?.setupIntent&&(t.setupIntentID=this.stripeForm.setupIntent.id,this.stripeForm.setupIntent.payment_method&&(typeof this.stripeForm.setupIntent.payment_method=="object"?t.vendorPaymentMethodID=this.stripeForm.setupIntent.payment_method.id:t.vendorPaymentMethodID=this.stripeForm.setupIntent.payment_method)),this.stripeForm.savePaymentInfoForm?.value&&(t.accountNickname=this.stripeForm.savePaymentInfoForm.validFieldsValue.accountNickname,t.savePaymentInformation=this.stripeForm.savePaymentInfoForm.value.savePaymentInformation),this.stripeForm.billingDetails?.address&&(t.billingCountry=this.stripeForm.billingDetails.address.country,t.isInternational=t.billingCountry!=="US")),this.userService.loggedInClubUser&&this.selectedClubUserPaymentMethod&&this.selectedClubUserPaymentMethod.clubUserPaymentMethodID>-1&&(t=ve(Q({},t),{clubUserPaymentMethodID:this.selectedClubUserPaymentMethod.clubUserPaymentMethodID>-1?this.selectedClubUserPaymentMethod.clubUserPaymentMethodID:null,useSavedPaymentProfile:this.selectedClubUserPaymentMethod.clubUserPaymentMethodID>-1,ccNumber:this.selectedClubUserPaymentMethod.ccNumber,accountNumber:this.selectedClubUserPaymentMethod.accountNumber,firstName:this.selectedClubUserPaymentMethod.firstName,lastName:this.selectedClubUserPaymentMethod.lastName})),t&&(t.ccNumber&&(t.ccNumber=t.ccNumber.toString()),t.ccCVV&&(t.ccCVV=t.ccCVV.toString()),t.routingNumber&&(t.routingNumber=t.routingNumber.toString()),t.accountNumber&&(t.accountNumber=t.accountNumber.toString())),this.savePaymentInfoRequired&&(t.savePaymentInformation=!0),Y("paymentDetails",t),t}get clubUserPaymentMethodsDisplay(){return this.clubUserPaymentMethods?.length>0&&this.clubUserPaymentMethods.some(t=>t.paymentTypeID===this.paymentTypeID)?this.clubUserPaymentMethods.filter(t=>t.paymentTypeID===this.paymentTypeID):null}
510get renderPaymentForm(){if(!this.loading&&this.paymentSettings?.isEnabled&&this.paymentTypeComplete)if(this.clubUserPaymentMethodsDisplay)if(this.selectedClubUserPaymentMethod){if(this.selectedClubUserPaymentMethod&&this.selectedClubUserPaymentMethod.clubUserPaymentMethodID===-1)return!0}else return!0;else return!0;return!1}get isValid(){if(this.paymentTypeID){if(this.selectedClubUserPaymentMethod&&this.selectedClubUserPaymentMethodID>0)return!0;if(this.paymentInfoForm){if(this.paymentInfoForm.dynamicForm?.isValid)return!0}else return this.stripeFormValid}return!1}get userFee(){if(this.paymentData?.length&&this.paymentTypeID&&this.paymentSettings?.clubPaymentFeeStructure?.clubPaymentFees?.some(t=>t.paymentTypeID===this.paymentTypeID)){let t=this.paymentSettings?.clubPaymentFeeStructure?.clubPaymentFees?.find(i=>i.paymentTypeID===this.paymentTypeID).userFee;if(t>0)return t}return 0}get achFeeDifference(){let t=this.clubPaymentFeeStructure?.clubPaymentFees?.find(r=>r.paymentTypeID===D.ACH)?.userFee||0,i=this.clubPaymentFeeStructure?.clubPaymentFees?.filter(r=>r.paymentTypeID!==D.ACH)?.map(r=>r.userFee)?.filter(r=>(r||0)>t);if(i?.length){let r=i.map(d=>d-t);return Math.min(...r)}return 0}getFeeDifferenceComparedToACH(t){let i=this.clubPaymentFeeStructure?.clubPaymentFees;if(!i||i.length===0)return 0;let r=i.find(U=>U.paymentTypeID===D.ACH)?.userFee||0;return(i.find(U=>U.paymentTypeID===t)?.userFee||0)-r}constructor(t,i,r,d,U,xe,tt,W){this.userService=t,this.formService=i,this.paymentFormService=r,this.authService=d,this.ref=U,this.siteDataService=xe,this.paymentService=tt,this.sprocketStripeService=W,this.useSetupIntents=!1,this.preSelectAddANew=!1,this.isRegistration=!1,this.forceManualBankEntry=!1,this.billing_details={},this.includeHeader=!0,this.showFieldErrorMessages=!1,this.savePaymentInfoRequired=!1,this.showPaymentInfoRequiredMessage=!1,this.paymentTypeID=D.ACH,this.subscribeToFormServiceErrors=!0,this.horizontalForm=!0,this.disableACH=!1,this.onSubmit=new c,this.onCancel=new c,this.doneLoading=new c,this.paymentTypeChanged=new c,this.paymentMethodChanged=new c,this.paymentFormChanged=new c,this.stripePaymentAttempted=new c,this.stripeSetupAttempted=new c,this.config=new c,this.paymentIntentCreated=new c,this.setupIntentCreated=new c,this.loading=!0,this.loadingPaymentForm=!0,this.paymentFormStateHidden=!0,this.loadingError=!1,this.PaymentTypes=D,this.PaymentVendor=we,this.newCard={clubUserPaymentMethodID:-1,paymentTypeID:D.CARD},this.newAcct={clubUserPaymentMethodID:-1,paymentTypeID:D.ACH},this.formSaving=!1,this.SitePaymentType=me,this.stripeFormValid=!1,this.stripeError="",this.showStripeError=!1,this.paymentTypeExpanded=!0,this.paymentTypeComplete=!1,this.paymentMethodExpanded=!1,this.paymentMethodComplete=!1,this.NEW_PAYMENT_METHOD_ID=-1,this.showStripeRequired=!1,this.achEnabled=!0,this.unsubscribe$=new te}ngOnChanges(t){t.paymentTypeID&&!t.paymentTypeID.firstChange?(this.paymentTypeEntity={paymentType:this.paymentTypeID},this.shouldToggleForm(t.paymentTypeID.previousValue)&&this.toggleForm()):t.savePaymentInfoRequired&&!t.savePaymentInfoRequired.firstChange&&this.paymentInfoForm&&this.paymentInfoForm.dynamicForm&&(this.firstName=this.paymentInfoForm.dynamicForm.form.controls.firstName.valid?this.paymentInfoForm.dynamicForm.value.firstName:"",this.lastName=this.paymentInfoForm.dynamicForm.form.controls.lastName.valid?this.paymentInfoForm.dynamicForm.value.lastName:""),t.paymentSettings&&(this.checkAndRemoveACHOption(),this.clubPaymentFeeStructure=this.paymentSettings?.clubPaymentFeeStructure||null,t.paymentSettings.firstChange||(this.selectedClubPaymentFee?(this.selectedClubPaymentFee.clubPaymentFeeID?this.selectedClubPaymentFee=this.clubPaymentFeeStructure?.clubPaymentFees?.find(i=>i.clubPaymentFeeID===this.selectedClubPaymentFee.clubPaymentFeeID):this.selectedClubPaymentFee=this.clubPaymentFeeStructure?.clubPaymentFees?.find(i=>i.paymentTypeID===this.selectedClubPaymentFee.paymentTypeID),this.paymentTypeID=this.selectedClubPaymentFee?.paymentTypeID,this.setSurchargeDetail(),this.paymentTypeChanged.emit({clubPaymentFee:this.selectedClubPaymentFee,surchargeDetail:this.surchargeDetail})):this.reset()))}ngOnInit(){this.sitePaymentTypeID===me.REGISTRATION&&(this.useSetupIntents=!0),Tt&&(this.sitePaymentTypeID||console.error("@Input sitePaymentTypeID not provided"),!this.useSetupIntents&&!this.paymentIntentMetadata&&console.error("@Input paymentIntentMetadata not provided"),!this.paymentSettings&&!this.paymentData?.length&&console.error("@Input paymentData not provided")),this.firstName&&this.lastName&&(this.fullName=`${this.firstName} ${this.lastName}`),this.formService.formError$.pipe(L(this.unsubscribe$)).subscribe(t=>
510{t&&(this.formSaving=!1,this.activePaymentVendor===we.STRIPE&&!this.stripeForm&&(this.stripeError=t.message,this.showStripeError=!0))}),this.formService.loading$.pipe(L(this.unsubscribe$)).subscribe(t=>{this.formSaving=t}),this.paymentFormService.paymentIntentSubmitted$.pipe(L(this.unsubscribe$)).subscribe({next:()=>{this.siteDataService.appIsRunning().pipe(L(this.unsubscribe$)).subscribe({next:t=>{t?this.stripeForm?this.stripeForm.confirm():(this.submittedPaymentIntent?A(this.submittedPaymentIntent):this.sprocketStripeService.createPaymentIntent(this.getPaymentIntentCreate())).subscribe({next:i=>{if(this.submittedPaymentIntent=i,!i.last_payment_error&&(i.status===J.SUCCEEDED||i.status===J.PROCESSING))this.paymentAttempted({success:!0,result:{paymentIntent:i}});else{let r={code:i.last_payment_error?.code,message:i.last_payment_error?.message,decline_code:i.last_payment_error?.decline_code},d={paymentIntent:i.last_payment_error?void 0:i,error:i.last_payment_error?r:void 0};this.paymentAttempted({success:!1,result:d})}},error:()=>{this.paymentAttempted({success:!1,result:{paymentIntent:null}})}}):this.paymentAttempted({success:!1,result:{paymentIntent:null}})},error:()=>{this.paymentAttempted({success:!1,result:{paymentIntent:null}})}})}}),this.paymentFormService.setupIntentSubmitted$.pipe(L(this.unsubscribe$)).subscribe({next:()=>{this.stripeForm.confirm()}}),this.loadFormData()}loadFormData(){this.loading=!0,this.loadingError=!1,this.authService.getUser().pipe(Pe(1),ae(t=>{this.user=t;let i=this.user?this.sprocketStripeService.getCustomerID(this.setupIntentClubStripeConnectedAccountID):A(null),r=this.paymentFormService.getClubActivePaymentVendor();return oe({vendor:r,customer:i})}),ae(t=>(t.customer&&(this.customerID=t.customer),this.activePaymentVendor=t.vendor,oe({stripeConfig:this.activePaymentVendor===we.STRIPE?this.sprocketStripeService.getConfig():A(null),paymentMethods:this.user?this.userService.getClubUserPaymentMethods(this.activePaymentVendor,this.setupIntentClubStripeConnectedAccountID):A(null),paymentSettings:this.paymentSettings?A(this.paymentSettings):this.paymentFormService.getClubPaymentSettings(this.activePaymentVendor,this.sitePaymentTypeID,this.paymentData),clubUser:this.user?this.userService.getClubUserBillingInfo():A(null)}))),L(this.unsubscribe$)).subscribe({next:t=>{t.paymentSettings?.isEnabled&&[me.TICKET,me.TEAM_FEE].includes(this.sitePaymentTypeID)&&this.activePaymentVendor!==we.STRIPE&&(t.paymentSettings.isEnabled=!1,this.showStripeRequired=!0),this.paymentSettings=t.paymentSettings,this.checkAndRemoveACHOption(),this.stripeConfig=t.stripeConfig,this.setSurchargeDetail(),this.config.emit({paymentVendor:this.activePaymentVendor,paymentSettings:this.paymentSettings}),this.paymentSettings?.isEnabled&&(this.clubPaymentFeeStructure=this.paymentSettings.clubPaymentFeeStructure,t.paymentMethods?.length>0&&(this.clubUserPaymentMethods=t.paymentMethods),this.setDefaults(),this.currentClubUser=t.clubUser,this.currentClubUser?(this.billing_details={name:`${this.currentClubUser.user.firstName} ${this.currentClubUser.user.lastName}`,address:{country:"US",city:this.currentClubUser.user.userAddress?.city,line1:this.currentClubUser.user.userAddress?.addressLine1,line2:this.currentClubUser.user.userAddress?.addressLine2,postal_code:this.currentClubUser.user.userAddress?.zip,state:this.currentClubUser.user.userAddress?.state}},this.email||(this.email=this.currentClubUser.user.email)):this.firstName&&this.lastName&&(this.billing_details={name:`${this.firstName} ${this.lastName}`})),this.loading=!1,this.isMobileUser=this.siteDataService.isMobileUser,this.doneLoading.emit(),this.ref.detectChanges()},error:()=>{this.loading=!1,this.loadingError=!0}})}checkAndRemoveACHOption(){this.disableACH&&this.paymentSettings?.clubPaymentFeeStructure?.clubPaymentFees?.length&&this.paymentSettings.clubPaymentFeeStructure.clubPaymentFees.some(t=>t.paymentTypeID!==D.ACH)&&(this.paymentSettings.clubPaymentFeeStructure.clubPaymentFees=this.paymentSettings.clubPaymentFeeStructure.clubPaymentFees.filter(t=>t.paymentTypeID!==D.ACH)),this.achEnabled=this.paymentSettings?.clubPaymentFeeStructure?.clubPaymentFees?.some(t=>t.paymentTypeID===D.ACH)}setDefaults(){if(!this.preSelectAddANew){if(this.selectedClubUserPaymentMethodID){let t=this.clubUserPaymentMethods?.find(i=>i.clubUserPaymentMethodID===this.selectedClubUserPaymentMethodID);t&&this.clubPaymentFeeStructure.clubPaymentFees.some(i=>i.paymentTypeID===t.paymentTypeID)&&(this.selectedClubUserPaymentMethod=t,this.paymentTypeID=this.selectedClubUserPaymentMethod.paymentTypeID,this.selectedClubPaymentFee=this.clubPaymentFeeStructure.clubPaymentFees.find(i=>i.paymentTypeID===this.paymentTypeID),this.goToPaymentMethodSection(),this.paymentMethodChange(this.selectedClubUserPaymentMethodID),this.paymentTypeChanged.emit({clubPaymentFee:this.selectedClubPaymentFee,surchargeDetail:this.surchargeDetail}))}else if(this.clubUserPaymentMethods?.some(t=>t.isDefault)){let t=this.clubUserPaymentMethods.filter(i=>i.isDefault)[0];t&&this.clubPaymentFeeStructure.clubPaymentFees.some(i=>i.paymentTypeID===t.paymentTypeID)&&(this.paymentTypeID=t.paymentTypeID,this.selectedClubPaymentFee=this.clubPaymentFeeStructure.clubPaymentFees.find(i=>i.paymentTypeID===this.paymentTypeID),this.selectedClubUserPaymentMethodID=t.clubUserPaymentMethodID,this.selectedClubUserPaymentMethod=t,this.goToPaymentMethodSection(),this.paymentMethodChange(this.selectedClubUserPaymentMethodID),this.paymentTypeChanged.emit({clubPaymentFee:this.selectedClubPaymentFee,surchargeDetail:this.surchargeDetail}))}}this.paymentTypeID&&!this.selectedClubPaymentFee&&(this.paymentRadioChange(this.paymentTypeID),this.selectedClubPaymentFee&&(this.paymentTypeChanged.emit({clubPaymentFee:this.selectedClubPaymentFee,surchargeDetail:this.surchargeDetail}),this.preSelectAddANew&&(this.goToPaymentMethodSection(),this.paymentMethodChange(-1))))}setSurchargeDetail(){let t=this.paymentSettings?.paymentBreakout?.[0]?.payments?.[0]?.surchargeDetail;this.surchargeDetail=Array.isArray(t)?t[0]||null:t||null}
510submitForm(){this.clubUserPaymentMethodsDisplay&&this.selectedClubUserPaymentMethod&&this.selectedClubUserPaymentMethod.clubUserPaymentMethodID?(this.formSubmitted(),this.formSaving=!0):this.paymentInfoForm?.dynamicForm?(this.paymentInfoForm.dynamicForm.submitForm(),this.paymentInfoForm.dynamicForm.isValid?(this.formSaving=!0,this.formSubmitted()):this.formSaving=!1):(this.formSaving=!0,this.formSubmitted())}paymentFormChanges(t){this.paymentFormChanged.emit(t)}formSubmitted(){this.onSubmit.emit(this.value)}togglePaymentTypeSection(){this.paymentTypeExpanded=!this.paymentTypeExpanded,this.paymentTypeExpanded&&(this.paymentMethodExpanded=!1,this.paymentTypeComplete=!1)}togglePaymentMethodSection(){this.paymentMethodExpanded=!this.paymentMethodExpanded,this.paymentMethodExpanded&&this.paymentTypeComplete&&(this.paymentTypeExpanded=!1)}goToACH(){this.togglePaymentTypeSection(),this.paymentRadioChange(D.ACH)}reset(){this.paymentMethodChange(null),this.paymentTypeChanged.emit(null),this.paymentTypeExpanded=!0,this.paymentTypeComplete=!1,this.paymentMethodExpanded=!1,this.paymentTypeID=null,this.selectedClubPaymentFee=null,this.selectedClubUserPaymentMethod=null,this.selectedClubUserPaymentMethodID=null,this.setDefaults()}goToPaymentMethodSection(){this.selectedClubUserPaymentMethod||(this.selectedClubUserPaymentMethod=this.paymentTypeID===D.ACH?this.newAcct:this.newCard,this.selectedClubUserPaymentMethodID=-1),this.paymentTypeExpanded=!1,this.paymentTypeComplete=!0,this.paymentMethodExpanded=!0}radioClicked(t){t.stopPropagation()}paymentRadioChange(t){let i=this.paymentTypeID;this.paymentTypeID=t,this.selectedClubPaymentFee=this.clubPaymentFeeStructure.clubPaymentFees.find(r=>r.paymentTypeID===this.paymentTypeID),this.shouldToggleForm(i)&&(this.paymentTypeChanged.emit({clubPaymentFee:this.selectedClubPaymentFee,surchargeDetail:this.surchargeDetail}),this.toggleForm())}paymentMethodRadioChange(t,i){this.paymentTypeComplete&&(this.selectedClubUserPaymentMethodID=t,this.selectedClubUserPaymentMethodID===-1?this.selectedClubUserPaymentMethod=null:this.selectedClubUserPaymentMethod=i),this.paymentMethodChanged.emit(this.selectedClubUserPaymentMethod)}shouldToggleForm(t){return t!==this.paymentTypeID}toggleForm(){if(this.formService.clearFormErrorMessage(),this.paymentInfoForm&&this.paymentInfoForm.dynamicForm&&(this.firstName=this.paymentInfoForm.dynamicForm.form.controls.firstName.valid?this.paymentInfoForm.dynamicForm.value.firstName:"",this.lastName=this.paymentInfoForm.dynamicForm.form.controls.lastName.valid?this.paymentInfoForm.dynamicForm.value.lastName:""),this.selectedClubUserPaymentMethod=null,this.selectedClubUserPaymentMethodID=null,this.loadingPaymentForm=!0,this.clubUserPaymentMethodsDisplay?.length){let t=this.clubUserPaymentMethodsDisplay.find(i=>i.isDefault);t?this.selectedClubUserPaymentMethod=t:this.selectedClubUserPaymentMethod=this.clubUserPaymentMethodsDisplay[0],this.goToPaymentMethodSection()}else this.selectedClubUserPaymentMethod=this.paymentTypeID===D.CARD?this.newCard:this.newAcct;this.selectedClubUserPaymentMethodID=this.selectedClubUserPaymentMethod.clubUserPaymentMethodID,this.paymentMethodChanged.emit(this.selectedClubUserPaymentMethod),this.ref.detectChanges()}paymentMethodChange(t){this.selectedClubUserPaymentMethodID=t,t&&t!==-1?this.selectedClubUserPaymentMethod=this.clubUserPaymentMethods.find(i=>i.clubUserPaymentMethodID===t):this.selectedClubUserPaymentMethod=null,this.loadingPaymentForm=!0,(!this.selectedClubUserPaymentMethod||this.selectedClubUserPaymentMethod&&this.selectedClubUserPaymentMethod.clubUserPaymentMethodID===-1)&&setTimeout(()=>{this.loadingPaymentForm=!1},0),this.paymentMethodChanged.emit(this.selectedClubUserPaymentMethod)}paymentAttempted(t){if(this.stripeError="There was a problem submitting this payment.",this.showStripeError=!1,t.success)this.formSubmitted();else{if(this.formSaving=!1,t.result?.error&&([Fe.INSUFFICIENT_FUNDS].some(i=>i===t.result.error.decline_code)||[w.INCORRECT_CVC,w.EXPIRED_CARD,w.INCORRECT_NUMBER].some(i=>i===t.result.error.code)||t.result.error.code===w.INCORRECT_ZIP&&this.user)&&(this.stripeError=t.result.error.message,!this.stripeError))switch(t.result.error.code){case w.INCORRECT_CVC:this.stripeError="Your card's security code is incorrect.";break;
510case w.EXPIRED_CARD:this.stripeError="Your card is expired.";break;case w.INCORRECT_NUMBER:this.user&&(this.stripeError="Incorrect card/account number.");break;case w.INCORRECT_ZIP:this.stripeError="Incorrect postal code.";break}this.showStripeError=!0,this.siteDataService.showSiteErrorAlert(this.stripeError)}this.stripePaymentAttempted.emit(t)}setupAttempted(t){if(Y(t),this.stripeError="There was a problem submitting this payment.",this.showStripeError=!1,t.success)this.formSubmitted();else{if(this.formSaving=!1,t.result?.error&&([Fe.INSUFFICIENT_FUNDS].some(i=>i===t.result.error.decline_code)||[w.INCORRECT_CVC,w.EXPIRED_CARD,w.INCORRECT_NUMBER,w.INCORRECT_ZIP].some(i=>i===t.result.error.code))&&(this.stripeError=t.result.error.message,!this.stripeError))switch(t.result.error.code){case w.INCORRECT_CVC:this.stripeError="Your card's security code is incorrect.";break;case w.EXPIRED_CARD:this.stripeError="Your card is expired.";break;case w.INCORRECT_NUMBER:this.stripeError="Incorrect card/account number.";break;case w.INCORRECT_ZIP:this.stripeError="Incorrect postal code.";break}this.showStripeError=!0,this.siteDataService.showSiteErrorAlert(this.stripeError)}this.stripeSetupAttempted.emit(t)}getPaymentIntentCreate(){this.paymentIntentMetadata.clubUserPaymentMethodID=this.selectedClubUserPaymentMethodID;let t=new Me;return t.clubPaymentFeeStructureID=this.selectedClubPaymentFee.clubPaymentFeeStructureID,t.clubStripeConnectedAccountID=this.paymentSettings.clubStripeConnectedAccountID,t.paymentTypeID=this.paymentTypeID,t.customerID=this.customerID,t.confirm=!0,t.metadata=this.paymentIntentMetadata,t}ngOnDestroy(){this.submittedPaymentIntent=null,this.unsubscribe$.next(),this.unsubscribe$.complete()}};a.\u0275fac=function(i){return new(i||a)(C(Ge),C(Ye),C(ge),C(Qe),C(ye),C(Ae),C(ze),C(Ce))},a.\u0275cmp=N({type:a,selectors:[["app-payment-form"]],viewQuery:function(i,r){if(i&1&&O(et,5)(bi,5),i&2){let d;v(d=P())&&(r.paymentInfoForm=d.first),v(d=P())&&(r.stripeForm=d.first)}},inputs:{clubID:"clubID",sitePaymentTypeID:"sitePaymentTypeID",paymentData:"paymentData",paymentIntentMetadata:"paymentIntentMetadata",paymentSettings:"paymentSettings",setupIntentClubStripeConnectedAccountID:"setupIntentClubStripeConnectedAccountID",useSetupIntents:"useSetupIntents",setupIntentID:"setupIntentID",preSelectAddANew:"preSelectAddANew",isRegistration:"isRegistration",forceManualBankEntry:"forceManualBankEntry",financialConnectionsRedirectUrl:"financialConnectionsRedirectUrl",firstName:"firstName",lastName:"lastName",email:"email",billing_details:"billing_details",includeHeader:"includeHeader",showFieldErrorMessages:"showFieldErrorMessages",savePaymentInfoRequired:"savePaymentInfoRequired",showPaymentInfoRequiredMessage:"showPaymentInfoRequiredMessage",selectedClubUserPaymentMethodID:"selectedClubUserPaymentMethodID",paymentTypeID:"paymentTypeID",subscribeToFormServiceErrors:"subscribeToFormServiceErrors",horizontalForm:"horizontalForm",disableACH:"disableACH"},outputs:{onSubmit:"onSubmit",onCancel:"onCancel",doneLoading:"doneLoading",paymentTypeChanged:"paymentTypeChanged",paymentMethodChanged:"paymentMethodChanged",paymentFormChanged:"paymentFormChanged",stripePaymentAttempted:"stripePaymentAttempted",stripeSetupAttempted:"stripeSetupAttempted",config:"config",paymentIntentCreated:"paymentIntentCreated",setupIntentCreated:"setupIntentCreated"},standalone:!1,features:[R],ngContentSelectors:xi,decls:12,vars:4,consts:[["paymentTypeRadios",""],["paymentMethodRadios",""],["paymentInfo",""],["afterLabelContent",""],["stripeForm",""],[1,"my-3"],[1,"payment-form"],[1,"card","p-0"],[1,""],[1,"step-section-header","form-header","d-flex","align-items-center","justify-content-between","py-2"],[1,"d-flex","align-items-center","justify-content-start"],[1,"ml-3"],[1,"text-medium","fw-600"],[1,"d-flex","align-items-center","justify-content-end"],[1,"mx-3"],[1,"mr-1"],["href","javascript:void(0);",1,"pr-3",3,"click"],[1,"fa","fa-chevron-up"],[1,"step-section-content","px-3",3,"hidden"],[4,"ngTemplateOutlet"],[1,"d-flex","align-items-center","pb-3"],[1,"d-flex","justify-content-end","ml-auto"],["type","button","data-testid","payment-type-next",1,"btn","btn-primary","btn-icon-chevron-right-after",3,"click","disabled"],[1,"border-top","pt-0","mt-0"],[1,"registration-step-description","mb-3","fw-400"],[1,"fa","fa-bank"],[1,"fa","fa-credit-card"],[3,"useIcon","tooltipText"],[1,"text-green"],[1,"fa","fa-check-circle"],[1,"text-warn"],["iconClass","fa fa-exclamation-triangle text-warn","tooltipText","Please select a payment type"],["iconClass","fa fa-exclamation-triangle text-warn","tooltipText","Please select a payment method"],["iconClass","fa fa-exclamation-triangle text-warn","tooltipText","Please enter your payment information"],[1,"my-3","form-error-message"],["alertType","error",3,"isInline"],[1,"fw-600"],["href","javascript:void(0);",3,"click"],["alertType","warning",3,"isInline"],["color","green","controlGroupName","paymentTypeID",3,"selectionChange","styleClass","compact","inputId","optionValue","ngModel","label","description"],["status","success","styleClass","p-1 px-2 pill-green-700 text-transform-none",3,"text"],["status","success","text","Save on Fees","styleClass","p-1 px-2 pill-green-700 text-transform-none"],[3,"hidden"],[1,"mb-3"],["styleClass","mb-3 mx-0","color","green","controlGroupName","paymentMethod",3,"selectionChange","verticalPadding","compact","inputId","optionValue","ngModel","disabled","label","description"],["styleClass","mx-0","color","green","controlGroupName","paymentMethod","label","Use a different account",3,"selectionChange","verticalPadding","compact","inputId","optionValue","ngModel","disabled","description"],["styleClass","mx-0","color","green","controlGroupName","paymentMethod","label","Use a different card",3,"selectionChange","verticalPadding","compact","inputId","optionValue","ngModel","disabled","description"],[1,"payment-form-container"],[3,"formChanges","paymentTypeID","horizontalForm","currentClubUser","firstName","lastName","showSubmitButton","showCancelButton","savePaymentInfoRequired","showPaymentInfoRequiredMessage","subscribeToFormServiceErrors"],["data-testid","payment-element",3,"valid","paymentResult","setupResult","paymentIntentCreated","setupIntentCreated","config","paymentTypeID","paymentIntentMetadata","customerID","billing_details","email","useSetupIntents","isRegistration","isSplitPayment","savePaymentInfoRequired","showPaymentInfoRequiredMessage","financialConnectionsRedirectUrl","forceManualBankEntry","clubStripeConnectedAccountID","setupIntentClubStripeConnectedAccountID","clubPaymentFeeStructureID","setupIntentID"]],template:function(i,r){i&1&&(bt(),u(0,Di,6,0),u(1,Zi,104,34),u(2,Ji,13,3),u(3,cs,17,4),X(4,fs,6,0,"ng-template",null,0,be),s(6,` 511 512`),X(7,Rs,9,6,"ng-template",null,1,be),s(9,` 513 514`),X(10,Fs,2,1,"ng-template",null,2,be)),i&2&&(h(r.loading?0:-1),m(),h(!r.loading&&(r.paymentSettings!=null&&r.paymentSettings.isEnabled)?1:-1),m(),h(!r.loading&&r.loadingError?2:-1),m(),h(!r.loading&&!r.loadingError&&!(r.paymentSettings!=null&&r.paymentSettings.isEnabled)?3:-1))},dependencies:[k,Rt,Nt,Ft,Mt,Ne,Re,Bt,Zt,et,kt,Vt],styles:[".step-section[_ngcontent-%COMP%]{border:var(--border)}.step-section.disabled[_ngcontent-%COMP%]{pointer-events:none}.step-section.expanded[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{transform:rotate(-180deg)}.step-section.br-top[_ngcontent-%COMP%]{border-radius:.75rem .75rem 0 0;border-bottom:0}.step-section.br-bottom[_ngcontent-%COMP%]{border-radius:0 0 .75rem .75rem}.step-section[_ngcontent-%COMP%] .step-section-header[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .step-section[_ngcontent-%COMP%] .step-section-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--blue-1000)}.step-section[_ngcontent-%COMP%] .step-section-header[_ngcontent-%COMP%] button.btn-tertiary[_ngcontent-%COMP%]{background-color:var(--blue-1000)}.step-section[_ngcontent-%COMP%] .step-section-header[_ngcontent-%COMP%] button.btn-tertiary[_ngcontent-%COMP%]:hover{background-color:var(--blue-800)!important}.step-section[_ngcontent-%COMP%] .step-section-header[_ngcontent-%COMP%] .btn-circle[_ng
514content-%COMP%]{border-radius:50%;border-color:var(--color-white)}.step-section[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{transition:transform .15s ease}.step-sections[_ngcontent-%COMP%] .step-section.expanded[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{transform:rotate(-180deg)}.payment-form[_ngcontent-%COMP%], .payment-form-container[_ngcontent-%COMP%]{min-height:300px}.slide-show[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_show .75s forwards;overflow-x:hidden}.slide-hide[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_hide .75s forwards;overflow:hidden;padding:0;border-bottom:none}@keyframes _ngcontent-%COMP%_show{0%{max-height:0}to{max-height:700px}}@keyframes _ngcontent-%COMP%_hide{0%{max-height:700px}to{max-height:0}}.payment-header[_ngcontent-%COMP%]{border-bottom:2px solid var(--base-text);font-size:var(--text-large);font-weight:500}"],data:{animation:[Ut,wt]}});let n=a;return n})();var bo=(()=>{let a=class a{};a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=Te({type:a}),a.\u0275inj=Se({providers:[ge,ze],imports:[V,Ke,lt,ot,Lt,Ct,qt,lt,ot,Ct]});let n=a;return n})();export{$t as a,ge as b,Ce as c,lo as d,za as e,Ct as f,bo as g};
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.