@geowiki/core 0.16.9-dev.14 → 0.16.9-dev.16

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.
Files changed (3) hide show
  1. package/dist/index.js +124 -146
  2. package/dist/index.mjs +121 -143
  3. package/package.json +10 -10
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];
@@ -523,7 +523,7 @@ var import_evoland_api_proxy = require("@geowiki/evoland-api-proxy");
523
523
  var useEvolandWmsLayers = () => {
524
524
  return (0, import_react_query2.useQuery)({
525
525
  queryKey: [QueryNames.GetAvailableWmsLayers],
526
- queryFn: () => __async(void 0, null, function* () {
526
+ queryFn: () => __async(null, null, function* () {
527
527
  const data = yield import_evoland_api_proxy.ProjectService.getAvailableLayersAvailablelayersGet();
528
528
  return data;
529
529
  })
@@ -553,7 +553,7 @@ var import_api_proxy = require("@geowiki/api-proxy");
553
553
  var useAppConfig = () => {
554
554
  return (0, import_react_query3.useQuery)({
555
555
  queryKey: [QueryConstants.GetAppConfig],
556
- queryFn: () => __async(void 0, null, function* () {
556
+ queryFn: () => __async(null, null, function* () {
557
557
  const data = yield import_api_proxy.AbpApplicationConfigurationService.abpApplicationConfigurationGet();
558
558
  return data;
559
559
  }),
@@ -568,7 +568,7 @@ var import_react_query4 = require("@tanstack/react-query");
568
568
  var useAudience = () => {
569
569
  return (0, import_react_query4.useQuery)({
570
570
  queryKey: [QueryNames.GetAudience],
571
- queryFn: () => __async(void 0, null, function* () {
571
+ queryFn: () => __async(null, null, function* () {
572
572
  const data = yield import_api_proxy2.ResourceService.resourceGetAvailableAudience();
573
573
  return data;
574
574
  }),
@@ -584,7 +584,7 @@ var import_react_query5 = require("@tanstack/react-query");
584
584
  var useCluster = (id) => {
585
585
  return (0, import_react_query5.useQuery)({
586
586
  queryKey: [QueryNames.Cluster, id],
587
- queryFn: () => __async(void 0, null, function* () {
587
+ queryFn: () => __async(null, null, function* () {
588
588
  const data = yield import_api_proxy3.ClusterService.clusterGet(id);
589
589
  return data;
590
590
  })
@@ -597,7 +597,7 @@ var import_react_query6 = require("@tanstack/react-query");
597
597
  var useClusterFilterSettings = () => {
598
598
  return (0, import_react_query6.useQuery)({
599
599
  queryKey: [QueryNames.GetClusterFilterSettings],
600
- queryFn: () => __async(void 0, null, function* () {
600
+ queryFn: () => __async(null, null, function* () {
601
601
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("ClusterFilter");
602
602
  return req;
603
603
  })
@@ -606,7 +606,7 @@ var useClusterFilterSettings = () => {
606
606
  var useConfigSettings = () => {
607
607
  return (0, import_react_query6.useQuery)({
608
608
  queryKey: [QueryNames.GetConfig],
609
- queryFn: () => __async(void 0, null, function* () {
609
+ queryFn: () => __async(null, null, function* () {
610
610
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("Config");
611
611
  return req;
612
612
  })
@@ -619,7 +619,7 @@ var import_react_query7 = require("@tanstack/react-query");
619
619
  var useClusterMapInfo = () => {
620
620
  return (0, import_react_query7.useQuery)({
621
621
  queryKey: [QueryNames.GetClusterForMap],
622
- queryFn: () => __async(void 0, null, function* () {
622
+ queryFn: () => __async(null, null, function* () {
623
623
  const data = yield import_api_proxy4.ClusterService.clusterGetMapInfo();
624
624
  return data;
625
625
  })
@@ -632,7 +632,7 @@ var import_react_query8 = require("@tanstack/react-query");
632
632
  var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
633
633
  return (0, import_react_query8.useQuery)({
634
634
  queryKey: [QueryNames.Clusters, skip, take],
635
- queryFn: () => __async(void 0, null, function* () {
635
+ queryFn: () => __async(null, null, function* () {
636
636
  if (fetchAll) {
637
637
  const data = yield import_api_proxy5.ClusterService.clusterGetAllClusters(
638
638
  sort,
@@ -651,7 +651,7 @@ var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
651
651
  var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
652
652
  return (0, import_react_query8.useQuery)({
653
653
  queryKey: [QueryNames.GetFarmerClusterNews, sort, skip, take],
654
- queryFn: () => __async(void 0, null, function* () {
654
+ queryFn: () => __async(null, null, function* () {
655
655
  const data = yield import_api_proxy5.ClusterService.clusterGetAllNewsFromAllClusters(
656
656
  sort,
657
657
  skip,
@@ -664,7 +664,7 @@ var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
664
664
 
665
665
  // src/hooks/useHosts.ts
666
666
  var import_react_query9 = require("@tanstack/react-query");
667
- var getHosts = () => __async(void 0, null, function* () {
667
+ var getHosts = () => __async(null, null, function* () {
668
668
  const response = yield fetch("/api/hosts");
669
669
  if (!response.ok) {
670
670
  throw new Error("Failed to fetch hosts");
@@ -704,7 +704,7 @@ var import_api_proxy6 = require("@geowiki/api-proxy");
704
704
  var useCountries = (fetchAll = false) => {
705
705
  return (0, import_react_query10.useQuery)({
706
706
  queryKey: [QueryNames.GetCountries, fetchAll],
707
- queryFn: () => __async(void 0, null, function* () {
707
+ queryFn: () => __async(null, null, function* () {
708
708
  const data = yield import_api_proxy6.ClusterService.clusterGetCountries(fetchAll);
709
709
  data.sort((a, b) => {
710
710
  if (!a.country || !b.country) {
@@ -755,7 +755,7 @@ var useFileUrl = () => {
755
755
  var useFileUpload = (formData) => {
756
756
  return (0, import_react_query11.useQuery)({
757
757
  queryKey: [QueryNames.FileUpload, formData],
758
- queryFn: () => __async(void 0, null, function* () {
758
+ queryFn: () => __async(null, null, function* () {
759
759
  const data = yield import_api_proxy7.FileService.fileUpload(formData);
760
760
  return data;
761
761
  })
@@ -778,7 +778,7 @@ var useFilterClusters = (filter) => {
778
778
  filter.mainAgriculturalAreas,
779
779
  filter.sort
780
780
  ],
781
- queryFn: () => __async(void 0, null, function* () {
781
+ queryFn: () => __async(null, null, function* () {
782
782
  const data = yield import_api_proxy8.ClusterService.clusterFilter(filter);
783
783
  return data;
784
784
  })
@@ -791,7 +791,7 @@ var import_react_query13 = require("@tanstack/react-query");
791
791
  var useGeoWikiSettings = () => {
792
792
  return (0, import_react_query13.useQuery)({
793
793
  queryKey: [QueryNames.GetAppSettings],
794
- queryFn: () => __async(void 0, null, function* () {
794
+ queryFn: () => __async(null, null, function* () {
795
795
  var req = yield import_cms_proxy2.SettingsService.settingsGetSiteSettings("GeoWiki");
796
796
  return req;
797
797
  })
@@ -810,7 +810,7 @@ var import_react_query14 = require("@tanstack/react-query");
810
810
  var useIntroTourSettings = () => {
811
811
  return (0, import_react_query14.useQuery)({
812
812
  queryKey: [QueryNames.GetIntroTour],
813
- queryFn: () => __async(void 0, null, function* () {
813
+ queryFn: () => __async(null, null, function* () {
814
814
  var req = yield import_cms_proxy3.SettingsService.settingsGetSiteSettings("IntroTour");
815
815
  return req;
816
816
  })
@@ -847,7 +847,7 @@ var import_react_query15 = require("@tanstack/react-query");
847
847
  var useLanguages = () => {
848
848
  return (0, import_react_query15.useQuery)({
849
849
  queryKey: [QueryNames.GetLanguages],
850
- queryFn: () => __async(void 0, null, function* () {
850
+ queryFn: () => __async(null, null, function* () {
851
851
  const data = yield import_api_proxy9.ResourceService.resourceGetAvailableLanguages();
852
852
  return data;
853
853
  }),
@@ -862,7 +862,7 @@ var import_react_query16 = require("@tanstack/react-query");
862
862
  var useLayerInfo = (url, layerName) => {
863
863
  return (0, import_react_query16.useQuery)({
864
864
  queryKey: [QueryNames.GetUseLayerInfo, url, layerName],
865
- queryFn: () => __async(void 0, null, function* () {
865
+ queryFn: () => __async(null, null, function* () {
866
866
  var legendUrl = url + "?service=WMS&version=1.1.0&request=GetLegendGraphic&layer=" + layerName + "&format=application/json";
867
867
  var res = yield fetch(legendUrl);
868
868
  var data = yield res.json();
@@ -887,7 +887,7 @@ function useLocation() {
887
887
  var useLocationsForProject = (locationreq) => {
888
888
  return (0, import_react_query17.useQuery)({
889
889
  queryKey: [QueryConstants.GetLocations, locationreq],
890
- queryFn: () => __async(void 0, null, function* () {
890
+ queryFn: () => __async(null, null, function* () {
891
891
  return import_evoland_api_proxy2.ProjectService.searchLocationsLocationsPost(locationreq);
892
892
  })
893
893
  });
@@ -895,7 +895,7 @@ var useLocationsForProject = (locationreq) => {
895
895
  var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
896
896
  return (0, import_react_query17.useQuery)({
897
897
  queryKey: [QueryConstants.UploadLocations, uploadLocations, file, group_id],
898
- queryFn: () => __async(void 0, null, function* () {
898
+ queryFn: () => __async(null, null, function* () {
899
899
  try {
900
900
  const res = yield import_evoland_api_proxy2.LocationService.bulkUploadLocationsUploadlocationsPost({ file, project_id, group_id });
901
901
  return res;
@@ -909,7 +909,7 @@ var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
909
909
  var useTaskBulkUpload = (uploadTasks, file, project_id) => {
910
910
  return (0, import_react_query17.useQuery)({
911
911
  queryKey: [QueryConstants.UploadTasks, uploadTasks, file],
912
- queryFn: () => __async(void 0, null, function* () {
912
+ queryFn: () => __async(null, null, function* () {
913
913
  try {
914
914
  return import_evoland_api_proxy2.LocationService.uploadLocationTaskUploadlocationtaskPost({ file, project_id });
915
915
  } catch (error) {
@@ -922,7 +922,7 @@ var useTaskBulkUpload = (uploadTasks, file, project_id) => {
922
922
  var useReviewTaskBulkUpload = (uploadReviewTasks, file, project_id) => {
923
923
  return (0, import_react_query17.useQuery)({
924
924
  queryKey: [QueryConstants.UploadReviewTasks, uploadReviewTasks, file],
925
- queryFn: () => __async(void 0, null, function* () {
925
+ queryFn: () => __async(null, null, function* () {
926
926
  try {
927
927
  return import_evoland_api_proxy2.LocationService.bulkUploadReviewTasksUploadreviewtasksPost({ file, project_id });
928
928
  } catch (error) {
@@ -955,7 +955,7 @@ var import_api_proxy10 = require("@geowiki/api-proxy");
955
955
  var useNews = (lang = "all", skip = 0, take = 100) => {
956
956
  return (0, import_react_query19.useQuery)({
957
957
  queryKey: [QueryNames.GetNews, lang, skip, take],
958
- queryFn: () => __async(void 0, null, function* () {
958
+ queryFn: () => __async(null, null, function* () {
959
959
  if (lang == "all") {
960
960
  const res2 = yield import_api_proxy10.NewsService.newsGetExternalNews("", skip, take);
961
961
  return res2.items;
@@ -1036,7 +1036,7 @@ var import_react_query20 = require("@tanstack/react-query");
1036
1036
  var usePublicationSettings = () => {
1037
1037
  return (0, import_react_query20.useQuery)({
1038
1038
  queryKey: [QueryNames.GetPublicationSettings],
1039
- queryFn: () => __async(void 0, null, function* () {
1039
+ queryFn: () => __async(null, null, function* () {
1040
1040
  var req = yield import_cms_proxy5.SettingsService.settingsGetSiteSettings("Publication");
1041
1041
  return req;
1042
1042
  })
@@ -1049,7 +1049,7 @@ var import_react_query21 = require("@tanstack/react-query");
1049
1049
  var useResource = (search = "", sort = "", skip = 0, take = 100) => {
1050
1050
  return (0, import_react_query21.useQuery)({
1051
1051
  queryKey: [QueryNames.GetResource, search, sort, skip, take],
1052
- queryFn: () => __async(void 0, null, function* () {
1052
+ queryFn: () => __async(null, null, function* () {
1053
1053
  if (search !== "") {
1054
1054
  const data2 = yield import_api_proxy11.ResourceService.resourceSearch(search);
1055
1055
  return data2;
@@ -1081,7 +1081,7 @@ var useResourceFilter = (filter) => {
1081
1081
  filter.sorting,
1082
1082
  filter.isFramework
1083
1083
  ],
1084
- queryFn: () => __async(void 0, null, function* () {
1084
+ queryFn: () => __async(null, null, function* () {
1085
1085
  const data = yield import_api_proxy12.ResourceService.resourceFilter(filter);
1086
1086
  return data;
1087
1087
  })
@@ -1094,7 +1094,7 @@ var import_react_query23 = require("@tanstack/react-query");
1094
1094
  var useResourceType = () => {
1095
1095
  return (0, import_react_query23.useQuery)({
1096
1096
  queryKey: [QueryNames.GetResourceType],
1097
- queryFn: () => __async(void 0, null, function* () {
1097
+ queryFn: () => __async(null, null, function* () {
1098
1098
  var data = yield import_api_proxy13.ResourceService.resourceGetAvailableResourceType();
1099
1099
  return data;
1100
1100
  })
@@ -1107,7 +1107,7 @@ var import_react_query24 = require("@tanstack/react-query");
1107
1107
  var useTopic = () => {
1108
1108
  return (0, import_react_query24.useQuery)({
1109
1109
  queryKey: [QueryNames.GetTopic],
1110
- queryFn: () => __async(void 0, null, function* () {
1110
+ queryFn: () => __async(null, null, function* () {
1111
1111
  var data = yield import_api_proxy14.ResourceService.resourceGetAvailableTopic();
1112
1112
  return data;
1113
1113
  }),
@@ -1123,7 +1123,7 @@ var import_api_proxy15 = require("@geowiki/api-proxy");
1123
1123
  var useUserProfileGet = () => {
1124
1124
  return (0, import_react_query25.useQuery)({
1125
1125
  queryKey: [QueryNames.GetUserProfile],
1126
- queryFn: () => __async(void 0, null, function* () {
1126
+ queryFn: () => __async(null, null, function* () {
1127
1127
  var data = yield import_api_proxy15.ProfileService.profileGet();
1128
1128
  return data;
1129
1129
  })
@@ -1136,7 +1136,7 @@ var import_api_proxy16 = require("@geowiki/api-proxy");
1136
1136
  var useUsers = (pageIndex, pageSize, filter, sorting) => {
1137
1137
  return (0, import_react_query26.useQuery)({
1138
1138
  queryKey: [QueryConstants.GetUsers, pageIndex, pageSize, filter, sorting],
1139
- queryFn: () => __async(void 0, null, function* () {
1139
+ queryFn: () => __async(null, null, function* () {
1140
1140
  let skip = 0;
1141
1141
  if (pageIndex > 0) {
1142
1142
  skip = pageIndex * pageSize;
@@ -1156,7 +1156,7 @@ var useUsers = (pageIndex, pageSize, filter, sorting) => {
1156
1156
  var import_react5 = __toESM(require("react"));
1157
1157
  function useRenderInfo(name = "Unknown") {
1158
1158
  const count = import_react5.default.useRef(0);
1159
- const lastRender = import_react5.default.useRef();
1159
+ const lastRender = import_react5.default.useRef(void 0);
1160
1160
  const now = Date.now();
1161
1161
  count.current++;
1162
1162
  import_react5.default.useEffect(() => {
@@ -1180,7 +1180,7 @@ var import_react_query27 = require("@tanstack/react-query");
1180
1180
  var useDefaultSettings = () => {
1181
1181
  return (0, import_react_query27.useQuery)({
1182
1182
  queryKey: [QueryNames.DefaultSettings],
1183
- queryFn: () => __async(void 0, null, function* () {
1183
+ queryFn: () => __async(null, null, function* () {
1184
1184
  const req = yield import_cms_proxy6.SettingsService.settingsGetDefaultSiteSettings();
1185
1185
  return req;
1186
1186
  })
@@ -1199,7 +1199,7 @@ var import_react_query28 = require("@tanstack/react-query");
1199
1199
  var useEmailing = () => {
1200
1200
  return (0, import_react_query28.useQuery)({
1201
1201
  queryKey: [QueryConstants.GetEmailing],
1202
- queryFn: () => __async(void 0, null, function* () {
1202
+ queryFn: () => __async(null, null, function* () {
1203
1203
  const data = yield import_api_proxy17.EmailSettingsService.emailSettingsGet();
1204
1204
  return data;
1205
1205
  })
@@ -1229,7 +1229,7 @@ var import_react_query29 = require("@tanstack/react-query");
1229
1229
  var useFeatures = (providerName, providerKey) => {
1230
1230
  return (0, import_react_query29.useQuery)({
1231
1231
  queryKey: [QueryConstants.GetFeatures, providerName, providerKey],
1232
- queryFn: () => __async(void 0, null, function* () {
1232
+ queryFn: () => __async(null, null, function* () {
1233
1233
  const data = yield import_api_proxy18.FeaturesService.featuresGet(providerName, providerKey);
1234
1234
  return data;
1235
1235
  })
@@ -1242,7 +1242,7 @@ var import_api_proxy19 = require("@geowiki/api-proxy");
1242
1242
  var useAssignableRoles = () => {
1243
1243
  return (0, import_react_query30.useQuery)({
1244
1244
  queryKey: [QueryConstants.GetAssignableRoles],
1245
- queryFn: () => __async(void 0, null, function* () {
1245
+ queryFn: () => __async(null, null, function* () {
1246
1246
  const data = yield import_api_proxy19.UserService.userGetAssignableRoles();
1247
1247
  return data;
1248
1248
  })
@@ -1255,7 +1255,7 @@ var import_react_query31 = require("@tanstack/react-query");
1255
1255
  var useUserRoles = ({ userId }) => {
1256
1256
  return (0, import_react_query31.useQuery)({
1257
1257
  queryKey: [QueryConstants.GetUserRoles, userId],
1258
- queryFn: () => __async(void 0, null, function* () {
1258
+ queryFn: () => __async(null, null, function* () {
1259
1259
  const data = yield import_api_proxy20.UserService.userGetRoles(userId);
1260
1260
  return data;
1261
1261
  })
@@ -1268,7 +1268,7 @@ var import_react_query32 = require("@tanstack/react-query");
1268
1268
  var usePermissions = (providerName, providerKey) => {
1269
1269
  return (0, import_react_query32.useQuery)({
1270
1270
  queryKey: [QueryConstants.GetPermissions, providerName, providerKey],
1271
- queryFn: () => __async(void 0, null, function* () {
1271
+ queryFn: () => __async(null, null, function* () {
1272
1272
  const data = yield import_api_proxy21.PermissionsService.permissionsGet(
1273
1273
  providerName,
1274
1274
  providerKey
@@ -1284,7 +1284,7 @@ var import_api_proxy22 = require("@geowiki/api-proxy");
1284
1284
  var useRoles = (pageIndex, pageSize, filter, sorting) => {
1285
1285
  return (0, import_react_query33.useQuery)({
1286
1286
  queryKey: [QueryConstants.GetRoles, pageIndex, pageSize, filter, sorting],
1287
- queryFn: () => __async(void 0, null, function* () {
1287
+ queryFn: () => __async(null, null, function* () {
1288
1288
  let skip = 0;
1289
1289
  if (pageIndex > 0) {
1290
1290
  skip = pageIndex * pageSize;
@@ -1306,7 +1306,7 @@ var import_react_query34 = require("@tanstack/react-query");
1306
1306
  var useProfile = () => {
1307
1307
  return (0, import_react_query34.useQuery)({
1308
1308
  queryKey: [QueryConstants.GetProfile],
1309
- queryFn: () => __async(void 0, null, function* () {
1309
+ queryFn: () => __async(null, null, function* () {
1310
1310
  const data = yield import_api_proxy23.ProfileService.profileGet();
1311
1311
  return data;
1312
1312
  })
@@ -1319,7 +1319,7 @@ var import_api_proxy24 = require("@geowiki/api-proxy");
1319
1319
  var useTenants = (pageIndex, pageSize, filter, sorting) => {
1320
1320
  return (0, import_react_query35.useQuery)({
1321
1321
  queryKey: [QueryConstants.GetTenants, pageIndex, pageSize, filter, sorting],
1322
- queryFn: () => __async(void 0, null, function* () {
1322
+ queryFn: () => __async(null, null, function* () {
1323
1323
  let skip = 0;
1324
1324
  if (pageIndex > 0) {
1325
1325
  skip = pageIndex * pageSize;
@@ -1341,7 +1341,7 @@ var import_evoland_api_proxy3 = require("@geowiki/evoland-api-proxy");
1341
1341
  var useEvolandLabels = (projectId) => {
1342
1342
  return (0, import_react_query36.useQuery)({
1343
1343
  queryKey: [QueryNames.GetEvolandLabels, projectId],
1344
- queryFn: () => __async(void 0, null, function* () {
1344
+ queryFn: () => __async(null, null, function* () {
1345
1345
  const data = yield import_evoland_api_proxy3.ProjectService.getLabelsLabelsProjectIdProjectIdGet(projectId);
1346
1346
  return data;
1347
1347
  })
@@ -1355,7 +1355,7 @@ var useLookUp = (ServiceName, params, LookUpsClusterCountries, LookUpsClusterAct
1355
1355
  let result;
1356
1356
  return (0, import_react_query37.useQuery)({
1357
1357
  queryKey: [QueryNames.GetLookUp, ServiceName, params],
1358
- queryFn: () => __async(void 0, null, function* () {
1358
+ queryFn: () => __async(null, null, function* () {
1359
1359
  switch (ServiceName) {
1360
1360
  case LookUpsClusterCountries: {
1361
1361
  result = yield import_api_proxy25.ClusterService.clusterGetCountries(params);
@@ -1389,7 +1389,7 @@ var import_evoland_api_proxy4 = require("@geowiki/evoland-api-proxy");
1389
1389
  var useProjects = (fetch2, start = 0, amount = 9) => {
1390
1390
  return (0, import_react_query38.useQuery)({
1391
1391
  queryKey: [QueryConstants.GetProjects, fetch2, start, amount],
1392
- queryFn: () => __async(void 0, null, function* () {
1392
+ queryFn: () => __async(null, null, function* () {
1393
1393
  if (fetch2)
1394
1394
  return import_evoland_api_proxy4.ProjectService.listProjectsListprojectsStartidxStartidxAmountAmountGet(
1395
1395
  start,
@@ -1401,7 +1401,7 @@ var useProjects = (fetch2, start = 0, amount = 9) => {
1401
1401
  var useProjectDetails = (projectId, update) => {
1402
1402
  return (0, import_react_query38.useQuery)({
1403
1403
  queryKey: [QueryConstants.GetProjectDetails, projectId, update],
1404
- queryFn: () => __async(void 0, null, function* () {
1404
+ queryFn: () => __async(null, null, function* () {
1405
1405
  return import_evoland_api_proxy4.ProjectService.projectInfoProjectinfoProjectIdProjectIdGet(
1406
1406
  projectId
1407
1407
  );
@@ -1411,7 +1411,7 @@ var useProjectDetails = (projectId, update) => {
1411
1411
  var useTasksPerLocation = (data) => {
1412
1412
  return (0, import_react_query38.useQuery)({
1413
1413
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1414
- queryFn: () => __async(void 0, null, function* () {
1414
+ queryFn: () => __async(null, null, function* () {
1415
1415
  return import_evoland_api_proxy4.ProjectService.getTasksTasksGet(
1416
1416
  data.locationProjectId,
1417
1417
  data.taskForReview,
@@ -1439,7 +1439,7 @@ var useTasksPerLocation = (data) => {
1439
1439
  var useRandomTasksPerLocation = (data) => {
1440
1440
  return (0, import_react_query38.useQuery)({
1441
1441
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1442
- queryFn: () => __async(void 0, null, function* () {
1442
+ queryFn: () => __async(null, null, function* () {
1443
1443
  return import_evoland_api_proxy4.ProjectService.getRandomTaskRandomtaskGet(
1444
1444
  data.locationProjectId,
1445
1445
  data.taskForReview,
@@ -1466,7 +1466,7 @@ var useRandomTasksPerLocation = (data) => {
1466
1466
  var useTaskComments = (taskIds) => {
1467
1467
  return (0, import_react_query38.useQuery)({
1468
1468
  queryKey: [QueryConstants.GetTaskComment, taskIds],
1469
- queryFn: () => __async(void 0, null, function* () {
1469
+ queryFn: () => __async(null, null, function* () {
1470
1470
  return import_evoland_api_proxy4.TaskService.taskLatestComomentsTasklatestcommentPost({
1471
1471
  task_ids: taskIds
1472
1472
  });
@@ -1476,7 +1476,7 @@ var useTaskComments = (taskIds) => {
1476
1476
  var useGroupsInProject = (projectId, updateGroup) => {
1477
1477
  return (0, import_react_query38.useQuery)({
1478
1478
  queryKey: [QueryConstants.GetGroupsInProject, projectId, updateGroup],
1479
- queryFn: () => __async(void 0, null, function* () {
1479
+ queryFn: () => __async(null, null, function* () {
1480
1480
  return import_evoland_api_proxy4.ProjectService.getProjectGroupsProjectgroupsProjectIdProjectIdGet(
1481
1481
  projectId
1482
1482
  );
@@ -1486,7 +1486,7 @@ var useGroupsInProject = (projectId, updateGroup) => {
1486
1486
  var useProjectUsers = (projectId) => {
1487
1487
  return (0, import_react_query38.useQuery)({
1488
1488
  queryKey: [QueryConstants.GetProjectUsers, projectId],
1489
- queryFn: () => __async(void 0, null, function* () {
1489
+ queryFn: () => __async(null, null, function* () {
1490
1490
  return import_evoland_api_proxy4.ProjectService.projectAllUsersProjectusersProjectIdProjectIdGet(
1491
1491
  projectId
1492
1492
  );
@@ -1496,7 +1496,7 @@ var useProjectUsers = (projectId) => {
1496
1496
  var useTaskStatusList = () => {
1497
1497
  return (0, import_react_query38.useQuery)({
1498
1498
  queryKey: [QueryConstants.GetTaskStatusList],
1499
- queryFn: () => __async(void 0, null, function* () {
1499
+ queryFn: () => __async(null, null, function* () {
1500
1500
  return import_evoland_api_proxy4.TaskService.getTaskStatusesTaskstatusesGet();
1501
1501
  })
1502
1502
  });
@@ -1509,7 +1509,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1509
1509
  groupId,
1510
1510
  update
1511
1511
  ],
1512
- queryFn: () => __async(void 0, null, function* () {
1512
+ queryFn: () => __async(null, null, function* () {
1513
1513
  if (update)
1514
1514
  return import_evoland_api_proxy4.ProjectService.selectProjectGroupProjectselectgroupPost({
1515
1515
  project_id: projectId,
@@ -1521,7 +1521,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1521
1521
  var useTaskAnnotation = (taskId) => {
1522
1522
  return (0, import_react_query38.useQuery)({
1523
1523
  queryKey: [QueryConstants.GetTaskAnnotation, taskId],
1524
- queryFn: () => __async(void 0, null, function* () {
1524
+ queryFn: () => __async(null, null, function* () {
1525
1525
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1526
1526
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetTaskannotationTaskIdTaskIdGet(
1527
1527
  taskId
@@ -1532,7 +1532,7 @@ var useTaskAnnotation = (taskId) => {
1532
1532
  var useTaskMultipleAnnotations = (taskId) => {
1533
1533
  return (0, import_react_query38.useQuery)({
1534
1534
  queryKey: [QueryConstants.GetTaskMultipleAnnotations, taskId],
1535
- queryFn: () => __async(void 0, null, function* () {
1535
+ queryFn: () => __async(null, null, function* () {
1536
1536
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1537
1537
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetsTaskannotationsTaskIdTaskIdGet(
1538
1538
  taskId
@@ -1543,7 +1543,7 @@ var useTaskMultipleAnnotations = (taskId) => {
1543
1543
  var useTaskSavedAnnotations = (taskId) => {
1544
1544
  return (0, import_react_query38.useQuery)({
1545
1545
  queryKey: [QueryConstants.GetTaskSavedAnnotations, taskId],
1546
- queryFn: () => __async(void 0, null, function* () {
1546
+ queryFn: () => __async(null, null, function* () {
1547
1547
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1548
1548
  return import_evoland_api_proxy4.TaskService.getSavedAnnotationGetsavedannotationTaskIdTaskIdGet(
1549
1549
  taskId
@@ -1554,7 +1554,7 @@ var useTaskSavedAnnotations = (taskId) => {
1554
1554
  var useTaskDelete = (taskId, projectId, deleteTask) => {
1555
1555
  return (0, import_react_query38.useQuery)({
1556
1556
  queryKey: [QueryConstants.DeleteTask, taskId, projectId, deleteTask],
1557
- queryFn: () => __async(void 0, null, function* () {
1557
+ queryFn: () => __async(null, null, function* () {
1558
1558
  if (taskId !== null && taskId !== void 0 && taskId !== 0 && deleteTask === true)
1559
1559
  return import_evoland_api_proxy4.TaskService.deleteTaskDeletetaskPost({
1560
1560
  project_id: projectId,
@@ -1572,7 +1572,7 @@ var useProjectStatisticsByUser = (projectId, startDate, endDate, filterUserId) =
1572
1572
  endDate,
1573
1573
  filterUserId
1574
1574
  ],
1575
- queryFn: () => __async(void 0, null, function* () {
1575
+ queryFn: () => __async(null, null, function* () {
1576
1576
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1577
1577
  projectId,
1578
1578
  endDate,
@@ -1591,7 +1591,7 @@ var useContractStatisticsByUser = (projectId, startDate, endDate, filterUserId)
1591
1591
  endDate,
1592
1592
  filterUserId
1593
1593
  ],
1594
- queryFn: () => __async(void 0, null, function* () {
1594
+ queryFn: () => __async(null, null, function* () {
1595
1595
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1596
1596
  projectId,
1597
1597
  endDate,
@@ -1610,7 +1610,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1610
1610
  projectId,
1611
1611
  referenceDate
1612
1612
  ],
1613
- queryFn: () => __async(void 0, null, function* () {
1613
+ queryFn: () => __async(null, null, function* () {
1614
1614
  return import_evoland_api_proxy4.ProjectService.locationLatestTaskLocationtaskLocationIdLocationIdProjectIdProjectIdReferenceDateReferenceDateGet(
1615
1615
  locationId,
1616
1616
  projectId,
@@ -1622,7 +1622,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1622
1622
  var useAssignProjectToUser = (userRoleRequest, update) => {
1623
1623
  return (0, import_react_query38.useQuery)({
1624
1624
  queryKey: [QueryConstants.GetProjectDetails, userRoleRequest, update],
1625
- queryFn: () => __async(void 0, null, function* () {
1625
+ queryFn: () => __async(null, null, function* () {
1626
1626
  if (update)
1627
1627
  return import_evoland_api_proxy4.ProjectService.setUserRoleSetuserrolePost(userRoleRequest);
1628
1628
  }),
@@ -1632,7 +1632,7 @@ var useAssignProjectToUser = (userRoleRequest, update) => {
1632
1632
  var useGetUserProject = (user_id, fetchData) => {
1633
1633
  return (0, import_react_query38.useQuery)({
1634
1634
  queryKey: [QueryConstants.GetUserProject, user_id, fetchData],
1635
- queryFn: () => __async(void 0, null, function* () {
1635
+ queryFn: () => __async(null, null, function* () {
1636
1636
  if (fetchData)
1637
1637
  return import_evoland_api_proxy4.ProjectService.getUserRoleProjectGetuserroleprojectUserIdUserIdGet(
1638
1638
  user_id
@@ -1643,7 +1643,7 @@ var useGetUserProject = (user_id, fetchData) => {
1643
1643
  var useUpdateUserDetail = (userDetailRequest, update) => {
1644
1644
  return (0, import_react_query38.useQuery)({
1645
1645
  queryKey: [QueryConstants.SetUserDetail, userDetailRequest, update],
1646
- queryFn: () => __async(void 0, null, function* () {
1646
+ queryFn: () => __async(null, null, function* () {
1647
1647
  if (update)
1648
1648
  return import_evoland_api_proxy4.ProjectService.setUserDetailSetuserdetailPost(userDetailRequest);
1649
1649
  })
@@ -1657,7 +1657,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1657
1657
  download,
1658
1658
  userRole
1659
1659
  ],
1660
- queryFn: () => __async(void 0, null, function* () {
1660
+ queryFn: () => __async(null, null, function* () {
1661
1661
  if (userRole == "admin" && download)
1662
1662
  return import_evoland_api_proxy4.ProjectService.getLocationsSummaryLocationssummaryProjectIdProjectIdGet(
1663
1663
  projectId
@@ -1668,7 +1668,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1668
1668
  var useQuestionnaire = (projectId) => {
1669
1669
  return (0, import_react_query38.useQuery)({
1670
1670
  queryKey: [QueryConstants.GetQuestionnaireForProject, projectId],
1671
- queryFn: () => __async(void 0, null, function* () {
1671
+ queryFn: () => __async(null, null, function* () {
1672
1672
  return import_evoland_api_proxy4.QuestionService.getProjectQuestionsAnswersQuestionsAnswersProjectIdProjectIdGet(
1673
1673
  projectId
1674
1674
  );
@@ -1678,7 +1678,7 @@ var useQuestionnaire = (projectId) => {
1678
1678
  var useTaskAnswers = (taskId) => {
1679
1679
  return (0, import_react_query38.useQuery)({
1680
1680
  queryKey: [QueryConstants.GetTaskAnswers, taskId],
1681
- queryFn: () => __async(void 0, null, function* () {
1681
+ queryFn: () => __async(null, null, function* () {
1682
1682
  return import_evoland_api_proxy4.TaskService.getTaskAnswersTaskanswersTaskIdTaskIdGet(taskId);
1683
1683
  })
1684
1684
  });
@@ -1686,7 +1686,7 @@ var useTaskAnswers = (taskId) => {
1686
1686
  var useProjectResultSet = (download, projectId, is_geo_json) => {
1687
1687
  return (0, import_react_query38.useQuery)({
1688
1688
  queryKey: [QueryConstants.GetProjectResultSet, download, projectId, is_geo_json],
1689
- queryFn: () => __async(void 0, null, function* () {
1689
+ queryFn: () => __async(null, null, function* () {
1690
1690
  return import_evoland_api_proxy4.ProjectService.projectResultSetProjectresultsetProjectIdProjectIdIsGeoJsonIsGeoJsonGet(projectId, is_geo_json);
1691
1691
  }),
1692
1692
  enabled: !!download && !!projectId
@@ -1698,7 +1698,7 @@ var import_react_query39 = require("@tanstack/react-query");
1698
1698
  var useApiImage = (imageId) => {
1699
1699
  return (0, import_react_query39.useQuery)({
1700
1700
  queryKey: [QueryConstants.GetApiImage, imageId],
1701
- queryFn: () => __async(void 0, null, function* () {
1701
+ queryFn: () => __async(null, null, function* () {
1702
1702
  const res = yield fetch(`/api/api-image/${imageId}`);
1703
1703
  const data = yield res.json();
1704
1704
  return data.fileUrl;
@@ -1711,7 +1711,7 @@ var import_react_query40 = require("@tanstack/react-query");
1711
1711
  var useCmsImage = (imageId) => {
1712
1712
  return (0, import_react_query40.useQuery)({
1713
1713
  queryKey: [QueryConstants.GetCmsImage, imageId],
1714
- queryFn: () => __async(void 0, null, function* () {
1714
+ queryFn: () => __async(null, null, function* () {
1715
1715
  const res = yield fetch(`/api/cms-image/${imageId}`);
1716
1716
  const data = yield res.json();
1717
1717
  return data.fileUrl;
@@ -1725,7 +1725,7 @@ var import_react_query41 = require("@tanstack/react-query");
1725
1725
  var useClusterGetJoinRequests = (clusterId) => {
1726
1726
  return (0, import_react_query41.useQuery)({
1727
1727
  queryKey: [QueryNames.JoinRequests, clusterId],
1728
- queryFn: () => __async(void 0, null, function* () {
1728
+ queryFn: () => __async(null, null, function* () {
1729
1729
  const data = yield import_api_proxy26.ClusterService.clusterGetJoinRequests(clusterId);
1730
1730
  return data;
1731
1731
  })
@@ -1738,7 +1738,7 @@ var import_react_query42 = require("@tanstack/react-query");
1738
1738
  var useClusterGetNews = (clusterId, newsId) => {
1739
1739
  return (0, import_react_query42.useQuery)({
1740
1740
  queryKey: [QueryNames.ClusterGetNews, clusterId, newsId],
1741
- queryFn: () => __async(void 0, null, function* () {
1741
+ queryFn: () => __async(null, null, function* () {
1742
1742
  const data = yield import_api_proxy27.ClusterService.clusterGetNews(clusterId, newsId);
1743
1743
  return data;
1744
1744
  })
@@ -1751,7 +1751,7 @@ var import_react_query43 = require("@tanstack/react-query");
1751
1751
  var useClusterGetNewsNextPreviousStatus = (clusterId, newsId) => {
1752
1752
  return (0, import_react_query43.useQuery)({
1753
1753
  queryKey: [QueryNames.ClusterNewsNextPrevious, clusterId, newsId],
1754
- queryFn: () => __async(void 0, null, function* () {
1754
+ queryFn: () => __async(null, null, function* () {
1755
1755
  const data = yield import_api_proxy28.ClusterService.clusterGetNewsNextPreviousStatus(
1756
1756
  clusterId,
1757
1757
  newsId
@@ -1767,7 +1767,7 @@ var import_react_query44 = require("@tanstack/react-query");
1767
1767
  var useClusterImages = (id) => {
1768
1768
  return (0, import_react_query44.useQuery)({
1769
1769
  queryKey: [QueryNames.ClusterImages, id],
1770
- queryFn: () => __async(void 0, null, function* () {
1770
+ queryFn: () => __async(null, null, function* () {
1771
1771
  const data = yield import_api_proxy29.ClusterService.clusterGetClusterImages(id);
1772
1772
  return data;
1773
1773
  })
@@ -1780,7 +1780,7 @@ var import_react_query45 = require("@tanstack/react-query");
1780
1780
  var useClusterOverview = (id) => {
1781
1781
  return (0, import_react_query45.useQuery)({
1782
1782
  queryKey: [QueryNames.GetClusterOverview, id],
1783
- queryFn: () => __async(void 0, null, function* () {
1783
+ queryFn: () => __async(null, null, function* () {
1784
1784
  const data = yield import_api_proxy30.ClusterService.clusterGetClusterOverview(id);
1785
1785
  return data;
1786
1786
  })
@@ -1801,7 +1801,7 @@ var useClusterAllNews = (id, refresh, sorting, skipCount, maxResultCount, status
1801
1801
  refresh,
1802
1802
  status
1803
1803
  ],
1804
- queryFn: () => __async(void 0, null, function* () {
1804
+ queryFn: () => __async(null, null, function* () {
1805
1805
  const data = yield import_api_proxy31.ClusterService.clusterGetAllNews(
1806
1806
  id,
1807
1807
  sorting,
@@ -1820,7 +1820,7 @@ var import_react_query47 = require("@tanstack/react-query");
1820
1820
  var useNewsFromAllClusters = (skip = 0, take = 10) => {
1821
1821
  return (0, import_react_query47.useQuery)({
1822
1822
  queryKey: [QueryNames.ClusterAllNews, skip, take],
1823
- queryFn: () => __async(void 0, null, function* () {
1823
+ queryFn: () => __async(null, null, function* () {
1824
1824
  const data = yield import_api_proxy32.ClusterService.clusterGetAllNewsFromAllClusters(
1825
1825
  "",
1826
1826
  skip,
@@ -1837,7 +1837,7 @@ var import_react_query48 = require("@tanstack/react-query");
1837
1837
  var useClusterNewsWithId = (id) => {
1838
1838
  return (0, import_react_query48.useQuery)({
1839
1839
  queryKey: [QueryNames.ClusterNewsWithId, id],
1840
- queryFn: () => __async(void 0, null, function* () {
1840
+ queryFn: () => __async(null, null, function* () {
1841
1841
  const data = yield import_api_proxy33.ClusterService.clusterGetClusterNewsById(id);
1842
1842
  return data;
1843
1843
  })
@@ -1849,15 +1849,15 @@ var import_react_query49 = require("@tanstack/react-query");
1849
1849
 
1850
1850
  // src/utils/CmsApi.ts
1851
1851
  var import_cms_proxy7 = require("@geowiki/cms-proxy");
1852
- var getGeoWikiSettings = () => __async(void 0, null, function* () {
1852
+ var getGeoWikiSettings = () => __async(null, null, function* () {
1853
1853
  const req = yield import_cms_proxy7.SettingsService.settingsGetSiteSettings("GeoWiki");
1854
1854
  return req;
1855
1855
  });
1856
- var getDefaultSettings = () => __async(void 0, null, function* () {
1856
+ var getDefaultSettings = () => __async(null, null, function* () {
1857
1857
  const req = yield import_cms_proxy7.SettingsService.settingsGetDefaultSiteSettings();
1858
1858
  return req;
1859
1859
  });
1860
- var getMenus = (displayName) => __async(void 0, null, function* () {
1860
+ var getMenus = (displayName) => __async(null, null, function* () {
1861
1861
  const req = yield getContentWithTypeAndDisplayName(
1862
1862
  "Menu",
1863
1863
  displayName
@@ -1865,7 +1865,7 @@ var getMenus = (displayName) => __async(void 0, null, function* () {
1865
1865
  const menus = req == null ? void 0 : req.items[0];
1866
1866
  return menus;
1867
1867
  });
1868
- var getPageContent = (displayName) => __async(void 0, null, function* () {
1868
+ var getPageContent = (displayName) => __async(null, null, function* () {
1869
1869
  const req = yield getContentWithTypeAndDisplayName(
1870
1870
  "Page",
1871
1871
  displayName
@@ -1873,27 +1873,27 @@ var getPageContent = (displayName) => __async(void 0, null, function* () {
1873
1873
  const page = req == null ? void 0 : req.items[0];
1874
1874
  return page;
1875
1875
  });
1876
- var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(void 0, null, function* () {
1876
+ var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(null, null, function* () {
1877
1877
  return import_cms_proxy7.QueryApiService.apiQueryGet(
1878
1878
  "GetContentByTypeAndDisplayText",
1879
1879
  `${JSON.stringify({ contenttype: contentType, displaytext: displayName })}`
1880
1880
  );
1881
1881
  });
1882
- var getContentWithSlug = (slug) => __async(void 0, null, function* () {
1882
+ var getContentWithSlug = (slug) => __async(null, null, function* () {
1883
1883
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1884
1884
  "GetDocumentBySlug",
1885
1885
  `${JSON.stringify({ path: slug })}`
1886
1886
  );
1887
1887
  return req == null ? void 0 : req.items[0];
1888
1888
  });
1889
- var getContentsWithType = (contentType) => __async(void 0, null, function* () {
1889
+ var getContentsWithType = (contentType) => __async(null, null, function* () {
1890
1890
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1891
1891
  "GetContentByType",
1892
1892
  `${JSON.stringify({ contenttype: contentType })}`
1893
1893
  );
1894
1894
  return req == null ? void 0 : req.items;
1895
1895
  });
1896
- var getPageProps = (ctx) => __async(void 0, null, function* () {
1896
+ var getPageProps = (ctx) => __async(null, null, function* () {
1897
1897
  var _a;
1898
1898
  var page = "index";
1899
1899
  const slugs = ctx.query.slug;
@@ -1911,7 +1911,7 @@ var getPageProps = (ctx) => __async(void 0, null, function* () {
1911
1911
  var useMapMenuItems = () => {
1912
1912
  return (0, import_react_query49.useQuery)({
1913
1913
  queryKey: [QueryNames.MapMenuItems],
1914
- queryFn: () => __async(void 0, null, function* () {
1914
+ queryFn: () => __async(null, null, function* () {
1915
1915
  const req = yield getContentsWithType("MapMenuItem");
1916
1916
  return req;
1917
1917
  })
@@ -1924,7 +1924,7 @@ var import_react_query50 = require("@tanstack/react-query");
1924
1924
  var useClusterLinks = (id) => {
1925
1925
  return (0, import_react_query50.useQuery)({
1926
1926
  queryKey: [QueryNames.GetSocialLinks, id],
1927
- queryFn: () => __async(void 0, null, function* () {
1927
+ queryFn: () => __async(null, null, function* () {
1928
1928
  const data = yield import_api_proxy34.ClusterService.clusterGetLinksAndPartner(id);
1929
1929
  return data;
1930
1930
  })
@@ -1936,7 +1936,7 @@ var import_react_query51 = require("@tanstack/react-query");
1936
1936
  var useCmsContentWithType = (contentType) => {
1937
1937
  return (0, import_react_query51.useQuery)({
1938
1938
  queryKey: [QueryNames.GetCmsContentWithType],
1939
- queryFn: () => __async(void 0, null, function* () {
1939
+ queryFn: () => __async(null, null, function* () {
1940
1940
  const req = yield getContentsWithType(contentType);
1941
1941
  return req;
1942
1942
  })
@@ -1949,7 +1949,7 @@ var import_react_query52 = require("@tanstack/react-query");
1949
1949
  var useClusterNews = (id, sort = "", skip = 0, take = 100) => {
1950
1950
  return (0, import_react_query52.useQuery)({
1951
1951
  queryKey: [QueryNames.ClusterNews, id, sort, skip, take],
1952
- queryFn: () => __async(void 0, null, function* () {
1952
+ queryFn: () => __async(null, null, function* () {
1953
1953
  const data = yield import_api_proxy35.ClusterService.clusterGetClusterNews(
1954
1954
  id,
1955
1955
  sort,
@@ -1967,7 +1967,7 @@ var import_react_query53 = require("@tanstack/react-query");
1967
1967
  var useClusterDescription = (id) => {
1968
1968
  return (0, import_react_query53.useQuery)({
1969
1969
  queryKey: [QueryNames.GetClusterDescription, id],
1970
- queryFn: () => __async(void 0, null, function* () {
1970
+ queryFn: () => __async(null, null, function* () {
1971
1971
  const data = yield import_api_proxy36.ClusterService.clusterGetClusterDescription(id);
1972
1972
  return data;
1973
1973
  })
@@ -1980,7 +1980,7 @@ var import_react_query54 = require("@tanstack/react-query");
1980
1980
  var useClusterDetails = (id) => {
1981
1981
  return (0, import_react_query54.useQuery)({
1982
1982
  queryKey: [QueryNames.GetClusterDetails, id],
1983
- queryFn: () => __async(void 0, null, function* () {
1983
+ queryFn: () => __async(null, null, function* () {
1984
1984
  const data = yield import_api_proxy37.ClusterService.clusterGetClusterDetails(id);
1985
1985
  return data;
1986
1986
  })
@@ -1993,7 +1993,7 @@ var import_react_query55 = require("@tanstack/react-query");
1993
1993
  var useClusterImagesAndVideos = (id) => {
1994
1994
  return (0, import_react_query55.useQuery)({
1995
1995
  queryKey: [QueryNames.GetImagesAndVideos, id],
1996
- queryFn: () => __async(void 0, null, function* () {
1996
+ queryFn: () => __async(null, null, function* () {
1997
1997
  const data = yield import_api_proxy38.ClusterService.clusterGetImagesAndVideos(id);
1998
1998
  return data;
1999
1999
  })
@@ -2002,7 +2002,7 @@ var useClusterImagesAndVideos = (id) => {
2002
2002
 
2003
2003
  // src/hooks/useHost.ts
2004
2004
  var import_react_query56 = require("@tanstack/react-query");
2005
- var getHost = () => __async(void 0, null, function* () {
2005
+ var getHost = () => __async(null, null, function* () {
2006
2006
  const response = yield fetch("/api/host");
2007
2007
  if (!response.ok) {
2008
2008
  return Promise.reject(null);
@@ -2018,7 +2018,7 @@ function useHost() {
2018
2018
 
2019
2019
  // src/hooks/useHostManagement.ts
2020
2020
  var import_react_query57 = require("@tanstack/react-query");
2021
- var createHost = (hostData) => __async(void 0, null, function* () {
2021
+ var createHost = (hostData) => __async(null, null, function* () {
2022
2022
  const response = yield fetch("/api/hosts", {
2023
2023
  method: "POST",
2024
2024
  headers: {
@@ -2031,7 +2031,7 @@ var createHost = (hostData) => __async(void 0, null, function* () {
2031
2031
  }
2032
2032
  return response.json();
2033
2033
  });
2034
- var updateHost = (_a) => __async(void 0, null, function* () {
2034
+ var updateHost = (_a) => __async(null, null, function* () {
2035
2035
  var _b = _a, {
2036
2036
  host
2037
2037
  } = _b, hostData = __objRest(_b, [
@@ -2049,7 +2049,7 @@ var updateHost = (_a) => __async(void 0, null, function* () {
2049
2049
  }
2050
2050
  return response.json();
2051
2051
  });
2052
- var deleteHost = (host) => __async(void 0, null, function* () {
2052
+ var deleteHost = (host) => __async(null, null, function* () {
2053
2053
  const response = yield fetch(`/api/hosts/${host}`, {
2054
2054
  method: "DELETE"
2055
2055
  });
@@ -2095,7 +2095,8 @@ var HostType = /* @__PURE__ */ ((HostType2) => {
2095
2095
 
2096
2096
  // src/utils/ServerHostUtils.ts
2097
2097
  var getHostData = () => {
2098
- return process.env.NODE_ENV === "production" ? [
2098
+ const useProd = process.env.NODE_ENV === "production" || process.env.GEOWIKI_USE_PROD_HOSTS === "true";
2099
+ return useProd ? [
2099
2100
  {
2100
2101
  host: "v2.geo-wiki.org",
2101
2102
  cmsUrl: "https://cms.main.geo-wiki.org"
@@ -2340,8 +2341,7 @@ var HostService = class {
2340
2341
  * Utility: Check if a path is protected for a host
2341
2342
  */
2342
2343
  static isPathProtected(hostInfo, path) {
2343
- if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths))
2344
- return false;
2344
+ if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths)) return false;
2345
2345
  return hostInfo.protectedPaths.some(
2346
2346
  (protectedPath) => path.startsWith(protectedPath)
2347
2347
  );
@@ -2401,8 +2401,7 @@ var HostService = class {
2401
2401
  * Utility: Get host info for current window location (client-side only)
2402
2402
  */
2403
2403
  static getCurrentHostInfo(hosts) {
2404
- if (typeof window === "undefined")
2405
- return void 0;
2404
+ if (typeof window === "undefined") return void 0;
2406
2405
  return hosts.find((h) => h.host === window.location.host);
2407
2406
  }
2408
2407
  /**
@@ -2637,8 +2636,7 @@ var createI18n = () => {
2637
2636
  let current = "en";
2638
2637
  return {
2639
2638
  locale: (next) => {
2640
- if (next)
2641
- current = next;
2639
+ if (next) current = next;
2642
2640
  return current;
2643
2641
  },
2644
2642
  t: (key) => key
@@ -3378,14 +3376,11 @@ var import_react8 = require("react");
3378
3376
  var import_jsx_runtime2 = require("react/jsx-runtime");
3379
3377
  var isBrowser = () => typeof window !== "undefined";
3380
3378
  var queryToSearchParams = (query, target = new URLSearchParams()) => {
3381
- if (!query)
3382
- return target;
3379
+ if (!query) return target;
3383
3380
  for (const [key, value] of Object.entries(query)) {
3384
- if (value === void 0 || value === null)
3385
- continue;
3381
+ if (value === void 0 || value === null) continue;
3386
3382
  if (Array.isArray(value)) {
3387
- for (const v of value)
3388
- target.append(key, String(v));
3383
+ for (const v of value) target.append(key, String(v));
3389
3384
  } else {
3390
3385
  target.set(key, String(value));
3391
3386
  }
@@ -3393,8 +3388,7 @@ var queryToSearchParams = (query, target = new URLSearchParams()) => {
3393
3388
  return target;
3394
3389
  };
3395
3390
  var urlToHref = (url) => {
3396
- if (typeof url === "string")
3397
- return url;
3391
+ if (typeof url === "string") return url;
3398
3392
  const { pathname = "", query, hash } = url;
3399
3393
  const qs = queryToSearchParams(query).toString();
3400
3394
  return `${pathname}${qs ? `?${qs}` : ""}${hash ? `#${hash}` : ""}`;
@@ -3468,15 +3462,11 @@ var DefaultImage = function DefaultImage2(props) {
3468
3462
  ]);
3469
3463
  const resolvedSrc = typeof src === "string" ? src : src == null ? void 0 : src.src;
3470
3464
  const mergedStyle = (0, import_react8.useMemo)(() => {
3471
- if (!fill && !objectFit && !objectPosition && !style)
3472
- return void 0;
3465
+ if (!fill && !objectFit && !objectPosition && !style) return void 0;
3473
3466
  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;
3467
+ if (fill) Object.assign(out, { position: "absolute", inset: 0, width: "100%", height: "100%" });
3468
+ if (objectFit) out.objectFit = objectFit;
3469
+ if (objectPosition) out.objectPosition = objectPosition;
3480
3470
  return out;
3481
3471
  }, [fill, objectFit, objectPosition, style]);
3482
3472
  return (
@@ -3503,20 +3493,14 @@ var DefaultScript = function DefaultScript2(props) {
3503
3493
  onLoadRef.current = onLoad;
3504
3494
  onErrorRef.current = onError;
3505
3495
  (0, import_react8.useEffect)(() => {
3506
- if (!src || !isBrowser())
3507
- return;
3496
+ if (!src || !isBrowser()) return;
3508
3497
  const el = document.createElement("script");
3509
3498
  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;
3499
+ if (id) el.id = id;
3500
+ if (async) el.async = true;
3501
+ if (defer) el.defer = true;
3502
+ if (type) el.type = type;
3503
+ if (nonce) el.nonce = nonce;
3520
3504
  el.onload = () => {
3521
3505
  var _a2;
3522
3506
  return (_a2 = onLoadRef.current) == null ? void 0 : _a2.call(onLoadRef);
@@ -3550,8 +3534,7 @@ var parseSearch = (search) => {
3550
3534
  var useLocation2 = () => {
3551
3535
  const [tick, setTick] = (0, import_react8.useState)(0);
3552
3536
  (0, import_react8.useEffect)(() => {
3553
- if (!isBrowser())
3554
- return;
3537
+ if (!isBrowser()) return;
3555
3538
  const handler = () => setTick((t) => t + 1);
3556
3539
  window.addEventListener("popstate", handler);
3557
3540
  return () => window.removeEventListener("popstate", handler);
@@ -3572,31 +3555,26 @@ var useLocation2 = () => {
3572
3555
  var useDefaultRouter = () => {
3573
3556
  const loc = useLocation2();
3574
3557
  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;
3558
+ const push = (0, import_react8.useCallback)((url) => __async(null, null, function* () {
3559
+ if (!isBrowser()) return false;
3578
3560
  window.history.pushState({}, "", urlToHref(url));
3579
3561
  window.dispatchEvent(new PopStateEvent("popstate"));
3580
3562
  return true;
3581
3563
  }), []);
3582
- const replace = (0, import_react8.useCallback)((url) => __async(void 0, null, function* () {
3583
- if (!isBrowser())
3584
- return false;
3564
+ const replace = (0, import_react8.useCallback)((url) => __async(null, null, function* () {
3565
+ if (!isBrowser()) return false;
3585
3566
  window.history.replaceState({}, "", urlToHref(url));
3586
3567
  window.dispatchEvent(new PopStateEvent("popstate"));
3587
3568
  return true;
3588
3569
  }), []);
3589
3570
  const back = (0, import_react8.useCallback)(() => {
3590
- if (isBrowser())
3591
- window.history.back();
3571
+ if (isBrowser()) window.history.back();
3592
3572
  }, []);
3593
3573
  const forward = (0, import_react8.useCallback)(() => {
3594
- if (isBrowser())
3595
- window.history.forward();
3574
+ if (isBrowser()) window.history.forward();
3596
3575
  }, []);
3597
3576
  const reload = (0, import_react8.useCallback)(() => {
3598
- if (isBrowser())
3599
- window.location.reload();
3577
+ if (isBrowser()) window.location.reload();
3600
3578
  }, []);
3601
3579
  return (0, import_react8.useMemo)(
3602
3580
  () => ({
@@ -3649,7 +3627,7 @@ var useDefaultI18n = () => ({
3649
3627
  t: (key) => key
3650
3628
  });
3651
3629
  var defaultDynamic = (loader, options) => {
3652
- const Lazy = (0, import_react8.lazy)(() => __async(void 0, null, function* () {
3630
+ const Lazy = (0, import_react8.lazy)(() => __async(null, null, function* () {
3653
3631
  return unwrapDefault(yield loader());
3654
3632
  }));
3655
3633
  const Loading = options == null ? void 0 : options.loading;