import e from"@babel/runtime/helpers/defineProperty";import l from"prop-types";import s from"classnames";import{ViewType as i}from"../../constants.js";import r from"./WellsMap.module.css.js";import a from"../../../OffsetWellMap/OffsetWellMap.js";import{jsx as t}from"react/jsx-runtime";var n=function(l){var n=l.isViewOnly,o=l.subjectWell,d=l.wells,f=l.offsetWellIds,p=l.radius,m=l.mapHidden,u=l.handleChangeOffsetWell,W=l.activeWellId,c=l.viewType;return t("div",{className:m?r.mapContainerHidden:s(r.mapContainer,e({},r.mapContainerMobile,c===i.mobile)),children:t(a,{isViewOnly:n,subjectWell:o,wells:d,offsetWellIds:f,radius:p,handleChangeOffsetWell:u,activeWellId:W})})};n.propTypes={isViewOnly:l.bool.isRequired,subjectWell:l.shape({}),wells:l.arrayOf(l.shape({})).isRequired,offsetWellIds:l.arrayOf(l.number).isRequired,radius:l.number,mapHidden:l.bool.isRequired,handleChangeOffsetWell:l.func.isRequired,activeWellId:l.number.isRequired,viewType:l.string.isRequired},n.defaultProps={subjectWell:null,radius:null};export{n as WellsMap};
