@geowiki/core 0.16.0-dev.0 → 0.16.0-dev.1

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 index_exports = {};
81
- __export(index_exports, {
80
+ var src_exports = {};
81
+ __export(src_exports, {
82
82
  ActivityStatus: () => ActivityStatus,
83
83
  AdminMenus: () => AdminMenus,
84
84
  AnnotationRequired: () => AnnotationRequired,
@@ -273,7 +273,7 @@ __export(index_exports, {
273
273
  useUserRoles: () => useUserRoles,
274
274
  useUsers: () => useUsers
275
275
  });
276
- module.exports = __toCommonJS(index_exports);
276
+ module.exports = __toCommonJS(src_exports);
277
277
 
278
278
  // src/Animation.ts
279
279
  var easing = [0.175, 0.85, 0.42, 0.96];
@@ -499,7 +499,7 @@ var import_evoland_api_proxy = require("@geowiki/evoland-api-proxy");
499
499
  var useEvolandWmsLayers = () => {
500
500
  return (0, import_react_query2.useQuery)({
501
501
  queryKey: [QueryNames.GetAvailableWmsLayers],
502
- queryFn: () => __async(null, null, function* () {
502
+ queryFn: () => __async(void 0, null, function* () {
503
503
  const data = yield import_evoland_api_proxy.ProjectService.getAvailableLayersAvailablelayersGet();
504
504
  return data;
505
505
  })
@@ -529,7 +529,7 @@ var import_api_proxy = require("@geowiki/api-proxy");
529
529
  var useAppConfig = () => {
530
530
  return (0, import_react_query3.useQuery)({
531
531
  queryKey: [QueryConstants.GetAppConfig],
532
- queryFn: () => __async(null, null, function* () {
532
+ queryFn: () => __async(void 0, null, function* () {
533
533
  const data = yield import_api_proxy.AbpApplicationConfigurationService.abpApplicationConfigurationGet();
534
534
  return data;
535
535
  }),
@@ -544,7 +544,7 @@ var import_react_query4 = require("@tanstack/react-query");
544
544
  var useAudience = () => {
545
545
  return (0, import_react_query4.useQuery)({
546
546
  queryKey: [QueryNames.GetAudience],
547
- queryFn: () => __async(null, null, function* () {
547
+ queryFn: () => __async(void 0, null, function* () {
548
548
  const data = yield import_api_proxy2.ResourceService.resourceGetAvailableAudience();
549
549
  return data;
550
550
  }),
@@ -560,7 +560,7 @@ var import_react_query5 = require("@tanstack/react-query");
560
560
  var useCluster = (id) => {
561
561
  return (0, import_react_query5.useQuery)({
562
562
  queryKey: [QueryNames.Cluster, id],
563
- queryFn: () => __async(null, null, function* () {
563
+ queryFn: () => __async(void 0, null, function* () {
564
564
  const data = yield import_api_proxy3.ClusterService.clusterGet(id);
565
565
  return data;
566
566
  })
@@ -573,7 +573,7 @@ var import_react_query6 = require("@tanstack/react-query");
573
573
  var useClusterFilterSettings = () => {
574
574
  return (0, import_react_query6.useQuery)({
575
575
  queryKey: [QueryNames.GetClusterFilterSettings],
576
- queryFn: () => __async(null, null, function* () {
576
+ queryFn: () => __async(void 0, null, function* () {
577
577
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("ClusterFilter");
578
578
  return req;
579
579
  })
@@ -582,7 +582,7 @@ var useClusterFilterSettings = () => {
582
582
  var useConfigSettings = () => {
583
583
  return (0, import_react_query6.useQuery)({
584
584
  queryKey: [QueryNames.GetConfig],
585
- queryFn: () => __async(null, null, function* () {
585
+ queryFn: () => __async(void 0, null, function* () {
586
586
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("Config");
587
587
  return req;
588
588
  })
@@ -595,7 +595,7 @@ var import_react_query7 = require("@tanstack/react-query");
595
595
  var useClusterMapInfo = () => {
596
596
  return (0, import_react_query7.useQuery)({
597
597
  queryKey: [QueryNames.GetClusterForMap],
598
- queryFn: () => __async(null, null, function* () {
598
+ queryFn: () => __async(void 0, null, function* () {
599
599
  const data = yield import_api_proxy4.ClusterService.clusterGetMapInfo();
600
600
  return data;
601
601
  })
@@ -608,7 +608,7 @@ var import_react_query8 = require("@tanstack/react-query");
608
608
  var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
609
609
  return (0, import_react_query8.useQuery)({
610
610
  queryKey: [QueryNames.Clusters, skip, take],
611
- queryFn: () => __async(null, null, function* () {
611
+ queryFn: () => __async(void 0, null, function* () {
612
612
  if (fetchAll) {
613
613
  const data = yield import_api_proxy5.ClusterService.clusterGetAllClusters(
614
614
  sort,
@@ -627,7 +627,7 @@ var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
627
627
  var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
628
628
  return (0, import_react_query8.useQuery)({
629
629
  queryKey: [QueryNames.GetFarmerClusterNews, sort, skip, take],
630
- queryFn: () => __async(null, null, function* () {
630
+ queryFn: () => __async(void 0, null, function* () {
631
631
  const data = yield import_api_proxy5.ClusterService.clusterGetAllNewsFromAllClusters(
632
632
  sort,
633
633
  skip,
@@ -640,7 +640,7 @@ var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
640
640
 
641
641
  // src/hooks/useHosts.ts
642
642
  var import_react_query9 = require("@tanstack/react-query");
643
- var getHosts = () => __async(null, null, function* () {
643
+ var getHosts = () => __async(void 0, null, function* () {
644
644
  const response = yield fetch("/api/hosts");
645
645
  if (!response.ok) {
646
646
  throw new Error("Failed to fetch hosts");
@@ -680,7 +680,7 @@ var import_api_proxy6 = require("@geowiki/api-proxy");
680
680
  var useCountries = (fetchAll = false) => {
681
681
  return (0, import_react_query10.useQuery)({
682
682
  queryKey: [QueryNames.GetCountries, fetchAll],
683
- queryFn: () => __async(null, null, function* () {
683
+ queryFn: () => __async(void 0, null, function* () {
684
684
  const data = yield import_api_proxy6.ClusterService.clusterGetCountries(fetchAll);
685
685
  data.sort((a, b) => {
686
686
  if (!a.country || !b.country) {
@@ -731,7 +731,7 @@ var useFileUrl = () => {
731
731
  var useFileUpload = (formData) => {
732
732
  return (0, import_react_query11.useQuery)({
733
733
  queryKey: [QueryNames.FileUpload, formData],
734
- queryFn: () => __async(null, null, function* () {
734
+ queryFn: () => __async(void 0, null, function* () {
735
735
  const data = yield import_api_proxy7.FileService.fileUpload(formData);
736
736
  return data;
737
737
  })
@@ -754,7 +754,7 @@ var useFilterClusters = (filter) => {
754
754
  filter.mainAgriculturalAreas,
755
755
  filter.sort
756
756
  ],
757
- queryFn: () => __async(null, null, function* () {
757
+ queryFn: () => __async(void 0, null, function* () {
758
758
  const data = yield import_api_proxy8.ClusterService.clusterFilter(filter);
759
759
  return data;
760
760
  })
@@ -767,7 +767,7 @@ var import_react_query13 = require("@tanstack/react-query");
767
767
  var useGeoWikiSettings = () => {
768
768
  return (0, import_react_query13.useQuery)({
769
769
  queryKey: [QueryNames.GetAppSettings],
770
- queryFn: () => __async(null, null, function* () {
770
+ queryFn: () => __async(void 0, null, function* () {
771
771
  var req = yield import_cms_proxy2.SettingsService.settingsGetSiteSettings("GeoWiki");
772
772
  return req;
773
773
  })
@@ -786,7 +786,7 @@ var import_react_query14 = require("@tanstack/react-query");
786
786
  var useIntroTourSettings = () => {
787
787
  return (0, import_react_query14.useQuery)({
788
788
  queryKey: [QueryNames.GetIntroTour],
789
- queryFn: () => __async(null, null, function* () {
789
+ queryFn: () => __async(void 0, null, function* () {
790
790
  var req = yield import_cms_proxy3.SettingsService.settingsGetSiteSettings("IntroTour");
791
791
  return req;
792
792
  })
@@ -823,7 +823,7 @@ var import_react_query15 = require("@tanstack/react-query");
823
823
  var useLanguages = () => {
824
824
  return (0, import_react_query15.useQuery)({
825
825
  queryKey: [QueryNames.GetLanguages],
826
- queryFn: () => __async(null, null, function* () {
826
+ queryFn: () => __async(void 0, null, function* () {
827
827
  const data = yield import_api_proxy9.ResourceService.resourceGetAvailableLanguages();
828
828
  return data;
829
829
  }),
@@ -838,7 +838,7 @@ var import_react_query16 = require("@tanstack/react-query");
838
838
  var useLayerInfo = (url, layerName) => {
839
839
  return (0, import_react_query16.useQuery)({
840
840
  queryKey: [QueryNames.GetUseLayerInfo, url, layerName],
841
- queryFn: () => __async(null, null, function* () {
841
+ queryFn: () => __async(void 0, null, function* () {
842
842
  var legendUrl = url + "?service=WMS&version=1.1.0&request=GetLegendGraphic&layer=" + layerName + "&format=application/json";
843
843
  var res = yield fetch(legendUrl);
844
844
  var data = yield res.json();
@@ -863,7 +863,7 @@ function useLocation() {
863
863
  var useLocationsForProject = (locationreq) => {
864
864
  return (0, import_react_query17.useQuery)({
865
865
  queryKey: [QueryConstants.GetLocations, locationreq],
866
- queryFn: () => __async(null, null, function* () {
866
+ queryFn: () => __async(void 0, null, function* () {
867
867
  return import_evoland_api_proxy2.ProjectService.searchLocationsLocationsPost(locationreq);
868
868
  })
869
869
  });
@@ -871,7 +871,7 @@ var useLocationsForProject = (locationreq) => {
871
871
  var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
872
872
  return (0, import_react_query17.useQuery)({
873
873
  queryKey: [QueryConstants.UploadLocations, uploadLocations, file, group_id],
874
- queryFn: () => __async(null, null, function* () {
874
+ queryFn: () => __async(void 0, null, function* () {
875
875
  try {
876
876
  const res = yield import_evoland_api_proxy2.LocationService.bulkUploadLocationsUploadlocationsPost({ file, project_id, group_id });
877
877
  return res;
@@ -885,7 +885,7 @@ var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
885
885
  var useTaskBulkUpload = (uploadTasks, file, project_id) => {
886
886
  return (0, import_react_query17.useQuery)({
887
887
  queryKey: [QueryConstants.UploadTasks, uploadTasks, file],
888
- queryFn: () => __async(null, null, function* () {
888
+ queryFn: () => __async(void 0, null, function* () {
889
889
  try {
890
890
  return import_evoland_api_proxy2.LocationService.uploadLocationTaskUploadlocationtaskPost({ file, project_id });
891
891
  } catch (error) {
@@ -898,7 +898,7 @@ var useTaskBulkUpload = (uploadTasks, file, project_id) => {
898
898
  var useReviewTaskBulkUpload = (uploadReviewTasks, file, project_id) => {
899
899
  return (0, import_react_query17.useQuery)({
900
900
  queryKey: [QueryConstants.UploadReviewTasks, uploadReviewTasks, file],
901
- queryFn: () => __async(null, null, function* () {
901
+ queryFn: () => __async(void 0, null, function* () {
902
902
  try {
903
903
  return import_evoland_api_proxy2.LocationService.bulkUploadReviewTasksUploadreviewtasksPost({ file, project_id });
904
904
  } catch (error) {
@@ -931,7 +931,7 @@ var import_api_proxy10 = require("@geowiki/api-proxy");
931
931
  var useNews = (lang = "all", skip = 0, take = 100) => {
932
932
  return (0, import_react_query19.useQuery)({
933
933
  queryKey: [QueryNames.GetNews, lang, skip, take],
934
- queryFn: () => __async(null, null, function* () {
934
+ queryFn: () => __async(void 0, null, function* () {
935
935
  if (lang == "all") {
936
936
  const res2 = yield import_api_proxy10.NewsService.newsGetExternalNews("", skip, take);
937
937
  return res2.items;
@@ -1012,7 +1012,7 @@ var import_react_query20 = require("@tanstack/react-query");
1012
1012
  var usePublicationSettings = () => {
1013
1013
  return (0, import_react_query20.useQuery)({
1014
1014
  queryKey: [QueryNames.GetPublicationSettings],
1015
- queryFn: () => __async(null, null, function* () {
1015
+ queryFn: () => __async(void 0, null, function* () {
1016
1016
  var req = yield import_cms_proxy5.SettingsService.settingsGetSiteSettings("Publication");
1017
1017
  return req;
1018
1018
  })
@@ -1025,7 +1025,7 @@ var import_react_query21 = require("@tanstack/react-query");
1025
1025
  var useResource = (search = "", sort = "", skip = 0, take = 100) => {
1026
1026
  return (0, import_react_query21.useQuery)({
1027
1027
  queryKey: [QueryNames.GetResource, search, sort, skip, take],
1028
- queryFn: () => __async(null, null, function* () {
1028
+ queryFn: () => __async(void 0, null, function* () {
1029
1029
  if (search !== "") {
1030
1030
  const data2 = yield import_api_proxy11.ResourceService.resourceSearch(search);
1031
1031
  return data2;
@@ -1057,7 +1057,7 @@ var useResourceFilter = (filter) => {
1057
1057
  filter.sorting,
1058
1058
  filter.isFramework
1059
1059
  ],
1060
- queryFn: () => __async(null, null, function* () {
1060
+ queryFn: () => __async(void 0, null, function* () {
1061
1061
  const data = yield import_api_proxy12.ResourceService.resourceFilter(filter);
1062
1062
  return data;
1063
1063
  })
@@ -1070,7 +1070,7 @@ var import_react_query23 = require("@tanstack/react-query");
1070
1070
  var useResourceType = () => {
1071
1071
  return (0, import_react_query23.useQuery)({
1072
1072
  queryKey: [QueryNames.GetResourceType],
1073
- queryFn: () => __async(null, null, function* () {
1073
+ queryFn: () => __async(void 0, null, function* () {
1074
1074
  var data = yield import_api_proxy13.ResourceService.resourceGetAvailableResourceType();
1075
1075
  return data;
1076
1076
  })
@@ -1083,7 +1083,7 @@ var import_react_query24 = require("@tanstack/react-query");
1083
1083
  var useTopic = () => {
1084
1084
  return (0, import_react_query24.useQuery)({
1085
1085
  queryKey: [QueryNames.GetTopic],
1086
- queryFn: () => __async(null, null, function* () {
1086
+ queryFn: () => __async(void 0, null, function* () {
1087
1087
  var data = yield import_api_proxy14.ResourceService.resourceGetAvailableTopic();
1088
1088
  return data;
1089
1089
  }),
@@ -1099,7 +1099,7 @@ var import_api_proxy15 = require("@geowiki/api-proxy");
1099
1099
  var useUserProfileGet = () => {
1100
1100
  return (0, import_react_query25.useQuery)({
1101
1101
  queryKey: [QueryNames.GetUserProfile],
1102
- queryFn: () => __async(null, null, function* () {
1102
+ queryFn: () => __async(void 0, null, function* () {
1103
1103
  var data = yield import_api_proxy15.ProfileService.profileGet();
1104
1104
  return data;
1105
1105
  })
@@ -1112,7 +1112,7 @@ var import_api_proxy16 = require("@geowiki/api-proxy");
1112
1112
  var useUsers = (pageIndex, pageSize, filter, sorting) => {
1113
1113
  return (0, import_react_query26.useQuery)({
1114
1114
  queryKey: [QueryConstants.GetUsers, pageIndex, pageSize, filter, sorting],
1115
- queryFn: () => __async(null, null, function* () {
1115
+ queryFn: () => __async(void 0, null, function* () {
1116
1116
  let skip = 0;
1117
1117
  if (pageIndex > 0) {
1118
1118
  skip = pageIndex * pageSize;
@@ -1156,7 +1156,7 @@ var import_react_query27 = require("@tanstack/react-query");
1156
1156
  var useDefaultSettings = () => {
1157
1157
  return (0, import_react_query27.useQuery)({
1158
1158
  queryKey: [QueryNames.DefaultSettings],
1159
- queryFn: () => __async(null, null, function* () {
1159
+ queryFn: () => __async(void 0, null, function* () {
1160
1160
  const req = yield import_cms_proxy6.SettingsService.settingsGetDefaultSiteSettings();
1161
1161
  return req;
1162
1162
  })
@@ -1175,7 +1175,7 @@ var import_react_query28 = require("@tanstack/react-query");
1175
1175
  var useEmailing = () => {
1176
1176
  return (0, import_react_query28.useQuery)({
1177
1177
  queryKey: [QueryConstants.GetEmailing],
1178
- queryFn: () => __async(null, null, function* () {
1178
+ queryFn: () => __async(void 0, null, function* () {
1179
1179
  const data = yield import_api_proxy17.EmailSettingsService.emailSettingsGet();
1180
1180
  return data;
1181
1181
  })
@@ -1205,7 +1205,7 @@ var import_react_query29 = require("@tanstack/react-query");
1205
1205
  var useFeatures = (providerName, providerKey) => {
1206
1206
  return (0, import_react_query29.useQuery)({
1207
1207
  queryKey: [QueryConstants.GetFeatures, providerName, providerKey],
1208
- queryFn: () => __async(null, null, function* () {
1208
+ queryFn: () => __async(void 0, null, function* () {
1209
1209
  const data = yield import_api_proxy18.FeaturesService.featuresGet(providerName, providerKey);
1210
1210
  return data;
1211
1211
  })
@@ -1218,7 +1218,7 @@ var import_api_proxy19 = require("@geowiki/api-proxy");
1218
1218
  var useAssignableRoles = () => {
1219
1219
  return (0, import_react_query30.useQuery)({
1220
1220
  queryKey: [QueryConstants.GetAssignableRoles],
1221
- queryFn: () => __async(null, null, function* () {
1221
+ queryFn: () => __async(void 0, null, function* () {
1222
1222
  const data = yield import_api_proxy19.UserService.userGetAssignableRoles();
1223
1223
  return data;
1224
1224
  })
@@ -1231,7 +1231,7 @@ var import_react_query31 = require("@tanstack/react-query");
1231
1231
  var useUserRoles = ({ userId }) => {
1232
1232
  return (0, import_react_query31.useQuery)({
1233
1233
  queryKey: [QueryConstants.GetUserRoles, userId],
1234
- queryFn: () => __async(null, null, function* () {
1234
+ queryFn: () => __async(void 0, null, function* () {
1235
1235
  const data = yield import_api_proxy20.UserService.userGetRoles(userId);
1236
1236
  return data;
1237
1237
  })
@@ -1244,7 +1244,7 @@ var import_react_query32 = require("@tanstack/react-query");
1244
1244
  var usePermissions = (providerName, providerKey) => {
1245
1245
  return (0, import_react_query32.useQuery)({
1246
1246
  queryKey: [QueryConstants.GetPermissions, providerName, providerKey],
1247
- queryFn: () => __async(null, null, function* () {
1247
+ queryFn: () => __async(void 0, null, function* () {
1248
1248
  const data = yield import_api_proxy21.PermissionsService.permissionsGet(
1249
1249
  providerName,
1250
1250
  providerKey
@@ -1260,7 +1260,7 @@ var import_api_proxy22 = require("@geowiki/api-proxy");
1260
1260
  var useRoles = (pageIndex, pageSize, filter, sorting) => {
1261
1261
  return (0, import_react_query33.useQuery)({
1262
1262
  queryKey: [QueryConstants.GetRoles, pageIndex, pageSize, filter, sorting],
1263
- queryFn: () => __async(null, null, function* () {
1263
+ queryFn: () => __async(void 0, null, function* () {
1264
1264
  let skip = 0;
1265
1265
  if (pageIndex > 0) {
1266
1266
  skip = pageIndex * pageSize;
@@ -1282,7 +1282,7 @@ var import_react_query34 = require("@tanstack/react-query");
1282
1282
  var useProfile = () => {
1283
1283
  return (0, import_react_query34.useQuery)({
1284
1284
  queryKey: [QueryConstants.GetProfile],
1285
- queryFn: () => __async(null, null, function* () {
1285
+ queryFn: () => __async(void 0, null, function* () {
1286
1286
  const data = yield import_api_proxy23.ProfileService.profileGet();
1287
1287
  return data;
1288
1288
  })
@@ -1295,7 +1295,7 @@ var import_api_proxy24 = require("@geowiki/api-proxy");
1295
1295
  var useTenants = (pageIndex, pageSize, filter, sorting) => {
1296
1296
  return (0, import_react_query35.useQuery)({
1297
1297
  queryKey: [QueryConstants.GetTenants, pageIndex, pageSize, filter, sorting],
1298
- queryFn: () => __async(null, null, function* () {
1298
+ queryFn: () => __async(void 0, null, function* () {
1299
1299
  let skip = 0;
1300
1300
  if (pageIndex > 0) {
1301
1301
  skip = pageIndex * pageSize;
@@ -1317,7 +1317,7 @@ var import_evoland_api_proxy3 = require("@geowiki/evoland-api-proxy");
1317
1317
  var useEvolandLabels = (projectId) => {
1318
1318
  return (0, import_react_query36.useQuery)({
1319
1319
  queryKey: [QueryNames.GetEvolandLabels, projectId],
1320
- queryFn: () => __async(null, null, function* () {
1320
+ queryFn: () => __async(void 0, null, function* () {
1321
1321
  const data = yield import_evoland_api_proxy3.ProjectService.getLabelsLabelsProjectIdProjectIdGet(projectId);
1322
1322
  return data;
1323
1323
  })
@@ -1331,7 +1331,7 @@ var useLookUp = (ServiceName, params, LookUpsClusterCountries, LookUpsClusterAct
1331
1331
  let result;
1332
1332
  return (0, import_react_query37.useQuery)({
1333
1333
  queryKey: [QueryNames.GetLookUp, ServiceName, params],
1334
- queryFn: () => __async(null, null, function* () {
1334
+ queryFn: () => __async(void 0, null, function* () {
1335
1335
  switch (ServiceName) {
1336
1336
  case LookUpsClusterCountries: {
1337
1337
  result = yield import_api_proxy25.ClusterService.clusterGetCountries(params);
@@ -1365,7 +1365,7 @@ var import_evoland_api_proxy4 = require("@geowiki/evoland-api-proxy");
1365
1365
  var useProjects = (fetch2, start = 0, amount = 9) => {
1366
1366
  return (0, import_react_query38.useQuery)({
1367
1367
  queryKey: [QueryConstants.GetProjects, fetch2, start, amount],
1368
- queryFn: () => __async(null, null, function* () {
1368
+ queryFn: () => __async(void 0, null, function* () {
1369
1369
  if (fetch2)
1370
1370
  return import_evoland_api_proxy4.ProjectService.listProjectsListprojectsStartidxStartidxAmountAmountGet(
1371
1371
  start,
@@ -1377,7 +1377,7 @@ var useProjects = (fetch2, start = 0, amount = 9) => {
1377
1377
  var useProjectDetails = (projectId, update) => {
1378
1378
  return (0, import_react_query38.useQuery)({
1379
1379
  queryKey: [QueryConstants.GetProjectDetails, projectId, update],
1380
- queryFn: () => __async(null, null, function* () {
1380
+ queryFn: () => __async(void 0, null, function* () {
1381
1381
  return import_evoland_api_proxy4.ProjectService.projectInfoProjectinfoProjectIdProjectIdGet(
1382
1382
  projectId
1383
1383
  );
@@ -1387,7 +1387,7 @@ var useProjectDetails = (projectId, update) => {
1387
1387
  var useTasksPerLocation = (data) => {
1388
1388
  return (0, import_react_query38.useQuery)({
1389
1389
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1390
- queryFn: () => __async(null, null, function* () {
1390
+ queryFn: () => __async(void 0, null, function* () {
1391
1391
  return import_evoland_api_proxy4.ProjectService.getTasksTasksGet(
1392
1392
  data.locationProjectId,
1393
1393
  data.taskForReview,
@@ -1415,7 +1415,7 @@ var useTasksPerLocation = (data) => {
1415
1415
  var useRandomTasksPerLocation = (data) => {
1416
1416
  return (0, import_react_query38.useQuery)({
1417
1417
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1418
- queryFn: () => __async(null, null, function* () {
1418
+ queryFn: () => __async(void 0, null, function* () {
1419
1419
  return import_evoland_api_proxy4.ProjectService.getRandomTaskRandomtaskGet(
1420
1420
  data.locationProjectId,
1421
1421
  data.taskForReview,
@@ -1442,7 +1442,7 @@ var useRandomTasksPerLocation = (data) => {
1442
1442
  var useTaskComments = (taskIds) => {
1443
1443
  return (0, import_react_query38.useQuery)({
1444
1444
  queryKey: [QueryConstants.GetTaskComment, taskIds],
1445
- queryFn: () => __async(null, null, function* () {
1445
+ queryFn: () => __async(void 0, null, function* () {
1446
1446
  return import_evoland_api_proxy4.TaskService.taskLatestComomentsTasklatestcommentPost({
1447
1447
  task_ids: taskIds
1448
1448
  });
@@ -1452,7 +1452,7 @@ var useTaskComments = (taskIds) => {
1452
1452
  var useGroupsInProject = (projectId, updateGroup) => {
1453
1453
  return (0, import_react_query38.useQuery)({
1454
1454
  queryKey: [QueryConstants.GetGroupsInProject, projectId, updateGroup],
1455
- queryFn: () => __async(null, null, function* () {
1455
+ queryFn: () => __async(void 0, null, function* () {
1456
1456
  return import_evoland_api_proxy4.ProjectService.getProjectGroupsProjectgroupsProjectIdProjectIdGet(
1457
1457
  projectId
1458
1458
  );
@@ -1462,7 +1462,7 @@ var useGroupsInProject = (projectId, updateGroup) => {
1462
1462
  var useProjectUsers = (projectId) => {
1463
1463
  return (0, import_react_query38.useQuery)({
1464
1464
  queryKey: [QueryConstants.GetProjectUsers, projectId],
1465
- queryFn: () => __async(null, null, function* () {
1465
+ queryFn: () => __async(void 0, null, function* () {
1466
1466
  return import_evoland_api_proxy4.ProjectService.projectAllUsersProjectusersProjectIdProjectIdGet(
1467
1467
  projectId
1468
1468
  );
@@ -1472,7 +1472,7 @@ var useProjectUsers = (projectId) => {
1472
1472
  var useTaskStatusList = () => {
1473
1473
  return (0, import_react_query38.useQuery)({
1474
1474
  queryKey: [QueryConstants.GetTaskStatusList],
1475
- queryFn: () => __async(null, null, function* () {
1475
+ queryFn: () => __async(void 0, null, function* () {
1476
1476
  return import_evoland_api_proxy4.TaskService.getTaskStatusesTaskstatusesGet();
1477
1477
  })
1478
1478
  });
@@ -1485,7 +1485,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1485
1485
  groupId,
1486
1486
  update
1487
1487
  ],
1488
- queryFn: () => __async(null, null, function* () {
1488
+ queryFn: () => __async(void 0, null, function* () {
1489
1489
  if (update)
1490
1490
  return import_evoland_api_proxy4.ProjectService.selectProjectGroupProjectselectgroupPost({
1491
1491
  project_id: projectId,
@@ -1497,7 +1497,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1497
1497
  var useTaskAnnotation = (taskId) => {
1498
1498
  return (0, import_react_query38.useQuery)({
1499
1499
  queryKey: [QueryConstants.GetTaskAnnotation, taskId],
1500
- queryFn: () => __async(null, null, function* () {
1500
+ queryFn: () => __async(void 0, null, function* () {
1501
1501
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1502
1502
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetTaskannotationTaskIdTaskIdGet(
1503
1503
  taskId
@@ -1508,7 +1508,7 @@ var useTaskAnnotation = (taskId) => {
1508
1508
  var useTaskMultipleAnnotations = (taskId) => {
1509
1509
  return (0, import_react_query38.useQuery)({
1510
1510
  queryKey: [QueryConstants.GetTaskMultipleAnnotations, taskId],
1511
- queryFn: () => __async(null, null, function* () {
1511
+ queryFn: () => __async(void 0, null, function* () {
1512
1512
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1513
1513
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetsTaskannotationsTaskIdTaskIdGet(
1514
1514
  taskId
@@ -1519,7 +1519,7 @@ var useTaskMultipleAnnotations = (taskId) => {
1519
1519
  var useTaskSavedAnnotations = (taskId) => {
1520
1520
  return (0, import_react_query38.useQuery)({
1521
1521
  queryKey: [QueryConstants.GetTaskSavedAnnotations, taskId],
1522
- queryFn: () => __async(null, null, function* () {
1522
+ queryFn: () => __async(void 0, null, function* () {
1523
1523
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1524
1524
  return import_evoland_api_proxy4.TaskService.getSavedAnnotationGetsavedannotationTaskIdTaskIdGet(
1525
1525
  taskId
@@ -1530,7 +1530,7 @@ var useTaskSavedAnnotations = (taskId) => {
1530
1530
  var useTaskDelete = (taskId, projectId, deleteTask) => {
1531
1531
  return (0, import_react_query38.useQuery)({
1532
1532
  queryKey: [QueryConstants.DeleteTask, taskId, projectId, deleteTask],
1533
- queryFn: () => __async(null, null, function* () {
1533
+ queryFn: () => __async(void 0, null, function* () {
1534
1534
  if (taskId !== null && taskId !== void 0 && taskId !== 0 && deleteTask === true)
1535
1535
  return import_evoland_api_proxy4.TaskService.deleteTaskDeletetaskPost({
1536
1536
  project_id: projectId,
@@ -1548,7 +1548,7 @@ var useProjectStatisticsByUser = (projectId, startDate, endDate, filterUserId) =
1548
1548
  endDate,
1549
1549
  filterUserId
1550
1550
  ],
1551
- queryFn: () => __async(null, null, function* () {
1551
+ queryFn: () => __async(void 0, null, function* () {
1552
1552
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1553
1553
  projectId,
1554
1554
  endDate,
@@ -1567,7 +1567,7 @@ var useContractStatisticsByUser = (projectId, startDate, endDate, filterUserId)
1567
1567
  endDate,
1568
1568
  filterUserId
1569
1569
  ],
1570
- queryFn: () => __async(null, null, function* () {
1570
+ queryFn: () => __async(void 0, null, function* () {
1571
1571
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1572
1572
  projectId,
1573
1573
  endDate,
@@ -1586,7 +1586,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1586
1586
  projectId,
1587
1587
  referenceDate
1588
1588
  ],
1589
- queryFn: () => __async(null, null, function* () {
1589
+ queryFn: () => __async(void 0, null, function* () {
1590
1590
  return import_evoland_api_proxy4.ProjectService.locationLatestTaskLocationtaskLocationIdLocationIdProjectIdProjectIdReferenceDateReferenceDateGet(
1591
1591
  locationId,
1592
1592
  projectId,
@@ -1598,7 +1598,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1598
1598
  var useAssignProjectToUser = (userRoleRequest, update) => {
1599
1599
  return (0, import_react_query38.useQuery)({
1600
1600
  queryKey: [QueryConstants.GetProjectDetails, userRoleRequest, update],
1601
- queryFn: () => __async(null, null, function* () {
1601
+ queryFn: () => __async(void 0, null, function* () {
1602
1602
  if (update)
1603
1603
  return import_evoland_api_proxy4.ProjectService.setUserRoleSetuserrolePost(userRoleRequest);
1604
1604
  }),
@@ -1608,7 +1608,7 @@ var useAssignProjectToUser = (userRoleRequest, update) => {
1608
1608
  var useGetUserProject = (user_id, fetchData) => {
1609
1609
  return (0, import_react_query38.useQuery)({
1610
1610
  queryKey: [QueryConstants.GetUserProject, user_id, fetchData],
1611
- queryFn: () => __async(null, null, function* () {
1611
+ queryFn: () => __async(void 0, null, function* () {
1612
1612
  if (fetchData)
1613
1613
  return import_evoland_api_proxy4.ProjectService.getUserRoleProjectGetuserroleprojectUserIdUserIdGet(
1614
1614
  user_id
@@ -1619,7 +1619,7 @@ var useGetUserProject = (user_id, fetchData) => {
1619
1619
  var useUpdateUserDetail = (userDetailRequest, update) => {
1620
1620
  return (0, import_react_query38.useQuery)({
1621
1621
  queryKey: [QueryConstants.SetUserDetail, userDetailRequest, update],
1622
- queryFn: () => __async(null, null, function* () {
1622
+ queryFn: () => __async(void 0, null, function* () {
1623
1623
  if (update)
1624
1624
  return import_evoland_api_proxy4.ProjectService.setUserDetailSetuserdetailPost(userDetailRequest);
1625
1625
  })
@@ -1633,7 +1633,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1633
1633
  download,
1634
1634
  userRole
1635
1635
  ],
1636
- queryFn: () => __async(null, null, function* () {
1636
+ queryFn: () => __async(void 0, null, function* () {
1637
1637
  if (userRole == "admin" && download)
1638
1638
  return import_evoland_api_proxy4.ProjectService.getLocationsSummaryLocationssummaryProjectIdProjectIdGet(
1639
1639
  projectId
@@ -1644,7 +1644,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1644
1644
  var useQuestionnaire = (projectId) => {
1645
1645
  return (0, import_react_query38.useQuery)({
1646
1646
  queryKey: [QueryConstants.GetQuestionnaireForProject, projectId],
1647
- queryFn: () => __async(null, null, function* () {
1647
+ queryFn: () => __async(void 0, null, function* () {
1648
1648
  return import_evoland_api_proxy4.QuestionService.getProjectQuestionsAnswersQuestionsAnswersProjectIdProjectIdGet(
1649
1649
  projectId
1650
1650
  );
@@ -1654,7 +1654,7 @@ var useQuestionnaire = (projectId) => {
1654
1654
  var useTaskAnswers = (taskId) => {
1655
1655
  return (0, import_react_query38.useQuery)({
1656
1656
  queryKey: [QueryConstants.GetTaskAnswers, taskId],
1657
- queryFn: () => __async(null, null, function* () {
1657
+ queryFn: () => __async(void 0, null, function* () {
1658
1658
  return import_evoland_api_proxy4.TaskService.getTaskAnswersTaskanswersTaskIdTaskIdGet(taskId);
1659
1659
  })
1660
1660
  });
@@ -1662,7 +1662,7 @@ var useTaskAnswers = (taskId) => {
1662
1662
  var useProjectResultSet = (download, projectId, is_geo_json) => {
1663
1663
  return (0, import_react_query38.useQuery)({
1664
1664
  queryKey: [QueryConstants.GetProjectResultSet, download, projectId, is_geo_json],
1665
- queryFn: () => __async(null, null, function* () {
1665
+ queryFn: () => __async(void 0, null, function* () {
1666
1666
  return import_evoland_api_proxy4.ProjectService.projectResultSetProjectresultsetProjectIdProjectIdIsGeoJsonIsGeoJsonGet(projectId, is_geo_json);
1667
1667
  }),
1668
1668
  enabled: !!download && !!projectId
@@ -1674,7 +1674,7 @@ var import_react_query39 = require("@tanstack/react-query");
1674
1674
  var useApiImage = (imageId) => {
1675
1675
  return (0, import_react_query39.useQuery)({
1676
1676
  queryKey: [QueryConstants.GetApiImage, imageId],
1677
- queryFn: () => __async(null, null, function* () {
1677
+ queryFn: () => __async(void 0, null, function* () {
1678
1678
  const res = yield fetch(`/api/api-image/${imageId}`);
1679
1679
  const data = yield res.json();
1680
1680
  return data.fileUrl;
@@ -1687,7 +1687,7 @@ var import_react_query40 = require("@tanstack/react-query");
1687
1687
  var useCmsImage = (imageId) => {
1688
1688
  return (0, import_react_query40.useQuery)({
1689
1689
  queryKey: [QueryConstants.GetCmsImage, imageId],
1690
- queryFn: () => __async(null, null, function* () {
1690
+ queryFn: () => __async(void 0, null, function* () {
1691
1691
  const res = yield fetch(`/api/cms-image/${imageId}`);
1692
1692
  const data = yield res.json();
1693
1693
  return data.fileUrl;
@@ -1701,7 +1701,7 @@ var import_react_query41 = require("@tanstack/react-query");
1701
1701
  var useClusterGetJoinRequests = (clusterId) => {
1702
1702
  return (0, import_react_query41.useQuery)({
1703
1703
  queryKey: [QueryNames.JoinRequests, clusterId],
1704
- queryFn: () => __async(null, null, function* () {
1704
+ queryFn: () => __async(void 0, null, function* () {
1705
1705
  const data = yield import_api_proxy26.ClusterService.clusterGetJoinRequests(clusterId);
1706
1706
  return data;
1707
1707
  })
@@ -1714,7 +1714,7 @@ var import_react_query42 = require("@tanstack/react-query");
1714
1714
  var useClusterGetNews = (clusterId, newsId) => {
1715
1715
  return (0, import_react_query42.useQuery)({
1716
1716
  queryKey: [QueryNames.ClusterGetNews, clusterId, newsId],
1717
- queryFn: () => __async(null, null, function* () {
1717
+ queryFn: () => __async(void 0, null, function* () {
1718
1718
  const data = yield import_api_proxy27.ClusterService.clusterGetNews(clusterId, newsId);
1719
1719
  return data;
1720
1720
  })
@@ -1727,7 +1727,7 @@ var import_react_query43 = require("@tanstack/react-query");
1727
1727
  var useClusterGetNewsNextPreviousStatus = (clusterId, newsId) => {
1728
1728
  return (0, import_react_query43.useQuery)({
1729
1729
  queryKey: [QueryNames.ClusterNewsNextPrevious, clusterId, newsId],
1730
- queryFn: () => __async(null, null, function* () {
1730
+ queryFn: () => __async(void 0, null, function* () {
1731
1731
  const data = yield import_api_proxy28.ClusterService.clusterGetNewsNextPreviousStatus(
1732
1732
  clusterId,
1733
1733
  newsId
@@ -1743,7 +1743,7 @@ var import_react_query44 = require("@tanstack/react-query");
1743
1743
  var useClusterImages = (id) => {
1744
1744
  return (0, import_react_query44.useQuery)({
1745
1745
  queryKey: [QueryNames.ClusterImages, id],
1746
- queryFn: () => __async(null, null, function* () {
1746
+ queryFn: () => __async(void 0, null, function* () {
1747
1747
  const data = yield import_api_proxy29.ClusterService.clusterGetClusterImages(id);
1748
1748
  return data;
1749
1749
  })
@@ -1756,7 +1756,7 @@ var import_react_query45 = require("@tanstack/react-query");
1756
1756
  var useClusterOverview = (id) => {
1757
1757
  return (0, import_react_query45.useQuery)({
1758
1758
  queryKey: [QueryNames.GetClusterOverview, id],
1759
- queryFn: () => __async(null, null, function* () {
1759
+ queryFn: () => __async(void 0, null, function* () {
1760
1760
  const data = yield import_api_proxy30.ClusterService.clusterGetClusterOverview(id);
1761
1761
  return data;
1762
1762
  })
@@ -1777,7 +1777,7 @@ var useClusterAllNews = (id, refresh, sorting, skipCount, maxResultCount, status
1777
1777
  refresh,
1778
1778
  status
1779
1779
  ],
1780
- queryFn: () => __async(null, null, function* () {
1780
+ queryFn: () => __async(void 0, null, function* () {
1781
1781
  const data = yield import_api_proxy31.ClusterService.clusterGetAllNews(
1782
1782
  id,
1783
1783
  sorting,
@@ -1796,7 +1796,7 @@ var import_react_query47 = require("@tanstack/react-query");
1796
1796
  var useNewsFromAllClusters = (skip = 0, take = 10) => {
1797
1797
  return (0, import_react_query47.useQuery)({
1798
1798
  queryKey: [QueryNames.ClusterAllNews, skip, take],
1799
- queryFn: () => __async(null, null, function* () {
1799
+ queryFn: () => __async(void 0, null, function* () {
1800
1800
  const data = yield import_api_proxy32.ClusterService.clusterGetAllNewsFromAllClusters(
1801
1801
  "",
1802
1802
  skip,
@@ -1813,7 +1813,7 @@ var import_react_query48 = require("@tanstack/react-query");
1813
1813
  var useClusterNewsWithId = (id) => {
1814
1814
  return (0, import_react_query48.useQuery)({
1815
1815
  queryKey: [QueryNames.ClusterNewsWithId, id],
1816
- queryFn: () => __async(null, null, function* () {
1816
+ queryFn: () => __async(void 0, null, function* () {
1817
1817
  const data = yield import_api_proxy33.ClusterService.clusterGetClusterNewsById(id);
1818
1818
  return data;
1819
1819
  })
@@ -1825,15 +1825,15 @@ var import_react_query49 = require("@tanstack/react-query");
1825
1825
 
1826
1826
  // src/utils/CmsApi.ts
1827
1827
  var import_cms_proxy7 = require("@geowiki/cms-proxy");
1828
- var getGeoWikiSettings = () => __async(null, null, function* () {
1828
+ var getGeoWikiSettings = () => __async(void 0, null, function* () {
1829
1829
  const req = yield import_cms_proxy7.SettingsService.settingsGetSiteSettings("GeoWiki");
1830
1830
  return req;
1831
1831
  });
1832
- var getDefaultSettings = () => __async(null, null, function* () {
1832
+ var getDefaultSettings = () => __async(void 0, null, function* () {
1833
1833
  const req = yield import_cms_proxy7.SettingsService.settingsGetDefaultSiteSettings();
1834
1834
  return req;
1835
1835
  });
1836
- var getMenus = (displayName) => __async(null, null, function* () {
1836
+ var getMenus = (displayName) => __async(void 0, null, function* () {
1837
1837
  const req = yield getContentWithTypeAndDisplayName(
1838
1838
  "Menu",
1839
1839
  displayName
@@ -1841,7 +1841,7 @@ var getMenus = (displayName) => __async(null, null, function* () {
1841
1841
  const menus = req == null ? void 0 : req.items[0];
1842
1842
  return menus;
1843
1843
  });
1844
- var getPageContent = (displayName) => __async(null, null, function* () {
1844
+ var getPageContent = (displayName) => __async(void 0, null, function* () {
1845
1845
  const req = yield getContentWithTypeAndDisplayName(
1846
1846
  "Page",
1847
1847
  displayName
@@ -1849,27 +1849,27 @@ var getPageContent = (displayName) => __async(null, null, function* () {
1849
1849
  const page = req == null ? void 0 : req.items[0];
1850
1850
  return page;
1851
1851
  });
1852
- var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(null, null, function* () {
1852
+ var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(void 0, null, function* () {
1853
1853
  return import_cms_proxy7.QueryApiService.apiQueryGet(
1854
1854
  "GetContentByTypeAndDisplayText",
1855
1855
  `${JSON.stringify({ contenttype: contentType, displaytext: displayName })}`
1856
1856
  );
1857
1857
  });
1858
- var getContentWithSlug = (slug) => __async(null, null, function* () {
1858
+ var getContentWithSlug = (slug) => __async(void 0, null, function* () {
1859
1859
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1860
1860
  "GetDocumentBySlug",
1861
1861
  `${JSON.stringify({ path: slug })}`
1862
1862
  );
1863
1863
  return req == null ? void 0 : req.items[0];
1864
1864
  });
1865
- var getContentsWithType = (contentType) => __async(null, null, function* () {
1865
+ var getContentsWithType = (contentType) => __async(void 0, null, function* () {
1866
1866
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1867
1867
  "GetContentByType",
1868
1868
  `${JSON.stringify({ contenttype: contentType })}`
1869
1869
  );
1870
1870
  return req == null ? void 0 : req.items;
1871
1871
  });
1872
- var getPageProps = (ctx) => __async(null, null, function* () {
1872
+ var getPageProps = (ctx) => __async(void 0, null, function* () {
1873
1873
  var _a;
1874
1874
  var page = "index";
1875
1875
  const slugs = ctx.query.slug;
@@ -1887,7 +1887,7 @@ var getPageProps = (ctx) => __async(null, null, function* () {
1887
1887
  var useMapMenuItems = () => {
1888
1888
  return (0, import_react_query49.useQuery)({
1889
1889
  queryKey: [QueryNames.MapMenuItems],
1890
- queryFn: () => __async(null, null, function* () {
1890
+ queryFn: () => __async(void 0, null, function* () {
1891
1891
  const req = yield getContentsWithType("MapMenuItem");
1892
1892
  return req;
1893
1893
  })
@@ -1900,7 +1900,7 @@ var import_react_query50 = require("@tanstack/react-query");
1900
1900
  var useClusterLinks = (id) => {
1901
1901
  return (0, import_react_query50.useQuery)({
1902
1902
  queryKey: [QueryNames.GetSocialLinks, id],
1903
- queryFn: () => __async(null, null, function* () {
1903
+ queryFn: () => __async(void 0, null, function* () {
1904
1904
  const data = yield import_api_proxy34.ClusterService.clusterGetLinksAndPartner(id);
1905
1905
  return data;
1906
1906
  })
@@ -1912,7 +1912,7 @@ var import_react_query51 = require("@tanstack/react-query");
1912
1912
  var useCmsContentWithType = (contentType) => {
1913
1913
  return (0, import_react_query51.useQuery)({
1914
1914
  queryKey: [QueryNames.GetCmsContentWithType],
1915
- queryFn: () => __async(null, null, function* () {
1915
+ queryFn: () => __async(void 0, null, function* () {
1916
1916
  const req = yield getContentsWithType(contentType);
1917
1917
  return req;
1918
1918
  })
@@ -1925,7 +1925,7 @@ var import_react_query52 = require("@tanstack/react-query");
1925
1925
  var useClusterNews = (id, sort = "", skip = 0, take = 100) => {
1926
1926
  return (0, import_react_query52.useQuery)({
1927
1927
  queryKey: [QueryNames.ClusterNews, id, sort, skip, take],
1928
- queryFn: () => __async(null, null, function* () {
1928
+ queryFn: () => __async(void 0, null, function* () {
1929
1929
  const data = yield import_api_proxy35.ClusterService.clusterGetClusterNews(
1930
1930
  id,
1931
1931
  sort,
@@ -1943,7 +1943,7 @@ var import_react_query53 = require("@tanstack/react-query");
1943
1943
  var useClusterDescription = (id) => {
1944
1944
  return (0, import_react_query53.useQuery)({
1945
1945
  queryKey: [QueryNames.GetClusterDescription, id],
1946
- queryFn: () => __async(null, null, function* () {
1946
+ queryFn: () => __async(void 0, null, function* () {
1947
1947
  const data = yield import_api_proxy36.ClusterService.clusterGetClusterDescription(id);
1948
1948
  return data;
1949
1949
  })
@@ -1956,7 +1956,7 @@ var import_react_query54 = require("@tanstack/react-query");
1956
1956
  var useClusterDetails = (id) => {
1957
1957
  return (0, import_react_query54.useQuery)({
1958
1958
  queryKey: [QueryNames.GetClusterDetails, id],
1959
- queryFn: () => __async(null, null, function* () {
1959
+ queryFn: () => __async(void 0, null, function* () {
1960
1960
  const data = yield import_api_proxy37.ClusterService.clusterGetClusterDetails(id);
1961
1961
  return data;
1962
1962
  })
@@ -1969,7 +1969,7 @@ var import_react_query55 = require("@tanstack/react-query");
1969
1969
  var useClusterImagesAndVideos = (id) => {
1970
1970
  return (0, import_react_query55.useQuery)({
1971
1971
  queryKey: [QueryNames.GetImagesAndVideos, id],
1972
- queryFn: () => __async(null, null, function* () {
1972
+ queryFn: () => __async(void 0, null, function* () {
1973
1973
  const data = yield import_api_proxy38.ClusterService.clusterGetImagesAndVideos(id);
1974
1974
  return data;
1975
1975
  })
@@ -1978,7 +1978,7 @@ var useClusterImagesAndVideos = (id) => {
1978
1978
 
1979
1979
  // src/hooks/useHost.ts
1980
1980
  var import_react_query56 = require("@tanstack/react-query");
1981
- var getHost = () => __async(null, null, function* () {
1981
+ var getHost = () => __async(void 0, null, function* () {
1982
1982
  const response = yield fetch("/api/host");
1983
1983
  if (!response.ok) {
1984
1984
  return Promise.reject(null);
@@ -1994,7 +1994,7 @@ function useHost() {
1994
1994
 
1995
1995
  // src/hooks/useHostManagement.ts
1996
1996
  var import_react_query57 = require("@tanstack/react-query");
1997
- var createHost = (hostData) => __async(null, null, function* () {
1997
+ var createHost = (hostData) => __async(void 0, null, function* () {
1998
1998
  const response = yield fetch("/api/hosts", {
1999
1999
  method: "POST",
2000
2000
  headers: {
@@ -2007,7 +2007,7 @@ var createHost = (hostData) => __async(null, null, function* () {
2007
2007
  }
2008
2008
  return response.json();
2009
2009
  });
2010
- var updateHost = (_a) => __async(null, null, function* () {
2010
+ var updateHost = (_a) => __async(void 0, null, function* () {
2011
2011
  var _b = _a, {
2012
2012
  host
2013
2013
  } = _b, hostData = __objRest(_b, [
@@ -2025,7 +2025,7 @@ var updateHost = (_a) => __async(null, null, function* () {
2025
2025
  }
2026
2026
  return response.json();
2027
2027
  });
2028
- var deleteHost = (host) => __async(null, null, function* () {
2028
+ var deleteHost = (host) => __async(void 0, null, function* () {
2029
2029
  const response = yield fetch(`/api/hosts/${host}`, {
2030
2030
  method: "DELETE"
2031
2031
  });
@@ -2316,7 +2316,8 @@ var HostService = class {
2316
2316
  * Utility: Check if a path is protected for a host
2317
2317
  */
2318
2318
  static isPathProtected(hostInfo, path) {
2319
- if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths)) return false;
2319
+ if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths))
2320
+ return false;
2320
2321
  return hostInfo.protectedPaths.some(
2321
2322
  (protectedPath) => path.startsWith(protectedPath)
2322
2323
  );
@@ -2376,7 +2377,8 @@ var HostService = class {
2376
2377
  * Utility: Get host info for current window location (client-side only)
2377
2378
  */
2378
2379
  static getCurrentHostInfo(hosts) {
2379
- if (typeof window === "undefined") return void 0;
2380
+ if (typeof window === "undefined")
2381
+ return void 0;
2380
2382
  return hosts.find((h) => h.host === window.location.host);
2381
2383
  }
2382
2384
  /**