AdsHelpTrayHomeContentNewQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"alertsEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},e={defaultValue:null,kind:"LocalArgument",name:"assetID"},f={defaultValue:null,kind:"LocalArgument",name:"businessID"},g={defaultValue:null,kind:"LocalArgument",name:"callerID"},h={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},i={defaultValue:null,kind:"LocalArgument",name:"caseTypes"},j={defaultValue:null,kind:"LocalArgument",name:"filterOutAdsAIThreadsFromSupport"},k={defaultValue:null,kind:"LocalArgument",name:"inboxEnabled"},l={defaultValue:null,kind:"LocalArgument",name:"marketingProEnabled"},m={defaultValue:null,kind:"LocalArgument",name:"maxThreads"},n={defaultValue:null,kind:"LocalArgument",name:"pathname"},o={defaultValue:null,kind:"LocalArgument",name:"shouldQueryAI"},p={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},q={defaultValue:null,kind:"LocalArgument",name:"shouldQueryMAIBAThreads"},r={defaultValue:null,kind:"LocalArgument",name:"shouldShowBSHFunnel"},s={defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"},t={defaultValue:null,kind:"LocalArgument",name:"surface"},u={defaultValue:null,kind:"LocalArgument",name:"tags"},v={defaultValue:null,kind:"LocalArgument",name:"validForAdAccount"},w={defaultValue:null,kind:"LocalArgument",name:"validForBusiness"},x=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],y=[{kind:"Variable",name:"ad_account_id",variableName:"accountID"}],z=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],A={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},C=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],D={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};C=[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:C,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:C,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},D],storageKey:null},D],storageKey:null}];var E=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}],F={kind:"Variable",name:"filter_out_ads_ai_threads",variableName:"filterOutAdsAIThreadsFromSupport"},G={kind:"Variable",name:"first",variableName:"maxThreads"},H=[F,G,{kind:"Literal",name:"status",value:"ACTIVE"}],I={alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"thread_name",storageKey:null},K={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"thread_image",plural:!1,selections:z,storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"thread_snippet",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"thread_ts",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"thread_unread",storageKey:null},O={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"facepile_images",plural:!0,selections:z,storageKey:null},P={alias:null,args:null,kind:"ScalarField",name:"is_ads_ai_thread",storageKey:null},Q={alias:null,args:null,kind:"ScalarField",name:"thread_status",storageKey:null},R=[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"nodes",plural:!0,selections:[D,I,J,K,L,M,N,O,P,Q],storageKey:null}],S=[G],T={alias:null,args:null,kind:"ScalarField",name:"tip_id",storageKey:null},U=[{kind:"Literal",name:"aymt_action_key",value:"PRIMARY"}],V={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},W=[V],X=[{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[T,D],storageKey:null},D];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentNewQuery",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]},{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsOsmipCompactInboxContent_data"}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:y,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayAlertListContainer_data"}]}],storageKey:null}]},{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentNew_data"}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,j,k,l,n,m,o,q,p,s,t,u,v,w,r,i],kind:"Operation",name:"AdsHelpTrayHomeContentNewQuery",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:z,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[A,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},B,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"href",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sub_program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[A,{kind:"InlineFragment",selections:C,type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:C,type:"AdsOSMiPMIALiveCallConnection",abstractKey:null},{kind:"InlineFragment",selections:E,type:"AdsOSMiPMIAChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},D,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:E,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},D],storageKey:null}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Variable",name:"case_types",variableName:"caseTypes"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},B,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[A,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},D],storageKey:null},D],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]},{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsUserSettings",kind:"LinkedField",name:"ads_user_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_ads_ai_consented",storageKey:null},D],storageKey:null},{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{alias:"active",args:H,concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFieldsSupportThreadListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"node",plural:!1,selections:[D,I,J,K,L,M,N,O,P,Q,A],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"active",args:H,filters:["status","filter_out_ads_ai_threads"],handle:"connection",key:"AdsOsmipSidebarChatButtonQuery__active",kind:"LinkedHandle",name:"support_thread_list"},{alias:"archived",args:[F,G,{kind:"Literal",name:"status",value:"ARCHIVED"}],concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:R,storageKey:null},{condition:"shouldQueryAI",kind:"Condition",passingValue:!0,selections:[{alias:"ai",args:S,concreteType:"XFBOSMiPViewerFieldsAiThreadListConnection",kind:"LinkedField",name:"ai_thread_list",plural:!1,selections:R,storageKey:null}]},{condition:"shouldQueryMAIBAThreads",kind:"Condition",passingValue:!0,selections:[{alias:"maiba",args:S,concreteType:"XFBOSMiPViewerFieldsMaibaThreadListConnection",kind:"LinkedField",name:"maiba_thread_list",plural:!1,selections:R,storageKey:null}]}],storageKey:null}],storageKey:null}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:y,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentNewQuery$defer$AdsHelpTrayAlertListContainer_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"aymt_request_id",storageKey:null},{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel_id",storageKey:null},T,{alias:null,args:null,kind:"ScalarField",name:"tip_name",storageKey:null},{alias:null,args:null,concreteType:"AYMTTipCreativeSpec",kind:"LinkedField",name:"specs",plural:!0,selections:[{alias:"primary_action",args:null,concreteType:"AYMTActionCreativeElement",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:U,kind:"ScalarField",name:"link",storageKey:'link(aymt_action_key:"PRIMARY")'},{alias:null,args:U,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:W,storageKey:'text(aymt_action_key:"PRIMARY")'},{alias:null,args:U,kind:"ScalarField",name:"is_async_link",storageKey:'is_async_link(aymt_action_key:"PRIMARY")'}],storageKey:null},{alias:null,args:null,concreteType:"AYMTBodyCreativeElement",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:[V,{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[A,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[D],type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTTitleCreativeElement",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:W,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTMetadataCreativeElement",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"icon_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null},D],storageKey:null}]},D],storageKey:null}]},{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentNewQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentNew_data",selections:[{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{alias:"aymtAlertsQuery",args:y,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:X,storageKey:null}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{alias:"aymtBusinessAlertsQuery",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],concreteType:"XFBAYMTBMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_bm_help_tray_alerts_channel",plural:!1,selections:X,storageKey:null}]},{condition:"shouldShowBSHFunnel",kind:"Condition",passingValue:!0,selections:[{alias:"outstandingAccounts",args:[{kind:"Literal",name:"count",value:10},{kind:"Literal",name:"list_type",value:"ACCOUNT"},{kind:"Literal",name:"max_accounts_checked_per_entity_type",value:25}],concreteType:"AccountQualityLandingPageIssuesQueryDetails",kind:"LinkedField",name:"xfb_aq_landing_page_issues_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_ids",storageKey:null}],storageKey:'xfb_aq_landing_page_issues_v2(count:10,list_type:"ACCOUNT",max_accounts_checked_per_entity_type:25)'}]}]}]},params:{id:"24161213120148274",metadata:{},name:"AdsHelpTrayHomeContentNewQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeContentNew.react",["AdsAIEntrypointAvailabilityUtils","AdsHelpTrayAlertListContainer.react","AdsHelpTrayBusinessSupportHomeFunnelContentNew.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentNewQuery.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","AdsOsmipCompactInboxContent.react","AdsOsmipExperimentUtils","BusinessSupportCaseTrackingUtils","GeoCard.react","GeoSpinner.react","LazyEmbeddedSupportSurvey","RelayHooks","SurveyChannelTypes","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","getBusinessCurrentToolType","getIsAdsAIEnabledOnMBS","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n=h!==void 0?h:h=b("AdsHelpTrayHomeContentNewQuery.graphql");function o(a){var b,e,f=a.adAccountID,g=a.businessID,h=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var i=k(c("AdsHelpTrayKillswitchContext")),o=i.resourcesEnabled,p=i.articlesEnabled,q=i.alertsEnabled,r=i.inboxEnabled,s=i.marketingProEnabled,t=i.contactSupportEnabled,u=i.advertiserAiEnabled;i=i.funnelEnabled;var v=m(0),w=v[0];v=v[1];var x=c("gkx")("21332"),y=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),z=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),A=c("getBusinessCurrentToolType")(),B=A==="BUSINESS_HOME"||A==="BUSINESS_SETTINGS"?g:f;B=B!=="0"?B:null;u=u&&d("AdsAIEntrypointAvailabilityUtils").getIsAdsAIBetaM2EntrypointsAvailable();r=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||u)&&r;var C=m(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),D=C[0];C=C[1];var E=A==="ACCOUNT_QUALITY",F=f!=null&&f!=="",G=g!=null&&g!==""&&A!=="BUSINESS_SUITE_HOME";b=(b=f)!=null?b:"";var H=s&&f!=null&&d("AdsOsmipExperimentUtils").getIsOsmipAB();e=d("RelayHooks").useLazyLoadQuery(n,{accountID:b,adAccountID:f,alertsEnabled:q&&f!=null,articlesEnabled:p,assetID:B,businessID:(e=g)!=null?e:"",callerID:A==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:x,caseTypes:c("gkx")("8528")?["PSO_TIER_1"]:[],filterOutAdsAIThreadsFromSupport:!0,inboxEnabled:r,marketingProEnabled:H,maxThreads:d("AdsOsmipCompactInbox.react").NUM_THREADS_TO_SHOW+1,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldFetchConsentForLWI:c("getIsAdsAIEnabledOnMBS")(),shouldQueryAI:u,shouldQueryChannels:y,shouldShowBSHFunnel:!E&&!c("gkx")("8516"),showContactSupportButton:x&&t&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(D)&&!u,surface:z,tags:a,validForAdAccount:!E&&F,validForBusiness:!E&&!F&&G});A=H?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsHelpTrayContactMarketingProContentContainer",children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:f,shouldQueryChannels:y,solutionsFragmentKey:e,surface:z,updateMarketingProIndex:v})})}):null;t=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{adAccountAlertFragmentKey:e.xfb_aymt_am_help_tray_alerts_channel})})}):null;u=p?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:e==null?void 0:e.help_tray_recommended_articles})})}):null;a=o?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;F=r?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInboxContent.react"),{osmipFragmentKey:e})})}):null;H=[{context_key:"CHANNEL",context_value:d("SurveyChannelTypes").CHANNEL_TYPES.HELP_TRAY_HOME_CSAT},{context_key:"APPLICATION",context_value:(G=c("getBusinessCurrentToolType")())!=null?G:""}];f=c("LazyEmbeddedSupportSurvey")&&j.jsx(c("GeoCard.react"),{children:j.jsx(c("LazyEmbeddedSupportSurvey"),{integrationPoint:d("SurveyChannelTypes").CSAT_SURVEY_INTEGRATION_POINT,surveyContext:H})});y={adAccountID:b,fragmentKey:e,isToolTypeAccountQuality:E};return!x?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[t,F,s&&w===0?A:null,i?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContentNew.react"),babelHelpers["extends"]({},y)):null,u,a,s&&w===1?A:null,f]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:t,articleSection:u,assetID:B,assetType:"AD_ACCOUNT",businessID:g,caseTrackingPosition:D,contactMarketingProSolutions:A,directSupportFragmentKey:e,funnelPropsNew:y,inbox:F,marketingProIndex:w,newHelpTray:!0,resourceList:a,setCaseTrackingPosition:C,showToast:h,survey:f})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(o,{adAccountID:b,businessID:d,showToast:e,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeContentV2.react",["AdsAIUtils","AdsHelpTrayAlertListContainer.react","AdsHelpTrayBusinessSupportHomeFunnelContent.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentV2Query.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","AdsOsmipCompactInboxContent.react","AdsOsmipExperimentUtils","BusinessSupportCaseTrackingUtils","GeoCard.react","GeoSpinner.react","RelayHooks","SurveyChannelTypes","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","cr:4800","getBusinessCurrentToolType","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n="752946023489429",o=h!==void 0?h:h=b("AdsHelpTrayHomeContentV2Query.graphql");function p(a){var e,f,g=a.adAccountID,h=a.businessID,i=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var p=k(c("AdsHelpTrayKillswitchContext")),q=p.resourcesEnabled,r=p.articlesEnabled,s=p.alertsEnabled,t=p.inboxEnabled,u=p.marketingProEnabled,v=p.contactSupportEnabled,w=p.advertiserAiEnabled;p=p.funnelEnabled;var x=m(0),y=x[0];x=x[1];var z=c("gkx")("21332"),A=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),B=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),C=c("getBusinessCurrentToolType")(),D=C==="BUSINESS_HOME"||C==="BUSINESS_SETTINGS"?h:g;D=D!=="0"?D:null;w=w&&d("AdsAIUtils").getIsAdsAIChatAvailable();t=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||w)&&t;var E=m(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),F=E[0];E=E[1];var G=C==="ACCOUNT_QUALITY",H=g!=null&&g!=="",I=h!=null&&h!==""&&C!=="BUSINESS_SUITE_HOME";e=(e=g)!=null?e:"";var J=u&&g!=null&&d("AdsOsmipExperimentUtils").getIsOsmipAB();f=d("RelayHooks").useLazyLoadQuery(o,{accountID:e,adAccountID:g,alertsEnabled:s&&g!=null,articlesEnabled:r,assetID:D,businessID:(f=h)!=null?f:"",callerID:C==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:z,inboxEnabled:t,marketingProEnabled:J,maxThreads:d("AdsOsmipCompactInbox.react").NUM_THREADS_TO_SHOW+1,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldDefer:c("gkx")("1827"),shouldQueryAI:w,shouldQueryChannels:A,showContactSupportButton:z&&v&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(F)&&!w,surface:B,tags:a,validForAdAccount:!G&&H,validForBusiness:!G&&!H&&I,validToolType:!G});w=(v=(C=f.outstandingAccounts)==null?void 0:C.account_ids.length)!=null?v:0;a=J?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsHelpTrayContactMarketingProContentContainer",children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:g,shouldQueryChannels:A,solutionsFragmentKey:f,surface:B,updateMarketingProIndex:x})})}):null;H=s?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{adAccountAlertFragmentKey:f.xfb_aymt_am_help_tray_alerts_channel})})}):null;I=r?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:f==null?void 0:f.help_tray_recommended_articles})})}):null;C=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;J=t?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInboxContent.react"),{osmipFragmentKey:(v=f.viewer)==null?void 0:v.osmip})})}):null;A=[{context_key:"CHANNEL",context_value:d("SurveyChannelTypes").CHANNEL_TYPES.HELP_TRAY_HOME_CSAT},{context_key:"APPLICATION",context_value:(g=c("getBusinessCurrentToolType")())!=null?g:""}];B=b("cr:4800")&&j.jsx(c("GeoCard.react"),{children:j.jsx(b("cr:4800"),{integrationPoint:n,surveyContext:A})});x={adAccountFragmentKey:f,adAccountID:e,businessFragmentKey:f,isToolTypeAccountQuality:G,numIssues:w};return!z?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[H,J,u&&y===0?a:null,p?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContent.react"),babelHelpers["extends"]({},x)):null,I,C,u&&y===1?a:null,B]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:H,articleSection:I,assetID:D,assetType:"AD_ACCOUNT",businessID:h,caseTrackingPosition:F,contactMarketingProSolutions:a,directSupportFragmentKey:f,funnelProps:x,inbox:J,marketingProIndex:y,newHelpTray:!0,resourceList:C,setCaseTrackingPosition:E,showToast:i,survey:B})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(p,{adAccountID:b,businessID:d,showToast:e,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeContentV2Query.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"alertsEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},e={defaultValue:null,kind:"LocalArgument",name:"assetID"},f={defaultValue:null,kind:"LocalArgument",name:"businessID"},g={defaultValue:null,kind:"LocalArgument",name:"callerID"},h={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},i={defaultValue:null,kind:"LocalArgument",name:"inboxEnabled"},j={defaultValue:null,kind:"LocalArgument",name:"marketingProEnabled"},k={defaultValue:null,kind:"LocalArgument",name:"maxThreads"},l={defaultValue:null,kind:"LocalArgument",name:"pathname"},m={defaultValue:null,kind:"LocalArgument",name:"shouldDefer"},n={defaultValue:null,kind:"LocalArgument",name:"shouldQueryAI"},o={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},p={defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"},q={defaultValue:null,kind:"LocalArgument",name:"surface"},r={defaultValue:null,kind:"LocalArgument",name:"tags"},s={defaultValue:null,kind:"LocalArgument",name:"validForAdAccount"},t={defaultValue:null,kind:"LocalArgument",name:"validForBusiness"},u={defaultValue:null,kind:"LocalArgument",name:"validToolType"},v=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],w=[{kind:"Variable",name:"ad_account_id",variableName:"accountID"}],x={condition:"validToolType",kind:"Condition",passingValue:!0,selections:[{alias:"outstandingAccounts",args:[{kind:"Literal",name:"count",value:10},{kind:"Literal",name:"list_type",value:"ACCOUNT"},{kind:"Literal",name:"max_accounts_checked_per_entity_type",value:25}],concreteType:"AccountQualityLandingPageIssuesQueryDetails",kind:"LinkedField",name:"xfb_aq_landing_page_issues_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_ids",storageKey:null}],storageKey:"xfb_aq_landing_page_issues_v2(count:10,list_type:"ACCOUNT",max_accounts_checked_per_entity_type:25)"}]},y={kind:"Variable",name:"first",variableName:"maxThreads"},z=[y,{kind:"Literal",name:"status",value:"ACTIVE"}],A={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},C={alias:null,args:null,kind:"ScalarField",name:"thread_name",storageKey:null},D=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],E={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"thread_image",plural:!1,selections:D,storageKey:null},F={alias:null,args:null,kind:"ScalarField",name:"thread_snippet",storageKey:null},G={alias:null,args:null,kind:"ScalarField",name:"thread_ts",storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"thread_unread",storageKey:null},I={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"facepile_images",plural:!0,selections:D,storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},K=[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"nodes",plural:!0,selections:[A,B,C,E,F,G,H,I],storageKey:null}],L={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},M=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],N=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}],O={alias:null,args:null,kind:"ScalarField",name:"tip_id",storageKey:null},P=[{kind:"Literal",name:"aymt_action_key",value:"PRIMARY"}],Q={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},R=[Q],S=[{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[O,A],storageKey:null},A];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentV2Query",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:v,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsOsmipCompactInboxContent_data"}],storageKey:null}]}],storageKey:null},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayAlertListContainer_data"}]}],storageKey:null}]},x,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data"}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data"}]}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j,l,k,m,n,o,p,q,r,s,t,u],kind:"Operation",name:"AdsHelpTrayHomeContentV2Query",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{alias:"active",args:z,concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFieldsSupportThreadListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"node",plural:!1,selections:[A,B,C,E,F,G,H,I,J],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"active",args:z,filters:["status"],handle:"connection",key:"AdsOsmipSidebarChatButtonQuery__active",kind:"LinkedHandle",name:"support_thread_list"},{alias:"archived",args:[y,{kind:"Literal",name:"status",value:"ARCHIVED"}],concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:K,storageKey:null},{condition:"shouldQueryAI",kind:"Condition",passingValue:!0,selections:[{alias:"ai",args:[y],concreteType:"XFBOSMiPViewerFieldsAiThreadListConnection",kind:"LinkedField",name:"ai_thread_list",plural:!1,selections:K,storageKey:null}]}],storageKey:null}]}],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:v,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:D,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[J,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},L,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sub_program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[J,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:M,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:M,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},A],storageKey:null},A],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:N,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},A,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:N,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},A],storageKey:null}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},L,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[J,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},A],storageKey:null},A],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentV2Query$defer$AdsHelpTrayAlertListContainer_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"aymt_request_id",storageKey:null},{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel_id",storageKey:null},O,{alias:null,args:null,kind:"ScalarField",name:"tip_name",storageKey:null},{alias:null,args:null,concreteType:"AYMTTipCreativeSpec",kind:"LinkedField",name:"specs",plural:!0,selections:[{alias:"primary_action",args:null,concreteType:"AYMTActionCreativeElement",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:P,kind:"ScalarField",name:"link",storageKey:"link(aymt_action_key:"PRIMARY")"},{alias:null,args:P,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:R,storageKey:"text(aymt_action_key:"PRIMARY")"},{alias:null,args:P,kind:"ScalarField",name:"is_async_link",storageKey:"is_async_link(aymt_action_key:"PRIMARY")"}],storageKey:null},{alias:null,args:null,concreteType:"AYMTBodyCreativeElement",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:[Q,{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[J,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[A],type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTTitleCreativeElement",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:R,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTMetadataCreativeElement",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"icon_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null},A],storageKey:null}]},A],storageKey:null}]},x,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentV2Query$defer$AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data",selections:[{alias:"aymtAlertsQuery",args:w,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:S,storageKey:null}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentV2Query$defer$AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data",selections:[{alias:"aymtBusinessAlertsQuery",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],concreteType:"XFBAYMTBMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_bm_help_tray_alerts_channel",plural:!1,selections:S,storageKey:null}]}]}]},params:{id:"25893422920271072",metadata:{},name:"AdsHelpTrayHomeContentV2Query",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeContent.react",["AdsAIEntrypointAvailabilityUtils","AdsHelpTrayAlertListContainer.react","AdsHelpTrayBusinessSupportHomeFunnelContent.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentQuery.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","AdsOsmipCompactInboxContent.react","AdsOsmipExperimentUtils","BusinessSupportCaseTrackingUtils","GeoCard.react","GeoSpinner.react","RelayHooks","SurveyChannelTypes","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","cr:4800","getBusinessCurrentToolType","gkx","justknobx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n="752946023489429",o=h!==void 0?h:h=b("AdsHelpTrayHomeContentQuery.graphql");function p(a){var e,f,g=a.adAccountID,h=a.businessID,i=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var p=k(c("AdsHelpTrayKillswitchContext")),q=p.resourcesEnabled,r=p.articlesEnabled,s=p.alertsEnabled,t=p.inboxEnabled,u=p.marketingProEnabled,v=p.contactSupportEnabled,w=p.advertiserAiEnabled;p=p.funnelEnabled;var x=m(0),y=x[0];x=x[1];var z=c("gkx")("21332"),A=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),B=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),C=c("getBusinessCurrentToolType")(),D=C==="BUSINESS_HOME"||C==="BUSINESS_SETTINGS"?h:g;D=D!=="0"?D:null;w=w&&d("AdsAIEntrypointAvailabilityUtils").getIsAdsAIBetaM1EntrypointsAvailable();t=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||w)&&t;var E=m(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),F=E[0];E=E[1];var G=C==="ACCOUNT_QUALITY",H=g!=null&&g!=="",I=h!=null&&h!==""&&C!=="BUSINESS_SUITE_HOME";e=(e=g)!=null?e:"";var J=u&&g!=null&&d("AdsOsmipExperimentUtils").getIsOsmipAB();f=d("RelayHooks").useLazyLoadQuery(o,{accountID:e,adAccountID:g,alertsEnabled:s&&g!=null,articlesEnabled:r,assetID:D,businessID:(f=h)!=null?f:"",callerID:C==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:z,filterOutAdsAIThreadsFromSupport:c("justknobx")._("2160"),inboxEnabled:t,marketingProEnabled:J,maxThreads:d("AdsOsmipCompactInbox.react").NUM_THREADS_TO_SHOW+1,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldDefer:c("gkx")("4606"),shouldQueryAI:w,shouldQueryChannels:A,showContactSupportButton:z&&v&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(F)&&!w,surface:B,tags:a,validForAdAccount:!G&&H,validForBusiness:!G&&!H&&I,validToolType:!G});w=(v=(C=f.outstandingAccounts)==null?void 0:C.account_ids.length)!=null?v:0;a=J?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsHelpTrayContactMarketingProContentContainer",children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:g,shouldQueryChannels:A,solutionsFragmentKey:f,surface:B,updateMarketingProIndex:x})})}):null;H=s?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{adAccountAlertFragmentKey:f.xfb_aymt_am_help_tray_alerts_channel})})}):null;I=r?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:f==null?void 0:f.help_tray_recommended_articles})})}):null;C=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;J=t?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInboxContent.react"),{osmipFragmentKey:(v=f.viewer)==null?void 0:v.osmip})})}):null;A=[{context_key:"CHANNEL",context_value:d("SurveyChannelTypes").CHANNEL_TYPES.HELP_TRAY_HOME_CSAT},{context_key:"APPLICATION",context_value:(g=c("getBusinessCurrentToolType")())!=null?g:""}];B=b("cr:4800")&&j.jsx(c("GeoCard.react"),{children:j.jsx(b("cr:4800"),{integrationPoint:n,surveyContext:A})});x={adAccountFragmentKey:f,adAccountID:e,businessFragmentKey:f,isToolTypeAccountQuality:G,numIssues:w};return!z?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[H,J,u&&y===0?a:null,p?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContent.react"),babelHelpers["extends"]({},x)):null,I,C,u&&y===1?a:null,B]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:H,articleSection:I,assetID:D,assetType:"AD_ACCOUNT",businessID:h,caseTrackingPosition:F,contactMarketingProSolutions:a,directSupportFragmentKey:f,funnelProps:x,inbox:J,marketingProIndex:y,newHelpTray:!0,resourceList:C,setCaseTrackingPosition:E,showToast:i,survey:B})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(p,{adAccountID:b,businessID:d,showToast:e,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeWithDirectSupport.react",["AdsHelpTrayConstants","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayHomeWithDirectSupportQuery.graphql","RelayHooks","getBusinessCurrentToolType","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;function a(a){var e=a.alertList,f=a.articleSection,g=a.assetID,i=a.assetType,l=a.businessID,m=a.contactMarketingProSolutions,n=a.inbox,o=a.marketingProIndex,p=a.otherWidgets,q=a.progressiveOnboardingCard,r=a.resourceList,s=a.showToast;a=a.survey;var t=null;g!=="0"&&(t=g);g=c("getBusinessCurrentToolType")();g=g==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY";var u=k(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),v=u[0];u=u[1];g=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("AdsHelpTrayHomeWithDirectSupportQuery.graphql"),{assetID:t,callerID:g,showContactSupportButton:!1});return j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:e,articleSection:f,assetID:t,assetType:i,businessID:l,caseTrackingPosition:v,contactMarketingProSolutions:m,directSupportFragmentKey:g,inbox:n,marketingProIndex:o,otherWidgets:p,progressiveOnboardingCard:q,resourceList:r,setCaseTrackingPosition:u,showToast:s,survey:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeWithDirectSupportContent.react",["AdsAIEntrypointAvailabilityUtils","AdsFluxHooks","AdsHelpTrayBusinessSupportHomeFunnelContent.react","AdsHelpTrayConstants","AdsHelpTrayContactSupportSection.react","AdsHelpTrayContactSupportSectionContent.react","AdsHelpTrayHomeWithDirectSupportContent_data.graphql","AdsHelpTrayKillswitchContext","AdsHelpTraySpinner.react","AdsHelpTraySupportCase.react","AdsHelpTraySupportCaseFieldToast.react","AdsHelpTraySupportContext","AdsHelpTrayUILogger","BusinessSupportCaseTrackingUtils","CometPlaceholder.react","ErrorBoundary.react","FBLogger","LazyAdsHelpTrayBusinessSupportHomeFunnel.react","RelayFBEnvironment","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useMemo;function n(a){var e=a.alertList,f=a.articleSection,g=a.assetID,i=a.assetType,k=a.businessID,n=a.caseTrackingPosition,o=a.contactMarketingProSolutions,p=a.directSupportFragmentKey,q=a.funnelProps;q=q===void 0?null:q;var r=a.inbox,s=a.marketingProIndex,t=a.newHelpTray;t=t===void 0?!1:t;var u=a.otherWidgets,v=a.progressiveOnboardingCard,w=a.resourceList,x=a.setCaseTrackingPosition,y=a.showToast;a=a.survey;var z=l(c("AdsHelpTrayKillswitchContext")),A=z.contactSupportEnabled,B=z.caseTrackingEnabled,C=z.marketingProEnabled;z=z.funnelEnabled;p=d("RelayHooks").useFragment(h!==void 0?h:h=b("AdsHelpTrayHomeWithDirectSupportContent_data.graphql"),p);var D=p.advertiser_support_access,E=(D==null?void 0:D.is_eligible_for_chat)||!1;D=(D==null?void 0:D.chat_available)||!1;var F=d("AdsAIEntrypointAvailabilityUtils").getIsAdsAIBetaM1EntrypointsAvailable();A=A&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(n)&&!F;F=z?t&&q!=null?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContent.react"),babelHelpers["extends"]({},q)):j.jsx(c("LazyAdsHelpTrayBusinessSupportHomeFunnel.react"),{}):null;z=B?j.jsx(c("AdsHelpTraySupportCase.react"),{casesRef:p,chatAccess:D,isEligibleForChat:E,setCaseTrackingPosition:x,subtitle:d("BusinessSupportCaseTrackingUtils").getSupportCaseWidgetSubtitle(k,i)}):null;q=m(function(){return{assetID:g,entryPoint:d("AdsHelpTraySupportContext").HelpTrayContactSupportEntryPoint.HOME_CONTENT}},[g]);return j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[e,r,C&&s===0?o:null,n===d("AdsHelpTrayConstants").CaseTrackingPosition.TOP&&z,v,f,n===d("AdsHelpTrayConstants").CaseTrackingPosition.MIDDLE&&z,A&&(t?j.jsx(c("AdsHelpTrayContactSupportSectionContent.react"),{chatAccess:D,className:"_3-97",contactSupportKey:p,context:q,isEligibleForChat:E}):j.jsx(c("AdsHelpTrayContactSupportSection.react"),{chatAccess:D,className:"_3-97",context:q,isEligibleForChat:E})),F,w,((B=u)!=null?B:[]).map(function(a){return a}),n===d("AdsHelpTrayConstants").CaseTrackingPosition.BOTTOM&&z,y&&j.jsx(c("AdsHelpTraySupportCaseFieldToast.react"),{}),n===d("AdsHelpTrayConstants").CaseTrackingPosition.NONE&&z,C&&s===1?o:null,a]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=k(function(a){d("AdsHelpTrayUILogger").logHelpTrayGenericError(a,"AdsHelpTrayHomeWithDirectSupportContent"),c("FBLogger")("ads_help_tray").catching(a).warn("Error fetching advertiser support access report and existing cases")},[]);return j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("AdsHelpTraySpinner.react"),{}),name:f.id,children:j.jsx(c("ErrorBoundary.react"),{onError:b,children:j.jsx(n,babelHelpers["extends"]({},a))})})})}a.displayName=a.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AdsHelpTrayHomeWithDirectSupportQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"assetID"},{defaultValue:null,kind:"LocalArgument",name:"callerID"},{defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"}],b={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportQuery",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"AdsHelpTrayHomeWithDirectSupportQuery",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},b],storageKey:null},b],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]},params:{id:"7292115957568554",metadata:{},name:"AdsHelpTrayHomeWithDirectSupportQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeContentQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"alertsEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},e={defaultValue:null,kind:"LocalArgument",name:"assetID"},f={defaultValue:null,kind:"LocalArgument",name:"businessID"},g={defaultValue:null,kind:"LocalArgument",name:"callerID"},h={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},i={defaultValue:null,kind:"LocalArgument",name:"filterOutAdsAIThreadsFromSupport"},j={defaultValue:null,kind:"LocalArgument",name:"inboxEnabled"},k={defaultValue:null,kind:"LocalArgument",name:"marketingProEnabled"},l={defaultValue:null,kind:"LocalArgument",name:"maxThreads"},m={defaultValue:null,kind:"LocalArgument",name:"pathname"},n={defaultValue:null,kind:"LocalArgument",name:"shouldDefer"},o={defaultValue:null,kind:"LocalArgument",name:"shouldQueryAI"},p={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},q={defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"},r={defaultValue:null,kind:"LocalArgument",name:"surface"},s={defaultValue:null,kind:"LocalArgument",name:"tags"},t={defaultValue:null,kind:"LocalArgument",name:"validForAdAccount"},u={defaultValue:null,kind:"LocalArgument",name:"validForBusiness"},v={defaultValue:null,kind:"LocalArgument",name:"validToolType"},w=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],x=[{kind:"Variable",name:"ad_account_id",variableName:"accountID"}],y={condition:"validToolType",kind:"Condition",passingValue:!0,selections:[{alias:"outstandingAccounts",args:[{kind:"Literal",name:"count",value:10},{kind:"Literal",name:"list_type",value:"ACCOUNT"},{kind:"Literal",name:"max_accounts_checked_per_entity_type",value:25}],concreteType:"AccountQualityLandingPageIssuesQueryDetails",kind:"LinkedField",name:"xfb_aq_landing_page_issues_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_ids",storageKey:null}],storageKey:"xfb_aq_landing_page_issues_v2(count:10,list_type:"ACCOUNT",max_accounts_checked_per_entity_type:25)"}]},z={kind:"Variable",name:"filter_out_ads_ai_threads",variableName:"filterOutAdsAIThreadsFromSupport"},A={kind:"Variable",name:"first",variableName:"maxThreads"},B=[z,A,{kind:"Literal",name:"status",value:"ACTIVE"}],C={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"thread_name",storageKey:null},F=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],G={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"thread_image",plural:!1,selections:F,storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"thread_snippet",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"thread_ts",storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"thread_unread",storageKey:null},K={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"facepile_images",plural:!0,selections:F,storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"is_ads_ai_thread",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"is_last_message_from_ads_ai",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},O=[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"nodes",plural:!0,selections:[C,D,E,G,H,I,J,K,L,M],storageKey:null}],P={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},Q=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],R=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}],S={alias:null,args:null,kind:"ScalarField",name:"tip_id",storageKey:null},T=[{kind:"Literal",name:"aymt_action_key",value:"PRIMARY"}],U={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},V=[U],W=[{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[S,C],storageKey:null},C];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentQuery",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]}]},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsOsmipCompactInboxContent_data"}],storageKey:null}]}],storageKey:null},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayAlertListContainer_data"}]}],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data"}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data"}]}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j,k,m,l,n,o,p,q,r,s,t,u,v],kind:"Operation",name:"AdsHelpTrayHomeContentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{alias:"active",args:B,concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFieldsSupportThreadListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"node",plural:!1,selections:[C,D,E,G,H,I,J,K,L,M,N],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"active",args:B,filters:["status","filter_out_ads_ai_threads"],handle:"connection",key:"AdsOsmipSidebarChatButtonQuery__active",kind:"LinkedHandle",name:"support_thread_list"},{alias:"archived",args:[z,A,{kind:"Literal",name:"status",value:"ARCHIVED"}],concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:O,storageKey:null},{condition:"shouldQueryAI",kind:"Condition",passingValue:!0,selections:[{alias:"ai",args:[A],concreteType:"XFBOSMiPViewerFieldsAiThreadListConnection",kind:"LinkedField",name:"ai_thread_list",plural:!1,selections:O,storageKey:null}]}],storageKey:null}]}],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayContactMarketingProContent_data",selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:F,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},P,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sub_program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[N,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:Q,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:Q,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},C],storageKey:null},C],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:R,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},C,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:R,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},C],storageKey:null}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},P,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},C],storageKey:null},C],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayAlertListContainer_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"aymt_request_id",storageKey:null},{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel_id",storageKey:null},S,{alias:null,args:null,kind:"ScalarField",name:"tip_name",storageKey:null},{alias:null,args:null,concreteType:"AYMTTipCreativeSpec",kind:"LinkedField",name:"specs",plural:!0,selections:[{alias:"primary_action",args:null,concreteType:"AYMTActionCreativeElement",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:T,kind:"ScalarField",name:"link",storageKey:"link(aymt_action_key:"PRIMARY")"},{alias:null,args:T,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:"text(aymt_action_key:"PRIMARY")"},{alias:null,args:T,kind:"ScalarField",name:"is_async_link",storageKey:"is_async_link(aymt_action_key:"PRIMARY")"}],storageKey:null},{alias:null,args:null,concreteType:"AYMTBodyCreativeElement",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:[U,{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[C],type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTTitleCreativeElement",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTMetadataCreativeElement",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"icon_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null},C],storageKey:null}]},C],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data",selections:[{alias:"aymtAlertsQuery",args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data",selections:[{alias:"aymtBusinessAlertsQuery",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],concreteType:"XFBAYMTBMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_bm_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]}]},params:{id:"6097006613756215",metadata:{},name:"AdsHelpTrayHomeContentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeWithDirectSupportContent_data.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"assetID"},{kind:"RootArgument",name:"callerID"},{kind:"RootArgument",name:"showContactSupportButton"}],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller_id",variableName:"callerID"},{kind:"Literal",name:"limit",value:2}],kind:"FragmentSpread",name:"AdsHelpTraySupportCase_cases"},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactSupportSectionContent_data"}]}]}],type:"Query",abstractKey:null};e.exports=a}),null);
-----
AdsHelpTrayHomeContentQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"alertsEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},e={defaultValue:null,kind:"LocalArgument",name:"assetID"},f={defaultValue:null,kind:"LocalArgument",name:"businessID"},g={defaultValue:null,kind:"LocalArgument",name:"callerID"},h={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},i={defaultValue:null,kind:"LocalArgument",name:"filterOutAdsAIThreadsFromSupport"},j={defaultValue:null,kind:"LocalArgument",name:"inboxEnabled"},k={defaultValue:null,kind:"LocalArgument",name:"marketingProEnabled"},l={defaultValue:null,kind:"LocalArgument",name:"maxThreads"},m={defaultValue:null,kind:"LocalArgument",name:"pathname"},n={defaultValue:null,kind:"LocalArgument",name:"shouldDefer"},o={defaultValue:null,kind:"LocalArgument",name:"shouldQueryAI"},p={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},q={defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"},r={defaultValue:null,kind:"LocalArgument",name:"surface"},s={defaultValue:null,kind:"LocalArgument",name:"tags"},t={defaultValue:null,kind:"LocalArgument",name:"validForAdAccount"},u={defaultValue:null,kind:"LocalArgument",name:"validForBusiness"},v={defaultValue:null,kind:"LocalArgument",name:"validToolType"},w=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],x=[{kind:"Variable",name:"ad_account_id",variableName:"accountID"}],y={condition:"validToolType",kind:"Condition",passingValue:!0,selections:[{alias:"outstandingAccounts",args:[{kind:"Literal",name:"count",value:10},{kind:"Literal",name:"list_type",value:"ACCOUNT"},{kind:"Literal",name:"max_accounts_checked_per_entity_type",value:25}],concreteType:"AccountQualityLandingPageIssuesQueryDetails",kind:"LinkedField",name:"xfb_aq_landing_page_issues_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_ids",storageKey:null}],storageKey:"xfb_aq_landing_page_issues_v2(count:10,list_type:"ACCOUNT",max_accounts_checked_per_entity_type:25)"}]},z={kind:"Variable",name:"filter_out_ads_ai_threads",variableName:"filterOutAdsAIThreadsFromSupport"},A={kind:"Variable",name:"first",variableName:"maxThreads"},B=[z,A,{kind:"Literal",name:"status",value:"ACTIVE"}],C={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"thread_name",storageKey:null},F=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],G={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"thread_image",plural:!1,selections:F,storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"thread_snippet",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"thread_ts",storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"thread_unread",storageKey:null},K={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"facepile_images",plural:!0,selections:F,storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"is_ads_ai_thread",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"is_last_message_from_ads_ai",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},O=[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"nodes",plural:!0,selections:[C,D,E,G,H,I,J,K,L,M],storageKey:null}],P={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},Q=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],R=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}],S={alias:null,args:null,kind:"ScalarField",name:"tip_id",storageKey:null},T=[{kind:"Literal",name:"aymt_action_key",value:"PRIMARY"}],U={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},V=[U],W=[{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[S,C],storageKey:null},C];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentQuery",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]}]},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsOsmipCompactInboxContent_data"}],storageKey:null}]}],storageKey:null},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayAlertListContainer_data"}]}],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data"}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data"}]}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j,k,m,l,n,o,p,q,r,s,t,u,v],kind:"Operation",name:"AdsHelpTrayHomeContentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{alias:"active",args:B,concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFieldsSupportThreadListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"node",plural:!1,selections:[C,D,E,G,H,I,J,K,L,M,N],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"active",args:B,filters:["status","filter_out_ads_ai_threads"],handle:"connection",key:"AdsOsmipSidebarChatButtonQuery__active",kind:"LinkedHandle",name:"support_thread_list"},{alias:"archived",args:[z,A,{kind:"Literal",name:"status",value:"ARCHIVED"}],concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:O,storageKey:null},{condition:"shouldQueryAI",kind:"Condition",passingValue:!0,selections:[{alias:"ai",args:[A],concreteType:"XFBOSMiPViewerFieldsAiThreadListConnection",kind:"LinkedField",name:"ai_thread_list",plural:!1,selections:O,storageKey:null}]}],storageKey:null}]}],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayContactMarketingProContent_data",selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:F,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},P,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sub_program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[N,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:Q,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:Q,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},C],storageKey:null},C],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:R,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},C,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:R,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},C],storageKey:null}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},P,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},C],storageKey:null},C],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayAlertListContainer_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"aymt_request_id",storageKey:null},{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel_id",storageKey:null},S,{alias:null,args:null,kind:"ScalarField",name:"tip_name",storageKey:null},{alias:null,args:null,concreteType:"AYMTTipCreativeSpec",kind:"LinkedField",name:"specs",plural:!0,selections:[{alias:"primary_action",args:null,concreteType:"AYMTActionCreativeElement",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:T,kind:"ScalarField",name:"link",storageKey:"link(aymt_action_key:"PRIMARY")"},{alias:null,args:T,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:"text(aymt_action_key:"PRIMARY")"},{alias:null,args:T,kind:"ScalarField",name:"is_async_link",storageKey:"is_async_link(aymt_action_key:"PRIMARY")"}],storageKey:null},{alias:null,args:null,concreteType:"AYMTBodyCreativeElement",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:[U,{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[C],type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTTitleCreativeElement",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTMetadataCreativeElement",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"icon_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null},C],storageKey:null}]},C],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data",selections:[{alias:"aymtAlertsQuery",args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data",selections:[{alias:"aymtBusinessAlertsQuery",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],concreteType:"XFBAYMTBMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_bm_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]}]},params:{id:"6097006613756215",metadata:{},name:"AdsHelpTrayHomeContentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeContentV2.react",["AdsHelpTrayAlertListContainer.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentV2Query.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","GeoSpinner.react","LazyAdsHelpTrayBusinessSupportHomeFunnel.react","RelayHooks","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","cr:6636","getBusinessCurrentToolType","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n=h!==void 0?h:h=b("AdsHelpTrayHomeContentV2Query.graphql");function o(a){var e,f=a.adAccountID,g=a.businessID,h=a.isAdsAIConsented,i=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var o=k(c("AdsHelpTrayKillswitchContext")),p=o.resourcesEnabled,q=o.articlesEnabled,r=o.alertsEnabled,s=o.inboxEnabled,t=o.marketingProEnabled,u=o.advertiserAiEnabled;o=o.funnelEnabled;var v=m(0),w=v[0];v=v[1];var x=c("gkx")("21332"),y=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),z=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),A=c("getBusinessCurrentToolType")(),B=A==="BUSINESS_HOME"||A==="BUSINESS_SETTINGS"?g:f;B=B!=="0"?B:null;e=d("RelayHooks").useLazyLoadQuery(n,{accountID:(e=f)!=null?e:"",adAccountID:f,articlesEnabled:q,assetID:B,callerID:A==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:x,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldQueryChannels:y,surface:z,tags:a});A=j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:f,shouldQueryChannels:y,solutionsFragmentKey:e,surface:z,updateMarketingProIndex:v})});a=r?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{})})}):null;f=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:e==null?void 0:e.help_tray_recommended_articles})})}):null;y=p?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;z=c("gkx")("21333")&&u;v=z&&!h;r=z&&h;q=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||r)&&s?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInbox.react"),{isPostConsentAdsAIEntrypointVisible:r})})}):null;p=v&&b("cr:6636")?j.jsx(b("cr:6636"),{}):null;return!x?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[a,p,q,t&&w===0?A:null,o?j.jsx(c("LazyAdsHelpTrayBusinessSupportHomeFunnel.react"),{}):null,f,y,t&&w===1?A:null]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:a,articleSection:f,assetID:B,assetType:"AD_ACCOUNT",businessID:g,contactMarketingProSolutions:A,directSupportFragmentKey:e,inbox:q,marketingProIndex:w,preConsentAdsAIEntrypointCard:p,resourceList:y,showToast:i})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.isAdsAIConsented,f=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(o,{adAccountID:b,businessID:d,isAdsAIConsented:e,showToast:f,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeContentV2Query.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"assetID"},e={defaultValue:null,kind:"LocalArgument",name:"callerID"},f={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},g={defaultValue:null,kind:"LocalArgument",name:"pathname"},h={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},i={defaultValue:null,kind:"LocalArgument",name:"surface"},j={defaultValue:null,kind:"LocalArgument",name:"tags"},k=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},n=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},p=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentV2Query",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j],kind:"Operation",name:"AdsHelpTrayHomeContentV2Query",selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},m,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[l,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:n,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},o],storageKey:null},o],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:p,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},o,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:p,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},o],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},m,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},o],storageKey:null},o],storageKey:null}]}]},params:{id:"7483067028394828",metadata:{},name:"AdsHelpTrayHomeContentV2Query",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeWithDirectSupportContent_data.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"assetID"},{kind:"RootArgument",name:"callerID"}],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller_id",variableName:"callerID"},{kind:"Literal",name:"limit",value:2}],kind:"FragmentSpread",name:"AdsHelpTraySupportCase_cases"}],type:"Query",abstractKey:null};e.exports=a}),null);
-----
AdsHelpTrayHomeWithDirectSupportContent.react",["AdsFluxHooks","AdsHelpTrayConstants","AdsHelpTrayContactSupportButton.react","AdsHelpTrayHomeWithDirectSupportContentQuery.graphql","AdsHelpTrayKillswitchContext","AdsHelpTraySpinner.react","AdsHelpTraySupportCase.react","AdsHelpTraySupportCaseFieldToast.react","AdsHelpTraySupportContext","AdsHelpTrayUILogger","BusinessSupportCaseTrackingUtils","CometPlaceholder.react","ErrorBoundary.react","FBLogger","LazyAdsHelpTrayBusinessSupportHomeFunnel.react","RelayFBEnvironment","RelayHooks","getBusinessCurrentToolType","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useMemo,n=e.useState;function o(a){var e=a.alertList,f=a.articleSection,g=a.assetID,i=a.assetType,k=a.businessID,o=a.contactMarketingProSolutions,p=a.inbox,q=a.otherWidgets,r=a.preConsentAdsAIEntrypointCard,s=a.progressiveOnboardingCard,t=a.resourceList;a=a.showToast;var u=l(c("AdsHelpTrayKillswitchContext")),v=u.contactSupportEnabled,w=u.caseTrackingEnabled,x=u.marketingProEnabled;u=u.funnelEnabled;var y=null;g!=="0"&&(y=g);g=c("getBusinessCurrentToolType")();g=g==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY";g=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("AdsHelpTrayHomeWithDirectSupportContentQuery.graphql"),{assetID:y,callerID:g});var z=n(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),A=z[0];z=z[1];var B=g.advertiser_support_access,C=(B==null?void 0:B.is_eligible_for_chat)||!1;B=(B==null?void 0:B.chat_available)||!1;v=v&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(A);u=u?j.jsx(c("LazyAdsHelpTrayBusinessSupportHomeFunnel.react"),{}):null;w=w?j.jsx(c("AdsHelpTraySupportCase.react"),{casesRef:g,chatAccess:B,isEligibleForChat:C,setCaseTrackingPosition:z,subtitle:d("BusinessSupportCaseTrackingUtils").getSupportCaseWidgetSubtitle(k,i)}):null;g=m(function(){return{assetID:y,entryPoint:d("AdsHelpTraySupportContext").HelpTrayContactSupportEntryPoint.HOME_CONTENT}},[y]);return j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[e,r,p,x?o==null?void 0:o[0]:null,A===d("AdsHelpTrayConstants").CaseTrackingPosition.TOP&&w,s,f,A===d("AdsHelpTrayConstants").CaseTrackingPosition.MIDDLE&&w,v&&j.jsx(d("AdsHelpTraySupportContext").AdsHelpTraySupportContext.Provider,{value:g,children:j.jsx(c("AdsHelpTrayContactSupportButton.react"),{chatAccess:B,className:"_3-97",isEligibleForChat:C})}),u,t,((z=q)!=null?z:[]).map(function(a){return a}),A===d("AdsHelpTrayConstants").CaseTrackingPosition.BOTTOM&&w,a&&j.jsx(c("AdsHelpTraySupportCaseFieldToast.react"),{}),A===d("AdsHelpTrayConstants").CaseTrackingPosition.NONE&&w,x?o==null?void 0:o[1]:null]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=k(function(a){d("AdsHelpTrayUILogger").logHelpTrayGenericError(a,"AdsHelpTrayHomeWithDirectSupportContent"),c("FBLogger")("ads_help_tray").catching(a).warn("Error fetching advertiser support access report and existing cases")},[]);return j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("AdsHelpTraySpinner.react"),{}),name:f.id,children:j.jsx(c("ErrorBoundary.react"),{onError:b,children:j.jsx(o,babelHelpers["extends"]({},a))})})})}a.displayName=a.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AdsHelpTrayHomeWithDirectSupportContentQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"assetID"},{defaultValue:null,kind:"LocalArgument",name:"callerID"}],b={alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},c={kind:"Variable",name:"asset_id",variableName:"assetID"},d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportContentQuery",selections:[b,{args:[c,{kind:"Variable",name:"caller_id",variableName:"callerID"},{kind:"Literal",name:"limit",value:2}],kind:"FragmentSpread",name:"AdsHelpTraySupportCase_cases"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"AdsHelpTrayHomeWithDirectSupportContentQuery",selections:[b,{alias:null,args:[c,{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},d],storageKey:null},d],storageKey:null}]},params:{id:"6247520428684985",metadata:{},name:"AdsHelpTrayHomeWithDirectSupportContentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
-----
AdsHelpTrayHomeContentNew.react",["AdsAIEntrypointAvailabilityUtils","AdsHelpTrayAlertListContainer.react","AdsHelpTrayBusinessSupportHomeFunnelContentNew.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentNewQuery.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","AdsOsmipCompactInboxContent.react","AdsOsmipExperimentUtils","BusinessSupportCaseTrackingUtils","GeoCard.react","GeoSpinner.react","LazyEmbeddedSupportSurvey","RelayHooks","SurveyChannelTypes","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","getBusinessCurrentToolType","getIsAdsAIEnabledOnMBS","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n=h!==void 0?h:h=b("AdsHelpTrayHomeContentNewQuery.graphql");function o(a){var b,e,f=a.adAccountID,g=a.businessID,h=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var i=k(c("AdsHelpTrayKillswitchContext")),o=i.resourcesEnabled,p=i.articlesEnabled,q=i.alertsEnabled,r=i.inboxEnabled,s=i.marketingProEnabled,t=i.contactSupportEnabled,u=i.advertiserAiEnabled;i=i.funnelEnabled;var v=m(0),w=v[0];v=v[1];var x=c("gkx")("21332"),y=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),z=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),A=c("getBusinessCurrentToolType")(),B=A==="BUSINESS_HOME"||A==="BUSINESS_SETTINGS"?g:f;B=B!=="0"?B:null;u=u&&d("AdsAIEntrypointAvailabilityUtils").getIsAdsAIBetaM2EntrypointsAvailable();r=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||u)&&r;var C=m(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),D=C[0];C=C[1];var E=A==="ACCOUNT_QUALITY",F=f!=null&&f!=="",G=g!=null&&g!==""&&A!=="BUSINESS_SUITE_HOME";b=(b=f)!=null?b:"";var H=s&&f!=null&&d("AdsOsmipExperimentUtils").getIsOsmipAB();e=d("RelayHooks").useLazyLoadQuery(n,{accountID:b,adAccountID:f,alertsEnabled:q&&f!=null,articlesEnabled:p,assetID:B,businessID:(e=g)!=null?e:"",callerID:A==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:x,caseTypes:c("gkx")("8528")?["PSO_TIER_1"]:[],filterOutAdsAIThreadsFromSupport:!0,inboxEnabled:r,marketingProEnabled:H,maxThreads:d("AdsOsmipCompactInbox.react").NUM_THREADS_TO_SHOW+1,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldFetchConsentForLWI:c("getIsAdsAIEnabledOnMBS")(),shouldQueryAI:u,shouldQueryChannels:y,shouldShowBSHFunnel:!E&&!c("gkx")("8516"),showContactSupportButton:x&&t&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(D)&&!u,surface:z,tags:a,validForAdAccount:!E&&F,validForBusiness:!E&&!F&&G});A=H?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsHelpTrayContactMarketingProContentContainer",children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:f,shouldQueryChannels:y,solutionsFragmentKey:e,surface:z,updateMarketingProIndex:v})})}):null;t=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{adAccountAlertFragmentKey:e.xfb_aymt_am_help_tray_alerts_channel})})}):null;u=p?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:e==null?void 0:e.help_tray_recommended_articles})})}):null;a=o?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;F=r?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInboxContent.react"),{osmipFragmentKey:e})})}):null;H=[{context_key:"CHANNEL",context_value:d("SurveyChannelTypes").CHANNEL_TYPES.HELP_TRAY_HOME_CSAT},{context_key:"APPLICATION",context_value:(G=c("getBusinessCurrentToolType")())!=null?G:""}];f=c("LazyEmbeddedSupportSurvey")&&j.jsx(c("GeoCard.react"),{children:j.jsx(c("LazyEmbeddedSupportSurvey"),{integrationPoint:d("SurveyChannelTypes").CSAT_SURVEY_INTEGRATION_POINT,surveyContext:H})});y={adAccountID:b,fragmentKey:e,isToolTypeAccountQuality:E};return!x?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[t,F,s&&w===0?A:null,i?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContentNew.react"),babelHelpers["extends"]({},y)):null,u,a,s&&w===1?A:null,f]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:t,articleSection:u,assetID:B,assetType:"AD_ACCOUNT",businessID:g,caseTrackingPosition:D,contactMarketingProSolutions:A,directSupportFragmentKey:e,funnelPropsNew:y,inbox:F,marketingProIndex:w,newHelpTray:!0,resourceList:a,setCaseTrackingPosition:C,showToast:h,survey:f})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(o,{adAccountID:b,businessID:d,showToast:e,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeContentV2.react",["AdsAIUtils","AdsHelpTrayAlertListContainer.react","AdsHelpTrayBusinessSupportHomeFunnelContent.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentV2Query.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","AdsOsmipCompactInboxContent.react","AdsOsmipExperimentUtils","BusinessSupportCaseTrackingUtils","GeoCard.react","GeoSpinner.react","RelayHooks","SurveyChannelTypes","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","cr:4800","getBusinessCurrentToolType","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n="752946023489429",o=h!==void 0?h:h=b("AdsHelpTrayHomeContentV2Query.graphql");function p(a){var e,f,g=a.adAccountID,h=a.businessID,i=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var p=k(c("AdsHelpTrayKillswitchContext")),q=p.resourcesEnabled,r=p.articlesEnabled,s=p.alertsEnabled,t=p.inboxEnabled,u=p.marketingProEnabled,v=p.contactSupportEnabled,w=p.advertiserAiEnabled;p=p.funnelEnabled;var x=m(0),y=x[0];x=x[1];var z=c("gkx")("21332"),A=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),B=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),C=c("getBusinessCurrentToolType")(),D=C==="BUSINESS_HOME"||C==="BUSINESS_SETTINGS"?h:g;D=D!=="0"?D:null;w=w&&d("AdsAIUtils").getIsAdsAIChatAvailable();t=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||w)&&t;var E=m(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),F=E[0];E=E[1];var G=C==="ACCOUNT_QUALITY",H=g!=null&&g!=="",I=h!=null&&h!==""&&C!=="BUSINESS_SUITE_HOME";e=(e=g)!=null?e:"";var J=u&&g!=null&&d("AdsOsmipExperimentUtils").getIsOsmipAB();f=d("RelayHooks").useLazyLoadQuery(o,{accountID:e,adAccountID:g,alertsEnabled:s&&g!=null,articlesEnabled:r,assetID:D,businessID:(f=h)!=null?f:"",callerID:C==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:z,inboxEnabled:t,marketingProEnabled:J,maxThreads:d("AdsOsmipCompactInbox.react").NUM_THREADS_TO_SHOW+1,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldDefer:c("gkx")("1827"),shouldQueryAI:w,shouldQueryChannels:A,showContactSupportButton:z&&v&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(F)&&!w,surface:B,tags:a,validForAdAccount:!G&&H,validForBusiness:!G&&!H&&I,validToolType:!G});w=(v=(C=f.outstandingAccounts)==null?void 0:C.account_ids.length)!=null?v:0;a=J?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsHelpTrayContactMarketingProContentContainer",children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:g,shouldQueryChannels:A,solutionsFragmentKey:f,surface:B,updateMarketingProIndex:x})})}):null;H=s?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{adAccountAlertFragmentKey:f.xfb_aymt_am_help_tray_alerts_channel})})}):null;I=r?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:f==null?void 0:f.help_tray_recommended_articles})})}):null;C=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;J=t?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInboxContent.react"),{osmipFragmentKey:(v=f.viewer)==null?void 0:v.osmip})})}):null;A=[{context_key:"CHANNEL",context_value:d("SurveyChannelTypes").CHANNEL_TYPES.HELP_TRAY_HOME_CSAT},{context_key:"APPLICATION",context_value:(g=c("getBusinessCurrentToolType")())!=null?g:""}];B=b("cr:4800")&&j.jsx(c("GeoCard.react"),{children:j.jsx(b("cr:4800"),{integrationPoint:n,surveyContext:A})});x={adAccountFragmentKey:f,adAccountID:e,businessFragmentKey:f,isToolTypeAccountQuality:G,numIssues:w};return!z?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[H,J,u&&y===0?a:null,p?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContent.react"),babelHelpers["extends"]({},x)):null,I,C,u&&y===1?a:null,B]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:H,articleSection:I,assetID:D,assetType:"AD_ACCOUNT",businessID:h,caseTrackingPosition:F,contactMarketingProSolutions:a,directSupportFragmentKey:f,funnelProps:x,inbox:J,marketingProIndex:y,newHelpTray:!0,resourceList:C,setCaseTrackingPosition:E,showToast:i,survey:B})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(p,{adAccountID:b,businessID:d,showToast:e,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeContentV2Query.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"alertsEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},e={defaultValue:null,kind:"LocalArgument",name:"assetID"},f={defaultValue:null,kind:"LocalArgument",name:"businessID"},g={defaultValue:null,kind:"LocalArgument",name:"callerID"},h={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},i={defaultValue:null,kind:"LocalArgument",name:"inboxEnabled"},j={defaultValue:null,kind:"LocalArgument",name:"marketingProEnabled"},k={defaultValue:null,kind:"LocalArgument",name:"maxThreads"},l={defaultValue:null,kind:"LocalArgument",name:"pathname"},m={defaultValue:null,kind:"LocalArgument",name:"shouldDefer"},n={defaultValue:null,kind:"LocalArgument",name:"shouldQueryAI"},o={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},p={defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"},q={defaultValue:null,kind:"LocalArgument",name:"surface"},r={defaultValue:null,kind:"LocalArgument",name:"tags"},s={defaultValue:null,kind:"LocalArgument",name:"validForAdAccount"},t={defaultValue:null,kind:"LocalArgument",name:"validForBusiness"},u={defaultValue:null,kind:"LocalArgument",name:"validToolType"},v=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],w=[{kind:"Variable",name:"ad_account_id",variableName:"accountID"}],x={condition:"validToolType",kind:"Condition",passingValue:!0,selections:[{alias:"outstandingAccounts",args:[{kind:"Literal",name:"count",value:10},{kind:"Literal",name:"list_type",value:"ACCOUNT"},{kind:"Literal",name:"max_accounts_checked_per_entity_type",value:25}],concreteType:"AccountQualityLandingPageIssuesQueryDetails",kind:"LinkedField",name:"xfb_aq_landing_page_issues_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_ids",storageKey:null}],storageKey:"xfb_aq_landing_page_issues_v2(count:10,list_type:"ACCOUNT",max_accounts_checked_per_entity_type:25)"}]},y={kind:"Variable",name:"first",variableName:"maxThreads"},z=[y,{kind:"Literal",name:"status",value:"ACTIVE"}],A={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},C={alias:null,args:null,kind:"ScalarField",name:"thread_name",storageKey:null},D=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],E={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"thread_image",plural:!1,selections:D,storageKey:null},F={alias:null,args:null,kind:"ScalarField",name:"thread_snippet",storageKey:null},G={alias:null,args:null,kind:"ScalarField",name:"thread_ts",storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"thread_unread",storageKey:null},I={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"facepile_images",plural:!0,selections:D,storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},K=[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"nodes",plural:!0,selections:[A,B,C,E,F,G,H,I],storageKey:null}],L={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},M=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],N=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}],O={alias:null,args:null,kind:"ScalarField",name:"tip_id",storageKey:null},P=[{kind:"Literal",name:"aymt_action_key",value:"PRIMARY"}],Q={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},R=[Q],S=[{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[O,A],storageKey:null},A];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentV2Query",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:v,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsOsmipCompactInboxContent_data"}],storageKey:null}]}],storageKey:null},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayAlertListContainer_data"}]}],storageKey:null}]},x,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data"}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data"}]}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j,l,k,m,n,o,p,q,r,s,t,u],kind:"Operation",name:"AdsHelpTrayHomeContentV2Query",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{alias:"active",args:z,concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFieldsSupportThreadListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"node",plural:!1,selections:[A,B,C,E,F,G,H,I,J],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"active",args:z,filters:["status"],handle:"connection",key:"AdsOsmipSidebarChatButtonQuery__active",kind:"LinkedHandle",name:"support_thread_list"},{alias:"archived",args:[y,{kind:"Literal",name:"status",value:"ARCHIVED"}],concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:K,storageKey:null},{condition:"shouldQueryAI",kind:"Condition",passingValue:!0,selections:[{alias:"ai",args:[y],concreteType:"XFBOSMiPViewerFieldsAiThreadListConnection",kind:"LinkedField",name:"ai_thread_list",plural:!1,selections:K,storageKey:null}]}],storageKey:null}]}],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:v,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:D,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[J,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},L,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sub_program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[J,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:M,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:M,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},A],storageKey:null},A],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:N,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},A,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:N,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},A],storageKey:null}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},L,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[J,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},A],storageKey:null},A],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentV2Query$defer$AdsHelpTrayAlertListContainer_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"aymt_request_id",storageKey:null},{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel_id",storageKey:null},O,{alias:null,args:null,kind:"ScalarField",name:"tip_name",storageKey:null},{alias:null,args:null,concreteType:"AYMTTipCreativeSpec",kind:"LinkedField",name:"specs",plural:!0,selections:[{alias:"primary_action",args:null,concreteType:"AYMTActionCreativeElement",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:P,kind:"ScalarField",name:"link",storageKey:"link(aymt_action_key:"PRIMARY")"},{alias:null,args:P,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:R,storageKey:"text(aymt_action_key:"PRIMARY")"},{alias:null,args:P,kind:"ScalarField",name:"is_async_link",storageKey:"is_async_link(aymt_action_key:"PRIMARY")"}],storageKey:null},{alias:null,args:null,concreteType:"AYMTBodyCreativeElement",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:[Q,{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[J,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[A],type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTTitleCreativeElement",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:R,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTMetadataCreativeElement",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"icon_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null},A],storageKey:null}]},A],storageKey:null}]},x,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentV2Query$defer$AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data",selections:[{alias:"aymtAlertsQuery",args:w,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:S,storageKey:null}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentV2Query$defer$AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data",selections:[{alias:"aymtBusinessAlertsQuery",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],concreteType:"XFBAYMTBMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_bm_help_tray_alerts_channel",plural:!1,selections:S,storageKey:null}]}]}]},params:{id:"25893422920271072",metadata:{},name:"AdsHelpTrayHomeContentV2Query",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeContent.react",["AdsAIEntrypointAvailabilityUtils","AdsHelpTrayAlertListContainer.react","AdsHelpTrayBusinessSupportHomeFunnelContent.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentQuery.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","AdsOsmipCompactInboxContent.react","AdsOsmipExperimentUtils","BusinessSupportCaseTrackingUtils","GeoCard.react","GeoSpinner.react","RelayHooks","SurveyChannelTypes","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","cr:4800","getBusinessCurrentToolType","gkx","justknobx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n="752946023489429",o=h!==void 0?h:h=b("AdsHelpTrayHomeContentQuery.graphql");function p(a){var e,f,g=a.adAccountID,h=a.businessID,i=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var p=k(c("AdsHelpTrayKillswitchContext")),q=p.resourcesEnabled,r=p.articlesEnabled,s=p.alertsEnabled,t=p.inboxEnabled,u=p.marketingProEnabled,v=p.contactSupportEnabled,w=p.advertiserAiEnabled;p=p.funnelEnabled;var x=m(0),y=x[0];x=x[1];var z=c("gkx")("21332"),A=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),B=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),C=c("getBusinessCurrentToolType")(),D=C==="BUSINESS_HOME"||C==="BUSINESS_SETTINGS"?h:g;D=D!=="0"?D:null;w=w&&d("AdsAIEntrypointAvailabilityUtils").getIsAdsAIBetaM1EntrypointsAvailable();t=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||w)&&t;var E=m(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),F=E[0];E=E[1];var G=C==="ACCOUNT_QUALITY",H=g!=null&&g!=="",I=h!=null&&h!==""&&C!=="BUSINESS_SUITE_HOME";e=(e=g)!=null?e:"";var J=u&&g!=null&&d("AdsOsmipExperimentUtils").getIsOsmipAB();f=d("RelayHooks").useLazyLoadQuery(o,{accountID:e,adAccountID:g,alertsEnabled:s&&g!=null,articlesEnabled:r,assetID:D,businessID:(f=h)!=null?f:"",callerID:C==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:z,filterOutAdsAIThreadsFromSupport:c("justknobx")._("2160"),inboxEnabled:t,marketingProEnabled:J,maxThreads:d("AdsOsmipCompactInbox.react").NUM_THREADS_TO_SHOW+1,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldDefer:c("gkx")("4606"),shouldQueryAI:w,shouldQueryChannels:A,showContactSupportButton:z&&v&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(F)&&!w,surface:B,tags:a,validForAdAccount:!G&&H,validForBusiness:!G&&!H&&I,validToolType:!G});w=(v=(C=f.outstandingAccounts)==null?void 0:C.account_ids.length)!=null?v:0;a=J?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsHelpTrayContactMarketingProContentContainer",children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:g,shouldQueryChannels:A,solutionsFragmentKey:f,surface:B,updateMarketingProIndex:x})})}):null;H=s?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{adAccountAlertFragmentKey:f.xfb_aymt_am_help_tray_alerts_channel})})}):null;I=r?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:f==null?void 0:f.help_tray_recommended_articles})})}):null;C=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;J=t?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInboxContent.react"),{osmipFragmentKey:(v=f.viewer)==null?void 0:v.osmip})})}):null;A=[{context_key:"CHANNEL",context_value:d("SurveyChannelTypes").CHANNEL_TYPES.HELP_TRAY_HOME_CSAT},{context_key:"APPLICATION",context_value:(g=c("getBusinessCurrentToolType")())!=null?g:""}];B=b("cr:4800")&&j.jsx(c("GeoCard.react"),{children:j.jsx(b("cr:4800"),{integrationPoint:n,surveyContext:A})});x={adAccountFragmentKey:f,adAccountID:e,businessFragmentKey:f,isToolTypeAccountQuality:G,numIssues:w};return!z?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[H,J,u&&y===0?a:null,p?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContent.react"),babelHelpers["extends"]({},x)):null,I,C,u&&y===1?a:null,B]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:H,articleSection:I,assetID:D,assetType:"AD_ACCOUNT",businessID:h,caseTrackingPosition:F,contactMarketingProSolutions:a,directSupportFragmentKey:f,funnelProps:x,inbox:J,marketingProIndex:y,newHelpTray:!0,resourceList:C,setCaseTrackingPosition:E,showToast:i,survey:B})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(p,{adAccountID:b,businessID:d,showToast:e,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeWithDirectSupport.react",["AdsHelpTrayConstants","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayHomeWithDirectSupportQuery.graphql","RelayHooks","getBusinessCurrentToolType","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;function a(a){var e=a.alertList,f=a.articleSection,g=a.assetID,i=a.assetType,l=a.businessID,m=a.contactMarketingProSolutions,n=a.inbox,o=a.marketingProIndex,p=a.otherWidgets,q=a.progressiveOnboardingCard,r=a.resourceList,s=a.showToast;a=a.survey;var t=null;g!=="0"&&(t=g);g=c("getBusinessCurrentToolType")();g=g==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY";var u=k(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),v=u[0];u=u[1];g=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("AdsHelpTrayHomeWithDirectSupportQuery.graphql"),{assetID:t,callerID:g,showContactSupportButton:!1});return j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:e,articleSection:f,assetID:t,assetType:i,businessID:l,caseTrackingPosition:v,contactMarketingProSolutions:m,directSupportFragmentKey:g,inbox:n,marketingProIndex:o,otherWidgets:p,progressiveOnboardingCard:q,resourceList:r,setCaseTrackingPosition:u,showToast:s,survey:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeWithDirectSupportContent.react",["AdsAIEntrypointAvailabilityUtils","AdsFluxHooks","AdsHelpTrayBusinessSupportHomeFunnelContent.react","AdsHelpTrayConstants","AdsHelpTrayContactSupportSection.react","AdsHelpTrayContactSupportSectionContent.react","AdsHelpTrayHomeWithDirectSupportContent_data.graphql","AdsHelpTrayKillswitchContext","AdsHelpTraySpinner.react","AdsHelpTraySupportCase.react","AdsHelpTraySupportCaseFieldToast.react","AdsHelpTraySupportContext","AdsHelpTrayUILogger","BusinessSupportCaseTrackingUtils","CometPlaceholder.react","ErrorBoundary.react","FBLogger","LazyAdsHelpTrayBusinessSupportHomeFunnel.react","RelayFBEnvironment","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useMemo;function n(a){var e=a.alertList,f=a.articleSection,g=a.assetID,i=a.assetType,k=a.businessID,n=a.caseTrackingPosition,o=a.contactMarketingProSolutions,p=a.directSupportFragmentKey,q=a.funnelProps;q=q===void 0?null:q;var r=a.inbox,s=a.marketingProIndex,t=a.newHelpTray;t=t===void 0?!1:t;var u=a.otherWidgets,v=a.progressiveOnboardingCard,w=a.resourceList,x=a.setCaseTrackingPosition,y=a.showToast;a=a.survey;var z=l(c("AdsHelpTrayKillswitchContext")),A=z.contactSupportEnabled,B=z.caseTrackingEnabled,C=z.marketingProEnabled;z=z.funnelEnabled;p=d("RelayHooks").useFragment(h!==void 0?h:h=b("AdsHelpTrayHomeWithDirectSupportContent_data.graphql"),p);var D=p.advertiser_support_access,E=(D==null?void 0:D.is_eligible_for_chat)||!1;D=(D==null?void 0:D.chat_available)||!1;var F=d("AdsAIEntrypointAvailabilityUtils").getIsAdsAIBetaM1EntrypointsAvailable();A=A&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(n)&&!F;F=z?t&&q!=null?j.jsx(c("AdsHelpTrayBusinessSupportHomeFunnelContent.react"),babelHelpers["extends"]({},q)):j.jsx(c("LazyAdsHelpTrayBusinessSupportHomeFunnel.react"),{}):null;z=B?j.jsx(c("AdsHelpTraySupportCase.react"),{casesRef:p,chatAccess:D,isEligibleForChat:E,setCaseTrackingPosition:x,subtitle:d("BusinessSupportCaseTrackingUtils").getSupportCaseWidgetSubtitle(k,i)}):null;q=m(function(){return{assetID:g,entryPoint:d("AdsHelpTraySupportContext").HelpTrayContactSupportEntryPoint.HOME_CONTENT}},[g]);return j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[e,r,C&&s===0?o:null,n===d("AdsHelpTrayConstants").CaseTrackingPosition.TOP&&z,v,f,n===d("AdsHelpTrayConstants").CaseTrackingPosition.MIDDLE&&z,A&&(t?j.jsx(c("AdsHelpTrayContactSupportSectionContent.react"),{chatAccess:D,className:"_3-97",contactSupportKey:p,context:q,isEligibleForChat:E}):j.jsx(c("AdsHelpTrayContactSupportSection.react"),{chatAccess:D,className:"_3-97",context:q,isEligibleForChat:E})),F,w,((B=u)!=null?B:[]).map(function(a){return a}),n===d("AdsHelpTrayConstants").CaseTrackingPosition.BOTTOM&&z,y&&j.jsx(c("AdsHelpTraySupportCaseFieldToast.react"),{}),n===d("AdsHelpTrayConstants").CaseTrackingPosition.NONE&&z,C&&s===1?o:null,a]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=k(function(a){d("AdsHelpTrayUILogger").logHelpTrayGenericError(a,"AdsHelpTrayHomeWithDirectSupportContent"),c("FBLogger")("ads_help_tray").catching(a).warn("Error fetching advertiser support access report and existing cases")},[]);return j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("AdsHelpTraySpinner.react"),{}),name:f.id,children:j.jsx(c("ErrorBoundary.react"),{onError:b,children:j.jsx(n,babelHelpers["extends"]({},a))})})})}a.displayName=a.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AdsHelpTrayHomeWithDirectSupportQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"assetID"},{defaultValue:null,kind:"LocalArgument",name:"callerID"},{defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"}],b={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportQuery",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"AdsHelpTrayHomeWithDirectSupportQuery",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},b],storageKey:null},b],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]},params:{id:"7292115957568554",metadata:{},name:"AdsHelpTrayHomeWithDirectSupportQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeContentQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"alertsEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},e={defaultValue:null,kind:"LocalArgument",name:"assetID"},f={defaultValue:null,kind:"LocalArgument",name:"businessID"},g={defaultValue:null,kind:"LocalArgument",name:"callerID"},h={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},i={defaultValue:null,kind:"LocalArgument",name:"filterOutAdsAIThreadsFromSupport"},j={defaultValue:null,kind:"LocalArgument",name:"inboxEnabled"},k={defaultValue:null,kind:"LocalArgument",name:"marketingProEnabled"},l={defaultValue:null,kind:"LocalArgument",name:"maxThreads"},m={defaultValue:null,kind:"LocalArgument",name:"pathname"},n={defaultValue:null,kind:"LocalArgument",name:"shouldDefer"},o={defaultValue:null,kind:"LocalArgument",name:"shouldQueryAI"},p={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},q={defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"},r={defaultValue:null,kind:"LocalArgument",name:"surface"},s={defaultValue:null,kind:"LocalArgument",name:"tags"},t={defaultValue:null,kind:"LocalArgument",name:"validForAdAccount"},u={defaultValue:null,kind:"LocalArgument",name:"validForBusiness"},v={defaultValue:null,kind:"LocalArgument",name:"validToolType"},w=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],x=[{kind:"Variable",name:"ad_account_id",variableName:"accountID"}],y={condition:"validToolType",kind:"Condition",passingValue:!0,selections:[{alias:"outstandingAccounts",args:[{kind:"Literal",name:"count",value:10},{kind:"Literal",name:"list_type",value:"ACCOUNT"},{kind:"Literal",name:"max_accounts_checked_per_entity_type",value:25}],concreteType:"AccountQualityLandingPageIssuesQueryDetails",kind:"LinkedField",name:"xfb_aq_landing_page_issues_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_ids",storageKey:null}],storageKey:"xfb_aq_landing_page_issues_v2(count:10,list_type:"ACCOUNT",max_accounts_checked_per_entity_type:25)"}]},z={kind:"Variable",name:"filter_out_ads_ai_threads",variableName:"filterOutAdsAIThreadsFromSupport"},A={kind:"Variable",name:"first",variableName:"maxThreads"},B=[z,A,{kind:"Literal",name:"status",value:"ACTIVE"}],C={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"thread_name",storageKey:null},F=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],G={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"thread_image",plural:!1,selections:F,storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"thread_snippet",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"thread_ts",storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"thread_unread",storageKey:null},K={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"facepile_images",plural:!0,selections:F,storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"is_ads_ai_thread",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"is_last_message_from_ads_ai",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},O=[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"nodes",plural:!0,selections:[C,D,E,G,H,I,J,K,L,M],storageKey:null}],P={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},Q=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],R=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}],S={alias:null,args:null,kind:"ScalarField",name:"tip_id",storageKey:null},T=[{kind:"Literal",name:"aymt_action_key",value:"PRIMARY"}],U={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},V=[U],W=[{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[S,C],storageKey:null},C];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentQuery",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]}]},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsOsmipCompactInboxContent_data"}],storageKey:null}]}],storageKey:null},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayAlertListContainer_data"}]}],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data"}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data"}]}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j,k,m,l,n,o,p,q,r,s,t,u,v],kind:"Operation",name:"AdsHelpTrayHomeContentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{alias:"active",args:B,concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFieldsSupportThreadListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"node",plural:!1,selections:[C,D,E,G,H,I,J,K,L,M,N],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"active",args:B,filters:["status","filter_out_ads_ai_threads"],handle:"connection",key:"AdsOsmipSidebarChatButtonQuery__active",kind:"LinkedHandle",name:"support_thread_list"},{alias:"archived",args:[z,A,{kind:"Literal",name:"status",value:"ARCHIVED"}],concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:O,storageKey:null},{condition:"shouldQueryAI",kind:"Condition",passingValue:!0,selections:[{alias:"ai",args:[A],concreteType:"XFBOSMiPViewerFieldsAiThreadListConnection",kind:"LinkedField",name:"ai_thread_list",plural:!1,selections:O,storageKey:null}]}],storageKey:null}]}],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayContactMarketingProContent_data",selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:F,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},P,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sub_program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[N,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:Q,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:Q,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},C],storageKey:null},C],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:R,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},C,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:R,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},C],storageKey:null}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},P,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},C],storageKey:null},C],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayAlertListContainer_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"aymt_request_id",storageKey:null},{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel_id",storageKey:null},S,{alias:null,args:null,kind:"ScalarField",name:"tip_name",storageKey:null},{alias:null,args:null,concreteType:"AYMTTipCreativeSpec",kind:"LinkedField",name:"specs",plural:!0,selections:[{alias:"primary_action",args:null,concreteType:"AYMTActionCreativeElement",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:T,kind:"ScalarField",name:"link",storageKey:"link(aymt_action_key:"PRIMARY")"},{alias:null,args:T,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:"text(aymt_action_key:"PRIMARY")"},{alias:null,args:T,kind:"ScalarField",name:"is_async_link",storageKey:"is_async_link(aymt_action_key:"PRIMARY")"}],storageKey:null},{alias:null,args:null,concreteType:"AYMTBodyCreativeElement",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:[U,{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[C],type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTTitleCreativeElement",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTMetadataCreativeElement",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"icon_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null},C],storageKey:null}]},C],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data",selections:[{alias:"aymtAlertsQuery",args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data",selections:[{alias:"aymtBusinessAlertsQuery",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],concreteType:"XFBAYMTBMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_bm_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]}]},params:{id:"6097006613756215",metadata:{},name:"AdsHelpTrayHomeContentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeWithDirectSupportContent_data.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"assetID"},{kind:"RootArgument",name:"callerID"},{kind:"RootArgument",name:"showContactSupportButton"}],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller_id",variableName:"callerID"},{kind:"Literal",name:"limit",value:2}],kind:"FragmentSpread",name:"AdsHelpTraySupportCase_cases"},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactSupportSectionContent_data"}]}]}],type:"Query",abstractKey:null};e.exports=a}),null);
-----
AdsHelpTrayHomeContentQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"alertsEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},e={defaultValue:null,kind:"LocalArgument",name:"assetID"},f={defaultValue:null,kind:"LocalArgument",name:"businessID"},g={defaultValue:null,kind:"LocalArgument",name:"callerID"},h={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},i={defaultValue:null,kind:"LocalArgument",name:"filterOutAdsAIThreadsFromSupport"},j={defaultValue:null,kind:"LocalArgument",name:"inboxEnabled"},k={defaultValue:null,kind:"LocalArgument",name:"marketingProEnabled"},l={defaultValue:null,kind:"LocalArgument",name:"maxThreads"},m={defaultValue:null,kind:"LocalArgument",name:"pathname"},n={defaultValue:null,kind:"LocalArgument",name:"shouldDefer"},o={defaultValue:null,kind:"LocalArgument",name:"shouldQueryAI"},p={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},q={defaultValue:null,kind:"LocalArgument",name:"showContactSupportButton"},r={defaultValue:null,kind:"LocalArgument",name:"surface"},s={defaultValue:null,kind:"LocalArgument",name:"tags"},t={defaultValue:null,kind:"LocalArgument",name:"validForAdAccount"},u={defaultValue:null,kind:"LocalArgument",name:"validForBusiness"},v={defaultValue:null,kind:"LocalArgument",name:"validToolType"},w=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],x=[{kind:"Variable",name:"ad_account_id",variableName:"accountID"}],y={condition:"validToolType",kind:"Condition",passingValue:!0,selections:[{alias:"outstandingAccounts",args:[{kind:"Literal",name:"count",value:10},{kind:"Literal",name:"list_type",value:"ACCOUNT"},{kind:"Literal",name:"max_accounts_checked_per_entity_type",value:25}],concreteType:"AccountQualityLandingPageIssuesQueryDetails",kind:"LinkedField",name:"xfb_aq_landing_page_issues_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"account_ids",storageKey:null}],storageKey:"xfb_aq_landing_page_issues_v2(count:10,list_type:"ACCOUNT",max_accounts_checked_per_entity_type:25)"}]},z={kind:"Variable",name:"filter_out_ads_ai_threads",variableName:"filterOutAdsAIThreadsFromSupport"},A={kind:"Variable",name:"first",variableName:"maxThreads"},B=[z,A,{kind:"Literal",name:"status",value:"ACTIVE"}],C={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"thread_name",storageKey:null},F=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],G={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"thread_image",plural:!1,selections:F,storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"thread_snippet",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"thread_ts",storageKey:null},J={alias:null,args:null,kind:"ScalarField",name:"thread_unread",storageKey:null},K={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"facepile_images",plural:!0,selections:F,storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"is_ads_ai_thread",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"is_last_message_from_ads_ai",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},O=[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"nodes",plural:!0,selections:[C,D,E,G,H,I,J,K,L,M],storageKey:null}],P={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},Q=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],R=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}],S={alias:null,args:null,kind:"ScalarField",name:"tip_id",storageKey:null},T=[{kind:"Literal",name:"aymt_action_key",value:"PRIMARY"}],U={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},V=[U],W=[{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[S,C],storageKey:null},C];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentQuery",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]}]},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsOsmipCompactInboxContent_data"}],storageKey:null}]}],storageKey:null},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayAlertListContainer_data"}]}],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data"}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data"}]}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j,k,m,l,n,o,p,q,r,s,t,u,v],kind:"Operation",name:"AdsHelpTrayHomeContentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"inboxEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFields",kind:"LinkedField",name:"osmip",plural:!1,selections:[{alias:"active",args:B,concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBOSMiPViewerFieldsSupportThreadListEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBSupportThreadDetail",kind:"LinkedField",name:"node",plural:!1,selections:[C,D,E,G,H,I,J,K,L,M,N],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:"active",args:B,filters:["status","filter_out_ads_ai_threads"],handle:"connection",key:"AdsOsmipSidebarChatButtonQuery__active",kind:"LinkedHandle",name:"support_thread_list"},{alias:"archived",args:[z,A,{kind:"Literal",name:"status",value:"ARCHIVED"}],concreteType:"XFBOSMiPViewerFieldsSupportThreadListConnection",kind:"LinkedField",name:"support_thread_list",plural:!1,selections:O,storageKey:null},{condition:"shouldQueryAI",kind:"Condition",passingValue:!0,selections:[{alias:"ai",args:[A],concreteType:"XFBOSMiPViewerFieldsAiThreadListConnection",kind:"LinkedField",name:"ai_thread_list",plural:!1,selections:O,storageKey:null}]}],storageKey:null}]}],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:w,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"marketingProEnabled",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayContactMarketingProContent_data",selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:F,storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},P,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sub_program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[N,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:Q,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:Q,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},C],storageKey:null},C],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:R,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},C,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:R,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},C],storageKey:null}]}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{"if":"shouldDefer",kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},P,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},C],storageKey:null},C],storageKey:null},{condition:"showContactSupportButton",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeWithDirectSupportContent_data$defer$AdsHelpTrayContactSupportSectionContent_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_access_to_prioritized_mv4b_support",storageKey:null}]}]}]}]},{condition:"alertsEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayAlertListContainer_data",selections:[{alias:null,args:null,kind:"ScalarField",name:"aymt_request_id",storageKey:null},{alias:null,args:null,concreteType:"AYMTTip",kind:"LinkedField",name:"tips",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"channel_id",storageKey:null},S,{alias:null,args:null,kind:"ScalarField",name:"tip_name",storageKey:null},{alias:null,args:null,concreteType:"AYMTTipCreativeSpec",kind:"LinkedField",name:"specs",plural:!0,selections:[{alias:"primary_action",args:null,concreteType:"AYMTActionCreativeElement",kind:"LinkedField",name:"action",plural:!1,selections:[{alias:null,args:T,kind:"ScalarField",name:"link",storageKey:"link(aymt_action_key:"PRIMARY")"},{alias:null,args:T,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:"text(aymt_action_key:"PRIMARY")"},{alias:null,args:T,kind:"ScalarField",name:"is_async_link",storageKey:"is_async_link(aymt_action_key:"PRIMARY")"}],storageKey:null},{alias:null,args:null,concreteType:"AYMTBodyCreativeElement",kind:"LinkedField",name:"body",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:[U,{alias:null,args:null,concreteType:"EntityAtRange",kind:"LinkedField",name:"ranges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[N,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[C],type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTTitleCreativeElement",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"text",plural:!1,selections:V,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AYMTMetadataCreativeElement",kind:"LinkedField",name:"metadata",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"icon_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null},C],storageKey:null}]},C],storageKey:null}]},y,{condition:"validForAdAccount",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentAdAccount_data",selections:[{alias:"aymtAlertsQuery",args:x,concreteType:"XFBAYMTAMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_am_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]},{condition:"validForBusiness",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"AdsHelpTrayHomeContentQuery$defer$AdsHelpTrayBusinessSupportHomeFunnelContentBusinessAccount_data",selections:[{alias:"aymtBusinessAlertsQuery",args:[{kind:"Variable",name:"business_id",variableName:"businessID"}],concreteType:"XFBAYMTBMHelpTrayAlertsChannel",kind:"LinkedField",name:"xfb_aymt_bm_help_tray_alerts_channel",plural:!1,selections:W,storageKey:null}]}]}]},params:{id:"6097006613756215",metadata:{},name:"AdsHelpTrayHomeContentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeContentV2.react",["AdsHelpTrayAlertListContainer.react","AdsHelpTrayConstants","AdsHelpTrayContactMarketingProContent.react","AdsHelpTrayErrorBoundary.react","AdsHelpTrayHomeContentV2Query.graphql","AdsHelpTrayHomeWithDirectSupportContent.react","AdsHelpTrayIPChatUILogger","AdsHelpTrayKillswitchContext","AdsHelpTrayRecommendedArticlesSectionContent.react","AdsHelpTrayResourceList.react","AdsHelpTrayUILogger","AdsHelpTrayUtils","AdsHeroPagelet.react","AdsOsmipCompactInbox.react","GeoSpinner.react","LazyAdsHelpTrayBusinessSupportHomeFunnel.react","RelayHooks","XFBOSMiPMIASurfaceEnumUtils.facebook","adsHelpTrayIsEligibleForInbox","adsOsmipGetCurrentSurfaceForLogging","cr:6636","getBusinessCurrentToolType","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useState,n=h!==void 0?h:h=b("AdsHelpTrayHomeContentV2Query.graphql");function o(a){var e,f=a.adAccountID,g=a.businessID,h=a.isAdsAIConsented,i=a.showToast;a=a.tags;l(function(){d("AdsHelpTrayUILogger").logHomeContentRender()});var o=k(c("AdsHelpTrayKillswitchContext")),p=o.resourcesEnabled,q=o.articlesEnabled,r=o.alertsEnabled,s=o.inboxEnabled,t=o.marketingProEnabled,u=o.advertiserAiEnabled;o=o.funnelEnabled;var v=m(0),w=v[0];v=v[1];var x=c("gkx")("21332"),y=d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox(),z=d("XFBOSMiPMIASurfaceEnumUtils.facebook").fromJSEnum(c("adsOsmipGetCurrentSurfaceForLogging")()),A=c("getBusinessCurrentToolType")(),B=A==="BUSINESS_HOME"||A==="BUSINESS_SETTINGS"?g:f;B=B!=="0"?B:null;e=d("RelayHooks").useLazyLoadQuery(n,{accountID:(e=f)!=null?e:"",adAccountID:f,articlesEnabled:q,assetID:B,callerID:A==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY",canAccessSupport:x,pathname:d("AdsHelpTrayUtils").getReleventArticlesProcessedURL(),shouldQueryChannels:y,surface:z,tags:a});A=j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHelpTrayContactMarketingProContent.react"),{adAccountID:f,shouldQueryChannels:y,solutionsFragmentKey:e,surface:z,updateMarketingProIndex:v})});a=r?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayAlertListContainer",children:j.jsx(c("AdsHelpTrayAlertListContainer.react"),{})})}):null;f=q?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayRecommendedArticlesSectionContent",children:j.jsx(c("AdsHelpTrayRecommendedArticlesSectionContent.react"),{articleFragmentKey:e==null?void 0:e.help_tray_recommended_articles})})}):null;y=p?j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(c("AdsHeroPagelet.react"),{fallback:j.jsx(c("GeoSpinner.react"),{}),name:"AdsHelpTrayResourceList",children:j.jsx(c("AdsHelpTrayResourceList.react"),{})})}):null;z=c("gkx")("21333")&&u;v=z&&!h;r=z&&h;q=(d("adsHelpTrayIsEligibleForInbox").adsHelpTrayIsEligibleForInbox()||r)&&s?j.jsx(c("AdsHeroPagelet.react"),{fallback:null,name:"AdsOsmipCompactInbox",children:j.jsx(c("AdsHelpTrayErrorBoundary.react"),{onHandleError:function(a){d("AdsHelpTrayIPChatUILogger").logIPChatCompactInboxRenderError(a)},children:j.jsx(c("AdsOsmipCompactInbox.react"),{isPostConsentAdsAIEntrypointVisible:r})})}):null;p=v&&b("cr:6636")?j.jsx(b("cr:6636"),{}):null;return!x?j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[a,p,q,t&&w===0?A:null,o?j.jsx(c("LazyAdsHelpTrayBusinessSupportHomeFunnel.react"),{}):null,f,y,t&&w===1?A:null]}):j.jsx(c("AdsHelpTrayHomeWithDirectSupportContent.react"),{alertList:a,articleSection:f,assetID:B,assetType:"AD_ACCOUNT",businessID:g,contactMarketingProSolutions:A,directSupportFragmentKey:e,inbox:q,marketingProIndex:w,preConsentAdsAIEntrypointCard:p,resourceList:y,showToast:i})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.adAccountID,d=a.businessID,e=a.isAdsAIConsented,f=a.showToast;a=a.tags;return j.jsx(c("AdsHelpTrayErrorBoundary.react"),{children:j.jsx(o,{adAccountID:b,businessID:d,isAdsAIConsented:e,showToast:f,tags:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsHelpTrayHomeContentV2Query.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"accountID"},b={defaultValue:null,kind:"LocalArgument",name:"adAccountID"},c={defaultValue:null,kind:"LocalArgument",name:"articlesEnabled"},d={defaultValue:null,kind:"LocalArgument",name:"assetID"},e={defaultValue:null,kind:"LocalArgument",name:"callerID"},f={defaultValue:null,kind:"LocalArgument",name:"canAccessSupport"},g={defaultValue:null,kind:"LocalArgument",name:"pathname"},h={defaultValue:null,kind:"LocalArgument",name:"shouldQueryChannels"},i={defaultValue:null,kind:"LocalArgument",name:"surface"},j={defaultValue:null,kind:"LocalArgument",name:"tags"},k=[{kind:"Variable",name:"ad_account_id",variableName:"adAccountID"},{kind:"Variable",name:"pathname",variableName:"pathname"},{kind:"Variable",name:"tags",variableName:"tags"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},n=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},p=[{alias:null,args:null,kind:"ScalarField",name:"thread_id",storageKey:null}];return{fragment:{argumentDefinitions:[a,b,c,d,e,f,g,h,i,j],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeContentV2Query",selections:[{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayRecommendedArticlesSectionContent_article"}],storageKey:null}]},{args:null,kind:"FragmentSpread",name:"AdsHelpTrayContactMarketingProContent_data"},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"AdsHelpTrayHomeWithDirectSupportContent_data"}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d,e,f,g,h,i,j],kind:"Operation",name:"AdsHelpTrayHomeContentV2Query",selections:[{alias:null,args:[{kind:"Variable",name:"legacy_account_id",variableName:"accountID"}],concreteType:"AdAccount",kind:"LinkedField",name:"ad_account",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"objective",value:"GENERAL_HELP"},{kind:"Variable",name:"surface",variableName:"surface"}],concreteType:"XFBAdsOSMiPSolution",kind:"LinkedField",name:"osmip_solutions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"solution_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_description",storageKey:null},{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},m,{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"existing_connection_id",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"program_name",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"existing_connections",plural:!0,selections:[l,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SBGEngagementConnection",kind:"LinkedField",name:"connection_object",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"representative_name",storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementConnectionDetails",kind:"LinkedField",name:"connection_details",plural:!1,selections:[{alias:null,args:null,concreteType:"SBGEngagementTimeFrame",kind:"LinkedField",name:"time_frame",plural:!1,selections:[{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"start_time",plural:!1,selections:n,storageKey:null},{alias:null,args:null,concreteType:"FBDateTime",kind:"LinkedField",name:"end_time",plural:!1,selections:n,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SBGEngagementContact",kind:"LinkedField",name:"contact",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"phone_number",storageKey:null},o],storageKey:null},o],storageKey:null}],type:"AdsOSMiPMIAScheduleCallConnection",abstractKey:null},{kind:"InlineFragment",selections:p,type:"AdsOSMiPMIAAlwaysOnChatConnection",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"solution_type",storageKey:null},o,{condition:"shouldQueryChannels",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"solution_channels",plural:!0,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObject",kind:"LinkedField",name:"action_object",plural:!1,selections:[{alias:null,args:null,concreteType:"AdsOSMiPMIAActionObjectParams",kind:"LinkedField",name:"params",plural:!1,selections:p,storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null},o],storageKey:null},{condition:"articlesEnabled",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:"AdsHelpTrayRecommendedArticleListResult",kind:"LinkedField",name:"help_tray_recommended_articles",plural:!1,selections:[{alias:null,args:null,concreteType:"HelpTrayItem",kind:"LinkedField",name:"result",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"estimated_read_time",storageKey:null}],storageKey:null}],storageKey:null}]},{condition:"canAccessSupport",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},m,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},o],storageKey:null},o],storageKey:null}]}]},params:{id:"7483067028394828",metadata:{},name:"AdsHelpTrayHomeContentV2Query",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
AdsHelpTrayHomeWithDirectSupportContent_data.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"assetID"},{kind:"RootArgument",name:"callerID"}],kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportContent_data",selections:[{alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},{args:[{kind:"Variable",name:"asset_id",variableName:"assetID"},{kind:"Variable",name:"caller_id",variableName:"callerID"},{kind:"Literal",name:"limit",value:2}],kind:"FragmentSpread",name:"AdsHelpTraySupportCase_cases"}],type:"Query",abstractKey:null};e.exports=a}),null);
-----
AdsHelpTrayHomeWithDirectSupportContent.react",["AdsFluxHooks","AdsHelpTrayConstants","AdsHelpTrayContactSupportButton.react","AdsHelpTrayHomeWithDirectSupportContentQuery.graphql","AdsHelpTrayKillswitchContext","AdsHelpTraySpinner.react","AdsHelpTraySupportCase.react","AdsHelpTraySupportCaseFieldToast.react","AdsHelpTraySupportContext","AdsHelpTrayUILogger","BusinessSupportCaseTrackingUtils","CometPlaceholder.react","ErrorBoundary.react","FBLogger","LazyAdsHelpTrayBusinessSupportHomeFunnel.react","RelayFBEnvironment","RelayHooks","getBusinessCurrentToolType","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useMemo,n=e.useState;function o(a){var e=a.alertList,f=a.articleSection,g=a.assetID,i=a.assetType,k=a.businessID,o=a.contactMarketingProSolutions,p=a.inbox,q=a.otherWidgets,r=a.preConsentAdsAIEntrypointCard,s=a.progressiveOnboardingCard,t=a.resourceList;a=a.showToast;var u=l(c("AdsHelpTrayKillswitchContext")),v=u.contactSupportEnabled,w=u.caseTrackingEnabled,x=u.marketingProEnabled;u=u.funnelEnabled;var y=null;g!=="0"&&(y=g);g=c("getBusinessCurrentToolType")();g=g==="ADS_MANAGER"?"AM_HELP_TRAY":"HELP_TRAY";g=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("AdsHelpTrayHomeWithDirectSupportContentQuery.graphql"),{assetID:y,callerID:g});var z=n(d("AdsHelpTrayConstants").CaseTrackingPosition.NONE),A=z[0];z=z[1];var B=g.advertiser_support_access,C=(B==null?void 0:B.is_eligible_for_chat)||!1;B=(B==null?void 0:B.chat_available)||!1;v=v&&!d("BusinessSupportCaseTrackingUtils").shouldShowNewCaseButtonInWidget(A);u=u?j.jsx(c("LazyAdsHelpTrayBusinessSupportHomeFunnel.react"),{}):null;w=w?j.jsx(c("AdsHelpTraySupportCase.react"),{casesRef:g,chatAccess:B,isEligibleForChat:C,setCaseTrackingPosition:z,subtitle:d("BusinessSupportCaseTrackingUtils").getSupportCaseWidgetSubtitle(k,i)}):null;g=m(function(){return{assetID:y,entryPoint:d("AdsHelpTraySupportContext").HelpTrayContactSupportEntryPoint.HOME_CONTENT}},[y]);return j.jsxs("div",{style:d("AdsHelpTrayConstants").homeContentStyles,children:[e,r,p,x?o==null?void 0:o[0]:null,A===d("AdsHelpTrayConstants").CaseTrackingPosition.TOP&&w,s,f,A===d("AdsHelpTrayConstants").CaseTrackingPosition.MIDDLE&&w,v&&j.jsx(d("AdsHelpTraySupportContext").AdsHelpTraySupportContext.Provider,{value:g,children:j.jsx(c("AdsHelpTrayContactSupportButton.react"),{chatAccess:B,className:"_3-97",isEligibleForChat:C})}),u,t,((z=q)!=null?z:[]).map(function(a){return a}),A===d("AdsHelpTrayConstants").CaseTrackingPosition.BOTTOM&&w,a&&j.jsx(c("AdsHelpTraySupportCaseFieldToast.react"),{}),A===d("AdsHelpTrayConstants").CaseTrackingPosition.NONE&&w,x?o==null?void 0:o[1]:null]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=k(function(a){d("AdsHelpTrayUILogger").logHelpTrayGenericError(a,"AdsHelpTrayHomeWithDirectSupportContent"),c("FBLogger")("ads_help_tray").catching(a).warn("Error fetching advertiser support access report and existing cases")},[]);return j.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("AdsHelpTraySpinner.react"),{}),name:f.id,children:j.jsx(c("ErrorBoundary.react"),{onError:b,children:j.jsx(o,babelHelpers["extends"]({},a))})})})}a.displayName=a.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AdsHelpTrayHomeWithDirectSupportContentQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"assetID"},{defaultValue:null,kind:"LocalArgument",name:"callerID"}],b={alias:null,args:null,concreteType:"AdvertiserSupportAccess",kind:"LinkedField",name:"advertiser_support_access",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"chat_available",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_chat",storageKey:null}],storageKey:null},c={kind:"Variable",name:"asset_id",variableName:"assetID"},d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"AdsHelpTrayHomeWithDirectSupportContentQuery",selections:[b,{args:[c,{kind:"Variable",name:"caller_id",variableName:"callerID"},{kind:"Literal",name:"limit",value:2}],kind:"FragmentSpread",name:"AdsHelpTraySupportCase_cases"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"AdsHelpTrayHomeWithDirectSupportContentQuery",selections:[b,{alias:null,args:[c,{kind:"Variable",name:"caller",variableName:"callerID"},{kind:"Literal",name:"cases_limit",value:2}],concreteType:"BusinessSupportCaseDetails",kind:"LinkedField",name:"business_support_cases",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"case_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"case_title",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerDetails",kind:"LinkedField",name:"tracker_details",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"last_completed_step_index",storageKey:null},{alias:null,args:null,concreteType:"BusinessSupportCaseTrackerStepDetails",kind:"LinkedField",name:"steps",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"date",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_number_of_steps",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_case_recently_updated",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},d],storageKey:null},d],storageKey:null}]},params:{id:"6247520428684985",metadata:{},name:"AdsHelpTrayHomeWithDirectSupportContentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----