OCDevManagePerformanceViewIndividualPerformanceReport.react",["GeoCard.react","GeoGenericCardHeader.react","GeoVStack.react","OCDevManagePerformanceGeneratingNewReportDialog.react","OCDevManagePerformancePlaytestReportContext","OCDevManagePerformanceReport.react","OCDevManagePerformanceViewIndividualPerformanceReportQuery.graphql","OCDevManagePerformanceViewIndividualReportHeader.react","react","useBoolean","useOCDevManageWorldsQueryParams","useOCDevUIQuery"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=s,d=c.useEffect,m=c.useState;function p(){var e=r("useOCDevManageWorldsQueryParams")(),t=String(e.id),n=r("useOCDevUIQuery")(f,{reportID:t}),a=n.fetch__XFBHorizonPlaytestReport,i=m(null),l=i[0],s=i[1],c=r("useBoolean")(!1),p=c.setFalse,g=c.setTrue,h=c.value;d(function(){var e,t,n,r,o,i,l;g();var u=(e=a==null||(t=a.players)==null?void 0:t.nodes.map(function(e){var t,n,r,o,a;return{alias:(t=(n=e.vr_persona)==null?void 0:n.vr_alias)!=null?t:"",id:(r=e.id)!=null?r:"",photoUri:(o=(a=e.vr_persona)==null||(a=a.vr_profile_photo)==null?void 0:a.uri)!=null?o:""}}))!=null?e:[],c,d,m=!0,p=null,_={};if((a==null||(n=a.description)==null?void 0:n[0])==="{"){var f,h=JSON.parse((f=a==null?void 0:a.description)!=null?f:"");c=h.description,d=h.sectionNames,m=h.isCreatorIncluded,p=h.leaderTauId,_=h.sessionOwners}else{var y,C,b=(y=a==null||(C=a.description)==null?void 0:C.split("sectionNames:"))!=null?y:[""];c=b[0],d=b[1],d=d?JSON.parse(d):void 0}var v=(r=a==null||(o=a.sessions)==null?void 0:o.nodes.map(function(e){var t,n,r,o,a,i,l=(t=e.session_id)!=null?t:"";return{session_id:l,session_owner_tau_id:(n=_[l])!=null?n:null,start_time:(r=(o=e.start_time)==null?void 0:o.toString())!=null?r:"",traces:(a=(i=e.performance_traces)==null?void 0:i.nodes.map(function(e){return{creation_time:e.creation_time,id:e.id,name:e.name,trace_artifact_url:e.trace_artifact_url,trace_session_id:e.trace_session_id,trace_type:e.trace_type}}))!=null?a:[]}}))!=null?r:[],S=v.flatMap(function(e){return e.traces}),R={collaborators:u,description:c,hasTraces:S.length>0,id:(i=a==null?void 0:a.id)!=null?i:"",isCreatorIncluded:m,leaderTauId:p,name:(l=a==null?void 0:a.name)!=null?l:"",sectionNames:d,sessions:v,traces:S};s(R)},[a,g]);var y=o("OCDevManagePerformancePlaytestReportContext").usePlaytestReportProvider({setReport:s});return u.jsx(o("OCDevManagePerformancePlaytestReportContext").OCDevManagePerformancePlaytestReportContext.Provider,{value:y,children:u.jsxs(r("GeoVStack.react"),{children:[u.jsx(r("OCDevManagePerformanceGeneratingNewReportDialog.react"),{isShown:h,setHidden:p}),l&&u.jsx(r("GeoCard.react"),{header:u.jsx(r("GeoGenericCardHeader.react"),{children:u.jsx(r("OCDevManagePerformanceViewIndividualReportHeader.react"),{report:l})}),isOverflowYAuto:!1,xstyle:_.card,children:u.jsx(r("OCDevManagePerformanceReport.react"),{report:l})})]})})}p.displayName=p.name+" [from "+i.id+"]";var _={card:{marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",$$css:!0}},f=e!==void 0?e:e=n("OCDevManagePerformanceViewIndividualPerformanceReportQuery.graphql");l.default=p}),98);
-----