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