import{jsx as t}from"react/jsx-runtime";import{memo as e}from"react";import o from"@vis.gl/react-mapbox";import"mapbox-gl/dist/mapbox-gl.css";import{MapConfig as r}from"../Map/OffsetWellMap/constants.js";import"../../stores/user-settings-store/UserSettingsStoreProvider.js";import{useUserSettingsStore as s}from"../../stores/user-settings-store/useUserSettingsStore.js";import"../../stores/user-settings-store/UserSettingsStoreContext.js";import i from"./MapPreloader.module.css.js";import{MAP_BOX_ACCESS_TOKEN as a}from"../../../../config/mapbox/index.js";var m=e((function(){var e,m=null!==(e=s((function(t){return t.settings.mapStyle})))&&void 0!==e?e:"satellite";return t("div",{className:i.container,children:t(o,{mapboxAccessToken:a,mapStyle:r.Styles[m],longitude:r.DefaultCoords.longitude,latitude:r.DefaultCoords.latitude,zoom:r.Zoom.Initial,interactive:!1,attributionControl:!1})})}));m.displayName="MapPreloader";export{m as MapPreloader};
//# sourceMappingURL=MapPreloader.js.map
