BizWebInsightsBenchmarkBusinessesToWatchView.react",["fbt","BizWebInsightsBaseComponentContainer.react","BizWebInsightsBenchmarkAddBusinessToWatchButton.react","BizWebInsightsBenchmarkBusinessesToWatchViewQuery$Parameters","BizWebInsightsBenchmarkBusinessesToWatchViewQuery.graphql","BizWebInsightsBenchmarkOptOutText.react","BizWebInsightsBenchmarkOptedOutView.react","BizWebInsightsBenchmarkRecommendedBusinessesTable.react","BizWebInsightsBenchmarkWatchedBusinessesTable.react","CometRelay","GeoDivider.react","GeoGridTypes","GeoTableLoadingState.react","GeoText.react","GeoVStack.react","TofuImpressionLoggingKey","geoMargin","react","useBizWebInsightsCPXEventsLogger","useBizWebInsightsPlatformState","useRefetchablePreloadedQuery"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useState,m=e!==void 0?e:e=n("BizWebInsightsBenchmarkBusinessesToWatchViewQuery.graphql");function p(e){var t,n,a=e.queries,l=r("useRefetchablePreloadedQuery")(r("BizWebInsightsBenchmarkBusinessesToWatchViewQuery$Parameters"),a.businessesToWatchQueryRef),u=l[0],p=l[1],_=o("CometRelay").usePreloadedQuery(m,p),f=r("useBizWebInsightsPlatformState")(),g=f.id,h=f.isPlatformFacebook,y=a.businessesToWatchQueryRef.variables.shouldShowFBBenchmarkFollows,C=d(!1),b=C[0],v=C[1];o("useBizWebInsightsCPXEventsLogger").useBizWebInsightsCPXEventsImpressionLogger(r("TofuImpressionLoggingKey").BizInsights_Benchmark_BusinessToWatch);var S=function(){return u({id:g,isPlatformFacebook:h,shouldShowFBBenchmarkFollows:y})};return(_==null||(t=_.tofu_entity)==null||(t=t.entity_info)==null?void 0:t.is_benchmark_disabled)===!0?c.jsx(r("BizWebInsightsBenchmarkOptedOutView.react"),{refetch:S}):c.jsxs(r("GeoVStack.react"),{children:[c.jsx(r("GeoText.react"),{display:"block",xstyle:r("geoMargin").bottom16,children:s._(/*BTDS*/"Compare the performance of your business and content with similar businesses on {platform}.",[s._param("platform",h?s._(/*BTDS*/"Facebook"):s._(/*BTDS*/"Instagram"))])}),c.jsx(r("BizWebInsightsBenchmarkAddBusinessToWatchButton.react"),{fragment:_==null||(n=_.tofu_entity)==null||(n=n.entity_info)==null?void 0:n.add_button,refetch:S,shouldShowFollowers:y}),c.jsxs("div",{children:[c.jsx(r("GeoDivider.react"),{direction:"horizontal",xstyle:[r("geoMargin").bottom0,r("geoMargin").top8]}),c.jsx(r("BizWebInsightsBaseComponentContainer.react"),{loadingView:c.jsx(r("GeoTableLoadingState.react"),{columnSizeDefinition:o("GeoGridTypes").GridList.trackSizeOrRepeat([o("GeoGridTypes").GridSize.flex(4)].concat(Array(h?3:2).fill(o("GeoGridTypes").GridSize.flex(1)),[o("GeoGridTypes").GridSize.flex(.5)])),numColumns:h?5:4,numRows:5,loggingName:i.id}),location:"watched_businesses_table",children:c.jsx(r("BizWebInsightsBenchmarkWatchedBusinessesTable.react"),{fragment:_,isBusinessListUpdating:b,refetch:S,setIsBusinessListUpdating:v})})]}),(_==null?void 0:_.recommended_businesses)&&c.jsxs(c.Fragment,{children:[c.jsx(r("GeoDivider.react"),{direction:"horizontal"}),c.jsx(r("BizWebInsightsBenchmarkRecommendedBusinessesTable.react"),{fragment:_==null?void 0:_.recommended_businesses,isBusinessListUpdating:b,refetch:S,setIsBusinessListUpdating:v,shouldShowFBBenchmarkFollows:y})]}),c.jsx(r("GeoDivider.react"),{direction:"horizontal"}),c.jsx(r("BizWebInsightsBenchmarkOptOutText.react"),{refetch:S})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226);
-----
BizWebInsightsBenchmarkWatchedBusinessesTable.react",["fbt","BizWebInsightsBenchmarkTableActionsDropdown.react","BizWebInsightsBenchmarkTableFollowerCell.react","BizWebInsightsBenchmarkTableInfoCell.react","BizWebInsightsBenchmarkTablePageFollowersCell.react","BizWebInsightsBenchmarkTablePageFollowersDeltaCell.react","BizWebInsightsBenchmarkTablePageLikesCell.react","BizWebInsightsBenchmarkTablePageLikesDeltaCell.react","BizWebInsightsBenchmarkTablePublishContentCountCell.react","BizWebInsightsBenchmarkWatchedBusinessesTable_fragment.graphql","BizWebInsightsLabel_Account","BizWebInsightsMetricDefinition_FBPageFollowers","BizWebInsightsMetricDefinition_FBPageLikesDelta","BizWebInsightsMetricDefinition_FBPageLikesForBenchmarking","BizWebInsightsMetricDefinition_FBPageNewFollows_Short","BizWebInsightsMetricDefinition_FBPublishedContents","BizWebInsightsMetricDefinition_IGAccountPublishedContents","BizWebInsightsMetricDefinition_IGFollowersForBenchmarking","CometRelay","GeoHintText.react","GeoPopover.react","GeoTable.react","GeoTableWidth","HeroInteractionIgnoreWithDiv.react","createGeoTableDataSource","emptyFunction","filterNulls","getBizWebInsightsWatchedBusinessesSortFromKey","react","useBizWebInsightsPlatformState","useGeoTableRowActivation","useGeoTableSortable","useGeoTableSortableState","useOnUpdateEffect"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useMemo,_=e!==void 0?e:e=n("BizWebInsightsBenchmarkWatchedBusinessesTable_fragment.graphql"),f={table:{maxHeight:"x114jws4",$$css:!0}};function g(e){var t,n=e.fragment,a=e.isBusinessListUpdating,i=e.refetch,l=e.setIsBusinessListUpdating,u=o("CometRelay").usePaginationFragment(_,n),d=u.data,g=u.hasNext,y=u.isLoadingNext,C=u.loadNext,b=u.refetch,v=p(function(){return{hasNext:g,isLoadingNext:y,loadNext:C,pageSize:5}},[g,y,C]),S=p(function(){var e,t;return r("filterNulls")((e=d==null||(t=d.tofu_entity_list)==null||(t=t.benchmarking_entities)==null||(t=t.edges)==null?void 0:t.map(function(e){var t;return((t=e.node)==null?void 0:t.id)==null?null:{data:e.node}}))!=null?e:[])},[d]),R=r("useBizWebInsightsPlatformState")(),L=R.id,E=R.isPlatformFacebook,k=p(function(){var e;return((e=S[0])==null||(e=e.data)==null?void 0:e.page_followers_cell)!=null},[S]),I=p(function(){return r("filterNulls")([{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTableInfoCell.react"),{fragment:(e=n.data)==null?void 0:e.info_cell})},header:E?s._(/*BTDS*/"Page"):r("BizWebInsightsLabel_Account"),key:"TITLE",width:o("GeoTableWidth").proportional(4)},E?{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTablePageLikesCell.react"),{fragment:(e=n.data)==null?void 0:e.page_likes_cell})},header:h(r("BizWebInsightsMetricDefinition_FBPageLikesForBenchmarking")),key:"PAGE_LIKES",sortable:[{defaultDirection:"descending",sortKey:"PAGE_LIKES"}],width:o("GeoTableWidth").proportional(1)}:null,E?{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTablePageLikesDeltaCell.react"),{fragment:(e=n.data)==null?void 0:e.page_likes_delta_cell})},header:h(r("BizWebInsightsMetricDefinition_FBPageLikesDelta")),key:"PAGE_LIKES_DELTA",sortable:[{defaultDirection:"descending",sortKey:"PAGE_LIKES_DELTA"}],width:o("GeoTableWidth").proportional(1)}:null,E?null:{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTableFollowerCell.react"),{fragment:(e=n.data)==null?void 0:e.ig_follower_cell})},header:h(r("BizWebInsightsMetricDefinition_IGFollowersForBenchmarking")),key:"FOLLOWERS",sortable:[{defaultDirection:"descending",sortKey:"FOLLOWERS"}],width:o("GeoTableWidth").proportional(1)},{cell:function(t){var e,n,o=t.item;return c.jsx(r("HeroInteractionIgnoreWithDiv.react"),{children:c.jsx(r("BizWebInsightsBenchmarkTablePublishContentCountCell.react"),{fragment:E?(e=o.data)==null||(e=e.fb_entity_insights)==null?void 0:e.fb_publish_count:(n=o.data)==null||(n=n.ig_entity_insights)==null?void 0:n.ig_publish_count})})},header:h(r(E?"BizWebInsightsMetricDefinition_FBPublishedContents":"BizWebInsightsMetricDefinition_IGAccountPublishedContents")),key:"PUBLISH_COUNT",sortable:[{defaultDirection:"descending",sortKey:"PUBLISH_COUNT"}],width:o("GeoTableWidth").proportional(1)},{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTableActionsDropdown.react"),{isBusinessListUpdating:a,ownerFragment:d==null?void 0:d.tofu_entity,refetch:i,rowFragment:(e=n.data)==null?void 0:e.actions_cell,setIsBusinessListUpdating:l})},header:null,key:"ACTIONS",width:o("GeoTableWidth").proportional(.5)}])},[E,d,a,i,l]),T=p(function(){return r("filterNulls")([{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTableInfoCell.react"),{fragment:(e=n.data)==null?void 0:e.info_cell})},header:E?s._(/*BTDS*/"Page"):r("BizWebInsightsLabel_Account"),key:"TITLE",width:o("GeoTableWidth").proportional(4)},E?{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTablePageFollowersCell.react"),{fragment:(e=n.data)==null?void 0:e.page_followers_cell})},header:h(r("BizWebInsightsMetricDefinition_FBPageFollowers")),key:"FOLLOWERS",sortable:[{defaultDirection:"descending",sortKey:"FOLLOWERS"}],width:o("GeoTableWidth").proportional(1)}:null,E?{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTablePageFollowersDeltaCell.react"),{fragment:(e=n.data)==null?void 0:e.page_followers_delta_cell})},header:h(r("BizWebInsightsMetricDefinition_FBPageNewFollows_Short")),key:"NEW_FOLLOWERS",sortable:[{defaultDirection:"descending",sortKey:"NEW_FOLLOWERS"}],width:o("GeoTableWidth").proportional(1)}:null,E?null:{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTableFollowerCell.react"),{fragment:(e=n.data)==null?void 0:e.ig_follower_cell})},header:h(r("BizWebInsightsMetricDefinition_IGFollowersForBenchmarking")),key:"FOLLOWERS",sortable:[{defaultDirection:"descending",sortKey:"FOLLOWERS"}],width:o("GeoTableWidth").proportional(1)},{cell:function(t){var e,n,o=t.item;return c.jsx(r("HeroInteractionIgnoreWithDiv.react"),{children:c.jsx(r("BizWebInsightsBenchmarkTablePublishContentCountCell.react"),{fragment:E?(e=o.data)==null||(e=e.fb_entity_insights)==null?void 0:e.fb_publish_count:(n=o.data)==null||(n=n.ig_entity_insights)==null?void 0:n.ig_publish_count})})},header:h(r(E?"BizWebInsightsMetricDefinition_FBPublishedContents":"BizWebInsightsMetricDefinition_IGAccountPublishedContents")),key:"PUBLISH_COUNT",sortable:[{defaultDirection:"descending",sortKey:"PUBLISH_COUNT"}],width:o("GeoTableWidth").proportional(1)},{cell:function(t){var e,n=t.item;return c.jsx(r("BizWebInsightsBenchmarkTableActionsDropdown.react"),{isBusinessListUpdating:a,ownerFragment:d==null?void 0:d.tofu_entity,refetch:i,rowFragment:(e=n.data)==null?void 0:e.actions_cell,setIsBusinessListUpdating:l})},header:null,key:"ACTIONS",width:o("GeoTableWidth").proportional(.5)}])},[E,d,a,i,l]),D=k?T:I,x=p(function(){return r("createGeoTableDataSource")(S,{getStableUniqueID:function(t){var e;return(e=t.data)==null?void 0:e.id}})},[S]),$=r("useGeoTableSortableState")(null),P=$[0],N=$[1],M=r("useGeoTableSortable")({setSort:N,sort:P}),w=p(function(){return{args:r("getBizWebInsightsWatchedBusinessesSortFromKey")(P),id:L,isPlatformFacebook:E,shouldShowFBBenchmarkFollows:k}},[P,L,E,k]);r("useOnUpdateEffect")(function(){b(w)},[b,w,E]);var A=r("useGeoTableRowActivation")({activeItemIDs:new Set([d==null||(t=d.tofu_entity)==null?void 0:t.entity_id]),getIDForItem:m(function(e){var t,n,r=e.item;return(t=(n=r.data)==null?void 0:n.entity_id)!=null?t:""},[]),onActivate:r("emptyFunction"),skip:m(function(e){var t,n,r=e.item;return((t=r.data)==null?void 0:t.entity_id)!==(d==null||(n=d.tofu_entity)==null?void 0:n.entity_id)},[d])});return c.jsx(r("GeoTable.react"),{columns:D,dataSource:x,label:s._(/*BTDS*/"The table for businesses like yours"),pagination:v,plugins:{activation:A,sortable:M},xstyle:f.table})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t;return{label:e.name,nowrap:!1,overflowWrap:"normal",showTooltipInfoIcon:!1,tooltip:c.jsx(r("GeoPopover.react"),{content:c.jsx("div",{className:"x9otpla",children:c.jsx(r("GeoHintText.react"),{heading:(t=e.definition[0].heading)!=null?t:e.name,children:e.definition[0].content})})})}}l.default=g}),226);
-----
BizWebInsightsBenchmarkWatchedBusinessesTable_fragment.graphql",["BizWebInsightsBenchmarkWatchedBusinessesTable_fragment_refetchable.graphql"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=["tofu_entity_list","benchmarking_entities"],t={kind:"Literal",name:"caller_id",value:"BIZWEB_INSIGHTS"},r={alias:null,args:null,kind:"ScalarField",name:"entity_id",storageKey:null};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"args"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"first"},{kind:"RootArgument",name:"id"},{kind:"RootArgument",name:"isPlatformFacebook"},{defaultValue:null,kind:"LocalArgument",name:"shouldShowFBBenchmarkFollows"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"first",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:[],operation:n("BizWebInsightsBenchmarkWatchedBusinessesTable_fragment_refetchable.graphql")}},name:"BizWebInsightsBenchmarkWatchedBusinessesTable_fragment",selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"id",variableName:"id"}],kind:"ObjectValue",name:"args"},t],concreteType:"TofuEntity",kind:"LinkedField",name:"tofu_entity",plural:!1,selections:[r,{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTableActionsDropdown_owner_tofuEntity"}],storageKey:null},{alias:null,args:[{fields:[{items:[{kind:"Variable",name:"ids.0",variableName:"id"}],kind:"ListValue",name:"ids"}],kind:"ObjectValue",name:"args"},t],concreteType:"TofuEntityList",kind:"LinkedField",name:"tofu_entity_list",plural:!1,selections:[{alias:"benchmarking_entities",args:[{kind:"Variable",name:"args",variableName:"args"}],concreteType:"TofuEntityListBenchmarkingEntitiesConnection",kind:"LinkedField",name:"__BizWebInsightsBenchmarkWatchedBusinessesTable_fragment_benchmarking_entities_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"TofuEntityListBenchmarkingEntitiesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"TofuEntity",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r,{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTableInfoCell_tofuEntity"}],type:"TofuEntity",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"info_cell"},{condition:"shouldShowFBBenchmarkFollows",kind:"Condition",passingValue:!1,selections:[{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTablePageLikesCell_tofuEntity"}],type:"TofuEntity",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"page_likes_cell"},{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTablePageLikesDeltaCell_tofuEntity"}],type:"TofuEntity",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"page_likes_delta_cell"}]},{condition:"shouldShowFBBenchmarkFollows",kind:"Condition",passingValue:!0,selections:[{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTablePageFollowersCell_tofuEntity"}],type:"TofuEntity",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"page_followers_cell"},{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTablePageFollowersDeltaCell_tofuEntity"}],type:"TofuEntity",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"page_followers_delta_cell"}]},{condition:"isPlatformFacebook",kind:"Condition",passingValue:!0,selections:[{alias:"fb_entity_insights",args:null,concreteType:null,kind:"LinkedField",name:"entity_insights",plural:!1,selections:[{fragment:{kind:"InlineFragment",selections:[{kind:"Defer",selections:[{args:[{kind:"Literal",name:"qualifiers",value:[{param:"CONTENT_TYPES",values:["FB_PAGE_POST","FB_PAGE_STORY"]}]}],kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTablePublishContentCountCell_tofuEntityInsights"}]}],type:"TofuEntityInsights",abstractKey:"__isTofuEntityInsights"},kind:"AliasedInlineFragmentSpread",name:"fb_publish_count"}],storageKey:null}]},{condition:"isPlatformFacebook",kind:"Condition",passingValue:!1,selections:[{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTableFollowerCell_tofuEntity"}],type:"TofuEntity",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"ig_follower_cell"}]},{alias:"ig_entity_insights",args:null,concreteType:null,kind:"LinkedField",name:"entity_insights",plural:!1,selections:[{condition:"isPlatformFacebook",kind:"Condition",passingValue:!1,selections:[{fragment:{kind:"InlineFragment",selections:[{kind:"Defer",selections:[{args:[{kind:"Literal",name:"qualifiers",value:[{param:"CONTENT_TYPES",values:["IG_POST","IG_STORY"]}]}],kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTablePublishContentCountCell_tofuEntityInsights"}]}],type:"TofuEntityInsights",abstractKey:"__isTofuEntityInsights"},kind:"AliasedInlineFragmentSpread",name:"ig_publish_count"}]}],storageKey:null},{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"BizWebInsightsBenchmarkTableActionsDropdown_row_tofuEntity"}],type:"TofuEntity",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"actions_cell"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],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}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}})();a.exports=e}),null);
-----
BizWebInsightsBenchmarkWatchedBusinessesTable_fragment_refetchable_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25793765466887611"}),null);
-----