BusinessCometFBEGeoCatalogCreation.react",["fbt","BusinessCometFBEGeoAssetCreationView.react","BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql","BusinessCometFBEWebOnboardingContext","CometRelay","FBECometAppStoreUtils","FBEOnboardingActionHandler","FBEStepReducer","FbeFbAppStoreEventFalcoEvent","RelayHooks","fbeOnboardingStateReducer","react","relay-runtime","unrecoverableViolation"],(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("BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql");function p(a){var b=a.businessID,c=a.businessVertical,e=a.catalogID,f=a.commerceRequirements,g=a.flow,h=a.instagramID,i=a.pageID;return function(a){var j=a.getRootField("fbe_create_catalog_with_eligibility"),k={input:{business_id:b,catalog_id:e,commerce_requirements:f,flow:g,instagram_id:h,install_source:"FBS_WEB_ONBOARDING",page_id:i,vertical:c}};k=d("relay-runtime").ConnectionHandler.getConnection(a.getRoot(),"FBEQueryConnection_fbe_viewer_catalogs_with_channel_data",k);j=j&&j.getLinkedRecord("catalog");var l=j&&j.getValue("id");if(j!=null&&k!=null&&l!==""){l=d("relay-runtime").ConnectionHandler.createEdge(a,k,j,"FbeViewerCatalogsWithChannelDataEdge");l&&d("relay-runtime").ConnectionHandler.insertEdgeBefore(k,l)}}}function a(){var a,b=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),e=b.app,f=b.assets,g=b.config,i=f==null?void 0:(a=f.businessManager)==null?void 0:a.id;a=n(!1);var j=a[0],q=a[1];a=n(null);var r=a[0],s=a[1],t=(a=g==null?void 0:(a=g.setup)==null?void 0:a.business_vertical)!=null?a:"SERVICES",u=t==="ECOMMERCE"?"COMMERCE":"TRANSACTABLE_ITEMS",v=e==null?void 0:e.appID,w=f==null?void 0:(a=f.page)==null?void 0:a.id,x=f==null?void 0:(a=f.catalog)==null?void 0:a.id,y=(a=g==null?void 0:(a=g.setup)==null?void 0:a.channel)!=null?a:"DEFAULT",z=g==null?void 0:(a=g.setup)==null?void 0:a.ig_profile_id,A="OFFSITE_ELIGIBLE",B=d("RelayHooks").useRelayEnvironment();if(v==null)throw c("unrecoverableViolation")("app id cannot be null","fbi_business_experience");if(i==null)throw c("unrecoverableViolation")("business id cannot be null","fbi_business_experience");if(t==null)throw c("unrecoverableViolation")("FBE business vertical cannot be null","fbi_business_experience");a=l(function(a,h){a!=null&&i!=null&&e!=null&&(q(!0),d("CometRelay").commitMutation(B,{mutation:o,onCompleted:function(a){var e,g;q(!1);e=(e=a.fbe_create_catalog_with_eligibility)==null?void 0:(e=e.catalog)==null?void 0:e.id;g=(g=a.fbe_create_catalog_with_eligibility)==null?void 0:(g=g.catalog)==null?void 0:g.name;a=(a=a.fbe_create_catalog_with_eligibility)==null?void 0:a.is_disabled;if(f!=null&&g!=null){a!==!0&&(f.catalog={id:e,name:g});a=c("fbeOnboardingStateReducer")(b).setAssets(f).getState();d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CREATE_SUCCESS,fbeOnboardingState:a})}h!=null&&h()},onError:function(a){var e,f=d("FBECometAppStoreUtils").FBECometAppStoreLogUtils.getFBELoggingData(b,"asset_creation_fail","catalog_step_creation");f.event_extra={error_message:(e=a.description)!=null?e:"",uri_extras:JSON.stringify((e=g)!=null?e:"")};c("FbeFbAppStoreEventFalcoEvent").log(function(){return f});q(!1);s(a.description)},updater:p({businessID:i,businessVertical:t,catalogID:x,commerceRequirements:A,flow:y,instagramID:z,pageID:w}),variables:{input:{app_id:v,business_id:i,catalog_id:x,catalog_vertical:u,commerce_requirements:A,fbe_vertical:t,flow:y,instagram_access_token:null,instagram_id:z,name:a,page_id:w}}}))},[e,v,f,b,i,t,x,u,A,g,B,y,z,w]);var C=l(function(){s(null)},[]);return k.jsx(c("BusinessCometFBEGeoAssetCreationView.react"),{description:h._("__JHASH__YE0mgbqEwdg__JHASH__"),errorMessage:r,headline:h._("__JHASH__wkfouPXX13f__JHASH__"),hintLabel:"Jasper"s Market Catalog",inputLabel:h._("__JHASH__b9wYmirQhG4__JHASH__"),isLoading:j,onCancelError:C,onCreate:a,step:"catalog_step_creation"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessCometFBEGeoCatalogSelection.react",["fbt","BusinessCometFBEGeoAssetListHeader.react","BusinessCometFBEGeoAssetListItem.react","BusinessCometFBEGeoCatalogCreation.react","BusinessCometFBEGeoCatalogSelectionQuery.graphql","BusinessCometFBEGeoFooter.react","BusinessCometFBEGeoStepHeader.react","BusinessCometFBEWebOnboardingContext","FBEOnboardingActionHandler","FBEStepReducer","RelayHooks","fbeOnboardingStateReducer","react","unrecoverableViolation","useFBEAppStoreLogger"],(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("BusinessCometFBEGeoCatalogSelectionQuery.graphql");function a(){var a,b,e,f=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),g=f.assets,i=f.channel,j=f.config,p=f.flowSetup,q=g==null?void 0:g.catalog,r=q==null?void 0:q.id;a=g==null?void 0:(a=g.businessManager)==null?void 0:a.id;b=g==null?void 0:(b=g.page)==null?void 0:b.id;e=g==null?void 0:(e=g.ig)==null?void 0:e.id;j=j==null?void 0:(j=j.setup)==null?void 0:j.business_vertical;i=(i=i)!=null?i:"DEFAULT";if(a==null)throw c("unrecoverableViolation")("business ID cannot be null","meta_business_extension");r={input:{business_id:a,catalog_id:r,commerce_requirements:"ONSITE_OR_OFFSITE_ELIGIBLE",flow:i,instagram_id:e,install_source:"FBS_WEB_ONBOARDING",page_id:b,vertical:(a=j)!=null?a:"SERVICES"}};b=p==null?void 0:(i=p.assetsSetup)==null?void 0:(e=i.catalog)==null?void 0:e.canCreateInFlow;j=d("RelayHooks").useLazyLoadQuery(o,r);i=(p=(a=j.fbe_viewer_catalogs_with_channel_data)==null?void 0:a.edges)!=null?p:[];e=i.map(function(a){return a.node}).filter(Boolean);r=e.length>0;j=n({id:q==null?void 0:q.id,name:q==null?void 0:q.name});var s=j[0],t=j[1],u=l(function(a,b){if(a==null)return;t({id:a,name:b})},[t]);c("useFBEAppStoreLogger")(f,"catalog_step","display_step");function v(){d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.ASSET_CREATE,fbeOnboardingState:c("fbeOnboardingStateReducer")(f).getState()})}function w(){var a=c("fbeOnboardingStateReducer")(f);g!=null&&(g.catalog={id:s==null?void 0:s.id,name:s==null?void 0:s.name},a=a.setAssets(g));d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CONTINUE,fbeOnboardingState:a.getState()})}return!r?k.jsx(c("BusinessCometFBEGeoCatalogCreation.react"),{}):k.jsxs(k.Fragment,{children:[k.jsx(c("BusinessCometFBEGeoStepHeader.react"),{description:h._("__JHASH__YE0mgbqEwdg__JHASH__"),heading:h._("__JHASH__uWMY9D-NOKY__JHASH__")}),b===!0?k.jsx(c("BusinessCometFBEGeoAssetListHeader.react"),{action:{handleClick:v,label:h._("__JHASH__iuklbfRZM3x__JHASH__")},heading:h._("__JHASH__KBqUKG640nX__JHASH__")}):null,k.jsx("div",{className:"x78zum5 xdt5ytf x16nrsnc x14aock7 x1rife3k",children:e.map(function(a){var b=a.catalog,e=a.ineligibilities;a=a.is_disabled;if(b==null)return null;var f=b.id,g=b.name;return f==null||g==null?null:k.jsx(c("BusinessCometFBEGeoAssetListItem.react"),{assetName:d("FBEStepReducer").FBEAssets.CATALOG,bodyText:a===!0?h._("__JHASH__HV5d7cjlqxp__JHASH__"):h._("__JHASH__adAYa3HIY8P__JHASH__",[h._param("ID",f)]),headline:g,ineligibilities:{assetName:"catalog",ineligibilities:e},isDisabled:a===!0,isSelected:f===(s==null?void 0:s.id),onSelect:function(){return u(f,g)}},f)})}),k.jsx(c("BusinessCometFBEGeoFooter.react"),{onPrimaryPress:w,primaryEnabled:(s==null?void 0:s.id)!=null,secondaryButtonText:null})]})}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);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql",["BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_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:"FBECatalogWithEligibility",kind:"LinkedField",name:"fbe_create_catalog_with_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"catalog",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"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:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c},params:{id:b("BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5690430524405874"}),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);
-----
BusinessCometFBEGeoCatalogCreation.react",["fbt","BusinessCometFBEGeoAssetCreationView.react","BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql","BusinessCometFBEWebOnboardingContext","CometRelay","FBECometAppStoreUtils","FBEOnboardingActionHandler","FBEStepReducer","FbeFbAppStoreEventFalcoEvent","RelayHooks","fbeOnboardingStateReducer","react","relay-runtime","unrecoverableViolation"],(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("BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql");function p(a){var b=a.businessID,c=a.businessVertical,e=a.catalogID,f=a.commerceRequirements,g=a.flow,h=a.instagramID,i=a.pageID;return function(a){var j=a.getRootField("fbe_create_catalog_with_eligibility"),k={input:{business_id:b,catalog_id:e,commerce_requirements:f,flow:g,instagram_id:h,install_source:"FBS_WEB_ONBOARDING",page_id:i,vertical:c}};k=d("relay-runtime").ConnectionHandler.getConnection(a.getRoot(),"FBEQueryConnection_fbe_viewer_catalogs_with_channel_data",k);j=j&&j.getLinkedRecord("catalog");var l=j&&j.getValue("id");if(j!=null&&k!=null&&l!==""){l=d("relay-runtime").ConnectionHandler.createEdge(a,k,j,"FbeViewerCatalogsWithChannelDataEdge");l&&d("relay-runtime").ConnectionHandler.insertEdgeBefore(k,l)}}}function a(){var a,b=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),e=b.app,f=b.assets,g=b.config,i=f==null?void 0:(a=f.businessManager)==null?void 0:a.id;a=n(!1);var j=a[0],q=a[1];a=n(null);var r=a[0],s=a[1],t=(a=g==null?void 0:(a=g.setup)==null?void 0:a.business_vertical)!=null?a:"SERVICES",u=t==="ECOMMERCE"?"COMMERCE":"TRANSACTABLE_ITEMS",v=e==null?void 0:e.appID,w=f==null?void 0:(a=f.page)==null?void 0:a.id,x=f==null?void 0:(a=f.catalog)==null?void 0:a.id,y=(a=g==null?void 0:(a=g.setup)==null?void 0:a.channel)!=null?a:"DEFAULT",z=g==null?void 0:(a=g.setup)==null?void 0:a.ig_profile_id,A="OFFSITE_ELIGIBLE",B=d("RelayHooks").useRelayEnvironment();if(v==null)throw c("unrecoverableViolation")("app id cannot be null","fbi_business_experience");if(i==null)throw c("unrecoverableViolation")("business id cannot be null","fbi_business_experience");if(t==null)throw c("unrecoverableViolation")("FBE business vertical cannot be null","fbi_business_experience");a=l(function(a,h){a!=null&&i!=null&&e!=null&&(q(!0),d("CometRelay").commitMutation(B,{mutation:o,onCompleted:function(a){var e,g;q(!1);e=(e=a.fbe_create_catalog_with_eligibility)==null?void 0:(e=e.catalog)==null?void 0:e.id;g=(g=a.fbe_create_catalog_with_eligibility)==null?void 0:(g=g.catalog)==null?void 0:g.name;a=(a=a.fbe_create_catalog_with_eligibility)==null?void 0:a.is_disabled;if(f!=null&&g!=null){a!==!0&&(f.catalog={id:e,name:g});a=c("fbeOnboardingStateReducer")(b).setAssets(f).getState();d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CREATE_SUCCESS,fbeOnboardingState:a})}h!=null&&h()},onError:function(a){var e,f=d("FBECometAppStoreUtils").FBECometAppStoreLogUtils.getFBELoggingData(b,"asset_creation_fail","catalog_step_creation");f.event_extra={error_message:(e=a.description)!=null?e:"",uri_extras:JSON.stringify((e=g)!=null?e:"")};c("FbeFbAppStoreEventFalcoEvent").log(function(){return f});q(!1);s(a.description)},updater:p({businessID:i,businessVertical:t,catalogID:x,commerceRequirements:A,flow:y,instagramID:z,pageID:w}),variables:{input:{app_id:v,business_id:i,catalog_id:x,catalog_vertical:u,commerce_requirements:A,fbe_vertical:t,flow:y,instagram_access_token:null,instagram_id:z,name:a,page_id:w}}}))},[e,v,f,b,i,t,x,u,A,g,B,y,z,w]);var C=l(function(){s(null)},[]);return k.jsx(c("BusinessCometFBEGeoAssetCreationView.react"),{description:h._("u4f7fu7528u76eeu5f55u5728 Facebook u548c Instagram u4e3bu6253u4f60u7684u5546u54c1u548cu670du52a1u3002"),errorMessage:r,headline:h._("u521bu5efau76eeu5f55"),hintLabel:"Jasper"s Market Catalog",inputLabel:h._("u76eeu5f55u540du79f0"),isLoading:j,onCancelError:C,onCreate:a,step:"catalog_step_creation"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometFBEGeoCatalogSelection.react",["fbt","BusinessCometFBEGeoAssetListHeader.react","BusinessCometFBEGeoAssetListItem.react","BusinessCometFBEGeoCatalogCreation.react","BusinessCometFBEGeoCatalogSelectionQuery.graphql","BusinessCometFBEGeoFooter.react","BusinessCometFBEGeoStepHeader.react","BusinessCometFBEWebOnboardingContext","FBEOnboardingActionHandler","FBEStepReducer","RelayHooks","fbeOnboardingStateReducer","react","unrecoverableViolation","useFBEAppStoreLogger"],(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("BusinessCometFBEGeoCatalogSelectionQuery.graphql");function a(){var a,b,e,f=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),g=f.assets,i=f.channel,j=f.config,p=f.flowSetup,q=g==null?void 0:g.catalog,r=q==null?void 0:q.id;a=g==null?void 0:(a=g.businessManager)==null?void 0:a.id;b=g==null?void 0:(b=g.page)==null?void 0:b.id;e=g==null?void 0:(e=g.ig)==null?void 0:e.id;j=j==null?void 0:(j=j.setup)==null?void 0:j.business_vertical;i=(i=i)!=null?i:"DEFAULT";if(a==null)throw c("unrecoverableViolation")("business ID cannot be null","lax_outcomes");r={input:{business_id:a,catalog_id:r,commerce_requirements:"ONSITE_OR_OFFSITE_ELIGIBLE",flow:i,instagram_id:e,install_source:"FBS_WEB_ONBOARDING",page_id:b,vertical:(a=j)!=null?a:"SERVICES"}};b=p==null?void 0:(i=p.assetsSetup)==null?void 0:(e=i.catalog)==null?void 0:e.canCreateInFlow;j=d("RelayHooks").useLazyLoadQuery(o,r);i=(p=(a=j.fbe_viewer_catalogs_with_channel_data)==null?void 0:a.edges)!=null?p:[];e=i.map(function(a){return a.node}).filter(Boolean);r=e.length>0;j=n({id:q==null?void 0:q.id,name:q==null?void 0:q.name});var s=j[0],t=j[1],u=l(function(a,b){if(a==null)return;t({id:a,name:b})},[t]);c("useFBEAppStoreLogger")(f,"catalog_step","display_step");function v(){d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.ASSET_CREATE,fbeOnboardingState:c("fbeOnboardingStateReducer")(f).getState()})}function w(){var a=c("fbeOnboardingStateReducer")(f);g!=null&&(g.catalog={id:s==null?void 0:s.id,name:s==null?void 0:s.name},a=a.setAssets(g));d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CONTINUE,fbeOnboardingState:a.getState()})}return!r?k.jsx(c("BusinessCometFBEGeoCatalogCreation.react"),{}):k.jsxs(k.Fragment,{children:[k.jsx(c("BusinessCometFBEGeoStepHeader.react"),{description:h._("u4f7fu7528u76eeu5f55u5728 Facebook u548c Instagram u4e3bu6253u4f60u7684u5546u54c1u548cu670du52a1u3002"),heading:h._("u9009u62e9u76eeu5f55")}),b===!0?k.jsx(c("BusinessCometFBEGeoAssetListHeader.react"),{action:{handleClick:v,label:h._("u65b0u5efa")},heading:h._("u76eeu5f55")}):null,k.jsx("div",{className:"x78zum5 xdt5ytf x16nrsnc x14aock7 x1rife3k",children:e.map(function(a){var b=a.catalog,e=a.ineligibilities;a=a.is_disabled;if(b==null)return null;var f=b.id,g=b.name;return f==null||g==null?null:k.jsx(c("BusinessCometFBEGeoAssetListItem.react"),{assetName:d("FBEStepReducer").FBEAssets.CATALOG,bodyText:a===!0?h._("u4e0du7b26u5408u8d44u683c"):h._("u76eeu5f55 #{ID}",[h._param("ID",f)]),headline:g,ineligibilities:{assetName:"catalog",ineligibilities:e},isDisabled:a===!0,isSelected:f===(s==null?void 0:s.id),onSelect:function(){return u(f,g)}},f)})}),k.jsx(c("BusinessCometFBEGeoFooter.react"),{onPrimaryPress:w,primaryEnabled:(s==null?void 0:s.id)!=null,secondaryButtonText:null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql",["BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_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:"FBECatalogWithEligibility",kind:"LinkedField",name:"fbe_create_catalog_with_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"catalog",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"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:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c},params:{id:b("BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5690430524405874"}),null);
-----
-----
BusinessCometFBEGeoCatalogSelection.react",["fbt","BusinessCometFBEGeoAssetListHeader.react","BusinessCometFBEGeoAssetListItem.react","BusinessCometFBEGeoCatalogCreation.react","BusinessCometFBEGeoCatalogSelectionQuery.graphql","BusinessCometFBEGeoFooter.react","BusinessCometFBEGeoStepHeader.react","BusinessCometFBEWebOnboardingContext","FBEOnboardingActionHandler","FBEStepReducer","RelayHooks","fbeOnboardingStateReducer","react","unrecoverableViolation","useFBEAppStoreLogger"],(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("BusinessCometFBEGeoCatalogSelectionQuery.graphql");function a(){var a,b,e,f=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),g=f.assets,i=f.channel,j=f.config,p=f.flowSetup,q=g==null?void 0:g.catalog,r=q==null?void 0:q.id;a=g==null?void 0:(a=g.businessManager)==null?void 0:a.id;b=g==null?void 0:(b=g.page)==null?void 0:b.id;e=g==null?void 0:(e=g.ig)==null?void 0:e.id;j=j==null?void 0:(j=j.setup)==null?void 0:j.business_vertical;i=(i=i)!=null?i:"DEFAULT";if(a==null)throw c("unrecoverableViolation")("business ID cannot be null","meta_business_extension");r={input:{business_id:a,catalog_id:r,commerce_requirements:"ONSITE_OR_OFFSITE_ELIGIBLE",flow:i,instagram_id:e,install_source:"FBS_WEB_ONBOARDING",page_id:b,vertical:(a=j)!=null?a:"SERVICES"}};b=p==null?void 0:(i=p.assetsSetup)==null?void 0:(e=i.catalog)==null?void 0:e.canCreateInFlow;j=d("RelayHooks").useLazyLoadQuery(o,r);i=(p=(a=j.fbe_viewer_catalogs_with_channel_data)==null?void 0:a.edges)!=null?p:[];e=i.map(function(a){return a.node}).filter(Boolean);r=e.length>0;j=n({id:q==null?void 0:q.id,name:q==null?void 0:q.name});var s=j[0],t=j[1],u=l(function(a,b){if(a==null)return;t({id:a,name:b})},[t]);c("useFBEAppStoreLogger")(f,"catalog_step","display_step");function v(){d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.ASSET_CREATE,fbeOnboardingState:c("fbeOnboardingStateReducer")(f).getState()})}function w(){var a=c("fbeOnboardingStateReducer")(f);g!=null&&(g.catalog={id:s==null?void 0:s.id,name:s==null?void 0:s.name},a=a.setAssets(g));d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CONTINUE,fbeOnboardingState:a.getState()})}return!r?k.jsx(c("BusinessCometFBEGeoCatalogCreation.react"),{}):k.jsxs(k.Fragment,{children:[k.jsx(c("BusinessCometFBEGeoStepHeader.react"),{description:h._("__JHASH__YE0mgbqEwdg__JHASH__"),heading:h._("__JHASH__uWMY9D-NOKY__JHASH__")}),b===!0?k.jsx(c("BusinessCometFBEGeoAssetListHeader.react"),{action:{handleClick:v,label:h._("__JHASH__iuklbfRZM3x__JHASH__")},heading:h._("__JHASH__KBqUKG640nX__JHASH__")}):null,k.jsx("div",{className:"x78zum5 xdt5ytf x16nrsnc x14aock7 x1rife3k",children:e.map(function(a){var b=a.catalog,e=a.ineligibilities;a=a.is_disabled;if(b==null)return null;var f=b.id,g=b.name;return f==null||g==null?null:k.jsx(c("BusinessCometFBEGeoAssetListItem.react"),{assetName:d("FBEStepReducer").FBEAssets.CATALOG,bodyText:a===!0?h._("__JHASH__HV5d7cjlqxp__JHASH__"):h._("__JHASH__adAYa3HIY8P__JHASH__",[h._param("ID",f)]),headline:g,ineligibilities:{assetName:"catalog",ineligibilities:e},isDisabled:a===!0,isSelected:f===(s==null?void 0:s.id),onSelect:function(){return u(f,g)}},f)})}),k.jsx(c("BusinessCometFBEGeoFooter.react"),{onPrimaryPress:w,primaryEnabled:(s==null?void 0:s.id)!=null,secondaryButtonText:null})]})}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);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql",["BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_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:"FBECatalogWithEligibility",kind:"LinkedField",name:"fbe_create_catalog_with_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"catalog",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"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:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c},params:{id:b("BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5690430524405874"}),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);
-----
BusinessCometFBEGeoCatalogCreation.react",["fbt","BusinessCometFBEGeoAssetCreationView.react","BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql","BusinessCometFBEWebOnboardingContext","CometRelay","FBECometAppStoreUtils","FBEOnboardingActionHandler","FBEStepReducer","FbeFbAppStoreEventFalcoEvent","RelayHooks","fbeOnboardingStateReducer","react","relay-runtime","unrecoverableViolation"],(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("BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql");function p(a){var b=a.businessID,c=a.businessVertical,e=a.catalogID,f=a.commerceRequirements,g=a.flow,h=a.instagramID,i=a.pageID;return function(a){var j=a.getRootField("fbe_create_catalog_with_eligibility"),k={input:{business_id:b,catalog_id:e,commerce_requirements:f,flow:g,instagram_id:h,install_source:"FBS_WEB_ONBOARDING",page_id:i,vertical:c}};k=d("relay-runtime").ConnectionHandler.getConnection(a.getRoot(),"FBEQueryConnection_fbe_viewer_catalogs_with_channel_data",k);j=j&&j.getLinkedRecord("catalog");var l=j&&j.getValue("id");if(j!=null&&k!=null&&l!==""){l=d("relay-runtime").ConnectionHandler.createEdge(a,k,j,"FbeViewerCatalogsWithChannelDataEdge");l&&d("relay-runtime").ConnectionHandler.insertEdgeBefore(k,l)}}}function a(){var a,b=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),e=b.app,f=b.assets,g=b.config,i=f==null?void 0:(a=f.businessManager)==null?void 0:a.id;a=n(!1);var j=a[0],q=a[1];a=n(null);var r=a[0],s=a[1],t=(a=g==null?void 0:(a=g.setup)==null?void 0:a.business_vertical)!=null?a:"SERVICES",u=t==="ECOMMERCE"?"COMMERCE":"TRANSACTABLE_ITEMS",v=e==null?void 0:e.appID,w=f==null?void 0:(a=f.page)==null?void 0:a.id,x=f==null?void 0:(a=f.catalog)==null?void 0:a.id,y=(a=g==null?void 0:(a=g.setup)==null?void 0:a.channel)!=null?a:"DEFAULT",z=g==null?void 0:(a=g.setup)==null?void 0:a.ig_profile_id,A="OFFSITE_ELIGIBLE",B=d("RelayHooks").useRelayEnvironment();if(v==null)throw c("unrecoverableViolation")("app id cannot be null","fbi_business_experience");if(i==null)throw c("unrecoverableViolation")("business id cannot be null","fbi_business_experience");if(t==null)throw c("unrecoverableViolation")("FBE business vertical cannot be null","fbi_business_experience");a=l(function(a,h){a!=null&&i!=null&&e!=null&&(q(!0),d("CometRelay").commitMutation(B,{mutation:o,onCompleted:function(a){var e,g;q(!1);e=(e=a.fbe_create_catalog_with_eligibility)==null?void 0:(e=e.catalog)==null?void 0:e.id;g=(g=a.fbe_create_catalog_with_eligibility)==null?void 0:(g=g.catalog)==null?void 0:g.name;a=(a=a.fbe_create_catalog_with_eligibility)==null?void 0:a.is_disabled;if(f!=null&&g!=null){a!==!0&&(f.catalog={id:e,name:g});a=c("fbeOnboardingStateReducer")(b).setAssets(f).getState();d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CREATE_SUCCESS,fbeOnboardingState:a})}h!=null&&h()},onError:function(a){var e,f=d("FBECometAppStoreUtils").FBECometAppStoreLogUtils.getFBELoggingData(b,"asset_creation_fail","catalog_step_creation");f.event_extra={error_message:(e=a.description)!=null?e:"",uri_extras:JSON.stringify((e=g)!=null?e:"")};c("FbeFbAppStoreEventFalcoEvent").log(function(){return f});q(!1);s(a.description)},updater:p({businessID:i,businessVertical:t,catalogID:x,commerceRequirements:A,flow:y,instagramID:z,pageID:w}),variables:{input:{app_id:v,business_id:i,catalog_id:x,catalog_vertical:u,commerce_requirements:A,fbe_vertical:t,flow:y,instagram_access_token:null,instagram_id:z,name:a,page_id:w}}}))},[e,v,f,b,i,t,x,u,A,g,B,y,z,w]);var C=l(function(){s(null)},[]);return k.jsx(c("BusinessCometFBEGeoAssetCreationView.react"),{description:h._("u4f7fu7528u76eeu5f55u5728 Facebook u548c Instagram u4e3bu6253u4f60u7684u5546u54c1u548cu670du52a1u3002"),errorMessage:r,headline:h._("u521bu5efau76eeu5f55"),hintLabel:"Jasper"s Market Catalog",inputLabel:h._("u76eeu5f55u540du79f0"),isLoading:j,onCancelError:C,onCreate:a,step:"catalog_step_creation"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometFBEGeoCatalogSelection.react",["fbt","BusinessCometFBEGeoAssetListHeader.react","BusinessCometFBEGeoAssetListItem.react","BusinessCometFBEGeoCatalogCreation.react","BusinessCometFBEGeoCatalogSelectionQuery.graphql","BusinessCometFBEGeoFooter.react","BusinessCometFBEGeoStepHeader.react","BusinessCometFBEWebOnboardingContext","FBEOnboardingActionHandler","FBEStepReducer","RelayHooks","fbeOnboardingStateReducer","react","unrecoverableViolation","useFBEAppStoreLogger"],(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("BusinessCometFBEGeoCatalogSelectionQuery.graphql");function a(){var a,b,e,f=m(d("BusinessCometFBEWebOnboardingContext").FBEOnboardingStateContext),g=f.assets,i=f.channel,j=f.config,p=f.flowSetup,q=g==null?void 0:g.catalog,r=q==null?void 0:q.id;a=g==null?void 0:(a=g.businessManager)==null?void 0:a.id;b=g==null?void 0:(b=g.page)==null?void 0:b.id;e=g==null?void 0:(e=g.ig)==null?void 0:e.id;j=j==null?void 0:(j=j.setup)==null?void 0:j.business_vertical;i=(i=i)!=null?i:"DEFAULT";if(a==null)throw c("unrecoverableViolation")("business ID cannot be null","lax_outcomes");r={input:{business_id:a,catalog_id:r,commerce_requirements:"ONSITE_OR_OFFSITE_ELIGIBLE",flow:i,instagram_id:e,install_source:"FBS_WEB_ONBOARDING",page_id:b,vertical:(a=j)!=null?a:"SERVICES"}};b=p==null?void 0:(i=p.assetsSetup)==null?void 0:(e=i.catalog)==null?void 0:e.canCreateInFlow;j=d("RelayHooks").useLazyLoadQuery(o,r);i=(p=(a=j.fbe_viewer_catalogs_with_channel_data)==null?void 0:a.edges)!=null?p:[];e=i.map(function(a){return a.node}).filter(Boolean);r=e.length>0;j=n({id:q==null?void 0:q.id,name:q==null?void 0:q.name});var s=j[0],t=j[1],u=l(function(a,b){if(a==null)return;t({id:a,name:b})},[t]);c("useFBEAppStoreLogger")(f,"catalog_step","display_step");function v(){d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.ASSET_CREATE,fbeOnboardingState:c("fbeOnboardingStateReducer")(f).getState()})}function w(){var a=c("fbeOnboardingStateReducer")(f);g!=null&&(g.catalog={id:s==null?void 0:s.id,name:s==null?void 0:s.name},a=a.setAssets(g));d("FBEOnboardingActionHandler").FBEOnboardingActionHandler({actionAsset:{name:d("FBEStepReducer").FBEAssets.CATALOG},actionType:d("FBEStepReducer").FBENavigationStepReducerActionTypes.CONTINUE,fbeOnboardingState:a.getState()})}return!r?k.jsx(c("BusinessCometFBEGeoCatalogCreation.react"),{}):k.jsxs(k.Fragment,{children:[k.jsx(c("BusinessCometFBEGeoStepHeader.react"),{description:h._("u4f7fu7528u76eeu5f55u5728 Facebook u548c Instagram u4e3bu6253u4f60u7684u5546u54c1u548cu670du52a1u3002"),heading:h._("u9009u62e9u76eeu5f55")}),b===!0?k.jsx(c("BusinessCometFBEGeoAssetListHeader.react"),{action:{handleClick:v,label:h._("u65b0u5efa")},heading:h._("u76eeu5f55")}):null,k.jsx("div",{className:"x78zum5 xdt5ytf x16nrsnc x14aock7 x1rife3k",children:e.map(function(a){var b=a.catalog,e=a.ineligibilities;a=a.is_disabled;if(b==null)return null;var f=b.id,g=b.name;return f==null||g==null?null:k.jsx(c("BusinessCometFBEGeoAssetListItem.react"),{assetName:d("FBEStepReducer").FBEAssets.CATALOG,bodyText:a===!0?h._("u4e0du7b26u5408u8d44u683c"):h._("u76eeu5f55 #{ID}",[h._param("ID",f)]),headline:g,ineligibilities:{assetName:"catalog",ineligibilities:e},isDisabled:a===!0,isSelected:f===(s==null?void 0:s.id),onSelect:function(){return u(f,g)}},f)})}),k.jsx(c("BusinessCometFBEGeoFooter.react"),{onPrimaryPress:w,primaryEnabled:(s==null?void 0:s.id)!=null,secondaryButtonText:null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation.graphql",["BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_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:"FBECatalogWithEligibility",kind:"LinkedField",name:"fbe_create_catalog_with_eligibility",plural:!1,selections:[{alias:null,args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"catalog",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"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:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",selections:c},params:{id:b("BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation"),metadata:{},name:"BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BusinessCometFBEGeoCatalogCreation_CreateCatalogMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5690430524405874"}),null);
-----