AdAccountClaimActions.brands",["AdsDataAtom","AdsInterfacesLogger","AppConstants.brands","AppLogger.brands","AudienceManagerLoggingEvents","BizKitSettingsClientFalcoEvent","BrandAdAccountAPIConverter.brands","BusinessManagerGraphAPI.brands","ErrorAPIConverter.brands","GenericAssetMutationEvents.brands","cr:20368","dispatchUnifiedNavigationScopeChangeAction","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;b("cr:20368");function a(a,b,e){d("GenericAssetMutationEvents.brands").startUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_START,brandID:a,adAccountID:b});c("BizKitSettingsClientFalcoEvent").log(function(){return{event_name:"unified_add_asset_claim_asset_start",flow_source:"business_manager",flow_type:"claim_asset",asset_type:c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT,asset_id_from_client:b,business_id:a}});var g=d("BrandAdAccountAPIConverter.brands").getDAOParamsForClaim(b,function(c){return j(a,b,e,c)});c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("owned_ad_accounts").post(g),function(c){return i(a,b,e,c)},function(c){return j(a,b,e,c)})}function i(a,b,e,f){e&&c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_MOVE_AD_ACCOUNT_TO_BUSINESS_SUCCESS},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_claim_success",{brandID:a,adAccountID:b}),c("BizKitSettingsClientFalcoEvent").log(function(){return{event_name:"unified_add_asset_claim_asset_success",flow_source:"business_manager",flow_type:"claim_asset",asset_type:c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT,asset_id_from_client:b,business_id:a}}),(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_SUCCESS,brandID:a,adAccountID:b,status:f.access_status}),c("dispatchUnifiedNavigationScopeChangeAction")(a,null,{localScopeID:b,localScopeType:"ad-account"}),d("GenericAssetMutationEvents.brands").succeedUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function j(a,b,e,f){var g=d("ErrorAPIConverter.brands").fromAPI(f).msg;if(e){c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_MOVE_AD_ACCOUNT_TO_BUSINESS_FAILURE,data:(e={},e.targeting_ui_event_data=JSON.stringify({errorMessage:g}),e)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.ERROR,"ad_account_claim_failure",{brandID:a,errorMessage:g});c("BizKitSettingsClientFalcoEvent").log(function(){return{event_name:"unified_add_asset_claim_asset_failure",flow_source:"business_manager",flow_type:"claim_asset",asset_type:c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT,asset_id_from_client:b,business_id:a,extra_information:{error_message:g}}});(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_ERROR,brandID:a,adAccountID:b,errorMessage:g,errorObject:f});d("GenericAssetMutationEvents.brands").failUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}g.startClaimAdAccount=a}),98);
-----
AdsPEBIGAdAccountSelectorContainer.react",["cssVar","fbt","AdsAccountStore","AdsAccountUtils","AdsFluxHooks","AdsPERouterHelper","AdsPEViewportDimensionsProvider","AdsReportBuilderAdAccountCountInBusinessDataProvider","AdsReportBuilderEntryPointEventSources","AdsReportBuilderRoutingActions","BIGAdAccountSelector.react","BusinessAssetGrouping.brands","XAdsPEController","XAdsReportBuilderController","adsCreateSelector","adsPENavStateSelector","dispatchUnifiedNavigationScopeChangeAction","gkx","goURI","isStringNullOrEmpty","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");b=c("AdsReportBuilderAdAccountCountInBusinessDataProvider").toFluxSelector();var l=600,m=300,n=l+270,o={buttonWidth:{maxWidth:"x256u9z",$$css:!0}},p=c("adsCreateSelector")([b,c("AdsAccountStore").getSelectedBusinessID,c("AdsAccountStore").getSelectedAccountID,c("AdsAccountStore").getSelectedAccount,c("adsPENavStateSelector"),c("AdsPEViewportDimensionsProvider").toFluxSelector()],function(a,b,c,e,f,g){return{adAccountCountInBusiness:a,businessID:b!==d("BusinessAssetGrouping.brands").NULL_BIZ_ID?b:null,selectedAccountID:c,selectedAccountLoadObject:e,navState:f,dimensions:g}},{name:f.id+".adsPEBIGAdAccountSelectorContainerSelector"});function a(a){a=a.hideBusinessSection;var b=d("AdsFluxHooks").useAdsSelector(p);function e(){var a=b.selectedAccountID,d=b.selectedAccountLoadObject;return a==null?i._("No Account Selected"):d.match({loading:function(){return k.jsx("span",{"data-testid":void 0,children:i._("Loading...")})},error:function(){return i._("{id}",[i._param("id",a)])},loaded:function(a){a=c("AdsAccountUtils").getUIName(a,!0);return k.jsx("span",{children:a})}})}e.displayName=e.name+" [from "+f.id+"]";function g(a,d,e){var f=b.navState;if((f==null?void 0:f.tool)==="REPORTING"&&c("gkx")("21461")){f=c("XAdsReportBuilderController").getURIBuilder().setInt("act",a);d!=null&&f.setFBID("business_id",d);return f.getURI()}f=c("XAdsPEController").getURIBuilder().setInt("act",a);d!=null&&(f.setFBID("business_id",d),e!=null&&f.setFBID("global_scope_id",e));return f.getURI()}function h(a,e,f){f===void 0&&(f=null);var g=b.navState;if((g==null?void 0:g.tool)==="REPORTING")d("AdsReportBuilderRoutingActions").navigateWithParams({accountID:a,businessID:e});else{g=c("AdsPERouterHelper").getRouteBuilder().adAccountID(a).clearBusinessID().clearGlobalScopeID().on(function(a){c("isStringNullOrEmpty")(e)||(a.businessID(e),c("isStringNullOrEmpty")(f)||a.globalScopeID(f));return a}).clearFilters().clearAllSelectedIDs().clearAllPages().clearSelectedReportID().clearSelectedComponentID().addReportBuilderEventSource(c("AdsReportBuilderEntryPointEventSources").ACCOUNT_SELECTOR);c("goURI")(g.getURI(),!0)}c("dispatchUnifiedNavigationScopeChangeAction")(e,f,{localScopeID:a,localScopeType:"ad-account"})}var j=parseInt("360",10),q=l,r=n-b.dimensions.height;if(r>0){r=l-r;q=r>m?r:m}return k.jsx(c("BIGAdAccountSelector.react"),{adAccountCountInBusiness:b.adAccountCountInBusiness,businessID:b.businessID,flyoutWidth:j,getAccountURL:g,hideBusinessSection:a,includeCreativeAccounts:!1,maxButtonWidth:o.buttonWidth,maxListHeight:q,renderLabel:e,selectedAccountID:b.selectedAccountID,shouldCheckForIOS14Account:!1,showCurrentBusinessAccountsOnly:!1,suppressed:!0,onAccountSelected:h})}a.displayName=a.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),226);
-----
BusinessUnifiedScopingLocalScopeSelector.react",["fbt","AdsManagerQPLUserFlowLogger","BusinessUnifiedNavigationGlobalScopeSelectorAction","BusinessUnifiedNavigationLogger","BusinessUnifiedScopingLocalSearchableSelector.react","BusinessUnifiedScopingLocalSelectorSearchSource","GeoButton.react","Image.react","RelayFBEnvironment","RelayHooks","dispatchUnifiedNavigationScopeChangeAction","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useRef,l={canSelectGlobalAccount:!1,emptyResultContent:h._("No results found"),minMenuWidth:300,reloadNavigationDataOnSelect:!0,showImage:!1,includeAllContainedAssetsIfBusinessAdmin:!1,includeProfilePlusDelegatePages:!1,isDisabled:!1,useGeoSelectorButton:!1};function m(a){var b,e=k(null),g=babelHelpers["extends"]({},l,a),i=d("RelayHooks").useRelayEnvironment();i=d("BusinessUnifiedScopingLocalSelectorSearchSource").createLocalScopeSelectorSearchSource(i,{currentGlobalScope:g.globalScope,assetTypes:g.assetTypes,showImage:g.showImage,canSelectGlobal:g.canSelectGlobalAccount,includeAllContainedAssetsIfBusinessAdmin:g.includeAllContainedAssetsIfBusinessAdmin,includeProfilePlusDelegatePages:g.includeProfilePlusDelegatePages});function m(b){if(b!=null){var d=b.getAuxiliaryData(),e=d.assetID,h=d.assetType,i=d.businessID,j=d.globalScopeID,k=d.globalScopeName;d=d.globalScopeType;j!==g.globalScope.globalScopeID&&c("BusinessUnifiedNavigationGlobalScopeSelectorAction").dispatch({globalScopeType:d,globalScopeID:j,globalScopeName:k,businessID:i},{line:"147",module:"BusinessUnifiedScopingLocalScopeSelector.react.js",moduleID:f.id});g.reloadNavigationDataOnSelect&&c("dispatchUnifiedNavigationScopeChangeAction")(i,j,{localScopeID:e,localScopeType:h});c("BusinessUnifiedNavigationLogger").log("local_scope_selector_click","local_scope_selector_open",{localScopeIdTo:e,localScopeTypeTo:h,globalScopeIdTo:j,globalScopeTypeTo:r(d),selectorStyle:"new_unified_scoping"});a.onSelect(b)}}function n(){c("BusinessUnifiedNavigationLogger").log("local_scope_selector_show_all","local_scope_selector_open",{selectorStyle:"new_unified_scoping"})}function o(){g.onClose&&g.onClose(),p()}function p(){c("BusinessUnifiedNavigationLogger").log("local_scope_selector_close","local_scope_selector_open",{selectorStyle:"new_unified_scoping"})}function q(){c("BusinessUnifiedNavigationLogger").log("local_scope_selector_open","app_init",{selectorStyle:"new_unified_scoping"}),d("AdsManagerQPLUserFlowLogger").start(c("qpl")._(270206296,"122"))}function r(a){switch(a){case"business":return"business";case"personal":return"personal";case"business_asset_group":return"bag";default:return null}}var s=g.selectedEntry&&g.selectedEntry.getPhoto();s=g.showImage&&s!=null&&s!==""?j.jsx(c("Image.react"),{className:"x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1c4vz4f x2lah0s x1bhi7hv xvijh9v xhhsvwb x1ty9z65 xgzva0m x1n2onr6 x1ur6eac",src:s}):null;g.placeholder==null&&(g.placeholder=h._("Search for a business asset"));var t=g.assetTypes[0]==="business-unit"&&g.onCreateButtonClick!=null?j.jsx("div",{className:"xexx8yu x150jy0e x18d9i69 x1e558r4 x1gslohp",children:j.jsx(c("GeoButton.react"),{label:h._("Create a Line of Business"),variant:"creation",width:"100%",onClick:function(){e.current&&e.current.close(),g.onCreateButtonClick&&g.onCreateButtonClick()}})}):null;return j.jsx("div",{style:{width:g.minMenuWidth},children:j.jsx(c("BusinessUnifiedScopingLocalSearchableSelector.react"),{addButtonTooltip:g.addButtonTooltip,assetTypes:g.assetTypes,createButton:t,"data-button-testid":(t=a["data-search-button-testid"])!=null?t:"","data-option-testid":(t=a["data-search-option-testid"])!=null?t:"","data-testid":void 0,emptySearchResultsContent:g.emptyResultContent,getURI:g.getURI,globalScope:g.globalScope,isDisabled:g.isLoading||g.isDisabled,isLoading:g.isLoading,media:s,menuLayerRef:e,minMenuWidth:g.minMenuWidth,shouldhideFooter:g.shouldhideFooter,useGeoSelectorButton:g.useGeoSelectorButton,value:g.selectedEntry,onClose:o,onOpen:q,onSeeMoreButtonClick:n,onSwitchGlobalAccountClick:g.onSwitchGlobalAccountClick,placeholder:g.placeholder,searchSource:i,viewAllURI:g.viewAllURI,onChange:m})})}m.displayName=m.name+" [from "+f.id+"]";function a(a){return j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:j.jsx(m,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LMPageSelectorContainer.react",["BusinessUnifiedScopingLocalScopeSelectorContainer.react","FluxContainer","GeoNextAMUtils","LMActions","LMConfigStore","LMOwnedPageListStore","URI","dispatchUnifiedNavigationScopeChangeAction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));a=i.Component;var k=d("GeoNextAMUtils").isGeoNextEnabled(),l=function(a,b,e){d("LMActions").dispatchActionFromView({businessID:b,globalScopeID:e,pageID:a,type:"lm.navigation.selected_page_change"}),c("dispatchUnifiedNavigationScopeChangeAction")(b,e,{localScopeID:a,localScopeType:"page"})},m=function(a){a=a.getAuxiliaryData();var b=a.assetID,c=a.businessID;a=a.globalScopeID;l(b,c,a)},n=function(a){a=a.getAuxiliaryData();var b=a.assetID,d=a.businessID;a=a.globalScopeID;return new(h||(h=c("URI")))(window.location.href).addQueryData({business_id:d,global_scope_id:a,page_id:b})};b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.getStores=function(){return[c("LMConfigStore"),c("LMOwnedPageListStore")]};b.calculateState=function(a){a=c("LMConfigStore").getState();a=a.parentPageID;var b=c("LMOwnedPageListStore").getForCurrentUser().map(function(a){return a.toArray()}).getValue()||[];b=[].concat(b);a!=null&&b.push(a);return{parentPageID:a}};var d=b.prototype;d.render=function(){return j.jsx(c("BusinessUnifiedScopingLocalScopeSelectorContainer.react"),{assetTypes:["page"],getURI:n,includeProfilePlusDelegatePages:!0,reloadNavigationDataOnSelect:!1,selectedID:this.state.parentPageID,showImage:!0,useGeoSelectorButton:k,onSelect:m})};return b}(a);e=c("FluxContainer").create(b);g["default"]=e}),98);
-----
AdsBLURI",["AdsBLLogEvents","AdsBLLogger","AdsBLRoutes","AdsInterfacesImmutableURI","BrandsAppConfigDynamicFields","URI","XBizWebCometBrandSafetyHubOverviewControllerRouteBuilder","adsBLSelectorGetRootID","dispatchUnifiedNavigationScopeChangeAction"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.setBlockListID=function(a){return this.__set("block_list_id",a)};e.setAllowListID=function(a){return this.__set("allow_list_id",a)};e.setNegativeKeywordsID=function(a){return this.__set("negative_keywords_id",a)};e.setBusinessID=function(a){return this.__set("business_id",a)};e.setGlobalScopeID=function(a){return this.__set("global_scope_id",a)};e.setSelectedSection=function(a){return this.__set("selected_section",a)};e.setAdAccountID=function(a){return this.__set("act",a)};e.setOverviewAdAccountID=function(a){return this.__set("ad_account_id",a)};e.setPlacementType=function(a){return this.__set("placement_type",a)};e.setPublisherListPlacementType=function(a){return this.__set("publisher_list_placement_type",a)};e.setPublisherListsPlacementType=function(a){return this.__set("publisher_lists_placement_type",a)};e.setFollowerCount=function(a){return this.__set("follower_count",a)};e.setPublisherListsFollowerCount=function(a){return this.__set("publisher_lists_follower_count",a)};e.setBlueVerified=function(a){return this.__set("blue_verified",a)};e.setPublisherListsBlueVerified=function(a){return this.__set("publisher_lists_blue_verified",a)};e.setPublisherListsLanguages=function(a){return this.__set("publisher_lists_languages",a.join(","))};e.setPublisherListSortType=function(a){return this.__set("publisher_list_sort_by",a)};e.setPublisherListsSortType=function(a){return this.__set("publisher_lists_sort_by",a)};e.setBlocklistSortType=function(a){return this.__set("block_lists_sort_by",a)};e.setAllowListsSortType=function(a){return this.__set("allow_lists_sort_by",a)};e.setSortType=function(a){return this.__set("sort_by",a)};e.setKeywordSortType=function(a){return this.__set("sort_by",a)};e.setSearchQuery=function(a){return this.__set("search_query",a)};e.setPublisherStatus=function(a){return this.__set("publisher_status",a)};e.clearPublisherStatus=function(){return this.__set("publisher_status",null)};e.setStartDate=function(a){return this.__set("start_date",a.toString())};e.setEndDate=function(a){return this.__set("end_date",a.toString())};e.setCreatorID=function(a){return this.__set("creator_id",a)};e.setSecondarySearchQuery=function(a){return this.__set("secondary_search_query",a)};e.clearAdAccountID=function(){return this.__set("act",null)};e.clearOverviewAdAccountID=function(){return this.__set("ad_account_id",null)};e.clearCreatorID=function(){return this.__set("creator_id",null)};e.clearStartDate=function(){return this.__set("start_date",null)};e.clearEndDate=function(){return this.__set("end_date",null)};b.getRouteName=function(a){return a[1][0]};e.navigate=function(b,e){var f,g=c("adsBLSelectorGetRootID")(),i=g.id;g=g.type;f=(f=this.__get("business_id"))!=null?f:g==="BUSINESS"?i:null;g=this.__get("global_scope_id");i=this.__get("act");var j=this.__get("allow_list_id"),k=this.__get("block_list_id"),l=null;i!=null?l={localScopeID:i,localScopeType:"ad-account"}:j!=null?l={localScopeID:j,localScopeType:"white-list"}:k!=null&&(l={localScopeID:k,localScopeType:"block-list"});if(c("BrandsAppConfigDynamicFields").businessCapabilities.can_use_brand_safety_hub_on_comet){k={business_id:(i=f)!=null?i:void 0,global_scope_id:(j=g)!=null?j:void 0,nav_ref:"brand_safety_hub_uri_redirect"};i=null;switch(this.__getRoute()){case c("AdsBLRoutes").OVERVIEW:i=c("XBizWebCometBrandSafetyHubOverviewControllerRouteBuilder").buildUri(babelHelpers["extends"]({},k))}if(i!=null){(h||(h=c("URI"))).goURIOnWindow(i);return}}c("dispatchUnifiedNavigationScopeChangeAction")(f,g,l);e!=null&&d("AdsBLLogger").log(c("AdsBLLogEvents").Navigation,{actionSource:e,newValue:this.toString()});a.prototype.navigate.call(this,b)};return b}(c("AdsInterfacesImmutableURI"));g["default"]=a}),98);
-----
AdAccountActions.brands",["ActiveContextActions.brands","AdAccountAPIConverter.brands","AdsDataAtom","AdsInterfacesLogger","AppConstants.brands","AppLogger.brands","AudienceManagerLoggingEvents","BrandAdAccountAPIConverter.brands","BusinessManagerGraphAPI.brands","ErrorAPIConverter.brands","GenericAssetMutationEvents.brands","ReauthDialogGraph.brands","asyncToGeneratorRuntime","dispatchUnifiedNavigationScopeChangeAction","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,e){d("GenericAssetMutationEvents.brands").startCreateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CREATE_START,brandID:a,clientAdAccountID:b});var g=d("BrandAdAccountAPIConverter.brands").getDAOParamsForCreate(e,r.bind(null,a,b,e));g.ad_account_created_from_bm_flag=!0;var i=function(){return d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("adaccount").post(g)};return d("ReauthDialogGraph.brands").requestWithReauthHandling(i,a).then(function(c){return o(a,b,g.funding_id,e,c)})["catch"](function(c){r(a,b,e,c)})}function e(a,b,c,d,e){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,g,i){d("GenericAssetMutationEvents.brands").startUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.REQUEST_START,brandID:a,clientAdAccountID:b});try{yield d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("client_ad_accounts").post({adaccount_id:"act_"+b,access_type:e,permitted_roles:g,permitted_tasks:i}),x(a,b)}catch(c){y(a,b,c);throw d("ErrorAPIConverter.brands").fromAPI(c).msg}});return i.apply(this,arguments)}function j(a,b){(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_START,brandID:a,adAccountID:b.id});var e=d("BrandAdAccountAPIConverter.brands").getDAOParamsForDelete(b,a,w.bind(null,a,b));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("adaccounts").remove(e),v.bind(null,a,b),w.bind(null,a,b))}function k(a,b,e){d("GenericAssetMutationEvents.brands").startUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_START,brandID:a,adAccountID:b});var g=d("BrandAdAccountAPIConverter.brands").getDAOParamsForClaim(b,s.bind(null,a,b,e));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("owned_ad_accounts").post(g),p.bind(null,a,b,e),s.bind(null,a,b,e))}function l(a,b,e,g,i,j,k,l,m){var o;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_edit_save_click",(o={adAccountID:b.id},o.raw_data=JSON.stringify({endAdvertiser:m}),o));d("GenericAssetMutationEvents.brands").startUpdateRequest(a,b.id,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.UPDATE_START,adAccount:b,brandID:a});o=m?m.id:null;o=d("AdAccountAPIConverter.brands").getDAOParamsForUpdate(b.id,e,g,i,j,k,l,o,t.bind(null,b,a));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).adaccount(b.id).post(o),n.bind(null,b,e,m,a,g,i,j,k,l),t.bind(null,b,a))}function m(a,b,e){d("GenericAssetMutationEvents.brands").startDeleteRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_REQUEST_START,brandID:a,adAccountID:b,requestID:e});var g=d("BrandAdAccountAPIConverter.brands").getDAOParamsForDeleteRequest(b,u.bind(null,b,a,e));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("adaccounts").remove(g),q.bind(null,b,a,e),u.bind(null,b,a,e))}function n(a,b,e,f,g,i,j,k,l,m){c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_edit_save_success",{adAccountID:a.id}),(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.UPDATE_SUCCESS,adAccount:a,brandID:f,newName:b,newEndAdvertiser:e}),d("GenericAssetMutationEvents.brands").succeedUpdateRequest(f,a.id,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function o(a,b,e,f,g){var i=g.account_id;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_create_success",{brandID:a,adAccountID:i,app_id_ios14:f.appID,account_type:f.accountType});(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CREATE_SUCCESS,brandID:a,clientAdAccountID:b,adAccountID:i});h.handleUpdateFromViewAction(d("ActiveContextActions.brands").getNavigateToAssetAction(c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT,i));c("dispatchUnifiedNavigationScopeChangeAction")(a,null,{localScopeID:i,localScopeType:"ad-account"});d("GenericAssetMutationEvents.brands").succeedCreateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);return{accountID:g.account_id,fundingID:e,seerAdAccountRestrictedBySoftDescriptorChallenge:g.seer_ad_account_restricted_by_soft_desc_challenge,softDescChallengeCredentialId:g.soft_desc_challenge_credential_id,softDescChallengeLocalizedAuthAmount:g.soft_desc_challenge_localized_auth_amount}}function p(a,b,e,f){e&&c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_MOVE_AD_ACCOUNT_TO_BUSINESS_SUCCESS},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_claim_success",{brandID:a,adAccountID:b}),(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_SUCCESS,brandID:a,adAccountID:b,status:f.access_status}),c("dispatchUnifiedNavigationScopeChangeAction")(a,null,{localScopeID:b,localScopeType:"ad-account"}),d("GenericAssetMutationEvents.brands").succeedUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function q(a,b,e,f){(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_REQUEST_SUCCESS,adAccountID:a,brandID:b,requestID:e}),d("GenericAssetMutationEvents.brands").succeedDeleteRequest(b,a,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function r(a,b,e,f){var g=d("ErrorAPIConverter.brands").fromAPI(f),i=g.msg;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.ERROR,"ad_account_create_failure",{brandID:a,errorMessage:i,errorObject:f,error_type:g.errorType,error_code:g.code,error_sub_code:f.error_subcode,app_id_ios14:e.appID,account_type:e.accountType});(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CREATE_ERROR,brandID:a,clientAdAccountID:b,errorMessage:i,errorObject:f});d("GenericAssetMutationEvents.brands").failCreateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function s(a,b,e,f){var g=d("ErrorAPIConverter.brands").fromAPI(f).msg;if(e){c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_MOVE_AD_ACCOUNT_TO_BUSINESS_FAILURE,data:(e={},e.targeting_ui_event_data=JSON.stringify({errorMessage:g}),e)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.ERROR,"ad_account_claim_failure",{brandID:a,errorMessage:g});(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_ERROR,brandID:a,adAccountID:b,errorMessage:g,errorObject:f});d("GenericAssetMutationEvents.brands").failUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function t(a,b,e){var f=d("ErrorAPIConverter.brands").toObject(e);f=d("ErrorAPIConverter.brands").fromAPI(f).msg;(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.UPDATE_ERROR,adAccount:a,errorMessage:f});d("GenericAssetMutationEvents.brands").failUpdateRequest(b,a.id,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_edit_save_failure",{adAccountID:a.id,error_data:JSON.stringify(e)})}function u(a,b,e,f){f=d("ErrorAPIConverter.brands").toObject(f);(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").ACTION.APP_NOTICE_ERROR_ADD,error:f});h.handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_REQUEST_ERROR,brandID:b,adAccountID:a,requestID:e});d("GenericAssetMutationEvents.brands").failDeleteRequest(b,a,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function v(a,b){c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_delete_success",{brandID:a,adAccountID:b.id}),(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_SUCCESS,brandID:a,adAccountID:b.id})}function w(a,b,e){var f=d("ErrorAPIConverter.brands").fromAPI(e);c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.ERROR,"ad_account_delete_failure",{brandID:a,adAccountID:b.id,errorMessage:f.msg});(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").ACTION.APP_NOTICE_ERROR_ADD,error:e});h.handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_ERROR,adAccountID:b.id,brandID:a,errorMessage:f.msg})}function x(a,b){c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_request_access_success",{brandID:a,adAccountID:b}),(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.REQUEST_SUCCESS,brandID:a,clientAdAccountID:b,adAccountID:b}),d("ActiveContextActions.brands").navigateToAssetDetail(c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT,b),d("GenericAssetMutationEvents.brands").succeedUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function y(a,b,e){var f=d("ErrorAPIConverter.brands").fromAPI(e),g=f.msg;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_request_access_failure",{brandID:a,adAccountID:b,errorMessage:g,errorObject:e,error_type:f.errorType,error_code:f.code,error_sub_code:e.error_subcode});(h||(h=c("AdsDataAtom"))).handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.REQUEST_ERROR,brandID:a,clientAdAccountID:b,errorMessage:g,errorObject:e});d("GenericAssetMutationEvents.brands").failUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}g.startCreateAdAccount=a;g.startRequestingAdAccount=e;g.removeAdAccountFromBrand=j;g.startClaimAdAccount=k;g.startUpdateAdAccount=l;g.startDeleteAdAccountRequest=m}),98);
-----
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);
-----
dispatchUnifiedNavigationScopeChangeAction",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){}f["default"]=a}),66);
-----
AdsPEBIGAdAccountSelectorContainer.react",["cssVar","fbt","AdsAccountSelectDataAction","AdsAccountSelectorChangeDataAction","AdsAccountStore","AdsAccountUtils","AdsFluxHooks","AdsPERouterHelper","AdsPEViewportDimensionsProvider","AdsReportBuilderAdAccountCountInBusinessDataProvider","AdsReportBuilderEntryPointEventSources","AdsReportBuilderRoutingActions","BIGAdAccountSelector.react","BusinessAssetGrouping.brands","XAdsPEController","XAdsReportBuilderController","adsCreateSelector","adsPENavStateSelector","dispatchUnifiedNavigationScopeChangeAction","gkx","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=c("AdsReportBuilderAdAccountCountInBusinessDataProvider").toFluxSelector();var k=600,l=300,m=k+270,n={buttonWidth:{maxWidth:"x256u9z",$$css:!0}},o=c("adsCreateSelector")([a,c("AdsAccountStore").getSelectedBusinessID,c("AdsAccountStore").getSelectedAccountID,c("AdsAccountStore").getSelectedAccount,c("adsPENavStateSelector"),c("AdsPEViewportDimensionsProvider").toFluxSelector()],function(a,b,c,e,f,g){return{adAccountCountInBusiness:a,businessID:b!==d("BusinessAssetGrouping.brands").NULL_BIZ_ID?b:null,selectedAccountID:c,selectedAccountLoadObject:e,navState:f,dimensions:g}},{name:f.id+".adsPEBIGAdAccountSelectorContainerSelector"});b=function(a){var b=d("AdsFluxHooks").useAdsSelector(o);function e(){var a=b.selectedAccountID,d=b.selectedAccountLoadObject;return a==null?i._("No Account Selected"):d.match({loading:function(){return j.jsx("span",{"data-testid":void 0,children:i._("Loading...")})},error:function(){return i._("{id}",[i._param("id",a)])},loaded:function(a){a=c("AdsAccountUtils").getUIName(a,!0);return j.jsx("span",{children:a})}})}e.displayName=e.name+" [from "+f.id+"]";function g(a,d,e){var f=b.navState;if((f==null?void 0:f.tool)==="REPORTING"&&c("gkx")("1534289")){f=c("XAdsReportBuilderController").getURIBuilder().setInt("act",a);d!=null&&f.setFBID("business_id",d);return f.getURI()}f=c("XAdsPEController").getURIBuilder().setInt("act",a);d!=null&&(f.setFBID("business_id",d),e!=null&&f.setFBID("global_scope_id",e));return f.getURI()}function h(a,b,d){d===void 0&&(d=null);c("AdsAccountSelectorChangeDataAction").dispatch({accountID:a},{line:"180",module:"AdsPEBIGAdAccountSelectorContainer.react.js"});var e=function(){c("AdsAccountSelectDataAction").dispatch({accountID:a,businessID:b},{line:"183",module:"AdsPEBIGAdAccountSelectorContainer.react.js"})};p(a,b,d,e)}function p(a,e,f,g){var h=b.navState;if((h==null?void 0:h.tool)==="REPORTING")d("AdsReportBuilderRoutingActions").navigateWithParams({accountID:a,businessID:e});else{h=c("AdsPERouterHelper").getRouteBuilder().adAccountID(a).clearBusinessID().clearGlobalScopeID().on(function(a){e!=null&&e!==""&&(a.businessID(e),f!=null&&f!==""&&a.globalScopeID(f));return a}).clearFilters().clearAllSelectedIDs().clearAllPages().clearSelectedReportID().clearSelectedComponentID().addReportBuilderEventSource(c("AdsReportBuilderEntryPointEventSources").ACCOUNT_SELECTOR).action(g);h.navigate()}c("dispatchUnifiedNavigationScopeChangeAction")(e,f,{localScopeID:a,localScopeType:"ad-account"})}var q=parseInt("360",10),r=k,s=m-b.dimensions.height;if(s>0){s=k-s;r=s>l?s:l}return j.jsx(c("BIGAdAccountSelector.react"),{adAccountCountInBusiness:b.adAccountCountInBusiness,businessID:b.businessID,flyoutWidth:q,getAccountURL:g,hideBusinessSection:a.hideBusinessSection,includeCreativeAccounts:!1,maxButtonWidth:n.buttonWidth,maxListHeight:r,renderLabel:e,selectedAccountID:b.selectedAccountID,shouldCheckForIOS14Account:!1,showCurrentBusinessAccountsOnly:!1,suppressed:!0,onAccountSelected:h})};e=d("AdsFluxHooks").adsFluxContainer(b,null,{containerName:f.id});g["default"]=e}),98);
-----
BusinessUnifiedNavigationAccountSelectorV2.react",["fbt","BusinessUnifiedNavigationConstants","BusinessUnifiedNavigationGlobalScopeSelectorAction","BusinessUnifiedNavigationLogger","BusinessUnifiedScopingGlobalScopeSelector.react","BusinessUnifiedScopingGlobalScopeSelectorSearchSource","BusinessUnifiedScopingUtils","QPLUserFlow","RelayFBEnvironment","RelayHooks","dispatchUnifiedNavigationScopeChangeAction","goURI","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=i.createRef(),k=i.createRef(),l=i.createRef();function m(a){var b=d("RelayHooks").useRelayEnvironment();b=d("BusinessUnifiedScopingGlobalScopeSelectorSearchSource").createGlobalScopeSelectorSearchSource(b,{assetOrderBy:(b=a.assetOrderBy)!=null?b:d("BusinessUnifiedNavigationConstants").ASSET_ORDER_BY,assetTypes:(b=a.assetTypes)!=null?b:d("BusinessUnifiedNavigationConstants").SUPPORTED_ASSET_TYPES,contextURI:window.location.href,globalScopesOrderBy:(b=a.globalScopesOrderBy)!=null?b:d("BusinessUnifiedNavigationConstants").GLOBAL_SCOPES_ORDER_BY,globalScopeTypes:(b=a.globalScopeTypes)!=null?b:d("BusinessUnifiedNavigationConstants").GLOBAL_SCOPE_TYPES,includeProfilePlusDelegatePages:(b=a.includeProfilePlusDelegatePages)!=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:k,nuxStep3Ref:l,personalScopeExcludeBusinessOwnedAssets:(b=a.personalScopeExcludeBusinessOwnedAssets)!=null?b:d("BusinessUnifiedNavigationConstants").PERSONAL_SCOPE_EXCLUDE_BUSINESS_OWNED_ASSETS,scopeIDs:null,selectedAccountData:a.selectedAccountData,selectedBusinessID:a.selectedBusinessID,selectedGlobalScopeID:a.selectedGlobalScopeID,selectedGlobalScopeType:a.selectedGlobalScopeType});function e(a){switch(a){case"business":return"business";case"personal":return"personal";case"business_asset_group":return"business_asset_group";default:return null}}function f(b){if(b!=null){c("QPLUserFlow").endSuccess(c("qpl")._(270206296,"122"),{annotations:{string:{source:"NEW_BUSINESS"}}});var f=null,g=e(b.getType());if(g==="business_asset_group"){var h;f=(h=b.getAuxiliaryData())==null?void 0:h.businessID}else g==="business"&&(f=b.getUniqueID());h={assetLists:(h=(h=b.getAuxiliaryData())==null?void 0:h.assetLists)!=null?h:[],businessID:f,globalScopeType:g,globalScopeID:b.getUniqueID(),globalScopeName:b.getTitle(),redirectionURI:b.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:a.selectedGlobalScopeID,globalScopeIdTo:h.globalScopeID,globalScopeType:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(a.selectedGlobalScopeType),globalScopeTypeTo:d("BusinessUnifiedScopingUtils").convertGlobalScopeType(h.globalScopeType),selectorStyle:"new_unified_scoping"});a.onSelect!=null?(a.onSelect(h),c("BusinessUnifiedNavigationGlobalScopeSelectorAction").dispatch({globalScopeType:h.globalScopeType,globalScopeID:h.globalScopeID,globalScopeName:h.globalScopeName,businessID:h.businessID},{line:"256",module:"BusinessUnifiedNavigationAccountSelectorV2.react.js"}),c("dispatchUnifiedNavigationScopeChangeAction")(h.businessID,h.globalScopeID,null)):h.redirectionURI!==""&&c("goURI")(h.redirectionURI)}}return i.jsx("div",{className:"_3-95",ref:a.wrapperRef,children:i.jsx(c("BusinessUnifiedScopingGlobalScopeSelector.react"),{enableBusinessAssetGroups:a.enableBusinessAssetGroups,isCategorized:!0,isMenuExpanded:a.isMenuExpanded,isMenuShown:a.isMenuShown,logoutURI:a.selectedAccountData.logoutURI,nuxRefs:{nuxStep1Ref:j,nuxStep2Ref:k,nuxStep3Ref:l},placeholder:h._("u641cu7d22u5e10u6237u548cu5546u52a1u7ba1u7406u5e73u53f0"),ratio:"circle",searchSource:b,selectedAccountData:a.selectedAccountData,showNux:a.selectedAccountData.showNux,toolType:a.toolType,variant:a.variant,onChange:f,onClose:n,onCollapsedChange:a.onCollapsedChange,onOpen:o})})}m.displayName=m.name+" [from "+f.id+"]";function n(){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 o(){c("BusinessUnifiedNavigationLogger").log("global_scope_selector_open","app_init",{selectorStyle:"new_unified_scoping"})}function a(a){return i.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:i.jsx(m,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsBLURI",["AdsBLLogEvents","AdsBLLogger","AdsInterfacesImmutableURI","adsBLSelectorGetRootID","dispatchUnifiedNavigationScopeChangeAction"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.setBlockListID=function(a){return this.__set("block_list_id",a)};e.setAllowListID=function(a){return this.__set("allow_list_id",a)};e.setNegativeKeywordsID=function(a){return this.__set("negative_keywords_id",a)};e.setBusinessID=function(a){return this.__set("business_id",a)};e.setGlobalScopeID=function(a){return this.__set("global_scope_id",a)};e.setSelectedSection=function(a){return this.__set("selected_section",a)};e.setAdAccountID=function(a){return this.__set("act",a)};e.setOverviewAdAccountID=function(a){return this.__set("ad_account_id",a)};e.setPlacementType=function(a){return this.__set("placement_type",a)};e.setPublisherListPlacementType=function(a){return this.__set("publisher_list_placement_type",a)};e.setFollowerCount=function(a){return this.__set("follower_count",a)};e.setBlueVerified=function(a){return this.__set("blue_verified",a)};e.setPublisherListSortType=function(a){return this.__set("publisher_list_sort_by",a)};e.setBlocklistSortType=function(a){return this.__set("block_lists_sort_by",a)};e.setAllowListsSortType=function(a){return this.__set("allow_lists_sort_by",a)};e.setSortType=function(a){return this.__set("sort_by",a)};e.setKeywordSortType=function(a){return this.__set("sort_by",a)};e.setSearchQuery=function(a){return this.__set("search_query",a)};e.setPublisherStatus=function(a){return this.__set("publisher_status",a)};e.clearPublisherStatus=function(){return this.__set("publisher_status",null)};e.setStartDate=function(a){return this.__set("start_date",a.toString())};e.setEndDate=function(a){return this.__set("end_date",a.toString())};e.setCreatorID=function(a){return this.__set("creator_id",a)};e.setSecondarySearchQuery=function(a){return this.__set("secondary_search_query",a)};e.clearAdAccountID=function(){return this.__set("act",null)};e.clearOverviewAdAccountID=function(){return this.__set("ad_account_id",null)};e.clearCreatorID=function(){return this.__set("creator_id",null)};e.clearStartDate=function(){return this.__set("start_date",null)};e.clearEndDate=function(){return this.__set("end_date",null)};b.getRouteName=function(a){return a[1][0]};e.navigate=function(b,e){var f,g=c("adsBLSelectorGetRootID")(),h=g.id;g=g.type;f=(f=this.__get("business_id"))!=null?f:g==="BUSINESS"?h:null;g=this.__get("global_scope_id");h=this.__get("act");var i=this.__get("allow_list_id"),j=this.__get("block_list_id"),k=null;h!=null?k={localScopeID:h,localScopeType:"ad-account"}:i!=null?k={localScopeID:i,localScopeType:"white-list"}:j!=null&&(k={localScopeID:j,localScopeType:"block-list"});c("dispatchUnifiedNavigationScopeChangeAction")(f,g,k);e!=null&&d("AdsBLLogger").log(c("AdsBLLogEvents").Navigation,{actionSource:e,newValue:this.toString()});a.prototype.navigate.call(this,b)};return b}(c("AdsInterfacesImmutableURI"));g["default"]=a}),98);
-----
AdAccountActions.brands",["ActiveContextActions.brands","AdAccountAPIConverter.brands","AdsDataAtom","AdsInterfacesLogger","AppConstants.brands","AppLogger.brands","AudienceManagerLoggingEvents","BrandAdAccountAPIConverter.brands","BusinessManagerGraphAPI.brands","ErrorAPIConverter.brands","GenericAssetMutationEvents.brands","dispatchUnifiedNavigationScopeChangeAction","promiseDone","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){d("GenericAssetMutationEvents.brands").startCreateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CREATE_START,brandID:a,clientAdAccountID:b});var g=d("BrandAdAccountAPIConverter.brands").getDAOParamsForCreate(e,p.bind(null,a,b,e));g.ad_account_created_from_bm_flag=!0;var h=d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("adaccount").post(g);return h.then(m.bind(null,a,b,g.funding_id,e),p.bind(null,a,b,e))}function e(a,e,g,h,i){return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:d("GenericAssetMutationEvents.brands").startUpdateRequest(a,e,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.REQUEST_START,brandID:a,clientAdAccountID:e});j.prev=2;j.next=5;return b("regeneratorRuntime").awrap(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("client_ad_accounts").post({adaccount_id:"act_"+e,access_type:g,permitted_roles:h,permitted_tasks:i}));case 5:v(a,e);j.next=12;break;case 8:j.prev=8;j.t0=j["catch"](2);w(a,e,j.t0);throw d("ErrorAPIConverter.brands").fromAPI(j.t0).msg;case 12:case"end":return j.stop()}},null,this,[[2,8]])}function h(a,b){c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_START,brandID:a,adAccountID:b.id});var e=d("BrandAdAccountAPIConverter.brands").getDAOParamsForDelete(b,a,u.bind(null,a,b));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("adaccounts").remove(e),t.bind(null,a,b),u.bind(null,a,b))}function i(a,b,e){d("GenericAssetMutationEvents.brands").startUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_START,brandID:a,adAccountID:b});var g=d("BrandAdAccountAPIConverter.brands").getDAOParamsForClaim(b,q.bind(null,a,b,e));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("owned_ad_accounts").post(g),n.bind(null,a,b,e),q.bind(null,a,b,e))}function j(a,b,e,g,h,i,j,k,m){var n;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_edit_save_click",(n={adAccountID:b.id},n.raw_data=JSON.stringify({endAdvertiser:m}),n));d("GenericAssetMutationEvents.brands").startUpdateRequest(a,b.id,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.UPDATE_START,adAccount:b,brandID:a});n=m?m.id:null;n=d("AdAccountAPIConverter.brands").getDAOParamsForUpdate(b.id,e,g,h,i,j,k,n,r.bind(null,b,a));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).adaccount(b.id).post(n),l.bind(null,b,e,m,a,g,h,i,j,k),r.bind(null,b,a))}function k(a,b,e){d("GenericAssetMutationEvents.brands").startDeleteRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_REQUEST_START,brandID:a,adAccountID:b,requestID:e});var g=d("BrandAdAccountAPIConverter.brands").getDAOParamsForDeleteRequest(b,s.bind(null,b,a,e));c("promiseDone")(d("BusinessManagerGraphAPI.brands").get(f.id).object("brand",a).edge("adaccounts").remove(g),o.bind(null,b,a,e),s.bind(null,b,a,e))}function l(a,b,e,f,g,h,i,j,k,l){c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_edit_save_success",{adAccountID:a.id}),c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.UPDATE_SUCCESS,adAccount:a,brandID:f,newName:b,newEndAdvertiser:e}),d("GenericAssetMutationEvents.brands").succeedUpdateRequest(f,a.id,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function m(a,b,e,f,g){var h=g.account_id;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_create_success",{brandID:a,adAccountID:h,app_id_ios14:f.appID,account_type:f.accountType});c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CREATE_SUCCESS,brandID:a,clientAdAccountID:b,adAccountID:h});c("AdsDataAtom").handleUpdateFromViewAction(d("ActiveContextActions.brands").getNavigateToAssetAction(c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT,h));c("dispatchUnifiedNavigationScopeChangeAction")(a,null,{localScopeID:h,localScopeType:"ad-account"});d("GenericAssetMutationEvents.brands").succeedCreateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);return{accountID:g.account_id,fundingID:e,seerAdAccountRestrictedBySoftDescriptorChallenge:g.seer_ad_account_restricted_by_soft_desc_challenge,softDescChallengeCredentialId:g.soft_desc_challenge_credential_id,softDescChallengeLocalizedAuthAmount:g.soft_desc_challenge_localized_auth_amount}}function n(a,b,e,f){e&&c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_MOVE_AD_ACCOUNT_TO_BUSINESS_SUCCESS},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_claim_success",{brandID:a,adAccountID:b}),c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_SUCCESS,brandID:a,adAccountID:b,status:f.access_status}),c("dispatchUnifiedNavigationScopeChangeAction")(a,null,{localScopeID:b,localScopeType:"ad-account"}),d("GenericAssetMutationEvents.brands").succeedUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function o(a,b,e,f){c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_REQUEST_SUCCESS,adAccountID:a,brandID:b,requestID:e}),d("GenericAssetMutationEvents.brands").succeedDeleteRequest(b,a,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function p(a,b,e,f){var g=d("ErrorAPIConverter.brands").fromAPI(f),h=g.msg;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.ERROR,"ad_account_create_failure",{brandID:a,errorMessage:h,errorObject:f,error_type:g.errorType,error_code:g.code,error_sub_code:f.error_subcode,app_id_ios14:e.appID,account_type:e.accountType});c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CREATE_ERROR,brandID:a,clientAdAccountID:b,errorMessage:h,errorObject:f});d("GenericAssetMutationEvents.brands").failCreateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function q(a,b,e,f){var g=d("ErrorAPIConverter.brands").fromAPI(f).msg;if(e){c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_MOVE_AD_ACCOUNT_TO_BUSINESS_FAILURE,data:(e={},e.targeting_ui_event_data=JSON.stringify({errorMessage:g}),e)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.ERROR,"ad_account_claim_failure",{brandID:a,errorMessage:g});c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.CLAIM_ERROR,brandID:a,adAccountID:b,errorMessage:g,errorObject:f});d("GenericAssetMutationEvents.brands").failUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function r(a,b,e){var f=d("ErrorAPIConverter.brands").toObject(e);f=d("ErrorAPIConverter.brands").fromAPI(f).msg;c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.UPDATE_ERROR,adAccount:a,errorMessage:f});d("GenericAssetMutationEvents.brands").failUpdateRequest(b,a.id,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT);c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_edit_save_failure",{adAccountID:a.id,error_data:JSON.stringify(e)})}function s(a,b,e,f){f=d("ErrorAPIConverter.brands").toObject(f);c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").ACTION.APP_NOTICE_ERROR_ADD,error:f});c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_REQUEST_ERROR,brandID:b,adAccountID:a,requestID:e});d("GenericAssetMutationEvents.brands").failDeleteRequest(b,a,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function t(a,b){c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_delete_success",{brandID:a,adAccountID:b.id}),c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_SUCCESS,brandID:a,adAccountID:b.id})}function u(a,b,e){var f=d("ErrorAPIConverter.brands").fromAPI(e);c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.ERROR,"ad_account_delete_failure",{brandID:a,adAccountID:b.id,errorMessage:f.msg});c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").ACTION.APP_NOTICE_ERROR_ADD,error:e});c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.DELETE_ERROR,adAccountID:b.id,brandID:a,errorMessage:f.msg})}function v(a,b){c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_request_access_success",{brandID:a,adAccountID:b}),c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.REQUEST_SUCCESS,brandID:a,clientAdAccountID:b,adAccountID:b}),d("ActiveContextActions.brands").navigateToAssetDetail(c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT,b),d("GenericAssetMutationEvents.brands").succeedUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}function w(a,b,e){var f=d("ErrorAPIConverter.brands").fromAPI(e),g=f.msg;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.AD_ACCOUNTS,"ad_account_request_access_failure",{brandID:a,adAccountID:b,errorMessage:g,errorObject:e,error_type:f.errorType,error_code:f.code,error_sub_code:e.error_subcode});c("AdsDataAtom").handleUpdateFromViewAction({type:c("AppConstants.brands").AD_ACCOUNT_ACTION.REQUEST_ERROR,brandID:a,clientAdAccountID:b,errorMessage:g,errorObject:e});d("GenericAssetMutationEvents.brands").failUpdateRequest(a,b,c("AppConstants.brands").ASSET_TYPE.AD_ACCOUNT)}g.startCreateAdAccount=a;g.startRequestingAdAccount=e;g.removeAdAccountFromBrand=h;g.startClaimAdAccount=i;g.startUpdateAdAccount=j;g.startDeleteAdAccountRequest=k}),98);
-----
LMPageSelectorContainer.react",["BusinessUnifiedScopingLocalScopeSelectorContainer.react","FluxContainer","LMActions","LMConfigStore","LMOwnedPageListStore","URI","dispatchUnifiedNavigationScopeChangeAction","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=d("react").Component;var i=function(a,b,e){d("LMActions").dispatchActionFromView({businessID:b,globalScopeID:e,pageID:a,type:"lm.navigation.selected_page_change"}),c("dispatchUnifiedNavigationScopeChangeAction")(b,e,{localScopeID:a,localScopeType:"page"})},j=function(a){a=a.getAuxiliaryData();var b=a.assetID,c=a.businessID;a=a.globalScopeID;i(b,c,a)},k=function(a){a=a.getAuxiliaryData();var b=a.assetID,d=a.businessID;a=a.globalScopeID;return new(c("URI"))(window.location.href).addQueryData({business_id:d,global_scope_id:a,page_id:b})};b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.getStores=function(){return[c("LMConfigStore"),c("LMOwnedPageListStore")]};b.calculateState=function(a){a=c("LMConfigStore").getState();a=a.parentPageID;var b=c("LMOwnedPageListStore").getForCurrentUser().map(function(a){return a.toArray()}).getValue()||[];b=[].concat(b);a!=null&&b.push(a);return{parentPageID:a}};var d=b.prototype;d.render=function(){return h.jsx(c("BusinessUnifiedScopingLocalScopeSelectorContainer.react"),{assetTypes:["page"],getURI:k,includeProfilePlusDelegatePages:!0,reloadNavigationDataOnSelect:!1,selectedID:this.state.parentPageID,showImage:!0,onSelect:j})};return b}(a);e=c("FluxContainer").create(b);g["default"]=e}),98);
-----
dispatchUnifiedNavigationScopeChangeAction",["BusinessScopingGatingUtils","BusinessUnifiedNavigationDataKey","JSResource"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e){if(d("BusinessScopingGatingUtils").canUseConsistentScopeTransfer()){var f,g=(f=e==null?void 0:e.localScopeID)!=null?f:null,h=(f=e==null?void 0:e.localScopeType)!=null?f:null;c("JSResource").loadAll([c("JSResource")("BusinessUnifiedNavigationScopeChangeAction").__setRef("dispatchUnifiedNavigationScopeChangeAction")],function(d){d.dispatch({key:new(c("BusinessUnifiedNavigationDataKey"))({businessID:a,globalScopeID:b,localScopeID:g,localScopeType:h})},{line:"30",module:"dispatchUnifiedNavigationScopeChangeAction.js"})})}}g["default"]=a}),98);
-----
BusinessUnifiedScopingLocalScopeSelector.react",["fbt","AdsManagerQPLUserFlowLogger","BusinessUnifiedNavigationGlobalScopeSelectorAction","BusinessUnifiedNavigationLogger","BusinessUnifiedScopingLocalSearchableSelector.react","BusinessUnifiedScopingLocalSelectorSearchSource","GeoButton.react","Image.react","RelayFBEnvironment","RelayHooks","dispatchUnifiedNavigationScopeChangeAction","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useRef,k={canSelectGlobalAccount:!1,emptyResultContent:h._("u65e0u7ed3u679c"),minMenuWidth:300,reloadNavigationDataOnSelect:!0,showImage:!1,includeAllContainedAssetsIfBusinessAdmin:!1,includeProfilePlusDelegatePages:!1,isDisabled:!1,useGeoSelectorButton:!1};function l(a){var b,e=j(null),f=babelHelpers["extends"]({},k,a),g=d("RelayHooks").useRelayEnvironment();g=d("BusinessUnifiedScopingLocalSelectorSearchSource").createLocalScopeSelectorSearchSource(g,{currentGlobalScope:f.globalScope,assetTypes:f.assetTypes,showImage:f.showImage,canSelectGlobal:f.canSelectGlobalAccount,includeAllContainedAssetsIfBusinessAdmin:f.includeAllContainedAssetsIfBusinessAdmin,includeProfilePlusDelegatePages:f.includeProfilePlusDelegatePages});function l(b){if(b!=null){var d=b.getAuxiliaryData(),e=d.assetID,g=d.assetType,h=d.businessID,i=d.globalScopeID,j=d.globalScopeName;d=d.globalScopeType;i!==f.globalScope.globalScopeID&&c("BusinessUnifiedNavigationGlobalScopeSelectorAction").dispatch({globalScopeType:d,globalScopeID:i,globalScopeName:j,businessID:h},{line:"147",module:"BusinessUnifiedScopingLocalScopeSelector.react.js"});f.reloadNavigationDataOnSelect&&c("dispatchUnifiedNavigationScopeChangeAction")(h,i,{localScopeID:e,localScopeType:g});c("BusinessUnifiedNavigationLogger").log("local_scope_selector_click","local_scope_selector_open",{localScopeIdTo:e,localScopeTypeTo:g,globalScopeIdTo:i,globalScopeTypeTo:q(d),selectorStyle:"new_unified_scoping"});a.onSelect(b)}}function m(){c("BusinessUnifiedNavigationLogger").log("local_scope_selector_show_all","local_scope_selector_open",{selectorStyle:"new_unified_scoping"})}function n(){f.onClose&&f.onClose(),o()}function o(){c("BusinessUnifiedNavigationLogger").log("local_scope_selector_close","local_scope_selector_open",{selectorStyle:"new_unified_scoping"})}function p(){c("BusinessUnifiedNavigationLogger").log("local_scope_selector_open","app_init",{selectorStyle:"new_unified_scoping"}),d("AdsManagerQPLUserFlowLogger").start(c("qpl")._(270206296,"122"))}function q(a){switch(a){case"business":return"business";case"personal":return"personal";case"business_asset_group":return"bag";default:return null}}var r=f.selectedEntry&&f.selectedEntry.getPhoto();r=f.showImage&&r!=null&&r!==""?i.jsx(c("Image.react"),{className:"x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1c4vz4f x2lah0s x1bhi7hv xvijh9v xhhsvwb x1ty9z65 xgzva0m x1n2onr6 x1ur6eac",src:r}):null;f.placeholder==null&&(f.placeholder=h._("u8bf7u9009u62e9u4e1au52a1u8d44u4ea7"));var s=f.assetTypes[0]==="business-unit"&&f.onCreateButtonClick!=null?i.jsx("div",{className:"xexx8yu x150jy0e x18d9i69 x1e558r4 x1gslohp",children:i.jsx(c("GeoButton.react"),{label:h._("u521bu5efau4e1au52a1u7ebf"),variant:"creation",width:"100%",onClick:function(){e.current&&e.current.close(),f.onCreateButtonClick&&f.onCreateButtonClick()}})}):null;return i.jsx("div",{style:{width:f.minMenuWidth},children:i.jsx(c("BusinessUnifiedScopingLocalSearchableSelector.react"),{addButtonTooltip:f.addButtonTooltip,assetTypes:f.assetTypes,createButton:s,"data-button-testid":(s=a["data-search-button-testid"])!=null?s:"","data-option-testid":(s=a["data-search-option-testid"])!=null?s:"","data-testid":void 0,emptySearchResultsContent:f.emptyResultContent,getURI:f.getURI,globalScope:f.globalScope,isDisabled:f.isLoading||f.isDisabled,isLoading:f.isLoading,media:r,menuLayerRef:e,minMenuWidth:f.minMenuWidth,placeholder:f.placeholder,searchSource:g,useGeoSelectorButton:f.useGeoSelectorButton,value:f.selectedEntry,viewAllURI:f.viewAllURI,onChange:l,onClose:n,onOpen:p,onSeeMoreButtonClick:m,onSwitchGlobalAccountClick:f.onSwitchGlobalAccountClick})})}l.displayName=l.name+" [from "+f.id+"]";function a(a){return i.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:i.jsx(l,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----