"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("@vis.gl/react-mapbox");require("mapbox-gl/dist/mapbox-gl.css");var s=require("../Map/OffsetWellMap/constants.js");require("../../stores/user-settings-store/UserSettingsStoreProvider.js");var o=require("../../stores/user-settings-store/useUserSettingsStore.js");require("../../stores/user-settings-store/UserSettingsStoreContext.js");var i=require("./MapPreloader.module.css.js"),a=require("../../../../config/mapbox/index.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(r),l=t.memo((function(){var t,r=null!==(t=o.useUserSettingsStore((function(e){return e.settings.mapStyle})))&&void 0!==t?t:"satellite";return e.jsx("div",{className:i.container,children:e.jsx(u.default,{mapboxAccessToken:a.MAP_BOX_ACCESS_TOKEN,mapStyle:s.MapConfig.Styles[r],longitude:s.MapConfig.DefaultCoords.longitude,latitude:s.MapConfig.DefaultCoords.latitude,zoom:s.MapConfig.Zoom.Initial,interactive:!1,attributionControl:!1})})}));l.displayName="MapPreloader",exports.MapPreloader=l;
//# sourceMappingURL=MapPreloader.js.map
