HorizonInsightsHeatmapsChart.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","HorizonInsightsHeatmapsChartQuery.graphql","HorizonInsightsHeatmapsLegendModal.react","HorizonWorldInsightNoData.react","Mesh3DHeatmapViz.react","RelayHooks","emptyFunction","fbicon","react","react-compiler-runtime","useJSON","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("HorizonInsightsHeatmapsChartQuery.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=d("react-compiler-runtime").c(23),e=a.filter,f=a.granularity,g=a.metric;a=a.worldID;a=d("RelayHooks").useLazyLoadQuery(n,{filter:e,granularity:String(f),metric:g,worldID:a});var j=m(!1),k=j[0],q=j[1];j=m(p);var s=j[0],t=j[1],u=c("useJSON")((j=(j=a.xfb_hz_creator_insight_portal_heatmap_laser)==null?void 0:j.configuration_json)!=null?j:"{}");j=c("useJSON")((j=(j=a.xfb_hz_creator_insight_portal_heatmap_laser)==null?void 0:j.data_json)!=null?j:"[]");var v;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(v=function(a){t(a.width)},b[0]=v):v=b[0];v=c("useResizeObserver")(v);if(b[1]!==u||b[2]!==j||b[3]!==f){var w;b[5]!==u||b[6]!==f?(w=function(a){return babelHelpers["extends"]({},u,{granularity:f,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})},b[5]=u,b[6]=f,b[7]=w):w=b[7];w=j.map(w);b[1]=u;b[2]=j;b[3]=f;b[4]=w}else w=b[4];w=w;a=(a=(a=a.xfb_hz_creator_insight_portal_heatmap_laser)==null?void 0:a.manifold_name)!=null?a:"";var x;b[8]!==j.length||b[9]!==w||b[10]!==e||b[11]!==f||b[12]!==v||b[13]!==a||b[14]!==g||b[15]!==s?(x=l.jsx(c("GeoFlexbox.react"),{direction:"column",grow:1,children:l.jsx(c("GeoCard.react"),{children:j.length===0?l.jsx(c("HorizonWorldInsightNoData.react"),{}):l.jsx("div",{ref:v,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:w,shouldShowCameraPosition:!1,shouldShowCameraResetButton:!1,showMeshOffsetControls:!1,showMeshRotationControls:!1,useDatGui:!1,valueDirection:"higher_is_hotter",widgetID:"12345",width:s,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(){q(!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))})})})]})}},e+"-"+f+"-"+g)})})})}),b[8]=j.length,b[9]=w,b[10]=e,b[11]=f,b[12]=v,b[13]=a,b[14]=g,b[15]=s,b[16]=x):x=b[16];b[17]===Symbol["for"]("react.memo_cache_sentinel")?(j=function(){q(!1)},b[17]=j):j=b[17];b[18]!==k?(w=l.jsx(d("HorizonInsightsHeatmapsLegendModal.react").HorizonInsightsHeatmapsLegendModal,{isShown:k,onHide:j}),b[18]=k,b[19]=w):w=b[19];b[20]!==x||b[21]!==w?(e=l.jsxs(l.Fragment,{children:[x,w]}),b[20]=x,b[21]=w,b[22]=e):e=b[22];return e}function r(a){var b=d("react-compiler-runtime").c(41),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;var p;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(p=l.jsx(c("GeoListItem.react"),{description:"",label:h._(/*BTDS*/"Data controls")}),b[0]=p):p=b[0];var r;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(r=l.jsx(c("GeoText.react"),{display:"block",maxLines:1,children:h._(/*BTDS*/"Show data")}),b[1]=r):r=b[1];var s;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(s=h._(/*BTDS*/"Show data"),b[2]=s):s=b[2];b[3]!==j||b[4]!==n?(r=l.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"space-between",xstyle:q.accordionItem,children:[r,l.jsx(c("GeoFlexbox.react"),{shrink:0,children:l.jsx(c("GeoSwitch.react"),{isLabelHidden:!0,label:s,onChange:j,value:n})})]}),b[3]=j,b[4]=n,b[5]=r):r=b[5];b[6]===Symbol["for"]("react.memo_cache_sentinel")?(s=l.jsx(c("GeoDivider.react"),{xstyle:q.divider}),b[6]=s):s=b[6];b[7]===Symbol["for"]("react.memo_cache_sentinel")?(j=l.jsx(c("GeoText.react"),{display:"block",maxLines:1,children:h._(/*BTDS*/"Filter percentile")}),b[7]=j):j=b[7];b[8]===Symbol["for"]("react.memo_cache_sentinel")?(n=h._(/*BTDS*/"Filter percentile"),b[8]=n):n=b[8];var t;b[9]!==i?(t=function(a){i(a[0])},b[9]=i,b[10]=t):t=b[10];var u;b[11]!==f?(u=[f],b[11]=f,b[12]=u):u=b[12];b[13]!==t||b[14]!==u?(f=l.jsxs(c("GeoVStack.react"),{xstyle:q.accordionItem,children:[j,l.jsx(c("GeoSlider.react"),{isLabelHidden:!0,isValueDisplayHidden:!0,label:n,max:100,onChange:t,step:1,value:u})]}),b[13]=t,b[14]=u,b[15]=f):f=b[15];b[16]!==f||b[17]!==r?(j=l.jsx(c("GeoAccordionListItem.react"),{isInitiallyExpanded:!1,item:p,children:l.jsxs(c("GeoVStack.react"),{alignItems:"stretch",alignSelf:"stretch",children:[r,s,f]})}),b[16]=f,b[17]=r,b[18]=j):j=b[18];b[19]===Symbol["for"]("react.memo_cache_sentinel")?(n=l.jsx(c("GeoListItem.react"),{description:"",label:h._(/*BTDS*/"Mesh controls")}),b[19]=n):n=b[19];b[20]===Symbol["for"]("react.memo_cache_sentinel")?(t=l.jsx(c("GeoText.react"),{display:"block",maxLines:1,children:h._(/*BTDS*/"Show mesh")}),b[20]=t):t=b[20];b[21]===Symbol["for"]("react.memo_cache_sentinel")?(u=h._(/*BTDS*/"Show mesh"),b[21]=u):u=b[21];b[22]!==k||b[23]!==o?(p=l.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:[t,l.jsx(c("GeoFlexbox.react"),{shrink:0,children:l.jsx(c("GeoSwitch.react"),{isLabelHidden:!0,label:u,onChange:k,value:o})})]}),b[22]=k,b[23]=o,b[24]=p):p=b[24];b[25]===Symbol["for"]("react.memo_cache_sentinel")?(s=l.jsx(c("GeoDivider.react"),{xstyle:q.divider}),b[25]=s):s=b[25];b[26]===Symbol["for"]("react.memo_cache_sentinel")?(f=l.jsx(c("GeoText.react"),{display:"block",maxLines:1,children:h._(/*BTDS*/"Show wireframe")}),b[26]=f):f=b[26];b[27]===Symbol["for"]("react.memo_cache_sentinel")?(r=h._(/*BTDS*/"Show wireframe"),b[27]=r):r=b[27];b[28]!==m||b[29]!==a?(t=l.jsxs(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:[f,l.jsx(c("GeoFlexbox.react"),{shrink:0,children:l.jsx(c("GeoSwitch.react"),{isLabelHidden:!0,label:r,onChange:m,value:a})})]}),b[28]=m,b[29]=a,b[30]=t):t=b[30];b[31]!==p||b[32]!==t?(u=l.jsx(c("GeoAccordionListItem.react"),{isInitiallyExpanded:!1,item:n,children:l.jsxs(c("GeoVStack.react"),{alignItems:"stretch",alignSelf:"stretch",children:[p,s,t]})}),b[31]=p,b[32]=t,b[33]=u):u=b[33];b[34]!==e||b[35]!==g?(k=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"),onChange:c("emptyFunction"),value:g.x.toString()}),l.jsx(c("GeoTextInput.react"),{isDisabled:!0,label:h._(/*BTDS*/"Y"),onChange:c("emptyFunction"),value:g.y.toString()}),l.jsx(c("GeoTextInput.react"),{isDisabled:!0,label:h._(/*BTDS*/"Z"),onChange:c("emptyFunction"),value:g.z.toString()})]}),l.jsx(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:l.jsx(c("GeoTextInput.react"),{isDisabled:!0,label:h._(/*BTDS*/"Value"),onChange:c("emptyFunction"),value:g.value.toString()})}),l.jsx(c("GeoHStack.react"),{justifyContent:"space-between",xstyle:q.accordionItem,children:l.jsx(c("GeoButton.react"),{grow:"fill",label:h._(/*BTDS*/"Centre camera on selected point"),onClick:e})})]})}),b[34]=e,b[35]=g,b[36]=k):k=b[36];b[37]!==j||b[38]!==u||b[39]!==k?(o=l.jsx(c("GeoVStack.react"),{xstyle:q.controlsRoot,children:l.jsxs(c("GeoAccordionList.react"),{hasBoldItemLabel:!0,selectionType:"multi",variant:"flat",children:[j,u,k]})}),b[37]=j,b[38]=u,b[39]=k,b[40]=o):o=b[40];return o}g["default"]=a}),226);
-----
HorizonInsightsHeatmapsChartQuery.graphql",["HorizonInsightsHeatmapsChartQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"filter"},c={defaultValue:null,kind:"LocalArgument",name:"granularity"},d={defaultValue:null,kind:"LocalArgument",name:"metric"},e={defaultValue:null,kind:"LocalArgument",name:"worldID"},f=[{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,c,d,e],kind:"Fragment",metadata:null,name:"HorizonInsightsHeatmapsChartQuery",selections:f,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a,d,e],kind:"Operation",name:"HorizonInsightsHeatmapsChartQuery",selections:f},params:{id:b("HorizonInsightsHeatmapsChartQuery_facebookRelayOperation"),metadata:{},name:"HorizonInsightsHeatmapsChartQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
HorizonInsightsHeatmapsChartQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="29170600655921786"}),null);
-----
-----
HorizonInsightsHeatmapsChartQuery.graphql",["HorizonInsightsHeatmapsChartQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"filter"},c={defaultValue:null,kind:"LocalArgument",name:"granularity"},d={defaultValue:null,kind:"LocalArgument",name:"metric"},e={defaultValue:null,kind:"LocalArgument",name:"worldID"},f=[{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,c,d,e],kind:"Fragment",metadata:null,name:"HorizonInsightsHeatmapsChartQuery",selections:f,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a,d,e],kind:"Operation",name:"HorizonInsightsHeatmapsChartQuery",selections:f},params:{id:b("HorizonInsightsHeatmapsChartQuery_facebookRelayOperation"),metadata:{},name:"HorizonInsightsHeatmapsChartQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
HorizonInsightsHeatmapsChartQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="29170600655921786"}),null);
-----