OCDevManageWorldsInsightsPersistentVariablesView.react",["fbt","GeoFlexbox.react","GeoPageItem.react","GeoPageSection.react","GeoSection.react","GeoText.react","OCDevManagePage.react","OCDevManagePageHeader.react","OCDevManagePersistentVariablesChart.react","OCDevManagePersistentVariablesFilter.react","OCDevManageWorldsInsightsPersistentVariablesViewQuery.graphql","geoWidth","gkx","react","useOCDevUIQuery"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useMemo,p=d.useState;function _(t){var o=t.usePlatformServices,a=o===void 0?!1:o,i=t.worldID,l=r("useOCDevUIQuery")(e!==void 0?e:e=n("OCDevManageWorldsInsightsPersistentVariablesViewQuery.graphql"),{worldID:i,usePlatformServices:a}),u=null,d=p(u),_=d[0],f=d[1],g=m(function(){var e,t,n=l==null?void 0:l.fetch__Application;if(n==null)return[];var r=(e=(t=n.xfb_horizon_world)==null||(t=t.data_groups)==null?void 0:t.nodes)!=null?e:[];if(r.length>0){var o=r.flatMap(function(e){var t,n,r,o=(t=e==null?void 0:e.variable_group)!=null?t:"Other";return((n=e==null||(r=e.stats_query)==null?void 0:r.nodes)!=null?n:[]).filter(function(e){var t;return(e==null||(t=e.stat_data_type)==null?void 0:t.toUpperCase())==="NUMBER"}).map(function(e){var t,n;return{id:(t=e==null?void 0:e.id)!=null?t:"",name:(n=e==null?void 0:e.name)!=null?n:"",variable_group:o}})});return o.sort(function(e,t){return e.name.localeCompare(t.name)})}if("platform_services"in n){var a=n.platform_services;if(a!=null){var i,s,u=(i=(s=a.persistent_variables)==null?void 0:s.edges)!=null?i:[];return u.filter(function(e){var t,n,r=e==null||(t=e.node)==null?void 0:t.horizon_stat_data;return(r==null||(n=r.stat_data_type)==null?void 0:n.toUpperCase())==="NUMBER"}).map(function(e){var t,n,r,o,a=e==null||(t=e.node)==null?void 0:t.horizon_stat_data,i=e==null||(n=e.node)==null?void 0:n.variable_group;return{id:(r=a==null?void 0:a.id)!=null?r:"",name:(o=a==null?void 0:a.name)!=null?o:"",variable_group:i!=null?i:"Other"}}).filter(function(e){return e.id&&e.name}).sort(function(e,t){return e.name.localeCompare(t.name)})}}return[]},[l]);function h(e){e.selectedVariable!=null&&f(e.selectedVariable)}return r("gkx")("20371")?c.jsx(r("OCDevManagePage.react"),{columns:12,header:c.jsx(r("OCDevManagePageHeader.react"),{heading:s._(/*BTDS*/"Persistent Variables Insights")}),children:c.jsx(r("GeoPageSection.react"),{children:c.jsx(r("GeoPageItem.react"),{columns:12,children:c.jsxs(r("GeoFlexbox.react"),{direction:"column",xstyle:r("geoWidth").fullWidth,children:[c.jsx(r("OCDevManagePersistentVariablesFilter.react"),{defaultVariable:u,variables:g,onSubmit:h}),_!=null&&c.jsx(r("OCDevManagePersistentVariablesChart.react"),{variableId:_.id}),_==null&&c.jsx(r("GeoSection.react"),{children:c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"Select a variable and click Apply Settings to view insights")})})]})})})}):c.jsx(r("OCDevManagePage.react"),{columns:12,header:c.jsx(r("OCDevManagePageHeader.react"),{heading:s._(/*BTDS*/"Persistent Variables Insights")}),children:c.jsx(r("GeoPageSection.react"),{children:c.jsx(r("GeoPageItem.react"),{columns:12,children:c.jsx(r("GeoSection.react"),{children:c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"This feature is not currently available.")})})})})})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226);
-----
OCDevManageWorldsInsightsPersistentVariablesViewQuery.graphql",["relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"usePlatformServices"},t={defaultValue:null,kind:"LocalArgument",name:"worldID"},n=[{kind:"Variable",name:"id",variableName:"worldID"}],r=[{kind:"Literal",name:"first",value:100}],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a=[o,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"stat_data_type",storageKey:null}],i={alias:null,args:null,concreteType:"XOCFBHorizonStatView",kind:"LinkedField",name:"horizon_stat_data",plural:!1,selections:a,storageKey:null},l={alias:"variable_group",args:null,kind:"ScalarField",name:"origin",storageKey:null},s={alias:null,args:null,concreteType:"XFBSocialVRCustomWorldDataGroupsConnection",kind:"LinkedField",name:"data_groups",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBHorizonDataGroup",kind:"LinkedField",name:"nodes",plural:!0,selections:[o,{alias:null,args:null,concreteType:"XFBHorizonDataGroupStatsQueryConnection",kind:"LinkedField",name:"stats_query",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBHorizonWorldStat",kind:"LinkedField",name:"nodes",plural:!0,selections:a,storageKey:null}],storageKey:null},{alias:"variable_group",args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[e,t],kind:"Fragment",metadata:null,name:"OCDevManageWorldsInsightsPersistentVariablesViewQuery",selections:[{alias:null,args:n,concreteType:"Application",kind:"LinkedField",name:"fetch__Application",plural:!1,selections:[{condition:"usePlatformServices",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XOCPlatformServices",kind:"LinkedField",name:"platform_services",plural:!1,selections:[{alias:null,args:r,concreteType:"XOCPlatformServicesPersistentVariablesConnection",kind:"LinkedField",name:"persistent_variables",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCPlatformServicesPersistentVariablesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCHorizonPersistentVariable",kind:"LinkedField",name:"node",plural:!1,selections:[i,l],storageKey:null}],storageKey:null}],storageKey:"persistent_variables(first:100)"}],storageKey:null}]},{condition:"usePlatformServices",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"XFBSocialVRCustomWorld",kind:"LinkedField",name:"xfb_horizon_world",plural:!1,selections:[s],storageKey:null}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,e],kind:"Operation",name:"OCDevManageWorldsInsightsPersistentVariablesViewQuery",selections:[{alias:null,args:n,concreteType:"Application",kind:"LinkedField",name:"fetch__Application",plural:!1,selections:[{condition:"usePlatformServices",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,concreteType:"XOCPlatformServices",kind:"LinkedField",name:"platform_services",plural:!1,selections:[{alias:null,args:r,concreteType:"XOCPlatformServicesPersistentVariablesConnection",kind:"LinkedField",name:"persistent_variables",plural:!1,selections:[{alias:null,args:null,concreteType:"XOCPlatformServicesPersistentVariablesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XOCHorizonPersistentVariable",kind:"LinkedField",name:"node",plural:!1,selections:[i,l,o],storageKey:null}],storageKey:null}],storageKey:"persistent_variables(first:100)"},o],storageKey:null}]},{condition:"usePlatformServices",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"XFBSocialVRCustomWorld",kind:"LinkedField",name:"xfb_horizon_world",plural:!1,selections:[s,o],storageKey:null}]},o],storageKey:null}]},params:{id:"24920221600982802",metadata:{},name:"OCDevManageWorldsInsightsPersistentVariablesViewQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----