BizKitSettingsPageHeaderBusinessCard.react",["BizKitSettingsStrings","GeoFlexbox.react","GeoHeading.react","GeoText.react","Image.react","ScopingPrioritiesGating","react","stylex","useBizKitSettingsBusinessConfig","useBizKitSettingsNonBusinessAssetsConfig"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={icon:{borderTopWidth:"xamhcws",borderEndWidth:"xol2nv",borderBottomWidth:"xlxy82",borderStartWidth:"x19p7ews",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"xglei2g",borderEndColor:"x169pyod",borderBottomColor:"x1xp15n3",borderStartColor:"x1knutoc",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",boxShadow:"x1tavl72",height:"xc9qbxq",marginRight:"x1db2dqx",width:"x14qfxbe",$$css:!0},squareIcon:{borderTopWidth:"xamhcws",borderEndWidth:"xol2nv",borderBottomWidth:"xlxy82",borderStartWidth:"x19p7ews",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"xglei2g",borderEndColor:"x169pyod",borderBottomColor:"x1xp15n3",borderStartColor:"x1knutoc",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"x1tavl72",height:"xc9qbxq",marginRight:"x1db2dqx",width:"x14qfxbe",$$css:!0},root:{paddingTop:"x1iorvi4",paddingEnd:"x4uap5",paddingBottom:"xjkvuk6",paddingStart:"xkhd6sd",$$css:!0}};function a(){var a=c("useBizKitSettingsBusinessConfig")(),b=d("useBizKitSettingsNonBusinessAssetsConfig").useBizKitSettingsNonBusinessAssetsConfig();if(a.profilePictureUrl==null||a.profilePictureUrl===""||a.businessName==null){return j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:k.root,children:[j.jsx(c("Image.react"),{className:"xamhcws xol2nv xlxy82 x19p7ews x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xglei2g x169pyod x1xp15n3 x1knutoc x14yjl9h xudhj91 x18nykt9 xww2gxu x1tavl72 xc9qbxq x1db2dqx x14qfxbe",src:b==null?void 0:b.profilePictureUrl}),j.jsx(c("GeoFlexbox.react"),{direction:"column",children:j.jsx(c("GeoHeading.react"),{level:4,children:(b=b==null?void 0:b.userDisplayName)!=null?b:""})})]})}return j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:k.root,children:[j.jsx(c("Image.react"),{className:(h||(h=c("stylex")))(d("ScopingPrioritiesGating").getIsMBAUpdateEnabled()?k.squareIcon:k.icon),src:a.profilePictureUrl}),j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoHeading.react"),{level:4,children:a.businessName}),j.jsx(c("GeoText.react"),{children:d("BizKitSettingsStrings").BUSINESS_ACCOUNT})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitUnifiedSelectorAssetsSectionAccountHeader.react",["fbt","ix","BizKitGlobalScopeSelectorContext","BizKitMultiAssetSelectionGating.entrypointutils","BizKitRouteContext","BizKitUnifiedSelectorDropDownMediaItem.react","BusinessAccountRenameCometGating","BusinessCometUnifiedSelectorAssetCollectionCreationModal.entrypoint","GeoBaseInteractiveRow.react","GeoBaseRadioInput.react","GeoBaseText.react","GeoButton.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoHeading.react","GeoLinkRouterType","GeoMenuItem.react","GeoSpinner.react","Image.react","ScopingPrioritiesGating","XBizWebCometBizSuiteBusinessHomeControllerRouteBuilder","fbicon","geoMargin","getShouldShowBizLevelHome","localScopeInfoUtils","logBizKitMASCollectionClick","logBizKitMASCollectionEnterFlow","react","stylex","useBizKitBaseLoggingData","useBizKitUnifiedSelectorFetchAllAssetIDs","useBizWebCurrentRouteName","useBizWebRouteDispatcher","useGeoEntryPointModal","useGeoLinkRouterType","useSetGlobalScope_DO_NOT_USE"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));b=k;var m=b.useCallback,n=b.useContext,o=d("BusinessAccountRenameCometGating").getBARenameEnabled()?h._("u7ba1u7406u4e1au52a1u8d44u4ea7u7ec4u5408u8bbeu7f6e"):h._("u7ba1u7406u4e1au52a1u5e10u6237u8bbeu7f6e"),p=h._("u521bu5efau8d44u4ea7u96c6"),q=1e3,r={businessImage:{flexShrink:"x2lah0s",marginEnd:"x1emribx",marginLeft:null,marginRight:null,marginStart:"xsgj6o6",$$css:!0},header:{minHeight:"xbktkl8",width:"x9g0s24",$$css:!0},headerText:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0},headerText2:{marginBottom:"xat24cr",$$css:!0}};function a(a){var b,e,f=a.allAssetList,g=a.assetsCount,k=a["data-testid"];k=a.enableServerSideFetch;var s=k===void 0?!0:k,t=a.globalScope;k=a.headerImage;var u=a.headerTitle,v=a.highlightStyles,w=a.isInBusinessSetting,x=a.isInMultiAssetSelectionMode,y=a.isSelectedGlobalScope,z=a.onSettingsClick,A=a.renderBadge,B=a.searchString,C=a.selectedIdsCount,D=a.settingsDataTestId,E=a.settingsUri;D=a.shouldHighlightHeader;var F=c("useSetGlobalScope_DO_NOT_USE")(),G=c("useGeoLinkRouterType")();a=x===!0;x=n(c("BizKitGlobalScopeSelectorContext"));var H=x.setIsOpen,I=x.setTempGlobalScope,J=x.setTempSelectedAssets;x=c("useBizWebCurrentRouteName")();b=c("useGeoEntryPointModal")(c("BusinessCometUnifiedSelectorAssetCollectionCreationModal.entrypoint"),{businessID:(b=t==null?void 0:t.id)!=null?b:""},{businessID:(b=t==null?void 0:t.id)!=null?b:"",first:q,routeName:x});var K=b.modal,L=b.showModal;b=x==="BUSINESS_HOME";x=w===!0||b;w=n(c("BizKitRouteContext"));w=w.isMultiAssetSelectionEnabled;var M=c("useBizWebRouteDispatcher")(),N=c("useBizKitBaseLoggingData")(),O=m(function(){t!=null&&[c("GeoLinkRouterType").Native,c("GeoLinkRouterType").AIR].includes(G)&&F(t),z==null?void 0:z(),H(!1),E&&M(E.getPath(),E.getQueryData())},[M,t,z,G,F,H,E]),P=function(a){a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.business_scoping)==null?void 0:(a=a.global_scopes)==null?void 0:(a=a.nodes)==null?void 0:a[0];a!=null&&J(d("localScopeInfoUtils").getAllAssetsListFromGlobalScope(a))};B=c("useBizKitUnifiedSelectorFetchAllAssetIDs")(B,P);var Q=B.fetch;P=B.isLoading;B=g!=null&&c("getShouldShowBizLevelHome")();var R=E!=null?l.jsx(c("GeoButton.react"),{"data-testid":void 0,icon:d("fbicon")._(i("497569"),16),isLabelHidden:!0,label:"settings",onClick:O,variant:"flat",xstyle:A===!0&&B&&c("geoMargin").top8}):null;R=E!=null&&l.jsxs("div",{"data-testid":void 0,children:[R,A===!0?l.jsx("div",{className:"xsdn2ir x16rfsbj x13awxeq x16sykr7 x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xamhcws xol2nv xlxy82 x19p7ews xols6we x1hc1fzr x1n2onr6 xavxnbw x12p4g1f x1k90msu x1qfuztq x1v4s8kt","data-testid":void 0,children:l.jsx("div",{className:"x1cdvf7c x14yjl9h xudhj91 x18nykt9 xww2gxu x1lliihq xols6we x1v4s8kt"})}):null]});var S=c("XBizWebCometBizSuiteBusinessHomeControllerRouteBuilder").buildUri({business_id:(A=t==null?void 0:t.id)!=null?A:"",nav_ref:"unified_selector"}),T=function(){M(S.toString(),S.getQueryData(),{onNavigate:function(a){a&&(t&&I(t))}})};A=B&&l.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("497873"),16),isLabelHidden:!0,label:"BizLevelHome",onClick:function(){T()},variant:"flat"});O=l.jsxs(c("GeoDropdownMenu.react"),{onOpen:function(){c("logBizKitMASCollectionClick")(N,"BUSINESS_SCOPE_DROPDOWN_MENU")},useEllipsisIcon:!0,children:[E!=null?l.jsx(c("GeoMenuItem.react"),{label:o,onClick:O}):null,l.jsx(c("GeoMenuItem.react"),{isDisabled:Number(g)<=1,label:p,onClick:function(){L(),c("logBizKitMASCollectionEnterFlow")(N,"CREATION_MODAL")}})]});k=l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",alignSelf:"stretch","data-testid":void 0,justifyContent:"space-between",xstyle:D&&v&&v.length>0?v.concat([r.header]):r.header,children:[l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[a&&l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").end4),children:l.jsx(c("GeoBaseRadioInput.react"),{checked:y===!0,isDisabled:!1})}),l.jsx(c("GeoFlexbox.react"),{xstyle:r.businessImage,children:l.jsx(c("BizKitUnifiedSelectorDropDownMediaItem.react"),{fit:"cover",hasBorder:!0,media:l.jsx(c("Image.react"),{src:k}),ratio:d("ScopingPrioritiesGating").getIsMBAUpdateEnabled()?"square":"circle",size:32})}),a&&y===!0||!a?l.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[l.jsx(c("GeoHeading.react"),{display:"truncate",level:3,xstyle:r.headerText2,children:(D=u)!=null?D:""}),l.jsxs("div",{children:[l.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:h._({"*":"{selected_assets_count}u9879u4e1au52a1u8d44u4ea7"},[h._plural(g),h._param("selected_assets_count",g)])}),y===!0&&!x?l.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:h._("{=m0}",[h._implicitParam("=m0",l.jsx("strong",{children:h._("u00b7 u5df2u9009u62e9{selected_assets_count}u9879",[h._param("selected_assets_count",C)])}))])}):null]})]}):l.jsx(c("GeoHeading.react"),{level:3,xstyle:r.headerText,children:(v=u)!=null?v:""})]}),l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[A,w&&d("BizKitMultiAssetSelectionGating.entrypointutils").getCanViewMultipleAssetCollectionsInSelector()?O:R,K]})]});D=l.jsx(c("GeoBaseInteractiveRow.react"),{accessibilityRole:"listitem",isFocusable:y===!1||!b,onPress:function(){T()},children:k});return a?l.jsxs(c("GeoBaseInteractiveRow.react"),{accessibilityRole:"listitem","data-testid":void 0,isFocusable:!0,onPress:function(){s?(t&&Q(t==null?void 0:t.id),t&&I(t)):(f&&J(f),t&&I(t))},children:[k,P&&l.jsx(c("GeoSpinner.react"),{size:"small",xstyle:c("geoMargin").start4})]}):B?D:k}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessUnifiedNavigationAccountSelectorV2.react",["fbt","AdsGlobalNavigationHeaderLoggingContext","BusinessUnifiedNavigationConstants","BusinessUnifiedNavigationGlobalScopeSelectorAction","BusinessUnifiedNavigationLogger","BusinessUnifiedScopingGlobalScopeSelector.react","BusinessUnifiedScopingGlobalScopeSelectorSearchSource","BusinessUnifiedScopingSelectorEventsLoggingUtils","BusinessUnifiedScopingUtils","QPLUserFlow","RelayFBEnvironment","RelayHooks","ScopingPrioritiesGating","URI","dispatchUnifiedNavigationScopeChangeAction","gkx","goURI","qpl","react","uuidv4"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useContext,m=k.createRef(),n=k.createRef(),o=k.createRef();function p(a){var b=a.assetOrderBy,e=a.assetTypes,g=a.enableBusinessAssetGroups,j=a.enterpriseInfo,p=a.globalScopesOrderBy,s=a.globalScopeTypes,t=a.includeProfilePlusDelegatePages,u=a.isIGLogin,v=a.isMenuExpanded,w=a.isMenuShown,x=a.onCollapsedChange,y=a.onSelect,z=a.personalScopeExcludeBusinessOwnedAssets,A=a.selectedAccountData,B=a.selectedBusinessID,C=a.selectedGlobalScopeID,D=a.selectedGlobalScopeType,E=a.toolType,F=a.variant;a=a.wrapperRef;var G=d("RelayHooks").useRelayEnvironment(),H=c("gkx")("1610");p=d("BusinessUnifiedScopingGlobalScopeSelectorSearchSource").createGlobalScopeSelectorSearchSource(G,{assetOrderBy:(G=b)!=null?G:d("BusinessUnifiedNavigationConstants").ASSET_ORDER_BY,assetTypes:(b=e)!=null?b:E==="COMMERCE_MANAGER"&&H?d("BusinessUnifiedNavigationConstants").SUPPORTED_ASSET_TYPES_EXCLUDE_OOM_ASSETS:d("BusinessUnifiedNavigationConstants").SUPPORTED_ASSET_TYPES,contextURI:window.location.href,globalScopesOrderBy:(G=p)!=null?G:d("BusinessUnifiedNavigationConstants").GLOBAL_SCOPES_ORDER_BY,globalScopeTypes:(e=s)!=null?e:d("BusinessUnifiedNavigationConstants").GLOBAL_SCOPE_TYPES,includeProfilePlusDelegatePages:(b=t)!=null?b:d("BusinessUnifiedNavigationConstants").INCLUDE_PROFILE_PLUS_DELEGATE_PAGES,numAssetForSecondaryDescription:d("BusinessUnifiedNavigationConstants").NUM_ASSETS_FOR_SECONDARY_DESCRIPTION,numAssetForTooltip:d("BusinessUnifiedNavigationConstants").NUM_ASSETS_FOR_TOOLTIP,numScopesToLoad:d("BusinessUnifiedNavigationConstants").NUM_GLOBAL_SCOPES_TO_LOAD,nuxStep2Ref:n,nuxStep3Ref:o,personalScopeExcludeBusinessOwnedAssets:(H=z)!=null?H:d("BusinessUnifiedNavigationConstants").PERSONAL_SCOPE_EXCLUDE_BUSINESS_OWNED_ASSETS,scopeIDs:null,selectedAccountData:A,selectedBusinessID:B,selectedGlobalScopeID:C,selectedGlobalScopeType:D,isIGLogin:u});function I(a){switch(a){case"business":return"business";case"personal":return"personal";case"business_asset_group":return"business_asset_group";default:return null}}G=l(d("AdsGlobalNavigationHeaderLoggingContext").AdsGlobalNavigationHeaderLoggingContext);var J=G.businessToolName,K=G.firstLevelScopeId,L=G.firstLevelScopeType;function M(a){if(a!=null){c("QPLUserFlow").endSuccess(c("qpl")._(270206296,"122"),{annotations:{string:{source:"NEW_BUSINESS"}}});var b=null,e=I(a.getType());if(e==="business_asset_group"){var g;b=(g=a.getAuxiliaryData())==null?void 0:g.businessID}else e==="business"&&(b=a.getUniqueID());g={assetLists:(g=(g=a.getAuxiliaryData())==null?void 0:g.assetLists)!=null?g:[],businessID:b,globalScopeType:e,globalScopeID:a.getUniqueID(),globalScopeName:a.getTitle(),redirectionURI:a.getURI()};c("BusinessUnifiedNavigationLogger").log("business_account_selector_account_click","app_init",{selectorStyle:"new_unified_scoping"});c("BusinessUnifiedNavigationLogger").log("global_scope_selector_click","global_scope_selector_open",{globalScopeId:C,globalScopeIdTo:g.globalScopeID,globalScopeType:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(D),globalScopeTypeTo:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(g.globalScopeType),selectorStyle:"new_unified_scoping"});J&&d("BusinessUnifiedScopingSelectorEventsLoggingUtils").logUserActionEvent("old_scope_selector_popover","scope_selector_clicked",{business_tool:J,current_scope_id:(b=K)!=null?b:"",current_scope_type:L,first_level_scope_id:K,scope_id_to:g.globalScopeID,to_business_tool:J});if(y!=null)y(g),c("BusinessUnifiedNavigationGlobalScopeSelectorAction").dispatch({globalScopeType:g.globalScopeType,globalScopeID:g.globalScopeID,globalScopeName:g.globalScopeName,businessID:g.businessID},{line:"302",module:"BusinessUnifiedNavigationAccountSelectorV2.react.js",moduleID:f.id}),c("dispatchUnifiedNavigationScopeChangeAction")(g.businessID,g.globalScopeID,null);else if(g.redirectionURI!=="")if(g.globalScopeType==="personal"){e=c("uuidv4")();c("BusinessUnifiedNavigationLogger").log("personal_scope_selector_click","global_scope_selector_open",{globalScopeId:C,globalScopeIdTo:g.globalScopeID,globalScopeType:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(D),globalScopeTypeTo:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(g.globalScopeType),selectorStyle:"new_unified_scoping",redirectSessionId:e});a=new(i||(i=c("URI")))(g.redirectionURI).addQueryData({redirect_session_id:e});c("goURI")(a)}else c("goURI")(g.redirectionURI)}}return k.jsx("div",{className:"_3-95",ref:a,children:k.jsx(c("BusinessUnifiedScopingGlobalScopeSelector.react"),{"data-testid":void 0,enableBusinessAssetGroups:g,enterpriseInfo:j,isCategorized:!0,isIGLogin:u,isMenuExpanded:v,isMenuShown:w,logoutURI:A.logoutURI,nuxRefs:{nuxStep1Ref:m,nuxStep2Ref:n,nuxStep3Ref:o},placeholder:h._("u641cu7d22u8d26u6237"),ratio:d("ScopingPrioritiesGating").getIsMBAUpdateEnabled()===!0?"square":"circle",searchSource:p,selectedAccountData:A,selectedBusinessID:B,showNux:A.showNux,toolType:E,variant:F,onChange:M,onClose:q,onCollapsedChange:x,onOpen:r})})}p.displayName=p.name+" [from "+f.id+"]";function q(){c("QPLUserFlow").endCancel(c("qpl")._(270206296,"122"),{annotations:{string:{source:"CHANGE_BUSINESS_DROPDOWN_CLOSED"}}}),c("BusinessUnifiedNavigationLogger").log("global_scope_selector_close","global_scope_selector_open",{selectorStyle:"new_unified_scoping"})}function r(){c("BusinessUnifiedNavigationLogger").log("global_scope_selector_open","app_init",{selectorStyle:"new_unified_scoping"})}function a(a){return k.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:k.jsx(p,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ScopingPrioritiesGating",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("20898")}g.getIsMBAUpdateEnabled=a}),98);
-----
BizKitUnifiedSelectorDropDownButton.react",["ix","BizKitAppHandler","BizKitGlobalScopeSelectorContext","BizKitLeftNavText.react","BizKitRouteContext","BizKitUnifiedScopingLoggingUtils","BizKitUnifiedSelectorDropDownButtonImageLocalScope.react","BizKitUnifiedSelectorDropDownButton_globalScopeFragment.graphql","BizKitUnifiedSelectorDropDownMediaItem.react","FlexLayout.react","GeoBaseText.react","GeoFlexbox.react","GeoLink.react","GeoTooltip.react","Image.react","InteractionTracingMetrics","RelayHooks","ScopingPrioritiesGating","filterNulls","getShouldShowBizLevelHome","gkx","hero-tracing-placeholder","intlList","react","stylex","useBizKitSelectedAssets","useBizWebCurrentRouteName","useHoverState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));a=k;var m=a.useContext,n=a.useMemo,o={menu:{borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",cursor:"x1ypdohk",height:"xn3w4p2",outline:"x1a2a7pz",width:"xh8yej3",$$css:!0},menuNextTheme:{borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"xcp74o4",borderEndColor:"x29200m",borderBottomColor:"x1eo4zhg",borderStartColor:"x1dqpktd",boxSizing:"x9f619",height:"x1vqgdyp",$$css:!0},menuClosed:{color:"xfiw4rn",":hover_backgroundColor":"x1gwckwn",":hover_color":"xs7wk7t",$$css:!0},menuClosedNextTheme:{backgroundColor:"xjbqb8w",color:"xadangi",":hover_backgroundColor":"x1n5bzlp",":hover_color":"x1gv0dy9",":hover_borderTopColor":"x8x9e93",":hover_borderEndColor":"x1nwzcet",":hover_borderBottomColor":"x1hjarm2",":hover_borderStartColor":"x1i74pvw",$$css:!0},menuOpen:{backgroundColor:"xh4b7qa",color:"xg32yw2",$$css:!0},menuOpenNextTheme:{backgroundColor:"xjbqb8w",color:"xadangi",borderTopColor:"x14ihq94",borderEndColor:"x1ug7tv7",borderBottomColor:"x6kzwsm",borderStartColor:"xd1rtb7",$$css:!0},profilePicture:{flexShrink:"x2lah0s",marginLeft:"x3zn8ph",marginRight:"x1g437uv",$$css:!0},profilePictureNavCollapsed:{flexShrink:"x2lah0s",marginLeft:"x1uoezyy",marginRight:"xl010v5",$$css:!0}};function p(a){var b=a.isLeftNavCollapsed,e=a.selectedGlobalScope,f=a.selectedLocalScopes,g=a.selectedLocalScopesCount;a=a.showGlobalScopeData;if(a){return l.jsx(c("BizKitUnifiedSelectorDropDownMediaItem.react"),{description:(a=e==null?void 0:e.scope_name)!=null?a:"",fit:"cover",hasBorder:!0,ratio:d("ScopingPrioritiesGating").getIsMBAUpdateEnabled()===!0?"square":"circle",media:l.jsx(c("Image.react"),{alt:e==null?void 0:e.scope_name,src:e==null?void 0:(a=e.image)==null?void 0:a.uri}),size:32})}return l.jsx(c("BizKitUnifiedSelectorDropDownButtonImageLocalScope.react"),{isLeftNavCollapsed:b,fragmentKey:f,selectedLocalScopesCount:g})}p.displayName=p.name+" [from "+f.id+"]";function q(a){a=a.buttonLabel;var b=m(c("BizKitRouteContext"));b=b.isMultiAssetSelectionEnabled;return l.jsx(c("BizKitLeftNavText.react"),{display:"truncate",size:b?"header4":"value",weight:"normal",children:a})}q.displayName=q.name+" [from "+f.id+"]";function r(a){a=a.isDown;var b=h("1345482"),d=h("1345482");return l.jsx(c("Image.react"),{className:"x3zn8ph x35vizs x2lah0s",src:a?b:d})}r.displayName=r.name+" [from "+f.id+"]";function s(a){return(j||(j=c("stylex")))(o.menu,a?o.menuOpen:o.menuClosed,o.menuNextTheme,a?o.menuOpenNextTheme:o.menuClosedNextTheme)}e=l.forwardRef(function(a,e){var f=a.globalScopeFragment,g=a.isDropDownOpened,h=a.onClick,k=a.isLeftNavCollapsed;babelHelpers.objectWithoutPropertiesLoose(a,["globalScopeFragment","isDropDownOpened","onClick","isLeftNavCollapsed"]);a=c("useHoverState")();var t=a.isHovered,u=a.onMouseEnter;a=a.onMouseLeave;var v=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitUnifiedSelectorDropDownButton_globalScopeFragment.graphql"),f),w=n(function(){var a,b=new Map();a=v?c("filterNulls")((a=v.asset_lists)==null?void 0:(a=a.flatMap(function(a){return a.objects}))==null?void 0:a.flatMap(function(a){return a==null?void 0:a.nodes})).filter(function(a){return a.asset_id!=null}):[];a.forEach(function(a){b.set(a.asset_id,a)});return b},[v]);f=m(d("hero-tracing-placeholder").HeroCurrentInteractionForLoggingContext);f=(f=(f=f.current)==null?void 0:f.interactionUUID)!=null?f:d("BizKitAppHandler").getHeroTracingInteractionID();f!=null&&c("InteractionTracingMetrics").addMetadata(f,"selected_scopes_asset_count",w.size);f=m(c("BizKitRouteContext"));var x=f.isMultiAssetSelectionEnabled;f=c("useBizKitSelectedAssets")();var y=f.assets,z=f.assetID;f=f.assetType;var A=m(c("BizKitGlobalScopeSelectorContext")),B=A.tempSelectedAssets,C=n(function(){return c("gkx")("21058")&&!x?c("filterNulls")(B):c("filterNulls")(y)},[y,x,B]),D=n(function(){return c("filterNulls")(C.filter(function(a){return a.type==="PAGE"||a.type==="WHATSAPP_BUSINESS_ACCOUNT"||a.type==="INSTAGRAM_ACCOUNT_V2"}))},[C]);d("BizKitUnifiedScopingLoggingUtils").logInitUnifiedSelectorLocalScope((A=z)!=null?A:"",f);var E=n(function(){return c("filterNulls")(D.map(function(a){return w==null?void 0:w.get(a.id)}))},[w,D]);z=c("useBizWebCurrentRouteName")();A=z==="BUSINESS_HOME"&&c("getShouldShowBizLevelHome")();var F=z==="SETTINGS"||E.length===0||A;f=l.jsx("div",{className:(j||(j=c("stylex")))(k&&x?o.profilePictureNavCollapsed:o.profilePicture),children:l.jsx(p,{selectedGlobalScope:v,selectedLocalScopes:E,selectedLocalScopesCount:D.length,showGlobalScopeData:F,isLeftNavCollapsed:k})});z="xrmyp2";if(x)switch(D.length){case 0:case 1:z="xrmyp2";break;case 2:z="x1exxlbk";break;default:z="x9fslfs"}A=n(function(){if(F)return v==null?void 0:v.scope_name;else if(x)return E.map(function(a){return a.name}).join(", ");else{var a;return(a=w.get(D[0].id))==null?void 0:a.name}},[x,E,w,D,v==null?void 0:v.scope_name,F]);z=l.jsx("div",{className:z,children:l.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[l.jsx(q,{buttonLabel:A}),x&&D.length>=2&&l.jsx(c("GeoTooltip.react"),{position:"right",content:(k=c("intlList")(E.map(function(a){return a.name})))!=null?k:"",children:l.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"valueDescription",children:D.length+" selected"})})]})});A=l.jsx(r,{isDown:g||t});return l.jsx("div",{className:"x6ikm8r x10wlt62 xh8yej3",onMouseEnter:u,onMouseLeave:a,ref:e,children:l.jsx(c("GeoLink.react"),{onClick:h,showUnderline:"never","data-testid":void 0,children:l.jsxs(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:s(g),children:[f,z,A]})})})});a=e;g["default"]=a}),98);
-----
ScopingPrioritiesGating",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("9067")}g.getIsLogoutAndBACreationEnabled=a}),98);
-----
-----
BizKitUnifiedSelectorAssetsSectionAccountHeader.react",["fbt","ix","BizKitGlobalScopeSelectorContext","BizKitMultiAssetSelectionGating.entrypointutils","BizKitRouteContext","BizKitUnifiedSelectorDropDownMediaItem.react","BusinessAccountRenameCometGating","BusinessCometUnifiedSelectorAssetCollectionCreationModal.entrypoint","GeoBaseInteractiveRow.react","GeoBaseRadioInput.react","GeoBaseText.react","GeoButton.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoHeading.react","GeoLinkRouterType","GeoMenuItem.react","GeoSpinner.react","Image.react","ScopingPrioritiesGating","XBizWebCometBizSuiteBusinessHomeControllerRouteBuilder","fbicon","geoMargin","getShouldShowBizLevelHome","localScopeInfoUtils","logBizKitMASCollectionClick","logBizKitMASCollectionEnterFlow","react","stylex","useBizKitBaseLoggingData","useBizKitUnifiedSelectorFetchAllAssetIDs","useBizWebCurrentRouteName","useBizWebRouteDispatcher","useGeoEntryPointModal","useGeoLinkRouterType","useSetGlobalScope_DO_NOT_USE"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));b=k;var m=b.useCallback,n=b.useContext,o=d("BusinessAccountRenameCometGating").getBARenameEnabled()?h._("u7ba1u7406u4e1au52a1u8d44u4ea7u7ec4u5408u8bbeu7f6e"):h._("u7ba1u7406u4e1au52a1u5e10u6237u8bbeu7f6e"),p=h._("u521bu5efau8d44u4ea7u96c6"),q=1e3,r={businessImage:{flexShrink:"x2lah0s",marginEnd:"x1emribx",marginLeft:null,marginRight:null,marginStart:"xsgj6o6",$$css:!0},header:{minHeight:"xbktkl8",width:"x9g0s24",$$css:!0},headerText:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0},headerText2:{marginBottom:"xat24cr",$$css:!0}};function a(a){var b,e,f=a.allAssetList,g=a.assetsCount,k=a["data-testid"];k=a.enableServerSideFetch;var s=k===void 0?!0:k,t=a.globalScope;k=a.headerImage;var u=a.headerTitle,v=a.highlightStyles,w=a.isInBusinessSetting,x=a.isInMultiAssetSelectionMode,y=a.isSelectedGlobalScope,z=a.onSettingsClick,A=a.renderBadge,B=a.searchString,C=a.selectedIdsCount,D=a.settingsDataTestId,E=a.settingsUri;D=a.shouldHighlightHeader;var F=c("useSetGlobalScope_DO_NOT_USE")(),G=c("useGeoLinkRouterType")();a=x===!0;x=n(c("BizKitGlobalScopeSelectorContext"));var H=x.setIsOpen,I=x.setTempGlobalScope,J=x.setTempSelectedAssets;x=c("useBizWebCurrentRouteName")();b=c("useGeoEntryPointModal")(c("BusinessCometUnifiedSelectorAssetCollectionCreationModal.entrypoint"),{businessID:(b=t==null?void 0:t.id)!=null?b:""},{businessID:(b=t==null?void 0:t.id)!=null?b:"",first:q,routeName:x});var K=b.modal,L=b.showModal;b=x==="BUSINESS_HOME";x=w===!0||b;w=n(c("BizKitRouteContext"));w=w.isMultiAssetSelectionEnabled;var M=c("useBizWebRouteDispatcher")(),N=c("useBizKitBaseLoggingData")(),O=m(function(){t!=null&&[c("GeoLinkRouterType").Native,c("GeoLinkRouterType").AIR].includes(G)&&F(t),z==null?void 0:z(),H(!1),E&&M(E.getPath(),E.getQueryData())},[M,t,z,G,F,H,E]),P=function(a){a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.business_scoping)==null?void 0:(a=a.global_scopes)==null?void 0:(a=a.nodes)==null?void 0:a[0];a!=null&&J(d("localScopeInfoUtils").getAllAssetsListFromGlobalScope(a))};B=c("useBizKitUnifiedSelectorFetchAllAssetIDs")(B,P);var Q=B.fetch;P=B.isLoading;B=g!=null&&c("getShouldShowBizLevelHome")();var R=E!=null?l.jsx(c("GeoButton.react"),{"data-testid":void 0,icon:d("fbicon")._(i("497569"),16),isLabelHidden:!0,label:"settings",onClick:O,variant:"flat",xstyle:A===!0&&B&&c("geoMargin").top8}):null;R=E!=null&&l.jsxs("div",{"data-testid":void 0,children:[R,A===!0?l.jsx("div",{className:"xsdn2ir x16rfsbj x13awxeq x16sykr7 x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xamhcws xol2nv xlxy82 x19p7ews xols6we x1hc1fzr x1n2onr6 xavxnbw x12p4g1f x1k90msu x1qfuztq x1v4s8kt","data-testid":void 0,children:l.jsx("div",{className:"x1cdvf7c x14yjl9h xudhj91 x18nykt9 xww2gxu x1lliihq xols6we x1v4s8kt"})}):null]});var S=c("XBizWebCometBizSuiteBusinessHomeControllerRouteBuilder").buildUri({business_id:(A=t==null?void 0:t.id)!=null?A:"",nav_ref:"unified_selector"}),T=function(){M(S.toString(),S.getQueryData(),{onNavigate:function(a){a&&(t&&I(t))}})};A=B&&l.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("497873"),16),isLabelHidden:!0,label:"BizLevelHome",onClick:function(){T()},variant:"flat"});O=l.jsxs(c("GeoDropdownMenu.react"),{onOpen:function(){c("logBizKitMASCollectionClick")(N,"BUSINESS_SCOPE_DROPDOWN_MENU")},useEllipsisIcon:!0,children:[E!=null?l.jsx(c("GeoMenuItem.react"),{label:o,onClick:O}):null,l.jsx(c("GeoMenuItem.react"),{isDisabled:Number(g)<=1,label:p,onClick:function(){L(),c("logBizKitMASCollectionEnterFlow")(N,"CREATION_MODAL")}})]});k=l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",alignSelf:"stretch","data-testid":void 0,justifyContent:"space-between",xstyle:D&&v&&v.length>0?v.concat([r.header]):r.header,children:[l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[a&&l.jsx("div",{className:(j||(j=c("stylex")))(c("geoMargin").end4),children:l.jsx(c("GeoBaseRadioInput.react"),{checked:y===!0,isDisabled:!1})}),l.jsx(c("GeoFlexbox.react"),{xstyle:r.businessImage,children:l.jsx(c("BizKitUnifiedSelectorDropDownMediaItem.react"),{fit:"cover",hasBorder:!0,media:l.jsx(c("Image.react"),{src:k}),ratio:d("ScopingPrioritiesGating").getIsMBAUpdateEnabled()?"square":"circle",size:32})}),a&&y===!0||!a?l.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[l.jsx(c("GeoHeading.react"),{display:"truncate",level:3,xstyle:r.headerText2,children:(D=u)!=null?D:""}),l.jsxs("div",{children:[l.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:h._({"*":"{selected_assets_count}u9879u4e1au52a1u8d44u4ea7"},[h._plural(g),h._param("selected_assets_count",g)])}),y===!0&&!x?l.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:h._("{=m0}",[h._implicitParam("=m0",l.jsx("strong",{children:h._("u00b7 u5df2u9009u62e9{selected_assets_count}u9879",[h._param("selected_assets_count",C)])}))])}):null]})]}):l.jsx(c("GeoHeading.react"),{level:3,xstyle:r.headerText,children:(v=u)!=null?v:""})]}),l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[A,w&&d("BizKitMultiAssetSelectionGating.entrypointutils").getCanViewMultipleAssetCollectionsInSelector()?O:R,K]})]});D=l.jsx(c("GeoBaseInteractiveRow.react"),{accessibilityRole:"listitem",isFocusable:y===!1||!b,onPress:function(){T()},children:k});return a?l.jsxs(c("GeoBaseInteractiveRow.react"),{accessibilityRole:"listitem","data-testid":void 0,isFocusable:!0,onPress:function(){s?(t&&Q(t==null?void 0:t.id),t&&I(t)):(f&&J(f),t&&I(t))},children:[k,P&&l.jsx(c("GeoSpinner.react"),{size:"small",xstyle:c("geoMargin").start4})]}):B?D:k}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BusinessUnifiedNavigationAccountSelectorV2.react",["fbt","AdsGlobalNavigationHeaderLoggingContext","BusinessUnifiedNavigationConstants","BusinessUnifiedNavigationGlobalScopeSelectorAction","BusinessUnifiedNavigationLogger","BusinessUnifiedScopingGlobalScopeSelector.react","BusinessUnifiedScopingGlobalScopeSelectorSearchSource","BusinessUnifiedScopingSelectorEventsLoggingUtils","BusinessUnifiedScopingUtils","QPLUserFlow","RelayFBEnvironment","RelayHooks","ScopingPrioritiesGating","URI","dispatchUnifiedNavigationScopeChangeAction","gkx","goURI","qpl","react","uuidv4"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useContext,m=k.createRef(),n=k.createRef(),o=k.createRef();function p(a){var b=a.assetOrderBy,e=a.assetTypes,g=a.enableBusinessAssetGroups,j=a.enterpriseInfo,p=a.globalScopesOrderBy,s=a.globalScopeTypes,t=a.includeProfilePlusDelegatePages,u=a.isIGLogin,v=a.isMenuExpanded,w=a.isMenuShown,x=a.onCollapsedChange,y=a.onSelect,z=a.personalScopeExcludeBusinessOwnedAssets,A=a.selectedAccountData,B=a.selectedBusinessID,C=a.selectedGlobalScopeID,D=a.selectedGlobalScopeType,E=a.toolType,F=a.variant;a=a.wrapperRef;var G=d("RelayHooks").useRelayEnvironment(),H=c("gkx")("1610");p=d("BusinessUnifiedScopingGlobalScopeSelectorSearchSource").createGlobalScopeSelectorSearchSource(G,{assetOrderBy:(G=b)!=null?G:d("BusinessUnifiedNavigationConstants").ASSET_ORDER_BY,assetTypes:(b=e)!=null?b:E==="COMMERCE_MANAGER"&&H?d("BusinessUnifiedNavigationConstants").SUPPORTED_ASSET_TYPES_EXCLUDE_OOM_ASSETS:d("BusinessUnifiedNavigationConstants").SUPPORTED_ASSET_TYPES,contextURI:window.location.href,globalScopesOrderBy:(G=p)!=null?G:d("BusinessUnifiedNavigationConstants").GLOBAL_SCOPES_ORDER_BY,globalScopeTypes:(e=s)!=null?e:d("BusinessUnifiedNavigationConstants").GLOBAL_SCOPE_TYPES,includeProfilePlusDelegatePages:(b=t)!=null?b:d("BusinessUnifiedNavigationConstants").INCLUDE_PROFILE_PLUS_DELEGATE_PAGES,numAssetForSecondaryDescription:d("BusinessUnifiedNavigationConstants").NUM_ASSETS_FOR_SECONDARY_DESCRIPTION,numAssetForTooltip:d("BusinessUnifiedNavigationConstants").NUM_ASSETS_FOR_TOOLTIP,numScopesToLoad:d("BusinessUnifiedNavigationConstants").NUM_GLOBAL_SCOPES_TO_LOAD,nuxStep2Ref:n,nuxStep3Ref:o,personalScopeExcludeBusinessOwnedAssets:(H=z)!=null?H:d("BusinessUnifiedNavigationConstants").PERSONAL_SCOPE_EXCLUDE_BUSINESS_OWNED_ASSETS,scopeIDs:null,selectedAccountData:A,selectedBusinessID:B,selectedGlobalScopeID:C,selectedGlobalScopeType:D,isIGLogin:u});function I(a){switch(a){case"business":return"business";case"personal":return"personal";case"business_asset_group":return"business_asset_group";default:return null}}G=l(d("AdsGlobalNavigationHeaderLoggingContext").AdsGlobalNavigationHeaderLoggingContext);var J=G.businessToolName,K=G.firstLevelScopeId,L=G.firstLevelScopeType;function M(a){if(a!=null){c("QPLUserFlow").endSuccess(c("qpl")._(270206296,"122"),{annotations:{string:{source:"NEW_BUSINESS"}}});var b=null,e=I(a.getType());if(e==="business_asset_group"){var g;b=(g=a.getAuxiliaryData())==null?void 0:g.businessID}else e==="business"&&(b=a.getUniqueID());g={assetLists:(g=(g=a.getAuxiliaryData())==null?void 0:g.assetLists)!=null?g:[],businessID:b,globalScopeType:e,globalScopeID:a.getUniqueID(),globalScopeName:a.getTitle(),redirectionURI:a.getURI()};c("BusinessUnifiedNavigationLogger").log("business_account_selector_account_click","app_init",{selectorStyle:"new_unified_scoping"});c("BusinessUnifiedNavigationLogger").log("global_scope_selector_click","global_scope_selector_open",{globalScopeId:C,globalScopeIdTo:g.globalScopeID,globalScopeType:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(D),globalScopeTypeTo:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(g.globalScopeType),selectorStyle:"new_unified_scoping"});J&&d("BusinessUnifiedScopingSelectorEventsLoggingUtils").logUserActionEvent("old_scope_selector_popover","scope_selector_clicked",{business_tool:J,current_scope_id:(b=K)!=null?b:"",current_scope_type:L,first_level_scope_id:K,scope_id_to:g.globalScopeID,to_business_tool:J});if(y!=null)y(g),c("BusinessUnifiedNavigationGlobalScopeSelectorAction").dispatch({globalScopeType:g.globalScopeType,globalScopeID:g.globalScopeID,globalScopeName:g.globalScopeName,businessID:g.businessID},{line:"302",module:"BusinessUnifiedNavigationAccountSelectorV2.react.js",moduleID:f.id}),c("dispatchUnifiedNavigationScopeChangeAction")(g.businessID,g.globalScopeID,null);else if(g.redirectionURI!=="")if(g.globalScopeType==="personal"){e=c("uuidv4")();c("BusinessUnifiedNavigationLogger").log("personal_scope_selector_click","global_scope_selector_open",{globalScopeId:C,globalScopeIdTo:g.globalScopeID,globalScopeType:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(D),globalScopeTypeTo:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(g.globalScopeType),selectorStyle:"new_unified_scoping",redirectSessionId:e});a=new(i||(i=c("URI")))(g.redirectionURI).addQueryData({redirect_session_id:e});c("goURI")(a)}else c("goURI")(g.redirectionURI)}}return k.jsx("div",{className:"_3-95",ref:a,children:k.jsx(c("BusinessUnifiedScopingGlobalScopeSelector.react"),{"data-testid":void 0,enableBusinessAssetGroups:g,enterpriseInfo:j,isCategorized:!0,isIGLogin:u,isMenuExpanded:v,isMenuShown:w,logoutURI:A.logoutURI,nuxRefs:{nuxStep1Ref:m,nuxStep2Ref:n,nuxStep3Ref:o},placeholder:h._("u641cu7d22u8d26u6237"),ratio:d("ScopingPrioritiesGating").getIsMBAUpdateEnabled()===!0?"square":"circle",searchSource:p,selectedAccountData:A,selectedBusinessID:B,showNux:A.showNux,toolType:E,variant:F,onChange:M,onClose:q,onCollapsedChange:x,onOpen:r})})}p.displayName=p.name+" [from "+f.id+"]";function q(){c("QPLUserFlow").endCancel(c("qpl")._(270206296,"122"),{annotations:{string:{source:"CHANGE_BUSINESS_DROPDOWN_CLOSED"}}}),c("BusinessUnifiedNavigationLogger").log("global_scope_selector_close","global_scope_selector_open",{selectorStyle:"new_unified_scoping"})}function r(){c("BusinessUnifiedNavigationLogger").log("global_scope_selector_open","app_init",{selectorStyle:"new_unified_scoping"})}function a(a){return k.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:k.jsx(p,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ScopingPrioritiesGating",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("20898")}g.getIsMBAUpdateEnabled=a}),98);
-----
BizKitUnifiedSelectorDropDownButton.react",["ix","BizKitAppHandler","BizKitGlobalScopeSelectorContext","BizKitLeftNavText.react","BizKitRouteContext","BizKitUnifiedScopingLoggingUtils","BizKitUnifiedSelectorDropDownButtonImageLocalScope.react","BizKitUnifiedSelectorDropDownButton_globalScopeFragment.graphql","BizKitUnifiedSelectorDropDownMediaItem.react","FlexLayout.react","GeoBaseText.react","GeoFlexbox.react","GeoLink.react","GeoTooltip.react","Image.react","InteractionTracingMetrics","RelayHooks","ScopingPrioritiesGating","filterNulls","getShouldShowBizLevelHome","gkx","hero-tracing-placeholder","intlList","react","stylex","useBizKitSelectedAssets","useBizWebCurrentRouteName","useHoverState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));a=k;var m=a.useContext,n=a.useMemo,o={menu:{borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",cursor:"x1ypdohk",height:"xn3w4p2",outline:"x1a2a7pz",width:"xh8yej3",$$css:!0},menuNextTheme:{borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"xcp74o4",borderEndColor:"x29200m",borderBottomColor:"x1eo4zhg",borderStartColor:"x1dqpktd",boxSizing:"x9f619",height:"x1vqgdyp",$$css:!0},menuClosed:{color:"xfiw4rn",":hover_backgroundColor":"x1gwckwn",":hover_color":"xs7wk7t",$$css:!0},menuClosedNextTheme:{backgroundColor:"xjbqb8w",color:"xadangi",":hover_backgroundColor":"x1n5bzlp",":hover_color":"x1gv0dy9",":hover_borderTopColor":"x8x9e93",":hover_borderEndColor":"x1nwzcet",":hover_borderBottomColor":"x1hjarm2",":hover_borderStartColor":"x1i74pvw",$$css:!0},menuOpen:{backgroundColor:"xh4b7qa",color:"xg32yw2",$$css:!0},menuOpenNextTheme:{backgroundColor:"xjbqb8w",color:"xadangi",borderTopColor:"x14ihq94",borderEndColor:"x1ug7tv7",borderBottomColor:"x6kzwsm",borderStartColor:"xd1rtb7",$$css:!0},profilePicture:{flexShrink:"x2lah0s",marginLeft:"x3zn8ph",marginRight:"x1g437uv",$$css:!0},profilePictureNavCollapsed:{flexShrink:"x2lah0s",marginLeft:"x1uoezyy",marginRight:"xl010v5",$$css:!0}};function p(a){var b=a.isLeftNavCollapsed,e=a.selectedGlobalScope,f=a.selectedLocalScopes,g=a.selectedLocalScopesCount;a=a.showGlobalScopeData;if(a){return l.jsx(c("BizKitUnifiedSelectorDropDownMediaItem.react"),{description:(a=e==null?void 0:e.scope_name)!=null?a:"",fit:"cover",hasBorder:!0,ratio:d("ScopingPrioritiesGating").getIsMBAUpdateEnabled()===!0?"square":"circle",media:l.jsx(c("Image.react"),{alt:e==null?void 0:e.scope_name,src:e==null?void 0:(a=e.image)==null?void 0:a.uri}),size:32})}return l.jsx(c("BizKitUnifiedSelectorDropDownButtonImageLocalScope.react"),{isLeftNavCollapsed:b,fragmentKey:f,selectedLocalScopesCount:g})}p.displayName=p.name+" [from "+f.id+"]";function q(a){a=a.buttonLabel;var b=m(c("BizKitRouteContext"));b=b.isMultiAssetSelectionEnabled;return l.jsx(c("BizKitLeftNavText.react"),{display:"truncate",size:b?"header4":"value",weight:"normal",children:a})}q.displayName=q.name+" [from "+f.id+"]";function r(a){a=a.isDown;var b=h("1345482"),d=h("1345482");return l.jsx(c("Image.react"),{className:"x3zn8ph x35vizs x2lah0s",src:a?b:d})}r.displayName=r.name+" [from "+f.id+"]";function s(a){return(j||(j=c("stylex")))(o.menu,a?o.menuOpen:o.menuClosed,o.menuNextTheme,a?o.menuOpenNextTheme:o.menuClosedNextTheme)}e=l.forwardRef(function(a,e){var f=a.globalScopeFragment,g=a.isDropDownOpened,h=a.onClick,k=a.isLeftNavCollapsed;babelHelpers.objectWithoutPropertiesLoose(a,["globalScopeFragment","isDropDownOpened","onClick","isLeftNavCollapsed"]);a=c("useHoverState")();var t=a.isHovered,u=a.onMouseEnter;a=a.onMouseLeave;var v=d("RelayHooks").useFragment(i!==void 0?i:i=b("BizKitUnifiedSelectorDropDownButton_globalScopeFragment.graphql"),f),w=n(function(){var a,b=new Map();a=v?c("filterNulls")((a=v.asset_lists)==null?void 0:(a=a.flatMap(function(a){return a.objects}))==null?void 0:a.flatMap(function(a){return a==null?void 0:a.nodes})).filter(function(a){return a.asset_id!=null}):[];a.forEach(function(a){b.set(a.asset_id,a)});return b},[v]);f=m(d("hero-tracing-placeholder").HeroCurrentInteractionForLoggingContext);f=(f=(f=f.current)==null?void 0:f.interactionUUID)!=null?f:d("BizKitAppHandler").getHeroTracingInteractionID();f!=null&&c("InteractionTracingMetrics").addMetadata(f,"selected_scopes_asset_count",w.size);f=m(c("BizKitRouteContext"));var x=f.isMultiAssetSelectionEnabled;f=c("useBizKitSelectedAssets")();var y=f.assets,z=f.assetID;f=f.assetType;var A=m(c("BizKitGlobalScopeSelectorContext")),B=A.tempSelectedAssets,C=n(function(){return c("gkx")("21058")&&!x?c("filterNulls")(B):c("filterNulls")(y)},[y,x,B]),D=n(function(){return c("filterNulls")(C.filter(function(a){return a.type==="PAGE"||a.type==="WHATSAPP_BUSINESS_ACCOUNT"||a.type==="INSTAGRAM_ACCOUNT_V2"}))},[C]);d("BizKitUnifiedScopingLoggingUtils").logInitUnifiedSelectorLocalScope((A=z)!=null?A:"",f);var E=n(function(){return c("filterNulls")(D.map(function(a){return w==null?void 0:w.get(a.id)}))},[w,D]);z=c("useBizWebCurrentRouteName")();A=z==="BUSINESS_HOME"&&c("getShouldShowBizLevelHome")();var F=z==="SETTINGS"||E.length===0||A;f=l.jsx("div",{className:(j||(j=c("stylex")))(k&&x?o.profilePictureNavCollapsed:o.profilePicture),children:l.jsx(p,{selectedGlobalScope:v,selectedLocalScopes:E,selectedLocalScopesCount:D.length,showGlobalScopeData:F,isLeftNavCollapsed:k})});z="xrmyp2";if(x)switch(D.length){case 0:case 1:z="xrmyp2";break;case 2:z="x1exxlbk";break;default:z="x9fslfs"}A=n(function(){if(F)return v==null?void 0:v.scope_name;else if(x)return E.map(function(a){return a.name}).join(", ");else{var a;return(a=w.get(D[0].id))==null?void 0:a.name}},[x,E,w,D,v==null?void 0:v.scope_name,F]);z=l.jsx("div",{className:z,children:l.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[l.jsx(q,{buttonLabel:A}),x&&D.length>=2&&l.jsx(c("GeoTooltip.react"),{position:"right",content:(k=c("intlList")(E.map(function(a){return a.name})))!=null?k:"",children:l.jsx(c("GeoBaseText.react"),{color:"value",display:"block",isDisabled:!0,size:"valueDescription",children:D.length+" selected"})})]})});A=l.jsx(r,{isDown:g||t});return l.jsx("div",{className:"x6ikm8r x10wlt62 xh8yej3",onMouseEnter:u,onMouseLeave:a,ref:e,children:l.jsx(c("GeoLink.react"),{onClick:h,showUnderline:"never","data-testid":void 0,children:l.jsxs(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:s(g),children:[f,z,A]})})})});a=e;g["default"]=a}),98);
-----
ScopingPrioritiesGating",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("gkx")("9067")}g.getIsLogoutAndBACreationEnabled=a}),98);
-----