@geowiki/ui 0.16.9-dev.2 → 0.16.9-dev.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-2KORXHVU.mjs → chunk-IIIL7C6U.mjs} +1 -2
- package/dist/{cluster-map-4OQZMXJK.mjs → cluster-map-VNFQJ56C.mjs} +4 -6
- package/dist/index.d.mts +39 -58
- package/dist/index.d.ts +39 -58
- package/dist/index.js +1075 -1232
- package/dist/index.mjs +725 -874
- package/dist/styles.css +1 -1
- package/package.json +44 -47
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__require,
|
|
5
5
|
__spreadProps,
|
|
6
6
|
__spreadValues
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IIIL7C6U.mjs";
|
|
8
8
|
|
|
9
9
|
// src/index.tsx
|
|
10
10
|
export * from "@geowiki/design-system";
|
|
@@ -13,7 +13,7 @@ export * from "@geowiki/design-system";
|
|
|
13
13
|
import { useCmsUrl } from "@geowiki/core";
|
|
14
14
|
|
|
15
15
|
// src/components/Elements/NextImage.tsx
|
|
16
|
-
import Image from "
|
|
16
|
+
import { Image } from "@geowiki/core";
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
var NextImage = ({
|
|
19
19
|
src,
|
|
@@ -38,8 +38,7 @@ var NextImage = ({
|
|
|
38
38
|
import classNames from "classnames";
|
|
39
39
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
40
40
|
var HtmlLinkList = ({ links }) => {
|
|
41
|
-
if (!links)
|
|
42
|
-
return null;
|
|
41
|
+
if (!links) return null;
|
|
43
42
|
return /* @__PURE__ */ jsx2("div", { children: links == null ? void 0 : links.map((link) => {
|
|
44
43
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
45
44
|
return /* @__PURE__ */ jsx2(
|
|
@@ -229,8 +228,7 @@ function parseTitle(title, type) {
|
|
|
229
228
|
return parsedTitle.join("");
|
|
230
229
|
}
|
|
231
230
|
var isAdmin = (token) => {
|
|
232
|
-
if (!token)
|
|
233
|
-
return false;
|
|
231
|
+
if (!token) return false;
|
|
234
232
|
try {
|
|
235
233
|
const decodedToken = jwtDecode(token);
|
|
236
234
|
return decodedToken.role.includes(USER_ROLE.ADMIN) || decodedToken.role.includes(USER_ROLE.FARMER_CLUSTER_ADMIN);
|
|
@@ -492,7 +490,7 @@ function IconThree() {
|
|
|
492
490
|
|
|
493
491
|
// src/components/Navbar/TopNav4.tsx
|
|
494
492
|
import * as React from "react";
|
|
495
|
-
import Link from "
|
|
493
|
+
import { Link } from "@geowiki/core";
|
|
496
494
|
import {
|
|
497
495
|
cn as cn2,
|
|
498
496
|
NavigationMenu,
|
|
@@ -703,7 +701,7 @@ var ProfileSettings = ({ data }) => {
|
|
|
703
701
|
const { handleSubmit, register } = useForm();
|
|
704
702
|
const { toast: toast2 } = useToast();
|
|
705
703
|
const queryClient = useQueryClient();
|
|
706
|
-
const onSubmit = (data2) => __async(
|
|
704
|
+
const onSubmit = (data2) => __async(null, null, function* () {
|
|
707
705
|
try {
|
|
708
706
|
yield ProfileService.profileUpdate(data2);
|
|
709
707
|
toast2({
|
|
@@ -787,7 +785,7 @@ var ChangePassword = () => {
|
|
|
787
785
|
newPassword: "",
|
|
788
786
|
confirmNewPassword: ""
|
|
789
787
|
});
|
|
790
|
-
const onSubmit = (data) => __async(
|
|
788
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
791
789
|
if (shouldDisabled()) {
|
|
792
790
|
toast2({
|
|
793
791
|
title: "Password Incorrect",
|
|
@@ -904,7 +902,7 @@ var AccountEdit = ({ data, open, setOpen }) => {
|
|
|
904
902
|
const handleInputChange = () => {
|
|
905
903
|
setShowSaving(false);
|
|
906
904
|
};
|
|
907
|
-
const onSubmit = (data2) => __async(
|
|
905
|
+
const onSubmit = (data2) => __async(null, null, function* () {
|
|
908
906
|
try {
|
|
909
907
|
yield ProfileService3.profileUpdate(data2);
|
|
910
908
|
toast2({
|
|
@@ -1160,7 +1158,7 @@ var PasswordEdit = ({ open, setOpen }) => {
|
|
|
1160
1158
|
setIsSaving(false);
|
|
1161
1159
|
}
|
|
1162
1160
|
}, [formValues, hasInteracted]);
|
|
1163
|
-
const onSubmit = (data) => __async(
|
|
1161
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
1164
1162
|
try {
|
|
1165
1163
|
setIsSaving(true);
|
|
1166
1164
|
const requestBody = data;
|
|
@@ -1456,7 +1454,7 @@ var TestEmail = ({ onDismiss }) => {
|
|
|
1456
1454
|
useEffect2(() => {
|
|
1457
1455
|
setOpen(true);
|
|
1458
1456
|
}, []);
|
|
1459
|
-
const onSubmit = (data) => __async(
|
|
1457
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
1460
1458
|
try {
|
|
1461
1459
|
const payload = data;
|
|
1462
1460
|
yield EmailSettingsService.emailSettingsSendTestEmail(payload);
|
|
@@ -1545,7 +1543,7 @@ var Emailing = () => {
|
|
|
1545
1543
|
},
|
|
1546
1544
|
[emailSettingDto]
|
|
1547
1545
|
);
|
|
1548
|
-
const onSubmitEvent = () => __async(
|
|
1546
|
+
const onSubmitEvent = () => __async(null, null, function* () {
|
|
1549
1547
|
try {
|
|
1550
1548
|
yield EmailSettingsService2.emailSettingsUpdate(__spreadValues({}, emailSettingDto));
|
|
1551
1549
|
toast2({
|
|
@@ -1789,7 +1787,7 @@ var AddTenant = () => {
|
|
|
1789
1787
|
const { toast: toast2 } = useToast6();
|
|
1790
1788
|
const { handleSubmit, register } = useForm7();
|
|
1791
1789
|
const queryClient = useQueryClient5();
|
|
1792
|
-
const onSubmit = (data) => __async(
|
|
1790
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
1793
1791
|
const newTenant = data;
|
|
1794
1792
|
try {
|
|
1795
1793
|
yield TenantService.tenantCreate(newTenant);
|
|
@@ -1904,7 +1902,7 @@ var TenantEdit = ({
|
|
|
1904
1902
|
setEnableHost(true);
|
|
1905
1903
|
}
|
|
1906
1904
|
}, [tenantDto, (_a = tenantDto == null ? void 0 : tenantDto.extraProperties) == null ? void 0 : _a.Host]);
|
|
1907
|
-
const onSubmit = (dto) => __async(
|
|
1905
|
+
const onSubmit = (dto) => __async(null, null, function* () {
|
|
1908
1906
|
const tenant = dto;
|
|
1909
1907
|
try {
|
|
1910
1908
|
yield TenantService2.tenantUpdate(tenantId, tenant);
|
|
@@ -2061,7 +2059,7 @@ var FeatureList = ({ onDismiss, tenantId }) => {
|
|
|
2061
2059
|
setEnableEmailSetting(value);
|
|
2062
2060
|
}
|
|
2063
2061
|
};
|
|
2064
|
-
const onSubmit = () => __async(
|
|
2062
|
+
const onSubmit = () => __async(null, null, function* () {
|
|
2065
2063
|
try {
|
|
2066
2064
|
const featureUpdateDto = {};
|
|
2067
2065
|
featureUpdateDto.features = [
|
|
@@ -2095,7 +2093,7 @@ var FeatureList = ({ onDismiss, tenantId }) => {
|
|
|
2095
2093
|
}
|
|
2096
2094
|
}
|
|
2097
2095
|
});
|
|
2098
|
-
const onResetToDefaultEvent = () => __async(
|
|
2096
|
+
const onResetToDefaultEvent = () => __async(null, null, function* () {
|
|
2099
2097
|
try {
|
|
2100
2098
|
yield FeaturesService.featuresDelete(PermissionProvider.T, tenantId);
|
|
2101
2099
|
toast2({
|
|
@@ -2194,8 +2192,7 @@ import {
|
|
|
2194
2192
|
import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2195
2193
|
var PermissionActions = ({ actions }) => {
|
|
2196
2194
|
const renderElement = (action) => {
|
|
2197
|
-
if (!action.showButton || action.visible)
|
|
2198
|
-
return false;
|
|
2195
|
+
if (!action.showButton || action.visible) return false;
|
|
2199
2196
|
return /* @__PURE__ */ jsx23(DropdownMenuItem, { children: /* @__PURE__ */ jsxs20(Button12, { variant: "secondary", onClick: action.callback, size: "sm", children: [
|
|
2200
2197
|
action.icon === "permission" && /* @__PURE__ */ jsxs20("div", { className: "flex items-center space-x-1", children: [
|
|
2201
2198
|
/* @__PURE__ */ jsx23(
|
|
@@ -2284,7 +2281,7 @@ var DeleteTenant = ({
|
|
|
2284
2281
|
}) => {
|
|
2285
2282
|
const { toast: toast2 } = useToast9();
|
|
2286
2283
|
const [open, setOpen] = useState13(false);
|
|
2287
|
-
const onYesEvent = () => __async(
|
|
2284
|
+
const onYesEvent = () => __async(null, null, function* () {
|
|
2288
2285
|
try {
|
|
2289
2286
|
yield TenantService3.tenantDelete(tenantId);
|
|
2290
2287
|
toast2({
|
|
@@ -2485,7 +2482,7 @@ var AddUser = ({ showButtonAdd }) => {
|
|
|
2485
2482
|
const { toast: toast2 } = useToast10();
|
|
2486
2483
|
const queryClient = useQueryClient9();
|
|
2487
2484
|
const { handleSubmit, register } = useForm10();
|
|
2488
|
-
const onSubmit = (data) => __async(
|
|
2485
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
2489
2486
|
const user = data;
|
|
2490
2487
|
user.isActive = isActive;
|
|
2491
2488
|
user.lockoutEnabled = lockoutEnabled;
|
|
@@ -2616,7 +2613,7 @@ var DeleteUser = ({
|
|
|
2616
2613
|
}) => {
|
|
2617
2614
|
const { toast: toast2 } = useToast11();
|
|
2618
2615
|
const [open, setOpen] = useState16(false);
|
|
2619
|
-
const onYesEvent = () => __async(
|
|
2616
|
+
const onYesEvent = () => __async(null, null, function* () {
|
|
2620
2617
|
try {
|
|
2621
2618
|
yield UserService2.userDelete(userId);
|
|
2622
2619
|
toast2({
|
|
@@ -2654,7 +2651,7 @@ var DeleteUser = ({
|
|
|
2654
2651
|
};
|
|
2655
2652
|
|
|
2656
2653
|
// src/components/User/UserDropDown.tsx
|
|
2657
|
-
import Link2 from "
|
|
2654
|
+
import { Link as Link2 } from "@geowiki/core";
|
|
2658
2655
|
import { useSession as useSession2 } from "@geowiki/core";
|
|
2659
2656
|
import {
|
|
2660
2657
|
Avatar,
|
|
@@ -2786,7 +2783,7 @@ import {
|
|
|
2786
2783
|
} from "@geowiki/design-system";
|
|
2787
2784
|
import { UserRank } from "@geowiki/evoland-api-proxy";
|
|
2788
2785
|
import DataTable from "react-data-table-component";
|
|
2789
|
-
import { useTheme } from "
|
|
2786
|
+
import { useTheme } from "@geowiki/core";
|
|
2790
2787
|
import { Fragment as Fragment10, jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2791
2788
|
var TABS_NAME = {
|
|
2792
2789
|
USERS_EDIT: "user_edit",
|
|
@@ -2797,8 +2794,7 @@ function formatUserAlias(userName) {
|
|
|
2797
2794
|
var _a, _b;
|
|
2798
2795
|
const parts = userName.split("_");
|
|
2799
2796
|
const first = ((_b = (_a = parts[0].at(0)) == null ? void 0 : _a.toUpperCase()) != null ? _b : "") + parts[0].substring(1);
|
|
2800
|
-
if (!parts[1])
|
|
2801
|
-
return first;
|
|
2797
|
+
if (!parts[1]) return first;
|
|
2802
2798
|
return first + "(" + parts[1].toUpperCase() + ")";
|
|
2803
2799
|
}
|
|
2804
2800
|
var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
@@ -2862,20 +2858,16 @@ var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
|
2862
2858
|
setRefreshData(false);
|
|
2863
2859
|
};
|
|
2864
2860
|
if ((updateUserRoleProjectResult == null ? void 0 : updateUserRoleProjectResult.success) == true) {
|
|
2865
|
-
if (userAlias != "")
|
|
2866
|
-
|
|
2867
|
-
if (userProjectRole.length != 0)
|
|
2868
|
-
setUserProjectRole([]);
|
|
2861
|
+
if (userAlias != "") setUserAlias("");
|
|
2862
|
+
if (userProjectRole.length != 0) setUserProjectRole([]);
|
|
2869
2863
|
}
|
|
2870
2864
|
if (setUserDetail && setUserDetail.success == true) {
|
|
2871
|
-
if (contractStartDate != "")
|
|
2872
|
-
|
|
2873
|
-
if (contractEndDate != "")
|
|
2874
|
-
setContractEndDate("");
|
|
2865
|
+
if (contractStartDate != "") setContractStartDate("");
|
|
2866
|
+
if (contractEndDate != "") setContractEndDate("");
|
|
2875
2867
|
setUpdateUserDetail(false);
|
|
2876
2868
|
setRefreshData(false);
|
|
2877
2869
|
}
|
|
2878
|
-
const updateUserRoleProject = () => __async(
|
|
2870
|
+
const updateUserRoleProject = () => __async(null, null, function* () {
|
|
2879
2871
|
setUserAlias(formatUserAlias(userDto.userName));
|
|
2880
2872
|
setUpdateUserProject(true);
|
|
2881
2873
|
});
|
|
@@ -2925,17 +2917,14 @@ var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
|
2925
2917
|
const paginationComponentOptions = {
|
|
2926
2918
|
noRowsPerPage: true
|
|
2927
2919
|
};
|
|
2928
|
-
const onSubmit = (data) => __async(
|
|
2920
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
2929
2921
|
const user = data;
|
|
2930
2922
|
try {
|
|
2931
2923
|
if (evolandFeature) {
|
|
2932
|
-
if (!updateUserProject)
|
|
2933
|
-
yield updateUserRoleProject();
|
|
2924
|
+
if (!updateUserProject) yield updateUserRoleProject();
|
|
2934
2925
|
if (userCurrentProject && (userCurrentProject[0].contract_start_date != contractStartDate || userCurrentProject[0].contract_end_date != contractEndDate)) {
|
|
2935
|
-
if (contractStartDate == "")
|
|
2936
|
-
|
|
2937
|
-
if (contractEndDate == "")
|
|
2938
|
-
setContractEndDate(null);
|
|
2926
|
+
if (contractStartDate == "") setContractStartDate(null);
|
|
2927
|
+
if (contractEndDate == "") setContractEndDate(null);
|
|
2939
2928
|
if ((contractStartDate == "" || !contractStartDate) && contractEndDate || contractEndDate && contractStartDate && new Date(contractEndDate) < new Date(contractEndDate)) {
|
|
2940
2929
|
alert("Please provide correct date");
|
|
2941
2930
|
return;
|
|
@@ -2963,14 +2952,10 @@ var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
|
2963
2952
|
});
|
|
2964
2953
|
const onCloseEvent = () => {
|
|
2965
2954
|
setOpen(false);
|
|
2966
|
-
if (userAlias != "")
|
|
2967
|
-
|
|
2968
|
-
if (
|
|
2969
|
-
|
|
2970
|
-
if (contractStartDate != "")
|
|
2971
|
-
setContractStartDate("");
|
|
2972
|
-
if (contractEndDate != "")
|
|
2973
|
-
setContractEndDate("");
|
|
2955
|
+
if (userAlias != "") setUserAlias("");
|
|
2956
|
+
if (userProjectRole.length != 0) setUserProjectRole([]);
|
|
2957
|
+
if (contractStartDate != "") setContractStartDate("");
|
|
2958
|
+
if (contractEndDate != "") setContractEndDate("");
|
|
2974
2959
|
onDismiss();
|
|
2975
2960
|
};
|
|
2976
2961
|
useEffect9(() => {
|
|
@@ -3002,7 +2987,7 @@ var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
|
3002
2987
|
},
|
|
3003
2988
|
[roles]
|
|
3004
2989
|
);
|
|
3005
|
-
const onRoleAssignedSaveEvent = (e) => __async(
|
|
2990
|
+
const onRoleAssignedSaveEvent = (e) => __async(null, null, function* () {
|
|
3006
2991
|
var _a2;
|
|
3007
2992
|
e.preventDefault();
|
|
3008
2993
|
const updateUserDto = __spreadProps(__spreadValues({}, userDto), {
|
|
@@ -3087,8 +3072,7 @@ var UserEdit = ({ userDto, userId, onDismiss }) => {
|
|
|
3087
3072
|
onChange: (e) => {
|
|
3088
3073
|
if ((contractStartDate == "" || !contractStartDate) && e.target.value !== "" || new Date(contractStartDate) > new Date(e.target.value))
|
|
3089
3074
|
alert("Please provide correct start date");
|
|
3090
|
-
else
|
|
3091
|
-
setContractEndDate(e.target.value);
|
|
3075
|
+
else setContractEndDate(e.target.value);
|
|
3092
3076
|
}
|
|
3093
3077
|
})
|
|
3094
3078
|
)
|
|
@@ -3435,8 +3419,7 @@ var UserPermission = ({
|
|
|
3435
3419
|
var _a;
|
|
3436
3420
|
return (_a = g.permissions) == null ? void 0 : _a.every((p) => p.isGranted);
|
|
3437
3421
|
}).every((e) => e);
|
|
3438
|
-
if (hasAllPermissionGranted)
|
|
3439
|
-
setHasAllGranted(hasAllPermissionGranted);
|
|
3422
|
+
if (hasAllPermissionGranted) setHasAllGranted(hasAllPermissionGranted);
|
|
3440
3423
|
}
|
|
3441
3424
|
}, [permissionGroups]);
|
|
3442
3425
|
useEffect11(() => {
|
|
@@ -3500,7 +3483,7 @@ var UserPermission = ({
|
|
|
3500
3483
|
[hasAllGranted, permissionGroups]
|
|
3501
3484
|
);
|
|
3502
3485
|
const onSubmit = useCallback5(
|
|
3503
|
-
(e) => __async(
|
|
3486
|
+
(e) => __async(null, null, function* () {
|
|
3504
3487
|
e.preventDefault();
|
|
3505
3488
|
const payload = permissionGroups == null ? void 0 : permissionGroups.map(
|
|
3506
3489
|
(p) => p.permissions.map((grant) => ({
|
|
@@ -3856,7 +3839,7 @@ var DeleteRole = ({
|
|
|
3856
3839
|
}) => {
|
|
3857
3840
|
const { toast: toast2 } = useToast14();
|
|
3858
3841
|
const [open, setOpen] = useState21(false);
|
|
3859
|
-
const onYesEvent = () => __async(
|
|
3842
|
+
const onYesEvent = () => __async(null, null, function* () {
|
|
3860
3843
|
try {
|
|
3861
3844
|
yield RoleService.roleDelete(roleId);
|
|
3862
3845
|
toast2({
|
|
@@ -3917,7 +3900,7 @@ var RoleEdit = ({ roleDto, roleId, onDismiss }) => {
|
|
|
3917
3900
|
const { handleSubmit, register } = useForm12();
|
|
3918
3901
|
const [isDefault, setIsDefault] = useState22(roleDto.isDefault);
|
|
3919
3902
|
const [isPublic, setIsPublic] = useState22(roleDto.isPublic);
|
|
3920
|
-
const onSubmit = (data) => __async(
|
|
3903
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
3921
3904
|
const role = data;
|
|
3922
3905
|
role.isDefault = isDefault;
|
|
3923
3906
|
role.isPublic = isPublic;
|
|
@@ -4080,8 +4063,7 @@ var RolePermission = ({ roleDto, onDismiss }) => {
|
|
|
4080
4063
|
var _a;
|
|
4081
4064
|
return (_a = g.permissions) == null ? void 0 : _a.every((p) => p.isGranted);
|
|
4082
4065
|
}).every((e) => e);
|
|
4083
|
-
if (hasAllPermissionGranted)
|
|
4084
|
-
setHasAllGranted(hasAllPermissionGranted);
|
|
4066
|
+
if (hasAllPermissionGranted) setHasAllGranted(hasAllPermissionGranted);
|
|
4085
4067
|
}
|
|
4086
4068
|
}, [permissionGroups]);
|
|
4087
4069
|
useEffect14(() => {
|
|
@@ -4145,7 +4127,7 @@ var RolePermission = ({ roleDto, onDismiss }) => {
|
|
|
4145
4127
|
[hasAllGranted, permissionGroups]
|
|
4146
4128
|
);
|
|
4147
4129
|
const onSubmit = useCallback6(
|
|
4148
|
-
(e) => __async(
|
|
4130
|
+
(e) => __async(null, null, function* () {
|
|
4149
4131
|
e.preventDefault();
|
|
4150
4132
|
const payload = permissionGroups == null ? void 0 : permissionGroups.map(
|
|
4151
4133
|
(p) => p.permissions.map((grant) => ({
|
|
@@ -4463,7 +4445,7 @@ var AddRole = ({ showButtonAdd }) => {
|
|
|
4463
4445
|
const { toast: toast2 } = useToast17();
|
|
4464
4446
|
const { handleSubmit, register } = useForm13();
|
|
4465
4447
|
const queryClient = useQueryClient14();
|
|
4466
|
-
const onSubmit = (data) => __async(
|
|
4448
|
+
const onSubmit = (data) => __async(null, null, function* () {
|
|
4467
4449
|
const newRole = data;
|
|
4468
4450
|
newRole.isDefault = isDefault;
|
|
4469
4451
|
newRole.isPublic = isPublic;
|
|
@@ -4663,7 +4645,7 @@ import { useState as useState27 } from "react";
|
|
|
4663
4645
|
// src/components/Admin/Sidebar.tsx
|
|
4664
4646
|
import React2 from "react";
|
|
4665
4647
|
import classNames10 from "classnames";
|
|
4666
|
-
import Link3 from "
|
|
4648
|
+
import { Link as Link3 } from "@geowiki/core";
|
|
4667
4649
|
import { ChevronLeftIcon } from "@heroicons/react/24/solid";
|
|
4668
4650
|
import { v4 as v47 } from "uuid";
|
|
4669
4651
|
import {
|
|
@@ -4678,7 +4660,7 @@ import {
|
|
|
4678
4660
|
FarmerClustersIcon,
|
|
4679
4661
|
ResourcesIcon
|
|
4680
4662
|
} from "@geowiki/design-system";
|
|
4681
|
-
import { useRouter } from "
|
|
4663
|
+
import { useRouter } from "@geowiki/core";
|
|
4682
4664
|
import { useCallback as useCallback7 } from "react";
|
|
4683
4665
|
|
|
4684
4666
|
// src/components/Admin/RequireRole.tsx
|
|
@@ -4686,13 +4668,11 @@ import { useCurrentUser as useCurrentUser2 } from "@geowiki/core";
|
|
|
4686
4668
|
import { Fragment as Fragment17, jsx as jsx43 } from "react/jsx-runtime";
|
|
4687
4669
|
var RequireRole = ({ roles, children }) => {
|
|
4688
4670
|
const currentUser = useCurrentUser2();
|
|
4689
|
-
if (!currentUser)
|
|
4690
|
-
return null;
|
|
4671
|
+
if (!currentUser) return null;
|
|
4691
4672
|
if (!(roles == null ? void 0 : roles.some((role) => {
|
|
4692
4673
|
var _a;
|
|
4693
4674
|
return (_a = currentUser.roles) == null ? void 0 : _a.includes(role);
|
|
4694
|
-
})))
|
|
4695
|
-
return null;
|
|
4675
|
+
}))) return null;
|
|
4696
4676
|
return /* @__PURE__ */ jsx43(Fragment17, { children });
|
|
4697
4677
|
};
|
|
4698
4678
|
|
|
@@ -4763,8 +4743,7 @@ var Sidebar = ({
|
|
|
4763
4743
|
(menu) => {
|
|
4764
4744
|
var _a2;
|
|
4765
4745
|
const m = (_a2 = menu.children) == null ? void 0 : _a2.find((c) => c.link === (router == null ? void 0 : router.asPath));
|
|
4766
|
-
if (m)
|
|
4767
|
-
return menu.name;
|
|
4746
|
+
if (m) return menu.name;
|
|
4768
4747
|
return "";
|
|
4769
4748
|
},
|
|
4770
4749
|
[router == null ? void 0 : router.asPath]
|
|
@@ -4909,7 +4888,7 @@ var AuthenticationFailure = ({}) => {
|
|
|
4909
4888
|
};
|
|
4910
4889
|
|
|
4911
4890
|
// src/components/Layouts/AdminLayout.tsx
|
|
4912
|
-
import Head from "
|
|
4891
|
+
import { Head } from "@geowiki/core";
|
|
4913
4892
|
import { jsx as jsx46, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4914
4893
|
var AdminLayout = ({
|
|
4915
4894
|
children,
|
|
@@ -4921,10 +4900,10 @@ var AdminLayout = ({
|
|
|
4921
4900
|
const { status: sessionStatus } = useSession4();
|
|
4922
4901
|
const cmsUrl = (_b = (_a = generalSettings == null ? void 0 : generalSettings.GeoWikiSettings) == null ? void 0 : _a.Host) == null ? void 0 : _b.Text;
|
|
4923
4902
|
var favicon = (_e = (_d = (_c = generalSettings == null ? void 0 : generalSettings.GeoWikiSettings) == null ? void 0 : _c.FavIcon) == null ? void 0 : _d.Paths) == null ? void 0 : _e[0];
|
|
4924
|
-
const faviconPath = cmsUrl
|
|
4903
|
+
const faviconPath = favicon && cmsUrl ? `${cmsUrl}/media/${favicon}` : "";
|
|
4925
4904
|
return /* @__PURE__ */ jsxs41("main", { children: [
|
|
4926
4905
|
sessionStatus === "unauthenticated" && currentUser && !(currentUser == null ? void 0 : currentUser.isAuthenticated) && /* @__PURE__ */ jsx46(AuthenticationFailure, {}),
|
|
4927
|
-
/* @__PURE__ */ jsx46(Head, { children:
|
|
4906
|
+
/* @__PURE__ */ jsx46(Head, { children: faviconPath && /* @__PURE__ */ jsx46("link", { rel: "icon", href: faviconPath }) }),
|
|
4928
4907
|
/* @__PURE__ */ jsx46(
|
|
4929
4908
|
Sidebar,
|
|
4930
4909
|
{
|
|
@@ -4966,7 +4945,7 @@ var AdminLayout = ({
|
|
|
4966
4945
|
};
|
|
4967
4946
|
|
|
4968
4947
|
// src/components/Layouts/MapLayout.tsx
|
|
4969
|
-
import Head2 from "
|
|
4948
|
+
import { Head as Head2 } from "@geowiki/core";
|
|
4970
4949
|
import { jsx as jsx47, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4971
4950
|
var MapLayout = ({ title, children, settings }) => {
|
|
4972
4951
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
@@ -5032,8 +5011,13 @@ var HtmlView = (props) => {
|
|
|
5032
5011
|
};
|
|
5033
5012
|
|
|
5034
5013
|
// src/components/Elements/TopProgress.tsx
|
|
5035
|
-
import {
|
|
5014
|
+
import {
|
|
5015
|
+
motion as motionRaw,
|
|
5016
|
+
useScroll,
|
|
5017
|
+
useSpring
|
|
5018
|
+
} from "framer-motion";
|
|
5036
5019
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5020
|
+
var motion = motionRaw;
|
|
5037
5021
|
var TopProgress = () => {
|
|
5038
5022
|
const { scrollYProgress } = useScroll();
|
|
5039
5023
|
const scaleX = useSpring(scrollYProgress, {
|
|
@@ -5132,7 +5116,7 @@ import { useForm as useForm14 } from "react-hook-form";
|
|
|
5132
5116
|
|
|
5133
5117
|
// src/components/Elements/custom-dropdown.tsx
|
|
5134
5118
|
import AsyncSelect from "react-select/async";
|
|
5135
|
-
import { useTheme as useTheme2 } from "
|
|
5119
|
+
import { useTheme as useTheme2 } from "@geowiki/core";
|
|
5136
5120
|
import { useLookUp } from "@geowiki/core";
|
|
5137
5121
|
import { useConfigSettings } from "@geowiki/core";
|
|
5138
5122
|
import { LoaderFull as LoaderFull2 } from "@geowiki/design-system";
|
|
@@ -5163,8 +5147,7 @@ var CustomDropDown = (props) => {
|
|
|
5163
5147
|
}
|
|
5164
5148
|
return null;
|
|
5165
5149
|
});
|
|
5166
|
-
if (IsConfigSettingsLoaded)
|
|
5167
|
-
return /* @__PURE__ */ jsx51(LoaderFull2, {});
|
|
5150
|
+
if (IsConfigSettingsLoaded) return /* @__PURE__ */ jsx51(LoaderFull2, {});
|
|
5168
5151
|
return /* @__PURE__ */ jsx51(
|
|
5169
5152
|
AsyncSelect,
|
|
5170
5153
|
{
|
|
@@ -5307,11 +5290,9 @@ var CustomFilterSort = (props) => {
|
|
|
5307
5290
|
LabelLookUp: item.LabelLookUp,
|
|
5308
5291
|
Parameter: item.Parameter,
|
|
5309
5292
|
onValueChange: (currentvalue) => {
|
|
5310
|
-
if ((currentvalue == null ? void 0 : currentvalue.value) != void 0)
|
|
5311
|
-
skip = 0;
|
|
5293
|
+
if ((currentvalue == null ? void 0 : currentvalue.value) != void 0) skip = 0;
|
|
5312
5294
|
filterValues[item == null ? void 0 : item.Name.replace(new RegExp(" ", "g"), "")] = currentvalue == null ? void 0 : currentvalue.value;
|
|
5313
|
-
if (!props.showButtons)
|
|
5314
|
-
onSearch();
|
|
5295
|
+
if (!props.showButtons) onSearch();
|
|
5315
5296
|
}
|
|
5316
5297
|
},
|
|
5317
5298
|
index
|
|
@@ -5374,16 +5355,16 @@ var CustomFilterSort = (props) => {
|
|
|
5374
5355
|
|
|
5375
5356
|
// src/components/Elements/InfoCard.tsx
|
|
5376
5357
|
import { useConfigSettings as useConfigSettings2 } from "@geowiki/core";
|
|
5377
|
-
import Link4 from "
|
|
5378
|
-
import { motion as
|
|
5358
|
+
import { Link as Link4 } from "@geowiki/core";
|
|
5359
|
+
import { motion as motionRaw2 } from "framer-motion";
|
|
5379
5360
|
import { itemVariants } from "@geowiki/core";
|
|
5380
5361
|
import { LoaderFull as LoaderFull3 } from "@geowiki/design-system";
|
|
5381
5362
|
import { jsx as jsx53, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5363
|
+
var motion2 = motionRaw2;
|
|
5382
5364
|
var InfoCard = (props) => {
|
|
5383
5365
|
var _a;
|
|
5384
5366
|
var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = useConfigSettings2();
|
|
5385
|
-
if (IsConfigSettingsLoaded)
|
|
5386
|
-
return /* @__PURE__ */ jsx53(LoaderFull3, {});
|
|
5367
|
+
if (IsConfigSettingsLoaded) return /* @__PURE__ */ jsx53(LoaderFull3, {});
|
|
5387
5368
|
return /* @__PURE__ */ jsx53(
|
|
5388
5369
|
motion2.li,
|
|
5389
5370
|
{
|
|
@@ -5581,7 +5562,7 @@ var ShowTagItem = (props) => {
|
|
|
5581
5562
|
};
|
|
5582
5563
|
|
|
5583
5564
|
// src/components/Elements/PageNotFound.tsx
|
|
5584
|
-
import Link5 from "
|
|
5565
|
+
import { Link as Link5 } from "@geowiki/core";
|
|
5585
5566
|
import { jsx as jsx57, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
5586
5567
|
var PageNotFound = (_props) => {
|
|
5587
5568
|
return /* @__PURE__ */ jsx57("div", { className: " min-h-screen px-4 py-16 sm:px-6 sm:py-24 md:grid md:place-items-center lg:px-8", children: /* @__PURE__ */ jsx57("div", { className: "max-w-max mx-auto", children: /* @__PURE__ */ jsxs50("main", { className: "sm:flex", children: [
|
|
@@ -5603,7 +5584,7 @@ var PageNotFound = (_props) => {
|
|
|
5603
5584
|
};
|
|
5604
5585
|
|
|
5605
5586
|
// src/components/Elements/CmsImage.tsx
|
|
5606
|
-
import Image2 from "
|
|
5587
|
+
import { Image as Image2 } from "@geowiki/core";
|
|
5607
5588
|
import { shimmer, toBase64, useCmsImage } from "@geowiki/core";
|
|
5608
5589
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
5609
5590
|
var CmsImage = ({
|
|
@@ -5615,8 +5596,7 @@ var CmsImage = ({
|
|
|
5615
5596
|
showPlaceholder = true
|
|
5616
5597
|
}) => {
|
|
5617
5598
|
var { data: cmsImageUrl, isLoading } = useCmsImage(src);
|
|
5618
|
-
if (isLoading)
|
|
5619
|
-
return null;
|
|
5599
|
+
if (isLoading) return null;
|
|
5620
5600
|
if (width && height) {
|
|
5621
5601
|
if (!showPlaceholder)
|
|
5622
5602
|
return /* @__PURE__ */ jsx58(
|
|
@@ -6261,7 +6241,7 @@ var CoverImage = (props) => {
|
|
|
6261
6241
|
};
|
|
6262
6242
|
|
|
6263
6243
|
// src/components/Input/RichTextContent.tsx
|
|
6264
|
-
import dynamic from "
|
|
6244
|
+
import { dynamic } from "@geowiki/core";
|
|
6265
6245
|
import { useEffect as useEffect17, useState as useState31 } from "react";
|
|
6266
6246
|
import "react-quill/dist/quill.snow.css";
|
|
6267
6247
|
import { jsx as jsx68, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
@@ -6323,8 +6303,8 @@ var RichTextContent = (props) => {
|
|
|
6323
6303
|
const [hasContent, setHasContent] = useState31(
|
|
6324
6304
|
props.defaultValue ? true : false
|
|
6325
6305
|
);
|
|
6326
|
-
const loadQuill = () => __async(
|
|
6327
|
-
return new Promise((resolve) => __async(
|
|
6306
|
+
const loadQuill = () => __async(null, null, function* () {
|
|
6307
|
+
return new Promise((resolve) => __async(null, null, function* () {
|
|
6328
6308
|
const Quill = yield __require("react-quill").Quill;
|
|
6329
6309
|
const BlotFormatter = (yield __require("quill-blot-formatter")).default;
|
|
6330
6310
|
resolve({ Quill, BlotFormatter });
|
|
@@ -6389,7 +6369,7 @@ var RichTextContent = (props) => {
|
|
|
6389
6369
|
|
|
6390
6370
|
// src/components/Input/MultiSelectFreeText.tsx
|
|
6391
6371
|
import CreatableSelect from "react-select/creatable";
|
|
6392
|
-
import { useTheme as useTheme3 } from "
|
|
6372
|
+
import { useTheme as useTheme3 } from "@geowiki/core";
|
|
6393
6373
|
import { Controller } from "react-hook-form";
|
|
6394
6374
|
import { jsx as jsx69, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6395
6375
|
var MultiSelectFreeText = (props) => {
|
|
@@ -6449,7 +6429,7 @@ var MultiSelectFreeText = (props) => {
|
|
|
6449
6429
|
};
|
|
6450
6430
|
|
|
6451
6431
|
// src/components/Button/EditLinkButton.tsx
|
|
6452
|
-
import Link6 from "
|
|
6432
|
+
import { Link as Link6 } from "@geowiki/core";
|
|
6453
6433
|
import { DesignButton as DesignButton5 } from "@geowiki/design-system";
|
|
6454
6434
|
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6455
6435
|
var EditLinkButton = (props) => {
|
|
@@ -6457,7 +6437,7 @@ var EditLinkButton = (props) => {
|
|
|
6457
6437
|
};
|
|
6458
6438
|
|
|
6459
6439
|
// src/components/Button/ViewLink.tsx
|
|
6460
|
-
import Link7 from "
|
|
6440
|
+
import { Link as Link7 } from "@geowiki/core";
|
|
6461
6441
|
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6462
6442
|
var ViewLink = (props) => {
|
|
6463
6443
|
return /* @__PURE__ */ jsx71(Link7, { href: props.href, passHref: true, target: "_blank", children: /* @__PURE__ */ jsx71(
|
|
@@ -6475,12 +6455,11 @@ var ViewLink = (props) => {
|
|
|
6475
6455
|
};
|
|
6476
6456
|
|
|
6477
6457
|
// src/components/Button/ButtonList.tsx
|
|
6478
|
-
import Link8 from "
|
|
6458
|
+
import { Link as Link8 } from "@geowiki/core";
|
|
6479
6459
|
import { Button as Button24 } from "@geowiki/design-system";
|
|
6480
6460
|
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6481
6461
|
var ButtonList = ({ data }) => {
|
|
6482
|
-
if (!data)
|
|
6483
|
-
return null;
|
|
6462
|
+
if (!data) return null;
|
|
6484
6463
|
return data == null ? void 0 : data.map((button) => {
|
|
6485
6464
|
var _a;
|
|
6486
6465
|
return /* @__PURE__ */ jsx72(Button24, { children: /* @__PURE__ */ jsx72(
|
|
@@ -6498,8 +6477,8 @@ var ButtonList = ({ data }) => {
|
|
|
6498
6477
|
|
|
6499
6478
|
// src/components/Shared/Error.tsx
|
|
6500
6479
|
import { Button as Button25 } from "@geowiki/design-system";
|
|
6501
|
-
import { useRouter as useRouter2 } from "
|
|
6502
|
-
import Image3 from "
|
|
6480
|
+
import { useRouter as useRouter2 } from "@geowiki/core";
|
|
6481
|
+
import { Image as Image3 } from "@geowiki/core";
|
|
6503
6482
|
import { jsx as jsx73, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6504
6483
|
var Error2 = () => {
|
|
6505
6484
|
const router = useRouter2();
|
|
@@ -6532,7 +6511,7 @@ var Error2 = () => {
|
|
|
6532
6511
|
|
|
6533
6512
|
// src/components/Shared/CookieConsent.tsx
|
|
6534
6513
|
import { useEffect as useEffect18, useState as useState32 } from "react";
|
|
6535
|
-
import Script from "
|
|
6514
|
+
import { Script } from "@geowiki/core";
|
|
6536
6515
|
import { getCookie as getCookie2, setCookie } from "cookies-next";
|
|
6537
6516
|
import { Cookies } from "@geowiki/design-system";
|
|
6538
6517
|
import { Fragment as Fragment19, jsx as jsx74, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
@@ -6584,11 +6563,11 @@ gtag('config', '${gTagId}');` })
|
|
|
6584
6563
|
};
|
|
6585
6564
|
|
|
6586
6565
|
// src/components/News/NewsItemList.tsx
|
|
6587
|
-
import Link10 from "
|
|
6566
|
+
import { Link as Link10 } from "@geowiki/core";
|
|
6588
6567
|
|
|
6589
6568
|
// src/components/DesignElements/NewsArticle/NewsArticle.tsx
|
|
6590
6569
|
import { Body14, Body15sb, H8Design } from "@geowiki/design-system";
|
|
6591
|
-
import Link9 from "
|
|
6570
|
+
import { Link as Link9 } from "@geowiki/core";
|
|
6592
6571
|
import { useState as useState33 } from "react";
|
|
6593
6572
|
import { jsx as jsx75, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6594
6573
|
var NewsArticle = (props) => {
|
|
@@ -6641,7 +6620,7 @@ var NewsArticle = (props) => {
|
|
|
6641
6620
|
};
|
|
6642
6621
|
|
|
6643
6622
|
// src/components/News/NewsItemList.tsx
|
|
6644
|
-
import { useRouter as useRouter3 } from "
|
|
6623
|
+
import { useRouter as useRouter3 } from "@geowiki/core";
|
|
6645
6624
|
import { v4 as v48 } from "uuid";
|
|
6646
6625
|
import { Fragment as Fragment20, jsx as jsx76, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6647
6626
|
var NewsItemList = ({ newsItems }) => {
|
|
@@ -6703,12 +6682,12 @@ var NewsItemList = ({ newsItems }) => {
|
|
|
6703
6682
|
|
|
6704
6683
|
// src/components/Publications/PublicationList.tsx
|
|
6705
6684
|
import { listVariants as listVariants3 } from "@geowiki/core";
|
|
6706
|
-
import { motion as
|
|
6685
|
+
import { motion as motionRaw3 } from "framer-motion";
|
|
6707
6686
|
|
|
6708
6687
|
// src/components/Publications/PublicationItem.tsx
|
|
6709
6688
|
import { itemVariants as itemVariants3, useCmsUrl as useCmsUrl2 } from "@geowiki/core";
|
|
6710
6689
|
import { motion as motion6 } from "framer-motion";
|
|
6711
|
-
import Link11 from "
|
|
6690
|
+
import { Link as Link11 } from "@geowiki/core";
|
|
6712
6691
|
import { jsx as jsx77, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6713
6692
|
var PublicationItem = ({ publication }) => {
|
|
6714
6693
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
@@ -6760,6 +6739,7 @@ var PublicationItem = ({ publication }) => {
|
|
|
6760
6739
|
|
|
6761
6740
|
// src/components/Publications/PublicationList.tsx
|
|
6762
6741
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
6742
|
+
var motion7 = motionRaw3;
|
|
6763
6743
|
var PublicationList = ({ publications }) => {
|
|
6764
6744
|
publications.sort((a, b) => {
|
|
6765
6745
|
return new Date(b.PublishedUtc).getTime() - new Date(a.PublishedUtc).getTime();
|
|
@@ -6829,11 +6809,11 @@ var HeroWithCenterText = (props) => {
|
|
|
6829
6809
|
};
|
|
6830
6810
|
|
|
6831
6811
|
// src/components/Hero/HeroWithMap.tsx
|
|
6832
|
-
import dynamic2 from "
|
|
6812
|
+
import { dynamic as dynamic2 } from "@geowiki/core";
|
|
6833
6813
|
import { useState as useState34 } from "react";
|
|
6834
6814
|
import { jsx as jsx81, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6835
6815
|
var MapWithNoSSR = dynamic2(
|
|
6836
|
-
() => import("./cluster-map-
|
|
6816
|
+
() => import("./cluster-map-VNFQJ56C.mjs").then((x) => x.FarmerClusterMap),
|
|
6837
6817
|
{
|
|
6838
6818
|
ssr: false
|
|
6839
6819
|
}
|
|
@@ -7034,7 +7014,7 @@ import { PrimaryButton } from "@geowiki/design-system";
|
|
|
7034
7014
|
import { ProfileService as ProfileService5 } from "@geowiki/api-proxy";
|
|
7035
7015
|
import Swal from "sweetalert2";
|
|
7036
7016
|
import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/outline";
|
|
7037
|
-
import { useRouter as useRouter4 } from "
|
|
7017
|
+
import { useRouter as useRouter4 } from "@geowiki/core";
|
|
7038
7018
|
import { jsx as jsx85, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7039
7019
|
var UpdatePassword = (props) => {
|
|
7040
7020
|
const {
|
|
@@ -7064,7 +7044,7 @@ var UpdatePassword = (props) => {
|
|
|
7064
7044
|
reset({ confirmnewPassword: null });
|
|
7065
7045
|
}
|
|
7066
7046
|
};
|
|
7067
|
-
const onPasswordSubmit = () => __async(
|
|
7047
|
+
const onPasswordSubmit = () => __async(null, null, function* () {
|
|
7068
7048
|
try {
|
|
7069
7049
|
yield ProfileService5.profileChangePassword(PasswordData);
|
|
7070
7050
|
Swal.fire({
|
|
@@ -7267,7 +7247,7 @@ var UpdateUserProfile = ({
|
|
|
7267
7247
|
});
|
|
7268
7248
|
});
|
|
7269
7249
|
};
|
|
7270
|
-
const onProfileSubmit = () => __async(
|
|
7250
|
+
const onProfileSubmit = () => __async(null, null, function* () {
|
|
7271
7251
|
var result = yield ProfileService6.profileUpdate(UserData);
|
|
7272
7252
|
if (result.name === UserData.name && result.surname === UserData.surname) {
|
|
7273
7253
|
Swal2.fire({
|
|
@@ -7374,7 +7354,7 @@ import { toast } from "react-toastify";
|
|
|
7374
7354
|
import { jsx as jsx87, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7375
7355
|
var SettingsItem = (props) => {
|
|
7376
7356
|
const [value, setValue] = useState37(props.value);
|
|
7377
|
-
const handleUpdateSettings = () => __async(
|
|
7357
|
+
const handleUpdateSettings = () => __async(null, null, function* () {
|
|
7378
7358
|
try {
|
|
7379
7359
|
yield SettingsService.settingsSetSettingForTenant(props.setting, value);
|
|
7380
7360
|
toast.success("Settings updated");
|
|
@@ -7420,8 +7400,7 @@ import { jsx as jsx88, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
|
7420
7400
|
var SettingsManagement = () => {
|
|
7421
7401
|
var _a;
|
|
7422
7402
|
var { data, isLoading } = useAppConfig3();
|
|
7423
|
-
if (isLoading)
|
|
7424
|
-
return /* @__PURE__ */ jsx88("div", { children: "Loading..." });
|
|
7403
|
+
if (isLoading) return /* @__PURE__ */ jsx88("div", { children: "Loading..." });
|
|
7425
7404
|
const keys = Object == null ? void 0 : Object.keys((_a = data == null ? void 0 : data.setting) == null ? void 0 : _a.values);
|
|
7426
7405
|
let settings = {
|
|
7427
7406
|
GeoWiki: keys.filter((key) => key.startsWith("GeoWiki")),
|
|
@@ -7432,10 +7411,8 @@ var SettingsManagement = () => {
|
|
|
7432
7411
|
return key.startsWith((_a2 = data == null ? void 0 : data.currentTenant) == null ? void 0 : _a2.name);
|
|
7433
7412
|
})
|
|
7434
7413
|
};
|
|
7435
|
-
if (!data)
|
|
7436
|
-
|
|
7437
|
-
if (!keys)
|
|
7438
|
-
return /* @__PURE__ */ jsx88("div", { children: "no keys" });
|
|
7414
|
+
if (!data) return /* @__PURE__ */ jsx88("div", { children: "no data" });
|
|
7415
|
+
if (!keys) return /* @__PURE__ */ jsx88("div", { children: "no keys" });
|
|
7439
7416
|
return /* @__PURE__ */ jsx88("div", { children: /* @__PURE__ */ jsx88("div", { className: "w-full px-2 py-16 sm:px-0", children: /* @__PURE__ */ jsxs73(Tab.Group, { children: [
|
|
7440
7417
|
/* @__PURE__ */ jsx88(Tab.List, { className: "flex p-1 space-x-1 rounded-xl", children: Object.keys(settings).map(
|
|
7441
7418
|
(key) => settings[key].length > 0 && /* @__PURE__ */ jsx88(
|
|
@@ -7780,109 +7757,14 @@ var DesignFooter = (props) => {
|
|
|
7780
7757
|
|
|
7781
7758
|
// src/components/DesignElements/header.tsx
|
|
7782
7759
|
import { useState as useState38 } from "react";
|
|
7783
|
-
import { Dialog as
|
|
7784
|
-
import { DesignButton as DesignButton6 } from "@geowiki/design-system";
|
|
7760
|
+
import { Dialog as Dialog17, Popover as Popover2 } from "@headlessui/react";
|
|
7761
|
+
import { DesignButton as DesignButton6, Notification } from "@geowiki/design-system";
|
|
7785
7762
|
import { signIn as signIn5, signOut as signOut2 } from "@geowiki/core";
|
|
7786
|
-
import { Bars3Icon as Bars3Icon3, XMarkIcon as
|
|
7763
|
+
import { Bars3Icon as Bars3Icon3, XMarkIcon as XMarkIcon4 } from "@heroicons/react/24/outline";
|
|
7787
7764
|
import { ChevronDownIcon as ChevronDownIcon2 } from "@heroicons/react/20/solid";
|
|
7788
|
-
import Link12 from "
|
|
7789
|
-
|
|
7790
|
-
// src/components/DesignElements/Notification.tsx
|
|
7791
|
-
import { Dialog as Dialog17, Transition as Transition5 } from "@headlessui/react";
|
|
7792
|
-
import { Fragment as Fragment22 } from "react";
|
|
7793
|
-
import { XMarkIcon as XMarkIcon4 } from "@heroicons/react/24/outline";
|
|
7794
|
-
import { H5Design as H5Design3, Body16 as Body164 } from "@geowiki/design-system";
|
|
7795
|
-
import { jsx as jsx92, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7796
|
-
var Notification = ({
|
|
7797
|
-
title,
|
|
7798
|
-
description,
|
|
7799
|
-
open,
|
|
7800
|
-
setOpen,
|
|
7801
|
-
icon
|
|
7802
|
-
}) => {
|
|
7803
|
-
return /* @__PURE__ */ jsx92(Transition5.Root, { show: open, as: Fragment22, "data-component": "Notification", children: /* @__PURE__ */ jsxs77(Dialog17, { as: "div", className: "relative z-10", onClose: setOpen, children: [
|
|
7804
|
-
/* @__PURE__ */ jsx92(
|
|
7805
|
-
Transition5.Child,
|
|
7806
|
-
{
|
|
7807
|
-
as: Fragment22,
|
|
7808
|
-
enter: "ease-out duration-300",
|
|
7809
|
-
enterFrom: "opacity-0",
|
|
7810
|
-
enterTo: "opacity-100",
|
|
7811
|
-
leave: "ease-in duration-200",
|
|
7812
|
-
leaveFrom: "opacity-100",
|
|
7813
|
-
leaveTo: "opacity-0",
|
|
7814
|
-
children: /* @__PURE__ */ jsx92("div", { className: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
7815
|
-
}
|
|
7816
|
-
),
|
|
7817
|
-
/* @__PURE__ */ jsx92("div", { className: "fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ jsx92("div", { className: "flex items-center justify-center min-h-full p-4 text-center ", children: /* @__PURE__ */ jsx92(
|
|
7818
|
-
Transition5.Child,
|
|
7819
|
-
{
|
|
7820
|
-
as: Fragment22,
|
|
7821
|
-
enter: "ease-out duration-300",
|
|
7822
|
-
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
7823
|
-
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
7824
|
-
leave: "ease-in duration-200",
|
|
7825
|
-
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
7826
|
-
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
7827
|
-
children: /* @__PURE__ */ jsxs77(Dialog17.Panel, { className: "relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all py-8 max-w-4xl w-full p-10", children: [
|
|
7828
|
-
/* @__PURE__ */ jsx92("div", { className: "absolute top-0 right-0 pt-10 pr-10", children: /* @__PURE__ */ jsxs77(
|
|
7829
|
-
"button",
|
|
7830
|
-
{
|
|
7831
|
-
type: "button",
|
|
7832
|
-
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 ",
|
|
7833
|
-
onClick: () => setOpen(false),
|
|
7834
|
-
children: [
|
|
7835
|
-
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: "Close" }),
|
|
7836
|
-
/* @__PURE__ */ jsx92(XMarkIcon4, { className: "h-6 w-6", "aria-hidden": "true" })
|
|
7837
|
-
]
|
|
7838
|
-
}
|
|
7839
|
-
) }),
|
|
7840
|
-
/* @__PURE__ */ jsxs77("div", { className: "flex flex-col items-center text-center max-w-[90rem]", children: [
|
|
7841
|
-
/* @__PURE__ */ jsx92("div", { className: "flex justify-center items-center px-14 w-40 h-40 bg-accent-light-purple rounded-full max-md:px-5", children: icon === "computer" ? /* @__PURE__ */ jsx92(
|
|
7842
|
-
"svg",
|
|
7843
|
-
{
|
|
7844
|
-
width: "40",
|
|
7845
|
-
height: "40",
|
|
7846
|
-
viewBox: "0 0 40 40",
|
|
7847
|
-
fill: "none",
|
|
7848
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7849
|
-
children: /* @__PURE__ */ jsx92(
|
|
7850
|
-
"path",
|
|
7851
|
-
{
|
|
7852
|
-
d: "M35 23.3333C35 26.6667 33.3333 28.3333 30 28.3333H23.3333V33.75H27.5C28.1833 33.75 28.75 34.3167 28.75 35C28.75 35.6833 28.1833 36.25 27.5 36.25H12.5C11.8167 36.25 11.25 35.6833 11.25 35C11.25 34.3167 11.8167 33.75 12.5 33.75H16.6667V28.3333H10C6.66667 28.3333 5 26.6667 5 23.3333C5 23.1033 5.18667 22.9167 5.41667 22.9167H34.5833C34.8133 22.9167 35 23.1033 35 23.3333ZM30 5H10C6.66667 5 5 6.66667 5 10V20C5 20.23 5.18667 20.4167 5.41667 20.4167H34.5833C34.8133 20.4167 35 20.23 35 20V10C35 6.66667 33.3333 5 30 5Z",
|
|
7853
|
-
fill: "#000000"
|
|
7854
|
-
}
|
|
7855
|
-
)
|
|
7856
|
-
}
|
|
7857
|
-
) : /* @__PURE__ */ jsx92(
|
|
7858
|
-
"svg",
|
|
7859
|
-
{
|
|
7860
|
-
width: "49",
|
|
7861
|
-
height: "48",
|
|
7862
|
-
viewBox: "0 0 49 48",
|
|
7863
|
-
fill: "none",
|
|
7864
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7865
|
-
children: /* @__PURE__ */ jsx92(
|
|
7866
|
-
"path",
|
|
7867
|
-
{
|
|
7868
|
-
d: "M36.5 10H12.5C8.5 10 6.5 12 6.5 16V34C6.5 38 8.5 40 12.5 40H36.5C40.5 40 42.5 38 42.5 34V16C42.5 12 40.5 10 36.5 10ZM36.3818 19.212L26.5581 26.356C25.9421 26.804 25.22 27.028 24.5 27.028C23.78 27.028 23.0559 26.804 22.4419 26.358L12.6182 19.212C11.9482 18.726 11.8001 17.786 12.2881 17.116C12.7741 16.448 13.7078 16.296 14.3838 16.786L24.208 23.93C24.384 24.056 24.6179 24.058 24.7939 23.93L34.6182 16.786C35.2922 16.296 36.2279 16.448 36.7139 17.116C37.2019 17.788 37.0518 18.726 36.3818 19.212Z",
|
|
7869
|
-
fill: "#000000"
|
|
7870
|
-
}
|
|
7871
|
-
)
|
|
7872
|
-
}
|
|
7873
|
-
) }),
|
|
7874
|
-
/* @__PURE__ */ jsx92(H5Design3, { className: "pt-8 pb-6", children: title }),
|
|
7875
|
-
/* @__PURE__ */ jsx92(Body164, { children: description })
|
|
7876
|
-
] })
|
|
7877
|
-
] })
|
|
7878
|
-
}
|
|
7879
|
-
) }) })
|
|
7880
|
-
] }) });
|
|
7881
|
-
};
|
|
7882
|
-
|
|
7883
|
-
// src/components/DesignElements/header.tsx
|
|
7765
|
+
import { Link as Link12 } from "@geowiki/core";
|
|
7884
7766
|
import { Features as Features3, useFeature as useFeature3, useGeoWikiSettings } from "@geowiki/core";
|
|
7885
|
-
import { Fragment as
|
|
7767
|
+
import { Fragment as Fragment22, jsx as jsx92, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7886
7768
|
var DesignHeader = ({
|
|
7887
7769
|
branding,
|
|
7888
7770
|
mainMenu,
|
|
@@ -7901,21 +7783,21 @@ var DesignHeader = ({
|
|
|
7901
7783
|
if (settings) {
|
|
7902
7784
|
rootPath = (_c = (_b = (_a = settings.GeoWikiSettings) == null ? void 0 : _a.RootUrl) == null ? void 0 : _b.Text) != null ? _c : "/";
|
|
7903
7785
|
}
|
|
7904
|
-
return /* @__PURE__ */
|
|
7786
|
+
return /* @__PURE__ */ jsxs77(
|
|
7905
7787
|
"header",
|
|
7906
7788
|
{
|
|
7907
7789
|
"data-component": "DesignHeader",
|
|
7908
7790
|
className: hasStickyNavBar ? "fixed w-full bg-white" : "lg:container mx-auto",
|
|
7909
7791
|
children: [
|
|
7910
|
-
/* @__PURE__ */
|
|
7792
|
+
/* @__PURE__ */ jsx92("div", { className: "lg:container lg:mx-auto", children: /* @__PURE__ */ jsxs77(
|
|
7911
7793
|
"nav",
|
|
7912
7794
|
{
|
|
7913
7795
|
className: "flex items-center justify-between p-4 lg:px-12 min-h-12",
|
|
7914
7796
|
"aria-label": "Global",
|
|
7915
7797
|
children: [
|
|
7916
|
-
/* @__PURE__ */
|
|
7917
|
-
/* @__PURE__ */
|
|
7918
|
-
/* @__PURE__ */
|
|
7798
|
+
/* @__PURE__ */ jsx92("div", { className: "lg:flex lg:flex-1 hidden", children: /* @__PURE__ */ jsxs77(Link12, { href: rootPath, className: "-m-1.5 p-1.5 min-h-16", children: [
|
|
7799
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: branding.title }),
|
|
7800
|
+
/* @__PURE__ */ jsx92(
|
|
7919
7801
|
CmsImage,
|
|
7920
7802
|
{
|
|
7921
7803
|
src: branding.logo,
|
|
@@ -7928,10 +7810,10 @@ var DesignHeader = ({
|
|
|
7928
7810
|
}
|
|
7929
7811
|
)
|
|
7930
7812
|
] }) }),
|
|
7931
|
-
/* @__PURE__ */
|
|
7932
|
-
/* @__PURE__ */
|
|
7933
|
-
/* @__PURE__ */
|
|
7934
|
-
/* @__PURE__ */
|
|
7813
|
+
/* @__PURE__ */ jsx92("div", { className: "flex lg:hidden w-full", children: /* @__PURE__ */ jsxs77("div", { className: "flex items-center justify-between w-full", children: [
|
|
7814
|
+
/* @__PURE__ */ jsxs77(Link12, { href: rootPath, className: "flex-shrink-0", children: [
|
|
7815
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: branding.title }),
|
|
7816
|
+
/* @__PURE__ */ jsx92(
|
|
7935
7817
|
CmsImage,
|
|
7936
7818
|
{
|
|
7937
7819
|
src: branding.logo,
|
|
@@ -7942,15 +7824,15 @@ var DesignHeader = ({
|
|
|
7942
7824
|
}
|
|
7943
7825
|
)
|
|
7944
7826
|
] }),
|
|
7945
|
-
/* @__PURE__ */
|
|
7827
|
+
/* @__PURE__ */ jsxs77(
|
|
7946
7828
|
"button",
|
|
7947
7829
|
{
|
|
7948
7830
|
type: "button",
|
|
7949
7831
|
className: "flex items-center justify-center h-12 w-12 rounded-lg bg-gray-100 hover:bg-gray-200 transition-colors duration-200",
|
|
7950
7832
|
onClick: () => setMobileMenuOpen(true),
|
|
7951
7833
|
children: [
|
|
7952
|
-
/* @__PURE__ */
|
|
7953
|
-
/* @__PURE__ */
|
|
7834
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: "Open main menu" }),
|
|
7835
|
+
/* @__PURE__ */ jsx92(
|
|
7954
7836
|
Bars3Icon3,
|
|
7955
7837
|
{
|
|
7956
7838
|
className: "h-8 w-8 text-gray-700",
|
|
@@ -7961,11 +7843,11 @@ var DesignHeader = ({
|
|
|
7961
7843
|
}
|
|
7962
7844
|
)
|
|
7963
7845
|
] }) }),
|
|
7964
|
-
/* @__PURE__ */
|
|
7965
|
-
(menuItem) => menuItem.subMenu ? /* @__PURE__ */
|
|
7966
|
-
/* @__PURE__ */
|
|
7846
|
+
/* @__PURE__ */ jsx92(Popover2.Group, { className: "hidden lg:flex lg:items-center lg:gap-x-6 grid-cols-1", children: mainMenu.map(
|
|
7847
|
+
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ jsxs77(Popover2, { children: [
|
|
7848
|
+
/* @__PURE__ */ jsxs77(Popover2.Button, { className: "flex items-center gap-x-1 text-base font-medium outline-none border-none", children: [
|
|
7967
7849
|
menuItem.text,
|
|
7968
|
-
/* @__PURE__ */
|
|
7850
|
+
/* @__PURE__ */ jsx92(
|
|
7969
7851
|
ChevronDownIcon2,
|
|
7970
7852
|
{
|
|
7971
7853
|
className: "h-6 w-6 flex-none text-black",
|
|
@@ -7973,11 +7855,11 @@ var DesignHeader = ({
|
|
|
7973
7855
|
}
|
|
7974
7856
|
)
|
|
7975
7857
|
] }),
|
|
7976
|
-
/* @__PURE__ */
|
|
7858
|
+
/* @__PURE__ */ jsx92(Popover2.Panel, { className: "absolute mt-3 bg-white overflow-hidden bg-neutral-content rounded-lg ring-1 ring-gray-900/5 z-[401]", children: /* @__PURE__ */ jsx92("div", { className: "p-4 space-y-4 ", children: menuItem.subMenu.map((subItem) => /* @__PURE__ */ jsx92(
|
|
7977
7859
|
"div",
|
|
7978
7860
|
{
|
|
7979
7861
|
className: "group relative flex rounded-lg text-sm leading-tight",
|
|
7980
|
-
children: /* @__PURE__ */
|
|
7862
|
+
children: /* @__PURE__ */ jsx92(
|
|
7981
7863
|
Link12,
|
|
7982
7864
|
{
|
|
7983
7865
|
href: subItem.link,
|
|
@@ -7989,7 +7871,7 @@ var DesignHeader = ({
|
|
|
7989
7871
|
},
|
|
7990
7872
|
subItem.text
|
|
7991
7873
|
)) }) })
|
|
7992
|
-
] }, menuItem.text) : /* @__PURE__ */
|
|
7874
|
+
] }, menuItem.text) : /* @__PURE__ */ jsx92("div", { children: /* @__PURE__ */ jsx92(
|
|
7993
7875
|
Link12,
|
|
7994
7876
|
{
|
|
7995
7877
|
href: menuItem.link,
|
|
@@ -7999,9 +7881,9 @@ var DesignHeader = ({
|
|
|
7999
7881
|
}
|
|
8000
7882
|
) }, menuItem.text)
|
|
8001
7883
|
) }),
|
|
8002
|
-
/* @__PURE__ */
|
|
8003
|
-
sessionStatus === "unauthenticated" && /* @__PURE__ */
|
|
8004
|
-
/* @__PURE__ */
|
|
7884
|
+
/* @__PURE__ */ jsx92("div", { className: "hidden lg:flex lg:flex-1 lg:justify-end gap-8", children: canLogin && /* @__PURE__ */ jsxs77(Fragment22, { children: [
|
|
7885
|
+
sessionStatus === "unauthenticated" && /* @__PURE__ */ jsxs77(Fragment22, { children: [
|
|
7886
|
+
/* @__PURE__ */ jsx92(
|
|
8005
7887
|
DesignButton6,
|
|
8006
7888
|
{
|
|
8007
7889
|
variant: "secondary",
|
|
@@ -8010,7 +7892,7 @@ var DesignHeader = ({
|
|
|
8010
7892
|
children: "Login"
|
|
8011
7893
|
}
|
|
8012
7894
|
),
|
|
8013
|
-
canSignup && /* @__PURE__ */
|
|
7895
|
+
canSignup && /* @__PURE__ */ jsx92(DesignButton6, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx92(
|
|
8014
7896
|
Link12,
|
|
8015
7897
|
{
|
|
8016
7898
|
href: `${isFeatureEnabled ? "/signup" : "/register"}`,
|
|
@@ -8018,8 +7900,8 @@ var DesignHeader = ({
|
|
|
8018
7900
|
}
|
|
8019
7901
|
) })
|
|
8020
7902
|
] }),
|
|
8021
|
-
sessionStatus === "authenticated" && /* @__PURE__ */
|
|
8022
|
-
isAdmin2 && /* @__PURE__ */
|
|
7903
|
+
sessionStatus === "authenticated" && /* @__PURE__ */ jsxs77(Fragment22, { children: [
|
|
7904
|
+
isAdmin2 && /* @__PURE__ */ jsx92(
|
|
8023
7905
|
Link12,
|
|
8024
7906
|
{
|
|
8025
7907
|
href: `${isFeatureEnabled ? "/admin/cluster" : "/admin"} `,
|
|
@@ -8027,7 +7909,7 @@ var DesignHeader = ({
|
|
|
8027
7909
|
children: "Admin"
|
|
8028
7910
|
}
|
|
8029
7911
|
),
|
|
8030
|
-
/* @__PURE__ */
|
|
7912
|
+
/* @__PURE__ */ jsx92(
|
|
8031
7913
|
DesignButton6,
|
|
8032
7914
|
{
|
|
8033
7915
|
variant: "secondary",
|
|
@@ -8041,20 +7923,20 @@ var DesignHeader = ({
|
|
|
8041
7923
|
]
|
|
8042
7924
|
}
|
|
8043
7925
|
) }),
|
|
8044
|
-
/* @__PURE__ */
|
|
8045
|
-
|
|
7926
|
+
/* @__PURE__ */ jsxs77(
|
|
7927
|
+
Dialog17,
|
|
8046
7928
|
{
|
|
8047
7929
|
as: "div",
|
|
8048
7930
|
className: "lg:hidden",
|
|
8049
7931
|
open: mobileMenuOpen,
|
|
8050
7932
|
onClose: setMobileMenuOpen,
|
|
8051
7933
|
children: [
|
|
8052
|
-
/* @__PURE__ */
|
|
8053
|
-
/* @__PURE__ */
|
|
8054
|
-
/* @__PURE__ */
|
|
8055
|
-
/* @__PURE__ */
|
|
8056
|
-
/* @__PURE__ */
|
|
8057
|
-
/* @__PURE__ */
|
|
7934
|
+
/* @__PURE__ */ jsx92("div", { className: "fixed inset-0 z-10" }),
|
|
7935
|
+
/* @__PURE__ */ jsxs77(Dialog17.Panel, { className: "fixed inset-y-0 right-0 z-10 flex w-full flex-col bg-white shadow-xl sm:max-w-sm", children: [
|
|
7936
|
+
/* @__PURE__ */ jsxs77("div", { className: "flex items-center justify-between p-4", children: [
|
|
7937
|
+
/* @__PURE__ */ jsxs77(Link12, { href: rootPath, className: "flex-shrink-0", children: [
|
|
7938
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: branding.title }),
|
|
7939
|
+
/* @__PURE__ */ jsx92(
|
|
8058
7940
|
CmsImage,
|
|
8059
7941
|
{
|
|
8060
7942
|
src: branding.logo,
|
|
@@ -8067,21 +7949,21 @@ var DesignHeader = ({
|
|
|
8067
7949
|
}
|
|
8068
7950
|
)
|
|
8069
7951
|
] }),
|
|
8070
|
-
/* @__PURE__ */
|
|
7952
|
+
/* @__PURE__ */ jsxs77(
|
|
8071
7953
|
"button",
|
|
8072
7954
|
{
|
|
8073
7955
|
type: "button",
|
|
8074
7956
|
className: "flex items-center justify-center h-12 w-12 rounded-lg bg-gray-100 hover:bg-gray-200 transition-colors duration-200",
|
|
8075
7957
|
onClick: () => setMobileMenuOpen(false),
|
|
8076
7958
|
children: [
|
|
8077
|
-
/* @__PURE__ */
|
|
8078
|
-
/* @__PURE__ */
|
|
7959
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: "Close menu" }),
|
|
7960
|
+
/* @__PURE__ */ jsx92(XMarkIcon4, { className: "h-8 w-8 text-gray-700", "aria-hidden": "true" })
|
|
8079
7961
|
]
|
|
8080
7962
|
}
|
|
8081
7963
|
)
|
|
8082
7964
|
] }),
|
|
8083
|
-
/* @__PURE__ */
|
|
8084
|
-
!mainMenu.some((menuItem) => menuItem.text === "Home") && /* @__PURE__ */
|
|
7965
|
+
/* @__PURE__ */ jsxs77("div", { className: "flex-1 flex flex-col justify-between p-6", children: [
|
|
7966
|
+
!mainMenu.some((menuItem) => menuItem.text === "Home") && /* @__PURE__ */ jsx92("div", { className: "py-2", children: /* @__PURE__ */ jsx92(
|
|
8085
7967
|
Link12,
|
|
8086
7968
|
{
|
|
8087
7969
|
href: rootPath,
|
|
@@ -8091,10 +7973,10 @@ var DesignHeader = ({
|
|
|
8091
7973
|
}
|
|
8092
7974
|
) }),
|
|
8093
7975
|
mainMenu.map(
|
|
8094
|
-
(menuItem) => menuItem.subMenu ? /* @__PURE__ */
|
|
8095
|
-
/* @__PURE__ */
|
|
7976
|
+
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ jsxs77(Popover2, { className: "relative", children: [
|
|
7977
|
+
/* @__PURE__ */ jsxs77(Popover2.Button, { className: "flex w-full justify-between items-center text-lg font-semibold text-gray-900 hover:text-gray-700 transition-colors duration-200 outline-none border-none py-2", children: [
|
|
8096
7978
|
menuItem.text,
|
|
8097
|
-
/* @__PURE__ */
|
|
7979
|
+
/* @__PURE__ */ jsx92(
|
|
8098
7980
|
ChevronDownIcon2,
|
|
8099
7981
|
{
|
|
8100
7982
|
className: "h-5 w-5 flex-none text-gray-500",
|
|
@@ -8102,7 +7984,7 @@ var DesignHeader = ({
|
|
|
8102
7984
|
}
|
|
8103
7985
|
)
|
|
8104
7986
|
] }),
|
|
8105
|
-
/* @__PURE__ */
|
|
7987
|
+
/* @__PURE__ */ jsx92(Popover2.Panel, { className: "relative mt-2 ml-4", children: /* @__PURE__ */ jsx92("div", { className: "space-y-3", children: menuItem.subMenu.map((subItem) => /* @__PURE__ */ jsx92("div", { children: /* @__PURE__ */ jsx92(
|
|
8106
7988
|
Link12,
|
|
8107
7989
|
{
|
|
8108
7990
|
href: subItem.link,
|
|
@@ -8112,7 +7994,7 @@ var DesignHeader = ({
|
|
|
8112
7994
|
children: subItem.text
|
|
8113
7995
|
}
|
|
8114
7996
|
) }, subItem.text)) }) })
|
|
8115
|
-
] }, menuItem.text) : /* @__PURE__ */
|
|
7997
|
+
] }, menuItem.text) : /* @__PURE__ */ jsx92("div", { children: /* @__PURE__ */ jsx92(
|
|
8116
7998
|
Link12,
|
|
8117
7999
|
{
|
|
8118
8000
|
href: menuItem.link,
|
|
@@ -8123,9 +8005,9 @@ var DesignHeader = ({
|
|
|
8123
8005
|
}
|
|
8124
8006
|
) }, menuItem.text)
|
|
8125
8007
|
),
|
|
8126
|
-
canLogin && /* @__PURE__ */
|
|
8127
|
-
sessionStatus === "unauthenticated" && /* @__PURE__ */
|
|
8128
|
-
/* @__PURE__ */
|
|
8008
|
+
canLogin && /* @__PURE__ */ jsxs77("div", { className: "pt-6 mt-auto", children: [
|
|
8009
|
+
sessionStatus === "unauthenticated" && /* @__PURE__ */ jsxs77("div", { className: "flex gap-4 mb-4", children: [
|
|
8010
|
+
/* @__PURE__ */ jsx92(
|
|
8129
8011
|
"button",
|
|
8130
8012
|
{
|
|
8131
8013
|
type: "button",
|
|
@@ -8137,7 +8019,7 @@ var DesignHeader = ({
|
|
|
8137
8019
|
children: "Login"
|
|
8138
8020
|
}
|
|
8139
8021
|
),
|
|
8140
|
-
canSignup && /* @__PURE__ */
|
|
8022
|
+
canSignup && /* @__PURE__ */ jsx92(
|
|
8141
8023
|
Link12,
|
|
8142
8024
|
{
|
|
8143
8025
|
href: `${isFeatureEnabled ? "/signup" : "/register"}`,
|
|
@@ -8147,8 +8029,8 @@ var DesignHeader = ({
|
|
|
8147
8029
|
}
|
|
8148
8030
|
)
|
|
8149
8031
|
] }),
|
|
8150
|
-
sessionStatus === "authenticated" && /* @__PURE__ */
|
|
8151
|
-
isAdmin2 && /* @__PURE__ */
|
|
8032
|
+
sessionStatus === "authenticated" && /* @__PURE__ */ jsxs77("div", { className: "space-y-3 mb-4", children: [
|
|
8033
|
+
isAdmin2 && /* @__PURE__ */ jsx92(
|
|
8152
8034
|
Link12,
|
|
8153
8035
|
{
|
|
8154
8036
|
href: `${isFeatureEnabled ? "/admin/cluster" : "/admin"}`,
|
|
@@ -8157,7 +8039,7 @@ var DesignHeader = ({
|
|
|
8157
8039
|
children: "Admin"
|
|
8158
8040
|
}
|
|
8159
8041
|
),
|
|
8160
|
-
/* @__PURE__ */
|
|
8042
|
+
/* @__PURE__ */ jsx92(
|
|
8161
8043
|
"button",
|
|
8162
8044
|
{
|
|
8163
8045
|
type: "button",
|
|
@@ -8170,8 +8052,8 @@ var DesignHeader = ({
|
|
|
8170
8052
|
}
|
|
8171
8053
|
)
|
|
8172
8054
|
] }),
|
|
8173
|
-
/* @__PURE__ */
|
|
8174
|
-
/* @__PURE__ */
|
|
8055
|
+
/* @__PURE__ */ jsx92("div", { className: "pt-4", children: /* @__PURE__ */ jsxs77("div", { className: "flex flex-wrap gap-4 text-sm text-gray-600", children: [
|
|
8056
|
+
/* @__PURE__ */ jsx92(
|
|
8175
8057
|
Link12,
|
|
8176
8058
|
{
|
|
8177
8059
|
href: "/page/terms-of-use",
|
|
@@ -8180,7 +8062,7 @@ var DesignHeader = ({
|
|
|
8180
8062
|
children: "Terms of Use"
|
|
8181
8063
|
}
|
|
8182
8064
|
),
|
|
8183
|
-
/* @__PURE__ */
|
|
8065
|
+
/* @__PURE__ */ jsx92(
|
|
8184
8066
|
Link12,
|
|
8185
8067
|
{
|
|
8186
8068
|
href: "/page/privacy-policy",
|
|
@@ -8189,7 +8071,7 @@ var DesignHeader = ({
|
|
|
8189
8071
|
children: "Privacy Policy"
|
|
8190
8072
|
}
|
|
8191
8073
|
),
|
|
8192
|
-
/* @__PURE__ */
|
|
8074
|
+
/* @__PURE__ */ jsx92(
|
|
8193
8075
|
Link12,
|
|
8194
8076
|
{
|
|
8195
8077
|
href: "/page/language",
|
|
@@ -8201,7 +8083,7 @@ var DesignHeader = ({
|
|
|
8201
8083
|
] }) })
|
|
8202
8084
|
] })
|
|
8203
8085
|
] }),
|
|
8204
|
-
/* @__PURE__ */
|
|
8086
|
+
/* @__PURE__ */ jsx92(
|
|
8205
8087
|
Notification,
|
|
8206
8088
|
{
|
|
8207
8089
|
title: "Please login to your Recodo account on your desktop",
|
|
@@ -8230,7 +8112,7 @@ import {
|
|
|
8230
8112
|
} from "react";
|
|
8231
8113
|
import { useDebounce } from "@geowiki/design-system";
|
|
8232
8114
|
import { DesignButton as DesignButton7, Body18m as Body18m2 } from "@geowiki/design-system";
|
|
8233
|
-
import { jsx as
|
|
8115
|
+
import { jsx as jsx93, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
8234
8116
|
var SearchInput = ({
|
|
8235
8117
|
textButton,
|
|
8236
8118
|
placeholder,
|
|
@@ -8260,14 +8142,14 @@ var SearchInput = ({
|
|
|
8260
8142
|
(_a = ref.current) == null ? void 0 : _a.focus();
|
|
8261
8143
|
}
|
|
8262
8144
|
}, [value]);
|
|
8263
|
-
return /* @__PURE__ */
|
|
8145
|
+
return /* @__PURE__ */ jsx93(
|
|
8264
8146
|
"div",
|
|
8265
8147
|
{
|
|
8266
8148
|
className: "w-auto border border-zinc-300 rounded-full lg:p-1",
|
|
8267
8149
|
"data-component": "DesignSearchInput",
|
|
8268
|
-
children: /* @__PURE__ */
|
|
8269
|
-
/* @__PURE__ */
|
|
8270
|
-
/* @__PURE__ */
|
|
8150
|
+
children: /* @__PURE__ */ jsxs78("div", { className: "flex flex-row", children: [
|
|
8151
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex items-center justify-start pl-6 basis-3/4", children: [
|
|
8152
|
+
/* @__PURE__ */ jsxs78(
|
|
8271
8153
|
"svg",
|
|
8272
8154
|
{
|
|
8273
8155
|
width: "16",
|
|
@@ -8276,8 +8158,8 @@ var SearchInput = ({
|
|
|
8276
8158
|
fill: "none",
|
|
8277
8159
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8278
8160
|
children: [
|
|
8279
|
-
/* @__PURE__ */
|
|
8280
|
-
/* @__PURE__ */
|
|
8161
|
+
/* @__PURE__ */ jsx93("path", { d: "M10 10L15 15", stroke: "black" }),
|
|
8162
|
+
/* @__PURE__ */ jsx93(
|
|
8281
8163
|
"path",
|
|
8282
8164
|
{
|
|
8283
8165
|
d: "M11.5 6C11.5 9.03757 9.03757 11.5 6 11.5C2.96243 11.5 0.5 9.03757 0.5 6C0.5 2.96243 2.96243 0.5 6 0.5C9.03757 0.5 11.5 2.96243 11.5 6Z",
|
|
@@ -8287,7 +8169,7 @@ var SearchInput = ({
|
|
|
8287
8169
|
]
|
|
8288
8170
|
}
|
|
8289
8171
|
),
|
|
8290
|
-
/* @__PURE__ */
|
|
8172
|
+
/* @__PURE__ */ jsx93(
|
|
8291
8173
|
"input",
|
|
8292
8174
|
{
|
|
8293
8175
|
ref,
|
|
@@ -8299,7 +8181,7 @@ var SearchInput = ({
|
|
|
8299
8181
|
}
|
|
8300
8182
|
)
|
|
8301
8183
|
] }),
|
|
8302
|
-
/* @__PURE__ */
|
|
8184
|
+
/* @__PURE__ */ jsx93("div", { className: "hidden lg:block lg:basis-1/4", children: /* @__PURE__ */ jsx93("div", { className: "flex float-right", children: /* @__PURE__ */ jsx93(DesignButton7, { onSubmit: () => onUpdate(searchStr), children: /* @__PURE__ */ jsx93(Body18m2, { children: textButton }) }) }) })
|
|
8303
8185
|
] })
|
|
8304
8186
|
}
|
|
8305
8187
|
);
|
|
@@ -8318,7 +8200,7 @@ import {
|
|
|
8318
8200
|
DesignSelectValue as DesignSelectValue2
|
|
8319
8201
|
} from "@geowiki/design-system";
|
|
8320
8202
|
import { Body15m } from "@geowiki/design-system";
|
|
8321
|
-
import { jsx as
|
|
8203
|
+
import { jsx as jsx94, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
8322
8204
|
var DesignDashboardPagination = ({
|
|
8323
8205
|
totalCount,
|
|
8324
8206
|
currentPage,
|
|
@@ -8348,13 +8230,13 @@ var DesignDashboardPagination = ({
|
|
|
8348
8230
|
const onPrevious = () => {
|
|
8349
8231
|
onPageChange(currentPage - 1);
|
|
8350
8232
|
};
|
|
8351
|
-
return /* @__PURE__ */
|
|
8352
|
-
currentPage === 1 ? null : /* @__PURE__ */
|
|
8233
|
+
return /* @__PURE__ */ jsx94("div", { "data-component": "DesignDashboardPagination", children: /* @__PURE__ */ jsx94("div", { className: "flex justify-start items-center", children: /* @__PURE__ */ jsxs79("div", { className: "w-auto h-8 isolate inline-flex text-zinc-500", children: [
|
|
8234
|
+
currentPage === 1 ? null : /* @__PURE__ */ jsx94(
|
|
8353
8235
|
"button",
|
|
8354
8236
|
{
|
|
8355
8237
|
onClick: onPrevious,
|
|
8356
8238
|
className: "relative flex flex-start items-center justify-start",
|
|
8357
|
-
children: /* @__PURE__ */
|
|
8239
|
+
children: /* @__PURE__ */ jsx94(
|
|
8358
8240
|
"svg",
|
|
8359
8241
|
{
|
|
8360
8242
|
width: "24",
|
|
@@ -8362,7 +8244,7 @@ var DesignDashboardPagination = ({
|
|
|
8362
8244
|
viewBox: "0 0 24 24",
|
|
8363
8245
|
fill: "none",
|
|
8364
8246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8365
|
-
children: /* @__PURE__ */
|
|
8247
|
+
children: /* @__PURE__ */ jsx94(
|
|
8366
8248
|
"path",
|
|
8367
8249
|
{
|
|
8368
8250
|
d: "M15 6L9 12L15 18",
|
|
@@ -8377,7 +8259,7 @@ var DesignDashboardPagination = ({
|
|
|
8377
8259
|
}
|
|
8378
8260
|
),
|
|
8379
8261
|
paginationRange == null ? void 0 : paginationRange.map((pageNumber) => {
|
|
8380
|
-
return /* @__PURE__ */
|
|
8262
|
+
return /* @__PURE__ */ jsx94(
|
|
8381
8263
|
"button",
|
|
8382
8264
|
{
|
|
8383
8265
|
className: classnames3(
|
|
@@ -8399,12 +8281,12 @@ var DesignDashboardPagination = ({
|
|
|
8399
8281
|
pageNumber
|
|
8400
8282
|
);
|
|
8401
8283
|
}),
|
|
8402
|
-
currentPage === lastPage ? null : /* @__PURE__ */
|
|
8284
|
+
currentPage === lastPage ? null : /* @__PURE__ */ jsx94(
|
|
8403
8285
|
"button",
|
|
8404
8286
|
{
|
|
8405
8287
|
onClick: onNext,
|
|
8406
8288
|
className: "relative inline-flex items-center",
|
|
8407
|
-
children: /* @__PURE__ */
|
|
8289
|
+
children: /* @__PURE__ */ jsx94(
|
|
8408
8290
|
"svg",
|
|
8409
8291
|
{
|
|
8410
8292
|
width: "24",
|
|
@@ -8412,7 +8294,7 @@ var DesignDashboardPagination = ({
|
|
|
8412
8294
|
viewBox: "0 0 24 24",
|
|
8413
8295
|
fill: "none",
|
|
8414
8296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8415
|
-
children: /* @__PURE__ */
|
|
8297
|
+
children: /* @__PURE__ */ jsx94(
|
|
8416
8298
|
"path",
|
|
8417
8299
|
{
|
|
8418
8300
|
d: "M9 18L15 12L9 6",
|
|
@@ -8426,10 +8308,10 @@ var DesignDashboardPagination = ({
|
|
|
8426
8308
|
)
|
|
8427
8309
|
}
|
|
8428
8310
|
),
|
|
8429
|
-
/* @__PURE__ */
|
|
8430
|
-
/* @__PURE__ */
|
|
8431
|
-
/* @__PURE__ */
|
|
8432
|
-
/* @__PURE__ */
|
|
8311
|
+
/* @__PURE__ */ jsx94(Body15m, { className: "opacity-70 pr-2 pl-2 text-zinc-500 inline-flex items-center", children: "Showing" }),
|
|
8312
|
+
/* @__PURE__ */ jsxs79(DesignSelect2, { children: [
|
|
8313
|
+
/* @__PURE__ */ jsx94(DesignSelectTrigger2, { className: "border-0 w-auto h-auto gap-1 px-3 py-2 text-black font-medium", children: /* @__PURE__ */ jsx94(DesignSelectValue2, { placeholder: currentPage }) }),
|
|
8314
|
+
/* @__PURE__ */ jsx94(DesignSelectContent2, { children: /* @__PURE__ */ jsx94(DesignSelectGroup2, { children: pageSegments.map((segment) => /* @__PURE__ */ jsx94(
|
|
8433
8315
|
DesignSelectItem2,
|
|
8434
8316
|
{
|
|
8435
8317
|
value: `${segment}`,
|
|
@@ -8438,7 +8320,7 @@ var DesignDashboardPagination = ({
|
|
|
8438
8320
|
segment.toString()
|
|
8439
8321
|
)) }) })
|
|
8440
8322
|
] }),
|
|
8441
|
-
/* @__PURE__ */
|
|
8323
|
+
/* @__PURE__ */ jsxs79(Body15m, { className: "opacity-70 pl-2 text-zinc-500 inline-flex items-center", children: [
|
|
8442
8324
|
"of ",
|
|
8443
8325
|
totalCount,
|
|
8444
8326
|
" results"
|
|
@@ -8455,9 +8337,9 @@ import {
|
|
|
8455
8337
|
DesignSelectTrigger as DesignSelectTrigger3,
|
|
8456
8338
|
DesignSelectValue as DesignSelectValue3
|
|
8457
8339
|
} from "@geowiki/design-system";
|
|
8458
|
-
import { useRouter as useRouter5 } from "
|
|
8340
|
+
import { useRouter as useRouter5 } from "@geowiki/core";
|
|
8459
8341
|
import { useState as useState40, useEffect as useEffect20 } from "react";
|
|
8460
|
-
import { jsx as
|
|
8342
|
+
import { jsx as jsx95, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
8461
8343
|
var DesignSort = ({ totalCount, name }) => {
|
|
8462
8344
|
const router = useRouter5();
|
|
8463
8345
|
const sortingTypes = ["Most recent", "Old to new"];
|
|
@@ -8479,21 +8361,21 @@ var DesignSort = ({ totalCount, name }) => {
|
|
|
8479
8361
|
})
|
|
8480
8362
|
});
|
|
8481
8363
|
};
|
|
8482
|
-
return /* @__PURE__ */
|
|
8364
|
+
return /* @__PURE__ */ jsxs80(
|
|
8483
8365
|
"div",
|
|
8484
8366
|
{
|
|
8485
8367
|
className: "flex justify-center items-center gap-2 text-base font-normal leading-tight",
|
|
8486
8368
|
"data-component": "DesignSort",
|
|
8487
8369
|
children: [
|
|
8488
|
-
/* @__PURE__ */
|
|
8489
|
-
/* @__PURE__ */
|
|
8490
|
-
/* @__PURE__ */
|
|
8370
|
+
/* @__PURE__ */ jsxs80("div", { className: "flex justify-center items-center space-x-2 text-zinc-500 ", children: [
|
|
8371
|
+
/* @__PURE__ */ jsx95("span", { children: totalCount }),
|
|
8372
|
+
/* @__PURE__ */ jsx95("span", { children: name })
|
|
8491
8373
|
] }),
|
|
8492
|
-
/* @__PURE__ */
|
|
8493
|
-
/* @__PURE__ */
|
|
8494
|
-
/* @__PURE__ */
|
|
8495
|
-
/* @__PURE__ */
|
|
8496
|
-
/* @__PURE__ */
|
|
8374
|
+
/* @__PURE__ */ jsx95("div", { className: "w-1 h-1 rounded-full bg-zinc-500" }),
|
|
8375
|
+
/* @__PURE__ */ jsx95("span", { children: "Sort by" }),
|
|
8376
|
+
/* @__PURE__ */ jsxs80(DesignSelect3, { onValueChange: handleChangeValue, value, children: [
|
|
8377
|
+
/* @__PURE__ */ jsx95(DesignSelectTrigger3, { className: "border-0 w-auto h-auto data-[placeholder]:text-primary p-0 text-primary font-semibold", children: /* @__PURE__ */ jsx95(DesignSelectValue3, { placeholder: value }) }),
|
|
8378
|
+
/* @__PURE__ */ jsx95(DesignSelectContent3, { children: /* @__PURE__ */ jsx95(DesignSelectGroup3, { children: sortingTypes == null ? void 0 : sortingTypes.map((sortingType) => /* @__PURE__ */ jsx95(DesignSelectItem3, { value: sortingType, children: sortingType }, sortingType)) }) })
|
|
8497
8379
|
] }, value)
|
|
8498
8380
|
]
|
|
8499
8381
|
}
|
|
@@ -8503,9 +8385,9 @@ var DesignSort = ({ totalCount, name }) => {
|
|
|
8503
8385
|
// src/components/DesignElements/filterDropdown.tsx
|
|
8504
8386
|
import { Disclosure as Disclosure2 } from "@headlessui/react";
|
|
8505
8387
|
import { ChevronDown } from "lucide-react";
|
|
8506
|
-
import { useRouter as useRouter6 } from "
|
|
8388
|
+
import { useRouter as useRouter6 } from "@geowiki/core";
|
|
8507
8389
|
import { DesignCheckbox as Checkbox9 } from "@geowiki/design-system";
|
|
8508
|
-
import { Fragment as
|
|
8390
|
+
import { Fragment as Fragment23, jsx as jsx96, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8509
8391
|
var FilterDropdown = ({
|
|
8510
8392
|
name,
|
|
8511
8393
|
filterKey,
|
|
@@ -8538,27 +8420,27 @@ var FilterDropdown = ({
|
|
|
8538
8420
|
});
|
|
8539
8421
|
}
|
|
8540
8422
|
};
|
|
8541
|
-
return /* @__PURE__ */
|
|
8423
|
+
return /* @__PURE__ */ jsx96(
|
|
8542
8424
|
Disclosure2,
|
|
8543
8425
|
{
|
|
8544
8426
|
"data-component": "FilterDropdown",
|
|
8545
8427
|
defaultOpen: filterValues.length > 0,
|
|
8546
|
-
children: ({ open }) => /* @__PURE__ */
|
|
8547
|
-
/* @__PURE__ */
|
|
8548
|
-
/* @__PURE__ */
|
|
8428
|
+
children: ({ open }) => /* @__PURE__ */ jsxs81(Fragment23, { children: [
|
|
8429
|
+
/* @__PURE__ */ jsxs81(Disclosure2.Button, { className: "w-80 flex-row flex justify-start items-center gap-2 border-zinc-300 ", children: [
|
|
8430
|
+
/* @__PURE__ */ jsx96(
|
|
8549
8431
|
ChevronDown,
|
|
8550
8432
|
{
|
|
8551
8433
|
className: `${open ? "rotate-180 transform" : ""} h-7 w-7 `
|
|
8552
8434
|
}
|
|
8553
8435
|
),
|
|
8554
|
-
/* @__PURE__ */
|
|
8436
|
+
/* @__PURE__ */ jsx96("span", { className: "text-lg font-semibold leading-relaxed ", children: name })
|
|
8555
8437
|
] }),
|
|
8556
|
-
/* @__PURE__ */
|
|
8438
|
+
/* @__PURE__ */ jsx96(Disclosure2.Panel, { className: "space-y-2", children: sortItems.map((sortItem) => /* @__PURE__ */ jsxs81(
|
|
8557
8439
|
"div",
|
|
8558
8440
|
{
|
|
8559
8441
|
className: "flex justify-start items-center space-x-3",
|
|
8560
8442
|
children: [
|
|
8561
|
-
/* @__PURE__ */
|
|
8443
|
+
/* @__PURE__ */ jsx96(
|
|
8562
8444
|
Checkbox9,
|
|
8563
8445
|
{
|
|
8564
8446
|
id: sortItem.key,
|
|
@@ -8566,7 +8448,7 @@ var FilterDropdown = ({
|
|
|
8566
8448
|
checked: filterValues.includes(sortItem.key)
|
|
8567
8449
|
}
|
|
8568
8450
|
),
|
|
8569
|
-
/* @__PURE__ */
|
|
8451
|
+
/* @__PURE__ */ jsx96("div", { className: "text-[15px] font-normal leading-tight", children: sortItem.value })
|
|
8570
8452
|
]
|
|
8571
8453
|
},
|
|
8572
8454
|
sortItem.key
|
|
@@ -8588,18 +8470,18 @@ import {
|
|
|
8588
8470
|
CarouselNext,
|
|
8589
8471
|
CarouselPrevious
|
|
8590
8472
|
} from "@geowiki/design-system";
|
|
8591
|
-
import { jsx as
|
|
8473
|
+
import { jsx as jsx97, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8592
8474
|
var DesignTestimonials = ({ testimonials }) => {
|
|
8593
|
-
return /* @__PURE__ */
|
|
8475
|
+
return /* @__PURE__ */ jsx97(
|
|
8594
8476
|
"div",
|
|
8595
8477
|
{
|
|
8596
8478
|
className: "bg-accent-secondary py-8 lg:py-16 px-8 rounded-xl mt-8 lg:mt-24",
|
|
8597
8479
|
"data-component": "DesignTestimonials",
|
|
8598
|
-
children: /* @__PURE__ */
|
|
8599
|
-
/* @__PURE__ */
|
|
8600
|
-
/* @__PURE__ */
|
|
8601
|
-
/* @__PURE__ */
|
|
8602
|
-
/* @__PURE__ */
|
|
8480
|
+
children: /* @__PURE__ */ jsxs82(Carousel4, { className: "container mx-auto w-full", loop: true, children: [
|
|
8481
|
+
/* @__PURE__ */ jsx97(CarouselContent, { children: testimonials.map((testimonial, index) => /* @__PURE__ */ jsx97(CarouselItem, { children: /* @__PURE__ */ jsxs82("div", { className: "p-3 h-full flex-col flex justify-center space-y-2", children: [
|
|
8482
|
+
/* @__PURE__ */ jsx97(H7Design, { className: "text-center mx-auto max-w-7xl", children: testimonial.info }),
|
|
8483
|
+
/* @__PURE__ */ jsxs82("div", { className: "flex flex-col justify-between items-center space-y-6 pt-6", children: [
|
|
8484
|
+
/* @__PURE__ */ jsx97(Avatar2, { className: "w-[76px] h-[76px]", children: /* @__PURE__ */ jsx97(
|
|
8603
8485
|
CmsImage,
|
|
8604
8486
|
{
|
|
8605
8487
|
src: testimonial.imagePath,
|
|
@@ -8608,14 +8490,14 @@ var DesignTestimonials = ({ testimonials }) => {
|
|
|
8608
8490
|
className: "object-cover"
|
|
8609
8491
|
}
|
|
8610
8492
|
) }),
|
|
8611
|
-
/* @__PURE__ */
|
|
8612
|
-
/* @__PURE__ */
|
|
8613
|
-
/* @__PURE__ */
|
|
8493
|
+
/* @__PURE__ */ jsxs82("div", { className: " text-center lg:flex items-center lg:space-x-4", children: [
|
|
8494
|
+
/* @__PURE__ */ jsx97(Body18m3, { children: testimonial.name }),
|
|
8495
|
+
/* @__PURE__ */ jsx97(Body183, { className: "pt-1 lg:pt-0", children: testimonial.position })
|
|
8614
8496
|
] })
|
|
8615
8497
|
] })
|
|
8616
8498
|
] }) }, index)) }),
|
|
8617
|
-
/* @__PURE__ */
|
|
8618
|
-
/* @__PURE__ */
|
|
8499
|
+
/* @__PURE__ */ jsx97(CarouselPrevious, { className: "-left-4" }),
|
|
8500
|
+
/* @__PURE__ */ jsx97(CarouselNext, { className: "-right-4" })
|
|
8619
8501
|
] })
|
|
8620
8502
|
}
|
|
8621
8503
|
);
|
|
@@ -8623,19 +8505,19 @@ var DesignTestimonials = ({ testimonials }) => {
|
|
|
8623
8505
|
|
|
8624
8506
|
// src/components/DesignElements/BannerFollowLinks.tsx
|
|
8625
8507
|
import { H2Design, H9Design } from "@geowiki/design-system";
|
|
8626
|
-
import Link13 from "
|
|
8508
|
+
import { Link as Link13 } from "@geowiki/core";
|
|
8627
8509
|
import { v4 as v49 } from "uuid";
|
|
8628
|
-
import { jsx as
|
|
8510
|
+
import { jsx as jsx98, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8629
8511
|
var BannerFollowLinks = ({ title, links }) => {
|
|
8630
|
-
return /* @__PURE__ */
|
|
8631
|
-
/* @__PURE__ */
|
|
8632
|
-
/* @__PURE__ */
|
|
8512
|
+
return /* @__PURE__ */ jsxs83("div", { className: " py-8 mt-6 flex-col flex items-center justify-center bg-primary text-white rounded-2xl lg:pt-[100px] lg:mt-10 lg:pb-[88px] space-y-8", children: [
|
|
8513
|
+
/* @__PURE__ */ jsx98(H2Design, { className: "mx-auto max-w-5xl text-center", children: title }),
|
|
8514
|
+
/* @__PURE__ */ jsx98("div", { className: "flex space-x-8", children: links.map((link) => /* @__PURE__ */ jsx98(
|
|
8633
8515
|
Link13,
|
|
8634
8516
|
{
|
|
8635
8517
|
href: link.href,
|
|
8636
8518
|
target: link.isNewTab ? "_blank" : "_self",
|
|
8637
8519
|
rel: "noreferrer",
|
|
8638
|
-
children: /* @__PURE__ */
|
|
8520
|
+
children: /* @__PURE__ */ jsx98(H9Design, { children: link.text })
|
|
8639
8521
|
},
|
|
8640
8522
|
v49()
|
|
8641
8523
|
)) })
|
|
@@ -8646,14 +8528,13 @@ var BannerFollowLinks = ({ title, links }) => {
|
|
|
8646
8528
|
import { TagsGroup } from "@geowiki/design-system";
|
|
8647
8529
|
import { useConfigSettings as useConfigSettings3 } from "@geowiki/core";
|
|
8648
8530
|
import { LoaderFull as LoaderFull4 } from "@geowiki/design-system";
|
|
8649
|
-
import { jsx as
|
|
8531
|
+
import { jsx as jsx99, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8650
8532
|
var ListTagsGroup = ({ cluster }) => {
|
|
8651
8533
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
8652
8534
|
var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = useConfigSettings3();
|
|
8653
|
-
if (IsConfigSettingsLoaded)
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
/* @__PURE__ */ jsx100(
|
|
8535
|
+
if (IsConfigSettingsLoaded) return /* @__PURE__ */ jsx99(LoaderFull4, {});
|
|
8536
|
+
return /* @__PURE__ */ jsxs84("div", { className: "space-y-6 lg:space-y-10", children: [
|
|
8537
|
+
/* @__PURE__ */ jsx99(
|
|
8657
8538
|
TagsGroup,
|
|
8658
8539
|
{
|
|
8659
8540
|
label: "Farming Systems",
|
|
@@ -8673,7 +8554,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8673
8554
|
)
|
|
8674
8555
|
}
|
|
8675
8556
|
),
|
|
8676
|
-
/* @__PURE__ */
|
|
8557
|
+
/* @__PURE__ */ jsx99(
|
|
8677
8558
|
TagsGroup,
|
|
8678
8559
|
{
|
|
8679
8560
|
label: "Main agricultural areas",
|
|
@@ -8693,7 +8574,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8693
8574
|
)
|
|
8694
8575
|
}
|
|
8695
8576
|
),
|
|
8696
|
-
/* @__PURE__ */
|
|
8577
|
+
/* @__PURE__ */ jsx99(
|
|
8697
8578
|
TagsGroup,
|
|
8698
8579
|
{
|
|
8699
8580
|
label: "Main crops",
|
|
@@ -8711,7 +8592,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8711
8592
|
)
|
|
8712
8593
|
}
|
|
8713
8594
|
),
|
|
8714
|
-
/* @__PURE__ */
|
|
8595
|
+
/* @__PURE__ */ jsx99(
|
|
8715
8596
|
TagsGroup,
|
|
8716
8597
|
{
|
|
8717
8598
|
label: "Livestock",
|
|
@@ -8729,7 +8610,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8729
8610
|
)
|
|
8730
8611
|
}
|
|
8731
8612
|
),
|
|
8732
|
-
/* @__PURE__ */
|
|
8613
|
+
/* @__PURE__ */ jsx99(
|
|
8733
8614
|
TagsGroup,
|
|
8734
8615
|
{
|
|
8735
8616
|
label: "Other landscape elements",
|
|
@@ -8756,7 +8637,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8756
8637
|
)
|
|
8757
8638
|
}
|
|
8758
8639
|
),
|
|
8759
|
-
/* @__PURE__ */
|
|
8640
|
+
/* @__PURE__ */ jsx99(
|
|
8760
8641
|
TagsGroup,
|
|
8761
8642
|
{
|
|
8762
8643
|
label: "Hunting management",
|
|
@@ -8781,7 +8662,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8781
8662
|
)
|
|
8782
8663
|
}
|
|
8783
8664
|
),
|
|
8784
|
-
/* @__PURE__ */
|
|
8665
|
+
/* @__PURE__ */ jsx99(
|
|
8785
8666
|
TagsGroup,
|
|
8786
8667
|
{
|
|
8787
8668
|
label: "Cluster funding",
|
|
@@ -8809,8 +8690,8 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8809
8690
|
|
|
8810
8691
|
// src/components/DesignElements/ApiImage.tsx
|
|
8811
8692
|
import { shimmer as shimmer2, toBase64 as toBase642, useApiImage } from "@geowiki/core";
|
|
8812
|
-
import Image4 from "
|
|
8813
|
-
import { jsx as
|
|
8693
|
+
import { Image as Image4 } from "@geowiki/core";
|
|
8694
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
8814
8695
|
var ApiImage = ({
|
|
8815
8696
|
imageId,
|
|
8816
8697
|
className = "relative h-96",
|
|
@@ -8819,10 +8700,9 @@ var ApiImage = ({
|
|
|
8819
8700
|
height = 0
|
|
8820
8701
|
}) => {
|
|
8821
8702
|
var { data, isLoading } = useApiImage(imageId);
|
|
8822
|
-
if (isLoading)
|
|
8823
|
-
return null;
|
|
8703
|
+
if (isLoading) return null;
|
|
8824
8704
|
if (width > 0 && height > 0) {
|
|
8825
|
-
return /* @__PURE__ */
|
|
8705
|
+
return /* @__PURE__ */ jsx100(
|
|
8826
8706
|
Image4,
|
|
8827
8707
|
{
|
|
8828
8708
|
className,
|
|
@@ -8836,7 +8716,7 @@ var ApiImage = ({
|
|
|
8836
8716
|
}
|
|
8837
8717
|
);
|
|
8838
8718
|
}
|
|
8839
|
-
return /* @__PURE__ */
|
|
8719
|
+
return /* @__PURE__ */ jsx100("div", { className, children: /* @__PURE__ */ jsx100(
|
|
8840
8720
|
Image4,
|
|
8841
8721
|
{
|
|
8842
8722
|
className: "object-cover rounded-xl",
|
|
@@ -8852,39 +8732,39 @@ var ApiImage = ({
|
|
|
8852
8732
|
|
|
8853
8733
|
// src/components/DesignElements/SignUpBanner.tsx
|
|
8854
8734
|
import { H3Design, Body18 as Body184, DesignButton as DesignButton8 } from "@geowiki/design-system";
|
|
8855
|
-
import Link14 from "
|
|
8735
|
+
import { Link as Link14 } from "@geowiki/core";
|
|
8856
8736
|
import { v4 as v410 } from "uuid";
|
|
8857
|
-
import { jsx as
|
|
8737
|
+
import { jsx as jsx101, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
8858
8738
|
var SignUpBanner = ({
|
|
8859
8739
|
title,
|
|
8860
8740
|
text,
|
|
8861
8741
|
button,
|
|
8862
8742
|
imagePaths
|
|
8863
8743
|
}) => {
|
|
8864
|
-
return /* @__PURE__ */
|
|
8744
|
+
return /* @__PURE__ */ jsx101(
|
|
8865
8745
|
"div",
|
|
8866
8746
|
{
|
|
8867
8747
|
className: "h-98 bg-accent-secondary rounded-xl ",
|
|
8868
8748
|
"data-component": "SignUpBanner",
|
|
8869
|
-
children: /* @__PURE__ */
|
|
8870
|
-
/* @__PURE__ */
|
|
8871
|
-
/* @__PURE__ */
|
|
8872
|
-
/* @__PURE__ */
|
|
8873
|
-
/* @__PURE__ */
|
|
8874
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
8749
|
+
children: /* @__PURE__ */ jsxs85("div", { className: "container mx-auto mt-6 px-5 py-6 lg:flex lg:justify-between lg:items-center lg:p-10 lg:mt-20 ", children: [
|
|
8750
|
+
/* @__PURE__ */ jsxs85("div", { className: "lg:h-[368px] lg:flex lg:flex-col lg:justify-between lg:px-4 lg:items-start", children: [
|
|
8751
|
+
/* @__PURE__ */ jsx101("div", { children: /* @__PURE__ */ jsx101(H3Design, { className: "pb-4 g:pb-0", children: title }) }),
|
|
8752
|
+
/* @__PURE__ */ jsxs85("div", { className: "space-y-8", children: [
|
|
8753
|
+
/* @__PURE__ */ jsx101(Body184, { className: " max-w-sm", children: text }),
|
|
8754
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx101("div", { className: "hidden lg:block", children: /* @__PURE__ */ jsx101(
|
|
8875
8755
|
Link14,
|
|
8876
8756
|
{
|
|
8877
8757
|
href: button.link,
|
|
8878
8758
|
target: button.isNewTab ? "_blank" : "_self",
|
|
8879
8759
|
rel: "noreferrer",
|
|
8880
|
-
children: /* @__PURE__ */
|
|
8760
|
+
children: /* @__PURE__ */ jsx101(DesignButton8, { children: button.text })
|
|
8881
8761
|
}
|
|
8882
8762
|
) })
|
|
8883
8763
|
] })
|
|
8884
8764
|
] }),
|
|
8885
|
-
/* @__PURE__ */
|
|
8886
|
-
/* @__PURE__ */
|
|
8887
|
-
imagePaths.map((path) => /* @__PURE__ */
|
|
8765
|
+
/* @__PURE__ */ jsxs85("div", { className: "grid grid-cols-2 grid-rows-3 gap-[10px] py-6 md:grid-cols-3 md:grid-rows-2 md:gap-6 md:py-6 lg:grid-cols-3 lg:grid-rows-2 lg:gap-6 lg:p-0", children: [
|
|
8766
|
+
/* @__PURE__ */ jsx101("div", { className: "hidden lg:inline" }),
|
|
8767
|
+
imagePaths.map((path) => /* @__PURE__ */ jsx101(
|
|
8888
8768
|
CmsImage,
|
|
8889
8769
|
{
|
|
8890
8770
|
src: path,
|
|
@@ -8895,13 +8775,13 @@ var SignUpBanner = ({
|
|
|
8895
8775
|
v410()
|
|
8896
8776
|
))
|
|
8897
8777
|
] }),
|
|
8898
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
8778
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx101("div", { className: "lg:hidden w-full", children: /* @__PURE__ */ jsx101(
|
|
8899
8779
|
Link14,
|
|
8900
8780
|
{
|
|
8901
8781
|
href: button.link,
|
|
8902
8782
|
target: button.isNewTab ? "_blank" : "_self",
|
|
8903
8783
|
rel: "noreferrer",
|
|
8904
|
-
children: /* @__PURE__ */
|
|
8784
|
+
children: /* @__PURE__ */ jsx101(DesignButton8, { className: "w-full", children: button.text })
|
|
8905
8785
|
}
|
|
8906
8786
|
) })
|
|
8907
8787
|
] })
|
|
@@ -8910,8 +8790,8 @@ var SignUpBanner = ({
|
|
|
8910
8790
|
};
|
|
8911
8791
|
|
|
8912
8792
|
// src/components/DesignElements/RoutePagination.tsx
|
|
8913
|
-
import { useRouter as useRouter7 } from "
|
|
8914
|
-
import { jsx as
|
|
8793
|
+
import { useRouter as useRouter7 } from "@geowiki/core";
|
|
8794
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
8915
8795
|
var RoutePagination = ({
|
|
8916
8796
|
pageSize,
|
|
8917
8797
|
total
|
|
@@ -8919,7 +8799,7 @@ var RoutePagination = ({
|
|
|
8919
8799
|
const router = useRouter7();
|
|
8920
8800
|
const { page } = router.query;
|
|
8921
8801
|
const currentPage = parseInt(page) || 1;
|
|
8922
|
-
return /* @__PURE__ */
|
|
8802
|
+
return /* @__PURE__ */ jsx102("div", { children: /* @__PURE__ */ jsx102(
|
|
8923
8803
|
DesignPagination,
|
|
8924
8804
|
{
|
|
8925
8805
|
currentPage,
|
|
@@ -8938,11 +8818,11 @@ var RoutePagination = ({
|
|
|
8938
8818
|
|
|
8939
8819
|
// src/components/DesignElements/LanguagePopup.tsx
|
|
8940
8820
|
import { useEffect as useEffect21, useState as useState41 } from "react";
|
|
8941
|
-
import { Body20m as Body20m3, Body16 as
|
|
8821
|
+
import { Body20m as Body20m3, Body16 as Body164, DesignButton as DesignButton9 } from "@geowiki/design-system";
|
|
8942
8822
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
8943
|
-
import Link15 from "
|
|
8823
|
+
import { Link as Link15 } from "@geowiki/core";
|
|
8944
8824
|
import { getCookie as getCookie3, setCookie as setCookie2 } from "cookies-next";
|
|
8945
|
-
import { jsx as
|
|
8825
|
+
import { jsx as jsx103, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8946
8826
|
var cookieName2 = "recodo_language_popup";
|
|
8947
8827
|
var LanguagePopup = () => {
|
|
8948
8828
|
const [isOpen, setIsOpen] = useState41(false);
|
|
@@ -8956,14 +8836,14 @@ var LanguagePopup = () => {
|
|
|
8956
8836
|
setIsOpen(false);
|
|
8957
8837
|
setCookie2(cookieName2, "closed", { maxAge: 60 * 60 * 24 * 365 });
|
|
8958
8838
|
};
|
|
8959
|
-
return isOpen ? /* @__PURE__ */
|
|
8839
|
+
return isOpen ? /* @__PURE__ */ jsx103(
|
|
8960
8840
|
"div",
|
|
8961
8841
|
{
|
|
8962
8842
|
className: "fixed bottom-0 right-0 z-50 mb-5",
|
|
8963
8843
|
"data-component": "LanguagePopup",
|
|
8964
|
-
children: /* @__PURE__ */
|
|
8965
|
-
/* @__PURE__ */
|
|
8966
|
-
/* @__PURE__ */
|
|
8844
|
+
children: /* @__PURE__ */ jsxs86("div", { className: "w-full max-w-[27rem] h-auto relative bg-accent-secondary rounded-xl p-6", children: [
|
|
8845
|
+
/* @__PURE__ */ jsxs86("div", { className: "flex justify-between items-start", children: [
|
|
8846
|
+
/* @__PURE__ */ jsx103("div", { className: " w-14 h-14 bg-white rounded-2xl flex justify-center items-center", children: /* @__PURE__ */ jsxs86(
|
|
8967
8847
|
"svg",
|
|
8968
8848
|
{
|
|
8969
8849
|
width: "33",
|
|
@@ -8972,14 +8852,14 @@ var LanguagePopup = () => {
|
|
|
8972
8852
|
fill: "none",
|
|
8973
8853
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8974
8854
|
children: [
|
|
8975
|
-
/* @__PURE__ */
|
|
8855
|
+
/* @__PURE__ */ jsx103(
|
|
8976
8856
|
"path",
|
|
8977
8857
|
{
|
|
8978
8858
|
d: "M1.94995 22.212C0.729951 20.892 0 19.121 0 17.001C0 12 4.03 9 9 9C13.97 9 18 12 18 17.001C18 22.002 13.97 25.002 9 25.002C7.72 25.002 6.50991 24.802 5.40991 24.422C4.06991 25.852 1.87996 26.0419 0.459961 25.9919C0.0299609 25.9819 -0.160078 25.432 0.169922 25.152C1.25992 24.273 1.79995 23.173 1.94995 22.212Z",
|
|
8979
8859
|
fill: "#101010"
|
|
8980
8860
|
}
|
|
8981
8861
|
),
|
|
8982
|
-
/* @__PURE__ */
|
|
8862
|
+
/* @__PURE__ */ jsx103(
|
|
8983
8863
|
"path",
|
|
8984
8864
|
{
|
|
8985
8865
|
d: "M32.1439 17.7628L32.144 17.7626L32.1536 17.7707C32.8223 18.3382 32.4564 19.4679 31.5552 19.4917C30.1893 19.5395 27.9612 19.3819 26.4556 17.9925C25.3814 18.3278 24.2185 18.502 23 18.502C20.4179 18.502 18.0475 17.7227 16.3137 16.2589C14.5716 14.7881 13.5 12.6476 13.5 10.001C13.5 7.35432 14.5716 5.2139 16.3137 3.74307C18.0475 2.27927 20.4179 1.5 23 1.5C25.5821 1.5 27.9525 2.27927 29.6863 3.74307C31.4284 5.2139 32.5 7.35432 32.5 10.001C32.5 12.1433 31.7925 13.968 30.5872 15.3614C30.7637 16.1483 31.2398 17.0337 32.1439 17.7628Z",
|
|
@@ -8987,14 +8867,14 @@ var LanguagePopup = () => {
|
|
|
8987
8867
|
stroke: "white"
|
|
8988
8868
|
}
|
|
8989
8869
|
),
|
|
8990
|
-
/* @__PURE__ */
|
|
8870
|
+
/* @__PURE__ */ jsx103(
|
|
8991
8871
|
"path",
|
|
8992
8872
|
{
|
|
8993
8873
|
d: "M27 6.5H23.5V6C23.5 5.86739 23.4473 5.74021 23.3536 5.64645C23.2598 5.55268 23.1326 5.5 23 5.5C22.8674 5.5 22.7402 5.55268 22.6464 5.64645C22.5527 5.74021 22.5 5.86739 22.5 6V6.5H19C18.8674 6.5 18.7402 6.55268 18.6464 6.64645C18.5527 6.74021 18.5 6.86739 18.5 7C18.5 7.13261 18.5527 7.25979 18.6464 7.35355C18.7402 7.44732 18.8674 7.5 19 7.5H24.9411C24.7163 8.99882 24.0272 10.3894 22.9707 11.4761C22.2391 10.7254 21.6799 9.82414 21.332 8.83521C21.2882 8.71015 21.1965 8.60761 21.0771 8.5501C20.9577 8.49259 20.8204 8.48481 20.6953 8.52848C20.5702 8.57215 20.4675 8.66369 20.4098 8.78299C20.3522 8.9023 20.3442 9.03962 20.3877 9.16479C20.7796 10.2786 21.4072 11.2948 22.2278 12.1439C21.3816 12.8114 20.3955 13.2789 19.3433 13.5115C19.2229 13.5379 19.1165 13.6078 19.0445 13.7078C18.9726 13.8079 18.9401 13.9309 18.9533 14.0535C18.9664 14.176 19.0244 14.2893 19.116 14.3717C19.2077 14.4541 19.3265 14.4998 19.4497 14.5C19.4858 14.5 19.5218 14.4961 19.5571 14.4885C20.8104 14.2121 21.9807 13.6435 22.9726 12.8291C23.9671 13.6428 25.1389 14.2112 26.3936 14.4885C26.5227 14.5157 26.6574 14.4907 26.7682 14.419C26.879 14.3472 26.9569 14.2346 26.985 14.1057C27.0131 13.9767 26.9891 13.8419 26.9182 13.7305C26.8473 13.6192 26.7352 13.5405 26.6064 13.5114C25.5511 13.2792 24.5617 12.8121 23.7117 12.1449C24.934 10.8754 25.7172 9.2474 25.9462 7.5H27C27.1326 7.5 27.2598 7.44732 27.3536 7.35355C27.4473 7.25979 27.5 7.13261 27.5 7C27.5 6.86739 27.4473 6.74021 27.3536 6.64645C27.2598 6.55268 27.1326 6.5 27 6.5Z",
|
|
8994
8874
|
fill: "white"
|
|
8995
8875
|
}
|
|
8996
8876
|
),
|
|
8997
|
-
/* @__PURE__ */
|
|
8877
|
+
/* @__PURE__ */ jsx103(
|
|
8998
8878
|
"path",
|
|
8999
8879
|
{
|
|
9000
8880
|
d: "M4.95 20.5L8.1 13.5H9.38L12.54 20.5H11.18L8.47 14.19H8.99L6.29 20.5H4.95ZM6.4 18.88L6.75 17.86H10.53L10.88 18.88H6.4Z",
|
|
@@ -9004,33 +8884,33 @@ var LanguagePopup = () => {
|
|
|
9004
8884
|
]
|
|
9005
8885
|
}
|
|
9006
8886
|
) }),
|
|
9007
|
-
/* @__PURE__ */
|
|
8887
|
+
/* @__PURE__ */ jsx103("button", { type: "button", onClick: handleClose, children: /* @__PURE__ */ jsx103(XIcon2, { className: "h-4 w-4 lg:h-6 lg:w-6", "aria-hidden": "true" }) })
|
|
9008
8888
|
] }),
|
|
9009
|
-
/* @__PURE__ */
|
|
9010
|
-
/* @__PURE__ */
|
|
9011
|
-
/* @__PURE__ */
|
|
9012
|
-
/* @__PURE__ */
|
|
8889
|
+
/* @__PURE__ */ jsxs86("div", { className: "pt-4 space-y-2", children: [
|
|
8890
|
+
/* @__PURE__ */ jsx103(Body20m3, { children: "Can't see your language?" }),
|
|
8891
|
+
/* @__PURE__ */ jsx103(Body164, { className: " text-grey", children: "Recodo has been developed to cater to number of diverse European countries. The majority of our content is user generated, and may not be available in your language." }),
|
|
8892
|
+
/* @__PURE__ */ jsx103(Body164, { className: " text-grey", children: "Our Languages page offers resources to help you learn more about translation options" })
|
|
9013
8893
|
] }),
|
|
9014
|
-
/* @__PURE__ */
|
|
8894
|
+
/* @__PURE__ */ jsx103("div", { className: "pt-4", children: /* @__PURE__ */ jsx103(Link15, { href: "/page/language", target: "_self", children: /* @__PURE__ */ jsx103(DesignButton9, { size: "sm", variant: "secondary", onClick: handleClose, children: "Learn more" }) }) })
|
|
9015
8895
|
] })
|
|
9016
8896
|
}
|
|
9017
8897
|
) : null;
|
|
9018
8898
|
};
|
|
9019
8899
|
|
|
9020
8900
|
// src/components/DesignElements/MobileFilterPopup.tsx
|
|
9021
|
-
import { Fragment as
|
|
9022
|
-
import { Dialog as
|
|
9023
|
-
import { XMarkIcon as
|
|
8901
|
+
import { Fragment as Fragment25 } from "react";
|
|
8902
|
+
import { Dialog as Dialog19, Transition as Transition6 } from "@headlessui/react";
|
|
8903
|
+
import { XMarkIcon as XMarkIcon5 } from "@heroicons/react/24/outline";
|
|
9024
8904
|
import { useState as useState42 } from "react";
|
|
9025
8905
|
|
|
9026
8906
|
// src/components/DesignElements/MobileFilterPopupOpened.tsx
|
|
9027
|
-
import { Fragment as
|
|
9028
|
-
import { Dialog as
|
|
8907
|
+
import { Fragment as Fragment24 } from "react";
|
|
8908
|
+
import { Dialog as Dialog18, Transition as Transition5 } from "@headlessui/react";
|
|
9029
8909
|
import { ArrowLeftIcon, CheckIcon } from "@heroicons/react/24/outline";
|
|
9030
|
-
import { useRouter as useRouter8 } from "
|
|
8910
|
+
import { useRouter as useRouter8 } from "@geowiki/core";
|
|
9031
8911
|
import { v4 as v411 } from "uuid";
|
|
9032
8912
|
import { DesignButton as DesignButton10 } from "@geowiki/design-system";
|
|
9033
|
-
import { jsx as
|
|
8913
|
+
import { jsx as jsx104, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
9034
8914
|
function MobileFilterPopupOpened({
|
|
9035
8915
|
open,
|
|
9036
8916
|
setOpen,
|
|
@@ -9079,69 +8959,69 @@ function MobileFilterPopupOpened({
|
|
|
9079
8959
|
{ shallow: true }
|
|
9080
8960
|
);
|
|
9081
8961
|
};
|
|
9082
|
-
return /* @__PURE__ */
|
|
9083
|
-
|
|
8962
|
+
return /* @__PURE__ */ jsx104(Transition5.Root, { show: open, as: Fragment24, "data-component": "ResourceView", children: /* @__PURE__ */ jsxs87(
|
|
8963
|
+
Dialog18,
|
|
9084
8964
|
{
|
|
9085
8965
|
as: "div",
|
|
9086
8966
|
className: "relative z-20 w-full h-full",
|
|
9087
8967
|
onClose: setOpen,
|
|
9088
8968
|
children: [
|
|
9089
|
-
/* @__PURE__ */
|
|
9090
|
-
|
|
8969
|
+
/* @__PURE__ */ jsx104(
|
|
8970
|
+
Transition5.Child,
|
|
9091
8971
|
{
|
|
9092
|
-
as:
|
|
8972
|
+
as: Fragment24,
|
|
9093
8973
|
enter: "ease-out duration-300",
|
|
9094
8974
|
enterFrom: "opacity-0",
|
|
9095
8975
|
enterTo: "opacity-100",
|
|
9096
8976
|
leave: "ease-in duration-200",
|
|
9097
8977
|
leaveFrom: "opacity-100",
|
|
9098
8978
|
leaveTo: "opacity-0",
|
|
9099
|
-
children: /* @__PURE__ */
|
|
8979
|
+
children: /* @__PURE__ */ jsx104("div", { className: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
9100
8980
|
}
|
|
9101
8981
|
),
|
|
9102
|
-
/* @__PURE__ */
|
|
9103
|
-
|
|
8982
|
+
/* @__PURE__ */ jsx104("div", { className: "w-full h-full fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ jsx104("div", { className: " w-full h-full flex items-end sm:items-center justify-center min-h-full text-center sm:p-0", children: /* @__PURE__ */ jsx104(
|
|
8983
|
+
Transition5.Child,
|
|
9104
8984
|
{
|
|
9105
|
-
as:
|
|
8985
|
+
as: Fragment24,
|
|
9106
8986
|
enter: "ease-out duration-300",
|
|
9107
8987
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
9108
8988
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
9109
8989
|
leave: "ease-in duration-200",
|
|
9110
8990
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
9111
8991
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
9112
|
-
children: /* @__PURE__ */
|
|
9113
|
-
/* @__PURE__ */
|
|
9114
|
-
/* @__PURE__ */
|
|
8992
|
+
children: /* @__PURE__ */ jsxs87(Dialog18.Panel, { className: "h-full flex-col justify-between w-full relative bg-grey-lightest space-y-3 overflow-y-scroll text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl sm:w-full sm:p-10", children: [
|
|
8993
|
+
/* @__PURE__ */ jsxs87("div", { className: "flex justify-between items-center h-auto py-2 bg-white px-5 ", children: [
|
|
8994
|
+
/* @__PURE__ */ jsxs87(
|
|
9115
8995
|
"button",
|
|
9116
8996
|
{
|
|
9117
8997
|
type: "button",
|
|
9118
8998
|
className: "w-[4.25rem] rounded-md focus:outline-none",
|
|
9119
8999
|
onClick: () => setOpen(false),
|
|
9120
9000
|
children: [
|
|
9121
|
-
/* @__PURE__ */
|
|
9122
|
-
/* @__PURE__ */
|
|
9001
|
+
/* @__PURE__ */ jsx104("span", { className: "sr-only", children: "Close" }),
|
|
9002
|
+
/* @__PURE__ */ jsx104(ArrowLeftIcon, { className: "h-6 w-6", "aria-hidden": "true" })
|
|
9123
9003
|
]
|
|
9124
9004
|
}
|
|
9125
9005
|
),
|
|
9126
|
-
/* @__PURE__ */
|
|
9127
|
-
/* @__PURE__ */
|
|
9006
|
+
/* @__PURE__ */ jsx104("div", { children: name }),
|
|
9007
|
+
/* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(
|
|
9128
9008
|
"button",
|
|
9129
9009
|
{
|
|
9130
9010
|
onClick: handleClear,
|
|
9131
9011
|
className: " w-[4.25rem] px-2 py-2 rounded-xl bg-grey-lightest",
|
|
9132
|
-
children: /* @__PURE__ */
|
|
9012
|
+
children: /* @__PURE__ */ jsx104("div", { className: "text-xs font-medium leading-none", children: "Remove" })
|
|
9133
9013
|
}
|
|
9134
9014
|
) })
|
|
9135
9015
|
] }),
|
|
9136
|
-
/* @__PURE__ */
|
|
9016
|
+
/* @__PURE__ */ jsx104("div", { className: " h-auto max-h-[calc(100vh-150px)] pt-3 px-5 bg-white space-y-4 overflow-y-auto ", children: list == null ? void 0 : list.map((item, index) => /* @__PURE__ */ jsxs87(
|
|
9137
9017
|
"div",
|
|
9138
9018
|
{
|
|
9139
9019
|
className: " cursor-pointer ",
|
|
9140
9020
|
onClick: () => handleClick(item.value),
|
|
9141
9021
|
children: [
|
|
9142
|
-
/* @__PURE__ */
|
|
9143
|
-
/* @__PURE__ */
|
|
9144
|
-
checkValues.includes(item.value) && /* @__PURE__ */
|
|
9022
|
+
/* @__PURE__ */ jsxs87("div", { className: "flex justify-between", children: [
|
|
9023
|
+
/* @__PURE__ */ jsx104("div", { className: "pb-4 text-black text-base font-normal leading-snug", children: item.label }),
|
|
9024
|
+
checkValues.includes(item.value) && /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(
|
|
9145
9025
|
CheckIcon,
|
|
9146
9026
|
{
|
|
9147
9027
|
className: "h-6 w-6 text-primary",
|
|
@@ -9149,12 +9029,12 @@ function MobileFilterPopupOpened({
|
|
|
9149
9029
|
}
|
|
9150
9030
|
) })
|
|
9151
9031
|
] }),
|
|
9152
|
-
index !== list.length - 1 && /* @__PURE__ */
|
|
9032
|
+
index !== list.length - 1 && /* @__PURE__ */ jsx104("div", { className: "w-full border-0 border-b border-grey-light" })
|
|
9153
9033
|
]
|
|
9154
9034
|
},
|
|
9155
9035
|
v411()
|
|
9156
9036
|
)) }),
|
|
9157
|
-
/* @__PURE__ */
|
|
9037
|
+
/* @__PURE__ */ jsx104("div", { className: "absolute bottom-0 right-0 px-5 w-full pb-6 flex justify-center", children: /* @__PURE__ */ jsx104(DesignButton10, { className: "w-full ", onClick: handleShowResults, children: "View results" }) })
|
|
9158
9038
|
] })
|
|
9159
9039
|
}
|
|
9160
9040
|
) }) })
|
|
@@ -9165,8 +9045,8 @@ function MobileFilterPopupOpened({
|
|
|
9165
9045
|
|
|
9166
9046
|
// src/components/DesignElements/MobileFilterPopup.tsx
|
|
9167
9047
|
import { DesignButton as DesignButton11 } from "@geowiki/design-system";
|
|
9168
|
-
import { useRouter as useRouter9 } from "
|
|
9169
|
-
import { jsx as
|
|
9048
|
+
import { useRouter as useRouter9 } from "@geowiki/core";
|
|
9049
|
+
import { jsx as jsx105, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
9170
9050
|
function MobileFilterPopup({
|
|
9171
9051
|
open,
|
|
9172
9052
|
setOpen,
|
|
@@ -9199,74 +9079,74 @@ function MobileFilterPopup({
|
|
|
9199
9079
|
const queryValue = router.query[routerFiltername];
|
|
9200
9080
|
return typeof queryValue === "string" ? queryValue.split(",") : Array.isArray(queryValue) ? queryValue : [];
|
|
9201
9081
|
};
|
|
9202
|
-
return /* @__PURE__ */
|
|
9203
|
-
|
|
9082
|
+
return /* @__PURE__ */ jsx105(Transition6.Root, { show: open, as: Fragment25, "data-component": "ResourceView", children: /* @__PURE__ */ jsxs88(
|
|
9083
|
+
Dialog19,
|
|
9204
9084
|
{
|
|
9205
9085
|
as: "div",
|
|
9206
9086
|
className: "relative z-10 w-full h-full",
|
|
9207
9087
|
onClose: setOpen,
|
|
9208
9088
|
children: [
|
|
9209
|
-
/* @__PURE__ */
|
|
9210
|
-
|
|
9089
|
+
/* @__PURE__ */ jsx105(
|
|
9090
|
+
Transition6.Child,
|
|
9211
9091
|
{
|
|
9212
|
-
as:
|
|
9092
|
+
as: Fragment25,
|
|
9213
9093
|
enter: "ease-out duration-300",
|
|
9214
9094
|
enterFrom: "opacity-0",
|
|
9215
9095
|
enterTo: "opacity-100",
|
|
9216
9096
|
leave: "ease-in duration-200",
|
|
9217
9097
|
leaveFrom: "opacity-100",
|
|
9218
9098
|
leaveTo: "opacity-0",
|
|
9219
|
-
children: /* @__PURE__ */
|
|
9099
|
+
children: /* @__PURE__ */ jsx105("div", { className: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
9220
9100
|
}
|
|
9221
9101
|
),
|
|
9222
|
-
/* @__PURE__ */
|
|
9223
|
-
|
|
9102
|
+
/* @__PURE__ */ jsx105("div", { className: "w-full h-full fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ jsx105("div", { className: " w-full h-full flex items-end sm:items-center justify-center min-h-full text-center sm:p-0", children: /* @__PURE__ */ jsx105(
|
|
9103
|
+
Transition6.Child,
|
|
9224
9104
|
{
|
|
9225
|
-
as:
|
|
9105
|
+
as: Fragment25,
|
|
9226
9106
|
enter: "ease-out duration-300",
|
|
9227
9107
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
9228
9108
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
9229
9109
|
leave: "ease-in duration-200",
|
|
9230
9110
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
9231
9111
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
9232
|
-
children: /* @__PURE__ */
|
|
9233
|
-
/* @__PURE__ */
|
|
9234
|
-
/* @__PURE__ */
|
|
9112
|
+
children: /* @__PURE__ */ jsxs88(Dialog19.Panel, { className: " w-full h-full relative bg-grey-lightest space-y-3 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl sm:w-full sm:p-10", children: [
|
|
9113
|
+
/* @__PURE__ */ jsxs88("div", { className: "flex justify-between items-center h-auto py-2 bg-white px-5 ", children: [
|
|
9114
|
+
/* @__PURE__ */ jsxs88(
|
|
9235
9115
|
"button",
|
|
9236
9116
|
{
|
|
9237
9117
|
type: "button",
|
|
9238
9118
|
className: "w-[4.25rem] rounded-md focus:outline-none ",
|
|
9239
9119
|
onClick: () => setOpen(false),
|
|
9240
9120
|
children: [
|
|
9241
|
-
/* @__PURE__ */
|
|
9242
|
-
/* @__PURE__ */
|
|
9121
|
+
/* @__PURE__ */ jsx105("span", { className: "sr-only", children: "Close" }),
|
|
9122
|
+
/* @__PURE__ */ jsx105(XMarkIcon5, { className: "h-6 w-6", "aria-hidden": "true" })
|
|
9243
9123
|
]
|
|
9244
9124
|
}
|
|
9245
9125
|
),
|
|
9246
|
-
/* @__PURE__ */
|
|
9247
|
-
/* @__PURE__ */
|
|
9126
|
+
/* @__PURE__ */ jsx105("div", { children: name }),
|
|
9127
|
+
/* @__PURE__ */ jsx105("div", { className: "w-[4.25rem]" })
|
|
9248
9128
|
] }),
|
|
9249
|
-
/* @__PURE__ */
|
|
9250
|
-
/* @__PURE__ */
|
|
9129
|
+
/* @__PURE__ */ jsx105("div", { className: "h-auto max-h-[calc(100vh-150px)] pt-3 px-5 bg-white space-y-4 overflow-y-auto", children: filters.map((filter, index) => /* @__PURE__ */ jsxs88("div", { children: [
|
|
9130
|
+
/* @__PURE__ */ jsxs88(
|
|
9251
9131
|
"div",
|
|
9252
9132
|
{
|
|
9253
9133
|
className: "cursor-pointer",
|
|
9254
9134
|
onClick: () => handleToggle(filter.filterName),
|
|
9255
9135
|
children: [
|
|
9256
|
-
/* @__PURE__ */
|
|
9257
|
-
/* @__PURE__ */
|
|
9258
|
-
/* @__PURE__ */
|
|
9136
|
+
/* @__PURE__ */ jsxs88("div", { className: "pb-4 text-base text-black flex justify-between font-normal leading-snug", children: [
|
|
9137
|
+
/* @__PURE__ */ jsx105("div", { className: " ", children: filter.filterName }),
|
|
9138
|
+
/* @__PURE__ */ jsx105("div", { className: " max-w-[40%] overflow-hidden text-ellipsis whitespace-nowrap", children: getSelectedItems(filter.routerFiltername).map((value) => {
|
|
9259
9139
|
const item = filter.filterItems.find(
|
|
9260
9140
|
(i) => i.value === value
|
|
9261
9141
|
);
|
|
9262
9142
|
return item ? item.label : value;
|
|
9263
9143
|
}).join(", ") })
|
|
9264
9144
|
] }),
|
|
9265
|
-
index !== filters.length - 1 && /* @__PURE__ */
|
|
9145
|
+
index !== filters.length - 1 && /* @__PURE__ */ jsx105("div", { className: "w-full border-0 border-b border-grey-light" })
|
|
9266
9146
|
]
|
|
9267
9147
|
}
|
|
9268
9148
|
),
|
|
9269
|
-
/* @__PURE__ */
|
|
9149
|
+
/* @__PURE__ */ jsx105(
|
|
9270
9150
|
MobileFilterPopupOpened,
|
|
9271
9151
|
{
|
|
9272
9152
|
open: openStates[filter.filterName],
|
|
@@ -9281,7 +9161,7 @@ function MobileFilterPopup({
|
|
|
9281
9161
|
}
|
|
9282
9162
|
)
|
|
9283
9163
|
] }, filter.filterName)) }),
|
|
9284
|
-
/* @__PURE__ */
|
|
9164
|
+
/* @__PURE__ */ jsx105("div", { className: "absolute bottom-0 right-0 px-5 w-full pb-6 flex justify-center", children: /* @__PURE__ */ jsx105(DesignButton11, { className: "w-full ", onClick: handleShowResults, children: "View results" }) })
|
|
9285
9165
|
] })
|
|
9286
9166
|
}
|
|
9287
9167
|
) }) })
|
|
@@ -9291,22 +9171,22 @@ function MobileFilterPopup({
|
|
|
9291
9171
|
}
|
|
9292
9172
|
|
|
9293
9173
|
// src/components/DesignElements/Link/Link.tsx
|
|
9294
|
-
import Link16 from "
|
|
9174
|
+
import { Link as Link16 } from "@geowiki/core";
|
|
9295
9175
|
import { Body18m as Body18m4 } from "@geowiki/design-system";
|
|
9296
|
-
import { jsx as
|
|
9176
|
+
import { jsx as jsx106, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
9297
9177
|
var DesignLink = ({ link, fillColor }) => {
|
|
9298
9178
|
fillColor = fillColor === void 0 ? "fill-black" : fillColor;
|
|
9299
|
-
return /* @__PURE__ */
|
|
9179
|
+
return /* @__PURE__ */ jsx106(
|
|
9300
9180
|
Link16,
|
|
9301
9181
|
{
|
|
9302
9182
|
href: link.href,
|
|
9303
9183
|
target: link.isNewTab ? "_blank" : "_self",
|
|
9304
9184
|
rel: link.isNewTab ? "noopener noreferrer" : "",
|
|
9305
9185
|
className: "w-full mt-4 lg:mt-6 flex-col justify-start items-start gap-6 inline-flex border-0 border-b border-zinc-300 ",
|
|
9306
|
-
children: /* @__PURE__ */
|
|
9307
|
-
/* @__PURE__ */
|
|
9308
|
-
/* @__PURE__ */
|
|
9309
|
-
link.type === "internal" && /* @__PURE__ */
|
|
9186
|
+
children: /* @__PURE__ */ jsxs89("div", { className: "w-full px-0 mb-4 lg:mb-6", children: [
|
|
9187
|
+
/* @__PURE__ */ jsxs89("div", { className: "w-full h-5 justify-between items-center inline-flex", children: [
|
|
9188
|
+
/* @__PURE__ */ jsx106(Body18m4, { children: link.title }),
|
|
9189
|
+
link.type === "internal" && /* @__PURE__ */ jsx106(
|
|
9310
9190
|
"svg",
|
|
9311
9191
|
{
|
|
9312
9192
|
width: "18",
|
|
@@ -9315,10 +9195,10 @@ var DesignLink = ({ link, fillColor }) => {
|
|
|
9315
9195
|
fill: "none",
|
|
9316
9196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9317
9197
|
className: `${fillColor}`,
|
|
9318
|
-
children: /* @__PURE__ */
|
|
9198
|
+
children: /* @__PURE__ */ jsx106("path", { d: "M9.90341 16L8.59091 14.7045L13.9943 9.30114H0V7.42614L13.9943 7.42614L8.59091 2.03977L9.90341 0.727273L17.5398 8.36364L9.90341 16Z" })
|
|
9319
9199
|
}
|
|
9320
9200
|
),
|
|
9321
|
-
link.type === "external" && /* @__PURE__ */
|
|
9201
|
+
link.type === "external" && /* @__PURE__ */ jsx106(
|
|
9322
9202
|
"svg",
|
|
9323
9203
|
{
|
|
9324
9204
|
width: "18",
|
|
@@ -9327,26 +9207,26 @@ var DesignLink = ({ link, fillColor }) => {
|
|
|
9327
9207
|
fill: "none",
|
|
9328
9208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9329
9209
|
className: `-rotate-45 ${fillColor}`,
|
|
9330
|
-
children: /* @__PURE__ */
|
|
9210
|
+
children: /* @__PURE__ */ jsx106("path", { d: "M9.90341 16L8.59091 14.7045L13.9943 9.30114H0V7.42614L13.9943 7.42614L8.59091 2.03977L9.90341 0.727273L17.5398 8.36364L9.90341 16Z" })
|
|
9331
9211
|
}
|
|
9332
9212
|
)
|
|
9333
9213
|
] }),
|
|
9334
|
-
link.description && /* @__PURE__ */
|
|
9335
|
-
link.subtitle && /* @__PURE__ */
|
|
9214
|
+
link.description && /* @__PURE__ */ jsx106("div", { className: "w-10/12 py-4 text-gray-900 text-base font-normal leading-tight", children: link.description }),
|
|
9215
|
+
link.subtitle && /* @__PURE__ */ jsx106("div", { className: "text-primary text-base font-semibold leading-tight", children: link.subtitle })
|
|
9336
9216
|
] })
|
|
9337
9217
|
}
|
|
9338
9218
|
);
|
|
9339
9219
|
};
|
|
9340
9220
|
|
|
9341
9221
|
// src/components/DesignElements/Link/ListLink.tsx
|
|
9342
|
-
import { jsx as
|
|
9222
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
9343
9223
|
var DesignListLink = ({ links, fillColor }) => {
|
|
9344
|
-
return /* @__PURE__ */
|
|
9224
|
+
return /* @__PURE__ */ jsx107("div", { className: "grid grid-cols-1 ", children: links.map((link) => /* @__PURE__ */ jsx107(DesignLink, { link, fillColor }, link.title)) });
|
|
9345
9225
|
};
|
|
9346
9226
|
|
|
9347
9227
|
// src/components/DesignElements/Link/customLink.tsx
|
|
9348
9228
|
import { Body18sb } from "@geowiki/design-system";
|
|
9349
|
-
import { jsx as
|
|
9229
|
+
import { jsx as jsx108, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
9350
9230
|
var DesignCustomLink = ({
|
|
9351
9231
|
linkText,
|
|
9352
9232
|
href,
|
|
@@ -9355,16 +9235,16 @@ var DesignCustomLink = ({
|
|
|
9355
9235
|
className
|
|
9356
9236
|
}) => {
|
|
9357
9237
|
fillColor = fillColor === void 0 ? "fill-black" : fillColor;
|
|
9358
|
-
return /* @__PURE__ */
|
|
9238
|
+
return /* @__PURE__ */ jsx108(
|
|
9359
9239
|
"a",
|
|
9360
9240
|
{
|
|
9361
9241
|
href,
|
|
9362
9242
|
target: isNewTab ? "_blank" : "_self",
|
|
9363
9243
|
rel: "noopener noreferrer",
|
|
9364
9244
|
className,
|
|
9365
|
-
children: /* @__PURE__ */
|
|
9366
|
-
/* @__PURE__ */
|
|
9367
|
-
/* @__PURE__ */
|
|
9245
|
+
children: /* @__PURE__ */ jsxs90("div", { className: "flex justify-start items-center gap-2 ", children: [
|
|
9246
|
+
/* @__PURE__ */ jsx108(Body18sb, { children: linkText }),
|
|
9247
|
+
/* @__PURE__ */ jsx108(
|
|
9368
9248
|
"svg",
|
|
9369
9249
|
{
|
|
9370
9250
|
width: "16",
|
|
@@ -9373,7 +9253,7 @@ var DesignCustomLink = ({
|
|
|
9373
9253
|
fill: "none",
|
|
9374
9254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9375
9255
|
className: `${fillColor}`,
|
|
9376
|
-
children: /* @__PURE__ */
|
|
9256
|
+
children: /* @__PURE__ */ jsx108("path", { d: "M15.092 1.72341V11.6215C15.092 11.8973 14.9802 12.1476 14.7992 12.3286C14.6182 12.5096 14.3679 12.6214 14.0921 12.6214C13.5391 12.6214 13.0922 12.1745 13.0922 11.6215V4.13613L2.07127 15.1571C1.68024 15.5481 1.04738 15.5474 0.657053 15.1571C0.26673 14.7667 0.266023 14.1339 0.657053 13.7428L11.678 2.72192L4.19259 2.72192C3.63963 2.72192 3.19269 2.27498 3.19269 1.72202C3.19269 1.16907 3.63963 0.722131 4.19259 0.722131L14.0907 0.722131C14.2222 0.722131 14.3516 0.748214 14.4746 0.799126C14.7186 0.900242 14.9139 1.09552 15.015 1.33947C15.0659 1.46251 15.092 1.59188 15.092 1.72341Z" })
|
|
9377
9257
|
}
|
|
9378
9258
|
)
|
|
9379
9259
|
] })
|
|
@@ -9381,60 +9261,37 @@ var DesignCustomLink = ({
|
|
|
9381
9261
|
);
|
|
9382
9262
|
};
|
|
9383
9263
|
|
|
9384
|
-
// src/components/DesignElements/Link/SimpleLink.tsx
|
|
9385
|
-
import Link17 from "next/link";
|
|
9386
|
-
import { DesignButton as DesignButton12 } from "@geowiki/design-system";
|
|
9387
|
-
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9388
|
-
var SimpleLink = ({ link }) => {
|
|
9389
|
-
return /* @__PURE__ */ jsx110(
|
|
9390
|
-
Link17,
|
|
9391
|
-
{
|
|
9392
|
-
href: link.href,
|
|
9393
|
-
target: link.isNewTab ? "_blank" : "_self",
|
|
9394
|
-
rel: "noreferrer",
|
|
9395
|
-
children: /* @__PURE__ */ jsx110(
|
|
9396
|
-
DesignButton12,
|
|
9397
|
-
{
|
|
9398
|
-
variant: link.isNewTab ? "externalLink" : "internalLink",
|
|
9399
|
-
className: "h-auto p-0 flex self-start lg:p-0",
|
|
9400
|
-
children: link.title
|
|
9401
|
-
}
|
|
9402
|
-
)
|
|
9403
|
-
}
|
|
9404
|
-
);
|
|
9405
|
-
};
|
|
9406
|
-
|
|
9407
9264
|
// src/components/DesignElements/ClusterNews/ClusterNewsItem.tsx
|
|
9408
|
-
import
|
|
9265
|
+
import { Link as Link17 } from "@geowiki/core";
|
|
9409
9266
|
import { CountryItem } from "@geowiki/design-system";
|
|
9410
|
-
import { jsx as
|
|
9267
|
+
import { jsx as jsx109, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
9411
9268
|
var ClusterNewsItem = (props) => {
|
|
9412
9269
|
var link = `/news/farmer-cluster/${props.id}`;
|
|
9413
|
-
return /* @__PURE__ */
|
|
9414
|
-
props.path && /* @__PURE__ */
|
|
9270
|
+
return /* @__PURE__ */ jsx109(Link17, { href: link, children: /* @__PURE__ */ jsxs91("div", { className: "relative flex items-start justify-start", children: [
|
|
9271
|
+
props.path && /* @__PURE__ */ jsx109(
|
|
9415
9272
|
ApiImage,
|
|
9416
9273
|
{
|
|
9417
9274
|
imageId: props.path,
|
|
9418
9275
|
className: "flex overflow-hidden relative flex-col px-6 py-5 w-full min-h-[400px] max-md:pl-5 max-md:max-w-full lg:min-h-[500px] brightness-75"
|
|
9419
9276
|
}
|
|
9420
9277
|
),
|
|
9421
|
-
/* @__PURE__ */
|
|
9422
|
-
/* @__PURE__ */
|
|
9423
|
-
/* @__PURE__ */
|
|
9278
|
+
/* @__PURE__ */ jsx109("div", { className: "py-[5px] px-2.5 bg-white rounded-2xl float-right absolute top-3 right-3", children: /* @__PURE__ */ jsx109(CountryItem, { country: props.clusterCountry || "Unknown" }) }),
|
|
9279
|
+
/* @__PURE__ */ jsxs91("div", { className: "absolute bottom-0 flex-col flex items-start justify-start space-y-3 pl-6 pr-4 pb-6 text-secondary lg:space-y-4", children: [
|
|
9280
|
+
/* @__PURE__ */ jsxs91("div", { className: "text-base font-normal flex items-center justify-center gap-3 leading-[120%]", children: [
|
|
9424
9281
|
formatDate(props.time.toString(), "short"),
|
|
9425
|
-
/* @__PURE__ */
|
|
9282
|
+
/* @__PURE__ */ jsx109("div", { className: " font-medium ", children: props.username })
|
|
9426
9283
|
] }),
|
|
9427
|
-
/* @__PURE__ */
|
|
9428
|
-
/* @__PURE__ */
|
|
9284
|
+
/* @__PURE__ */ jsx109("div", { className: "text-[1.375rem] font-semibold", children: /* @__PURE__ */ jsx109("div", { className: "line-clamp-3 leading-[120%]", children: props.title }) }),
|
|
9285
|
+
/* @__PURE__ */ jsx109("div", { className: "text-base font-medium leading-[120%]", children: props.clusterName })
|
|
9429
9286
|
] })
|
|
9430
9287
|
] }) });
|
|
9431
9288
|
};
|
|
9432
9289
|
|
|
9433
9290
|
// src/components/DesignElements/ClusterNews/ClusterNewsList.tsx
|
|
9434
9291
|
import { v4 as v412 } from "uuid";
|
|
9435
|
-
import { jsx as
|
|
9292
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9436
9293
|
var ClusterNewsList = ({ clusterNewsItems }) => {
|
|
9437
|
-
return /* @__PURE__ */
|
|
9294
|
+
return /* @__PURE__ */ jsx110("div", { className: "mx-auto", children: /* @__PURE__ */ jsx110("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: clusterNewsItems == null ? void 0 : clusterNewsItems.map((clusterNewsItem) => /* @__PURE__ */ jsx110(
|
|
9438
9295
|
ClusterNewsItem,
|
|
9439
9296
|
{
|
|
9440
9297
|
id: clusterNewsItem.id,
|
|
@@ -9454,7 +9311,7 @@ import { H4Design } from "@geowiki/design-system";
|
|
|
9454
9311
|
import { useClusterNews } from "@geowiki/core";
|
|
9455
9312
|
import { v4 as v413 } from "uuid";
|
|
9456
9313
|
import { Body18 as Body185, Body18m as Body18m5 } from "@geowiki/design-system";
|
|
9457
|
-
import { jsx as
|
|
9314
|
+
import { jsx as jsx111, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9458
9315
|
var ClusterStoryItem = (props) => {
|
|
9459
9316
|
var _a, _b;
|
|
9460
9317
|
const { data: clusterNews, isLoading } = useClusterNews(props.clusterId);
|
|
@@ -9483,11 +9340,11 @@ var ClusterStoryItem = (props) => {
|
|
|
9483
9340
|
path: clusterNewsItem.imageId === "00000000-0000-0000-0000-000000000000" ? "/assets/img/noImage.png" : clusterNewsItem.imageId
|
|
9484
9341
|
};
|
|
9485
9342
|
});
|
|
9486
|
-
return /* @__PURE__ */
|
|
9487
|
-
/* @__PURE__ */
|
|
9488
|
-
/* @__PURE__ */
|
|
9489
|
-
/* @__PURE__ */
|
|
9490
|
-
/* @__PURE__ */
|
|
9343
|
+
return /* @__PURE__ */ jsxs92("div", { className: " w-full h-full relative bg-white", children: [
|
|
9344
|
+
/* @__PURE__ */ jsx111("div", { className: "flex justify-center lg:ml-[25%] lg:mr-[25%] mt-4 lg:mt-6", children: /* @__PURE__ */ jsxs92("div", { className: "flex-col justify-start items-start gap-4 inline-flex", children: [
|
|
9345
|
+
/* @__PURE__ */ jsxs92("div", { className: "flex justify-center items-center gap-4 text-[.9375rem] lg:text-lg leading-[130%]", children: [
|
|
9346
|
+
/* @__PURE__ */ jsxs92("div", { className: "flex justify-start items-center gap-1", children: [
|
|
9347
|
+
/* @__PURE__ */ jsx111(
|
|
9491
9348
|
"svg",
|
|
9492
9349
|
{
|
|
9493
9350
|
width: "24",
|
|
@@ -9496,27 +9353,27 @@ var ClusterStoryItem = (props) => {
|
|
|
9496
9353
|
fill: "rgb(89,173,49)",
|
|
9497
9354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9498
9355
|
className: "w-5 h-5 ",
|
|
9499
|
-
children: /* @__PURE__ */
|
|
9356
|
+
children: /* @__PURE__ */ jsx111("path", { d: "M12 2.5C7.313 2.5 3.5 6.313 3.5 11C3.5 15.983 8.129 19.041 11.192 21.064L11.722 21.416C11.806 21.472 11.903 21.5 11.999 21.5C12.095 21.5 12.192 21.472 12.276 21.416L12.806 21.064C15.869 19.041 20.498 15.983 20.498 11C20.5 6.313 16.687 2.5 12 2.5ZM12 13.5C10.619 13.5 9.5 12.381 9.5 11C9.5 9.619 10.619 8.5 12 8.5C13.381 8.5 14.5 9.619 14.5 11C14.5 12.381 13.381 13.5 12 13.5Z" })
|
|
9500
9357
|
}
|
|
9501
9358
|
),
|
|
9502
|
-
/* @__PURE__ */
|
|
9359
|
+
/* @__PURE__ */ jsx111(Body185, { children: props.ClusterCountry })
|
|
9503
9360
|
] }),
|
|
9504
|
-
/* @__PURE__ */
|
|
9361
|
+
/* @__PURE__ */ jsx111(Body185, { className: "text-black ", children: formatDate(props.NewsCreationTime, "long") })
|
|
9505
9362
|
] }),
|
|
9506
|
-
/* @__PURE__ */
|
|
9507
|
-
/* @__PURE__ */
|
|
9508
|
-
/* @__PURE__ */
|
|
9509
|
-
/* @__PURE__ */
|
|
9363
|
+
/* @__PURE__ */ jsx111("h1", { className: "self-stretch text-2xl font-light leading-[130%] max-md:max-w-full lg:leading-10 lg:text-3xl", children: props == null ? void 0 : props.NewsTitle }),
|
|
9364
|
+
/* @__PURE__ */ jsxs92("div", { className: " flex flex-wrap justify-start items-start gap-2", children: [
|
|
9365
|
+
/* @__PURE__ */ jsx111(Body18m5, { className: "text-black", children: props.UserName }),
|
|
9366
|
+
/* @__PURE__ */ jsx111("div", { className: "text-primary", children: /* @__PURE__ */ jsx111("a", { href: `/cluster/view/${props.clusterId}`, children: /* @__PURE__ */ jsx111(Body18m5, { children: props.ClusterName }) }) })
|
|
9510
9367
|
] })
|
|
9511
9368
|
] }) }),
|
|
9512
|
-
/* @__PURE__ */
|
|
9369
|
+
/* @__PURE__ */ jsx111("div", { className: "w-full relative rounded-xl", style: { marginTop: "4.5%" }, children: /* @__PURE__ */ jsx111(
|
|
9513
9370
|
ApiImage,
|
|
9514
9371
|
{
|
|
9515
9372
|
imageId: props.NewsCoverImageId,
|
|
9516
9373
|
className: "object-cover w-full rounded-xl h-[560px]"
|
|
9517
9374
|
}
|
|
9518
9375
|
) }),
|
|
9519
|
-
/* @__PURE__ */
|
|
9376
|
+
/* @__PURE__ */ jsxs92(
|
|
9520
9377
|
"div",
|
|
9521
9378
|
{
|
|
9522
9379
|
className: "justify-center lg:ml-[25%] lg:mr-[25%]",
|
|
@@ -9525,15 +9382,15 @@ var ClusterStoryItem = (props) => {
|
|
|
9525
9382
|
marginTop: "4.5%"
|
|
9526
9383
|
},
|
|
9527
9384
|
children: [
|
|
9528
|
-
/* @__PURE__ */
|
|
9529
|
-
/* @__PURE__ */
|
|
9385
|
+
/* @__PURE__ */ jsx111("div", { className: "foreground-1 text-2xl font-normal font-family italic", children: props.NewsIntro }),
|
|
9386
|
+
/* @__PURE__ */ jsx111(
|
|
9530
9387
|
"div",
|
|
9531
9388
|
{
|
|
9532
9389
|
className: "justify-start items-start gap-6 foreground-1 font-format-0 font-family leading-normal",
|
|
9533
9390
|
style: {
|
|
9534
9391
|
marginTop: "4.5%"
|
|
9535
9392
|
},
|
|
9536
|
-
children: /* @__PURE__ */
|
|
9393
|
+
children: /* @__PURE__ */ jsx111(
|
|
9537
9394
|
HtmlView,
|
|
9538
9395
|
{
|
|
9539
9396
|
cssClass: ((_b = props.NewsContent) == null ? void 0 : _b.startsWith('<div className="ql-editor"')) ? "ql-editor" : "test",
|
|
@@ -9551,9 +9408,9 @@ var ClusterStoryItem = (props) => {
|
|
|
9551
9408
|
]
|
|
9552
9409
|
}
|
|
9553
9410
|
),
|
|
9554
|
-
!isLoading && (clusterNews == null ? void 0 : clusterNews.totalCount) > 1 && /* @__PURE__ */
|
|
9555
|
-
/* @__PURE__ */
|
|
9556
|
-
/* @__PURE__ */
|
|
9411
|
+
!isLoading && (clusterNews == null ? void 0 : clusterNews.totalCount) > 1 && /* @__PURE__ */ jsxs92("div", { className: "container mx-auto pt-8 space-y-6 lg:pt-24 lg:space-y-10", children: [
|
|
9412
|
+
/* @__PURE__ */ jsx111("div", { className: "lg:flex lg:justify-between lg:items-end", children: /* @__PURE__ */ jsx111(H4Design, { children: "Explore more cluster news" }) }),
|
|
9413
|
+
/* @__PURE__ */ jsx111(
|
|
9557
9414
|
ClusterNewsList,
|
|
9558
9415
|
{
|
|
9559
9416
|
clusterNewsItems
|
|
@@ -9566,11 +9423,11 @@ var ClusterStoryItem = (props) => {
|
|
|
9566
9423
|
// src/components/DesignElements/ClusterNews/ClusterNews.tsx
|
|
9567
9424
|
import { H4Design as H4Design2 } from "@geowiki/design-system";
|
|
9568
9425
|
import { useState as useState43 } from "react";
|
|
9569
|
-
import { DesignButton as
|
|
9426
|
+
import { DesignButton as DesignButton12 } from "@geowiki/design-system";
|
|
9570
9427
|
import { v4 as v414 } from "uuid";
|
|
9571
9428
|
import { useClusterNews as useClusterNews2 } from "@geowiki/core";
|
|
9572
9429
|
import { LocalLoader } from "@geowiki/design-system";
|
|
9573
|
-
import { Fragment as
|
|
9430
|
+
import { Fragment as Fragment26, jsx as jsx112, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
9574
9431
|
var ClusterNews = ({
|
|
9575
9432
|
clusterName,
|
|
9576
9433
|
clusterId,
|
|
@@ -9608,15 +9465,13 @@ var ClusterNews = ({
|
|
|
9608
9465
|
path: clusterNewsItem.imageId === "00000000-0000-0000-0000-000000000000" ? "/assets/img/noImage.png" : clusterNewsItem.imageId
|
|
9609
9466
|
};
|
|
9610
9467
|
});
|
|
9611
|
-
if (isLoading)
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
publishedItems.length > 3 && /* @__PURE__ */ jsx114(
|
|
9619
|
-
DesignButton13,
|
|
9468
|
+
if (isLoading) return /* @__PURE__ */ jsx112(LocalLoader, {});
|
|
9469
|
+
if (publishedItems.length == 0) return null;
|
|
9470
|
+
return /* @__PURE__ */ jsx112(Fragment26, { children: !isLoading && /* @__PURE__ */ jsx112("div", { className: "bg-grey-lightest lg:mt-[100px]", children: /* @__PURE__ */ jsx112("div", { className: "bg-grey-lightest mx-5 lg:mx-12", children: /* @__PURE__ */ jsxs93("div", { className: "container mx-auto space-y-6 py-6 lg:space-y-10 lg:py-16 px-0 lg:px-10 ", children: [
|
|
9471
|
+
/* @__PURE__ */ jsxs93("div", { className: "lg:flex lg:justify-between lg:items-end", children: [
|
|
9472
|
+
/* @__PURE__ */ jsx112(H4Design2, { className: "pb-4 lg:pb-0", children: "Cluster News" }),
|
|
9473
|
+
publishedItems.length > 3 && /* @__PURE__ */ jsx112(
|
|
9474
|
+
DesignButton12,
|
|
9620
9475
|
{
|
|
9621
9476
|
variant: "text",
|
|
9622
9477
|
className: "h-auto p-0 text-base lg:p-0",
|
|
@@ -9625,13 +9480,13 @@ var ClusterNews = ({
|
|
|
9625
9480
|
}
|
|
9626
9481
|
)
|
|
9627
9482
|
] }),
|
|
9628
|
-
/* @__PURE__ */
|
|
9483
|
+
/* @__PURE__ */ jsx112(
|
|
9629
9484
|
ClusterNewsList,
|
|
9630
9485
|
{
|
|
9631
9486
|
clusterNewsItems
|
|
9632
9487
|
}
|
|
9633
9488
|
),
|
|
9634
|
-
showAll && /* @__PURE__ */
|
|
9489
|
+
showAll && /* @__PURE__ */ jsx112(
|
|
9635
9490
|
DesignPagination,
|
|
9636
9491
|
{
|
|
9637
9492
|
totalCount: clusterNews == null ? void 0 : clusterNews.totalCount,
|
|
@@ -9647,7 +9502,7 @@ var ClusterNews = ({
|
|
|
9647
9502
|
// src/components/DesignElements/ClusterNews/SixClusterNews.tsx
|
|
9648
9503
|
import { useNewsFromAllClusters, useClusterNewsWithId } from "@geowiki/core";
|
|
9649
9504
|
import { v4 as v415 } from "uuid";
|
|
9650
|
-
import { jsx as
|
|
9505
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
9651
9506
|
var SixClusterNews = () => {
|
|
9652
9507
|
var _a, _b, _c;
|
|
9653
9508
|
const { data: news, isLoading } = useNewsFromAllClusters(0, 6);
|
|
@@ -9711,16 +9566,16 @@ var SixClusterNews = () => {
|
|
|
9711
9566
|
})) != null ? _c : [];
|
|
9712
9567
|
const clusterNewsItems = clusterNews.length === indexArray.length ? clusterNews : firstClusterNews;
|
|
9713
9568
|
if (isLoading || isLoading0 || isLoading1 || isLoading2 || isLoading3 || isLoading4 || isLoading5) {
|
|
9714
|
-
return /* @__PURE__ */
|
|
9569
|
+
return /* @__PURE__ */ jsx113("div", { children: "Loading..." });
|
|
9715
9570
|
}
|
|
9716
|
-
return /* @__PURE__ */
|
|
9571
|
+
return /* @__PURE__ */ jsx113("div", { className: "lg:container mx-auto pt-10", children: /* @__PURE__ */ jsx113(ClusterNewsList, { clusterNewsItems }) });
|
|
9717
9572
|
};
|
|
9718
9573
|
|
|
9719
9574
|
// src/components/DesignElements/Cluster/Cluster.tsx
|
|
9720
|
-
import
|
|
9575
|
+
import { Link as Link18 } from "@geowiki/core";
|
|
9721
9576
|
import { CountryItem as CountryItem2 } from "@geowiki/design-system";
|
|
9722
9577
|
import { H9Design as H9Design2, Body16sb } from "@geowiki/design-system";
|
|
9723
|
-
import { jsx as
|
|
9578
|
+
import { jsx as jsx114, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
9724
9579
|
var Cluster = ({
|
|
9725
9580
|
title,
|
|
9726
9581
|
path,
|
|
@@ -9728,8 +9583,8 @@ var Cluster = ({
|
|
|
9728
9583
|
status,
|
|
9729
9584
|
imageId
|
|
9730
9585
|
}) => {
|
|
9731
|
-
return /* @__PURE__ */
|
|
9732
|
-
/* @__PURE__ */
|
|
9586
|
+
return /* @__PURE__ */ jsx114(Link18, { href: path, children: /* @__PURE__ */ jsxs94("div", { className: "w-full flex-col justify-start items-start inline-flex", children: [
|
|
9587
|
+
/* @__PURE__ */ jsx114(
|
|
9733
9588
|
ApiImage,
|
|
9734
9589
|
{
|
|
9735
9590
|
imageId,
|
|
@@ -9738,18 +9593,18 @@ var Cluster = ({
|
|
|
9738
9593
|
className: "w-full h-64 rounded-xl object-cover"
|
|
9739
9594
|
}
|
|
9740
9595
|
),
|
|
9741
|
-
/* @__PURE__ */
|
|
9742
|
-
country && country !== null ? /* @__PURE__ */
|
|
9743
|
-
/* @__PURE__ */
|
|
9596
|
+
/* @__PURE__ */ jsxs94("div", { className: "pt-3 pb-2 justify-start items-center space-x-3 inline-flex text-base leading-tight lg:pt-4 lg:pb-3", children: [
|
|
9597
|
+
country && country !== null ? /* @__PURE__ */ jsx114(CountryItem2, { country }) : /* @__PURE__ */ jsx114(CountryItem2, { country: "Undefined" }),
|
|
9598
|
+
/* @__PURE__ */ jsx114(Body16sb, { className: "text-primary", children: status })
|
|
9744
9599
|
] }),
|
|
9745
|
-
/* @__PURE__ */
|
|
9600
|
+
/* @__PURE__ */ jsx114(H9Design2, { children: title })
|
|
9746
9601
|
] }) });
|
|
9747
9602
|
};
|
|
9748
9603
|
|
|
9749
9604
|
// src/components/DesignElements/Cluster/ClusterList.tsx
|
|
9750
|
-
import { jsx as
|
|
9605
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
9751
9606
|
var ClusterList = ({ clusters }) => {
|
|
9752
|
-
return /* @__PURE__ */
|
|
9607
|
+
return /* @__PURE__ */ jsx115("div", { className: "container mx-auto px-0", children: /* @__PURE__ */ jsx115("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: clusters.map((cluster) => /* @__PURE__ */ jsx115(
|
|
9753
9608
|
Cluster,
|
|
9754
9609
|
{
|
|
9755
9610
|
imageId: cluster.imageId,
|
|
@@ -9764,28 +9619,27 @@ var ClusterList = ({ clusters }) => {
|
|
|
9764
9619
|
|
|
9765
9620
|
// src/components/DesignElements/Cluster/H3Clusters.tsx
|
|
9766
9621
|
import { H4Design as H4Design3 } from "@geowiki/design-system";
|
|
9767
|
-
import { DesignButton as
|
|
9768
|
-
import
|
|
9622
|
+
import { DesignButton as DesignButton13 } from "@geowiki/design-system";
|
|
9623
|
+
import { Link as Link19 } from "@geowiki/core";
|
|
9769
9624
|
import { v4 as v416 } from "uuid";
|
|
9770
9625
|
import { useCountries } from "@geowiki/core";
|
|
9771
|
-
import { jsx as
|
|
9626
|
+
import { jsx as jsx116, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
9772
9627
|
var H3Clusters = ({ clusters }) => {
|
|
9773
9628
|
const { data: countries, isLoading: isCountriesLoading } = useCountries();
|
|
9774
|
-
if (isCountriesLoading)
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
/* @__PURE__ */
|
|
9779
|
-
|
|
9780
|
-
DesignButton14,
|
|
9629
|
+
if (isCountriesLoading) return /* @__PURE__ */ jsx116("div", { children: "Loading..." });
|
|
9630
|
+
return /* @__PURE__ */ jsxs95("div", { className: "lg:container mx-auto space-y-6 lg:space-y-10 ", children: [
|
|
9631
|
+
/* @__PURE__ */ jsxs95("div", { className: "lg:flex lg:justify-between lg:items-end", children: [
|
|
9632
|
+
/* @__PURE__ */ jsx116(H4Design3, { className: "pb-4 lg:pb-0", children: "Explore other Farmer Clusters" }),
|
|
9633
|
+
/* @__PURE__ */ jsx116(
|
|
9634
|
+
DesignButton13,
|
|
9781
9635
|
{
|
|
9782
9636
|
variant: "internalLink",
|
|
9783
9637
|
className: "h-auto p-0 text-base lg:p-0",
|
|
9784
|
-
children: /* @__PURE__ */
|
|
9638
|
+
children: /* @__PURE__ */ jsx116(Link19, { href: "/page/farmer-clusters/farmer-cluster-finder", children: "View all" })
|
|
9785
9639
|
}
|
|
9786
9640
|
)
|
|
9787
9641
|
] }),
|
|
9788
|
-
/* @__PURE__ */
|
|
9642
|
+
/* @__PURE__ */ jsx116(
|
|
9789
9643
|
ClusterList,
|
|
9790
9644
|
{
|
|
9791
9645
|
clusters: clusters == null ? void 0 : clusters.slice(0, 4).map((cluster) => {
|
|
@@ -9805,10 +9659,10 @@ var H3Clusters = ({ clusters }) => {
|
|
|
9805
9659
|
};
|
|
9806
9660
|
|
|
9807
9661
|
// src/components/DesignElements/Gallery/GalleryItem.tsx
|
|
9808
|
-
import { jsx as
|
|
9662
|
+
import { jsx as jsx117, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
9809
9663
|
var GalleryItem = ({ text, id }) => {
|
|
9810
|
-
return /* @__PURE__ */
|
|
9811
|
-
/* @__PURE__ */
|
|
9664
|
+
return /* @__PURE__ */ jsxs96("div", { className: "h-[22.25rem] sm:w-auto bg-center relative flex group ", children: [
|
|
9665
|
+
/* @__PURE__ */ jsx117(
|
|
9812
9666
|
ApiImage,
|
|
9813
9667
|
{
|
|
9814
9668
|
imageId: id,
|
|
@@ -9817,7 +9671,7 @@ var GalleryItem = ({ text, id }) => {
|
|
|
9817
9671
|
className: "h-full bg-black group-hover:brightness-50 rounded-xl object-cover"
|
|
9818
9672
|
}
|
|
9819
9673
|
),
|
|
9820
|
-
/* @__PURE__ */
|
|
9674
|
+
/* @__PURE__ */ jsx117("div", { className: " absolute bottom-6 opacity-0 group-hover:opacity-100", children: /* @__PURE__ */ jsx117("div", { className: " mx-6 text-white text-base leading-[120%] line-clamp-4", children: text }) })
|
|
9821
9675
|
] });
|
|
9822
9676
|
};
|
|
9823
9677
|
|
|
@@ -9831,14 +9685,14 @@ import {
|
|
|
9831
9685
|
} from "@geowiki/design-system";
|
|
9832
9686
|
|
|
9833
9687
|
// src/components/DesignElements/Gallery/GalleryCarouselOpen.tsx
|
|
9834
|
-
import { Fragment as
|
|
9835
|
-
import { Dialog as
|
|
9836
|
-
import { XMarkIcon as
|
|
9688
|
+
import { Fragment as Fragment27 } from "react";
|
|
9689
|
+
import { Dialog as Dialog20, Transition as Transition7 } from "@headlessui/react";
|
|
9690
|
+
import { XMarkIcon as XMarkIcon6 } from "@heroicons/react/24/outline";
|
|
9837
9691
|
import { useState as useState44, useEffect as useEffect22 } from "react";
|
|
9838
9692
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
9839
9693
|
import { useApiImage as useApiImage2 } from "@geowiki/core";
|
|
9840
|
-
import { Body16 as
|
|
9841
|
-
import { jsx as
|
|
9694
|
+
import { Body16 as Body165 } from "@geowiki/design-system";
|
|
9695
|
+
import { jsx as jsx118, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
9842
9696
|
var GalleryCarouselOpen = ({
|
|
9843
9697
|
list,
|
|
9844
9698
|
currentPhoto,
|
|
@@ -9875,31 +9729,31 @@ var GalleryCarouselOpen = ({
|
|
|
9875
9729
|
setDefaultText(foundPhoto.text);
|
|
9876
9730
|
}
|
|
9877
9731
|
}, [defaultPhoto, list]);
|
|
9878
|
-
return /* @__PURE__ */
|
|
9879
|
-
/* @__PURE__ */
|
|
9880
|
-
|
|
9732
|
+
return /* @__PURE__ */ jsx118(Transition7.Root, { show: open, as: Fragment27, "data-component": "ResourceView", children: /* @__PURE__ */ jsxs97(Dialog20, { as: "div", className: "relative z-10", onClose: setOpen, children: [
|
|
9733
|
+
/* @__PURE__ */ jsx118(
|
|
9734
|
+
Transition7.Child,
|
|
9881
9735
|
{
|
|
9882
|
-
as:
|
|
9736
|
+
as: Fragment27,
|
|
9883
9737
|
enter: "ease-out duration-300",
|
|
9884
9738
|
enterFrom: "opacity-0",
|
|
9885
9739
|
enterTo: "opacity-100",
|
|
9886
9740
|
leave: "ease-in duration-200",
|
|
9887
9741
|
leaveFrom: "opacity-100",
|
|
9888
9742
|
leaveTo: "opacity-0",
|
|
9889
|
-
children: /* @__PURE__ */
|
|
9743
|
+
children: /* @__PURE__ */ jsx118("div", { className: "fixed inset-0 bg-black bg-opacity-90 transition-opacity" })
|
|
9890
9744
|
}
|
|
9891
9745
|
),
|
|
9892
|
-
/* @__PURE__ */
|
|
9893
|
-
/* @__PURE__ */
|
|
9746
|
+
/* @__PURE__ */ jsx118(Dialog20.Panel, { className: "relative ", children: /* @__PURE__ */ jsxs97("div", { className: "fixed inset-0 flex items-center justify-between", children: [
|
|
9747
|
+
/* @__PURE__ */ jsx118("div", { className: "absolute top-0 right-0 pt-4 pr-4 z-40", children: /* @__PURE__ */ jsxs97(
|
|
9894
9748
|
"button",
|
|
9895
9749
|
{
|
|
9896
9750
|
type: "button",
|
|
9897
9751
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 ",
|
|
9898
9752
|
onClick: () => setOpen(false),
|
|
9899
9753
|
children: [
|
|
9900
|
-
/* @__PURE__ */
|
|
9901
|
-
/* @__PURE__ */
|
|
9902
|
-
|
|
9754
|
+
/* @__PURE__ */ jsx118("span", { className: "sr-only", children: "Close" }),
|
|
9755
|
+
/* @__PURE__ */ jsx118(
|
|
9756
|
+
XMarkIcon6,
|
|
9903
9757
|
{
|
|
9904
9758
|
className: "h-4 w-4 lg:h-6 lg:w-6 text-white",
|
|
9905
9759
|
"aria-hidden": "true"
|
|
@@ -9908,18 +9762,18 @@ var GalleryCarouselOpen = ({
|
|
|
9908
9762
|
]
|
|
9909
9763
|
}
|
|
9910
9764
|
) }),
|
|
9911
|
-
/* @__PURE__ */
|
|
9912
|
-
/* @__PURE__ */
|
|
9765
|
+
/* @__PURE__ */ jsx118("div", { className: "mx-20 w-full items-center z-30 cursor-default ", children: /* @__PURE__ */ jsxs97("div", { className: "flex justify-between w-full ", children: [
|
|
9766
|
+
/* @__PURE__ */ jsx118(
|
|
9913
9767
|
"button",
|
|
9914
9768
|
{
|
|
9915
9769
|
type: "button",
|
|
9916
9770
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40 ",
|
|
9917
9771
|
onClick: handlePrevious,
|
|
9918
|
-
children: /* @__PURE__ */
|
|
9772
|
+
children: /* @__PURE__ */ jsx118(ChevronLeft, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white" })
|
|
9919
9773
|
}
|
|
9920
9774
|
),
|
|
9921
|
-
/* @__PURE__ */
|
|
9922
|
-
/* @__PURE__ */
|
|
9775
|
+
/* @__PURE__ */ jsxs97("div", { className: "w-full flex-col flex items-center justify-center", children: [
|
|
9776
|
+
/* @__PURE__ */ jsx118(
|
|
9923
9777
|
"img",
|
|
9924
9778
|
{
|
|
9925
9779
|
src: data,
|
|
@@ -9928,15 +9782,15 @@ var GalleryCarouselOpen = ({
|
|
|
9928
9782
|
className: " h-4/6 w-auto py-4"
|
|
9929
9783
|
}
|
|
9930
9784
|
),
|
|
9931
|
-
/* @__PURE__ */
|
|
9785
|
+
/* @__PURE__ */ jsx118(Body165, { className: "z-40 text-white", children: text })
|
|
9932
9786
|
] }),
|
|
9933
|
-
/* @__PURE__ */
|
|
9787
|
+
/* @__PURE__ */ jsx118(
|
|
9934
9788
|
"button",
|
|
9935
9789
|
{
|
|
9936
9790
|
type: "button",
|
|
9937
9791
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40",
|
|
9938
9792
|
onClick: handleNext,
|
|
9939
|
-
children: /* @__PURE__ */
|
|
9793
|
+
children: /* @__PURE__ */ jsx118(ChevronRight, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white" })
|
|
9940
9794
|
}
|
|
9941
9795
|
)
|
|
9942
9796
|
] }) })
|
|
@@ -9946,7 +9800,7 @@ var GalleryCarouselOpen = ({
|
|
|
9946
9800
|
|
|
9947
9801
|
// src/components/DesignElements/Gallery/GalleryItemList.tsx
|
|
9948
9802
|
import { useState as useState45 } from "react";
|
|
9949
|
-
import { jsx as
|
|
9803
|
+
import { jsx as jsx119, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
9950
9804
|
var GalleryItemList = ({ galleryItems }) => {
|
|
9951
9805
|
const [open, setOpen] = useState45(false);
|
|
9952
9806
|
const [selectedItemId, setSelectedItemId] = useState45("");
|
|
@@ -9954,20 +9808,20 @@ var GalleryItemList = ({ galleryItems }) => {
|
|
|
9954
9808
|
setOpen(true);
|
|
9955
9809
|
setSelectedItemId(id);
|
|
9956
9810
|
};
|
|
9957
|
-
return /* @__PURE__ */
|
|
9958
|
-
/* @__PURE__ */
|
|
9959
|
-
/* @__PURE__ */
|
|
9811
|
+
return /* @__PURE__ */ jsxs98("div", { children: [
|
|
9812
|
+
/* @__PURE__ */ jsxs98(Carousel5, { className: "w-full px-8", children: [
|
|
9813
|
+
/* @__PURE__ */ jsx119(CarouselContent2, { className: "px-3", children: galleryItems.map((galleryItem, index) => /* @__PURE__ */ jsx119(CarouselItem2, { className: " md:basis-1/2 lg:basis-1/3", children: /* @__PURE__ */ jsx119("div", { className: "p-1", children: /* @__PURE__ */ jsx119(
|
|
9960
9814
|
"div",
|
|
9961
9815
|
{
|
|
9962
9816
|
className: "flex aspect-square items-center justify-center cursor-pointer",
|
|
9963
9817
|
onClick: () => handleOpenGallery(galleryItem.id),
|
|
9964
|
-
children: /* @__PURE__ */
|
|
9818
|
+
children: /* @__PURE__ */ jsx119(GalleryItem, { text: galleryItem.text, id: galleryItem.id })
|
|
9965
9819
|
}
|
|
9966
9820
|
) }) }, index)) }),
|
|
9967
|
-
/* @__PURE__ */
|
|
9968
|
-
/* @__PURE__ */
|
|
9821
|
+
/* @__PURE__ */ jsx119(CarouselPrevious2, {}),
|
|
9822
|
+
/* @__PURE__ */ jsx119(CarouselNext2, {})
|
|
9969
9823
|
] }),
|
|
9970
|
-
/* @__PURE__ */
|
|
9824
|
+
/* @__PURE__ */ jsx119(
|
|
9971
9825
|
GalleryCarouselOpen,
|
|
9972
9826
|
{
|
|
9973
9827
|
currentPhoto: { imageId: selectedItemId },
|
|
@@ -9983,9 +9837,9 @@ var GalleryItemList = ({ galleryItems }) => {
|
|
|
9983
9837
|
};
|
|
9984
9838
|
|
|
9985
9839
|
// src/components/DesignElements/NewsArticle/NewsArticleList.tsx
|
|
9986
|
-
import { jsx as
|
|
9840
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
9987
9841
|
var NewsArticleList = ({ newsArticles }) => {
|
|
9988
|
-
return /* @__PURE__ */
|
|
9842
|
+
return /* @__PURE__ */ jsx120("div", { className: "px-0", children: /* @__PURE__ */ jsx120("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: newsArticles.map((newsArticle, index) => /* @__PURE__ */ jsx120(
|
|
9989
9843
|
NewsArticle,
|
|
9990
9844
|
{
|
|
9991
9845
|
title: newsArticle.title,
|
|
@@ -10001,12 +9855,12 @@ var NewsArticleList = ({ newsArticles }) => {
|
|
|
10001
9855
|
};
|
|
10002
9856
|
|
|
10003
9857
|
// src/components/DesignElements/OpenPins/bioBlitzObservation.tsx
|
|
10004
|
-
import Image5 from "
|
|
10005
|
-
import { jsx as
|
|
9858
|
+
import { Image as Image5 } from "@geowiki/core";
|
|
9859
|
+
import { jsx as jsx121, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
10006
9860
|
var BIO_BLITZ_LINK_COLOR = "#59AD31";
|
|
10007
9861
|
var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
10008
|
-
return /* @__PURE__ */
|
|
10009
|
-
bioBlitzObservation.path && /* @__PURE__ */
|
|
9862
|
+
return /* @__PURE__ */ jsxs99("div", { className: "w-[230px] relative bg-white overflow-hidden rounded-3xl", children: [
|
|
9863
|
+
bioBlitzObservation.path && /* @__PURE__ */ jsx121(
|
|
10010
9864
|
Image5,
|
|
10011
9865
|
{
|
|
10012
9866
|
alt: "",
|
|
@@ -10016,14 +9870,14 @@ var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
|
10016
9870
|
className: "w-[230px] h-[150px] rounded-tl-3xl rounded-tr-3xl object-cover"
|
|
10017
9871
|
}
|
|
10018
9872
|
),
|
|
10019
|
-
/* @__PURE__ */
|
|
10020
|
-
/* @__PURE__ */
|
|
10021
|
-
/* @__PURE__ */
|
|
10022
|
-
/* @__PURE__ */
|
|
9873
|
+
/* @__PURE__ */ jsxs99("div", { className: "p-4 space-y-1 whitespace-normal overflow-hidden break-words", children: [
|
|
9874
|
+
/* @__PURE__ */ jsx121("div", { className: "text-lg font-medium leading-[130%]", children: bioBlitzObservation.title }),
|
|
9875
|
+
/* @__PURE__ */ jsx121("div", { className: "text-base font-normal italic leading-[130%]", children: bioBlitzObservation.taxonomicName }),
|
|
9876
|
+
/* @__PURE__ */ jsxs99("div", { className: "text-base font-normal leading-[130%]", children: [
|
|
10023
9877
|
"Observed on ",
|
|
10024
9878
|
bioBlitzObservation.date
|
|
10025
9879
|
] }),
|
|
10026
|
-
/* @__PURE__ */
|
|
9880
|
+
/* @__PURE__ */ jsx121(
|
|
10027
9881
|
"a",
|
|
10028
9882
|
{
|
|
10029
9883
|
href: bioBlitzObservation.link,
|
|
@@ -10039,21 +9893,21 @@ var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
|
10039
9893
|
};
|
|
10040
9894
|
|
|
10041
9895
|
// src/components/DesignElements/OpenPins/farmerClusterPins.tsx
|
|
10042
|
-
import { DesignButton as
|
|
9896
|
+
import { DesignButton as DesignButton14 } from "@geowiki/design-system";
|
|
10043
9897
|
import { Body18m as Body18m6, Body14 as Body142 } from "@geowiki/design-system";
|
|
10044
|
-
import Image6 from "
|
|
10045
|
-
import
|
|
10046
|
-
import { jsx as
|
|
9898
|
+
import { Image as Image6 } from "@geowiki/core";
|
|
9899
|
+
import { Link as Link20 } from "@geowiki/core";
|
|
9900
|
+
import { jsx as jsx122, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
10047
9901
|
var DesignFarmerClusterPin = ({
|
|
10048
9902
|
farmerCluster,
|
|
10049
9903
|
buttonText
|
|
10050
9904
|
}) => {
|
|
10051
|
-
return /* @__PURE__ */
|
|
10052
|
-
/* @__PURE__ */
|
|
10053
|
-
/* @__PURE__ */
|
|
10054
|
-
/* @__PURE__ */
|
|
10055
|
-
/* @__PURE__ */
|
|
10056
|
-
|
|
9905
|
+
return /* @__PURE__ */ jsxs100("div", { className: "flex-col flex w-[230px] justify-between items-start bg-white rounded-3xl lg:flex-row lg:h-[12.5rem] lg:w-[36rem] lg:inline-flex lg:items-center", children: [
|
|
9906
|
+
/* @__PURE__ */ jsxs100("div", { className: "flex-col gap-3 py-4 px-3 flex justify-center items-start lg:w-[22rem] lg:py-0 lg:px-6", children: [
|
|
9907
|
+
/* @__PURE__ */ jsx122(Body18m6, { children: farmerCluster.title }),
|
|
9908
|
+
/* @__PURE__ */ jsx122(Body142, { className: "line-clamp-3", children: farmerCluster.description }),
|
|
9909
|
+
/* @__PURE__ */ jsx122(Link20, { href: farmerCluster.viewUrl, className: "internal-link ", children: /* @__PURE__ */ jsx122(
|
|
9910
|
+
DesignButton14,
|
|
10057
9911
|
{
|
|
10058
9912
|
variant: "internalLink",
|
|
10059
9913
|
className: "h-auto p-0 text-base lg:p-0",
|
|
@@ -10061,7 +9915,7 @@ var DesignFarmerClusterPin = ({
|
|
|
10061
9915
|
}
|
|
10062
9916
|
) })
|
|
10063
9917
|
] }),
|
|
10064
|
-
/* @__PURE__ */
|
|
9918
|
+
/* @__PURE__ */ jsx122("div", { className: "relative", children: /* @__PURE__ */ jsx122(
|
|
10065
9919
|
Image6,
|
|
10066
9920
|
{
|
|
10067
9921
|
alt: "",
|
|
@@ -10076,28 +9930,28 @@ var DesignFarmerClusterPin = ({
|
|
|
10076
9930
|
|
|
10077
9931
|
// src/components/DesignElements/HeadingTextBlocks/LandingTitleBodyButton.tsx
|
|
10078
9932
|
import { LandingTitle, Body18 as Body186 } from "@geowiki/design-system";
|
|
10079
|
-
import { DesignButton as
|
|
10080
|
-
import
|
|
10081
|
-
import { jsx as
|
|
9933
|
+
import { DesignButton as DesignButton15 } from "@geowiki/design-system";
|
|
9934
|
+
import { Link as Link21 } from "@geowiki/core";
|
|
9935
|
+
import { jsx as jsx123, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
10082
9936
|
var LandingTitleBodyButton = ({ title, textBody, button }) => {
|
|
10083
9937
|
const isNeedParse = /<em>(.*?)<\/em>/g.test(title);
|
|
10084
|
-
return /* @__PURE__ */
|
|
10085
|
-
isNeedParse && /* @__PURE__ */
|
|
9938
|
+
return /* @__PURE__ */ jsxs101("div", { className: "lg:container mx-auto max-w-3xl lg:max-w-5xl space-y-4 mt-3 lg:mt-12", children: [
|
|
9939
|
+
isNeedParse && /* @__PURE__ */ jsx123(
|
|
10086
9940
|
HtmlView,
|
|
10087
9941
|
{
|
|
10088
9942
|
cssClass: "m-0",
|
|
10089
9943
|
html: parseTitle(title, "LandingTitle")
|
|
10090
9944
|
}
|
|
10091
9945
|
),
|
|
10092
|
-
!isNeedParse && /* @__PURE__ */
|
|
10093
|
-
/* @__PURE__ */
|
|
10094
|
-
button.text && button.link && /* @__PURE__ */
|
|
10095
|
-
|
|
9946
|
+
!isNeedParse && /* @__PURE__ */ jsx123(LandingTitle, { children: title }),
|
|
9947
|
+
/* @__PURE__ */ jsx123(Body186, { children: textBody }),
|
|
9948
|
+
button.text && button.link && /* @__PURE__ */ jsx123("div", { children: /* @__PURE__ */ jsx123(
|
|
9949
|
+
Link21,
|
|
10096
9950
|
{
|
|
10097
9951
|
href: button.link,
|
|
10098
9952
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10099
9953
|
rel: "noreferrer",
|
|
10100
|
-
children: /* @__PURE__ */
|
|
9954
|
+
children: /* @__PURE__ */ jsx123(DesignButton15, { children: button.text })
|
|
10101
9955
|
}
|
|
10102
9956
|
) })
|
|
10103
9957
|
] });
|
|
@@ -10105,11 +9959,11 @@ var LandingTitleBodyButton = ({ title, textBody, button }) => {
|
|
|
10105
9959
|
|
|
10106
9960
|
// src/components/DesignElements/HeadingTextBlocks/H1BodyButton.tsx
|
|
10107
9961
|
import { H1Design } from "@geowiki/design-system";
|
|
10108
|
-
import { DesignButton as
|
|
10109
|
-
import
|
|
9962
|
+
import { DesignButton as DesignButton16 } from "@geowiki/design-system";
|
|
9963
|
+
import { Link as Link22 } from "@geowiki/core";
|
|
10110
9964
|
import { configStore as configStore2 } from "@geowiki/core";
|
|
10111
9965
|
import parse2 from "html-react-parser";
|
|
10112
|
-
import { jsx as
|
|
9966
|
+
import { jsx as jsx124, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
10113
9967
|
var HtmlView2 = (props) => {
|
|
10114
9968
|
const options = {
|
|
10115
9969
|
replace: (domNode) => {
|
|
@@ -10125,11 +9979,11 @@ var HtmlView2 = (props) => {
|
|
|
10125
9979
|
data = data.replace(match, imageHtml);
|
|
10126
9980
|
});
|
|
10127
9981
|
}
|
|
10128
|
-
return /* @__PURE__ */
|
|
9982
|
+
return /* @__PURE__ */ jsx124("span", { children: parse2(data) });
|
|
10129
9983
|
}
|
|
10130
9984
|
}
|
|
10131
9985
|
};
|
|
10132
|
-
return /* @__PURE__ */
|
|
9986
|
+
return /* @__PURE__ */ jsxs102(
|
|
10133
9987
|
"div",
|
|
10134
9988
|
{
|
|
10135
9989
|
className: props.cssClass !== void 0 && props.cssClass !== null ? props.cssClass : "m-5 ",
|
|
@@ -10152,40 +10006,40 @@ var H1BodyButton = ({
|
|
|
10152
10006
|
const modifiedText = text.replace(regex, `$1${textToAdd}`);
|
|
10153
10007
|
return modifiedText;
|
|
10154
10008
|
};
|
|
10155
|
-
return /* @__PURE__ */
|
|
10009
|
+
return /* @__PURE__ */ jsxs102(
|
|
10156
10010
|
"div",
|
|
10157
10011
|
{
|
|
10158
10012
|
className: "px-0 container mx-auto mt-6 lg:mt-10 flex justify-start",
|
|
10159
10013
|
"data-component-name": "H1BodyButton",
|
|
10160
10014
|
children: [
|
|
10161
|
-
/* @__PURE__ */
|
|
10162
|
-
/* @__PURE__ */
|
|
10163
|
-
isNeedParse && /* @__PURE__ */
|
|
10164
|
-
!isNeedParse && /* @__PURE__ */
|
|
10015
|
+
/* @__PURE__ */ jsx124("div", { className: "hidden lg:block lg:w-1/4" }),
|
|
10016
|
+
/* @__PURE__ */ jsxs102("div", { className: "w-full max-w-3xl lg:px-5", children: [
|
|
10017
|
+
isNeedParse && /* @__PURE__ */ jsx124(HtmlView2, { cssClass: "m-0", html: parseTitle(title, "H1") }),
|
|
10018
|
+
!isNeedParse && /* @__PURE__ */ jsxs102(H1Design, { children: [
|
|
10165
10019
|
title,
|
|
10166
10020
|
" "
|
|
10167
10021
|
] }),
|
|
10168
|
-
textBody && /* @__PURE__ */
|
|
10022
|
+
textBody && /* @__PURE__ */ jsx124(
|
|
10169
10023
|
HtmlView2,
|
|
10170
10024
|
{
|
|
10171
10025
|
cssClass: "m-0 text-base lg:text-lg leading-[130%] pt-4 lg:pt-6",
|
|
10172
10026
|
html: addLinksStyles(textBody)
|
|
10173
10027
|
}
|
|
10174
10028
|
),
|
|
10175
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10176
|
-
|
|
10029
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx124("div", { className: "pt-4 lg:pt-6", children: /* @__PURE__ */ jsx124(
|
|
10030
|
+
Link22,
|
|
10177
10031
|
{
|
|
10178
10032
|
href: button.link,
|
|
10179
10033
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10180
10034
|
rel: "noreferrer",
|
|
10181
|
-
children: button.isNewTab ? /* @__PURE__ */
|
|
10182
|
-
|
|
10035
|
+
children: button.isNewTab ? /* @__PURE__ */ jsx124(
|
|
10036
|
+
DesignButton16,
|
|
10183
10037
|
{
|
|
10184
10038
|
variant: "externalLink",
|
|
10185
10039
|
className: "h-auto p-0 lg:p-0",
|
|
10186
10040
|
children: button.text
|
|
10187
10041
|
}
|
|
10188
|
-
) : /* @__PURE__ */
|
|
10042
|
+
) : /* @__PURE__ */ jsx124(DesignButton16, { children: button.text })
|
|
10189
10043
|
}
|
|
10190
10044
|
) })
|
|
10191
10045
|
] })
|
|
@@ -10196,9 +10050,9 @@ var H1BodyButton = ({
|
|
|
10196
10050
|
|
|
10197
10051
|
// src/components/DesignElements/HeadingTextBlocks/H2BodyButton.tsx
|
|
10198
10052
|
import { H2Design as H2Design2, Body18 as Body187 } from "@geowiki/design-system";
|
|
10199
|
-
import { DesignButton as
|
|
10200
|
-
import
|
|
10201
|
-
import { jsx as
|
|
10053
|
+
import { DesignButton as DesignButton17 } from "@geowiki/design-system";
|
|
10054
|
+
import { Link as Link23 } from "@geowiki/core";
|
|
10055
|
+
import { jsx as jsx125, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
10202
10056
|
var H2BodyButton = ({
|
|
10203
10057
|
title,
|
|
10204
10058
|
textBody,
|
|
@@ -10213,42 +10067,42 @@ var H2BodyButton = ({
|
|
|
10213
10067
|
const modifiedText = content.replace(regex, `$1${textToAdd}`);
|
|
10214
10068
|
return modifiedText;
|
|
10215
10069
|
};
|
|
10216
|
-
return /* @__PURE__ */
|
|
10070
|
+
return /* @__PURE__ */ jsxs103(
|
|
10217
10071
|
"div",
|
|
10218
10072
|
{
|
|
10219
10073
|
className: `lg:container mx-auto flex flex-col lg:flex-row justify-between mt-6 lg:mt-20 ${bottomPadding && `lg:mb-${bottomPadding}`}`,
|
|
10220
10074
|
children: [
|
|
10221
|
-
/* @__PURE__ */
|
|
10222
|
-
/* @__PURE__ */
|
|
10223
|
-
isNeedParse && /* @__PURE__ */
|
|
10075
|
+
/* @__PURE__ */ jsx125("div", { className: "flex flex-col lg:w-[15%]", children: /* @__PURE__ */ jsx125(Body187, { children: tag }) }),
|
|
10076
|
+
/* @__PURE__ */ jsxs103("div", { className: "flex flex-col lg:w-[50%] space-y-4 lg:space-y-6 ", children: [
|
|
10077
|
+
isNeedParse && /* @__PURE__ */ jsx125(
|
|
10224
10078
|
HtmlView,
|
|
10225
10079
|
{
|
|
10226
10080
|
cssClass: "m-0 pt-2 lg:pt-0",
|
|
10227
10081
|
html: parseTitle(title, "H2")
|
|
10228
10082
|
}
|
|
10229
10083
|
),
|
|
10230
|
-
!isNeedParse && /* @__PURE__ */
|
|
10084
|
+
!isNeedParse && /* @__PURE__ */ jsxs103(H2Design2, { className: "pt-2 lg:pt-0", children: [
|
|
10231
10085
|
title,
|
|
10232
10086
|
" "
|
|
10233
10087
|
] }),
|
|
10234
|
-
/* @__PURE__ */
|
|
10088
|
+
/* @__PURE__ */ jsx125(
|
|
10235
10089
|
HtmlView,
|
|
10236
10090
|
{
|
|
10237
10091
|
cssClass: "m-0 text-base lg:text-lg leading-[130%] lg:mt-4",
|
|
10238
10092
|
html: addLinksStyles(textBody)
|
|
10239
10093
|
}
|
|
10240
10094
|
),
|
|
10241
|
-
button.text && button.link && /* @__PURE__ */
|
|
10242
|
-
|
|
10095
|
+
button.text && button.link && /* @__PURE__ */ jsx125("div", { children: /* @__PURE__ */ jsx125(
|
|
10096
|
+
Link23,
|
|
10243
10097
|
{
|
|
10244
10098
|
href: button.link,
|
|
10245
10099
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10246
10100
|
rel: "noreferrer",
|
|
10247
|
-
children: /* @__PURE__ */
|
|
10101
|
+
children: /* @__PURE__ */ jsx125(DesignButton17, { children: button.text })
|
|
10248
10102
|
}
|
|
10249
10103
|
) })
|
|
10250
10104
|
] }),
|
|
10251
|
-
/* @__PURE__ */
|
|
10105
|
+
/* @__PURE__ */ jsx125("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10252
10106
|
]
|
|
10253
10107
|
}
|
|
10254
10108
|
);
|
|
@@ -10256,7 +10110,7 @@ var H2BodyButton = ({
|
|
|
10256
10110
|
|
|
10257
10111
|
// src/components/DesignElements/HeadingTextBlocks/H1Body.tsx
|
|
10258
10112
|
import { H1Design as H1Design2 } from "@geowiki/design-system";
|
|
10259
|
-
import { jsx as
|
|
10113
|
+
import { jsx as jsx126, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
10260
10114
|
var H1Body = ({ title, textBody }) => {
|
|
10261
10115
|
const addLinksStyles = (text) => {
|
|
10262
10116
|
const textToAdd = " class='text-primary font-semibold'";
|
|
@@ -10264,12 +10118,12 @@ var H1Body = ({ title, textBody }) => {
|
|
|
10264
10118
|
const modifiedText = text.replace(regex, `$1${textToAdd}`);
|
|
10265
10119
|
return modifiedText;
|
|
10266
10120
|
};
|
|
10267
|
-
return /* @__PURE__ */
|
|
10268
|
-
/* @__PURE__ */
|
|
10121
|
+
return /* @__PURE__ */ jsxs104("div", { className: "space-y-6 pt-6 lg:pt-10", "data-component-name": "H1Body", children: [
|
|
10122
|
+
/* @__PURE__ */ jsxs104(H1Design2, { children: [
|
|
10269
10123
|
title,
|
|
10270
10124
|
" "
|
|
10271
10125
|
] }),
|
|
10272
|
-
/* @__PURE__ */
|
|
10126
|
+
/* @__PURE__ */ jsx126(
|
|
10273
10127
|
HtmlView,
|
|
10274
10128
|
{
|
|
10275
10129
|
cssClass: "m-0 text-base lg:text-lg leading-[130%]",
|
|
@@ -10281,7 +10135,7 @@ var H1Body = ({ title, textBody }) => {
|
|
|
10281
10135
|
|
|
10282
10136
|
// src/components/DesignElements/HeadingTextBlocks/H7Body.tsx
|
|
10283
10137
|
import { H7Design as H7Design2 } from "@geowiki/design-system";
|
|
10284
|
-
import { jsx as
|
|
10138
|
+
import { jsx as jsx127, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
10285
10139
|
var H7Body = ({ title, textBody }) => {
|
|
10286
10140
|
const addLinksStyles = (text) => {
|
|
10287
10141
|
const textToAdd = " class='text-primary font-semibold'";
|
|
@@ -10289,12 +10143,12 @@ var H7Body = ({ title, textBody }) => {
|
|
|
10289
10143
|
const modifiedText = text.replace(regex, `$1${textToAdd}`);
|
|
10290
10144
|
return modifiedText;
|
|
10291
10145
|
};
|
|
10292
|
-
return /* @__PURE__ */
|
|
10293
|
-
/* @__PURE__ */
|
|
10146
|
+
return /* @__PURE__ */ jsxs105("div", { className: "space-y-4 pt-6 lg:pt-12", "data-component-name": "H7Body", children: [
|
|
10147
|
+
/* @__PURE__ */ jsxs105(H7Design2, { children: [
|
|
10294
10148
|
title,
|
|
10295
10149
|
" "
|
|
10296
10150
|
] }),
|
|
10297
|
-
/* @__PURE__ */
|
|
10151
|
+
/* @__PURE__ */ jsx127(
|
|
10298
10152
|
HtmlView,
|
|
10299
10153
|
{
|
|
10300
10154
|
cssClass: "m-0 text-grey text-sm lg:text-base leading-[130%] prose max-w-full",
|
|
@@ -10305,21 +10159,21 @@ var H7Body = ({ title, textBody }) => {
|
|
|
10305
10159
|
};
|
|
10306
10160
|
|
|
10307
10161
|
// src/components/DesignElements/HeadingTextBlocks/NewsHeading.tsx
|
|
10308
|
-
import { jsx as
|
|
10162
|
+
import { jsx as jsx128, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
10309
10163
|
var NewsHeading = () => {
|
|
10310
10164
|
const title = "Global <em>Newsfeed</em>";
|
|
10311
10165
|
const textBody = "Stay up to date and follow the global discussion on the challenging interplay of biodiversity, agriculture, valuing nature and the essential services ecosystems provide us with, via reports, best practices and discussions in online media.";
|
|
10312
|
-
return /* @__PURE__ */
|
|
10166
|
+
return /* @__PURE__ */ jsxs106(
|
|
10313
10167
|
"div",
|
|
10314
10168
|
{
|
|
10315
10169
|
className: "container mx-auto px-0 lg:px-[2rem] max-w-3xl mt-6 lg:mt-10",
|
|
10316
10170
|
"data-component-name": "NewsHeading",
|
|
10317
10171
|
children: [
|
|
10318
|
-
/* @__PURE__ */
|
|
10319
|
-
/* @__PURE__ */
|
|
10320
|
-
/* @__PURE__ */
|
|
10321
|
-
/* @__PURE__ */
|
|
10322
|
-
/* @__PURE__ */
|
|
10172
|
+
/* @__PURE__ */ jsx128(HtmlView, { cssClass: "m-0", html: parseTitle(title, "H1") }),
|
|
10173
|
+
/* @__PURE__ */ jsx128("div", { className: "pt-4 pb-4 text-base lg:text-lg leading-[130%] lg:pt-6", children: textBody }),
|
|
10174
|
+
/* @__PURE__ */ jsxs106("label", { children: [
|
|
10175
|
+
/* @__PURE__ */ jsx128("span", { className: " text-base italic lg:text-lg leading-[130%]", children: "Please consider the content disclaimer in our " }),
|
|
10176
|
+
/* @__PURE__ */ jsx128(
|
|
10323
10177
|
"a",
|
|
10324
10178
|
{
|
|
10325
10179
|
href: "/page/terms-of-use",
|
|
@@ -10327,7 +10181,7 @@ var NewsHeading = () => {
|
|
|
10327
10181
|
children: "Terms of Use"
|
|
10328
10182
|
}
|
|
10329
10183
|
),
|
|
10330
|
-
/* @__PURE__ */
|
|
10184
|
+
/* @__PURE__ */ jsx128("span", { className: " text-base italic lg:text-lg leading-[130%]", children: " regarding third party apps and websites" })
|
|
10331
10185
|
] })
|
|
10332
10186
|
]
|
|
10333
10187
|
}
|
|
@@ -10336,9 +10190,9 @@ var NewsHeading = () => {
|
|
|
10336
10190
|
|
|
10337
10191
|
// src/components/DesignElements/TextBlocks/subtitle-h3-body.tsx
|
|
10338
10192
|
import { H3Design as H3Design2, Body18 as Body188 } from "@geowiki/design-system";
|
|
10339
|
-
import { DesignButton as
|
|
10340
|
-
import
|
|
10341
|
-
import { jsx as
|
|
10193
|
+
import { DesignButton as DesignButton18 } from "@geowiki/design-system";
|
|
10194
|
+
import { Link as Link24 } from "@geowiki/core";
|
|
10195
|
+
import { jsx as jsx129, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
10342
10196
|
var SubtitleH3Body = ({
|
|
10343
10197
|
title,
|
|
10344
10198
|
subtitle,
|
|
@@ -10353,19 +10207,19 @@ var SubtitleH3Body = ({
|
|
|
10353
10207
|
const modifiedText = content2.replace(regex, `$1${textToAdd}`);
|
|
10354
10208
|
return modifiedText;
|
|
10355
10209
|
};
|
|
10356
|
-
return /* @__PURE__ */
|
|
10210
|
+
return /* @__PURE__ */ jsxs107(
|
|
10357
10211
|
"div",
|
|
10358
10212
|
{
|
|
10359
10213
|
className: `${backgroundColor ? backgroundColor : "bg-grey-lightest"} mt-6 rounded-xl lg:mt-10 `,
|
|
10360
10214
|
"data-component": "SubtitleH3Body",
|
|
10361
10215
|
id: "FRAMEwork",
|
|
10362
10216
|
children: [
|
|
10363
|
-
/* @__PURE__ */
|
|
10364
|
-
/* @__PURE__ */
|
|
10365
|
-
/* @__PURE__ */
|
|
10366
|
-
/* @__PURE__ */
|
|
10367
|
-
/* @__PURE__ */
|
|
10368
|
-
/* @__PURE__ */
|
|
10217
|
+
/* @__PURE__ */ jsx129("a", { href: "#FRAMEwork" }),
|
|
10218
|
+
/* @__PURE__ */ jsxs107("div", { className: "container mx-auto flex flex-col lg:flex-row justify-between px-5 py-6 text-lg rounded-xl max-md:px-5 lg:px-12 lg:py-20", children: [
|
|
10219
|
+
/* @__PURE__ */ jsx129("div", { className: "flex flex-col lg:w-[15%] ", children: /* @__PURE__ */ jsx129(Body188, { children: subtitle }) }),
|
|
10220
|
+
/* @__PURE__ */ jsx129("div", { className: "flex flex-col lg:w-[50%] ", children: /* @__PURE__ */ jsxs107("div", { className: "flex flex-col leading-6 text-gray-900 max-md:max-w-full", children: [
|
|
10221
|
+
/* @__PURE__ */ jsx129(H3Design2, { className: "pt-2 lg:pt-0", children: title }),
|
|
10222
|
+
/* @__PURE__ */ jsx129(
|
|
10369
10223
|
HtmlView,
|
|
10370
10224
|
{
|
|
10371
10225
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
@@ -10373,14 +10227,14 @@ var SubtitleH3Body = ({
|
|
|
10373
10227
|
html: addLinksStyles(content)
|
|
10374
10228
|
}
|
|
10375
10229
|
),
|
|
10376
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10377
|
-
|
|
10230
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx129(
|
|
10231
|
+
Link24,
|
|
10378
10232
|
{
|
|
10379
10233
|
href: button.link,
|
|
10380
10234
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10381
10235
|
rel: "noreferrer",
|
|
10382
|
-
children: /* @__PURE__ */
|
|
10383
|
-
|
|
10236
|
+
children: /* @__PURE__ */ jsx129(
|
|
10237
|
+
DesignButton18,
|
|
10384
10238
|
{
|
|
10385
10239
|
variant: "externalLink",
|
|
10386
10240
|
className: "h-auto p-0 flex self-start mt-6 lg:mt-10 font-medium lg:p-0",
|
|
@@ -10390,7 +10244,7 @@ var SubtitleH3Body = ({
|
|
|
10390
10244
|
}
|
|
10391
10245
|
)
|
|
10392
10246
|
] }) }),
|
|
10393
|
-
/* @__PURE__ */
|
|
10247
|
+
/* @__PURE__ */ jsx129("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10394
10248
|
] })
|
|
10395
10249
|
]
|
|
10396
10250
|
}
|
|
@@ -10399,7 +10253,7 @@ var SubtitleH3Body = ({
|
|
|
10399
10253
|
|
|
10400
10254
|
// src/components/DesignElements/TextBlocks/subtitle-h3-body-internal-link-list.tsx
|
|
10401
10255
|
import { H3Design as H3Design3, Body18 as Body189 } from "@geowiki/design-system";
|
|
10402
|
-
import { jsx as
|
|
10256
|
+
import { jsx as jsx130, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
10403
10257
|
var SubtitleH3BodyInternalLinkList = ({
|
|
10404
10258
|
title,
|
|
10405
10259
|
subtitle,
|
|
@@ -10416,28 +10270,28 @@ var SubtitleH3BodyInternalLinkList = ({
|
|
|
10416
10270
|
const modifiedText = decodedContent == null ? void 0 : decodedContent.replace(regex, `$1${textToAdd}`);
|
|
10417
10271
|
return modifiedText;
|
|
10418
10272
|
};
|
|
10419
|
-
return /* @__PURE__ */
|
|
10273
|
+
return /* @__PURE__ */ jsxs108(
|
|
10420
10274
|
"div",
|
|
10421
10275
|
{
|
|
10422
10276
|
"data-component": "SubtitleH3BodyInternalLinkList",
|
|
10423
10277
|
className: "mt-6 lg:mt-10 bg-primary rounded-xl",
|
|
10424
10278
|
id: "our-resources",
|
|
10425
10279
|
children: [
|
|
10426
|
-
/* @__PURE__ */
|
|
10427
|
-
/* @__PURE__ */
|
|
10428
|
-
/* @__PURE__ */
|
|
10429
|
-
/* @__PURE__ */
|
|
10430
|
-
/* @__PURE__ */
|
|
10431
|
-
/* @__PURE__ */
|
|
10280
|
+
/* @__PURE__ */ jsx130("a", { href: "#our-resources" }),
|
|
10281
|
+
/* @__PURE__ */ jsxs108("div", { className: "container mx-auto flex flex-col lg:flex-row justify-between lg:px-12 lg:py-20 px-5 py-6", children: [
|
|
10282
|
+
/* @__PURE__ */ jsx130("div", { className: "flex flex-col lg:w-[15%] max-md:ml-0 max-md:w-full text-white", children: /* @__PURE__ */ jsx130(Body189, { children: subtitle }) }),
|
|
10283
|
+
/* @__PURE__ */ jsx130("div", { className: "flex flex-col lg:w-[50%]", children: /* @__PURE__ */ jsxs108("div", { className: "flex flex-col grow text-white max-md:mt-2 max-md:max-w-full", children: [
|
|
10284
|
+
/* @__PURE__ */ jsx130(H3Design3, { children: title }),
|
|
10285
|
+
/* @__PURE__ */ jsx130(
|
|
10432
10286
|
HtmlView,
|
|
10433
10287
|
{
|
|
10434
10288
|
cssClass: "pt-4 pb-2 lg:pt-6 lg:pb-4 text-[.9375rem] text-white lg:text-lg leading-[130%] prose",
|
|
10435
10289
|
html: addLinksStyles(textBody)
|
|
10436
10290
|
}
|
|
10437
10291
|
),
|
|
10438
|
-
/* @__PURE__ */
|
|
10292
|
+
/* @__PURE__ */ jsx130(DesignListLink, { links, fillColor: "fill-white" })
|
|
10439
10293
|
] }) }),
|
|
10440
|
-
/* @__PURE__ */
|
|
10294
|
+
/* @__PURE__ */ jsx130("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10441
10295
|
] })
|
|
10442
10296
|
]
|
|
10443
10297
|
}
|
|
@@ -10446,7 +10300,7 @@ var SubtitleH3BodyInternalLinkList = ({
|
|
|
10446
10300
|
|
|
10447
10301
|
// src/components/DesignElements/TextBlocks/subtitle-h3-faq.tsx
|
|
10448
10302
|
import { H3Design as H3Design4, Body18 as Body1810 } from "@geowiki/design-system";
|
|
10449
|
-
import { jsx as
|
|
10303
|
+
import { jsx as jsx131, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
10450
10304
|
var SubtitleH3Faq = ({
|
|
10451
10305
|
title,
|
|
10452
10306
|
subtitle,
|
|
@@ -10454,25 +10308,25 @@ var SubtitleH3Faq = ({
|
|
|
10454
10308
|
faqs,
|
|
10455
10309
|
backgroundColor
|
|
10456
10310
|
}) => {
|
|
10457
|
-
return /* @__PURE__ */
|
|
10458
|
-
/* @__PURE__ */
|
|
10459
|
-
/* @__PURE__ */
|
|
10311
|
+
return /* @__PURE__ */ jsxs109("div", { id: "faq", children: [
|
|
10312
|
+
/* @__PURE__ */ jsx131("a", { href: "#faq" }),
|
|
10313
|
+
/* @__PURE__ */ jsx131(
|
|
10460
10314
|
"div",
|
|
10461
10315
|
{
|
|
10462
10316
|
className: `${backgroundColor} rounded-xl `,
|
|
10463
10317
|
"data-component": "SubtitleH3Faq",
|
|
10464
|
-
children: /* @__PURE__ */
|
|
10318
|
+
children: /* @__PURE__ */ jsxs109(
|
|
10465
10319
|
"div",
|
|
10466
10320
|
{
|
|
10467
10321
|
className: `container mx-auto flex flex-col lg:flex-row justify-between py-6 lg:px-12 lg:pt-20 lg:pb-14 lg:mt-10 ${backgroundColor === "" ? "px-0 mt-2" : " px-5 mt-6 "}`,
|
|
10468
10322
|
children: [
|
|
10469
|
-
/* @__PURE__ */
|
|
10470
|
-
/* @__PURE__ */
|
|
10471
|
-
/* @__PURE__ */
|
|
10472
|
-
/* @__PURE__ */
|
|
10473
|
-
faqs && /* @__PURE__ */
|
|
10323
|
+
/* @__PURE__ */ jsx131(Body1810, { className: "w-[15%] pb-2 lg:pb-0", children: subtitle }),
|
|
10324
|
+
/* @__PURE__ */ jsxs109("div", { className: "lg:w-[50%]", children: [
|
|
10325
|
+
/* @__PURE__ */ jsx131(H3Design4, { className: "pb-4", children: title }),
|
|
10326
|
+
/* @__PURE__ */ jsx131(Body1810, { children: description }),
|
|
10327
|
+
faqs && /* @__PURE__ */ jsx131(FAQ, { faqs, backgroundColor })
|
|
10474
10328
|
] }),
|
|
10475
|
-
/* @__PURE__ */
|
|
10329
|
+
/* @__PURE__ */ jsx131("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10476
10330
|
]
|
|
10477
10331
|
}
|
|
10478
10332
|
)
|
|
@@ -10485,9 +10339,9 @@ var SubtitleH3Faq = ({
|
|
|
10485
10339
|
import { H3Design as H3Design5, Body18 as Body1811 } from "@geowiki/design-system";
|
|
10486
10340
|
import { useClusters, useCountries as useCountries2 } from "@geowiki/core";
|
|
10487
10341
|
import { v4 as v417 } from "uuid";
|
|
10488
|
-
import { DesignButton as
|
|
10489
|
-
import
|
|
10490
|
-
import { jsx as
|
|
10342
|
+
import { DesignButton as DesignButton19 } from "@geowiki/design-system";
|
|
10343
|
+
import { Link as Link25 } from "@geowiki/core";
|
|
10344
|
+
import { jsx as jsx132, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
10491
10345
|
var SubtitleH3Cluster4Column = ({
|
|
10492
10346
|
title,
|
|
10493
10347
|
subtitle,
|
|
@@ -10501,24 +10355,23 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10501
10355
|
4
|
|
10502
10356
|
);
|
|
10503
10357
|
const { data: countries, isLoading: isCountriesLoading } = useCountries2();
|
|
10504
|
-
if (isClusterLoading || isCountriesLoading)
|
|
10505
|
-
|
|
10506
|
-
return /* @__PURE__ */ jsxs111(
|
|
10358
|
+
if (isClusterLoading || isCountriesLoading) return /* @__PURE__ */ jsx132("div", { children: "Loading..." });
|
|
10359
|
+
return /* @__PURE__ */ jsxs110(
|
|
10507
10360
|
"div",
|
|
10508
10361
|
{
|
|
10509
10362
|
className: "lg:container mx-auto space-y-6 rounded-xl mt-6 lg:mt-20 lg:space-y-12",
|
|
10510
10363
|
"data-component": "SubtitleH3Cluster4Column",
|
|
10511
10364
|
children: [
|
|
10512
|
-
/* @__PURE__ */
|
|
10513
|
-
/* @__PURE__ */
|
|
10514
|
-
/* @__PURE__ */
|
|
10515
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10516
|
-
|
|
10365
|
+
/* @__PURE__ */ jsxs110("div", { className: "lg:flex lg:justify-between items-start", children: [
|
|
10366
|
+
/* @__PURE__ */ jsx132(Body1811, { children: subtitle }),
|
|
10367
|
+
/* @__PURE__ */ jsx132(H3Design5, { className: "pt-2 pb-4 lg:py-0 max-w-2xl", children: title }),
|
|
10368
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx132(
|
|
10369
|
+
DesignButton19,
|
|
10517
10370
|
{
|
|
10518
10371
|
variant: "internalLink",
|
|
10519
10372
|
className: "h-auto p-0 text-base lg:p-0",
|
|
10520
|
-
children: /* @__PURE__ */
|
|
10521
|
-
|
|
10373
|
+
children: /* @__PURE__ */ jsx132(
|
|
10374
|
+
Link25,
|
|
10522
10375
|
{
|
|
10523
10376
|
href: button.link,
|
|
10524
10377
|
target: button.isNewTab ? "_blank" : "_self",
|
|
@@ -10529,7 +10382,7 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10529
10382
|
}
|
|
10530
10383
|
)
|
|
10531
10384
|
] }),
|
|
10532
|
-
(clusters == null ? void 0 : clusters.items) !== null && (clusters == null ? void 0 : clusters.items) !== void 0 && /* @__PURE__ */
|
|
10385
|
+
(clusters == null ? void 0 : clusters.items) !== null && (clusters == null ? void 0 : clusters.items) !== void 0 && /* @__PURE__ */ jsx132(
|
|
10533
10386
|
ClusterList,
|
|
10534
10387
|
{
|
|
10535
10388
|
clusters: (_a = clusters == null ? void 0 : clusters.items) == null ? void 0 : _a.map((cluster) => {
|
|
@@ -10554,9 +10407,9 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10554
10407
|
import { H3Design as H3Design6, Body18 as Body1812 } from "@geowiki/design-system";
|
|
10555
10408
|
import { useNewsFromAllClusters as useNewsFromAllClusters2 } from "@geowiki/core";
|
|
10556
10409
|
import { v4 as v418 } from "uuid";
|
|
10557
|
-
import { DesignButton as
|
|
10558
|
-
import
|
|
10559
|
-
import { jsx as
|
|
10410
|
+
import { DesignButton as DesignButton20 } from "@geowiki/design-system";
|
|
10411
|
+
import { Link as Link26 } from "@geowiki/core";
|
|
10412
|
+
import { jsx as jsx133, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
10560
10413
|
var SubtitleH3ClusterNews3Column = ({
|
|
10561
10414
|
title,
|
|
10562
10415
|
subtitle,
|
|
@@ -10577,24 +10430,24 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10577
10430
|
};
|
|
10578
10431
|
});
|
|
10579
10432
|
if (isLoading) {
|
|
10580
|
-
return /* @__PURE__ */
|
|
10433
|
+
return /* @__PURE__ */ jsx133("div", { children: "Loading..." });
|
|
10581
10434
|
}
|
|
10582
|
-
return /* @__PURE__ */
|
|
10435
|
+
return /* @__PURE__ */ jsxs111(
|
|
10583
10436
|
"div",
|
|
10584
10437
|
{
|
|
10585
10438
|
className: "lg:container mx-auto space-y-4 rounded-xl mt-6 lg:mt-20 lg:space-y-14",
|
|
10586
10439
|
"data-component": "SubtitleH3Cluster4Column",
|
|
10587
10440
|
children: [
|
|
10588
|
-
/* @__PURE__ */
|
|
10589
|
-
/* @__PURE__ */
|
|
10590
|
-
/* @__PURE__ */
|
|
10591
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10592
|
-
|
|
10441
|
+
/* @__PURE__ */ jsxs111("div", { className: "lg:flex lg:justify-between items-start", children: [
|
|
10442
|
+
/* @__PURE__ */ jsx133(Body1812, { children: subtitle }),
|
|
10443
|
+
/* @__PURE__ */ jsx133(H3Design6, { className: "pt-2 pb-4 lg:py-0 max-w-2xl", children: title }),
|
|
10444
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx133(
|
|
10445
|
+
DesignButton20,
|
|
10593
10446
|
{
|
|
10594
10447
|
variant: "internalLink",
|
|
10595
10448
|
className: "h-auto p-0 text-base lg:p-0",
|
|
10596
|
-
children: /* @__PURE__ */
|
|
10597
|
-
|
|
10449
|
+
children: /* @__PURE__ */ jsx133(
|
|
10450
|
+
Link26,
|
|
10598
10451
|
{
|
|
10599
10452
|
href: button.link,
|
|
10600
10453
|
target: button.isNewTab ? "_blank" : "_self",
|
|
@@ -10605,7 +10458,7 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10605
10458
|
}
|
|
10606
10459
|
)
|
|
10607
10460
|
] }),
|
|
10608
|
-
/* @__PURE__ */
|
|
10461
|
+
/* @__PURE__ */ jsx133(ClusterNewsList, { clusterNewsItems })
|
|
10609
10462
|
]
|
|
10610
10463
|
}
|
|
10611
10464
|
);
|
|
@@ -10613,10 +10466,10 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10613
10466
|
|
|
10614
10467
|
// src/components/DesignElements/TextBlocks/subtitle-h2-body-video.tsx
|
|
10615
10468
|
import { H2Design as H2Design3 } from "@geowiki/design-system";
|
|
10616
|
-
import { DesignButton as
|
|
10617
|
-
import
|
|
10618
|
-
import dynamic3 from "
|
|
10619
|
-
import { jsx as
|
|
10469
|
+
import { DesignButton as DesignButton21 } from "@geowiki/design-system";
|
|
10470
|
+
import { Link as Link27 } from "@geowiki/core";
|
|
10471
|
+
import { dynamic as dynamic3 } from "@geowiki/core";
|
|
10472
|
+
import { jsx as jsx134, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
10620
10473
|
var ReactPlayer = dynamic3(() => import("react-player"), { ssr: false });
|
|
10621
10474
|
var SubtitleH2BodyVideo = ({
|
|
10622
10475
|
title,
|
|
@@ -10630,29 +10483,29 @@ var SubtitleH2BodyVideo = ({
|
|
|
10630
10483
|
const modifiedText = content2.replace(regex, `$1${textToAdd}`);
|
|
10631
10484
|
return modifiedText;
|
|
10632
10485
|
};
|
|
10633
|
-
return /* @__PURE__ */
|
|
10486
|
+
return /* @__PURE__ */ jsx134(
|
|
10634
10487
|
"div",
|
|
10635
10488
|
{
|
|
10636
10489
|
className: "bg-grey-lightest mt-6 rounded-xl lg:mt-10",
|
|
10637
10490
|
"data-component": "SubtitleH2BodyVideo",
|
|
10638
|
-
children: /* @__PURE__ */
|
|
10639
|
-
/* @__PURE__ */
|
|
10640
|
-
/* @__PURE__ */
|
|
10641
|
-
/* @__PURE__ */
|
|
10491
|
+
children: /* @__PURE__ */ jsxs112("div", { className: "container mx-auto flex flex-col lg:flex-row justify-between lg:items-center px-5 py-6 text-lg rounded-xl lg:px-12 lg:py-20 lg:space-x-10", children: [
|
|
10492
|
+
/* @__PURE__ */ jsxs112("div", { className: "flex flex-col leading-6 lg:w-[40%] ", children: [
|
|
10493
|
+
/* @__PURE__ */ jsx134(H2Design3, { className: "pt-2 lg:pt-0", children: title }),
|
|
10494
|
+
/* @__PURE__ */ jsx134(
|
|
10642
10495
|
HtmlView,
|
|
10643
10496
|
{
|
|
10644
10497
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
10645
10498
|
html: addLinksStyles(content)
|
|
10646
10499
|
}
|
|
10647
10500
|
),
|
|
10648
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10649
|
-
|
|
10501
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx134(
|
|
10502
|
+
Link27,
|
|
10650
10503
|
{
|
|
10651
10504
|
href: button.link,
|
|
10652
10505
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10653
10506
|
rel: "noreferrer",
|
|
10654
|
-
children: /* @__PURE__ */
|
|
10655
|
-
|
|
10507
|
+
children: /* @__PURE__ */ jsx134(
|
|
10508
|
+
DesignButton21,
|
|
10656
10509
|
{
|
|
10657
10510
|
variant: "externalLink",
|
|
10658
10511
|
className: "h-auto p-0 flex self-start mt-3 lg:mt-6 font-medium lg:p-0",
|
|
@@ -10662,7 +10515,7 @@ var SubtitleH2BodyVideo = ({
|
|
|
10662
10515
|
}
|
|
10663
10516
|
)
|
|
10664
10517
|
] }),
|
|
10665
|
-
/* @__PURE__ */
|
|
10518
|
+
/* @__PURE__ */ jsx134("div", { className: "pt-5 lg:pt-0 lg:w-[50%]", children: /* @__PURE__ */ jsx134(
|
|
10666
10519
|
ReactPlayer,
|
|
10667
10520
|
{
|
|
10668
10521
|
url: videoLink,
|
|
@@ -10678,9 +10531,9 @@ var SubtitleH2BodyVideo = ({
|
|
|
10678
10531
|
|
|
10679
10532
|
// src/components/DesignElements/TextBlocks/image-left-h3-body.tsx
|
|
10680
10533
|
import { H3Design as H3Design7 } from "@geowiki/design-system";
|
|
10681
|
-
import { DesignButton as
|
|
10682
|
-
import
|
|
10683
|
-
import { jsx as
|
|
10534
|
+
import { DesignButton as DesignButton22 } from "@geowiki/design-system";
|
|
10535
|
+
import { Link as Link28 } from "@geowiki/core";
|
|
10536
|
+
import { jsx as jsx135, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
10684
10537
|
var ImageLeftH3BodyLink = ({
|
|
10685
10538
|
title,
|
|
10686
10539
|
content,
|
|
@@ -10693,8 +10546,8 @@ var ImageLeftH3BodyLink = ({
|
|
|
10693
10546
|
const modifiedText = content2.replace(regex, `$1${textToAdd}`);
|
|
10694
10547
|
return modifiedText;
|
|
10695
10548
|
};
|
|
10696
|
-
return /* @__PURE__ */
|
|
10697
|
-
/* @__PURE__ */
|
|
10549
|
+
return /* @__PURE__ */ jsx135("div", { className: "bg-grey-lightest mt-6 rounded-xl lg:mt-10 ", children: /* @__PURE__ */ jsxs113("div", { className: "container mx-auto flex flex-col lg:flex-row px-5 py-6 lg:h-[525px] lg:py-12 lg:px-9 ", children: [
|
|
10550
|
+
/* @__PURE__ */ jsx135("div", { className: " hidden lg:block lg:w-1/2 ", children: /* @__PURE__ */ jsx135(
|
|
10698
10551
|
CmsImage,
|
|
10699
10552
|
{
|
|
10700
10553
|
src: path,
|
|
@@ -10704,23 +10557,23 @@ var ImageLeftH3BodyLink = ({
|
|
|
10704
10557
|
className: "rounded-xl object-cover w-[498px] h-[429px]"
|
|
10705
10558
|
}
|
|
10706
10559
|
) }),
|
|
10707
|
-
/* @__PURE__ */
|
|
10708
|
-
/* @__PURE__ */
|
|
10709
|
-
/* @__PURE__ */
|
|
10560
|
+
/* @__PURE__ */ jsxs113("div", { className: "w-full lg:w-1/2 lg: max-w-[546px] h-full flex flex-col justify-center", children: [
|
|
10561
|
+
/* @__PURE__ */ jsx135(H3Design7, { className: "pt-2 lg:pt-0", children: title }),
|
|
10562
|
+
/* @__PURE__ */ jsx135(
|
|
10710
10563
|
HtmlView,
|
|
10711
10564
|
{
|
|
10712
10565
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] ",
|
|
10713
10566
|
html: addLinksStyles(content)
|
|
10714
10567
|
}
|
|
10715
10568
|
),
|
|
10716
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10717
|
-
|
|
10569
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx135(
|
|
10570
|
+
Link28,
|
|
10718
10571
|
{
|
|
10719
10572
|
href: button.link,
|
|
10720
10573
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10721
10574
|
rel: "noreferrer",
|
|
10722
|
-
children: /* @__PURE__ */
|
|
10723
|
-
|
|
10575
|
+
children: /* @__PURE__ */ jsx135(
|
|
10576
|
+
DesignButton22,
|
|
10724
10577
|
{
|
|
10725
10578
|
variant: "externalLink",
|
|
10726
10579
|
className: "h-auto p-0 flex self-start mt-4 lg:mt-10 font-medium lg:p-0 ",
|
|
@@ -10730,7 +10583,7 @@ var ImageLeftH3BodyLink = ({
|
|
|
10730
10583
|
}
|
|
10731
10584
|
)
|
|
10732
10585
|
] }),
|
|
10733
|
-
/* @__PURE__ */
|
|
10586
|
+
/* @__PURE__ */ jsx135("div", { className: "w-full pt-6 lg:hidden ", children: /* @__PURE__ */ jsx135(
|
|
10734
10587
|
CmsImage,
|
|
10735
10588
|
{
|
|
10736
10589
|
src: path,
|
|
@@ -10745,23 +10598,23 @@ var ImageLeftH3BodyLink = ({
|
|
|
10745
10598
|
|
|
10746
10599
|
// src/components/DesignElements/LandingPage/NewsfeedPreview.tsx
|
|
10747
10600
|
import { H3Design as H3Design8 } from "@geowiki/design-system";
|
|
10748
|
-
import { DesignButton as
|
|
10749
|
-
import
|
|
10750
|
-
import { jsx as
|
|
10601
|
+
import { DesignButton as DesignButton23 } from "@geowiki/design-system";
|
|
10602
|
+
import { Link as Link29 } from "@geowiki/core";
|
|
10603
|
+
import { jsx as jsx136, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
10751
10604
|
var NewsfeedPreview = ({ newsArticleData }) => {
|
|
10752
|
-
return /* @__PURE__ */
|
|
10753
|
-
/* @__PURE__ */
|
|
10754
|
-
/* @__PURE__ */
|
|
10755
|
-
/* @__PURE__ */
|
|
10756
|
-
|
|
10605
|
+
return /* @__PURE__ */ jsxs114("div", { className: "lg:container mx-auto space-y-6 mt-8 lg:space-y-10 lg:mt-12", children: [
|
|
10606
|
+
/* @__PURE__ */ jsxs114("div", { className: "flex justify-between items-start", children: [
|
|
10607
|
+
/* @__PURE__ */ jsx136(H3Design8, { children: "Global Newsfeed" }),
|
|
10608
|
+
/* @__PURE__ */ jsx136(
|
|
10609
|
+
DesignButton23,
|
|
10757
10610
|
{
|
|
10758
10611
|
variant: "internalLink",
|
|
10759
10612
|
className: "h-auto pb-0 px-0 lg:pb-0 lg:px-0",
|
|
10760
|
-
children: /* @__PURE__ */
|
|
10613
|
+
children: /* @__PURE__ */ jsx136(Link29, { href: "/news", children: "View all" })
|
|
10761
10614
|
}
|
|
10762
10615
|
)
|
|
10763
10616
|
] }),
|
|
10764
|
-
/* @__PURE__ */
|
|
10617
|
+
/* @__PURE__ */ jsx136(
|
|
10765
10618
|
NewsArticleList,
|
|
10766
10619
|
{
|
|
10767
10620
|
pageSize: 4,
|
|
@@ -10773,13 +10626,13 @@ var NewsfeedPreview = ({ newsArticleData }) => {
|
|
|
10773
10626
|
|
|
10774
10627
|
// src/components/DesignElements/Hero/HeroImageLeft.tsx
|
|
10775
10628
|
import { Body18 as Body1813 } from "@geowiki/design-system";
|
|
10776
|
-
import { jsx as
|
|
10629
|
+
import { jsx as jsx137, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
10777
10630
|
var HeroImageLeft = (props) => {
|
|
10778
|
-
return /* @__PURE__ */
|
|
10779
|
-
/* @__PURE__ */
|
|
10780
|
-
/* @__PURE__ */
|
|
10781
|
-
/* @__PURE__ */
|
|
10782
|
-
/* @__PURE__ */
|
|
10631
|
+
return /* @__PURE__ */ jsxs115("div", { id: "recodo", children: [
|
|
10632
|
+
/* @__PURE__ */ jsx137("a", { href: "#recodo" }),
|
|
10633
|
+
/* @__PURE__ */ jsx137("div", { className: "mt-6 lg:mt-10", children: /* @__PURE__ */ jsxs115("div", { className: "flex gap-5 max-md:flex-col max-md:gap-0", children: [
|
|
10634
|
+
/* @__PURE__ */ jsxs115("div", { className: "flex flex-col self-stretch lg:hidden", children: [
|
|
10635
|
+
/* @__PURE__ */ jsx137(
|
|
10783
10636
|
CmsImage,
|
|
10784
10637
|
{
|
|
10785
10638
|
src: props.logoPath,
|
|
@@ -10789,9 +10642,9 @@ var HeroImageLeft = (props) => {
|
|
|
10789
10642
|
className: ""
|
|
10790
10643
|
}
|
|
10791
10644
|
),
|
|
10792
|
-
/* @__PURE__ */
|
|
10645
|
+
/* @__PURE__ */ jsx137(Body1813, { className: "py-6 max-md:max-w-full", children: props.text })
|
|
10793
10646
|
] }),
|
|
10794
|
-
/* @__PURE__ */
|
|
10647
|
+
/* @__PURE__ */ jsx137("div", { className: "relative w-[50%] min-h-[430px] max-md:ml-0 max-md:w-full lg:min-h-[784px]", children: /* @__PURE__ */ jsx137(
|
|
10795
10648
|
CmsImage,
|
|
10796
10649
|
{
|
|
10797
10650
|
src: props.path,
|
|
@@ -10799,8 +10652,8 @@ var HeroImageLeft = (props) => {
|
|
|
10799
10652
|
className: "inset-0 w-full h-full object-cover rounded-xl "
|
|
10800
10653
|
}
|
|
10801
10654
|
) }),
|
|
10802
|
-
/* @__PURE__ */
|
|
10803
|
-
/* @__PURE__ */
|
|
10655
|
+
/* @__PURE__ */ jsx137("div", { className: "hidden lg:flex lg:flex-col lg:items-center lg:ml-5 lg:w-[50%] lg:min-h-[784px] max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ jsxs115("div", { className: "flex flex-col self-stretch px-5 my-auto min-h-[430px] text-lg leading-6 text-gray-900 max-md:mt-10 max-md:max-w-full", children: [
|
|
10656
|
+
/* @__PURE__ */ jsx137(
|
|
10804
10657
|
CmsImage,
|
|
10805
10658
|
{
|
|
10806
10659
|
src: props.logoPath,
|
|
@@ -10810,24 +10663,24 @@ var HeroImageLeft = (props) => {
|
|
|
10810
10663
|
className: ""
|
|
10811
10664
|
}
|
|
10812
10665
|
),
|
|
10813
|
-
/* @__PURE__ */
|
|
10666
|
+
/* @__PURE__ */ jsx137(Body1813, { className: "mt-7 max-md:max-w-full", children: props.text })
|
|
10814
10667
|
] }) })
|
|
10815
10668
|
] }) })
|
|
10816
10669
|
] });
|
|
10817
10670
|
};
|
|
10818
10671
|
|
|
10819
10672
|
// src/components/DesignElements/Hero/HeroImageRight.tsx
|
|
10820
|
-
import { jsx as
|
|
10673
|
+
import { jsx as jsx138, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
10821
10674
|
var HeroImageRight = (props) => {
|
|
10822
|
-
return /* @__PURE__ */
|
|
10823
|
-
/* @__PURE__ */
|
|
10675
|
+
return /* @__PURE__ */ jsx138("div", { className: " lg:mt-10", children: /* @__PURE__ */ jsx138("div", { className: "justify-end", children: /* @__PURE__ */ jsxs116("div", { className: "flex gap-5 max-md:flex-col max-md:gap-0", children: [
|
|
10676
|
+
/* @__PURE__ */ jsx138("div", { className: "flex flex-col w-[50%] max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ jsx138("div", { className: "flex flex-col self-stretch lg:px-5 my-auto max-md:max-w-full", children: props.title && props.description && /* @__PURE__ */ jsx138(
|
|
10824
10677
|
H1BodyButton,
|
|
10825
10678
|
{
|
|
10826
10679
|
title: props.title,
|
|
10827
10680
|
textBody: props.description
|
|
10828
10681
|
}
|
|
10829
10682
|
) }) }),
|
|
10830
|
-
/* @__PURE__ */
|
|
10683
|
+
/* @__PURE__ */ jsx138("div", { className: "flex flex-col ml-5 w-[50%] max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ jsx138("div", { className: "flex overflow-hidden relative min-h-[430px] flex-col grow justify-center lg:min-h-[784px] max-md:mt-6 max-md:max-w-full", children: /* @__PURE__ */ jsx138(
|
|
10831
10684
|
CmsImage,
|
|
10832
10685
|
{
|
|
10833
10686
|
src: props.path,
|
|
@@ -10839,9 +10692,9 @@ var HeroImageRight = (props) => {
|
|
|
10839
10692
|
|
|
10840
10693
|
// src/components/DesignElements/Hero/ImageLeftH3Body.tsx
|
|
10841
10694
|
import { H3Design as H3Design9 } from "@geowiki/design-system";
|
|
10842
|
-
import { DesignButton as
|
|
10843
|
-
import
|
|
10844
|
-
import { jsx as
|
|
10695
|
+
import { DesignButton as DesignButton24 } from "@geowiki/design-system";
|
|
10696
|
+
import { Link as Link30 } from "@geowiki/core";
|
|
10697
|
+
import { jsx as jsx139, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
10845
10698
|
var ImageLefttH3Body = (props) => {
|
|
10846
10699
|
var _a, _b, _c, _d;
|
|
10847
10700
|
const addLinksStyles = (content) => {
|
|
@@ -10850,24 +10703,24 @@ var ImageLefttH3Body = (props) => {
|
|
|
10850
10703
|
const modifiedText = content.replace(regex, `$1${textToAdd}`);
|
|
10851
10704
|
return modifiedText;
|
|
10852
10705
|
};
|
|
10853
|
-
return /* @__PURE__ */
|
|
10854
|
-
/* @__PURE__ */
|
|
10855
|
-
/* @__PURE__ */
|
|
10856
|
-
props.text && /* @__PURE__ */
|
|
10706
|
+
return /* @__PURE__ */ jsx139("div", { className: "mt-6 lg:mt-10", children: /* @__PURE__ */ jsxs117("div", { className: "flex gap-5 max-md:flex-col max-md:gap-0", children: [
|
|
10707
|
+
/* @__PURE__ */ jsxs117("div", { className: "flex flex-col self-stretch lg:hidden", children: [
|
|
10708
|
+
/* @__PURE__ */ jsx139(H3Design9, { children: props.title }),
|
|
10709
|
+
props.text && /* @__PURE__ */ jsx139(
|
|
10857
10710
|
HtmlView,
|
|
10858
10711
|
{
|
|
10859
10712
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
10860
10713
|
html: addLinksStyles(props.text)
|
|
10861
10714
|
}
|
|
10862
10715
|
),
|
|
10863
|
-
((_a = props.button) == null ? void 0 : _a.text) && ((_b = props.button) == null ? void 0 : _b.link) && /* @__PURE__ */
|
|
10864
|
-
|
|
10716
|
+
((_a = props.button) == null ? void 0 : _a.text) && ((_b = props.button) == null ? void 0 : _b.link) && /* @__PURE__ */ jsx139(
|
|
10717
|
+
Link30,
|
|
10865
10718
|
{
|
|
10866
10719
|
href: props.button.link,
|
|
10867
10720
|
target: props.button.isNewTab ? "_blank" : "_self",
|
|
10868
10721
|
rel: "noreferrer",
|
|
10869
|
-
children: /* @__PURE__ */
|
|
10870
|
-
|
|
10722
|
+
children: /* @__PURE__ */ jsx139(
|
|
10723
|
+
DesignButton24,
|
|
10871
10724
|
{
|
|
10872
10725
|
variant: props.button.isNewTab ? "externalLink" : "internalLink",
|
|
10873
10726
|
className: "h-auto p-0 flex self-start my-4 lg:mt-6 font-medium lg:p-0",
|
|
@@ -10877,7 +10730,7 @@ var ImageLefttH3Body = (props) => {
|
|
|
10877
10730
|
}
|
|
10878
10731
|
)
|
|
10879
10732
|
] }),
|
|
10880
|
-
/* @__PURE__ */
|
|
10733
|
+
/* @__PURE__ */ jsx139("div", { className: "relative w-[50%] min-h-[430px] max-md:ml-0 max-md:w-full lg:min-h-[784px]", children: /* @__PURE__ */ jsx139(
|
|
10881
10734
|
CmsImage,
|
|
10882
10735
|
{
|
|
10883
10736
|
src: props.imagePath,
|
|
@@ -10885,23 +10738,23 @@ var ImageLefttH3Body = (props) => {
|
|
|
10885
10738
|
className: "inset-0 w-full h-full object-cover rounded-xl "
|
|
10886
10739
|
}
|
|
10887
10740
|
) }),
|
|
10888
|
-
/* @__PURE__ */
|
|
10889
|
-
/* @__PURE__ */
|
|
10890
|
-
props.text && /* @__PURE__ */
|
|
10741
|
+
/* @__PURE__ */ jsx139("div", { className: "hidden lg:flex lg:flex-col lg:items-center lg:justify-center lg:ml-10 lg:w-[50%] max-md:ml-0 max-md:w-full", children: /* @__PURE__ */ jsxs117("div", { className: "flex flex-col self-stretch px-28 my-auto min-h-[430px] text-lg leading-6 text-gray-900 max-md:mt-10 max-md:max-w-full", children: [
|
|
10742
|
+
/* @__PURE__ */ jsx139(H3Design9, { children: props.title }),
|
|
10743
|
+
props.text && /* @__PURE__ */ jsx139(
|
|
10891
10744
|
HtmlView,
|
|
10892
10745
|
{
|
|
10893
10746
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
10894
10747
|
html: addLinksStyles(props.text)
|
|
10895
10748
|
}
|
|
10896
10749
|
),
|
|
10897
|
-
((_c = props.button) == null ? void 0 : _c.text) && ((_d = props.button) == null ? void 0 : _d.link) && /* @__PURE__ */
|
|
10898
|
-
|
|
10750
|
+
((_c = props.button) == null ? void 0 : _c.text) && ((_d = props.button) == null ? void 0 : _d.link) && /* @__PURE__ */ jsx139(
|
|
10751
|
+
Link30,
|
|
10899
10752
|
{
|
|
10900
10753
|
href: props.button.link,
|
|
10901
10754
|
target: props.button.isNewTab ? "_blank" : "_self",
|
|
10902
10755
|
rel: "noreferrer",
|
|
10903
|
-
children: /* @__PURE__ */
|
|
10904
|
-
|
|
10756
|
+
children: /* @__PURE__ */ jsx139(
|
|
10757
|
+
DesignButton24,
|
|
10905
10758
|
{
|
|
10906
10759
|
variant: props.button.isNewTab ? "externalLink" : "internalLink",
|
|
10907
10760
|
className: "h-auto p-0 flex self-start mt-4 lg:mt-6 font-medium lg:p-0",
|
|
@@ -10920,10 +10773,10 @@ import { useState as useState46 } from "react";
|
|
|
10920
10773
|
// src/components/DesignElements/KeyValuePair.tsx
|
|
10921
10774
|
import { DesignInput as DesignInput3 } from "@geowiki/design-system";
|
|
10922
10775
|
import { useForm as useForm17 } from "react-hook-form";
|
|
10923
|
-
import { jsx as
|
|
10776
|
+
import { jsx as jsx140, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
10924
10777
|
var KeyValuePair = (props) => {
|
|
10925
10778
|
const { register } = useForm17();
|
|
10926
|
-
return /* @__PURE__ */
|
|
10779
|
+
return /* @__PURE__ */ jsx140(
|
|
10927
10780
|
"div",
|
|
10928
10781
|
{
|
|
10929
10782
|
style: {
|
|
@@ -10936,7 +10789,7 @@ var KeyValuePair = (props) => {
|
|
|
10936
10789
|
gap: 16,
|
|
10937
10790
|
display: "inline-flex"
|
|
10938
10791
|
},
|
|
10939
|
-
children: /* @__PURE__ */
|
|
10792
|
+
children: /* @__PURE__ */ jsxs118(
|
|
10940
10793
|
"div",
|
|
10941
10794
|
{
|
|
10942
10795
|
style: {
|
|
@@ -10946,7 +10799,7 @@ var KeyValuePair = (props) => {
|
|
|
10946
10799
|
display: "inline-flex"
|
|
10947
10800
|
},
|
|
10948
10801
|
children: [
|
|
10949
|
-
/* @__PURE__ */
|
|
10802
|
+
/* @__PURE__ */ jsx140(
|
|
10950
10803
|
"div",
|
|
10951
10804
|
{
|
|
10952
10805
|
style: {
|
|
@@ -10958,7 +10811,7 @@ var KeyValuePair = (props) => {
|
|
|
10958
10811
|
gap: 8,
|
|
10959
10812
|
display: "inline-flex"
|
|
10960
10813
|
},
|
|
10961
|
-
children: /* @__PURE__ */
|
|
10814
|
+
children: /* @__PURE__ */ jsx140(
|
|
10962
10815
|
"div",
|
|
10963
10816
|
{
|
|
10964
10817
|
style: {
|
|
@@ -10971,7 +10824,7 @@ var KeyValuePair = (props) => {
|
|
|
10971
10824
|
alignItems: "center",
|
|
10972
10825
|
display: "inline-flex"
|
|
10973
10826
|
},
|
|
10974
|
-
children: /* @__PURE__ */
|
|
10827
|
+
children: /* @__PURE__ */ jsx140(
|
|
10975
10828
|
DesignInput3,
|
|
10976
10829
|
__spreadProps(__spreadValues({
|
|
10977
10830
|
placeholder: props.keyName,
|
|
@@ -10990,7 +10843,7 @@ var KeyValuePair = (props) => {
|
|
|
10990
10843
|
)
|
|
10991
10844
|
}
|
|
10992
10845
|
),
|
|
10993
|
-
/* @__PURE__ */
|
|
10846
|
+
/* @__PURE__ */ jsx140(
|
|
10994
10847
|
"div",
|
|
10995
10848
|
{
|
|
10996
10849
|
style: {
|
|
@@ -11002,7 +10855,7 @@ var KeyValuePair = (props) => {
|
|
|
11002
10855
|
gap: 8,
|
|
11003
10856
|
display: "inline-flex"
|
|
11004
10857
|
},
|
|
11005
|
-
children: /* @__PURE__ */
|
|
10858
|
+
children: /* @__PURE__ */ jsx140(
|
|
11006
10859
|
"div",
|
|
11007
10860
|
{
|
|
11008
10861
|
style: {
|
|
@@ -11014,7 +10867,7 @@ var KeyValuePair = (props) => {
|
|
|
11014
10867
|
gap: 8,
|
|
11015
10868
|
display: "flex"
|
|
11016
10869
|
},
|
|
11017
|
-
children: /* @__PURE__ */
|
|
10870
|
+
children: /* @__PURE__ */ jsx140(
|
|
11018
10871
|
"div",
|
|
11019
10872
|
{
|
|
11020
10873
|
style: {
|
|
@@ -11027,7 +10880,7 @@ var KeyValuePair = (props) => {
|
|
|
11027
10880
|
alignItems: "center",
|
|
11028
10881
|
display: "inline-flex"
|
|
11029
10882
|
},
|
|
11030
|
-
children: /* @__PURE__ */
|
|
10883
|
+
children: /* @__PURE__ */ jsx140(
|
|
11031
10884
|
DesignInput3,
|
|
11032
10885
|
__spreadProps(__spreadValues({
|
|
11033
10886
|
placeholder: props.valueName,
|
|
@@ -11056,7 +10909,7 @@ var KeyValuePair = (props) => {
|
|
|
11056
10909
|
};
|
|
11057
10910
|
|
|
11058
10911
|
// src/components/DesignElements/KeyValuePairList.tsx
|
|
11059
|
-
import { jsx as
|
|
10912
|
+
import { jsx as jsx141, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
11060
10913
|
var KeyValuePairList = (props) => {
|
|
11061
10914
|
const [counter, setCounter] = useState46(0);
|
|
11062
10915
|
const [keyValueData, setKeyValueData] = useState46([]);
|
|
@@ -11065,7 +10918,7 @@ var KeyValuePairList = (props) => {
|
|
|
11065
10918
|
};
|
|
11066
10919
|
props.getValues(keyValueData);
|
|
11067
10920
|
const [keyValueList, setKeyValueList] = useState46([
|
|
11068
|
-
/* @__PURE__ */
|
|
10921
|
+
/* @__PURE__ */ jsx141(
|
|
11069
10922
|
KeyValuePair,
|
|
11070
10923
|
{
|
|
11071
10924
|
index: counter,
|
|
@@ -11077,7 +10930,7 @@ var KeyValuePairList = (props) => {
|
|
|
11077
10930
|
counter
|
|
11078
10931
|
)
|
|
11079
10932
|
]);
|
|
11080
|
-
return /* @__PURE__ */
|
|
10933
|
+
return /* @__PURE__ */ jsx141(
|
|
11081
10934
|
"div",
|
|
11082
10935
|
{
|
|
11083
10936
|
style: {
|
|
@@ -11086,7 +10939,7 @@ var KeyValuePairList = (props) => {
|
|
|
11086
10939
|
position: "relative",
|
|
11087
10940
|
background: "#F3F3F4"
|
|
11088
10941
|
},
|
|
11089
|
-
children: /* @__PURE__ */
|
|
10942
|
+
children: /* @__PURE__ */ jsxs119(
|
|
11090
10943
|
"div",
|
|
11091
10944
|
{
|
|
11092
10945
|
style: {
|
|
@@ -11100,7 +10953,7 @@ var KeyValuePairList = (props) => {
|
|
|
11100
10953
|
overflow: "hidden"
|
|
11101
10954
|
},
|
|
11102
10955
|
children: [
|
|
11103
|
-
/* @__PURE__ */
|
|
10956
|
+
/* @__PURE__ */ jsxs119(
|
|
11104
10957
|
"div",
|
|
11105
10958
|
{
|
|
11106
10959
|
style: {
|
|
@@ -11114,7 +10967,7 @@ var KeyValuePairList = (props) => {
|
|
|
11114
10967
|
display: "inline-flex"
|
|
11115
10968
|
},
|
|
11116
10969
|
children: [
|
|
11117
|
-
/* @__PURE__ */
|
|
10970
|
+
/* @__PURE__ */ jsxs119(
|
|
11118
10971
|
"div",
|
|
11119
10972
|
{
|
|
11120
10973
|
style: {
|
|
@@ -11124,7 +10977,7 @@ var KeyValuePairList = (props) => {
|
|
|
11124
10977
|
display: "inline-flex"
|
|
11125
10978
|
},
|
|
11126
10979
|
children: [
|
|
11127
|
-
/* @__PURE__ */
|
|
10980
|
+
/* @__PURE__ */ jsx141(
|
|
11128
10981
|
"div",
|
|
11129
10982
|
{
|
|
11130
10983
|
style: {
|
|
@@ -11138,8 +10991,8 @@ var KeyValuePairList = (props) => {
|
|
|
11138
10991
|
children: props.title
|
|
11139
10992
|
}
|
|
11140
10993
|
),
|
|
11141
|
-
/* @__PURE__ */
|
|
11142
|
-
/* @__PURE__ */
|
|
10994
|
+
/* @__PURE__ */ jsxs119("div", { style: { width: 16, height: 16, position: "relative" }, children: [
|
|
10995
|
+
/* @__PURE__ */ jsx141(
|
|
11143
10996
|
"div",
|
|
11144
10997
|
{
|
|
11145
10998
|
style: {
|
|
@@ -11153,7 +11006,7 @@ var KeyValuePairList = (props) => {
|
|
|
11153
11006
|
}
|
|
11154
11007
|
}
|
|
11155
11008
|
),
|
|
11156
|
-
/* @__PURE__ */
|
|
11009
|
+
/* @__PURE__ */ jsx141(
|
|
11157
11010
|
"div",
|
|
11158
11011
|
{
|
|
11159
11012
|
style: {
|
|
@@ -11177,7 +11030,7 @@ var KeyValuePairList = (props) => {
|
|
|
11177
11030
|
]
|
|
11178
11031
|
}
|
|
11179
11032
|
),
|
|
11180
|
-
/* @__PURE__ */
|
|
11033
|
+
/* @__PURE__ */ jsx141(
|
|
11181
11034
|
"div",
|
|
11182
11035
|
{
|
|
11183
11036
|
style: {
|
|
@@ -11194,7 +11047,7 @@ var KeyValuePairList = (props) => {
|
|
|
11194
11047
|
]
|
|
11195
11048
|
}
|
|
11196
11049
|
),
|
|
11197
|
-
props.showAddAnother && /* @__PURE__ */
|
|
11050
|
+
props.showAddAnother && /* @__PURE__ */ jsx141(
|
|
11198
11051
|
"div",
|
|
11199
11052
|
{
|
|
11200
11053
|
style: {
|
|
@@ -11209,7 +11062,7 @@ var KeyValuePairList = (props) => {
|
|
|
11209
11062
|
gap: 10,
|
|
11210
11063
|
display: "inline-flex"
|
|
11211
11064
|
},
|
|
11212
|
-
children: /* @__PURE__ */
|
|
11065
|
+
children: /* @__PURE__ */ jsx141(
|
|
11213
11066
|
"div",
|
|
11214
11067
|
{
|
|
11215
11068
|
style: {
|
|
@@ -11224,7 +11077,7 @@ var KeyValuePairList = (props) => {
|
|
|
11224
11077
|
setKeyValueData([]);
|
|
11225
11078
|
setKeyValueList([
|
|
11226
11079
|
...keyValueList,
|
|
11227
|
-
/* @__PURE__ */
|
|
11080
|
+
/* @__PURE__ */ jsx141(
|
|
11228
11081
|
KeyValuePair,
|
|
11229
11082
|
{
|
|
11230
11083
|
index: counter + 1,
|
|
@@ -11242,7 +11095,7 @@ var KeyValuePairList = (props) => {
|
|
|
11242
11095
|
)
|
|
11243
11096
|
}
|
|
11244
11097
|
),
|
|
11245
|
-
/* @__PURE__ */
|
|
11098
|
+
/* @__PURE__ */ jsx141("div", { children: keyValueList })
|
|
11246
11099
|
]
|
|
11247
11100
|
}
|
|
11248
11101
|
)
|
|
@@ -11253,7 +11106,7 @@ var KeyValuePairList = (props) => {
|
|
|
11253
11106
|
// src/components/Chart/PieChart.tsx
|
|
11254
11107
|
import { useEffect as useEffect23 } from "react";
|
|
11255
11108
|
import * as d3 from "d3";
|
|
11256
|
-
import { jsx as
|
|
11109
|
+
import { jsx as jsx142, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
11257
11110
|
var PieChart = ({ data, outerRadius, innerRadius }) => {
|
|
11258
11111
|
const margin = {
|
|
11259
11112
|
top: 50,
|
|
@@ -11299,9 +11152,9 @@ var PieChart = ({ data, outerRadius, innerRadius }) => {
|
|
|
11299
11152
|
});
|
|
11300
11153
|
legend.enter().append("text").attr("x", xOffset + legendItemSize + 5).attr("y", (_, i) => yOffset + (legendItemSize + legendSpacing) * i + 12).text((d) => d == null ? void 0 : d.label);
|
|
11301
11154
|
}
|
|
11302
|
-
return /* @__PURE__ */
|
|
11303
|
-
/* @__PURE__ */
|
|
11304
|
-
/* @__PURE__ */
|
|
11155
|
+
return /* @__PURE__ */ jsxs120("div", { className: "flex-col", children: [
|
|
11156
|
+
/* @__PURE__ */ jsx142("div", { id: "pie-container", className: "relative" }),
|
|
11157
|
+
/* @__PURE__ */ jsx142("div", { id: "legend" })
|
|
11305
11158
|
] });
|
|
11306
11159
|
};
|
|
11307
11160
|
|
|
@@ -11310,7 +11163,7 @@ import { useState as useState47 } from "react";
|
|
|
11310
11163
|
import { useForm as useForm18 } from "react-hook-form";
|
|
11311
11164
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
11312
11165
|
import * as z3 from "zod";
|
|
11313
|
-
import { useRouter as useRouter10 } from "
|
|
11166
|
+
import { useRouter as useRouter10 } from "@geowiki/core";
|
|
11314
11167
|
import { AccountService } from "@geowiki/api-proxy";
|
|
11315
11168
|
import {
|
|
11316
11169
|
Form,
|
|
@@ -11326,7 +11179,7 @@ import {
|
|
|
11326
11179
|
Checkbox as Checkbox10
|
|
11327
11180
|
} from "@geowiki/design-system";
|
|
11328
11181
|
import { useDefaultSettings } from "@geowiki/core";
|
|
11329
|
-
import { jsx as
|
|
11182
|
+
import { jsx as jsx143, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
11330
11183
|
var formSchema = z3.object({
|
|
11331
11184
|
userName: z3.string().min(2, "Username must be at least 2 characters"),
|
|
11332
11185
|
emailAddress: z3.string().email("Invalid email address"),
|
|
@@ -11451,22 +11304,22 @@ function RegisterForm({
|
|
|
11451
11304
|
}
|
|
11452
11305
|
});
|
|
11453
11306
|
}
|
|
11454
|
-
return /* @__PURE__ */
|
|
11455
|
-
/* @__PURE__ */
|
|
11456
|
-
/* @__PURE__ */
|
|
11457
|
-
/* @__PURE__ */
|
|
11307
|
+
return /* @__PURE__ */ jsx143("div", { className, children: /* @__PURE__ */ jsxs121("div", { className: "space-y-6", children: [
|
|
11308
|
+
/* @__PURE__ */ jsxs121("div", { className: "space-y-2 text-center", children: [
|
|
11309
|
+
/* @__PURE__ */ jsx143("h1", { className: "text-3xl font-bold", children: "Create an Account" }),
|
|
11310
|
+
/* @__PURE__ */ jsx143("p", { className: "text-gray-500", children: "Enter your details to register" })
|
|
11458
11311
|
] }),
|
|
11459
|
-
error && /* @__PURE__ */
|
|
11460
|
-
success && /* @__PURE__ */
|
|
11461
|
-
/* @__PURE__ */
|
|
11462
|
-
/* @__PURE__ */
|
|
11312
|
+
error && /* @__PURE__ */ jsx143(Alert, { variant: "destructive", children: /* @__PURE__ */ jsx143(AlertDescription, { children: error }) }),
|
|
11313
|
+
success && /* @__PURE__ */ jsx143(Alert, { className: "bg-green-50 text-green-800 border-green-200", children: /* @__PURE__ */ jsx143(AlertDescription, { children: "Registration successful! Redirecting to login..." }) }),
|
|
11314
|
+
/* @__PURE__ */ jsx143(Form, __spreadProps(__spreadValues({}, form), { children: /* @__PURE__ */ jsxs121("form", { onSubmit: form.handleSubmit(onSubmit), className: "space-y-4", children: [
|
|
11315
|
+
/* @__PURE__ */ jsx143(
|
|
11463
11316
|
FormField3,
|
|
11464
11317
|
{
|
|
11465
11318
|
control: form.control,
|
|
11466
11319
|
name: "userName",
|
|
11467
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11468
|
-
/* @__PURE__ */
|
|
11469
|
-
/* @__PURE__ */
|
|
11320
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11321
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Username" }),
|
|
11322
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11470
11323
|
Input2,
|
|
11471
11324
|
__spreadProps(__spreadValues({
|
|
11472
11325
|
placeholder: "Enter your username"
|
|
@@ -11478,18 +11331,18 @@ function RegisterForm({
|
|
|
11478
11331
|
}
|
|
11479
11332
|
})
|
|
11480
11333
|
) }),
|
|
11481
|
-
/* @__PURE__ */
|
|
11334
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11482
11335
|
] })
|
|
11483
11336
|
}
|
|
11484
11337
|
),
|
|
11485
|
-
/* @__PURE__ */
|
|
11338
|
+
/* @__PURE__ */ jsx143(
|
|
11486
11339
|
FormField3,
|
|
11487
11340
|
{
|
|
11488
11341
|
control: form.control,
|
|
11489
11342
|
name: "emailAddress",
|
|
11490
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11491
|
-
/* @__PURE__ */
|
|
11492
|
-
/* @__PURE__ */
|
|
11343
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11344
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Email" }),
|
|
11345
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11493
11346
|
Input2,
|
|
11494
11347
|
__spreadProps(__spreadValues({
|
|
11495
11348
|
type: "email",
|
|
@@ -11502,18 +11355,18 @@ function RegisterForm({
|
|
|
11502
11355
|
}
|
|
11503
11356
|
})
|
|
11504
11357
|
) }),
|
|
11505
|
-
/* @__PURE__ */
|
|
11358
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11506
11359
|
] })
|
|
11507
11360
|
}
|
|
11508
11361
|
),
|
|
11509
|
-
/* @__PURE__ */
|
|
11362
|
+
/* @__PURE__ */ jsx143(
|
|
11510
11363
|
FormField3,
|
|
11511
11364
|
{
|
|
11512
11365
|
control: form.control,
|
|
11513
11366
|
name: "password",
|
|
11514
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11515
|
-
/* @__PURE__ */
|
|
11516
|
-
/* @__PURE__ */
|
|
11367
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11368
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Password" }),
|
|
11369
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11517
11370
|
Input2,
|
|
11518
11371
|
__spreadProps(__spreadValues({
|
|
11519
11372
|
type: "password",
|
|
@@ -11526,18 +11379,18 @@ function RegisterForm({
|
|
|
11526
11379
|
}
|
|
11527
11380
|
})
|
|
11528
11381
|
) }),
|
|
11529
|
-
/* @__PURE__ */
|
|
11382
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11530
11383
|
] })
|
|
11531
11384
|
}
|
|
11532
11385
|
),
|
|
11533
|
-
/* @__PURE__ */
|
|
11386
|
+
/* @__PURE__ */ jsx143(
|
|
11534
11387
|
FormField3,
|
|
11535
11388
|
{
|
|
11536
11389
|
control: form.control,
|
|
11537
11390
|
name: "confirmPassword",
|
|
11538
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11539
|
-
/* @__PURE__ */
|
|
11540
|
-
/* @__PURE__ */
|
|
11391
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11392
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Confirm Password" }),
|
|
11393
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11541
11394
|
Input2,
|
|
11542
11395
|
__spreadProps(__spreadValues({
|
|
11543
11396
|
type: "password",
|
|
@@ -11550,17 +11403,17 @@ function RegisterForm({
|
|
|
11550
11403
|
}
|
|
11551
11404
|
})
|
|
11552
11405
|
) }),
|
|
11553
|
-
/* @__PURE__ */
|
|
11406
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11554
11407
|
] })
|
|
11555
11408
|
}
|
|
11556
11409
|
),
|
|
11557
|
-
/* @__PURE__ */
|
|
11410
|
+
/* @__PURE__ */ jsx143(
|
|
11558
11411
|
FormField3,
|
|
11559
11412
|
{
|
|
11560
11413
|
control: form.control,
|
|
11561
11414
|
name: "acceptTerms",
|
|
11562
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11563
|
-
/* @__PURE__ */
|
|
11415
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { className: "flex flex-row items-start space-x-3 space-y-0", children: [
|
|
11416
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11564
11417
|
Checkbox10,
|
|
11565
11418
|
{
|
|
11566
11419
|
checked: field.value,
|
|
@@ -11568,11 +11421,11 @@ function RegisterForm({
|
|
|
11568
11421
|
disabled: isLoading
|
|
11569
11422
|
}
|
|
11570
11423
|
) }),
|
|
11571
|
-
/* @__PURE__ */
|
|
11572
|
-
/* @__PURE__ */
|
|
11424
|
+
/* @__PURE__ */ jsxs121("div", { className: "space-y-1 leading-none", children: [
|
|
11425
|
+
/* @__PURE__ */ jsxs121(FormLabel, { className: "text-sm font-normal", children: [
|
|
11573
11426
|
"I accept the",
|
|
11574
11427
|
" ",
|
|
11575
|
-
termsUrl && /* @__PURE__ */
|
|
11428
|
+
termsUrl && /* @__PURE__ */ jsx143(
|
|
11576
11429
|
"a",
|
|
11577
11430
|
{
|
|
11578
11431
|
href: termsUrl,
|
|
@@ -11583,7 +11436,7 @@ function RegisterForm({
|
|
|
11583
11436
|
}
|
|
11584
11437
|
),
|
|
11585
11438
|
termsUrl && privacyUrl && " and ",
|
|
11586
|
-
privacyUrl && /* @__PURE__ */
|
|
11439
|
+
privacyUrl && /* @__PURE__ */ jsx143(
|
|
11587
11440
|
"a",
|
|
11588
11441
|
{
|
|
11589
11442
|
href: privacyUrl,
|
|
@@ -11595,12 +11448,12 @@ function RegisterForm({
|
|
|
11595
11448
|
),
|
|
11596
11449
|
!termsUrl && !privacyUrl && "Terms of Service and Privacy Policy"
|
|
11597
11450
|
] }),
|
|
11598
|
-
/* @__PURE__ */
|
|
11451
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11599
11452
|
] })
|
|
11600
11453
|
] })
|
|
11601
11454
|
}
|
|
11602
11455
|
),
|
|
11603
|
-
/* @__PURE__ */
|
|
11456
|
+
/* @__PURE__ */ jsx143(Button26, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? "Registering..." : "Register" })
|
|
11604
11457
|
] }) }))
|
|
11605
11458
|
] }) });
|
|
11606
11459
|
}
|
|
@@ -11689,7 +11542,6 @@ export {
|
|
|
11689
11542
|
NewsItemList,
|
|
11690
11543
|
NewsfeedPreview,
|
|
11691
11544
|
NextImage,
|
|
11692
|
-
Notification,
|
|
11693
11545
|
PageNotFound,
|
|
11694
11546
|
Pagination,
|
|
11695
11547
|
PanelMain,
|
|
@@ -11711,7 +11563,6 @@ export {
|
|
|
11711
11563
|
Sidebar,
|
|
11712
11564
|
SidebarIcon,
|
|
11713
11565
|
SignUpBanner,
|
|
11714
|
-
SimpleLink,
|
|
11715
11566
|
SixClusterNews,
|
|
11716
11567
|
SubtitleH2BodyVideo,
|
|
11717
11568
|
SubtitleH3Body,
|