@geowiki/cms 0.0.0

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.
Files changed (98) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +55 -0
  3. package/dist/BannerFollowLinksWidget-26TXCSTL.mjs +21 -0
  4. package/dist/CardGridWidget-VZIU6X63.mjs +7 -0
  5. package/dist/CardWidget-7UX7ACLE.mjs +7 -0
  6. package/dist/ColumnWidget-XEDFONE6.mjs +7 -0
  7. package/dist/ContactCardsWidget-KRR6IY4X.mjs +95 -0
  8. package/dist/ContactWidget-WJH7K4FN.mjs +7 -0
  9. package/dist/ContainerWidget-N5TYK7XV.mjs +8 -0
  10. package/dist/DownloadQuestWidget-EVKBU33Z.mjs +86 -0
  11. package/dist/EntityListWidget-6N4AXYWX.mjs +7 -0
  12. package/dist/FarmerClusterFinderWidget-YENEGEZN.mjs +7 -0
  13. package/dist/FeatureRowWidget-YXCRZBKZ.mjs +7 -0
  14. package/dist/FeatureRowWithImageWidget-RDAGTLCL.mjs +7 -0
  15. package/dist/FeatureRowWithMultipleImagesWidget-NWLWBI3L.mjs +7 -0
  16. package/dist/GalleryWidget-7A3FR3Y7.mjs +7 -0
  17. package/dist/H2BodyInternalLinkMapWidget-6VQYSAGG.mjs +78 -0
  18. package/dist/HeaderBodyWidget-ZW2WYKNP.mjs +27 -0
  19. package/dist/HeaderWidget-DUNY7APY.mjs +7 -0
  20. package/dist/HeadingTextWidget-YC36BLDY.mjs +6 -0
  21. package/dist/HeroCenterTextWidget-5LDZNUBR.mjs +7 -0
  22. package/dist/HeroMap-RMHVOY4J.mjs +116 -0
  23. package/dist/HeroWidget-A4ODJCXZ.mjs +7 -0
  24. package/dist/IframeWidget-DPA25ZE2.mjs +17 -0
  25. package/dist/ImageLeftH3BodyLinkWidget-JMALBJVD.mjs +26 -0
  26. package/dist/ImageLefttH3BodyWidget-2YAEQZHJ.mjs +26 -0
  27. package/dist/ImageWidget-JWDKESIB.mjs +7 -0
  28. package/dist/LanguagesWidget-KWCLJBRT.mjs +61 -0
  29. package/dist/MapHeroWidget-I5SP4J5M.mjs +7 -0
  30. package/dist/MarkdownWidget-QTTNNVQW.mjs +7 -0
  31. package/dist/NewContactUsWidget-R5TILYPP.mjs +237 -0
  32. package/dist/NewTestimonialsWidget-CVFZM2UI.mjs +17 -0
  33. package/dist/NewfeedPreviewWidget-VM6ZMYGO.mjs +25 -0
  34. package/dist/NewsFeedWidget-BQTZYA6U.mjs +22 -0
  35. package/dist/NewsLetterWidget-AFK476TF.mjs +7 -0
  36. package/dist/QuestMapClient-5IEELSN6.mjs +119 -0
  37. package/dist/QuestMapWidget-5234C7VP.mjs +22 -0
  38. package/dist/ResourceCollectionItemWidget-QXAJEPCN.mjs +7 -0
  39. package/dist/ResourceCollectionsWidget-KZ5HD3PG.mjs +8 -0
  40. package/dist/ResourceQuickFindWidget-S3OJV3GF.mjs +9 -0
  41. package/dist/RowWidget-VSVZUIYH.mjs +7 -0
  42. package/dist/SelectQuestWidget-YGZ5TFLV.mjs +161 -0
  43. package/dist/SignUpBannerWidget-R77S5VSL.mjs +27 -0
  44. package/dist/SimpleActionListWidget-NF32S56W.mjs +7 -0
  45. package/dist/SimpleCallToActionWidget-3LI6HMJR.mjs +7 -0
  46. package/dist/SixClusterNewsWidget-5DDHGLAI.mjs +11 -0
  47. package/dist/SpecialFeaturesWidget-ZWILQPVB.mjs +7 -0
  48. package/dist/StatsWidget-4MISF6XB.mjs +7 -0
  49. package/dist/SubtitleH2BodyVideoWidget-CP7T4FJ6.mjs +24 -0
  50. package/dist/SubtitleH3BodyInternalLinkListWidget-CWKRJY4Z.mjs +25 -0
  51. package/dist/SubtitleH3BodySpecialFeatureResourceCollectionsWidget-62SJ4J73.mjs +37 -0
  52. package/dist/SubtitleH3BodyWidget-7XGVXSMR.mjs +35 -0
  53. package/dist/SubtitleH3ChildrenWidget-CA3TR726.mjs +40 -0
  54. package/dist/SubtitleH3FaqWidget-VXVV7TUL.mjs +78 -0
  55. package/dist/SubtitleH3KeyResourcesWidget-AGBBJ7ZJ.mjs +24 -0
  56. package/dist/SubtitleH3ResourceCollectionsWidget-IBDVHMSC.mjs +37 -0
  57. package/dist/TestimonialListWidget-5OKZ5TQQ.mjs +7 -0
  58. package/dist/UpdateUserInfoWidget-4I6RJQ5M.mjs +7 -0
  59. package/dist/UserInfoWidget-AS53SE7B.mjs +7 -0
  60. package/dist/VideoWidget-E72DF4FB.mjs +18 -0
  61. package/dist/chunk-43BPHKG6.mjs +348 -0
  62. package/dist/chunk-AO6SFQGL.mjs +20 -0
  63. package/dist/chunk-AQKMITUZ.mjs +52 -0
  64. package/dist/chunk-DMKIIBTI.mjs +11 -0
  65. package/dist/chunk-ECRLCFXK.mjs +65 -0
  66. package/dist/chunk-ER4KI2WR.mjs +24 -0
  67. package/dist/chunk-FQ57AT5X.mjs +51 -0
  68. package/dist/chunk-J7SY757T.mjs +44 -0
  69. package/dist/chunk-JJWETKAK.mjs +18 -0
  70. package/dist/chunk-JNVPTKNZ.mjs +20 -0
  71. package/dist/chunk-KR42WXX4.mjs +18 -0
  72. package/dist/chunk-LIPPN7U2.mjs +25 -0
  73. package/dist/chunk-MR3ABJDZ.mjs +30 -0
  74. package/dist/chunk-O6WFR4J5.mjs +10 -0
  75. package/dist/chunk-OCSKL7XJ.mjs +34 -0
  76. package/dist/chunk-PTPZAQH2.mjs +85 -0
  77. package/dist/chunk-PXKRTTW7.mjs +20 -0
  78. package/dist/chunk-QDEIIXMC.mjs +52 -0
  79. package/dist/chunk-QYIHQTW5.mjs +46 -0
  80. package/dist/chunk-RXVHS4OJ.mjs +24 -0
  81. package/dist/chunk-SNHJDG24.mjs +44 -0
  82. package/dist/chunk-UGGGP7ZA.mjs +166 -0
  83. package/dist/chunk-UGPLOPUH.mjs +129 -0
  84. package/dist/chunk-UYS3OVMP.mjs +9 -0
  85. package/dist/chunk-VFXOGW3A.mjs +10 -0
  86. package/dist/chunk-VFYJ2I2X.mjs +45 -0
  87. package/dist/chunk-VHLUUHQ3.mjs +43 -0
  88. package/dist/chunk-VKH6K2KB.mjs +33 -0
  89. package/dist/chunk-XF76SGFU.mjs +10 -0
  90. package/dist/chunk-XR7AIYAA.mjs +112 -0
  91. package/dist/chunk-ZX5FKJYJ.mjs +28 -0
  92. package/dist/html-section-CWKFJCXX.mjs +7 -0
  93. package/dist/index.d.mts +192 -0
  94. package/dist/index.d.ts +192 -0
  95. package/dist/index.js +3950 -0
  96. package/dist/index.mjs +334 -0
  97. package/dist/styles.css +1 -0
  98. package/package.json +79 -0
@@ -0,0 +1,78 @@
1
+ // src/components/Section/SubtitleH3FaqWidget.tsx
2
+ import { SubtitleH3Faq, DesignCustomLink, HtmlView } from "@geowiki/ui";
3
+ import { v4 } from "uuid";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var SubtitleH3FaqWidget = ({ data }) => {
6
+ var type = data.SubtitleH3Faq.Type.Text;
7
+ var bgColor = data.SubtitleH3Faq.BackgroundColor?.Text;
8
+ const backgroundColor = (color) => {
9
+ switch (color) {
10
+ case "transparent":
11
+ return "";
12
+ case "lightPurple":
13
+ return "bg-accent-secondary";
14
+ case "green":
15
+ return "bg-primary text-white";
16
+ }
17
+ };
18
+ const addLinksStyles = (text) => {
19
+ const textToAdd = " class='text-primary font-semibold'";
20
+ const regex = /(<a(?=[^>]*>))/g;
21
+ const modifiedText = text?.replace(regex, `$1${textToAdd}`);
22
+ return modifiedText;
23
+ };
24
+ if (type === "withText") {
25
+ const faqs = data.BagPart.ContentItems.map((contentItem) => ({
26
+ question: contentItem.Faq.Question.Text,
27
+ answer: /* @__PURE__ */ jsx(
28
+ HtmlView,
29
+ {
30
+ cssClass: "m-0",
31
+ html: addLinksStyles(contentItem.Faq.AnswerText?.Html)
32
+ }
33
+ ),
34
+ hint: contentItem.Faq.Hint.Text
35
+ }));
36
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
37
+ SubtitleH3Faq,
38
+ {
39
+ title: data.TitlePart.Title,
40
+ subtitle: data.SubtitleH3Faq.Subtitle.Text,
41
+ description: data.SubtitleH3Faq.Description?.Text,
42
+ faqs,
43
+ backgroundColor: backgroundColor(bgColor)
44
+ }
45
+ ) });
46
+ }
47
+ if (type === "withLinkList") {
48
+ var textColorLink = bgColor === "green" ? "white" : "black";
49
+ const faqs = data.BagPart.ContentItems.map((contentItem) => ({
50
+ question: contentItem.Faq.Question.Text,
51
+ answer: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 space-y-4", children: contentItem.BagPart.ContentItems.map((contentItem2) => /* @__PURE__ */ jsx(
52
+ DesignCustomLink,
53
+ {
54
+ linkText: contentItem2.Link?.Text?.Text,
55
+ href: contentItem2.Link?.Url?.Text,
56
+ isNewTab: contentItem2.Link?.IsNewTab?.Value,
57
+ fillColor: `fill-${textColorLink}`,
58
+ className: `text-${textColorLink}`
59
+ },
60
+ v4()
61
+ )) }),
62
+ hint: /* @__PURE__ */ jsx(HtmlView, { cssClass: "m-0", html: contentItem.Faq.Hint.Text })
63
+ }));
64
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
65
+ SubtitleH3Faq,
66
+ {
67
+ title: data.TitlePart.Title,
68
+ subtitle: data.SubtitleH3Faq.Subtitle.Text,
69
+ description: data.SubtitleH3Faq.Description?.Text,
70
+ faqs,
71
+ backgroundColor: backgroundColor(bgColor)
72
+ }
73
+ ) });
74
+ }
75
+ };
76
+ export {
77
+ SubtitleH3FaqWidget
78
+ };
@@ -0,0 +1,24 @@
1
+ // src/components/Section/Recodo/SubtitleH3KeyResourcesWidget.tsx
2
+ import { SubtitleH3KeyResources } from "@geowiki/recodo";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var SubtitleH3KeyResourcesWidget = ({
5
+ data
6
+ }) => {
7
+ const keyResources = data.BagPart.ContentItems.map((contentItem) => ({
8
+ imagePath: contentItem.KeyResourceItem?.Image?.Paths[0],
9
+ title: contentItem.TitlePart?.Title,
10
+ subtitle: contentItem.KeyResourceItem.Subtitle?.Text,
11
+ path: contentItem.KeyResourceItem.Link?.Url
12
+ }));
13
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
14
+ SubtitleH3KeyResources,
15
+ {
16
+ title: data.TitlePart?.Title,
17
+ subtitle: data.SubtitleH3KeyResources?.Subtitle?.Text,
18
+ keyResources
19
+ }
20
+ ) });
21
+ };
22
+ export {
23
+ SubtitleH3KeyResourcesWidget
24
+ };
@@ -0,0 +1,37 @@
1
+ "use client";
2
+
3
+ // src/components/Section/SubtitleH3ResourceCollectionsWidget.tsx
4
+ import { SubtitleH3ResourceCollections } from "@geowiki/recodo";
5
+ import { ArrowRight } from "lucide-react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var SubtitleH3ResourceCollectionsWidget = ({
8
+ data
9
+ }) => {
10
+ const resourceCollections = data.BagPart.ContentItems.map(
11
+ (contentItem) => ({
12
+ title: contentItem.NewResourceCollectionItem.Title?.Text,
13
+ type: contentItem.NewResourceCollectionItem.Subtitle?.Text,
14
+ text: contentItem.NewResourceCollectionItem.Text?.Text,
15
+ icon: contentItem.NewResourceCollectionItem.Icon?.Text,
16
+ button: {
17
+ link: contentItem.NewResourceCollectionItem.Link?.Text,
18
+ isNewTab: contentItem.NewResourceCollectionItem.IsNewTab?.Value,
19
+ variant: "circle",
20
+ size: "sm",
21
+ contents: /* @__PURE__ */ jsx(ArrowRight, { className: "h-6 w-10 my-2" }),
22
+ className: "w-12 h-12 p-2"
23
+ }
24
+ })
25
+ );
26
+ return /* @__PURE__ */ jsx("div", { className: "mt-8 lg:mt-24", children: /* @__PURE__ */ jsx(
27
+ SubtitleH3ResourceCollections,
28
+ {
29
+ title: data.TitlePart?.Title,
30
+ subtitle: data.SubtitleH3ResourceCollections?.Subtitle?.Text,
31
+ resourceCollections
32
+ }
33
+ ) });
34
+ };
35
+ export {
36
+ SubtitleH3ResourceCollectionsWidget
37
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ TestimonialListWidget
4
+ } from "./chunk-AQKMITUZ.mjs";
5
+ export {
6
+ TestimonialListWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ UpdateUserInfoWidget
4
+ } from "./chunk-O6WFR4J5.mjs";
5
+ export {
6
+ UpdateUserInfoWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ UserInfoWidget
4
+ } from "./chunk-VFXOGW3A.mjs";
5
+ export {
6
+ UserInfoWidget
7
+ };
@@ -0,0 +1,18 @@
1
+ // src/components/Section/VideoWidget.tsx
2
+ import { dynamic } from "@geowiki/core";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var ReactPlayer = dynamic(() => import("react-player"), { ssr: false });
5
+ var VideoWidget = ({ data }) => {
6
+ return /* @__PURE__ */ jsx("div", { className: "mx-auto lg:container w-full lg:w-[60%] pt-10 h-[260px] lg:h-[505px]", children: /* @__PURE__ */ jsx(
7
+ ReactPlayer,
8
+ {
9
+ url: data.LinkPart?.Url?.Text,
10
+ controls: true,
11
+ width: "100%",
12
+ height: "100%"
13
+ }
14
+ ) });
15
+ };
16
+ export {
17
+ VideoWidget
18
+ };
@@ -0,0 +1,348 @@
1
+ // src/components/WidgetErrorBoundary.tsx
2
+ import { ErrorBoundary } from "react-error-boundary";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ var IS_DEV = process.env.NODE_ENV === "development";
5
+ var WidgetFallback = ({ widgetName, error }) => {
6
+ if (!IS_DEV) return null;
7
+ return /* @__PURE__ */ jsxs("div", { className: "container mx-auto my-4 p-3 border border-dashed border-red-400 bg-red-50 text-red-700 text-sm rounded", children: [
8
+ /* @__PURE__ */ jsx("strong", { children: "Widget failed to render" }),
9
+ " \u2014 ",
10
+ widgetName,
11
+ /* @__PURE__ */ jsx("pre", { className: "mt-2 text-xs whitespace-pre-wrap", children: error.message })
12
+ ] });
13
+ };
14
+ var WidgetErrorBoundary = ({ children, widgetName }) => /* @__PURE__ */ jsx(
15
+ ErrorBoundary,
16
+ {
17
+ fallbackRender: ({ error }) => /* @__PURE__ */ jsx(WidgetFallback, { widgetName, error }),
18
+ onError: (error, info) => console.error(
19
+ `[WidgetErrorBoundary] Widget "${widgetName}" crashed:`,
20
+ error,
21
+ info
22
+ ),
23
+ children
24
+ }
25
+ );
26
+
27
+ // src/components/SectionComponents.ts
28
+ import { dynamic } from "@geowiki/core";
29
+ var NewsFeedWidget = dynamic(() => import("./NewsFeedWidget-BQTZYA6U.mjs"));
30
+ var UpdateUserInfoWidget = dynamic(
31
+ () => import("./UpdateUserInfoWidget-4I6RJQ5M.mjs").then(
32
+ (mod) => mod.UpdateUserInfoWidget
33
+ )
34
+ );
35
+ var UserInfoWidget = dynamic(
36
+ () => import("./UserInfoWidget-AS53SE7B.mjs").then((mod) => mod.UserInfoWidget)
37
+ );
38
+ var ContactWidget = dynamic(
39
+ () => import("./ContactWidget-WJH7K4FN.mjs").then((mod) => mod.ContactWidget)
40
+ );
41
+ var CardGridWidget = dynamic(
42
+ () => import("./CardGridWidget-VZIU6X63.mjs").then((mod) => mod.CardGridWidget)
43
+ );
44
+ var ResourceCollectionItemWidget = dynamic(
45
+ () => import("./ResourceCollectionItemWidget-QXAJEPCN.mjs").then(
46
+ (mod) => mod.ResourceCollectionItemWidget
47
+ )
48
+ );
49
+ var ResourceCollectionsWidget = dynamic(
50
+ () => import("./ResourceCollectionsWidget-KZ5HD3PG.mjs").then(
51
+ (mod) => mod.ResourceCollectionsWidget
52
+ )
53
+ );
54
+ var FarmerClusterFinderWidget = dynamic(
55
+ () => import("./FarmerClusterFinderWidget-YENEGEZN.mjs").then(
56
+ (mod) => mod.FarmerClusterFinderWidget
57
+ )
58
+ );
59
+ var EntityListWidget = dynamic(
60
+ () => import("./EntityListWidget-6N4AXYWX.mjs").then((mod) => mod.EntityListWidget)
61
+ );
62
+ var SpecialFeaturesWidget = dynamic(
63
+ () => import("./SpecialFeaturesWidget-ZWILQPVB.mjs").then(
64
+ (mod) => mod.SpecialFeaturesWidget
65
+ )
66
+ );
67
+ var SimpleActionListWidget = dynamic(
68
+ () => import("./SimpleActionListWidget-NF32S56W.mjs").then(
69
+ (mod) => mod.SimpleActionListWidget
70
+ )
71
+ );
72
+ var FeatureRowWithMultipleImagesWidget = dynamic(
73
+ () => import("./FeatureRowWithMultipleImagesWidget-NWLWBI3L.mjs").then(
74
+ (mod) => mod.FeatureRowWithMultipleImagesWidget
75
+ )
76
+ );
77
+ var TestimonialListWidget = dynamic(
78
+ () => import("./TestimonialListWidget-5OKZ5TQQ.mjs").then(
79
+ (mod) => mod.TestimonialListWidget
80
+ )
81
+ );
82
+ var FeatureRowWithImageWidget = dynamic(
83
+ () => import("./FeatureRowWithImageWidget-RDAGTLCL.mjs").then(
84
+ (mod) => mod.FeatureRowWithImageWidget
85
+ )
86
+ );
87
+ var FeatureRowWidget = dynamic(
88
+ () => import("./FeatureRowWidget-YXCRZBKZ.mjs").then((mod) => mod.FeatureRowWidget)
89
+ );
90
+ var SimpleCallToActionWidget = dynamic(
91
+ () => import("./SimpleCallToActionWidget-3LI6HMJR.mjs").then(
92
+ (mod) => mod.SimpleCallToActionWidget
93
+ )
94
+ );
95
+ var ImageWidget = dynamic(
96
+ () => import("./ImageWidget-JWDKESIB.mjs").then((mod) => mod.ImageWidget)
97
+ );
98
+ var GalleryWidget = dynamic(
99
+ () => import("./GalleryWidget-7A3FR3Y7.mjs").then((mod) => mod.GalleryWidget)
100
+ );
101
+ var HeaderWidget = dynamic(
102
+ () => import("./HeaderWidget-DUNY7APY.mjs").then((mod) => mod.HeaderWidget)
103
+ );
104
+ var CardWidget = dynamic(
105
+ () => import("./CardWidget-7UX7ACLE.mjs").then((mod) => mod.CardWidget)
106
+ );
107
+ var ColumnWidget = dynamic(
108
+ () => import("./ColumnWidget-XEDFONE6.mjs").then((mod) => mod.ColumnWidget)
109
+ );
110
+ var RowWidget = dynamic(
111
+ () => import("./RowWidget-VSVZUIYH.mjs").then((mod) => mod.RowWidget)
112
+ );
113
+ var NewsLetterWidget = dynamic(
114
+ () => import("./NewsLetterWidget-AFK476TF.mjs").then((mod) => mod.NewsLetterWidget)
115
+ );
116
+ var StatsWidget = dynamic(
117
+ () => import("./StatsWidget-4MISF6XB.mjs").then((mod) => mod.StatsWidget)
118
+ );
119
+ var MapHeroWidget = dynamic(
120
+ () => import("./MapHeroWidget-I5SP4J5M.mjs").then((mod) => mod.MapHeroWidget)
121
+ );
122
+ var HeroCenterTextWidget = dynamic(
123
+ () => import("./HeroCenterTextWidget-5LDZNUBR.mjs").then(
124
+ (mod) => mod.HeroCenterTextWidget
125
+ )
126
+ );
127
+ var HtmlSection = dynamic(
128
+ () => import("./html-section-CWKFJCXX.mjs").then((mod) => mod.HtmlSection)
129
+ );
130
+ var MarkdownWidget = dynamic(
131
+ () => import("./MarkdownWidget-QTTNNVQW.mjs").then((mod) => mod.MarkdownWidget)
132
+ );
133
+ var ContainerWidget = dynamic(
134
+ () => import("./ContainerWidget-N5TYK7XV.mjs").then((mod) => mod.ContainerWidget)
135
+ );
136
+ var HeroWidget = dynamic(
137
+ () => import("./HeroWidget-A4ODJCXZ.mjs").then((mod) => mod.HeroWidget)
138
+ );
139
+ var HeadingTextWidget = dynamic(
140
+ () => import("./HeadingTextWidget-YC36BLDY.mjs").then((mod) => mod.HeadingTextWidget)
141
+ );
142
+ var ResourceQuickFindWidget = dynamic(
143
+ () => import("./ResourceQuickFindWidget-S3OJV3GF.mjs").then(
144
+ (mod) => mod.ResourceQuickFindWidget
145
+ )
146
+ );
147
+ var NewsfeedPreviewWidget = dynamic(
148
+ () => import("./NewfeedPreviewWidget-VM6ZMYGO.mjs").then(
149
+ (mod) => mod.NewsfeedPreviewWidget
150
+ )
151
+ );
152
+ var SubtitleH3BodyWidget = dynamic(
153
+ () => import("./SubtitleH3BodyWidget-7XGVXSMR.mjs").then(
154
+ (mod) => mod.SubtitleH3BodyWidget
155
+ )
156
+ );
157
+ var SubtitleH3BodyInternalLinkListWidget = dynamic(
158
+ () => import("./SubtitleH3BodyInternalLinkListWidget-CWKRJY4Z.mjs").then(
159
+ (mod) => mod.SubtitleH3BodyInternalLinkListWidget
160
+ )
161
+ );
162
+ var SubtitleH3FaqWidget = dynamic(
163
+ () => import("./SubtitleH3FaqWidget-VXVV7TUL.mjs").then(
164
+ (mod) => mod.SubtitleH3FaqWidget
165
+ )
166
+ );
167
+ var NewTestimonialsWidget = dynamic(
168
+ () => import("./NewTestimonialsWidget-CVFZM2UI.mjs").then(
169
+ (mod) => mod.NewTestimonialsWidget
170
+ )
171
+ );
172
+ var SubtitleH3ResourceCollectionsWidget = dynamic(
173
+ () => import("./SubtitleH3ResourceCollectionsWidget-IBDVHMSC.mjs").then(
174
+ (mod) => mod.SubtitleH3ResourceCollectionsWidget
175
+ )
176
+ );
177
+ var BannerFollowLinksWidget = dynamic(
178
+ () => import("./BannerFollowLinksWidget-26TXCSTL.mjs").then(
179
+ (mod) => mod.BannerFollowLinksWidget
180
+ )
181
+ );
182
+ var NewContactUsWidget = dynamic(
183
+ () => import("./NewContactUsWidget-R5TILYPP.mjs").then((mod) => mod.NewContactUsWidget)
184
+ );
185
+ var ContactCardsWidget = dynamic(
186
+ () => import("./ContactCardsWidget-KRR6IY4X.mjs").then((mod) => mod.ContactCardsWidget)
187
+ );
188
+ var SubtitleH3BodySpecialFeatureResourceCollectionsWidget = dynamic(
189
+ () => import("./SubtitleH3BodySpecialFeatureResourceCollectionsWidget-62SJ4J73.mjs").then((mod) => mod.SubtitleH3BodySpecialFeatureResourceCollectionsWidget)
190
+ );
191
+ var H2BodyInternalLinkMapWidget = dynamic(
192
+ () => import("./H2BodyInternalLinkMapWidget-6VQYSAGG.mjs").then(
193
+ (mod) => mod.H2BodyInternalLinkMapWidget
194
+ )
195
+ );
196
+ var SignUpBannerWidget = dynamic(
197
+ () => import("./SignUpBannerWidget-R77S5VSL.mjs").then((mod) => mod.SignUpBannerWidget)
198
+ );
199
+ var SubtitleH3ChildrenWidget = dynamic(
200
+ () => import("./SubtitleH3ChildrenWidget-CA3TR726.mjs").then(
201
+ (mod) => mod.SubtitleH3ChildrenWidget
202
+ )
203
+ );
204
+ var HeaderBodyWidget = dynamic(
205
+ () => import("./HeaderBodyWidget-ZW2WYKNP.mjs").then((mod) => mod.HeaderBodyWidget)
206
+ );
207
+ var LanguageWidget = dynamic(
208
+ () => import("./LanguagesWidget-KWCLJBRT.mjs").then((mod) => mod.LanguageWidget)
209
+ );
210
+ var SubtitleH3KeyResourcesWidget = dynamic(
211
+ () => import("./SubtitleH3KeyResourcesWidget-AGBBJ7ZJ.mjs").then(
212
+ (mod) => mod.SubtitleH3KeyResourcesWidget
213
+ )
214
+ );
215
+ var VideoWidget = dynamic(
216
+ () => import("./VideoWidget-E72DF4FB.mjs").then((mod) => mod.VideoWidget)
217
+ );
218
+ var SubtitleH2BodyVideoWidget = dynamic(
219
+ () => import("./SubtitleH2BodyVideoWidget-CP7T4FJ6.mjs").then(
220
+ (mod) => mod.SubtitleH2BodyVideoWidget
221
+ )
222
+ );
223
+ var ImageLefttH3BodyWidget = dynamic(
224
+ () => import("./ImageLefttH3BodyWidget-2YAEQZHJ.mjs").then(
225
+ (mod) => mod.ImageLefttH3BodyWidget
226
+ )
227
+ );
228
+ var SixClusterNewsWidget = dynamic(
229
+ () => import("./SixClusterNewsWidget-5DDHGLAI.mjs").then(
230
+ (mod) => mod.SixClusterNewsWidget
231
+ )
232
+ );
233
+ var ImageLeftH3BodyLinkWidget = dynamic(
234
+ () => import("./ImageLeftH3BodyLinkWidget-JMALBJVD.mjs").then(
235
+ (mod) => mod.ImageLeftH3BodyLinkWidget
236
+ )
237
+ );
238
+ var IframeWidget = dynamic(
239
+ () => import("./IframeWidget-DPA25ZE2.mjs").then((mod) => mod.IframeWidget)
240
+ );
241
+ var DownloadQuestWidget = dynamic(
242
+ () => import("./DownloadQuestWidget-EVKBU33Z.mjs").then(
243
+ (mod) => mod.DownloadQuestWidget
244
+ )
245
+ );
246
+ var QuestMapWidget = dynamic(
247
+ () => import("./QuestMapWidget-5234C7VP.mjs").then((mod) => mod.QuestMapWidget)
248
+ );
249
+ var SelectQuestWidget = dynamic(
250
+ () => import("./SelectQuestWidget-YGZ5TFLV.mjs").then(
251
+ (mod) => mod.SelectQuestWidget
252
+ )
253
+ );
254
+ var SectionComponents = {
255
+ // PLOP_WIDGET_COMPONENTS
256
+ NewsFeed: NewsFeedWidget,
257
+ UpdateUserInfo: UpdateUserInfoWidget,
258
+ UserInfo: UserInfoWidget,
259
+ Contact: ContactWidget,
260
+ CardGrid: CardGridWidget,
261
+ ResourceCollectionItem: ResourceCollectionItemWidget,
262
+ ResourceCollections: ResourceCollectionsWidget,
263
+ FarmerClusterFinder: FarmerClusterFinderWidget,
264
+ EntityList: EntityListWidget,
265
+ SpecialFeatures: SpecialFeaturesWidget,
266
+ SimpleActionList: SimpleActionListWidget,
267
+ FeatureRowWithMultipleImages: FeatureRowWithMultipleImagesWidget,
268
+ TestimonialList: TestimonialListWidget,
269
+ FeatureRowWithImage: FeatureRowWithImageWidget,
270
+ FeatureRow: FeatureRowWidget,
271
+ SimpleCenteredCallToAction: SimpleCallToActionWidget,
272
+ Image: ImageWidget,
273
+ Gallery: GalleryWidget,
274
+ Header: HeaderWidget,
275
+ Card: CardWidget,
276
+ Column: ColumnWidget,
277
+ Row: RowWidget,
278
+ NewsLetter: NewsLetterWidget,
279
+ Stats: StatsWidget,
280
+ MapHeroWidget,
281
+ HeroCenterText: HeroCenterTextWidget,
282
+ HtmlWidget: HtmlSection,
283
+ MarkdownWidget,
284
+ ContainerWidget,
285
+ Hero: HeroWidget,
286
+ HeroWidget,
287
+ HeadingText: HeadingTextWidget,
288
+ ResourceQuickFind: ResourceQuickFindWidget,
289
+ NewsFeedPreview: NewsfeedPreviewWidget,
290
+ SubtitleH3Body: SubtitleH3BodyWidget,
291
+ SubtitleH3BodyInternalLinkList: SubtitleH3BodyInternalLinkListWidget,
292
+ SubtitleH3Faq: SubtitleH3FaqWidget,
293
+ NewTestimonials: NewTestimonialsWidget,
294
+ SubtitleH3ResourceCollections: SubtitleH3ResourceCollectionsWidget,
295
+ BannerFollowLinks: BannerFollowLinksWidget,
296
+ NewContactUs: NewContactUsWidget,
297
+ ContactCards: ContactCardsWidget,
298
+ SubtitleH3BodySpecialFeatureResourceCollections: SubtitleH3BodySpecialFeatureResourceCollectionsWidget,
299
+ H2BodyInternalLinkMap: H2BodyInternalLinkMapWidget,
300
+ SignUpBanner: SignUpBannerWidget,
301
+ SubtitleH3Children: SubtitleH3ChildrenWidget,
302
+ HeaderBody: HeaderBodyWidget,
303
+ Language: LanguageWidget,
304
+ SubtitleH3KeyResources: SubtitleH3KeyResourcesWidget,
305
+ Video: VideoWidget,
306
+ SubtitleH2BodyVideo: SubtitleH2BodyVideoWidget,
307
+ ImageLefttH3Body: ImageLefttH3BodyWidget,
308
+ SixClusterNews: SixClusterNewsWidget,
309
+ ImageLeftH3BodyLink: ImageLeftH3BodyLinkWidget,
310
+ IframeViewer: IframeWidget,
311
+ DownloadQuest: DownloadQuestWidget,
312
+ QuestMap: QuestMapWidget,
313
+ SelectQuest: SelectQuestWidget
314
+ };
315
+
316
+ // src/components/Sections.tsx
317
+ import { jsx as jsx2 } from "react/jsx-runtime";
318
+ var Section = ({ sectionData, settings, cmsUrl, newsItems }) => {
319
+ const SectionComponent = SectionComponents[sectionData.ContentType];
320
+ if (!SectionComponent) {
321
+ return null;
322
+ }
323
+ return /* @__PURE__ */ jsx2(WidgetErrorBoundary, { widgetName: sectionData.ContentType, children: /* @__PURE__ */ jsx2(
324
+ SectionComponent,
325
+ {
326
+ data: sectionData,
327
+ settings,
328
+ cmsUrl,
329
+ newsItems
330
+ }
331
+ ) });
332
+ };
333
+ var Sections = ({ sections, settings, cmsUrl }) => {
334
+ return /* @__PURE__ */ jsx2("div", { className: "flex flex-col", children: sections?.map((section) => /* @__PURE__ */ jsx2(
335
+ Section,
336
+ {
337
+ sectionData: section,
338
+ settings,
339
+ cmsUrl
340
+ },
341
+ `${section?.ContentType}_${section?.ContentItemId}`
342
+ )) });
343
+ };
344
+
345
+ export {
346
+ WidgetErrorBoundary,
347
+ Sections
348
+ };
@@ -0,0 +1,20 @@
1
+ // src/components/Section/FeatureRowWidget.tsx
2
+ import { FeatureItemElement } from "@geowiki/ui";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ var FeatureRowWidget = ({ data, cmsUrl }) => {
5
+ return /* @__PURE__ */ jsxs("div", { className: "container px-4 py-16 mx-auto sm:max-w-xl md:max-w-full lg:max-w-screen-xl md:px-24 lg:px-8 lg:py-20", children: [
6
+ /* @__PURE__ */ jsxs("div", { className: "max-w-xl mb-10 md:mx-auto sm:text-center lg:max-w-2xl md:mb-12", children: [
7
+ /* @__PURE__ */ jsx("h2", { className: "max-w-lg mb-6 text-3xl font-bold leading-none tracking-tight sm:text-4xl md:mx-auto", children: data.FeatureRow?.MainText?.Text }),
8
+ /* @__PURE__ */ jsx("p", { className: "text-base md:text-lg", children: data.FeatureRow?.SubText?.Text })
9
+ ] }),
10
+ /* @__PURE__ */ jsx("div", { className: "grid gap-8 row-gap-8 lg:grid-cols-3", children: data.FeatureItems?.ContentItems?.map(
11
+ (item, index) => {
12
+ return /* @__PURE__ */ jsx(FeatureItemElement, { item, cmsUrl }, index);
13
+ }
14
+ ) })
15
+ ] });
16
+ };
17
+
18
+ export {
19
+ FeatureRowWidget
20
+ };
@@ -0,0 +1,52 @@
1
+ // src/components/Section/TestimonialListWidget.tsx
2
+ import { CmsImage } from "@geowiki/ui";
3
+ import { Carousel } from "react-responsive-carousel";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ var TestimonialListWidget = ({ data }) => {
6
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Carousel, { autoPlay: true, infiniteLoop: true, children: data.BagPart?.ContentItems?.map(
7
+ (item, index) => {
8
+ return /* @__PURE__ */ jsx("div", { id: item.Id, children: /* @__PURE__ */ jsx("div", { className: " pt-16 lg:py-24", children: /* @__PURE__ */ jsx("div", { className: "bg-primary-600 pb-16 lg:relative lg:z-10 lg:pb-0", children: /* @__PURE__ */ jsxs("div", { className: "lg:mx-auto lg:grid lg:max-w-7xl lg:grid-cols-3 lg:gap-8 lg:px-8", children: [
9
+ /* @__PURE__ */ jsxs("div", { className: "relative lg:-my-8", children: [
10
+ /* @__PURE__ */ jsx(
11
+ "div",
12
+ {
13
+ "aria-hidden": "true",
14
+ className: "absolute inset-x-0 top-0 h-1/2 lg:hidden"
15
+ }
16
+ ),
17
+ /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-md px-6 sm:max-w-3xl lg:h-full lg:p-0", children: /* @__PURE__ */ jsx("div", { className: "aspect-w-10 aspect-h-6 overflow-hidden rounded-xl shadow-xl sm:aspect-w-16 sm:aspect-h-7 lg:aspect-none lg:h-full", children: /* @__PURE__ */ jsx(
18
+ CmsImage,
19
+ {
20
+ src: item?.Testimonial?.Image?.Paths?.[0],
21
+ width: 200,
22
+ height: 200
23
+ }
24
+ ) }) })
25
+ ] }),
26
+ /* @__PURE__ */ jsx("div", { className: "mt-12 lg:col-span-2 lg:m-0 lg:pl-8", children: /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-md px-6 sm:max-w-2xl lg:max-w-none lg:px-0 lg:py-20", children: /* @__PURE__ */ jsxs("blockquote", { children: [
27
+ /* @__PURE__ */ jsxs("div", { children: [
28
+ /* @__PURE__ */ jsx(
29
+ "svg",
30
+ {
31
+ className: "h-12 w-12 text-white opacity-25",
32
+ fill: "currentColor",
33
+ viewBox: "0 0 32 32",
34
+ "aria-hidden": "true",
35
+ children: /* @__PURE__ */ jsx("path", { d: "M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z" })
36
+ }
37
+ ),
38
+ /* @__PURE__ */ jsx("p", { className: "mt-6 text-2xl font-medium text-white", children: item.Testimonial?.Info?.Text })
39
+ ] }),
40
+ /* @__PURE__ */ jsxs("footer", { className: "mt-6", children: [
41
+ /* @__PURE__ */ jsx("p", { className: "text-base font-medium text-white", children: item.Testimonial?.Name?.Text }),
42
+ /* @__PURE__ */ jsx("p", { className: "text-base font-medium text-primary-100", children: item.Testimonial?.Title?.Text })
43
+ ] })
44
+ ] }) }) })
45
+ ] }) }) }) }, index);
46
+ }
47
+ ) }) });
48
+ };
49
+
50
+ export {
51
+ TestimonialListWidget
52
+ };
@@ -0,0 +1,11 @@
1
+ // src/components/Section/html-section.tsx
2
+ import { HtmlView } from "@geowiki/ui";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var HtmlSection = ({ data }) => {
5
+ const { HtmlBodyPart } = data;
6
+ return /* @__PURE__ */ jsx("div", { className: "lg:container mx-auto pt-4 lg:pt-0", children: /* @__PURE__ */ jsx("div", { className: "max-w-screen-2xl prose prose-xl", children: /* @__PURE__ */ jsx(HtmlView, { html: HtmlBodyPart.Html }) }) });
7
+ };
8
+
9
+ export {
10
+ HtmlSection
11
+ };