@geowiki/recodo 0.16.9-dev.1 → 0.16.9-dev.11

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
@@ -30,94 +30,51 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // src/components/ClusterMap/MarkerClusterGroup.tsx
34
- function getPropsAndEvents(props) {
35
- let clusterProps = {};
36
- let clusterEvents = {};
37
- const { children, ...rest } = props;
38
- Object.entries(rest).forEach(([propName, prop]) => {
39
- if (propName.startsWith("on")) {
40
- clusterEvents = { ...clusterEvents, [propName]: prop };
41
- } else {
42
- clusterProps = { ...clusterProps, [propName]: prop };
43
- }
44
- });
45
- return { clusterProps, clusterEvents };
46
- }
47
- function createMarkerClusterGroup(props, context) {
48
- const { clusterProps, clusterEvents } = getPropsAndEvents(props);
49
- const markerClusterGroup = new L.MarkerClusterGroup(clusterProps);
50
- Object.entries(clusterEvents).forEach(([eventAsProp, callback]) => {
51
- const clusterEvent = `cluster${eventAsProp.substring(2).toLowerCase()}`;
52
- markerClusterGroup.on(clusterEvent, callback);
53
- });
54
- return (0, import_core12.createElementObject)(
55
- markerClusterGroup,
56
- (0, import_core12.extendContext)(context, { layerContainer: markerClusterGroup })
57
- );
58
- }
59
- var import_core12, L, import_leaflet, updateMarkerCluster, MarkerClusterGroup2;
60
- var init_MarkerClusterGroup = __esm({
61
- "src/components/ClusterMap/MarkerClusterGroup.tsx"() {
62
- "use strict";
63
- "use client";
64
- import_core12 = require("@react-leaflet/core");
65
- L = __toESM(require("leaflet"));
66
- import_leaflet = require("leaflet.markercluster");
67
- updateMarkerCluster = () => {
68
- };
69
- MarkerClusterGroup2 = (0, import_core12.createPathComponent)(
70
- createMarkerClusterGroup,
71
- updateMarkerCluster
72
- );
73
- }
74
- });
75
-
76
33
  // src/components/ClusterMap/cluster-markers.tsx
77
34
  function getIcon() {
78
35
  const MyIcon = import_InformationCircleIcon.default;
79
36
  return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(MyIcon, { height: 24, color: "black" }));
80
37
  }
81
- var import_leaflet2, import_react_leaflet, import_core13, import_ui11, import_image, import_core14, import_InformationCircleIcon, import_server, import_core15, import_jsx_runtime10, ClusterMarkers;
38
+ var import_leaflet, import_react_leaflet, import_core16, import_ui11, import_map, import_core17, import_core18, import_InformationCircleIcon, import_server, import_core19, import_jsx_runtime10, ClusterMarkers;
82
39
  var init_cluster_markers = __esm({
83
40
  "src/components/ClusterMap/cluster-markers.tsx"() {
84
41
  "use strict";
85
42
  "use client";
86
- import_leaflet2 = require("leaflet");
43
+ import_leaflet = require("leaflet");
87
44
  import_react_leaflet = require("react-leaflet");
88
- import_core13 = require("@geowiki/core");
45
+ import_core16 = require("@geowiki/core");
89
46
  import_ui11 = require("@geowiki/ui");
90
- import_image = __toESM(require("next/image"));
91
- init_MarkerClusterGroup();
92
- import_core14 = require("@geowiki/core");
47
+ import_map = require("@geowiki/map");
48
+ import_core17 = require("@geowiki/core");
49
+ import_core18 = require("@geowiki/core");
93
50
  import_InformationCircleIcon = __toESM(require("@heroicons/react/24/solid/InformationCircleIcon"));
94
51
  import_server = require("react-dom/server");
95
- import_core15 = require("@geowiki/core");
52
+ import_core19 = require("@geowiki/core");
96
53
  import_jsx_runtime10 = require("react/jsx-runtime");
97
54
  ClusterMarkers = (_props) => {
98
- const { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core15.useConfigSettings)();
99
- const { data, error, isLoading } = (0, import_core13.useClusterMapInfo)();
100
- const fileUrl = (0, import_core14.useFileUrl)();
55
+ const { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core19.useConfigSettings)();
56
+ const { data, error, isLoading } = (0, import_core16.useClusterMapInfo)();
57
+ const fileUrl = (0, import_core18.useFileUrl)();
101
58
  if (error)
102
59
  return null;
103
60
  if (isLoading || IsConfigSettingsLoaded)
104
61
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui11.LoaderFull, {});
105
62
  if (ConfigSettings?.ConfigSettings?.FeaturesFarmerCluster?.Text) {
106
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(MarkerClusterGroup2, { children: data?.map((cluster) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
63
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_map.MarkerClusterGroup, { children: data?.map((cluster) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
107
64
  import_react_leaflet.Marker,
108
65
  {
109
- icon: new import_leaflet2.DivIcon({
66
+ icon: new import_leaflet.DivIcon({
110
67
  iconSize: [30, 30],
111
68
  html: `<div class='marker-pin' style="background:#467327;"></div><i>${getIcon()}</i>`,
112
69
  className: "custom-div-icon"
113
70
  }),
114
- position: cluster.location ? new import_leaflet2.LatLng(
71
+ position: cluster.location ? new import_leaflet.LatLng(
115
72
  cluster?.location?.latitude,
116
73
  cluster?.location?.longitude
117
- ) : new import_leaflet2.LatLng(0, 0),
74
+ ) : new import_leaflet.LatLng(0, 0),
118
75
  children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_leaflet.Popup, { maxWidth: 600, children: [
119
76
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "bg-no-repeat bg-cover ripple shadow-lg rounded-lg mb-6 object-cover", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
120
- import_image.default,
77
+ import_core17.Image,
121
78
  {
122
79
  src: `${fileUrl}${cluster.coverImageId}`,
123
80
  alt: "Image",
@@ -157,22 +114,22 @@ __export(cluster_map_exports, {
157
114
  function getIcon2() {
158
115
  return (0, import_server2.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_ui12.FarmerClusterPin, { height: 40, width: 40 }));
159
116
  }
160
- var import_react_leaflet2, import_leaflet3, import_leaflet4, import_leaflet5, import_server2, import_ui12, import_jsx_runtime11, centerLocation, icon, LocationMarker, FarmerClusterMap, cluster_map_default;
117
+ var import_react_leaflet2, import_leaflet2, import_leaflet3, import_leaflet4, import_server2, import_ui12, import_jsx_runtime11, centerLocation, icon, LocationMarker, FarmerClusterMap, cluster_map_default;
161
118
  var init_cluster_map = __esm({
162
119
  "src/components/ClusterMap/cluster-map.tsx"() {
163
120
  "use strict";
164
121
  "use client";
165
122
  import_react_leaflet2 = require("react-leaflet");
166
- import_leaflet3 = require("leaflet/dist/leaflet.css");
167
- import_leaflet4 = require("leaflet");
168
- import_leaflet5 = __toESM(require("leaflet"));
123
+ import_leaflet2 = require("leaflet/dist/leaflet.css");
124
+ import_leaflet3 = require("leaflet");
125
+ import_leaflet4 = __toESM(require("leaflet"));
169
126
  init_cluster_markers();
170
127
  import_server2 = require("react-dom/server");
171
128
  import_ui12 = require("@geowiki/ui");
172
129
  import_jsx_runtime11 = require("react/jsx-runtime");
173
- centerLocation = new import_leaflet4.LatLng(48.2082, 16.3738);
130
+ centerLocation = new import_leaflet3.LatLng(48.2082, 16.3738);
174
131
  icon = () => {
175
- return new import_leaflet5.default.DivIcon({
132
+ return new import_leaflet4.default.DivIcon({
176
133
  iconSize: [40, 40],
177
134
  iconAnchor: [28, 15],
178
135
  html: `<i style="margin: 0px; margin-left: 7.5px; margin-top: -22px;">${getIcon2()}</i>`,
@@ -260,7 +217,6 @@ __export(src_exports, {
260
217
  ResourceIcon: () => ResourceIcon,
261
218
  ResourceItem: () => ResourceItem,
262
219
  ResourceList: () => ResourceList,
263
- ResourceTag: () => ResourceTag,
264
220
  ResourcesQuickFind: () => ResourcesQuickFind,
265
221
  ResourcesSelectedTags: () => ResourcesSelectedTags,
266
222
  SearchFilter: () => SearchFilter,
@@ -315,15 +271,15 @@ var import_react5 = require("react");
315
271
  var import_react_dropzone = require("react-dropzone");
316
272
  var import_react_hook_form = require("react-hook-form");
317
273
  var import_sweetalert2 = __toESM(require("sweetalert2"));
318
- var import_core3 = require("@geowiki/core");
319
274
  var import_core4 = require("@geowiki/core");
275
+ var import_core5 = require("@geowiki/core");
320
276
  var import_ui4 = require("@geowiki/ui");
321
277
  var import_ui5 = require("@geowiki/ui");
322
278
  var import_ui6 = require("@geowiki/ui");
323
- var import_router = require("next/router");
324
- var import_core5 = require("@geowiki/core");
325
279
  var import_core6 = require("@geowiki/core");
326
280
  var import_core7 = require("@geowiki/core");
281
+ var import_core8 = require("@geowiki/core");
282
+ var import_core9 = require("@geowiki/core");
327
283
  var import_api_proxy = require("@geowiki/api-proxy");
328
284
 
329
285
  // src/components/FarmerCluster/ClusterNews/PreviewClusterNews.tsx
@@ -456,7 +412,7 @@ var import_react3 = require("@headlessui/react");
456
412
  var import_react4 = require("react");
457
413
  var import_outline2 = require("@heroicons/react/24/outline");
458
414
  var import_ui3 = require("@geowiki/ui");
459
- var import_link = __toESM(require("next/link"));
415
+ var import_core3 = require("@geowiki/core");
460
416
  var import_jsx_runtime3 = require("react/jsx-runtime");
461
417
  var FarmerClusterPopup = ({
462
418
  title,
@@ -529,7 +485,7 @@ var FarmerClusterPopup = ({
529
485
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui3.H5Design, { className: "pt-2 pb-4 px-14", children: title }),
530
486
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_ui3.Body16, { className: "px-24", children: description }),
531
487
  clusterId && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
532
- import_link.default,
488
+ import_core3.Link,
533
489
  {
534
490
  href: `/cluster/view/${clusterId}`,
535
491
  target: "_blank",
@@ -550,14 +506,14 @@ var FarmerClusterPopup = ({
550
506
  // src/components/FarmerCluster/ClusterNews/ClusterEditNews.tsx
551
507
  var import_jsx_runtime4 = require("react/jsx-runtime");
552
508
  var ClusterEditNews = (props) => {
553
- const router = (0, import_router.useRouter)();
509
+ const router = (0, import_core6.useRouter)();
554
510
  const [showPreviewContent, setShowPreviewContent] = (0, import_react5.useState)(false);
555
511
  const { id, clusterId } = router.query;
556
- const { data: news, isLoading: isNewsLoading } = (0, import_core7.useClusterGetNews)(
512
+ const { data: news, isLoading: isNewsLoading } = (0, import_core9.useClusterGetNews)(
557
513
  props.clusterId,
558
514
  props.newsId
559
515
  );
560
- var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core5.useConfigSettings)();
516
+ var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core7.useConfigSettings)();
561
517
  const [title, setTitle] = (0, import_react5.useState)(news?.title);
562
518
  const [summary, setSummary] = (0, import_react5.useState)(news?.intro);
563
519
  const [imageId, setImageId] = (0, import_react5.useState)(news?.imageId);
@@ -575,7 +531,7 @@ var ClusterEditNews = (props) => {
575
531
  )
576
532
  );
577
533
  };
578
- const fileUrl = (0, import_core6.useFileUrl)();
534
+ const fileUrl = (0, import_core8.useFileUrl)();
579
535
  const {
580
536
  register,
581
537
  handleSubmit,
@@ -661,7 +617,7 @@ var ClusterEditNews = (props) => {
661
617
  import_sweetalert2.default.fire("Failed", "Cluster News Update Failed", "error");
662
618
  }
663
619
  } catch (error) {
664
- import_sweetalert2.default.fire("Failed", import_core4.i18n.t(error), "error");
620
+ import_sweetalert2.default.fire("Failed", import_core5.i18n.t(error), "error");
665
621
  }
666
622
  };
667
623
  if (isNewsLoading || IsConfigSettingsLoaded)
@@ -774,7 +730,7 @@ var ClusterEditNews = (props) => {
774
730
  );
775
731
  } else {
776
732
  props.setRefresh(!props.refresh);
777
- props.setStatus(import_core3.ViewStatus.List);
733
+ props.setStatus(import_core4.ViewStatus.List);
778
734
  }
779
735
  },
780
736
  size: "sm",
@@ -834,14 +790,14 @@ var ClusterEditNews = (props) => {
834
790
 
835
791
  // src/components/FarmerCluster/ClusterNews/ClusterNewsList.tsx
836
792
  var import_react6 = require("react");
837
- var import_core8 = require("@geowiki/core");
838
- var import_core9 = require("@geowiki/core");
793
+ var import_core10 = require("@geowiki/core");
794
+ var import_core11 = require("@geowiki/core");
839
795
  var import_react_data_table_component = __toESM(require("react-data-table-component"));
840
- var import_next_themes = require("next-themes");
796
+ var import_core12 = require("@geowiki/core");
841
797
  var import_ui7 = require("@geowiki/ui");
842
798
  var import_jsx_runtime5 = require("react/jsx-runtime");
843
799
  var ClusterNewsList = (props) => {
844
- const { theme } = (0, import_next_themes.useTheme)();
800
+ const { theme } = (0, import_core12.useTheme)();
845
801
  const columns = [
846
802
  {
847
803
  name: "Post title",
@@ -894,7 +850,7 @@ var ClusterNewsList = (props) => {
894
850
  const paginationComponentOptions = {
895
851
  noRowsPerPage: true
896
852
  };
897
- const { data: AllNews, isLoading: IsAllNewsLoaded } = (0, import_core9.useClusterAllNews)(
853
+ const { data: AllNews, isLoading: IsAllNewsLoaded } = (0, import_core11.useClusterAllNews)(
898
854
  props.clusterId,
899
855
  props.refresh,
900
856
  void 0,
@@ -905,11 +861,11 @@ var ClusterNewsList = (props) => {
905
861
  if (IsAllNewsLoaded)
906
862
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_ui7.LoaderFull, {});
907
863
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
908
- props.status === import_core8.ViewStatus.List ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "mt-3 sm:mt-3 sm:ml-4 flex ...", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
864
+ props.status === import_core10.ViewStatus.List ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "mt-3 sm:mt-3 sm:ml-4 flex ...", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
909
865
  import_ui7.DesignButton,
910
866
  {
911
867
  size: "sm",
912
- onClick: () => props.setStatus(import_core8.ViewStatus.New),
868
+ onClick: () => props.setStatus(import_core10.ViewStatus.New),
913
869
  children: "Create new post"
914
870
  }
915
871
  ) }) : null,
@@ -956,11 +912,11 @@ var ClusterNewsList = (props) => {
956
912
  };
957
913
 
958
914
  // src/components/FarmerCluster/ClusterNews/ClusterNewsItem.tsx
959
- var import_core10 = require("@geowiki/core");
915
+ var import_core13 = require("@geowiki/core");
960
916
  var import_ui8 = require("@geowiki/ui");
961
917
  var import_jsx_runtime6 = require("react/jsx-runtime");
962
918
  var ClusterNewsItem = ({ newsId }) => {
963
- const { data, isLoading } = (0, import_core10.useClusterNewsWithId)(newsId);
919
+ const { data, isLoading } = (0, import_core13.useClusterNewsWithId)(newsId);
964
920
  if (isLoading)
965
921
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui8.LoaderFull, {});
966
922
  if (!data)
@@ -985,13 +941,13 @@ var ClusterNewsItem = ({ newsId }) => {
985
941
  // src/components/FarmerCluster/FarmerClusterBasicInfo.tsx
986
942
  var import_react9 = require("react");
987
943
  var import_react_hook_form2 = require("react-hook-form");
988
- var import_dynamic = __toESM(require("next/dynamic"));
944
+ var import_core20 = require("@geowiki/core");
989
945
  var import_sweetalert22 = __toESM(require("sweetalert2"));
990
946
  var import_ui13 = require("@geowiki/ui");
991
- var import_core16 = require("@geowiki/core");
947
+ var import_core21 = require("@geowiki/core");
992
948
  var import_api_proxy3 = require("@geowiki/api-proxy");
993
949
  var import_ui14 = require("@geowiki/ui");
994
- var import_router3 = require("next/router");
950
+ var import_core22 = require("@geowiki/core");
995
951
 
996
952
  // src/components/FarmerCluster/SectionHeader.tsx
997
953
  var import_ui9 = require("@geowiki/ui");
@@ -1183,14 +1139,14 @@ var import_date_fns = require("date-fns");
1183
1139
  var import_react_dropzone2 = require("react-dropzone");
1184
1140
 
1185
1141
  // src/components/RequireRecodoAdmin.tsx
1186
- var import_core11 = require("@geowiki/core");
1142
+ var import_core14 = require("@geowiki/core");
1187
1143
  var import_jsx_runtime8 = require("react/jsx-runtime");
1188
1144
  var RequireRecodoAdmin = ({
1189
1145
  children
1190
1146
  }) => {
1191
- const { data } = (0, import_core11.useAppConfig)();
1147
+ const { data } = (0, import_core14.useAppConfig)();
1192
1148
  console.log(data?.currentUser?.roles);
1193
- return data?.currentUser?.roles?.includes(import_core11.USER_ROLE.FARMER_CLUSTER_ADMIN) || data?.currentUser?.roles?.includes(import_core11.USER_ROLE.ADMIN) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children }) : null;
1149
+ return data?.currentUser?.roles?.includes(import_core14.USER_ROLE.FARMER_CLUSTER_ADMIN) || data?.currentUser?.roles?.includes(import_core14.USER_ROLE.ADMIN) ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children }) : null;
1194
1150
  };
1195
1151
 
1196
1152
  // src/components/FarmerCluster/FarmerClusterBasicInfo.tsx
@@ -1200,11 +1156,11 @@ var import_react_query = require("@tanstack/react-query");
1200
1156
  var import_react7 = require("@headlessui/react");
1201
1157
  var import_react8 = require("react");
1202
1158
  var import_ui10 = require("@geowiki/ui");
1203
- var import_router2 = require("next/router");
1159
+ var import_core15 = require("@geowiki/core");
1204
1160
  var import_outline3 = require("@heroicons/react/24/outline");
1205
1161
  var import_jsx_runtime9 = require("react/jsx-runtime");
1206
1162
  var CancelPopup = ({ open, setOpen }) => {
1207
- const router = (0, import_router2.useRouter)();
1163
+ const router = (0, import_core15.useRouter)();
1208
1164
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react7.Transition.Root, { show: open, as: import_react8.Fragment, "data-component": "CancelPopup", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react7.Dialog, { as: "div", className: "relative z-10", onClose: setOpen, children: [
1209
1165
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1210
1166
  import_react7.Transition.Child,
@@ -1289,15 +1245,15 @@ var CancelPopup = ({ open, setOpen }) => {
1289
1245
 
1290
1246
  // src/components/FarmerCluster/FarmerClusterBasicInfo.tsx
1291
1247
  var import_jsx_runtime12 = require("react/jsx-runtime");
1292
- var MapWithNoSSR = (0, import_dynamic.default)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
1248
+ var MapWithNoSSR = (0, import_core20.dynamic)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
1293
1249
  ssr: false
1294
1250
  });
1295
1251
  var FarmerClusterBasicInfo = () => {
1296
- const router = (0, import_router3.useRouter)();
1252
+ const router = (0, import_core22.useRouter)();
1297
1253
  const id = router.query.id;
1298
1254
  const mapRef = (0, import_react9.useRef)(null);
1299
- const { data: countries, isLoading: isCountryLoading } = (0, import_core16.useCountries)(true);
1300
- const { data: cluster, isLoading } = (0, import_core16.useClusterDetails)(id);
1255
+ const { data: countries, isLoading: isCountryLoading } = (0, import_core21.useCountries)(true);
1256
+ const { data: cluster, isLoading } = (0, import_core21.useClusterDetails)(id);
1301
1257
  const [coverImageId, setCoverImageId] = (0, import_react9.useState)(null);
1302
1258
  const [selectedFileUrl, setSelectedFileUrl] = (0, import_react9.useState)(null);
1303
1259
  const [selectedFile, setSelectedFile] = (0, import_react9.useState)(null);
@@ -1337,7 +1293,7 @@ var FarmerClusterBasicInfo = () => {
1337
1293
  setCoverImageId(cluster?.coverImageId);
1338
1294
  }, [cluster]);
1339
1295
  (0, import_react9.useEffect)(() => {
1340
- (0, import_core16.scrollToFirstErrorElement)(errors);
1296
+ (0, import_core21.scrollToFirstErrorElement)(errors);
1341
1297
  }, [errors]);
1342
1298
  const setClusterImage = async (file, clusterId) => {
1343
1299
  return await import_api_proxy3.ClusterService.clusterSetCoverImage({
@@ -1381,7 +1337,7 @@ var FarmerClusterBasicInfo = () => {
1381
1337
  createUpdateFarmerCluster
1382
1338
  );
1383
1339
  queryClient.invalidateQueries({
1384
- queryKey: [import_core16.QueryNames.GetClusterDetails, id]
1340
+ queryKey: [import_core21.QueryNames.GetClusterDetails, id]
1385
1341
  });
1386
1342
  if (res !== null) {
1387
1343
  setPopupOpen(true);
@@ -1552,7 +1508,7 @@ var FarmerClusterBasicInfo = () => {
1552
1508
  defaultValue: field.value,
1553
1509
  children: [
1554
1510
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui13.DesignSelectTrigger, { variant: "input", className: "pl-0", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui13.DesignSelectValue, { placeholder: "Activity Status" }) }),
1555
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui13.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui13.DesignSelectGroup, { children: import_core16.CLUSTER_ACTIVITY_STATUS.map((activity) => {
1511
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui13.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui13.DesignSelectGroup, { children: import_core21.CLUSTER_ACTIVITY_STATUS.map((activity) => {
1556
1512
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1557
1513
  import_ui13.DesignSelectItem,
1558
1514
  {
@@ -1807,11 +1763,11 @@ var import_react10 = require("react");
1807
1763
  var import_react_hook_form4 = require("react-hook-form");
1808
1764
  var import_sweetalert23 = __toESM(require("sweetalert2"));
1809
1765
  var import_ui16 = require("@geowiki/ui");
1810
- var import_core17 = require("@geowiki/core");
1811
- var import_core18 = require("@geowiki/core");
1766
+ var import_core23 = require("@geowiki/core");
1767
+ var import_core24 = require("@geowiki/core");
1812
1768
  var import_api_proxy4 = require("@geowiki/api-proxy");
1813
1769
  var import_ui17 = require("@geowiki/ui");
1814
- var import_router4 = require("next/router");
1770
+ var import_core25 = require("@geowiki/core");
1815
1771
 
1816
1772
  // src/components/FarmerCluster/CharacteristicsSection.tsx
1817
1773
  var import_react_hook_form3 = require("react-hook-form");
@@ -1898,15 +1854,15 @@ var import_zod3 = require("@hookform/resolvers/zod");
1898
1854
  var import_react_query2 = require("@tanstack/react-query");
1899
1855
  var import_jsx_runtime14 = require("react/jsx-runtime");
1900
1856
  var FarmerClusterDescription = () => {
1901
- const router = (0, import_router4.useRouter)();
1857
+ const router = (0, import_core25.useRouter)();
1902
1858
  const id = router.query.id;
1903
1859
  const [isSavedPopupOpen, setSavedPopupOpen] = (0, import_react10.useState)(false);
1904
1860
  const [isCancelPopupOpen, setCancelPopupOpen] = (0, import_react10.useState)(false);
1905
- const { data: cluster, isLoading: isClusterLoading } = (0, import_core17.useClusterDescription)(
1861
+ const { data: cluster, isLoading: isClusterLoading } = (0, import_core23.useClusterDescription)(
1906
1862
  id
1907
1863
  );
1908
1864
  const queryClient = (0, import_react_query2.useQueryClient)();
1909
- var { data: ConfigSettings, isLoading: isConfigLoading } = (0, import_core18.useConfigSettings)();
1865
+ var { data: ConfigSettings, isLoading: isConfigLoading } = (0, import_core24.useConfigSettings)();
1910
1866
  const methods = (0, import_react_hook_form4.useForm)({
1911
1867
  resolver: (0, import_zod3.zodResolver)(farmerClusterDescriptionDtoSchema),
1912
1868
  defaultValues: {
@@ -1984,7 +1940,7 @@ var FarmerClusterDescription = () => {
1984
1940
  if (res !== null) {
1985
1941
  setSavedPopupOpen(true);
1986
1942
  queryClient.invalidateQueries({
1987
- queryKey: [import_core17.QueryNames.GetClusterDescription, id]
1943
+ queryKey: [import_core23.QueryNames.GetClusterDescription, id]
1988
1944
  });
1989
1945
  } else {
1990
1946
  import_sweetalert23.default.fire("Cluster creation failed", "error");
@@ -2178,17 +2134,17 @@ var FarmerClusterDescription = () => {
2178
2134
  var import_react14 = require("react");
2179
2135
  var import_react_dropzone3 = require("react-dropzone");
2180
2136
  var import_react_toastify2 = require("react-toastify");
2181
- var import_core20 = require("@geowiki/core");
2137
+ var import_core27 = require("@geowiki/core");
2182
2138
  var import_ui20 = require("@geowiki/ui");
2183
2139
  var import_api_proxy6 = require("@geowiki/api-proxy");
2184
- var import_router5 = require("next/router");
2140
+ var import_core28 = require("@geowiki/core");
2185
2141
  var import_react_hook_form5 = require("react-hook-form");
2186
2142
  var import_zod4 = require("@hookform/resolvers/zod");
2187
2143
  var import_uuid = require("uuid");
2188
2144
 
2189
2145
  // src/components/FarmerCluster/UpdateImageInfo.tsx
2190
2146
  var import_api_proxy5 = require("@geowiki/api-proxy");
2191
- var import_core19 = require("@geowiki/core");
2147
+ var import_core26 = require("@geowiki/core");
2192
2148
  var import_ui18 = require("@geowiki/ui");
2193
2149
  var import_react_query3 = require("@tanstack/react-query");
2194
2150
  var import_react11 = require("react");
@@ -2213,7 +2169,7 @@ var UpdateImageInfo = ({
2213
2169
  setOpen(false);
2214
2170
  import_react_toastify.toast.success("Image info updated successfully");
2215
2171
  queryClient.invalidateQueries({
2216
- queryKey: [import_core19.QueryNames.GetImagesAndVideos, clusterId]
2172
+ queryKey: [import_core26.QueryNames.GetImagesAndVideos, clusterId]
2217
2173
  });
2218
2174
  } else {
2219
2175
  import_react_toastify.toast.error("Failed to update image info");
@@ -2368,9 +2324,9 @@ var AlertPopup = ({
2368
2324
  // src/components/FarmerCluster/FarmerClusterImages.tsx
2369
2325
  var import_jsx_runtime17 = require("react/jsx-runtime");
2370
2326
  var FarmerClusterImages = () => {
2371
- const router = (0, import_router5.useRouter)();
2327
+ const router = (0, import_core28.useRouter)();
2372
2328
  const clusterId = router.query.id;
2373
- const { data: filesData, isLoading } = (0, import_core20.useClusterImagesAndVideos)(clusterId);
2329
+ const { data: filesData, isLoading } = (0, import_core27.useClusterImagesAndVideos)(clusterId);
2374
2330
  const [files, setFiles] = (0, import_react14.useState)([]);
2375
2331
  const [isSavedPopupOpen, setSavedPopupOpen] = (0, import_react14.useState)(false);
2376
2332
  const [isCancelPopupOpen, setCancelPopupOpen] = (0, import_react14.useState)(false);
@@ -2442,7 +2398,7 @@ var FarmerClusterImages = () => {
2442
2398
  let newFiles = files.filter((x) => x.id !== imageId);
2443
2399
  setFiles(newFiles);
2444
2400
  queryClient.invalidateQueries({
2445
- queryKey: [import_core20.QueryNames.GetImagesAndVideos, clusterId]
2401
+ queryKey: [import_core27.QueryNames.GetImagesAndVideos, clusterId]
2446
2402
  });
2447
2403
  setAlertPopupOpen(false);
2448
2404
  } catch (error) {
@@ -2476,7 +2432,7 @@ var FarmerClusterImages = () => {
2476
2432
  setIsSaving(false);
2477
2433
  setSavedPopupOpen(true);
2478
2434
  queryClient.invalidateQueries({
2479
- queryKey: [import_core20.QueryNames.GetImagesAndVideos, clusterId]
2435
+ queryKey: [import_core27.QueryNames.GetImagesAndVideos, clusterId]
2480
2436
  });
2481
2437
  });
2482
2438
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react_hook_form5.FormProvider, { ...methods, children: [
@@ -2669,30 +2625,30 @@ var import_classnames = __toESM(require("classnames"));
2669
2625
  // src/components/FarmerCluster/Farmers/FarmerRequests.tsx
2670
2626
  var import_ui21 = require("@geowiki/ui");
2671
2627
  var import_ui22 = require("@geowiki/ui");
2672
- var import_core21 = require("@geowiki/core");
2673
- var import_next_themes2 = require("next-themes");
2628
+ var import_core29 = require("@geowiki/core");
2629
+ var import_core30 = require("@geowiki/core");
2674
2630
  var import_react_data_table_component2 = __toESM(require("react-data-table-component"));
2675
2631
  var import_react_query5 = require("@tanstack/react-query");
2676
2632
  var import_lucide_react = require("lucide-react");
2677
- var import_core22 = require("@geowiki/core");
2633
+ var import_core31 = require("@geowiki/core");
2678
2634
  var import_api_proxy7 = require("@geowiki/api-proxy");
2679
2635
  var import_jsx_runtime18 = require("react/jsx-runtime");
2680
2636
  var FarmerRequests = (props) => {
2681
- const { theme } = (0, import_next_themes2.useTheme)();
2637
+ const { theme } = (0, import_core30.useTheme)();
2682
2638
  const queryClient = (0, import_react_query5.useQueryClient)();
2683
- const { isLoading, isError, data } = (0, import_core22.useClusterGetJoinRequests)(
2639
+ const { isLoading, isError, data } = (0, import_core31.useClusterGetJoinRequests)(
2684
2640
  props.clusterId
2685
2641
  );
2686
2642
  const approve = async (id) => {
2687
2643
  await import_api_proxy7.ClusterService.clusterApproveJoinRequests(id);
2688
2644
  queryClient.invalidateQueries({
2689
- queryKey: [import_core21.QueryNames.JoinRequests]
2645
+ queryKey: [import_core29.QueryNames.JoinRequests]
2690
2646
  });
2691
2647
  };
2692
2648
  const reject = async (id) => {
2693
2649
  await import_api_proxy7.ClusterService.clusterRejectJoinRequests(id);
2694
2650
  queryClient.invalidateQueries({
2695
- queryKey: [import_core21.QueryNames.JoinRequests]
2651
+ queryKey: [import_core29.QueryNames.JoinRequests]
2696
2652
  });
2697
2653
  };
2698
2654
  const columns = [
@@ -2774,22 +2730,22 @@ var FarmerClusterMembers = (props) => {
2774
2730
 
2775
2731
  // src/components/FarmerCluster/FarmerClusterNews.tsx
2776
2732
  var import_react17 = require("react");
2777
- var import_core28 = require("@geowiki/core");
2733
+ var import_core37 = require("@geowiki/core");
2778
2734
 
2779
2735
  // src/components/FarmerCluster/ClusterNews/ClusterCreateNews.tsx
2780
2736
  var import_react16 = require("react");
2781
2737
  var import_react_dropzone4 = require("react-dropzone");
2782
2738
  var import_react_hook_form6 = require("react-hook-form");
2783
2739
  var import_sweetalert24 = __toESM(require("sweetalert2"));
2784
- var import_core23 = require("@geowiki/core");
2740
+ var import_core32 = require("@geowiki/core");
2785
2741
  var import_ui23 = require("@geowiki/ui");
2786
2742
  var import_ui24 = require("@geowiki/ui");
2787
- var import_core24 = require("@geowiki/core");
2788
- var import_core25 = require("@geowiki/core");
2789
- var import_core26 = require("@geowiki/core");
2743
+ var import_core33 = require("@geowiki/core");
2744
+ var import_core34 = require("@geowiki/core");
2745
+ var import_core35 = require("@geowiki/core");
2790
2746
  var import_api_proxy8 = require("@geowiki/api-proxy");
2791
2747
  var import_ui25 = require("@geowiki/ui");
2792
- var import_core27 = require("@geowiki/core");
2748
+ var import_core36 = require("@geowiki/core");
2793
2749
  var import_jsx_runtime21 = require("react/jsx-runtime");
2794
2750
  var ClusterCreateNews = (props) => {
2795
2751
  const {
@@ -2800,18 +2756,18 @@ var ClusterCreateNews = (props) => {
2800
2756
  const state = {
2801
2757
  button: "Draft"
2802
2758
  };
2803
- var session = (0, import_core26.useSession)();
2759
+ var session = (0, import_core35.useSession)();
2804
2760
  const [value, setValue] = (0, import_react16.useState)("");
2805
2761
  const [coverImage, setCoverImage] = (0, import_react16.useState)();
2806
2762
  const [files, setFiles] = (0, import_react16.useState)([]);
2807
2763
  const [showPreviewContent, setShowPreviewContent] = (0, import_react16.useState)(false);
2808
2764
  const [openSevedPopup, setOpenSevedPopup] = (0, import_react16.useState)(false);
2809
2765
  const [textPopup, setTextPopup] = (0, import_react16.useState)("");
2810
- const { data: uploadFile } = (0, import_core23.useFileUpload)({ files });
2811
- const { data: cluster, isLoading: isClusterLoading } = (0, import_core27.useCluster)(
2766
+ const { data: uploadFile } = (0, import_core32.useFileUpload)({ files });
2767
+ const { data: cluster, isLoading: isClusterLoading } = (0, import_core36.useCluster)(
2812
2768
  props.clusterId
2813
2769
  );
2814
- var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core25.useConfigSettings)();
2770
+ var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core34.useConfigSettings)();
2815
2771
  const [title, setTitle] = (0, import_react16.useState)("");
2816
2772
  const [summary, setSummary] = (0, import_react16.useState)("");
2817
2773
  const [imagePath, setImagePath] = (0, import_react16.useState)("");
@@ -2985,7 +2941,7 @@ var ClusterCreateNews = (props) => {
2985
2941
  import_ui23.DesignButton,
2986
2942
  {
2987
2943
  onClick: () => {
2988
- props.setStatus(import_core24.ViewStatus.List);
2944
+ props.setStatus(import_core33.ViewStatus.List);
2989
2945
  props.setRefresh(!props.refresh);
2990
2946
  },
2991
2947
  type: "button",
@@ -3055,7 +3011,7 @@ var ClusterCreateNews_default = ClusterCreateNews;
3055
3011
  var import_api_proxy9 = require("@geowiki/api-proxy");
3056
3012
  var import_jsx_runtime22 = require("react/jsx-runtime");
3057
3013
  var FarmerClusterNews = (props) => {
3058
- const [status, setStatus] = (0, import_react17.useState)(import_core28.ViewStatus.List);
3014
+ const [status, setStatus] = (0, import_react17.useState)(import_core37.ViewStatus.List);
3059
3015
  const [refresh, setRefresh] = (0, import_react17.useState)(true);
3060
3016
  const [newToEdit, setNewToEdit] = (0, import_react17.useState)("");
3061
3017
  const [newsToView] = (0, import_react17.useState)("");
@@ -3064,7 +3020,7 @@ var FarmerClusterNews = (props) => {
3064
3020
  const [deleteNewsName, setDeleteNewsName] = (0, import_react17.useState)("");
3065
3021
  const onEdit = (row) => {
3066
3022
  setNewToEdit(row?.id);
3067
- setStatus(import_core28.ViewStatus.Edit);
3023
+ setStatus(import_core37.ViewStatus.Edit);
3068
3024
  setRefresh(!refresh);
3069
3025
  window.scroll({
3070
3026
  top: 0,
@@ -3081,7 +3037,7 @@ var FarmerClusterNews = (props) => {
3081
3037
  if (currentData) {
3082
3038
  try {
3083
3039
  await import_api_proxy9.ClusterService.clusterDeleteNews(props.clusterId, data.id);
3084
- setStatus(import_core28.ViewStatus.List);
3040
+ setStatus(import_core37.ViewStatus.List);
3085
3041
  setRefresh(!refresh);
3086
3042
  setShowAlert(false);
3087
3043
  } catch {
@@ -3095,7 +3051,7 @@ var FarmerClusterNews = (props) => {
3095
3051
  };
3096
3052
  const renderView = (status2) => {
3097
3053
  switch (status2) {
3098
- case import_core28.ViewStatus.New:
3054
+ case import_core37.ViewStatus.New:
3099
3055
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3100
3056
  ClusterCreateNews_default,
3101
3057
  {
@@ -3107,7 +3063,7 @@ var FarmerClusterNews = (props) => {
3107
3063
  setRefresh
3108
3064
  }
3109
3065
  );
3110
- case import_core28.ViewStatus.Edit:
3066
+ case import_core37.ViewStatus.Edit:
3111
3067
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3112
3068
  ClusterEditNews,
3113
3069
  {
@@ -3120,7 +3076,7 @@ var FarmerClusterNews = (props) => {
3120
3076
  setRefresh
3121
3077
  }
3122
3078
  );
3123
- case import_core28.ViewStatus.List:
3079
+ case import_core37.ViewStatus.List:
3124
3080
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
3125
3081
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3126
3082
  ClusterNewsList,
@@ -3146,7 +3102,7 @@ var FarmerClusterNews = (props) => {
3146
3102
  }
3147
3103
  )
3148
3104
  ] });
3149
- case import_core28.ViewStatus.View:
3105
+ case import_core37.ViewStatus.View:
3150
3106
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3151
3107
  ClusterViewNews,
3152
3108
  {
@@ -3164,23 +3120,23 @@ var FarmerClusterNews = (props) => {
3164
3120
  // src/components/FarmerCluster/FarmerClusterList.tsx
3165
3121
  var import_react18 = require("react");
3166
3122
  var import_sweetalert25 = __toESM(require("sweetalert2"));
3167
- var import_core29 = require("@geowiki/core");
3123
+ var import_core38 = require("@geowiki/core");
3168
3124
  var import_ui26 = require("@geowiki/ui");
3169
3125
  var import_ui27 = require("@geowiki/ui");
3170
- var import_link2 = __toESM(require("next/link"));
3171
- var import_core30 = require("@geowiki/core");
3126
+ var import_core39 = require("@geowiki/core");
3127
+ var import_core40 = require("@geowiki/core");
3172
3128
  var import_api_proxy10 = require("@geowiki/api-proxy");
3173
3129
  var import_ui28 = require("@geowiki/ui");
3174
3130
  var import_react_query6 = require("@tanstack/react-query");
3175
- var import_core31 = require("@geowiki/core");
3131
+ var import_core41 = require("@geowiki/core");
3176
3132
  var import_react_data_table_component3 = __toESM(require("react-data-table-component"));
3177
- var import_next_themes3 = require("next-themes");
3133
+ var import_core42 = require("@geowiki/core");
3178
3134
  var import_ui29 = require("@geowiki/ui");
3179
3135
  var import_ui30 = require("@geowiki/ui");
3180
3136
  var import_ui31 = require("@geowiki/ui");
3181
3137
  var import_jsx_runtime23 = require("react/jsx-runtime");
3182
3138
  var FarmerClusterList = () => {
3183
- const { theme } = (0, import_next_themes3.useTheme)();
3139
+ const { theme } = (0, import_core42.useTheme)();
3184
3140
  const queryClient = (0, import_react_query6.useQueryClient)();
3185
3141
  var [skip, setSkip] = (0, import_react18.useState)(0);
3186
3142
  var [limit, setLimit] = (0, import_react18.useState)(10);
@@ -3190,7 +3146,7 @@ var FarmerClusterList = () => {
3190
3146
  const [clusterIdToDelete, setClusterIdToDelete] = (0, import_react18.useState)(
3191
3147
  null
3192
3148
  );
3193
- var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core29.useConfigSettings)();
3149
+ var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core38.useConfigSettings)();
3194
3150
  var farmerClusterEnabled = ConfigSettings?.ConfigSettings?.FeaturesFarmerCluster?.Text;
3195
3151
  var canViewFarmerClusterPermission = ConfigSettings?.PermissionFarmerCluster?.ContentItems?.filter(
3196
3152
  (permission) => permission.KeyValueItem?.Key?.Text == "Default"
@@ -3208,7 +3164,7 @@ var FarmerClusterList = () => {
3208
3164
  const handlePerRowsChange = async (newPerPage, _page) => {
3209
3165
  setLimit(newPerPage);
3210
3166
  };
3211
- const { data, isLoading } = (0, import_core30.useClusters)(false, "", skip, limit);
3167
+ const { data, isLoading } = (0, import_core40.useClusters)(false, "", skip, limit);
3212
3168
  const columns = [
3213
3169
  {
3214
3170
  name: "Name",
@@ -3258,7 +3214,7 @@ var FarmerClusterList = () => {
3258
3214
  try {
3259
3215
  await import_api_proxy10.ClusterService.clusterDelete(clusterIdToDelete);
3260
3216
  queryClient.invalidateQueries({
3261
- queryKey: [import_core31.QueryNames.Clusters]
3217
+ queryKey: [import_core41.QueryNames.Clusters]
3262
3218
  });
3263
3219
  setAlertOpen(false);
3264
3220
  } catch {
@@ -3278,7 +3234,7 @@ var FarmerClusterList = () => {
3278
3234
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "-ml-4 -mt-2 pb-8 items-center sm:flex-nowrap", children: [
3279
3235
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "ml-4 mt-2 text-2xl lg:text-[1.75rem] font-semibold leading-[120%]", children: "Farmer Clusters" }),
3280
3236
  canCreateFarmerClusterPermission ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "ml-4 pt-6 flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3281
- import_link2.default,
3237
+ import_core39.Link,
3282
3238
  {
3283
3239
  href: "/admin/cluster/create",
3284
3240
  className: "btn btn-primary m-0",
@@ -3357,12 +3313,12 @@ var import_ui33 = require("@geowiki/ui");
3357
3313
  var import_ui34 = require("@geowiki/ui");
3358
3314
  var import_react_player = __toESM(require("react-player"));
3359
3315
  var import_ui35 = require("@geowiki/ui");
3360
- var import_core32 = require("@geowiki/core");
3316
+ var import_core43 = require("@geowiki/core");
3361
3317
  var import_ui36 = require("@geowiki/ui");
3362
3318
  var import_jsx_runtime24 = require("react/jsx-runtime");
3363
3319
  var ViewBasicInfo = ({ cluster }) => {
3364
3320
  var arrayPos = 0;
3365
- var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core32.useConfigSettings)();
3321
+ var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core43.useConfigSettings)();
3366
3322
  if (IsConfigSettingsLoaded)
3367
3323
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_ui35.LoaderFull, {});
3368
3324
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "container mx-auto pt-4", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("section", { className: "px-2 py-5", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "shadow ", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "border-t px-2 py-5", children: [
@@ -3557,17 +3513,17 @@ var ViewClusterImagesList_default = ViewClusterImagesList;
3557
3513
 
3558
3514
  // src/components/FarmerCluster/ViewFarmerCluster.tsx
3559
3515
  var import_ui38 = require("@geowiki/ui");
3560
- var import_dynamic2 = __toESM(require("next/dynamic"));
3561
- var import_router6 = require("next/router");
3562
- var import_core33 = require("@geowiki/core");
3563
- var import_core34 = require("@geowiki/core");
3516
+ var import_core44 = require("@geowiki/core");
3517
+ var import_core45 = require("@geowiki/core");
3518
+ var import_core46 = require("@geowiki/core");
3519
+ var import_core47 = require("@geowiki/core");
3564
3520
  var import_jsx_runtime26 = require("react/jsx-runtime");
3565
3521
  var ViewFarmerCluster = ({ cluster }) => {
3566
- const { data: appData } = (0, import_core33.useAppConfig)();
3567
- const fileUrl = (0, import_core34.useFileUrl)();
3568
- const router = (0, import_router6.useRouter)();
3522
+ const { data: appData } = (0, import_core46.useAppConfig)();
3523
+ const fileUrl = (0, import_core47.useFileUrl)();
3524
+ const router = (0, import_core45.useRouter)();
3569
3525
  const [route, setRoute] = (0, import_react19.useState)(null);
3570
- const MapWithNoSSR3 = (0, import_dynamic2.default)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
3526
+ const MapWithNoSSR3 = (0, import_core44.dynamic)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
3571
3527
  ssr: false
3572
3528
  });
3573
3529
  var position = {
@@ -3709,15 +3665,15 @@ var ViewFarmerCluster = ({ cluster }) => {
3709
3665
  };
3710
3666
 
3711
3667
  // src/components/FarmerCluster/FarmerClusterFinder.tsx
3712
- var import_core35 = require("@geowiki/core");
3668
+ var import_core48 = require("@geowiki/core");
3713
3669
  var import_ui39 = require("@geowiki/ui");
3714
3670
  var import_outline5 = require("@heroicons/react/24/outline");
3715
- var import_router7 = require("next/router");
3671
+ var import_core49 = require("@geowiki/core");
3716
3672
  var import_uuid2 = require("uuid");
3717
3673
  var import_react20 = require("react");
3718
3674
  var import_jsx_runtime27 = require("react/jsx-runtime");
3719
3675
  var FarmerClusterFinder = () => {
3720
- const router = (0, import_router7.useRouter)();
3676
+ const router = (0, import_core49.useRouter)();
3721
3677
  const currentPage = parseInt(router.query.page) || 1;
3722
3678
  const mainCrop = router.query.mainCrop;
3723
3679
  const farmingSystem = router.query.farmingSystem;
@@ -3736,8 +3692,8 @@ var FarmerClusterFinder = () => {
3736
3692
  mainAgriculturalAreas,
3737
3693
  sort
3738
3694
  };
3739
- const { data: clusters, isLoading } = (0, import_core35.useFilterClusters)(filter);
3740
- const { data: countries, isLoading: isCountriesLoading } = (0, import_core35.useCountries)();
3695
+ const { data: clusters, isLoading } = (0, import_core48.useFilterClusters)(filter);
3696
+ const { data: countries, isLoading: isCountriesLoading } = (0, import_core48.useCountries)();
3741
3697
  const [isFilterPopupOpen, setIsFilterPopupOpen] = (0, import_react20.useState)(false);
3742
3698
  const [isSortPopupOpen, setIsSortPopupOpen] = (0, import_react20.useState)(false);
3743
3699
  const [namePopup, setNamePopup] = (0, import_react20.useState)("");
@@ -3776,17 +3732,17 @@ var FarmerClusterFinder = () => {
3776
3732
  {
3777
3733
  filterName: "Farming System",
3778
3734
  routerFiltername: "farmingSystem",
3779
- filterItems: import_core35.FarmingSystem
3735
+ filterItems: import_core48.FarmingSystem
3780
3736
  },
3781
3737
  {
3782
3738
  filterName: "Main Crops",
3783
3739
  routerFiltername: "mainCrop",
3784
- filterItems: import_core35.MainCrops
3740
+ filterItems: import_core48.MainCrops
3785
3741
  },
3786
3742
  {
3787
3743
  filterName: "Main Agricultural Areas",
3788
3744
  routerFiltername: "mainAgriculturalAreas",
3789
- filterItems: import_core35.MainAgriculturalAreas
3745
+ filterItems: import_core48.MainAgriculturalAreas
3790
3746
  }
3791
3747
  ];
3792
3748
  const sortingTypes = [
@@ -3844,7 +3800,7 @@ var FarmerClusterFinder = () => {
3844
3800
  },
3845
3801
  children: [
3846
3802
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectTrigger, { className: "w-72 lg:w-60", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectValue, { placeholder: "Farming Systems" }) }),
3847
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectContent, { className: "max-w-[92vw] lg:max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectGroup, { children: import_core35.FarmingSystem?.map((farming, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectItem, { value: farming.value, children: farming.label }, index)) }) })
3803
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectContent, { className: "max-w-[92vw] lg:max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectGroup, { children: import_core48.FarmingSystem?.map((farming, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectItem, { value: farming.value, children: farming.label }, index)) }) })
3848
3804
  ]
3849
3805
  },
3850
3806
  (router.query.farmingSystem ? router.query.farmingSystem : void 0)?.toString()
@@ -3864,7 +3820,7 @@ var FarmerClusterFinder = () => {
3864
3820
  },
3865
3821
  children: [
3866
3822
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectTrigger, { className: "w-72", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectValue, { placeholder: "Main Agricultural Areas" }) }),
3867
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectContent, { className: "max-w-[92vw] lg:max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectGroup, { children: import_core35.MainAgriculturalAreas?.map((agriculturalAreas, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectItem, { value: agriculturalAreas.value, children: agriculturalAreas.label }, index)) }) })
3823
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectContent, { className: "max-w-[92vw] lg:max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectGroup, { children: import_core48.MainAgriculturalAreas?.map((agriculturalAreas, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectItem, { value: agriculturalAreas.value, children: agriculturalAreas.label }, index)) }) })
3868
3824
  ]
3869
3825
  },
3870
3826
  (router.query.mainAgriculturalAreas ? router.query.mainAgriculturalAreas : void 0)?.toString()
@@ -3884,7 +3840,7 @@ var FarmerClusterFinder = () => {
3884
3840
  },
3885
3841
  children: [
3886
3842
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectTrigger, { className: "w-72 lg:w-44", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectValue, { placeholder: "Main Crop" }) }),
3887
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectContent, { className: "max-w-[92vw] lg:max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectGroup, { children: import_core35.MainCrops?.map((crop, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectItem, { value: crop.value, children: crop.label }, index)) }) })
3843
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectContent, { className: "max-w-[92vw] lg:max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectGroup, { children: import_core48.MainCrops?.map((crop, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_ui39.DesignSelectItem, { value: crop.value, children: crop.label }, index)) }) })
3888
3844
  ]
3889
3845
  },
3890
3846
  (router.query.mainCrop ? router.query.mainCrop : void 0)?.toString()
@@ -3924,7 +3880,7 @@ var FarmerClusterFinder = () => {
3924
3880
  selectedFarmingSystem && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center gap-1", children: [
3925
3881
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
3926
3882
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "font-medium", children: "Farming System " }),
3927
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: import_core35.FarmingSystem.find((x) => x.value == selectedFarmingSystem)?.label })
3883
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: import_core48.FarmingSystem.find((x) => x.value == selectedFarmingSystem)?.label })
3928
3884
  ] }),
3929
3885
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3930
3886
  import_outline5.XCircleIcon,
@@ -3937,7 +3893,7 @@ var FarmerClusterFinder = () => {
3937
3893
  selectedMainCrop && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center gap-1", children: [
3938
3894
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
3939
3895
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "font-medium", children: "Main Crop " }),
3940
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: import_core35.MainCrops.find((x) => x.value == selectedMainCrop)?.label })
3896
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: import_core48.MainCrops.find((x) => x.value == selectedMainCrop)?.label })
3941
3897
  ] }),
3942
3898
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3943
3899
  import_outline5.XCircleIcon,
@@ -3950,7 +3906,7 @@ var FarmerClusterFinder = () => {
3950
3906
  selectedMainAgriculturalAreas && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center gap-1", children: [
3951
3907
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { children: [
3952
3908
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "font-medium", children: "Main Agricultural Areas " }),
3953
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: import_core35.MainAgriculturalAreas.find(
3909
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: import_core48.MainAgriculturalAreas.find(
3954
3910
  (x) => x.value == selectedMainAgriculturalAreas
3955
3911
  )?.label })
3956
3912
  ] }),
@@ -3990,9 +3946,9 @@ var FarmerClusterFinder = () => {
3990
3946
 
3991
3947
  // src/components/FarmerCluster/RecodoViewFarmerCluster.tsx
3992
3948
  var import_react25 = require("react");
3993
- var import_dynamic3 = __toESM(require("next/dynamic"));
3949
+ var import_core51 = require("@geowiki/core");
3994
3950
  var import_api_proxy12 = require("@geowiki/api-proxy");
3995
- var import_router8 = require("next/router");
3951
+ var import_core52 = require("@geowiki/core");
3996
3952
  var import_ui42 = require("@geowiki/ui");
3997
3953
  var import_react_player2 = __toESM(require("react-player"));
3998
3954
 
@@ -4002,7 +3958,7 @@ var import_api_proxy11 = require("@geowiki/api-proxy");
4002
3958
  var import_react22 = require("@headlessui/react");
4003
3959
  var import_outline6 = require("@heroicons/react/24/outline");
4004
3960
  var import_react23 = require("react");
4005
- var import_core36 = require("@geowiki/core");
3961
+ var import_core50 = require("@geowiki/core");
4006
3962
  var import_react_hook_form7 = require("react-hook-form");
4007
3963
  var import_ui40 = require("@geowiki/ui");
4008
3964
  var import_ui41 = require("@geowiki/ui");
@@ -4020,12 +3976,12 @@ var FarmerClusterContactForm = ({
4020
3976
  const handleCheckboxChange = () => {
4021
3977
  setIsChecked(!isChecked);
4022
3978
  };
4023
- const { data: hosts } = (0, import_core36.useHosts)();
3979
+ const { data: hosts } = (0, import_core50.useHosts)();
4024
3980
  const { register, handleSubmit } = (0, import_react_hook_form7.useForm)();
4025
3981
  const onSubmit = async (formData) => {
4026
3982
  setOpenSending(true);
4027
- var tenantInfo = import_core36.HostService.getCurrentHostInfo(hosts || []);
4028
- var tenantName = import_core36.HostService.getTenantName(tenantInfo);
3983
+ var tenantInfo = import_core50.HostService.getCurrentHostInfo(hosts || []);
3984
+ var tenantName = import_core50.HostService.getTenantName(tenantInfo);
4029
3985
  var subjectPrefix = "";
4030
3986
  if (tenantName) {
4031
3987
  subjectPrefix = tenantName + " - ";
@@ -4213,10 +4169,10 @@ var import_jsx_runtime29 = require("react/jsx-runtime");
4213
4169
  var RecodoViewFarmerCluster = ({
4214
4170
  cluster
4215
4171
  }) => {
4216
- const router = (0, import_router8.useRouter)();
4172
+ const router = (0, import_core52.useRouter)();
4217
4173
  const [route, setRoute] = (0, import_react25.useState)(null);
4218
4174
  const [openContact, setOpenContact] = (0, import_react25.useState)(false);
4219
- const MapWithNoSSR3 = (0, import_dynamic3.default)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
4175
+ const MapWithNoSSR3 = (0, import_core51.dynamic)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
4220
4176
  ssr: false
4221
4177
  });
4222
4178
  var position = {
@@ -4395,7 +4351,7 @@ var RecodoViewFarmerCluster = ({
4395
4351
 
4396
4352
  // src/components/FarmerCluster/ResourcesQuickFind.tsx
4397
4353
  var import_ui47 = require("@geowiki/ui");
4398
- var import_core41 = require("@geowiki/core");
4354
+ var import_core58 = require("@geowiki/core");
4399
4355
  var import_react29 = require("react");
4400
4356
 
4401
4357
  // src/components/Resource/ResourceLink.tsx
@@ -4405,11 +4361,11 @@ var import_react28 = require("react");
4405
4361
  var import_react26 = require("react");
4406
4362
  var import_react27 = require("@headlessui/react");
4407
4363
  var import_outline7 = require("@heroicons/react/24/outline");
4408
- var import_core37 = require("@geowiki/core");
4409
- var import_core38 = require("@geowiki/core");
4410
- var import_core39 = require("@geowiki/core");
4411
- var import_core40 = require("@geowiki/core");
4412
- var import_link3 = __toESM(require("next/link"));
4364
+ var import_core53 = require("@geowiki/core");
4365
+ var import_core54 = require("@geowiki/core");
4366
+ var import_core55 = require("@geowiki/core");
4367
+ var import_core56 = require("@geowiki/core");
4368
+ var import_core57 = require("@geowiki/core");
4413
4369
 
4414
4370
  // src/components/Resource/ResourceIcon.tsx
4415
4371
  var import_ui43 = require("@geowiki/ui");
@@ -4461,44 +4417,20 @@ var ResourceIcon = ({
4461
4417
  }
4462
4418
  };
4463
4419
 
4464
- // src/components/Resource/ResourceTag.tsx
4465
- var import_ui44 = require("@geowiki/ui");
4466
- var import_class_variance_authority = require("class-variance-authority");
4467
- var import_jsx_runtime31 = require("react/jsx-runtime");
4468
- var tagVariants = (0, import_class_variance_authority.cva)(
4469
- "justify-center self-start px-4 py-2 mr-2 mt-1 text-sm font-medium text-white whitespace-nowrap rounded-[40px] first-letter:capitalize",
4470
- {
4471
- variants: {
4472
- variant: {
4473
- topic: "bg-tag-dark-blue",
4474
- audience: "bg-tag-dark-green",
4475
- keyword: "bg-tag-blue",
4476
- language: "bg-tag-orange",
4477
- resourceType: "bg-sky-500"
4478
- }
4479
- },
4480
- defaultVariants: {
4481
- variant: "topic"
4482
- }
4483
- }
4484
- );
4485
- var ResourceTag = ({ tag, type }) => {
4486
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: (0, import_ui44.cn)(tagVariants({ variant: type })), children: tag });
4487
- };
4488
-
4489
4420
  // src/components/Resource/ResourceView.tsx
4421
+ var import_ui44 = require("@geowiki/ui");
4490
4422
  var import_ui45 = require("@geowiki/ui");
4491
- var import_jsx_runtime32 = require("react/jsx-runtime");
4423
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4492
4424
  var DetailRow = ({ label, value }) => {
4493
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex gap-2 lg:gap-5 lg:justify-between py-4 max-md:flex-wrap max-md:max-w-full lg:py-6 border-0 border-b border-grey-light", children: [
4494
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.Body16, { className: "text-grey", children: label }),
4495
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.Body16m, { className: "lg:text-righ max-md:max-w-full", children: value })
4425
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex gap-2 lg:gap-5 lg:justify-between py-4 max-md:flex-wrap max-md:max-w-full lg:py-6 border-0 border-b border-grey-light", children: [
4426
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.Body16, { className: "text-grey", children: label }),
4427
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.Body16m, { className: "lg:text-righ max-md:max-w-full", children: value })
4496
4428
  ] }) });
4497
4429
  };
4498
4430
  var KeyValues = ({ name, keyValues, kind }) => {
4499
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
4500
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.Caption, { className: "text-grey", children: name }),
4501
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex items-center flex-wrap text-sm font-medium whitespace-nowrap mt-2 mb-6 lg:mt-4 lg:mb-10", children: keyValues.map((keyValue, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ResourceTag, { tag: keyValue.value, type: kind }, index)) })
4431
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
4432
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.Caption, { className: "text-grey", children: name }),
4433
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center flex-wrap text-sm font-medium whitespace-nowrap mt-2 mb-6 lg:mt-4 lg:mb-10", children: keyValues.map((keyValue, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui44.ResourceTag, { tag: keyValue.value, type: kind }, index)) })
4502
4434
  ] });
4503
4435
  };
4504
4436
  function ResourceView({
@@ -4509,10 +4441,10 @@ function ResourceView({
4509
4441
  selectedAudience,
4510
4442
  selectedTopic
4511
4443
  }) {
4512
- const { data: audiences } = (0, import_core37.useAudience)();
4513
- const { data: topics } = (0, import_core38.useTopic)();
4514
- const { data: types } = (0, import_core39.useResourceType)();
4515
- const { data: languages } = (0, import_core40.useLanguages)();
4444
+ const { data: audiences } = (0, import_core53.useAudience)();
4445
+ const { data: topics } = (0, import_core54.useTopic)();
4446
+ const { data: types } = (0, import_core55.useResourceType)();
4447
+ const { data: languages } = (0, import_core56.useLanguages)();
4516
4448
  const currentAudiences = audiences?.filter(
4517
4449
  (audience) => resource.audience?.includes(audience.key)
4518
4450
  ) || [];
@@ -4523,8 +4455,8 @@ function ResourceView({
4523
4455
  const currentTypes = types?.find((type) => type.key === resource.resourceType)?.value || resource.resourceType;
4524
4456
  const link = resource.link || "";
4525
4457
  const linkText = link.length > 70 ? `${link.slice(0, 70)}...` : link;
4526
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react27.Transition.Root, { show: open, as: import_react26.Fragment, "data-component": "ResourceView", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react27.Dialog, { as: "div", className: "relative z-10", onClose: setOpen, children: [
4527
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4458
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react27.Transition.Root, { show: open, as: import_react26.Fragment, "data-component": "ResourceView", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react27.Dialog, { as: "div", className: "relative z-10", onClose: setOpen, children: [
4459
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4528
4460
  import_react27.Transition.Child,
4529
4461
  {
4530
4462
  as: import_react26.Fragment,
@@ -4534,10 +4466,10 @@ function ResourceView({
4534
4466
  leave: "ease-in duration-200",
4535
4467
  leaveFrom: "opacity-100",
4536
4468
  leaveTo: "opacity-0",
4537
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
4469
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
4538
4470
  }
4539
4471
  ),
4540
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4472
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4541
4473
  import_react27.Transition.Child,
4542
4474
  {
4543
4475
  as: import_react26.Fragment,
@@ -4547,16 +4479,16 @@ function ResourceView({
4547
4479
  leave: "ease-in duration-200",
4548
4480
  leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
4549
4481
  leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
4550
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react27.Dialog.Panel, { className: "relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl sm:w-full sm:p-10", children: [
4551
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "absolute top-0 right-0 pt-10 pr-10", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
4482
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react27.Dialog.Panel, { className: "relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl sm:w-full sm:p-10", children: [
4483
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "absolute top-0 right-0 pt-10 pr-10", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
4552
4484
  "button",
4553
4485
  {
4554
4486
  type: "button",
4555
4487
  className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 ",
4556
4488
  onClick: () => setOpen(false),
4557
4489
  children: [
4558
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "sr-only", children: "Close" }),
4559
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4490
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "sr-only", children: "Close" }),
4491
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4560
4492
  import_outline7.XMarkIcon,
4561
4493
  {
4562
4494
  className: "h-4 w-4 lg:h-6 lg:w-6",
@@ -4566,15 +4498,15 @@ function ResourceView({
4566
4498
  ]
4567
4499
  }
4568
4500
  ) }),
4569
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "p-5 lg:px-6 lg:py-2", children: [
4570
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
4571
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex space-x-2 lg:block lg:space-x-0", children: [
4572
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ResourceIcon, { type: resource.resourceType }),
4573
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.Body16sb, { className: "self-start mt-[10px] text-primary lg:mt-4", children: currentTypes })
4501
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-5 lg:px-6 lg:py-2", children: [
4502
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
4503
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex space-x-2 lg:block lg:space-x-0", children: [
4504
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ResourceIcon, { type: resource.resourceType }),
4505
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.Body16sb, { className: "self-start mt-[10px] text-primary lg:mt-4", children: currentTypes })
4574
4506
  ] }),
4575
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.H3Design, { className: "mt-6", children: resource.title }),
4576
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.Body16, { className: "mt-6", children: resource.description }),
4577
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: " mt-6 whitespace-nowrap lg:mt-8", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_link3.default, { href: link, target: "_blank", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4507
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.H3Design, { className: "mt-6", children: resource.title }),
4508
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.Body16, { className: "mt-6", children: resource.description }),
4509
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: " mt-6 whitespace-nowrap lg:mt-8", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_core57.Link, { href: link, target: "_blank", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4578
4510
  import_ui45.DesignButton,
4579
4511
  {
4580
4512
  variant: "externalLink",
@@ -4582,15 +4514,15 @@ function ResourceView({
4582
4514
  children: linkText
4583
4515
  }
4584
4516
  ) }) }),
4585
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "my-6 lg:my-10", children: [
4586
- currentTypes && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4517
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "my-6 lg:my-10", children: [
4518
+ currentTypes && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4587
4519
  DetailRow,
4588
4520
  {
4589
4521
  label: "Resource type:",
4590
4522
  value: currentTypes
4591
4523
  }
4592
4524
  ),
4593
- resource.publisher && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4525
+ resource.publisher && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4594
4526
  DetailRow,
4595
4527
  {
4596
4528
  label: "Publisher",
@@ -4598,7 +4530,7 @@ function ResourceView({
4598
4530
  }
4599
4531
  )
4600
4532
  ] }),
4601
- currentTopics?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4533
+ currentTopics?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4602
4534
  KeyValues,
4603
4535
  {
4604
4536
  name: "Topic",
@@ -4609,7 +4541,7 @@ function ResourceView({
4609
4541
  kind: "topic"
4610
4542
  }
4611
4543
  ),
4612
- currentAudiences?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4544
+ currentAudiences?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4613
4545
  KeyValues,
4614
4546
  {
4615
4547
  name: "Audience",
@@ -4620,10 +4552,10 @@ function ResourceView({
4620
4552
  kind: "audience"
4621
4553
  }
4622
4554
  ),
4623
- resource?.keywords && resource?.keywords?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
4624
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.Caption, { className: "self-start lg:mt-10 tracking-wider text-grey", children: "Keywords" }),
4625
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex items-center flex-wrap mt-2 mb-6 lg:mt-4 lg:mb-10", children: resource.keywords?.map((keyword, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4626
- ResourceTag,
4555
+ resource?.keywords && resource?.keywords?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
4556
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.Caption, { className: "self-start lg:mt-10 tracking-wider text-grey", children: "Keywords" }),
4557
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center flex-wrap mt-2 mb-6 lg:mt-4 lg:mb-10", children: resource.keywords?.map((keyword, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4558
+ import_ui44.ResourceTag,
4627
4559
  {
4628
4560
  tag: keyword,
4629
4561
  type: "keyword"
@@ -4631,7 +4563,7 @@ function ResourceView({
4631
4563
  index
4632
4564
  )) })
4633
4565
  ] }),
4634
- currentLanguages?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4566
+ currentLanguages?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4635
4567
  KeyValues,
4636
4568
  {
4637
4569
  name: "Language",
@@ -4643,11 +4575,11 @@ function ResourceView({
4643
4575
  }
4644
4576
  )
4645
4577
  ] }),
4646
- showResourcesButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4647
- import_link3.default,
4578
+ showResourcesButton && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4579
+ import_core57.Link,
4648
4580
  {
4649
4581
  href: `/resources/resource-finder?topic=${selectedTopic}&audience=${selectedAudience}`,
4650
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui45.DesignButton, { children: "View all Resources" })
4582
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_ui45.DesignButton, { children: "View all Resources" })
4651
4583
  }
4652
4584
  ) })
4653
4585
  ] })
@@ -4660,16 +4592,16 @@ var ResourceView_default = ResourceView;
4660
4592
 
4661
4593
  // src/components/Resource/ResourceLink.tsx
4662
4594
  var import_ui46 = require("@geowiki/ui");
4663
- var import_jsx_runtime33 = require("react/jsx-runtime");
4595
+ var import_jsx_runtime32 = require("react/jsx-runtime");
4664
4596
  var ResourceLink = ({
4665
4597
  resource,
4666
4598
  selectedAudience,
4667
4599
  selectedTopic
4668
4600
  }) => {
4669
4601
  const [open, setOpen] = (0, import_react28.useState)(false);
4670
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
4671
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { onClick: () => setOpen(true), className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui46.Body16, { className: "underline text-left", children: resource.title }) }),
4672
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4602
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
4603
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { onClick: () => setOpen(true), className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui46.Body16, { className: "underline text-left", children: resource.title }) }),
4604
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4673
4605
  ResourceView_default,
4674
4606
  {
4675
4607
  resource,
@@ -4685,8 +4617,8 @@ var ResourceLink = ({
4685
4617
 
4686
4618
  // src/components/FarmerCluster/ResourcesQuickFind.tsx
4687
4619
  var import_ui48 = require("@geowiki/ui");
4688
- var import_link4 = __toESM(require("next/link"));
4689
- var import_jsx_runtime34 = require("react/jsx-runtime");
4620
+ var import_core59 = require("@geowiki/core");
4621
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4690
4622
  var ResourcesQuickFind = ({}) => {
4691
4623
  const pageSize = 2;
4692
4624
  const [selectedAudience, setSelectedAudience] = (0, import_react29.useState)();
@@ -4695,9 +4627,9 @@ var ResourcesQuickFind = ({}) => {
4695
4627
  currentPage: 1,
4696
4628
  pageSize
4697
4629
  });
4698
- const { data: audiences, isLoading: isAudienceLoading } = (0, import_core41.useAudience)();
4699
- const { data: topics, isLoading: isTopicsLoading } = (0, import_core41.useTopic)();
4700
- const { data, isLoading } = (0, import_core41.useResourceFilter)(filter);
4630
+ const { data: audiences, isLoading: isAudienceLoading } = (0, import_core58.useAudience)();
4631
+ const { data: topics, isLoading: isTopicsLoading } = (0, import_core58.useTopic)();
4632
+ const { data, isLoading } = (0, import_core58.useResourceFilter)(filter);
4701
4633
  const handleAudienceChange = (selectedValue) => {
4702
4634
  setSelectedAudience(selectedValue);
4703
4635
  setFilter({
@@ -4721,9 +4653,9 @@ var ResourcesQuickFind = ({}) => {
4721
4653
  });
4722
4654
  return updatedArray;
4723
4655
  };
4724
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("section", { className: "flex justify-center items-center mt-6 p-5 bg-accent-light-purple rounded-xl lg:mt-12 lg:px-16 lg:py-20", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "lg:container mx-auto w-full max-w-[1116px] ", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "lg:flex lg:gap-5 ", children: [
4725
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-col lg:w-[57%] ", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col text-gray-900 space-y-4 lg:space-y-6 lg:mt-2.5", children: [
4726
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4656
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("section", { className: "flex justify-center items-center mt-6 p-5 bg-accent-light-purple rounded-xl lg:mt-12 lg:px-16 lg:py-20", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "lg:container mx-auto w-full max-w-[1116px] ", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "lg:flex lg:gap-5 ", children: [
4657
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-col lg:w-[57%] ", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col text-gray-900 space-y-4 lg:space-y-6 lg:mt-2.5", children: [
4658
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4727
4659
  import_ui47.HtmlView,
4728
4660
  {
4729
4661
  cssClass: "m-0 pt-2 lg:pt-0",
@@ -4733,14 +4665,14 @@ var ResourcesQuickFind = ({}) => {
4733
4665
  )
4734
4666
  }
4735
4667
  ),
4736
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.Body18, { className: "lg:w-[65%]", children: "Tell us about what your looking for and we will recommend some resources to help you get started." }),
4737
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4668
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.Body18, { className: "lg:w-[65%]", children: "Tell us about what your looking for and we will recommend some resources to help you get started." }),
4669
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4738
4670
  import_ui47.DesignButton,
4739
4671
  {
4740
4672
  className: "h-auto p-0 lg:p-0 self-start",
4741
4673
  variant: "internalLink",
4742
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4743
- import_link4.default,
4674
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4675
+ import_core59.Link,
4744
4676
  {
4745
4677
  href: "/resources/resource-finder",
4746
4678
  target: "_self",
@@ -4751,17 +4683,17 @@ var ResourcesQuickFind = ({}) => {
4751
4683
  }
4752
4684
  )
4753
4685
  ] }) }),
4754
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "pt-6 flex flex-col w-full lg:ml-5 lg:w-[43%] lg:pt-0", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("form", { className: "flex flex-col grow w-full lg:w-full text-base font-medium leading-5 text-gray-900 rounded-xl bg-white bg-opacity-40 lg:min-w-[24rem] ", children: !isAudienceLoading && !isTopicsLoading && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-full flex-col flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: " w-full lg:w-[20rem] p-8 bg-opacity-40 rounded-xl", children: [
4755
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.Body16m, { className: "pb-1", children: "I am a" }),
4756
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
4686
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "pt-6 flex flex-col w-full lg:ml-5 lg:w-[43%] lg:pt-0", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("form", { className: "flex flex-col grow w-full lg:w-full text-base font-medium leading-5 text-gray-900 rounded-xl bg-white bg-opacity-40 lg:min-w-[24rem] ", children: !isAudienceLoading && !isTopicsLoading && audiences && topics && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-full flex-col flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: " w-full lg:w-[20rem] p-8 bg-opacity-40 rounded-xl", children: [
4687
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.Body16m, { className: "pb-1", children: "I am a" }),
4688
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4757
4689
  import_ui47.DesignSelect,
4758
4690
  {
4759
4691
  onValueChange: (v) => {
4760
4692
  handleAudienceChange(v);
4761
4693
  },
4762
4694
  children: [
4763
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectTrigger, { className: "w-full lg:w-80 bg-white", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectValue, { placeholder: "Select one" }) }),
4764
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectGroup, { children: audiences.map((audience) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4695
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectTrigger, { className: "w-full lg:w-80 bg-white", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectValue, { placeholder: "Select one" }) }),
4696
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectGroup, { children: audiences.map((audience) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4765
4697
  import_ui47.DesignSelectItem,
4766
4698
  {
4767
4699
  value: audience.key,
@@ -4772,16 +4704,16 @@ var ResourcesQuickFind = ({}) => {
4772
4704
  ]
4773
4705
  }
4774
4706
  ),
4775
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.Body16m, { className: "pb-1 pt-8", children: "I'd like to learn more about" }),
4776
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
4707
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.Body16m, { className: "pb-1 pt-8", children: "I'd like to learn more about" }),
4708
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
4777
4709
  import_ui47.DesignSelect,
4778
4710
  {
4779
4711
  onValueChange: (v) => {
4780
4712
  handleTopicChange(v);
4781
4713
  },
4782
4714
  children: [
4783
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectTrigger, { className: "w-full lg:w-80 bg-white", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectValue, { placeholder: "Select one" }) }),
4784
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.DesignSelectGroup, { children: updateTopics().map((topic) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4715
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectTrigger, { className: "w-full lg:w-80 bg-white", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectValue, { placeholder: "Select one" }) }),
4716
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.DesignSelectGroup, { children: updateTopics().map((topic) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4785
4717
  import_ui47.DesignSelectItem,
4786
4718
  {
4787
4719
  value: topic.key,
@@ -4792,9 +4724,9 @@ var ResourcesQuickFind = ({}) => {
4792
4724
  ]
4793
4725
  }
4794
4726
  ),
4795
- selectedAudience && selectedTopic && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: data?.items?.length && data?.items?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-2 pt-4", children: [
4796
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.Body16m, { children: "Have a look at:" }),
4797
- data?.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4727
+ selectedAudience && selectedTopic && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: data?.items?.length && data?.items?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-2 pt-4", children: [
4728
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.Body16m, { children: "Have a look at:" }),
4729
+ data?.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4798
4730
  ResourceLink,
4799
4731
  {
4800
4732
  resource: item,
@@ -4803,23 +4735,23 @@ var ResourcesQuickFind = ({}) => {
4803
4735
  },
4804
4736
  item.id
4805
4737
  ))
4806
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui47.Body16, { className: "pt-4", children: "No results available, please try a different search" }) })
4738
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_ui47.Body16, { className: "pt-4", children: "No results available, please try a different search" }) })
4807
4739
  ] }) }) }) })
4808
4740
  ] }) }) });
4809
4741
  };
4810
4742
 
4811
4743
  // src/components/FarmerCluster/FarmerClusterLinkPartner.tsx
4812
4744
  var import_ui49 = require("@geowiki/ui");
4813
- var import_router9 = require("next/router");
4745
+ var import_core60 = require("@geowiki/core");
4814
4746
  var import_react30 = require("react");
4815
4747
  var import_react_hook_form8 = require("react-hook-form");
4816
4748
  var import_zod5 = require("zod");
4817
4749
  var import_zod6 = require("@hookform/resolvers/zod");
4818
4750
  var import_api_proxy13 = require("@geowiki/api-proxy");
4819
4751
  var import_sweetalert26 = __toESM(require("sweetalert2"));
4820
- var import_core42 = require("@geowiki/core");
4752
+ var import_core61 = require("@geowiki/core");
4821
4753
  var import_react_query7 = require("@tanstack/react-query");
4822
- var import_jsx_runtime35 = require("react/jsx-runtime");
4754
+ var import_jsx_runtime34 = require("react/jsx-runtime");
4823
4755
  var LinkRow = ({ linkName, url, index }) => {
4824
4756
  const methods = (0, import_react_hook_form8.useFormContext)();
4825
4757
  const {
@@ -4829,10 +4761,10 @@ var LinkRow = ({ linkName, url, index }) => {
4829
4761
  const [name, setName] = (0, import_react30.useState)(linkName);
4830
4762
  const [urlItem, setUrlItem] = (0, import_react30.useState)(url);
4831
4763
  const linkErrors = errors?.links;
4832
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "grid grid-cols-2 gap-2", children: [
4833
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4834
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "Link name" }),
4835
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4764
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "grid grid-cols-2 gap-2", children: [
4765
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4766
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "Link name" }),
4767
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4836
4768
  import_ui49.DesignInput,
4837
4769
  {
4838
4770
  ...register(`links.${index}.name`),
@@ -4843,7 +4775,7 @@ var LinkRow = ({ linkName, url, index }) => {
4843
4775
  }
4844
4776
  }
4845
4777
  ),
4846
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4778
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4847
4779
  "input",
4848
4780
  {
4849
4781
  type: "hidden",
@@ -4851,11 +4783,11 @@ var LinkRow = ({ linkName, url, index }) => {
4851
4783
  value: index
4852
4784
  }
4853
4785
  ),
4854
- linkErrors?.[index]?.name && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-red-500", children: linkErrors?.[index]?.name?.message })
4786
+ linkErrors?.[index]?.name && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-red-500", children: linkErrors?.[index]?.name?.message })
4855
4787
  ] }),
4856
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4857
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "URL" }),
4858
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4788
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4789
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "URL" }),
4790
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4859
4791
  import_ui49.DesignInput,
4860
4792
  {
4861
4793
  ...register(`links.${index}.link`),
@@ -4867,7 +4799,7 @@ var LinkRow = ({ linkName, url, index }) => {
4867
4799
  }
4868
4800
  }
4869
4801
  ),
4870
- linkErrors?.[index]?.link && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-red-500", children: linkErrors?.[index]?.link?.message })
4802
+ linkErrors?.[index]?.link && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-red-500", children: linkErrors?.[index]?.link?.message })
4871
4803
  ] })
4872
4804
  ] });
4873
4805
  };
@@ -4880,10 +4812,10 @@ var PartnerRow = ({ partnerName, url, index }) => {
4880
4812
  const [urlItem, setUrlItem] = (0, import_react30.useState)(url);
4881
4813
  const [partnerNameItem, setPartnerNameItem] = (0, import_react30.useState)(partnerName);
4882
4814
  const partnerErrors = errors?.partners;
4883
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "grid grid-cols-2 gap-2", children: [
4884
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4885
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "Partner name" }),
4886
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4815
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "grid grid-cols-2 gap-2", children: [
4816
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4817
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "Partner name" }),
4818
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4887
4819
  import_ui49.DesignInput,
4888
4820
  {
4889
4821
  ...register(`partners.${index}.name`),
@@ -4894,7 +4826,7 @@ var PartnerRow = ({ partnerName, url, index }) => {
4894
4826
  }
4895
4827
  }
4896
4828
  ),
4897
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4829
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4898
4830
  "input",
4899
4831
  {
4900
4832
  type: "hidden",
@@ -4902,11 +4834,11 @@ var PartnerRow = ({ partnerName, url, index }) => {
4902
4834
  value: index
4903
4835
  }
4904
4836
  ),
4905
- partnerErrors?.[index]?.name && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-red-500", children: partnerErrors?.[index]?.name?.message })
4837
+ partnerErrors?.[index]?.name && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-red-500", children: partnerErrors?.[index]?.name?.message })
4906
4838
  ] }),
4907
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4908
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "URL" }),
4909
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4839
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col min-w-96", children: [
4840
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "URL" }),
4841
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4910
4842
  import_ui49.DesignInput,
4911
4843
  {
4912
4844
  ...register(`partners.${index}.link`),
@@ -4918,7 +4850,7 @@ var PartnerRow = ({ partnerName, url, index }) => {
4918
4850
  }
4919
4851
  }
4920
4852
  ),
4921
- partnerErrors?.[index]?.link && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-red-500", children: partnerErrors?.[index]?.link?.message })
4853
+ partnerErrors?.[index]?.link && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-red-500", children: partnerErrors?.[index]?.link?.message })
4922
4854
  ] })
4923
4855
  ] });
4924
4856
  };
@@ -4951,12 +4883,12 @@ var LinkPartnerSchema = import_zod5.z.object({
4951
4883
  ).optional()
4952
4884
  });
4953
4885
  var FarmerClusterLinkPartner = () => {
4954
- const router = (0, import_router9.useRouter)();
4886
+ const router = (0, import_core60.useRouter)();
4955
4887
  const clusterId = router.query.id;
4956
4888
  const queryClient = (0, import_react_query7.useQueryClient)();
4957
4889
  const [isSavedPopupOpen, setSavedPopupOpen] = (0, import_react30.useState)(false);
4958
4890
  const [isCancelPopupOpen, setCancelPopupOpen] = (0, import_react30.useState)(false);
4959
- const { data: clusterLinksAndPartners, isLoading } = (0, import_core42.useClusterLinks)(clusterId);
4891
+ const { data: clusterLinksAndPartners, isLoading } = (0, import_core61.useClusterLinks)(clusterId);
4960
4892
  const links = clusterLinksAndPartners?.socialLinks?.filter((x) => x.type === "Social")?.sort((a, b) => a.order - b.order).map((link) => ({
4961
4893
  name: link.name,
4962
4894
  link: link.link,
@@ -5023,7 +4955,7 @@ var FarmerClusterLinkPartner = () => {
5023
4955
  await import_api_proxy13.ClusterService.clusterUpdateLinksAndPartner(partnerAndLinkDto);
5024
4956
  setSavedPopupOpen(true);
5025
4957
  queryClient.invalidateQueries({
5026
- queryKey: [import_core42.QueryNames.GetSocialLinks, clusterId]
4958
+ queryKey: [import_core61.QueryNames.GetSocialLinks, clusterId]
5027
4959
  });
5028
4960
  } catch (error) {
5029
4961
  import_sweetalert26.default.fire({
@@ -5040,17 +4972,17 @@ var FarmerClusterLinkPartner = () => {
5040
4972
  });
5041
4973
  }, [isLoading]);
5042
4974
  if (isLoading) {
5043
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: "Loading..." });
4975
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: "Loading..." });
5044
4976
  }
5045
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react_hook_form8.FormProvider, { ...methods, children: [
5046
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
4977
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react_hook_form8.FormProvider, { ...methods, children: [
4978
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
5047
4979
  "form",
5048
4980
  {
5049
4981
  className: "relative bg-white rounded-xl p-4",
5050
4982
  onSubmit: methods.handleSubmit(onSubmit),
5051
4983
  children: [
5052
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "right-6 top-6 flex gap-2 absolute", children: [
5053
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4984
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "right-6 top-6 flex gap-2 absolute", children: [
4985
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5054
4986
  import_ui49.DesignButton,
5055
4987
  {
5056
4988
  type: "button",
@@ -5060,10 +4992,10 @@ var FarmerClusterLinkPartner = () => {
5060
4992
  children: "Cancel"
5061
4993
  }
5062
4994
  ),
5063
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui49.DesignButton, { type: "submit", size: "sm", children: "Save" })
4995
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ui49.DesignButton, { type: "submit", size: "sm", children: "Save" })
5064
4996
  ] }),
5065
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col p-6 bg-white rounded-xl max-w-[936px] max-md:px-5", children: [
5066
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4997
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col p-6 bg-white rounded-xl max-w-[936px] max-md:px-5", children: [
4998
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5067
4999
  SectionHeader,
5068
5000
  {
5069
5001
  title: "Links",
@@ -5071,9 +5003,9 @@ var FarmerClusterLinkPartner = () => {
5071
5003
  info: "Do you run your own Farmer Cluster website or social media channels? You can add them individually here and they will show up as external links in your Farmer Cluster Profile, guiding visitors to your website and socials."
5072
5004
  }
5073
5005
  ),
5074
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("main", { children: [
5075
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "space-y-4", children: linkFields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("section", { className: "space-y-4", children: [
5076
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5006
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("main", { children: [
5007
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "space-y-4", children: linkFields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("section", { className: "space-y-4", children: [
5008
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5077
5009
  LinkRow,
5078
5010
  {
5079
5011
  linkName: field.name,
@@ -5081,7 +5013,7 @@ var FarmerClusterLinkPartner = () => {
5081
5013
  index
5082
5014
  }
5083
5015
  ),
5084
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5016
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5085
5017
  import_ui49.DesignButton,
5086
5018
  {
5087
5019
  variant: "outlineGrey",
@@ -5094,7 +5026,7 @@ var FarmerClusterLinkPartner = () => {
5094
5026
  }
5095
5027
  )
5096
5028
  ] }) }, index)) }),
5097
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5029
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5098
5030
  import_ui49.DesignButton,
5099
5031
  {
5100
5032
  size: "sm",
@@ -5105,8 +5037,8 @@ var FarmerClusterLinkPartner = () => {
5105
5037
  children: "Add another link"
5106
5038
  }
5107
5039
  ),
5108
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("section", { className: "mt-10", children: [
5109
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5040
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("section", { className: "mt-10", children: [
5041
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5110
5042
  SectionHeader,
5111
5043
  {
5112
5044
  title: "Partners",
@@ -5114,8 +5046,8 @@ var FarmerClusterLinkPartner = () => {
5114
5046
  info: "Does your Farmer Cluster work and collaborate with local or national partners? You can list and add links to your collaborators, friends and partner organisations on your Farmer Cluster profile."
5115
5047
  }
5116
5048
  ),
5117
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "space-y-4", children: partnerFields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("section", { className: "space-y-4", children: [
5118
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5049
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "space-y-4", children: partnerFields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("section", { className: "space-y-4", children: [
5050
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5119
5051
  PartnerRow,
5120
5052
  {
5121
5053
  partnerName: field.name,
@@ -5123,7 +5055,7 @@ var FarmerClusterLinkPartner = () => {
5123
5055
  index
5124
5056
  }
5125
5057
  ),
5126
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5058
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5127
5059
  import_ui49.DesignButton,
5128
5060
  {
5129
5061
  variant: "outlineGrey",
@@ -5136,7 +5068,7 @@ var FarmerClusterLinkPartner = () => {
5136
5068
  }
5137
5069
  )
5138
5070
  ] }) }, index)) }),
5139
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5071
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5140
5072
  import_ui49.DesignButton,
5141
5073
  {
5142
5074
  size: "sm",
@@ -5153,7 +5085,7 @@ var FarmerClusterLinkPartner = () => {
5153
5085
  ]
5154
5086
  }
5155
5087
  ),
5156
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5088
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5157
5089
  FarmerClusterPopup,
5158
5090
  {
5159
5091
  title: "Your changes have been saved",
@@ -5163,26 +5095,26 @@ var FarmerClusterLinkPartner = () => {
5163
5095
  setOpen: setSavedPopupOpen
5164
5096
  }
5165
5097
  ),
5166
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CancelPopup, { open: isCancelPopupOpen, setOpen: setCancelPopupOpen })
5098
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CancelPopup, { open: isCancelPopupOpen, setOpen: setCancelPopupOpen })
5167
5099
  ] });
5168
5100
  };
5169
5101
 
5170
5102
  // src/components/FarmerCluster/FarmerClusterCreate.tsx
5171
5103
  var import_react31 = require("react");
5172
5104
  var import_react_hook_form9 = require("react-hook-form");
5173
- var import_dynamic4 = __toESM(require("next/dynamic"));
5105
+ var import_core62 = require("@geowiki/core");
5174
5106
  var import_sweetalert27 = __toESM(require("sweetalert2"));
5175
5107
  var import_ui50 = require("@geowiki/ui");
5176
- var import_core43 = require("@geowiki/core");
5177
- var import_core44 = require("@geowiki/core");
5108
+ var import_core63 = require("@geowiki/core");
5109
+ var import_core64 = require("@geowiki/core");
5178
5110
  var import_api_proxy14 = require("@geowiki/api-proxy");
5179
5111
  var import_ui51 = require("@geowiki/ui");
5180
- var import_router10 = require("next/router");
5112
+ var import_core65 = require("@geowiki/core");
5181
5113
  var import_zod7 = require("@hookform/resolvers/zod");
5182
5114
  var import_date_fns2 = require("date-fns");
5183
5115
  var import_react_dropzone5 = require("react-dropzone");
5184
- var import_jsx_runtime36 = require("react/jsx-runtime");
5185
- var MapWithNoSSR2 = (0, import_dynamic4.default)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
5116
+ var import_jsx_runtime35 = require("react/jsx-runtime");
5117
+ var MapWithNoSSR2 = (0, import_core62.dynamic)(() => Promise.resolve().then(() => (init_cluster_map(), cluster_map_exports)), {
5186
5118
  ssr: false
5187
5119
  });
5188
5120
  var FarmerClusterCreate = () => {
@@ -5200,8 +5132,8 @@ var FarmerClusterCreate = () => {
5200
5132
  watch
5201
5133
  } = methods;
5202
5134
  const mapRef = (0, import_react31.useRef)(null);
5203
- const { data: countries, isLoading: isCountryLoading } = (0, import_core43.useCountries)(true);
5204
- var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core44.useConfigSettings)();
5135
+ const { data: countries, isLoading: isCountryLoading } = (0, import_core63.useCountries)(true);
5136
+ var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core64.useConfigSettings)();
5205
5137
  const setClusterImage = async (file, clusterId) => {
5206
5138
  return await import_api_proxy14.ClusterService.clusterSetCoverImage({
5207
5139
  File: file,
@@ -5228,7 +5160,7 @@ var FarmerClusterCreate = () => {
5228
5160
  }
5229
5161
  }, [errors]);
5230
5162
  const [position, setPosition] = (0, import_react31.useState)(null);
5231
- const router = (0, import_router10.useRouter)();
5163
+ const router = (0, import_core65.useRouter)();
5232
5164
  const onSubmit = async (data) => {
5233
5165
  if (position == null && mapRef.current !== null && mapRef.current !== void 0) {
5234
5166
  mapRef.current.style.color = "red";
@@ -5291,19 +5223,19 @@ var FarmerClusterCreate = () => {
5291
5223
  }
5292
5224
  };
5293
5225
  if (IsConfigSettingsLoaded || isCountryLoading)
5294
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui51.LoaderFull, {});
5295
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "relative bg-white rounded-xl", children: [
5296
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_hook_form9.FormProvider, { ...methods, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("form", { className: "space-y-8 py-8 px-6", onSubmit: handleSubmit(onSubmit), children: [
5297
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5298
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5226
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui51.LoaderFull, {});
5227
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative bg-white rounded-xl", children: [
5228
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_hook_form9.FormProvider, { ...methods, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("form", { className: "space-y-8 py-8 px-6", onSubmit: handleSubmit(onSubmit), children: [
5229
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5230
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5299
5231
  SectionHeader,
5300
5232
  {
5301
5233
  title: "Farmer Cluster details",
5302
5234
  subTitle: "Add your Farmer Cluster details"
5303
5235
  }
5304
5236
  ),
5305
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "right-6 top-6 flex gap-2 absolute", children: [
5306
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5237
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "right-6 top-6 flex gap-2 absolute", children: [
5238
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5307
5239
  import_ui50.DesignButton,
5308
5240
  {
5309
5241
  type: "button",
@@ -5313,18 +5245,18 @@ var FarmerClusterCreate = () => {
5313
5245
  children: "Cancel"
5314
5246
  }
5315
5247
  ),
5316
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignButton, { type: "submit", size: "sm", children: "Save" })
5248
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignButton, { type: "submit", size: "sm", children: "Save" })
5317
5249
  ] })
5318
5250
  ] }),
5319
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5320
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-x-4 gap-y-8", children: [
5321
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5322
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5251
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5252
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-x-4 gap-y-8", children: [
5253
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5254
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5323
5255
  import_ui50.FormField,
5324
5256
  {
5325
5257
  control,
5326
5258
  name: "name",
5327
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5259
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5328
5260
  import_ui50.DesignInput,
5329
5261
  {
5330
5262
  ...field,
@@ -5333,35 +5265,35 @@ var FarmerClusterCreate = () => {
5333
5265
  )
5334
5266
  }
5335
5267
  ),
5336
- errors.name && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.name.message })
5268
+ errors.name && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.name.message })
5337
5269
  ] }),
5338
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5339
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5270
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5271
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5340
5272
  import_ui50.FormField,
5341
5273
  {
5342
5274
  control,
5343
5275
  name: "email",
5344
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignInput, { ...field, placeholder: "Contact Email*" })
5276
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignInput, { ...field, placeholder: "Contact Email*" })
5345
5277
  }
5346
5278
  ),
5347
- errors.email && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.email.message })
5279
+ errors.email && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.email.message })
5348
5280
  ] }),
5349
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5350
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5281
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5282
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5351
5283
  import_ui50.FormField,
5352
5284
  {
5353
5285
  control,
5354
5286
  name: "countryId",
5355
5287
  render: ({ field }) => {
5356
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
5288
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
5357
5289
  import_ui50.DesignSelect,
5358
5290
  {
5359
5291
  onValueChange: field.onChange,
5360
5292
  defaultValue: field.value,
5361
5293
  children: [
5362
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectTrigger, { variant: "input", className: "pl-0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectValue, { placeholder: "Country" }) }),
5363
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectGroup, { children: countries?.map((country) => {
5364
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5294
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectTrigger, { variant: "input", className: "pl-0", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectValue, { placeholder: "Country" }) }),
5295
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectGroup, { children: countries?.map((country) => {
5296
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5365
5297
  import_ui50.DesignSelectItem,
5366
5298
  {
5367
5299
  value: country.id,
@@ -5376,24 +5308,24 @@ var FarmerClusterCreate = () => {
5376
5308
  }
5377
5309
  }
5378
5310
  ),
5379
- errors.countryId && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.countryId.message })
5311
+ errors.countryId && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.countryId.message })
5380
5312
  ] }),
5381
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5382
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5313
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5314
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5383
5315
  import_ui50.FormField,
5384
5316
  {
5385
5317
  control,
5386
5318
  name: "activityStatus",
5387
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
5319
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
5388
5320
  import_ui50.DesignSelect,
5389
5321
  {
5390
5322
  onValueChange: field.onChange,
5391
5323
  defaultValue: field.value,
5392
5324
  children: [
5393
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectTrigger, { variant: "input", className: "pl-0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectValue, { placeholder: "Activity Status" }) }),
5394
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.DesignSelectGroup, { children: ConfigSettings?.ActivityStatus?.ContentItems?.map(
5325
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectTrigger, { variant: "input", className: "pl-0", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectValue, { placeholder: "Activity Status" }) }),
5326
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.DesignSelectGroup, { children: ConfigSettings?.ActivityStatus?.ContentItems?.map(
5395
5327
  (activity) => {
5396
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5328
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5397
5329
  import_ui50.DesignSelectItem,
5398
5330
  {
5399
5331
  value: activity.KeyValueItem?.Key?.Text,
@@ -5408,28 +5340,28 @@ var FarmerClusterCreate = () => {
5408
5340
  )
5409
5341
  }
5410
5342
  ),
5411
- errors.activityStatus && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.activityStatus.message })
5343
+ errors.activityStatus && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.activityStatus.message })
5412
5344
  ] }),
5413
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5414
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5345
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5346
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5415
5347
  import_ui50.FormField,
5416
5348
  {
5417
5349
  control,
5418
5350
  name: "dateEstablished",
5419
5351
  render: ({ field }) => {
5420
5352
  var value = field.value && field.value.toString() !== "Invalid Date" ? new Date(field.value) : null;
5421
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_ui50.Popover, { children: [
5422
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5353
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_ui50.Popover, { children: [
5354
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5423
5355
  "button",
5424
5356
  {
5425
5357
  className: (0, import_ui50.cn)(
5426
5358
  "w-full pt-1.5 pb-[5px] text-start bordered-0 text-sm lg:text-base bg-transparent border-0 border-b border-zinc-300 focus-within:border-b-2 focus-within:pb-[4px] focus-within:border-primary focus:ring-0 focus:outline-none",
5427
5359
  !value && "text-muted-foreground"
5428
5360
  ),
5429
- children: value ? (0, import_date_fns2.format)(value, "PPP") : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: "Cluster creation date" })
5361
+ children: value ? (0, import_date_fns2.format)(value, "PPP") : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: "Cluster creation date" })
5430
5362
  }
5431
5363
  ) }) }),
5432
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5364
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5433
5365
  import_ui50.Calendar,
5434
5366
  {
5435
5367
  mode: "single",
@@ -5443,15 +5375,15 @@ var FarmerClusterCreate = () => {
5443
5375
  }
5444
5376
  }
5445
5377
  ),
5446
- errors.dateEstablished && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.dateEstablished.message })
5378
+ errors.dateEstablished && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.dateEstablished.message })
5447
5379
  ] }),
5448
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5449
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5380
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5381
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5450
5382
  import_ui50.FormField,
5451
5383
  {
5452
5384
  control,
5453
5385
  name: "noOfFarms",
5454
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5386
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5455
5387
  import_ui50.DesignInput,
5456
5388
  {
5457
5389
  ...field,
@@ -5461,15 +5393,15 @@ var FarmerClusterCreate = () => {
5461
5393
  )
5462
5394
  }
5463
5395
  ),
5464
- errors.noOfFarms && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.noOfFarms.message })
5396
+ errors.noOfFarms && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.noOfFarms.message })
5465
5397
  ] }),
5466
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5467
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5398
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5399
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5468
5400
  import_ui50.FormField,
5469
5401
  {
5470
5402
  control,
5471
5403
  name: "totalArea",
5472
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5404
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5473
5405
  import_ui50.DesignInput,
5474
5406
  {
5475
5407
  ...field,
@@ -5479,15 +5411,15 @@ var FarmerClusterCreate = () => {
5479
5411
  )
5480
5412
  }
5481
5413
  ),
5482
- errors.totalArea && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.totalArea.message })
5414
+ errors.totalArea && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.totalArea.message })
5483
5415
  ] }),
5484
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5485
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5416
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5417
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5486
5418
  import_ui50.FormField,
5487
5419
  {
5488
5420
  control,
5489
5421
  name: "videoUrl",
5490
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5422
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5491
5423
  import_ui50.DesignInput,
5492
5424
  {
5493
5425
  ...field,
@@ -5497,27 +5429,27 @@ var FarmerClusterCreate = () => {
5497
5429
  )
5498
5430
  }
5499
5431
  ),
5500
- errors.videoUrl && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.videoUrl.message })
5432
+ errors.videoUrl && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.videoUrl.message })
5501
5433
  ] })
5502
5434
  ] }),
5503
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "pt-12", children: [
5504
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5435
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "pt-12", children: [
5436
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5505
5437
  SectionHeader,
5506
5438
  {
5507
5439
  title: "Contact Button",
5508
5440
  subTitle: "Would you like to be reachable? If you enable <em>Show contact button</em> interested people can send you a message via Recodo."
5509
5441
  }
5510
5442
  ),
5511
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5443
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5512
5444
  import_ui50.RadioGroup,
5513
5445
  {
5514
5446
  orientation: "horizontal",
5515
5447
  ...register("showContact"),
5516
5448
  defaultValue: "false",
5517
5449
  required: true,
5518
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "pt-4 flex flex-row gap-x-6", children: [
5519
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex items-center space-x-2", children: [
5520
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5450
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "pt-4 flex flex-row gap-x-6", children: [
5451
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center space-x-2", children: [
5452
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5521
5453
  import_ui50.RadioGroupItem,
5522
5454
  {
5523
5455
  className: "h-5 w-5",
@@ -5525,10 +5457,10 @@ var FarmerClusterCreate = () => {
5525
5457
  id: "r1"
5526
5458
  }
5527
5459
  ),
5528
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.Label, { htmlFor: "r1", children: "Show contact button" })
5460
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.Label, { htmlFor: "r1", children: "Show contact button" })
5529
5461
  ] }),
5530
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex items-center space-x-2", children: [
5531
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5462
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center space-x-2", children: [
5463
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5532
5464
  import_ui50.RadioGroupItem,
5533
5465
  {
5534
5466
  className: "h-5 w-5",
@@ -5536,15 +5468,15 @@ var FarmerClusterCreate = () => {
5536
5468
  id: "r2"
5537
5469
  }
5538
5470
  ),
5539
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ui50.Label, { htmlFor: "r2", children: "Hide contact button" })
5471
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui50.Label, { htmlFor: "r2", children: "Hide contact button" })
5540
5472
  ] })
5541
5473
  ] })
5542
5474
  }
5543
5475
  ),
5544
- errors.showContact && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.showContact.message })
5476
+ errors.showContact && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.showContact.message })
5545
5477
  ] }),
5546
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "pt-12", children: [
5547
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5478
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "pt-12", children: [
5479
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5548
5480
  SectionHeader,
5549
5481
  {
5550
5482
  title: "Cover Photo",
@@ -5552,7 +5484,7 @@ var FarmerClusterCreate = () => {
5552
5484
  isRequired: true
5553
5485
  }
5554
5486
  ),
5555
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5487
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5556
5488
  import_ui50.FormField,
5557
5489
  {
5558
5490
  control,
@@ -5572,10 +5504,10 @@ var FarmerClusterCreate = () => {
5572
5504
  field.onChange(selectedFile2);
5573
5505
  }
5574
5506
  });
5575
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mt-1 sm:mt-0 sm:col-span-2 pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[70%] py-12 pb-14 flex justify-center px-6 border-2 border-grey-light border-dashed rounded-md", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ...coverImageDropzone.getRootProps(), children: [
5576
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { ...coverImageDropzone.getInputProps({}) }),
5577
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "w-full text-center flex-col flex items-center", children: [
5578
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-16 h-16 bg-accent-primary flex items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5507
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mt-1 sm:mt-0 sm:col-span-2 pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[70%] py-12 pb-14 flex justify-center px-6 border-2 border-grey-light border-dashed rounded-md", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { ...coverImageDropzone.getRootProps(), children: [
5508
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("input", { ...coverImageDropzone.getInputProps({}) }),
5509
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "w-full text-center flex-col flex items-center", children: [
5510
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-16 h-16 bg-accent-primary flex items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5579
5511
  "svg",
5580
5512
  {
5581
5513
  width: "32",
@@ -5584,31 +5516,31 @@ var FarmerClusterCreate = () => {
5584
5516
  fill: "none",
5585
5517
  xmlns: "http://www.w3.org/2000/svg",
5586
5518
  className: " fill-primary",
5587
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { d: "M19.667 8V5L25.667 11H22.667C20.5603 11 19.667 10.1067 19.667 8ZM22.667 13C19.4403 13 17.667 11.2267 17.667 8V4H10.667C8.00033 4 6.66699 5.33333 6.66699 8V24C6.66699 26.6667 8.00033 28 10.667 28H22.667C25.3337 28 26.667 26.6667 26.667 24V13H22.667Z" })
5519
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { d: "M19.667 8V5L25.667 11H22.667C20.5603 11 19.667 10.1067 19.667 8ZM22.667 13C19.4403 13 17.667 11.2267 17.667 8V4H10.667C8.00033 4 6.66699 5.33333 6.66699 8V24C6.66699 26.6667 8.00033 28 10.667 28H22.667C25.3337 28 26.667 26.6667 26.667 24V13H22.667Z" })
5588
5520
  }
5589
5521
  ) }),
5590
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "pt-6 flex justify-center", children: [
5591
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "pr-1 text-lg font-normal", children: "Drop your files here or" }),
5592
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5522
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "pt-6 flex justify-center", children: [
5523
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "pr-1 text-lg font-normal", children: "Drop your files here or" }),
5524
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5593
5525
  "label",
5594
5526
  {
5595
5527
  htmlFor: "file-upload",
5596
5528
  className: "relative cursor-pointer rounded-md font-medium text-primary hover:text-primary-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-primary-500",
5597
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "text-lg font-semibold", children: [
5529
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "text-lg font-semibold", children: [
5598
5530
  " ",
5599
5531
  "browse"
5600
5532
  ] })
5601
5533
  }
5602
5534
  )
5603
5535
  ] }),
5604
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm font-normal text-grey pt-2", children: "PNG, JPG, GIF up to 10MB. Landscape mode, recommended size 1920x1080px." })
5536
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm font-normal text-grey pt-2", children: "PNG, JPG, GIF up to 10MB. Landscape mode, recommended size 1920x1080px." })
5605
5537
  ] })
5606
5538
  ] }) }) });
5607
5539
  }
5608
5540
  }
5609
5541
  ),
5610
- errors.coverImage && typeof errors.coverImage.message === "string" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.coverImage.message }),
5611
- selectedFileUrl ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "pt-5", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5542
+ errors.coverImage && typeof errors.coverImage.message === "string" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.coverImage.message }),
5543
+ selectedFileUrl ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "pt-5", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5612
5544
  "img",
5613
5545
  {
5614
5546
  src: selectedFileUrl,
@@ -5617,15 +5549,15 @@ var FarmerClusterCreate = () => {
5617
5549
  }
5618
5550
  ) }) : null
5619
5551
  ] }),
5620
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "pt-12", children: [
5621
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5552
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "pt-12", children: [
5553
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5622
5554
  SectionHeader,
5623
5555
  {
5624
5556
  title: "Location",
5625
5557
  subTitle: "Click on the map to place a pin where the Farmer Cluster is located."
5626
5558
  }
5627
5559
  ),
5628
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5560
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5629
5561
  "div",
5630
5562
  {
5631
5563
  className: "pt-6",
@@ -5634,7 +5566,7 @@ var FarmerClusterCreate = () => {
5634
5566
  style: {
5635
5567
  color: position !== null && position !== void 0 ? "black" : ""
5636
5568
  },
5637
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5569
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5638
5570
  MapWithNoSSR2,
5639
5571
  {
5640
5572
  ...{
@@ -5650,22 +5582,22 @@ var FarmerClusterCreate = () => {
5650
5582
  }
5651
5583
  ) })
5652
5584
  ] }),
5653
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "pt-12", children: [
5654
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5585
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "pt-12", children: [
5586
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5655
5587
  SectionHeader,
5656
5588
  {
5657
5589
  title: "About",
5658
5590
  subTitle: "Tell us more about your Farmer Cluster."
5659
5591
  }
5660
5592
  ),
5661
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "grid grid-cols-1 gap-6 pt-4", children: [
5662
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5663
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5593
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "grid grid-cols-1 gap-6 pt-4", children: [
5594
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5595
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5664
5596
  import_ui50.FormField,
5665
5597
  {
5666
5598
  control,
5667
5599
  name: "description",
5668
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5600
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5669
5601
  "textarea",
5670
5602
  {
5671
5603
  ...field,
@@ -5676,15 +5608,15 @@ var FarmerClusterCreate = () => {
5676
5608
  )
5677
5609
  }
5678
5610
  ),
5679
- errors.description && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.description.message })
5611
+ errors.description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.description.message })
5680
5612
  ] }),
5681
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5682
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5613
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5614
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5683
5615
  import_ui50.FormField,
5684
5616
  {
5685
5617
  control,
5686
5618
  name: "outcomes",
5687
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5619
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5688
5620
  "textarea",
5689
5621
  {
5690
5622
  ...field,
@@ -5695,15 +5627,15 @@ var FarmerClusterCreate = () => {
5695
5627
  )
5696
5628
  }
5697
5629
  ),
5698
- errors.outcomes && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.outcomes.message })
5630
+ errors.outcomes && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.outcomes.message })
5699
5631
  ] }),
5700
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5701
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5632
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
5633
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5702
5634
  import_ui50.FormField,
5703
5635
  {
5704
5636
  control,
5705
5637
  name: "bioDiversityEnhancingMeasures",
5706
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5638
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5707
5639
  "textarea",
5708
5640
  {
5709
5641
  ...field,
@@ -5714,20 +5646,20 @@ var FarmerClusterCreate = () => {
5714
5646
  )
5715
5647
  }
5716
5648
  ),
5717
- errors.bioDiversityEnhancingMeasures && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-red-500", children: errors.bioDiversityEnhancingMeasures.message })
5649
+ errors.bioDiversityEnhancingMeasures && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: errors.bioDiversityEnhancingMeasures.message })
5718
5650
  ] })
5719
5651
  ] })
5720
5652
  ] }),
5721
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "py-12", children: [
5722
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5653
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "py-12", children: [
5654
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5723
5655
  SectionHeader,
5724
5656
  {
5725
5657
  title: "Characteristics",
5726
5658
  subTitle: "What are the characteristics of your Farmer Cluster?"
5727
5659
  }
5728
5660
  ),
5729
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col justify-start items-start gap-y-8 pt-6", children: [
5730
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5661
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col justify-start items-start gap-y-8 pt-6", children: [
5662
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5731
5663
  CharacteristicsSection,
5732
5664
  {
5733
5665
  title: "Farming Systems",
@@ -5735,7 +5667,7 @@ var FarmerClusterCreate = () => {
5735
5667
  name: "farmingSystem"
5736
5668
  }
5737
5669
  ) }),
5738
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5670
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5739
5671
  CharacteristicsSection,
5740
5672
  {
5741
5673
  title: "Main agricultural areas",
@@ -5743,7 +5675,7 @@ var FarmerClusterCreate = () => {
5743
5675
  name: "mainAgriculturalAreas"
5744
5676
  }
5745
5677
  ) }),
5746
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5678
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5747
5679
  CharacteristicsSection,
5748
5680
  {
5749
5681
  title: "Main crops",
@@ -5751,7 +5683,7 @@ var FarmerClusterCreate = () => {
5751
5683
  name: "mainCrops"
5752
5684
  }
5753
5685
  ) }),
5754
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5686
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5755
5687
  CharacteristicsSection,
5756
5688
  {
5757
5689
  title: "Livestock",
@@ -5759,7 +5691,7 @@ var FarmerClusterCreate = () => {
5759
5691
  name: "liveStock"
5760
5692
  }
5761
5693
  ) }),
5762
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5694
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5763
5695
  CharacteristicsSection,
5764
5696
  {
5765
5697
  title: "Other landscape elements",
@@ -5767,7 +5699,7 @@ var FarmerClusterCreate = () => {
5767
5699
  name: "otherLandScapeElements"
5768
5700
  }
5769
5701
  ) }),
5770
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5702
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5771
5703
  CharacteristicsSection,
5772
5704
  {
5773
5705
  title: "Hunting management",
@@ -5775,7 +5707,7 @@ var FarmerClusterCreate = () => {
5775
5707
  name: "huntingManagement"
5776
5708
  }
5777
5709
  ) }),
5778
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5710
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5779
5711
  CharacteristicsSection,
5780
5712
  {
5781
5713
  title: "Cluster funding",
@@ -5787,7 +5719,7 @@ var FarmerClusterCreate = () => {
5787
5719
  ] })
5788
5720
  ] })
5789
5721
  ] }) }),
5790
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5722
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5791
5723
  FarmerClusterPopup,
5792
5724
  {
5793
5725
  title: "Your information is being processed",
@@ -5805,10 +5737,10 @@ var import_api_proxy15 = require("@geowiki/api-proxy");
5805
5737
  var import_async = __toESM(require("react-select/async"));
5806
5738
  var import_utils = require("@geowiki/ui/src/lib/utils");
5807
5739
  var import_react_select = __toESM(require("react-select"));
5808
- var import_router11 = require("next/router");
5809
- var import_jsx_runtime37 = require("react/jsx-runtime");
5740
+ var import_core66 = require("@geowiki/core");
5741
+ var import_jsx_runtime36 = require("react/jsx-runtime");
5810
5742
  var SearchFilter = ({ filter, setFilter }) => {
5811
- const router = (0, import_router11.useRouter)();
5743
+ const router = (0, import_core66.useRouter)();
5812
5744
  const inputRef = import_react32.default.useRef(null);
5813
5745
  const [searchText, setSearchText] = (0, import_react32.useState)(filter.search || "");
5814
5746
  const [selectedLanguage, setSelectedLanguage] = (0, import_react32.useState)(null);
@@ -5988,9 +5920,9 @@ var SearchFilter = ({ filter, setFilter }) => {
5988
5920
  { value: "lastMonth", label: "Last Month" },
5989
5921
  { value: "lastYear", label: "Last Year" }
5990
5922
  ];
5991
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { children: [
5992
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("form", { className: "pt-4", onSubmit: (e) => onSearch(e), children: [
5993
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5923
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
5924
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("form", { className: "pt-4", onSubmit: (e) => onSearch(e), children: [
5925
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5994
5926
  "label",
5995
5927
  {
5996
5928
  htmlFor: "default-search",
@@ -5998,8 +5930,8 @@ var SearchFilter = ({ filter, setFilter }) => {
5998
5930
  children: "Search"
5999
5931
  }
6000
5932
  ),
6001
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative", children: [
6002
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5933
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "relative", children: [
5934
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6003
5935
  "svg",
6004
5936
  {
6005
5937
  "aria-hidden": "true",
@@ -6008,7 +5940,7 @@ var SearchFilter = ({ filter, setFilter }) => {
6008
5940
  stroke: "currentColor",
6009
5941
  viewBox: "0 0 24 24",
6010
5942
  xmlns: "http://www.w3.org/2000/svg",
6011
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5943
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6012
5944
  "path",
6013
5945
  {
6014
5946
  strokeLinecap: "round",
@@ -6019,7 +5951,7 @@ var SearchFilter = ({ filter, setFilter }) => {
6019
5951
  )
6020
5952
  }
6021
5953
  ) }),
6022
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5954
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6023
5955
  "input",
6024
5956
  {
6025
5957
  ref: inputRef,
@@ -6031,7 +5963,7 @@ var SearchFilter = ({ filter, setFilter }) => {
6031
5963
  onChange: (e) => setSearchText(e.target.value)
6032
5964
  }
6033
5965
  ),
6034
- searchText && searchText.length ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5966
+ searchText && searchText.length ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6035
5967
  "div",
6036
5968
  {
6037
5969
  onClick: () => clearSearch(),
@@ -6039,11 +5971,11 @@ var SearchFilter = ({ filter, setFilter }) => {
6039
5971
  children: "Clear"
6040
5972
  }
6041
5973
  ) : null,
6042
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("button", { className: "text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2", children: "Search" })
5974
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { className: "text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2", children: "Search" })
6043
5975
  ] })
6044
5976
  ] }),
6045
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "w-full mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "grid grid-cols-2 md:grid-cols-3 xl:grid-cols-5 gap-4", children: [
6046
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5977
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-full mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "grid grid-cols-2 md:grid-cols-3 xl:grid-cols-5 gap-4", children: [
5978
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6047
5979
  import_react_select.default,
6048
5980
  {
6049
5981
  placeholder: "Most Recent",
@@ -6053,7 +5985,7 @@ var SearchFilter = ({ filter, setFilter }) => {
6053
5985
  isClearable: true
6054
5986
  }
6055
5987
  ),
6056
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5988
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6057
5989
  import_async.default,
6058
5990
  {
6059
5991
  placeholder: "Language",
@@ -6066,7 +5998,7 @@ var SearchFilter = ({ filter, setFilter }) => {
6066
5998
  isClearable: true
6067
5999
  }
6068
6000
  ),
6069
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6001
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6070
6002
  import_async.default,
6071
6003
  {
6072
6004
  placeholder: "Topic",
@@ -6079,7 +6011,7 @@ var SearchFilter = ({ filter, setFilter }) => {
6079
6011
  isClearable: true
6080
6012
  }
6081
6013
  ),
6082
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6014
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6083
6015
  import_async.default,
6084
6016
  {
6085
6017
  placeholder: "Resource Type",
@@ -6092,7 +6024,7 @@ var SearchFilter = ({ filter, setFilter }) => {
6092
6024
  isClearable: true
6093
6025
  }
6094
6026
  ),
6095
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6027
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
6096
6028
  import_async.default,
6097
6029
  {
6098
6030
  placeholder: "Audience",
@@ -6110,39 +6042,39 @@ var SearchFilter = ({ filter, setFilter }) => {
6110
6042
  };
6111
6043
 
6112
6044
  // src/components/Resource/ResourceCard.tsx
6113
- var import_core46 = require("@geowiki/core");
6045
+ var import_core68 = require("@geowiki/core");
6114
6046
  var import_framer_motion = require("framer-motion");
6115
6047
 
6116
6048
  // src/components/Resource/ResourceItem.tsx
6117
6049
  var import_ui52 = require("@geowiki/ui");
6118
- var import_core45 = require("@geowiki/core");
6050
+ var import_core67 = require("@geowiki/core");
6119
6051
  var import_react33 = require("react");
6120
- var import_jsx_runtime38 = require("react/jsx-runtime");
6052
+ var import_jsx_runtime37 = require("react/jsx-runtime");
6121
6053
  var ResourceItem = ({ resource }) => {
6122
6054
  const [open, setOpen] = (0, import_react33.useState)(false);
6123
- const languages = (0, import_core45.useLanguages)();
6055
+ const languages = (0, import_core67.useLanguages)();
6124
6056
  const languageList = languages.data?.filter((lang) => {
6125
6057
  return resource.language?.includes(lang.key);
6126
6058
  }) || [];
6127
6059
  const language = languageList?.length > 1 ? "Multiple" : languageList[0]?.value;
6128
- const types = (0, import_core45.useResourceType)();
6060
+ const types = (0, import_core67.useResourceType)();
6129
6061
  const type = types.data?.find((type2) => type2.key === resource.resourceType);
6130
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
6062
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
6131
6063
  "div",
6132
6064
  {
6133
6065
  className: "w-auto h-[20rem] relative bg-neutral-100 rounded-xl p-6 cursor-pointer lg:h-[27.5rem]",
6134
6066
  onClick: () => setOpen(true),
6135
6067
  children: [
6136
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "pb-6 flex items-start justify-start ", children: [
6137
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ResourceIcon, { type: resource.resourceType }),
6138
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "absolute right-6 flex items-start justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "py-[5px] px-2.5 bg-white rounded-2xl items-center justify-center gap-1", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_ui52.Body15sb, { className: "text-primary", children: language }) }) })
6068
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "pb-6 flex items-start justify-start ", children: [
6069
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ResourceIcon, { type: resource.resourceType }),
6070
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "absolute right-6 flex items-start justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "py-[5px] px-2.5 bg-white rounded-2xl items-center justify-center gap-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_ui52.Body15sb, { className: "text-primary", children: language }) }) })
6139
6071
  ] }),
6140
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_ui52.Body16sb, { className: "text-primary", children: type?.value }),
6141
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "w-full pt-2 space-y-2 flex-col justify-start items-start inline-flex lg:space-y-4", children: [
6142
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_ui52.H6Design, { className: "w-full line-clamp-4", children: resource.title }),
6143
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_ui52.Body16, { className: "line-clamp-3 lg:line-clamp-4", children: resource.description })
6072
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_ui52.Body16sb, { className: "text-primary", children: type?.value }),
6073
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "w-full pt-2 space-y-2 flex-col justify-start items-start inline-flex lg:space-y-4", children: [
6074
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_ui52.H6Design, { className: "w-full line-clamp-4", children: resource.title }),
6075
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_ui52.Body16, { className: "line-clamp-3 lg:line-clamp-4", children: resource.description })
6144
6076
  ] }),
6145
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "absolute bottom-6 ", children: resource.link && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
6077
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "absolute bottom-6 ", children: resource.link && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
6146
6078
  import_ui52.DesignButton,
6147
6079
  {
6148
6080
  variant: "externalLink",
@@ -6152,23 +6084,23 @@ var ResourceItem = ({ resource }) => {
6152
6084
  children: "View Resource"
6153
6085
  }
6154
6086
  ) }),
6155
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ResourceView_default, { resource, open, setOpen })
6087
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ResourceView_default, { resource, open, setOpen })
6156
6088
  ]
6157
6089
  }
6158
6090
  );
6159
6091
  };
6160
6092
 
6161
6093
  // src/components/Resource/ResourceCard.tsx
6162
- var import_jsx_runtime39 = require("react/jsx-runtime");
6094
+ var import_jsx_runtime38 = require("react/jsx-runtime");
6163
6095
  var ResourceCard = ({ resource }) => {
6164
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_framer_motion.motion.li, { variants: import_core46.itemVariants, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ResourceItem, { resource }) }, resource.id);
6096
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_framer_motion.motion.li, { variants: import_core68.itemVariants, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ResourceItem, { resource }) }, resource.id);
6165
6097
  };
6166
6098
 
6167
6099
  // src/components/Resource/ResourceCreate.tsx
6168
6100
  var import_api_proxy16 = require("@geowiki/api-proxy");
6169
- var import_core47 = require("@geowiki/core");
6170
- var import_core48 = require("@geowiki/core");
6171
- var import_core49 = require("@geowiki/core");
6101
+ var import_core69 = require("@geowiki/core");
6102
+ var import_core70 = require("@geowiki/core");
6103
+ var import_core71 = require("@geowiki/core");
6172
6104
  var import_react_hook_form10 = require("react-hook-form");
6173
6105
  var import_sweetalert28 = __toESM(require("sweetalert2"));
6174
6106
  var import_ui53 = require("@geowiki/ui");
@@ -6176,11 +6108,11 @@ var import_ui54 = require("@geowiki/ui");
6176
6108
  var import_ui55 = require("@geowiki/ui");
6177
6109
  var import_ui56 = require("@geowiki/ui");
6178
6110
  var import_ui57 = require("@geowiki/ui");
6179
- var import_jsx_runtime40 = require("react/jsx-runtime");
6111
+ var import_jsx_runtime39 = require("react/jsx-runtime");
6180
6112
  var ResourceCreate = ({ resource }) => {
6181
- const { data: audience } = (0, import_core47.useAudience)();
6182
- const { data: topic } = (0, import_core49.useTopic)();
6183
- const { data: types } = (0, import_core48.useResourceType)();
6113
+ const { data: audience } = (0, import_core69.useAudience)();
6114
+ const { data: topic } = (0, import_core71.useTopic)();
6115
+ const { data: types } = (0, import_core70.useResourceType)();
6184
6116
  const resourceTypes = types?.map((type) => {
6185
6117
  return {
6186
6118
  label: type.value,
@@ -6238,9 +6170,9 @@ var ResourceCreate = ({ resource }) => {
6238
6170
  });
6239
6171
  }
6240
6172
  };
6241
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "p-4", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("form", { className: "space-y-8 pt-4", onSubmit: handleSubmit(onSubmit), children: [
6242
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex justify-end", children: [
6243
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6173
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "p-4", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("form", { className: "space-y-8 pt-4", onSubmit: handleSubmit(onSubmit), children: [
6174
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex justify-end", children: [
6175
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6244
6176
  import_ui53.PrimaryButton,
6245
6177
  {
6246
6178
  type: "button",
@@ -6249,10 +6181,10 @@ var ResourceCreate = ({ resource }) => {
6249
6181
  onClick: () => location.href = "/admin/resource"
6250
6182
  }
6251
6183
  ),
6252
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_ui53.PrimaryButton, { type: "submit", label: "Save", style: "primary" })
6184
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_ui53.PrimaryButton, { type: "submit", label: "Save", style: "primary" })
6253
6185
  ] }) }),
6254
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "grid grid-cols-6 gap-6", children: [
6255
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 ", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6186
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "grid grid-cols-6 gap-6", children: [
6187
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 ", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6256
6188
  import_ui54.OldCustomInput,
6257
6189
  {
6258
6190
  name: "title",
@@ -6266,7 +6198,7 @@ var ResourceCreate = ({ resource }) => {
6266
6198
  isPlaceholderItalic: true
6267
6199
  }
6268
6200
  ) }),
6269
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6201
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6270
6202
  import_ui57.TextArea,
6271
6203
  {
6272
6204
  infoText: "description",
@@ -6281,7 +6213,7 @@ var ResourceCreate = ({ resource }) => {
6281
6213
  row: 5
6282
6214
  }
6283
6215
  ) }),
6284
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6216
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6285
6217
  import_ui54.OldCustomInput,
6286
6218
  {
6287
6219
  name: "author",
@@ -6295,7 +6227,7 @@ var ResourceCreate = ({ resource }) => {
6295
6227
  type: "text"
6296
6228
  }
6297
6229
  ) }),
6298
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6230
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6299
6231
  import_ui54.OldCustomInput,
6300
6232
  {
6301
6233
  name: "link",
@@ -6309,7 +6241,7 @@ var ResourceCreate = ({ resource }) => {
6309
6241
  type: "text"
6310
6242
  }
6311
6243
  ) }),
6312
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6244
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6313
6245
  import_ui54.OldCustomInput,
6314
6246
  {
6315
6247
  name: "publisher",
@@ -6323,7 +6255,7 @@ var ResourceCreate = ({ resource }) => {
6323
6255
  type: "text"
6324
6256
  }
6325
6257
  ) }),
6326
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6258
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6327
6259
  import_ui54.OldCustomInput,
6328
6260
  {
6329
6261
  name: "publishedDate",
@@ -6337,7 +6269,7 @@ var ResourceCreate = ({ resource }) => {
6337
6269
  type: "date"
6338
6270
  }
6339
6271
  ) }),
6340
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6272
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6341
6273
  import_ui55.MultiSelect,
6342
6274
  {
6343
6275
  name: "resourceType",
@@ -6351,7 +6283,7 @@ var ResourceCreate = ({ resource }) => {
6351
6283
  displayText: "Resource Type"
6352
6284
  }
6353
6285
  ) }),
6354
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6286
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6355
6287
  import_ui56.MultiSelectFreeText,
6356
6288
  {
6357
6289
  control,
@@ -6363,7 +6295,7 @@ var ResourceCreate = ({ resource }) => {
6363
6295
  displayText: "Language"
6364
6296
  }
6365
6297
  ) }),
6366
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6298
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6367
6299
  import_ui56.MultiSelectFreeText,
6368
6300
  {
6369
6301
  control,
@@ -6375,7 +6307,7 @@ var ResourceCreate = ({ resource }) => {
6375
6307
  displayText: "Keyword"
6376
6308
  }
6377
6309
  ) }),
6378
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6310
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6379
6311
  import_ui55.MultiSelect,
6380
6312
  {
6381
6313
  name: "topic",
@@ -6388,7 +6320,7 @@ var ResourceCreate = ({ resource }) => {
6388
6320
  displayText: "Topic"
6389
6321
  }
6390
6322
  ) }),
6391
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6323
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
6392
6324
  import_ui55.MultiSelect,
6393
6325
  {
6394
6326
  name: "audience",
@@ -6406,32 +6338,32 @@ var ResourceCreate = ({ resource }) => {
6406
6338
  };
6407
6339
 
6408
6340
  // src/components/Resource/ResourceEdit.tsx
6409
- var import_jsx_runtime41 = require("react/jsx-runtime");
6341
+ var import_jsx_runtime40 = require("react/jsx-runtime");
6410
6342
  var ResourceEdit = (_props) => {
6411
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: "Resource Edit" });
6343
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: "Resource Edit" });
6412
6344
  };
6413
6345
 
6414
6346
  // src/components/Resource/ResourceList.tsx
6415
6347
  var import_api_proxy17 = require("@geowiki/api-proxy");
6416
- var import_core50 = require("@geowiki/core");
6417
- var import_core51 = require("@geowiki/core");
6418
- var import_core52 = require("@geowiki/core");
6419
- var import_core53 = require("@geowiki/core");
6348
+ var import_core72 = require("@geowiki/core");
6349
+ var import_core73 = require("@geowiki/core");
6350
+ var import_core74 = require("@geowiki/core");
6351
+ var import_core75 = require("@geowiki/core");
6420
6352
  var import_react_query8 = require("@tanstack/react-query");
6421
- var import_next_themes4 = require("next-themes");
6353
+ var import_core76 = require("@geowiki/core");
6422
6354
  var import_react34 = require("react");
6423
6355
  var import_react_data_table_component4 = __toESM(require("react-data-table-component"));
6424
6356
  var import_sweetalert29 = __toESM(require("sweetalert2"));
6425
6357
  var import_ui58 = require("@geowiki/ui");
6426
- var import_jsx_runtime42 = require("react/jsx-runtime");
6358
+ var import_jsx_runtime41 = require("react/jsx-runtime");
6427
6359
  var ResourceList = () => {
6428
- const { theme } = (0, import_next_themes4.useTheme)();
6360
+ const { theme } = (0, import_core76.useTheme)();
6429
6361
  const queryClient = (0, import_react_query8.useQueryClient)();
6430
6362
  var [skip, setSkip] = (0, import_react34.useState)(0);
6431
6363
  var [limit, setLimit] = (0, import_react34.useState)(10);
6432
- var { data: types } = (0, import_core51.useResourceType)();
6433
- var { data: topics } = (0, import_core52.useTopic)();
6434
- const { data, isLoading } = (0, import_core50.useResource)("", "", skip, limit);
6364
+ var { data: types } = (0, import_core73.useResourceType)();
6365
+ var { data: topics } = (0, import_core74.useTopic)();
6366
+ const { data, isLoading } = (0, import_core72.useResource)("", "", skip, limit);
6435
6367
  const handlePageChange = (page) => {
6436
6368
  var skip2 = (page - 1) * limit;
6437
6369
  setSkip(skip2);
@@ -6458,7 +6390,7 @@ var ResourceList = () => {
6458
6390
  icon: "success"
6459
6391
  });
6460
6392
  queryClient.invalidateQueries({
6461
- queryKey: [import_core53.QueryNames.GetResource]
6393
+ queryKey: [import_core75.QueryNames.GetResource]
6462
6394
  });
6463
6395
  }).catch(() => {
6464
6396
  import_sweetalert29.default.fire({
@@ -6491,16 +6423,16 @@ var ResourceList = () => {
6491
6423
  {
6492
6424
  name: "Delete",
6493
6425
  button: true,
6494
- cell: (row) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ui58.DeleteButton, { onClick: () => deleteWithId(row.id) }),
6426
+ cell: (row) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_ui58.DeleteButton, { onClick: () => deleteWithId(row.id) }),
6495
6427
  right: true
6496
6428
  }
6497
6429
  ];
6498
6430
  const paginationComponentOptions = {
6499
6431
  noRowsPerPage: true
6500
6432
  };
6501
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "pb-8 mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
6502
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "pb-5", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex items-center justify-between flex-wrap sm:flex-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-2xl lg:text-[1.75rem] font-semibold leading-[120%]", children: "Resource" }) }) }),
6503
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6433
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "pb-8 mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { children: [
6434
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "pb-5", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center justify-between flex-wrap sm:flex-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "text-2xl lg:text-[1.75rem] font-semibold leading-[120%]", children: "Resource" }) }) }),
6435
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6504
6436
  import_react_data_table_component4.default,
6505
6437
  {
6506
6438
  theme: theme === "dark" ? "dark" : "default",
@@ -6521,34 +6453,34 @@ var ResourceList = () => {
6521
6453
 
6522
6454
  // src/components/Resource/ResourceDisplayList.tsx
6523
6455
  var import_uuid3 = require("uuid");
6524
- var import_jsx_runtime43 = require("react/jsx-runtime");
6456
+ var import_jsx_runtime42 = require("react/jsx-runtime");
6525
6457
  var ResourceDisplayList = ({ resources }) => {
6526
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-0", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: resources.map((resource) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ResourceItem, { resource }, (0, import_uuid3.v4)())) }) });
6458
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "px-0", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: resources.map((resource) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ResourceItem, { resource }, (0, import_uuid3.v4)())) }) });
6527
6459
  };
6528
6460
 
6529
6461
  // src/components/Resource/subtitle-h3-resource-collections.tsx
6530
6462
  var import_ui60 = require("@geowiki/ui");
6531
6463
 
6532
6464
  // src/components/Resource/ResourceCollectionItem.tsx
6533
- var import_link5 = __toESM(require("next/link"));
6465
+ var import_core77 = require("@geowiki/core");
6534
6466
  var import_ui59 = require("@geowiki/ui");
6535
6467
  var import_lucide_react2 = require("lucide-react");
6536
- var import_jsx_runtime44 = require("react/jsx-runtime");
6468
+ var import_jsx_runtime43 = require("react/jsx-runtime");
6537
6469
  var ResourceCollectionItem = (props) => {
6538
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "w-auto h-[19.375rem] relative bg-neutral-100 rounded-xl p-6 lg:h-[27.5rem]", children: [
6539
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "pb-2 flex items-start justify-start lg:pb-6", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui59.Icon, { type: props.icon }) }),
6540
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui59.Body16sb, { className: "text-primary", children: props.type }),
6541
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "pt-2 flex-col justify-start items-start space-y-2 inline-flex lg:space-y-4", children: [
6542
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui59.H6Design, { className: "line-clamp-2", children: props.title }),
6543
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui59.Body16, { className: "line-clamp-6", children: props.text })
6470
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "w-auto h-[19.375rem] relative bg-neutral-100 rounded-xl p-6 lg:h-[27.5rem]", children: [
6471
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "pb-2 flex items-start justify-start lg:pb-6", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ui59.Icon, { type: props.icon }) }),
6472
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ui59.Body16sb, { className: "text-primary", children: props.type }),
6473
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "pt-2 flex-col justify-start items-start space-y-2 inline-flex lg:space-y-4", children: [
6474
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ui59.H6Design, { className: "line-clamp-2", children: props.title }),
6475
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ui59.Body16, { className: "line-clamp-6", children: props.text })
6544
6476
  ] }),
6545
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "absolute bottom-6 ", children: props.button?.link && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui59.DesignButton, { variant: "circle", className: "w-12 h-12 p-2 lg:p-2", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6546
- import_link5.default,
6477
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute bottom-6 ", children: props.button?.link && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ui59.DesignButton, { variant: "circle", className: "w-12 h-12 p-2 lg:p-2", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6478
+ import_core77.Link,
6547
6479
  {
6548
6480
  href: props.button.link,
6549
6481
  target: props.button.isNewTab ? "_blank" : "_self",
6550
6482
  rel: "noreferrer",
6551
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react2.ArrowRight, { className: "h-6 w-10" })
6483
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react2.ArrowRight, { className: "h-6 w-10" })
6552
6484
  }
6553
6485
  ) }) })
6554
6486
  ] });
@@ -6556,11 +6488,11 @@ var ResourceCollectionItem = (props) => {
6556
6488
 
6557
6489
  // src/components/Resource/ResourceCollectionDisplayList.tsx
6558
6490
  var import_uuid4 = require("uuid");
6559
- var import_jsx_runtime45 = require("react/jsx-runtime");
6491
+ var import_jsx_runtime44 = require("react/jsx-runtime");
6560
6492
  var ResourceCollectionDisplayList = ({
6561
6493
  resourceCollections
6562
6494
  }) => {
6563
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "px-0", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: resourceCollections.map((resourceCollection) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6495
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "px-0", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: resourceCollections.map((resourceCollection) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6564
6496
  ResourceCollectionItem,
6565
6497
  {
6566
6498
  title: resourceCollection.title,
@@ -6574,24 +6506,24 @@ var ResourceCollectionDisplayList = ({
6574
6506
  };
6575
6507
 
6576
6508
  // src/components/Resource/subtitle-h3-resource-collections.tsx
6577
- var import_jsx_runtime46 = require("react/jsx-runtime");
6509
+ var import_jsx_runtime45 = require("react/jsx-runtime");
6578
6510
  var SubtitleH3ResourceCollections = ({
6579
6511
  title,
6580
6512
  subtitle,
6581
6513
  resourceCollections
6582
6514
  }) => {
6583
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6515
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
6584
6516
  "div",
6585
6517
  {
6586
6518
  className: "lg:space-y-12 lg:container mx-auto ",
6587
6519
  "data-component": "SubtitleH3ResourceCollections",
6588
6520
  children: [
6589
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "lg:flex lg:justify-between lg:items-start", children: [
6590
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_ui60.Body18, { className: "lg:w-[15%]", children: subtitle }),
6591
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_ui60.H3Design, { className: " pt-2 pb-6 lg:py-0 lg:w-[50%]", children: title }),
6592
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "hidden lg:w-[15%] lg:inline" })
6521
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "lg:flex lg:justify-between lg:items-start", children: [
6522
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_ui60.Body18, { className: "lg:w-[15%]", children: subtitle }),
6523
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_ui60.H3Design, { className: " pt-2 pb-6 lg:py-0 lg:w-[50%]", children: title }),
6524
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "hidden lg:w-[15%] lg:inline" })
6593
6525
  ] }),
6594
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6526
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6595
6527
  ResourceCollectionDisplayList,
6596
6528
  {
6597
6529
  resourceCollections
@@ -6603,21 +6535,21 @@ var SubtitleH3ResourceCollections = ({
6603
6535
  };
6604
6536
 
6605
6537
  // src/components/Resource/ResourcesSelectedTags.tsx
6606
- var import_core54 = require("@geowiki/core");
6607
- var import_router12 = require("next/router");
6538
+ var import_core78 = require("@geowiki/core");
6539
+ var import_core79 = require("@geowiki/core");
6608
6540
  var import_XCircleIcon = __toESM(require("@heroicons/react/24/outline/XCircleIcon"));
6609
- var import_jsx_runtime47 = require("react/jsx-runtime");
6541
+ var import_jsx_runtime46 = require("react/jsx-runtime");
6610
6542
  var ResourcesSelectedTags = () => {
6611
- const router = (0, import_router12.useRouter)();
6543
+ const router = (0, import_core79.useRouter)();
6612
6544
  const selectedLanguages = router.query.language;
6613
6545
  const selectedTopics = router.query.topic;
6614
6546
  const selectedResourceTypes = router.query.resourceType;
6615
6547
  const selectedAudiences = router.query.audience;
6616
6548
  const search = router.query.search;
6617
- const { data: audiences, isLoading: isAudienceLoading } = (0, import_core54.useAudience)();
6618
- const { data: topics, isLoading: isTopicsLoading } = (0, import_core54.useTopic)();
6619
- const { data: types, isLoading: isTypesLoading } = (0, import_core54.useResourceType)();
6620
- const { data: languages, isLoading: isLanguagesLoading } = (0, import_core54.useLanguages)();
6549
+ const { data: audiences, isLoading: isAudienceLoading } = (0, import_core78.useAudience)();
6550
+ const { data: topics, isLoading: isTopicsLoading } = (0, import_core78.useTopic)();
6551
+ const { data: types, isLoading: isTypesLoading } = (0, import_core78.useResourceType)();
6552
+ const { data: languages, isLoading: isLanguagesLoading } = (0, import_core78.useLanguages)();
6621
6553
  if (isLanguagesLoading || isAudienceLoading || isTopicsLoading || isTypesLoading) {
6622
6554
  return null;
6623
6555
  }
@@ -6638,13 +6570,13 @@ var ResourcesSelectedTags = () => {
6638
6570
  delete query[key];
6639
6571
  router.push({ query });
6640
6572
  };
6641
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-wrap gap-1", children: [
6642
- selectedLanguagesArray && selectedLanguagesArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-1", children: [
6643
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { children: [
6644
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-medium", children: "Language " }),
6645
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: selectedLanguagesArray?.map((language) => language.value).join(", ") })
6573
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-wrap gap-1", children: [
6574
+ selectedLanguagesArray && selectedLanguagesArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-1", children: [
6575
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { children: [
6576
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "font-medium", children: "Language " }),
6577
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: selectedLanguagesArray?.map((language) => language.value).join(", ") })
6646
6578
  ] }),
6647
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6579
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6648
6580
  import_XCircleIcon.default,
6649
6581
  {
6650
6582
  className: "h-5 min-h-5 min-w-5 cursor-pointer",
@@ -6652,12 +6584,12 @@ var ResourcesSelectedTags = () => {
6652
6584
  }
6653
6585
  )
6654
6586
  ] }) }),
6655
- selectedTopicsArray && selectedTopicsArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-1", children: [
6656
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { children: [
6657
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-medium", children: "Topic " }),
6658
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: selectedTopicsArray?.map((topic) => topic.value).join(", ") })
6587
+ selectedTopicsArray && selectedTopicsArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-1", children: [
6588
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { children: [
6589
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "font-medium", children: "Topic " }),
6590
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: selectedTopicsArray?.map((topic) => topic.value).join(", ") })
6659
6591
  ] }),
6660
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6592
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6661
6593
  import_XCircleIcon.default,
6662
6594
  {
6663
6595
  className: "h-5 min-h-5 min-w-5 cursor-pointer",
@@ -6665,12 +6597,12 @@ var ResourcesSelectedTags = () => {
6665
6597
  }
6666
6598
  )
6667
6599
  ] }) }),
6668
- selectedResourceTypesArray && selectedResourceTypesArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-1", children: [
6669
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { children: [
6670
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-medium", children: "Resource Type " }),
6671
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: selectedResourceTypesArray?.map((type) => type.value).join(", ") })
6600
+ selectedResourceTypesArray && selectedResourceTypesArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-1", children: [
6601
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { children: [
6602
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "font-medium", children: "Resource Type " }),
6603
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: selectedResourceTypesArray?.map((type) => type.value).join(", ") })
6672
6604
  ] }),
6673
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6605
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6674
6606
  import_XCircleIcon.default,
6675
6607
  {
6676
6608
  className: "h-5 min-h-5 min-w-5 cursor-pointer",
@@ -6678,12 +6610,12 @@ var ResourcesSelectedTags = () => {
6678
6610
  }
6679
6611
  )
6680
6612
  ] }) }),
6681
- selectedAudiencesArray && selectedAudiencesArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-1", children: [
6682
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { children: [
6683
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-medium", children: "Audience " }),
6684
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: selectedAudiencesArray?.map((audience) => audience.value).join(", ") })
6613
+ selectedAudiencesArray && selectedAudiencesArray.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-1", children: [
6614
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { children: [
6615
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "font-medium", children: "Audience " }),
6616
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: selectedAudiencesArray?.map((audience) => audience.value).join(", ") })
6685
6617
  ] }),
6686
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6618
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6687
6619
  import_XCircleIcon.default,
6688
6620
  {
6689
6621
  className: "h-5 min-h-5 min-w-5 cursor-pointer",
@@ -6691,12 +6623,12 @@ var ResourcesSelectedTags = () => {
6691
6623
  }
6692
6624
  )
6693
6625
  ] }) }),
6694
- search && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-1", children: [
6695
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { children: [
6696
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "font-medium", children: "Search " }),
6697
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: search })
6626
+ search && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-1", children: [
6627
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("label", { children: [
6628
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "font-medium", children: "Search " }),
6629
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: search })
6698
6630
  ] }),
6699
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6631
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6700
6632
  import_XCircleIcon.default,
6701
6633
  {
6702
6634
  className: "h-5 min-h-5 min-w-5 cursor-pointer",
@@ -6708,9 +6640,9 @@ var ResourcesSelectedTags = () => {
6708
6640
  };
6709
6641
 
6710
6642
  // src/components/Resource/KeyResourceItem.tsx
6711
- var import_link6 = __toESM(require("next/link"));
6643
+ var import_core80 = require("@geowiki/core");
6712
6644
  var import_ui61 = require("@geowiki/ui");
6713
- var import_jsx_runtime48 = require("react/jsx-runtime");
6645
+ var import_jsx_runtime47 = require("react/jsx-runtime");
6714
6646
  var KeyResourceItem = ({
6715
6647
  title,
6716
6648
  subtitle,
@@ -6718,8 +6650,8 @@ var KeyResourceItem = ({
6718
6650
  imageId,
6719
6651
  imagePath
6720
6652
  }) => {
6721
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_link6.default, { href: path, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "w-full flex-col justify-start items-start inline-flex", children: [
6722
- imageId && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6653
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_core80.Link, { href: path, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "w-full flex-col justify-start items-start inline-flex", children: [
6654
+ imageId && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6723
6655
  import_ui61.ApiImage,
6724
6656
  {
6725
6657
  imageId,
@@ -6728,7 +6660,7 @@ var KeyResourceItem = ({
6728
6660
  className: "w-full h-[260px] rounded-xl object-cover"
6729
6661
  }
6730
6662
  ),
6731
- imagePath && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6663
+ imagePath && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6732
6664
  import_ui61.CmsImage,
6733
6665
  {
6734
6666
  src: imagePath,
@@ -6738,16 +6670,16 @@ var KeyResourceItem = ({
6738
6670
  className: "w-full h-[260px] rounded-xl object-cover"
6739
6671
  }
6740
6672
  ),
6741
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_ui61.Body16sb, { className: "pt-4 pb-2 text-primary", children: subtitle }),
6742
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_ui61.H9Design, { children: title })
6673
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_ui61.Body16sb, { className: "pt-4 pb-2 text-primary", children: subtitle }),
6674
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_ui61.H9Design, { children: title })
6743
6675
  ] }) });
6744
6676
  };
6745
6677
 
6746
6678
  // src/components/Resource/KeyResourceItemList.tsx
6747
6679
  var import_uuid5 = require("uuid");
6748
- var import_jsx_runtime49 = require("react/jsx-runtime");
6680
+ var import_jsx_runtime48 = require("react/jsx-runtime");
6749
6681
  var KeyResourceItemList = ({ keyResources }) => {
6750
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "container mx-auto px-0", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-x-6 gap-y-5 lg:gap-y-10", children: keyResources.map((keyResource) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6682
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "container mx-auto px-0", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-x-6 gap-y-5 lg:gap-y-10", children: keyResources.map((keyResource) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6751
6683
  KeyResourceItem,
6752
6684
  {
6753
6685
  title: keyResource.title,
@@ -6762,79 +6694,79 @@ var KeyResourceItemList = ({ keyResources }) => {
6762
6694
 
6763
6695
  // src/components/Resource/SubtitleH3KeyResources.tsx
6764
6696
  var import_ui62 = require("@geowiki/ui");
6765
- var import_jsx_runtime50 = require("react/jsx-runtime");
6697
+ var import_jsx_runtime49 = require("react/jsx-runtime");
6766
6698
  var SubtitleH3KeyResources = ({
6767
6699
  title,
6768
6700
  subtitle,
6769
6701
  keyResources
6770
6702
  }) => {
6771
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
6703
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
6772
6704
  "div",
6773
6705
  {
6774
6706
  className: "lg:space-y-14 lg:container mx-auto lg:pt-20 pt-5",
6775
6707
  "data-component": "SubtitleH3KeyResources",
6776
6708
  children: [
6777
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "lg:flex lg:justify-between lg:items-start", children: [
6778
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_ui62.Body18, { className: "lg:w-[15%]", children: subtitle }),
6779
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_ui62.H3Design, { className: " pt-2 pb-6 lg:py-0 lg:w-[50%]", children: title }),
6780
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "hidden lg:w-[15%] lg:inline" })
6709
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "lg:flex lg:justify-between lg:items-start", children: [
6710
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_ui62.Body18, { className: "lg:w-[15%]", children: subtitle }),
6711
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_ui62.H3Design, { className: " pt-2 pb-6 lg:py-0 lg:w-[50%]", children: title }),
6712
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "hidden lg:w-[15%] lg:inline" })
6781
6713
  ] }),
6782
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(KeyResourceItemList, { keyResources })
6714
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(KeyResourceItemList, { keyResources })
6783
6715
  ]
6784
6716
  }
6785
6717
  );
6786
6718
  };
6787
6719
 
6788
6720
  // src/components/User/index.tsx
6789
- var import_jsx_runtime51 = require("react/jsx-runtime");
6721
+ var import_jsx_runtime50 = require("react/jsx-runtime");
6790
6722
  var UserInfoPage = () => {
6791
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "container mx-auto h-64", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "pt-5 mt-5 pb-24 px-4 py-5 lg:px-0 lg:py-2 md:px-2 md:py-2", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
6792
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("strong", { children: "Welcome Back!" }),
6793
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "pt-5", children: "Here, you can manage your Farmer Clusters, add Farmer Cluster profiles, images, stories and news. You can also manage basic personal settings, such as changing your display name or password." })
6723
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "container mx-auto h-64", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "pt-5 mt-5 pb-24 px-4 py-5 lg:px-0 lg:py-2 md:px-2 md:py-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { children: [
6724
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("strong", { children: "Welcome Back!" }),
6725
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "pt-5", children: "Here, you can manage your Farmer Clusters, add Farmer Cluster profiles, images, stories and news. You can also manage basic personal settings, such as changing your display name or password." })
6794
6726
  ] }) }) }) }) });
6795
6727
  };
6796
6728
 
6797
6729
  // src/components/User/UpdateUser.tsx
6798
6730
  var import_react35 = require("react");
6799
- var import_core55 = require("@geowiki/core");
6731
+ var import_core81 = require("@geowiki/core");
6800
6732
  var import_ui63 = require("@geowiki/ui");
6801
6733
  var import_outline8 = require("@heroicons/react/24/outline");
6802
6734
  var import_ui64 = require("@geowiki/ui");
6803
6735
  var import_ui65 = require("@geowiki/ui");
6804
- var import_jsx_runtime52 = require("react/jsx-runtime");
6736
+ var import_jsx_runtime51 = require("react/jsx-runtime");
6805
6737
  var UpdateUser = () => {
6806
- const { data, isLoading } = (0, import_core55.useUserProfileGet)();
6738
+ const { data, isLoading } = (0, import_core81.useUserProfileGet)();
6807
6739
  const [ChangeDisplayName, setChangeDisplayName] = (0, import_react35.useState)(false);
6808
6740
  const [ChangePassword, setChangePassword] = (0, import_react35.useState)(false);
6809
6741
  if (isLoading || data === void 0)
6810
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_ui63.LoaderFull, {});
6811
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "container mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "pt-4 px-4 py-5 lg:px-2 lg:py-2 md:px-2 md:py-2", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { children: [
6812
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "pt-5", children: [
6813
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("strong", { children: " Your Email Address" }),
6742
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_ui63.LoaderFull, {});
6743
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "container mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "pt-4 px-4 py-5 lg:px-2 lg:py-2 md:px-2 md:py-2", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
6744
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "pt-5", children: [
6745
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("strong", { children: " Your Email Address" }),
6814
6746
  " : ",
6815
6747
  data.email
6816
6748
  ] }),
6817
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "pt-5", children: [
6818
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("strong", { children: "Your Display Name" }),
6749
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "pt-5", children: [
6750
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("strong", { children: "Your Display Name" }),
6819
6751
  " : ",
6820
6752
  data.name,
6821
6753
  " ",
6822
6754
  data.surname,
6823
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "text-xs", children: "Preferably, your display name is your First and Last Name." })
6755
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "text-xs", children: "Preferably, your display name is your First and Last Name." })
6824
6756
  ] }),
6825
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "pt-5", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6757
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "pt-5", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6826
6758
  "button",
6827
6759
  {
6828
6760
  className: ChangeDisplayName ? "focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]" : "inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]",
6829
6761
  type: "button",
6830
6762
  onClick: () => setChangeDisplayName(!ChangeDisplayName),
6831
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex", children: [
6763
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex", children: [
6832
6764
  "Change Display Name",
6833
- ChangeDisplayName ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_outline8.ChevronDownIcon, { className: "h-4 w-4 ml-5 text-white" }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_outline8.ChevronRightIcon, { className: "h-4 w-4 ml-5 text-white" })
6765
+ ChangeDisplayName ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_outline8.ChevronDownIcon, { className: "h-4 w-4 ml-5 text-white" }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_outline8.ChevronRightIcon, { className: "h-4 w-4 ml-5 text-white" })
6834
6766
  ] })
6835
6767
  }
6836
6768
  ) }),
6837
- ChangeDisplayName && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6769
+ ChangeDisplayName && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6838
6770
  import_ui64.UpdateUserProfile,
6839
6771
  {
6840
6772
  ShowProfile: ChangeDisplayName,
@@ -6842,19 +6774,19 @@ var UpdateUser = () => {
6842
6774
  data
6843
6775
  }
6844
6776
  ) }),
6845
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "pt-5", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6777
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "pt-5", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6846
6778
  "button",
6847
6779
  {
6848
6780
  className: ChangePassword ? "focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]" : "inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]",
6849
6781
  type: "button",
6850
6782
  onClick: () => setChangePassword(!ChangePassword),
6851
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex", children: [
6783
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex", children: [
6852
6784
  "Change Password",
6853
- ChangePassword ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_outline8.ChevronDownIcon, { className: "h-4 w-4 ml-5 text-white" }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_outline8.ChevronRightIcon, { className: "h-4 w-4 ml-5 text-white" })
6785
+ ChangePassword ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_outline8.ChevronDownIcon, { className: "h-4 w-4 ml-5 text-white" }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_outline8.ChevronRightIcon, { className: "h-4 w-4 ml-5 text-white" })
6854
6786
  ] })
6855
6787
  }
6856
6788
  ) }),
6857
- ChangePassword && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6789
+ ChangePassword && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6858
6790
  import_ui65.UpdatePassword,
6859
6791
  {
6860
6792
  ShowUpdatePassword: ChangePassword,
@@ -6866,26 +6798,26 @@ var UpdateUser = () => {
6866
6798
 
6867
6799
  // src/components/FeatureResources/FeatureResources.tsx
6868
6800
  var import_ui66 = require("@geowiki/ui");
6869
- var import_link7 = __toESM(require("next/link"));
6870
- var import_jsx_runtime53 = require("react/jsx-runtime");
6801
+ var import_core82 = require("@geowiki/core");
6802
+ var import_jsx_runtime52 = require("react/jsx-runtime");
6871
6803
  var FeatureResources = (props) => {
6872
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: " w-auto h-[15rem] relative bg-white rounded-xl p-6 lg:h-[18rem] lg:max-w-[400px]", children: [
6873
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-start justify-between ", children: [
6874
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ResourceIcon, { type: props.imageType }),
6875
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_ui66.Body15sb, { className: "text-primary", children: props.tag })
6804
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: " w-auto h-[15rem] relative bg-white rounded-xl p-6 lg:h-[18rem] lg:max-w-[400px]", children: [
6805
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-start justify-between ", children: [
6806
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ResourceIcon, { type: props.imageType }),
6807
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_ui66.Body15sb, { className: "text-primary", children: props.tag })
6876
6808
  ] }),
6877
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "pt-4 flex-col justify-start items-start space-y-2 inline-flex lg:pt-6 lg:space-y-4", children: [
6878
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_ui66.H8Design, { children: props.title }),
6879
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_ui66.Body16, { children: props.text })
6809
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "pt-4 flex-col justify-start items-start space-y-2 inline-flex lg:pt-6 lg:space-y-4", children: [
6810
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_ui66.H8Design, { children: props.title }),
6811
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_ui66.Body16, { children: props.text })
6880
6812
  ] }),
6881
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "absolute bottom-6 ", children: props.button?.link && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
6813
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "absolute bottom-6 ", children: props.button?.link && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6882
6814
  import_ui66.DesignButton,
6883
6815
  {
6884
6816
  variant: "externalLink",
6885
6817
  size: "sm",
6886
6818
  className: "h-auto p-0 lg:p-0",
6887
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
6888
- import_link7.default,
6819
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6820
+ import_core82.Link,
6889
6821
  {
6890
6822
  href: props.button.link,
6891
6823
  target: props.button.isNewTab ? "_blank" : "_self",
@@ -6899,9 +6831,9 @@ var FeatureResources = (props) => {
6899
6831
  };
6900
6832
 
6901
6833
  // src/components/FeatureResources/FeatureResourcesList.tsx
6902
- var import_jsx_runtime54 = require("react/jsx-runtime");
6834
+ var import_jsx_runtime53 = require("react/jsx-runtime");
6903
6835
  var FeatureResourcesList = ({ featureResources }) => {
6904
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "container mx-auto px-0", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: featureResources?.map((featureResource) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
6836
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "container mx-auto px-0", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: featureResources?.map((featureResource) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
6905
6837
  FeatureResources,
6906
6838
  {
6907
6839
  title: featureResource.title,
@@ -6917,15 +6849,15 @@ var FeatureResourcesList = ({ featureResources }) => {
6917
6849
  // src/components/FeatureResources/subtitle-h3-body-special-feature-resource-collections.tsx
6918
6850
  var import_ui67 = require("@geowiki/ui");
6919
6851
  var import_react36 = require("react");
6920
- var import_router13 = require("next/router");
6921
- var import_jsx_runtime55 = require("react/jsx-runtime");
6852
+ var import_core83 = require("@geowiki/core");
6853
+ var import_jsx_runtime54 = require("react/jsx-runtime");
6922
6854
  var SubtitleH3BodySpecialFeatureResourceCollections = ({
6923
6855
  title,
6924
6856
  subtitle,
6925
6857
  description,
6926
6858
  featureResources
6927
6859
  }) => {
6928
- const router = (0, import_router13.useRouter)();
6860
+ const router = (0, import_core83.useRouter)();
6929
6861
  (0, import_react36.useEffect)(() => {
6930
6862
  if (typeof window !== "undefined" && router.asPath.includes("#")) {
6931
6863
  const id = router.asPath.split("#")[1];
@@ -6937,18 +6869,18 @@ var SubtitleH3BodySpecialFeatureResourceCollections = ({
6937
6869
  }, 100);
6938
6870
  }
6939
6871
  }, [router.asPath]);
6940
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { id: "special-feature-resources", children: [
6941
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("a", { href: "#special-feature-resources" }),
6942
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "bg-accent-secondary rounded-xl mt-6 lg:mt-20", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "container mx-auto py-6 px-5 space-y-6 lg:pt-16 lg:pb-12 lg:px-12 lg:space-y-12", children: [
6943
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "lg:flex justify-between items-start", children: [
6944
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_ui67.Body18, { className: "pt-2 lg:pt-0 lg:w-[15%]", children: subtitle }),
6945
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "space-y-4 lg:w-[50%] lg:space-y-6", children: [
6946
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_ui67.H3Design, { children: title }),
6947
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_ui67.Body18, { children: description })
6872
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { id: "special-feature-resources", children: [
6873
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("a", { href: "#special-feature-resources" }),
6874
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "bg-accent-secondary rounded-xl mt-6 lg:mt-20", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "container mx-auto py-6 px-5 space-y-6 lg:pt-16 lg:pb-12 lg:px-12 lg:space-y-12", children: [
6875
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "lg:flex justify-between items-start", children: [
6876
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_ui67.Body18, { className: "pt-2 lg:pt-0 lg:w-[15%]", children: subtitle }),
6877
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "space-y-4 lg:w-[50%] lg:space-y-6", children: [
6878
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_ui67.H3Design, { children: title }),
6879
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_ui67.Body18, { children: description })
6948
6880
  ] }),
6949
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "hidden lg:w-[15%] lg:inline" })
6881
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "hidden lg:w-[15%] lg:inline" })
6950
6882
  ] }),
6951
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FeatureResourcesList, { featureResources })
6883
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FeatureResourcesList, { featureResources })
6952
6884
  ] }) })
6953
6885
  ] });
6954
6886
  };
@@ -6980,7 +6912,6 @@ var SubtitleH3BodySpecialFeatureResourceCollections = ({
6980
6912
  ResourceIcon,
6981
6913
  ResourceItem,
6982
6914
  ResourceList,
6983
- ResourceTag,
6984
6915
  ResourcesQuickFind,
6985
6916
  ResourcesSelectedTags,
6986
6917
  SearchFilter,