@geowiki/cms 0.16.9-dev.8 → 0.16.9

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
@@ -480,8 +480,7 @@ var init_EntityListWidget = __esm({
480
480
  Skip * NumberOfEntity,
481
481
  NumberOfEntity
482
482
  );
483
- if (isLoading)
484
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ui3.LoaderFull, {});
483
+ if (isLoading) return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ui3.LoaderFull, {});
485
484
  if (!isLoading && clusterNews?.totalCount == 0)
486
485
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "flex items-center justify-center m-10", children: "No News" });
487
486
  else
@@ -1111,7 +1110,7 @@ var NewsLetterWidget_exports = {};
1111
1110
  __export(NewsLetterWidget_exports, {
1112
1111
  NewsLetterWidget: () => NewsLetterWidget
1113
1112
  });
1114
- var import_ui16, import_react3, import_api_proxy2, import_core10, import_ui17, import_jsx_runtime23, NewsLetterWidget;
1113
+ var import_ui16, import_react3, import_api_proxy2, import_ui17, import_jsx_runtime23, NewsLetterWidget;
1115
1114
  var init_NewsLetterWidget = __esm({
1116
1115
  "src/components/Section/NewsLetterWidget.tsx"() {
1117
1116
  "use strict";
@@ -1119,19 +1118,17 @@ var init_NewsLetterWidget = __esm({
1119
1118
  import_ui16 = require("@geowiki/ui");
1120
1119
  import_react3 = require("react");
1121
1120
  import_api_proxy2 = require("@geowiki/api-proxy");
1122
- import_core10 = require("@geowiki/core");
1123
1121
  import_ui17 = require("@geowiki/ui");
1124
1122
  import_jsx_runtime23 = require("react/jsx-runtime");
1125
1123
  NewsLetterWidget = ({ data }) => {
1126
1124
  const { toast: toast2 } = (0, import_ui17.useToast)();
1127
- var brandName = import_core10.settingsStore.getState().settings?.generalSettings.GeoWikiSettings?.BrandName?.Text;
1128
1125
  const [loading, setLoading] = (0, import_react3.useState)(false);
1129
1126
  const [isAccepted, setIsAccepted] = (0, import_react3.useState)(false);
1130
1127
  const [email, setEmail] = (0, import_react3.useState)("");
1131
1128
  const isEmailValid = (email2) => {
1132
1129
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email2);
1133
1130
  };
1134
- const subscribe = () => {
1131
+ const subscribe = async () => {
1135
1132
  if (!isAccepted) {
1136
1133
  toast2({
1137
1134
  title: "You must accept the privacy policy",
@@ -1140,46 +1137,45 @@ var init_NewsLetterWidget = __esm({
1140
1137
  return;
1141
1138
  }
1142
1139
  if (!email || email.length === 0) {
1143
- toast2({
1144
- title: "You must enter an email",
1145
- variant: "destructive"
1146
- });
1140
+ toast2({ title: "You must enter an email", variant: "destructive" });
1147
1141
  return;
1148
1142
  }
1149
1143
  if (!isEmailValid(email)) {
1150
- toast2({
1151
- title: "Invalid email",
1152
- variant: "destructive"
1153
- });
1144
+ toast2({ title: "Invalid email", variant: "destructive" });
1154
1145
  return;
1155
1146
  }
1156
- var listId = data.NewsLetter?.MailChimpListId?.Text;
1157
- if (!brandName) {
1158
- brandName = window.location.hostname;
1159
- }
1160
- var subscribeInput = {
1161
- email_address: email,
1162
- list_id: listId,
1163
- tags: [brandName]
1164
- };
1165
1147
  setLoading(true);
1166
- import_api_proxy2.MailChimpService.mailChimpGetIsMember(listId, email).then((res) => {
1167
- if (res) {
1168
- toast2({
1169
- title: "You are already subscribed",
1170
- variant: "default"
1171
- });
1172
- setLoading(false);
1173
- } else {
1174
- import_api_proxy2.MailChimpService.mailChimpSubscribe(subscribeInput).then(() => {
1175
- setLoading(false);
1176
- toast2({
1177
- title: "Subscribed successfully",
1178
- variant: "default"
1179
- });
1180
- });
1148
+ try {
1149
+ const res = await fetch(`${import_api_proxy2.OpenAPI.BASE}/api/newsletter/subscribe`, {
1150
+ method: "POST",
1151
+ headers: { "Content-Type": "application/json" },
1152
+ body: JSON.stringify({ email })
1153
+ });
1154
+ if (!res.ok) {
1155
+ let message = "Subscription failed. Please try again later.";
1156
+ try {
1157
+ const body = await res.json();
1158
+ message = body?.error?.message ?? message;
1159
+ } catch {
1160
+ }
1161
+ toast2({ title: message, variant: "destructive" });
1162
+ return;
1181
1163
  }
1182
- });
1164
+ const result = await res.json();
1165
+ toast2({
1166
+ title: result?.requiresConfirmation ? "Almost there \u2014 please check your inbox to confirm your subscription." : "Subscribed successfully",
1167
+ variant: "default"
1168
+ });
1169
+ setEmail("");
1170
+ setIsAccepted(false);
1171
+ } catch {
1172
+ toast2({
1173
+ title: "Subscription failed. Please try again later.",
1174
+ variant: "destructive"
1175
+ });
1176
+ } finally {
1177
+ setLoading(false);
1178
+ }
1183
1179
  };
1184
1180
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "border rounded-xl", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "container mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 lg:flex lg:items-center", children: [
1185
1181
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "lg:w-0 lg:flex-1", children: [
@@ -1201,6 +1197,7 @@ var init_NewsLetterWidget = __esm({
1201
1197
  className: "mt-1 bg-gray-100 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm",
1202
1198
  type: "email",
1203
1199
  name: "email",
1200
+ value: email,
1204
1201
  onChange: (e) => setEmail(e.target.value),
1205
1202
  placeholder: data.emailPlaceholder
1206
1203
  }
@@ -1283,20 +1280,20 @@ function getIcon(color, name) {
1283
1280
  return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(MyIcon, { height: 40, width: 40, color }));
1284
1281
  }
1285
1282
  }
1286
- var import_leaflet, import_react_leaflet, import_core11, import_ui18, import_map, import_core12, import_MapPinIcon, import_server, import_core13, import_jsx_runtime25, createClusterIcon, ClusterMarkers;
1283
+ var import_leaflet, import_react_leaflet, import_core10, import_ui18, import_map, import_core11, import_MapPinIcon, import_server, import_core12, import_jsx_runtime25, createClusterIcon, ClusterMarkers;
1287
1284
  var init_cluster_markers = __esm({
1288
1285
  "src/components/ClusterMap/cluster-markers.tsx"() {
1289
1286
  "use strict";
1290
1287
  "use client";
1291
1288
  import_leaflet = require("leaflet");
1292
1289
  import_react_leaflet = require("react-leaflet");
1293
- import_core11 = require("@geowiki/core");
1290
+ import_core10 = require("@geowiki/core");
1294
1291
  import_ui18 = require("@geowiki/ui");
1295
1292
  import_map = require("@geowiki/map");
1296
- import_core12 = require("@geowiki/core");
1293
+ import_core11 = require("@geowiki/core");
1297
1294
  import_MapPinIcon = __toESM(require("@heroicons/react/24/solid/MapPinIcon"));
1298
1295
  import_server = require("react-dom/server");
1299
- import_core13 = require("@geowiki/core");
1296
+ import_core12 = require("@geowiki/core");
1300
1297
  import_jsx_runtime25 = require("react/jsx-runtime");
1301
1298
  createClusterIcon = (color) => {
1302
1299
  return (cluster) => {
@@ -1308,12 +1305,9 @@ var init_cluster_markers = __esm({
1308
1305
  };
1309
1306
  markers.forEach((marker) => {
1310
1307
  const status = marker.feature?.properties?.Status?.trim().toLowerCase() || "default";
1311
- if (status === "ongoing")
1312
- statusCount.ongoing++;
1313
- else if (status === "auxiliary")
1314
- statusCount.auxiliary++;
1315
- else
1316
- statusCount.default++;
1308
+ if (status === "ongoing") statusCount.ongoing++;
1309
+ else if (status === "auxiliary") statusCount.auxiliary++;
1310
+ else statusCount.default++;
1317
1311
  });
1318
1312
  return (0, import_leaflet.divIcon)({
1319
1313
  html: `<div style=
@@ -1336,13 +1330,11 @@ var init_cluster_markers = __esm({
1336
1330
  };
1337
1331
  };
1338
1332
  ClusterMarkers = (_props) => {
1339
- const { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core13.useConfigSettings)();
1340
- const { data, error, isLoading } = (0, import_core11.useClusterMapInfo)();
1341
- const fileUrl = (0, import_core12.useFileUrl)();
1342
- if (error)
1343
- return null;
1344
- if (isLoading || IsConfigSettingsLoaded)
1345
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_ui18.LoaderFull, {});
1333
+ const { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core12.useConfigSettings)();
1334
+ const { data, error, isLoading } = (0, import_core10.useClusterMapInfo)();
1335
+ const fileUrl = (0, import_core11.useFileUrl)();
1336
+ if (error) return null;
1337
+ if (isLoading || IsConfigSettingsLoaded) return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_ui18.LoaderFull, {});
1346
1338
  if (ConfigSettings?.ConfigSettings?.FeaturesFarmerCluster?.Text) {
1347
1339
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_map.MarkerClusterGroup, { iconCreateFunction: createClusterIcon("#9999CC"), children: data?.map((cluster) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1348
1340
  import_react_leaflet.Marker,
@@ -1413,15 +1405,15 @@ var MapHeroWidget_exports = {};
1413
1405
  __export(MapHeroWidget_exports, {
1414
1406
  MapHeroWidget: () => MapHeroWidget
1415
1407
  });
1416
- var import_core14, import_react4, import_jsx_runtime27, MapWithNoSSR, MapHeroWidget;
1408
+ var import_core13, import_react4, import_jsx_runtime27, MapWithNoSSR, MapHeroWidget;
1417
1409
  var init_MapHeroWidget = __esm({
1418
1410
  "src/components/Section/MapHeroWidget.tsx"() {
1419
1411
  "use strict";
1420
1412
  "use client";
1421
- import_core14 = require("@geowiki/core");
1413
+ import_core13 = require("@geowiki/core");
1422
1414
  import_react4 = require("react");
1423
1415
  import_jsx_runtime27 = require("react/jsx-runtime");
1424
- MapWithNoSSR = (0, import_core14.dynamic)(
1416
+ MapWithNoSSR = (0, import_core13.dynamic)(
1425
1417
  () => Promise.resolve().then(() => (init_HeroMap(), HeroMap_exports)).then((x) => x.HeroMap),
1426
1418
  {
1427
1419
  ssr: false
@@ -1536,7 +1528,7 @@ var HeroWidget_exports = {};
1536
1528
  __export(HeroWidget_exports, {
1537
1529
  HeroWidget: () => HeroWidget
1538
1530
  });
1539
- var import_ui21, import_ui22, import_ui23, import_ui24, import_ui25, import_ui26, import_core15, import_ui27, import_ui28, import_jsx_runtime32, HeroWidget;
1531
+ var import_ui21, import_ui22, import_ui23, import_ui24, import_ui25, import_ui26, import_core14, import_ui27, import_ui28, import_jsx_runtime32, HeroWidget;
1540
1532
  var init_HeroWidget = __esm({
1541
1533
  "src/components/Section/HeroWidget.tsx"() {
1542
1534
  "use strict";
@@ -1547,13 +1539,13 @@ var init_HeroWidget = __esm({
1547
1539
  import_ui24 = require("@geowiki/ui");
1548
1540
  import_ui25 = require("@geowiki/ui");
1549
1541
  import_ui26 = require("@geowiki/ui");
1550
- import_core15 = require("@geowiki/core");
1542
+ import_core14 = require("@geowiki/core");
1551
1543
  import_ui27 = require("@geowiki/ui");
1552
1544
  import_ui28 = require("@geowiki/ui");
1553
1545
  import_jsx_runtime32 = require("react/jsx-runtime");
1554
1546
  HeroWidget = ({ data }) => {
1555
1547
  const type = data?.Hero?.Type?.Text;
1556
- var cmsUrl = (0, import_core15.useCmsUrl)();
1548
+ var cmsUrl = (0, import_core14.useCmsUrl)();
1557
1549
  switch (type) {
1558
1550
  case "image":
1559
1551
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui21.HeroImage, { path: data?.Hero?.Images?.Paths[0], cmsUrl });
@@ -1728,15 +1720,15 @@ var NewfeedPreviewWidget_exports = {};
1728
1720
  __export(NewfeedPreviewWidget_exports, {
1729
1721
  NewsfeedPreviewWidget: () => NewsfeedPreviewWidget
1730
1722
  });
1731
- var import_core16, import_ui30, import_jsx_runtime35, NewsfeedPreviewWidget;
1723
+ var import_core15, import_ui30, import_jsx_runtime35, NewsfeedPreviewWidget;
1732
1724
  var init_NewfeedPreviewWidget = __esm({
1733
1725
  "src/components/Section/NewfeedPreviewWidget.tsx"() {
1734
1726
  "use strict";
1735
- import_core16 = require("@geowiki/core");
1727
+ import_core15 = require("@geowiki/core");
1736
1728
  import_ui30 = require("@geowiki/ui");
1737
1729
  import_jsx_runtime35 = require("react/jsx-runtime");
1738
1730
  NewsfeedPreviewWidget = () => {
1739
- var { data: newsItems, isLoading } = (0, import_core16.useNews)("all", 0, 6);
1731
+ var { data: newsItems, isLoading } = (0, import_core15.useNews)("all", 0, 6);
1740
1732
  var newsArticleData = newsItems?.slice(0, 4)?.map((news) => {
1741
1733
  return {
1742
1734
  title: news.title,
@@ -1824,7 +1816,7 @@ var init_SubtitleH3BodyInternalLinkListWidget = __esm({
1824
1816
  {
1825
1817
  title: data.TitlePart.Title,
1826
1818
  subtitle: data.SubtitleH3BodyInternalLinkList.Subtitle?.Text,
1827
- textBody: data.SubtitleH3BodyInternalLinkList.Content?.Html,
1819
+ textBody: data.SubtitleH3BodyInternalLinkList.Content?.Html ?? data.SubtitleH3BodyInternalLinkList.TextBody?.Text,
1828
1820
  links
1829
1821
  }
1830
1822
  ) });
@@ -2019,7 +2011,7 @@ var NewContactUsWidget_exports = {};
2019
2011
  __export(NewContactUsWidget_exports, {
2020
2012
  NewContactUsWidget: () => NewContactUsWidget
2021
2013
  });
2022
- var import_api_proxy3, import_react5, import_react_hook_form2, import_ui36, import_ui37, import_ui38, import_react6, import_core17, import_zod, import_zod2, import_jsx_runtime42, ContactFormSchema, NewContactUsWidget;
2014
+ var import_api_proxy3, import_react5, import_react_hook_form2, import_ui36, import_ui37, import_ui38, import_react6, import_core16, import_zod, import_zod2, import_jsx_runtime42, ContactFormSchema, NewContactUsWidget;
2023
2015
  var init_NewContactUsWidget = __esm({
2024
2016
  "src/components/Section/NewContactUsWidget.tsx"() {
2025
2017
  "use strict";
@@ -2031,7 +2023,7 @@ var init_NewContactUsWidget = __esm({
2031
2023
  import_ui37 = require("@geowiki/ui");
2032
2024
  import_ui38 = require("@geowiki/ui");
2033
2025
  import_react6 = require("react");
2034
- import_core17 = require("@geowiki/core");
2026
+ import_core16 = require("@geowiki/core");
2035
2027
  import_zod = require("zod");
2036
2028
  import_zod2 = require("@hookform/resolvers/zod");
2037
2029
  import_jsx_runtime42 = require("react/jsx-runtime");
@@ -2048,7 +2040,7 @@ var init_NewContactUsWidget = __esm({
2048
2040
  NewContactUsWidget = ({ data }) => {
2049
2041
  console.log("data", data);
2050
2042
  const formRef = (0, import_react5.useRef)(null);
2051
- const { data: audiences, isLoading: isAudienceLoading } = (0, import_core17.useAudience)();
2043
+ const { data: audiences, isLoading: isAudienceLoading } = (0, import_core16.useAudience)();
2052
2044
  const [open, setOpen] = (0, import_react6.useState)(false);
2053
2045
  const [openSending, setOpenSending] = (0, import_react6.useState)(false);
2054
2046
  const form = (0, import_react_hook_form2.useForm)({
@@ -2397,17 +2389,17 @@ var H2BodyInternalLinkMapWidget_exports = {};
2397
2389
  __export(H2BodyInternalLinkMapWidget_exports, {
2398
2390
  H2BodyInternalLinkMapWidget: () => H2BodyInternalLinkMapWidget
2399
2391
  });
2400
- var import_core18, import_core19, import_react7, import_ui40, import_jsx_runtime45, MapWithNoSSR2, H2BodyInternalLinkMapWidget;
2392
+ var import_core17, import_core18, import_react7, import_ui40, import_jsx_runtime45, MapWithNoSSR2, H2BodyInternalLinkMapWidget;
2401
2393
  var init_H2BodyInternalLinkMapWidget = __esm({
2402
2394
  "src/components/Section/H2BodyInternalLinkMapWidget.tsx"() {
2403
2395
  "use strict";
2404
2396
  "use client";
2397
+ import_core17 = require("@geowiki/core");
2405
2398
  import_core18 = require("@geowiki/core");
2406
- import_core19 = require("@geowiki/core");
2407
2399
  import_react7 = require("react");
2408
2400
  import_ui40 = require("@geowiki/ui");
2409
2401
  import_jsx_runtime45 = require("react/jsx-runtime");
2410
- MapWithNoSSR2 = (0, import_core19.dynamic)(
2402
+ MapWithNoSSR2 = (0, import_core18.dynamic)(
2411
2403
  () => Promise.resolve().then(() => (init_HeroMap(), HeroMap_exports)).then((x) => x.HeroMap),
2412
2404
  {
2413
2405
  ssr: false
@@ -2443,7 +2435,7 @@ var init_H2BodyInternalLinkMapWidget = __esm({
2443
2435
  variant: "internalLink",
2444
2436
  className: "h-auto p-0 text-base lg:p-0",
2445
2437
  children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2446
- import_core18.Link,
2438
+ import_core17.Link,
2447
2439
  {
2448
2440
  href: button.link,
2449
2441
  target: button.isNewTab ? "_blank" : "_self",
@@ -2590,18 +2582,18 @@ var LanguagesWidget_exports = {};
2590
2582
  __export(LanguagesWidget_exports, {
2591
2583
  LanguageWidget: () => LanguageWidget
2592
2584
  });
2593
- var import_core20, import_ui44, import_react8, import_jsx_runtime49, LanguageWidget;
2585
+ var import_core19, import_ui44, import_react8, import_jsx_runtime49, LanguageWidget;
2594
2586
  var init_LanguagesWidget = __esm({
2595
2587
  "src/components/Section/Recodo/LanguagesWidget.tsx"() {
2596
2588
  "use strict";
2597
- import_core20 = require("@geowiki/core");
2589
+ import_core19 = require("@geowiki/core");
2598
2590
  init_Sections();
2599
2591
  import_ui44 = require("@geowiki/ui");
2600
2592
  import_react8 = require("react");
2601
2593
  import_jsx_runtime49 = require("react/jsx-runtime");
2602
2594
  LanguageWidget = () => {
2603
- const { data: languages, isLoading: isLanguagesLoading } = (0, import_core20.useCmsContentWithType)("LanguageItem");
2604
- const { data: generalSettings, isLoading: isGeneralSettingsLoading } = (0, import_core20.useDefaultSettings)();
2595
+ const { data: languages, isLoading: isLanguagesLoading } = (0, import_core19.useCmsContentWithType)("LanguageItem");
2596
+ const { data: generalSettings, isLoading: isGeneralSettingsLoading } = (0, import_core19.useDefaultSettings)();
2605
2597
  const [selectedLanguageContent, setSelectedLanguageContent] = (0, import_react8.useState)();
2606
2598
  const handleLanguageChange = (language) => {
2607
2599
  const selectedLang = languages.find(
@@ -2688,13 +2680,13 @@ var VideoWidget_exports = {};
2688
2680
  __export(VideoWidget_exports, {
2689
2681
  VideoWidget: () => VideoWidget
2690
2682
  });
2691
- var import_core21, import_jsx_runtime51, ReactPlayer, VideoWidget;
2683
+ var import_core20, import_jsx_runtime51, ReactPlayer, VideoWidget;
2692
2684
  var init_VideoWidget = __esm({
2693
2685
  "src/components/Section/VideoWidget.tsx"() {
2694
2686
  "use strict";
2695
- import_core21 = require("@geowiki/core");
2687
+ import_core20 = require("@geowiki/core");
2696
2688
  import_jsx_runtime51 = require("react/jsx-runtime");
2697
- ReactPlayer = (0, import_core21.dynamic)(() => import("react-player"), { ssr: false });
2689
+ ReactPlayer = (0, import_core20.dynamic)(() => import("react-player"), { ssr: false });
2698
2690
  VideoWidget = ({ data }) => {
2699
2691
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mx-auto lg:container w-full lg:w-[60%] pt-10 h-[260px] lg:h-[505px]", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2700
2692
  ReactPlayer,
@@ -3056,8 +3048,7 @@ var init_QuestMapClient = __esm({
3056
3048
  }
3057
3049
  };
3058
3050
  }, [isLoading]);
3059
- if (isLoading)
3060
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_ui50.LoaderFull, {});
3051
+ if (isLoading) return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_ui50.LoaderFull, {});
3061
3052
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "w-full rounded-2xl overflow-hidden shadow bg-white", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3062
3053
  "div",
3063
3054
  {
@@ -3075,13 +3066,13 @@ var QuestMapWidget_exports = {};
3075
3066
  __export(QuestMapWidget_exports, {
3076
3067
  QuestMapWidget: () => QuestMapWidget
3077
3068
  });
3078
- var import_core22, import_jsx_runtime59, QuestMapClient2, QuestMapWidget;
3069
+ var import_core21, import_jsx_runtime59, QuestMapClient2, QuestMapWidget;
3079
3070
  var init_QuestMapWidget = __esm({
3080
3071
  "src/components/Section/GeoQuest/QuestMapWidget.tsx"() {
3081
3072
  "use strict";
3082
- import_core22 = require("@geowiki/core");
3073
+ import_core21 = require("@geowiki/core");
3083
3074
  import_jsx_runtime59 = require("react/jsx-runtime");
3084
- QuestMapClient2 = (0, import_core22.dynamic)(
3075
+ QuestMapClient2 = (0, import_core21.dynamic)(
3085
3076
  () => Promise.resolve().then(() => (init_QuestMapClient(), QuestMapClient_exports)).then((mod) => mod.QuestMapClient),
3086
3077
  {
3087
3078
  ssr: false
@@ -3270,232 +3261,232 @@ var init_SelectQuestWidget = __esm({
3270
3261
  });
3271
3262
 
3272
3263
  // src/components/SectionComponents.ts
3273
- var import_core23, NewsFeedWidget2, UpdateUserInfoWidget2, UserInfoWidget2, ContactWidget2, CardGridWidget2, ResourceCollectionItemWidget2, ResourceCollectionsWidget2, FarmerClusterFinderWidget2, EntityListWidget2, SpecialFeaturesWidget2, SimpleActionListWidget2, FeatureRowWithMultipleImagesWidget2, TestimonialListWidget2, FeatureRowWithImageWidget2, FeatureRowWidget2, SimpleCallToActionWidget2, ImageWidget2, GalleryWidget2, HeaderWidget2, CardWidget2, ColumnWidget2, RowWidget2, NewsLetterWidget2, StatsWidget2, MapHeroWidget2, HeroCenterTextWidget2, HtmlSection2, MarkdownWidget2, ContainerWidget2, HeroWidget2, HeadingTextWidget2, ResourceQuickFindWidget2, NewsfeedPreviewWidget2, SubtitleH3BodyWidget2, SubtitleH3BodyInternalLinkListWidget2, SubtitleH3FaqWidget2, NewTestimonialsWidget2, SubtitleH3ResourceCollectionsWidget2, BannerFollowLinksWidget2, NewContactUsWidget2, ContactCardsWidget2, SubtitleH3BodySpecialFeatureResourceCollectionsWidget2, H2BodyInternalLinkMapWidget2, SignUpBannerWidget2, SubtitleH3ChildrenWidget2, HeaderBodyWidget2, LanguageWidget2, SubtitleH3KeyResourcesWidget2, VideoWidget2, SubtitleH2BodyVideoWidget2, ImageLefttH3BodyWidget2, SixClusterNewsWidget2, ImageLeftH3BodyLinkWidget2, IframeWidget2, DownloadQuestWidget2, QuestMapWidget2, SelectQuestWidget2, SectionComponents;
3264
+ var import_core22, NewsFeedWidget2, UpdateUserInfoWidget2, UserInfoWidget2, ContactWidget2, CardGridWidget2, ResourceCollectionItemWidget2, ResourceCollectionsWidget2, FarmerClusterFinderWidget2, EntityListWidget2, SpecialFeaturesWidget2, SimpleActionListWidget2, FeatureRowWithMultipleImagesWidget2, TestimonialListWidget2, FeatureRowWithImageWidget2, FeatureRowWidget2, SimpleCallToActionWidget2, ImageWidget2, GalleryWidget2, HeaderWidget2, CardWidget2, ColumnWidget2, RowWidget2, NewsLetterWidget2, StatsWidget2, MapHeroWidget2, HeroCenterTextWidget2, HtmlSection2, MarkdownWidget2, ContainerWidget2, HeroWidget2, HeadingTextWidget2, ResourceQuickFindWidget2, NewsfeedPreviewWidget2, SubtitleH3BodyWidget2, SubtitleH3BodyInternalLinkListWidget2, SubtitleH3FaqWidget2, NewTestimonialsWidget2, SubtitleH3ResourceCollectionsWidget2, BannerFollowLinksWidget2, NewContactUsWidget2, ContactCardsWidget2, SubtitleH3BodySpecialFeatureResourceCollectionsWidget2, H2BodyInternalLinkMapWidget2, SignUpBannerWidget2, SubtitleH3ChildrenWidget2, HeaderBodyWidget2, LanguageWidget2, SubtitleH3KeyResourcesWidget2, VideoWidget2, SubtitleH2BodyVideoWidget2, ImageLefttH3BodyWidget2, SixClusterNewsWidget2, ImageLeftH3BodyLinkWidget2, IframeWidget2, DownloadQuestWidget2, QuestMapWidget2, SelectQuestWidget2, SectionComponents;
3274
3265
  var init_SectionComponents = __esm({
3275
3266
  "src/components/SectionComponents.ts"() {
3276
3267
  "use strict";
3277
- import_core23 = require("@geowiki/core");
3278
- NewsFeedWidget2 = (0, import_core23.dynamic)(() => Promise.resolve().then(() => (init_NewsFeedWidget(), NewsFeedWidget_exports)));
3279
- UpdateUserInfoWidget2 = (0, import_core23.dynamic)(
3268
+ import_core22 = require("@geowiki/core");
3269
+ NewsFeedWidget2 = (0, import_core22.dynamic)(() => Promise.resolve().then(() => (init_NewsFeedWidget(), NewsFeedWidget_exports)));
3270
+ UpdateUserInfoWidget2 = (0, import_core22.dynamic)(
3280
3271
  () => Promise.resolve().then(() => (init_UpdateUserInfoWidget(), UpdateUserInfoWidget_exports)).then(
3281
3272
  (mod) => mod.UpdateUserInfoWidget
3282
3273
  )
3283
3274
  );
3284
- UserInfoWidget2 = (0, import_core23.dynamic)(
3275
+ UserInfoWidget2 = (0, import_core22.dynamic)(
3285
3276
  () => Promise.resolve().then(() => (init_UserInfoWidget(), UserInfoWidget_exports)).then((mod) => mod.UserInfoWidget)
3286
3277
  );
3287
- ContactWidget2 = (0, import_core23.dynamic)(
3278
+ ContactWidget2 = (0, import_core22.dynamic)(
3288
3279
  () => Promise.resolve().then(() => (init_ContactWidget(), ContactWidget_exports)).then((mod) => mod.ContactWidget)
3289
3280
  );
3290
- CardGridWidget2 = (0, import_core23.dynamic)(
3281
+ CardGridWidget2 = (0, import_core22.dynamic)(
3291
3282
  () => Promise.resolve().then(() => (init_CardGridWidget(), CardGridWidget_exports)).then((mod) => mod.CardGridWidget)
3292
3283
  );
3293
- ResourceCollectionItemWidget2 = (0, import_core23.dynamic)(
3284
+ ResourceCollectionItemWidget2 = (0, import_core22.dynamic)(
3294
3285
  () => Promise.resolve().then(() => (init_ResourceCollectionItemWidget(), ResourceCollectionItemWidget_exports)).then(
3295
3286
  (mod) => mod.ResourceCollectionItemWidget
3296
3287
  )
3297
3288
  );
3298
- ResourceCollectionsWidget2 = (0, import_core23.dynamic)(
3289
+ ResourceCollectionsWidget2 = (0, import_core22.dynamic)(
3299
3290
  () => Promise.resolve().then(() => (init_ResourceCollectionsWidget(), ResourceCollectionsWidget_exports)).then(
3300
3291
  (mod) => mod.ResourceCollectionsWidget
3301
3292
  )
3302
3293
  );
3303
- FarmerClusterFinderWidget2 = (0, import_core23.dynamic)(
3294
+ FarmerClusterFinderWidget2 = (0, import_core22.dynamic)(
3304
3295
  () => Promise.resolve().then(() => (init_FarmerClusterFinderWidget(), FarmerClusterFinderWidget_exports)).then(
3305
3296
  (mod) => mod.FarmerClusterFinderWidget
3306
3297
  )
3307
3298
  );
3308
- EntityListWidget2 = (0, import_core23.dynamic)(
3299
+ EntityListWidget2 = (0, import_core22.dynamic)(
3309
3300
  () => Promise.resolve().then(() => (init_EntityListWidget(), EntityListWidget_exports)).then((mod) => mod.EntityListWidget)
3310
3301
  );
3311
- SpecialFeaturesWidget2 = (0, import_core23.dynamic)(
3302
+ SpecialFeaturesWidget2 = (0, import_core22.dynamic)(
3312
3303
  () => Promise.resolve().then(() => (init_SpecialFeaturesWidget(), SpecialFeaturesWidget_exports)).then(
3313
3304
  (mod) => mod.SpecialFeaturesWidget
3314
3305
  )
3315
3306
  );
3316
- SimpleActionListWidget2 = (0, import_core23.dynamic)(
3307
+ SimpleActionListWidget2 = (0, import_core22.dynamic)(
3317
3308
  () => Promise.resolve().then(() => (init_SimpleActionListWidget(), SimpleActionListWidget_exports)).then(
3318
3309
  (mod) => mod.SimpleActionListWidget
3319
3310
  )
3320
3311
  );
3321
- FeatureRowWithMultipleImagesWidget2 = (0, import_core23.dynamic)(
3312
+ FeatureRowWithMultipleImagesWidget2 = (0, import_core22.dynamic)(
3322
3313
  () => Promise.resolve().then(() => (init_FeatureRowWithMultipleImagesWidget(), FeatureRowWithMultipleImagesWidget_exports)).then(
3323
3314
  (mod) => mod.FeatureRowWithMultipleImagesWidget
3324
3315
  )
3325
3316
  );
3326
- TestimonialListWidget2 = (0, import_core23.dynamic)(
3317
+ TestimonialListWidget2 = (0, import_core22.dynamic)(
3327
3318
  () => Promise.resolve().then(() => (init_TestimonialListWidget(), TestimonialListWidget_exports)).then(
3328
3319
  (mod) => mod.TestimonialListWidget
3329
3320
  )
3330
3321
  );
3331
- FeatureRowWithImageWidget2 = (0, import_core23.dynamic)(
3322
+ FeatureRowWithImageWidget2 = (0, import_core22.dynamic)(
3332
3323
  () => Promise.resolve().then(() => (init_FeatureRowWithImageWidget(), FeatureRowWithImageWidget_exports)).then(
3333
3324
  (mod) => mod.FeatureRowWithImageWidget
3334
3325
  )
3335
3326
  );
3336
- FeatureRowWidget2 = (0, import_core23.dynamic)(
3327
+ FeatureRowWidget2 = (0, import_core22.dynamic)(
3337
3328
  () => Promise.resolve().then(() => (init_FeatureRowWidget(), FeatureRowWidget_exports)).then((mod) => mod.FeatureRowWidget)
3338
3329
  );
3339
- SimpleCallToActionWidget2 = (0, import_core23.dynamic)(
3330
+ SimpleCallToActionWidget2 = (0, import_core22.dynamic)(
3340
3331
  () => Promise.resolve().then(() => (init_SimpleCallToActionWidget(), SimpleCallToActionWidget_exports)).then(
3341
3332
  (mod) => mod.SimpleCallToActionWidget
3342
3333
  )
3343
3334
  );
3344
- ImageWidget2 = (0, import_core23.dynamic)(
3335
+ ImageWidget2 = (0, import_core22.dynamic)(
3345
3336
  () => Promise.resolve().then(() => (init_ImageWidget(), ImageWidget_exports)).then((mod) => mod.ImageWidget)
3346
3337
  );
3347
- GalleryWidget2 = (0, import_core23.dynamic)(
3338
+ GalleryWidget2 = (0, import_core22.dynamic)(
3348
3339
  () => Promise.resolve().then(() => (init_GalleryWidget(), GalleryWidget_exports)).then((mod) => mod.GalleryWidget)
3349
3340
  );
3350
- HeaderWidget2 = (0, import_core23.dynamic)(
3341
+ HeaderWidget2 = (0, import_core22.dynamic)(
3351
3342
  () => Promise.resolve().then(() => (init_HeaderWidget(), HeaderWidget_exports)).then((mod) => mod.HeaderWidget)
3352
3343
  );
3353
- CardWidget2 = (0, import_core23.dynamic)(
3344
+ CardWidget2 = (0, import_core22.dynamic)(
3354
3345
  () => Promise.resolve().then(() => (init_CardWidget(), CardWidget_exports)).then((mod) => mod.CardWidget)
3355
3346
  );
3356
- ColumnWidget2 = (0, import_core23.dynamic)(
3347
+ ColumnWidget2 = (0, import_core22.dynamic)(
3357
3348
  () => Promise.resolve().then(() => (init_ColumnWidget(), ColumnWidget_exports)).then((mod) => mod.ColumnWidget)
3358
3349
  );
3359
- RowWidget2 = (0, import_core23.dynamic)(
3350
+ RowWidget2 = (0, import_core22.dynamic)(
3360
3351
  () => Promise.resolve().then(() => (init_RowWidget(), RowWidget_exports)).then((mod) => mod.RowWidget)
3361
3352
  );
3362
- NewsLetterWidget2 = (0, import_core23.dynamic)(
3353
+ NewsLetterWidget2 = (0, import_core22.dynamic)(
3363
3354
  () => Promise.resolve().then(() => (init_NewsLetterWidget(), NewsLetterWidget_exports)).then((mod) => mod.NewsLetterWidget)
3364
3355
  );
3365
- StatsWidget2 = (0, import_core23.dynamic)(
3356
+ StatsWidget2 = (0, import_core22.dynamic)(
3366
3357
  () => Promise.resolve().then(() => (init_StatsWidget(), StatsWidget_exports)).then((mod) => mod.StatsWidget)
3367
3358
  );
3368
- MapHeroWidget2 = (0, import_core23.dynamic)(
3359
+ MapHeroWidget2 = (0, import_core22.dynamic)(
3369
3360
  () => Promise.resolve().then(() => (init_MapHeroWidget(), MapHeroWidget_exports)).then((mod) => mod.MapHeroWidget)
3370
3361
  );
3371
- HeroCenterTextWidget2 = (0, import_core23.dynamic)(
3362
+ HeroCenterTextWidget2 = (0, import_core22.dynamic)(
3372
3363
  () => Promise.resolve().then(() => (init_HeroCenterTextWidget(), HeroCenterTextWidget_exports)).then(
3373
3364
  (mod) => mod.HeroCenterTextWidget
3374
3365
  )
3375
3366
  );
3376
- HtmlSection2 = (0, import_core23.dynamic)(
3367
+ HtmlSection2 = (0, import_core22.dynamic)(
3377
3368
  () => Promise.resolve().then(() => (init_html_section(), html_section_exports)).then((mod) => mod.HtmlSection)
3378
3369
  );
3379
- MarkdownWidget2 = (0, import_core23.dynamic)(
3370
+ MarkdownWidget2 = (0, import_core22.dynamic)(
3380
3371
  () => Promise.resolve().then(() => (init_MarkdownWidget(), MarkdownWidget_exports)).then((mod) => mod.MarkdownWidget)
3381
3372
  );
3382
- ContainerWidget2 = (0, import_core23.dynamic)(
3373
+ ContainerWidget2 = (0, import_core22.dynamic)(
3383
3374
  () => Promise.resolve().then(() => (init_ContainerWidget(), ContainerWidget_exports)).then((mod) => mod.ContainerWidget)
3384
3375
  );
3385
- HeroWidget2 = (0, import_core23.dynamic)(
3376
+ HeroWidget2 = (0, import_core22.dynamic)(
3386
3377
  () => Promise.resolve().then(() => (init_HeroWidget(), HeroWidget_exports)).then((mod) => mod.HeroWidget)
3387
3378
  );
3388
- HeadingTextWidget2 = (0, import_core23.dynamic)(
3379
+ HeadingTextWidget2 = (0, import_core22.dynamic)(
3389
3380
  () => Promise.resolve().then(() => (init_HeadingTextWidget(), HeadingTextWidget_exports)).then((mod) => mod.HeadingTextWidget)
3390
3381
  );
3391
- ResourceQuickFindWidget2 = (0, import_core23.dynamic)(
3382
+ ResourceQuickFindWidget2 = (0, import_core22.dynamic)(
3392
3383
  () => Promise.resolve().then(() => (init_ResourceQuickFindWidget(), ResourceQuickFindWidget_exports)).then(
3393
3384
  (mod) => mod.ResourceQuickFindWidget
3394
3385
  )
3395
3386
  );
3396
- NewsfeedPreviewWidget2 = (0, import_core23.dynamic)(
3387
+ NewsfeedPreviewWidget2 = (0, import_core22.dynamic)(
3397
3388
  () => Promise.resolve().then(() => (init_NewfeedPreviewWidget(), NewfeedPreviewWidget_exports)).then(
3398
3389
  (mod) => mod.NewsfeedPreviewWidget
3399
3390
  )
3400
3391
  );
3401
- SubtitleH3BodyWidget2 = (0, import_core23.dynamic)(
3392
+ SubtitleH3BodyWidget2 = (0, import_core22.dynamic)(
3402
3393
  () => Promise.resolve().then(() => (init_SubtitleH3BodyWidget(), SubtitleH3BodyWidget_exports)).then(
3403
3394
  (mod) => mod.SubtitleH3BodyWidget
3404
3395
  )
3405
3396
  );
3406
- SubtitleH3BodyInternalLinkListWidget2 = (0, import_core23.dynamic)(
3397
+ SubtitleH3BodyInternalLinkListWidget2 = (0, import_core22.dynamic)(
3407
3398
  () => Promise.resolve().then(() => (init_SubtitleH3BodyInternalLinkListWidget(), SubtitleH3BodyInternalLinkListWidget_exports)).then(
3408
3399
  (mod) => mod.SubtitleH3BodyInternalLinkListWidget
3409
3400
  )
3410
3401
  );
3411
- SubtitleH3FaqWidget2 = (0, import_core23.dynamic)(
3402
+ SubtitleH3FaqWidget2 = (0, import_core22.dynamic)(
3412
3403
  () => Promise.resolve().then(() => (init_SubtitleH3FaqWidget(), SubtitleH3FaqWidget_exports)).then(
3413
3404
  (mod) => mod.SubtitleH3FaqWidget
3414
3405
  )
3415
3406
  );
3416
- NewTestimonialsWidget2 = (0, import_core23.dynamic)(
3407
+ NewTestimonialsWidget2 = (0, import_core22.dynamic)(
3417
3408
  () => Promise.resolve().then(() => (init_NewTestimonialsWidget(), NewTestimonialsWidget_exports)).then(
3418
3409
  (mod) => mod.NewTestimonialsWidget
3419
3410
  )
3420
3411
  );
3421
- SubtitleH3ResourceCollectionsWidget2 = (0, import_core23.dynamic)(
3412
+ SubtitleH3ResourceCollectionsWidget2 = (0, import_core22.dynamic)(
3422
3413
  () => Promise.resolve().then(() => (init_SubtitleH3ResourceCollectionsWidget(), SubtitleH3ResourceCollectionsWidget_exports)).then(
3423
3414
  (mod) => mod.SubtitleH3ResourceCollectionsWidget
3424
3415
  )
3425
3416
  );
3426
- BannerFollowLinksWidget2 = (0, import_core23.dynamic)(
3417
+ BannerFollowLinksWidget2 = (0, import_core22.dynamic)(
3427
3418
  () => Promise.resolve().then(() => (init_BannerFollowLinksWidget(), BannerFollowLinksWidget_exports)).then(
3428
3419
  (mod) => mod.BannerFollowLinksWidget
3429
3420
  )
3430
3421
  );
3431
- NewContactUsWidget2 = (0, import_core23.dynamic)(
3422
+ NewContactUsWidget2 = (0, import_core22.dynamic)(
3432
3423
  () => Promise.resolve().then(() => (init_NewContactUsWidget(), NewContactUsWidget_exports)).then((mod) => mod.NewContactUsWidget)
3433
3424
  );
3434
- ContactCardsWidget2 = (0, import_core23.dynamic)(
3425
+ ContactCardsWidget2 = (0, import_core22.dynamic)(
3435
3426
  () => Promise.resolve().then(() => (init_ContactCardsWidget(), ContactCardsWidget_exports)).then((mod) => mod.ContactCardsWidget)
3436
3427
  );
3437
- SubtitleH3BodySpecialFeatureResourceCollectionsWidget2 = (0, import_core23.dynamic)(
3428
+ SubtitleH3BodySpecialFeatureResourceCollectionsWidget2 = (0, import_core22.dynamic)(
3438
3429
  () => Promise.resolve().then(() => (init_SubtitleH3BodySpecialFeatureResourceCollectionsWidget(), SubtitleH3BodySpecialFeatureResourceCollectionsWidget_exports)).then((mod) => mod.SubtitleH3BodySpecialFeatureResourceCollectionsWidget)
3439
3430
  );
3440
- H2BodyInternalLinkMapWidget2 = (0, import_core23.dynamic)(
3431
+ H2BodyInternalLinkMapWidget2 = (0, import_core22.dynamic)(
3441
3432
  () => Promise.resolve().then(() => (init_H2BodyInternalLinkMapWidget(), H2BodyInternalLinkMapWidget_exports)).then(
3442
3433
  (mod) => mod.H2BodyInternalLinkMapWidget
3443
3434
  )
3444
3435
  );
3445
- SignUpBannerWidget2 = (0, import_core23.dynamic)(
3436
+ SignUpBannerWidget2 = (0, import_core22.dynamic)(
3446
3437
  () => Promise.resolve().then(() => (init_SignUpBannerWidget(), SignUpBannerWidget_exports)).then((mod) => mod.SignUpBannerWidget)
3447
3438
  );
3448
- SubtitleH3ChildrenWidget2 = (0, import_core23.dynamic)(
3439
+ SubtitleH3ChildrenWidget2 = (0, import_core22.dynamic)(
3449
3440
  () => Promise.resolve().then(() => (init_SubtitleH3ChildrenWidget(), SubtitleH3ChildrenWidget_exports)).then(
3450
3441
  (mod) => mod.SubtitleH3ChildrenWidget
3451
3442
  )
3452
3443
  );
3453
- HeaderBodyWidget2 = (0, import_core23.dynamic)(
3444
+ HeaderBodyWidget2 = (0, import_core22.dynamic)(
3454
3445
  () => Promise.resolve().then(() => (init_HeaderBodyWidget(), HeaderBodyWidget_exports)).then((mod) => mod.HeaderBodyWidget)
3455
3446
  );
3456
- LanguageWidget2 = (0, import_core23.dynamic)(
3447
+ LanguageWidget2 = (0, import_core22.dynamic)(
3457
3448
  () => Promise.resolve().then(() => (init_LanguagesWidget(), LanguagesWidget_exports)).then((mod) => mod.LanguageWidget)
3458
3449
  );
3459
- SubtitleH3KeyResourcesWidget2 = (0, import_core23.dynamic)(
3450
+ SubtitleH3KeyResourcesWidget2 = (0, import_core22.dynamic)(
3460
3451
  () => Promise.resolve().then(() => (init_SubtitleH3KeyResourcesWidget(), SubtitleH3KeyResourcesWidget_exports)).then(
3461
3452
  (mod) => mod.SubtitleH3KeyResourcesWidget
3462
3453
  )
3463
3454
  );
3464
- VideoWidget2 = (0, import_core23.dynamic)(
3455
+ VideoWidget2 = (0, import_core22.dynamic)(
3465
3456
  () => Promise.resolve().then(() => (init_VideoWidget(), VideoWidget_exports)).then((mod) => mod.VideoWidget)
3466
3457
  );
3467
- SubtitleH2BodyVideoWidget2 = (0, import_core23.dynamic)(
3458
+ SubtitleH2BodyVideoWidget2 = (0, import_core22.dynamic)(
3468
3459
  () => Promise.resolve().then(() => (init_SubtitleH2BodyVideoWidget(), SubtitleH2BodyVideoWidget_exports)).then(
3469
3460
  (mod) => mod.SubtitleH2BodyVideoWidget
3470
3461
  )
3471
3462
  );
3472
- ImageLefttH3BodyWidget2 = (0, import_core23.dynamic)(
3463
+ ImageLefttH3BodyWidget2 = (0, import_core22.dynamic)(
3473
3464
  () => Promise.resolve().then(() => (init_ImageLefttH3BodyWidget(), ImageLefttH3BodyWidget_exports)).then(
3474
3465
  (mod) => mod.ImageLefttH3BodyWidget
3475
3466
  )
3476
3467
  );
3477
- SixClusterNewsWidget2 = (0, import_core23.dynamic)(
3468
+ SixClusterNewsWidget2 = (0, import_core22.dynamic)(
3478
3469
  () => Promise.resolve().then(() => (init_SixClusterNewsWidget(), SixClusterNewsWidget_exports)).then(
3479
3470
  (mod) => mod.SixClusterNewsWidget
3480
3471
  )
3481
3472
  );
3482
- ImageLeftH3BodyLinkWidget2 = (0, import_core23.dynamic)(
3473
+ ImageLeftH3BodyLinkWidget2 = (0, import_core22.dynamic)(
3483
3474
  () => Promise.resolve().then(() => (init_ImageLeftH3BodyLinkWidget(), ImageLeftH3BodyLinkWidget_exports)).then(
3484
3475
  (mod) => mod.ImageLeftH3BodyLinkWidget
3485
3476
  )
3486
3477
  );
3487
- IframeWidget2 = (0, import_core23.dynamic)(
3478
+ IframeWidget2 = (0, import_core22.dynamic)(
3488
3479
  () => Promise.resolve().then(() => (init_IframeWidget(), IframeWidget_exports)).then((mod) => mod.IframeWidget)
3489
3480
  );
3490
- DownloadQuestWidget2 = (0, import_core23.dynamic)(
3481
+ DownloadQuestWidget2 = (0, import_core22.dynamic)(
3491
3482
  () => Promise.resolve().then(() => (init_DownloadQuestWidget(), DownloadQuestWidget_exports)).then(
3492
3483
  (mod) => mod.DownloadQuestWidget
3493
3484
  )
3494
3485
  );
3495
- QuestMapWidget2 = (0, import_core23.dynamic)(
3486
+ QuestMapWidget2 = (0, import_core22.dynamic)(
3496
3487
  () => Promise.resolve().then(() => (init_QuestMapWidget(), QuestMapWidget_exports)).then((mod) => mod.QuestMapWidget)
3497
3488
  );
3498
- SelectQuestWidget2 = (0, import_core23.dynamic)(
3489
+ SelectQuestWidget2 = (0, import_core22.dynamic)(
3499
3490
  () => Promise.resolve().then(() => (init_SelectQuestWidget(), SelectQuestWidget_exports)).then(
3500
3491
  (mod) => mod.SelectQuestWidget
3501
3492
  )
@@ -3564,20 +3555,54 @@ var init_SectionComponents = __esm({
3564
3555
  }
3565
3556
  });
3566
3557
 
3558
+ // src/components/WidgetErrorBoundary.tsx
3559
+ var import_react_error_boundary, import_jsx_runtime61, IS_DEV, WidgetFallback, WidgetErrorBoundary;
3560
+ var init_WidgetErrorBoundary = __esm({
3561
+ "src/components/WidgetErrorBoundary.tsx"() {
3562
+ "use strict";
3563
+ "use client";
3564
+ import_react_error_boundary = require("react-error-boundary");
3565
+ import_jsx_runtime61 = require("react/jsx-runtime");
3566
+ IS_DEV = process.env.NODE_ENV === "development";
3567
+ WidgetFallback = ({ widgetName, error }) => {
3568
+ if (!IS_DEV) return null;
3569
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "container mx-auto my-4 p-3 border border-dashed border-red-400 bg-red-50 text-red-700 text-sm rounded", children: [
3570
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("strong", { children: "Widget failed to render" }),
3571
+ " \u2014 ",
3572
+ widgetName,
3573
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("pre", { className: "mt-2 text-xs whitespace-pre-wrap", children: error.message })
3574
+ ] });
3575
+ };
3576
+ WidgetErrorBoundary = ({ children, widgetName }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3577
+ import_react_error_boundary.ErrorBoundary,
3578
+ {
3579
+ fallbackRender: ({ error }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(WidgetFallback, { widgetName, error }),
3580
+ onError: (error, info) => console.error(
3581
+ `[WidgetErrorBoundary] Widget "${widgetName}" crashed:`,
3582
+ error,
3583
+ info
3584
+ ),
3585
+ children
3586
+ }
3587
+ );
3588
+ }
3589
+ });
3590
+
3567
3591
  // src/components/Sections.tsx
3568
- var import_jsx_runtime61, Section, Sections;
3592
+ var import_jsx_runtime62, Section, Sections;
3569
3593
  var init_Sections = __esm({
3570
3594
  "src/components/Sections.tsx"() {
3571
3595
  "use strict";
3572
3596
  "use client";
3573
3597
  init_SectionComponents();
3574
- import_jsx_runtime61 = require("react/jsx-runtime");
3598
+ init_WidgetErrorBoundary();
3599
+ import_jsx_runtime62 = require("react/jsx-runtime");
3575
3600
  Section = ({ sectionData, settings, cmsUrl, newsItems }) => {
3576
3601
  const SectionComponent = SectionComponents[sectionData.ContentType];
3577
3602
  if (!SectionComponent) {
3578
3603
  return null;
3579
3604
  }
3580
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3605
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(WidgetErrorBoundary, { widgetName: sectionData.ContentType, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3581
3606
  SectionComponent,
3582
3607
  {
3583
3608
  data: sectionData,
@@ -3585,10 +3610,10 @@ var init_Sections = __esm({
3585
3610
  cmsUrl,
3586
3611
  newsItems
3587
3612
  }
3588
- ) }, sectionData.ContentItemId);
3613
+ ) });
3589
3614
  };
3590
3615
  Sections = ({ sections, settings, cmsUrl }) => {
3591
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex flex-col", children: sections?.map((section) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3616
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex flex-col", children: sections?.map((section) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3592
3617
  Section,
3593
3618
  {
3594
3619
  sectionData: section,
@@ -3602,8 +3627,8 @@ var init_Sections = __esm({
3602
3627
  });
3603
3628
 
3604
3629
  // src/index.tsx
3605
- var src_exports = {};
3606
- __export(src_exports, {
3630
+ var index_exports = {};
3631
+ __export(index_exports, {
3607
3632
  AppsList: () => AppsList,
3608
3633
  CardGridWidget: () => CardGridWidget,
3609
3634
  CardWidget: () => CardWidget,
@@ -3641,27 +3666,29 @@ __export(src_exports, {
3641
3666
  TestimonialListWidget: () => TestimonialListWidget,
3642
3667
  UnderConstruction: () => UnderConstruction,
3643
3668
  UpdateUserInfoWidget: () => UpdateUserInfoWidget,
3644
- UserInfoWidget: () => UserInfoWidget
3669
+ UserInfoWidget: () => UserInfoWidget,
3670
+ WidgetErrorBoundary: () => WidgetErrorBoundary
3645
3671
  });
3646
- module.exports = __toCommonJS(src_exports);
3672
+ module.exports = __toCommonJS(index_exports);
3647
3673
  init_Sections();
3674
+ init_WidgetErrorBoundary();
3648
3675
 
3649
3676
  // src/components/Section/apps-list.tsx
3650
- var import_core24 = require("@geowiki/core");
3677
+ var import_core23 = require("@geowiki/core");
3651
3678
  var import_ui52 = require("@geowiki/ui");
3652
- var import_jsx_runtime62 = require("react/jsx-runtime");
3679
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3653
3680
  var AppsList = ({ apps }) => {
3654
3681
  console.log("apps", apps);
3655
- var cmsUrl = (0, import_core24.useCmsUrl)();
3682
+ var cmsUrl = (0, import_core23.useCmsUrl)();
3656
3683
  var visibleApps = apps?.filter(
3657
3684
  (app) => app?.Application?.IsVisible?.Value === true
3658
3685
  );
3659
3686
  visibleApps?.sort((a, b) => {
3660
3687
  return a?.Application?.Order?.Value - b?.Application?.Order?.Value;
3661
3688
  });
3662
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-4 py-16 mx-auto sm:max-w-xl md:max-w-full ", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "mx-auto px-4 container sm:px-6", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "space-y-12", children: [
3663
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "space-y-5 sm:space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h2", { className: "text-3xl font-extrabold tracking-tight sm:text-4xl text-center", children: "Our Apps" }) }),
3664
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { className: "space-y-12 sm:grid sm:grid-cols-2 lg:grid-cols-3 sm:gap-x-6 sm:gap-y-12 sm:space-y-0 lg:gap-x-8", children: visibleApps && visibleApps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3689
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-4 py-16 mx-auto sm:max-w-xl md:max-w-full ", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "mx-auto px-4 container sm:px-6", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "space-y-12", children: [
3690
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "space-y-5 sm:space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("h2", { className: "text-3xl font-extrabold tracking-tight sm:text-4xl text-center", children: "Our Apps" }) }),
3691
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "lg:col-span-2", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("ul", { className: "space-y-12 sm:grid sm:grid-cols-2 lg:grid-cols-3 sm:gap-x-6 sm:gap-y-12 sm:space-y-0 lg:gap-x-8", children: visibleApps && visibleApps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3665
3692
  import_ui52.ApplicationView,
3666
3693
  {
3667
3694
  app,
@@ -3684,13 +3711,13 @@ init_EntityListWidget();
3684
3711
 
3685
3712
  // src/components/Section/feature-columns-group.tsx
3686
3713
  var import_ui53 = require("@geowiki/ui");
3687
- var import_jsx_runtime63 = require("react/jsx-runtime");
3714
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3688
3715
  var FeatureColumnsGroup = ({ data }) => {
3689
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "container mx-auto flex flex-col lg:flex-row lg:flex-wrap gap-12 align-top py-12 text-center", children: data.features.map((feature) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex-1 text-lg", children: [
3690
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex content-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_ui53.CustomImage, { src: feature.icon, className: "w-10" }) }),
3691
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("h3", { className: "font-bold mt-4 mb-4", children: feature.title }),
3692
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { children: feature.description }),
3693
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("a", {})
3716
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "container mx-auto flex flex-col lg:flex-row lg:flex-wrap gap-12 align-top py-12 text-center", children: data.features.map((feature) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex-1 text-lg", children: [
3717
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex content-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_ui53.CustomImage, { src: feature.icon, className: "w-10" }) }),
3718
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h3", { className: "font-bold mt-4 mb-4", children: feature.title }),
3719
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { children: feature.description }),
3720
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("a", {})
3694
3721
  ] }, feature.id)) }) });
3695
3722
  };
3696
3723
 
@@ -3698,7 +3725,7 @@ var FeatureColumnsGroup = ({ data }) => {
3698
3725
  var import_classnames2 = __toESM(require("classnames"));
3699
3726
  var import_ui54 = require("@geowiki/ui");
3700
3727
  var import_ui55 = require("@geowiki/ui");
3701
- var import_jsx_runtime64 = require("react/jsx-runtime");
3728
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3702
3729
 
3703
3730
  // src/index.tsx
3704
3731
  init_FeatureRowWidget();
@@ -3710,25 +3737,25 @@ init_HeroWidget();
3710
3737
  init_HeadingTextWidget();
3711
3738
 
3712
3739
  // src/components/Section/hero-geowiki.tsx
3713
- var import_core25 = require("@geowiki/core");
3740
+ var import_core24 = require("@geowiki/core");
3714
3741
  var import_ui56 = require("@geowiki/ui");
3715
- var import_jsx_runtime65 = require("react/jsx-runtime");
3742
+ var import_jsx_runtime66 = require("react/jsx-runtime");
3716
3743
  var HeroGeoWiki = ({ data }) => {
3717
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3744
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3718
3745
  "div",
3719
3746
  {
3720
3747
  className: "w-full bg-center bg-cover hero-geo-wiki rounded-xl overflow-hidden",
3721
3748
  style: { backgroundImage: `url('${data.picture.url}')` },
3722
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "text-center bg-opacity-50 bg-gray-600 p-8", children: [
3723
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "uppercase tracking-wide font-semibold opacity-100 text-white", children: data.label }),
3724
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h1", { className: "title text-white mt-2 sm:mt-0 mb-4 sm:mb-2", children: data.title }),
3725
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "text-xl text-white mb-6", children: data.description }),
3726
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex flex-row flex-wrap gap-4 justify-center text-white", children: data.buttons.map((button) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3749
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "text-center bg-opacity-50 bg-gray-600 p-8", children: [
3750
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "uppercase tracking-wide font-semibold opacity-100 text-white", children: data.label }),
3751
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h1", { className: "title text-white mt-2 sm:mt-0 mb-4 sm:mb-2", children: data.title }),
3752
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-xl text-white mb-6", children: data.description }),
3753
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex flex-row flex-wrap gap-4 justify-center text-white", children: data.buttons.map((button) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3727
3754
  import_ui56.ButtonLink,
3728
3755
  {
3729
3756
  button,
3730
3757
  compact: false,
3731
- appearance: (0, import_core25.getButtonAppearance)(button.type, "light")
3758
+ appearance: (0, import_core24.getButtonAppearance)(button.type, "light")
3732
3759
  },
3733
3760
  button.id
3734
3761
  )) })
@@ -3743,12 +3770,12 @@ init_ImageWidget();
3743
3770
 
3744
3771
  // src/components/Section/large-video.tsx
3745
3772
  var import_ui57 = require("@geowiki/ui");
3746
- var import_jsx_runtime66 = require("react/jsx-runtime");
3773
+ var import_jsx_runtime67 = require("react/jsx-runtime");
3747
3774
  var LargeVideo = ({ data }) => {
3748
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("section", { className: "container flex flex-col align-middle text-center pt-12 pb-16", children: [
3749
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h2", { className: "title mb-6", children: data.title }),
3750
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-lg mb-10", children: data.description }),
3751
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "w-full lg:w-9/12 mx-auto overflow-hidden shadow-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3775
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("section", { className: "container flex flex-col align-middle text-center pt-12 pb-16", children: [
3776
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h2", { className: "title mb-6", children: data.title }),
3777
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-lg mb-10", children: data.description }),
3778
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "w-full lg:w-9/12 mx-auto overflow-hidden shadow-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3752
3779
  import_ui57.Video,
3753
3780
  {
3754
3781
  media: data.video,
@@ -3767,9 +3794,9 @@ init_ResourceCollectionsWidget();
3767
3794
 
3768
3795
  // src/components/Section/rich-text.tsx
3769
3796
  var import_react_markdown = __toESM(require("react-markdown"));
3770
- var import_jsx_runtime67 = require("react/jsx-runtime");
3797
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3771
3798
  var RichText = ({ data }) => {
3772
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "container mx-auto ", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "prose prose-lg container mx-auto py-12", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_markdown.default, { className: "", children: data.content }) }) });
3799
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "container mx-auto ", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "prose prose-lg container mx-auto py-12", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_markdown.default, { children: data.content }) }) });
3773
3800
  };
3774
3801
 
3775
3802
  // src/index.tsx
@@ -3781,13 +3808,13 @@ init_StatsWidget();
3781
3808
  init_TestimonialListWidget();
3782
3809
 
3783
3810
  // src/components/Section/under-construction.tsx
3784
- var import_core26 = require("@geowiki/core");
3785
- var import_jsx_runtime68 = require("react/jsx-runtime");
3811
+ var import_core25 = require("@geowiki/core");
3812
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3786
3813
  var UnderConstruction = () => {
3787
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "container mx-auto min-h-screen px-4 py-16 sm:px-6 sm:py-24 md:grid md:place-items-center lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "max-w-max mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("main", { className: "sm:flex", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "sm:ml-6", children: [
3788
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "sm:border-l sm:border-gray-200 sm:pl-6", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("h1", { className: "text-4xl font-extrabold tracking-tight sm:text-5xl", children: "Page under construction" }) }),
3789
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mt-10 flex space-x-3 sm:border-l sm:border-transparent sm:pl-6", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3790
- import_core26.Link,
3814
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "container mx-auto min-h-screen px-4 py-16 sm:px-6 sm:py-24 md:grid md:place-items-center lg:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "max-w-max mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("main", { className: "sm:flex", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "sm:ml-6", children: [
3815
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "sm:border-l sm:border-gray-200 sm:pl-6", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h1", { className: "text-4xl font-extrabold tracking-tight sm:text-5xl", children: "Page under construction" }) }),
3816
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mt-10 flex space-x-3 sm:border-l sm:border-transparent sm:pl-6", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3817
+ import_core25.Link,
3791
3818
  {
3792
3819
  href: "/",
3793
3820
  className: "inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500",
@@ -3803,27 +3830,27 @@ init_UpdateUserInfoWidget();
3803
3830
  init_UserInfoWidget();
3804
3831
 
3805
3832
  // src/components/Section/Recodo/ClusterNewsStories.tsx
3806
- var import_core27 = require("@geowiki/core");
3833
+ var import_core26 = require("@geowiki/core");
3807
3834
  var import_ui58 = require("@geowiki/ui");
3835
+ var import_core27 = require("@geowiki/core");
3808
3836
  var import_core28 = require("@geowiki/core");
3809
- var import_core29 = require("@geowiki/core");
3810
- var import_jsx_runtime69 = require("react/jsx-runtime");
3837
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3811
3838
  var ArticleMeta = ({
3812
3839
  date,
3813
3840
  location,
3814
3841
  author
3815
- }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex gap-3 items-center", children: [
3816
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_ui58.Body16, { children: new Date(date).toDateString() }),
3817
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_ui58.Body16m, { children: location }),
3818
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_ui58.Body16m, { children: author })
3842
+ }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex gap-3 items-center", children: [
3843
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.Body16, { children: new Date(date).toDateString() }),
3844
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.Body16m, { children: location }),
3845
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.Body16m, { children: author })
3819
3846
  ] });
3820
- var Article = ({ meta, title, newsId }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("article", { className: "flex flex-col items-start self-stretch lg:px-5 my-auto font-medium max-md:mt-6 max-md:max-w-full", children: [
3821
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ArticleMeta, { ...meta }),
3822
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h1", { className: "self-stretch mt-4 text-2xl font-light leading-[130%] max-md:max-w-full lg:leading-10 lg:text-3xl lg:mt-6", children: title }),
3823
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex gap-2 mt-4 text-lg lg:mt-6", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_core28.Link, { href: `/news/farmer-cluster/${newsId}`, className: "text-primary", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_ui58.DesignButton, { variant: "internalLink", className: "h-auto p-0 lg:p-0 ", children: "Read full story" }) }) })
3847
+ var Article = ({ meta, title, newsId }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("article", { className: "flex flex-col items-start self-stretch lg:px-5 my-auto font-medium max-md:mt-6 max-md:max-w-full", children: [
3848
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ArticleMeta, { ...meta }),
3849
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("h1", { className: "self-stretch mt-4 text-2xl font-light leading-[130%] max-md:max-w-full lg:leading-10 lg:text-3xl lg:mt-6", children: title }),
3850
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex gap-2 mt-4 text-lg lg:mt-6", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_core27.Link, { href: `/news/farmer-cluster/${newsId}`, className: "text-primary", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.DesignButton, { variant: "internalLink", className: "h-auto p-0 lg:p-0 ", children: "Read full story" }) }) })
3824
3851
  ] });
3825
3852
  var ClusterNewsStories = ({}) => {
3826
- const router = (0, import_core29.useRouter)();
3853
+ const router = (0, import_core28.useRouter)();
3827
3854
  var page = parseInt(router.query.page) || 1;
3828
3855
  var pageSize = 9;
3829
3856
  var skip = (page - 1) * pageSize + 1;
@@ -3831,15 +3858,15 @@ var ClusterNewsStories = ({}) => {
3831
3858
  skip = 1;
3832
3859
  }
3833
3860
  var take = pageSize;
3834
- const { data: clusterNews, isLoading } = (0, import_core27.useNewsFromAllClusters)(skip, take);
3835
- const { data: featuredNews, isLoading: isFeaturedLoading } = (0, import_core27.useNewsFromAllClusters)(0, 1);
3861
+ const { data: clusterNews, isLoading } = (0, import_core26.useNewsFromAllClusters)(skip, take);
3862
+ const { data: featuredNews, isLoading: isFeaturedLoading } = (0, import_core26.useNewsFromAllClusters)(0, 1);
3836
3863
  var firstNews = featuredNews?.items?.[0];
3837
3864
  if (isFeaturedLoading || isLoading) {
3838
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_ui58.LoaderFull, {});
3865
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.LoaderFull, {});
3839
3866
  }
3840
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "lg:container mx-auto", children: [
3841
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex gap-5 max-md:flex-col max-md:gap-0", children: [
3842
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex flex-col w-6/12 max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3867
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "lg:container mx-auto", children: [
3868
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex gap-5 max-md:flex-col max-md:gap-0", children: [
3869
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex flex-col w-6/12 max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3843
3870
  Article,
3844
3871
  {
3845
3872
  meta: {
@@ -3851,7 +3878,7 @@ var ClusterNewsStories = ({}) => {
3851
3878
  newsId: firstNews?.id
3852
3879
  }
3853
3880
  ) }),
3854
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex flex-col ml-5 w-6/12 max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3881
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex flex-col ml-5 w-6/12 max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3855
3882
  import_ui58.ApiImage,
3856
3883
  {
3857
3884
  imageId: firstNews?.imageId,
@@ -3859,7 +3886,7 @@ var ClusterNewsStories = ({}) => {
3859
3886
  }
3860
3887
  ) })
3861
3888
  ] }),
3862
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "grid grid-flow-row gap-5 lg:grid-cols-3 py-11 lg:pt-20 lg:pb-24", children: clusterNews?.items?.map((news) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3889
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "grid grid-flow-row gap-5 lg:grid-cols-3 py-11 lg:pt-20 lg:pb-24", children: clusterNews?.items?.map((news) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3863
3890
  import_ui58.ClusterNewsItem,
3864
3891
  {
3865
3892
  id: news.id,
@@ -3872,12 +3899,12 @@ var ClusterNewsStories = ({}) => {
3872
3899
  },
3873
3900
  news.id
3874
3901
  ) }, news.id)) }),
3875
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_ui58.RoutePagination, { pageSize, total: clusterNews?.totalCount }) })
3902
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.RoutePagination, { pageSize, total: clusterNews?.totalCount }) })
3876
3903
  ] });
3877
3904
  };
3878
3905
 
3879
3906
  // src/index.tsx
3880
- __reExport(src_exports, require("@geowiki/core/src/hooks/useMapMenuItems"), module.exports);
3907
+ __reExport(index_exports, require("@geowiki/core/src/hooks/useMapMenuItems"), module.exports);
3881
3908
  // Annotate the CommonJS export names for ESM import in node:
3882
3909
  0 && (module.exports = {
3883
3910
  AppsList,
@@ -3918,5 +3945,6 @@ __reExport(src_exports, require("@geowiki/core/src/hooks/useMapMenuItems"), modu
3918
3945
  UnderConstruction,
3919
3946
  UpdateUserInfoWidget,
3920
3947
  UserInfoWidget,
3948
+ WidgetErrorBoundary,
3921
3949
  ...require("@geowiki/core/src/hooks/useMapMenuItems")
3922
3950
  });