@geowiki/map 0.16.9-dev.9 → 0.16.10-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,8 +138,7 @@ var init_GenericCache = __esm({
138
138
  getFromStorage(key) {
139
139
  try {
140
140
  const stored = localStorage.getItem(key);
141
- if (!stored)
142
- return null;
141
+ if (!stored) return null;
143
142
  const entry = JSON.parse(stored);
144
143
  if (this.isValid(entry)) {
145
144
  this.hitCount++;
@@ -446,6 +445,7 @@ import {
446
445
  tokenData,
447
446
  IsTokenExpired
448
447
  } from "@geowiki/core";
448
+ import { CRS } from "leaflet";
449
449
 
450
450
  // src/Components/Evoland/EvolandContainer.tsx
451
451
  import { AuthenticationFailure } from "@geowiki/ui";
@@ -556,7 +556,7 @@ var prepareRGBImage = (array, width, height) => {
556
556
  ctx == null ? void 0 : ctx.putImageData(imageData, 0, 0);
557
557
  return canvas;
558
558
  };
559
- var getCanvasDataFromImageArray = (rasterItem, location, bounds, ndviImageCanvasContext, selectedBand) => __async(void 0, null, function* () {
559
+ var getCanvasDataFromImageArray = (rasterItem, location, bounds, ndviImageCanvasContext, selectedBand) => __async(null, null, function* () {
560
560
  var _a, _b;
561
561
  try {
562
562
  var tiffWidth = rasterItem.width;
@@ -572,8 +572,7 @@ var getCanvasDataFromImageArray = (rasterItem, location, bounds, ndviImageCanvas
572
572
  var rgb = null;
573
573
  if (((_a = rasterItem.name) == null ? void 0 : _a.toLowerCase().includes("ndvi")) && ((_b = rasterItem.name) == null ? void 0 : _b.toLowerCase().includes("perc")))
574
574
  rgb = yield getNDVIValueForPixel(ndviImageCanvasContext, xTiff, yTiff);
575
- else
576
- rgb = null;
575
+ else rgb = null;
577
576
  return [
578
577
  selectedValue,
579
578
  rgb !== null && rgb !== void 0 ? {
@@ -616,12 +615,11 @@ var deepCloneRasterAssetItem = (isAnnualAnnotation, asset, assetBuffer, uri, sel
616
615
  rasterItem.buffer = [...asset.buffer];
617
616
  rasterItem.uri = [...asset.uri];
618
617
  rasterItem.buffer[selectedBand] = new Uint32Array(assetBuffer);
619
- if (Array.isArray(rasterItem.uri))
620
- rasterItem.uri[selectedBand] = uri;
618
+ if (Array.isArray(rasterItem.uri)) rasterItem.uri[selectedBand] = uri;
621
619
  }
622
620
  return rasterItem;
623
621
  };
624
- var getEmptyPreviewRasterItem = (id, length, width, height, labels, isAnnualAnnotation, selectedBand, metadata) => __async(void 0, null, function* () {
622
+ var getEmptyPreviewRasterItem = (id, length, width, height, labels, isAnnualAnnotation, selectedBand, metadata) => __async(null, null, function* () {
625
623
  var { newArray, canvas } = yield getEmptyPreviewRasterItemForInsert(
626
624
  length,
627
625
  width,
@@ -646,12 +644,12 @@ var getEmptyPreviewRasterItem = (id, length, width, height, labels, isAnnualAnno
646
644
  }
647
645
  return rasterItem;
648
646
  });
649
- var getEmptyPreviewRasterItemForInsert = (length, width, height, labels) => __async(void 0, null, function* () {
647
+ var getEmptyPreviewRasterItemForInsert = (length, width, height, labels) => __async(null, null, function* () {
650
648
  const newArray = new Uint32Array(length).fill(0);
651
649
  const canvas = grayScaleArrayToCanvas(newArray, width, height, labels);
652
650
  return { newArray, canvas };
653
651
  });
654
- var updatePreviewRasterFrom = (fromRasterItem, toPreviewRasterItem, isAnnualAnnotation) => __async(void 0, null, function* () {
652
+ var updatePreviewRasterFrom = (fromRasterItem, toPreviewRasterItem, isAnnualAnnotation) => __async(null, null, function* () {
655
653
  var _a, _b, _c;
656
654
  if (!fromRasterItem) {
657
655
  return toPreviewRasterItem;
@@ -677,7 +675,7 @@ var updatePreviewRasterFrom = (fromRasterItem, toPreviewRasterItem, isAnnualAnno
677
675
  }
678
676
  return toPreviewRasterItem;
679
677
  });
680
- var getRasterItemsNoColorMap = (arrayBuffer, labels) => __async(void 0, null, function* () {
678
+ var getRasterItemsNoColorMap = (arrayBuffer, labels) => __async(null, null, function* () {
681
679
  const tiff = yield fromArrayBuffer(arrayBuffer);
682
680
  const image = yield tiff.getImage();
683
681
  const pool = new Pool();
@@ -701,7 +699,7 @@ var getRasterItemsNoColorMap = (arrayBuffer, labels) => __async(void 0, null, fu
701
699
  pool.destroy();
702
700
  return { width, height, rasterItems };
703
701
  });
704
- var getRasterItems = (arrayBuffer, projectType) => __async(void 0, null, function* () {
702
+ var getRasterItems = (arrayBuffer, projectType) => __async(null, null, function* () {
705
703
  const tiff = yield fromArrayBuffer(arrayBuffer);
706
704
  const image = yield tiff.getImage();
707
705
  const pool = new Pool();
@@ -741,7 +739,7 @@ var getRasterItems = (arrayBuffer, projectType) => __async(void 0, null, functio
741
739
  pool.destroy();
742
740
  return { rasters, width, height, rasterItems };
743
741
  });
744
- var getAssetItemsForLocationAssets = (assets, labels) => __async(void 0, null, function* () {
742
+ var getAssetItemsForLocationAssets = (assets, labels) => __async(null, null, function* () {
745
743
  var rasterItems = [];
746
744
  for (var i = 0; i < (assets == null ? void 0 : assets.length); i++) {
747
745
  const item = assets[i];
@@ -764,7 +762,7 @@ var getAssetItemsForLocationAssets = (assets, labels) => __async(void 0, null, f
764
762
  }
765
763
  return rasterItems;
766
764
  });
767
- var getRasterAssetItemsForLocationComposite = (assets) => __async(void 0, null, function* () {
765
+ var getRasterAssetItemsForLocationComposite = (assets) => __async(null, null, function* () {
768
766
  var rasterItems = [];
769
767
  for (var i = 0; i < (assets == null ? void 0 : assets.length); i++) {
770
768
  const item = assets[i];
@@ -785,7 +783,7 @@ var getRasterAssetItemsForLocationComposite = (assets) => __async(void 0, null,
785
783
  }
786
784
  return rasterItems;
787
785
  });
788
- var copyAllRasterSegments = (rasterItem, previewRasterItem, selectedValue, labelValue, labels) => __async(void 0, null, function* () {
786
+ var copyAllRasterSegments = (rasterItem, previewRasterItem, selectedValue, labelValue, labels) => __async(null, null, function* () {
789
787
  var newBuffer = overwriteArrayBufferWithSelectedValue(
790
788
  rasterItem.buffer,
791
789
  previewRasterItem.buffer,
@@ -861,8 +859,7 @@ function getAdjPixel(y, x, selectedValue, array2dMatrix) {
861
859
  while (pixelsToCheck.length > 0) {
862
860
  const [xTiff, yTiff] = pixelsToCheck.pop();
863
861
  var key = xTiff + "_" + yTiff;
864
- if (checkedPixels.has(key))
865
- continue;
862
+ if (checkedPixels.has(key)) continue;
866
863
  checkedPixels.add(key);
867
864
  if (array2dMatrix[yTiff][xTiff] === selectedValue) {
868
865
  sameValPixels.push([yTiff, xTiff]);
@@ -884,7 +881,7 @@ function getAdjPixel(y, x, selectedValue, array2dMatrix) {
884
881
  }
885
882
  return sameValPixels;
886
883
  }
887
- var paintRasterSegment = (sourceRasterItem, destRasterItem, locations, bounds, labelValue, labels, paintType, selectedBand, isAnnualAnnotation) => __async(void 0, null, function* () {
884
+ var paintRasterSegment = (sourceRasterItem, destRasterItem, locations, bounds, labelValue, labels, paintType, selectedBand, isAnnualAnnotation) => __async(null, null, function* () {
888
885
  var tiffWidth = sourceRasterItem.width;
889
886
  var tiffHeight = sourceRasterItem.height;
890
887
  var annotatedRaster = isAnnualAnnotation ? destRasterItem.buffer : destRasterItem.buffer[selectedBand];
@@ -1007,8 +1004,7 @@ function pointInsidePolygon(xTiff, yTiff, vs) {
1007
1004
  var xi = vs[i].xTiff, yi = vs[i].yTiff;
1008
1005
  var xj = vs[j].xTiff, yj = vs[j].yTiff;
1009
1006
  var intersect = yi > yTiff !== yj > yTiff && xTiff < (xj - xi) * (yTiff - yi) / (yj - yi) + xi;
1010
- if (intersect)
1011
- inside = !inside;
1007
+ if (intersect) inside = !inside;
1012
1008
  }
1013
1009
  return inside;
1014
1010
  }
@@ -1047,7 +1043,7 @@ function getDiagonalCoordinates(x1, y1, x2, y2) {
1047
1043
  coordinates.push({ yTiff: x2, xTiff: y2 });
1048
1044
  return coordinates;
1049
1045
  }
1050
- var getActiveLearningAnnotation = (assetHref, projectType) => __async(void 0, null, function* () {
1046
+ var getActiveLearningAnnotation = (assetHref, projectType) => __async(null, null, function* () {
1051
1047
  const res = yield fetch(assetHref);
1052
1048
  const buffer = yield res.arrayBuffer();
1053
1049
  const rItems = yield getRasterItems(buffer, projectType);
@@ -1064,7 +1060,7 @@ var getActiveLearningAnnotation = (assetHref, projectType) => __async(void 0, nu
1064
1060
  };
1065
1061
  return assetItem;
1066
1062
  });
1067
- var createImageDataForNDVI = (asset) => __async(void 0, null, function* () {
1063
+ var createImageDataForNDVI = (asset) => __async(null, null, function* () {
1068
1064
  var canvas = document.createElement("canvas");
1069
1065
  var context = canvas.getContext("2d");
1070
1066
  var image = new Image();
@@ -1074,7 +1070,7 @@ var createImageDataForNDVI = (asset) => __async(void 0, null, function* () {
1074
1070
  context == null ? void 0 : context.drawImage(image, 0, 0, canvas.width, canvas.height);
1075
1071
  return context;
1076
1072
  });
1077
- var getNDVIValueForPixel = (ndviImageCanvasContext, x, y) => __async(void 0, null, function* () {
1073
+ var getNDVIValueForPixel = (ndviImageCanvasContext, x, y) => __async(null, null, function* () {
1078
1074
  var context = ndviImageCanvasContext;
1079
1075
  var data = context == null ? void 0 : context.getImageData(x, y, 1, 1).data;
1080
1076
  return data;
@@ -1194,33 +1190,32 @@ function getAnnotationAssetItemsForLocation(assets, projectId, isAnnualAnnotatio
1194
1190
  var rasterItems = [];
1195
1191
  for (var i = 0; i < (assets == null ? void 0 : assets.length); i++) {
1196
1192
  const item = assets[i];
1197
- const res = yield fetch(item.href);
1198
- const buffer = Buffer.from(yield res.arrayBuffer()).toString("base64");
1199
1193
  const rItem = yield LocationService.processAnnotationProcessannotationPost({
1200
- item_buffer: buffer,
1194
+ //item_buffer: buffer,
1201
1195
  project_id: projectId,
1202
- is_annual_annotation: isAnnualAnnotation
1196
+ is_annual_annotation: isAnnualAnnotation,
1197
+ asset_url: item.href
1203
1198
  });
1204
1199
  var bufferData;
1205
1200
  if (Array.isArray((_a = rItem.result) == null ? void 0 : _a.base64)) {
1206
1201
  bufferData = (_b = rItem.result) == null ? void 0 : _b.base64.map((x) => {
1207
1202
  var _a2;
1208
1203
  if (((_a2 = rItem.result) == null ? void 0 : _a2.arrayType) == "uint32") {
1209
- const buffer2 = Buffer.from(x, "base64");
1204
+ const buffer = Buffer.from(x, "base64");
1210
1205
  return new Uint32Array(
1211
- buffer2.buffer.slice(
1212
- buffer2.byteOffset,
1213
- buffer2.byteOffset + buffer2.byteLength
1206
+ buffer.buffer.slice(
1207
+ buffer.byteOffset,
1208
+ buffer.byteOffset + buffer.byteLength
1214
1209
  )
1215
1210
  );
1216
1211
  }
1217
1212
  });
1218
1213
  } else {
1219
- const buffer2 = rItem.result ? Buffer.from((_c = rItem.result) == null ? void 0 : _c.base64, "base64") : [];
1214
+ const buffer = rItem.result ? Buffer.from((_c = rItem.result) == null ? void 0 : _c.base64, "base64") : [];
1220
1215
  bufferData = ((_d = rItem.result) == null ? void 0 : _d.arrayType) == "uint32" ? new Uint32Array(
1221
- buffer2 == null ? void 0 : buffer2.buffer.slice(
1222
- buffer2 == null ? void 0 : buffer2.byteOffset,
1223
- (buffer2 == null ? void 0 : buffer2.byteOffset) + (buffer2 == null ? void 0 : buffer2.byteLength)
1216
+ buffer == null ? void 0 : buffer.buffer.slice(
1217
+ buffer == null ? void 0 : buffer.byteOffset,
1218
+ (buffer == null ? void 0 : buffer.byteOffset) + (buffer == null ? void 0 : buffer.byteLength)
1224
1219
  )
1225
1220
  ) : rItem.result ? Buffer.from((_e = rItem.result) == null ? void 0 : _e.base64, "base64") : [];
1226
1221
  }
@@ -1281,33 +1276,31 @@ function getRasterAssetItemsForLocationAssets(assets) {
1281
1276
  var rasterItems = [];
1282
1277
  for (var i = 0; i < (assets == null ? void 0 : assets.length); i++) {
1283
1278
  const item = assets[i];
1284
- const res = yield fetch(item.href);
1285
- const buffer = Buffer.from(yield res.arrayBuffer()).toString("base64");
1286
1279
  const rItem = yield LocationService.processRasterProcessrasterPost({
1287
- item_buffer: buffer
1280
+ //item_buffer: buffer,
1281
+ asset_url: item.href
1288
1282
  });
1289
1283
  var bufferData;
1290
1284
  if (Array.isArray((_a = rItem.result) == null ? void 0 : _a.base64)) {
1291
1285
  bufferData = (_b = rItem.result) == null ? void 0 : _b.base64.map((x) => {
1292
1286
  var _a2, _b2;
1293
- if (((_a2 = rItem.result) == null ? void 0 : _a2.arrayType) == "uint8")
1294
- return Buffer.from(x, "base64");
1287
+ if (((_a2 = rItem.result) == null ? void 0 : _a2.arrayType) == "uint8") return Buffer.from(x, "base64");
1295
1288
  else if (((_b2 = rItem.result) == null ? void 0 : _b2.arrayType) == "uint32") {
1296
- const buffer2 = Buffer.from(x, "base64");
1289
+ const buffer = Buffer.from(x, "base64");
1297
1290
  return new Uint32Array(
1298
- buffer2.buffer.slice(
1299
- buffer2.byteOffset,
1300
- buffer2.byteOffset + buffer2.byteLength
1291
+ buffer.buffer.slice(
1292
+ buffer.byteOffset,
1293
+ buffer.byteOffset + buffer.byteLength
1301
1294
  )
1302
1295
  );
1303
1296
  }
1304
1297
  });
1305
1298
  } else {
1306
- const buffer2 = rItem.result ? Buffer.from((_c = rItem.result) == null ? void 0 : _c.base64, "base64") : [];
1299
+ const buffer = rItem.result ? Buffer.from((_c = rItem.result) == null ? void 0 : _c.base64, "base64") : [];
1307
1300
  bufferData = ((_d = rItem.result) == null ? void 0 : _d.arrayType) == "uint8" ? Buffer.from((_e = rItem.result) == null ? void 0 : _e.base64, "base64") : ((_f = rItem.result) == null ? void 0 : _f.arrayType) == "uint32" ? new Uint32Array(
1308
- buffer2 == null ? void 0 : buffer2.buffer.slice(
1309
- buffer2 == null ? void 0 : buffer2.byteOffset,
1310
- (buffer2 == null ? void 0 : buffer2.byteOffset) + (buffer2 == null ? void 0 : buffer2.byteLength)
1301
+ buffer == null ? void 0 : buffer.buffer.slice(
1302
+ buffer == null ? void 0 : buffer.byteOffset,
1303
+ (buffer == null ? void 0 : buffer.byteOffset) + (buffer == null ? void 0 : buffer.byteLength)
1311
1304
  )
1312
1305
  ) : rItem.result ? Buffer.from((_g = rItem.result) == null ? void 0 : _g.base64, "base64") : [];
1313
1306
  }
@@ -1372,16 +1365,14 @@ function ClearAnnotation(annotatedRasterAsset, isAnnualAnnotation, selectedBand,
1372
1365
  selectedBand,
1373
1366
  annotationRasterAsset.metadata
1374
1367
  );
1375
- if (isAnnualAnnotation)
1376
- return { annotationRaster, pastValues };
1368
+ if (isAnnualAnnotation) return { annotationRaster, pastValues };
1377
1369
  else {
1378
1370
  var multiBandAnnotation = annotatedRasterAsset;
1379
1371
  if (multiBandAnnotation == null ? void 0 : multiBandAnnotation.buffer[selectedBand]) {
1380
1372
  multiBandAnnotation.buffer[selectedBand] = annotationRaster.buffer[selectedBand];
1381
1373
  multiBandAnnotation.uri[selectedBand] = annotationRaster.uri[selectedBand];
1382
1374
  return { multiBandAnnotation, undefined: void 0 };
1383
- } else
1384
- return { annotatedRasterAsset: void 0, undefined: void 0 };
1375
+ } else return { annotatedRasterAsset: void 0, undefined: void 0 };
1385
1376
  }
1386
1377
  });
1387
1378
  }
@@ -1415,8 +1406,7 @@ function createTask(locationId, projectId, referenceDate) {
1415
1406
  currentTask: res.task,
1416
1407
  annotation_dates: yield getAnnotationDates(res == null ? void 0 : res.task)
1417
1408
  };
1418
- } else
1419
- return { location: null, currentTask: null, annotation_dates: null };
1409
+ } else return { location: null, currentTask: null, annotation_dates: null };
1420
1410
  });
1421
1411
  }
1422
1412
  function getTask(taskId) {
@@ -1444,8 +1434,7 @@ function getTask(taskId) {
1444
1434
  annotation_dates: yield getAnnotationDates(res == null ? void 0 : res.task),
1445
1435
  location: locData
1446
1436
  };
1447
- } else
1448
- return { currentTask: null, annotation_dates: null, location: null };
1437
+ } else return { currentTask: null, annotation_dates: null, location: null };
1449
1438
  });
1450
1439
  }
1451
1440
  function getActiveLearningAnnotationAsset(assetHref, labels, projectDetail) {
@@ -1497,8 +1486,7 @@ function insertEmptyBufferForSingleBand(length, width, height, selectedBand, ann
1497
1486
  annotatedAsset.buffer[selectedBand] = newArray;
1498
1487
  annotatedAsset.uri[selectedBand] = canvas.toDataURL();
1499
1488
  return annotatedAsset;
1500
- } else
1501
- return null;
1489
+ } else return null;
1502
1490
  });
1503
1491
  }
1504
1492
  function getTaskChangeDetails(taskId) {
@@ -1512,10 +1500,8 @@ function getTaskGeometryDetail(taskId) {
1512
1500
  });
1513
1501
  }
1514
1502
  function getCentroid(geometry, has_area_of_interest, geometry_aoi, is_segment, geometry_segment) {
1515
- if (has_area_of_interest)
1516
- return geometry_aoi;
1517
- if (is_segment)
1518
- return geometry_segment;
1503
+ if (has_area_of_interest) return geometry_aoi;
1504
+ if (is_segment) return geometry_segment;
1519
1505
  return geometry;
1520
1506
  }
1521
1507
  function showAnnotation(savedAnnotations, submittedAnnotations, annotatedRasterAsset) {
@@ -1580,7 +1566,10 @@ var initialState = {
1580
1566
  isAnnualAnnotation: true,
1581
1567
  selectedBand: void 0,
1582
1568
  taskGeometry: null,
1583
- task_for_review: false
1569
+ task_for_review: false,
1570
+ s2_tile_url: null,
1571
+ landsat_tile_url: null,
1572
+ selectedBaseLayer: null
1584
1573
  };
1585
1574
  var useEvolandStore = create()((set) => ({
1586
1575
  clickPoint: null,
@@ -1633,6 +1622,9 @@ var useEvolandStore = create()((set) => ({
1633
1622
  selectedBand: void 0,
1634
1623
  taskGeometry: null,
1635
1624
  task_for_review: false,
1625
+ s2_tile_url: null,
1626
+ landsat_tile_url: null,
1627
+ selectedBaseLayer: null,
1636
1628
  setSelectedRasterAsset: (selectedRaster) => {
1637
1629
  var _a;
1638
1630
  set({ selectedRasterAsset: selectedRaster });
@@ -1657,7 +1649,7 @@ var useEvolandStore = create()((set) => ({
1657
1649
  setRecenterLocation: () => set({ recenterLocation: false }),
1658
1650
  setTimerReset: (timerreset) => set({ timerReset: timerreset }),
1659
1651
  setAnnotationTime: (annotationtime) => set({ annotationTime: annotationtime }),
1660
- onLocationSelected: (point2) => __async(void 0, null, function* () {
1652
+ onLocationSelected: (point2) => __async(null, null, function* () {
1661
1653
  var data = yield LocationService2.getPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet(
1662
1654
  point2.lng,
1663
1655
  point2.lat,
@@ -1683,10 +1675,10 @@ var useEvolandStore = create()((set) => ({
1683
1675
  location: locData
1684
1676
  });
1685
1677
  }),
1686
- onRecenterLocation: () => __async(void 0, null, function* () {
1678
+ onRecenterLocation: () => __async(null, null, function* () {
1687
1679
  return set({ recenterLocation: true });
1688
1680
  }),
1689
- getLocationAssets: (locationId, projectId, type, taskId) => __async(void 0, null, function* () {
1681
+ getLocationAssets: (locationId, projectId, type, taskId) => __async(null, null, function* () {
1690
1682
  var _a, _b;
1691
1683
  const state = useEvolandStore.getState();
1692
1684
  var {
@@ -1809,12 +1801,16 @@ var useEvolandStore = create()((set) => ({
1809
1801
  }
1810
1802
  return [];
1811
1803
  }),
1812
- getLocationDetails: (locationId, projectId, user, taskId, isAdmin) => __async(void 0, null, function* () {
1804
+ getLocationDetails: (locationId, projectId, user, taskId, isAdmin) => __async(null, null, function* () {
1813
1805
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
1814
1806
  var state = useEvolandStore.getState();
1815
1807
  var { referenceDate, reference_dates, sessionTimeOut, projectDetail, task_for_review } = state;
1816
- if (!referenceDate)
1808
+ if (!referenceDate) {
1817
1809
  referenceDate = projectDetail.project_reference_date.toString();
1810
+ set({
1811
+ referenceDate
1812
+ });
1813
+ }
1818
1814
  var annotationDates = null;
1819
1815
  var locationreq = {
1820
1816
  location_id: locationId,
@@ -1898,7 +1894,7 @@ var useEvolandStore = create()((set) => ({
1898
1894
  }
1899
1895
  }
1900
1896
  }),
1901
- getNextLocationDetails: (projectId) => __async(void 0, null, function* () {
1897
+ getNextLocationDetails: (projectId) => __async(null, null, function* () {
1902
1898
  var _a, _b, _c;
1903
1899
  set({ isLoading: true });
1904
1900
  var state = useEvolandStore.getState();
@@ -1967,7 +1963,7 @@ var useEvolandStore = create()((set) => ({
1967
1963
  setOpacity: (opacity) => set({ opacity }),
1968
1964
  setCompositeOpacity: (opacity) => set({ compositeOpacity: opacity }),
1969
1965
  setAnnotationOpacity: (opacity) => set({ annotationOpacity: opacity }),
1970
- addLabel: (loc, bounds, label) => __async(void 0, null, function* () {
1966
+ addLabel: (loc, bounds, label) => __async(null, null, function* () {
1971
1967
  var _a;
1972
1968
  set({ isLoading: true });
1973
1969
  var store = useEvolandStore.getState();
@@ -2027,14 +2023,14 @@ var useEvolandStore = create()((set) => ({
2027
2023
  setShowTimeSeries: (value) => set({ showTimeSeries: value }),
2028
2024
  reset: () => set(initialState),
2029
2025
  setSelectedColorLabel: (label) => set({ selectedColorLabel: label }),
2030
- getLegendsDetails: (array) => __async(void 0, null, function* () {
2026
+ getLegendsDetails: (array) => __async(null, null, function* () {
2031
2027
  var store = useEvolandStore.getState();
2032
2028
  var legends = yield getLegends(array, store.labels);
2033
2029
  set({
2034
2030
  legends
2035
2031
  });
2036
2032
  }),
2037
- getLocationMetaData: (locationId, projectId, taskId) => __async(void 0, null, function* () {
2033
+ getLocationMetaData: (locationId, projectId, taskId) => __async(null, null, function* () {
2038
2034
  var _a, _b;
2039
2035
  set({ isLoading: true });
2040
2036
  var state = useEvolandStore.getState();
@@ -2060,7 +2056,7 @@ var useEvolandStore = create()((set) => ({
2060
2056
  set({ sessionTimeOut: true, isLoading: false });
2061
2057
  }
2062
2058
  }),
2063
- getLabels: (projectId) => __async(void 0, null, function* () {
2059
+ getLabels: (projectId) => __async(null, null, function* () {
2064
2060
  var state = useEvolandStore.getState();
2065
2061
  if (state.labels) {
2066
2062
  return state.labels;
@@ -2082,10 +2078,10 @@ var useEvolandStore = create()((set) => ({
2082
2078
  });
2083
2079
  return allLabels;
2084
2080
  }),
2085
- setBrushThickness: (value) => __async(void 0, null, function* () {
2081
+ setBrushThickness: (value) => __async(null, null, function* () {
2086
2082
  return set({ brushThickness: value });
2087
2083
  }),
2088
- getProjectDetail: (projectId) => __async(void 0, null, function* () {
2084
+ getProjectDetail: (projectId) => __async(null, null, function* () {
2089
2085
  set({ isLoading: true });
2090
2086
  const projectInfo = yield ProjectService.projectDetailProjectdetailProjectIdProjectIdGet(
2091
2087
  projectId
@@ -2096,12 +2092,12 @@ var useEvolandStore = create()((set) => ({
2096
2092
  isAnnualAnnotation: (projectInfo == null ? void 0 : projectInfo.project_type) == "ANNUALLY" /* ANNUALLY */ ? true : false
2097
2093
  });
2098
2094
  }),
2099
- getTaskEvents: (taskId) => __async(void 0, null, function* () {
2095
+ getTaskEvents: (taskId) => __async(null, null, function* () {
2100
2096
  set({ isLoading: true });
2101
2097
  const taskevents = yield TaskService2.getTaskEventsTaskeventsTaskIdTaskIdGet(taskId);
2102
2098
  set({ isLoading: false, taskEvents: taskevents });
2103
2099
  }),
2104
- getTaskAnnotation: (submittedAnnotationAsset, assetType) => __async(void 0, null, function* () {
2100
+ getTaskAnnotation: (submittedAnnotationAsset, assetType) => __async(null, null, function* () {
2105
2101
  var _a, _b, _c;
2106
2102
  if (submittedAnnotationAsset != null && submittedAnnotationAsset.length > 0) {
2107
2103
  const state = useEvolandStore.getState();
@@ -2151,7 +2147,7 @@ var useEvolandStore = create()((set) => ({
2151
2147
  setCurrentPosition: (position) => set({ currentPosition: position }),
2152
2148
  setSessionTimeOut: (hasTimeOut) => set({ sessionTimeOut: hasTimeOut }),
2153
2149
  setLatestTaskAnnotation: (locationTask) => set({ latestTaskAnnotation: locationTask }),
2154
- getTaskReferenceDates: (projectId, locatioId, asset_type, setSelected) => __async(void 0, null, function* () {
2150
+ getTaskReferenceDates: (projectId, locatioId, asset_type, setSelected) => __async(null, null, function* () {
2155
2151
  const state = useEvolandStore.getState();
2156
2152
  const { annotation_dates, reference_dates, selectedReferenceDate } = state;
2157
2153
  var task_ref_dates = yield getRefDates(projectId, locatioId, asset_type);
@@ -2167,7 +2163,7 @@ var useEvolandStore = create()((set) => ({
2167
2163
  });
2168
2164
  }
2169
2165
  }),
2170
- setSelectedReferenceDate: (currentReferenceDate) => __async(void 0, null, function* () {
2166
+ setSelectedReferenceDate: (currentReferenceDate) => __async(null, null, function* () {
2171
2167
  const state = useEvolandStore.getState();
2172
2168
  const { selectedReferenceDate, reference_dates } = state;
2173
2169
  if (currentReferenceDate !== selectedReferenceDate)
@@ -2176,53 +2172,62 @@ var useEvolandStore = create()((set) => ({
2176
2172
  selectedBand: reference_dates == null ? void 0 : reference_dates.indexOf(currentReferenceDate)
2177
2173
  });
2178
2174
  }),
2179
- setUpdateAsset: (updateAssets) => __async(void 0, null, function* () {
2175
+ setUpdateAsset: (updateAssets) => __async(null, null, function* () {
2180
2176
  return set({ updateAssets });
2181
2177
  }),
2182
- setComment: (comment) => __async(void 0, null, function* () {
2178
+ setComment: (comment) => __async(null, null, function* () {
2183
2179
  return set({ comment });
2184
2180
  }),
2185
- setAnnualAnnotation: (val) => __async(void 0, null, function* () {
2181
+ setAnnualAnnotation: (val) => __async(null, null, function* () {
2186
2182
  return set({ isAnnualAnnotation: val });
2187
2183
  }),
2188
- setSelectedBand: (bandIndex) => __async(void 0, null, function* () {
2184
+ setSelectedBand: (bandIndex) => __async(null, null, function* () {
2189
2185
  return set({ selectedBand: bandIndex });
2190
2186
  }),
2191
- setAnnotationDates: (annotationDates) => __async(void 0, null, function* () {
2187
+ setAnnotationDates: (annotationDates) => __async(null, null, function* () {
2192
2188
  return set({ annotation_dates: annotationDates });
2193
2189
  }),
2194
- setSavedAnnotations: (savedAnnotation) => __async(void 0, null, function* () {
2190
+ setSavedAnnotations: (savedAnnotation) => __async(null, null, function* () {
2195
2191
  return set({ savedAnnotations: savedAnnotation });
2196
2192
  }),
2197
- setLabelList: (labels) => __async(void 0, null, function* () {
2193
+ setLabelList: (labels) => __async(null, null, function* () {
2198
2194
  return set({ labelList: labels });
2199
2195
  }),
2200
- setLocation: (loc) => __async(void 0, null, function* () {
2196
+ setLocation: (loc) => __async(null, null, function* () {
2201
2197
  return set({ location: loc });
2202
2198
  }),
2203
- setCurrentTask: (task) => __async(void 0, null, function* () {
2199
+ setCurrentTask: (task) => __async(null, null, function* () {
2204
2200
  return set({ currentTask: task });
2205
2201
  }),
2206
- setTimeSeriesTypes: (types) => __async(void 0, null, function* () {
2202
+ setTimeSeriesTypes: (types) => __async(null, null, function* () {
2207
2203
  return set({ timeSeriesTypes: types });
2208
2204
  }),
2209
- setTimeSeriesAssets: (assets) => __async(void 0, null, function* () {
2205
+ setTimeSeriesAssets: (assets) => __async(null, null, function* () {
2210
2206
  return set({ timeSeriesAssets: assets });
2211
2207
  }),
2212
- setActiveLearningAnnotations: (active_learning) => __async(void 0, null, function* () {
2208
+ setActiveLearningAnnotations: (active_learning) => __async(null, null, function* () {
2213
2209
  return set({ activeLearningAnnotations: active_learning });
2214
2210
  }),
2215
- setSubmittedAnnotations: (submit_annotation) => __async(void 0, null, function* () {
2211
+ setSubmittedAnnotations: (submit_annotation) => __async(null, null, function* () {
2216
2212
  return set({ submittedAnnotations: submit_annotation });
2217
2213
  }),
2218
- setAnnotatedRasterAsset: (annotated_raster) => __async(void 0, null, function* () {
2214
+ setAnnotatedRasterAsset: (annotated_raster) => __async(null, null, function* () {
2219
2215
  return set({ annotatedRasterAsset: annotated_raster });
2220
2216
  }),
2221
- setTaskGeometry: (task_geometry) => __async(void 0, null, function* () {
2217
+ setTaskGeometry: (task_geometry) => __async(null, null, function* () {
2222
2218
  return set({ taskGeometry: task_geometry });
2223
2219
  }),
2224
2220
  setTaskForReview(taskForReview) {
2225
2221
  set({ task_for_review: taskForReview });
2222
+ },
2223
+ setS2TileUrl(url) {
2224
+ set({ s2_tile_url: url });
2225
+ },
2226
+ setLandsatTileUrl(url) {
2227
+ set({ landsat_tile_url: url });
2228
+ },
2229
+ setSelectedBaseLayer(baseLayer) {
2230
+ set({ selectedBaseLayer: baseLayer });
2226
2231
  }
2227
2232
  }));
2228
2233
  var evoland_default = useEvolandStore;
@@ -2343,8 +2348,7 @@ var TiffImage = (props) => {
2343
2348
  } else if (localcomment !== void 0 && (localcomment == null ? void 0 : localcomment.includes("#" + x))) {
2344
2349
  localcomment = localcomment.replace(" #" + x, "");
2345
2350
  this.className = "rounded-xl flex inline-flex text-secondary p-1 text-sm";
2346
- } else
2347
- localcomment = "#" + x + " ";
2351
+ } else localcomment = "#" + x + " ";
2348
2352
  if (evolandStore.comment !== void 0 && evolandStore.comment !== null && !((_a5 = evolandStore.comment) == null ? void 0 : _a5.includes("#" + x)))
2349
2353
  evolandStore.setComment(
2350
2354
  evolandStore.comment + localcomment
@@ -2353,8 +2357,7 @@ var TiffImage = (props) => {
2353
2357
  evolandStore.setComment(
2354
2358
  evolandStore.comment.replace(" #" + x, "")
2355
2359
  );
2356
- else
2357
- evolandStore.setComment(localcomment);
2360
+ else evolandStore.setComment(localcomment);
2358
2361
  });
2359
2362
  container.appendChild(content);
2360
2363
  }
@@ -2395,7 +2398,7 @@ var TiffImage = (props) => {
2395
2398
  bubblingMouseEvents: false,
2396
2399
  className: "border-2 border-blue-600"
2397
2400
  }).bringToFront();
2398
- imageOverlay3.on("mouseover", (e) => __async(void 0, null, function* () {
2401
+ imageOverlay3.on("mouseover", (e) => __async(null, null, function* () {
2399
2402
  var _a3, _b2;
2400
2403
  if (isBrush()) {
2401
2404
  tooltip2 = L.tooltip({ offset: L.point(20, 0), opacity: 0.6 }).setContent(
@@ -2417,21 +2420,20 @@ var TiffImage = (props) => {
2417
2420
  ).setLatLng(e.latlng).addTo(map);
2418
2421
  }
2419
2422
  }));
2420
- imageOverlay3.on("mousemove", (e) => __async(void 0, null, function* () {
2423
+ imageOverlay3.on("mousemove", (e) => __async(null, null, function* () {
2421
2424
  evolandStore.setNDVIRGBValues(ndvi);
2422
2425
  tooltip2 == null ? void 0 : tooltip2.removeFrom(map);
2423
2426
  if (isDrawing) {
2424
2427
  handleMouseMove(e);
2425
2428
  }
2426
2429
  }));
2427
- imageOverlay3.on("mouseout", () => __async(void 0, null, function* () {
2430
+ imageOverlay3.on("mouseout", () => __async(null, null, function* () {
2428
2431
  tooltip2 == null ? void 0 : tooltip2.removeFrom(map);
2429
2432
  }));
2430
- imageOverlay3.on("click", (e) => __async(void 0, null, function* () {
2433
+ imageOverlay3.on("click", (e) => __async(null, null, function* () {
2431
2434
  var _a3, _b2, _c2;
2432
2435
  tooltip2 == null ? void 0 : tooltip2.removeFrom(map);
2433
- if (((_a3 = evolandStore.selectedRasterAsset) == null ? void 0 : _a3.type) == "CHANGE_SEGMENTATION_MASK" /* ChangeSegmentationMask */)
2434
- return;
2436
+ if (((_a3 = evolandStore.selectedRasterAsset) == null ? void 0 : _a3.type) == "CHANGE_SEGMENTATION_MASK" /* ChangeSegmentationMask */) return;
2435
2437
  if (evolandStore.selectedColorLabel == null && evolandStore.selectedToolType !== 6 /* ClearSegmentWithPolygon */) {
2436
2438
  alert("Please select label");
2437
2439
  return;
@@ -2478,25 +2480,23 @@ var TiffImage = (props) => {
2478
2480
  opacity: 0.8,
2479
2481
  lineCap: "round"
2480
2482
  }).addTo(map);
2481
- polyLine.on("click", () => __async(void 0, null, function* () {
2483
+ polyLine.on("click", () => __async(null, null, function* () {
2482
2484
  stopPaint();
2483
2485
  }));
2484
- polyLine.on("mouseover", (e) => __async(void 0, null, function* () {
2486
+ polyLine.on("mouseover", (e) => __async(null, null, function* () {
2485
2487
  tooltip2 == null ? void 0 : tooltip2.removeFrom(map);
2486
2488
  tooltip2 = L.tooltip({ offset: L.point(20, 0), opacity: 0.6 }).setContent("Click to Stop").setLatLng(e.latlng).addTo(map);
2487
2489
  }));
2488
- polyLine.on("mousemove", () => __async(void 0, null, function* () {
2490
+ polyLine.on("mousemove", () => __async(null, null, function* () {
2489
2491
  tooltip2 == null ? void 0 : tooltip2.removeFrom(map);
2490
2492
  }));
2491
- polyLine.on("mouseout", () => __async(void 0, null, function* () {
2493
+ polyLine.on("mouseout", () => __async(null, null, function* () {
2492
2494
  tooltip2 == null ? void 0 : tooltip2.removeFrom(map);
2493
2495
  }));
2494
2496
  }
2495
2497
  return () => {
2496
- if (imageOverlay3)
2497
- map.removeLayer(imageOverlay3);
2498
- if (tagsPopUp)
2499
- map.removeLayer(tagsPopUp);
2498
+ if (imageOverlay3) map.removeLayer(imageOverlay3);
2499
+ if (tagsPopUp) map.removeLayer(tagsPopUp);
2500
2500
  if (rectangle3 && evolandStore.isAnnualAnnotation)
2501
2501
  map.removeLayer(rectangle3);
2502
2502
  if (polyLine !== void 0) {
@@ -2589,7 +2589,7 @@ var ReadOnlyTiffImage = (props) => {
2589
2589
  bubblingMouseEvents: false,
2590
2590
  className: "border-2 border-blue-600"
2591
2591
  }).bringToBack();
2592
- imageOverlay3.on("mouseover", (e) => __async(void 0, null, function* () {
2592
+ imageOverlay3.on("mouseover", (e) => __async(null, null, function* () {
2593
2593
  var data = yield getCanvasDataFromImageArray(
2594
2594
  props.raster,
2595
2595
  e.latlng,
@@ -2599,7 +2599,7 @@ var ReadOnlyTiffImage = (props) => {
2599
2599
  );
2600
2600
  setNDVI(data[1]);
2601
2601
  }));
2602
- imageOverlay3.on("mousemove", () => __async(void 0, null, function* () {
2602
+ imageOverlay3.on("mousemove", () => __async(null, null, function* () {
2603
2603
  evolandStore.setNDVIRGBValues(ndvi);
2604
2604
  }));
2605
2605
  imageOverlay3.addTo(map);
@@ -2617,12 +2617,9 @@ var ReadOnlyTiffImage = (props) => {
2617
2617
  }).addTo(map);
2618
2618
  }
2619
2619
  return () => {
2620
- if (imageOverlay3)
2621
- map.removeLayer(imageOverlay3);
2622
- if (rectangle3 && showRectangleAtCenter)
2623
- map.removeLayer(rectangle3);
2624
- if (props.polygonBounds)
2625
- map.removeLayer(polygon_segment);
2620
+ if (imageOverlay3) map.removeLayer(imageOverlay3);
2621
+ if (rectangle3 && showRectangleAtCenter) map.removeLayer(rectangle3);
2622
+ if (props.polygonBounds) map.removeLayer(polygon_segment);
2626
2623
  };
2627
2624
  }, [props, map, showRectangleAtCenter]);
2628
2625
  return null;
@@ -2760,8 +2757,7 @@ var EvoLandGeometry = () => {
2760
2757
  import { jsx as jsx3 } from "react/jsx-runtime";
2761
2758
  var EvolandContainer = ({ sessionStatus }) => {
2762
2759
  const evolandStore = useEvolandStore();
2763
- if (sessionStatus === "unauthenticated")
2764
- return /* @__PURE__ */ jsx3(AuthenticationFailure, {});
2760
+ if (sessionStatus === "unauthenticated") return /* @__PURE__ */ jsx3(AuthenticationFailure, {});
2765
2761
  return evolandStore.location && /* @__PURE__ */ jsx3(EvoLandGeometry, {});
2766
2762
  };
2767
2763
 
@@ -3275,8 +3271,7 @@ import { LoaderFull } from "@geowiki/ui";
3275
3271
  import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
3276
3272
  var assetsByYear = (assets) => assets == null ? void 0 : assets.reduce((acc, item) => {
3277
3273
  const year = new Date(item.reference_date).getFullYear();
3278
- if (!acc[year])
3279
- acc[year] = [];
3274
+ if (!acc[year]) acc[year] = [];
3280
3275
  acc[year].push(item);
3281
3276
  return acc;
3282
3277
  }, {});
@@ -3299,6 +3294,7 @@ var ViewAssets = (props) => {
3299
3294
  const [compositesTab, setCompositesTab] = useState5(
3300
3295
  props.defaultAssetView == "COMPOSITE" /* Composite */ ? true : false
3301
3296
  );
3297
+ const [fetchComposite, setFetchComposite] = useState5(false);
3302
3298
  const [masks, setMasks] = useState5(
3303
3299
  evolandStore.maskAsset !== null ? evolandStore.maskAsset : []
3304
3300
  );
@@ -3393,14 +3389,10 @@ var ViewAssets = (props) => {
3393
3389
  );
3394
3390
  if (props.taskId !== void 0 && IsTaskAnnotationLoading)
3395
3391
  return /* @__PURE__ */ jsx7(LoaderFull, {});
3396
- if (maskTab && (masks == null ? void 0 : masks.length) == 0)
3397
- setMasks(evolandStore.maskAsset);
3398
- if (changeMaskTab && (changeMasks == null ? void 0 : changeMasks.length) == 0)
3399
- checkChangeMasksAndLoad();
3400
- if (compositesTab && composites.length == 0)
3401
- checkCompositesAndLoad();
3402
- if (annotationTab)
3403
- checkAnnotationsAndLoad();
3392
+ if (maskTab && (masks == null ? void 0 : masks.length) == 0) setMasks(evolandStore.maskAsset);
3393
+ if (changeMaskTab && (changeMasks == null ? void 0 : changeMasks.length) == 0) checkChangeMasksAndLoad();
3394
+ if (compositesTab && composites.length == 0) checkCompositesAndLoad();
3395
+ if (annotationTab) checkAnnotationsAndLoad();
3404
3396
  function checkMasksAndLoad() {
3405
3397
  if ((masks == null ? void 0 : masks.length) === 0 && !evolandStore.maskAsset) {
3406
3398
  evolandStore.getLocationAssets(
@@ -3411,8 +3403,7 @@ var ViewAssets = (props) => {
3411
3403
  ).then((res) => {
3412
3404
  setMasks(res);
3413
3405
  });
3414
- } else if (masks.length == 0)
3415
- setMasks(evolandStore.maskAsset);
3406
+ } else if (masks.length == 0) setMasks(evolandStore.maskAsset);
3416
3407
  }
3417
3408
  function checkChangeMasksAndLoad() {
3418
3409
  if ((changeMasks == null ? void 0 : changeMasks.length) === 0 && !evolandStore.changeMaskAsset) {
@@ -3428,7 +3419,8 @@ var ViewAssets = (props) => {
3428
3419
  setChangeMasks(evolandStore.changeMaskAsset);
3429
3420
  }
3430
3421
  function checkCompositesAndLoad() {
3431
- if ((composites == null ? void 0 : composites.length) === 0 && !evolandStore.compositeAsset) {
3422
+ if ((composites == null ? void 0 : composites.length) === 0 && !evolandStore.compositeAsset && !fetchComposite) {
3423
+ setFetchComposite(true);
3432
3424
  evolandStore.getLocationAssets(
3433
3425
  props.locationId,
3434
3426
  props.projectId,
@@ -3436,6 +3428,7 @@ var ViewAssets = (props) => {
3436
3428
  props.taskId
3437
3429
  ).then((res) => {
3438
3430
  setComposites(assetsByYear(res));
3431
+ setFetchComposite(false);
3439
3432
  });
3440
3433
  }
3441
3434
  }
@@ -3458,8 +3451,7 @@ var ViewAssets = (props) => {
3458
3451
  }
3459
3452
  if (props.taskId !== void 0 && IsTaskAnnotationLoading)
3460
3453
  return /* @__PURE__ */ jsx7(LoaderFull, {});
3461
- if (maskTab && ((masks == null ? void 0 : masks.length) == 0 || masks == null))
3462
- setMaskTab(false);
3454
+ if (maskTab && ((masks == null ? void 0 : masks.length) == 0 || masks == null)) setMaskTab(false);
3463
3455
  return /* @__PURE__ */ jsxs5("div", { children: [
3464
3456
  /* @__PURE__ */ jsxs5(
3465
3457
  "div",
@@ -3812,7 +3804,7 @@ var ViewAssets = (props) => {
3812
3804
  asset.id + index
3813
3805
  );
3814
3806
  }) })
3815
- ] }))
3807
+ ] }, year))
3816
3808
  }
3817
3809
  )
3818
3810
  ] })
@@ -4021,8 +4013,7 @@ var SearchAnnotation = (props) => {
4021
4013
  localStorage.setItem("toDate", toDate);
4022
4014
  if (tasks == null ? void 0 : tasks.exists)
4023
4015
  window.location.href = `/map?projectId=${tasks == null ? void 0 : tasks.task.project_id}&locationId=${tasks == null ? void 0 : tasks.task.location_id}&taskId=${tasks == null ? void 0 : tasks.task.task_id}${props.taskForReview ? "&review=true" : ""}`;
4024
- else
4025
- alert("No data for search parameters");
4016
+ else alert("No data for search parameters");
4026
4017
  },
4027
4018
  children: [
4028
4019
  /* @__PURE__ */ jsx8(
@@ -4336,14 +4327,11 @@ var EvolandLeftSideBar = (props) => {
4336
4327
  }
4337
4328
  if (evolandStore.projectDetail) {
4338
4329
  if (((_m = (_l = evolandStore.projectDetail) == null ? void 0 : _l.meta_data) == null ? void 0 : _m.default_asset_view) == "SEGMENTATION_MASK" /* SegmentationMask */) {
4339
- if ((masks == null ? void 0 : masks.length) === 0)
4340
- return /* @__PURE__ */ jsx10(LoaderFull3, {});
4330
+ if ((masks == null ? void 0 : masks.length) === 0) return /* @__PURE__ */ jsx10(LoaderFull3, {});
4341
4331
  } else if (((_o = (_n = evolandStore.projectDetail) == null ? void 0 : _n.meta_data) == null ? void 0 : _o.default_asset_view) == "COMPOSITE" /* Composite */) {
4342
- if ((composites == null ? void 0 : composites.length) === 0)
4343
- return /* @__PURE__ */ jsx10(LoaderFull3, {});
4332
+ if ((composites == null ? void 0 : composites.length) === 0) return /* @__PURE__ */ jsx10(LoaderFull3, {});
4344
4333
  }
4345
- } else
4346
- return /* @__PURE__ */ jsx10(LoaderFull3, {});
4334
+ } else return /* @__PURE__ */ jsx10(LoaderFull3, {});
4347
4335
  return /* @__PURE__ */ jsx10(
4348
4336
  "div",
4349
4337
  {
@@ -4510,8 +4498,7 @@ var EvolandLeftSideBar = (props) => {
4510
4498
  canDelete = confirm(
4511
4499
  (review ? "This is a targeted review task. " : "") + "Are you sure you want to delete this task?"
4512
4500
  );
4513
- if (canDelete)
4514
- setDeleteTask(true);
4501
+ if (canDelete) setDeleteTask(true);
4515
4502
  },
4516
4503
  children: [
4517
4504
  /* @__PURE__ */ jsx10(
@@ -4553,8 +4540,7 @@ var EvolandLeftSideBar = (props) => {
4553
4540
  evolandStore.setAnnotationDates(annotation_dates);
4554
4541
  if (currentTask)
4555
4542
  evolandStore.setCurrentTask(currentTask);
4556
- if (location)
4557
- evolandStore.setLocation(location);
4543
+ if (location) evolandStore.setLocation(location);
4558
4544
  if (props.userRole === "admin")
4559
4545
  window.location.href = "/map?projectId=" + projectId + "&locationId=" + (currentTask == null ? void 0 : currentTask.location_id) + "&taskId=" + (currentTask == null ? void 0 : currentTask.task_id) + (evolandStore.task_for_review ? "&review=true" : "");
4560
4546
  }
@@ -4843,10 +4829,9 @@ var RasterPreview = (_props) => {
4843
4829
  },
4844
4830
  { scopes: ["evoland"] }
4845
4831
  );
4846
- const onSubmit = (taskStatus) => __async(void 0, null, function* () {
4832
+ const onSubmit = (taskStatus) => __async(null, null, function* () {
4847
4833
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p2, _q2, _r2, _s2, _t2, _u2, _v2, _w2;
4848
- if (disableSubmit)
4849
- return;
4834
+ if (disableSubmit) return;
4850
4835
  setDisableSubmit(true);
4851
4836
  var bufferData = null;
4852
4837
  var { data: savedAnnotationBuffer, indexArr: savedAnnotationIndexArr } = evolandStore.savedAnnotations && evolandStore.isAnnualAnnotation ? { data: evolandStore.savedAnnotations.buffer, indexArr: 0 } : evolandStore.savedAnnotations ? flatten(evolandStore.savedAnnotations.buffer) : { data: void 0, indexArr: 0 };
@@ -4903,8 +4888,7 @@ var RasterPreview = (_props) => {
4903
4888
  if (_props.userRole === "admin") {
4904
4889
  if (tasks == null ? void 0 : tasks.task)
4905
4890
  window.location.href = `/map?projectId=${projectId}&locationId=${(_v2 = tasks == null ? void 0 : tasks.task) == null ? void 0 : _v2.location_id}&taskId=${(_w2 = tasks == null ? void 0 : tasks.task) == null ? void 0 : _w2.task_id}${evolandStore.task_for_review ? "&review=true" : ""}`;
4906
- else
4907
- alert("No more tasks to review");
4891
+ else alert("No more tasks to review");
4908
4892
  }
4909
4893
  var res = yield evolandStore.getNextLocationDetails(
4910
4894
  parseInt(projectId)
@@ -4928,8 +4912,7 @@ var RasterPreview = (_props) => {
4928
4912
  }
4929
4913
  });
4930
4914
  const arrayEqual = (a, b) => {
4931
- if (a.length !== b.length)
4932
- return false;
4915
+ if (a.length !== b.length) return false;
4933
4916
  return Buffer.compare(Buffer.from(a.buffer), Buffer.from(b.buffer)) === 0;
4934
4917
  };
4935
4918
  const flatten = (input, refArr) => {
@@ -4953,15 +4936,14 @@ var RasterPreview = (_props) => {
4953
4936
  }
4954
4937
  }
4955
4938
  }
4956
- if (indexArr.length == 0)
4957
- result = emptyAnnotation;
4939
+ if (indexArr.length == 0) result = emptyAnnotation;
4958
4940
  return { data: new Uint32Array(result), indexArr };
4959
4941
  };
4960
4942
  function isBase64Zeros(base64String) {
4961
4943
  const trimmed = base64String.replace(/=+$/, "");
4962
4944
  return /^A+$/.test(trimmed);
4963
4945
  }
4964
- const onSave = () => __async(void 0, null, function* () {
4946
+ const onSave = () => __async(null, null, function* () {
4965
4947
  var _a2, _b2;
4966
4948
  var bufferData = null;
4967
4949
  const { data, indexArr } = evolandStore.isAnnualAnnotation ? { data: evolandStore.annotatedRasterAsset.buffer, indexArr: 0 } : flatten(
@@ -5009,8 +4991,7 @@ var RasterPreview = (_props) => {
5009
4991
  setSubmitNotificationMessage(
5010
4992
  "Annotation has been SAVED successfully"
5011
4993
  );
5012
- else
5013
- setSubmitNotificationMessage("Please try again");
4994
+ else setSubmitNotificationMessage("Please try again");
5014
4995
  setSubmitNotification(true);
5015
4996
  }
5016
4997
  } catch (err) {
@@ -5019,7 +5000,7 @@ var RasterPreview = (_props) => {
5019
5000
  }
5020
5001
  }
5021
5002
  });
5022
- const ClearPreview = () => __async(void 0, null, function* () {
5003
+ const ClearPreview = () => __async(null, null, function* () {
5023
5004
  const { annotationRaster, pastValues } = yield ClearAnnotation(
5024
5005
  evolandStore.annotatedRasterAsset,
5025
5006
  evolandStore.isAnnualAnnotation,
@@ -5082,16 +5063,14 @@ var RasterPreview = (_props) => {
5082
5063
  )] : newValue == null ? void 0 : newValue.buffer[0] : newValue == null ? void 0 : newValue.buffer
5083
5064
  );
5084
5065
  };
5085
- if (layerStore.layerOpacity == 0)
5086
- layerStore.setLayerOpacity(0.4);
5066
+ if (layerStore.layerOpacity == 0) layerStore.setLayerOpacity(0.4);
5087
5067
  if (!goToNextTask && evolandStore.location !== null && evolandStore.location.locationId !== searchParams.get("locationId")) {
5088
5068
  if (status == TaskStatus3.ACCEPTED || status == TaskStatus3.DISCARDED || status == TaskStatus3.TO_FIX) {
5089
5069
  setGoToNextTask(true);
5090
5070
  if (_props.userRole === "admin")
5091
5071
  if (tasks == null ? void 0 : tasks.task)
5092
5072
  window.location.href = `/map?projectId=${projectId}&locationId=${(_a = tasks == null ? void 0 : tasks.task) == null ? void 0 : _a.location_id}&taskId=${(_b = tasks == null ? void 0 : tasks.task) == null ? void 0 : _b.task_id}${evolandStore.task_for_review ? "&review=true" : ""}`;
5093
- else
5094
- alert("No more tasks to review");
5073
+ else alert("No more tasks to review");
5095
5074
  } else
5096
5075
  window.location.href = `/map?projectId=${projectId}&locationId=${(_c = evolandStore.location) == null ? void 0 : _c.locationId}&taskId=${(_d = evolandStore.location) == null ? void 0 : _d.task[0].task_id}`;
5097
5076
  }
@@ -5140,10 +5119,8 @@ var RasterPreview = (_props) => {
5140
5119
  parseInt(projectId),
5141
5120
  evolandStore.referenceDate
5142
5121
  ).then(({ location, currentTask, annotation_dates }) => {
5143
- if (location)
5144
- evolandStore.setLocation(location);
5145
- if (currentTask)
5146
- evolandStore.setCurrentTask(currentTask);
5122
+ if (location) evolandStore.setLocation(location);
5123
+ if (currentTask) evolandStore.setCurrentTask(currentTask);
5147
5124
  evolandStore.setAnnotationDates(annotation_dates);
5148
5125
  });
5149
5126
  },
@@ -5179,8 +5156,7 @@ var RasterPreview = (_props) => {
5179
5156
  evolandStore.setComment(
5180
5157
  evolandStore.comment.replace(" #" + x, "")
5181
5158
  );
5182
- else
5183
- evolandStore.setComment("#" + x + " ");
5159
+ else evolandStore.setComment("#" + x + " ");
5184
5160
  },
5185
5161
  children: [
5186
5162
  "#",
@@ -5441,7 +5417,7 @@ var Annotation = (props) => {
5441
5417
  labelId: 0
5442
5418
  });
5443
5419
  const [currentLabelItem, setCurrentLabelItem] = useState9();
5444
- const OnSubmitActiveLearning = () => __async(void 0, null, function* () {
5420
+ const OnSubmitActiveLearning = () => __async(null, null, function* () {
5445
5421
  var _a2, _b2;
5446
5422
  setActiveLearningLoading(true);
5447
5423
  var bufferData = null;
@@ -6151,8 +6127,7 @@ var defaultStyles = {
6151
6127
  };
6152
6128
  var excludedProperties = /* @__PURE__ */ new Set(["bbox", "geometry", "type"]);
6153
6129
  var formatValue = (value) => {
6154
- if (value === null || value === void 0)
6155
- return "";
6130
+ if (value === null || value === void 0) return "";
6156
6131
  if (typeof value === "number") {
6157
6132
  return value.toLocaleString();
6158
6133
  }
@@ -6388,8 +6363,7 @@ var BetterWMS = class extends L5.TileLayer.WMS {
6388
6363
  * Builds the URL for the GetFeatureInfo WMS request
6389
6364
  */
6390
6365
  getFeatureInfoUrl(latlng) {
6391
- if (!this.currentMap)
6392
- return null;
6366
+ if (!this.currentMap) return null;
6393
6367
  const point2 = this.currentMap.latLngToContainerPoint(latlng);
6394
6368
  const size = this.currentMap.getSize();
6395
6369
  const wmsParams = this.wmsParams;
@@ -6458,8 +6432,7 @@ var BetterWMS = class extends L5.TileLayer.WMS {
6458
6432
  return;
6459
6433
  }
6460
6434
  this.geoJsonLayer.addData(content);
6461
- if (!this.currentMap)
6462
- return;
6435
+ if (!this.currentMap) return;
6463
6436
  if (this.currentPopup) {
6464
6437
  this.currentMap.closePopup(this.currentPopup);
6465
6438
  }
@@ -6476,8 +6449,7 @@ var BetterWMS = class extends L5.TileLayer.WMS {
6476
6449
  * Show loading popup
6477
6450
  */
6478
6451
  showLoading(latlng) {
6479
- if (!this.currentMap || this.loading || !this.canShowLoading)
6480
- return;
6452
+ if (!this.currentMap || this.loading || !this.canShowLoading) return;
6481
6453
  this.loading = true;
6482
6454
  this.currentPopup = L5.popup(this.popupOptions).setLatLng(latlng).setContent(this.loadingContent).openOn(this.currentMap);
6483
6455
  }
@@ -6488,8 +6460,7 @@ var BetterWMS = class extends L5.TileLayer.WMS {
6488
6460
  return __async(this, null, function* () {
6489
6461
  var _a, _b, _c;
6490
6462
  const url = this.getFeatureInfoUrl(event.latlng);
6491
- if (!url)
6492
- return;
6463
+ if (!url) return;
6493
6464
  try {
6494
6465
  this.showLoading(event.latlng);
6495
6466
  const data = yield this.fetchWithRetry(url);
@@ -6544,7 +6515,7 @@ import {
6544
6515
  createElementObject,
6545
6516
  createPathComponent
6546
6517
  } from "@react-leaflet/core";
6547
- import * as L6 from "leaflet";
6518
+ import L6 from "leaflet";
6548
6519
  import "leaflet.markercluster";
6549
6520
  function getPropsAndEvents(props) {
6550
6521
  let clusterProps = {};
@@ -6573,7 +6544,7 @@ function createMarkerClusterGroup(props, context) {
6573
6544
  }
6574
6545
  var updateMarkerCluster = () => {
6575
6546
  };
6576
- var MarkerClusterGroup2 = createPathComponent(
6547
+ var MarkerClusterGroup = createPathComponent(
6577
6548
  createMarkerClusterGroup,
6578
6549
  updateMarkerCluster
6579
6550
  );
@@ -6674,8 +6645,7 @@ import { DesignFarmerClusterPin } from "@geowiki/ui";
6674
6645
  import { jsx as jsx15 } from "react/jsx-runtime";
6675
6646
  var FarmerClusterPopup = ({ properties }) => {
6676
6647
  const fileUrl = useFileUrl2();
6677
- if (!properties)
6678
- return /* @__PURE__ */ jsx15("div", { children: "No properties found" });
6648
+ if (!properties) return /* @__PURE__ */ jsx15("div", { children: "No properties found" });
6679
6649
  const name = properties["name"];
6680
6650
  const description = properties["description"];
6681
6651
  const url = "/cluster/view/" + properties["id"];
@@ -6740,8 +6710,7 @@ import {
6740
6710
  import { Image as Image3 } from "@geowiki/core";
6741
6711
  import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
6742
6712
  var SiteInformation = ({ data }) => {
6743
- if (!data)
6744
- return null;
6713
+ if (!data) return null;
6745
6714
  const baseDocUrl = "https://raw.githubusercontent.com/iiasa/static/refs/heads/main/geotrees/docs/biomass_processing_protocol/";
6746
6715
  return /* @__PURE__ */ jsxs12("div", { className: "space-y-6", children: [
6747
6716
  /* @__PURE__ */ jsxs12("div", { className: "space-y-4", children: [
@@ -6916,8 +6885,7 @@ var IfbnSitePopup = ({ properties }) => {
6916
6885
  const [isLoading, setIsLoading] = useState11(false);
6917
6886
  const [imageError, setImageError] = useState11(false);
6918
6887
  const { status: sessionStatus, data: session } = useSession();
6919
- if (!properties)
6920
- return /* @__PURE__ */ jsx17("div", { children: "No properties found" });
6888
+ if (!properties) return /* @__PURE__ */ jsx17("div", { children: "No properties found" });
6921
6889
  const plotId = properties["Plot_ID"];
6922
6890
  const subPlotId = properties["SubPlot_Id"];
6923
6891
  const network = properties["Network"];
@@ -6926,7 +6894,7 @@ var IfbnSitePopup = ({ properties }) => {
6926
6894
  const fallbackUrl = "https://cms.main.geo-wiki.org/geotrees/media/cocoa.png";
6927
6895
  const baseImageUrl = "https://raw.githubusercontent.com/iiasa/static/refs/heads/main/geotrees/sites/";
6928
6896
  const imageUrl = `${baseImageUrl}${plotId}.jpg?raw=true`;
6929
- const fetchSiteData = () => __async(void 0, null, function* () {
6897
+ const fetchSiteData = () => __async(null, null, function* () {
6930
6898
  setIsLoading(true);
6931
6899
  try {
6932
6900
  const response = yield fetch(
@@ -6937,8 +6905,7 @@ var IfbnSitePopup = ({ properties }) => {
6937
6905
  }
6938
6906
  }
6939
6907
  );
6940
- if (!response.ok)
6941
- throw new Error("Failed to fetch data");
6908
+ if (!response.ok) throw new Error("Failed to fetch data");
6942
6909
  const data = yield response.json();
6943
6910
  setSiteData(data);
6944
6911
  } catch (error) {
@@ -7012,16 +6979,14 @@ var IfbnPlotPopup = ({ properties }) => {
7012
6979
  const [error, setError] = useState12(null);
7013
6980
  const API_URL = process.env.NEXT_PUBLIC_GEO_TREE_API_URL;
7014
6981
  useEffect5(() => {
7015
- const fetchApiData = () => __async(void 0, null, function* () {
7016
- if (!(properties == null ? void 0 : properties.id))
7017
- return;
6982
+ const fetchApiData = () => __async(null, null, function* () {
6983
+ if (!(properties == null ? void 0 : properties.id)) return;
7018
6984
  setIsLoading(true);
7019
6985
  try {
7020
6986
  const response = yield fetch(
7021
6987
  `${API_URL}/api/plots/by-plot-id/${properties.plot_id}`
7022
6988
  );
7023
- if (!response.ok)
7024
- throw new Error("Failed to fetch data");
6989
+ if (!response.ok) throw new Error("Failed to fetch data");
7025
6990
  const data = yield response.json();
7026
6991
  console.log("API Response:", data);
7027
6992
  setApiData(data);
@@ -7195,12 +7160,9 @@ var createClusterIcon = (color) => {
7195
7160
  markers.forEach((marker2) => {
7196
7161
  var _a, _b, _c;
7197
7162
  const status = ((_c = (_b = (_a = marker2.feature) == null ? void 0 : _a.properties) == null ? void 0 : _b.Status) == null ? void 0 : _c.trim().toLowerCase()) || "default";
7198
- if (status === "ongoing")
7199
- statusCount.ongoing++;
7200
- else if (status === "auxiliary")
7201
- statusCount.auxiliary++;
7202
- else
7203
- statusCount.default++;
7163
+ if (status === "ongoing") statusCount.ongoing++;
7164
+ else if (status === "auxiliary") statusCount.auxiliary++;
7165
+ else statusCount.default++;
7204
7166
  });
7205
7167
  return L7.divIcon({
7206
7168
  html: `<div style=
@@ -7226,7 +7188,7 @@ var GeoJsonLayer = memo(
7226
7188
  ({ layer }) => {
7227
7189
  const { isLoading, error, data } = useQuery({
7228
7190
  queryKey: ["geoJson", layer.id],
7229
- queryFn: () => __async(void 0, null, function* () {
7191
+ queryFn: () => __async(null, null, function* () {
7230
7192
  const res = yield fetch(layer.url);
7231
7193
  return yield res.json();
7232
7194
  })
@@ -7276,8 +7238,7 @@ var GeoJsonLayer = memo(
7276
7238
  [layerIcon]
7277
7239
  );
7278
7240
  const processedData = useMemo2(() => {
7279
- if (!(data == null ? void 0 : data.features))
7280
- return data;
7241
+ if (!(data == null ? void 0 : data.features)) return data;
7281
7242
  const processed = __spreadValues({}, data);
7282
7243
  processed.features = data.features.map((feature) => {
7283
7244
  var _a;
@@ -7303,12 +7264,10 @@ var GeoJsonLayer = memo(
7303
7264
  }),
7304
7265
  [layer.id]
7305
7266
  );
7306
- if (error)
7307
- return /* @__PURE__ */ jsx20("div", { children: "error" });
7308
- if (isLoading)
7309
- return /* @__PURE__ */ jsx20(LoaderFull5, {});
7267
+ if (error) return /* @__PURE__ */ jsx20("div", { children: "error" });
7268
+ if (isLoading) return /* @__PURE__ */ jsx20(LoaderFull5, {});
7310
7269
  return /* @__PURE__ */ jsx20(
7311
- MarkerClusterGroup2,
7270
+ MarkerClusterGroup,
7312
7271
  {
7313
7272
  ref,
7314
7273
  iconCreateFunction: clusterIconFunction,
@@ -7379,12 +7338,9 @@ var createClusterIcon2 = (cluster) => {
7379
7338
  markers.forEach((marker2) => {
7380
7339
  var _a, _b, _c;
7381
7340
  const status = ((_c = (_b = (_a = marker2.feature) == null ? void 0 : _a.properties) == null ? void 0 : _b.Status) == null ? void 0 : _c.trim().toLowerCase()) || "default";
7382
- if (status === "ongoing")
7383
- statusCount.ongoing++;
7384
- else if (status === "auxiliary")
7385
- statusCount.auxiliary++;
7386
- else
7387
- statusCount.default++;
7341
+ if (status === "ongoing") statusCount.ongoing++;
7342
+ else if (status === "auxiliary") statusCount.auxiliary++;
7343
+ else statusCount.default++;
7388
7344
  });
7389
7345
  let clusterColor = "#2E7D32";
7390
7346
  if (statusCount.ongoing > statusCount.auxiliary && statusCount.ongoing > statusCount.default) {
@@ -7433,7 +7389,7 @@ var IfbnPlotLayer = ({
7433
7389
  });
7434
7390
  const { isLoading, error, data } = useQuery2({
7435
7391
  queryKey: ["IfbnPlotLayer", layer.id],
7436
- queryFn: () => __async(void 0, null, function* () {
7392
+ queryFn: () => __async(null, null, function* () {
7437
7393
  const res = yield fetch(`${layer.url}`);
7438
7394
  return yield res.json();
7439
7395
  })
@@ -7442,8 +7398,7 @@ var IfbnPlotLayer = ({
7442
7398
  return currentZoom <= hideMarkersAboveZoom;
7443
7399
  };
7444
7400
  useEffect7(() => {
7445
- if (!markerClusterGroupRef.current)
7446
- return;
7401
+ if (!markerClusterGroupRef.current) return;
7447
7402
  if (shouldShowMarkers()) {
7448
7403
  markersRef.current.forEach((marker2) => {
7449
7404
  var _a, _b;
@@ -7531,12 +7486,10 @@ var IfbnPlotLayer = ({
7531
7486
  setSelectedFeature({ feature, latlng });
7532
7487
  };
7533
7488
  const ref = useRef2(null);
7534
- if (error)
7535
- return /* @__PURE__ */ jsx21("div", { children: "error" });
7536
- if (isLoading)
7537
- return /* @__PURE__ */ jsx21(LoaderFull6, {});
7489
+ if (error) return /* @__PURE__ */ jsx21("div", { children: "error" });
7490
+ if (isLoading) return /* @__PURE__ */ jsx21(LoaderFull6, {});
7538
7491
  return /* @__PURE__ */ jsxs14(
7539
- MarkerClusterGroup2,
7492
+ MarkerClusterGroup,
7540
7493
  {
7541
7494
  ref,
7542
7495
  chunkedLoading: true,
@@ -7795,8 +7748,7 @@ var useCustomLayerStore = create4()((set, get) => ({
7795
7748
  createLayerFromTemplate: (templateId, customData) => {
7796
7749
  var _a, _b;
7797
7750
  const template = get().getTemplate(templateId);
7798
- if (!template)
7799
- return null;
7751
+ if (!template) return null;
7800
7752
  const newLayer = {
7801
7753
  id: uuidv4(),
7802
7754
  isCustom: true,
@@ -8167,16 +8119,11 @@ function getColumnStats(data, columnName) {
8167
8119
  let type;
8168
8120
  if (uniqueTypes.size === 1) {
8169
8121
  const singleType = types[0];
8170
- if (singleType === "string")
8171
- type = "string";
8172
- else if (singleType === "number")
8173
- type = "number";
8174
- else if (singleType === "boolean")
8175
- type = "boolean";
8176
- else if (singleType === "object")
8177
- type = "date";
8178
- else
8179
- type = "mixed";
8122
+ if (singleType === "string") type = "string";
8123
+ else if (singleType === "number") type = "number";
8124
+ else if (singleType === "boolean") type = "boolean";
8125
+ else if (singleType === "object") type = "date";
8126
+ else type = "mixed";
8180
8127
  } else {
8181
8128
  type = "mixed";
8182
8129
  }
@@ -8189,21 +8136,15 @@ var GoogleSheetsPopup = ({
8189
8136
  properties
8190
8137
  }) => {
8191
8138
  const isEmpty = (value) => {
8192
- if (value === null || value === void 0)
8193
- return true;
8194
- if (typeof value === "string")
8195
- return value.trim() === "";
8196
- if (typeof value === "number")
8197
- return isNaN(value);
8198
- if (Array.isArray(value))
8199
- return value.length === 0;
8200
- if (typeof value === "object")
8201
- return Object.keys(value).length === 0;
8139
+ if (value === null || value === void 0) return true;
8140
+ if (typeof value === "string") return value.trim() === "";
8141
+ if (typeof value === "number") return isNaN(value);
8142
+ if (Array.isArray(value)) return value.length === 0;
8143
+ if (typeof value === "object") return Object.keys(value).length === 0;
8202
8144
  return false;
8203
8145
  };
8204
8146
  const isUrl = (value) => {
8205
- if (typeof value !== "string")
8206
- return false;
8147
+ if (typeof value !== "string") return false;
8207
8148
  const trimmedValue = value.trim();
8208
8149
  const urlPatterns = [
8209
8150
  /^https?:\/\//i,
@@ -8710,8 +8651,7 @@ function analyzeColumn(rows, columnName) {
8710
8651
  };
8711
8652
  }
8712
8653
  function getLegendColumns(rows, excludeCoordinateColumns = []) {
8713
- if (rows.length === 0)
8714
- return [];
8654
+ if (rows.length === 0) return [];
8715
8655
  const headers = Object.keys(rows[0]);
8716
8656
  const legendColumns = [];
8717
8657
  for (const header of headers) {
@@ -8848,7 +8788,7 @@ function useGenericCache({
8848
8788
  const isCached = cache.has(cacheKey);
8849
8789
  const queryOptions = {
8850
8790
  queryKey: [cacheKey.type, cacheKey.id, cacheKey.subId, cacheKey.version],
8851
- queryFn: () => __async(this, null, function* () {
8791
+ queryFn: () => __async(null, null, function* () {
8852
8792
  const cachedData = cache.get(cacheKey);
8853
8793
  if (cachedData) {
8854
8794
  console.log(
@@ -8917,7 +8857,7 @@ function useGoogleSheetsData({
8917
8857
  subId: sheetConfig.sheetId,
8918
8858
  version: "1.0.0"
8919
8859
  } : null;
8920
- const fetchData = () => __async(this, null, function* () {
8860
+ const fetchData = () => __async(null, null, function* () {
8921
8861
  if (!sheetConfig) {
8922
8862
  throw new Error("Invalid Google Sheets configuration");
8923
8863
  }
@@ -9185,8 +9125,7 @@ var GoogleSheetsLayer = ({
9185
9125
  };
9186
9126
  const processedData = useMemo3(() => {
9187
9127
  var _a2;
9188
- if (!data)
9189
- return null;
9128
+ if (!data) return null;
9190
9129
  return __spreadProps(__spreadValues({}, data), {
9191
9130
  features: (_a2 = data.features) == null ? void 0 : _a2.map((feature) => {
9192
9131
  var _a3;
@@ -9369,7 +9308,7 @@ var GoogleSheetsLayer = ({
9369
9308
  }
9370
9309
  )
9371
9310
  ] }),
9372
- /* @__PURE__ */ jsx26(MarkerClusterGroup2, { ref, iconCreateFunction: createClusterIcon3(), children: /* @__PURE__ */ jsx26(
9311
+ /* @__PURE__ */ jsx26(MarkerClusterGroup, { ref, iconCreateFunction: createClusterIcon3(), children: /* @__PURE__ */ jsx26(
9373
9312
  GeoJSON4,
9374
9313
  {
9375
9314
  data: processedData,
@@ -9592,7 +9531,7 @@ var MarkerClusterRenderer = memo2(
9592
9531
  return null;
9593
9532
  }
9594
9533
  return /* @__PURE__ */ jsx27(
9595
- MarkerClusterGroup2,
9534
+ MarkerClusterGroup,
9596
9535
  {
9597
9536
  chunkedLoading: true,
9598
9537
  maxClusterRadius: 60,
@@ -9883,7 +9822,7 @@ var TimeSeries = () => {
9883
9822
  const bbox4 = [bounds[1], bounds[0], bounds[3], bounds[2]];
9884
9823
  const years = changeYears != null ? changeYears : taskChangeYears;
9885
9824
  if (years) {
9886
- years.map((year) => __async(this, null, function* () {
9825
+ years.map((year) => __async(null, null, function* () {
9887
9826
  yield getTimeseries(
9888
9827
  year + "-01-01",
9889
9828
  year + "-12-31",
@@ -9918,8 +9857,7 @@ var TimeSeries = () => {
9918
9857
  })
9919
9858
  }
9920
9859
  );
9921
- if (!appendImages)
9922
- setDetailedImgUrls((yield response.json()).images);
9860
+ if (!appendImages) setDetailedImgUrls((yield response.json()).images);
9923
9861
  else {
9924
9862
  response.json().then((res) => {
9925
9863
  setDetailedImgUrls((prevUrls) => [...prevUrls, ...res.images]);
@@ -9963,18 +9901,15 @@ var TimeSeries = () => {
9963
9901
  return 1;
9964
9902
  else if (x.substring(x.split("_")[0].length, x.length) < y.substring(y.split("_")[0].length, y.length))
9965
9903
  return -1;
9966
- else
9967
- return 0;
9904
+ else return 0;
9968
9905
  }).map((x, index) => /* @__PURE__ */ jsx30(
9969
9906
  "button",
9970
9907
  {
9971
9908
  className: currentTab === index ? "pl-1 pr-5 border-gray-300 text-white" : "pl-1 pr-5 border-gray-300 bg-gray-200",
9972
9909
  onClick: () => {
9973
9910
  setDetailedImgUrls([]);
9974
- if (x.includes("RGB"))
9975
- fetchImages("TRUE_COLOR" /* RGB */);
9976
- else if (x.includes("FCC"))
9977
- fetchImages("COLOR_INFRARED" /* FCC */);
9911
+ if (x.includes("RGB")) fetchImages("TRUE_COLOR" /* RGB */);
9912
+ else if (x.includes("FCC")) fetchImages("COLOR_INFRARED" /* FCC */);
9978
9913
  setCurrentTab(index);
9979
9914
  },
9980
9915
  children: x.substring(x.split("_")[0].length + 1, x.length)
@@ -9984,7 +9919,7 @@ var TimeSeries = () => {
9984
9919
  !evolandStore.isAnnualAnnotation && /* @__PURE__ */ jsx30(
9985
9920
  "button",
9986
9921
  {
9987
- className: currentTab === -1 ? "pl-1 pr-5 border-gray-300 text-white" : "pl-1 pr-5 border-gray-300 bg-primary text-white",
9922
+ className: currentTab === -1 ? "pl-1 pr-5 border-gray-300 text-white" : "pl-1 pr-5 border-gray-300 bg-white text-black",
9988
9923
  onClick: () => setCurrentTab(-1),
9989
9924
  children: "View Annotations"
9990
9925
  }
@@ -9992,7 +9927,7 @@ var TimeSeries = () => {
9992
9927
  ]
9993
9928
  }
9994
9929
  ),
9995
- /* @__PURE__ */ jsx30("div", { className: "overflow-x-scroll", children: taskChangeYears == null ? void 0 : taskChangeYears.map((year) => {
9930
+ currentTab !== -1 && /* @__PURE__ */ jsx30("div", { className: "overflow-x-scroll", children: taskChangeYears == null ? void 0 : taskChangeYears.map((year) => {
9996
9931
  var _a;
9997
9932
  return /* @__PURE__ */ jsxs21(Fragment9, { children: [
9998
9933
  /* @__PURE__ */ jsx30("div", { className: "w-full pt-4", children: year }),
@@ -10002,31 +9937,43 @@ var TimeSeries = () => {
10002
9937
  var _a2;
10003
9938
  return (_a2 = x.minDate) == null ? void 0 : _a2.includes(year);
10004
9939
  })) == null ? void 0 : _a.map((x, index) => {
10005
- var _a2, _b;
9940
+ var _a2, _b, _c;
9941
+ let selected_ref_date = new Date(evolandStore.selectedReferenceDate);
9942
+ let current_date = new Date(x.date);
9943
+ let selected_date;
9944
+ if (selected_ref_date.getMonth() == current_date.getMonth())
9945
+ selected_date = (_a2 = evolandStore.reference_dates) == null ? void 0 : _a2.find((date) => new Date(date).getMonth() + 1 == new Date(x.date).getMonth() + 1);
10006
9946
  return /* @__PURE__ */ jsxs21("div", { children: [
10007
9947
  /* @__PURE__ */ jsx30(
10008
9948
  "img",
10009
9949
  {
10010
- className: "text-xs w-32 border-y border-x hover:border-blue-500 hover:border-2 hover:cursor-pointer pl-1 pr-1 pb-1" + (((_a2 = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _a2.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == x.date ? " border-2 border-red-500" : ""),
9950
+ className: "text-xs w-32 border-y border-x hover:border-blue-500 hover:border-2 hover:cursor-pointer pl-1 pr-1 pb-1" + (((_b = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _b.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == selected_date ? " border-2 border-red-500" : ""),
10011
9951
  src: x.imgUrl,
10012
9952
  alt: x.date,
10013
9953
  onClick: () => {
10014
- var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
9954
+ var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10015
9955
  evolandStore.getLegendsDetails(
10016
9956
  !evolandStore.isAnnualAnnotation ? evolandStore.reference_dates && evolandStore.selectedReferenceDate ? (_b2 = evolandStore.annotatedRasterAsset) == null ? void 0 : _b2.buffer[(_a3 = evolandStore.reference_dates) == null ? void 0 : _a3.indexOf(
10017
9957
  x.date
10018
- )] : (_c = evolandStore.annotatedRasterAsset) == null ? void 0 : _c.buffer[0] : (_d = evolandStore.annotatedRasterAsset) == null ? void 0 : _d.buffer
9958
+ )] : (_c2 = evolandStore.annotatedRasterAsset) == null ? void 0 : _c2.buffer[0] : (_d = evolandStore.annotatedRasterAsset) == null ? void 0 : _d.buffer
10019
9959
  );
10020
9960
  if (evolandStore.reference_dates.length > 1) {
10021
- evolandStore.setSelectedReferenceDate(x.date);
9961
+ let selected_date2;
9962
+ if (!((_e = evolandStore.reference_dates) == null ? void 0 : _e.find((date) => date == x.date))) {
9963
+ selected_date2 = (_f = evolandStore.reference_dates) == null ? void 0 : _f.find((date) => new Date(date).getMonth() + 1 == new Date(x.date).getMonth() + 1);
9964
+ evolandStore.setSelectedReferenceDate(selected_date2);
9965
+ } else {
9966
+ evolandStore.setSelectedReferenceDate(x.date);
9967
+ selected_date2 = x.date;
9968
+ }
10022
9969
  evolandStore.setUpdateAsset(true);
10023
9970
  insertEmptyBufferForSingleBand(
10024
- (_h = evolandStore.reference_dates && evolandStore.selectedReferenceDate ? (_f = evolandStore.annotatedRasterAsset) == null ? void 0 : _f.buffer[(_e = evolandStore.reference_dates) == null ? void 0 : _e.indexOf(
9971
+ (_j = evolandStore.reference_dates && evolandStore.selectedReferenceDate ? (_h = evolandStore.annotatedRasterAsset) == null ? void 0 : _h.buffer[(_g = evolandStore.reference_dates) == null ? void 0 : _g.indexOf(
10025
9972
  evolandStore.selectedReferenceDate
10026
- )] : (_g = evolandStore.annotatedRasterAsset) == null ? void 0 : _g.buffer[0]) == null ? void 0 : _h.length,
10027
- (_i = evolandStore.annotatedRasterAsset) == null ? void 0 : _i.width,
10028
- (_j = evolandStore.annotatedRasterAsset) == null ? void 0 : _j.height,
10029
- (_k = evolandStore.reference_dates) == null ? void 0 : _k.indexOf(x.date),
9973
+ )] : (_i = evolandStore.annotatedRasterAsset) == null ? void 0 : _i.buffer[0]) == null ? void 0 : _j.length,
9974
+ (_k = evolandStore.annotatedRasterAsset) == null ? void 0 : _k.width,
9975
+ (_l = evolandStore.annotatedRasterAsset) == null ? void 0 : _l.height,
9976
+ (_m = evolandStore.reference_dates) == null ? void 0 : _m.indexOf(selected_date2),
10030
9977
  evolandStore.annotatedRasterAsset,
10031
9978
  evolandStore.labels,
10032
9979
  evolandStore.isAnnualAnnotation
@@ -10059,7 +10006,7 @@ var TimeSeries = () => {
10059
10006
  /* @__PURE__ */ jsx30(
10060
10007
  "div",
10061
10008
  {
10062
- className: "pl-8 text-xs w-32 text-white " + (((_b = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _b.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == x.date ? "bg-red-400" : ""),
10009
+ className: "pl-8 text-xs w-32 text-white " + (((_c = evolandStore.selectedCompositeRasterAsset) == null ? void 0 : _c.id) == x.id || !evolandStore.isAnnualAnnotation && evolandStore.selectedReferenceDate == selected_date ? "bg-red-400" : ""),
10063
10010
  children: x.date
10064
10011
  }
10065
10012
  )
@@ -10068,7 +10015,7 @@ var TimeSeries = () => {
10068
10015
  ] })
10069
10016
  ] });
10070
10017
  }) }),
10071
- currentTab == -1 && /* @__PURE__ */ jsxs21("div", { className: "overflow-x-scroll flex flex-row", children: [
10018
+ currentTab == -1 && /* @__PURE__ */ jsxs21("div", { className: "overflow-x-scroll flex flex-row pt-4", children: [
10072
10019
  !evolandStore.annotatedRasterAsset && /* @__PURE__ */ jsx30("div", { children: "No annotation" }),
10073
10020
  evolandStore.annotatedRasterAsset && evolandStore.annotation_dates && evolandStore.annotation_dates.map(
10074
10021
  (annotationDate, index) => {
@@ -10239,10 +10186,9 @@ var Questions = (props) => {
10239
10186
  userUserAlias: !localStorage.getItem("searchUser") ? null : localStorage.getItem("searchUser"),
10240
10187
  locationLocationId: null
10241
10188
  });
10242
- const onSubmit = (taskStatus) => __async(void 0, null, function* () {
10189
+ const onSubmit = (taskStatus) => __async(null, null, function* () {
10243
10190
  var _a2, _b2, _c2, _d2, _e2;
10244
- if (disableSubmit)
10245
- return;
10191
+ if (disableSubmit) return;
10246
10192
  setDisableSubmit(true);
10247
10193
  setStatus(taskStatus[0]);
10248
10194
  if (evolandStore.currentTask) {
@@ -10274,8 +10220,7 @@ var Questions = (props) => {
10274
10220
  if (props.userRole === "admin") {
10275
10221
  if (tasks == null ? void 0 : tasks.task)
10276
10222
  window.location.href = `/map?projectId=${projectId}&locationId=${(_d2 = tasks == null ? void 0 : tasks.task) == null ? void 0 : _d2.location_id}&taskId=${(_e2 = tasks == null ? void 0 : tasks.task) == null ? void 0 : _e2.task_id}${evolandStore.task_for_review ? "&review=true" : ""}`;
10277
- else
10278
- alert("No more tasks to review");
10223
+ else alert("No more tasks to review");
10279
10224
  }
10280
10225
  var res = yield evolandStore.getNextLocationDetails(
10281
10226
  parseInt(projectId)
@@ -10298,7 +10243,7 @@ var Questions = (props) => {
10298
10243
  setSubmitNotificationMessage("");
10299
10244
  }
10300
10245
  });
10301
- const onSave = () => __async(void 0, null, function* () {
10246
+ const onSave = () => __async(null, null, function* () {
10302
10247
  if (evolandStore.currentTask) {
10303
10248
  const saveQuestionnaireReq = {
10304
10249
  task_id: evolandStore.currentTask.task_id,
@@ -10317,8 +10262,7 @@ var Questions = (props) => {
10317
10262
  setSubmitNotificationMessage(
10318
10263
  "Questionnaire has been SAVED successfully"
10319
10264
  );
10320
- else
10321
- setSubmitNotificationMessage("Please try again");
10265
+ else setSubmitNotificationMessage("Please try again");
10322
10266
  setSubmitNotification(true);
10323
10267
  }
10324
10268
  } catch (err) {
@@ -10351,8 +10295,7 @@ var Questions = (props) => {
10351
10295
  "<" + key + ">",
10352
10296
  "" + (label == null ? void 0 : label.labelName)
10353
10297
  );
10354
- } else
10355
- y.text = y.text.replace("<" + key + ">", "" + value);
10298
+ } else y.text = y.text.replace("<" + key + ">", "" + value);
10356
10299
  });
10357
10300
  });
10358
10301
  }
@@ -10398,15 +10341,14 @@ var Questions = (props) => {
10398
10341
  if (props.userRole === "admin")
10399
10342
  if (tasks == null ? void 0 : tasks.task)
10400
10343
  window.location.href = `/map?projectId=${projectId}&locationId=${(_c = tasks == null ? void 0 : tasks.task) == null ? void 0 : _c.location_id}&taskId=${(_d = tasks == null ? void 0 : tasks.task) == null ? void 0 : _d.task_id}${evolandStore.task_for_review ? "&review=true" : ""}`;
10401
- else
10402
- alert("No more tasks to review");
10344
+ else alert("No more tasks to review");
10403
10345
  } else
10404
10346
  window.location.href = `/map?projectId=${projectId}&locationId=${(_e = evolandStore.location) == null ? void 0 : _e.locationId}&taskId=${(_f = evolandStore.location) == null ? void 0 : _f.task[0].task_id}`;
10405
10347
  }
10406
10348
  if (IsQuestionnaireLoading || IsTaskAnswerLoading || !((_g = evolandStore.location) == null ? void 0 : _g.result))
10407
10349
  return /* @__PURE__ */ jsx31(LoaderFull8, {});
10408
10350
  return /* @__PURE__ */ jsxs22("div", { children: [
10409
- /* @__PURE__ */ jsx31("div", { children: context && (context == null ? void 0 : context.map((x) => /* @__PURE__ */ jsx31("div", { className: "m-5 w-full", children: x.text }))) }),
10351
+ /* @__PURE__ */ jsx31("div", { children: context && (context == null ? void 0 : context.map((x) => /* @__PURE__ */ jsx31("div", { className: "m-5 w-full", children: x.text }, x.id))) }),
10410
10352
  /* @__PURE__ */ jsx31(
10411
10353
  "div",
10412
10354
  {
@@ -10448,8 +10390,8 @@ var Questions = (props) => {
10448
10390
  }
10449
10391
  ),
10450
10392
  /* @__PURE__ */ jsx31(Label, { htmlFor: "r1", children: y.text })
10451
- ] })) })
10452
- ] }) });
10393
+ ] }, y.id)) })
10394
+ ] }) }, x.id);
10453
10395
  })),
10454
10396
  singleChoice && userAnswers.length > 0 && ((_i = singleChoice == null ? void 0 : singleChoice.filter(
10455
10397
  (ques) => userAnswers == null ? void 0 : userAnswers.some(
@@ -10479,8 +10421,8 @@ var Questions = (props) => {
10479
10421
  }
10480
10422
  ),
10481
10423
  /* @__PURE__ */ jsx31(Label, { htmlFor: "r1", children: y.text })
10482
- ] })) })
10483
- ] }) });
10424
+ ] }, y.id)) })
10425
+ ] }) }, x.id);
10484
10426
  }))
10485
10427
  ] })
10486
10428
  }
@@ -10514,8 +10456,7 @@ var Questions = (props) => {
10514
10456
  evolandStore.setComment(
10515
10457
  evolandStore.comment.replace(" #" + x, "")
10516
10458
  );
10517
- else
10518
- evolandStore.setComment("#" + x + " ");
10459
+ else evolandStore.setComment("#" + x + " ");
10519
10460
  },
10520
10461
  children: [
10521
10462
  "#",
@@ -10548,8 +10489,7 @@ var Questions = (props) => {
10548
10489
  onClick: () => {
10549
10490
  if (TaskState2[x[0]] !== TaskState2.SKIPPED && TaskState2[x[0]] !== TaskState2.DISCARDED && TaskState2[x[0]] !== TaskState2.USER_DISCARDED && userAnswers.length !== requiredUserAnswers)
10550
10491
  alert("Please provide all answers");
10551
- else
10552
- onSubmit(x);
10492
+ else onSubmit(x);
10553
10493
  },
10554
10494
  children: TaskState2[x[0]]
10555
10495
  }
@@ -10614,8 +10554,7 @@ var OverlayLayer = () => {
10614
10554
  if (e.target.value !== "0") {
10615
10555
  layerStore.setSelectedLayer(e.target.value);
10616
10556
  setShowLayerOpacity(true);
10617
- if (layerStore.layerOpacity == 0)
10618
- layerStore.setLayerOpacity(0.4);
10557
+ if (layerStore.layerOpacity == 0) layerStore.setLayerOpacity(0.4);
10619
10558
  } else {
10620
10559
  setShowLayerOpacity(false);
10621
10560
  layerStore.setSelectedLayer("");
@@ -10659,7 +10598,7 @@ import { HotkeysProvider } from "react-hotkeys-hook";
10659
10598
  import { Fragment as Fragment11, jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
10660
10599
  var GeoWikiMapComponent = ({ mapSettings, session }) => {
10661
10600
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
10662
- const mapRef = useRef4();
10601
+ const mapRef = useRef4(void 0);
10663
10602
  const router = useRouter6();
10664
10603
  var projectId = router.query.projectId;
10665
10604
  var locationId = router.query.locationId;
@@ -10766,7 +10705,7 @@ var GeoWikiMapComponent = ({ mapSettings, session }) => {
10766
10705
  children: "Guide"
10767
10706
  }
10768
10707
  ) }),
10769
- /* @__PURE__ */ jsxs24(LayersControl, { position: "topright", children: [
10708
+ /* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsxs24(LayersControl, { position: "topright", children: [
10770
10709
  /* @__PURE__ */ jsx33(LayersControl.BaseLayer, { name: "Esri World imagery", children: /* @__PURE__ */ jsx33(
10771
10710
  TileLayer2,
10772
10711
  {
@@ -10801,27 +10740,33 @@ var GeoWikiMapComponent = ({ mapSettings, session }) => {
10801
10740
  maxZoom: 21
10802
10741
  }
10803
10742
  ) }),
10804
- /* @__PURE__ */ jsx33(RequireFeature, { feature: "GeoWiki.EvoLand", children: wmsLayerNames == null ? void 0 : wmsLayerNames.layers.map((layer) => /* @__PURE__ */ jsx33(
10805
- LayersControl.Overlay,
10806
- {
10807
- checked: layer.layerName == layerStore.selectedLayer,
10808
- name: layer.layerName,
10809
- children: /* @__PURE__ */ jsx33(
10810
- CustomWMSTileLayer,
10811
- {
10812
- transparent: true,
10813
- zIndex: 100,
10814
- layers: layer.layerName,
10815
- attribution: "GeoWiki",
10816
- format: "image/png",
10817
- url: "https://services.terrascope.be/wms/v2",
10818
- opacity: layer.opacity == void 0 ? layerStore.layerOpacity : layer.opacity
10819
- }
10820
- )
10821
- },
10822
- layer.layerName
10823
- )) })
10824
- ] }),
10743
+ /* @__PURE__ */ jsx33(RequireFeature, { feature: "GeoWiki.EvoLand", children: wmsLayerNames == null ? void 0 : wmsLayerNames.layers.map((layer) => {
10744
+ const len = layer.layerDescription.split(" ").length;
10745
+ const year = layer.layerDescription.split(" ")[len - 1];
10746
+ return /* @__PURE__ */ jsx33(
10747
+ LayersControl.Overlay,
10748
+ {
10749
+ checked: layer.layerName == layerStore.selectedLayer,
10750
+ name: layer.layerName,
10751
+ children: /* @__PURE__ */ jsx33(
10752
+ CustomWMSTileLayer,
10753
+ {
10754
+ transparent: true,
10755
+ zIndex: 100,
10756
+ layers: layer.layerName,
10757
+ attribution: "GeoWiki",
10758
+ format: "image/png",
10759
+ version: "1.3.0",
10760
+ crs: CRS.EPSG3857,
10761
+ url: `https://titiler.terrascope.be/wms?time=${year}-01-01`,
10762
+ opacity: layer.opacity == void 0 ? layerStore.layerOpacity : layer.opacity
10763
+ }
10764
+ )
10765
+ },
10766
+ layer.layerName
10767
+ );
10768
+ }) })
10769
+ ] }) }),
10825
10770
  /* @__PURE__ */ jsx33(LayerGroup, { children: /* @__PURE__ */ jsx33(LayerStoreList, {}) }),
10826
10771
  /* @__PURE__ */ jsxs24(RequireFeature, { feature: "GeoWiki.EvoLand", children: [
10827
10772
  /* @__PURE__ */ jsx33(EvolandContainer, { sessionStatus: session.status }),
@@ -10838,7 +10783,7 @@ var GeoWikiMapComponent = ({ mapSettings, session }) => {
10838
10783
  viewBox: "0 0 24 24",
10839
10784
  xmlns: "http://www.w3.org/2000/svg",
10840
10785
  fill: "#000000",
10841
- className: "w-7 h-7 bg-white mb-2 hover:cursor-pointer",
10786
+ className: "w-7 h-7 bg-white mb-2 hover:cursor-pointer rounded-md p-1",
10842
10787
  onClick: () => {
10843
10788
  evolandStore.setShowTimeSeries(
10844
10789
  !evolandStore.showTimeSeries
@@ -10871,7 +10816,7 @@ var GeoWikiMapComponent = ({ mapSettings, session }) => {
10871
10816
  viewBox: "0 0 24 24",
10872
10817
  strokeWidth: "1.5",
10873
10818
  stroke: "currentColor",
10874
- className: "w-7 h-7 mb-2 bg-white hover:cursor-pointer",
10819
+ className: "w-7 h-7 mb-2 bg-white hover:cursor-pointer rounded-md",
10875
10820
  children: [
10876
10821
  /* @__PURE__ */ jsx33(
10877
10822
  "path",
@@ -10909,7 +10854,7 @@ var GeoWikiMapComponent = ({ mapSettings, session }) => {
10909
10854
  viewBox: "0 0 24 24",
10910
10855
  strokeWidth: "1.5",
10911
10856
  stroke: "currentColor",
10912
- className: "w-7 h-7 bg-white hover:cursor-pointer",
10857
+ className: "w-7 h-7 bg-white hover:cursor-pointer rounded-md",
10913
10858
  onClick: () => {
10914
10859
  evolandStore.onRecenterLocation();
10915
10860
  },
@@ -11067,7 +11012,7 @@ export {
11067
11012
  parseMapMenuItems,
11068
11013
  BetterWMS,
11069
11014
  CustomWMSTileLayer,
11070
- MarkerClusterGroup2 as MarkerClusterGroup,
11015
+ MarkerClusterGroup,
11071
11016
  GeoJsonLayer,
11072
11017
  useCustomLayerStore,
11073
11018
  statusColorMap,