ProdashCometV2InsightsLazyLoadLineChart.react",["BizWebInsightsMetricDefinition_FBPageTotalEarnings","BizWebInsightsMetricDefinition_MessagingMetrics","CometProfileInsightsLineChart.react","CometRelay","FDSText.react","FDSTextPairing.react","FDSToggletipCard.react","ProdashCometMetricDefinitions","ProdashCometV2InsightsLazyLoadLineChartViewsQuery.graphql","ProdashMessagingInsightsUtils","ProfileCometContext","formatDate","parseISODateToSeconds","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext,l={verticalLine:{strokeDasharray:"x1ba9y5v",$$css:!0}},m=function(a,b,e,f,g){if(a==null)return null;var h=b;e=e(a.y);a=a.label;if(b===d("BizWebInsightsMetricDefinition_MessagingMetrics").ProdashCometV2MetricDefinition_MESSAGING_CONVERSATIONS_STARTED.name){b=g==="PRODASH_MESSAGING_WIDGET"?"PRODASH_MESSAGING_WIDGET_HOVER_CHART":"PRODASH_HOME_HOVER_CHART";d("ProdashMessagingInsightsUtils").logCTXMetricEngagement("MESSAGING_CONVERSATIONS_STARTED",f,b)}return j.jsxs(j.Fragment,{children:[j.jsx("div",babelHelpers["extends"]({className:"xwib8y2"},{children:j.jsx(c("FDSText.react"),{color:"primary",type:"body4",children:h})})),j.jsx(c("FDSTextPairing.react"),{headline:e,level:4,meta:a})]})},n=h!==void 0?h:h=b("ProdashCometV2InsightsLazyLoadLineChartViewsQuery.graphql");function a(a){var b=d("react-compiler-runtime").c(12),e=a.PopoverMetricFormatter,f=a.PopoverMetricName,g=a.entryPoint,h=a.tileQueryRef,i=a.width;a=a.yAxisFormatter;i=i===void 0?360:i;var q=k(c("ProfileCometContext")),r=q.delegatePageID;q=d("CometRelay").usePreloadedQuery(n,h);var s;bb0:switch(f){case d("ProdashCometMetricDefinitions").ProdashCometV2MetricDefinition_VIEWS.name:s=(h=q.page)==null||(h=h.prodash_tofu_entity)==null||(h=h.entity_insights)==null||(h=h.views)==null?void 0:h.points;break bb0;case d("BizWebInsightsMetricDefinition_MessagingMetrics").ProdashCometV2MetricDefinition_MESSAGING_CONVERSATIONS_STARTED.name:s=(h=q.page)==null||(h=h.prodash_tofu_entity)==null||(h=h.entity_insights)==null||(h=h.messaging_conversation_started)==null?void 0:h.points;break bb0;case c("BizWebInsightsMetricDefinition_FBPageTotalEarnings").name:s=(h=q.page)==null||(h=h.prodash_tofu_entity)==null||(h=h.entity_insights)==null||(h=h.total_earnings)==null?void 0:h.points;break bb0;case d("ProdashCometMetricDefinitions").ProdashCometV2MetricDefinition_NET_FOLLOWS.name:s=(h=q.page)==null||(h=h.prodash_tofu_entity)==null||(h=h.entity_insights)==null||(h=h.net_follower)==null?void 0:h.points;break bb0;case d("ProdashCometMetricDefinitions").ProdashCometV2MetricDefinition_INTERACTIONS.name:default:s=(h=q.page)==null||(h=h.prodash_tofu_entity)==null||(h=h.entity_insights)==null||(h=h.interaction)==null?void 0:h.points}if(b[0]!==s){h=(q=s)==null?void 0:q.filter(p).map(o);b[0]=s;b[1]=h}else h=b[1];q=h;if(q==null)return null;b[2]!==e||b[3]!==f||b[4]!==r||b[5]!==g?(h=function(a){return j.jsx(c("FDSToggletipCard.react"),{addPadding:!0,"aria-label":f,content:function(){return m(a,f,e,r,g)},withArrow:!1})},b[2]=e,b[3]=f,b[4]=r,b[5]=g,b[6]=h):h=b[6];var t;b[7]!==q||b[8]!==h||b[9]!==i||b[10]!==a?(t=j.jsx(c("CometProfileInsightsLineChart.react"),{axisPadding:8,data:q,hoverTargetSize:24,hoverTargetType:"vertical",popover:h,popoverDelay:100,width:i,xVerticalLineStyle:l.verticalLine,yAxisFormatter:a}),b[7]=q,b[8]=h,b[9]=i,b[10]=a,b[11]=t):t=b[11];return t}function o(a,b){return{label:a.start_time!=null?c("formatDate")(new Date(c("parseISODateToSeconds")(a.start_time)*1e3),"M d"):"",x:b,y:(b=a.value)!=null?b:0}}function p(a){return a.value!=null}g.FIELD_QUERY=n;g.ProdashCometV2InsightsLazyLoadLineChart=a}),98);
-----
ProdashCometV2InsightsLazyLoadLineChartViewsQuery.graphql",["ProdashCometV2InsightsLazyLoadLineChartViewsQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"id"},c={defaultValue:!1,kind:"LocalArgument",name:"isEarningsField"},d={defaultValue:!1,kind:"LocalArgument",name:"isInteractionField"},e={defaultValue:!1,kind:"LocalArgument",name:"isMessagingField"},f={defaultValue:!1,kind:"LocalArgument",name:"isNetFollowsField"},g={defaultValue:!1,kind:"LocalArgument",name:"isViewsField"},h={defaultValue:null,kind:"LocalArgument",name:"timeRange"},i=[{kind:"Variable",name:"id",variableName:"id"}],j=[{fields:i,kind:"ObjectValue",name:"args"},{kind:"Literal",name:"caller_id",value:"PRODASH_WEB_HOME_INSIGHTS_WIDGET"}],k=[{fields:[{kind:"Literal",name:"time_granularity",value:"DAILY"},{kind:"Variable",name:"time_range",variableName:"timeRange"}],kind:"ObjectValue",name:"args"}],l={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"TofuTimeSeriesWithoutBreakdownDataPoint",kind:"LinkedField",name:"points",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],type:"TofuTimeSeriesWithoutBreakdownMetricsQueryResult",abstractKey:null},m=[l],n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};l=[n,l];var o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d,e,f,g,h],kind:"Fragment",metadata:null,name:"ProdashCometV2InsightsLazyLoadLineChartViewsQuery",selections:[{alias:null,args:i,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:j,concreteType:"TofuEntity",kind:"LinkedField",name:"prodash_tofu_entity",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity_insights",plural:!1,selections:[{condition:"isViewsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"views",plural:!1,selections:m,storageKey:null}]},{condition:"isMessagingField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"messaging_conversation_started",plural:!1,selections:m,storageKey:null}]},{condition:"isEarningsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"total_earnings",plural:!1,selections:m,storageKey:null}]},{condition:"isNetFollowsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"net_follower",plural:!1,selections:m,storageKey:null}]},{condition:"isInteractionField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"interaction",plural:!1,selections:m,storageKey:null}]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,h,g,d,e,c,f],kind:"Operation",name:"ProdashCometV2InsightsLazyLoadLineChartViewsQuery",selections:[{alias:null,args:i,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:j,concreteType:"TofuEntity",kind:"LinkedField",name:"prodash_tofu_entity",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity_insights",plural:!1,selections:[n,{condition:"isViewsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"views",plural:!1,selections:l,storageKey:null}]},{condition:"isMessagingField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"messaging_conversation_started",plural:!1,selections:l,storageKey:null}]},{condition:"isEarningsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"total_earnings",plural:!1,selections:l,storageKey:null}]},{condition:"isNetFollowsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"net_follower",plural:!1,selections:l,storageKey:null}]},{condition:"isInteractionField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"interaction",plural:!1,selections:l,storageKey:null}]}],storageKey:null},o],storageKey:null},o],storageKey:null}]},params:{id:b("ProdashCometV2InsightsLazyLoadLineChartViewsQuery_facebookRelayOperation"),metadata:{},name:"ProdashCometV2InsightsLazyLoadLineChartViewsQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
ProdashCometV2InsightsLazyLoadLineChartViewsQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="10091150731014548"}),null);
-----
-----
ProdashCometV2InsightsLazyLoadLineChartViewsQuery.graphql",["ProdashCometV2InsightsLazyLoadLineChartViewsQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"id"},c={defaultValue:!1,kind:"LocalArgument",name:"isEarningsField"},d={defaultValue:!1,kind:"LocalArgument",name:"isInteractionField"},e={defaultValue:!1,kind:"LocalArgument",name:"isMessagingField"},f={defaultValue:!1,kind:"LocalArgument",name:"isNetFollowsField"},g={defaultValue:!1,kind:"LocalArgument",name:"isViewsField"},h={defaultValue:null,kind:"LocalArgument",name:"timeRange"},i=[{kind:"Variable",name:"id",variableName:"id"}],j=[{fields:i,kind:"ObjectValue",name:"args"},{kind:"Literal",name:"caller_id",value:"PRODASH_WEB_HOME_INSIGHTS_WIDGET"}],k=[{fields:[{kind:"Literal",name:"time_granularity",value:"DAILY"},{kind:"Variable",name:"time_range",variableName:"timeRange"}],kind:"ObjectValue",name:"args"}],l={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"TofuTimeSeriesWithoutBreakdownDataPoint",kind:"LinkedField",name:"points",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"start_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],type:"TofuTimeSeriesWithoutBreakdownMetricsQueryResult",abstractKey:null},m=[l],n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};l=[n,l];var o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[a,c,d,e,f,g,h],kind:"Fragment",metadata:null,name:"ProdashCometV2InsightsLazyLoadLineChartViewsQuery",selections:[{alias:null,args:i,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:j,concreteType:"TofuEntity",kind:"LinkedField",name:"prodash_tofu_entity",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity_insights",plural:!1,selections:[{condition:"isViewsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"views",plural:!1,selections:m,storageKey:null}]},{condition:"isMessagingField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"messaging_conversation_started",plural:!1,selections:m,storageKey:null}]},{condition:"isEarningsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"total_earnings",plural:!1,selections:m,storageKey:null}]},{condition:"isNetFollowsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"net_follower",plural:!1,selections:m,storageKey:null}]},{condition:"isInteractionField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"interaction",plural:!1,selections:m,storageKey:null}]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,h,g,d,e,c,f],kind:"Operation",name:"ProdashCometV2InsightsLazyLoadLineChartViewsQuery",selections:[{alias:null,args:i,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:j,concreteType:"TofuEntity",kind:"LinkedField",name:"prodash_tofu_entity",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity_insights",plural:!1,selections:[n,{condition:"isViewsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"views",plural:!1,selections:l,storageKey:null}]},{condition:"isMessagingField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"messaging_conversation_started",plural:!1,selections:l,storageKey:null}]},{condition:"isEarningsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"total_earnings",plural:!1,selections:l,storageKey:null}]},{condition:"isNetFollowsField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"net_follower",plural:!1,selections:l,storageKey:null}]},{condition:"isInteractionField",kind:"Condition",passingValue:!0,selections:[{alias:null,args:k,concreteType:null,kind:"LinkedField",name:"interaction",plural:!1,selections:l,storageKey:null}]}],storageKey:null},o],storageKey:null},o],storageKey:null}]},params:{id:b("ProdashCometV2InsightsLazyLoadLineChartViewsQuery_facebookRelayOperation"),metadata:{},name:"ProdashCometV2InsightsLazyLoadLineChartViewsQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
ProdashCometV2InsightsLazyLoadLineChartViewsQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="10091150731014548"}),null);
-----