Module 825755

2,177 characters · in d1888db5bb483b12.js, f2d0df58d7eb2b0d.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (3)
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>x});var r=n(17928),l=n(228366),i=n(913122);let s="",u=null,o="",a=!1,c=null,d="",E="",A="",_="",N="",h="",I="",f="",C=!1,S=null,g=null,T=null,m=null;function p(){s="",u=null,o="",a=!1,c=null,d="US",E="",A="",_="",N="",h="",I="",f="",C=!1,S=null,g=null,T=null,m=null}function R(){S=null}function L(e){let{error:t}=e;S=t}function y(e){let{message:t}=e;S=new i.Ey(t)}class P extends r.Ay.Store{static displayName="NewPaymentSourceStore";get popupCallbackCalled(){return T}get braintreeEmail(){return s}get braintreeNonce(){return u}get venmoUsername(){return o}get redirectedPaymentId(){return g}get adyenPaymentData(){return c}get redirectedPaymentSourceId(){return m}clearRedirectedPaymentSourceId(){m=null}getCreditCardInfo(){return{name:E}}get isCardInfoValid(){return a}getBillingAddressInfo(){return{name:E,email:A,country:d,line1:_,line2:N,city:h,postalCode:I,state:f}}get isBillingAddressInfoValid(){return C}get error(){return S}}let x=new P(l.h,{NEW_PAYMENT_SOURCE_CARD_INFO_UPDATE:function(e){let{info:t,isValid:n}=e;E=t.name,a=n},NEW_PAYMENT_SOURCE_ADDRESS_INFO_UPDATE:function(e){let{info:t,isValid:n}=e;null!=t.name&&""!==t.name&&(E=t.name),d=t.country,E=t.name,_=t.line1,N=t.line2,h=t.city,I=t.postalCode,f=t.state,A=t.email,C=n},BRAINTREE_TOKENIZE_PAYPAL_START:function(){s="",u=null},BRAINTREE_TOKENIZE_PAYPAL_SUCCESS:function(e){let{email:t,nonce:n,billingAddress:r}=e;s=t,u=n,E=r.name,d=r.country,_=r.line1,N=r.line2,h=r.city,I=r.postalCode,f=r.state,A=r.email,C=d.length>0},BRAINTREE_TOKENIZE_VENMO_START:function(){o="",u=null},BRAINTREE_TOKENIZE_VENMO_SUCCESS:function(e){let{username:t,nonce:n}=e;o=t,u=n},BRAINTREE_TOKENIZE_PAYPAL_FAIL:y,BRAINTREE_TOKENIZE_VENMO_FAIL:y,ADYEN_CASH_APP_PAY_SUBMIT_SUCCESS:function(e){let{data:t}=e;c=t},BILLING_PAYMENT_SOURCE_CREATE_START:R,MODAL_POP:R,NEW_PAYMENT_SOURCE_CLEAR_ERROR:R,BILLING_PAYMENT_SOURCE_CREATE_FAIL:L,STRIPE_TOKEN_FAILURE:L,BILLING_PAYMENT_SOURCE_CREATE_SUCCESS:p,LOGOUT:p,BILLING_POPUP_BRIDGE_CALLBACK:function(e){let{query:t}=e;t?.payment_id!=null?(T=!0,g=t.payment_id):t?.payment_source_id!=null&&(T=!0,m=t.payment_source_id)},RESET_PAYMENT_ID:function(){T=!1,g=null}})}