import{jsxs as e,Fragment as l,jsx as o}from"react/jsx-runtime";import{Source as i,Layer as s}from"@vis.gl/react-mapbox";import{MapConfig as t}from"../../constants.js";import{GhostSelectionZone as a}from"../GhostSelectionZone/GhostSelectionZone.js";import{ClusteredWellsSource as r}from"./components/ClusteredWellsSource/ClusteredWellsSource.js";import{RadiusPreviewLayers as n}from"./components/RadiusPreviewLayers/RadiusPreviewLayers.js";import{WellHighlightLayers as d}from"./components/WellHighlightLayers/WellHighlightLayers.js";import{LassoDrawSection as c}from"./components/LassoDrawSection/LassoDrawSection.js";import{MapTooltipPopups as h}from"./components/MapTooltipPopups/MapTooltipPopups.js";var p=function(p){var u=p.wellsGeoJSON,g=p.highlightGeoJSON,m=p.activeHighlightGeoJSON,S=p.loadingTilesGeoJSON,v=p.hoveredWell,w=p.mapStyle,f=p.isSatellite,C=p.clusterColorExpression,W=p.isRadiusToolActive,y=p.radiusState,j=p.radiusDrawingPreviewCircle,D=p.isRadiusHoveringEdge,b=p.isRadiusDrawingDragging,L=p.showGhostZone,O=p.selectionZone,R=p.isTooZoomedOut,G=p.isLoadAllWells,M=p.isActiveWellIsSubjectWell,A=p.isLassoActive,J=p.isMapReady,N=p.polygonCoords,T=p.drawRef,E=p.handleDrawCreate,H=p.handleDrawUpdate,I=p.handleDrawDelete,P=p.handleModeChange,x=p.handleSelectionChange,Z=p.subjectWellCoords,U=p.subjectWell,k=p.handleSubjectWellMouseEnter,F=p.handleSubjectWellMouseLeave,V=p.hoveredCluster,z=p.tooltipAnchor,q=p.tooltipOffset,B=p.isViewOnly,K=p.isClickable;return e(l,{children:[o(r,{wellsGeoJSON:u,clusterColorExpression:C,isSatellite:f}),L&&O&&o(a,{zone:O,mapStyle:w}),o(i,{id:t.SourceIds.LoadingTiles,type:"geojson",data:R||G?{type:"FeatureCollection",features:[]}:S,children:o(s,{id:t.LayerIds.LoadingTilesFill,type:"fill",beforeId:t.LayerIds.WellsUnclustered,paint:{"fill-color":"rgba(33, 33, 33, 0.60)","fill-antialias":!1}})}),W&&j&&o(n,{radiusDrawingPreviewCircle:j,radiusState:y,isRadiusHoveringEdge:D,isRadiusDrawingDragging:b,mapStyle:w}),o(d,{highlightGeoJSON:g,activeHighlightGeoJSON:m,isActiveWellIsSubjectWell:M,hoveredWell:v,mapStyle:w}),o(c,{isLassoActive:A,isMapReady:J,mapStyle:w,polygonCoords:N,drawRef:T,handleDrawCreate:E,handleDrawUpdate:H,handleDrawDelete:I,handleModeChange:P,handleSelectionChange:x,subjectWellCoords:Z,subjectWell:U,handleSubjectWellMouseEnter:k,handleSubjectWellMouseLeave:F}),o(h,{hoveredWell:v,hoveredCluster:V,tooltipAnchor:z,tooltipOffset:q,isViewOnly:B,isClickable:K})]})};export{p as MapLayers};
//# sourceMappingURL=MapLayers.js.map
