OCDevManageInsightsHeatmapsChart.react",["fbt","ix","GeoAccordionList.react","GeoAccordionListItem.react","GeoButton.react","GeoCard.react","GeoDivider.react","GeoFlexbox.react","GeoHStack.react","GeoListItem.react","GeoSlider.react","GeoSwitch.react","GeoText.react","GeoTextInput.react","GeoVStack.react","Mesh3DHeatmapViz.react","OCDevManageInsightsHeatmapsChartQuery.graphql","OCDevManageInsightsHeatmapsLegendModal.react","OCDevManageWorldsInsightNoData.react","emptyFunction","fbicon","react","useJSON","useOCDevUIQuery","useResizeObserver"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useState,n=j!==void 0?j:j=b("OCDevManageInsightsHeatmapsChartQuery.graphql"),o=650,p=900,q={accordionItem:{marginTop:"x1gslohp",marginBottom:"x12nagc",marginInlineStart:"x1diwwjn",marginInlineEnd:"xbmvrgn",marginLeft:null,marginRight:null,$$css:!0},controlsRoot:{paddingTop:"x1iorvi4",paddingBottom:"xjkvuk6",paddingInlineStart:"xmzvs34",paddingInlineEnd:"xf159sx",paddingLeft:null,paddingRight:null,width:"x1tdqgrh",$$css:!0},divider:{marginTop:"x1xmf6yo",marginBottom:"x1e56ztr",$$css:!0}};function a(a){var b=a.filter,e=a.granularity,f=a.metric;a=a.worldID;a=c("useOCDevUIQuery")(n,{filter:b,granularity:String(e),metric:f,worldID:a});var g=m(!1),j=g[0],k=g[1];g=m(p);var q=g[0],s=g[1],t=c("useJSON")((g=(g=a.xfb_hz_creator_insight_portal_heatmap_laser)==null?void 0:g.configuration_json)!=null?g:"{}");g=c("useJSON")((g=(g=a.xfb_hz_creator_insight_portal_heatmap_laser)==null?void 0:g.data_json)!=null?g:"[]");var u=c("useResizeObserver")(function(a){s(a.width)}),v=g.map(function(a){return babelHelpers["extends"]({},t,{granularity:e,info:"",label:"",labelSize:0,manifold_uri:"",plotType:0,value:a.value,value_direction:"higher_is_hotter",x:a.user_pos_x,x_mesh_offset:0,x_mesh_rotation_radians:0,x_offset:0,x_vector_target:0,y:a.user_pos_y,y_mesh_offset:0,y_mesh_rotation_radians:0,y_offset:0,y_vector_target:0,z:a.user_pos_z,z_mesh_offset:0,z_mesh_rotation_radians:0,z_offset:0,z_vector_target:0})});a=(a=(a=a.xfb_hz_creator_insight_portal_heatmap_laser)==null?void 0:a.manifold_name)!=null?a:"";return l.jsxs(l.Fragment,{children:[l.jsx(c("GeoFlexbox.react"),{direction:"column",grow:1,children:l.jsx(c("GeoCard.react"),{children:g.length===0?l.jsx(c("OCDevManageWorldsInsightNoData.react"),{}):l.jsx("div",{ref:u,style:{borderRadius:8,height:o,maxWidth:"100%",overflow:"hidden",position:"relative",width:"100%"},children:l.jsx("div",{style:{left:0,position:"absolute",top:0},children:l.jsx(c("Mesh3DHeatmapViz.react"),{colorMode:"percentile",fbxMeshScale:1,fbxUri:a===null?"":a+"&cors=false",height:o,isLegendInside:!0,margin:0,meshFileFormat:"fbx",mirrorXAxis:!0,noHeader:!0,points:v,shouldShowCameraPosition:!1,shouldShowCameraResetButton:!1,showMeshOffsetControls:!1,showMeshRotationControls:!1,useDatGui:!1,valueDirection:"higher_is_hotter",widgetID:"12345",width:q,xAxisOffset:0,yAxisOffset:0,zAxisOffset:0,children:function(a){return l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{left:16,position:"absolute",top:16},children:l.jsxs(c("GeoHStack.react"),{children:[l.jsx(c("GeoCard.react"),{children:l.jsx("div",{style:{padding:8},children:l.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("728247"),16),label:h._(/*BTDS*/"Heatmap controls"),onClick:function(){k(!0)}})})}),l.jsx(c("GeoCard.react"),{children:l.jsx("div",{style:{padding:8},children:l.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("580897"),16),label:h._(/*BTDS*/"Reset camera"),onClick:a.onCameraReset})})})]})}),l.jsx("div",{style:{position:"absolute",right:16,top:16},children:l.jsx(c("GeoCard.react"),{children:l.jsx("div",{style:{padding:8},children:l.jsx(r,babelHelpers["extends"]({},a))})})})]})}},b+"-"+e+"-"+f)})})})}),l.jsx(d("OCDevManageInsightsHeatmapsLegendModal.react").OCDevManageInsightsHeatmapsLegendModal,{isShown:j,onHide:function(){k(!1)}})]})}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b,d,e=a.onCenterOnSelectedPoint,f=a.percentile,g=a.selectedPoint,i=a.setPercentile,j=a.setShowDataPoints,k=a.setShowMesh,m=a.setShowWireframe,n=a.showDataPoints,o=a.showMesh;a=a.showWireframe;return l.jsx(b=c("GeoVStack.react"),{xstyle:q.controlsRoot,children:l.jsxs(c("GeoAccordionList.react"),{hasBoldItemLabel:!0,selectionType:"multi",variant:"flat",children:[l.jsx(c("GeoAccordionListItem.react"),{isInitiallyExpanded:!1,item:l.jsx(c("GeoListItem.react"),{description:"",label:h._(/*BTDS*/"Data controls")}),children:l.jsxs(b,{alignItems:"stretch",alignSelf:"stretch",children:[l.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"space-between",xstyle:q.accordionItem,children:[l.jsx(d=c("GeoText.react"),{display:"block",maxLines:1,children:h._(/*BTDS*/"Show data")}),l.jsx(c("GeoFlexbox.react"),{shrink:0,children:l.jsx(c("GeoSwitch.react"),{isLabelHidden:!0,label:h._(/*BTDS*/"Show data"),value:n,onChange:j})})]}),l.jsx(c("GeoDivider.react"),{xstyle:q.divider}),l.jsxs(b,{xstyle:q.accordionItem,children:[l.jsx(d,{display:"block",maxLines:1,children:h._(/*BTDS*/"Filter percentile")}),l.jsx(c("GeoSlider.react"),{isLabelHidden:!0,isValueDisplayHidden:!0,label:h._(/*BTDS*/"Filter percentile"),max:100,step:1,value:[f],onChange:function(a){i(a[0])}})]})]})}),l.jsx(c("GeoAccordionListItem.react"),{isInitiallyExpanded:!1,item:l.jsx(c("GeoListItem.react"),{description:"",label:h._(/*BTDS*/"Mesh controls")}),children:l.jsxs(b,{alignItems:"stretch",alignSelf:"stretch",children:[l.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:[l.jsx(d,{display:"block",maxLines:1,children:h._(/*BTDS*/"Show mesh")}),l.jsx(c("GeoFlexbox.react"),{shrink:0,children:l.jsx(c("GeoSwitch.react"),{isLabelHidden:!0,label:h._(/*BTDS*/"Show mesh"),value:o,onChange:k})})]}),l.jsx(c("GeoDivider.react"),{xstyle:q.divider}),l.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:[l.jsx(d,{display:"block",maxLines:1,children:h._(/*BTDS*/"Show wireframe")}),l.jsx(c("GeoFlexbox.react"),{shrink:0,children:l.jsx(c("GeoSwitch.react"),{isLabelHidden:!0,label:h._(/*BTDS*/"Show wireframe"),value:a,onChange:m})})]})]})}),g!=null&&l.jsx(c("GeoAccordionListItem.react"),{isInitiallyExpanded:!0,item:l.jsx(c("GeoListItem.react"),{description:"",label:h._(/*BTDS*/"Location details")}),children:l.jsxs(c("GeoVStack.react"),{alignItems:"stretch",alignSelf:"stretch",children:[l.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:[l.jsx(c("GeoTextInput.react"),{isDisabled:!0,label:h._(/*BTDS*/"X"),value:g.x.toString(),onChange:c("emptyFunction")}),l.jsx(c("GeoTextInput.react"),{isDisabled:!0,label:h._(/*BTDS*/"Y"),value:g.y.toString(),onChange:c("emptyFunction")}),l.jsx(c("GeoTextInput.react"),{isDisabled:!0,label:h._(/*BTDS*/"Z"),value:g.z.toString(),onChange:c("emptyFunction")})]}),l.jsx(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:l.jsx(c("GeoTextInput.react"),{isDisabled:!0,label:h._(/*BTDS*/"Value"),value:g.value.toString(),onChange:c("emptyFunction")})}),l.jsx(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:l.jsx(c("GeoButton.react"),{grow:"fill",label:h._(/*BTDS*/"Center camera on selected point"),onClick:e})})]})})]})})}r.displayName=r.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageInsightsHeatmapsChartQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"filter"},b={defaultValue:null,kind:"LocalArgument",name:"granularity"},c={defaultValue:null,kind:"LocalArgument",name:"metric"},d={defaultValue:null,kind:"LocalArgument",name:"worldID"},e=[{alias:null,args:[{kind:"Variable",name:"granularity",variableName:"granularity"},{kind:"Variable",name:"interface_rollup",variableName:"filter"},{kind:"Variable",name:"metric",variableName:"metric"},{kind:"Variable",name:"world_id",variableName:"worldID"}],concreteType:"XFBHeatmapData",kind:"LinkedField",name:"xfb_hz_creator_insight_portal_heatmap_laser",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"manifold_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"configuration_json",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"data_json",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,b,c,d],kind:"Fragment",metadata:null,name:"OCDevManageInsightsHeatmapsChartQuery",selections:e,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a,c,d],kind:"Operation",name:"OCDevManageInsightsHeatmapsChartQuery",selections:e},params:{id:"24105137025811127",metadata:{},name:"OCDevManageInsightsHeatmapsChartQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----