"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),l=require("prop-types"),s=require("classnames"),a=require("../../constants.js"),r=require("./WellsMap.module.css.js"),i=require("../../../OffsetWellMap/OffsetWellMap.js"),t=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(e),f=u(l),n=u(s),p=function(e){var l=e.isViewOnly,s=e.subjectWell,u=e.wells,f=e.offsetWellIds,p=e.radius,o=e.mapHidden,c=e.handleChangeOffsetWell,W=e.activeWellId,b=e.viewType;return t.jsx("div",{className:o?r.mapContainerHidden:n.default(r.mapContainer,d.default({},r.mapContainerMobile,b===a.ViewType.mobile)),children:t.jsx(i,{isViewOnly:l,subjectWell:s,wells:u,offsetWellIds:f,radius:p,handleChangeOffsetWell:c,activeWellId:W})})};p.propTypes={isViewOnly:f.default.bool.isRequired,subjectWell:f.default.shape({}),wells:f.default.arrayOf(f.default.shape({})).isRequired,offsetWellIds:f.default.arrayOf(f.default.number).isRequired,radius:f.default.number,mapHidden:f.default.bool.isRequired,handleChangeOffsetWell:f.default.func.isRequired,activeWellId:f.default.number.isRequired,viewType:f.default.string.isRequired},p.defaultProps={subjectWell:null,radius:null},exports.WellsMap=p;
