BillingVerifyCountrySelectDetectedLocationScreen.react",["fbt","BillingCountryCurrencyConstants","BillingCountryCurrencyUtils","BillingCountryVerificationUtils","BillingFormSelectInput.react","BillingListItemRow.react","BillingRowContainer.react","BillingSectionRow.react","BillingVerifyCountrySelectDetectedLocationScreenQuery.graphql","BillingWizardRootUPLogger","BillingWizardRow.react","BillingWrapperWithForm.react","RelayHooks","react","useBillingSupportedCountries"],(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.useState,_=e!==void 0?e:e=n("BillingVerifyCountrySelectDetectedLocationScreenQuery.graphql"),f="country_dropdown_list";function g(e){var t,n,a,i,l=e.onSelectLocation,u=e.preloadedQuery,d=e.wrapperProps,g=o("RelayHooks").usePreloadedQuery(_,u),h=p(""),y=h[0],C=h[1],b={country:{defaultValue:"",required:y===f}},v=(t=r("useBillingSupportedCountries")((n=g==null||(a=g.payment_account)==null?void 0:a.billable_account)!=null?n:null))!=null?t:o("BillingCountryCurrencyUtils").countries,S=g==null||(i=g.payment_account)==null||(i=i.billable_account)==null?void 0:i.country_validation_available_country_options,R=(S==null?void 0:S.length)===0;R&&y!==f?C(f):S!=null&&y===""&&C(S[0].value);var L=S==null?void 0:S.map(function(e){return c.jsx(r("BillingListItemRow.react"),{border:!0,headline:e.label,marginBottom:8,onSelect:function(){r("BillingWizardRootUPLogger")==null||r("BillingWizardRootUPLogger").logClickEvent("detected_country",{detected_country:e.value}),C(e.value)},selected:y===e.value,testid:void 0},e.label)}),E=m(function(e){return y===f?l(e.country,o("BillingCountryVerificationUtils").BillingCountrySpoofingUpdateType.USER_SELECTED_COUNTRY):l(y,o("BillingCountryVerificationUtils").BillingCountrySpoofingUpdateType.DETECTED_COUNTRY)},[y,l]);return c.jsx(r("BillingWrapperWithForm.react"),babelHelpers.extends({},d,{fieldsConfig:b,onSubmit:E,primaryButtonLabel:s._(/*BTDS*/""),testid:void 0,title:s._(/*BTDS*/""),children:c.jsxs(r("BillingRowContainer.react"),{marginBottom:8,children:[!R&&c.jsx(r("BillingSectionRow.react"),{body:s._(/*BTDS*/""),headline:s._(/*BTDS*/""),children:c.jsx(r("BillingWizardRow.react"),{children:L})}),c.jsxs(r("BillingSectionRow.react"),{body:s._(/*BTDS*/""),headline:R?s._(/*BTDS*/""):s._(/*BTDS*/""),headlineMarginBottom:8,marginBottom:8,children:[c.jsx(r("BillingListItemRow.react"),{body:s._(/*BTDS*/""),border:!0,headline:s._(/*BTDS*/""),marginBottom:16,onSelect:function(){r("BillingWizardRootUPLogger")==null||r("BillingWizardRootUPLogger").logClickEvent("other_country"),C(f)},selected:y===f,testid:void 0},"country_dropdown"),c.jsx(r("BillingFormSelectInput.react"),{fieldSize:12,isDisabled:y!==f,label:r("BillingCountryCurrencyConstants").country,marginBottom:16,mobileFieldSize:12,name:"country",options:v,testid:void 0})]})]})}))}g.displayName=g.name+" [from "+i.id+"]",l.query=_,l.BillingVerifyCountrySelectDetectedLocationScreen=g}),226);
-----
BillingVerifyCountrySelectDetectedLocationScreenQuery.graphql",["BillingVerifyCountrySelectDetectedLocationScreenQuery_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:"label",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},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:"BillingVerifyCountrySelectDetectedLocationScreenQuery",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:"XFBBillingOptionListItem",kind:"LinkedField",name:"country_validation_available_country_options",plural:!0,selections:[{kind:"RequiredField",field:d,action:"THROW",path:"payment_account.billable_account.country_validation_available_country_options.label"},{kind:"RequiredField",field:e,action:"THROW",path:"payment_account.billable_account.country_validation_available_country_options.value"}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useBillingSupportedCountries_values"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingVerifyCountrySelectDetectedLocationScreenQuery",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:"XFBBillingOptionListItem",kind:"LinkedField",name:"country_validation_available_country_options",plural:!0,selections:[d,e],storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isBillableAccount"},{alias:null,args:null,kind:"ScalarField",name:"supported_countries",storageKey:null},g],storageKey:null},g],storageKey:null}]},params:{id:b("BillingVerifyCountrySelectDetectedLocationScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingVerifyCountrySelectDetectedLocationScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingVerifyCountrySelectDetectedLocationScreenQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="31931308296513626"}),null);
-----
-----
BillingVerifyCountrySelectDetectedLocationScreenQuery.graphql",["BillingVerifyCountrySelectDetectedLocationScreenQuery_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:"label",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},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:"BillingVerifyCountrySelectDetectedLocationScreenQuery",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:"XFBBillingOptionListItem",kind:"LinkedField",name:"country_validation_available_country_options",plural:!0,selections:[{kind:"RequiredField",field:d,action:"THROW",path:"payment_account.billable_account.country_validation_available_country_options.label"},{kind:"RequiredField",field:e,action:"THROW",path:"payment_account.billable_account.country_validation_available_country_options.value"}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useBillingSupportedCountries_values"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BillingVerifyCountrySelectDetectedLocationScreenQuery",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:"XFBBillingOptionListItem",kind:"LinkedField",name:"country_validation_available_country_options",plural:!0,selections:[d,e],storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isBillableAccount"},{alias:null,args:null,kind:"ScalarField",name:"supported_countries",storageKey:null},g],storageKey:null},g],storageKey:null}]},params:{id:b("BillingVerifyCountrySelectDetectedLocationScreenQuery_facebookRelayOperation"),metadata:{},name:"BillingVerifyCountrySelectDetectedLocationScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
BillingVerifyCountrySelectDetectedLocationScreenQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="31931308296513626"}),null);
-----