BillingManageBillingTermScreen.react",["fbt","BillingCurrencyAmount","BillingManageBillingTermScreenQuery.graphql","BillingManageBillingTermView.react","BillingWizardWrapper.react","RelayHooks","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=e!==void 0?e:e=n("BillingManageBillingTermScreenQuery.graphql");function m(e){var t,n,a,i,l,u,m,p=o("react-compiler-runtime").c(18),_=e.onNext,f=e.preloadedQuery,g=e.wrapperProps,h=o("RelayHooks").usePreloadedQuery(d,f),y=(t=h==null||(n=h.ad_account)==null||(n=n.active_billing_date_preference)==null?void 0:n.day_of_month)!=null?t:0,C=(a=h==null||(i=h.ad_account)==null?void 0:i.currency)!=null?a:"USD",b,v;if(p[0]!==C||p[1]!==(h==null||(l=h.ad_account)==null||(l=l.billing_threshold_currency_amount)==null?void 0:l.formatted_amount)||p[2]!==(h==null||(u=h.ad_account)==null?void 0:u.coupon_balance)||p[3]!==(h==null||(m=h.ad_account)==null?void 0:m.prepay_balance)){var S,R,L,E,k,I,T,D,x,$=o("BillingCurrencyAmount").createZero(C!=null?C:"USD"),P=(S=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(h==null||(R=h.ad_account)==null?void 0:R.prepay_balance))!=null?S:$,N=(L=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(h==null||(E=h.ad_account)==null?void 0:E.coupon_balance))!=null?L:$;b=!P.isZero()||!N.isZero(),v=(k=h==null||(I=h.ad_account)==null||(I=I.billing_threshold_currency_amount)==null?void 0:I.formatted_amount)!=null?k:$.toString(),p[0]=C,p[1]=h==null||(T=h.ad_account)==null||(T=T.billing_threshold_currency_amount)==null?void 0:T.formatted_amount,p[2]=h==null||(D=h.ad_account)==null?void 0:D.coupon_balance,p[3]=h==null||(x=h.ad_account)==null?void 0:x.prepay_balance,p[4]=b,p[5]=v}else b=p[4],v=p[5];var M=v,w;p[6]===Symbol.for("react.memo_cache_sentinel")?(w=s._(/*BTDS*/"Confirm"),p[6]=w):w=p[6];var A;p[7]!==_?(A={action:_,label:w},p[7]=_,p[8]=A):A=p[8];var F;p[9]===Symbol.for("react.memo_cache_sentinel")?(F=s._(/*BTDS*/"Manage payment frequency"),p[9]=F):F=p[9];var O;p[10]!==y||p[11]!==b||p[12]!==M?(O=c.jsx(r("BillingManageBillingTermView.react"),{activeBillingDay:y,hasFundsOrCredits:b,thresholdFormattedAmount:M}),p[10]=y,p[11]=b,p[12]=M,p[13]=O):O=p[13];var B;return p[14]!==A||p[15]!==O||p[16]!==g?(B=c.jsx(r("BillingWizardWrapper.react"),babelHelpers.extends({},g,{primaryButton:A,testid:void 0,title:F,children:O})),p[14]=A,p[15]=O,p[16]=g,p[17]=B):B=p[17],B}l.query=d,l.BillingManageBillingTermScreen=m}),226);
-----
BillingManageBillingTermScreenQuery.graphql",["BillingManageBillingTermScreenQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],t=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],r={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"day_of_month",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],l=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:i,args:null,argumentDefinitions:[]}],s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"BillingManageBillingTermScreenQuery",selections:[{alias:null,args:t,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[r,{alias:null,args:null,concreteType:"AdAccountBillingDatePreference",kind:"LinkedField",name:"active_billing_date_preference",plural:!1,selections:[o],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:l,storageKey:null},a],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"BillingManageBillingTermScreenQuery",selections:[{alias:null,args:t,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[r,{alias:null,args:null,concreteType:"AdAccountBillingDatePreference",kind:"LinkedField",name:"active_billing_date_preference",plural:!1,selections:[o,s],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:i,storageKey:null},a,s],storageKey:null}]},params:{id:n("BillingManageBillingTermScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingManageBillingTermScreenQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
BillingManageBillingTermScreenQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="31932423496405224"}),null);
-----