"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[3979],{43979:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p,getLayer:()=>h});var o=a(13596),l=a(95579),i=a(94963),n=a(41857),r=a(25564),u=a(49443),c=a(47823),d=a(32548),s=a(2445);function g(e){return(0,s.FD)("div",{className:"deckgl-tooltip",children:[(0,s.Y)(d.A,{label:(0,l.t)("Longitude and Latitude")+": ",value:`${e.coordinate[0]}, ${e.coordinate[1]}`}),(0,s.Y)(d.A,{label:(0,l.t)("Height")+": ",value:`${e.object.elevationValue}`})]})}function h(e,t,a,l){const c=e,d=c.color_scheme,s=i.getScale(d).range().map((e=>(0,u.hexToRGB)(e)));let h=t.data.features;c.js_data_mutator&&(h=(0,r.A)(c.js_data_mutator)(h));const p=(0,n.g)(c.js_agg_function,(e=>e.weight));return new o.A({id:`grid-layer-${c.slice_id}`,data:h,cellSize:c.grid_size,extruded:c.extruded,colorRange:s,outline:!1,getElevationValue:p,getColorValue:p,...(0,n.T)(c,l,g)})}const p=(0,c.y)(h,(function(e){return e.map((e=>e.position))}))}}]);