OCDevManageWorldsCreatorPerformanceTracesTablePageContent.react",["fbt","ix","GeoDropdownMenu.react","GeoMenuItem.react","GeoMenuLink.react","GeoSpinner.react","GeoTable.react","GeoTableWidth","HorizonTimestamp.react","HorizonWorldsCreatorPerformanceTraceUtils","OCDevManagePlaceholder.react","OCDevManageWorldsCreatorPerformanceTracesHeader.react","OCDevManageWorldsCreatorPerformanceTracesTablePageContentQuery.graphql","OCDevManageWorldsCreatorPerformanceTracesTablePageContent_sessions.graphql","OCDevManageWorldsCreatorPerformanceTracesTablePageContent_traceSessions.graphql","RelayHooks","createGeoTableDataSource","fbicon","gkx","nullthrows","react","useOCDevUIQuery"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||(m=d("react"));e=m;var o=e.useMemo,p=e.useState,q=10;function r(a,b){var c;return((c=a.name)==null?void 0:c.toLowerCase().includes(b.toLowerCase()))||a.trace_session_id.toLowerCase().includes(b.toLowerCase())||((c=a.session_id.toLowerCase().includes(b.toLowerCase()))!=null?c:!1)}function a(){var a=c("gkx")("15402"),b=c("useOCDevUIQuery")(s,{isUseTraceSessions:a}),e=d("RelayHooks").usePaginationFragment(t,a?null:b),f=e.data;e=babelHelpers.objectWithoutPropertiesLoose(e,["data"]);b=d("RelayHooks").usePaginationFragment(u,a?b:null);var g=b.data;b=babelHelpers.objectWithoutPropertiesLoose(b,["data"]);var i=p(null),j=i[0];i=i[1];var k=p(""),l=k[0];k=k[1];var m=o(function(){if(a){var b;return g==null?void 0:(b=g.xfb_horizon_performance_trace_sessions)==null?void 0:b.edges.flatMap(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.traces)==null?void 0:(a=a.nodes)==null?void 0:(a=a.filter(function(a){return!((a=a.name)==null?void 0:a.startsWith("memory_snapshot"))}))==null?void 0:a.map(function(a){return{creation_time:a.creation_time,id:a.id,name:a.name,session_id:a.trace_session.session_id,trace_artifact_url:a.trace_artifact_url,trace_session_id:a.trace_session_id,trace_type:a.trace_type}})}).filter(Boolean)}else{return f==null?void 0:(b=f.xfb_viewer)==null?void 0:(b=b.together_app_user)==null?void 0:(b=b.sessions)==null?void 0:b.edges.flatMap(function(a){var b;return a==null?void 0:(b=a.node)==null?void 0:(b=b.performance_traces)==null?void 0:(b=b.nodes)==null?void 0:(b=b.filter(function(a){return!((a=a.name)==null?void 0:a.startsWith("memory_snapshot"))}))==null?void 0:b.map(function(b){var c;return{creation_time:b.creation_time,id:b.id,name:b.name,session_id:(c=(c=a.node)==null?void 0:c.session_id)!=null?c:"",trace_artifact_url:b.trace_artifact_url,trace_session_id:b.trace_session_id,trace_type:b.trace_type}})}).filter(Boolean)}},[f,g,a]),w=o(function(){return l===""?m:m==null?void 0:m.filter(function(a){return r(a,l)})},[m,l]),x=o(function(){return j==null?w:w==null?void 0:w.filter(function(a){return j==="PLAYTEST"?a.trace_type==="PLAYTEST":a.trace_type!=="PLAYTEST"})},[w,j]),y=o(function(){var a;return[{cell:function(a){a=a.item;return a.name},header:h._(/*BTDS*/"Name"),key:"name",width:(a=d("GeoTableWidth")).proportional(2)},{cell:function(a){a=a.item;return n.jsx(d("HorizonTimestamp.react").HorizonTimestamp,{date:new Date(c("nullthrows")(a.creation_time)*1e3)})},header:h._(/*BTDS*/"Date created"),key:"trace_creation_time",width:a.proportional(1)},{cell:function(a){a=a.item;return a.session_id},header:h._(/*BTDS*/"Session ID"),key:"session_id",width:a.proportional(2)},{cell:function(a){a=a.item;return a.trace_session_id},header:h._(/*BTDS*/"Trace session ID"),key:"trace_session_id",width:a.proportional(2)},{cell:function(a){a=a.item;var b=a.trace_artifact_url,c=a.name;a=a.trace_type;return b==null||c==null||a==null?null:n.jsx(v,{traceArtifactUrl:b,traceName:c,traceType:a})},header:h._(/*BTDS*/"Actions"),key:"actions",width:a.proportional(1)}]},[]),z=o(function(){var a;return c("createGeoTableDataSource")((a=x)!=null?a:[],{getStableUniqueID:function(a){return a.id}})},[x]);b=a?b:e;return n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{paddingLeft:12,paddingRight:12},children:n.jsx(c("OCDevManageWorldsCreatorPerformanceTracesHeader.react"),{searchQuery:l,setSearchQuery:k,setTraceType:i,traceType:j})}),n.jsx(c("OCDevManagePlaceholder.react"),{fallback:n.jsx(c("GeoSpinner.react"),{}),children:n.jsx(c("GeoTable.react"),{columns:y,dataSource:z,label:h._(/*BTDS*/"Simple table"),pagination:{hasNext:b.hasNext,isLoadingNext:b.isLoadingNext,loadNext:b.loadNext,pageSize:q}})})]})}a.displayName=a.name+" [from "+f.id+"]";var s=j!==void 0?j:j=b("OCDevManageWorldsCreatorPerformanceTracesTablePageContentQuery.graphql"),t=k!==void 0?k:k=b("OCDevManageWorldsCreatorPerformanceTracesTablePageContent_sessions.graphql"),u=l!==void 0?l:l=b("OCDevManageWorldsCreatorPerformanceTracesTablePageContent_traceSessions.graphql");function v(a){var b=a.traceArtifactUrl,e=a.traceName;a=a.traceType;var f=a==="PLAYTEST";a=a==="WORLD_CONTENT_UNDERSTANDING";var g=e==null?void 0:e.match(d("HorizonWorldsCreatorPerformanceTraceUtils").JS_TRACE_REGEX);return n.jsxs(c("GeoDropdownMenu.react"),{label:h._(/*BTDS*/"Open trace"),children:[g&&n.jsx(c("GeoMenuLink.react"),{href:d("HorizonWorldsCreatorPerformanceTraceUtils").CHROME_DEVTOOLS_URL,icon:d("fbicon")._(i("509932"),16),label:h._(/*BTDS*/"Chrome dev tools"),openLinkInNewTab:!0}),!(g||f||a)&&n.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(i("509932"),16),label:h._(/*BTDS*/"Perfetto"),onClick:function(){return d("HorizonWorldsCreatorPerformanceTraceUtils").openTraceInPerfetto(b,e)}}),n.jsx(c("GeoMenuLink.react"),{href:b,icon:d("fbicon")._(i("489717"),16),label:h._(/*BTDS*/"Download"),openLinkInNewTab:!0})]})}v.displayName=v.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageWorldsCreatorPerformanceTracesTablePageContentQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"isUseTraceSessions"}],b={kind:"Literal",name:"first",value:10},c=[b],d={alias:null,args:null,kind:"ScalarField",name:"session_id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"trace_session_id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"trace_type",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"trace_artifact_url",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},m={alias:null,args:null,concreteType:"XFBPageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null}],storageKey:null};b=[b,{kind:"Literal",name:"only_uploaded_by_viewer",value:!0}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageWorldsCreatorPerformanceTracesTablePageContentQuery",selections:[{condition:"isUseTraceSessions",kind:"Condition",passingValue:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCDevManageWorldsCreatorPerformanceTracesTablePageContent_sessions"}]},{condition:"isUseTraceSessions",kind:"Condition",passingValue:!0,selections:[{args:null,kind:"FragmentSpread",name:"OCDevManageWorldsCreatorPerformanceTracesTablePageContent_traceSessions"}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageWorldsCreatorPerformanceTracesTablePageContentQuery",selections:[{condition:"isUseTraceSessions",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"XFBViewer",kind:"LinkedField",name:"xfb_viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBTogetherAppUser",kind:"LinkedField",name:"together_app_user",plural:!1,selections:[{alias:null,args:c,concreteType:"XFBTogetherAppUserSessionsConnection",kind:"LinkedField",name:"sessions",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBTogetherAppUserSessionsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBHorizonSession",kind:"LinkedField",name:"node",plural:!1,selections:[d,{alias:null,args:null,concreteType:"XFBHorizonSessionPerformanceTracesConnection",kind:"LinkedField",name:"performance_traces",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBHorizonPerformanceTrace",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,f,g,h,i,j],storageKey:null}],storageKey:null},e,k],storageKey:null},l],storageKey:null},m],storageKey:"sessions(first:10)"},{alias:null,args:c,filters:null,handle:"connection",key:"OCDevManageWorldsCreatorPerformanceTracesTablePageContent_xfb_sessions",kind:"LinkedHandle",name:"sessions"},e],storageKey:null}],storageKey:null}]},{condition:"isUseTraceSessions",kind:"Condition",passingValue:!0,selections:[{alias:null,args:b,concreteType:"XFBHorizonPerformanceTraceSessionsConnection",kind:"LinkedField",name:"xfb_horizon_performance_trace_sessions",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBHorizonPerformanceTraceSessionsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBHorizonPerformanceTraceSession",kind:"LinkedField",name:"node",plural:!1,selections:[e,{alias:null,args:null,concreteType:"XFBHorizonPerformanceTraceSessionTracesConnection",kind:"LinkedField",name:"traces",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBHorizonPerformanceTrace",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,f,g,h,i,j,{alias:null,args:null,concreteType:"XFBHorizonPerformanceTraceSession",kind:"LinkedField",name:"trace_session",plural:!1,selections:[d,e],storageKey:null}],storageKey:null}],storageKey:null},k],storageKey:null},l],storageKey:null},m],storageKey:"xfb_horizon_performance_trace_sessions(first:10,only_uploaded_by_viewer:true)"},{alias:null,args:b,filters:["only_uploaded_by_viewer"],handle:"connection",key:"OCDevManageWorldsCreatorPerformanceTracesTablePageContent_xfb_horizon_performance_trace_sessions",kind:"LinkedHandle",name:"xfb_horizon_performance_trace_sessions"}]}]},params:{id:"9818375718199801",metadata:{},name:"OCDevManageWorldsCreatorPerformanceTracesTablePageContentQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----