1import{b as Dt}from"./chunk-ZOU7JU4I.js";import{a as _t}from"./chunk-EMNRMHET.js";import{a as Re}from"./chunk-A5EUQQC7.js";import{$ as G,$a as Ke,$d as gt,Aa as Q,Ab as it,Ba as d,Bb as nt,Ca as c,Cb as ge,Cd as Fe,Ce as wt,Da as w,Dd as ct,E as ue,Eb as O,Ed as pt,Fb as Te,Fd as ut,Ga as N,Gb as st,Ha as ee,He as xt,Ia as L,Id as Se,Ie as Ot,J as f,Ja as b,Jb as ve,Jd as be,L as h,Ma as Le,Nd as dt,Oe as It,Pa as B,Pe as Tt,Qa as x,Qe as Ft,R as H,Ra as C,Rd as ht,S as Z,Sa as S,Sd as ft,T as de,Ta as Ue,U as _,Ua as E,Ue as ke,Ve as Me,W as I,Wa as U,Wd as yt,We as Rt,X as J,Xc as rt,Xe as kt,Y as he,_ as T,_a as He,_b as W,_c as at,a as K,aa as V,ab as We,b as _e,ba as Ie,be as z,bf as Mt,cb as M,ce as vt,da as l,de as Ct,eb as ye,ga as fe,ge as St,h as i,hb as ne,i as v,ia as ie,jb as se,je as bt,kd as ot,ld as Ce,ma as u,mb as ze,me as Et,na as y,nd as lt,oa as k,ob as te,pb as Ye,pd as re,q as xe,qb as $e,rb as Xe,ta as P,tb as Ze,ub as Je,v as p,va as g,vb as et,ve as Pt,w as Oe,wb as tt,wd as mt,yb as j,z as X,za as Ve}from"./chunk-UKO5M5N4.js";var D=["stripeElementRef"];function $t(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function Xt(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function Zt(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function Jt(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ei(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ti(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ii(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ni(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function si(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ri(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ai(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function oi(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function li(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function mi(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ci(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function pi(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function ui(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function di(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function hi(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}function fi(a,n){if(a&1&&N(0,2),a&2){let r=b();g("ngTemplateOutlet",r.loadingTemplate)}}var q=(()=>{let n=class n{constructor(e){i(this,"templateRef");this.templateRef=e}};i(n,"\u0275fac",function(t){return new(t||n)(y(k))}),i(n,"\u0275dir",he({type:n,selectors:[["","ngxStripeLoadingTemplate",""]],standalone:!0}));let a=n;return a})(),De=new de("Stripe Publishable Key"),Ae=new de("Stripe Options"),Qe=new de("NGX_STRIPE_VERSION"),ae=class{constructor(n,r,e,t,s){i(this,"version");i(this,"loader");i(this,"window");i(this,"key");i(this,"options");i(this,"stripe$",new xe(void 0));i(this,"stripe",this.stripe$.asObservable().pipe(ue(n=>!!n)));this.version=n,this.loader=r,this.window=e,this.key=t,this.options=s,this.loader.asStream().pipe(ue(o=>o.loaded===!0),f(),X(()=>this.window.getNativeWindow().Stripe)).subscribe(o=>{let m=this.options?o(this.key,this.options):o(this.key);m.registerAppInfo(this.getNgxStripeAppInfo(this.version)),this.stripe$.next(m)})}getInstance(){return this.stripe$.getValue()}elements(n){return this.stripe.pipe(X(r=>r.elements(n)),f())}redirectToCheckout(n){return this.stripe.pipe(h(r=>p(r.redirectToCheckout(n))),f())}confirmPayment(n){return this.stripe.pipe(h(r=>p(r.confirmPayment(n))),f())}confirmAcssDebitPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmAcssDebitPayment(n,r,e))),f())}confirmUsBankAccountPayment(n,r){return this.stripe.pipe(h(e=>p(e.confirmUsBankAccountPayment(n,r))),f())}confirmAlipayPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmAlipayPayment(n,r,e))),f())}confirmAuBecsDebitPayment(n,r){return this.stripe.pipe(h(e=>p(e.confirmAuBecsDebitPayment(n,r))),f())}confirmBancontactPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmBancontactPayment(n,r,e))),f())}confirmBlikPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmBlikPayment(n,r,e))),f())}confirmBoletoPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmBoletoPayment(n,r,e))),f())}confirmCardPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmCardPayment(n,r,e))),f())}confirmCashappPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmCashappPayment(n,r,e))),f())}confirmCustomerBalancePayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmCustomerBalancePayment(n,r,e))),f())}confirmEpsPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmEpsPayment(n,r,e))),f())}confirmFpxPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmFpxPayment(n,r,e))),f())}confirmGiropayPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmGiropayPayment(n,r,e))),f())}confirmGrabPayPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmGrabPayPayment(n,r,e))),f())}confirmIdealPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmIdealPayment(n,r,e))),f())}confirmKlarnaPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmKlarnaPayment(n,r,e))),f())}confirmKonbiniPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmKonbiniPayment(n,r,e))),f())}confirmMobilepayPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmMobilepayPayment(n,r,e))),f())}confirmOxxoPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmOxxoPayment(n,r,e))),f())}confirmP24Payment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmP24Payment(n,r,e))),f())}confirmPayNowPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmPayNowPayment(n,r,e))),f())}confirmPayPalPayment(n,r){return this.stripe.pipe(h(e=>p(e.confirmPayPalPayment(n,r))),f())}confirmPixPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmPixPayment(n,r,e))),f())}confirmPromptPayPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmPromptPayPayment(n,r,e))),f())}confirmSepaDebitPayment(n,r){return this.stripe.pipe(h(e=>p(e.confirmSepaDebitPayment(n,r))),f())}confirmSofortPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmSofortPayment(n,r,e))),f())}confirmWechatPayPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmWechatPayPayment(n,r,e))),f())}handleCardAction(n){return this.stripe.pipe(h(r=>p(r.handleCardAction(n))),f())}handleNextAction(n){return this.stripe.pipe(h(r=>p(r.handleNextAction(n))),f())}verifyMicrodepositsForPayment(n,r){return this.stripe.pipe(h(e=>p(e.verifyMicrodepositsForPayment(n,r))),f())}createRadarSession(){return this.stripe.pipe(h(n=>p(n.createRadarSession())),f())}collectBankAccountForPayment(n){return this.stripe.pipe(h(r=>p(r.collectBankAccountForPayment(n))),f())}createPaymentMethod(n){return this.stripe.pipe(h(r=>p(r.createPaymentMethod(n))),f())}createConfirmationToken(n){return this.stripe.pipe(h(r=>p(r.createConfirmationToken(n))),f())}retrievePaymentIntent(n){return this.stripe.pipe(h(r=>p(r.retrievePaymentIntent(n))),f())}confirmSetup(n){return this.stripe.pipe(h(r=>p(r.confirmSetup(n))),f())}confirmAcssDebitSetup(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmAcssDebitSetup(n,r,e))),f())}confirmUsBankAccountSetup(n,r){return this.stripe.pipe(h(e=>p(e.confirmUsBankAccountSetup(n,r))),f())}confirmAuBecsDebitSetup(n,r){return this.stripe.pipe(h(e=>p(e.confirmAuBecsDebitSetup(n,r))),f())}confirmBacsDebitSetup(n,r){return this.stripe.pipe(h(e=>p(e.confirmBacsDebitSetup(n,r))),f())}confirmBancontactSetup(n,r){return this.stripe.pipe(h(e=>p(e.confirmBancontactSetup(n,r))),f())}confirmCardSetup(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmCardSetup(n,r,e))),f())}confirmCashappSetup(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmCashappSetup(n,r,e))),f())}confirmIdealSetup(n,r){return this.stripe.pipe(h(e=>p(e.confirmIdealSetup(n,r))),f())}confirmPayPalSetup(n,r){return this.stripe.pipe(h(e=>p(e.confirmPayPalSetup(n,r))),f())}confirmSepaDebitSetup(n,r){return this.stripe.pipe(h(e=>p(e.confirmSepaDebitSetup(n,r))),f())}confirmSofortSetup(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmSofortSetup(n,r,e))),f())}confirmAffirmPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmAffirmPayment(n,r,e))),f())}confirmAfterpayClearpayPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmAfterpayClearpayPayment(n,r,e))),f())}verifyMicrodepositsForSetup(n,r){return this.stripe.pipe(h(e=>p(e.verifyMicrodepositsForSetup(n,r))),f())}collectBankAccountForSetup(n){return this.stripe.pipe(h(r=>p(r.collectBankAccountForSetup(n))),f())}retrieveSetupIntent(n){return this.stripe.pipe(h(r=>p(r.retrieveSetupIntent(n))),f())}processOrder(n){return this.stripe.pipe(h(r=>p(r.processOrder(n))),f())}retrieveOrder(n){return this.stripe.pipe(h(r=>p(r.retrieveOrder(n))),f())}paymentRequest(n){return this.getInstance().paymentRequest(n)}createToken(n,r){return this.stripe.pipe(h(e=>p(e.createToken(n,r))),f())}createSource(n,r){return this.stripe.pipe(h(e=>p(e.createSource(n,r))),f())}retrieveSource(n){return this.stripe.pipe(h(r=>p(r.retrieveSource(n))),f())}verifyIdentity(n){return this.stripe.pipe(h(r=>p(r.verifyIdentity(n))),f())}collectFinancialConnectionsAccounts(n){return this.stripe.pipe(h(r=>p(r.collectFinancialConnectionsAccounts(n))),f())}collectBankAccountToken(n){return this.stripe.pipe(h(r=>p(r.collectBankAccountToken(n))),f())}createEphemeralKeyNonce(n){return this.stripe.pipe(h(r=>p(r.createEphemeralKeyNonce(n))),f())}initCustomCheckout(n){return this.stripe.pipe(h(r=>p(r.initCustomCheckout(n))),f())}initEmbeddedCheckout(n){return this.stripe.pipe(h(r=>p(r.initEmbeddedCheckout(n))),f())}handleCardPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.handleCardPayment(n,r,e))),f())}confirmPaymentIntent(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmPaymentIntent(n,r,e))),f())}handleCardSetup(n,r,e){return this.stripe.pipe(h(t=>p(t.handleCardSetup(n,r,e))),f())}confirmSetupIntent(n,r,e){return this.stripe.pipe(h(t=>p(t.confirmSetupIntent(n,r,e))),f())}handleFpxPayment(n,r,e){return this.stripe.pipe(h(t=>p(t.handleFpxPayment(n,r,e))),f())}getNgxStripeAppInfo(n){return{name:"ngx-stripe",url:"https://ngx-stripe.dev",partner_id:"pp_partner_JR4l1rmvUoPP4V",version:n}}},Ee=(()=>{let n=class n{constructor(e){i(this,"platformId");this.platformId=e}getNativeWindow(){return Te(this.platformId)?window:{}}};i(n,"\u0275fac",function(t){return new(t||n)(_(fe))}),i(n,"\u0275prov",H({token:n,factory:n.\u0275fac}));let a=n;return a})(),Qt=(()=>{let n=class n{constructor(e){i(this,"platformId");this.platformId=e}getNativeDocument(){return Te(this.platformId)?document:{}}};i(n,"\u0275fac",function(t){return new(t||n)(_(fe))}),i(n,"\u0275prov",H({token:n,factory:n.\u0275fac}));let a=n;return a})(),Ne=(()=>{let n=class n{constructor(e,t,s){i(this,"platformId");i(this,"window");i(this,"document");i(this,"status",new xe({error:!1,loaded:!1,loading:!1}));this.platformId=e,this.window=t,this.document=s}asStream(){return this.load(),this.status.asObservable()}isReady(){return this.status.getValue().loaded}load(){if(st(this.platformId))return;let e=this.status.getValue();if(this.window.getNativeWindow().hasOwnProperty("Stripe"))this.status.next({error:!1,loaded:!0,loading:!1});else if(!e.loaded&&!e.loading){this.status.next(_e(K({},e),{loading:!0}));let t=this.document.getNativeDocument().createElement("script");t.type="text/javascript",t.async=!0,t.defer=!0,t.src="https://js.stripe.com/v3/",t.onload=()=>{this.status.next({error:!1,loaded:!0,loading:!1})},t.onerror=()=>{this.status.next({error:!0,loaded:!1,loading:!1})},this.document.getNativeDocument().body.appendChild(t)}}};i(n,"\u0275fac",function(t){return new(t||n)(_(fe),_(Ee),_(Qt))}),i(n,"\u0275prov",H({token:n,factory:n.\u0275fac}));let a=n;return a})(),Pe=(()=>{let n=class n{constructor(e,t,s,o,m){i(this,"version");i(this,"key");i(this,"options");
1i(this,"loader");i(this,"window");i(this,"stripe");this.version=e,this.key=t,this.options=s,this.loader=o,this.window=m,t&&(this.stripe=new ae(this.version,this.loader,this.window,t,s))}getStripeReference(){return this.loader.asStream().pipe(ue(e=>e.loaded===!0),X(()=>this.window.getNativeWindow().Stripe))}getInstance(){return this.stripe.getInstance()}setKey(e,t){return this.changeKey(e,t)}changeKey(e,t){return this.stripe=new ae(this.version,this.loader,this.window,e,t),this.stripe}elements(e){return this.stripe.elements(e)}redirectToCheckout(e){return this.stripe.redirectToCheckout(e)}confirmPayment(e){return this.stripe.confirmPayment(e)}confirmAcssDebitPayment(e,t,s){return this.stripe.confirmAcssDebitPayment(e,t,s)}confirmUsBankAccountPayment(e,t){return this.stripe.confirmUsBankAccountPayment(e,t)}confirmAlipayPayment(e,t,s){return this.stripe.confirmAlipayPayment(e,t,s)}confirmAuBecsDebitPayment(e,t){return this.stripe.confirmAuBecsDebitPayment(e,t)}confirmBancontactPayment(e,t,s){return this.stripe.confirmBancontactPayment(e,t,s)}confirmBlikPayment(e,t,s){return this.stripe.confirmBlikPayment(e,t,s)}confirmBoletoPayment(e,t,s){return this.stripe.confirmBoletoPayment(e,t,s)}confirmCardPayment(e,t,s){return this.stripe.confirmCardPayment(e,t,s)}confirmCashappPayment(e,t,s){return this.stripe.confirmCashappPayment(e,t,s)}confirmCustomerBalancePayment(e,t,s){return this.stripe.confirmCustomerBalancePayment(e,t,s)}confirmEpsPayment(e,t,s){return this.stripe.confirmEpsPayment(e,t,s)}confirmFpxPayment(e,t,s){return this.stripe.confirmFpxPayment(e,t,s)}confirmGiropayPayment(e,t,s){return this.stripe.confirmGiropayPayment(e,t,s)}confirmGrabPayPayment(e,t,s){return this.stripe.confirmGrabPayPayment(e,t,s)}confirmIdealPayment(e,t,s){return this.stripe.confirmIdealPayment(e,t,s)}confirmKlarnaPayment(e,t,s){return this.stripe.confirmKlarnaPayment(e,t,s)}confirmKonbiniPayment(e,t,s){return this.stripe.confirmKonbiniPayment(e,t,s)}confirmMobilepayPayment(e,t,s){return this.stripe.confirmMobilepayPayment(e,t,s)}confirmOxxoPayment(e,t,s){return this.stripe.confirmOxxoPayment(e,t,s)}confirmP24Payment(e,t,s){return this.stripe.confirmP24Payment(e,t,s)}confirmPayNowPayment(e,t,s){return this.stripe.confirmPayNowPayment(e,t,s)}confirmPayPalPayment(e,t){return this.stripe.confirmPayPalPayment(e,t)}confirmPixPayment(e,t,s){return this.stripe.confirmPixPayment(e,t,s)}confirmPromptPayPayment(e,t,s){return this.stripe.confirmPromptPayPayment(e,t,s)}confirmSepaDebitPayment(e,t){return this.stripe.confirmSepaDebitPayment(e,t)}confirmSofortPayment(e,t,s){return this.stripe.confirmSofortPayment(e,t,s)}confirmWechatPayPayment(e,t,s){return this.stripe.confirmWechatPayPayment(e,t,s)}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,s){return this.stripe.confirmAcssDebitSetup(e,t,s)}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,s){return this.stripe.confirmCardSetup(e,t,s)}confirmCashappSetup(e,t,s){return this.stripe.confirmCashappSetup(e,t,s)}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,s){return this.stripe.confirmSofortSetup(e,t,s)}confirmAffirmPayment(e,t,s){return this.stripe.confirmAffirmPayment(e,t,s)}confirmAfterpayClearpayPayment(e,t,s){return this.stripe.confirmAfterpayClearpayPayment(e,t,s)}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)}initCustomCheckout(e){return this.stripe.initCustomCheckout(e)}initEmbeddedCheckout(e){return this.stripe.initEmbeddedCheckout(e)}handleCardPayment(e,t,s){return this.stripe.handleCardPayment(e,t,s)}confirmPaymentIntent(e,t,s){return this.stripe.confirmPaymentIntent(e,t,s)}handleCardSetup(e,t,s){return this.stripe.handleCardSetup(e,t,s)}confirmSetupIntent(e,t,s){return this.stripe.confirmSetupIntent(e,t,s)}handleFpxPayment(e,t,s){return this.stripe.handleFpxPayment(e,t,s)}};i(n,"\u0275fac",function(t){return new(t||n)(_(Qe),_(De),_(Ae),_(Ne),_(Ee))}),i(n,"\u0275prov",H({token:n,factory:n.\u0275fac}));let a=n;return a})(),F=(()=>{let n=class n{constructor(e){i(this,"stripeService");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?_e(K({},e||{}),{classes:{base:t,complete:`${t}--complete`,empty:`${t}--empty`,focus:`${t}--focus`,invalid:`${t}--invalid`,webkitAutoFill:`${t}--webkit-autoFill`}}):e||{}}};i(n,"\u0275fac",function(t){return new(t||n)(_(Pe))}),i(n,"\u0275prov",H({token:n,factory:n.\u0275fac}));let a=n;return a})(),A=(()=>{let n=class n{constructor(e){i(this,"stripeElementsService");i(this,"elementsOptions");
1i(this,"stripe");i(this,"elements",new l);i(this,"_elements");i(this,"state","notready");this.stripeElementsService=e}ngOnChanges(e){return v(this,null,function*(){this.state="starting";let t=this.elementsOptions,s=this.stripe;if(!s){this.state="notready";return}if(e.elementsOptions)if(this._elements){let o=Object.keys(t).reduce((m,R)=>(t[R]!==e.elementsOptions.previousValue[R]&&!["fonts","loader","clientSecret"].includes(R)&&(m[R]=t[R]),m),{});this._elements.update(o)}else this._elements=yield this.stripeElementsService.elements(s,t).toPromise(),this.elements.emit(this._elements),this.state="ready"})}ngOnInit(){return v(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?p(this._elements.fetchUpdates()):null}update(e){return this._elements?this._elements.update(e):null}submit(){return this._elements?p(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"affirmMessage":return this._elements.getElement("affirmMessage");case"afterpayClearpayMessage":return this._elements.getElement("afterpayClearpayMessage");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"fpxBank":return this._elements.getElement("fpxBank");case"epsBank":return this._elements.getElement("epsBank");case"p24Bank":return this._elements.getElement("p24Bank");case"iban":return this._elements.getElement("iban");case"idealBank":return this._elements.getElement("idealBank");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)}}};i(n,"\u0275fac",function(t){return new(t||n)(y(F))}),i(n,"\u0275dir",he({type:n,selectors:[["ngx-stripe-elements"],["","ngxStripeElements",""]],inputs:{elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{elements:"elements"},standalone:!0,features:[T]}));let a=n;return a})(),yi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"loaderror",new l);i(this,"loaderstart",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-address"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.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"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,$t,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),gi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"ready",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){this.element.update(e)}getAffirmMessage(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("affirmMessage",e),this.element.on("ready",()=>this.ready.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-affirm-message"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",ready:"ready"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,Xt,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),vi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");
1i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"ready",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){this.element.update(e)}getAfterpayClearpayMessage(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("afterpayClearpayMessage",e),this.element.on("ready",()=>this.ready.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-afterpay-clearpay-message"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",ready:"ready"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,Zt,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Ci=(()=>{let n=class n{constructor(e,t,s){i(this,"cdr");i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.cdr=e,this.stripeElementsService=t,this.elementsProvider=s}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s))})}ngOnInit(){return v(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)}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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(te),y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-card"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,Jt,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),le=(()=>{let n=class n{constructor(e){i(this,"stripeElementsService");i(this,"elementsOptions");
1i(this,"stripe");i(this,"elements",new l);i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"_elements");i(this,"state","notready");this.stripeElementsService=e}ngOnChanges(e){return v(this,null,function*(){this.state="starting";let t=this.elementsOptions,s=this.stripe;(e.elementsOptions||e.stripe||!this._elements)&&(this._elements=yield this.stripeElementsService.elements(s,t).toPromise(),this.elements.emit(this._elements)),this.state="ready"})}ngOnInit(){return v(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")})}};i(n,"\u0275fac",function(t){return new(t||n)(y(F))}),i(n,"\u0275dir",he({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"},standalone:!0,features:[T]}));let a=n;return a})(),me=(()=>{let n=class n{constructor(e,t,s){i(this,"stripeElementsService");i(this,"cardGroup");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"elementsSubscription");this.stripeElementsService=e,this.cardGroup=t,this.elementsProvider=s}ngOnChanges(e){return v(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",s=>{this.change.emit(s),this.cardGroup?.change.emit(s)}),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))}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(le,8),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-card-number"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ei,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.cardGroup&&s.cardGroup.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Be=(()=>{let n=class n{constructor(e,t,s){i(this,"stripeElementsService");i(this,"cardGroup");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");
1i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"elementsSubscription");this.stripeElementsService=e,this.cardGroup=t,this.elementsProvider=s}ngOnChanges(e){return v(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",s=>{this.change.emit(s),this.cardGroup?.change.emit(s)}),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))}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(le,8),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-card-expiry"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ti,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.cardGroup&&s.cardGroup.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),je=(()=>{let n=class n{constructor(e,t,s){i(this,"stripeElementsService");i(this,"cardGroup");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"elementsSubscription");this.stripeElementsService=e,this.cardGroup=t,this.elementsProvider=s}ngOnChanges(e){return v(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",s=>{this.change.emit(s),this.cardGroup?.change.emit(s)}),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))}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(le,8),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-card-cvc"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ii,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.cardGroup&&s.cardGroup.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Si=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");
1i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){this.element.update(e)}getEpsBankelement(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("epsBank",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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-eps-bank"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ni,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),bi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"cancel",new l);i(this,"clicked",new l);i(this,"confirm",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"loaderror",new l);i(this,"shippingaddresschange",new l);i(this,"shippingratechange",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&this.elements&&t&&this.createElement(s),this.state="ready"})}ngOnInit(){return v(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){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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-express-checkout"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.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"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,si,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Ei=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){this.element.update(e)}getFpxBank(){return this.element}createElement(e={accountHolderType:"individual"}){this.element&&this.element.unmount(),this.element=this.elements.create("fpxBank",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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-fpx-bank"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ri,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Pi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");
1i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-iban"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ai,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),wi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){this.element.update(e)}getIdealBank(){return this.element}createElement(e={}){this.element&&this.element.unmount(),this.element=this.elements.create("idealBank",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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-ideal-bank"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,oi,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),_i=(()=>{let n=class n{constructor(e,t,s){i(this,"cdr");i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");
1i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.cdr=e,this.stripeElementsService=t,this.elementsProvider=s}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s))})}ngOnInit(){return v(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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(te),y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-issuing-card-cvc-display"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,li,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),xi=(()=>{let n=class n{constructor(e,t,s){i(this,"cdr");i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.cdr=e,this.stripeElementsService=t,this.elementsProvider=s}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s))})}ngOnInit(){return v(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("issuingCardExpiryDisplay",e),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}};i(n,"\u0275fac",function(t){return new(t||n)(y(te),y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-issuing-card-expiry-display"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,mi,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Oi=(()=>{let n=class n{constructor(e,t,s){i(this,"cdr");i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");
1i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.cdr=e,this.stripeElementsService=t,this.elementsProvider=s}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s))})}ngOnInit(){return v(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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(te),y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-issuing-card-number-display"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ci,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Ii=(()=>{let n=class n{constructor(e,t,s){i(this,"cdr");i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.cdr=e,this.stripeElementsService=t,this.elementsProvider=s}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s))})}ngOnInit(){return v(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("issuingCardPinDisplay",e),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit(this.element)}};i(n,"\u0275fac",function(t){return new(t||n)(y(te),y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-issuing-card-pin-display"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,pi,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Ti=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");
1i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"loaderror",new l);i(this,"loaderstart",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&this.elements&&t&&this.createElement(s),this.state="ready"})}ngOnInit(){return v(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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-link-authentication"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.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"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,ui,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Fi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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)}getP24Bankelement(){return this.element}createElement(e){this.element&&this.element.unmount(),this.element=this.elements.create("p24Bank",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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-p24-bank"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,di,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),Ri=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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){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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-au-bank-account"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",blur:"blur",change:"change",focus:"focus",ready:"ready",escape:"escape"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,hi,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),ki=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"stripeElementRef");i(this,"element");i(this,"elements");i(this,"containerClass");i(this,"options");
1i(this,"elementsOptions");i(this,"stripe");i(this,"appearance");i(this,"clientSecret");i(this,"doNotCreateUntilClientSecretIsSet",!1);i(this,"load",new l);i(this,"blur",new l);i(this,"change",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"escape",new l);i(this,"loaderror",new l);i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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,K(K(K({},this.elementsOptions||{}),this.appearance?{appearance:this.appearance}:{}),this.clientSecret?{clientSecret:this.clientSecret}:{})).toPromise(),t=!0);let s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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,K(K(K({},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 p(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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-payment"]],viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.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"},standalone:!0,features:[T,M],decls:2,vars:0,consts:[["stripeElementRef",""],[1,"field"]],template:function(t,s){t&1&&w(0,"div",1,0)},dependencies:[O],encapsulation:2}));let a=n;return a})(),Mi=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"loadingTemplate");i(this,"stripeElementRef");i(this,"element");i(this,"containerClass");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"ready",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(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 s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s)),this.state="ready"})}ngOnInit(){return v(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)}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-payment-method-messaging"]],contentQueries:function(t,s,o){if(t&1&&B(o,q,5,k),t&2){let m;C(m=S())&&(s.loadingTemplate=m.first)}},viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",ready:"ready"},standalone:!0,features:[T,M],decls:3,vars:1,consts:[["stripeElementRef",""],[1,"field"],[3,"ngTemplateOutlet"]],template:function(t,s){t&1&&(d(0,"div",1,0),P(2,fi,1,1,"ng-container",2),c()),t&2&&(u(2),Q(s.state!=="ready"&&s.loadingTemplate?2:-1))},dependencies:[O,j],encapsulation:2}));let a=n;return a})(),qe=(()=>{let n=class n{constructor(e,t){i(this,"stripeElementsService");i(this,"elementsProvider");i(this,"stripeElementRef");i(this,"element");i(this,"paymentRequest");i(this,"containerClass");i(this,"paymentOptions");i(this,"options");i(this,"elementsOptions");i(this,"stripe");i(this,"load",new l);i(this,"change",new l);i(this,"blur",new l);i(this,"focus",new l);i(this,"ready",new l);i(this,"token",new l);i(this,"paymentMethod",new l);i(this,"source",new l);i(this,"cancel",new l);i(this,"shippingaddresschange",new l);i(this,"shippingoptionchange",new l);i(this,"notavailable",new l);i(this,"elements");i(this,"state","notready");i(this,"elementsSubscription");this.stripeElementsService=e,this.elementsProvider=t}ngOnChanges(e){return v(this,null,function*(){this.state="starting";let t=!1;if(!this.elementsProvider&&(e.elementsOptions||e.stripe||!this.elements)){let o=yield this.stripeElementsService.elements(this.stripe,this.elementsOptions).toPromise();this.elements=o,t=!0}e.paymentOptions&&this.paymentRequest&&this.updateRequest(this.paymentOptions);let s=this.stripeElementsService.mergeOptions(this.options,this.containerClass);(e.options||e.containerClass||!this.element||t)&&(this.element&&!t?this.update(s):this.elements&&t&&this.createElement(s))})}ngOnInit(){return v(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()}canMakePayment(){return p(this.paymentRequest.canMakePayment())}update(e){this.element.update(e)}updateRequest(e){let{currency:t,total:s,displayItems:o,shippingOptions:m}=e;this.paymentRequest.update({currency:t,total:s,displayItems:o,shippingOptions:m})}show(){this.paymentRequest.show()}abort(){this.paymentRequest.abort()}isShowing(){return this.paymentRequest.isShowing()}getButton(){return this.element}createElement(){return v(this,arguments,function*(e={}){this.paymentRequest=this.stripeElementsService.paymentRequest(this.stripe,this.paymentOptions),this.paymentRequest.on("token",s=>this.token.emit(s)),this.paymentMethod.observed&&this.paymentRequest.on("paymentmethod",s=>this.paymentMethod.emit(s)),this.source.observed&&!this.paymentMethod.observed&&this.paymentRequest.on("source",s=>this.source.emit(s)),this.paymentRequest.on("cancel",()=>this.cancel.emit()),this.paymentRequest.on("shippingaddresschange",s=>this.shippingaddresschange.emit(s)),this.paymentRequest.on("shippingoptionchange",s=>this.shippingoptionchange.emit(s)),this.element&&this.element.unmount(),this.element=this.elements.create("paymentRequestButton",K({paymentRequest:this.paymentRequest},e)),(yield this.paymentRequest.canMakePayment())?(this.element.on("click",
1s=>this.change.emit(s)),this.element.on("blur",()=>this.blur.emit()),this.element.on("focus",()=>this.focus.emit()),this.element.on("ready",()=>this.ready.emit()),this.element.mount(this.stripeElementRef.nativeElement),this.load.emit({paymentRequestButton:this.element,paymentRequest:this.paymentRequest})):this.notavailable.emit()})}};i(n,"\u0275fac",function(t){return new(t||n)(y(F),y(A,8))}),i(n,"\u0275cmp",I({type:n,selectors:[["ngx-stripe-payment-request-button"]],viewQuery:function(t,s){if(t&1&&x(D,5),t&2){let o;C(o=S())&&(s.stripeElementRef=o.first)}},inputs:{containerClass:"containerClass",paymentOptions:"paymentOptions",options:"options",elementsOptions:"elementsOptions",stripe:"stripe"},outputs:{load:"load",change:"change",blur:"blur",focus:"focus",ready:"ready",token:"token",paymentMethod:"paymentMethod",source:"source",cancel:"cancel",shippingaddresschange:"shippingaddresschange",shippingoptionchange:"shippingoptionchange",notavailable:"notavailable"},standalone:!0,features:[T,M],decls:2,vars:0,consts:[["stripeElementRef",""],[1,"field"]],template:function(t,s){t&1&&w(0,"div",1,0)},dependencies:[O],encapsulation:2}));let a=n;return a})(),Di=(()=>{let n=class n{constructor(e,t,s,o,m){i(this,"version");i(this,"baseKey");i(this,"baseOptions");i(this,"loader");i(this,"window");this.version=e,this.baseKey=t,this.baseOptions=s,this.loader=o,this.window=m}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 ae(this.version,this.loader,this.window,e||this.baseKey,t||this.baseOptions)}};i(n,"\u0275fac",function(t){return new(t||n)(_(Qe),_(De),_(Ae),_(Ne),_(Ee))}),i(n,"\u0275prov",H({token:n,factory:n.\u0275fac}));let a=n;return a})(),Ai=[yi,gi,vi,Ci,me,Be,je,Si,bi,Ei,Pi,wi,_i,xi,Oi,Ii,Ti,Fi,Ri,ki,Mi,qe];var Qi="17.2.0";function At(a,n){return[Ne,Pe,Di,F,Ee,Qt,{provide:De,useValue:a},{provide:Ae,useValue:n},{provide:Qe,useValue:Qi}]}var Nt=(()=>{let n=class n{static forRoot(e,t){return{ngModule:n,providers:[...At(e,t)]}}static forChild(e,t){return{ngModule:n,providers:[...At(e,t)]}}};i(n,"\u0275fac",function(t){return new(t||n)}),i(n,"\u0275mod",J({type:n})),i(n,"\u0275inj",Z({imports:[O,Ai]}));let a=n;return a})();var Bt=(()=>{let n=class n{constructor(e,t,s,o,m){this.customerService=e,this.http=t,this.globalSettingsService=s,this.functions=o,this.functionsInstances=m,this.baseUrl=W.baseUrl,W.useEmulator&<(this.functions,W.emulatorFunction[0],+W.emulatorFunction[1]),this.globalSettings=this.globalSettingsService.getGlobalSettings(),this.globalSettingsService.globalSettingsChange.subscribe(R=>{this.globalSettings=R}),this.customerSubscription=this.customerService.customerChange.subscribe(R=>{this.customer=R}),this.customer=this.customerService.getCustomer()}getCreatePaymentIntentResponse(e,t,s,o,m,R,Y){let $=re(this.functionsInstances[0],"createPaymentIntentCF");return o||m||R?this.createPaymentIntentCF$=p($({amount:e,customerReference:t,email:s,name:o,checkDigit:m,postCode:R,uid:Y})):this.createPaymentIntentCF$=p($({amount:e,customerReference:t,email:s,uid:Y})),this.createPaymentIntentCF$}getUpdatePaymentIntentResponse(e,t,s,o,m,R,Y,$,ce){let pe=re(this.functionsInstances[0],"updatePaymentIntentCF");return R||Y||$?this.createPaymentIntentCF$=p(pe({id:e,amount:t,customerReference:s,email:o,token:m,name:R,checkDigit:Y,postCode:$,uid:ce})):this.createPaymentIntentCF$=p(pe({id:e,amount:t,customerReference:s,email:o,token:m,uid:ce})),this.createPaymentIntentCF$}};n.\u0275fac=function(t){return new(t||n)(_(be),_(ve),_(Se),_(ot),_(Ce))},n.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"});let a=n;return a})();var jt={production:!0,useEmulator:!1,emulatorUrl:"",emulatorFunction:[],emulatorFirestore:[],baseUrl:"https://sewmylmdwcls.sewater.local:8451/",billUrl:"https://sewmylmdwcls.sewater.local:8451/",topUp:'["CASH"]',company:"LMH",sector:"ENERGY",application:"MYACCOUNT",crmVpcConnector:"crm1api-lmhdev",myVpcConnector:"ma2api-lmhdev",restrictIP:!1,restrictIPList:["80.194.52","212.38.169","78.129.217"],internalIPList:["80.194.52.135"],httpsCaFile1:"./certs/sewater.cer",httpsCaFile2:"",paymentsURL:["https://myaccountlmhdevpayments.southeastwater.co.uk","https://myaccountlmhdevpayments.southeastwater.co.uk/"],stripeKey:"pk_test_51Nab6xLAbMQyqcRAexd2F3bAnyfK8KQMtekCUTMnqCa3BzFO7PRP6NP0ksz6FkVQ74WLcij5rT27sdhrrWNwF6v000PIeNRPNP",whiteList:["http://lsew6320.local:4200","http://lsew6356.local:4200","https://lsew6320.local:4200","https://lsew6356.local:4200","http://sewcdw2.sewater.local:4200","http://sewcdw2.sewater.local:4201","http://sewcdw2.sewater.local:4202","http://sewcdw2.sewater.local:4203","http://sewcdw2.sewater.local:4204","http://sewcdw2.sewater.local:4205","http://sewcdw2.sewater.local:4206","http://sewcdw2.sewater.local:4207","http://sewcdw2.sewater.local:4208","http://sewcdw2.sewater.local:4209","http://sewcdw2.sewater.local:4210","https://sewcdw2.sewater.local:4200","https://sewcdw2.sewater.local:4201","https://dt-ma2-lmhdev.firebaseapp.com","https://dt-ma2-lmhdev.web.app","https://myaccountlmhdevpayments.southeastwater.co.uk"],recaptcha:{siteKey:"6LdsyccnAAAAAFUilbQH74ZP8YesrOnFNTJZt3vQ"},analyticsOn:!0,firebase:{apiKey:"AIzaSyABovGRk5EAYhj-Bq0i7H41i9bpWUMKszA",authDomain:"dt-ma2-lmhdev.firebaseapp.com",projectId:"dt-ma2-lmhdev",storageBucket:"dt-ma2-lmhdev.appspot.com",messagingSenderId:"183154805537",appId:"1:183154805537:web:a03e81b22c854376708c60",measurementId:"G-V43DLET1Z2"}};var we=class{constructor(n,r,e,t,s,o,m,R){this.customerReference=n,this.propertyReference=r,this.meterKey=e,this.method=t,this.uid=s,this.checkDigit=o,this.name=m,this.postCode=R}};var qt=(()=>{let n=class n{constructor(e,t,s){this.http=e,this.globalSettingsService=t,this.functionsInstances=s,this.baseUrl=jt.baseUrl,this.customerBasicInfoUrl=this.baseUrl+"customerBasicInfo",this.globalSettings=this.globalSettingsService.getGlobalSettings(),this.globalSettingsService.globalSettingsChange.subscribe(o=>{this.globalSettings=o})}getCustomerBasicInfo(e,t,s,o){let m=new we(e,"","","GET",this.globalSettings?.uid,t,s,o),R=re(this.functionsInstances[0],"customerBasicInfoCF");return this.customerBasicInfoCF$=p(R(m)),this.customerBasicInfoCF$}};n.\u0275fac=function(t){return new(t||n)(_(ve),_(Se),_(Ce))},n.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"});let a=n;return a})();var Ui=["template"],Ge=a=>({"is-invalid":a});function Hi(a,n){a&1&&w(0,"app-page-head",13),a&2&&g("showWelcome",!1)("pageHeader","Make a payment")}function Ki(a,n){a&1&&w(0,"app-page-head-logged-out",14),a&2&&g("pageHeader","Make a payment")}function Wi(a,n){if(a&1){let r=ee();d(0,"div")(1,"h2",15),E(2,"About you"),c(),w(3,"hr"),d(4,"div",16)(5,"label",17),E(6,"Account number"),c(),d(7,"small",18),E(8,"Your account number has 9 digits and you can usually find this at the top of your bill"),c(),d(9,"div",19)(10,"div",20)(11,"input",21),L("keydown.enter",function(t){return G(r),V(t.preventDefault())}),c()()(),w(12,"app-input-error-message",22),c(),d(13,"div",23)(14,"div",24)(15,"div",25)(16,"label",26),E(17,"Surname"),c(),d(18,"input",27),L("keydown.enter",function(t){return G(r),V(t.preventDefault())}),c(),w(19,"app-input-error-message",28),c()(),d(20,"div",24)(21,"div",25)(22,"label",29),E(23,"Postcode"),c(),d(24,"input",30),L("keydown.enter",function(t){return G(r),V(t.preventDefault())})("change",function(t){G(r);let s=b();return V(s.stripeForm.patchValue({guestPostcode:t.target.value.toUpperCase()}))}),c(),w(25,"app-input-error-message",31),c()(),w(26,"app-input-error-message",32)(27,"app-input-error-message",33),
1c(),d(28,"div",34)(29,"div",35)(30,"div",36)(31,"button",37),L("click",function(){G(r);let t=b();return V(t.verifyCustomer())}),E(32),c()()()()()}if(a&2){let r=b();u(11),g("ngClass",ye(10,Ge,r.idvSubmitted&&r.stripeForm.get("guestAccountNumber").errors)),u(),g("displayErrorIf",r.idvSubmitted&&r.stripeForm.get("guestAccountNumber").errors),u(6),g("ngClass",ye(12,Ge,r.idvSubmitted&&r.stripeForm.get("guestSurname").errors)),u(),g("displayErrorIf",r.idvSubmitted&&r.stripeForm.get("guestSurname").errors),u(5),g("ngClass",ye(14,Ge,r.idvSubmitted&&r.stripeForm.get("guestPostcode").errors)),u(),g("displayErrorIf",r.idvSubmitted&&r.stripeForm.get("guestPostcode").errors),u(),g("displayErrorIf",r.idvSubmitted&&r.pass===!1&&!(r.stripeForm.get("guestSurname").errors||r.stripeForm.get("guestAccountNumber").errors||r.stripeForm.get("guestPostcode").errors)),u(),g("displayErrorIf",r.idvSubmitted&&r.error===!0),u(4),g("disabled",r.idvLoading),u(),U(" ",r.idvLoading?"Checking account":"Proceed to payment"," ")}}function zi(a,n){a&1&&(d(0,"div",38),E(1," Please note that Last Mile Water shares a payment system with South East Water, therefore any Direct Debit payments will be displayed as South East Water Ltd on your bank statement. "),c())}function Yi(a,n){a&1&&(d(0,"h3",89),E(1," No payments due "),c())}function $i(a,n){if(a&1&&(d(0,"p",90)(1,"span",44),E(2,"\xA3"),c(),w(3,"span",45),ne(4,"moneyPipe"),w(5,"br"),E(6),ne(7,"date"),c()),a&2){let r=b(2);u(3),g("innerHTML",se(4,2,r.customer==null||r.customer.paymentPlan==null?null:r.customer.paymentPlan.nextPaymentAmount,!0),ie),u(3),U(" ",se(7,5,r.customer==null||r.customer.paymentPlan==null?null:r.customer.paymentPlan.nextPaymentDate,"dd MMM yy")," ")}}function Xi(a,n){if(a&1&&(d(0,"p"),E(1),ne(2,"number"),c()),a&2){let r=b(2);Ve("text-muted ",r.company==="MUA"?"":"text-muted"," mt-0"),u(),U(" includes overdue payments of \xA3",se(2,4,r.customer==null||r.customer.paymentPlan==null?null:r.customer.paymentPlan.overduePaymentAmount,"1.2-2")," ")}}function Zi(a,n){a&1&&(d(0,"div",35)(1,"div",91),E(2,"or pay using a card"),c()())}function Ji(a,n){a&1&&(d(0,"alert",92),E(1," You account is closed and you don't owe us any money so we don't need a payment "),c())}function en(a,n){a&1&&w(0,"i",93)}function tn(a,n){a&1&&w(0,"i",94)}function nn(a,n){a&1&&w(0,"i",95)}function sn(a,n){a&1&&w(0,"i",96)}function rn(a,n){a&1&&w(0,"i",97)}function an(a,n){a&1&&w(0,"i",98)}function on(a,n){a&1&&w(0,"i",99)}function ln(a,n){if(a&1&&(d(0,"span"),E(1),c()),a&2){let r=b(2);u(),U(" ",r.stripeForm.get("amount").value,"")}}function mn(a,n){if(a&1){let r=ee();d(0,"div")(1,"div",35)(2,"div",39)(3,"div",40)(4,"div",41)(5,"h5",42),E(6,"Balance"),c(),d(7,"p",43)(8,"span",44),E(9,"\xA3"),c(),w(10,"span",45),ne(11,"moneyPipe"),c()()()(),d(12,"div",39)(13,"div",40)(14,"div",41)(15,"h5",42),E(16,"Next payment"),c(),P(17,Yi,2,0,"h3",46)(18,$i,8,8,"p",47)(19,Xi,3,7,"p",48),c()()()(),d(20,"div",49)(21,"div",50)(22,"label",51),E(23,"Amount"),c(),d(24,"input",52),L("change",function(t){G(r);let s=b();return V(s.transformAmount(t))}),c()()(),d(25,"div",53),E(26),c(),d(27,"div",54)(28,"div",55)(29,"ngx-stripe-payment-request-button",56),We("paymentOptionsChange",function(t){G(r);let s=b();return Ke(s.paymentRequestOptions,t)||(s.paymentRequestOptions=t),V(t)}),L("paymentMethod",function(t){G(r);let s=b();return V(s.onPaymentMethod(t))})("notavailable",function(){G(r);let t=b();return V(t.onNotAvailable())})("ready",function(){G(r);let t=b();return V(t.onReady())}),c()()(),w(30,"hr"),P(31,Zi,3,0,"div",57),d(32,"alert",58),E(33," Loading card form, this might take a couple of seconds "),c(),P(34,Ji,2,0,"alert",59),d(35,"div",60)(36,"div",35)(37,"div",61)(38,"label",62),E(39,"Card Number"),c(),d(40,"ngx-stripe-card-number",63),L("change",function(t){G(r);let s=b();return V(s.onChange(t))})("ready",function(){G(r);let t=b();return V(t.onLoad())}),c(),d(41,"div",64),E(42),c()(),d(43,"div",65)(44,"div",66),P(45,en,1,0,"i",67)(46,tn,1,0,"i",68)(47,nn,1,0,"i",69)(48,sn,1,0,"i",70)(49,rn,1,0,"i",71)(50,an,1,0,"i",72)(51,on,1,0,"i",73),c()()(),d(52,"div",35)(53,"div",39)(54,"label",74),E(55,"Expiry Date"),c(),d(56,"ngx-stripe-card-expiry",75),L("change",function(t){G(r);let s=b();return V(s.onChange(t))}),c(),d(57,"div",76),E(58),c()(),d(59,"div",39)(60,"label",77),E(61,"Security Code"),c(),d(62,"ngx-stripe-card-cvc",75),L("change",function(t){G(r);let s=b();return V(s.onChange(t))}),c(),d(63,"div",78),E(64),c()()(),d(65,"div",35)(66,"div",39)(67,"label",79),E(68,"N
1ame on card"),c(),w(69,"input",80),d(70,"div",81),E(71),c()(),d(72,"div",39)(73,"label",82),E(74,"Postcode"),c(),w(75,"input",83),d(76,"div",84),E(77),c()()(),d(78,"div",35)(79,"div",36)(80,"label",85),E(81,"Email for receipt"),c(),w(82,"input",86),d(83,"div",81),E(84),c()()(),d(85,"div",34)(86,"div",35)(87,"div",36)(88,"button",87),L("click",function(){G(r),b();let t=Ue(10);return V(t.execute())}),E(89," Pay "),P(90,ln,2,1,"span",8),E(91," now "),c()()()()(),d(92,"div",88),E(93),c()()}if(a&2){let r=b();u(10),g("innerHTML",se(11,32,r.customer==null?null:r.customer.balance,!0),ie),u(7),g("ngIf",(r.customer==null||r.customer.paymentPlan==null?null:r.customer.paymentPlan.nextPaymentAmount)==0),u(),g("ngIf",(r.customer==null||r.customer.paymentPlan==null?null:r.customer.paymentPlan.nextPaymentAmount)!=0),u(),g("ngIf",r.customer==null||r.customer.paymentPlan==null?null:r.customer.paymentPlan.overduePaymentAmount),u(),g("hidden",!r.loaded||r.customer.movedOutDate&&r.customer.balance<=0),u(6),U(" ",r.amountError," "),u(3),He("paymentOptions",r.paymentRequestOptions),u(2),g("ngIf",r.paymentButtonsAvailable&&(!r.customer.movedOutDate||r.customer.balance>0)),u(),g("hidden",r.loaded||(r.customer==null?null:r.customer.movedOutDate)&&r.customer.balance<=0),u(2),g("ngIf",(r.customer==null?null:r.customer.movedOutDate)&&r.customer.balance<=0),u(),g("formGroup",r.stripeForm)("elementsOptions",r.elementsOptions)("hidden",!r.loaded||r.customer.movedOutDate&&r.customer.balance<=0),u(5),g("options",r.cardOptions),u(2),U(" ",r.numberError," "),u(2),g("ngSwitch",r.cardType),u(),g("ngSwitchCase","visa"),u(),g("ngSwitchCase","mastercard"),u(),g("ngSwitchCase","jcb"),u(),g("ngSwitchCase","discover"),u(),g("ngSwitchCase","diners"),u(),g("ngSwitchCase","amex"),u(6),g("options",r.cardOptions),u(2),U(" ",r.expiryError," "),u(4),g("options",r.cardOptions),u(2),U(" ",r.cvcError," "),u(7),U(" ",r.nameError," "),u(6),U(" ",r.postCodeError," "),u(7),U(" ",r.emailError," "),u(4),g("disabled",r.stripeForm.invali
1d||r.cvcError||r.numberError||r.expiryError),u(2),g("ngIf",r.stripeForm.get("amount").value),u(3),U(" ",r.generalError," ")}}function cn(a,n){if(a&1&&(d(0,"div"),w(1,"i",4),c()),a&2){let r=b(2);u(),g("ngClass",r.success?"bg-secondary fal fa-check":"bg-danger shadow fal fa-times")}}function pn(a,n){a&1&&(d(0,"div")(1,"div",107),Ie(),d(2,"svg",108),w(3,"path",109),c(),d(4,"svg",110),w(5,"path",111),c()()())}function un(a,n){a&1&&(d(0,"div")(1,"div",112),Ie(),d(2,"svg",108),w(3,"path",109),c(),d(4,"svg",113),w(5,"path",114),c()()())}function dn(a,n){if(a&1&&(d(0,"div"),P(1,pn,6,0,"div",8)(2,un,6,0,"div",8),c()),a&2){let r=b(2);u(),g("ngIf",r.success),u(),g("ngIf",!r.success)}}function hn(a,n){if(a&1){let r=ee();d(0,"div",100),P(1,cn,2,1,"div",8)(2,dn,3,2,"div",8),c(),d(3,"div",101),w(4,"h4",102),c(),d(5,"div",103),w(6,"p",104),c(),d(7,"div",105)(8,"button",106),L("click",function(){G(r);let t=b();return V(t.closeModal())}),E(9," Close "),c()()}if(a&2){let r=b();u(),g("ngIf",r.company==="SEW"||r.company==="ESP"),u(),g("ngIf",r.company==="ICOSA"||r.company==="MTX"||r.company==="MUA"||r.company==="LEF"),u(2),g("innerHTML",r.modalTitle,ie),u(2),g("innerHTML",r.modalBody,ie)}}function fn(a,n){if(a&1){let r=ee();d(0,"app-request-a-call-back",115),L("status",function(t){G(r);let s=b();return V(s.getMessage(t))}),c()}a&2&&g("defaultOption","Other payment enquiry")}var Gt=(()=>{let n=class n{constructor(e,t,s,o,m,R,Y,$,ce,pe,Lt,Ut,Ht,Kt,Wt){this.auth=e,this.spinner=t,this.spinnerService=s,this.modalService=o,this.analyticsService=m,this.pageScrollService=R,this.location=Y,this.currencyPipe=$,this.fb=ce,this.stripeService=pe,this.stripePaymentService=Lt,this.customerService=Ut,this.loggedOutDataService=Ht,this.authService=Kt,this.document=Wt,this.status=new l,this.config={animated:!0,keyboard:!0,backdrop:!0,ignoreBackdropClick:!1,class:""},this.loaded=!1,this.company=W.company,this.recaptchakey=W.recaptcha.siteKey,this.loggedIn=!1,this.cardType="",this.submitted=!1,this.idvSubmitted=!1,this.idvLoading=!1,this.idvCheckComplete=!1,this.submittedForm=!1,this.requestACallBack=!1,this.subscriptions=[],this.paymentButtonsAvailable=!1,this.cardOptions={style:{base:{iconColor:"#c4f0ff",fontWeight:"400",fontFamily:"jaf-facitweb",fontSize:"18px",fontSmoothing:"antialiased",":-webkit-autofill":{color:"#fce883"},"::placeholder":{color:"#87BBFD"}},invalid:{iconColor:"#d4351c",color:"#d4351c"}}},this.paymentRequestOptions={country:"GB",currency:"gbp",total:{label:"Pay now",amount:100},requestPayerName:!0,requestPayerEmail:!0},this.elementsOptions={fonts:[{cssSrc:"https://use.typekit.net/gdl0zav.css"}],locale:"en-GB"},this.alerts=[],this.campaigns=[],this.debug=!1,this.isLoggedIn$=this.authService.isLoggedIn.subscribe(zt=>this.loggedIn=zt)}ngOnInit(){return v(this,null,function*(){this.analyticsService.pageView("credit-card-payment-form","./credit-card-payment-form","card payment form"),this.stripeForm=this.fb.group({guestAccountNumber:[{disabled:!0,value:""},z.required],guestSurname:[{disabled:!0,value:""},z.required],guestPostcode:[{disabled:!0,value:""},[z.required,z.minLength(5)]],customer:["",[]],name:["",[z.required]],amount:["",[z.required]],postcode:["",[z.required]],email:["",[z.required,z.email]]}),at(this.auth).subscribe(e=>{this.stripeForm.patchValue({email:e?.email})}),this.loggedIn?this.uid=this.auth.currentUser.uid:(this.stripeForm.get("guestAccountNumber").enable(),this.stripeForm.get("guestSurname").enable(),this.stripeForm.get("guestPostcode").enable()),this.customerSubscription=this.customerService.customerChange.subscribe(e=>{this.customer=e,this.alerts=this.customerService.getAlerts("cardPayment"),this.campaigns=this.customerService.getCampaigns("cardPayment"),this.customer&&e?.paymentPlan?.nextPaymentAmount?this.stripeForm.patchValue({amount:this.currencyPipe.transform(this.customer?.paymentPlan?.nextPaymentAmount,"GBP")}):this.stripeForm.patchValue({amount:this.currencyPipe.transform(0,"GBP")})}),this.customer=this.customerService.getCustomer(),this.customer&&this.customer?.paymentPlan?.nextPaymentAmount?this.stripeForm.patchValue({amount:this.currencyPipe.transform(this.customer?.paymentPlan?.nextPaymentAmount,"GBP")}):this.stripeForm.patchValue({amount:this.currencyPipe.transform(0,"GBP")}),this.alerts=this.customerService.getAlerts("cardPayment"),this.campaigns=this.customerService.getCampaigns("cardPayment")})}focusOnError(e){e.focus()}verifyCustomer(){this.idvSubmitted=!0,this.error=!1,this.pass=null;let e=document.querySelector(".ng-invalid[formControlName]");if(this.stripeForm.get("guestAccountNumber").errors||this.stripeForm.get("guestSurname").errors||this.stripeForm.get("guestPostcode").errors)this.focusOnError(e);else{let t=this.stripeForm.get("guestAccountNumber").value.substr(0,8),s=this.stripeForm.get("guestAccountNumber").value.substr(-1);this.idvLoading=!0,this.loggedOutDataService.getCustomerBasicInfo(t,s,this.stripeForm.get("guestSurname").value,this.stripeForm.get("guestPostcode").value).subscribe(o=>{this.customer=o.data,this.idvLoading=!1,this.debug&&(console.log("this.customer: ",this.customer),console.log("this.customer.errors: ",o.data.errors?.length)),o.data.errors?.length>0?this.pass=!1:o.data?.response==="axios post error"?this.error=!0:(this.guestCustomerReference=t,this.guestCheckDigit=s,this.guestPostCode=this.stripeForm.get("guestPostcode").value,this.guestName=this.stripeForm.get("guestSurname").value,this.idvCheckComplete=!0,this.pass=!0,o.data&&o.data?.paymentPlan?.nextPaymentAmount?this.stripeForm.patchValue({amount:this.currencyPipe.transform(o.data?.paymentPlan?.nextPaymentAmount,"GBP")}):this.stripeForm.patchValue({amount:this.currencyPipe.transform(0,"GBP")}))})}}transformAmount(e){if(this.isNumber(this.stripeForm?.get("amount").value.replace("\xA3","").replace(",",""))){let s=this.currencyPipe.transform(this.stripeForm?.get("amount").value.replace("\xA3","").replace(",",""),"GBP");this.stripeForm?.patchValue({amount:s})}else this.stripeForm?.patchValue({amount:this.currencyPipe.transform("0","GBP")});let t=parseFloat(this.stripeForm?.get("amount").value.replace("\xA3","").replace(",",""))*100;this.updatePaymentAmount(t)}updatePaymentAmount(e){this.paymentRequestOptions={country:"GB",currency:"gbp",total:{label:"South East Water",amount:parseInt(e.toString())}
1,requestPayerName:!0,requestPayerEmail:!0}}pay(e){if(this.stripeForm.patchValue({customer:this.customer.customerReference}),this.generalError="",this.stripeForm.valid){this.spinnerService.setSpinnerDescription("Payment in progress - please do not refresh"),this.spinner.show(),this.submittedForm=!0;let t=parseFloat((parseFloat(parseFloat(this.stripeForm.get("amount").value?.replace("\xA3","")?.replace(",","")).toFixed(2))*100).toString()).toFixed(0);this.paymentID?this.stripePaymentService.getUpdatePaymentIntentResponse(this.paymentID,Math.trunc(parseInt(t)),this.customer.customerReference,this.stripeForm.get("email").value,e,this.guestName,this.guestCheckDigit,this.guestPostCode,this.uid).subscribe(s=>{s.error?(this.generalError=s.data.error.message,this.openModal(this.templateRef,!1,"Sorry there was a problem",s.data.error.message+" (PI)")):(this.clientSecret=s.data.client_secret,this.paymentID=s.data.id,this.creditCardPayment())}):this.stripePaymentService.getCreatePaymentIntentResponse(Math.trunc(parseInt(t)),this.customer.customerReference,this.stripeForm.get("email").value,this.guestName,this.guestCheckDigit,this.guestPostCode,this.uid).subscribe(s=>{s.data.error?(this.generalError=s.data.error.message,this.openModal(this.templateRef,!1,"Sorry there was a problem",s.data.error.message+" (PI)")):(this.clientSecret=s.data.client_secret,this.paymentID=s.data.id,this.creditCardPayment())})}}creditCardPayment(){this.stripeService.confirmCardPayment(this.clientSecret,{payment_method:{card:this.card.element,billing_details:{name:this.stripeForm.get("name").value,address:{postal_code:this.stripeForm.get("postcode").value}}}}).subscribe(e=>{if(this.spinner.hide(),this.clientSecret="",this.paymentID="",e.error)this.generalError=e.error.message,this.openModal(this.templateRef,!1,"Sorry there was a problem",e.error.message+" (CCP)");else if(e.paymentIntent.status==="succeeded"){let t="Your payment has been successful and your balance should be updated shortly";Me.includes(this.company)&&(t+=ke),this.openModal(this.templateRef,!0,"That is all done for you",t)}else this.openModal(this.templateRef,!0,"Sorry there was a problem","Please contact us and give us a reference: PAY:"+e.paymentIntent.status)})}onChange(e){let t=e?.error?.message;e.elementType.toString()=="cardCvc"?this.cvcError=t:e.elementType.toString()=="cardExpiry"?this.expiryError=t:e.elementType.toString()=="cardNumber"?(this.numberError=t,e.brand?this.cardType=e.brand:this.cardType=""):this.generalError=t}onPaymentMethod(e){this.spinnerService.setSpinnerDescription("Payment in progress - please do not refresh"),this.spinner.show(),this.submittedForm=!0;let t=parseFloat((parseFloat(parseFloat(this.stripeForm.get("amount").value?.replace("\xA3","")?.replace(",","")).toFixed(2))*100).toString()).toFixed(0);this.stripePaymentService.getCreatePaymentIntentResponse(Math.trunc(parseInt(t)),this.customer.customerReference,this.stripeForm.get("email").value,this.guestName,this.guestCheckDigit,this.guestPostCode,this.uid).pipe(h(s=>s?.data.error?(e.complete("fail"),Oe({error:new Error(s.data.error.message||"An unknown error occurred.")})):this.stripeService.confirmCardPayment(s.data.client_secret,{payment_method:e.paymentMethod.id},{handleActions:!1}).pipe(h(o=>o.error?(e.complete("fail"),this.spinner.hide(),Oe({error:new Error("Error confirming the payment (2)")})):(e.complete("success"),this.spinner.hide(),this.stripeService.confirmCardPayment(s.data.client_secret)))))).subscribe(s=>{if(s.error)this.generalError=s.error.message,this.openModal(this.templateRef,!1,"Sorry there was a problem",s.error.message);else{let o="Your payment has been successful and your balance should be updated shortly";Me.includes(this.company)&&(o+=ke),this.openModal(this.templateRef,!0,"That is all done for you",o)}})}onShippingAddressChange(e){e.shippingAddress.country!=="US"?e.updateWith({status:"invalid_shipping_address"}):fetch("/calculateShipping",{data:JSON.stringify({shippingAddress:e.shippingAddress})}).then(t=>t.json()).then(t=>e.updateWith({status:"success",shippingOptions:t.supportedShippingOptions}))}closeModal(){if(this.modalRef)this.success&&(this.onCancel(),this.requestACallBack=!1);else return;this.modalRef.hide(),this.modalRef=null}onNotAvailable(){this.paymentButtonsAvailable=!1}onReady(){this.paymentButtonsAvailable=!0;let e=parseFloat(this.stripeForm.get("amount").value.replace("\xA3","").replace(",",""))*100;this.updatePaymentAmount(e)}openModal(e,t,s,o){this.spinner.hide(),this.success=t,this.config.class=t?"success-modal":"warning-modal",this.modalTitle=s,this.modalBody=o,this.modalRef=this.modalService.show(e,Object.assign({},this.config)),this.subscriptions.push(this.modalService.onHide.subscribe(m=>{m=="backdrop-click"&&this.success&&(this.onCancel(),this.requestACallBack=!1)}))}onCancel(){this.location.back(),this.pageScrollService.scroll({document:this.document,scrollTarget:"#topnav",duration:100})}onCallBack(){this.closeModal(),this.status.emit("callback")}getMessage(e){this.onCancel(),this.requestACallBack=!1}onLoad(){this.loaded=!0}isNumber(e){return e!=null&&e!==""&&!isNaN(Number(e.toString()))}};n.\u0275fac=function(t){return new(t||n)(y(rt),y(ct),y(pt),y(wt),y(dt),y(ht),y($e),y(ge),y(Pt),y(Pe),y(Bt),y(be),y(qt),y(ut),y(Ye))},n.\u0275cmp=I({type:n,selectors:[["app-credit-card-payment-form"]],viewQuery:function(t,s){if(t&1&&(x(me,5),x(Ui,5)),t&2){let o;C(o=S())&&(s.card=o.first),C(o=S())&&(s.templateRef=o.first)}},outputs:{status:"status"},decls:15,vars:9,consts:[["captchaRef","reCaptcha"],["template",""],[3,"showWelcome","pageHeader",4,"ngIf"],[3,"pageHeader",4,"ngIf"],[3,"ngClass"],[1,"container","px-3","py-8","mx-auto"],[1,"form-wrap"],["novalidate","",3,"formGroup"],[4,"ngIf"],["class","alert alert-warning mb-3",4,"ngIf"],["size","invisible",3,"resolved","siteKey"],[1,"container"],[3,"defaultOption","status",4,"ngIf"],[3,"showWelcome","pageHeader"],[3,"pageHeader"],[1,"mb-0","text-dark"],[1,"form-group","mb-5"],["for","guestAccountNumber",1,"label","mb-0","required"],["id","guestAccountNumberHint",1,"hint"],[1,"form-row"],[1,"col-md-5"],["formControlName","guestAccountNumber","name","guestAccountNumber","id","guestAccountNumber","type","text","mask","00000000-A","placeholder","12345678-0","aria-describedby","guestAccountNumberHint guestAccountNumberError",1,"form-control","font-weight-bold",3,"keydown.enter","ngClass"],["errorMsg","Your account number is incorrect, it should be 9 digits long","id","guestAccountNumberError",3,"displayErrorIf"],[1,"form-row","align-items-end"],[1,"col-md-6","mb-5"],[1,"form-group"],["for","guestSurname",1,"label","required"],["type","text","formControlName","guestSurname","name","guestSurname","id","guestSurname","autocomplete","family-name","aria-describedby","nameError",1,"form-control","font-weight-bold",3,"keydown.enter","ngClass"],["errorMsg","Please provide your surname","id","nameError",3,"displayErrorIf"],["for","guestPostcode",1,"label","mb-0","required"],["type","text","formControlName","guestPostcode","name","guestPostcode","id","guestPostcode","autocomplete","postal-code","aria-describedby","postcodeHint postcodeError",1,"form-control","text-uppercase","font-weight-bold",3,"keydown.enter","change","ngClass"],["errorMsg","Your postcode is incorrect","id","postcodeError",3,"displayErrorIf"],["errorMsg","Your account number, surname and postcode don't match",3,"displayErrorIf"],["errorMsg","Sorry there has been an error please try again later.",3,"displayErrorIf"],[1,"clearfix"],[1,"row"],[1,"col-12","py-1"],["type","button",1,"btn","btn-dark","btn-block","font-weight-bold",3,"click","disabled"],[1,"alert","alert-warning","mb-3"],[1,"col-md-6","py-1"],[1,"card","h-100","text-white","bg-info"],[1,"card-body"],[1,"card-title","mb-0"],[1,"card-text","h3"],[1,"h3","mb-0"],[1,"h3","mb-0",3,"innerHTML"],["class","font-size-lg",4,"ngIf"],["class","card-text h3 mb-1",4,"ngIf"],[3,"class",4,"ngIf"],[1,"row",3,"hidden"],[1,"col-md-12","py-1"],["for","amount",1,"label","required"],["type","text","formControlName","amount",1,"form-control","font-weight-bold",3,"change"],["id","amount-card-errors",1,"text-danger"],[1,"row","py-2"],[1,"col-sm-12"],[3,"paymentOptionsChange","paymentMethod","notavailable","ready","paymentOptions"],["class","row",4,"ngIf"],["type","info",1,"text-center","h5",3,"hidden"],["type","info","class","text-center h5",4,"ngIf"],["ngxStripeCardGroup","",3,"formGroup","elementsOptions","hidden"],[1,"col-10","col-md-11","py-1"],["for","cardNumber",1,"label","required"],[1,"form-control","font-weight-bold",3,"change","ready","options"],["id","number-card-errors",1,"text-danger"],[1,"col-2","col-md-1","py-1"],[3,"ngSwitch"],["class","fab fa-2x fa-cc-visa","style","position: absolute; bottom: 15px",4,"ngSwitchCase"],["class","fab fa-2x fa-cc-mastercard","style","position: absolute; bottom: 15px",4,"ngSwitchCase"],["class","fab fa-2x fa-cc-jcb","style","position: absolute; bottom: 15px",4,"ngSwitchCase"],["class","fab fa-2x fa-cc-discover","style","position: absolute; bottom: 15px",4,"ngSwitchCase"],["class","fab fa-2x fa-cc-diners-club","style","position: absolute; bottom: 15px",4,"ngSwitchCase"],["class","fab fa-2x fa-cc-amex","style","position: absolute; bottom: 15px",4,"ngSwitchCase"],["class","fas fa-2x fa-credit-card-front","style","position: absolute; bottom: 15px",4,"ngSwitchDefault"],["for","expiryDate",1,"label","required"],[1,"form-control","font-weight-bold",3,"change","options"],["id","expiry-card-errors",1,"text-danger"],["for","cvc",1,"label","required"],["id","cvc-card-errors",1,"text-danger"],["for","cardName",1,"label","required"],["name","ccname","formControlName","name","autocomplete","cc-name",1,"form-control","font-weight-bold"],["
1id","name-card-errors",1,"text-danger"],["for","postcode",1,"label","required"],["name","ship-zip","formControlName","postcode","autocomplete","shipping postal-code",1,"form-control","font-weight-bold"],["id","postcode-card-errors",1,"text-danger"],["for","email",1,"label","required"],["name","email","type","email","formControlName","email",1,"form-control","font-weight-bold"],[1,"btn","btn-block","btn-success","font-weight-bold",3,"click","disabled"],["id","general-card-errors",1,"text-danger"],[1,"font-size-lg"],[1,"card-text","h3","mb-1"],[1,"col-md-12","text-center"],["type","info",1,"text-center","h5"],[1,"fab","fa-2x","fa-cc-visa",2,"position","absolute","bottom","15px"],[1,"fab","fa-2x","fa-cc-mastercard",2,"position","absolute","bottom","15px"],[1,"fab","fa-2x","fa-cc-jcb",2,"position","absolute","bottom","15px"],[1,"fab","fa-2x","fa-cc-discover",2,"position","absolute","bottom","15px"],[1,"fab","fa-2x","fa-cc-diners-club",2,"position","absolute","bottom","15px"],[1,"fab","fa-2x","fa-cc-amex",2,"position","absolute","bottom","15px"],[1,"fas","fa-2x","fa-credit-card-front",2,"position","absolute","bottom","15px"],[1,"icon-circle"],[1,"modal-header","justify-content-center"],[1,"modal-title",3,"innerHTML"],[1,"modal-body"],[1,"text-center",3,"innerHTML"],[1,"modal-footer","justify-content-center"],["type","button",1,"btn","btn-dark",3,"click"],[1,"icon-circle-inner","bg-active"],["xmlns","http://www.w3.org/2000/svg","width","279.5","height","268.79","viewBox","0 0 279.5 268.79",1,"pentagon"],["d","M856.134,1644.16a30,30,0,0,1-35.268,0L711.1,1564.41a30.009,30.009,0,0,1-10.9-33.55l41.926-129.04a30,30,0,0,1,28.532-20.73H906.338a30,30,0,0,1,28.532,20.73L976.8,1530.86a30.009,30.009,0,0,1-10.9,33.55Z","transform","translate(-698.75 -1381.09)"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512","fill","white"],["d","M413.505 91.951L133.49 371.966l-98.995-98.995c-4.686-4.686-12.284-4.686-16.971 0L6.211 284.284c-4.686 4.686-4.686 12.284 0 16.971l118.794 118.794c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.686-4.686-12.284-4.686-16.97 0z"],[1,"icon-circle-inner","bg-danger"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"],[3,"status","defaultOption"]],template:function(t,s){if(t&1){let o=ee();P(0,Hi,1,2,"app-page-head",2)(1,Ki,1,1,"app-page-head-logged-out",3),d(2,"section",4)(3,"div",5)(4,"div",6)(5,"form",7),P(6,Wi,33,16,"div",8)(7,zi,2,0,"div",9)(8,mn,94,35,"div",8),d(9,"re-captcha",10,0),L("resolved",function(R){return G(o),V(R&&s.pay(R))}),c()()()()(),P(11,hn,10,4,"ng-template",null,1,ze),d(13,"section",11),P(14,fn,1,1,"app-request-a-call-back",12),c()}t&2&&(g("ngIf",s.loggedIn),u(),g("ngIf",!s.loggedIn),u(),g("ngClass",s.company==="LMH"?"bg-primary":"bg-primary-light"),u(3),g("formGroup",s.stripeForm),u(),g("ngIf",!s.loggedIn&&!s.idvCheckComplete),u(),g("ngIf",s.company==="ICOSA"),u(),g("ngIf",s.loggedIn||s.idvCheckComplete),u(),Le("siteKey",s.recaptchakey),u(5),g("ngIf",s.requestACallBack))},dependencies:[Xe,Ze,Je,et,tt,ft,kt,Rt,xt,St,gt,vt,Ct,bt,Et,mt,Ot,It,me,Be,je,qe,le,nt,it,yt]});let a=n;return a})();var yn=()=>X(a=>a?!0:["auth/login"]),gn=[{path:"",component:Gt,data:{authGuardPipe:yn},canActivate:[_t],resolve:{settings:Re}}],Vt=(()=>{let n=class n{};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=J({type:n}),n.\u0275inj=Z({providers:[ge,Re],imports:[Fe.forChild(gn),Fe]});let a=n;return a})();var Ns=(()=>{let n=class n{};n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=J({type:n}),n.\u0275inj=Z({imports:[O,Dt,Mt,Vt,Tt,Ft,Nt.forRoot(W.stripeKey)]});let a=n;return a})();export{Ns as CreditCardPaymentModule};
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.