BillingAddFundsPage.react",["fbt","BillingAddFundsPage_paymentAccount.graphql","BillingBasePage.react","BillingCurrencyAmount","BillingExistingPaymentMethodSection.react","BillingNewPaymentMethodSection.react","CometRelay","FrontierSection.react","FrontierSectionHeader.react","FrontierTextInput.react","nullthrows","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["onPMSelect","onSubmit","onUpdateSelectedPM","paymentAccount","selectedPM"],u,c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useCallback,f=m.useMemo,g=m.useState,h=u!==void 0?u:u=n("BillingAddFundsPage_paymentAccount.graphql");function y(t){var n,a,i,l,u=t.onPMSelect,c=t.onSubmit,d=t.onUpdateSelectedPM,m=t.paymentAccount,y=t.selectedPM,C=babelHelpers.objectWithoutPropertiesLoose(t,e),b=o("CometRelay").useFragment(h,m),v=b.billable_account,S=v.currency,R=r("nullthrows")(o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(v.prepay_balance)),L=g(y.defaultAmount.toString()),E=L[0],k=L[1],I=g((n=(a=(i=b.billing_payment_methods[0])==null||(i=i.credential)==null?void 0:i.credential_id)!=null?a:(l=b.billing_payment_method_options[0])==null?void 0:l.__typename)!=null?n:null),T=I[0],D=I[1],x=_(function(e,t){D(e),u(t)},[u]),$=_(function(e){D(e),u(function(t){t.onDone(e)})},[u]),P=f(function(){return E===""?o("BillingCurrencyAmount").createZero(S):o("BillingCurrencyAmount").getFromUserInput(E,S)},[E,S]),N=_(function(){c(P)},[P,c]);return p.jsx(r("BillingBasePage.react"),babelHelpers.extends({},C,{interactionDescription:"billing-believe-add-funds-page",primaryButtonProps:{label:s._(/*BTDS*/""),onPress:N,testid:"billing-believe-add-funds-primary-button",type:"primary"},children:p.jsxs(r("FrontierSection.react"),{children:[p.jsx(r("FrontierSection.react"),{header:p.jsx(r("FrontierSectionHeader.react"),{subtitle:s._(/*BTDS*/""),title:s._(/*BTDS*/"")}),children:p.jsx(r("FrontierTextInput.react"),{label:s._(/*BTDS*/""),onValueChange:k,testid:void 0,type:"text",value:E})}),p.jsx(r("BillingExistingPaymentMethodSection.react"),{onSelect:$,onUpdateSelectedPM:d,paymentAccount:b,paymentMethods:b.billing_payment_methods,selected:T}),p.jsx(r("BillingNewPaymentMethodSection.react"),{hideCouponOption:!0,onSelect:x,onUpdateSelectedPM:d,paymentAccount:b,paymentOptions:b.billing_payment_method_options,selected:T})]})}))}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226);
-----
useBillingSelectedPaymentMethod",["BillingCurrencyAmount","CometRelay","nullthrows","react","useBillingSelectedPaymentMethod_account.graphql","useBillingSelectedPaymentMethod_prepayDetails.graphql"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=u||(u=o("react")),d=c.useCallback,m=c.useState,p=e!==void 0?e:e=n("useBillingSelectedPaymentMethod_prepayDetails.graphql"),_=s!==void 0?s:s=n("useBillingSelectedPaymentMethod_account.graphql");function f(e){var t,n,a=o("CometRelay").useFragment(_,e),i=a.billing_payment_method_options,l=a.billing_payment_methods,s=l.length>0?l[0].credential:i[0],u=o("CometRelay").readInlineData(p,s==null?void 0:s.prepay_funding_details),c=m({credentialType:(t=s==null?void 0:s.credential_type)!=null?t:s.__typename,defaultAmount:r("nullthrows")(o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(u==null?void 0:u.default_funding_amount)),id:(n=s==null?void 0:s.credential_id)!=null?n:null,maxAmount:r("nullthrows")(o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(u==null?void 0:u.max_acceptable_amount)),minAmount:r("nullthrows")(o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(u==null?void 0:u.min_acceptable_amount))}),f=c[0],g=c[1],h=d(function(e,t,n){var a=o("CometRelay").readInlineData(p,n),i=r("nullthrows")(o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.default_funding_amount)),l=r("nullthrows")(o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.max_acceptable_amount)),s=r("nullthrows")(o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.min_acceptable_amount));g({credentialType:e,defaultAmount:i,id:t,maxAmount:l,minAmount:s})},[]);return[f,h]}l.default=f}),98);
-----
BillingAddFundsPage_paymentAccount.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},t=[{kind:"Variable",name:"intent",variableName:"intent"}];return{argumentDefinitions:[{kind:"RootArgument",name:"intent"}],kind:"Fragment",metadata:null,name:"BillingAddFundsPage_paymentAccount",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{kind:"RequiredField",field:e,action:"THROW",path:"billable_account.currency"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},e],args:null,argumentDefinitions:[]}],storageKey:null},action:"THROW",path:"billable_account.prepay_balance"}],storageKey:null},action:"THROW",path:"billable_account"},{kind:"RequiredField",field:{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},action:"THROW",path:"billing_payment_method_options.__typename"},{args:null,kind:"FragmentSpread",name:"BillingNewPaymentMethodSection_paymentOptions"}],storageKey:null},action:"THROW",path:"billing_payment_method_options"},{kind:"RequiredField",field:{alias:null,args:[{fields:t,kind:"ObjectValue",name:"usability_params"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingExistingPaymentMethodSection_paymentMethods"}],storageKey:null},action:"THROW",path:"billing_payment_methods"},{args:null,kind:"FragmentSpread",name:"BillingNewPaymentMethodSection_paymentAccount"},{args:null,kind:"FragmentSpread",name:"BillingExistingPaymentMethodSection_paymentAccount"}],type:"PaymentAccount",abstractKey:"__isPaymentAccount"}})();a.exports=e}),null);
-----
useBillingSelectedPaymentMethod_account.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{kind:"Variable",name:"intent",variableName:"intent"}],t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},n=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],r={alias:null,args:[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_funding_details",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"useBillingSelectedPaymentMethod_prepayDetails",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:n,storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null};return{argumentDefinitions:[{kind:"RootArgument",name:"intent"},{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:null,name:"useBillingSelectedPaymentMethod_account",selections:[{kind:"RequiredField",field:{alias:null,args:[{fields:e,kind:"ObjectValue",name:"usability_params"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[t,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},r],type:"ExternalCreditCard",abstractKey:null}],storageKey:null},action:"THROW",path:"billing_payment_methods.credential"}],storageKey:null},action:"THROW",path:"billing_payment_methods"},{kind:"RequiredField",field:{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[t,{kind:"InlineFragment",selections:[r],type:"AdAccountNewCreditCardOption",abstractKey:null}],storageKey:null},action:"THROW",path:"billing_payment_method_options"}],type:"PaymentAccount",abstractKey:"__isPaymentAccount"}})();a.exports=e}),null);
-----
BillingCreditCardOption_credential.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:null,name:"BillingCreditCardOption_credential",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},action:"THROW",path:"credential_id"},{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},action:"THROW",path:"credential_type"},{alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},action:"THROW",path:"billing_icons.uri"}],storageKey:"billing_icons(limit:1)"},{kind:"RequiredField",field:{alias:null,args:[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_funding_details",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"useBillingSelectedPaymentMethod_prepayDetails",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:e,storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},action:"THROW",path:"prepay_funding_details"}],type:"ExternalCreditCard",abstractKey:null}})();a.exports=e}),null);
-----
BillingAutomaticBillingStatusUtils",["fbt","BillingAutomaticBillingStatusUtils_billableAccount.graphql","BillingCurrencyAmount","BillingDateUtils","DateTime","RelayHooks"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=0,c=e!==void 0?e:e=n("BillingAutomaticBillingStatusUtils_billableAccount.graphql");function d(e,t){var n,a,i,l,d=o("RelayHooks").readInlineData(c,e),m=(n=d==null?void 0:d.next_bill_date)!=null?n:0,p=(a=d==null||(i=d.timezone_info)==null?void 0:i.timezone_id)!=null?a:u,_=r("DateTime").create(m,p).getDayOfMonth(),f=_+o("BillingDateUtils").ordinalSuffix(_),g=d==null?void 0:d.billing_threshold_currency_amount,h=g!=null?(l=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g))==null?void 0:l.format():null,y={body:s._(/*BTDS*/"",[s._param("payment threshold",h),s._param("payment method name",t),s._param("billing date",f)]),headline:s._(/*BTDS*/""),type:"SUCCESS"};return y}l.getAutomaticBillingTransitionSuccessStatus=d}),226);
-----
usePolarisBoostSalesObjectiveInfo",["BillingCurrencyAmount","CometRelay","InstagramBoostOnWebApiMismatchFalcoEvent","filterNulls","purchaseObjectiveGating","react","react-compiler-runtime","shallowEqual","usePolarisBoostPurchaseObjectiveInfo","usePolarisBoostSalesObjectiveInfoFragment.graphql","usePolarisViewer"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=(s||(s=o("react"))).useEffect;function c(t,a,i,l,s){var c,p,_,f=o("react-compiler-runtime").c(24),g=o("CometRelay").readInlineData(e!==void 0?e:e=n("usePolarisBoostSalesObjectiveInfoFragment.graphql"),l),h=o("usePolarisBoostPurchaseObjectiveInfo").usePolarisBoostPurchaseObjectiveInfo(s),y=g!=null?g:{},C=y.business_name,b=y.has_shopify_store_without_sma,v=y.min_total_budget,S=y.sales_objective_flags,R=y.shopify_stores,L=S!=null?S:{},E=L.is_personal_ad_account,k;f[0]!==t||f[1]!==i||f[2]!==a?(k=t!=null&&a!=null&&(i==null?void 0:i.id)!=null&&(i==null?void 0:i.name)!=null?{cta:t,pixel:{id:i.id,name:i.name},website:a}:null,f[0]=t,f[1]=i,f[2]=a,f[3]=k):k=f[3];var I=k,T=r("filterNulls")((c=R==null?void 0:R.map(d))!=null?c:[]).length>0,D=m(T,E!=null?E:!1),x=(b!=null?b:!1)&&o("purchaseObjectiveGating").doesUserPassPurchaseObjectiveA1Gating(),$=(p=h==null?void 0:h.has_active_pixel)!=null?p:!1,P;f[4]!==$?(P=$&&o("purchaseObjectiveGating").doesUserPassPurchaseObjectiveExistingPixelNonShopifyGating(),f[4]=$,f[5]=P):P=f[5];var N=P,M;if(f[6]!==(h==null?void 0:h.is_new_pixel_eligible)){var w;M=((w=h==null?void 0:h.is_new_pixel_eligible)!=null?w:!1)&&o("purchaseObjectiveGating").doesUserPassPurchaseObjectiveNewPixelNonShopifyGating(),f[6]=h==null?void 0:h.is_new_pixel_eligible,f[7]=M}else M=f[7];var A=M,F=D||x||N||A,O;f[8]!==h?(O=h!=null?h:{},f[8]=h,f[9]=O):O=f[9];var B=O,W=B.has_a0_website,q=B.has_a1_website,U=(_=r("usePolarisViewer")())!=null?_:{},V=U.id;u(function(){var e={hasA0Website:T,hasA1Website:b!=null?b:!1},t={hasA0Website:W!=null?W:!1,hasA1Website:q!=null?q:!1},n=r("shallowEqual")(e,t),o=!n||(W!=null?W:!1)||(q!=null?q:!1);o&&r("InstagramBoostOnWebApiMismatchFalcoEvent").log(function(){return{distillery_api:"purchase_objective_eligibility",distillery_response:JSON.stringify(e),instagram_user_id:V!=null?V:"",is_equal:n,prohibition_api:"purchase_objective_eligibility",prohibition_response:JSON.stringify(t)}})},[T,W,q,b,V]);var H=C!=null?C:"",G=E!=null?E:!1,z=o("BillingCurrencyAmount").getFromPECurrencyAmount(v),j;f[10]!==R?(j=R!=null?R:[],f[10]=R,f[11]=j):j=f[11];var K;return f[12]!==$||f[13]!==D||f[14]!==x||f[15]!==N||f[16]!==A||f[17]!==I||f[18]!==F||f[19]!==H||f[20]!==G||f[21]!==z||f[22]!==j?(K={businessName:H,hasActivePixel:$,isA0FlowEligible:D,isA1FlowEligible:x,isActivePixelEligible:N,isNewPixelEligible:A,isPersonalAdAccount:G,minTotalBudget:z,sabrMinBudget:null,sabrMinDuration:null,selections:I,shouldShowBudgetWarningPopup:!1,shouldShowSABRLowBudgetWarningPopup:!1,shouldShowSalesObjective:F,stores:j,tempSelections:null},f[12]=$,f[13]=D,f[14]=x,f[15]=N,f[16]=A,f[17]=I,f[18]=F,f[19]=H,f[20]=G,f[21]=z,f[22]=j,f[23]=K):K=f[23],K}function d(e){return e.website}var m=function(t,n){return t?n?o("purchaseObjectiveGating").doesUserPassPurchaseObjectivePersonalAdAccountGating():o("purchaseObjectiveGating").doesUserPassSalesObjectiveRolloutGating():!1};l.usePolarisBoostSalesObjectiveInfo=c}),98);
-----
Billing3PUPIDirectPaymentStepView.react",["fbt","Billing3PUPIDirectPaymentStepView_paymentStep.graphql","BillingCountDownTimer.react","BillingCurrencyAmount","BillingPlatformContext","BillingRecurringLPMUtils","BillingRowContainer.react","BillingWizardColumn.react","BillingWizardLink.react","BillingWizardRow.react","BillingWizardText.react","BillingWizardWrapper.react","BillingWizardXMDSImage.react","CometRelay","XMDSImage.react","asyncToGeneratorRuntime","filterNulls","react","react-compiler-runtime","useBillingOpenLink"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useCallback,_=d.useContext,f=d.useEffect,g=d.useMemo,h=d.useRef,y=d.useState;function C(t){var a,i,l=o("react-compiler-runtime").c(43),u=t.onExpire,c=t.paymentStep,d=t.wrapperProps,p=o("CometRelay").useFragment(e!==void 0?e:e=n("Billing3PUPIDirectPaymentStepView_paymentStep.graphql"),c),g=r("useBillingOpenLink")(),C;l[0]!==g||l[1]!==p.app_switch_options?(C=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield g(p.app_switch_options[p.app_switch_options.length-1].deeplink)});return function(){return e.apply(this,arguments)}})(),l[0]=g,l[1]=p.app_switch_options,l[2]=C):C=l[2];var R=C,L=_(r("BillingPlatformContext")),E=h(!1),k,I;l[3]!==R||l[4]!==L?(k=function(){L!=="desktop"&&!E.current&&(E.current=!0,R())},I=[R,L],l[3]=R,l[4]=L,l[5]=k,l[6]=I):(k=l[5],I=l[6]),f(k,I);var T;if(l[7]!==p.amount){var D;T=(D=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(p.amount))==null?void 0:D.format({showDecimals:!0,showSymbol:!0}),l[7]=p.amount,l[8]=T}else T=l[8];var x=T,$;l[9]!==p.supporting_icons?($=r("filterNulls")(p.supporting_icons.map(S)),l[9]=p.supporting_icons,l[10]=$):$=l[10];var P=$,N=y(v),M=N[0],w;l[11]===Symbol.for("react.memo_cache_sentinel")?(w=s._(/*BTDS*/"Add funds"),l[11]=w):w=l[11];var A;l[12]===Symbol.for("react.memo_cache_sentinel")?(A=m.jsx(r("BillingWizardRow.react"),{justify:"start",children:m.jsx(r("BillingWizardText.react"),{headline:s._(/*BTDS*/"Use UPI to pay"),testid:void 0})}),l[12]=A):A=l[12];var F;l[13]===Symbol.for("react.memo_cache_sentinel")?(F=m.jsx(r("BillingWizardRow.react"),{marginBottom:8,wrap:!1,children:m.jsx(r("BillingWizardText.react"),{body:s._(/*BTDS*/"1. Open the app linked to your UPI")})},0),l[13]=F):F=l[13];var O;l[14]===Symbol.for("react.memo_cache_sentinel")?(O=m.jsx(r("BillingWizardRow.react"),{marginBottom:8,wrap:!1,children:m.jsx(r("BillingWizardText.react"),{body:s._(/*BTDS*/"2. Scan the QR Code")})},1),l[14]=O):O=l[14];var B;l[15]!==x?(B=s._(/*BTDS*/"3. Approve your {amount} charge to complete transaction",[s._param("amount",x)]),l[15]=x,l[16]=B):B=l[16];var W;l[17]!==B?(W=m.jsxs(r("BillingWizardRow.react"),{justify:"start",children:[F,O,m.jsx(r("BillingWizardRow.react"),{marginBottom:8,wrap:!1,children:m.jsx(r("BillingWizardText.react"),{body:B})},2)]}),l[17]=B,l[18]=W):W=l[18];var q=(a=p.scan_code.height)!=null?a:195,U=(i=p.scan_code.width)!=null?i:195,V;l[19]!==p.scan_code.src||l[20]!==q||l[21]!==U?(V=m.jsx(r("BillingWizardRow.react"),{justify:"center",testid:void 0,children:m.jsx(r("BillingWizardXMDSImage.react"),{addWhiteBoundary:!0,height:q,src:p.scan_code.src,width:U})}),l[19]=p.scan_code.src,l[20]=q,l[21]=U,l[22]=V):V=l[22];var H;l[23]!==p.supporting_icons.length||l[24]!==P?(H=p.supporting_icons.length>0&&m.jsx(r("BillingWizardRow.react"),{columnSpacing:8,justify:"center",children:P}),l[23]=p.supporting_icons.length,l[24]=P,l[25]=H):H=l[25];var G;l[26]!==p.supporting_link?(G=m.jsx(r("BillingWizardRow.react"),{justify:"center",children:p.supporting_link!=null?m.jsx(r("BillingWizardLink.react"),{color:"highlight",href:p.supporting_link,inline:!0,label:o("BillingRecurringLPMUtils").SEE_ALL_SUPPORTED_APPS,level:3}):m.jsx(r("BillingWizardText.react"),{body:o("BillingRecurringLPMUtils").SEE_ALL_SUPPORTED_APPS,bodyColor:"highlight",level:3})}),l[26]=p.supporting_link,l[27]=G):G=l[27];var z;l[28]!==H||l[29]!==G?(z=m.jsxs(r("BillingWizardRow.react"),{children:[H,G]}),l[28]=H,l[29]=G,l[30]=z):z=l[30];var j;l[31]!==W||l[32]!==V||l[33]!==z?(j=m.jsxs(r("BillingRowContainer.react"),{marginBottom:16,children:[A,W,V,z]}),l[31]=W,l[32]=V,l[33]=z,l[34]=j):j=l[34];var K;l[35]!==u||l[36]!==p.expiration_time||l[37]!==M?(K=p.expiration_time!=null&&m.jsx(r("BillingWizardRow.react"),{align:"start",borderTop:!0,justify:"start",children:m.jsx(r("BillingCountDownTimer.react"),{startTime:M,totalTimeInMinutes:(p.expiration_time-M/1e3)/60,triggerOnExpire:u})}),l[35]=u,l[36]=p.expiration_time,l[37]=M,l[38]=K):K=l[38];var Q;return l[39]!==j||l[40]!==K||l[41]!==d?(Q=m.jsxs(r("BillingWizardWrapper.react"),babelHelpers.extends({},d,{hasBack:!1,onLoaded:b,testid:void 0,title:w,children:[j,K]})),l[39]=j,l[40]=K,l[41]=d,l[42]=Q):Q=l[42],Q}function b(){}function v(){return Date.now()}function S(e,t){var n,o;return(e==null?void 0:e.src)!=null?m.jsx(r("BillingWizardColumn.react"),{children:m.jsx(r("XMDSImage.react"),{height:(n=e.height)!=null?n:void 0,src:e.src,width:(o=e.width)!=null?o:void 0})},t+"scanCodeIcon"):null}l.default=C}),226);
-----
Billing3PUPINativePaymentStepView.react",["fbt","Billing3PPaymentContextView.react","Billing3PUPINativePaymentStepView_paymentStep.graphql","BillingCurrencyAmount","BillingPlatformContext","BillingRecurringLPMUtils","BillingWizardLink.react","BillingWizardText.react","BillingWizardWrapper.react","CometRelay","FrontierUPIAutopayLogo","MetaLockupPrimary.react","XMDSImage.react","asyncToGeneratorRuntime","react","react-compiler-runtime","react-strict-dom","useBillingOpenLink"],(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.useContext,_=d.useMemo,f={amountContainer:{display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"xl56j7k",$$css:!0},contextViewContainer:{display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},footerLogoContainer:{height:"x10w6t97",width:"x1u78mur",$$css:!0},iconContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"xl56j7k",marginBottom:"x1yztbdb",$$css:!0},instructionsContainer:{display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"xlqzeqv",$$css:!0},paymentContainer:{display:"x78zum5",flexDirection:"xdt5ytf",rowGap:"x3pnbk8",$$css:!0},qrBackground:{backgroundColor:"x14hiurz",display:"x78zum5",paddingTop:"x1nn3v0j",paddingInlineEnd:"x14vy60q",paddingBottom:"x1120s5i",paddingInlineStart:"xyiysdx",$$css:!0},qrContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"xl56j7k",$$css:!0},supportingLinkContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"xl56j7k",$$css:!0},viewContainer:{display:"x78zum5",flexDirection:"xdt5ytf",paddingTop:"xyamay9",paddingInlineEnd:"xv54qhq",paddingBottom:"x1l90r2v",paddingInlineStart:"xf7dkkf",rowGap:"xgpatz3",$$css:!0}};function g(t){var a,i,l=o("react-compiler-runtime").c(50),u=t.paymentStep,d=t.wrapperProps,m=o("CometRelay").useFragment(e!==void 0?e:e=n("Billing3PUPINativePaymentStepView_paymentStep.graphql"),u),_=r("useBillingOpenLink")(),g;l[0]!==_||l[1]!==m.app_switch_options?(g=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield _(m.app_switch_options[m.app_switch_options.length-1].deeplink)});return function(){return e.apply(this,arguments)}})(),l[0]=_,l[1]=m.app_switch_options,l[2]=g):g=l[2];var C=g,b;e:{if(m.amount==null){b=null;break e}var v;l[3]!==m.amount?(v=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(m.amount),l[3]=m.amount,l[4]=v):v=l[4],b=v}var S=b,R=p(r("BillingPlatformContext")),L;l[5]!==m.lpm_credential?(L=m.lpm_credential!=null?c.jsx(o("react-strict-dom").html.div,{style:f.footerLogoContainer,children:c.jsx(r("XMDSImage.react"),{objectFit:"cover",src:r("FrontierUPIAutopayLogo").src})}):null,l[5]=m.lpm_credential,l[6]=L):L=l[6];var E=L,k;l[7]!==S?(k=S!=null?S.format({showDecimals:!0,showSymbol:!0}):null,l[7]=S,l[8]=k):k=l[8];var I=k,T;l[9]!==I||l[10]!==m.lpm_credential?(T=m.lpm_credential!=null?s._(/*BTDS*/"Pay {one time amount} & Set AutoPay",[s._param("one time amount",I)]):s._(/*BTDS*/"Pay with UPI"),l[9]=I,l[10]=m.lpm_credential,l[11]=T):T=l[11];var D=T,x;l[12]!==E?(x={footerIcon:E,showLockIcon:!1,text:""},l[12]=E,l[13]=x):x=l[13];var $=E!=null,P=m.lpm_credential==null,N;l[14]!==C||l[15]!==R||l[16]!==D?(N=R==="desktop"?void 0:{action:C,label:D,uplTarget:"open_app_upi"},l[14]=C,l[15]=R,l[16]=D,l[17]=N):N=l[17];var M;l[18]===Symbol.for("react.memo_cache_sentinel")?(M=s._(/*BTDS*/"Add funds"),l[18]=M):M=l[18];var w;l[19]===Symbol.for("react.memo_cache_sentinel")?(w=c.jsx(r("MetaLockupPrimary.react"),{size:12}),l[19]=w):w=l[19];var A;l[20]===Symbol.for("react.memo_cache_sentinel")?(A=c.jsx(o("react-strict-dom").html.div,{style:f.instructionsContainer,children:c.jsx(r("BillingWizardText.react"),{body:s._(/*BTDS*/"To complete your payment, scan the QR code or pay using a UPI app."),level:3})}),l[20]=A):A=l[20];var F=m.payer_id,O=m.payer_name,B=m.expiration_time,W;l[21]!==m.supporting_icons?(W=c.jsx(o("react-strict-dom").html.div,{style:f.iconContainer,children:m.supporting_icons.map(h)}),l[21]=m.supporting_icons,l[22]=W):W=l[22];var q;l[23]!==m.lpm_credential||l[24]!==m.supporting_link?(q=m.lpm_credential!==null?m.supporting_link!=null&&c.jsx(o("react-strict-dom").html.div,{style:f.supportingLinkContainer,children:c.jsx(r("BillingWizardLink.react"),{color:"highlight",href:m.supporting_link,inline:!0,label:o("BillingRecurringLPMUtils").SEE_ALL_SUPPORTED_APPS,level:3})}):null,l[23]=m.lpm_credential,l[24]=m.supporting_link,l[25]=q):q=l[25];var U;l[26]===Symbol.for("react.memo_cache_sentinel")?(U=s._(/*BTDS*/"Scan QR code with your UPI app to complete payment"),l[26]=U):U=l[26];var V=(a=m.scan_code.height)!=null?a:195,H=(i=m.scan_code.width)!=null?i:195,G;l[27]!==m.scan_code.src||l[28]!==V||l[29]!==H?(G=c.jsx(o("react-strict-dom").html.div,{style:f.qrContainer,children:c.jsx(o("react-strict-dom").html.div,{style:f.qrBackground,children:c.jsx(r("XMDSImage.react"),{alt:U,height:V,src:m.scan_code.src,testid:void 0,width:H})})}),l[27]=m.scan_code.src,l[28]=V,l[29]=H,l[30]=G):G=l[30];var z;l[31]!==S?(z=S&&c.jsx(o("react-strict-dom").html.div,{style:f.amountContainer,children:c.jsx(r("BillingWizardText.react"),{headline:S.format({showDecimals:!0,showSymbol:!0}),level:1,textAlign:"center"})}),l[31]=S,l[32]=z):z=l[32];var j;l[33]!==W||l[34]!==q||l[35]!==G||l[36]!==z?(j=c.jsxs(o("react-strict-dom").html.div,{style:f.paymentContainer,children:[W,q,G,z]}),l[33]=W,l[34]=q,l[35]=G,l[36]=z,l[37]=j):j=l[37];var K;l[38]!==m.expiration_time||l[39]!==m.payer_id||l[40]!==m.payer_name||l[41]!==j?(K=c.jsxs(o("react-strict-dom").html.div,{style:f.viewContainer,children:[w,A,c.jsx(o("react-strict-dom").html.div,{style:f.contextViewContainer,children:c.jsx(r("Billing3PPaymentContextView.react"),{accountID:F,accountName:O,expirationTime:B,children:j})})]}),l[38]=m.expiration_time,l[39]=m.payer_id,l[40]=m.payer_name,l[41]=j,l[42]=K):K=l[42];var Q;return l[43]!==K||l[44]!==x||l[45]!==$||l[46]!==P||l[47]!==N||l[48]!==d?(Q=c.jsx(r("BillingWizardWrapper.react"),babelHelpers.extends({},d,{footer:x,footerBelowButtons:$,hasBack:P,onLoaded:y,primaryButton:N,testid:void 0,title:M,children:K})),l[43]=K,l[44]=x,l[45]=$,l[46]=P,l[47]=N,l[48]=d,l[49]=Q):Q=l[49],Q}function h(e,t){var n,o;return e.src!=null&&c.jsx(r("XMDSImage.react"),{height:(n=e.height)!=null?n:void 0,src:e.src,width:(o=e.width)!=null?o:void 0},"supporting_icon_"+t)}function y(){}l.default=g}),226);
-----
Billing3PUPINativePaymentStepViewV2.react",["fbt","Billing3PUPINativePaymentStepViewV2_paymentStep.graphql","BillingCurrencyAmount","BillingPlatformContext","BillingWizardButton.react","BillingWizardLink.react","BillingWizardText.react","BillingWizardWrapper.react","CometRelay","MetaBrandAdvertisingAccountsOutline24Icon.react","MetaBrandClockfaceDottedSemiCircleFilled24.svg.react","MetaBrandFourSquaresGridOutline24.svg.react","MetaLockupPrimary.react","XMDSIcon.react","XMDSImage.react","asyncToGeneratorRuntime","formatDate","react","react-compiler-runtime","react-strict-dom","useBillingOpenLink"],(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.useContext,_=d.useMemo,f={amountContainer:{display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"xl56j7k",$$css:!0},borderBottom:{borderBottomColor:"x80vd3b",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",$$css:!0},bottomInfoSection:{display:"x78zum5",flexDirection:"xdt5ytf",rowGap:"x7oemit",$$css:!0},bottomInfoSectionRow:{alignItems:"x6s0dn4",columnGap:"xtqikln",display:"x78zum5",flexDirection:"x1q0g3np",$$css:!0},qrAmountSection:{display:"x78zum5",flexDirection:"xdt5ytf",rowGap:"x1kb72lq",$$css:!0},qrBackground:{borderStartStartRadius:"x1rl75mt",borderStartEndRadius:"x19t5iym",borderEndEndRadius:"xz7t8uv",borderEndStartRadius:"x13xmedi",boxShadow:"xloc0wk",display:"x78zum5",paddingTop:"x1cnzs8",paddingInlineEnd:"x1xnnf8n",paddingBottom:"xx6bls6",paddingInlineStart:"x106a9eq",$$css:!0},qrBackgroundMobile:{borderStartStartRadius:"x120xd9q",borderStartEndRadius:"x1k4ovr2",borderEndEndRadius:"xdfaw6k",borderEndStartRadius:"xefzod",boxShadow:"xloc0wk",display:"x78zum5",paddingTop:"x1cnzs8",paddingInlineEnd:"x1xnnf8n",paddingBottom:"xx6bls6",paddingInlineStart:"x106a9eq",$$css:!0},qrContainer:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0},viewContainer:{display:"x78zum5",flexDirection:"xdt5ytf",paddingBottom:"xx6bls6",paddingLeft:"xnm25rq",paddingRight:"xyfqnmn",paddingInlineStart:null,paddingInlineEnd:null,paddingTop:"x1y1aw1k",rowGap:"x7oemit",$$css:!0}};function g(t){var a=o("react-compiler-runtime").c(47),i=t.paymentStep,l=t.wrapperProps,u=o("CometRelay").useFragment(e!==void 0?e:e=n("Billing3PUPINativePaymentStepViewV2_paymentStep.graphql"),i),d;e:{if(u.amount==null){d=null;break e}var m;a[0]!==u.amount?(m=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(u.amount),a[0]=u.amount,a[1]=m):m=a[1],d=m}var _=d,g=u.payer_name!=null&&u.payer_id!=null?u.payer_name+" ("+u.payer_id+")":"",C=y,b;a[2]!==u.supporting_link?(b=function(t){return u.supporting_link!=null?s._(/*BTDS*/"PhonePE, GooglePay, Paytm, BHIM are supported. {link to see full list of supporting apps}",[s._param("link to see full list of supporting apps",c.jsx(t,{href:u.supporting_link,inline:!0,label:s._(/*BTDS*/"All supported apps")}))]):null},a[2]=u.supporting_link,a[3]=b):b=a[3];var v=b,S=p(r("BillingPlatformContext")),R=r("useBillingOpenLink")(),L;a[4]!==R||a[5]!==u.app_switch_options?(L=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield R(u.app_switch_options[u.app_switch_options.length-1].deeplink)});return function(){return e.apply(this,arguments)}})(),a[4]=R,a[5]=u.app_switch_options,a[6]=L):L=a[6];var E=L,k;a[7]===Symbol.for("react.memo_cache_sentinel")?(k=s._(/*BTDS*/"Choose how to pay"),a[7]=k):k=a[7];var I;a[8]!==S?(I=S!=="desktop"?c.jsx(r("MetaLockupPrimary.react"),{size:12}):null,a[8]=S,a[9]=I):I=a[9];var T;a[10]!==_?(T=_&&c.jsx(o("react-strict-dom").html.div,{style:f.amountContainer,children:c.jsx(r("BillingWizardText.react"),{headline:_.format({showDecimals:!0,showSymbol:!0}),level:1,textAlign:"center"})}),a[10]=_,a[11]=T):T=a[11];var D=S==="desktop"?f.qrBackground:f.qrBackgroundMobile,x;a[12]===Symbol.for("react.memo_cache_sentinel")?(x=s._(/*BTDS*/"Scan QR code with your UPI app to complete payment"),a[12]=x):x=a[12];var $;a[13]!==u.scan_code.src?($=c.jsx(r("XMDSImage.react"),{alt:x,height:155,src:u.scan_code.src,testid:void 0,width:155}),a[13]=u.scan_code.src,a[14]=$):$=a[14];var P;a[15]!==D||a[16]!==$?(P=c.jsx(o("react-strict-dom").html.div,{style:f.qrContainer,children:c.jsx(o("react-strict-dom").html.div,{style:D,children:$})}),a[15]=D,a[16]=$,a[17]=P):P=a[17];var N;a[18]!==E||a[19]!==S?(N=S==="desktop"?null:c.jsx(r("BillingWizardButton.react"),{label:s._(/*BTDS*/"Pay with UPI app"),onPress:E,testid:void 0,type:"secondary",wrapperButton:!1}),a[18]=E,a[19]=S,a[20]=N):N=a[20];var M;a[21]!==P||a[22]!==N||a[23]!==T?(M=c.jsxs(o("react-strict-dom").html.div,{style:f.qrAmountSection,children:[T,P,N]}),a[21]=P,a[22]=N,a[23]=T,a[24]=M):M=a[24];var w;a[25]!==S?(w=S==="desktop"?null:c.jsx(o("react-strict-dom").html.div,{style:f.borderBottom}),a[25]=S,a[26]=w):w=a[26];var A;a[27]!==g||a[28]!==u.payer_name?(A=u.payer_name!=null?c.jsxs(o("react-strict-dom").html.div,{style:f.bottomInfoSectionRow,children:[c.jsx(r("XMDSIcon.react"),{color:"primary",icon:r("MetaBrandAdvertisingAccountsOutline24Icon.react"),isDecorative:!0,size:24}),c.jsx(o("react-strict-dom").html.div,{children:c.jsx(r("BillingWizardText.react"),{meta:g})})]}):null,a[27]=g,a[28]=u.payer_name,a[29]=A):A=a[29];var F;a[30]!==u.expiration_time?(F=u.expiration_time!=null?c.jsxs(o("react-strict-dom").html.div,{style:f.bottomInfoSectionRow,children:[c.jsx(r("XMDSIcon.react"),{color:"primary",icon:r("MetaBrandClockfaceDottedSemiCircleFilled24.svg.react"),isDecorative:!0,size:24}),c.jsx(r("BillingWizardText.react"),{meta:C(u.expiration_time)})]}):null,a[30]=u.expiration_time,a[31]=F):F=a[31];var O;if(a[32]!==u.supporting_link||a[33]!==v){var B;O=u.supporting_link!=null?c.jsxs(o("react-strict-dom").html.div,{style:f.bottomInfoSectionRow,children:[c.jsx(r("XMDSIcon.react"),{color:"primary",icon:r("MetaBrandFourSquaresGridOutline24.svg.react"),isDecorative:!0,size:24}),c.jsx(r("BillingWizardText.react"),{meta:(B=v(r("BillingWizardLink.react")))!=null?B:""})]}):null,a[32]=u.supporting_link,a[33]=v,a[34]=O}else O=a[34];var W;a[35]!==A||a[36]!==F||a[37]!==O?(W=c.jsxs(o("react-strict-dom").html.div,{style:f.bottomInfoSection,children:[A,F,O]}),a[35]=A,a[36]=F,a[37]=O,a[38]=W):W=a[38];var q;a[39]!==M||a[40]!==w||a[41]!==W||a[42]!==I?(q=c.jsxs(o("react-strict-dom").html.div,{style:f.viewContainer,children:[I,M,w,W]}),a[39]=M,a[40]=w,a[41]=W,a[42]=I,a[43]=q):q=a[43];var U;return a[44]!==q||a[45]!==l?(U=c.jsx(r("BillingWizardWrapper.react"),babelHelpers.extends({},l,{onLoaded:h,testid:void 0,title:k,children:q})),a[44]=q,a[45]=l,a[46]=U):U=a[46],U}function h(){}function y(e){var t=r("formatDate")(e,"M j"),n=r("formatDate")(e,"g:i A");return s._(/*BTDS*/"Payment request expires at {time}, {date}",[s._param("time",n),s._param("date",t)])}y.displayName=y.name+" [from "+i.id+"]",l.default=g}),226);
-----
Billing3PUPIDirectPaymentStepView_paymentStep.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:"src",args:null,kind:"ScalarField",name:"uri",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"Billing3PUPIDirectPaymentStepView_paymentStep",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"scan_code",plural:!1,selections:[{kind:"RequiredField",field:e,action:"THROW",path:"scan_code.src"},t,n],storageKey:null},action:"THROW",path:"scan_code"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"XFBBilling3PAppSwitchOption",kind:"LinkedField",name:"app_switch_options",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"deeplink",storageKey:null},action:"THROW",path:"app_switch_options.deeplink"}],storageKey:null},action:"THROW",path:"app_switch_options"},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"supporting_icons",plural:!0,selections:[e,t,n],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supporting_link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiration_time",storageKey:null}],type:"XFBBilling3PUPINativePaymentStep",abstractKey:null}})();a.exports=e}),null);
-----
Billing3PUPINativePaymentStepView_paymentStep.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:"src",args:null,kind:"ScalarField",name:"uri",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"Billing3PUPINativePaymentStepView_paymentStep",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"scan_code",plural:!1,selections:[{kind:"RequiredField",field:e,action:"THROW",path:"scan_code.src"},t,n],storageKey:null},action:"THROW",path:"scan_code"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"XFBBilling3PAppSwitchOption",kind:"LinkedField",name:"app_switch_options",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"deeplink",storageKey:null},action:"THROW",path:"app_switch_options.deeplink"}],storageKey:null},action:"THROW",path:"app_switch_options"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payer_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payer_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiration_time",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"supporting_icons",plural:!0,selections:[e,t,n],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supporting_link",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"lpm_credential",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"LPMCredential",abstractKey:null}],storageKey:null}],type:"XFBBilling3PUPINativePaymentStep",abstractKey:null}})();a.exports=e}),null);
-----
Billing3PUPINativePaymentStepViewV2_paymentStep.graphql",[],(function(t,n,r,o,a,i){"use strict";var e={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"Billing3PUPINativePaymentStepViewV2_paymentStep",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"scan_code",plural:!1,selections:[{kind:"RequiredField",field:{alias:"src",args:null,kind:"ScalarField",name:"uri",storageKey:null},action:"THROW",path:"scan_code.src"}],storageKey:null},action:"THROW",path:"scan_code"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"XFBBilling3PAppSwitchOption",kind:"LinkedField",name:"app_switch_options",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"deeplink",storageKey:null},action:"THROW",path:"app_switch_options.deeplink"}],storageKey:null},action:"THROW",path:"app_switch_options"},{alias:null,args:null,kind:"ScalarField",name:"payer_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payer_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiration_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supporting_link",storageKey:null}],type:"XFBBilling3PUPINativePaymentStep",abstractKey:null};a.exports=e}),null);
-----
BillingCheckAccountSpendLimitAndQEState",["BillingCheckAccountSpendLimitAndQEStateQuery.graphql","BillingCurrencyAmount","BillingWizardDecisionState"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e!==void 0?e:e=n("BillingCheckAccountSpendLimitAndQEStateQuery.graphql"),u=(function(e){function t(t,n,r){var o;return o=e.call(this,t)||this,o.name="check_asl_confirmation_decision",o.checkQE=function(){return Promise.resolve(!1)},o.checkQE=n,o.newProps=r,o}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.onDecide=async function(t,n){var e,r=n.qe,o=n.relay.fetchQuery,a=await this.checkHasAccountSpendLimit(t,o);if(a){var i;return{event:"fail",newProps:babelHelpers.extends({},t,(i=this.newProps)==null?void 0:i.fail)}}var l=await this.checkQE(r);if(l){var s;return{event:"pass",newProps:babelHelpers.extends({},t,(s=this.newProps)==null?void 0:s.pass)}}return{event:"fail",newProps:babelHelpers.extends({},t,(e=this.newProps)==null?void 0:e.fail)}},n.checkHasAccountSpendLimit=async function(t,n){var e=t.paymentAccountID;if(e==null)return!1;try{var r,a=await n({query:s,queryName:s.params.name,variables:{paymentAccountID:e}}),i=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null||(r=a.payment_account)==null||(r=r.billable_account)==null||(r=r.spending_info)==null?void 0:r.spend_limit_currency_amount);return i!=null&&!i.isZero()}catch(e){return!1}},t})(o("BillingWizardDecisionState").DecisionState);l.default=u}),98);
-----
BillingCheckAccountSpendLimitAndQEStateQuery.graphql",["BillingCheckAccountSpendLimitAndQEStateQuery_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,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"BillingCheckAccountSpendLimitAndQEStateQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:r,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"BillingCheckAccountSpendLimitAndQEStateQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[o,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:r,storageKey:null}],storageKey:null},a],storageKey:null},a],storageKey:null}]},params:{id:n("BillingCheckAccountSpendLimitAndQEStateQuery_facebookRelayOperation"),metadata:{},name:"BillingCheckAccountSpendLimitAndQEStateQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
BillingFulfillDigitalCommerceOrderState",["fbt","BillingCurrencyAmount","BillingError","BillingFulfillDigitalCommerceOrderStateMutation.graphql","BillingFulfillDigitalCommerceOrderStateQuery.graphql","BillingPayNowOrSettleUtils","BillingPaymentMethodDisplayUtils","BillingSpendMoreUtils","BillingWizardDecisionStateWithoutMutation","BillingWizardRootUPLogger","BillingXGradeNoticeBuilders","getErrorSafe"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=e!==void 0?e:e=n("BillingFulfillDigitalCommerceOrderStateQuery.graphql"),d=u!==void 0?u:u=n("BillingFulfillDigitalCommerceOrderStateMutation.graphql");async function m(e,t){var n=await e.fetchQuery({query:c,queryName:c.params.name,variables:{paymentMethodID:t}}),r=o("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(n.node);return r}var p=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o-----
BillingManageDynamicPaymentThresholdScreen.react",["fbt","BillingCurrencyAmount","BillingManageDynamicPaymentThresholdScreenQuery.graphql","BillingManageDynamicPaymentThresholdView.react","BillingPaymentThresholdConstants","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=u.useState,m=e!==void 0?e:e=n("BillingManageDynamicPaymentThresholdScreenQuery.graphql");function p(e){var t,n=o("react-compiler-runtime").c(15),a=e.onSubmit,i=e.preloadedQuery,l=e.wrapperProps,u=o("RelayHooks").usePreloadedQuery(m,i),p;if(n[0]!==(u==null||(t=u.payment_account)==null||(t=t.billable_account)==null?void 0:t.billing_threshold_currency_amount)){var _,f,g;p=(_=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(u==null||(f=u.payment_account)==null||(f=f.billable_account)==null?void 0:f.billing_threshold_currency_amount))==null?void 0:_.toString(),n[0]=u==null||(g=u.payment_account)==null||(g=g.billable_account)==null?void 0:g.billing_threshold_currency_amount,n[1]=p}else p=n[1];var h=p,y=d("DYNAMIC"),C=y[0],b=y[1],v;n[2]!==a||n[3]!==C?(v=function(){return a(C)},n[2]=a,n[3]=C,n[4]=v):v=n[4];var S;n[5]===Symbol.for("react.memo_cache_sentinel")?(S=s._(/*BTDS*/"Next"),n[5]=S):S=n[5];var R;n[6]!==v?(R={action:v,label:S},n[6]=v,n[7]=R):R=n[7];var L=h!=null?h:"",E;n[8]!==C||n[9]!==L?(E=c.jsx(r("BillingManageDynamicPaymentThresholdView.react"),{mode:C,setSelectedMode:b,threshold:L}),n[8]=C,n[9]=L,n[10]=E):E=n[10];var k;return n[11]!==R||n[12]!==E||n[13]!==l?(k=c.jsx(r("BillingWizardWrapper.react"),babelHelpers.extends({},l,{primaryButton:R,title:r("BillingPaymentThresholdConstants").dynamicJITUserSettingScreenTitle,children:E})),n[11]=R,n[12]=E,n[13]=l,n[14]=k):k=n[14],k}l.query=m,l.BillingManageDynamicPaymentThresholdScreen=p}),226);
-----
BillingManageDynamicPaymentThresholdScreenQuery.graphql",["BillingManageDynamicPaymentThresholdScreenQuery_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,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],o={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"BillingManageDynamicPaymentThresholdScreenQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:r,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"BillingManageDynamicPaymentThresholdScreenQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[o,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:r,storageKey:null}],type:"AdAccount",abstractKey:null},a],storageKey:null},a],storageKey:null}]},params:{id:n("BillingManageDynamicPaymentThresholdScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingManageDynamicPaymentThresholdScreenQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
XRBillingHubMobileAccountSpendLimitPage.react",["fbt","BillingAccountSpendLimitUtils","BillingCurrencyAmount","BillingHubAccountSpendLimitCardContent","BillingHubBillableAccountContext","CometPressable.react","FrontierButton.react","FrontierText.react","RelayHooks","XRBillingHubMobileAccountSpendLimitBottomSheet.react","XRBillingHubMobileAccountSpendLimitPageQuery.graphql","XRBillingHubMobileAccountSpendLimitProgressBar.react","XRBillingHubMobileCard.react","react","react-compiler-runtime","react-strict-dom","useBillingHubQE","useOpenXRBillingHubMobileLinkWithNavigation","useXRBillingHubMobileOpenWizard"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useRef,m=e!==void 0?e:e=n("XRBillingHubMobileAccountSpendLimitPageQuery.graphql"),p={card:{flexGrow:"x1iyjqo2",$$css:!0},marginBottom16:{marginBottom:"x1yztbdb",$$css:!0},marginTop16:{marginTop:"xw7yly9",$$css:!0},marginTop32:{marginTop:"xg87l8a",$$css:!0},page:{overflowX:"x14aock7",overflowY:"x1rife3k",$$css:!0}};function _(e){var t=o("react-compiler-runtime").c(4),n=e.isDisabled,a=e.isLimitSet,i=r("useXRBillingHubMobileOpenWizard")(),l;return t[0]!==n||t[1]!==a||t[2]!==i?(l=a?c.jsx(o("react-strict-dom").html.div,{style:p.marginBottom16,children:c.jsx(r("FrontierButton.react"),{disabled:n,label:r("BillingHubAccountSpendLimitCardContent").resetLimit,onPress:function(){i({wizardName:"RESET_SPEND"})},size:"large",type:"secondary"})}):c.jsx(o("react-strict-dom").html.div,{style:p.marginBottom16,children:c.jsx(r("FrontierButton.react"),{disabled:n,label:r("BillingHubAccountSpendLimitCardContent").setLimit,onPress:function(){return i({wizardName:"UPDATE_ACCOUNT_SPEND_LIMIT"})},size:"large",type:"primary"})}),t[0]=n,t[1]=a,t[2]=i,t[3]=l):l=t[3],l}function f(e){var t=o("react-compiler-runtime").c(17),n=e.isEligibleForASLRedesignQE,a=e.isLimitSet,i=r("useOpenXRBillingHubMobileLinkWithNavigation")();if(n){var l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s._(/*BTDS*/"Set by you. This is how much your account can spend on ads in total before all ads stop delivering."),t[0]=l):l=t[0];var u;t[1]!==i?(u=function(){i("https://www.facebook.com/business/help/141820733085330?id=326963134374796&helpref=search&sr=1&query=account%20spending%20limit")},t[1]=i,t[2]=u):u=t[2];var d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(r("FrontierText.react"),{color:"link",type:"labelMedium",children:s._(/*BTDS*/"About account spending limits")}),t[3]=d):d=t[3];var m;t[4]!==u?(m=c.jsx(o("react-strict-dom").html.div,{style:p.marginBottom16,children:c.jsxs(r("FrontierText.react"),{color:"secondary",type:"labelMedium",children:[l," ",c.jsx(r("CometPressable.react"),{onPress:u,children:d})]})}),t[4]=u,t[5]=m):m=t[5];var _;t[6]!==a?(_=!a&&c.jsx(r("FrontierText.react"),{color:"secondary",type:"labelMedium",children:s._(/*BTDS*/"If you need more control over total ad costs, you can set an account spending limit.")}),t[6]=a,t[7]=_):_=t[7];var f;return t[8]!==m||t[9]!==_?(f=c.jsxs(c.Fragment,{children:[m,_]}),t[8]=m,t[9]=_,t[10]=f):f=t[10],f}var g;t[11]===Symbol.for("react.memo_cache_sentinel")?(g=c.jsx(r("FrontierText.react"),{color:"secondary",type:"bodyMedium",children:r("BillingHubAccountSpendLimitCardContent").about}),t[11]=g):g=t[11];var h;t[12]!==i?(h=function(){i("https://www.facebook.com/business/help/141820733085330?id=326963134374796&helpref=search&sr=1&query=account%20spending%20limit")},t[12]=i,t[13]=h):h=t[13];var y;t[14]===Symbol.for("react.memo_cache_sentinel")?(y=c.jsx(r("FrontierText.react"),{color:"link",type:"bodyMedium",children:r("BillingHubAccountSpendLimitCardContent").learnMore}),t[14]=y):y=t[14];var C;return t[15]!==h?(C=c.jsxs(o("react-strict-dom").html.div,{children:[g,c.jsx(r("CometPressable.react"),{onPress:h,children:y})]}),t[15]=h,t[16]=C):C=t[16],C}function g(e){var t,n,a,i,l,s,u=o("react-compiler-runtime").c(31),g=e.queries,h=g.account_spend_limit_query,y=r("useBillingHubQE")(),C;u[0]!==y?(C=o("BillingAccountSpendLimitUtils").getEligibileForUsabilityASLCardRedesignExperiment(y),u[0]=y,u[1]=C):C=u[1];var b=C,v=o("RelayHooks").usePreloadedQuery(m,h),S=(t=v==null||(n=v.billable_account_by_asset_id)==null?void 0:n.currency)!=null?t:"USD",R=o("BillingCurrencyAmount").createZero(S),L=(a=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(v==null||(i=v.billable_account_by_asset_id)==null||(i=i.spending_info)==null?void 0:i.spend_limit_currency_amount))!=null?a:R,E=!L.isZero(),k=(l=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(v==null||(s=v.billable_account_by_asset_id)==null||(s=s.spending_info)==null?void 0:s.amount_spent_currency_amount))!=null?l:R,I=o("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),T=I.hasBillingWritePermission,D=d(),x=o("react-strict-dom").html,$=p,P=o("react-strict-dom").html,N=p,M=r("XRBillingHubMobileCard.react"),w=!0,A=!E&&b?void 0:r("BillingHubAccountSpendLimitCardContent").title,F=E?c.jsxs(o("react-strict-dom").html.div,{children:[b?null:c.jsx(o("react-strict-dom").html.div,{style:[p.marginBottom16,p.marginTop16],children:c.jsx(r("FrontierText.react"),{type:"headlineMedium",children:L.subtract(k).toString()})}),c.jsx(r("XRBillingHubMobileAccountSpendLimitProgressBar.react"),{amountSpent:k,isEligibleForASLRedesignQE:b,spendLimit:L})]}):c.jsx(f,{isEligibleForASLRedesignQE:b,isLimitSet:E}),O;u[2]!==b||u[3]!==E?(O=E&&(b?c.jsx(o("react-strict-dom").html.div,{style:p.marginTop16,children:c.jsx(f,{isEligibleForASLRedesignQE:b,isLimitSet:E})}):c.jsx(o("react-strict-dom").html.div,{style:p.marginTop32,children:c.jsx(f,{isEligibleForASLRedesignQE:b,isLimitSet:E})})),u[2]=b,u[3]=E,u[4]=O):O=u[4];var B;u[5]!==M||u[6]!==O||u[7]!==A||u[8]!==F?(B=c.jsxs(M,{hideBorder:w,title:A,children:[F,O]}),u[5]=M,u[6]=O,u[7]=A,u[8]=F,u[9]=B):B=u[9];var W;u[10]!==B||u[11]!==P.div||u[12]!==N.card?(W=c.jsx(P.div,{style:N.card,children:B}),u[10]=B,u[11]=P.div,u[12]=N.card,u[13]=W):W=u[13];var q;u[14]!==T||u[15]!==E?(q=E&&c.jsx(r("FrontierButton.react"),{disabled:!T,label:r("BillingHubAccountSpendLimitCardContent").edit,onPress:function(){if(E===!0){var e;(e=D.current)==null||e.showModal()}},type:"primary"}),u[14]=T,u[15]=E,u[16]=q):q=u[16];var U;u[17]!==k||u[18]!==T||u[19]!==E?(U=!(E&&k.isZero())&&c.jsx(_,{isDisabled:!T,isLimitSet:E}),u[17]=k,u[18]=T,u[19]=E,u[20]=U):U=u[20];var V;u[21]===Symbol.for("react.memo_cache_sentinel")?(V=function(){var e;(e=D.current)==null||e.close()},u[21]=V):V=u[21];var H;u[22]!==b?(H=c.jsx(r("XRBillingHubMobileAccountSpendLimitBottomSheet.react"),{bottomSheetRef:D,isEligibleForASLRedesignQE:b,onDismiss:V}),u[22]=b,u[23]=H):H=u[23];var G;return u[24]!==W||u[25]!==q||u[26]!==U||u[27]!==H||u[28]!==x.div||u[29]!==$.page?(G=c.jsxs(x.div,{style:$.page,children:[W,q,U,H]}),u[24]=W,u[25]=q,u[26]=U,u[27]=H,u[28]=x.div,u[29]=$.page,u[30]=G):G=u[30],G}l.default=g}),226);
-----
XRBillingHubMobileAccountSpendLimitPageQuery.graphql",["XRBillingHubMobileAccountSpendLimitPageQuery_facebookRelayOperation","relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"assetID"}],t=[{kind:"Variable",name:"asset_id",variableName:"assetID"}],r={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},o=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},r],a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:o,args:null,argumentDefinitions:[]}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"XRBillingHubMobileAccountSpendLimitPageQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"billable_account_by_asset_id",plural:!1,selections:[r,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"XRBillingHubMobileAccountSpendLimitPageQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"billable_account_by_asset_id",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:o,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:o,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:n("XRBillingHubMobileAccountSpendLimitPageQuery_facebookRelayOperation"),metadata:{},name:"XRBillingHubMobileAccountSpendLimitPageQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
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);
-----
BillingDraftAutoReloadScreen_prepayDetails.graphql",[],(function(t,n,r,o,a,i){"use strict";var e={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingDraftAutoReloadScreen_prepayDetails",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccountPrepayDetail",abstractKey:null};a.exports=e}),null);
-----
BillingLocalizedCurrency",["fbt","BillingCurrencyAmount","BillingWizardText.react","react","useBillingLocalizedCurrencyExchangeRate"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=function(a,b){a=a*b;return parseFloat(a).toFixed(2)};function a(a){var b=a.amount,e=a.country;a=a.showOriginalAmount;var f=b.currency;f=c("useBillingLocalizedCurrencyExchangeRate")(f,e);e=f.exchange_rate;f=f.quote_currency;if(e==null||f==null)return null;b.toString()+" "+b.currency;var g=k(Number(b.getRawAmountForLoggingOnly()),Number(e))+" "+f;e=d("BillingCurrencyAmount").getFromUserInput(k(Number(b.getRawAmountForLoggingOnly()),Number(e)),f);g=e.toString()+(f==="JOD"?" JOD":"");e=b.toString();f=a?h._(/*BTDS*/"{originalCurrencyString} (about {localizedCurrency})",[h._param("originalCurrencyString",e),h._param("localizedCurrency",g)]):h._(/*BTDS*/"(about {localizedCurrency})",[h._param("localizedCurrency",g)]);return a?j.jsx(c("BillingWizardText.react"),{body:f}):f}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingRecurringLPMSaveSummaryView.react",["fbt","BillingCurrencyAmount","BillingWizardColumn.react","BillingWizardRow.react","BillingWizardText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(28),e=a.draftAutoReloadAmount,f=a.draftAutoReloadThreshold;a=a.paymentAmount;var g;b[0]!==e?(g=e==null?void 0:e.toString(),b[0]=e,b[1]=g):g=b[1];e=g;b[2]!==f?(g=f==null?void 0:f.toString(),b[2]=f,b[3]=g):g=b[3];f=g;if(b[4]!==a){g=d("BillingCurrencyAmount").getFromPaymentAmountInput(a);g=g==null?void 0:g.toString();b[4]=a;b[5]=g}else g=b[5];a=g;b[6]!==a?(g=h._(/*BTDS*/"{ draft reload amount}",[h._param(" draft reload amount",a)]),b[6]=a,b[7]=g):g=b[7];b[8]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"Balance youu2019ll add today"),b[8]=a):a=b[8];b[9]!==g?(a=j.jsx(c("BillingWizardRow.react"),{borderBottom:!0,columnSpacing:12,children:j.jsx(c("BillingWizardColumn.react"),{mobileFieldSize:12,padding:20,paddingBottom:!1,testid:void 0,children:j.jsx(c("BillingWizardRow.react"),{align:"start",columnSpacing:12,wrap:!1,children:j.jsx(c("BillingWizardColumn.react"),{children:j.jsx(c("BillingWizardText.react"),{body:g,headline:a,level:4})})})})}),b[9]=g,b[10]=a):a=b[10];b[11]!==e?(g=h._(/*BTDS*/"{ draft reload amount}",[h._param(" draft reload amount",e)]),b[11]=e,b[12]=g):g=b[12];b[13]===Symbol["for"]("react.memo_cache_sentinel")?(e=h._(/*BTDS*/"Auto reload settings"),b[13]=e):e=b[13];var i;b[14]===Symbol["for"]("react.memo_cache_sentinel")?(i=h._(/*BTDS*/"Balance youu2019ll add in the future"),b[14]=i):i=b[14];b[15]!==g?(e=j.jsx(c("BillingWizardRow.react"),{align:"start",columnSpacing:12,wrap:!1,children:j.jsx(c("BillingWizardColumn.react"),{children:j.jsx(c("BillingWizardText.react"),{body:g,headline:e,level:4,meta:i})})}),b[15]=g,b[16]=e):e=b[16];b[17]!==f?(i=h._(/*BTDS*/"{ draft reload amount}",[h._param(" draft reload amount",f)]),b[17]=f,b[18]=i):i=b[18];b[19]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._(/*BTDS*/"Anytime your balance reaches this amount, youu2019ll be charged"),b[19]=g):g=b[19];b[20]!==i?(f=j.jsx(c("BillingWizardRow.react"),{align:"start",columnSpacing:12,wrap:!1,children:j.jsx(c("BillingWizardColumn.react"),{children:j.jsx(c("BillingWizardText.react"),{body:i,level:4,meta:g})})}),b[20]=i,b[21]=f):f=b[21];b[22]!==e||b[23]!==f?(g=j.jsx(c("BillingWizardRow.react"),{columnSpacing:12,children:j.jsxs(c("BillingWizardColumn.react"),{mobileFieldSize:12,padding:20,paddingBottom:!0,testid:void 0,children:[e,f]})}),b[22]=e,b[23]=f,b[24]=g):g=b[24];b[25]!==g||b[26]!==a?(i=j.jsxs(c("BillingWizardRow.react"),{children:[a,g]}),b[25]=g,b[26]=a,b[27]=i):i=b[27];return i}g["default"]=a}),226);
-----
BillingChargeBreakdownSection.react",["BillingChargeBreakdownSection_account.graphql","BillingCurrencyAmount","BillingWizardColumn.react","BillingWizardLink.react","BillingWizardRow.react","BillingWizardText.react","BillingWizardToolTip.react","RelayHooks","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=s,d=c.useEffect,m=c.useRef,p=c.useState,_=e!==void 0?e:e=n("BillingChargeBreakdownSection_account.graphql");function f(e,t){switch(t){case"PRIMARY":return u.jsx(r("BillingWizardText.react"),{headline:e,level:4});case"SECONDARY":return u.jsx(r("BillingWizardText.react"),{body:e,level:2});case"BODY":return u.jsx(r("BillingWizardText.react"),{body:e,level:3});case"BODY_SPECIAL":return u.jsx(r("BillingWizardText.react"),{body:e,bodyColor:"positive",level:3});case"META":return u.jsx(r("BillingWizardText.react"),{level:3,meta:e});default:return u.jsx(r("BillingWizardText.react"),{body:e,level:3})}}function g(e){var t,n,a,i,l,s,c,g,C=o("react-compiler-runtime").c(50),b=e.account,v=e.billableAccountID,S=e.includeFunds,R=e.userEnteredAmount,L=o("RelayHooks").useRefetchableFragment(_,b),E=L[0],k=L[1],I=m(!0),T,D;C[0]!==v||C[1]!==S||C[2]!==k||C[3]!==R?(T=function(){if(I.current){I.current=!1;return}var e=o("BillingCurrencyAmount").getFromPaymentAmountInput(R);e!=null&&!e.isZero()&&k({fullBudgetPaymentAmount:e.asGraphQLInput(),id:v,includeFunds:S})},D=[v,S,k,R],C[0]=v,C[1]=S,C[2]=k,C[3]=R,C[4]=T,C[5]=D):(T=C[4],D=C[5]),d(T,D);var x=p(!1),$=x[0],P=x[1];if((E==null?void 0:E.charge_breakdown)==null)return null;var N=E==null||(t=E.charge_breakdown)==null?void 0:t.subtotal,M=E==null||(n=E.charge_breakdown)==null?void 0:n.available_funds,w=E==null||(a=E.charge_breakdown)==null?void 0:a.total,A=E==null||(i=E.charge_breakdown)==null?void 0:i.taxes_section,F=(A==null?void 0:A.breakdown)!=null&&(A==null?void 0:A.breakdown.length)>0,O=(l=N==null?void 0:N.label)!=null?l:"",B=N==null?void 0:N.type,W;C[6]!==O||C[7]!==B?(W=f(O,B),C[6]=O,C[7]=B,C[8]=W):W=C[8];var q;if(C[9]!==(N==null?void 0:N.amount)||C[10]!==(N==null?void 0:N.type)){var U,V;q=f((U=(V=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(N==null?void 0:N.amount))==null?void 0:V.format())!=null?U:"",N==null?void 0:N.type),C[9]=N==null?void 0:N.amount,C[10]=N==null?void 0:N.type,C[11]=q}else q=C[11];var H;C[12]!==W||C[13]!==q?(H=u.jsxs(r("BillingWizardRow.react"),{justify:"space-between",marginBottom:8,children:[W,q]}),C[12]=W,C[13]=q,C[14]=H):H=C[14];var G=H,z=M==null?void 0:M.amount,j;if(C[15]!==M||C[16]!==z){var K,Q=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(z);j=M&&Q&&u.jsxs(r("BillingWizardRow.react"),{justify:"space-between",marginBottom:8,children:[f((K=M.label)!=null?K:"",M.type),f(Q.isZero()?"-"+Q.format():Q.format(),M.type)]}),C[15]=M,C[16]=z,C[17]=j}else j=C[17];var X=j,Y;if(C[18]!==(A==null?void 0:A.tooltip)){var J,Z,ee;Y=(A==null?void 0:A.tooltip)!=null&&u.jsx(r("BillingWizardToolTip.react"),{headline:(J=A==null||(Z=A.tooltip)==null?void 0:Z.title)!=null?J:"",children:u.jsx(r("BillingWizardRow.react"),{children:u.jsx(r("BillingWizardColumn.react"),{fieldSize:12,mobileFieldSize:12,children:A==null||(ee=A.tooltip)==null||(ee=ee.body)==null?void 0:ee.map(y)})})}),C[18]=A==null?void 0:A.tooltip,C[19]=Y}else Y=C[19];var te=Y,ne;C[20]!==$||C[21]!==F?(ne=F?function(){return P(!$)}:void 0,C[20]=$,C[21]=F,C[22]=ne):ne=C[22];var re=F?"EXPAND":void 0,oe;if(C[23]!==(A==null||(s=A.summary)==null?void 0:s.label)||C[24]!==(A==null||(c=A.summary)==null?void 0:c.type)||C[25]!==te){var ae,ie,le,se,ue,ce;oe=(A==null||(ae=A.summary)==null?void 0:ae.label)!=null&&u.jsxs(u.Fragment,{children:[f((ie=A==null||(le=A.summary)==null?void 0:le.label)!=null?ie:"",A==null||(se=A.summary)==null?void 0:se.type),te]}),C[23]=A==null||(ue=A.summary)==null?void 0:ue.label,C[24]=A==null||(ce=A.summary)==null?void 0:ce.type,C[25]=te,C[26]=oe}else oe=C[26];var de;C[27]!==$||C[28]!==ne||C[29]!==re||C[30]!==oe?(de=u.jsx(r("BillingWizardRow.react"),{expanded:$,justify:"start",marginBottom:8,onPress:ne,onPressType:re,children:oe}),C[27]=$,C[28]=ne,C[29]=re,C[30]=oe,C[31]=de):de=C[31];var me=de,pe;if(C[32]!==F||C[33]!==(A==null?void 0:A.breakdown)){var _e;pe=F&&u.jsx(r("BillingWizardColumn.react"),{padding:"8-left",children:A==null||(_e=A.breakdown)==null?void 0:_e.map(h)}),C[32]=F,C[33]=A==null?void 0:A.breakdown,C[34]=pe}else pe=C[34];var fe=pe,ge=(g=w==null?void 0:w.label)!=null?g:"",he=w==null?void 0:w.type,ye;C[35]!==ge||C[36]!==he?(ye=f(ge,he),C[35]=ge,C[36]=he,C[37]=ye):ye=C[37];var Ce;if(C[38]!==(w==null?void 0:w.amount)||C[39]!==(w==null?void 0:w.type)){var be,ve;Ce=f((be=(ve=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(w==null?void 0:w.amount))==null?void 0:ve.format())!=null?be:"",w==null?void 0:w.type),C[38]=w==null?void 0:w.amount,C[39]=w==null?void 0:w.type,C[40]=Ce}else Ce=C[40];var Se;C[41]!==ye||C[42]!==Ce?(Se=u.jsxs(r("BillingWizardRow.react"),{borderTop:!0,justify:"space-between",children:[ye,Ce]}),C[41]=ye,C[42]=Ce,C[43]=Se):Se=C[43];var Re=Se,Le=$&&fe,Ee;return C[44]!==X||C[45]!==G||C[46]!==Le||C[47]!==me||C[48]!==Re?(Ee=u.jsx(r("BillingWizardRow.react"),{columnSpacing:12,children:u.jsxs(r("BillingWizardColumn.react"),{fieldSize:12,mobileFieldSize:12,padding:16,withBackground:!0,children:[G,X,me,Le,Re]})}),C[44]=X,C[45]=G,C[46]=Le,C[47]=me,C[48]=Re,C[49]=Ee):Ee=C[49],Ee}function h(e,t){var n,a,i;return u.jsxs(r("BillingWizardRow.react"),{justify:"space-between",marginBottom:8,children:[f((n=e.label)!=null?n:"",e==null?void 0:e.type),f((a=(i=o("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.amount))==null?void 0:i.format())!=null?a:"",e==null?void 0:e.type)]},t)}h.displayName=h.name+" [from "+i.id+"]";function y(e,t){var n,o;return u.jsxs(r("BillingWizardRow.react"),{marginBottom:8,children:[u.jsx(r("BillingWizardText.react"),{body:(n=e.content)!=null?n:void 0,headline:(o=e.header)!=null?o:void 0,level:4}),e.learn_more_label!=null&&e.learn_more_url!=null&&u.jsx(r("BillingWizardLink.react"),{href:e.learn_more_url,label:" "+e.learn_more_label})]},t)}y.displayName=y.name+" [from "+i.id+"]",l.default=g}),98);
-----
BillingChargeBreakdownSection_account.graphql",["BillingChargeBreakdownSection.graphql"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},r=[e,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},t];return{argumentDefinitions:[{kind:"RootArgument",name:"fullBudgetPaymentAmount"},{kind:"RootArgument",name:"includeFunds"},{kind:"RootArgument",name:"intent"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:["node"],operation:n("BillingChargeBreakdownSection.graphql"),identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"BillingChargeBreakdownSection_account",selections:[{alias:null,args:[{kind:"Variable",name:"include_funds",variableName:"includeFunds"},{kind:"Variable",name:"payment_intent",variableName:"intent"},{kind:"Variable",name:"subtotal",variableName:"fullBudgetPaymentAmount"}],concreteType:"XFBBillableAccountChargeBreakdown",kind:"LinkedField",name:"charge_breakdown",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillableAccountChargeDetailsRow",kind:"LinkedField",name:"subtotal",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountChargeDetailsRow",kind:"LinkedField",name:"available_funds",plural:!1,selections:r,storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountChargeDetailsSection",kind:"LinkedField",name:"taxes_section",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillableAccountChargeDetailsRow",kind:"LinkedField",name:"summary",plural:!1,selections:[e,t],storageKey:null},{alias:null,args:null,concreteType:"XFBBillingTooltip",kind:"LinkedField",name:"tooltip",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,concreteType:"XFBBillingTooltipItem",kind:"LinkedField",name:"body",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"learn_more_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"learn_more_url",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountChargeDetailsRow",kind:"LinkedField",name:"breakdown",plural:!0,selections:r,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountChargeDetailsRow",kind:"LinkedField",name:"total",plural:!1,selections:r,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}})();a.exports=e}),null);
-----
PolarisBoostDefaultValues",["BillingCurrencyAmount","PolarisBoostAudienceDetailStrings","PolarisBoostDefaultValuesForEntrypoints.entrypointutils","PolarisBoostDurationType","PolarisBoostObjectiveUtils","PolarisBoostSummaryScreenStrings"],(function(a,b,c,d,e,f,g){"use strict";var h;b=d("PolarisBoostAudienceDetailStrings").SUGGESTED_AUDIENCE_DETAILS.toString();e="USD";f=100;var i=[(h=d("BillingCurrencyAmount")).getFromUserInput("1",e),h.getFromUserInput("1000",e)],j=h.getFromUserInput("1",e),k=Array.from({length:30},function(a,b){return b+1}),l=1,m=7,n="NO_BUTTON",o="LEARN_MORE",p="DIRECT_MESSAGE",q="WHATSAPP_MESSAGE";h=h.createZero(e);var r="default_context_flow_id",s="default_context_entrypoint",t=[{amount:h,taxName:d("PolarisBoostSummaryScreenStrings").SUMMARY_SCREEN_EST_TAX.toString(),taxRate:null}];function a(a){return a==null||a===""?t:[{amount:d("BillingCurrencyAmount").createZero(a),taxName:d("PolarisBoostSummaryScreenStrings").SUMMARY_SCREEN_EST_TAX.toString(),taxRate:null}]}var u="",v="OFF",w=18,x=25,y={advantage_audience_status:v,min_age_constraint:w},z=18,A=65,B="8",C={advantageAudience:y,audienceCode:"IG_PROMOTED_POST_AUTO",audienceComplianceData:null,audienceID:B,audienceType:"AUTOMATIC_AUDIENCE",displayName:"Automatic",geoLocations:null,interests:null,maxAge:A,minAge:z,targetGenders:"ALL",targetingSpecCountryCodes:[],targetRelaxOption:"NONE",targetSpec:null},D=5,E={country_code:null,display_name:"",key:"",latitude:0,location_type:"CUSTOM_LOCATION",longitude:0,primary_city_key:null,radius:D,region_key:null},F={is_eligible:!1,should_log_exposure:!1},G={ctd_lo_qe_universe_to_log_exposure:null,ctd_po_qe_universe_to_log_exposure:null,ctwa_messaging_default_outcome:d("PolarisBoostObjectiveUtils").WHATSAPP_MESSAGE,ig_messaging_default_outcome:d("PolarisBoostObjectiveUtils").DIRECT_MESSAGE,is_ig_lead_optimization_eligible:!1,is_ig_purchase_optimization_eligible:!1,is_wa_purchase_optimization_eligible:!1,should_log_exposure_ig_lead_optimization:!1,should_log_exposure_ig_purchase_optimization:!1,should_log_exposure_wa_purchase_optimization:!1},H=3,I={numRenderedVariations:0,textVariations:[]},J={error:null,primaryText:I},K={businessName:null,isA0FlowEligible:!1,isA1FlowEligible:!1,isA2FlowEligible:!1,isActivePixelEligible:!1,isNewPixelEligible:!1,isPersonalAdAccount:!1,minTotalBudget:null,sabrMinBudget:null,sabrMinDuration:null,selections:null,shouldShowBudgetWarningPopup:!1,shouldShowSABRLowBudgetWarningPopup:!1,shouldShowSalesObjective:!1,stores:[],tempSelections:null};g.DEFAULT_AUDIENCE_DETAILS=b;g.DEFAULT_CURRENCY=e;g.DEFAULT_CURRENCY_OFFSET=f;g.DEFAULT_DAILY_BUDGET_OPTIONS=i;g.DEFAULT_DAILY_BUDGET=j;g.DEFAULT_DURATION_IN_DAYS_OPTIONS=k;g.DEFAULT_DURATION_IN_DAYS=l;g.DEFAULT_DURATION_IN_DAYS_IGFA_GRADUATION=m;g.DEFAULT_CTA=d("PolarisBoostDefaultValuesForEntrypoints.entrypointutils").DEFAULT_CTA;g.DEFAULT_PROFILE_VISIT_SECONDARY_CTA=n;g.DEFAULT_WEBSITE_CTA=o;g.DEFAULT_GOAL=d("PolarisBoostDefaultValuesForEntrypoints.entrypointutils").DEFAULT_GOAL;g.BIO_GOAL=p;g.DEFAULT_DURATION_TYPE=c("PolarisBoostDurationType").SET_DURATION;g.WHATSAPP_MESSAGE_PV=q;g.ZERO_CURRENCY=h;g.DEFAULT_CONTEXT_FLOW_ID=r;g.DEFAULT_CONTEXT_ENTRYPOINT=s;g.DEFAULT_TAXES=t;g.getDefaultTaxes=a;g.DEFAULT_USERNAME=u;g.DEFAULT_ADVANTAGE_AUDIENCE_STATUS=v;g.DEFAULT_ADVANTAGE_AUDIENCE_MIN_MIN_AGE_CONSTRAINT=w;g.DEFAULT_ADVANTAGE_AUDIENCE_MAX_MIN_AGE_CONSTRAINT=x;g.DEFAULT_ADVANTAGE_AUDIENCE=y;g.DEFAULT_MIN_AGE=z;g.DEFAULT_MAX_AGE=A;g.AUTOMATIC_AUDIENCE_ID=B;g.DEFAULT_AUDIENCE=C;g.DEFAULT_CUSTOM_LOCATION_RADIUS=D;g.DEFAULT_CUSTOM_LOCATION=E;g.DEFAULT_GRADUATION_CREATION_PACKAGE_INFO=F;g.DEFAULT_MESSAGING_GOAL_OPTIMIZATION_ELIGIBILITY_INFO=G;g.DEFAULT_PRIMARY_TEXT_NUM_RENDERED_VARIATIONS=H;g.DEFAULT_BOOST_TEXT_SPEC=I;g.DEFAULT_BOOST_TEXT_VARIATIONS=J;g.DEFAULT_SALES_OBJECTIVE_DATA=K}),98);
-----
BillingHubMobilePaymentSettingsPrepaidFundsCard.react",["ix","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubMobileButton.react","BillingHubMobileCard.react","BillingHubMobileCardRow.react","BillingHubMobileNavigationContextV2","BillingHubMobilePaymentSettingsPrepaidFundsCard_billableAccount.graphql","BillingHubMobileRow.react","BillingHubMobileText.react","BillingHubPaymentSettingsPrepaidFundsCardConstants","CometImage.react","RelayHooks","react","react-compiler-runtime","useBillingHubPendingPayments","useBillingRequestRefundStatus","useBillingWizardForMobileHub"],(function(ce,O,i,a,_e,Be,G,Y){"use strict";var y,E,l=E||(E=a("react")),J=y!==void 0?y:y=O("BillingHubMobilePaymentSettingsPrepaidFundsCard_billableAccount.graphql");function K(w){var z,$,t,q,j,L,N,W,I,e=a("react-compiler-runtime").c(30),Q=w.account,m=w.hideBorder,X=a("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),U=X.hasBillingWritePermission,C=i("useBillingWizardForMobileHub")(),ee=a("BillingHubMobileNavigationContextV2").useBillingHubMobileNavigationV2(),ne=ee.goToPage,n=a("RelayHooks").useFragment(J,Q),H=a("BillingCurrencyAmount").createZero((z=n==null?void 0:n.currency)!=null?z:"USD"),F=($=n==null||(t=n.payment_settings_details)==null||(t=t.add_funds_action)==null||(t=t.wizard_props)==null?void 0:t.wizard_name)!=null?$:"ADD_FUNDS",c=(q=a("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n==null?void 0:n.prepay_balance))!=null?q:H,k=(j=a("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n==null?void 0:n.account_balance))!=null?j:H,D=(n==null||(L=n.balance_info)==null?void 0:L.is_prepaid_balance)===!0?a("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n==null||(N=n.balance_info)==null?void 0:N.balance):H,V=i("useBillingHubPendingPayments")(n),_=V.transactionCount,ie=V.transactionDetails,B=_!==0,v;e[0]!==B||e[1]!==_?(v=B?i("BillingHubPaymentSettingsPrepaidFundsCardConstants").pendingPayments(_):void 0,e[0]=B,e[1]=_,e[2]=v):v=e[2];var Z=v,ae=(W=n==null?void 0:n.refund_status)!=null?W:"BILLING_PREPAY_NO_REFUND_STATUS",le=n==null?void 0:n.refund_method,te=i("useBillingRequestRefundStatus")(n),re=te.shouldShow,ue=function(){ne({formattedPrepayBalance:c.format(),isBalanceSplit:!0,page:"STORED_BALANCE_DETAILS",refundMethod:le,refundStatus:ae,shouldShow:re,transactionDetails:ie,wizardProps:"ADD_FUNDS"})},S=U&&B?ue:void 0,de=!(c!=null&&c.isZero())&&!(k!=null&&k.isZero())?i("BillingHubPaymentSettingsPrepaidFundsCardConstants").availableFundsDescription((I=D==null?void 0:D.toString())!=null?I:""):void 0,f=Z!=null?Z:de,h=i("BillingHubMobileCard.react"),A=i("BillingHubPaymentSettingsPrepaidFundsCardConstants").funds,M=i("BillingHubMobileCardRow.react"),oe="start",p=i("BillingHubMobileRow.react"),se=!1,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx(i("CometImage.react"),{src:Y("860783")}),e[3]=r):r=e[3];var R=i("BillingHubMobileText.react"),x=c==null?void 0:c.toString(),u;e[4]!==R||e[5]!==x?(u=l.jsx(R,{headline:x,level:4,reduceEmphasis:!0}),e[4]=R,e[5]=x,e[6]=u):u=e[6];var d;e[7]!==f?(d=l.jsx(i("BillingHubMobileText.react"),{body:f,bodyColor:"secondary",level:4}),e[7]=f,e[8]=d):d=e[8];var o;e[9]!==p||e[10]!==r||e[11]!==u||e[12]!==d?(o=l.jsx(p,{hasBottomDivider:se,icon:r,primaryLine:u,secondaryLine:d}),e[9]=p,e[10]=r,e[11]=u,e[12]=d,e[13]=o):o=e[13];var s;e[14]!==M||e[15]!==S||e[16]!==o?(s=l.jsx(M,{align:oe,onPress:S,children:o}),e[14]=M,e[15]=S,e[16]=o,e[17]=s):s=e[17];var T=!U,b;e[18]!==F||e[19]!==C?(b=function(){return C({wizardName:F},{targetName:"add_funds_button"})},e[18]=F,e[19]=C,e[20]=b):b=e[20];var g;e[21]!==T||e[22]!==b?(g=l.jsx(i("BillingHubMobileButton.react"),{disabled:T,label:i("BillingHubPaymentSettingsPrepaidFundsCardConstants").addFunds,onClick:b,reduceEmphasis:!0,type:"primary"}),e[21]=T,e[22]=b,e[23]=g):g=e[23];var P;return e[24]!==h||e[25]!==m||e[26]!==s||e[27]!==g||e[28]!==A?(P=l.jsxs(h,{hideBorder:m,title:A,children:[s,g]}),e[24]=h,e[25]=m,e[26]=s,e[27]=g,e[28]=A,e[29]=P):P=e[29],P}G.default=K}),98);
-----
BillingHubMobilePaymentSettingsPrepaidFundsCard_billableAccount.graphql",[],(function(s,r,t,u,n,d){"use strict";var a=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},l=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},e],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubMobilePaymentSettingsPrepaidFundsCard_billableAccount",selections:[{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:"account_balance",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"XFBBillingBalanceInfoResult",kind:"LinkedField",name:"balance_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:l,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_prepaid_balance",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBillingHubPaymentSettingsDetails",kind:"LinkedField",name:"payment_settings_details",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillingHubPaymentSettingsAction",kind:"LinkedField",name:"add_funds_action",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillingHubPaymentSettingsWizardProps",kind:"LinkedField",name:"wizard_props",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"wizard_name",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"refund_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"refund_method",storageKey:null},e,{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"useBillingHubPendingPayments_account"}]},{args:null,kind:"FragmentSpread",name:"useBillingRequestRefundStatus_info"}],type:"BillableAccount",abstractKey:"__isBillableAccount"}})();n.exports=a}),null);
-----
BillingOneClickAddFundsInitState",["fbt","BillingCheckSharedStoredBalanceUtils","BillingCurrencyAmount","BillingOneClickAddFundsInitStateQuery.graphql","BillingWizardDecisionStateWithoutMutation"],(function(Q,I,q,c,M,P,B,s){"use strict";var y,_=y!==void 0?y:y=I("BillingOneClickAddFundsInitStateQuery.graphql"),f=(function(p){function m(){for(var t,i=arguments.length,r=new Array(i),l=0;l-----
BillingHubPaymentSettingsBalanceSplitHowYouWillPaySection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},d=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},c],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsBalanceSplitHowYouWillPaySection_billableAccount",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"primary_funding_source",args:[{kind:"Literal",name:"filter",value:"PRIMARY_ONLY"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[a,{kind:"InlineDataFragmentSpread",name:"BillingPaymentIconUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentIconUtils_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:"billing_icons(limit:1)"}],type:"BillingPaymentMethod",abstractKey:"__isBillingPaymentMethod"}],args:null,argumentDefinitions:[]},{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},b],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},b],type:"DirectDebit",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],type:"LPMCredential",abstractKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:'billing_payment_methods(filter:"PRIMARY_ONLY")'}],storageKey:null},c,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:d,storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsDSLSidebarSection.react",["fbt","BillingCurrencyAmount","BillingDynamicLabelConstants","BillingHubPaymentSettingsDSLSidebarSection_billableAccount.graphql","GeoBaseText.react","GeoIcon.react","GeoStatusIndicator.react","GeoSwitchableIcon.react","RelayHooks","cr:11161","cr:11282","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={inline:{display:"x1rg5ohu",marginBottom:"x1ty9z65",marginRight:"xl010v5",marginStart:null,marginEnd:null,$$css:!0}},m=i!==void 0?i:i=b("BillingHubPaymentSettingsDSLSidebarSection_billableAccount.graphql");function a(a){var e;a=a.account;a=d("RelayHooks").useFragment(m,a);var f=a==null?void 0:a.xfb_daily_spend_limit_action_framework;e=(e=a==null?void 0:a.ad_campaign_group_type)!=null?e:"ADS";a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_dsl);f=(f==null?void 0:f.account_reached_dsl)===!0?h._(/*BTDS*/"{=m0}{=m1}",[h._implicitParam("=m0",k.jsx(c("GeoIcon.react"),{color:"error",icon:k.jsx(c("GeoSwitchableIcon.react"),{fbIcon:b("cr:11282"),size:12,svgIcon:b("cr:11161")}),children:h._(/*BTDS*/"")})),h._implicitParam("=m1",k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._(/*BTDS*/"u4f60u7684{dynamic_label}u5df2u6682u505cuff0cu56e0u4e3au4f60u5df2u8fbeu5230u4ecau65e5{=m4}u3002u6b64u9650u989du7531 Meta u8bbeu7f6eu3002",[h._param("dynamic_label",d("BillingDynamicLabelConstants").campaignGroupTypeToLabel(e,d("BillingDynamicLabelConstants").LabelVariant.ADS)),h._implicitParam("=m4",k.jsx(c("GeoBaseText.react"),{color:"headingDescription",size:"value",weight:"bold",children:h._(/*BTDS*/"{formatted dsl}u9650u989d",[h._param("formatted dsl",a==null?void 0:a.toString())])}))])}))]):h._(/*BTDS*/"{=m0}{=m1}",[h._implicitParam("=m0",k.jsx(c("GeoStatusIndicator.react"),{density:"dense",status:"active",xstyle:l.inline,children:h._(/*BTDS*/"")})),h._implicitParam("=m1",k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:h._(/*BTDS*/"u4f60u7684u82b1u8d39u672au8fbeu4ecau65e5{=m2}uff0cu6b64u9650u989du7531 Meta u8bbeu7f6euff0cu53efu80fdu4f1au968fu65f6u95f4u800cu589eu52a0u3002",[h._implicitParam("=m2",k.jsx(c("GeoBaseText.react"),{color:"headingDescription",size:"value",weight:"bold",children:h._(/*BTDS*/"{formatted dsl}u9650u989d",[h._param("formatted dsl",a==null?void 0:a.toString())])}))])}))]);return k.jsx("div",{children:f})}a.displayName=a.name+" [from "+f.id+"]";g.BillingHubPaymentSettingsDSLSidebarSection=a}),226);
-----
BillingHubPaymentSettingsDSLSidebarSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{defaultValue:"PAYMENT_SETTINGS",kind:"LocalArgument",name:"caller"}],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsDSLSidebarSection_billableAccount",selections:[{alias:null,args:[{kind:"Variable",name:"caller",variableName:"caller"}],concreteType:"XFBDailySpendLimitActionFramework",kind:"LinkedField",name:"xfb_daily_spend_limit_action_framework",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_reached_dsl",storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"ad_campaign_group_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_dsl",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingAutoReloadUtils",["BillingCurrencyAmount","BillingPrepayUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var c,e,f=d("BillingCurrencyAmount").createZero(a).format({showSymbol:!1});c={defaultValue:(c=(c=b.defaultReloadAmount)==null?void 0:c.format({showSymbol:!1}))!=null?c:f,required:!0,validate:function(c){c=d("BillingCurrencyAmount").getFromUserInput(c,a);c=d("BillingPrepayUtils").validateAmount(c,b.minFundingAmount,b.maxFundingAmount);if(c!=null)return{message:c,validationState:"ERROR"}}};e={defaultValue:(e=(e=b.defaultTriggerAmount)==null?void 0:e.format({showSymbol:!1}))!=null?e:f,required:!0,validate:function(b){b=d("BillingCurrencyAmount").getFromUserInput(b,a);b=d("BillingPrepayUtils").validateAmountForReloadThreshold(b);if(b!=null)return{message:b,validationState:"ERROR"}}};return{reloadAmount:c,triggerAmount:e}}b=function(a){return a!=null&&a.autoReloadToggledOn&&a.autoReloadDisabled!==!0};g.getAutoReloadFieldsConfig=a;g.shouldTurnOnAutoReload=b}),98);
-----
useBillingAutoReloadAmounts",["BillingCurrencyAmount","RelayHooks","useBillingAutoReloadAmounts_paymentAccount.graphql","useBillingWizardQE"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingAutoReloadAmounts_paymentAccount.graphql");function a(a,b,e,f){var g,h,j;f===void 0&&(f=!1);var k=c("useBillingWizardQE")();a=d("RelayHooks").useFragment(i,a);g=((g=a==null?void 0:a.recurring_pms)!=null?g:[]).map(function(a){return a==null?void 0:a.credential}).filter(Boolean);g=g.find(function(a){return a.credential_id===b&&a.credential_type===e});h=(h=g==null?void 0:g.prepay_details_for_auto_reload)!=null?h:a==null?void 0:(h=a.billable_account)==null?void 0:h.prepay_details_for_auto_reload;var l=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(h==null?void 0:h.default_funding_amount),m=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(h==null?void 0:h.max_acceptable_amount);h=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(h==null?void 0:h.min_acceptable_amount);j=f?d("BillingCurrencyAmount").getFromPECurrencyAmountFragmentNonZero(a==null?void 0:(j=a.billable_account)==null?void 0:(j=j.auto_reload_info)==null?void 0:j.auto_reload_amount):null;f=f?d("BillingCurrencyAmount").getFromPECurrencyAmountFragmentNonZero(a==null?void 0:(f=a.billable_account)==null?void 0:(a=f.auto_reload_info)==null?void 0:a.auto_reload_trigger_threshold):null;g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(a=g.auto_reload_details)==null?void 0:a.auto_reload_trigger_threshold);g=(a=g)!=null?a:f;g==null&&l!=null&&(g=k.billing_autoreload_threshold_qe.threshold_pct_50.read()?l.multiply(.5):h);f=(a=j)!=null?a:l;return{defaultReloadAmount:f,defaultTriggerAmount:g,maxFundingAmount:m,minFundingAmount:h}}g["default"]=a}),98);
-----
useBillingAutoReloadAmounts_paymentAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},c={kind:"Literal",name:"intent",value:"AUTO_RELOAD"},d=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],e=[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:d,storageKey:null}],f={alias:"prepay_details_for_auto_reload",args:[c,{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_funding_details",plural:!1,selections:e,storageKey:null},g={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:d,storageKey:null};return{argumentDefinitions:[{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:null,name:"useBillingAutoReloadAmounts_paymentAccount",selections:[{alias:"recurring_pms",args:[{kind:"Literal",name:"filter",value:"SUPPORTS_RECURRING"},{kind:"Literal",name:"usability_params",value:{intent:"AUTO_RELOAD"}}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{kind:"InlineFragment",selections:[a,b,f],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[a,b,f,{alias:null,args:null,concreteType:"BillingAutoReloadCredentialInfo",kind:"LinkedField",name:"auto_reload_details",plural:!1,selections:[g],storageKey:null}],type:"LPMCredential",abstractKey:null}],storageKey:null}],storageKey:'billing_payment_methods(filter:"SUPPORTS_RECURRING",usability_params:{"intent":"AUTO_RELOAD"})'},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_amount",plural:!1,selections:d,storageKey:null},g],storageKey:null},{alias:"prepay_details_for_auto_reload",args:[{kind:"Literal",name:"do_not_filter",value:!0},c],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_details",plural:!1,selections:e,storageKey:'prepay_details(do_not_filter:true,intent:"AUTO_RELOAD")'}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"PaymentAccount",abstractKey:"__isPaymentAccount"}}();e.exports=a}),null);
-----
BillingAutoReloadEditAmountScreen.react",["fbt","BillingAutoReloadEditAmountScreenQuery.graphql","BillingAutoReloadUpsellConstants","BillingAutoReloadUtils","BillingCurrencyAmount","BillingDraftAutoReloadView.react","BillingWrapperWithForm.react","RelayHooks","asyncToGeneratorRuntime","react","useBillingAutoReloadAmounts"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useMemo,n=i!==void 0?i:i=b("BillingAutoReloadEditAmountScreenQuery.graphql");function a(a){var e=a.onCancel,f=a.onSubmit,g=a.paymentMethodID,i=a.paymentMethodType,j=a.preloadedQuery;a=a.wrapperProps;j=d("RelayHooks").usePreloadedQuery(n,j);var o=j==null?void 0:j.payment_account,p=(o=o==null?void 0:(o=o.billable_account)==null?void 0:o.currency)!=null?o:"USD",q=c("useBillingAutoReloadAmounts")(j==null?void 0:j.payment_account,g,i);o=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield f(d("BillingCurrencyAmount").getFromUserInput(a.reloadAmount,p),d("BillingCurrencyAmount").getFromUserInput(a.triggerAmount,p))});return function(b){return a.apply(this,arguments)}}(),[p,f]);j=m(function(){return d("BillingAutoReloadUtils").getAutoReloadFieldsConfig(p,q)},[p,q]);g=q.maxFundingAmount;i=q.minFundingAmount;return k.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:j,onSubmit:o,primaryButtonLabel:h._(/*BTDS*/""),secondaryButton:{action:e,label:h._(/*BTDS*/"")},testid:void 0,title:c("BillingAutoReloadUpsellConstants").editAutoReloadTitle,children:k.jsx(c("BillingDraftAutoReloadView.react"),{maxReloadAmount:g==null?void 0:g.toString(),minReloadAmount:i==null?void 0:i.toString()})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=n;g.BillingAutoReloadEditAmountScreen=a}),226);
-----
AdCenterAdABTestBudgetTextPairing.react",["AdCenterAdABTestBudgetTextPairing_boostedComponent.graphql","AdCenterAdBudgetTextPairingBase.react","BillingCurrencyAmount","CometRelay","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e=a.boostedComponent;a=a.xstyle;e=d("CometRelay").useFragment(h!==void 0?h:h=b("AdCenterAdABTestBudgetTextPairing_boostedComponent.graphql"),e);var f=e==null?void 0:e.spec;if((f==null?void 0:f.budget_type)==="DAILY_BUDGET"){var g,i;g=e==null?void 0:(g=e.campaign_group)==null?void 0:(g=g.ab_test_winner_campaign)==null?void 0:g.daily_budget;i=parseInt(f==null?void 0:(i=f.budget)==null?void 0:i.offset_amount,10);if(g!=null&&g>0&&i!=null&&i>0){i=(i-g)*2;g=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:f==null?void 0:(g=f.budget)==null?void 0:g.currency,offset_amount:i.toString()});i=g==null?void 0:g.format({showCurrencyCode:!1,showDecimals:!0,showSymbol:!0})}else{i=f==null?void 0:(g=f.budget)==null?void 0:g.formatted_for_lwi}}else{i=(g=e==null?void 0:(g=e.split_test_cell)==null?void 0:(g=g.split_test_budget)==null?void 0:g.formatted_for_lwi)!=null?g:f==null?void 0:(g=f.budget)==null?void 0:g.formatted_for_lwi}g=(g=e==null?void 0:(g=e.split_test_cell)==null?void 0:(g=g.split_test_spent)==null?void 0:g.formatted_for_lwi)!=null?g:e==null?void 0:(g=e.boosting_info)==null?void 0:(e=g.ab_test_spent)==null?void 0:e.formatted_for_lwi;return j.jsx(c("AdCenterAdBudgetTextPairingBase.react"),{budget:i,budgetType:f==null?void 0:f.budget_type,spent:g,xstyle:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingDraftAutoReloadScreenQuery.graphql",["BillingDraftAutoReloadScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],g=[{kind:"Literal",name:"do_not_filter",value:!0},{kind:"Literal",name:"intent",value:"AUTO_RELOAD"}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingDraftAutoReloadScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:f,storageKey:null}],storageKey:null},{alias:null,args:g,concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_details",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:f,storageKey:null}],storageKey:'prepay_details(do_not_filter:true,intent:"AUTO_RELOAD")'}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingDraftAutoReloadScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:e,storageKey:null}],storageKey:null},{alias:null,args:g,concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_details",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:e,storageKey:null}],storageKey:'prepay_details(do_not_filter:true,intent:"AUTO_RELOAD")'}],type:"AdAccount",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingDraftAutoReloadScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingDraftAutoReloadScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
unblockLowFutureSpendAdvertiserPreAuthUtils",["fbt","BillingCurrencyAmount"],(function(a,b,c,d,e,f,g,h){"use strict";function a(){var a=d("BillingCurrencyAmount").getFromPECurrencyAmount({amount_with_offset:"300",currency:"USD"});if(a==null)return"";a=a.format({showDecimals:!0,showSymbol:!0});return h._(/*BTDS*/"",[h._param("formatted budget amount",a)])}function b(a){if(a.currency!=="USD")return!1;var b=d("BillingCurrencyAmount").getFromPECurrencyAmount({amount_with_offset:"300",currency:"USD"});return a.compare(b)<0}g.getUnblockLowFutureSpendAdvertiserPreauthInlineError=a;g.shouldShowUnblockLowFutureSpendAdvertiserPreauthInlineError=b}),226);
-----
PolarisEditBoostedAdBudgetAndDuration.react",["fbt","BillingCurrencyAmount","BoostScaleGoodCampaignBudgetEditScreenEventFalcoEvent","CometRelay","IGDSBox.react","IGDSTextVariants.react","JSResourceForInteraction","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostBudgetAndDurationSelection.react","PolarisBoostDurationType","PolarisBoostErrorStrings","PolarisBoostOkDialog.react","PolarisBoostScreenWrapper.react","PolarisBoostSummaryScreenStrings","PolarisEditBoostedAdBudgetAndDuration.entrypointutils","PolarisEditBoostedAdBudgetAndDurationPreloadedQuery.graphql","PolarisEditBoostedAdBudgetAndDurationQuery.graphql","PolarisEditBoostedAdContext","PolarisScaleGoodCampaignRecommendation.react","PolarisUA","react","react-compiler-runtime","useCometRouterDispatcher","useIGDSLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect;e.useMemo;var o=e.useState,p={content:{marginBottom:"xjx4602",$$css:!0}},q=[1,2,3,4,5,6,7,10,15,30];function r(a){var b=[a];q.map(function(c){b.push(a+c)});return b}var s=i!==void 0?i:i=b("PolarisEditBoostedAdBudgetAndDurationQuery.graphql"),t=j!==void 0?j:j=b("PolarisEditBoostedAdBudgetAndDurationPreloadedQuery.graphql");function a(a){var b,e=d("react-compiler-runtime").c(86),f=a.props;a=a.queries;var g=d("CometRelay").useLazyLoadQuery(s,{data:{fb_auth_token:"",flow_id:f.routeParams.flow_id,is_posm_enabled_for_web:!1,media_id:f.routeParams.media_id.toString(),promote_entry_point:"campaign_controls"},is_enabled:!d("PolarisEditBoostedAdBudgetAndDuration.entrypointutils").getIsPreloadEnabled()});g=g.xdt_ads_promote_init_promote_graphql;a=d("CometRelay").usePreloadedQuery(t,a.initialEditBoostedAdBudgetAndDurationQueryRef);var i=m(c("PolarisEditBoostedAdContext")),j=i.boostedID,k=i.currency,q=i.currencyOffset,w=i.dailyBudget,x=i.durationInDays,y=i.logger,z=i.mediaID,A=i.refetchCampaignControlsQuery;i=i.runContinuously;var B=w/q,C;e[0]!==k||e[1]!==B?(C=d("BillingCurrencyAmount").getFromUserInput(B.toString(10),k),e[0]=k,e[1]=B,e[2]=C):C=e[2];B=o(C);var D=B[0];C=B[1];B=o(x);var E=B[0];B=B[1];var F=function(a){I((a=a==null?void 0:a.display_message)!=null?a:d("PolarisBoostErrorStrings").VERY_GENERIC_SUBMIT_ERROR_BODY.toString())},G=o(""),H=G[0];G=G[1];var I=G;e[3]!==i||e[4]!==D||e[5]!==E?(G=i?d("PolarisBoostBudgetAndDurationScreenStrings").getDailyBudgetSubtext(D):d("PolarisBoostBudgetAndDurationScreenStrings").getTotalSpendDurationInDaysText(D.multiply(E),E),e[3]=i,e[4]=D,e[5]=E,e[6]=G):G=e[6];var J;e[7]!==G?(J=l.jsx(d("IGDSTextVariants.react").IGDSTextTitleEmphasized,{textAlign:"center",children:G}),e[7]=G,e[8]=J):J=e[8];G=J;J=i?d("PolarisBoostBudgetAndDurationScreenStrings").TOTAL_SPEND_INDEFINITE_TITLE:d("PolarisBoostBudgetAndDurationScreenStrings").AD_BUDGET_TITLE;e[9]!==J?(i=l.jsx(d("IGDSTextVariants.react").IGDSTextBody,{color:"secondaryText",textAlign:"center",children:J}),e[9]=J,e[10]=i):i=e[10];J=i;e[11]===Symbol["for"]("react.memo_cache_sentinel")?(i=c("JSResourceForInteraction")("PolarisEditBoostedAdSaveUpdatesDialog.react").__setRef("PolarisEditBoostedAdBudgetAndDuration.react"),e[11]=i):i=e[11];i=c("useIGDSLazyDialog")(i,v);var K=i[0];e[12]!==f?(i=function(){f.navigateTo("campaign_controls")},e[12]=f,e[13]=i):i=e[13];var L=i,M=c("useCometRouterDispatcher")();e[14]!==M?(i=function(){M==null?void 0:M.goBack()},e[14]=M,e[15]=i):i=e[15];var N=i;e[16]!==N?(i=function(){N()},e[16]=N,e[17]=i):i=e[17];i=i;var O=d("CometRelay").useRelayEnvironment(),P=m(c("PolarisEditBoostedAdContext")),Q=P.isOnlyBudgetAndDurationEditScreenFlow;e[18]!==j||e[19]!==k||e[20]!==q||e[21]!==O||e[22]!==L||e[23]!==w||e[24]!==x||e[25]!==Q||e[26]!==y||e[27]!==z||e[28]!==K||e[29]!==f.routeParams.boosted_id||e[30]!==f.routeParams.flow_id||e[31]!==A||e[32]!==F||e[33]!==D||e[34]!==E?(P=function(){y==null?void 0:y.logTapComponent("action_button","campaign_controls_budget_duration");var a=D.multiply(E),b=d("BillingCurrencyAmount").getFromUserInput((w/q).toString(10),k).multiply(x);if(Q){var e=d("BillingCurrencyAmount").getFromUserInput((w/q).toString(10),k);c("BoostScaleGoodCampaignBudgetEditScreenEventFalcoEvent").log(function(){var c;return{boost_id:(c=f.routeParams.boosted_id)!=null?c:"0",currency:k,event_name:"web_budget_edit_clicked_on_first_save_button",initial_daily_budget:e.getAmountWithPEOffset(),initial_duration_days:x.toString(),new_budget:a.getAmountWithPEOffset(),old_budget:b.getAmountWithPEOffset(),updated_daily_budget:D.getAmountWithPEOffset(),updated_duration_days:E.toString()}})}if(a.compare(b)===0){L();return}K({boostedID:j,environment:O,flowID:f.routeParams.flow_id,mediaID:z,newDailySpend:parseInt(D.multiply(q).asGraphQLInput().amount,10),newDuration:E,newTotalBudget:a.toString(),oldTotalBudget:b.toString(),onSuccess:function(){y==null?void 0:y.logTapComponent("update_budget_duration_button","campaign_controls_budget_duration"),A(),L()},showError:F})},e[18]=j,e[19]=k,e[20]=q,e[21]=O,e[22]=L,e[23]=w,e[24]=x,e[25]=Q,e[26]=y,e[27]=z,e[28]=K,e[29]=f.routeParams.boosted_id,e[30]=f.routeParams.flow_id,e[31]=A,e[32]=F,e[33]=D,e[34]=E,e[35]=P):P=e[35];P=P;(b=a.xfb_ig_boost_flow_from_media_igid)==null?void 0:(b=b.boost_ad_account)==null?void 0:(b=b.budget_and_duration_info)==null?void 0:b.daily_budget_options;g==null?void 0:(b=g.initInfo)==null?void 0:b.daily_budget_options_with_offset;if(e[36]!==((b=a.xfb_ig_boost_flow_from_media_igid)==null?void 0:(b=b.boost_ad_account)==null?void 0:(b=b.budget_and_duration_info)==null?void 0:b.daily_budget_options)||e[37]!==(g==null?void 0:(b=g.initInfo)==null?void 0:b.daily_budget_options_with_offset)){b=d("PolarisEditBoostedAdBudgetAndDuration.entrypointutils").getIsPreloadEnabled()?(b=(b=a.xfb_ig_boost_flow_from_media_igid)==null?void 0:(b=b.boost_ad_account)==null?void 0:(b=b.budget_and_duration_info)==null?void 0:b.daily_budget_options)!=null?b:[]:(b=g==null?void 0:(b=g.initInfo)==null?void 0:b.daily_budget_options_with_offset)!=null?b:[];e[36]=(a=a.xfb_ig_boost_flow_from_media_igid)==null?void 0:(a=a.boost_ad_account)==null?void 0:(a=a.budget_and_duration_info)==null?void 0:a.daily_budget_options;e[37]=g==null?void 0:(a=g.initInfo)==null?void 0:a.daily_budget_options_with_offset;e[38]=b}else b=e[38];g=b;a=w/q;var R;if(e[39]!==g||e[40]!==k||e[41]!==q||e[42]!==a){var S=d("BillingCurrencyAmount").getFromUserInput(a.toString(10),k);R=[S];g.map(function(a){var b;d("PolarisEditBoostedAdBudgetAndDuration.entrypointutils").getIsPreloadEnabled()?typeof a==="object"&&(b=a.offset_amount):b=a.toString();R.push(S.add(d("BillingCurrencyAmount").getFromUserInput((parseInt(b,10)/q).toString(10),k)))});e[39]=g;e[40]=k;e[41]=q;e[42]=a;e[43]=R}else R=e[43];b=R;g=b;a=o(!0);var T=a[0],U=a[1];e[44]!==Q||e[45]!==T?(b=function(){T&&Q&&U(!1)},e[44]=Q,e[45]=T,e[46]=b):b=e[46];e[47]!==Q||e[48]!==f.routeParams.boosted_id||e[49]!==T?(a=[f.routeParams.boosted_id,T,Q],e[47]=Q,e[48]=f.routeParams.boosted_id,e[49]=T,e[50]=a):a=e[50];n(b,a);e[51]!==L||e[52]!==i||e[53]!==Q?(b=Q?{onClose:i}:{onBack:L},e[51]=L,e[52]=i,e[53]=Q,e[54]=b):b=e[54];e[55]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/""),e[55]=a):a=e[55];if(e[56]!==Q||e[57]!==f.routeParams.boosted_id){i=Q&&f.routeParams.boosted_id!==null&&l.jsx(c("PolarisScaleGoodCampaignRecommendation.react"),{boostedID:(i=f.routeParams.boosted_id)!=null?i:""});e[56]=Q;e[57]=f.routeParams.boosted_id;e[58]=i}else i=e[58];var V;e[59]!==J?(V=l.jsx(c("IGDSBox.react"),{paddingY:4,children:J}),e[59]=J,e[60]=V):V=e[60];e[61]!==V||e[62]!==G?(J=l.jsxs(c("IGDSBox.react"),{alignItems:"center",justifyContent:"start",paddingY:8,children:[G,V]}),e[61]=V,e[62]=G,e[63]=J):J=e[63];e[64]===Symbol["for"]("react.memo_cache_sentinel")?(V=new Map(),e[64]=V):V=e[64];e[65]!==x?(G=r(x),e[65]=x,e[66]=G):G=e[66];e[67]!==k||e[68]!==q||e[69]!==g||e[70]!==G||e[71]!==D||e[72]!==E?(V=l.jsx(c("IGDSBox.react"),{marginBottom:6,paddingX:4,children:l.jsx(d("PolarisBoostBudgetAndDurationSelection.react").PolarisBoostBudgetAndDurationSelection,{currency:k,currencyOffset:q,dailyBudget:D,dailyBudgetOptions:g,destinationToMinDailyBudget:V,durationInDays:E,durationInDaysOptions:G,durationType:c("PolarisBoostDurationType").SET_DURATION,isBoostAgain:!1,isEligibleForContinuousAds:!1,onDailyBudgetChange:C,onDurationInDaysChange:B,onDurationTypeChange:u,shouldUseBodyEmphasizedHeaders:!1})}),e[67]=k,e[68]=q,e[69]=g,e[70]=G,e[71]=D,e[72]=E,e[73]=V):V=e[73];e[74]!==H||e[75]!==I?(C=H!==""&&l.jsx(c("PolarisBoostOkDialog.react"),{body:H,onPress:function(){I("")},title:h._(/*BTDS*/"")}),e[74]=H,e[75]=I,e[76]=C):C=e[76];e[77]!==i||e[78]!==J||e[79]!==V||e[80]!==C?(B=l.jsxs(l.Fragment,{children:[i,J,V,C]}),e[77]=i,e[78]=J,e[79]=V,e[80]=C,e[81]=B):B=e[81];e[82]!==P||e[83]!==b||e[84]!==B?(g=l.jsx(c("PolarisBoostScreenWrapper.react"),babelHelpers["extends"]({contentStyling:d("PolarisUA").isDesktop()?null:p.content,headerTitle:d("PolarisBoostSummaryScreenStrings").SUMMARY_SCREEN_BUDGET_DURATION},b,{onNext:P,primaryButtonEnable:!0,primaryButtonTitle:a,children:B})),e[82]=P,e[83]=b,e[84]=B,e[85]=g):g=e[85];return g}function u(){}function v(){return l.jsx(l.Fragment,{})}g["default"]=a}),226);
-----
PolarisScaleGoodCampaignBudgetIncreaseBarChart.react",["BillingCurrencyAmount","IGDSBox.react","IGDSTextVariants.react","PolarisBoostBudgetFormatUtils","PolarisEditBoostedAdContext","PolarisScaleGoodCampaignInfoStrings","react","react-compiler-runtime","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){var b=d("react-compiler-runtime").c(24);c("vulture")("6MI2sRbAngicyHsqnwm-xHN_4ZA=");var e=j(c("PolarisEditBoostedAdContext")),f=e.currency,g=e.dailyBudget;e=e.logger;var h=a.budgetIncreaseDecimal,k=a.campaignObjective,l=a.maxConversionLiftDecimal;a=a.metricIncreaseDecimal;var m,n,o;if(b[0]!==h||b[1]!==f||b[2]!==g||b[3]!==e||b[4]!==a){o=Symbol["for"]("react.early_return_sentinel");bb0:{var p;p=(p=d("BillingCurrencyAmount").getFromPECurrencyAmount({amount_with_offset:g.toString(),currency:f}))==null?void 0:p.multiply(1+h);if(p==null){e==null?void 0:e.logFetchDataError("fetch_scale_good_campaign_recommendation","could_not_fetch_currency_value_for_budget_increase","could_not_fetch_currency_value_for_budget_increase","campaign_controls_budget_duration");o=null;break bb0}var q=d("PolarisBoostBudgetFormatUtils").formatBudgetWithDecimals(p);m=Math.round(a*100);n=d("PolarisScaleGoodCampaignInfoStrings").getBudgetAddPerDay(q)}b[0]=h;b[1]=f;b[2]=g;b[3]=e;b[4]=a;b[5]=p;b[6]=m;b[7]=n;b[8]=o}else p=b[5],m=b[6],n=b[7],o=b[8];if(o!==Symbol["for"]("react.early_return_sentinel"))return o;q=n;l>1?h=Math.round(a/l*100)+"%":h=m+"%";var r;bb1:switch(k){case"VIEW_INSTAGRAM_PROFILE":r=d("PolarisScaleGoodCampaignInfoStrings").ScaleGoodCampaignObjectiveName.PROFILE_VISITS;break bb1;case"LINK_CLICKS":r=d("PolarisScaleGoodCampaignInfoStrings").ScaleGoodCampaignObjectiveName.WEBSITE_VISITS;break bb1;case"MESSAGES":r=d("PolarisScaleGoodCampaignInfoStrings").ScaleGoodCampaignObjectiveName.MESSAGES;break bb1;default:r=null}if(r==null){if(p==null){e==null?void 0:e.logFetchDataError("fetch_scale_good_campaign_recommendation","invalid_campaign_objective","invalid_campaign_objective","campaign_controls_budget_duration");return null}return null}b[9]!==r||b[10]!==m?(f=d("PolarisScaleGoodCampaignInfoStrings").getMetricPercentageIncrease(m,r),b[9]=r,b[10]=m,b[11]=f):f=b[11];g=f;b[12]!==q?(o=i.jsx(c("IGDSBox.react"),{children:i.jsx(d("IGDSTextVariants.react").IGDSTextBody,{zeroMargin:!0,children:q})}),b[12]=q,b[13]=o):o=b[13];b[14]!==h?(a=i.jsx(c("IGDSBox.react"),{color:"highlightBackground",flex:"grow",height:"12px",shape:"rounded",children:i.jsx(c("IGDSBox.react"),{color:"primaryText",height:"12px",shape:"rounded",width:h})}),b[14]=h,b[15]=a):a=b[15];b[16]!==g?(l=i.jsx(c("IGDSBox.react"),{marginStart:4,children:i.jsx(d("IGDSTextVariants.react").IGDSTextBody2,{zeroMargin:!0,children:g})}),b[16]=g,b[17]=l):l=b[17];b[18]!==a||b[19]!==l?(k=i.jsxs(c("IGDSBox.react"),{alignItems:"center",direction:"row",children:[a,l]}),b[18]=a,b[19]=l,b[20]=k):k=b[20];b[21]!==o||b[22]!==k?(p=i.jsxs(c("IGDSBox.react"),{paddingY:2,rowGap:2,width:"100%",children:[o,k]}),b[21]=o,b[22]=k,b[23]=p):p=b[23];return p}g["default"]=a}),98);
-----
BizKitQuickCreateModalSubmitButton.react",["fbt","BillingCurrencyAmount","BizKitQuickCreateModalSubmitButton_spec.graphql","CometErrorBoundary.react","CometPlaceholder.react","CometRelay","FBLogger","GeoButton.react","GeoButtonLoadingState.react","LWIBizWebQuickCreateSpecOverrideUtil","LWICometCreateBoostedComponentMutation","LWICometMutationUtils","LWICometOptionalLoggingDataContext","react","react-compiler-runtime","useBillingMaybeOpenWizard","useBillingRequiredWizardName","useGeoAlertModal","useLWIBizWebQuickCreateModalSubmissionSectionLoggingCallbacks","useLWICometAdAccountUpdate","useLWICometCurrentSpec","useLWICometUIStatusContext","useLWILoggerContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useMemo,o=e.useState,p=i!==void 0?i:i=b("BizKitQuickCreateModalSubmitButton_spec.graphql");function a(a){var b=d("react-compiler-runtime").c(8),e=a.loadConfirmationDialogRootQuery,f=a.specKey;a=a.specOverride;var g=c("useLWICometUIStatusContext")();g=g.presubmitErrorNotice;if(g!=null){var i=Object.keys(g);if(i.length>0){g=g[i[0]];if(g!=null&&g.length>0){b[0]===Symbol["for"]("react.memo_cache_sentinel")?(i=h._(/*BTDS*/"Publish"),b[0]=i):i=b[0];b[1]!==g[0].title?(i=k.jsx(c("GeoButton.react"),{isDisabled:!0,label:i,tooltip:g[0].title,variant:"primary"}),b[1]=g[0].title,b[2]=i):i=b[2];return i}}}b[3]===Symbol["for"]("react.memo_cache_sentinel")?(g=k.jsx(c("GeoButtonLoadingState.react"),{}),b[3]=g):g=b[3];b[4]!==e||b[5]!==f||b[6]!==a?(i=k.jsx(c("CometErrorBoundary.react"),{fallback:q,children:k.jsx(c("CometPlaceholder.react"),{fallback:g,children:k.jsx(r,{loadConfirmationDialogRootQuery:e,specKey:f,specOverride:a})})}),b[4]=e,b[5]=f,b[6]=a,b[7]=i):i=b[7];return i}function q(a){c("FBLogger")("mbs_ads").mustfix(a.message);return k.jsx(c("GeoButton.react"),{isDisabled:!0,label:h._(/*BTDS*/"Publish"),variant:"primary"})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=d("react-compiler-runtime").c(4),e=a.loadConfirmationDialogRootQuery,f=a.specKey;a=a.specOverride;var g=o(!1),i=g[0];g=g[1];f=s(f,a,g,e);b[0]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"Publish"),b[0]=a):a=b[0];b[1]!==i||b[2]!==f?(g=k.jsx(c("GeoButton.react"),{isLoading:i,label:a,onClick:f,variant:"primary"}),b[1]=i,b[2]=f,b[3]=g):g=b[3];return g}function s(a,b,e,f){var g,h;a=d("CometRelay").useFragment(p,a);var i=(g=(g=a.ad_account)==null?void 0:g.legacy_account_id)!=null?g:"";g=c("useLWIBizWebQuickCreateModalSubmissionSectionLoggingCallbacks")();var j=g.logClosePayment,k=g.logCompleteAddingPayment,m=g.logCompleteBillingWizard,n=g.logMutationSubmit,o=g.logOpenPayment,q=g.logSubmitClick,r=c("useLWICometAdAccountUpdate")(i);g=l(function(){j(),r()},[j,r]);var s=t(b);b=c("useLWICometUIStatusContext")();var v=b.setPostAdDialogStatus,w=u(e,s,v);b=l(function(){m(),r(),n(),e(!0),v("SUBMITTING"),w(),f({input:s.input,paymentAccountID:i},{fetchPolicy:"network-only"})},[w,i,f,m,n,r,e,v,s.input]);h=(h=(h=a.budget)==null?void 0:h.currency)!=null?h:"USD";a=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:h,offset_amount:(a=a.budget)==null?void 0:a.offset_amount});a=c("useBillingRequiredWizardName")(i,a==null?void 0:a.asGraphQLInput().amount,h);h=c("useLWILoggerContext")();h=h.flowID;var x=c("useBillingMaybeOpenWizard")(i,a,{entryPoint:"lwi_comet",flowID:h},{onBillingWizardComplete:k,onClose:g,onComplete:b,onOpen:o,otherProps:{}});return l(function(){q(),x()},[x,q])}function t(a){var b=c("useLWILoggerContext")(),e=c("useLWICometCurrentSpec")(),f=m(c("LWICometOptionalLoggingDataContext")),g=d("LWIBizWebQuickCreateSpecOverrideUtil").overrideSpec(e,a);return n(function(){return d("LWICometMutationUtils").getCreationMutationData({externalDependentEntID:null,isIGConnected:!1,isUsingBrowserAddon:!1,isWAConnected:!1,loggerContext:b,optionalLoggingData:f,spec:g,specHistory:null})},[b,f,g])}function u(a,b,e){var f=d("react-compiler-runtime").c(6),g=d("CometRelay").useRelayEnvironment(),h=c("useGeoAlertModal")(),i;f[0]!==g||f[1]!==a||f[2]!==e||f[3]!==h||f[4]!==b?(i=function(){d("CometRelay").commitMutation(g,{mutation:c("LWICometCreateBoostedComponentMutation"),onCompleted:function(b){a(!1);b=(b=b.create_boosted_component)==null?void 0:b.id;b!=null?e("SUCCEEDED"):e("FAILED")},onError:function(b){a(!1),c("FBLogger")("pages_lwi").mustfix("Error (%s) when committing creation mutation",b.toString()),e("NOT_SUBMITTED"),h({body:b.description,title:b.summary})},updater:v,variables:b})},f[0]=g,f[1]=a,f[2]=e,f[3]=h,f[4]=b,f[5]=i):i=f[5];return i}function v(){}g["default"]=a}),226);
-----
PolarisBoostSuccessScreenStrings",["fbt","PolarisBoostBudgetAndDurationUtils","PolarisBoostBudgetFormatUtils","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function k(a){switch(a){case"ACCOUNT_SPENDING_LIMIT_WILL_BE_REACHED":return h._(/*BTDS*/"__JHASH__gvR1IztFbb9__JHASH__",[h._implicitParam("=m2",j.jsx("b",{children:h._(/*BTDS*/"__JHASH__o157wQ-T-yj__JHASH__")}))]);case"ACCOUNT_SPENDING_LIMIT_REACHED":return h._(/*BTDS*/"__JHASH__bGeA4UL8bHP__JHASH__",[h._implicitParam("=m2",j.jsx("b",{children:h._(/*BTDS*/"__JHASH__t2VY6_46Q6E__JHASH__")}))]);default:return null}}function a(a,b,e){var f=c("gkx")("13027");if(!f)return k(a);f=d("PolarisBoostBudgetAndDurationUtils").getBillingCurrencyAmount(0,b,e);b=d("PolarisBoostBudgetFormatUtils").formatBudgetNoDecimals(f);switch(a){case"ACCOUNT_SPENDING_LIMIT_WILL_BE_REACHED":return h._(/*BTDS*/"__JHASH__9MuqRamz-Sz__JHASH__",[h._param("0 in local currency",b),h._implicitParam("=m2",j.jsx("b",{children:h._(/*BTDS*/"__JHASH__8f-8_pcnrbk__JHASH__")}))]);case"ACCOUNT_SPENDING_LIMIT_REACHED":return h._(/*BTDS*/"__JHASH__l7RrsIrV5sR__JHASH__",[h._param("0 in local currency",b),h._implicitParam("=m2",j.jsx("b",{children:h._(/*BTDS*/"__JHASH__fraCKBPAEci__JHASH__")}))]);default:return null}}g.getBillingMessageFromMessageName=k;g.getBillingMessageFromMessageNameV2=a}),226);
-----
LWICometABTestWinnerKeepsRunningBudgetSectionWithTax.react",["fbt","BillingCurrencyAmount","CometRow.react","CometRowItem.react","LWIOmniTextPairing.react","react","useBillingInfoEstimatedTax"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.budget,e=a.currency;a=a.legacyAccountID;var f=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:e,offset_amount:b.toString()});e=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:e,offset_amount:b.toString()});b=c("useBillingInfoEstimatedTax")(a,e);a=b.taxes;e=b.totalBudget;return j.jsxs("div",babelHelpers["extends"]({className:"x1e56ztr x1xmf6yo"},{children:[j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:h._(/*BTDS*/""),level:3})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:f==null?void 0:f.format({showCurrencyCode:!0,showDecimals:!0,showSymbol:!0}),level:3,testid:void 0})})]}),a!=null&&a.map(function(a,b){return j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:4,children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:a.taxName,level:3})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:a==null?void 0:(a=a.amount)==null?void 0:a.format({showCurrencyCode:!0,showDecimals:!0,showSymbol:!0}),level:3})})]},b)}),j.jsx("div",{className:"x80vd3b x1q0q8m5 xso031l xod5an3 x14vqqas"}),j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:h._(/*BTDS*/""),level:3})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:e==null?void 0:e.format({showCurrencyCode:!0,showDecimals:!0,showSymbol:!0}),level:3})})]})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
usePolarisBoostFetchBoostAdAccount",["CometRelay","PolarisBoostBudgetAndDurationUtils","PolarisBoostDefaultValues.react","react-compiler-runtime","usePolarisBoostFetchBoostAdAccountFragment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=6;function a(a){var c,e,f,g=d("react-compiler-runtime").c(23),j=a.flowID,k=a.mediaID;a=a.prohibitionData;a=d("CometRelay").useRefetchableFragment(h!==void 0?h:h=b("usePolarisBoostFetchBoostAdAccountFragment.graphql"),a);var l=a[0],m=a[1];g[0]!==j||g[1]!==k||g[2]!==m?(a=function(){m({flow_id:j,ig_media_id:k},{fetchPolicy:"network-only"})},g[0]=j,g[1]=k,g[2]=m,g[3]=a):a=g[3];a=a;l=(l=l.xfb_ig_boost_flow_from_media_igid)==null?void 0:l.boost_ad_account;c=(c=l==null?void 0:l.currency)!=null?c:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY;e=(e=l==null?void 0:l.currency_offset)!=null?e:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY_OFFSET;if(g[4]!==(l==null?void 0:(f=l.budget_and_duration_info)==null?void 0:f.destination_specific_min_daily_budget)||g[5]!==c||g[6]!==e){var n;f=new Map();if(g[8]!==(l==null?void 0:(n=l.budget_and_duration_info)==null?void 0:n.destination_specific_min_daily_budget)){var o;n=(n=l==null?void 0:(n=l.budget_and_duration_info)==null?void 0:n.destination_specific_min_daily_budget)!=null?n:[];g[8]=l==null?void 0:(o=l.budget_and_duration_info)==null?void 0:o.destination_specific_min_daily_budget;g[9]=n}else n=g[9];o=n;for(var n=o,o=Array.isArray(n),p=0,n=o?n:n[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var q,r;if(o){if(p>=n.length)break;r=n[p++]}else{p=n.next();if(p.done)break;r=p.value}r=r;var s=r==null?void 0:r.destination;q=(q=r==null?void 0:(q=r.min_daily_budget)==null?void 0:q.currency)!=null?q:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY;if(s!=null&&q===c){r=d("PolarisBoostBudgetAndDurationUtils").getBillingCurrencyAmount(Number(r==null?void 0:(q=r.min_daily_budget)==null?void 0:q.offset_amount),c,e);f.set(s,r)}}g[4]=l==null?void 0:(q=l.budget_and_duration_info)==null?void 0:q.destination_specific_min_daily_budget;g[5]=c;g[6]=e;g[7]=f}else f=g[7];r=(s=l==null?void 0:l.payment_legacy_account_id)!=null?s:"";n=(o=l==null?void 0:(p=l.payment_info)==null?void 0:p.budget_limit_with_offset)!=null?o:0;p=(s=l==null?void 0:(q=l.payment_info)==null?void 0:q.budget_spent_with_offset)!=null?s:0;if(g[10]!==(l==null?void 0:(o=l.budget_and_duration_info)==null?void 0:o.daily_budget_options)){o=(s=l==null?void 0:(q=l.budget_and_duration_info)==null?void 0:q.daily_budget_options)!=null?s:[];g[10]=l==null?void 0:(q=l.budget_and_duration_info)==null?void 0:q.daily_budget_options;g[11]=o}else o=g[11];s=l==null?void 0:(s=l.budget_and_duration_info)==null?void 0:(q=s.default_daily_budget)==null?void 0:q.offset_amount;q=(l=l==null?void 0:(q=l.budget_and_duration_info)==null?void 0:q.default_duration)!=null?l:i;g[12]!==c||g[13]!==e||g[14]!==f||g[15]!==a||g[16]!==r||g[17]!==n||g[18]!==p||g[19]!==o||g[20]!==s||g[21]!==q?(l={adAccountID:r,budgetLimitWithOffset:n,budgetSpentWithOffset:p,currency:c,currencyOffset:e,dailyBudgetOptionsWithOffset:o,defaultDailyBudgetWithOffset:s,defaultDuration:q,destinationToMinDailyBudget:f,refetchBoostAdAccount:a},g[12]=c,g[13]=e,g[14]=f,g[15]=a,g[16]=r,g[17]=n,g[18]=p,g[19]=o,g[20]=s,g[21]=q,g[22]=l):l=g[22];return l}g["default"]=a}),98);
-----
PolarisBoostAccountSpendLimitWarning.react",["fbt","CometPressable.react","IGDSBox.react","IGDSErrorPanoFilledIcon.react","IGDSTextVariants.react","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostBudgetAndDurationUtils","PolarisBoostLegacyPaymentSettingsLink.react","PolarisUA","purchaseObjectiveGating","qex","react","react-compiler-runtime","usePolarisBillingWizard","usePolarisBoostSharedContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={aslHover:{":hover_backgroundColor":"x1n5bzlp",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(37),e=a.flowID,f=a.goal,g=a.logger;a=a.shouldShowAccountSpendLimitWarning;var i=c("usePolarisBoostSharedContext")(),l=i.budgetLimitWithOffset,m=i.currency,n=i.currencyOffset,o=i.refetchBoostAdAccount;b[0]!==e?(i={entryPoint:d("PolarisUA").isDesktop()?"ig_desktop_boost":"ig_msite_boost",flowID:e},b[0]=e,b[1]=i):i=b[1];b[2]!==g||b[3]!==o?(e=function(a){a==="complete"?(g==null?void 0:g.logFinishStepSuccess("update_account_spend_limit"),o()):g==null?void 0:g.logFinishStepError("User did not complete the update account spend limit wizard","update_account_spend_limit")},b[2]=g,b[3]=o,b[4]=e):e=b[4];var p;b[5]!==i||b[6]!==e?(p={entryPointDetails:i,onClose:e,wizardName:"UPDATE_ACCOUNT_SPEND_LIMIT"},b[5]=i,b[6]=e,b[7]=p):p=b[7];var q=c("usePolarisBillingWizard")(p);if(!a)return null;b[8]!==g?(i=function(){g==null?void 0:g.logTapComponent("view_payment_settings_link","budget_duration")},b[8]=g,b[9]=i):i=b[9];var r=i;b[10]!==f?(e=d("PolarisBoostBudgetAndDurationUtils").isSalesObjective(f)&&(c("qex")._("2060")===!0||d("purchaseObjectiveGating").doesUserPassPurchaseObjectiveWebIterationGating())||!d("PolarisBoostBudgetAndDurationUtils").isSalesObjective(f)&&c("qex")._("328")===!0,b[10]=f,b[11]=e):e=b[11];p=e;b[12]!==r?(a=j.jsx(c("PolarisBoostLegacyPaymentSettingsLink.react"),{onClickPaymentSettings:r}),b[12]=r,b[13]=a):a=b[13];i=a;b[14]!==g||b[15]!==r||b[16]!==q?(f=function(){r(),q(),g==null?void 0:g.logStartStepSuccess("update_account_spend_limit")},b[14]=g,b[15]=r,b[16]=q,b[17]=f):f=b[17];e=f;b[18]!==l||b[19]!==m||b[20]!==n?(a=d("PolarisBoostBudgetAndDurationScreenStrings").getAccountSpendLimitErrorText(d("PolarisBoostBudgetAndDurationUtils").getBillingCurrencyAmount(l,m,n)),b[18]=l,b[19]=m,b[20]=n,b[21]=a):a=b[21];f=a;b[22]!==e?(l=j.jsx(d("IGDSTextVariants.react").IGDSTextBody,{color:"primaryButton",zeroMargin:!0,children:j.jsx(c("CometPressable.react"),{onPress:e,xstyle:k.aslHover,children:d("PolarisBoostBudgetAndDurationScreenStrings").INCREASE_SPENDING_LIMIT})}),b[22]=e,b[23]=l):l=b[23];m=l;if(d("PolarisUA").isDesktop()){b[24]===Symbol["for"]("react.memo_cache_sentinel")?(n=j.jsx(c("IGDSBox.react"),{marginEnd:1,children:j.jsx(c("IGDSErrorPanoFilledIcon.react"),{alt:h._(/*BTDS*/"__JHASH__47x4hGz2Yn3__JHASH__"),color:"ig-error-or-destructive",size:16})}),b[24]=n):n=b[24];b[25]!==p||b[26]!==i||b[27]!==m||b[28]!==f?(a=j.jsxs(c("IGDSBox.react"),{direction:"row",marginTop:4,children:[n,j.jsx(d("IGDSTextVariants.react").IGDSTextBody,{color:"errorOrDestructive",zeroMargin:!0,children:p?j.jsxs(j.Fragment,{children:[f," ",m]}):i})]}),b[25]=p,b[26]=i,b[27]=m,b[28]=f,b[29]=a):a=b[29];return a}e=p?f:d("PolarisBoostBudgetAndDurationScreenStrings").ACCOUNT_SPEND_LIMIT_WARNING;b[30]!==e?(l=j.jsx(c("IGDSBox.react"),{marginBottom:2,children:j.jsx(d("IGDSTextVariants.react").IGDSTextBody,{color:"errorOrDestructive",textAlign:"center",zeroMargin:!0,children:e})}),b[30]=e,b[31]=l):l=b[31];n=p?m:i;b[32]!==n?(a=j.jsx(c("IGDSBox.react"),{alignItems:"center",children:n}),b[32]=n,b[33]=a):a=b[33];b[34]!==l||b[35]!==a?(f=j.jsx(c("IGDSBox.react"),{marginTop:4,paddingX:8,children:j.jsxs(j.Fragment,{children:[l,a]})}),b[34]=l,b[35]=a,b[36]=f):f=b[36];return f}g["default"]=a}),226);
-----
PolarisBoostBudgetFooterWarningOrSuggestion.react",["BillingCurrencyAmount","IGDSBox.react","IGDSTextVariants.react","PolarisBoostBanner.react","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostBudgetAndDurationUtils","PolarisBoostRecommendationCard.react","PolarisBoostSOBRWarning.react","PolarisBoostSheetOrModal.react","PolarisFastLink.react","PolarisUA","qex","react","react-compiler-runtime","usePolarisBoostSharedContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState;function a(a){var b=d("react-compiler-runtime").c(54),e=a.budgetWarningOrSuggestionType,f=a.budgetWarningV2Minimum,g=a.currency,h=a.currencyOffset,o=a.dailyBudget,p=a.durationInDays,q=a.durationType,r=a.dynamicSabrConversions,s=a.goal,t=a.isSABREligible,u=a.logger,v=a.marginBottom,w=a.marginTop,x=a.onDailyBudgetChange,y=a.onDurationInDaysChange,z=a.sabrMinBudget;a=a.sabrMinDuration;var A=j(!1),B=A[0];A=A[1];var C=c("usePolarisBoostSharedContext")();C=C.isBudgetDurationInitialized;var D=null;if(t&&e==="sabr")if(d("PolarisBoostBudgetAndDurationUtils").isEligibleForBudgetDurationBugFixes()){t=z/h;var E;b[0]!==g||b[1]!==a||b[2]!==t?(E=d("PolarisBoostBudgetAndDurationScreenStrings").getDynamicSABRMessageWithoutOutcomes(d("BillingCurrencyAmount").getFromUserInput(t.toString(10),g),a),b[0]=g,b[1]=a,b[2]=t,b[3]=E):E=b[3];t=E;b[4]!==o||b[5]!==p||b[6]!==C||b[7]!==B||b[8]!==z||b[9]!==a?(E=C===!0&&(Number(o.getAmountWithPEOffset())-----
useLWICometPauseConfirmationDialog",["fbt","BillingCurrencyAmount","CometRelay","LWICometPauseDeleteUtils","react","useLWICometBudgetReallocationDialog","useLWICometPauseConfirmationDialog_boostedComponent.graphql","useLWICometPauseDeleteDialog","useLWIOmniConfirmationDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=(j||d("react")).useCallback,l=4,m=i!==void 0?i:i=b("useLWICometPauseConfirmationDialog_boostedComponent.graphql");function n(a,b,c,e){if(a==null)return null;a=parseFloat(b)-parseFloat(c);b=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:e,offset_amount:a.toString()});return b==null?void 0:b.format({showCurrencyCode:!1,showDecimals:!0,showSymbol:!0})}function a(a,b,e){var f,g,i,j=c("useLWIOmniConfirmationDialog")(),o=j[0],p=c("useLWICometPauseDeleteDialog")(),q=c("useLWICometBudgetReallocationDialog")();j=d("CometRelay").useFragment(m,a);a=(a=j==null?void 0:(a=j.campaigns_lifetime_spent[0])==null?void 0:(a=a.amount_spent_with_currency)==null?void 0:a.offset_amount)!=null?a:null;f=(f=j==null?void 0:(f=j.campaigns_lifetime_spent[0])==null?void 0:(f=f.amount_spent_with_currency)==null?void 0:f.currency)!=null?f:null;g=(g=j==null?void 0:(g=j.spec)==null?void 0:(g=g.budget)==null?void 0:g.offset_amount)!=null?g:null;var r=n(j==null?void 0:(i=j.spec)==null?void 0:(i=i.budget)==null?void 0:i.offset_amount,g,a,f),s=(a=j==null?void 0:(i=j.spec)==null?void 0:(g=i.ad_account)==null?void 0:g.legacy_account_id)!=null?a:"",t=(a=j==null?void 0:(f=j.spec)==null?void 0:(i=f.ad_account)==null?void 0:(g=i.lwi_pause_prevention_qe)==null?void 0:g.bool)!=null?a:!1,u=(a=j==null?void 0:(f=j.spec)==null?void 0:(i=f.ad_account)==null?void 0:(g=i.lwi_budget_reallocation_qe)==null?void 0:g.bool)!=null?a:!1;i=j==null?void 0:(f=j.spec)==null?void 0:f.boosting_status;var v=j==null?void 0:(g=j.boosting_info)==null?void 0:g.duration_completed_in_days,w=j==null?void 0:(a=j.spec)==null?void 0:a.duration_in_days,x=j==null?void 0:(f=j.boosting_info)==null?void 0:f.stop_time;a=(g=j==null?void 0:(g=j.campaign_group)==null?void 0:(a=g.pause_resume_insights)==null?void 0:(f=a.edges)==null?void 0:f.map(function(a){return(a=a.node)==null?void 0:a.results}))!=null?g:[];var y=d("LWICometPauseDeleteUtils").getDailyResultsPrediction(a),z=j==null?void 0:j.lwi_campaign_performance_score,A=j==null?void 0:(f=j.campaign_group)==null?void 0:f.objective_for_results_label,B=i==="ACTIVE";return k(function(){if(B)if(z!=null&&w!=null&&d("LWICometPauseDeleteUtils").shouldShowHighPerformingAdDialog(z,v,w,s,x,t)){var a="high_performance";p({adEndTime:x,dialogType:"PAUSE",durationInDays:w,localizedObjectiveForResultsLabel:A,onCancel:function(){e!=null&&e("pause_cancel",a)},onConfirm:function(){b(a)},performanceScore:z,predictedDailyResults:y});e!=null&&e("pause_warning",a)}else if(u){var c="other";q({adEndTime:x,budgetRemaining:r,dialogType:"PAUSE",onCancel:function(){e!=null&&e("pause_cancel",c)},onConfirm:function(){b(c)}});e!=null&&e("pause_warning",c)}else if(v!=null&&v-----
BillingMV4BLWSCheckSaveCredentialState",["BillingCurrencyAmount","BillingWizardTypes","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingPayNowOrSettleStatePayNowWithFundsAndTokensMutation.graphql",["BillingPayNowOrSettleStatePayNowWithFundsAndTokensMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null},g=[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},f],h={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_coupons",plural:!1,selections:g,storageKey:null};g={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_store_balance",plural:!1,selections:g,storageKey:null};var i={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPayNowOrSettleStatePayNowWithFundsAndTokensMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPayNowWithFundsAndTokensResponsePayload",kind:"LinkedField",name:"billable_account_pay_now_with_funds_and_tokens",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"useBillableAccountBalance_billingAccount"},e],storageKey:null},h,g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:[f,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[i,j],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPayNowOrSettleStatePayNowWithFundsAndTokensMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPayNowWithFundsAndTokensResponsePayload",kind:"LinkedField",name:"billable_account_pay_now_with_funds_and_tokens",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{kind:"TypeDiscriminator",abstractKey:"__isBillableAccount"},j,{alias:null,args:null,concreteType:"XFBBillingBalanceInfoResult",kind:"LinkedField",name:"balance_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_prepaid_balance",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:[j,i],storageKey:null}],storageKey:null},e,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},h,g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:[f,i,j],storageKey:null}],storageKey:null}]},params:{id:b("BillingPayNowOrSettleStatePayNowWithFundsAndTokensMutation_facebookRelayOperation"),metadata:{},name:"BillingPayNowOrSettleStatePayNowWithFundsAndTokensMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useBillingUpdateSpendLimit",["fbt","BillingCurrencyAmount","BillingErrorUtils","BillingUpdateSpendLimitConstants","BillingWizardRootUPLogger","asyncToGeneratorRuntime","react","react-compiler-runtime","useBillingRelay","useBillingUpdateSpendLimitMutation.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;e=j||d("react");e.useCallback;e.useMemo;var k=i!==void 0?i:i=b("useBillingUpdateSpendLimitMutation.graphql"),l=/^d+(.d+)?$/,m=/^0(.0+)?$/;function n(a){var b=a.match(l);a=a.match(m);if(!b)return{message:h._(/*BTDS*/"Please input a valid number."),validationState:"ERROR"};return a?{message:h._(/*BTDS*/"Please input a positive number."),validationState:"ERROR"}:null}function a(a,e,f){var g=d("react-compiler-runtime").c(8),h=c("useBillingRelay")(),i;g[0]!==e||g[1]!==a||g[2]!==f||g[3]!==h?(i=function(){var g=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var g=d("BillingCurrencyAmount").getFromUserInput(b.spendLimit,e);try{g={billable_account_payment_legacy_account_id:f,new_spend_limit:g.asGraphQLInput(),upl_logging_data:babelHelpers["extends"]({},c("BillingWizardRootUPLogger").getLoggingData("useBillingUpdateSpendLimitMutation"))};yield h.commitMutation({mutation:k,variables:{input:g}},{event_context:"set_spend_limit",event_data:{}});return a({body:c("BillingUpdateSpendLimitConstants").successBody(d("BillingCurrencyAmount").getFromUserInput(b.spendLimit,e).toString()),headline:c("BillingUpdateSpendLimitConstants").successHeadline,type:"SUCCESS"})}catch(e){g=e;yield a({body:c("BillingUpdateSpendLimitConstants").errorBody,headline:c("BillingUpdateSpendLimitConstants").errorHeadline,title:c("BillingUpdateSpendLimitConstants").errorTitle,type:"ERROR"});b=d("BillingErrorUtils").buildBillingErrorFromError("server side mutation failure",{event_action:"mutation",event_context:"set_spend_limit",event_result:"failure",event_side:"user_action"},{action:"mutate"},g);c("BillingWizardRootUPLogger").logBillingPayloadError(b.type,b.errorPayload)}});return function(a){return g.apply(this,arguments)}}(),g[0]=e,g[1]=a,g[2]=f,g[3]=h,g[4]=i):i=g[4];i=i;var j;g[5]===Symbol["for"]("react.memo_cache_sentinel")?(j={spendLimit:{defaultValue:"0",required:!0,validate:o}},g[5]=j):j=g[5];j=j;j=j;g[6]!==i?(j={fields:j,onSubmit:i},g[6]=i,g[7]=j):j=g[7];return j}function o(a){return n(a)}g["default"]=a}),226);
-----
BillingHubPaymentSettingsPrepaidFundsCard.react",["fbt","ix","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubCard.react","BillingHubPaymentSettingsPrepaidFundsCardConstants","BillingHubPaymentSettingsPrepaidFundsCard_billableAccount.graphql","BillingHubPendingPaymentsTransactionItem.react","BillingHubWWWPaymentMethodUtils","BillingHubWizardButton.react","GeoBaseText.react","GeoButtonGroup.react","GeoDropdownMenu.react","GeoListItem.react","GeoMenuItem.react","GeoSection.react","Image.react","react","react-relay/hooks","useBillingHubPendingPayments","useBillingHubRouter","useBillingRequestRefundStatus","useBillingSurfaceUPLogger","useBillingWizardForHub"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=j!==void 0?j:j=b("BillingHubPaymentSettingsPrepaidFundsCard_billableAccount.graphql");function a(a){var b,e;a=a.account;a=d("react-relay/hooks").useFragment(m,a);var f=c("useBillingHubRouter")(),g=f.getURI,j=f.navigate,k=c("useBillingSurfaceUPLogger")();f=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();f=f.hasBillingWritePermission;var n=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_balance),o=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance),p=l.jsx(c("Image.react"),{src:i("1446163")});b=(a==null?void 0:(b=a.balance_info)==null?void 0:b.is_prepaid_balance)===!0?d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(b=a.balance_info)==null?void 0:b.balance):d("BillingCurrencyAmount").createZero((b=a==null?void 0:a.currency)!=null?b:"USD");var q=function(a){return h._(/*BTDS*/"{=m0}",[h._implicitParam("=m0",l.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:h._(/*BTDS*/"{wrapper to format description text}",[h._param("wrapper to format description text",a)])}))])};b=(n==null?void 0:n.isZero())||(o==null?void 0:o.isZero())?void 0:q(c("BillingHubPaymentSettingsPrepaidFundsCardConstants").availableFundsDescription((o=b==null?void 0:b.format())!=null?o:""));o=c("useBillingRequestRefundStatus")(a);o=o.shouldShow;e=(e=a==null?void 0:a.refund_status)!=null?e:"BILLING_PREPAY_NO_REFUND_STATUS";f=f&&o()&&e==="BILLING_PREPAY_NO_REFUND_STATUS";var r=c("useBillingWizardForHub")({wizardName:"REQUEST_REFUND"},{eventContext:"request_refund",targetName:"request_refund_button"});o=c("useBillingHubPendingPayments")(a);e=o.transactionCount;a=o.transactionDetails;o=e!==0;return l.jsxs(c("BillingHubCard.react"),{pageComponentName:"prepaid_funds",title:c("BillingHubPaymentSettingsPrepaidFundsCardConstants").funds,children:[l.jsx(c("GeoSection.react"),{children:l.jsxs("div",babelHelpers["extends"]({className:"x6s0dn4 x78zum5 x1q0g3np"},{children:[l.jsx(c("GeoListItem.react"),{description:b,label:d("BillingHubWWWPaymentMethodUtils").formatHeadline((b=n==null?void 0:n.format())!=null?b:""),media:p}),l.jsxs(c("GeoButtonGroup.react"),{children:[l.jsx(c("BillingHubWizardButton.react"),{eventContext:"billing_add_funds",label:c("BillingHubPaymentSettingsPrepaidFundsCardConstants").addFunds,wizardProps:{wizardName:"ADD_FUNDS"}}),l.jsxs(c("GeoDropdownMenu.react"),{label:h._(/*BTDS*/"More"),useEllipsisIcon:!0,children:[l.jsx(c("GeoMenuItem.react"),{label:c("BillingHubPaymentSettingsPrepaidFundsCardConstants").viewHistory,onClick:function(){var a;k==null?void 0:k.logClickEvent("payment_activity",{event_target:(a=(a=g("PAYMENT_ACTIVITY"))==null?void 0:(a=a.getPath())==null?void 0:a.toString())!=null?a:"",sub_screen:"payment_activity"});j("PAYMENT_ACTIVITY")}}),f&&l.jsx(c("GeoMenuItem.react"),{label:c("BillingHubPaymentSettingsPrepaidFundsCardConstants").requestRefund,onClick:function(){return r()}})]})]})]}))}),o&&l.jsxs(c("GeoSection.react"),{children:[l.jsx("div",babelHelpers["extends"]({className:"x12wi22r"},{children:l.jsx(c("GeoListItem.react"),{description:q(h._(/*BTDS*/"Add these funds to your account by completing the payments before they expire.")),label:h._(/*BTDS*/"Pending funds")})})),l.jsx("div",babelHelpers["extends"]({className:"xz9dl7a x1xfsgkm"},{children:a.slice(0,e).map(function(a){return l.jsx(c("BillingHubPendingPaymentsTransactionItem.react"),{isBalanceSplit:!0,transactionItem:a},a.transactionID)})}))]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubPaymentSettingsBalanceSplitHowYouWillPaySection.react",["BillingCurrencyAmount","BillingHubPaymentSettingsBalanceSplitHowYouWillPaySection_billableAccount.graphql","BillingHubPaymentSettingsHowYouWillPayConstants","BillingMathUtils","BillingPaymentMethodDisplayUtils","CometImage.react","GeoBaseText.react","GeoColorSelectors","GeoHStack.react","GeoVStack.react","RelayHooks","getBillingHubPaymentMethodDisplayIcon","react","stylex","useGeoTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=d("GeoColorSelectors").selectStaticBackgroundColor({isMuted:!0,surface:"wash"}),m=d("GeoColorSelectors").selectStaticBackgroundColor({surface:"wash"}),n=h!==void 0?h:h=b("BillingHubPaymentSettingsBalanceSplitHowYouWillPaySection_billableAccount.graphql"),o={container:{kuDDbn:"xurb0ha",$$css:!0},numberIcon:{kGNEyG:"x6s0dn4",kB7OPa:"x9f619",k1xSpc:"x78zum5",kZKoxP:"x1gnnpzl",kjj79g:"xl56j7k",kETOaJ:"x1emribx",kVAEAm:"x1n2onr6",kzqmXN:"x1849jeq",$$css:!0},wrapper:{kLKAdn:"xyamay9",$$css:!0}};function a(a){var b,e,f,g=a.account;a=a.showHeading;a=a===void 0?!0:a;g=d("RelayHooks").useFragment(n,g);var h=c("useGeoTheme")();h=h.selectBorderRadius;h=h({context:"content"});b=(b=(b=((b=g==null?void 0:(b=g.billing_payment_account)==null?void 0:b.primary_funding_source)!=null?b:[])[0])==null?void 0:b.credential)!=null?b:null;e=(e=g==null?void 0:g.currency)!=null?e:"USD";e=d("BillingCurrencyAmount").createZero(e);var i=c("getBillingHubPaymentMethodDisplayIcon")(b);b=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(b);f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:g.prepay_balance))!=null?f:e;f=!f.isZero();g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:g.coupon_balance))!=null?g:e;e=!g.isZero();g=[];e&&g.push(k.jsx(p,{isOnlyOption:!1,label:c("BillingHubPaymentSettingsHowYouWillPayConstants").adCredits,order:g.length+1},g.length+1));f&&g.push(k.jsx(p,{isOnlyOption:!1,label:c("BillingHubPaymentSettingsHowYouWillPayConstants").funds,order:g.length+1},g.length+1));e=g.length===0;g.push(k.jsx(p,{icon:e?i:void 0,isOnlyOption:e,label:b,order:g.length+1},g.length+1));return k.jsxs(c("GeoVStack.react"),{xstyle:o.wrapper,children:[a&&k.jsx(c("GeoBaseText.react"),{color:"heading",size:"header4",children:c("BillingHubPaymentSettingsHowYouWillPayConstants").youllPayUsing}),k.jsx(c("GeoHStack.react"),{alignItems:"center",xstyle:[o.container,l,h],children:g})]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.icon,e=a.isOnlyOption,f=a.label;a=a.order;var g=c("useGeoTheme")();g=g.selectBorderRadius;g=g({context:"rounded"});return k.createElement("div",babelHelpers["extends"]({className:"xz9dl7a xsag5q8 xurb0ha x1sxyh0 xh8yej3 x1xm1mqw xu3j5b3 xol2nv"},{key:"optionSection"+a}),k.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[e&&b!=null?k.jsx("div",{children:k.jsx(c("CometImage.react"),{height:d("BillingMathUtils").safeDivide(b.height,(e=b.scale)!=null?e:1),src:b.uri,width:d("BillingMathUtils").safeDivide(b.width,(e=b.scale)!=null?e:1)})}):k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(o.numberIcon,m,g),{children:k.jsx(c("GeoBaseText.react"),{color:"heading",size:"header4",children:a})})),k.jsx(c("GeoBaseText.react"),{color:"heading",size:"value",children:f})]}))}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubPaymentSettingsPrepaidFundsCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsPrepaidFundsCard_billableAccount",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:b,storageKey:null},a,{alias:null,args:null,concreteType:"XFBBillingBalanceInfoResult",kind:"LinkedField",name:"balance_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_prepaid_balance",storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"refund_status",storageKey:null},{args:null,kind:"FragmentSpread",name:"useBillingRequestRefundStatus_info"}],type:"AdAccount",abstractKey:null},{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"useBillingHubPendingPayments_account"}]}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingPreChargeStoredBalanceUtils",["BillingCurrencyAmount","BillingPreChargeStoredBalanceUtilsMutation.graphql","BillingPreChargeStoredBalanceUtils_account.graphql","BillingWizardRootUPLogger","CometRelay","asyncToGeneratorRuntime","getEntrypointForGraphQL","react","useBillingRelay"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=j||d("react");var k=e.useEffect,l=e.useState,m=h!==void 0?h:h=b("BillingPreChargeStoredBalanceUtils_account.graphql"),n=i!==void 0?i:i=b("BillingPreChargeStoredBalanceUtilsMutation.graphql");function o(a){a=d("CometRelay").readInlineData(m,a);var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance);a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_balance);return(b==null?void 0:b.isZero())===!1&&(a==null?void 0:a.isZero())===!1?!0:!1}function p(a,b,c,d,e,f){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,d,e,f,g){g=g.commitMutation;var h={billable_account_payment_legacy_account_id:a,upl_logging_data:babelHelpers["extends"]({},c("BillingWizardRootUPLogger")==null?void 0:c("BillingWizardRootUPLogger").getLoggingData("BillingPreChargeStoredBalanceUtilsMutation"))};b={billingEntryPoint:b,fullBudgetPaymentAmount:d==null?void 0:d.asGraphQLInput(),input:h,paymentAccountID:a,sharedStoredBalanceID:e,surface:f};try{yield g({mutation:n,mutationName:n.params.name,variables:b},{event_context:"charge_stored_balance_before_pay_now"})}catch(a){}});return q.apply(this,arguments)}function a(a,b,d,e,f){var g=l(o(a)),h=g[0],i=g[1],j=c("useBillingRelay")(),m=c("getEntrypointForGraphQL")(c("BillingWizardRootUPLogger")==null?void 0:(g=c("BillingWizardRootUPLogger").getLoggingData(""))==null?void 0:g.entry_point);k(function(){o(a)?void p(b,m,d,e,f,j).then(function(){i(!1)}):i(!1)});return h}g.checkNeedsCharge=o;g.preCharge=p;g.useBillingPreChargeStoredBalance=a}),98);
-----
useBillingUpdateSpendLimitMutation.graphql",["useBillingUpdateSpendLimitMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],e=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:d,args:null,argumentDefinitions:[]}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useBillingUpdateSpendLimitMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountEditSpendLimitResponse",kind:"LinkedField",name:"billable_account_edit_spend_limit",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:e,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useBillingUpdateSpendLimitMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountEditSpendLimitResponse",kind:"LinkedField",name:"billable_account_edit_spend_limit",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:d,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("useBillingUpdateSpendLimitMutation_facebookRelayOperation"),metadata:{},name:"useBillingUpdateSpendLimitMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsDailySpendLimitCard.react",["fbt","ix","BillingCurrencyAmount","BillingError","BillingHubCard.react","BillingHubPaymentSettingsDailySpendLimitCardContent","BillingHubPaymentSettingsDailySpendLimitCard_billableAccount.graphql","GeoBaseText.react","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoMeter.react","GeoSection.react","GeoVStack.react","RelayHooks","fbicon","react","requireDeferred"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=c("requireDeferred")("BillingHubPaymentSettingsDailySpendLimitActionSheet.react").__setRef("BillingHubPaymentSettingsDailySpendLimitCard.react"),n=j!==void 0?j:j=b("BillingHubPaymentSettingsDailySpendLimitCard_billableAccount.graphql");function a(a){a=a.account;a=d("RelayHooks").useFragment(n,a);a=a==null?void 0:a.spending_info;var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.spend_limit_currency_amount),e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.amount_spent_currency_amount),f=!1,g=null;if(b==null||a==null)f=!0;else{if(e==null)throw new(c("BillingError"))("amount spent is null","server side unknown error",{event_action:"unknown",event_context:"wizard",event_side:"client_side"},{action:"unknown",document_name:"BillingHubPaymentSettingsDailySpendLimitCard"},"critical_error");a=b.percentageOf(e);var j=b.subtract(e);e=l.jsxs(l.Fragment,{children:[h._(/*BTDS*/"{amount spent} spent",[h._param("amount spent",e.toString())])," ",h._(/*BTDS*/"| {spend limit} spending limit",[h._param("spend limit",b.toString())])]});g=l.jsxs(c("GeoVStack.react"),{children:[l.jsx(c("GeoHeading.react"),{level:3,children:c("BillingHubPaymentSettingsDailySpendLimitCardContent").remainingAmount(j.toString())}),l.jsx(c("GeoMeter.react"),{isLabelHidden:!0,label:"Remaining amount in spend limit",value:a/100}),l.jsxs(c("GeoHStack.react"),{alignItems:"start",children:[l.jsx(c("GeoIcon.react"),{color:"success",icon:d("fbicon")._(i("505499"),16)}),e]}),l.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:h._(/*BTDS*/"{=m0}",[h._implicitParam("=m0",l.jsx("b",{children:h._(/*BTDS*/"Resets: daily")}))])})]})}return l.jsx(c("BillingHubCard.react"),{action:{label:"",popoverProps:{enrollSpentLimit:f},popoverResource:m},pageComponentName:"daily_spend_limit",title:c("BillingHubPaymentSettingsDailySpendLimitCardContent").title,children:l.jsx(c("GeoSection.react"),{children:g})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubPaymentSettingsDailySpendLimitCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsDailySpendLimitCard_billableAccount",selections:[{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingCurrencyAmountUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){if(a!=null&&b!=null)return{do_not_use_currency:b,do_not_use_raw_amount:a,isInput:!0}}function b(a,b){if(a!=null&&b!=null)return{do_not_use_amount_with_offset:a,do_not_use_currency:b,isInput:!0}}f.getCurrencyAmountInputFromRaw=a;f.getCurrencyAmountInputFromOffset=b}),66);
-----
BillingHubAddBusinessPaymentMethodToBREModal_bre.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubAddBusinessPaymentMethodToBREModal_bre",selections:[{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"eligible_business_funding_sources",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"getBillingHubBREBusinessPaymentMethod_pmDetails",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[a],storageKey:null},{kind:"InlineDataFragmentSpread",name:"getBillingHubBREStoredBalance_values",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[b,{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null},{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},b],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],args:null,argumentDefinitions:[]},{kind:"InlineDataFragmentSpread",name:"getBillingHubBRECreditCard_values",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_primary",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_editable",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"card_association",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_expired",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],args:null,argumentDefinitions:[]}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"BillingResponsibleEntity",abstractKey:null}}();e.exports=a}),null);
-----
getBillingHubBREStoredBalance",["BillingCurrencyAmount","BillingPaymentMethodDisplay","RelayModern","getBillingHubBREStoredBalance_values.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("getBillingHubBREStoredBalance_values.graphql");function a(a){var b,c,e;a=d("RelayModern").readInlineData(i,a);b=a==null?void 0:(b=a.credential)==null?void 0:(b=b.balance_amount)==null?void 0:b.currency;c=a==null?void 0:(c=a.credential)==null?void 0:(c=c.balance_amount)==null?void 0:c.currency_name;if((a==null?void 0:(e=a.credential)==null?void 0:e.__typename)!=="StoredBalance"||(a==null?void 0:(e=a.credential)==null?void 0:e.stored_balance_type)!=="BUSINESS_LEVEL"||b==null)return null;e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(e=a.credential)==null?void 0:e.balance_amount))!=null?e:d("BillingCurrencyAmount").createZero(b);return{headline:d("BillingPaymentMethodDisplay").getSharedStoredBalanceDisplay(c),paymentMethodID:(a=a==null?void 0:(c=a.credential)==null?void 0:c.id)!=null?a:null,secondaryText:e.toString(),currency:b}}g["default"]=a}),98);
-----
BillingHubBRECreateBREModal_business.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubBRECreateBREModal_business",selections:[{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organizations",plural:!0,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"getBillingHubBREBusinessPaymentMethod_pmDetails",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[b],storageKey:null},{kind:"InlineDataFragmentSpread",name:"getBillingHubBREStoredBalance_values",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[a,b,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null},{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},c],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],args:null,argumentDefinitions:[]},{kind:"InlineDataFragmentSpread",name:"getBillingHubBRECreditCard_values",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_primary",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_editable",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[b,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"card_association",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_expired",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],args:null,argumentDefinitions:[]}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"AdBusiness",abstractKey:null}}();e.exports=a}),null);
-----
BillingHubBillingResponsibleEntityDetailsView.react",["fbt","BillingCurrencyAmount","BillingHubBillingResponsibleEntityDetailsView_billingResponsibleEntity.graphql","BillingHubCard.react","BillingHubHistoryTooltip.react","GeoBaseText.react","GeoHStack.react","GeoHeading.react","GeoSection.react","GeoTooltip.react","GeoVStack.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubBillingResponsibleEntityDetailsView_billingResponsibleEntity.graphql");function a(a){var b,e,f,g=a.billingResponsibleEntity;a=a.entitlementID;g=d("RelayHooks").useFragment(l,g);b=d("BillingCurrencyAmount").createZero((b=g==null?void 0:g.currency)!=null?b:"USD").format();e=(e=g==null?void 0:(e=g.entitlement)==null?void 0:(e=e.billing_threshold)==null?void 0:e.formatted_amount)!=null?e:b;f=(f=g==null?void 0:(f=g.entitlement)==null?void 0:(f=f.credit_limit)==null?void 0:f.formatted_amount)!=null?f:b;g=(g=g==null?void 0:(g=g.entitlement)==null?void 0:(g=g.balance)==null?void 0:g.formatted_amount)!=null?g:b;return k.jsx(c("BillingHubCard.react"),{pageComponentName:"legal_business_information",title:h._("Entitlement details"),children:k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",children:[k.jsx("div",{children:k.jsxs(c("GeoVStack.react"),{context:"content",relation:"heading",children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"accent",children:"Entitlement ID"}),k.jsx(c("GeoHeading.react"),{display:"truncate",level:1,children:a})]})}),k.jsx("div",{children:k.jsxs(c("GeoHStack.react"),{context:"container",justifyContent:"end",relation:"section",children:[k.jsxs(c("GeoVStack.react"),{alignItems:"start",context:"content",relation:"heading",children:[k.jsxs(c("GeoHStack.react"),{context:"component",relation:"related",children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"accent",children:"Threshold"}),k.jsx(c("BillingHubHistoryTooltip.react"),{text:"tooltip"})]}),k.jsxs(c("GeoHStack.react"),{context:"component",relation:"related",children:[k.jsx(c("GeoHeading.react"),{level:1,children:e}),k.jsx(c("GeoTooltip.react"),{content:"caution!"})]})]}),k.jsxs(c("GeoVStack.react"),{alignItems:"start",context:"content",relation:"heading",children:[k.jsxs(c("GeoHStack.react"),{context:"component",relation:"related",children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"accent",children:"Credit limit"}),k.jsx(c("BillingHubHistoryTooltip.react"),{text:"tooltip"})]}),k.jsx(c("GeoHeading.react"),{level:1,children:f})]}),k.jsxs(c("GeoVStack.react"),{alignItems:"start",context:"content",relation:"heading",children:[k.jsxs(c("GeoHStack.react"),{context:"component",relation:"related",children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"accent",children:"Balance"}),k.jsx(c("BillingHubHistoryTooltip.react"),{text:"tooltip"})]}),k.jsx(c("GeoHeading.react"),{level:1,children:g})]})]})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingCampaignDSLAuthScreen.react",["BillingCampaignDSLAuthScreenQuery.graphql","BillingCurrencyAmount","BillingRiskCredentialRow.react","BillingRiskVerificationConstants","BillingRowContainer.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState,l=h!==void 0?h:h=b("BillingCampaignDSLAuthScreenQuery.graphql");function a(a){var b=a.handleSubmitCard,e=a.preloadedQuery;a=a.wrapperProps;var f=c("useBillingWizardComponents")(),g=f.Row,h=f.Text;f=f.Wrapper;e=d("RelayHooks").usePreloadedQuery(l,e);var i=k(""),m=i[0],n=i[1];e=(i=e==null?void 0:(i=e.billable_account_by_payment_account)==null?void 0:(e=i.billing_payment_account)==null?void 0:e.billing_payment_methods)!=null?i:[];i=function(){return b(m)};var o=!0,p=e==null?void 0:e.map(function(a){var b,d=a==null?void 0:a.credential;a=a==null?void 0:a.usability;if((d==null?void 0:d.__typename)!=="ExternalCreditCard"||(d==null?void 0:(b=d.campaign_dsl_verification_eligibility_info)==null?void 0:b.eligible_type)===null)return null;var e=(b=d==null?void 0:d.credential_id)!=null?b:"";b=o===!0&&m==="";var f=e===m;b&&(n(e),f=!0);o=!1;return j.jsx(g,{justify:"space-between",marginBottom:8,onPress:function(){return n(e)},onPressType:"SELECT",selected:f,children:j.jsx(c("BillingRiskCredentialRow.react"),{item:d,usability:a})},e)});e=((e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((e=e[0])==null?void 0:(e=e.credential)==null?void 0:e.sdc_auth_amount_localized))!=null?e:d("BillingCurrencyAmount").getFromUserInput("1","USD")).toString();return j.jsx(f,babelHelpers["extends"]({},a,{primaryButton:{action:i,label:c("BillingRiskVerificationConstants").authorizeButton},title:c("BillingRiskVerificationConstants").header,children:j.jsxs(c("BillingRowContainer.react"),{children:[j.jsx(g,{marginBottom:8,children:j.jsx(h,{body:c("BillingRiskVerificationConstants").riskAuthBody((f=e)!=null?f:""),bodyColor:"secondary",headline:c("BillingRiskVerificationConstants").authorizeHeader})}),p]})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=l;g.BillingCampaignDSLAuthScreen=a}),98);
-----
BillingCampaignDSLAuthScreenQuery.graphql",["BillingCampaignDSLAuthScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"billingEntryPoint"},c={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},d={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},e=[d],f=[{kind:"Literal",name:"allowlist",value:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION","UNVERIFIABLE"]},{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"}],g={alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null};d=[d,{kind:"Literal",name:"show_default_amount",value:!0}];var j=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],k={alias:null,args:null,concreteType:"XFBCampaignDslCredentialEligibilityInfo",kind:"LinkedField",name:"campaign_dsl_verification_eligibility_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"eligible_type",storageKey:null}],storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},n={alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:"billing_icons(limit:1)"};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingCampaignDSLAuthScreenQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:f,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[h,{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BillingRiskCredentialRow_item"},i,{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:j,args:null,argumentDefinitions:[]}],storageKey:null},k],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingCampaignDSLAuthScreenQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[h,{alias:null,args:f,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[h,l,{kind:"InlineFragment",selections:[i,{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:j,storageKey:null},k,{kind:"InlineFragment",selections:[{kind:"InlineFragment",selections:[m,{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},n],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},m,{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},n],type:"DirectDebit",abstractKey:null}],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null},l],storageKey:null},l],storageKey:null}]},params:{id:b("BillingCampaignDSLAuthScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingCampaignDSLAuthScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingHubMobilePaymentSettingsPaymentThresholdCard.react",["fbt","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubMobileCard.react","BillingHubMobilePaymentSettingsPaymentThresholdCard_billableAccount.graphql","BillingManageDateThresholdConstants","BillingPaymentModeUtils","QE2Logger","RelayHooks","react","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubMobilePaymentSettingsPaymentThresholdCard_billableAccount.graphql");function a(a){var b,e=a.account;a=a.hideBorder;var f=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),g=f.creditLineType;f=f.hasBillingWritePermission;var i=d("RelayHooks").useFragment(l,e);e=((e=i==null?void 0:(e=i.billing_payment_account)==null?void 0:e.primary_funding_source)!=null?e:[])[0];e=(e==null?void 0:e.usability)==="USABLE"&&(e==null?void 0:e.credential)!=null;var j=i==null?void 0:i.account_status,m=i==null?void 0:i.next_bill_date;b=d("BillingPaymentModeUtils").isPrepayOnlyAccount((b=i==null?void 0:i.payment_modes)!=null?b:[]);e=j!=="CLOSED"&&e&&g===null&&m!=null&&!b;var n=c("useBillingWizardForMobileHub")();g=function(){var a=(i==null?void 0:i.legacy_account_id)||"";d("QE2Logger").logExposureForPaymentAccountID("billing_payment_threshold_wizard_universe",a);n({displayAllFields:!0,wizardName:"MANAGE_BILLING_DATE_THRESHOLD"},{eventContext:"update_billing_threshold",targetName:"update_billing_threshold_button"})};b=(m=i==null?void 0:i.currency)!=null?m:"USD";m=(m=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:i.billing_threshold_currency_amount))!=null?m:d("BillingCurrencyAmount").createZero(b);b=c("BillingManageDateThresholdConstants").mobileThresholdDescription(m.toString());return e?k.jsx(c("BillingHubMobileCard.react"),{action:j!=="DISABLED"&&f?{label:h._("u7f16u8f91"),onTap:g}:void 0,description:b,hideBorder:a,title:c("BillingManageDateThresholdConstants").paymentThresholdHeadline}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubMobilePaymentSettingsAccountSpendLimitCard.react",["fbt","BillingCurrencyAmount","BillingHubAccountSpendLimitCardContent","BillingHubBillableAccountContext","BillingHubMobileAccountSpendLimitProgressBar.react","BillingHubMobileCard.react","BillingHubMobileNavigationContextV2","BillingHubMobilePaymentSettingsAccountSpendLimitCard_billableAccount.graphql","BillingHubQEContext","BillingPaymentModeUtils","RelayHooks","react","useBillingSurfaceLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubMobilePaymentSettingsAccountSpendLimitCard_billableAccount.graphql");function a(a){var b,e,f,g,i=a.account;a=a.hideBorder;var j=c("useBillingSurfaceLogger")(),m=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();m=m.hasBillingWritePermission;var n=d("BillingHubMobileNavigationContextV2").useBillingHubMobileNavigationV2(),o=n.goToPage;n=d("BillingHubQEContext").useBillingQE();n=n.billing_content_asl_h2_2024.asl_to_tab_v1.read();i=d("RelayHooks").useFragment(l,i);b=(b=i==null?void 0:i.currency)!=null?b:"USD";b=d("BillingCurrencyAmount").createZero(b);e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(e=i.spending_info)==null?void 0:e.spend_limit_currency_amount))!=null?e:b;var p=!e.isZero();f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(f=i.spending_info)==null?void 0:f.amount_spent_currency_amount))!=null?f:b;b={label:h._("u524du5f80u8d26u6237u82b1u8d39u9650u989du9875u9762"),onTap:function(){j.logClickEvent({event_context:"navigate_tab"}),o({isLimitSet:p,page:"ACCOUNT_SPEND_LIMIT"})}};var q=p?void 0:h._("u672au8bbeu7f6e");f=p?k.jsx(c("BillingHubMobileAccountSpendLimitProgressBar.react"),{amountSpent:f,spendLimit:e,updateAslToTab:n}):void 0;e=d("BillingPaymentModeUtils").isPrepayOnlyAccount((e=i==null?void 0:i.payment_modes)!=null?e:[]);g=d("BillingPaymentModeUtils").isNewUserAccount((g=i==null?void 0:i.payment_modes)!=null?g:[]);return g?null:k.jsx(c("BillingHubMobileCard.react"),{action:m&&(!e||(i==null?void 0:i.is_using_biz_sb)===!0)?b:void 0,description:q,hideBorder:a,testid:void 0,title:c("BillingHubAccountSpendLimitCardContent").title(n),children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubMobilePaymentSettingsAccountSpendLimitCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubMobilePaymentSettingsAccountSpendLimitCard_billableAccount",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:b,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_using_biz_sb",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubMobilePaymentSettingsPaymentMethodsList.react",["BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubMobileButton.react","BillingHubMobileCreditCardItem.react","BillingHubMobileDirectDebitItem.react","BillingHubMobileExtendedCreditItem.react","BillingHubMobileLPMItem.react","BillingHubMobilePayPalItem.react","BillingHubMobilePaymentSettingsPaymentMethodsList_billableAccount.graphql","BillingHubMobileText.react","BillingHubPaymentSettingsPaymentMethodsContent","BillingPaymentModeUtils","RelayHooks","react","useBillingHubPaymentMethods","useBillingIndiaEMandateIncreaseStatus","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingHubMobilePaymentSettingsPaymentMethodsList_billableAccount.graphql");function a(a){var b,e=a.billableAccount,f=a.onClickPaymentMethod,g=c("useBillingWizardForMobileHub")();a=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();a=a.hasBillingWritePermission;e=d("RelayHooks").useFragment(k,e);var h=c("useBillingHubPaymentMethods")(e),i={accountEMandateConfigAmount:d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.india_emandate_default_config_amount),isAccountReauthRestricted:(b=e==null?void 0:e.is_reauth_restricted)!=null?b:!1,showPrepayOnPostpayUpdates:d("BillingPaymentModeUtils").isHybridAccount((b=e==null?void 0:e.payment_modes)!=null?b:[])};b=c("useBillingIndiaEMandateIncreaseStatus")(e);var l=b.eligibleForEMandateIncrease;e=e==null?void 0:(b=e.payment_settings_details)==null?void 0:b.add_pm_action;var m=(b=e==null?void 0:(b=e.wizard_props)==null?void 0:b.wizard_name)!=null?b:"ADD_PM";b=(b=e==null?void 0:e.label)!=null?b:c("BillingHubPaymentSettingsPaymentMethodsContent").addPaymentMethodActionLabel;e=!a||((a=e==null?void 0:e.is_disabled)!=null?a:!1);var n=h.filter(function(a){return a.typename==="LPMCredential"}).length;a=h.map(function(a,b,d){d=b!==d.length-1;if(a.typename==="ExternalCreditCard")return j.jsx(c("BillingHubMobileCreditCardItem.react"),{creditCardDetails:a.fragmentRef,creditCardItemAdditionalProps:i,eligibleForEMandateIncrease:l,onClick:function(){return f(a)},showBottomDivider:d},"BillingHubCreditCardItem_"+b);else if(a.typename==="DirectDebit")return j.jsx(c("BillingHubMobileDirectDebitItem.react"),{directDebitDetails:a.fragmentRef,onClick:function(){return f(a)},showBottomDivider:d},"BillingHubDirectDebitItem_"+b);else if(a.typename==="MonthlyInvoicing"||a.typename==="ExtendedCredit"||a.typename==="SharedMonthlyInvoicing")return j.jsx(c("BillingHubMobileExtendedCreditItem.react"),{extendedCreditDetails:a.fragmentRef,onClick:function(){return f(a)},showBottomDivider:d},"BillingHubExtendedCreditItem_"+b);else if(a.typename==="PaymentPaypalBillingAgreement")return j.jsx(c("BillingHubMobilePayPalItem.react"),{onClick:function(){return f(a)},payPalDetails:a.fragmentRef,showBottomDivider:d},"BillingHubPayPalItem"+b);else if(a.typename==="LPMCredential")return j.jsx(c("BillingHubMobileLPMItem.react"),{credentialDetails:a.fragmentRef,hasMultipleLPMs:n>1,onClick:function(){return f(a)},showBottomDivider:d},"BillingHubLPMItem"+b);return null});a=a.filter(function(a){return a!=null});h=j.jsx(c("BillingHubMobileButton.react"),{disabled:e,label:b,onClick:function(){return g({wizardName:m},{eventContext:"add_payment_method",targetName:"add_payment_method_button"})},reduceEmphasis:!0,size:"large",testid:void 0});return j.jsxs(j.Fragment,{children:[a.length>0?j.jsx("div",{className:"x1xmf6yo",children:a}):j.jsx("div",{className:"x1yztbdb",children:j.jsx(c("BillingHubMobileText.react"),{body:c("BillingHubPaymentSettingsPaymentMethodsContent").noPaymentMethodsMessage,bodyColor:"secondary",level:3})}),h]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubMobilePaymentSettingsPaymentMethodsList_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubMobilePaymentSettingsPaymentMethodsList_billableAccount",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"india_emandate_default_config_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_reauth_restricted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null}],type:"AdAccount",abstractKey:null},{args:null,kind:"FragmentSpread",name:"useBillingHubPaymentMethods_billableAccount"},{args:null,kind:"FragmentSpread",name:"useBillingIndiaEMandateIncreaseStatus_billableAccount"},{alias:null,args:null,concreteType:"XFBBillingHubPaymentSettingsDetails",kind:"LinkedField",name:"payment_settings_details",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillingHubPaymentSettingsAction",kind:"LinkedField",name:"add_pm_action",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_disabled",storageKey:null},{alias:null,args:null,concreteType:"XFBBillingHubPaymentSettingsWizardProps",kind:"LinkedField",name:"wizard_props",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"wizard_name",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingHubMobileAutoReloadCard.react",["fbt","BillingAutoReloadConstants","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubMobileAutoReloadCard_account.graphql","BillingHubMobileCard.react","BillingPaymentModeUtils","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubMobileAutoReloadCard_account.graphql");function a(a){var b,e,f,g,i,j=a.account;a=a.hideBorder;j=d("RelayHooks").useFragment(l,j);var n=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();n=n.hasBillingWritePermission;b=(b=j==null?void 0:(b=j.billing_payment_account)==null?void 0:b.supports_recurring)!=null?b:[];b=b.map(function(a){return m(a.credential)});e=m(j==null?void 0:(e=j.auto_reload_info)==null?void 0:e.auto_reload_credential);var o=null;e!=null&&b.includes(e)?o=e:b.length>0&&(o=b[0]);e=j==null?void 0:(e=j.billing_payment_account)==null?void 0:(b=e.supports_recurring)==null?void 0:b.find(function(a){return m(a.credential)===o});b=e==null?void 0:(b=e.credential)==null?void 0:b.credential_type;e=e==null?void 0:(e=e.credential)==null?void 0:e.payment_provider;f=d("BillingPaymentModeUtils").supportsAutoReload((f=j==null?void 0:j.payment_modes)!=null?f:[])&&o!=null;g=(j==null?void 0:(g=j.auto_reload_info)==null?void 0:g.auto_reload_status)==="ENABLED";i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:(i=j.auto_reload_info)==null?void 0:i.auto_reload_trigger_threshold);j=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:(j=j.auto_reload_info)==null?void 0:j.auto_reload_amount);i=h._("u9884u5145u503cu91d1u989du4f4eu81f3u6216u4f4eu4e8e{reload amount}u65f6u81eau52a8u5145u503c{reload threshold}u3002",[h._param("reload amount",((j=j)!=null?j:"0").toString()),h._param("reload threshold",((j=i)!=null?j:"0").toString())]);j={eventContext:"auto_reload_update",label:h._("u7f16u8f91"),targetName:"auto_reload_update_button",wizardProps:{jsonProps:JSON.stringify({payment_method_type:(j=b)!=null?j:void 0,provider_id:(b=e)!=null?b:void 0,should_turn_on:!0}),paymentMethodID:o,wizardName:"AUTO_RELOAD"}};return!f?null:k.jsx(c("BillingHubMobileCard.react"),{action:n?j:void 0,description:g?i:c("BillingAutoReloadConstants").autoReloadOffBody,hideBorder:a,testid:void 0,title:g?c("BillingAutoReloadConstants").autoReloadOnHeadline:c("BillingAutoReloadConstants").autoReloadOffHeadline})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b;return(b=a==null?void 0:a.credential_id)!=null?b:a==null?void 0:a.id}g["default"]=a}),226);
-----
BillingHubMobilePaymentSettingsBalanceSection.react",["fbt","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubMobileButton.react","BillingHubMobileCardRow.react","BillingHubMobileNavigationContextV2","BillingHubMobilePaymentSettingsBalanceSection.graphql","BillingHubMobileText.react","BillingHubPaymentSettingsBalanceCardConstants","BillingPaymentModeUtils","RelayHooks","react","useBillableAccountBalance","useBillingHubPaymentDue","useBillingHubPendingPayments","useBillingRequestRefundStatus","useBillingSurfaceLogger","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={contentHeadline:{marginBottom:"x9a3u73",$$css:!0}},m=i!==void 0?i:i=b("BillingHubMobilePaymentSettingsBalanceSection.graphql");function a(a){var b,e,f;a=a.account;var g=c("useBillingSurfaceLogger")(),i=d("RelayHooks").useFragment(m,a);a=c("useBillableAccountBalance")(i);var j=a.balance,n=a.isStoredBalance;a=a.wizardName;var o=(i==null?void 0:i.is_using_biz_sb)===!0;b=(b=i==null?void 0:i.is_using_ec)!=null?b:!1;var p=c("useBillingWizardForMobileHub")(),q=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),r=q.hasBillingWritePermission;q=q.layout;var s=d("BillingHubMobileNavigationContextV2").useBillingHubMobileNavigationV2(),t=s.goToPage,u=a;s=!1;var v=c("BillingHubPaymentSettingsBalanceCardConstants").payNow;if(u==="PAY_NOW"){var w;u=(w=i==null?void 0:(w=i.payment_settings_details)==null?void 0:(w=w.pay_now_action)==null?void 0:(w=w.wizard_props)==null?void 0:w.wizard_name)!=null?w:a;s=(w=i==null?void 0:(w=i.payment_settings_details)==null?void 0:(a=w.pay_now_action)==null?void 0:a.is_disabled)!=null?w:!1;v=(a=i==null?void 0:(a=i.payment_settings_details)==null?void 0:(w=a.pay_now_action)==null?void 0:w.label)!=null?a:c("BillingHubPaymentSettingsBalanceCardConstants").payNow}w=c("useBillingHubPendingPayments")(i);a=w.transactionCount;var x=w.transactionDetails,y=(w=i==null?void 0:i.refund_status)!=null?w:"BILLING_PREPAY_NO_REFUND_STATUS",z=i==null?void 0:i.refund_method;w=c("useBillingRequestRefundStatus")(i);var A=w.shouldShow;w=a!==0?c("BillingHubPaymentSettingsBalanceCardConstants").pendingPayments(a):void 0;var B=function(){var a;g.logClickEvent({event_context:"navigate_tab"});t({formattedPrepayBalance:n?j.toString():d("BillingCurrencyAmount").createZero((a=i==null?void 0:i.currency)!=null?a:"USD").toString(),page:"STORED_BALANCE_DETAILS",refundMethod:z,refundStatus:y,shouldShow:A,transactionDetails:x,wizardProps:u})},C=c("useBillingHubPaymentDue")(i);e=(e=i==null?void 0:i.next_bill_date)!=null?e:null;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:i.billing_threshold_currency_amount))==null?void 0:f.toString();C=n?void 0:c("BillingHubPaymentSettingsBalanceCardConstants").postpayDescription(j.isZero(),C,e,f);f=!j.isZero()&&(!n&&d("BillingPaymentModeUtils").isHybridAccount((e=i==null?void 0:i.payment_modes)!=null?e:[])||q==="CREATOR_MARKETPLACE");q=C!=null&&w!=null?k.jsxs(k.Fragment,{children:[C,k.jsx("br",{}),w]}):(e=C)!=null?e:w;var D=n&&!b;e=(i==null?void 0:i.application_type)==="WHATSAPP_SMB"&&n&&(i==null?void 0:i.waba_mm_limit_overfund)===!0&&(i==null?void 0:(C=i.billable_account_tax_info)==null?void 0:C.business_country_code)==="ID";w=!D&&(i==null?void 0:i.can_pay_now)!==!0||o||e;b=r&&!o&&(D||a!==0)&&!e?B:void 0;C=f?k.jsxs("div",{children:[j.toString(),k.jsx("div",{className:"x1rg5ohu x1e558r4",children:k.jsx(c("BillingHubMobileText.react"),{meta:h._("+ u7a0e")})})]}):j.toString();return k.jsxs("div",{className:"xyamay9",children:[k.jsx(c("BillingHubMobileCardRow.react"),{align:"start",marginBottom:w?0:16,onPress:b,children:k.jsx(c("BillingHubMobileText.react"),{body:q,bodyColor:"secondary",bodyLevel:3,headline:C,headlineXStyle:q==null?null:l.contentHeadline,level:1})}),!w&&k.jsx(c("BillingHubMobileButton.react"),{disabled:!r||s,label:D?c("BillingHubPaymentSettingsBalanceCardConstants").addFunds:v,onClick:function(){return p({wizardName:u},{eventContext:D?"add_funds":"pay_now_balance",targetName:D?"add_funds_button":"pay_now_balance_button"})},reduceEmphasis:D,testid:void 0,type:"primary"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubMobilePaymentSettingsAdCreditsCard.react",["ix","BillingAdCreditConstants","BillingAdCreditUtils","BillingCurrencyAmount","BillingHubMobileCard.react","BillingHubMobileCardRow.react","BillingHubMobileNavigationContextV2","BillingHubMobilePaymentSettingsAdCreditsCard_billableAccount.graphql","BillingHubMobileText.react","CometImage.react","RelayHooks","react","useBillingSurfaceLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubMobilePaymentSettingsAdCreditsCard_billableAccount.graphql");function a(a){var b,e,f,g,i,j=a.account;a=a.hideBorder;var m=c("useBillingSurfaceLogger")();j=d("RelayHooks").useFragment(l,j);var n=d("BillingHubMobileNavigationContextV2").useBillingHubMobileNavigationV2(),o=n.goToPage;n=k.jsx(c("CometImage.react"),{src:h("1507321")});b=d("BillingCurrencyAmount").createZero((b=j==null?void 0:j.currency)!=null?b:"USD");e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:j.coupon_balance))!=null?e:b;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:j.account_level_coupon_balance))!=null?f:b;g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:j.campaign_level_coupon_balance))!=null?g:b;var p=d("BillingAdCreditUtils").useOrganizeAdCredits(j==null?void 0:j.billing_payment_account);b=(b=p==null?void 0:p.campaignLevelCredits)!=null?b:[];b=b.length>0;i=((i=p==null?void 0:p.allAdCredits)!=null?i:[]).length>0;var q=((j=j==null?void 0:(j=j.ad_campaign_groups)==null?void 0:j.count)!=null?j:0)>0;j=k.jsxs(c("BillingHubMobileCardRow.react"),{align:"start",children:[k.jsx("div",{className:"x1emribx",children:n}),k.jsx(c("BillingHubMobileText.react"),{headline:e.toString()})]});e=k.jsxs(c("BillingHubMobileCardRow.react"),{align:"start",borderBottom:!0,marginBottom:8,children:[k.jsx("div",{className:"x1emribx",children:n}),k.jsx(c("BillingHubMobileText.react"),{headline:f.toString(),meta:c("BillingAdCreditConstants").assignedToAccount})]});f=k.jsxs(c("BillingHubMobileCardRow.react"),{align:"start",children:[k.jsx("div",{className:"x1emribx",children:n}),k.jsx(c("BillingHubMobileText.react"),{headline:g.toString(),meta:c("BillingAdCreditConstants").assignedToCampaigns})]});n=p!=null?{label:c("BillingAdCreditConstants").accessibilityLabelSeeCouponDetails,onTap:function(){m.logClickEvent({event_context:"navigate_tab"}),o({hasCampaigns:q,organizedAdCredits:p,page:"AD_CREDITS_DETAILS"})}}:void 0;return i?k.jsx(c("BillingHubMobileCard.react"),{action:n,chevronInHeadline:!0,description:c("BillingAdCreditConstants").description,hideBorder:a,title:c("BillingAdCreditConstants").title,children:k.jsxs("div",{className:"x1sy10c2",children:[!b&&j,b&&e,b&&f]})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubMobilePaymentSettingsAdCreditsCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubMobilePaymentSettingsAdCreditsCard_billableAccount",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:b,storageKey:null},a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"campaign_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingAdCreditUtils"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubMobileAccountSpendLimitPage.react",["fbt","ix","BillingCurrencyAmount","BillingHubAccountSpendLimitCardContent","BillingHubBillableAccountContext","BillingHubMobileAccountSpendLimitPageQuery.graphql","BillingHubMobileAccountSpendLimitProgressBar.react","BillingHubMobileBottomSheet.react","BillingHubMobileCard.react","BillingHubMobileListCell.react","BillingHubMobileText.react","BillingHubQEContext","BillingPaymentModeUtils","CometImage.react","CometLink.react","RelayHooks","react","stylex","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n={button:{borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",borderTopStyle:"x1ejq31n",borderEndStyle:"xd10rxx",borderBottomStyle:"x1sy0etr",borderStartStyle:"x17r0tee",display:"x78zum5",justifyContent:"xl56j7k",marginTop:"xw7yly9",paddingTop:"xz9dl7a",paddingEnd:"x4uap5",paddingBottom:"xsag5q8",paddingStart:"xkhd6sd",width:"xh8yej3",$$css:!0}},o={disabled:{opacity:"xbyyjgo",$$css:!0},primary:{backgroundColor:"xtvsq51",borderTopColor:"x2d6s2u",borderEndColor:"x1psm3us",borderBottomColor:"xs5wg7j",borderStartColor:"x1vit0d8",color:"xtk6v10",$$css:!0},secondary:{backgroundColor:"x1qhmfi1",borderTopColor:"xqmpxtq",borderEndColor:"x1kaaafe",borderBottomColor:"xdrs2t1",borderStartColor:"x1l7oz65",color:"x1dem4cn",$$css:!0}};function p(a){a=a.updateAslToTab;return m.jsxs(m.Fragment,{children:[m.jsx(c("BillingHubMobileText.react"),{body:c("BillingHubAccountSpendLimitCardContent").about(a),bodyColor:"secondary",level:4}),m.jsx(c("CometLink.react"),{href:"https://www.facebook.com/business/help/141820733085330?id=326963134374796&helpref=search&sr=1&query=account%20spending%20limit",children:m.jsx(c("BillingHubMobileText.react"),{body:c("BillingHubAccountSpendLimitCardContent").learnMore,bodyColor:"highlight",level:4})})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.isDisabled,d=a.isLimitSet,e=a.onClickForReset,f=a.onClickForUpdate;a=a.updateAslToTab;return d?m.jsx("button",{className:(k||(k=c("stylex")))(n.button,o.secondary,b&&o.disabled),"data-testid":void 0,disabled:b,onClick:e,children:m.jsx(c("BillingHubMobileText.react"),{body:c("BillingHubAccountSpendLimitCardContent").resetLimit,level:2})}):m.jsx("button",{className:(k||(k=c("stylex")))(n.button,o.primary,b&&o.disabled),"data-testid":void 0,disabled:b,onClick:f,children:m.jsx(c("BillingHubMobileText.react"),{body:c("BillingHubAccountSpendLimitCardContent").setLimit(a),bodyColor:"white",level:2})})}q.displayName=q.name+" [from "+f.id+"]";var r=j!==void 0?j:j=b("BillingHubMobileAccountSpendLimitPageQuery.graphql");function a(a){var b,e,f,g,j=a.props,k=j.setShowEditAction;j=j.showEditAction;a=a.queries;a=d("RelayHooks").usePreloadedQuery(r,a.account_spend_limit_query);var l=d("BillingHubQEContext").useBillingQE();l=l.billing_content_asl_h2_2024.asl_to_tab_v1.read();b=(b=a==null?void 0:(b=a.billable_account_by_asset_id)==null?void 0:b.currency)!=null?b:"USD";b=d("BillingCurrencyAmount").createZero(b);e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(e=a.billable_account_by_asset_id)==null?void 0:(e=e.spending_info)==null?void 0:e.spend_limit_currency_amount))!=null?e:b;var n=!e.isZero();f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(f=a.billable_account_by_asset_id)==null?void 0:(f=f.spending_info)==null?void 0:f.amount_spent_currency_amount))!=null?f:b;b=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();b=b.hasBillingWritePermission;var o=c("useBillingWizardForMobileHub")();g=d("BillingPaymentModeUtils").isPrepayOnlyAccount((g=a==null?void 0:(g=a.billable_account_by_asset_id)==null?void 0:g.payment_modes)!=null?g:[]);a=(a==null?void 0:(a=a.billable_account_by_asset_id)==null?void 0:a.is_using_biz_sb)===!0;return g&&!a?m.jsx(m.Fragment,{children:" "}):m.jsxs("div",{className:"xyamay9 x4uap5 x1l90r2v xkhd6sd",children:[m.jsxs(c("BillingHubMobileCard.react"),{hideBorder:!0,title:c("BillingHubAccountSpendLimitCardContent").title(l),children:[n?m.jsxs("div",{className:"x1y1aw1k x4uap5 xwib8y2 xkhd6sd",children:[m.jsx(c("BillingHubMobileText.react"),{headline:h._("u5269u4f59uff1a{remaining amount}",[h._param("remaining amount",e.subtract(f).toString())]),level:1}),m.jsx(c("BillingHubMobileAccountSpendLimitProgressBar.react"),{amountSpent:f,spendLimit:e,updateAslToTab:l})]}):m.jsx(p,{updateAslToTab:l}),n&&f.isZero()?null:m.jsx(q,{isDisabled:!b,isLimitSet:n,onClickForReset:function(){return o({wizardName:"RESET_SPEND"},{eventContext:"reset_spend_limit",targetName:"reset_spend_limit_button"})},onClickForUpdate:function(){return o({wizardName:"UPDATE_ACCOUNT_SPEND_LIMIT"},{eventContext:"change_spend_limit",targetName:"change_spend_limit_button"})},updateAslToTab:l}),n&&m.jsx("div",{className:"x1miatn0 x4uap5 x18d9i69 xkhd6sd",children:m.jsx(p,{updateAslToTab:l})})]}),m.jsxs(c("BillingHubMobileBottomSheet.react"),{dismissButton:m.jsx(m.Fragment,{}),onDismiss:function(){return k(!1)},title:m.jsx(c("BillingHubMobileText.react"),{headline:c("BillingHubAccountSpendLimitCardContent").title(l)}),visible:n&&j,children:[m.jsx("div",{className:"x3a57xx xds687c xjm9jq1 xktsk01 x17qophe x1d52u69"}),m.jsx(c("BillingHubMobileListCell.react"),{body:m.jsxs("div",{className:"x6s0dn4 x78zum5 xl56j7k x1swvt13",children:[m.jsx("div",{className:"x6s0dn4 x1qhmfi1 x1tlxs6b x1g8br2z x1gn5b1j x230xth x78zum5 xc9qbxq xl56j7k x14qfxbe",children:m.jsx(c("CometImage.react"),{src:i("1291328")})}),m.jsx("div",{className:"x1d52u69",children:m.jsx(c("BillingHubMobileText.react"),{body:c("BillingHubAccountSpendLimitCardContent").changeLimit})})]}),onClick:function(){return o({wizardName:"UPDATE_ACCOUNT_SPEND_LIMIT"},{eventContext:"change_spend_limit",targetName:"change_spend_limit_button"})}}),m.jsx("div",{className:"x3a57xx xds687c xjm9jq1 x17qophe x1rz3hdg"}),m.jsx(c("BillingHubMobileListCell.react"),{body:m.jsxs("div",{className:"x6s0dn4 x78zum5 xl56j7k x1swvt13",children:[m.jsx("div",{className:"x6s0dn4 x1qhmfi1 x1tlxs6b x1g8br2z x1gn5b1j x230xth x78zum5 xc9qbxq xl56j7k x14qfxbe",children:m.jsx(c("CometImage.react"),{src:i("1347034")})}),m.jsx("div",{className:"x1d52u69",children:m.jsx(c("BillingHubMobileText.react"),{body:c("BillingHubAccountSpendLimitCardContent").removeLimit})})]}),onClick:function(){return o({wizardName:"REMOVE_ASL"},{eventContext:"remove_spend_limit",targetName:"remove_spend_limit_button"})}})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubMobileAccountSpendLimitPageQuery.graphql",["BillingHubMobileAccountSpendLimitPageQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"assetID"}],c=[{kind:"Variable",name:"asset_id",variableName:"assetID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],g=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],h={alias:null,args:null,kind:"ScalarField",name:"is_using_biz_sb",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingHubMobileAccountSpendLimitPageQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_asset_id",plural:!1,selections:[d,e,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:g,storageKey:null}],storageKey:null},h],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingHubMobileAccountSpendLimitPageQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_asset_id",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,e,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:f,storageKey:null}],storageKey:null},h,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingHubMobileAccountSpendLimitPageQuery_facebookRelayOperation"),metadata:{},name:"BillingHubMobileAccountSpendLimitPageQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
BillingEnterSecureBillingView_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingEnterSecureBillingView_account",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingEMandateIncreaseRemoveCardsState",["BillingCurrencyAmount","BillingEMandateIncreaseRemoveCardsScreen.react","BillingEMandateIncreaseRemoveCardsStateQuery.graphql","BillingWizardTypes","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingEMandateIncreaseRemoveCardsStateQuery.graphql");function l(a,c,e){var f,g,h,i,j,l;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:i=c.relay.fetchQuery;m.next=3;return b("regeneratorRuntime").awrap(i({query:k,queryName:k.params.name,variables:{paymentAccountID:a}},{event_context:"screen"}));case 3:j=m.sent;l=((f=j==null?void 0:(g=j.billable_account_by_payment_account)==null?void 0:(h=g.billing_payment_account)==null?void 0:h.billing_payment_methods)!=null?f:[]).map(function(a){a=a==null?void 0:a.credential;if(a==null)return null;var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a.emandate_user_consent_amount);if(b==null||b.compare(e)>=0)return null;b=a.card_association_name;var c=a.credential_id;a=a.last_four_digits;return b==null||c==null||a==null?null:{cardAssociationName:b,credentialID:c,lastFourDigits:a}}).filter(Boolean);return m.abrupt("return",l);case 6:case"end":return m.stop()}},null,this)}a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
MBillingHubPaymentSettingsBalanceSection.react",["fbt","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubMobileNavigationContext","BillingHubPaymentSettingsBalanceCardConstants","BillingPaymentModeUtils","MBillingHubButton.react","MBillingHubCardRow.react","MBillingHubPaymentSettingsBalanceSection.graphql","MBillingHubText.react","RelayHooks","react","useBillableAccountBalance","useBillingHubPaymentDue","useBillingHubPendingPayments","useBillingRequestRefundStatus","useBillingSurfaceLogger","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("MBillingHubPaymentSettingsBalanceSection.graphql");function a(a){var b,e,f;a=a.account;var g=c("useBillingSurfaceLogger")(),i=d("RelayHooks").useFragment(l,a);a=c("useBillableAccountBalance")(i);var j=a.balance,m=a.isStoredBalance;a=a.wizardName;var n=(i==null?void 0:i.is_using_biz_sb)===!0;b=(b=i==null?void 0:i.is_using_ec)!=null?b:!1;var o=c("useBillingWizardForMobileHub")(),p=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),q=p.hasBillingWritePermission;p=p.layout;var r=d("BillingHubMobileNavigationContext").useBillingHubMobileNavigation(),s=r.goToPage,t=a;r=!1;var u=c("BillingHubPaymentSettingsBalanceCardConstants").payNow;if(t==="PAY_NOW"){var v;t=(v=i==null?void 0:(v=i.payment_settings_details)==null?void 0:(v=v.pay_now_action)==null?void 0:(v=v.wizard_props)==null?void 0:v.wizard_name)!=null?v:a;r=(v=i==null?void 0:(v=i.payment_settings_details)==null?void 0:(a=v.pay_now_action)==null?void 0:a.is_disabled)!=null?v:!1;u=(a=i==null?void 0:(a=i.payment_settings_details)==null?void 0:(v=a.pay_now_action)==null?void 0:v.label)!=null?a:c("BillingHubPaymentSettingsBalanceCardConstants").payNow}v=c("useBillingHubPendingPayments")(i);var w=v.transactionDetails;a=v.transactionCount;var x=(v=i==null?void 0:i.refund_status)!=null?v:"BILLING_PREPAY_NO_REFUND_STATUS",y=i==null?void 0:i.refund_method;v=c("useBillingRequestRefundStatus")(i);var z=v.shouldShow;v=a!==0?c("BillingHubPaymentSettingsBalanceCardConstants").pendingPayments(a):void 0;var A=function(){var a;g.logClickEvent({event_context:"navigate_tab"});s({page:"STORED_BALANCE_DETAILS",transactionDetails:w,formattedPrepayBalance:m?j.toString():d("BillingCurrencyAmount").createZero((a=i==null?void 0:i.currency)!=null?a:"USD").toString(),wizardProps:t,refundMethod:y,refundStatus:x,shouldShow:z})},B=c("useBillingHubPaymentDue")(i);e=(e=i==null?void 0:i.next_bill_date)!=null?e:null;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:i.billing_threshold_currency_amount))==null?void 0:f.toString();B=m?void 0:c("BillingHubPaymentSettingsBalanceCardConstants").postpayDescription(j.isZero(),B,e,f);f=!j.isZero()&&(!m&&d("BillingPaymentModeUtils").isHybridAccount((e=i==null?void 0:i.payment_modes)!=null?e:[])||p==="CREATOR_MARKETPLACE");p=B!=null&&v!=null?k.jsxs(k.Fragment,{children:[B,k.jsx("br",{}),v]}):(e=B)!=null?e:v;var C=m&&!b;e=(i==null?void 0:i.application_type)==="WHATSAPP_SMB"&&m&&(i==null?void 0:i.waba_mm_limit_overfund)===!0&&(i==null?void 0:(B=i.billable_account_tax_info)==null?void 0:B.business_country_code)==="ID";v=!C&&(i==null?void 0:i.can_pay_now)!==!0||n||e;b=q&&!n&&(C||a!==0)&&!e?A:void 0;B=f?k.jsxs("div",{children:[j.toString(),k.jsx("div",{className:"x1rg5ohu x1e558r4",children:k.jsx(c("MBillingHubText.react"),{meta:h._("+ u7a0e")})})]}):j.toString();return k.jsxs("div",{className:"xyamay9",children:[k.jsx(c("MBillingHubCardRow.react"),{align:"start",marginBottom:v?0:16,onPress:b,children:k.jsx(c("MBillingHubText.react"),{headline:B,level:1,body:p,bodyColor:"secondary",bodyLevel:3})}),!v&&k.jsx(c("MBillingHubButton.react"),{testid:void 0,label:C?c("BillingHubPaymentSettingsBalanceCardConstants").addFunds:u,type:"primary",disabled:!q||r,onClick:function(){return o({wizardName:t},{eventContext:C?"add_funds":"pay_now_balance",targetName:C?"add_funds_button":"pay_now_balance_button"})},reduceEmphasis:C})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MBillingHubPaymentSettingsPaymentMethodsList.react",["BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubPaymentSettingsPaymentMethodsContent","BillingPaymentModeUtils","MBillingHubButton.react","MBillingHubCreditCardItem.react","MBillingHubDirectDebitItem.react","MBillingHubExtendedCreditItem.react","MBillingHubLPMItem.react","MBillingHubPayPalItem.react","MBillingHubPaymentSettingsPaymentMethodsListQuery.graphql","MBillingHubText.react","RelayHooks","react","useBillingHubAddQueryToRefetch","useBillingHubPaymentMethods","useBillingIndiaEMandateIncreaseStatus","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g){var h,i,j=i||d("react"),k=h!==void 0?h:h=b("MBillingHubPaymentSettingsPaymentMethodsListQuery.graphql");function a(a){var b,e=a.onClickPaymentMethod,f=c("useBillingWizardForMobileHub")();a=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();var g=a.paymentAccountID;a=a.hasBillingWritePermission;var h=d("RelayHooks").useLazyLoadQuery(k,{paymentAccountID:g});d("useBillingHubAddQueryToRefetch").useBillingHubAddQueryToRefetch(k,{paymentAccountID:g});g=c("useBillingHubPaymentMethods")(h.billable_account_by_payment_account);var i={accountEMandateConfigAmount:d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(h==null?void 0:(b=h.billable_account_by_payment_account)==null?void 0:b.india_emandate_default_config_amount),isAccountReauthRestricted:(b=h==null?void 0:(b=h.billable_account_by_payment_account)==null?void 0:b.is_reauth_restricted)!=null?b:!1,showPrepayOnPostpayUpdates:d("BillingPaymentModeUtils").isHybridAccount((b=h==null?void 0:(b=h.billable_account_by_payment_account)==null?void 0:b.payment_modes)!=null?b:[])};b=c("useBillingIndiaEMandateIncreaseStatus")(h.billable_account_by_payment_account);var l=b.eligibleForEMandateIncrease;b=h==null?void 0:(b=h.billable_account_by_payment_account)==null?void 0:(h=b.payment_settings_details)==null?void 0:h.add_pm_action;var m=(h=b==null?void 0:(h=b.wizard_props)==null?void 0:h.wizard_name)!=null?h:"ADD_PM";h=(h=b==null?void 0:b.label)!=null?h:c("BillingHubPaymentSettingsPaymentMethodsContent").addPaymentMethodActionLabel;b=!a||((a=b==null?void 0:b.is_disabled)!=null?a:!1);var n=g.filter(function(a){return a.typename==="LPMCredential"}).length;a=g.map(function(a,b,d){d=b!==d.length-1;if(a.typename==="ExternalCreditCard")return j.jsx(c("MBillingHubCreditCardItem.react"),{creditCardDetails:a.fragmentRef,creditCardItemAdditionalProps:i,eligibleForEMandateIncrease:l,showBottomDivider:d,onClick:function(){return e(a)}},"BillingHubCreditCardItem_"+b);else if(a.typename==="DirectDebit")return j.jsx(c("MBillingHubDirectDebitItem.react"),{directDebitDetails:a.fragmentRef,showBottomDivider:d,onClick:function(){return e(a)}},"BillingHubDirectDebitItem_"+b);else if(a.typename==="MonthlyInvoicing"||a.typename==="ExtendedCredit"||a.typename==="SharedMonthlyInvoicing")return j.jsx(c("MBillingHubExtendedCreditItem.react"),{extendedCreditDetails:a.fragmentRef,showBottomDivider:d,onClick:function(){return e(a)}},"BillingHubExtendedCreditItem_"+b);else if(a.typename==="PaymentPaypalBillingAgreement")return j.jsx(c("MBillingHubPayPalItem.react"),{payPalDetails:a.fragmentRef,showBottomDivider:d,onClick:function(){return e(a)}},"MBillingHubPayPalItem"+b);else if(a.typename==="LPMCredential")return j.jsx(c("MBillingHubLPMItem.react"),{credentialDetails:a.fragmentRef,showBottomDivider:d,onClick:function(){return e(a)},hasMultipleLPMs:n>1},"MBillingHubLPMItem"+b);return null});a=a.filter(function(a){return a!=null});g=j.jsx(c("MBillingHubButton.react"),{label:h,reduceEmphasis:!0,size:"large",onClick:function(){return f({wizardName:m},{eventContext:"add_payment_method",targetName:"add_payment_method_button"})},disabled:b,testid:void 0});return j.jsxs(j.Fragment,{children:[a.length>0?j.jsx("div",{className:"x1xmf6yo",children:a}):j.jsx("div",{className:"x1yztbdb",children:j.jsx(c("MBillingHubText.react"),{body:c("BillingHubPaymentSettingsPaymentMethodsContent").noPaymentMethodsMessage,level:3,bodyColor:"secondary"})}),g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MBillingHubPaymentSettingsAccountSpendLimitCard.react",["fbt","BillingCurrencyAmount","BillingHubAccountSpendLimitCardContent","BillingHubBillableAccountContext","BillingHubMobileNavigationContext","BillingHubQEContext","BillingPaymentModeUtils","MBillingHubAccountSpendLimitProgressBar.react","MBillingHubCard.react","MBillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql","RelayHooks","react","useBillingSurfaceLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("MBillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql");function a(a){var b,e,f,g,i=a.account;a=a.hideBorder;var j=c("useBillingSurfaceLogger")(),m=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();m=m.hasBillingWritePermission;var n=d("BillingHubMobileNavigationContext").useBillingHubMobileNavigation(),o=n.goToPage;n=d("BillingHubQEContext").useBillingQE();n=n.billing_content_asl_h2_2024.asl_to_tab_v1.read();i=d("RelayHooks").useFragment(l,i);b=(b=i==null?void 0:i.currency)!=null?b:"USD";b=d("BillingCurrencyAmount").createZero(b);e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(e=i.spending_info)==null?void 0:e.spend_limit_currency_amount))!=null?e:b;var p=!e.isZero();f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(f=i.spending_info)==null?void 0:f.amount_spent_currency_amount))!=null?f:b;b={label:h._("u524du5f80u8d26u6237u82b1u8d39u9650u989du9875u9762"),onTap:function(){j.logClickEvent({event_context:"navigate_tab"}),o({isLimitSet:p,page:"ACCOUNT_SPEND_LIMIT"})}};var q=p?void 0:h._("u672au8bbeu7f6e");f=p?k.jsx(c("MBillingHubAccountSpendLimitProgressBar.react"),{amountSpent:f,spendLimit:e,updateAslToTab:n}):void 0;e=d("BillingPaymentModeUtils").isPrepayOnlyAccount((e=i==null?void 0:i.payment_modes)!=null?e:[]);g=d("BillingPaymentModeUtils").isNewUserAccount((g=i==null?void 0:i.payment_modes)!=null?g:[]);return g?null:k.jsx(c("MBillingHubCard.react"),{hideBorder:a,title:c("BillingHubAccountSpendLimitCardContent").title(n),action:m&&(!e||(i==null?void 0:i.is_using_biz_sb)===!0)?b:void 0,description:q,testid:void 0,children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MBillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MBillingHubPaymentSettingsAccountSpendLimitCard_billableAccount",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:b,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_using_biz_sb",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
MBillingHubAutoReloadCard.react",["fbt","BillingAutoReloadConstants","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingPaymentModeUtils","MBillingHubAutoReloadCard_account.graphql","MBillingHubCard.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("MBillingHubAutoReloadCard_account.graphql");function a(a){var b,e,f,g,i,j=a.account;a=a.hideBorder;j=d("RelayHooks").useFragment(l,j);var n=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();n=n.hasBillingWritePermission;var o=j==null?void 0:j.india_network_tokenization_migration_status;b=(b=j==null?void 0:(b=j.billing_payment_account)==null?void 0:b.supports_recurring)!=null?b:[];b=b.map(function(a){return m(a.credential)});e=m(j==null?void 0:(e=j.auto_reload_info)==null?void 0:e.auto_reload_credential);var p=null;e!=null&&b.includes(e)?p=e:b.length>0&&(p=b[0]);e=j==null?void 0:(e=j.billing_payment_account)==null?void 0:(b=e.supports_recurring)==null?void 0:b.find(function(a){return m(a.credential)===p});b=e==null?void 0:(b=e.credential)==null?void 0:b.credential_type;e=e==null?void 0:(e=e.credential)==null?void 0:e.payment_provider;f=d("BillingPaymentModeUtils").supportsAutoReload((f=j==null?void 0:j.payment_modes)!=null?f:[])&&p!=null;g=(j==null?void 0:(g=j.auto_reload_info)==null?void 0:g.auto_reload_status)==="ENABLED";i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:(i=j.auto_reload_info)==null?void 0:i.auto_reload_trigger_threshold);j=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:(j=j.auto_reload_info)==null?void 0:j.auto_reload_amount);i=h._("u9884u5145u503cu91d1u989du4f4eu81f3u6216u4f4eu4e8e{reload amount}u65f6u81eau52a8u5145u503c{reload threshold}u3002",[h._param("reload amount",((j=j)!=null?j:"0").toString()),h._param("reload threshold",((j=i)!=null?j:"0").toString())]);j={label:h._("u7f16u8f91"),wizardProps:{wizardName:"AUTO_RELOAD",paymentMethodID:p,jsonProps:JSON.stringify({payment_method_type:(j=b)!=null?j:void 0,provider_id:(b=e)!=null?b:void 0,should_turn_on:!0})},eventContext:"auto_reload_update",targetName:"auto_reload_update_button"};return!f?null:k.jsx(c("MBillingHubCard.react"),{hideBorder:a,title:g?c("BillingAutoReloadConstants").autoReloadOnHeadline:c("BillingAutoReloadConstants").autoReloadOffHeadline,action:n&&o!=="IN_PROGRESS"?j:void 0,description:g?i:c("BillingAutoReloadConstants").autoReloadOffBody,testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b;return(b=a==null?void 0:a.credential_id)!=null?b:a==null?void 0:a.id}g["default"]=a}),226);
-----
MBillingHubPaymentSettingsAdCreditsCard.react",["ix","BillingAdCreditConstants","BillingAdCreditUtils","BillingCurrencyAmount","BillingHubMobileNavigationContext","Image.react","MBillingHubCard.react","MBillingHubCardRow.react","MBillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql","MBillingHubText.react","RelayHooks","react","useBillingSurfaceLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("MBillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql");function a(a){var b,e,f,g,i,j=a.account;a=a.hideBorder;var m=c("useBillingSurfaceLogger")();j=d("RelayHooks").useFragment(l,j);var n=d("BillingHubMobileNavigationContext").useBillingHubMobileNavigation(),o=n.goToPage;n=k.jsx(c("Image.react"),{src:h("1507321")});b=d("BillingCurrencyAmount").createZero((b=j==null?void 0:j.currency)!=null?b:"USD");e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:j.coupon_balance))!=null?e:b;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:j.account_level_coupon_balance))!=null?f:b;g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:j.campaign_level_coupon_balance))!=null?g:b;var p=d("BillingAdCreditUtils").useOrganizeAdCredits(j==null?void 0:j.billing_payment_account);b=(b=p==null?void 0:p.campaignLevelCredits)!=null?b:[];b=b.length>0;i=((i=p==null?void 0:p.allAdCredits)!=null?i:[]).length>0;var q=((j=j==null?void 0:(j=j.ad_campaign_groups)==null?void 0:j.count)!=null?j:0)>0;j=k.jsxs(c("MBillingHubCardRow.react"),{align:"start",children:[k.jsx("div",{className:"x1emribx",children:n}),k.jsx(c("MBillingHubText.react"),{headline:e.toString()})]});e=k.jsxs(c("MBillingHubCardRow.react"),{align:"start",borderBottom:!0,marginBottom:8,children:[k.jsx("div",{className:"x1emribx",children:n}),k.jsx(c("MBillingHubText.react"),{headline:f.toString(),meta:c("BillingAdCreditConstants").assignedToAccount})]});f=k.jsxs(c("MBillingHubCardRow.react"),{align:"start",children:[k.jsx("div",{className:"x1emribx",children:n}),k.jsx(c("MBillingHubText.react"),{headline:g.toString(),meta:c("BillingAdCreditConstants").assignedToCampaigns})]});n=p!=null?{label:c("BillingAdCreditConstants").accessibilityLabelSeeCouponDetails,onTap:function(){m.logClickEvent({event_context:"navigate_tab"}),o({page:"AD_CREDITS_DETAILS",organizedAdCredits:p,hasCampaigns:q})}}:void 0;return i?k.jsx(c("MBillingHubCard.react"),{chevronInHeadline:!0,hideBorder:a,description:c("BillingAdCreditConstants").description,title:c("BillingAdCreditConstants").title,action:n,children:k.jsxs("div",{className:"x1sy10c2",children:[!b&&j,b&&e,b&&f]})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MBillingHubPaymentSettingsPaymentThresholdCard.react",["fbt","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingManageDateThresholdConstants","BillingPaymentModeUtils","MBillingHubCard.react","MBillingHubPaymentSettingsPaymentThresholdCard_billableAccount.graphql","QE2Logger","RelayHooks","react","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("MBillingHubPaymentSettingsPaymentThresholdCard_billableAccount.graphql");function a(a){var b,e=a.account;a=a.hideBorder;var f=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),g=f.creditLineType;f=f.hasBillingWritePermission;var i=d("RelayHooks").useFragment(l,e);e=((e=i==null?void 0:(e=i.billing_payment_account)==null?void 0:e.primary_funding_source)!=null?e:[])[0];e=(e==null?void 0:e.usability)==="USABLE"&&(e==null?void 0:e.credential)!=null;var j=i==null?void 0:i.account_status,m=i==null?void 0:i.next_bill_date;b=d("BillingPaymentModeUtils").isPrepayOnlyAccount((b=i==null?void 0:i.payment_modes)!=null?b:[]);e=j!=="CLOSED"&&e&&g===null&&m!=null&&!b;var n=c("useBillingWizardForMobileHub")();g=function(){var a=(i==null?void 0:i.legacy_account_id)||"";d("QE2Logger").logExposureForPaymentAccountID("billing_payment_threshold_wizard_universe",a);n({displayAllFields:!0,wizardName:"MANAGE_BILLING_DATE_THRESHOLD"},{eventContext:"update_billing_threshold",targetName:"update_billing_threshold_button"})};m={label:h._("u7f16u8f91"),onTap:g};g=(b=i==null?void 0:i.currency)!=null?b:"USD";b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:i.billing_threshold_currency_amount))!=null?b:d("BillingCurrencyAmount").createZero(g);g=c("BillingManageDateThresholdConstants").mobileThresholdDescription(b.toString());return e?k.jsx(c("MBillingHubCard.react"),{hideBorder:a,title:c("BillingManageDateThresholdConstants").paymentThresholdHeadline,action:j!=="DISABLED"&&f?m:void 0,description:g}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MBillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MBillingHubPaymentSettingsAdCreditsCard_billableAccount",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:b,storageKey:null},a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"campaign_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingAdCreditUtils"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
MBillingHubAccountSpendLimitPage.react",["fbt","ix","BillingCurrencyAmount","BillingHubAccountSpendLimitCardContent","BillingHubBillableAccountContext","BillingHubQEContext","BillingPaymentModeUtils","Image.react","MBillingBottomSheet.react","MBillingHubAccountSpendLimitPage_query.graphql","MBillingHubAccountSpendLimitProgressBar.react","MBillingHubCard.react","MBillingHubText.react","MBillingListCell.react","MLink.react","RelayHooks","react","stylex","useBillingWizardForMobileHub"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n=j!==void 0?j:j=b("MBillingHubAccountSpendLimitPage_query.graphql"),o={button:{borderTopStyle:"x1ejq31n",borderEndStyle:"xd10rxx",borderBottomStyle:"x1sy0etr",borderStartStyle:"x17r0tee",borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",display:"x78zum5",justifyContent:"xl56j7k",paddingTop:"xz9dl7a",paddingEnd:"x4uap5",paddingBottom:"xsag5q8",paddingStart:"xkhd6sd",width:"xh8yej3",marginTop:"xw7yly9",$$css:!0}},p={primary:{backgroundColor:"xtvsq51",borderTopColor:"x2d6s2u",borderEndColor:"x1psm3us",borderBottomColor:"xs5wg7j",borderStartColor:"x1vit0d8",color:"xtk6v10",$$css:!0},secondary:{backgroundColor:"x1qhmfi1",borderTopColor:"xqmpxtq",borderEndColor:"x1kaaafe",borderBottomColor:"xdrs2t1",borderStartColor:"x1l7oz65",color:"x1dem4cn",$$css:!0},disabled:{opacity:"xbyyjgo",$$css:!0}};function q(a){a=a.updateAslToTab;return m.jsxs(m.Fragment,{children:[m.jsx(c("MBillingHubText.react"),{body:c("BillingHubAccountSpendLimitCardContent").about(a),bodyColor:"secondary",level:4}),m.jsx(c("MLink.react"),{href:"https://www.facebook.com/business/help/141820733085330?id=326963134374796&helpref=search&sr=1&query=account%20spending%20limit",children:m.jsx(c("MBillingHubText.react"),{body:c("BillingHubAccountSpendLimitCardContent").learnMore,level:4,bodyColor:"highlight"})})]})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.isDisabled,d=a.isLimitSet,e=a.onClickForReset,f=a.onClickForUpdate;a=a.updateAslToTab;return d?m.jsx("button",{"data-testid":void 0,className:(k||(k=c("stylex")))(o.button,p.secondary,b&&p.disabled),onClick:e,disabled:b,children:m.jsx(c("MBillingHubText.react"),{body:c("BillingHubAccountSpendLimitCardContent").resetLimit,level:2})}):m.jsx("button",{"data-testid":void 0,className:(k||(k=c("stylex")))(o.button,p.primary,b&&p.disabled),onClick:f,disabled:b,children:m.jsx(c("MBillingHubText.react"),{body:c("BillingHubAccountSpendLimitCardContent").setLimit(a),level:2,bodyColor:"white"})})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b,e,f,g,j=a.account,k=a.setShowEditAction;a=a.showEditAction;j=d("RelayHooks").useFragment(n,j);var l=d("BillingHubQEContext").useBillingQE();l=l.billing_content_asl_h2_2024.asl_to_tab_v1.read();b=(b=j==null?void 0:(b=j.billable_account_by_asset_id)==null?void 0:b.currency)!=null?b:"USD";b=d("BillingCurrencyAmount").createZero(b);e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:(e=j.billable_account_by_asset_id)==null?void 0:(e=e.spending_info)==null?void 0:e.spend_limit_currency_amount))!=null?e:b;var o=!e.isZero();f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(j==null?void 0:(f=j.billable_account_by_asset_id)==null?void 0:(f=f.spending_info)==null?void 0:f.amount_spent_currency_amount))!=null?f:b;b=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();b=b.hasBillingWritePermission;var p=c("useBillingWizardForMobileHub")();g=d("BillingPaymentModeUtils").isPrepayOnlyAccount((g=j==null?void 0:(g=j.billable_account_by_asset_id)==null?void 0:g.payment_modes)!=null?g:[]);j=(j==null?void 0:(j=j.billable_account_by_asset_id)==null?void 0:j.is_using_biz_sb)===!0;return g&&!j?m.jsx(m.Fragment,{children:" "}):m.jsxs("div",{className:"xyamay9 x4uap5 x1l90r2v xkhd6sd",children:[m.jsxs(c("MBillingHubCard.react"),{hideBorder:!0,title:c("BillingHubAccountSpendLimitCardContent").title(l),children:[o?m.jsxs("div",{className:"x1y1aw1k x4uap5 xwib8y2 xkhd6sd",children:[m.jsx(c("MBillingHubText.react"),{headline:h._("u5269u4f59uff1a{remaining amount}",[h._param("remaining amount",e.subtract(f).toString())]),level:1}),m.jsx(c("MBillingHubAccountSpendLimitProgressBar.react"),{amountSpent:f,spendLimit:e,updateAslToTab:l})]}):m.jsx(q,{updateAslToTab:l}),o&&f.isZero()?null:m.jsx(r,{isLimitSet:o,isDisabled:!b,onClickForReset:function(){return p({wizardName:"RESET_SPEND"},{eventContext:"reset_spend_limit",targetName:"reset_spend_limit_button"})},onClickForUpdate:function(){return p({wizardName:"UPDATE_ACCOUNT_SPEND_LIMIT"},{eventContext:"change_spend_limit",targetName:"change_spend_limit_button"})},updateAslToTab:l}),o&&m.jsx("div",{className:"x1miatn0 x4uap5 x18d9i69 xkhd6sd",children:m.jsx(q,{updateAslToTab:l})})]}),m.jsxs(c("MBillingBottomSheet.react"),{onDismiss:function(){return k(!1)},visible:o&&a,dismissButton:m.jsx(m.Fragment,{}),title:m.jsx(c("MBillingHubText.react"),{headline:c("BillingHubAccountSpendLimitCardContent").title(l)}),children:[m.jsx("div",{className:"x3a57xx xu96u03 x3m8u43 xjm9jq1 x1o6q14k xq1n1xh"}),m.jsx(c("MBillingListCell.react"),{body:m.jsxs("div",{className:"x78zum5 xl56j7k x6s0dn4 xnm25rq",children:[m.jsx("div",{className:"x78zum5 xl56j7k x6s0dn4 x1tlxs6b x1g8br2z x1gn5b1j x230xth x1qhmfi1 xc9qbxq x14qfxbe",children:m.jsx(c("Image.react"),{src:i("1291328")})}),m.jsx("div",{className:"xq1n1xh",children:m.jsx(c("MBillingHubText.react"),{body:c("BillingHubAccountSpendLimitCardContent").changeLimit})})]}),onClick:function(){return p({wizardName:"UPDATE_ACCOUNT_SPEND_LIMIT"},{eventContext:"change_spend_limit",targetName:"change_spend_limit_button"})}}),m.jsx("div",{className:"x3a57xx xu96u03 x3m8u43 xjm9jq1 x1o6q14k xeo3agl"}),m.jsx(c("MBillingListCell.react"),{body:m.jsxs("div",{className:"x78zum5 xl56j7k x6s0dn4 xnm25rq",children:[m.jsx("div",{className:"x78zum5 xl56j7k x6s0dn4 x1tlxs6b x1g8br2z x1gn5b1j x230xth x1qhmfi1 xc9qbxq x14qfxbe",children:m.jsx(c("Image.react"),{src:i("1347034")})}),m.jsx("div",{className:"xq1n1xh",children:m.jsx(c("MBillingHubText.react"),{body:c("BillingHubAccountSpendLimitCardContent").removeLimit})})]}),onClick:function(){return p({wizardName:"REMOVE_ASL"},{eventContext:"remove_spend_limit",targetName:"remove_spend_limit_button"})}})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MBillingHubAccountSpendLimitPage_query.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{kind:"RootArgument",name:"assetID"}],kind:"Fragment",metadata:null,name:"MBillingHubAccountSpendLimitPage_query",selections:[{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"}],concreteType:null,kind:"LinkedField",name:"billable_account_by_asset_id",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:b,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_using_biz_sb",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();e.exports=a}),null);
-----
BillingIAPNoDisplayNeedsPriceLockStateQuery.graphql",["BillingIAPNoDisplayNeedsPriceLockStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"budgetAmount"},c={defaultValue:null,kind:"LocalArgument",name:"budgetCurrency"},d={defaultValue:null,kind:"LocalArgument",name:"deviceCountry"},e={defaultValue:null,kind:"LocalArgument",name:"deviceCurrency"},f={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},g=[{kind:"Variable",name:"device_country_code",variableName:"deviceCountry"},{kind:"Variable",name:"device_currency",variableName:"deviceCurrency"},{kind:"Literal",name:"lock_pre_quote",value:!0},{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},{fields:[{kind:"Variable",name:"amount",variableName:"budgetAmount"},{kind:"Variable",name:"currency",variableName:"budgetCurrency"}],kind:"ObjectValue",name:"target_currency_amount"}],h=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],i={alias:null,args:null,kind:"ScalarField",name:"pre_quote_obj_id",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},k=[j,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"alt_currency_amount",storageKey:null}];return{fragment:{argumentDefinitions:[a,c,d,e,f],kind:"Fragment",metadata:null,name:"BillingIAPNoDisplayNeedsPriceLockStateQuery",selections:[{alias:null,args:g,concreteType:"XFBBillingIAPPaymentInfo",kind:"LinkedField",name:"xfb_billing_iap_payment_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:h,args:null,argumentDefinitions:[]}],storageKey:null},i,{alias:null,args:null,concreteType:"XFBIAPPaymentInfo",kind:"LinkedField",name:"payment_details",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingIAPNoDisplayNeedsPriceLockScreen_data"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[f,e,d,a,c],kind:"Operation",name:"BillingIAPNoDisplayNeedsPriceLockStateQuery",selections:[{alias:null,args:g,concreteType:"XFBBillingIAPPaymentInfo",kind:"LinkedField",name:"xfb_billing_iap_payment_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_currency_amount",plural:!1,selections:h,storageKey:null},i,{alias:null,args:null,concreteType:"XFBIAPPaymentInfo",kind:"LinkedField",name:"payment_details",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBIAPPaymentInfoItem",kind:"LinkedField",name:"payment_info_items",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBIAPPaymentInfoText",kind:"LinkedField",name:"label",plural:!1,selections:k,storageKey:null},{alias:null,args:null,concreteType:"XFBIAPPaymentInfoText",kind:"LinkedField",name:"value",plural:!1,selections:k,storageKey:null},{alias:null,args:null,concreteType:"XFBIAPPaymentInfoToolTip",kind:"LinkedField",name:"tool_tip",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBIAPPaymentInfoToolTipItem",kind:"LinkedField",name:"body",plural:!0,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"learn_more_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"learn_more_url",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingIAPNoDisplayNeedsPriceLockStateQuery_facebookRelayOperation"),metadata:{},name:"BillingIAPNoDisplayNeedsPriceLockStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingIAPNoDisplayNeedsPriceLockState",["BillingCurrencyAmount","BillingIAPNoDisplayNeedsPriceLockScreen","BillingIAPNoDisplayNeedsPriceLockStateQuery.graphql","BillingWizardTypes","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingIAPNoDisplayNeedsPriceLockStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingHubPaymentSettingsSpendMoreDSLEntrypoint.react",["fbt","ix","BillingCurrencyAmount","BillingHubPaymentSettingsDSLEducationSection.react","BillingHubPaymentSettingsSpendMoreDSLEntrypoint_billableAccount.graphql","BillingHubWizardButton.react","CometImage.react","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoIcon.react","GeoLink.react","GeoPopover.react","GeoVStack.react","RelayHooks","fbicon","react","useBillingSurfaceUPLogger"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m={infoIcon:{marginLeft:"x1iog12x",marginStart:null,marginEnd:null,$$css:!0},paddingTopXSmall:{paddingTop:"x1nn3v0j",$$css:!0}},n=j!==void 0?j:j=b("BillingHubPaymentSettingsSpendMoreDSLEntrypoint_billableAccount.graphql");function a(a){var b;a=a.account;var e=c("useBillingSurfaceUPLogger")();a=d("RelayHooks").useFragment(n,a);var f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_dsl);b=a==null?void 0:(b=a.xfb_daily_spend_limit_action_framework)==null?void 0:b.dsl_content_spend_more;a=(a==null?void 0:(a=a.xfb_daily_spend_limit_action_framework)==null?void 0:(a=a.updated_education_experience)==null?void 0:a.updated_help_center_articles)===!0?d("BillingHubPaymentSettingsDSLEducationSection.react").HELP_CENTER_URI_V2:d("BillingHubPaymentSettingsDSLEducationSection.react").HELP_CENTER_URI;return l.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[l.jsx(c("GeoVStack.react"),{children:l.jsxs(c("GeoFlexbox.react"),{alignItems:"start",justifyContent:"start",children:[l.jsx(c("GeoIcon.react"),{color:"info",icon:d("fbicon")._(i("505498"),24)}),l.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:m.paddingTopXSmall,children:[l.jsx(c("GeoBaseText.react"),{color:"headingDescription",size:"value",weight:"bold",children:l.jsxs(l.Fragment,{children:[h._("Increase your daily spending limit"),f!==null&&l.jsxs(l.Fragment,{children:[" ",h._("(set by Meta): {formatted DSL}/day",[h._param("formatted DSL",f==null?void 0:f.toString())])]}),l.jsx(c("GeoPopover.react"),{content:"TBD","data-testid":void 0,heading:h._("What is the daily spending limit?"),isSticky:!1,children:l.jsx(c("CometImage.react"),{src:i("403741"),xstyle:m.infoIcon})})]})}),l.jsxs(c("GeoBaseText.react"),{color:"value",size:"value",children:[b," ",h._("{learn_more_link_spend_more}",[h._param("learn_more_link_spend_more",l.jsx(c("GeoLink.react"),{href:a,onClick:function(){return e==null?void 0:e.logClickEvent("learn_more")},children:"Learn more"}))])]})]})]})}),l.jsx(c("BillingHubWizardButton.react"),{eventContext:"spend_more_register_user_intent",label:h._("Increase limit"),pageComponentName:"balance",targetName:"spend_more_button",uplExtraData:{experience_name:"DSL_BOOST"},wizardProps:{wizardName:"SPEND_MORE"}})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubPaymentSettingsSpendMoreDSLEntrypoint_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{defaultValue:"PAYMENT_SETTINGS",kind:"LocalArgument",name:"caller"}],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsSpendMoreDSLEntrypoint_billableAccount",selections:[{alias:null,args:[{kind:"Variable",name:"caller",variableName:"caller"}],concreteType:"XFBDailySpendLimitActionFramework",kind:"LinkedField",name:"xfb_daily_spend_limit_action_framework",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"dsl_content_spend_more",storageKey:null},{alias:null,args:null,concreteType:"XFBDailySpendLimitEducationExperienceFlags",kind:"LinkedField",name:"updated_education_experience",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"updated_help_center_articles",storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_dsl",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingAddFundsUsingRecurringLPMCredentialStateInitQuery.graphql",["BillingAddFundsUsingRecurringLPMCredentialStateInitQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAddFundsUsingRecurringLPMCredentialStateInitQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAddFundsUsingRecurringLPMCredentialStateInitQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[f,d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null},g],storageKey:null},g],storageKey:null}]},params:{id:b("BillingAddFundsUsingRecurringLPMCredentialStateInitQuery_facebookRelayOperation"),metadata:{},name:"BillingAddFundsUsingRecurringLPMCredentialStateInitQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingDraftAutoReloadScreen.react",["BillingAutoReloadConstants","BillingCurrencyAmount","BillingDraftAutoReloadScreenQuery.graphql","BillingDraftAutoReloadView.react","BillingPrepayUtils","BillingWrapperWithForm.react","RelayHooks","react","regeneratorRuntime","useBillingLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useMemo,m=h!==void 0?h:h=b("BillingDraftAutoReloadScreenQuery.graphql");function a(a){var e,f=a.onSubmit,g=a.preloadedQuery;a=a.wrapperProps;var h=c("useBillingLogger")();g=d("RelayHooks").usePreloadedQuery(m,g);g=g==null?void 0:g.billable_account_by_payment_account;var i=(e=g==null?void 0:g.currency)!=null?e:"USD",n=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(e=g.prepay_details)==null?void 0:e.min_acceptable_amount),o=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(e=g.prepay_details)==null?void 0:e.max_acceptable_amount),p=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(e=g.prepay_details)==null?void 0:e.default_funding_amount),q=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(e=g.auto_reload_info)==null?void 0:e.auto_reload_trigger_threshold);g=k(function(a){var c,e;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:c=d("BillingCurrencyAmount").getFromUserInput(a.reloadAmount,i);e=d("BillingCurrencyAmount").getFromUserInput(a.triggerAmount,i);g.prev=2;g.next=5;return b("regeneratorRuntime").awrap(f(c,e));case 5:g.next=10;break;case 7:g.prev=7;g.t0=g["catch"](2);throw g.t0;case 10:case"end":return g.stop()}},null,this,[[2,7]])},[i,f]);var r=d("BillingCurrencyAmount").createZero(i).format({showSymbol:!1});e=l(function(){var a;return{reloadAmount:{defaultValue:(a=p==null?void 0:p.format({showSymbol:!1}))!=null?a:r,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,i);a=d("BillingPrepayUtils").validateAmount(a,n,o,h);if(a!=null)return{message:a,validationState:"ERROR"}}},triggerAmount:{defaultValue:(a=q==null?void 0:q.format({showSymbol:!1}))!=null?a:r,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,i);a=d("BillingPrepayUtils").validateAmountForReloadThreshold(a,h);if(a!=null)return{message:a,validationState:"ERROR"}}}}},[i,p,h,o,n,q,r]);return j.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:e,onSubmit:g,title:c("BillingAutoReloadConstants").autoReloadTitle,children:j.jsx(c("BillingDraftAutoReloadView.react"),{maxReloadAmount:o==null?void 0:o.toString(),minReloadAmount:n==null?void 0:n.toString()})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=m;g.BillingDraftAutoReloadScreen=a}),98);
-----
useBillingInfoEstimatedTaxV2",["BillingCurrencyAmount","useBillingInfoPaymentSectionDetailsV2"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){a=c("useBillingInfoPaymentSectionDetailsV2")(a,b);b=a==null?void 0:a.estimated_tax;a=d("BillingCurrencyAmount").getFromPECurrencyAmount(b==null?void 0:b.total);b=b==null?void 0:(b=b.taxes)==null?void 0:b.map(function(a){var b=d("BillingCurrencyAmount").getFromPECurrencyAmount(a==null?void 0:a.tax_amount);return{amount:b,taxName:a==null?void 0:a.tax_name,taxRate:a==null?void 0:a.tax_rate}});return{taxes:b,totalBudget:a}}g["default"]=a}),98);
-----
PolarisBoostProhibitionUtils",["InstagramBoostOnWebApiMismatchFalcoEvent","PolarisBoostBudgetAndDurationUtils","PolarisBoostDefaultValues.react","PolarisBoostDurationType","PolarisBoostInstagramPositions.entrypointutils","PolarisBoostObjectiveUtils","PolarisGenericStrings","XIGIGBoostDestinationRecommendationReasonUtils.instagram","deepEquals","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=6,i=function(){if(c("gkx")("25340"))for(var a=arguments.length,b=new Array(a),d=0;d1;v=v==null?void 0:v.dsa_data;var H=B==null?void 0:B.boosting_status,I=e==null?void 0:e.selected_audience,J=(f=w==null?void 0:w.currency)!=null?f:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY,K=(f=w==null?void 0:w.currency_offset)!=null?f:100;f=d("XIGIGBoostDestinationRecommendationReasonUtils.instagram").toJSEnum(E==null?void 0:(f=E.recommended_destination)==null?void 0:f.destination_recommendation_reason);var L="";(t==null?void 0:t.country_prefix)!=null&&(t==null?void 0:t.country_prefix)!==""&&(t==null?void 0:t.phone_number)!=null&&(t==null?void 0:t.phone_number)!==""&&(L="+"+(t==null?void 0:t.country_prefix)+" "+(t==null?void 0:t.phone_number));t=(E==null?void 0:(t=E.eligible_objectives)==null?void 0:t.includes(d("PolarisBoostObjectiveUtils").WHATSAPP_MESSAGE))===!0;g=d("PolarisBoostObjectiveUtils").getIsWebSupportedObjective(e==null?void 0:(g=e.selected_objectives)==null?void 0:g.selected_destination,t);var M=H==="DRAFT"&&y==="DRAFT_PROMOTE";y=(y==="BOOST_AGAIN"||y==="STREAMLINED_PROMOTE")&&g;g=d("PolarisBoostObjectiveUtils").getRecommendedDestination(E==null?void 0:(g=E.recommended_destination)==null?void 0:g.recommended_destination,f,y,M,t,L);f=y||M?(f=e==null?void 0:(f=e.selected_objectives)==null?void 0:f.selected_destination)!=null?f:d("PolarisBoostDefaultValues.react").DEFAULT_GOAL:(f=g)!=null?f:d("PolarisBoostDefaultValues.react").DEFAULT_GOAL;i=d("PolarisBoostObjectiveUtils").isMessagingObjective(f)?(i=d("PolarisBoostObjectiveUtils").getMessagingCTAFromObjective(f))!=null?i:void 0:void 0;l=(l=e==null?void 0:(l=e.selected_objectives)==null?void 0:l.selected_cta)!=null?l:void 0;l=y||M?l:i;i=d("PolarisBoostObjectiveUtils").getMessagingToolSelected(f,B==null?void 0:B.messaging_tool_selected,t,L);E=d("PolarisBoostObjectiveUtils").getSelectedMessagingCTA(i,E==null?void 0:E.selected_messaging_cta);m=(y||M)&&f==="WEBSITE_CLICK"?(m=e==null?void 0:(m=e.selected_objectives)==null?void 0:m.selected_website_url)!=null?m:void 0:void 0;n=(n=B==null?void 0:B.profile_website_url)!=null?n:void 0;m=(m=m)!=null?m:c("gkx")("1342")?n:void 0;n=y||M;var N=["ig_boost_web_acquisition_ads_credit_5","ig_boost_web_acquisition_ads_credit_15","ig_boost_web_acquisition_ads_credit_40"];N=N.includes(x==null?void 0:(N=x.product)==null?void 0:N.toLowerCase());N=N&&(x==null?void 0:x.coupon_status)==="CLAIM_SUCCESS"&&(x==null?void 0:(N=x.coupon_balance)==null?void 0:N.amount_with_offset)!=null&&parseInt(x==null?void 0:(N=x.coupon_balance)==null?void 0:N.amount_with_offset,10)>0;var O=w==null?void 0:w.payment_info;D=D==null?void 0:D.is_accepted;o=w==null?void 0:(o=w.budget_and_duration_info)==null?void 0:o.daily_budget_options;p=((p=o)!=null?p:[]).map(function(b){return d("PolarisBoostBudgetAndDurationUtils").maybeIncreaseValueForABTest(parseInt(b==null?void 0:b.offset_amount,10),a)}).map(function(a){return d("PolarisBoostBudgetAndDurationUtils").getBillingCurrencyAmount(a,J,K)});q=w==null?void 0:(q=w.budget_and_duration_info)==null?void 0:(q=q.default_daily_budget)==null?void 0:q.offset_amount;o=d("PolarisBoostBudgetAndDurationUtils").getInitialDailyBudget({abTestMediaIDs:a,currency:J,currencyOffset:K,defaultDailyBudget:p[0],initInfoDailyBudgetOptionsWithOffset:((o=o)!=null?o:[]).map(function(a){return parseInt(a==null?void 0:a.offset_amount,10)}),initInfoDailyBudgetWithOffset:parseInt(q,10),prefillInfoDailyBudgetWithOffset:parseInt(e==null?void 0:(o=e.selected_budget)==null?void 0:o.offset_amount,10)});r=d("PolarisBoostBudgetAndDurationUtils").getInitialDurationInDays(e==null?void 0:e.selected_duration,(r=w==null?void 0:(r=w.budget_and_duration_info)==null?void 0:r.default_duration)!=null?r:h,y,M);C=(C=C)!=null?C:[];var P=C.find(function(a){return((a=a.eligibility)==null?void 0:a.is_eligible)===!1});C=function(){if(P!=null){var a,b=P.eligibility;return{displayMessage:(a=b==null?void 0:b.ineligible_reason)!=null?a:d("PolarisGenericStrings").GENERIC_ERROR_MESSAGE,identifier:(a=b==null?void 0:b.error_identifier)!=null?a:"ineligible_ab_test_media"}}if(A&&A.is_eligible===!1&&A.error_identifier!=="ad_account_unsettled"){return{displayMessage:(b=A.ineligible_reason)!=null?b:d("PolarisGenericStrings").GENERIC_ERROR_MESSAGE,identifier:(a=A.error_identifier)!=null?a:"empty_error_identifier"}}return u==null?{displayMessage:d("PolarisGenericStrings").GENERIC_ERROR_MESSAGE,identifier:"empty_init_info"}:null};O={audience:{audienceCode:k(I==null?void 0:I.audience_type),audienceID:(s=I==null?void 0:I.audience_id)!=null?s:d("PolarisBoostDefaultValues.react").DEFAULT_AUDIENCE.audienceID,displayName:(s=I==null?void 0:I.display_name)!=null?s:"",geoLocations:(I==null?void 0:I.geolocations)?I==null?void 0:I.geolocations.map(function(a){return{country_code:null,display_name:(a=a.name)!=null?a:"",key:"",latitude:null,location_type:"COUNTRY",longitude:null,primary_city_key:null,radius:null,region_key:null}}):void 0,interests:((s=I==null?void 0:I.interests)!=null?s:[]).map(function(a){return{id:"",name:a}}),maxAge:(s=I==null?void 0:I.max_age)!=null?s:0,minAge:(s=I==null?void 0:I.min_age)!=null?s:0,subjectToDSA:(s=I==null?void 0:I.subject_to_dsa)!=null?s:void 0,subjectToTaiwanFinserv:(s=I==null?void 0:I.subject_to_taiwan_finserv)!=null?s:void 0,targetGenders:!(I==null?void 0:I.genders)||I.genders.length===0?"ALL":I.genders[0],targetRelaxOption:(s=I==null?void 0:I.targeting_relax_option)!=null?s:"NONE",targetSpec:I==null?void 0:I.targeting_spec_string},boostingStatus:(s=H)!=null?s:void 0,budgetDurationSuggestions:{dailyBudgetSuggestion:d("PolarisBoostBudgetAndDurationUtils").getBillingCurrencyAmount((I=parseInt(q,10))!=null?I:100,J,K),durationSuggestion:(s=w==null?void 0:(H=w.budget_and_duration_info)==null?void 0:H.default_duration)!=null?s:6},budgetLimitWithOffset:(q=O==null?void 0:O.budget_limit_with_offset)!=null?q:0,budgetSpentWithOffset:(I=O==null?void 0:O.budget_spent_with_offset)!=null?I:0,coupon:N?{balance:{amount:(s=parseInt(x==null?void 0:(H=x.coupon_balance)==null?void 0:H.amount_with_offset,10))!=null?s:0,currency:(O=x==null?void 0:(q=x.coupon_balance)==null?void 0:q.currency)!=null?O:""},expiryDate:(I=x==null?void 0:x.expiry_date)!=null?I:""}:null,cta:l,currencyOffset:K,dailyBudget:o,dailyBudgetOptions:p,displayURL:(N=F==null?void 0:F.thumbnail_display_url)!=null?N:"",draftId:M?e==null?void 0:(H=e.draft)==null?void 0:H.id:void 0,dsa:{beneficiary:(s=v==null?void 0:v.beneficiary)!=null?s:"",hasCompletedDSAFlow:(q=v==null?void 0:v.has_completed_dsa_flow)!=null?q:!0,payor:(O=v==null?void 0:v.payor)!=null?O:b},durationInDays:r,durationType:(e==null?void 0:e.selected_duration)===0&&!G?c("PolarisBoostDurationType").INDEFINITE:c("PolarisBoostDurationType").SET_DURATION,estimatedReach:{max:(I=w==null?void 0:(x=w.budget_and_duration_info)==null?void 0:x.reach_estimate_upper_bound)!=null?I:0,min:(o=w==null?void 0:(l=w.budget_and_duration_info)==null?void 0:l.reach_estimate_lower_bound)!=null?o:0},goal:f,initPromoteError:C(),instagramPositions:d("PolarisBoostInstagramPositions.entrypointutils").getEligiblePositions(z),isBoostedAgain:y,isCTWAEligible:t,isDraft:M,isPoliticalAdWithAI:(y||M)&&(F==null?void 0:F.authorization_category)==="POLITICAL_WITH_DIGITALLY_CREATED_MEDIA",isPrefilled:n,mediaType:j(B==null?void 0:B.product_type),messagingToolSelected:i,minSuggestedBudget:(N=w==null?void 0:(p=w.budget_and_duration_info)==null?void 0:p.min_daily_budget)!=null?N:0,recommendedGoal:g,regulatedCategories:(y||M)&&!((e==null?void 0:(H=e.selected_regulated_categories)==null?void 0:H.length)===1&&(e==null?void 0:(s=e.selected_regulated_categories)==null?void 0:s[0])==="NONE")?(v=e==null?void 0:(q=e.selected_regulated_categories)==null?void 0:q.filter(function(a){return a!=="ISSUES_ELECTIONS_POLITICS"}))!=null?v:[]:[],selectedMessagingCTA:E,showNDPScreen:!D,temporaryWhatsAppNumber:{country_prefix:"",phone_number:""},website:m,whatsAppNumber:L};b={currency:J};return{initialGlobalProps:O,initialSharedContextValues:b}};a=function(a){var b=a.abTestMediaIDs,c=a.distilleryAPIName,d=a.distilleryGlobalProps,e=a.distillerySharedContextValues,f=a.instagramUserID,g=a.mediaIGID,h=a.prohibitionAPIName,i=a.prohibitionData;a=a.username;b=l(b,a,i);a=b.initialGlobalProps;i=b.initialSharedContextValues;if(a.initPromoteError!=null){m(["initPromoteError"],d,a,c,h,f,g);return}m(["isDraft","draftId","isBoostedAgain","durationInDays","durationType","dsa","boostingStatus","budgetDurationSuggestions","coupon","cta","dailyBudget","displayURL","dailyBudgetOptions","estimatedReach","isCTWAEligible","isPrefilled","isPoliticalAdWithAI","instagramPositions","mediaType","minSuggestedBudget","audience","messagingToolSelected","selectedMessagingCTA","goal","regulatedCategories","currencyOffset","recommendedGoal","budgetLimitWithOffset","budgetSpentWithOffset","showNDPScreen","temporaryWhatsAppNumber","website","whatsAppNumber"],d,a,c,h,f,g);m(["currency"],e,i,c,h,f,g)};function m(a,b,d,e,f,g,h){a.forEach(function(a){var j=b[a],k=d[a],l;Array.isArray(k)&&Array.isArray(j)&&(k=[].concat(k).sort(),j=[].concat(j).sort());!c("deepEquals")(j,k)?l=!1:l=!0;l||i(a,"Data mismatch: ","Distillery: ",j,"Prohibition: ",k);n({distilleryAPIName:e,distilleryData:(j=JSON.stringify((j=j)!=null?j:{}))!=null?j:"",instagramUserID:g,isEqual:l,key:a,mediaIGID:h,prohibitionAPIName:f,prohibitionData:(l=JSON.stringify((j=k)!=null?j:{}))!=null?l:""})})}var n=function(a){var b=a.distilleryAPIName,d=a.distilleryData,e=a.instagramUserID,f=a.isEqual,g=a.key,h=a.mediaIGID,i=a.prohibitionAPIName,j=a.prohibitionData;c("InstagramBoostOnWebApiMismatchFalcoEvent").log(function(){var a;return{distillery_api:b,distillery_response:d,instagram_user_id:(a=e)!=null?a:"0",is_equal:f,key:g,media_igid:h,prohibition_api:i,prohibition_response:j}})};g.getGlobalPropsAndSharedContextValuesFromProhibition=l;g.compareBFAMigrationValues=a;g.logDataResponse=n}),98);
-----
usePolarisBoostFetchInitialData",["CometRelay","PolarisBoostBudgetAndDurationUtils","PolarisBoostDefaultValues.react","PolarisBoostDurationType","PolarisBoostInitPromotePreloadedQuery.entrypointutils","PolarisBoostInstagramPositions.entrypointutils","PolarisBoostObjectiveUtils","PolarisBoostProhibitionUtils","PolarisBoostQPLUtils","PolarisGenericStrings","filterNulls","gkx","isTruthy","react","usePolarisBoostFetchInitialDataProhibitionQuery.graphql","usePolarisBoostFetchInitialDataQuery.graphql","usePolarisViewer"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useMemo,l=function(a){switch(a){case"story":return"story";case"clips":return"reel";case"post":default:return"post"}},m=h!==void 0?h:h=b("usePolarisBoostFetchInitialDataProhibitionQuery.graphql"),n=i!==void 0?i:i=b("usePolarisBoostFetchInitialDataQuery.graphql");function a(a){var b,e,f,g,h,i,j,o,p,q,r,s,t,u=a.abTestMediaIDs,v=a.initialProhibitionDataQueryRef,w=a.initPromoteQueryReference,x=a.logger;a=a.mediaID;v=d("CometRelay").usePreloadedQuery(m,v);var y=v.xfb_ig_boost_flow_from_media_igid;b=(b=y==null?void 0:y.boost_media_info_for_multiple_media_by_igid)!=null?b:[];var z=b.find(function(a){return((a=a.eligibility)==null?void 0:a.is_eligible)===!1});b=b.map(function(a){var b;return{igid:(b=a.igid)!=null?b:"",thumbnailURL:(b=a.thumbnail_display_url)!=null?b:""}});w=d("CometRelay").usePreloadedQuery(n,w);var A=w.graduationCreationPackageInfo,B=w.whatsappNumberInfo,C=w.xdt_ads_promote_init_promote_graphql,D=C.couponInfo,E=C.error,F=C.initInfo;C=C.prefillInfo;var G=w.xdt_ads_promote_non_disc_info.non_discrimination_policy_info,H=G.isAccepted;G=G.isBlockingCreate;w=w.xdt_ads_promote_review_screen_details_v2.paymentInfo;d("PolarisBoostQPLUtils").markBoostEnterFlowEnd(x.getFlowID());var I=u!=null&&u.length>1;e=(F==null?void 0:(e=F.eligible_objectives)==null?void 0:e.includes(d("PolarisBoostObjectiveUtils").WHATSAPP_MESSAGE))===!0;var J=d("PolarisBoostObjectiveUtils").getIsWebSupportedObjective(C==null?void 0:C.destination,e);y=y==null?void 0:y.sales_objective_info;y=c("filterNulls")((y=y==null?void 0:(y=y.shopify_stores)==null?void 0:y.map(function(a){return a.website}))!=null?y:[]);y={eligibleDomains:y,selections:null,shouldShowSalesObjective:y.length>0&&c("gkx")("4751")};f=((f=C==null?void 0:C.is_boosted_again)!=null?f:!1)&&J;f&&x.setPromoteFlowType("streamlined_promote");J="";(B==null?void 0:B.country_prefix)!=null&&(B==null?void 0:B.country_prefix)!==""&&(B==null?void 0:B.phone_number)!=null&&(B==null?void 0:B.phone_number)!==""&&(J="+"+(B==null?void 0:B.country_prefix)+" "+(B==null?void 0:B.phone_number));B=(F==null?void 0:F.boosting_status)==="DRAFT"&&(C==null?void 0:C.draft_id)!=null;B&&x.setPromoteFlowType("draft_promote");var K=(f||B)&&C!=null,L=(g=F==null?void 0:F.currency_offset)!=null?g:100;g=((g=F==null?void 0:F.daily_budget_options_with_offset)!=null?g:[]).map(function(a){return d("PolarisBoostBudgetAndDurationUtils").maybeIncreaseValueForABTest(a,u)}).map(function(a){return d("PolarisBoostBudgetAndDurationUtils").getBillingCurrencyAmount(a,F==null?void 0:F.currency,L)});h=d("PolarisBoostBudgetAndDurationUtils").getInitialDailyBudget({abTestMediaIDs:u,currency:F==null?void 0:F.currency,currencyOffset:L,defaultDailyBudget:g[0],initInfoDailyBudgetOptionsWithOffset:(h=F==null?void 0:F.daily_budget_options_with_offset)!=null?h:[],initInfoDailyBudgetWithOffset:F==null?void 0:F.default_daily_budget_with_offset,prefillInfoDailyBudgetWithOffset:C==null?void 0:C.daily_budget_with_offset});i=(i=c("usePolarisViewer")())!=null?i:{};var M=i.id;i=i.username;var N=f||B?C==null?void 0:C.audience:void 0,O=k(function(){if(z!=null){var a,b=z.eligibility;return{displayMessage:(a=b==null?void 0:b.ineligible_reason)!=null?a:d("PolarisGenericStrings").GENERIC_ERROR_MESSAGE,identifier:(a=b==null?void 0:b.error_identifier)!=null?a:"ineligible_ab_test_media"}}if(E&&E.error_identifier!=="ad_account_unsettled")return{displayMessage:E.display_message,identifier:E.error_identifier};return F==null?{displayMessage:d("PolarisGenericStrings").GENERIC_ERROR_MESSAGE,identifier:"empty_init_info"}:null},[E,F,z]),P=["ig_boost_web_acquisition_ads_credit_5","ig_boost_web_acquisition_ads_credit_15","ig_boost_web_acquisition_ads_credit_40"];P=P.includes(D==null?void 0:(P=D.product)==null?void 0:P.toLowerCase());P=P&&(D==null?void 0:D.coupon_status)==="HAS_CLAIMED"&&(D==null?void 0:(P=D.coupon_balance)==null?void 0:P.amount_with_offset)!=null&&(D==null?void 0:(P=D.coupon_balance)==null?void 0:P.amount_with_offset)>0;var Q=d("PolarisBoostObjectiveUtils").getRecommendedDestination(F==null?void 0:F.recommended_destination,F==null?void 0:F.destination_recommendation_reason,f,B,e,J);j=f||B?(j=C==null?void 0:C.destination)!=null?j:d("PolarisBoostDefaultValues.react").DEFAULT_GOAL:(j=Q)!=null?j:d("PolarisBoostDefaultValues.react").DEFAULT_GOAL;var R=d("PolarisBoostObjectiveUtils").getMessagingToolSelected(j,F==null?void 0:F.messaging_tool_selected,e,J);o=d("PolarisBoostObjectiveUtils").isMessagingObjective(j)?(o=d("PolarisBoostObjectiveUtils").getMessagingCTAFromObjective(j))!=null?o:void 0:void 0;p=f||B?(p=C==null?void 0:C.call_to_action)!=null?p:void 0:o;o=d("PolarisBoostObjectiveUtils").getSelectedMessagingCTA(R,F==null?void 0:F.selected_messaging_cta);q=f||B?(q=C==null?void 0:C.call_to_action)!=null?q:d("PolarisBoostDefaultValues.react").DEFAULT_WEBSITE_CTA:d("PolarisBoostDefaultValues.react").DEFAULT_WEBSITE_CTA;r=(f||B)&&j==="WEBSITE_CLICK"?(r=C==null?void 0:C.website_url)!=null?r:void 0:void 0;s=(s=F==null?void 0:F.profile_website_url)!=null?s:void 0;r=(r=r)!=null?r:c("gkx")("1342")?s:void 0;s=d("PolarisBoostBudgetAndDurationUtils").getInitialDurationInDays(C==null?void 0:C.duration_in_days,F==null?void 0:F.default_duration_in_days,f,B);D={adFormatPreferences:[],adPreviewMediaID:a,audience:{audienceCode:(t=N==null?void 0:N.audience_code)!=null?t:d("PolarisBoostDefaultValues.react").DEFAULT_AUDIENCE.audienceCode,audienceID:(t=N==null?void 0:N.audience_id)!=null?t:d("PolarisBoostDefaultValues.react").DEFAULT_AUDIENCE.audienceID,displayName:(t=N==null?void 0:N.display_name)!=null?t:"",geoLocations:(N==null?void 0:N.geo_locations)?N==null?void 0:N.geo_locations.map(function(a){return{country_code:null,display_name:a,key:"",latitude:null,location_type:"COUNTRY",longitude:null,primary_city_key:null,radius:null,region_key:null}}):void 0,interests:((t=N==null?void 0:N.interests)!=null?t:[]).map(function(a){return{id:"",name:a}}),maxAge:(t=N==null?void 0:N.max_age)!=null?t:0,minAge:(t=N==null?void 0:N.min_age)!=null?t:0,subjectToDSA:(t=N==null?void 0:N.subject_to_dsa)!=null?t:void 0,subjectToTaiwanFinserv:(t=N==null?void 0:N.subject_to_taiwan_finserv)!=null?t:void 0,targetGenders:!(N==null?void 0:N.genders)||N.genders.length===0?"ALL":N.genders[0],targetRelaxOption:(t=N==null?void 0:N.target_relax_option)!=null?t:"NONE",targetSpec:N==null?void 0:N.target_spec_string},boostingStatus:(t=F==null?void 0:F.boosting_status)!=null?t:void 0,budgetDurationSuggestions:{dailyBudgetSuggestion:d("PolarisBoostBudgetAndDurationUtils").getBillingCurrencyAmount((N=F==null?void 0:F.default_daily_budget_with_offset)!=null?N:100,F==null?void 0:F.currency,L),durationSuggestion:(t=F==null?void 0:F.default_duration_in_days)!=null?t:6},budgetLimitWithOffset:(N=w==null?void 0:w.budget_limit_with_offset)!=null?N:0,budgetSpentWithOffset:(t=w==null?void 0:w.budget_spent_with_offset)!=null?t:0,coupon:P?{balance:{amount:(w=D==null?void 0:(N=D.coupon_balance)==null?void 0:N.amount_with_offset)!=null?w:0,currency:(P=D==null?void 0:(t=D.coupon_balance)==null?void 0:t.currency)!=null?P:""},expiryDate:(N=D==null?void 0:D.expiry_date)!=null?N:""}:null,cta:p,currencyOffset:(w=F==null?void 0:F.currency_offset)!=null?w:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY_OFFSET,dailyBudget:h,dailyBudgetOptions:g,displayURL:(t=F==null?void 0:F.display_url)!=null?t:"",draftId:B?C==null?void 0:C.draft_id:void 0,dsa:{beneficiary:(N=(D=F==null?void 0:(P=F.dsa_data)==null?void 0:P.beneficiary)!=null?D:i)!=null?N:"",hasCompletedDSAFlow:(w=F==null?void 0:(p=F.dsa_data)==null?void 0:p.has_completed_dsa_flow)!=null?w:!0,payor:(t=(g=F==null?void 0:(h=F.dsa_data)==null?void 0:h.payor)!=null?g:i)!=null?t:""},durationInDays:s,durationType:(C==null?void 0:C.duration_in_days)===0&&!I?c("PolarisBoostDurationType").INDEFINITE:c("PolarisBoostDurationType").SET_DURATION,estimatedReach:{max:(D=C==null?void 0:(P=C.reach_estimate)==null?void 0:P.upper_bound)!=null?D:0,min:(p=C==null?void 0:(N=C.reach_estimate)==null?void 0:N.lower_bound)!=null?p:0},goal:j,graduationCreationPackageInfo:{cp_type:A==null?void 0:(w=A.creation_package_info)==null?void 0:w.cp_type,is_eligible:c("isTruthy")(A==null?void 0:A.is_eligible)&&!f,recommendation_placement:A==null?void 0:A.recommendation_placement,should_log_exposure:c("isTruthy")(A==null?void 0:A.should_log_exposure),url:A==null?void 0:(h=A.creation_package_info)==null?void 0:h.url},hasDismissedInterstitial:!1,id:M,initPromoteError:O,instagramPositions:d("PolarisBoostInstagramPositions.entrypointutils").getEligiblePositions(F==null?void 0:F.instagram_positions),isBoostedAgain:f,isCTWAEligible:e,isDraft:B,isEligibleForAdFormatPreferences:!1,isNonOrganicAdCreation:x.getEntryPoint()==="ads_manager_ad_creation",isPoliticalAdWithAI:(f||B)&&(C==null?void 0:C.authorization_category)==="POLITICAL_WITH_DIGITALLY_CREATED_MEDIA",isPrefilled:K,mediaType:l(F==null?void 0:F.media_product_type),messagingToolSelected:R,minSuggestedBudget:(g=F==null?void 0:F.min_suggested_total_budget_with_offset)!=null?g:0,recommendedGoal:Q,regulatedCategories:(f||B)&&!((C==null?void 0:(t=C.regulated_categories)==null?void 0:t.length)===1&&(C==null?void 0:(s=C.regulated_categories)==null?void 0:s[0])==="NONE")?(P=C==null?void 0:(I=C.regulated_categories)==null?void 0:I.filter(function(a){return a!=="ISSUES_ELECTIONS_POLITICS"}))!=null?P:[]:[],selectedMessagingCTA:o,showAccountSpendLimitWarning:!1,showAdsScheduler:!1,showNDPScreen:!H&&G,startTime:null,temporaryWhatsAppNumber:{country_prefix:"",phone_number:""},website:r,whatsAppNumber:J};j={abTestMedia:b,adAccountID:(N=F==null?void 0:F.ad_account_id)!=null?N:"",currency:(p=F==null?void 0:F.currency)!=null?p:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY,salesObjectiveData:y,selectedWebsiteCTA:q};if(d("PolarisBoostInitPromotePreloadedQuery.entrypointutils").getIsDoubleReadEnabled())try{d("PolarisBoostProhibitionUtils").compareBFAMigrationValues({abTestMediaIDs:u,distilleryAPIName:"xdt_ads_promote_init_promote_graphql",distilleryGlobalProps:D,distillerySharedContextValues:j,instagramUserID:M,mediaIGID:a,prohibitionAPIName:"xfb_ig_boost_flow_from_media_igid",prohibitionData:v,username:(w=i)!=null?w:""})}catch(a){x.logActionError("double_read_init_fetch",a.identifier,a.displayMessage.toString(),"init_boost_error")}if(d("PolarisBoostInitPromotePreloadedQuery.entrypointutils").getShouldUseProhibitionEndpoint({context:x.getEntryPoint()})){h=d("PolarisBoostProhibitionUtils").getGlobalPropsAndSharedContextValuesFromProhibition(u,(A=i)!=null?A:"",v);O=h.initialGlobalProps;e=h.initialSharedContextValues;return{initialGlobalProps:babelHelpers["extends"]({},D,O),initialSharedContextValues:babelHelpers["extends"]({},j,e)}}return{initialGlobalProps:D,initialSharedContextValues:j}}g["default"]=a}),98);
-----
PolarisBoostSummaryScreen.react",["BillingCurrencyAmount","CometRelay","CometRelayEnvironment","IGDSBox.react","IGDSText.react","PolarisBillingRelayEnvironment","PolarisBoostAudienceDetailStrings","PolarisBoostAudienceUtils","PolarisBoostBlockingBUATFetcher.react","PolarisBoostBudgetAndDurationUtils","PolarisBoostBudgetFormatUtils","PolarisBoostDefaultValues.react","PolarisBoostDurationType","PolarisBoostGatingUtils","PolarisBoostGenericErrorScreen.react","PolarisBoostGetBudgetForBillingWizard","PolarisBoostInstagramPositions.entrypointutils","PolarisBoostInterstitial.react","PolarisBoostObjectiveScreenStrings","PolarisBoostPaymentMethodTypeConverter","PolarisBoostScreenContext","PolarisBoostScreenGlimmer.react","PolarisBoostScreenWrapper.react","PolarisBoostSubmitBoostErrorDialog.react","PolarisBoostSubmitButtonLabel","PolarisBoostSubmitFooterText.react","PolarisBoostSummaryScreenStrings","PolarisBoostSummaryView.react","PolarisBoostUtils.react","cr:3482","deepEquals","react","usePolarisBoostBillingWizard","usePolarisBoostCreatePromotion.react","usePolarisBoostFetchAdFormatPreferences","usePolarisBoostScreenContext","usePolarisBoostSharedContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;var j=e.useContext,k=e.useEffect,l=e.useMemo,m=e.useRef,n=e.useState,o={submitFooterTextInline:{paddingStart:"x1swvt13",paddingLeft:null,paddingRight:null,paddingEnd:"x1pi30zi",$$css:!0}};function p(a,b,e,f){b===void 0&&(b="");e===void 0&&(e="");f===void 0&&(f="");if(a==="WHATSAPP_MESSAGE")return d("PolarisBoostObjectiveScreenStrings").getTranslatedGoalType(a)+" | "+f;f="";var g="";switch(a){case"DIRECT_MESSAGE":f=d("PolarisBoostObjectiveScreenStrings").OBJECTIVE_SCREEN_MESSAGES_OPTION_SUMMARY.toString();g=b;break;case"PROFILE_VISITS":f=d("PolarisBoostObjectiveScreenStrings").OBJECTIVE_SCREEN_PROFILE_OPTION_SUMMARY.toString();g=b;break;case"WEBSITE_CLICK":f=d("PolarisBoostObjectiveScreenStrings").OBJECTIVE_SCREEN_WEBSITE_OPTION_SUMMARY.toString();g=e;break;default:break}return i.jsxs(c("IGDSBox.react"),{direction:"row",children:[i.jsx(c("IGDSText.react").Body,{color:"secondaryText",maxLines:1,zeroMargin:!0,children:f}),i.jsx(c("IGDSBox.react"),{marginStart:1,children:i.jsx(c("IGDSText.react").BodyEmphasized,{color:"secondaryText",maxLines:1,zeroMargin:!0,children:g})})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b,c;b=d("BillingCurrencyAmount").createZero((b=a==null?void 0:(b=a[0])==null?void 0:(b=b.amount)==null?void 0:b.currency)!=null?b:"USD");c=(c=a==null?void 0:a.length)!=null?c:0;for(var e=0;e-----
PolarisBoostStringFormatter",["fbt","BillingCurrencyAmount","PolarisBoostCreateOrEditAudienceScreenStrings"],(function(a,b,c,d,e,f,g,h){"use strict";var i=1e4,j=1e6;function k(a){if(a=i&&a-----
BillingHubSharedPrepaidFundsScreen.react",["ix","BillingCurrencyAmount","BillingHistoryUnifiedStrings","BillingHubFilterContainer.react","BillingHubFilterUtils","BillingHubSharedPrepaidFundsScreen_paymentAccount.graphql","BillingHubSharedPrepaidFundsScreen_viewer.graphql","BillingHubSharedPrepaidFundsSelector.react","BillingHubSharedPrepaidFundsTransactionTable.react","BillingHubSharedStoredBalanceActionButton.react","BillingHubTableLoadingState.react","BillingHubTransactionFilterDefinitions","BillingPaymentMethodDisplay","CometPlaceholder.react","DateConsts","GeoCard.react","GeoDateRangePresets","GeoFlexbox.react","GeoHeading.react","GeoSection.react","Image.react","RelayHooks","react","useBillingSurfaceLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useState,o={balanceText:{marginEnd:"xq8finb",marginLeft:null,marginRight:null,$$css:!0}},p=i!==void 0?i:i=b("BillingHubSharedPrepaidFundsScreen_paymentAccount.graphql"),q=j!==void 0?j:j=b("BillingHubSharedPrepaidFundsScreen_viewer.graphql"),r=[c("GeoDateRangePresets").TODAY,c("GeoDateRangePresets").YESTERDAY,c("GeoDateRangePresets").LAST_7_DAYS,c("GeoDateRangePresets").LAST_14_DAYS,c("GeoDateRangePresets").LAST_28_DAYS,c("GeoDateRangePresets").THIS_MONTH,d("BillingHubFilterUtils").LAST_MONTH];function a(a){var b,e,f=a.businessID,g=a.paymentAccountRef,i=a.paymentMethodID;a=a.viewerRef;g=d("RelayHooks").useFragment(p,g);a=d("RelayHooks").useFragment(q,a);var j=Number((a=a==null?void 0:(a=a.business_scoping)==null?void 0:a.business_user_timezone_id)!=null?a:"0");a=((a=g.billing_payment_methods)!=null?a:[]).filter(function(a){var b;return((b=a.credential)==null?void 0:b.id)!=null&&((b=a.credential)==null?void 0:b.__typename)==="StoredBalance"});var k=i!=null&&i!==""?a.find(function(a){return((a=a.credential)==null?void 0:a.id)===i}):null;k=(k=k)!=null?k:a[0];b=n((b=k==null?void 0:(b=k.credential)==null?void 0:b.id)!=null?b:"");var s=b[0],t=b[1];b=a.find(function(a){return((a=a.credential)==null?void 0:a.id)===s});e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:(e=b.credential)==null?void 0:e.balance_amount);var u=Math.round(Date.now()/1e3)+d("DateConsts").SEC_PER_DAY;u={end_time:u,entity_types:["STORED_BALANCE_LOG"],filters:[{field:"PAYMENT_METHOD_ID",operator:"CONTAINS_ALL",value:[s]}],start_time:u-d("DateConsts").SEC_PER_DAY*30};u=n(u);var v=u[0],w=u[1];u=n(j);var x=u[0],y=u[1];u=d("BillingHubFilterUtils").getDateRangeValue(v.start_time,v.end_time);var z=c("useBillingSurfaceLogger")(),A=m(function(a,b,c){var e;e=b==null?void 0:(e=b.interval)==null?void 0:e.start.toInstant((e=c)!=null?e:j);b=b==null?void 0:(b=b.interval)==null?void 0:b.end.toInstant((b=c)!=null?b:j);a=d("BillingHubTransactionFilterDefinitions").getBillingTransactionAPIFilters(a);a={end_time:b,entity_types:["STORED_BALANCE_LOG"],filters:[].concat(a,[{field:"PAYMENT_METHOD_ID",operator:"CONTAINS_ALL",value:[s]}]),start_time:e};w(a);c!=null&&y(c);z.logClickEvent({event_content:JSON.stringify(a==null?void 0:(c=a.filters)==null?void 0:c.map(function(a){return a.field}))+"_"+((a=e)!=null?a:"")+"_"+((c=b)!=null?c:""),event_context:"billing_filter_change"})},[z,s,j]),B=m(function(a){t(a);var b=v.filters.filter(function(a){return a.field!=="PAYMENT_METHOD_ID"});b=babelHelpers["extends"]({},v,{filters:[].concat(b,[{field:"PAYMENT_METHOD_ID",operator:"CONTAINS_ALL",value:[a]}])});w(b)},[v,t]),C=m(function(a,b){if(b==null)return!0;else return b.end.isBeforeOrEqual(b.start.addMonths(1))&&b.start.isAfterOrEqual(b.end.addMonths(-1))},[]);u=l.jsx(c("BillingHubFilterContainer.react"),{dateRangePresets:r,dateRangeRestraint:C,filterBarKey:"BILLING_TRANSACTIONS",filterFields:d("BillingHubTransactionFilterDefinitions").BILLING_TRANSACTION_FILTERS,filtersEmptyText:c("BillingHistoryUnifiedStrings").ADD_FILTERS,initialInterval:(C=u)!=null?C:void 0,onChange:A,options:[{key:"BillingTransaction",label:c("BillingHistoryUnifiedStrings").STATEMENT_SELECT}],searchField:d("BillingHubTransactionFilterDefinitions").getBillingTransactionSearchField(),selectedOptionKey:"BillingTransaction",shouldHideDateRange:!1,shouldShowTimezoneSelector:!0,showReferenceNumberBtn:!!(g==null?void 0:g.reference_num_gk),timezoneID:j});return l.jsxs(c("GeoCard.react"),{children:[l.jsx(c("GeoSection.react"),{children:l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",children:[l.jsx(c("GeoFlexbox.react"),{children:a.length===1?l.jsxs(l.Fragment,{children:[l.jsx(c("Image.react"),{className:"x1emribx",src:h("380015")}),l.jsx(c("GeoHeading.react"),{level:1,children:d("BillingPaymentMethodDisplay").getSharedStoredBalanceDisplayAbbreviated(k==null?void 0:(C=k.credential)==null?void 0:(A=C.balance_amount)==null?void 0:A.currency_name)})]}):l.jsx(c("BillingHubSharedPrepaidFundsSelector.react"),{onSelectID:B,paymentAccountRef:g,selectedID:s})}),l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[l.jsx(c("GeoHeading.react"),{level:1,xstyle:o.balanceText,children:(a=e==null?void 0:e.toString())!=null?a:""}),l.jsx(c("BillingHubSharedStoredBalanceActionButton.react"),{actions:["download_pro_forma","view_accounts","request_refund","manage_address"],fragmentKey:b==null?void 0:b.credential,storedBalanceID:s})]})]})}),u,l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("BillingHubTableLoadingState.react"),{includeDivider:!0}),children:l.jsx(c("BillingHubSharedPrepaidFundsTransactionTable.react"),{businessID:f,paymentAccountRef:g,queryVariables:v,sharedStoredBalanceID:s,timezone:x})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubSharedPrepaidFundsScreen_paymentAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubSharedPrepaidFundsScreen_paymentAccount",selections:[{args:null,kind:"FragmentSpread",name:"BillingHubSharedPrepaidFundsTransactionTable_paymentAccount"},{args:null,kind:"FragmentSpread",name:"BillingHubSharedPrepaidFundsSelector_paymentAccount"},{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]},{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingHubSharedStoredBalanceActionButton_storedBalance"}],type:"StoredBalance",abstractKey:null}],storageKey:null}],storageKey:null},{alias:"reference_num_gk",args:[{kind:"Literal",name:"gk",value:"BILLING_TRANSACTION_REFERENCE_NUM_LOOKUP"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk:"BILLING_TRANSACTION_REFERENCE_NUM_LOOKUP")"}],type:"BusinessPaymentAccount",abstractKey:null};e.exports=a}),null);
-----
useBillingHubSharedStoredBalanceItem",["BillingCurrencyAmount","BillingHubQEContext","BillingPaymentMethodDisplay","RelayHooks","useBillingHubSharedStoredBalanceItem_values.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingHubSharedStoredBalanceItem_values.graphql");function a(a){var b,c,e,f=d("BillingHubQEContext").useBillingQE();f=f.billing_content_experiment_h2_2024.update_prepaid_funds_v1.read();a=d("RelayHooks").useFragment(i,a);b=a==null?void 0:(b=a.credential)==null?void 0:(b=b.balance_amount)==null?void 0:b.currency;c=a==null?void 0:(c=a.credential)==null?void 0:(c=c.balance_amount)==null?void 0:c.currency_name;if((a==null?void 0:(e=a.credential)==null?void 0:e.__typename)!=="StoredBalance"||(a==null?void 0:(e=a.credential)==null?void 0:e.stored_balance_type)!=="BUSINESS_LEVEL"||b==null)return null;e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(e=a.credential)==null?void 0:e.balance_amount))!=null?e:d("BillingCurrencyAmount").createZero(b);return{headline:d("BillingPaymentMethodDisplay").getSharedStoredBalanceDisplay(c,f),paymentMethodID:(c=a==null?void 0:(b=a.credential)==null?void 0:b.id)!=null?c:null,secondaryText:e.toString()}}g["default"]=a}),98);
-----
useBillingHubSharedStoredBalanceItem_values.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingHubSharedStoredBalanceItem_values",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null},{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],type:"PaymentCredentialDetails",abstractKey:null}}();e.exports=a}),null);
-----
BillingHubPaymentMethodsBusinessStoredBalanceItem.react",["ix","BillingCurrencyAmount","BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount.graphql","BillingHubPaymentMethodsCardItem.react","BillingHubQEContext","BillingHubSharedStoredBalanceActionButton.react","BillingHubWWWPaymentMethodUtils","BillingPaymentMethodDisplay","CometRelay","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount.graphql");function a(a){var b;a=a.storedBalanceRef;var e=d("BillingHubQEContext").useBillingQE();e=e.billing_content_experiment_h2_2024.update_prepaid_funds_v1.read();a=d("CometRelay").useFragment(l,a);a=a.credential;b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.balance_amount))!=null?b:d("BillingCurrencyAmount").createZero((b=a==null?void 0:(b=a.balance_amount)==null?void 0:b.currency)!=null?b:"USD");b=d("BillingHubWWWPaymentMethodUtils").formatBodyText([{bodyText:b.toString(),bodyTextColor:"value"}]);return k.jsx(c("BillingHubPaymentMethodsCardItem.react"),{actionButton:k.jsx(c("BillingHubSharedStoredBalanceActionButton.react"),{actions:["download_pro_forma","view_history","request_refund","manage_address"],fragmentKey:a,storedBalanceID:a==null?void 0:a.id}),bodyContent:b,headline:d("BillingPaymentMethodDisplay").getSharedStoredBalanceDisplay(a==null?void 0:(b=a.balance_amount)==null?void 0:b.currency_name,e),iconHeight:20,iconWidth:30,paymentCredentialRef:a,paymentMethodID:a==null?void 0:a.id,paymentMethodIcon:h("380015")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null},{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingHubSharedStoredBalanceActionButton_storedBalance"},{args:null,kind:"FragmentSpread",name:"BillingHubPaymentMethodsCardItem_credential"}],type:"StoredBalance",abstractKey:null}],storageKey:null}],type:"PaymentCredentialDetails",abstractKey:null}}();e.exports=a}),null);
-----
useBillingHubCreditLinesAmounts",["BillingCurrencyAmount","BillingMICurrencyUtils","CometRelay","useBillingHubCreditLinesAmounts_iEntEC.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingHubCreditLinesAmounts_iEntEC.graphql");function j(a,b){return b===0?100:Math.ceil(((a=a)!=null?a:0)/((a=b)!=null?a:1)*100)}function a(a){var b,c,e;a=d("CometRelay").useFragment(i,a);var f=d("BillingMICurrencyUtils").getPreferredCurrency((b=a.liable_org)==null?void 0:b.preferred_currency,(b=a.unpaid_delivery)==null?void 0:b.currency);b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.allocated_amount);b=b!=null&&b.isZero()===!1;var g=d("BillingMICurrencyUtils").convertToNonNegativeAmount((c=a.allocated_amount)==null?void 0:c.amount),h=(c=d("BillingMICurrencyUtils").convertToNonNegativeAmount((c=a.max_balance)==null?void 0:c.amount))!=null?c:0;c=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepayment_amount);c=c!=null&&c.isZero()===!1;var k=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.prepayment_amount)==null?void 0:e.amount),l=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.remaining_spendable_prepayment_amount)==null?void 0:e.amount),m=(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.unpaid_delivery)==null?void 0:e.amount))!=null?e:0,n=(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.direct_balance_consumption)==null?void 0:e.amount))!=null?e:0,o=(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.secondary_progress_bar_spent_by_others)==null?void 0:e.amount))!=null?e:0,p=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.available_max_balance)==null?void 0:e.amount),q={amount:(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.to_be_invoiced_this_month)==null?void 0:e.amount))!=null?e:0,amountInUSD:(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.to_be_invoiced_this_month)==null?void 0:e.amountInUSD))!=null?e:0,currency:(e=a.to_be_invoiced_this_month)==null?void 0:e.currency},r=(e=a.liable_org)==null?void 0:e.fx_rate_for_preferred_currency;e=m!=null&&h!=null;var s=j(m,h),t=j(n,h),u=j(o,h),v=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,m,a)},w=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,n,a)},x=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,o,a)},y=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,m,a)},z=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,p,a)},A=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,h,a)},B=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,k,a)},C=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,l,a)},D=function(a){return f===q.currency?d("BillingMICurrencyUtils").formatCurrency(f,q.amount):d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,q.amountInUSD,a)},E=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,m-q.amountInUSD,a)},F=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(f,r,g,a)};a=a.can_business_see_credit_limit===!0;return{directPercentSpent:t,directPercentSpentByOthers:u,displayCreditLimit:a,getFormattedAllocatedAmount:F,getFormattedAmountDue:E,getFormattedAmountSpent:v,getFormattedAmountSpentWithoutCurrency:y,getFormattedCreditAvailable:z,getFormattedCreditLimit:A,getFormattedDirectAmountSpent:w,getFormattedDirectAmountSpentByOthers:x,getFormattedNextBillingPeriod:D,getFormattedPrepaidBalance:C,getFormattedPrepaymentAmount:B,hasAllocatedAmount:b,hasPrepaymentAmount:c,percentSpent:s,showProgressBar:e}}g["default"]=a}),98);
-----
useBillingHubCreditLinesAmounts_iEntEC.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},b=[a],c={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},d=[a,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},c],args:null,argumentDefinitions:[]}],e=[a,c];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingHubCreditLinesAmounts_iEntEC",selections:[{alias:null,args:null,kind:"ScalarField",name:"can_business_see_credit_limit",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"available_max_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepayment_amount",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"remaining_spendable_prepayment_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"liable_org",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fx_rate_for_preferred_currency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"preferred_currency",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"allocated_amount",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"unpaid_delivery",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"direct_balance_consumption",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"secondary_progress_bar_spent_by_others",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"to_be_invoiced_this_month",plural:!1,selections:[a,{alias:"amountInUSD",args:[{kind:"Literal",name:"currency",value:"USD"}],kind:"ScalarField",name:"amount_in_currency",storageKey:"amount_in_currency(currency:"USD")"},c],storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"}}();e.exports=a}),null);
-----
LWICometAddBudgetSection.react",["fbt","AdsBisonUtils","AdsCurrencyFormatter","AdsUniqueMetricsHelpID","BillingCurrencyAmount","CometErrorBoundary.react","CometLink.react","CometPlaceholder.react","CometRelay","CometRow.react","CometRowItem.react","LWICometAddBudgetSection_boostedComponent.graphql","LWICometCommonStrings","LWICometDateFormatUtils","LWICometEstimationCurveRoot.react","LWICometLoadingOverlay.react","LWICometPaymentSubsection.react","LWICometPaymentSubsectionBody.react","LWICometSection.react","LWICometTermsAndConditions.react","LWIOmniButton.react","LWIOmniListCell.react","LWIOmniText.react","LWIOmniTextPairing.react","jsonParseSafe","react","useBillingInfoEstimatedTax","useLWICometAddBudgetAndDurationMutation","useLWICometEditAction","useLWILoggerContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.startTransition,m=e.useCallback,n=e.useEffect,o=e.useState,p={title:h._("__JHASH__MfjgM_JekWO__JHASH__",[h._param("link to our people metrics explanation",k.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("__JHASH__wpUBOI6bjpL__JHASH__")}))])},q=h._("__JHASH__2u_wcuBQ4Al__JHASH__");function a(a){var e,f,g,j,s,t=a.boostedComponent,u=a.inDialog,v=u===void 0?!1:u,w=a.onComplete;u=o(!1);a=u[0];var x=u[1];u=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometAddBudgetSection_boostedComponent.graphql"),t);t=c("useLWILoggerContext")();var y=t.entryPoint,z=t.flow,A=t.flowID,B=t.pageID,C=t.product;t=t.targetID;var D=c("useLWICometEditAction")(u,{entryPoint:y,flowID:A});y=u.campaign_group;var E=u.spec,F=(e=u.options)==null?void 0:e.add_budget_and_duration_options;e=c("jsonParseSafe")(String(E==null?void 0:(e=E.audience)==null?void 0:e.target_spec_string_without_placements),null);f=y==null?void 0:(f=y.ad_account)==null?void 0:f.legacy_account_id;g=E==null?void 0:(g=E.placement_spec)==null?void 0:g.publisher_platforms;g=g!=null?{publisher_platforms:g}:null;j=E==null?void 0:(j=E.objective_spec)==null?void 0:j.objective;u=!!((u=u.boosting_info)==null?void 0:u.can_viewer_edit);var G=(s=y==null?void 0:(s=y.ad_account)==null?void 0:s.currency_code_enum)!=null?s:"USD";E=(s=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(E==null?void 0:E.budget))!=null?s:d("BillingCurrencyAmount").createZero(G);s=o(r(F));var H=s[0],I=s[1];n(function(){var a=r(F);a!=null&&I(a)},[F]);var J=c("useLWICometAddBudgetAndDurationMutation")(),K=m(function(){H!=null&&J(H.budget_delta,H.duration_delta,x,w)},[J,H,w]),L=(s=H==null?void 0:H.duration_delta)!=null?s:0;y=new Date(String(y==null?void 0:(s=y.time_range)==null?void 0:s.end));s=new Date();y=y>s?y:s;y.setDate(y.getDate()+L);s=d("LWICometDateFormatUtils").getPrettyDateString(y);var M=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:G,offset_amount:String(H==null?void 0:H.budget_delta)});y=c("useBillingInfoEstimatedTax")((y=f)!=null?y:"",M);var N=y.taxes;y=y.totalBudget;N=(N=N)!=null?N:[];y=y==null?void 0:y.add(E);if(F==null||F.length===0||H==null||e==null||j==null||g==null||f==null||!u)return null;var O=[{label:h._("__JHASH__nVJOaU-AbWn__JHASH__"),value:E.format()},{label:h._("__JHASH__SwroYGa_Cd1__JHASH__"),value:M==null?void 0:M.format()}];N.length>0&&N.forEach(function(a){(a==null?void 0:a.taxName)!=null&&(a==null?void 0:a.taxRate)!=null&&(a==null?void 0:a.amount)!=null&&O.push({label:a.taxName+" ("+a.taxRate+")",value:a.amount.format()})});var P=k.jsx("div",{className:"x1yztbdb x1xmf6yo",children:k.jsx(c("LWICometPaymentSubsection.react"),{body:k.jsx(c("LWICometPaymentSubsectionBody.react"),{collapsible:!0,headline:h._("__JHASH__FeQouPXavyL__JHASH__"),items:O,total:{label:h._("__JHASH__aC_SKTw1912__JHASH__"),value:y==null?void 0:y.format()}})})}),Q=h._("__JHASH__0iYTpcTbnld__JHASH__",[h._param("new_end_time",s)]),R=k.jsx(c("LWIOmniTextPairing.react"),{body:k.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:q,objective:j}),level:3}),S=k.jsx(c("LWIOmniButton.react"),{disabled:a,label:q,onPress:function(){x(!0),l(function(){K()})}});return k.jsxs(c("CometErrorBoundary.react"),{children:[a&&k.jsx(c("LWICometLoadingOverlay.react"),{}),k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(c("LWICometEstimationCurveRoot.react"),{currency:G,flow:z,flowID:A,legacyAdAccountID:f,objective:j,pageID:B,placementSpec:babelHelpers["extends"]({},g),product:C,sourceModule:"LWICometAddBudgetSection",targetID:t,targetSpec:e,children:function(a,b,e){var f=F.map(function(f){var g=f.budget_delta;f=f.duration_delta;if(g==null||f==null)return null;var i={budget_delta:g,duration_delta:f},j=g/f;j=c("AdsBisonUtils").getReachEstimateByBudget(a,j,null,!0);j=c("AdsBisonUtils").getBoundsWithErrorPrediction(j.reach,b,j.reach_lower_bound,j.reach_upper_bound);j=d("LWICometCommonStrings").getRangeString(j.min,j.max);var l=g===(M==null?void 0:M.getRawPBAmount_I_KNOW_WHAT_IM_DOING())&&f===L;return k.jsxs(k.Fragment,{children:[k.jsx(c("LWIOmniListCell.react"),{addOnSecondary:{on:l,type:"radio"},body:e?null:h._("__JHASH__Nr58ol-lljO__JHASH__",[h._param("reach_estimates_string",j),h._param("link to our people metrics explanation",k.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("__JHASH___7ch8AdAhPM__JHASH__")}))]),headline:h._("__JHASH__TiMUV3VcUqz__JHASH__",[h._plural(f,"days to add"),h._param("add budget amount",d("AdsCurrencyFormatter").formatCurrency(G,g))]),level:3,onPress:function(){return I(i)}}),l&&k.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:0,children:k.jsx(c("CometRowItem.react"),{expanding:!0,children:P})})]},g+"-"+f)});return k.jsxs(c("LWICometSection.react"),{fallback:null,hasTopDivider:!1,header:p,children:[k.jsx("div",{className:"x1yztbdb",children:f}),D&&k.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:0,children:k.jsx(c("CometRowItem.react"),{children:k.jsx(c("CometLink.react"),{color:"primary",onClick:D,children:k.jsx(c("LWIOmniText.react"),{color:"blueLink",type:"bodyLink3",children:h._("__JHASH__hgIA8LZAJUa__JHASH__")})})})}),k.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:D!=null?16:0,children:k.jsx(c("CometRowItem.react"),{children:k.jsx(c("LWIOmniTextPairing.react"),{body:Q,bodyColor:"secondary",level:4})})}),v?k.jsx(c("CometRow.react"),{paddingHorizontal:16,children:k.jsx(c("CometRowItem.react"),{expanding:!0,children:k.jsxs("div",{className:"x78zum5 x1q0g3np x1l1ennw",children:[k.jsx("div",{className:"x1pi30zi",children:R}),S]})})}):k.jsxs("div",{children:[k.jsx(c("CometRow.react"),{paddingHorizontal:16,children:k.jsx(c("CometRowItem.react"),{expanding:!0,children:S})}),k.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:0,children:k.jsx(c("CometRowItem.react"),{expanding:!0,children:R})})]})]})}})})]})}a.displayName=a.name+" [from "+f.id+"]";function r(a){return a==null||a.length===0||a[0].budget_delta==null||a[0].duration_delta==null?null:{budget_delta:Number(a[0].budget_delta),duration_delta:Number(a[0].duration_delta)}}g["default"]=a}),226);
-----
LWICometAddBudgetSection_boostedComponent.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometAddBudgetSection_boostedComponent",selections:[{args:null,kind:"FragmentSpread",name:"useLWICometEditAction_boostedComponent"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boosting_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_viewer_edit",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"campaign_group",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_code_enum",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"EventTimeRange",kind:"LinkedField",name:"time_range",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"options",plural:!1,selections:[{alias:null,args:null,concreteType:"LWIAddBudgetAndDurationOption",kind:"LinkedField",name:"add_budget_and_duration_options",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"budget_delta",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"duration_delta",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"spec",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsLWIAudience",kind:"LinkedField",name:"audience",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"target_spec_string_without_placements",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"budget",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:"AdsLWIObjectiveSpec",kind:"LinkedField",name:"objective_spec",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"objective",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AdsPlacementSpec",kind:"LinkedField",name:"placement_spec",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"publisher_platforms",storageKey:null}],storageKey:null}],storageKey:null}],type:"BoostedComponentWrapper",abstractKey:null};e.exports=a}),null);
-----
BillingAssignAdCreditsScreen.react",["fbt","BillingAssignAdCreditsConstants","BillingAssignAdCreditsScreenQuery.graphql","BillingAssignAdCreditsView.react","BillingCurrencyAmount","BillingWrapperWithForm.react","RelayHooks","react","useBillingAssignAdCredits"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("BillingAssignAdCreditsScreenQuery.graphql");function a(a){var b,e=a.isAccountLevelCoupon,f=a.isEditingExisting,g=a.onSubmit,i=a.originalAssignedCampaigns,j=a.paymentAccountID,n=a.paymentMethodID,o=a.preloadedQuery;a=a.wrapperProps;o=d("RelayHooks").usePreloadedQuery(m,o);b=(b=o.billable_account_by_payment_account)==null?void 0:b.ad_campaign_groups;o=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(o==null?void 0:(o=o.node)==null?void 0:o.current_balance_currency_amount);var p=a.status;i=i!=null&&i.length!==0?i:[];e=l(e===!0?"account_level":"campaign_level");var q=e[0];e=e[1];n=c("useBillingAssignAdCredits")(n,i.length===0?[]:i,f,o,g,q,j);i=n.fields;f=n.handleSubmit;return k.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:i,onSubmit:f,primaryButtonLabel:h._("__JHASH__jMkSX3tePAz__JHASH__"),status:p,title:c("BillingAssignAdCreditsConstants").title,children:k.jsx(c("BillingAssignAdCreditsView.react"),{account:b,level:q,onSelectLevel:e})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=m;g.BillingAssignAdCreditsScreen=a}),226);
-----
BillingAssignAdCreditsScreenQuery.graphql",["BillingAssignAdCreditsScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"}],c=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],d=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],e=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAssignAdCreditsScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"current_balance_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:d,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdsToken",abstractKey:null}],storageKey:null},{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingAssignAdCreditsView_account"}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAssignAdCreditsScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"current_balance_currency_amount",plural:!1,selections:d,storageKey:null}],type:"AdsToken",abstractKey:null},g],storageKey:null},{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"nodes",plural:!0,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null},g],storageKey:null}]},params:{id:b("BillingAssignAdCreditsScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingAssignAdCreditsScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingSliderExample",["BillingCurrencyAmount","BillingCurrencyAmountSlider.react","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState;function a(){var a=c("useBillingWizardComponents")(),b=a.Slider;a=j(100);var e=a[0],f=a[1];a=j(d("BillingCurrencyAmount").createZero("USD"));var g=a[0],h=a[1];return[{description:"This is a slider component from 0 to 1000 step 100",render:function(){return i.jsx(b,{label:"Test",max:1e3,min:0,onChange:f,step:100,value:e})},title:"Basic Slider"},{description:"This is a currency amount slider from $0 to $2000 step of $10",render:function(){return i.jsx(c("BillingCurrencyAmountSlider.react"),{label:"Test",max:d("BillingCurrencyAmount").getFromUserInput("$2000","USD"),maxValueDisplay:function(a){return"Max! "+a+" Max!"},min:d("BillingCurrencyAmount").createZero("USD"),minValueDisplay:function(a){return"Min! "+a+" Min!"},onChange:h,step:d("BillingCurrencyAmount").getFromUserInput("$10","USD"),value:g,valueDisplay:function(a){return"Val! "+a+" Val!"}})},title:"Slider with smaller steps"}]}g["default"]=a}),98);
-----
BillingRiskCredentialAuthScreen.react",["BillingCurrencyAmount","BillingRiskCredentialAuthScreenQuery.graphql","BillingRiskCredentialAuthView.react","BillingRiskVerificationConstants","BillingRowContainer.react","BillingWizardQEContext","RelayHooks","react","regeneratorRuntime","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingRiskCredentialAuthScreenQuery.graphql");function a(a){var e=a.handleAddPaymentMethod,f=a.handleCompleteVerification,g=a.handleSelectCard,h=a.isSinglePMFlow,i=a.paymentMethodID,l=a.preloadedQuery;a=a.wrapperProps;var m=c("useBillingWizardComponents")(),n=m.Button,o=m.Column,p=m.Row,q=m.Text;m=m.Wrapper;l=d("RelayHooks").usePreloadedQuery(k,l);var r=d("BillingWizardQEContext").useBillingQE();l=(l=l==null?void 0:(l=l.billable_account_by_payment_account)==null?void 0:(l=l.billing_payment_account)==null?void 0:l.billing_payment_methods)!=null?l:[];var s=l.filter(function(a){var b;(a==null?void 0:(b=a.credential)==null?void 0:b.__typename)==="DirectDebit"&&["PENDING_VERIFICATION","UNVERIFIABLE"].includes(a==null?void 0:a.usability)&&r.trustly_cvco_verification.allow_trustly_verification.read();return(a==null?void 0:(b=a.credential)==null?void 0:b.__typename)==="ExternalCreditCard"||(a==null?void 0:(b=a.credential)==null?void 0:b.__typename)==="DirectDebit"});h&&i!=null&&(s=s.filter(function(a){return(a==null?void 0:(a=a.credential)==null?void 0:a.credential_id)===i}));var t=s[0],u=(t=t==null?void 0:(t=t.credential)==null?void 0:t.credential_id)!=null?t:"",v=(t=(t=s)==null?void 0:t.length)!=null?t:0,w=0;t="";var x=!1,y=null,z=null,A=null;h=h||v===1;h&&v>0?(t=c("BillingRiskVerificationConstants").authorizeButton,y=function(){return g(u)}):(t=c("BillingRiskVerificationConstants").primaryButtonLabelMultiplePM,y=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(f(w>1,z,A));case 2:case"end":return a.stop()}},null,this)});s=(s=s)==null?void 0:s.map(function(a){var b=a==null?void 0:a.usability,d=a==null?void 0:a.credential;if(b==="USABLE"){if((d==null?void 0:d.__typename)==="ExternalCreditCard")z=d==null?void 0:d.card_association_name,A=d==null?void 0:d.last_four_digits;else if((d==null?void 0:d.__typename)==="DirectDebit"){z=d==null?void 0:d.bank_name;A=(b=d==null?void 0:d.last_four_digits)!=null?b:""}w++}return j.jsx(c("BillingRiskCredentialAuthView.react"),{handleSelectCard:g,item:a,showAuthorizeButton:v!==1},d==null?void 0:d.credential_id)});!h&&w===0&&(x=!0);l=((h=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((h=l[0])==null?void 0:(l=h.credential)==null?void 0:l.sdc_auth_amount_localized))!=null?h:d("BillingCurrencyAmount").getFromUserInput("1","USD")).toString();h=r.cvco_verify_add_payment_method.show_add_payment_method_on_multi_verify.read()?j.jsxs(j.Fragment,{children:[j.jsx(p,{marginBottom:16,children:j.jsx(o,{flex:!0,paddingTop:!0})}),j.jsx(p,{marginBottom:8,children:j.jsx(o,{flex:!0,paddingTop:!0,children:j.jsx(q,{body:c("BillingRiskVerificationConstants").addPaymentMethodBody,bodyColor:"secondary",headline:c("BillingRiskVerificationConstants").addPaymentMethodTitle})})}),j.jsx(p,{marginBottom:8,children:j.jsx(o,{flex:!0,paddingTop:!0,children:j.jsx(n,{label:c("BillingRiskVerificationConstants").addPaymentMethodButton,onPress:e,reduceEmphasis:!0})})})]}):null;return j.jsx(m,babelHelpers["extends"]({},a,{primaryButton:x?void 0:{action:y,label:t},title:c("BillingRiskVerificationConstants").header,children:j.jsxs(c("BillingRowContainer.react"),{children:[j.jsx(p,{marginBottom:8,children:j.jsx(q,{body:c("BillingRiskVerificationConstants").riskAuthBody((o=l)!=null?o:""),bodyColor:"secondary",headline:c("BillingRiskVerificationConstants").authorizeHeader})}),s,h]})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=k;g.BillingRiskCredentialAuthScreen=a}),98);
-----
BillingRiskCredentialAuthScreenQuery.graphql",["BillingRiskCredentialAuthScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"billingEntryPoint"},{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},d=[c],e=[{kind:"Literal",name:"allowlist",value:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION","UNVERIFIABLE"]},{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"}],f={alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null};c=[c,{kind:"Literal",name:"show_default_amount",value:!0}];var k=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],l={alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n={alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:"billing_icons(limit:1)"},o={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},n],type:"ExternalCreditCard",abstractKey:null},p={alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingRiskCredentialAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"BillingRiskCredentialAuthView_item"},f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[g,{kind:"InlineFragment",selections:[h,i,j,{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:k,args:null,argumentDefinitions:[]}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h,l,j],type:"DirectDebit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingRiskCredentialAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[g,{alias:null,args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[g,m,{kind:"InlineFragment",selections:[h,i,j,{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:k,storageKey:null},{kind:"InlineFragment",selections:[o,{kind:"InlineFragment",selections:[l,p,n],type:"DirectDebit",abstractKey:null}],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h,l,j,{kind:"InlineFragment",selections:[o,{kind:"InlineFragment",selections:[p,n],type:"DirectDebit",abstractKey:null}],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],type:"DirectDebit",abstractKey:null}],storageKey:null}],storageKey:null},m],storageKey:null},m],storageKey:null}]},params:{id:b("BillingRiskCredentialAuthScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingRiskCredentialAuthScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingCreditSharingEditScreen.react",["BillingCreditSharingCommonConstants","BillingCreditSharingEditScreenQuery.graphql","BillingCreditSharingSelectAllocationTypeView.react","BillingCurrencyAmount","BillingShareMonthlyInvoicingUtils","BillingWrapperWithForm.react","RelayHooks","react","useBillingCreditSharingSelectAllocationType"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingCreditSharingEditScreenQuery.graphql");function a(a){var b,e,f,g,h,i,l,m,n,o,p,q=a.onNext,r=a.preloadedQuery;a=a.wrapperProps;r=d("RelayHooks").usePreloadedQuery(k,r);b=(b=r==null?void 0:(b=r.extended_credit)==null?void 0:(b=b.credit_limit)==null?void 0:b.formatted_amount)!=null?b:"";e=(e=r==null?void 0:(e=r.extended_credit_allocation)==null?void 0:(e=e.allocation_amount)==null?void 0:e.amount)!=null?e:"";f=(f=r==null?void 0:(f=r.extended_credit_allocation)==null?void 0:(f=f.receiving_extended_credit)==null?void 0:(f=f.unpaid_delivery)==null?void 0:f.amount)!=null?f:"0";g=(g=r==null?void 0:(g=r.extended_credit_allocation)==null?void 0:(g=g.receiving_extended_credit)==null?void 0:(g=g.unpaid_delivery)==null?void 0:g.currency)!=null?g:"USD";f=d("BillingCurrencyAmount").getFromUserInput(f,g);g=(g=r==null?void 0:(g=r.extended_credit_allocation)==null?void 0:(g=g.credit_partition_configuration)==null?void 0:(g=g.partition_type)==null?void 0:g.allowed_types)!=null?g:[];h=(h=r==null?void 0:(h=r.extended_credit_allocation)==null?void 0:h.allocation_type)!=null?h:"AUTH";i=(i=r==null?void 0:(i=r.extended_credit_allocation)==null?void 0:(i=i.allocation_amount)==null?void 0:i.currency)!=null?i:"";l=(l=r==null?void 0:(l=r.extended_credit_allocation)==null?void 0:(l=l.receiving_business)==null?void 0:l.name)!=null?l:"";m=(m=g.includes("FIXED_WITHOUT_PARTITION"))!=null?m:!1;g=(g=g.includes("FIXED"))!=null?g:!1;var s=!g&&m,t=g&&!m;n=(n=r==null?void 0:(n=r.extended_credit_allocation)==null?void 0:(n=n.credit_partition_configuration)==null?void 0:(n=n.partition_type)==null?void 0:n["default"])!=null?n:!1;o=(o=r==null?void 0:(o=r.extended_credit_allocation)==null?void 0:(o=o.credit_partition_configuration)==null?void 0:(o=o.partition_type)==null?void 0:o.configurable)!=null?o:!1;n=!(n!=="AUTH"&&o===!1);o=(o=r==null?void 0:(o=r.extended_credit)==null?void 0:(o=o.remaining_credit_for_fixed_allocation)==null?void 0:o.amount)!=null?o:"0";p=r==null?void 0:(p=r.extended_credit_allocation)==null?void 0:p.allocation_request_status;p=d("BillingShareMonthlyInvoicingUtils").addAllocationAmountToMaxAvaiableBalance(parseFloat(e),p,parseFloat(o),h,i);o=d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.allocateFixedPartitionDescription(l);var u=d("BillingCreditSharingCommonConstants").getManageCreditLineFooter(m,p.format()),v=!g&&m?"FIXED_WITHOUT_PARTITION":"FIXED";q=c("useBillingCreditSharingSelectAllocationType")(q,i,p,f,l,v);p=q.fields;f=q.onSelect;v=q.onSubmit;q=q.selectedAllocationType;return j.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:p,onSubmit:v,title:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.editCreditLineTitle,children:j.jsx(c("BillingCreditSharingSelectAllocationTypeView.react"),{canUseFixedPartition:g,canUseFixedWithoutPartition:m,creditPartitionFlowMode:"ALLOCATE",description:d("BillingCreditSharingCommonConstants").getManageCreditLineAccessDescription(d("BillingCurrencyAmount").getFromUserInput((a=e==null?void 0:e.toString())!=null?a:"0",i).format(),b,l,h),displayAuthAllocationOption:n,fixedPartitionCheckboxDescription:o,fullAccessDescription:d("BillingCreditSharingCommonConstants").getFullAccessDescription(s,r==null?void 0:(p=r.extended_credit)==null?void 0:(v=p.credit_limit)==null?void 0:v.formatted_amount),fullAccessTitle:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.fullAccessTitle,onSelect:f,partialAccessDescription:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.partialAccessDescription(l,t),partialAccessTitle:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.partialAccessTitle,selectedAllocationType:q,totalCreditLineFooter:u})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=k;g.BillingCreditSharingEditScreen=a}),98);
-----
BillingRiskVerifyCredentialCompletionState",["BillingCurrencyAmount","BillingError","BillingRiskVerifyCredentialCompletionStateMutation.graphql","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingRiskVerifyCredentialCompletionStateMutation.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0;return B.abrupt("return",{event:"onNext",newProps:babelHelpers["extends"]({},a,{cardVerified:!1,retry3DS:A})});case 28:case"end":return B.stop()}},null,this,[[3,21]])};return e}(d("BillingWizardTypes").DecisionState);g["default"]=a}),98);
-----
BillingRiskCredentialVerificationResultState",["fbt","BillingCurrencyAmount","BillingDSLBoostConstants","BillingHelpCenterConstants","BillingPaymentMethodDisplayUtils","BillingRiskCredentialVerificationResultStateQuery.graphql","BillingRiskVerificationConstants","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j="&wizard_name=PAYMENT_SUPPORT&support_topic=DSL_REQUEST_INCREASE",k="&wizard_name=PAYMENT_SUPPORT&support_topic=VERIFY_PM_FAILED",l=i!==void 0?i:i=b("BillingRiskCredentialVerificationResultStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingRiskCredentialVerificationResultStateQuery.graphql",["BillingRiskCredentialVerificationResultStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"creditCardID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},d=[{kind:"Variable",name:"id",variableName:"creditCardID"}],e=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},{kind:"Literal",name:"show_default_amount",value:!0}],f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],g={alias:null,args:null,concreteType:"XFBDslBoostCredentialEligibilityInfo",kind:"LinkedField",name:"dsl_boost_eligibility",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"eligible_type",storageKey:null}],storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},i],type:"ExternalCreditCard",abstractKey:null};i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},i],type:"DirectDebit",abstractKey:null};var k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},l={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},m={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},n={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null}],type:"LPMCredential",abstractKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingRiskCredentialVerificationResultStateQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:e,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null},g],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[h,j,i,k,l,m,n],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingRiskCredentialVerificationResultStateQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[h,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:e,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:f,storageKey:null},g],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[j,i,k,l,m,n],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null}]},params:{id:b("BillingRiskCredentialVerificationResultStateQuery_facebookRelayOperation"),metadata:{},name:"BillingRiskCredentialVerificationResultStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRiskVerifyCredentialCompletionStateMutation.graphql",["BillingRiskVerifyCredentialCompletionStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"num_tries_left",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"is_frictionless",storageKey:null},g=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingRiskVerifyCredentialCompletionStateMutation",selections:[{alias:null,args:c,concreteType:"ValidateRiskCredentialVerificationResponse",kind:"LinkedField",name:"validate_risk_credential_verification",plural:!1,selections:[d,e,f,{alias:null,args:null,concreteType:"XFBBillingLimitOverride",kind:"LinkedField",name:"dsl_boost",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"target_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:g,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingRiskVerifyCredentialCompletionStateMutation",selections:[{alias:null,args:c,concreteType:"ValidateRiskCredentialVerificationResponse",kind:"LinkedField",name:"validate_risk_credential_verification",plural:!1,selections:[d,e,f,{alias:null,args:null,concreteType:"XFBBillingLimitOverride",kind:"LinkedField",name:"dsl_boost",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"target_currency_amount",plural:!1,selections:g,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingRiskVerifyCredentialCompletionStateMutation_facebookRelayOperation"),metadata:{},name:"BillingRiskVerifyCredentialCompletionStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingPayNowOrSettleState",["BillingCurrencyAmount","BillingError","BillingExternalSitePaymentStepUtils","BillingNativeOTPPaymentStepUtils","BillingPayNowOrSettleNoticeBuilders","BillingPayNowOrSettleStatePayNowMutation.graphql","BillingPayNowOrSettleStateQuery.graphql","BillingPayNowOrSettleStateQueryData.graphql","BillingPayNowOrSettleStateSettleMutation.graphql","BillingPayNowOrSettleStateV2Query.graphql","BillingPayNowOrSettleUtils","BillingPaymentMethodDisplayUtils","BillingWizardTypes","RelayHooks","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=h!==void 0?h:h=b("BillingPayNowOrSettleStateQueryData.graphql"),n=i!==void 0?i:i=b("BillingPayNowOrSettleStateQuery.graphql"),o=j!==void 0?j:j=b("BillingPayNowOrSettleStateV2Query.graphql"),p=k!==void 0?k:k=b("BillingPayNowOrSettleStatePayNowMutation.graphql"),q=l!==void 0?l:l=b("BillingPayNowOrSettleStateSettleMutation.graphql");function aa(a,c,e,f){var g,h,i,j,k,l;return b("regeneratorRuntime").async(function(p){while(1)switch(p.prev=p.next){case 0:if(!f){p.next=9;break}p.next=3;return b("regeneratorRuntime").awrap(a.fetchQuery({query:o,queryName:o.params.name,variables:{paymentAccountID:c,paymentMethodID:e}},{event_context:"screen"}));case 3:g=p.sent;h=d("RelayHooks").readInlineData(m,g==null?void 0:g.billable_account_by_payment_account);i=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(g.payment_method);return p.abrupt("return",{accountData:h,paymentMethod:i});case 9:p.next=11;return b("regeneratorRuntime").awrap(a.fetchQuery({query:n,queryName:n.params.name,variables:{paymentAccountID:c}},{event_context:"screen"}));case 11:j=p.sent;k=d("RelayHooks").readInlineData(m,j==null?void 0:j.billable_account_by_payment_account);p.t0=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromQuery;p.next=16;return b("regeneratorRuntime").awrap(d("BillingPaymentMethodDisplayUtils").paymentMethodDisplayQuery(a,e));case 16:p.t1=p.sent;l=p.t0(p.t1);return p.abrupt("return",{accountData:k,paymentMethod:l});case 19:case"end":return p.stop()}},null,this)}a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingPayNowOrSettleStatePayNowMutation.graphql",["BillingPayNowOrSettleStatePayNowMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null},g=[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},f],h={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_coupons",plural:!1,selections:g,storageKey:null},i={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_payment_method",plural:!1,selections:g,storageKey:null};g={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_store_balance",plural:!1,selections:g,storageKey:null};var j={alias:null,args:null,kind:"ScalarField",name:"charged_payment_method_id",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"async_payment_status_ent_id",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"external_uri",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"needs_await_completion",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"nonce",storageKey:null},q={alias:null,args:null,concreteType:"IframeBrokeredPaymentURLParams",kind:"LinkedField",name:"params",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},r=[d,m,n,o,p,q],s={alias:null,args:null,kind:"ScalarField",name:"external_ref_id",storageKey:null},t={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_provider_amount",plural:!1,selections:[f],storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"show_charged_item_amount",storageKey:null},v=[l,k];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPayNowOrSettleStatePayNowMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPayNowResponsePayload",kind:"LinkedField",name:"billable_account_pay_now",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{args:null,kind:"FragmentSpread",name:"useBillableAccountBalance_billingAccount"},e],storageKey:null},h,i,g,j,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:[f,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[k,l],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"BillingExternalSitePaymentStepUtils_ExternalSitePaymentStep",selections:[{kind:"InlineFragment",selections:r,type:"ExternalSitePaymentStep",abstractKey:null}],args:null,argumentDefinitions:[]},{kind:"InlineDataFragmentSpread",name:"BillingNativeOTPPaymentStepUtils_NativeOTPPaymentStep",selections:[{kind:"InlineFragment",selections:[d,m,s,{alias:null,args:null,concreteType:"ExternalSitePaymentStep",kind:"LinkedField",name:"external_otp_webview_fallback",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingExternalSitePaymentStepUtils_ExternalSitePaymentStep",selections:r,args:null,argumentDefinitions:[]}],storageKey:null}],type:"NativeOTPPaymentStep",abstractKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},t,u],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPayNowOrSettleStatePayNowMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPayNowResponsePayload",kind:"LinkedField",name:"billable_account_pay_now",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{kind:"TypeDiscriminator",abstractKey:"__isBillableAccount"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:v,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance_with_tax",plural:!1,selections:v,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:v,storageKey:null},{alias:null,args:[{kind:"Literal",name:"exclude_coupons",value:!0}],concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_delivery_remaining",plural:!1,selections:v,storageKey:"prepay_delivery_remaining(exclude_coupons:true)"},l,{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},e,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},h,i,g,j,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:[f,k,l],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[d,{kind:"InlineFragment",selections:[m,n,o,p,q],type:"ExternalSitePaymentStep",abstractKey:null},{kind:"InlineFragment",selections:[m,s,{alias:null,args:null,concreteType:"ExternalSitePaymentStep",kind:"LinkedField",name:"external_otp_webview_fallback",plural:!1,selections:r,storageKey:null}],type:"NativeOTPPaymentStep",abstractKey:null}],storageKey:null},t,u],storageKey:null}]},params:{id:b("BillingPayNowOrSettleStatePayNowMutation_facebookRelayOperation"),metadata:{},name:"BillingPayNowOrSettleStatePayNowMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingRemovePMScreen.react",["BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingPaymentModeUtils","BillingRemovePMConstants","BillingRemovePMScreenQuery.graphql","BillingRemovePMView.react","RelayHooks","react","useBillingRemovePM","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=["ScimCompany","WhatsAppBusinessAccount","CAMBillableAccount"],l=h!==void 0?h:h=b("BillingRemovePMScreenQuery.graphql");function a(a){var b,e,f,g=a.onAddPM,h=a.onBalanceRemains,i=a.onDone,m=a.paymentAccountID,n=a.paymentMethodID,o=a.preloadedQuery;a=a.wrapperProps;var p=c("useBillingWizardComponents")();p=p.Wrapper;o=d("RelayHooks").usePreloadedQuery(l,o);var q=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(o==null?void 0:o.node,c("BillingRemovePMConstants").defaultPMLabel),r=d("BillingPaymentMethodDisplayUtils").getTruncatedLPMUserDisplayNameFromFragment(o==null?void 0:o.node);o=o==null?void 0:o.billable_account_by_payment_account;b=(b=o==null?void 0:(b=o.billing_payment_account)==null?void 0:b.billing_payment_methods)!=null?b:[];e=d("BillingPaymentModeUtils").isHybridAccount((e=o==null?void 0:o.payment_modes)!=null?e:[])&&((e=o==null?void 0:o.prepay_on_postpay_gk)!=null?e:!1);var s=["AdsToken"];e&&s.push("StoredBalance");e=b.filter(function(a){return!s.includes(a==null?void 0:(a=a.credential)==null?void 0:a.__typename)});b=(e==null?void 0:e.length)===1;var t=o==null?void 0:o.__typename;e=k.find(function(a){return a===t})!=null||!b;o=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(o==null?void 0:o.account_balance))!=null?f:d("BillingCurrencyAmount").createZero((f=o==null?void 0:o.currency)!=null?f:"USD");f=!o.isZero();o=f&&!e?o:null;i=c("useBillingRemovePM")(i,g,m,n,q,t,r);g=i.onSubmit;m=e?g:f?h:g;n=e?c("BillingRemovePMConstants").button:f?c("BillingRemovePMConstants").buttonPayNow:c("BillingRemovePMConstants").button;return j.jsx(p,babelHelpers["extends"]({},a,{mobileVerticalTextAlign:!0,primaryButton:{action:typeof m!=="string"?m:void 0,href:typeof m==="string"?m:void 0,label:n},title:c("BillingRemovePMConstants").headline,children:j.jsx(c("BillingRemovePMView.react"),{displayName:q,isLast:b,remainingBalance:o==null?void 0:o.toString()})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=l;g.BillingRemovePMScreen=a}),98);
-----
BillingPauseCampaignScreen.react",["fbt","BillingCurrencyAmount","BillingPauseCampaignScreenQuery.graphql","BillingPaymentMethodDisplayUtils","BillingRemovePMConstants","BillingRowContainer.react","RelayHooks","react","useBillingPauseCampaign","useBillingWizardComponents","useBillingWizardUtils"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingPauseCampaignScreenQuery.graphql");function a(a){var b=a.needWaitForRemove,e=a.onClose,f=a.onFailure,g=a.onNeedWait,i=a.onPayNow,j=a.onRemovePM,m=a.paymentAccountID,n=a.preloadedQuery,o=a.showIcon;a=a.wrapperProps;var p=c("useBillingWizardComponents")(),q=p.Column,r=p.Icon,s=p.Row,t=p.Text;p=p.Wrapper;var u=c("useBillingWizardUtils")();u=u.GetURL;u=u.read();var v=u("MANAGE_CAMPAIGNS",m),w=u("AD_TOOLS",m);u=d("RelayHooks").usePreloadedQuery(l,n);n=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(u==null?void 0:u.node,c("BillingRemovePMConstants").defaultPMLabel);u=(u=(u=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(u==null?void 0:(u=u.billable_account_by_payment_account)==null?void 0:u.account_balance))==null?void 0:u.isZero())!=null?u:!0;b===!0?g=g:u?g=j:g=i;j=c("useBillingPauseCampaign")(f,g,m,v,w);i=j.onSubmit;f=function(a,c,d){return d==="IG"?h._("__JHASH__HHqko80dfVj__JHASH__",[h._param("link to manage campaigns",k.jsx(a,{href:w,inline:!0,isDeeplink:!0,label:h._("__JHASH__GzawDQPzAJw__JHASH__")}))]):b===!0?h._("__JHASH__WDYXYXckoHO__JHASH__",[h._param("link to manage campaigns",k.jsx(a,{href:v,inline:!0,label:h._("__JHASH__f2CzM0IHDrP__JHASH__")}))]):h._("__JHASH__bkdRH2ujZ5e__JHASH__",[h._param("link to manage campaigns",k.jsx(a,{href:v,inline:!0,label:h._("__JHASH__f2CzM0IHDrP__JHASH__")}))])};return k.jsx(p,babelHelpers["extends"]({},a,{mobileVerticalTextAlign:!0,primaryButton:{action:i,label:h._("__JHASH__GPQBiarrj6W__JHASH__")},secondaryButton:{action:e,label:h._("__JHASH__0MYvOxQVQj2__JHASH__")},title:c("BillingRemovePMConstants").headline,children:k.jsx(q,{padding:16,children:k.jsxs(c("BillingRowContainer.react"),{children:[o===!0&&k.jsx(s,{justify:"space-around",children:k.jsx(r,{type:"CONFIRMATION_WARNING"})}),k.jsx(s,{marginBottom:8,children:k.jsx(t,{body:f,headline:b===!0||u?h._("__JHASH__JTZ8iMbwDmd__JHASH__",[h._param("payment method name",n)]):h._("__JHASH__hguztlHMiCe__JHASH__"),textAlign:"center"})})]})})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=l;g.BillingPauseCampaignScreen=a}),226);
-----
BillingRemovePMScreenQuery.graphql",["BillingRemovePMScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"billingEntryPoint"},{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"}],c=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},e],type:"ExternalCreditCard",abstractKey:null};e={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},e],type:"DirectDebit",abstractKey:null};var g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null}],type:"LPMCredential",abstractKey:null},k=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],l={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},m={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},n=[{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"}],o={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},p=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},o],q={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingRemovePMScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[d,f,e,g,h,i,j],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,l,m,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:n,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[d],storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:p,args:null,argumentDefinitions:[]}],storageKey:null},o],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingRemovePMScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,q,{kind:"InlineFragment",selections:[f,e,g,h,i,j],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null},{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,l,m,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[d,{alias:null,args:n,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[d,q],storageKey:null}],storageKey:null},q],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:p,storageKey:null},o],type:"AdAccount",abstractKey:null},q],storageKey:null}]},params:{id:b("BillingRemovePMScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingRemovePMScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingDecideRemovePMFlowEntryState",["BillingCurrencyAmount","BillingDecideRemovePMFlowEntryStateQuery.graphql","BillingPaymentModeUtils","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=72*24*60,j=h!==void 0?h:h=b("BillingDecideRemovePMFlowEntryStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;fA;I=(r=(s=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(B==null?void 0:(t=B.billable_account_by_payment_account)==null?void 0:t.account_balance))==null?void 0:s.isZero())!=null?r:!0;J=((u=B==null?void 0:(v=B.billable_account_by_payment_account)==null?void 0:v.subscription_details)!=null?u:[]).some(function(a){return a.subscription_status==="ACTIVE"||a.subscription_status==="IN_GRACE_PERIOD"});L=a;F.length>1||!G&&!H&&!J?K="removePM":J?K="cancelSubscription":H?G?(K="pauseCampaign",L=babelHelpers["extends"]({},a,{needWaitForRemove:!0,showIcon:!0})):(K="needWait",L=babelHelpers["extends"]({},a,{isFirstScreen:!0})):G&&I?(K="pauseCampaign",L=babelHelpers["extends"]({},a,{needWaitForRemove:!1,showIcon:!0})):K="pauseCampaignsAndPay";M=d("BillingPaymentModeUtils").isHybridAccount((w=B==null?void 0:(x=B.billable_account_by_payment_account)==null?void 0:x.payment_modes)!=null?w:[]);N=I&&!G&&!H&&!J;M&&a.shouldSkipPostpayRemoval!==!0&&F.length===1&&!N&&(K="checkPostpayRemovalEligibility",L=babelHelpers["extends"]({},a,{showIcon:!0}));return O.abrupt("return",{event:K,newProps:L});case 20:case"end":return O.stop()}},null,this)};return c}(d("BillingWizardTypes").DecisionState);g["default"]=a}),98);
-----
BillingPauseCampaignScreenQuery.graphql",["BillingPauseCampaignScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"},d=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},f],type:"ExternalCreditCard",abstractKey:null};f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},f],type:"DirectDebit",abstractKey:null};var h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null}],type:"LPMCredential",abstractKey:null},l=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],m=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingPauseCampaignScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[e,g,f,h,i,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:m,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingPauseCampaignScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,n,{kind:"InlineFragment",selections:[g,f,h,i,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null},{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:m,storageKey:null}],type:"AdAccount",abstractKey:null},n],storageKey:null}]},params:{id:b("BillingPauseCampaignScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingPauseCampaignScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRemoveLastPMActionsListScreen.react",["fbt","BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingRemoveLastPMActionsListScreenQuery.graphql","BillingRowContainer.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingRemoveLastPMActionsListScreenQuery.graphql");function a(a){var b,e=a.onNext,f=a.preloadedQuery;a=a.wrapperProps;var g=c("useBillingWizardComponents")(),i=g.Column,j=g.Icon,m=g.Row,n=g.Text;g=g.Wrapper;f=d("RelayHooks").usePreloadedQuery(l,f);var o=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(f.node,h._("__JHASH__B99fDmSyRM5__JHASH__"));b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f==null?void 0:(b=f.billable_account_by_payment_account)==null?void 0:b.account_balance))!=null?b:d("BillingCurrencyAmount").createZero((f=f==null?void 0:(b=f.billable_account_by_payment_account)==null?void 0:b.currency)!=null?f:"USD");return k.jsx(g,babelHelpers["extends"]({},a,{primaryButton:{action:e,label:h._("__JHASH__MtdnHRxQNaT__JHASH__")},title:h._("__JHASH__Ezao3YizptV__JHASH__"),children:k.jsx(i,{padding:16,children:k.jsxs(c("BillingRowContainer.react"),{marginBottom:8,children:[k.jsx(m,{children:k.jsx(n,{body:h._("__JHASH__yMShDtxNOK-__JHASH__",[h._param("payment method name",o)]),textAlign:"start"})}),k.jsxs(m,{columnSpacing:8,children:[k.jsx(i,{flex:!0,children:k.jsx(j,{listNumber:1,tintedBackgroundSize:36,type:"NUMERIC"})}),k.jsx(i,{children:k.jsx(n,{body:h._("__JHASH__1sXc6amgDlJ__JHASH__"),level:3,textAlign:"start"})})]}),k.jsxs(m,{columnSpacing:8,children:[k.jsx(i,{flex:!0,children:k.jsx(j,{listNumber:2,tintedBackgroundSize:36,type:"NUMERIC"})}),k.jsx(i,{children:k.jsx(n,{body:h._("__JHASH__Om6K5kn-1Lv__JHASH__",[h._param("balance amount",b.toString())]),level:3,textAlign:"start"})})]})]})})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=l;g.BillingRemoveLastPMActionsListScreen=a}),226);
-----
BillingDecideRemovePMFlowEntryStateQuery.graphql",["BillingDecideRemovePMFlowEntryStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},e={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subscription_details",plural:!0,selections:[f,{alias:null,args:null,kind:"ScalarField",name:"subscription_status",storageKey:null}],storageKey:null},h={alias:"all_active_campaigns_count",args:null,kind:"ScalarField",name:"ad_campaign_active_count",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"last_delivery_time_within_3_months",storageKey:null},j=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],k={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingDecideRemovePMFlowEntryStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[f],storageKey:null}],storageKey:null}],storageKey:null},g,{kind:"InlineFragment",selections:[h,i,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:j,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingDecideRemovePMFlowEntryStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[f,d,e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[f,{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[f,k],storageKey:null}],storageKey:null},k],storageKey:null},g,{kind:"InlineFragment",selections:[h,i,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:j,storageKey:null}],type:"AdAccount",abstractKey:null},k],storageKey:null}]},params:{id:b("BillingDecideRemovePMFlowEntryStateQuery_facebookRelayOperation"),metadata:{},name:"BillingDecideRemovePMFlowEntryStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRemoveLastPMActionsListScreenQuery.graphql",["BillingRemoveLastPMActionsListScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"},d=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},f],type:"ExternalCreditCard",abstractKey:null};f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},f],type:"DirectDebit",abstractKey:null};var h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null}],type:"LPMCredential",abstractKey:null},l=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],m={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},n=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},m],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingRemoveLastPMActionsListScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[e,g,f,h,i,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:n,args:null,argumentDefinitions:[]}],storageKey:null},m],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingRemoveLastPMActionsListScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,o,{kind:"InlineFragment",selections:[g,f,h,i,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null},{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:n,storageKey:null},m],type:"AdAccount",abstractKey:null},o],storageKey:null}]},params:{id:b("BillingRemoveLastPMActionsListScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingRemoveLastPMActionsListScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingSecureBusinessRefundsScreen.react",["BillingCurrencyAmount","BillingSecureBusinessRefundsScreenQuery.graphql","BillingSecureRefundConstant","BillingSecureRefundsView.react","BillingWrapperWithForm.react","RelayHooks","react","useBillingSubmitSecureBusinessRefund"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingSecureBusinessRefundsScreenQuery.graphql");function a(a){var b=a.businessID,e=a.onSubmit,f=a.paymentAccountID,g=a.preloadedQuery;a=a.wrapperProps;g=d("RelayHooks").usePreloadedQuery(k,g);b=c("useBillingSubmitSecureBusinessRefund")(b,f,e);f=b.fields;e=b.onSubmit;b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(b=g.business)==null?void 0:(b=b.active_bcp_refund_request)==null?void 0:b.total_amount))!=null?b:d("BillingCurrencyAmount").createZero((g=g==null?void 0:(b=g.business)==null?void 0:(g=b.active_bcp_refund_request)==null?void 0:(b=g.total_amount)==null?void 0:b.currency)!=null?g:"USD");return j.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:f,onSubmit:e,primaryButtonLabel:c("BillingSecureRefundConstant").primaryButtonLabel,title:c("BillingSecureRefundConstant").requestRefundHeader,children:j.jsx(c("BillingSecureRefundsView.react"),{amount:b})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=k;g.BillingSecureBusinessRefundsScreen=a}),98);
-----
BillingSecureBusinessRefundsScreenQuery.graphql",["BillingSecureBusinessRefundsScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],c=[{kind:"Variable",name:"id",variableName:"businessID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSecureBusinessRefundsScreenQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBCPRefund",kind:"LinkedField",name:"active_bcp_refund_request",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[e,d],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSecureBusinessRefundsScreenQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBCPRefund",kind:"LinkedField",name:"active_bcp_refund_request",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[d,e],storageKey:null},f],storageKey:null},f],storageKey:null}]},params:{id:b("BillingSecureBusinessRefundsScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingSecureBusinessRefundsScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
LiveProducerLiveBoostingBudgetInvoice.react",["fbt","BaseView.react","BillingCurrencyAmount","CometColumn.react","CometColumnItem.react","CometRow.react","CometRowItem.react","FDSTextPairing.react","PECurrency","react","useBillingInfoEstimatedTax","useDebouncedComet"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useState,m={budgetInvoice:{backgroundColor:"xlhe6ec",borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",$$css:!0},divider:{borderTopColor:"x8cjs6t",borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",$$css:!0}};function a(a){var b=a.adAccountID,e=a.currency,f=a.localBudget;a=l(f);var g=a[0];a=a[1];var i=c("useDebouncedComet")(a,{wait:400});k(function(){return i(f)},[i,f]);a=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:e,offset_amount:g.toString()});g=c("useBillingInfoEstimatedTax")(b,a);b=g.taxes;a=g.totalBudget;return j.jsxs(c("CometColumn.react"),{paddingHorizontal:16,paddingVertical:12,spacing:12,xstyle:m.budgetInvoice,children:[j.jsxs(c("CometRow.react"),{align:"justify",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__qgtHbdg0dtK__JHASH__"),bodyColor:"secondary",level:4})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:d("PECurrency").formatAmountWithExtendedSymbolAndOffset(e,f),bodyColor:"secondary",level:4})})]}),b==null?void 0:b.map(function(a,b){return j.jsxs(c("CometRow.react"),{align:"justify",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__1lUu-hqydt6__JHASH__",[h._param("country_code",a==null?void 0:a.taxName),h._param("country_tax",a==null?void 0:a.taxRate)]),bodyColor:"secondary",level:4})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:(a=a.amount)==null?void 0:a.toString(),bodyColor:"secondary",level:4})})]},b)}),j.jsx(c("CometColumnItem.react"),{children:j.jsx(c("BaseView.react"),{role:"separator",xstyle:m.divider})}),j.jsxs(c("CometRow.react"),{align:"justify",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__81xV5BlRjds__JHASH__"),bodyColor:"primary",level:4})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:a==null?void 0:a.toString(),bodyColor:"primary",level:4})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LiveProducerLiveBoostingPaymentSelector.react",["fbt","ix","AccordionAddOn.react","BillingCurrencyAmount","BillingLoggingProvider.react","BillingSelfServeWebLogger","BillingUPLWizardWebLogger","CometCircleButton.react","CometImage.react","CometLink.react","FDSAccordionListCell.react","FDSTextPairing.react","LWIOmniListCell.react","LiveProducerLiveBoostingPaymentSelectorQuery.graphql","QuickPerformanceLogger","RelayHooks","fbicon","qpl","react","useBillingWizard","useToggle"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useEffect,o=e.useState,p=e.useTransition,q=21,r=31,s=4,t={iconSpacing:{marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0}},u=j!==void 0?j:j=b("LiveProducerLiveBoostingPaymentSelectorQuery.graphql");function a(a){var b,e,f,g,j=a.budgetAmount,l=a.currency,v=a.paymentAccountID,w=a.paymentWizardCallbackRefSetter,x=a.setErrorState;a=c("useToggle")(!1);var y=a[0],z=a[1];a=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:l,offset_amount:j.toString()});j=o(null);var A=j[0],B=j[1];j=p();j[0];var C=j[1];j=function(){C(function(){B(function(a){return{fetchKey:((a=a==null?void 0:a.fetchKey)!=null?a:0)+1,fetchPolicy:"network-only"}})})};l=d("RelayHooks").useLazyLoadQuery(u,{budgetAmount:(a=a==null?void 0:a.asGraphQLInput().amount)!=null?a:"",currency:l,paymentAccountID:v},(a=A)!=null?a:{});a=(A=l==null?void 0:(A=l.billable_account_by_payment_account)==null?void 0:(a=A.billing_permissions)==null?void 0:a.includes("BILLING_WRITE"))!=null?A:!1;A=!a;var D=l==null?void 0:(l=l.billable_account_by_payment_account)==null?void 0:(l=l.billing_info)==null?void 0:l.payment_section_details;l=D==null?void 0:D.primary_action;b=(b=l==null?void 0:l.label)!=null?b:"";e=(e=l==null?void 0:l.wizard_name)!=null?e:"NONE";var E=c("useBillingWizard")({entryPointDetails:{entryPoint:"live_producer_pre_live_boosting"},jsonProps:l==null?void 0:l.wizard_props_json,onClose:j,paymentAccountID:v,wizardName:e},"placement_logging_tracking");l=D==null?void 0:D.inline_action;f=(f=l==null?void 0:l.wizard_name)!=null?f:"NONE";g=(g=l==null?void 0:l.label)!=null?g:"";var F=c("useBillingWizard")({entryPointDetails:{entryPoint:"live_producer_pre_live_boosting"},jsonProps:l==null?void 0:l.wizard_props_json,onClose:j,paymentAccountID:v,wizardName:f});j=function(){F()};n(function(){w(E)},[E,w]);n(function(){x(function(a){var b;((D==null?void 0:D.label)==null||(D==null?void 0:(b=D.inline_action)==null?void 0:b.wizard_name)==="ADD_PM")&&(k||(k=c("QuickPerformanceLogger"))).markerPoint(c("qpl")._(402788135,"2387"),"empty_payment");return babelHelpers["extends"]({},a,{payment:(D==null?void 0:D.label)==null||(D==null?void 0:(b=D.inline_action)==null?void 0:b.wizard_name)==="ADD_PM"})})},[x,D==null?void 0:D.label,D==null?void 0:(v=D.inline_action)==null?void 0:v.wizard_name]);v=(f=D==null?void 0:D.logos)!=null?f:[];f=v.map(function(a){a=a.uri;return a!=null?m.jsx(c("CometImage.react"),{height:q,src:a,width:r,xstyle:t.iconSpacing},a):null});v=m.jsxs("div",{"aria-label":D==null?void 0:D.label_ax,className:"x78zum5 x1lkfr7t x12mruv9",children:[f,(D==null?void 0:D.label)!=null&&m.jsx("span",{className:"x12nagc x1i64zmx",children:m.jsx(c("FDSTextPairing.react"),{headline:D==null?void 0:D.label,level:4})})]});f=(D==null?void 0:D.description)!=null?l!=null?m.jsxs("div",{"aria-label":D==null?void 0:D.description_ax,children:[D==null?void 0:D.description,m.jsx(c("CometLink.react"),{disabled:!a,onClick:j,target:"_blank",children:m.jsx(c("FDSTextPairing.react"),{body:g,bodyColor:"blueLink",level:4})})]}):m.jsx("div",{"aria-label":D==null?void 0:D.description_ax,children:D==null?void 0:D.description}):void 0;l=m.jsx(c("BillingLoggingProvider.react"),{logger:c("BillingSelfServeWebLogger"),upLogger:c("BillingUPLWizardWebLogger"),children:m.jsx(c("LWIOmniListCell.react"),{addOnSecondary:A||e==="NONE"?null:{label:b,onPress:function(){E()},testid:"billing_live_producer_payment_method_button",type:"secondary-button"},body:v,level:s,meta:f})});return m.jsx(c("FDSAccordionListCell.react"),{addOnEnd:c("AccordionAddOn.react"),addOnEndProps:{open:y},addOnStart:m.jsx(c("CometCircleButton.react"),{color:y?"white":"primary",icon:d("fbicon")._(i("578884"),20),label:h._("__JHASH__YFpi_JTR_tC__JHASH__"),size:36,type:y?"primary-background-overlay":"normal"}),content:m.jsx(c("FDSTextPairing.react"),{headline:D==null?void 0:D.label,level:4,meta:h._("__JHASH__iE-DGWMp0_V__JHASH__"),metaLocation:"above"}),onPress:function(){return z(!y)},selected:y,selectedBackground:"highlight",children:m.jsx("div",{className:"",children:l})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useBillingVerifySDC",["BillingCurrencyAmount","BillingError","BillingSDCVerifyScreenConstants","react","regeneratorRuntime","useBillingLogger","useBillingRelay","useBillingVerifySDCMutation.graphql","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useMemo,l=h!==void 0?h:h=b("useBillingVerifySDCMutation.graphql");function a(a,e,f,g,h,i,m,n,o){var p=c("useBillingLogger")(),q=c("useBillingWizardUPLogger")(),r=c("useBillingRelay")(),s=j(function(j,k,s){var t,u,v,w,x,y,z,A,B,C,D,E;return b("regeneratorRuntime").async(function(F){while(1)switch(F.prev=F.next){case 0:v=(k=o)!=null?k:"SFI";w={billable_account_payment_legacy_account_id:a,credential_id:e,intent:v,logging_data:p.getLoggingData(),upl_logging_data:babelHelpers["extends"]({},q==null?void 0:q.getLoggingData("useBillingVerifySDCMutation")),verification_code:j.verificationCode};F.next=4;return b("regeneratorRuntime").awrap(r.commitMutation({mutation:l,mutationName:l.params.name,variables:{input:w}},{event_context:"sdc_verify_auth",event_data:{credential_id:(t=e)!=null?t:"",intent:v}}));case 4:x=F.sent;if(!(x===null)){F.next=9;break}throw new(c("BillingError"))("Verifying SDC failed","mutation response came back with missing or invalid value",{event_action:"mutation",event_context:"sdc_verify_auth",event_data:{intent:v,paymentMethodID:e},event_result:"failure",event_side:"client_side"},{action:"mutate"},"critical_error");case 9:if(!((x==null?void 0:(u=x.verify_dynamic_descriptor_auth)==null?void 0:u.verified)===!0)){F.next=26;break}F.t0=o;F.next=F.t0==="DSL_BOOST"?13:17;break;case 13:B=((y=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(x==null?void 0:(z=x.verify_dynamic_descriptor_auth)==null?void 0:(A=z.dsl_boost)==null?void 0:A.target_currency_amount))!=null?y:d("BillingCurrencyAmount").createZero("USD")).toString();F.next=16;return b("regeneratorRuntime").awrap(m(B));case 16:return F.abrupt("break",24);case 17:if(!n){F.next=22;break}F.next=20;return b("regeneratorRuntime").awrap(i(f));case 20:F.next=24;break;case 22:F.next=24;return b("regeneratorRuntime").awrap(h());case 24:F.next=33;break;case 26:E=(C=x==null?void 0:(D=x.verify_dynamic_descriptor_auth)==null?void 0:D.num_tries_left)!=null?C:0;if(!(E===0)){F.next=32;break}F.next=30;return b("regeneratorRuntime").awrap(g(f));case 30:F.next=33;break;case 32:s({verificationCode:c("BillingSDCVerifyScreenConstants").incorrectCodeError(E)});case 33:case"end":return F.stop()}},null,this)},[f,h,i,n,g,a,e,m,o,r,q,p]),t=k(function(){return{verificationCode:{defaultValue:"",onChange:function(a){return{verificationCode:a}},required:!0,validate:function(a){a=(a=a==null?void 0:a.length)!=null?a:0;return a<4||a>128?c("BillingSDCVerifyScreenConstants").shortVerificationCodeError:null}}}},[]);return{fields:t,onSubmit:s}}g["default"]=a}),98);
-----
BillingSDCAuthScreen.react",["BillingCurrencyAmount","BillingRiskUtils","BillingRiskVerificationConstants","BillingRowContainer.react","BillingSDCAuthScreenQuery.graphql","BillingSDCAuthView.react","RelayHooks","react","regeneratorRuntime","useBillingLogger","useBillingSendSDCAuth","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingSDCAuthScreenQuery.graphql");function a(a){var e,f=a.handleCompleteVerification,g=a.handleSubmit,h=a.isSinglePMFlow,i=a.onError,l=a.paymentAccountID,m=a.paymentMethodID,n=a.preloadedQuery,o=a.verificationIntent,p=o===void 0?"SFI":o;o=a.wrapperProps;a=c("useBillingWizardComponents")();var q=a.Row,r=a.Text;a=a.Wrapper;var s=c("useBillingLogger")(),t=c("useBillingWizardUPLogger")();n=d("RelayHooks").usePreloadedQuery(k,n);n=(n=n==null?void 0:(n=n.billable_account_by_payment_account)==null?void 0:(n=n.billing_payment_account)==null?void 0:n.billing_payment_methods)!=null?n:[];n=n.filter(function(a){return(a==null?void 0:(a=a.credential)==null?void 0:a.__typename)==="ExternalCreditCard"});h&&m!=null&&(n=n.filter(function(a){return(a==null?void 0:(a=a.credential)==null?void 0:a.credential_id)===m}));var u=n[0];d("BillingRiskUtils").getSDCErrorInfo(u==null?void 0:u.credential);var v=(e=u==null?void 0:(e=u.credential)==null?void 0:e.credential_id)!=null?e:"",w=(e=(e=n)==null?void 0:e.length)!=null?e:0,x=0,y=null,z=null,A="";e=!1;var B=null,C=h||w===1;h=c("useBillingSendSDCAuth")(l,v,g,C,i,p);var D=h.onAuth;C&&w>0?(A=c("BillingRiskVerificationConstants").authorizeButton,B=function(){var a,c,e,f,h,j,k,l;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:if(!((u==null?void 0:u.usability)==="PENDING_VERIFICATION")){m.next=7;break}s.logEvent({event:{event_action:"click",event_context:"submit_button",event_data:{credential_id:(a=v)!=null?a:"",cta:A.toString(),intent:"sdc_skip_sending_auth"},event_result:"atomic",event_side:"user_action"}});t==null?void 0:t.logClickEvent("submit_button",{credential_id:(c=v)!=null?c:"",cta_text:A.toString(),intent:"sdc_skip_sending_auth"},{is_sdc_skip_sending_auth:!0});m.next=5;return b("regeneratorRuntime").awrap(g(v,C));case 5:m.next=18;break;case 7:if(!((u==null?void 0:u.usability)==="UNVERIFIED_OR_PENDING_AUTH")){m.next=14;break}s.logEvent({event:{event_action:"click",event_context:"submit_button",event_data:{credential_id:(e=u==null?void 0:(f=u.credential)==null?void 0:f.credential_id)!=null?e:"",cta:A.toString(),intent:"sdc_send_auth"},event_result:"atomic",event_side:"user_action"}});t==null?void 0:t.logClickEvent("submit_button",{credential_id:(h=u==null?void 0:(j=u.credential)==null?void 0:j.credential_id)!=null?h:"",cta_text:A.toString(),intent:"sdc_send_auth"},{is_sdc_skip_sending_auth:!1});m.next=12;return b("regeneratorRuntime").awrap(D());case 12:m.next=18;break;case 14:if(!((u==null?void 0:u.usability)==="UNVERIFIABLE"||(u==null?void 0:u.usability)==="UNUSABLE")){m.next=18;break}s.logEvent({event:{event_action:"click",event_context:"submit_button",event_data:{credential_id:(k=u==null?void 0:(l=u.credential)==null?void 0:l.credential_id)!=null?k:"",cta:A.toString(),intent:"sdc_send_auth"},event_result:"failure",event_side:"user_action"}});m.next=18;return b("regeneratorRuntime").awrap(i(d("BillingRiskUtils").SDCErrorStatus.UNVERIFIABLE));case 18:case"end":return m.stop()}},null,this)}):(A=c("BillingRiskVerificationConstants").primaryButtonLabelMultiplePM,B=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(f(x===1,y,z));case 2:case"end":return a.stop()}},null,this)});h=((h=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((h=n[0])==null?void 0:(h=h.credential)==null?void 0:h.sdc_auth_amount_localized))!=null?h:d("BillingCurrencyAmount").getFromUserInput("1","USD")).toString();var E=(n=n)==null?void 0:n.map(function(a){var b=a==null?void 0:a.credential;a=a==null?void 0:a.usability;a==="USABLE"&&(x++,n=d("BillingRiskUtils").getSDCErrorInfo(b),y=n.cardAssociationName,z=n.lastFour);return j.jsx(c("BillingSDCAuthView.react"),{handleSubmit:g,item:b,onError:i,paymentAccountID:l,showAuthorizeButton:w!==1,usability:a,verificationIntent:p},b==null?void 0:b.credential_id)});!C&&x===0&&(e=!0);return j.jsx(a,babelHelpers["extends"]({},o,{primaryButton:e?void 0:{action:B,label:A},testid:void 0,title:c("BillingRiskVerificationConstants").header,children:j.jsxs(c("BillingRowContainer.react"),{children:[j.jsx(q,{marginBottom:8,children:j.jsx(r,{body:c("BillingRiskVerificationConstants").authorizeBodySectionLocalizedAmount(h),bodyColor:"secondary",headline:c("BillingRiskVerificationConstants").authorizeHeader})}),E!=null?E:null]})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=k;g.BillingSDCAuthScreen=a}),98);
-----
BillingSDCErrorStatusState",["fbt","BillingCurrencyAmount","BillingDSLBoostConstants","BillingPaymentMethodDisplayUtils","BillingRiskUtils","BillingSDCErrorStatusStateQuery.graphql","BillingWizardTypes","XCometPaymentsCareAdsPaymentsSupportControllerRouteBuilder","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i!==void 0?i:i=b("BillingSDCErrorStatusStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingSDCVerifyScreen.react",["BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingRiskVerificationConstants","BillingSDCVerifyScreenConstants","BillingSDCVerifyScreenQuery.graphql","BillingSDCVerifyView.react","BillingWrapperWithForm.react","RelayHooks","react","useBillingVerifySDC"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||c("react"),k=h!==void 0?h:h=b("BillingSDCVerifyScreenQuery.graphql");function a(a){var b=a.handleSubmit,e=a.handleSubmitForDSLBoost,f=a.handleSubmitForSinglePMFlow,g=a.handleSupport,h=a.isSinglePMFlow,i=a.onExceeded,l=a.paymentAccountID,m=a.paymentMethodID,n=a.preloadedQuery,o=a.verificationIntent;a=a.wrapperProps;n=d("RelayHooks").usePreloadedQuery(k,n);var p=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(n.node);n=(n=(n=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((n=n.node)==null?void 0:n.sdc_auth_amount_localized))!=null?n:d("BillingCurrencyAmount").getFromUserInput("1","USD"))==null?void 0:n.toString();l=c("useBillingVerifySDC")(l,m,p,i,b,f,e,h,o);m=l.fields;i=l.onSubmit;return j.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:m,onSubmit:i,primaryButtonLabel:c("BillingSDCVerifyScreenConstants").primaryButtonLabel,testid:void 0,title:c("BillingRiskVerificationConstants").header,children:j.jsx(c("BillingSDCVerifyView.react"),{authAmount:n,cardDisplay:p,onSupport:g})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=k;g.BillingSDCVerifyScreen=a}),98);
-----
BillingSDCAuthScreenQuery.graphql",["BillingSDCAuthScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"billingEntryPoint"},{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},d=[c],e=[{kind:"Literal",name:"allowlist",value:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION","UNVERIFIABLE"]},{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"}],f={alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null};c=[c,{kind:"Literal",name:"show_default_amount",value:!0}];var k=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},m={alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:"billing_icons(limit:1)"};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSDCAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingSDCAuthView_item"},g,{kind:"InlineFragment",selections:[h,{kind:"InlineDataFragmentSpread",name:"BillingRiskUtils_SDCErrorInfo",selections:[i,j],args:null,argumentDefinitions:[]},{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:k,args:null,argumentDefinitions:[]}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSDCAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[g,{alias:null,args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{kind:"TypeDiscriminator",abstractKey:"__isPaymentCredential"},g,l,{kind:"InlineFragment",selections:[h,i,j,{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:k,storageKey:null},{kind:"InlineFragment",selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},m],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},m],type:"DirectDebit",abstractKey:null}],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null},l],storageKey:null},l],storageKey:null}]},params:{id:b("BillingSDCAuthScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingSDCAuthScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingSDCVerifyScreenQuery.graphql",["BillingSDCVerifyScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"},d=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},f],type:"ExternalCreditCard",abstractKey:null};f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},f],type:"DirectDebit",abstractKey:null};var h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null}],type:"LPMCredential",abstractKey:null},l=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],m=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingSDCVerifyScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[e,g,f,h,i,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]},{kind:"InlineFragment",selections:[{alias:null,args:l,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:m,args:null,argumentDefinitions:[]}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingSDCVerifyScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[g,f,h,i,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"},{kind:"InlineFragment",selections:[{alias:null,args:l,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:m,storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}]},params:{id:b("BillingSDCVerifyScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingSDCVerifyScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingVerifySDCMutation.graphql",["useBillingVerifySDCMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"num_tries_left",storageKey:null},f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useBillingVerifySDCMutation",selections:[{alias:null,args:c,concreteType:"VerifyDynamicDescriptorAuthMutationResponse",kind:"LinkedField",name:"verify_dynamic_descriptor_auth",plural:!1,selections:[d,e,{alias:null,args:null,concreteType:"XFBBillingLimitOverride",kind:"LinkedField",name:"dsl_boost",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"target_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useBillingVerifySDCMutation",selections:[{alias:null,args:c,concreteType:"VerifyDynamicDescriptorAuthMutationResponse",kind:"LinkedField",name:"verify_dynamic_descriptor_auth",plural:!1,selections:[d,e,{alias:null,args:null,concreteType:"XFBBillingLimitOverride",kind:"LinkedField",name:"dsl_boost",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"target_currency_amount",plural:!1,selections:f,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("useBillingVerifySDCMutation_facebookRelayOperation"),metadata:{},name:"useBillingVerifySDCMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingSDCErrorStatusStateQuery.graphql",["BillingSDCErrorStatusStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"}],c=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g=[e,f],h={kind:"InlineFragment",selections:g,type:"ExternalCreditCard",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},f],type:"DirectDebit",abstractKey:null},j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},l={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},m={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null}],type:"LPMCredential",abstractKey:null},n=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSDCErrorStatusStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[d,h,i,j,k,l,m],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]},{kind:"InlineFragment",selections:[{kind:"InlineDataFragmentSpread",name:"BillingRiskUtils_SDCErrorInfo",selections:g,args:null,argumentDefinitions:[]},{alias:null,args:null,concreteType:"XFBDslBoostCredentialEligibilityInfo",kind:"LinkedField",name:"dsl_boost_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"eligible_boost",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:n,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSDCErrorStatusStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[h,i,j,k,l,m],type:"PaymentCredential",abstractKey:"__isPaymentCredential"},{kind:"InlineFragment",selections:[e,f,{alias:null,args:null,concreteType:"XFBDslBoostCredentialEligibilityInfo",kind:"LinkedField",name:"dsl_boost_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"eligible_boost",plural:!1,selections:n,storageKey:null}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}]},params:{id:b("BillingSDCErrorStatusStateQuery_facebookRelayOperation"),metadata:{},name:"BillingSDCErrorStatusStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingDSLBoostAuthView.react",["BillingCurrencyAmount","BillingDSLBoostAuthView_item.graphql","BillingDSLBoostConstants","BillingRiskCredentialRow.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingDSLBoostAuthView_item.graphql");function a(a){var b,e=c("useBillingWizardComponents")();e=e.Row;var f=a.eligibleBoost,g=a.handleSelectCard,h=a.isDefaultPM,i=a.selectedID,l=a.verificationIntent,m=d("RelayHooks").useFragment(k,a.item),n=m==null?void 0:m.credential;m=m==null?void 0:m.usability;if((n==null?void 0:n.__typename)!=="ExternalCreditCard")return null;var o=(b=n==null?void 0:n.credential_id)!=null?b:"";b=h===!0&&a.selectedID==="";h=o===i;b===!0&&(g(o),h=!0);i=c("BillingDSLBoostConstants").dslBoostIncreaseEligibility(((a=f)!=null?a:d("BillingCurrencyAmount").createZero("USD")).toString());return j.jsx(e,{justify:"space-between",marginBottom:8,onPress:function(){return g(o)},onPressType:"SELECT",rowLabel:i,selected:h,children:j.jsx(c("BillingRiskCredentialRow.react"),{item:n,usability:m,verificationIntent:l})},o)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingDSLBoostAuthScreen.react",["BillingCurrencyAmount","BillingDSLBoostAuthScreenQuery.graphql","BillingDSLBoostAuthView.react","BillingDSLBoostConstants","BillingRiskVerificationConstants","BillingRowContainer.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState,l=h!==void 0?h:h=b("BillingDSLBoostAuthScreenQuery.graphql");function a(a){var b=a.handleSubmitCard,e=a.preloadedQuery,f=a.verificationIntent,g=f===void 0?"SFI":f;f=a.wrapperProps;a=c("useBillingWizardComponents")();var h=a.Row,i=a.Text;a=a.Wrapper;e=d("RelayHooks").usePreloadedQuery(l,e);var m=k(""),n=m[0],o=m[1];e=(m=e==null?void 0:(m=e.billable_account_by_payment_account)==null?void 0:(e=m.billing_payment_account)==null?void 0:e.billing_payment_methods)!=null?m:[];m=e.filter(function(a){return(a==null?void 0:(a=a.credential)==null?void 0:a.__typename)==="ExternalCreditCard"});var p=c("BillingRiskVerificationConstants").authorizeButton,q=function(){return b(n)},r=0,s=!0;m=m==null?void 0:m.map(function(a){var b;b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((b=a.credential)==null?void 0:(b=b.dsl_boost_eligibility)==null?void 0:b.eligible_boost);if(b!=null){r++;a=j.jsx(c("BillingDSLBoostAuthView.react"),{eligibleBoost:b,handleSelectCard:o,isDefaultPM:s,item:a,selectedID:n,verificationIntent:g},a==null?void 0:(b=a.credential)==null?void 0:b.id);s=!1;return a}});e=((e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((e=e[0])==null?void 0:(e=e.credential)==null?void 0:e.sdc_auth_amount_localized))!=null?e:d("BillingCurrencyAmount").getFromUserInput("1","USD")).toString();return j.jsx(a,babelHelpers["extends"]({},f,{primaryButton:{action:q,label:p},title:c("BillingRiskVerificationConstants").header,children:j.jsxs(c("BillingRowContainer.react"),{marginBottom:16,children:[j.jsx(h,{children:j.jsx(i,{body:c("BillingDSLBoostConstants").dslAuthBody,bodyColor:"secondary"})}),j.jsx(h,{children:j.jsx(i,{body:c("BillingRiskVerificationConstants").riskAuthBody(e),bodyColor:"secondary",headline:c("BillingRiskVerificationConstants").authorizeHeader})}),r>1&&j.jsx(h,{children:j.jsx(i,{body:c("BillingDSLBoostConstants").pmSelectionBody,bodyColor:"secondary",headline:c("BillingDSLBoostConstants").pmSelectionHeader})}),m]})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=l;g.BillingDSLBoostAuthScreen=a}),98);
-----
BillingDSLBoostAuthScreenQuery.graphql",["BillingDSLBoostAuthScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"billingEntryPoint"},c={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},d={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},e=[d],f=[{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"}],g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};d=[d,{kind:"Literal",name:"show_default_amount",value:!0}];var i=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],j=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:i,args:null,argumentDefinitions:[]}],k={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},l={alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:"billing_icons(limit:1)"};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingDSLBoostAuthScreenQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:f,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"BillingDSLBoostAuthView_item"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[g,h,{kind:"InlineFragment",selections:[{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:j,storageKey:null},{alias:null,args:null,concreteType:"XFBDslBoostCredentialEligibilityInfo",kind:"LinkedField",name:"dsl_boost_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"eligible_boost",plural:!1,selections:j,storageKey:null}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingDSLBoostAuthScreenQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[g,{alias:null,args:f,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[g,h,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"XFBDslBoostCredentialEligibilityInfo",kind:"LinkedField",name:"dsl_boost_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"eligible_boost",plural:!1,selections:i,storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{kind:"InlineFragment",selections:[k,{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},l],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},k,{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},l],type:"DirectDebit",abstractKey:null}],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null},h],storageKey:null},h],storageKey:null}]},params:{id:b("BillingDSLBoostAuthScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingDSLBoostAuthScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingAltPayState",["BillingAltPay2Screen.react","BillingAltPayConstants","BillingAltPayScreen.react","BillingAltPayStateCheckWalletPaymentStatusMutation.graphql","BillingAltPayStateInitMutation.graphql","BillingAltPayStateInitQuery.graphql","BillingCurrencyAmount","BillingError","BillingIconUtils","BillingPaymentModeUtils","BillingWizardTypes","getEntrypointForGraphQL","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||c("react"),m=h!==void 0?h:h=b("BillingAltPayStateInitQuery.graphql"),n=i!==void 0?i:i=b("BillingAltPayStateInitMutation.graphql"),o=j!==void 0?j:j=b("BillingAltPayStateCheckWalletPaymentStatusMutation.graphql");function p(a,e,f){var g,h,i,j,k,l,n,o,p,q,r,s,t,u,v,w,x,y;return b("regeneratorRuntime").async(function(z){while(1)switch(z.prev=z.next){case 0:r=f.logger,s=f.relay.fetchQuery,t=f.upLogger;z.next=3;return b("regeneratorRuntime").awrap(s({query:m,queryName:m.params.name,variables:{billingEntryPoint:c("getEntrypointForGraphQL")(t==null?void 0:(g=t.getLoggingData(""))==null?void 0:g.entry_point),paymentAccountID:e}},{event_context:"screen"}));case 3:u=z.sent;v=(h=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((i=u.billable_account_by_payment_account)==null?void 0:i.prepay_balance))!=null?h:d("BillingCurrencyAmount").createZero((j=(k=u.billable_account_by_payment_account)==null?void 0:k.currency)!=null?j:"USD");w=(l=u==null?void 0:(n=u.billable_account_by_payment_account)==null?void 0:n.payment_modes)!=null?l:[];x=(u==null?void 0:(o=u.billable_account_by_payment_account)==null?void 0:o.prepay_on_postpay_gk)===!0&&d("BillingPaymentModeUtils").isHybridAccount(w);y=u==null?void 0:(p=u.billable_account_by_payment_account)==null?void 0:(q=p.billing_payment_account)==null?void 0:q.billing_payment_method_options.find(function(b){return b.credential_id===a});if(!(y!=null&&y.payment_method_type!=null)){z.next=10;break}return z.abrupt("return",{altpayName:y==null?void 0:y.title,prepaidBalance:v,provider:y.payment_method_type,showPrepayOnPostpayUpdates:x});case 10:r.logError("query came back with missing or invalid fields",{event:{event_action:"query",event_context:"altpay_state",event_side:"client_side"},exception_class:"error",exception_message:"Missing provider or payment method type",upl_event:{action:"fetch"}});t==null?void 0:t.logBillingPayloadError("query came back with missing or invalid fields",{event:{event_action:"query",event_context:"altpay_state",event_side:"client_side"},exception_class:"error",exception_message:"Missing provider or payment method type",upl_event:{action:"fetch"}});return z.abrupt("return",{altpayName:"",prepaidBalance:v,provider:"",showPrepayOnPostpayUpdates:x});case 13:case"end":return z.stop()}},null,this)}function q(a){var b=[];for(var c=0;c-----
useBillingAltPayAddFunds",["BillingCurrencyAmount","BillingPrepayUtils","RelayHooks","react","regeneratorRuntime","useBillableAccountBalance","useBillingAltPayAddFunds_account.graphql","useBillingLogger","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useMemo,l=e.useState,m=h!==void 0?h:h=b("useBillingAltPayAddFunds_account.graphql");function a(a,e,f){var g,h=c("useBillingLogger")(),i=c("useBillingWizardUPLogger")();a=d("RelayHooks").useFragment(m,a);var n=(g=a==null?void 0:a.currency)!=null?g:"USD";i==null?void 0:i.appendMetadataIfNotNull({currency:n});i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.prepay_details)==null?void 0:g.default_funding_amount);var o=f!=null?f:i;f=l((g=o==null?void 0:o.format({showSymbol:!1}))!=null?g:d("BillingCurrencyAmount").createZero(n).format({showSymbol:!1}));i=f[0];var p=f[1],q=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.prepay_details)==null?void 0:g.max_acceptable_amount),r=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(f=a.prepay_details)==null?void 0:f.min_acceptable_amount);g=c("useBillableAccountBalance")(a);f=g.balance;a=g.isStoredBalance;g=a?f:d("BillingCurrencyAmount").createZero(n);a=g.add(d("BillingCurrencyAmount").getFromUserInput(i,n));f=j(function(a){var c;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:c=d("BillingCurrencyAmount").getFromUserInput(a.amount,n);f.next=3;return b("regeneratorRuntime").awrap(e(c));case 3:case"end":return f.stop()}},null,this)},[n,e]);g=k(function(){var a;return{amount:{defaultValue:(a=o==null?void 0:o.format({showSymbol:!1}))!=null?a:"0",isSensitive:!1,onChange:function(a){p(a);return{amount:a}},required:!0,uplFieldKey:"payment_amount",validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,n);return d("BillingPrepayUtils").validateAmount(a,r,q,h)}}}},[n,o,h,q,r]);return{fields:g,newPrepaidBalance:a,onSubmit:f}}g["default"]=a}),98);
-----
BillingThirdPartyAddFundsState",["fbt","BillingAltPay2Screen.react","BillingCurrencyAmount","BillingError","BillingIconUtils","BillingPaymentModeUtils","BillingRecurringLPMUtils","BillingThirdPartyAddFundsStateCheckWalletPaymentStatusMutation.graphql","BillingThirdPartyAddFundsStateInitMutation.graphql","BillingThirdPartyAddFundsStateInitQuery.graphql","BillingThirdPartyAddFundsStatePaymentAccountMutation.graphql","BillingThirdPartyConstants","BillingThirdPartyRedirectMethodEnum","BillingThirdPartyScreen.react","BillingWizardTypes","Promise","getEntrypointForGraphQL","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o=n||c("react"),p=i!==void 0?i:i=b("BillingThirdPartyAddFundsStateInitQuery.graphql"),q=j!==void 0?j:j=b("BillingThirdPartyAddFundsStateInitMutation.graphql"),r=k!==void 0?k:k=b("BillingThirdPartyAddFundsStatePaymentAccountMutation.graphql"),s=l!==void 0?l:l=b("BillingThirdPartyAddFundsStateCheckWalletPaymentStatusMutation.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingAltPayStateInitQuery.graphql",["BillingAltPayStateInitQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"billingEntryPoint"},c={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},d=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],e={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},e],g={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},h={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},i=[{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"}],j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_method_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],type:"AdAccountAltpayOption",abstractKey:null},k={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingAltPayStateInitQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null},g,h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[j],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingAltPayStateInitQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[k,e,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:f,storageKey:null}],type:"AdAccount",abstractKey:null},g,h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[k,{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[k,j,l],storageKey:null},l],storageKey:null},l],storageKey:null}]},params:{id:b("BillingAltPayStateInitQuery_facebookRelayOperation"),metadata:{},name:"BillingAltPayStateInitQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingAltPayAddFunds_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{kind:"RootArgument",name:"paymentMethodID"},{kind:"RootArgument",name:"providerID"}],kind:"Fragment",metadata:null,name:"useBillingAltPayAddFunds_account",selections:[{args:null,kind:"FragmentSpread",name:"useBillableAccountBalance_billingAccount"},{kind:"InlineFragment",selections:[a,{alias:null,args:[{kind:"Variable",name:"credential_id",variableName:"paymentMethodID"},{kind:"Literal",name:"do_not_filter",value:!0},{kind:"Variable",name:"payment_method_type",variableName:"providerID"}],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_details",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:b,storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingThirdPartyAddFundsStateInitQuery.graphql",["BillingThirdPartyAddFundsStateInitQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"billingEntryPoint"},c={defaultValue:null,kind:"LocalArgument",name:"country"},d={defaultValue:null,kind:"LocalArgument",name:"currency"},e={defaultValue:null,kind:"LocalArgument",name:"intent"},f={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},g={defaultValue:null,kind:"LocalArgument",name:"sharedStoredBalanceID"},h=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},k=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},j],l={kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:k,args:null,argumentDefinitions:[]},m={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},n={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},o={alias:"enable_custom_webview_request_handling",args:[{kind:"Literal",name:"gk_name",value:"BILLING_THIRD_PARTY_WEBVIEW_REQUEST_LOAD_START"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"BILLING_THIRD_PARTY_WEBVIEW_REQUEST_LOAD_START")"},p={alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"auto_reload_status",storageKey:null}],storageKey:null},q=[{kind:"Variable",name:"country",variableName:"country"},{kind:"Variable",name:"currency",variableName:"currency"},{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"},{kind:"Variable",name:"intent",variableName:"intent"}],r={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_method_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supports_recurring",storageKey:null}],type:"AdAccountAltpayOption",abstractKey:null},s=[{kind:"Variable",name:"id",variableName:"sharedStoredBalanceID"}],t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d,e,f,g],kind:"Fragment",metadata:null,name:"BillingThirdPartyAddFundsStateInitQuery",selections:[{alias:null,args:h,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[l],storageKey:null}],type:"AdAccount",abstractKey:null},m,n,o,p],storageKey:null},{alias:null,args:q,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[r],storageKey:null}],storageKey:null},{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[l,j],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[f,c,d,e,g,a],kind:"Operation",name:"BillingThirdPartyAddFundsStateInitQuery",selections:[{alias:null,args:h,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[i,j,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:k,storageKey:null}],type:"AdAccount",abstractKey:null},m,n,o,p,t],storageKey:null},{alias:null,args:q,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[i,r,t],storageKey:null},t],storageKey:null},{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[i,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:k,storageKey:null}],type:"StoredBalance",abstractKey:null},t],storageKey:null}]},params:{id:b("BillingThirdPartyAddFundsStateInitQuery_facebookRelayOperation"),metadata:{},name:"BillingThirdPartyAddFundsStateInitQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingDownloadProforma",["fbt","BillingCurrencyAmount","BillingPrepayUtils","XBillingProformaControllerRouteBuilder","react","regeneratorRuntime","useBillingLogger","useBillingWizardUtils"],(function(a,b,c,d,e,f,g,h){"use strict";var i;e=i||d("react");var j=e.useCallback,k=e.useMemo;function a(a,e,f,g){var i=c("useBillingWizardUtils")();i=i.OpenLink;var l=i.read(),m=c("useBillingLogger")(),n=d("BillingCurrencyAmount").createZero(f).format({showSymbol:!1});i=j(function(i){var j,k;return b("regeneratorRuntime").async(function(m){while(1)switch(m.prev=m.next){case 0:j=d("BillingCurrencyAmount").getFromUserInput(i.amount,f);m.prev=1;k=c("XBillingProformaControllerRouteBuilder").buildUri({businessID:a,fundingAmount:j.toString()}).toString();l(k);m.next=6;return b("regeneratorRuntime").awrap(g({body:h._("__JHASH__bdVgJ-Sdp4J__JHASH__",[h._param("business name",e),h._param("business id",a),h._param("amount",j.toString())]),headline:h._("__JHASH__u1e1DOnm65A__JHASH__"),title:h._("__JHASH__u1e1DOnm65A__JHASH__"),type:"LEARN"}));case 6:m.next=13;break;case 8:m.prev=8;m.t0=m["catch"](1);m.next=12;return b("regeneratorRuntime").awrap(g({body:h._("__JHASH__rqsci4czdVD__JHASH__"),headline:h._("__JHASH__0XOXigy62Yy__JHASH__"),overrideSecondaryButton:{href:"https://www.facebook.com/ads/payments/support",label:h._("__JHASH__MPuYcr7elYV__JHASH__")},title:h._("__JHASH__0GNYXZNZ-H0__JHASH__"),type:"ERROR"}));case 12:throw m.t0;case 13:case"end":return m.stop()}},null,this,[[1,8]])},[a,e,f,g,l]);var o=k(function(){return{amount:{defaultValue:n,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,f);a=d("BillingPrepayUtils").validateAmount(a,null,null,m);if(a!=null)return{message:a,validationState:"ERROR"}}}}},[f,m,n]);return{fields:o,handleSubmit:i}}g["default"]=a}),226);
-----
useBillingUpdateDateThreshold",["BillingCurrencyAmount","BillingDateUtils","BillingManageDateThresholdConstants","RelayHooks","react","regeneratorRuntime","useBillingLogger","useBillingRelay","useBillingUpdateDateThreshold_D_Mutation.graphql","useBillingUpdateDateThreshold_T_Mutation.graphql","useBillingUpdateDateThreshold_account.graphql","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;e=k||d("react");var l=e.useCallback,m=e.useMemo,n=h!==void 0?h:h=b("useBillingUpdateDateThreshold_account.graphql"),o=i!==void 0?i:i=b("useBillingUpdateDateThreshold_T_Mutation.graphql"),p=j!==void 0?j:j=b("useBillingUpdateDateThreshold_D_Mutation.graphql"),q=function(a){a=parseInt(a,10);if(a<1||a>31)return c("BillingManageDateThresholdConstants").invalidDateInputDescription},r=function(a,b,e,f){var g=c("BillingManageDateThresholdConstants").invalidThresholdInputDescription(e,f);if(f==null||e==null)return g;b=d("BillingCurrencyAmount").getFromUserInput(b,a);f=d("BillingCurrencyAmount").getFromUserInput(f,a);e=d("BillingCurrencyAmount").getFromUserInput(e,a);if(b.isZero()||f.isZero()||e.isZero()||b.compare(f)<0||b.compare(e)>0)return g},s=function(a,b,c,e,f,g){return{date:{defaultValue:a,onChange:function(c){c!=null&&(g==null?void 0:g.appendScreenMetadata({reset_day:a}));return{date:c,threshold:b}},required:!1,validate:function(a){if(a!=null)return q(a)}},threshold:{defaultValue:b,isEmpty:function(a){return a==null||a===""},onChange:function(a,b){if(a!=null&&a!==""){var e=d("BillingCurrencyAmount").getFromUserInput(a,c);g==null?void 0:g.appendScreenMetadata({requested_threshold_amount:parseFloat(e.asGraphQLInput().amount)})}return babelHelpers["extends"]({},b,{threshold:a})},required:!0,validate:function(a){if(a!=null)return r(c,a,e,f)}}}};function a(a,e,f,g,h,i){var j,k,q=c("useBillingRelay")(),r=c("useBillingLogger")(),t=c("useBillingWizardUPLogger")();a=d("RelayHooks").useFragment(n,a);var u=(j=a==null?void 0:a.has_capability)!=null?j:!1;j=a==null?void 0:(j=a.active_billing_date_preference)==null?void 0:j.day_of_month;var v=(k=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.requested_billing_threshold))==null?void 0:k.toString(),w=(k=a==null?void 0:a.admarket_id)!=null?k:"",x=(k=a==null?void 0:a.currency)!=null?k:"USD",y=(k=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.min_billing_threshold_currency_amount))==null?void 0:k.toString(),z=(k=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.max_billing_threshold_currency_amount))==null?void 0:k.toString(),A=(k=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.billing_threshold_currency_amount))==null?void 0:k.toString(),B=null;j!=null&&(B=j.toString());a=l(function(a){var i,j,k,l,m,n,s,v,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N;return b("regeneratorRuntime").async(function(O){while(1)switch(O.prev=O.next){case 0:O.prev=0;if(!(u&&a.date!=null)){O.next=6;break}O.next=4;return b("regeneratorRuntime").awrap(q.commitMutation({mutation:p,mutationName:p.params.name,variables:{input:{admarket_id:w,day_of_month:parseInt(a.date,10),upl_logging_data:babelHelpers["extends"]({},t==null?void 0:t.getLoggingData("useBillingUpdateDateThreshold_D_Mutation"))}}},{event_context:"update_billing_date"}));case 4:z=O.sent,l=z==null?void 0:(s=z.ad_account_billing_date_preference)==null?void 0:(v=s.ad_account)==null?void 0:(y=v.active_billing_date_preference)==null?void 0:y.day_of_month;case 6:if(!(a.threshold!=null)){O.next=13;break}G=d("BillingCurrencyAmount").getFromUserInput(a.threshold,x).asGraphQLInput();O.next=10;return b("regeneratorRuntime").awrap(q.commitMutation({mutation:o,mutationName:o.params.name,variables:{input:{billable_account_payment_legacy_account_id:f,requested_billing_threshold:G,upl_logging_data:babelHelpers["extends"]({},t==null?void 0:t.getLoggingData("useBillingUpdateDateThreshold_T_Mutation"))}}},{event_context:"update_billing_threshold"}));case 10:H=O.sent,m=H==null?void 0:(A=H.billable_account_requested_billing_threshold)==null?void 0:(B=A.billable_account)==null?void 0:(C=B.requested_billing_threshold)==null?void 0:C.formatted_amount,n=H==null?void 0:(D=H.billable_account_requested_billing_threshold)==null?void 0:(E=D.billable_account)==null?void 0:(F=E.billing_threshold_currency_amount)==null?void 0:F.formatted_amount;case 13:I=((i=l)!=null?i:!isNaN(a.date))?parseInt((j=a.date)!=null?j:0,10):0;J=I!==0?I+d("BillingDateUtils").ordinalSuffix(I):null;K=(k=m)!=null?k:a.threshold;L=K===n;if(!(g!=null)){O.next=22;break}O.next=20;return b("regeneratorRuntime").awrap(g((M=n)!=null?M:"",(N=K)!=null?N:""));case 20:O.next=24;break;case 22:O.next=24;return b("regeneratorRuntime").awrap(e({body:c("BillingManageDateThresholdConstants").successBody(K,J,I>28,L),headline:c("BillingManageDateThresholdConstants").successHeadline(m!=null,l!=null),type:"SUCCESS"}));case 24:O.next=37;break;case 26:O.prev=26;O.t0=O["catch"](0);if(!(h!=null)){O.next=33;break}O.next=31;return b("regeneratorRuntime").awrap(h(a));case 31:O.next=35;break;case 33:O.next=35;return b("regeneratorRuntime").awrap(e({body:c("BillingManageDateThresholdConstants").errorBody,headline:c("BillingManageDateThresholdConstants").errorHeadline,title:c("BillingManageDateThresholdConstants").errorTitle,type:"ERROR"}));case 35:r.logError(O.t0.type,O.t0.errorPayload),t==null?void 0:t.logBillingPayloadError(O.t0.type,O.t0.errorPayload);case 37:case"end":return O.stop()}},null,this,[[0,26]])},[u,g,q,w,x,f,e,h,r,t]);k=m(function(){return s(B,i==="lower"?A:v,x,i==="lower"?A:z,i==="max"?A:y,t)},[B,A,v,x,i,z,y]);return{fields:k,onSubmit:a}}g["default"]=a}),98);
-----
useBillingUpdateDateThreshold_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingUpdateDateThreshold_account",selections:[{alias:null,args:null,kind:"ScalarField",name:"admarket_id",storageKey:null},a,{alias:null,args:[{kind:"Literal",name:"capability",value:"CAN_CHANGE_PREFERRED_BILLING_DAY"}],kind:"ScalarField",name:"has_capability",storageKey:"has_capability(capability:"CAN_CHANGE_PREFERRED_BILLING_DAY")"},{alias:null,args:null,concreteType:"AdAccountBillingDatePreference",kind:"LinkedField",name:"active_billing_date_preference",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"day_of_month",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_billing_threshold_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_billing_threshold_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:b,storageKey:null}],type:"AdAccount",abstractKey:null}}();e.exports=a}),null);
-----
useBillingRequestCreditIncreaseForm",["BillingCountryCurrencyUtils","BillingCurrencyAmount","BillingError","RelayHooks","react","regeneratorRuntime","useBillingRequestCreditIncreaseForm_data.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useMemo,l=e.useState,m=h!==void 0?h:h=b("useBillingRequestCreditIncreaseForm_data.graphql");function a(a,e){var f=l(null),g=f[0],h=f[1];f=d("RelayHooks").useFragment(m,a);var i=f==null?void 0:f.credit_limit,n=f==null?void 0:f.sold_to_org,o=n==null?void 0:n.id;a=(f=n==null?void 0:(a=n.valid_currencies_with_fx_rate)==null?void 0:a.map(function(a){return{label:d("BillingCountryCurrencyUtils").getCurrencyName(a.to_currency),value:(a=a.to_currency)!=null?a:""}}))!=null?f:[];if(o==null||a.length===0)throw new(c("BillingError"))("useBillingRequestCreditIncreaseForm has missing values","required props is missing or invalid",{event_action:"query",event_context:"mi_request_credit_increase_form",event_side:"client_side"},{action:"fetch"},"error");if((i==null?void 0:i.currency)!==null&&(i==null?void 0:i.currency)!=="USD")throw new(c("BillingError"))("credit limit from useBillingRequestCreditIncreaseForm has non-USD currency","required props is missing or invalid",{event_action:"unknown",event_context:"mi_request_credit_increase_form",event_side:"client_side"},{action:"unknown"},"error");f=j(function(a){var c,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:c=a.currency;f=d("BillingCurrencyAmount").getFromUserInput(a.projectedSpend,c).toString();g=d("BillingCurrencyAmount").getFromUserInput(a.requestedCreditLimit,c).toString();h.next=5;return b("regeneratorRuntime").awrap(e(a.currency,o,f,a.reason,g));case 5:case"end":return h.stop()}},null,this)},[e,o]);var p=k(function(){return{currency:{defaultValue:"",onChange:function(a,b){var c;c=n==null?void 0:(c=n.valid_currencies_with_fx_rate)==null?void 0:c.find(function(b){return(b==null?void 0:b.to_currency)===a});var e=null;c=c==null?void 0:c.fx_rate;var f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i);if(c!=null&&f!=null){f=f.multiply(c);e=f.toString()+" "+a}h(e);return babelHelpers["extends"]({},b,{currency:a})},required:!0},projectedSpend:{defaultValue:"",required:!0,validate:function(a,b){b=b.currency;a=d("BillingCurrencyAmount").getFromUserInput(a,b);if(a.compare(d("BillingCurrencyAmount").createZero(b))<=0)return"Amount must be positive"}},reason:{defaultValue:"",required:!1},requestedCreditLimit:{defaultValue:"",required:!0,validate:function(a,b){b=b.currency;a=d("BillingCurrencyAmount").getFromUserInput(a,b);if(a.compare(d("BillingCurrencyAmount").createZero(b))<=0)return"Amount must be positive";if(g==null)return;b=d("BillingCurrencyAmount").getFromUserInput(g,b);if(a.compare(b)<=0)return"Inputted amount must be greater than the current credit limit"}}}},[i,g,n==null?void 0:n.valid_currencies_with_fx_rate]);return{currencyOptions:a,currentDisplayableCreditLimit:g,fields:p,onSubmit:f}}g["default"]=a}),98);
-----
useBillingRequestCreditIncreaseForm_data.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingRequestCreditIncreaseForm_data",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"credit_limit",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]},a],storageKey:null},{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"sold_to_org",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"XFBCurrencyFXRateInfo",kind:"LinkedField",name:"valid_currencies_with_fx_rate",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"fx_rate",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"to_currency",storageKey:null}],storageKey:null}],storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"}}();e.exports=a}),null);
-----
BillingMIPayNowInitDecisionState",["BillingCurrencyAmount","BillingErrorUtils","BillingMIPayNowInitDecisionStateQuery.graphql","BillingMIToSelfServeLandingConstants","BillingWizardTypes","Promise","err","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("BillingMIPayNowInitDecisionStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f=0&&!r.isZero();if(!y){A.next=26;break}return A.abrupt("return",(i||(i=b("Promise"))).resolve({event:"onPayNow",newProps:babelHelpers["extends"]({},a,{accountBalance:v,invoiceIDs:q,paymentAmount:r,paymentMethodID:s,paymentMethodType:t})}));case 26:return A.abrupt("return",(i||(i=b("Promise"))).resolve({event:"onDone",newProps:a}));case 27:throw c("err")("The state is invalid due to an odd combination of transition step and/or invoices. Or we have a null transition step.");case 30:A.prev=30;A.t0=A["catch"](1);z=d("BillingErrorUtils").buildBillingErrorFromError("server side query failure",{event_action:"query",event_context:"billing_mi_pay_now_init_decision_state",event_result:"failure",event_side:"client_side"},{action:"load"},A.t0,"critical_error");f.logError(z.type,z.errorPayload);h==null?void 0:h.logBillingPayloadError(z.type,z.errorPayload);z.summary=c("BillingMIToSelfServeLandingConstants").failureHeader.toString();z.description=c("BillingMIToSelfServeLandingConstants").failureBody.toString();throw z;case 38:case"end":return A.stop()}},null,this,[[1,30]])};return e}(d("BillingWizardTypes").DecisionState);g["default"]=a}),98);
-----
BillingInitMIToSelfServeStateMutation.graphql",["BillingInitMIToSelfServeStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,concreteType:"Error",kind:"LinkedField",name:"error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"summary",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null}],storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"invoice_ids",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingInitMIToSelfServeStateMutation",selections:[{alias:null,args:c,concreteType:"SwitchOffMIResponse",kind:"LinkedField",name:"switch_off_mi_initialize",plural:!1,selections:[d,{alias:null,args:null,concreteType:"SwitchOffMI",kind:"LinkedField",name:"switch_off_mi",plural:!1,selections:[e,{alias:null,args:null,concreteType:"CurrentBillingPeriodCreditedInvoices",kind:"LinkedField",name:"current_billing_period_credited_invoices",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[f,g],args:null,argumentDefinitions:[]},h,g,i],storageKey:null},j],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingInitMIToSelfServeStateMutation",selections:[{alias:null,args:c,concreteType:"SwitchOffMIResponse",kind:"LinkedField",name:"switch_off_mi_initialize",plural:!1,selections:[d,{alias:null,args:null,concreteType:"SwitchOffMI",kind:"LinkedField",name:"switch_off_mi",plural:!1,selections:[e,{alias:null,args:null,concreteType:"CurrentBillingPeriodCreditedInvoices",kind:"LinkedField",name:"current_billing_period_credited_invoices",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[f,g,h,i],storageKey:null},j],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingInitMIToSelfServeStateMutation_facebookRelayOperation"),metadata:{},name:"BillingInitMIToSelfServeStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingMIPayNowInitDecisionStateQuery.graphql",["BillingMIPayNowInitDecisionStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"switchOffMIID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],e=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:d,args:null,argumentDefinitions:[]}],f=[{kind:"Variable",name:"id",variableName:"switchOffMIID"}],g={alias:null,args:null,kind:"ScalarField",name:"invoice_ids",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"is_balance_fully_paid",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"transition_step",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingMIPayNowInitDecisionStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:null}],storageKey:null},{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"MIPayNowDetailsChunk",kind:"LinkedField",name:"invoice_ids_and_charge_amount_to_pay",plural:!1,selections:[g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charge_amount",plural:!1,selections:e,storageKey:null},h],storageKey:null},i],type:"SwitchOffMI",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingMIPayNowInitDecisionStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[j,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:d,storageKey:null},k],storageKey:null},{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[j,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"MIPayNowDetailsChunk",kind:"LinkedField",name:"invoice_ids_and_charge_amount_to_pay",plural:!1,selections:[g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charge_amount",plural:!1,selections:d,storageKey:null},h],storageKey:null},i],type:"SwitchOffMI",abstractKey:null},k],storageKey:null}]},params:{id:b("BillingMIPayNowInitDecisionStateQuery_facebookRelayOperation"),metadata:{},name:"BillingMIPayNowInitDecisionStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRequestSharedStoredBalanceRefundState",["fbt","BillingCurrencyAmount","BillingRequestSharedStoredBalanceRefundStateMutation.graphql","BillingRequestSharedStoredBalanceRefundStateQuery.graphql","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i!==void 0?i:i=b("BillingRequestSharedStoredBalanceRefundStateQuery.graphql"),l=j!==void 0?j:j=b("BillingRequestSharedStoredBalanceRefundStateMutation.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingRequestSharedStoredBalanceRefundStateQuery.graphql",["BillingRequestSharedStoredBalanceRefundStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"sharedStoredBalanceID"}],c=[{kind:"Variable",name:"id",variableName:"sharedStoredBalanceID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingRequestSharedStoredBalanceRefundStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[e,d],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingRequestSharedStoredBalanceRefundStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[d,e],storageKey:null}],type:"StoredBalance",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingRequestSharedStoredBalanceRefundStateQuery_facebookRelayOperation"),metadata:{},name:"BillingRequestSharedStoredBalanceRefundStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingPaymentThresholdLandingScreen.react",["fbt","BillingCurrencyAmount","BillingPaymentThresholdConstants","BillingPaymentThresholdLandingScreenQuery.graphql","BillingPaymentThresholdLandingView.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("BillingPaymentThresholdLandingScreenQuery.graphql");function a(a){var b,e=a.onCancel,f=a.onLowerThreshold,g=a.onSetThreshold,i=a.preloadedQuery;a=a.wrapperProps;i=d("RelayHooks").usePreloadedQuery(m,i);b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(b=i.ad_account)==null?void 0:b.billing_threshold_currency_amount))!=null?b:d("BillingCurrencyAmount").createZero((b=i==null?void 0:(b=i.ad_account)==null?void 0:(b=b.billing_threshold_currency_amount)==null?void 0:b.currency)!=null?b:"USD");var j=c("useBillingWizardComponents")();j=j.Wrapper;var n=l(null),o=n[0];n=n[1];i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(i=i.ad_account)==null?void 0:i.requested_billing_threshold);i=i==null||i.compare(b)>=0;return k.jsx(j,babelHelpers["extends"]({},a,{primaryButton:{action:o===!0?f:g,disabled:o===null,label:h._("__JHASH__vs8TErTD2sG__JHASH__")},secondaryButton:{action:e,label:h._("__JHASH__0MYvOxQVQj2__JHASH__"),reduceEmphasis:!0},title:c("BillingPaymentThresholdConstants").changePaymentThresholdHeader,children:k.jsx(c("BillingPaymentThresholdLandingView.react"),{allowedSetMax:i,isLowering:o,setIsLowering:n,thresholdAmount:b})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=m;g.BillingPaymentThresholdLandingScreen=a}),226);
-----
BillingPaymentThresholdSetLimitScreen.react",["fbt","BillingCurrencyAmount","BillingPaymentThresholdConstants","BillingPaymentThresholdSetLimitScreenQuery.graphql","BillingPaymentThresholdSetLimitView.react","BillingWrapperWithForm.react","Promise","RelayHooks","react","useBillingUpdateDateThreshold"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=i!==void 0?i:i=b("BillingPaymentThresholdSetLimitScreenQuery.graphql");function a(a){var e,f,g,i=a.isLoweringThreshold,k=a.onConfirmation,n=a.onError,o=a.onSuccess,p=a.paymentAccountID,q=a.preloadedQuery;a=a.wrapperProps;q=d("RelayHooks").usePreloadedQuery(m,q);e=(e=q==null?void 0:(e=q.ad_account)==null?void 0:e.currency)!=null?e:"USD";f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q==null?void 0:(f=q.ad_account)==null?void 0:f.billing_threshold_currency_amount);g=(g=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(q==null?void 0:(g=q.ad_account)==null?void 0:g.min_billing_threshold))!=null?g:d("BillingCurrencyAmount").createZero(e);e=c("useBillingUpdateDateThreshold")(q==null?void 0:q.ad_account,function(){return(j||(j=b("Promise"))).resolve()},p,o,n,i?"lower":"max");q=e.fields;p=e.onSubmit;return l.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({fieldsConfig:q,onSubmit:i?k:p,primaryButtonLabel:h._("__JHASH__nmB1twP5unD__JHASH__")},a,{title:c("BillingPaymentThresholdConstants").changePaymentThresholdHeader,children:l.jsx(c("BillingPaymentThresholdSetLimitView.react"),{currentThreshold:(o=f==null?void 0:f.toString())!=null?o:"",isLoweringThreshold:i,minThresholdLimit:(n=g==null?void 0:g.toString())!=null?n:""})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=m;g.BillingPaymentThresholdSetLimitScreen=a}),226);
-----
BillingPaymentThresholdLandingScreenQuery.graphql",["BillingPaymentThresholdLandingScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f={kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPaymentThresholdLandingScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[f,d],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:[f],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPaymentThresholdLandingScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:e,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingPaymentThresholdLandingScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingPaymentThresholdLandingScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingPaymentThresholdSetLimitScreenQuery.graphql",["BillingPaymentThresholdSetLimitScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f=[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},d],g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPaymentThresholdSetLimitScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"min_billing_threshold",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:f,args:null,argumentDefinitions:[]}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useBillingUpdateDateThreshold_account"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPaymentThresholdSetLimitScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"min_billing_threshold",plural:!1,selections:f,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"admarket_id",storageKey:null},{alias:null,args:[{kind:"Literal",name:"capability",value:"CAN_CHANGE_PREFERRED_BILLING_DAY"}],kind:"ScalarField",name:"has_capability",storageKey:"has_capability(capability:"CAN_CHANGE_PREFERRED_BILLING_DAY")"},{alias:null,args:null,concreteType:"AdAccountBillingDatePreference",kind:"LinkedField",name:"active_billing_date_preference",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"day_of_month",storageKey:null},g],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:e,storageKey:null},g],storageKey:null}]},params:{id:b("BillingPaymentThresholdSetLimitScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingPaymentThresholdSetLimitScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingShareMonthlyInvoicingUtils",["fbt","BillingCreditSharingCommonConstants","BillingCreditSharingReviewDetailsConstants","BillingCurrencyAmount"],(function(a,b,c,d,e,f,g,h){"use strict";var i=/^(d){6,20}$/,j=/^d+(.d+)?$/,k=/^0(.0+)?$/;function a(a,b,c,e,f){e=e==="FIXED"&&b==="APPROVED"&&a!=null&&parseFloat(a)!==0?parseFloat(c)+parseFloat(a):parseFloat(c);return d("BillingCurrencyAmount").getFromUserInput((b=e==null?void 0:e.toString())!=null?b:"0",f)}function b(a){return!i.test(a)?h._("__JHASH__q6EGc5cDBxQ__JHASH__"):null}function c(a,b,c,e,f){if(!j.test(a))return{message:h._("__JHASH__iFFDrFccHIM__JHASH__"),validationState:"ERROR"};if(k.test(a))return{message:h._("__JHASH__ClRAVUH-XG0__JHASH__"),validationState:"ERROR"};a=d("BillingCurrencyAmount").getFromUserInput(a,b);if(e!=null&&e.compare(a)>0)return{message:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.editCreditLimitWarningMessage(f),validationState:"WARN"};return a.compare(c)>0?{message:h._("__JHASH__t4nsQgYr8ti__JHASH__"),validationState:"ERROR"}:null}function e(a,b){return b===!0&&a==="ALLOCATE"||b===!1&&a==="REQUEST"}function f(a){return(a==null?void 0:a.toUpperCase())==="SEQUENTIAL"?d("BillingCreditSharingReviewDetailsConstants").BillingCreditSharingReviewDetailsConstants.sequentialLiabilityLabel:d("BillingCreditSharingReviewDetailsConstants").BillingCreditSharingReviewDetailsConstants.normalLiabilityLabel}g.addAllocationAmountToMaxAvaiableBalance=a;g.validateBusinessID=b;g.validateAllocationAmount=c;g.getIsActorBusinessBillToParty=e;g.getLiabilityTypeFbt=f}),226);
-----
useBillingCreditSharingSelectAllocationType",["BillingCurrencyAmount","BillingShareMonthlyInvoicingUtils","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h;c=h||d("react");var i=c.useCallback,j=c.useMemo,k=c.useState;function a(a,c,e,f,g,h){g===void 0&&(g=null);h=k(h);var l=h[0],m=h[1];h=function(e){var f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:f=l==="AUTH"?null:d("BillingCurrencyAmount").getFromUserInput(e.allocationAmount,c);g.next=3;return b("regeneratorRuntime").awrap(a(l,f));case 3:case"end":return g.stop()}},null,this)};var n=i(function(a){m(a)},[]),o=j(function(){return{allocationAmount:{defaultValue:"",required:l==="FIXED"||l==="FIXED_WITHOUT_PARTITION",validate:function(a){return d("BillingShareMonthlyInvoicingUtils").validateAllocationAmount(a,c,e,f,g)}},limitedAllocation:{defaultValue:"FIXED",required:!1},unlimitedAllocation:{defaultValue:"AUTH",required:!1}}},[c,e,l,f,g]);return{fields:o,onSelect:n,onSubmit:h,selectedAllocationType:l}}g["default"]=a}),98);
-----
BillingSpendMoreUserIntentView.react",["fbt","BillingCurrencyAmount","BillingCurrencyAmountSlider.react","BillingRowContainer.react","BillingSpendMoreUserIntentView_account.graphql","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||c("react"),l=i!==void 0?i:i=b("BillingSpendMoreUserIntentView_account.graphql");function a(a){var b=a.accountKey,e=a.content,f=a.currentSliderValue,g=a.disclaimer,i=a.experience,j=a.headline;a=a.setCurrentSliderValue;var m=c("useBillingWizardComponents")(),n=m.Column,o=m.Icon,p=m.Row;m=m.Text;b=d("RelayHooks").useFragment(l,b);b=b==null?void 0:b.spend_more_info;var q=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.intent_incremental_step),r=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.min_intent_value);b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.max_intent_value);return k.jsxs(p,{children:[k.jsx(o,{fillToWindow:!0,type:"SPEND_MORE_USER_INTENT_BANNER"}),k.jsxs(c("BillingRowContainer.react"),{children:[k.jsx(p,{children:k.jsx(m,{headline:j,level:1,textAlign:"start"})}),k.jsx(p,{children:k.jsx(m,{body:e,bodyColor:"secondary",level:2,textAlign:"start"})}),r!=null&&b!=null&&q!=null&&k.jsxs(p,{justify:"space-around",children:[k.jsx(n,{fieldSize:10,children:k.jsx(c("BillingCurrencyAmountSlider.react"),{label:"Daily spending slider",max:b,maxValueDisplay:function(a){return h._("__JHASH__S3i4BpLv3nx__JHASH__",[h._param("Max daily spending intent",a)])},min:r,minValueDisplay:function(a){return h._("__JHASH__u9D25VWaQm2__JHASH__",[h._param("Min daily spending intent",a)])},onChange:a,step:q,value:f,valueDisplay:function(a){return i==="DSL_BOOST"?h._("__JHASH__mJI0m1SmajS__JHASH__",[h._param("Current daily spending intent",a)]):h._("__JHASH__ifh0v5AID2t__JHASH__",[h._param("Current daily spending intent",a)])}})}),k.jsx(p,{children:k.jsx(m,{body:g,bodyColor:"secondary",level:2,textAlign:"start"})})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingSpendMoreUserIntentScreen.react",["fbt","BillingCurrencyAmount","BillingError","BillingSpendMoreUserIntentScreenQuery.graphql","BillingSpendMoreUserIntentView.react","BillingWizardQEContext","RelayHooks","react","useBillingSpendMoreUserIntent","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useMemo,n=e.useState,o=i!==void 0?i:i=b("BillingSpendMoreUserIntentScreenQuery.graphql");function a(a){var b=a.onFailure,e=a.onNext,f=a.paymentAccountID,g=a.preloadedQuery;a=a.wrapperProps;var i=c("useBillingWizardComponents")(),j=i.Link;i=i.Wrapper;g=d("RelayHooks").usePreloadedQuery(o,g);var p=g==null?void 0:g.billable_account_by_payment_account,q=m(function(){var a;return(a=p==null?void 0:p.eligible_spend_more_experiences)!=null?a:[]},[p==null?void 0:p.eligible_spend_more_experiences]);g=c("useBillingSpendMoreUserIntent")(e,b,f,q);var r=g.onSubmit;b=(e=p==null?void 0:p.currency)!=null?e:"USD";g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(p==null?void 0:(f=p.spend_more_info)==null?void 0:f.initial_intent_value);f=n((e=g)!=null?e:d("BillingCurrencyAmount").createZero(b));var s=f[0];g=f[1];var t=c("useBillingWizardUPLogger")();l(function(){t==null?void 0:t.appendMetadataIfNotNull({eligible_experiences:q}),t==null?void 0:t.logEvent({event_action:"fetch",event_result:"success",event_side:"client",target_name:"BillingSpendMoreUserIntentScreenQuery"})},[q,t]);e=q[0];b=d("BillingWizardQEContext").useBillingQE();f=b.billing_content_experiment_h2_2024.update_prepaid_funds_v1.read();b={AUTO_RELOAD:{content:f?h._("__JHASH__ZV9-H1MQBlY__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/173319523214585?id=359727904526528",inline:!0,label:h._("__JHASH__aY0JgERrS2___JHASH__"),level:2}))]):h._("__JHASH__2aqy6eooFvD__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/173319523214585?id=359727904526528",inline:!0,label:h._("__JHASH__4cU-hOnj5IB__JHASH__"),level:2}))]),disclaimer:h._("__JHASH__ZncWBq5gdI1__JHASH__"),headline:h._("__JHASH__OGATzN0LAq___JHASH__"),title:h._("__JHASH__DL0YRT6kEFM__JHASH__")},BUSINESS_VERIFICATION:{content:h._("__JHASH__-Fh2rEsmqfw__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/1095661473946872?id=180505742745347",inline:!0,label:h._("__JHASH__dJR3P091eSe__JHASH__"),level:2}))]),disclaimer:h._("__JHASH__hw_fpH_wAc7__JHASH__"),headline:h._("__JHASH__z6x60cvAEDk__JHASH__"),title:h._("__JHASH__09MpkVAE2_c__JHASH__")},DSL_BOOST:{content:h._("__JHASH__Url5t2ZT4BT__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/563129151097553",inline:!0,label:h._("__JHASH__PscV5KhSetF__JHASH__"),level:2}))]),disclaimer:h._("__JHASH__Bo1T5cXivgC__JHASH__"),headline:h._("__JHASH__mygdMAB-eA7__JHASH__"),title:h._("__JHASH__Wfn2AucINqT__JHASH__")},ENABLE_POSTPAY:{content:f?h._("__JHASH__udI-ntenmom__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/2210505862314642",inline:!0,label:h._("__JHASH__u4O4648xi9o__JHASH__"),level:2}))]):h._("__JHASH__n8qBB-fAlQA__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/2210505862314642",inline:!0,label:h._("__JHASH__u4O4648xi9o__JHASH__"),level:2}))]),disclaimer:h._("__JHASH__hw_fpH_wAc7__JHASH__"),headline:h._("__JHASH__0EewaWkpKAP__JHASH__"),title:h._("__JHASH__ABfSNOpHKKt__JHASH__")},INCREASE_PREPAY_LIMITS:{actionLabel:h._("__JHASH__F1uTaC4DQ6B__JHASH__"),content:f?h._("__JHASH__wluKgJ0COlO__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/173319523214585?id=359727904526528",inline:!0,label:h._("__JHASH__aY0JgERrS2___JHASH__"),level:2}))]):h._("__JHASH__-VdabXo9y50__JHASH__",[h._param("line break"," "),h._param("line break2"," "),h._param("link",k.jsx(j,{href:"https://www.facebook.com/business/help/173319523214585?id=359727904526528",inline:!0,label:h._("__JHASH__4cU-hOnj5IB__JHASH__"),level:2}))]),disclaimer:h._("__JHASH__ZncWBq5gdI1__JHASH__"),headline:f?h._("__JHASH__o-xvwmpyqyE__JHASH__"):h._("__JHASH__PELV5VekEvD__JHASH__"),title:h._("__JHASH__bpc-etSDaOc__JHASH__")}};j=b[e];if(j==null)throw new(c("BillingError"))("No instruction available for the current experience","required parameter is missing or invalid",{event_action:"enter",event_context:"spend_more_user_intent",event_side:"client_side"},{action:"load"},"error");f=j.actionLabel;b=j.content;var u=j.disclaimer,v=j.headline;j=j.title;return k.jsx(i,babelHelpers["extends"]({},a,{primaryButton:{action:function(){return r(s)},label:(i=f)!=null?i:h._("__JHASH__NFm09Hmhqb8__JHASH__")},title:j,children:k.jsx(c("BillingSpendMoreUserIntentView.react"),{accountKey:p,content:b,currentSliderValue:s,disclaimer:u,experience:e,headline:v,setCurrentSliderValue:g})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=o;g.BillingSpendMoreUserIntentScreen=a}),226);
-----
BillingSpendMoreLandOrSelectExperienceState",["fbt","BillingCurrencyAmount","BillingError","BillingSpendMoreLandOrSelectExperienceStateQuery.graphql","BillingSpendMoreUtils","BillingWizardTypes","Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i!==void 0?i:i=b("BillingSpendMoreLandOrSelectExperienceStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f1)){x.next=7;break}return x.abrupt("return",(j||(j=b("Promise"))).resolve({event:"onMultipleExperiences",newProps:babelHelpers["extends"]({},a)}));case 7:x.next=9;return b("regeneratorRuntime").awrap(g({query:k,queryName:k.params.name,variables:{paymentAccountID:m}},{event_context:"spend_more_land_or_select_experience"}));case 9:t=x.sent;u=t==null?void 0:(n=t.payment_account)==null?void 0:(o=n.billing_payment_methods)==null?void 0:o.map(function(a){var b;return(b=a==null?void 0:(b=a.credential)==null?void 0:b.credential_id)!=null?b:a==null?void 0:(b=a.credential)==null?void 0:b.id}).find(function(a){return a!=null});v=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(t==null?void 0:(p=t.payment_account)==null?void 0:(q=p.billable_account)==null?void 0:(r=q.spend_more_info)==null?void 0:(s=r.latest_or_default_pm_prepay_limits)==null?void 0:s.max_acceptable_amount);x.t0=l[0];x.next=x.t0==="AUTO_RELOAD"?15:x.t0==="ENABLE_POSTPAY"?18:x.t0==="INCREASE_PREPAY_LIMITS"?19:25;break;case 15:if(!(u==null)){x.next=17;break}throw new(c("BillingError"))("BillingSpendMoreLandOrSelectExperienceState:onDecide missing credential id for auto reload","required parameter is missing or invalid",{event_action:"enter",event_context:"spend_more_land_or_select_experience",event_side:"client_side"},{action:"load"});case 17:return x.abrupt("return",(j||(j=b("Promise"))).resolve({event:"onLaunchAutoReload",newProps:babelHelpers["extends"]({},a,{paymentMethodID:u,shouldTurnOn:!0})}));case 18:return x.abrupt("return",(j||(j=b("Promise"))).resolve({event:"onSelectOrConfirmPM",newProps:babelHelpers["extends"]({},a)}));case 19:if(!(v==null)){x.next=21;break}throw new(c("BillingError"))("BillingSpendMoreLandOrSelectExperienceState:onDecide missing updated prepay limit for prepay limit increase","required parameter is missing or invalid",{event_action:"enter",event_context:"spend_more_land_or_select_experience",event_side:"client_side"},{action:"load"});case 21:x.next=23;return b("regeneratorRuntime").awrap(f.billing_content_experiment_h2_2024.update_prepaid_funds_v1.get());case 23:w=x.sent;return x.abrupt("return",(j||(j=b("Promise"))).resolve({event:"onIncreasePrepayLimits",newProps:babelHelpers["extends"]({},a,{status:{body:w?h._("__JHASH__u9abPjpuxPu__JHASH__"):h._("__JHASH__D4HexPfTEFH__JHASH__"),headline:w?h._("__JHASH__pjhlQL14Iq1__JHASH__",[h._param("Max acceptable amount",v.toString())]):h._("__JHASH__4PeW9Unhus0__JHASH__",[h._param("Max acceptable amount",v.toString())]),title:w?h._("__JHASH__QuVDsiCesIz__JHASH__"):h._("__JHASH__xHH2GCpNh7P__JHASH__"),type:"SUCCESS"}})}));case 25:return x.abrupt("return",(j||(j=b("Promise"))).resolve({event:"onStartVerification",newProps:babelHelpers["extends"]({},a)}));case 26:x.next=32;break;case 28:x.prev=28;x.t1=x["catch"](2);i==null?void 0:i.logBillingPayloadError(x.t1.type,x.t1.errorPayload);return x.abrupt("return",(j||(j=b("Promise"))).resolve({event:"onFailure",newProps:babelHelpers["extends"]({},a,{status:d("BillingSpendMoreUtils").getGenericError()})}));case 32:case"end":return x.stop()}},null,this,[[2,28]])};return e}(d("BillingWizardTypes").DecisionState);g["default"]=a}),226);
-----
BillingSpendMoreUserIntentScreenQuery.graphql",["BillingSpendMoreUserIntentScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"eligible_spend_more_experiences",storageKey:null},f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSpendMoreUserIntentScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{kind:"RequiredField",field:e,action:"THROW",path:"billable_account_by_payment_account.eligible_spend_more_experiences"},{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"initial_intent_value",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingSpendMoreUserIntentView_account"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSpendMoreUserIntentScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,e,{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"initial_intent_value",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"intent_incremental_step",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_intent_value",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_intent_value",plural:!1,selections:f,storageKey:null}],storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isBillableAccount"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingSpendMoreUserIntentScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingSpendMoreUserIntentScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingSpendMoreUserIntentView_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingSpendMoreUserIntentView_account",selections:[{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"intent_incremental_step",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_intent_value",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_intent_value",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingSpendMoreLandOrSelectExperienceStateQuery.graphql",["BillingSpendMoreLandOrSelectExperienceStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d=[{kind:"Literal",name:"allowlist",value:["USABLE"]},{kind:"Literal",name:"filter",value:"SUPPORTS_RECURRING"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSpendMoreLandOrSelectExperienceStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:d,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[e,f,{kind:"InlineFragment",selections:[g],type:"LPMCredential",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(allowlist:["USABLE"],filter:"SUPPORTS_RECURRING")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"latest_or_default_pm_prepay_limits",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:h,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSpendMoreLandOrSelectExperienceStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[g,{alias:null,args:d,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[g,e,f],storageKey:null}],storageKey:"billing_payment_methods(allowlist:["USABLE"],filter:"SUPPORTS_RECURRING")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"latest_or_default_pm_prepay_limits",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:h,storageKey:null}],storageKey:null}],storageKey:null},e],storageKey:null},e],storageKey:null}]},params:{id:b("BillingSpendMoreLandOrSelectExperienceStateQuery_facebookRelayOperation"),metadata:{},name:"BillingSpendMoreLandOrSelectExperienceStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingCurrencyAmountSlider.react",["BillingBaseCurrencyAmountSlider.react","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.maxValueDisplay,d=a.minValueDisplay,e=a.valueDisplay;a=babelHelpers.objectWithoutPropertiesLoose(a,["maxValueDisplay","minValueDisplay","valueDisplay"]);var f=c("useBillingWizardComponents")(),g=f.Column,h=f.Row;f=f.Text;return i.jsxs(h,{children:[e!=null&&i.jsx(h,{justify:"space-around",marginBottom:8,children:i.jsx(g,{padding:16,withBorder:!0,children:i.jsx(f,{headline:e(a.value.format({showDecimals:!1,stripZeros:!0})),textAlign:"center"})})}),i.jsx(c("BillingBaseCurrencyAmountSlider.react"),babelHelpers["extends"]({},a)),d!=null&&b!=null&&i.jsxs(h,{justify:"space-between",marginBottom:16,children:[i.jsx(g,{fieldSize:5,mobileFieldSize:5,children:i.jsx(f,{level:2,meta:d(a.min.format({showDecimals:!1,stripZeros:!0}))})}),i.jsx(g,{fieldSize:5,mobileFieldSize:5,children:i.jsx(f,{level:2,meta:b(a.max.format({showDecimals:!1,stripZeros:!0})),textAlign:"end"})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingBaseCurrencyAmountSlider.react",["BillingCurrencyAmount","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useCallback;function k(a){return parseInt(a.asGraphQLInput().amount,10)}function a(a){var b=a.max,e=a.min,f=a.onChange,g=a.step,h=a.value;a=babelHelpers.objectWithoutPropertiesLoose(a,["max","min","onChange","step","value"]);var l=c("useBillingWizardComponents")();l=l.Slider;var m=h.currency;b=k(b);e=k(e);g=k(g);h=k(h);var n=j(function(a){f(d("BillingCurrencyAmount").getFromUserInput(a.toString(),m))},[m,f]);return i.jsx(l,babelHelpers["extends"]({},a,{max:b,min:e,onChange:n,step:g,value:h}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingBMSelectMIState",["BillingBMSelectMIStateQuery.graphql","BillingCurrencyAmount","BillingError","BillingSelfServeToMIConfirmPayNowConstants","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingBMSelectMIStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingBMSelectMIStateQuery.graphql",["BillingBMSelectMIStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e=[{kind:"Variable",name:"credit_line_id",variableName:"paymentMethodID"}],f={alias:null,args:null,kind:"ScalarField",name:"can_edit",storageKey:null},g=[{kind:"Literal",name:"filter",value:"PRIMARY_ONLY"}],h=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],i=[{kind:"Variable",name:"payment_account_id",variableName:"paymentAccountID"}],j={alias:null,args:null,kind:"ScalarField",name:"invoices",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingBMSelectMIStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"edit_mi_billing_info_config",plural:!1,selections:[f],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"primaryMethod",args:g,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[d],storageKey:null}],storageKey:"billing_payment_methods(filter:"PRIMARY_ONLY")"}],storageKey:null}],storageKey:null},{alias:null,args:h,concreteType:null,kind:"LinkedField",name:"extended_credit",plural:!1,selections:[{alias:null,args:i,concreteType:"InvoicesAndTotalAmount",kind:"LinkedField",name:"self_serve_to_mi_charge_amount",plural:!1,selections:[j,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[k,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[l,k],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingBMSelectMIStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"edit_mi_billing_info_config",plural:!1,selections:[d,f],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[d,{alias:"primaryMethod",args:g,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[d,m],storageKey:null}],storageKey:"billing_payment_methods(filter:"PRIMARY_ONLY")"},m],storageKey:null},m],storageKey:null},{alias:null,args:h,concreteType:null,kind:"LinkedField",name:"extended_credit",plural:!1,selections:[d,{alias:null,args:i,concreteType:"InvoicesAndTotalAmount",kind:"LinkedField",name:"self_serve_to_mi_charge_amount",plural:!1,selections:[j,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[k,l],storageKey:null}],storageKey:null},m],storageKey:null}]},params:{id:b("BillingBMSelectMIStateQuery_facebookRelayOperation"),metadata:{},name:"BillingBMSelectMIStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingCreateGenericDigitalCommerceBillingOrderState",["BillingCreateGenericDigitalCommerceBillingOrderStateMutation.graphql","BillingCurrencyAmount","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingCreateGenericDigitalCommerceBillingOrderStateMutation.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingCreateGenericDigitalCommerceBillingOrderStateMutation.graphql",["BillingCreateGenericDigitalCommerceBillingOrderStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},f=[e,{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],g={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingCreateGenericDigitalCommerceBillingOrderStateMutation",selections:[{kind:"RequiredField",field:{alias:null,args:c,concreteType:"XFBPayCreateGenericDigitalCommerceBillingOrderResponsePayload",kind:"LinkedField",name:"xfb_pay_create_generic_digital_commerce_billing_order",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"PAYGenericDCPOrder",kind:"LinkedField",name:"order",plural:!1,selections:[{kind:"RequiredField",field:d,action:"THROW",path:"xfb_pay_create_generic_digital_commerce_billing_order.order.id"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"DigitalCommerceOrderDetails",kind:"LinkedField",name:"order_details",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"XFBDigitalCommerceQuoteDetails",kind:"LinkedField",name:"quote_details",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null},action:"THROW",path:"xfb_pay_create_generic_digital_commerce_billing_order.order.order_details.quote_details.total_amount"}],storageKey:null},action:"THROW",path:"xfb_pay_create_generic_digital_commerce_billing_order.order.order_details.quote_details"}],storageKey:null},action:"THROW",path:"xfb_pay_create_generic_digital_commerce_billing_order.order.order_details"},{args:null,kind:"FragmentSpread",name:"BillingMV4BSubscriptionDetailsScreen_billingInfo"}],storageKey:null},action:"THROW",path:"xfb_pay_create_generic_digital_commerce_billing_order.order"}],storageKey:null},action:"THROW",path:"xfb_pay_create_generic_digital_commerce_billing_order"}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingCreateGenericDigitalCommerceBillingOrderStateMutation",selections:[{alias:null,args:c,concreteType:"XFBPayCreateGenericDigitalCommerceBillingOrderResponsePayload",kind:"LinkedField",name:"xfb_pay_create_generic_digital_commerce_billing_order",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYGenericDCPOrder",kind:"LinkedField",name:"order",plural:!1,selections:[d,{alias:null,args:null,concreteType:"DigitalCommerceOrderDetails",kind:"LinkedField",name:"order_details",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBDigitalCommerceQuoteDetails",kind:"LinkedField",name:"quote_details",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"BillingDigitalProductCheckoutDetails",kind:"LinkedField",name:"billing_checkout_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null},g,{alias:null,args:null,concreteType:"XFBBillingDigitalProductPaymentDetails",kind:"LinkedField",name:"payment_details",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillingDigitalProductPaymentLineItems",kind:"LinkedField",name:"payment_line_items",plural:!0,selections:[h,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount",plural:!1,selections:[e,i],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBBillingDigitalProductPaymentLineItems",kind:"LinkedField",name:"tax_line_items",plural:!0,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount",plural:!1,selections:[i],storageKey:null},h],storageKey:null},{alias:null,args:null,concreteType:"XFBBillingDigitalProductPaymentTotalItems",kind:"LinkedField",name:"payment_total",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_billing_period",storageKey:null},h,g],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingCreateGenericDigitalCommerceBillingOrderStateMutation_facebookRelayOperation"),metadata:{},name:"BillingCreateGenericDigitalCommerceBillingOrderStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingIAPInitState",["BillingCurrencyAmount","BillingIAPInitStateQuery.graphql","BillingIAPState","BillingWizardTypes","nullthrows","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingIAPInitStateQuery.graphql");function j(a,b,c,e){switch(a){case d("BillingIAPState").BillingIAPScreenFlowType.ADD_FUNDS:return b;case d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD:return c!=null&&c.compare(b)>0?c:b;case d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW:return e.compare(b)>0?e:b}}a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0&&(F=D);r==null?void 0:r.appendMetadataIfNotNull({credential_type:"APPLE_IAP",payment_amount:F.toString(),payment_intent:(p=x)!=null?p:"ADD_FUNDS"});return G.abrupt("return",{event:"onNext",newProps:babelHelpers["extends"]({},a,{accountCurrency:z,defaultPaymentAmount:F,screenType:E})});case 17:case"end":return G.stop()}},null,this)};return e}(d("BillingWizardTypes").DecisionState);g["default"]=a}),98);
-----
BillingIAPScreen.react",["fbt","BillingBudgetSection.react","BillingCurrencyAmount","BillingError","BillingIAPBudgetInput.react","BillingIAPConstants","BillingIAPScreenQuery.graphql","BillingIAPState","BillingIAPSummarySection.react","BillingIAPSummarySectionView.react","BillingWizardQEContext","Promise","RelayHooks","nullthrows","react","useBillingIAPInputValidation","useBillingLogger","useBillingWizardComponents","useBillingWizardUPLogger","useBillingWizardUtils"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useEffect,n=e.useState,o=i!==void 0?i:i=b("BillingIAPScreenQuery.graphql");function a(a){var e,f,g,i=a.accountCurrency;i=i===void 0?"USD":i;var k=a.defaultPaymentAmount,p=a.deviceCountry,q=a.deviceCurrency,r=a.fullBudgetPaymentAmount,s=a.internalSKU,t=s===void 0?"280910021466001":s,u=a.onDone,v=a.paymentAccountID;s=a.preloadedQuery;var w=a.screenType,x=w===void 0?d("BillingIAPState").BillingIAPScreenFlowType.ADD_FUNDS:w;w=a.wrapperProps;var y=c("useBillingLogger")(),z=c("useBillingWizardUPLogger")();a=c("useBillingWizardComponents")();var A=a.Column,B=a.Row,C=a.Text;a=a.Wrapper;s=d("RelayHooks").usePreloadedQuery(o,s);var D=c("useBillingWizardUtils")();D=D.IAP;var E=n(""),F=E[0];E=E[1];var G=n(""),H=G[0];G=G[1];var I=n(null),J=I[0];I=I[1];var K=n(!1),L=K[0];K=K[1];var M=n(!1),N=M[0];M=M[1];var O=n(!1),P=O[0];O=O[1];var Q=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(s==null?void 0:(e=s.xfb_billing_iap_prequote_options)==null?void 0:(e=e.at(0))==null?void 0:e.est_indirect_fee_account_currency);e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(s==null?void 0:(e=s.xfb_billing_iap_prequote_options)==null?void 0:(e=e.at(0))==null?void 0:e.est_other_jurisdictional_fee_account_currency);f=(s==null?void 0:(f=s.payment_account)==null?void 0:f.adjusted_payment_gk)===!0;var R=d("BillingCurrencyAmount").createZero(i),S=d("BillingWizardQEContext").useBillingQE();S=x===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&S.iap_us_ui_tweek.has_ui_tweak.read();g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(s==null?void 0:(g=s.billable_account_by_payment_account)==null?void 0:g.prepay_delivery_remaining))!=null?g:R;if(k==null)throw new(c("BillingError"))("IAP defaultPaymentAmount must be valid","required props is missing or invalid",{event_action:"show",event_context:"wizard",event_side:"client_side"});R=n(k);var T=R[0];R=R[1];m(function(){var a=Q!=null&&!Q.isZero();z==null?void 0:z.appendMetadataIfNotNull({has_iap_inclusive_taxes:a})},[Q,z]);D=D.read();var U=D.open;D=function(){var a;z==null?void 0:z.appendMetadataIfNotNull({price_id:F});if(L||J!=null||F==="")return(j||(j=b("Promise"))).resolve();y.logDebug({internalSKU:t,label:"open IAP",paymentAccountID:v,priceID:F});z==null?void 0:z.logEvent({event_action:"fetch",event_result:"init",event_side:"client",target_name:"dcp_callback"});return U(t,{paymentAccountID:v,priceID:F,sessionID:(a=z==null?void 0:(a=z.getBasicLoggingData("dcp_callback"))==null?void 0:a.wizard_session_id)!=null?a:"0"}).then(function(){z==null?void 0:z.logEvent({event_action:"fetch",event_result:"success",event_side:"client",target_name:"dcp_callback"});var a=null,b=null,e=null;switch(x){case d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW:a=h._("Done");e=h._("You paid {amount} toward your balance",[h._param("amount",T==null?void 0:T.toString())]);b=h._("There may be a delay before your balance is updated.");break;case d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD:return u();case d("BillingIAPState").BillingIAPScreenFlowType.ADD_FUNDS:a=h._("Done");e=h._("You added {amount}",[h._param("amount",T==null?void 0:T.toString())]);b=h._("There may be a short delay before the funds appear in your account.");break}b={body:c("nullthrows")(b),headline:c("nullthrows")(e),overrideHasBack:!1,overridePrimaryButton:{label:c("nullthrows")(a)},title:h._("Success"),type:"SUCCESS"};return u(b)})["catch"](function(a){var b;a=Number((a=a==null?void 0:a.errorCode)!=null?a:1e3);b=(b=d("BillingIAPConstants").BillingIAPErrorCode.cast(a))!=null?b:d("BillingIAPConstants").BillingIAPErrorCode.METAInAppPurchaseErrorCodeExternalUnknown;var e=d("BillingIAPConstants").BillingIAPErrorCode.getName(b);e=new(c("BillingError"))("iap open failed with "+e,"client side unknown error",{event_action:"enter",event_context:"iap_open",event_data:{message:"iap open failed"},event_result:"failure",event_side:"client_side"},{action:"fetch"},"error",{apiErrorCode:a,errorCode:a});a=h._("Something went wrong").toString();switch(b){case d("BillingIAPConstants").BillingIAPErrorCode.METAInAppPurchaseErrorCodePaymentCancelled:y.logEvent({event:{event_action:"cancel",event_context:"screen",event_data:{message:"iap open cancelled"},event_side:"client_side"}});z==null?void 0:z.logEvent({event_action:"click",event_result:"atomic",event_side:"user",target_name:"dcp_callback_cancel"});return;case d("BillingIAPConstants").BillingIAPErrorCode.METAInAppPurchaseErrorCodeClientInvalid:case d("BillingIAPConstants").BillingIAPErrorCode.METAInAppPurchaseErrorCodePaymentInvalid:case d("BillingIAPConstants").BillingIAPErrorCode.METAInAppPurchaseErrorCodePaymentNotAllowed:case d("BillingIAPConstants").BillingIAPErrorCode.METAInAppPurchaseErrorCodePaymentDeferred:case d("BillingIAPConstants").BillingIAPErrorCode.METAInAppPurchaseErrorCodeStoreProductNotAvailable:e.summary=a;e.description=h._("There was an issue with the App Store, so we weren"t able to add funds to your account. Please try again.").toString();break;default:e.summary=a,e.description=h._("We weren"t able to add funds to your account. Please try again.").toString()}throw e})};I=c("useBillingIAPInputValidation")(s,i,x,k,I);var V=function(a,b,c){b="https://www.facebook.com/business/help/287134230502229";a=l.jsx(a,{href:b,inline:!0,label:h._("Learn more")});return c==="IG"?h._("Apple service fees are not retained by Instagram or Meta. {learn more about fees link}",[h._param("learn more about fees link",a)]):h._("Apple service fees are not retained by Facebook or Meta. {learn more about fees link}",[h._param("learn more about fees link",a)])};H=x===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD?h._("Pay and boost"):x===d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW?h._("Next"):h._("Pay {payment amount}",[h._param("payment amount",H)]);var W=x===d("BillingIAPState").BillingIAPScreenFlowType.ADD_FUNDS?h._("Add funds"):h._("Payment");return l.jsxs(a,babelHelpers["extends"]({},w,{hasBack:!0,loadingText:{text:h._("This may take a momentu2026")},primaryButton:{action:D,label:H},testid:void 0,title:W,children:[l.jsx(c("BillingBudgetSection.react"),{accountCurrency:i,billableAccount:s==null?void 0:s.billable_account_by_payment_account,fullAdCost:r,prepaidBalance:g,screenType:x}),l.jsxs(A,{padding:16,children:[l.jsx(c("BillingIAPBudgetInput.react"),{accountCurrency:i,defaultAmount:k,error:J,fullAdCost:r,prepaidBalance:g,screenType:x,setAmount:R,setShouldShowInput:M,shouldShowInput:N,validate:I}),l.jsx(l.Suspense,{fallback:l.jsx(c("BillingIAPSummarySectionView.react"),{currencyMismatch:!1,data:null,expanded:P,inclusiveTax:Q,leviesFee:e,loading:!0,paymentAdjustedGK:f,screenType:x,setExpanded:O,setShouldShowInput:M,shouldShowInput:N}),children:l.jsx(c("BillingIAPSummarySection.react"),{accountCurrency:i,data:s,deviceCountry:p,deviceCurrency:q,expanded:P,hasValidationError:J!=null,paymentAccountID:v,paymentAdjustedGK:f,screenType:x,setAmountToPay:G,setExpanded:O,setLoading:K,setPriceID:E,setShouldShowInput:M,shouldShowInput:N,userEnteredAmount:T})})]}),l.jsxs(A,{padding:16,children:[S?null:l.jsx(B,{justify:"center",marginBottom:8,children:l.jsx(C,{meta:V,textAlign:"center"})}),(Q==null||Q.isZero())&&l.jsx(B,{justify:"center",children:l.jsx(C,{meta:S?h._("*Excludes any taxes collected by Apple. Final taxes may vary."):h._("*Excludes any taxes collected by Apple for App Store payments in some locations. Final taxes after purchase may vary."),textAlign:"center"})})]})]}))}a.displayName=a.name+" [from "+f.id+"]";g.query=o;g.BillingIAPScreen=a}),226);
-----
useBillingIAPInputValidation",["fbt","BillingCurrencyAmount","BillingIAPState","RelayHooks","nullthrows","useBillingIAPInputValidation.graphql","useBillingLogger","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i!==void 0?i:i=b("useBillingIAPInputValidation.graphql");function k(a,b,c,e,f){switch(a){case d("BillingIAPState").BillingIAPScreenFlowType.ADD_FUNDS:return{maxInputAmount:c,minInputAmount:b};case d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD:a=e.compare(b)>0?e:b;var g=c;a.compare(g)>0&&(f.logDebug({boost_amount:a.format(),event:"user_boost_exceed_max_amount",max_amount:g.format()}),a=g);return{maxInputAmount:g,minInputAmount:a};case d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW:f=b;g=e.compare(c)>0?c:e;g.compare(f)<0&&(g=f);return{maxInputAmount:g,minInputAmount:f}}}function a(a,b,e,f,g){var i;a=d("RelayHooks").useFragment(j,a);var l=c("useBillingLogger")(),m=c("useBillingWizardUPLogger")(),n=c("nullthrows")(d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(i=a.xfb_billing_iap_amount_range_inquiry)==null?void 0:i.max_topup_currency_amount));a=c("nullthrows")(d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(i=a.xfb_billing_iap_amount_range_inquiry)==null?void 0:i.min_topup_currency_amount));i=k(e,a,n,f,l);var o=i.maxInputAmount,p=i.minInputAmount;return function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,b);a.compare(n)>0&&(m==null?void 0:m.logEditFormEvent("user_input_exceed_max_amount",{max_amount:n.format(),user_input_amount:a.format()}));var c=null;e===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD?a.isZero()||a.compare(p)<0?c=h._("Add at least {budget amount} to cover your ad budget.",[h._param("budget amount",p.format())]):a.compare(o)>0&&(c=h._("You can"t add more than {max amount} at a time.",[h._param("max amount",o.format())])):(a.compare(p)<0||a.compare(o)>0)&&(l.logDebug({amount:a.toString(),event:"user_invalid_amount_entered",max:o.toString(),min:p.toString()}),c=h._("Enter an amount between {min amount} and {max amount}.",[h._param("min amount",p.format()),h._param("max amount",o.format())]));g(c)}}g["default"]=a}),226);
-----
BillingIAPScreenQuery.graphql",["BillingIAPScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"budgetAmount"},c={defaultValue:null,kind:"LocalArgument",name:"budgetCurrency"},d={defaultValue:null,kind:"LocalArgument",name:"deviceCountry"},e={defaultValue:null,kind:"LocalArgument",name:"deviceCurrency"},f={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},g=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],h={alias:"adjusted_payment_gk",args:[{kind:"Literal",name:"gk",value:"BILLING_IAP_ADEJUSTED_PAYMENT"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk:"BILLING_IAP_ADEJUSTED_PAYMENT")"},i={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},j=[i],k=[{kind:"Literal",name:"exclude_coupons",value:!0}],l=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],m=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:l,args:null,argumentDefinitions:[]}],n={kind:"Variable",name:"device_country_code",variableName:"deviceCountry"},o={kind:"Variable",name:"device_currency",variableName:"deviceCurrency"},p=[n,o,i,{fields:[{kind:"Variable",name:"amount",variableName:"budgetAmount"},{kind:"Variable",name:"currency",variableName:"budgetCurrency"}],kind:"ObjectValue",name:"target_currency_amount"}],q={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d,e,f],kind:"Fragment",metadata:null,name:"BillingIAPScreenQuery",selections:[{args:null,kind:"FragmentSpread",name:"BillingIAPSummarySection_Query"},{args:null,kind:"FragmentSpread",name:"useBillingIAPInputValidation"},{alias:null,args:g,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[h],storageKey:null},{alias:null,args:j,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingBudgetSection_billableAccount"},{alias:null,args:k,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_delivery_remaining",plural:!1,selections:m,storageKey:"prepay_delivery_remaining(exclude_coupons:true)"}],storageKey:null},{alias:null,args:p,concreteType:"XFBBillingIAPPreQuoteOption",kind:"LinkedField",name:"xfb_billing_iap_prequote_options",plural:!0,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_indirect_fee_account_currency",plural:!1,selections:m,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_other_jurisdictional_fee_account_currency",plural:!1,selections:m,storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[f,e,d,a,c],kind:"Operation",name:"BillingIAPScreenQuery",selections:[{alias:null,args:p,concreteType:"XFBBillingIAPPreQuoteOption",kind:"LinkedField",name:"xfb_billing_iap_prequote_options",plural:!0,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"to_load_amount",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_to_charge_amount_account_currency",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_total_charge_amount_account_currency",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_total_charge_amount_device_currency",plural:!1,selections:l,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quote_updated_reason",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_indirect_fee_account_currency",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_other_jurisdictional_fee_account_currency",plural:!1,selections:l,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pre_quote_obj_id",storageKey:null}],storageKey:null},{alias:null,args:[n,o,i],concreteType:"XFBBillingIAPAmountRanges",kind:"LinkedField",name:"xfb_billing_iap_amount_range_inquiry",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_topup_currency_amount",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_topup_currency_amount",plural:!1,selections:l,storageKey:null}],storageKey:null},{alias:null,args:g,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[q,h,r],storageKey:null},{alias:null,args:j,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[q,{kind:"TypeDiscriminator",abstractKey:"__isBillableAccount"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:l,storageKey:null},{alias:null,args:k,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_delivery_remaining",plural:!1,selections:l,storageKey:"prepay_delivery_remaining(exclude_coupons:true)"},r],storageKey:null}]},params:{id:b("BillingIAPScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingIAPScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingIAPInitStateQuery.graphql",["BillingIAPInitStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"deviceCountry"},c={defaultValue:null,kind:"LocalArgument",name:"deviceCurrency"},d={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},e={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},f=[e],g={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},h=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},g],i=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:h,args:null,argumentDefinitions:[]}];e=[{kind:"Variable",name:"device_country_code",variableName:"deviceCountry"},{kind:"Variable",name:"device_currency",variableName:"deviceCurrency"},e];var j={alias:null,args:e,kind:"ScalarField",name:"xfb_billing_iap_validate_device_country_currency",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d],kind:"Fragment",metadata:null,name:"BillingIAPInitStateQuery",selections:[{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:i,storageKey:null}],storageKey:null},{alias:null,args:e,concreteType:"XFBBillingIAPAmountRanges",kind:"LinkedField",name:"xfb_billing_iap_amount_range_inquiry",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_topup_currency_amount",plural:!1,selections:i,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_topup_currency_amount",plural:!1,selections:i,storageKey:null}],storageKey:null},j],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[d,c,a],kind:"Operation",name:"BillingIAPInitStateQuery",selections:[{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:h,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:e,concreteType:"XFBBillingIAPAmountRanges",kind:"LinkedField",name:"xfb_billing_iap_amount_range_inquiry",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_topup_currency_amount",plural:!1,selections:h,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_topup_currency_amount",plural:!1,selections:h,storageKey:null}],storageKey:null},j]},params:{id:b("BillingIAPInitStateQuery_facebookRelayOperation"),metadata:{},name:"BillingIAPInitStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingIAPSummarySectionView.react",["fbt","BillingCurrencyAmount","BillingIAPState","BillingIAPSummarySectionTooltip.react","BillingIAPSummarySectionView_preQuoteOption.graphql","BillingWizardQEContext","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingIAPSummarySectionView_preQuoteOption.graphql");function a(a){var b=a.currencyMismatch;b=b===void 0?!1:b;var e=a.data,f=a.expanded,g=f===void 0?!1:f;f=a.inclusiveTax;var i=a.leviesFee,j=a.loading;j=j===void 0?!1:j;var m=a.paymentAdjustedGK,n=a.screenType,o=a.setExpanded,p=a.setShouldShowInput;a=a.shouldShowInput;var q=c("useBillingWizardComponents")(),r=q.Column,s=q.Glimmer,t=q.Icon,u=q.Link,v=q.Row;q=q.Text;e=d("RelayHooks").useFragment(l,e);var w=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.to_load_amount),x=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.est_to_charge_amount_account_currency),y=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.est_total_charge_amount_account_currency),z=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.est_total_charge_amount_device_currency),A=i!=null&&!i.isZero(),B=f!=null&&!f.isZero(),C=null;w!=null&&x!=null&&(C=x.subtract(w));x=e==null?void 0:e.quote_updated_reason;e=m&&x!=="NONE";m=e||B;x=d("BillingWizardQEContext").useBillingQE();var D=n===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&x.iap_us_ui_tweek.move_edit_amount_to_summary.read(),E=n===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&x.iap_us_ui_tweek.enable_expand_and_collapse.read();x=n===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&x.iap_us_ui_tweek.has_ui_tweak.read();var F=x?!0:void 0,G=x?"white":void 0,H=x?8:void 0,I=k.jsx(v,{borderBottom:F,borderBottomColor:G,borderPadding:12,disablePressableOverlay:!0,expanded:g,marginBottom:8,onPress:E?function(){return o(!g)}:void 0,onPressType:E?"EXPAND":void 0,children:k.jsx(q,{headline:h._("Payment summary"),level:4,meta:E?B?h._("Your total includes fees and taxes."):h._("Your total includes fees."):void 0})});y=k.jsxs(v,{borderBottom:x?void 0:!0,justify:"space-between",marginBottom:x?void 0:16,children:[k.jsx(r,{alignSelf:"start",mobileFieldSize:6,children:k.jsxs(v,{children:[k.jsx(q,{headline:B?x?h._("Total due"):h._("Total"):x?h._("Estimated total due*"):h._("Estimated total*"),level:x?4:3}),m&&k.jsx(c("BillingIAPSummarySectionTooltip.react"),{appleFeesCase:!1,hasUITweak:x,leviesCase:A,paymentAdjustedCase:e,taxInclusiveCase:B,tooltipEntry:"total_or_estimated_total"})]})}),j?k.jsx(r,{fieldSize:4,mobileFieldSize:6,padding:0,children:k.jsx(s,{index:2,lines:1,textAlign:"end",textLevel:4,textType:"body"})}):k.jsxs(r,{alignSelf:"end",mobileFieldSize:6,children:[k.jsx(q,{headline:y==null?void 0:y.format({showCurrencyCode:b}),level:x?4:3,textAlign:"end"}),b&&k.jsx(q,{body:z==null?void 0:z.format({showCurrencyCode:!0}),bodyColor:"secondary",level:4,textAlign:"end"})]})]});z=h._("Edit amount");a=D?a?k.jsx(q,{body:z,bodyColor:"disabled",level:4}):k.jsx(u,{label:h._("Edit amount"),level:4,onClick:function(){p(!0)}}):null;z=k.jsx(q,{body:n===d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW?h._("Balance payment"):x?h._("Funds youu2019re adding"):h._("Funds to add"),level:4});u=k.jsx(q,{body:h._("Adjusted due to Apple policy"),bodyColor:"secondary",level:4,textAlign:"end"});n=j?k.jsx(r,{fieldSize:4,mobileFieldSize:4,padding:0,children:k.jsx(s,{index:2,lines:1,textAlign:"end",textLevel:4,textType:"body"})}):k.jsx(q,{body:w==null?void 0:w.format({showCurrencyCode:b}),level:4});w=x?k.jsxs(v,{borderBottom:F,borderBottomColor:G,borderPadding:H,marginBottom:8,children:[k.jsx(r,{mobileFieldSize:8,children:k.jsxs(v,{columnSpacing:12,children:[k.jsx(r,{children:k.jsx(t,{type:"WALLET_OUTLINE_16"})}),k.jsxs(r,{children:[z,e&&u]})]})}),k.jsxs(r,{mobileFieldSize:4,children:[k.jsx(v,{justify:"end",children:n}),k.jsx(v,{justify:"end",children:a})]})]}):k.jsxs(v,{justify:"space-between",marginBottom:8,children:[k.jsxs(r,{children:[z,e&&u]}),n]});a=k.jsxs(k.Fragment,{children:[k.jsxs(v,{borderBottom:F,borderBottomColor:G,borderPadding:H,justify:"space-between",marginBottom:8,children:[k.jsx(r,{alignSelf:"start",mobileFieldSize:8,children:k.jsxs(v,{children:[k.jsx(q,{body:h._("Apple service fee"),level:4}),!m&&k.jsx(c("BillingIAPSummarySectionTooltip.react"),{appleFeesCase:!0,hasUITweak:x,leviesCase:A,paymentAdjustedCase:!1,taxInclusiveCase:B,tooltipEntry:"apple_service_fee"})]})}),j?k.jsx(r,{fieldSize:4,mobileFieldSize:4,padding:0,children:k.jsx(s,{index:2,lines:1,textAlign:"end",textLevel:4,textType:"body"})}):k.jsx(q,{body:(t=C)==null?void 0:t.format({showCurrencyCode:b}),level:4})]}),A&&k.jsxs(v,{borderBottom:F,borderBottomColor:G,borderPadding:H,justify:"space-between",marginBottom:8,children:[k.jsx(r,{alignSelf:"start",mobileFieldSize:8,children:k.jsx(v,{children:k.jsx(q,{body:h._("Local fees"),level:4})})}),j?k.jsx(r,{fieldSize:4,mobileFieldSize:4,padding:0,children:k.jsx(s,{index:2,lines:1,textAlign:"end",textLevel:4,textType:"body"})}):k.jsx(q,{body:i==null?void 0:i.format({showCurrencyCode:b}),level:4})]}),B&&k.jsxs(v,{borderBottom:F,borderBottomColor:G,borderPadding:H,justify:"space-between",marginBottom:8,children:[k.jsx(r,{alignSelf:"start",mobileFieldSize:8,children:k.jsx(v,{children:k.jsx(q,{body:h._("Estimated taxes"),level:4})})}),j?k.jsx(r,{fieldSize:4,mobileFieldSize:4,padding:0,children:k.jsx(s,{index:2,lines:1,textAlign:"end",textLevel:4,textType:"body"})}):k.jsx(q,{body:f==null?void 0:f.format({showCurrencyCode:b}),level:4})]})]});if(x)return k.jsx(v,{children:k.jsxs(r,{fieldSize:12,mobileFieldSize:12,padding:20,withBackground:!0,children:[I,D||g||!E?w:null,g||!E?a:null,y]})});z=k.jsx(v,{marginBottom:8,children:k.jsxs(r,{fieldSize:12,mobileFieldSize:12,padding:16,withBackground:!0,children:[y,w,a]})});return z}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useBillingIAPInputValidation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{kind:"RootArgument",name:"deviceCountry"},{kind:"RootArgument",name:"deviceCurrency"},{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:null,name:"useBillingIAPInputValidation",selections:[{alias:null,args:[{kind:"Variable",name:"device_country_code",variableName:"deviceCountry"},{kind:"Variable",name:"device_currency",variableName:"deviceCurrency"},{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],concreteType:"XFBBillingIAPAmountRanges",kind:"LinkedField",name:"xfb_billing_iap_amount_range_inquiry",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_topup_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_topup_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();e.exports=a}),null);
-----
BillingIAPSummarySectionView_preQuoteOption.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingIAPSummarySectionView_preQuoteOption",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"to_load_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_to_charge_amount_account_currency",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_total_charge_amount_account_currency",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_total_charge_amount_device_currency",plural:!1,selections:a,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quote_updated_reason",storageKey:null}],type:"XFBBillingIAPPreQuoteOption",abstractKey:null}}();e.exports=a}),null);
-----
BillingBudgetSection.react",["fbt","BillingBudgetSection_billableAccount.graphql","BillingCurrencyAmount","BillingIAPState","BillingWizardQEContext","RelayHooks","react","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingBudgetSection_billableAccount.graphql");function a(a){var b=a.accountCurrency,e=a.billableAccount,f=a.fullAdCost,g=a.prepaidBalance;a=a.screenType;var i=d("BillingWizardQEContext").useBillingQE();e=d("RelayHooks").useFragment(l,e);var j=c("useBillingWizardUPLogger")(),m=c("useBillingWizardComponents")(),n=m.Column,o=m.Row,p=m.Text;m=m.Tooltip;var q=a===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&i.iap_us_ui_tweek.hide_fee_section.read();if(q)return null;q=a===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&i.iap_us_ui_tweek.has_ui_tweak.read();i=d("BillingCurrencyAmount").createZero(b);e=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.account_balance))!=null?b:i;b=k.jsxs(n,{divider:!0,expanding:!0,mobileFieldSize:6,padding:8,children:[k.jsx(o,{justify:"space-around",marginBottom:8,children:k.jsx(p,{headline:f==null?void 0:f.toString(),level:2})}),k.jsx(o,{justify:"space-around",children:k.jsx(p,{level:4,meta:h._("Ad budget")})})]});i=k.jsxs(n,{divider:!0,expanding:!0,mobileFieldSize:6,padding:8,children:[k.jsx(o,{justify:"space-around",marginBottom:8,children:k.jsx(p,{headline:e.toString(),level:2})}),k.jsx(o,{justify:"space-around",children:k.jsx(p,{level:4,meta:h._("Balance due")})})]});f=a===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD?b:a===d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW?i:null;e=h._("Why this amount?");b=h._("To calculate the funds applied to your ad budget, we started with the funds in your account and subtracted any taxes that Meta may collect as your ads run.");var r=function(){var a="iap_tooltip_tap_available_funds";j==null?void 0:j.logClickEvent(a)};i=a===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&!g.isZero()?k.jsx(m,{body:b,headline:e,onShowTooltip:function(){return r()}}):null;m=a===d("BillingIAPState").BillingIAPScreenFlowType.ADD_FUNDS||g.isZero()?h._("Available funds"):h._("Funds applied");b=k.jsxs(n,{expanding:!0,mobileFieldSize:6,padding:8,children:[k.jsx(o,{justify:"space-around",marginBottom:8,children:k.jsx(p,{headline:g.toString(),level:2})}),k.jsxs(o,{justify:"center",children:[k.jsx(p,{level:4,meta:m}),i]})]});return k.jsx(n,{padding:q?0:16,children:k.jsxs(o,{borderBottom:!0,borderPadding:q?12:void 0,justify:"space-around",children:[f,b]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingIAPBudgetInput.react",["fbt","BillingCurrencyAmount","BillingIAPState","BillingWizardQEContext","clearTimeout","react","setTimeout","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useRef,m=b.useState;function n(a,b,c,e,f,g){f=f?h._("We applied your {prepaid ammount} in funds to your {full ad cost} ad budget. You need at least {remainder ammount} more to boost.",[h._param("prepaid ammount",c.toString()),h._param("full ad cost",b==null?void 0:b.toString()),h._param("remainder ammount",a.toString())]):h._("We applied your {prepaid ammount} in funds to your {full ad cost} budget. You need at least {remainder ammount} more to boost.",[h._param("prepaid ammount",c.toString()),h._param("full ad cost",b==null?void 0:b.toString()),h._param("remainder ammount",a.toString())]);b=h._("Review your payment");switch(e){case d("BillingIAPState").BillingIAPScreenFlowType.ADD_FUNDS:return{headerBody:h._("If you have a balance due, we"ll apply these funds to that balance first."),headerTitle:g?b:h._("How much do you want to add?")};case d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD:return{headerBody:c.isZero()?h._("You need at least {payment ammount} to boost.",[h._param("payment ammount",a.toString())]):f,headerTitle:g?b:h._("Add funds to cover your ad budget")};case d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW:return{headerBody:h._("This is the amount you"ll pay towards the balance you owe Meta."),headerTitle:g?b:h._("Add more funds to pay your balance")}}}function a(a){var b=a.accountCurrency,e=a.defaultAmount,f=a.error,g=a.fullAdCost,i=a.prepaidBalance,o=a.screenType,p=a.setAmount,q=a.setShouldShowInput,r=a.shouldShowInput,s=a.validate,t=l(),u=l(!0);a=c("useBillingWizardComponents")();var v=a.Column,w=a.Row,x=a.Text;a=a.TextInput;var y=c("useBillingWizardUPLogger")(),z=m(e.format()),A=z[0],B=z[1];k(function(){if(u.current){u.current=!1;return}c("clearTimeout")(t.current);t.current=c("setTimeout")(function(){p(d("BillingCurrencyAmount").getFromUserInput(A,b))},500);return function(){return c("clearTimeout")(t.current)}},[b,A,p]);z=function(){var a;a=(a=d("BillingCurrencyAmount").getFromUserInput(A,b))==null?void 0:a.toString();y==null?void 0:y.logEditFormEvent("payment_amount",{payment_amount:a});y==null?void 0:y.appendMetadataIfNotNull({payment_amount:a});B(a);q(!1)};var C=function(a){B(a),s(a)},D=d("BillingWizardQEContext").useBillingQE(),E=o===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&D.iap_us_ui_tweek.move_edit_amount_to_summary.read();D=o===d("BillingIAPState").BillingIAPScreenFlowType.BOOST_AD&&D.iap_us_ui_tweek.has_ui_tweak.read();var F=D?h._("Funds youu2019re adding"):h._("Enter amount to add");a=j.jsx(a,{autoFocus:E&&r,error:f,keyboardType:"decimal-pad",label:o===d("BillingIAPState").BillingIAPScreenFlowType.PAY_NOW?h._("Enter balance payment"):F,name:"inputAmount",onBlur:z,onValueChange:C,validationState:f==null?null:"ERROR",value:A});F=n(e,g,i,o,D,E);z=F.headerBody;C=F.headerTitle;f=j.jsx(w,{align:"start",marginBottom:16,children:j.jsx(x,{body:z,headline:C,level:3,textAlign:"start"})});if(E)if(r)return j.jsx(w,{align:"start",marginBottom:16,children:a});else return f;return j.jsx(w,{children:j.jsxs(v,{expanding:!0,children:[f,j.jsx(w,{align:"start",marginBottom:16,children:a})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingIAPSummarySection.react",["BillingCurrencyAmount","BillingIAPSummarySectionView.react","BillingIAPSummarySection_Query.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useRef,m=h!==void 0?h:h=b("BillingIAPSummarySection_Query.graphql");function a(a){var b=a.accountCurrency,e=a.data,f=a.deviceCountry,g=a.deviceCurrency,h=a.expanded,i=a.hasValidationError,n=a.paymentAccountID,o=a.paymentAdjustedGK;o=o===void 0?!1:o;var p=a.screenType,q=a.setAmountToPay,r=a.setExpanded,s=a.setLoading,t=a.setPriceID,u=a.setShouldShowInput,v=a.shouldShowInput,w=a.userEnteredAmount,x=l(!0);a=d("RelayHooks").useRefetchableFragment(m,e);e=a[0];var y=a[1],z=((a=e==null?void 0:e.xfb_billing_iap_prequote_options)!=null?a:[])[0],A=b!==g;k(function(){if(x.current){x.current=!1;return}if(w!=null&&!w.isZero()&&!i){var a;s(!0);y({budgetAmount:w.asGraphQLInput().amount,budgetCurrency:w.currency,deviceCountry:(a=f)!=null?a:"USA",deviceCurrency:(a=g)!=null?a:"USD",paymentAccountID:n},{onComplete:function(){return s(!1)}})}},[w]);var B=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(z==null?void 0:z.est_total_charge_amount_account_currency);e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(z==null?void 0:z.est_indirect_fee_account_currency);a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(z==null?void 0:z.est_other_jurisdictional_fee_account_currency);var C=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(z==null?void 0:z.est_total_charge_amount_device_currency);k(function(){if((z==null?void 0:z.pre_quote_obj_id)!=null){t(z==null?void 0:z.pre_quote_obj_id);if(A){var a;q((a=C==null?void 0:C.format({showCurrencyCode:A}))!=null?a:"")}else{q((a=B==null?void 0:B.toString())!=null?a:"")}}},[B,C,A,z==null?void 0:z.pre_quote_obj_id,q,t]);return j.jsx(c("BillingIAPSummarySectionView.react"),{currencyMismatch:A,data:z,expanded:h,inclusiveTax:e,leviesFee:a,paymentAdjustedGK:o,screenType:p,setExpanded:r,setShouldShowInput:u,shouldShowInput:v})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingIAPSummarySection_Query.graphql",["BillingIAPScreenRefetchQuery.graphql"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{kind:"RootArgument",name:"budgetAmount"},{kind:"RootArgument",name:"budgetCurrency"},{kind:"RootArgument",name:"deviceCountry"},{kind:"RootArgument",name:"deviceCurrency"},{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:[],operation:b("BillingIAPScreenRefetchQuery.graphql")}},name:"BillingIAPSummarySection_Query",selections:[{alias:null,args:[{kind:"Variable",name:"device_country_code",variableName:"deviceCountry"},{kind:"Variable",name:"device_currency",variableName:"deviceCurrency"},{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},{fields:[{kind:"Variable",name:"amount",variableName:"budgetAmount"},{kind:"Variable",name:"currency",variableName:"budgetCurrency"}],kind:"ObjectValue",name:"target_currency_amount"}],concreteType:"XFBBillingIAPPreQuoteOption",kind:"LinkedField",name:"xfb_billing_iap_prequote_options",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"BillingIAPSummarySectionView_preQuoteOption"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_total_charge_amount_account_currency",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_indirect_fee_account_currency",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_other_jurisdictional_fee_account_currency",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_total_charge_amount_device_currency",plural:!1,selections:a,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pre_quote_obj_id",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();e.exports=a}),null);
-----
BillingBudgetSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingBudgetSection_billableAccount",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
PolarisBoostBudgetComponent.react",["fbt","BillingCurrencyAmount","CometFormSelectOnlyCombobox.react","IGDSBox.react","IGDSText.react","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostUserMessage.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||(i=d("react"))).c,k=i,l={warningPadding:{paddingTop:"xyamay9",$$css:!0}};function a(a){var b=j(28),e=a.budgetRecs,f=a.budgetWarningOrSuggestionType,g=a.currency,i=a.currencyOffset,n=a.dailyBudget,o=a.dailyBudgetOptions,p=a.logger,q=a.onDailyBudgetChange,r=a.setBudgetModified,s=a.setBudgetWarningV1DurationMinimumForBudget;a=a.shouldUseBodyEmphasizedHeaders;var t=m;a=a?c("IGDSText.react").BodyEmphasized:c("IGDSText.react").LabelEmphasized;var u;b[0]!==g||b[1]!==q||b[2]!==r||b[3]!==s||b[4]!==e||b[5]!==i||b[6]!==p?(u=function(a){var b=d("BillingCurrencyAmount").getFromUserInput(a,g);q(b);r&&r(!0);s((a=e==null?void 0:(a=e.recs)==null?void 0:(a=a.budgetWarningV1)==null?void 0:(a=a.find(function(a){return a.dailyBudget===parseInt(b.multiply(i).asGraphQLInput().amount,10)}))==null?void 0:a.duration)!=null?a:0);p==null?void 0:p.logTapComponent("budget_dropdown","budget_duration")},b[0]=g,b[1]=q,b[2]=r,b[3]=s,b[4]=e,b[5]=i,b[6]=p,b[7]=u):u=b[7];u=u;if(b[8]!==o){var v;b[10]===Symbol["for"]("react.memo_cache_sentinel")?(v=function(a){a=t(a);return{label:h._("__JHASH__XzZWjh_pJwU__JHASH__",[h._param("ad budget option",a)]),value:a}},b[10]=v):v=b[10];v=o.map(v);b[8]=o;b[9]=v}else v=b[9];o=v;b[11]!==a?(v=k.jsx(a,{textAlign:"start",children:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_SECTION_TITLE}),b[11]=a,b[12]=v):v=b[12];b[13]!==e||b[14]!==n?(a=(e==null?void 0:e.isFetching)?null:t(n),b[13]=e,b[14]=n,b[15]=a):a=b[15];b[16]!==u||b[17]!==o||b[18]!==a?(n=k.jsx(c("CometFormSelectOnlyCombobox.react"),{label:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_SECTION_LABEL,onValueChange:u,options:o,value:a}),b[16]=u,b[17]=o,b[18]=a,b[19]=n):n=b[19];b[20]!==f?(u=f==="lowBudgetWarningV1"&&k.jsx(c("PolarisBoostUserMessage.react"),{message:d("PolarisBoostBudgetAndDurationScreenStrings").LOW_BUDGET_WARNING,messageType:"warning",xstyle:l.warningPadding}),b[20]=f,b[21]=u):u=b[21];b[22]!==n||b[23]!==u?(o=k.jsxs(c("IGDSBox.react"),{paddingY:4,children:[n,u]}),b[22]=n,b[23]=u,b[24]=o):o=b[24];b[25]!==v||b[26]!==o?(a=k.jsxs(c("IGDSBox.react"),{flex:"grow",paddingY:2,children:[v,o]}),b[25]=v,b[26]=o,b[27]=a):a=b[27];return a}function m(a){return a.format({showCurrencyCode:!1,showDecimals:!1,showSymbol:!0,stripZeros:!0,thousandSeparator:!0,withExtendedSymbol:!1})}g["default"]=a}),226);
-----
PolarisBoostBudgetAndDurationSelection.react",["BillingCurrencyAmount","IGDSBox.react","IGDSText.react","PolarisBoostBanner.react","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostBudgetComponent.react","PolarisBoostCometThemeProvider.react","PolarisBoostDurationComponent.react","PolarisBoostDurationType","PolarisBoostSheetOrModal.react","PolarisBoostUserMessage.react","PolarisFastLink.react","PolarisUA","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useRef,l=b.useState,m=b.c,n={warningPadding:{paddingTop:"xyamay9",$$css:!0}};function a(a){var b,e=m(126),f=a.budgetModified,g=a.budgetRecs,h=a.currency,r=a.currencyOffset,s=a.dailyBudget,t=a.dailyBudgetOptions,u=a.durationInDays,v=a.durationInDaysOptions,w=a.durationModified,x=a.durationType,y=a.goal,z=a.isEligibleForContinuousAds,A=a.logger,B=a.minSuggestedBudget,C=a.onDailyBudgetChange,D=a.onDurationInDaysChange,E=a.onDurationTypeChange,F=a.setBudgetModified,G=a.setDurationModified;a=a.shouldUseBodyEmphasizedHeaders;var H=k(!0),I=l(null),J=I[0],K=I[1];I=l(!1);var L=I[0],M=I[1];I=l(!1);var N=I[0],O=I[1];I=l(0);var P=I[0],Q=I[1];I=l(0);var R=I[0],S=I[1];I=l(0);var T=I[0],U=I[1];if(e[0]!==y||e[1]!==g){I=y==="DIRECT_MESSAGE"?(I=g==null?void 0:(I=g.recs)==null?void 0:(I=I.budgetWarningV2)==null?void 0:(I=I.at(0))==null?void 0:I.dailyBudget)!=null?I:0:0;e[0]=y;e[1]=g;e[2]=I}else I=e[2];var V=I,W=(I=g==null?void 0:(I=g.recs)==null?void 0:(I=I.similarAdvertiserBudgetRec)==null?void 0:I.dailyBudget)!=null?I:0,X=(I=g==null?void 0:(I=g.recs)==null?void 0:(I=I.similarAdvertiserBudgetRec)==null?void 0:I.duration)!=null?I:0;e[3]!==y||e[4]!==g||e[5]!==s||e[6]!==r||e[7]!==u?(I=function(){var a;U(y!=="DIRECT_MESSAGE"?(a=g==null?void 0:(a=g.recs)==null?void 0:(a=a.budgetWarningV1)==null?void 0:(a=a.find(function(a){return a.dailyBudget===parseInt(s.multiply(r).asGraphQLInput().amount,10)}))==null?void 0:a.duration)!=null?a:0:0);S(y!=="DIRECT_MESSAGE"?(a=g==null?void 0:(a=g.recs)==null?void 0:(a=a.budgetWarningV1)==null?void 0:(a=a.find(function(a){return a.duration===u}))==null?void 0:a.dailyBudget)!=null?a:0:0)},e[3]=y,e[4]=g,e[5]=s,e[6]=r,e[7]=u,e[8]=I):I=e[8];b=g==null?void 0:(b=g.recs)==null?void 0:b.budgetWarningV1;var Y;e[9]!==b||e[10]!==r||e[11]!==s||e[12]!==u||e[13]!==y?(Y=[b,r,s,u,y],e[9]=b,e[10]=r,e[11]=s,e[12]=u,e[13]=y,e[14]=Y):Y=e[14];j(I,Y);e[15]!==W||e[16]!==R||e[17]!==x?(b=q(W,R,x),e[15]=W,e[16]=R,e[17]=x,e[18]=b):b=e[18];var Z=b;e[19]!==Z||e[20]!==f||e[21]!==w||e[22]!==D||e[23]!==X||e[24]!==C||e[25]!==W||e[26]!==r||e[27]!==h||e[28]!==g||e[29]!==u?(I=function(){if(Z)if(f!=null&&!f&&w!=null&&!w){var a;D(X);C(d("BillingCurrencyAmount").getFromUserInput((W/r).toString(10),h));H.current=!1;Q((a=g==null?void 0:(a=g.recs)==null?void 0:(a=a.similarAdvertiserBudgetRec)==null?void 0:(a=a.conversionDurationPairs)==null?void 0:(a=a.find(function(a){return a.selected_duration===X}))==null?void 0:a.conversion)!=null?a:0)}else{Q((a=g==null?void 0:(a=g.recs)==null?void 0:(a=a.similarAdvertiserBudgetRec)==null?void 0:(a=a.conversionDurationPairs)==null?void 0:(a=a.find(function(a){return a.selected_duration===u}))==null?void 0:a.conversion)!=null?a:0)}},e[19]=Z,e[20]=f,e[21]=w,e[22]=D,e[23]=X,e[24]=C,e[25]=W,e[26]=r,e[27]=h,e[28]=g,e[29]=u,e[30]=I):I=e[30];Y=g==null?void 0:(Y=g.recs)==null?void 0:(b=Y.similarAdvertiserBudgetRec)==null?void 0:b.conversionDurationPairs;e[31]!==f||e[32]!==Y||e[33]!==h||e[34]!==r||e[35]!==u||e[36]!==w||e[37]!==x||e[38]!==H||e[39]!==Z||e[40]!==B||e[41]!==C||e[42]!==D||e[43]!==W||e[44]!==X?(b=[f,Y,h,r,u,w,x,H,Z,B,C,D,W,X],e[31]=f,e[32]=Y,e[33]=h,e[34]=r,e[35]=u,e[36]=w,e[37]=x,e[38]=H,e[39]=Z,e[40]=B,e[41]=C,e[42]=D,e[43]=W,e[44]=X,e[45]=b):b=e[45];j(I,b);e[46]!==s||e[47]!==u||e[48]!==r||e[49]!==W||e[50]!==R||e[51]!==x||e[52]!==f||e[53]!==V||e[54]!==A||e[55]!==T||e[56]!==B?(Y=function(){var a=parseInt(s.multiply(u).multiply(r).asGraphQLInput().amount,10);if(!q(W,R,x)&&x===c("PolarisBoostDurationType").SET_DURATION){var b;p((b=f)!=null?b:!1,V,r,s)?(K("lowBudgetWarningV2"),A==null?void 0:A.logViewComponent("low_budget_warning_v2","budget_duration")):(K(null),o(T,R,V,r,a,s,u,B)?(K("lowBudgetWarningV1"),A==null?void 0:A.logViewComponent("low_budget_warning","budget_duration")):K(null))}else x===c("PolarisBoostDurationType").INDEFINITE||!q(W,R,x)?K(null):q(W,R,x)&&(K("sabr"),A==null?void 0:A.logViewComponent("sabr","budget_duration"))},e[46]=s,e[47]=u,e[48]=r,e[49]=W,e[50]=R,e[51]=x,e[52]=f,e[53]=V,e[54]=A,e[55]=T,e[56]=B,e[57]=Y):Y=e[57];I=g==null?void 0:g.recs;e[58]!==s||e[59]!==u||e[60]!==r||e[61]!==B||e[62]!==A||e[63]!==x||e[64]!==V||e[65]!==f||e[66]!==T||e[67]!==R||e[68]!==X||e[69]!==W||e[70]!==h||e[71]!==w||e[72]!==J||e[73]!==I?(b=[s,u,r,B,A,x,V,f,T,R,X,W,h,w,J,I],e[58]=s,e[59]=u,e[60]=r,e[61]=B,e[62]=A,e[63]=x,e[64]=V,e[65]=f,e[66]=T,e[67]=R,e[68]=X,e[69]=W,e[70]=h,e[71]=w,e[72]=J,e[73]=I,e[74]=b):b=e[74];j(Y,b);if(e[75]!==Z||e[76]!==P||e[77]!==W||e[78]!==r||e[79]!==h||e[80]!==y||e[81]!==u){Y=Z&&P!==0?d("PolarisBoostBudgetAndDurationScreenStrings").getDynamicSABRMessage(d("BillingCurrencyAmount").getFromUserInput((W/r).toString(10),h),P,u,d("PolarisBoostBudgetAndDurationScreenStrings").getSABRMessageSuffix((I=y)!=null?I:"UNSELECTED")):null;e[75]=Z;e[76]=P;e[77]=W;e[78]=r;e[79]=h;e[80]=y;e[81]=u;e[82]=Y}else Y=e[82];b=Y;e[83]!==g||e[84]!==J||e[85]!==h||e[86]!==r||e[87]!==s||e[88]!==t||e[89]!==A||e[90]!==C||e[91]!==F||e[92]!==a?(I=i.jsx(c("PolarisBoostBudgetComponent.react"),{budgetRecs:g,budgetWarningOrSuggestionType:J,currency:h,currencyOffset:r,dailyBudget:s,dailyBudgetOptions:t,logger:A,onDailyBudgetChange:C,setBudgetModified:F,setBudgetWarningV1DurationMinimumForBudget:U,shouldUseBodyEmphasizedHeaders:a}),e[83]=g,e[84]=J,e[85]=h,e[86]=r,e[87]=s,e[88]=t,e[89]=A,e[90]=C,e[91]=F,e[92]=a,e[93]=I):I=e[93];e[94]!==g||e[95]!==u||e[96]!==v||e[97]!==x||e[98]!==z||e[99]!==Z||e[100]!==A||e[101]!==D||e[102]!==E||e[103]!==G||e[104]!==a?(P=i.jsx(c("PolarisBoostDurationComponent.react"),{budgetRecs:g,durationInDays:u,durationInDaysOptions:v,durationType:x,isEligibleForContinuousAds:z,isSABREligible:Z,logger:A,onDurationInDaysChange:D,onDurationTypeChange:E,setBudgetWarningOrSuggestionType:K,setBudgetWarningV1BudgetMinimumForDuration:S,setDurationModified:G,setDynamicSabrConversions:Q,shouldUseBodyEmphasizedHeaders:a}),e[94]=g,e[95]=u,e[96]=v,e[97]=x,e[98]=z,e[99]=Z,e[100]=A,e[101]=D,e[102]=E,e[103]=G,e[104]=a,e[105]=P):P=e[105];e[106]!==J||e[107]!==V||e[108]!==r||e[109]!==h||e[110]!==A?(Y=J==="lowBudgetWarningV2"&&(d("PolarisUA").isDesktop()?i.jsx(c("PolarisBoostUserMessage.react"),{customMessageElement:i.jsxs(i.Fragment,{children:[d("PolarisBoostBudgetAndDurationScreenStrings").ZERO_OUTCOME_WARNING,". ",d("PolarisBoostBudgetAndDurationScreenStrings").getZeroOutcomeWarningSuggestion(d("BillingCurrencyAmount").getFromUserInput((V/r).toString(10),h))," ",i.jsx(c("PolarisFastLink.react"),{onClick:function(){A==null?void 0:A.logTapComponent("low_budget_learn_more","budget_duration"),M(!0)},children:d("PolarisBoostBudgetAndDurationScreenStrings").ZERO_OUTCOME_LEARN_MORE})]}),messageType:"warning",xstyle:n.warningPadding}):i.jsx(c("IGDSBox.react"),{marginTop:4,children:i.jsx(c("PolarisBoostBanner.react"),{subtitle:i.jsx(c("IGDSBox.react"),{alignItems:"center",direction:"column",children:i.jsxs(c("IGDSText.react").Body2,{children:[d("PolarisBoostBudgetAndDurationScreenStrings").getZeroOutcomeWarningSuggestion(d("BillingCurrencyAmount").getFromUserInput((V/r).toString(10),h)),i.jsxs(c("IGDSBox.react"),{children:[" ",i.jsx(c("PolarisFastLink.react"),{onClick:function(){M(!0)},children:d("PolarisBoostBudgetAndDurationScreenStrings").ZERO_OUTCOME_LEARN_MORE})]})]})}),title:d("PolarisBoostBudgetAndDurationScreenStrings").ZERO_OUTCOME_WARNING})})),e[106]=J,e[107]=V,e[108]=r,e[109]=h,e[110]=A,e[111]=Y):Y=e[111];e[112]!==J||e[113]!==b?(t=J==="sabr"&&b!==null&&(d("PolarisUA").isDesktop()?i.jsx(c("PolarisBoostUserMessage.react"),{customMessageElement:i.jsxs(c("IGDSBox.react"),{direction:"column",children:[i.jsx(c("IGDSText.react").Body2Emphasized,{children:d("PolarisBoostBudgetAndDurationScreenStrings").SABR_HEADER}),i.jsxs(c("IGDSText.react").Body2,{color:"secondaryText",children:[b," ",i.jsx(c("PolarisFastLink.react"),{onClick:function(){O(!0)},children:d("PolarisBoostBudgetAndDurationScreenStrings").SABR_LEARN_MORE})]})]}),messageType:"suggestion",xstyle:n.warningPadding}):i.jsx(c("IGDSBox.react"),{marginTop:4,children:i.jsx(c("PolarisBoostBanner.react"),{subtitle:i.jsx(c("IGDSBox.react"),{direction:"column",children:i.jsxs(c("IGDSText.react").Body2,{children:[b,i.jsxs(c("IGDSBox.react"),{children:[" ",i.jsx(c("PolarisFastLink.react"),{onClick:function(){O(!0)},children:d("PolarisBoostBudgetAndDurationScreenStrings").SABR_LEARN_MORE})]})]})})})})),e[112]=J,e[113]=b,e[114]=t):t=e[114];e[115]!==L?(F=L&&i.jsx(c("PolarisBoostSheetOrModal.react"),{headerTitle:d("PolarisBoostBudgetAndDurationScreenStrings").ZERO_OUTCOME_LEARN_MORE_HEADER,onClose:function(){M(!1)},sections:[{content:d("PolarisBoostBudgetAndDurationScreenStrings").ZERO_OUTCOME_LEARN_MORE_CONTENT,textAlign:"center"}]}),e[115]=L,e[116]=F):F=e[116];e[117]!==N?(v=N&&i.jsx(c("PolarisBoostSheetOrModal.react"),{headerTitle:d("PolarisBoostBudgetAndDurationScreenStrings").SABR_LEARN_MORE_HEADER,onClose:function(){O(!1)},sections:[{content:i.jsxs(c("IGDSBox.react"),{children:[i.jsx(c("IGDSBox.react"),{direction:"row",marginBottom:4,children:i.jsxs(c("IGDSText.react").Body,{children:[i.jsxs(c("IGDSText.react").BodyEmphasized,{children:[d("PolarisBoostBudgetAndDurationScreenStrings").SABR_SIMILAR_BUSINESSES_HEADER," "]}),d("PolarisBoostBudgetAndDurationScreenStrings").SABR_SIMILAR_BUSINESSES_DESC]})}),i.jsx(c("IGDSBox.react"),{direction:"row",children:i.jsxs(c("IGDSText.react").Body,{children:[i.jsxs(c("IGDSText.react").BodyEmphasized,{children:[d("PolarisBoostBudgetAndDurationScreenStrings").SABR_AD_SPEND_RESULTS_HEADER," "]}),d("PolarisBoostBudgetAndDurationScreenStrings").SABR_AD_SPEND_RESULTS_DESC]})})]})}]}),e[117]=N,e[118]=v):v=e[118];e[119]!==I||e[120]!==P||e[121]!==Y||e[122]!==t||e[123]!==F||e[124]!==v?(z=i.jsxs(c("PolarisBoostCometThemeProvider.react"),{children:[I,P,Y,t,F,v]}),e[119]=I,e[120]=P,e[121]=Y,e[122]=t,e[123]=F,e[124]=v,e[125]=z):z=e[125];return z}function o(a,b,d,e,f,g,h,i){if((h=b&&c("gkx")("1342")?!0:!1}g["default"]=a}),98);
-----
useBillingUpdateAccountSpendLimit",["BillingAccountSpendLimitMonthUtils","BillingCurrencyAmount","BillingError","BillingErrorUtils","BillingUpdateAccountSpendLimitConstants","BillingWizardQEContext","react","react-relay/relay-hooks/useFragment","regeneratorRuntime","useBillingLogger","useBillingRelay","useBillingResetSpend","useBillingUpdateAccountSpendLimitScreenMutation.graphql","useBillingUpdateAccountSpendLimit_billableAccount.graphql","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=j||d("react");var k=e.useCallback,l=e.useMemo,m=e.useState,n=h!==void 0?h:h=b("useBillingUpdateAccountSpendLimitScreenMutation.graphql"),o=i!==void 0?i:i=b("useBillingUpdateAccountSpendLimit_billableAccount.graphql"),p=new Map([[c("BillingUpdateAccountSpendLimitConstants").MANUAL_SPEND_TYPE,"LIFETIME"],[c("BillingUpdateAccountSpendLimitConstants").MONTHLY_SPEND_TYPE,"MONTHLY"]]);function a(a,e,f){var g,h,i,j=c("useBillingRelay")(),q=c("useBillingLogger")(),r=c("useBillingWizardUPLogger")(),s=c("useBillingWizardComponents")(),t=s.Link;s=c("react-relay/relay-hooks/useFragment")(o,a);var u=(a=s==null?void 0:s.currency)!=null?a:"USD",v=d("BillingCurrencyAmount").createZero(u);a=(s==null?void 0:s.asl_schedule_info)!=null;g=(s==null?void 0:(g=s.asl_schedule_info)==null?void 0:g.initial_spend_limit_currency_amount)!=null;var w=(h=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(s==null?void 0:(h=s.spending_info)==null?void 0:h.amount_spent_currency_amount))!=null?h:v;h=(h=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(s==null?void 0:(h=s.asl_schedule_info)==null?void 0:h.recurring_spend_limit_currency_amount))!=null?h:v;var x=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(s==null?void 0:(i=s.asl_schedule_info)==null?void 0:i.initial_spend_limit_currency_amount),y=(i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(s==null?void 0:(i=s.spending_info)==null?void 0:i.spend_limit_currency_amount))!=null?i:v;i=d("BillingWizardQEContext").useBillingQE();var z=i.asl_auto_reset_universe.enable_asl_auto_reset.read();z=z||!z&&i.asl_auto_reset_universe_v2.enable_asl_auto_reset.read();i=z?c("BillingUpdateAccountSpendLimitConstants").MONTHLY_SPEND_TYPE:c("BillingUpdateAccountSpendLimitConstants").MANUAL_SPEND_TYPE;var A=(s=s==null?void 0:(z=s.asl_schedule_info)==null?void 0:z.reset_period)!=null?s:i;a&&g&&(y=h);var B=c("BillingUpdateAccountSpendLimitConstants").invalidInputDescription,C=c("BillingUpdateAccountSpendLimitConstants").invalidInputTitle,D=c("BillingUpdateAccountSpendLimitConstants").tooSmallInputDescription,E=c("BillingUpdateAccountSpendLimitConstants").tooSmallInputTitle;z=m(!1);var F=z[0],G=z[1];s=m(A);i=s[0];var H=s[1],I=c("useBillingResetSpend")(e,y.toString(),f);a=l(function(){return{accountSpendLimitInput:{defaultValue:y.toString(),required:!0},initialSpendLimit:{defaultValue:x==null?void 0:x.toString(),required:x!==null},resetPeriod:{defaultValue:A,onChange:function(a,b){H(a);r==null?void 0:r.appendScreenMetadata({reset_period:a});return babelHelpers["extends"]({},b,{resetPeriod:a})},required:!0},showInitialSpendCheckbox:{defaultValue:!1,onChange:function(a,b){G(a);r==null?void 0:r.appendScreenMetadata({adjust_spend_limit_current_month:a});r==null?void 0:r.logClickEvent("adjust_spend_limit_current_month");return babelHelpers["extends"]({},b,{showInitialSpendCheckbox:a})},required:!0}}},[y,x,A,r]);var J=k(function(a,g,h,i){var k,l,m,o,s;return b("regeneratorRuntime").async(function(t){while(1)switch(t.prev=t.next){case 0:k={billable_account_payment_legacy_account_id:f,logging_data:q.getLoggingData(),new_spend_limit:a.asGraphQLInput(),reset_period:p.get(h),upl_logging_data:babelHelpers["extends"]({},r==null?void 0:r.getLoggingData("useBillingUpdateAccountSpendLimitScreenMutation"))};h!==c("BillingUpdateAccountSpendLimitConstants").MANUAL_SPEND_TYPE&&i!=null&&(k=babelHelpers["extends"]({},k,{initial_spend_limit:i.asGraphQLInput()}));t.prev=2;t.next=5;return b("regeneratorRuntime").awrap(j.commitMutation({mutation:n,mutationName:n.params.name,variables:{input:k}},{event_context:"update_spend_limit"}));case 5:m=t.sent;t.next=8;return b("regeneratorRuntime").awrap(e({body:i!=null&&h===c("BillingUpdateAccountSpendLimitConstants").MONTHLY_SPEND_TYPE?c("BillingUpdateAccountSpendLimitConstants").successBody(d("BillingAccountSpendLimitMonthUtils").getMonth(),a.toString(),i.toString()):c("BillingUpdateAccountSpendLimitConstants").successBody(d("BillingAccountSpendLimitMonthUtils").getMonth(),a.toString()),headline:c("BillingUpdateAccountSpendLimitConstants").successHeadline,showAmaUpsell:((l=m.billable_account_edit_spend_limit)==null?void 0:l.ama_upsell_eligible)===!0,type:"SUCCESS"}));case 8:t.next=17;break;case 10:t.prev=10;t.t0=t["catch"](2);t.next=14;return b("regeneratorRuntime").awrap(e({body:(o=t.t0.description)!=null?o:c("BillingUpdateAccountSpendLimitConstants").errorBody(g),headline:c("BillingUpdateAccountSpendLimitConstants").errorHeadline,title:c("BillingUpdateAccountSpendLimitConstants").errorTitle,type:"ERROR"}));case 14:s=d("BillingErrorUtils").buildBillingErrorFromError("server side mutation failure",{event_action:"mutation",event_context:"none",event_result:"failure",event_side:"user_action"},{action:"mutate"},t.t0),q.logError(s.type,s.errorPayload),r==null?void 0:r.logBillingPayloadError(s.type,s.errorPayload);case 17:case"end":return t.stop()}},null,this,[[2,10]])},[q,e,f,j,r]);g=k(function(a){var e,f,g,h,i,j;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:f=a.accountSpendLimitInput;g=a.initialSpendLimit;h=d("BillingCurrencyAmount").getFromUserInput(f,u);r==null?void 0:r.appendScreenMetadata({limit_amount:parseFloat(h.asGraphQLInput().amount)});i=d("BillingCurrencyAmount").getFromUserInput((e=g)!=null?e:v.toString(),u);i.isZero()&&(i=h);j=a.resetPeriod;if(!h.isZero()){k.next=11;break}throw new(c("BillingError"))("tried to set spend limit to zero","required props is missing or invalid",{event_action:"click",event_context:"reset_spend_limit",event_result:"failure",event_side:"user_action"},{action:"unknown"},"warning",{description:B.toString(),summary:C.toString()});case 11:if(!(!F||g==null)){k.next=16;break}k.next=14;return b("regeneratorRuntime").awrap(J(h,y.toString(),j));case 14:k.next=22;break;case 16:if(!(h.compare(w)>0||y.isZero())){k.next=21;break}k.next=19;return b("regeneratorRuntime").awrap(J(h,y.toString(),j,i));case 19:k.next=22;break;case 21:throw new(c("BillingError"))("tried to set spend limit lower than current limit","required props is missing or invalid",{event_action:"click",event_context:"reset_spend_limit",event_result:"failure",event_side:"user_action"},{action:"unknown"},"warning",{description:D(v.toString(),I)(t),summary:E.toString()});case 22:case"end":return k.stop()}},null,this)},[t,w,u,B,C,y,F,I,D,E,r,J,v]);return{fields:a,onSubmit:g,proratedLimitChecked:F,resetPeriod:i,updateSpend:J}}g["default"]=a}),98);
-----
useBillingUpdateAccountSpendLimit_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingUpdateAccountSpendLimit_billableAccount",selections:[{alias:null,args:null,concreteType:"AdAccountASLScheduleInfo",kind:"LinkedField",name:"asl_schedule_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"initial_spend_limit_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"recurring_spend_limit_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reset_period",storageKey:null}],storageKey:null},a,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:b,storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
LWICometPaymentMethodSection.react",["fbt","BSPCometSupportDialogLink.react","BillingCurrencyAmount","BillingLWIPaymentMethodsSection.react","CometErrorBoundary.react","CometErrorRoot.react","CometPlaceholder.react","CometRelay","CometRowItem.react","LWICometDropdownMenuGlimmer.react","LWICometNoticeCardWrapper.react","LWICometPaymentMethodSectionLiveQuery.graphql","LWICometPaymentMethodSectionQuery.graphql","LWICometRow.react","LWICometSection.react","LWIOmniText.react","gkx","react","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useDeferredValue,n=h._("__JHASH__WJjKfPv8QTZ__JHASH__"),o={subtitle:{paddingBottom:"x1l90r2v",paddingEnd:"xe53cfu",paddingLeft:null,paddingRight:null,paddingStart:"x1g8yoln",paddingTop:"xyamay9",$$css:!0}},p=i!==void 0?i:i=b("LWICometPaymentMethodSectionLiveQuery.graphql"),q=j!==void 0?j:j=b("LWICometPaymentMethodSectionQuery.graphql"),r="ACCOUNT";function a(a){var b,e,f,g=a.expandable;g=g===void 0?!0:g;var i=a.forceExpanded;i=i===void 0?!1:i;var j=a.hasBottomDivider,k=a.headerTitleOverride,s=a.options;a=a.legacyAccountID;c("vulture")("57qBieF5EnM");var t=m(a);t=a;a=c("gkx")("23502")?p:q;a=d("CometRelay").useLazyLoadQuery(a,{paymentAccountID:t});b=(b=a==null?void 0:(b=a.payment_account)==null?void 0:(b=b.ad_account)==null?void 0:b.currency)!=null?b:"USD";e=(e=a==null?void 0:(e=a.payment_account)==null?void 0:(e=e.ad_account)==null?void 0:e.payment_modes)!=null?e:[];var u=d("BillingCurrencyAmount").createZero("USD");f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(f=a.payment_account)==null?void 0:(f=f.billable_account)==null?void 0:f.coupon_balance))!=null?f:u;u=!f.isZero();f=l.jsx(c("BSPCometSupportDialogLink.react"),{cmsID:"716180208457684",text:h._("__JHASH__1ajboVb9Kuf__JHASH__"),type:"body3"});e=e.includes("SUPPORTS_POSTPAY")&&(a==null?void 0:(e=a.payment_account)==null?void 0:(a=e.ad_account)==null?void 0:a.is_using_ec)!==!0&&!u?h._("__JHASH__b1JF18cXEGR__JHASH__",[h._param("billing link",f)]):null;a=e&&l.jsx(c("LWICometRow.react"),{paddingHorizontal:0,children:l.jsx(c("CometRowItem.react"),{expanding:!0,xstyle:o.subtitle,children:l.jsx(c("LWIOmniText.react"),{color:"secondary",type:"body3",children:e})})});u=l.jsx(c("BillingLWIPaymentMethodsSection.react"),{currency:b,expandable:g,forceExpanded:i,paddingHorizontal:0,paymentAccountID:t,paymentMethodOptions:s,subtitleRow:a});return g?l.jsx(c("CometErrorBoundary.react"),{fallback:function(){return l.jsx(c("CometErrorRoot.react"),{})},children:l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("LWICometDropdownMenuGlimmer.react"),{}),children:l.jsxs("span",{"data-testid":void 0,children:[u,l.jsx(c("LWICometNoticeCardWrapper.react"),{specElement:r})]})})}):l.jsx(c("LWICometSection.react"),{fallback:null,hasBottomDivider:j,header:{subtitle:e,title:(f=k)!=null?f:n},specElement:r,children:l.jsx("div",{className:"xh3wvx0",children:u})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{legacyAccountID:a.adAccountData.legacyAccountID}});g["default"]=e}),226);
-----
LWICometPaymentMethodSectionQuery.graphql",["LWICometPaymentMethodSectionQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},e],g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"LWICometPaymentMethodSectionQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,e],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"LWICometPaymentMethodSectionQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,e,h],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:f,storageKey:null},h],storageKey:null},h],storageKey:null}]},params:{id:b("LWICometPaymentMethodSectionQuery_facebookRelayOperation"),metadata:{},name:"LWICometPaymentMethodSectionQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
LWICometPaymentMethodSectionLiveQuery.graphql",["LWICometPaymentMethodSectionLiveQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"is_using_ec",storageKey:null},g=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},e],h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"LWICometPaymentMethodSectionLiveQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,e,f],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:g,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"LWICometPaymentMethodSectionLiveQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[h,{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,e,f,i],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[h,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:g,storageKey:null},i],storageKey:null},i],storageKey:null}]},params:{id:b("LWICometPaymentMethodSectionLiveQuery_facebookRelayOperation"),metadata:{live:{config_id:"comet_lwi_payment_method_section"}},name:"LWICometPaymentMethodSectionLiveQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingAutoReload",["fbt","BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingPrepayUtils","RelayHooks","getBillingHubPaymentMethodDisplayIcon","react","regeneratorRuntime","useBillingAutoReload_account.graphql","useBillingAutoReload_credential.graphql","useBillingLogger","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useMemo,o=i!==void 0?i:i=b("useBillingAutoReload_credential.graphql"),p=j!==void 0?j:j=b("useBillingAutoReload_account.graphql");function q(a,b){if(b){a=((b=a==null?void 0:a.expiry_month)!=null?b:"")+"/"+((b=a==null?void 0:a.expiry_year)!=null?b:"").slice(2);return h._("Expires {date}",[h._param("date",a)])}return h._("Payment pending")}function r(a,b,e){var f=c("useBillingWizardComponents")();f=f.Link;a=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(a);var g=c("useBillingWizardUPLogger")(),i=m(function(){g==null?void 0:g.logClickEvent("change_payment_method"),void e()},[e,g]);return h._("{card} {Link}",[h._param("card",a),h._param("Link",b?l.jsx(f,{color:"highlight",inline:!0,label:h._("Change"),level:4,onClick:i,type:"headline"}):null)])}r.displayName=r.name+" [from "+f.id+"]";function s(a){switch(a){case"UPI":return h._("36 hours");default:return null}}function t(a,b){if(b)return null;b=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(a);b=h._("{credential name} transaction pending",[h._param("credential name",b)]);a=s(a==null?void 0:a.credential_type);a=a!==null?h._("Auto reload transactions can take up to {time} to process. Pending transactions may not show the updated auto reload amount immediately.",[h._param("time",a)]):"";return{body:a,title:b}}function a(a,e,f,g,h,i,j){var k,l;g=d("RelayHooks").useFragment(p,e);e=d("RelayHooks").useFragment(o,f);var s=c("useBillingLogger")();f=(f=g==null?void 0:(f=g.auto_reload_info)==null?void 0:f.auto_reload_amount)!=null?f:g==null?void 0:(f=g.prepay_details)==null?void 0:f.default_funding_amount;var u=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(k=g.auto_reload_info)==null?void 0:k.auto_reload_trigger_threshold),v=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f),w=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(k=g.prepay_details)==null?void 0:k.max_acceptable_amount),x=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(f=g.prepay_details)==null?void 0:f.min_acceptable_amount);k={maxAmount:w,minAmount:x};f=(f=g==null?void 0:(f=g.billing_payment_account)==null?void 0:f.billing_payment_method_options)!=null?f:[];l=(l=g==null?void 0:(l=g.auto_reload_info)==null?void 0:(l=l.pending_auto_reload_transaction)==null?void 0:l.allow_change_credential)!=null?l:!0;f=l&&f.length>0;var y=(g=g==null?void 0:g.currency)!=null?g:"USD",z=d("BillingCurrencyAmount").createZero(y).format({showSymbol:!1});g=c("getBillingHubPaymentMethodDisplayIcon")(e);var A=q(e,l);f=r(e,f,j);j={headline:f,icon:g,secondaryText:A};f=t(e,l);var B=e==null?void 0:e.credential_type;g=m(function(c){var e,f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:e=d("BillingCurrencyAmount").getFromUserInput(c.reloadAmount,y);f=d("BillingCurrencyAmount").getFromUserInput(c.triggerAmount,y);g.prev=2;g.next=5;return b("regeneratorRuntime").awrap(i(e,h,f,a,B));case 5:g.next=10;break;case 7:g.prev=7;g.t0=g["catch"](2);throw g.t0;case 10:case"end":return g.stop()}},null,this,[[2,7]])},[a,y,i,h,B]);A=n(function(){var a;return{reloadAmount:{defaultValue:(a=v==null?void 0:v.format({showSymbol:!1}))!=null?a:z,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,y);a=d("BillingPrepayUtils").validateAmount(a,x,w,s);if(a!=null)return{message:a,validationState:"ERROR"}}},triggerAmount:{defaultValue:(a=u==null?void 0:u.format({showSymbol:!1}))!=null?a:z,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,y);a=d("BillingPrepayUtils").validateAmountForReloadThreshold(a,s);if(a!=null)return{message:a,validationState:"ERROR"}}}}},[y,v,u,s,w,x,z]);return{bannerInfo:f,credentialInfo:j,fields:A,handleSubmit:g,limits:k}}g["default"]=a}),226);
-----
useBillingAutoReload_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"intent"}],kind:"Fragment",metadata:null,name:"useBillingAutoReload_account",selections:[a,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"intent",variableName:"intent"}],concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"BillingAutoReloadPendingTransactionInfo",kind:"LinkedField",name:"pending_auto_reload_transaction",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"allow_change_credential",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"intent",value:"AUTO_RELOAD"}],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_details",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:b,storageKey:null}],storageKey:"prepay_details(intent:"AUTO_RELOAD")"}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
useBillingPayNowLanding",["BillingBalanceSectionConstants","BillingCurrencyAmount","RelayHooks","react","regeneratorRuntime","useBillingPayNowLanding_account.graphql","useBillingPaymentMethodsList","useBillingPrimaryIDAndType","useBillingWizardUPLogger","useBillingWizardUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useMemo,l=d("BillingCurrencyAmount").getFromUserInput("10","INR"),m=h!==void 0?h:h=b("useBillingPayNowLanding_account.graphql");function a(a,e,f,g,h){a=d("RelayHooks").useFragment(m,a);var i=c("useBillingWizardUPLogger")(),n=c("useBillingPrimaryIDAndType")(a==null?void 0:a.billing_payment_account),o=n.id;n=n.type;var p=(f=f)!=null?f:o,q=(f=g)!=null?f:n;g=(o=a==null?void 0:a.currency)!=null?o:"USD";f=c("useBillingWizardUtils")();n=f.Get3DSClientInfo;o=n.read();var r=o(),s=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance))!=null?f:d("BillingCurrencyAmount").createZero(g);i==null?void 0:i.appendMetadataIfNotNull({currency:g});var t=(n=a==null?void 0:a.billable_account_status)!=null?n:"ACTIVE";i=((f=a==null?void 0:(o=a.billing_payment_account)==null?void 0:o.billing_payment_methods)!=null?f:[]).map(function(a){return a==null?void 0:a.credential}).filter(Boolean).filter(function(a){return a.credential_type!=="EXTENDED_CREDIT"&&a.credential_type!=="ADS_STORED_BALANCE"});if(s.isZero())g=null,n="NEW_CREDIT_CARD";else if(i.find(function(a){var b;return a.credential_type===q&&((b=a.credential_id)!=null?b:a.id)===p})!=null)g=p,n=q;else if(i.length!==0){g=(a=i[0].credential_id)!=null?a:i[0].id;n=i[0].credential_type}else g=null,n="NEW_CREDIT_CARD";a=c("useBillingPaymentMethodsList")(e,(o=n)!=null?o:"NEW_CREDIT_CARD",(f=g)!=null?f:void 0);i=a.altpayDisplayName;n=a.onSelect;o=a.providerID;var u=a.selectedID,v=a.selectedType;g=j(function(a){var c,f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:c=d("BillingCurrencyAmount").getFromUserInput(a.amount,s.currency);f="PAY_NOW";c.compare(s)===0&&(t==="UNSETTLED"||t==="IN_GRACE_PERIOD")&&(f="SETTLE");g.next=5;return b("regeneratorRuntime").awrap(e(u,v,c,s,f,a.invoiceIDs,r));case 5:case"end":return g.stop()}},null,this)},[t,r,s,e,u,v]);var w=h!=null?h:s;f=k(function(){return{amount:{defaultValue:w.format({showSymbol:!0}),isSensitive:!1,onBlur:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,w.currency);return a.format({showSymbol:!0})},required:!0,uplFieldKey:"payment_amount",validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,w.currency);var b=null;a.compare(s)>0?b=c("BillingBalanceSectionConstants").amountError:(a.isZero()||a.compare(d("BillingCurrencyAmount").createZero(a.currency))<0)&&!s.isZero()?b=c("BillingBalanceSectionConstants").zeroAmountError:!(t==="UNSETTLED"||t==="IN_GRACE_PERIOD")&&a.currency==="INR"&&a.compare(l)<0&&!s.isZero()&&(b=c("BillingBalanceSectionConstants").customAmountError(l));return b}},invoiceIDs:{defaultValue:void 0,required:!1}}},[s,w]);return{altpayDisplayName:i,fields:f,onSelect:n,onSubmit:g,providerID:o,selectedID:u,selectedType:v}}g["default"]=a}),98);
-----
useBillingPayNowLanding_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}];return{argumentDefinitions:[{kind:"RootArgument",name:"billingEntryPoint"}],kind:"Fragment",metadata:null,name:"useBillingPayNowLanding_account",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useBillingPrimaryIDAndType_primaryMethod"},{alias:null,args:[{kind:"Literal",name:"allowlist",value:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION","UNVERIFIABLE"]},{kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{kind:"InlineFragment",selections:b,type:"DirectDebit",abstractKey:null},{kind:"InlineFragment",selections:b,type:"PaymentPaypalBillingAgreement",abstractKey:null},{kind:"InlineFragment",selections:b,type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
useBillingCreditSharingSubmission",["BillingCreditSharingConfirmationConstants","BillingCurrencyAmount","BillingError","react","regeneratorRuntime","useBillingCreditSharingSubmissionMutation.graphql","useBillingRelay","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback,k=h!==void 0?h:h=b("useBillingCreditSharingSubmissionMutation.graphql");function a(a,e,f,g,h,i,l,m,n,o,p,q){var r=c("useBillingWizardUPLogger")(),s=c("useBillingRelay")();if(e==null||f==null||g==null||i==null||h==null||m==null||n==null)throw new(c("BillingError"))("Missing input parameters in useBillingCreditSharingSubmission","required parameter is missing or invalid",{event_action:"enter",event_context:"credit_sharing_billing_submit_request_mutation",event_side:"client_side"},{action:"mutate"},"critical_error");var t=j(function(){var j,t,u,v,w;return b("regeneratorRuntime").async(function(x){while(1)switch(x.prev=x.next){case 0:j={allocation_amount:a?a.asGraphQLInput():d("BillingCurrencyAmount").createZero("USD").asGraphQLInput(),allocation_type:m,bill_to_party_id:n,credit_allocation_region:e,credit_owner_business_id:g,credit_owner_org_id:f,credit_partition_flow_mode:h,receiving_business_id:i,receiving_org_id:l,upl_logging_data:babelHelpers["extends"]({},r==null?void 0:r.getLoggingData("useBillingCreditSharingSubmissionMutation"))};r==null?void 0:r.appendMetadataIfNotNull({allocation_type:m});x.next=4;return b("regeneratorRuntime").awrap(s.commitMutation({mutation:k,mutationName:k.params.name,variables:{input:j}},{event_context:"credit_sharing_billing_submit_request_mutation"}));case 4:t=x.sent;u=t==null?void 0:t.xfb_credit_sharing_review_details_submission;v=u==null?void 0:u.integrity_review_process;w=u==null?void 0:u.allocation_id;if(!(v==null||w==null)){x.next=10;break}throw new(c("BillingError"))("integrityReviewProcess or allocationId from useBillingCreditSharingSubmission cannot be null","required parameter is missing or invalid",{event_action:"enter",event_context:"credit_sharing_billing_submit_request_mutation",event_side:"client_side"},{action:"mutate"},"critical_error");case 10:x.t0=v;x.next=x.t0==="NONE"?13:x.t0==="ADDITIONAL_ADMIN_APPROVAL"?16:x.t0==="EMAIL_VERIFICATION"?19:22;break;case 13:x.next=15;return b("regeneratorRuntime").awrap(q({body:d("BillingCreditSharingConfirmationConstants").BillingCreditSharingConfirmationConstants.confirmationDecription(o),headline:d("BillingCreditSharingConfirmationConstants").BillingCreditSharingConfirmationConstants.confirmationTitle,overrideIcon:"CONFIRMATION_SUCCESS",testid:"billing-credit-sharing-show-confirmation-success",title:p,type:"SUCCESS"}));case 15:return x.abrupt("break",23);case 16:x.next=18;return b("regeneratorRuntime").awrap(q({body:d("BillingCreditSharingConfirmationConstants").BillingCreditSharingConfirmationConstants.adminApprovalNeededDescription,headline:d("BillingCreditSharingConfirmationConstants").BillingCreditSharingConfirmationConstants.adminApprovalNeeded,overrideIcon:"CONFIRMATION_INFO",testid:"billing-credit-sharing-show-confirmation-success",title:p,type:"SUCCESS"}));case 18:return x.abrupt("break",23);case 19:x.next=21;return b("regeneratorRuntime").awrap(q({body:d("BillingCreditSharingConfirmationConstants").BillingCreditSharingConfirmationConstants.emailApprovalNeededDescription,headline:d("BillingCreditSharingConfirmationConstants").BillingCreditSharingConfirmationConstants.emailApprovalNeededTitle,overrideIcon:"CONFIRMATION_INFO",testid:"billing-credit-sharing-show-confirmation-success",title:p,type:"SUCCESS"}));case 21:return x.abrupt("break",23);case 22:throw new(c("BillingError"))("integrityReviewProcess invalid case","required parameter is missing or invalid",{event_action:"enter",event_context:"credit_sharing_billing_submit_request_mutation",event_side:"client_side"},{action:"mutate"},"critical_error");case 23:case"end":return x.stop()}},null,this)},[e,g,f,h,o,q,i,l,s,a,m,n,p,r]);return{onSubmit:t}}g["default"]=a}),98);
-----
BillingCreditSharingSelectAllocationTypeScreen.react",["BillingCreditSharingCommonConstants","BillingCreditSharingSelectAllocationTypeScreenQuery.graphql","BillingCreditSharingSelectAllocationTypeView.react","BillingCurrencyAmount","BillingWrapperWithForm.react","RelayHooks","react","useBillingCreditSharingSelectAllocationType"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingCreditSharingSelectAllocationTypeScreenQuery.graphql");function a(a){var b,e,f,g,h,i=a.creditPartitionFlowMode,l=a.displayAuthAllocationOption,m=a.onNext,n=a.preloadedQuery;a=a.wrapperProps;n=d("RelayHooks").usePreloadedQuery(k,n);b=(b=n==null?void 0:(b=n.monthlyInvoicingDetails)==null?void 0:(b=b.credit_limit)==null?void 0:b.currency)!=null?b:"USD";e=(e=n==null?void 0:(e=n.monthlyInvoicingDetails)==null?void 0:(e=e.remaining_credit_for_fixed_allocation)==null?void 0:e.amount)!=null?e:"0";var o=n==null?void 0:n.monthlyInvoicingDetails;f=(f=n==null?void 0:(f=n.xfb_credit_partition_configuration)==null?void 0:(f=f.partition_type)==null?void 0:f.allowed_types)!=null?f:[];var p=f.includes("FIXED");f=f.includes("FIXED_WITHOUT_PARTITION");var q=p&&!f,r=f&&!p;o=d("BillingCreditSharingCommonConstants").getTotalCreditLineTitleText(o==null?void 0:(o=o.remaining_credit_for_fixed_allocation)==null?void 0:o.formatted_amount,p,f);g=(g=n==null?void 0:(g=n.receivingOrg)==null?void 0:g.legal_entity_name)!=null?g:"";var s=d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.allocateFixedPartitionDescription(g),t=d("BillingCreditSharingCommonConstants").getScreenTitle(i);h=d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.selectAllocationTypeDescription(g,n==null?void 0:(h=n.monthlyInvoicingDetails)==null?void 0:(h=h.credit_limit)==null?void 0:h.formatted_amount,f,p);var u=f?"FIXED_WITHOUT_PARTITION":"FIXED";m=c("useBillingCreditSharingSelectAllocationType")(m,b,d("BillingCurrencyAmount").getFromUserInput(e,b),null,null,u);e=m.fields;b=m.onSelect;u=m.onSubmit;m=m.selectedAllocationType;return j.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:e,onSubmit:u,title:t,children:j.jsx(c("BillingCreditSharingSelectAllocationTypeView.react"),{canUseFixedPartition:p,canUseFixedWithoutPartition:f,creditPartitionFlowMode:i,description:h,displayAuthAllocationOption:l===!0,fixedPartitionCheckboxDescription:s,fullAccessDescription:d("BillingCreditSharingCommonConstants").getFullAccessDescription(r,n==null?void 0:(a=n.monthlyInvoicingDetails)==null?void 0:(e=a.credit_limit)==null?void 0:e.formatted_amount),fullAccessTitle:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.fullAccessTitle,onSelect:b,partialAccessDescription:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.partialAccessDescription(g,q),partialAccessTitle:d("BillingCreditSharingCommonConstants").BillingCreditSharingCommonConstants.partialAccessTitle,selectedAllocationType:m,totalCreditLineFooter:o})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=k;g.BillingCreditSharingSelectAllocationTypeScreen=a}),98);
-----
BillingReviewPaymentScreen.react",["fbt","BillingCurrencyAmount","BillingError","BillingIconUtils","BillingPaymentMethodDisplay","BillingReviewPaymentConstants","BillingReviewPaymentScreenQuery.graphql","BillingRowContainer.react","BillingWizardQEContext","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useCallback,m=i!==void 0?i:i=b("BillingReviewPaymentScreenQuery.graphql");function a(a){var b,e,f,g,i=a.csc,j=a.onEditAmount,n=a.onSubmit,o=a.paymentAmount,p=a.paynow,q=a.preloadedQuery,r=a.sharedStoredBalanceID;a=a.wrapperProps;var s=c("useBillingWizardComponents")(),t=s.Column,u=s.IconGroup,v=s.Row,w=s.Text;s=s.Wrapper;q=d("RelayHooks").usePreloadedQuery(m,q);b=q==null?void 0:(b=q.billable_account_by_payment_account)==null?void 0:b.__typename;if(o==null)throw new(c("BillingError"))("BillingReviewPaymentScreen null paymentAmount","required props is missing or invalid",{event_action:"enter",event_context:"screen",event_result:"failure",event_side:"client_side"},{action:"load"},"critical_error");e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((e=q.billable_account_by_payment_account)==null?void 0:e.prepay_balance);if((q==null?void 0:q.sharedStoredBalance)!=null){var x;e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q==null?void 0:(x=q.sharedStoredBalance)==null?void 0:x.balance_amount)}x=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q==null?void 0:(x=q.billable_account_by_payment_account)==null?void 0:x.account_balance);e=p?x==null?void 0:x.subtract(o):(e=e)==null?void 0:e.add(o);f=(f=q==null?void 0:(f=q.billable_account_by_payment_account)==null?void 0:f.billable_account_status)!=null?f:"ACTIVE";f=f==="UNSETTLED"||f==="IN_GRACE_PERIOD";var y=l(function(){return n(i)},[i,n]),z,A;switch(q==null?void 0:(g=q.node)==null?void 0:g.__typename){case"ExternalCreditCard":var B;g=(q==null?void 0:(g=q.node)==null?void 0:g.card_association)||"UNKNOWN";z=d("BillingPaymentMethodDisplay").getCreditCardDisplay((B=q.node)==null?void 0:B.card_association_name,(B=q.node)==null?void 0:B.last_four_digits);A=d("BillingIconUtils").getIconTypeFromOriginalType(g);break;case"PaymentPaypalBillingAgreement":A="PM_PAYPAL";z=d("BillingPaymentMethodDisplay").getPayPalDisplay(q==null?void 0:(B=q.node)==null?void 0:B.email);break;case"EarningsPayoutCredential":A="PM_EARNINGS_PAYOUT";break;case"DirectDebit":A="PM_DIRECT_DEBIT";z=d("BillingPaymentMethodDisplay").getBankDisplay(q==null?void 0:(g=q.node)==null?void 0:g.bank_name,q==null?void 0:(B=q.node)==null?void 0:B.bank_account_type,q==null?void 0:(g=q.node)==null?void 0:g.last_four_digits)}B=d("BillingWizardQEContext").useBillingQE();q=B.billing_muf_pay_now_2024h1.pay_now_muf_updates_dev.read();var C;g=p&&e!=null&&!e.isZero();if(g&&q){g=c("BillingReviewPaymentConstants").partialSettlementContent.postpayHeadline;f=f?c("BillingReviewPaymentConstants").unsettledPartialSettlementBody(x==null?void 0:x.toString()):c("BillingReviewPaymentConstants").proactivePaymentPartialSettlementBody(e==null?void 0:e.toString());g=g(o.toString(),x==null?void 0:x.toString());x={action:j,label:h._("Edit amount")};C={action:y,label:h._("Confirm")}}else{j=c("BillingReviewPaymentConstants").fullSettlementContent.body;var D=c("BillingReviewPaymentConstants").fullSettlementContent.postpayHeadline,E=B.billing_content_experiment_h2_2024.update_prepaid_funds_v1.read();f=j(q,e==null?void 0:e.toString(),z,b);g=p?D(o.toString(),q,b):c("BillingReviewPaymentConstants").prepayHeadline(o.toString(),E);x={action:y,label:c("BillingReviewPaymentConstants").prepayConfirm}}j=B.billing_muf_add_pm_2024h1.add_pm_muf_updates_dev.read();return k.jsx(s,babelHelpers["extends"]({},a,{mobileVerticalTextAlign:!0,primaryButton:x,secondaryButton:C,title:c("BillingReviewPaymentConstants").header(b),children:k.jsxs(c("BillingRowContainer.react"),{children:[q?k.jsxs(v,{justify:"center",children:[k.jsx(t,{alignSelf:"center",children:A!=null?k.jsx(u,{icons:[A]}):k.jsx(u,{icons:["PM_PREPAY"]})}),k.jsx(t,{alignSelf:"start",padding:8,paddingBottom:!0,paddingTop:!1,children:k.jsx(w,{headline:z,textAlign:"auto"})})]}):k.jsx(v,{justify:"space-around",children:A!=null?j?k.jsx(u,{icons:[A]}):k.jsx(u,{icons:[A,"INLINE_ARROW_RIGHT",r!=null?"PM_SHARED_PREPAID_FUNDS":"PM_PREPAY"]}):k.jsx(u,{icons:["PM_PREPAY"]})}),k.jsx(v,{justify:"space-around",children:k.jsx(w,{body:f,headline:g,testid:void 0,textAlign:"center"})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=m;g.BillingReviewPaymentScreen=a}),226);
-----
BillingAuthenticateChargeScreen.react",["fbt","BillingAuthenticateChargeScreenQuery.graphql","BillingAuthenticateChargeView.react","BillingCurrencyAmount","BillingErrorUtils","RelayHooks","err","react","useBillingLogger","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useCallback,m=i!==void 0?i:i=b("BillingAuthenticateChargeScreenQuery.graphql");function a(a){var b,e=a.authenticateChargeParams,f=a.onFailure,g=a.onSuccess,i=a.overrideHasBack;i=i===void 0?!0:i;var j=a.paymentAmount,n=a.preloadedQuery;a=a.wrapperProps;n=d("RelayHooks").usePreloadedQuery(m,n);b=d("BillingCurrencyAmount").createZero((b=(b=n.billable_account_by_payment_account)==null?void 0:b.currency)!=null?b:"USD");n=(n=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((n=n.billable_account_by_payment_account)==null?void 0:n.prepay_balance))!=null?n:b;var o=((j=j)!=null?j:b).add(n),p=c("useBillingLogger")(),q=c("useBillingWizardUPLogger")();j=c("useBillingWizardComponents")();b=j.Wrapper;n=l(function(){var a={event:{event_action:"unknown",event_context:"screen",event_result:"failure",event_side:"client_side"},exception_class:"error",exception_message:"Unknown error occured during authenticate charge",upl_event:{action:"unknown"}};p.logError("client side unknown error",a);var b=c("err")(a.exception_message);a=d("BillingErrorUtils").buildBillingErrorFromError("client side unknown error",a.event,a.upl_event,b);q==null?void 0:q.logBillingPayloadError(a.type,a.errorPayload);f()},[p,q,f]);j=l(function(a){(a==null?void 0:a.status)==="COMPLETED"?g(o):f()},[g,o,f]);e=(e=e)!=null?e:{};var r=e.nonce,s=e.params;e=e.url;return k.jsx(b,babelHelpers["extends"]({},a,{hasBack:i,title:h._("Verify payment"),webView:!0,children:k.jsx(c("BillingAuthenticateChargeView.react"),{nonce:r,onError:n,onSuccess:j,params:s,url:(b=e)!=null?b:""})}))}a.displayName=a.name+" [from "+f.id+"]";g.query=m;g.BillingAuthenticateChargeScreen=a}),226);
-----
BillingReviewPaymentScreenQuery.graphql",["BillingReviewPaymentScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"creditCardID"},{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"sharedStoredBalanceID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],f=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],g={alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},h=[{kind:"Variable",name:"id",variableName:"sharedStoredBalanceID"}],i=[{kind:"Variable",name:"id",variableName:"creditCardID"}],j={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},j],type:"ExternalCreditCard",abstractKey:null},l={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null};j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},j],type:"DirectDebit",abstractKey:null};var m={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingReviewPaymentScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:f,storageKey:null},g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:f,storageKey:null}],storageKey:null},{alias:"sharedStoredBalance",args:h,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:f,storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null},{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,k,l,j],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingReviewPaymentScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:null},g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null},m],storageKey:null},{alias:"sharedStoredBalance",args:h,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:e,storageKey:null}],type:"StoredBalance",abstractKey:null},m],storageKey:null},{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,k,l,j,m],storageKey:null}]},params:{id:b("BillingReviewPaymentScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingReviewPaymentScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingAuthenticateChargeScreenQuery.graphql",["BillingAuthenticateChargeScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAuthenticateChargeScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAuthenticateChargeScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null}],type:"AdAccount",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingAuthenticateChargeScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingAuthenticateChargeScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingLWIEstimatesBase.react",["fbt","AdsCouponPromotionEventsFalcoEvent","AdsCurrencyFormatter","BillingCurrencyAmount","BillingLWIEstimatesBase_items.graphql","CACLCouponUtils","CometMarketplaceAdsUtils","CometRelay","CometRow.react","CometRowItem.react","CouponProgressBarPromotionType","LWIBizWebABTestBillingBreakdownSubsection.react","LWIBizWebAdsCouponContext","LWICometLoggerContext","LWICometPostAdConfirmationBillingList.react","LWIOmniTextPairing.react","getJSEnumSafe","qex","react","stylex","useBillingInfoEstimatedTax","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect,o=e.useRef,p=h._("Budget"),q=h._("Budget"),r=h._("Your ad runs continuously on an average daily budget."),s={firstLineMargin:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0},lastLineMargin:{marginBottom:"x1e56ztr",$$css:!0}},t=i!==void 0?i:i=b("BillingLWIEstimatesBase_items.graphql");function a(a){var b=a.additionalBoostTargetIDs,e=a.alwaysShowBudgetNote;e=e===void 0?!1:e;var f=a.eventName,g=f===void 0?null:f;f=a.hideBudgetNote;f=f===void 0?!1:f;var i=a.hideSeparator;i=i===void 0?!1:i;var k=a.items,u=a.overrideBudgetNote,v=a.overrideFirstLineMargin,w=a.overrideLastLineMargin,x=a.showConfirmationBillingList,y=a.abTestAudienceData,z=a.billingEvent,A=a.budget,B=a.budgetType,C=a.couponCurrency,D=C===void 0?null:C;C=a.couponOfferId;var E=C===void 0?null:C;C=a.couponProduct;var F=C===void 0?null:C;C=a.couponValueInCents;C=C===void 0?0:C;var G=a.durationInDays,H=a.isCACLEnabled;H=H===void 0?!1:H;var I=a.legacyAccountID,J=a.promotionType,K=J===void 0?null:J;J=a.runContinuously;a=a.shouldHideBudgetNote;a=a===void 0?!1:a;k=d("CometRelay").useFragment(t,k);var L=m(c("LWICometLoggerContext")),M=(k=k==null?void 0:(k=k.ad_account)==null?void 0:k.currency)!=null?k:"USD";k=!d("CometMarketplaceAdsUtils").isBulkBoost(b)&&z==="PURCHASE";z=(y==null?void 0:y.length)===2;z=z&&((y=c("qex")._("480"))!=null?y:!1);y=null;k?y=h._("Per item sold"):B==="DAILY_BUDGET"&&!J&&(y=h._({"*":"{daily budget} a day x {duration of the ad} days.","_1":"{daily budget} a day x {duration of the ad} day."},[h._plural(G),h._param("daily budget",d("AdsCurrencyFormatter").formatCurrency(M,A)),h._param("duration of the ad",G)]));y===null&&e&&(y=J?r:h._({"*":"Your ad will run for {number} days.","_1":"Your ad will run for 1 day."},[h._plural(G,"number")]));y=f?null:(e=u)!=null?e:y;f=J?p:q;u=B==="DAILY_BUDGET"&&!J&&!k?A*G:A;d("CometMarketplaceAdsUtils").isBulkBoost(b)&&(u*=(b!=null?b.length:0)+1);var N=M===D?d("CACLCouponUtils").getCACLAdCreditValue(F,C,H):0;n(function(){M!==D&&g==="cacl_lwi_payment_summary_ad_credit_line_shown"&&F!=null&&c("AdsCouponPromotionEventsFalcoEvent").log(function(){return{ad_account_id:I,coupon_product:F,event_name:"cacl_lwi_payment_summary_budget_currency_not_match_coupon_currency",offer_id:E,promotion_type:c("getJSEnumSafe")(c("CouponProgressBarPromotionType"),K)}})},[I,D,F,E,M,g,K]);e=m(c("LWIBizWebAdsCouponContext"));B=e.couponData;N=(B==null?void 0:B.currency)===M&&(B==null?void 0:B.offsetAmount)!=null?Number(B==null?void 0:B.offsetAmount):N;k=Math.max(u-N,0);G=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:M,offset_amount:k.toString()});A=c("useBillingInfoEstimatedTax")(I,G);b=A.taxes;C=A.totalBudget;H=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:M,offset_amount:u.toString()});var O=o(null);n(function(){N>0&&O.current!==I&&(c("AdsCouponPromotionEventsFalcoEvent").log(function(){return{ad_account_id:I,coupon_product:F,event_name:g,offer_id:E,promotion_type:c("getJSEnumSafe")(c("CouponProgressBarPromotionType"),K)}}),O.current=I)},[I,N,E,F,g,K]);e="- "+d("AdsCurrencyFormatter").formatCurrencyWithISO(M,Math.min(N,u));return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:(j||(j=c("stylex")))(v!=null?v:s.firstLineMargin),children:[l.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:[l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{body:f,level:3})}),l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{body:H==null?void 0:H.format({showCurrencyCode:!0,showDecimals:!0,showSymbol:!0}),level:3,testid:void 0})})]}),a===!0?null:l.jsx(c("CometRow.react"),{paddingHorizontal:4,paddingTop:y==null?0:4,children:l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{level:3,meta:y})})}),(L==null?void 0:L.product)==="BOOSTED_POST_AB_TEST"||z?l.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIBizWebABTestBillingBreakdownSubsection.react"),{formattedSplitBudget:d("AdsCurrencyFormatter").formatCurrencyWithISO(M,u/2),isAudienceTest:z})})}):null]}),x!=null&&x.length>0&&l.jsx(c("LWICometPostAdConfirmationBillingList.react"),{billingListItemSpecs:x}),N>0&&l.jsx("div",{className:(j||(j=c("stylex")))(v!=null?v:s.firstLineMargin),children:l.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:[l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{headline:h._("Ad credit"),headlineColor:"positive",level:4})}),l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{headline:e,headlineColor:"positive",level:4,testid:void 0})})]})}),b!=null&&b.map(function(a){var b;return l.jsx("div",{className:(j||(j=c("stylex")))(v!=null?v:s.firstLineMargin),children:l.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:[l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{body:a.taxName,level:3})}),l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{body:a==null?void 0:(b=a.amount)==null?void 0:b.format({showCurrencyCode:!0,showDecimals:!0,showSymbol:!0}),level:3,testid:void 0})})]})},a.taxName)}),(C!=null||N>0)&&l.jsxs(l.Fragment,{children:[!i&&l.jsx("div",{className:"x80vd3b x1q0q8m5 xso031l xod5an3 x14vqqas"}),l.jsx("div",{className:(j||(j=c("stylex")))(w!=null?w:s.lastLineMargin),children:l.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:[l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{body:J?h._("Daily total budget"):h._("Total amount"),level:3})}),l.jsx(c("CometRowItem.react"),{children:l.jsx(c("LWIOmniTextPairing.react"),{body:C==null?void 0:C.format({showCurrencyCode:!0,showDecimals:!0,showSymbol:!0}),level:3,testid:void 0})})]})})]})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{abTestAudienceData:a.abTestAudienceData,billingEvent:a.billingEvent}});g["default"]=e}),226);
-----
BillingAdAccountAltpayOption.react",["fbt","BillingAdAccountAltpayOption.graphql","BillingCurrencyAmount","BillingDisplayRow.react","BillingListItemRow.react","BillingPaymentMethodConstants","BillingWizardQEContext","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingAdAccountAltpayOption.graphql");function a(a){var b=a.country,e=a.iconInfo,f=a.onPressType,g=a.onSelect,i=a.option,j=a.selectedID,m=a.selectedType;a=a.showStandardBillingAltPayMetaText;a=a===void 0?!1:a;var n=d("BillingWizardQEContext").useBillingQE();n=n.billing_content_experiment_h2_2024.update_prepaid_funds_v1.read();var o=c("useBillingWizardComponents")(),p=o.Column,q=o.Link;o=o.Row;i=d("RelayHooks").useFragment(l,i);var r=i.credentialId,s=i.lpmSupportsRecurring,t=i.paymentMethodType,u=i.recurringDefaultAuthChargeRaw;i=i.title;u=d("BillingCurrencyAmount").getFromRecurringLPMAuthCharge(u==null?void 0:u.amount,u==null?void 0:u.currency);var v=function(a,b,c,d,e,f){return function(){var h;return g(a,(h=b)!=null?h:void 0,(h=c)!=null?h:void 0,(h=d)!=null?h:void 0,(h=e)!=null?h:void 0,(h=f)!=null?h:void 0)}},w=c("useBillingWizardComponents")();w=w.PaymentIcon;if(r!=null)if(b==="IN"&&r.includes("EMI")){if(r!=="FB_Ads_IN_PayU_EMI_AXIS_3")return null;b="ALT_PAY_EMI";var x=v(b,r,t,i);b=b===m;x=k.jsx(c("BillingListItemRow.react"),{body:c("BillingPaymentMethodConstants").emiBody,marginBottom:16,onPressType:f,onSelect:x,selected:b,testid:void 0});return b?k.jsxs(o,{marginBottom:16,children:[x,k.jsx(p,{padding:8,withBackground:!0,children:k.jsx(c("BillingDisplayRow.react"),{body:c("BillingPaymentMethodConstants").emiMetaText,level:4})})]},"disclaimer-emi"):x}else{b="ALT_PAY";if(i!=null){x=n?h._("This payment method can only be used to add available funds. {link}",[h._param("link",k.jsx(q,{href:"https://www.facebook.com/business/help/1730009227245741",inline:!0,label:h._("Learn more"),level:4}))]):h._("This payment method can only be used to add prepaid funds. {link}",[h._param("link",k.jsx(q,{href:"https://www.facebook.com/business/help/1730009227245741",inline:!0,label:h._("Learn more"),level:4}))]);n=v(b,r,t,i,s,u);q=b===m&&r===j;v=k.jsx(c("BillingListItemRow.react"),{addOn:k.jsx(w,{icons:e}),addOnPosition:"END",body:i,marginBottom:a&&q?4:16,onPressType:f,onSelect:n,selected:b===m&&r===j,testid:void 0});return a&&q?k.jsxs(o,{marginBottom:8,children:[v,k.jsx(p,{fieldSize:12,padding:8,withBackground:!0,children:k.jsx(c("BillingDisplayRow.react"),{body:x,level:4})})]},"disclaimer-standard-billing-alt-pay"):v}}return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useBillingNuxLanding",["fbt","BillingCurrencyAmount","BillingError","BillingPaymentModeUtils","BillingWizardQEContext","RelayHooks","react","regeneratorRuntime","useBillingCountry","useBillingLogger","useBillingNuxLandingMutation.graphql","useBillingNuxLanding_data.graphql","useBillingPaymentMethodsList","useBillingRelay","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k;e=k||d("react");var l=e.useCallback,m=e.useRef,n=e.useState,o=i!==void 0?i:i=b("useBillingNuxLanding_data.graphql"),p=j!==void 0?j:j=b("useBillingNuxLandingMutation.graphql");function a(a,e,f,g){var i,j,k,r,s=c("useBillingRelay")(),t=c("useBillingLogger")(),u=c("useBillingWizardUPLogger")(),v=m(!1);a=d("RelayHooks").useFragment(o,a);var w=d("useBillingCountry").useBillingCountry(a),x=w[0];w=w[1];i=(i=a==null?void 0:a.payment_modes)!=null?i:[];j=(j=a==null?void 0:(j=a.timezone_info)==null?void 0:j.timezone)!=null?j:"";var y=d("BillingWizardQEContext").useBillingQE();k=(k=a==null?void 0:a.supported_currency_options)!=null?k:[];r=(k=(r=a==null?void 0:a.currency)!=null?r:(r=k[0])==null?void 0:r.value)!=null?k:"";k=(k=a==null?void 0:(k=a.billing_payment_account)==null?void 0:k.credentials_available)!=null?k:[];var z,A,B,C,D;if(!y.billing_2024_add_payment_method_optimizations.no_default_pm_selected.read()){y=q(k);z=y.defaultID;C=y.defaultLPMSupportsRecurring;A=y.defaultPMType;B=y.defaultProviderID;D=y.defaultRecurringDefaultAuthAmount}y=n(!1);var E=y[0],F=y[1];y=c("useBillingPaymentMethodsList")(f,A,z,B,C,D,F);var G=y.altpayDisplayName,H=y.onSelect,I=y.providerID,J=y.selectedID,K=y.selectedLPMSupportsRecurring,L=y.selectedRecurringDefaultAuthAmount,M=y.selectedType;e=n((y=e)!=null?y:!1);var N=e[0],O=e[1];y=l(function(){t.logEvent({event:{event_action:"click",event_context:"check_box",event_data:{ad_credit_checked:String(!N)},event_result:"atomic",event_side:"client_side"}}),u==null?void 0:u.appendScreenMetadata({is_ad_credit:!N}),u==null?void 0:u.logClickEvent("ad_credit"),O(!N)},[N,O,t,u]);e=l(function(){t.logEvent({event:{event_action:"click",event_context:"check_box",event_data:{recurring_lpm_save:String(!E)},event_result:"atomic",event_side:"client_side"}}),u==null?void 0:u.appendScreenMetadata({is_saving_recurring_lpm:!E}),u==null?void 0:u.logClickEvent("setSavingRecurringLPM_button",{saving_recurring_lpm:(!E).toString()}),F(!E)},[E,F,t,u]);var P=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:J!=null&&(t.setMetaData({credential_id:J}),u==null?void 0:u.appendMetadataIfNotNull({credential_id:J}));if(!(M!=null)){a.next=5;break}u==null?void 0:u.appendMetadataIfNotNull({credential_type:M});a.next=6;break;case 5:throw new(c("BillingError"))("useBillingNuxLanding selected type is null","Invalid payment method type",{event_action:"submit",event_context:"add_payment_method",event_side:"client_side"},{action:"verify"},"warning",{description:h._("__JHASH__qOy1o0PoZhY__JHASH__").toString(),summary:h._("__JHASH__5z64fkg8Y1d__JHASH__").toString()});case 6:a.next=8;return b("regeneratorRuntime").awrap(f(J,M,I,N,G,E&&K===!0,E&&K===!0?L:void 0));case 8:case"end":return a.stop()}},null,this)};if(w&&!v.current){v.current=!0;w={billable_account_payment_legacy_account_id:g,currency:r,logging_data:t.getLoggingData(),tax:{business_address:{country_code:x}},timezone:j};s.commitMutation({mutation:p,mutationName:p.params.name,variables:{input:w}},{event_context:"set_default_country"})["catch"](function(a){t.logError(a.type,a.errorPayload),u==null?void 0:u.logBillingPayloadError(a.type,a.errorPayload)})}v=d("BillingPaymentModeUtils").isHybridAccount(i);g=d("BillingPaymentModeUtils").isPrepayOnlyAccount(i);r=k.some(function(a){return(a==null?void 0:a.credential_type)==="ALT_PAY"});s=(j=a==null?void 0:(x=a.billing_payment_account)==null?void 0:x.recurring_pms)!=null?j:[];w=s.filter(function(a){var b;return(a==null?void 0:(b=a.credential)==null?void 0:b.supports_recurring)===!0&&(a==null?void 0:(b=a.credential)==null?void 0:b.enabled_for_postpay)===!0}).length;i=w>0;k=(a==null?void 0:a.standard_billing_notices_gk)===!0&&(a==null?void 0:a.prepay_on_postpay_gk)===!0&&v&&r;x=(a==null?void 0:a.standard_billing_notices_gk)===!0&&(a==null?void 0:a.standard_billing_phase_3_gk)===!0&&!i&&(v||g&&(a==null?void 0:a.is_eligible_for_postpay_upgrade)===!0);return{altpayDisplayName:G,couponChecked:N,onCouponChange:y,onRecurringLPMChange:e,onSelect:H,onSubmit:P,providerID:I,savingRecurringLPM:E,selectedID:J,selectedLPMSupportsRecurring:K,selectedType:M,showStandardBillingAutomaticBillingNotice:x,showStandardBillingMorePMsNotice:k}}function q(a){var b=a.some(function(a){return(a==null?void 0:a.credential_type)==="CREDIT_CARD"}),c="NEW_CREDIT_CARD",e,f,g,h;if(b)return{defaultPMType:c};if(((b=a[0])==null?void 0:b.credential_type)!=null){c=a[0].credential_type;e=(b=a[0].credential_id)!=null?b:void 0;f=(b=a[0].payment_method_type)!=null?b:void 0;g=(b=a[0].supports_recurring)!=null?b:void 0;b=a[0].recurring_default_auth_charge;h=(a=d("BillingCurrencyAmount").getFromRecurringLPMAuthCharge(b==null?void 0:b.amount,b==null?void 0:b.currency))!=null?a:void 0}return{defaultID:e,defaultLPMSupportsRecurring:g,defaultPMType:c,defaultProviderID:f,defaultRecurringDefaultAuthAmount:h}}g["default"]=a}),226);
-----
LWICometSubmissionSectionView.react",["fbt","AdproObjectiveType","AdsLWIGoal","AdsReviewCometIPCUtils","BillingCurrencyAmount","BizKitAdsGating.entrypointutils","CometLink.react","CometRelay","CometRow.react","CometRowItem.react","ContentRefComet","LWIBizWebGeoCreationTemplateUtils","LWIBizWebUserFlowUtils","LWICometAdsRejectionUtils","LWICometContextualDataContext","LWICometDialogContext","LWICometDraftDialogUtils","LWICometLoggingConstants","LWICometMutationUtils","LWICometNoticesUtils","LWICometOptionalLoggingDataContext","LWICometPostAdDialogWrapper.react","LWICometProductUtils","LWICometSpecContext","LWICometStartDateUtils","LWICometSubmissionSectionStrings","LWICometTermsAndConditions.react","LWICreationPlatformIDUtils.react","LWIOmniButton.react","LWIOmniButtonGroup.react","LWIOmniText.react","QPLUserFlow","areEqual","castToEnum","cometPushToast","cr:2332","cr:4643","cr:4887","cr:577","cr:578","cr:7362","cr:7394","cr:8715","getJSEnumSafe","gkx","qpl","react","recoverableViolation","requireDeferred","stylex","useBillingMaybeOpenWizard","useBillingRequiredWizardName","useLWICometUIStatusContext","useLWILoggerContext","useLWINoticesContext","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k,n=m.useCallback,o=m.useContext,p=m.useEffect,aa=m.useMemo,q=m.useRef,ba=m.useState,r=c("requireDeferred")("BillingUPLWizardWebLogger").__setRef("LWICometSubmissionSectionView.react"),s=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("LWICometSubmissionSectionView.react"),ca=(m=b("cr:7362"))!=null?m:b("cr:7394");function a(a){var b=a.href;a=a.linkText;c("vulture")("7gPENuQc32r");return l.jsx(c("CometLink.react"),{display:"inline",href:b,target:"_blank",testid:void 0,children:l.jsx(c("LWIOmniText.react"),{color:"blueLink",type:"bodyLink4",children:a})})}a.displayName=a.name+" [from "+f.id+"]";var da=l.memo(a),t={auxContent:{alignItems:"x6s0dn4",display:"x78zum5",marginEnd:"xq8finb",$$css:!0},needHelpItem:{paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,$$css:!0},rootTwoColumns:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},rootTwoColumnsBizWebFullScreen:{width:"xh8yej3",$$css:!0},rootTwoColumnsWithCreationTemplate:{paddingBottom:"x18d9i69",paddingTop:"xexx8yu",$$css:!0},rootTwoColumnsWithinDialog:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},stepperAuxContent:{alignItems:"x7a106z",display:"x78zum5",marginEnd:"x1qi5vpy",$$css:!0}};function e(a){var e=a.adCreationDialogButtonPropsOverride,f=a.additionalBoostTargetIDs,g=a.additionalRightColumnTermsContent,k=a.backgroundImageOverride,m=a.boostButtonLabel,ea=a.confirmationMessageOverride,fa=a.confirmationMessageTitleOverride,u=a.disableSubmitButton;u=u===void 0?!1:u;a.hasTimeout;var v=a.hideAdCenterLinkInAdCreationDialog;v=v===void 0?!1:v;var ga=a.hideBackgroundImageInAdCreationDialog,w=a.isLiveBoostingAd;w=w===void 0?!1:w;var ha=a.onAudienceSpecsNoChange,ia=a.onMutationSubmit,ja=a.onPreSubmit,ka=a.onSpecsNoChange,x=a.onUpdateAdAccount,la=a.postAdDialogType,y=a.secondaryButton,ma=a.shouldCheckAutoBoostEntry,z=a.shouldCheckSpecsChange;z=z===void 0?!1:z;var A=a.shouldLogLowQualitySubmits,na=A===void 0?!1:A;a.showAutomatedAdsInCreationDialog;A=a.showConfirmationBillingList;var B=a.stepperFlow;B=B===void 0?!1:B;var C=a.submissionAction,oa=a.submissionIndicatorOverride,pa=a.suggestedCategory,qa=a.tocOverride,D=a.useRightColumnSubmitButton;D=D===void 0?!1:D;var E=a.withCouponEnrolled;E=E===void 0?!1:E;var F=a.adAccountData.legacyAccountID,ra=a.assetFeedSpecPlus,G=a.audienceData,H=a.budget,I=a.budgetType,J=a.creative,K=a.currency,L=a.durationInDays,M=a.goal,sa=a.objective,N=a.regionalRegulatedCategories,O=a.regulatedCategories,P=a.specContext,ta=a.specialAdCategoryCountries,ua=a.startTime,va=a.taiwanFinservBeneficiary;a=a.taiwanFinservPayor;c("vulture")("5zHiRNVObPd");var wa=C==="edit",xa=d("LWIBizWebGeoCreationTemplateUtils").useGeoCreationTemplate(),Q=ba(C),ya=Q[0],R=Q[1],S=c("useLWINoticesContext")(),T=c("useLWILoggerContext")(),U=o(c("LWICometOptionalLoggingDataContext"));Q=o(c("LWICometDialogContext"));var za=o(c("LWICometContextualDataContext")),Aa=b("cr:4643")();I=H!=null&&I==="DAILY_BUDGET"&&L!=null?H*L:H;L=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:K,offset_amount:I.toString()});H=c("useBillingRequiredWizardName")(F,L==null?void 0:L.asGraphQLInput().amount,K);I=n(function(){s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{action:"receive",context:"payment",event:"complete_payment_billing_wizard",side:"client_side"})}),c("QPLUserFlow").endSuccess(c("qpl")._(316544852,"610")),x(),ja!=null?ja(ia):ia()},[T,ia,ja,x,P]);L=n(function(){r.onReady(function(a){s.onReady(function(b){return b.logWithLoggerAndSpecContext(T,P,{action:"enter",context:"payment",event:"open_payments_flow",extra_data:{billing_upl_session_id:a.getSessionID()},side:"client_side"})})})},[T,P]);var Ba=n(function(){r.onReady(function(a){s.onReady(function(b){return b.logWithLoggerAndSpecContext(T,P,{action:"enter",context:"payment",event:"payments_flow_closed",extra_data:{billing_upl_session_id:a.getSessionID()},side:"client_side"})})})},[T,P]);K=n(function(){Ba(),x()},[Ba,x]);var V=n(function(){r.onReady(function(a){s.onReady(function(b){return b.logWithLoggerAndSpecContext(T,P,{action:"add",context:"payment",event:"payment_method_added",extra_data:{billing_upl_session_id:a.getSessionID()},side:"client_side"})})})},[T,P]),Ca=c("useBillingMaybeOpenWizard")(F,H,{entryPoint:"lwi_comet",flowID:T.flowID},{onBillingWizardComplete:V,onClose:K,onComplete:I,onOpen:L,otherProps:{withCouponEnrolled:E}});H=n(function(){var a;pa!=null&&d("LWICometAdsRejectionUtils").logAdsRejectionResubmit(T.entryPoint,T.flow,T.flowID,T.pageID,d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product),pa,O.toString());na&&d("LWICometAdsRejectionUtils").logAdsRejectionResubmit(T.entryPoint,T.flow,T.flowID,T.pageID,d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product));P.startTime!=null&&s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{event:"submit_scheduled_ad",extra_data:{is_scheduled_post:(a=za==null?void 0:(a=za.postInfo)==null?void 0:a.isScheduledPost)!=null?a:!1},side:"user_action"})});var b=(a=P.messengerWelcomeMessage)==null?void 0:a.isCallPromptEnabled;s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{action:T.flow==="create"?"create":"edit",context:"ad",creation_platform_id:d("LWICreationPlatformIDUtils.react").getCreationPlatformID(),creative_spec:JSON.stringify(P.adgroupSpecs),event:"submit_flow_click",extra_data:b!=null?{isCallPromptEnabled:b}:null,number_of_bulk_boost_products:((a=f)!=null?a:[]).length+1,side:"user_action",targeting_spec:JSON.stringify(P.audienceData.targetSpec)})});c("QPLUserFlow").addPoint(c("qpl")._(316544852,"610"),"boost_page_boost_button");P.startTime==null&&d("LWIBizWebUserFlowUtils").addBizWebAdsBoostPostButtonSubmitClickUserFLowPoint();(U==null?void 0:U.ipcDisapprovalReasons)&&d("AdsReviewCometIPCUtils").logAdgroupCreateAttempt(F,P.selectedAdgroupID,d("LWICometLoggingConstants").APP_ID,"LWI_WWW",U.ipcDisapprovalReasons,T.targetID,T.flowID);Ca()},[pa,T,O,na,P,f,U==null?void 0:U.ipcDisapprovalReasons,F,Ca]);V=o(c("LWICometSpecContext"));var Da=V.current;K=V.history;I=d("LWICometMutationUtils").getCreationMutationData({loggerContext:T,optionalLoggingData:U,spec:Da,specHistory:K});var Ea=I.input.creation_spec,Fa=T.flowID,Ga=T.pageID,Ha=T.product,Ia=T.targetID;L=c("useLWICometUIStatusContext")();var W=L.setIsSubmitButtonDisabled,X=L.setPostAdDialogStatus;E=L.videoProcessingStatus;var Ja=q(O),Ka=q(ta),Y=q(G),La=q(ra),Ma=q(J),Na=aa(function(){var a;return(i||(i=c("areEqual")))(Ja.current,O)&&(i||(i=c("areEqual")))(Ka.current,ta)&&(i||(i=c("areEqual")))(Y.current,G)&&(La.current!=null?(i||(i=c("areEqual")))(La.current,ra):(i||(i=c("areEqual")))((a=Ma.current)==null?void 0:(a=a.object_story_spec)==null?void 0:a.link_data,J==null?void 0:(a=J.object_story_spec)==null?void 0:a.link_data))},[La,ra,Y,G,Ma,J,Ja,Ka,O,ta]);p(function(){ha&&ha((i||(i=c("areEqual")))(Y.current,G))},[ha,G,Y]);p(function(){ka&&ka(Na)},[ka,Na]);var Z=S.isValidating||z&&Na||d("LWICometNoticesUtils").hasErrorTypeNotices(S.notices)||E==="PROCESSING"||u||N.includes("TAIWAN_FINSERV")&&(va==null||a==null),$=(V=c("getJSEnumSafe")(c("AdproObjectiveType"),sa))!=null?V:0;p(function(){Z||(s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{ads_lwi_goal:c("castToEnum")(M,c("AdsLWIGoal"),null),context:"flow",event:"promote_ready",lower_estimate:U==null?void 0:(a=U.reachEstimation)==null?void 0:a.lower_estimate,objective_override:$,side:"client_side",upper_estimate:U==null?void 0:(a=U.reachEstimation)==null?void 0:a.upper_estimate})}),W(Z))},[Z,M,T,$,U==null?void 0:(K=U.reachEstimation)==null?void 0:K.lower_estimate,U==null?void 0:(I=U.reachEstimation)==null?void 0:I.upper_estimate,W,P]);p(function(){!S.isValidating&&Z&&(s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{ads_lwi_goal:c("castToEnum")(M,c("AdsLWIGoal"),null),context:"flow",event:"promote_not_ready",extra_data:d("LWICometNoticesUtils").getErrorTypeNoticesAsObject(S.notices),objective_override:$,side:"client_side"})}),W(Z))},[Z,M,T,S.isValidating,S.notices,$,W,P]);b("cr:4887")();var Oa=d("CometRelay").useRelayEnvironment(),Pa=n(function(){X("SUBMITTING"),R("save_draft")},[X,R]),Qa=n(function(){d("cometPushToast").cometPushSimpleToast(h._("__JHASH__XALuJeAq1hZ__JHASH__")),R&&R(null),X&&X("SUCCEEDED")},[X,R]),Ra=n(function(){d("cometPushToast").cometPushSimpleToast(h._("__JHASH__d8LMoa-5BZ6__JHASH__")),R&&R(null),X&&X("SUCCEEDED")},[X,R]),Sa=n(function(){R&&R(null),X&&X("FAILED"),c("recoverableViolation")("Failed to create draft","pages_lwi")},[X,R]),Ta=n(function(){R&&R(null),X&&X("FAILED"),c("recoverableViolation")("Failed to update draft","pages_lwi")},[X,R]);L=n(function(){var a={beforeSetting:Pa,environment:Oa,existingDraftID:Da.draftID,flowID:Fa,onCompletedCreate:Qa,onCompletedUpdate:Ra,onErrorCreate:Sa,onErrorUpdate:Ta,pageID:Ga,product:Ha,spec:Ea,targetID:Ia};d("LWICometDraftDialogUtils").draftMutation(a)},[Pa,Ea,Oa,Fa,Qa,Ra,Sa,Ta,Ga,Ha,Da.draftID,Ia]);z=d("BizKitAdsGating.entrypointutils").getShouldEnableScheduleAd()&&!wa;Aa!=null&&b("cr:577")!=null?E=l.jsx(b("cr:577"),{boostButtonLabel:m,disabled:Z,onPress:H,secondaryButton:y}):y!=null?E=l.jsx(c("LWIOmniButtonGroup.react"),{direction:"backward",paddingHorizontal:0,paddingTop:0,primary:{disabled:Z,label:m,onPress:H,testid:"lwi_submit_button",type:"primary"},secondary:y}):z&&ca!=null?E=l.jsx(ca,{boostButtonLabel:m,disabled:Z,onPress:H,onSaveDraftPress:L,showDraftButton:!1}):E=l.jsx(c("LWIOmniButton.react"),{disabled:Z,label:m,onPress:H,padding:"wide",testid:void 0,type:"primary"});E=b("cr:2332")!=null?l.jsxs(c("CometRow.react"),{spacing:4,verticalAlign:"center",children:[l.jsx(c("CometRowItem.react"),{xstyle:t.needHelpItem,children:l.jsx(b("cr:2332"),{canShowPulse:!0,text:h._("__JHASH__k1mT2StnGBv__JHASH__"),withIcon:!0})}),l.jsx(c("CometRowItem.react"),{children:E})]}):E;c("gkx")("21034")&&b("cr:8715")!=null&&(E=l.jsx(b("cr:8715"),{additionalContent:y!=null?l.jsx("div",{className:"x9otpla",children:E}):l.jsx(l.Fragment,{children:E}),errorLabel:h._("__JHASH__FYc6u9VsOOe__JHASH__"),savingLabel:h._("__JHASH__xaguSnAdhSr__JHASH__")}));u=aa(function(){var a;return P.startTime!=null&&P.draftID!=null?"save":wa?C:(a=ya)!=null?a:C},[ya,wa,P.draftID,P.startTime,C]);N=l.jsx(da,{href:d("ContentRefComet").get("HELP_CENTER","LWI_SUBMISSION_SECTION"),linkText:d("LWICometSubmissionSectionStrings").HELP_CENTER_LABEL});va=ua!=null&&d("LWICometStartDateUtils").afterDateTimeConstraint(d("LWICometStartDateUtils").MINUTES_BEFORE_WHICH_CONSIDERED_NOW)(new Date(ua*1e3));a=va?h._("__JHASH__HaWNXC-B30-__JHASH__"):m;V=D?l.jsxs(l.Fragment,{children:[E,g,l.jsx("div",{className:"x6s0dn4 x78zum5 xq8finb xz9dl7a",children:l.jsxs(c("LWIOmniText.react"),{type:"body4",children:[l.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:a,objective:sa,tocOverride:qa}),!c("gkx")("23510")&&h._("__JHASH__BSvaErIHH3m__JHASH__",[h._param("separator"," | "),h._param("Help Center",N)])]})})]}):l.jsx(b("cr:578"),{buttonArea:E,leftContent:l.jsxs("div",{className:(j||(j=c("stylex")))(B?t.stepperAuxContent:t.auxContent),children:[l.jsx(c("LWIOmniText.react"),{type:"body4",children:l.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:a,objective:sa,tocOverride:qa})}),!c("gkx")("23510")&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"x15elzd x1kpxq89 x1emribx x1i64zmx x1i1rx1s"}),N]})]})});return l.jsxs("div",{className:(j||(j=c("stylex")))(Q!=null?t.rootTwoColumnsWithinDialog:t.rootTwoColumns,Aa!=null&&t.rootTwoColumnsBizWebFullScreen,xa&&Aa!=null&&t.rootTwoColumnsWithCreationTemplate),"data-testid":void 0,children:[V,l.jsx(c("LWICometPostAdDialogWrapper.react"),{additionalBoostTargetIDs:f,backgroundImageOverride:k,buttonPropsOverride:e,confirmationMessageOverride:ea,confirmationMessageTitleOverride:fa,hideAdCenterLink:v,hideBackgroundImage:ga,isLiveBoostingAd:w,postAdDialogType:la,shouldCheckAutoBoostEntry:ma,showConfirmationBillingList:A,submissionAction:u,submissionIndicatorOverride:oa})]})}e.displayName=e.name+" [from "+f.id+"]";m=c("withLWICometSpecPart")(e,function(a){return{adAccountData:a.adAccountData,assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,audienceData:a.audienceData,budget:a.budgetData.budget,budgetType:a.budgetData.budgetType,creative:a.adgroupSpecs[a.selectedAdgroupID].creative,currency:a.adAccountData.currency,durationInDays:a.durationInDays,goal:a.goal,objective:a.objective,regionalRegulatedCategories:a.regionalRegulatedCategories,regulatedCategories:a.regulatedCategories,specContext:a,specialAdCategoryCountries:a.specialAdCategoryCountries,startTime:a.startTime,taiwanFinservBeneficiary:a.taiwanFinservBeneficiary,taiwanFinservPayor:a.taiwanFinservPayor}});g["default"]=m}),226);
-----
BillingBalanceRow.react",["fbt","BillingBalanceRow_account.graphql","BillingCurrencyAmount","BillingSectionRow.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingBalanceRow_account.graphql");function a(a){var b=a.account,e=a.borderBottom;e=e===void 0?!1:e;a.inAddFundsFlow;a=a.marginBottom;a=a===void 0?0:a;var f=c("useBillingWizardComponents")(),g=f.Column;f=f.Text;b=d("RelayHooks").useFragment(l,b);b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.coupon_balance);var i=!(b==null?void 0:b.isZero());return k.jsx(k.Fragment,{children:i&&k.jsxs(c("BillingSectionRow.react"),{accessible:!0,borderBottom:e,columnSpacing:12,headline:h._("Ad credit"),marginBottom:a,children:[k.jsx(g,{children:k.jsx(f,{body:b==null?void 0:b.format()})}),k.jsx(g,{padding:"8-text",withBackground:!0,children:k.jsx(f,{level:4,meta:h._("Applied to balance first")})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingPayNowLandingView.react",["BillingBalanceRow.react","BillingCurrencyAmount","BillingNewPaymentMethodRow.react","BillingPayNowLandingView_account.graphql","BillingPayNowSelectAmountSection.react","BillingPaymentMethodRow.react","BillingRowContainer.react","BillingSelectAmountRow.react","RelayHooks","react","useBillingAggregatedStatementInfo"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingPayNowLandingView_account.graphql");function a(a){var b,e,f=a.account,g=a.onSelect,h=a.selectedID;a=a.selectedType;f=d("RelayHooks").useFragment(k,f);var i=c("useBillingAggregatedStatementInfo")(f==null?void 0:f.billing_payment_account);b=(b=f==null?void 0:f.account_status)!=null?b:"ACTIVE";var l=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f==null?void 0:f.account_balance);e=(e=f==null?void 0:(e=f.billable_account_tax_info)==null?void 0:e.business_country_code)!=null?e:"US";var m=f==null?void 0:f.billing_payment_account,n=!1;(l==null?void 0:l.isZero())&&b==="UNSETTLED"&&(n=!0);return j.jsxs(c("BillingRowContainer.react"),{children:[!(l==null?void 0:l.isZero())&&[i!=null||(f==null?void 0:f.is_on_flex_billing)===!0?j.jsx(c("BillingPayNowSelectAmountSection.react"),{account:f,aggregatedStatementInfo:i},"select-section"):j.jsx(c("BillingSelectAmountRow.react"),{account:f},"select-row"),j.jsx(c("BillingBalanceRow.react"),{account:f},"balance-row"),j.jsx(c("BillingPaymentMethodRow.react"),{blocklist:["EXTENDED_CREDIT"],data:m,entryPoint:"pay_now",onSelect:g,selectedID:h},"pm-row")],j.jsx(c("BillingNewPaymentMethodRow.react"),{account:m,blocklist:n?["FB_TOKEN"]:["EXTENDED_CREDIT","FB_TOKEN"],country:e,onSelect:g,selectedID:h,selectedType:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingPayNowOrSettleInitState",["BillingCurrencyAmount","BillingPayNowOrSettleInitStateQuery.graphql","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingPayNowOrSettleInitStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingBalanceRow_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingBalanceRow_account",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingPayNowLandingView_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingPayNowLandingView_account",selections:[{args:null,kind:"FragmentSpread",name:"BillingBalanceRow_account"},{args:null,kind:"FragmentSpread",name:"BillingPayNowSelectAmountSection_account"},{args:null,kind:"FragmentSpread",name:"BillingSelectAmountRow_account"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account_tax_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"business_country_code",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingPaymentMethodRow_data"},{args:null,kind:"FragmentSpread",name:"BillingNewPaymentMethodRow_data"},{args:null,kind:"FragmentSpread",name:"useBillingAggregatedStatementInfo_data"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"account_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_on_flex_billing",storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingPayNowOrSettleInitStateQuery.graphql",["BillingPayNowOrSettleInitStateQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],e=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:d,args:null,argumentDefinitions:[]}],f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPayNowOrSettleInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPayNowOrSettleInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[f,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:d,storageKey:null},g],storageKey:null},g],storageKey:null}]},params:{id:b("BillingPayNowOrSettleInitStateQuery_facebookRelayOperation"),metadata:{},name:"BillingPayNowOrSettleInitStateQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
useBillingHubPaymentDue",["BillingCurrencyAmount","RelayHooks","useBillingHubPaymentDue_billableAccount.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingHubPaymentDue_billableAccount.graphql");function a(a){var b;a=d("RelayHooks").useFragment(i,a);b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance))!=null?b:d("BillingCurrencyAmount").createZero((b=a==null?void 0:a.currency)!=null?b:"USD");var c=a==null?void 0:a.india_network_tokenization_migration_status;return!b.isZero()&&((a==null?void 0:a.billable_account_status)==="UNSETTLED"&&c!=="IN_PROGRESS"||(a==null?void 0:a.billable_account_status)==="IN_GRACE_PERIOD")}g["default"]=a}),98);
-----
BillingHubPaymentSettingsAdCreditsCard.react",["fbt","ix","BillingAdCreditConstants","BillingAdCreditUtils","BillingCurrencyAmount","BillingHubCard.react","BillingHubPaymentSettingsAdCreditExpandingSection.react","BillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql","CometRelay","GeoAccordionList.react","GeoAccordionListItem.react","GeoDivider.react","GeoList.react","GeoListItem.react","GeoSection.react","Image.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=j!==void 0?j:j=b("BillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql"),n={divider:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0}};function a(a){var b,e,f,g,j,k;a=a.account;a=d("CometRelay").useFragment(m,a);var o=l.jsx(c("Image.react"),{src:i("1507321")});b=d("BillingCurrencyAmount").createZero((b=a==null?void 0:a.currency)!=null?b:"USD");e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.coupon_balance))!=null?e:b;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_level_coupon_balance))!=null?f:b;g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.campaign_level_coupon_balance))!=null?g:b;b=d("BillingAdCreditUtils").useOrganizeAdCredits(a==null?void 0:a.billing_payment_account);j=(j=b==null?void 0:b.accountLevelCredits)!=null?j:[];k=(k=b==null?void 0:b.campaignLevelCredits)!=null?k:[];var p=j.length>0,q=k.length>0;b=((b=b==null?void 0:b.allAdCredits)!=null?b:[]).length>0;a=((a=a==null?void 0:(a=a.ad_campaign_groups)==null?void 0:a.count)!=null?a:0)>0;e=h._("{=m0}",[h._implicitParam("=m0",l.jsx("strong",{children:h._("{account ad credit balance}",[h._param("account ad credit balance",e==null?void 0:e.toLocaleString())])}))]);f=h._("Account credits: {=m2}",[h._implicitParam("=m2",l.jsx("strong",{children:h._("{account ad credit balance}",[h._param("account ad credit balance",f==null?void 0:f.toLocaleString())])}))]);g=h._("Campaign credits: {=m2}",[h._implicitParam("=m2",l.jsx("strong",{children:h._("{campaign ad credit balance}",[h._param("campaign ad credit balance",g==null?void 0:g.toLocaleString())])}))]);return b?l.jsx(c("BillingHubCard.react"),{pageComponentName:"ad_credits",title:c("BillingAdCreditConstants").title,children:l.jsx(c("GeoSection.react"),{children:p&&q?l.jsxs(c("GeoAccordionList.react"),{variant:"divided",children:[l.jsx(c("GeoAccordionListItem.react"),{item:l.jsx(c("GeoListItem.react"),{label:f,media:o}),children:l.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:j,hasCampaigns:a})}),l.jsx(c("GeoAccordionListItem.react"),{item:l.jsx(c("GeoListItem.react"),{label:g,media:o}),children:l.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:k,hasCampaigns:a})})]}):p?l.jsx(c("GeoAccordionList.react"),{variant:"flat",children:l.jsx(c("GeoAccordionListItem.react"),{item:l.jsx(c("GeoListItem.react"),{label:e,media:o}),children:l.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:j,hasCampaigns:a})})}):q?l.jsxs(l.Fragment,{children:[l.jsx(c("GeoList.react"),{children:l.jsx(c("GeoListItem.react"),{label:f,media:o})}),l.jsx(c("GeoDivider.react"),{xstyle:n.divider}),l.jsx(c("GeoAccordionList.react"),{variant:"flat",children:l.jsx(c("GeoAccordionListItem.react"),{item:l.jsx(c("GeoListItem.react"),{label:g,media:o}),children:l.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:k,hasCampaigns:a})})})]}):l.jsx(c("GeoList.react"),{variant:"default",children:l.jsx(c("GeoListItem.react"),{label:e,media:o})})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useBillingHubPaymentDue_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingHubPaymentDue_billableAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"india_network_tokenization_migration_status",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsAutoReloadSection.react",["fbt","BillingAutoReloadConstants","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubPaymentSettingsAutoReloadSection_billableAccount.graphql","BillingPaymentModeUtils","CometRelay","CometSwitch.react","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoLink.react","GeoSection.react","react","useBillingWizardForHub"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubPaymentSettingsAutoReloadSection_billableAccount.graphql"),m={marginBottom:{marginBottom:"x16pr9af",$$css:!0},marginLeft:{marginStart:"x15u6uln",marginLeft:null,marginRight:null,$$css:!0}};function a(a){var b,e,f,g,i;a=a.account;a=d("CometRelay").useFragment(l,a);b=(b=a==null?void 0:(b=a.billing_payment_account)==null?void 0:b.supports_recurring)!=null?b:[];var j=b.map(function(a){return n(a.credential)}).filter(function(a){return a!=null});e=n(a==null?void 0:(e=a.auto_reload_info)==null?void 0:e.auto_reload_credential);var o=null;e!=null&&j.includes(e)?o=e:j.length>0&&(o=j[0]);e=b.find(function(a){return n(a.credential)===o});b=e==null?void 0:(j=e.credential)==null?void 0:j.credential_type;e=e==null?void 0:(j=e.credential)==null?void 0:j.payment_provider;j=d("BillingPaymentModeUtils").supportsAutoReload((j=a==null?void 0:a.payment_modes)!=null?j:[])&&o!=null;f=(a==null?void 0:(f=a.auto_reload_info)==null?void 0:f.auto_reload_status)==="ENABLED";g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.auto_reload_info)==null?void 0:g.auto_reload_trigger_threshold);a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(a=a.auto_reload_info)==null?void 0:a.auto_reload_amount);var p=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();p=p.hasBillingWritePermission;var q=!f,r=c("useBillingWizardForHub")({paymentMethodID:o,paymentMethodType:(i=b)!=null?i:void 0,providerID:(i=e)!=null?i:void 0,shouldTurnOn:!0,wizardName:"AUTO_RELOAD"},{eventContext:"edit_auto_reload",targetName:"edit_auto_reload_button"}),s=c("useBillingWizardForHub")({paymentMethodID:o,paymentMethodType:(i=b)!=null?i:void 0,providerID:(b=e)!=null?b:void 0,shouldTurnOn:q,wizardName:"AUTO_RELOAD"},{eventContext:q?"enable_auto_reload":"disable_auto_reload",targetName:"toggle_auto_reload_button"});b=h._("Add {reload amount} when funds reach {reload threshold}. {link}",[h._param("reload amount",((i=a)!=null?i:"0").toString()),h._param("reload threshold",((e=g)!=null?e:"0").toString()),h._param("link",p?k.jsx(c("GeoLink.react"),{"data-testid":void 0,onClick:function(){return r()},children:h._("Edit")}):null)]);return!j?null:k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:[m.marginLeft,m.marginBottom],children:[k.jsxs(c("GeoFlexbox.react"),{alignItems:"start",direction:"column",justifyContent:"start",children:[k.jsx(c("GeoHeading.react"),{"data-testid":void 0,level:4,children:f?c("BillingAutoReloadConstants").autoReloadOnHeadline:c("BillingAutoReloadConstants").autoReloadOffHeadline}),k.jsx(c("GeoBaseText.react"),{color:"headingDescription","data-testid":void 0,size:"valueDescription",children:f?b:c("BillingAutoReloadConstants").autoReloadOffBody})]}),k.jsx(c("GeoHStack.react"),{justifyContent:"end",children:k.jsx(c("CometSwitch.react"),{"aria-label":h._("Toggle"),disabled:!p,onClick:function(){return s()},testid:void 0,value:f})})]})})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b;return(b=a==null?void 0:a.credential_id)!=null?b:a==null?void 0:a.id}g["default"]=a}),226);
-----
BillingHubPaymentSettingsAccountSpendLimitCard.react",["fbt","BillingAccountSpendLimitMonthUtils","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubCard.react","BillingHubCardLink.react","BillingHubCardTooltips","BillingHubPaymentSettingsAccountSpendLimitCardContent","BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql","BillingHubProgressBar.react","BillingHubTourContext","BillingHubWizardButton.react","BillingPaymentModeUtils","CometRelay","ContentRefComet","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoSection.react","GeoTextPairing.react","GeoVStack.react","geoMargin","react","requireDeferred","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useEffect,n=c("requireDeferred")("BillingHubPaymentSettingsAccountSpendLimitActionSheet.react").__setRef("BillingHubPaymentSettingsAccountSpendLimitCard.react"),o={endContent:{alignItems:"x6s0dn4",justifyContent:"x13a6bvl",minHeight:"xu0aao5",$$css:!0}},p=i!==void 0?i:i=b("BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql");function q(a){a=a.campaignType;return l.jsxs(c("GeoBaseText.react"),{color:"value",size:"value",children:[c("BillingHubPaymentSettingsAccountSpendLimitCardContent").about(a)," ",l.jsx(c("BillingHubCardLink.react"),{eventContext:"link_help_center",href:d("ContentRefComet").get("ABOUT_ACCOUNT_SPENDING_LIMITS","ADS_PAYMENT_SETTINGS"),pageComponentName:"account_spending_limit",text:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").learnMoreLabel})]})}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b,e,f,g;a=a.account;var i=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();i=i.hasBillingWritePermission;a=d("CometRelay").useFragment(p,a);var k=(a==null?void 0:a.is_using_biz_sb)||!1;b=d("BillingPaymentModeUtils").isPrepayOnlyAccount((b=a==null?void 0:a.payment_modes)!=null?b:[]);b=!b||k;k=d("BillingPaymentModeUtils").isNewUserAccount((k=a==null?void 0:a.payment_modes)!=null?k:[]);e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(e=a.spending_info)==null?void 0:e.spend_limit_currency_amount);f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(f=a.spending_info)==null?void 0:f.amount_spent_currency_amount);var r=a==null?void 0:a.asl_schedule_info;g=(g=r==null?void 0:r.reset_period)!=null?g:"LIFETIME";r=(r==null?void 0:r.initial_spend_limit_currency_amount)!=null;a=(a=a==null?void 0:a.ad_campaign_group_type)!=null?a:"ADS";if(f==null||e==null)a=l.jsx(q,{campaignType:a});else{var s=e.percentageOf(f),t=e.subtract(f),u=d("BillingAccountSpendLimitMonthUtils").getMonth(),v=d("BillingAccountSpendLimitMonthUtils").getFormattedFirstDayOfNextMonth();g==="MONTHLY"?h._("Your amount spent will automatically reset on {reset date}.",[h._param("reset date",v.toString())]):h._("If you reach the limit you set, your ads will be paused until you edit your limit or reset your amount spent. You can also set up automatic resets.");a=l.jsxs(c("GeoVStack.react"),{children:[l.jsx(c("GeoHeading.react"),{level:3,children:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").remainingAmount(t.toString())}),l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").top8),children:l.jsx(c("BillingHubProgressBar.react"),{bodyText:{limitAmount:r?h._("{spend limit} adjusted limit for {spend month}",[h._param("spend limit",e.toString()),h._param("spend month",u)]):h._("{spend limit} spending limit",[h._param("spend limit",e.toString())]),spendAmount:h._("{amount spent} spent",[h._param("amount spent",f.toString())])},percentFull:s})}),l.jsx("div",{className:j(c("geoMargin").top8),children:l.jsxs(c("GeoFlexbox.react"),{alignItems:"start",direction:"row",display:"flex",grow:1,wrap:"nowrap",children:[l.jsx(c("GeoTextPairing.react"),{description:"",heading:g==="MONTHLY"?h._("Resets: monthly"):h._("Resets: manually"),size:"header3"}),e!=null&&f!=null&&!f.isZero()?l.jsx(c("GeoHStack.react"),{shrink:0,xstyle:o.endContent,children:l.jsx(c("GeoFlexbox.react"),{children:l.jsx(c("BillingHubWizardButton.react"),{eventContext:"reset_spend_limit",label:h._("Reset now"),pageComponentName:"account_spending_limit",targetName:"reset_spend_limit_button",wizardProps:{wizardName:"RESET_SPEND"}})})}):null]})})]})}v=d("BillingHubTourContext").useBillingHubTourContext();t=v.getStep;var w=v.onUpdateSteps;m(function(){w([{shouldInclude:!0,tourStep:"PAYMENT_SETTINGS_SPEND_LIMIT"}]);return function(){return w([{shouldInclude:!1,tourStep:"PAYMENT_SETTINGS_SPEND_LIMIT"}])}},[w]);return k?null:i&&b?l.jsx(c("BillingHubCard.react"),{action:{label:"",popoverProps:{amountSpent:f,spendLimit:e},popoverResource:n},cardRef:(r=t("PAYMENT_SETTINGS_SPEND_LIMIT"))==null?void 0:r.props.contextRef,infoText:c("BillingHubCardTooltips").AccountSpendLimitCardTooltip,pageComponentName:"account_spending_limit",testid:void 0,title:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").title,children:l.jsx(c("GeoSection.react"),{children:a})}):l.jsx(c("BillingHubCard.react"),{cardRef:(u=t("PAYMENT_SETTINGS_SPEND_LIMIT"))==null?void 0:u.props.contextRef,pageComponentName:"account_spending_limit",testid:void 0,title:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").title,children:l.jsx(c("GeoSection.react"),{children:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubPaymentSettingsPaymentThresholdSection.react",["fbt","ix","BillingCurrencyAmount","BillingHubAmountDueCardContent","BillingHubBillableAccountContext","BillingHubPaymentSettingsPaymentThresholdSection_billableAccount.graphql","BillingPaymentModeUtils","GeoBaseInlinePressable.react","GeoBaseText.react","GeoColorSelectors","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoVStack.react","QE2Logger","RelayHooks","fbicon","formatDate","geoMargin","react","stylex","useBillingWizardForHub"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n={icon:{alignItems:"x6s0dn4",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",marginEnd:"x1emribx",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",position:"x1n2onr6",$$css:!0},paymentThresholdContainer:{borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",paddingStart:"x1swvt13",paddingLeft:null,paddingRight:null,paddingEnd:"x1pi30zi",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0}},o=d("GeoColorSelectors").selectStaticBackgroundColor({surface:"wash"}),p=d("GeoColorSelectors").selectStaticBackgroundColor({isMuted:!0,surface:"wash"}),q=j!==void 0?j:j=b("BillingHubPaymentSettingsPaymentThresholdSection_billableAccount.graphql");function r(a){var b=a.isDisabledAccount,e=a.paymentAccountID,f=a.showPaymentThresholdWizard;a=a.threshold;var g=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();g=g.hasBillingWritePermission;var j=c("useBillingWizardForHub")({wizardName:f?"PAYMENT_THRESHOLD":"MANAGE_BILLING_DATE_THRESHOLD"},{eventContext:"update_billing_threshold",targetName:"update_billing_threshold_button"});return m.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"center",children:[m.jsx("div",{className:(k||(k=c("stylex")))([n.icon,o]),children:m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("480632"),24)})},"dollarCircleIconWrapper"),m.jsxs("div",{className:"x78zum5 xdt5ytf",children:[m.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[m.jsx(c("GeoHeading.react"),{level:4,children:a}),!b&&g&&m.jsx("div",{className:"x9otpla x1n0m28w x1wsgfga xp7jhwk",children:m.jsx(c("GeoBaseInlinePressable.react"),{"aria-label":h._("Edit"),density:"fine",onPress:function(){d("QE2Logger").logExposureForPaymentAccountID("billing_payment_threshold_wizard_universe",e),j()},variant:"flat",children:m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("477824"),12)})})},"pencilIconWrapper")]}),m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingHubAmountDueCardContent").paymentThreshold})]},"paymentThresholdSubsectionDetailsWrapper")]})}r.displayName=r.name+" [from "+f.id+"]";function s(){return m.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf",children:[m.jsx("div",{className:"x14nfmen xlup9mm x1i1rx1s"},"paymentThresholdLineDividerTop"),m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingHubAmountDueCardContent").and}),m.jsx("div",{className:"x14nfmen xlup9mm x1i1rx1s"},"paymentThresholdLineDividerBottom")]},"paymentThresholdDivider")}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.nextBillDate;a=a.typename;b=new Date(parseInt(b,10)*1e3);b=c("formatDate")(b,"M j, Y");a=m.jsxs("div",{className:a==="CAMBillableAccount"?"x78zum5 xdt5ytf":void 0,children:[m.jsx(c("GeoHeading.react"),{level:4,children:b}),m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingHubAmountDueCardContent").billingDate})]},"paymentThresholdBillingDateWrapper");return m.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"center",children:[m.jsx("div",{className:(k||(k=c("stylex")))([n.icon,o]),children:m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("481130"),24)})},"calendarIconWrapper"),a]})}t.displayName=t.name+" [from "+f.id+"]";function a(a){var b,e,f,g;a=a.account;a=d("RelayHooks").useFragment(q,a);b=(b=a==null?void 0:a.currency)!=null?b:"USD";e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.billing_threshold_currency_amount))!=null?e:d("BillingCurrencyAmount").createZero(b);b=a==null?void 0:a.next_bill_date;f=(f=a==null?void 0:a.alternate_payment_threshold_wizard)!=null?f:!1;var h=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),i=h.creditLineType;h=h.layout;g=d("BillingPaymentModeUtils").isPrepayOnlyAccount((g=a==null?void 0:a.payment_modes)!=null?g:[]);h=h==="CREATOR_MARKETPLACE";return b!=null&&i===null&&!g&&!h?m.jsxs(c("GeoVStack.react"),{xstyle:c("geoMargin").top16,children:[m.jsx(c("GeoHeading.react"),{level:4,children:c("BillingHubAmountDueCardContent").whenYouWillPay}),m.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"space-around",xstyle:[p,n.paymentThresholdContainer],children:[m.jsxs(m.Fragment,{children:[m.jsx(r,{isDisabledAccount:(a==null?void 0:a.account_status)==="DISABLED",paymentAccountID:(a==null?void 0:a.legacy_account_id)||"",showPaymentThresholdWizard:f,threshold:e==null?void 0:e.toString()}),m.jsx(s,{})]}),m.jsx(t,{nextBillDate:b,typename:a==null?void 0:a.__typename})]})]}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubPaymentSettingsRecurringDetailsSection.react",["fbt","BillingCurrencyAmount","BillingHubManageSubscriptionButton.react","BillingHubPaymentSettingsRecurringDetailsSection_billableAccount.graphql","BillingHubPaymentsSettingsRecurringSubscriptionCardConstants","BillingHubSurfaceContext","CometRelay","GeoBaseText.react","GeoDataText.react","GeoHStack.react","GeoSection.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=i!==void 0?i:i=b("BillingHubPaymentSettingsRecurringDetailsSection_billableAccount.graphql");function a(a){var b;a=a.account;a=d("CometRelay").useFragment(l,a);a=(a=a==null?void 0:a.subscription_details[0])!=null?a:null;b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.local_price))!=null?b:d("BillingCurrencyAmount").createZero("USD");a=a==null?void 0:a.expiration_date;var e=d("BillingHubSurfaceContext").useBillingHubSurfaceContext();e=e.businessID;e=k.jsx(c("BillingHubManageSubscriptionButton.react"),{businessID:e,entrypointRef:"billing_hub_payment_settings",variant:"default"});return k.jsx(c("GeoSection.react"),{children:k.jsxs("div",{children:[k.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",children:[k.jsxs(c("GeoHStack.react"),{alignItems:"baseline",justifyContent:"start",children:[k.jsx(c("GeoDataText.react"),{children:b.toString()}),k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:h._("+ tax")})]}),e]}),a!=null&&k.jsx(c("GeoHStack.react"),{justifyContent:"space-between",children:k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:c("BillingHubPaymentsSettingsRecurringSubscriptionCardConstants").renewalDateMessage(a)})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsAdCreditsCard_billableAccount",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"campaign_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingAdCreditUtils"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsAutoReloadSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],b={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},c={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsAutoReloadSection_billableAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"auto_reload_status",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"auto_reload_credential",plural:!1,selections:[b,c],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"supports_recurring",args:[{kind:"Literal",name:"filter",value:"SUPPORTS_RECURRING"},{kind:"Literal",name:"usability_params",value:{intent:"AUTO_RELOAD"}}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[b,{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},c,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_provider",storageKey:null}],type:"LPMCredential",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(filter:"SUPPORTS_RECURRING",usability_params:{"intent":"AUTO_RELOAD"})"}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount",selections:[{alias:null,args:null,concreteType:"AdAccountASLScheduleInfo",kind:"LinkedField",name:"asl_schedule_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"reset_period",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"initial_spend_limit_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_using_biz_sb",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"ad_campaign_group_type",storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsPaymentThresholdSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsPaymentThresholdSection_billableAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"account_status",storageKey:null}],type:"AdAccount",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_bill_date",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:"alternate_payment_threshold_wizard",args:[{kind:"Literal",name:"disable_auto_exposure_logging",value:!0},{kind:"Literal",name:"param",value:"alternate_payment_threshold_wizard"},{kind:"Literal",name:"qe_universe",value:"billing_payment_threshold_wizard_universe"}],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(disable_auto_exposure_logging:true,param:"alternate_payment_threshold_wizard",qe_universe:"billing_payment_threshold_wizard_universe")"}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsRecurringDetailsSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsRecurringDetailsSection_billableAccount",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subscription_details",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"expiration_date",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"local_price",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
PolarisBoostDefaultValues.react",["BillingCurrencyAmount","PolarisBoostAudienceDetailStrings","PolarisBoostDurationType","PolarisBoostInstagramPositions.entrypointutils","PolarisBoostSummaryScreenStrings"],(function(a,b,c,d,e,f,g){"use strict";var h;b=d("PolarisBoostAudienceDetailStrings").SUGGESTED_AUDIENCE_DETAILS.toString();e="USD";f=100;var i=[(h=d("BillingCurrencyAmount")).getFromUserInput("1",e),h.getFromUserInput("1000",e)],j=h.getFromUserInput("1",e),k=Array.from({length:30},function(a,b){return b+1}),l=1,m="VIEW_INSTAGRAM_PROFILE",n="LEARN_MORE",o="PROFILE_VISITS";h=h.createZero(e);var p="default_context_flow_id",q="default_context_entrypoint",r=[{amount:h,taxName:d("PolarisBoostSummaryScreenStrings").SUMMARY_SCREEN_EST_TAX.toString(),taxRate:null}];function s(a){return d("BillingCurrencyAmount").createZero(a)}function a(a){if(a==null||a==="")return r;else return[{amount:s(a),taxName:d("PolarisBoostSummaryScreenStrings").SUMMARY_SCREEN_EST_TAX.toString(),taxRate:null}]}var t="",u=0,v=0,w=["NONE"],x=18,y=65,z={audienceCode:"IG_PROMOTED_POST_AUTO",audienceID:null,displayName:"Automatic",geoLocations:null,interests:null,maxAge:y,minAge:x,targetGenders:"ALL",targetRelaxOption:"NONE",targetSpec:null},A=5,B={country_code:null,display_name:"",key:"",latitude:0,location_type:"CUSTOM_LOCATION",longitude:0,primary_city_key:null,radius:A,region_key:null},C="NONE",D={is_eligible:!1,should_log_exposure:!1};g.DEFAULT_AUDIENCE_DETAILS=b;g.DEFAULT_CURRENCY=e;g.DEFAULT_CURRENCY_OFFSET=f;g.DEFAULT_DAILY_BUDGET_OPTIONS=i;g.DEFAULT_DAILY_BUDGET=j;g.DEFAULT_DURATION_IN_DAYS_OPTIONS=k;g.DEFAULT_DURATION_IN_DAYS=l;g.DEFAULT_CTA=m;g.DEFAULT_WEBSITE_CTA=n;g.DEFAULT_GOAL=o;g.DEFAULT_PREVIEW_TYPE=d("PolarisBoostInstagramPositions.entrypointutils").EligibleIGPosition.STORY;g.DEFAULT_DURATION_TYPE=c("PolarisBoostDurationType").SET_DURATION;g.ZERO_CURRENCY=h;g.DEFAULT_CONTEXT_FLOW_ID=p;g.DEFAULT_CONTEXT_ENTRYPOINT=q;g.DEFAULT_TAXES=r;g.getDefaultTaxes=a;g.DEFAULT_USERNAME=t;g.DEFAULT_ESTIMATED_REACH_LOWER_BOUND=u;g.DEFAULT_ESTIMATED_REACH_UPPER_BOUND=v;g.DEFAULT_REGULATED_CATEGORIES=w;g.DEFAULT_MIN_AGE=x;g.DEFAULT_MAX_AGE=y;g.DEFAULT_AUDIENCE=z;g.DEFAULT_CUSTOM_LOCATION_RADIUS=A;g.DEFAULT_CUSTOM_LOCATION=B;g.DEFAULT_AUTHORIZATION_CATEGORY=C;g.DEFAULT_GRADUATION_CREATION_PACKAGE_INFO=D}),98);
-----
BillingPrepayUtils",["fbt","AdsCurrencyFormatter","BillingCurrencyAmount","BillingPrepayUtilsCreateStoredBalanceMutation.graphql","intlNumUtils","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i!==void 0?i:i=b("BillingPrepayUtilsCreateStoredBalanceMutation.graphql");function a(a,c,d,e){var f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:f={logging_data:c.getLoggingData(),payment_account_id:a,upl_logging_data:babelHelpers["extends"]({},d==null?void 0:d.getLoggingData("BillingPrepayUtilsCreateStoredBalanceMutation"))};g.next=3;return b("regeneratorRuntime").awrap(e({mutation:j,mutationName:j.params.name,variables:{input:f}},{event_context:"create_stored_balance"}));case 3:case"end":return g.stop()}},null,this)}function k(a,b,c){var d=null;b==null||c==null?c==null&&b!=null&&a.compare(b)>0?d=h._("Please enter an amount that is less than or equal to {payment amount}.",[h._param("payment amount",b.toString())]):b==null&&c!=null&&a.compare(c)<0&&(d=h._("Please enter an amount that is greater than or equal to {payment amount}.",[h._param("payment amount",c.toString())])):b.compare(c)<0?d=h._("Your prepaid balance is full and you can"t add funds."):(a.compare(b)>0||a.compare(c)<0)&&(d=h._("Enter amount between {min amount} and {max amount}.",[h._param("min amount",c.toString()),h._param("max amount",b.toString())]));return d}function l(a){var b=d("intlNumUtils").parseNumber(a);b==null?!isNaN(a)?b=parseFloat(a):b=0:!isNaN(a)&&d("intlNumUtils").formatNumberWithThousandDelimiters(b)!==a&&(b=parseFloat(a));a=d("intlNumUtils").formatNumberWithThousandDelimiters(b);return a}function c(a,b){a=l(a);b=d("AdsCurrencyFormatter").parsePECurrency(b,a);return b}function e(a,b,c,d){d.logDebug({gapAmount:(d=c==null?void 0:c.compare(a))!=null?d:"null",maxAmount:(d=c==null?void 0:c.toString())!=null?d:"null",minAmount:(d=b==null?void 0:b.toString())!=null?d:"null",userAmount:a.toString()});a.isZero()?d=h._("{invalid amount} is an invalid amount.",[h._param("invalid amount",a.toString())]):d=k(a,c,b);return d}function f(a,b){b.logDebug({userAmount:a.toString()});b=null;a.compare(d("BillingCurrencyAmount").createZero(a.currency))<0&&(b=h._("{invalid amount} is an invalid amount.",[h._param("invalid amount",a.toString())]));return b}g.createStoredBalance=a;g.isAmountOutsideOfLimit=k;g.getAmountToAdd=c;g.validateAmount=e;g.validateAmountForReloadThreshold=f}),226);
-----
BillingSelectAmountRow.react",["fbt","BillingBalanceSectionConstants","BillingCurrencyAmount","BillingFormContext","BillingFormTextInput.react","BillingSectionRow.react","BillingSelectAmountRow_account.graphql","BillingWizardQEContext","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("BillingSelectAmountRow_account.graphql");function a(a){var b=a.account,e=a.borderBottom;e=e===void 0?!1:e;var f=a.inAddFundsFlow,g=f===void 0?!1:f;f=a.isInputFocused;var i=f===void 0?!1:f;f=a.marginBottom;f=f===void 0?0:f;var j=a.maxAmount,o=a.minAmount,p=a.newPrepaidBalance,q=a.selectedButton,r=a.setIsInputFocused,s=a.showPrepayOptionsText,t=s===void 0?!1:s;s=a.specificPM;var u=a.surface;a=c("useBillingWizardComponents")();var v=a.DisabledInput;a=a.Link;var w=d("RelayHooks").useFragment(n,b),x=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(w==null?void 0:w.account_balance))!=null?b:d("BillingCurrencyAmount").createZero((b=w==null?void 0:w.currency)!=null?b:"USD"),y=p!=null?p:"0",z=g?t===!0&&q!=null?c("BillingBalanceSectionConstants").chooseAmountHeadline:s==null?c("BillingBalanceSectionConstants").prepayHeadline:c("BillingBalanceSectionConstants").prepayHeadlineSpecificPM(s):c("BillingBalanceSectionConstants").paynowHeadline,A=d("BillingWizardQEContext").useBillingQE();b=A.billing_content_experiment_h2_2024.update_prepaid_funds_v1.read();p=A.billing_add_pm_add_funds_sm_sla_2024h1.add_pm_add_funds_sm_sla_updates_dev.read();s=s==null?void 0:c("BillingBalanceSectionConstants").prepayBodySpecificPM(a,b);var B=(w==null?void 0:w.__typename)==="ScimCompany",C=function(){if(j==null||o==null){if(j!=null)return c("BillingBalanceSectionConstants").otherAmountMaxOnlyDescription({amt:j.toString()});else if(o!=null)return c("BillingBalanceSectionConstants").otherAmountMinOnlyDescription({amt:o.toString()})}else return c("BillingBalanceSectionConstants").otherAmountDescription({maxAmt:j.toString(),minAmt:o.toString()})};a=function(){if(!g)return null;if(t){if(i)return C();if(u==="ads_creation_billing_info"||u==="ads_creation_required_action")switch(q){case"button_one":return c("BillingBalanceSectionConstants").totalBoostBudgetDescription;case"button_two":return c("BillingBalanceSectionConstants").minimumBoostAmount;case"button_three":return C()}else if(u==="payment_settings")switch(q){case"button_one":return c("BillingBalanceSectionConstants").totalBudgetAmountDescription;case"button_two":return c("BillingBalanceSectionConstants").estimatedWeeklySpendAmountDescription;case"button_three":return C()}}else return A.billing_add_pm_add_funds_sm_sla_2024h1.add_pm_add_funds_sm_sla_updates_dev.read()?c("BillingBalanceSectionConstants").qeNewPrepaidBalanceBody(y):c("BillingBalanceSectionConstants").newPrepaidBalanceBody(y)};var D=A.billing_muf_pay_now_2024h1.pay_now_muf_updates_dev.read();b=d("BillingFormContext").useBillingFormField("amount");var E=b.error,F=b.touched,G=b.value;b=m();var H=b[0],I=b[1];l(function(){if(!B&&z===c("BillingBalanceSectionConstants").paynowHeadline&&D){var a,b=h._("Your ads will start running again once you"ve paid your current balance.");a=d("BillingCurrencyAmount").getFromUserInput((a=G)!=null?a:"0",(a=w==null?void 0:w.currency)!=null?a:"USD");F&&E==null&&a.compare(x)<0?I(b):I()}},[E,F,G,x,w==null?void 0:w.currency,z,B,D]);b=D?c("BillingBalanceSectionConstants").currentBalanceNew:c("BillingBalanceSectionConstants").totalAmountDue;var J=D?c("BillingBalanceSectionConstants").paymentAmount:c("BillingBalanceSectionConstants").amount;return B?k.jsx(c("BillingSectionRow.react"),{body:s,borderBottom:e,columnSpacing:8,headline:z,marginBottom:f,children:!g&&k.jsx(v,{fieldSize:6,label:c("BillingBalanceSectionConstants").totalAmountOverdue,marginBottom:8,mobileFieldSize:12,value:x.format()})}):k.jsxs(c("BillingSectionRow.react"),{body:s,borderBottom:e,columnSpacing:8,headline:z,marginBottom:f,meta:H,children:[!g&&k.jsx(v,{fieldSize:6,label:b,marginBottom:8,mobileFieldSize:12,value:x.format()}),k.jsx(c("BillingFormTextInput.react"),{fieldSize:p?12:6,helperText:a(),label:J,marginBottom:g&&t?0:8,name:"amount",onFocus:function(){r&&r(!0)},testid:void 0})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingSelectAmountRow_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingSelectAmountRow_account",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
useBillingAddFunds",["fbt","BillingCurrencyAmount","BillingError","BillingPrepayUtils","RelayHooks","react","regeneratorRuntime","useBillableAccountBalance","useBillingAddFunds_account.graphql","useBillingAddFunds_prepayDetails.graphql","useBillingAddFunds_storedBalance.graphql","useBillingLogger","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l;e=l||d("react");var m=e.useCallback,n=e.useMemo,o=e.useState,p=i!==void 0?i:i=b("useBillingAddFunds_prepayDetails.graphql"),q=j!==void 0?j:j=b("useBillingAddFunds_account.graphql"),r=k!==void 0?k:k=b("useBillingAddFunds_storedBalance.graphql");function s(a,b,c,d){var e;e=((e=a==null?void 0:a.billing_payment_methods)!=null?e:[]).map(function(a){return a==null?void 0:a.credential}).filter(Boolean);a=((a=a==null?void 0:a.billing_payment_method_options)!=null?a:[]).filter(Boolean);e=e.find(function(a){return a.credential_id===b&&a.credential_type===c});if(e!=null)return e.prepay_funding_details;e=a.find(function(a){return a.credential_id===b&&a.payment_method_type===d});return e!=null?e.prepay_funding_details:null}function a(a,e,f,g,i,j,k,l,t,u,v,w){var x;a=d("RelayHooks").useFragment(q,a);k=d("RelayHooks").useFragment(r,k);var y=c("useBillingLogger")(),z=c("useBillingWizardUPLogger")(),A=s(a,g,i,j);A=d("RelayHooks").useFragment(p,A);var B=(x=(x=a==null?void 0:(x=a.billable_account)==null?void 0:x.currency)!=null?x:k==null?void 0:(x=k.balance_amount)==null?void 0:x.currency)!=null?x:"USD";x=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((x=A)==null?void 0:x.default_funding_amount);z==null?void 0:z.appendMetadataIfNotNull({currency:B});z=c("useBillableAccountBalance")(a==null?void 0:a.billable_account);var C=z.balance;z=z.isStoredBalance;z=z?C:d("BillingCurrencyAmount").createZero(B);if(k!=null){z=(C=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(k==null?void 0:k.balance_amount))!=null?C:d("BillingCurrencyAmount").createZero(B)}k=function(a){return a.compare(E)>=0&&a.compare(D)<=0};var D=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((C=A)==null?void 0:C.max_acceptable_amount),E=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((C=A)==null?void 0:C.min_acceptable_amount);C=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(A=a.billable_account)==null?void 0:A.total_daily_plus_remaining_lifetime_budgets);A=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(A=a.billable_account)==null?void 0:A.last_7_day_spend);var F=x;u===!0&&(v==="ads_creation_billing_info"||v==="ads_creation_required_action"?t!=null&&k(t)&&(F=t):v==="payment_settings"&&(C!=null&&k(C)?F=C:A!=null&&k(A)&&(F=A)));F===x&&f!=null&&(F=f);k=(a==null?void 0:(u=a.billable_account)==null?void 0:u.application_type)==="WHATSAPP_SMB"&&(a==null?void 0:(t=a.billable_account)==null?void 0:t.waba_mm_limit_overfund)===!0&&(a==null?void 0:(v=a.billable_account)==null?void 0:(C=v.billable_account_tax_info)==null?void 0:C.business_country_code)==="ID";k===!0&&(D=F);f=o((x=(A=F)==null?void 0:A.format({showSymbol:!1}))!=null?x:"0");u=f[0];var G=f[1];t=z.add(d("BillingCurrencyAmount").getFromUserInput(u,B));a=m(function(a){var f;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:if(!(i==null)){k.next=2;break}throw new(c("BillingError"))("useBillingAddFunds selected type is null","Invalid payment method type",{event_action:"submit",event_context:"add_funds",event_side:"client_side"},{action:"verify"},"critical_error",{description:h._("Please select a valid payment method to proceed").toString(),summary:h._("No payment method selected").toString()});case 2:if(!(i==="FB_TOKEN")){k.next=7;break}k.next=5;return b("regeneratorRuntime").awrap(e(g,i));case 5:k.next=10;break;case 7:f=d("BillingCurrencyAmount").getFromUserInput(a.amount,B);k.next=10;return b("regeneratorRuntime").awrap(e(g,i,f,j,l,w));case 10:case"end":return k.stop()}},null,this)},[i,e,g,B,j,l,w]);v=n(function(){var a;return{amount:{defaultValue:(a=(a=F)==null?void 0:a.format({showSymbol:!1}))!=null?a:"0",isSensitive:!1,onBlur:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,B);return a.format({showSymbol:!1})},onChange:function(a){G(a);return{amount:a}},required:!0,uplFieldKey:"payment_amount",validate:function(a){if(i!=="FB_TOKEN"){a=d("BillingCurrencyAmount").getFromUserInput(a,B);a=d("BillingPrepayUtils").validateAmount(a,E,D,y);if(a!=null)return{message:a,validationState:"ERROR"}}}}}},[F,i,B,E,D,y]);return{fields:v,maxAmount:D,minAmount:E,newPrepaidBalance:t,onSubmit:a}}g["default"]=a}),226);
-----
BillingAddFundsState",["fbt","BillingAddFundsStateMutation.graphql","BillingAddFundsStateQuery.graphql","BillingCurrencyAmount","BillingExternalSitePaymentStepUtils","BillingPaymentModeUtils","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i!==void 0?i:i=b("BillingAddFundsStateQuery.graphql"),l=j!==void 0?j:j=b("BillingAddFundsStateMutation.graphql");function aa(a){return a==="NEW_DIRECT_DEBIT"||a==="DIRECT_DEBIT"?"DIRECT_DEBIT":"CC"}a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingAddFundsInitState",["BillingAddFundsInitStateQuery.graphql","BillingCurrencyAmount","BillingError","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingAddFundsInitStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
useBillingAddFunds_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],c={kind:"Variable",name:"entry_point",variableName:"billingEntryPoint"},d={kind:"Variable",name:"currency",variableName:"currency"},e={kind:"Variable",name:"intent",variableName:"intent"},f={alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},g={alias:null,args:[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},{kind:"Variable",name:"stored_balance_id",variableName:"sharedStoredBalanceID"}],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_funding_details",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useBillingAddFunds_prepayDetails"}],storageKey:null};return{argumentDefinitions:[{kind:"RootArgument",name:"billingEntryPoint"},{kind:"RootArgument",name:"country"},{kind:"RootArgument",name:"currency"},{kind:"RootArgument",name:"intent"},{kind:"RootArgument",name:"paymentAccountID"},{kind:"RootArgument",name:"sharedStoredBalanceID"}],kind:"Fragment",metadata:null,name:"useBillingAddFunds_account",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"application_type",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account_tax_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"business_country_code",storageKey:null}],storageKey:null},a,{alias:"waba_mm_limit_overfund",args:[{kind:"Literal",name:"gk_name",value:"WABA_MM_LIMIT_OVERFUND"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"WABA_MM_LIMIT_OVERFUND")"},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_daily_plus_remaining_lifetime_budgets",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"last_7_day_spend",plural:!1,selections:b,storageKey:null}],type:"AdAccount",abstractKey:null},{args:null,kind:"FragmentSpread",name:"useBillableAccountBalance_billingAccount"}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"allowlist",value:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION","UNVERIFIABLE"]},c,{fields:[d,e,{kind:"Variable",name:"tax_country",variableName:"country"}],kind:"ObjectValue",name:"usability_params"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{kind:"InlineFragment",selections:[f,{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},g],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"country",variableName:"country"},d,c,e],concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[{kind:"InlineFragment",selections:[g],type:"AdAccountNewCreditCardOption",abstractKey:null},{kind:"InlineFragment",selections:[f,{alias:null,args:null,kind:"ScalarField",name:"payment_method_type",storageKey:null},g],type:"AdAccountAltpayOption",abstractKey:null}],storageKey:null}],type:"PaymentAccount",abstractKey:"__isPaymentAccount"}}();e.exports=a}),null);
-----
BillingAddFundsStateMutation.graphql",["BillingAddFundsStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},f={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},g={alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"auto_reload_status",storageKey:null}],storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"charged_payment_method_id",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"payment_id",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"result",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"async_payment_status_ent_id",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"external_uri",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"needs_await_completion",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"nonce",storageKey:null},r={alias:null,args:null,concreteType:"IframeBrokeredPaymentURLParams",kind:"LinkedField",name:"params",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},s=[h,i];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPrepayAddFundsResponsePayload",kind:"LinkedField",name:"billable_account_prepay_add_funds",plural:!1,selections:[d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useBillableAccountBalance_billingAccount"},e,f,g,h,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[i,h],args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null},j,k,l,m,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"BillingExternalSitePaymentStepUtils_ExternalSitePaymentStep",selections:[{kind:"InlineFragment",selections:[d,n,o,p,q,r],type:"ExternalSitePaymentStep",abstractKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPrepayAddFundsResponsePayload",kind:"LinkedField",name:"billable_account_prepay_add_funds",plural:!1,selections:[d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{kind:"TypeDiscriminator",abstractKey:"__isBillableAccount"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:s,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance_with_tax",plural:!1,selections:s,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:s,storageKey:null},{alias:null,args:[{kind:"Literal",name:"exclude_coupons",value:!0}],concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_delivery_remaining",plural:!1,selections:s,storageKey:"prepay_delivery_remaining(exclude_coupons:true)"},h,f,e,g,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},j,k,l,m,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[d,{kind:"InlineFragment",selections:[n,o,p,q,r],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingAddFundsStateMutation_facebookRelayOperation"),metadata:{},name:"BillingAddFundsStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingAddFundsInitStateQuery.graphql",["BillingAddFundsInitStateQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"business_country_code",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},g=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},f],h=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:g,args:null,argumentDefinitions:[]}],i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};f={alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[i,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[f],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAddFundsInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"tax_info",plural:!1,selections:[e],storageKey:null}],type:"BusinessPaymentAccount",abstractKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:h,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:h,storageKey:null}],storageKey:null},f],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAddFundsInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"tax_info",plural:!1,selections:[d,e],storageKey:null}],type:"BusinessPaymentAccount",abstractKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:g,storageKey:null},i],storageKey:null},f,i],storageKey:null}]},params:{id:b("BillingAddFundsInitStateQuery_facebookRelayOperation"),metadata:{},name:"BillingAddFundsInitStateQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
useBillingAddFunds_prepayDetails.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingAddFunds_prepayDetails",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:a,storageKey:null}],type:"AdAccountPrepayDetail",abstractKey:null}}();e.exports=a}),null);
-----
useBillingAddFunds_storedBalance.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingAddFunds_storedBalance",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[a,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}}();e.exports=a}),null);
-----
BillingSelectPresetAmountRow_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingSelectPresetAmountRow_account",selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"last_7_day_spend",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_daily_plus_remaining_lifetime_budgets",plural:!1,selections:a,storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingPaymentAccountAddFundsStateMutation.graphql",["BillingPaymentAccountAddFundsStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"payment_item_type",storageKey:null},e={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"charged_payment_method_id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"payment_id",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"result",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"external_uri",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"nonce",storageKey:null},o={alias:null,args:null,concreteType:"IframeBrokeredPaymentURLParams",kind:"LinkedField",name:"params",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPaymentAccountAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"AddFundsResponsePayload",kind:"LinkedField",name:"payment_account_add_funds",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,e],storageKey:null},{alias:null,args:null,concreteType:"StoredBalance",kind:"LinkedField",name:"stored_balance",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"balance",plural:!1,selections:[f,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[g,f],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},h,i,j,k,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[{kind:"InlineFragment",selections:[l,m,n,o],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPaymentAccountAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"AddFundsResponsePayload",kind:"LinkedField",name:"payment_account_add_funds",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[l,d,e,p],storageKey:null},{alias:null,args:null,concreteType:"StoredBalance",kind:"LinkedField",name:"stored_balance",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"balance",plural:!1,selections:[f,g],storageKey:null},p],storageKey:null},h,i,j,k,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[l,{kind:"InlineFragment",selections:[m,n,o],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingPaymentAccountAddFundsStateMutation_facebookRelayOperation"),metadata:{},name:"BillingPaymentAccountAddFundsStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingSelectPresetAmountRow.react",["BillingBalanceSectionConstants","BillingCurrencyAmount","BillingFormContext","BillingSelectPresetAmountRow_account.graphql","RelayHooks","react","useBillingWizardComponents","useBillingWizardUPLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useState,m=h!==void 0?h:h=b("BillingSelectPresetAmountRow_account.graphql");function a(a){var b=a.account,e=a.fullBudgetPaymentAmount,f=a.isInputFocused,g=a.maxAmount,h=a.minAmount,i=a.selectedButton,n=a.setIsInputFocused,o=a.setSelectedButton,p=a.surface,q=d("RelayHooks").useFragment(m,b);a=c("useBillingWizardComponents")();b=a.Button;var r=a.Column;a=a.Row;var s=d("BillingFormContext").useBillingFormField("amount"),t=s.onChange,u=c("useBillingWizardUPLogger")();s=l(null);var v=s[0],w=s[1];s=l(null);var x=s[0],y=s[1],z=function(a){return a.compare(h)>=0&&a.compare(g)<=0},A=function(a){if(e!=null&&z(e)){v==null&&w(e);return e.format({showDecimals:!0,showSymbol:a})}return""},B=function(a){if(e!=null){var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q==null?void 0:q.prepay_balance);if(b==null||b.isZero())return"";if(e.compare(b)<=0)return"";b=e.subtract(b);if(z(b)){x==null&&y(b);return b.format({showDecimals:!0,showSymbol:a})}}return""},C=function(a){var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q==null?void 0:q.total_daily_plus_remaining_lifetime_budgets);if(b!=null&&z(b)){v==null&&w(b);return b.format({showDecimals:!0,showSymbol:a})}return""},D=function(a){if((q==null?void 0:q.last_7_day_spend)!=null){var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q.last_7_day_spend);if(b!=null&&z(b)){x==null&&y(b);return b.format({showDecimals:!0,showSymbol:a})}}return""},E=function(a){if(p==="ads_creation_billing_info"||p==="ads_creation_required_action")return A(a);else if(p==="payment_settings")return C(a);return""},F=function(a){if(p==="ads_creation_billing_info"||p==="ads_creation_required_action")return B(a);else if(p==="payment_settings")return D(a);return""},G=function(){var a;u==null?void 0:u.logClickEvent("add_funds_preset_amounts",{cta_amount:(a=v==null?void 0:v.getAmountWithPEOffset())!=null?a:"",cta_currency:(a=v==null?void 0:v.currency)!=null?a:"",cta_type:p==="payment_settings"?"total_campaign_budget":"total_boost_budget",surface:String(p)})},H=function(){var a;u==null?void 0:u.logClickEvent("add_funds_preset_amounts",{cta_amount:(a=x==null?void 0:x.getAmountWithPEOffset())!=null?a:"",cta_currency:(a=x==null?void 0:x.currency)!=null?a:"",cta_type:p==="payment_settings"?"run_rate":"minimum_boost_amount",surface:String(p)})},I=function(a){o(a);switch(a){case"button_one":t(E(!1));n(!1);G();break;case"button_two":t(F(!1));n(!1);H();break;case"button_three":t("");u==null?void 0:u.logClickEvent("add_funds_preset_amounts",{cta_amount:"other",cta_currency:(a=v==null?void 0:v.currency)!=null?a:"",cta_type:"custom",surface:String(p)});break}};k(function(){E(!0)===""&&F(!0)===""?o(null):E(!0)===""?(o("button_two"),H()):G()},[]);k(function(){f&&o("button_three")},[f,o]);return j.jsxs(a,{align:"start",columnSpacing:8,justify:"start",marginBottom:8,children:[E(!0)!==""&&j.jsx(r,{children:j.jsx(b,{label:E(!0),onPress:function(){I("button_one")},reduceEmphasis:i==="button_one",type:i==="button_one"?"primary":"secondary"})}),F(!0)!==""&&j.jsx(r,{children:j.jsx(b,{label:F(!0),onPress:function(){I("button_two")},reduceEmphasis:i==="button_two",type:i==="button_two"?"primary":"secondary"})}),(E(!0)!==""||F(!0)!=="")&&j.jsx(r,{children:j.jsx(b,{label:c("BillingBalanceSectionConstants").otherAmount,onPress:function(){I("button_three")},reduceEmphasis:i==="button_three",type:i==="button_three"?"primary":"secondary"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PolarisBoostBudgetAndDurationUtils",["BillingCurrencyAmount","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostDefaultValues.react","PolarisBoostDurationType","polarisFormatDate","qex"],(function(a,b,c,d,e,f,g){"use strict";var h=60*60*24*1e3,i="D",j="M j",k="g:i A";function a(a){var b=new Date(),c=new Date(Date.now()+h),e=l(a);b=l(b);c=l(c);switch(e){case b:return d("PolarisBoostBudgetAndDurationScreenStrings").getAdScheduledDateTimeTodayText(a);case c:return d("PolarisBoostBudgetAndDurationScreenStrings").getAdScheduledDateTimeTomorrowText(a);default:return d("PolarisBoostBudgetAndDurationScreenStrings").getAdScheduledDateTimeText(a)}}function b(a){return c("polarisFormatDate")(a,i)}function l(a){return c("polarisFormatDate")(a,j)}function e(a){return c("polarisFormatDate")(a,k)}function f(a,b,d){return a!=null&&b===!0&&d!==c("PolarisBoostDurationType").INDEFINITE}function m(a,b,e){if(e)return c("PolarisBoostDurationType").SET_DURATION;else if(a===!0){return(e=b)!=null?e:d("PolarisBoostDefaultValues.react").DEFAULT_DURATION_TYPE}a=c("qex")._("636")===!0;return a?c("PolarisBoostDurationType").INDEFINITE:(e=b)!=null?e:d("PolarisBoostDefaultValues.react").DEFAULT_DURATION_TYPE}var n=function(a,b,e){var f;b===void 0&&(b="USD");f=(f=c("qex")._("730"))!=null?f:!1;return f?(f=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:b,offset_amount:a.toString(10)}))!=null?f:d("BillingCurrencyAmount").createZero(b):d("BillingCurrencyAmount").getFromUserInput((a/e).toString(10),b)},o=function(a,b){b=(b=b)!=null?b:[];return b.length>1?a*b.length:a},p=function(a,b,c,d){var e=a;a===0&&(e=b);return c||d?(a=e)!=null?a:b:b};g.getDateTimeFbt=a;g.getDayOfWeekString=b;g.getDateString=l;g.getTimeString=e;g.isAdScheduled=f;g.getDefaultDurationType=m;g.getBillingCurrencyAmount=n;g.maybeIncreaseValueForABTest=o;g.getInitialDurationInDays=p}),98);
-----
BillingPaymentMethodsList.react",["BillingCurrencyAmount","BillingError","BillingListItemRow.react","BillingPaymentMethodConstants","BillingPaymentMethodDisplay","BillingPaymentMethodDisplayUtils","BillingPaymentMethodListUtils","BillingPaymentMethodsList_payment_account.graphql","BillingPaymentMethodsList_payment_credential_details.graphql","BillingRowContainer.react","BillingWizardQEContext","RelayHooks","getBillingHubPaymentMethodDisplayIcon","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useCallback,m=h!==void 0?h:h=b("BillingPaymentMethodsList_payment_account.graphql"),n=i!==void 0?i:i=b("BillingPaymentMethodsList_payment_credential_details.graphql");function o(a,b,e,f,g,h,i){var j,l,m=""+((a==null?void 0:a.credential_id)||""),n="CREDIT_CARD";j=(j=a==null?void 0:a.card_association_name)!=null?j:void 0;var o=d("BillingPaymentMethodDisplay").getCreditCardDisplay(j,a==null?void 0:a.last_four_digits);j=d("BillingPaymentMethodDisplay").getCreditCardAccessibilityHint(j,a==null?void 0:a.last_four_digits);l=d("BillingPaymentMethodListUtils").displayCreditCardVerificationMessage((l=a==null?void 0:a.needs_verification)!=null?l:!1,(l=a==null?void 0:a.is_expired)!=null?l:!1,a==null?void 0:a.expiry_month,a==null?void 0:a.expiry_year,f);var p;if(h){h=d("BillingPaymentMethodDisplayUtils").getCreditCardExpiration(a==null?void 0:a.expiry_month,a==null?void 0:a.expiry_year,(f=a==null?void 0:a.is_expired)!=null?f:!1);h!=null&&(l=h)}else p="negative";a=b(n,m);return k.jsx(c("BillingListItemRow.react"),{accessibilityHint:j,addOn:g,addOnPosition:"START",body:o,marginBottom:i?0:16,meta:l,metaColor:p,onSelect:a,selected:m.toString()===(e==null?void 0:e.toString()),testid:void 0},m)}o.displayName=o.name+" [from "+f.id+"]";function p(a,b,e,f,g,h){var i,j=""+((a==null?void 0:a.credential_id)||""),l="EARNINGS_PAYOUT";i=d("BillingPaymentMethodDisplay").getEarningsPayoutDisplay(((i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.earnings_payout_available_balance))!=null?i:d("BillingCurrencyAmount").createZero((f=(i=f)!=null?i:a==null?void 0:a.available_balance_currency)!=null?f:"USD")).toString());a=b(l,j);return k.jsx(c("BillingListItemRow.react"),{addOn:g,addOnPosition:"START",body:i,marginBottom:h?0:16,onSelect:a,selected:j.toString()===(e==null?void 0:e.toString()),testid:void 0},j)}p.displayName=p.name+" [from "+f.id+"]";function q(a,b,e,f,g){var h;h=(h=a==null?void 0:a.id)!=null?h:"";var i=a==null?void 0:a.credential_type;if(i==null)throw new(c("BillingError"))("Credential is missing credential_type","required parameter is missing or invalid",{event_action:"parse",event_context:"wizard",event_side:"client_side"},{action:"unknown"},"critical_error");a=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(a);b=b(i,h);return k.jsx(c("BillingListItemRow.react"),{addOn:f,addOnPosition:"START",body:a,marginBottom:g?0:16,onSelect:b,selected:h.toString()===(e==null?void 0:e.toString()),testid:void 0},h)}q.displayName=q.name+" [from "+f.id+"]";function r(a,b,e,f,g){var h=""+((a==null?void 0:a.credential_id)||""),i="PAYPAL_BA";a=d("BillingPaymentMethodDisplay").getPayPalDisplay(a==null?void 0:a.email);b=b(i,h);return k.jsx(c("BillingListItemRow.react"),{addOn:f,addOnPosition:"START",body:a,marginBottom:g?0:16,onSelect:b,selected:h.toString()===(e==null?void 0:e.toString()),testid:void 0},h)}r.displayName=r.name+" [from "+f.id+"]";function s(a,b,e,f,g){var h=""+((a==null?void 0:a.credential_id)||""),i="DIRECT_DEBIT";a=d("BillingPaymentMethodDisplay").getBankDisplay(a==null?void 0:a.bank_name,a==null?void 0:a.bank_account_type,a==null?void 0:a.last_four_digits);b=b(i,h);return k.jsx(c("BillingListItemRow.react"),{addOn:f,addOnPosition:"START",body:a,marginBottom:g?0:16,onSelect:b,selected:h.toString()===(e==null?void 0:e.toString()),testid:void 0},h)}s.displayName=s.name+" [from "+f.id+"]";function t(a,b,e,f,g,h){var i,j=""+((a==null?void 0:a.id)||""),l=(a==null?void 0:a.is_prepay_only_credential)===!0,m="EXTENDED_CREDIT";f=((i=a==null?void 0:a.valid_currencies)!=null?i:[]).includes(f)?f:a==null?void 0:(i=a.available_max_balance)==null?void 0:i.currency;i=a==null?void 0:a.remaining_spendable_prepayment_amount;var n=null;if(i!=null){var o;n=((o=i.formatted_amount)!=null?o:"")+" "+((o=i.currency)!=null?o:"")}else n=f;i=d("BillingPaymentMethodDisplay").getMonthlyInvoicingDisplay(a==null?void 0:a.legal_entity_name,a==null?void 0:a.partition_from);o=b(m,j);return k.jsx(c("BillingListItemRow.react"),{addOn:g,addOnPosition:"START",body:i,marginBottom:h?0:16,meta:(a=l?n:f)!=null?a:"",onSelect:o,selected:j.toString()===(e==null?void 0:e.toString())},j)}t.displayName=t.name+" [from "+f.id+"]";function a(a){var b=a.onSelect,e=a.paymentAccountFragmentRef,f=a.paymentCredentialFragmentRef,g=a.selected,h=a.showCardExpiration,i=h===void 0?!1:h;a.showCostSavingsList;h=a.showPayManually;a=d("BillingWizardQEContext").useBillingQE();var j=a.billing_muf_add_pm_2024h1.add_pm_muf_updates_dev.read();a=c("useBillingWizardComponents")();var u=a.PaymentIcon;a=d("RelayHooks").useFragment(m,e);var v=a==null?void 0:(e=a.billable_account)==null?void 0:e.currency;a=d("RelayHooks").useFragment(n,f);var w=l(function(a,c){return function(){return b(a,c)}},[b]);f=Array.from((e=a)!=null?e:[]);var x=d("BillingPaymentMethodListUtils").defaultOrder;a=f.sort(function(a,b){return x[(a==null?void 0:(a=a.credential)==null?void 0:a.credential_type)||"DUMMY"]-x[(b==null?void 0:(a=b.credential)==null?void 0:a.credential_type)||"DUMMY"]}).map(function(a){var b,d=c("getBillingHubPaymentMethodDisplayIcon")(a==null?void 0:a.credential);d=d!=null?k.jsx(u,{icons:[d]}):null;switch(a==null?void 0:(b=a.credential)==null?void 0:b.credential_type){case"CREDIT_CARD":return o(a==null?void 0:a.credential,w,g,a==null?void 0:a.usability,d,i,j);case"PAYPAL_BA":return r(a==null?void 0:a.credential,w,g,d,j);case"DIRECT_DEBIT":return s(a==null?void 0:a.credential,w,g,d,j);case"EXTENDED_CREDIT":return t(a==null?void 0:a.credential,w,g,v,d,j);case"EARNINGS_PAYOUT":return p(a==null?void 0:a.credential,w,g,v,d,j);case"UPI":case"MOMO":return q(a==null?void 0:a.credential,w,g,d,j)}});if(h===!0){e="PAY_MANUALLY";f="pay_manually";h=w(e,f);a.push(k.jsx(c("BillingListItemRow.react"),{body:c("BillingPaymentMethodConstants").payManuallyOption,onSelect:h,selected:f.toString()===(g==null?void 0:g.toString())},f))}return k.jsx(c("BillingRowContainer.react"),{marginBottom:j?0:16,withBorder:!1,withContainer:!1,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingPaymentMethodsList_payment_credential_details.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null};return{argumentDefinitions:[{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:{plural:!0},name:"BillingPaymentMethodsList_payment_credential_details",selections:[{alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"available_max_balance",plural:!1,selections:[b],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_prepay_only_credential",storageKey:null},c,d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"remaining_spendable_prepayment_amount",plural:!1,selections:[b,{alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"valid_currencies",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},{kind:"InlineFragment",selections:[e,f,g,{alias:null,args:null,kind:"ScalarField",name:"is_expired",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},{alias:null,args:[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],kind:"ScalarField",name:"needs_verification",storageKey:null}],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h,e,f,i],type:"DirectDebit",abstractKey:null},{kind:"InlineFragment",selections:[e,j],type:"PaymentPaypalBillingAgreement",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"available_balance_currency",storageKey:null},e,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"earnings_payout_available_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},b],args:null,argumentDefinitions:[]}],storageKey:null}],type:"EarningsPayoutCredential",abstractKey:null},{kind:"InlineDataFragmentSpread",name:"getBillingHubPaymentMethodDisplayIcon",selections:[{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentIconUtils_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:"billing_icons(limit:1)"}],type:"BillingPaymentMethod",abstractKey:"__isBillingPaymentMethod"}],args:null,argumentDefinitions:[]},{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[g,f],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[h,i,f],type:"DirectDebit",abstractKey:null},{kind:"InlineFragment",selections:[j],type:"PaymentPaypalBillingAgreement",abstractKey:null},{kind:"InlineFragment",selections:[c,d],type:"IEntEC",abstractKey:"__isIEntEC"},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_name",storageKey:null}],storageKey:null}],type:"StoredBalance",abstractKey:null},{kind:"InlineFragment",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"user_display_name",storageKey:null}],type:"LPMCredential",abstractKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"PaymentCredentialDetails",abstractKey:null}}();e.exports=a}),null);
-----
LWICometAmountSpentSubsection_boostedComponent.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometAmountSpentSubsection_boostedComponent",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boosting_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"spent",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"campaign_group",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},action:"THROW",path:"campaign_group.ad_account.legacy_account_id"}],storageKey:null},action:"THROW",path:"campaign_group.ad_account"}],storageKey:null},action:"THROW",path:"campaign_group"}],type:"BoostedComponentWrapper",abstractKey:null};e.exports=a}),null);
-----
LWIBizWebCampaignSpentSection_boostedComponent.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWIBizWebCampaignSpentSection_boostedComponent",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"campaign_group",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},action:"THROW",path:"campaign_group.ad_account.legacy_account_id"}],storageKey:null},action:"THROW",path:"campaign_group.ad_account"}],storageKey:null},action:"THROW",path:"campaign_group"},{alias:null,args:null,concreteType:"BoostedComponentCampaignAmountSpent",kind:"LinkedField",name:"campaigns_lifetime_spent",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"campaign_id",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"amount_spent_with_currency",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boosting_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_viewer_edit",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"LWICometMgmtAdAccount_boostedComponent"}],type:"BoostedComponentWrapper",abstractKey:null};e.exports=a}),null);
-----
BillingCurrencyAmount",["AdsCurrencyFormatter","BillingCurrencyAmount_PBCurrencyQuantity.graphql","BillingCurrencyAmount_amount.graphql","PECurrency","RelayHooks"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("BillingCurrencyAmount_amount.graphql"),k=i!==void 0?i:i=b("BillingCurrencyAmount_PBCurrencyQuantity.graphql"),l=function(){function a(){this.$1=0,this.currency="USD"}a.fromPECurrencyAmount=function(b){var c,d=new a();d.$2((c=b.amount_with_offset)!=null?c:"0",b.currency==null||b.currency===""?"USD":b.currency);return d};a.fromZero=function(b){var c=new a();c.$2("0",b);return c};a.fromInput=function(b,e){var f=new a();b=d("AdsCurrencyFormatter").parsePECurrency(e,b)*c("PECurrency").DEFAULT_AMOUNT_OFFSET;b=b.toFixed(0).toString();f.$2(b,e);return f};a.fromUnitTest_DO_NOT_USE=function(b){var c=b.amount;b=b.currency;var d=new a();d.$2(c,b);return d};var b=a.prototype;b.$2=function(a,b){this.$1=parseInt(a,10),this.currency=b,isNaN(this.$1)&&(this.$1=0)};b.getRawPBAmount_I_KNOW_WHAT_IM_DOING=function(){var a;return this.$1/c("PECurrency").DEFAULT_AMOUNT_OFFSET*((a=c("PECurrency").getCurrencyOffset(this.currency))!=null?a:1)};b.add=function(b){r("add",this.currency,b);var c=new a();c.$1=this.$1+b.$1;c.currency=this.currency;return c};b.asGraphQLInput=function(){return{amount:(this.$1/c("PECurrency").DEFAULT_AMOUNT_OFFSET).toString(),currency:this.currency}};b.getAmountWithPEOffset=function(){return this.$1.toString()};b.compare=function(a){if(a==null)return 1;r("compare",this.currency,a);return this.$1-a.$1};b.format=function(a){a=(a=a)!=null?a:{};var b=a.showCurrencyCode;b=b===void 0?!1:b;var d=a.showDecimals;d=d===void 0?!0:d;var e=a.showSymbol;e=e===void 0?!0:e;var f=a.stripZeros;f=f===void 0?!1:f;var g=a.thousandSeparator;g=g===void 0?!0:g;a=a.withExtendedSymbol;a=a===void 0?!0:a;if(a&&e)return c("PECurrency").formatAmountWithExtendedSymbol(this.currency,this.$1,b,f,g);else return c("PECurrency").formatAmountX(this.currency,this.$1,{showCurrencyCode:b,showDecimals:d,showSymbol:e,stripZeros:f,thousandSeparator:g})};b.isZero=function(){return this.$1===0};b.percentageOf=function(a){r("percentageOf",this.currency,a);return Math.ceil(a.$1/this.$1*100)};b.subtract=function(b){r("subtract",this.currency,b);var c=new a();c.$1=this.$1-b.$1;c.currency=this.currency;return c};b.multiply=function(b){var c=new a();c.$1=Math.ceil(this.$1*b);c.currency=this.currency;return c};b.toString=function(){return this.format()};return a}();function a(a){a=d("RelayHooks").readInlineData(j,a);return a!=null?l.fromPECurrencyAmount(a):null}function e(a){a=d("RelayHooks").readInlineData(k,a);return a!=null?q(a):null}function f(a){return l.fromZero(a)}function m(a,b){return l.fromInput(a,b)}function n(a,b){if(a!=null&&b!=null)return l.fromInput(a,b)}function o(a,b){return l.fromInput(a,b)}function p(a){return a!=null?l.fromPECurrencyAmount(a):null}function q(a){if(a!=null){var b,d;b=(b=a==null?void 0:a.currency)!=null?b:"USD";d=(d=c("PECurrency").getCurrencyOffset(b))!=null?d:1;a=Number(a==null?void 0:a.offset_amount)/d*c("PECurrency").DEFAULT_AMOUNT_OFFSET;return l.fromPECurrencyAmount({amount_with_offset:a==null?void 0:a.toString(),currency:b})}return null}function r(a,b,c){if(b!==(c==null?void 0:c.currency)){a=new Error("[currency mismatch] unable to perform ""+a+"" with "+b+" and "+((c==null?void 0:c.currency)||"undefined"));a.stack;throw a}}b=l;g.getFromPECurrencyAmountFragment=a;g.getFromPBCurrencyQuantityFragment=e;g.createZero=f;g.getFromUserInput=m;g.getFromRecurringLPMAuthCharge=n;g.getFromWizardInput=o;g.getFromPECurrencyAmount=p;g.getFromPBCurrencyQuantity=q;g.BILLING_CURRENCY_AMOUNT_FOR_TESTING_ONLY_DO_NOT_USE=b}),98);
-----
useBillableAccountBalance",["BillingCurrencyAmount","BillingPaymentModeUtils","RelayHooks","useBillableAccountBalance_billingAccount.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillableAccountBalance_billingAccount.graphql");function a(a){var b,c,e,f,g;a=d("RelayHooks").useFragment(i,a);b=(b=a==null?void 0:a.payment_modes)!=null?b:[];c=(c=(c=a==null?void 0:(c=a.account_balance)==null?void 0:c.currency)!=null?c:a==null?void 0:a.currency)!=null?c:"USD";e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance))!=null?e:d("BillingCurrencyAmount").createZero(c);f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance_with_tax))!=null?f:d("BillingCurrencyAmount").createZero(c);g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_balance))!=null?g:d("BillingCurrencyAmount").createZero(c);a=(a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_delivery_remaining))!=null?a:d("BillingCurrencyAmount").createZero(c);if(d("BillingPaymentModeUtils").isPrepayOnlyAccount(b))return{balance:g,isStoredBalance:!0,wizardName:"ADD_FUNDS"};else if(f.isZero()&&g.isZero()&&a.isZero())return{balance:e,isStoredBalance:!1,wizardName:"PAY_NOW"};else if(f.currency!==g.currency||f.currency!==a.currency){c=new Error("[currency mismatch] unable to perform "useBillableAccountBalance" with "+f.currency+" ("+(f.isZero()?"zero":"non-zero")+"), "+g.currency+" ("+(g.isZero()?"zero":"non-zero")+"), and "+a.currency+" ("+(a.isZero()?"zero":"non-zero")+")");c.stack;throw c}else if(f.compare(g)>=0&&f.compare(a)>=0)return{balance:e.subtract(a),isStoredBalance:!1,wizardName:"PAY_NOW"};else return{balance:g.subtract(f),isStoredBalance:!0,wizardName:"ADD_FUNDS"}}g["default"]=a}),98);
-----
BillingCurrencyAmount_amount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"BillingCurrencyAmount_amount"};e.exports=a}),null);
-----
BillingLWIPaymentMethodsSection.react",["fbt","ix","BillingCurrencyAmount","BillingInfoUtilsWWW","BillingLWIPaymentMethodsSectionQuery.graphql","BillingLoggingProvider.react","BillingSelfServeWebLogger","BillingUPLWizardWebLogger","CometImage.react","CometLink.react","CometRelay","CometRowItem.react","LWICometExpandableSection.react","LWICometRow.react","LWICometShopCouponNotice.react","LWIOmniListCell.react","LWIOmniText.react","fbicon","lwiCometAdAccountReducer","react","requireDeferred","useBillingWizard","useIsCometOnMobile","useLWICometAdAccountUpdate","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useEffect,n=e.useState,o=e.useTransition,p=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("BillingLWIPaymentMethodsSection.react"),q=21,r=31,s=4,t="headline4",u=window.window.location.href,v={iconSpacing:{marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0}},w=j!==void 0?j:j=b("BillingLWIPaymentMethodsSectionQuery.graphql");function a(a){var b,e,f,g,j=a.budgetAmountOverride,k=a.currency,x=a.expandable;x=x===void 0?!0:x;var y=a.forceExpanded;y=y===void 0?!1:y;var z=a.loggingContext,A=a.paddingHorizontal;A=A===void 0?16:A;var B=a.paymentAccountID,C=a.paymentMethodOptions,D=a.subtitleRow,E=a.boostingStatus,F=a.budgetAmount,G=a.budgetType;a=a.durationInDays;G=F!=null&&G==="DAILY_BUDGET"&&a!=null?F*a:F;a=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:k,offset_amount:G==null?void 0:G.toString()});F=n(null);G=F[0];var H=F[1];F=o();F[0];var I=F[1],J=function(){I(function(){H(function(a){return{fetchKey:((a=a==null?void 0:a.fetchKey)!=null?a:0)+1,fetchPolicy:"network-only"}})})};a=d("CometRelay").useLazyLoadQuery(w,{budgetAmount:(j=(F=j)!=null?F:a==null?void 0:a.asGraphQLInput().amount)!=null?j:"",currency:k,paymentAccountID:B},(F=G)!=null?F:{});F=(G=a==null?void 0:(j=a.billable_account_by_payment_account)==null?void 0:(k=j.billing_permissions)==null?void 0:k.includes("BILLING_WRITE"))!=null?G:!1;j=E==="FINISHED"||E==="EXTENDABLE"||!F;E=(G=a==null?void 0:(k=a.billable_account_by_payment_account)==null?void 0:k.payment_modes)!=null?G:[];var K=c("useLWICometAdAccountUpdate")((k=B)!=null?k:"");G=function(){K(),J()};k=c("useLWILoggerContext")().flowID;var L=c("useIsCometOnMobile")(),M=a==null?void 0:(a=a.billable_account_by_payment_account)==null?void 0:(a=a.billing_info)==null?void 0:a.payment_section_details;a=M==null?void 0:M.primary_action;b=(b=a==null?void 0:a.label)!=null?b:"";e=(e=a==null?void 0:a.wizard_name)!=null?e:"NONE";var N=c("useBillingWizard")({entryPointDetails:{entryPoint:"lwi_comet",flowID:k},jsonProps:a==null?void 0:a.wizard_props_json,onClose:G,paymentAccountID:B,wizardName:e},"placement_logging_tracking"),O=c("useLWILoggerContext")(),P=function(){N(),p.onReady(function(a){return a.logWithLoggerAndOptionalSpecContext(O,{},{action:"enter",context:"payment",event:"open_lwi_billing_wizard",side:"client_side"})})};a=d("BillingInfoUtilsWWW").getMsiteWizardURIFromAction(a,B,"lwi_msite",u,u);var Q=M==null?void 0:M.inline_action;f=(f=Q==null?void 0:Q.wizard_name)!=null?f:"NONE";g=(g=Q==null?void 0:Q.label)!=null?g:"";var R=c("useBillingWizard")({entryPointDetails:{entryPoint:"lwi_comet",flowID:k},jsonProps:Q==null?void 0:Q.wizard_props_json,onClose:G,paymentAccountID:B,wizardName:f});k=function(){R(),p.onReady(function(a){return a.logWithLoggerAndOptionalSpecContext(O,{},{action:"enter",context:"payment",event:"open_lwi_billing_wizard",side:"client_side"})})};G=d("BillingInfoUtilsWWW").getMsiteWizardURIFromAction(Q,B,"lwi_msite",u,u);B=(f=M==null?void 0:M.logos)!=null?f:[];f=B.map(function(a){a=a.uri;return a!=null?l.jsx(c("CometImage.react"),{height:q,src:a,width:r,xstyle:v.iconSpacing},a):null});var S=c("useLWIReducers")([c("lwiCometAdAccountReducer")]);m(function(){(M==null?void 0:M.label)!=null&&S({paymentInfo:M==null?void 0:M.label,type:"ad_account_reducer.update_payment_info"})},[S,M==null?void 0:M.label]);B=l.jsxs("div",{"aria-label":M==null?void 0:M.label_ax,className:"x78zum5 x1lkfr7t x12mruv9",children:[f,(M==null?void 0:M.label)!=null&&l.jsx("span",{className:"x12nagc x1i64zmx",children:l.jsx(c("LWIOmniText.react"),{type:t,children:M==null?void 0:M.label})})]});f=(M==null?void 0:M.description)!=null?Q!=null?l.jsxs("div",{"aria-label":M==null?void 0:M.description_ax,children:[M==null?void 0:M.description,l.jsx(c("CometLink.react"),{disabled:!F,href:L?G.toString():void 0,onClick:L?void 0:k,target:L?void 0:"_blank",children:l.jsxs(c("LWIOmniText.react"),{color:"blueLink",type:"body4",children:[" ",g]})})]}):l.jsx("div",{"aria-label":M==null?void 0:M.description_ax,children:M==null?void 0:M.description}):void 0;Q=l.jsx(c("BillingLoggingProvider.react"),{logger:c("BillingSelfServeWebLogger"),upLogger:c("BillingUPLWizardWebLogger"),children:l.jsx(c("LWIOmniListCell.react"),{addOnSecondary:j||e==="NONE"?null:{label:b,linkProps:L?{url:a.toString()}:void 0,onPress:L?void 0:P,testid:"billing_lwi_payment_method_button",type:"secondary-button"},body:B,level:s,meta:f})});return x?l.jsxs(c("LWICometExpandableSection.react"),{expanded:E.includes("SUPPORTS_PREPAY")||y,headline:M==null?void 0:M.label,icon:d("fbicon")._(i("578884"),20),loggingContext:z,meta:h._("u652fu4ed8u65b9u5f0f"),children:[D,l.jsx(c("LWICometShopCouponNotice.react"),{category:"ACTIVE_FEEDBACK",customIntro:h._("u6211u4eecu4e0du4f1au5411u4f60u6536u53d6u8fd9u6761u5e7fu544au7684u8d39u7528u3002"),options:C,paddingHorizontal:16}),l.jsx(c("LWICometRow.react"),{paddingHorizontal:A,children:l.jsx(c("CometRowItem.react"),{expanding:!0,children:Q})})]}):Q}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){var b;return{boostingStatus:a.boostingStatus,budgetAmount:(b=a.budgetData)==null?void 0:b.budget,budgetType:(b=a.budgetData)==null?void 0:b.budgetType,durationInDays:a.durationInDays}});g["default"]=e}),226);
-----
BillingCurrencyAmount_PBCurrencyQuantity.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"BillingCurrencyAmount_PBCurrencyQuantity"};e.exports=a}),null);
-----
useBillableAccountBalance_billingAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[a,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillableAccountBalance_billingAccount",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance_with_tax",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:[{kind:"Literal",name:"exclude_coupons",value:!0}],concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_delivery_remaining",plural:!1,selections:b,storageKey:"prepay_delivery_remaining(exclude_coupons:true)"},a,{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingWizardRootUtils",["BillingCurrencyAmount","isStringNullOrEmpty"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b={};if(a==="")return b;a=JSON.parse(a);var d=i(a==null?void 0:a.payment_amount);d!=null&&(b.paymentAmount=d);d=i(a==null?void 0:a.full_budget_payment_amount);d!=null&&(b.fullBudgetPaymentAmount=d);(a==null?void 0:a.display_all_fields)!=null&&(b.displayAllFields=a.display_all_fields);(a==null?void 0:a.is_single_pm_flow)!=null&&(b.isSinglePMFlow=a.is_single_pm_flow);(a==null?void 0:a.payment_method_id)!=null&&a.payment_method_id!==""&&(b.paymentMethodID=a.payment_method_id);if((a==null?void 0:a.status)!=null&&a.status.body!=null&&a.status.headline!=null&&a.status.type!=null){var e;if(((d=a.status)==null?void 0:d.primary_action)!==null){e={href:(d=a.status.primary_action)==null?void 0:d.href,label:(d=a.status.primary_action)==null?void 0:d.label}}var f;a.status.logging_message!=null&&(f=a.status.logging_message);b.status={body:a.status.body,headline:a.status.headline,loggingMessage:f,overridePrimaryButton:e,title:a.status.title,type:a.status.type}}(a==null?void 0:a.payment_account_id)!=null&&a.payment_account_id!==""&&(b.paymentAccountID=a.payment_account_id);(a==null?void 0:a.shared_stored_balance_id)!=null&&a.shared_stored_balance_id!==""&&(b.sharedStoredBalanceID=a.shared_stored_balance_id);(a==null?void 0:a.should_turn_on)!=null&&(b.shouldTurnOn=a.should_turn_on);(a==null?void 0:a.surface)!=null&&(b.surface=a.surface);c("isStringNullOrEmpty")(a==null?void 0:a.provider_id)||(b.providerID=a.provider_id);(a==null?void 0:a.payment_method_type)!=null&&(b.paymentMethodType=a.payment_method_type);c("isStringNullOrEmpty")(a==null?void 0:a.desired_account_country)||(b.desiredAccountCountry=a.desired_account_country);c("isStringNullOrEmpty")(a==null?void 0:a.desired_account_currency)||(b.desiredAccountCurrency=a.desired_account_currency);c("isStringNullOrEmpty")(a==null?void 0:a.desired_account_timezone)||(b.desiredAccountTimezone=a.desired_account_timezone);return b}function i(a){if(a!=null&&a.amount!=null&&a.currency!=null)return d("BillingCurrencyAmount").getFromPECurrencyAmount({amount_with_offset:a.amount,currency:a.currency})}function a(a,b){var c=j(a==null?void 0:a.paymentAmount),d=j(a==null?void 0:a.fullBudgetPaymentAmount),e;a.paymentMethodID!=null&&a.paymentMethodID!==""&&(e=a.paymentMethodID);b=b!=null?h(b):{};return babelHelpers["extends"]({},a,{fullBudgetPaymentAmount:d,paymentAmount:c,paymentMethodID:e},b)}function j(a){if((a==null?void 0:a.amount)!=null&&a.amount!==""&&a.amount!=="0"&&a.currency!=null)return d("BillingCurrencyAmount").getFromWizardInput(a.amount,a.currency)}g.parseJSONProps=h;g.transformProps=a}),98);
-----
useBillingInfoEstimatedTax",["BillingCurrencyAmount","RelayHooks","useBillingInfoEstimatedTaxQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingInfoEstimatedTaxQuery.graphql");function a(a,b,c){b=b!=null?b.asGraphQLInput():void 0;b=d("RelayHooks").useLazyLoadQuery(i,{budget:b,entrypoint:c,paymentAccountID:a});b=b==null?void 0:(c=b.billable_account_by_payment_account)==null?void 0:(a=c.billing_info)==null?void 0:a.estimated_tax;c=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.total);b=b==null?void 0:(a=b.taxes)==null?void 0:a.map(function(a){var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.tax_amount);return{amount:b,taxName:a==null?void 0:a.tax_name,taxRate:a==null?void 0:a.tax_rate}});return{taxes:b,totalBudget:c}}g["default"]=a}),98);
-----
useBillingInfoEstimatedTaxQuery.graphql",["useBillingInfoEstimatedTaxQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"budget"},c={defaultValue:null,kind:"LocalArgument",name:"entrypoint"},d={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},e=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],f=[{kind:"Variable",name:"budget",variableName:"budget"},{kind:"Variable",name:"specific_entrypoint",variableName:"entrypoint"}],g=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],h=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:g,args:null,argumentDefinitions:[]}],i={alias:null,args:null,kind:"ScalarField",name:"tax_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"tax_rate",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d],kind:"Fragment",metadata:null,name:"useBillingInfoEstimatedTaxQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:f,concreteType:"XFBBillableAccountBillingInfo",kind:"LinkedField",name:"billing_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxes",kind:"LinkedField",name:"estimated_tax",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:h,storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxLineItem",kind:"LinkedField",name:"taxes",plural:!0,selections:[i,j,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"tax_amount",plural:!1,selections:h,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[d,a,c],kind:"Operation",name:"useBillingInfoEstimatedTaxQuery",selections:[{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:f,concreteType:"XFBBillableAccountBillingInfo",kind:"LinkedField",name:"billing_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxes",kind:"LinkedField",name:"estimated_tax",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxLineItem",kind:"LinkedField",name:"taxes",plural:!0,selections:[i,j,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"tax_amount",plural:!1,selections:g,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("useBillingInfoEstimatedTaxQuery_facebookRelayOperation"),metadata:{},name:"useBillingInfoEstimatedTaxQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
LWIBizWebCampaignSpentSection.react",["BillingCurrencyAmount","CometRelay","LWIBizWebCampaignSpentSection_boostedComponent.graphql","LWICometAmountSpentComponent.react","LWICometMgmtAdAccount.react","react","useBillingInfoEstimatedTax"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e,f,g=a.boostedComponent$key,i=a.campaignID;a=d("CometRelay").useFragment(h!==void 0?h:h=b("LWIBizWebCampaignSpentSection_boostedComponent.graphql"),g);g=a.campaigns_lifetime_spent;g=g.find(function(a){return a.campaign_id===i});e=!!((e=a.boosting_info)==null?void 0:e.can_viewer_edit);f=(f=a.campaign_group)==null?void 0:(f=f.ad_account)==null?void 0:f.legacy_account_id;g=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(g==null?void 0:g.amount_spent_with_currency);var k=c("useBillingInfoEstimatedTax")(f,g),l=k.taxes;k=k.totalBudget;return f!=null&&e?j.jsx(c("LWICometMgmtAdAccount.react"),{adAccountID:f,boostedComponent:a,children:j.jsx(c("LWICometAmountSpentComponent.react"),{taxes:l,totalBudget:g,totalBudgetWithTax:k})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometAmountSpentSubsection.react",["BillingCurrencyAmount","CometRelay","LWICometAmountSpentComponent.react","LWICometAmountSpentSubsection_boostedComponent.graphql","react","useBillingInfoEstimatedTax"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e;a=a.boostedComponent;a=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometAmountSpentSubsection_boostedComponent.graphql"),a);e=a==null?void 0:(e=a.campaign_group)==null?void 0:(e=e.ad_account)==null?void 0:e.legacy_account_id;a=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(a==null?void 0:(a=a.boosting_info)==null?void 0:a.spent);e=c("useBillingInfoEstimatedTax")(e,a);var f=e.taxes;e=e.totalBudget;return j.jsx(c("LWICometAmountSpentComponent.react"),{taxes:f,totalBudget:a,totalBudgetWithTax:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PolarisBoostBudgetComponent.react",["fbt","BillingCurrencyAmount","CometFormSelectOnlyCombobox.react","IGDSBox.react","IGDSText.react","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostUserMessage.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||(i=d("react"))).c,k=i,l={warningPadding:{paddingTop:"xyamay9",$$css:!0}};function a(a){var b=j(28),e=a.budgetRecs,f=a.budgetWarningOrSuggestionType,g=a.currency,i=a.currencyOffset,n=a.dailyBudget,o=a.dailyBudgetOptions,p=a.logger,q=a.onDailyBudgetChange,r=a.setBudgetModified,s=a.setBudgetWarningV1DurationMinimumForBudget;a=a.shouldUseBodyEmphasizedHeaders;var t=m;a=a?c("IGDSText.react").BodyEmphasized:c("IGDSText.react").LabelEmphasized;var u;b[0]!==g||b[1]!==q||b[2]!==r||b[3]!==s||b[4]!==e||b[5]!==i||b[6]!==p?(u=function(a){var b=d("BillingCurrencyAmount").getFromUserInput(a,g);q(b);r&&r(!0);s((a=e==null?void 0:(a=e.recs)==null?void 0:(a=a.budgetWarningV1)==null?void 0:(a=a.find(function(a){return a.dailyBudget===parseInt(b.multiply(i).asGraphQLInput().amount,10)}))==null?void 0:a.duration)!=null?a:0);p==null?void 0:p.logTapComponent("budget_dropdown","budget_duration")},b[0]=g,b[1]=q,b[2]=r,b[3]=s,b[4]=e,b[5]=i,b[6]=p,b[7]=u):u=b[7];u=u;if(b[8]!==o){var v;b[10]===Symbol["for"]("react.memo_cache_sentinel")?(v=function(a){a=t(a);return{label:h._("__JHASH__XzZWjh_pJwU__JHASH__",[h._param("ad budget option",a)]),value:a}},b[10]=v):v=b[10];v=o.map(v);b[8]=o;b[9]=v}else v=b[9];o=v;b[11]!==a?(v=k.jsx(a,{textAlign:"start",children:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_SECTION_TITLE}),b[11]=a,b[12]=v):v=b[12];b[13]!==e||b[14]!==n?(a=(e==null?void 0:e.isFetching)?null:t(n),b[13]=e,b[14]=n,b[15]=a):a=b[15];b[16]!==u||b[17]!==o||b[18]!==a?(n=k.jsx(c("CometFormSelectOnlyCombobox.react"),{label:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_SECTION_LABEL,onValueChange:u,options:o,value:a}),b[16]=u,b[17]=o,b[18]=a,b[19]=n):n=b[19];b[20]!==f?(u=f==="lowBudgetWarningV1"&&k.jsx(c("PolarisBoostUserMessage.react"),{message:d("PolarisBoostBudgetAndDurationScreenStrings").LOW_BUDGET_WARNING,messageType:"warning",xstyle:l.warningPadding}),b[20]=f,b[21]=u):u=b[21];b[22]!==n||b[23]!==u?(o=k.jsxs(c("IGDSBox.react"),{paddingY:4,children:[n,u]}),b[22]=n,b[23]=u,b[24]=o):o=b[24];b[25]!==v||b[26]!==o?(a=k.jsxs(c("IGDSBox.react"),{flex:"grow",paddingY:2,children:[v,o]}),b[25]=v,b[26]=o,b[27]=a):a=b[27];return a}function m(a){return a.format({showCurrencyCode:!1,showDecimals:!1,showSymbol:!0,stripZeros:!0,thousandSeparator:!0,withExtendedSymbol:!1})}g["default"]=a}),226);
-----
BillingMIPayNowInitDecisionState",["BillingCurrencyAmount","BillingErrorUtils","BillingMIPayNowInitDecisionStateQuery.graphql","BillingMIToSelfServeLandingConstants","BillingWizardTypes","Promise","err","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("BillingMIPayNowInitDecisionStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f=0&&!s.isZero();if(!v){x.next=21;break}return x.abrupt("return",(i||(i=b("Promise"))).resolve({event:"onPayNow",newProps:babelHelpers["extends"]({},a,{invoiceIDs:r,paymentAmount:s})}));case 21:return x.abrupt("return",(i||(i=b("Promise"))).resolve({event:"onDone",newProps:a}));case 22:throw c("err")("The state is invalid due to an odd combination of transition step and/or invoices.");case 25:x.prev=25;x.t0=x["catch"](1);w=d("BillingErrorUtils").buildBillingErrorFromError("server side query failure",{event_action:"query",event_context:"billing_mi_pay_now_init_decision_state",event_result:"failure",event_side:"client_side"},{action:"load"},x.t0,"critical_error");f.logError(w.type,w.errorPayload);h==null?void 0:h.logBillingPayloadError(w.type,w.errorPayload);w.summary=c("BillingMIToSelfServeLandingConstants").failureHeader.toString();w.description=c("BillingMIToSelfServeLandingConstants").failureBody.toString();throw w;case 33:case"end":return x.stop()}},null,this,[[1,25]])};return e}(d("BillingWizardTypes").DecisionState);g["default"]=a}),98);
-----
BillingMIPayNowInitDecisionStateQuery.graphql",["BillingMIPayNowInitDecisionStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"invoice_ids",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],f={alias:null,args:null,kind:"ScalarField",name:"transition_step",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingMIPayNowInitDecisionStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"SwitchOffMI",kind:"LinkedField",name:"switch_off_mi",plural:!1,selections:[{alias:null,args:null,concreteType:"MIPayNowDetailsChunk",kind:"LinkedField",name:"invoice_ids_and_charge_amount_to_pay",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charge_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},f],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingMIPayNowInitDecisionStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"SwitchOffMI",kind:"LinkedField",name:"switch_off_mi",plural:!1,selections:[{alias:null,args:null,concreteType:"MIPayNowDetailsChunk",kind:"LinkedField",name:"invoice_ids_and_charge_amount_to_pay",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charge_amount",plural:!1,selections:e,storageKey:null}],storageKey:null},f,g],storageKey:null},g],storageKey:null}]},params:{id:b("BillingMIPayNowInitDecisionStateQuery_facebookRelayOperation"),metadata:{},name:"BillingMIPayNowInitDecisionStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
LiveProducerLiveBoostingBudgetInvoice.react",["fbt","BaseView.react","BillingCurrencyAmount","CometColumn.react","CometColumnItem.react","CometRow.react","CometRowItem.react","FDSTextPairing.react","PECurrency","react","useBillingInfoEstimatedTax","useDebouncedComet"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useState,m=b.c,n={budgetInvoice:{backgroundColor:"xlhe6ec",borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",marginTop:"xqui205",$$css:!0},divider:{borderTopColor:"x8cjs6t",borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",$$css:!0}};function a(a){var b=m(26),e=a.adAccountID,f=a.currency,g=a.localBudget;a=l(g);var i=a[0];a=a[1];var o;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(o={wait:400},b[0]=o):o=b[0];var p=c("useDebouncedComet")(a,o);b[1]!==p||b[2]!==g?(a=function(){return p(g)},o=[p,g],b[1]=p,b[2]=g,b[3]=a,b[4]=o):(a=b[3],o=b[4]);k(a,o);b[5]!==i||b[6]!==f?(a=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:f,offset_amount:i.toString()}),b[5]=i,b[6]=f,b[7]=a):a=b[7];o=a;i=c("useBillingInfoEstimatedTax")(e,o);a=i.taxes;e=i.totalBudget;b[8]===Symbol["for"]("react.memo_cache_sentinel")?(o=j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__zPueLqWV407__JHASH__"),bodyColor:"secondary",level:4})}),b[8]=o):o=b[8];b[9]!==f||b[10]!==g?(i=d("PECurrency").formatAmountWithExtendedSymbolAndOffset(f,g),b[9]=f,b[10]=g,b[11]=i):i=b[11];b[12]!==i?(f=j.jsxs(c("CometRow.react"),{align:"justify",children:[o,j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:i,bodyColor:"secondary",level:4})})]}),b[12]=i,b[13]=f):f=b[13];b[14]!==a?(o=a==null?void 0:a.map(function(a,b){return j.jsxs(c("CometRow.react"),{align:"justify",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__1lUu-hqydt6__JHASH__",[h._param("country_code",a==null?void 0:a.taxName),h._param("country_tax",a==null?void 0:a.taxRate)]),bodyColor:"secondary",level:4})}),j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:(a=a.amount)==null?void 0:a.toString(),bodyColor:"secondary",level:4})})]},b)}),b[14]=a,b[15]=o):o=b[15];b[16]===Symbol["for"]("react.memo_cache_sentinel")?(i=j.jsx(c("CometColumnItem.react"),{children:j.jsx(c("BaseView.react"),{role:"separator",xstyle:n.divider})}),b[16]=i):i=b[16];b[17]===Symbol["for"]("react.memo_cache_sentinel")?(a=j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__hzFgvILF-1N__JHASH__"),bodyColor:"primary",level:4})}),b[17]=a):a=b[17];var q;b[18]!==e?(q=e==null?void 0:e.toString(),b[18]=e,b[19]=q):q=b[19];b[20]!==q?(e=j.jsxs(c("CometRow.react"),{align:"justify",children:[a,j.jsx(c("CometRowItem.react"),{children:j.jsx(c("FDSTextPairing.react"),{body:q,bodyColor:"primary",level:4})})]}),b[20]=q,b[21]=e):e=b[21];b[22]!==f||b[23]!==o||b[24]!==e?(a=j.jsxs(c("CometColumn.react"),{paddingHorizontal:16,paddingVertical:12,spacing:12,xstyle:n.budgetInvoice,children:[f,o,i,e]}),b[22]=f,b[23]=o,b[24]=e,b[25]=a):a=b[25];return a}g["default"]=a}),226);
-----
LiveProducerLiveBoostingPaymentSelector.react",["fbt","ix","AccordionAddOn.react","BillingCurrencyAmount","BillingLoggingProvider.react","BillingSelfServeWebLogger","BillingUPLWizardWebLogger","CometAccordionListCell.react","CometCircleButton.react","CometImage.react","CometLink.react","FDSTextPairing.react","LWIOmniListCell.react","LiveProducerLiveBoostingPaymentSelectorQuery.graphql","RelayHooks","fbicon","react","useBillingWizard","useToggle"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useEffect,n=e.useState,o=e.useTransition,p=21,q=31,r=4,s={iconSpacing:{marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0}},t=j!==void 0?j:j=b("LiveProducerLiveBoostingPaymentSelectorQuery.graphql");function a(a){var b,e,f,g,j=a.budgetAmount,k=a.currency;a=a.paymentAccountID;var u=c("useToggle")(!1),v=u[0],w=u[1];u=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:k,offset_amount:j.toString()});j=n(null);var x=j[0],y=j[1];j=o();j[0];var z=j[1];j=function(){z(function(){y(function(a){return{fetchKey:((a=a==null?void 0:a.fetchKey)!=null?a:0)+1,fetchPolicy:"network-only"}})})};k=d("RelayHooks").useLazyLoadQuery(t,{budgetAmount:(u=u==null?void 0:u.asGraphQLInput().amount)!=null?u:"",currency:k,paymentAccountID:a},(u=x)!=null?u:{});u=(x=k==null?void 0:(x=k.billable_account_by_payment_account)==null?void 0:(u=x.billing_permissions)==null?void 0:u.includes("BILLING_WRITE"))!=null?x:!1;x=!u;k=k==null?void 0:(k=k.billable_account_by_payment_account)==null?void 0:(k=k.billing_info)==null?void 0:k.payment_section_details;var A=k==null?void 0:k.primary_action;b=(b=A==null?void 0:A.label)!=null?b:"";e=(e=A==null?void 0:A.wizard_name)!=null?e:"NONE";var B=c("useBillingWizard")({entryPointDetails:{entryPoint:"live_producer_pre_live_boosting"},jsonProps:A==null?void 0:A.wizard_props_json,onClose:j,paymentAccountID:a,wizardName:e},"placement_logging_tracking");A=k==null?void 0:k.inline_action;f=(f=A==null?void 0:A.wizard_name)!=null?f:"NONE";g=(g=A==null?void 0:A.label)!=null?g:"";var C=c("useBillingWizard")({entryPointDetails:{entryPoint:"live_producer_pre_live_boosting"},jsonProps:A==null?void 0:A.wizard_props_json,onClose:j,paymentAccountID:a,wizardName:f});j=function(){C()};f=(a=k==null?void 0:k.logos)!=null?a:[];a=f.map(function(a){a=a.uri;return a!=null?l.jsx(c("CometImage.react"),{height:p,src:a,width:q,xstyle:s.iconSpacing},a):null});m(function(){},[k==null?void 0:k.label]);f=l.jsxs("div",{"aria-label":k==null?void 0:k.label_ax,className:"x78zum5 x1lkfr7t x12mruv9",children:[a,(k==null?void 0:k.label)!=null&&l.jsx("span",{className:"x12nagc x1i64zmx",children:l.jsx(c("FDSTextPairing.react"),{headline:k==null?void 0:k.label,level:4})})]});a=(k==null?void 0:k.description)!=null?A!=null?l.jsxs("div",{"aria-label":k==null?void 0:k.description_ax,children:[k==null?void 0:k.description,l.jsx(c("CometLink.react"),{disabled:!u,onClick:j,target:"_blank",children:l.jsx(c("FDSTextPairing.react"),{body:g,bodyColor:"blueLink",level:4})})]}):l.jsx("div",{"aria-label":k==null?void 0:k.description_ax,children:k==null?void 0:k.description}):void 0;A=l.jsx(c("BillingLoggingProvider.react"),{logger:c("BillingSelfServeWebLogger"),upLogger:c("BillingUPLWizardWebLogger"),children:l.jsx(c("LWIOmniListCell.react"),{addOnSecondary:x||e==="NONE"?null:{label:b,onPress:function(){B()},testid:"billing_live_producer_payment_method_button",type:"secondary-button"},body:f,level:r,meta:a})});return l.jsx(c("CometAccordionListCell.react"),{addOnEnd:c("AccordionAddOn.react"),addOnEndProps:{open:v},addOnStart:l.jsx(c("CometCircleButton.react"),{color:v?"white":"primary",icon:d("fbicon")._(i("578884"),20),label:h._("__JHASH__YFpi_JTR_tC__JHASH__"),size:36,type:v?"primary-background-overlay":"normal"}),content:l.jsx(c("FDSTextPairing.react"),{headline:k==null?void 0:k.label,level:4,meta:h._("__JHASH___Ofo666NURQ__JHASH__"),metaLocation:"above"}),onPress:function(){return w(!v)},selected:v,selectedBackground:"highlight",children:l.jsx("div",{className:"",children:A})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BillingSpendMoreUserIntentView_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingSpendMoreUserIntentView_account",selections:[{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"intent_incremental_step",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_intent_value",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_intent_value",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingSpendMoreLandOrSelectExperienceStateQuery.graphql",["BillingSpendMoreLandOrSelectExperienceStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d=[{kind:"Literal",name:"allowlist",value:["USABLE"]},{kind:"Literal",name:"filter",value:"SUPPORTS_RECURRING"}],e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSpendMoreLandOrSelectExperienceStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:d,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[e,f,{kind:"InlineFragment",selections:[g],type:"LPMCredential",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(allowlist:["USABLE"],filter:"SUPPORTS_RECURRING")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"latest_or_default_pm_prepay_limits",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:h,args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSpendMoreLandOrSelectExperienceStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[g,{alias:null,args:d,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[g,e,f],storageKey:null}],storageKey:"billing_payment_methods(allowlist:["USABLE"],filter:"SUPPORTS_RECURRING")"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:"BillingSpendMoreInfo",kind:"LinkedField",name:"spend_more_info",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"latest_or_default_pm_prepay_limits",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:h,storageKey:null}],storageKey:null}],storageKey:null},e],storageKey:null},e],storageKey:null}]},params:{id:b("BillingSpendMoreLandOrSelectExperienceStateQuery_facebookRelayOperation"),metadata:{},name:"BillingSpendMoreLandOrSelectExperienceStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingSelectPresetAmountRow.react",["BillingBalanceSectionConstants","BillingCurrencyAmount","BillingFormContext","BillingSelectPresetAmountRow_account.graphql","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect,l=h!==void 0?h:h=b("BillingSelectPresetAmountRow_account.graphql");function a(a){var b=a.account,e=a.fullBudgetPaymentAmount,f=a.isInputFocused,g=a.selectedButton,h=a.setIsInputFocused,i=a.setSelectedButton,m=a.surface,n=d("RelayHooks").useFragment(l,b);a=c("useBillingWizardComponents")();b=a.Button;var o=a.Column;a=a.Row;var p=d("BillingFormContext").useBillingFormField("amount"),q=p.onChange,r=function(a){var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n==null?void 0:n.total_daily_plus_remaining_lifetime_budgets);if((m==="ads_creation_billing_info"||m==="ads_creation_required_action")&&e!=null)return e.format({showDecimals:!0,showSymbol:a});else if(m==="payment_settings"&&b!=null&&!b.isZero())return b.format({showDecimals:!0,showSymbol:a});return""},s=function(a){if((m==="ads_creation_billing_info"||m==="ads_creation_required_action")&&e!=null){var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n==null?void 0:n.prepay_balance);if(b==null||b.isZero())return"";if(e.compare(b)<=0)return"";b=e.subtract(b);return b.format({showDecimals:!0,showSymbol:a})}else if(m==="payment_settings"&&(n==null?void 0:n.last_7_day_spend)!=null){b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n.last_7_day_spend);if(b!=null)return b.format({showDecimals:!0,showSymbol:a})}return""};r(!0)===""&&s(!0)===""&&i(null);var t=function(a){i(a);switch(a){case"button_one":q(r(!1));h(!1);break;case"button_two":q(s(!1));h(!1);break;case"button_three":q("");break}};k(function(){f&&i("button_three")},[f,i]);return j.jsxs(a,{align:"start",columnSpacing:8,justify:"start",marginBottom:8,children:[r(!0)!==""&&j.jsx(o,{children:j.jsx(b,{label:r(!0),onPress:function(){t("button_one")},reduceEmphasis:g==="button_one",type:g==="button_one"?"primary":"secondary"})}),s(!0)!==""&&j.jsx(o,{children:j.jsx(b,{label:s(!0),onPress:function(){t("button_two")},reduceEmphasis:g==="button_two",type:g==="button_two"?"primary":"secondary"})}),(r(!0)!==""||s(!0)!=="")&&j.jsx(o,{children:j.jsx(b,{label:c("BillingBalanceSectionConstants").otherAmount,onPress:function(){t("button_three")},reduceEmphasis:g==="button_three",type:g==="button_three"?"primary":"secondary"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingSelectPresetAmountRow_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingSelectPresetAmountRow_account",selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"last_7_day_spend",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_daily_plus_remaining_lifetime_budgets",plural:!1,selections:a,storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingCurrencyAmountSlider.react",["BillingBaseCurrencyAmountSlider.react","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.maxValueDisplay,d=a.minValueDisplay,e=a.valueDisplay;a=babelHelpers.objectWithoutPropertiesLoose(a,["maxValueDisplay","minValueDisplay","valueDisplay"]);var f=c("useBillingWizardComponents")(),g=f.Column,h=f.Row;f=f.Text;return i.jsxs(h,{children:[e!=null&&i.jsx(h,{justify:"space-around",marginBottom:8,children:i.jsx(g,{padding:16,withBorder:!0,children:i.jsx(f,{headline:e(a.value.format({showDecimals:!1,stripZeros:!0})),textAlign:"center"})})}),i.jsx(c("BillingBaseCurrencyAmountSlider.react"),babelHelpers["extends"]({},a)),d!=null&&b!=null&&i.jsxs(h,{justify:"space-between",children:[i.jsx(g,{fieldSize:5,mobileFieldSize:5,children:i.jsx(f,{level:2,meta:d(a.min.format({showDecimals:!1,stripZeros:!0}))})}),i.jsx(g,{fieldSize:5,mobileFieldSize:5,children:i.jsx(f,{level:2,meta:b(a.max.format({showDecimals:!1,stripZeros:!0})),textAlign:"end"})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingBaseCurrencyAmountSlider.react",["BillingCurrencyAmount","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useCallback;function k(a){return parseInt(a.asGraphQLInput().amount,10)}function a(a){var b=a.max,e=a.min,f=a.onChange,g=a.step,h=a.value;a=babelHelpers.objectWithoutPropertiesLoose(a,["max","min","onChange","step","value"]);var l=c("useBillingWizardComponents")();l=l.Slider;var m=h.currency;b=k(b);e=k(e);g=k(g);h=k(h);var n=j(function(a){f(d("BillingCurrencyAmount").getFromUserInput(a.toString(),m))},[m,f]);return i.jsx(l,babelHelpers["extends"]({},a,{max:b,min:e,onChange:n,step:g,value:h}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingAddFundsInitState",["BillingAddFundsInitStateQuery.graphql","BillingCurrencyAmount","BillingError","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingAddFundsInitStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingPayNowOrSettleInitState",["BillingCurrencyAmount","BillingPayNowOrSettleInitStateQuery.graphql","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingPayNowOrSettleInitStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingAddFundsInitStateQuery.graphql",["BillingAddFundsInitStateQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"business_country_code",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},g=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},f],h=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:g,args:null,argumentDefinitions:[]}],i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};f={alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[i,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[f],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAddFundsInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"tax_info",plural:!1,selections:[e],storageKey:null}],type:"BusinessPaymentAccount",abstractKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:h,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:h,storageKey:null}],storageKey:null},f],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAddFundsInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"tax_info",plural:!1,selections:[d,e],storageKey:null}],type:"BusinessPaymentAccount",abstractKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:g,storageKey:null},i],storageKey:null},f,i],storageKey:null}]},params:{id:b("BillingAddFundsInitStateQuery_facebookRelayOperation"),metadata:{},name:"BillingAddFundsInitStateQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
BillingPayNowOrSettleInitStateQuery.graphql",["BillingPayNowOrSettleInitStateQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],e=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:d,args:null,argumentDefinitions:[]}],f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPayNowOrSettleInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPayNowOrSettleInitStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"payment_account",plural:!1,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[f,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:d,storageKey:null},g],storageKey:null},g],storageKey:null}]},params:{id:b("BillingPayNowOrSettleInitStateQuery_facebookRelayOperation"),metadata:{},name:"BillingPayNowOrSettleInitStateQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
BillingCheckRecurringLPMConsentRequiresChargeState",["BillingCurrencyAmount","BillingError","BillingWizardTypes","Promise"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
PolarisEditBoostedAdBudgetAndDuration.react",["fbt","BillingCurrencyAmount","CometRelay","IGDSBox.react","IGDSText.react","JSResourceForInteraction","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostBudgetAndDurationSelection.react","PolarisBoostDefaultValues.react","PolarisBoostErrorStrings","PolarisBoostOkDialog.react","PolarisBoostScreenWrapper.react","PolarisBoostUtils.react","PolarisEditBoostedAdBudgetAndDurationQuery.graphql","PolarisEditBoostedAdContext","PolarisUA","react","useIGDSLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useMemo,n=e.useState,o={content:{marginBottom:"xjx4602",$$css:!0}},p=[1,2,3,4,5,6,7,10,15,30];function q(a){var b=[a];p.map(function(c){b.push(a+c)});return b}var r=i!==void 0?i:i=b("PolarisEditBoostedAdBudgetAndDurationQuery.graphql");function a(a){var b,e=a.props;a=d("CometRelay").useLazyLoadQuery(r,{data:{fb_auth_token:"",flow_id:e.routeParams.flow_id,is_posm_enabled_for_web:!1,media_id:e.routeParams.media_id.toString(),promote_entry_point:"campaign_controls"}});var f=a.xdt_ads_promote_init_promote_graphql;a=l(c("PolarisEditBoostedAdContext"));var g=a.currency,i=a.currencyOffset,j=a.dailyBudget,p=a.durationInDays,s=a.logger,t=a.mediaID,u=a.refetchCampaignControlsQuery;a=a.runContinuously;var v=n(d("BillingCurrencyAmount").getFromUserInput((j/i).toString(10),g)),w=v[0];v=v[1];var x=n(p),y=x[0];x=x[1];var z=function(a){C((a=a==null?void 0:a.display_message)!=null?a:d("PolarisBoostErrorStrings").VERY_GENERIC_SUBMIT_ERROR_BODY.toString())},A=n(""),B=A[0],C=A[1];A=k.jsx(c("IGDSText.react").TitleEmphasized,{textAlign:"center",children:a?d("PolarisBoostBudgetAndDurationScreenStrings").getDailyBudgetSubtext(w):d("PolarisBoostBudgetAndDurationScreenStrings").getTotalSpendDurationInDaysText(w.multiply(y),y)});var D=d("PolarisBoostUtils.react").getIsEligibleForIAPContentParityUpdates();a=k.jsx(c("IGDSText.react").Body,{color:"secondaryText",textAlign:"center",children:a?d("PolarisBoostBudgetAndDurationScreenStrings").TOTAL_SPEND_INDEFINITE_TITLE:D?d("PolarisBoostBudgetAndDurationScreenStrings").AD_BUDGET_TITLE:d("PolarisBoostBudgetAndDurationScreenStrings").TOTAL_SPEND_TITLE});D=c("useIGDSLazyDialog")(c("JSResourceForInteraction")("PolarisEditBoostedAdSaveUpdatesDialog.react").__setRef("PolarisEditBoostedAdBudgetAndDuration.react"),function(){return k.jsx(k.Fragment,{})});var E=D[0],F=function(){e.navigateTo("campaign_controls",{})};D=function(){s==null?void 0:s.logTapComponent("action_button","campaign_controls_budget_duration");var a=w.multiply(y),b=d("BillingCurrencyAmount").getFromUserInput((j/i).toString(10),g).multiply(p);if(a.compare(b)===0){F();return}E({flowID:e.routeParams.flow_id,mediaID:t,newDailySpend:parseInt(w.multiply(i).asGraphQLInput().amount,10),newDuration:y,newTotalBudget:a.toString(),oldTotalBudget:b.toString(),onSuccess:function(){s==null?void 0:s.logTapComponent("update_budget_duration_button","campaign_controls_budget_duration"),u(),F()},showError:z})};b=m(function(){var a;a=(a=f==null?void 0:(a=f.initInfo)==null?void 0:a.daily_budget_options_with_offset)!=null?a:[];var b=d("BillingCurrencyAmount").getFromUserInput((j/i).toString(10),g),c=[b];a.map(function(a){c.push(b.add(d("BillingCurrencyAmount").getFromUserInput((a/i).toString(10),g)))});return c},[g,i,j,f==null?void 0:(b=f.initInfo)==null?void 0:b.daily_budget_options_with_offset]);return k.jsx(c("PolarisBoostScreenWrapper.react"),{contentStyling:d("PolarisUA").isDesktop()?null:o.content,headerTitle:h._("__JHASH__w5yufwWrbOM__JHASH__"),onBack:F,onNext:D,primaryButtonEnable:!0,primaryButtonTitle:h._("__JHASH__Z-8Xn-mXkHQ__JHASH__"),children:k.jsxs(k.Fragment,{children:[k.jsxs(c("IGDSBox.react"),{alignItems:"center",justifyContent:"start",paddingY:8,children:[A,k.jsx(c("IGDSBox.react"),{paddingY:4,children:a})]}),k.jsx(c("IGDSBox.react"),{marginBottom:6,paddingX:4,children:k.jsx(c("PolarisBoostBudgetAndDurationSelection.react"),{currency:g,currencyOffset:i,dailyBudget:w,dailyBudgetOptions:b,draftID:"",durationInDays:y,durationInDaysOptions:q(p),durationType:d("PolarisBoostDefaultValues.react").DEFAULT_EDIT_DURATION_TYPE,minSuggestedBudget:j,onDailyBudgetChange:v,onDurationInDaysChange:x,onDurationTypeChange:function(){},onShouldShowAdsSchedulerChange:function(){},onStartTimeChange:function(){},shouldShowAdsScheduler:!1,shouldUseBodyEmphasizedHeaders:!1,startTime:null})}),B!==""&&k.jsx(c("PolarisBoostOkDialog.react"),{body:B,onPress:function(){C("")},title:h._("__JHASH__47x4hGz2Yn3__JHASH__")})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useBillingUpdateAccountSpendLimit_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingUpdateAccountSpendLimit_billableAccount",selections:[{alias:null,args:null,concreteType:"AdAccountASLScheduleInfo",kind:"LinkedField",name:"asl_schedule_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"initial_spend_limit_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"recurring_spend_limit_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"reset_period",storageKey:null}],storageKey:null},a,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:b,storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
useBillingHubSharedStoredBalanceItem",["BillingCurrencyAmount","BillingPaymentMethodDisplay","RelayHooks","useBillingHubSharedStoredBalanceItem_values.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingHubSharedStoredBalanceItem_values.graphql");function a(a){var b,c;a=d("RelayHooks").useFragment(i,a);b=a==null?void 0:(b=a.credential)==null?void 0:(b=b.balance_amount)==null?void 0:b.currency;if((a==null?void 0:(c=a.credential)==null?void 0:c.__typename)!=="StoredBalance"||(a==null?void 0:(c=a.credential)==null?void 0:c.stored_balance_type)!=="BUSINESS_LEVEL"||b==null)return null;c=(c=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(c=a.credential)==null?void 0:c.balance_amount))!=null?c:d("BillingCurrencyAmount").createZero(b);return{headline:d("BillingPaymentMethodDisplay").getSharedStoredBalanceDisplay(b),paymentMethodID:(a=a==null?void 0:(b=a.credential)==null?void 0:b.id)!=null?a:null,secondaryText:c.toString()}}g["default"]=a}),98);
-----
useBillingHubSharedStoredBalanceItem_values.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingHubSharedStoredBalanceItem_values",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"stored_balance_type",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[a,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],type:"PaymentCredentialDetails",abstractKey:null}}();e.exports=a}),null);
-----
BillingRequestSharedStoredBalanceRefundState",["fbt","BillingCurrencyAmount","BillingRequestSharedStoredBalanceRefundStateMutation.graphql","BillingRequestSharedStoredBalanceRefundStateQuery.graphql","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i!==void 0?i:i=b("BillingRequestSharedStoredBalanceRefundStateQuery.graphql"),l=j!==void 0?j:j=b("BillingRequestSharedStoredBalanceRefundStateMutation.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingRequestSharedStoredBalanceRefundStateQuery.graphql",["BillingRequestSharedStoredBalanceRefundStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"sharedStoredBalanceID"}],c=[{kind:"Variable",name:"id",variableName:"sharedStoredBalanceID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingRequestSharedStoredBalanceRefundStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[e,d],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingRequestSharedStoredBalanceRefundStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[d,e],storageKey:null}],type:"StoredBalance",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingRequestSharedStoredBalanceRefundStateQuery_facebookRelayOperation"),metadata:{},name:"BillingRequestSharedStoredBalanceRefundStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingDSLBoostAuthView.react",["BillingCurrencyAmount","BillingDSLBoostAuthView_item.graphql","BillingDSLBoostConstants","BillingRiskCredentialRow.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("BillingDSLBoostAuthView_item.graphql");function a(a){var b,e=c("useBillingWizardComponents")();e=e.Row;var f=a.eligibleBoost,g=a.handleSelectCard,h=a.isDefaultPM,i=a.selectedID,l=a.verificationIntent,m=d("RelayHooks").useFragment(k,a.item),n=m==null?void 0:m.credential;m=m==null?void 0:m.usability;if((n==null?void 0:n.__typename)!=="ExternalCreditCard")return null;var o=(b=n==null?void 0:n.credential_id)!=null?b:"";b=h===!0&&a.selectedID==="";h=o===i;b===!0&&(g(o),h=!0);i=c("BillingDSLBoostConstants").dslBoostIncreaseEligibility(((a=f)!=null?a:d("BillingCurrencyAmount").createZero("USD")).toString());return j.jsx(e,{justify:"space-between",marginBottom:8,onPress:function(){return g(o)},onPressType:"SELECT",rowLabel:i,selected:h,children:j.jsx(c("BillingRiskCredentialRow.react"),{item:n,usability:m,verificationIntent:l})},o)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingDSLBoostAuthScreen.react",["BillingCurrencyAmount","BillingDSLBoostAuthScreenQuery.graphql","BillingDSLBoostAuthView.react","BillingDSLBoostConstants","BillingRiskVerificationConstants","BillingRowContainer.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState,l=h!==void 0?h:h=b("BillingDSLBoostAuthScreenQuery.graphql");function a(a){var b=a.handleSubmitCard,e=a.preloadedQuery,f=a.verificationIntent,g=f===void 0?"SFI":f;f=a.wrapperProps;a=c("useBillingWizardComponents")();var h=a.Row,i=a.Text;a=a.Wrapper;e=d("RelayHooks").usePreloadedQuery(l,e);var m=k(""),n=m[0],o=m[1];m=(m=e==null?void 0:(m=e.billable_account_by_payment_account)==null?void 0:(m=m.billing_payment_account)==null?void 0:m.billing_payment_methods)!=null?m:[];var p=m.filter(function(a){return(a==null?void 0:(a=a.credential)==null?void 0:a.__typename)==="ExternalCreditCard"});e=e==null?void 0:(e=e.billable_account_by_payment_account)==null?void 0:e.formatted_dsl;var q=c("BillingRiskVerificationConstants").authorizeButton,r=function(){return b(n)},s=!0;p=p==null?void 0:p.map(function(a){var b;b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((b=a.credential)==null?void 0:(b=b.dsl_boost_eligibility)==null?void 0:b.eligible_boost);if(b!=null){a=j.jsx(c("BillingDSLBoostAuthView.react"),{eligibleBoost:b,handleSelectCard:o,isDefaultPM:s,item:a,selectedID:n,verificationIntent:g},a==null?void 0:(b=a.credential)==null?void 0:b.id);s=!1;return a}});m=((m=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((m=m[0])==null?void 0:(m=m.credential)==null?void 0:m.sdc_auth_amount_localized))!=null?m:d("BillingCurrencyAmount").getFromUserInput("1","USD")).toString();return j.jsx(a,babelHelpers["extends"]({},f,{primaryButton:{action:r,label:q},title:c("BillingRiskVerificationConstants").header,children:j.jsxs(c("BillingRowContainer.react"),{marginBottom:16,children:[j.jsx(h,{children:j.jsx(i,{body:c("BillingDSLBoostConstants").dslAuthBody((a=e)!=null?a:""),bodyColor:"secondary",headline:c("BillingRiskVerificationConstants").authorizeHeader})}),j.jsx(h,{children:j.jsx(i,{body:c("BillingRiskVerificationConstants").riskAuthBody(m),bodyColor:"secondary"})}),p]})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=l;g["default"]=a}),98);
-----
BillingDSLBoostAuthScreenQuery.graphql",["BillingDSLBoostAuthScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},d=[c],e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};c=[c,{kind:"Literal",name:"show_default_amount",value:!0}];var g=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],h=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:g,args:null,argumentDefinitions:[]}],i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"formatted_dsl",storageKey:null}],type:"AdAccount",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingDSLBoostAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"BillingDSLBoostAuthView_item"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[e,f,{kind:"InlineFragment",selections:[{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:h,storageKey:null},{alias:null,args:null,concreteType:"XFBDslBoostCredentialEligibilityInfo",kind:"LinkedField",name:"dsl_boost_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"eligible_boost",plural:!1,selections:h,storageKey:null}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},i],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingDSLBoostAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[e,{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},{alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:"billing_icons(limit:1)"},{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"XFBDslBoostCredentialEligibilityInfo",kind:"LinkedField",name:"dsl_boost_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"eligible_boost",plural:!1,selections:g,storageKey:null}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null},f],storageKey:null}],storageKey:null},f],storageKey:null},i,f],storageKey:null}]},params:{id:b("BillingDSLBoostAuthScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingDSLBoostAuthScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingIAPInputValidation",["fbt","BillingCurrencyAmount","RelayHooks","useBillingIAPInputValidation.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i!==void 0?i:i=b("useBillingIAPInputValidation.graphql");function a(a,b,c,e,f){var g;a=d("RelayHooks").useFragment(j,a);var i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.xfb_billing_iap_amount_range_inquiry)==null?void 0:g.max_topup_currency_amount),k=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.xfb_billing_iap_amount_range_inquiry)==null?void 0:g.min_topup_currency_amount);a=function(a){if(a==null)return;a=d("BillingCurrencyAmount").getFromUserInput(a,b);var g=null;c&&(a.compare(e)<0||a.isZero())?g=h._("Add at least {budget amount} to cover your ad budget.",[h._param("budget amount",e.format())]):c&&i!=null&&a.compare(i)>0?g=h._("You can"t add more than {max amount} at a time.",[h._param("max amount",i.format())]):k!=null&&i!=null&&(a.compare(k)<0||a.compare(i)>0)&&(g=h._("Enter amount between {min amount} and {max amount}.",[h._param("min amount",k.format()),h._param("max amount",i.format())]));f(g)};return{validate:a}}g["default"]=a}),98);
-----
useBillingIAPInputValidation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{kind:"RootArgument",name:"deviceCountry"},{kind:"RootArgument",name:"deviceCurrency"},{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:null,name:"useBillingIAPInputValidation",selections:[{alias:null,args:[{kind:"Variable",name:"device_country_code",variableName:"deviceCountry"},{kind:"Variable",name:"device_currency",variableName:"deviceCurrency"},{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],concreteType:"XFBBillingIAPAmountRanges",kind:"LinkedField",name:"xfb_billing_iap_amount_range_inquiry",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_topup_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_topup_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsRecurringDetailsSection.react",["fbt","BillingCurrencyAmount","BillingHubPaymentSettingsRecurringDetailsSection_billableAccount.graphql","BillingHubPaymentsSettingsRecurringSubscriptionCardConstants","BillingHubSurfaceContext","CometRelay","GeoBaseText.react","GeoButton.react","GeoDataText.react","GeoHStack.react","GeoSection.react","XBizWebCometBizSuiteSettingsMV4BControllerRouteBuilder","goURIOnWindow","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingHubPaymentSettingsRecurringDetailsSection_billableAccount.graphql"),l={mainButton:{maxWidth:"x14r61f",$$css:!0}};function a(a){a=a.account;a=d("CometRelay").useFragment(k,a);a=(a=a==null?void 0:a.currency)!=null?a:"USD";a=d("BillingCurrencyAmount").getFromUserInput("100",a);var b=d("BillingHubSurfaceContext").useBillingHubSurfaceContext();b=b.businessID;var e=c("XBizWebCometBizSuiteSettingsMV4BControllerRouteBuilder").buildUri({business_id:b==null?void 0:b.toString(),nav_ref:"billing_hub_payments_settings"});b=j.jsx(c("GeoButton.react"),{label:c("BillingHubPaymentsSettingsRecurringSubscriptionCardConstants").manageSubscriptionButtonText,onClick:function(){c("goURIOnWindow")(window.open("","_blank"),e.toString())},variant:"primary",xstyle:l.mainButton});return j.jsx(c("GeoSection.react"),{children:j.jsx("div",{children:j.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",children:[j.jsxs(c("GeoHStack.react"),{alignItems:"baseline",justifyContent:"start",children:[j.jsx(c("GeoDataText.react"),{children:a.toString()}),j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:h._("+ tax")})]}),b]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingMV4BSubscriptionDetailsScreen_billingInfo.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingMV4BSubscriptionDetailsScreen_billingInfo",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"DigitalCommerceOrderDetails",kind:"LinkedField",name:"order_details",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"XFBDigitalCommerceQuoteDetails",kind:"LinkedField",name:"quote_details",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"base_amount",plural:!1,selections:a,storageKey:null},action:"THROW",path:"order_details.quote_details.base_amount"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"XFBDigitalCommerceQuoteTaxDetails",kind:"LinkedField",name:"tax_details",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount",plural:!1,selections:a,storageKey:null},action:"THROW",path:"order_details.quote_details.tax_details.amount"}],storageKey:null},action:"THROW",path:"order_details.quote_details.tax_details"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:a,storageKey:null},action:"THROW",path:"order_details.quote_details.total_amount"}],storageKey:null},action:"THROW",path:"order_details.quote_details"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"XFBDigitalCommerceSubscriptionDetails",kind:"LinkedField",name:"subscription_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"est_next_bill_due_time",storageKey:null}],storageKey:null},action:"THROW",path:"order_details.subscription_details"}],storageKey:null},action:"THROW",path:"order_details"}],type:"PAYGenericDCPOrder",abstractKey:null}}();e.exports=a}),null);
-----
BillingIAPBudgetInput.react",["fbt","BillingCurrencyAmount","clearTimeout","react","setTimeout","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useRef,l=b.useState;function a(a){var b=a.currency,e=a.defaultAmount,f=a.setAmount,g=k(),m=k(!0);a=c("useBillingWizardComponents")();var n=a.Row;a=a.TextInput;e=l(e);var o=e[0],p=e[1];j(function(){if(m.current){m.current=!1;return}c("clearTimeout")(g.current);g.current=c("setTimeout")(function(){f(d("BillingCurrencyAmount").getFromUserInput(o,b))},500);return function(){return c("clearTimeout")(g.current)}},[b,o,f]);e=function(){var a;p((a=d("BillingCurrencyAmount").getFromUserInput(o,b))==null?void 0:a.toString())};return i.jsx(n,{marginBottom:16,children:i.jsx(a,{label:h._("Funds to add"),name:"inputAmount",onBlur:e,onValueChange:p,value:o})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingIAPSummarySectionView.react",["fbt","BillingCurrencyAmount","BillingIAPSummarySectionView_preQuoteOption.graphql","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingIAPSummarySectionView_preQuoteOption.graphql");function a(a){a=a.data;var b=c("useBillingWizardComponents")(),e=b.Column,f=b.Row;b=b.Text;a=d("RelayHooks").useFragment(k,a);var g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.to_load_amount);a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.est_to_charge_amount);var i=null;g!=null&&a!=null&&(i=a.subtract(g));return j.jsxs(e,{padding:16,withBackground:!0,children:[j.jsx(f,{marginBottom:8,children:j.jsx(b,{headline:h._("u652fu4ed8u6458u8981"),level:4})}),j.jsxs(f,{justify:"space-between",marginBottom:8,wrap:!1,children:[j.jsx(b,{body:h._("u9884u5145u503cu91d1"),level:4}),j.jsx(b,{body:g==null?void 0:g.toString(),level:4})]}),j.jsxs(f,{borderBottom:!0,justify:"space-between",marginBottom:8,wrap:!1,children:[j.jsx(b,{body:h._("u5e94u7528u5546u5e97u624bu7eedu8d39"),level:4}),j.jsx(b,{body:(e=i)==null?void 0:e.toString(),level:4})]}),j.jsxs(f,{justify:"space-between",marginBottom:8,wrap:!1,children:[j.jsx(b,{headline:h._("u5e94u4ed8u603bu989d"),level:4}),j.jsx(b,{body:a==null?void 0:a.toString(),level:4})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingIAPSummarySection_Query.graphql",["BillingIAPScreenRefetchQuery.graphql"],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"budgetAmount"},{kind:"RootArgument",name:"budgetCurrency"},{kind:"RootArgument",name:"deviceCurrency"},{kind:"RootArgument",name:"paymentAccountID"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:[],operation:b("BillingIAPScreenRefetchQuery.graphql")}},name:"BillingIAPSummarySection_Query",selections:[{alias:null,args:[{kind:"Variable",name:"device_currency",variableName:"deviceCurrency"},{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},{fields:[{kind:"Variable",name:"amount",variableName:"budgetAmount"},{kind:"Variable",name:"currency",variableName:"budgetCurrency"}],kind:"ObjectValue",name:"target_currency_amount"}],concreteType:"XFBBillingIAPPreQuoteOption",kind:"LinkedField",name:"xfb_billing_iap_prequote_options",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"BillingIAPSummarySectionView_preQuoteOption"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_to_charge_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pre_quote_obj_id",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null};e.exports=a}),null);
-----
BillingIAPSummarySectionView_preQuoteOption.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingIAPSummarySectionView_preQuoteOption",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_to_charge_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"to_load_amount",plural:!1,selections:a,storageKey:null}],type:"XFBBillingIAPPreQuoteOption",abstractKey:null}}();e.exports=a}),null);
-----
BillingBudgetSection.react",["fbt","BillingBudgetSection_billableAccount.graphql","BillingCurrencyAmount","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingBudgetSection_billableAccount.graphql");function a(a){var b,e=a.billableAccount;a=a.budget;e=d("RelayHooks").useFragment(k,e);var f=c("useBillingWizardComponents")(),g=f.Column,i=f.Row;f=f.Text;e=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.prepay_balance))!=null?b:d("BillingCurrencyAmount").createZero((b=e==null?void 0:e.currency)!=null?b:"USD");b=null;(a==null?void 0:a.isZero())===!1&&(b=j.jsxs(g,{divider:!0,expanding:!0,padding:16,children:[j.jsx(i,{justify:"space-around",marginBottom:8,children:j.jsx(f,{headline:a.toString(),level:2})}),j.jsx(i,{justify:"space-around",children:j.jsx(f,{level:4,meta:h._("Ad cost")})})]}));a=j.jsxs(g,{expanding:!0,padding:16,children:[j.jsx(i,{justify:"space-around",marginBottom:8,children:j.jsx(f,{headline:e.toString(),level:2})}),j.jsx(i,{justify:"space-around",children:j.jsx(f,{level:4,meta:h._("Current funds")})})]});return j.jsxs(i,{borderBottom:!0,justify:"space-around",marginBottom:16,children:[b,a]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingIAPSummarySection.react",["fbt","BillingCurrencyAmount","BillingIAPSummarySection_preQuoteOption.graphql","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingIAPSummarySection_preQuoteOption.graphql");function a(a){a=a.preQuoteObject;var b=d("RelayHooks").useFragment(k,a),e=c("useBillingWizardComponents")(),f=e.Column,g=e.Glimmer,i=e.Row;e=e.Text;var l=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.to_load_amount);b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.est_to_charge_amount);var m=null;l!=null&&b!=null&&(m=b.subtract(l));return j.jsxs(f,{padding:16,withBackground:!0,children:[j.jsx(i,{marginBottom:8,children:j.jsx(e,{headline:h._("Payment summary"),level:4})}),j.jsxs(i,{justify:"space-between",marginBottom:8,wrap:!1,children:[j.jsx(e,{body:h._("Prepaid funds"),level:4}),a!=null?j.jsx(e,{body:l==null?void 0:l.toString(),level:4}):j.jsx(f,{fieldSize:6,children:j.jsx(g,{index:1,lines:1,textLevel:4,textType:"body"})})]}),j.jsxs(i,{borderBottom:!0,justify:"space-between",marginBottom:8,wrap:!1,children:[j.jsx(e,{body:h._("App store fees"),level:4}),a!=null?j.jsx(e,{body:(l=m)==null?void 0:l.toString(),level:4}):j.jsx(f,{fieldSize:6,children:j.jsx(g,{index:1,lines:1,textLevel:4,textType:"body"})})]}),j.jsxs(i,{justify:"space-between",marginBottom:8,wrap:!1,children:[j.jsx(e,{headline:h._("Total due"),level:4}),a!=null?j.jsx(e,{body:b==null?void 0:b.toString(),level:4}):j.jsx(f,{fieldSize:6,children:j.jsx(g,{index:1,lines:1,textLevel:4,textType:"body"})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingIAPSummarySection_preQuoteOption.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingIAPSummarySection_preQuoteOption",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"est_to_charge_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"to_load_amount",plural:!1,selections:a,storageKey:null}],type:"XFBBillingIAPPreQuoteOption",abstractKey:null}}();e.exports=a}),null);
-----
BillingBudgetSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingBudgetSection_billableAccount",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingSecureBusinessRefundsScreenQuery.graphql",["BillingSecureBusinessRefundsScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"businessID"}],c=[{kind:"Variable",name:"id",variableName:"businessID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSecureBusinessRefundsScreenQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBCPRefund",kind:"LinkedField",name:"active_bcp_refund_request",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[e,d],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSecureBusinessRefundsScreenQuery",selections:[{alias:null,args:c,concreteType:"AdBusiness",kind:"LinkedField",name:"business",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBCPRefund",kind:"LinkedField",name:"active_bcp_refund_request",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[d,e],storageKey:null},f],storageKey:null},f],storageKey:null}]},params:{id:b("BillingSecureBusinessRefundsScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingSecureBusinessRefundsScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingHubSharedPrepaidFundsScreen.react",["BillingCurrencyAmount","BillingHubSharedPrepaidFundsScreen_paymentAccount.graphql","BillingHubSharedPrepaidFundsSelector.react","BillingHubSharedPrepaidFundsTransactionTable.react","BillingHubSharedStoredBalanceActionButton.react","BillingHubTableLoadingState.react","CometPlaceholder.react","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoSection.react","GeoVStack.react","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useState,k={balanceText:{marginEnd:"xq8finb",$$css:!0}},l=h!==void 0?h:h=b("BillingHubSharedPrepaidFundsScreen_paymentAccount.graphql");function a(a){var b;a=a.paymentAccountRef;a=d("RelayHooks").useFragment(l,a);b=(b=a.billing_payment_methods)!=null?b:[];var e=b.find(function(a){var b;return((b=a.credential)==null?void 0:b.id)!=null&&((b=a.credential)==null?void 0:b.__typename)==="StoredBalance"});e=j((e=e==null?void 0:(e=e.credential)==null?void 0:e.id)!=null?e:"");var f=e[0];e=e[1];b=b.find(function(a){return((a=a.credential)==null?void 0:a.id)===f});b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:(b=b.credential)==null?void 0:b.balance_amount);return i.jsx(c("GeoCard.react"),{children:i.jsxs(c("GeoVStack.react"),{context:"content",relation:"section",children:[i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",children:[i.jsx(c("GeoFlexbox.react"),{children:i.jsx(c("BillingHubSharedPrepaidFundsSelector.react"),{onSelectID:e,paymentAccountRef:a,selectedID:f})}),i.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[i.jsx(c("GeoHeading.react"),{level:1,xstyle:k.balanceText,children:(e=b==null?void 0:b.toString())!=null?e:""}),i.jsx(c("BillingHubSharedStoredBalanceActionButton.react"),{storedBalanceID:f})]})]})}),i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("BillingHubTableLoadingState.react"),{includeDivider:!0}),children:i.jsx(c("BillingHubSharedPrepaidFundsTransactionTable.react"),{paymentAccountRef:a})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubSharedPrepaidFundsScreen_paymentAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubSharedPrepaidFundsScreen_paymentAccount",selections:[{args:null,kind:"FragmentSpread",name:"BillingHubSharedPrepaidFundsTransactionTable_paymentAccount"},{args:null,kind:"FragmentSpread",name:"BillingHubSharedPrepaidFundsSelector_paymentAccount"},{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"balance_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}],storageKey:null}],storageKey:null}],type:"BusinessPaymentAccount",abstractKey:null};e.exports=a}),null);
-----
PolarisBoostBudgetAndDurationSelection.react",["fbt","BillingCurrencyAmount","CometFormSelectOnlyCombobox.react","CometFormTextInput.react","IGDSBox.react","IGDSText.react","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostWarningMessage.react","PolarisUA","qex","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useState,l={warningPadding:{paddingTop:"x1iorvi4",paddingBottom:"xjkvuk6",$$css:!0}};function a(a){var b=a.currency,e=a.currencyOffset,f=a.dailyBudget,g=a.dailyBudgetOptions,m=a.durationInDays,n=a.durationInDaysOptions,o=a.logger,p=a.minSuggestedBudget,q=a.onDailyBudgetChange,r=a.onDurationInDaysChange;a=k(!1);var s=a[0],t=a[1];j(function(){var a=parseInt(f.multiply(m).multiply(e).asGraphQLInput().amount,10);a<=p&&c("qex")._("1367")===!0?(t(!0),o==null?void 0:o.logViewComponent("low_budget_warning","budget_duration")):t(!1)},[f,m,e,p,o]);var u=function(a){return a.format({showCurrencyCode:!1,showDecimals:!1,showSymbol:!0,stripZeros:!0,thousandSeparator:!0})};a=g.map(function(a){a=u(a);return{label:h._("{ad budget option}",[h._param("ad budget option",a)]),value:a}});g=n.map(function(a){return{label:h._("{ad duration in days option}",[h._param("ad duration in days option",a)]),value:a.toString(10)}});n=function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,b);q(a)};var v=function(a){a=parseInt(a,10);r(a)};return i.jsxs(c("IGDSBox.react"),{width:"100%",children:[i.jsxs(c("IGDSBox.react"),{flex:"grow",paddingY:2,children:[i.jsx(c("IGDSText.react").LabelEmphasized,{textAlign:"start",children:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_SECTION_TITLE}),i.jsx(c("IGDSBox.react"),{paddingY:4,children:d("PolarisUA").isDesktop()&&c("qex")._("1355")===!0?i.jsx(c("CometFormTextInput.react"),{autoFocus_PLEASE_USE_FOCUS_REGION_INSTEAD:!0,inputMode:"numeric",label:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_SECTION_LABEL,onValueChange:n,validationState:f.isZero()?"ERROR":null,value:u(f)}):i.jsx(c("CometFormSelectOnlyCombobox.react"),{label:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_SECTION_LABEL,onValueChange:n,options:a,value:u(f)})}),s&&i.jsx(c("PolarisBoostWarningMessage.react"),{message:d("PolarisBoostBudgetAndDurationScreenStrings").LOW_BUDGET_WARNING,xstyle:l.warningPadding})]}),i.jsx(c("IGDSText.react").LabelEmphasized,{textAlign:"start",children:d("PolarisBoostBudgetAndDurationScreenStrings").DURATION_IN_DAYS_SECTION_TITLE}),i.jsx(c("IGDSBox.react"),{paddingY:4,children:i.jsx(c("CometFormSelectOnlyCombobox.react"),{label:d("PolarisBoostBudgetAndDurationScreenStrings").DURATION_IN_DAYS_SECTION_LABEL,onValueChange:v,options:g,value:isNaN(m)?"":m.toString(10)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
usePolarisBoostFetchInitialData",["BillingCurrencyAmount","CometRelay","PolarisBoostDefaultValues.react","PolarisReactRedux","gkx","polarisUserSelectors","react","usePolarisBoostFetchInitialDataQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useMemo,j=h!==void 0?h:h=b("usePolarisBoostFetchInitialDataQuery.graphql");function a(a){var b,e,f,g,h=a.businessPersonAccessToken,k=a.flowID,l=a.logger;a=a.mediaID;k=d("CometRelay").useLazyLoadQuery(j,{initData:{fb_auth_token:h,media_id:a,promote_entry_point:"promote_flow"},ndpData:{ad_amount:"0",fb_auth_token:h,flow_id:k,media_id:a}});a=k.xdt_ads_promote_init_promote_graphql;var m=a.error,n=a.initInfo,o=a.prefillInfo;a=k.xdt_ads_promote_review_screen_details_v2.non_discrimination_policy_info;k=a.isAccepted;a=a.isBlockingCreate;b=((b=o==null?void 0:o.is_boosted_again)!=null?b:!1)&&c("gkx")("8359");var p=(e=n==null?void 0:n.currency_offset)!=null?e:100;e=((e=n==null?void 0:n.daily_budget_options_with_offset)!=null?e:[]).map(function(a){return d("BillingCurrencyAmount").getFromUserInput((a/p).toString(10),(a=n==null?void 0:n.currency)!=null?a:"USD")});var q=e[0];if(((f=n==null?void 0:n.daily_budget_options_with_offset)!=null?f:[]).find(function(a){return a===(o==null?void 0:o.daily_budget_with_offset)})!=null){q=d("BillingCurrencyAmount").getFromUserInput((((f=o==null?void 0:o.daily_budget_with_offset)!=null?f:100)/p).toString(10),(f=n==null?void 0:n.currency)!=null?f:"USD")}else if(((f=n==null?void 0:n.daily_budget_options_with_offset)!=null?f:[]).find(function(a){return a===(n==null?void 0:n.default_daily_budget_with_offset)})!=null){q=d("BillingCurrencyAmount").getFromUserInput((((f=n==null?void 0:n.default_daily_budget_with_offset)!=null?f:100)/p).toString(10),(f=n==null?void 0:n.currency)!=null?f:"USD")}f=d("PolarisReactRedux").useSelector(function(a){return(a=d("polarisUserSelectors").getViewer(a))==null?void 0:a.username});var r=d("PolarisReactRedux").useSelector(function(a){return(a=d("polarisUserSelectors").getViewer(a))==null?void 0:a.id}),s=o==null?void 0:o.audience,t=i(function(){if(m&&m.error_identifier!=="ad_account_unsettled")return{identifier:m.error_identifier,message:m.internal_message};return n==null?{identifier:"empty_init_info",message:"init_info is null"}:null},[m,n]);g={adAccountID:n==null?void 0:n.ad_account_id,audience:b?{audienceID:s==null?void 0:s.audience_id,displayName:(g=s==null?void 0:s.display_name)!=null?g:"",geoLocations:(s==null?void 0:s.geo_locations)?s==null?void 0:s.geo_locations.map(function(a){return{displayName:a,key:""}}):void 0,interests:(s==null?void 0:s.interests)?s.interests.map(function(a){return{name:a,id:""}}):void 0,maxAge:(g=s==null?void 0:s.max_age)!=null?g:0,minAge:(g=s==null?void 0:s.min_age)!=null?g:0,subjectToDSA:(g=s==null?void 0:s.subject_to_dsa)!=null?g:void 0,targetGenders:!(s==null?void 0:s.genders)||s.genders.length===0?"ALL":s.genders[0]}:void 0,budgetDurationSuggestions:{dailyBudgetSuggestion:d("BillingCurrencyAmount").getFromUserInput((((g=n==null?void 0:n.default_daily_budget_with_offset)!=null?g:100)/p).toString(10),(s=n==null?void 0:n.currency)!=null?s:"USD"),durationSuggestion:(g=n==null?void 0:n.default_duration_in_days)!=null?g:6},businessPersonAccessToken:h,cta:b?(s=o==null?void 0:o.call_to_action)!=null?s:void 0:void 0,currency:n==null?void 0:n.currency,currencyOffset:(g=n==null?void 0:n.currency_offset)!=null?g:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY_OFFSET,dailyBudget:q,dailyBudgetOptions:e,displayURL:(h=n==null?void 0:n.display_url)!=null?h:"",dsa:{beneficiary:(q=(g=n==null?void 0:(s=n.dsa_data)==null?void 0:s.beneficiary)!=null?g:f)!=null?q:"",payor:(s=(h=n==null?void 0:(e=n.dsa_data)==null?void 0:e.payor)!=null?h:f)!=null?s:"",hasCompletedDSAFlow:(q=n==null?void 0:(g=n.dsa_data)==null?void 0:g.has_completed_dsa_flow)!=null?q:!0},durationInDays:(e=o==null?void 0:o.duration_in_days)!=null?e:n==null?void 0:n.default_duration_in_days,estimatedReach:{min:(s=o==null?void 0:(h=o.reach_estimate)==null?void 0:h.lower_bound)!=null?s:0,max:(q=o==null?void 0:(g=o.reach_estimate)==null?void 0:g.upper_bound)!=null?q:0},goal:b?(e=o==null?void 0:o.destination)!=null?e:d("PolarisBoostDefaultValues.react").DEFAULT_GOAL:d("PolarisBoostDefaultValues.react").DEFAULT_GOAL,id:r,isBoostedAgain:b,isPoliticalAdsEligible:n==null?void 0:n.is_political_ads_eligible,logger:l,minSuggestedBudget:(h=n==null?void 0:n.min_suggested_total_budget_with_offset)!=null?h:0,showNDPScreen:!k&&a,username:f,website:b?(s=o==null?void 0:o.website_url)!=null?s:void 0:void 0};return{errorLog:t,initialGlobalProps:g}}g["default"]=a}),98);
-----
BillingPaymentAccountAddFundsState",["BillingAddFundsStatusConstants","BillingCurrencyAmount","BillingPaymentAccountAddFundsStateMutation.graphql","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingPaymentAccountAddFundsStateMutation.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingPaymentAccountAddFundsStateMutation.graphql",["BillingPaymentAccountAddFundsStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"charged_payment_method_id",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"payment_id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"result",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"external_uri",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"nonce",storageKey:null},m={alias:null,args:null,concreteType:"IframeBrokeredPaymentURLParams",kind:"LinkedField",name:"params",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPaymentAccountAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"AddFundsResponsePayload",kind:"LinkedField",name:"payment_account_add_funds",plural:!1,selections:[{alias:null,args:null,concreteType:"StoredBalance",kind:"LinkedField",name:"stored_balance",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"balance",plural:!1,selections:[d,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[e,d],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},f,g,h,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[{kind:"InlineFragment",selections:[j,k,l,m],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPaymentAccountAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"AddFundsResponsePayload",kind:"LinkedField",name:"payment_account_add_funds",plural:!1,selections:[{alias:null,args:null,concreteType:"StoredBalance",kind:"LinkedField",name:"stored_balance",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"balance",plural:!1,selections:[d,e],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},f,g,h,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[j,{kind:"InlineFragment",selections:[k,l,m],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingPaymentAccountAddFundsStateMutation_facebookRelayOperation"),metadata:{},name:"BillingPaymentAccountAddFundsStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useBillingAddFunds_storedBalance.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingAddFunds_storedBalance",selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"balance",plural:!1,selections:[a,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null}],type:"StoredBalance",abstractKey:null}}();e.exports=a}),null);
-----
useBillingDownloadProforma",["BillingCurrencyAmount","BillingPrepayUtils","RelayHooks","XBillingProformaControllerRouteBuilder","react","regeneratorRuntime","useBillingDownloadProforma_account.graphql","useBillingLogger","useBillingWizardUtils"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useCallback,j=e.useMemo,k=h!==void 0?h:h=b("useBillingDownloadProforma_account.graphql");function a(a,e,f){var g=c("useBillingWizardUtils")();g=g.OpenLink;var h=g.read(),l=c("useBillingLogger")();g=d("RelayHooks").useFragment(k,e);var m=(e=g==null?void 0:g.crm_currency)!=null?e:"USD",n=d("BillingCurrencyAmount").createZero(m).format({showSymbol:!1});g=i(function(e){var g,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:g=d("BillingCurrencyAmount").getFromUserInput(e.amount,m);j.prev=1;i=c("XBillingProformaControllerRouteBuilder").buildUri({businessID:a,fundingAmount:g.toString()}).toString();h(i);j.next=6;return b("regeneratorRuntime").awrap(f({body:"Your pro forma has been generated and saved to your downloads.",headline:"Pro forma successfully generated",type:"SUCCESS"}));case 6:j.next=13;break;case 8:j.prev=8;j.t0=j["catch"](1);j.next=12;return b("regeneratorRuntime").awrap(f({body:"Please try again or contact support.",headline:"Unable to generate pro forma",type:"ERROR"}));case 12:throw j.t0;case 13:case"end":return j.stop()}},null,this,[[1,8]])},[a,m,f,h]);e=j(function(){return{amount:{defaultValue:n,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,m);a=d("BillingPrepayUtils").validateAmount(a,null,null,l);if(a!=null)return{message:a,validationState:"ERROR"}}}}},[m,l,n]);return{fields:e,handleSubmit:g}}g["default"]=a}),98);
-----
BillingRiskCredentialVerificationResultState",["BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingRiskCredentialVerificationResultStateQuery.graphql","BillingRiskVerificationConstants","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingRiskCredentialVerificationResultStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingRiskCredentialVerificationResultStateQuery.graphql",["BillingRiskCredentialVerificationResultStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"creditCardID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},d=[{kind:"Variable",name:"id",variableName:"creditCardID"}],e=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},{kind:"Literal",name:"show_default_amount",value:!0}],f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},h],type:"ExternalCreditCard",abstractKey:null};h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},h],type:"DirectDebit",abstractKey:null};var j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingRiskCredentialVerificationResultStateQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:e,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[g,i,h,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingRiskCredentialVerificationResultStateQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:e,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:f,storageKey:null}],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[i,h,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null}]},params:{id:b("BillingRiskCredentialVerificationResultStateQuery_facebookRelayOperation"),metadata:{},name:"BillingRiskCredentialVerificationResultStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingHubPaymentMethodsBusinessStoredBalanceItem.react",["ix","BillingCurrencyAmount","BillingHubBusinessStoredBalanceActionSheet.react","BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount.graphql","BillingHubPaymentMethodsCardItem.react","BillingHubWWWPaymentMethodUtils","CometRelay","GeoSplitButton.react","react","useBillingWizardForHub"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount.graphql");function a(a){var b;a=a.storedBalanceRef;a=d("CometRelay").useFragment(k,a);a=a.credential;b=(b=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(a==null?void 0:a.balance))!=null?b:d("BillingCurrencyAmount").createZero((b=a==null?void 0:(b=a.balance)==null?void 0:b.currency)!=null?b:"USD");b=d("BillingHubWWWPaymentMethodUtils").formatBodyText([{bodyText:b.toString(),bodyTextColor:"value"}]);var e=c("useBillingWizardForHub")({isBusinessLevelAction:!0}),f=e[0];e=e[1];e=j.jsx(c("GeoSplitButton.react"),{containerRef:e,label:"Fund wallet",menu:j.jsx(c("BillingHubBusinessStoredBalanceActionSheet.react"),{isBusinessLevelAction:!0,paymentMethodID:a==null?void 0:a.id}),onClick:function(){return f({wizardName:"ADD_FUNDS"},{eventContext:"add_funds"})},variant:"primary"});return j.jsx(c("BillingHubPaymentMethodsCardItem.react"),{actionButton:e,bodyContent:b,headline:"Stored Balance",paymentCredentialRef:a,paymentMethodID:a==null?void 0:a.id,paymentMethodIcon:h("1446163")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentMethodsBusinessStoredBalanceItem_billableAccount",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"balance",plural:!1,selections:[a,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingHubPaymentMethodsCardItem_credential"}],type:"StoredBalance",abstractKey:null}],storageKey:null}],type:"PaymentCredentialDetails",abstractKey:null}}();e.exports=a}),null);
-----
BillingRiskCredentialVerificationFailedStateQuery.graphql",["BillingRiskCredentialVerificationFailedStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"creditCardID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},d=[{kind:"Variable",name:"id",variableName:"creditCardID"}],e=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},{kind:"Literal",name:"show_default_amount",value:!0}],f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},h],type:"ExternalCreditCard",abstractKey:null};h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},h],type:"DirectDebit",abstractKey:null};var j={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},k={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingRiskCredentialVerificationFailedStateQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:e,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[g,i,h,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingRiskCredentialVerificationFailedStateQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:e,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:f,storageKey:null}],type:"ExternalCreditCard",abstractKey:null},{kind:"InlineFragment",selections:[i,h,j,k],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null}]},params:{id:b("BillingRiskCredentialVerificationFailedStateQuery_facebookRelayOperation"),metadata:{},name:"BillingRiskCredentialVerificationFailedStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRiskCredentialVerificationFailedState",["fbt","BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingRiskCredentialVerificationFailedStateQuery.graphql","BillingRiskVerificationConstants","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i!==void 0?i:i=b("BillingRiskCredentialVerificationFailedStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
PolarisBoostSummaryScreen.react",["fbt","BillingCurrencyAmount","BillingInfoUtils","CometRelay","CometRelayEnvironment","FastLink","IGDSBox.react","IGDSText.react","PolarisBillingRelayEnvironment","PolarisBoostAudienceDetailStrings","PolarisBoostCurrencyTypeConverter","PolarisBoostDefaultValues.react","PolarisBoostErrorStrings","PolarisBoostFlow","PolarisBoostObjectiveScreenStrings","PolarisBoostPaymentMethodTypeConverter","PolarisBoostScreenWrapper.react","PolarisBoostSubmitBoostErrorDialog.react","PolarisBoostSummaryScreenCreatePromotionMutation.graphql","PolarisBoostSummaryScreenStrings","PolarisBoostSummaryView.react","PolarisBoostUtils","XIGRelayEnvironment","isStringNullOrEmpty","react","useBillingInfoEstimatedTax","useBillingInfoPaymentSectionDetails","usePolarisBillingWizard"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useEffect,m=e.useState,n="https://www.facebook.com/legal/self_service_ads_terms/",o="https://www.facebook.com/policies/ads/",p="https://www.facebook.com/business/help/2405092116183307",q=i!==void 0?i:i=b("PolarisBoostSummaryScreenCreatePromotionMutation.graphql");function r(a,b,c,e){c===void 0&&(c="");e===void 0&&(e="");var f="";switch(b){case"DIRECT_MESSAGE":case"PROFILE_VISITS":f=d("PolarisBoostObjectiveScreenStrings").getTranslatedGoalType(b)+" | @"+c;break;case"WEBSITE_CLICK":f=d("PolarisBoostObjectiveScreenStrings").getTranslatedCTAString(a)+" | "+e;break;default:break}return f}function s(a){var b,c;b=d("BillingCurrencyAmount").createZero((b=a==null?void 0:(b=a.at(0))==null?void 0:(b=b.amount)==null?void 0:b.currency)!=null?b:"USD");c=(c=a==null?void 0:a.length)!=null?c:0;for(var e=0;e-----
PolarisBoostStringFormatter",["fbt","BillingCurrencyAmount","PolarisBoostCreateOrEditAudienceScreenStrings"],(function(a,b,c,d,e,f,g,h){"use strict";var i=1e4,j=1e6;function k(a){if(a=i&&a-----
PolarisBoostBudgetAndDurationScreen.react",["fbt","BillingCurrencyAmount","PolarisBoostBudgetAndDurationScreenStrings","PolarisBoostBudgetAndDurationView.react","PolarisBoostDefaultValues.react","PolarisBoostScreenWrapper.react","PolarisBoostUtils","isStringNullOrWhitespaceOnly","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useEffect,l=b.useState;function a(a){var b=a.audience,e=a.businessPersonAccessToken;e=e===void 0?"":e;var f=a.budgetDurationSuggestions,g=a.currency,m=g===void 0?d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY:g;g=a.currencyOffset;g=g===void 0?d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY_OFFSET:g;var n=a.dailyBudget;n=n===void 0?d("PolarisBoostDefaultValues.react").DEFAULT_DAILY_BUDGET:n;var o=a.dailyBudgetOptions;o=o===void 0?d("PolarisBoostDefaultValues.react").DEFAULT_DAILY_BUDGET_OPTIONS:o;var p=a.durationInDays;p=p===void 0?d("PolarisBoostDefaultValues.react").DEFAULT_DURATION_IN_DAYS:p;var q=a.goal;q=q===void 0?d("PolarisBoostDefaultValues.react").DEFAULT_GOAL:q;var r=a.logger,s=a.navigateTo;a=a.routeParams;var t=a.flow_id,u=a.media_id,v=a.return_path;n=l((a=n)!=null?a:o[0]);var w=n[0],x=n[1];a=l({max:0,min:0});var y=a[0],z=a[1];n=l(p);var A=n[0],B=n[1];a=l(!1);p=a[0];var C=a[1];n=j(function(){r==null?void 0:r.logTapComponent("education","budget_duration"),C(!0),r==null?void 0:r.logViewComponent("education_budget_duration_bottomsheet","budget_duration"),r==null?void 0:r.logActionSuccess("enter_education_drawer","education_budget_duration")},[r]);a=j(function(){C(!1),r==null?void 0:r.logActionSuccess("exit_education_drawer","education_budget_duration")},[r]);var D=j(function(){r==null?void 0:r.logFinishStepSuccess("budget_duration"),s("audience_selection")},[r,s]),E=j(function(){r==null?void 0:r.logFinishStepSuccess("budget_duration"),s("summary",{durationInDays:A,dailyBudget:w,estimatedReach:y})},[w,A,y,r,s]),F=j(function(a){(y.min!==a.min||y.max!==a.max)&&z(a)},[y.max,y.min]);k(function(){r==null?void 0:r.logStartStepSuccess("budget_duration"),r==null?void 0:r.logViewComponent("education","budget_duration")},[r]);var G=j(function(){return d("PolarisBoostUtils").polarisBoostDefaultCloseAction(v)},[v]);return i.jsx(c("PolarisBoostScreenWrapper.react"),{currentStep:3,hasExitWarningDialog:!0,headerTitle:d("PolarisBoostBudgetAndDurationScreenStrings").BUDGET_AND_DURATION_SCREEN_HEADER,onBack:D,onClose:G,onInfoPress:n,onNext:E,primaryButtonEnable:!0,primaryButtonTitle:h._("u7ee7u7eed"),children:i.jsx(c("PolarisBoostBudgetAndDurationView.react"),{audienceID:c("isStringNullOrWhitespaceOnly")(b==null?void 0:b.audienceID)?null:b.audienceID,budgetDurationSuggestions:f,businessPersonAccessToken:e,currencyOffset:g,dailyBudget:w,dailyBudgetOptions:o,durationInDays:A,durationInDaysOptions:d("PolarisBoostDefaultValues.react").DEFAULT_DURATION_IN_DAYS_OPTIONS,flowID:t,goal:q,mediaID:u,onAdditionalInfoClose:a,onBudgetChange:function(a){x(d("BillingCurrencyAmount").getFromUserInput(a,m))},onDurationInDaysChange:function(a){a=parseInt(a,10);B(parseInt(a,10))},onEstimatedReachUpdate:F,showAdditionalInfo:p})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PolarisBoostRoot.react",["BillingCurrencyAmount","CometErrorBoundary.react","CometPlaceholder.react","CometRelay","IGCoreModal","IGDSBox.react","IGDSErrorOutlineV2Icon","IGDSSpinner.react","PolarisBoostDefaultValues.react","PolarisBoostRootQuery.graphql","PolarisBoostScreenMap","PolarisGenericNullStateView.react","PolarisGenericStrings","PolarisPromotedPostsLogger","PolarisReactRedux","PolarisUA","PolarisUseInitBusinessPersonAccessToken","polarisUserSelectors","react","usePolarisSelector"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useEffect,k=e.useState,l=h!==void 0?h:h=b("PolarisBoostRootQuery.graphql"),m=i.jsx(c("IGDSSpinner.react"),{position:"absolute",size:"large"}),n=i.jsx(c("IGDSBox.react"),{alignItems:"center",justifyContent:"center",position:"relative",children:i.jsx(c("PolarisGenericNullStateView.react"),{header:d("PolarisGenericStrings").GENERIC_ERROR_MESSAGE,icon:i.jsx(c("IGDSErrorOutlineV2Icon"),{alt:d("PolarisGenericStrings").GENERIC_ERROR_MESSAGE,size:96})})});function o(a){var b,e=a.businessPersonAccessToken;a=babelHelpers.objectWithoutPropertiesLoose(a,["businessPersonAccessToken"]);var f=a.routeParams,g=f.context,h=f.flow_id;f=f.media_id;g=new(d("PolarisPromotedPostsLogger").PolarisPromotedPostsLogger)(d("PolarisPromotedPostsLogger").getPolarisBoostEntryPointType(g),f,h);h=d("CometRelay").useLazyLoadQuery(l,{initData:{fb_auth_token:e,media_id:f,promote_entry_point:"promote_flow"},ndpData:{ad_amount:"0",fb_auth_token:e,flow_id:h,media_id:f}});f=d("PolarisReactRedux").useSelector(function(a){return(a=d("polarisUserSelectors").getViewer(a))==null?void 0:a.username});var j=d("PolarisReactRedux").useSelector(function(a){return(a=d("polarisUserSelectors").getViewer(a))==null?void 0:a.id}),o=h.xdt_ads_promote_init_promote_graphql,p=o.error,q=o.initInfo,r=o.prefillInfo;o=h.xdt_ads_promote_review_screen_details_v2.non_discrimination_policy_info;h=o.is_accepted;o=o.is_blocking_create;var s="objective";p&&(g.logFetchDataError("init_fetch",p.error_identifier,p.internal_message,"init_boost_error"),(p==null?void 0:p.error_identifier)!=="ad_account_unsettled"&&(s="init_boost_error"));q==null&&(g.logFetchDataError("init_fetch","empty_init_info","init_info is null","init_boost_error"),s="init_boost_error");s!=="init_boost_error"&&g.logFetchDataSuccess("init_fetch",s);var t=(p=q==null?void 0:q.currency_offset)!=null?p:100;p=((p=q==null?void 0:q.daily_budget_options_with_offset)!=null?p:[]).map(function(a){return d("BillingCurrencyAmount").getFromUserInput((a/t).toString(10),(a=q==null?void 0:q.currency)!=null?a:"USD")});var u=p[0];if(((b=q==null?void 0:q.daily_budget_options_with_offset)!=null?b:[]).find(function(a){return a===(r==null?void 0:r.daily_budget_with_offset)})!=null){u=d("BillingCurrencyAmount").getFromUserInput((((b=r==null?void 0:r.daily_budget_with_offset)!=null?b:100)/t).toString(10),(b=q==null?void 0:q.currency)!=null?b:"USD")}else if(((b=q==null?void 0:q.daily_budget_options_with_offset)!=null?b:[]).find(function(a){return a===(q==null?void 0:q.default_daily_budget_with_offset)})!=null){u=d("BillingCurrencyAmount").getFromUserInput((((b=q==null?void 0:q.default_daily_budget_with_offset)!=null?b:100)/t).toString(10),(b=q==null?void 0:q.currency)!=null?b:"USD")}u=k({adAccountID:q==null?void 0:q.ad_account_id,budgetDurationSuggestions:{dailyBudgetSuggestion:d("BillingCurrencyAmount").getFromUserInput((((b=q==null?void 0:q.default_daily_budget_with_offset)!=null?b:100)/t).toString(10),(b=q==null?void 0:q.currency)!=null?b:"USD"),durationSuggestion:(b=q==null?void 0:q.default_duration_in_days)!=null?b:6},businessPersonAccessToken:e,currency:q==null?void 0:q.currency,currencyOffset:(b=q==null?void 0:q.currency_offset)!=null?b:d("PolarisBoostDefaultValues.react").DEFAULT_CURRENCY_OFFSET,dailyBudget:u,dailyBudgetOptions:p,displayURL:(e=q==null?void 0:q.display_url)!=null?e:"",durationInDays:(b=r==null?void 0:r.duration_in_days)!=null?b:q==null?void 0:q.default_duration_in_days,goal:d("PolarisBoostDefaultValues.react").DEFAULT_GOAL,id:j,isPoliticalAdsEligible:q==null?void 0:q.is_political_ads_eligible,logger:g,showNDPScreen:!h&&o,username:f});p=u[0];var v=u[1];e=k(s);b=e[0];var w=e[1];if(!Object.prototype.hasOwnProperty.call(c("PolarisBoostScreenMap"),b))return n;j=c("PolarisBoostScreenMap")[b];g=i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return n},children:i.jsx(c("CometPlaceholder.react"),{fallback:m,children:j!=null&&i.jsx(j,babelHelpers["extends"]({},p,a,{navigateTo:function(a,b){w(a),v(function(a){return babelHelpers["extends"]({},a,b)})}}))})});return d("PolarisUA").isDesktop()?i.jsx(c("IGCoreModal"),{fixedHeight:!0,fixedWidth:!0,size:"large",children:g}):g}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.props;c("PolarisUseInitBusinessPersonAccessToken")();j(function(){var a=new(d("PolarisPromotedPostsLogger").PolarisPromotedPostsLogger)(d("PolarisPromotedPostsLogger").getPolarisBoostEntryPointType(b.routeParams.context),b.routeParams.media_id,b.routeParams.flow_id);a.logFinishStepSuccess("fb_login")},[b.routeParams.context,b.routeParams.flow_id,b.routeParams.media_id]);a=c("usePolarisSelector")(function(c){c=c.businessPersonAccessToken;var a=c.businessPersonAccessToken,b=c.isFetching;c=c.remainingAttempts;return{businessPersonAccessToken:a,remainingAttempts:c,isFetching:b}});var e=a.businessPersonAccessToken,f=a.isFetching;a=a.remainingAttempts;if(e!=null)return i.jsx(o,babelHelpers["extends"]({},b,{businessPersonAccessToken:e}));else if((e==null||f)&&a>0)return m;return n}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PolarisBoostDefaultValues.react",["BillingCurrencyAmount","PolarisBoostAudienceDetailStrings","PolarisBoostSummaryScreenStrings"],(function(a,b,c,d,e,f,g){"use strict";a=d("PolarisBoostAudienceDetailStrings").AUTOMATIC_AUDIENCE_DETAILS.toString();b="USD";c=100;e=[d("BillingCurrencyAmount").getFromUserInput("1",b),d("BillingCurrencyAmount").getFromUserInput("1000",b)];f=d("BillingCurrencyAmount").getFromUserInput("1",b);var h=Array.from({length:30},function(a,b){return b+1}),i=1,j="VIEW_INSTAGRAM_PROFILE",k="PROFILE_VISITS",l="STORY",m=d("BillingCurrencyAmount").createZero(b);d=[{amount:m,taxName:d("PolarisBoostSummaryScreenStrings").SUMMARY_SCREEN_EST_TAX.toString(),taxRate:null}];var n="",o=0,p=0,q=["NONE"],r=18,s=65,t={audienceID:null,displayName:"Automatic",targetGenders:"ALL",geoLocations:null,interests:null,maxAge:s,minAge:r};g.DEFAULT_AUDIENCE_DETAILS=a;g.DEFAULT_CURRENCY=b;g.DEFAULT_CURRENCY_OFFSET=c;g.DEFAULT_DAILY_BUDGET_OPTIONS=e;g.DEFAULT_DAILY_BUDGET=f;g.DEFAULT_DURATION_IN_DAYS_OPTIONS=h;g.DEFAULT_DURATION_IN_DAYS=i;g.DEFAULT_CTA=j;g.DEFAULT_GOAL=k;g.DEFAULT_PREVIEW_TYPE=l;g.ZERO_CURRENCY=m;g.DEFAULT_TAXES=d;g.DEFAULT_USERNAME=n;g.DEFAULT_ESTIMATED_REACH_LOWER_BOUND=o;g.DEFAULT_ESTIMATED_REACH_UPPER_BOUND=p;g.DEFAULT_REGULATED_CATEGORIES=q;g.DEFAULT_MIN_AGE=r;g.DEFAULT_MAX_AGE=s;g.DEFAULT_AUDIENCE=t}),98);
-----
useBillingHubCreditLinesAmounts",["BillingCurrencyAmount","BillingMICurrencyUtils","CometRelay","useBillingHubCreditLinesAmounts_iEntEC.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingHubCreditLinesAmounts_iEntEC.graphql");function a(a){var b,c,e,f;a=d("CometRelay").useFragment(i,a);var g=d("BillingMICurrencyUtils").getPreferredCurrency((b=a.liable_org)==null?void 0:b.preferred_currency,(b=a.unpaid_delivery)==null?void 0:b.currency);b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.allocated_amount);b=b!=null&&b.isZero()===!1;var h=d("BillingMICurrencyUtils").convertToNonNegativeAmount((c=a.allocated_amount)==null?void 0:c.amount),j=d("BillingMICurrencyUtils").convertToNonNegativeAmount((c=a.max_balance)==null?void 0:c.amount);c=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepayment_amount);c=c!=null&&c.isZero()===!1;var k=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.prepayment_amount)==null?void 0:e.amount),l=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.remaining_spendable_prepayment_amount)==null?void 0:e.amount),m=(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.unpaid_delivery)==null?void 0:e.amount))!=null?e:0,n=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.available_max_balance)==null?void 0:e.amount),o={amount:(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.to_be_invoiced_this_month)==null?void 0:e.amount))!=null?e:0,amountInUSD:(e=d("BillingMICurrencyUtils").convertToNonNegativeAmount((e=a.to_be_invoiced_this_month)==null?void 0:e.amountInUSD))!=null?e:0,currency:(e=a.to_be_invoiced_this_month)==null?void 0:e.currency},p=(e=a.liable_org)==null?void 0:e.fx_rate_for_preferred_currency;e=m!=null&&j!=null;f=j===0?100:Math.ceil(((f=m)!=null?f:0)/((f=j)!=null?f:1)*100);var q=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,m,a)},r=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,m,a)},s=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,n,a)},t=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,j,a)},u=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,k,a)},v=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,l,a)},w=function(a){return g===o.currency?d("BillingMICurrencyUtils").formatCurrency(g,o.amount):d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,o.amountInUSD,a)},x=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,m-o.amountInUSD,a)},y=function(a){return d("BillingMICurrencyUtils").formatCurrencyWithFxRate(g,p,h,a)};a=a.can_business_see_credit_limit===!0;return{displayCreditLimit:a,getFormattedAllocatedAmount:y,getFormattedAmountDue:x,getFormattedAmountSpent:q,getFormattedAmountSpentWithoutCurrency:r,getFormattedCreditAvailable:s,getFormattedCreditLimit:t,getFormattedNextBillingPeriod:w,getFormattedPrepaidBalance:v,getFormattedPrepaymentAmount:u,hasAllocatedAmount:b,hasPrepaymentAmount:c,percentSpent:f,showProgressBar:e}}g["default"]=a}),98);
-----
useBillingHubCreditLinesAmounts_iEntEC.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},b=[a],c={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},d=[a,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},c],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingHubCreditLinesAmounts_iEntEC",selections:[{alias:null,args:null,kind:"ScalarField",name:"can_business_see_credit_limit",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"available_max_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepayment_amount",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"remaining_spendable_prepayment_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"liable_org",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"fx_rate_for_preferred_currency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"preferred_currency",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"allocated_amount",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"unpaid_delivery",plural:!1,selections:[a,c],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"to_be_invoiced_this_month",plural:!1,selections:[a,{alias:"amountInUSD",args:[{kind:"Literal",name:"currency",value:"USD"}],kind:"ScalarField",name:"amount_in_currency",storageKey:"amount_in_currency(currency:"USD")"},c],storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"}}();e.exports=a}),null);
-----
BillingNexusExpandingCouponComponent.react",["fbt","ix","BaseRow.react","BaseRowItem.react","BillingCurrencyAmount","BillingNexusExpandingCouponComponent_account.graphql","BillingNexusItemContainer.react","CometImage.react","CometLink.react","CometRelay","TetraIcon.react","TetraText.react","TetraTextPairing.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useState,m={couponList:{paddingTop:"x1y1aw1k",$$css:!0},end:{alignItems:"xuk3077",paddingTop:"x1nn3v0j",$$css:!0},flex:{justifyContent:"x1qughib",$$css:!0},image:{marginEnd:"x1emribx",marginTop:"xr9ek0c",$$css:!0},textWrap:{marginBottom:"xu06os2",marginEnd:"x1emribx",marginTop:"x1ok221b",$$css:!0}},n=j!==void 0?j:j=b("BillingNexusExpandingCouponComponent_account.graphql");function a(a){var b,e,f=a.account,g=a.expandableArray,j=a.hasCampaignLevel;a=a.isCampaignLevel;f=d("CometRelay").useFragment(n,f);var o=l(!1),p=o[0],q=o[1];o=l(0);var r=o[0],s=o[1];o=d("BillingCurrencyAmount").createZero((o=f==null?void 0:f.currency)!=null?o:"USD");b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f==null?void 0:f.account_level_coupon_balance))!=null?b:o;e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f==null?void 0:f.campaign_level_coupon_balance))!=null?e:o;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f==null?void 0:f.coupon_balance))!=null?f:o;o=g.length>0&&g[0].length>0;a=a?k.jsxs(k.Fragment,{children:[k.jsx(c("TetraText.react"),{type:"headline4",children:h._("u5e7fu544au7cfbu5217u62b5u7528u91d1uff1a")}),k.jsxs(c("TetraText.react"),{type:"headlineEmphasized4",children:[" ",e.toString()]})]}):j?k.jsxs(k.Fragment,{children:[k.jsx(c("TetraText.react"),{type:"headline4",children:h._("u5e10u6237u62b5u7528u91d1uff1a")}),k.jsxs(c("TetraText.react"),{type:"headlineEmphasized4",children:[" ",b.toString()]})]}):k.jsx(c("TetraText.react"),{type:"headlineEmphasized4",children:f.toString()});return k.jsxs(k.Fragment,{children:[k.jsxs(c("BaseRow.react"),{align:"start",verticalAlign:"top",xstyle:m.flex,children:[k.jsx(c("BaseRowItem.react"),{children:k.jsxs(c("BaseRow.react"),{align:"start",verticalAlign:"top",children:[k.jsx(c("BaseRowItem.react"),{xstyle:m.image,children:k.jsx(c("CometImage.react"),{src:i("1507321")})}),k.jsx(c("BaseRowItem.react"),{xstyle:m.textWrap,children:k.jsx(c("TetraTextPairing.react"),{headline:a,level:3})})]})}),k.jsx(c("BaseRowItem.react"),{xstyle:m.end,children:o&&k.jsx(c("TetraIcon.react"),{alt:h._("u5207u6362u6269u5c55u89c6u56fe"),icon:p?d("fbicon")._(i("505564"),16):d("fbicon")._(i("492450"),16),onPress:function(){q(!p),r===0?s(1):s(0)}})})]}),o&&p&&k.jsx(c("BaseRowItem.react"),{xstyle:m.couponList,children:g.map(function(a,b){if(b-----
BillingNexusAccountSpendLimitActionSheet.react",["fbt","BillingCurrencyAmount","BillingNexusAccountSpendLimitActionSheet_adAccount.graphql","BillingNexusRootContext","CometMenuItem.react","CometPopover.react","CometRelay","react","useBillingWizard"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingNexusAccountSpendLimitActionSheet_adAccount.graphql");function l(a){var b=a.hasSpendLimit;a=a.paymentAccountID;a=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:function(){},paymentAccountID:a,wizardName:"UPDATE_ACCOUNT_SPEND_LIMIT"},"update_account_spend_limit");var e=a[0];a=a[1];return j.jsx(c("CometMenuItem.react"),{onClick:e,primaryText:b?h._("u66f4u6539"):h._("u8bbeu7f6eu9650u989d"),ref:a})}l.displayName=l.name+" [from "+f.id+"]";function m(a){a=a.paymentAccountID;a=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:function(){},paymentAccountID:a,wizardName:"RESET_SPEND"},"reset_spend_limit");var b=a[0];a=a[1];return j.jsx(c("CometMenuItem.react"),{onClick:b,primaryText:h._("u91cdu7f6e"),ref:a})}m.displayName=m.name+" [from "+f.id+"]";function n(a){a=a.paymentAccountID;a=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:function(){},paymentAccountID:a,wizardName:"REMOVE_ASL"},"remove_spend_limit");var b=a[0];a=a[1];return j.jsx(c("CometMenuItem.react"),{onClick:b,primaryText:h._("u79fbu9664"),ref:a})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b;a=a.sheetKey;var e=d("BillingNexusRootContext").useBillingNexusRootContext();e=e.paymentAccountID;a=d("CometRelay").useFragment(k,a);b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(b=a.spending_info)==null?void 0:b.spend_limit_currency_amount);a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(a=a.spending_info)==null?void 0:a.amount_spent_currency_amount);b=b!==null;a=!(a==null?void 0:a.isZero());var f=[];a&&b&&f.push(j.jsx(m,{paymentAccountID:e},"reset"));f.push(j.jsx(l,{hasSpendLimit:b,paymentAccountID:e},"change"));b&&f.push(j.jsx(n,{paymentAccountID:e},"remove"));return j.jsx(c("CometPopover.react"),{children:j.jsx("div",{className:"xwib8y2 x1y1aw1k",children:f})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingNexusExpandingCouponComponent_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingNexusExpandingCouponComponent_account",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"campaign_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:b,storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingNexusAccountSpendLimitActionSheet_adAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingNexusAccountSpendLimitActionSheet_adAccount",selections:[{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}}();e.exports=a}),null);
-----
BillingNexusAmountDueCard.react",["BillingCurrencyAmount","BillingNexusAmountDueCardContent","BillingNexusAmountDueCard_account.graphql","BillingNexusCard.react","BillingNexusControlsSection.react","BillingNexusHowYouWillPaySection.react","BillingNexusPayNowButton.react","CometColumnItem.react","CometRelay","CometRow.react","CometRowItem.react","TetraText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BillingNexusAmountDueCard_account.graphql");function a(a){var b,e,f,g,h;a=a.account;a=d("CometRelay").useFragment(j,a);var k=(a==null?void 0:a.account_status)==="DISABLED";b=(b=a==null?void 0:a.currency)!=null?b:"USD";e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance))!=null?e:d("BillingCurrencyAmount").createZero(b);f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_balance))!=null?f:d("BillingCurrencyAmount").createZero(b);b=!e.isZero();f=!f.isZero();var l=a==null?void 0:a.india_network_tokenization_migration_status,m=b&&((a==null?void 0:a.account_status)==="UNSETTLED"&&l!=="IN_PROGRESS"||(a==null?void 0:a.account_status)==="IN_GRACE_PERIOD");g=((g=a==null?void 0:(g=a.billing_payment_account)==null?void 0:g.primary_funding_source)!=null?g:[])[0];g=(g==null?void 0:g.usability)==="USABLE"?(g=g==null?void 0:g.credential)!=null?g:null:null;h=(h=a==null?void 0:a.qe_on_payment_account_by_string)!=null?h:!1;h=h||b;return i.jsxs(c("BillingNexusCard.react"),{headline:c("BillingNexusAmountDueCardContent").title,children:[i.jsxs(c("CometColumnItem.react"),{children:[i.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:[i.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:i.jsx(c("TetraText.react"),{color:"primary",type:"entityHeaderHeadline2",children:e.toString()})}),b&&!k&&i.jsx(c("CometRowItem.react"),{children:i.jsx(c("BillingNexusPayNowButton.react"),{account:a,tokenizationStatus:l})})]}),i.jsx(c("CometRow.react"),{paddingHorizontal:0,children:i.jsx(c("CometRowItem.react"),{children:i.jsx(c("TetraText.react"),{color:m?"negative":"secondary",type:"body4",children:m?c("BillingNexusAmountDueCardContent").paymentDue:c("BillingNexusAmountDueCardContent").noPayment})})})]}),!m&&(g!=null||f)?i.jsxs(c("CometColumnItem.react"),{children:[i.jsx(c("BillingNexusHowYouWillPaySection.react"),{account:a}),h&&i.jsx(c("BillingNexusControlsSection.react"),{account:a})]}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingNexusControlsSection.react",["fbt","ix","BillingCurrencyAmount","BillingNexusAmountDueCardContent","BillingNexusControlsSection_account.graphql","BillingNexusRootContext","CometRelay","CometRow.react","CometRowItem.react","TetraIcon.react","TetraText.react","fbicon","formatDate","react","useBillingWizard"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=j!==void 0?j:j=b("BillingNexusControlsSection_account.graphql");function a(a){var b,e,f,g,j;a=a.account;a=d("CometRelay").useFragment(l,a);var m=d("BillingNexusRootContext").useBillingNexusRootContext(),n=m.hasBillingWritePermission,o=m.isUsingCreditLine;m=m.paymentAccountID;b=(b=a==null?void 0:a.qe_on_payment_account_by_string)!=null?b:!1;m=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:function(){},paymentAccountID:m,wizardName:b?"PAYMENT_THRESHOLD":"MANAGE_BILLING_DATE_THRESHOLD"},"update_billing_threshold");b=m[0];m=(m=a==null?void 0:a.currency)!=null?m:"USD";e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.billing_threshold_currency_amount))!=null?e:d("BillingCurrencyAmount").createZero(m);if(o)return null;m=a==null?void 0:a.next_bill_date;o=new Date(parseInt(m,10)*1e3);o=c("formatDate")(o,"F j, Y");f=(f=a==null?void 0:a.is_eos_with_30_days)!=null?f:!1;g=(g=a==null?void 0:a.is_eos_with_anniversary)!=null?g:!1;j=(j=a==null?void 0:a.is_eos_with_30_days_v2)!=null?j:!1;a=(a=a==null?void 0:a.is_eos_with_anniversary_v2)!=null?a:!1;var p=null;g?p=k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("TetraText.react"),{type:"headlineEmphasized4",children:c("BillingNexusAmountDueCardContent").endOfSpend3DaysBillingDate}),k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").afterAdsEnd})]}):f?p=k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("TetraText.react"),{type:"headlineEmphasized4",children:c("BillingNexusAmountDueCardContent").endOfSpend30DaysBillingDate}),k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").afterLastCharge})]}):j&&(p=k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("TetraText.react"),{type:"headlineEmphasized4",children:c("BillingNexusAmountDueCardContent").endOfSpend3DaysBillingDate}),k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").afterAdsStopRunning})]}));f=null;j?f=k.jsx(c("CometRow.react"),{paddingHorizontal:0,children:k.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").explainingEndOfSpend30DayCharge})})}):a?f=k.jsx(c("CometRow.react"),{paddingHorizontal:0,children:k.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").explainingEndOfSpend3DayCharge})})}):g&&m!=null&&(f=k.jsx(c("CometRow.react"),{paddingHorizontal:0,children:k.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").getEndOfSpendBillingDateText(m)})})}));return k.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:12,children:k.jsxs(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:[k.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,paddingVertical:12,children:k.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:k.jsx(c("TetraText.react"),{color:"primary",type:"headlineEmphasized4",children:c("BillingNexusAmountDueCardContent").whenYouWillPay})})}),k.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:12,children:k.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:k.jsx(c("TetraText.react"),{color:"primary",type:"headlineEmphasized4",children:k.jsxs("div",{className:"x6s0dn4 x443n21 x8u2fvd x1ht7hnu x1quq95r x5yzy4c x78zum5 x1l1ennw xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[k.jsxs("div",{className:"x6s0dn4 x78zum5 xl56j7k x1qi8ycv",children:[k.jsx("div",{className:"x6s0dn4 x1qhmfi1 x14yjl9h xudhj91 x18nykt9 xww2gxu x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x78zum5 x10w6t97 xl56j7k x1emribx x1y1aw1k x1sxyh0 xwib8y2 xurb0ha x1n2onr6",children:k.jsx(c("TetraIcon.react"),{icon:d("fbicon")._(i("480627"),16),size:16})}),k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsxs("div",{className:"x78zum5",children:[k.jsx(c("TetraText.react"),{type:"headlineEmphasized4",children:e==null?void 0:e.toString()}),n&&k.jsx("div",{className:"x1i64zmx x16ldp7u",children:k.jsx(c("TetraIcon.react"),{"aria-label":h._("u7f16u8f91"),icon:d("fbicon")._(i("477824"),12),onPress:b,size:12})})]}),k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").paymentThreshold})]})]}),k.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf",children:[k.jsx("div",{className:"x1qhmfi1 x1kpxq89 xr9ek0c x11i5rnm xjpr12u x1mh8g0r x1i1rx1s"}),k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").and}),k.jsx("div",{className:"x1qhmfi1 x1kpxq89 xr9ek0c x11i5rnm xjpr12u x1mh8g0r x1i1rx1s"})]}),k.jsxs("div",{className:"x6s0dn4 x78zum5 xl56j7k x1qi8ycv",children:[k.jsx("div",{className:"x6s0dn4 x1qhmfi1 x14yjl9h xudhj91 x18nykt9 xww2gxu x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x78zum5 x10w6t97 xl56j7k x1emribx x1y1aw1k x1sxyh0 xwib8y2 xurb0ha x1n2onr6",children:k.jsx(c("TetraIcon.react"),{icon:d("fbicon")._(i("481124"),16),size:16})}),p!=null?p:k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("TetraText.react"),{type:"headlineEmphasized4",children:o}),k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:c("BillingNexusAmountDueCardContent").billingDate})]})]})]})})})}),f]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingNexusStoredBalanceCard.react",["fbt","ix","BillingAutoReloadConstants","BillingCurrencyAmount","BillingNexusCard.react","BillingNexusPendingPaymentsSection.react","BillingNexusRefetchContext","BillingNexusRefundStatusSection.react","BillingNexusRootContext","BillingNexusStoredBalanceActionButton.react","BillingNexusStoredBalanceCardContent","BillingNexusStoredBalanceCard_account.graphql","BillingPaymentModeUtils","CometColumnItem.react","CometImage.react","CometLink.react","CometListCell.react","CometRelay","CometRow.react","CometRowItem.react","CometSwitch.react","TetraButton.react","TetraText.react","TetraTextPairing.react","react","useBillingWizard"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=j!==void 0?j:j=b("BillingNexusStoredBalanceCard_account.graphql");function a(a){var b,e,f,g,j,m,n,o;a=a.account;a=d("CometRelay").useFragment(l,a);b=(b=a==null?void 0:(b=a.billing_payment_account)==null?void 0:b.supports_recurring.filter(function(a){return((a=a.credential)==null?void 0:a.credential_id)!=null}))!=null?b:[];e=d("BillingPaymentModeUtils").supportsAutoReload((e=a==null?void 0:a.payment_modes)!=null?e:[])&&b.length!==0;f=(a==null?void 0:(f=a.auto_reload_info)==null?void 0:f.auto_reload_status)==="ENABLED";g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.auto_reload_info)==null?void 0:g.auto_reload_trigger_threshold);j=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(j=a.auto_reload_info)==null?void 0:j.auto_reload_amount);b=b.length!==0?(b=(b=b[0].credential)==null?void 0:b.credential_id)!=null?b:"":"";var p=!f;m=(m=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_balance))!=null?m:d("BillingCurrencyAmount").createZero((m=a==null?void 0:a.currency)!=null?m:"USD");n=(n=a==null?void 0:a.pending_payments_count)!=null?n:0;o=(o=a==null?void 0:a.refund_status)!=null?o:"BILLING_PREPAY_NO_REFUND_STATUS";var q=d("BillingNexusRootContext").useBillingNexusRootContext(),r=q.hasBillingWritePermission,s=q.nexusLayout;q=q.paymentAccountID;s=s==="ADS_STANDARD";var t=d("BillingNexusRefetchContext").useBillingNexusRefetch(),u=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:t,paymentAccountID:q,wizardName:"ADD_FUNDS"},"add_funds");u=u[0];p=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:t,paymentAccountID:q,paymentMethodID:b,shouldTurnOn:p,wizardName:"AUTO_RELOAD"},"edit_auto_reload");p=p[0];t=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:t,paymentAccountID:q,paymentMethodID:b,shouldTurnOn:!0,wizardName:"AUTO_RELOAD"},"edit_auto_reload");q=t[0];j=h._("u91d1u989du4e3a{reload amount}u65f6u5145u503c{reload threshold}u3002{=m9}",[h._param("reload amount",((b=j)!=null?b:"0").toString()),h._param("reload threshold",((t=g)!=null?t:"0").toString()),h._implicitParam("=m9",k.jsx(c("CometLink.react"),{onClick:q,children:h._("u7f16u8f91")}))]);b=a==null?void 0:a.india_network_tokenization_migration_status;return k.jsxs(c("BillingNexusCard.react"),{headline:c("BillingNexusStoredBalanceCardContent").title,headlineAddon:o==="BILLING_PREPAY_NO_REFUND_STATUS"&&k.jsx(c("TetraButton.react"),{disabled:!r||b==="IN_PROGRESS",label:c("BillingNexusStoredBalanceCardContent").addFundsButton,onPress:u,reduceEmphasis:!0,testid:void 0,tooltip:b==="IN_PROGRESS"?h._("u9700u8981u66f4u65b0u5e10u6237"):null,type:"primary"}),infoIcon:s?c("BillingNexusStoredBalanceCardContent").standardBillingMessage:void 0,children:[k.jsx(c("CometColumnItem.react"),{paddingVertical:0,children:k.jsxs(c("CometRow.react"),{align:"start",paddingHorizontal:0,paddingTop:8,children:[k.jsx(c("CometRowItem.react"),{children:k.jsx(c("CometImage.react"),{src:i("1446163")})}),k.jsxs(c("CometRowItem.react"),{expanding:!0,children:[k.jsx("div",{className:"x1e56ztr x7r5mf7",children:k.jsx(c("TetraText.react"),{color:"primary",type:"headlineEmphasized2",children:m==null?void 0:m.toString()})}),o==="BILLING_PREPAY_NO_REFUND_STATUS"&&k.jsx("div",{className:"x1e56ztr",children:k.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:n===0?c("BillingNexusStoredBalanceCardContent").noPendingFunds:c("BillingNexusStoredBalanceCardContent").pendingFunds(n)})})]}),r&&k.jsx(c("CometRowItem.react"),{children:k.jsx(c("BillingNexusStoredBalanceActionButton.react"),{account:a})})]})}),e===!0?k.jsx(c("CometColumnItem.react"),{children:k.jsx(c("CometListCell.react"),{addOnEnd:k.jsx(c("CometSwitch.react"),{disabled:!r,onClick:p,value:f,children:h._("u5f00u5173")}),content:k.jsx(c("TetraTextPairing.react"),{body:f?j:c("BillingAutoReloadConstants").autoReloadOffBody,headline:f?c("BillingAutoReloadConstants").autoReloadOnHeadline:c("BillingAutoReloadConstants").autoReloadOffHeadline,level:4}),hasBottomDivider:!0})}):null,o!=="BILLING_PREPAY_NO_REFUND_STATUS"?k.jsx(c("CometColumnItem.react"),{children:k.jsx(c("BillingNexusRefundStatusSection.react"),{account:a})}):null,((q=a==null?void 0:(g=a.billing_payment_account)==null?void 0:(t=g.transactions)==null?void 0:t.edges)!=null?q:[]).length>0?k.jsx(c("CometColumnItem.react"),{children:k.jsx(c("BillingNexusPendingPaymentsSection.react"),{account:a})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingNexusAmountDueCard_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingNexusAmountDueCard_account",selections:[{alias:null,args:null,kind:"ScalarField",name:"india_network_tokenization_migration_status",storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingNexusControlsSection_account"},{args:null,kind:"FragmentSpread",name:"BillingNexusHowYouWillPaySection_account"},{args:null,kind:"FragmentSpread",name:"BillingNexusPayNowButton_account"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"primary_funding_source",args:[{kind:"Literal",name:"filter",value:"PRIMARY_ONLY"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:"billing_payment_methods(filter:"PRIMARY_ONLY")"}],storageKey:null},a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:b,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"account_status",storageKey:null},{alias:null,args:[{kind:"Literal",name:"param",value:"alternate_payment_threshold_wizard"},{kind:"Literal",name:"qe_universe",value:"billing_payment_threshold_wizard_universe"}],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"alternate_payment_threshold_wizard",qe_universe:"billing_payment_threshold_wizard_universe")"}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingNexusControlsSection_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b={kind:"Literal",name:"qe_universe",value:"end_of_spend_universe"};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingNexusControlsSection_account",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"next_bill_date",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"param",value:"alternate_payment_threshold_wizard"},{kind:"Literal",name:"qe_universe",value:"billing_payment_threshold_wizard_universe"}],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"alternate_payment_threshold_wizard",qe_universe:"billing_payment_threshold_wizard_universe")"}],type:"AdAccount",abstractKey:null},{alias:"is_eos_with_30_days",args:[{kind:"Literal",name:"param",value:"is_eos_with_30_days"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_30_days",qe_universe:"end_of_spend_universe")"},{alias:"is_eos_with_anniversary",args:[{kind:"Literal",name:"param",value:"is_eos_with_anniversary"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_anniversary",qe_universe:"end_of_spend_universe")"},{alias:"is_eos_with_30_days_v2",args:[{kind:"Literal",name:"param",value:"is_eos_with_30_days_v2"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_30_days_v2",qe_universe:"end_of_spend_universe")"},{alias:"is_eos_with_anniversary_v2",args:[{kind:"Literal",name:"param",value:"is_eos_with_anniversary_v2"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_anniversary_v2",qe_universe:"end_of_spend_universe")"}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingNexusStoredBalanceCard_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],c={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"end"},{defaultValue:null,kind:"LocalArgument",name:"start"}],kind:"Fragment",metadata:null,name:"BillingNexusStoredBalanceCard_account",selections:[{alias:null,args:null,kind:"ScalarField",name:"india_network_tokenization_migration_status",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"auto_reload_status",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_amount",plural:!1,selections:b,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"supports_recurring",args:[{kind:"Literal",name:"filter",value:"SUPPORTS_RECURRING"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[c,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(filter:"SUPPORTS_RECURRING")"},{alias:"transactions",args:[{kind:"Variable",name:"end_time",variableName:"end"},{kind:"Literal",name:"filters",value:[{field:"PAYMENT_STATUS",operator:"IS_ANY",value:["PENDING"]}]},{kind:"Literal",name:"first",value:16},{kind:"Variable",name:"start_time",variableName:"start"}],concreteType:"BillingTransactionConnectionConnection",kind:"LinkedField",name:"billing_txns",plural:!1,selections:[{alias:null,args:null,concreteType:"BillingTransactionConnectionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[c],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"refund_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pending_payments_count",storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingNexusRefundStatusSection"},{args:[{kind:"Variable",name:"end",variableName:"end"},{kind:"Variable",name:"start",variableName:"start"}],kind:"FragmentSpread",name:"BillingNexusPendingPaymentsSection_account"},{args:null,kind:"FragmentSpread",name:"BillingNexusStoredBalanceActionSheet"}],type:"AdAccount",abstractKey:null}}();e.exports=a}),null);
-----
BillingNexusAccountSpendLimitCard.react",["fbt","BillingCurrencyAmount","BillingNexusAccountSpendLimitActionButton.react","BillingNexusAccountSpendLimitCardContent","BillingNexusAccountSpendLimitCard_adAccount.graphql","BillingNexusCard.react","BillingNexusProgressBar.react","BillingNexusRootContext","BillingPaymentModeUtils","CometColumnItem.react","CometLink.react","CometRelay","CometRow.react","CometRowItem.react","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingNexusAccountSpendLimitCard_adAccount.graphql");function l(){return j.jsxs(c("TetraText.react"),{color:"secondary",type:"body3",children:[c("BillingNexusAccountSpendLimitCardContent").about," ",j.jsx(c("CometLink.react"),{color:"highlight",href:"https://www.facebook.com/business/help/141820733085330?id=326963134374796&helpref=search&sr=1&query=account%20spending%20limit",weight:"semibold",children:h._("u4e86u89e3u66f4u591a")})]})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b,e,f;a=a.account;var g=d("BillingNexusRootContext").useBillingNexusRootContext();g=g.hasBillingWritePermission;a=d("CometRelay").useFragment(k,a);var i=(a==null?void 0:a.account_status)==="DISABLED";b=d("BillingPaymentModeUtils").isPrepayOnlyAccount((b=a==null?void 0:a.payment_modes)!=null?b:[]);e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(e=a.spending_info)==null?void 0:e.spend_limit_currency_amount);f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(f=a.spending_info)==null?void 0:f.amount_spent_currency_amount);var m;if(f==null||e==null)m=j.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:8,children:j.jsx(c("CometRowItem.react"),{children:j.jsx(l,{})})});else{var n=e.percentageOf(f),o=e.subtract(f);f=j.jsxs(j.Fragment,{children:[h._("u82b1u8d39{amount spent}",[h._param("amount spent",f.toString())]),j.jsxs(c("TetraText.react"),{type:"body4",children:[" ",h._("| {spend limit}u82b1u8d39u9650u989d",[h._param("spend limit",e.toString())])]})]});m=j.jsxs(j.Fragment,{children:[j.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:8,children:j.jsx(c("CometRowItem.react"),{children:j.jsx(c("TetraText.react"),{color:"primary",type:"headlineEmphasized3",children:c("BillingNexusAccountSpendLimitCardContent").remainingAmount(o.toString())})})}),j.jsx(c("BillingNexusProgressBar.react"),{body:f,percentage:n/100})]})}return j.jsx(c("BillingNexusCard.react"),{headline:c("BillingNexusAccountSpendLimitCardContent").title,headlineAddon:g&&!i&&!b?j.jsx(c("BillingNexusAccountSpendLimitActionButton.react"),{sheetKey:a}):null,infoIcon:c("BillingNexusAccountSpendLimitCardContent").tooltip,children:j.jsx(c("CometColumnItem.react"),{paddingTop:0,children:m})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingNexusAccountSpendLimitCard_adAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingNexusAccountSpendLimitCard_adAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"account_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"BillingNexusAccountSpendLimitActionSheet_adAccount"}],type:"AdAccount",abstractKey:null}}();e.exports=a}),null);
-----
BillingNexusPayNowButton.react",["fbt","BillingCurrencyAmount","BillingNexusPayNowButton_account.graphql","BillingNexusRefetchContext","BillingNexusRootContext","CometRelay","TetraButton.react","react","useBillingWizard"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingNexusPayNowButton_account.graphql");function a(a){var b,e=a.account;a=a.tokenizationStatus;e=d("CometRelay").useFragment(k,e);var f=d("BillingNexusRefetchContext").useBillingNexusRefetch(),g=d("BillingNexusRootContext").useBillingNexusRootContext(),i=g.hasBillingWritePermission,l=g.isUsingCreditLine;g=g.paymentAccountID;var m=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},onClose:f,paymentAccountID:g,wizardName:"PAY_NOW"},"pay_now_balance");m=m[0];f=d("useBillingWizard").useBillingWizard({entryPointDetails:{entryPoint:"NEXUS"},isMiPayNow:!0,onClose:f,paymentAccountID:g,wizardName:"MI_PAY_NOW"},"pay_now_balance");g=f[0];f=null;var n=null;b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.account_balance))!=null?b:d("BillingCurrencyAmount").createZero((b=e==null?void 0:e.currency)!=null?b:"USD");if(l){l=(l=((l=e==null?void 0:(l=e.billing_payment_account)==null?void 0:l.primary)!=null?l:[])[0])==null?void 0:l.credential;l=(l=l==null?void 0:l.utilization)!=null?l:0;f=g;n=l<=70||!i}else n=b.isZero()||!i||a==="IN_PROGRESS",f=m;l=(g=e==null?void 0:e.policy_block)!=null?g:!1;l&&(n=!0);return j.jsx(c("TetraButton.react"),{disabled:n,label:h._("u7acbu5373u652fu4ed8"),onPress:f,reduceEmphasis:!0,tooltip:a==="IN_PROGRESS"?h._("u9700u8981u66f4u65b0u5e10u6237"):null,type:"primary"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingNexusHowYouWillPaySection.react",["ix","BillingCurrencyAmount","BillingNexusAmountDueCardContent","BillingNexusCreditCardUtils","BillingNexusHowYouWillPaySection_account.graphql","BillingNexusRootContext","BillingPaymentMethodDisplay","CometImage.react","CometRelay","CometRow.react","CometRowItem.react","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingNexusHowYouWillPaySection_account.graphql");function a(a){var b,e,f,g;a=a.account;a=d("CometRelay").useFragment(k,a);var i=d("BillingNexusRootContext").useBillingNexusRootContext();i=i.nexusLayout;b=(b=a==null?void 0:a.currency)!=null?b:"USD";e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.coupon_balance))!=null?e:d("BillingCurrencyAmount").createZero(b);f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_balance))!=null?f:d("BillingCurrencyAmount").createZero(b);b=i==="ADS_FLEX";i=!e.isZero();e=!f.isZero();f=(a=(f=((a=a==null?void 0:(f=a.billing_payment_account)==null?void 0:f.primary_funding_source)!=null?a:[])[0])==null?void 0:f.credential)!=null?a:null;if(f==null&&!e)return null;a=null;var l=null;if(e)a=j.jsx(c("CometImage.react"),{src:h("1446163")}),l=c("BillingNexusAmountDueCardContent").prepaid;else if(f!=null)switch(f.__typename){case"ExternalCreditCard":a=d("BillingNexusCreditCardUtils").getCardImage(f.card_association);l=d("BillingPaymentMethodDisplay").getCreditCardDisplay((g=f.card_association_name)!=null?g:"Card",f.last_four_digits);break;case"DirectDebit":a=j.jsx(c("CometImage.react"),{src:h("1456550")});l=c("BillingNexusAmountDueCardContent").directDebit;break;case"PaymentPaypalBillingAgreement":a=j.jsx(c("CometImage.react"),{src:h("1387683")});l=c("BillingNexusAmountDueCardContent").payPal;break;case"ExtendedCredit":case"MonthlyInvoicing":case"SharedMonthlyInvoicing":a=j.jsx(c("CometImage.react"),{src:h("1568646")});l=c("BillingNexusAmountDueCardContent").monthlyInvoice;break}g=null;i&&(a=j.jsx(c("CometImage.react"),{src:h("1507321")}),g=l,l=c("BillingNexusAmountDueCardContent").adCredits);var m="";switch(f==null?void 0:f.__typename){case"ExternalCreditCard":case"DirectDebit":case"PaymentPaypalBillingAgreement":i?e?m=c("BillingNexusAmountDueCardContent").explainingStandardCoupons(g):b?m=c("BillingNexusAmountDueCardContent").explainingFlexCoupons:m=c("BillingNexusAmountDueCardContent").explainingPostpayCoupons(g):e?m=c("BillingNexusAmountDueCardContent").explainingStandard(l):b?m=c("BillingNexusAmountDueCardContent").explainingFlex:m=c("BillingNexusAmountDueCardContent").explainingPostpay;break;case"ExtendedCredit":case"MonthlyInvoicing":case"SharedMonthlyInvoicing":i?m=c("BillingNexusAmountDueCardContent").explainingMonthlyInvoicingCoupons:m=c("BillingNexusAmountDueCardContent").explainingMonthlyInvoicing;break;default:i?m=c("BillingNexusAmountDueCardContent").explainingPrepayCoupons:m=c("BillingNexusAmountDueCardContent").explainingPrepay}return j.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:j.jsxs(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:[j.jsx(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,children:j.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:j.jsx(c("TetraText.react"),{color:"primary",type:"headlineEmphasized4",children:c("BillingNexusAmountDueCardContent").howYouWillPay})})}),j.jsxs(c("CometRow.react"),{paddingHorizontal:0,children:[j.jsx(c("CometRowItem.react"),{verticalAlign:"center",children:a}),j.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:j.jsx(c("TetraText.react"),{type:"body3",children:l})})]}),j.jsx(c("CometRow.react"),{paddingHorizontal:0,children:j.jsx(c("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:j.jsx(c("TetraText.react"),{color:"secondary",type:"body4",children:m})})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingNexusPayNowButton_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingNexusPayNowButton_account",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"primary",args:[{kind:"Literal",name:"filter",value:"PRIMARY_ONLY"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"utilization",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"}],storageKey:null}],storageKey:"billing_payment_methods(filter:"PRIMARY_ONLY")"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"policy_block",storageKey:null},a],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingNexusHowYouWillPaySection_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingNexusHowYouWillPaySection_account",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"primary_funding_source",args:[{kind:"Literal",name:"filter",value:"PRIMARY_ONLY"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(filter:"PRIMARY_ONLY")"}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:b,storageKey:null},a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:b,storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
LWICometAddBudgetSection.react",["fbt","AdsBisonUtils","AdsCurrencyFormatter","AdsUniqueMetricsHelpID","BillingCurrencyAmount","CometErrorBoundary.react","CometLink.react","CometPlaceholder.react","CometRelay","CometRow.react","CometRowItem.react","LWICometAddBudgetSection_boostedComponent.graphql","LWICometCommonStrings","LWICometDateFormatUtils","LWICometEstimationCurveRoot.react","LWICometLoadingOverlay.react","LWICometPaymentSubsection.react","LWICometPaymentSubsectionBody.react","LWICometSection.react","LWICometTermsAndConditions.react","LWIOmniButton.react","LWIOmniListCell.react","LWIOmniText.react","LWIOmniTextPairing.react","jsonParseSafe","react","useBillingInfoEstimatedTax","useLWICometAddBudgetAndDurationMutation","useLWICometEditAction","useLWILoggerContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.startTransition,l=e.useCallback,m=e.useEffect,n=e.useState,o={title:h._("u5411u66f4u591a{link to our people metrics explanation}u5c55u5f00u8425u9500",[h._param("link to our people metrics explanation",j.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("u7528u6237")}))])},p=h._("u589eu52a0u9884u7b97");function a(a){var e,f,g,r,s,t=a.boostedComponent,u=a.inDialog,v=u===void 0?!1:u,w=a.onComplete;u=n(!1);a=u[0];var x=u[1];u=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometAddBudgetSection_boostedComponent.graphql"),t);t=c("useLWILoggerContext")();var y=t.entryPoint,z=t.flowID,A=t.pageID,B=t.product;t=t.targetID;var C=c("useLWICometEditAction")(u,{entryPoint:y,flowID:z});y=u.campaign_group;z=u.spec;var D=(e=u.options)==null?void 0:e.add_budget_and_duration_options;e=c("jsonParseSafe")(String(z==null?void 0:(e=z.audience)==null?void 0:e.target_spec_string_without_placements),null);f=y==null?void 0:(f=y.ad_account)==null?void 0:f.legacy_account_id;g=z==null?void 0:(g=z.placement_spec)==null?void 0:g.publisher_platforms;g=g!=null?{publisher_platforms:g}:null;r=z==null?void 0:(r=z.objective_spec)==null?void 0:r.objective;u=!!((u=u.boosting_info)==null?void 0:u.can_viewer_edit);var E=(s=y==null?void 0:(s=y.ad_account)==null?void 0:s.currency_code_enum)!=null?s:"USD";z=(s=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(z==null?void 0:z.budget))!=null?s:d("BillingCurrencyAmount").createZero(E);s=n(q(D));var F=s[0],G=s[1];m(function(){var a=q(D);a!=null&&G(a)},[D]);var H=c("useLWICometAddBudgetAndDurationMutation")(),I=l(function(){F!=null&&H(F.budget_delta,F.duration_delta,x,w)},[H,F,w]),J=(s=F==null?void 0:F.duration_delta)!=null?s:0;y=new Date(String(y==null?void 0:(s=y.time_range)==null?void 0:s.end));s=new Date();y=y>s?y:s;y.setDate(y.getDate()+J);s=d("LWICometDateFormatUtils").getPrettyDateString(y);var K=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:E,offset_amount:String(F==null?void 0:F.budget_delta)});y=c("useBillingInfoEstimatedTax")((y=f)!=null?y:"",K==null?void 0:K.asGraphQLInput().amount,K==null?void 0:K.asGraphQLInput().currency);var L=y.taxes;y=y.totalBudget;L=(L=L)!=null?L:[];y=y==null?void 0:y.add(z);if(D==null||D.length===0||F==null||e==null||r==null||g==null||f==null||!u)return null;var M=[{label:h._("u5f53u524du9884u7b97"),value:z.format()},{label:h._("u65b0u589eu9884u7b97"),value:K==null?void 0:K.format()}];L.length>0&&L.forEach(function(a){(a==null?void 0:a.taxName)!=null&&(a==null?void 0:a.taxRate)!=null&&(a==null?void 0:a.amount)!=null&&M.push({label:a.taxName+" ("+a.taxRate+")",value:a.amount.format()})});var N=j.jsx("div",{className:"x1yztbdb x1xmf6yo",children:j.jsx(c("LWICometPaymentSubsection.react"),{body:j.jsx(c("LWICometPaymentSubsectionBody.react"),{collapsible:!0,headline:h._("u65b0u9884u7b97"),items:M,total:{label:h._("u603bu91d1u989d"),value:y==null?void 0:y.format()}})})}),O=h._("u5e7fu544au6295u653eu81f3{new_end_time}",[h._param("new_end_time",s)]),P=j.jsx(c("LWIOmniTextPairing.react"),{body:j.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:p,objective:r}),level:3}),Q=j.jsx(c("LWIOmniButton.react"),{disabled:a,label:p,onPress:function(){x(!0),k(function(){I()})}});return j.jsxs(c("CometErrorBoundary.react"),{children:[a&&j.jsx(c("LWICometLoadingOverlay.react"),{}),j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("LWICometEstimationCurveRoot.react"),{currency:E,legacyAdAccountID:f,objective:r,pageID:A,placementSpec:babelHelpers["extends"]({},g),product:B,sourceModule:"LWICometAddBudgetSection",targetID:t,targetSpec:e,children:function(a,b,e){var f=D.map(function(f){var g=f.budget_delta;f=f.duration_delta;if(g==null||f==null)return null;var i={budget_delta:g,duration_delta:f},k=g/f;k=c("AdsBisonUtils").getReachEstimateByBudget(a,k,null,!0);k=c("AdsBisonUtils").getBoundsWithErrorPrediction(k.reach,b,k.reach_lower_bound,k.reach_upper_bound);k=d("LWICometCommonStrings").getRangeString(k.min,k.max);var l=g===(K==null?void 0:K.getRawPBAmount_I_KNOW_WHAT_IM_DOING())&&f===J;return j.jsxs(j.Fragment,{children:[j.jsx(c("LWIOmniListCell.react"),{addOnSecondary:{on:l,type:"radio"},body:e?null:h._("u6bcfu65e5u8986u76d6u4ebau6570uff1a{reach_estimates_string}u4f4d{link to our people metrics explanation}",[h._param("reach_estimates_string",k),h._param("link to our people metrics explanation",j.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("u7528u6237")}))]),headline:h._({"*":"u589eu52a0{add budget amount}u5ef6u957f{days to add}u5929","_1":"u589eu52a0{add budget amount}u5ef6u957f 1 u5929"},[h._plural(f,"days to add"),h._param("add budget amount",d("AdsCurrencyFormatter").formatCurrency(E,g))]),level:3,onPress:function(){return G(i)}}),l&&j.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:0,children:j.jsx(c("CometRowItem.react"),{expanding:!0,children:N})})]},g+"-"+f)});return j.jsxs(c("LWICometSection.react"),{fallback:null,hasTopDivider:!1,header:o,children:[j.jsx("div",{className:"x1yztbdb",children:f}),C&&j.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:0,children:j.jsx(c("CometRowItem.react"),{children:j.jsx(c("CometLink.react"),{color:"primary",onClick:C,children:j.jsx(c("LWIOmniText.react"),{color:"blueLink",type:"bodyLink3",children:h._("u9009u62e9u81eau5b9au4e49u9884u7b97u548cu6295u653eu671f")})})})}),j.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:C!=null?16:0,children:j.jsx(c("CometRowItem.react"),{children:j.jsx(c("LWIOmniTextPairing.react"),{body:O,bodyColor:"secondary",level:4})})}),v?j.jsx(c("CometRow.react"),{paddingHorizontal:16,children:j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsxs("div",{className:"x78zum5 x1q0g3np x1l1ennw",children:[j.jsx("div",{className:"x1pi30zi",children:P}),Q]})})}):j.jsxs("div",{children:[j.jsx(c("CometRow.react"),{paddingHorizontal:16,children:j.jsx(c("CometRowItem.react"),{expanding:!0,children:Q})}),j.jsx(c("CometRow.react"),{paddingHorizontal:16,paddingTop:0,children:j.jsx(c("CometRowItem.react"),{expanding:!0,children:P})})]})]})}})})]})}a.displayName=a.name+" [from "+f.id+"]";function q(a){return a==null||a.length===0||a[0].budget_delta==null||a[0].duration_delta==null?null:{budget_delta:Number(a[0].budget_delta),duration_delta:Number(a[0].duration_delta)}}g["default"]=a}),98);
-----
LWICometAddBudgetSection_boostedComponent.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometAddBudgetSection_boostedComponent",selections:[{args:null,kind:"FragmentSpread",name:"useLWICometEditAction_boostedComponent"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boosting_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_viewer_edit",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"campaign_group",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"currency_code_enum",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"EventTimeRange",kind:"LinkedField",name:"time_range",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"options",plural:!1,selections:[{alias:null,args:null,concreteType:"LWIAddBudgetAndDurationOption",kind:"LinkedField",name:"add_budget_and_duration_options",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"budget_delta",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"duration_delta",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"spec",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsLWIAudience",kind:"LinkedField",name:"audience",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"target_spec_string_without_placements",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"budget",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:"AdsLWIObjectiveSpec",kind:"LinkedField",name:"objective_spec",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"objective",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AdsPlacementSpec",kind:"LinkedField",name:"placement_spec",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"publisher_platforms",storageKey:null}],storageKey:null}],storageKey:null}],type:"BoostedComponentWrapper",abstractKey:null};e.exports=a}),null);
-----
AdCenterGeoAmountSpentCard.react",["AdCenterGeoAmountSpentCardBase.react","AdCenterGeoAmountSpentCard_boostedComponent.graphql","BillingCurrencyAmount","RelayHooks","react","useBillingInfoEstimatedTax"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e;a=a.boostedComponent;a=d("RelayHooks").useFragment(h!==void 0?h:h=b("AdCenterGeoAmountSpentCard_boostedComponent.graphql"),a);e=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(a==null?void 0:(e=a.boosting_info)==null?void 0:e.spent);a=(a=a.campaign_group)==null?void 0:(a=a.ad_account)==null?void 0:a.legacy_account_id;a=c("useBillingInfoEstimatedTax")(a,e==null?void 0:e.asGraphQLInput().amount,e==null?void 0:e.asGraphQLInput().currency);var f=a.taxes;a=a.totalBudget;return e==null?null:i.jsx(c("AdCenterGeoAmountSpentCardBase.react"),{taxes:f,totalBudget:e,totalBudgetWithTax:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdCenterGeoAmountSpentCard_boostedComponent.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AdCenterGeoAmountSpentCard_boostedComponent",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boosting_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"spent",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"campaign_group",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},action:"THROW",path:"campaign_group.ad_account.legacy_account_id"}],storageKey:null},action:"THROW",path:"campaign_group.ad_account"}],storageKey:null},action:"THROW",path:"campaign_group"}],type:"BoostedComponentWrapper",abstractKey:null};e.exports=a}),null);
-----
AdCenterGeoABTestSingleCampaignAmountSpentCard.react",["AdCenterGeoABTestSingleCampaignAmountSpentCard_boostedComponent.graphql","AdCenterGeoAmountSpentCardBase.react","BillingCurrencyAmount","RelayHooks","first","react","useBillingInfoEstimatedTax"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e,f;a=a.boostedComponent;a=d("RelayHooks").useFragment(h!==void 0?h:h=b("AdCenterGeoABTestSingleCampaignAmountSpentCard_boostedComponent.graphql"),a);e=c("first")((e=a==null?void 0:(e=a.campaign_group)==null?void 0:(e=e.campaigns)==null?void 0:e.nodes)!=null?e:[]);e=(e=c("first")((e=e==null?void 0:(e=e.spend_insights)==null?void 0:e.edges)!=null?e:[]))==null?void 0:(e=e.node)==null?void 0:e.spend;f=(f=a==null?void 0:(f=a.campaign_group)==null?void 0:(f=f.ad_account)==null?void 0:f.currency_code_enum)!=null?f:"USD";a=(a=a.campaign_group)==null?void 0:(a=a.ad_account)==null?void 0:a.legacy_account_id;var g=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:f,offset_amount:String(e)});a=c("useBillingInfoEstimatedTax")(a,g==null?void 0:g.asGraphQLInput().amount,f);f=a.taxes;a=a.totalBudget;return e==null?null:i.jsx(c("AdCenterGeoAmountSpentCardBase.react"),{taxes:f,totalBudget:g,totalBudgetWithTax:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWIBizWebCampaignSpentSection.react",["BillingCurrencyAmount","CometRelay","LWIBizWebCampaignSpentSection_boostedComponent.graphql","LWICometAmountSpentComponent.react","LWICometMgmtAdAccount.react","react","useBillingInfoEstimatedTax"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e,f,g,j=a.boostedComponent$key,k=a.campaignID;a=d("CometRelay").useFragment(h!==void 0?h:h=b("LWIBizWebCampaignSpentSection_boostedComponent.graphql"),j);j=a.campaigns_lifetime_spent;j=j.find(function(a){return a.campaign_id===k});e=!!((e=a.boosting_info)==null?void 0:e.can_viewer_edit);f=(f=a.campaign_group)==null?void 0:(f=f.ad_account)==null?void 0:f.legacy_account_id;j=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(j==null?void 0:j.amount_spent_with_currency);g=c("useBillingInfoEstimatedTax")(f,j==null?void 0:(g=j.asGraphQLInput())==null?void 0:g.amount,j==null?void 0:(g=j.asGraphQLInput())==null?void 0:g.currency);var l=g.taxes;g=g.totalBudget;return f!=null&&e?i.jsx(c("LWICometMgmtAdAccount.react"),{adAccountID:f,boostedComponent:a,children:i.jsx(c("LWICometAmountSpentComponent.react"),{taxes:l,totalBudget:j,totalBudgetWithTax:g})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWIBizWebCampaignSpentSection_boostedComponent.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWIBizWebCampaignSpentSection_boostedComponent",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"campaign_group",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},action:"THROW",path:"campaign_group.ad_account.legacy_account_id"}],storageKey:null},action:"THROW",path:"campaign_group.ad_account"}],storageKey:null},action:"THROW",path:"campaign_group"},{alias:null,args:null,concreteType:"BoostedComponentCampaignAmountSpent",kind:"LinkedField",name:"campaigns_lifetime_spent",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"campaign_id",storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"amount_spent_with_currency",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boosting_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_viewer_edit",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"LWICometMgmtAdAccount_boostedComponent"}],type:"BoostedComponentWrapper",abstractKey:null};e.exports=a}),null);
-----
LWICometAmountSpentSubsection.react",["BillingCurrencyAmount","CometRelay","LWICometAmountSpentComponent.react","LWICometAmountSpentSubsection_boostedComponent.graphql","react","useBillingInfoEstimatedTax"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e;a=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometAmountSpentSubsection_boostedComponent.graphql"),a.boostedComponent);e=a==null?void 0:(e=a.campaign_group)==null?void 0:(e=e.ad_account)==null?void 0:e.legacy_account_id;a=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(a==null?void 0:(a=a.boosting_info)==null?void 0:a.spent);e=c("useBillingInfoEstimatedTax")(e,a==null?void 0:a.asGraphQLInput().amount,a==null?void 0:a.asGraphQLInput().currency);var f=e.taxes;e=e.totalBudget;return i.jsx(c("LWICometAmountSpentComponent.react"),{taxes:f,totalBudget:a,totalBudgetWithTax:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometAmountSpentSubsection_boostedComponent.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometAmountSpentSubsection_boostedComponent",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boosting_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"spent",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"campaign_group",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},action:"THROW",path:"campaign_group.ad_account.legacy_account_id"}],storageKey:null},action:"THROW",path:"campaign_group.ad_account"}],storageKey:null},action:"THROW",path:"campaign_group"}],type:"BoostedComponentWrapper",abstractKey:null};e.exports=a}),null);
-----
useBillingInfoEstimatedTax",["BillingCurrencyAmount","RelayHooks","useBillingInfoEstimatedTaxQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingInfoEstimatedTaxQuery.graphql");function a(a,b,c,e){e=e!=null?String(parseInt(b,10)/e):b;b=e!=null&&c!=null?{amount:e,currency:c}:void 0;e=d("RelayHooks").useLazyLoadQuery(i,{budget:b,paymentAccountID:a});a=e==null?void 0:(c=e.billable_account_by_payment_account)==null?void 0:(b=c.billing_info)==null?void 0:b.estimated_tax;e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.total);c=a==null?void 0:a.taxes.map(function(a){var b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.tax_amount);return{amount:b,taxName:a==null?void 0:a.tax_name,taxRate:a==null?void 0:a.tax_rate}});return{taxes:c,totalBudget:e}}g["default"]=a}),98);
-----
LWICometEstimationSection.react",["fbt","BillingCurrencyAmount","LWICometEstimationCards.react","LWICometNoticeCardWrapper.react","LWICometRiskFreeAdNotice.react","LWICometSection.react","qex","react","useBillingInfoEstimatedTax","useLWILoggerWithContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.audienceOption,e=a.budget,f=a.budgetType,g=a.currency,j=a.durationInDays,k=a.hideEntirely;k=k===void 0?!1:k;var l=a.hideResultsEstimate;l=l===void 0?!1:l;var m=a.isEligibleForRiskFreeAd,n=a.isPrimaryProfilePlus,o=a.legacyAccountID,p=a.maxReimbursementOffsetAmount,q=a.optimizationGoalOverride,r=a.reachTooltipBodyOverride,s=a.runContinuously,t=a.useBizWebWash;t=t===void 0?!1:t;a=a.useWashBackground;a=a===void 0?!1:a;var u=c("useLWILoggerWithContext")(),v=u.log;u=function(a,b){v({ad_account_id:o,context:"estimation",event:"render_warning_message",extra_data:{error_code:a,message_type:b}})};f=f==="DAILY_BUDGET"?e*j:e;j=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:g,offset_amount:String(f)});e=c("useBillingInfoEstimatedTax")(o,j==null?void 0:j.asGraphQLInput().amount,j==null?void 0:j.asGraphQLInput().currency);f=e.totalBudget;j=s?void 0:f;e=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:g,offset_amount:String(p)});return k===!0||b==="AUTO_LOOKALIKE"?null:i.jsxs(c("LWICometSection.react"),{fallback:i.jsx("div",{}),header:{level:3,title:h._("u9884u4f30u5355u65e5u6210u6548")},type:a?"transparent":"primary",children:[m&&c("qex")._("397")===!0?i.jsx(c("LWICometRiskFreeAdNotice.react"),{maxReimbursement:e,totalBudget:j}):null,i.jsx(c("LWICometNoticeCardWrapper.react"),{logImpression:u,paddingHorizontal:16,specElement:"ESTIMATION"}),i.jsx(c("LWICometEstimationCards.react"),{hideResultsEstimate:l,isPrimaryProfilePlus:n,optimizationGoalOverride:q,reachTooltipBodyOverride:r,useBizWebWash:t,useWashBackground:a})]})}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){var b;return{audienceOption:a.audienceData.audienceOption,budget:a.budgetData.budget,budgetType:a.budgetData.budgetType,currency:a.adAccountData.currency,durationInDays:a.durationInDays,isEligibleForRiskFreeAd:a.isEligibleForRiskFreeAd,legacyAccountID:a.adAccountData.legacyAccountID,maxReimbursementOffsetAmount:(b=a.adAccountData.maxReimbursementOffsetAmount)!=null?b:0,runContinuously:a.runContinuously}});g["default"]=b}),98);
-----
useBillingInfoEstimatedTaxQuery.graphql",["useBillingInfoEstimatedTaxQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"budget"},c={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},d=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],e=[{kind:"Variable",name:"budget",variableName:"budget"}],f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],g=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}],h={alias:null,args:null,kind:"ScalarField",name:"tax_name",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"tax_rate",storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"useBillingInfoEstimatedTaxQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:e,concreteType:"XFBBillableAccountBillingInfo",kind:"LinkedField",name:"billing_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxes",kind:"LinkedField",name:"estimated_tax",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxLineItem",kind:"LinkedField",name:"taxes",plural:!0,selections:[h,i,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"tax_amount",plural:!1,selections:g,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"useBillingInfoEstimatedTaxQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:e,concreteType:"XFBBillableAccountBillingInfo",kind:"LinkedField",name:"billing_info",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxes",kind:"LinkedField",name:"estimated_tax",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"XFBBillableAccountEstimatedTaxLineItem",kind:"LinkedField",name:"taxes",plural:!0,selections:[h,i,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"tax_amount",plural:!1,selections:f,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("useBillingInfoEstimatedTaxQuery_facebookRelayOperation"),metadata:{},name:"useBillingInfoEstimatedTaxQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRemovePMScreenQuery.graphql",["BillingRemovePMScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"}],c=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},e],type:"ExternalCreditCard",abstractKey:null};e={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},e],type:"DirectDebit",abstractKey:null};var g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},i=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],j={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},k={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},l=[{kind:"Literal",name:"crit_read",value:!0}],m={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},n=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},m],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingRemovePMScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[d,f,e,g,h],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,j,k,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[d],storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:l,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:n,args:null,argumentDefinitions:[]}],storageKey:"account_balance(crit_read:true)"},m],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingRemovePMScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,o,{kind:"InlineFragment",selections:[f,e,g,h],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null},{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,j,k,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[d,o],storageKey:null}],storageKey:null},o],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:l,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:n,storageKey:"account_balance(crit_read:true)"},m],type:"AdAccount",abstractKey:null},o],storageKey:null}]},params:{id:b("BillingRemovePMScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingRemovePMScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRemoveLastPMActionsListScreen.react",["fbt","BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingRemoveLastPMActionsListScreenQuery.graphql","BillingRowContainer.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingRemoveLastPMActionsListScreenQuery.graphql");function a(a){var b,e=a.onNext,f=a.preloadedQuery;a=a.wrapperProps;var g=c("useBillingWizardComponents")(),i=g.Column,l=g.Icon,m=g.Row,n=g.Text;g=g.Wrapper;f=d("RelayHooks").usePreloadedQuery(k,f);var o=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(f.node,h._("u4f60u7684u652fu4ed8u65b9u5f0f"));b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f==null?void 0:(b=f.billable_account_by_payment_account)==null?void 0:b.account_balance))!=null?b:d("BillingCurrencyAmount").createZero((f=f==null?void 0:(b=f.billable_account_by_payment_account)==null?void 0:b.currency)!=null?f:"USD");return j.jsx(g,babelHelpers["extends"]({},a,{primaryButton:{action:e,label:h._("u5f00u59cb")},title:h._("u79fbu9664u652fu4ed8u65b9u5f0f"),children:j.jsx(i,{padding:16,children:j.jsxs(c("BillingRowContainer.react"),{marginBottom:8,children:[j.jsx(m,{children:j.jsx(n,{body:h._("u4f60u9700u8981u5b8cu6210u4ee5u4e0bu6b65u9aa4uff0cu624du80fdu79fbu9664{payment method name}",[h._param("payment method name",o)]),textAlign:"start"})}),j.jsxs(m,{columnSpacing:8,children:[j.jsx(i,{flex:!0,children:j.jsx(l,{listNumber:1,tintedBackgroundSize:36,type:"NUMERIC"})}),j.jsx(i,{children:j.jsx(n,{body:h._("u5173u95edu4f60u7684u5e7fu544a"),level:3,textAlign:"start"})})]}),j.jsxs(m,{columnSpacing:8,children:[j.jsx(i,{flex:!0,children:j.jsx(l,{listNumber:2,tintedBackgroundSize:36,type:"NUMERIC"})}),j.jsx(i,{children:j.jsx(n,{body:h._("u652fu4ed8{balance amount}u672au7ed3u4f59u989d",[h._param("balance amount",b.toString())]),level:3,textAlign:"start"})})]})]})})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=k;g["default"]=a}),98);
-----
BillingDecideRemovePMFlowEntryStateQuery.graphql",["BillingDecideRemovePMFlowEntryStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},e={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:"all_active_campaigns_count",args:null,kind:"ScalarField",name:"ad_campaign_active_count",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"last_delivery_time_within_3_months",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],j={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingDecideRemovePMFlowEntryStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[f],storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[g,h,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:i,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingDecideRemovePMFlowEntryStateQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[f,d,e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[f,{alias:null,args:null,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[f,j],storageKey:null}],storageKey:null},j],storageKey:null},{kind:"InlineFragment",selections:[g,h,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:i,storageKey:null}],type:"AdAccount",abstractKey:null},j],storageKey:null}]},params:{id:b("BillingDecideRemovePMFlowEntryStateQuery_facebookRelayOperation"),metadata:{},name:"BillingDecideRemovePMFlowEntryStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRemovePMScreen.react",["BillingCurrencyAmount","BillingPaymentMethodDisplayUtils","BillingPaymentModeUtils","BillingRemovePMConstants","BillingRemovePMScreenQuery.graphql","BillingRemovePMView.react","RelayHooks","react","useBillingRemovePM","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=["ScimCompany","WhatsAppBusinessAccount","CAMBillableAccount"],k=h!==void 0?h:h=b("BillingRemovePMScreenQuery.graphql");function a(a){var b,e,f,g=a.onAddPM,h=a.onBalanceRemains,l=a.onDone,m=a.paymentAccountID,n=a.paymentMethodID,o=a.preloadedQuery;a=a.wrapperProps;var p=c("useBillingWizardComponents")();p=p.Wrapper;o=d("RelayHooks").usePreloadedQuery(k,o);var q=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(o==null?void 0:o.node,c("BillingRemovePMConstants").defaultPMLabel);b=(b=o==null?void 0:(b=o.billable_account_by_payment_account)==null?void 0:(b=b.billing_payment_account)==null?void 0:b.billing_payment_methods)!=null?b:[];var r=d("BillingPaymentModeUtils").isHybridAccount((e=o==null?void 0:(e=o.billable_account_by_payment_account)==null?void 0:e.payment_modes)!=null?e:[])&&((e=o==null?void 0:(e=o.billable_account_by_payment_account)==null?void 0:e.prepay_on_postpay_gk)!=null?e:!1);e=b.filter(function(a){var b;return r?((b=a.credential)==null?void 0:b.__typename)!=="AdsToken"&&((b=a.credential)==null?void 0:b.__typename)!=="StoredBalance":((b=a.credential)==null?void 0:b.__typename)!=="AdsToken"});b=(e==null?void 0:e.length)===1;var s=(e=o.billable_account_by_payment_account)==null?void 0:e.__typename;e=j.find(function(a){return a===s})!=null||!b;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(o==null?void 0:(f=o.billable_account_by_payment_account)==null?void 0:f.account_balance))!=null?f:d("BillingCurrencyAmount").createZero((o=o==null?void 0:(f=o.billable_account_by_payment_account)==null?void 0:f.currency)!=null?o:"USD");o=!f.isZero();f=o&&!e?f:null;l=c("useBillingRemovePM")(l,g,m,n,a.triggerEvent,q,s);g=l.onSubmit;m=e?g:o?h:g;n=e?c("BillingRemovePMConstants").button:o?c("BillingRemovePMConstants").buttonPayNow:c("BillingRemovePMConstants").button;return i.jsx(p,babelHelpers["extends"]({},a,{mobileVerticalTextAlign:!0,primaryButton:{action:typeof m!=="string"?m:void 0,href:typeof m==="string"?m:void 0,label:n},title:c("BillingRemovePMConstants").headline,children:i.jsx(c("BillingRemovePMView.react"),{accountType:s,displayName:q,isLast:b,remainingBalance:f==null?void 0:f.toString()})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=k;g["default"]=a}),98);
-----
BillingPauseCampaignScreen.react",["fbt","BillingCurrencyAmount","BillingPauseCampaignScreenQuery.graphql","BillingPaymentMethodDisplayUtils","BillingRemovePMConstants","BillingRowContainer.react","RelayHooks","react","useBillingPauseCampaign","useBillingWizardComponents","useBillingWizardUtils"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingPauseCampaignScreenQuery.graphql");function a(a){var b=a.needWaitForRemove,e=a.onClose,f=a.onFailure,g=a.onNeedWait,i=a.onPayNow,l=a.onRemovePM,m=a.paymentAccountID,n=a.preloadedQuery,o=a.showIcon;a=a.wrapperProps;var p=c("useBillingWizardComponents")(),q=p.Column,r=p.Icon,s=p.Row,t=p.Text;p=p.Wrapper;var u=c("useBillingWizardUtils")();u=u.GetURL;u=u.read();var v=u("MANAGE_CAMPAIGNS",m),w=u("AD_TOOLS",m);u=d("RelayHooks").usePreloadedQuery(k,n);n=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(u==null?void 0:u.node,c("BillingRemovePMConstants").defaultPMLabel);u=(u=(u=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(u==null?void 0:(u=u.billable_account_by_payment_account)==null?void 0:u.account_balance))==null?void 0:u.isZero())!=null?u:!0;b===!0?g=g:u?g=l:g=i;l=c("useBillingPauseCampaign")(f,g,m,v,w);i=l.onSubmit;f=function(a,c,d){return d==="IG"?h._("u4f60u5fc5u987bu5173u95edu5e7fu544au624du80fdu79fbu9664u4f60u7684u552fu4e00u652fu4ed8u65b9u5f0fu3002u4f60u53efu4ee5u5728{link to manage campaigns}u4e2du67e5u770bu4f60u7684u5e7fu544au3002u5173u95edu5e7fu544au540euff0cu8bf7u7b49u5f85 72 u5c0fu65f6u518du56deu6765u4ed8u6e05u4f60u7684u672au7ed3u4f59u989du3002",[h._param("link to manage campaigns",j.jsx(a,{href:w,inline:!0,isDeeplink:!0,label:h._("u5e7fu544au5de5u5177")}))]):b===!0?h._("u4f60u5fc5u987bu5173u95edu5e7fu544au624du80fdu79fbu9664u4f60u7684u552fu4e00u652fu4ed8u65b9u5f0fu3002u4f60u968fu65f6u53efu4ee5u5728{link to manage campaigns}u4e2du67e5u770bu5f00u542fu548cu5173u95edu7684u5e7fu544au3002u5173u95edu5e7fu544au540euff0cu8bf7u7b49u5f85 72 u5c0fu65f6u518du56deu6765u4ed8u6e05u4f60u7684u672au7ed3u4f59u989du3002",[h._param("link to manage campaigns",j.jsx(a,{href:v,inline:!0,label:h._("u5e7fu544au7ba1u7406u5de5u5177")}))]):h._("u5982u9700u79fbu9664u552fu4e00u7684u652fu4ed8u65b9u5f0fuff0cu4f60u5fc5u987bu5173u95edu5e7fu544au3002u5373u4f7fu5e7fu544au6ca1u6709u6295u653eu4e5fu80fdu5f00u542fu3002u4f60u968fu65f6u53efu4ee5u5728{link to manage campaigns}u4e2du67e5u770bu5f00u542fu548cu5173u95edu7684u5e7fu544au3002",[h._param("link to manage campaigns",j.jsx(a,{href:v,inline:!0,label:h._("u5e7fu544au7ba1u7406u5de5u5177")}))])};return j.jsx(p,babelHelpers["extends"]({},a,{mobileVerticalTextAlign:!0,primaryButton:{action:i,label:h._("u5173u95edu5e7fu544a")},secondaryButton:{action:e,label:h._("u53d6u6d88")},title:c("BillingRemovePMConstants").headline,children:j.jsx(q,{padding:16,children:j.jsxs(c("BillingRowContainer.react"),{children:[o===!0&&j.jsx(s,{justify:"space-around",children:j.jsx(r,{type:"CONFIRMATION_WARNING"})}),j.jsx(s,{marginBottom:8,children:j.jsx(t,{body:f,headline:b===!0||u?h._("u5173u95edu5e7fu544auff0cu79fbu9664{payment method name}",[h._param("payment method name",n)]):h._("u5173u95edu4f60u7684u5e7fu544a"),textAlign:"center"})})]})})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=k;g["default"]=a}),98);
-----
BillingDecideRemovePMFlowEntryState",["BillingCurrencyAmount","BillingDecideRemovePMFlowEntryStateQuery.graphql","BillingPaymentModeUtils","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=72*24*60,j=h!==void 0?h:h=b("BillingDecideRemovePMFlowEntryStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;fv;D=(s=(t=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(w==null?void 0:(u=w.billable_account_by_payment_account)==null?void 0:u.account_balance))==null?void 0:t.isZero())!=null?s:!0;F=babelHelpers["extends"]({},a);A.length>1||!B&&!C?E="removePM":C?B?(E="pauseCampaign",F=babelHelpers["extends"]({},a,{needWaitForRemove:!0,showIcon:!0})):(E="needWait",F=babelHelpers["extends"]({},a,{isFirstScreen:!0})):B&&D?(E="pauseCampaign",F=babelHelpers["extends"]({},a,{needWaitForRemove:!1,showIcon:!0})):E="needActionsBeforeRemove";return G.abrupt("return",{event:E,newProps:F});case 15:case"end":return G.stop()}},null,this)};return c}(d("BillingWizardTypes").DecisionState);g["default"]=a}),98);
-----
BillingPauseCampaignScreenQuery.graphql",["BillingPauseCampaignScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"},d=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},f],type:"ExternalCreditCard",abstractKey:null};f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},f],type:"DirectDebit",abstractKey:null};var h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},j=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],k=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingPauseCampaignScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[e,g,f,h,i],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:j,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:k,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingPauseCampaignScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,l,{kind:"InlineFragment",selections:[g,f,h,i],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null},{alias:null,args:j,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:k,storageKey:null}],type:"AdAccount",abstractKey:null},l],storageKey:null}]},params:{id:b("BillingPauseCampaignScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingPauseCampaignScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingRemoveLastPMActionsListScreenQuery.graphql",["BillingRemoveLastPMActionsListScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"},d=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},f],type:"ExternalCreditCard",abstractKey:null};f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},f],type:"DirectDebit",abstractKey:null};var h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},j=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],k={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},l=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},k],m={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingRemoveLastPMActionsListScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[e,g,f,h,i],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:j,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:l,args:null,argumentDefinitions:[]}],storageKey:null},k],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingRemoveLastPMActionsListScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,m,{kind:"InlineFragment",selections:[g,f,h,i],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],storageKey:null},{alias:null,args:j,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:l,storageKey:null},k],type:"AdAccount",abstractKey:null},m],storageKey:null}]},params:{id:b("BillingRemoveLastPMActionsListScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingRemoveLastPMActionsListScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingUpdateAccountSpendLimitScreen.react",["BillingCurrencyAmount","BillingPaymentModeUtils","BillingUpdateAccountSpendLimitConstants","BillingUpdateAccountSpendLimitScreenQuery.graphql","BillingUpdateAccountSpendLimitView.react","Promise","RelayHooks","react","useBillingResetSpend","useBillingUpdateAccountSpendLimit","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useState,l=h!==void 0?h:h=b("BillingUpdateAccountSpendLimitScreenQuery.graphql");function a(a){var e,f,g=a.onDone,h=a.paymentAccountID,m=a.preloadedQuery;a=a.wrapperProps;var n=c("useBillingWizardComponents")();n=n.Wrapper;m=d("RelayHooks").usePreloadedQuery(l,m);e=d("BillingPaymentModeUtils").isPrepayOnlyAccount((e=m==null?void 0:(e=m.billable_account_by_payment_account)==null?void 0:e.payment_modes)!=null?e:[]);var o=(f=m==null?void 0:(f=m.billable_account_by_payment_account)==null?void 0:f.currency)!=null?f:"USD";m=m==null?void 0:(f=m.billable_account_by_payment_account)==null?void 0:f.spending_info;var p=d("BillingCurrencyAmount").createZero(o),q=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(m==null?void 0:m.spend_limit_currency_amount))!=null?f:p,r=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(m==null?void 0:m.amount_spent_currency_amount))!=null?f:p;m=k(null);f=m[0];var s=m[1],t=c("useBillingUpdateAccountSpendLimit")(g,h),u=c("useBillingResetSpend")(function(a){return b("Promise").resolve(s(a))},q.toString(),h);m=k(q.format({showSymbol:!0}));var v=m[0],w=m[1];g=j(function(a){w(a)},[w]);h=function(){var a=d("BillingCurrencyAmount").getFromUserInput(v,o);if(a.isZero()){s({body:c("BillingUpdateAccountSpendLimitConstants").invalidInputDescription,headline:c("BillingUpdateAccountSpendLimitConstants").invalidInputTitle,type:"ERROR"});return b("Promise").resolve()}else if(a.compare(r)>0)return t(a,q.toString());else if(q.isZero())return t(a,q.toString());s({body:c("BillingUpdateAccountSpendLimitConstants").tooSmallInputDescription(p.toString(),u),headline:c("BillingUpdateAccountSpendLimitConstants").tooSmallInputTitle,type:"ERROR"});return b("Promise").resolve()};m=e?void 0:{action:h,label:c("BillingUpdateAccountSpendLimitConstants").primaryButtonLabel};e=f!=null?{primaryButton:m,status:f,title:c("BillingUpdateAccountSpendLimitConstants").headline}:{primaryButton:m,title:c("BillingUpdateAccountSpendLimitConstants").headline};return i.jsx(n,babelHelpers["extends"]({},a,e,{children:i.jsx(c("BillingUpdateAccountSpendLimitView.react"),{inputText:v,textOnChange:g})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=l;g["default"]=a}),98);
-----
BillingUpdateAccountSpendLimitScreenQuery.graphql",["BillingUpdateAccountSpendLimitScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},f=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},e],g=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:f,args:null,argumentDefinitions:[]}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingUpdateAccountSpendLimitScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,e,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:g,storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingUpdateAccountSpendLimitScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,e,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:f,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingUpdateAccountSpendLimitScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingUpdateAccountSpendLimitScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingUpdateAccountSpendLimitScreenMutation.graphql",["useBillingUpdateAccountSpendLimitScreenMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},f={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"spend_limit",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"formatted",storageKey:null},e],storageKey:null};d={alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"amount_spent",plural:!1,selections:[d,e],storageKey:null};e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},e];var g=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useBillingUpdateAccountSpendLimitScreenMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountEditSpendLimitResponse",kind:"LinkedField",name:"billable_account_edit_spend_limit",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[f,d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:g,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:g,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useBillingUpdateAccountSpendLimitScreenMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountEditSpendLimitResponse",kind:"LinkedField",name:"billable_account_edit_spend_limit",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[f,d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:e,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("useBillingUpdateAccountSpendLimitScreenMutation_facebookRelayOperation"),metadata:{},name:"useBillingUpdateAccountSpendLimitScreenMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingBMSelectMIStateQuery.graphql",["BillingBMSelectMIStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:"canUserEdit",args:null,kind:"ScalarField",name:"can_user_edit_ad_acc_mi_billing_info",storageKey:null},e=[{kind:"Literal",name:"filter",value:"PRIMARY_ONLY"}],f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],h=[{kind:"Variable",name:"payment_account_id",variableName:"paymentAccountID"}],i={alias:null,args:null,kind:"ScalarField",name:"invoices",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingBMSelectMIStateQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"ads_business",plural:!1,selections:[d],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"primaryMethod",args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[f],storageKey:null}],storageKey:"billing_payment_methods(filter:"PRIMARY_ONLY")"}],storageKey:null}],storageKey:null},{alias:null,args:g,concreteType:null,kind:"LinkedField",name:"extended_credit",plural:!1,selections:[{alias:null,args:h,concreteType:"InvoicesAndTotalAmount",kind:"LinkedField",name:"self_serve_to_mi_charge_amount",plural:!1,selections:[i,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[j,{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[k,j],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingBMSelectMIStateQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"ads_business",plural:!1,selections:[d,l],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[f,{alias:"primaryMethod",args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[f,l],storageKey:null}],storageKey:"billing_payment_methods(filter:"PRIMARY_ONLY")"},l],storageKey:null},l],storageKey:null},{alias:null,args:g,concreteType:null,kind:"LinkedField",name:"extended_credit",plural:!1,selections:[f,{alias:null,args:h,concreteType:"InvoicesAndTotalAmount",kind:"LinkedField",name:"self_serve_to_mi_charge_amount",plural:!1,selections:[i,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total_amount",plural:!1,selections:[j,k],storageKey:null}],storageKey:null},l],storageKey:null}]},params:{id:b("BillingBMSelectMIStateQuery_facebookRelayOperation"),metadata:{},name:"BillingBMSelectMIStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingBMSelectMIState",["BillingBMSelectMIStateQuery.graphql","BillingCurrencyAmount","BillingError","BillingSelfServeToMIConfirmPayNowConstants","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("BillingBMSelectMIStateQuery.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingBalanceRow.react",["BillingBalanceRow_account.graphql","BillingCurrencyAmount","BillingPayNowLandingConstants","BillingSectionRow.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BillingBalanceRow_account.graphql");function a(a){var b=a.account,e=a.borderBottom;e=e===void 0?!1:e;a=a.marginBottom;a=a===void 0?0:a;var f=c("useBillingWizardComponents")(),g=f.Column;f=f.Text;b=d("RelayHooks").useFragment(j,b);b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(b==null?void 0:b.coupon_balance);var h=!(b==null?void 0:b.isZero());return i.jsx(i.Fragment,{children:h&&i.jsxs(c("BillingSectionRow.react"),{accessible:!0,borderBottom:e,columnSpacing:12,headline:c("BillingPayNowLandingConstants").headlineToken,marginBottom:a,children:[i.jsx(g,{children:i.jsx(f,{body:b==null?void 0:b.format()})}),i.jsx(g,{padding:"8-text",withBackground:!0,children:i.jsx(f,{level:4,meta:c("BillingPayNowLandingConstants").usedFirst})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingPayNowLandingView.react",["BillingBalanceRow.react","BillingCurrencyAmount","BillingNewPaymentMethodRow.react","BillingPayNowLandingView_account.graphql","BillingPayNowSelectAmountSection.react","BillingPaymentMethodRow.react","BillingRowContainer.react","BillingSelectAmountRow.react","RelayHooks","react","useBillingAggregatedStatementInfo"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BillingPayNowLandingView_account.graphql");function a(a){var b,e,f=a.account,g=a.onSelect,h=a.selectedID;a=a.selectedType;f=d("RelayHooks").useFragment(j,f);var k=c("useBillingAggregatedStatementInfo")(f==null?void 0:f.billing_payment_account);b=(b=f==null?void 0:f.account_status)!=null?b:"ACTIVE";var l=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(f==null?void 0:f.account_balance);e=(e=f==null?void 0:(e=f.billable_account_tax_info)==null?void 0:e.business_country_code)!=null?e:"US";var m=f==null?void 0:f.billing_payment_account,n=!1;(l==null?void 0:l.isZero())&&b==="UNSETTLED"&&(n=!0);return i.jsxs(c("BillingRowContainer.react"),{children:[!(l==null?void 0:l.isZero())&&[k!=null||(f==null?void 0:f.is_on_flex_billing)===!0?i.jsx(c("BillingPayNowSelectAmountSection.react"),{account:f,aggregatedStatementInfo:k},"select-section"):i.jsx(c("BillingSelectAmountRow.react"),{account:f},"select-row"),i.jsx(c("BillingBalanceRow.react"),{account:f},"balance-row"),i.jsx(c("BillingPaymentMethodRow.react"),{blocklist:["EXTENDED_CREDIT"],data:m,entryPoint:"pay_now",onSelect:g,selectedID:h},"pm-row")],i.jsx(c("BillingNewPaymentMethodRow.react"),{account:m,blocklist:n?["FB_TOKEN"]:["EXTENDED_CREDIT","FB_TOKEN"],country:e,onSelect:g,selectedID:h,selectedType:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingPayNowLandingView_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingPayNowLandingView_account",selections:[{args:null,kind:"FragmentSpread",name:"BillingBalanceRow_account"},{args:null,kind:"FragmentSpread",name:"BillingPayNowSelectAmountSection_account"},{args:null,kind:"FragmentSpread",name:"BillingSelectAmountRow_account"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account_tax_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"business_country_code",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingPaymentMethodRow_data"},{args:null,kind:"FragmentSpread",name:"BillingNewPaymentMethodRow_data"},{args:null,kind:"FragmentSpread",name:"useBillingAggregatedStatementInfo_data"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"account_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_on_flex_billing",storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingPayNowOrSettleStateSettleMutation.graphql",["BillingPayNowOrSettleStateSettleMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d=[{kind:"Literal",name:"crit_read",value:!0}],e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],f={alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"external_uri",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"nonce",storageKey:null},j={alias:null,args:null,concreteType:"IframeBrokeredPaymentURLParams",kind:"LinkedField",name:"params",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPayNowOrSettleStateSettleMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountSettleResponsePayload",kind:"LinkedField",name:"billable_account_settle",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:"account_balance(crit_read:true)"},f],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[{kind:"InlineFragment",selections:[g,h,i,j],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPayNowOrSettleStateSettleMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountSettleResponsePayload",kind:"LinkedField",name:"billable_account_settle",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[g,{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:"account_balance(crit_read:true)"},f,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[g,{kind:"InlineFragment",selections:[h,i,j],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingPayNowOrSettleStateSettleMutation_facebookRelayOperation"),metadata:{},name:"BillingPayNowOrSettleStateSettleMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingBalanceRow_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingBalanceRow_account",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"};e.exports=a}),null);
-----
BillingPayNowOrSettleStatePayNowMutation.graphql",["BillingPayNowOrSettleStatePayNowMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d=[{kind:"Literal",name:"crit_read",value:!0}],e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],f={alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"formatted_amount",storageKey:null},h=[{alias:null,args:null,kind:"ScalarField",name:"amount",storageKey:null},g],i={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_coupons",plural:!1,selections:h,storageKey:null},j={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_payment_method",plural:!1,selections:h,storageKey:null};h={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"charged_amount_store_balance",plural:!1,selections:h,storageKey:null};var k={alias:null,args:null,kind:"ScalarField",name:"charged_payment_method_id",storageKey:null};g={alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"total",plural:!1,selections:[g],storageKey:null};var l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"external_uri",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"nonce",storageKey:null},o={alias:null,args:null,concreteType:"IframeBrokeredPaymentURLParams",kind:"LinkedField",name:"params",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPayNowOrSettleStatePayNowMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPayNowResponsePayload",kind:"LinkedField",name:"billable_account_pay_now",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:"account_balance(crit_read:true)"},f],storageKey:null},i,j,h,k,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[{kind:"InlineFragment",selections:[l,m,n,o],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPayNowOrSettleStatePayNowMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPayNowResponsePayload",kind:"LinkedField",name:"billable_account_pay_now",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[l,{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:"account_balance(crit_read:true)"},f,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},i,j,h,k,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[l,{kind:"InlineFragment",selections:[m,n,o],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingPayNowOrSettleStatePayNowMutation_facebookRelayOperation"),metadata:{},name:"BillingPayNowOrSettleStatePayNowMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingAssignAdCreditsScreen.react",["fbt","BillingAssignAdCreditsConstants","BillingAssignAdCreditsScreenQuery.graphql","BillingAssignAdCreditsView.react","BillingCurrencyAmount","BillingWrapperWithForm.react","RelayHooks","react","useBillingAssignAdCredits"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=i!==void 0?i:i=b("BillingAssignAdCreditsScreenQuery.graphql");function a(a){var b,e=a.isAccountLevelCoupon,f=a.isEditingExisting,g=a.onSubmit,i=a.originalAssignedCampaigns,m=a.paymentMethodID,n=a.preloadedQuery;a=a.wrapperProps;n=d("RelayHooks").usePreloadedQuery(l,n);b=(b=n.billable_account_by_payment_account)==null?void 0:b.ad_campaign_groups;n=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n==null?void 0:(n=n.node)==null?void 0:n.current_balance_currency_amount);var o=a.status;i=i!=null&&i.length!==0?i:[];e=k(e===!0?"account_level":"campaign_level");var p=e[0];e=e[1];m=c("useBillingAssignAdCredits")(m,i.length===0?[]:i,f,n,g,p);i=m.fields;f=m.handleSubmit;return j.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{fieldsConfig:i,onSubmit:f,primaryButtonLabel:h._("u4fddu5b58"),status:o,title:c("BillingAssignAdCreditsConstants").title,children:j.jsx(c("BillingAssignAdCreditsView.react"),{account:b,level:p,onSelectLevel:e})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=l;g["default"]=a}),98);
-----
BillingAssignAdCreditsScreenQuery.graphql",["BillingAssignAdCreditsScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},{defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"}],c=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],d=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],e=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAssignAdCreditsScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"current_balance_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:d,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdsToken",abstractKey:null}],storageKey:null},{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingAssignAdCreditsView_account"}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAssignAdCreditsScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"current_balance_currency_amount",plural:!1,selections:d,storageKey:null}],type:"AdsToken",abstractKey:null},g],storageKey:null},{alias:null,args:e,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{alias:null,args:null,concreteType:"AdCampaignGroup",kind:"LinkedField",name:"nodes",plural:!0,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null},g],storageKey:null}]},params:{id:b("BillingAssignAdCreditsScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingAssignAdCreditsScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingAltPayAddFunds",["BillingCurrencyAmount","BillingPrepayUtils","RelayHooks","react","regeneratorRuntime","useBillableAccountBalance","useBillingAltPayAddFunds_account.graphql","useBillingLogger"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useCallback,j=e.useMemo,k=e.useState,l=h!==void 0?h:h=b("useBillingAltPayAddFunds_account.graphql");function a(a,e,f){var g,h=c("useBillingLogger")();a=d("RelayHooks").useFragment(l,a);var m=(g=a==null?void 0:a.currency)!=null?g:"USD";g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.prepay_details)==null?void 0:g.default_funding_amount);var n=f!=null?f:g;g=k((f=n==null?void 0:n.format({showSymbol:!1}))!=null?f:d("BillingCurrencyAmount").createZero(m).format({showSymbol:!1}));f=g[0];var o=g[1],p=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.prepay_details)==null?void 0:g.max_acceptable_amount),q=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.prepay_details)==null?void 0:g.min_acceptable_amount);g=c("useBillableAccountBalance")(a);a=g.balance;g=g.isStoredBalance;g=g?a:d("BillingCurrencyAmount").createZero(m);a=g.add(d("BillingCurrencyAmount").getFromUserInput(f,m));g=i(function(a){var c;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:c=d("BillingCurrencyAmount").getFromUserInput(a.amount,m);f.next=3;return b("regeneratorRuntime").awrap(e(c));case 3:case"end":return f.stop()}},null,this)},[m,e]);f=j(function(){var a;return{amount:{defaultValue:(a=n==null?void 0:n.format({showSymbol:!1}))!=null?a:"0",onChange:function(a){o(a);return{amount:a}},required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,m);return d("BillingPrepayUtils").validateAmount(a,q,p,h)}}}},[m,n,h,p,q]);return{fields:f,newPrepaidBalance:a,onSubmit:g}}g["default"]=a}),98);
-----
BillingThirdPartyAddFundsState",["BillingAltPay2Screen.react","BillingCurrencyAmount","BillingError","BillingIconUtils","BillingPaymentModeUtils","BillingThirdPartyAddFundsStateInitMutation.graphql","BillingThirdPartyAddFundsStateInitQuery.graphql","BillingThirdPartyConstants","BillingThirdPartyScreen.react","BillingWizardTypes","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("react"),k=h!==void 0?h:h=b("BillingThirdPartyAddFundsStateInitQuery.graphql"),l=i!==void 0?i:i=b("BillingThirdPartyAddFundsStateInitMutation.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
BillingAltPayStateInitQuery.graphql",["BillingAltPayStateInitQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},g={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_method_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],type:"AdAccountAltpayOption",abstractKey:null},i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAltPayStateInitQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null},f,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[h],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAltPayStateInitQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[i,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null}],type:"AdAccount",abstractKey:null},f,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[i,h,j],storageKey:null},j],storageKey:null},j],storageKey:null}]},params:{id:b("BillingAltPayStateInitQuery_facebookRelayOperation"),metadata:{},name:"BillingAltPayStateInitQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingAltPayAddFunds_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[{kind:"RootArgument",name:"paymentMethodID"},{kind:"RootArgument",name:"providerID"}],kind:"Fragment",metadata:null,name:"useBillingAltPayAddFunds_account",selections:[{args:null,kind:"FragmentSpread",name:"useBillableAccountBalance_billingAccount"},{kind:"InlineFragment",selections:[a,{alias:null,args:[{kind:"Variable",name:"credential_id",variableName:"paymentMethodID"},{kind:"Literal",name:"do_not_filter",value:!0},{kind:"Variable",name:"payment_method_type",variableName:"providerID"}],concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_details",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:b,storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingThirdPartyAddFundsStateInitQuery.graphql",["BillingThirdPartyAddFundsStateInitQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},g={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_method_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],type:"AdAccountAltpayOption",abstractKey:null},i={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingThirdPartyAddFundsStateInitQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null},f,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[h],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingThirdPartyAddFundsStateInitQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[i,d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null}],type:"AdAccount",abstractKey:null},f,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_method_options",plural:!0,selections:[i,h,j],storageKey:null},j],storageKey:null},j],storageKey:null}]},params:{id:b("BillingThirdPartyAddFundsStateInitQuery_facebookRelayOperation"),metadata:{},name:"BillingThirdPartyAddFundsStateInitQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingAltPayState",["BillingAltPay2Screen.react","BillingAltPayConstants","BillingAltPayScreen.react","BillingAltPayStateCheckWalletPaymentStatusMutation.graphql","BillingAltPayStateInitMutation.graphql","BillingAltPayStateInitQuery.graphql","BillingCurrencyAmount","BillingError","BillingIconUtils","BillingPaymentModeUtils","BillingWizardTypes","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=c("react"),l=h!==void 0?h:h=b("BillingAltPayStateInitQuery.graphql"),m=i!==void 0?i:i=b("BillingAltPayStateInitMutation.graphql"),n=j!==void 0?j:j=b("BillingAltPayStateCheckWalletPaymentStatusMutation.graphql");function o(a,c,e,f){var g,h,i,j,k,m,n,o,p,q,r,s,t,u,v;return b("regeneratorRuntime").async(function(w){while(1)switch(w.prev=w.next){case 0:q=a.fetchQuery;w.next=3;return b("regeneratorRuntime").awrap(q({query:l,variables:{paymentAccountID:e}},{event_context:"screen"}));case 3:r=w.sent;s=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((h=r.billable_account_by_payment_account)==null?void 0:h.prepay_balance))!=null?g:d("BillingCurrencyAmount").createZero((i=(j=r.billable_account_by_payment_account)==null?void 0:j.currency)!=null?i:"USD");t=(k=r==null?void 0:(m=r.billable_account_by_payment_account)==null?void 0:m.payment_modes)!=null?k:[];u=(r==null?void 0:(n=r.billable_account_by_payment_account)==null?void 0:n.prepay_on_postpay_gk)===!0&&d("BillingPaymentModeUtils").isHybridAccount(t);v=r==null?void 0:(o=r.billable_account_by_payment_account)==null?void 0:(p=o.billing_payment_account)==null?void 0:p.billing_payment_method_options.find(function(a){return a.credential_id===c});if(!(v!=null&&v.payment_method_type!=null)){w.next=10;break}return w.abrupt("return",{altpayName:v==null?void 0:v.title,prepaidBalance:s,provider:v.payment_method_type,showPrepayOnPostpayUpdates:u});case 10:f.logError("query came back with missing or invalid fields",{event:{event_action:"query",event_context:"altpay_state",event_side:"client_side"},exception_class:"error",exception_message:"Missing provider or payment method type"});return w.abrupt("return",{altpayName:"",prepaidBalance:s,provider:"",showPrepayOnPostpayUpdates:u});case 12:case"end":return w.stop()}},null,this)}function p(a){var b=[];for(var c=0;c-----
useBillingUpdateDateThreshold",["BillingCurrencyAmount","BillingDateUtils","BillingManageDateThresholdConstants","RelayHooks","react","regeneratorRuntime","useBillingLogger","useBillingRelay","useBillingUpdateDateThreshold_D_Mutation.graphql","useBillingUpdateDateThreshold_T_Mutation.graphql","useBillingUpdateDateThreshold_account.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=d("react");var k=e.useCallback,l=e.useMemo,m=h!==void 0?h:h=b("useBillingUpdateDateThreshold_account.graphql"),n=i!==void 0?i:i=b("useBillingUpdateDateThreshold_T_Mutation.graphql"),o=j!==void 0?j:j=b("useBillingUpdateDateThreshold_D_Mutation.graphql"),p=function(a){a=parseInt(a,10);if(a<1||a>31)return c("BillingManageDateThresholdConstants").invalidDateInputDescription},q=function(a,b,e,f){var g=c("BillingManageDateThresholdConstants").invalidThresholdInputDescription(e,f);if(f==null||e==null)return g;b=d("BillingCurrencyAmount").getFromUserInput(b,a);f=d("BillingCurrencyAmount").getFromUserInput(f,a);e=d("BillingCurrencyAmount").getFromUserInput(e,a);if(b.isZero()||f.isZero()||e.isZero()||b.compare(f)<0||b.compare(e)>0)return g},r=function(a,b,c,d,e,f){return{date:{defaultValue:a,onChange:function(a){return{date:a,threshold:b}},required:!1,validate:function(a){if(a!=null)return p(a)}},threshold:{defaultValue:b,required:f,validate:function(a){if(a!=null)return q(c,a,d,e)}}}};function a(a,e,f,g,h,i){var j,p,q=c("useBillingRelay")(),s=c("useBillingLogger")();a=d("RelayHooks").useFragment(m,a);var t=(j=a==null?void 0:a.has_capability)!=null?j:!1;j=a==null?void 0:(j=a.active_billing_date_preference)==null?void 0:j.day_of_month;var u=(p=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.requested_billing_threshold))==null?void 0:p.toString(),v=(p=a==null?void 0:a.admarket_id)!=null?p:"",w=(p=a==null?void 0:a.currency)!=null?p:"USD",x=(p=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.min_billing_threshold_currency_amount))==null?void 0:p.toString(),y=(p=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.max_billing_threshold_currency_amount))==null?void 0:p.toString(),z=(p=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.billing_threshold_currency_amount))==null?void 0:p.toString(),A=null;j!=null&&(A=j.toString());a=k(function(a){var i,j,k,l,m,p,r,u,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M;return b("regeneratorRuntime").async(function(N){while(1)switch(N.prev=N.next){case 0:N.prev=0;if(!(t&&a.date!=null)){N.next=6;break}N.next=4;return b("regeneratorRuntime").awrap(q.commitMutation({mutation:o,variables:{input:{admarket_id:v,day_of_month:parseInt(a.date,10)}}},{event_context:"update_billing_date"}));case 4:y=N.sent,l=y==null?void 0:(r=y.ad_account_billing_date_preference)==null?void 0:(u=r.ad_account)==null?void 0:(x=u.active_billing_date_preference)==null?void 0:x.day_of_month;case 6:if(!(a.threshold!=null)){N.next=13;break}F=d("BillingCurrencyAmount").getFromUserInput(a.threshold,w).asGraphQLInput();N.next=10;return b("regeneratorRuntime").awrap(q.commitMutation({mutation:n,variables:{input:{billable_account_payment_legacy_account_id:f,requested_billing_threshold:F}}},{event_context:"update_billing_threshold"}));case 10:G=N.sent,m=G==null?void 0:(z=G.billable_account_requested_billing_threshold)==null?void 0:(A=z.billable_account)==null?void 0:(B=A.requested_billing_threshold)==null?void 0:B.formatted_amount,p=G==null?void 0:(C=G.billable_account_requested_billing_threshold)==null?void 0:(D=C.billable_account)==null?void 0:(E=D.billing_threshold_currency_amount)==null?void 0:E.formatted_amount;case 13:H=((i=l)!=null?i:!isNaN(a.date))?parseInt((j=a.date)!=null?j:0,10):0;I=H!==0?H+d("BillingDateUtils").ordinalSuffix(H):null;J=(k=m)!=null?k:a.threshold;K=J===p;if(!(g!=null)){N.next=22;break}N.next=20;return b("regeneratorRuntime").awrap(g((L=p)!=null?L:"",(M=J)!=null?M:""));case 20:N.next=24;break;case 22:N.next=24;return b("regeneratorRuntime").awrap(e({body:c("BillingManageDateThresholdConstants").successBody(J,I,H>28,K),headline:c("BillingManageDateThresholdConstants").successHeadline(m!=null,l!=null),type:"SUCCESS"}));case 24:N.next=36;break;case 26:N.prev=26;N.t0=N["catch"](0);if(!(h!=null)){N.next=33;break}N.next=31;return b("regeneratorRuntime").awrap(h(a));case 31:N.next=35;break;case 33:N.next=35;return b("regeneratorRuntime").awrap(e({body:c("BillingManageDateThresholdConstants").errorBody,headline:c("BillingManageDateThresholdConstants").errorHeadline,title:c("BillingManageDateThresholdConstants").errorTitle,type:"ERROR"}));case 35:s.logError(N.t0.type,N.t0.errorPayload);case 36:case"end":return N.stop()}},null,this,[[0,26]])},[t,g,q,v,w,f,e,h,s]);p=l(function(){return r(A,i==="lower"?z:u,w,i==="lower"?z:y,i==="max"?z:x,i!=null)},[A,z,u,w,i,y,x]);return{fields:p,onSubmit:a}}g["default"]=a}),98);
-----
BillingPaymentThresholdLandingScreen.react",["fbt","BillingCurrencyAmount","BillingPaymentThresholdConstants","BillingPaymentThresholdLandingScreenQuery.graphql","BillingPaymentThresholdLandingView.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=i!==void 0?i:i=b("BillingPaymentThresholdLandingScreenQuery.graphql");function a(a){var b,e=a.onCancel,f=a.onLowerThreshold,g=a.onSetThreshold,i=a.preloadedQuery;a=a.wrapperProps;i=d("RelayHooks").usePreloadedQuery(l,i);b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(b=i.ad_account)==null?void 0:b.billing_threshold_currency_amount))!=null?b:d("BillingCurrencyAmount").createZero((b=i==null?void 0:(b=i.ad_account)==null?void 0:(b=b.billing_threshold_currency_amount)==null?void 0:b.currency)!=null?b:"USD");var m=c("useBillingWizardComponents")();m=m.Wrapper;var n=k(null),o=n[0];n=n[1];i=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(i==null?void 0:(i=i.ad_account)==null?void 0:i.requested_billing_threshold);i=i==null||i.compare(b)>=0;return j.jsx(m,babelHelpers["extends"]({},a,{primaryButton:{action:o===!0?f:g,disabled:o===null,label:h._("u7ee7u7eed")},secondaryButton:{action:e,label:h._("u53d6u6d88"),reduceEmphasis:!0},title:c("BillingPaymentThresholdConstants").changePaymentThresholdHeader,children:j.jsx(c("BillingPaymentThresholdLandingView.react"),{allowedSetMax:i,isLowering:o,setIsLowering:n,thresholdAmount:b})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=l;g["default"]=a}),98);
-----
BillingPaymentThresholdSetLimitScreen.react",["fbt","BillingCurrencyAmount","BillingPaymentThresholdConstants","BillingPaymentThresholdSetLimitScreenQuery.graphql","BillingPaymentThresholdSetLimitView.react","BillingQuickPerformanceEventsEnum","BillingWrapperWithForm.react","Promise","RelayHooks","react","useBillingQuickPerformanceLogger","useBillingUpdateDateThreshold"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useEffect,l=i!==void 0?i:i=b("BillingPaymentThresholdSetLimitScreenQuery.graphql");function a(a){var e,f,g,i=a.isLoweringThreshold,m=a.onConfirmation,n=a.onError,o=a.onSuccess,p=a.paymentAccountID,q=a.preloadedQuery;a=a.wrapperProps;q=d("RelayHooks").usePreloadedQuery(l,q);e=(e=q==null?void 0:(e=q.ad_account)==null?void 0:e.currency)!=null?e:"USD";var r=c("useBillingQuickPerformanceLogger")(),s="mode",t=i?"lower":"setMax";k(function(){r==null?void 0:r.markerAnnotate(c("BillingQuickPerformanceEventsEnum").WIZARD_STATE_TO_STATE,{annotationKey:s,annotationValue:t})},[t,r]);f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q==null?void 0:(f=q.ad_account)==null?void 0:f.billing_threshold_currency_amount);g=(g=d("BillingCurrencyAmount").getFromPBCurrencyQuantityFragment(q==null?void 0:(g=q.ad_account)==null?void 0:g.min_billing_threshold))!=null?g:d("BillingCurrencyAmount").createZero(e);e=c("useBillingUpdateDateThreshold")(q==null?void 0:q.ad_account,function(){return b("Promise").resolve()},p,o,n,i?"lower":"max");q=e.fields;p=e.onSubmit;return j.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({fieldsConfig:q,onSubmit:i?m:p,primaryButtonLabel:h._("u63d0u4ea4")},a,{title:c("BillingPaymentThresholdConstants").changePaymentThresholdHeader,children:j.jsx(c("BillingPaymentThresholdSetLimitView.react"),{currentThreshold:(o=f==null?void 0:f.toString())!=null?o:"",isLoweringThreshold:i,minThresholdLimit:(n=g==null?void 0:g.toString())!=null?n:""})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=l;g["default"]=a}),98);
-----
BillingPaymentThresholdLandingScreenQuery.graphql",["BillingPaymentThresholdLandingScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f={kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPaymentThresholdLandingScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[f,d],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:[f],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPaymentThresholdLandingScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:e,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingPaymentThresholdLandingScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingPaymentThresholdLandingScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingUpdateDateThreshold_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingUpdateDateThreshold_account",selections:[{alias:null,args:null,kind:"ScalarField",name:"admarket_id",storageKey:null},a,{alias:null,args:[{kind:"Literal",name:"capability",value:"CAN_CHANGE_PREFERRED_BILLING_DAY"}],kind:"ScalarField",name:"has_capability",storageKey:"has_capability(capability:"CAN_CHANGE_PREFERRED_BILLING_DAY")"},{alias:null,args:null,concreteType:"AdAccountBillingDatePreference",kind:"LinkedField",name:"active_billing_date_preference",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"day_of_month",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_billing_threshold_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_billing_threshold_currency_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:b,storageKey:null}],type:"AdAccount",abstractKey:null}}();e.exports=a}),null);
-----
BillingPaymentThresholdSetLimitScreenQuery.graphql",["BillingPaymentThresholdSetLimitScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f=[{alias:null,args:null,kind:"ScalarField",name:"offset_amount",storageKey:null},d],g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingPaymentThresholdSetLimitScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"min_billing_threshold",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_PBCurrencyQuantity",selections:f,args:null,argumentDefinitions:[]}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useBillingUpdateDateThreshold_account"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingPaymentThresholdSetLimitScreenQuery",selections:[{alias:null,args:c,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyQuantity",kind:"LinkedField",name:"min_billing_threshold",plural:!1,selections:f,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"admarket_id",storageKey:null},{alias:null,args:[{kind:"Literal",name:"capability",value:"CAN_CHANGE_PREFERRED_BILLING_DAY"}],kind:"ScalarField",name:"has_capability",storageKey:"has_capability(capability:"CAN_CHANGE_PREFERRED_BILLING_DAY")"},{alias:null,args:null,concreteType:"AdAccountBillingDatePreference",kind:"LinkedField",name:"active_billing_date_preference",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"day_of_month",storageKey:null},g],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_billing_threshold_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"requested_billing_threshold",plural:!1,selections:e,storageKey:null},g],storageKey:null}]},params:{id:b("BillingPaymentThresholdSetLimitScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingPaymentThresholdSetLimitScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingAutoReload",["fbt","BillingCurrencyAmount","BillingPaymentIconUtils.react","BillingPaymentMethodDisplay","BillingPrepayUtils","RelayHooks","react","regeneratorRuntime","useBillingAutoReload_account.graphql","useBillingAutoReload_cc.graphql","useBillingLogger","useBillingWizardComponents"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useMemo,n=i!==void 0?i:i=b("useBillingAutoReload_cc.graphql"),o=j!==void 0?j:j=b("useBillingAutoReload_account.graphql");function a(a,e,f,g,i,j,p){var q,r;g=d("RelayHooks").useFragment(o,e);e=d("RelayHooks").useFragment(n,f);var s=c("useBillingLogger")();f=c("useBillingWizardComponents")();f=f.Link;q=(q=g==null?void 0:(q=g.auto_reload_info)==null?void 0:q.auto_reload_amount)!=null?q:g==null?void 0:(q=g.prepay_details)==null?void 0:q.default_funding_amount;var t=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(r=g.auto_reload_info)==null?void 0:r.auto_reload_trigger_threshold),u=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(q),v=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(r=g.prepay_details)==null?void 0:r.max_acceptable_amount),w=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(g==null?void 0:(q=g.prepay_details)==null?void 0:q.min_acceptable_amount);r={maxAmount:v,minAmount:w};q=((q=e==null?void 0:e.expiry_month)!=null?q:"")+"/"+((q=e==null?void 0:e.expiry_year)!=null?q:"").slice(2);q=h._("u5230u671fu65e5uff1a{date}",[h._param("date",q)]);var x=(g=g==null?void 0:g.currency)!=null?g:"USD",y=d("BillingCurrencyAmount").createZero(x).format({showSymbol:!1});g=h._("{card}. {Link}",[h._param("card",d("BillingPaymentMethodDisplay").getCreditCardDisplay(e==null?void 0:e.card_association_name,e==null?void 0:e.last_four_digits)),h._param("Link",k.jsx(f,{color:"highlight",inline:!0,label:h._("u66f4u6539"),level:4,onClick:p,type:"headline"}))]);p=d("BillingPaymentIconUtils.react").getBillingIcons((f=e==null?void 0:e.billing_icons)!=null?f:[]);e={expiration:q,headline:g,iconInfo:p};f=l(function(c){var e,f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:e=d("BillingCurrencyAmount").getFromUserInput(c.reloadAmount,x);f=d("BillingCurrencyAmount").getFromUserInput(c.triggerAmount,x);g.prev=2;g.next=5;return b("regeneratorRuntime").awrap(j(e,i,f,a));case 5:g.next=10;break;case 7:g.prev=7;g.t0=g["catch"](2);throw g.t0;case 10:case"end":return g.stop()}},null,this,[[2,7]])},[a,x,j,i]);q=m(function(){var a;return{reloadAmount:{defaultValue:(a=u==null?void 0:u.format({showSymbol:!1}))!=null?a:y,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,x);a=d("BillingPrepayUtils").validateAmount(a,w,v,s);if(a!=null)return{message:a,validationState:"ERROR"}}},triggerAmount:{defaultValue:(a=t==null?void 0:t.format({showSymbol:!1}))!=null?a:y,required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,x);a=d("BillingPrepayUtils").validateAmountForReloadThreshold(a,s);if(a!=null)return{message:a,validationState:"ERROR"}}}}},[x,u,t,s,v,w,y]);return{cardInfo:e,fields:q,handleSubmit:f,reloadInfo:r}}g["default"]=a}),98);
-----
useBillingAutoReload_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingAutoReload_account",selections:[a,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:b,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AdAccountPrepayDetail",kind:"LinkedField",name:"prepay_details",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:b,storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
useBillingRequestCreditIncreaseForm",["BillingCountryCurrencyUtils","BillingCurrencyAmount","BillingError","RelayHooks","react","regeneratorRuntime","useBillingRequestCreditIncreaseForm_data.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useCallback,j=e.useMemo,k=e.useState,l=h!==void 0?h:h=b("useBillingRequestCreditIncreaseForm_data.graphql");function a(a,e){var f=k(null),g=f[0],h=f[1];f=d("RelayHooks").useFragment(l,a);var m=f==null?void 0:f.credit_limit,n=f==null?void 0:f.sold_to_org,o=n==null?void 0:n.id;a=(f=n==null?void 0:(a=n.valid_currencies_with_fx_rate)==null?void 0:a.map(function(a){return{label:d("BillingCountryCurrencyUtils").getCurrencyName(a.to_currency),value:(a=a.to_currency)!=null?a:""}}))!=null?f:[];if(o==null||a.length===0)throw new(c("BillingError"))("useBillingRequestCreditIncreaseForm has missing values","required props is missing or invalid",{event_action:"query",event_context:"mi_request_credit_increase_form",event_side:"client_side"},"error");if((m==null?void 0:m.currency)!==null&&(m==null?void 0:m.currency)!=="USD")throw new(c("BillingError"))("credit limit from useBillingRequestCreditIncreaseForm has non-USD currency","required props is missing or invalid",{event_action:"unknown",event_context:"mi_request_credit_increase_form",event_side:"client_side"},"error");f=i(function(a){var c,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:c=a.currency;f=d("BillingCurrencyAmount").getFromUserInput(a.projectedSpend,c).toString();g=d("BillingCurrencyAmount").getFromUserInput(a.requestedCreditLimit,c).toString();h.next=5;return b("regeneratorRuntime").awrap(e(a.currency,o,f,a.reason,g));case 5:case"end":return h.stop()}},null,this)},[e,o]);var p=j(function(){return{currency:{defaultValue:"",onChange:function(a,b){var c;c=n==null?void 0:(c=n.valid_currencies_with_fx_rate)==null?void 0:c.find(function(b){return(b==null?void 0:b.to_currency)===a});var e=null;c=c==null?void 0:c.fx_rate;var f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(m);if(c!=null&&f!=null){f=f.multiply(c);e=f.toString()+" "+a}h(e);return babelHelpers["extends"]({},b,{currency:a})},required:!0},projectedSpend:{defaultValue:"",required:!0,validate:function(a,b){b=b.currency;a=d("BillingCurrencyAmount").getFromUserInput(a,b);if(a.compare(d("BillingCurrencyAmount").createZero(b))<=0)return"Amount must be positive"}},reason:{defaultValue:"",required:!1},requestedCreditLimit:{defaultValue:"",required:!0,validate:function(a,b){b=b.currency;a=d("BillingCurrencyAmount").getFromUserInput(a,b);if(a.compare(d("BillingCurrencyAmount").createZero(b))<=0)return"Amount must be positive";if(g==null)return;b=d("BillingCurrencyAmount").getFromUserInput(g,b);if(a.compare(b)<=0)return"Inputted amount must be greater than the current credit limit"}}}},[m,g,n==null?void 0:n.valid_currencies_with_fx_rate]);return{currencyOptions:a,currentDisplayableCreditLimit:g,fields:p,onSubmit:f}}g["default"]=a}),98);
-----
useBillingResetSpendMutation.graphql",["useBillingResetSpendMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d],f=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useBillingResetSpendMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountResetSpendLimitResponse",kind:"LinkedField",name:"billable_account_reset_spend_limit",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:f,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:f,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useBillingResetSpendMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountResetSpendLimitResponse",kind:"LinkedField",name:"billable_account_reset_spend_limit",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:e,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("useBillingResetSpendMutation_facebookRelayOperation"),metadata:{},name:"useBillingResetSpendMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
useBillingRequestCreditIncreaseForm_data.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingRequestCreditIncreaseForm_data",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"credit_limit",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]},a],storageKey:null},{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"sold_to_org",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"XFBCurrencyFXRateInfo",kind:"LinkedField",name:"valid_currencies_with_fx_rate",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"fx_rate",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"to_currency",storageKey:null}],storageKey:null}],storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"}}();e.exports=a}),null);
-----
BillingSDCVerifyScreenQuery.graphql",["BillingSDCVerifyScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"paymentMethodID"},d=[{kind:"Variable",name:"id",variableName:"paymentMethodID"}],e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null},g={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},f],type:"ExternalCreditCard",abstractKey:null};f={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"bank_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bank_account_type",storageKey:null},f],type:"DirectDebit",abstractKey:null};var h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legal_entity_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"partition_from",storageKey:null}],type:"IEntEC",abstractKey:"__isIEntEC"},j=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],k=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"BillingSDCVerifyScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingPaymentMethodDisplayUtils_paymentCredential",selections:[{kind:"InlineFragment",selections:[e,g,f,h,i],type:"PaymentCredential",abstractKey:"__isPaymentCredential"}],args:null,argumentDefinitions:[]},{kind:"InlineFragment",selections:[{alias:null,args:j,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:k,args:null,argumentDefinitions:[]}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"BillingSDCVerifyScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[g,f,h,i],type:"PaymentCredential",abstractKey:"__isPaymentCredential"},{kind:"InlineFragment",selections:[{alias:null,args:j,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:k,storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}]},params:{id:b("BillingSDCVerifyScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingSDCVerifyScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingAddFunds",["fbt","BillingCurrencyAmount","BillingError","BillingPrepayUtils","BillingQuickPerformanceEventsEnum","RelayHooks","react","regeneratorRuntime","useBillableAccountBalance","useBillingAddFunds_account.graphql","useBillingAddFunds_prepayDetails.graphql","useBillingLogger","useBillingQuickPerformanceLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;e=d("react");var k=e.useCallback,l=e.useMemo,m=e.useState,n=i!==void 0?i:i=b("useBillingAddFunds_prepayDetails.graphql"),o=j!==void 0?j:j=b("useBillingAddFunds_account.graphql");function p(a,b,c,d){var e;e=((e=a==null?void 0:(e=a.billing_payment_account)==null?void 0:e.billing_payment_methods)!=null?e:[]).map(function(a){return a==null?void 0:a.credential}).filter(Boolean);a=((a=a==null?void 0:(a=a.billing_payment_account)==null?void 0:a.billing_payment_method_options)!=null?a:[]).filter(Boolean);e=e.find(function(a){return a.credential_id===b&&a.credential_type===c});if(e!=null)return e.prepay_funding_details;e=a.find(function(a){return a.credential_id===b&&a.payment_method_type===d});return e!=null?e.prepay_funding_details:null}function a(a,e,f,g,i,j){var q;a=d("RelayHooks").useFragment(o,a);var r=c("useBillingLogger")(),s=c("useBillingQuickPerformanceLogger")();j=p(a,g,i,j);j=d("RelayHooks").useFragment(n,j);var t=(q=a==null?void 0:a.currency)!=null?q:"USD";q=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((q=j)==null?void 0:q.default_funding_amount);a=c("useBillableAccountBalance")(a);var u=a.balance;a=a.isStoredBalance;a=a?u:d("BillingCurrencyAmount").createZero(t);var v=f!=null?f:q,w=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((u=j)==null?void 0:u.max_acceptable_amount),x=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((f=j)==null?void 0:f.min_acceptable_amount);u=m((q=v==null?void 0:v.format({showSymbol:!1}))!=null?q:"0");j=u[0];var y=u[1];f=a.add(d("BillingCurrencyAmount").getFromUserInput(j,t));q=k(function(a){var f,j;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:if(!(i==null)){k.next=2;break}throw new(c("BillingError"))("useBillingAddFunds selected type is null","Invalid payment method type",{event_action:"submit",event_context:"add_funds",event_side:"client_side"},"critical_error",{description:h._("u8bf7u9009u62e9u6709u6548u652fu4ed8u65b9u5f0fu4ee5u7ee7u7eed").toString(),summary:h._("u672au9009u62e9u652fu4ed8u65b9u5f0f").toString()});case 2:if(!(i==="FB_TOKEN")){k.next=7;break}k.next=5;return b("regeneratorRuntime").awrap(e(g,i));case 5:k.next=11;break;case 7:f=d("BillingCurrencyAmount").getFromUserInput(a.amount,t);i==="ALT_PAY"&&(s==null?void 0:s.markerStart(c("BillingQuickPerformanceEventsEnum").THIRD_PARTY_MUTATION_CALLS_TIME),s==null?void 0:s.markerAnnotate(c("BillingQuickPerformanceEventsEnum").THIRD_PARTY_MUTATION_CALLS_TIME,{annotationKey:"credential",annotationValue:(j=g)!=null?j:""}));k.next=11;return b("regeneratorRuntime").awrap(e(g,i,f));case 11:case"end":return k.stop()}},null,this)},[t,s,e,g,i]);u=l(function(){var a;return{amount:{defaultValue:(a=v==null?void 0:v.format({showSymbol:!1}))!=null?a:"0",onBlur:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,t);return a.format({showSymbol:!1})},onChange:function(a){y(a);return{amount:a}},required:!0,validate:function(a){if(i!=="FB_TOKEN"){a=d("BillingCurrencyAmount").getFromUserInput(a,t);a=d("BillingPrepayUtils").validateAmount(a,x,w,r);if(a!=null)return{message:a,validationState:"ERROR"}}}}}},[v,i,t,x,w,r]);return{fields:u,newPrepaidBalance:f,onSubmit:q}}g["default"]=a}),98);
-----
BillingAddFundsState",["BillingAddFundsStateMutation.graphql","BillingAddFundsStateQuery.graphql","BillingAddFundsStatusConstants","BillingCurrencyAmount","BillingPaymentModeUtils","BillingWizardTypes","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,aa=h!==void 0?h:h=b("BillingAddFundsStateQuery.graphql"),ba=i!==void 0?i:i=b("BillingAddFundsStateMutation.graphql");a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f-----
useBillingHubPaymentDue",["BillingCurrencyAmount","RelayHooks","useBillingHubPaymentDue_billableAccount.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillingHubPaymentDue_billableAccount.graphql");function a(a){var b;a=d("RelayHooks").useFragment(i,a);b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance))!=null?b:d("BillingCurrencyAmount").createZero((b=a==null?void 0:a.currency)!=null?b:"USD");var c=a==null?void 0:a.india_network_tokenization_migration_status;return!b.isZero()&&((a==null?void 0:a.billable_account_status)==="UNSETTLED"&&c!=="IN_PROGRESS"||(a==null?void 0:a.billable_account_status)==="IN_GRACE_PERIOD")}g["default"]=a}),98);
-----
useBillingPayNowLanding",["BillingBalanceSectionConstants","BillingCurrencyAmount","RelayHooks","react","regeneratorRuntime","useBillingPayNowLanding_account.graphql","useBillingPaymentMethodsList","useBillingPrimaryIDAndType"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useCallback,j=e.useMemo,k=h!==void 0?h:h=b("useBillingPayNowLanding_account.graphql");function a(a,e,f,g){a=d("RelayHooks").useFragment(k,a);var h=c("useBillingPrimaryIDAndType")(a==null?void 0:a.billing_payment_account),l=h.id;h=h.type;var m=(f=f)!=null?f:l,n=(f=g)!=null?f:h,o=(l=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance))!=null?l:d("BillingCurrencyAmount").createZero((g=a==null?void 0:a.currency)!=null?g:"USD"),p=(f=a==null?void 0:a.billable_account_status)!=null?f:"ACTIVE";g=((l=a==null?void 0:(h=a.billing_payment_account)==null?void 0:h.billing_payment_methods)!=null?l:[]).map(function(a){return a==null?void 0:a.credential}).filter(Boolean).filter(function(a){return a.credential_type!=="EXTENDED_CREDIT"&&a.credential_type!=="ADS_STORED_BALANCE"});if(o.isZero())f=null,a="NEW_CREDIT_CARD";else if(g.find(function(a){var b;return a.credential_type===n&&((b=a.credential_id)!=null?b:a.id)===m})!=null)f=m,a=n;else if(g.length!==0){f=(h=g[0].credential_id)!=null?h:g[0].id;a=g[0].credential_type}else f=null,a="NEW_CREDIT_CARD";g=c("useBillingPaymentMethodsList")(e,(l=a)!=null?l:"NEW_CREDIT_CARD",(h=f)!=null?h:void 0);a=g.onSelect;var q=g.selectedID,r=g.selectedType;l=i(function(a){var c,f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:c=d("BillingCurrencyAmount").getFromUserInput(a.amount,o.currency);f="PAY_NOW";c.compare(o)===0&&(p==="UNSETTLED"||p==="IN_GRACE_PERIOD")&&(f="SETTLE");g.next=5;return b("regeneratorRuntime").awrap(e(q,r,c,o,f,a.invoiceIDs));case 5:case"end":return g.stop()}},null,this)},[p,o,e,q,r]);f=j(function(){return{amount:{defaultValue:o.format({showSymbol:!0}),onBlur:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,o.currency);return a.format({showSymbol:!0})},required:!0,validate:function(a){a=d("BillingCurrencyAmount").getFromUserInput(a,o.currency);var b=null;a.compare(o)>0?b=c("BillingBalanceSectionConstants").amountError:(a.isZero()||a.compare(d("BillingCurrencyAmount").createZero(a.currency))<0)&&!o.isZero()&&(b=c("BillingBalanceSectionConstants").zeroAmountError);return b}},invoiceIDs:{defaultValue:void 0,required:!1}}},[o]);return{fields:f,onSelect:a,onSubmit:l,selectedID:q,selectedType:r}}g["default"]=a}),98);
-----
BillingSDCAuthScreen.react",["BillingCurrencyAmount","BillingQE","BillingRowContainer.react","BillingSDCAuthScreenConstants","BillingSDCAuthScreenQuery.graphql","BillingSDCAuthView.react","RelayHooks","react","regeneratorRuntime","useBillingLogger","useBillingSendSDCAuth","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BillingSDCAuthScreenQuery.graphql");function a(a){var e=a.handleCompleteVerification,f=a.handleSubmit,g=a.isSinglePMFlow,h=a.onError,k=a.paymentAccountID,l=a.paymentMethodID,m=a.preloadedQuery;a=a.wrapperProps;var n=c("useBillingWizardComponents")(),o=n.Row,p=n.Text;n=n.Wrapper;var q=c("useBillingLogger")(),r=d("BillingQE").useBillingQE();m=d("RelayHooks").usePreloadedQuery(j,m);m=(m=m==null?void 0:(m=m.billable_account_by_payment_account)==null?void 0:(m=m.billing_payment_account)==null?void 0:m.billing_payment_methods)!=null?m:[];var s=m.map(function(a){return(a=a==null?void 0:(a=a.credential)==null?void 0:a.credential_id)!=null?a:""});s=s.toString();q.logEvent({event:{event_action:"show",event_context:"sdc_log_credentials",event_data:{credentials:s},event_side:"client_side"}});m=m.filter(function(a){return(a==null?void 0:(a=a.credential)==null?void 0:a.__typename)==="ExternalCreditCard"});g&&l!=null&&(m=m.filter(function(a){return(a==null?void 0:(a=a.credential)==null?void 0:a.credential_id)===l}));var t=m[0],u=(s=t==null?void 0:(s=t.credential)==null?void 0:s.credential_id)!=null?s:"",v=(s=(s=m)==null?void 0:s.length)!=null?s:0,w=0,x=null,y=null;s="";var z=!1,A=null,B=g||v===1;g=c("useBillingSendSDCAuth")(k,u,t==null?void 0:t.credential,f,B,h);var C=g.onAuth;B&&v>0?(s=c("BillingSDCAuthScreenConstants").authorizeButton,A=function(){var a,c,d,e;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:if(!((t==null?void 0:t.usability)==="PENDING_VERIFICATION")){g.next=6;break}q.logEvent({event:{event_action:"click",event_context:"sdc_skip_sending_auth",event_data:{credential_id:(a=t==null?void 0:(c=t.credential)==null?void 0:c.credential_id)!=null?a:""},event_side:"client_side"}});g.next=4;return b("regeneratorRuntime").awrap(f(u,B));case 4:g.next=10;break;case 6:if(!((t==null?void 0:t.usability)==="UNVERIFIED_OR_PENDING_AUTH")){g.next=10;break}q.logEvent({event:{event_action:"click",event_context:"sdc_send_auth",event_data:{credential_id:(d=t==null?void 0:(e=t.credential)==null?void 0:e.credential_id)!=null?d:""},event_side:"client_side"}});g.next=10;return b("regeneratorRuntime").awrap(C());case 10:case"end":return g.stop()}},null,this)}):(s=c("BillingSDCAuthScreenConstants").primaryButtonLabelMultiplePM,A=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(e(w===1,x,y));case 2:case"end":return a.stop()}},null,this)});g=r.billing_sdc_verify_localized_amount.show_localized_amount.read();r=((r=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((r=m[0])==null?void 0:(r=r.credential)==null?void 0:r.sdc_auth_amount_localized))!=null?r:d("BillingCurrencyAmount").getFromUserInput("1","USD")).toString();m=(m=m)==null?void 0:m.map(function(a){var b=a==null?void 0:a.credential;a=a==null?void 0:a.usability;a==="USABLE"&&w++;x=b==null?void 0:b.card_association_name;y=b==null?void 0:b.last_four_digits;return i.jsx(c("BillingSDCAuthView.react"),{handleSubmit:f,item:b,onError:h,paymentAccountID:k,showAuthorizeButton:v!==1,usability:(a=a)!=null?a:""},b==null?void 0:b.credential_id)});!B&&w===0&&(z=!0);return i.jsx(n,babelHelpers["extends"]({},a,{primaryButton:z?void 0:{action:A,label:s},title:c("BillingSDCAuthScreenConstants").header,children:i.jsxs(c("BillingRowContainer.react"),{children:[i.jsx(o,{marginBottom:8,children:i.jsx(p,{body:g?c("BillingSDCAuthScreenConstants").authorizeBodySectionLocalizedAmount(r):c("BillingSDCAuthScreenConstants").authorizeBodySection,bodyColor:"secondary",headline:c("BillingSDCAuthScreenConstants").authorizeHeader})}),m!=null?m:null]})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=j;g["default"]=a}),98);
-----
BillingSDCVerifyScreen.react",["BillingCurrencyAmount","BillingHelpCenterConstants","BillingPaymentMethodDisplayUtils","BillingSDCAuthScreenConstants","BillingSDCVerifyScreenConstants","BillingSDCVerifyScreenQuery.graphql","BillingSDCVerifyView.react","BillingWrapperWithForm.react","RelayHooks","react","useBillingVerifySDC","useBillingWizardUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("react"),j=h!==void 0?h:h=b("BillingSDCVerifyScreenQuery.graphql");function a(a){var b=a.handleSubmit,e=a.handleSubmitForSinglePMFlow,f=a.isSinglePMFlow,g=a.onExceeded,h=a.paymentAccountID,k=a.paymentMethodID,l=a.preloadedQuery;a=a.wrapperProps;l=d("RelayHooks").usePreloadedQuery(j,l);var m=c("useBillingWizardUtils")();m=m.OpenLink;var n=m.read();m=d("BillingPaymentMethodDisplayUtils").getPaymentMethodDisplayFromFragment(l.node);l=(l=(l=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((l=l.node)==null?void 0:l.sdc_auth_amount_localized))!=null?l:d("BillingCurrencyAmount").getFromUserInput("1","USD"))==null?void 0:l.toString();h=c("useBillingVerifySDC")(h,k,m,g,b,e,f);k=h.fields;g=h.onSubmit;b={label:c("BillingHelpCenterConstants").contactSupportButtonLabel,onClick:function(){n("https://www.facebook.com/help/contact/391647094929792")}};return i.jsx(c("BillingWrapperWithForm.react"),babelHelpers["extends"]({},a,{errorCTA:b,fieldsConfig:k,onSubmit:g,primaryButtonLabel:c("BillingSDCVerifyScreenConstants").primaryButtonLabel,title:c("BillingSDCAuthScreenConstants").header,children:i.jsx(c("BillingSDCVerifyView.react"),{authAmount:l,cardDisplay:m})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=j;g["default"]=a}),98);
-----
BillingSelectAmountRow.react",["BillingBalanceSectionConstants","BillingCurrencyAmount","BillingFormTextInput.react","BillingSectionRow.react","BillingSelectAmountRow_account.graphql","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("BillingSelectAmountRow_account.graphql");function a(a){var b,e=a.account,f=a.borderBottom;f=f===void 0?!1:f;var g=a.inAddFundsFlow;g=g===void 0?!1:g;var h=a.marginBottom;h=h===void 0?0:h;var k=a.newPrepaidBalance;a=a.specificPM;var l=c("useBillingWizardComponents")(),m=l.DisabledInput;l=l.Link;e=d("RelayHooks").useFragment(j,e);e=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(e==null?void 0:e.account_balance))!=null?b:d("BillingCurrencyAmount").createZero((b=e==null?void 0:e.currency)!=null?b:"USD");b=k!=null?k:"0";k=g?a==null?c("BillingBalanceSectionConstants").prepayHeadline:c("BillingBalanceSectionConstants").prepayHeadlineSpecificPM(a):c("BillingBalanceSectionConstants").paynowHeadline;a=a==null?void 0:c("BillingBalanceSectionConstants").prepayBodySpecificPM(l);return i.jsxs(c("BillingSectionRow.react"),{body:a,borderBottom:f,columnSpacing:8,headline:k,marginBottom:h,children:[!g&&i.jsx(m,{fieldSize:6,label:c("BillingBalanceSectionConstants").totalAmountDue,marginBottom:8,mobileFieldSize:12,value:e.format()}),i.jsx(c("BillingFormTextInput.react"),{fieldSize:6,helperText:g?c("BillingBalanceSectionConstants").newPrepaidBalanceBody(b):null,label:c("BillingBalanceSectionConstants").amount,marginBottom:8,name:"amount",testid:void 0})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingReviewPaymentScreen.react",["BillingCurrencyAmount","BillingError","BillingIconUtils","BillingPaymentMethodDisplay","BillingReviewPaymentConstants","BillingReviewPaymentScreenQuery.graphql","BillingRowContainer.react","RelayHooks","react","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useCallback,k=h!==void 0?h:h=b("BillingReviewPaymentScreenQuery.graphql");function a(a){var b,e,f,g=a.csc,h=a.onSubmit,l=a.paymentAmount,m=a.paynow,n=a.preloadedQuery;a=a.wrapperProps;var o=c("useBillingWizardComponents")(),p=o.IconGroup,q=o.Row,r=o.Text;o=o.Wrapper;n=d("RelayHooks").usePreloadedQuery(k,n);if(l==null)throw new(c("BillingError"))("BillingReviewPaymentScreen null paymentAmount","required props is missing or invalid",{event_action:"enter",event_context:"screen",event_result:"failure",event_side:"client_side"},"critical_error");b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((b=n.billable_account_by_payment_account)==null?void 0:b.prepay_balance);e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(n==null?void 0:(e=n.billable_account_by_payment_account)==null?void 0:e.account_balance);e=m?e==null?void 0:e.subtract(l):b==null?void 0:b.add(l);b=j(function(){return h(g)},[g,h]);var s,t;switch(n==null?void 0:(f=n.node)==null?void 0:f.__typename){case"ExternalCreditCard":var u;f=(n==null?void 0:(f=n.node)==null?void 0:f.card_association)||"UNKNOWN";s=d("BillingPaymentMethodDisplay").getCreditCardDisplay((u=n.node)==null?void 0:u.card_association_name,(u=n.node)==null?void 0:u.last_four_digits);t=d("BillingIconUtils").getIconTypeFromOriginalType(f);break;case"PaymentPaypalBillingAgreement":t="PM_PAYPAL";s=d("BillingPaymentMethodDisplay").getPayPalDisplay(n==null?void 0:(u=n.node)==null?void 0:u.email)}return i.jsx(o,babelHelpers["extends"]({},a,{mobileVerticalTextAlign:!0,primaryButton:{action:b,label:c("BillingReviewPaymentConstants").prepayConfirm},title:c("BillingReviewPaymentConstants").header,children:i.jsxs(c("BillingRowContainer.react"),{children:[i.jsx(q,{justify:"space-around",children:t!=null?i.jsx(p,{icons:[t,"INLINE_ARROW_RIGHT","PM_PREPAY"]}):i.jsx(p,{icons:["PM_PREPAY"]})}),i.jsx(q,{justify:"space-around",children:i.jsx(r,{body:c("BillingReviewPaymentConstants").body(e==null?void 0:e.toString(),s),headline:m?c("BillingReviewPaymentConstants").postpayHeadline(l.toString()):c("BillingReviewPaymentConstants").prepayHeadline(l.toString()),testid:void 0,textAlign:"center"})})]})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=k;g["default"]=a}),98);
-----
BillingSDCAuthScreenQuery.graphql",["BillingSDCAuthScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c={kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"},d=[c],e=[{kind:"Literal",name:"allowlist",value:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION"]}],f={alias:null,args:null,kind:"ScalarField",name:"usability",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null};c=[c,{kind:"Literal",name:"show_default_amount",value:!0}];var k=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingSDCAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:null,args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingSDCAuthView_item"},{args:null,kind:"FragmentSpread",name:"useBillingSendSDCAuth_item"},g,{kind:"InlineFragment",selections:[h,i,j,{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:k,args:null,argumentDefinitions:[]}],storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(allowlist:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION"])"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingSDCAuthScreenQuery",selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[g,{alias:null,args:e,concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{kind:"TypeDiscriminator",abstractKey:"__isPaymentCredential"},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association",storageKey:null},j,h,i,{alias:null,args:null,kind:"ScalarField",name:"expiry_month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"expiry_year",storageKey:null},{alias:null,args:[{kind:"Literal",name:"limit",value:1}],concreteType:"Image",kind:"LinkedField",name:"billing_icons",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:"billing_icons(limit:1)"},{alias:null,args:c,concreteType:"CurrencyAmount",kind:"LinkedField",name:"sdc_auth_amount_localized",plural:!1,selections:k,storageKey:null}],type:"ExternalCreditCard",abstractKey:null},g,l],storageKey:null}],storageKey:"billing_payment_methods(allowlist:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION"])"},l],storageKey:null},l],storageKey:null}]},params:{id:b("BillingSDCAuthScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingSDCAuthScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingAuthenticateChargeScreen.react",["BillingAddFundsStatusConstants","BillingAuthenticateChargeScreenQuery.graphql","BillingAuthenticateChargeView.react","BillingCurrencyAmount","RelayHooks","react","useBillingLogger","useBillingWizardComponents"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useCallback,k=h!==void 0?h:h=b("BillingAuthenticateChargeScreenQuery.graphql");function a(a){var b,e=a.authenticateChargeParams,f=a.onFailure,g=a.onSuccess,h=a.paymentAmount,l=a.preloadedQuery;a=a.wrapperProps;l=d("RelayHooks").usePreloadedQuery(k,l);b=(b=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment((b=l.billable_account_by_payment_account)==null?void 0:b.prepay_balance))!=null?b:d("BillingCurrencyAmount").createZero((b=(b=l.billable_account_by_payment_account)==null?void 0:b.currency)!=null?b:"USD");var m=((h=h)!=null?h:d("BillingCurrencyAmount").createZero((l=(h=l.billable_account_by_payment_account)==null?void 0:h.currency)!=null?l:"USD")).add(b);l=(h=e)!=null?h:{};b=l.nonce;e=l.params;h=l.url;var n=c("useBillingLogger")();l=c("useBillingWizardComponents")();l=l.Wrapper;var o=j(function(){n.logEvent({event:{event_action:"unknown",event_context:"screen",event_result:"failure",event_side:"client_side"}}),f()},[n,f]),p=j(function(a){(a==null?void 0:a.status)==="COMPLETED"?g(m):f()},[g,m,f]);return i.jsx(l,babelHelpers["extends"]({},a,{title:c("BillingAddFundsStatusConstants").authenticateChargeHeader,webView:!0,children:i.jsx(c("BillingAuthenticateChargeView.react"),{nonce:b,onError:o,onSuccess:p,params:e,url:h})}))}a.displayName=a.name+" [from "+f.id+"]";a.query=k;g["default"]=a}),98);
-----
BillingHubPaymentSettingsAdCreditsCard.react",["fbt","ix","BillingAdCreditConstants","BillingAdCreditUtils","BillingCurrencyAmount","BillingHubCard.react","BillingHubPaymentSettingsAdCreditExpandingSection.react","BillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql","CometRelay","GeoAccordionList.react","GeoAccordionListItem.react","GeoDivider.react","GeoList.react","GeoListItem.react","GeoSection.react","Image.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=j!==void 0?j:j=b("BillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql"),m={divider:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0}};function a(a){var b,e,f,g,j,n;a=a.account;a=d("CometRelay").useFragment(l,a);var o=k.jsx(c("Image.react"),{src:i("1507321")});b=d("BillingCurrencyAmount").createZero((b=a==null?void 0:a.currency)!=null?b:"USD");e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.coupon_balance))!=null?e:b;f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_level_coupon_balance))!=null?f:b;g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.campaign_level_coupon_balance))!=null?g:b;b=d("BillingAdCreditUtils").useOrganizeAdCredits(a==null?void 0:a.billing_payment_account);j=(j=b==null?void 0:b.accountLevelCredits)!=null?j:[];n=(n=b==null?void 0:b.campaignLevelCredits)!=null?n:[];var p=j.length>0,q=n.length>0;b=((b=b==null?void 0:b.allAdCredits)!=null?b:[]).length>0;a=((a=a==null?void 0:(a=a.ad_campaign_groups)==null?void 0:a.count)!=null?a:0)>0;e=h._("{=m0}",[h._implicitParam("=m0",k.jsx("strong",{children:h._("{account ad credit balance}",[h._param("account ad credit balance",e==null?void 0:e.toLocaleString())])}))]);f=h._("u5e10u6237u62b5u7528u91d1uff1a{=m2}",[h._implicitParam("=m2",k.jsx("strong",{children:h._("{account ad credit balance}",[h._param("account ad credit balance",f==null?void 0:f.toLocaleString())])}))]);g=h._("u5e7fu544au7cfbu5217u62b5u7528u91d1uff1a{=m2}",[h._implicitParam("=m2",k.jsx("strong",{children:h._("{campaign ad credit balance}",[h._param("campaign ad credit balance",g==null?void 0:g.toLocaleString())])}))]);return b?k.jsx(c("BillingHubCard.react"),{title:c("BillingAdCreditConstants").title,children:k.jsx(c("GeoSection.react"),{children:p&&q?k.jsxs(c("GeoAccordionList.react"),{variant:"divided",children:[k.jsx(c("GeoAccordionListItem.react"),{item:k.jsx(c("GeoListItem.react"),{label:f,media:o}),children:k.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:j,hasCampaigns:a})}),k.jsx(c("GeoAccordionListItem.react"),{item:k.jsx(c("GeoListItem.react"),{label:g,media:o}),children:k.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:n,hasCampaigns:a})})]}):p?k.jsx(c("GeoAccordionList.react"),{variant:"flat",children:k.jsx(c("GeoAccordionListItem.react"),{item:k.jsx(c("GeoListItem.react"),{label:e,media:o}),children:k.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:j,hasCampaigns:a})})}):q?k.jsxs(k.Fragment,{children:[k.jsx(c("GeoList.react"),{children:k.jsx(c("GeoListItem.react"),{label:f,media:o})}),k.jsx(c("GeoDivider.react"),{xstyle:m.divider}),k.jsx(c("GeoAccordionList.react"),{variant:"flat",children:k.jsx(c("GeoAccordionListItem.react"),{item:k.jsx(c("GeoListItem.react"),{label:g,media:o}),children:k.jsx(c("BillingHubPaymentSettingsAdCreditExpandingSection.react"),{adCreditArray:n,hasCampaigns:a})})})]}):k.jsx(c("GeoList.react"),{variant:"default",children:k.jsx(c("GeoListItem.react"),{label:e,media:o})})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useBillingHubPaymentDue_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingHubPaymentDue_billableAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"india_network_tokenization_migration_status",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsAutoReloadSection.react",["fbt","BillingAutoReloadConstants","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubPaymentSettingsAutoReloadSection_billableAccount.graphql","BillingPaymentModeUtils","CometRelay","CometSwitch.react","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoLink.react","GeoSection.react","react","useBillingWizardForHub"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("BillingHubPaymentSettingsAutoReloadSection_billableAccount.graphql"),l={marginBottom:{marginBottom:"x16pr9af",$$css:!0},marginLeft:{marginStart:"x15u6uln",$$css:!0}};function a(a){var b,e,f,g;a=a.account;a=d("CometRelay").useFragment(k,a);b=(b=a==null?void 0:(b=a.billing_payment_account)==null?void 0:b.supports_recurring.filter(function(a){return((a=a.credential)==null?void 0:a.credential_id)!=null}))!=null?b:[];e=d("BillingPaymentModeUtils").supportsAutoReload((e=a==null?void 0:a.payment_modes)!=null?e:[])&&b.length!==0;f=(a==null?void 0:(f=a.auto_reload_info)==null?void 0:f.auto_reload_status)==="ENABLED";g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(g=a.auto_reload_info)==null?void 0:g.auto_reload_trigger_threshold);a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(a=a.auto_reload_info)==null?void 0:a.auto_reload_amount);var i=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();i=i.hasBillingWritePermission;var m=b.length!==0?(b=(b=b[0].credential)==null?void 0:b.credential_id)!=null?b:"":"",n=!f;b=c("useBillingWizardForHub")();var o=b[0];b=h._("u91d1u989du4e3a{reload amount}u65f6u5145u503c{reload threshold}u3002{link}",[h._param("reload amount",((b=a)!=null?b:"0").toString()),h._param("reload threshold",((a=g)!=null?a:"0").toString()),h._param("link",i?j.jsx(c("GeoLink.react"),{onClick:function(){return o({paymentMethodID:m,shouldTurnOn:!0,wizardName:"AUTO_RELOAD"},{eventContext:"edit_auto_reload"})},children:h._("u7f16u8f91")}):null)]);return!e?null:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:[l.marginLeft,l.marginBottom],children:[j.jsxs(c("GeoFlexbox.react"),{alignItems:"start",direction:"column",justifyContent:"start",children:[j.jsx(c("GeoHeading.react"),{level:4,children:f?c("BillingAutoReloadConstants").autoReloadOnHeadline:c("BillingAutoReloadConstants").autoReloadOffHeadline}),j.jsx(c("GeoBaseText.react"),{color:"headingDescription",size:"valueDescription",children:f?b:c("BillingAutoReloadConstants").autoReloadOffBody})]}),j.jsx(c("GeoHStack.react"),{justifyContent:"end",children:j.jsx(c("CometSwitch.react"),{disabled:!i,onClick:function(){return o({paymentMethodID:m,shouldTurnOn:n,wizardName:"AUTO_RELOAD"},{eventContext:"edit_auto_reload"})},value:f,children:h._("u5f00u5173")})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingHubPaymentSettingsAccountSpendLimitCard.react",["fbt","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubCard.react","BillingHubCardLink.react","BillingHubCardTooltips","BillingHubPaymentSettingsAccountSpendLimitCardContent","BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql","BillingHubProgressBar.react","BillingHubTourContext","BillingPaymentModeUtils","CometRelay","ContentRefComet","GeoBaseText.react","GeoHeading.react","GeoSection.react","GeoVStack.react","geoMargin","react","requireDeferred","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useEffect,l=c("requireDeferred")("BillingHubPaymentSettingsAccountSpendLimitActionSheet.react").__setRef("BillingHubPaymentSettingsAccountSpendLimitCard.react"),m=i!==void 0?i:i=b("BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql");function n(){return j.jsxs(c("GeoBaseText.react"),{color:"value",size:"value",children:[c("BillingHubPaymentSettingsAccountSpendLimitCardContent").about," ",j.jsx(c("BillingHubCardLink.react"),{eventContext:"link_help_center",href:d("ContentRefComet").get("ABOUT_ACCOUNT_SPENDING_LIMITS","ADS_PAYMENT_SETTINGS"),text:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").learnMoreLabel})]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b,e,f;a=a.account;var g=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();g=g.hasBillingWritePermission;a=d("CometRelay").useFragment(m,a);b=d("BillingPaymentModeUtils").isPrepayOnlyAccount((b=a==null?void 0:a.payment_modes)!=null?b:[]);e=d("BillingPaymentModeUtils").isNewUserAccount((e=a==null?void 0:a.payment_modes)!=null?e:[]);f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(f=a.spending_info)==null?void 0:f.spend_limit_currency_amount);a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:(a=a.spending_info)==null?void 0:a.amount_spent_currency_amount);var i;if(a==null||f==null)i=j.jsx(n,{});else{var o=f.percentageOf(a),p=f.subtract(a);i=j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("GeoHeading.react"),{level:3,children:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").remainingAmount(p.toString())}),j.jsx("div",{className:c("stylex")(c("geoMargin").top8),children:j.jsx(c("BillingHubProgressBar.react"),{bodyText:{limitAmount:h._("| {spend limit}u82b1u8d39u9650u989d",[h._param("spend limit",f.toString())]),spendAmount:h._("u82b1u8d39{amount spent}",[h._param("amount spent",a.toString())])},percentFull:o})})]})}p=d("BillingHubTourContext").useBillingHubTourContext();o=p.getStep;var q=p.onUpdateSteps;k(function(){q([{shouldInclude:!0,tourStep:"PAYMENT_SETTINGS_SPEND_LIMIT"}]);return function(){return q([{shouldInclude:!1,tourStep:"PAYMENT_SETTINGS_SPEND_LIMIT"}])}},[q]);return e?null:g&&!b?j.jsx(c("BillingHubCard.react"),{action:{label:"",popoverProps:{amountSpent:a,spendLimit:f},popoverResource:l},cardRef:(p=o("PAYMENT_SETTINGS_SPEND_LIMIT"))==null?void 0:p.props.contextRef,infoText:c("BillingHubCardTooltips").AccountSpendLimitCardTooltip,title:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").title,children:j.jsx(c("GeoSection.react"),{children:i})}):j.jsx(c("BillingHubCard.react"),{cardRef:(e=o("PAYMENT_SETTINGS_SPEND_LIMIT"))==null?void 0:e.props.contextRef,title:c("BillingHubPaymentSettingsAccountSpendLimitCardContent").title,children:j.jsx(c("GeoSection.react"),{children:i})})}g["default"]=a}),98);
-----
BillingHubPaymentSettingsPaymentThresholdSection.react",["fbt","ix","BillingCurrencyAmount","BillingHubBillableAccountContext","BillingHubPaymentSettingsPaymentThresholdSection_billableAccount.graphql","BillingNexusAmountDueCardContent","BillingPaymentModeUtils","GeoBasePressable.react","GeoBaseText.react","GeoColorSelectors","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoVStack.react","QE2Logger","RelayHooks","fbicon","formatDate","geoMargin","react","stylex","useBillingWizardForHub"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l={icon:{alignItems:"x6s0dn4",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",marginEnd:"x1emribx",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",position:"x1n2onr6",$$css:!0},line:{backgroundColor:"x14nfmen",height:"xlup9mm",width:"x1i1rx1s",$$css:!0},paymentThresholdContainer:{borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0},pencil:{marginTop:"x9otpla",marginEnd:"x1n0m28w",marginBottom:"x1wsgfga",marginStart:"xp7jhwk",$$css:!0},separator:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},textContainer:{display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0}},m=d("GeoColorSelectors").selectStaticBackgroundColor({surface:"wash"}),n=d("GeoColorSelectors").selectStaticBackgroundColor({isMuted:!0,surface:"wash"}),o=j!==void 0?j:j=b("BillingHubPaymentSettingsPaymentThresholdSection_billableAccount.graphql");function p(a){var b=a.isDisabledAccount,e=a.paymentAccountID,f=a.showPaymentThresholdWizard;a=a.threshold;var g=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext();g=g.hasBillingWritePermission;var j=c("useBillingWizardForHub")(),n=j[0];return k.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"center",children:[k.jsx("div",{className:c("stylex")([l.icon,m]),children:k.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("480632"),24)})},"dollarCircleIconWrapper"),k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[k.jsx(c("GeoHeading.react"),{level:4,children:a}),!b&&g&&k.jsx("div",{className:"x9otpla x1n0m28w x1wsgfga xp7jhwk",children:k.jsx(c("GeoBasePressable.react"),{"aria-label":h._("u7f16u8f91"),density:"fine",onPress:function(){d("QE2Logger").logExposureForPaymentAccountID("billing_payment_threshold_wizard_universe",e),n({wizardName:f?"PAYMENT_THRESHOLD":"MANAGE_BILLING_DATE_THRESHOLD"},{eventContext:"update_billing_threshold"})},variant:"flat",children:k.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("477824"),12)})})},"pencilIconWrapper")]}),k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingNexusAmountDueCardContent").paymentThreshold})]},"paymentThresholdSubsectionDetailsWrapper")]})}p.displayName=p.name+" [from "+f.id+"]";function q(){return k.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf",children:[k.jsx("div",{className:"x14nfmen xlup9mm x1i1rx1s"},"paymentThresholdLineDividerTop"),k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingNexusAmountDueCardContent").and}),k.jsx("div",{className:"x14nfmen xlup9mm x1i1rx1s"},"paymentThresholdLineDividerBottom")]},"paymentThresholdDivider")}q.displayName=q.name+" [from "+f.id+"]";function r(a){if((a==null?void 0:a.is_eos_with_30_days)===!0)return"EosWith30Days";else if((a==null?void 0:a.is_eos_with_anniversary)===!0)return"EosWithAnniversary";else if((a==null?void 0:a.is_eos_with_30_days_v2)===!0)return"EosWith30DaysV2";else if((a==null?void 0:a.is_eos_with_anniversary_v2)===!0)return"EosWithAnniversaryV2";return null}function s(a){a=a.endOfSpendType;switch(a){case"EosWith30Days":return k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("GeoHeading.react"),{level:4,children:c("BillingNexusAmountDueCardContent").endOfSpend30DaysBillingDate}),k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingNexusAmountDueCardContent").afterLastCharge})]},"EosWith30DaysSectionWrapper");case"EosWithAnniversary":return k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("GeoHeading.react"),{level:4,children:c("BillingNexusAmountDueCardContent").endOfSpend3DaysBillingDate}),k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingNexusAmountDueCardContent").afterAdsEnd})]},"EosWithAnniversarySectionWrapper");case"EosWith30DaysV2":return k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("GeoHeading.react"),{level:4,children:c("BillingNexusAmountDueCardContent").endOfSpend3DaysBillingDate}),k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingNexusAmountDueCardContent").afterAdsStopRunning})]},"EosWith30DaysV2SectionWrapper");default:return k.jsx(k.Fragment,{})}}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.endOfSpendType,e=a.nextBillDate;a=a.typename;e=new Date(parseInt(e,10)*1e3);e=c("formatDate")(e,"M j, Y");var f=null;a==="CAMBillableAccount"||b==="EosWithAnniversaryV2"||b===null?f=k.jsxs("div",{className:a==="CAMBillableAccount"?"x78zum5 xdt5ytf":void 0,children:[k.jsx(c("GeoHeading.react"),{level:4,children:e}),k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:c("BillingNexusAmountDueCardContent").billingDate})]},"paymentThresholdBillingDateWrapper"):f=k.jsx(s,{endOfSpendType:b});return k.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"center",children:[k.jsx("div",{className:c("stylex")([l.icon,m]),children:k.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("481130"),24)})},"calendarIconWrapper"),f]})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.endOfSpendType;a=a.nextBillDate;var d=null;switch(b){case"EosWithAnniversary":a!=null&&(d=c("BillingNexusAmountDueCardContent").getEndOfSpendBillingDateText(a));break;case"EosWith30DaysV2":d=c("BillingNexusAmountDueCardContent").explainingEndOfSpend30DayCharge;break;case"EosWithAnniversaryV2":d=c("BillingNexusAmountDueCardContent").explainingEndOfSpend3DayCharge;break;default:break}return k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:d})}u.displayName=u.name+" [from "+f.id+"]";function a(a){var b,e,f,g;a=a.account;a=d("RelayHooks").useFragment(o,a);b=(b=a==null?void 0:a.currency)!=null?b:"USD";e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.billing_threshold_currency_amount))!=null?e:d("BillingCurrencyAmount").createZero(b);b=a==null?void 0:a.next_bill_date;f=(f=a==null?void 0:a.alternate_payment_threshold_wizard)!=null?f:!1;var h=r(a),i=d("BillingHubBillableAccountContext").useBillingHubBillableAccountContext(),j=i.creditLineType;i=i.layout;g=d("BillingPaymentModeUtils").isPrepayOnlyAccount((g=a==null?void 0:a.payment_modes)!=null?g:[]);i=i==="CREATOR_MARKETPLACE";return b!=null&&j===null&&!g&&!i?k.jsxs(c("GeoVStack.react"),{xstyle:c("geoMargin").top16,children:[k.jsx(c("GeoHeading.react"),{level:4,children:c("BillingNexusAmountDueCardContent").whenYouWillPay}),k.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"space-around",xstyle:[n,l.paymentThresholdContainer],children:[k.jsxs(k.Fragment,{children:[k.jsx(p,{isDisabledAccount:(a==null?void 0:a.account_status)==="DISABLED",paymentAccountID:(a==null?void 0:a.legacy_account_id)||"",showPaymentThresholdWizard:f,threshold:e==null?void 0:e.toString()}),k.jsx(q,{})]}),k.jsx(t,{endOfSpendType:h,nextBillDate:b,typename:a==null?void 0:a.__typename})]}),k.jsx(u,{endOfSpendType:h,nextBillDate:b})]}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BillingChargeStoredBalanceBeforePayOrFundStateMutation.graphql",["BillingChargeStoredBalanceBeforePayOrFundStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d=[{kind:"Literal",name:"crit_read",value:!0}],e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],f=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingChargeStoredBalanceBeforePayOrFundStateMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountChargeStoredBalanceBeforePayNowResponsePayload",kind:"LinkedField",name:"billable_account_charge_stored_balance_before_pay_now",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:f,storageKey:"account_balance(crit_read:true)"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:f,storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingChargeStoredBalanceBeforePayOrFundStateMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountChargeStoredBalanceBeforePayNowResponsePayload",kind:"LinkedField",name:"billable_account_charge_stored_balance_before_pay_now",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:d,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:"account_balance(crit_read:true)"},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingChargeStoredBalanceBeforePayOrFundStateMutation_facebookRelayOperation"),metadata:{},name:"BillingChargeStoredBalanceBeforePayOrFundStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsAdCreditsCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsAdCreditsCard_billableAccount",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"campaign_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_level_coupon_balance",plural:!1,selections:b,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BillingAdCreditUtils"}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"AdAccountAdCampaignGroupsConnection",kind:"LinkedField",name:"ad_campaign_groups",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:null}],type:"AdAccount",abstractKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsAutoReloadSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsAutoReloadSection_billableAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"auto_reload_status",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_trigger_threshold",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"auto_reload_amount",plural:!1,selections:a,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{alias:"supports_recurring",args:[{kind:"Literal",name:"filter",value:"SUPPORTS_RECURRING"}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}],type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(filter:"SUPPORTS_RECURRING")"}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsAccountSpendLimitCard_billableAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:null,args:null,concreteType:"AdAccountSpendInfo",kind:"LinkedField",name:"spending_info",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"spend_limit_currency_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"amount_spent_currency_amount",plural:!1,selections:a,storageKey:null}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingHubPaymentSettingsPaymentThresholdSection_billableAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b={kind:"Literal",name:"qe_universe",value:"end_of_spend_universe"};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingHubPaymentSettingsPaymentThresholdSection_billableAccount",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"billing_threshold_currency_amount",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"account_status",storageKey:null}],type:"AdAccount",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"next_bill_date",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},{alias:"alternate_payment_threshold_wizard",args:[{kind:"Literal",name:"disable_auto_exposure_logging",value:!0},{kind:"Literal",name:"param",value:"alternate_payment_threshold_wizard"},{kind:"Literal",name:"qe_universe",value:"billing_payment_threshold_wizard_universe"}],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(disable_auto_exposure_logging:true,param:"alternate_payment_threshold_wizard",qe_universe:"billing_payment_threshold_wizard_universe")"},{alias:"is_eos_with_30_days",args:[{kind:"Literal",name:"param",value:"is_eos_with_30_days"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_30_days",qe_universe:"end_of_spend_universe")"},{alias:"is_eos_with_anniversary",args:[{kind:"Literal",name:"param",value:"is_eos_with_anniversary"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_anniversary",qe_universe:"end_of_spend_universe")"},{alias:"is_eos_with_30_days_v2",args:[{kind:"Literal",name:"param",value:"is_eos_with_30_days_v2"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_30_days_v2",qe_universe:"end_of_spend_universe")"},{alias:"is_eos_with_anniversary_v2",args:[{kind:"Literal",name:"param",value:"is_eos_with_anniversary_v2"},b],kind:"ScalarField",name:"qe_on_payment_account_by_string",storageKey:"qe_on_payment_account_by_string(param:"is_eos_with_anniversary_v2",qe_universe:"end_of_spend_universe")"}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingPrepayUtils",["AdsCurrencyFormatter","BillingAddFundsBalanceSectionConstants","BillingCurrencyAmount","BillingPrepayUtilsCreateStoredBalanceMutation.graphql","BillingPrepayUtilsRemoveCredentialMutation.graphql","intlNumUtils","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("BillingPrepayUtilsCreateStoredBalanceMutation.graphql");function a(a,c,d){var e;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:e={logging_data:c.getLoggingData(),payment_account_id:a};f.next=3;return b("regeneratorRuntime").awrap(d({mutation:j,variables:{input:e}},{event_context:"create_stored_balance"}));case 3:case"end":return f.stop()}},null,this)}var k=i!==void 0?i:i=b("BillingPrepayUtilsRemoveCredentialMutation.graphql");function e(a,c,d,e){var f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:h.prev=0;g={payment_account_id:a,payment_method_id:(f=c)!=null?f:""};h.next=4;return b("regeneratorRuntime").awrap(e({mutation:k,variables:{input:g}},{event_context:"remove_payment_method"}));case 4:h.next=9;break;case 6:h.prev=6,h.t0=h["catch"](0),d.logError(h.t0.type,h.t0.errorPayload);case 9:case"end":return h.stop()}},null,this,[[0,6]])}function l(a,b,d){var e=null;b==null||d==null?d==null&&b!=null&&a.compare(b)>0?e=c("BillingAddFundsBalanceSectionConstants").maxLimitErrorMsg(b.toString()):b==null&&d!=null&&a.compare(d)<0&&(e=c("BillingAddFundsBalanceSectionConstants").minLimitErrorMsg(d.toString())):b.compare(d)<0?e=c("BillingAddFundsBalanceSectionConstants").reachLimitErrorMsg:(a.compare(b)>0||a.compare(d)<0)&&(e=c("BillingAddFundsBalanceSectionConstants").limitErrorMsg(d.toString(),b.toString()));return e}function m(a){var b=d("intlNumUtils").parseNumber(a);b==null?!isNaN(a)?b=parseFloat(a):b=0:!isNaN(a)&&d("intlNumUtils").formatNumberWithThousandDelimiters(b)!==a&&(b=parseFloat(a));a=d("intlNumUtils").formatNumberWithThousandDelimiters(b);return a}function f(a,b){a=m(a);b=d("AdsCurrencyFormatter").parsePECurrency(b,a);return b}function n(a,b,d,e){e.logDebug({maxAmount:(e=d==null?void 0:d.toString())!=null?e:"null",minAmount:(e=b==null?void 0:b.toString())!=null?e:"null",userAmount:a.toString()});a.isZero()?e=c("BillingAddFundsBalanceSectionConstants").invalidAmountErrorMsg(a.toString()):e=l(a,d,b);return e}function o(a,b){b.logDebug({userAmount:a.toString()});b=null;a.compare(d("BillingCurrencyAmount").createZero(a.currency))<0&&(b=c("BillingAddFundsBalanceSectionConstants").invalidAmountErrorMsg(a.toString()));return b}g.createStoredBalance=a;g.removeCredential=e;g.isAmountOutsideOfLimit=l;g.getAmountToAdd=f;g.validateAmount=n;g.validateAmountForReloadThreshold=o}),98);
-----
BillingAddFundsStateMutation.graphql",["BillingAddFundsStateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e={alias:"prepay_on_postpay_gk",args:[{kind:"Literal",name:"gk_name",value:"STANDARD_BILLING_PREPAY_ON_POSTPAY"}],kind:"ScalarField",name:"gk_on_payment_account",storageKey:"gk_on_payment_account(gk_name:"STANDARD_BILLING_PREPAY_ON_POSTPAY")"},f={alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null},g={alias:null,args:null,concreteType:"BillingAutoReloadInfo",kind:"LinkedField",name:"auto_reload_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"auto_reload_status",storageKey:null}],storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},h],j={alias:null,args:null,kind:"ScalarField",name:"charged_payment_method_id",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"payment_id",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"result",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"external_uri",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"nonce",storageKey:null},p={alias:null,args:null,concreteType:"IframeBrokeredPaymentURLParams",kind:"LinkedField",name:"params",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPrepayAddFundsResponsePayload",kind:"LinkedField",name:"billable_account_prepay_add_funds",plural:!1,selections:[d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[e,f,g,h,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:i,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null},j,k,l,m,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[{kind:"InlineFragment",selections:[d,n,o,p],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAddFundsStateMutation",selections:[{alias:null,args:c,concreteType:"BillableAccountPrepayAddFundsResponsePayload",kind:"LinkedField",name:"billable_account_prepay_add_funds",plural:!1,selections:[d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billable_account",plural:!1,selections:[d,e,f,g,h,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:i,storageKey:null}],type:"AdAccount",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},j,k,l,m,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"next_action",plural:!1,selections:[d,{kind:"InlineFragment",selections:[n,o,p],type:"ExternalSitePaymentStep",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BillingAddFundsStateMutation_facebookRelayOperation"),metadata:{},name:"BillingAddFundsStateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BillingSelectAmountRow_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BillingSelectAmountRow_account",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
BillingReviewPaymentScreenQuery.graphql",["BillingReviewPaymentScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"creditCardID"},{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],e=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:d,args:null,argumentDefinitions:[]}],f=[{kind:"Variable",name:"id",variableName:"creditCardID"}],g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"card_association",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"card_association_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_four_digits",storageKey:null}],type:"ExternalCreditCard",abstractKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],type:"PaymentPaypalBillingAgreement",abstractKey:null},j={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingReviewPaymentScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null}],storageKey:null},{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[g,h,i],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingReviewPaymentScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[g,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:d,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:d,storageKey:null},j],storageKey:null},{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[g,h,i,j],storageKey:null}]},params:{id:b("BillingReviewPaymentScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingReviewPaymentScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
useBillingPayNowLanding_account.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b=[{alias:null,args:null,kind:"ScalarField",name:"credential_id",storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingPayNowLanding_account",selections:[a,{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"billable_account_status",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"billing_payment_account",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useBillingPrimaryIDAndType_primaryMethod"},{alias:null,args:[{kind:"Literal",name:"allowlist",value:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION","UNVERIFIABLE"]}],concreteType:"PaymentCredentialDetails",kind:"LinkedField",name:"billing_payment_methods",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"credential",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"credential_type",storageKey:null},{kind:"InlineFragment",selections:b,type:"DirectDebit",abstractKey:null},{kind:"InlineFragment",selections:b,type:"PaymentPaypalBillingAgreement",abstractKey:null},{kind:"InlineFragment",selections:b,type:"ExternalCreditCard",abstractKey:null}],storageKey:null}],storageKey:"billing_payment_methods(allowlist:["UNVERIFIED_OR_PENDING_AUTH","PENDING_VERIFICATION","UNVERIFIABLE"])"}],storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----
useBillingAddFunds_prepayDetails.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],args:null,argumentDefinitions:[]}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillingAddFunds_prepayDetails",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"default_funding_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"max_acceptable_amount",plural:!1,selections:a,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"min_acceptable_amount",plural:!1,selections:a,storageKey:null}],type:"AdAccountPrepayDetail",abstractKey:null}}();e.exports=a}),null);
-----
BillingAuthenticateChargeScreenQuery.graphql",["BillingAuthenticateChargeScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"paymentAccountID"}],c=[{kind:"Variable",name:"payment_legacy_account_id",variableName:"paymentAccountID"}],d={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},e=[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},d];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BillingAuthenticateChargeScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:e,args:null,argumentDefinitions:[]}],storageKey:null}],type:"AdAccount",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingAuthenticateChargeScreenQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"billable_account_by_payment_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:e,storageKey:null}],type:"AdAccount",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("BillingAuthenticateChargeScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingAuthenticateChargeScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingWizard.react",["BillingCurrencyAmount","BillingError","BillingLoggingProvider.react","BillingQEProvider.react","BillingQuickPerformanceEventsEnum","BillingRootErrorBoundary","BillingWizardComponentContextProvider.react","BillingWizardConfigParser","BillingWizardConfigs","BillingWizardProductAppContext","BillingWizardRootUtils","BillingWizardUtilsContextProvider.react","react","useBillingWizardComponents","useBillingWizardConfig"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect;function k(a,b){var c;a.paymentAmount!=null&&a.paymentAmount.amount!==""&&a.paymentAmount.amount!=="0"&&(c=d("BillingCurrencyAmount").getFromUserInput(a.paymentAmount.amount,a.paymentAmount.currency));var e;a.paymentMethodID!=null&&a.paymentMethodID!==""&&(e=a.paymentMethodID);b=b!=null?d("BillingWizardRootUtils").parseJSONProps(b):{};return babelHelpers["extends"]({},a,{paymentAmount:c,paymentMethodID:e},b)}function l(a){var b=a.configProps,e=a.onClose,f=a.preloadComponents;a=a.wizardName;if(a!=="NONE"){var g=c("BillingWizardConfigs")[a];if(g==null)throw new(c("BillingError"))("BillingWizard could not find a config for wizard name: "+a,"required props is missing or invalid",{event_action:"enter",event_context:"wizard",event_result:"failure",event_side:"client_side"},"critical_error");a=c("useBillingWizardComponents")();a=a.Composer;g=c("useBillingWizardConfig")(g,b,e,f,d("BillingWizardConfigParser").performTransition,d("BillingWizardConfigParser").useConfig);b=g[0];f=g[1];g=i(function(){d("BillingWizardConfigParser").wrapOnClose(e)("closed",{})},[e]);return b==null?null:h.jsx(a,{direction:f,onClose:g,screen:b})}throw new(c("BillingError"))("BillingWizard got NONE for wizardName","required props is missing or invalid",{event_action:"enter",event_context:"wizard",event_result:"failure",event_side:"client_side"},"critical_error")}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.currentApp,e=a.entryPointDetails,f=a.jsonProps,g=a.onClose,m=a.wizardConfig,n=a.wizardName,o=babelHelpers.objectWithoutPropertiesLoose(a,["currentApp","entryPointDetails","jsonProps","onClose","wizardConfig","wizardName"]),p=o.paymentAccountID,q=i(function(){return g("closed",{})},[g]),r=m.wrapper,s=m.relayProvider,t=m.componentMap.ErrorBoundary;m.logger.setMetaData({external_flow_id:e.flowID,placement:e.entryPoint});m.qpLogger.setQPLMetaData({placement:e.entryPoint});j(function(){var a;(a=m.qpLogger)==null?void 0:a.markerStart(c("BillingQuickPerformanceEventsEnum").FULL_WIZARD_FUNNEL);(a=m.qpLogger)==null?void 0:a.markerAnnotate(c("BillingQuickPerformanceEventsEnum").FULL_WIZARD_FUNNEL,{annotationKey:"wizard_name",annotationValue:n});(a=m.qpLogger)==null?void 0:a.markerStart(c("BillingQuickPerformanceEventsEnum").ENTIRE_WIZARD_FLOW);(a=m.qpLogger)==null?void 0:a.markerAnnotate(c("BillingQuickPerformanceEventsEnum").ENTIRE_WIZARD_FLOW,{annotationKey:"wizard_name",annotationValue:n})});return h.jsx(c("BillingLoggingProvider.react"),{logger:m.logger,qpLogger:m.qpLogger,children:h.jsx(c("BillingRootErrorBoundary"),{renderError:function(a){a=a.error;return h.jsx(t,{error:a,onDismiss:q})},children:h.jsx(s,{children:h.jsx(r,{onClose:q,children:h.jsx(c("BillingQEProvider.react"),{paymentAccountID:(e=p)!=null?e:void 0,children:h.jsx(d("BillingWizardProductAppContext").BillingWizardProductAppProvider,{appType:b,paymentAccountID:p,children:h.jsx(c("BillingWizardComponentContextProvider.react"),{map:a.wizardConfig.componentMap,children:h.jsx(c("BillingWizardUtilsContextProvider.react"),{map:a.wizardConfig.utils,children:h.jsx(l,{configProps:k(o,f),onClose:g,preloadComponents:m.preloadComponents,wizardName:n})})})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";f.exports=a}),34);
-----
BillingCurrencyAmount",["AdsCurrencyFormatter","BillingCurrencyAmount_PBCurrencyQuantity.graphql","BillingCurrencyAmount_amount.graphql","PECurrency","RelayHooks"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("BillingCurrencyAmount_amount.graphql"),k=i!==void 0?i:i=b("BillingCurrencyAmount_PBCurrencyQuantity.graphql"),l=function(){function a(){this.$1=0,this.currency="USD"}a.fromPECurrencyAmount=function(b){var c,d=new a();d.$2((c=b.amount_with_offset)!=null?c:"0",b.currency==null||b.currency===""?"USD":b.currency);return d};a.fromZero=function(b){var c=new a();c.$2("0",b);return c};a.fromUserInput=function(b,e){var f=new a();b=(d("AdsCurrencyFormatter").parsePECurrency(e,b)*c("PECurrency").DEFAULT_AMOUNT_OFFSET).toString();f.$2(b,e);return f};a.fromUnitTest_DO_NOT_USE=function(b){var c=b.amount;b=b.currency;var d=new a();d.$2(c,b);return d};var b=a.prototype;b.$2=function(a,b){this.$1=parseInt(a,10),this.currency=b,isNaN(this.$1)&&(this.$1=0)};b.getRawPBAmount_I_KNOW_WHAT_IM_DOING=function(){var a;return this.$1/c("PECurrency").DEFAULT_AMOUNT_OFFSET*((a=c("PECurrency").getCurrencyOffset(this.currency))!=null?a:1)};b.add=function(b){if(this.currency!==b.currency){var c=new Error("can"t add currency amounts with different currencies");c.stack;throw c}c=new a();c.$1=this.$1+b.$1;c.currency=this.currency;return c};b.asGraphQLInput=function(){return{amount:(this.$1/c("PECurrency").DEFAULT_AMOUNT_OFFSET).toString(),currency:this.currency}};b.compare=function(a){if(a==null)return 1;if(this.currency!==a.currency){var b=new Error("can"t calc percentage with different currencies");b.stack;throw b}return this.$1-a.$1};b.format=function(a){return c("PECurrency").formatAmountX(this.currency,this.$1,babelHelpers["extends"]({showCurrencyCode:!1,showSymbol:!0,stripZeros:!1,thousandSeparator:!0},a))};b.isZero=function(){return this.$1===0};b.percentageOf=function(a){if(this.currency!==a.currency){var b=new Error("can"t calc percentage with different currencies");b.stack;throw b}return Math.ceil(a.$1/this.$1*100)};b.subtract=function(b){if(this.currency!==b.currency){var c=new Error("can"t subtract currency amounts with different currencies");c.stack;throw c}c=new a();c.$1=this.$1-b.$1;c.currency=this.currency;return c};b.multiply=function(b){var c=new a();c.$1=Math.ceil(this.$1*b);c.currency=this.currency;return c};b.toString=function(){return this.format()};return a}();function a(a){a=d("RelayHooks").readInlineData(j,a);return a!=null?l.fromPECurrencyAmount(a):null}function e(a){a=d("RelayHooks").readInlineData(k,a);return a!=null?o(a):null}function f(a){return l.fromZero(a)}function m(a,b){return l.fromUserInput(a,b)}function n(a){return a!=null?l.fromPECurrencyAmount(a):null}function o(a){if(a!=null){var b,d;b=(b=a==null?void 0:a.currency)!=null?b:"USD";d=(d=c("PECurrency").getCurrencyOffset(b))!=null?d:1;a=Number(a==null?void 0:a.offset_amount)/d*c("PECurrency").DEFAULT_AMOUNT_OFFSET;return l.fromPECurrencyAmount({amount_with_offset:a==null?void 0:a.toString(),currency:b})}return null}b=l;g.getFromPECurrencyAmountFragment=a;g.getFromPBCurrencyQuantityFragment=e;g.createZero=f;g.getFromUserInput=m;g.getFromPECurrencyAmount=n;g.getFromPBCurrencyQuantity=o;g.BILLING_CURRENCY_AMOUNT_FOR_TESTING_ONLY_DO_NOT_USE=b}),98);
-----
BillingWizardRootUtils",["BillingCurrencyAmount"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b={};if(a==="")return b;a=JSON.parse(a);if((a==null?void 0:a.payment_amount)!=null&&a.payment_amount.amount!=null&&a.payment_amount.currency!=null){var c=d("BillingCurrencyAmount").getFromPECurrencyAmount({amount_with_offset:a.payment_amount.amount,currency:a.payment_amount.currency});c!=null&&(b.paymentAmount=c)}(a==null?void 0:a.display_all_fields)!=null&&(b.displayAllFields=a.display_all_fields);(a==null?void 0:a.is_single_pm_flow)!=null&&(b.isSinglePMFlow=a.is_single_pm_flow);(a==null?void 0:a.payment_method_id)!=null&&a.payment_method_id!==""&&(b.paymentMethodID=a.payment_method_id);(a==null?void 0:a.status)!=null&&a.status.body!=null&&a.status.headline!=null&&a.status.type!=null&&(b.status=a.status);return b}g.parseJSONProps=a}),98);
-----
useBillableAccountBalance",["BillingCurrencyAmount","BillingPaymentModeUtils","RelayHooks","useBillableAccountBalance_billingAccount.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useBillableAccountBalance_billingAccount.graphql");function a(a){var b,c,e,f,g;a=d("RelayHooks").useFragment(i,a);b=(b=a==null?void 0:a.payment_modes)!=null?b:[];c=(c=(c=a==null?void 0:(c=a.account_balance)==null?void 0:c.currency)!=null?c:a==null?void 0:a.currency)!=null?c:"USD";e=(e=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance))!=null?e:d("BillingCurrencyAmount").createZero(c);f=(f=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.account_balance_with_tax))!=null?f:d("BillingCurrencyAmount").createZero(c);g=(g=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_balance))!=null?g:d("BillingCurrencyAmount").createZero(c);a=(a=d("BillingCurrencyAmount").getFromPECurrencyAmountFragment(a==null?void 0:a.prepay_delivery_remaining))!=null?a:d("BillingCurrencyAmount").createZero(c);if(d("BillingPaymentModeUtils").isPrepayOnlyAccount(b))return{balance:g,isStoredBalance:!0,wizardName:"ADD_FUNDS"};else if(f.compare(a)>=0)return{balance:e.subtract(a),isStoredBalance:!1,wizardName:"PAY_NOW"};else if(f.compare(g)>=0)return{balance:e.subtract(g),isStoredBalance:!1,wizardName:"PAY_NOW"};else return{balance:g.subtract(f),isStoredBalance:!0,wizardName:"ADD_FUNDS"}}g["default"]=a}),98);
-----
BillingCurrencyAmount_amount.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"BillingCurrencyAmount_amount"};e.exports=a}),null);
-----
BillingCurrencyAmount_PBCurrencyQuantity.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"BillingCurrencyAmount_PBCurrencyQuantity"};e.exports=a}),null);
-----
useBillableAccountBalance_billingAccount.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null},b={kind:"InlineDataFragmentSpread",name:"BillingCurrencyAmount_amount",selections:[{alias:null,args:null,kind:"ScalarField",name:"amount_with_offset",storageKey:null},a],args:null,argumentDefinitions:[]},c=[b];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useBillableAccountBalance_billingAccount",selections:[{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance",plural:!1,selections:[a,b],storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"account_balance_with_tax",plural:!1,selections:c,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_balance",plural:!1,selections:c,storageKey:null},{alias:null,args:null,concreteType:"CurrencyAmount",kind:"LinkedField",name:"prepay_delivery_remaining",plural:!1,selections:c,storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"payment_modes",storageKey:null}],type:"BillableAccount",abstractKey:"__isBillableAccount"}}();e.exports=a}),null);
-----