@geowiki/recodo 0.16.9-dev.0 → 0.16.9-dev.10
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/{cluster-map-LVG5YKOI.mjs → cluster-map-GEOLKUZK.mjs} +5 -46
- package/dist/index.d.mts +3 -10
- package/dist/index.d.ts +3 -10
- package/dist/index.js +573 -642
- package/dist/index.mjs +319 -344
- package/dist/styles.css +1 -1
- package/package.json +10 -12
package/dist/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ import { i18n } from "@geowiki/core";
|
|
|
45
45
|
import { CoverImage, DesignButton as DesignButton2 } from "@geowiki/ui";
|
|
46
46
|
import { RichTextContent } from "@geowiki/ui";
|
|
47
47
|
import { LoaderFull as LoaderFull2 } from "@geowiki/ui";
|
|
48
|
-
import { useRouter } from "
|
|
48
|
+
import { useRouter } from "@geowiki/core";
|
|
49
49
|
import { useConfigSettings } from "@geowiki/core";
|
|
50
50
|
import { useFileUrl as useFileUrl2 } from "@geowiki/core";
|
|
51
51
|
import { useClusterGetNews as useClusterGetNews2 } from "@geowiki/core";
|
|
@@ -191,7 +191,7 @@ import { Dialog as Dialog2, Transition as Transition2 } from "@headlessui/react"
|
|
|
191
191
|
import { Fragment as Fragment2 } from "react";
|
|
192
192
|
import { XMarkIcon as XMarkIcon2 } from "@heroicons/react/24/outline";
|
|
193
193
|
import { H5Design, Body16, DesignButton } from "@geowiki/ui";
|
|
194
|
-
import Link from "
|
|
194
|
+
import { Link } from "@geowiki/core";
|
|
195
195
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
196
196
|
var FarmerClusterPopup = ({
|
|
197
197
|
title,
|
|
@@ -572,7 +572,7 @@ import { useState as useState2 } from "react";
|
|
|
572
572
|
import { ViewStatus as ViewStatus2 } from "@geowiki/core";
|
|
573
573
|
import { useClusterAllNews } from "@geowiki/core";
|
|
574
574
|
import DataTable from "react-data-table-component";
|
|
575
|
-
import { useTheme } from "
|
|
575
|
+
import { useTheme } from "@geowiki/core";
|
|
576
576
|
import {
|
|
577
577
|
DesignButton as DesignButton3,
|
|
578
578
|
LoaderFull as LoaderFull3,
|
|
@@ -728,7 +728,7 @@ var ClusterNewsItem = ({ newsId }) => {
|
|
|
728
728
|
// src/components/FarmerCluster/FarmerClusterBasicInfo.tsx
|
|
729
729
|
import { useEffect, useRef, useState as useState3 } from "react";
|
|
730
730
|
import { FormProvider, useForm as useForm2 } from "react-hook-form";
|
|
731
|
-
import dynamic from "
|
|
731
|
+
import { dynamic } from "@geowiki/core";
|
|
732
732
|
import Swal2 from "sweetalert2";
|
|
733
733
|
import {
|
|
734
734
|
ApiImage as ApiImage2,
|
|
@@ -763,7 +763,7 @@ import {
|
|
|
763
763
|
ClusterVerificationStatus as ClusterVerificationStatus2
|
|
764
764
|
} from "@geowiki/api-proxy";
|
|
765
765
|
import { LoaderFull as LoaderFull5 } from "@geowiki/ui";
|
|
766
|
-
import { useRouter as useRouter3 } from "
|
|
766
|
+
import { useRouter as useRouter3 } from "@geowiki/core";
|
|
767
767
|
|
|
768
768
|
// src/components/FarmerCluster/SectionHeader.tsx
|
|
769
769
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "@geowiki/ui";
|
|
@@ -972,7 +972,7 @@ import { useQueryClient } from "@tanstack/react-query";
|
|
|
972
972
|
import { Dialog as Dialog3, Transition as Transition3 } from "@headlessui/react";
|
|
973
973
|
import { Fragment as Fragment5 } from "react";
|
|
974
974
|
import { H5Design as H5Design2, Body16 as Body163, DesignButton as DesignButton4 } from "@geowiki/ui";
|
|
975
|
-
import { useRouter as useRouter2 } from "
|
|
975
|
+
import { useRouter as useRouter2 } from "@geowiki/core";
|
|
976
976
|
import { XMarkIcon as XMarkIcon3 } from "@heroicons/react/24/outline";
|
|
977
977
|
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
978
978
|
var CancelPopup = ({ open, setOpen }) => {
|
|
@@ -1061,7 +1061,7 @@ var CancelPopup = ({ open, setOpen }) => {
|
|
|
1061
1061
|
|
|
1062
1062
|
// src/components/FarmerCluster/FarmerClusterBasicInfo.tsx
|
|
1063
1063
|
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1064
|
-
var MapWithNoSSR = dynamic(() => import("./cluster-map-
|
|
1064
|
+
var MapWithNoSSR = dynamic(() => import("./cluster-map-GEOLKUZK.mjs"), {
|
|
1065
1065
|
ssr: false
|
|
1066
1066
|
});
|
|
1067
1067
|
var FarmerClusterBasicInfo = () => {
|
|
@@ -1592,7 +1592,7 @@ import {
|
|
|
1592
1592
|
ClusterService as ClusterService3
|
|
1593
1593
|
} from "@geowiki/api-proxy";
|
|
1594
1594
|
import { LoaderFull as LoaderFull6 } from "@geowiki/ui";
|
|
1595
|
-
import { useRouter as useRouter4 } from "
|
|
1595
|
+
import { useRouter as useRouter4 } from "@geowiki/core";
|
|
1596
1596
|
|
|
1597
1597
|
// src/components/FarmerCluster/CharacteristicsSection.tsx
|
|
1598
1598
|
import { useFormContext } from "react-hook-form";
|
|
@@ -1984,7 +1984,7 @@ import {
|
|
|
1984
1984
|
Notification
|
|
1985
1985
|
} from "@geowiki/ui";
|
|
1986
1986
|
import { ClusterService as ClusterService5 } from "@geowiki/api-proxy";
|
|
1987
|
-
import { useRouter as useRouter5 } from "
|
|
1987
|
+
import { useRouter as useRouter5 } from "@geowiki/core";
|
|
1988
1988
|
import { FormProvider as FormProvider3, useForm as useForm4 } from "react-hook-form";
|
|
1989
1989
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
1990
1990
|
import { v4 } from "uuid";
|
|
@@ -2481,7 +2481,7 @@ import classNames from "classnames";
|
|
|
2481
2481
|
import { ErrorMessage } from "@geowiki/ui";
|
|
2482
2482
|
import { LoaderFull as LoaderFull8 } from "@geowiki/ui";
|
|
2483
2483
|
import { QueryNames as QueryNames5 } from "@geowiki/core";
|
|
2484
|
-
import { useTheme as useTheme2 } from "
|
|
2484
|
+
import { useTheme as useTheme2 } from "@geowiki/core";
|
|
2485
2485
|
import DataTable2 from "react-data-table-component";
|
|
2486
2486
|
import { useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
2487
2487
|
import { Check, XCircle } from "lucide-react";
|
|
@@ -2978,14 +2978,14 @@ import Swal5 from "sweetalert2";
|
|
|
2978
2978
|
import { useConfigSettings as useConfigSettings4 } from "@geowiki/core";
|
|
2979
2979
|
import { DesignButton as DesignButton11, PermissionDisabled } from "@geowiki/ui";
|
|
2980
2980
|
import { FeatureDisabled } from "@geowiki/ui";
|
|
2981
|
-
import Link2 from "
|
|
2981
|
+
import { Link as Link2 } from "@geowiki/core";
|
|
2982
2982
|
import { useClusters } from "@geowiki/core";
|
|
2983
2983
|
import { ClusterService as ClusterService9 } from "@geowiki/api-proxy";
|
|
2984
2984
|
import { LoaderFull as LoaderFull10 } from "@geowiki/ui";
|
|
2985
2985
|
import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
|
|
2986
2986
|
import { QueryNames as QueryNames6 } from "@geowiki/core";
|
|
2987
2987
|
import DataTable3 from "react-data-table-component";
|
|
2988
|
-
import { useTheme as useTheme3 } from "
|
|
2988
|
+
import { useTheme as useTheme3 } from "@geowiki/core";
|
|
2989
2989
|
import { EditLinkButton } from "@geowiki/ui";
|
|
2990
2990
|
import { DeleteButton as DeleteButton3 } from "@geowiki/ui";
|
|
2991
2991
|
import { ViewLink as ViewLink2, tableDesigntyles as tableDesigntyles2, H4Design as H4Design2, Body16 as Body165 } from "@geowiki/ui";
|
|
@@ -3368,8 +3368,8 @@ var ViewClusterImagesList_default = ViewClusterImagesList;
|
|
|
3368
3368
|
|
|
3369
3369
|
// src/components/FarmerCluster/ViewFarmerCluster.tsx
|
|
3370
3370
|
import { ContentGrid } from "@geowiki/ui";
|
|
3371
|
-
import dynamic2 from "
|
|
3372
|
-
import { useRouter as useRouter6 } from "
|
|
3371
|
+
import { dynamic as dynamic2 } from "@geowiki/core";
|
|
3372
|
+
import { useRouter as useRouter6 } from "@geowiki/core";
|
|
3373
3373
|
import { useAppConfig as useAppConfig2 } from "@geowiki/core";
|
|
3374
3374
|
import { useFileUrl as useFileUrl3 } from "@geowiki/core";
|
|
3375
3375
|
import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
@@ -3378,7 +3378,7 @@ var ViewFarmerCluster = ({ cluster }) => {
|
|
|
3378
3378
|
const fileUrl = useFileUrl3();
|
|
3379
3379
|
const router = useRouter6();
|
|
3380
3380
|
const [route, setRoute] = useState10(null);
|
|
3381
|
-
const MapWithNoSSR3 = dynamic2(() => import("./cluster-map-
|
|
3381
|
+
const MapWithNoSSR3 = dynamic2(() => import("./cluster-map-GEOLKUZK.mjs"), {
|
|
3382
3382
|
ssr: false
|
|
3383
3383
|
});
|
|
3384
3384
|
var position = {
|
|
@@ -3543,7 +3543,7 @@ import {
|
|
|
3543
3543
|
MobileFilterPopupOpened
|
|
3544
3544
|
} from "@geowiki/ui";
|
|
3545
3545
|
import { XCircleIcon } from "@heroicons/react/24/outline";
|
|
3546
|
-
import { useRouter as useRouter7 } from "
|
|
3546
|
+
import { useRouter as useRouter7 } from "@geowiki/core";
|
|
3547
3547
|
import { v4 as v42 } from "uuid";
|
|
3548
3548
|
import { useState as useState11 } from "react";
|
|
3549
3549
|
import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
@@ -3821,9 +3821,9 @@ var FarmerClusterFinder = () => {
|
|
|
3821
3821
|
|
|
3822
3822
|
// src/components/FarmerCluster/RecodoViewFarmerCluster.tsx
|
|
3823
3823
|
import { useState as useState13 } from "react";
|
|
3824
|
-
import dynamic3 from "
|
|
3824
|
+
import { dynamic as dynamic3 } from "@geowiki/core";
|
|
3825
3825
|
import { LinkType } from "@geowiki/api-proxy";
|
|
3826
|
-
import { useRouter as useRouter8 } from "
|
|
3826
|
+
import { useRouter as useRouter8 } from "@geowiki/core";
|
|
3827
3827
|
import {
|
|
3828
3828
|
H2Design,
|
|
3829
3829
|
LastUpdatedTag,
|
|
@@ -4060,7 +4060,7 @@ var RecodoViewFarmerCluster = ({
|
|
|
4060
4060
|
const router = useRouter8();
|
|
4061
4061
|
const [route, setRoute] = useState13(null);
|
|
4062
4062
|
const [openContact, setOpenContact] = useState13(false);
|
|
4063
|
-
const MapWithNoSSR3 = dynamic3(() => import("./cluster-map-
|
|
4063
|
+
const MapWithNoSSR3 = dynamic3(() => import("./cluster-map-GEOLKUZK.mjs"), {
|
|
4064
4064
|
ssr: false
|
|
4065
4065
|
});
|
|
4066
4066
|
var position = {
|
|
@@ -4265,7 +4265,7 @@ import { useAudience } from "@geowiki/core";
|
|
|
4265
4265
|
import { useTopic } from "@geowiki/core";
|
|
4266
4266
|
import { useResourceType } from "@geowiki/core";
|
|
4267
4267
|
import { useLanguages } from "@geowiki/core";
|
|
4268
|
-
import Link3 from "
|
|
4268
|
+
import { Link as Link3 } from "@geowiki/core";
|
|
4269
4269
|
|
|
4270
4270
|
// src/components/Resource/ResourceIcon.tsx
|
|
4271
4271
|
import {
|
|
@@ -4330,32 +4330,8 @@ var ResourceIcon = ({
|
|
|
4330
4330
|
}
|
|
4331
4331
|
};
|
|
4332
4332
|
|
|
4333
|
-
// src/components/Resource/ResourceTag.tsx
|
|
4334
|
-
import { cn as cn2 } from "@geowiki/ui";
|
|
4335
|
-
import { cva } from "class-variance-authority";
|
|
4336
|
-
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4337
|
-
var tagVariants = cva(
|
|
4338
|
-
"justify-center self-start px-4 py-2 mr-2 mt-1 text-sm font-medium text-white whitespace-nowrap rounded-[40px] first-letter:capitalize",
|
|
4339
|
-
{
|
|
4340
|
-
variants: {
|
|
4341
|
-
variant: {
|
|
4342
|
-
topic: "bg-tag-dark-blue",
|
|
4343
|
-
audience: "bg-tag-dark-green",
|
|
4344
|
-
keyword: "bg-tag-blue",
|
|
4345
|
-
language: "bg-tag-orange",
|
|
4346
|
-
resourceType: "bg-sky-500"
|
|
4347
|
-
}
|
|
4348
|
-
},
|
|
4349
|
-
defaultVariants: {
|
|
4350
|
-
variant: "topic"
|
|
4351
|
-
}
|
|
4352
|
-
}
|
|
4353
|
-
);
|
|
4354
|
-
var ResourceTag = ({ tag, type }) => {
|
|
4355
|
-
return /* @__PURE__ */ jsx29("span", { className: cn2(tagVariants({ variant: type })), children: tag });
|
|
4356
|
-
};
|
|
4357
|
-
|
|
4358
4333
|
// src/components/Resource/ResourceView.tsx
|
|
4334
|
+
import { ResourceTag } from "@geowiki/ui";
|
|
4359
4335
|
import {
|
|
4360
4336
|
H3Design as H3Design2,
|
|
4361
4337
|
Body16sb,
|
|
@@ -4364,17 +4340,17 @@ import {
|
|
|
4364
4340
|
Caption,
|
|
4365
4341
|
DesignButton as DesignButton14
|
|
4366
4342
|
} from "@geowiki/ui";
|
|
4367
|
-
import { Fragment as Fragment10, jsx as
|
|
4343
|
+
import { Fragment as Fragment10, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4368
4344
|
var DetailRow = ({ label, value }) => {
|
|
4369
|
-
return /* @__PURE__ */
|
|
4370
|
-
/* @__PURE__ */
|
|
4371
|
-
/* @__PURE__ */
|
|
4345
|
+
return /* @__PURE__ */ jsx29(Fragment10, { children: /* @__PURE__ */ jsxs22("div", { className: "flex gap-2 lg:gap-5 lg:justify-between py-4 max-md:flex-wrap max-md:max-w-full lg:py-6 border-0 border-b border-grey-light", children: [
|
|
4346
|
+
/* @__PURE__ */ jsx29(Body167, { className: "text-grey", children: label }),
|
|
4347
|
+
/* @__PURE__ */ jsx29(Body16m, { className: "lg:text-righ max-md:max-w-full", children: value })
|
|
4372
4348
|
] }) });
|
|
4373
4349
|
};
|
|
4374
4350
|
var KeyValues = ({ name, keyValues, kind }) => {
|
|
4375
4351
|
return /* @__PURE__ */ jsxs22(Fragment10, { children: [
|
|
4376
|
-
/* @__PURE__ */
|
|
4377
|
-
/* @__PURE__ */
|
|
4352
|
+
/* @__PURE__ */ jsx29(Caption, { className: "text-grey", children: name }),
|
|
4353
|
+
/* @__PURE__ */ jsx29("div", { className: "flex items-center flex-wrap text-sm font-medium whitespace-nowrap mt-2 mb-6 lg:mt-4 lg:mb-10", children: keyValues.map((keyValue, index) => /* @__PURE__ */ jsx29(ResourceTag, { tag: keyValue.value, type: kind }, index)) })
|
|
4378
4354
|
] });
|
|
4379
4355
|
};
|
|
4380
4356
|
function ResourceView({
|
|
@@ -4399,8 +4375,8 @@ function ResourceView({
|
|
|
4399
4375
|
const currentTypes = types?.find((type) => type.key === resource.resourceType)?.value || resource.resourceType;
|
|
4400
4376
|
const link = resource.link || "";
|
|
4401
4377
|
const linkText = link.length > 70 ? `${link.slice(0, 70)}...` : link;
|
|
4402
|
-
return /* @__PURE__ */
|
|
4403
|
-
/* @__PURE__ */
|
|
4378
|
+
return /* @__PURE__ */ jsx29(Transition6.Root, { show: open, as: Fragment9, "data-component": "ResourceView", children: /* @__PURE__ */ jsxs22(Dialog7, { as: "div", className: "relative z-10", onClose: setOpen, children: [
|
|
4379
|
+
/* @__PURE__ */ jsx29(
|
|
4404
4380
|
Transition6.Child,
|
|
4405
4381
|
{
|
|
4406
4382
|
as: Fragment9,
|
|
@@ -4410,10 +4386,10 @@ function ResourceView({
|
|
|
4410
4386
|
leave: "ease-in duration-200",
|
|
4411
4387
|
leaveFrom: "opacity-100",
|
|
4412
4388
|
leaveTo: "opacity-0",
|
|
4413
|
-
children: /* @__PURE__ */
|
|
4389
|
+
children: /* @__PURE__ */ jsx29("div", { className: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
|
|
4414
4390
|
}
|
|
4415
4391
|
),
|
|
4416
|
-
/* @__PURE__ */
|
|
4392
|
+
/* @__PURE__ */ jsx29("div", { className: "fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ jsx29("div", { className: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0", children: /* @__PURE__ */ jsx29(
|
|
4417
4393
|
Transition6.Child,
|
|
4418
4394
|
{
|
|
4419
4395
|
as: Fragment9,
|
|
@@ -4424,15 +4400,15 @@ function ResourceView({
|
|
|
4424
4400
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
4425
4401
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
4426
4402
|
children: /* @__PURE__ */ jsxs22(Dialog7.Panel, { className: "relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl sm:w-full sm:p-10", children: [
|
|
4427
|
-
/* @__PURE__ */
|
|
4403
|
+
/* @__PURE__ */ jsx29("div", { className: "absolute top-0 right-0 pt-10 pr-10", children: /* @__PURE__ */ jsxs22(
|
|
4428
4404
|
"button",
|
|
4429
4405
|
{
|
|
4430
4406
|
type: "button",
|
|
4431
4407
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 ",
|
|
4432
4408
|
onClick: () => setOpen(false),
|
|
4433
4409
|
children: [
|
|
4434
|
-
/* @__PURE__ */
|
|
4435
|
-
/* @__PURE__ */
|
|
4410
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: "Close" }),
|
|
4411
|
+
/* @__PURE__ */ jsx29(
|
|
4436
4412
|
XMarkIcon6,
|
|
4437
4413
|
{
|
|
4438
4414
|
className: "h-4 w-4 lg:h-6 lg:w-6",
|
|
@@ -4445,12 +4421,12 @@ function ResourceView({
|
|
|
4445
4421
|
/* @__PURE__ */ jsxs22("div", { className: "p-5 lg:px-6 lg:py-2", children: [
|
|
4446
4422
|
/* @__PURE__ */ jsxs22("div", { children: [
|
|
4447
4423
|
/* @__PURE__ */ jsxs22("div", { className: "flex space-x-2 lg:block lg:space-x-0", children: [
|
|
4448
|
-
/* @__PURE__ */
|
|
4449
|
-
/* @__PURE__ */
|
|
4424
|
+
/* @__PURE__ */ jsx29(ResourceIcon, { type: resource.resourceType }),
|
|
4425
|
+
/* @__PURE__ */ jsx29(Body16sb, { className: "self-start mt-[10px] text-primary lg:mt-4", children: currentTypes })
|
|
4450
4426
|
] }),
|
|
4451
|
-
/* @__PURE__ */
|
|
4452
|
-
/* @__PURE__ */
|
|
4453
|
-
/* @__PURE__ */
|
|
4427
|
+
/* @__PURE__ */ jsx29(H3Design2, { className: "mt-6", children: resource.title }),
|
|
4428
|
+
/* @__PURE__ */ jsx29(Body167, { className: "mt-6", children: resource.description }),
|
|
4429
|
+
/* @__PURE__ */ jsx29("div", { className: " mt-6 whitespace-nowrap lg:mt-8", children: /* @__PURE__ */ jsx29(Link3, { href: link, target: "_blank", children: /* @__PURE__ */ jsx29(
|
|
4454
4430
|
DesignButton14,
|
|
4455
4431
|
{
|
|
4456
4432
|
variant: "externalLink",
|
|
@@ -4459,14 +4435,14 @@ function ResourceView({
|
|
|
4459
4435
|
}
|
|
4460
4436
|
) }) }),
|
|
4461
4437
|
/* @__PURE__ */ jsxs22("div", { className: "my-6 lg:my-10", children: [
|
|
4462
|
-
currentTypes && /* @__PURE__ */
|
|
4438
|
+
currentTypes && /* @__PURE__ */ jsx29(
|
|
4463
4439
|
DetailRow,
|
|
4464
4440
|
{
|
|
4465
4441
|
label: "Resource type:",
|
|
4466
4442
|
value: currentTypes
|
|
4467
4443
|
}
|
|
4468
4444
|
),
|
|
4469
|
-
resource.publisher && /* @__PURE__ */
|
|
4445
|
+
resource.publisher && /* @__PURE__ */ jsx29(
|
|
4470
4446
|
DetailRow,
|
|
4471
4447
|
{
|
|
4472
4448
|
label: "Publisher",
|
|
@@ -4474,7 +4450,7 @@ function ResourceView({
|
|
|
4474
4450
|
}
|
|
4475
4451
|
)
|
|
4476
4452
|
] }),
|
|
4477
|
-
currentTopics?.length > 0 && /* @__PURE__ */
|
|
4453
|
+
currentTopics?.length > 0 && /* @__PURE__ */ jsx29(
|
|
4478
4454
|
KeyValues,
|
|
4479
4455
|
{
|
|
4480
4456
|
name: "Topic",
|
|
@@ -4485,7 +4461,7 @@ function ResourceView({
|
|
|
4485
4461
|
kind: "topic"
|
|
4486
4462
|
}
|
|
4487
4463
|
),
|
|
4488
|
-
currentAudiences?.length > 0 && /* @__PURE__ */
|
|
4464
|
+
currentAudiences?.length > 0 && /* @__PURE__ */ jsx29(
|
|
4489
4465
|
KeyValues,
|
|
4490
4466
|
{
|
|
4491
4467
|
name: "Audience",
|
|
@@ -4497,8 +4473,8 @@ function ResourceView({
|
|
|
4497
4473
|
}
|
|
4498
4474
|
),
|
|
4499
4475
|
resource?.keywords && resource?.keywords?.length > 0 && /* @__PURE__ */ jsxs22("div", { children: [
|
|
4500
|
-
/* @__PURE__ */
|
|
4501
|
-
/* @__PURE__ */
|
|
4476
|
+
/* @__PURE__ */ jsx29(Caption, { className: "self-start lg:mt-10 tracking-wider text-grey", children: "Keywords" }),
|
|
4477
|
+
/* @__PURE__ */ jsx29("div", { className: "flex items-center flex-wrap mt-2 mb-6 lg:mt-4 lg:mb-10", children: resource.keywords?.map((keyword, index) => /* @__PURE__ */ jsx29(
|
|
4502
4478
|
ResourceTag,
|
|
4503
4479
|
{
|
|
4504
4480
|
tag: keyword,
|
|
@@ -4507,7 +4483,7 @@ function ResourceView({
|
|
|
4507
4483
|
index
|
|
4508
4484
|
)) })
|
|
4509
4485
|
] }),
|
|
4510
|
-
currentLanguages?.length > 0 && /* @__PURE__ */
|
|
4486
|
+
currentLanguages?.length > 0 && /* @__PURE__ */ jsx29(
|
|
4511
4487
|
KeyValues,
|
|
4512
4488
|
{
|
|
4513
4489
|
name: "Language",
|
|
@@ -4519,11 +4495,11 @@ function ResourceView({
|
|
|
4519
4495
|
}
|
|
4520
4496
|
)
|
|
4521
4497
|
] }),
|
|
4522
|
-
showResourcesButton && /* @__PURE__ */
|
|
4498
|
+
showResourcesButton && /* @__PURE__ */ jsx29("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ jsx29(
|
|
4523
4499
|
Link3,
|
|
4524
4500
|
{
|
|
4525
4501
|
href: `/resources/resource-finder?topic=${selectedTopic}&audience=${selectedAudience}`,
|
|
4526
|
-
children: /* @__PURE__ */
|
|
4502
|
+
children: /* @__PURE__ */ jsx29(DesignButton14, { children: "View all Resources" })
|
|
4527
4503
|
}
|
|
4528
4504
|
) })
|
|
4529
4505
|
] })
|
|
@@ -4536,7 +4512,7 @@ var ResourceView_default = ResourceView;
|
|
|
4536
4512
|
|
|
4537
4513
|
// src/components/Resource/ResourceLink.tsx
|
|
4538
4514
|
import { Body16 as Body168 } from "@geowiki/ui";
|
|
4539
|
-
import { jsx as
|
|
4515
|
+
import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4540
4516
|
var ResourceLink = ({
|
|
4541
4517
|
resource,
|
|
4542
4518
|
selectedAudience,
|
|
@@ -4544,8 +4520,8 @@ var ResourceLink = ({
|
|
|
4544
4520
|
}) => {
|
|
4545
4521
|
const [open, setOpen] = useState14(false);
|
|
4546
4522
|
return /* @__PURE__ */ jsxs23("div", { children: [
|
|
4547
|
-
/* @__PURE__ */
|
|
4548
|
-
/* @__PURE__ */
|
|
4523
|
+
/* @__PURE__ */ jsx30("div", { onClick: () => setOpen(true), className: "cursor-pointer", children: /* @__PURE__ */ jsx30(Body168, { className: "underline text-left", children: resource.title }) }),
|
|
4524
|
+
/* @__PURE__ */ jsx30(
|
|
4549
4525
|
ResourceView_default,
|
|
4550
4526
|
{
|
|
4551
4527
|
resource,
|
|
@@ -4561,8 +4537,8 @@ var ResourceLink = ({
|
|
|
4561
4537
|
|
|
4562
4538
|
// src/components/FarmerCluster/ResourcesQuickFind.tsx
|
|
4563
4539
|
import { parseTitle } from "@geowiki/ui";
|
|
4564
|
-
import Link4 from "
|
|
4565
|
-
import { Fragment as Fragment11, jsx as
|
|
4540
|
+
import { Link as Link4 } from "@geowiki/core";
|
|
4541
|
+
import { Fragment as Fragment11, jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4566
4542
|
var ResourcesQuickFind = ({}) => {
|
|
4567
4543
|
const pageSize = 2;
|
|
4568
4544
|
const [selectedAudience, setSelectedAudience] = useState15();
|
|
@@ -4597,9 +4573,9 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4597
4573
|
});
|
|
4598
4574
|
return updatedArray;
|
|
4599
4575
|
};
|
|
4600
|
-
return /* @__PURE__ */
|
|
4601
|
-
/* @__PURE__ */
|
|
4602
|
-
/* @__PURE__ */
|
|
4576
|
+
return /* @__PURE__ */ jsx31("section", { className: "flex justify-center items-center mt-6 p-5 bg-accent-light-purple rounded-xl lg:mt-12 lg:px-16 lg:py-20", children: /* @__PURE__ */ jsx31("div", { className: "lg:container mx-auto w-full max-w-[1116px] ", children: /* @__PURE__ */ jsxs24("div", { className: "lg:flex lg:gap-5 ", children: [
|
|
4577
|
+
/* @__PURE__ */ jsx31("div", { className: "flex flex-col lg:w-[57%] ", children: /* @__PURE__ */ jsxs24("div", { className: "flex flex-col text-gray-900 space-y-4 lg:space-y-6 lg:mt-2.5", children: [
|
|
4578
|
+
/* @__PURE__ */ jsx31(
|
|
4603
4579
|
HtmlView2,
|
|
4604
4580
|
{
|
|
4605
4581
|
cssClass: "m-0 pt-2 lg:pt-0",
|
|
@@ -4609,13 +4585,13 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4609
4585
|
)
|
|
4610
4586
|
}
|
|
4611
4587
|
),
|
|
4612
|
-
/* @__PURE__ */
|
|
4613
|
-
/* @__PURE__ */
|
|
4588
|
+
/* @__PURE__ */ jsx31(Body182, { className: "lg:w-[65%]", children: "Tell us about what your looking for and we will recommend some resources to help you get started." }),
|
|
4589
|
+
/* @__PURE__ */ jsx31(
|
|
4614
4590
|
DesignButton15,
|
|
4615
4591
|
{
|
|
4616
4592
|
className: "h-auto p-0 lg:p-0 self-start",
|
|
4617
4593
|
variant: "internalLink",
|
|
4618
|
-
children: /* @__PURE__ */
|
|
4594
|
+
children: /* @__PURE__ */ jsx31(
|
|
4619
4595
|
Link4,
|
|
4620
4596
|
{
|
|
4621
4597
|
href: "/resources/resource-finder",
|
|
@@ -4627,8 +4603,8 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4627
4603
|
}
|
|
4628
4604
|
)
|
|
4629
4605
|
] }) }),
|
|
4630
|
-
/* @__PURE__ */
|
|
4631
|
-
/* @__PURE__ */
|
|
4606
|
+
/* @__PURE__ */ jsx31("div", { className: "pt-6 flex flex-col w-full lg:ml-5 lg:w-[43%] lg:pt-0", children: /* @__PURE__ */ jsx31("form", { className: "flex flex-col grow w-full lg:w-full text-base font-medium leading-5 text-gray-900 rounded-xl bg-white bg-opacity-40 lg:min-w-[24rem] ", children: !isAudienceLoading && !isTopicsLoading && audiences && topics && /* @__PURE__ */ jsx31("div", { className: "w-full flex-col flex justify-center", children: /* @__PURE__ */ jsxs24("div", { className: " w-full lg:w-[20rem] p-8 bg-opacity-40 rounded-xl", children: [
|
|
4607
|
+
/* @__PURE__ */ jsx31(Body16m2, { className: "pb-1", children: "I am a" }),
|
|
4632
4608
|
/* @__PURE__ */ jsxs24(
|
|
4633
4609
|
DesignSelect3,
|
|
4634
4610
|
{
|
|
@@ -4636,8 +4612,8 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4636
4612
|
handleAudienceChange(v);
|
|
4637
4613
|
},
|
|
4638
4614
|
children: [
|
|
4639
|
-
/* @__PURE__ */
|
|
4640
|
-
/* @__PURE__ */
|
|
4615
|
+
/* @__PURE__ */ jsx31(DesignSelectTrigger3, { className: "w-full lg:w-80 bg-white", children: /* @__PURE__ */ jsx31(DesignSelectValue3, { placeholder: "Select one" }) }),
|
|
4616
|
+
/* @__PURE__ */ jsx31(DesignSelectContent3, { children: /* @__PURE__ */ jsx31(DesignSelectGroup3, { children: audiences.map((audience) => /* @__PURE__ */ jsx31(
|
|
4641
4617
|
DesignSelectItem3,
|
|
4642
4618
|
{
|
|
4643
4619
|
value: audience.key,
|
|
@@ -4648,7 +4624,7 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4648
4624
|
]
|
|
4649
4625
|
}
|
|
4650
4626
|
),
|
|
4651
|
-
/* @__PURE__ */
|
|
4627
|
+
/* @__PURE__ */ jsx31(Body16m2, { className: "pb-1 pt-8", children: "I'd like to learn more about" }),
|
|
4652
4628
|
/* @__PURE__ */ jsxs24(
|
|
4653
4629
|
DesignSelect3,
|
|
4654
4630
|
{
|
|
@@ -4656,8 +4632,8 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4656
4632
|
handleTopicChange(v);
|
|
4657
4633
|
},
|
|
4658
4634
|
children: [
|
|
4659
|
-
/* @__PURE__ */
|
|
4660
|
-
/* @__PURE__ */
|
|
4635
|
+
/* @__PURE__ */ jsx31(DesignSelectTrigger3, { className: "w-full lg:w-80 bg-white", children: /* @__PURE__ */ jsx31(DesignSelectValue3, { placeholder: "Select one" }) }),
|
|
4636
|
+
/* @__PURE__ */ jsx31(DesignSelectContent3, { children: /* @__PURE__ */ jsx31(DesignSelectGroup3, { children: updateTopics().map((topic) => /* @__PURE__ */ jsx31(
|
|
4661
4637
|
DesignSelectItem3,
|
|
4662
4638
|
{
|
|
4663
4639
|
value: topic.key,
|
|
@@ -4668,9 +4644,9 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4668
4644
|
]
|
|
4669
4645
|
}
|
|
4670
4646
|
),
|
|
4671
|
-
selectedAudience && selectedTopic && !isLoading && /* @__PURE__ */
|
|
4672
|
-
/* @__PURE__ */
|
|
4673
|
-
data?.items.map((item) => /* @__PURE__ */
|
|
4647
|
+
selectedAudience && selectedTopic && !isLoading && /* @__PURE__ */ jsx31(Fragment11, { children: data?.items?.length && data?.items?.length > 0 ? /* @__PURE__ */ jsxs24("div", { className: "space-y-2 pt-4", children: [
|
|
4648
|
+
/* @__PURE__ */ jsx31(Body16m2, { children: "Have a look at:" }),
|
|
4649
|
+
data?.items.map((item) => /* @__PURE__ */ jsx31(
|
|
4674
4650
|
ResourceLink,
|
|
4675
4651
|
{
|
|
4676
4652
|
resource: item,
|
|
@@ -4679,14 +4655,14 @@ var ResourcesQuickFind = ({}) => {
|
|
|
4679
4655
|
},
|
|
4680
4656
|
item.id
|
|
4681
4657
|
))
|
|
4682
|
-
] }) : /* @__PURE__ */
|
|
4658
|
+
] }) : /* @__PURE__ */ jsx31(Body169, { className: "pt-4", children: "No results available, please try a different search" }) })
|
|
4683
4659
|
] }) }) }) })
|
|
4684
4660
|
] }) }) });
|
|
4685
4661
|
};
|
|
4686
4662
|
|
|
4687
4663
|
// src/components/FarmerCluster/FarmerClusterLinkPartner.tsx
|
|
4688
4664
|
import { DesignInput as DesignInput4, DesignButton as DesignButton16 } from "@geowiki/ui";
|
|
4689
|
-
import { useRouter as useRouter9 } from "
|
|
4665
|
+
import { useRouter as useRouter9 } from "@geowiki/core";
|
|
4690
4666
|
import { useEffect as useEffect4, useState as useState16 } from "react";
|
|
4691
4667
|
import {
|
|
4692
4668
|
FormProvider as FormProvider4,
|
|
@@ -4702,7 +4678,7 @@ import {
|
|
|
4702
4678
|
import Swal6 from "sweetalert2";
|
|
4703
4679
|
import { QueryNames as QueryNames7, useClusterLinks } from "@geowiki/core";
|
|
4704
4680
|
import { useQueryClient as useQueryClient7 } from "@tanstack/react-query";
|
|
4705
|
-
import { jsx as
|
|
4681
|
+
import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4706
4682
|
var LinkRow = ({ linkName, url, index }) => {
|
|
4707
4683
|
const methods = useFormContext2();
|
|
4708
4684
|
const {
|
|
@@ -4714,8 +4690,8 @@ var LinkRow = ({ linkName, url, index }) => {
|
|
|
4714
4690
|
const linkErrors = errors?.links;
|
|
4715
4691
|
return /* @__PURE__ */ jsxs25("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
4716
4692
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col min-w-96", children: [
|
|
4717
|
-
/* @__PURE__ */
|
|
4718
|
-
/* @__PURE__ */
|
|
4693
|
+
/* @__PURE__ */ jsx32("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "Link name" }),
|
|
4694
|
+
/* @__PURE__ */ jsx32(
|
|
4719
4695
|
DesignInput4,
|
|
4720
4696
|
{
|
|
4721
4697
|
...register(`links.${index}.name`),
|
|
@@ -4726,7 +4702,7 @@ var LinkRow = ({ linkName, url, index }) => {
|
|
|
4726
4702
|
}
|
|
4727
4703
|
}
|
|
4728
4704
|
),
|
|
4729
|
-
/* @__PURE__ */
|
|
4705
|
+
/* @__PURE__ */ jsx32(
|
|
4730
4706
|
"input",
|
|
4731
4707
|
{
|
|
4732
4708
|
type: "hidden",
|
|
@@ -4734,11 +4710,11 @@ var LinkRow = ({ linkName, url, index }) => {
|
|
|
4734
4710
|
value: index
|
|
4735
4711
|
}
|
|
4736
4712
|
),
|
|
4737
|
-
linkErrors?.[index]?.name && /* @__PURE__ */
|
|
4713
|
+
linkErrors?.[index]?.name && /* @__PURE__ */ jsx32("div", { className: "text-red-500", children: linkErrors?.[index]?.name?.message })
|
|
4738
4714
|
] }),
|
|
4739
4715
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col min-w-96", children: [
|
|
4740
|
-
/* @__PURE__ */
|
|
4741
|
-
/* @__PURE__ */
|
|
4716
|
+
/* @__PURE__ */ jsx32("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "URL" }),
|
|
4717
|
+
/* @__PURE__ */ jsx32(
|
|
4742
4718
|
DesignInput4,
|
|
4743
4719
|
{
|
|
4744
4720
|
...register(`links.${index}.link`),
|
|
@@ -4750,7 +4726,7 @@ var LinkRow = ({ linkName, url, index }) => {
|
|
|
4750
4726
|
}
|
|
4751
4727
|
}
|
|
4752
4728
|
),
|
|
4753
|
-
linkErrors?.[index]?.link && /* @__PURE__ */
|
|
4729
|
+
linkErrors?.[index]?.link && /* @__PURE__ */ jsx32("div", { className: "text-red-500", children: linkErrors?.[index]?.link?.message })
|
|
4754
4730
|
] })
|
|
4755
4731
|
] });
|
|
4756
4732
|
};
|
|
@@ -4765,8 +4741,8 @@ var PartnerRow = ({ partnerName, url, index }) => {
|
|
|
4765
4741
|
const partnerErrors = errors?.partners;
|
|
4766
4742
|
return /* @__PURE__ */ jsxs25("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
4767
4743
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col min-w-96", children: [
|
|
4768
|
-
/* @__PURE__ */
|
|
4769
|
-
/* @__PURE__ */
|
|
4744
|
+
/* @__PURE__ */ jsx32("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "Partner name" }),
|
|
4745
|
+
/* @__PURE__ */ jsx32(
|
|
4770
4746
|
DesignInput4,
|
|
4771
4747
|
{
|
|
4772
4748
|
...register(`partners.${index}.name`),
|
|
@@ -4777,7 +4753,7 @@ var PartnerRow = ({ partnerName, url, index }) => {
|
|
|
4777
4753
|
}
|
|
4778
4754
|
}
|
|
4779
4755
|
),
|
|
4780
|
-
/* @__PURE__ */
|
|
4756
|
+
/* @__PURE__ */ jsx32(
|
|
4781
4757
|
"input",
|
|
4782
4758
|
{
|
|
4783
4759
|
type: "hidden",
|
|
@@ -4785,11 +4761,11 @@ var PartnerRow = ({ partnerName, url, index }) => {
|
|
|
4785
4761
|
value: index
|
|
4786
4762
|
}
|
|
4787
4763
|
),
|
|
4788
|
-
partnerErrors?.[index]?.name && /* @__PURE__ */
|
|
4764
|
+
partnerErrors?.[index]?.name && /* @__PURE__ */ jsx32("div", { className: "text-red-500", children: partnerErrors?.[index]?.name?.message })
|
|
4789
4765
|
] }),
|
|
4790
4766
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col min-w-96", children: [
|
|
4791
|
-
/* @__PURE__ */
|
|
4792
|
-
/* @__PURE__ */
|
|
4767
|
+
/* @__PURE__ */ jsx32("div", { className: "text-xs text-zinc-500 max-md:max-w-full", children: "URL" }),
|
|
4768
|
+
/* @__PURE__ */ jsx32(
|
|
4793
4769
|
DesignInput4,
|
|
4794
4770
|
{
|
|
4795
4771
|
...register(`partners.${index}.link`),
|
|
@@ -4801,7 +4777,7 @@ var PartnerRow = ({ partnerName, url, index }) => {
|
|
|
4801
4777
|
}
|
|
4802
4778
|
}
|
|
4803
4779
|
),
|
|
4804
|
-
partnerErrors?.[index]?.link && /* @__PURE__ */
|
|
4780
|
+
partnerErrors?.[index]?.link && /* @__PURE__ */ jsx32("div", { className: "text-red-500", children: partnerErrors?.[index]?.link?.message })
|
|
4805
4781
|
] })
|
|
4806
4782
|
] });
|
|
4807
4783
|
};
|
|
@@ -4923,7 +4899,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4923
4899
|
});
|
|
4924
4900
|
}, [isLoading]);
|
|
4925
4901
|
if (isLoading) {
|
|
4926
|
-
return /* @__PURE__ */
|
|
4902
|
+
return /* @__PURE__ */ jsx32("div", { children: "Loading..." });
|
|
4927
4903
|
}
|
|
4928
4904
|
return /* @__PURE__ */ jsxs25(FormProvider4, { ...methods, children: [
|
|
4929
4905
|
/* @__PURE__ */ jsxs25(
|
|
@@ -4933,7 +4909,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4933
4909
|
onSubmit: methods.handleSubmit(onSubmit),
|
|
4934
4910
|
children: [
|
|
4935
4911
|
/* @__PURE__ */ jsxs25("div", { className: "right-6 top-6 flex gap-2 absolute", children: [
|
|
4936
|
-
/* @__PURE__ */
|
|
4912
|
+
/* @__PURE__ */ jsx32(
|
|
4937
4913
|
DesignButton16,
|
|
4938
4914
|
{
|
|
4939
4915
|
type: "button",
|
|
@@ -4943,10 +4919,10 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4943
4919
|
children: "Cancel"
|
|
4944
4920
|
}
|
|
4945
4921
|
),
|
|
4946
|
-
/* @__PURE__ */
|
|
4922
|
+
/* @__PURE__ */ jsx32(DesignButton16, { type: "submit", size: "sm", children: "Save" })
|
|
4947
4923
|
] }),
|
|
4948
4924
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col p-6 bg-white rounded-xl max-w-[936px] max-md:px-5", children: [
|
|
4949
|
-
/* @__PURE__ */
|
|
4925
|
+
/* @__PURE__ */ jsx32(
|
|
4950
4926
|
SectionHeader,
|
|
4951
4927
|
{
|
|
4952
4928
|
title: "Links",
|
|
@@ -4955,8 +4931,8 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4955
4931
|
}
|
|
4956
4932
|
),
|
|
4957
4933
|
/* @__PURE__ */ jsxs25("main", { children: [
|
|
4958
|
-
/* @__PURE__ */
|
|
4959
|
-
/* @__PURE__ */
|
|
4934
|
+
/* @__PURE__ */ jsx32("div", { className: "space-y-4", children: linkFields.map((field, index) => /* @__PURE__ */ jsx32("div", { children: /* @__PURE__ */ jsxs25("section", { className: "space-y-4", children: [
|
|
4935
|
+
/* @__PURE__ */ jsx32(
|
|
4960
4936
|
LinkRow,
|
|
4961
4937
|
{
|
|
4962
4938
|
linkName: field.name,
|
|
@@ -4964,7 +4940,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4964
4940
|
index
|
|
4965
4941
|
}
|
|
4966
4942
|
),
|
|
4967
|
-
/* @__PURE__ */
|
|
4943
|
+
/* @__PURE__ */ jsx32(
|
|
4968
4944
|
DesignButton16,
|
|
4969
4945
|
{
|
|
4970
4946
|
variant: "outlineGrey",
|
|
@@ -4977,7 +4953,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4977
4953
|
}
|
|
4978
4954
|
)
|
|
4979
4955
|
] }) }, index)) }),
|
|
4980
|
-
/* @__PURE__ */
|
|
4956
|
+
/* @__PURE__ */ jsx32(
|
|
4981
4957
|
DesignButton16,
|
|
4982
4958
|
{
|
|
4983
4959
|
size: "sm",
|
|
@@ -4989,7 +4965,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4989
4965
|
}
|
|
4990
4966
|
),
|
|
4991
4967
|
/* @__PURE__ */ jsxs25("section", { className: "mt-10", children: [
|
|
4992
|
-
/* @__PURE__ */
|
|
4968
|
+
/* @__PURE__ */ jsx32(
|
|
4993
4969
|
SectionHeader,
|
|
4994
4970
|
{
|
|
4995
4971
|
title: "Partners",
|
|
@@ -4997,8 +4973,8 @@ var FarmerClusterLinkPartner = () => {
|
|
|
4997
4973
|
info: "Does your Farmer Cluster work and collaborate with local or national partners? You can list and add links to your collaborators, friends and partner organisations on your Farmer Cluster profile."
|
|
4998
4974
|
}
|
|
4999
4975
|
),
|
|
5000
|
-
/* @__PURE__ */
|
|
5001
|
-
/* @__PURE__ */
|
|
4976
|
+
/* @__PURE__ */ jsx32("div", { className: "space-y-4", children: partnerFields.map((field, index) => /* @__PURE__ */ jsx32("div", { children: /* @__PURE__ */ jsxs25("section", { className: "space-y-4", children: [
|
|
4977
|
+
/* @__PURE__ */ jsx32(
|
|
5002
4978
|
PartnerRow,
|
|
5003
4979
|
{
|
|
5004
4980
|
partnerName: field.name,
|
|
@@ -5006,7 +4982,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
5006
4982
|
index
|
|
5007
4983
|
}
|
|
5008
4984
|
),
|
|
5009
|
-
/* @__PURE__ */
|
|
4985
|
+
/* @__PURE__ */ jsx32(
|
|
5010
4986
|
DesignButton16,
|
|
5011
4987
|
{
|
|
5012
4988
|
variant: "outlineGrey",
|
|
@@ -5019,7 +4995,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
5019
4995
|
}
|
|
5020
4996
|
)
|
|
5021
4997
|
] }) }, index)) }),
|
|
5022
|
-
/* @__PURE__ */
|
|
4998
|
+
/* @__PURE__ */ jsx32(
|
|
5023
4999
|
DesignButton16,
|
|
5024
5000
|
{
|
|
5025
5001
|
size: "sm",
|
|
@@ -5036,7 +5012,7 @@ var FarmerClusterLinkPartner = () => {
|
|
|
5036
5012
|
]
|
|
5037
5013
|
}
|
|
5038
5014
|
),
|
|
5039
|
-
/* @__PURE__ */
|
|
5015
|
+
/* @__PURE__ */ jsx32(
|
|
5040
5016
|
FarmerClusterPopup,
|
|
5041
5017
|
{
|
|
5042
5018
|
title: "Your changes have been saved",
|
|
@@ -5046,14 +5022,14 @@ var FarmerClusterLinkPartner = () => {
|
|
|
5046
5022
|
setOpen: setSavedPopupOpen
|
|
5047
5023
|
}
|
|
5048
5024
|
),
|
|
5049
|
-
/* @__PURE__ */
|
|
5025
|
+
/* @__PURE__ */ jsx32(CancelPopup, { open: isCancelPopupOpen, setOpen: setCancelPopupOpen })
|
|
5050
5026
|
] });
|
|
5051
5027
|
};
|
|
5052
5028
|
|
|
5053
5029
|
// src/components/FarmerCluster/FarmerClusterCreate.tsx
|
|
5054
5030
|
import { useEffect as useEffect5, useRef as useRef3, useState as useState17 } from "react";
|
|
5055
5031
|
import { FormProvider as FormProvider5, useForm as useForm8 } from "react-hook-form";
|
|
5056
|
-
import dynamic4 from "
|
|
5032
|
+
import { dynamic as dynamic4 } from "@geowiki/core";
|
|
5057
5033
|
import Swal7 from "sweetalert2";
|
|
5058
5034
|
import {
|
|
5059
5035
|
Calendar as Calendar2,
|
|
@@ -5073,7 +5049,7 @@ import {
|
|
|
5073
5049
|
PopoverTrigger as PopoverTrigger2,
|
|
5074
5050
|
RadioGroup as RadioGroup2,
|
|
5075
5051
|
RadioGroupItem as RadioGroupItem2,
|
|
5076
|
-
cn as
|
|
5052
|
+
cn as cn2
|
|
5077
5053
|
} from "@geowiki/ui";
|
|
5078
5054
|
import { useCountries as useCountries3 } from "@geowiki/core";
|
|
5079
5055
|
import { useConfigSettings as useConfigSettings6 } from "@geowiki/core";
|
|
@@ -5081,12 +5057,12 @@ import {
|
|
|
5081
5057
|
ClusterService as ClusterService11
|
|
5082
5058
|
} from "@geowiki/api-proxy";
|
|
5083
5059
|
import { LoaderFull as LoaderFull13 } from "@geowiki/ui";
|
|
5084
|
-
import { useRouter as useRouter10 } from "
|
|
5060
|
+
import { useRouter as useRouter10 } from "@geowiki/core";
|
|
5085
5061
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
|
5086
5062
|
import { format as format2 } from "date-fns";
|
|
5087
5063
|
import { useDropzone as useDropzone5 } from "react-dropzone";
|
|
5088
|
-
import { jsx as
|
|
5089
|
-
var MapWithNoSSR2 = dynamic4(() => import("./cluster-map-
|
|
5064
|
+
import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5065
|
+
var MapWithNoSSR2 = dynamic4(() => import("./cluster-map-GEOLKUZK.mjs"), {
|
|
5090
5066
|
ssr: false
|
|
5091
5067
|
});
|
|
5092
5068
|
var FarmerClusterCreate = () => {
|
|
@@ -5195,11 +5171,11 @@ var FarmerClusterCreate = () => {
|
|
|
5195
5171
|
}
|
|
5196
5172
|
};
|
|
5197
5173
|
if (IsConfigSettingsLoaded || isCountryLoading)
|
|
5198
|
-
return /* @__PURE__ */
|
|
5174
|
+
return /* @__PURE__ */ jsx33(LoaderFull13, {});
|
|
5199
5175
|
return /* @__PURE__ */ jsxs26("div", { className: "relative bg-white rounded-xl", children: [
|
|
5200
|
-
/* @__PURE__ */
|
|
5176
|
+
/* @__PURE__ */ jsx33(FormProvider5, { ...methods, children: /* @__PURE__ */ jsxs26("form", { className: "space-y-8 py-8 px-6", onSubmit: handleSubmit(onSubmit), children: [
|
|
5201
5177
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5202
|
-
/* @__PURE__ */
|
|
5178
|
+
/* @__PURE__ */ jsx33(
|
|
5203
5179
|
SectionHeader,
|
|
5204
5180
|
{
|
|
5205
5181
|
title: "Farmer Cluster details",
|
|
@@ -5207,7 +5183,7 @@ var FarmerClusterCreate = () => {
|
|
|
5207
5183
|
}
|
|
5208
5184
|
),
|
|
5209
5185
|
/* @__PURE__ */ jsxs26("div", { className: "right-6 top-6 flex gap-2 absolute", children: [
|
|
5210
|
-
/* @__PURE__ */
|
|
5186
|
+
/* @__PURE__ */ jsx33(
|
|
5211
5187
|
DesignButton17,
|
|
5212
5188
|
{
|
|
5213
5189
|
type: "button",
|
|
@@ -5217,18 +5193,18 @@ var FarmerClusterCreate = () => {
|
|
|
5217
5193
|
children: "Cancel"
|
|
5218
5194
|
}
|
|
5219
5195
|
),
|
|
5220
|
-
/* @__PURE__ */
|
|
5196
|
+
/* @__PURE__ */ jsx33(DesignButton17, { type: "submit", size: "sm", children: "Save" })
|
|
5221
5197
|
] })
|
|
5222
5198
|
] }),
|
|
5223
5199
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5224
5200
|
/* @__PURE__ */ jsxs26("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-x-4 gap-y-8", children: [
|
|
5225
5201
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5226
|
-
/* @__PURE__ */
|
|
5202
|
+
/* @__PURE__ */ jsx33(
|
|
5227
5203
|
FormField5,
|
|
5228
5204
|
{
|
|
5229
5205
|
control,
|
|
5230
5206
|
name: "name",
|
|
5231
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5207
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(
|
|
5232
5208
|
DesignInput5,
|
|
5233
5209
|
{
|
|
5234
5210
|
...field,
|
|
@@ -5237,21 +5213,21 @@ var FarmerClusterCreate = () => {
|
|
|
5237
5213
|
)
|
|
5238
5214
|
}
|
|
5239
5215
|
),
|
|
5240
|
-
errors.name && /* @__PURE__ */
|
|
5216
|
+
errors.name && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.name.message })
|
|
5241
5217
|
] }),
|
|
5242
5218
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5243
|
-
/* @__PURE__ */
|
|
5219
|
+
/* @__PURE__ */ jsx33(
|
|
5244
5220
|
FormField5,
|
|
5245
5221
|
{
|
|
5246
5222
|
control,
|
|
5247
5223
|
name: "email",
|
|
5248
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5224
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(DesignInput5, { ...field, placeholder: "Contact Email*" })
|
|
5249
5225
|
}
|
|
5250
5226
|
),
|
|
5251
|
-
errors.email && /* @__PURE__ */
|
|
5227
|
+
errors.email && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.email.message })
|
|
5252
5228
|
] }),
|
|
5253
5229
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5254
|
-
/* @__PURE__ */
|
|
5230
|
+
/* @__PURE__ */ jsx33(
|
|
5255
5231
|
FormField5,
|
|
5256
5232
|
{
|
|
5257
5233
|
control,
|
|
@@ -5263,9 +5239,9 @@ var FarmerClusterCreate = () => {
|
|
|
5263
5239
|
onValueChange: field.onChange,
|
|
5264
5240
|
defaultValue: field.value,
|
|
5265
5241
|
children: [
|
|
5266
|
-
/* @__PURE__ */
|
|
5267
|
-
/* @__PURE__ */
|
|
5268
|
-
return /* @__PURE__ */
|
|
5242
|
+
/* @__PURE__ */ jsx33(DesignSelectTrigger4, { variant: "input", className: "pl-0", children: /* @__PURE__ */ jsx33(DesignSelectValue4, { placeholder: "Country" }) }),
|
|
5243
|
+
/* @__PURE__ */ jsx33(DesignSelectContent4, { children: /* @__PURE__ */ jsx33(DesignSelectGroup4, { children: countries?.map((country) => {
|
|
5244
|
+
return /* @__PURE__ */ jsx33(
|
|
5269
5245
|
DesignSelectItem4,
|
|
5270
5246
|
{
|
|
5271
5247
|
value: country.id,
|
|
@@ -5280,10 +5256,10 @@ var FarmerClusterCreate = () => {
|
|
|
5280
5256
|
}
|
|
5281
5257
|
}
|
|
5282
5258
|
),
|
|
5283
|
-
errors.countryId && /* @__PURE__ */
|
|
5259
|
+
errors.countryId && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.countryId.message })
|
|
5284
5260
|
] }),
|
|
5285
5261
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5286
|
-
/* @__PURE__ */
|
|
5262
|
+
/* @__PURE__ */ jsx33(
|
|
5287
5263
|
FormField5,
|
|
5288
5264
|
{
|
|
5289
5265
|
control,
|
|
@@ -5294,10 +5270,10 @@ var FarmerClusterCreate = () => {
|
|
|
5294
5270
|
onValueChange: field.onChange,
|
|
5295
5271
|
defaultValue: field.value,
|
|
5296
5272
|
children: [
|
|
5297
|
-
/* @__PURE__ */
|
|
5298
|
-
/* @__PURE__ */
|
|
5273
|
+
/* @__PURE__ */ jsx33(DesignSelectTrigger4, { variant: "input", className: "pl-0", children: /* @__PURE__ */ jsx33(DesignSelectValue4, { placeholder: "Activity Status" }) }),
|
|
5274
|
+
/* @__PURE__ */ jsx33(DesignSelectContent4, { children: /* @__PURE__ */ jsx33(DesignSelectGroup4, { children: ConfigSettings?.ActivityStatus?.ContentItems?.map(
|
|
5299
5275
|
(activity) => {
|
|
5300
|
-
return /* @__PURE__ */
|
|
5276
|
+
return /* @__PURE__ */ jsx33(
|
|
5301
5277
|
DesignSelectItem4,
|
|
5302
5278
|
{
|
|
5303
5279
|
value: activity.KeyValueItem?.Key?.Text,
|
|
@@ -5312,10 +5288,10 @@ var FarmerClusterCreate = () => {
|
|
|
5312
5288
|
)
|
|
5313
5289
|
}
|
|
5314
5290
|
),
|
|
5315
|
-
errors.activityStatus && /* @__PURE__ */
|
|
5291
|
+
errors.activityStatus && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.activityStatus.message })
|
|
5316
5292
|
] }),
|
|
5317
5293
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5318
|
-
/* @__PURE__ */
|
|
5294
|
+
/* @__PURE__ */ jsx33(
|
|
5319
5295
|
FormField5,
|
|
5320
5296
|
{
|
|
5321
5297
|
control,
|
|
@@ -5323,17 +5299,17 @@ var FarmerClusterCreate = () => {
|
|
|
5323
5299
|
render: ({ field }) => {
|
|
5324
5300
|
var value = field.value && field.value.toString() !== "Invalid Date" ? new Date(field.value) : null;
|
|
5325
5301
|
return /* @__PURE__ */ jsxs26(Popover2, { children: [
|
|
5326
|
-
/* @__PURE__ */
|
|
5302
|
+
/* @__PURE__ */ jsx33(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx33(FormControl5, { children: /* @__PURE__ */ jsx33(
|
|
5327
5303
|
"button",
|
|
5328
5304
|
{
|
|
5329
|
-
className:
|
|
5305
|
+
className: cn2(
|
|
5330
5306
|
"w-full pt-1.5 pb-[5px] text-start bordered-0 text-sm lg:text-base bg-transparent border-0 border-b border-zinc-300 focus-within:border-b-2 focus-within:pb-[4px] focus-within:border-primary focus:ring-0 focus:outline-none",
|
|
5331
5307
|
!value && "text-muted-foreground"
|
|
5332
5308
|
),
|
|
5333
|
-
children: value ? format2(value, "PPP") : /* @__PURE__ */
|
|
5309
|
+
children: value ? format2(value, "PPP") : /* @__PURE__ */ jsx33("span", { children: "Cluster creation date" })
|
|
5334
5310
|
}
|
|
5335
5311
|
) }) }),
|
|
5336
|
-
/* @__PURE__ */
|
|
5312
|
+
/* @__PURE__ */ jsx33(PopoverContent2, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx33(
|
|
5337
5313
|
Calendar2,
|
|
5338
5314
|
{
|
|
5339
5315
|
mode: "single",
|
|
@@ -5347,15 +5323,15 @@ var FarmerClusterCreate = () => {
|
|
|
5347
5323
|
}
|
|
5348
5324
|
}
|
|
5349
5325
|
),
|
|
5350
|
-
errors.dateEstablished && /* @__PURE__ */
|
|
5326
|
+
errors.dateEstablished && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.dateEstablished.message })
|
|
5351
5327
|
] }),
|
|
5352
5328
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5353
|
-
/* @__PURE__ */
|
|
5329
|
+
/* @__PURE__ */ jsx33(
|
|
5354
5330
|
FormField5,
|
|
5355
5331
|
{
|
|
5356
5332
|
control,
|
|
5357
5333
|
name: "noOfFarms",
|
|
5358
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5334
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(
|
|
5359
5335
|
DesignInput5,
|
|
5360
5336
|
{
|
|
5361
5337
|
...field,
|
|
@@ -5365,15 +5341,15 @@ var FarmerClusterCreate = () => {
|
|
|
5365
5341
|
)
|
|
5366
5342
|
}
|
|
5367
5343
|
),
|
|
5368
|
-
errors.noOfFarms && /* @__PURE__ */
|
|
5344
|
+
errors.noOfFarms && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.noOfFarms.message })
|
|
5369
5345
|
] }),
|
|
5370
5346
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5371
|
-
/* @__PURE__ */
|
|
5347
|
+
/* @__PURE__ */ jsx33(
|
|
5372
5348
|
FormField5,
|
|
5373
5349
|
{
|
|
5374
5350
|
control,
|
|
5375
5351
|
name: "totalArea",
|
|
5376
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5352
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(
|
|
5377
5353
|
DesignInput5,
|
|
5378
5354
|
{
|
|
5379
5355
|
...field,
|
|
@@ -5383,15 +5359,15 @@ var FarmerClusterCreate = () => {
|
|
|
5383
5359
|
)
|
|
5384
5360
|
}
|
|
5385
5361
|
),
|
|
5386
|
-
errors.totalArea && /* @__PURE__ */
|
|
5362
|
+
errors.totalArea && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.totalArea.message })
|
|
5387
5363
|
] }),
|
|
5388
5364
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5389
|
-
/* @__PURE__ */
|
|
5365
|
+
/* @__PURE__ */ jsx33(
|
|
5390
5366
|
FormField5,
|
|
5391
5367
|
{
|
|
5392
5368
|
control,
|
|
5393
5369
|
name: "videoUrl",
|
|
5394
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5370
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(
|
|
5395
5371
|
DesignInput5,
|
|
5396
5372
|
{
|
|
5397
5373
|
...field,
|
|
@@ -5401,18 +5377,18 @@ var FarmerClusterCreate = () => {
|
|
|
5401
5377
|
)
|
|
5402
5378
|
}
|
|
5403
5379
|
),
|
|
5404
|
-
errors.videoUrl && /* @__PURE__ */
|
|
5380
|
+
errors.videoUrl && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.videoUrl.message })
|
|
5405
5381
|
] })
|
|
5406
5382
|
] }),
|
|
5407
5383
|
/* @__PURE__ */ jsxs26("div", { className: "pt-12", children: [
|
|
5408
|
-
/* @__PURE__ */
|
|
5384
|
+
/* @__PURE__ */ jsx33(
|
|
5409
5385
|
SectionHeader,
|
|
5410
5386
|
{
|
|
5411
5387
|
title: "Contact Button",
|
|
5412
5388
|
subTitle: "Would you like to be reachable? If you enable <em>Show contact button</em> interested people can send you a message via Recodo."
|
|
5413
5389
|
}
|
|
5414
5390
|
),
|
|
5415
|
-
/* @__PURE__ */
|
|
5391
|
+
/* @__PURE__ */ jsx33(
|
|
5416
5392
|
RadioGroup2,
|
|
5417
5393
|
{
|
|
5418
5394
|
orientation: "horizontal",
|
|
@@ -5421,7 +5397,7 @@ var FarmerClusterCreate = () => {
|
|
|
5421
5397
|
required: true,
|
|
5422
5398
|
children: /* @__PURE__ */ jsxs26("div", { className: "pt-4 flex flex-row gap-x-6", children: [
|
|
5423
5399
|
/* @__PURE__ */ jsxs26("div", { className: "flex items-center space-x-2", children: [
|
|
5424
|
-
/* @__PURE__ */
|
|
5400
|
+
/* @__PURE__ */ jsx33(
|
|
5425
5401
|
RadioGroupItem2,
|
|
5426
5402
|
{
|
|
5427
5403
|
className: "h-5 w-5",
|
|
@@ -5429,10 +5405,10 @@ var FarmerClusterCreate = () => {
|
|
|
5429
5405
|
id: "r1"
|
|
5430
5406
|
}
|
|
5431
5407
|
),
|
|
5432
|
-
/* @__PURE__ */
|
|
5408
|
+
/* @__PURE__ */ jsx33(Label2, { htmlFor: "r1", children: "Show contact button" })
|
|
5433
5409
|
] }),
|
|
5434
5410
|
/* @__PURE__ */ jsxs26("div", { className: "flex items-center space-x-2", children: [
|
|
5435
|
-
/* @__PURE__ */
|
|
5411
|
+
/* @__PURE__ */ jsx33(
|
|
5436
5412
|
RadioGroupItem2,
|
|
5437
5413
|
{
|
|
5438
5414
|
className: "h-5 w-5",
|
|
@@ -5440,15 +5416,15 @@ var FarmerClusterCreate = () => {
|
|
|
5440
5416
|
id: "r2"
|
|
5441
5417
|
}
|
|
5442
5418
|
),
|
|
5443
|
-
/* @__PURE__ */
|
|
5419
|
+
/* @__PURE__ */ jsx33(Label2, { htmlFor: "r2", children: "Hide contact button" })
|
|
5444
5420
|
] })
|
|
5445
5421
|
] })
|
|
5446
5422
|
}
|
|
5447
5423
|
),
|
|
5448
|
-
errors.showContact && /* @__PURE__ */
|
|
5424
|
+
errors.showContact && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.showContact.message })
|
|
5449
5425
|
] }),
|
|
5450
5426
|
/* @__PURE__ */ jsxs26("div", { className: "pt-12", children: [
|
|
5451
|
-
/* @__PURE__ */
|
|
5427
|
+
/* @__PURE__ */ jsx33(
|
|
5452
5428
|
SectionHeader,
|
|
5453
5429
|
{
|
|
5454
5430
|
title: "Cover Photo",
|
|
@@ -5456,7 +5432,7 @@ var FarmerClusterCreate = () => {
|
|
|
5456
5432
|
isRequired: true
|
|
5457
5433
|
}
|
|
5458
5434
|
),
|
|
5459
|
-
/* @__PURE__ */
|
|
5435
|
+
/* @__PURE__ */ jsx33(
|
|
5460
5436
|
FormField5,
|
|
5461
5437
|
{
|
|
5462
5438
|
control,
|
|
@@ -5476,10 +5452,10 @@ var FarmerClusterCreate = () => {
|
|
|
5476
5452
|
field.onChange(selectedFile2);
|
|
5477
5453
|
}
|
|
5478
5454
|
});
|
|
5479
|
-
return /* @__PURE__ */
|
|
5480
|
-
/* @__PURE__ */
|
|
5455
|
+
return /* @__PURE__ */ jsx33("div", { className: "mt-1 sm:mt-0 sm:col-span-2 pt-6", children: /* @__PURE__ */ jsx33("div", { className: "w-[70%] py-12 pb-14 flex justify-center px-6 border-2 border-grey-light border-dashed rounded-md", children: /* @__PURE__ */ jsxs26("div", { ...coverImageDropzone.getRootProps(), children: [
|
|
5456
|
+
/* @__PURE__ */ jsx33("input", { ...coverImageDropzone.getInputProps({}) }),
|
|
5481
5457
|
/* @__PURE__ */ jsxs26("div", { className: "w-full text-center flex-col flex items-center", children: [
|
|
5482
|
-
/* @__PURE__ */
|
|
5458
|
+
/* @__PURE__ */ jsx33("div", { className: "w-16 h-16 bg-accent-primary flex items-center justify-center rounded-full", children: /* @__PURE__ */ jsx33(
|
|
5483
5459
|
"svg",
|
|
5484
5460
|
{
|
|
5485
5461
|
width: "32",
|
|
@@ -5488,12 +5464,12 @@ var FarmerClusterCreate = () => {
|
|
|
5488
5464
|
fill: "none",
|
|
5489
5465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5490
5466
|
className: " fill-primary",
|
|
5491
|
-
children: /* @__PURE__ */
|
|
5467
|
+
children: /* @__PURE__ */ jsx33("path", { d: "M19.667 8V5L25.667 11H22.667C20.5603 11 19.667 10.1067 19.667 8ZM22.667 13C19.4403 13 17.667 11.2267 17.667 8V4H10.667C8.00033 4 6.66699 5.33333 6.66699 8V24C6.66699 26.6667 8.00033 28 10.667 28H22.667C25.3337 28 26.667 26.6667 26.667 24V13H22.667Z" })
|
|
5492
5468
|
}
|
|
5493
5469
|
) }),
|
|
5494
5470
|
/* @__PURE__ */ jsxs26("div", { className: "pt-6 flex justify-center", children: [
|
|
5495
|
-
/* @__PURE__ */
|
|
5496
|
-
/* @__PURE__ */
|
|
5471
|
+
/* @__PURE__ */ jsx33("p", { className: "pr-1 text-lg font-normal", children: "Drop your files here or" }),
|
|
5472
|
+
/* @__PURE__ */ jsx33(
|
|
5497
5473
|
"label",
|
|
5498
5474
|
{
|
|
5499
5475
|
htmlFor: "file-upload",
|
|
@@ -5505,14 +5481,14 @@ var FarmerClusterCreate = () => {
|
|
|
5505
5481
|
}
|
|
5506
5482
|
)
|
|
5507
5483
|
] }),
|
|
5508
|
-
/* @__PURE__ */
|
|
5484
|
+
/* @__PURE__ */ jsx33("p", { className: "text-sm font-normal text-grey pt-2", children: "PNG, JPG, GIF up to 10MB. Landscape mode, recommended size 1920x1080px." })
|
|
5509
5485
|
] })
|
|
5510
5486
|
] }) }) });
|
|
5511
5487
|
}
|
|
5512
5488
|
}
|
|
5513
5489
|
),
|
|
5514
|
-
errors.coverImage && typeof errors.coverImage.message === "string" && /* @__PURE__ */
|
|
5515
|
-
selectedFileUrl ? /* @__PURE__ */
|
|
5490
|
+
errors.coverImage && typeof errors.coverImage.message === "string" && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.coverImage.message }),
|
|
5491
|
+
selectedFileUrl ? /* @__PURE__ */ jsx33("div", { className: "pt-5", children: /* @__PURE__ */ jsx33(
|
|
5516
5492
|
"img",
|
|
5517
5493
|
{
|
|
5518
5494
|
src: selectedFileUrl,
|
|
@@ -5522,14 +5498,14 @@ var FarmerClusterCreate = () => {
|
|
|
5522
5498
|
) }) : null
|
|
5523
5499
|
] }),
|
|
5524
5500
|
/* @__PURE__ */ jsxs26("div", { className: "pt-12", children: [
|
|
5525
|
-
/* @__PURE__ */
|
|
5501
|
+
/* @__PURE__ */ jsx33(
|
|
5526
5502
|
SectionHeader,
|
|
5527
5503
|
{
|
|
5528
5504
|
title: "Location",
|
|
5529
5505
|
subTitle: "Click on the map to place a pin where the Farmer Cluster is located."
|
|
5530
5506
|
}
|
|
5531
5507
|
),
|
|
5532
|
-
/* @__PURE__ */
|
|
5508
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5533
5509
|
"div",
|
|
5534
5510
|
{
|
|
5535
5511
|
className: "pt-6",
|
|
@@ -5538,7 +5514,7 @@ var FarmerClusterCreate = () => {
|
|
|
5538
5514
|
style: {
|
|
5539
5515
|
color: position !== null && position !== void 0 ? "black" : ""
|
|
5540
5516
|
},
|
|
5541
|
-
children: /* @__PURE__ */
|
|
5517
|
+
children: /* @__PURE__ */ jsx33(
|
|
5542
5518
|
MapWithNoSSR2,
|
|
5543
5519
|
{
|
|
5544
5520
|
...{
|
|
@@ -5555,7 +5531,7 @@ var FarmerClusterCreate = () => {
|
|
|
5555
5531
|
) })
|
|
5556
5532
|
] }),
|
|
5557
5533
|
/* @__PURE__ */ jsxs26("div", { className: "pt-12", children: [
|
|
5558
|
-
/* @__PURE__ */
|
|
5534
|
+
/* @__PURE__ */ jsx33(
|
|
5559
5535
|
SectionHeader,
|
|
5560
5536
|
{
|
|
5561
5537
|
title: "About",
|
|
@@ -5564,12 +5540,12 @@ var FarmerClusterCreate = () => {
|
|
|
5564
5540
|
),
|
|
5565
5541
|
/* @__PURE__ */ jsxs26("div", { className: "grid grid-cols-1 gap-6 pt-4", children: [
|
|
5566
5542
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5567
|
-
/* @__PURE__ */
|
|
5543
|
+
/* @__PURE__ */ jsx33(
|
|
5568
5544
|
FormField5,
|
|
5569
5545
|
{
|
|
5570
5546
|
control,
|
|
5571
5547
|
name: "description",
|
|
5572
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5548
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(
|
|
5573
5549
|
"textarea",
|
|
5574
5550
|
{
|
|
5575
5551
|
...field,
|
|
@@ -5580,15 +5556,15 @@ var FarmerClusterCreate = () => {
|
|
|
5580
5556
|
)
|
|
5581
5557
|
}
|
|
5582
5558
|
),
|
|
5583
|
-
errors.description && /* @__PURE__ */
|
|
5559
|
+
errors.description && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.description.message })
|
|
5584
5560
|
] }),
|
|
5585
5561
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5586
|
-
/* @__PURE__ */
|
|
5562
|
+
/* @__PURE__ */ jsx33(
|
|
5587
5563
|
FormField5,
|
|
5588
5564
|
{
|
|
5589
5565
|
control,
|
|
5590
5566
|
name: "outcomes",
|
|
5591
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5567
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(
|
|
5592
5568
|
"textarea",
|
|
5593
5569
|
{
|
|
5594
5570
|
...field,
|
|
@@ -5599,15 +5575,15 @@ var FarmerClusterCreate = () => {
|
|
|
5599
5575
|
)
|
|
5600
5576
|
}
|
|
5601
5577
|
),
|
|
5602
|
-
errors.outcomes && /* @__PURE__ */
|
|
5578
|
+
errors.outcomes && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.outcomes.message })
|
|
5603
5579
|
] }),
|
|
5604
5580
|
/* @__PURE__ */ jsxs26("div", { children: [
|
|
5605
|
-
/* @__PURE__ */
|
|
5581
|
+
/* @__PURE__ */ jsx33(
|
|
5606
5582
|
FormField5,
|
|
5607
5583
|
{
|
|
5608
5584
|
control,
|
|
5609
5585
|
name: "bioDiversityEnhancingMeasures",
|
|
5610
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5586
|
+
render: ({ field }) => /* @__PURE__ */ jsx33(
|
|
5611
5587
|
"textarea",
|
|
5612
5588
|
{
|
|
5613
5589
|
...field,
|
|
@@ -5618,12 +5594,12 @@ var FarmerClusterCreate = () => {
|
|
|
5618
5594
|
)
|
|
5619
5595
|
}
|
|
5620
5596
|
),
|
|
5621
|
-
errors.bioDiversityEnhancingMeasures && /* @__PURE__ */
|
|
5597
|
+
errors.bioDiversityEnhancingMeasures && /* @__PURE__ */ jsx33("span", { className: "text-red-500", children: errors.bioDiversityEnhancingMeasures.message })
|
|
5622
5598
|
] })
|
|
5623
5599
|
] })
|
|
5624
5600
|
] }),
|
|
5625
5601
|
/* @__PURE__ */ jsxs26("div", { className: "py-12", children: [
|
|
5626
|
-
/* @__PURE__ */
|
|
5602
|
+
/* @__PURE__ */ jsx33(
|
|
5627
5603
|
SectionHeader,
|
|
5628
5604
|
{
|
|
5629
5605
|
title: "Characteristics",
|
|
@@ -5631,7 +5607,7 @@ var FarmerClusterCreate = () => {
|
|
|
5631
5607
|
}
|
|
5632
5608
|
),
|
|
5633
5609
|
/* @__PURE__ */ jsxs26("div", { className: "flex flex-col justify-start items-start gap-y-8 pt-6", children: [
|
|
5634
|
-
/* @__PURE__ */
|
|
5610
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5635
5611
|
CharacteristicsSection,
|
|
5636
5612
|
{
|
|
5637
5613
|
title: "Farming Systems",
|
|
@@ -5639,7 +5615,7 @@ var FarmerClusterCreate = () => {
|
|
|
5639
5615
|
name: "farmingSystem"
|
|
5640
5616
|
}
|
|
5641
5617
|
) }),
|
|
5642
|
-
/* @__PURE__ */
|
|
5618
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5643
5619
|
CharacteristicsSection,
|
|
5644
5620
|
{
|
|
5645
5621
|
title: "Main agricultural areas",
|
|
@@ -5647,7 +5623,7 @@ var FarmerClusterCreate = () => {
|
|
|
5647
5623
|
name: "mainAgriculturalAreas"
|
|
5648
5624
|
}
|
|
5649
5625
|
) }),
|
|
5650
|
-
/* @__PURE__ */
|
|
5626
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5651
5627
|
CharacteristicsSection,
|
|
5652
5628
|
{
|
|
5653
5629
|
title: "Main crops",
|
|
@@ -5655,7 +5631,7 @@ var FarmerClusterCreate = () => {
|
|
|
5655
5631
|
name: "mainCrops"
|
|
5656
5632
|
}
|
|
5657
5633
|
) }),
|
|
5658
|
-
/* @__PURE__ */
|
|
5634
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5659
5635
|
CharacteristicsSection,
|
|
5660
5636
|
{
|
|
5661
5637
|
title: "Livestock",
|
|
@@ -5663,7 +5639,7 @@ var FarmerClusterCreate = () => {
|
|
|
5663
5639
|
name: "liveStock"
|
|
5664
5640
|
}
|
|
5665
5641
|
) }),
|
|
5666
|
-
/* @__PURE__ */
|
|
5642
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5667
5643
|
CharacteristicsSection,
|
|
5668
5644
|
{
|
|
5669
5645
|
title: "Other landscape elements",
|
|
@@ -5671,7 +5647,7 @@ var FarmerClusterCreate = () => {
|
|
|
5671
5647
|
name: "otherLandScapeElements"
|
|
5672
5648
|
}
|
|
5673
5649
|
) }),
|
|
5674
|
-
/* @__PURE__ */
|
|
5650
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5675
5651
|
CharacteristicsSection,
|
|
5676
5652
|
{
|
|
5677
5653
|
title: "Hunting management",
|
|
@@ -5679,7 +5655,7 @@ var FarmerClusterCreate = () => {
|
|
|
5679
5655
|
name: "huntingManagement"
|
|
5680
5656
|
}
|
|
5681
5657
|
) }),
|
|
5682
|
-
/* @__PURE__ */
|
|
5658
|
+
/* @__PURE__ */ jsx33("div", { children: /* @__PURE__ */ jsx33(
|
|
5683
5659
|
CharacteristicsSection,
|
|
5684
5660
|
{
|
|
5685
5661
|
title: "Cluster funding",
|
|
@@ -5691,7 +5667,7 @@ var FarmerClusterCreate = () => {
|
|
|
5691
5667
|
] })
|
|
5692
5668
|
] })
|
|
5693
5669
|
] }) }),
|
|
5694
|
-
/* @__PURE__ */
|
|
5670
|
+
/* @__PURE__ */ jsx33(
|
|
5695
5671
|
FarmerClusterPopup,
|
|
5696
5672
|
{
|
|
5697
5673
|
title: "Your information is being processed",
|
|
@@ -5709,8 +5685,8 @@ import { ResourceService } from "@geowiki/api-proxy";
|
|
|
5709
5685
|
import AsyncSelect from "react-select/async";
|
|
5710
5686
|
import { customSelectInputStyles } from "@geowiki/ui/src/lib/utils";
|
|
5711
5687
|
import Select from "react-select";
|
|
5712
|
-
import { useRouter as useRouter11 } from "
|
|
5713
|
-
import { jsx as
|
|
5688
|
+
import { useRouter as useRouter11 } from "@geowiki/core";
|
|
5689
|
+
import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5714
5690
|
var SearchFilter = ({ filter, setFilter }) => {
|
|
5715
5691
|
const router = useRouter11();
|
|
5716
5692
|
const inputRef = React7.useRef(null);
|
|
@@ -5894,7 +5870,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5894
5870
|
];
|
|
5895
5871
|
return /* @__PURE__ */ jsxs27("div", { children: [
|
|
5896
5872
|
/* @__PURE__ */ jsxs27("form", { className: "pt-4", onSubmit: (e) => onSearch(e), children: [
|
|
5897
|
-
/* @__PURE__ */
|
|
5873
|
+
/* @__PURE__ */ jsx34(
|
|
5898
5874
|
"label",
|
|
5899
5875
|
{
|
|
5900
5876
|
htmlFor: "default-search",
|
|
@@ -5903,7 +5879,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5903
5879
|
}
|
|
5904
5880
|
),
|
|
5905
5881
|
/* @__PURE__ */ jsxs27("div", { className: "relative", children: [
|
|
5906
|
-
/* @__PURE__ */
|
|
5882
|
+
/* @__PURE__ */ jsx34("div", { className: "flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none", children: /* @__PURE__ */ jsx34(
|
|
5907
5883
|
"svg",
|
|
5908
5884
|
{
|
|
5909
5885
|
"aria-hidden": "true",
|
|
@@ -5912,7 +5888,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5912
5888
|
stroke: "currentColor",
|
|
5913
5889
|
viewBox: "0 0 24 24",
|
|
5914
5890
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5915
|
-
children: /* @__PURE__ */
|
|
5891
|
+
children: /* @__PURE__ */ jsx34(
|
|
5916
5892
|
"path",
|
|
5917
5893
|
{
|
|
5918
5894
|
strokeLinecap: "round",
|
|
@@ -5923,7 +5899,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5923
5899
|
)
|
|
5924
5900
|
}
|
|
5925
5901
|
) }),
|
|
5926
|
-
/* @__PURE__ */
|
|
5902
|
+
/* @__PURE__ */ jsx34(
|
|
5927
5903
|
"input",
|
|
5928
5904
|
{
|
|
5929
5905
|
ref: inputRef,
|
|
@@ -5935,7 +5911,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5935
5911
|
onChange: (e) => setSearchText(e.target.value)
|
|
5936
5912
|
}
|
|
5937
5913
|
),
|
|
5938
|
-
searchText && searchText.length ? /* @__PURE__ */
|
|
5914
|
+
searchText && searchText.length ? /* @__PURE__ */ jsx34(
|
|
5939
5915
|
"div",
|
|
5940
5916
|
{
|
|
5941
5917
|
onClick: () => clearSearch(),
|
|
@@ -5943,11 +5919,11 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5943
5919
|
children: "Clear"
|
|
5944
5920
|
}
|
|
5945
5921
|
) : null,
|
|
5946
|
-
/* @__PURE__ */
|
|
5922
|
+
/* @__PURE__ */ jsx34("button", { className: "text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2", children: "Search" })
|
|
5947
5923
|
] })
|
|
5948
5924
|
] }),
|
|
5949
|
-
/* @__PURE__ */
|
|
5950
|
-
/* @__PURE__ */
|
|
5925
|
+
/* @__PURE__ */ jsx34("div", { className: "w-full mt-4", children: /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsxs27("div", { className: "grid grid-cols-2 md:grid-cols-3 xl:grid-cols-5 gap-4", children: [
|
|
5926
|
+
/* @__PURE__ */ jsx34(
|
|
5951
5927
|
Select,
|
|
5952
5928
|
{
|
|
5953
5929
|
placeholder: "Most Recent",
|
|
@@ -5957,7 +5933,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5957
5933
|
isClearable: true
|
|
5958
5934
|
}
|
|
5959
5935
|
),
|
|
5960
|
-
/* @__PURE__ */
|
|
5936
|
+
/* @__PURE__ */ jsx34(
|
|
5961
5937
|
AsyncSelect,
|
|
5962
5938
|
{
|
|
5963
5939
|
placeholder: "Language",
|
|
@@ -5970,7 +5946,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5970
5946
|
isClearable: true
|
|
5971
5947
|
}
|
|
5972
5948
|
),
|
|
5973
|
-
/* @__PURE__ */
|
|
5949
|
+
/* @__PURE__ */ jsx34(
|
|
5974
5950
|
AsyncSelect,
|
|
5975
5951
|
{
|
|
5976
5952
|
placeholder: "Topic",
|
|
@@ -5983,7 +5959,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5983
5959
|
isClearable: true
|
|
5984
5960
|
}
|
|
5985
5961
|
),
|
|
5986
|
-
/* @__PURE__ */
|
|
5962
|
+
/* @__PURE__ */ jsx34(
|
|
5987
5963
|
AsyncSelect,
|
|
5988
5964
|
{
|
|
5989
5965
|
placeholder: "Resource Type",
|
|
@@ -5996,7 +5972,7 @@ var SearchFilter = ({ filter, setFilter }) => {
|
|
|
5996
5972
|
isClearable: true
|
|
5997
5973
|
}
|
|
5998
5974
|
),
|
|
5999
|
-
/* @__PURE__ */
|
|
5975
|
+
/* @__PURE__ */ jsx34(
|
|
6000
5976
|
AsyncSelect,
|
|
6001
5977
|
{
|
|
6002
5978
|
placeholder: "Audience",
|
|
@@ -6027,7 +6003,7 @@ import {
|
|
|
6027
6003
|
} from "@geowiki/ui";
|
|
6028
6004
|
import { useLanguages as useLanguages2, useResourceType as useResourceType2 } from "@geowiki/core";
|
|
6029
6005
|
import { useState as useState19 } from "react";
|
|
6030
|
-
import { jsx as
|
|
6006
|
+
import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6031
6007
|
var ResourceItem = ({ resource }) => {
|
|
6032
6008
|
const [open, setOpen] = useState19(false);
|
|
6033
6009
|
const languages = useLanguages2();
|
|
@@ -6044,15 +6020,15 @@ var ResourceItem = ({ resource }) => {
|
|
|
6044
6020
|
onClick: () => setOpen(true),
|
|
6045
6021
|
children: [
|
|
6046
6022
|
/* @__PURE__ */ jsxs28("div", { className: "pb-6 flex items-start justify-start ", children: [
|
|
6047
|
-
/* @__PURE__ */
|
|
6048
|
-
/* @__PURE__ */
|
|
6023
|
+
/* @__PURE__ */ jsx35(ResourceIcon, { type: resource.resourceType }),
|
|
6024
|
+
/* @__PURE__ */ jsx35("div", { className: "absolute right-6 flex items-start justify-start", children: /* @__PURE__ */ jsx35("div", { className: "py-[5px] px-2.5 bg-white rounded-2xl items-center justify-center gap-1", children: /* @__PURE__ */ jsx35(Body15sb, { className: "text-primary", children: language }) }) })
|
|
6049
6025
|
] }),
|
|
6050
|
-
/* @__PURE__ */
|
|
6026
|
+
/* @__PURE__ */ jsx35(Body16sb2, { className: "text-primary", children: type?.value }),
|
|
6051
6027
|
/* @__PURE__ */ jsxs28("div", { className: "w-full pt-2 space-y-2 flex-col justify-start items-start inline-flex lg:space-y-4", children: [
|
|
6052
|
-
/* @__PURE__ */
|
|
6053
|
-
/* @__PURE__ */
|
|
6028
|
+
/* @__PURE__ */ jsx35(H6Design, { className: "w-full line-clamp-4", children: resource.title }),
|
|
6029
|
+
/* @__PURE__ */ jsx35(Body1610, { className: "line-clamp-3 lg:line-clamp-4", children: resource.description })
|
|
6054
6030
|
] }),
|
|
6055
|
-
/* @__PURE__ */
|
|
6031
|
+
/* @__PURE__ */ jsx35("div", { className: "absolute bottom-6 ", children: resource.link && /* @__PURE__ */ jsx35(
|
|
6056
6032
|
DesignButton18,
|
|
6057
6033
|
{
|
|
6058
6034
|
variant: "externalLink",
|
|
@@ -6062,16 +6038,16 @@ var ResourceItem = ({ resource }) => {
|
|
|
6062
6038
|
children: "View Resource"
|
|
6063
6039
|
}
|
|
6064
6040
|
) }),
|
|
6065
|
-
/* @__PURE__ */
|
|
6041
|
+
/* @__PURE__ */ jsx35(ResourceView_default, { resource, open, setOpen })
|
|
6066
6042
|
]
|
|
6067
6043
|
}
|
|
6068
6044
|
);
|
|
6069
6045
|
};
|
|
6070
6046
|
|
|
6071
6047
|
// src/components/Resource/ResourceCard.tsx
|
|
6072
|
-
import { jsx as
|
|
6048
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
6073
6049
|
var ResourceCard = ({ resource }) => {
|
|
6074
|
-
return /* @__PURE__ */
|
|
6050
|
+
return /* @__PURE__ */ jsx36(motion.li, { variants: itemVariants, children: /* @__PURE__ */ jsx36(ResourceItem, { resource }) }, resource.id);
|
|
6075
6051
|
};
|
|
6076
6052
|
|
|
6077
6053
|
// src/components/Resource/ResourceCreate.tsx
|
|
@@ -6086,7 +6062,7 @@ import { OldCustomInput } from "@geowiki/ui";
|
|
|
6086
6062
|
import { MultiSelect } from "@geowiki/ui";
|
|
6087
6063
|
import { MultiSelectFreeText } from "@geowiki/ui";
|
|
6088
6064
|
import { TextArea } from "@geowiki/ui";
|
|
6089
|
-
import { jsx as
|
|
6065
|
+
import { jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6090
6066
|
var ResourceCreate = ({ resource }) => {
|
|
6091
6067
|
const { data: audience } = useAudience3();
|
|
6092
6068
|
const { data: topic } = useTopic3();
|
|
@@ -6148,9 +6124,9 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6148
6124
|
});
|
|
6149
6125
|
}
|
|
6150
6126
|
};
|
|
6151
|
-
return /* @__PURE__ */
|
|
6152
|
-
/* @__PURE__ */
|
|
6153
|
-
/* @__PURE__ */
|
|
6127
|
+
return /* @__PURE__ */ jsx37("div", { className: "p-4", children: /* @__PURE__ */ jsxs29("form", { className: "space-y-8 pt-4", onSubmit: handleSubmit(onSubmit), children: [
|
|
6128
|
+
/* @__PURE__ */ jsx37("div", { children: /* @__PURE__ */ jsxs29("div", { className: "flex justify-end", children: [
|
|
6129
|
+
/* @__PURE__ */ jsx37(
|
|
6154
6130
|
PrimaryButton,
|
|
6155
6131
|
{
|
|
6156
6132
|
type: "button",
|
|
@@ -6159,10 +6135,10 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6159
6135
|
onClick: () => location.href = "/admin/resource"
|
|
6160
6136
|
}
|
|
6161
6137
|
),
|
|
6162
|
-
/* @__PURE__ */
|
|
6138
|
+
/* @__PURE__ */ jsx37(PrimaryButton, { type: "submit", label: "Save", style: "primary" })
|
|
6163
6139
|
] }) }),
|
|
6164
|
-
/* @__PURE__ */
|
|
6165
|
-
/* @__PURE__ */
|
|
6140
|
+
/* @__PURE__ */ jsx37("div", { children: /* @__PURE__ */ jsxs29("div", { className: "grid grid-cols-6 gap-6", children: [
|
|
6141
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 ", children: /* @__PURE__ */ jsx37(
|
|
6166
6142
|
OldCustomInput,
|
|
6167
6143
|
{
|
|
6168
6144
|
name: "title",
|
|
@@ -6176,7 +6152,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6176
6152
|
isPlaceholderItalic: true
|
|
6177
6153
|
}
|
|
6178
6154
|
) }),
|
|
6179
|
-
/* @__PURE__ */
|
|
6155
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6", children: /* @__PURE__ */ jsx37(
|
|
6180
6156
|
TextArea,
|
|
6181
6157
|
{
|
|
6182
6158
|
infoText: "description",
|
|
@@ -6191,7 +6167,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6191
6167
|
row: 5
|
|
6192
6168
|
}
|
|
6193
6169
|
) }),
|
|
6194
|
-
/* @__PURE__ */
|
|
6170
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6195
6171
|
OldCustomInput,
|
|
6196
6172
|
{
|
|
6197
6173
|
name: "author",
|
|
@@ -6205,7 +6181,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6205
6181
|
type: "text"
|
|
6206
6182
|
}
|
|
6207
6183
|
) }),
|
|
6208
|
-
/* @__PURE__ */
|
|
6184
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6209
6185
|
OldCustomInput,
|
|
6210
6186
|
{
|
|
6211
6187
|
name: "link",
|
|
@@ -6219,7 +6195,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6219
6195
|
type: "text"
|
|
6220
6196
|
}
|
|
6221
6197
|
) }),
|
|
6222
|
-
/* @__PURE__ */
|
|
6198
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6223
6199
|
OldCustomInput,
|
|
6224
6200
|
{
|
|
6225
6201
|
name: "publisher",
|
|
@@ -6233,7 +6209,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6233
6209
|
type: "text"
|
|
6234
6210
|
}
|
|
6235
6211
|
) }),
|
|
6236
|
-
/* @__PURE__ */
|
|
6212
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6237
6213
|
OldCustomInput,
|
|
6238
6214
|
{
|
|
6239
6215
|
name: "publishedDate",
|
|
@@ -6247,7 +6223,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6247
6223
|
type: "date"
|
|
6248
6224
|
}
|
|
6249
6225
|
) }),
|
|
6250
|
-
/* @__PURE__ */
|
|
6226
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6251
6227
|
MultiSelect,
|
|
6252
6228
|
{
|
|
6253
6229
|
name: "resourceType",
|
|
@@ -6261,7 +6237,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6261
6237
|
displayText: "Resource Type"
|
|
6262
6238
|
}
|
|
6263
6239
|
) }),
|
|
6264
|
-
/* @__PURE__ */
|
|
6240
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6265
6241
|
MultiSelectFreeText,
|
|
6266
6242
|
{
|
|
6267
6243
|
control,
|
|
@@ -6273,7 +6249,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6273
6249
|
displayText: "Language"
|
|
6274
6250
|
}
|
|
6275
6251
|
) }),
|
|
6276
|
-
/* @__PURE__ */
|
|
6252
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6277
6253
|
MultiSelectFreeText,
|
|
6278
6254
|
{
|
|
6279
6255
|
control,
|
|
@@ -6285,7 +6261,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6285
6261
|
displayText: "Keyword"
|
|
6286
6262
|
}
|
|
6287
6263
|
) }),
|
|
6288
|
-
/* @__PURE__ */
|
|
6264
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6289
6265
|
MultiSelect,
|
|
6290
6266
|
{
|
|
6291
6267
|
name: "topic",
|
|
@@ -6298,7 +6274,7 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6298
6274
|
displayText: "Topic"
|
|
6299
6275
|
}
|
|
6300
6276
|
) }),
|
|
6301
|
-
/* @__PURE__ */
|
|
6277
|
+
/* @__PURE__ */ jsx37("div", { className: "col-span-6 sm:col-span-6 lg:col-span-2", children: /* @__PURE__ */ jsx37(
|
|
6302
6278
|
MultiSelect,
|
|
6303
6279
|
{
|
|
6304
6280
|
name: "audience",
|
|
@@ -6316,9 +6292,9 @@ var ResourceCreate = ({ resource }) => {
|
|
|
6316
6292
|
};
|
|
6317
6293
|
|
|
6318
6294
|
// src/components/Resource/ResourceEdit.tsx
|
|
6319
|
-
import { jsx as
|
|
6295
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
6320
6296
|
var ResourceEdit = (_props) => {
|
|
6321
|
-
return /* @__PURE__ */
|
|
6297
|
+
return /* @__PURE__ */ jsx38("div", { children: "Resource Edit" });
|
|
6322
6298
|
};
|
|
6323
6299
|
|
|
6324
6300
|
// src/components/Resource/ResourceList.tsx
|
|
@@ -6328,12 +6304,12 @@ import { useResourceType as useResourceType4 } from "@geowiki/core";
|
|
|
6328
6304
|
import { useTopic as useTopic4 } from "@geowiki/core";
|
|
6329
6305
|
import { QueryNames as QueryNames8 } from "@geowiki/core";
|
|
6330
6306
|
import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
|
|
6331
|
-
import { useTheme as useTheme4 } from "
|
|
6307
|
+
import { useTheme as useTheme4 } from "@geowiki/core";
|
|
6332
6308
|
import { useState as useState20 } from "react";
|
|
6333
6309
|
import DataTable4 from "react-data-table-component";
|
|
6334
6310
|
import Swal9 from "sweetalert2";
|
|
6335
6311
|
import { DeleteButton as DeleteButton4, tableDesigntyles as tableDesigntyles3 } from "@geowiki/ui";
|
|
6336
|
-
import { jsx as
|
|
6312
|
+
import { jsx as jsx39, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6337
6313
|
var ResourceList = () => {
|
|
6338
6314
|
const { theme } = useTheme4();
|
|
6339
6315
|
const queryClient = useQueryClient8();
|
|
@@ -6401,16 +6377,16 @@ var ResourceList = () => {
|
|
|
6401
6377
|
{
|
|
6402
6378
|
name: "Delete",
|
|
6403
6379
|
button: true,
|
|
6404
|
-
cell: (row) => /* @__PURE__ */
|
|
6380
|
+
cell: (row) => /* @__PURE__ */ jsx39(DeleteButton4, { onClick: () => deleteWithId(row.id) }),
|
|
6405
6381
|
right: true
|
|
6406
6382
|
}
|
|
6407
6383
|
];
|
|
6408
6384
|
const paginationComponentOptions = {
|
|
6409
6385
|
noRowsPerPage: true
|
|
6410
6386
|
};
|
|
6411
|
-
return /* @__PURE__ */
|
|
6412
|
-
/* @__PURE__ */
|
|
6413
|
-
/* @__PURE__ */
|
|
6387
|
+
return /* @__PURE__ */ jsx39("div", { children: /* @__PURE__ */ jsx39("div", { children: /* @__PURE__ */ jsx39("div", { className: "pb-8 mb-5", children: /* @__PURE__ */ jsxs30("div", { children: [
|
|
6388
|
+
/* @__PURE__ */ jsx39("div", { className: "pb-5", children: /* @__PURE__ */ jsx39("div", { className: "flex items-center justify-between flex-wrap sm:flex-nowrap", children: /* @__PURE__ */ jsx39("div", { className: "text-2xl lg:text-[1.75rem] font-semibold leading-[120%]", children: "Resource" }) }) }),
|
|
6389
|
+
/* @__PURE__ */ jsx39(
|
|
6414
6390
|
DataTable4,
|
|
6415
6391
|
{
|
|
6416
6392
|
theme: theme === "dark" ? "dark" : "default",
|
|
@@ -6431,34 +6407,34 @@ var ResourceList = () => {
|
|
|
6431
6407
|
|
|
6432
6408
|
// src/components/Resource/ResourceDisplayList.tsx
|
|
6433
6409
|
import { v4 as v43 } from "uuid";
|
|
6434
|
-
import { jsx as
|
|
6410
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
6435
6411
|
var ResourceDisplayList = ({ resources }) => {
|
|
6436
|
-
return /* @__PURE__ */
|
|
6412
|
+
return /* @__PURE__ */ jsx40("div", { className: "px-0", children: /* @__PURE__ */ jsx40("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: resources.map((resource) => /* @__PURE__ */ jsx40(ResourceItem, { resource }, v43())) }) });
|
|
6437
6413
|
};
|
|
6438
6414
|
|
|
6439
6415
|
// src/components/Resource/subtitle-h3-resource-collections.tsx
|
|
6440
6416
|
import { Body18 as Body183, H3Design as H3Design3 } from "@geowiki/ui";
|
|
6441
6417
|
|
|
6442
6418
|
// src/components/Resource/ResourceCollectionItem.tsx
|
|
6443
|
-
import Link5 from "
|
|
6419
|
+
import { Link as Link5 } from "@geowiki/core";
|
|
6444
6420
|
import { Body16sb as Body16sb3, H6Design as H6Design2, Body16 as Body1611, DesignButton as DesignButton19, Icon } from "@geowiki/ui";
|
|
6445
6421
|
import { ArrowRight } from "lucide-react";
|
|
6446
|
-
import { jsx as
|
|
6422
|
+
import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6447
6423
|
var ResourceCollectionItem = (props) => {
|
|
6448
6424
|
return /* @__PURE__ */ jsxs31("div", { className: "w-auto h-[19.375rem] relative bg-neutral-100 rounded-xl p-6 lg:h-[27.5rem]", children: [
|
|
6449
|
-
/* @__PURE__ */
|
|
6450
|
-
/* @__PURE__ */
|
|
6425
|
+
/* @__PURE__ */ jsx41("div", { className: "pb-2 flex items-start justify-start lg:pb-6", children: /* @__PURE__ */ jsx41(Icon, { type: props.icon }) }),
|
|
6426
|
+
/* @__PURE__ */ jsx41(Body16sb3, { className: "text-primary", children: props.type }),
|
|
6451
6427
|
/* @__PURE__ */ jsxs31("div", { className: "pt-2 flex-col justify-start items-start space-y-2 inline-flex lg:space-y-4", children: [
|
|
6452
|
-
/* @__PURE__ */
|
|
6453
|
-
/* @__PURE__ */
|
|
6428
|
+
/* @__PURE__ */ jsx41(H6Design2, { className: "line-clamp-2", children: props.title }),
|
|
6429
|
+
/* @__PURE__ */ jsx41(Body1611, { className: "line-clamp-6", children: props.text })
|
|
6454
6430
|
] }),
|
|
6455
|
-
/* @__PURE__ */
|
|
6431
|
+
/* @__PURE__ */ jsx41("div", { className: "absolute bottom-6 ", children: props.button?.link && /* @__PURE__ */ jsx41(DesignButton19, { variant: "circle", className: "w-12 h-12 p-2 lg:p-2", children: /* @__PURE__ */ jsx41(
|
|
6456
6432
|
Link5,
|
|
6457
6433
|
{
|
|
6458
6434
|
href: props.button.link,
|
|
6459
6435
|
target: props.button.isNewTab ? "_blank" : "_self",
|
|
6460
6436
|
rel: "noreferrer",
|
|
6461
|
-
children: /* @__PURE__ */
|
|
6437
|
+
children: /* @__PURE__ */ jsx41(ArrowRight, { className: "h-6 w-10" })
|
|
6462
6438
|
}
|
|
6463
6439
|
) }) })
|
|
6464
6440
|
] });
|
|
@@ -6466,11 +6442,11 @@ var ResourceCollectionItem = (props) => {
|
|
|
6466
6442
|
|
|
6467
6443
|
// src/components/Resource/ResourceCollectionDisplayList.tsx
|
|
6468
6444
|
import { v4 as v44 } from "uuid";
|
|
6469
|
-
import { jsx as
|
|
6445
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6470
6446
|
var ResourceCollectionDisplayList = ({
|
|
6471
6447
|
resourceCollections
|
|
6472
6448
|
}) => {
|
|
6473
|
-
return /* @__PURE__ */
|
|
6449
|
+
return /* @__PURE__ */ jsx42("div", { className: "px-0", children: /* @__PURE__ */ jsx42("div", { className: "grid grid-cols-1 lg:grid-cols-4 gap-6", children: resourceCollections.map((resourceCollection) => /* @__PURE__ */ jsx42(
|
|
6474
6450
|
ResourceCollectionItem,
|
|
6475
6451
|
{
|
|
6476
6452
|
title: resourceCollection.title,
|
|
@@ -6484,7 +6460,7 @@ var ResourceCollectionDisplayList = ({
|
|
|
6484
6460
|
};
|
|
6485
6461
|
|
|
6486
6462
|
// src/components/Resource/subtitle-h3-resource-collections.tsx
|
|
6487
|
-
import { jsx as
|
|
6463
|
+
import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6488
6464
|
var SubtitleH3ResourceCollections = ({
|
|
6489
6465
|
title,
|
|
6490
6466
|
subtitle,
|
|
@@ -6497,11 +6473,11 @@ var SubtitleH3ResourceCollections = ({
|
|
|
6497
6473
|
"data-component": "SubtitleH3ResourceCollections",
|
|
6498
6474
|
children: [
|
|
6499
6475
|
/* @__PURE__ */ jsxs32("div", { className: "lg:flex lg:justify-between lg:items-start", children: [
|
|
6500
|
-
/* @__PURE__ */
|
|
6501
|
-
/* @__PURE__ */
|
|
6502
|
-
/* @__PURE__ */
|
|
6476
|
+
/* @__PURE__ */ jsx43(Body183, { className: "lg:w-[15%]", children: subtitle }),
|
|
6477
|
+
/* @__PURE__ */ jsx43(H3Design3, { className: " pt-2 pb-6 lg:py-0 lg:w-[50%]", children: title }),
|
|
6478
|
+
/* @__PURE__ */ jsx43("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
6503
6479
|
] }),
|
|
6504
|
-
/* @__PURE__ */
|
|
6480
|
+
/* @__PURE__ */ jsx43(
|
|
6505
6481
|
ResourceCollectionDisplayList,
|
|
6506
6482
|
{
|
|
6507
6483
|
resourceCollections
|
|
@@ -6519,9 +6495,9 @@ import {
|
|
|
6519
6495
|
useResourceType as useResourceType5,
|
|
6520
6496
|
useTopic as useTopic5
|
|
6521
6497
|
} from "@geowiki/core";
|
|
6522
|
-
import { useRouter as useRouter12 } from "
|
|
6498
|
+
import { useRouter as useRouter12 } from "@geowiki/core";
|
|
6523
6499
|
import XCircleIcon2 from "@heroicons/react/24/outline/XCircleIcon";
|
|
6524
|
-
import { jsx as
|
|
6500
|
+
import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6525
6501
|
var ResourcesSelectedTags = () => {
|
|
6526
6502
|
const router = useRouter12();
|
|
6527
6503
|
const selectedLanguages = router.query.language;
|
|
@@ -6554,12 +6530,12 @@ var ResourcesSelectedTags = () => {
|
|
|
6554
6530
|
router.push({ query });
|
|
6555
6531
|
};
|
|
6556
6532
|
return /* @__PURE__ */ jsxs33("div", { className: "flex flex-wrap gap-1", children: [
|
|
6557
|
-
selectedLanguagesArray && selectedLanguagesArray.length > 0 && /* @__PURE__ */
|
|
6533
|
+
selectedLanguagesArray && selectedLanguagesArray.length > 0 && /* @__PURE__ */ jsx44("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-1", children: [
|
|
6558
6534
|
/* @__PURE__ */ jsxs33("label", { children: [
|
|
6559
|
-
/* @__PURE__ */
|
|
6560
|
-
/* @__PURE__ */
|
|
6535
|
+
/* @__PURE__ */ jsx44("span", { className: "font-medium", children: "Language " }),
|
|
6536
|
+
/* @__PURE__ */ jsx44("span", { children: selectedLanguagesArray?.map((language) => language.value).join(", ") })
|
|
6561
6537
|
] }),
|
|
6562
|
-
/* @__PURE__ */
|
|
6538
|
+
/* @__PURE__ */ jsx44(
|
|
6563
6539
|
XCircleIcon2,
|
|
6564
6540
|
{
|
|
6565
6541
|
className: "h-5 min-h-5 min-w-5 cursor-pointer",
|
|
@@ -6567,12 +6543,12 @@ var ResourcesSelectedTags = () => {
|
|
|
6567
6543
|
}
|
|
6568
6544
|
)
|
|
6569
6545
|
] }) }),
|
|
6570
|
-
selectedTopicsArray && selectedTopicsArray.length > 0 && /* @__PURE__ */
|
|
6546
|
+
selectedTopicsArray && selectedTopicsArray.length > 0 && /* @__PURE__ */ jsx44("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-1", children: [
|
|
6571
6547
|
/* @__PURE__ */ jsxs33("label", { children: [
|
|
6572
|
-
/* @__PURE__ */
|
|
6573
|
-
/* @__PURE__ */
|
|
6548
|
+
/* @__PURE__ */ jsx44("span", { className: "font-medium", children: "Topic " }),
|
|
6549
|
+
/* @__PURE__ */ jsx44("span", { children: selectedTopicsArray?.map((topic) => topic.value).join(", ") })
|
|
6574
6550
|
] }),
|
|
6575
|
-
/* @__PURE__ */
|
|
6551
|
+
/* @__PURE__ */ jsx44(
|
|
6576
6552
|
XCircleIcon2,
|
|
6577
6553
|
{
|
|
6578
6554
|
className: "h-5 min-h-5 min-w-5 cursor-pointer",
|
|
@@ -6580,12 +6556,12 @@ var ResourcesSelectedTags = () => {
|
|
|
6580
6556
|
}
|
|
6581
6557
|
)
|
|
6582
6558
|
] }) }),
|
|
6583
|
-
selectedResourceTypesArray && selectedResourceTypesArray.length > 0 && /* @__PURE__ */
|
|
6559
|
+
selectedResourceTypesArray && selectedResourceTypesArray.length > 0 && /* @__PURE__ */ jsx44("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-1", children: [
|
|
6584
6560
|
/* @__PURE__ */ jsxs33("label", { children: [
|
|
6585
|
-
/* @__PURE__ */
|
|
6586
|
-
/* @__PURE__ */
|
|
6561
|
+
/* @__PURE__ */ jsx44("span", { className: "font-medium", children: "Resource Type " }),
|
|
6562
|
+
/* @__PURE__ */ jsx44("span", { children: selectedResourceTypesArray?.map((type) => type.value).join(", ") })
|
|
6587
6563
|
] }),
|
|
6588
|
-
/* @__PURE__ */
|
|
6564
|
+
/* @__PURE__ */ jsx44(
|
|
6589
6565
|
XCircleIcon2,
|
|
6590
6566
|
{
|
|
6591
6567
|
className: "h-5 min-h-5 min-w-5 cursor-pointer",
|
|
@@ -6593,12 +6569,12 @@ var ResourcesSelectedTags = () => {
|
|
|
6593
6569
|
}
|
|
6594
6570
|
)
|
|
6595
6571
|
] }) }),
|
|
6596
|
-
selectedAudiencesArray && selectedAudiencesArray.length > 0 && /* @__PURE__ */
|
|
6572
|
+
selectedAudiencesArray && selectedAudiencesArray.length > 0 && /* @__PURE__ */ jsx44("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-1", children: [
|
|
6597
6573
|
/* @__PURE__ */ jsxs33("label", { children: [
|
|
6598
|
-
/* @__PURE__ */
|
|
6599
|
-
/* @__PURE__ */
|
|
6574
|
+
/* @__PURE__ */ jsx44("span", { className: "font-medium", children: "Audience " }),
|
|
6575
|
+
/* @__PURE__ */ jsx44("span", { children: selectedAudiencesArray?.map((audience) => audience.value).join(", ") })
|
|
6600
6576
|
] }),
|
|
6601
|
-
/* @__PURE__ */
|
|
6577
|
+
/* @__PURE__ */ jsx44(
|
|
6602
6578
|
XCircleIcon2,
|
|
6603
6579
|
{
|
|
6604
6580
|
className: "h-5 min-h-5 min-w-5 cursor-pointer",
|
|
@@ -6606,12 +6582,12 @@ var ResourcesSelectedTags = () => {
|
|
|
6606
6582
|
}
|
|
6607
6583
|
)
|
|
6608
6584
|
] }) }),
|
|
6609
|
-
search && /* @__PURE__ */
|
|
6585
|
+
search && /* @__PURE__ */ jsx44("div", { className: "flex flex-col justify-center px-2.5 py-2 text-sm leading-5 text-black border border-solid border-zinc-300 rounded-[40px]", children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-1", children: [
|
|
6610
6586
|
/* @__PURE__ */ jsxs33("label", { children: [
|
|
6611
|
-
/* @__PURE__ */
|
|
6612
|
-
/* @__PURE__ */
|
|
6587
|
+
/* @__PURE__ */ jsx44("span", { className: "font-medium", children: "Search " }),
|
|
6588
|
+
/* @__PURE__ */ jsx44("span", { children: search })
|
|
6613
6589
|
] }),
|
|
6614
|
-
/* @__PURE__ */
|
|
6590
|
+
/* @__PURE__ */ jsx44(
|
|
6615
6591
|
XCircleIcon2,
|
|
6616
6592
|
{
|
|
6617
6593
|
className: "h-5 min-h-5 min-w-5 cursor-pointer",
|
|
@@ -6623,9 +6599,9 @@ var ResourcesSelectedTags = () => {
|
|
|
6623
6599
|
};
|
|
6624
6600
|
|
|
6625
6601
|
// src/components/Resource/KeyResourceItem.tsx
|
|
6626
|
-
import Link6 from "
|
|
6602
|
+
import { Link as Link6 } from "@geowiki/core";
|
|
6627
6603
|
import { ApiImage as ApiImage5, CmsImage, H9Design, Body16sb as Body16sb4 } from "@geowiki/ui";
|
|
6628
|
-
import { jsx as
|
|
6604
|
+
import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6629
6605
|
var KeyResourceItem = ({
|
|
6630
6606
|
title,
|
|
6631
6607
|
subtitle,
|
|
@@ -6633,8 +6609,8 @@ var KeyResourceItem = ({
|
|
|
6633
6609
|
imageId,
|
|
6634
6610
|
imagePath
|
|
6635
6611
|
}) => {
|
|
6636
|
-
return /* @__PURE__ */
|
|
6637
|
-
imageId && /* @__PURE__ */
|
|
6612
|
+
return /* @__PURE__ */ jsx45(Link6, { href: path, children: /* @__PURE__ */ jsxs34("div", { className: "w-full flex-col justify-start items-start inline-flex", children: [
|
|
6613
|
+
imageId && /* @__PURE__ */ jsx45(
|
|
6638
6614
|
ApiImage5,
|
|
6639
6615
|
{
|
|
6640
6616
|
imageId,
|
|
@@ -6643,7 +6619,7 @@ var KeyResourceItem = ({
|
|
|
6643
6619
|
className: "w-full h-[260px] rounded-xl object-cover"
|
|
6644
6620
|
}
|
|
6645
6621
|
),
|
|
6646
|
-
imagePath && /* @__PURE__ */
|
|
6622
|
+
imagePath && /* @__PURE__ */ jsx45(
|
|
6647
6623
|
CmsImage,
|
|
6648
6624
|
{
|
|
6649
6625
|
src: imagePath,
|
|
@@ -6653,16 +6629,16 @@ var KeyResourceItem = ({
|
|
|
6653
6629
|
className: "w-full h-[260px] rounded-xl object-cover"
|
|
6654
6630
|
}
|
|
6655
6631
|
),
|
|
6656
|
-
/* @__PURE__ */
|
|
6657
|
-
/* @__PURE__ */
|
|
6632
|
+
/* @__PURE__ */ jsx45(Body16sb4, { className: "pt-4 pb-2 text-primary", children: subtitle }),
|
|
6633
|
+
/* @__PURE__ */ jsx45(H9Design, { children: title })
|
|
6658
6634
|
] }) });
|
|
6659
6635
|
};
|
|
6660
6636
|
|
|
6661
6637
|
// src/components/Resource/KeyResourceItemList.tsx
|
|
6662
6638
|
import { v4 as v45 } from "uuid";
|
|
6663
|
-
import { jsx as
|
|
6639
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
6664
6640
|
var KeyResourceItemList = ({ keyResources }) => {
|
|
6665
|
-
return /* @__PURE__ */
|
|
6641
|
+
return /* @__PURE__ */ jsx46("div", { className: "container mx-auto px-0", children: /* @__PURE__ */ jsx46("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-x-6 gap-y-5 lg:gap-y-10", children: keyResources.map((keyResource) => /* @__PURE__ */ jsx46(
|
|
6666
6642
|
KeyResourceItem,
|
|
6667
6643
|
{
|
|
6668
6644
|
title: keyResource.title,
|
|
@@ -6677,7 +6653,7 @@ var KeyResourceItemList = ({ keyResources }) => {
|
|
|
6677
6653
|
|
|
6678
6654
|
// src/components/Resource/SubtitleH3KeyResources.tsx
|
|
6679
6655
|
import { Body18 as Body184, H3Design as H3Design4 } from "@geowiki/ui";
|
|
6680
|
-
import { jsx as
|
|
6656
|
+
import { jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6681
6657
|
var SubtitleH3KeyResources = ({
|
|
6682
6658
|
title,
|
|
6683
6659
|
subtitle,
|
|
@@ -6690,22 +6666,22 @@ var SubtitleH3KeyResources = ({
|
|
|
6690
6666
|
"data-component": "SubtitleH3KeyResources",
|
|
6691
6667
|
children: [
|
|
6692
6668
|
/* @__PURE__ */ jsxs35("div", { className: "lg:flex lg:justify-between lg:items-start", children: [
|
|
6693
|
-
/* @__PURE__ */
|
|
6694
|
-
/* @__PURE__ */
|
|
6695
|
-
/* @__PURE__ */
|
|
6669
|
+
/* @__PURE__ */ jsx47(Body184, { className: "lg:w-[15%]", children: subtitle }),
|
|
6670
|
+
/* @__PURE__ */ jsx47(H3Design4, { className: " pt-2 pb-6 lg:py-0 lg:w-[50%]", children: title }),
|
|
6671
|
+
/* @__PURE__ */ jsx47("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
6696
6672
|
] }),
|
|
6697
|
-
/* @__PURE__ */
|
|
6673
|
+
/* @__PURE__ */ jsx47(KeyResourceItemList, { keyResources })
|
|
6698
6674
|
]
|
|
6699
6675
|
}
|
|
6700
6676
|
);
|
|
6701
6677
|
};
|
|
6702
6678
|
|
|
6703
6679
|
// src/components/User/index.tsx
|
|
6704
|
-
import { jsx as
|
|
6680
|
+
import { jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6705
6681
|
var UserInfoPage = () => {
|
|
6706
|
-
return /* @__PURE__ */
|
|
6707
|
-
/* @__PURE__ */
|
|
6708
|
-
/* @__PURE__ */
|
|
6682
|
+
return /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsx48("div", { className: "container mx-auto h-64", children: /* @__PURE__ */ jsx48("div", { className: "pt-5 mt-5 pb-24 px-4 py-5 lg:px-0 lg:py-2 md:px-2 md:py-2", children: /* @__PURE__ */ jsx48("div", { children: /* @__PURE__ */ jsxs36("div", { children: [
|
|
6683
|
+
/* @__PURE__ */ jsx48("strong", { children: "Welcome Back!" }),
|
|
6684
|
+
/* @__PURE__ */ jsx48("div", { className: "pt-5", children: "Here, you can manage your Farmer Clusters, add Farmer Cluster profiles, images, stories and news. You can also manage basic personal settings, such as changing your display name or password." })
|
|
6709
6685
|
] }) }) }) }) });
|
|
6710
6686
|
};
|
|
6711
6687
|
|
|
@@ -6716,28 +6692,28 @@ import { LoaderFull as LoaderFull14 } from "@geowiki/ui";
|
|
|
6716
6692
|
import { ChevronRightIcon, ChevronDownIcon } from "@heroicons/react/24/outline";
|
|
6717
6693
|
import { UpdateUserProfile } from "@geowiki/ui";
|
|
6718
6694
|
import { UpdatePassword } from "@geowiki/ui";
|
|
6719
|
-
import { jsx as
|
|
6695
|
+
import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6720
6696
|
var UpdateUser = () => {
|
|
6721
6697
|
const { data, isLoading } = useUserProfileGet();
|
|
6722
6698
|
const [ChangeDisplayName, setChangeDisplayName] = useState21(false);
|
|
6723
6699
|
const [ChangePassword, setChangePassword] = useState21(false);
|
|
6724
6700
|
if (isLoading || data === void 0)
|
|
6725
|
-
return /* @__PURE__ */
|
|
6726
|
-
return /* @__PURE__ */
|
|
6701
|
+
return /* @__PURE__ */ jsx49(LoaderFull14, {});
|
|
6702
|
+
return /* @__PURE__ */ jsx49("div", { className: "container mx-auto", children: /* @__PURE__ */ jsx49("div", { className: "pt-4 px-4 py-5 lg:px-2 lg:py-2 md:px-2 md:py-2", children: /* @__PURE__ */ jsx49("div", { children: /* @__PURE__ */ jsxs37("div", { children: [
|
|
6727
6703
|
/* @__PURE__ */ jsxs37("div", { className: "pt-5", children: [
|
|
6728
|
-
/* @__PURE__ */
|
|
6704
|
+
/* @__PURE__ */ jsx49("strong", { children: " Your Email Address" }),
|
|
6729
6705
|
" : ",
|
|
6730
6706
|
data.email
|
|
6731
6707
|
] }),
|
|
6732
6708
|
/* @__PURE__ */ jsxs37("div", { className: "pt-5", children: [
|
|
6733
|
-
/* @__PURE__ */
|
|
6709
|
+
/* @__PURE__ */ jsx49("strong", { children: "Your Display Name" }),
|
|
6734
6710
|
" : ",
|
|
6735
6711
|
data.name,
|
|
6736
6712
|
" ",
|
|
6737
6713
|
data.surname,
|
|
6738
|
-
/* @__PURE__ */
|
|
6714
|
+
/* @__PURE__ */ jsx49("div", { className: "text-xs", children: "Preferably, your display name is your First and Last Name." })
|
|
6739
6715
|
] }),
|
|
6740
|
-
/* @__PURE__ */
|
|
6716
|
+
/* @__PURE__ */ jsx49("div", { className: "pt-5", children: /* @__PURE__ */ jsx49(
|
|
6741
6717
|
"button",
|
|
6742
6718
|
{
|
|
6743
6719
|
className: ChangeDisplayName ? "focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]" : "inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]",
|
|
@@ -6745,11 +6721,11 @@ var UpdateUser = () => {
|
|
|
6745
6721
|
onClick: () => setChangeDisplayName(!ChangeDisplayName),
|
|
6746
6722
|
children: /* @__PURE__ */ jsxs37("div", { className: "flex", children: [
|
|
6747
6723
|
"Change Display Name",
|
|
6748
|
-
ChangeDisplayName ? /* @__PURE__ */
|
|
6724
|
+
ChangeDisplayName ? /* @__PURE__ */ jsx49(ChevronDownIcon, { className: "h-4 w-4 ml-5 text-white" }) : /* @__PURE__ */ jsx49(ChevronRightIcon, { className: "h-4 w-4 ml-5 text-white" })
|
|
6749
6725
|
] })
|
|
6750
6726
|
}
|
|
6751
6727
|
) }),
|
|
6752
|
-
ChangeDisplayName && /* @__PURE__ */
|
|
6728
|
+
ChangeDisplayName && /* @__PURE__ */ jsx49("div", { children: /* @__PURE__ */ jsx49(
|
|
6753
6729
|
UpdateUserProfile,
|
|
6754
6730
|
{
|
|
6755
6731
|
ShowProfile: ChangeDisplayName,
|
|
@@ -6757,7 +6733,7 @@ var UpdateUser = () => {
|
|
|
6757
6733
|
data
|
|
6758
6734
|
}
|
|
6759
6735
|
) }),
|
|
6760
|
-
/* @__PURE__ */
|
|
6736
|
+
/* @__PURE__ */ jsx49("div", { className: "pt-5", children: /* @__PURE__ */ jsx49(
|
|
6761
6737
|
"button",
|
|
6762
6738
|
{
|
|
6763
6739
|
className: ChangePassword ? "focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]" : "inline-block rounded bg-secondary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]",
|
|
@@ -6765,11 +6741,11 @@ var UpdateUser = () => {
|
|
|
6765
6741
|
onClick: () => setChangePassword(!ChangePassword),
|
|
6766
6742
|
children: /* @__PURE__ */ jsxs37("div", { className: "flex", children: [
|
|
6767
6743
|
"Change Password",
|
|
6768
|
-
ChangePassword ? /* @__PURE__ */
|
|
6744
|
+
ChangePassword ? /* @__PURE__ */ jsx49(ChevronDownIcon, { className: "h-4 w-4 ml-5 text-white" }) : /* @__PURE__ */ jsx49(ChevronRightIcon, { className: "h-4 w-4 ml-5 text-white" })
|
|
6769
6745
|
] })
|
|
6770
6746
|
}
|
|
6771
6747
|
) }),
|
|
6772
|
-
ChangePassword && /* @__PURE__ */
|
|
6748
|
+
ChangePassword && /* @__PURE__ */ jsx49("div", { children: /* @__PURE__ */ jsx49(
|
|
6773
6749
|
UpdatePassword,
|
|
6774
6750
|
{
|
|
6775
6751
|
ShowUpdatePassword: ChangePassword,
|
|
@@ -6781,25 +6757,25 @@ var UpdateUser = () => {
|
|
|
6781
6757
|
|
|
6782
6758
|
// src/components/FeatureResources/FeatureResources.tsx
|
|
6783
6759
|
import { DesignButton as DesignButton20, H8Design, Body16 as Body1612, Body15sb as Body15sb2 } from "@geowiki/ui";
|
|
6784
|
-
import Link7 from "
|
|
6785
|
-
import { jsx as
|
|
6760
|
+
import { Link as Link7 } from "@geowiki/core";
|
|
6761
|
+
import { jsx as jsx50, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6786
6762
|
var FeatureResources = (props) => {
|
|
6787
6763
|
return /* @__PURE__ */ jsxs38("div", { className: " w-auto h-[15rem] relative bg-white rounded-xl p-6 lg:h-[18rem] lg:max-w-[400px]", children: [
|
|
6788
6764
|
/* @__PURE__ */ jsxs38("div", { className: "flex items-start justify-between ", children: [
|
|
6789
|
-
/* @__PURE__ */
|
|
6790
|
-
/* @__PURE__ */
|
|
6765
|
+
/* @__PURE__ */ jsx50(ResourceIcon, { type: props.imageType }),
|
|
6766
|
+
/* @__PURE__ */ jsx50(Body15sb2, { className: "text-primary", children: props.tag })
|
|
6791
6767
|
] }),
|
|
6792
6768
|
/* @__PURE__ */ jsxs38("div", { className: "pt-4 flex-col justify-start items-start space-y-2 inline-flex lg:pt-6 lg:space-y-4", children: [
|
|
6793
|
-
/* @__PURE__ */
|
|
6794
|
-
/* @__PURE__ */
|
|
6769
|
+
/* @__PURE__ */ jsx50(H8Design, { children: props.title }),
|
|
6770
|
+
/* @__PURE__ */ jsx50(Body1612, { children: props.text })
|
|
6795
6771
|
] }),
|
|
6796
|
-
/* @__PURE__ */
|
|
6772
|
+
/* @__PURE__ */ jsx50("div", { className: "absolute bottom-6 ", children: props.button?.link && /* @__PURE__ */ jsx50(
|
|
6797
6773
|
DesignButton20,
|
|
6798
6774
|
{
|
|
6799
6775
|
variant: "externalLink",
|
|
6800
6776
|
size: "sm",
|
|
6801
6777
|
className: "h-auto p-0 lg:p-0",
|
|
6802
|
-
children: /* @__PURE__ */
|
|
6778
|
+
children: /* @__PURE__ */ jsx50(
|
|
6803
6779
|
Link7,
|
|
6804
6780
|
{
|
|
6805
6781
|
href: props.button.link,
|
|
@@ -6814,9 +6790,9 @@ var FeatureResources = (props) => {
|
|
|
6814
6790
|
};
|
|
6815
6791
|
|
|
6816
6792
|
// src/components/FeatureResources/FeatureResourcesList.tsx
|
|
6817
|
-
import { jsx as
|
|
6793
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
6818
6794
|
var FeatureResourcesList = ({ featureResources }) => {
|
|
6819
|
-
return /* @__PURE__ */
|
|
6795
|
+
return /* @__PURE__ */ jsx51("div", { className: "container mx-auto px-0", children: /* @__PURE__ */ jsx51("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: featureResources?.map((featureResource) => /* @__PURE__ */ jsx51(
|
|
6820
6796
|
FeatureResources,
|
|
6821
6797
|
{
|
|
6822
6798
|
title: featureResource.title,
|
|
@@ -6832,8 +6808,8 @@ var FeatureResourcesList = ({ featureResources }) => {
|
|
|
6832
6808
|
// src/components/FeatureResources/subtitle-h3-body-special-feature-resource-collections.tsx
|
|
6833
6809
|
import { H3Design as H3Design5, Body18 as Body185 } from "@geowiki/ui";
|
|
6834
6810
|
import { useEffect as useEffect6 } from "react";
|
|
6835
|
-
import { useRouter as useRouter13 } from "
|
|
6836
|
-
import { jsx as
|
|
6811
|
+
import { useRouter as useRouter13 } from "@geowiki/core";
|
|
6812
|
+
import { jsx as jsx52, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6837
6813
|
var SubtitleH3BodySpecialFeatureResourceCollections = ({
|
|
6838
6814
|
title,
|
|
6839
6815
|
subtitle,
|
|
@@ -6853,17 +6829,17 @@ var SubtitleH3BodySpecialFeatureResourceCollections = ({
|
|
|
6853
6829
|
}
|
|
6854
6830
|
}, [router.asPath]);
|
|
6855
6831
|
return /* @__PURE__ */ jsxs39("div", { id: "special-feature-resources", children: [
|
|
6856
|
-
/* @__PURE__ */
|
|
6857
|
-
/* @__PURE__ */
|
|
6832
|
+
/* @__PURE__ */ jsx52("a", { href: "#special-feature-resources" }),
|
|
6833
|
+
/* @__PURE__ */ jsx52("div", { className: "bg-accent-secondary rounded-xl mt-6 lg:mt-20", children: /* @__PURE__ */ jsxs39("div", { className: "container mx-auto py-6 px-5 space-y-6 lg:pt-16 lg:pb-12 lg:px-12 lg:space-y-12", children: [
|
|
6858
6834
|
/* @__PURE__ */ jsxs39("div", { className: "lg:flex justify-between items-start", children: [
|
|
6859
|
-
/* @__PURE__ */
|
|
6835
|
+
/* @__PURE__ */ jsx52(Body185, { className: "pt-2 lg:pt-0 lg:w-[15%]", children: subtitle }),
|
|
6860
6836
|
/* @__PURE__ */ jsxs39("div", { className: "space-y-4 lg:w-[50%] lg:space-y-6", children: [
|
|
6861
|
-
/* @__PURE__ */
|
|
6862
|
-
/* @__PURE__ */
|
|
6837
|
+
/* @__PURE__ */ jsx52(H3Design5, { children: title }),
|
|
6838
|
+
/* @__PURE__ */ jsx52(Body185, { children: description })
|
|
6863
6839
|
] }),
|
|
6864
|
-
/* @__PURE__ */
|
|
6840
|
+
/* @__PURE__ */ jsx52("div", { className: "hidden lg:w-[15%] lg:inline" })
|
|
6865
6841
|
] }),
|
|
6866
|
-
/* @__PURE__ */
|
|
6842
|
+
/* @__PURE__ */ jsx52(FeatureResourcesList, { featureResources })
|
|
6867
6843
|
] }) })
|
|
6868
6844
|
] });
|
|
6869
6845
|
};
|
|
@@ -6894,7 +6870,6 @@ export {
|
|
|
6894
6870
|
ResourceIcon,
|
|
6895
6871
|
ResourceItem,
|
|
6896
6872
|
ResourceList,
|
|
6897
|
-
ResourceTag,
|
|
6898
6873
|
ResourcesQuickFind,
|
|
6899
6874
|
ResourcesSelectedTags,
|
|
6900
6875
|
SearchFilter,
|