CommerceIntegrationCatalogSelectionList.atomic",["fbt","AtomicButton.react","CommerceIntegrationCatalogSelectionListQuery.graphql","CommerceManagerHooks","FBNucleusInfoCircleFilled12Icon.react","GeoBaseText.react","GeoFlexbox.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHeading.react","GeoPill.react","GeoText.react","GeoTooltip.react","GeoVectorIcon.react","SAOffOnboardingCatalogImageList.react","react","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={box:{borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",boxSizing:"x9f619",paddingTop:"xyamay9",paddingEnd:"x1pi30zi",paddingBottom:"x1l90r2v",paddingStart:"x1swvt13",width:"xh8yej3",$$css:!0},error:{width:"xh8yej3",$$css:!0},list:{paddingTop:"xexx8yu",paddingEnd:"x1pi30zi",paddingBottom:"xwib8y2",paddingStart:"x1swvt13",width:"x4v42eg",$$css:!0}},m=i!==void 0?i:i=b("CommerceIntegrationCatalogSelectionListQuery.graphql");function n(a,b,c,d){switch(a){case"OWNERSHIP_TRANSFER":return b!=null?h._(/*BTDS*/"u5982u679cu4f60u9009u62e9{catalog name}uff0cu8d26u6237{shared business name}u5c06u88abu6307u5b9au4e3au65b0u6240u6709u8005u3002u4e4bu524du7684u6240u6709u8005{original business name}u5c06u88abu6307u5b9au4e3au5408u4f5cu4f19u4f34u4e1au52a1u8d26u6237u3002",[h._param("catalog name",d),h._param("shared business name",c),h._param("original business name",b)]):h._(/*BTDS*/"u5982u679cu4f60u9009u62e9{catalog name}uff0cu8d26u6237{shared business name}u5c06u88abu6307u5b9au4e3au65b0u6240u6709u8005u3002u4e4bu524du7684u6240u6709u8005u5c06u88abu6307u5b9au4e3au5408u4f5cu4f19u4f34u4e1au52a1u8d26u6237u3002",[h._param("catalog name",d),h._param("shared business name",c)]);case"PERMISSION_SHARING":return h._(/*BTDS*/"u8d26u6237{shared business name}u5c06u88abu6307u5b9a{catalog name}u7684u5408u4f5cu4f19u4f34u4e1au52a1u8d26u6237u3002",[h._param("shared business name",c),h._param("catalog name",d)]);default:return null}}function o(a){var b=a.businessPermissionRisk,e=a.isRecommended,f=a.onSelect,g=a.selectedCatalogID,i=a.sourceCatalogBusinessName,j=a.targetBusinessName,m=a.targetCatalogID,o=a.targetCatalogName,p=a.targetPoductImageURLs;a=a.targetProductCount;var q=c("useGeoTheme")(),r=q.selectBorderColor,s=q.selectBorderRadius,t=q.selectBorderWidth;q=q.selectStaticBackgroundColor;r=[r({color:"element"}),s({context:"content"}),t({context:"divider"}),q({surface:"content"})];s=j!=null&&b!=null?n(b,i,j,o):null;return k.jsxs(c("GeoFlexbox.react"),{alignItems:"start",direction:"row",justifyContent:"space-between",xstyle:[r,l.box],children:[k.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:4,children:[k.jsxs(c("GeoFlexbox.react"),{direction:"row",children:[k.jsx(c("GeoHeading.react"),{level:4,children:o}),e&&k.jsx(c("GeoPill.react"),{label:h._(/*BTDS*/"u63a8u8350"),value:h._(/*BTDS*/"u63a8u8350")})]}),k.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"{product count}u4ef6u5546u54c1 u2022 {catalog ID}",[h._param("product count",a),h._param("catalog ID",m)])}),k.jsx(d("SAOffOnboardingCatalogImageList.react").CatalogItemImageList,{images:p,maxProductCount:a}),s!=null&&k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",gap:2,children:[k.jsx(c("GeoBaseText.react"),{color:"valueDescription",size:"valueDescription",children:h._(/*BTDS*/"u6240u6709u8005uff1a{business name}",[h._param("business name",j)])}),k.jsx(c("GeoTooltip.react"),{content:s,children:k.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:k.jsx(c("GeoVectorIcon.react"),{color:"default",icon:c("FBNucleusInfoCircleFilled12Icon.react"),size:12})})})]})]}),k.jsx(c("GeoFlexbox.react"),{children:k.jsx(c("AtomicButton.react"),{label:g===m?h._(/*BTDS*/"u53d6u6d88u9009u62e9"):h._(/*BTDS*/"u9009u62e9"),onClick:function(){return f(m)}})})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.cmsID,e=a.onSelectCatalog,f=a.planID,g=a.selectedCatalogID,i=a.selectionError,j=a.setError;a=d("CommerceManagerHooks").useCommerceManagerLazyQuery(m,{input:{cms_id:b,plan_id:f}});a=(f=(b=a.xfb_saoff_upgrade_eligible_catalogs_for_switch)==null?void 0:b.catalogs)!=null?f:[];var n=function(a){g===a?e(null):e(a)};return k.jsxs(c("GeoFlexbox.react"),{alignItems:"start",alignSelf:"stretch",direction:"column",gap:16,xstyle:l.list,children:[i!=null&&k.jsx(c("GeoGuidanceCard.react"),{header:k.jsx(c("GeoGuidanceCardHeader.react"),{heading:i.name,onClose:function(){return j(null)}}),status:"error",xstyle:l.error,children:k.jsx(c("GeoGuidanceCardContent.react"),{children:k.jsx(c("GeoText.react"),{children:(b=i==null?void 0:i.description)!=null?b:h._(/*BTDS*/"u51fau9519u4e86uff0cu8bf7u518du8bd5u4e00u6b21u3002")})})}),a.map(function(a,b){var c,d;c=(c=a.targetCatalog)==null?void 0:(c=c.items)==null?void 0:(c=c.nodes)==null?void 0:c.map(function(a){return(a=(a=a.dynamic_item_main_image)==null?void 0:a.url)!=null?a:"https://www.facebook.com/images/crm/organization/default_normal.png"}).filter(Boolean);return k.jsx(o,{businessPermissionRisk:a.business_permission_risk,isRecommended:(d=a.is_recommended_catalog)!=null?d:!1,selectedCatalogID:g,sourceCatalogBusinessName:(d=(d=a.sourceCatalog)==null?void 0:(d=d.owner_business)==null?void 0:d.name)!=null?d:"",targetBusinessName:(d=(d=a.targetCatalog)==null?void 0:(d=d.owner_business)==null?void 0:d.name)!=null?d:"",targetCatalogID:(d=(d=a.targetCatalog)==null?void 0:d.id)!=null?d:"",targetCatalogName:(d=(d=a.targetCatalog)==null?void 0:d.name)!=null?d:"",targetPoductImageURLs:(d=c)!=null?d:[],targetProductCount:(a=(c=a.targetCatalog)==null?void 0:(d=c.items)==null?void 0:d.count)!=null?a:0,onSelect:n},b)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CommerceIntegrationCatalogSelectionListQuery.graphql",["CommerceIntegrationCatalogSelectionListQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"owner_business",plural:!1,selections:[d],storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g=[{kind:"Literal",name:"first",value:3}],h={alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"is_recommended_catalog",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"is_eligible_to_switch",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"business_permission_risk",storageKey:null},m={alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"owner_business",plural:!1,selections:[d,f],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceIntegrationCatalogSelectionListQuery",selections:[{alias:null,args:c,concreteType:"XFBEligibleCatalogsForOffsiteUpgradeSwitchQueryResponse",kind:"LinkedField",name:"xfb_saoff_upgrade_eligible_catalogs_for_switch",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBSAOffUpgradeSwitchCatalogSelectionOutputType",kind:"LinkedField",name:"catalogs",plural:!0,selections:[{alias:"sourceCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"source_catalog",plural:!1,selections:[{kind:"RequiredField",field:d,action:"THROW",path:"xfb_saoff_upgrade_eligible_catalogs_for_switch.catalogs.sourceCatalog.name"},e],storageKey:null},{alias:"targetCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"target_catalog",plural:!1,selections:[{kind:"RequiredField",field:d,action:"THROW",path:"xfb_saoff_upgrade_eligible_catalogs_for_switch.catalogs.targetCatalog.name"},{kind:"RequiredField",field:f,action:"THROW",path:"xfb_saoff_upgrade_eligible_catalogs_for_switch.catalogs.targetCatalog.id"},e,{alias:null,args:g,concreteType:"ProductCatalogToProductItemsCustomConnection",kind:"LinkedField",name:"items",plural:!1,selections:[h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"ProductImage",kind:"LinkedField",name:"dynamic_item_main_image",plural:!1,selections:[i],storageKey:null}],storageKey:null}],storageKey:"items(first:3)"}],storageKey:null},j,k,l],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceIntegrationCatalogSelectionListQuery",selections:[{alias:null,args:c,concreteType:"XFBEligibleCatalogsForOffsiteUpgradeSwitchQueryResponse",kind:"LinkedField",name:"xfb_saoff_upgrade_eligible_catalogs_for_switch",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBSAOffUpgradeSwitchCatalogSelectionOutputType",kind:"LinkedField",name:"catalogs",plural:!0,selections:[{alias:"sourceCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"source_catalog",plural:!1,selections:[d,m,f],storageKey:null},{alias:"targetCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"target_catalog",plural:!1,selections:[d,f,m,{alias:null,args:g,concreteType:"ProductCatalogToProductItemsCustomConnection",kind:"LinkedField",name:"items",plural:!1,selections:[h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"ProductImage",kind:"LinkedField",name:"dynamic_item_main_image",plural:!1,selections:[i,f],storageKey:null},f],storageKey:null}],storageKey:"items(first:3)"}],storageKey:null},j,k,l],storageKey:null}],storageKey:null}]},params:{id:b("CommerceIntegrationCatalogSelectionListQuery_facebookRelayOperation"),metadata:{},name:"CommerceIntegrationCatalogSelectionListQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CommerceIntegrationCatalogSelectionListQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24489849747283010"}),null);
-----
-----
CommerceIntegrationCatalogSelectionListQuery.graphql",["CommerceIntegrationCatalogSelectionListQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"owner_business",plural:!1,selections:[d],storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g=[{kind:"Literal",name:"first",value:3}],h={alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"is_recommended_catalog",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"is_eligible_to_switch",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"business_permission_risk",storageKey:null},m={alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"owner_business",plural:!1,selections:[d,f],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CommerceIntegrationCatalogSelectionListQuery",selections:[{alias:null,args:c,concreteType:"XFBEligibleCatalogsForOffsiteUpgradeSwitchQueryResponse",kind:"LinkedField",name:"xfb_saoff_upgrade_eligible_catalogs_for_switch",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBSAOffUpgradeSwitchCatalogSelectionOutputType",kind:"LinkedField",name:"catalogs",plural:!0,selections:[{alias:"sourceCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"source_catalog",plural:!1,selections:[{kind:"RequiredField",field:d,action:"THROW",path:"xfb_saoff_upgrade_eligible_catalogs_for_switch.catalogs.sourceCatalog.name"},e],storageKey:null},{alias:"targetCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"target_catalog",plural:!1,selections:[{kind:"RequiredField",field:d,action:"THROW",path:"xfb_saoff_upgrade_eligible_catalogs_for_switch.catalogs.targetCatalog.name"},{kind:"RequiredField",field:f,action:"THROW",path:"xfb_saoff_upgrade_eligible_catalogs_for_switch.catalogs.targetCatalog.id"},e,{alias:null,args:g,concreteType:"ProductCatalogToProductItemsCustomConnection",kind:"LinkedField",name:"items",plural:!1,selections:[h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"ProductImage",kind:"LinkedField",name:"dynamic_item_main_image",plural:!1,selections:[i],storageKey:null}],storageKey:null}],storageKey:"items(first:3)"}],storageKey:null},j,k,l],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CommerceIntegrationCatalogSelectionListQuery",selections:[{alias:null,args:c,concreteType:"XFBEligibleCatalogsForOffsiteUpgradeSwitchQueryResponse",kind:"LinkedField",name:"xfb_saoff_upgrade_eligible_catalogs_for_switch",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBSAOffUpgradeSwitchCatalogSelectionOutputType",kind:"LinkedField",name:"catalogs",plural:!0,selections:[{alias:"sourceCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"source_catalog",plural:!1,selections:[d,m,f],storageKey:null},{alias:"targetCatalog",args:null,concreteType:"ProductCatalog",kind:"LinkedField",name:"target_catalog",plural:!1,selections:[d,f,m,{alias:null,args:g,concreteType:"ProductCatalogToProductItemsCustomConnection",kind:"LinkedField",name:"items",plural:!1,selections:[h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,concreteType:"ProductImage",kind:"LinkedField",name:"dynamic_item_main_image",plural:!1,selections:[i,f],storageKey:null},f],storageKey:null}],storageKey:"items(first:3)"}],storageKey:null},j,k,l],storageKey:null}],storageKey:null}]},params:{id:b("CommerceIntegrationCatalogSelectionListQuery_facebookRelayOperation"),metadata:{},name:"CommerceIntegrationCatalogSelectionListQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
CommerceIntegrationCatalogSelectionListQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24489849747283010"}),null);
-----