__d("BizWebInsightsBoostPublishedPostButtonQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24772983572382340"}),null); __d("BizWebInsightsBoostPublishedPostButtonQuery.graphql",["BizWebInsightsBoostPublishedPostButtonQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"businessID"},t={defaultValue:null,kind:"LocalArgument",name:"entry_point"},r={defaultValue:null,kind:"LocalArgument",name:"jtbd"},o={defaultValue:null,kind:"LocalArgument",name:"pageID"},a={defaultValue:null,kind:"LocalArgument",name:"product_type"},i={defaultValue:null,kind:"LocalArgument",name:"should_log_gk_exposure"},l=[{alias:null,args:[{kind:"Variable",name:"entry_point",variableName:"entry_point"},{kind:"Variable",name:"jtbd",variableName:"jtbd"},{kind:"Variable",name:"product_type",variableName:"product_type"},{kind:"Variable",name:"should_log_gk_exposure",variableName:"should_log_gk_exposure"},{kind:"Variable",name:"target_business_id",variableName:"businessID"},{kind:"Variable",name:"target_page_id",variableName:"pageID"}],concreteType:null,kind:"LinkedField",name:"xfb_AdsCheckerEligibilityRootQueryV3",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,r,o,a,i],kind:"Fragment",metadata:null,name:"BizWebInsightsBoostPublishedPostButtonQuery",selections:l,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[r,a,t,o,e,i],kind:"Operation",name:"BizWebInsightsBoostPublishedPostButtonQuery",selections:l},params:{id:n("BizWebInsightsBoostPublishedPostButtonQuery_facebookRelayOperation"),metadata:{},name:"BizWebInsightsBoostPublishedPostButtonQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("BizWebInsightsBoostPublishedPostButton_entity.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"entity_id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"entity_type",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BizWebInsightsBoostPublishedPostButton_entity",selections:[{kind:"RequiredField",field:e,action:"THROW",path:"entity_id"},t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity_info",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"height",value:48},{kind:"Literal",name:"width",value:48}],concreteType:"Image",kind:"LinkedField",name:"image_source",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:"image_source(height:48,width:48)"}],type:"TofuEntityWithImageInfo",abstractKey:"__isTofuEntityWithImageInfo"},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"TofuEntity",kind:"LinkedField",name:"owner",plural:!1,selections:[e,t],storageKey:null}],type:"TofuEntityHasSingleOwnerInfo",abstractKey:"__isTofuEntityHasSingleOwnerInfo"},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"post_type",storageKey:null}],type:"TofuEntityWithPostInfo",abstractKey:"__isTofuEntityWithPostInfo"},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"lwi_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"page_id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"latest_boosted_component",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"boost_unavailable_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],type:"XFBTofuEntityWithBoostInfo",abstractKey:"__isXFBTofuEntityWithBoostInfo"}],storageKey:null}],type:"TofuEntity",abstractKey:null}})();a.exports=e}),null); __d("BizWebInsightsBoostPublishedPostButton.react",["Actor","BizWebInsightsBoostPublishedPostButtonQuery.graphql","BizWebInsightsBoostPublishedPostButton_entity.graphql","CometPlaceholder.react","CometRelay","GeoButtonLoadingState.react","LWIBizWebButtonActionContextProvider.react","LWIBizwebAMDeeplinkUtils","LWIDialogButton.react","RelayHooks","TofuEntityPostTypeUtils.facebook","TofuEntityTypeUtil","TofuEntityTypeUtils.facebook","getShouldEnableCreateAndImproveEventsFlow","getShouldImproveManageEventsFlow","nux:147","react","useBizKitBusinessID","useBizKitSelectedAssets"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c,d=c||(c=o("react")),m=c.useRef,p=(u=n("nux:147"))==null?void 0:u("BIZWEB_CONTENT_MANAGER_EVENTS_BOOST_BUTTON_V2_NUX");function _(t){var a,l,u,c,_,f,g,h,y=t.adsLWIEntryPoint,C=t.boostUnavailableButtonLabel,b=t.fallback,v=t.fragment,S=t.onClick,R=t.variant,L=o("RelayHooks").useFragment(e!==void 0?e:e=n("BizWebInsightsBoostPublishedPostButton_entity.graphql"),v),E=o("Actor").useActor()[0],k=r("useBizKitSelectedAssets")(),I=k.assetID,T=m(null),D=o("CometRelay").useRelayEnvironment(),x=r("useBizKitBusinessID")(),$=((a=L.entity_info)==null||(a=a.owner)==null?void 0:a.entity_type)==="FB_PAGE"?(l=L.entity_info)==null||(l=l.owner)==null?void 0:l.entity_id:null,P=(u=I!=null?I:L==null||(c=L.entity_info)==null||(c=c.lwi_info)==null?void 0:c.page_id)!=null?u:$;if(P==null)return null;var N=o("TofuEntityTypeUtils.facebook").toJSEnum(L.entity_type);if(N==null)return null;var M=r("TofuEntityTypeUtil").toBoostedComponentProduct(N),w=(_=L.entity_info)==null||(_=_.lwi_info)==null||(_=_.latest_boosted_component)==null?void 0:_.id,A=o("TofuEntityPostTypeUtils.facebook").toJSEnum((f=L.entity_info)==null?void 0:f.post_type),F=d.jsx(r("GeoButtonLoadingState.react"),{loggingName:i.id}),O=o("LWIBizwebAMDeeplinkUtils").getAMDeeplinkDraftSourceForLWIEntrypoint(y),B=y==="business_content_manager_list_view"&&A!=="EVENTS",W="MBS_CONTENT_POST_AND_REELS_PUBLISH_POST_BOOST_BUTTON",q=function(){o("CometRelay").fetchQuery(D,s!==void 0?s:s=n("BizWebInsightsBoostPublishedPostButtonQuery.graphql"),{businessID:x,entry_point:W,jtbd:"ADS_ON_PAGE",pageID:P,product_type:"MBS_ADS_CHECKER_WITHOUT_AUTO_SELECT_AD_ACCOUNT",should_log_gk_exposure:!0}).subscribe({start:function(){}})};return d.jsxs(r("CometPlaceholder.react"),{fallback:b!=null?b:F,name:i.id,children:[N==="FB_EVENT"&&p!=null&&((g=L.entity_info)==null||(g=g.lwi_info)==null?void 0:g.boost_unavailable_info)==null&&(o("getShouldImproveManageEventsFlow").getShouldImproveManageEventsFlow(!0)||o("getShouldEnableCreateAndImproveEventsFlow").getShouldEnableCreateAndImproveEventsFlow(!0))&&d.jsx(p,{contextRef:T}),d.jsx("div",{ref:T,children:d.jsx(r("LWIBizWebButtonActionContextProvider.react"),{children:d.jsx(o("Actor").ActorProvider,{initialActorID:E,readonly:!0,children:d.jsx(r("LWIDialogButton.react"),{boostID:w,boostUnavailableButtonLabel:C,deeplinkDraftSource:O,entryPoint:y,growToFill:!0,isAMDeeplinkSurfaceEligible:B,newAd:!0,onAdsCheckerButtonHover:q,onPress:S,pageID:P,postID:L.entity_id,postThumbnailImageURL:(h=L.entity_info)==null||(h=h.image_source)==null?void 0:h.uri,product:M,renderShortSplitButton:B,showUnavailableTooltip:!0,targetID:L.entity_id,variant:R})})})})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),98); __d("BizWebUnifiedTableRowActionButtonBoost_fragment.graphql",[],(function(t,n,r,o,a,i){"use strict";var e={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BizWebUnifiedTableRowActionButtonBoost_fragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"ads_lwi_entrypoint",storageKey:null},{alias:null,args:null,concreteType:"TofuEntity",kind:"LinkedField",name:"entity",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBoostPublishedPostButton_entity"}],storageKey:null}],type:"TofuUnifiedTableActionRendererBoost",abstractKey:null};a.exports=e}),null); __d("BizWebUnifiedTableRowActionButtonBoost.react",["AdsLWIEntryPoint","BizWebInsightsBoostPublishedPostButton.react","BizWebInsightsLabel_Boost","BizWebUnifiedTableErrorBoundary.react","BizWebUnifiedTableRowActionButtonBoost_fragment.graphql","RelayHooks","getJSEnumSafe","react","useBizWebUnifiedTableLoggerRowButtonClick"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react"));function c(t){var a=t.fragment,i=o("RelayHooks").useFragment(e!==void 0?e:e=n("BizWebUnifiedTableRowActionButtonBoost_fragment.graphql"),a),l=r("useBizWebUnifiedTableLoggerRowButtonClick")(),s=i.entity;if(s==null)return null;var c=r("getJSEnumSafe")(r("AdsLWIEntryPoint"),i.ads_lwi_entrypoint);return c==null?null:u.jsx(r("BizWebUnifiedTableErrorBoundary.react"),{location:"ActionButtonBoost",children:u.jsx(r("BizWebInsightsBoostPublishedPostButton.react"),{adsLWIEntryPoint:c,boostUnavailableButtonLabel:r("BizWebInsightsLabel_Boost"),fragment:s,onClick:l})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98);