BusinessCometFBEGeoAdAcctCreation.react",["fbt","BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation.graphql","BusinessCometFBEGeoAssetCreationView.react","BusinessCometFBEWebOnboardingContext","CometRelay","FBECometAppStoreUtils","FBEOnboardingActionHandler","FBEStepReducer","FbeFbAppStoreEventFalcoEvent","RelayHooks","fbeOnboardingStateReducer","react","relay-runtime","unrecoverableViolation","useFBEAdAccountPaginatedList"],(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.useState,o=i!==void 0?i:i=b("BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation.graphql");function p(a){var b=a.adAccountID,e=a.businessID,f=a.flow,g=a.instagramID,h=a.pageID;return function(a){var i={counts:c("useFBEAdAccountPaginatedList").defaultCount,input:{ad_account_id:b,business_id:e,flow:f,instagram_id:g,install_source:"FBS_WEB_ONBOARDING",page_id:h}},j=a.getRootField("fbe_create_ad_account_with_channel_data");i=d("relay-runtime").ConnectionHandler.getConnection(a.getRoot(),"FBEQueryConnection_fbe_viewer_ad_accounts_with_channel_data",i);a=i&&j&&d("relay-runtime").ConnectionHandler.createEdge(a,i,j,"FbeViewerAdAccountsWithChannelDataEdge");i!=null&&a!=null&&d("relay-runtime").ConnectionHandler.insertEdgeBefore(i,a)}}function a(){var a,b=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),e=b.assets,f=b.config,g=e==null?void 0:(a=e.adAccount)==null?void 0:a.id,i=e==null?void 0:(a=e.businessManager)==null?void 0:a.id;if(i==null)throw c("unrecoverableViolation")("Business Manager ID should never be null because business ID is required for ad account creation.","meta_business_extension");var j=e==null?void 0:(a=e.ig)==null?void 0:a.id,q=e==null?void 0:(a=e.page)==null?void 0:a.id,r=(a=f==null?void 0:(a=f.setup)==null?void 0:a.channel)!=null?a:"DEFAULT",s=f==null?void 0:f.setup;if(s==null)throw c("unrecoverableViolation")("FBE Setup object should never be null because currency, vertical, and timezone are required for ad account creation","meta_business_extension");a=n(!1);var t=a[0],u=a[1];a=n(null);var v=a[0],w=a[1],x=d("RelayHooks").useRelayEnvironment();a=l(function(a,h){if(a==null||i==null||s==null)return;u(!0);var k=d("FBECometAppStoreUtils").FBECometAppStoreLogUtils.getFBELoggingData(b,"asset_creation_fail","ad_account_step_creation");d("CometRelay").commitMutation(x,{mutation:o,onCompleted:function(a){var f;u(!1);a=a.fbe_create_ad_account_with_channel_data;f=a==null?void 0:(f=a.ad_account)==null?void 0:f.id;a=a==null?void 0:(a=a.ad_account)==null?void 0:a.name;if(e!=null&&f!=null&&a!=null){e.adAccount={id:f,name:a};f=c("fbeOnboardingStateReducer")(b).setAssets(e).getState();d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.AD_ACCOUNT},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CREATE_SUCCESS,fbeOnboardingState:f})}h!=null&&h()},onError:function(a){var b;k.event_extra={error_message:(b=a.description)!=null?b:"",uri_extras:JSON.stringify((b=f)!=null?b:"")};c("FbeFbAppStoreEventFalcoEvent").log(function(){return k});w(a.description);u(!1)},updater:p({adAccountID:g,businessID:i,flow:r,instagramID:j,pageID:q}),variables:{input:{business_id:i,flow:r,instagram_id:j,name:a,page_id:q,setup:s}}})},[g,i,s,r,e,f,x,j,q,b]);var y=l(function(){w(null)},[]);return k.jsx(c("BusinessCometFBEGeoAssetCreationView.react"),{description:h._("__JHASH__e-EkBnNyXXe__JHASH__"),errorMessage:v,headline:h._("__JHASH__ttZ1RmdccSa__JHASH__"),hintLabel:h._("__JHASH__Yu-YNB4fQZ0__JHASH__"),inputLabel:h._("__JHASH__Pqc5e32sjfp__JHASH__"),isLoading:t,onCancelError:y,onCreate:a,step:"ad_account_step_creation"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometFBEWebOnboardingStepToGeoComponentMap",["fbt","BusinessCometFBEGeoAdAcctCreation.react","BusinessCometFBEGeoAdAcctSelection.react","BusinessCometFBEGeoAssetOverview.react","BusinessCometFBEGeoBMConfirmation.react","BusinessCometFBEGeoBMCreation.react","BusinessCometFBEGeoBMSelection.react","BusinessCometFBEGeoCTAConfirmation.react","BusinessCometFBEGeoCTAInstallNonRetryableError.react","BusinessCometFBEGeoCatalogCreation.react","BusinessCometFBEGeoCatalogSelection.react","BusinessCometFBEGeoChannelContext.react","BusinessCometFBEGeoCommerceCreation.react","BusinessCometFBEGeoCommerceSelection.react","BusinessCometFBEGeoErrorView.react","BusinessCometFBEGeoFeatureMenuIntentList.react","BusinessCometFBEGeoIGConnectView.react","BusinessCometFBEGeoIgSubmitForReviewScreen.react","BusinessCometFBEGeoInstagramSelection.react","BusinessCometFBEGeoInstallation.react","BusinessCometFBEGeoMultiplePersonalAdAcctSelection.react","BusinessCometFBEGeoPageCreation.react","BusinessCometFBEGeoPageSelection.react","BusinessCometFBEGeoPermissionsView.react","BusinessCometFBEGeoPixelCreation.react","BusinessCometFBEGeoPixelSelection.react","BusinessCometFBEGeoResultView.react","BusinessCometFBEGeoSelectDomain.react","BusinessCometFBEGeoWarningView.react","FBEAppStoreLabels","FBECTARefetcher.react","FBEStepReducer","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b,e,f=a.fbeOnboardingState;a=a.storeID;b=(b=f.fbeStepState)==null?void 0:b.currentStep;e=(e=f.fbeStepState)==null?void 0:e.flowOrigin;if(b==null)throw c("unrecoverableViolation")("Current FBEStepState current step cannot be null","fbi_business_experience");if(e==null)throw c("unrecoverableViolation")("Invalid flow origin","fbi_business_experience");e={title:d("FBEAppStoreLabels").FBEAppStoreHeadings.getLinkingTitle()};switch(b){case d("FBEStepReducer").FBEAllSteps.AD_ACCOUNT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAdAcctSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.AD_ACCOUNT_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAdAcctCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.APP_FEATURES_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoFeatureMenuIntentList.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.BLOCKING_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoErrorView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.BUSINESS_MANAGER_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoBMSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.BUSINESS_MANAGER_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoBMCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CATALOG_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCatalogSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CATALOG_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCatalogCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CHANNEL_CONTEXT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoChannelContext.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.COMMERCE_ACCOUNT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCommerceSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.COMMERCE_ACCOUNT_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCommerceCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CONFIRM_BUSINESS_AND_PERMISSION_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoBMConfirmation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CONTEXT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCTAConfirmation.react"),{}),title:{title:h._("__JHASH__rtogETDC6cA__JHASH__",[h._param("app name",(b=f.app)==null?void 0:b.name)])}};case d("FBEStepReducer").FBEAllSteps.DOMAIN_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoSelectDomain.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CORE_ASSETS_STEP:case d("FBEStepReducer").FBEAllSteps.FALLBACK:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAssetOverview.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.IG_SELECT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoInstagramSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.IG_SUBMIT_FOR_REVIEW_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoIgSubmitForReviewScreen.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.INSTAGRAM_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoIGConnectView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.INSTALL_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoInstallation.react"),{}),title:{title:h._("__JHASH__HaWVXx60nyJ__JHASH__"),withoutBackButton:!0}};case d("FBEStepReducer").FBEAllSteps.INSTALL_STEP_NONRETRYABLE:b=f.app;return{renderComponent:j.jsx(j.Fragment,{children:b?j.jsx(c("BusinessCometFBEGeoCTAInstallNonRetryableError.react"),{}):null}),title:{title:h._("__JHASH__LuW96G6H3I3__JHASH__"),withoutBackButton:!0}};case d("FBEStepReducer").FBEAllSteps.PAGE_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPageSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.PAGE_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPageCreation.react"),{storeID:a}),title:e};case d("FBEStepReducer").FBEAllSteps.PERMISSION_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPermissionsView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.PIXEL_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPixelSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.PIXEL_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPixelCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.RESULT_STEP:return{renderComponent:j.jsxs(j.Fragment,{children:[j.jsx(c("FBECTARefetcher.react"),{}),j.jsx(c("BusinessCometFBEGeoResultView.react"),{})]}),title:{title:h._("__JHASH__LuW96G6H3I3__JHASH__"),withoutBackButton:!0}};case d("FBEStepReducer").FBEAllSteps.WARNING_STEP:a=(b=f.flowSetup)==null?void 0:b.flowBlockingError;f=a==null?void 0:a.headline;b=a==null?void 0:a.description;if(f==null)throw c("unrecoverableViolation")("flow blocking error headline cannot be null","fbi_business_experience");if(b==null)throw c("unrecoverableViolation")("flow blocking error description cannot be null","fbi_business_experience");return{renderComponent:j.jsx(c("BusinessCometFBEGeoWarningView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.MULTIPLE_AD_ACCOUNT_SELECTION_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoMultiplePersonalAdAcctSelection.react"),{}),title:e};default:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAssetOverview.react"),{}),title:e}}}g["default"]=a}),226);
-----
BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation.graphql",["BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"FBEAdAccountWithEligibility",kind:"LinkedField",name:"fbe_create_ad_account_with_channel_data",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ineligibilities",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_disabled",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation",selections:c},params:{id:b("BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6504612402886539"}),null);
-----
BusinessCometFBEWebOnboardingStepToGeoComponentMap",["fbt","BusinessCometFBEGeoAdAcctCreation.react","BusinessCometFBEGeoAdAcctSelection.react","BusinessCometFBEGeoAssetOverview.react","BusinessCometFBEGeoBMConfirmation.react","BusinessCometFBEGeoBMCreation.react","BusinessCometFBEGeoBMSelection.react","BusinessCometFBEGeoCTAConfirmation.react","BusinessCometFBEGeoCTAInstallNonRetryableError.react","BusinessCometFBEGeoCatalogCreation.react","BusinessCometFBEGeoCatalogSelection.react","BusinessCometFBEGeoChannelContext.react","BusinessCometFBEGeoCommerceCreation.react","BusinessCometFBEGeoCommerceSelection.react","BusinessCometFBEGeoErrorView.react","BusinessCometFBEGeoFeatureMenuIntentList.react","BusinessCometFBEGeoIGConnectView.react","BusinessCometFBEGeoIgSubmitForReviewScreen.react","BusinessCometFBEGeoInstagramSelection.react","BusinessCometFBEGeoInstallation.react","BusinessCometFBEGeoMultiplePersonalAdAcctSelection.react","BusinessCometFBEGeoPageCreation.react","BusinessCometFBEGeoPageSelection.react","BusinessCometFBEGeoPermissionsView.react","BusinessCometFBEGeoPixelCreation.react","BusinessCometFBEGeoPixelSelection.react","BusinessCometFBEGeoResultView.react","BusinessCometFBEGeoSelectDomain.react","BusinessCometFBEGeoWarningView.react","FBEAppStoreLabels","FBECTARefetcher.react","FBEStepReducer","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b,e,f=a.fbeOnboardingState;a=a.storeID;b=(b=f.fbeStepState)==null?void 0:b.currentStep;e=(e=f.fbeStepState)==null?void 0:e.flowOrigin;if(b==null)throw c("unrecoverableViolation")("Current FBEStepState current step cannot be null","fbi_business_experience");if(e==null)throw c("unrecoverableViolation")("Invalid flow origin","fbi_business_experience");e={title:d("FBEAppStoreLabels").FBEAppStoreHeadings.getLinkingTitle()};switch(b){case d("FBEStepReducer").FBEAllSteps.AD_ACCOUNT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAdAcctSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.AD_ACCOUNT_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAdAcctCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.APP_FEATURES_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoFeatureMenuIntentList.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.BLOCKING_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoErrorView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.BUSINESS_MANAGER_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoBMSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.BUSINESS_MANAGER_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoBMCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CATALOG_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCatalogSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CATALOG_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCatalogCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CHANNEL_CONTEXT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoChannelContext.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.COMMERCE_ACCOUNT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCommerceSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.COMMERCE_ACCOUNT_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCommerceCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CONFIRM_BUSINESS_AND_PERMISSION_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoBMConfirmation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CONTEXT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoCTAConfirmation.react"),{}),title:{title:h._("u7ed1u5b9a{app name}",[h._param("app name",(b=f.app)==null?void 0:b.name)])}};case d("FBEStepReducer").FBEAllSteps.DOMAIN_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoSelectDomain.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.CORE_ASSETS_STEP:case d("FBEStepReducer").FBEAllSteps.FALLBACK:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAssetOverview.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.IG_SELECT_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoInstagramSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.IG_SUBMIT_FOR_REVIEW_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoIgSubmitForReviewScreen.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.INSTAGRAM_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoIGConnectView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.INSTALL_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoInstallation.react"),{}),title:{title:h._("u7ed1u5b9au5e94u7528u7a0bu5e8f"),withoutBackButton:!0}};case d("FBEStepReducer").FBEAllSteps.INSTALL_STEP_NONRETRYABLE:b=f.app;return{renderComponent:j.jsx(j.Fragment,{children:b?j.jsx(c("BusinessCometFBEGeoCTAInstallNonRetryableError.react"),{}):null}),title:{title:h._("u786eu8ba4u7ed1u5b9a"),withoutBackButton:!0}};case d("FBEStepReducer").FBEAllSteps.PAGE_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPageSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.PAGE_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPageCreation.react"),{storeID:a}),title:e};case d("FBEStepReducer").FBEAllSteps.PERMISSION_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPermissionsView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.PIXEL_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPixelSelection.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.PIXEL_STEP_CREATION:return{renderComponent:j.jsx(c("BusinessCometFBEGeoPixelCreation.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.RESULT_STEP:return{renderComponent:j.jsxs(j.Fragment,{children:[j.jsx(c("FBECTARefetcher.react"),{}),j.jsx(c("BusinessCometFBEGeoResultView.react"),{})]}),title:{title:h._("u786eu8ba4u7ed1u5b9a"),withoutBackButton:!0}};case d("FBEStepReducer").FBEAllSteps.WARNING_STEP:a=(b=f.flowSetup)==null?void 0:b.flowBlockingError;f=a==null?void 0:a.headline;b=a==null?void 0:a.description;if(f==null)throw c("unrecoverableViolation")("flow blocking error headline cannot be null","fbi_business_experience");if(b==null)throw c("unrecoverableViolation")("flow blocking error description cannot be null","fbi_business_experience");return{renderComponent:j.jsx(c("BusinessCometFBEGeoWarningView.react"),{}),title:e};case d("FBEStepReducer").FBEAllSteps.MULTIPLE_AD_ACCOUNT_SELECTION_STEP:return{renderComponent:j.jsx(c("BusinessCometFBEGeoMultiplePersonalAdAcctSelection.react"),{}),title:e};default:return{renderComponent:j.jsx(c("BusinessCometFBEGeoAssetOverview.react"),{}),title:e}}}g["default"]=a}),98);
-----
BusinessCometFBEGeoAdAcctCreation.react",["fbt","BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation.graphql","BusinessCometFBEGeoAssetCreationView.react","BusinessCometFBEWebOnboardingContext","CometRelay","FBECometAppStoreUtils","FBEOnboardingActionHandler","FBEStepReducer","FbeFbAppStoreEventFalcoEvent","RelayHooks","fbeOnboardingStateReducer","react","relay-runtime","unrecoverableViolation","useFBEAdAccountPaginatedList"],(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.useState,o=i!==void 0?i:i=b("BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation.graphql");function p(a){var b=a.adAccountID,e=a.businessID,f=a.flow,g=a.instagramID,h=a.pageID;return function(a){var i={counts:c("useFBEAdAccountPaginatedList").defaultCount,input:{ad_account_id:b,business_id:e,flow:f,instagram_id:g,install_source:"FBS_WEB_ONBOARDING",page_id:h}},j=a.getRootField("fbe_create_ad_account_with_channel_data");i=d("relay-runtime").ConnectionHandler.getConnection(a.getRoot(),"FBEQueryConnection_fbe_viewer_ad_accounts_with_channel_data",i);a=i&&j&&d("relay-runtime").ConnectionHandler.createEdge(a,i,j,"FbeViewerAdAccountsWithChannelDataEdge");i!=null&&a!=null&&d("relay-runtime").ConnectionHandler.insertEdgeBefore(i,a)}}function a(){var a,b=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),e=b.assets,f=b.config,g=e==null?void 0:(a=e.adAccount)==null?void 0:a.id,i=e==null?void 0:(a=e.businessManager)==null?void 0:a.id;if(i==null)throw c("unrecoverableViolation")("Business Manager ID should never be null because business ID is required for ad account creation.","lax_outcomes");var j=e==null?void 0:(a=e.ig)==null?void 0:a.id,q=e==null?void 0:(a=e.page)==null?void 0:a.id,r=(a=f==null?void 0:(a=f.setup)==null?void 0:a.channel)!=null?a:"DEFAULT",s=f==null?void 0:f.setup;if(s==null)throw c("unrecoverableViolation")("FBE Setup object should never be null because currency, vertical, and timezone are required for ad account creation","lax_outcomes");a=n(!1);var t=a[0],u=a[1];a=n(null);var v=a[0],w=a[1],x=d("RelayHooks").useRelayEnvironment();a=l(function(a,h){if(a==null||i==null||s==null)return;u(!0);var k=d("FBECometAppStoreUtils").FBECometAppStoreLogUtils.getFBELoggingData(b,"asset_creation_fail","ad_account_step_creation");d("CometRelay").commitMutation(x,{mutation:o,onCompleted:function(a){var f;u(!1);a=a.fbe_create_ad_account_with_channel_data;f=a==null?void 0:(f=a.ad_account)==null?void 0:f.id;a=a==null?void 0:(a=a.ad_account)==null?void 0:a.name;if(e!=null&&f!=null&&a!=null){e.adAccount={id:f,name:a};f=c("fbeOnboardingStateReducer")(b).setAssets(e).getState();d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.AD_ACCOUNT},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CREATE_SUCCESS,fbeOnboardingState:f})}h!=null&&h()},onError:function(a){var b;k.event_extra={error_message:(b=a.description)!=null?b:"",uri_extras:JSON.stringify((b=f)!=null?b:"")};c("FbeFbAppStoreEventFalcoEvent").log(function(){return k});w(a.description);u(!1)},updater:p({adAccountID:g,businessID:i,flow:r,instagramID:j,pageID:q}),variables:{input:{business_id:i,flow:r,instagram_id:j,name:a,page_id:q,setup:s}}})},[g,i,s,r,e,f,x,j,q,b]);var y=l(function(){w(null)},[]);return k.jsx(c("BusinessCometFBEGeoAssetCreationView.react"),{description:h._("u521bu5efau5e10u6237uff0cu4ee5u4fbfu4e3au4f60u7684u4e1au52a1u5b58u50a8u5e7fu544au652fu4ed8u4fe1u606fu3002"),errorMessage:v,headline:h._("u521bu5efau5e7fu544au5e10u6237"),hintLabel:h._("Jasper"s Market u5e7fu544au5e10u6237"),inputLabel:h._("u5e7fu544au5e10u6237u540du79f0"),isLoading:t,onCancelError:y,onCreate:a,step:"ad_account_step_creation"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation.graphql",["BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"FBEAdAccountWithEligibility",kind:"LinkedField",name:"fbe_create_ad_account_with_channel_data",plural:!1,selections:[{alias:null,args:null,concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"legacy_account_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ineligibilities",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_disabled",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation",selections:c},params:{id:b("BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometFBEGeoAdAcctCreation_CreateAdAccountMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6504612402886539"}),null);
-----