if (self.CavalryLogger) { CavalryLogger.start_js(["G9eom"]); } __d("AdsAccountListBatchLoadErrorDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupAccountListBatchLoadErrorReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"ACCOUNT.LIST.BATCH_LOAD_ERROR");e.exports=a}),null); __d("AdsAccountListBatchLoadErrorDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ACCOUNT.LIST.BATCH_LOAD_ERROR"}}),null); __d("AdsAccountListBatchLoadedDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupAccountListBatchLoadedReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"ACCOUNT.LIST.BATCH_LOADED");e.exports=a}),null); __d("AdsAccountListBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ACCOUNT.LIST.BATCH_LOADED"}}),null); __d("AdsAccountListPartialLoadDataAction",["Laminar","ifRequired"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("ifRequired")("AdsCFAdgroupAccountListPartialLoadReducerPlugin",function(a){return b("ifRequired")("AdsCFAdgroupDataProvider",function(c){return b("Laminar").__createReducer(a,c,{})})})]},function(){return[]},"ACCOUNT.LIST.PARTIAL_LOAD");e.exports=a}),null); __d("AdsAccountListPartialLoadDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ACCOUNT.LIST.PARTIAL_LOAD"}}),null); __d("AdsHelpTrayUIChatAvailabilityProviderPlugin",["AdsGraphAPI","LoadObject","LoadObjectLoader","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={initialState:function(a){return new(b("LoadObjectLoader"))(function(){a(function(a){return a.set(b("LoadObject").loading())}),b("promiseDone")(b("AdsGraphAPI").get(e.id).root("advertiser_support_access").get({fields:"chat_available"}),function(c){var d=c.chat_available;a(function(a){return a.set(b("LoadObject").withValue(d))})},function(c){return a(function(a){return a.set(b("LoadObject").withError(c))})})})}};e.exports=a}),null); __d("AdsHelpTrayUIChatAvailabilityProvider",["Laminar","AdsHelpTrayUIChatAvailabilityProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsHelpTrayUIChatAvailabilityProviderPlugin"),"AdsHelpTrayUIChatAvailabilityProviderPlugin")}),null); __d("BizNotificationTabCountUtils",["BizNotificationListConst"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("BizNotificationListConst").CLASSIFICATION_MAP,h=b("BizNotificationListConst").CLASSIFICATION_TO_TAB_MAP;a={incrementCountByTab:function(a,b){var c=Object.assign({},b);Object.keys(a).forEach(function(b){var d=h[b]||h[g[b]];b=a[b];d!=null&&(c[d]+=b,c.all+=b)});return c},clearTabCount:function(a,b,c){var d=Object.assign({},b),e=Object.assign({},c);a==="all"?Object.keys(b).forEach(function(a){d[a]=0,e[a]=!1}):(d.all-=d[a],d[a]=0,e[a]=!1);return{updatedUnseenByTab:d,updatedTabCountToBeCleared:e}}};e.exports=a}),null); __d("BizNotificationInitUnseenNotifsReducerPlugin",["BizNotificationListConst","BizNotificationTabCountUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("BizNotificationListConst").CLASSIFICATION_MAP;a={reduce:function(a,c){var d=c.initialClassificationsForUnseenNotifs,e=a.unseenNotifsClassificationsMap,f=a.unseenNotifsCountByTab;f=b("BizNotificationTabCountUtils").incrementCountByTab(c.initialUnseenNotifsCountByClassification,a.unseenNotifsCountByTab);Object.keys(d).forEach(function(a){var b=d[a];b.forEach(function(b){e[b]=g[a]||a})});return babelHelpers["extends"]({},a,{unseenNotifsClassificationsMap:e,unseenNotifsCountByTab:f})}};e.exports=a}),null); __d("BizNotificationInitUnseenNotifsAction",["Laminar","BizNotificationInitUnseenNotifsReducerPlugin","BizNotificationPopoverDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("BizNotificationInitUnseenNotifsReducerPlugin"),b("BizNotificationPopoverDataProvider"),{})]},function(){return[]},"BizNotificationInitUnseenNotifsActionPlugin");e.exports=a}),null); __d("BizNotificationPrefsProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{prefs:null}};e.exports=a}),null); __d("BizNotificationPrefsProvider",["Laminar","BizNotificationPrefsProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("BizNotificationPrefsProviderPlugin"),"BizNotificationPrefsProviderPlugin")}),null); __d("IndeterminateNotificationCounter",["cx","DocumentTitle"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="(*) ",i={init:function(a){a>0&&i.addBadge()},addBadge:function(){__p&&__p();var a=b("DocumentTitle").get(),c=document.getElementById("NotifIndeterminateBadge"),d=c&&c.getAttribute("class");if(d!=null&&d.includes("_76t_")){c=c&&c.textContent;c!=null&&b("DocumentTitle").set("("+c+") "+a,!0);return}else if(d!=null&&d.includes("_79ig")){b("DocumentTitle").set("(99+) "+a,!0);return}b("DocumentTitle").set(h+a,!0)},removeBadge:function(){var a=b("DocumentTitle").get();b("DocumentTitle").set(a,!0)}};e.exports=i}),null); __d("BizNotificationBadgeUtils",["cx","IndeterminateNotificationCounter","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=99,i={increaseBadgeCount:function(a){if(a!=null){var b=a.textContent;if(!b.endsWith("+")){b=Number(a.textContent)+1;a.textContent=b<=h?b+"":h+"+"}}return a},decreaseBadgeCount:function(a){a!=null&&(a.textContent="0");return a},setBadgeElementToBeActive:function(a){var c=document.getElementById("NotifIndeterminateBadge");a?(c=i.increaseBadgeCount(c),b("IndeterminateNotificationCounter").addBadge()):(c=i.decreaseBadgeCount(c),b("IndeterminateNotificationCounter").removeBadge());var d=c&&c.textContent;d=(d!=null&&!d.endsWith("+")?"_76t_":"")+(d!=null&&d.endsWith("+")?" _79ig":"");a=a?b("joinClasses")("_7256",d):b("joinClasses")("_7257",d);c&&c.setAttribute("class",a)}};e.exports=i}),null); __d("BizNotificationReceivedNotifReducerPlugin",["BizNotificationBadgeUtils","BizNotificationListConst","BizNotificationTabCountUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("BizNotificationListConst").CLASSIFICATION_TO_MACRO_CATEGORY_MAP,h=b("BizNotificationListConst").EMPTY_UNSEEN_NOTIFS_COUNT_BY_CLASSIFICATION,i=b("BizNotificationListConst").ORDERED_CLASSIFICATIONS,j=function(a,b){if(b==null)return!1;b=b.macro_categories_excluded_from_badging;return!b.includes(g[a])};a={reduce:function(a,c,d){__p&&__p();var e=d.prefsData;d=c.notifs;var f=a.unseenNotifsClassificationsMap,g=Object.assign({},h);d.forEach(function(a){var c=a.classifications;if(c==null)return;c.forEach(function(c){i.includes(c)&&(g[c]+=1,f[a.alert_id]=c,j(c,e.prefs)&&b("BizNotificationBadgeUtils").setBadgeElementToBeActive(!0))})});c=b("BizNotificationTabCountUtils").incrementCountByTab(g,a.unseenNotifsCountByTab);return babelHelpers["extends"]({},a,{unseenNotifsClassificationsMap:f,unseenNotifsCountByTab:c})}};e.exports=a}),null); __d("BizNotificationReceivedNotifAction",["Laminar","BizNotificationReceivedNotifReducerPlugin","BizNotificationPopoverDataProvider","BizNotificationPrefsProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("BizNotificationReceivedNotifReducerPlugin"),b("BizNotificationPopoverDataProvider"),{prefsData:b("BizNotificationPrefsProvider")})]},function(){return[]},"BizNotificationReceivedNotifActionPlugin");e.exports=a}),null); __d("BizNotificationSeenStateUpdateReducerPlugin",["BizNotificationBadgeUtils","BizNotificationListConst","BizNotificationTabCountUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("BizNotificationListConst").CLASSIFICATION_TO_TAB_MAP;a={reduce:function(a,c){__p&&__p();b("BizNotificationBadgeUtils").setBadgeElementToBeActive(!1);if(!a.isJewelOpen){var d=b("BizNotificationTabCountUtils").clearTabCount("all",a.unseenNotifsCountByTab,a.tabCountToBeCleared),e=d.updatedUnseenByTab;d=d.updatedTabCountToBeCleared;return babelHelpers["extends"]({},a,{unseenNotifsCountByTab:e,tabCountToBeCleared:d})}else{var f=a.tabCountToBeCleared;Object.keys(c.seenState).forEach(function(b){b=a.unseenNotifsClassificationsMap[b];if(b!=null){b=g[b];f[b]=!0}});return babelHelpers["extends"]({},a,{tabCountToBeCleared:f})}}};e.exports=a}),null); __d("BizNotificationSeenStateUpdateAction",["Laminar","BizNotificationSeenStateUpdateReducerPlugin","BizNotificationPopoverDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("BizNotificationSeenStateUpdateReducerPlugin"),b("BizNotificationPopoverDataProvider"),{})]},function(){return[]},"BizNotificationSeenStateUpdateActionPlugin");e.exports=a}),null); __d("BizNotificationSetJewelOpenReducerPlugin",["BizNotificationBadgeUtils","BizNotificationListConst","BizNotificationTabCountUtils"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("BizNotificationListConst").TAB_MAP;a={reduce:function(a,c){__p&&__p();c=c.isJewelOpen;var d=a.tabCountToBeCleared,e=a.unseenNotifsCountByTab,f=a.tabCountToBeCleared;b("BizNotificationBadgeUtils").setBadgeElementToBeActive(!1);c||Object.keys(d).forEach(function(a){if(d[a]){a=b("BizNotificationTabCountUtils").clearTabCount(g[a],e,f);e=a.updatedUnseenByTab;f=a.updatedTabCountToBeCleared}});return babelHelpers["extends"]({},a,{isJewelOpen:c,unseenNotifsCountByTab:e,tabCountToBeCleared:f})}};e.exports=a}),null); __d("BizNotificationSetJewelOpenAction",["Laminar","BizNotificationSetJewelOpenReducerPlugin","BizNotificationPopoverDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("BizNotificationSetJewelOpenReducerPlugin"),b("BizNotificationPopoverDataProvider"),{})]},function(){return[]},"BizNotificationSetJewelOpenActionPlugin");e.exports=a}),null); __d("BizNotificationsSetPrefsReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return babelHelpers["extends"]({},a,{prefs:b.prefs})}};e.exports=a}),null); __d("BizNotificationSetPrefsAction",["Laminar","BizNotificationsSetPrefsReducerPlugin","BizNotificationPrefsProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("BizNotificationsSetPrefsReducerPlugin"),b("BizNotificationPrefsProvider"),{})]},function(){return[]},"BIZ_NOTIFICATION.SET_PREFS");e.exports=a}),null); __d("BizNotificationBucketingUtils",["BizNotificationConfig"],(function(a,b,c,d,e,f){"use strict";a={preProcessNodeForLiveSendBucketing:function(a){var c=b("BizNotificationConfig").notifTypeWhitelist,d=[];a.eligible_buckets==null?d=["BIZ_NON_CRITICAL"]:!a.eligible_buckets.includes("BIZ_CRITICAL")&&c.includes(a.notif_type)&&(d=["BIZ_CRITICAL"].concat(a.eligible_buckets||[]));d.length!==0&&(a.eligible_buckets=d);return a}};e.exports=a}),null); __d("BusinessManagerNotificationsSubscriptionWebGraphQLSubscription",["WebGraphQLSubscriptionHelper"],(function(a,b,c,d,e,f){"use strict";e.exports=b("WebGraphQLSubscriptionHelper").getExports({docID:"2375554172487069",queryID:"584010498721203"})}),null); __d("BusinessManagerNotificationsSubscription",["BaseGraphQLSubscription","BusinessManagerNotificationsSubscriptionWebGraphQLSubscription","WebPixelRatio","uuid"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="ADS_UNIFIED_NAV";a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getTopic=function(a){return"gqls/"+this.getSubscriptionCallName()+"/actor_id_"+a.businessUserID+"_environment_"+g};d.getQueryID=function(){return b("BusinessManagerNotificationsSubscriptionWebGraphQLSubscription").getDocID()};d.getQueryParameters=function(a){return{input:JSON.stringify({client_subscription_id:b("uuid")(),environment:g}),is_work_user:!1,scale:b("WebPixelRatio").get()}};d.getSubscriptionCallName=function(){return"web_notification_receive_subscribe"};d.getViewerID=function(a){a=a.businessUserID;return a};return c}(b("BaseGraphQLSubscription"));e.exports=a}),null); __d("BusinessManagerNotificationSubscriptions",["Arbiter","BizNotificationBucketingUtils","BusinessManagerNotificationsSubscription","BusinessUserConf","ChannelConstants","NotificationTokens","createNotificationSubscriptions","createObjectFrom","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports=b("createNotificationSubscriptions")({subscribeToNotificationHides:function(a){return b("Arbiter").subscribe(b("ChannelConstants").getArbiterType("notification_hidden"),function(c,d){c=b("NotificationTokens").tokenizeIDs([d.obj.notif_id+""]);d=d.obj.state===1;a(b("createObjectFrom")(c,d))})},subscribeToNotificationReadnessUpdates:function(a){return b("Arbiter").subscribe(b("ChannelConstants").getArbiterType("notifications_read"),function(c,d){c=b("NotificationTokens").tokenizeIDs(d.obj.alert_ids);d=d.obj.new_state;a(b("createObjectFrom")(c,d))})},subscribeToNotificationSeenStateUpdates:function(a){return b("Arbiter").subscribe(b("ChannelConstants").getArbiterType("notifications_seen"),function(c,d){c=b("NotificationTokens").tokenizeIDs(d.obj.alert_ids);d=d.obj.new_state;a(b("createObjectFrom")(c,d))})},subscribeToRealtimeChannelNotifications:function(a){return b("BusinessUserConf").businessUserID!==null?b("BusinessManagerNotificationsSubscription").subscribe({businessUserID:String(b("nullthrows")(b("BusinessUserConf").businessUserID))},function(c){c=c.web_notification_receive_subscribe.aggregated_notification;a(c?[b("BizNotificationBucketingUtils").preProcessNodeForLiveSendBucketing(c)]:null,"BusinessManagerNotificationsPayloadPagelet")}):null}})}),null); __d("BusinessManagerGlobalNotificationSubscriptionsSubscription",["BusinessManagerNotificationSubscriptions"],(function(a,b,c,d,e,f){"use strict";e.exports=b("BusinessManagerNotificationSubscriptions").setup()}),null); __d("BusinessManagerNotificationExceptionTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:BusinessManagerNotificationExceptionLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:BusinessManagerNotificationExceptionLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:BusinessManagerNotificationExceptionLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setBusinessID=function(a){this.$1.business_id=a;return this};c.setErrorMessage=function(a){this.$1.error_message=a;return this};c.setEventName=function(a){this.$1.event_name=a;return this};c.setExtraErrorData=function(a){this.$1.extra_error_data=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={business_id:!0,error_message:!0,event_name:!0,extra_error_data:!0,time:!0,vc:!0,weight:!0};e.exports=a}),null); __d("BusinessManagerNotificationLogEvent",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({INVALID_UNREGISTERED_EMAIL:"invalid_unregistered_email",NOTIF_SEND_VIA_FLEX_SCHEDULER:"notif_send_via_flex_scheduler",NOTIF_SYNC_ERROR:"notif_sync_error",TRY_NOTIF_SEND_VIA_FLEX_SCHEDULER:"try_notif_send_via_flex_scheduler",TRY_NOTIF_SEND_VIA_FLEX_SCHEDULER_ERROR:"try_notif_send_via_flex_scheduler_error"})}),null); __d("BusinessManagerNotificationsSyncQueryWebGraphQLQuery",["WebGraphQLQueryBase"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.__getDocID=function(){return"1917258221721070"};b.getQueryID=function(){return"497831067351736"};return b}(b("WebGraphQLQueryBase"))}),null); __d("BusinessManagerNotificationSync",["invariant","Arbiter","BizSiteIdentifier.brands","BusinessManagerNotificationExceptionTypedLogger","BusinessManagerNotificationLogEvent","BusinessManagerNotificationsSyncQueryWebGraphQLQuery","ChannelConstants","CurrentUser","NotificationConstants","NotificationUpdates","WebGraphQL","WebPixelRatio","ifRequired","objectValues","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=0;function i(){var a={endpointControllerName:"BusinessManagerNotificationsPayloadPagelet"},c;b("ifRequired")("NotificationStore",function(d){c=b("objectValues")(d.getAll(a))});if(c==null)return null;var d=c.map(function(a){return a.creation_time}).filter(Boolean);return d.length===0?null:Math.max.apply(Math,d)}function j(){__p&&__p();var a=i();if(a==null)return;var c=b("BizSiteIdentifier.brands").getBusinessID();c!=null||g(0,6163);b("promiseDone")(b("WebGraphQL").exec(new(b("BusinessManagerNotificationsSyncQueryWebGraphQLQuery"))({business_id:c,is_work_user:b("CurrentUser").isWorkUser(),newer_than:a,scale:b("WebPixelRatio").get()})),function(a){__p&&__p();if(a){a=(a=a)!=null?(a=a.business)!=null?(a=a.viewer)!=null?(a=a.notifications)!=null?a.edges:a:a:a:a;a=a&&a.map(function(a){a=a.node;return a}).filter(Boolean);if(a==null)return;a={nodes:a};b("NotificationUpdates").handleUpdate(b("NotificationConstants").PayloadSourceType.SYNC,a)}},function(a){if(a){a=a.errors;Array.isArray(a)&&a.forEach(function(a){var d=JSON.stringify(a.error||a.repsonse);new(b("BusinessManagerNotificationExceptionTypedLogger"))().setBusinessID(c).setEventName(b("BusinessManagerNotificationLogEvent").NOTIF_SYNC_ERROR).setErrorMessage(a.message).setExtraErrorData(d).log()})}})}var k=null,l=0;a={setup:function(a){__p&&__p();l++;(h===null||a>h)&&(h=a);k==null&&(k=b("Arbiter").subscribe(b("ChannelConstants").ON_INVALID_HISTORY,j));var c=!1;return{remove:function(){if(c===!0)return;k!=null||g(0,51);c=!0;l--;l===0&&(k.unsubscribe(),k=null)}}}};e.exports=a}),null); __d("BusinessManagerGlobalNotificationSyncSubscription",["BusinessManagerNotificationSync","InitialServerTime"],(function(a,b,c,d,e,f){"use strict";e.exports=b("BusinessManagerNotificationSync").setup(b("InitialServerTime").serverTime)}),null); __d("AdsPersonalSettingsConstants",["keyMirror"],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({ACCOUNT_INFORMATION:"account_information",BILLING:"billing",NOTIFICATION:"notification",PAGES:"pages"});c=b("keyMirror")({NONE:null,NEW:null,OLD:null});d="bi_personal_settings_gear_tip";f="ads_personal_settings_gear";e.exports={EMAIL_NOTIFICATION_HANDLER_KEY:c,TABS:a,PERSONAL_SETTINGS_NUX_NAME:d,PERSONAL_SETTINGS_NUX_PLACEMENT:f}}),null); __d("AdsPersonalSettingsGearNux.react",["AdsIntelligentBlueTip.react","AdsPersonalSettingsConstants","React","gkx"],(function(a,b,c,d,e,f){"use strict";var g=b("AdsPersonalSettingsConstants").PERSONAL_SETTINGS_NUX_NAME,h=b("AdsPersonalSettingsConstants").PERSONAL_SETTINGS_NUX_PLACEMENT;a=function(){return!b("gkx")("677810")?null:b("React").createElement("div",{id:h},b("React").createElement(b("AdsIntelligentBlueTip.react"),{contextNodeID:h,messageID:g,position:"below"}))};e.exports=a}),null); __d("AdsAccountListDataManager",["fbt","AdsAccountListBatchLoadedDataAction","AdsAccountListBatchLoadErrorDataAction","AdsAccountListPartialLoadDataAction","AdsBaseListDataManager","AdsGraphAPI","GraphAPIPaging","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=Object.freeze({SUPER_KEY:"ALL_AD_ACCOUNTS",PERSONAL_AD_ACCOUNT_SUPER_KEY:"PERSONAL_AD_ACCOUNTS"});a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.loadFor=function(a){var c=this,d=b("AdsGraphAPI").get(e.id).me();a===h.PERSONAL_AD_ACCOUNT_SUPER_KEY?d=d.edge("personal_ad_accounts"):d=d.edge("adaccounts");b("promiseDone")(d.get({fields:["account_id"],summary:!0,limit:50}).then(b("GraphAPIPaging").eachPage(function(c){return b("AdsAccountListPartialLoadDataAction").dispatch({id:a,accounts:c.data,totalCount:c.summary.total_count},{line:"45",module:"AdsAccountListDataManager.js"})})),function(b){return c.__handleSuccess(["load"],a,null,b)},function(b){return c.__handleError(["load"],a,null,b)})};d.__onBatchLoaded=function(a){a.forEach(function(a,c){b("AdsAccountListBatchLoadedDataAction").dispatch({accounts:a.data,id:c},{line:"59",module:"AdsAccountListDataManager.js"})})};d.__onBatchLoadError=function(a){a.forEach(function(a,c){b("AdsAccountListBatchLoadErrorDataAction").dispatch({id:c},{line:"68",module:"AdsAccountListDataManager.js"})})};d.__getObjectTypeLabel=function(){return g._("Ad Accounts")};return c}(b("AdsBaseListDataManager"));c=new a();e.exports={AdsAccountListDataManager:c,AdsAccountListDataKeys:h}}),null); __d("AdsAccountListStore",["AdsAccountListBatchLoadedDataActionFlux","AdsAccountListBatchLoadErrorDataActionFlux","AdsAccountListDataManager","AdsAccountListPartialLoadDataActionFlux","AdsBaseListStore","AdsLoadState_LEGACY"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("AdsAccountListDataManager").AdsAccountListDataKeys,h=b("AdsAccountListDataManager").AdsAccountListDataManager;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getAllAccountIDs=function(){return this.getFor(g.SUPER_KEY)};d.getPersonalAdAccountIDs=function(){return this.getFor(g.PERSONAL_AD_ACCOUNT_SUPER_KEY)};d.getDataManager=function(){return h};d.getIDKey=function(){return"account_id"};d.__getActionTypes=function(){return[b("AdsAccountListBatchLoadErrorDataActionFlux").actionType,b("AdsAccountListBatchLoadedDataActionFlux").actionType,b("AdsAccountListPartialLoadDataActionFlux").actionType]};d.__onDispatch=function(a){a=a.action;switch(a.actionType){case b("AdsAccountListBatchLoadedDataActionFlux").actionType:this.__handleDataFor(a.id,a.accounts,b("AdsLoadState_LEGACY").LOADED);break;case b("AdsAccountListPartialLoadDataActionFlux").actionType:this.__setTotalCount(a.id,a.totalCount);this.__handleDataFor(a.id,a.accounts,b("AdsLoadState_LEGACY").LOADING);break;case b("AdsAccountListBatchLoadErrorDataActionFlux").actionType:this.__handleDataFor(a.id,null,b("AdsLoadState_LEGACY").ERROR);break}};return c}(b("AdsBaseListStore"));c=new a();e.exports=c}),null); __d("XHelpContactFormAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/help/direct_support_contact/",{name:{type:"String",required:!0},phone:{type:"String",required:!0},email:{type:"String",required:!0},ad_account_id:{type:"String",required:!0},description:{type:"String",required:!0},is_chat_case:{type:"Bool",defaultValue:!1}})}),null); __d("AdsHelpTrayDirectSupportEntryModal.react",["ix","cx","fbt","requireCond","AdsHelpTrayUIActions","AdsManagerNavigationGatingUtils","cr:813978","AsyncTypedRequest","FDSButton.react","FDSButtonSpinner.react","FDSGeodesicThemeProvider.react","FDSGuidanceCard.react","FDSGuidanceCardContent.react","FDSGuidanceCardContentLink.react","FDSGuidanceCardContentText.react","FDSGuidanceCardHeader.react","FDSLink.react","FDSModal.react","FDSModalFooter.react","FDSModalHeader.react","FDSSection.react","FDSSelector.react","FDSSelectorItem.react","FDSText.react","FDSTextArea.react","FDSTextInput.react","Image.react","React","URI","XHelpContactFormAsyncController","XSettingsController","asset"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=b("React").useCallback,k=b("React").useEffect,l=b("React").useState,m=b("URI").goURIOnNewWindow,n=/^(([^<>()\[\]\\.,;:\s@\"]+(\.[^<>()\[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,o=Object.freeze({CHAT:0,EMAIL:1,CHAT_EXISTING_SESSION:2,EMAIL_SUBMITTED:3}),p=null,q=null;function a(a){__p&&__p();var c=l(""),d=c[0],e=c[1];c=l("");var f=c[0],g=c[1];c=l(a.selectedAccountID||"");var h=c[0];c=c[1];var u=l(""),v=u[0],w=u[1];u=l("");var x=u[0];u=u[1];var y=l(!1),z=y[0],A=y[1];y=l(!0);var B=y[0],C=y[1];y=l(a.chatAccess?o.CHAT:o.EMAIL);var D=y[0],E=y[1];y=l("none");var F=y[0],G=y[1],H=function(){b("AdsHelpTrayUIActions").toggleDirectSupportModal(!1)};k(function(){return function(){q&&q.abort()}},[]);y=function(){return!z&&d.trim()!==""&&f.trim()!==""&&h!==""&&v.trim()!==""&&x.trim()!==""};var I=[];for(var J=a.accounts,K=Array.isArray(J),L=0,J=K?J:J[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var M;if(K){if(L>=J.length)break;M=J[L++]}else{L=J.next();if(L.done)break;M=L.value}M=M;I.push(b("React").createElement(b("FDSSelectorItem.react"),{key:M.id,label:M.name+" ("+M.account_id+")",value:M.account_id}))}M=function(){e("")};L=function(){g("")};K=function(){w("")};J=function(){p!==null&&p!==void 0&&m(p),H()};var N=j(function(a,b){__p&&__p();G(a);A(!1);p=b;switch(a){case"not_eligible":case"not_available":E(o.EMAIL);break;case"existing_session":E(o.CHAT_EXISTING_SESSION);break;case"none":switch(D){case o.CHAT:m(b);H();break;case o.EMAIL:E(o.EMAIL_SUBMITTED);break}break}},[D]),O=j(function(){__p&&__p();if(!n.test(v.trim().toLowerCase())){C(!1);return}C(!0);A(!0);var a=b("XHelpContactFormAsyncController").getURIBuilder().setString("name",d.trim()).setString("phone",f.trim()).setString("email",v.trim().toLowerCase()).setString("ad_account_id",h).setString("description",x.trim()).setBool("is_chat_case",D===o.CHAT).getURI();q=new(b("AsyncTypedRequest"))(a).setHandler(function(a){N(a.payload.error,new(b("URI"))(a.payload.messages_uri))});q.send()},[v,d,f,h,x,D,N]);M=b("React").createElement("div",{className:"_8gn4"},b("React").createElement(b("FDSTextInput.react"),{label:i._("Name"),onChange:e,onClear:M}));L=b("React").createElement("div",{className:"_8gn4"},b("React").createElement(b("FDSTextInput.react"),{label:i._("What is your preferred phone number?"),onChange:g,onClear:L}));c=b("React").createElement("div",{className:"_8gn4"},b("React").createElement(b("FDSSelector.react"),{label:i._("Select an Ad Account"),value:h,onChange:c},I));I=b("React").createElement("div",{className:"_8gn4"},b("React").createElement(b("FDSTextInput.react"),{errorMessage:B?"":i._("Please enter a valid email."),label:i._("What is your preferred email?"),size:"large",onChange:w,onClear:K}));B=b("React").createElement("div",{className:"_8gn4"},b("React").createElement(b("FDSTextArea.react"),{label:i._("Please describe your issue:"),onChange:u}));K=b("React").createElement("div",null,b("React").createElement("div",{className:"_8gn4"},b("React").createElement(s,{error:F})),M,L,c,I,B);u="";switch(D){case o.CHAT:u=i._("Chat with our Support Team");break;case o.EMAIL:u=i._("Contact our Support Team");break;case o.CHAT_EXISTING_SESSION:u=i._("Existing Chat Session");break}M=b("React").createElement(b("FDSModal.react"),{footer:b("React").createElement(t,{error:F,hideSupportEntryModal:H,isSubmitting:z,openMessengerAndCloseModal:J,readyToSubmit:y,send:O,step:D}),header:u?b("React").createElement(b("FDSModalHeader.react"),{title:u}):null,isShown:a.isOpen,width:540,onHide:H},b("React").createElement(r,{email:v,error:F,form:K,step:D}));if(b("AdsManagerNavigationGatingUtils").getIsOptedInModernization()&&b("cr:813978")!=null)return b("React").createElement(b("FDSGeodesicThemeProvider.react"),null,M);else return M}function r(a){switch(a.step){case o.CHAT:return b("React").createElement(b("FDSSection.react"),null,b("React").createElement(b("FDSText.react"),null,i._("Please fill out the form below so we can best assist you. Once complete, the information will be passed to a Facebook representative who will join you shortly in a live chat.")),a.form);case o.EMAIL:return b("React").createElement(b("FDSSection.react"),null,b("React").createElement(b("FDSText.react"),null,i._("Please fill out the form below so we can best assist you. Once complete, the information will be passed to a Facebook representative who will reach out to you via email.")),a.form);case o.CHAT_EXISTING_SESSION:return b("React").createElement(b("FDSSection.react"),null,b("React").createElement(b("FDSText.react"),null,i._("You currently have a live chat open. Click Continue to go there now.")));case o.EMAIL_SUBMITTED:return b("React").createElement(b("FDSSection.react"),{hasPadding:!1},b("React").createElement(b("Image.react"),{src:g("931730")}),b("React").createElement("div",{className:"_8hq2"},b("React").createElement(b("FDSText.react"),{size:"header3",weight:"bold"},i._("We'll be with you as soon as possible!")),b("React").createElement("br",null),b("React").createElement(b("FDSText.react"),{size:"body1",weight:"normal"},i._("Our representatives will reach out to your preferred email within 24 hours to help you resolve this issue. In the mean time, you can find resources in the Ads Help Center."),b("React").createElement("br",null),b("React").createElement("br",null),i._("Your Preferred Email: {email}",[i._param("email",a.email)]))));default:return null}}function s(a){switch(a.error){case"not_eligible":case"not_available":return b("React").createElement(b("FDSGuidanceCard.react"),{category:"warning"},b("React").createElement(b("FDSGuidanceCardHeader.react"),null,i._("Live Chat Closed")),b("React").createElement(b("FDSGuidanceCardContent.react"),null,b("React").createElement(b("FDSGuidanceCardContentText.react"),null,i._("Unfortunately business hours for live chat are now over. As an alternative, you can file a case with this form and a representative will reach out over email within 24 hours."))));case"blocked_page":return b("React").createElement(b("FDSGuidanceCard.react"),{category:"error"},b("React").createElement(b("FDSGuidanceCardHeader.react"),null,i._("Change Your Settings to Chat")),b("React").createElement(b("FDSGuidanceCardContent.react"),null,b("React").createElement(b("FDSGuidanceCardContentText.react"),null,i._("You've blocked the Facebook Advertiser Support Page on Facebook so you are unable to start a chat with a representative. Please unblock our page to access Live Chat.")),b("React").createElement(b("FDSGuidanceCardContentLink.react"),{href:b("XSettingsController").getURIBuilder().setString("tab","blocking").getURI().setDomain("www.facebook.com").setProtocol("https")},i._("Blocked Page Settings"))));case"exception":return b("React").createElement(b("FDSGuidanceCard.react"),{category:"error"},b("React").createElement(b("FDSGuidanceCardHeader.react"),null,i._("We're Having Technical Difficulties")),b("React").createElement(b("FDSGuidanceCardContent.react"),null,b("React").createElement(b("FDSGuidanceCardContentText.react"),null,i._("Apologies for the inconvenience. Please try again later or visit the Help Center for more resources.")),b("React").createElement(b("FDSGuidanceCardContentLink.react"),{href:new(b("URI"))("http://www.facebook.com/business/help")},i._("Ads Help Center"))));default:return null}}function t(a){__p&&__p();var c=b("React").createElement(b("FDSLink.react"),{href:new(b("URI"))("http://www.facebook.com/business/help"),target:"_blank"},i._("Ads Help Center"));c=c;var d=b("React").createElement(b("FDSButton.react"),{label:i._("Close"),onClick:a.hideSupportEntryModal}),e="",f="",g=null,h=!1;switch(a.step){case o.CHAT:e=i._("Start Chat");f=i._("Chat will open in a new tab");g=a.send;h=!a.readyToSubmit();break;case o.EMAIL:e=i._("File a Case");g=a.send;h=!a.readyToSubmit();break;case o.CHAT_EXISTING_SESSION:c=null;e=i._("Continue");d=null;g=a.openMessengerAndCloseModal;break;case o.EMAIL_SUBMITTED:c=null;e=i._("Done");g=a.hideSupportEntryModal;d=null;break}return b("React").createElement(b("FDSModalFooter.react"),{leftContent:c,primaryButton:b("React").createElement(b("FDSButton.react"),{busyIndicator:a.isSubmitting?b("React").createElement(b("FDSButtonSpinner.react"),null):null,isDisabled:h,label:e,tooltip:f,use:"primary",onClick:g}),secondaryButton:d})}e.exports=a}),null); __d("AdsHelpTrayDirectSupportEntryContainer.react",["AdsAccountListStore","AdsAccountStore","AdsHelpTrayDirectSupportEntryModal.react","AdsHelpTrayUIChatAvailabilityProvider","AdsHelpTrayUIStore","AdsLoadStateUtils_LEGACY","FluxContainer","React","SUIBusinessTheme","SUILoadingModalOverlay.react"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(){return[b("AdsAccountStore"),b("AdsAccountListStore"),b("AdsHelpTrayUIStore"),b("AdsHelpTrayUIChatAvailabilityProvider").toFluxStore()]}function c(){var a=new Map(),c=null,d=null,e=b("AdsHelpTrayUIStore").isModalOpen();if(e){c=b("AdsAccountStore").getSelectedAccountID();var f=b("AdsAccountListStore").getAllAccountIDs();a=b("AdsAccountStore").getAll(f.list);d=b("AdsHelpTrayUIChatAvailabilityProvider")().get()}return{accountsMap:a,chatAccessLoadObject:d,isOpen:e,selectedAccountID:c}}function d(a){var c=a.accountsMap,d=a.chatAccessLoadObject;if(d==null||c.size===0)return null;else if(!b("AdsLoadStateUtils_LEGACY").anyLoading(c)&&!d.isLoadingOrEmpty())return b("React").createElement(b("AdsHelpTrayDirectSupportEntryModal.react"),{accounts:b("AdsLoadStateUtils_LEGACY").getLoadedValues(c),chatAccess:d.getValue()||!1,isOpen:a.isOpen,selectedAccountID:a.selectedAccountID});else return b("React").createElement(b("SUILoadingModalOverlay.react"),{theme:b("SUIBusinessTheme")})}e.exports=b("FluxContainer").createFunctional(d,a,c)}),null); __d("BusinessUnifiedNavigationGearButtonLogger",["BusinessUnifiedNavigationLogger","Event"],(function(a,b,c,d,e,f){"use strict";a={init:function(a,c){b("Event").listen(a,"click",function(){return b("BusinessUnifiedNavigationLogger").log("gear_button_click","app_init",{toTool:c})})}};e.exports=a}),null); __d("AdsUnifiedNavNotificationsSubscriptionWebGraphQLSubscription",["WebGraphQLSubscriptionHelper"],(function(a,b,c,d,e,f){"use strict";e.exports=b("WebGraphQLSubscriptionHelper").getExports({docID:"1940323352716738",queryID:"2130611887257172"})}),null); __d("AdsUnifiedNavNotificationsSubscription",["AdsUnifiedNavNotificationsSubscriptionWebGraphQLSubscription","BaseGraphQLSubscription","WebPixelRatio","uuid"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="ADS_UNIFIED_NAV";a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.getTopic=function(a){return"gqls/"+this.getSubscriptionCallName()+"/actor_id_"+a.actorID+"_environment_"+g};d.getQueryID=function(){return b("AdsUnifiedNavNotificationsSubscriptionWebGraphQLSubscription").getDocID()};d.getQueryParameters=function(a){return{input:JSON.stringify({client_subscription_id:b("uuid")(),environment:g}),is_work_user:!1,scale:b("WebPixelRatio").get()}};d.getSubscriptionCallName=function(){return"web_notification_receive_subscribe"};return c}(b("BaseGraphQLSubscription"));e.exports=a}),null); __d("AdsUnifiedNavNotificationSubscriptions",["AdsUnifiedNavNotificationsSubscription","Arbiter","BizNotificationBucketingUtils","ChannelConstants","CurrentUser","NotificationTokens","createNotificationSubscriptions","createObjectFrom"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports=b("createNotificationSubscriptions")({subscribeToNotificationHides:function(a){return b("Arbiter").subscribe(b("ChannelConstants").getArbiterType("notification_hidden"),function(c,d){c=b("NotificationTokens").tokenizeIDs([d.obj.notif_id+""]);d=d.obj.state===1;a(b("createObjectFrom")(c,d))})},subscribeToNotificationReadnessUpdates:function(a){return b("Arbiter").subscribe(b("ChannelConstants").getArbiterType("notifications_read"),function(c,d){c=b("NotificationTokens").tokenizeIDs(d.obj.alert_ids);d=d.obj.new_state;a(b("createObjectFrom")(c,d))})},subscribeToNotificationSeenStateUpdates:function(a){return b("Arbiter").subscribe(b("ChannelConstants").getArbiterType("notifications_seen"),function(c,d){c=b("NotificationTokens").tokenizeIDs(d.obj.alert_ids);d=d.obj.new_state;a(b("createObjectFrom")(c,d))})},subscribeToRealtimeChannelNotifications:function(a){return b("AdsUnifiedNavNotificationsSubscription").subscribe({actorID:b("CurrentUser").getID()},function(c){c=c==null?void 0:(c=c.web_notification_receive_subscribe)==null?void 0:c.aggregated_notification;a(c?[b("BizNotificationBucketingUtils").preProcessNodeForLiveSendBucketing(c)]:null,"AdsUnifiedNavNotificationsPayloadPagelet")})}})}),null); __d("AdsUnifiedNavGlobalNotificationSubscriptionsSubscription",["AdsUnifiedNavNotificationSubscriptions"],(function(a,b,c,d,e,f){"use strict";e.exports=b("AdsUnifiedNavNotificationSubscriptions").setup()}),null); __d("AdsUnifiedNavNotificationsSyncQueryWebGraphQLQuery",["WebGraphQLQueryBase"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.__getDocID=function(){return"2098397340170397"};b.getQueryID=function(){return"730698150604120"};return b}(b("WebGraphQLQueryBase"))}),null); __d("AdsUnifiedNavNotificationSync",["invariant","AdsUnifiedNavNotificationsSyncQueryWebGraphQLQuery","Arbiter","ChannelConstants","CurrentUser","NotificationConstants","NotificationUpdates","WebGraphQL","WebPixelRatio","ifRequired","objectValues","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=0;function i(){var a={endpointControllerName:"AdsUnifiedNavNotificationsPayloadPagelet"},c;b("ifRequired")("NotificationStore",function(d){c=b("objectValues")(d.getAll(a))});if(c==null)return null;var d=c.map(function(a){return a.creation_time}).filter(Boolean);return d.length===0?null:Math.max.apply(Math,d)}function j(){__p&&__p();var a=i();if(a==null)return;b("promiseDone")(b("WebGraphQL").exec(new(b("AdsUnifiedNavNotificationsSyncQueryWebGraphQLQuery"))({is_work_user:b("CurrentUser").isWorkUser(),newer_than:a,scale:b("WebPixelRatio").get()})),function(a){__p&&__p();if(a){a=(a=a)!=null?(a=a.viewer)!=null?(a=a.notifications)!=null?a.edges:a:a:a;a=a&&a.map(function(a){a=a.node;return a}).filter(Boolean);if(a==null)return;a={nodes:a};b("NotificationUpdates").handleUpdate(b("NotificationConstants").PayloadSourceType.SYNC,a)}})}var k=null,l=0;a={setup:function(a){__p&&__p();l++;(h===null||a>h)&&(h=a);k==null&&(k=b("Arbiter").subscribe(b("ChannelConstants").ON_INVALID_HISTORY,j));var c=!1;return{remove:function(){if(c===!0)return;k!=null||g(0,51);c=!0;l--;l===0&&(k.unsubscribe(),k=null)}}}};e.exports=a}),null); __d("AdsUnifiedNavGlobalNotificationSyncSubscription",["AdsUnifiedNavNotificationSync","InitialServerTime"],(function(a,b,c,d,e,f){"use strict";e.exports=b("AdsUnifiedNavNotificationSync").setup(b("InitialServerTime").serverTime)}),null); __d("AppLoggerUtils.brands",["AppLogger.brands","AppLoggerHelper.brands","BanzaiODS","Event","URI"],(function(a,b,c,d,e,f){__p&&__p();var g={register:function(a,c,d,e,f){f=f||{},f.brandID=c,b("Event").listen(a,"click",function(a){b("AppLogger.brands").logForAnalytics(d,e,f)})},logServerEvent:function(a,c,d){b("AppLogger.brands").logForAnalytics(a,c,d)},registerForPopoverMenu:function(a,c,d,e,f){f&&g.register(a,d,e,f,{}),c.subscribe("itemclick",function(a,c){a=c.item&&c.item.getValue&&c.item.getValue();a?b("AppLogger.brands").logForAnalytics(e,a,{brandID:d}):b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.NAV,"invalid_nav_item")})},registerForPopoverOnlyMenu:function(a,c,d,e){a.subscribe("itemclick",function(a,e){a=new(b("URI"))(window.location.href).getPath();var f=221;b("AppLoggerHelper.brands").getTool(a)==="ANALYTICS"&&b("BanzaiODS").bumpEntityKey(f,"app_events","fba_count_persona_item_selected");a=e.item&&e.item.getValue&&e.item.getValue();a?b("AppLogger.brands").logForAnalytics(d,a,{brandID:c}):b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.NAV,"invalid_nav_item")})},registerForElements:function(a,c,d,e,f){f=f||{},f.brandID=c,a.forEach(function(a){b("Event").listen(a,"click",function(a){b("AppLogger.brands").logForAnalytics(d,e,f)})})}};e.exports=g}),null); __d("AdsInterfacesNavTools",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SETTINGS_OLD:"ACCOUNT_SETTINGS_OLD",AD_BUILDER:"AD_BUILDER",AD_BREAKS:"AD_BREAKS",ADVANCED_ANALYTICS:"ADVANCED_ANALYTICS",ANALYTICS:"ANALYTICS",APP_ADS_HELPER:"APP_ADS_HELPER",APP_DASHBOARD:"APP_DASHBOARD",APP_EVENTS:"APP_EVENTS",AUDIENCE_INSIGHTS:"AUDIENCE_INSIGHTS",AUDIENCES:"AUDIENCES",BILLING:"BILLING",BIZ_BILLING:"BIZ_BILLING",BLOCK_LIST:"BLOCK_LIST",BLOCK_LIST_V2:"BLOCK_LIST_V2",BRAND_SAFETY_HUB:"BRAND_SAFETY_HUB",BRANDED_CONTENT:"BRANDED_CONTENT",BUSINESS_ASSET_LIBRARY:"BUSINESS_ASSET_LIBRARY",BUSINESS_HOME:"BUSINESS_HOME",BUSINESS_LOCATIONS:"BUSINESS_LOCATIONS",BUSINESS_PAYMENTS:"BUSINESS_PAYMENTS",BUSINESS_PRODUCT_CATALOGS:"BUSINESS_PRODUCT_CATALOGS",BUSINESS_SETTINGS:"BUSINESS_SETTINGS",BUSINESS_VIDEO:"BUSINESS_VIDEO",COLLABORATION_HUB:"COLLABORATION_HUB",COMMERCE_MANAGER:"COMMERCE_MANAGER",CONTRACTS:"CONTRACTS",CONVERSION_TRACKING:"CONVERSION_TRACKING",CANVAS_BUILDER:"CANVAS_BUILDER",CREATION:"CREATION",CREATIVE_STUDIO:"CREATIVE_STUDIO",CREATOR_STUDIO:"CREATOR_STUDIO",CROSS_PUBLISHER_BUYING:"CROSS_PUBLISHER_BUYING",CUSTOM_CONVERSIONS:"CUSTOM_CONVERSIONS",DATA_SETS:"DATA_SETS",DELIVERY_INSIGHTS:"DELIVERY_INSIGHTS",DEVELOPER_SUPPORT_HOME:"DEVELOPER_SUPPORT_HOME",DA_AD_PREVIEW_TOOL:"DA_AD_PREVIEW_TOOL",DYNAMIC_ADS_COMMENT_MODERATION:"DYNAMIC_ADS_COMMENT_MODERATION",EASY_DA:"EASY_DA",EASY_DAA:"EASY_DAA",EVENTS_MANAGER:"EVENTS_MANAGER",EXAMPLE_TOOL:"EXAMPLE_TOOL",IMAGES:"IMAGES",LEAD_MANAGER:"LEAD_MANAGER",LIFT_STUDIES:"LIFT_STUDIES",PULL_MMM:"PULL_MMM",LOCAL_INSIGHTS:"LOCAL_INSIGHTS",MANAGE_ADS:"MANAGE_ADS",MANAGE_ADS_CM:"MANAGE_ADS_CM",MANAGE_ADS_VOLUME:"MANAGE_ADS_VOLUME",MARKETING_SOLUTION_PROVIDER:"MARKETING_SOLUTION_PROVIDER",MEASUREMENT_HUB:"MEASUREMENT_HUB",NOTIFICATIONS:"NOTIFICATIONS",OFFLINE_EVENTS:"OFFLINE_EVENTS",PAGES:"PAGES",PARTNER_CENTER:"PARTNER_CENTER",PARTNER_INTEGRATIONS:"PARTNER_INTEGRATIONS",PARTNER_PLATFORM:"PARTNER_PLATFORM",PERSONALIZED_RECOMMENDATIONS:"PERSONALIZED_RECOMMENDATIONS",PAYOUT_ACCOUNT_SETTINGS:"PAYOUT_ACCOUNT_SETTINGS",PIXELS:"PIXELS",PLANNER_TOOL:"PLANNER_TOOL",PUB_X:"PUB_X",REPORTING:"REPORTING",RULES:"RULES",SCRIPTS:"SCRIPTS",SELF_SERVE_CONVERSION_LIFT:"SELF_SERVE_CONVERSION_LIFT",SETTINGS:"SETTINGS",STORE_LOCATIONS:"STORE_LOCATIONS",STORE_VISIT_INSIGHTS:"STORE_VISIT_INSIGHTS",TARGETING_INSIGHTS:"TARGETING_INSIGHTS",UNDEFINED:"UNDEFINED",WHATSAPP_MESSAGING:"WHATSAPP_MESSAGING",ACCOUNT_QUALITY_PAGE:"ACCOUNT_QUALITY"})}),null); __d("BizsiteHelpButton.react",["ix","cx","AdsApplicationUtils","AdsFBIconDownsized.react","AdsHelpTrayDirectSupportEntryContainer.react","AdsIntelligentBlueTip.react","AdsInterfacesNavTools","Bootloader","BusinessUnifiedNavigationLogger","FluxContainerSubscriptions","Link.react","React","asset","joinClasses","qex","requireWeak"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PureComponent;var i,j="help-jewel";function k(){return{isDirectSupportModalOpen:!!i&&i.isModalOpen(),isTrayOpen:!!i&&i.isTrayOpen()}}c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$2=function(a){var c=a.ctrlKey||a.shiftKey||a.metaKey||a.button===1,e=c?"help_center_open_new_window":d.state.isTrayOpen?"help_center_close":"help_center_open",f=e==="help_center_close"?"help_center_open":"app_init";b("BusinessUnifiedNavigationLogger").log(e,f);if(!c){a.preventDefault();var g=!d.state.isTrayOpen,h=!d.state.isDirectSupportModalOpen;b("Bootloader").loadModules(["AdsHelpTrayUIActions","AdsHelpTrayUIStore"],function(a,c){i=c,d.$1.setStores([i]),b("qex")._("1110365")?a.toggleDirectSupportModal(h):a.toggleHelpTray(g,null,d.props.pageType)},"BizsiteHelpButton.react")}};d.$1=new(b("FluxContainerSubscriptions"))(d.constructor.name);d.$1.addListener(function(){return d.setState(k)});d.state=k();return d}var d=c.prototype;d.componentDidMount=function(){var a=this;b("requireWeak")("AdsHelpTrayUIStore",function(b){i=b,a.$1.setStores([i])});this.setState(k)};d.componentWillUnmount=function(){this.$1.reset()};d.render=function(){var a=this.props.buttonElement,c=this.props.pageType==="ANALYTICS"||this.props.pageType==="ANALYTICS"?"/help/analytics":"/help";c=b("React").createElement(b("Link.react"),{className:b("joinClasses")(this.props.className,this.state.isTrayOpen?this.props.classNameActive:null,(this.props.className?"":"_14xs")+(this.state.isTrayOpen&&!this.props.classNameActive?" _14xt":"")),"data-testid":"help-jewel",href:c,id:j,onClick:this.$2},a!=void 0?a:b("React").createElement("span",{className:"_tkm"},b("React").createElement(b("AdsFBIconDownsized.react"),{className:"_nxh",src:g("392521")})));!this.state.isTrayOpen&&b("AdsApplicationUtils").isPowerEditor()&&(c=b("React").createElement(b("React").Fragment,null,c,b("React").createElement(b("AdsIntelligentBlueTip.react"),{contextNodeID:j,messageID:"release_notes_intro",position:"below"})));return b("React").createElement("div",null,b("React").createElement(b("AdsHelpTrayDirectSupportEntryContainer.react"),null),c)};return c}(a);e.exports=c}),null); __d("BizHomeHelpTrayLogger",["AppLogger.brands"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={logFBExpertHelpItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_fbexperthelp_click",{page:a})},logExpertHelpItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_experthelp_click",{page:a})},logReportItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_report_click",{page:a})},logEmailItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_email_click",{page:a})},logCommunityItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_community_click",{page:a})},logSupportItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_support_click",{page:a})},logSupportInboxItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_support_inbox_click",{page:a})},logChatItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_chat_click",{page:a})},logDirectSupportItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_direct_support_click",{page:a})},logHelpCenterClick:function(a,c){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_footer_link_click",{destination:a,page:c})},logFAQItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_faq_item_click",{data:a})},logSearch:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_search",{query:a})},logHelpTrayOpen:function(){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_open")},logNewbieProgramItemClick:function(a){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_newbie_program_click",{page:a})},logFlyTrapClick:function(){b("AppLogger.brands").logForAnalytics(b("AppLogger.brands").CATEGORY.HELPTRAY,"helptray_flytrap_click")}};e.exports=a}),null); __d("BizHomeHelpTrayLoggerStore",["AdsDataAtom","AdsHelpTrayPushCmsIdDataActionFlux","AdsHelpTraySearchQueryDataActionFlux","AdsHelpTrayToggleDataActionFlux","AdsHelpTrayUIStore","BizHomeHelpTrayLogger","FluxStore"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.__onDispatch=function(a){a=a.action;switch(a.actionType){case b("AdsHelpTrayToggleDataActionFlux").actionType:b("AdsDataAtom").waitFor([b("AdsHelpTrayUIStore").getDispatchToken()]);b("AdsHelpTrayUIStore").isTrayOpen()&&b("BizHomeHelpTrayLogger").logHelpTrayOpen();break;case b("AdsHelpTraySearchQueryDataActionFlux").actionType:a.data.query&&b("BizHomeHelpTrayLogger").logSearch(a.data.query);break;case b("AdsHelpTrayPushCmsIdDataActionFlux").actionType:b("BizHomeHelpTrayLogger").logFAQItemClick(a.data);break}};return c}(b("FluxStore"));a.__moduleID=e.id;e.exports=new a(b("AdsDataAtom"))}),null); __d("BizHomeHelpTrayBootloadContainer.brands",["AdsHelpTrayUIStore","BootloadedComponent.react","FluxMixinLegacy","JSResource","React","ReactComponentWithPureRenderMixin","BizHomeHelpTrayLoggerStore"],(function(a,b,c,d,e,f){"use strict";a=b("React").createClass({displayName:"BizHomeHelpTrayContainer",mixins:[b("FluxMixinLegacy")([b("AdsHelpTrayUIStore")]),b("ReactComponentWithPureRenderMixin")],statics:{calculateState:function(){return{hidden:!b("AdsHelpTrayUIStore").isTrayOpen()}}},componentDidMount:function(){b("BizHomeHelpTrayLoggerStore")},render:function(){return this.state.hidden?null:b("React").createElement(b("BootloadedComponent.react"),babelHelpers["extends"]({},this.props,{bootloadLoader:b("JSResource")("BizHomeHelpTrayContainer.brands").__setRef("BizHomeHelpTrayBootloadContainer.brands"),name:"BizHomeHelpTrayContainer",bootloadPlaceholder:b("React").createElement("div",null)}))}});e.exports=a}),null); __d("BizNotificationPopoverInitializationHelper",["AdsNuxTourAbandonedDataAction","Arbiter","BizNotificationInitUnseenNotifsAction","BizNotificationReceivedNotifAction","BizNotificationSeenStateUpdateAction","BizNotificationSetJewelOpenAction","BizNotificationSetPrefsAction","NotificationBucketStoreManager","NotificationConstants","NotificationUpdates"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={initPrefs:function(a){b("BizNotificationSetPrefsAction").dispatch({prefs:a},{line:"31",module:"BizNotificationPopoverInitializationHelper.js"})},initTabs:function(a,c){b("BizNotificationInitUnseenNotifsAction").dispatch({initialUnseenNotifsCountByClassification:a,initialClassificationsForUnseenNotifs:c},{line:"41",module:"BizNotificationPopoverInitializationHelper.js"}),g.setupSubscriptions(),g.initSkipBucket()},initSkipBucket:function(){b("NotificationBucketStoreManager").setSkipBucketType("BIZ_CRITICAL")},setupSubscriptions:function(){b("NotificationUpdates").subscribe("update-notifications",function(a,c){a=c.payloadsource;if(a!==b("NotificationConstants").PayloadSourceType.LIVE_SEND&&a!==b("NotificationConstants").PayloadSourceType.USER_ACTION)return;a=c.nodes;c=c.seenState;a!=null?b("BizNotificationReceivedNotifAction").dispatch({notifs:a},{line:"67",module:"BizNotificationPopoverInitializationHelper.js"}):c!=null&&b("BizNotificationSeenStateUpdateAction").dispatch({seenState:c},{line:"72",module:"BizNotificationPopoverInitializationHelper.js"})}),b("Arbiter").subscribe("notificationJewel/opened",function(){b("BizNotificationSetJewelOpenAction").dispatch({isJewelOpen:!0},{line:"77",module:"BizNotificationPopoverInitializationHelper.js"})}),b("Arbiter").subscribe("notificationJewel/closed",function(){b("AdsNuxTourAbandonedDataAction").dispatch({},{line:"81",module:"BizNotificationPopoverInitializationHelper.js"}),b("BizNotificationSetJewelOpenAction").dispatch({isJewelOpen:!1},{line:"82",module:"BizNotificationPopoverInitializationHelper.js"})})}};e.exports=g}),null); __d("XUIIndeterminateBadge",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a){this.$1=a}var b=a.prototype;b.getCount=function(){return 0};b.setCount=function(a){return};b.setLegacyContent=function(a){return};b.increment=function(){return};return a}();e.exports=a}),null);