@geowiki/core 0.16.9-dev.9 → 0.16.10

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.
package/dist/index.js CHANGED
@@ -77,8 +77,8 @@ var __async = (__this, __arguments, generator) => {
77
77
  };
78
78
 
79
79
  // src/index.tsx
80
- var src_exports = {};
81
- __export(src_exports, {
80
+ var index_exports = {};
81
+ __export(index_exports, {
82
82
  ActivityStatus: () => ActivityStatus,
83
83
  AdminMenus: () => AdminMenus,
84
84
  AnnotationRequired: () => AnnotationRequired,
@@ -297,7 +297,7 @@ __export(src_exports, {
297
297
  useUserRoles: () => useUserRoles,
298
298
  useUsers: () => useUsers
299
299
  });
300
- module.exports = __toCommonJS(src_exports);
300
+ module.exports = __toCommonJS(index_exports);
301
301
 
302
302
  // src/Animation.ts
303
303
  var easing = [0.175, 0.85, 0.42, 0.96];
@@ -433,8 +433,6 @@ var QueryConstants = {
433
433
  GetTaskMultipleAnnotations: "GetTaskMultipleAnnotations",
434
434
  GetTaskSavedAnnotations: "GetTaskSavedAnnotations",
435
435
  DeleteTask: "DeleteTask",
436
- GetApiImage: "GetApiImage",
437
- GetCmsImage: "GetCmsImage",
438
436
  GetQuestionnaireForProject: "GetQuestionnaireForProject",
439
437
  GetTaskAnswers: "GetTaskAnswers",
440
438
  UploadTasks: "UploadTasks",
@@ -523,7 +521,7 @@ var import_evoland_api_proxy = require("@geowiki/evoland-api-proxy");
523
521
  var useEvolandWmsLayers = () => {
524
522
  return (0, import_react_query2.useQuery)({
525
523
  queryKey: [QueryNames.GetAvailableWmsLayers],
526
- queryFn: () => __async(void 0, null, function* () {
524
+ queryFn: () => __async(null, null, function* () {
527
525
  const data = yield import_evoland_api_proxy.ProjectService.getAvailableLayersAvailablelayersGet();
528
526
  return data;
529
527
  })
@@ -553,7 +551,7 @@ var import_api_proxy = require("@geowiki/api-proxy");
553
551
  var useAppConfig = () => {
554
552
  return (0, import_react_query3.useQuery)({
555
553
  queryKey: [QueryConstants.GetAppConfig],
556
- queryFn: () => __async(void 0, null, function* () {
554
+ queryFn: () => __async(null, null, function* () {
557
555
  const data = yield import_api_proxy.AbpApplicationConfigurationService.abpApplicationConfigurationGet();
558
556
  return data;
559
557
  }),
@@ -568,7 +566,7 @@ var import_react_query4 = require("@tanstack/react-query");
568
566
  var useAudience = () => {
569
567
  return (0, import_react_query4.useQuery)({
570
568
  queryKey: [QueryNames.GetAudience],
571
- queryFn: () => __async(void 0, null, function* () {
569
+ queryFn: () => __async(null, null, function* () {
572
570
  const data = yield import_api_proxy2.ResourceService.resourceGetAvailableAudience();
573
571
  return data;
574
572
  }),
@@ -584,7 +582,7 @@ var import_react_query5 = require("@tanstack/react-query");
584
582
  var useCluster = (id) => {
585
583
  return (0, import_react_query5.useQuery)({
586
584
  queryKey: [QueryNames.Cluster, id],
587
- queryFn: () => __async(void 0, null, function* () {
585
+ queryFn: () => __async(null, null, function* () {
588
586
  const data = yield import_api_proxy3.ClusterService.clusterGet(id);
589
587
  return data;
590
588
  })
@@ -597,7 +595,7 @@ var import_react_query6 = require("@tanstack/react-query");
597
595
  var useClusterFilterSettings = () => {
598
596
  return (0, import_react_query6.useQuery)({
599
597
  queryKey: [QueryNames.GetClusterFilterSettings],
600
- queryFn: () => __async(void 0, null, function* () {
598
+ queryFn: () => __async(null, null, function* () {
601
599
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("ClusterFilter");
602
600
  return req;
603
601
  })
@@ -606,7 +604,7 @@ var useClusterFilterSettings = () => {
606
604
  var useConfigSettings = () => {
607
605
  return (0, import_react_query6.useQuery)({
608
606
  queryKey: [QueryNames.GetConfig],
609
- queryFn: () => __async(void 0, null, function* () {
607
+ queryFn: () => __async(null, null, function* () {
610
608
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("Config");
611
609
  return req;
612
610
  })
@@ -619,7 +617,7 @@ var import_react_query7 = require("@tanstack/react-query");
619
617
  var useClusterMapInfo = () => {
620
618
  return (0, import_react_query7.useQuery)({
621
619
  queryKey: [QueryNames.GetClusterForMap],
622
- queryFn: () => __async(void 0, null, function* () {
620
+ queryFn: () => __async(null, null, function* () {
623
621
  const data = yield import_api_proxy4.ClusterService.clusterGetMapInfo();
624
622
  return data;
625
623
  })
@@ -632,7 +630,7 @@ var import_react_query8 = require("@tanstack/react-query");
632
630
  var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
633
631
  return (0, import_react_query8.useQuery)({
634
632
  queryKey: [QueryNames.Clusters, skip, take],
635
- queryFn: () => __async(void 0, null, function* () {
633
+ queryFn: () => __async(null, null, function* () {
636
634
  if (fetchAll) {
637
635
  const data = yield import_api_proxy5.ClusterService.clusterGetAllClusters(
638
636
  sort,
@@ -651,7 +649,7 @@ var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
651
649
  var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
652
650
  return (0, import_react_query8.useQuery)({
653
651
  queryKey: [QueryNames.GetFarmerClusterNews, sort, skip, take],
654
- queryFn: () => __async(void 0, null, function* () {
652
+ queryFn: () => __async(null, null, function* () {
655
653
  const data = yield import_api_proxy5.ClusterService.clusterGetAllNewsFromAllClusters(
656
654
  sort,
657
655
  skip,
@@ -664,7 +662,7 @@ var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
664
662
 
665
663
  // src/hooks/useHosts.ts
666
664
  var import_react_query9 = require("@tanstack/react-query");
667
- var getHosts = () => __async(void 0, null, function* () {
665
+ var getHosts = () => __async(null, null, function* () {
668
666
  const response = yield fetch("/api/hosts");
669
667
  if (!response.ok) {
670
668
  throw new Error("Failed to fetch hosts");
@@ -704,7 +702,7 @@ var import_api_proxy6 = require("@geowiki/api-proxy");
704
702
  var useCountries = (fetchAll = false) => {
705
703
  return (0, import_react_query10.useQuery)({
706
704
  queryKey: [QueryNames.GetCountries, fetchAll],
707
- queryFn: () => __async(void 0, null, function* () {
705
+ queryFn: () => __async(null, null, function* () {
708
706
  const data = yield import_api_proxy6.ClusterService.clusterGetCountries(fetchAll);
709
707
  data.sort((a, b) => {
710
708
  if (!a.country || !b.country) {
@@ -755,7 +753,7 @@ var useFileUrl = () => {
755
753
  var useFileUpload = (formData) => {
756
754
  return (0, import_react_query11.useQuery)({
757
755
  queryKey: [QueryNames.FileUpload, formData],
758
- queryFn: () => __async(void 0, null, function* () {
756
+ queryFn: () => __async(null, null, function* () {
759
757
  const data = yield import_api_proxy7.FileService.fileUpload(formData);
760
758
  return data;
761
759
  })
@@ -778,7 +776,7 @@ var useFilterClusters = (filter) => {
778
776
  filter.mainAgriculturalAreas,
779
777
  filter.sort
780
778
  ],
781
- queryFn: () => __async(void 0, null, function* () {
779
+ queryFn: () => __async(null, null, function* () {
782
780
  const data = yield import_api_proxy8.ClusterService.clusterFilter(filter);
783
781
  return data;
784
782
  })
@@ -791,7 +789,7 @@ var import_react_query13 = require("@tanstack/react-query");
791
789
  var useGeoWikiSettings = () => {
792
790
  return (0, import_react_query13.useQuery)({
793
791
  queryKey: [QueryNames.GetAppSettings],
794
- queryFn: () => __async(void 0, null, function* () {
792
+ queryFn: () => __async(null, null, function* () {
795
793
  var req = yield import_cms_proxy2.SettingsService.settingsGetSiteSettings("GeoWiki");
796
794
  return req;
797
795
  })
@@ -810,7 +808,7 @@ var import_react_query14 = require("@tanstack/react-query");
810
808
  var useIntroTourSettings = () => {
811
809
  return (0, import_react_query14.useQuery)({
812
810
  queryKey: [QueryNames.GetIntroTour],
813
- queryFn: () => __async(void 0, null, function* () {
811
+ queryFn: () => __async(null, null, function* () {
814
812
  var req = yield import_cms_proxy3.SettingsService.settingsGetSiteSettings("IntroTour");
815
813
  return req;
816
814
  })
@@ -847,7 +845,7 @@ var import_react_query15 = require("@tanstack/react-query");
847
845
  var useLanguages = () => {
848
846
  return (0, import_react_query15.useQuery)({
849
847
  queryKey: [QueryNames.GetLanguages],
850
- queryFn: () => __async(void 0, null, function* () {
848
+ queryFn: () => __async(null, null, function* () {
851
849
  const data = yield import_api_proxy9.ResourceService.resourceGetAvailableLanguages();
852
850
  return data;
853
851
  }),
@@ -862,7 +860,7 @@ var import_react_query16 = require("@tanstack/react-query");
862
860
  var useLayerInfo = (url, layerName) => {
863
861
  return (0, import_react_query16.useQuery)({
864
862
  queryKey: [QueryNames.GetUseLayerInfo, url, layerName],
865
- queryFn: () => __async(void 0, null, function* () {
863
+ queryFn: () => __async(null, null, function* () {
866
864
  var legendUrl = url + "?service=WMS&version=1.1.0&request=GetLegendGraphic&layer=" + layerName + "&format=application/json";
867
865
  var res = yield fetch(legendUrl);
868
866
  var data = yield res.json();
@@ -887,7 +885,7 @@ function useLocation() {
887
885
  var useLocationsForProject = (locationreq) => {
888
886
  return (0, import_react_query17.useQuery)({
889
887
  queryKey: [QueryConstants.GetLocations, locationreq],
890
- queryFn: () => __async(void 0, null, function* () {
888
+ queryFn: () => __async(null, null, function* () {
891
889
  return import_evoland_api_proxy2.ProjectService.searchLocationsLocationsPost(locationreq);
892
890
  })
893
891
  });
@@ -895,7 +893,7 @@ var useLocationsForProject = (locationreq) => {
895
893
  var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
896
894
  return (0, import_react_query17.useQuery)({
897
895
  queryKey: [QueryConstants.UploadLocations, uploadLocations, file, group_id],
898
- queryFn: () => __async(void 0, null, function* () {
896
+ queryFn: () => __async(null, null, function* () {
899
897
  try {
900
898
  const res = yield import_evoland_api_proxy2.LocationService.bulkUploadLocationsUploadlocationsPost({ file, project_id, group_id });
901
899
  return res;
@@ -909,7 +907,7 @@ var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
909
907
  var useTaskBulkUpload = (uploadTasks, file, project_id) => {
910
908
  return (0, import_react_query17.useQuery)({
911
909
  queryKey: [QueryConstants.UploadTasks, uploadTasks, file],
912
- queryFn: () => __async(void 0, null, function* () {
910
+ queryFn: () => __async(null, null, function* () {
913
911
  try {
914
912
  return import_evoland_api_proxy2.LocationService.uploadLocationTaskUploadlocationtaskPost({ file, project_id });
915
913
  } catch (error) {
@@ -922,7 +920,7 @@ var useTaskBulkUpload = (uploadTasks, file, project_id) => {
922
920
  var useReviewTaskBulkUpload = (uploadReviewTasks, file, project_id) => {
923
921
  return (0, import_react_query17.useQuery)({
924
922
  queryKey: [QueryConstants.UploadReviewTasks, uploadReviewTasks, file],
925
- queryFn: () => __async(void 0, null, function* () {
923
+ queryFn: () => __async(null, null, function* () {
926
924
  try {
927
925
  return import_evoland_api_proxy2.LocationService.bulkUploadReviewTasksUploadreviewtasksPost({ file, project_id });
928
926
  } catch (error) {
@@ -955,7 +953,7 @@ var import_api_proxy10 = require("@geowiki/api-proxy");
955
953
  var useNews = (lang = "all", skip = 0, take = 100) => {
956
954
  return (0, import_react_query19.useQuery)({
957
955
  queryKey: [QueryNames.GetNews, lang, skip, take],
958
- queryFn: () => __async(void 0, null, function* () {
956
+ queryFn: () => __async(null, null, function* () {
959
957
  if (lang == "all") {
960
958
  const res2 = yield import_api_proxy10.NewsService.newsGetExternalNews("", skip, take);
961
959
  return res2.items;
@@ -1036,7 +1034,7 @@ var import_react_query20 = require("@tanstack/react-query");
1036
1034
  var usePublicationSettings = () => {
1037
1035
  return (0, import_react_query20.useQuery)({
1038
1036
  queryKey: [QueryNames.GetPublicationSettings],
1039
- queryFn: () => __async(void 0, null, function* () {
1037
+ queryFn: () => __async(null, null, function* () {
1040
1038
  var req = yield import_cms_proxy5.SettingsService.settingsGetSiteSettings("Publication");
1041
1039
  return req;
1042
1040
  })
@@ -1049,7 +1047,7 @@ var import_react_query21 = require("@tanstack/react-query");
1049
1047
  var useResource = (search = "", sort = "", skip = 0, take = 100) => {
1050
1048
  return (0, import_react_query21.useQuery)({
1051
1049
  queryKey: [QueryNames.GetResource, search, sort, skip, take],
1052
- queryFn: () => __async(void 0, null, function* () {
1050
+ queryFn: () => __async(null, null, function* () {
1053
1051
  if (search !== "") {
1054
1052
  const data2 = yield import_api_proxy11.ResourceService.resourceSearch(search);
1055
1053
  return data2;
@@ -1081,7 +1079,7 @@ var useResourceFilter = (filter) => {
1081
1079
  filter.sorting,
1082
1080
  filter.isFramework
1083
1081
  ],
1084
- queryFn: () => __async(void 0, null, function* () {
1082
+ queryFn: () => __async(null, null, function* () {
1085
1083
  const data = yield import_api_proxy12.ResourceService.resourceFilter(filter);
1086
1084
  return data;
1087
1085
  })
@@ -1094,7 +1092,7 @@ var import_react_query23 = require("@tanstack/react-query");
1094
1092
  var useResourceType = () => {
1095
1093
  return (0, import_react_query23.useQuery)({
1096
1094
  queryKey: [QueryNames.GetResourceType],
1097
- queryFn: () => __async(void 0, null, function* () {
1095
+ queryFn: () => __async(null, null, function* () {
1098
1096
  var data = yield import_api_proxy13.ResourceService.resourceGetAvailableResourceType();
1099
1097
  return data;
1100
1098
  })
@@ -1107,7 +1105,7 @@ var import_react_query24 = require("@tanstack/react-query");
1107
1105
  var useTopic = () => {
1108
1106
  return (0, import_react_query24.useQuery)({
1109
1107
  queryKey: [QueryNames.GetTopic],
1110
- queryFn: () => __async(void 0, null, function* () {
1108
+ queryFn: () => __async(null, null, function* () {
1111
1109
  var data = yield import_api_proxy14.ResourceService.resourceGetAvailableTopic();
1112
1110
  return data;
1113
1111
  }),
@@ -1123,7 +1121,7 @@ var import_api_proxy15 = require("@geowiki/api-proxy");
1123
1121
  var useUserProfileGet = () => {
1124
1122
  return (0, import_react_query25.useQuery)({
1125
1123
  queryKey: [QueryNames.GetUserProfile],
1126
- queryFn: () => __async(void 0, null, function* () {
1124
+ queryFn: () => __async(null, null, function* () {
1127
1125
  var data = yield import_api_proxy15.ProfileService.profileGet();
1128
1126
  return data;
1129
1127
  })
@@ -1136,7 +1134,7 @@ var import_api_proxy16 = require("@geowiki/api-proxy");
1136
1134
  var useUsers = (pageIndex, pageSize, filter, sorting) => {
1137
1135
  return (0, import_react_query26.useQuery)({
1138
1136
  queryKey: [QueryConstants.GetUsers, pageIndex, pageSize, filter, sorting],
1139
- queryFn: () => __async(void 0, null, function* () {
1137
+ queryFn: () => __async(null, null, function* () {
1140
1138
  let skip = 0;
1141
1139
  if (pageIndex > 0) {
1142
1140
  skip = pageIndex * pageSize;
@@ -1156,7 +1154,7 @@ var useUsers = (pageIndex, pageSize, filter, sorting) => {
1156
1154
  var import_react5 = __toESM(require("react"));
1157
1155
  function useRenderInfo(name = "Unknown") {
1158
1156
  const count = import_react5.default.useRef(0);
1159
- const lastRender = import_react5.default.useRef();
1157
+ const lastRender = import_react5.default.useRef(void 0);
1160
1158
  const now = Date.now();
1161
1159
  count.current++;
1162
1160
  import_react5.default.useEffect(() => {
@@ -1180,7 +1178,7 @@ var import_react_query27 = require("@tanstack/react-query");
1180
1178
  var useDefaultSettings = () => {
1181
1179
  return (0, import_react_query27.useQuery)({
1182
1180
  queryKey: [QueryNames.DefaultSettings],
1183
- queryFn: () => __async(void 0, null, function* () {
1181
+ queryFn: () => __async(null, null, function* () {
1184
1182
  const req = yield import_cms_proxy6.SettingsService.settingsGetDefaultSiteSettings();
1185
1183
  return req;
1186
1184
  })
@@ -1199,7 +1197,7 @@ var import_react_query28 = require("@tanstack/react-query");
1199
1197
  var useEmailing = () => {
1200
1198
  return (0, import_react_query28.useQuery)({
1201
1199
  queryKey: [QueryConstants.GetEmailing],
1202
- queryFn: () => __async(void 0, null, function* () {
1200
+ queryFn: () => __async(null, null, function* () {
1203
1201
  const data = yield import_api_proxy17.EmailSettingsService.emailSettingsGet();
1204
1202
  return data;
1205
1203
  })
@@ -1229,7 +1227,7 @@ var import_react_query29 = require("@tanstack/react-query");
1229
1227
  var useFeatures = (providerName, providerKey) => {
1230
1228
  return (0, import_react_query29.useQuery)({
1231
1229
  queryKey: [QueryConstants.GetFeatures, providerName, providerKey],
1232
- queryFn: () => __async(void 0, null, function* () {
1230
+ queryFn: () => __async(null, null, function* () {
1233
1231
  const data = yield import_api_proxy18.FeaturesService.featuresGet(providerName, providerKey);
1234
1232
  return data;
1235
1233
  })
@@ -1242,7 +1240,7 @@ var import_api_proxy19 = require("@geowiki/api-proxy");
1242
1240
  var useAssignableRoles = () => {
1243
1241
  return (0, import_react_query30.useQuery)({
1244
1242
  queryKey: [QueryConstants.GetAssignableRoles],
1245
- queryFn: () => __async(void 0, null, function* () {
1243
+ queryFn: () => __async(null, null, function* () {
1246
1244
  const data = yield import_api_proxy19.UserService.userGetAssignableRoles();
1247
1245
  return data;
1248
1246
  })
@@ -1255,7 +1253,7 @@ var import_react_query31 = require("@tanstack/react-query");
1255
1253
  var useUserRoles = ({ userId }) => {
1256
1254
  return (0, import_react_query31.useQuery)({
1257
1255
  queryKey: [QueryConstants.GetUserRoles, userId],
1258
- queryFn: () => __async(void 0, null, function* () {
1256
+ queryFn: () => __async(null, null, function* () {
1259
1257
  const data = yield import_api_proxy20.UserService.userGetRoles(userId);
1260
1258
  return data;
1261
1259
  })
@@ -1268,7 +1266,7 @@ var import_react_query32 = require("@tanstack/react-query");
1268
1266
  var usePermissions = (providerName, providerKey) => {
1269
1267
  return (0, import_react_query32.useQuery)({
1270
1268
  queryKey: [QueryConstants.GetPermissions, providerName, providerKey],
1271
- queryFn: () => __async(void 0, null, function* () {
1269
+ queryFn: () => __async(null, null, function* () {
1272
1270
  const data = yield import_api_proxy21.PermissionsService.permissionsGet(
1273
1271
  providerName,
1274
1272
  providerKey
@@ -1284,7 +1282,7 @@ var import_api_proxy22 = require("@geowiki/api-proxy");
1284
1282
  var useRoles = (pageIndex, pageSize, filter, sorting) => {
1285
1283
  return (0, import_react_query33.useQuery)({
1286
1284
  queryKey: [QueryConstants.GetRoles, pageIndex, pageSize, filter, sorting],
1287
- queryFn: () => __async(void 0, null, function* () {
1285
+ queryFn: () => __async(null, null, function* () {
1288
1286
  let skip = 0;
1289
1287
  if (pageIndex > 0) {
1290
1288
  skip = pageIndex * pageSize;
@@ -1306,7 +1304,7 @@ var import_react_query34 = require("@tanstack/react-query");
1306
1304
  var useProfile = () => {
1307
1305
  return (0, import_react_query34.useQuery)({
1308
1306
  queryKey: [QueryConstants.GetProfile],
1309
- queryFn: () => __async(void 0, null, function* () {
1307
+ queryFn: () => __async(null, null, function* () {
1310
1308
  const data = yield import_api_proxy23.ProfileService.profileGet();
1311
1309
  return data;
1312
1310
  })
@@ -1319,7 +1317,7 @@ var import_api_proxy24 = require("@geowiki/api-proxy");
1319
1317
  var useTenants = (pageIndex, pageSize, filter, sorting) => {
1320
1318
  return (0, import_react_query35.useQuery)({
1321
1319
  queryKey: [QueryConstants.GetTenants, pageIndex, pageSize, filter, sorting],
1322
- queryFn: () => __async(void 0, null, function* () {
1320
+ queryFn: () => __async(null, null, function* () {
1323
1321
  let skip = 0;
1324
1322
  if (pageIndex > 0) {
1325
1323
  skip = pageIndex * pageSize;
@@ -1341,7 +1339,7 @@ var import_evoland_api_proxy3 = require("@geowiki/evoland-api-proxy");
1341
1339
  var useEvolandLabels = (projectId) => {
1342
1340
  return (0, import_react_query36.useQuery)({
1343
1341
  queryKey: [QueryNames.GetEvolandLabels, projectId],
1344
- queryFn: () => __async(void 0, null, function* () {
1342
+ queryFn: () => __async(null, null, function* () {
1345
1343
  const data = yield import_evoland_api_proxy3.ProjectService.getLabelsLabelsProjectIdProjectIdGet(projectId);
1346
1344
  return data;
1347
1345
  })
@@ -1355,7 +1353,7 @@ var useLookUp = (ServiceName, params, LookUpsClusterCountries, LookUpsClusterAct
1355
1353
  let result;
1356
1354
  return (0, import_react_query37.useQuery)({
1357
1355
  queryKey: [QueryNames.GetLookUp, ServiceName, params],
1358
- queryFn: () => __async(void 0, null, function* () {
1356
+ queryFn: () => __async(null, null, function* () {
1359
1357
  switch (ServiceName) {
1360
1358
  case LookUpsClusterCountries: {
1361
1359
  result = yield import_api_proxy25.ClusterService.clusterGetCountries(params);
@@ -1389,7 +1387,7 @@ var import_evoland_api_proxy4 = require("@geowiki/evoland-api-proxy");
1389
1387
  var useProjects = (fetch2, start = 0, amount = 9) => {
1390
1388
  return (0, import_react_query38.useQuery)({
1391
1389
  queryKey: [QueryConstants.GetProjects, fetch2, start, amount],
1392
- queryFn: () => __async(void 0, null, function* () {
1390
+ queryFn: () => __async(null, null, function* () {
1393
1391
  if (fetch2)
1394
1392
  return import_evoland_api_proxy4.ProjectService.listProjectsListprojectsStartidxStartidxAmountAmountGet(
1395
1393
  start,
@@ -1401,7 +1399,7 @@ var useProjects = (fetch2, start = 0, amount = 9) => {
1401
1399
  var useProjectDetails = (projectId, update) => {
1402
1400
  return (0, import_react_query38.useQuery)({
1403
1401
  queryKey: [QueryConstants.GetProjectDetails, projectId, update],
1404
- queryFn: () => __async(void 0, null, function* () {
1402
+ queryFn: () => __async(null, null, function* () {
1405
1403
  return import_evoland_api_proxy4.ProjectService.projectInfoProjectinfoProjectIdProjectIdGet(
1406
1404
  projectId
1407
1405
  );
@@ -1411,7 +1409,7 @@ var useProjectDetails = (projectId, update) => {
1411
1409
  var useTasksPerLocation = (data) => {
1412
1410
  return (0, import_react_query38.useQuery)({
1413
1411
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1414
- queryFn: () => __async(void 0, null, function* () {
1412
+ queryFn: () => __async(null, null, function* () {
1415
1413
  return import_evoland_api_proxy4.ProjectService.getTasksTasksGet(
1416
1414
  data.locationProjectId,
1417
1415
  data.taskForReview,
@@ -1439,7 +1437,7 @@ var useTasksPerLocation = (data) => {
1439
1437
  var useRandomTasksPerLocation = (data) => {
1440
1438
  return (0, import_react_query38.useQuery)({
1441
1439
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1442
- queryFn: () => __async(void 0, null, function* () {
1440
+ queryFn: () => __async(null, null, function* () {
1443
1441
  return import_evoland_api_proxy4.ProjectService.getRandomTaskRandomtaskGet(
1444
1442
  data.locationProjectId,
1445
1443
  data.taskForReview,
@@ -1466,7 +1464,7 @@ var useRandomTasksPerLocation = (data) => {
1466
1464
  var useTaskComments = (taskIds) => {
1467
1465
  return (0, import_react_query38.useQuery)({
1468
1466
  queryKey: [QueryConstants.GetTaskComment, taskIds],
1469
- queryFn: () => __async(void 0, null, function* () {
1467
+ queryFn: () => __async(null, null, function* () {
1470
1468
  return import_evoland_api_proxy4.TaskService.taskLatestComomentsTasklatestcommentPost({
1471
1469
  task_ids: taskIds
1472
1470
  });
@@ -1476,7 +1474,7 @@ var useTaskComments = (taskIds) => {
1476
1474
  var useGroupsInProject = (projectId, updateGroup) => {
1477
1475
  return (0, import_react_query38.useQuery)({
1478
1476
  queryKey: [QueryConstants.GetGroupsInProject, projectId, updateGroup],
1479
- queryFn: () => __async(void 0, null, function* () {
1477
+ queryFn: () => __async(null, null, function* () {
1480
1478
  return import_evoland_api_proxy4.ProjectService.getProjectGroupsProjectgroupsProjectIdProjectIdGet(
1481
1479
  projectId
1482
1480
  );
@@ -1486,7 +1484,7 @@ var useGroupsInProject = (projectId, updateGroup) => {
1486
1484
  var useProjectUsers = (projectId) => {
1487
1485
  return (0, import_react_query38.useQuery)({
1488
1486
  queryKey: [QueryConstants.GetProjectUsers, projectId],
1489
- queryFn: () => __async(void 0, null, function* () {
1487
+ queryFn: () => __async(null, null, function* () {
1490
1488
  return import_evoland_api_proxy4.ProjectService.projectAllUsersProjectusersProjectIdProjectIdGet(
1491
1489
  projectId
1492
1490
  );
@@ -1496,7 +1494,7 @@ var useProjectUsers = (projectId) => {
1496
1494
  var useTaskStatusList = () => {
1497
1495
  return (0, import_react_query38.useQuery)({
1498
1496
  queryKey: [QueryConstants.GetTaskStatusList],
1499
- queryFn: () => __async(void 0, null, function* () {
1497
+ queryFn: () => __async(null, null, function* () {
1500
1498
  return import_evoland_api_proxy4.TaskService.getTaskStatusesTaskstatusesGet();
1501
1499
  })
1502
1500
  });
@@ -1509,7 +1507,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1509
1507
  groupId,
1510
1508
  update
1511
1509
  ],
1512
- queryFn: () => __async(void 0, null, function* () {
1510
+ queryFn: () => __async(null, null, function* () {
1513
1511
  if (update)
1514
1512
  return import_evoland_api_proxy4.ProjectService.selectProjectGroupProjectselectgroupPost({
1515
1513
  project_id: projectId,
@@ -1521,7 +1519,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1521
1519
  var useTaskAnnotation = (taskId) => {
1522
1520
  return (0, import_react_query38.useQuery)({
1523
1521
  queryKey: [QueryConstants.GetTaskAnnotation, taskId],
1524
- queryFn: () => __async(void 0, null, function* () {
1522
+ queryFn: () => __async(null, null, function* () {
1525
1523
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1526
1524
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetTaskannotationTaskIdTaskIdGet(
1527
1525
  taskId
@@ -1532,7 +1530,7 @@ var useTaskAnnotation = (taskId) => {
1532
1530
  var useTaskMultipleAnnotations = (taskId) => {
1533
1531
  return (0, import_react_query38.useQuery)({
1534
1532
  queryKey: [QueryConstants.GetTaskMultipleAnnotations, taskId],
1535
- queryFn: () => __async(void 0, null, function* () {
1533
+ queryFn: () => __async(null, null, function* () {
1536
1534
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1537
1535
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetsTaskannotationsTaskIdTaskIdGet(
1538
1536
  taskId
@@ -1543,7 +1541,7 @@ var useTaskMultipleAnnotations = (taskId) => {
1543
1541
  var useTaskSavedAnnotations = (taskId) => {
1544
1542
  return (0, import_react_query38.useQuery)({
1545
1543
  queryKey: [QueryConstants.GetTaskSavedAnnotations, taskId],
1546
- queryFn: () => __async(void 0, null, function* () {
1544
+ queryFn: () => __async(null, null, function* () {
1547
1545
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1548
1546
  return import_evoland_api_proxy4.TaskService.getSavedAnnotationGetsavedannotationTaskIdTaskIdGet(
1549
1547
  taskId
@@ -1554,7 +1552,7 @@ var useTaskSavedAnnotations = (taskId) => {
1554
1552
  var useTaskDelete = (taskId, projectId, deleteTask) => {
1555
1553
  return (0, import_react_query38.useQuery)({
1556
1554
  queryKey: [QueryConstants.DeleteTask, taskId, projectId, deleteTask],
1557
- queryFn: () => __async(void 0, null, function* () {
1555
+ queryFn: () => __async(null, null, function* () {
1558
1556
  if (taskId !== null && taskId !== void 0 && taskId !== 0 && deleteTask === true)
1559
1557
  return import_evoland_api_proxy4.TaskService.deleteTaskDeletetaskPost({
1560
1558
  project_id: projectId,
@@ -1572,7 +1570,7 @@ var useProjectStatisticsByUser = (projectId, startDate, endDate, filterUserId) =
1572
1570
  endDate,
1573
1571
  filterUserId
1574
1572
  ],
1575
- queryFn: () => __async(void 0, null, function* () {
1573
+ queryFn: () => __async(null, null, function* () {
1576
1574
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1577
1575
  projectId,
1578
1576
  endDate,
@@ -1591,7 +1589,7 @@ var useContractStatisticsByUser = (projectId, startDate, endDate, filterUserId)
1591
1589
  endDate,
1592
1590
  filterUserId
1593
1591
  ],
1594
- queryFn: () => __async(void 0, null, function* () {
1592
+ queryFn: () => __async(null, null, function* () {
1595
1593
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1596
1594
  projectId,
1597
1595
  endDate,
@@ -1610,7 +1608,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1610
1608
  projectId,
1611
1609
  referenceDate
1612
1610
  ],
1613
- queryFn: () => __async(void 0, null, function* () {
1611
+ queryFn: () => __async(null, null, function* () {
1614
1612
  return import_evoland_api_proxy4.ProjectService.locationLatestTaskLocationtaskLocationIdLocationIdProjectIdProjectIdReferenceDateReferenceDateGet(
1615
1613
  locationId,
1616
1614
  projectId,
@@ -1622,7 +1620,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1622
1620
  var useAssignProjectToUser = (userRoleRequest, update) => {
1623
1621
  return (0, import_react_query38.useQuery)({
1624
1622
  queryKey: [QueryConstants.GetProjectDetails, userRoleRequest, update],
1625
- queryFn: () => __async(void 0, null, function* () {
1623
+ queryFn: () => __async(null, null, function* () {
1626
1624
  if (update)
1627
1625
  return import_evoland_api_proxy4.ProjectService.setUserRoleSetuserrolePost(userRoleRequest);
1628
1626
  }),
@@ -1632,7 +1630,7 @@ var useAssignProjectToUser = (userRoleRequest, update) => {
1632
1630
  var useGetUserProject = (user_id, fetchData) => {
1633
1631
  return (0, import_react_query38.useQuery)({
1634
1632
  queryKey: [QueryConstants.GetUserProject, user_id, fetchData],
1635
- queryFn: () => __async(void 0, null, function* () {
1633
+ queryFn: () => __async(null, null, function* () {
1636
1634
  if (fetchData)
1637
1635
  return import_evoland_api_proxy4.ProjectService.getUserRoleProjectGetuserroleprojectUserIdUserIdGet(
1638
1636
  user_id
@@ -1643,7 +1641,7 @@ var useGetUserProject = (user_id, fetchData) => {
1643
1641
  var useUpdateUserDetail = (userDetailRequest, update) => {
1644
1642
  return (0, import_react_query38.useQuery)({
1645
1643
  queryKey: [QueryConstants.SetUserDetail, userDetailRequest, update],
1646
- queryFn: () => __async(void 0, null, function* () {
1644
+ queryFn: () => __async(null, null, function* () {
1647
1645
  if (update)
1648
1646
  return import_evoland_api_proxy4.ProjectService.setUserDetailSetuserdetailPost(userDetailRequest);
1649
1647
  })
@@ -1657,7 +1655,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1657
1655
  download,
1658
1656
  userRole
1659
1657
  ],
1660
- queryFn: () => __async(void 0, null, function* () {
1658
+ queryFn: () => __async(null, null, function* () {
1661
1659
  if (userRole == "admin" && download)
1662
1660
  return import_evoland_api_proxy4.ProjectService.getLocationsSummaryLocationssummaryProjectIdProjectIdGet(
1663
1661
  projectId
@@ -1668,7 +1666,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1668
1666
  var useQuestionnaire = (projectId) => {
1669
1667
  return (0, import_react_query38.useQuery)({
1670
1668
  queryKey: [QueryConstants.GetQuestionnaireForProject, projectId],
1671
- queryFn: () => __async(void 0, null, function* () {
1669
+ queryFn: () => __async(null, null, function* () {
1672
1670
  return import_evoland_api_proxy4.QuestionService.getProjectQuestionsAnswersQuestionsAnswersProjectIdProjectIdGet(
1673
1671
  projectId
1674
1672
  );
@@ -1678,7 +1676,7 @@ var useQuestionnaire = (projectId) => {
1678
1676
  var useTaskAnswers = (taskId) => {
1679
1677
  return (0, import_react_query38.useQuery)({
1680
1678
  queryKey: [QueryConstants.GetTaskAnswers, taskId],
1681
- queryFn: () => __async(void 0, null, function* () {
1679
+ queryFn: () => __async(null, null, function* () {
1682
1680
  return import_evoland_api_proxy4.TaskService.getTaskAnswersTaskanswersTaskIdTaskIdGet(taskId);
1683
1681
  })
1684
1682
  });
@@ -1686,7 +1684,7 @@ var useTaskAnswers = (taskId) => {
1686
1684
  var useProjectResultSet = (download, projectId, is_geo_json) => {
1687
1685
  return (0, import_react_query38.useQuery)({
1688
1686
  queryKey: [QueryConstants.GetProjectResultSet, download, projectId, is_geo_json],
1689
- queryFn: () => __async(void 0, null, function* () {
1687
+ queryFn: () => __async(null, null, function* () {
1690
1688
  return import_evoland_api_proxy4.ProjectService.projectResultSetProjectresultsetProjectIdProjectIdIsGeoJsonIsGeoJsonGet(projectId, is_geo_json);
1691
1689
  }),
1692
1690
  enabled: !!download && !!projectId
@@ -1694,38 +1692,30 @@ var useProjectResultSet = (download, projectId, is_geo_json) => {
1694
1692
  };
1695
1693
 
1696
1694
  // src/hooks/useApiImage.tsx
1697
- var import_react_query39 = require("@tanstack/react-query");
1695
+ var NO_IMAGE_PLACEHOLDER = "/assets/farmer-cluster/no-image-available.png";
1696
+ var EMPTY_GUID = "00000000-0000-0000-0000-000000000000";
1698
1697
  var useApiImage = (imageId) => {
1699
- return (0, import_react_query39.useQuery)({
1700
- queryKey: [QueryConstants.GetApiImage, imageId],
1701
- queryFn: () => __async(void 0, null, function* () {
1702
- const res = yield fetch(`/api/api-image/${imageId}`);
1703
- const data = yield res.json();
1704
- return data.fileUrl;
1705
- })
1706
- });
1698
+ if (!imageId || imageId === EMPTY_GUID) return NO_IMAGE_PLACEHOLDER;
1699
+ const { apiUrl, tenantId } = config_default.getState();
1700
+ const params = tenantId ? `__tenant=${tenantId}&id=${imageId}` : `id=${imageId}`;
1701
+ return `${apiUrl}/api/app/file/view?${params}`;
1707
1702
  };
1708
1703
 
1709
1704
  // src/hooks/useCmsImage.tsx
1710
- var import_react_query40 = require("@tanstack/react-query");
1705
+ var NO_IMAGE_PLACEHOLDER2 = "/assets/farmer-cluster/no-image-available.png";
1711
1706
  var useCmsImage = (imageId) => {
1712
- return (0, import_react_query40.useQuery)({
1713
- queryKey: [QueryConstants.GetCmsImage, imageId],
1714
- queryFn: () => __async(void 0, null, function* () {
1715
- const res = yield fetch(`/api/cms-image/${imageId}`);
1716
- const data = yield res.json();
1717
- return data.fileUrl;
1718
- })
1719
- });
1707
+ const cmsUrl = useCmsUrl();
1708
+ if (!imageId) return NO_IMAGE_PLACEHOLDER2;
1709
+ return `${cmsUrl}/media/${imageId}`;
1720
1710
  };
1721
1711
 
1722
1712
  // src/hooks/useClusterGetJoinRequests.ts
1723
1713
  var import_api_proxy26 = require("@geowiki/api-proxy");
1724
- var import_react_query41 = require("@tanstack/react-query");
1714
+ var import_react_query39 = require("@tanstack/react-query");
1725
1715
  var useClusterGetJoinRequests = (clusterId) => {
1726
- return (0, import_react_query41.useQuery)({
1716
+ return (0, import_react_query39.useQuery)({
1727
1717
  queryKey: [QueryNames.JoinRequests, clusterId],
1728
- queryFn: () => __async(void 0, null, function* () {
1718
+ queryFn: () => __async(null, null, function* () {
1729
1719
  const data = yield import_api_proxy26.ClusterService.clusterGetJoinRequests(clusterId);
1730
1720
  return data;
1731
1721
  })
@@ -1734,11 +1724,11 @@ var useClusterGetJoinRequests = (clusterId) => {
1734
1724
 
1735
1725
  // src/hooks/useClusterGetNews.ts
1736
1726
  var import_api_proxy27 = require("@geowiki/api-proxy");
1737
- var import_react_query42 = require("@tanstack/react-query");
1727
+ var import_react_query40 = require("@tanstack/react-query");
1738
1728
  var useClusterGetNews = (clusterId, newsId) => {
1739
- return (0, import_react_query42.useQuery)({
1729
+ return (0, import_react_query40.useQuery)({
1740
1730
  queryKey: [QueryNames.ClusterGetNews, clusterId, newsId],
1741
- queryFn: () => __async(void 0, null, function* () {
1731
+ queryFn: () => __async(null, null, function* () {
1742
1732
  const data = yield import_api_proxy27.ClusterService.clusterGetNews(clusterId, newsId);
1743
1733
  return data;
1744
1734
  })
@@ -1747,11 +1737,11 @@ var useClusterGetNews = (clusterId, newsId) => {
1747
1737
 
1748
1738
  // src/hooks/useClusterGetNewsNextPreviousStatus.ts
1749
1739
  var import_api_proxy28 = require("@geowiki/api-proxy");
1750
- var import_react_query43 = require("@tanstack/react-query");
1740
+ var import_react_query41 = require("@tanstack/react-query");
1751
1741
  var useClusterGetNewsNextPreviousStatus = (clusterId, newsId) => {
1752
- return (0, import_react_query43.useQuery)({
1742
+ return (0, import_react_query41.useQuery)({
1753
1743
  queryKey: [QueryNames.ClusterNewsNextPrevious, clusterId, newsId],
1754
- queryFn: () => __async(void 0, null, function* () {
1744
+ queryFn: () => __async(null, null, function* () {
1755
1745
  const data = yield import_api_proxy28.ClusterService.clusterGetNewsNextPreviousStatus(
1756
1746
  clusterId,
1757
1747
  newsId
@@ -1763,11 +1753,11 @@ var useClusterGetNewsNextPreviousStatus = (clusterId, newsId) => {
1763
1753
 
1764
1754
  // src/hooks/useClusterImages.ts
1765
1755
  var import_api_proxy29 = require("@geowiki/api-proxy");
1766
- var import_react_query44 = require("@tanstack/react-query");
1756
+ var import_react_query42 = require("@tanstack/react-query");
1767
1757
  var useClusterImages = (id) => {
1768
- return (0, import_react_query44.useQuery)({
1758
+ return (0, import_react_query42.useQuery)({
1769
1759
  queryKey: [QueryNames.ClusterImages, id],
1770
- queryFn: () => __async(void 0, null, function* () {
1760
+ queryFn: () => __async(null, null, function* () {
1771
1761
  const data = yield import_api_proxy29.ClusterService.clusterGetClusterImages(id);
1772
1762
  return data;
1773
1763
  })
@@ -1776,11 +1766,11 @@ var useClusterImages = (id) => {
1776
1766
 
1777
1767
  // src/hooks/useClusterOverview.ts
1778
1768
  var import_api_proxy30 = require("@geowiki/api-proxy");
1779
- var import_react_query45 = require("@tanstack/react-query");
1769
+ var import_react_query43 = require("@tanstack/react-query");
1780
1770
  var useClusterOverview = (id) => {
1781
- return (0, import_react_query45.useQuery)({
1771
+ return (0, import_react_query43.useQuery)({
1782
1772
  queryKey: [QueryNames.GetClusterOverview, id],
1783
- queryFn: () => __async(void 0, null, function* () {
1773
+ queryFn: () => __async(null, null, function* () {
1784
1774
  const data = yield import_api_proxy30.ClusterService.clusterGetClusterOverview(id);
1785
1775
  return data;
1786
1776
  })
@@ -1789,9 +1779,9 @@ var useClusterOverview = (id) => {
1789
1779
 
1790
1780
  // src/hooks/useClusterAllNews.ts
1791
1781
  var import_api_proxy31 = require("@geowiki/api-proxy");
1792
- var import_react_query46 = require("@tanstack/react-query");
1782
+ var import_react_query44 = require("@tanstack/react-query");
1793
1783
  var useClusterAllNews = (id, refresh, sorting, skipCount, maxResultCount, status) => {
1794
- return (0, import_react_query46.useQuery)({
1784
+ return (0, import_react_query44.useQuery)({
1795
1785
  queryKey: [
1796
1786
  QueryNames.ClusterAllNews,
1797
1787
  id,
@@ -1801,7 +1791,7 @@ var useClusterAllNews = (id, refresh, sorting, skipCount, maxResultCount, status
1801
1791
  refresh,
1802
1792
  status
1803
1793
  ],
1804
- queryFn: () => __async(void 0, null, function* () {
1794
+ queryFn: () => __async(null, null, function* () {
1805
1795
  const data = yield import_api_proxy31.ClusterService.clusterGetAllNews(
1806
1796
  id,
1807
1797
  sorting,
@@ -1816,11 +1806,11 @@ var useClusterAllNews = (id, refresh, sorting, skipCount, maxResultCount, status
1816
1806
 
1817
1807
  // src/hooks/useNewsFromAllClusters.ts
1818
1808
  var import_api_proxy32 = require("@geowiki/api-proxy");
1819
- var import_react_query47 = require("@tanstack/react-query");
1809
+ var import_react_query45 = require("@tanstack/react-query");
1820
1810
  var useNewsFromAllClusters = (skip = 0, take = 10) => {
1821
- return (0, import_react_query47.useQuery)({
1811
+ return (0, import_react_query45.useQuery)({
1822
1812
  queryKey: [QueryNames.ClusterAllNews, skip, take],
1823
- queryFn: () => __async(void 0, null, function* () {
1813
+ queryFn: () => __async(null, null, function* () {
1824
1814
  const data = yield import_api_proxy32.ClusterService.clusterGetAllNewsFromAllClusters(
1825
1815
  "",
1826
1816
  skip,
@@ -1833,11 +1823,11 @@ var useNewsFromAllClusters = (skip = 0, take = 10) => {
1833
1823
 
1834
1824
  // src/hooks/useClusterNewsWithId.ts
1835
1825
  var import_api_proxy33 = require("@geowiki/api-proxy");
1836
- var import_react_query48 = require("@tanstack/react-query");
1826
+ var import_react_query46 = require("@tanstack/react-query");
1837
1827
  var useClusterNewsWithId = (id) => {
1838
- return (0, import_react_query48.useQuery)({
1828
+ return (0, import_react_query46.useQuery)({
1839
1829
  queryKey: [QueryNames.ClusterNewsWithId, id],
1840
- queryFn: () => __async(void 0, null, function* () {
1830
+ queryFn: () => __async(null, null, function* () {
1841
1831
  const data = yield import_api_proxy33.ClusterService.clusterGetClusterNewsById(id);
1842
1832
  return data;
1843
1833
  })
@@ -1845,19 +1835,19 @@ var useClusterNewsWithId = (id) => {
1845
1835
  };
1846
1836
 
1847
1837
  // src/hooks/useMapMenuItems.ts
1848
- var import_react_query49 = require("@tanstack/react-query");
1838
+ var import_react_query47 = require("@tanstack/react-query");
1849
1839
 
1850
1840
  // src/utils/CmsApi.ts
1851
1841
  var import_cms_proxy7 = require("@geowiki/cms-proxy");
1852
- var getGeoWikiSettings = () => __async(void 0, null, function* () {
1842
+ var getGeoWikiSettings = () => __async(null, null, function* () {
1853
1843
  const req = yield import_cms_proxy7.SettingsService.settingsGetSiteSettings("GeoWiki");
1854
1844
  return req;
1855
1845
  });
1856
- var getDefaultSettings = () => __async(void 0, null, function* () {
1846
+ var getDefaultSettings = () => __async(null, null, function* () {
1857
1847
  const req = yield import_cms_proxy7.SettingsService.settingsGetDefaultSiteSettings();
1858
1848
  return req;
1859
1849
  });
1860
- var getMenus = (displayName) => __async(void 0, null, function* () {
1850
+ var getMenus = (displayName) => __async(null, null, function* () {
1861
1851
  const req = yield getContentWithTypeAndDisplayName(
1862
1852
  "Menu",
1863
1853
  displayName
@@ -1865,7 +1855,7 @@ var getMenus = (displayName) => __async(void 0, null, function* () {
1865
1855
  const menus = req == null ? void 0 : req.items[0];
1866
1856
  return menus;
1867
1857
  });
1868
- var getPageContent = (displayName) => __async(void 0, null, function* () {
1858
+ var getPageContent = (displayName) => __async(null, null, function* () {
1869
1859
  const req = yield getContentWithTypeAndDisplayName(
1870
1860
  "Page",
1871
1861
  displayName
@@ -1873,27 +1863,27 @@ var getPageContent = (displayName) => __async(void 0, null, function* () {
1873
1863
  const page = req == null ? void 0 : req.items[0];
1874
1864
  return page;
1875
1865
  });
1876
- var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(void 0, null, function* () {
1866
+ var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(null, null, function* () {
1877
1867
  return import_cms_proxy7.QueryApiService.apiQueryGet(
1878
1868
  "GetContentByTypeAndDisplayText",
1879
1869
  `${JSON.stringify({ contenttype: contentType, displaytext: displayName })}`
1880
1870
  );
1881
1871
  });
1882
- var getContentWithSlug = (slug) => __async(void 0, null, function* () {
1872
+ var getContentWithSlug = (slug) => __async(null, null, function* () {
1883
1873
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1884
1874
  "GetDocumentBySlug",
1885
1875
  `${JSON.stringify({ path: slug })}`
1886
1876
  );
1887
1877
  return req == null ? void 0 : req.items[0];
1888
1878
  });
1889
- var getContentsWithType = (contentType) => __async(void 0, null, function* () {
1879
+ var getContentsWithType = (contentType) => __async(null, null, function* () {
1890
1880
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1891
1881
  "GetContentByType",
1892
1882
  `${JSON.stringify({ contenttype: contentType })}`
1893
1883
  );
1894
1884
  return req == null ? void 0 : req.items;
1895
1885
  });
1896
- var getPageProps = (ctx) => __async(void 0, null, function* () {
1886
+ var getPageProps = (ctx) => __async(null, null, function* () {
1897
1887
  var _a;
1898
1888
  var page = "index";
1899
1889
  const slugs = ctx.query.slug;
@@ -1909,9 +1899,9 @@ var getPageProps = (ctx) => __async(void 0, null, function* () {
1909
1899
 
1910
1900
  // src/hooks/useMapMenuItems.ts
1911
1901
  var useMapMenuItems = () => {
1912
- return (0, import_react_query49.useQuery)({
1902
+ return (0, import_react_query47.useQuery)({
1913
1903
  queryKey: [QueryNames.MapMenuItems],
1914
- queryFn: () => __async(void 0, null, function* () {
1904
+ queryFn: () => __async(null, null, function* () {
1915
1905
  const req = yield getContentsWithType("MapMenuItem");
1916
1906
  return req;
1917
1907
  })
@@ -1920,11 +1910,11 @@ var useMapMenuItems = () => {
1920
1910
 
1921
1911
  // src/hooks/useClusterLinks.ts
1922
1912
  var import_api_proxy34 = require("@geowiki/api-proxy");
1923
- var import_react_query50 = require("@tanstack/react-query");
1913
+ var import_react_query48 = require("@tanstack/react-query");
1924
1914
  var useClusterLinks = (id) => {
1925
- return (0, import_react_query50.useQuery)({
1915
+ return (0, import_react_query48.useQuery)({
1926
1916
  queryKey: [QueryNames.GetSocialLinks, id],
1927
- queryFn: () => __async(void 0, null, function* () {
1917
+ queryFn: () => __async(null, null, function* () {
1928
1918
  const data = yield import_api_proxy34.ClusterService.clusterGetLinksAndPartner(id);
1929
1919
  return data;
1930
1920
  })
@@ -1932,11 +1922,11 @@ var useClusterLinks = (id) => {
1932
1922
  };
1933
1923
 
1934
1924
  // src/hooks/useCmsContentWithType.ts
1935
- var import_react_query51 = require("@tanstack/react-query");
1925
+ var import_react_query49 = require("@tanstack/react-query");
1936
1926
  var useCmsContentWithType = (contentType) => {
1937
- return (0, import_react_query51.useQuery)({
1927
+ return (0, import_react_query49.useQuery)({
1938
1928
  queryKey: [QueryNames.GetCmsContentWithType],
1939
- queryFn: () => __async(void 0, null, function* () {
1929
+ queryFn: () => __async(null, null, function* () {
1940
1930
  const req = yield getContentsWithType(contentType);
1941
1931
  return req;
1942
1932
  })
@@ -1945,11 +1935,11 @@ var useCmsContentWithType = (contentType) => {
1945
1935
 
1946
1936
  // src/hooks/useClusterNews.ts
1947
1937
  var import_api_proxy35 = require("@geowiki/api-proxy");
1948
- var import_react_query52 = require("@tanstack/react-query");
1938
+ var import_react_query50 = require("@tanstack/react-query");
1949
1939
  var useClusterNews = (id, sort = "", skip = 0, take = 100) => {
1950
- return (0, import_react_query52.useQuery)({
1940
+ return (0, import_react_query50.useQuery)({
1951
1941
  queryKey: [QueryNames.ClusterNews, id, sort, skip, take],
1952
- queryFn: () => __async(void 0, null, function* () {
1942
+ queryFn: () => __async(null, null, function* () {
1953
1943
  const data = yield import_api_proxy35.ClusterService.clusterGetClusterNews(
1954
1944
  id,
1955
1945
  sort,
@@ -1963,11 +1953,11 @@ var useClusterNews = (id, sort = "", skip = 0, take = 100) => {
1963
1953
 
1964
1954
  // src/hooks/useClusterDescription.ts
1965
1955
  var import_api_proxy36 = require("@geowiki/api-proxy");
1966
- var import_react_query53 = require("@tanstack/react-query");
1956
+ var import_react_query51 = require("@tanstack/react-query");
1967
1957
  var useClusterDescription = (id) => {
1968
- return (0, import_react_query53.useQuery)({
1958
+ return (0, import_react_query51.useQuery)({
1969
1959
  queryKey: [QueryNames.GetClusterDescription, id],
1970
- queryFn: () => __async(void 0, null, function* () {
1960
+ queryFn: () => __async(null, null, function* () {
1971
1961
  const data = yield import_api_proxy36.ClusterService.clusterGetClusterDescription(id);
1972
1962
  return data;
1973
1963
  })
@@ -1976,11 +1966,11 @@ var useClusterDescription = (id) => {
1976
1966
 
1977
1967
  // src/hooks/useClusterDetails.ts
1978
1968
  var import_api_proxy37 = require("@geowiki/api-proxy");
1979
- var import_react_query54 = require("@tanstack/react-query");
1969
+ var import_react_query52 = require("@tanstack/react-query");
1980
1970
  var useClusterDetails = (id) => {
1981
- return (0, import_react_query54.useQuery)({
1971
+ return (0, import_react_query52.useQuery)({
1982
1972
  queryKey: [QueryNames.GetClusterDetails, id],
1983
- queryFn: () => __async(void 0, null, function* () {
1973
+ queryFn: () => __async(null, null, function* () {
1984
1974
  const data = yield import_api_proxy37.ClusterService.clusterGetClusterDetails(id);
1985
1975
  return data;
1986
1976
  })
@@ -1989,11 +1979,11 @@ var useClusterDetails = (id) => {
1989
1979
 
1990
1980
  // src/hooks/useClusterImagesAndVideos.ts
1991
1981
  var import_api_proxy38 = require("@geowiki/api-proxy");
1992
- var import_react_query55 = require("@tanstack/react-query");
1982
+ var import_react_query53 = require("@tanstack/react-query");
1993
1983
  var useClusterImagesAndVideos = (id) => {
1994
- return (0, import_react_query55.useQuery)({
1984
+ return (0, import_react_query53.useQuery)({
1995
1985
  queryKey: [QueryNames.GetImagesAndVideos, id],
1996
- queryFn: () => __async(void 0, null, function* () {
1986
+ queryFn: () => __async(null, null, function* () {
1997
1987
  const data = yield import_api_proxy38.ClusterService.clusterGetImagesAndVideos(id);
1998
1988
  return data;
1999
1989
  })
@@ -2001,8 +1991,8 @@ var useClusterImagesAndVideos = (id) => {
2001
1991
  };
2002
1992
 
2003
1993
  // src/hooks/useHost.ts
2004
- var import_react_query56 = require("@tanstack/react-query");
2005
- var getHost = () => __async(void 0, null, function* () {
1994
+ var import_react_query54 = require("@tanstack/react-query");
1995
+ var getHost = () => __async(null, null, function* () {
2006
1996
  const response = yield fetch("/api/host");
2007
1997
  if (!response.ok) {
2008
1998
  return Promise.reject(null);
@@ -2010,15 +2000,15 @@ var getHost = () => __async(void 0, null, function* () {
2010
2000
  return response.json();
2011
2001
  });
2012
2002
  function useHost() {
2013
- return (0, import_react_query56.useQuery)({
2003
+ return (0, import_react_query54.useQuery)({
2014
2004
  queryKey: [QueryNames.GetHost],
2015
2005
  queryFn: getHost
2016
2006
  });
2017
2007
  }
2018
2008
 
2019
2009
  // src/hooks/useHostManagement.ts
2020
- var import_react_query57 = require("@tanstack/react-query");
2021
- var createHost = (hostData) => __async(void 0, null, function* () {
2010
+ var import_react_query55 = require("@tanstack/react-query");
2011
+ var createHost = (hostData) => __async(null, null, function* () {
2022
2012
  const response = yield fetch("/api/hosts", {
2023
2013
  method: "POST",
2024
2014
  headers: {
@@ -2031,7 +2021,7 @@ var createHost = (hostData) => __async(void 0, null, function* () {
2031
2021
  }
2032
2022
  return response.json();
2033
2023
  });
2034
- var updateHost = (_a) => __async(void 0, null, function* () {
2024
+ var updateHost = (_a) => __async(null, null, function* () {
2035
2025
  var _b = _a, {
2036
2026
  host
2037
2027
  } = _b, hostData = __objRest(_b, [
@@ -2049,7 +2039,7 @@ var updateHost = (_a) => __async(void 0, null, function* () {
2049
2039
  }
2050
2040
  return response.json();
2051
2041
  });
2052
- var deleteHost = (host) => __async(void 0, null, function* () {
2042
+ var deleteHost = (host) => __async(null, null, function* () {
2053
2043
  const response = yield fetch(`/api/hosts/${host}`, {
2054
2044
  method: "DELETE"
2055
2045
  });
@@ -2058,8 +2048,8 @@ var deleteHost = (host) => __async(void 0, null, function* () {
2058
2048
  }
2059
2049
  });
2060
2050
  var useCreateHost = () => {
2061
- const queryClient = (0, import_react_query57.useQueryClient)();
2062
- return (0, import_react_query57.useMutation)({
2051
+ const queryClient = (0, import_react_query55.useQueryClient)();
2052
+ return (0, import_react_query55.useMutation)({
2063
2053
  mutationFn: createHost,
2064
2054
  onSuccess: () => {
2065
2055
  queryClient.invalidateQueries({ queryKey: [QueryNames.GetHosts] });
@@ -2067,8 +2057,8 @@ var useCreateHost = () => {
2067
2057
  });
2068
2058
  };
2069
2059
  var useUpdateHost = () => {
2070
- const queryClient = (0, import_react_query57.useQueryClient)();
2071
- return (0, import_react_query57.useMutation)({
2060
+ const queryClient = (0, import_react_query55.useQueryClient)();
2061
+ return (0, import_react_query55.useMutation)({
2072
2062
  mutationFn: updateHost,
2073
2063
  onSuccess: () => {
2074
2064
  queryClient.invalidateQueries({ queryKey: [QueryNames.GetHosts] });
@@ -2077,8 +2067,8 @@ var useUpdateHost = () => {
2077
2067
  });
2078
2068
  };
2079
2069
  var useDeleteHost = () => {
2080
- const queryClient = (0, import_react_query57.useQueryClient)();
2081
- return (0, import_react_query57.useMutation)({
2070
+ const queryClient = (0, import_react_query55.useQueryClient)();
2071
+ return (0, import_react_query55.useMutation)({
2082
2072
  mutationFn: deleteHost,
2083
2073
  onSuccess: () => {
2084
2074
  queryClient.invalidateQueries({ queryKey: [QueryNames.GetHosts] });
@@ -2095,7 +2085,8 @@ var HostType = /* @__PURE__ */ ((HostType2) => {
2095
2085
 
2096
2086
  // src/utils/ServerHostUtils.ts
2097
2087
  var getHostData = () => {
2098
- return process.env.NODE_ENV === "production" ? [
2088
+ const useProd = process.env.NODE_ENV === "production" || process.env.GEOWIKI_USE_PROD_HOSTS === "true";
2089
+ return useProd ? [
2099
2090
  {
2100
2091
  host: "v2.geo-wiki.org",
2101
2092
  cmsUrl: "https://cms.main.geo-wiki.org"
@@ -2213,21 +2204,21 @@ var getHostData = () => {
2213
2204
  cmsUrl: "https://cms.geowiki.iiasa.ac.at/canopyatlas",
2214
2205
  tenantId: "3a1481ec-90a1-47d0-c34d-70610f97a4e5",
2215
2206
  redirectUrl: "/",
2216
- protectedPaths: ["/map"]
2207
+ protectedPaths: ["/canopy-atlas"]
2217
2208
  },
2218
2209
  {
2219
2210
  host: "canopyatlas.nodes.iiasa.ac.at",
2220
2211
  cmsUrl: "https://cms.geowiki.iiasa.ac.at/canopyatlas",
2221
2212
  tenantId: "3a1481ec-90a1-47d0-c34d-70610f97a4e5",
2222
2213
  redirectUrl: "/",
2223
- protectedPaths: ["/map"]
2214
+ protectedPaths: ["/canopy-atlas"]
2224
2215
  },
2225
2216
  {
2226
2217
  host: "basf.nodes.iiasa.ac.at",
2227
2218
  cmsUrl: "https://cms.main.geo-wiki.org/basf",
2228
2219
  tenantId: "3a16570a-6c13-db58-25f7-1866c09412b7",
2229
2220
  redirectUrl: "/",
2230
- protectedPaths: ["/map"]
2221
+ protectedPaths: ["/canopy-atlas"]
2231
2222
  },
2232
2223
  {
2233
2224
  host: "evo.nodes.iiasa.ac.at",
@@ -2267,6 +2258,13 @@ var getHostData = () => {
2267
2258
  host: "geowiki.local:3000",
2268
2259
  cmsUrl: "https://cms.main.geo-wiki.org"
2269
2260
  },
2261
+ {
2262
+ host: "canopyatlas.local:3000",
2263
+ cmsUrl: "https://cms.geowiki.iiasa.ac.at/canopyatlas",
2264
+ tenantId: "3a1481ec-90a1-47d0-c34d-70610f97a4e5",
2265
+ redirectUrl: "/",
2266
+ protectedPaths: ["/canopy-atlas"]
2267
+ },
2270
2268
  {
2271
2269
  host: "recodo.local:3000",
2272
2270
  cmsUrl: "https://framework.cms.geo-wiki.org"
@@ -2276,6 +2274,12 @@ var getHostData = () => {
2276
2274
  cmsUrl: "https://cms.main.geo-wiki.org/evoland",
2277
2275
  tenantId: "3a0d5d86-5eac-0234-6d1c-eeecdd06739d",
2278
2276
  redirectUrl: "/evoland/projects"
2277
+ },
2278
+ {
2279
+ host: "mowingquest.local:3000",
2280
+ cmsUrl: "https://cms.geowiki.iiasa.ac.at/mowing-quest",
2281
+ tenantId: "3a21f27b-c772-3945-10bb-658707d3670c",
2282
+ redirectUrl: "/"
2279
2283
  }
2280
2284
  ];
2281
2285
  };
@@ -2340,8 +2344,7 @@ var HostService = class {
2340
2344
  * Utility: Check if a path is protected for a host
2341
2345
  */
2342
2346
  static isPathProtected(hostInfo, path) {
2343
- if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths))
2344
- return false;
2347
+ if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths)) return false;
2345
2348
  return hostInfo.protectedPaths.some(
2346
2349
  (protectedPath) => path.startsWith(protectedPath)
2347
2350
  );
@@ -2401,8 +2404,7 @@ var HostService = class {
2401
2404
  * Utility: Get host info for current window location (client-side only)
2402
2405
  */
2403
2406
  static getCurrentHostInfo(hosts) {
2404
- if (typeof window === "undefined")
2405
- return void 0;
2407
+ if (typeof window === "undefined") return void 0;
2406
2408
  return hosts.find((h) => h.host === window.location.host);
2407
2409
  }
2408
2410
  /**
@@ -2637,8 +2639,7 @@ var createI18n = () => {
2637
2639
  let current = "en";
2638
2640
  return {
2639
2641
  locale: (next) => {
2640
- if (next)
2641
- current = next;
2642
+ if (next) current = next;
2642
2643
  return current;
2643
2644
  },
2644
2645
  t: (key) => key
@@ -3296,7 +3297,7 @@ var trackMapEvent = {
3296
3297
 
3297
3298
  // src/auth/AuthContext.tsx
3298
3299
  var import_react7 = require("react");
3299
- var import_react_query58 = require("@tanstack/react-query");
3300
+ var import_react_query56 = require("@tanstack/react-query");
3300
3301
  var import_jsx_runtime = require("react/jsx-runtime");
3301
3302
  var SESSION_QUERY_KEY = ["geowiki-session"];
3302
3303
  var SessionContext = (0, import_react7.createContext)({
@@ -3324,8 +3325,8 @@ function SessionProvider({
3324
3325
  session: initialSession,
3325
3326
  onSessionChange
3326
3327
  }) {
3327
- const queryClient = (0, import_react_query58.useQueryClient)();
3328
- const { data, isLoading } = (0, import_react_query58.useQuery)({
3328
+ const queryClient = (0, import_react_query56.useQueryClient)();
3329
+ const { data, isLoading } = (0, import_react_query56.useQuery)({
3329
3330
  queryKey: SESSION_QUERY_KEY,
3330
3331
  queryFn: fetchSession,
3331
3332
  initialData: initialSession != null ? initialSession : void 0,
@@ -3378,14 +3379,11 @@ var import_react8 = require("react");
3378
3379
  var import_jsx_runtime2 = require("react/jsx-runtime");
3379
3380
  var isBrowser = () => typeof window !== "undefined";
3380
3381
  var queryToSearchParams = (query, target = new URLSearchParams()) => {
3381
- if (!query)
3382
- return target;
3382
+ if (!query) return target;
3383
3383
  for (const [key, value] of Object.entries(query)) {
3384
- if (value === void 0 || value === null)
3385
- continue;
3384
+ if (value === void 0 || value === null) continue;
3386
3385
  if (Array.isArray(value)) {
3387
- for (const v of value)
3388
- target.append(key, String(v));
3386
+ for (const v of value) target.append(key, String(v));
3389
3387
  } else {
3390
3388
  target.set(key, String(value));
3391
3389
  }
@@ -3393,8 +3391,7 @@ var queryToSearchParams = (query, target = new URLSearchParams()) => {
3393
3391
  return target;
3394
3392
  };
3395
3393
  var urlToHref = (url) => {
3396
- if (typeof url === "string")
3397
- return url;
3394
+ if (typeof url === "string") return url;
3398
3395
  const { pathname = "", query, hash } = url;
3399
3396
  const qs = queryToSearchParams(query).toString();
3400
3397
  return `${pathname}${qs ? `?${qs}` : ""}${hash ? `#${hash}` : ""}`;
@@ -3468,15 +3465,11 @@ var DefaultImage = function DefaultImage2(props) {
3468
3465
  ]);
3469
3466
  const resolvedSrc = typeof src === "string" ? src : src == null ? void 0 : src.src;
3470
3467
  const mergedStyle = (0, import_react8.useMemo)(() => {
3471
- if (!fill && !objectFit && !objectPosition && !style)
3472
- return void 0;
3468
+ if (!fill && !objectFit && !objectPosition && !style) return void 0;
3473
3469
  const out = __spreadValues({}, style);
3474
- if (fill)
3475
- Object.assign(out, { position: "absolute", inset: 0, width: "100%", height: "100%" });
3476
- if (objectFit)
3477
- out.objectFit = objectFit;
3478
- if (objectPosition)
3479
- out.objectPosition = objectPosition;
3470
+ if (fill) Object.assign(out, { position: "absolute", inset: 0, width: "100%", height: "100%" });
3471
+ if (objectFit) out.objectFit = objectFit;
3472
+ if (objectPosition) out.objectPosition = objectPosition;
3480
3473
  return out;
3481
3474
  }, [fill, objectFit, objectPosition, style]);
3482
3475
  return (
@@ -3503,20 +3496,14 @@ var DefaultScript = function DefaultScript2(props) {
3503
3496
  onLoadRef.current = onLoad;
3504
3497
  onErrorRef.current = onError;
3505
3498
  (0, import_react8.useEffect)(() => {
3506
- if (!src || !isBrowser())
3507
- return;
3499
+ if (!src || !isBrowser()) return;
3508
3500
  const el = document.createElement("script");
3509
3501
  el.src = src;
3510
- if (id)
3511
- el.id = id;
3512
- if (async)
3513
- el.async = true;
3514
- if (defer)
3515
- el.defer = true;
3516
- if (type)
3517
- el.type = type;
3518
- if (nonce)
3519
- el.nonce = nonce;
3502
+ if (id) el.id = id;
3503
+ if (async) el.async = true;
3504
+ if (defer) el.defer = true;
3505
+ if (type) el.type = type;
3506
+ if (nonce) el.nonce = nonce;
3520
3507
  el.onload = () => {
3521
3508
  var _a2;
3522
3509
  return (_a2 = onLoadRef.current) == null ? void 0 : _a2.call(onLoadRef);
@@ -3550,8 +3537,7 @@ var parseSearch = (search) => {
3550
3537
  var useLocation2 = () => {
3551
3538
  const [tick, setTick] = (0, import_react8.useState)(0);
3552
3539
  (0, import_react8.useEffect)(() => {
3553
- if (!isBrowser())
3554
- return;
3540
+ if (!isBrowser()) return;
3555
3541
  const handler = () => setTick((t) => t + 1);
3556
3542
  window.addEventListener("popstate", handler);
3557
3543
  return () => window.removeEventListener("popstate", handler);
@@ -3572,31 +3558,26 @@ var useLocation2 = () => {
3572
3558
  var useDefaultRouter = () => {
3573
3559
  const loc = useLocation2();
3574
3560
  const query = (0, import_react8.useMemo)(() => parseSearch(loc.search), [loc.search]);
3575
- const push = (0, import_react8.useCallback)((url) => __async(void 0, null, function* () {
3576
- if (!isBrowser())
3577
- return false;
3561
+ const push = (0, import_react8.useCallback)((url) => __async(null, null, function* () {
3562
+ if (!isBrowser()) return false;
3578
3563
  window.history.pushState({}, "", urlToHref(url));
3579
3564
  window.dispatchEvent(new PopStateEvent("popstate"));
3580
3565
  return true;
3581
3566
  }), []);
3582
- const replace = (0, import_react8.useCallback)((url) => __async(void 0, null, function* () {
3583
- if (!isBrowser())
3584
- return false;
3567
+ const replace = (0, import_react8.useCallback)((url) => __async(null, null, function* () {
3568
+ if (!isBrowser()) return false;
3585
3569
  window.history.replaceState({}, "", urlToHref(url));
3586
3570
  window.dispatchEvent(new PopStateEvent("popstate"));
3587
3571
  return true;
3588
3572
  }), []);
3589
3573
  const back = (0, import_react8.useCallback)(() => {
3590
- if (isBrowser())
3591
- window.history.back();
3574
+ if (isBrowser()) window.history.back();
3592
3575
  }, []);
3593
3576
  const forward = (0, import_react8.useCallback)(() => {
3594
- if (isBrowser())
3595
- window.history.forward();
3577
+ if (isBrowser()) window.history.forward();
3596
3578
  }, []);
3597
3579
  const reload = (0, import_react8.useCallback)(() => {
3598
- if (isBrowser())
3599
- window.location.reload();
3580
+ if (isBrowser()) window.location.reload();
3600
3581
  }, []);
3601
3582
  return (0, import_react8.useMemo)(
3602
3583
  () => ({
@@ -3649,7 +3630,7 @@ var useDefaultI18n = () => ({
3649
3630
  t: (key) => key
3650
3631
  });
3651
3632
  var defaultDynamic = (loader, options) => {
3652
- const Lazy = (0, import_react8.lazy)(() => __async(void 0, null, function* () {
3633
+ const Lazy = (0, import_react8.lazy)(() => __async(null, null, function* () {
3653
3634
  return unwrapDefault(yield loader());
3654
3635
  }));
3655
3636
  const Loading = options == null ? void 0 : options.loading;