@geowiki/cms 0.15.0-dev.1

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-6T555RQD.mjs +8 -0
  10. package/dist/DownloadQuestWidget-EVKBU33Z.mjs +86 -0
  11. package/dist/EntityListWidget-JC6UCIP5.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-T7MARJTA.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-AT3N4ZVZ.mjs +164 -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-OENZMIFA.mjs +61 -0
  29. package/dist/MapHeroWidget-MLNO6KKC.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-4W7T4H2P.mjs +22 -0
  35. package/dist/NewsLetterWidget-PMR355EB.mjs +7 -0
  36. package/dist/QuestMapClient-B6LGGSGT.mjs +120 -0
  37. package/dist/QuestMapWidget-5JIFDDUO.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-KFP3TIKE.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-YRR7FCDN.mjs +18 -0
  61. package/dist/chunk-4AG2CMM3.mjs +86 -0
  62. package/dist/chunk-AO6SFQGL.mjs +20 -0
  63. package/dist/chunk-AQKMITUZ.mjs +52 -0
  64. package/dist/chunk-DED6JF7X.mjs +335 -0
  65. package/dist/chunk-DMKIIBTI.mjs +11 -0
  66. package/dist/chunk-DVN7SXOC.mjs +131 -0
  67. package/dist/chunk-ECRLCFXK.mjs +65 -0
  68. package/dist/chunk-ER4KI2WR.mjs +24 -0
  69. package/dist/chunk-FQ57AT5X.mjs +51 -0
  70. package/dist/chunk-HLTYOLFG.mjs +20 -0
  71. package/dist/chunk-J7SY757T.mjs +44 -0
  72. package/dist/chunk-JJWETKAK.mjs +18 -0
  73. package/dist/chunk-JNVPTKNZ.mjs +20 -0
  74. package/dist/chunk-KR42WXX4.mjs +18 -0
  75. package/dist/chunk-LIPPN7U2.mjs +25 -0
  76. package/dist/chunk-MR3ABJDZ.mjs +30 -0
  77. package/dist/chunk-NSGNUHUW.mjs +28 -0
  78. package/dist/chunk-O6WFR4J5.mjs +10 -0
  79. package/dist/chunk-OCSKL7XJ.mjs +34 -0
  80. package/dist/chunk-QDEIIXMC.mjs +52 -0
  81. package/dist/chunk-QYIHQTW5.mjs +46 -0
  82. package/dist/chunk-RXVHS4OJ.mjs +24 -0
  83. package/dist/chunk-SNHJDG24.mjs +44 -0
  84. package/dist/chunk-UGGGP7ZA.mjs +166 -0
  85. package/dist/chunk-UYS3OVMP.mjs +9 -0
  86. package/dist/chunk-VFXOGW3A.mjs +10 -0
  87. package/dist/chunk-VFYJ2I2X.mjs +45 -0
  88. package/dist/chunk-VHLUUHQ3.mjs +43 -0
  89. package/dist/chunk-VKH6K2KB.mjs +33 -0
  90. package/dist/chunk-XF76SGFU.mjs +10 -0
  91. package/dist/chunk-XR7AIYAA.mjs +112 -0
  92. package/dist/html-section-CWKFJCXX.mjs +7 -0
  93. package/dist/index.d.mts +185 -0
  94. package/dist/index.d.ts +185 -0
  95. package/dist/index.js +3990 -0
  96. package/dist/index.mjs +343 -0
  97. package/dist/styles.css +1 -0
  98. package/package.json +79 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # @geowiki/cms
2
+
3
+ CMS page sections and widget components for rendering dynamic content from the GeoWiki content management system.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @geowiki/cms
9
+ # or
10
+ pnpm add @geowiki/cms
11
+ ```
12
+
13
+ ## Peer Dependencies
14
+
15
+ ```bash
16
+ npm install react react-dom next next-auth react-hook-form react-leaflet @react-leaflet/core leaflet classnames react-toastify zod @hookform/resolvers
17
+ ```
18
+
19
+ ## CSS Setup
20
+
21
+ Import the pre-built Tailwind CSS file in your app entry point:
22
+
23
+ ```typescript
24
+ import "@geowiki/cms/styles.css";
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ ```typescript
30
+ import { Sections, useMenuItems } from "@geowiki/cms";
31
+
32
+ function Page({ sections }) {
33
+ return <Sections sections={sections} />;
34
+ }
35
+
36
+ function Navigation() {
37
+ const menuItems = useMenuItems();
38
+ return <nav>{/* render menu */}</nav>;
39
+ }
40
+ ```
41
+
42
+ ## What's Included
43
+
44
+ - **Section renderer** -- `Sections` component that dynamically renders CMS widget arrays
45
+ - **Widget components** -- HeaderWidget, CardGridWidget, GalleryWidget, HeroWidget, NewsLetterWidget, TestimonialListWidget, FAQWidget, VideoWidget, and 30+ more
46
+ - **Recodo-specific widgets** -- FarmerClusterFinderWidget, UserInfoWidget, ClusterNewsStories, ContactCardsWidget
47
+ - **Hooks** -- `useMenuItems` for CMS-driven navigation
48
+
49
+ ## Dependencies
50
+
51
+ This package depends on `@geowiki/api-proxy`, `@geowiki/cms-proxy`, `@geowiki/core`, `@geowiki/recodo`, and `@geowiki/ui`.
52
+
53
+ ## License
54
+
55
+ MIT
@@ -0,0 +1,21 @@
1
+ "use client";
2
+
3
+ // src/components/Section/BannerFollowLinksWidget.tsx
4
+ import { BannerFollowLinks } from "@geowiki/ui";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var BannerFollowLinksWidget = ({ data }) => {
7
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
8
+ BannerFollowLinks,
9
+ {
10
+ title: data.TitlePart?.Title,
11
+ links: data.BagPart.ContentItems.map((contentItem) => ({
12
+ text: contentItem.HtmlLink?.Url?.Text,
13
+ href: contentItem.HtmlLink?.Url?.Url,
14
+ isNewTab: contentItem.HtmlLink?.NewTab?.Value
15
+ }))
16
+ }
17
+ ) });
18
+ };
19
+ export {
20
+ BannerFollowLinksWidget
21
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ CardGridWidget
4
+ } from "./chunk-ECRLCFXK.mjs";
5
+ export {
6
+ CardGridWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ CardWidget
4
+ } from "./chunk-QYIHQTW5.mjs";
5
+ export {
6
+ CardWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ ColumnWidget
4
+ } from "./chunk-RXVHS4OJ.mjs";
5
+ export {
6
+ ColumnWidget
7
+ };
@@ -0,0 +1,95 @@
1
+ "use client";
2
+
3
+ // src/components/Section/ContactCardsWidget.tsx
4
+ import { DesignButton } from "@geowiki/ui";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var ContactCardsWidget = ({ data }) => {
7
+ const cards = data.BagPart?.ContentItems || [];
8
+ const getIconComponent = (iconName) => {
9
+ switch (iconName?.toLowerCase()) {
10
+ case "globe":
11
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M25.4996 37.4478V40.4998H31.9996C32.8276 40.4998 33.4996 41.1718 33.4996 41.9998C33.4996 42.8278 32.8276 43.4998 31.9996 43.4998H15.9996C15.1716 43.4998 14.4996 42.8278 14.4996 41.9998C14.4996 41.1718 15.1716 40.4998 15.9996 40.4998H22.4996V37.3919C18.6216 36.9959 14.9977 35.4357 12.0357 32.8677L9.06157 35.8418C8.47557 36.4278 7.5255 36.4278 6.9395 35.8418C6.3535 35.2558 6.3535 34.3058 6.9395 33.7198L10.9395 29.7198C11.2215 29.4378 11.6016 29.2798 11.9996 29.2798C12.0016 29.2798 12.0035 29.2798 12.0035 29.2798C12.4035 29.2798 12.7875 29.4419 13.0655 29.7259C16.1075 32.8039 20.1535 34.4998 24.4595 34.4998C33.3035 34.4998 40.4996 27.3138 40.4996 18.4798C40.4996 14.1798 38.8017 10.1258 35.7217 7.06375C35.1337 6.47975 35.1294 5.52968 35.7134 4.94168C36.2994 4.35368 37.2535 4.35382 37.8355 4.93582C41.4875 8.56382 43.4996 13.3758 43.4996 18.4798C43.4996 28.6178 35.5136 36.9038 25.4996 37.4478ZM23.9996 6.49979C17.3816 6.49979 11.9996 11.8818 11.9996 18.4998C11.9996 25.1178 17.3816 30.4998 23.9996 30.4998C30.6176 30.4998 35.9996 25.1178 35.9996 18.4998C35.9996 11.8818 30.6176 6.49979 23.9996 6.49979Z", fill: "black" }) });
12
+ case "gallery":
13
+ case "frames":
14
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M44.896 15.2155L42.4961 32.3776C42.1821 34.5636 41.3279 36.1156 39.9819 37.0016C39.5159 37.2416 39.0061 36.9998 39.0061 36.5138V19.3317C39.0061 14.1137 35.8901 10.9977 30.6721 10.9977C30.6721 10.9977 12.4479 10.9977 11.8479 10.9977C11.2479 10.9977 11.2339 10.4574 11.2759 10.2174C11.5919 8.32543 12.34 6.92541 13.5 6.05141C14.714 5.13741 16.354 4.81961 18.384 5.10561L39.5061 8.06557C41.5401 8.35357 43.0359 9.11568 43.9519 10.3317C44.8659 11.5457 45.184 13.1895 44.896 15.2155ZM36.0061 19.3297V36.6657C36.0061 40.2217 34.2281 41.9997 30.6721 41.9997H9.33594C5.77994 41.9997 4.00195 40.2217 4.00195 36.6657V19.3297C4.00195 15.7737 5.77994 13.9957 9.33594 13.9957H30.6721C34.2281 13.9957 36.0061 15.7717 36.0061 19.3297ZM7 19.3297V33.6857L9.86597 30.8195C10.546 30.1195 11.686 30.1195 12.386 30.8195L14.0459 32.4796C14.3859 32.8196 14.9659 32.8196 15.3059 32.4796L24.0859 23.6998C24.7659 23.0198 25.906 23.0198 26.606 23.6998L33.0061 30.1159V19.3297C33.0061 17.4317 32.5701 16.9957 30.6721 16.9957H9.33594C7.43594 16.9957 7 17.4317 7 19.3297ZM13.0039 24.9997C14.1059 24.9997 15 24.1037 15 22.9997C15 21.8957 14.1059 20.9997 13.0039 20.9997H12.988C11.886 20.9997 11 21.8957 11 22.9997C11 24.1037 11.9019 24.9997 13.0039 24.9997Z", fill: "black" }) });
15
+ case "document":
16
+ case "list":
17
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M37 4.5H14C9.164 4.5 6.5 7.164 6.5 12V36C6.5 40.486 9.514 43.5 14 43.5H37C39.48 43.5 41.5 41.482 41.5 39V27V9C41.5 6.518 39.48 4.5 37 4.5ZM18 12.5H30C30.828 12.5 31.5 13.172 31.5 14C31.5 14.828 30.828 15.5 30 15.5H18C17.172 15.5 16.5 14.828 16.5 14C16.5 13.172 17.172 12.5 18 12.5ZM18 18.5H26C26.828 18.5 27.5 19.172 27.5 20C27.5 20.828 26.828 21.5 26 21.5H18C17.172 21.5 16.5 20.828 16.5 20C16.5 19.172 17.172 18.5 18 18.5ZM38.5 39C38.5 39.828 37.826 40.5 37 40.5H14C9.94 40.5 9.5 37.352 9.5 36C9.5 34.648 9.94 31.5 14 31.5H37C37.29 31.5 37.5702 31.4661 37.8442 31.4141C37.9322 31.3981 38.0161 31.3679 38.1021 31.3459C38.2341 31.3119 38.372 31.2879 38.5 31.2419V39Z", fill: "black" }) });
18
+ default:
19
+ return /* @__PURE__ */ jsxs(
20
+ "svg",
21
+ {
22
+ className: "w-8 h-8",
23
+ fill: "currentColor",
24
+ viewBox: "0 0 24 24",
25
+ xmlns: "http://www.w3.org/2000/svg",
26
+ "aria-label": "Star icon",
27
+ children: [
28
+ /* @__PURE__ */ jsx("title", { children: "Star icon" }),
29
+ /* @__PURE__ */ jsx("path", { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" })
30
+ ]
31
+ }
32
+ );
33
+ }
34
+ };
35
+ return /* @__PURE__ */ jsx("div", { className: "py-16", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto", children: cards.map((card, index) => {
36
+ const cardId = card.NewResourceCollectionItem?.Title?.Text || `card-${index}`;
37
+ return /* @__PURE__ */ jsxs(
38
+ "div",
39
+ {
40
+ className: "bg-gray-100 rounded-xl py-6 px-6 hover:bg-gray-100 hover:shadow-none transition-none",
41
+ children: [
42
+ /* @__PURE__ */ jsx("div", { className: "text-black mb-4", children: getIconComponent(
43
+ card.NewResourceCollectionItem?.Icon?.Text || void 0
44
+ ) }),
45
+ card.NewResourceCollectionItem?.Subtitle?.Text && /* @__PURE__ */ jsx("p", { className: "text-green-600 text-base font-semibold mb-2", children: card.NewResourceCollectionItem.Subtitle.Text }),
46
+ card.NewResourceCollectionItem?.Title?.Text && /* @__PURE__ */ jsx("h3", { className: "text-2xl font-bold text-gray-900 mb-4", children: card.NewResourceCollectionItem.Title.Text }),
47
+ card.NewResourceCollectionItem?.Text?.Text && /* @__PURE__ */ jsx("p", { className: "text-gray-700 mb-6 leading-relaxed", children: card.NewResourceCollectionItem.Text.Text }),
48
+ card.NewResourceCollectionItem?.Link?.Text && /* @__PURE__ */ jsx(
49
+ DesignButton,
50
+ {
51
+ variant: "primary",
52
+ size: "sm",
53
+ className: "bg-[#59AD31] hover:bg-[#4a9027] text-white rounded-full w-12 h-12 p-0 flex items-center justify-center",
54
+ onClick: () => {
55
+ const linkText = card.NewResourceCollectionItem?.Link?.Text ?? "";
56
+ if (linkText && typeof linkText === "string") {
57
+ if (card.NewResourceCollectionItem?.IsNewTab?.Value) {
58
+ window.open(linkText, "_blank");
59
+ } else {
60
+ window.location.href = linkText;
61
+ }
62
+ }
63
+ },
64
+ children: /* @__PURE__ */ jsxs(
65
+ "svg",
66
+ {
67
+ xmlns: "http://www.w3.org/2000/svg",
68
+ width: "24",
69
+ height: "24",
70
+ viewBox: "0 0 24 24",
71
+ fill: "none",
72
+ stroke: "currentColor",
73
+ strokeWidth: "2",
74
+ strokeLinecap: "round",
75
+ strokeLinejoin: "round",
76
+ className: "h-6 w-10",
77
+ "aria-label": "Arrow right",
78
+ children: [
79
+ /* @__PURE__ */ jsx("title", { children: "Arrow right" }),
80
+ /* @__PURE__ */ jsx("line", { x1: "5", x2: "19", y1: "12", y2: "12" }),
81
+ /* @__PURE__ */ jsx("polyline", { points: "12 5 19 12 12 19" })
82
+ ]
83
+ }
84
+ )
85
+ }
86
+ )
87
+ ]
88
+ },
89
+ cardId
90
+ );
91
+ }) }) });
92
+ };
93
+ export {
94
+ ContactCardsWidget
95
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ ContactWidget
4
+ } from "./chunk-UGGGP7ZA.mjs";
5
+ export {
6
+ ContactWidget
7
+ };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ ContainerWidget
4
+ } from "./chunk-HLTYOLFG.mjs";
5
+ import "./chunk-DED6JF7X.mjs";
6
+ export {
7
+ ContainerWidget
8
+ };
@@ -0,0 +1,86 @@
1
+ // src/components/Section/GeoQuest/DownloadQuestWidget.tsx
2
+ import { useState } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ var quests = [
5
+ {
6
+ label: "Crop Capture",
7
+ value: "quest1",
8
+ url: "https://geoquest.blob.core.windows.net/crop-observe/points.parquet"
9
+ }
10
+ //{ label: "Tree Quest", value: "quest2", url: "/downloads/quest2.csv" },
11
+ //{ label: "Forest Quest", value: "quest3", url: "/downloads/quest3.csv" },
12
+ //{ label: "Plot Quest", value: "quest3", url: "/downloads/quest3.csv" },
13
+ ];
14
+ var DownloadIcon = () => /* @__PURE__ */ jsx(
15
+ "svg",
16
+ {
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ fill: "none",
19
+ viewBox: "0 0 24 24",
20
+ strokeWidth: 2,
21
+ stroke: "currentColor",
22
+ className: "w-5 h-5 ml-2",
23
+ children: /* @__PURE__ */ jsx(
24
+ "path",
25
+ {
26
+ strokeLinecap: "round",
27
+ strokeLinejoin: "round",
28
+ d: "M4.5 20.25h15m-7.5-16.5v12m0 0l-4.5-4.5m4.5 4.5l4.5-4.5"
29
+ }
30
+ )
31
+ }
32
+ );
33
+ var DownloadQuestWidget = () => {
34
+ const [selectedQuest, setSelectedQuest] = useState(quests[0].value);
35
+ const quest = quests.find((q) => q.value === selectedQuest);
36
+ return /* @__PURE__ */ jsx("div", { className: "bg-green-100/60 rounded-2xl", children: /* @__PURE__ */ jsxs("section", { className: "w-full max-w-7xl mx-auto lg:px-16 lg:py-12 p-5 flex flex-col md:flex-row gap-8 items-center justify-center mt-4 md:mt-8", children: [
37
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-[250px]", children: [
38
+ /* @__PURE__ */ jsxs("h2", { className: "text-2xl lg:text-4xl md:text-5xl font-light mb-4 text-gray-800", children: [
39
+ "Download public GeoQuest",
40
+ /* @__PURE__ */ jsx("br", {}),
41
+ "data"
42
+ ] }),
43
+ /* @__PURE__ */ jsx("p", { className: "text-gray-600 text-base md:text-lg mt-4 max-w-lg", children: "Quick access to the public data produced in our Quests." })
44
+ ] }),
45
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 max-w-sm w-full bg-white rounded-xl shadow p-8 flex flex-col gap-6 items-center", children: [
46
+ /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
47
+ /* @__PURE__ */ jsx(
48
+ "label",
49
+ {
50
+ htmlFor: "quest-select",
51
+ className: "block text-sm font-medium text-gray-700 mb-2",
52
+ children: "Quest"
53
+ }
54
+ ),
55
+ /* @__PURE__ */ jsx(
56
+ "select",
57
+ {
58
+ id: "quest-select",
59
+ className: "w-full rounded-md border border-gray-200 p-2 text-gray-700 bg-white focus:ring-2 focus:ring-green-200 focus:outline-none",
60
+ value: selectedQuest,
61
+ onChange: (e) => setSelectedQuest(e.target.value),
62
+ children: quests.map((q) => /* @__PURE__ */ jsx("option", { value: q.value, children: q.label }, q.value))
63
+ }
64
+ )
65
+ ] }),
66
+ /* @__PURE__ */ jsxs(
67
+ "a",
68
+ {
69
+ href: quest?.url || "#",
70
+ download: true,
71
+ target: "_blank",
72
+ rel: "noopener noreferrer",
73
+ className: `w-full flex items-center justify-center gap-2 rounded-full py-3 text-lg font-medium shadow transition-colors focus:outline-none focus:ring-2 focus:ring-green-200 ${quest?.url ? "bg-black text-white hover:bg-gray-900" : "bg-gray-300 text-gray-500 cursor-not-allowed pointer-events-none"}`,
74
+ "aria-label": "Download quest data",
75
+ children: [
76
+ "Download ",
77
+ /* @__PURE__ */ jsx(DownloadIcon, {})
78
+ ]
79
+ }
80
+ )
81
+ ] })
82
+ ] }) });
83
+ };
84
+ export {
85
+ DownloadQuestWidget
86
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ EntityListWidget
4
+ } from "./chunk-4AG2CMM3.mjs";
5
+ export {
6
+ EntityListWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ FarmerClusterFinderWidget
4
+ } from "./chunk-XF76SGFU.mjs";
5
+ export {
6
+ FarmerClusterFinderWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ FeatureRowWidget
4
+ } from "./chunk-AO6SFQGL.mjs";
5
+ export {
6
+ FeatureRowWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ FeatureRowWithImageWidget
4
+ } from "./chunk-VKH6K2KB.mjs";
5
+ export {
6
+ FeatureRowWithImageWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ FeatureRowWithMultipleImagesWidget
4
+ } from "./chunk-VHLUUHQ3.mjs";
5
+ export {
6
+ FeatureRowWithMultipleImagesWidget
7
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ GalleryWidget
4
+ } from "./chunk-LIPPN7U2.mjs";
5
+ export {
6
+ GalleryWidget
7
+ };
@@ -0,0 +1,78 @@
1
+ "use client";
2
+
3
+ // src/components/Section/H2BodyInternalLinkMapWidget.tsx
4
+ import Link from "next/link";
5
+ import dynamic from "next/dynamic";
6
+ import { useState } from "react";
7
+ import {
8
+ DesignButton,
9
+ HtmlView,
10
+ Body18,
11
+ parseTitle
12
+ } from "@geowiki/ui";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ var MapWithNoSSR = dynamic(
15
+ () => import("./HeroMap-AT3N4ZVZ.mjs").then((x) => x.HeroMap),
16
+ {
17
+ ssr: false
18
+ }
19
+ );
20
+ var H2BodyInternalLinkMapWidget = ({
21
+ data
22
+ }) => {
23
+ var button = {
24
+ text: data.LinkPart.Text.Text,
25
+ link: data.LinkPart.Url.Text,
26
+ isNewTab: data.LinkPart.IsNewTab.Value
27
+ };
28
+ const [position, setPosition] = useState(null);
29
+ return /* @__PURE__ */ jsx(
30
+ "div",
31
+ {
32
+ className: "rounded-xl bg-grey-lightest ",
33
+ "data-component": "H2BodyInternalLinkMapWidget",
34
+ children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto mt-6 p-5 lg:p-0 lg:flex lg:justify-between lg:items-center lg:mt-20", children: [
35
+ /* @__PURE__ */ jsxs("div", { className: "pt-1 pb-8 lg:pl-28 lg:pr-30 lg:py-0", children: [
36
+ /* @__PURE__ */ jsx(
37
+ HtmlView,
38
+ {
39
+ cssClass: "m-0 lg:max-w-sm",
40
+ html: parseTitle(data.TitlePart.Title, "H2")
41
+ }
42
+ ),
43
+ /* @__PURE__ */ jsx(Body18, { className: " py-4 lg:max-w-xs lg:pt-16 lg:pb-6", children: data.H2BodyInternalLinkMap.Text.Text }),
44
+ button?.text && button?.link && /* @__PURE__ */ jsx(
45
+ DesignButton,
46
+ {
47
+ variant: "internalLink",
48
+ className: "h-auto p-0 text-base lg:p-0",
49
+ children: /* @__PURE__ */ jsx(
50
+ Link,
51
+ {
52
+ href: button.link,
53
+ target: button.isNewTab ? "_blank" : "_self",
54
+ rel: "noreferrer",
55
+ children: button.text
56
+ }
57
+ )
58
+ }
59
+ )
60
+ ] }),
61
+ /* @__PURE__ */ jsx("div", { className: "w-full h-[22.75rem] rounded-[12px] overflow-hidden items-center lg:w-[55%] lg:h-[35rem] lg:m-12 ", children: /* @__PURE__ */ jsx(
62
+ MapWithNoSSR,
63
+ {
64
+ ...{
65
+ position,
66
+ setPosition,
67
+ showClusterMarkers: true,
68
+ enableLocationMarker: false
69
+ }
70
+ }
71
+ ) })
72
+ ] })
73
+ }
74
+ );
75
+ };
76
+ export {
77
+ H2BodyInternalLinkMapWidget
78
+ };