@geowiki/ui 0.16.9-dev.2 → 0.16.9-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-2KORXHVU.mjs → chunk-IIIL7C6U.mjs} +1 -2
- package/dist/{cluster-map-4OQZMXJK.mjs → cluster-map-YODMYBPK.mjs} +7 -9
- package/dist/index.d.mts +41 -60
- package/dist/index.d.ts +41 -60
- package/dist/index.js +1148 -1301
- package/dist/index.mjs +791 -936
- package/dist/styles.css +1 -1
- package/package.json +77 -80
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,18 +2917,15 @@ 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 (
|
|
2938
|
-
setContractEndDate(null);
|
|
2939
|
-
if ((contractStartDate == "" || !contractStartDate) && contractEndDate || contractEndDate && contractStartDate && new Date(contractEndDate) < new Date(contractEndDate)) {
|
|
2926
|
+
if (contractStartDate == "") setContractStartDate(null);
|
|
2927
|
+
if (contractEndDate == "") setContractEndDate(null);
|
|
2928
|
+
if ((contractStartDate == "" || !contractStartDate) && contractEndDate || contractEndDate && contractStartDate && new Date(contractEndDate) < new Date(contractStartDate)) {
|
|
2940
2929
|
alert("Please provide correct date");
|
|
2941
2930
|
return;
|
|
2942
2931
|
}
|
|
@@ -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 = ({
|
|
@@ -5614,9 +5595,7 @@ var CmsImage = ({
|
|
|
5614
5595
|
className = "relative w-full h-full",
|
|
5615
5596
|
showPlaceholder = true
|
|
5616
5597
|
}) => {
|
|
5617
|
-
|
|
5618
|
-
if (isLoading)
|
|
5619
|
-
return null;
|
|
5598
|
+
const cmsImageUrl = useCmsImage(src);
|
|
5620
5599
|
if (width && height) {
|
|
5621
5600
|
if (!showPlaceholder)
|
|
5622
5601
|
return /* @__PURE__ */ jsx58(
|
|
@@ -6261,7 +6240,7 @@ var CoverImage = (props) => {
|
|
|
6261
6240
|
};
|
|
6262
6241
|
|
|
6263
6242
|
// src/components/Input/RichTextContent.tsx
|
|
6264
|
-
import dynamic from "
|
|
6243
|
+
import { dynamic } from "@geowiki/core";
|
|
6265
6244
|
import { useEffect as useEffect17, useState as useState31 } from "react";
|
|
6266
6245
|
import "react-quill/dist/quill.snow.css";
|
|
6267
6246
|
import { jsx as jsx68, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
@@ -6323,8 +6302,8 @@ var RichTextContent = (props) => {
|
|
|
6323
6302
|
const [hasContent, setHasContent] = useState31(
|
|
6324
6303
|
props.defaultValue ? true : false
|
|
6325
6304
|
);
|
|
6326
|
-
const loadQuill = () => __async(
|
|
6327
|
-
return new Promise((resolve) => __async(
|
|
6305
|
+
const loadQuill = () => __async(null, null, function* () {
|
|
6306
|
+
return new Promise((resolve) => __async(null, null, function* () {
|
|
6328
6307
|
const Quill = yield __require("react-quill").Quill;
|
|
6329
6308
|
const BlotFormatter = (yield __require("quill-blot-formatter")).default;
|
|
6330
6309
|
resolve({ Quill, BlotFormatter });
|
|
@@ -6389,7 +6368,7 @@ var RichTextContent = (props) => {
|
|
|
6389
6368
|
|
|
6390
6369
|
// src/components/Input/MultiSelectFreeText.tsx
|
|
6391
6370
|
import CreatableSelect from "react-select/creatable";
|
|
6392
|
-
import { useTheme as useTheme3 } from "
|
|
6371
|
+
import { useTheme as useTheme3 } from "@geowiki/core";
|
|
6393
6372
|
import { Controller } from "react-hook-form";
|
|
6394
6373
|
import { jsx as jsx69, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6395
6374
|
var MultiSelectFreeText = (props) => {
|
|
@@ -6449,7 +6428,7 @@ var MultiSelectFreeText = (props) => {
|
|
|
6449
6428
|
};
|
|
6450
6429
|
|
|
6451
6430
|
// src/components/Button/EditLinkButton.tsx
|
|
6452
|
-
import Link6 from "
|
|
6431
|
+
import { Link as Link6 } from "@geowiki/core";
|
|
6453
6432
|
import { DesignButton as DesignButton5 } from "@geowiki/design-system";
|
|
6454
6433
|
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
6455
6434
|
var EditLinkButton = (props) => {
|
|
@@ -6457,7 +6436,7 @@ var EditLinkButton = (props) => {
|
|
|
6457
6436
|
};
|
|
6458
6437
|
|
|
6459
6438
|
// src/components/Button/ViewLink.tsx
|
|
6460
|
-
import Link7 from "
|
|
6439
|
+
import { Link as Link7 } from "@geowiki/core";
|
|
6461
6440
|
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
6462
6441
|
var ViewLink = (props) => {
|
|
6463
6442
|
return /* @__PURE__ */ jsx71(Link7, { href: props.href, passHref: true, target: "_blank", children: /* @__PURE__ */ jsx71(
|
|
@@ -6475,12 +6454,11 @@ var ViewLink = (props) => {
|
|
|
6475
6454
|
};
|
|
6476
6455
|
|
|
6477
6456
|
// src/components/Button/ButtonList.tsx
|
|
6478
|
-
import Link8 from "
|
|
6457
|
+
import { Link as Link8 } from "@geowiki/core";
|
|
6479
6458
|
import { Button as Button24 } from "@geowiki/design-system";
|
|
6480
6459
|
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
6481
6460
|
var ButtonList = ({ data }) => {
|
|
6482
|
-
if (!data)
|
|
6483
|
-
return null;
|
|
6461
|
+
if (!data) return null;
|
|
6484
6462
|
return data == null ? void 0 : data.map((button) => {
|
|
6485
6463
|
var _a;
|
|
6486
6464
|
return /* @__PURE__ */ jsx72(Button24, { children: /* @__PURE__ */ jsx72(
|
|
@@ -6498,8 +6476,8 @@ var ButtonList = ({ data }) => {
|
|
|
6498
6476
|
|
|
6499
6477
|
// src/components/Shared/Error.tsx
|
|
6500
6478
|
import { Button as Button25 } from "@geowiki/design-system";
|
|
6501
|
-
import { useRouter as useRouter2 } from "
|
|
6502
|
-
import Image3 from "
|
|
6479
|
+
import { useRouter as useRouter2 } from "@geowiki/core";
|
|
6480
|
+
import { Image as Image3 } from "@geowiki/core";
|
|
6503
6481
|
import { jsx as jsx73, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6504
6482
|
var Error2 = () => {
|
|
6505
6483
|
const router = useRouter2();
|
|
@@ -6532,7 +6510,7 @@ var Error2 = () => {
|
|
|
6532
6510
|
|
|
6533
6511
|
// src/components/Shared/CookieConsent.tsx
|
|
6534
6512
|
import { useEffect as useEffect18, useState as useState32 } from "react";
|
|
6535
|
-
import Script from "
|
|
6513
|
+
import { Script } from "@geowiki/core";
|
|
6536
6514
|
import { getCookie as getCookie2, setCookie } from "cookies-next";
|
|
6537
6515
|
import { Cookies } from "@geowiki/design-system";
|
|
6538
6516
|
import { Fragment as Fragment19, jsx as jsx74, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
@@ -6584,11 +6562,11 @@ gtag('config', '${gTagId}');` })
|
|
|
6584
6562
|
};
|
|
6585
6563
|
|
|
6586
6564
|
// src/components/News/NewsItemList.tsx
|
|
6587
|
-
import Link10 from "
|
|
6565
|
+
import { Link as Link10 } from "@geowiki/core";
|
|
6588
6566
|
|
|
6589
6567
|
// src/components/DesignElements/NewsArticle/NewsArticle.tsx
|
|
6590
6568
|
import { Body14, Body15sb, H8Design } from "@geowiki/design-system";
|
|
6591
|
-
import Link9 from "
|
|
6569
|
+
import { Link as Link9 } from "@geowiki/core";
|
|
6592
6570
|
import { useState as useState33 } from "react";
|
|
6593
6571
|
import { jsx as jsx75, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6594
6572
|
var NewsArticle = (props) => {
|
|
@@ -6641,8 +6619,7 @@ var NewsArticle = (props) => {
|
|
|
6641
6619
|
};
|
|
6642
6620
|
|
|
6643
6621
|
// src/components/News/NewsItemList.tsx
|
|
6644
|
-
import { useRouter as useRouter3 } from "
|
|
6645
|
-
import { v4 as v48 } from "uuid";
|
|
6622
|
+
import { useRouter as useRouter3 } from "@geowiki/core";
|
|
6646
6623
|
import { Fragment as Fragment20, jsx as jsx76, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6647
6624
|
var NewsItemList = ({ newsItems }) => {
|
|
6648
6625
|
const allLanguages = [
|
|
@@ -6685,30 +6662,33 @@ var NewsItemList = ({ newsItems }) => {
|
|
|
6685
6662
|
index
|
|
6686
6663
|
);
|
|
6687
6664
|
}) }) }) }) }),
|
|
6688
|
-
/* @__PURE__ */ jsx76("div", { className: "-my-8 divide-y-2 divide-gray-100 py-10 lg:py-16", children: /* @__PURE__ */ jsx76("div", { className: "mx-auto max-w-7xl", children: /* @__PURE__ */ jsx76("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: newsItems.map((newsArticle) =>
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6665
|
+
/* @__PURE__ */ jsx76("div", { className: "-my-8 divide-y-2 divide-gray-100 py-10 lg:py-16", children: /* @__PURE__ */ jsx76("div", { className: "mx-auto max-w-7xl", children: /* @__PURE__ */ jsx76("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: newsItems.map((newsArticle, index) => {
|
|
6666
|
+
var _a;
|
|
6667
|
+
return /* @__PURE__ */ jsx76(
|
|
6668
|
+
NewsArticle,
|
|
6669
|
+
{
|
|
6670
|
+
title: newsArticle.title,
|
|
6671
|
+
description: newsArticle.description,
|
|
6672
|
+
username: newsArticle.sourceName,
|
|
6673
|
+
time: newsArticle.publishDate,
|
|
6674
|
+
language: newsArticle.language,
|
|
6675
|
+
path: newsArticle.imageUrl,
|
|
6676
|
+
link: newsArticle.url
|
|
6677
|
+
},
|
|
6678
|
+
(_a = newsArticle.url) != null ? _a : `news-${index}`
|
|
6679
|
+
);
|
|
6680
|
+
}) }) }) })
|
|
6701
6681
|
] }) });
|
|
6702
6682
|
};
|
|
6703
6683
|
|
|
6704
6684
|
// src/components/Publications/PublicationList.tsx
|
|
6705
6685
|
import { listVariants as listVariants3 } from "@geowiki/core";
|
|
6706
|
-
import { motion as
|
|
6686
|
+
import { motion as motionRaw3 } from "framer-motion";
|
|
6707
6687
|
|
|
6708
6688
|
// src/components/Publications/PublicationItem.tsx
|
|
6709
6689
|
import { itemVariants as itemVariants3, useCmsUrl as useCmsUrl2 } from "@geowiki/core";
|
|
6710
6690
|
import { motion as motion6 } from "framer-motion";
|
|
6711
|
-
import Link11 from "
|
|
6691
|
+
import { Link as Link11 } from "@geowiki/core";
|
|
6712
6692
|
import { jsx as jsx77, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6713
6693
|
var PublicationItem = ({ publication }) => {
|
|
6714
6694
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
@@ -6760,10 +6740,11 @@ var PublicationItem = ({ publication }) => {
|
|
|
6760
6740
|
|
|
6761
6741
|
// src/components/Publications/PublicationList.tsx
|
|
6762
6742
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
6743
|
+
var motion7 = motionRaw3;
|
|
6763
6744
|
var PublicationList = ({ publications }) => {
|
|
6764
|
-
publications.sort(
|
|
6765
|
-
|
|
6766
|
-
|
|
6745
|
+
const sorted = [...publications].sort(
|
|
6746
|
+
(a, b) => new Date(b.PublishedUtc).getTime() - new Date(a.PublishedUtc).getTime()
|
|
6747
|
+
);
|
|
6767
6748
|
return /* @__PURE__ */ jsx78(
|
|
6768
6749
|
motion7.ul,
|
|
6769
6750
|
{
|
|
@@ -6772,7 +6753,7 @@ var PublicationList = ({ publications }) => {
|
|
|
6772
6753
|
animate: "enter",
|
|
6773
6754
|
exit: "exit",
|
|
6774
6755
|
variants: listVariants3,
|
|
6775
|
-
children:
|
|
6756
|
+
children: sorted.map((post) => {
|
|
6776
6757
|
var _a;
|
|
6777
6758
|
return /* @__PURE__ */ jsx78(PublicationItem, { publication: post }, (_a = post.AutoroutePart) == null ? void 0 : _a.Path);
|
|
6778
6759
|
})
|
|
@@ -6829,11 +6810,11 @@ var HeroWithCenterText = (props) => {
|
|
|
6829
6810
|
};
|
|
6830
6811
|
|
|
6831
6812
|
// src/components/Hero/HeroWithMap.tsx
|
|
6832
|
-
import dynamic2 from "
|
|
6813
|
+
import { dynamic as dynamic2 } from "@geowiki/core";
|
|
6833
6814
|
import { useState as useState34 } from "react";
|
|
6834
6815
|
import { jsx as jsx81, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6835
6816
|
var MapWithNoSSR = dynamic2(
|
|
6836
|
-
() => import("./cluster-map-
|
|
6817
|
+
() => import("./cluster-map-YODMYBPK.mjs").then((x) => x.FarmerClusterMap),
|
|
6837
6818
|
{
|
|
6838
6819
|
ssr: false
|
|
6839
6820
|
}
|
|
@@ -7034,7 +7015,7 @@ import { PrimaryButton } from "@geowiki/design-system";
|
|
|
7034
7015
|
import { ProfileService as ProfileService5 } from "@geowiki/api-proxy";
|
|
7035
7016
|
import Swal from "sweetalert2";
|
|
7036
7017
|
import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/outline";
|
|
7037
|
-
import { useRouter as useRouter4 } from "
|
|
7018
|
+
import { useRouter as useRouter4 } from "@geowiki/core";
|
|
7038
7019
|
import { jsx as jsx85, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7039
7020
|
var UpdatePassword = (props) => {
|
|
7040
7021
|
const {
|
|
@@ -7064,7 +7045,7 @@ var UpdatePassword = (props) => {
|
|
|
7064
7045
|
reset({ confirmnewPassword: null });
|
|
7065
7046
|
}
|
|
7066
7047
|
};
|
|
7067
|
-
const onPasswordSubmit = () => __async(
|
|
7048
|
+
const onPasswordSubmit = () => __async(null, null, function* () {
|
|
7068
7049
|
try {
|
|
7069
7050
|
yield ProfileService5.profileChangePassword(PasswordData);
|
|
7070
7051
|
Swal.fire({
|
|
@@ -7267,7 +7248,7 @@ var UpdateUserProfile = ({
|
|
|
7267
7248
|
});
|
|
7268
7249
|
});
|
|
7269
7250
|
};
|
|
7270
|
-
const onProfileSubmit = () => __async(
|
|
7251
|
+
const onProfileSubmit = () => __async(null, null, function* () {
|
|
7271
7252
|
var result = yield ProfileService6.profileUpdate(UserData);
|
|
7272
7253
|
if (result.name === UserData.name && result.surname === UserData.surname) {
|
|
7273
7254
|
Swal2.fire({
|
|
@@ -7275,7 +7256,7 @@ var UpdateUserProfile = ({
|
|
|
7275
7256
|
text: "Profile updated successfully",
|
|
7276
7257
|
icon: "success"
|
|
7277
7258
|
}).then(() => {
|
|
7278
|
-
|
|
7259
|
+
window.location.reload();
|
|
7279
7260
|
});
|
|
7280
7261
|
} else {
|
|
7281
7262
|
Swal2.fire({
|
|
@@ -7374,7 +7355,7 @@ import { toast } from "react-toastify";
|
|
|
7374
7355
|
import { jsx as jsx87, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7375
7356
|
var SettingsItem = (props) => {
|
|
7376
7357
|
const [value, setValue] = useState37(props.value);
|
|
7377
|
-
const handleUpdateSettings = () => __async(
|
|
7358
|
+
const handleUpdateSettings = () => __async(null, null, function* () {
|
|
7378
7359
|
try {
|
|
7379
7360
|
yield SettingsService.settingsSetSettingForTenant(props.setting, value);
|
|
7380
7361
|
toast.success("Settings updated");
|
|
@@ -7420,8 +7401,7 @@ import { jsx as jsx88, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
|
7420
7401
|
var SettingsManagement = () => {
|
|
7421
7402
|
var _a;
|
|
7422
7403
|
var { data, isLoading } = useAppConfig3();
|
|
7423
|
-
if (isLoading)
|
|
7424
|
-
return /* @__PURE__ */ jsx88("div", { children: "Loading..." });
|
|
7404
|
+
if (isLoading) return /* @__PURE__ */ jsx88("div", { children: "Loading..." });
|
|
7425
7405
|
const keys = Object == null ? void 0 : Object.keys((_a = data == null ? void 0 : data.setting) == null ? void 0 : _a.values);
|
|
7426
7406
|
let settings = {
|
|
7427
7407
|
GeoWiki: keys.filter((key) => key.startsWith("GeoWiki")),
|
|
@@ -7432,10 +7412,8 @@ var SettingsManagement = () => {
|
|
|
7432
7412
|
return key.startsWith((_a2 = data == null ? void 0 : data.currentTenant) == null ? void 0 : _a2.name);
|
|
7433
7413
|
})
|
|
7434
7414
|
};
|
|
7435
|
-
if (!data)
|
|
7436
|
-
|
|
7437
|
-
if (!keys)
|
|
7438
|
-
return /* @__PURE__ */ jsx88("div", { children: "no keys" });
|
|
7415
|
+
if (!data) return /* @__PURE__ */ jsx88("div", { children: "no data" });
|
|
7416
|
+
if (!keys) return /* @__PURE__ */ jsx88("div", { children: "no keys" });
|
|
7439
7417
|
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
7418
|
/* @__PURE__ */ jsx88(Tab.List, { className: "flex p-1 space-x-1 rounded-xl", children: Object.keys(settings).map(
|
|
7441
7419
|
(key) => settings[key].length > 0 && /* @__PURE__ */ jsx88(
|
|
@@ -7780,109 +7758,14 @@ var DesignFooter = (props) => {
|
|
|
7780
7758
|
|
|
7781
7759
|
// src/components/DesignElements/header.tsx
|
|
7782
7760
|
import { useState as useState38 } from "react";
|
|
7783
|
-
import { Dialog as
|
|
7784
|
-
import { DesignButton as DesignButton6 } from "@geowiki/design-system";
|
|
7761
|
+
import { Dialog as Dialog17, Popover as Popover2 } from "@headlessui/react";
|
|
7762
|
+
import { DesignButton as DesignButton6, Notification } from "@geowiki/design-system";
|
|
7785
7763
|
import { signIn as signIn5, signOut as signOut2 } from "@geowiki/core";
|
|
7786
|
-
import { Bars3Icon as Bars3Icon3, XMarkIcon as
|
|
7764
|
+
import { Bars3Icon as Bars3Icon3, XMarkIcon as XMarkIcon4 } from "@heroicons/react/24/outline";
|
|
7787
7765
|
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
|
|
7766
|
+
import { Link as Link12 } from "@geowiki/core";
|
|
7884
7767
|
import { Features as Features3, useFeature as useFeature3, useGeoWikiSettings } from "@geowiki/core";
|
|
7885
|
-
import { Fragment as
|
|
7768
|
+
import { Fragment as Fragment22, jsx as jsx92, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7886
7769
|
var DesignHeader = ({
|
|
7887
7770
|
branding,
|
|
7888
7771
|
mainMenu,
|
|
@@ -7901,21 +7784,21 @@ var DesignHeader = ({
|
|
|
7901
7784
|
if (settings) {
|
|
7902
7785
|
rootPath = (_c = (_b = (_a = settings.GeoWikiSettings) == null ? void 0 : _a.RootUrl) == null ? void 0 : _b.Text) != null ? _c : "/";
|
|
7903
7786
|
}
|
|
7904
|
-
return /* @__PURE__ */
|
|
7787
|
+
return /* @__PURE__ */ jsxs77(
|
|
7905
7788
|
"header",
|
|
7906
7789
|
{
|
|
7907
7790
|
"data-component": "DesignHeader",
|
|
7908
7791
|
className: hasStickyNavBar ? "fixed w-full bg-white" : "lg:container mx-auto",
|
|
7909
7792
|
children: [
|
|
7910
|
-
/* @__PURE__ */
|
|
7793
|
+
/* @__PURE__ */ jsx92("div", { className: "lg:container lg:mx-auto", children: /* @__PURE__ */ jsxs77(
|
|
7911
7794
|
"nav",
|
|
7912
7795
|
{
|
|
7913
7796
|
className: "flex items-center justify-between p-4 lg:px-12 min-h-12",
|
|
7914
7797
|
"aria-label": "Global",
|
|
7915
7798
|
children: [
|
|
7916
|
-
/* @__PURE__ */
|
|
7917
|
-
/* @__PURE__ */
|
|
7918
|
-
/* @__PURE__ */
|
|
7799
|
+
/* @__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: [
|
|
7800
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: branding.title }),
|
|
7801
|
+
/* @__PURE__ */ jsx92(
|
|
7919
7802
|
CmsImage,
|
|
7920
7803
|
{
|
|
7921
7804
|
src: branding.logo,
|
|
@@ -7928,10 +7811,10 @@ var DesignHeader = ({
|
|
|
7928
7811
|
}
|
|
7929
7812
|
)
|
|
7930
7813
|
] }) }),
|
|
7931
|
-
/* @__PURE__ */
|
|
7932
|
-
/* @__PURE__ */
|
|
7933
|
-
/* @__PURE__ */
|
|
7934
|
-
/* @__PURE__ */
|
|
7814
|
+
/* @__PURE__ */ jsx92("div", { className: "flex lg:hidden w-full", children: /* @__PURE__ */ jsxs77("div", { className: "flex items-center justify-between w-full", children: [
|
|
7815
|
+
/* @__PURE__ */ jsxs77(Link12, { href: rootPath, className: "flex-shrink-0", children: [
|
|
7816
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: branding.title }),
|
|
7817
|
+
/* @__PURE__ */ jsx92(
|
|
7935
7818
|
CmsImage,
|
|
7936
7819
|
{
|
|
7937
7820
|
src: branding.logo,
|
|
@@ -7942,15 +7825,15 @@ var DesignHeader = ({
|
|
|
7942
7825
|
}
|
|
7943
7826
|
)
|
|
7944
7827
|
] }),
|
|
7945
|
-
/* @__PURE__ */
|
|
7828
|
+
/* @__PURE__ */ jsxs77(
|
|
7946
7829
|
"button",
|
|
7947
7830
|
{
|
|
7948
7831
|
type: "button",
|
|
7949
7832
|
className: "flex items-center justify-center h-12 w-12 rounded-lg bg-gray-100 hover:bg-gray-200 transition-colors duration-200",
|
|
7950
7833
|
onClick: () => setMobileMenuOpen(true),
|
|
7951
7834
|
children: [
|
|
7952
|
-
/* @__PURE__ */
|
|
7953
|
-
/* @__PURE__ */
|
|
7835
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: "Open main menu" }),
|
|
7836
|
+
/* @__PURE__ */ jsx92(
|
|
7954
7837
|
Bars3Icon3,
|
|
7955
7838
|
{
|
|
7956
7839
|
className: "h-8 w-8 text-gray-700",
|
|
@@ -7961,11 +7844,11 @@ var DesignHeader = ({
|
|
|
7961
7844
|
}
|
|
7962
7845
|
)
|
|
7963
7846
|
] }) }),
|
|
7964
|
-
/* @__PURE__ */
|
|
7965
|
-
(menuItem) => menuItem.subMenu ? /* @__PURE__ */
|
|
7966
|
-
/* @__PURE__ */
|
|
7847
|
+
/* @__PURE__ */ jsx92(Popover2.Group, { className: "hidden lg:flex lg:items-center lg:gap-x-6 grid-cols-1", children: mainMenu.map(
|
|
7848
|
+
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ jsxs77(Popover2, { children: [
|
|
7849
|
+
/* @__PURE__ */ jsxs77(Popover2.Button, { className: "flex items-center gap-x-1 text-base font-medium outline-none border-none", children: [
|
|
7967
7850
|
menuItem.text,
|
|
7968
|
-
/* @__PURE__ */
|
|
7851
|
+
/* @__PURE__ */ jsx92(
|
|
7969
7852
|
ChevronDownIcon2,
|
|
7970
7853
|
{
|
|
7971
7854
|
className: "h-6 w-6 flex-none text-black",
|
|
@@ -7973,11 +7856,11 @@ var DesignHeader = ({
|
|
|
7973
7856
|
}
|
|
7974
7857
|
)
|
|
7975
7858
|
] }),
|
|
7976
|
-
/* @__PURE__ */
|
|
7859
|
+
/* @__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
7860
|
"div",
|
|
7978
7861
|
{
|
|
7979
7862
|
className: "group relative flex rounded-lg text-sm leading-tight",
|
|
7980
|
-
children: /* @__PURE__ */
|
|
7863
|
+
children: /* @__PURE__ */ jsx92(
|
|
7981
7864
|
Link12,
|
|
7982
7865
|
{
|
|
7983
7866
|
href: subItem.link,
|
|
@@ -7989,7 +7872,7 @@ var DesignHeader = ({
|
|
|
7989
7872
|
},
|
|
7990
7873
|
subItem.text
|
|
7991
7874
|
)) }) })
|
|
7992
|
-
] }, menuItem.text) : /* @__PURE__ */
|
|
7875
|
+
] }, menuItem.text) : /* @__PURE__ */ jsx92("div", { children: /* @__PURE__ */ jsx92(
|
|
7993
7876
|
Link12,
|
|
7994
7877
|
{
|
|
7995
7878
|
href: menuItem.link,
|
|
@@ -7999,9 +7882,9 @@ var DesignHeader = ({
|
|
|
7999
7882
|
}
|
|
8000
7883
|
) }, menuItem.text)
|
|
8001
7884
|
) }),
|
|
8002
|
-
/* @__PURE__ */
|
|
8003
|
-
sessionStatus === "unauthenticated" && /* @__PURE__ */
|
|
8004
|
-
/* @__PURE__ */
|
|
7885
|
+
/* @__PURE__ */ jsx92("div", { className: "hidden lg:flex lg:flex-1 lg:justify-end gap-8", children: canLogin && /* @__PURE__ */ jsxs77(Fragment22, { children: [
|
|
7886
|
+
sessionStatus === "unauthenticated" && /* @__PURE__ */ jsxs77(Fragment22, { children: [
|
|
7887
|
+
/* @__PURE__ */ jsx92(
|
|
8005
7888
|
DesignButton6,
|
|
8006
7889
|
{
|
|
8007
7890
|
variant: "secondary",
|
|
@@ -8010,7 +7893,7 @@ var DesignHeader = ({
|
|
|
8010
7893
|
children: "Login"
|
|
8011
7894
|
}
|
|
8012
7895
|
),
|
|
8013
|
-
canSignup && /* @__PURE__ */
|
|
7896
|
+
canSignup && /* @__PURE__ */ jsx92(DesignButton6, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx92(
|
|
8014
7897
|
Link12,
|
|
8015
7898
|
{
|
|
8016
7899
|
href: `${isFeatureEnabled ? "/signup" : "/register"}`,
|
|
@@ -8018,8 +7901,8 @@ var DesignHeader = ({
|
|
|
8018
7901
|
}
|
|
8019
7902
|
) })
|
|
8020
7903
|
] }),
|
|
8021
|
-
sessionStatus === "authenticated" && /* @__PURE__ */
|
|
8022
|
-
isAdmin2 && /* @__PURE__ */
|
|
7904
|
+
sessionStatus === "authenticated" && /* @__PURE__ */ jsxs77(Fragment22, { children: [
|
|
7905
|
+
isAdmin2 && /* @__PURE__ */ jsx92(
|
|
8023
7906
|
Link12,
|
|
8024
7907
|
{
|
|
8025
7908
|
href: `${isFeatureEnabled ? "/admin/cluster" : "/admin"} `,
|
|
@@ -8027,7 +7910,7 @@ var DesignHeader = ({
|
|
|
8027
7910
|
children: "Admin"
|
|
8028
7911
|
}
|
|
8029
7912
|
),
|
|
8030
|
-
/* @__PURE__ */
|
|
7913
|
+
/* @__PURE__ */ jsx92(
|
|
8031
7914
|
DesignButton6,
|
|
8032
7915
|
{
|
|
8033
7916
|
variant: "secondary",
|
|
@@ -8041,20 +7924,20 @@ var DesignHeader = ({
|
|
|
8041
7924
|
]
|
|
8042
7925
|
}
|
|
8043
7926
|
) }),
|
|
8044
|
-
/* @__PURE__ */
|
|
8045
|
-
|
|
7927
|
+
/* @__PURE__ */ jsxs77(
|
|
7928
|
+
Dialog17,
|
|
8046
7929
|
{
|
|
8047
7930
|
as: "div",
|
|
8048
7931
|
className: "lg:hidden",
|
|
8049
7932
|
open: mobileMenuOpen,
|
|
8050
7933
|
onClose: setMobileMenuOpen,
|
|
8051
7934
|
children: [
|
|
8052
|
-
/* @__PURE__ */
|
|
8053
|
-
/* @__PURE__ */
|
|
8054
|
-
/* @__PURE__ */
|
|
8055
|
-
/* @__PURE__ */
|
|
8056
|
-
/* @__PURE__ */
|
|
8057
|
-
/* @__PURE__ */
|
|
7935
|
+
/* @__PURE__ */ jsx92("div", { className: "fixed inset-0 z-10" }),
|
|
7936
|
+
/* @__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: [
|
|
7937
|
+
/* @__PURE__ */ jsxs77("div", { className: "flex items-center justify-between p-4", children: [
|
|
7938
|
+
/* @__PURE__ */ jsxs77(Link12, { href: rootPath, className: "flex-shrink-0", children: [
|
|
7939
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: branding.title }),
|
|
7940
|
+
/* @__PURE__ */ jsx92(
|
|
8058
7941
|
CmsImage,
|
|
8059
7942
|
{
|
|
8060
7943
|
src: branding.logo,
|
|
@@ -8067,21 +7950,21 @@ var DesignHeader = ({
|
|
|
8067
7950
|
}
|
|
8068
7951
|
)
|
|
8069
7952
|
] }),
|
|
8070
|
-
/* @__PURE__ */
|
|
7953
|
+
/* @__PURE__ */ jsxs77(
|
|
8071
7954
|
"button",
|
|
8072
7955
|
{
|
|
8073
7956
|
type: "button",
|
|
8074
7957
|
className: "flex items-center justify-center h-12 w-12 rounded-lg bg-gray-100 hover:bg-gray-200 transition-colors duration-200",
|
|
8075
7958
|
onClick: () => setMobileMenuOpen(false),
|
|
8076
7959
|
children: [
|
|
8077
|
-
/* @__PURE__ */
|
|
8078
|
-
/* @__PURE__ */
|
|
7960
|
+
/* @__PURE__ */ jsx92("span", { className: "sr-only", children: "Close menu" }),
|
|
7961
|
+
/* @__PURE__ */ jsx92(XMarkIcon4, { className: "h-8 w-8 text-gray-700", "aria-hidden": "true" })
|
|
8079
7962
|
]
|
|
8080
7963
|
}
|
|
8081
7964
|
)
|
|
8082
7965
|
] }),
|
|
8083
|
-
/* @__PURE__ */
|
|
8084
|
-
!mainMenu.some((menuItem) => menuItem.text === "Home") && /* @__PURE__ */
|
|
7966
|
+
/* @__PURE__ */ jsxs77("div", { className: "flex-1 flex flex-col justify-between p-6", children: [
|
|
7967
|
+
!mainMenu.some((menuItem) => menuItem.text === "Home") && /* @__PURE__ */ jsx92("div", { className: "py-2", children: /* @__PURE__ */ jsx92(
|
|
8085
7968
|
Link12,
|
|
8086
7969
|
{
|
|
8087
7970
|
href: rootPath,
|
|
@@ -8091,10 +7974,10 @@ var DesignHeader = ({
|
|
|
8091
7974
|
}
|
|
8092
7975
|
) }),
|
|
8093
7976
|
mainMenu.map(
|
|
8094
|
-
(menuItem) => menuItem.subMenu ? /* @__PURE__ */
|
|
8095
|
-
/* @__PURE__ */
|
|
7977
|
+
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ jsxs77(Popover2, { className: "relative", children: [
|
|
7978
|
+
/* @__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
7979
|
menuItem.text,
|
|
8097
|
-
/* @__PURE__ */
|
|
7980
|
+
/* @__PURE__ */ jsx92(
|
|
8098
7981
|
ChevronDownIcon2,
|
|
8099
7982
|
{
|
|
8100
7983
|
className: "h-5 w-5 flex-none text-gray-500",
|
|
@@ -8102,7 +7985,7 @@ var DesignHeader = ({
|
|
|
8102
7985
|
}
|
|
8103
7986
|
)
|
|
8104
7987
|
] }),
|
|
8105
|
-
/* @__PURE__ */
|
|
7988
|
+
/* @__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
7989
|
Link12,
|
|
8107
7990
|
{
|
|
8108
7991
|
href: subItem.link,
|
|
@@ -8112,7 +7995,7 @@ var DesignHeader = ({
|
|
|
8112
7995
|
children: subItem.text
|
|
8113
7996
|
}
|
|
8114
7997
|
) }, subItem.text)) }) })
|
|
8115
|
-
] }, menuItem.text) : /* @__PURE__ */
|
|
7998
|
+
] }, menuItem.text) : /* @__PURE__ */ jsx92("div", { children: /* @__PURE__ */ jsx92(
|
|
8116
7999
|
Link12,
|
|
8117
8000
|
{
|
|
8118
8001
|
href: menuItem.link,
|
|
@@ -8123,9 +8006,9 @@ var DesignHeader = ({
|
|
|
8123
8006
|
}
|
|
8124
8007
|
) }, menuItem.text)
|
|
8125
8008
|
),
|
|
8126
|
-
canLogin && /* @__PURE__ */
|
|
8127
|
-
sessionStatus === "unauthenticated" && /* @__PURE__ */
|
|
8128
|
-
/* @__PURE__ */
|
|
8009
|
+
canLogin && /* @__PURE__ */ jsxs77("div", { className: "pt-6 mt-auto", children: [
|
|
8010
|
+
sessionStatus === "unauthenticated" && /* @__PURE__ */ jsxs77("div", { className: "flex gap-4 mb-4", children: [
|
|
8011
|
+
/* @__PURE__ */ jsx92(
|
|
8129
8012
|
"button",
|
|
8130
8013
|
{
|
|
8131
8014
|
type: "button",
|
|
@@ -8137,7 +8020,7 @@ var DesignHeader = ({
|
|
|
8137
8020
|
children: "Login"
|
|
8138
8021
|
}
|
|
8139
8022
|
),
|
|
8140
|
-
canSignup && /* @__PURE__ */
|
|
8023
|
+
canSignup && /* @__PURE__ */ jsx92(
|
|
8141
8024
|
Link12,
|
|
8142
8025
|
{
|
|
8143
8026
|
href: `${isFeatureEnabled ? "/signup" : "/register"}`,
|
|
@@ -8147,8 +8030,8 @@ var DesignHeader = ({
|
|
|
8147
8030
|
}
|
|
8148
8031
|
)
|
|
8149
8032
|
] }),
|
|
8150
|
-
sessionStatus === "authenticated" && /* @__PURE__ */
|
|
8151
|
-
isAdmin2 && /* @__PURE__ */
|
|
8033
|
+
sessionStatus === "authenticated" && /* @__PURE__ */ jsxs77("div", { className: "space-y-3 mb-4", children: [
|
|
8034
|
+
isAdmin2 && /* @__PURE__ */ jsx92(
|
|
8152
8035
|
Link12,
|
|
8153
8036
|
{
|
|
8154
8037
|
href: `${isFeatureEnabled ? "/admin/cluster" : "/admin"}`,
|
|
@@ -8157,7 +8040,7 @@ var DesignHeader = ({
|
|
|
8157
8040
|
children: "Admin"
|
|
8158
8041
|
}
|
|
8159
8042
|
),
|
|
8160
|
-
/* @__PURE__ */
|
|
8043
|
+
/* @__PURE__ */ jsx92(
|
|
8161
8044
|
"button",
|
|
8162
8045
|
{
|
|
8163
8046
|
type: "button",
|
|
@@ -8170,8 +8053,8 @@ var DesignHeader = ({
|
|
|
8170
8053
|
}
|
|
8171
8054
|
)
|
|
8172
8055
|
] }),
|
|
8173
|
-
/* @__PURE__ */
|
|
8174
|
-
/* @__PURE__ */
|
|
8056
|
+
/* @__PURE__ */ jsx92("div", { className: "pt-4", children: /* @__PURE__ */ jsxs77("div", { className: "flex flex-wrap gap-4 text-sm text-gray-600", children: [
|
|
8057
|
+
/* @__PURE__ */ jsx92(
|
|
8175
8058
|
Link12,
|
|
8176
8059
|
{
|
|
8177
8060
|
href: "/page/terms-of-use",
|
|
@@ -8180,7 +8063,7 @@ var DesignHeader = ({
|
|
|
8180
8063
|
children: "Terms of Use"
|
|
8181
8064
|
}
|
|
8182
8065
|
),
|
|
8183
|
-
/* @__PURE__ */
|
|
8066
|
+
/* @__PURE__ */ jsx92(
|
|
8184
8067
|
Link12,
|
|
8185
8068
|
{
|
|
8186
8069
|
href: "/page/privacy-policy",
|
|
@@ -8189,7 +8072,7 @@ var DesignHeader = ({
|
|
|
8189
8072
|
children: "Privacy Policy"
|
|
8190
8073
|
}
|
|
8191
8074
|
),
|
|
8192
|
-
/* @__PURE__ */
|
|
8075
|
+
/* @__PURE__ */ jsx92(
|
|
8193
8076
|
Link12,
|
|
8194
8077
|
{
|
|
8195
8078
|
href: "/page/language",
|
|
@@ -8201,7 +8084,7 @@ var DesignHeader = ({
|
|
|
8201
8084
|
] }) })
|
|
8202
8085
|
] })
|
|
8203
8086
|
] }),
|
|
8204
|
-
/* @__PURE__ */
|
|
8087
|
+
/* @__PURE__ */ jsx92(
|
|
8205
8088
|
Notification,
|
|
8206
8089
|
{
|
|
8207
8090
|
title: "Please login to your Recodo account on your desktop",
|
|
@@ -8230,7 +8113,7 @@ import {
|
|
|
8230
8113
|
} from "react";
|
|
8231
8114
|
import { useDebounce } from "@geowiki/design-system";
|
|
8232
8115
|
import { DesignButton as DesignButton7, Body18m as Body18m2 } from "@geowiki/design-system";
|
|
8233
|
-
import { jsx as
|
|
8116
|
+
import { jsx as jsx93, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
8234
8117
|
var SearchInput = ({
|
|
8235
8118
|
textButton,
|
|
8236
8119
|
placeholder,
|
|
@@ -8260,14 +8143,14 @@ var SearchInput = ({
|
|
|
8260
8143
|
(_a = ref.current) == null ? void 0 : _a.focus();
|
|
8261
8144
|
}
|
|
8262
8145
|
}, [value]);
|
|
8263
|
-
return /* @__PURE__ */
|
|
8146
|
+
return /* @__PURE__ */ jsx93(
|
|
8264
8147
|
"div",
|
|
8265
8148
|
{
|
|
8266
8149
|
className: "w-auto border border-zinc-300 rounded-full lg:p-1",
|
|
8267
8150
|
"data-component": "DesignSearchInput",
|
|
8268
|
-
children: /* @__PURE__ */
|
|
8269
|
-
/* @__PURE__ */
|
|
8270
|
-
/* @__PURE__ */
|
|
8151
|
+
children: /* @__PURE__ */ jsxs78("div", { className: "flex flex-row", children: [
|
|
8152
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex items-center justify-start pl-6 basis-3/4", children: [
|
|
8153
|
+
/* @__PURE__ */ jsxs78(
|
|
8271
8154
|
"svg",
|
|
8272
8155
|
{
|
|
8273
8156
|
width: "16",
|
|
@@ -8276,8 +8159,8 @@ var SearchInput = ({
|
|
|
8276
8159
|
fill: "none",
|
|
8277
8160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8278
8161
|
children: [
|
|
8279
|
-
/* @__PURE__ */
|
|
8280
|
-
/* @__PURE__ */
|
|
8162
|
+
/* @__PURE__ */ jsx93("path", { d: "M10 10L15 15", stroke: "black" }),
|
|
8163
|
+
/* @__PURE__ */ jsx93(
|
|
8281
8164
|
"path",
|
|
8282
8165
|
{
|
|
8283
8166
|
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 +8170,7 @@ var SearchInput = ({
|
|
|
8287
8170
|
]
|
|
8288
8171
|
}
|
|
8289
8172
|
),
|
|
8290
|
-
/* @__PURE__ */
|
|
8173
|
+
/* @__PURE__ */ jsx93(
|
|
8291
8174
|
"input",
|
|
8292
8175
|
{
|
|
8293
8176
|
ref,
|
|
@@ -8299,7 +8182,7 @@ var SearchInput = ({
|
|
|
8299
8182
|
}
|
|
8300
8183
|
)
|
|
8301
8184
|
] }),
|
|
8302
|
-
/* @__PURE__ */
|
|
8185
|
+
/* @__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
8186
|
] })
|
|
8304
8187
|
}
|
|
8305
8188
|
);
|
|
@@ -8318,7 +8201,7 @@ import {
|
|
|
8318
8201
|
DesignSelectValue as DesignSelectValue2
|
|
8319
8202
|
} from "@geowiki/design-system";
|
|
8320
8203
|
import { Body15m } from "@geowiki/design-system";
|
|
8321
|
-
import { jsx as
|
|
8204
|
+
import { jsx as jsx94, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
8322
8205
|
var DesignDashboardPagination = ({
|
|
8323
8206
|
totalCount,
|
|
8324
8207
|
currentPage,
|
|
@@ -8348,13 +8231,13 @@ var DesignDashboardPagination = ({
|
|
|
8348
8231
|
const onPrevious = () => {
|
|
8349
8232
|
onPageChange(currentPage - 1);
|
|
8350
8233
|
};
|
|
8351
|
-
return /* @__PURE__ */
|
|
8352
|
-
currentPage === 1 ? null : /* @__PURE__ */
|
|
8234
|
+
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: [
|
|
8235
|
+
currentPage === 1 ? null : /* @__PURE__ */ jsx94(
|
|
8353
8236
|
"button",
|
|
8354
8237
|
{
|
|
8355
8238
|
onClick: onPrevious,
|
|
8356
8239
|
className: "relative flex flex-start items-center justify-start",
|
|
8357
|
-
children: /* @__PURE__ */
|
|
8240
|
+
children: /* @__PURE__ */ jsx94(
|
|
8358
8241
|
"svg",
|
|
8359
8242
|
{
|
|
8360
8243
|
width: "24",
|
|
@@ -8362,7 +8245,7 @@ var DesignDashboardPagination = ({
|
|
|
8362
8245
|
viewBox: "0 0 24 24",
|
|
8363
8246
|
fill: "none",
|
|
8364
8247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8365
|
-
children: /* @__PURE__ */
|
|
8248
|
+
children: /* @__PURE__ */ jsx94(
|
|
8366
8249
|
"path",
|
|
8367
8250
|
{
|
|
8368
8251
|
d: "M15 6L9 12L15 18",
|
|
@@ -8377,7 +8260,7 @@ var DesignDashboardPagination = ({
|
|
|
8377
8260
|
}
|
|
8378
8261
|
),
|
|
8379
8262
|
paginationRange == null ? void 0 : paginationRange.map((pageNumber) => {
|
|
8380
|
-
return /* @__PURE__ */
|
|
8263
|
+
return /* @__PURE__ */ jsx94(
|
|
8381
8264
|
"button",
|
|
8382
8265
|
{
|
|
8383
8266
|
className: classnames3(
|
|
@@ -8399,12 +8282,12 @@ var DesignDashboardPagination = ({
|
|
|
8399
8282
|
pageNumber
|
|
8400
8283
|
);
|
|
8401
8284
|
}),
|
|
8402
|
-
currentPage === lastPage ? null : /* @__PURE__ */
|
|
8285
|
+
currentPage === lastPage ? null : /* @__PURE__ */ jsx94(
|
|
8403
8286
|
"button",
|
|
8404
8287
|
{
|
|
8405
8288
|
onClick: onNext,
|
|
8406
8289
|
className: "relative inline-flex items-center",
|
|
8407
|
-
children: /* @__PURE__ */
|
|
8290
|
+
children: /* @__PURE__ */ jsx94(
|
|
8408
8291
|
"svg",
|
|
8409
8292
|
{
|
|
8410
8293
|
width: "24",
|
|
@@ -8412,7 +8295,7 @@ var DesignDashboardPagination = ({
|
|
|
8412
8295
|
viewBox: "0 0 24 24",
|
|
8413
8296
|
fill: "none",
|
|
8414
8297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8415
|
-
children: /* @__PURE__ */
|
|
8298
|
+
children: /* @__PURE__ */ jsx94(
|
|
8416
8299
|
"path",
|
|
8417
8300
|
{
|
|
8418
8301
|
d: "M9 18L15 12L9 6",
|
|
@@ -8426,10 +8309,10 @@ var DesignDashboardPagination = ({
|
|
|
8426
8309
|
)
|
|
8427
8310
|
}
|
|
8428
8311
|
),
|
|
8429
|
-
/* @__PURE__ */
|
|
8430
|
-
/* @__PURE__ */
|
|
8431
|
-
/* @__PURE__ */
|
|
8432
|
-
/* @__PURE__ */
|
|
8312
|
+
/* @__PURE__ */ jsx94(Body15m, { className: "opacity-70 pr-2 pl-2 text-zinc-500 inline-flex items-center", children: "Showing" }),
|
|
8313
|
+
/* @__PURE__ */ jsxs79(DesignSelect2, { children: [
|
|
8314
|
+
/* @__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 }) }),
|
|
8315
|
+
/* @__PURE__ */ jsx94(DesignSelectContent2, { children: /* @__PURE__ */ jsx94(DesignSelectGroup2, { children: pageSegments.map((segment) => /* @__PURE__ */ jsx94(
|
|
8433
8316
|
DesignSelectItem2,
|
|
8434
8317
|
{
|
|
8435
8318
|
value: `${segment}`,
|
|
@@ -8438,7 +8321,7 @@ var DesignDashboardPagination = ({
|
|
|
8438
8321
|
segment.toString()
|
|
8439
8322
|
)) }) })
|
|
8440
8323
|
] }),
|
|
8441
|
-
/* @__PURE__ */
|
|
8324
|
+
/* @__PURE__ */ jsxs79(Body15m, { className: "opacity-70 pl-2 text-zinc-500 inline-flex items-center", children: [
|
|
8442
8325
|
"of ",
|
|
8443
8326
|
totalCount,
|
|
8444
8327
|
" results"
|
|
@@ -8455,9 +8338,9 @@ import {
|
|
|
8455
8338
|
DesignSelectTrigger as DesignSelectTrigger3,
|
|
8456
8339
|
DesignSelectValue as DesignSelectValue3
|
|
8457
8340
|
} from "@geowiki/design-system";
|
|
8458
|
-
import { useRouter as useRouter5 } from "
|
|
8341
|
+
import { useRouter as useRouter5 } from "@geowiki/core";
|
|
8459
8342
|
import { useState as useState40, useEffect as useEffect20 } from "react";
|
|
8460
|
-
import { jsx as
|
|
8343
|
+
import { jsx as jsx95, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
8461
8344
|
var DesignSort = ({ totalCount, name }) => {
|
|
8462
8345
|
const router = useRouter5();
|
|
8463
8346
|
const sortingTypes = ["Most recent", "Old to new"];
|
|
@@ -8479,21 +8362,21 @@ var DesignSort = ({ totalCount, name }) => {
|
|
|
8479
8362
|
})
|
|
8480
8363
|
});
|
|
8481
8364
|
};
|
|
8482
|
-
return /* @__PURE__ */
|
|
8365
|
+
return /* @__PURE__ */ jsxs80(
|
|
8483
8366
|
"div",
|
|
8484
8367
|
{
|
|
8485
8368
|
className: "flex justify-center items-center gap-2 text-base font-normal leading-tight",
|
|
8486
8369
|
"data-component": "DesignSort",
|
|
8487
8370
|
children: [
|
|
8488
|
-
/* @__PURE__ */
|
|
8489
|
-
/* @__PURE__ */
|
|
8490
|
-
/* @__PURE__ */
|
|
8371
|
+
/* @__PURE__ */ jsxs80("div", { className: "flex justify-center items-center space-x-2 text-zinc-500 ", children: [
|
|
8372
|
+
/* @__PURE__ */ jsx95("span", { children: totalCount }),
|
|
8373
|
+
/* @__PURE__ */ jsx95("span", { children: name })
|
|
8491
8374
|
] }),
|
|
8492
|
-
/* @__PURE__ */
|
|
8493
|
-
/* @__PURE__ */
|
|
8494
|
-
/* @__PURE__ */
|
|
8495
|
-
/* @__PURE__ */
|
|
8496
|
-
/* @__PURE__ */
|
|
8375
|
+
/* @__PURE__ */ jsx95("div", { className: "w-1 h-1 rounded-full bg-zinc-500" }),
|
|
8376
|
+
/* @__PURE__ */ jsx95("span", { children: "Sort by" }),
|
|
8377
|
+
/* @__PURE__ */ jsxs80(DesignSelect3, { onValueChange: handleChangeValue, value, children: [
|
|
8378
|
+
/* @__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 }) }),
|
|
8379
|
+
/* @__PURE__ */ jsx95(DesignSelectContent3, { children: /* @__PURE__ */ jsx95(DesignSelectGroup3, { children: sortingTypes == null ? void 0 : sortingTypes.map((sortingType) => /* @__PURE__ */ jsx95(DesignSelectItem3, { value: sortingType, children: sortingType }, sortingType)) }) })
|
|
8497
8380
|
] }, value)
|
|
8498
8381
|
]
|
|
8499
8382
|
}
|
|
@@ -8503,9 +8386,9 @@ var DesignSort = ({ totalCount, name }) => {
|
|
|
8503
8386
|
// src/components/DesignElements/filterDropdown.tsx
|
|
8504
8387
|
import { Disclosure as Disclosure2 } from "@headlessui/react";
|
|
8505
8388
|
import { ChevronDown } from "lucide-react";
|
|
8506
|
-
import { useRouter as useRouter6 } from "
|
|
8389
|
+
import { useRouter as useRouter6 } from "@geowiki/core";
|
|
8507
8390
|
import { DesignCheckbox as Checkbox9 } from "@geowiki/design-system";
|
|
8508
|
-
import { Fragment as
|
|
8391
|
+
import { Fragment as Fragment23, jsx as jsx96, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8509
8392
|
var FilterDropdown = ({
|
|
8510
8393
|
name,
|
|
8511
8394
|
filterKey,
|
|
@@ -8538,27 +8421,28 @@ var FilterDropdown = ({
|
|
|
8538
8421
|
});
|
|
8539
8422
|
}
|
|
8540
8423
|
};
|
|
8541
|
-
return /* @__PURE__ */
|
|
8424
|
+
return /* @__PURE__ */ jsx96(
|
|
8542
8425
|
Disclosure2,
|
|
8543
8426
|
{
|
|
8427
|
+
as: "div",
|
|
8544
8428
|
"data-component": "FilterDropdown",
|
|
8545
8429
|
defaultOpen: filterValues.length > 0,
|
|
8546
|
-
children: ({ open }) => /* @__PURE__ */
|
|
8547
|
-
/* @__PURE__ */
|
|
8548
|
-
/* @__PURE__ */
|
|
8430
|
+
children: ({ open }) => /* @__PURE__ */ jsxs81(Fragment23, { children: [
|
|
8431
|
+
/* @__PURE__ */ jsxs81(Disclosure2.Button, { className: "w-80 flex-row flex justify-start items-center gap-2 border-zinc-300 ", children: [
|
|
8432
|
+
/* @__PURE__ */ jsx96(
|
|
8549
8433
|
ChevronDown,
|
|
8550
8434
|
{
|
|
8551
8435
|
className: `${open ? "rotate-180 transform" : ""} h-7 w-7 `
|
|
8552
8436
|
}
|
|
8553
8437
|
),
|
|
8554
|
-
/* @__PURE__ */
|
|
8438
|
+
/* @__PURE__ */ jsx96("span", { className: "text-lg font-semibold leading-relaxed ", children: name })
|
|
8555
8439
|
] }),
|
|
8556
|
-
/* @__PURE__ */
|
|
8440
|
+
/* @__PURE__ */ jsx96(Disclosure2.Panel, { className: "space-y-2", children: sortItems.map((sortItem) => /* @__PURE__ */ jsxs81(
|
|
8557
8441
|
"div",
|
|
8558
8442
|
{
|
|
8559
8443
|
className: "flex justify-start items-center space-x-3",
|
|
8560
8444
|
children: [
|
|
8561
|
-
/* @__PURE__ */
|
|
8445
|
+
/* @__PURE__ */ jsx96(
|
|
8562
8446
|
Checkbox9,
|
|
8563
8447
|
{
|
|
8564
8448
|
id: sortItem.key,
|
|
@@ -8566,7 +8450,7 @@ var FilterDropdown = ({
|
|
|
8566
8450
|
checked: filterValues.includes(sortItem.key)
|
|
8567
8451
|
}
|
|
8568
8452
|
),
|
|
8569
|
-
/* @__PURE__ */
|
|
8453
|
+
/* @__PURE__ */ jsx96("div", { className: "text-[15px] font-normal leading-tight", children: sortItem.value })
|
|
8570
8454
|
]
|
|
8571
8455
|
},
|
|
8572
8456
|
sortItem.key
|
|
@@ -8588,18 +8472,18 @@ import {
|
|
|
8588
8472
|
CarouselNext,
|
|
8589
8473
|
CarouselPrevious
|
|
8590
8474
|
} from "@geowiki/design-system";
|
|
8591
|
-
import { jsx as
|
|
8475
|
+
import { jsx as jsx97, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8592
8476
|
var DesignTestimonials = ({ testimonials }) => {
|
|
8593
|
-
return /* @__PURE__ */
|
|
8477
|
+
return /* @__PURE__ */ jsx97(
|
|
8594
8478
|
"div",
|
|
8595
8479
|
{
|
|
8596
8480
|
className: "bg-accent-secondary py-8 lg:py-16 px-8 rounded-xl mt-8 lg:mt-24",
|
|
8597
8481
|
"data-component": "DesignTestimonials",
|
|
8598
|
-
children: /* @__PURE__ */
|
|
8599
|
-
/* @__PURE__ */
|
|
8600
|
-
/* @__PURE__ */
|
|
8601
|
-
/* @__PURE__ */
|
|
8602
|
-
/* @__PURE__ */
|
|
8482
|
+
children: /* @__PURE__ */ jsxs82(Carousel4, { className: "container mx-auto w-full", loop: true, children: [
|
|
8483
|
+
/* @__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: [
|
|
8484
|
+
/* @__PURE__ */ jsx97(H7Design, { className: "text-center mx-auto max-w-7xl", children: testimonial.info }),
|
|
8485
|
+
/* @__PURE__ */ jsxs82("div", { className: "flex flex-col justify-between items-center space-y-6 pt-6", children: [
|
|
8486
|
+
/* @__PURE__ */ jsx97(Avatar2, { className: "w-[76px] h-[76px]", children: /* @__PURE__ */ jsx97(
|
|
8603
8487
|
CmsImage,
|
|
8604
8488
|
{
|
|
8605
8489
|
src: testimonial.imagePath,
|
|
@@ -8608,14 +8492,14 @@ var DesignTestimonials = ({ testimonials }) => {
|
|
|
8608
8492
|
className: "object-cover"
|
|
8609
8493
|
}
|
|
8610
8494
|
) }),
|
|
8611
|
-
/* @__PURE__ */
|
|
8612
|
-
/* @__PURE__ */
|
|
8613
|
-
/* @__PURE__ */
|
|
8495
|
+
/* @__PURE__ */ jsxs82("div", { className: " text-center lg:flex items-center lg:space-x-4", children: [
|
|
8496
|
+
/* @__PURE__ */ jsx97(Body18m3, { children: testimonial.name }),
|
|
8497
|
+
/* @__PURE__ */ jsx97(Body183, { className: "pt-1 lg:pt-0", children: testimonial.position })
|
|
8614
8498
|
] })
|
|
8615
8499
|
] })
|
|
8616
8500
|
] }) }, index)) }),
|
|
8617
|
-
/* @__PURE__ */
|
|
8618
|
-
/* @__PURE__ */
|
|
8501
|
+
/* @__PURE__ */ jsx97(CarouselPrevious, { className: "-left-4" }),
|
|
8502
|
+
/* @__PURE__ */ jsx97(CarouselNext, { className: "-right-4" })
|
|
8619
8503
|
] })
|
|
8620
8504
|
}
|
|
8621
8505
|
);
|
|
@@ -8623,21 +8507,21 @@ var DesignTestimonials = ({ testimonials }) => {
|
|
|
8623
8507
|
|
|
8624
8508
|
// src/components/DesignElements/BannerFollowLinks.tsx
|
|
8625
8509
|
import { H2Design, H9Design } from "@geowiki/design-system";
|
|
8626
|
-
import Link13 from "
|
|
8627
|
-
import { v4 as
|
|
8628
|
-
import { jsx as
|
|
8510
|
+
import { Link as Link13 } from "@geowiki/core";
|
|
8511
|
+
import { v4 as v48 } from "uuid";
|
|
8512
|
+
import { jsx as jsx98, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8629
8513
|
var BannerFollowLinks = ({ title, links }) => {
|
|
8630
|
-
return /* @__PURE__ */
|
|
8631
|
-
/* @__PURE__ */
|
|
8632
|
-
/* @__PURE__ */
|
|
8514
|
+
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: [
|
|
8515
|
+
/* @__PURE__ */ jsx98(H2Design, { className: "mx-auto max-w-5xl text-center", children: title }),
|
|
8516
|
+
/* @__PURE__ */ jsx98("div", { className: "flex space-x-8", children: links.map((link) => /* @__PURE__ */ jsx98(
|
|
8633
8517
|
Link13,
|
|
8634
8518
|
{
|
|
8635
8519
|
href: link.href,
|
|
8636
8520
|
target: link.isNewTab ? "_blank" : "_self",
|
|
8637
8521
|
rel: "noreferrer",
|
|
8638
|
-
children: /* @__PURE__ */
|
|
8522
|
+
children: /* @__PURE__ */ jsx98(H9Design, { children: link.text })
|
|
8639
8523
|
},
|
|
8640
|
-
|
|
8524
|
+
v48()
|
|
8641
8525
|
)) })
|
|
8642
8526
|
] });
|
|
8643
8527
|
};
|
|
@@ -8646,14 +8530,13 @@ var BannerFollowLinks = ({ title, links }) => {
|
|
|
8646
8530
|
import { TagsGroup } from "@geowiki/design-system";
|
|
8647
8531
|
import { useConfigSettings as useConfigSettings3 } from "@geowiki/core";
|
|
8648
8532
|
import { LoaderFull as LoaderFull4 } from "@geowiki/design-system";
|
|
8649
|
-
import { jsx as
|
|
8533
|
+
import { jsx as jsx99, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8650
8534
|
var ListTagsGroup = ({ cluster }) => {
|
|
8651
8535
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
8652
8536
|
var { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = useConfigSettings3();
|
|
8653
|
-
if (IsConfigSettingsLoaded)
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
/* @__PURE__ */ jsx100(
|
|
8537
|
+
if (IsConfigSettingsLoaded) return /* @__PURE__ */ jsx99(LoaderFull4, {});
|
|
8538
|
+
return /* @__PURE__ */ jsxs84("div", { className: "space-y-6 lg:space-y-10", children: [
|
|
8539
|
+
/* @__PURE__ */ jsx99(
|
|
8657
8540
|
TagsGroup,
|
|
8658
8541
|
{
|
|
8659
8542
|
label: "Farming Systems",
|
|
@@ -8673,7 +8556,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8673
8556
|
)
|
|
8674
8557
|
}
|
|
8675
8558
|
),
|
|
8676
|
-
/* @__PURE__ */
|
|
8559
|
+
/* @__PURE__ */ jsx99(
|
|
8677
8560
|
TagsGroup,
|
|
8678
8561
|
{
|
|
8679
8562
|
label: "Main agricultural areas",
|
|
@@ -8693,7 +8576,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8693
8576
|
)
|
|
8694
8577
|
}
|
|
8695
8578
|
),
|
|
8696
|
-
/* @__PURE__ */
|
|
8579
|
+
/* @__PURE__ */ jsx99(
|
|
8697
8580
|
TagsGroup,
|
|
8698
8581
|
{
|
|
8699
8582
|
label: "Main crops",
|
|
@@ -8711,7 +8594,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8711
8594
|
)
|
|
8712
8595
|
}
|
|
8713
8596
|
),
|
|
8714
|
-
/* @__PURE__ */
|
|
8597
|
+
/* @__PURE__ */ jsx99(
|
|
8715
8598
|
TagsGroup,
|
|
8716
8599
|
{
|
|
8717
8600
|
label: "Livestock",
|
|
@@ -8729,7 +8612,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8729
8612
|
)
|
|
8730
8613
|
}
|
|
8731
8614
|
),
|
|
8732
|
-
/* @__PURE__ */
|
|
8615
|
+
/* @__PURE__ */ jsx99(
|
|
8733
8616
|
TagsGroup,
|
|
8734
8617
|
{
|
|
8735
8618
|
label: "Other landscape elements",
|
|
@@ -8756,7 +8639,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8756
8639
|
)
|
|
8757
8640
|
}
|
|
8758
8641
|
),
|
|
8759
|
-
/* @__PURE__ */
|
|
8642
|
+
/* @__PURE__ */ jsx99(
|
|
8760
8643
|
TagsGroup,
|
|
8761
8644
|
{
|
|
8762
8645
|
label: "Hunting management",
|
|
@@ -8781,7 +8664,7 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8781
8664
|
)
|
|
8782
8665
|
}
|
|
8783
8666
|
),
|
|
8784
|
-
/* @__PURE__ */
|
|
8667
|
+
/* @__PURE__ */ jsx99(
|
|
8785
8668
|
TagsGroup,
|
|
8786
8669
|
{
|
|
8787
8670
|
label: "Cluster funding",
|
|
@@ -8809,8 +8692,8 @@ var ListTagsGroup = ({ cluster }) => {
|
|
|
8809
8692
|
|
|
8810
8693
|
// src/components/DesignElements/ApiImage.tsx
|
|
8811
8694
|
import { shimmer as shimmer2, toBase64 as toBase642, useApiImage } from "@geowiki/core";
|
|
8812
|
-
import Image4 from "
|
|
8813
|
-
import { jsx as
|
|
8695
|
+
import { Image as Image4 } from "@geowiki/core";
|
|
8696
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
8814
8697
|
var ApiImage = ({
|
|
8815
8698
|
imageId,
|
|
8816
8699
|
className = "relative h-96",
|
|
@@ -8818,15 +8701,13 @@ var ApiImage = ({
|
|
|
8818
8701
|
width = 0,
|
|
8819
8702
|
height = 0
|
|
8820
8703
|
}) => {
|
|
8821
|
-
|
|
8822
|
-
if (isLoading)
|
|
8823
|
-
return null;
|
|
8704
|
+
const src = useApiImage(imageId);
|
|
8824
8705
|
if (width > 0 && height > 0) {
|
|
8825
|
-
return /* @__PURE__ */
|
|
8706
|
+
return /* @__PURE__ */ jsx100(
|
|
8826
8707
|
Image4,
|
|
8827
8708
|
{
|
|
8828
8709
|
className,
|
|
8829
|
-
src
|
|
8710
|
+
src,
|
|
8830
8711
|
alt,
|
|
8831
8712
|
placeholder: `data:image/svg+xml;base64,${toBase642(shimmer2(700, 490))}`,
|
|
8832
8713
|
width,
|
|
@@ -8836,11 +8717,11 @@ var ApiImage = ({
|
|
|
8836
8717
|
}
|
|
8837
8718
|
);
|
|
8838
8719
|
}
|
|
8839
|
-
return /* @__PURE__ */
|
|
8720
|
+
return /* @__PURE__ */ jsx100("div", { className, children: /* @__PURE__ */ jsx100(
|
|
8840
8721
|
Image4,
|
|
8841
8722
|
{
|
|
8842
8723
|
className: "object-cover rounded-xl",
|
|
8843
|
-
src
|
|
8724
|
+
src,
|
|
8844
8725
|
alt,
|
|
8845
8726
|
fill: true,
|
|
8846
8727
|
placeholder: `data:image/svg+xml;base64,${toBase642(shimmer2(700, 490))}`,
|
|
@@ -8852,39 +8733,39 @@ var ApiImage = ({
|
|
|
8852
8733
|
|
|
8853
8734
|
// src/components/DesignElements/SignUpBanner.tsx
|
|
8854
8735
|
import { H3Design, Body18 as Body184, DesignButton as DesignButton8 } from "@geowiki/design-system";
|
|
8855
|
-
import Link14 from "
|
|
8856
|
-
import { v4 as
|
|
8857
|
-
import { jsx as
|
|
8736
|
+
import { Link as Link14 } from "@geowiki/core";
|
|
8737
|
+
import { v4 as v49 } from "uuid";
|
|
8738
|
+
import { jsx as jsx101, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
8858
8739
|
var SignUpBanner = ({
|
|
8859
8740
|
title,
|
|
8860
8741
|
text,
|
|
8861
8742
|
button,
|
|
8862
8743
|
imagePaths
|
|
8863
8744
|
}) => {
|
|
8864
|
-
return /* @__PURE__ */
|
|
8745
|
+
return /* @__PURE__ */ jsx101(
|
|
8865
8746
|
"div",
|
|
8866
8747
|
{
|
|
8867
8748
|
className: "h-98 bg-accent-secondary rounded-xl ",
|
|
8868
8749
|
"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__ */
|
|
8750
|
+
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: [
|
|
8751
|
+
/* @__PURE__ */ jsxs85("div", { className: "lg:h-[368px] lg:flex lg:flex-col lg:justify-between lg:px-4 lg:items-start", children: [
|
|
8752
|
+
/* @__PURE__ */ jsx101("div", { children: /* @__PURE__ */ jsx101(H3Design, { className: "pb-4 g:pb-0", children: title }) }),
|
|
8753
|
+
/* @__PURE__ */ jsxs85("div", { className: "space-y-8", children: [
|
|
8754
|
+
/* @__PURE__ */ jsx101(Body184, { className: " max-w-sm", children: text }),
|
|
8755
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx101("div", { className: "hidden lg:block", children: /* @__PURE__ */ jsx101(
|
|
8875
8756
|
Link14,
|
|
8876
8757
|
{
|
|
8877
8758
|
href: button.link,
|
|
8878
8759
|
target: button.isNewTab ? "_blank" : "_self",
|
|
8879
8760
|
rel: "noreferrer",
|
|
8880
|
-
children: /* @__PURE__ */
|
|
8761
|
+
children: /* @__PURE__ */ jsx101(DesignButton8, { children: button.text })
|
|
8881
8762
|
}
|
|
8882
8763
|
) })
|
|
8883
8764
|
] })
|
|
8884
8765
|
] }),
|
|
8885
|
-
/* @__PURE__ */
|
|
8886
|
-
/* @__PURE__ */
|
|
8887
|
-
imagePaths.map((path) => /* @__PURE__ */
|
|
8766
|
+
/* @__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: [
|
|
8767
|
+
/* @__PURE__ */ jsx101("div", { className: "hidden lg:inline" }),
|
|
8768
|
+
imagePaths.map((path) => /* @__PURE__ */ jsx101(
|
|
8888
8769
|
CmsImage,
|
|
8889
8770
|
{
|
|
8890
8771
|
src: path,
|
|
@@ -8892,16 +8773,16 @@ var SignUpBanner = ({
|
|
|
8892
8773
|
height: 172,
|
|
8893
8774
|
className: "w-[172px] h-[172px] rounded-xl object-cover"
|
|
8894
8775
|
},
|
|
8895
|
-
|
|
8776
|
+
v49()
|
|
8896
8777
|
))
|
|
8897
8778
|
] }),
|
|
8898
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
8779
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx101("div", { className: "lg:hidden w-full", children: /* @__PURE__ */ jsx101(
|
|
8899
8780
|
Link14,
|
|
8900
8781
|
{
|
|
8901
8782
|
href: button.link,
|
|
8902
8783
|
target: button.isNewTab ? "_blank" : "_self",
|
|
8903
8784
|
rel: "noreferrer",
|
|
8904
|
-
children: /* @__PURE__ */
|
|
8785
|
+
children: /* @__PURE__ */ jsx101(DesignButton8, { className: "w-full", children: button.text })
|
|
8905
8786
|
}
|
|
8906
8787
|
) })
|
|
8907
8788
|
] })
|
|
@@ -8910,8 +8791,8 @@ var SignUpBanner = ({
|
|
|
8910
8791
|
};
|
|
8911
8792
|
|
|
8912
8793
|
// src/components/DesignElements/RoutePagination.tsx
|
|
8913
|
-
import { useRouter as useRouter7 } from "
|
|
8914
|
-
import { jsx as
|
|
8794
|
+
import { useRouter as useRouter7 } from "@geowiki/core";
|
|
8795
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
8915
8796
|
var RoutePagination = ({
|
|
8916
8797
|
pageSize,
|
|
8917
8798
|
total
|
|
@@ -8919,7 +8800,7 @@ var RoutePagination = ({
|
|
|
8919
8800
|
const router = useRouter7();
|
|
8920
8801
|
const { page } = router.query;
|
|
8921
8802
|
const currentPage = parseInt(page) || 1;
|
|
8922
|
-
return /* @__PURE__ */
|
|
8803
|
+
return /* @__PURE__ */ jsx102("div", { children: /* @__PURE__ */ jsx102(
|
|
8923
8804
|
DesignPagination,
|
|
8924
8805
|
{
|
|
8925
8806
|
currentPage,
|
|
@@ -8938,11 +8819,11 @@ var RoutePagination = ({
|
|
|
8938
8819
|
|
|
8939
8820
|
// src/components/DesignElements/LanguagePopup.tsx
|
|
8940
8821
|
import { useEffect as useEffect21, useState as useState41 } from "react";
|
|
8941
|
-
import { Body20m as Body20m3, Body16 as
|
|
8822
|
+
import { Body20m as Body20m3, Body16 as Body164, DesignButton as DesignButton9 } from "@geowiki/design-system";
|
|
8942
8823
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
8943
|
-
import Link15 from "
|
|
8824
|
+
import { Link as Link15 } from "@geowiki/core";
|
|
8944
8825
|
import { getCookie as getCookie3, setCookie as setCookie2 } from "cookies-next";
|
|
8945
|
-
import { jsx as
|
|
8826
|
+
import { jsx as jsx103, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8946
8827
|
var cookieName2 = "recodo_language_popup";
|
|
8947
8828
|
var LanguagePopup = () => {
|
|
8948
8829
|
const [isOpen, setIsOpen] = useState41(false);
|
|
@@ -8956,14 +8837,14 @@ var LanguagePopup = () => {
|
|
|
8956
8837
|
setIsOpen(false);
|
|
8957
8838
|
setCookie2(cookieName2, "closed", { maxAge: 60 * 60 * 24 * 365 });
|
|
8958
8839
|
};
|
|
8959
|
-
return isOpen ? /* @__PURE__ */
|
|
8840
|
+
return isOpen ? /* @__PURE__ */ jsx103(
|
|
8960
8841
|
"div",
|
|
8961
8842
|
{
|
|
8962
8843
|
className: "fixed bottom-0 right-0 z-50 mb-5",
|
|
8963
8844
|
"data-component": "LanguagePopup",
|
|
8964
|
-
children: /* @__PURE__ */
|
|
8965
|
-
/* @__PURE__ */
|
|
8966
|
-
/* @__PURE__ */
|
|
8845
|
+
children: /* @__PURE__ */ jsxs86("div", { className: "w-full max-w-[27rem] h-auto relative bg-accent-secondary rounded-xl p-6", children: [
|
|
8846
|
+
/* @__PURE__ */ jsxs86("div", { className: "flex justify-between items-start", children: [
|
|
8847
|
+
/* @__PURE__ */ jsx103("div", { className: " w-14 h-14 bg-white rounded-2xl flex justify-center items-center", children: /* @__PURE__ */ jsxs86(
|
|
8967
8848
|
"svg",
|
|
8968
8849
|
{
|
|
8969
8850
|
width: "33",
|
|
@@ -8972,14 +8853,14 @@ var LanguagePopup = () => {
|
|
|
8972
8853
|
fill: "none",
|
|
8973
8854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8974
8855
|
children: [
|
|
8975
|
-
/* @__PURE__ */
|
|
8856
|
+
/* @__PURE__ */ jsx103(
|
|
8976
8857
|
"path",
|
|
8977
8858
|
{
|
|
8978
8859
|
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
8860
|
fill: "#101010"
|
|
8980
8861
|
}
|
|
8981
8862
|
),
|
|
8982
|
-
/* @__PURE__ */
|
|
8863
|
+
/* @__PURE__ */ jsx103(
|
|
8983
8864
|
"path",
|
|
8984
8865
|
{
|
|
8985
8866
|
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 +8868,14 @@ var LanguagePopup = () => {
|
|
|
8987
8868
|
stroke: "white"
|
|
8988
8869
|
}
|
|
8989
8870
|
),
|
|
8990
|
-
/* @__PURE__ */
|
|
8871
|
+
/* @__PURE__ */ jsx103(
|
|
8991
8872
|
"path",
|
|
8992
8873
|
{
|
|
8993
8874
|
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
8875
|
fill: "white"
|
|
8995
8876
|
}
|
|
8996
8877
|
),
|
|
8997
|
-
/* @__PURE__ */
|
|
8878
|
+
/* @__PURE__ */ jsx103(
|
|
8998
8879
|
"path",
|
|
8999
8880
|
{
|
|
9000
8881
|
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 +8885,32 @@ var LanguagePopup = () => {
|
|
|
9004
8885
|
]
|
|
9005
8886
|
}
|
|
9006
8887
|
) }),
|
|
9007
|
-
/* @__PURE__ */
|
|
8888
|
+
/* @__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
8889
|
] }),
|
|
9009
|
-
/* @__PURE__ */
|
|
9010
|
-
/* @__PURE__ */
|
|
9011
|
-
/* @__PURE__ */
|
|
9012
|
-
/* @__PURE__ */
|
|
8890
|
+
/* @__PURE__ */ jsxs86("div", { className: "pt-4 space-y-2", children: [
|
|
8891
|
+
/* @__PURE__ */ jsx103(Body20m3, { children: "Can't see your language?" }),
|
|
8892
|
+
/* @__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." }),
|
|
8893
|
+
/* @__PURE__ */ jsx103(Body164, { className: " text-grey", children: "Our Languages page offers resources to help you learn more about translation options" })
|
|
9013
8894
|
] }),
|
|
9014
|
-
/* @__PURE__ */
|
|
8895
|
+
/* @__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
8896
|
] })
|
|
9016
8897
|
}
|
|
9017
8898
|
) : null;
|
|
9018
8899
|
};
|
|
9019
8900
|
|
|
9020
8901
|
// src/components/DesignElements/MobileFilterPopup.tsx
|
|
9021
|
-
import { Fragment as
|
|
9022
|
-
import { Dialog as
|
|
9023
|
-
import { XMarkIcon as
|
|
8902
|
+
import { Fragment as Fragment25 } from "react";
|
|
8903
|
+
import { Dialog as Dialog19, Transition as Transition6 } from "@headlessui/react";
|
|
8904
|
+
import { XMarkIcon as XMarkIcon5 } from "@heroicons/react/24/outline";
|
|
9024
8905
|
import { useState as useState42 } from "react";
|
|
9025
8906
|
|
|
9026
8907
|
// src/components/DesignElements/MobileFilterPopupOpened.tsx
|
|
9027
|
-
import { Fragment as
|
|
9028
|
-
import { Dialog as
|
|
8908
|
+
import { Fragment as Fragment24 } from "react";
|
|
8909
|
+
import { Dialog as Dialog18, Transition as Transition5 } from "@headlessui/react";
|
|
9029
8910
|
import { ArrowLeftIcon, CheckIcon } from "@heroicons/react/24/outline";
|
|
9030
|
-
import { useRouter as useRouter8 } from "
|
|
9031
|
-
import { v4 as v411 } from "uuid";
|
|
8911
|
+
import { useRouter as useRouter8 } from "@geowiki/core";
|
|
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,82 +8959,85 @@ 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__ */
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
{
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
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) => {
|
|
9017
|
+
var _a;
|
|
9018
|
+
return /* @__PURE__ */ jsxs87(
|
|
9019
|
+
"div",
|
|
9020
|
+
{
|
|
9021
|
+
className: " cursor-pointer ",
|
|
9022
|
+
onClick: () => handleClick(item.value),
|
|
9023
|
+
children: [
|
|
9024
|
+
/* @__PURE__ */ jsxs87("div", { className: "flex justify-between", children: [
|
|
9025
|
+
/* @__PURE__ */ jsx104("div", { className: "pb-4 text-black text-base font-normal leading-snug", children: item.label }),
|
|
9026
|
+
checkValues.includes(item.value) && /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(
|
|
9027
|
+
CheckIcon,
|
|
9028
|
+
{
|
|
9029
|
+
className: "h-6 w-6 text-primary",
|
|
9030
|
+
"aria-hidden": "true"
|
|
9031
|
+
}
|
|
9032
|
+
) })
|
|
9033
|
+
] }),
|
|
9034
|
+
index !== list.length - 1 && /* @__PURE__ */ jsx104("div", { className: "w-full border-0 border-b border-grey-light" })
|
|
9035
|
+
]
|
|
9036
|
+
},
|
|
9037
|
+
(_a = item.value) != null ? _a : `item-${index}`
|
|
9038
|
+
);
|
|
9039
|
+
}) }),
|
|
9040
|
+
/* @__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
9041
|
] })
|
|
9159
9042
|
}
|
|
9160
9043
|
) }) })
|
|
@@ -9165,8 +9048,8 @@ function MobileFilterPopupOpened({
|
|
|
9165
9048
|
|
|
9166
9049
|
// src/components/DesignElements/MobileFilterPopup.tsx
|
|
9167
9050
|
import { DesignButton as DesignButton11 } from "@geowiki/design-system";
|
|
9168
|
-
import { useRouter as useRouter9 } from "
|
|
9169
|
-
import { jsx as
|
|
9051
|
+
import { useRouter as useRouter9 } from "@geowiki/core";
|
|
9052
|
+
import { jsx as jsx105, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
9170
9053
|
function MobileFilterPopup({
|
|
9171
9054
|
open,
|
|
9172
9055
|
setOpen,
|
|
@@ -9199,74 +9082,74 @@ function MobileFilterPopup({
|
|
|
9199
9082
|
const queryValue = router.query[routerFiltername];
|
|
9200
9083
|
return typeof queryValue === "string" ? queryValue.split(",") : Array.isArray(queryValue) ? queryValue : [];
|
|
9201
9084
|
};
|
|
9202
|
-
return /* @__PURE__ */
|
|
9203
|
-
|
|
9085
|
+
return /* @__PURE__ */ jsx105(Transition6.Root, { show: open, as: Fragment25, "data-component": "ResourceView", children: /* @__PURE__ */ jsxs88(
|
|
9086
|
+
Dialog19,
|
|
9204
9087
|
{
|
|
9205
9088
|
as: "div",
|
|
9206
9089
|
className: "relative z-10 w-full h-full",
|
|
9207
9090
|
onClose: setOpen,
|
|
9208
9091
|
children: [
|
|
9209
|
-
/* @__PURE__ */
|
|
9210
|
-
|
|
9092
|
+
/* @__PURE__ */ jsx105(
|
|
9093
|
+
Transition6.Child,
|
|
9211
9094
|
{
|
|
9212
|
-
as:
|
|
9095
|
+
as: Fragment25,
|
|
9213
9096
|
enter: "ease-out duration-300",
|
|
9214
9097
|
enterFrom: "opacity-0",
|
|
9215
9098
|
enterTo: "opacity-100",
|
|
9216
9099
|
leave: "ease-in duration-200",
|
|
9217
9100
|
leaveFrom: "opacity-100",
|
|
9218
9101
|
leaveTo: "opacity-0",
|
|
9219
|
-
children: /* @__PURE__ */
|
|
9102
|
+
children: /* @__PURE__ */ jsx105("div", { className: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
9220
9103
|
}
|
|
9221
9104
|
),
|
|
9222
|
-
/* @__PURE__ */
|
|
9223
|
-
|
|
9105
|
+
/* @__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(
|
|
9106
|
+
Transition6.Child,
|
|
9224
9107
|
{
|
|
9225
|
-
as:
|
|
9108
|
+
as: Fragment25,
|
|
9226
9109
|
enter: "ease-out duration-300",
|
|
9227
9110
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
9228
9111
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
9229
9112
|
leave: "ease-in duration-200",
|
|
9230
9113
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
9231
9114
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
9232
|
-
children: /* @__PURE__ */
|
|
9233
|
-
/* @__PURE__ */
|
|
9234
|
-
/* @__PURE__ */
|
|
9115
|
+
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: [
|
|
9116
|
+
/* @__PURE__ */ jsxs88("div", { className: "flex justify-between items-center h-auto py-2 bg-white px-5 ", children: [
|
|
9117
|
+
/* @__PURE__ */ jsxs88(
|
|
9235
9118
|
"button",
|
|
9236
9119
|
{
|
|
9237
9120
|
type: "button",
|
|
9238
9121
|
className: "w-[4.25rem] rounded-md focus:outline-none ",
|
|
9239
9122
|
onClick: () => setOpen(false),
|
|
9240
9123
|
children: [
|
|
9241
|
-
/* @__PURE__ */
|
|
9242
|
-
/* @__PURE__ */
|
|
9124
|
+
/* @__PURE__ */ jsx105("span", { className: "sr-only", children: "Close" }),
|
|
9125
|
+
/* @__PURE__ */ jsx105(XMarkIcon5, { className: "h-6 w-6", "aria-hidden": "true" })
|
|
9243
9126
|
]
|
|
9244
9127
|
}
|
|
9245
9128
|
),
|
|
9246
|
-
/* @__PURE__ */
|
|
9247
|
-
/* @__PURE__ */
|
|
9129
|
+
/* @__PURE__ */ jsx105("div", { children: name }),
|
|
9130
|
+
/* @__PURE__ */ jsx105("div", { className: "w-[4.25rem]" })
|
|
9248
9131
|
] }),
|
|
9249
|
-
/* @__PURE__ */
|
|
9250
|
-
/* @__PURE__ */
|
|
9132
|
+
/* @__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: [
|
|
9133
|
+
/* @__PURE__ */ jsxs88(
|
|
9251
9134
|
"div",
|
|
9252
9135
|
{
|
|
9253
9136
|
className: "cursor-pointer",
|
|
9254
9137
|
onClick: () => handleToggle(filter.filterName),
|
|
9255
9138
|
children: [
|
|
9256
|
-
/* @__PURE__ */
|
|
9257
|
-
/* @__PURE__ */
|
|
9258
|
-
/* @__PURE__ */
|
|
9139
|
+
/* @__PURE__ */ jsxs88("div", { className: "pb-4 text-base text-black flex justify-between font-normal leading-snug", children: [
|
|
9140
|
+
/* @__PURE__ */ jsx105("div", { className: " ", children: filter.filterName }),
|
|
9141
|
+
/* @__PURE__ */ jsx105("div", { className: " max-w-[40%] overflow-hidden text-ellipsis whitespace-nowrap", children: getSelectedItems(filter.routerFiltername).map((value) => {
|
|
9259
9142
|
const item = filter.filterItems.find(
|
|
9260
9143
|
(i) => i.value === value
|
|
9261
9144
|
);
|
|
9262
9145
|
return item ? item.label : value;
|
|
9263
9146
|
}).join(", ") })
|
|
9264
9147
|
] }),
|
|
9265
|
-
index !== filters.length - 1 && /* @__PURE__ */
|
|
9148
|
+
index !== filters.length - 1 && /* @__PURE__ */ jsx105("div", { className: "w-full border-0 border-b border-grey-light" })
|
|
9266
9149
|
]
|
|
9267
9150
|
}
|
|
9268
9151
|
),
|
|
9269
|
-
/* @__PURE__ */
|
|
9152
|
+
/* @__PURE__ */ jsx105(
|
|
9270
9153
|
MobileFilterPopupOpened,
|
|
9271
9154
|
{
|
|
9272
9155
|
open: openStates[filter.filterName],
|
|
@@ -9281,7 +9164,7 @@ function MobileFilterPopup({
|
|
|
9281
9164
|
}
|
|
9282
9165
|
)
|
|
9283
9166
|
] }, filter.filterName)) }),
|
|
9284
|
-
/* @__PURE__ */
|
|
9167
|
+
/* @__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
9168
|
] })
|
|
9286
9169
|
}
|
|
9287
9170
|
) }) })
|
|
@@ -9291,22 +9174,22 @@ function MobileFilterPopup({
|
|
|
9291
9174
|
}
|
|
9292
9175
|
|
|
9293
9176
|
// src/components/DesignElements/Link/Link.tsx
|
|
9294
|
-
import Link16 from "
|
|
9177
|
+
import { Link as Link16 } from "@geowiki/core";
|
|
9295
9178
|
import { Body18m as Body18m4 } from "@geowiki/design-system";
|
|
9296
|
-
import { jsx as
|
|
9179
|
+
import { jsx as jsx106, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
9297
9180
|
var DesignLink = ({ link, fillColor }) => {
|
|
9298
9181
|
fillColor = fillColor === void 0 ? "fill-black" : fillColor;
|
|
9299
|
-
return /* @__PURE__ */
|
|
9182
|
+
return /* @__PURE__ */ jsx106(
|
|
9300
9183
|
Link16,
|
|
9301
9184
|
{
|
|
9302
9185
|
href: link.href,
|
|
9303
9186
|
target: link.isNewTab ? "_blank" : "_self",
|
|
9304
9187
|
rel: link.isNewTab ? "noopener noreferrer" : "",
|
|
9305
9188
|
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__ */
|
|
9189
|
+
children: /* @__PURE__ */ jsxs89("div", { className: "w-full px-0 mb-4 lg:mb-6", children: [
|
|
9190
|
+
/* @__PURE__ */ jsxs89("div", { className: "w-full h-5 justify-between items-center inline-flex", children: [
|
|
9191
|
+
/* @__PURE__ */ jsx106(Body18m4, { children: link.title }),
|
|
9192
|
+
link.type === "internal" && /* @__PURE__ */ jsx106(
|
|
9310
9193
|
"svg",
|
|
9311
9194
|
{
|
|
9312
9195
|
width: "18",
|
|
@@ -9315,10 +9198,10 @@ var DesignLink = ({ link, fillColor }) => {
|
|
|
9315
9198
|
fill: "none",
|
|
9316
9199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9317
9200
|
className: `${fillColor}`,
|
|
9318
|
-
children: /* @__PURE__ */
|
|
9201
|
+
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
9202
|
}
|
|
9320
9203
|
),
|
|
9321
|
-
link.type === "external" && /* @__PURE__ */
|
|
9204
|
+
link.type === "external" && /* @__PURE__ */ jsx106(
|
|
9322
9205
|
"svg",
|
|
9323
9206
|
{
|
|
9324
9207
|
width: "18",
|
|
@@ -9327,26 +9210,26 @@ var DesignLink = ({ link, fillColor }) => {
|
|
|
9327
9210
|
fill: "none",
|
|
9328
9211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9329
9212
|
className: `-rotate-45 ${fillColor}`,
|
|
9330
|
-
children: /* @__PURE__ */
|
|
9213
|
+
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
9214
|
}
|
|
9332
9215
|
)
|
|
9333
9216
|
] }),
|
|
9334
|
-
link.description && /* @__PURE__ */
|
|
9335
|
-
link.subtitle && /* @__PURE__ */
|
|
9217
|
+
link.description && /* @__PURE__ */ jsx106("div", { className: "w-10/12 py-4 text-gray-900 text-base font-normal leading-tight", children: link.description }),
|
|
9218
|
+
link.subtitle && /* @__PURE__ */ jsx106("div", { className: "text-primary text-base font-semibold leading-tight", children: link.subtitle })
|
|
9336
9219
|
] })
|
|
9337
9220
|
}
|
|
9338
9221
|
);
|
|
9339
9222
|
};
|
|
9340
9223
|
|
|
9341
9224
|
// src/components/DesignElements/Link/ListLink.tsx
|
|
9342
|
-
import { jsx as
|
|
9225
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
9343
9226
|
var DesignListLink = ({ links, fillColor }) => {
|
|
9344
|
-
return /* @__PURE__ */
|
|
9227
|
+
return /* @__PURE__ */ jsx107("div", { className: "grid grid-cols-1 ", children: links.map((link) => /* @__PURE__ */ jsx107(DesignLink, { link, fillColor }, link.title)) });
|
|
9345
9228
|
};
|
|
9346
9229
|
|
|
9347
9230
|
// src/components/DesignElements/Link/customLink.tsx
|
|
9348
9231
|
import { Body18sb } from "@geowiki/design-system";
|
|
9349
|
-
import { jsx as
|
|
9232
|
+
import { jsx as jsx108, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
9350
9233
|
var DesignCustomLink = ({
|
|
9351
9234
|
linkText,
|
|
9352
9235
|
href,
|
|
@@ -9355,16 +9238,16 @@ var DesignCustomLink = ({
|
|
|
9355
9238
|
className
|
|
9356
9239
|
}) => {
|
|
9357
9240
|
fillColor = fillColor === void 0 ? "fill-black" : fillColor;
|
|
9358
|
-
return /* @__PURE__ */
|
|
9241
|
+
return /* @__PURE__ */ jsx108(
|
|
9359
9242
|
"a",
|
|
9360
9243
|
{
|
|
9361
9244
|
href,
|
|
9362
9245
|
target: isNewTab ? "_blank" : "_self",
|
|
9363
9246
|
rel: "noopener noreferrer",
|
|
9364
9247
|
className,
|
|
9365
|
-
children: /* @__PURE__ */
|
|
9366
|
-
/* @__PURE__ */
|
|
9367
|
-
/* @__PURE__ */
|
|
9248
|
+
children: /* @__PURE__ */ jsxs90("div", { className: "flex justify-start items-center gap-2 ", children: [
|
|
9249
|
+
/* @__PURE__ */ jsx108(Body18sb, { children: linkText }),
|
|
9250
|
+
/* @__PURE__ */ jsx108(
|
|
9368
9251
|
"svg",
|
|
9369
9252
|
{
|
|
9370
9253
|
width: "16",
|
|
@@ -9373,7 +9256,7 @@ var DesignCustomLink = ({
|
|
|
9373
9256
|
fill: "none",
|
|
9374
9257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9375
9258
|
className: `${fillColor}`,
|
|
9376
|
-
children: /* @__PURE__ */
|
|
9259
|
+
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
9260
|
}
|
|
9378
9261
|
)
|
|
9379
9262
|
] })
|
|
@@ -9381,60 +9264,37 @@ var DesignCustomLink = ({
|
|
|
9381
9264
|
);
|
|
9382
9265
|
};
|
|
9383
9266
|
|
|
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
9267
|
// src/components/DesignElements/ClusterNews/ClusterNewsItem.tsx
|
|
9408
|
-
import
|
|
9268
|
+
import { Link as Link17 } from "@geowiki/core";
|
|
9409
9269
|
import { CountryItem } from "@geowiki/design-system";
|
|
9410
|
-
import { jsx as
|
|
9270
|
+
import { jsx as jsx109, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
9411
9271
|
var ClusterNewsItem = (props) => {
|
|
9412
9272
|
var link = `/news/farmer-cluster/${props.id}`;
|
|
9413
|
-
return /* @__PURE__ */
|
|
9414
|
-
props.path && /* @__PURE__ */
|
|
9273
|
+
return /* @__PURE__ */ jsx109(Link17, { href: link, children: /* @__PURE__ */ jsxs91("div", { className: "relative flex items-start justify-start", children: [
|
|
9274
|
+
props.path && /* @__PURE__ */ jsx109(
|
|
9415
9275
|
ApiImage,
|
|
9416
9276
|
{
|
|
9417
9277
|
imageId: props.path,
|
|
9418
9278
|
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
9279
|
}
|
|
9420
9280
|
),
|
|
9421
|
-
/* @__PURE__ */
|
|
9422
|
-
/* @__PURE__ */
|
|
9423
|
-
/* @__PURE__ */
|
|
9281
|
+
/* @__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" }) }),
|
|
9282
|
+
/* @__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: [
|
|
9283
|
+
/* @__PURE__ */ jsxs91("div", { className: "text-base font-normal flex items-center justify-center gap-3 leading-[120%]", children: [
|
|
9424
9284
|
formatDate(props.time.toString(), "short"),
|
|
9425
|
-
/* @__PURE__ */
|
|
9285
|
+
/* @__PURE__ */ jsx109("div", { className: " font-medium ", children: props.username })
|
|
9426
9286
|
] }),
|
|
9427
|
-
/* @__PURE__ */
|
|
9428
|
-
/* @__PURE__ */
|
|
9287
|
+
/* @__PURE__ */ jsx109("div", { className: "text-[1.375rem] font-semibold", children: /* @__PURE__ */ jsx109("div", { className: "line-clamp-3 leading-[120%]", children: props.title }) }),
|
|
9288
|
+
/* @__PURE__ */ jsx109("div", { className: "text-base font-medium leading-[120%]", children: props.clusterName })
|
|
9429
9289
|
] })
|
|
9430
9290
|
] }) });
|
|
9431
9291
|
};
|
|
9432
9292
|
|
|
9433
9293
|
// src/components/DesignElements/ClusterNews/ClusterNewsList.tsx
|
|
9434
|
-
import { v4 as
|
|
9435
|
-
import { jsx as
|
|
9294
|
+
import { v4 as v410 } from "uuid";
|
|
9295
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9436
9296
|
var ClusterNewsList = ({ clusterNewsItems }) => {
|
|
9437
|
-
return /* @__PURE__ */
|
|
9297
|
+
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
9298
|
ClusterNewsItem,
|
|
9439
9299
|
{
|
|
9440
9300
|
id: clusterNewsItem.id,
|
|
@@ -9445,16 +9305,16 @@ var ClusterNewsList = ({ clusterNewsItems }) => {
|
|
|
9445
9305
|
clusterCountry: clusterNewsItem.clusterCountry,
|
|
9446
9306
|
path: clusterNewsItem.path
|
|
9447
9307
|
},
|
|
9448
|
-
|
|
9308
|
+
v410()
|
|
9449
9309
|
)) }) });
|
|
9450
9310
|
};
|
|
9451
9311
|
|
|
9452
9312
|
// src/components/DesignElements/ClusterNews/ClusterStoryItem.tsx
|
|
9453
9313
|
import { H4Design } from "@geowiki/design-system";
|
|
9454
9314
|
import { useClusterNews } from "@geowiki/core";
|
|
9455
|
-
import { v4 as
|
|
9315
|
+
import { v4 as v411 } from "uuid";
|
|
9456
9316
|
import { Body18 as Body185, Body18m as Body18m5 } from "@geowiki/design-system";
|
|
9457
|
-
import { jsx as
|
|
9317
|
+
import { jsx as jsx111, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9458
9318
|
var ClusterStoryItem = (props) => {
|
|
9459
9319
|
var _a, _b;
|
|
9460
9320
|
const { data: clusterNews, isLoading } = useClusterNews(props.clusterId);
|
|
@@ -9473,7 +9333,7 @@ var ClusterStoryItem = (props) => {
|
|
|
9473
9333
|
}
|
|
9474
9334
|
const clusterNewsItems = clusterNewsDisplay == null ? void 0 : clusterNewsDisplay.slice(0, 3).map((clusterNewsItem) => {
|
|
9475
9335
|
return {
|
|
9476
|
-
key:
|
|
9336
|
+
key: v411(),
|
|
9477
9337
|
id: clusterNewsItem.id,
|
|
9478
9338
|
title: clusterNewsItem.title,
|
|
9479
9339
|
clusterName: props.ClusterName,
|
|
@@ -9483,11 +9343,11 @@ var ClusterStoryItem = (props) => {
|
|
|
9483
9343
|
path: clusterNewsItem.imageId === "00000000-0000-0000-0000-000000000000" ? "/assets/img/noImage.png" : clusterNewsItem.imageId
|
|
9484
9344
|
};
|
|
9485
9345
|
});
|
|
9486
|
-
return /* @__PURE__ */
|
|
9487
|
-
/* @__PURE__ */
|
|
9488
|
-
/* @__PURE__ */
|
|
9489
|
-
/* @__PURE__ */
|
|
9490
|
-
/* @__PURE__ */
|
|
9346
|
+
return /* @__PURE__ */ jsxs92("div", { className: " w-full h-full relative bg-white", children: [
|
|
9347
|
+
/* @__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: [
|
|
9348
|
+
/* @__PURE__ */ jsxs92("div", { className: "flex justify-center items-center gap-4 text-[.9375rem] lg:text-lg leading-[130%]", children: [
|
|
9349
|
+
/* @__PURE__ */ jsxs92("div", { className: "flex justify-start items-center gap-1", children: [
|
|
9350
|
+
/* @__PURE__ */ jsx111(
|
|
9491
9351
|
"svg",
|
|
9492
9352
|
{
|
|
9493
9353
|
width: "24",
|
|
@@ -9496,27 +9356,27 @@ var ClusterStoryItem = (props) => {
|
|
|
9496
9356
|
fill: "rgb(89,173,49)",
|
|
9497
9357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9498
9358
|
className: "w-5 h-5 ",
|
|
9499
|
-
children: /* @__PURE__ */
|
|
9359
|
+
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
9360
|
}
|
|
9501
9361
|
),
|
|
9502
|
-
/* @__PURE__ */
|
|
9362
|
+
/* @__PURE__ */ jsx111(Body185, { children: props.ClusterCountry })
|
|
9503
9363
|
] }),
|
|
9504
|
-
/* @__PURE__ */
|
|
9364
|
+
/* @__PURE__ */ jsx111(Body185, { className: "text-black ", children: formatDate(props.NewsCreationTime, "long") })
|
|
9505
9365
|
] }),
|
|
9506
|
-
/* @__PURE__ */
|
|
9507
|
-
/* @__PURE__ */
|
|
9508
|
-
/* @__PURE__ */
|
|
9509
|
-
/* @__PURE__ */
|
|
9366
|
+
/* @__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 }),
|
|
9367
|
+
/* @__PURE__ */ jsxs92("div", { className: " flex flex-wrap justify-start items-start gap-2", children: [
|
|
9368
|
+
/* @__PURE__ */ jsx111(Body18m5, { className: "text-black", children: props.UserName }),
|
|
9369
|
+
/* @__PURE__ */ jsx111("div", { className: "text-primary", children: /* @__PURE__ */ jsx111("a", { href: `/cluster/view/${props.clusterId}`, children: /* @__PURE__ */ jsx111(Body18m5, { children: props.ClusterName }) }) })
|
|
9510
9370
|
] })
|
|
9511
9371
|
] }) }),
|
|
9512
|
-
/* @__PURE__ */
|
|
9372
|
+
/* @__PURE__ */ jsx111("div", { className: "w-full relative rounded-xl", style: { marginTop: "4.5%" }, children: /* @__PURE__ */ jsx111(
|
|
9513
9373
|
ApiImage,
|
|
9514
9374
|
{
|
|
9515
9375
|
imageId: props.NewsCoverImageId,
|
|
9516
9376
|
className: "object-cover w-full rounded-xl h-[560px]"
|
|
9517
9377
|
}
|
|
9518
9378
|
) }),
|
|
9519
|
-
/* @__PURE__ */
|
|
9379
|
+
/* @__PURE__ */ jsxs92(
|
|
9520
9380
|
"div",
|
|
9521
9381
|
{
|
|
9522
9382
|
className: "justify-center lg:ml-[25%] lg:mr-[25%]",
|
|
@@ -9525,15 +9385,15 @@ var ClusterStoryItem = (props) => {
|
|
|
9525
9385
|
marginTop: "4.5%"
|
|
9526
9386
|
},
|
|
9527
9387
|
children: [
|
|
9528
|
-
/* @__PURE__ */
|
|
9529
|
-
/* @__PURE__ */
|
|
9388
|
+
/* @__PURE__ */ jsx111("div", { className: "foreground-1 text-2xl font-normal font-family italic", children: props.NewsIntro }),
|
|
9389
|
+
/* @__PURE__ */ jsx111(
|
|
9530
9390
|
"div",
|
|
9531
9391
|
{
|
|
9532
9392
|
className: "justify-start items-start gap-6 foreground-1 font-format-0 font-family leading-normal",
|
|
9533
9393
|
style: {
|
|
9534
9394
|
marginTop: "4.5%"
|
|
9535
9395
|
},
|
|
9536
|
-
children: /* @__PURE__ */
|
|
9396
|
+
children: /* @__PURE__ */ jsx111(
|
|
9537
9397
|
HtmlView,
|
|
9538
9398
|
{
|
|
9539
9399
|
cssClass: ((_b = props.NewsContent) == null ? void 0 : _b.startsWith('<div className="ql-editor"')) ? "ql-editor" : "test",
|
|
@@ -9551,9 +9411,9 @@ var ClusterStoryItem = (props) => {
|
|
|
9551
9411
|
]
|
|
9552
9412
|
}
|
|
9553
9413
|
),
|
|
9554
|
-
!isLoading && (clusterNews == null ? void 0 : clusterNews.totalCount) > 1 && /* @__PURE__ */
|
|
9555
|
-
/* @__PURE__ */
|
|
9556
|
-
/* @__PURE__ */
|
|
9414
|
+
!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: [
|
|
9415
|
+
/* @__PURE__ */ jsx111("div", { className: "lg:flex lg:justify-between lg:items-end", children: /* @__PURE__ */ jsx111(H4Design, { children: "Explore more cluster news" }) }),
|
|
9416
|
+
/* @__PURE__ */ jsx111(
|
|
9557
9417
|
ClusterNewsList,
|
|
9558
9418
|
{
|
|
9559
9419
|
clusterNewsItems
|
|
@@ -9566,11 +9426,11 @@ var ClusterStoryItem = (props) => {
|
|
|
9566
9426
|
// src/components/DesignElements/ClusterNews/ClusterNews.tsx
|
|
9567
9427
|
import { H4Design as H4Design2 } from "@geowiki/design-system";
|
|
9568
9428
|
import { useState as useState43 } from "react";
|
|
9569
|
-
import { DesignButton as
|
|
9570
|
-
import { v4 as
|
|
9429
|
+
import { DesignButton as DesignButton12 } from "@geowiki/design-system";
|
|
9430
|
+
import { v4 as v412 } from "uuid";
|
|
9571
9431
|
import { useClusterNews as useClusterNews2 } from "@geowiki/core";
|
|
9572
9432
|
import { LocalLoader } from "@geowiki/design-system";
|
|
9573
|
-
import { Fragment as
|
|
9433
|
+
import { Fragment as Fragment26, jsx as jsx112, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
9574
9434
|
var ClusterNews = ({
|
|
9575
9435
|
clusterName,
|
|
9576
9436
|
clusterId,
|
|
@@ -9598,7 +9458,7 @@ var ClusterNews = ({
|
|
|
9598
9458
|
const clusterNewsDisplay = showAll ? currentItems : publishedItems == null ? void 0 : publishedItems.slice(0, 3);
|
|
9599
9459
|
const clusterNewsItems = clusterNewsDisplay == null ? void 0 : clusterNewsDisplay.map((clusterNewsItem) => {
|
|
9600
9460
|
return {
|
|
9601
|
-
key:
|
|
9461
|
+
key: v412(),
|
|
9602
9462
|
id: clusterNewsItem.id,
|
|
9603
9463
|
title: clusterNewsItem.title,
|
|
9604
9464
|
clusterName,
|
|
@@ -9608,15 +9468,13 @@ var ClusterNews = ({
|
|
|
9608
9468
|
path: clusterNewsItem.imageId === "00000000-0000-0000-0000-000000000000" ? "/assets/img/noImage.png" : clusterNewsItem.imageId
|
|
9609
9469
|
};
|
|
9610
9470
|
});
|
|
9611
|
-
if (isLoading)
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
publishedItems.length > 3 && /* @__PURE__ */ jsx114(
|
|
9619
|
-
DesignButton13,
|
|
9471
|
+
if (isLoading) return /* @__PURE__ */ jsx112(LocalLoader, {});
|
|
9472
|
+
if (publishedItems.length == 0) return null;
|
|
9473
|
+
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: [
|
|
9474
|
+
/* @__PURE__ */ jsxs93("div", { className: "lg:flex lg:justify-between lg:items-end", children: [
|
|
9475
|
+
/* @__PURE__ */ jsx112(H4Design2, { className: "pb-4 lg:pb-0", children: "Cluster News" }),
|
|
9476
|
+
publishedItems.length > 3 && /* @__PURE__ */ jsx112(
|
|
9477
|
+
DesignButton12,
|
|
9620
9478
|
{
|
|
9621
9479
|
variant: "text",
|
|
9622
9480
|
className: "h-auto p-0 text-base lg:p-0",
|
|
@@ -9625,13 +9483,13 @@ var ClusterNews = ({
|
|
|
9625
9483
|
}
|
|
9626
9484
|
)
|
|
9627
9485
|
] }),
|
|
9628
|
-
/* @__PURE__ */
|
|
9486
|
+
/* @__PURE__ */ jsx112(
|
|
9629
9487
|
ClusterNewsList,
|
|
9630
9488
|
{
|
|
9631
9489
|
clusterNewsItems
|
|
9632
9490
|
}
|
|
9633
9491
|
),
|
|
9634
|
-
showAll && /* @__PURE__ */
|
|
9492
|
+
showAll && /* @__PURE__ */ jsx112(
|
|
9635
9493
|
DesignPagination,
|
|
9636
9494
|
{
|
|
9637
9495
|
totalCount: clusterNews == null ? void 0 : clusterNews.totalCount,
|
|
@@ -9646,8 +9504,8 @@ var ClusterNews = ({
|
|
|
9646
9504
|
|
|
9647
9505
|
// src/components/DesignElements/ClusterNews/SixClusterNews.tsx
|
|
9648
9506
|
import { useNewsFromAllClusters, useClusterNewsWithId } from "@geowiki/core";
|
|
9649
|
-
import { v4 as
|
|
9650
|
-
import { jsx as
|
|
9507
|
+
import { v4 as v413 } from "uuid";
|
|
9508
|
+
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
9651
9509
|
var SixClusterNews = () => {
|
|
9652
9510
|
var _a, _b, _c;
|
|
9653
9511
|
const { data: news, isLoading } = useNewsFromAllClusters(0, 6);
|
|
@@ -9687,7 +9545,7 @@ var SixClusterNews = () => {
|
|
|
9687
9545
|
];
|
|
9688
9546
|
const clusterNews = (_a = clusterNewsArray.filter((item) => item != null).map(
|
|
9689
9547
|
(clusterNewsItem) => ({
|
|
9690
|
-
key:
|
|
9548
|
+
key: v413(),
|
|
9691
9549
|
id: clusterNewsItem.id,
|
|
9692
9550
|
title: clusterNewsItem.title,
|
|
9693
9551
|
clusterName: clusterNewsItem.clusterName,
|
|
@@ -9699,7 +9557,7 @@ var SixClusterNews = () => {
|
|
|
9699
9557
|
)) != null ? _a : [];
|
|
9700
9558
|
const firstClusterNews = (_c = (_b = news == null ? void 0 : news.items) == null ? void 0 : _b.map((clusterNewsItem) => {
|
|
9701
9559
|
return {
|
|
9702
|
-
key:
|
|
9560
|
+
key: v413(),
|
|
9703
9561
|
id: clusterNewsItem.id,
|
|
9704
9562
|
title: clusterNewsItem.title,
|
|
9705
9563
|
clusterName: clusterNewsItem.clusterName,
|
|
@@ -9711,16 +9569,16 @@ var SixClusterNews = () => {
|
|
|
9711
9569
|
})) != null ? _c : [];
|
|
9712
9570
|
const clusterNewsItems = clusterNews.length === indexArray.length ? clusterNews : firstClusterNews;
|
|
9713
9571
|
if (isLoading || isLoading0 || isLoading1 || isLoading2 || isLoading3 || isLoading4 || isLoading5) {
|
|
9714
|
-
return /* @__PURE__ */
|
|
9572
|
+
return /* @__PURE__ */ jsx113("div", { children: "Loading..." });
|
|
9715
9573
|
}
|
|
9716
|
-
return /* @__PURE__ */
|
|
9574
|
+
return /* @__PURE__ */ jsx113("div", { className: "lg:container mx-auto pt-10", children: /* @__PURE__ */ jsx113(ClusterNewsList, { clusterNewsItems }) });
|
|
9717
9575
|
};
|
|
9718
9576
|
|
|
9719
9577
|
// src/components/DesignElements/Cluster/Cluster.tsx
|
|
9720
|
-
import
|
|
9578
|
+
import { Link as Link18 } from "@geowiki/core";
|
|
9721
9579
|
import { CountryItem as CountryItem2 } from "@geowiki/design-system";
|
|
9722
9580
|
import { H9Design as H9Design2, Body16sb } from "@geowiki/design-system";
|
|
9723
|
-
import { jsx as
|
|
9581
|
+
import { jsx as jsx114, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
9724
9582
|
var Cluster = ({
|
|
9725
9583
|
title,
|
|
9726
9584
|
path,
|
|
@@ -9728,8 +9586,8 @@ var Cluster = ({
|
|
|
9728
9586
|
status,
|
|
9729
9587
|
imageId
|
|
9730
9588
|
}) => {
|
|
9731
|
-
return /* @__PURE__ */
|
|
9732
|
-
/* @__PURE__ */
|
|
9589
|
+
return /* @__PURE__ */ jsx114(Link18, { href: path, children: /* @__PURE__ */ jsxs94("div", { className: "w-full flex-col justify-start items-start inline-flex", children: [
|
|
9590
|
+
/* @__PURE__ */ jsx114(
|
|
9733
9591
|
ApiImage,
|
|
9734
9592
|
{
|
|
9735
9593
|
imageId,
|
|
@@ -9738,18 +9596,18 @@ var Cluster = ({
|
|
|
9738
9596
|
className: "w-full h-64 rounded-xl object-cover"
|
|
9739
9597
|
}
|
|
9740
9598
|
),
|
|
9741
|
-
/* @__PURE__ */
|
|
9742
|
-
country && country !== null ? /* @__PURE__ */
|
|
9743
|
-
/* @__PURE__ */
|
|
9599
|
+
/* @__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: [
|
|
9600
|
+
country && country !== null ? /* @__PURE__ */ jsx114(CountryItem2, { country }) : /* @__PURE__ */ jsx114(CountryItem2, { country: "Undefined" }),
|
|
9601
|
+
/* @__PURE__ */ jsx114(Body16sb, { className: "text-primary", children: status })
|
|
9744
9602
|
] }),
|
|
9745
|
-
/* @__PURE__ */
|
|
9603
|
+
/* @__PURE__ */ jsx114(H9Design2, { children: title })
|
|
9746
9604
|
] }) });
|
|
9747
9605
|
};
|
|
9748
9606
|
|
|
9749
9607
|
// src/components/DesignElements/Cluster/ClusterList.tsx
|
|
9750
|
-
import { jsx as
|
|
9608
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
9751
9609
|
var ClusterList = ({ clusters }) => {
|
|
9752
|
-
return /* @__PURE__ */
|
|
9610
|
+
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
9611
|
Cluster,
|
|
9754
9612
|
{
|
|
9755
9613
|
imageId: cluster.imageId,
|
|
@@ -9764,34 +9622,33 @@ var ClusterList = ({ clusters }) => {
|
|
|
9764
9622
|
|
|
9765
9623
|
// src/components/DesignElements/Cluster/H3Clusters.tsx
|
|
9766
9624
|
import { H4Design as H4Design3 } from "@geowiki/design-system";
|
|
9767
|
-
import { DesignButton as
|
|
9768
|
-
import
|
|
9769
|
-
import { v4 as
|
|
9625
|
+
import { DesignButton as DesignButton13 } from "@geowiki/design-system";
|
|
9626
|
+
import { Link as Link19 } from "@geowiki/core";
|
|
9627
|
+
import { v4 as v414 } from "uuid";
|
|
9770
9628
|
import { useCountries } from "@geowiki/core";
|
|
9771
|
-
import { jsx as
|
|
9629
|
+
import { jsx as jsx116, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
9772
9630
|
var H3Clusters = ({ clusters }) => {
|
|
9773
9631
|
const { data: countries, isLoading: isCountriesLoading } = useCountries();
|
|
9774
|
-
if (isCountriesLoading)
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
/* @__PURE__ */
|
|
9779
|
-
|
|
9780
|
-
DesignButton14,
|
|
9632
|
+
if (isCountriesLoading) return /* @__PURE__ */ jsx116("div", { children: "Loading..." });
|
|
9633
|
+
return /* @__PURE__ */ jsxs95("div", { className: "lg:container mx-auto space-y-6 lg:space-y-10 ", children: [
|
|
9634
|
+
/* @__PURE__ */ jsxs95("div", { className: "lg:flex lg:justify-between lg:items-end", children: [
|
|
9635
|
+
/* @__PURE__ */ jsx116(H4Design3, { className: "pb-4 lg:pb-0", children: "Explore other Farmer Clusters" }),
|
|
9636
|
+
/* @__PURE__ */ jsx116(
|
|
9637
|
+
DesignButton13,
|
|
9781
9638
|
{
|
|
9782
9639
|
variant: "internalLink",
|
|
9783
9640
|
className: "h-auto p-0 text-base lg:p-0",
|
|
9784
|
-
children: /* @__PURE__ */
|
|
9641
|
+
children: /* @__PURE__ */ jsx116(Link19, { href: "/page/farmer-clusters/farmer-cluster-finder", children: "View all" })
|
|
9785
9642
|
}
|
|
9786
9643
|
)
|
|
9787
9644
|
] }),
|
|
9788
|
-
/* @__PURE__ */
|
|
9645
|
+
/* @__PURE__ */ jsx116(
|
|
9789
9646
|
ClusterList,
|
|
9790
9647
|
{
|
|
9791
9648
|
clusters: clusters == null ? void 0 : clusters.slice(0, 4).map((cluster) => {
|
|
9792
9649
|
var _a;
|
|
9793
9650
|
return {
|
|
9794
|
-
key:
|
|
9651
|
+
key: v414(),
|
|
9795
9652
|
title: cluster.name,
|
|
9796
9653
|
imageId: cluster.coverImageId || "",
|
|
9797
9654
|
country: ((_a = countries == null ? void 0 : countries.find((c) => c.id === cluster.countryId)) == null ? void 0 : _a.country) || "Missing Country",
|
|
@@ -9805,10 +9662,10 @@ var H3Clusters = ({ clusters }) => {
|
|
|
9805
9662
|
};
|
|
9806
9663
|
|
|
9807
9664
|
// src/components/DesignElements/Gallery/GalleryItem.tsx
|
|
9808
|
-
import { jsx as
|
|
9665
|
+
import { jsx as jsx117, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
9809
9666
|
var GalleryItem = ({ text, id }) => {
|
|
9810
|
-
return /* @__PURE__ */
|
|
9811
|
-
/* @__PURE__ */
|
|
9667
|
+
return /* @__PURE__ */ jsxs96("div", { className: "h-[22.25rem] sm:w-auto bg-center relative flex group ", children: [
|
|
9668
|
+
/* @__PURE__ */ jsx117(
|
|
9812
9669
|
ApiImage,
|
|
9813
9670
|
{
|
|
9814
9671
|
imageId: id,
|
|
@@ -9817,7 +9674,7 @@ var GalleryItem = ({ text, id }) => {
|
|
|
9817
9674
|
className: "h-full bg-black group-hover:brightness-50 rounded-xl object-cover"
|
|
9818
9675
|
}
|
|
9819
9676
|
),
|
|
9820
|
-
/* @__PURE__ */
|
|
9677
|
+
/* @__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
9678
|
] });
|
|
9822
9679
|
};
|
|
9823
9680
|
|
|
@@ -9831,14 +9688,14 @@ import {
|
|
|
9831
9688
|
} from "@geowiki/design-system";
|
|
9832
9689
|
|
|
9833
9690
|
// src/components/DesignElements/Gallery/GalleryCarouselOpen.tsx
|
|
9834
|
-
import { Fragment as
|
|
9835
|
-
import { Dialog as
|
|
9836
|
-
import { XMarkIcon as
|
|
9691
|
+
import { Fragment as Fragment27 } from "react";
|
|
9692
|
+
import { Dialog as Dialog20, Transition as Transition7 } from "@headlessui/react";
|
|
9693
|
+
import { XMarkIcon as XMarkIcon6 } from "@heroicons/react/24/outline";
|
|
9837
9694
|
import { useState as useState44, useEffect as useEffect22 } from "react";
|
|
9838
9695
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
9839
9696
|
import { useApiImage as useApiImage2 } from "@geowiki/core";
|
|
9840
|
-
import { Body16 as
|
|
9841
|
-
import { jsx as
|
|
9697
|
+
import { Body16 as Body165 } from "@geowiki/design-system";
|
|
9698
|
+
import { jsx as jsx118, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
9842
9699
|
var GalleryCarouselOpen = ({
|
|
9843
9700
|
list,
|
|
9844
9701
|
currentPhoto,
|
|
@@ -9847,7 +9704,7 @@ var GalleryCarouselOpen = ({
|
|
|
9847
9704
|
}) => {
|
|
9848
9705
|
const [defaultPhoto, setDefaultPhoto] = useState44(currentPhoto);
|
|
9849
9706
|
const [text, setDefaultText] = useState44("");
|
|
9850
|
-
|
|
9707
|
+
const data = useApiImage2(defaultPhoto.imageId);
|
|
9851
9708
|
useEffect22(() => {
|
|
9852
9709
|
setDefaultPhoto(currentPhoto);
|
|
9853
9710
|
}, [currentPhoto]);
|
|
@@ -9875,31 +9732,31 @@ var GalleryCarouselOpen = ({
|
|
|
9875
9732
|
setDefaultText(foundPhoto.text);
|
|
9876
9733
|
}
|
|
9877
9734
|
}, [defaultPhoto, list]);
|
|
9878
|
-
return /* @__PURE__ */
|
|
9879
|
-
/* @__PURE__ */
|
|
9880
|
-
|
|
9735
|
+
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: [
|
|
9736
|
+
/* @__PURE__ */ jsx118(
|
|
9737
|
+
Transition7.Child,
|
|
9881
9738
|
{
|
|
9882
|
-
as:
|
|
9739
|
+
as: Fragment27,
|
|
9883
9740
|
enter: "ease-out duration-300",
|
|
9884
9741
|
enterFrom: "opacity-0",
|
|
9885
9742
|
enterTo: "opacity-100",
|
|
9886
9743
|
leave: "ease-in duration-200",
|
|
9887
9744
|
leaveFrom: "opacity-100",
|
|
9888
9745
|
leaveTo: "opacity-0",
|
|
9889
|
-
children: /* @__PURE__ */
|
|
9746
|
+
children: /* @__PURE__ */ jsx118("div", { className: "fixed inset-0 bg-black bg-opacity-90 transition-opacity" })
|
|
9890
9747
|
}
|
|
9891
9748
|
),
|
|
9892
|
-
/* @__PURE__ */
|
|
9893
|
-
/* @__PURE__ */
|
|
9749
|
+
/* @__PURE__ */ jsx118(Dialog20.Panel, { className: "relative ", children: /* @__PURE__ */ jsxs97("div", { className: "fixed inset-0 flex items-center justify-between", children: [
|
|
9750
|
+
/* @__PURE__ */ jsx118("div", { className: "absolute top-0 right-0 pt-4 pr-4 z-40", children: /* @__PURE__ */ jsxs97(
|
|
9894
9751
|
"button",
|
|
9895
9752
|
{
|
|
9896
9753
|
type: "button",
|
|
9897
9754
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 ",
|
|
9898
9755
|
onClick: () => setOpen(false),
|
|
9899
9756
|
children: [
|
|
9900
|
-
/* @__PURE__ */
|
|
9901
|
-
/* @__PURE__ */
|
|
9902
|
-
|
|
9757
|
+
/* @__PURE__ */ jsx118("span", { className: "sr-only", children: "Close" }),
|
|
9758
|
+
/* @__PURE__ */ jsx118(
|
|
9759
|
+
XMarkIcon6,
|
|
9903
9760
|
{
|
|
9904
9761
|
className: "h-4 w-4 lg:h-6 lg:w-6 text-white",
|
|
9905
9762
|
"aria-hidden": "true"
|
|
@@ -9908,18 +9765,18 @@ var GalleryCarouselOpen = ({
|
|
|
9908
9765
|
]
|
|
9909
9766
|
}
|
|
9910
9767
|
) }),
|
|
9911
|
-
/* @__PURE__ */
|
|
9912
|
-
/* @__PURE__ */
|
|
9768
|
+
/* @__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: [
|
|
9769
|
+
/* @__PURE__ */ jsx118(
|
|
9913
9770
|
"button",
|
|
9914
9771
|
{
|
|
9915
9772
|
type: "button",
|
|
9916
9773
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40 ",
|
|
9917
9774
|
onClick: handlePrevious,
|
|
9918
|
-
children: /* @__PURE__ */
|
|
9775
|
+
children: /* @__PURE__ */ jsx118(ChevronLeft, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white" })
|
|
9919
9776
|
}
|
|
9920
9777
|
),
|
|
9921
|
-
/* @__PURE__ */
|
|
9922
|
-
/* @__PURE__ */
|
|
9778
|
+
/* @__PURE__ */ jsxs97("div", { className: "w-full flex-col flex items-center justify-center", children: [
|
|
9779
|
+
/* @__PURE__ */ jsx118(
|
|
9923
9780
|
"img",
|
|
9924
9781
|
{
|
|
9925
9782
|
src: data,
|
|
@@ -9928,15 +9785,15 @@ var GalleryCarouselOpen = ({
|
|
|
9928
9785
|
className: " h-4/6 w-auto py-4"
|
|
9929
9786
|
}
|
|
9930
9787
|
),
|
|
9931
|
-
/* @__PURE__ */
|
|
9788
|
+
/* @__PURE__ */ jsx118(Body165, { className: "z-40 text-white", children: text })
|
|
9932
9789
|
] }),
|
|
9933
|
-
/* @__PURE__ */
|
|
9790
|
+
/* @__PURE__ */ jsx118(
|
|
9934
9791
|
"button",
|
|
9935
9792
|
{
|
|
9936
9793
|
type: "button",
|
|
9937
9794
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40",
|
|
9938
9795
|
onClick: handleNext,
|
|
9939
|
-
children: /* @__PURE__ */
|
|
9796
|
+
children: /* @__PURE__ */ jsx118(ChevronRight, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white" })
|
|
9940
9797
|
}
|
|
9941
9798
|
)
|
|
9942
9799
|
] }) })
|
|
@@ -9946,7 +9803,7 @@ var GalleryCarouselOpen = ({
|
|
|
9946
9803
|
|
|
9947
9804
|
// src/components/DesignElements/Gallery/GalleryItemList.tsx
|
|
9948
9805
|
import { useState as useState45 } from "react";
|
|
9949
|
-
import { jsx as
|
|
9806
|
+
import { jsx as jsx119, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
9950
9807
|
var GalleryItemList = ({ galleryItems }) => {
|
|
9951
9808
|
const [open, setOpen] = useState45(false);
|
|
9952
9809
|
const [selectedItemId, setSelectedItemId] = useState45("");
|
|
@@ -9954,20 +9811,20 @@ var GalleryItemList = ({ galleryItems }) => {
|
|
|
9954
9811
|
setOpen(true);
|
|
9955
9812
|
setSelectedItemId(id);
|
|
9956
9813
|
};
|
|
9957
|
-
return /* @__PURE__ */
|
|
9958
|
-
/* @__PURE__ */
|
|
9959
|
-
/* @__PURE__ */
|
|
9814
|
+
return /* @__PURE__ */ jsxs98("div", { children: [
|
|
9815
|
+
/* @__PURE__ */ jsxs98(Carousel5, { className: "w-full px-8", children: [
|
|
9816
|
+
/* @__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
9817
|
"div",
|
|
9961
9818
|
{
|
|
9962
9819
|
className: "flex aspect-square items-center justify-center cursor-pointer",
|
|
9963
9820
|
onClick: () => handleOpenGallery(galleryItem.id),
|
|
9964
|
-
children: /* @__PURE__ */
|
|
9821
|
+
children: /* @__PURE__ */ jsx119(GalleryItem, { text: galleryItem.text, id: galleryItem.id })
|
|
9965
9822
|
}
|
|
9966
9823
|
) }) }, index)) }),
|
|
9967
|
-
/* @__PURE__ */
|
|
9968
|
-
/* @__PURE__ */
|
|
9824
|
+
/* @__PURE__ */ jsx119(CarouselPrevious2, {}),
|
|
9825
|
+
/* @__PURE__ */ jsx119(CarouselNext2, {})
|
|
9969
9826
|
] }),
|
|
9970
|
-
/* @__PURE__ */
|
|
9827
|
+
/* @__PURE__ */ jsx119(
|
|
9971
9828
|
GalleryCarouselOpen,
|
|
9972
9829
|
{
|
|
9973
9830
|
currentPhoto: { imageId: selectedItemId },
|
|
@@ -9983,9 +9840,9 @@ var GalleryItemList = ({ galleryItems }) => {
|
|
|
9983
9840
|
};
|
|
9984
9841
|
|
|
9985
9842
|
// src/components/DesignElements/NewsArticle/NewsArticleList.tsx
|
|
9986
|
-
import { jsx as
|
|
9843
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
9987
9844
|
var NewsArticleList = ({ newsArticles }) => {
|
|
9988
|
-
return /* @__PURE__ */
|
|
9845
|
+
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
9846
|
NewsArticle,
|
|
9990
9847
|
{
|
|
9991
9848
|
title: newsArticle.title,
|
|
@@ -10001,12 +9858,12 @@ var NewsArticleList = ({ newsArticles }) => {
|
|
|
10001
9858
|
};
|
|
10002
9859
|
|
|
10003
9860
|
// src/components/DesignElements/OpenPins/bioBlitzObservation.tsx
|
|
10004
|
-
import Image5 from "
|
|
10005
|
-
import { jsx as
|
|
9861
|
+
import { Image as Image5 } from "@geowiki/core";
|
|
9862
|
+
import { jsx as jsx121, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
10006
9863
|
var BIO_BLITZ_LINK_COLOR = "#59AD31";
|
|
10007
9864
|
var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
10008
|
-
return /* @__PURE__ */
|
|
10009
|
-
bioBlitzObservation.path && /* @__PURE__ */
|
|
9865
|
+
return /* @__PURE__ */ jsxs99("div", { className: "w-[230px] relative bg-white overflow-hidden rounded-3xl", children: [
|
|
9866
|
+
bioBlitzObservation.path && /* @__PURE__ */ jsx121(
|
|
10010
9867
|
Image5,
|
|
10011
9868
|
{
|
|
10012
9869
|
alt: "",
|
|
@@ -10016,14 +9873,14 @@ var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
|
10016
9873
|
className: "w-[230px] h-[150px] rounded-tl-3xl rounded-tr-3xl object-cover"
|
|
10017
9874
|
}
|
|
10018
9875
|
),
|
|
10019
|
-
/* @__PURE__ */
|
|
10020
|
-
/* @__PURE__ */
|
|
10021
|
-
/* @__PURE__ */
|
|
10022
|
-
/* @__PURE__ */
|
|
9876
|
+
/* @__PURE__ */ jsxs99("div", { className: "p-4 space-y-1 whitespace-normal overflow-hidden break-words", children: [
|
|
9877
|
+
/* @__PURE__ */ jsx121("div", { className: "text-lg font-medium leading-[130%]", children: bioBlitzObservation.title }),
|
|
9878
|
+
/* @__PURE__ */ jsx121("div", { className: "text-base font-normal italic leading-[130%]", children: bioBlitzObservation.taxonomicName }),
|
|
9879
|
+
/* @__PURE__ */ jsxs99("div", { className: "text-base font-normal leading-[130%]", children: [
|
|
10023
9880
|
"Observed on ",
|
|
10024
9881
|
bioBlitzObservation.date
|
|
10025
9882
|
] }),
|
|
10026
|
-
/* @__PURE__ */
|
|
9883
|
+
/* @__PURE__ */ jsx121(
|
|
10027
9884
|
"a",
|
|
10028
9885
|
{
|
|
10029
9886
|
href: bioBlitzObservation.link,
|
|
@@ -10039,21 +9896,21 @@ var BioBlitzObservationPin = ({ bioBlitzObservation }) => {
|
|
|
10039
9896
|
};
|
|
10040
9897
|
|
|
10041
9898
|
// src/components/DesignElements/OpenPins/farmerClusterPins.tsx
|
|
10042
|
-
import { DesignButton as
|
|
9899
|
+
import { DesignButton as DesignButton14 } from "@geowiki/design-system";
|
|
10043
9900
|
import { Body18m as Body18m6, Body14 as Body142 } from "@geowiki/design-system";
|
|
10044
|
-
import Image6 from "
|
|
10045
|
-
import
|
|
10046
|
-
import { jsx as
|
|
9901
|
+
import { Image as Image6 } from "@geowiki/core";
|
|
9902
|
+
import { Link as Link20 } from "@geowiki/core";
|
|
9903
|
+
import { jsx as jsx122, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
10047
9904
|
var DesignFarmerClusterPin = ({
|
|
10048
9905
|
farmerCluster,
|
|
10049
9906
|
buttonText
|
|
10050
9907
|
}) => {
|
|
10051
|
-
return /* @__PURE__ */
|
|
10052
|
-
/* @__PURE__ */
|
|
10053
|
-
/* @__PURE__ */
|
|
10054
|
-
/* @__PURE__ */
|
|
10055
|
-
/* @__PURE__ */
|
|
10056
|
-
|
|
9908
|
+
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: [
|
|
9909
|
+
/* @__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: [
|
|
9910
|
+
/* @__PURE__ */ jsx122(Body18m6, { children: farmerCluster.title }),
|
|
9911
|
+
/* @__PURE__ */ jsx122(Body142, { className: "line-clamp-3", children: farmerCluster.description }),
|
|
9912
|
+
/* @__PURE__ */ jsx122(Link20, { href: farmerCluster.viewUrl, className: "internal-link ", children: /* @__PURE__ */ jsx122(
|
|
9913
|
+
DesignButton14,
|
|
10057
9914
|
{
|
|
10058
9915
|
variant: "internalLink",
|
|
10059
9916
|
className: "h-auto p-0 text-base lg:p-0",
|
|
@@ -10061,7 +9918,7 @@ var DesignFarmerClusterPin = ({
|
|
|
10061
9918
|
}
|
|
10062
9919
|
) })
|
|
10063
9920
|
] }),
|
|
10064
|
-
/* @__PURE__ */
|
|
9921
|
+
/* @__PURE__ */ jsx122("div", { className: "relative", children: /* @__PURE__ */ jsx122(
|
|
10065
9922
|
Image6,
|
|
10066
9923
|
{
|
|
10067
9924
|
alt: "",
|
|
@@ -10076,28 +9933,28 @@ var DesignFarmerClusterPin = ({
|
|
|
10076
9933
|
|
|
10077
9934
|
// src/components/DesignElements/HeadingTextBlocks/LandingTitleBodyButton.tsx
|
|
10078
9935
|
import { LandingTitle, Body18 as Body186 } from "@geowiki/design-system";
|
|
10079
|
-
import { DesignButton as
|
|
10080
|
-
import
|
|
10081
|
-
import { jsx as
|
|
9936
|
+
import { DesignButton as DesignButton15 } from "@geowiki/design-system";
|
|
9937
|
+
import { Link as Link21 } from "@geowiki/core";
|
|
9938
|
+
import { jsx as jsx123, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
10082
9939
|
var LandingTitleBodyButton = ({ title, textBody, button }) => {
|
|
10083
9940
|
const isNeedParse = /<em>(.*?)<\/em>/g.test(title);
|
|
10084
|
-
return /* @__PURE__ */
|
|
10085
|
-
isNeedParse && /* @__PURE__ */
|
|
9941
|
+
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: [
|
|
9942
|
+
isNeedParse && /* @__PURE__ */ jsx123(
|
|
10086
9943
|
HtmlView,
|
|
10087
9944
|
{
|
|
10088
9945
|
cssClass: "m-0",
|
|
10089
9946
|
html: parseTitle(title, "LandingTitle")
|
|
10090
9947
|
}
|
|
10091
9948
|
),
|
|
10092
|
-
!isNeedParse && /* @__PURE__ */
|
|
10093
|
-
/* @__PURE__ */
|
|
10094
|
-
button.text && button.link && /* @__PURE__ */
|
|
10095
|
-
|
|
9949
|
+
!isNeedParse && /* @__PURE__ */ jsx123(LandingTitle, { children: title }),
|
|
9950
|
+
/* @__PURE__ */ jsx123(Body186, { children: textBody }),
|
|
9951
|
+
button.text && button.link && /* @__PURE__ */ jsx123("div", { children: /* @__PURE__ */ jsx123(
|
|
9952
|
+
Link21,
|
|
10096
9953
|
{
|
|
10097
9954
|
href: button.link,
|
|
10098
9955
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10099
9956
|
rel: "noreferrer",
|
|
10100
|
-
children: /* @__PURE__ */
|
|
9957
|
+
children: /* @__PURE__ */ jsx123(DesignButton15, { children: button.text })
|
|
10101
9958
|
}
|
|
10102
9959
|
) })
|
|
10103
9960
|
] });
|
|
@@ -10105,11 +9962,11 @@ var LandingTitleBodyButton = ({ title, textBody, button }) => {
|
|
|
10105
9962
|
|
|
10106
9963
|
// src/components/DesignElements/HeadingTextBlocks/H1BodyButton.tsx
|
|
10107
9964
|
import { H1Design } from "@geowiki/design-system";
|
|
10108
|
-
import { DesignButton as
|
|
10109
|
-
import
|
|
9965
|
+
import { DesignButton as DesignButton16 } from "@geowiki/design-system";
|
|
9966
|
+
import { Link as Link22 } from "@geowiki/core";
|
|
10110
9967
|
import { configStore as configStore2 } from "@geowiki/core";
|
|
10111
9968
|
import parse2 from "html-react-parser";
|
|
10112
|
-
import { jsx as
|
|
9969
|
+
import { jsx as jsx124, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
10113
9970
|
var HtmlView2 = (props) => {
|
|
10114
9971
|
const options = {
|
|
10115
9972
|
replace: (domNode) => {
|
|
@@ -10125,11 +9982,11 @@ var HtmlView2 = (props) => {
|
|
|
10125
9982
|
data = data.replace(match, imageHtml);
|
|
10126
9983
|
});
|
|
10127
9984
|
}
|
|
10128
|
-
return /* @__PURE__ */
|
|
9985
|
+
return /* @__PURE__ */ jsx124("span", { children: parse2(data) });
|
|
10129
9986
|
}
|
|
10130
9987
|
}
|
|
10131
9988
|
};
|
|
10132
|
-
return /* @__PURE__ */
|
|
9989
|
+
return /* @__PURE__ */ jsxs102(
|
|
10133
9990
|
"div",
|
|
10134
9991
|
{
|
|
10135
9992
|
className: props.cssClass !== void 0 && props.cssClass !== null ? props.cssClass : "m-5 ",
|
|
@@ -10152,40 +10009,40 @@ var H1BodyButton = ({
|
|
|
10152
10009
|
const modifiedText = text.replace(regex, `$1${textToAdd}`);
|
|
10153
10010
|
return modifiedText;
|
|
10154
10011
|
};
|
|
10155
|
-
return /* @__PURE__ */
|
|
10012
|
+
return /* @__PURE__ */ jsxs102(
|
|
10156
10013
|
"div",
|
|
10157
10014
|
{
|
|
10158
10015
|
className: "px-0 container mx-auto mt-6 lg:mt-10 flex justify-start",
|
|
10159
10016
|
"data-component-name": "H1BodyButton",
|
|
10160
10017
|
children: [
|
|
10161
|
-
/* @__PURE__ */
|
|
10162
|
-
/* @__PURE__ */
|
|
10163
|
-
isNeedParse && /* @__PURE__ */
|
|
10164
|
-
!isNeedParse && /* @__PURE__ */
|
|
10018
|
+
/* @__PURE__ */ jsx124("div", { className: "hidden lg:block lg:w-1/4" }),
|
|
10019
|
+
/* @__PURE__ */ jsxs102("div", { className: "w-full max-w-3xl lg:px-5", children: [
|
|
10020
|
+
isNeedParse && /* @__PURE__ */ jsx124(HtmlView2, { cssClass: "m-0", html: parseTitle(title, "H1") }),
|
|
10021
|
+
!isNeedParse && /* @__PURE__ */ jsxs102(H1Design, { children: [
|
|
10165
10022
|
title,
|
|
10166
10023
|
" "
|
|
10167
10024
|
] }),
|
|
10168
|
-
textBody && /* @__PURE__ */
|
|
10025
|
+
textBody && /* @__PURE__ */ jsx124(
|
|
10169
10026
|
HtmlView2,
|
|
10170
10027
|
{
|
|
10171
10028
|
cssClass: "m-0 text-base lg:text-lg leading-[130%] pt-4 lg:pt-6",
|
|
10172
10029
|
html: addLinksStyles(textBody)
|
|
10173
10030
|
}
|
|
10174
10031
|
),
|
|
10175
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10176
|
-
|
|
10032
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx124("div", { className: "pt-4 lg:pt-6", children: /* @__PURE__ */ jsx124(
|
|
10033
|
+
Link22,
|
|
10177
10034
|
{
|
|
10178
10035
|
href: button.link,
|
|
10179
10036
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10180
10037
|
rel: "noreferrer",
|
|
10181
|
-
children: button.isNewTab ? /* @__PURE__ */
|
|
10182
|
-
|
|
10038
|
+
children: button.isNewTab ? /* @__PURE__ */ jsx124(
|
|
10039
|
+
DesignButton16,
|
|
10183
10040
|
{
|
|
10184
10041
|
variant: "externalLink",
|
|
10185
10042
|
className: "h-auto p-0 lg:p-0",
|
|
10186
10043
|
children: button.text
|
|
10187
10044
|
}
|
|
10188
|
-
) : /* @__PURE__ */
|
|
10045
|
+
) : /* @__PURE__ */ jsx124(DesignButton16, { children: button.text })
|
|
10189
10046
|
}
|
|
10190
10047
|
) })
|
|
10191
10048
|
] })
|
|
@@ -10196,9 +10053,9 @@ var H1BodyButton = ({
|
|
|
10196
10053
|
|
|
10197
10054
|
// src/components/DesignElements/HeadingTextBlocks/H2BodyButton.tsx
|
|
10198
10055
|
import { H2Design as H2Design2, Body18 as Body187 } from "@geowiki/design-system";
|
|
10199
|
-
import { DesignButton as
|
|
10200
|
-
import
|
|
10201
|
-
import { jsx as
|
|
10056
|
+
import { DesignButton as DesignButton17 } from "@geowiki/design-system";
|
|
10057
|
+
import { Link as Link23 } from "@geowiki/core";
|
|
10058
|
+
import { jsx as jsx125, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
10202
10059
|
var H2BodyButton = ({
|
|
10203
10060
|
title,
|
|
10204
10061
|
textBody,
|
|
@@ -10213,42 +10070,42 @@ var H2BodyButton = ({
|
|
|
10213
10070
|
const modifiedText = content.replace(regex, `$1${textToAdd}`);
|
|
10214
10071
|
return modifiedText;
|
|
10215
10072
|
};
|
|
10216
|
-
return /* @__PURE__ */
|
|
10073
|
+
return /* @__PURE__ */ jsxs103(
|
|
10217
10074
|
"div",
|
|
10218
10075
|
{
|
|
10219
10076
|
className: `lg:container mx-auto flex flex-col lg:flex-row justify-between mt-6 lg:mt-20 ${bottomPadding && `lg:mb-${bottomPadding}`}`,
|
|
10220
10077
|
children: [
|
|
10221
|
-
/* @__PURE__ */
|
|
10222
|
-
/* @__PURE__ */
|
|
10223
|
-
isNeedParse && /* @__PURE__ */
|
|
10078
|
+
/* @__PURE__ */ jsx125("div", { className: "flex flex-col lg:w-[15%]", children: /* @__PURE__ */ jsx125(Body187, { children: tag }) }),
|
|
10079
|
+
/* @__PURE__ */ jsxs103("div", { className: "flex flex-col lg:w-[50%] space-y-4 lg:space-y-6 ", children: [
|
|
10080
|
+
isNeedParse && /* @__PURE__ */ jsx125(
|
|
10224
10081
|
HtmlView,
|
|
10225
10082
|
{
|
|
10226
10083
|
cssClass: "m-0 pt-2 lg:pt-0",
|
|
10227
10084
|
html: parseTitle(title, "H2")
|
|
10228
10085
|
}
|
|
10229
10086
|
),
|
|
10230
|
-
!isNeedParse && /* @__PURE__ */
|
|
10087
|
+
!isNeedParse && /* @__PURE__ */ jsxs103(H2Design2, { className: "pt-2 lg:pt-0", children: [
|
|
10231
10088
|
title,
|
|
10232
10089
|
" "
|
|
10233
10090
|
] }),
|
|
10234
|
-
/* @__PURE__ */
|
|
10091
|
+
/* @__PURE__ */ jsx125(
|
|
10235
10092
|
HtmlView,
|
|
10236
10093
|
{
|
|
10237
10094
|
cssClass: "m-0 text-base lg:text-lg leading-[130%] lg:mt-4",
|
|
10238
10095
|
html: addLinksStyles(textBody)
|
|
10239
10096
|
}
|
|
10240
10097
|
),
|
|
10241
|
-
button.text && button.link && /* @__PURE__ */
|
|
10242
|
-
|
|
10098
|
+
button.text && button.link && /* @__PURE__ */ jsx125("div", { children: /* @__PURE__ */ jsx125(
|
|
10099
|
+
Link23,
|
|
10243
10100
|
{
|
|
10244
10101
|
href: button.link,
|
|
10245
10102
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10246
10103
|
rel: "noreferrer",
|
|
10247
|
-
children: /* @__PURE__ */
|
|
10104
|
+
children: /* @__PURE__ */ jsx125(DesignButton17, { children: button.text })
|
|
10248
10105
|
}
|
|
10249
10106
|
) })
|
|
10250
10107
|
] }),
|
|
10251
|
-
/* @__PURE__ */
|
|
10108
|
+
/* @__PURE__ */ jsx125("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10252
10109
|
]
|
|
10253
10110
|
}
|
|
10254
10111
|
);
|
|
@@ -10256,7 +10113,7 @@ var H2BodyButton = ({
|
|
|
10256
10113
|
|
|
10257
10114
|
// src/components/DesignElements/HeadingTextBlocks/H1Body.tsx
|
|
10258
10115
|
import { H1Design as H1Design2 } from "@geowiki/design-system";
|
|
10259
|
-
import { jsx as
|
|
10116
|
+
import { jsx as jsx126, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
10260
10117
|
var H1Body = ({ title, textBody }) => {
|
|
10261
10118
|
const addLinksStyles = (text) => {
|
|
10262
10119
|
const textToAdd = " class='text-primary font-semibold'";
|
|
@@ -10264,12 +10121,12 @@ var H1Body = ({ title, textBody }) => {
|
|
|
10264
10121
|
const modifiedText = text.replace(regex, `$1${textToAdd}`);
|
|
10265
10122
|
return modifiedText;
|
|
10266
10123
|
};
|
|
10267
|
-
return /* @__PURE__ */
|
|
10268
|
-
/* @__PURE__ */
|
|
10124
|
+
return /* @__PURE__ */ jsxs104("div", { className: "space-y-6 pt-6 lg:pt-10", "data-component-name": "H1Body", children: [
|
|
10125
|
+
/* @__PURE__ */ jsxs104(H1Design2, { children: [
|
|
10269
10126
|
title,
|
|
10270
10127
|
" "
|
|
10271
10128
|
] }),
|
|
10272
|
-
/* @__PURE__ */
|
|
10129
|
+
/* @__PURE__ */ jsx126(
|
|
10273
10130
|
HtmlView,
|
|
10274
10131
|
{
|
|
10275
10132
|
cssClass: "m-0 text-base lg:text-lg leading-[130%]",
|
|
@@ -10281,7 +10138,7 @@ var H1Body = ({ title, textBody }) => {
|
|
|
10281
10138
|
|
|
10282
10139
|
// src/components/DesignElements/HeadingTextBlocks/H7Body.tsx
|
|
10283
10140
|
import { H7Design as H7Design2 } from "@geowiki/design-system";
|
|
10284
|
-
import { jsx as
|
|
10141
|
+
import { jsx as jsx127, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
10285
10142
|
var H7Body = ({ title, textBody }) => {
|
|
10286
10143
|
const addLinksStyles = (text) => {
|
|
10287
10144
|
const textToAdd = " class='text-primary font-semibold'";
|
|
@@ -10289,12 +10146,12 @@ var H7Body = ({ title, textBody }) => {
|
|
|
10289
10146
|
const modifiedText = text.replace(regex, `$1${textToAdd}`);
|
|
10290
10147
|
return modifiedText;
|
|
10291
10148
|
};
|
|
10292
|
-
return /* @__PURE__ */
|
|
10293
|
-
/* @__PURE__ */
|
|
10149
|
+
return /* @__PURE__ */ jsxs105("div", { className: "space-y-4 pt-6 lg:pt-12", "data-component-name": "H7Body", children: [
|
|
10150
|
+
/* @__PURE__ */ jsxs105(H7Design2, { children: [
|
|
10294
10151
|
title,
|
|
10295
10152
|
" "
|
|
10296
10153
|
] }),
|
|
10297
|
-
/* @__PURE__ */
|
|
10154
|
+
/* @__PURE__ */ jsx127(
|
|
10298
10155
|
HtmlView,
|
|
10299
10156
|
{
|
|
10300
10157
|
cssClass: "m-0 text-grey text-sm lg:text-base leading-[130%] prose max-w-full",
|
|
@@ -10305,21 +10162,21 @@ var H7Body = ({ title, textBody }) => {
|
|
|
10305
10162
|
};
|
|
10306
10163
|
|
|
10307
10164
|
// src/components/DesignElements/HeadingTextBlocks/NewsHeading.tsx
|
|
10308
|
-
import { jsx as
|
|
10165
|
+
import { jsx as jsx128, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
10309
10166
|
var NewsHeading = () => {
|
|
10310
10167
|
const title = "Global <em>Newsfeed</em>";
|
|
10311
10168
|
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__ */
|
|
10169
|
+
return /* @__PURE__ */ jsxs106(
|
|
10313
10170
|
"div",
|
|
10314
10171
|
{
|
|
10315
10172
|
className: "container mx-auto px-0 lg:px-[2rem] max-w-3xl mt-6 lg:mt-10",
|
|
10316
10173
|
"data-component-name": "NewsHeading",
|
|
10317
10174
|
children: [
|
|
10318
|
-
/* @__PURE__ */
|
|
10319
|
-
/* @__PURE__ */
|
|
10320
|
-
/* @__PURE__ */
|
|
10321
|
-
/* @__PURE__ */
|
|
10322
|
-
/* @__PURE__ */
|
|
10175
|
+
/* @__PURE__ */ jsx128(HtmlView, { cssClass: "m-0", html: parseTitle(title, "H1") }),
|
|
10176
|
+
/* @__PURE__ */ jsx128("div", { className: "pt-4 pb-4 text-base lg:text-lg leading-[130%] lg:pt-6", children: textBody }),
|
|
10177
|
+
/* @__PURE__ */ jsxs106("label", { children: [
|
|
10178
|
+
/* @__PURE__ */ jsx128("span", { className: " text-base italic lg:text-lg leading-[130%]", children: "Please consider the content disclaimer in our " }),
|
|
10179
|
+
/* @__PURE__ */ jsx128(
|
|
10323
10180
|
"a",
|
|
10324
10181
|
{
|
|
10325
10182
|
href: "/page/terms-of-use",
|
|
@@ -10327,7 +10184,7 @@ var NewsHeading = () => {
|
|
|
10327
10184
|
children: "Terms of Use"
|
|
10328
10185
|
}
|
|
10329
10186
|
),
|
|
10330
|
-
/* @__PURE__ */
|
|
10187
|
+
/* @__PURE__ */ jsx128("span", { className: " text-base italic lg:text-lg leading-[130%]", children: " regarding third party apps and websites" })
|
|
10331
10188
|
] })
|
|
10332
10189
|
]
|
|
10333
10190
|
}
|
|
@@ -10336,9 +10193,9 @@ var NewsHeading = () => {
|
|
|
10336
10193
|
|
|
10337
10194
|
// src/components/DesignElements/TextBlocks/subtitle-h3-body.tsx
|
|
10338
10195
|
import { H3Design as H3Design2, Body18 as Body188 } from "@geowiki/design-system";
|
|
10339
|
-
import { DesignButton as
|
|
10340
|
-
import
|
|
10341
|
-
import { jsx as
|
|
10196
|
+
import { DesignButton as DesignButton18 } from "@geowiki/design-system";
|
|
10197
|
+
import { Link as Link24 } from "@geowiki/core";
|
|
10198
|
+
import { jsx as jsx129, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
10342
10199
|
var SubtitleH3Body = ({
|
|
10343
10200
|
title,
|
|
10344
10201
|
subtitle,
|
|
@@ -10353,19 +10210,19 @@ var SubtitleH3Body = ({
|
|
|
10353
10210
|
const modifiedText = content2.replace(regex, `$1${textToAdd}`);
|
|
10354
10211
|
return modifiedText;
|
|
10355
10212
|
};
|
|
10356
|
-
return /* @__PURE__ */
|
|
10213
|
+
return /* @__PURE__ */ jsxs107(
|
|
10357
10214
|
"div",
|
|
10358
10215
|
{
|
|
10359
10216
|
className: `${backgroundColor ? backgroundColor : "bg-grey-lightest"} mt-6 rounded-xl lg:mt-10 `,
|
|
10360
10217
|
"data-component": "SubtitleH3Body",
|
|
10361
10218
|
id: "FRAMEwork",
|
|
10362
10219
|
children: [
|
|
10363
|
-
/* @__PURE__ */
|
|
10364
|
-
/* @__PURE__ */
|
|
10365
|
-
/* @__PURE__ */
|
|
10366
|
-
/* @__PURE__ */
|
|
10367
|
-
/* @__PURE__ */
|
|
10368
|
-
/* @__PURE__ */
|
|
10220
|
+
/* @__PURE__ */ jsx129("a", { href: "#FRAMEwork" }),
|
|
10221
|
+
/* @__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: [
|
|
10222
|
+
/* @__PURE__ */ jsx129("div", { className: "flex flex-col lg:w-[15%] ", children: /* @__PURE__ */ jsx129(Body188, { children: subtitle }) }),
|
|
10223
|
+
/* @__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: [
|
|
10224
|
+
/* @__PURE__ */ jsx129(H3Design2, { className: "pt-2 lg:pt-0", children: title }),
|
|
10225
|
+
/* @__PURE__ */ jsx129(
|
|
10369
10226
|
HtmlView,
|
|
10370
10227
|
{
|
|
10371
10228
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
@@ -10373,14 +10230,14 @@ var SubtitleH3Body = ({
|
|
|
10373
10230
|
html: addLinksStyles(content)
|
|
10374
10231
|
}
|
|
10375
10232
|
),
|
|
10376
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10377
|
-
|
|
10233
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx129(
|
|
10234
|
+
Link24,
|
|
10378
10235
|
{
|
|
10379
10236
|
href: button.link,
|
|
10380
10237
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10381
10238
|
rel: "noreferrer",
|
|
10382
|
-
children: /* @__PURE__ */
|
|
10383
|
-
|
|
10239
|
+
children: /* @__PURE__ */ jsx129(
|
|
10240
|
+
DesignButton18,
|
|
10384
10241
|
{
|
|
10385
10242
|
variant: "externalLink",
|
|
10386
10243
|
className: "h-auto p-0 flex self-start mt-6 lg:mt-10 font-medium lg:p-0",
|
|
@@ -10390,7 +10247,7 @@ var SubtitleH3Body = ({
|
|
|
10390
10247
|
}
|
|
10391
10248
|
)
|
|
10392
10249
|
] }) }),
|
|
10393
|
-
/* @__PURE__ */
|
|
10250
|
+
/* @__PURE__ */ jsx129("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10394
10251
|
] })
|
|
10395
10252
|
]
|
|
10396
10253
|
}
|
|
@@ -10399,7 +10256,7 @@ var SubtitleH3Body = ({
|
|
|
10399
10256
|
|
|
10400
10257
|
// src/components/DesignElements/TextBlocks/subtitle-h3-body-internal-link-list.tsx
|
|
10401
10258
|
import { H3Design as H3Design3, Body18 as Body189 } from "@geowiki/design-system";
|
|
10402
|
-
import { jsx as
|
|
10259
|
+
import { jsx as jsx130, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
10403
10260
|
var SubtitleH3BodyInternalLinkList = ({
|
|
10404
10261
|
title,
|
|
10405
10262
|
subtitle,
|
|
@@ -10410,34 +10267,35 @@ var SubtitleH3BodyInternalLinkList = ({
|
|
|
10410
10267
|
return text.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&").replace(/"/g, '"').replace(/'/g, "'");
|
|
10411
10268
|
};
|
|
10412
10269
|
const addLinksStyles = (content) => {
|
|
10270
|
+
if (!content) return "";
|
|
10413
10271
|
const decodedContent = decodeHtmlEntities(content);
|
|
10414
10272
|
const textToAdd = " class='text-white font-semibold no-underline'";
|
|
10415
10273
|
const regex = /(<a(?=[^>]*>))/g;
|
|
10416
|
-
const modifiedText = decodedContent
|
|
10274
|
+
const modifiedText = decodedContent.replace(regex, `$1${textToAdd}`);
|
|
10417
10275
|
return modifiedText;
|
|
10418
10276
|
};
|
|
10419
|
-
return /* @__PURE__ */
|
|
10277
|
+
return /* @__PURE__ */ jsxs108(
|
|
10420
10278
|
"div",
|
|
10421
10279
|
{
|
|
10422
10280
|
"data-component": "SubtitleH3BodyInternalLinkList",
|
|
10423
10281
|
className: "mt-6 lg:mt-10 bg-primary rounded-xl",
|
|
10424
10282
|
id: "our-resources",
|
|
10425
10283
|
children: [
|
|
10426
|
-
/* @__PURE__ */
|
|
10427
|
-
/* @__PURE__ */
|
|
10428
|
-
/* @__PURE__ */
|
|
10429
|
-
/* @__PURE__ */
|
|
10430
|
-
/* @__PURE__ */
|
|
10431
|
-
/* @__PURE__ */
|
|
10284
|
+
/* @__PURE__ */ jsx130("a", { href: "#our-resources" }),
|
|
10285
|
+
/* @__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: [
|
|
10286
|
+
/* @__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 }) }),
|
|
10287
|
+
/* @__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: [
|
|
10288
|
+
/* @__PURE__ */ jsx130(H3Design3, { children: title }),
|
|
10289
|
+
/* @__PURE__ */ jsx130(
|
|
10432
10290
|
HtmlView,
|
|
10433
10291
|
{
|
|
10434
10292
|
cssClass: "pt-4 pb-2 lg:pt-6 lg:pb-4 text-[.9375rem] text-white lg:text-lg leading-[130%] prose",
|
|
10435
10293
|
html: addLinksStyles(textBody)
|
|
10436
10294
|
}
|
|
10437
10295
|
),
|
|
10438
|
-
/* @__PURE__ */
|
|
10296
|
+
/* @__PURE__ */ jsx130(DesignListLink, { links, fillColor: "fill-white" })
|
|
10439
10297
|
] }) }),
|
|
10440
|
-
/* @__PURE__ */
|
|
10298
|
+
/* @__PURE__ */ jsx130("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10441
10299
|
] })
|
|
10442
10300
|
]
|
|
10443
10301
|
}
|
|
@@ -10446,7 +10304,7 @@ var SubtitleH3BodyInternalLinkList = ({
|
|
|
10446
10304
|
|
|
10447
10305
|
// src/components/DesignElements/TextBlocks/subtitle-h3-faq.tsx
|
|
10448
10306
|
import { H3Design as H3Design4, Body18 as Body1810 } from "@geowiki/design-system";
|
|
10449
|
-
import { jsx as
|
|
10307
|
+
import { jsx as jsx131, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
10450
10308
|
var SubtitleH3Faq = ({
|
|
10451
10309
|
title,
|
|
10452
10310
|
subtitle,
|
|
@@ -10454,25 +10312,25 @@ var SubtitleH3Faq = ({
|
|
|
10454
10312
|
faqs,
|
|
10455
10313
|
backgroundColor
|
|
10456
10314
|
}) => {
|
|
10457
|
-
return /* @__PURE__ */
|
|
10458
|
-
/* @__PURE__ */
|
|
10459
|
-
/* @__PURE__ */
|
|
10315
|
+
return /* @__PURE__ */ jsxs109("div", { id: "faq", children: [
|
|
10316
|
+
/* @__PURE__ */ jsx131("a", { href: "#faq" }),
|
|
10317
|
+
/* @__PURE__ */ jsx131(
|
|
10460
10318
|
"div",
|
|
10461
10319
|
{
|
|
10462
10320
|
className: `${backgroundColor} rounded-xl `,
|
|
10463
10321
|
"data-component": "SubtitleH3Faq",
|
|
10464
|
-
children: /* @__PURE__ */
|
|
10322
|
+
children: /* @__PURE__ */ jsxs109(
|
|
10465
10323
|
"div",
|
|
10466
10324
|
{
|
|
10467
10325
|
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
10326
|
children: [
|
|
10469
|
-
/* @__PURE__ */
|
|
10470
|
-
/* @__PURE__ */
|
|
10471
|
-
/* @__PURE__ */
|
|
10472
|
-
/* @__PURE__ */
|
|
10473
|
-
faqs && /* @__PURE__ */
|
|
10327
|
+
/* @__PURE__ */ jsx131(Body1810, { className: "w-[15%] pb-2 lg:pb-0", children: subtitle }),
|
|
10328
|
+
/* @__PURE__ */ jsxs109("div", { className: "lg:w-[50%]", children: [
|
|
10329
|
+
/* @__PURE__ */ jsx131(H3Design4, { className: "pb-4", children: title }),
|
|
10330
|
+
/* @__PURE__ */ jsx131(Body1810, { children: description }),
|
|
10331
|
+
faqs && /* @__PURE__ */ jsx131(FAQ, { faqs, backgroundColor })
|
|
10474
10332
|
] }),
|
|
10475
|
-
/* @__PURE__ */
|
|
10333
|
+
/* @__PURE__ */ jsx131("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
10476
10334
|
]
|
|
10477
10335
|
}
|
|
10478
10336
|
)
|
|
@@ -10484,10 +10342,10 @@ var SubtitleH3Faq = ({
|
|
|
10484
10342
|
// src/components/DesignElements/TextBlocks/subtitle-h3-cluster-4-column.tsx
|
|
10485
10343
|
import { H3Design as H3Design5, Body18 as Body1811 } from "@geowiki/design-system";
|
|
10486
10344
|
import { useClusters, useCountries as useCountries2 } from "@geowiki/core";
|
|
10487
|
-
import { v4 as
|
|
10488
|
-
import { DesignButton as
|
|
10489
|
-
import
|
|
10490
|
-
import { jsx as
|
|
10345
|
+
import { v4 as v415 } from "uuid";
|
|
10346
|
+
import { DesignButton as DesignButton19 } from "@geowiki/design-system";
|
|
10347
|
+
import { Link as Link25 } from "@geowiki/core";
|
|
10348
|
+
import { jsx as jsx132, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
10491
10349
|
var SubtitleH3Cluster4Column = ({
|
|
10492
10350
|
title,
|
|
10493
10351
|
subtitle,
|
|
@@ -10501,24 +10359,23 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10501
10359
|
4
|
|
10502
10360
|
);
|
|
10503
10361
|
const { data: countries, isLoading: isCountriesLoading } = useCountries2();
|
|
10504
|
-
if (isClusterLoading || isCountriesLoading)
|
|
10505
|
-
|
|
10506
|
-
return /* @__PURE__ */ jsxs111(
|
|
10362
|
+
if (isClusterLoading || isCountriesLoading) return /* @__PURE__ */ jsx132("div", { children: "Loading..." });
|
|
10363
|
+
return /* @__PURE__ */ jsxs110(
|
|
10507
10364
|
"div",
|
|
10508
10365
|
{
|
|
10509
10366
|
className: "lg:container mx-auto space-y-6 rounded-xl mt-6 lg:mt-20 lg:space-y-12",
|
|
10510
10367
|
"data-component": "SubtitleH3Cluster4Column",
|
|
10511
10368
|
children: [
|
|
10512
|
-
/* @__PURE__ */
|
|
10513
|
-
/* @__PURE__ */
|
|
10514
|
-
/* @__PURE__ */
|
|
10515
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10516
|
-
|
|
10369
|
+
/* @__PURE__ */ jsxs110("div", { className: "lg:flex lg:justify-between items-start", children: [
|
|
10370
|
+
/* @__PURE__ */ jsx132(Body1811, { children: subtitle }),
|
|
10371
|
+
/* @__PURE__ */ jsx132(H3Design5, { className: "pt-2 pb-4 lg:py-0 max-w-2xl", children: title }),
|
|
10372
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx132(
|
|
10373
|
+
DesignButton19,
|
|
10517
10374
|
{
|
|
10518
10375
|
variant: "internalLink",
|
|
10519
10376
|
className: "h-auto p-0 text-base lg:p-0",
|
|
10520
|
-
children: /* @__PURE__ */
|
|
10521
|
-
|
|
10377
|
+
children: /* @__PURE__ */ jsx132(
|
|
10378
|
+
Link25,
|
|
10522
10379
|
{
|
|
10523
10380
|
href: button.link,
|
|
10524
10381
|
target: button.isNewTab ? "_blank" : "_self",
|
|
@@ -10529,13 +10386,13 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10529
10386
|
}
|
|
10530
10387
|
)
|
|
10531
10388
|
] }),
|
|
10532
|
-
(clusters == null ? void 0 : clusters.items) !== null && (clusters == null ? void 0 : clusters.items) !== void 0 && /* @__PURE__ */
|
|
10389
|
+
(clusters == null ? void 0 : clusters.items) !== null && (clusters == null ? void 0 : clusters.items) !== void 0 && /* @__PURE__ */ jsx132(
|
|
10533
10390
|
ClusterList,
|
|
10534
10391
|
{
|
|
10535
10392
|
clusters: (_a = clusters == null ? void 0 : clusters.items) == null ? void 0 : _a.map((cluster) => {
|
|
10536
10393
|
var _a2;
|
|
10537
10394
|
return {
|
|
10538
|
-
key:
|
|
10395
|
+
key: v415(),
|
|
10539
10396
|
title: cluster.name,
|
|
10540
10397
|
imageId: cluster.coverImageId || "",
|
|
10541
10398
|
country: ((_a2 = countries == null ? void 0 : countries.find((x) => x.id === cluster.countryId)) == null ? void 0 : _a2.country) || "Missing Country",
|
|
@@ -10553,10 +10410,10 @@ var SubtitleH3Cluster4Column = ({
|
|
|
10553
10410
|
// src/components/DesignElements/TextBlocks/subtitle-h3-cluster-news-3-column.tsx
|
|
10554
10411
|
import { H3Design as H3Design6, Body18 as Body1812 } from "@geowiki/design-system";
|
|
10555
10412
|
import { useNewsFromAllClusters as useNewsFromAllClusters2 } from "@geowiki/core";
|
|
10556
|
-
import { v4 as
|
|
10557
|
-
import { DesignButton as
|
|
10558
|
-
import
|
|
10559
|
-
import { jsx as
|
|
10413
|
+
import { v4 as v416 } from "uuid";
|
|
10414
|
+
import { DesignButton as DesignButton20 } from "@geowiki/design-system";
|
|
10415
|
+
import { Link as Link26 } from "@geowiki/core";
|
|
10416
|
+
import { jsx as jsx133, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
10560
10417
|
var SubtitleH3ClusterNews3Column = ({
|
|
10561
10418
|
title,
|
|
10562
10419
|
subtitle,
|
|
@@ -10566,7 +10423,7 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10566
10423
|
const { data: news, isLoading } = useNewsFromAllClusters2(0, 3);
|
|
10567
10424
|
const clusterNewsItems = (_a = news == null ? void 0 : news.items) == null ? void 0 : _a.map((clusterNewsItem) => {
|
|
10568
10425
|
return {
|
|
10569
|
-
key:
|
|
10426
|
+
key: v416(),
|
|
10570
10427
|
id: clusterNewsItem.id,
|
|
10571
10428
|
title: clusterNewsItem.title,
|
|
10572
10429
|
clusterName: clusterNewsItem.clusterName,
|
|
@@ -10577,24 +10434,24 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10577
10434
|
};
|
|
10578
10435
|
});
|
|
10579
10436
|
if (isLoading) {
|
|
10580
|
-
return /* @__PURE__ */
|
|
10437
|
+
return /* @__PURE__ */ jsx133("div", { children: "Loading..." });
|
|
10581
10438
|
}
|
|
10582
|
-
return /* @__PURE__ */
|
|
10439
|
+
return /* @__PURE__ */ jsxs111(
|
|
10583
10440
|
"div",
|
|
10584
10441
|
{
|
|
10585
10442
|
className: "lg:container mx-auto space-y-4 rounded-xl mt-6 lg:mt-20 lg:space-y-14",
|
|
10586
10443
|
"data-component": "SubtitleH3Cluster4Column",
|
|
10587
10444
|
children: [
|
|
10588
|
-
/* @__PURE__ */
|
|
10589
|
-
/* @__PURE__ */
|
|
10590
|
-
/* @__PURE__ */
|
|
10591
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10592
|
-
|
|
10445
|
+
/* @__PURE__ */ jsxs111("div", { className: "lg:flex lg:justify-between items-start", children: [
|
|
10446
|
+
/* @__PURE__ */ jsx133(Body1812, { children: subtitle }),
|
|
10447
|
+
/* @__PURE__ */ jsx133(H3Design6, { className: "pt-2 pb-4 lg:py-0 max-w-2xl", children: title }),
|
|
10448
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx133(
|
|
10449
|
+
DesignButton20,
|
|
10593
10450
|
{
|
|
10594
10451
|
variant: "internalLink",
|
|
10595
10452
|
className: "h-auto p-0 text-base lg:p-0",
|
|
10596
|
-
children: /* @__PURE__ */
|
|
10597
|
-
|
|
10453
|
+
children: /* @__PURE__ */ jsx133(
|
|
10454
|
+
Link26,
|
|
10598
10455
|
{
|
|
10599
10456
|
href: button.link,
|
|
10600
10457
|
target: button.isNewTab ? "_blank" : "_self",
|
|
@@ -10605,7 +10462,7 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10605
10462
|
}
|
|
10606
10463
|
)
|
|
10607
10464
|
] }),
|
|
10608
|
-
/* @__PURE__ */
|
|
10465
|
+
/* @__PURE__ */ jsx133(ClusterNewsList, { clusterNewsItems })
|
|
10609
10466
|
]
|
|
10610
10467
|
}
|
|
10611
10468
|
);
|
|
@@ -10613,10 +10470,10 @@ var SubtitleH3ClusterNews3Column = ({
|
|
|
10613
10470
|
|
|
10614
10471
|
// src/components/DesignElements/TextBlocks/subtitle-h2-body-video.tsx
|
|
10615
10472
|
import { H2Design as H2Design3 } from "@geowiki/design-system";
|
|
10616
|
-
import { DesignButton as
|
|
10617
|
-
import
|
|
10618
|
-
import dynamic3 from "
|
|
10619
|
-
import { jsx as
|
|
10473
|
+
import { DesignButton as DesignButton21 } from "@geowiki/design-system";
|
|
10474
|
+
import { Link as Link27 } from "@geowiki/core";
|
|
10475
|
+
import { dynamic as dynamic3 } from "@geowiki/core";
|
|
10476
|
+
import { jsx as jsx134, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
10620
10477
|
var ReactPlayer = dynamic3(() => import("react-player"), { ssr: false });
|
|
10621
10478
|
var SubtitleH2BodyVideo = ({
|
|
10622
10479
|
title,
|
|
@@ -10630,29 +10487,29 @@ var SubtitleH2BodyVideo = ({
|
|
|
10630
10487
|
const modifiedText = content2.replace(regex, `$1${textToAdd}`);
|
|
10631
10488
|
return modifiedText;
|
|
10632
10489
|
};
|
|
10633
|
-
return /* @__PURE__ */
|
|
10490
|
+
return /* @__PURE__ */ jsx134(
|
|
10634
10491
|
"div",
|
|
10635
10492
|
{
|
|
10636
10493
|
className: "bg-grey-lightest mt-6 rounded-xl lg:mt-10",
|
|
10637
10494
|
"data-component": "SubtitleH2BodyVideo",
|
|
10638
|
-
children: /* @__PURE__ */
|
|
10639
|
-
/* @__PURE__ */
|
|
10640
|
-
/* @__PURE__ */
|
|
10641
|
-
/* @__PURE__ */
|
|
10495
|
+
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: [
|
|
10496
|
+
/* @__PURE__ */ jsxs112("div", { className: "flex flex-col leading-6 lg:w-[40%] ", children: [
|
|
10497
|
+
/* @__PURE__ */ jsx134(H2Design3, { className: "pt-2 lg:pt-0", children: title }),
|
|
10498
|
+
/* @__PURE__ */ jsx134(
|
|
10642
10499
|
HtmlView,
|
|
10643
10500
|
{
|
|
10644
10501
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
10645
10502
|
html: addLinksStyles(content)
|
|
10646
10503
|
}
|
|
10647
10504
|
),
|
|
10648
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10649
|
-
|
|
10505
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx134(
|
|
10506
|
+
Link27,
|
|
10650
10507
|
{
|
|
10651
10508
|
href: button.link,
|
|
10652
10509
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10653
10510
|
rel: "noreferrer",
|
|
10654
|
-
children: /* @__PURE__ */
|
|
10655
|
-
|
|
10511
|
+
children: /* @__PURE__ */ jsx134(
|
|
10512
|
+
DesignButton21,
|
|
10656
10513
|
{
|
|
10657
10514
|
variant: "externalLink",
|
|
10658
10515
|
className: "h-auto p-0 flex self-start mt-3 lg:mt-6 font-medium lg:p-0",
|
|
@@ -10662,7 +10519,7 @@ var SubtitleH2BodyVideo = ({
|
|
|
10662
10519
|
}
|
|
10663
10520
|
)
|
|
10664
10521
|
] }),
|
|
10665
|
-
/* @__PURE__ */
|
|
10522
|
+
/* @__PURE__ */ jsx134("div", { className: "pt-5 lg:pt-0 lg:w-[50%]", children: /* @__PURE__ */ jsx134(
|
|
10666
10523
|
ReactPlayer,
|
|
10667
10524
|
{
|
|
10668
10525
|
url: videoLink,
|
|
@@ -10678,9 +10535,9 @@ var SubtitleH2BodyVideo = ({
|
|
|
10678
10535
|
|
|
10679
10536
|
// src/components/DesignElements/TextBlocks/image-left-h3-body.tsx
|
|
10680
10537
|
import { H3Design as H3Design7 } from "@geowiki/design-system";
|
|
10681
|
-
import { DesignButton as
|
|
10682
|
-
import
|
|
10683
|
-
import { jsx as
|
|
10538
|
+
import { DesignButton as DesignButton22 } from "@geowiki/design-system";
|
|
10539
|
+
import { Link as Link28 } from "@geowiki/core";
|
|
10540
|
+
import { jsx as jsx135, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
10684
10541
|
var ImageLeftH3BodyLink = ({
|
|
10685
10542
|
title,
|
|
10686
10543
|
content,
|
|
@@ -10693,8 +10550,8 @@ var ImageLeftH3BodyLink = ({
|
|
|
10693
10550
|
const modifiedText = content2.replace(regex, `$1${textToAdd}`);
|
|
10694
10551
|
return modifiedText;
|
|
10695
10552
|
};
|
|
10696
|
-
return /* @__PURE__ */
|
|
10697
|
-
/* @__PURE__ */
|
|
10553
|
+
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: [
|
|
10554
|
+
/* @__PURE__ */ jsx135("div", { className: " hidden lg:block lg:w-1/2 ", children: /* @__PURE__ */ jsx135(
|
|
10698
10555
|
CmsImage,
|
|
10699
10556
|
{
|
|
10700
10557
|
src: path,
|
|
@@ -10704,23 +10561,23 @@ var ImageLeftH3BodyLink = ({
|
|
|
10704
10561
|
className: "rounded-xl object-cover w-[498px] h-[429px]"
|
|
10705
10562
|
}
|
|
10706
10563
|
) }),
|
|
10707
|
-
/* @__PURE__ */
|
|
10708
|
-
/* @__PURE__ */
|
|
10709
|
-
/* @__PURE__ */
|
|
10564
|
+
/* @__PURE__ */ jsxs113("div", { className: "w-full lg:w-1/2 lg: max-w-[546px] h-full flex flex-col justify-center", children: [
|
|
10565
|
+
/* @__PURE__ */ jsx135(H3Design7, { className: "pt-2 lg:pt-0", children: title }),
|
|
10566
|
+
/* @__PURE__ */ jsx135(
|
|
10710
10567
|
HtmlView,
|
|
10711
10568
|
{
|
|
10712
10569
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] ",
|
|
10713
10570
|
html: addLinksStyles(content)
|
|
10714
10571
|
}
|
|
10715
10572
|
),
|
|
10716
|
-
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */
|
|
10717
|
-
|
|
10573
|
+
(button == null ? void 0 : button.text) && (button == null ? void 0 : button.link) && /* @__PURE__ */ jsx135(
|
|
10574
|
+
Link28,
|
|
10718
10575
|
{
|
|
10719
10576
|
href: button.link,
|
|
10720
10577
|
target: button.isNewTab ? "_blank" : "_self",
|
|
10721
10578
|
rel: "noreferrer",
|
|
10722
|
-
children: /* @__PURE__ */
|
|
10723
|
-
|
|
10579
|
+
children: /* @__PURE__ */ jsx135(
|
|
10580
|
+
DesignButton22,
|
|
10724
10581
|
{
|
|
10725
10582
|
variant: "externalLink",
|
|
10726
10583
|
className: "h-auto p-0 flex self-start mt-4 lg:mt-10 font-medium lg:p-0 ",
|
|
@@ -10730,7 +10587,7 @@ var ImageLeftH3BodyLink = ({
|
|
|
10730
10587
|
}
|
|
10731
10588
|
)
|
|
10732
10589
|
] }),
|
|
10733
|
-
/* @__PURE__ */
|
|
10590
|
+
/* @__PURE__ */ jsx135("div", { className: "w-full pt-6 lg:hidden ", children: /* @__PURE__ */ jsx135(
|
|
10734
10591
|
CmsImage,
|
|
10735
10592
|
{
|
|
10736
10593
|
src: path,
|
|
@@ -10745,23 +10602,23 @@ var ImageLeftH3BodyLink = ({
|
|
|
10745
10602
|
|
|
10746
10603
|
// src/components/DesignElements/LandingPage/NewsfeedPreview.tsx
|
|
10747
10604
|
import { H3Design as H3Design8 } from "@geowiki/design-system";
|
|
10748
|
-
import { DesignButton as
|
|
10749
|
-
import
|
|
10750
|
-
import { jsx as
|
|
10605
|
+
import { DesignButton as DesignButton23 } from "@geowiki/design-system";
|
|
10606
|
+
import { Link as Link29 } from "@geowiki/core";
|
|
10607
|
+
import { jsx as jsx136, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
10751
10608
|
var NewsfeedPreview = ({ newsArticleData }) => {
|
|
10752
|
-
return /* @__PURE__ */
|
|
10753
|
-
/* @__PURE__ */
|
|
10754
|
-
/* @__PURE__ */
|
|
10755
|
-
/* @__PURE__ */
|
|
10756
|
-
|
|
10609
|
+
return /* @__PURE__ */ jsxs114("div", { className: "lg:container mx-auto space-y-6 mt-8 lg:space-y-10 lg:mt-12", children: [
|
|
10610
|
+
/* @__PURE__ */ jsxs114("div", { className: "flex justify-between items-start", children: [
|
|
10611
|
+
/* @__PURE__ */ jsx136(H3Design8, { children: "Global Newsfeed" }),
|
|
10612
|
+
/* @__PURE__ */ jsx136(
|
|
10613
|
+
DesignButton23,
|
|
10757
10614
|
{
|
|
10758
10615
|
variant: "internalLink",
|
|
10759
10616
|
className: "h-auto pb-0 px-0 lg:pb-0 lg:px-0",
|
|
10760
|
-
children: /* @__PURE__ */
|
|
10617
|
+
children: /* @__PURE__ */ jsx136(Link29, { href: "/news", children: "View all" })
|
|
10761
10618
|
}
|
|
10762
10619
|
)
|
|
10763
10620
|
] }),
|
|
10764
|
-
/* @__PURE__ */
|
|
10621
|
+
/* @__PURE__ */ jsx136(
|
|
10765
10622
|
NewsArticleList,
|
|
10766
10623
|
{
|
|
10767
10624
|
pageSize: 4,
|
|
@@ -10773,13 +10630,13 @@ var NewsfeedPreview = ({ newsArticleData }) => {
|
|
|
10773
10630
|
|
|
10774
10631
|
// src/components/DesignElements/Hero/HeroImageLeft.tsx
|
|
10775
10632
|
import { Body18 as Body1813 } from "@geowiki/design-system";
|
|
10776
|
-
import { jsx as
|
|
10633
|
+
import { jsx as jsx137, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
10777
10634
|
var HeroImageLeft = (props) => {
|
|
10778
|
-
return /* @__PURE__ */
|
|
10779
|
-
/* @__PURE__ */
|
|
10780
|
-
/* @__PURE__ */
|
|
10781
|
-
/* @__PURE__ */
|
|
10782
|
-
/* @__PURE__ */
|
|
10635
|
+
return /* @__PURE__ */ jsxs115("div", { id: "recodo", children: [
|
|
10636
|
+
/* @__PURE__ */ jsx137("a", { href: "#recodo" }),
|
|
10637
|
+
/* @__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: [
|
|
10638
|
+
/* @__PURE__ */ jsxs115("div", { className: "flex flex-col self-stretch lg:hidden", children: [
|
|
10639
|
+
/* @__PURE__ */ jsx137(
|
|
10783
10640
|
CmsImage,
|
|
10784
10641
|
{
|
|
10785
10642
|
src: props.logoPath,
|
|
@@ -10789,9 +10646,9 @@ var HeroImageLeft = (props) => {
|
|
|
10789
10646
|
className: ""
|
|
10790
10647
|
}
|
|
10791
10648
|
),
|
|
10792
|
-
/* @__PURE__ */
|
|
10649
|
+
/* @__PURE__ */ jsx137(Body1813, { className: "py-6 max-md:max-w-full", children: props.text })
|
|
10793
10650
|
] }),
|
|
10794
|
-
/* @__PURE__ */
|
|
10651
|
+
/* @__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
10652
|
CmsImage,
|
|
10796
10653
|
{
|
|
10797
10654
|
src: props.path,
|
|
@@ -10799,8 +10656,8 @@ var HeroImageLeft = (props) => {
|
|
|
10799
10656
|
className: "inset-0 w-full h-full object-cover rounded-xl "
|
|
10800
10657
|
}
|
|
10801
10658
|
) }),
|
|
10802
|
-
/* @__PURE__ */
|
|
10803
|
-
/* @__PURE__ */
|
|
10659
|
+
/* @__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: [
|
|
10660
|
+
/* @__PURE__ */ jsx137(
|
|
10804
10661
|
CmsImage,
|
|
10805
10662
|
{
|
|
10806
10663
|
src: props.logoPath,
|
|
@@ -10810,24 +10667,24 @@ var HeroImageLeft = (props) => {
|
|
|
10810
10667
|
className: ""
|
|
10811
10668
|
}
|
|
10812
10669
|
),
|
|
10813
|
-
/* @__PURE__ */
|
|
10670
|
+
/* @__PURE__ */ jsx137(Body1813, { className: "mt-7 max-md:max-w-full", children: props.text })
|
|
10814
10671
|
] }) })
|
|
10815
10672
|
] }) })
|
|
10816
10673
|
] });
|
|
10817
10674
|
};
|
|
10818
10675
|
|
|
10819
10676
|
// src/components/DesignElements/Hero/HeroImageRight.tsx
|
|
10820
|
-
import { jsx as
|
|
10677
|
+
import { jsx as jsx138, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
10821
10678
|
var HeroImageRight = (props) => {
|
|
10822
|
-
return /* @__PURE__ */
|
|
10823
|
-
/* @__PURE__ */
|
|
10679
|
+
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: [
|
|
10680
|
+
/* @__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
10681
|
H1BodyButton,
|
|
10825
10682
|
{
|
|
10826
10683
|
title: props.title,
|
|
10827
10684
|
textBody: props.description
|
|
10828
10685
|
}
|
|
10829
10686
|
) }) }),
|
|
10830
|
-
/* @__PURE__ */
|
|
10687
|
+
/* @__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
10688
|
CmsImage,
|
|
10832
10689
|
{
|
|
10833
10690
|
src: props.path,
|
|
@@ -10839,9 +10696,9 @@ var HeroImageRight = (props) => {
|
|
|
10839
10696
|
|
|
10840
10697
|
// src/components/DesignElements/Hero/ImageLeftH3Body.tsx
|
|
10841
10698
|
import { H3Design as H3Design9 } from "@geowiki/design-system";
|
|
10842
|
-
import { DesignButton as
|
|
10843
|
-
import
|
|
10844
|
-
import { jsx as
|
|
10699
|
+
import { DesignButton as DesignButton24 } from "@geowiki/design-system";
|
|
10700
|
+
import { Link as Link30 } from "@geowiki/core";
|
|
10701
|
+
import { jsx as jsx139, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
10845
10702
|
var ImageLefttH3Body = (props) => {
|
|
10846
10703
|
var _a, _b, _c, _d;
|
|
10847
10704
|
const addLinksStyles = (content) => {
|
|
@@ -10850,24 +10707,24 @@ var ImageLefttH3Body = (props) => {
|
|
|
10850
10707
|
const modifiedText = content.replace(regex, `$1${textToAdd}`);
|
|
10851
10708
|
return modifiedText;
|
|
10852
10709
|
};
|
|
10853
|
-
return /* @__PURE__ */
|
|
10854
|
-
/* @__PURE__ */
|
|
10855
|
-
/* @__PURE__ */
|
|
10856
|
-
props.text && /* @__PURE__ */
|
|
10710
|
+
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: [
|
|
10711
|
+
/* @__PURE__ */ jsxs117("div", { className: "flex flex-col self-stretch lg:hidden", children: [
|
|
10712
|
+
/* @__PURE__ */ jsx139(H3Design9, { children: props.title }),
|
|
10713
|
+
props.text && /* @__PURE__ */ jsx139(
|
|
10857
10714
|
HtmlView,
|
|
10858
10715
|
{
|
|
10859
10716
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
10860
10717
|
html: addLinksStyles(props.text)
|
|
10861
10718
|
}
|
|
10862
10719
|
),
|
|
10863
|
-
((_a = props.button) == null ? void 0 : _a.text) && ((_b = props.button) == null ? void 0 : _b.link) && /* @__PURE__ */
|
|
10864
|
-
|
|
10720
|
+
((_a = props.button) == null ? void 0 : _a.text) && ((_b = props.button) == null ? void 0 : _b.link) && /* @__PURE__ */ jsx139(
|
|
10721
|
+
Link30,
|
|
10865
10722
|
{
|
|
10866
10723
|
href: props.button.link,
|
|
10867
10724
|
target: props.button.isNewTab ? "_blank" : "_self",
|
|
10868
10725
|
rel: "noreferrer",
|
|
10869
|
-
children: /* @__PURE__ */
|
|
10870
|
-
|
|
10726
|
+
children: /* @__PURE__ */ jsx139(
|
|
10727
|
+
DesignButton24,
|
|
10871
10728
|
{
|
|
10872
10729
|
variant: props.button.isNewTab ? "externalLink" : "internalLink",
|
|
10873
10730
|
className: "h-auto p-0 flex self-start my-4 lg:mt-6 font-medium lg:p-0",
|
|
@@ -10877,7 +10734,7 @@ var ImageLefttH3Body = (props) => {
|
|
|
10877
10734
|
}
|
|
10878
10735
|
)
|
|
10879
10736
|
] }),
|
|
10880
|
-
/* @__PURE__ */
|
|
10737
|
+
/* @__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
10738
|
CmsImage,
|
|
10882
10739
|
{
|
|
10883
10740
|
src: props.imagePath,
|
|
@@ -10885,23 +10742,23 @@ var ImageLefttH3Body = (props) => {
|
|
|
10885
10742
|
className: "inset-0 w-full h-full object-cover rounded-xl "
|
|
10886
10743
|
}
|
|
10887
10744
|
) }),
|
|
10888
|
-
/* @__PURE__ */
|
|
10889
|
-
/* @__PURE__ */
|
|
10890
|
-
props.text && /* @__PURE__ */
|
|
10745
|
+
/* @__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: [
|
|
10746
|
+
/* @__PURE__ */ jsx139(H3Design9, { children: props.title }),
|
|
10747
|
+
props.text && /* @__PURE__ */ jsx139(
|
|
10891
10748
|
HtmlView,
|
|
10892
10749
|
{
|
|
10893
10750
|
cssClass: "pt-4 lg:pt-6 text-[.9375rem] lg:text-lg leading-[130%] prose",
|
|
10894
10751
|
html: addLinksStyles(props.text)
|
|
10895
10752
|
}
|
|
10896
10753
|
),
|
|
10897
|
-
((_c = props.button) == null ? void 0 : _c.text) && ((_d = props.button) == null ? void 0 : _d.link) && /* @__PURE__ */
|
|
10898
|
-
|
|
10754
|
+
((_c = props.button) == null ? void 0 : _c.text) && ((_d = props.button) == null ? void 0 : _d.link) && /* @__PURE__ */ jsx139(
|
|
10755
|
+
Link30,
|
|
10899
10756
|
{
|
|
10900
10757
|
href: props.button.link,
|
|
10901
10758
|
target: props.button.isNewTab ? "_blank" : "_self",
|
|
10902
10759
|
rel: "noreferrer",
|
|
10903
|
-
children: /* @__PURE__ */
|
|
10904
|
-
|
|
10760
|
+
children: /* @__PURE__ */ jsx139(
|
|
10761
|
+
DesignButton24,
|
|
10905
10762
|
{
|
|
10906
10763
|
variant: props.button.isNewTab ? "externalLink" : "internalLink",
|
|
10907
10764
|
className: "h-auto p-0 flex self-start mt-4 lg:mt-6 font-medium lg:p-0",
|
|
@@ -10920,10 +10777,10 @@ import { useState as useState46 } from "react";
|
|
|
10920
10777
|
// src/components/DesignElements/KeyValuePair.tsx
|
|
10921
10778
|
import { DesignInput as DesignInput3 } from "@geowiki/design-system";
|
|
10922
10779
|
import { useForm as useForm17 } from "react-hook-form";
|
|
10923
|
-
import { jsx as
|
|
10780
|
+
import { jsx as jsx140, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
10924
10781
|
var KeyValuePair = (props) => {
|
|
10925
10782
|
const { register } = useForm17();
|
|
10926
|
-
return /* @__PURE__ */
|
|
10783
|
+
return /* @__PURE__ */ jsx140(
|
|
10927
10784
|
"div",
|
|
10928
10785
|
{
|
|
10929
10786
|
style: {
|
|
@@ -10936,7 +10793,7 @@ var KeyValuePair = (props) => {
|
|
|
10936
10793
|
gap: 16,
|
|
10937
10794
|
display: "inline-flex"
|
|
10938
10795
|
},
|
|
10939
|
-
children: /* @__PURE__ */
|
|
10796
|
+
children: /* @__PURE__ */ jsxs118(
|
|
10940
10797
|
"div",
|
|
10941
10798
|
{
|
|
10942
10799
|
style: {
|
|
@@ -10946,7 +10803,7 @@ var KeyValuePair = (props) => {
|
|
|
10946
10803
|
display: "inline-flex"
|
|
10947
10804
|
},
|
|
10948
10805
|
children: [
|
|
10949
|
-
/* @__PURE__ */
|
|
10806
|
+
/* @__PURE__ */ jsx140(
|
|
10950
10807
|
"div",
|
|
10951
10808
|
{
|
|
10952
10809
|
style: {
|
|
@@ -10958,7 +10815,7 @@ var KeyValuePair = (props) => {
|
|
|
10958
10815
|
gap: 8,
|
|
10959
10816
|
display: "inline-flex"
|
|
10960
10817
|
},
|
|
10961
|
-
children: /* @__PURE__ */
|
|
10818
|
+
children: /* @__PURE__ */ jsx140(
|
|
10962
10819
|
"div",
|
|
10963
10820
|
{
|
|
10964
10821
|
style: {
|
|
@@ -10971,7 +10828,7 @@ var KeyValuePair = (props) => {
|
|
|
10971
10828
|
alignItems: "center",
|
|
10972
10829
|
display: "inline-flex"
|
|
10973
10830
|
},
|
|
10974
|
-
children: /* @__PURE__ */
|
|
10831
|
+
children: /* @__PURE__ */ jsx140(
|
|
10975
10832
|
DesignInput3,
|
|
10976
10833
|
__spreadProps(__spreadValues({
|
|
10977
10834
|
placeholder: props.keyName,
|
|
@@ -10990,7 +10847,7 @@ var KeyValuePair = (props) => {
|
|
|
10990
10847
|
)
|
|
10991
10848
|
}
|
|
10992
10849
|
),
|
|
10993
|
-
/* @__PURE__ */
|
|
10850
|
+
/* @__PURE__ */ jsx140(
|
|
10994
10851
|
"div",
|
|
10995
10852
|
{
|
|
10996
10853
|
style: {
|
|
@@ -11002,7 +10859,7 @@ var KeyValuePair = (props) => {
|
|
|
11002
10859
|
gap: 8,
|
|
11003
10860
|
display: "inline-flex"
|
|
11004
10861
|
},
|
|
11005
|
-
children: /* @__PURE__ */
|
|
10862
|
+
children: /* @__PURE__ */ jsx140(
|
|
11006
10863
|
"div",
|
|
11007
10864
|
{
|
|
11008
10865
|
style: {
|
|
@@ -11014,7 +10871,7 @@ var KeyValuePair = (props) => {
|
|
|
11014
10871
|
gap: 8,
|
|
11015
10872
|
display: "flex"
|
|
11016
10873
|
},
|
|
11017
|
-
children: /* @__PURE__ */
|
|
10874
|
+
children: /* @__PURE__ */ jsx140(
|
|
11018
10875
|
"div",
|
|
11019
10876
|
{
|
|
11020
10877
|
style: {
|
|
@@ -11027,7 +10884,7 @@ var KeyValuePair = (props) => {
|
|
|
11027
10884
|
alignItems: "center",
|
|
11028
10885
|
display: "inline-flex"
|
|
11029
10886
|
},
|
|
11030
|
-
children: /* @__PURE__ */
|
|
10887
|
+
children: /* @__PURE__ */ jsx140(
|
|
11031
10888
|
DesignInput3,
|
|
11032
10889
|
__spreadProps(__spreadValues({
|
|
11033
10890
|
placeholder: props.valueName,
|
|
@@ -11056,7 +10913,7 @@ var KeyValuePair = (props) => {
|
|
|
11056
10913
|
};
|
|
11057
10914
|
|
|
11058
10915
|
// src/components/DesignElements/KeyValuePairList.tsx
|
|
11059
|
-
import { jsx as
|
|
10916
|
+
import { jsx as jsx141, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
11060
10917
|
var KeyValuePairList = (props) => {
|
|
11061
10918
|
const [counter, setCounter] = useState46(0);
|
|
11062
10919
|
const [keyValueData, setKeyValueData] = useState46([]);
|
|
@@ -11065,7 +10922,7 @@ var KeyValuePairList = (props) => {
|
|
|
11065
10922
|
};
|
|
11066
10923
|
props.getValues(keyValueData);
|
|
11067
10924
|
const [keyValueList, setKeyValueList] = useState46([
|
|
11068
|
-
/* @__PURE__ */
|
|
10925
|
+
/* @__PURE__ */ jsx141(
|
|
11069
10926
|
KeyValuePair,
|
|
11070
10927
|
{
|
|
11071
10928
|
index: counter,
|
|
@@ -11077,7 +10934,7 @@ var KeyValuePairList = (props) => {
|
|
|
11077
10934
|
counter
|
|
11078
10935
|
)
|
|
11079
10936
|
]);
|
|
11080
|
-
return /* @__PURE__ */
|
|
10937
|
+
return /* @__PURE__ */ jsx141(
|
|
11081
10938
|
"div",
|
|
11082
10939
|
{
|
|
11083
10940
|
style: {
|
|
@@ -11086,7 +10943,7 @@ var KeyValuePairList = (props) => {
|
|
|
11086
10943
|
position: "relative",
|
|
11087
10944
|
background: "#F3F3F4"
|
|
11088
10945
|
},
|
|
11089
|
-
children: /* @__PURE__ */
|
|
10946
|
+
children: /* @__PURE__ */ jsxs119(
|
|
11090
10947
|
"div",
|
|
11091
10948
|
{
|
|
11092
10949
|
style: {
|
|
@@ -11100,7 +10957,7 @@ var KeyValuePairList = (props) => {
|
|
|
11100
10957
|
overflow: "hidden"
|
|
11101
10958
|
},
|
|
11102
10959
|
children: [
|
|
11103
|
-
/* @__PURE__ */
|
|
10960
|
+
/* @__PURE__ */ jsxs119(
|
|
11104
10961
|
"div",
|
|
11105
10962
|
{
|
|
11106
10963
|
style: {
|
|
@@ -11114,7 +10971,7 @@ var KeyValuePairList = (props) => {
|
|
|
11114
10971
|
display: "inline-flex"
|
|
11115
10972
|
},
|
|
11116
10973
|
children: [
|
|
11117
|
-
/* @__PURE__ */
|
|
10974
|
+
/* @__PURE__ */ jsxs119(
|
|
11118
10975
|
"div",
|
|
11119
10976
|
{
|
|
11120
10977
|
style: {
|
|
@@ -11124,7 +10981,7 @@ var KeyValuePairList = (props) => {
|
|
|
11124
10981
|
display: "inline-flex"
|
|
11125
10982
|
},
|
|
11126
10983
|
children: [
|
|
11127
|
-
/* @__PURE__ */
|
|
10984
|
+
/* @__PURE__ */ jsx141(
|
|
11128
10985
|
"div",
|
|
11129
10986
|
{
|
|
11130
10987
|
style: {
|
|
@@ -11138,8 +10995,8 @@ var KeyValuePairList = (props) => {
|
|
|
11138
10995
|
children: props.title
|
|
11139
10996
|
}
|
|
11140
10997
|
),
|
|
11141
|
-
/* @__PURE__ */
|
|
11142
|
-
/* @__PURE__ */
|
|
10998
|
+
/* @__PURE__ */ jsxs119("div", { style: { width: 16, height: 16, position: "relative" }, children: [
|
|
10999
|
+
/* @__PURE__ */ jsx141(
|
|
11143
11000
|
"div",
|
|
11144
11001
|
{
|
|
11145
11002
|
style: {
|
|
@@ -11153,7 +11010,7 @@ var KeyValuePairList = (props) => {
|
|
|
11153
11010
|
}
|
|
11154
11011
|
}
|
|
11155
11012
|
),
|
|
11156
|
-
/* @__PURE__ */
|
|
11013
|
+
/* @__PURE__ */ jsx141(
|
|
11157
11014
|
"div",
|
|
11158
11015
|
{
|
|
11159
11016
|
style: {
|
|
@@ -11177,7 +11034,7 @@ var KeyValuePairList = (props) => {
|
|
|
11177
11034
|
]
|
|
11178
11035
|
}
|
|
11179
11036
|
),
|
|
11180
|
-
/* @__PURE__ */
|
|
11037
|
+
/* @__PURE__ */ jsx141(
|
|
11181
11038
|
"div",
|
|
11182
11039
|
{
|
|
11183
11040
|
style: {
|
|
@@ -11194,7 +11051,7 @@ var KeyValuePairList = (props) => {
|
|
|
11194
11051
|
]
|
|
11195
11052
|
}
|
|
11196
11053
|
),
|
|
11197
|
-
props.showAddAnother && /* @__PURE__ */
|
|
11054
|
+
props.showAddAnother && /* @__PURE__ */ jsx141(
|
|
11198
11055
|
"div",
|
|
11199
11056
|
{
|
|
11200
11057
|
style: {
|
|
@@ -11209,7 +11066,7 @@ var KeyValuePairList = (props) => {
|
|
|
11209
11066
|
gap: 10,
|
|
11210
11067
|
display: "inline-flex"
|
|
11211
11068
|
},
|
|
11212
|
-
children: /* @__PURE__ */
|
|
11069
|
+
children: /* @__PURE__ */ jsx141(
|
|
11213
11070
|
"div",
|
|
11214
11071
|
{
|
|
11215
11072
|
style: {
|
|
@@ -11224,7 +11081,7 @@ var KeyValuePairList = (props) => {
|
|
|
11224
11081
|
setKeyValueData([]);
|
|
11225
11082
|
setKeyValueList([
|
|
11226
11083
|
...keyValueList,
|
|
11227
|
-
/* @__PURE__ */
|
|
11084
|
+
/* @__PURE__ */ jsx141(
|
|
11228
11085
|
KeyValuePair,
|
|
11229
11086
|
{
|
|
11230
11087
|
index: counter + 1,
|
|
@@ -11242,7 +11099,7 @@ var KeyValuePairList = (props) => {
|
|
|
11242
11099
|
)
|
|
11243
11100
|
}
|
|
11244
11101
|
),
|
|
11245
|
-
/* @__PURE__ */
|
|
11102
|
+
/* @__PURE__ */ jsx141("div", { children: keyValueList })
|
|
11246
11103
|
]
|
|
11247
11104
|
}
|
|
11248
11105
|
)
|
|
@@ -11253,7 +11110,7 @@ var KeyValuePairList = (props) => {
|
|
|
11253
11110
|
// src/components/Chart/PieChart.tsx
|
|
11254
11111
|
import { useEffect as useEffect23 } from "react";
|
|
11255
11112
|
import * as d3 from "d3";
|
|
11256
|
-
import { jsx as
|
|
11113
|
+
import { jsx as jsx142, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
11257
11114
|
var PieChart = ({ data, outerRadius, innerRadius }) => {
|
|
11258
11115
|
const margin = {
|
|
11259
11116
|
top: 50,
|
|
@@ -11299,9 +11156,9 @@ var PieChart = ({ data, outerRadius, innerRadius }) => {
|
|
|
11299
11156
|
});
|
|
11300
11157
|
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
11158
|
}
|
|
11302
|
-
return /* @__PURE__ */
|
|
11303
|
-
/* @__PURE__ */
|
|
11304
|
-
/* @__PURE__ */
|
|
11159
|
+
return /* @__PURE__ */ jsxs120("div", { className: "flex-col", children: [
|
|
11160
|
+
/* @__PURE__ */ jsx142("div", { id: "pie-container", className: "relative" }),
|
|
11161
|
+
/* @__PURE__ */ jsx142("div", { id: "legend" })
|
|
11305
11162
|
] });
|
|
11306
11163
|
};
|
|
11307
11164
|
|
|
@@ -11310,7 +11167,7 @@ import { useState as useState47 } from "react";
|
|
|
11310
11167
|
import { useForm as useForm18 } from "react-hook-form";
|
|
11311
11168
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
11312
11169
|
import * as z3 from "zod";
|
|
11313
|
-
import { useRouter as useRouter10 } from "
|
|
11170
|
+
import { useRouter as useRouter10 } from "@geowiki/core";
|
|
11314
11171
|
import { AccountService } from "@geowiki/api-proxy";
|
|
11315
11172
|
import {
|
|
11316
11173
|
Form,
|
|
@@ -11326,7 +11183,7 @@ import {
|
|
|
11326
11183
|
Checkbox as Checkbox10
|
|
11327
11184
|
} from "@geowiki/design-system";
|
|
11328
11185
|
import { useDefaultSettings } from "@geowiki/core";
|
|
11329
|
-
import { jsx as
|
|
11186
|
+
import { jsx as jsx143, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
11330
11187
|
var formSchema = z3.object({
|
|
11331
11188
|
userName: z3.string().min(2, "Username must be at least 2 characters"),
|
|
11332
11189
|
emailAddress: z3.string().email("Invalid email address"),
|
|
@@ -11451,22 +11308,22 @@ function RegisterForm({
|
|
|
11451
11308
|
}
|
|
11452
11309
|
});
|
|
11453
11310
|
}
|
|
11454
|
-
return /* @__PURE__ */
|
|
11455
|
-
/* @__PURE__ */
|
|
11456
|
-
/* @__PURE__ */
|
|
11457
|
-
/* @__PURE__ */
|
|
11311
|
+
return /* @__PURE__ */ jsx143("div", { className, children: /* @__PURE__ */ jsxs121("div", { className: "space-y-6", children: [
|
|
11312
|
+
/* @__PURE__ */ jsxs121("div", { className: "space-y-2 text-center", children: [
|
|
11313
|
+
/* @__PURE__ */ jsx143("h1", { className: "text-3xl font-bold", children: "Create an Account" }),
|
|
11314
|
+
/* @__PURE__ */ jsx143("p", { className: "text-gray-500", children: "Enter your details to register" })
|
|
11458
11315
|
] }),
|
|
11459
|
-
error && /* @__PURE__ */
|
|
11460
|
-
success && /* @__PURE__ */
|
|
11461
|
-
/* @__PURE__ */
|
|
11462
|
-
/* @__PURE__ */
|
|
11316
|
+
error && /* @__PURE__ */ jsx143(Alert, { variant: "destructive", children: /* @__PURE__ */ jsx143(AlertDescription, { children: error }) }),
|
|
11317
|
+
success && /* @__PURE__ */ jsx143(Alert, { className: "bg-green-50 text-green-800 border-green-200", children: /* @__PURE__ */ jsx143(AlertDescription, { children: "Registration successful! Redirecting to login..." }) }),
|
|
11318
|
+
/* @__PURE__ */ jsx143(Form, __spreadProps(__spreadValues({}, form), { children: /* @__PURE__ */ jsxs121("form", { onSubmit: form.handleSubmit(onSubmit), className: "space-y-4", children: [
|
|
11319
|
+
/* @__PURE__ */ jsx143(
|
|
11463
11320
|
FormField3,
|
|
11464
11321
|
{
|
|
11465
11322
|
control: form.control,
|
|
11466
11323
|
name: "userName",
|
|
11467
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11468
|
-
/* @__PURE__ */
|
|
11469
|
-
/* @__PURE__ */
|
|
11324
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11325
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Username" }),
|
|
11326
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11470
11327
|
Input2,
|
|
11471
11328
|
__spreadProps(__spreadValues({
|
|
11472
11329
|
placeholder: "Enter your username"
|
|
@@ -11478,18 +11335,18 @@ function RegisterForm({
|
|
|
11478
11335
|
}
|
|
11479
11336
|
})
|
|
11480
11337
|
) }),
|
|
11481
|
-
/* @__PURE__ */
|
|
11338
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11482
11339
|
] })
|
|
11483
11340
|
}
|
|
11484
11341
|
),
|
|
11485
|
-
/* @__PURE__ */
|
|
11342
|
+
/* @__PURE__ */ jsx143(
|
|
11486
11343
|
FormField3,
|
|
11487
11344
|
{
|
|
11488
11345
|
control: form.control,
|
|
11489
11346
|
name: "emailAddress",
|
|
11490
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11491
|
-
/* @__PURE__ */
|
|
11492
|
-
/* @__PURE__ */
|
|
11347
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11348
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Email" }),
|
|
11349
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11493
11350
|
Input2,
|
|
11494
11351
|
__spreadProps(__spreadValues({
|
|
11495
11352
|
type: "email",
|
|
@@ -11502,18 +11359,18 @@ function RegisterForm({
|
|
|
11502
11359
|
}
|
|
11503
11360
|
})
|
|
11504
11361
|
) }),
|
|
11505
|
-
/* @__PURE__ */
|
|
11362
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11506
11363
|
] })
|
|
11507
11364
|
}
|
|
11508
11365
|
),
|
|
11509
|
-
/* @__PURE__ */
|
|
11366
|
+
/* @__PURE__ */ jsx143(
|
|
11510
11367
|
FormField3,
|
|
11511
11368
|
{
|
|
11512
11369
|
control: form.control,
|
|
11513
11370
|
name: "password",
|
|
11514
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11515
|
-
/* @__PURE__ */
|
|
11516
|
-
/* @__PURE__ */
|
|
11371
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11372
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Password" }),
|
|
11373
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11517
11374
|
Input2,
|
|
11518
11375
|
__spreadProps(__spreadValues({
|
|
11519
11376
|
type: "password",
|
|
@@ -11526,18 +11383,18 @@ function RegisterForm({
|
|
|
11526
11383
|
}
|
|
11527
11384
|
})
|
|
11528
11385
|
) }),
|
|
11529
|
-
/* @__PURE__ */
|
|
11386
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11530
11387
|
] })
|
|
11531
11388
|
}
|
|
11532
11389
|
),
|
|
11533
|
-
/* @__PURE__ */
|
|
11390
|
+
/* @__PURE__ */ jsx143(
|
|
11534
11391
|
FormField3,
|
|
11535
11392
|
{
|
|
11536
11393
|
control: form.control,
|
|
11537
11394
|
name: "confirmPassword",
|
|
11538
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11539
|
-
/* @__PURE__ */
|
|
11540
|
-
/* @__PURE__ */
|
|
11395
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { children: [
|
|
11396
|
+
/* @__PURE__ */ jsx143(FormLabel, { children: "Confirm Password" }),
|
|
11397
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11541
11398
|
Input2,
|
|
11542
11399
|
__spreadProps(__spreadValues({
|
|
11543
11400
|
type: "password",
|
|
@@ -11550,17 +11407,17 @@ function RegisterForm({
|
|
|
11550
11407
|
}
|
|
11551
11408
|
})
|
|
11552
11409
|
) }),
|
|
11553
|
-
/* @__PURE__ */
|
|
11410
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11554
11411
|
] })
|
|
11555
11412
|
}
|
|
11556
11413
|
),
|
|
11557
|
-
/* @__PURE__ */
|
|
11414
|
+
/* @__PURE__ */ jsx143(
|
|
11558
11415
|
FormField3,
|
|
11559
11416
|
{
|
|
11560
11417
|
control: form.control,
|
|
11561
11418
|
name: "acceptTerms",
|
|
11562
|
-
render: ({ field }) => /* @__PURE__ */
|
|
11563
|
-
/* @__PURE__ */
|
|
11419
|
+
render: ({ field }) => /* @__PURE__ */ jsxs121(FormItem3, { className: "flex flex-row items-start space-x-3 space-y-0", children: [
|
|
11420
|
+
/* @__PURE__ */ jsx143(FormControl, { children: /* @__PURE__ */ jsx143(
|
|
11564
11421
|
Checkbox10,
|
|
11565
11422
|
{
|
|
11566
11423
|
checked: field.value,
|
|
@@ -11568,11 +11425,11 @@ function RegisterForm({
|
|
|
11568
11425
|
disabled: isLoading
|
|
11569
11426
|
}
|
|
11570
11427
|
) }),
|
|
11571
|
-
/* @__PURE__ */
|
|
11572
|
-
/* @__PURE__ */
|
|
11428
|
+
/* @__PURE__ */ jsxs121("div", { className: "space-y-1 leading-none", children: [
|
|
11429
|
+
/* @__PURE__ */ jsxs121(FormLabel, { className: "text-sm font-normal", children: [
|
|
11573
11430
|
"I accept the",
|
|
11574
11431
|
" ",
|
|
11575
|
-
termsUrl && /* @__PURE__ */
|
|
11432
|
+
termsUrl && /* @__PURE__ */ jsx143(
|
|
11576
11433
|
"a",
|
|
11577
11434
|
{
|
|
11578
11435
|
href: termsUrl,
|
|
@@ -11583,7 +11440,7 @@ function RegisterForm({
|
|
|
11583
11440
|
}
|
|
11584
11441
|
),
|
|
11585
11442
|
termsUrl && privacyUrl && " and ",
|
|
11586
|
-
privacyUrl && /* @__PURE__ */
|
|
11443
|
+
privacyUrl && /* @__PURE__ */ jsx143(
|
|
11587
11444
|
"a",
|
|
11588
11445
|
{
|
|
11589
11446
|
href: privacyUrl,
|
|
@@ -11595,12 +11452,12 @@ function RegisterForm({
|
|
|
11595
11452
|
),
|
|
11596
11453
|
!termsUrl && !privacyUrl && "Terms of Service and Privacy Policy"
|
|
11597
11454
|
] }),
|
|
11598
|
-
/* @__PURE__ */
|
|
11455
|
+
/* @__PURE__ */ jsx143(FormMessage, {})
|
|
11599
11456
|
] })
|
|
11600
11457
|
] })
|
|
11601
11458
|
}
|
|
11602
11459
|
),
|
|
11603
|
-
/* @__PURE__ */
|
|
11460
|
+
/* @__PURE__ */ jsx143(Button26, { type: "submit", className: "w-full", disabled: isLoading, children: isLoading ? "Registering..." : "Register" })
|
|
11604
11461
|
] }) }))
|
|
11605
11462
|
] }) });
|
|
11606
11463
|
}
|
|
@@ -11689,7 +11546,6 @@ export {
|
|
|
11689
11546
|
NewsItemList,
|
|
11690
11547
|
NewsfeedPreview,
|
|
11691
11548
|
NextImage,
|
|
11692
|
-
Notification,
|
|
11693
11549
|
PageNotFound,
|
|
11694
11550
|
Pagination,
|
|
11695
11551
|
PanelMain,
|
|
@@ -11711,7 +11567,6 @@ export {
|
|
|
11711
11567
|
Sidebar,
|
|
11712
11568
|
SidebarIcon,
|
|
11713
11569
|
SignUpBanner,
|
|
11714
|
-
SimpleLink,
|
|
11715
11570
|
SixClusterNews,
|
|
11716
11571
|
SubtitleH2BodyVideo,
|
|
11717
11572
|
SubtitleH3Body,
|