@geowiki/core 0.16.9-dev.2 → 0.16.9-dev.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -77,8 +77,8 @@ var __async = (__this, __arguments, generator) => {
77
77
  };
78
78
 
79
79
  // src/index.tsx
80
- var src_exports = {};
81
- __export(src_exports, {
80
+ var index_exports = {};
81
+ __export(index_exports, {
82
82
  ActivityStatus: () => ActivityStatus,
83
83
  AdminMenus: () => AdminMenus,
84
84
  AnnotationRequired: () => AnnotationRequired,
@@ -88,13 +88,21 @@ __export(src_exports, {
88
88
  ColorArrayCSSClass: () => ColorArrayCSSClass,
89
89
  Config: () => Config,
90
90
  DOTS: () => DOTS,
91
+ DefaultHead: () => DefaultHead,
92
+ DefaultImage: () => DefaultImage,
93
+ DefaultLink: () => DefaultLink,
94
+ DefaultScript: () => DefaultScript,
91
95
  FarmingSystem: () => FarmingSystem,
92
96
  Features: () => Features,
97
+ FrameworkProvider: () => FrameworkProvider,
98
+ Head: () => Head,
93
99
  HostService: () => HostService,
94
100
  HostType: () => HostType,
95
101
  HuntingManagement: () => HuntingManagement,
102
+ Image: () => Image,
96
103
  ImageError: () => ImageError,
97
104
  IsTokenExpired: () => IsTokenExpired,
105
+ Link: () => Link,
98
106
  LiveStock: () => LiveStock,
99
107
  LookUps: () => LookUps,
100
108
  MainAgriculturalAreas: () => MainAgriculturalAreas,
@@ -109,6 +117,7 @@ __export(src_exports, {
109
117
  ResourcesMenu: () => ResourcesMenu,
110
118
  Responsive: () => Responsive,
111
119
  SESSION_QUERY_KEY: () => SESSION_QUERY_KEY,
120
+ Script: () => Script,
112
121
  SessionProvider: () => SessionProvider,
113
122
  StyleType: () => StyleType,
114
123
  TaskEventType: () => TaskEventType,
@@ -119,9 +128,11 @@ __export(src_exports, {
119
128
  ViewStatus: () => ViewStatus,
120
129
  classNames: () => classNames,
121
130
  configStore: () => configStore,
131
+ defaultDynamic: () => defaultDynamic,
122
132
  delayedSlideInUp: () => delayedSlideInUp,
123
133
  downloadData: () => downloadData,
124
134
  downloadJSON: () => downloadJSON,
135
+ dynamic: () => dynamic,
125
136
  easing: () => easing,
126
137
  findHostInfo: () => findHostInfo,
127
138
  formatUnixDate: () => formatUnixDate,
@@ -146,6 +157,7 @@ __export(src_exports, {
146
157
  itemVariants: () => itemVariants,
147
158
  keyStr: () => keyStr,
148
159
  listVariants: () => listVariants,
160
+ queryToSearchParams: () => queryToSearchParams,
149
161
  rgbDataURL: () => rgbDataURL,
150
162
  routes: () => routes,
151
163
  scrollToFirstErrorElement: () => scrollToFirstErrorElement,
@@ -166,6 +178,7 @@ __export(src_exports, {
166
178
  trackUmamiEvent: () => trackUmamiEvent,
167
179
  trackUserEvent: () => trackUserEvent,
168
180
  triplet: () => triplet,
181
+ unwrapDefault: () => unwrapDefault,
169
182
  useAllNewsFromAllClusters: () => useAllNewsFromAllClusters,
170
183
  useApiImage: () => useApiImage,
171
184
  useApiUrl: () => useApiUrl,
@@ -199,7 +212,12 @@ __export(src_exports, {
199
212
  useCountries: () => useCountries,
200
213
  useCreateHost: () => useCreateHost,
201
214
  useCurrentUser: () => useCurrentUser,
215
+ useDefaultI18n: () => useDefaultI18n,
216
+ useDefaultNavigationRouter: () => useDefaultNavigationRouter,
217
+ useDefaultRouter: () => useDefaultRouter,
218
+ useDefaultSearchParams: () => useDefaultSearchParams,
202
219
  useDefaultSettings: () => useDefaultSettings,
220
+ useDefaultTheme: () => useDefaultTheme,
203
221
  useDeleteHost: () => useDeleteHost,
204
222
  useDimensions: () => useDimensions,
205
223
  useEmailing: () => useEmailing,
@@ -211,12 +229,14 @@ __export(src_exports, {
211
229
  useFileUpload: () => useFileUpload,
212
230
  useFileUrl: () => useFileUrl,
213
231
  useFilterClusters: () => useFilterClusters,
232
+ useFrameworkAdapters: () => useFrameworkAdapters,
214
233
  useGeoWikiSettings: () => useGeoWikiSettings,
215
234
  useGetUserProject: () => useGetUserProject,
216
235
  useGrantedPolicies: () => useGrantedPolicies,
217
236
  useGroupsInProject: () => useGroupsInProject,
218
237
  useHost: () => useHost,
219
238
  useHosts: () => useHosts,
239
+ useI18n: () => useI18n,
220
240
  useImageUrl: () => useImageUrl,
221
241
  useIntroTourSettings: () => useIntroTourSettings,
222
242
  useIsAdmin: () => useIsAdmin,
@@ -232,6 +252,7 @@ __export(src_exports, {
232
252
  useLockBodyScroll: () => useLockBodyScroll,
233
253
  useLookUp: () => useLookUp,
234
254
  useMapMenuItems: () => useMapMenuItems,
255
+ useNavigationRouter: () => useNavigationRouter,
235
256
  useNews: () => useNews,
236
257
  useNewsFromAllClusters: () => useNewsFromAllClusters,
237
258
  usePagination: () => usePagination,
@@ -254,6 +275,8 @@ __export(src_exports, {
254
275
  useResourceType: () => useResourceType,
255
276
  useReviewTaskBulkUpload: () => useReviewTaskBulkUpload,
256
277
  useRoles: () => useRoles,
278
+ useRouter: () => useRouter,
279
+ useSearchParams: () => useSearchParams,
257
280
  useSession: () => useSession,
258
281
  useTaskAnnotation: () => useTaskAnnotation,
259
282
  useTaskAnswers: () => useTaskAnswers,
@@ -265,6 +288,7 @@ __export(src_exports, {
265
288
  useTaskStatusList: () => useTaskStatusList,
266
289
  useTasksPerLocation: () => useTasksPerLocation,
267
290
  useTenants: () => useTenants,
291
+ useTheme: () => useTheme,
268
292
  useTopic: () => useTopic,
269
293
  useUpdateActiveGroupInProject: () => useUpdateActiveGroupInProject,
270
294
  useUpdateHost: () => useUpdateHost,
@@ -273,7 +297,7 @@ __export(src_exports, {
273
297
  useUserRoles: () => useUserRoles,
274
298
  useUsers: () => useUsers
275
299
  });
276
- module.exports = __toCommonJS(src_exports);
300
+ module.exports = __toCommonJS(index_exports);
277
301
 
278
302
  // src/Animation.ts
279
303
  var easing = [0.175, 0.85, 0.42, 0.96];
@@ -499,7 +523,7 @@ var import_evoland_api_proxy = require("@geowiki/evoland-api-proxy");
499
523
  var useEvolandWmsLayers = () => {
500
524
  return (0, import_react_query2.useQuery)({
501
525
  queryKey: [QueryNames.GetAvailableWmsLayers],
502
- queryFn: () => __async(void 0, null, function* () {
526
+ queryFn: () => __async(null, null, function* () {
503
527
  const data = yield import_evoland_api_proxy.ProjectService.getAvailableLayersAvailablelayersGet();
504
528
  return data;
505
529
  })
@@ -529,7 +553,7 @@ var import_api_proxy = require("@geowiki/api-proxy");
529
553
  var useAppConfig = () => {
530
554
  return (0, import_react_query3.useQuery)({
531
555
  queryKey: [QueryConstants.GetAppConfig],
532
- queryFn: () => __async(void 0, null, function* () {
556
+ queryFn: () => __async(null, null, function* () {
533
557
  const data = yield import_api_proxy.AbpApplicationConfigurationService.abpApplicationConfigurationGet();
534
558
  return data;
535
559
  }),
@@ -544,7 +568,7 @@ var import_react_query4 = require("@tanstack/react-query");
544
568
  var useAudience = () => {
545
569
  return (0, import_react_query4.useQuery)({
546
570
  queryKey: [QueryNames.GetAudience],
547
- queryFn: () => __async(void 0, null, function* () {
571
+ queryFn: () => __async(null, null, function* () {
548
572
  const data = yield import_api_proxy2.ResourceService.resourceGetAvailableAudience();
549
573
  return data;
550
574
  }),
@@ -560,7 +584,7 @@ var import_react_query5 = require("@tanstack/react-query");
560
584
  var useCluster = (id) => {
561
585
  return (0, import_react_query5.useQuery)({
562
586
  queryKey: [QueryNames.Cluster, id],
563
- queryFn: () => __async(void 0, null, function* () {
587
+ queryFn: () => __async(null, null, function* () {
564
588
  const data = yield import_api_proxy3.ClusterService.clusterGet(id);
565
589
  return data;
566
590
  })
@@ -573,7 +597,7 @@ var import_react_query6 = require("@tanstack/react-query");
573
597
  var useClusterFilterSettings = () => {
574
598
  return (0, import_react_query6.useQuery)({
575
599
  queryKey: [QueryNames.GetClusterFilterSettings],
576
- queryFn: () => __async(void 0, null, function* () {
600
+ queryFn: () => __async(null, null, function* () {
577
601
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("ClusterFilter");
578
602
  return req;
579
603
  })
@@ -582,7 +606,7 @@ var useClusterFilterSettings = () => {
582
606
  var useConfigSettings = () => {
583
607
  return (0, import_react_query6.useQuery)({
584
608
  queryKey: [QueryNames.GetConfig],
585
- queryFn: () => __async(void 0, null, function* () {
609
+ queryFn: () => __async(null, null, function* () {
586
610
  var req = yield import_cms_proxy.SettingsService.settingsGetSiteSettings("Config");
587
611
  return req;
588
612
  })
@@ -595,7 +619,7 @@ var import_react_query7 = require("@tanstack/react-query");
595
619
  var useClusterMapInfo = () => {
596
620
  return (0, import_react_query7.useQuery)({
597
621
  queryKey: [QueryNames.GetClusterForMap],
598
- queryFn: () => __async(void 0, null, function* () {
622
+ queryFn: () => __async(null, null, function* () {
599
623
  const data = yield import_api_proxy4.ClusterService.clusterGetMapInfo();
600
624
  return data;
601
625
  })
@@ -608,7 +632,7 @@ var import_react_query8 = require("@tanstack/react-query");
608
632
  var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
609
633
  return (0, import_react_query8.useQuery)({
610
634
  queryKey: [QueryNames.Clusters, skip, take],
611
- queryFn: () => __async(void 0, null, function* () {
635
+ queryFn: () => __async(null, null, function* () {
612
636
  if (fetchAll) {
613
637
  const data = yield import_api_proxy5.ClusterService.clusterGetAllClusters(
614
638
  sort,
@@ -627,7 +651,7 @@ var useClusters = (fetchAll = false, sort = "", skip = 0, take = 100) => {
627
651
  var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
628
652
  return (0, import_react_query8.useQuery)({
629
653
  queryKey: [QueryNames.GetFarmerClusterNews, sort, skip, take],
630
- queryFn: () => __async(void 0, null, function* () {
654
+ queryFn: () => __async(null, null, function* () {
631
655
  const data = yield import_api_proxy5.ClusterService.clusterGetAllNewsFromAllClusters(
632
656
  sort,
633
657
  skip,
@@ -640,7 +664,7 @@ var useAllNewsFromAllClusters = (sort = "", skip = 0, take = 100) => {
640
664
 
641
665
  // src/hooks/useHosts.ts
642
666
  var import_react_query9 = require("@tanstack/react-query");
643
- var getHosts = () => __async(void 0, null, function* () {
667
+ var getHosts = () => __async(null, null, function* () {
644
668
  const response = yield fetch("/api/hosts");
645
669
  if (!response.ok) {
646
670
  throw new Error("Failed to fetch hosts");
@@ -680,7 +704,7 @@ var import_api_proxy6 = require("@geowiki/api-proxy");
680
704
  var useCountries = (fetchAll = false) => {
681
705
  return (0, import_react_query10.useQuery)({
682
706
  queryKey: [QueryNames.GetCountries, fetchAll],
683
- queryFn: () => __async(void 0, null, function* () {
707
+ queryFn: () => __async(null, null, function* () {
684
708
  const data = yield import_api_proxy6.ClusterService.clusterGetCountries(fetchAll);
685
709
  data.sort((a, b) => {
686
710
  if (!a.country || !b.country) {
@@ -731,7 +755,7 @@ var useFileUrl = () => {
731
755
  var useFileUpload = (formData) => {
732
756
  return (0, import_react_query11.useQuery)({
733
757
  queryKey: [QueryNames.FileUpload, formData],
734
- queryFn: () => __async(void 0, null, function* () {
758
+ queryFn: () => __async(null, null, function* () {
735
759
  const data = yield import_api_proxy7.FileService.fileUpload(formData);
736
760
  return data;
737
761
  })
@@ -754,7 +778,7 @@ var useFilterClusters = (filter) => {
754
778
  filter.mainAgriculturalAreas,
755
779
  filter.sort
756
780
  ],
757
- queryFn: () => __async(void 0, null, function* () {
781
+ queryFn: () => __async(null, null, function* () {
758
782
  const data = yield import_api_proxy8.ClusterService.clusterFilter(filter);
759
783
  return data;
760
784
  })
@@ -767,7 +791,7 @@ var import_react_query13 = require("@tanstack/react-query");
767
791
  var useGeoWikiSettings = () => {
768
792
  return (0, import_react_query13.useQuery)({
769
793
  queryKey: [QueryNames.GetAppSettings],
770
- queryFn: () => __async(void 0, null, function* () {
794
+ queryFn: () => __async(null, null, function* () {
771
795
  var req = yield import_cms_proxy2.SettingsService.settingsGetSiteSettings("GeoWiki");
772
796
  return req;
773
797
  })
@@ -786,7 +810,7 @@ var import_react_query14 = require("@tanstack/react-query");
786
810
  var useIntroTourSettings = () => {
787
811
  return (0, import_react_query14.useQuery)({
788
812
  queryKey: [QueryNames.GetIntroTour],
789
- queryFn: () => __async(void 0, null, function* () {
813
+ queryFn: () => __async(null, null, function* () {
790
814
  var req = yield import_cms_proxy3.SettingsService.settingsGetSiteSettings("IntroTour");
791
815
  return req;
792
816
  })
@@ -823,7 +847,7 @@ var import_react_query15 = require("@tanstack/react-query");
823
847
  var useLanguages = () => {
824
848
  return (0, import_react_query15.useQuery)({
825
849
  queryKey: [QueryNames.GetLanguages],
826
- queryFn: () => __async(void 0, null, function* () {
850
+ queryFn: () => __async(null, null, function* () {
827
851
  const data = yield import_api_proxy9.ResourceService.resourceGetAvailableLanguages();
828
852
  return data;
829
853
  }),
@@ -838,7 +862,7 @@ var import_react_query16 = require("@tanstack/react-query");
838
862
  var useLayerInfo = (url, layerName) => {
839
863
  return (0, import_react_query16.useQuery)({
840
864
  queryKey: [QueryNames.GetUseLayerInfo, url, layerName],
841
- queryFn: () => __async(void 0, null, function* () {
865
+ queryFn: () => __async(null, null, function* () {
842
866
  var legendUrl = url + "?service=WMS&version=1.1.0&request=GetLegendGraphic&layer=" + layerName + "&format=application/json";
843
867
  var res = yield fetch(legendUrl);
844
868
  var data = yield res.json();
@@ -863,7 +887,7 @@ function useLocation() {
863
887
  var useLocationsForProject = (locationreq) => {
864
888
  return (0, import_react_query17.useQuery)({
865
889
  queryKey: [QueryConstants.GetLocations, locationreq],
866
- queryFn: () => __async(void 0, null, function* () {
890
+ queryFn: () => __async(null, null, function* () {
867
891
  return import_evoland_api_proxy2.ProjectService.searchLocationsLocationsPost(locationreq);
868
892
  })
869
893
  });
@@ -871,7 +895,7 @@ var useLocationsForProject = (locationreq) => {
871
895
  var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
872
896
  return (0, import_react_query17.useQuery)({
873
897
  queryKey: [QueryConstants.UploadLocations, uploadLocations, file, group_id],
874
- queryFn: () => __async(void 0, null, function* () {
898
+ queryFn: () => __async(null, null, function* () {
875
899
  try {
876
900
  const res = yield import_evoland_api_proxy2.LocationService.bulkUploadLocationsUploadlocationsPost({ file, project_id, group_id });
877
901
  return res;
@@ -885,7 +909,7 @@ var useLocationBulkUpload = (uploadLocations, file, project_id, group_id) => {
885
909
  var useTaskBulkUpload = (uploadTasks, file, project_id) => {
886
910
  return (0, import_react_query17.useQuery)({
887
911
  queryKey: [QueryConstants.UploadTasks, uploadTasks, file],
888
- queryFn: () => __async(void 0, null, function* () {
912
+ queryFn: () => __async(null, null, function* () {
889
913
  try {
890
914
  return import_evoland_api_proxy2.LocationService.uploadLocationTaskUploadlocationtaskPost({ file, project_id });
891
915
  } catch (error) {
@@ -898,7 +922,7 @@ var useTaskBulkUpload = (uploadTasks, file, project_id) => {
898
922
  var useReviewTaskBulkUpload = (uploadReviewTasks, file, project_id) => {
899
923
  return (0, import_react_query17.useQuery)({
900
924
  queryKey: [QueryConstants.UploadReviewTasks, uploadReviewTasks, file],
901
- queryFn: () => __async(void 0, null, function* () {
925
+ queryFn: () => __async(null, null, function* () {
902
926
  try {
903
927
  return import_evoland_api_proxy2.LocationService.bulkUploadReviewTasksUploadreviewtasksPost({ file, project_id });
904
928
  } catch (error) {
@@ -931,7 +955,7 @@ var import_api_proxy10 = require("@geowiki/api-proxy");
931
955
  var useNews = (lang = "all", skip = 0, take = 100) => {
932
956
  return (0, import_react_query19.useQuery)({
933
957
  queryKey: [QueryNames.GetNews, lang, skip, take],
934
- queryFn: () => __async(void 0, null, function* () {
958
+ queryFn: () => __async(null, null, function* () {
935
959
  if (lang == "all") {
936
960
  const res2 = yield import_api_proxy10.NewsService.newsGetExternalNews("", skip, take);
937
961
  return res2.items;
@@ -1012,7 +1036,7 @@ var import_react_query20 = require("@tanstack/react-query");
1012
1036
  var usePublicationSettings = () => {
1013
1037
  return (0, import_react_query20.useQuery)({
1014
1038
  queryKey: [QueryNames.GetPublicationSettings],
1015
- queryFn: () => __async(void 0, null, function* () {
1039
+ queryFn: () => __async(null, null, function* () {
1016
1040
  var req = yield import_cms_proxy5.SettingsService.settingsGetSiteSettings("Publication");
1017
1041
  return req;
1018
1042
  })
@@ -1025,7 +1049,7 @@ var import_react_query21 = require("@tanstack/react-query");
1025
1049
  var useResource = (search = "", sort = "", skip = 0, take = 100) => {
1026
1050
  return (0, import_react_query21.useQuery)({
1027
1051
  queryKey: [QueryNames.GetResource, search, sort, skip, take],
1028
- queryFn: () => __async(void 0, null, function* () {
1052
+ queryFn: () => __async(null, null, function* () {
1029
1053
  if (search !== "") {
1030
1054
  const data2 = yield import_api_proxy11.ResourceService.resourceSearch(search);
1031
1055
  return data2;
@@ -1057,7 +1081,7 @@ var useResourceFilter = (filter) => {
1057
1081
  filter.sorting,
1058
1082
  filter.isFramework
1059
1083
  ],
1060
- queryFn: () => __async(void 0, null, function* () {
1084
+ queryFn: () => __async(null, null, function* () {
1061
1085
  const data = yield import_api_proxy12.ResourceService.resourceFilter(filter);
1062
1086
  return data;
1063
1087
  })
@@ -1070,7 +1094,7 @@ var import_react_query23 = require("@tanstack/react-query");
1070
1094
  var useResourceType = () => {
1071
1095
  return (0, import_react_query23.useQuery)({
1072
1096
  queryKey: [QueryNames.GetResourceType],
1073
- queryFn: () => __async(void 0, null, function* () {
1097
+ queryFn: () => __async(null, null, function* () {
1074
1098
  var data = yield import_api_proxy13.ResourceService.resourceGetAvailableResourceType();
1075
1099
  return data;
1076
1100
  })
@@ -1083,7 +1107,7 @@ var import_react_query24 = require("@tanstack/react-query");
1083
1107
  var useTopic = () => {
1084
1108
  return (0, import_react_query24.useQuery)({
1085
1109
  queryKey: [QueryNames.GetTopic],
1086
- queryFn: () => __async(void 0, null, function* () {
1110
+ queryFn: () => __async(null, null, function* () {
1087
1111
  var data = yield import_api_proxy14.ResourceService.resourceGetAvailableTopic();
1088
1112
  return data;
1089
1113
  }),
@@ -1099,7 +1123,7 @@ var import_api_proxy15 = require("@geowiki/api-proxy");
1099
1123
  var useUserProfileGet = () => {
1100
1124
  return (0, import_react_query25.useQuery)({
1101
1125
  queryKey: [QueryNames.GetUserProfile],
1102
- queryFn: () => __async(void 0, null, function* () {
1126
+ queryFn: () => __async(null, null, function* () {
1103
1127
  var data = yield import_api_proxy15.ProfileService.profileGet();
1104
1128
  return data;
1105
1129
  })
@@ -1112,7 +1136,7 @@ var import_api_proxy16 = require("@geowiki/api-proxy");
1112
1136
  var useUsers = (pageIndex, pageSize, filter, sorting) => {
1113
1137
  return (0, import_react_query26.useQuery)({
1114
1138
  queryKey: [QueryConstants.GetUsers, pageIndex, pageSize, filter, sorting],
1115
- queryFn: () => __async(void 0, null, function* () {
1139
+ queryFn: () => __async(null, null, function* () {
1116
1140
  let skip = 0;
1117
1141
  if (pageIndex > 0) {
1118
1142
  skip = pageIndex * pageSize;
@@ -1132,7 +1156,7 @@ var useUsers = (pageIndex, pageSize, filter, sorting) => {
1132
1156
  var import_react5 = __toESM(require("react"));
1133
1157
  function useRenderInfo(name = "Unknown") {
1134
1158
  const count = import_react5.default.useRef(0);
1135
- const lastRender = import_react5.default.useRef();
1159
+ const lastRender = import_react5.default.useRef(void 0);
1136
1160
  const now = Date.now();
1137
1161
  count.current++;
1138
1162
  import_react5.default.useEffect(() => {
@@ -1156,7 +1180,7 @@ var import_react_query27 = require("@tanstack/react-query");
1156
1180
  var useDefaultSettings = () => {
1157
1181
  return (0, import_react_query27.useQuery)({
1158
1182
  queryKey: [QueryNames.DefaultSettings],
1159
- queryFn: () => __async(void 0, null, function* () {
1183
+ queryFn: () => __async(null, null, function* () {
1160
1184
  const req = yield import_cms_proxy6.SettingsService.settingsGetDefaultSiteSettings();
1161
1185
  return req;
1162
1186
  })
@@ -1175,7 +1199,7 @@ var import_react_query28 = require("@tanstack/react-query");
1175
1199
  var useEmailing = () => {
1176
1200
  return (0, import_react_query28.useQuery)({
1177
1201
  queryKey: [QueryConstants.GetEmailing],
1178
- queryFn: () => __async(void 0, null, function* () {
1202
+ queryFn: () => __async(null, null, function* () {
1179
1203
  const data = yield import_api_proxy17.EmailSettingsService.emailSettingsGet();
1180
1204
  return data;
1181
1205
  })
@@ -1205,7 +1229,7 @@ var import_react_query29 = require("@tanstack/react-query");
1205
1229
  var useFeatures = (providerName, providerKey) => {
1206
1230
  return (0, import_react_query29.useQuery)({
1207
1231
  queryKey: [QueryConstants.GetFeatures, providerName, providerKey],
1208
- queryFn: () => __async(void 0, null, function* () {
1232
+ queryFn: () => __async(null, null, function* () {
1209
1233
  const data = yield import_api_proxy18.FeaturesService.featuresGet(providerName, providerKey);
1210
1234
  return data;
1211
1235
  })
@@ -1218,7 +1242,7 @@ var import_api_proxy19 = require("@geowiki/api-proxy");
1218
1242
  var useAssignableRoles = () => {
1219
1243
  return (0, import_react_query30.useQuery)({
1220
1244
  queryKey: [QueryConstants.GetAssignableRoles],
1221
- queryFn: () => __async(void 0, null, function* () {
1245
+ queryFn: () => __async(null, null, function* () {
1222
1246
  const data = yield import_api_proxy19.UserService.userGetAssignableRoles();
1223
1247
  return data;
1224
1248
  })
@@ -1231,7 +1255,7 @@ var import_react_query31 = require("@tanstack/react-query");
1231
1255
  var useUserRoles = ({ userId }) => {
1232
1256
  return (0, import_react_query31.useQuery)({
1233
1257
  queryKey: [QueryConstants.GetUserRoles, userId],
1234
- queryFn: () => __async(void 0, null, function* () {
1258
+ queryFn: () => __async(null, null, function* () {
1235
1259
  const data = yield import_api_proxy20.UserService.userGetRoles(userId);
1236
1260
  return data;
1237
1261
  })
@@ -1244,7 +1268,7 @@ var import_react_query32 = require("@tanstack/react-query");
1244
1268
  var usePermissions = (providerName, providerKey) => {
1245
1269
  return (0, import_react_query32.useQuery)({
1246
1270
  queryKey: [QueryConstants.GetPermissions, providerName, providerKey],
1247
- queryFn: () => __async(void 0, null, function* () {
1271
+ queryFn: () => __async(null, null, function* () {
1248
1272
  const data = yield import_api_proxy21.PermissionsService.permissionsGet(
1249
1273
  providerName,
1250
1274
  providerKey
@@ -1260,7 +1284,7 @@ var import_api_proxy22 = require("@geowiki/api-proxy");
1260
1284
  var useRoles = (pageIndex, pageSize, filter, sorting) => {
1261
1285
  return (0, import_react_query33.useQuery)({
1262
1286
  queryKey: [QueryConstants.GetRoles, pageIndex, pageSize, filter, sorting],
1263
- queryFn: () => __async(void 0, null, function* () {
1287
+ queryFn: () => __async(null, null, function* () {
1264
1288
  let skip = 0;
1265
1289
  if (pageIndex > 0) {
1266
1290
  skip = pageIndex * pageSize;
@@ -1282,7 +1306,7 @@ var import_react_query34 = require("@tanstack/react-query");
1282
1306
  var useProfile = () => {
1283
1307
  return (0, import_react_query34.useQuery)({
1284
1308
  queryKey: [QueryConstants.GetProfile],
1285
- queryFn: () => __async(void 0, null, function* () {
1309
+ queryFn: () => __async(null, null, function* () {
1286
1310
  const data = yield import_api_proxy23.ProfileService.profileGet();
1287
1311
  return data;
1288
1312
  })
@@ -1295,7 +1319,7 @@ var import_api_proxy24 = require("@geowiki/api-proxy");
1295
1319
  var useTenants = (pageIndex, pageSize, filter, sorting) => {
1296
1320
  return (0, import_react_query35.useQuery)({
1297
1321
  queryKey: [QueryConstants.GetTenants, pageIndex, pageSize, filter, sorting],
1298
- queryFn: () => __async(void 0, null, function* () {
1322
+ queryFn: () => __async(null, null, function* () {
1299
1323
  let skip = 0;
1300
1324
  if (pageIndex > 0) {
1301
1325
  skip = pageIndex * pageSize;
@@ -1317,7 +1341,7 @@ var import_evoland_api_proxy3 = require("@geowiki/evoland-api-proxy");
1317
1341
  var useEvolandLabels = (projectId) => {
1318
1342
  return (0, import_react_query36.useQuery)({
1319
1343
  queryKey: [QueryNames.GetEvolandLabels, projectId],
1320
- queryFn: () => __async(void 0, null, function* () {
1344
+ queryFn: () => __async(null, null, function* () {
1321
1345
  const data = yield import_evoland_api_proxy3.ProjectService.getLabelsLabelsProjectIdProjectIdGet(projectId);
1322
1346
  return data;
1323
1347
  })
@@ -1331,7 +1355,7 @@ var useLookUp = (ServiceName, params, LookUpsClusterCountries, LookUpsClusterAct
1331
1355
  let result;
1332
1356
  return (0, import_react_query37.useQuery)({
1333
1357
  queryKey: [QueryNames.GetLookUp, ServiceName, params],
1334
- queryFn: () => __async(void 0, null, function* () {
1358
+ queryFn: () => __async(null, null, function* () {
1335
1359
  switch (ServiceName) {
1336
1360
  case LookUpsClusterCountries: {
1337
1361
  result = yield import_api_proxy25.ClusterService.clusterGetCountries(params);
@@ -1365,7 +1389,7 @@ var import_evoland_api_proxy4 = require("@geowiki/evoland-api-proxy");
1365
1389
  var useProjects = (fetch2, start = 0, amount = 9) => {
1366
1390
  return (0, import_react_query38.useQuery)({
1367
1391
  queryKey: [QueryConstants.GetProjects, fetch2, start, amount],
1368
- queryFn: () => __async(void 0, null, function* () {
1392
+ queryFn: () => __async(null, null, function* () {
1369
1393
  if (fetch2)
1370
1394
  return import_evoland_api_proxy4.ProjectService.listProjectsListprojectsStartidxStartidxAmountAmountGet(
1371
1395
  start,
@@ -1377,7 +1401,7 @@ var useProjects = (fetch2, start = 0, amount = 9) => {
1377
1401
  var useProjectDetails = (projectId, update) => {
1378
1402
  return (0, import_react_query38.useQuery)({
1379
1403
  queryKey: [QueryConstants.GetProjectDetails, projectId, update],
1380
- queryFn: () => __async(void 0, null, function* () {
1404
+ queryFn: () => __async(null, null, function* () {
1381
1405
  return import_evoland_api_proxy4.ProjectService.projectInfoProjectinfoProjectIdProjectIdGet(
1382
1406
  projectId
1383
1407
  );
@@ -1387,7 +1411,7 @@ var useProjectDetails = (projectId, update) => {
1387
1411
  var useTasksPerLocation = (data) => {
1388
1412
  return (0, import_react_query38.useQuery)({
1389
1413
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1390
- queryFn: () => __async(void 0, null, function* () {
1414
+ queryFn: () => __async(null, null, function* () {
1391
1415
  return import_evoland_api_proxy4.ProjectService.getTasksTasksGet(
1392
1416
  data.locationProjectId,
1393
1417
  data.taskForReview,
@@ -1415,7 +1439,7 @@ var useTasksPerLocation = (data) => {
1415
1439
  var useRandomTasksPerLocation = (data) => {
1416
1440
  return (0, import_react_query38.useQuery)({
1417
1441
  queryKey: [QueryConstants.GetTasksPerLocation, data],
1418
- queryFn: () => __async(void 0, null, function* () {
1442
+ queryFn: () => __async(null, null, function* () {
1419
1443
  return import_evoland_api_proxy4.ProjectService.getRandomTaskRandomtaskGet(
1420
1444
  data.locationProjectId,
1421
1445
  data.taskForReview,
@@ -1442,7 +1466,7 @@ var useRandomTasksPerLocation = (data) => {
1442
1466
  var useTaskComments = (taskIds) => {
1443
1467
  return (0, import_react_query38.useQuery)({
1444
1468
  queryKey: [QueryConstants.GetTaskComment, taskIds],
1445
- queryFn: () => __async(void 0, null, function* () {
1469
+ queryFn: () => __async(null, null, function* () {
1446
1470
  return import_evoland_api_proxy4.TaskService.taskLatestComomentsTasklatestcommentPost({
1447
1471
  task_ids: taskIds
1448
1472
  });
@@ -1452,7 +1476,7 @@ var useTaskComments = (taskIds) => {
1452
1476
  var useGroupsInProject = (projectId, updateGroup) => {
1453
1477
  return (0, import_react_query38.useQuery)({
1454
1478
  queryKey: [QueryConstants.GetGroupsInProject, projectId, updateGroup],
1455
- queryFn: () => __async(void 0, null, function* () {
1479
+ queryFn: () => __async(null, null, function* () {
1456
1480
  return import_evoland_api_proxy4.ProjectService.getProjectGroupsProjectgroupsProjectIdProjectIdGet(
1457
1481
  projectId
1458
1482
  );
@@ -1462,7 +1486,7 @@ var useGroupsInProject = (projectId, updateGroup) => {
1462
1486
  var useProjectUsers = (projectId) => {
1463
1487
  return (0, import_react_query38.useQuery)({
1464
1488
  queryKey: [QueryConstants.GetProjectUsers, projectId],
1465
- queryFn: () => __async(void 0, null, function* () {
1489
+ queryFn: () => __async(null, null, function* () {
1466
1490
  return import_evoland_api_proxy4.ProjectService.projectAllUsersProjectusersProjectIdProjectIdGet(
1467
1491
  projectId
1468
1492
  );
@@ -1472,7 +1496,7 @@ var useProjectUsers = (projectId) => {
1472
1496
  var useTaskStatusList = () => {
1473
1497
  return (0, import_react_query38.useQuery)({
1474
1498
  queryKey: [QueryConstants.GetTaskStatusList],
1475
- queryFn: () => __async(void 0, null, function* () {
1499
+ queryFn: () => __async(null, null, function* () {
1476
1500
  return import_evoland_api_proxy4.TaskService.getTaskStatusesTaskstatusesGet();
1477
1501
  })
1478
1502
  });
@@ -1485,7 +1509,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1485
1509
  groupId,
1486
1510
  update
1487
1511
  ],
1488
- queryFn: () => __async(void 0, null, function* () {
1512
+ queryFn: () => __async(null, null, function* () {
1489
1513
  if (update)
1490
1514
  return import_evoland_api_proxy4.ProjectService.selectProjectGroupProjectselectgroupPost({
1491
1515
  project_id: projectId,
@@ -1497,7 +1521,7 @@ var useUpdateActiveGroupInProject = (projectId, groupId, update) => {
1497
1521
  var useTaskAnnotation = (taskId) => {
1498
1522
  return (0, import_react_query38.useQuery)({
1499
1523
  queryKey: [QueryConstants.GetTaskAnnotation, taskId],
1500
- queryFn: () => __async(void 0, null, function* () {
1524
+ queryFn: () => __async(null, null, function* () {
1501
1525
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1502
1526
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetTaskannotationTaskIdTaskIdGet(
1503
1527
  taskId
@@ -1508,7 +1532,7 @@ var useTaskAnnotation = (taskId) => {
1508
1532
  var useTaskMultipleAnnotations = (taskId) => {
1509
1533
  return (0, import_react_query38.useQuery)({
1510
1534
  queryKey: [QueryConstants.GetTaskMultipleAnnotations, taskId],
1511
- queryFn: () => __async(void 0, null, function* () {
1535
+ queryFn: () => __async(null, null, function* () {
1512
1536
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1513
1537
  return import_evoland_api_proxy4.TaskService.getTaskAnnotationAssetsTaskannotationsTaskIdTaskIdGet(
1514
1538
  taskId
@@ -1519,7 +1543,7 @@ var useTaskMultipleAnnotations = (taskId) => {
1519
1543
  var useTaskSavedAnnotations = (taskId) => {
1520
1544
  return (0, import_react_query38.useQuery)({
1521
1545
  queryKey: [QueryConstants.GetTaskSavedAnnotations, taskId],
1522
- queryFn: () => __async(void 0, null, function* () {
1546
+ queryFn: () => __async(null, null, function* () {
1523
1547
  if (taskId !== null && taskId !== 0 && taskId !== void 0)
1524
1548
  return import_evoland_api_proxy4.TaskService.getSavedAnnotationGetsavedannotationTaskIdTaskIdGet(
1525
1549
  taskId
@@ -1530,7 +1554,7 @@ var useTaskSavedAnnotations = (taskId) => {
1530
1554
  var useTaskDelete = (taskId, projectId, deleteTask) => {
1531
1555
  return (0, import_react_query38.useQuery)({
1532
1556
  queryKey: [QueryConstants.DeleteTask, taskId, projectId, deleteTask],
1533
- queryFn: () => __async(void 0, null, function* () {
1557
+ queryFn: () => __async(null, null, function* () {
1534
1558
  if (taskId !== null && taskId !== void 0 && taskId !== 0 && deleteTask === true)
1535
1559
  return import_evoland_api_proxy4.TaskService.deleteTaskDeletetaskPost({
1536
1560
  project_id: projectId,
@@ -1548,7 +1572,7 @@ var useProjectStatisticsByUser = (projectId, startDate, endDate, filterUserId) =
1548
1572
  endDate,
1549
1573
  filterUserId
1550
1574
  ],
1551
- queryFn: () => __async(void 0, null, function* () {
1575
+ queryFn: () => __async(null, null, function* () {
1552
1576
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1553
1577
  projectId,
1554
1578
  endDate,
@@ -1567,7 +1591,7 @@ var useContractStatisticsByUser = (projectId, startDate, endDate, filterUserId)
1567
1591
  endDate,
1568
1592
  filterUserId
1569
1593
  ],
1570
- queryFn: () => __async(void 0, null, function* () {
1594
+ queryFn: () => __async(null, null, function* () {
1571
1595
  return import_evoland_api_proxy4.StatisticService.getUserStatisticsUserstatisticsProjectIdProjectIdStartDateStartDateEndDateEndDateFilterUserIdFilterUserIdGet(
1572
1596
  projectId,
1573
1597
  endDate,
@@ -1586,7 +1610,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1586
1610
  projectId,
1587
1611
  referenceDate
1588
1612
  ],
1589
- queryFn: () => __async(void 0, null, function* () {
1613
+ queryFn: () => __async(null, null, function* () {
1590
1614
  return import_evoland_api_proxy4.ProjectService.locationLatestTaskLocationtaskLocationIdLocationIdProjectIdProjectIdReferenceDateReferenceDateGet(
1591
1615
  locationId,
1592
1616
  projectId,
@@ -1598,7 +1622,7 @@ var useLatestTaskOnLocation = (locationId, projectId, referenceDate) => {
1598
1622
  var useAssignProjectToUser = (userRoleRequest, update) => {
1599
1623
  return (0, import_react_query38.useQuery)({
1600
1624
  queryKey: [QueryConstants.GetProjectDetails, userRoleRequest, update],
1601
- queryFn: () => __async(void 0, null, function* () {
1625
+ queryFn: () => __async(null, null, function* () {
1602
1626
  if (update)
1603
1627
  return import_evoland_api_proxy4.ProjectService.setUserRoleSetuserrolePost(userRoleRequest);
1604
1628
  }),
@@ -1608,7 +1632,7 @@ var useAssignProjectToUser = (userRoleRequest, update) => {
1608
1632
  var useGetUserProject = (user_id, fetchData) => {
1609
1633
  return (0, import_react_query38.useQuery)({
1610
1634
  queryKey: [QueryConstants.GetUserProject, user_id, fetchData],
1611
- queryFn: () => __async(void 0, null, function* () {
1635
+ queryFn: () => __async(null, null, function* () {
1612
1636
  if (fetchData)
1613
1637
  return import_evoland_api_proxy4.ProjectService.getUserRoleProjectGetuserroleprojectUserIdUserIdGet(
1614
1638
  user_id
@@ -1619,7 +1643,7 @@ var useGetUserProject = (user_id, fetchData) => {
1619
1643
  var useUpdateUserDetail = (userDetailRequest, update) => {
1620
1644
  return (0, import_react_query38.useQuery)({
1621
1645
  queryKey: [QueryConstants.SetUserDetail, userDetailRequest, update],
1622
- queryFn: () => __async(void 0, null, function* () {
1646
+ queryFn: () => __async(null, null, function* () {
1623
1647
  if (update)
1624
1648
  return import_evoland_api_proxy4.ProjectService.setUserDetailSetuserdetailPost(userDetailRequest);
1625
1649
  })
@@ -1633,7 +1657,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1633
1657
  download,
1634
1658
  userRole
1635
1659
  ],
1636
- queryFn: () => __async(void 0, null, function* () {
1660
+ queryFn: () => __async(null, null, function* () {
1637
1661
  if (userRole == "admin" && download)
1638
1662
  return import_evoland_api_proxy4.ProjectService.getLocationsSummaryLocationssummaryProjectIdProjectIdGet(
1639
1663
  projectId
@@ -1644,7 +1668,7 @@ var useProjectsPointsDownload = (projectId, download, userRole) => {
1644
1668
  var useQuestionnaire = (projectId) => {
1645
1669
  return (0, import_react_query38.useQuery)({
1646
1670
  queryKey: [QueryConstants.GetQuestionnaireForProject, projectId],
1647
- queryFn: () => __async(void 0, null, function* () {
1671
+ queryFn: () => __async(null, null, function* () {
1648
1672
  return import_evoland_api_proxy4.QuestionService.getProjectQuestionsAnswersQuestionsAnswersProjectIdProjectIdGet(
1649
1673
  projectId
1650
1674
  );
@@ -1654,7 +1678,7 @@ var useQuestionnaire = (projectId) => {
1654
1678
  var useTaskAnswers = (taskId) => {
1655
1679
  return (0, import_react_query38.useQuery)({
1656
1680
  queryKey: [QueryConstants.GetTaskAnswers, taskId],
1657
- queryFn: () => __async(void 0, null, function* () {
1681
+ queryFn: () => __async(null, null, function* () {
1658
1682
  return import_evoland_api_proxy4.TaskService.getTaskAnswersTaskanswersTaskIdTaskIdGet(taskId);
1659
1683
  })
1660
1684
  });
@@ -1662,7 +1686,7 @@ var useTaskAnswers = (taskId) => {
1662
1686
  var useProjectResultSet = (download, projectId, is_geo_json) => {
1663
1687
  return (0, import_react_query38.useQuery)({
1664
1688
  queryKey: [QueryConstants.GetProjectResultSet, download, projectId, is_geo_json],
1665
- queryFn: () => __async(void 0, null, function* () {
1689
+ queryFn: () => __async(null, null, function* () {
1666
1690
  return import_evoland_api_proxy4.ProjectService.projectResultSetProjectresultsetProjectIdProjectIdIsGeoJsonIsGeoJsonGet(projectId, is_geo_json);
1667
1691
  }),
1668
1692
  enabled: !!download && !!projectId
@@ -1674,7 +1698,7 @@ var import_react_query39 = require("@tanstack/react-query");
1674
1698
  var useApiImage = (imageId) => {
1675
1699
  return (0, import_react_query39.useQuery)({
1676
1700
  queryKey: [QueryConstants.GetApiImage, imageId],
1677
- queryFn: () => __async(void 0, null, function* () {
1701
+ queryFn: () => __async(null, null, function* () {
1678
1702
  const res = yield fetch(`/api/api-image/${imageId}`);
1679
1703
  const data = yield res.json();
1680
1704
  return data.fileUrl;
@@ -1687,7 +1711,7 @@ var import_react_query40 = require("@tanstack/react-query");
1687
1711
  var useCmsImage = (imageId) => {
1688
1712
  return (0, import_react_query40.useQuery)({
1689
1713
  queryKey: [QueryConstants.GetCmsImage, imageId],
1690
- queryFn: () => __async(void 0, null, function* () {
1714
+ queryFn: () => __async(null, null, function* () {
1691
1715
  const res = yield fetch(`/api/cms-image/${imageId}`);
1692
1716
  const data = yield res.json();
1693
1717
  return data.fileUrl;
@@ -1701,7 +1725,7 @@ var import_react_query41 = require("@tanstack/react-query");
1701
1725
  var useClusterGetJoinRequests = (clusterId) => {
1702
1726
  return (0, import_react_query41.useQuery)({
1703
1727
  queryKey: [QueryNames.JoinRequests, clusterId],
1704
- queryFn: () => __async(void 0, null, function* () {
1728
+ queryFn: () => __async(null, null, function* () {
1705
1729
  const data = yield import_api_proxy26.ClusterService.clusterGetJoinRequests(clusterId);
1706
1730
  return data;
1707
1731
  })
@@ -1714,7 +1738,7 @@ var import_react_query42 = require("@tanstack/react-query");
1714
1738
  var useClusterGetNews = (clusterId, newsId) => {
1715
1739
  return (0, import_react_query42.useQuery)({
1716
1740
  queryKey: [QueryNames.ClusterGetNews, clusterId, newsId],
1717
- queryFn: () => __async(void 0, null, function* () {
1741
+ queryFn: () => __async(null, null, function* () {
1718
1742
  const data = yield import_api_proxy27.ClusterService.clusterGetNews(clusterId, newsId);
1719
1743
  return data;
1720
1744
  })
@@ -1727,7 +1751,7 @@ var import_react_query43 = require("@tanstack/react-query");
1727
1751
  var useClusterGetNewsNextPreviousStatus = (clusterId, newsId) => {
1728
1752
  return (0, import_react_query43.useQuery)({
1729
1753
  queryKey: [QueryNames.ClusterNewsNextPrevious, clusterId, newsId],
1730
- queryFn: () => __async(void 0, null, function* () {
1754
+ queryFn: () => __async(null, null, function* () {
1731
1755
  const data = yield import_api_proxy28.ClusterService.clusterGetNewsNextPreviousStatus(
1732
1756
  clusterId,
1733
1757
  newsId
@@ -1743,7 +1767,7 @@ var import_react_query44 = require("@tanstack/react-query");
1743
1767
  var useClusterImages = (id) => {
1744
1768
  return (0, import_react_query44.useQuery)({
1745
1769
  queryKey: [QueryNames.ClusterImages, id],
1746
- queryFn: () => __async(void 0, null, function* () {
1770
+ queryFn: () => __async(null, null, function* () {
1747
1771
  const data = yield import_api_proxy29.ClusterService.clusterGetClusterImages(id);
1748
1772
  return data;
1749
1773
  })
@@ -1756,7 +1780,7 @@ var import_react_query45 = require("@tanstack/react-query");
1756
1780
  var useClusterOverview = (id) => {
1757
1781
  return (0, import_react_query45.useQuery)({
1758
1782
  queryKey: [QueryNames.GetClusterOverview, id],
1759
- queryFn: () => __async(void 0, null, function* () {
1783
+ queryFn: () => __async(null, null, function* () {
1760
1784
  const data = yield import_api_proxy30.ClusterService.clusterGetClusterOverview(id);
1761
1785
  return data;
1762
1786
  })
@@ -1777,7 +1801,7 @@ var useClusterAllNews = (id, refresh, sorting, skipCount, maxResultCount, status
1777
1801
  refresh,
1778
1802
  status
1779
1803
  ],
1780
- queryFn: () => __async(void 0, null, function* () {
1804
+ queryFn: () => __async(null, null, function* () {
1781
1805
  const data = yield import_api_proxy31.ClusterService.clusterGetAllNews(
1782
1806
  id,
1783
1807
  sorting,
@@ -1796,7 +1820,7 @@ var import_react_query47 = require("@tanstack/react-query");
1796
1820
  var useNewsFromAllClusters = (skip = 0, take = 10) => {
1797
1821
  return (0, import_react_query47.useQuery)({
1798
1822
  queryKey: [QueryNames.ClusterAllNews, skip, take],
1799
- queryFn: () => __async(void 0, null, function* () {
1823
+ queryFn: () => __async(null, null, function* () {
1800
1824
  const data = yield import_api_proxy32.ClusterService.clusterGetAllNewsFromAllClusters(
1801
1825
  "",
1802
1826
  skip,
@@ -1813,7 +1837,7 @@ var import_react_query48 = require("@tanstack/react-query");
1813
1837
  var useClusterNewsWithId = (id) => {
1814
1838
  return (0, import_react_query48.useQuery)({
1815
1839
  queryKey: [QueryNames.ClusterNewsWithId, id],
1816
- queryFn: () => __async(void 0, null, function* () {
1840
+ queryFn: () => __async(null, null, function* () {
1817
1841
  const data = yield import_api_proxy33.ClusterService.clusterGetClusterNewsById(id);
1818
1842
  return data;
1819
1843
  })
@@ -1825,15 +1849,15 @@ var import_react_query49 = require("@tanstack/react-query");
1825
1849
 
1826
1850
  // src/utils/CmsApi.ts
1827
1851
  var import_cms_proxy7 = require("@geowiki/cms-proxy");
1828
- var getGeoWikiSettings = () => __async(void 0, null, function* () {
1852
+ var getGeoWikiSettings = () => __async(null, null, function* () {
1829
1853
  const req = yield import_cms_proxy7.SettingsService.settingsGetSiteSettings("GeoWiki");
1830
1854
  return req;
1831
1855
  });
1832
- var getDefaultSettings = () => __async(void 0, null, function* () {
1856
+ var getDefaultSettings = () => __async(null, null, function* () {
1833
1857
  const req = yield import_cms_proxy7.SettingsService.settingsGetDefaultSiteSettings();
1834
1858
  return req;
1835
1859
  });
1836
- var getMenus = (displayName) => __async(void 0, null, function* () {
1860
+ var getMenus = (displayName) => __async(null, null, function* () {
1837
1861
  const req = yield getContentWithTypeAndDisplayName(
1838
1862
  "Menu",
1839
1863
  displayName
@@ -1841,7 +1865,7 @@ var getMenus = (displayName) => __async(void 0, null, function* () {
1841
1865
  const menus = req == null ? void 0 : req.items[0];
1842
1866
  return menus;
1843
1867
  });
1844
- var getPageContent = (displayName) => __async(void 0, null, function* () {
1868
+ var getPageContent = (displayName) => __async(null, null, function* () {
1845
1869
  const req = yield getContentWithTypeAndDisplayName(
1846
1870
  "Page",
1847
1871
  displayName
@@ -1849,27 +1873,27 @@ var getPageContent = (displayName) => __async(void 0, null, function* () {
1849
1873
  const page = req == null ? void 0 : req.items[0];
1850
1874
  return page;
1851
1875
  });
1852
- var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(void 0, null, function* () {
1876
+ var getContentWithTypeAndDisplayName = (contentType, displayName) => __async(null, null, function* () {
1853
1877
  return import_cms_proxy7.QueryApiService.apiQueryGet(
1854
1878
  "GetContentByTypeAndDisplayText",
1855
1879
  `${JSON.stringify({ contenttype: contentType, displaytext: displayName })}`
1856
1880
  );
1857
1881
  });
1858
- var getContentWithSlug = (slug) => __async(void 0, null, function* () {
1882
+ var getContentWithSlug = (slug) => __async(null, null, function* () {
1859
1883
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1860
1884
  "GetDocumentBySlug",
1861
1885
  `${JSON.stringify({ path: slug })}`
1862
1886
  );
1863
1887
  return req == null ? void 0 : req.items[0];
1864
1888
  });
1865
- var getContentsWithType = (contentType) => __async(void 0, null, function* () {
1889
+ var getContentsWithType = (contentType) => __async(null, null, function* () {
1866
1890
  const req = yield import_cms_proxy7.QueryApiService.apiQueryGet(
1867
1891
  "GetContentByType",
1868
1892
  `${JSON.stringify({ contenttype: contentType })}`
1869
1893
  );
1870
1894
  return req == null ? void 0 : req.items;
1871
1895
  });
1872
- var getPageProps = (ctx) => __async(void 0, null, function* () {
1896
+ var getPageProps = (ctx) => __async(null, null, function* () {
1873
1897
  var _a;
1874
1898
  var page = "index";
1875
1899
  const slugs = ctx.query.slug;
@@ -1887,7 +1911,7 @@ var getPageProps = (ctx) => __async(void 0, null, function* () {
1887
1911
  var useMapMenuItems = () => {
1888
1912
  return (0, import_react_query49.useQuery)({
1889
1913
  queryKey: [QueryNames.MapMenuItems],
1890
- queryFn: () => __async(void 0, null, function* () {
1914
+ queryFn: () => __async(null, null, function* () {
1891
1915
  const req = yield getContentsWithType("MapMenuItem");
1892
1916
  return req;
1893
1917
  })
@@ -1900,7 +1924,7 @@ var import_react_query50 = require("@tanstack/react-query");
1900
1924
  var useClusterLinks = (id) => {
1901
1925
  return (0, import_react_query50.useQuery)({
1902
1926
  queryKey: [QueryNames.GetSocialLinks, id],
1903
- queryFn: () => __async(void 0, null, function* () {
1927
+ queryFn: () => __async(null, null, function* () {
1904
1928
  const data = yield import_api_proxy34.ClusterService.clusterGetLinksAndPartner(id);
1905
1929
  return data;
1906
1930
  })
@@ -1912,7 +1936,7 @@ var import_react_query51 = require("@tanstack/react-query");
1912
1936
  var useCmsContentWithType = (contentType) => {
1913
1937
  return (0, import_react_query51.useQuery)({
1914
1938
  queryKey: [QueryNames.GetCmsContentWithType],
1915
- queryFn: () => __async(void 0, null, function* () {
1939
+ queryFn: () => __async(null, null, function* () {
1916
1940
  const req = yield getContentsWithType(contentType);
1917
1941
  return req;
1918
1942
  })
@@ -1925,7 +1949,7 @@ var import_react_query52 = require("@tanstack/react-query");
1925
1949
  var useClusterNews = (id, sort = "", skip = 0, take = 100) => {
1926
1950
  return (0, import_react_query52.useQuery)({
1927
1951
  queryKey: [QueryNames.ClusterNews, id, sort, skip, take],
1928
- queryFn: () => __async(void 0, null, function* () {
1952
+ queryFn: () => __async(null, null, function* () {
1929
1953
  const data = yield import_api_proxy35.ClusterService.clusterGetClusterNews(
1930
1954
  id,
1931
1955
  sort,
@@ -1943,7 +1967,7 @@ var import_react_query53 = require("@tanstack/react-query");
1943
1967
  var useClusterDescription = (id) => {
1944
1968
  return (0, import_react_query53.useQuery)({
1945
1969
  queryKey: [QueryNames.GetClusterDescription, id],
1946
- queryFn: () => __async(void 0, null, function* () {
1970
+ queryFn: () => __async(null, null, function* () {
1947
1971
  const data = yield import_api_proxy36.ClusterService.clusterGetClusterDescription(id);
1948
1972
  return data;
1949
1973
  })
@@ -1956,7 +1980,7 @@ var import_react_query54 = require("@tanstack/react-query");
1956
1980
  var useClusterDetails = (id) => {
1957
1981
  return (0, import_react_query54.useQuery)({
1958
1982
  queryKey: [QueryNames.GetClusterDetails, id],
1959
- queryFn: () => __async(void 0, null, function* () {
1983
+ queryFn: () => __async(null, null, function* () {
1960
1984
  const data = yield import_api_proxy37.ClusterService.clusterGetClusterDetails(id);
1961
1985
  return data;
1962
1986
  })
@@ -1969,7 +1993,7 @@ var import_react_query55 = require("@tanstack/react-query");
1969
1993
  var useClusterImagesAndVideos = (id) => {
1970
1994
  return (0, import_react_query55.useQuery)({
1971
1995
  queryKey: [QueryNames.GetImagesAndVideos, id],
1972
- queryFn: () => __async(void 0, null, function* () {
1996
+ queryFn: () => __async(null, null, function* () {
1973
1997
  const data = yield import_api_proxy38.ClusterService.clusterGetImagesAndVideos(id);
1974
1998
  return data;
1975
1999
  })
@@ -1978,7 +2002,7 @@ var useClusterImagesAndVideos = (id) => {
1978
2002
 
1979
2003
  // src/hooks/useHost.ts
1980
2004
  var import_react_query56 = require("@tanstack/react-query");
1981
- var getHost = () => __async(void 0, null, function* () {
2005
+ var getHost = () => __async(null, null, function* () {
1982
2006
  const response = yield fetch("/api/host");
1983
2007
  if (!response.ok) {
1984
2008
  return Promise.reject(null);
@@ -1994,7 +2018,7 @@ function useHost() {
1994
2018
 
1995
2019
  // src/hooks/useHostManagement.ts
1996
2020
  var import_react_query57 = require("@tanstack/react-query");
1997
- var createHost = (hostData) => __async(void 0, null, function* () {
2021
+ var createHost = (hostData) => __async(null, null, function* () {
1998
2022
  const response = yield fetch("/api/hosts", {
1999
2023
  method: "POST",
2000
2024
  headers: {
@@ -2007,7 +2031,7 @@ var createHost = (hostData) => __async(void 0, null, function* () {
2007
2031
  }
2008
2032
  return response.json();
2009
2033
  });
2010
- var updateHost = (_a) => __async(void 0, null, function* () {
2034
+ var updateHost = (_a) => __async(null, null, function* () {
2011
2035
  var _b = _a, {
2012
2036
  host
2013
2037
  } = _b, hostData = __objRest(_b, [
@@ -2025,7 +2049,7 @@ var updateHost = (_a) => __async(void 0, null, function* () {
2025
2049
  }
2026
2050
  return response.json();
2027
2051
  });
2028
- var deleteHost = (host) => __async(void 0, null, function* () {
2052
+ var deleteHost = (host) => __async(null, null, function* () {
2029
2053
  const response = yield fetch(`/api/hosts/${host}`, {
2030
2054
  method: "DELETE"
2031
2055
  });
@@ -2071,7 +2095,8 @@ var HostType = /* @__PURE__ */ ((HostType2) => {
2071
2095
 
2072
2096
  // src/utils/ServerHostUtils.ts
2073
2097
  var getHostData = () => {
2074
- return process.env.NODE_ENV === "production" ? [
2098
+ const useProd = process.env.NODE_ENV === "production" || process.env.GEOWIKI_USE_PROD_HOSTS === "true";
2099
+ return useProd ? [
2075
2100
  {
2076
2101
  host: "v2.geo-wiki.org",
2077
2102
  cmsUrl: "https://cms.main.geo-wiki.org"
@@ -2316,8 +2341,7 @@ var HostService = class {
2316
2341
  * Utility: Check if a path is protected for a host
2317
2342
  */
2318
2343
  static isPathProtected(hostInfo, path) {
2319
- if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths))
2320
- return false;
2344
+ if (!(hostInfo == null ? void 0 : hostInfo.protectedPaths)) return false;
2321
2345
  return hostInfo.protectedPaths.some(
2322
2346
  (protectedPath) => path.startsWith(protectedPath)
2323
2347
  );
@@ -2377,8 +2401,7 @@ var HostService = class {
2377
2401
  * Utility: Get host info for current window location (client-side only)
2378
2402
  */
2379
2403
  static getCurrentHostInfo(hosts) {
2380
- if (typeof window === "undefined")
2381
- return void 0;
2404
+ if (typeof window === "undefined") return void 0;
2382
2405
  return hosts.find((h) => h.host === window.location.host);
2383
2406
  }
2384
2407
  /**
@@ -2606,11 +2629,20 @@ var useBasfStore = (0, import_zustand4.create)((set) => ({
2606
2629
  // src/utils/common.ts
2607
2630
  var import_client = require("react-dom/client");
2608
2631
  var import_react_dom = require("react-dom");
2609
- var import_next_localization = require("next-localization");
2610
2632
  var import_driver = require("driver.js");
2611
2633
  var import_driver2 = require("driver.js/dist/driver.css");
2612
2634
  var XLSX = __toESM(require("xlsx"));
2613
- var i18n = (0, import_next_localization.I18n)();
2635
+ var createI18n = () => {
2636
+ let current = "en";
2637
+ return {
2638
+ locale: (next) => {
2639
+ if (next) current = next;
2640
+ return current;
2641
+ },
2642
+ t: (key) => key
2643
+ };
2644
+ };
2645
+ var i18n = createI18n();
2614
2646
  var getHtmlElementFromReactNode = (node) => {
2615
2647
  const div = document.createElement("div");
2616
2648
  const root = (0, import_client.createRoot)(div);
@@ -3332,6 +3364,338 @@ function signIn(_provider, _options, params) {
3332
3364
  function signOut() {
3333
3365
  window.location.href = "/api/auth/logout";
3334
3366
  }
3367
+
3368
+ // src/framework/index.tsx
3369
+ var import_react10 = require("react");
3370
+
3371
+ // src/framework/context.tsx
3372
+ var import_react9 = require("react");
3373
+
3374
+ // src/framework/defaults.tsx
3375
+ var import_react8 = require("react");
3376
+ var import_jsx_runtime2 = require("react/jsx-runtime");
3377
+ var isBrowser = () => typeof window !== "undefined";
3378
+ var queryToSearchParams = (query, target = new URLSearchParams()) => {
3379
+ if (!query) return target;
3380
+ for (const [key, value] of Object.entries(query)) {
3381
+ if (value === void 0 || value === null) continue;
3382
+ if (Array.isArray(value)) {
3383
+ for (const v of value) target.append(key, String(v));
3384
+ } else {
3385
+ target.set(key, String(value));
3386
+ }
3387
+ }
3388
+ return target;
3389
+ };
3390
+ var urlToHref = (url) => {
3391
+ if (typeof url === "string") return url;
3392
+ const { pathname = "", query, hash } = url;
3393
+ const qs = queryToSearchParams(query).toString();
3394
+ return `${pathname}${qs ? `?${qs}` : ""}${hash ? `#${hash}` : ""}`;
3395
+ };
3396
+ var unwrapDefault = (mod) => mod && typeof mod === "object" && "default" in mod ? mod : { default: mod };
3397
+ var DefaultLink = (0, import_react8.forwardRef)(
3398
+ function DefaultLink2(props, ref) {
3399
+ const _a = props, {
3400
+ href,
3401
+ as: _as,
3402
+ replace: _replace,
3403
+ scroll: _scroll,
3404
+ shallow: _shallow,
3405
+ passHref: _passHref,
3406
+ prefetch: _prefetch,
3407
+ locale: _locale,
3408
+ legacyBehavior: _legacyBehavior,
3409
+ children
3410
+ } = _a, rest = __objRest(_a, [
3411
+ "href",
3412
+ "as",
3413
+ "replace",
3414
+ "scroll",
3415
+ "shallow",
3416
+ "passHref",
3417
+ "prefetch",
3418
+ "locale",
3419
+ "legacyBehavior",
3420
+ "children"
3421
+ ]);
3422
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("a", __spreadProps(__spreadValues({ ref, href: urlToHref(href) }, rest), { children }));
3423
+ }
3424
+ );
3425
+ var DefaultImage = function DefaultImage2(props) {
3426
+ const _a = props, {
3427
+ src,
3428
+ alt,
3429
+ width,
3430
+ height,
3431
+ fill,
3432
+ sizes: _sizes,
3433
+ quality: _quality,
3434
+ priority: _priority,
3435
+ loading,
3436
+ placeholder: _placeholder,
3437
+ blurDataURL: _blurDataURL,
3438
+ unoptimized: _unoptimized,
3439
+ layout: _layout,
3440
+ objectFit,
3441
+ objectPosition,
3442
+ onLoadingComplete,
3443
+ style
3444
+ } = _a, rest = __objRest(_a, [
3445
+ "src",
3446
+ "alt",
3447
+ "width",
3448
+ "height",
3449
+ "fill",
3450
+ "sizes",
3451
+ "quality",
3452
+ "priority",
3453
+ "loading",
3454
+ "placeholder",
3455
+ "blurDataURL",
3456
+ "unoptimized",
3457
+ "layout",
3458
+ "objectFit",
3459
+ "objectPosition",
3460
+ "onLoadingComplete",
3461
+ "style"
3462
+ ]);
3463
+ const resolvedSrc = typeof src === "string" ? src : src == null ? void 0 : src.src;
3464
+ const mergedStyle = (0, import_react8.useMemo)(() => {
3465
+ if (!fill && !objectFit && !objectPosition && !style) return void 0;
3466
+ const out = __spreadValues({}, style);
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;
3470
+ return out;
3471
+ }, [fill, objectFit, objectPosition, style]);
3472
+ return (
3473
+ // eslint-disable-next-line @next/next/no-img-element, jsx-a11y/alt-text
3474
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3475
+ "img",
3476
+ __spreadValues({
3477
+ src: resolvedSrc,
3478
+ alt,
3479
+ width: fill ? void 0 : width,
3480
+ height: fill ? void 0 : height,
3481
+ loading: loading != null ? loading : "lazy",
3482
+ style: mergedStyle,
3483
+ onLoad: (e) => onLoadingComplete == null ? void 0 : onLoadingComplete(e.currentTarget)
3484
+ }, rest)
3485
+ )
3486
+ );
3487
+ };
3488
+ var DefaultScript = function DefaultScript2(props) {
3489
+ const _a = props, { strategy: _strategy, onReady: _onReady } = _a, rest = __objRest(_a, ["strategy", "onReady"]);
3490
+ const { src, id, async, defer, type, nonce, onLoad, onError, children } = rest;
3491
+ const onLoadRef = (0, import_react8.useRef)(onLoad);
3492
+ const onErrorRef = (0, import_react8.useRef)(onError);
3493
+ onLoadRef.current = onLoad;
3494
+ onErrorRef.current = onError;
3495
+ (0, import_react8.useEffect)(() => {
3496
+ if (!src || !isBrowser()) return;
3497
+ const el = document.createElement("script");
3498
+ el.src = src;
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;
3504
+ el.onload = () => {
3505
+ var _a2;
3506
+ return (_a2 = onLoadRef.current) == null ? void 0 : _a2.call(onLoadRef);
3507
+ };
3508
+ el.onerror = (e) => {
3509
+ var _a2;
3510
+ return (_a2 = onErrorRef.current) == null ? void 0 : _a2.call(onErrorRef, e);
3511
+ };
3512
+ document.head.appendChild(el);
3513
+ return () => {
3514
+ el.remove();
3515
+ };
3516
+ }, [src, id, async, defer, type, nonce]);
3517
+ if (children) {
3518
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("script", __spreadProps(__spreadValues({}, rest), { children }));
3519
+ }
3520
+ return null;
3521
+ };
3522
+ var DefaultHead = function DefaultHead2({ children: _children }) {
3523
+ return null;
3524
+ };
3525
+ var parseSearch = (search) => {
3526
+ const params = new URLSearchParams(search);
3527
+ const result = {};
3528
+ for (const key of new Set(params.keys())) {
3529
+ const all = params.getAll(key);
3530
+ result[key] = all.length > 1 ? all : all[0];
3531
+ }
3532
+ return result;
3533
+ };
3534
+ var useLocation2 = () => {
3535
+ const [tick, setTick] = (0, import_react8.useState)(0);
3536
+ (0, import_react8.useEffect)(() => {
3537
+ if (!isBrowser()) return;
3538
+ const handler = () => setTick((t) => t + 1);
3539
+ window.addEventListener("popstate", handler);
3540
+ return () => window.removeEventListener("popstate", handler);
3541
+ }, []);
3542
+ return (0, import_react8.useMemo)(() => {
3543
+ if (!isBrowser()) {
3544
+ return { pathname: "/", search: "", hash: "", asPath: "/" };
3545
+ }
3546
+ const { pathname, search, hash } = window.location;
3547
+ return {
3548
+ pathname,
3549
+ search,
3550
+ hash,
3551
+ asPath: `${pathname}${search}${hash}`
3552
+ };
3553
+ }, [tick]);
3554
+ };
3555
+ var useDefaultRouter = () => {
3556
+ const loc = useLocation2();
3557
+ const query = (0, import_react8.useMemo)(() => parseSearch(loc.search), [loc.search]);
3558
+ const push = (0, import_react8.useCallback)((url) => __async(null, null, function* () {
3559
+ if (!isBrowser()) return false;
3560
+ window.history.pushState({}, "", urlToHref(url));
3561
+ window.dispatchEvent(new PopStateEvent("popstate"));
3562
+ return true;
3563
+ }), []);
3564
+ const replace = (0, import_react8.useCallback)((url) => __async(null, null, function* () {
3565
+ if (!isBrowser()) return false;
3566
+ window.history.replaceState({}, "", urlToHref(url));
3567
+ window.dispatchEvent(new PopStateEvent("popstate"));
3568
+ return true;
3569
+ }), []);
3570
+ const back = (0, import_react8.useCallback)(() => {
3571
+ if (isBrowser()) window.history.back();
3572
+ }, []);
3573
+ const forward = (0, import_react8.useCallback)(() => {
3574
+ if (isBrowser()) window.history.forward();
3575
+ }, []);
3576
+ const reload = (0, import_react8.useCallback)(() => {
3577
+ if (isBrowser()) window.location.reload();
3578
+ }, []);
3579
+ return (0, import_react8.useMemo)(
3580
+ () => ({
3581
+ pathname: loc.pathname,
3582
+ asPath: loc.asPath,
3583
+ query,
3584
+ isReady: isBrowser(),
3585
+ push,
3586
+ replace,
3587
+ back,
3588
+ forward,
3589
+ reload
3590
+ }),
3591
+ [loc.pathname, loc.asPath, query, push, replace, back, forward, reload]
3592
+ );
3593
+ };
3594
+ var useDefaultNavigationRouter = () => {
3595
+ const router = useDefaultRouter();
3596
+ return (0, import_react8.useMemo)(
3597
+ () => ({
3598
+ push: (href) => router.push(href),
3599
+ replace: (href) => router.replace(href),
3600
+ back: () => router.back(),
3601
+ forward: () => {
3602
+ var _a;
3603
+ return (_a = router.forward) == null ? void 0 : _a.call(router);
3604
+ },
3605
+ refresh: () => router.reload(),
3606
+ prefetch: () => void 0
3607
+ }),
3608
+ [router]
3609
+ );
3610
+ };
3611
+ var useDefaultSearchParams = () => {
3612
+ const loc = useLocation2();
3613
+ return (0, import_react8.useMemo)(() => new URLSearchParams(loc.search), [loc.search]);
3614
+ };
3615
+ var useDefaultTheme = () => {
3616
+ const [theme, setThemeState] = (0, import_react8.useState)(void 0);
3617
+ const setTheme = (0, import_react8.useCallback)((next) => {
3618
+ setThemeState((prev) => prev === next ? prev : next);
3619
+ }, []);
3620
+ return (0, import_react8.useMemo)(
3621
+ () => ({ theme, resolvedTheme: theme, setTheme }),
3622
+ [theme, setTheme]
3623
+ );
3624
+ };
3625
+ var useDefaultI18n = () => ({
3626
+ locale: isBrowser() ? document.documentElement.lang || "en" : "en",
3627
+ t: (key) => key
3628
+ });
3629
+ var defaultDynamic = (loader, options) => {
3630
+ const Lazy = (0, import_react8.lazy)(() => __async(null, null, function* () {
3631
+ return unwrapDefault(yield loader());
3632
+ }));
3633
+ const Loading = options == null ? void 0 : options.loading;
3634
+ const Wrapped = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react8.Suspense, { fallback: Loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Loading, {}) : null, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Lazy, __spreadValues({}, props)) });
3635
+ Wrapped.displayName = "DynamicDefault";
3636
+ return Wrapped;
3637
+ };
3638
+
3639
+ // src/framework/context.tsx
3640
+ var import_jsx_runtime3 = require("react/jsx-runtime");
3641
+ var defaultAdapters = {
3642
+ Link: DefaultLink,
3643
+ Image: DefaultImage,
3644
+ Script: DefaultScript,
3645
+ Head: DefaultHead,
3646
+ useRouter: useDefaultRouter,
3647
+ useNavigationRouter: useDefaultNavigationRouter,
3648
+ useSearchParams: useDefaultSearchParams,
3649
+ useTheme: useDefaultTheme,
3650
+ useI18n: useDefaultI18n,
3651
+ dynamic: defaultDynamic
3652
+ };
3653
+ var FrameworkContext = (0, import_react9.createContext)(defaultAdapters);
3654
+ var FrameworkProvider = ({ adapters, children }) => {
3655
+ const value = (0, import_react9.useMemo)(
3656
+ () => __spreadValues(__spreadValues({}, defaultAdapters), adapters),
3657
+ [adapters]
3658
+ );
3659
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FrameworkContext.Provider, { value, children });
3660
+ };
3661
+ var useFrameworkAdapters = () => (0, import_react9.useContext)(FrameworkContext);
3662
+
3663
+ // src/framework/index.tsx
3664
+ var import_jsx_runtime4 = require("react/jsx-runtime");
3665
+ var Link = (0, import_react10.forwardRef)(function Link2(props, ref) {
3666
+ const { Link: Adapter } = useFrameworkAdapters();
3667
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Adapter, __spreadValues({ ref }, props));
3668
+ });
3669
+ var Image = (props) => {
3670
+ const { Image: Adapter } = useFrameworkAdapters();
3671
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Adapter, __spreadValues({}, props));
3672
+ };
3673
+ var Script = (props) => {
3674
+ const { Script: Adapter } = useFrameworkAdapters();
3675
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Adapter, __spreadValues({}, props));
3676
+ };
3677
+ var Head = (props) => {
3678
+ const { Head: Adapter } = useFrameworkAdapters();
3679
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Adapter, __spreadValues({}, props));
3680
+ };
3681
+ var useRouter = () => useFrameworkAdapters().useRouter();
3682
+ var useNavigationRouter = () => useFrameworkAdapters().useNavigationRouter();
3683
+ var useSearchParams = () => useFrameworkAdapters().useSearchParams();
3684
+ var useTheme = () => useFrameworkAdapters().useTheme();
3685
+ var useI18n = () => useFrameworkAdapters().useI18n();
3686
+ function dynamic(loader, options) {
3687
+ let resolved;
3688
+ const Wrapper = (props) => {
3689
+ const { dynamic: dynamicAdapter } = useFrameworkAdapters();
3690
+ if (!resolved) {
3691
+ resolved = dynamicAdapter(loader, options);
3692
+ }
3693
+ const Component = resolved;
3694
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Component, __spreadValues({}, props));
3695
+ };
3696
+ Wrapper.displayName = "DynamicFrameworkWrapper";
3697
+ return Wrapper;
3698
+ }
3335
3699
  // Annotate the CommonJS export names for ESM import in node:
3336
3700
  0 && (module.exports = {
3337
3701
  ActivityStatus,
@@ -3343,13 +3707,21 @@ function signOut() {
3343
3707
  ColorArrayCSSClass,
3344
3708
  Config,
3345
3709
  DOTS,
3710
+ DefaultHead,
3711
+ DefaultImage,
3712
+ DefaultLink,
3713
+ DefaultScript,
3346
3714
  FarmingSystem,
3347
3715
  Features,
3716
+ FrameworkProvider,
3717
+ Head,
3348
3718
  HostService,
3349
3719
  HostType,
3350
3720
  HuntingManagement,
3721
+ Image,
3351
3722
  ImageError,
3352
3723
  IsTokenExpired,
3724
+ Link,
3353
3725
  LiveStock,
3354
3726
  LookUps,
3355
3727
  MainAgriculturalAreas,
@@ -3364,6 +3736,7 @@ function signOut() {
3364
3736
  ResourcesMenu,
3365
3737
  Responsive,
3366
3738
  SESSION_QUERY_KEY,
3739
+ Script,
3367
3740
  SessionProvider,
3368
3741
  StyleType,
3369
3742
  TaskEventType,
@@ -3374,9 +3747,11 @@ function signOut() {
3374
3747
  ViewStatus,
3375
3748
  classNames,
3376
3749
  configStore,
3750
+ defaultDynamic,
3377
3751
  delayedSlideInUp,
3378
3752
  downloadData,
3379
3753
  downloadJSON,
3754
+ dynamic,
3380
3755
  easing,
3381
3756
  findHostInfo,
3382
3757
  formatUnixDate,
@@ -3401,6 +3776,7 @@ function signOut() {
3401
3776
  itemVariants,
3402
3777
  keyStr,
3403
3778
  listVariants,
3779
+ queryToSearchParams,
3404
3780
  rgbDataURL,
3405
3781
  routes,
3406
3782
  scrollToFirstErrorElement,
@@ -3421,6 +3797,7 @@ function signOut() {
3421
3797
  trackUmamiEvent,
3422
3798
  trackUserEvent,
3423
3799
  triplet,
3800
+ unwrapDefault,
3424
3801
  useAllNewsFromAllClusters,
3425
3802
  useApiImage,
3426
3803
  useApiUrl,
@@ -3454,7 +3831,12 @@ function signOut() {
3454
3831
  useCountries,
3455
3832
  useCreateHost,
3456
3833
  useCurrentUser,
3834
+ useDefaultI18n,
3835
+ useDefaultNavigationRouter,
3836
+ useDefaultRouter,
3837
+ useDefaultSearchParams,
3457
3838
  useDefaultSettings,
3839
+ useDefaultTheme,
3458
3840
  useDeleteHost,
3459
3841
  useDimensions,
3460
3842
  useEmailing,
@@ -3466,12 +3848,14 @@ function signOut() {
3466
3848
  useFileUpload,
3467
3849
  useFileUrl,
3468
3850
  useFilterClusters,
3851
+ useFrameworkAdapters,
3469
3852
  useGeoWikiSettings,
3470
3853
  useGetUserProject,
3471
3854
  useGrantedPolicies,
3472
3855
  useGroupsInProject,
3473
3856
  useHost,
3474
3857
  useHosts,
3858
+ useI18n,
3475
3859
  useImageUrl,
3476
3860
  useIntroTourSettings,
3477
3861
  useIsAdmin,
@@ -3487,6 +3871,7 @@ function signOut() {
3487
3871
  useLockBodyScroll,
3488
3872
  useLookUp,
3489
3873
  useMapMenuItems,
3874
+ useNavigationRouter,
3490
3875
  useNews,
3491
3876
  useNewsFromAllClusters,
3492
3877
  usePagination,
@@ -3509,6 +3894,8 @@ function signOut() {
3509
3894
  useResourceType,
3510
3895
  useReviewTaskBulkUpload,
3511
3896
  useRoles,
3897
+ useRouter,
3898
+ useSearchParams,
3512
3899
  useSession,
3513
3900
  useTaskAnnotation,
3514
3901
  useTaskAnswers,
@@ -3520,6 +3907,7 @@ function signOut() {
3520
3907
  useTaskStatusList,
3521
3908
  useTasksPerLocation,
3522
3909
  useTenants,
3910
+ useTheme,
3523
3911
  useTopic,
3524
3912
  useUpdateActiveGroupInProject,
3525
3913
  useUpdateHost,