BillingAwaitCardActivationAndPaymentScreen",["fbt","BillingAwaitCardActivationAndPaymentScreenQuery.graphql","BillingSectionRow.react","BillingWizardColumn.react","BillingWizardProgressIndicator.react","BillingWizardRow.react","BillingWizardText.react","BillingWizardWrapper.react","RelayHooks","clearTimeout","react","setTimeout"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useEffect,_=300*1e3,f=e!==void 0?e:e=n("BillingAwaitCardActivationAndPaymentScreenQuery.graphql");function g(e){var t,n,a,i,l=e.onFailure,u=e.onNext,d=e.onTimeout,g=e.preloadedQuery,h=e.wrapperProps,y=o("RelayHooks").usePreloadedQuery(f,g),C=(t=y==null||(n=y.billing_async_payment_status)==null?void 0:n.payment_status)!=null?t:"FAILED",b=(a=(i=y.billing_async_card_status)==null?void 0:i.card_status)!=null?a:"FAILED";p(function(){C==="FAILED"||b==="FAILED"?l():C==="SUCCESS"&&b==="SUCCESS"&&u()},[b,l,u,C]);var v=m(function(){d()},[d]);p(function(){var e=r("setTimeout")(v,_);return function(){return r("clearTimeout")(e)}},[]);var S=s._(/*BTDS*/"Verifying card"),R=s._(/*BTDS*/"Stay on this screen to finish your payment"),L=s._(/*BTDS*/"Verification may take up to 5 minutes.");return c.jsx(r("BillingWizardWrapper.react"),babelHelpers.extends({},h,{hasBack:!1,title:S,children:c.jsx(r("BillingWizardColumn.react"),{padding:16,children:c.jsxs(r("BillingWizardColumn.react"),{padding:16,children:[c.jsx(r("BillingSectionRow.react"),{columnSpacing:12,marginBottom:16,children:c.jsx(r("BillingWizardRow.react"),{justify:"center",marginBottom:16,children:c.jsx(r("BillingWizardProgressIndicator.react"),{})})}),c.jsxs(r("BillingSectionRow.react"),{marginBottom:16,children:[c.jsx(r("BillingWizardRow.react"),{justify:"center",marginBottom:16,children:c.jsx(r("BillingWizardText.react"),{headline:R,level:3})}),c.jsx(r("BillingWizardRow.react"),{justify:"center",marginBottom:8,children:c.jsx(r("BillingWizardText.react"),{body:L,level:3,textAlign:"center"})})]})]})})}))}g.displayName=g.name+" [from "+i.id+"]",l.query=f,l.BillingAwaitCardActivationAndPaymentScreen=g}),226);
-----
BillingAwaitCardActivationAndPaymentScreenQuery.graphql",["BillingAwaitCardActivationAndPaymentScreenQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"cardStatusEntID"},t={defaultValue:null,kind:"LocalArgument",name:"eventContext"},r={defaultValue:null,kind:"LocalArgument",name:"paymentStatusEntID"},o={kind:"Variable",name:"event_context",variableName:"eventContext"},a=[o,{kind:"Variable",name:"id",variableName:"paymentStatusEntID"}],i={alias:null,args:null,kind:"ScalarField",name:"payment_status",storageKey:null},l=[o,{kind:"Variable",name:"id",variableName:"cardStatusEntID"}],s={alias:null,args:null,kind:"ScalarField",name:"card_status",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[e,t,r],kind:"Fragment",metadata:null,name:"BillingAwaitCardActivationAndPaymentScreenQuery",selections:[{alias:null,args:a,concreteType:"XFBBillingAsyncPaymentStatus",kind:"LinkedField",name:"billing_async_payment_status",plural:!1,selections:[i],storageKey:null},{alias:null,args:l,concreteType:"XFBBillingAsyncCardStatus",kind:"LinkedField",name:"billing_async_card_status",plural:!1,selections:[s],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,r,t],kind:"Operation",name:"BillingAwaitCardActivationAndPaymentScreenQuery",selections:[{alias:null,args:a,concreteType:"XFBBillingAsyncPaymentStatus",kind:"LinkedField",name:"billing_async_payment_status",plural:!1,selections:[i,u],storageKey:null},{alias:null,args:l,concreteType:"XFBBillingAsyncCardStatus",kind:"LinkedField",name:"billing_async_card_status",plural:!1,selections:[s,u],storageKey:null}]},params:{id:n("BillingAwaitCardActivationAndPaymentScreenQuery_facebookRelayOperation"),metadata:{live:{polling_interval:1e3}},name:"BillingAwaitCardActivationAndPaymentScreenQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
BillingAwaitCardActivationAndPaymentScreenQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25941761578745174"}),null);
-----