@geowiki/cms 0.16.9-dev.2 → 0.16.9-dev.21
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/{ContainerWidget-4DBHV3S2.mjs → ContainerWidget-2BACKOXO.mjs} +2 -2
- package/dist/{EntityListWidget-JC6UCIP5.mjs → EntityListWidget-6N4AXYWX.mjs} +1 -1
- package/dist/{H2BodyInternalLinkMapWidget-6FKP4AHO.mjs → H2BodyInternalLinkMapWidget-6VQYSAGG.mjs} +3 -3
- package/dist/{HeroMap-DJ7NARO3.mjs → HeroMap-RMHVOY4J.mjs} +8 -55
- package/dist/{LanguagesWidget-R7UBNG42.mjs → LanguagesWidget-IFTHJUIS.mjs} +1 -1
- package/dist/{MapHeroWidget-WEVKITG5.mjs → MapHeroWidget-I5SP4J5M.mjs} +1 -1
- package/dist/{NewsFeedWidget-4W7T4H2P.mjs → NewsFeedWidget-BQTZYA6U.mjs} +1 -1
- package/dist/{QuestMapClient-B6LGGSGT.mjs → QuestMapClient-5IEELSN6.mjs} +1 -2
- package/dist/{QuestMapWidget-5JIFDDUO.mjs → QuestMapWidget-5234C7VP.mjs} +2 -2
- package/dist/{SubtitleH3BodyInternalLinkListWidget-KFP3TIKE.mjs → SubtitleH3BodyInternalLinkListWidget-CWKRJY4Z.mjs} +1 -1
- package/dist/{VideoWidget-YRR7FCDN.mjs → VideoWidget-E72DF4FB.mjs} +1 -1
- package/dist/{chunk-QLNZQFXF.mjs → chunk-NBYNXJSG.mjs} +41 -14
- package/dist/{chunk-4AG2CMM3.mjs → chunk-PTPZAQH2.mjs} +1 -2
- package/dist/{chunk-YGKPOYG6.mjs → chunk-X4SKRX2N.mjs} +1 -1
- package/dist/{chunk-VTIR7GUQ.mjs → chunk-ZX5FKJYJ.mjs} +2 -2
- package/dist/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +358 -372
- package/dist/index.mjs +12 -10
- package/dist/styles.css +1 -1
- package/package.json +29 -28
package/dist/index.js
CHANGED
|
@@ -36,17 +36,17 @@ var NewsFeedWidget_exports = {};
|
|
|
36
36
|
__export(NewsFeedWidget_exports, {
|
|
37
37
|
default: () => NewsFeedWidget_default
|
|
38
38
|
});
|
|
39
|
-
var import_core, import_ui,
|
|
39
|
+
var import_core, import_ui, import_core2, import_react, import_jsx_runtime, NewsFeedWidget, NewsFeedWidget_default;
|
|
40
40
|
var init_NewsFeedWidget = __esm({
|
|
41
41
|
"src/components/Section/NewsFeedWidget.tsx"() {
|
|
42
42
|
"use strict";
|
|
43
43
|
import_core = require("@geowiki/core");
|
|
44
44
|
import_ui = require("@geowiki/ui");
|
|
45
|
-
|
|
45
|
+
import_core2 = require("@geowiki/core");
|
|
46
46
|
import_react = require("react");
|
|
47
47
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
48
48
|
NewsFeedWidget = () => {
|
|
49
|
-
const router = (0,
|
|
49
|
+
const router = (0, import_core2.useRouter)();
|
|
50
50
|
var lang = router.query.lang || "all";
|
|
51
51
|
var [skip, _setSkip] = (0, import_react.useState)(0);
|
|
52
52
|
var [take, _setTake] = (0, import_react.useState)(32);
|
|
@@ -102,26 +102,26 @@ var ContactWidget_exports = {};
|
|
|
102
102
|
__export(ContactWidget_exports, {
|
|
103
103
|
ContactWidget: () => ContactWidget
|
|
104
104
|
});
|
|
105
|
-
var import_api_proxy,
|
|
105
|
+
var import_api_proxy, import_core3, import_react_hook_form, import_react_toastify, import_jsx_runtime4, ContactWidget;
|
|
106
106
|
var init_ContactWidget = __esm({
|
|
107
107
|
"src/components/Section/ContactWidget.tsx"() {
|
|
108
108
|
"use strict";
|
|
109
109
|
"use client";
|
|
110
110
|
import_api_proxy = require("@geowiki/api-proxy");
|
|
111
|
-
|
|
111
|
+
import_core3 = require("@geowiki/core");
|
|
112
112
|
import_react_hook_form = require("react-hook-form");
|
|
113
113
|
import_react_toastify = require("react-toastify");
|
|
114
114
|
import_jsx_runtime4 = require("react/jsx-runtime");
|
|
115
115
|
ContactWidget = ({ data }) => {
|
|
116
|
-
const { data: hosts } = (0,
|
|
116
|
+
const { data: hosts } = (0, import_core3.useHosts)();
|
|
117
117
|
const {
|
|
118
118
|
register,
|
|
119
119
|
handleSubmit,
|
|
120
120
|
formState: { errors }
|
|
121
121
|
} = (0, import_react_hook_form.useForm)();
|
|
122
122
|
const onSubmit = async (formData) => {
|
|
123
|
-
var tenantInfo =
|
|
124
|
-
var tenantName =
|
|
123
|
+
var tenantInfo = import_core3.HostService.getCurrentHostInfo(hosts || []);
|
|
124
|
+
var tenantName = import_core3.HostService.getTenantName(tenantInfo);
|
|
125
125
|
var subjectPrefix = "";
|
|
126
126
|
if (tenantName) {
|
|
127
127
|
subjectPrefix = tenantName + " - ";
|
|
@@ -276,23 +276,23 @@ var CardGridWidget_exports = {};
|
|
|
276
276
|
__export(CardGridWidget_exports, {
|
|
277
277
|
CardGridWidget: () => CardGridWidget
|
|
278
278
|
});
|
|
279
|
-
var
|
|
279
|
+
var import_core4, import_core5, import_ui2, import_jsx_runtime5, CardGridWidget;
|
|
280
280
|
var init_CardGridWidget = __esm({
|
|
281
281
|
"src/components/Section/CardGridWidget.tsx"() {
|
|
282
282
|
"use strict";
|
|
283
283
|
"use client";
|
|
284
|
-
import_core3 = require("@geowiki/core");
|
|
285
284
|
import_core4 = require("@geowiki/core");
|
|
285
|
+
import_core5 = require("@geowiki/core");
|
|
286
286
|
import_ui2 = require("@geowiki/ui");
|
|
287
287
|
import_jsx_runtime5 = require("react/jsx-runtime");
|
|
288
288
|
CardGridWidget = ({ data, cmsUrl }) => {
|
|
289
|
-
cmsUrl = cmsUrl === void 0 ?
|
|
289
|
+
cmsUrl = cmsUrl === void 0 ? import_core5.settingsStore.getState().settings?.generalSettings.GeoWikiSettings?.Host?.Text : cmsUrl;
|
|
290
290
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "container mx-auto sm:w-2/3 items-center p-8 bg-base-300 ", children: [
|
|
291
291
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h3", { className: "text-3xl py-2 font-bold", children: data.TitlePart?.Title }),
|
|
292
292
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "divide-y divide-base-300 overflow-hidden rounded-lg bg-base-300 sm:grid sm:grid-cols-2 sm:gap-px sm:divide-y-0", children: data.BagPart?.ContentItems?.map((contentItemDto, actionIdx) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
293
293
|
"div",
|
|
294
294
|
{
|
|
295
|
-
className: (0,
|
|
295
|
+
className: (0, import_core4.classNames)(
|
|
296
296
|
actionIdx === 0 ? "rounded-tl-lg sm:rounded-tr-none" : "",
|
|
297
297
|
actionIdx === 1 ? "sm:rounded-tr-lg" : "",
|
|
298
298
|
"relative group p-6 focus-within:ring-2 focus-within:ring-inset focus-within:ring-primary-900 hover:border-neutral-focus"
|
|
@@ -458,30 +458,29 @@ var EntityListWidget_exports = {};
|
|
|
458
458
|
__export(EntityListWidget_exports, {
|
|
459
459
|
EntityListWidget: () => EntityListWidget
|
|
460
460
|
});
|
|
461
|
-
var import_react2,
|
|
461
|
+
var import_react2, import_core6, import_ui3, import_ui4, import_core7, import_core8, import_jsx_runtime9, EntityListWidget;
|
|
462
462
|
var init_EntityListWidget = __esm({
|
|
463
463
|
"src/components/Section/EntityListWidget.tsx"() {
|
|
464
464
|
"use strict";
|
|
465
465
|
"use client";
|
|
466
466
|
import_react2 = require("react");
|
|
467
|
-
|
|
467
|
+
import_core6 = require("@geowiki/core");
|
|
468
468
|
import_ui3 = require("@geowiki/ui");
|
|
469
469
|
import_ui4 = require("@geowiki/ui");
|
|
470
|
-
import_core6 = require("@geowiki/core");
|
|
471
470
|
import_core7 = require("@geowiki/core");
|
|
471
|
+
import_core8 = require("@geowiki/core");
|
|
472
472
|
import_jsx_runtime9 = require("react/jsx-runtime");
|
|
473
473
|
EntityListWidget = ({ data }) => {
|
|
474
|
-
const { data: appData } = (0,
|
|
474
|
+
const { data: appData } = (0, import_core8.useAppConfig)();
|
|
475
475
|
const NumberOfEntity = data?.EntityList?.NumberofEntity?.Value === null || data?.EntityList?.NumberofEntity?.Value === void 0 ? 4 : data?.EntityList?.NumberofEntity?.Value;
|
|
476
476
|
const [Skip, setSkip] = (0, import_react2.useState)(0);
|
|
477
|
-
const fileUrl = (0,
|
|
478
|
-
const { data: clusterNews, isLoading } = (0,
|
|
477
|
+
const fileUrl = (0, import_core7.useFileUrl)();
|
|
478
|
+
const { data: clusterNews, isLoading } = (0, import_core6.useAllNewsFromAllClusters)(
|
|
479
479
|
"CreationTime",
|
|
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
|
|
@@ -972,16 +971,16 @@ var CardWidget_exports = {};
|
|
|
972
971
|
__export(CardWidget_exports, {
|
|
973
972
|
CardWidget: () => CardWidget
|
|
974
973
|
});
|
|
975
|
-
var import_ui12,
|
|
974
|
+
var import_ui12, import_core9, import_jsx_runtime20, CardWidget;
|
|
976
975
|
var init_CardWidget = __esm({
|
|
977
976
|
"src/components/Section/CardWidget.tsx"() {
|
|
978
977
|
"use strict";
|
|
979
978
|
"use client";
|
|
980
979
|
import_ui12 = require("@geowiki/ui");
|
|
981
|
-
|
|
980
|
+
import_core9 = require("@geowiki/core");
|
|
982
981
|
import_jsx_runtime20 = require("react/jsx-runtime");
|
|
983
982
|
CardWidget = ({ data, cmsUrl }) => {
|
|
984
|
-
cmsUrl = (0,
|
|
983
|
+
cmsUrl = (0, import_core9.useCmsUrl)();
|
|
985
984
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "container mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "px-4 py-16 mx-auto sm:max-w-xl md:max-w-full lg:max-w-screen-xl md:px-24 lg:px-8 lg:py-20", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col max-w-screen-lg overflow-hidden border rounded shadow-sm lg:flex-row sm:mx-auto", children: [
|
|
986
985
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
987
986
|
import_ui12.CmsImage,
|
|
@@ -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,
|
|
1113
|
+
var import_ui16, import_react3, import_api_proxy2, import_core10, import_ui17, import_jsx_runtime23, NewsLetterWidget;
|
|
1115
1114
|
var init_NewsLetterWidget = __esm({
|
|
1116
1115
|
"src/components/Section/NewsLetterWidget.tsx"() {
|
|
1117
1116
|
"use strict";
|
|
@@ -1119,12 +1118,12 @@ 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
|
-
|
|
1121
|
+
import_core10 = require("@geowiki/core");
|
|
1123
1122
|
import_ui17 = require("@geowiki/ui");
|
|
1124
1123
|
import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1125
1124
|
NewsLetterWidget = ({ data }) => {
|
|
1126
1125
|
const { toast: toast2 } = (0, import_ui17.useToast)();
|
|
1127
|
-
var brandName =
|
|
1126
|
+
var brandName = import_core10.settingsStore.getState().settings?.generalSettings.GeoWikiSettings?.BrandName?.Text;
|
|
1128
1127
|
const [loading, setLoading] = (0, import_react3.useState)(false);
|
|
1129
1128
|
const [isAccepted, setIsAccepted] = (0, import_react3.useState)(false);
|
|
1130
1129
|
const [email, setEmail] = (0, import_react3.useState)("");
|
|
@@ -1273,52 +1272,9 @@ var init_StatsWidget = __esm({
|
|
|
1273
1272
|
}
|
|
1274
1273
|
});
|
|
1275
1274
|
|
|
1276
|
-
// src/components/ClusterMap/MarkerClusterGroup.tsx
|
|
1277
|
-
function getPropsAndEvents(props) {
|
|
1278
|
-
let clusterProps = {};
|
|
1279
|
-
let clusterEvents = {};
|
|
1280
|
-
const { children, ...rest } = props;
|
|
1281
|
-
Object.entries(rest).forEach(([propName, prop]) => {
|
|
1282
|
-
if (propName.startsWith("on")) {
|
|
1283
|
-
clusterEvents = { ...clusterEvents, [propName]: prop };
|
|
1284
|
-
} else {
|
|
1285
|
-
clusterProps = { ...clusterProps, [propName]: prop };
|
|
1286
|
-
}
|
|
1287
|
-
});
|
|
1288
|
-
return { clusterProps, clusterEvents };
|
|
1289
|
-
}
|
|
1290
|
-
function createMarkerClusterGroup(props, context) {
|
|
1291
|
-
const { clusterProps, clusterEvents } = getPropsAndEvents(props);
|
|
1292
|
-
const markerClusterGroup = new L.MarkerClusterGroup(clusterProps);
|
|
1293
|
-
Object.entries(clusterEvents).forEach(([eventAsProp, callback]) => {
|
|
1294
|
-
const clusterEvent = `cluster${eventAsProp.substring(2).toLowerCase()}`;
|
|
1295
|
-
markerClusterGroup.on(clusterEvent, callback);
|
|
1296
|
-
});
|
|
1297
|
-
return (0, import_core10.createElementObject)(
|
|
1298
|
-
markerClusterGroup,
|
|
1299
|
-
(0, import_core10.extendContext)(context, { layerContainer: markerClusterGroup })
|
|
1300
|
-
);
|
|
1301
|
-
}
|
|
1302
|
-
var import_core10, L, import_leaflet, updateMarkerCluster, MarkerClusterGroup2;
|
|
1303
|
-
var init_MarkerClusterGroup = __esm({
|
|
1304
|
-
"src/components/ClusterMap/MarkerClusterGroup.tsx"() {
|
|
1305
|
-
"use strict";
|
|
1306
|
-
"use client";
|
|
1307
|
-
import_core10 = require("@react-leaflet/core");
|
|
1308
|
-
L = __toESM(require("leaflet"));
|
|
1309
|
-
import_leaflet = require("leaflet.markercluster");
|
|
1310
|
-
updateMarkerCluster = () => {
|
|
1311
|
-
};
|
|
1312
|
-
MarkerClusterGroup2 = (0, import_core10.createPathComponent)(
|
|
1313
|
-
createMarkerClusterGroup,
|
|
1314
|
-
updateMarkerCluster
|
|
1315
|
-
);
|
|
1316
|
-
}
|
|
1317
|
-
});
|
|
1318
|
-
|
|
1319
1275
|
// src/components/ClusterMap/cluster-markers.tsx
|
|
1320
1276
|
function getIcon(color, name) {
|
|
1321
|
-
const myIcon =
|
|
1277
|
+
const myIcon = import_ui18.IconPaths.find((icon) => icon.name === name);
|
|
1322
1278
|
if (myIcon) {
|
|
1323
1279
|
return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(myIcon.icon, {}));
|
|
1324
1280
|
} else {
|
|
@@ -1326,21 +1282,20 @@ function getIcon(color, name) {
|
|
|
1326
1282
|
return (0, import_server.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(MyIcon, { height: 40, width: 40, color }));
|
|
1327
1283
|
}
|
|
1328
1284
|
}
|
|
1329
|
-
var
|
|
1285
|
+
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;
|
|
1330
1286
|
var init_cluster_markers = __esm({
|
|
1331
1287
|
"src/components/ClusterMap/cluster-markers.tsx"() {
|
|
1332
1288
|
"use strict";
|
|
1333
1289
|
"use client";
|
|
1334
|
-
|
|
1290
|
+
import_leaflet = require("leaflet");
|
|
1335
1291
|
import_react_leaflet = require("react-leaflet");
|
|
1336
1292
|
import_core11 = require("@geowiki/core");
|
|
1337
1293
|
import_ui18 = require("@geowiki/ui");
|
|
1338
|
-
|
|
1294
|
+
import_map = require("@geowiki/map");
|
|
1339
1295
|
import_core12 = require("@geowiki/core");
|
|
1340
1296
|
import_MapPinIcon = __toESM(require("@heroicons/react/24/solid/MapPinIcon"));
|
|
1341
1297
|
import_server = require("react-dom/server");
|
|
1342
1298
|
import_core13 = require("@geowiki/core");
|
|
1343
|
-
import_ui19 = require("@geowiki/ui");
|
|
1344
1299
|
import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1345
1300
|
createClusterIcon = (color) => {
|
|
1346
1301
|
return (cluster) => {
|
|
@@ -1352,14 +1307,11 @@ var init_cluster_markers = __esm({
|
|
|
1352
1307
|
};
|
|
1353
1308
|
markers.forEach((marker) => {
|
|
1354
1309
|
const status = marker.feature?.properties?.Status?.trim().toLowerCase() || "default";
|
|
1355
|
-
if (status === "ongoing")
|
|
1356
|
-
|
|
1357
|
-
else
|
|
1358
|
-
statusCount.auxiliary++;
|
|
1359
|
-
else
|
|
1360
|
-
statusCount.default++;
|
|
1310
|
+
if (status === "ongoing") statusCount.ongoing++;
|
|
1311
|
+
else if (status === "auxiliary") statusCount.auxiliary++;
|
|
1312
|
+
else statusCount.default++;
|
|
1361
1313
|
});
|
|
1362
|
-
return (0,
|
|
1314
|
+
return (0, import_leaflet.divIcon)({
|
|
1363
1315
|
html: `<div style=
|
|
1364
1316
|
"background-color: ${color};
|
|
1365
1317
|
width: 36px;
|
|
@@ -1383,24 +1335,22 @@ var init_cluster_markers = __esm({
|
|
|
1383
1335
|
const { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = (0, import_core13.useConfigSettings)();
|
|
1384
1336
|
const { data, error, isLoading } = (0, import_core11.useClusterMapInfo)();
|
|
1385
1337
|
const fileUrl = (0, import_core12.useFileUrl)();
|
|
1386
|
-
if (error)
|
|
1387
|
-
|
|
1388
|
-
if (isLoading || IsConfigSettingsLoaded)
|
|
1389
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_ui18.LoaderFull, {});
|
|
1338
|
+
if (error) return null;
|
|
1339
|
+
if (isLoading || IsConfigSettingsLoaded) return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_ui18.LoaderFull, {});
|
|
1390
1340
|
if (ConfigSettings?.ConfigSettings?.FeaturesFarmerCluster?.Text) {
|
|
1391
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1341
|
+
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)(
|
|
1392
1342
|
import_react_leaflet.Marker,
|
|
1393
1343
|
{
|
|
1394
|
-
icon: new
|
|
1344
|
+
icon: new import_leaflet.DivIcon({
|
|
1395
1345
|
iconSize: [40, 40],
|
|
1396
1346
|
html: `${getIcon("#9999CC", "Farmer Clusters")}`,
|
|
1397
1347
|
className: "custom-div-icon",
|
|
1398
1348
|
iconAnchor: [20, 40]
|
|
1399
1349
|
}),
|
|
1400
|
-
position: cluster.location ? new
|
|
1350
|
+
position: cluster.location ? new import_leaflet.LatLng(
|
|
1401
1351
|
cluster?.location?.latitude,
|
|
1402
1352
|
cluster?.location?.longitude
|
|
1403
|
-
) : new
|
|
1353
|
+
) : new import_leaflet.LatLng(0, 0),
|
|
1404
1354
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_leaflet.Popup, { maxWidth: 600, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "bg-white text-black rounded-3xl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1405
1355
|
import_ui18.DesignFarmerClusterPin,
|
|
1406
1356
|
{
|
|
@@ -1427,12 +1377,12 @@ var HeroMap_exports = {};
|
|
|
1427
1377
|
__export(HeroMap_exports, {
|
|
1428
1378
|
HeroMap: () => HeroMap
|
|
1429
1379
|
});
|
|
1430
|
-
var import_react_leaflet2,
|
|
1380
|
+
var import_react_leaflet2, import_leaflet2, import_jsx_runtime26, HeroMap;
|
|
1431
1381
|
var init_HeroMap = __esm({
|
|
1432
1382
|
"src/components/ClusterMap/HeroMap.tsx"() {
|
|
1433
1383
|
"use strict";
|
|
1434
1384
|
import_react_leaflet2 = require("react-leaflet");
|
|
1435
|
-
|
|
1385
|
+
import_leaflet2 = require("leaflet/dist/leaflet.css");
|
|
1436
1386
|
init_cluster_markers();
|
|
1437
1387
|
import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1438
1388
|
HeroMap = () => {
|
|
@@ -1457,15 +1407,15 @@ var MapHeroWidget_exports = {};
|
|
|
1457
1407
|
__export(MapHeroWidget_exports, {
|
|
1458
1408
|
MapHeroWidget: () => MapHeroWidget
|
|
1459
1409
|
});
|
|
1460
|
-
var
|
|
1410
|
+
var import_core14, import_react4, import_jsx_runtime27, MapWithNoSSR, MapHeroWidget;
|
|
1461
1411
|
var init_MapHeroWidget = __esm({
|
|
1462
1412
|
"src/components/Section/MapHeroWidget.tsx"() {
|
|
1463
1413
|
"use strict";
|
|
1464
1414
|
"use client";
|
|
1465
|
-
|
|
1415
|
+
import_core14 = require("@geowiki/core");
|
|
1466
1416
|
import_react4 = require("react");
|
|
1467
1417
|
import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1468
|
-
MapWithNoSSR = (0,
|
|
1418
|
+
MapWithNoSSR = (0, import_core14.dynamic)(
|
|
1469
1419
|
() => Promise.resolve().then(() => (init_HeroMap(), HeroMap_exports)).then((x) => x.HeroMap),
|
|
1470
1420
|
{
|
|
1471
1421
|
ssr: false
|
|
@@ -1493,21 +1443,21 @@ var HeroCenterTextWidget_exports = {};
|
|
|
1493
1443
|
__export(HeroCenterTextWidget_exports, {
|
|
1494
1444
|
HeroCenterTextWidget: () => HeroCenterTextWidget
|
|
1495
1445
|
});
|
|
1496
|
-
var
|
|
1446
|
+
var import_ui19, import_jsx_runtime28, HeroCenterTextWidget;
|
|
1497
1447
|
var init_HeroCenterTextWidget = __esm({
|
|
1498
1448
|
"src/components/Section/HeroCenterTextWidget.tsx"() {
|
|
1499
1449
|
"use strict";
|
|
1500
1450
|
"use client";
|
|
1501
|
-
|
|
1451
|
+
import_ui19 = require("@geowiki/ui");
|
|
1502
1452
|
import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1503
1453
|
HeroCenterTextWidget = ({ data }) => {
|
|
1504
1454
|
var paths = data?.HeroCenterText?.Image?.Paths;
|
|
1505
1455
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "grid pt-8", children: [
|
|
1506
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "w-full bg-center bg-cover hero-geo-wiki rounded-xl overflow-hidden col-start-1 row-start-1", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1456
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "w-full bg-center bg-cover hero-geo-wiki rounded-xl overflow-hidden col-start-1 row-start-1", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_ui19.CmsImage, { src: paths[0] }) }),
|
|
1507
1457
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "col-start-1 row-start-1 z-10 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "text-center bg-opacity-60 p-8 bg-gray-600 text-white", children: [
|
|
1508
1458
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h1", { className: "text-4xl font-bold mt-2 sm:mt-0 mb-4 sm:mb-2", children: data.HeroCenterText?.MainText?.Text }),
|
|
1509
1459
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-xl mb-6", children: data.HeroCenterText?.SubText?.Text }),
|
|
1510
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-row flex-wrap gap-4 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1460
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-row flex-wrap gap-4 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_ui19.ButtonList, { data: data?.Buttons?.ContentItems }) })
|
|
1511
1461
|
] }) })
|
|
1512
1462
|
] });
|
|
1513
1463
|
};
|
|
@@ -1519,16 +1469,16 @@ var html_section_exports = {};
|
|
|
1519
1469
|
__export(html_section_exports, {
|
|
1520
1470
|
HtmlSection: () => HtmlSection
|
|
1521
1471
|
});
|
|
1522
|
-
var
|
|
1472
|
+
var import_ui20, import_jsx_runtime29, HtmlSection;
|
|
1523
1473
|
var init_html_section = __esm({
|
|
1524
1474
|
"src/components/Section/html-section.tsx"() {
|
|
1525
1475
|
"use strict";
|
|
1526
1476
|
"use client";
|
|
1527
|
-
|
|
1477
|
+
import_ui20 = require("@geowiki/ui");
|
|
1528
1478
|
import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1529
1479
|
HtmlSection = ({ data }) => {
|
|
1530
1480
|
const { HtmlBodyPart } = data;
|
|
1531
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "lg:container mx-auto pt-4 lg:pt-0", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "max-w-screen-2xl prose prose-xl", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "lg:container mx-auto pt-4 lg:pt-0", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "max-w-screen-2xl prose prose-xl", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_ui20.HtmlView, { html: HtmlBodyPart.Html }) }) });
|
|
1532
1482
|
};
|
|
1533
1483
|
}
|
|
1534
1484
|
});
|
|
@@ -1580,30 +1530,30 @@ var HeroWidget_exports = {};
|
|
|
1580
1530
|
__export(HeroWidget_exports, {
|
|
1581
1531
|
HeroWidget: () => HeroWidget
|
|
1582
1532
|
});
|
|
1583
|
-
var import_ui22, import_ui23, import_ui24, import_ui25, import_ui26,
|
|
1533
|
+
var import_ui21, import_ui22, import_ui23, import_ui24, import_ui25, import_ui26, import_core15, import_ui27, import_ui28, import_jsx_runtime32, HeroWidget;
|
|
1584
1534
|
var init_HeroWidget = __esm({
|
|
1585
1535
|
"src/components/Section/HeroWidget.tsx"() {
|
|
1586
1536
|
"use strict";
|
|
1587
1537
|
"use client";
|
|
1538
|
+
import_ui21 = require("@geowiki/ui");
|
|
1588
1539
|
import_ui22 = require("@geowiki/ui");
|
|
1589
1540
|
import_ui23 = require("@geowiki/ui");
|
|
1590
1541
|
import_ui24 = require("@geowiki/ui");
|
|
1591
1542
|
import_ui25 = require("@geowiki/ui");
|
|
1592
1543
|
import_ui26 = require("@geowiki/ui");
|
|
1544
|
+
import_core15 = require("@geowiki/core");
|
|
1593
1545
|
import_ui27 = require("@geowiki/ui");
|
|
1594
|
-
import_core14 = require("@geowiki/core");
|
|
1595
1546
|
import_ui28 = require("@geowiki/ui");
|
|
1596
|
-
import_ui29 = require("@geowiki/ui");
|
|
1597
1547
|
import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1598
1548
|
HeroWidget = ({ data }) => {
|
|
1599
1549
|
const type = data?.Hero?.Type?.Text;
|
|
1600
|
-
var cmsUrl = (0,
|
|
1550
|
+
var cmsUrl = (0, import_core15.useCmsUrl)();
|
|
1601
1551
|
switch (type) {
|
|
1602
1552
|
case "image":
|
|
1603
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_ui21.HeroImage, { path: data?.Hero?.Images?.Paths[0], cmsUrl });
|
|
1604
1554
|
case "withMultipleImages":
|
|
1605
1555
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1606
|
-
|
|
1556
|
+
import_ui25.HeroWithMultipleImage,
|
|
1607
1557
|
{
|
|
1608
1558
|
paths: data?.Hero?.Images?.Paths,
|
|
1609
1559
|
contentItemId: data.ContentItemId,
|
|
@@ -1615,7 +1565,7 @@ var init_HeroWidget = __esm({
|
|
|
1615
1565
|
);
|
|
1616
1566
|
case "withThreeImages":
|
|
1617
1567
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1618
|
-
|
|
1568
|
+
import_ui26.HeroWithThreeImage,
|
|
1619
1569
|
{
|
|
1620
1570
|
paths: data?.Hero?.Images?.Paths,
|
|
1621
1571
|
title: data?.Hero?.Title?.Text,
|
|
@@ -1626,7 +1576,7 @@ var init_HeroWidget = __esm({
|
|
|
1626
1576
|
);
|
|
1627
1577
|
case "withCenterText":
|
|
1628
1578
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1629
|
-
|
|
1579
|
+
import_ui23.HeroWithCenterText,
|
|
1630
1580
|
{
|
|
1631
1581
|
paths: data?.Hero?.Images?.Paths,
|
|
1632
1582
|
title: data.Hero?.Title?.Text,
|
|
@@ -1637,7 +1587,7 @@ var init_HeroWidget = __esm({
|
|
|
1637
1587
|
);
|
|
1638
1588
|
case "withMap":
|
|
1639
1589
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1640
|
-
|
|
1590
|
+
import_ui24.HeroWithMap,
|
|
1641
1591
|
{
|
|
1642
1592
|
title: data.Hero?.Title?.Text,
|
|
1643
1593
|
description: data.Hero?.Description?.Text,
|
|
@@ -1646,7 +1596,7 @@ var init_HeroWidget = __esm({
|
|
|
1646
1596
|
);
|
|
1647
1597
|
case "withImageLeft":
|
|
1648
1598
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1649
|
-
|
|
1599
|
+
import_ui27.HeroImageLeft,
|
|
1650
1600
|
{
|
|
1651
1601
|
logoPath: data?.Hero?.Logo?.Paths[0],
|
|
1652
1602
|
path: data?.Hero?.Images?.Paths[0],
|
|
@@ -1655,7 +1605,7 @@ var init_HeroWidget = __esm({
|
|
|
1655
1605
|
);
|
|
1656
1606
|
case "withImageRight":
|
|
1657
1607
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1658
|
-
|
|
1608
|
+
import_ui27.HeroImageRight,
|
|
1659
1609
|
{
|
|
1660
1610
|
path: data?.Hero?.Images?.Paths[0],
|
|
1661
1611
|
title: data.Hero?.Title?.Text,
|
|
@@ -1664,7 +1614,7 @@ var init_HeroWidget = __esm({
|
|
|
1664
1614
|
);
|
|
1665
1615
|
case "mobileDevice":
|
|
1666
1616
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1667
|
-
|
|
1617
|
+
import_ui28.HeroWidgetMobileDevice,
|
|
1668
1618
|
{
|
|
1669
1619
|
version: data.Hero?.LayoutVersion.Value ?? 1,
|
|
1670
1620
|
title: data.Hero?.Title?.Text,
|
|
@@ -1680,7 +1630,7 @@ var init_HeroWidget = __esm({
|
|
|
1680
1630
|
);
|
|
1681
1631
|
default:
|
|
1682
1632
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1683
|
-
|
|
1633
|
+
import_ui22.HeroWidgetOld,
|
|
1684
1634
|
{
|
|
1685
1635
|
paths: data?.HeroWidget.Images?.Paths,
|
|
1686
1636
|
contentItemId: data.ContentItemId,
|
|
@@ -1700,11 +1650,11 @@ var HeadingTextWidget_exports = {};
|
|
|
1700
1650
|
__export(HeadingTextWidget_exports, {
|
|
1701
1651
|
HeadingTextWidget: () => HeadingTextWidget
|
|
1702
1652
|
});
|
|
1703
|
-
var
|
|
1653
|
+
var import_ui29, import_jsx_runtime33, HeadingTextWidget;
|
|
1704
1654
|
var init_HeadingTextWidget = __esm({
|
|
1705
1655
|
"src/components/Section/HeadingTextWidget.tsx"() {
|
|
1706
1656
|
"use strict";
|
|
1707
|
-
|
|
1657
|
+
import_ui29 = require("@geowiki/ui");
|
|
1708
1658
|
import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1709
1659
|
HeadingTextWidget = ({ data }) => {
|
|
1710
1660
|
var type = data.HeadingText.Type.Values[0];
|
|
@@ -1715,7 +1665,7 @@ var init_HeadingTextWidget = __esm({
|
|
|
1715
1665
|
};
|
|
1716
1666
|
if (type === "H1BodyButton") {
|
|
1717
1667
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1718
|
-
|
|
1668
|
+
import_ui29.H1BodyButton,
|
|
1719
1669
|
{
|
|
1720
1670
|
title: data.TitlePart.Title,
|
|
1721
1671
|
textBody: data.HeadingText.TextBody.Html,
|
|
@@ -1725,7 +1675,7 @@ var init_HeadingTextWidget = __esm({
|
|
|
1725
1675
|
}
|
|
1726
1676
|
if (type === "H2BodyButton") {
|
|
1727
1677
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1728
|
-
|
|
1678
|
+
import_ui29.H2BodyButton,
|
|
1729
1679
|
{
|
|
1730
1680
|
tag: data.HeadingText.Tag.Text,
|
|
1731
1681
|
textBody: data.HeadingText.TextBody.Html,
|
|
@@ -1737,7 +1687,7 @@ var init_HeadingTextWidget = __esm({
|
|
|
1737
1687
|
}
|
|
1738
1688
|
if (type === "LandingTitleBodyButton") {
|
|
1739
1689
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1740
|
-
|
|
1690
|
+
import_ui29.LandingTitleBodyButton,
|
|
1741
1691
|
{
|
|
1742
1692
|
textBody: data.HeadingText.TextBody.Text,
|
|
1743
1693
|
button: buttonProps,
|
|
@@ -1772,15 +1722,15 @@ var NewfeedPreviewWidget_exports = {};
|
|
|
1772
1722
|
__export(NewfeedPreviewWidget_exports, {
|
|
1773
1723
|
NewsfeedPreviewWidget: () => NewsfeedPreviewWidget
|
|
1774
1724
|
});
|
|
1775
|
-
var
|
|
1725
|
+
var import_core16, import_ui30, import_jsx_runtime35, NewsfeedPreviewWidget;
|
|
1776
1726
|
var init_NewfeedPreviewWidget = __esm({
|
|
1777
1727
|
"src/components/Section/NewfeedPreviewWidget.tsx"() {
|
|
1778
1728
|
"use strict";
|
|
1779
|
-
|
|
1780
|
-
|
|
1729
|
+
import_core16 = require("@geowiki/core");
|
|
1730
|
+
import_ui30 = require("@geowiki/ui");
|
|
1781
1731
|
import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1782
1732
|
NewsfeedPreviewWidget = () => {
|
|
1783
|
-
var { data: newsItems, isLoading } = (0,
|
|
1733
|
+
var { data: newsItems, isLoading } = (0, import_core16.useNews)("all", 0, 6);
|
|
1784
1734
|
var newsArticleData = newsItems?.slice(0, 4)?.map((news) => {
|
|
1785
1735
|
return {
|
|
1786
1736
|
title: news.title,
|
|
@@ -1795,7 +1745,7 @@ var init_NewfeedPreviewWidget = __esm({
|
|
|
1795
1745
|
if (isLoading) {
|
|
1796
1746
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: "Loading..." });
|
|
1797
1747
|
}
|
|
1798
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_ui30.NewsfeedPreview, { newsArticleData });
|
|
1799
1749
|
};
|
|
1800
1750
|
}
|
|
1801
1751
|
});
|
|
@@ -1805,11 +1755,11 @@ var SubtitleH3BodyWidget_exports = {};
|
|
|
1805
1755
|
__export(SubtitleH3BodyWidget_exports, {
|
|
1806
1756
|
SubtitleH3BodyWidget: () => SubtitleH3BodyWidget
|
|
1807
1757
|
});
|
|
1808
|
-
var
|
|
1758
|
+
var import_ui31, import_jsx_runtime36, SubtitleH3BodyWidget;
|
|
1809
1759
|
var init_SubtitleH3BodyWidget = __esm({
|
|
1810
1760
|
"src/components/Section/SubtitleH3BodyWidget.tsx"() {
|
|
1811
1761
|
"use strict";
|
|
1812
|
-
|
|
1762
|
+
import_ui31 = require("@geowiki/ui");
|
|
1813
1763
|
import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1814
1764
|
SubtitleH3BodyWidget = ({ data }) => {
|
|
1815
1765
|
var buttonProps = {
|
|
@@ -1829,7 +1779,7 @@ var init_SubtitleH3BodyWidget = __esm({
|
|
|
1829
1779
|
}
|
|
1830
1780
|
};
|
|
1831
1781
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1832
|
-
|
|
1782
|
+
import_ui31.SubtitleH3Body,
|
|
1833
1783
|
{
|
|
1834
1784
|
title: data.TitlePart.Title,
|
|
1835
1785
|
subtitle: data.SubtitleH3Body.Subtitle.Text,
|
|
@@ -1848,11 +1798,11 @@ var SubtitleH3BodyInternalLinkListWidget_exports = {};
|
|
|
1848
1798
|
__export(SubtitleH3BodyInternalLinkListWidget_exports, {
|
|
1849
1799
|
SubtitleH3BodyInternalLinkListWidget: () => SubtitleH3BodyInternalLinkListWidget
|
|
1850
1800
|
});
|
|
1851
|
-
var
|
|
1801
|
+
var import_ui32, import_jsx_runtime37, SubtitleH3BodyInternalLinkListWidget;
|
|
1852
1802
|
var init_SubtitleH3BodyInternalLinkListWidget = __esm({
|
|
1853
1803
|
"src/components/Section/SubtitleH3BodyInternalLinkListWidget.tsx"() {
|
|
1854
1804
|
"use strict";
|
|
1855
|
-
|
|
1805
|
+
import_ui32 = require("@geowiki/ui");
|
|
1856
1806
|
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1857
1807
|
SubtitleH3BodyInternalLinkListWidget = ({
|
|
1858
1808
|
data
|
|
@@ -1864,11 +1814,11 @@ var init_SubtitleH3BodyInternalLinkListWidget = __esm({
|
|
|
1864
1814
|
type: contentItem.HtmlLink.NewTab.Value ? "external" : "internal"
|
|
1865
1815
|
}));
|
|
1866
1816
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1867
|
-
|
|
1817
|
+
import_ui32.SubtitleH3BodyInternalLinkList,
|
|
1868
1818
|
{
|
|
1869
1819
|
title: data.TitlePart.Title,
|
|
1870
1820
|
subtitle: data.SubtitleH3BodyInternalLinkList.Subtitle?.Text,
|
|
1871
|
-
textBody: data.SubtitleH3BodyInternalLinkList.Content?.Html,
|
|
1821
|
+
textBody: data.SubtitleH3BodyInternalLinkList.Content?.Html ?? data.SubtitleH3BodyInternalLinkList.TextBody?.Text,
|
|
1872
1822
|
links
|
|
1873
1823
|
}
|
|
1874
1824
|
) });
|
|
@@ -1881,11 +1831,11 @@ var SubtitleH3FaqWidget_exports = {};
|
|
|
1881
1831
|
__export(SubtitleH3FaqWidget_exports, {
|
|
1882
1832
|
SubtitleH3FaqWidget: () => SubtitleH3FaqWidget
|
|
1883
1833
|
});
|
|
1884
|
-
var
|
|
1834
|
+
var import_ui33, import_uuid, import_jsx_runtime38, SubtitleH3FaqWidget;
|
|
1885
1835
|
var init_SubtitleH3FaqWidget = __esm({
|
|
1886
1836
|
"src/components/Section/SubtitleH3FaqWidget.tsx"() {
|
|
1887
1837
|
"use strict";
|
|
1888
|
-
|
|
1838
|
+
import_ui33 = require("@geowiki/ui");
|
|
1889
1839
|
import_uuid = require("uuid");
|
|
1890
1840
|
import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1891
1841
|
SubtitleH3FaqWidget = ({ data }) => {
|
|
@@ -1911,7 +1861,7 @@ var init_SubtitleH3FaqWidget = __esm({
|
|
|
1911
1861
|
const faqs = data.BagPart.ContentItems.map((contentItem) => ({
|
|
1912
1862
|
question: contentItem.Faq.Question.Text,
|
|
1913
1863
|
answer: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1914
|
-
|
|
1864
|
+
import_ui33.HtmlView,
|
|
1915
1865
|
{
|
|
1916
1866
|
cssClass: "m-0",
|
|
1917
1867
|
html: addLinksStyles(contentItem.Faq.AnswerText?.Html)
|
|
@@ -1920,7 +1870,7 @@ var init_SubtitleH3FaqWidget = __esm({
|
|
|
1920
1870
|
hint: contentItem.Faq.Hint.Text
|
|
1921
1871
|
}));
|
|
1922
1872
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1923
|
-
|
|
1873
|
+
import_ui33.SubtitleH3Faq,
|
|
1924
1874
|
{
|
|
1925
1875
|
title: data.TitlePart.Title,
|
|
1926
1876
|
subtitle: data.SubtitleH3Faq.Subtitle.Text,
|
|
@@ -1935,7 +1885,7 @@ var init_SubtitleH3FaqWidget = __esm({
|
|
|
1935
1885
|
const faqs = data.BagPart.ContentItems.map((contentItem) => ({
|
|
1936
1886
|
question: contentItem.Faq.Question.Text,
|
|
1937
1887
|
answer: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "grid grid-cols-1 space-y-4", children: contentItem.BagPart.ContentItems.map((contentItem2) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1938
|
-
|
|
1888
|
+
import_ui33.DesignCustomLink,
|
|
1939
1889
|
{
|
|
1940
1890
|
linkText: contentItem2.Link?.Text?.Text,
|
|
1941
1891
|
href: contentItem2.Link?.Url?.Text,
|
|
@@ -1945,10 +1895,10 @@ var init_SubtitleH3FaqWidget = __esm({
|
|
|
1945
1895
|
},
|
|
1946
1896
|
(0, import_uuid.v4)()
|
|
1947
1897
|
)) }),
|
|
1948
|
-
hint: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1898
|
+
hint: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_ui33.HtmlView, { cssClass: "m-0", html: contentItem.Faq.Hint.Text })
|
|
1949
1899
|
}));
|
|
1950
1900
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1951
|
-
|
|
1901
|
+
import_ui33.SubtitleH3Faq,
|
|
1952
1902
|
{
|
|
1953
1903
|
title: data.TitlePart.Title,
|
|
1954
1904
|
subtitle: data.SubtitleH3Faq.Subtitle.Text,
|
|
@@ -1967,12 +1917,12 @@ var NewTestimonialsWidget_exports = {};
|
|
|
1967
1917
|
__export(NewTestimonialsWidget_exports, {
|
|
1968
1918
|
NewTestimonialsWidget: () => NewTestimonialsWidget
|
|
1969
1919
|
});
|
|
1970
|
-
var
|
|
1920
|
+
var import_ui34, import_jsx_runtime39, NewTestimonialsWidget;
|
|
1971
1921
|
var init_NewTestimonialsWidget = __esm({
|
|
1972
1922
|
"src/components/Section/NewTestimonialsWidget.tsx"() {
|
|
1973
1923
|
"use strict";
|
|
1974
1924
|
"use client";
|
|
1975
|
-
|
|
1925
|
+
import_ui34 = require("@geowiki/ui");
|
|
1976
1926
|
import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1977
1927
|
NewTestimonialsWidget = ({ data }) => {
|
|
1978
1928
|
const testimonials = data.BagPart.ContentItems.map((contentItem) => ({
|
|
@@ -1981,7 +1931,7 @@ var init_NewTestimonialsWidget = __esm({
|
|
|
1981
1931
|
position: contentItem.Testimonial?.Title?.Text,
|
|
1982
1932
|
imagePath: contentItem.Testimonial?.Image?.Paths[0]
|
|
1983
1933
|
}));
|
|
1984
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_ui34.DesignTestimonials, { testimonials }) });
|
|
1985
1935
|
};
|
|
1986
1936
|
}
|
|
1987
1937
|
});
|
|
@@ -2035,16 +1985,16 @@ var BannerFollowLinksWidget_exports = {};
|
|
|
2035
1985
|
__export(BannerFollowLinksWidget_exports, {
|
|
2036
1986
|
BannerFollowLinksWidget: () => BannerFollowLinksWidget
|
|
2037
1987
|
});
|
|
2038
|
-
var
|
|
1988
|
+
var import_ui35, import_jsx_runtime41, BannerFollowLinksWidget;
|
|
2039
1989
|
var init_BannerFollowLinksWidget = __esm({
|
|
2040
1990
|
"src/components/Section/BannerFollowLinksWidget.tsx"() {
|
|
2041
1991
|
"use strict";
|
|
2042
1992
|
"use client";
|
|
2043
|
-
|
|
1993
|
+
import_ui35 = require("@geowiki/ui");
|
|
2044
1994
|
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2045
1995
|
BannerFollowLinksWidget = ({ data }) => {
|
|
2046
1996
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2047
|
-
|
|
1997
|
+
import_ui35.BannerFollowLinks,
|
|
2048
1998
|
{
|
|
2049
1999
|
title: data.TitlePart?.Title,
|
|
2050
2000
|
links: data.BagPart.ContentItems.map((contentItem) => ({
|
|
@@ -2063,7 +2013,7 @@ var NewContactUsWidget_exports = {};
|
|
|
2063
2013
|
__export(NewContactUsWidget_exports, {
|
|
2064
2014
|
NewContactUsWidget: () => NewContactUsWidget
|
|
2065
2015
|
});
|
|
2066
|
-
var import_api_proxy3, import_react5, import_react_hook_form2, import_ui37, import_ui38,
|
|
2016
|
+
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;
|
|
2067
2017
|
var init_NewContactUsWidget = __esm({
|
|
2068
2018
|
"src/components/Section/NewContactUsWidget.tsx"() {
|
|
2069
2019
|
"use strict";
|
|
@@ -2071,11 +2021,11 @@ var init_NewContactUsWidget = __esm({
|
|
|
2071
2021
|
import_api_proxy3 = require("@geowiki/api-proxy");
|
|
2072
2022
|
import_react5 = require("react");
|
|
2073
2023
|
import_react_hook_form2 = require("react-hook-form");
|
|
2024
|
+
import_ui36 = require("@geowiki/ui");
|
|
2074
2025
|
import_ui37 = require("@geowiki/ui");
|
|
2075
2026
|
import_ui38 = require("@geowiki/ui");
|
|
2076
|
-
import_ui39 = require("@geowiki/ui");
|
|
2077
2027
|
import_react6 = require("react");
|
|
2078
|
-
|
|
2028
|
+
import_core17 = require("@geowiki/core");
|
|
2079
2029
|
import_zod = require("zod");
|
|
2080
2030
|
import_zod2 = require("@hookform/resolvers/zod");
|
|
2081
2031
|
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
@@ -2092,7 +2042,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2092
2042
|
NewContactUsWidget = ({ data }) => {
|
|
2093
2043
|
console.log("data", data);
|
|
2094
2044
|
const formRef = (0, import_react5.useRef)(null);
|
|
2095
|
-
const { data: audiences, isLoading: isAudienceLoading } = (0,
|
|
2045
|
+
const { data: audiences, isLoading: isAudienceLoading } = (0, import_core17.useAudience)();
|
|
2096
2046
|
const [open, setOpen] = (0, import_react6.useState)(false);
|
|
2097
2047
|
const [openSending, setOpenSending] = (0, import_react6.useState)(false);
|
|
2098
2048
|
const form = (0, import_react_hook_form2.useForm)({
|
|
@@ -2132,7 +2082,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2132
2082
|
setOpen(false);
|
|
2133
2083
|
});
|
|
2134
2084
|
};
|
|
2135
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "p-5 bg-grey-lightest rounded-xl flex justify-center mt-6 lg:px-88 lg:py-20 lg:mt-12", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "p-5 bg-grey-lightest rounded-xl flex justify-center mt-6 lg:px-88 lg:py-20 lg:mt-12", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ui37.Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2136
2086
|
"form",
|
|
2137
2087
|
{
|
|
2138
2088
|
onSubmit: handleSubmit(onSubmit),
|
|
@@ -2141,7 +2091,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2141
2091
|
children: [
|
|
2142
2092
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "space-y-8", children: [
|
|
2143
2093
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2144
|
-
|
|
2094
|
+
import_ui36.DesignInput,
|
|
2145
2095
|
{
|
|
2146
2096
|
placeholder: "Your name",
|
|
2147
2097
|
type: "text",
|
|
@@ -2152,7 +2102,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2152
2102
|
),
|
|
2153
2103
|
errors.name && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-red-500 text-sm", children: errors.name.message }),
|
|
2154
2104
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2155
|
-
|
|
2105
|
+
import_ui36.DesignInput,
|
|
2156
2106
|
{
|
|
2157
2107
|
placeholder: "Your email",
|
|
2158
2108
|
type: "email",
|
|
@@ -2163,7 +2113,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2163
2113
|
),
|
|
2164
2114
|
errors.email && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-red-500 text-sm", children: errors.email.message }),
|
|
2165
2115
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2166
|
-
|
|
2116
|
+
import_ui36.DesignInput,
|
|
2167
2117
|
{
|
|
2168
2118
|
placeholder: "Your subject",
|
|
2169
2119
|
id: "subject",
|
|
@@ -2172,26 +2122,26 @@ var init_NewContactUsWidget = __esm({
|
|
|
2172
2122
|
),
|
|
2173
2123
|
errors.subject && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-red-500 text-sm", children: errors.subject.message }),
|
|
2174
2124
|
!isAudienceLoading && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2175
|
-
|
|
2125
|
+
import_ui37.FormField,
|
|
2176
2126
|
{
|
|
2177
2127
|
control,
|
|
2178
2128
|
name: "role",
|
|
2179
2129
|
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2180
|
-
|
|
2130
|
+
import_ui37.DesignSelect,
|
|
2181
2131
|
{
|
|
2182
2132
|
onValueChange: field.onChange,
|
|
2183
2133
|
defaultValue: field.value,
|
|
2184
2134
|
children: [
|
|
2185
2135
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2186
|
-
|
|
2136
|
+
import_ui37.DesignSelectTrigger,
|
|
2187
2137
|
{
|
|
2188
2138
|
className: "pl-0 py-1.5",
|
|
2189
2139
|
variant: "input",
|
|
2190
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ui37.DesignSelectValue, { placeholder: "Your role" })
|
|
2191
2141
|
}
|
|
2192
2142
|
),
|
|
2193
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2194
|
-
|
|
2143
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ui37.DesignSelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ui37.DesignSelectGroup, { children: audiences.map((audience) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2144
|
+
import_ui37.DesignSelectItem,
|
|
2195
2145
|
{
|
|
2196
2146
|
value: audience.value,
|
|
2197
2147
|
children: audience.value
|
|
@@ -2220,12 +2170,12 @@ var init_NewContactUsWidget = __esm({
|
|
|
2220
2170
|
] }),
|
|
2221
2171
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
2222
2172
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2223
|
-
|
|
2173
|
+
import_ui37.FormField,
|
|
2224
2174
|
{
|
|
2225
2175
|
control,
|
|
2226
2176
|
name: "acceptTerms",
|
|
2227
|
-
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2228
|
-
|
|
2177
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ui37.FormItem, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ui37.FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2178
|
+
import_ui36.Checkbox,
|
|
2229
2179
|
{
|
|
2230
2180
|
onCheckedChange: field.onChange,
|
|
2231
2181
|
checked: field.value
|
|
@@ -2257,7 +2207,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2257
2207
|
] })
|
|
2258
2208
|
] }),
|
|
2259
2209
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2260
|
-
|
|
2210
|
+
import_ui38.DesignButton,
|
|
2261
2211
|
{
|
|
2262
2212
|
type: "submit",
|
|
2263
2213
|
disabled: !acceptTerms,
|
|
@@ -2266,7 +2216,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2266
2216
|
}
|
|
2267
2217
|
),
|
|
2268
2218
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2269
|
-
|
|
2219
|
+
import_ui37.Notification,
|
|
2270
2220
|
{
|
|
2271
2221
|
title: "Sending",
|
|
2272
2222
|
description: " ",
|
|
@@ -2275,7 +2225,7 @@ var init_NewContactUsWidget = __esm({
|
|
|
2275
2225
|
}
|
|
2276
2226
|
),
|
|
2277
2227
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2278
|
-
|
|
2228
|
+
import_ui37.Notification,
|
|
2279
2229
|
{
|
|
2280
2230
|
title: "Thank you for submitting your information.",
|
|
2281
2231
|
description: "Someone from the Recodo team will contact you shortly.",
|
|
@@ -2295,12 +2245,12 @@ var ContactCardsWidget_exports = {};
|
|
|
2295
2245
|
__export(ContactCardsWidget_exports, {
|
|
2296
2246
|
ContactCardsWidget: () => ContactCardsWidget
|
|
2297
2247
|
});
|
|
2298
|
-
var
|
|
2248
|
+
var import_ui39, import_jsx_runtime43, ContactCardsWidget;
|
|
2299
2249
|
var init_ContactCardsWidget = __esm({
|
|
2300
2250
|
"src/components/Section/ContactCardsWidget.tsx"() {
|
|
2301
2251
|
"use strict";
|
|
2302
2252
|
"use client";
|
|
2303
|
-
|
|
2253
|
+
import_ui39 = require("@geowiki/ui");
|
|
2304
2254
|
import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2305
2255
|
ContactCardsWidget = ({ data }) => {
|
|
2306
2256
|
const cards = data.BagPart?.ContentItems || [];
|
|
@@ -2345,7 +2295,7 @@ var init_ContactCardsWidget = __esm({
|
|
|
2345
2295
|
card.NewResourceCollectionItem?.Title?.Text && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h3", { className: "text-2xl font-bold text-gray-900 mb-4", children: card.NewResourceCollectionItem.Title.Text }),
|
|
2346
2296
|
card.NewResourceCollectionItem?.Text?.Text && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-gray-700 mb-6 leading-relaxed", children: card.NewResourceCollectionItem.Text.Text }),
|
|
2347
2297
|
card.NewResourceCollectionItem?.Link?.Text && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2348
|
-
|
|
2298
|
+
import_ui39.DesignButton,
|
|
2349
2299
|
{
|
|
2350
2300
|
variant: "primary",
|
|
2351
2301
|
size: "sm",
|
|
@@ -2441,17 +2391,17 @@ var H2BodyInternalLinkMapWidget_exports = {};
|
|
|
2441
2391
|
__export(H2BodyInternalLinkMapWidget_exports, {
|
|
2442
2392
|
H2BodyInternalLinkMapWidget: () => H2BodyInternalLinkMapWidget
|
|
2443
2393
|
});
|
|
2444
|
-
var
|
|
2394
|
+
var import_core18, import_core19, import_react7, import_ui40, import_jsx_runtime45, MapWithNoSSR2, H2BodyInternalLinkMapWidget;
|
|
2445
2395
|
var init_H2BodyInternalLinkMapWidget = __esm({
|
|
2446
2396
|
"src/components/Section/H2BodyInternalLinkMapWidget.tsx"() {
|
|
2447
2397
|
"use strict";
|
|
2448
2398
|
"use client";
|
|
2449
|
-
|
|
2450
|
-
|
|
2399
|
+
import_core18 = require("@geowiki/core");
|
|
2400
|
+
import_core19 = require("@geowiki/core");
|
|
2451
2401
|
import_react7 = require("react");
|
|
2452
|
-
|
|
2402
|
+
import_ui40 = require("@geowiki/ui");
|
|
2453
2403
|
import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2454
|
-
MapWithNoSSR2 = (0,
|
|
2404
|
+
MapWithNoSSR2 = (0, import_core19.dynamic)(
|
|
2455
2405
|
() => Promise.resolve().then(() => (init_HeroMap(), HeroMap_exports)).then((x) => x.HeroMap),
|
|
2456
2406
|
{
|
|
2457
2407
|
ssr: false
|
|
@@ -2474,20 +2424,20 @@ var init_H2BodyInternalLinkMapWidget = __esm({
|
|
|
2474
2424
|
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "container mx-auto mt-6 p-5 lg:p-0 lg:flex lg:justify-between lg:items-center lg:mt-20", children: [
|
|
2475
2425
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "pt-1 pb-8 lg:pl-28 lg:pr-30 lg:py-0", children: [
|
|
2476
2426
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2477
|
-
|
|
2427
|
+
import_ui40.HtmlView,
|
|
2478
2428
|
{
|
|
2479
2429
|
cssClass: "m-0 lg:max-w-sm",
|
|
2480
|
-
html: (0,
|
|
2430
|
+
html: (0, import_ui40.parseTitle)(data.TitlePart.Title, "H2")
|
|
2481
2431
|
}
|
|
2482
2432
|
),
|
|
2483
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2433
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_ui40.Body18, { className: " py-4 lg:max-w-xs lg:pt-16 lg:pb-6", children: data.H2BodyInternalLinkMap.Text.Text }),
|
|
2484
2434
|
button?.text && button?.link && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2485
|
-
|
|
2435
|
+
import_ui40.DesignButton,
|
|
2486
2436
|
{
|
|
2487
2437
|
variant: "internalLink",
|
|
2488
2438
|
className: "h-auto p-0 text-base lg:p-0",
|
|
2489
2439
|
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2490
|
-
|
|
2440
|
+
import_core18.Link,
|
|
2491
2441
|
{
|
|
2492
2442
|
href: button.link,
|
|
2493
2443
|
target: button.isNewTab ? "_blank" : "_self",
|
|
@@ -2521,12 +2471,12 @@ var SignUpBannerWidget_exports = {};
|
|
|
2521
2471
|
__export(SignUpBannerWidget_exports, {
|
|
2522
2472
|
SignUpBannerWidget: () => SignUpBannerWidget
|
|
2523
2473
|
});
|
|
2524
|
-
var
|
|
2474
|
+
var import_ui41, import_jsx_runtime46, SignUpBannerWidget;
|
|
2525
2475
|
var init_SignUpBannerWidget = __esm({
|
|
2526
2476
|
"src/components/Section/SignUpBannerWidget.tsx"() {
|
|
2527
2477
|
"use strict";
|
|
2528
2478
|
"use client";
|
|
2529
|
-
|
|
2479
|
+
import_ui41 = require("@geowiki/ui");
|
|
2530
2480
|
import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2531
2481
|
SignUpBannerWidget = ({ data }) => {
|
|
2532
2482
|
var buttonProps = {
|
|
@@ -2538,7 +2488,7 @@ var init_SignUpBannerWidget = __esm({
|
|
|
2538
2488
|
(contentItem) => contentItem.Image.Image.Paths[0]
|
|
2539
2489
|
);
|
|
2540
2490
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2541
|
-
|
|
2491
|
+
import_ui41.SignUpBanner,
|
|
2542
2492
|
{
|
|
2543
2493
|
title: data.TitlePart.Title,
|
|
2544
2494
|
text: data.SignUpBanner.Text.Text,
|
|
@@ -2555,12 +2505,12 @@ var SubtitleH3ChildrenWidget_exports = {};
|
|
|
2555
2505
|
__export(SubtitleH3ChildrenWidget_exports, {
|
|
2556
2506
|
SubtitleH3ChildrenWidget: () => SubtitleH3ChildrenWidget
|
|
2557
2507
|
});
|
|
2558
|
-
var
|
|
2508
|
+
var import_ui42, import_jsx_runtime47, SubtitleH3ChildrenWidget;
|
|
2559
2509
|
var init_SubtitleH3ChildrenWidget = __esm({
|
|
2560
2510
|
"src/components/Section/SubtitleH3ChildrenWidget.tsx"() {
|
|
2561
2511
|
"use strict";
|
|
2562
2512
|
"use client";
|
|
2563
|
-
|
|
2513
|
+
import_ui42 = require("@geowiki/ui");
|
|
2564
2514
|
import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2565
2515
|
SubtitleH3ChildrenWidget = ({ data }) => {
|
|
2566
2516
|
var type = data.SubtitleH3Children.Type.Values[0];
|
|
@@ -2571,7 +2521,7 @@ var init_SubtitleH3ChildrenWidget = __esm({
|
|
|
2571
2521
|
};
|
|
2572
2522
|
if (type === "ClusterNews3Collumn") {
|
|
2573
2523
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2574
|
-
|
|
2524
|
+
import_ui42.SubtitleH3ClusterNews3Column,
|
|
2575
2525
|
{
|
|
2576
2526
|
title: data.TitlePart.Title,
|
|
2577
2527
|
subtitle: data.SubtitleH3Children.Subtitle.Text,
|
|
@@ -2581,7 +2531,7 @@ var init_SubtitleH3ChildrenWidget = __esm({
|
|
|
2581
2531
|
}
|
|
2582
2532
|
if (type === "Cluster4Column") {
|
|
2583
2533
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2584
|
-
|
|
2534
|
+
import_ui42.SubtitleH3Cluster4Column,
|
|
2585
2535
|
{
|
|
2586
2536
|
title: data.TitlePart.Title,
|
|
2587
2537
|
subtitle: data.SubtitleH3Children.Subtitle.Text,
|
|
@@ -2599,17 +2549,17 @@ var HeaderBodyWidget_exports = {};
|
|
|
2599
2549
|
__export(HeaderBodyWidget_exports, {
|
|
2600
2550
|
HeaderBodyWidget: () => HeaderBodyWidget
|
|
2601
2551
|
});
|
|
2602
|
-
var
|
|
2552
|
+
var import_ui43, import_jsx_runtime48, HeaderBodyWidget;
|
|
2603
2553
|
var init_HeaderBodyWidget = __esm({
|
|
2604
2554
|
"src/components/Section/HeaderBodyWidget.tsx"() {
|
|
2605
2555
|
"use strict";
|
|
2606
|
-
|
|
2556
|
+
import_ui43 = require("@geowiki/ui");
|
|
2607
2557
|
import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2608
2558
|
HeaderBodyWidget = ({ data }) => {
|
|
2609
2559
|
var type = data.HeaderBody.Type.Values[0];
|
|
2610
2560
|
if (type === "H1Body") {
|
|
2611
2561
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mx-auto max-w-full lg:container lg:max-w-5xl", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2612
|
-
|
|
2562
|
+
import_ui43.H1Body,
|
|
2613
2563
|
{
|
|
2614
2564
|
title: data.TitlePart.Title,
|
|
2615
2565
|
textBody: data.HeaderBody.TextBody.Html
|
|
@@ -2618,7 +2568,7 @@ var init_HeaderBodyWidget = __esm({
|
|
|
2618
2568
|
}
|
|
2619
2569
|
if (type === "H7Body") {
|
|
2620
2570
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "mx-auto max-w-full lg:container lg:max-w-5xl", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2621
|
-
|
|
2571
|
+
import_ui43.H7Body,
|
|
2622
2572
|
{
|
|
2623
2573
|
title: data.TitlePart.Title,
|
|
2624
2574
|
textBody: data.HeaderBody.TextBody.Html
|
|
@@ -2634,18 +2584,18 @@ var LanguagesWidget_exports = {};
|
|
|
2634
2584
|
__export(LanguagesWidget_exports, {
|
|
2635
2585
|
LanguageWidget: () => LanguageWidget
|
|
2636
2586
|
});
|
|
2637
|
-
var
|
|
2587
|
+
var import_core20, import_ui44, import_react8, import_jsx_runtime49, LanguageWidget;
|
|
2638
2588
|
var init_LanguagesWidget = __esm({
|
|
2639
2589
|
"src/components/Section/Recodo/LanguagesWidget.tsx"() {
|
|
2640
2590
|
"use strict";
|
|
2641
|
-
|
|
2591
|
+
import_core20 = require("@geowiki/core");
|
|
2642
2592
|
init_Sections();
|
|
2643
|
-
|
|
2593
|
+
import_ui44 = require("@geowiki/ui");
|
|
2644
2594
|
import_react8 = require("react");
|
|
2645
2595
|
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2646
2596
|
LanguageWidget = () => {
|
|
2647
|
-
const { data: languages, isLoading: isLanguagesLoading } = (0,
|
|
2648
|
-
const { data: generalSettings, isLoading: isGeneralSettingsLoading } = (0,
|
|
2597
|
+
const { data: languages, isLoading: isLanguagesLoading } = (0, import_core20.useCmsContentWithType)("LanguageItem");
|
|
2598
|
+
const { data: generalSettings, isLoading: isGeneralSettingsLoading } = (0, import_core20.useDefaultSettings)();
|
|
2649
2599
|
const [selectedLanguageContent, setSelectedLanguageContent] = (0, import_react8.useState)();
|
|
2650
2600
|
const handleLanguageChange = (language) => {
|
|
2651
2601
|
const selectedLang = languages.find(
|
|
@@ -2668,7 +2618,7 @@ var init_LanguagesWidget = __esm({
|
|
|
2668
2618
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "space-y-4 lg:mt-28", children: [
|
|
2669
2619
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", { className: "text-2xl font-bold", children: "Language" }),
|
|
2670
2620
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("nav", { className: "space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2671
|
-
|
|
2621
|
+
import_ui44.RadioGroup,
|
|
2672
2622
|
{
|
|
2673
2623
|
defaultValue: "English",
|
|
2674
2624
|
onValueChange: (e) => {
|
|
@@ -2676,8 +2626,8 @@ var init_LanguagesWidget = __esm({
|
|
|
2676
2626
|
handleLanguageChange(e);
|
|
2677
2627
|
},
|
|
2678
2628
|
children: languages.map((language, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
2679
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2680
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2629
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_ui44.RadioGroupItem, { value: language?.TitlePart?.Title, id: "r1" }),
|
|
2630
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_ui44.Label, { htmlFor: "r1", children: language?.TitlePart?.Title })
|
|
2681
2631
|
] }, index))
|
|
2682
2632
|
}
|
|
2683
2633
|
) })
|
|
@@ -2732,13 +2682,13 @@ var VideoWidget_exports = {};
|
|
|
2732
2682
|
__export(VideoWidget_exports, {
|
|
2733
2683
|
VideoWidget: () => VideoWidget
|
|
2734
2684
|
});
|
|
2735
|
-
var
|
|
2685
|
+
var import_core21, import_jsx_runtime51, ReactPlayer, VideoWidget;
|
|
2736
2686
|
var init_VideoWidget = __esm({
|
|
2737
2687
|
"src/components/Section/VideoWidget.tsx"() {
|
|
2738
2688
|
"use strict";
|
|
2739
|
-
|
|
2689
|
+
import_core21 = require("@geowiki/core");
|
|
2740
2690
|
import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2741
|
-
ReactPlayer = (0,
|
|
2691
|
+
ReactPlayer = (0, import_core21.dynamic)(() => import("react-player"), { ssr: false });
|
|
2742
2692
|
VideoWidget = ({ data }) => {
|
|
2743
2693
|
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)(
|
|
2744
2694
|
ReactPlayer,
|
|
@@ -2758,11 +2708,11 @@ var SubtitleH2BodyVideoWidget_exports = {};
|
|
|
2758
2708
|
__export(SubtitleH2BodyVideoWidget_exports, {
|
|
2759
2709
|
SubtitleH2BodyVideoWidget: () => SubtitleH2BodyVideoWidget
|
|
2760
2710
|
});
|
|
2761
|
-
var
|
|
2711
|
+
var import_ui45, import_jsx_runtime52, SubtitleH2BodyVideoWidget;
|
|
2762
2712
|
var init_SubtitleH2BodyVideoWidget = __esm({
|
|
2763
2713
|
"src/components/Section/SubtitleH2BodyVideoWidget.tsx"() {
|
|
2764
2714
|
"use strict";
|
|
2765
|
-
|
|
2715
|
+
import_ui45 = require("@geowiki/ui");
|
|
2766
2716
|
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2767
2717
|
SubtitleH2BodyVideoWidget = ({
|
|
2768
2718
|
data
|
|
@@ -2773,7 +2723,7 @@ var init_SubtitleH2BodyVideoWidget = __esm({
|
|
|
2773
2723
|
isNewTab: data.LinkPart.IsNewTab.Value
|
|
2774
2724
|
};
|
|
2775
2725
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2776
|
-
|
|
2726
|
+
import_ui45.SubtitleH2BodyVideo,
|
|
2777
2727
|
{
|
|
2778
2728
|
title: data.TitlePart.Title,
|
|
2779
2729
|
content: data.SubtitleH2BodyVideo?.Content?.Html,
|
|
@@ -2790,12 +2740,12 @@ var ImageLefttH3BodyWidget_exports = {};
|
|
|
2790
2740
|
__export(ImageLefttH3BodyWidget_exports, {
|
|
2791
2741
|
ImageLefttH3BodyWidget: () => ImageLefttH3BodyWidget
|
|
2792
2742
|
});
|
|
2793
|
-
var
|
|
2743
|
+
var import_ui46, import_jsx_runtime53, ImageLefttH3BodyWidget;
|
|
2794
2744
|
var init_ImageLefttH3BodyWidget = __esm({
|
|
2795
2745
|
"src/components/Section/ImageLefttH3BodyWidget.tsx"() {
|
|
2796
2746
|
"use strict";
|
|
2797
2747
|
"use client";
|
|
2798
|
-
|
|
2748
|
+
import_ui46 = require("@geowiki/ui");
|
|
2799
2749
|
import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2800
2750
|
ImageLefttH3BodyWidget = ({
|
|
2801
2751
|
data
|
|
@@ -2806,7 +2756,7 @@ var init_ImageLefttH3BodyWidget = __esm({
|
|
|
2806
2756
|
isNewTab: data.LinkPart.IsNewTab.Value
|
|
2807
2757
|
};
|
|
2808
2758
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2809
|
-
|
|
2759
|
+
import_ui46.ImageLefttH3Body,
|
|
2810
2760
|
{
|
|
2811
2761
|
imagePath: data?.ImageLefttH3Body?.Image?.Paths,
|
|
2812
2762
|
title: data.TitlePart?.Title,
|
|
@@ -2823,15 +2773,15 @@ var SixClusterNewsWidget_exports = {};
|
|
|
2823
2773
|
__export(SixClusterNewsWidget_exports, {
|
|
2824
2774
|
SixClusterNewsWidget: () => SixClusterNewsWidget
|
|
2825
2775
|
});
|
|
2826
|
-
var
|
|
2776
|
+
var import_ui47, import_jsx_runtime54, SixClusterNewsWidget;
|
|
2827
2777
|
var init_SixClusterNewsWidget = __esm({
|
|
2828
2778
|
"src/components/Section/SixClusterNewsWidget.tsx"() {
|
|
2829
2779
|
"use strict";
|
|
2830
2780
|
"use client";
|
|
2831
|
-
|
|
2781
|
+
import_ui47 = require("@geowiki/ui");
|
|
2832
2782
|
import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2833
2783
|
SixClusterNewsWidget = () => {
|
|
2834
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_ui47.SixClusterNews, {});
|
|
2835
2785
|
};
|
|
2836
2786
|
}
|
|
2837
2787
|
});
|
|
@@ -2841,12 +2791,12 @@ var ImageLeftH3BodyLinkWidget_exports = {};
|
|
|
2841
2791
|
__export(ImageLeftH3BodyLinkWidget_exports, {
|
|
2842
2792
|
ImageLeftH3BodyLinkWidget: () => ImageLeftH3BodyLinkWidget
|
|
2843
2793
|
});
|
|
2844
|
-
var
|
|
2794
|
+
var import_ui48, import_jsx_runtime55, ImageLeftH3BodyLinkWidget;
|
|
2845
2795
|
var init_ImageLeftH3BodyLinkWidget = __esm({
|
|
2846
2796
|
"src/components/Section/ImageLeftH3BodyLinkWidget.tsx"() {
|
|
2847
2797
|
"use strict";
|
|
2848
2798
|
"use client";
|
|
2849
|
-
|
|
2799
|
+
import_ui48 = require("@geowiki/ui");
|
|
2850
2800
|
import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2851
2801
|
ImageLeftH3BodyLinkWidget = ({
|
|
2852
2802
|
data
|
|
@@ -2857,7 +2807,7 @@ var init_ImageLeftH3BodyLinkWidget = __esm({
|
|
|
2857
2807
|
isNewTab: data.LinkPart.IsNewTab.Value
|
|
2858
2808
|
};
|
|
2859
2809
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2860
|
-
|
|
2810
|
+
import_ui48.ImageLeftH3BodyLink,
|
|
2861
2811
|
{
|
|
2862
2812
|
title: data.TitlePart.Title,
|
|
2863
2813
|
content: data.ImageLeftH3BodyLink.Content.Html,
|
|
@@ -2874,16 +2824,16 @@ var IframeWidget_exports = {};
|
|
|
2874
2824
|
__export(IframeWidget_exports, {
|
|
2875
2825
|
IframeWidget: () => IframeWidget
|
|
2876
2826
|
});
|
|
2877
|
-
var
|
|
2827
|
+
var import_ui49, import_jsx_runtime56, IframeWidget;
|
|
2878
2828
|
var init_IframeWidget = __esm({
|
|
2879
2829
|
"src/components/Section/IframeWidget.tsx"() {
|
|
2880
2830
|
"use strict";
|
|
2881
2831
|
"use client";
|
|
2882
|
-
|
|
2832
|
+
import_ui49 = require("@geowiki/ui");
|
|
2883
2833
|
import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2884
2834
|
IframeWidget = ({ data }) => {
|
|
2885
2835
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "lg:container mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2886
|
-
|
|
2836
|
+
import_ui49.IframeViewer,
|
|
2887
2837
|
{
|
|
2888
2838
|
html: data.IframeViewer?.Content?.Text,
|
|
2889
2839
|
className: data.IframeViewer?.ClassName?.Text
|
|
@@ -2993,36 +2943,36 @@ __export(QuestMapClient_exports, {
|
|
|
2993
2943
|
QuestMapClient: () => QuestMapClient
|
|
2994
2944
|
});
|
|
2995
2945
|
function getIcon2(color, name) {
|
|
2996
|
-
const myIcon =
|
|
2946
|
+
const myIcon = import_ui51.IconPaths.find((icon) => icon.name === name);
|
|
2997
2947
|
if (myIcon) {
|
|
2998
|
-
const MyIcon =
|
|
2948
|
+
const MyIcon = import_ui51.LocationIcon;
|
|
2999
2949
|
return (0, import_server2.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MyIcon, { Icon: myIcon.icon, color }));
|
|
3000
2950
|
} else {
|
|
3001
2951
|
const MyIcon = import_MapPinIcon2.default;
|
|
3002
2952
|
return (0, import_server2.renderToString)(/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MyIcon, { height: 40, width: 40, color }));
|
|
3003
2953
|
}
|
|
3004
2954
|
}
|
|
3005
|
-
var import_leaflet4, import_leaflet5,
|
|
2955
|
+
var import_leaflet3, import_leaflet4, import_leaflet5, import_react10, import_ui50, import_ui51, import_server2, import_MapPinIcon2, import_leaflet6, import_jsx_runtime58, centerLocation, QuestMapClient;
|
|
3006
2956
|
var init_QuestMapClient = __esm({
|
|
3007
2957
|
"src/components/Section/GeoQuest/QuestMapClient.tsx"() {
|
|
3008
2958
|
"use strict";
|
|
3009
2959
|
"use client";
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
2960
|
+
import_leaflet3 = require("leaflet/dist/leaflet.css");
|
|
2961
|
+
import_leaflet4 = require("leaflet");
|
|
2962
|
+
import_leaflet5 = __toESM(require("leaflet"));
|
|
3013
2963
|
import_react10 = require("react");
|
|
2964
|
+
import_ui50 = require("@geowiki/ui");
|
|
3014
2965
|
import_ui51 = require("@geowiki/ui");
|
|
3015
|
-
import_ui52 = require("@geowiki/ui");
|
|
3016
2966
|
import_server2 = require("react-dom/server");
|
|
3017
2967
|
import_MapPinIcon2 = __toESM(require("@heroicons/react/24/solid/MapPinIcon"));
|
|
3018
|
-
|
|
2968
|
+
import_leaflet6 = require("leaflet.markercluster");
|
|
3019
2969
|
import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3020
|
-
centerLocation = new
|
|
2970
|
+
centerLocation = new import_leaflet4.LatLng(48.2081, 16.3713);
|
|
3021
2971
|
QuestMapClient = () => {
|
|
3022
|
-
const markerCluster =
|
|
2972
|
+
const markerCluster = import_leaflet5.default.markerClusterGroup({
|
|
3023
2973
|
iconCreateFunction: function(cluster) {
|
|
3024
2974
|
var count = cluster.getChildCount();
|
|
3025
|
-
return
|
|
2975
|
+
return import_leaflet5.default.divIcon({
|
|
3026
2976
|
html: `<div style="
|
|
3027
2977
|
position: relative;
|
|
3028
2978
|
width: 44px;
|
|
@@ -3051,7 +3001,7 @@ var init_QuestMapClient = __esm({
|
|
|
3051
3001
|
text-align: center;
|
|
3052
3002
|
"><span>${count}</span></div></div>`,
|
|
3053
3003
|
className: "custom-cluster-icon",
|
|
3054
|
-
iconSize:
|
|
3004
|
+
iconSize: import_leaflet5.default.point(40, 40)
|
|
3055
3005
|
});
|
|
3056
3006
|
}
|
|
3057
3007
|
});
|
|
@@ -3067,20 +3017,20 @@ var init_QuestMapClient = __esm({
|
|
|
3067
3017
|
}, []);
|
|
3068
3018
|
(0, import_react10.useEffect)(() => {
|
|
3069
3019
|
if (mapRef.current && !leafletmap.current) {
|
|
3070
|
-
leafletmap.current =
|
|
3071
|
-
|
|
3020
|
+
leafletmap.current = import_leaflet5.default.map(mapRef.current).setView(centerLocation, 3);
|
|
3021
|
+
import_leaflet5.default.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
3072
3022
|
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
|
3073
3023
|
}).addTo(leafletmap.current);
|
|
3074
3024
|
if (!isLoading) {
|
|
3075
3025
|
if (data) {
|
|
3076
3026
|
data?.forEach((element) => {
|
|
3077
|
-
const icon =
|
|
3027
|
+
const icon = import_leaflet5.default.divIcon({
|
|
3078
3028
|
iconSize: [40, 40],
|
|
3079
3029
|
iconAnchor: [28, 15],
|
|
3080
3030
|
html: `<i>${getIcon2("#00A7CE")}</i>`,
|
|
3081
3031
|
className: ""
|
|
3082
3032
|
});
|
|
3083
|
-
const marker =
|
|
3033
|
+
const marker = import_leaflet5.default.marker(
|
|
3084
3034
|
[
|
|
3085
3035
|
element.coordinates.split(",")[1],
|
|
3086
3036
|
element.coordinates.split(",")[0]
|
|
@@ -3100,8 +3050,7 @@ var init_QuestMapClient = __esm({
|
|
|
3100
3050
|
}
|
|
3101
3051
|
};
|
|
3102
3052
|
}, [isLoading]);
|
|
3103
|
-
if (isLoading)
|
|
3104
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_ui51.LoaderFull, {});
|
|
3053
|
+
if (isLoading) return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_ui50.LoaderFull, {});
|
|
3105
3054
|
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)(
|
|
3106
3055
|
"div",
|
|
3107
3056
|
{
|
|
@@ -3119,13 +3068,13 @@ var QuestMapWidget_exports = {};
|
|
|
3119
3068
|
__export(QuestMapWidget_exports, {
|
|
3120
3069
|
QuestMapWidget: () => QuestMapWidget
|
|
3121
3070
|
});
|
|
3122
|
-
var
|
|
3071
|
+
var import_core22, import_jsx_runtime59, QuestMapClient2, QuestMapWidget;
|
|
3123
3072
|
var init_QuestMapWidget = __esm({
|
|
3124
3073
|
"src/components/Section/GeoQuest/QuestMapWidget.tsx"() {
|
|
3125
3074
|
"use strict";
|
|
3126
|
-
|
|
3075
|
+
import_core22 = require("@geowiki/core");
|
|
3127
3076
|
import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3128
|
-
QuestMapClient2 = (0,
|
|
3077
|
+
QuestMapClient2 = (0, import_core22.dynamic)(
|
|
3129
3078
|
() => Promise.resolve().then(() => (init_QuestMapClient(), QuestMapClient_exports)).then((mod) => mod.QuestMapClient),
|
|
3130
3079
|
{
|
|
3131
3080
|
ssr: false
|
|
@@ -3314,232 +3263,232 @@ var init_SelectQuestWidget = __esm({
|
|
|
3314
3263
|
});
|
|
3315
3264
|
|
|
3316
3265
|
// src/components/SectionComponents.ts
|
|
3317
|
-
var
|
|
3266
|
+
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;
|
|
3318
3267
|
var init_SectionComponents = __esm({
|
|
3319
3268
|
"src/components/SectionComponents.ts"() {
|
|
3320
3269
|
"use strict";
|
|
3321
|
-
|
|
3322
|
-
NewsFeedWidget2 = (0,
|
|
3323
|
-
UpdateUserInfoWidget2 = (0,
|
|
3270
|
+
import_core23 = require("@geowiki/core");
|
|
3271
|
+
NewsFeedWidget2 = (0, import_core23.dynamic)(() => Promise.resolve().then(() => (init_NewsFeedWidget(), NewsFeedWidget_exports)));
|
|
3272
|
+
UpdateUserInfoWidget2 = (0, import_core23.dynamic)(
|
|
3324
3273
|
() => Promise.resolve().then(() => (init_UpdateUserInfoWidget(), UpdateUserInfoWidget_exports)).then(
|
|
3325
3274
|
(mod) => mod.UpdateUserInfoWidget
|
|
3326
3275
|
)
|
|
3327
3276
|
);
|
|
3328
|
-
UserInfoWidget2 = (0,
|
|
3277
|
+
UserInfoWidget2 = (0, import_core23.dynamic)(
|
|
3329
3278
|
() => Promise.resolve().then(() => (init_UserInfoWidget(), UserInfoWidget_exports)).then((mod) => mod.UserInfoWidget)
|
|
3330
3279
|
);
|
|
3331
|
-
ContactWidget2 = (0,
|
|
3280
|
+
ContactWidget2 = (0, import_core23.dynamic)(
|
|
3332
3281
|
() => Promise.resolve().then(() => (init_ContactWidget(), ContactWidget_exports)).then((mod) => mod.ContactWidget)
|
|
3333
3282
|
);
|
|
3334
|
-
CardGridWidget2 = (0,
|
|
3283
|
+
CardGridWidget2 = (0, import_core23.dynamic)(
|
|
3335
3284
|
() => Promise.resolve().then(() => (init_CardGridWidget(), CardGridWidget_exports)).then((mod) => mod.CardGridWidget)
|
|
3336
3285
|
);
|
|
3337
|
-
ResourceCollectionItemWidget2 = (0,
|
|
3286
|
+
ResourceCollectionItemWidget2 = (0, import_core23.dynamic)(
|
|
3338
3287
|
() => Promise.resolve().then(() => (init_ResourceCollectionItemWidget(), ResourceCollectionItemWidget_exports)).then(
|
|
3339
3288
|
(mod) => mod.ResourceCollectionItemWidget
|
|
3340
3289
|
)
|
|
3341
3290
|
);
|
|
3342
|
-
ResourceCollectionsWidget2 = (0,
|
|
3291
|
+
ResourceCollectionsWidget2 = (0, import_core23.dynamic)(
|
|
3343
3292
|
() => Promise.resolve().then(() => (init_ResourceCollectionsWidget(), ResourceCollectionsWidget_exports)).then(
|
|
3344
3293
|
(mod) => mod.ResourceCollectionsWidget
|
|
3345
3294
|
)
|
|
3346
3295
|
);
|
|
3347
|
-
FarmerClusterFinderWidget2 = (0,
|
|
3296
|
+
FarmerClusterFinderWidget2 = (0, import_core23.dynamic)(
|
|
3348
3297
|
() => Promise.resolve().then(() => (init_FarmerClusterFinderWidget(), FarmerClusterFinderWidget_exports)).then(
|
|
3349
3298
|
(mod) => mod.FarmerClusterFinderWidget
|
|
3350
3299
|
)
|
|
3351
3300
|
);
|
|
3352
|
-
EntityListWidget2 = (0,
|
|
3301
|
+
EntityListWidget2 = (0, import_core23.dynamic)(
|
|
3353
3302
|
() => Promise.resolve().then(() => (init_EntityListWidget(), EntityListWidget_exports)).then((mod) => mod.EntityListWidget)
|
|
3354
3303
|
);
|
|
3355
|
-
SpecialFeaturesWidget2 = (0,
|
|
3304
|
+
SpecialFeaturesWidget2 = (0, import_core23.dynamic)(
|
|
3356
3305
|
() => Promise.resolve().then(() => (init_SpecialFeaturesWidget(), SpecialFeaturesWidget_exports)).then(
|
|
3357
3306
|
(mod) => mod.SpecialFeaturesWidget
|
|
3358
3307
|
)
|
|
3359
3308
|
);
|
|
3360
|
-
SimpleActionListWidget2 = (0,
|
|
3309
|
+
SimpleActionListWidget2 = (0, import_core23.dynamic)(
|
|
3361
3310
|
() => Promise.resolve().then(() => (init_SimpleActionListWidget(), SimpleActionListWidget_exports)).then(
|
|
3362
3311
|
(mod) => mod.SimpleActionListWidget
|
|
3363
3312
|
)
|
|
3364
3313
|
);
|
|
3365
|
-
FeatureRowWithMultipleImagesWidget2 = (0,
|
|
3314
|
+
FeatureRowWithMultipleImagesWidget2 = (0, import_core23.dynamic)(
|
|
3366
3315
|
() => Promise.resolve().then(() => (init_FeatureRowWithMultipleImagesWidget(), FeatureRowWithMultipleImagesWidget_exports)).then(
|
|
3367
3316
|
(mod) => mod.FeatureRowWithMultipleImagesWidget
|
|
3368
3317
|
)
|
|
3369
3318
|
);
|
|
3370
|
-
TestimonialListWidget2 = (0,
|
|
3319
|
+
TestimonialListWidget2 = (0, import_core23.dynamic)(
|
|
3371
3320
|
() => Promise.resolve().then(() => (init_TestimonialListWidget(), TestimonialListWidget_exports)).then(
|
|
3372
3321
|
(mod) => mod.TestimonialListWidget
|
|
3373
3322
|
)
|
|
3374
3323
|
);
|
|
3375
|
-
FeatureRowWithImageWidget2 = (0,
|
|
3324
|
+
FeatureRowWithImageWidget2 = (0, import_core23.dynamic)(
|
|
3376
3325
|
() => Promise.resolve().then(() => (init_FeatureRowWithImageWidget(), FeatureRowWithImageWidget_exports)).then(
|
|
3377
3326
|
(mod) => mod.FeatureRowWithImageWidget
|
|
3378
3327
|
)
|
|
3379
3328
|
);
|
|
3380
|
-
FeatureRowWidget2 = (0,
|
|
3329
|
+
FeatureRowWidget2 = (0, import_core23.dynamic)(
|
|
3381
3330
|
() => Promise.resolve().then(() => (init_FeatureRowWidget(), FeatureRowWidget_exports)).then((mod) => mod.FeatureRowWidget)
|
|
3382
3331
|
);
|
|
3383
|
-
SimpleCallToActionWidget2 = (0,
|
|
3332
|
+
SimpleCallToActionWidget2 = (0, import_core23.dynamic)(
|
|
3384
3333
|
() => Promise.resolve().then(() => (init_SimpleCallToActionWidget(), SimpleCallToActionWidget_exports)).then(
|
|
3385
3334
|
(mod) => mod.SimpleCallToActionWidget
|
|
3386
3335
|
)
|
|
3387
3336
|
);
|
|
3388
|
-
ImageWidget2 = (0,
|
|
3337
|
+
ImageWidget2 = (0, import_core23.dynamic)(
|
|
3389
3338
|
() => Promise.resolve().then(() => (init_ImageWidget(), ImageWidget_exports)).then((mod) => mod.ImageWidget)
|
|
3390
3339
|
);
|
|
3391
|
-
GalleryWidget2 = (0,
|
|
3340
|
+
GalleryWidget2 = (0, import_core23.dynamic)(
|
|
3392
3341
|
() => Promise.resolve().then(() => (init_GalleryWidget(), GalleryWidget_exports)).then((mod) => mod.GalleryWidget)
|
|
3393
3342
|
);
|
|
3394
|
-
HeaderWidget2 = (0,
|
|
3343
|
+
HeaderWidget2 = (0, import_core23.dynamic)(
|
|
3395
3344
|
() => Promise.resolve().then(() => (init_HeaderWidget(), HeaderWidget_exports)).then((mod) => mod.HeaderWidget)
|
|
3396
3345
|
);
|
|
3397
|
-
CardWidget2 = (0,
|
|
3346
|
+
CardWidget2 = (0, import_core23.dynamic)(
|
|
3398
3347
|
() => Promise.resolve().then(() => (init_CardWidget(), CardWidget_exports)).then((mod) => mod.CardWidget)
|
|
3399
3348
|
);
|
|
3400
|
-
ColumnWidget2 = (0,
|
|
3349
|
+
ColumnWidget2 = (0, import_core23.dynamic)(
|
|
3401
3350
|
() => Promise.resolve().then(() => (init_ColumnWidget(), ColumnWidget_exports)).then((mod) => mod.ColumnWidget)
|
|
3402
3351
|
);
|
|
3403
|
-
RowWidget2 = (0,
|
|
3352
|
+
RowWidget2 = (0, import_core23.dynamic)(
|
|
3404
3353
|
() => Promise.resolve().then(() => (init_RowWidget(), RowWidget_exports)).then((mod) => mod.RowWidget)
|
|
3405
3354
|
);
|
|
3406
|
-
NewsLetterWidget2 = (0,
|
|
3355
|
+
NewsLetterWidget2 = (0, import_core23.dynamic)(
|
|
3407
3356
|
() => Promise.resolve().then(() => (init_NewsLetterWidget(), NewsLetterWidget_exports)).then((mod) => mod.NewsLetterWidget)
|
|
3408
3357
|
);
|
|
3409
|
-
StatsWidget2 = (0,
|
|
3358
|
+
StatsWidget2 = (0, import_core23.dynamic)(
|
|
3410
3359
|
() => Promise.resolve().then(() => (init_StatsWidget(), StatsWidget_exports)).then((mod) => mod.StatsWidget)
|
|
3411
3360
|
);
|
|
3412
|
-
MapHeroWidget2 = (0,
|
|
3361
|
+
MapHeroWidget2 = (0, import_core23.dynamic)(
|
|
3413
3362
|
() => Promise.resolve().then(() => (init_MapHeroWidget(), MapHeroWidget_exports)).then((mod) => mod.MapHeroWidget)
|
|
3414
3363
|
);
|
|
3415
|
-
HeroCenterTextWidget2 = (0,
|
|
3364
|
+
HeroCenterTextWidget2 = (0, import_core23.dynamic)(
|
|
3416
3365
|
() => Promise.resolve().then(() => (init_HeroCenterTextWidget(), HeroCenterTextWidget_exports)).then(
|
|
3417
3366
|
(mod) => mod.HeroCenterTextWidget
|
|
3418
3367
|
)
|
|
3419
3368
|
);
|
|
3420
|
-
HtmlSection2 = (0,
|
|
3369
|
+
HtmlSection2 = (0, import_core23.dynamic)(
|
|
3421
3370
|
() => Promise.resolve().then(() => (init_html_section(), html_section_exports)).then((mod) => mod.HtmlSection)
|
|
3422
3371
|
);
|
|
3423
|
-
MarkdownWidget2 = (0,
|
|
3372
|
+
MarkdownWidget2 = (0, import_core23.dynamic)(
|
|
3424
3373
|
() => Promise.resolve().then(() => (init_MarkdownWidget(), MarkdownWidget_exports)).then((mod) => mod.MarkdownWidget)
|
|
3425
3374
|
);
|
|
3426
|
-
ContainerWidget2 = (0,
|
|
3375
|
+
ContainerWidget2 = (0, import_core23.dynamic)(
|
|
3427
3376
|
() => Promise.resolve().then(() => (init_ContainerWidget(), ContainerWidget_exports)).then((mod) => mod.ContainerWidget)
|
|
3428
3377
|
);
|
|
3429
|
-
HeroWidget2 = (0,
|
|
3378
|
+
HeroWidget2 = (0, import_core23.dynamic)(
|
|
3430
3379
|
() => Promise.resolve().then(() => (init_HeroWidget(), HeroWidget_exports)).then((mod) => mod.HeroWidget)
|
|
3431
3380
|
);
|
|
3432
|
-
HeadingTextWidget2 = (0,
|
|
3381
|
+
HeadingTextWidget2 = (0, import_core23.dynamic)(
|
|
3433
3382
|
() => Promise.resolve().then(() => (init_HeadingTextWidget(), HeadingTextWidget_exports)).then((mod) => mod.HeadingTextWidget)
|
|
3434
3383
|
);
|
|
3435
|
-
ResourceQuickFindWidget2 = (0,
|
|
3384
|
+
ResourceQuickFindWidget2 = (0, import_core23.dynamic)(
|
|
3436
3385
|
() => Promise.resolve().then(() => (init_ResourceQuickFindWidget(), ResourceQuickFindWidget_exports)).then(
|
|
3437
3386
|
(mod) => mod.ResourceQuickFindWidget
|
|
3438
3387
|
)
|
|
3439
3388
|
);
|
|
3440
|
-
NewsfeedPreviewWidget2 = (0,
|
|
3389
|
+
NewsfeedPreviewWidget2 = (0, import_core23.dynamic)(
|
|
3441
3390
|
() => Promise.resolve().then(() => (init_NewfeedPreviewWidget(), NewfeedPreviewWidget_exports)).then(
|
|
3442
3391
|
(mod) => mod.NewsfeedPreviewWidget
|
|
3443
3392
|
)
|
|
3444
3393
|
);
|
|
3445
|
-
SubtitleH3BodyWidget2 = (0,
|
|
3394
|
+
SubtitleH3BodyWidget2 = (0, import_core23.dynamic)(
|
|
3446
3395
|
() => Promise.resolve().then(() => (init_SubtitleH3BodyWidget(), SubtitleH3BodyWidget_exports)).then(
|
|
3447
3396
|
(mod) => mod.SubtitleH3BodyWidget
|
|
3448
3397
|
)
|
|
3449
3398
|
);
|
|
3450
|
-
SubtitleH3BodyInternalLinkListWidget2 = (0,
|
|
3399
|
+
SubtitleH3BodyInternalLinkListWidget2 = (0, import_core23.dynamic)(
|
|
3451
3400
|
() => Promise.resolve().then(() => (init_SubtitleH3BodyInternalLinkListWidget(), SubtitleH3BodyInternalLinkListWidget_exports)).then(
|
|
3452
3401
|
(mod) => mod.SubtitleH3BodyInternalLinkListWidget
|
|
3453
3402
|
)
|
|
3454
3403
|
);
|
|
3455
|
-
SubtitleH3FaqWidget2 = (0,
|
|
3404
|
+
SubtitleH3FaqWidget2 = (0, import_core23.dynamic)(
|
|
3456
3405
|
() => Promise.resolve().then(() => (init_SubtitleH3FaqWidget(), SubtitleH3FaqWidget_exports)).then(
|
|
3457
3406
|
(mod) => mod.SubtitleH3FaqWidget
|
|
3458
3407
|
)
|
|
3459
3408
|
);
|
|
3460
|
-
NewTestimonialsWidget2 = (0,
|
|
3409
|
+
NewTestimonialsWidget2 = (0, import_core23.dynamic)(
|
|
3461
3410
|
() => Promise.resolve().then(() => (init_NewTestimonialsWidget(), NewTestimonialsWidget_exports)).then(
|
|
3462
3411
|
(mod) => mod.NewTestimonialsWidget
|
|
3463
3412
|
)
|
|
3464
3413
|
);
|
|
3465
|
-
SubtitleH3ResourceCollectionsWidget2 = (0,
|
|
3414
|
+
SubtitleH3ResourceCollectionsWidget2 = (0, import_core23.dynamic)(
|
|
3466
3415
|
() => Promise.resolve().then(() => (init_SubtitleH3ResourceCollectionsWidget(), SubtitleH3ResourceCollectionsWidget_exports)).then(
|
|
3467
3416
|
(mod) => mod.SubtitleH3ResourceCollectionsWidget
|
|
3468
3417
|
)
|
|
3469
3418
|
);
|
|
3470
|
-
BannerFollowLinksWidget2 = (0,
|
|
3419
|
+
BannerFollowLinksWidget2 = (0, import_core23.dynamic)(
|
|
3471
3420
|
() => Promise.resolve().then(() => (init_BannerFollowLinksWidget(), BannerFollowLinksWidget_exports)).then(
|
|
3472
3421
|
(mod) => mod.BannerFollowLinksWidget
|
|
3473
3422
|
)
|
|
3474
3423
|
);
|
|
3475
|
-
NewContactUsWidget2 = (0,
|
|
3424
|
+
NewContactUsWidget2 = (0, import_core23.dynamic)(
|
|
3476
3425
|
() => Promise.resolve().then(() => (init_NewContactUsWidget(), NewContactUsWidget_exports)).then((mod) => mod.NewContactUsWidget)
|
|
3477
3426
|
);
|
|
3478
|
-
ContactCardsWidget2 = (0,
|
|
3427
|
+
ContactCardsWidget2 = (0, import_core23.dynamic)(
|
|
3479
3428
|
() => Promise.resolve().then(() => (init_ContactCardsWidget(), ContactCardsWidget_exports)).then((mod) => mod.ContactCardsWidget)
|
|
3480
3429
|
);
|
|
3481
|
-
SubtitleH3BodySpecialFeatureResourceCollectionsWidget2 = (0,
|
|
3430
|
+
SubtitleH3BodySpecialFeatureResourceCollectionsWidget2 = (0, import_core23.dynamic)(
|
|
3482
3431
|
() => Promise.resolve().then(() => (init_SubtitleH3BodySpecialFeatureResourceCollectionsWidget(), SubtitleH3BodySpecialFeatureResourceCollectionsWidget_exports)).then((mod) => mod.SubtitleH3BodySpecialFeatureResourceCollectionsWidget)
|
|
3483
3432
|
);
|
|
3484
|
-
H2BodyInternalLinkMapWidget2 = (0,
|
|
3433
|
+
H2BodyInternalLinkMapWidget2 = (0, import_core23.dynamic)(
|
|
3485
3434
|
() => Promise.resolve().then(() => (init_H2BodyInternalLinkMapWidget(), H2BodyInternalLinkMapWidget_exports)).then(
|
|
3486
3435
|
(mod) => mod.H2BodyInternalLinkMapWidget
|
|
3487
3436
|
)
|
|
3488
3437
|
);
|
|
3489
|
-
SignUpBannerWidget2 = (0,
|
|
3438
|
+
SignUpBannerWidget2 = (0, import_core23.dynamic)(
|
|
3490
3439
|
() => Promise.resolve().then(() => (init_SignUpBannerWidget(), SignUpBannerWidget_exports)).then((mod) => mod.SignUpBannerWidget)
|
|
3491
3440
|
);
|
|
3492
|
-
SubtitleH3ChildrenWidget2 = (0,
|
|
3441
|
+
SubtitleH3ChildrenWidget2 = (0, import_core23.dynamic)(
|
|
3493
3442
|
() => Promise.resolve().then(() => (init_SubtitleH3ChildrenWidget(), SubtitleH3ChildrenWidget_exports)).then(
|
|
3494
3443
|
(mod) => mod.SubtitleH3ChildrenWidget
|
|
3495
3444
|
)
|
|
3496
3445
|
);
|
|
3497
|
-
HeaderBodyWidget2 = (0,
|
|
3446
|
+
HeaderBodyWidget2 = (0, import_core23.dynamic)(
|
|
3498
3447
|
() => Promise.resolve().then(() => (init_HeaderBodyWidget(), HeaderBodyWidget_exports)).then((mod) => mod.HeaderBodyWidget)
|
|
3499
3448
|
);
|
|
3500
|
-
LanguageWidget2 = (0,
|
|
3449
|
+
LanguageWidget2 = (0, import_core23.dynamic)(
|
|
3501
3450
|
() => Promise.resolve().then(() => (init_LanguagesWidget(), LanguagesWidget_exports)).then((mod) => mod.LanguageWidget)
|
|
3502
3451
|
);
|
|
3503
|
-
SubtitleH3KeyResourcesWidget2 = (0,
|
|
3452
|
+
SubtitleH3KeyResourcesWidget2 = (0, import_core23.dynamic)(
|
|
3504
3453
|
() => Promise.resolve().then(() => (init_SubtitleH3KeyResourcesWidget(), SubtitleH3KeyResourcesWidget_exports)).then(
|
|
3505
3454
|
(mod) => mod.SubtitleH3KeyResourcesWidget
|
|
3506
3455
|
)
|
|
3507
3456
|
);
|
|
3508
|
-
VideoWidget2 = (0,
|
|
3457
|
+
VideoWidget2 = (0, import_core23.dynamic)(
|
|
3509
3458
|
() => Promise.resolve().then(() => (init_VideoWidget(), VideoWidget_exports)).then((mod) => mod.VideoWidget)
|
|
3510
3459
|
);
|
|
3511
|
-
SubtitleH2BodyVideoWidget2 = (0,
|
|
3460
|
+
SubtitleH2BodyVideoWidget2 = (0, import_core23.dynamic)(
|
|
3512
3461
|
() => Promise.resolve().then(() => (init_SubtitleH2BodyVideoWidget(), SubtitleH2BodyVideoWidget_exports)).then(
|
|
3513
3462
|
(mod) => mod.SubtitleH2BodyVideoWidget
|
|
3514
3463
|
)
|
|
3515
3464
|
);
|
|
3516
|
-
ImageLefttH3BodyWidget2 = (0,
|
|
3465
|
+
ImageLefttH3BodyWidget2 = (0, import_core23.dynamic)(
|
|
3517
3466
|
() => Promise.resolve().then(() => (init_ImageLefttH3BodyWidget(), ImageLefttH3BodyWidget_exports)).then(
|
|
3518
3467
|
(mod) => mod.ImageLefttH3BodyWidget
|
|
3519
3468
|
)
|
|
3520
3469
|
);
|
|
3521
|
-
SixClusterNewsWidget2 = (0,
|
|
3470
|
+
SixClusterNewsWidget2 = (0, import_core23.dynamic)(
|
|
3522
3471
|
() => Promise.resolve().then(() => (init_SixClusterNewsWidget(), SixClusterNewsWidget_exports)).then(
|
|
3523
3472
|
(mod) => mod.SixClusterNewsWidget
|
|
3524
3473
|
)
|
|
3525
3474
|
);
|
|
3526
|
-
ImageLeftH3BodyLinkWidget2 = (0,
|
|
3475
|
+
ImageLeftH3BodyLinkWidget2 = (0, import_core23.dynamic)(
|
|
3527
3476
|
() => Promise.resolve().then(() => (init_ImageLeftH3BodyLinkWidget(), ImageLeftH3BodyLinkWidget_exports)).then(
|
|
3528
3477
|
(mod) => mod.ImageLeftH3BodyLinkWidget
|
|
3529
3478
|
)
|
|
3530
3479
|
);
|
|
3531
|
-
IframeWidget2 = (0,
|
|
3480
|
+
IframeWidget2 = (0, import_core23.dynamic)(
|
|
3532
3481
|
() => Promise.resolve().then(() => (init_IframeWidget(), IframeWidget_exports)).then((mod) => mod.IframeWidget)
|
|
3533
3482
|
);
|
|
3534
|
-
DownloadQuestWidget2 = (0,
|
|
3483
|
+
DownloadQuestWidget2 = (0, import_core23.dynamic)(
|
|
3535
3484
|
() => Promise.resolve().then(() => (init_DownloadQuestWidget(), DownloadQuestWidget_exports)).then(
|
|
3536
3485
|
(mod) => mod.DownloadQuestWidget
|
|
3537
3486
|
)
|
|
3538
3487
|
);
|
|
3539
|
-
QuestMapWidget2 = (0,
|
|
3488
|
+
QuestMapWidget2 = (0, import_core23.dynamic)(
|
|
3540
3489
|
() => Promise.resolve().then(() => (init_QuestMapWidget(), QuestMapWidget_exports)).then((mod) => mod.QuestMapWidget)
|
|
3541
3490
|
);
|
|
3542
|
-
SelectQuestWidget2 = (0,
|
|
3491
|
+
SelectQuestWidget2 = (0, import_core23.dynamic)(
|
|
3543
3492
|
() => Promise.resolve().then(() => (init_SelectQuestWidget(), SelectQuestWidget_exports)).then(
|
|
3544
3493
|
(mod) => mod.SelectQuestWidget
|
|
3545
3494
|
)
|
|
@@ -3608,20 +3557,54 @@ var init_SectionComponents = __esm({
|
|
|
3608
3557
|
}
|
|
3609
3558
|
});
|
|
3610
3559
|
|
|
3560
|
+
// src/components/WidgetErrorBoundary.tsx
|
|
3561
|
+
var import_react_error_boundary, import_jsx_runtime61, IS_DEV, WidgetFallback, WidgetErrorBoundary;
|
|
3562
|
+
var init_WidgetErrorBoundary = __esm({
|
|
3563
|
+
"src/components/WidgetErrorBoundary.tsx"() {
|
|
3564
|
+
"use strict";
|
|
3565
|
+
"use client";
|
|
3566
|
+
import_react_error_boundary = require("react-error-boundary");
|
|
3567
|
+
import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3568
|
+
IS_DEV = process.env.NODE_ENV === "development";
|
|
3569
|
+
WidgetFallback = ({ widgetName, error }) => {
|
|
3570
|
+
if (!IS_DEV) return null;
|
|
3571
|
+
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: [
|
|
3572
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("strong", { children: "Widget failed to render" }),
|
|
3573
|
+
" \u2014 ",
|
|
3574
|
+
widgetName,
|
|
3575
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("pre", { className: "mt-2 text-xs whitespace-pre-wrap", children: error.message })
|
|
3576
|
+
] });
|
|
3577
|
+
};
|
|
3578
|
+
WidgetErrorBoundary = ({ children, widgetName }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3579
|
+
import_react_error_boundary.ErrorBoundary,
|
|
3580
|
+
{
|
|
3581
|
+
fallbackRender: ({ error }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(WidgetFallback, { widgetName, error }),
|
|
3582
|
+
onError: (error, info) => console.error(
|
|
3583
|
+
`[WidgetErrorBoundary] Widget "${widgetName}" crashed:`,
|
|
3584
|
+
error,
|
|
3585
|
+
info
|
|
3586
|
+
),
|
|
3587
|
+
children
|
|
3588
|
+
}
|
|
3589
|
+
);
|
|
3590
|
+
}
|
|
3591
|
+
});
|
|
3592
|
+
|
|
3611
3593
|
// src/components/Sections.tsx
|
|
3612
|
-
var
|
|
3594
|
+
var import_jsx_runtime62, Section, Sections;
|
|
3613
3595
|
var init_Sections = __esm({
|
|
3614
3596
|
"src/components/Sections.tsx"() {
|
|
3615
3597
|
"use strict";
|
|
3616
3598
|
"use client";
|
|
3617
3599
|
init_SectionComponents();
|
|
3618
|
-
|
|
3600
|
+
init_WidgetErrorBoundary();
|
|
3601
|
+
import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3619
3602
|
Section = ({ sectionData, settings, cmsUrl, newsItems }) => {
|
|
3620
3603
|
const SectionComponent = SectionComponents[sectionData.ContentType];
|
|
3621
3604
|
if (!SectionComponent) {
|
|
3622
3605
|
return null;
|
|
3623
3606
|
}
|
|
3624
|
-
return /* @__PURE__ */ (0,
|
|
3607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(WidgetErrorBoundary, { widgetName: sectionData.ContentType, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
3625
3608
|
SectionComponent,
|
|
3626
3609
|
{
|
|
3627
3610
|
data: sectionData,
|
|
@@ -3629,10 +3612,10 @@ var init_Sections = __esm({
|
|
|
3629
3612
|
cmsUrl,
|
|
3630
3613
|
newsItems
|
|
3631
3614
|
}
|
|
3632
|
-
) }
|
|
3615
|
+
) });
|
|
3633
3616
|
};
|
|
3634
3617
|
Sections = ({ sections, settings, cmsUrl }) => {
|
|
3635
|
-
return /* @__PURE__ */ (0,
|
|
3618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex flex-col", children: sections?.map((section) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
3636
3619
|
Section,
|
|
3637
3620
|
{
|
|
3638
3621
|
sectionData: section,
|
|
@@ -3646,8 +3629,8 @@ var init_Sections = __esm({
|
|
|
3646
3629
|
});
|
|
3647
3630
|
|
|
3648
3631
|
// src/index.tsx
|
|
3649
|
-
var
|
|
3650
|
-
__export(
|
|
3632
|
+
var index_exports = {};
|
|
3633
|
+
__export(index_exports, {
|
|
3651
3634
|
AppsList: () => AppsList,
|
|
3652
3635
|
CardGridWidget: () => CardGridWidget,
|
|
3653
3636
|
CardWidget: () => CardWidget,
|
|
@@ -3685,28 +3668,30 @@ __export(src_exports, {
|
|
|
3685
3668
|
TestimonialListWidget: () => TestimonialListWidget,
|
|
3686
3669
|
UnderConstruction: () => UnderConstruction,
|
|
3687
3670
|
UpdateUserInfoWidget: () => UpdateUserInfoWidget,
|
|
3688
|
-
UserInfoWidget: () => UserInfoWidget
|
|
3671
|
+
UserInfoWidget: () => UserInfoWidget,
|
|
3672
|
+
WidgetErrorBoundary: () => WidgetErrorBoundary
|
|
3689
3673
|
});
|
|
3690
|
-
module.exports = __toCommonJS(
|
|
3674
|
+
module.exports = __toCommonJS(index_exports);
|
|
3691
3675
|
init_Sections();
|
|
3676
|
+
init_WidgetErrorBoundary();
|
|
3692
3677
|
|
|
3693
3678
|
// src/components/Section/apps-list.tsx
|
|
3694
|
-
var
|
|
3695
|
-
var
|
|
3696
|
-
var
|
|
3679
|
+
var import_core24 = require("@geowiki/core");
|
|
3680
|
+
var import_ui52 = require("@geowiki/ui");
|
|
3681
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3697
3682
|
var AppsList = ({ apps }) => {
|
|
3698
3683
|
console.log("apps", apps);
|
|
3699
|
-
var cmsUrl = (0,
|
|
3684
|
+
var cmsUrl = (0, import_core24.useCmsUrl)();
|
|
3700
3685
|
var visibleApps = apps?.filter(
|
|
3701
3686
|
(app) => app?.Application?.IsVisible?.Value === true
|
|
3702
3687
|
);
|
|
3703
3688
|
visibleApps?.sort((a, b) => {
|
|
3704
3689
|
return a?.Application?.Order?.Value - b?.Application?.Order?.Value;
|
|
3705
3690
|
});
|
|
3706
|
-
return /* @__PURE__ */ (0,
|
|
3707
|
-
/* @__PURE__ */ (0,
|
|
3708
|
-
/* @__PURE__ */ (0,
|
|
3709
|
-
|
|
3691
|
+
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: [
|
|
3692
|
+
/* @__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" }) }),
|
|
3693
|
+
/* @__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)(
|
|
3694
|
+
import_ui52.ApplicationView,
|
|
3710
3695
|
{
|
|
3711
3696
|
app,
|
|
3712
3697
|
cmsUrl
|
|
@@ -3727,22 +3712,22 @@ init_ContainerWidget();
|
|
|
3727
3712
|
init_EntityListWidget();
|
|
3728
3713
|
|
|
3729
3714
|
// src/components/Section/feature-columns-group.tsx
|
|
3730
|
-
var
|
|
3731
|
-
var
|
|
3715
|
+
var import_ui53 = require("@geowiki/ui");
|
|
3716
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3732
3717
|
var FeatureColumnsGroup = ({ data }) => {
|
|
3733
|
-
return /* @__PURE__ */ (0,
|
|
3734
|
-
/* @__PURE__ */ (0,
|
|
3735
|
-
/* @__PURE__ */ (0,
|
|
3736
|
-
/* @__PURE__ */ (0,
|
|
3737
|
-
/* @__PURE__ */ (0,
|
|
3718
|
+
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: [
|
|
3719
|
+
/* @__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" }) }),
|
|
3720
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h3", { className: "font-bold mt-4 mb-4", children: feature.title }),
|
|
3721
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { children: feature.description }),
|
|
3722
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("a", {})
|
|
3738
3723
|
] }, feature.id)) }) });
|
|
3739
3724
|
};
|
|
3740
3725
|
|
|
3741
3726
|
// src/components/Section/feature-rows-group.tsx
|
|
3742
3727
|
var import_classnames2 = __toESM(require("classnames"));
|
|
3728
|
+
var import_ui54 = require("@geowiki/ui");
|
|
3743
3729
|
var import_ui55 = require("@geowiki/ui");
|
|
3744
|
-
var
|
|
3745
|
-
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3730
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
3746
3731
|
|
|
3747
3732
|
// src/index.tsx
|
|
3748
3733
|
init_FeatureRowWidget();
|
|
@@ -3754,25 +3739,25 @@ init_HeroWidget();
|
|
|
3754
3739
|
init_HeadingTextWidget();
|
|
3755
3740
|
|
|
3756
3741
|
// src/components/Section/hero-geowiki.tsx
|
|
3757
|
-
var
|
|
3758
|
-
var
|
|
3759
|
-
var
|
|
3742
|
+
var import_core25 = require("@geowiki/core");
|
|
3743
|
+
var import_ui56 = require("@geowiki/ui");
|
|
3744
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3760
3745
|
var HeroGeoWiki = ({ data }) => {
|
|
3761
|
-
return /* @__PURE__ */ (0,
|
|
3746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3762
3747
|
"div",
|
|
3763
3748
|
{
|
|
3764
3749
|
className: "w-full bg-center bg-cover hero-geo-wiki rounded-xl overflow-hidden",
|
|
3765
3750
|
style: { backgroundImage: `url('${data.picture.url}')` },
|
|
3766
|
-
children: /* @__PURE__ */ (0,
|
|
3767
|
-
/* @__PURE__ */ (0,
|
|
3768
|
-
/* @__PURE__ */ (0,
|
|
3769
|
-
/* @__PURE__ */ (0,
|
|
3770
|
-
/* @__PURE__ */ (0,
|
|
3771
|
-
|
|
3751
|
+
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: [
|
|
3752
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "uppercase tracking-wide font-semibold opacity-100 text-white", children: data.label }),
|
|
3753
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h1", { className: "title text-white mt-2 sm:mt-0 mb-4 sm:mb-2", children: data.title }),
|
|
3754
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-xl text-white mb-6", children: data.description }),
|
|
3755
|
+
/* @__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)(
|
|
3756
|
+
import_ui56.ButtonLink,
|
|
3772
3757
|
{
|
|
3773
3758
|
button,
|
|
3774
3759
|
compact: false,
|
|
3775
|
-
appearance: (0,
|
|
3760
|
+
appearance: (0, import_core25.getButtonAppearance)(button.type, "light")
|
|
3776
3761
|
},
|
|
3777
3762
|
button.id
|
|
3778
3763
|
)) })
|
|
@@ -3786,14 +3771,14 @@ init_html_section();
|
|
|
3786
3771
|
init_ImageWidget();
|
|
3787
3772
|
|
|
3788
3773
|
// src/components/Section/large-video.tsx
|
|
3789
|
-
var
|
|
3790
|
-
var
|
|
3774
|
+
var import_ui57 = require("@geowiki/ui");
|
|
3775
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3791
3776
|
var LargeVideo = ({ data }) => {
|
|
3792
|
-
return /* @__PURE__ */ (0,
|
|
3793
|
-
/* @__PURE__ */ (0,
|
|
3794
|
-
/* @__PURE__ */ (0,
|
|
3795
|
-
/* @__PURE__ */ (0,
|
|
3796
|
-
|
|
3777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("section", { className: "container flex flex-col align-middle text-center pt-12 pb-16", children: [
|
|
3778
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h2", { className: "title mb-6", children: data.title }),
|
|
3779
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-lg mb-10", children: data.description }),
|
|
3780
|
+
/* @__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)(
|
|
3781
|
+
import_ui57.Video,
|
|
3797
3782
|
{
|
|
3798
3783
|
media: data.video,
|
|
3799
3784
|
poster: data.poster,
|
|
@@ -3811,9 +3796,9 @@ init_ResourceCollectionsWidget();
|
|
|
3811
3796
|
|
|
3812
3797
|
// src/components/Section/rich-text.tsx
|
|
3813
3798
|
var import_react_markdown = __toESM(require("react-markdown"));
|
|
3814
|
-
var
|
|
3799
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3815
3800
|
var RichText = ({ data }) => {
|
|
3816
|
-
return /* @__PURE__ */ (0,
|
|
3801
|
+
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 }) }) });
|
|
3817
3802
|
};
|
|
3818
3803
|
|
|
3819
3804
|
// src/index.tsx
|
|
@@ -3825,13 +3810,13 @@ init_StatsWidget();
|
|
|
3825
3810
|
init_TestimonialListWidget();
|
|
3826
3811
|
|
|
3827
3812
|
// src/components/Section/under-construction.tsx
|
|
3828
|
-
var
|
|
3829
|
-
var
|
|
3813
|
+
var import_core26 = require("@geowiki/core");
|
|
3814
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3830
3815
|
var UnderConstruction = () => {
|
|
3831
|
-
return /* @__PURE__ */ (0,
|
|
3832
|
-
/* @__PURE__ */ (0,
|
|
3833
|
-
/* @__PURE__ */ (0,
|
|
3834
|
-
|
|
3816
|
+
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: [
|
|
3817
|
+
/* @__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" }) }),
|
|
3818
|
+
/* @__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)(
|
|
3819
|
+
import_core26.Link,
|
|
3835
3820
|
{
|
|
3836
3821
|
href: "/",
|
|
3837
3822
|
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",
|
|
@@ -3847,27 +3832,27 @@ init_UpdateUserInfoWidget();
|
|
|
3847
3832
|
init_UserInfoWidget();
|
|
3848
3833
|
|
|
3849
3834
|
// src/components/Section/Recodo/ClusterNewsStories.tsx
|
|
3850
|
-
var
|
|
3851
|
-
var
|
|
3852
|
-
var
|
|
3853
|
-
var
|
|
3854
|
-
var
|
|
3835
|
+
var import_core27 = require("@geowiki/core");
|
|
3836
|
+
var import_ui58 = require("@geowiki/ui");
|
|
3837
|
+
var import_core28 = require("@geowiki/core");
|
|
3838
|
+
var import_core29 = require("@geowiki/core");
|
|
3839
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3855
3840
|
var ArticleMeta = ({
|
|
3856
3841
|
date,
|
|
3857
3842
|
location,
|
|
3858
3843
|
author
|
|
3859
|
-
}) => /* @__PURE__ */ (0,
|
|
3860
|
-
/* @__PURE__ */ (0,
|
|
3861
|
-
/* @__PURE__ */ (0,
|
|
3862
|
-
/* @__PURE__ */ (0,
|
|
3844
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex gap-3 items-center", children: [
|
|
3845
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.Body16, { children: new Date(date).toDateString() }),
|
|
3846
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.Body16m, { children: location }),
|
|
3847
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.Body16m, { children: author })
|
|
3863
3848
|
] });
|
|
3864
|
-
var Article = ({ meta, title, newsId }) => /* @__PURE__ */ (0,
|
|
3865
|
-
/* @__PURE__ */ (0,
|
|
3866
|
-
/* @__PURE__ */ (0,
|
|
3867
|
-
/* @__PURE__ */ (0,
|
|
3849
|
+
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: [
|
|
3850
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ArticleMeta, { ...meta }),
|
|
3851
|
+
/* @__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 }),
|
|
3852
|
+
/* @__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_core28.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" }) }) })
|
|
3868
3853
|
] });
|
|
3869
3854
|
var ClusterNewsStories = ({}) => {
|
|
3870
|
-
const router = (0,
|
|
3855
|
+
const router = (0, import_core29.useRouter)();
|
|
3871
3856
|
var page = parseInt(router.query.page) || 1;
|
|
3872
3857
|
var pageSize = 9;
|
|
3873
3858
|
var skip = (page - 1) * pageSize + 1;
|
|
@@ -3875,15 +3860,15 @@ var ClusterNewsStories = ({}) => {
|
|
|
3875
3860
|
skip = 1;
|
|
3876
3861
|
}
|
|
3877
3862
|
var take = pageSize;
|
|
3878
|
-
const { data: clusterNews, isLoading } = (0,
|
|
3879
|
-
const { data: featuredNews, isLoading: isFeaturedLoading } = (0,
|
|
3863
|
+
const { data: clusterNews, isLoading } = (0, import_core27.useNewsFromAllClusters)(skip, take);
|
|
3864
|
+
const { data: featuredNews, isLoading: isFeaturedLoading } = (0, import_core27.useNewsFromAllClusters)(0, 1);
|
|
3880
3865
|
var firstNews = featuredNews?.items?.[0];
|
|
3881
3866
|
if (isFeaturedLoading || isLoading) {
|
|
3882
|
-
return /* @__PURE__ */ (0,
|
|
3867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.LoaderFull, {});
|
|
3883
3868
|
}
|
|
3884
|
-
return /* @__PURE__ */ (0,
|
|
3885
|
-
/* @__PURE__ */ (0,
|
|
3886
|
-
/* @__PURE__ */ (0,
|
|
3869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "lg:container mx-auto", children: [
|
|
3870
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex gap-5 max-md:flex-col max-md:gap-0", children: [
|
|
3871
|
+
/* @__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)(
|
|
3887
3872
|
Article,
|
|
3888
3873
|
{
|
|
3889
3874
|
meta: {
|
|
@@ -3895,16 +3880,16 @@ var ClusterNewsStories = ({}) => {
|
|
|
3895
3880
|
newsId: firstNews?.id
|
|
3896
3881
|
}
|
|
3897
3882
|
) }),
|
|
3898
|
-
/* @__PURE__ */ (0,
|
|
3899
|
-
|
|
3883
|
+
/* @__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)(
|
|
3884
|
+
import_ui58.ApiImage,
|
|
3900
3885
|
{
|
|
3901
3886
|
imageId: firstNews?.imageId,
|
|
3902
3887
|
className: "flex overflow-hidden relative flex-col grow justify-center min-h-[560px] mt-6 max-md:max-w-full lg:mt-10"
|
|
3903
3888
|
}
|
|
3904
3889
|
) })
|
|
3905
3890
|
] }),
|
|
3906
|
-
/* @__PURE__ */ (0,
|
|
3907
|
-
|
|
3891
|
+
/* @__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)(
|
|
3892
|
+
import_ui58.ClusterNewsItem,
|
|
3908
3893
|
{
|
|
3909
3894
|
id: news.id,
|
|
3910
3895
|
clusterCountry: news.clusterCountry,
|
|
@@ -3916,12 +3901,12 @@ var ClusterNewsStories = ({}) => {
|
|
|
3916
3901
|
},
|
|
3917
3902
|
news.id
|
|
3918
3903
|
) }, news.id)) }),
|
|
3919
|
-
/* @__PURE__ */ (0,
|
|
3904
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_ui58.RoutePagination, { pageSize, total: clusterNews?.totalCount }) })
|
|
3920
3905
|
] });
|
|
3921
3906
|
};
|
|
3922
3907
|
|
|
3923
3908
|
// src/index.tsx
|
|
3924
|
-
__reExport(
|
|
3909
|
+
__reExport(index_exports, require("@geowiki/core/src/hooks/useMapMenuItems"), module.exports);
|
|
3925
3910
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3926
3911
|
0 && (module.exports = {
|
|
3927
3912
|
AppsList,
|
|
@@ -3962,5 +3947,6 @@ __reExport(src_exports, require("@geowiki/core/src/hooks/useMapMenuItems"), modu
|
|
|
3962
3947
|
UnderConstruction,
|
|
3963
3948
|
UpdateUserInfoWidget,
|
|
3964
3949
|
UserInfoWidget,
|
|
3950
|
+
WidgetErrorBoundary,
|
|
3965
3951
|
...require("@geowiki/core/src/hooks/useMapMenuItems")
|
|
3966
3952
|
});
|