cortex-react-components 3.0.7 → 3.0.8

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 (228) hide show
  1. package/dist/{chunk-2TJ5HOCV.mjs → chunk-2S3O5TYH.mjs} +1 -1
  2. package/dist/{chunk-FUNWDVGQ.mjs → chunk-2ZSH4X75.mjs} +1 -1
  3. package/dist/{chunk-7OGBZ6QQ.mjs → chunk-354MPNDV.mjs} +1 -1
  4. package/dist/{chunk-2NKCNQ56.mjs → chunk-3YAZKLH3.mjs} +1 -1
  5. package/dist/{chunk-6B6BKJIE.mjs → chunk-44F47U5Y.mjs} +1 -1
  6. package/dist/{chunk-AICDXFGU.mjs → chunk-4BRK5CBG.mjs} +2 -2
  7. package/dist/{chunk-LSHBOPCT.mjs → chunk-4HFMA57F.mjs} +7 -4
  8. package/dist/{chunk-VMYEV3FG.mjs → chunk-4YRR74Y4.mjs} +1 -1
  9. package/dist/{chunk-7H3IRT7K.mjs → chunk-5CQITTLV.mjs} +1 -1
  10. package/dist/{chunk-LAJ5FNY4.mjs → chunk-5KOAYGTO.mjs} +5 -5
  11. package/dist/{chunk-DAQOEDAR.mjs → chunk-5NGZXIP7.mjs} +1 -1
  12. package/dist/{chunk-R2SJ5TZH.mjs → chunk-5Q43DAAS.mjs} +2 -2
  13. package/dist/{chunk-P4DQRHCA.mjs → chunk-6I3O6TVG.mjs} +1 -1
  14. package/dist/{chunk-EDJDHF22.mjs → chunk-6QSVFSOJ.mjs} +1 -1
  15. package/dist/{chunk-NAPGIF5D.mjs → chunk-B3UYSM32.mjs} +4 -4
  16. package/dist/{chunk-ZPWWTTFF.mjs → chunk-BPAZFILP.mjs} +1 -1
  17. package/dist/{chunk-ENFQLMV3.mjs → chunk-CKBIYWPM.mjs} +1 -1
  18. package/dist/{chunk-KVULICDA.mjs → chunk-COHYOWMB.mjs} +1 -1
  19. package/dist/{chunk-G3UZUSQZ.mjs → chunk-DWGG6JKH.mjs} +1 -1
  20. package/dist/{chunk-OS5X3ADZ.mjs → chunk-E5LGE3IW.mjs} +1 -1
  21. package/dist/{chunk-PAXCURFR.mjs → chunk-EGZL4DVZ.mjs} +1 -1
  22. package/dist/{chunk-NHDPHK6D.mjs → chunk-EUAQNPRU.mjs} +2 -2
  23. package/dist/chunk-F4LCVFZK.mjs +19 -0
  24. package/dist/{chunk-DO73CLFG.mjs → chunk-F563CDDJ.mjs} +2 -2
  25. package/dist/{chunk-URCY4KWN.mjs → chunk-G7WAPCKX.mjs} +1 -1
  26. package/dist/{chunk-FECAR2TE.mjs → chunk-GV3CMMKT.mjs} +1 -1
  27. package/dist/{chunk-KV5RVOAP.mjs → chunk-HGDLIXPQ.mjs} +1 -1
  28. package/dist/{chunk-I647IJUG.mjs → chunk-HJLIEMLX.mjs} +2 -2
  29. package/dist/{chunk-3R2LCGLI.mjs → chunk-HLEMFDTD.mjs} +1 -1
  30. package/dist/{chunk-VNSEHNDX.mjs → chunk-HXPXJ26M.mjs} +1 -1
  31. package/dist/{chunk-EC4N6ZH3.mjs → chunk-IXQESSPI.mjs} +1 -1
  32. package/dist/{chunk-6GO5N6ZP.mjs → chunk-KIZUBPPQ.mjs} +1 -1
  33. package/dist/{chunk-GZW77OJM.mjs → chunk-L34WYFSB.mjs} +1 -1
  34. package/dist/{chunk-DQZO42TD.mjs → chunk-MSAH6P5O.mjs} +1 -1
  35. package/dist/{chunk-TTVOGAI4.mjs → chunk-OFES4YYV.mjs} +2 -2
  36. package/dist/{chunk-RC6YHGVV.mjs → chunk-PE7KJR4A.mjs} +1 -1
  37. package/dist/{chunk-5OGDBGXG.mjs → chunk-PJZ5PWKP.mjs} +1 -1
  38. package/dist/{chunk-WMAVH7JO.mjs → chunk-QPPQNK6O.mjs} +2 -2
  39. package/dist/{chunk-DRCDP3RU.mjs → chunk-QRC3VJEY.mjs} +1 -1
  40. package/dist/{chunk-M5JROT2X.mjs → chunk-R242HNC3.mjs} +1 -1
  41. package/dist/{chunk-6Q4KYDHK.mjs → chunk-RJRQ3SY5.mjs} +2 -2
  42. package/dist/{chunk-HZZWKYB5.mjs → chunk-SHHLY2QV.mjs} +1 -1
  43. package/dist/{chunk-K3TF6OWE.mjs → chunk-SNNQIUJH.mjs} +5 -5
  44. package/dist/{chunk-6RAMGDYG.mjs → chunk-TMVCGF2B.mjs} +1 -1
  45. package/dist/{chunk-DAGWV4UL.mjs → chunk-TZDVVQBQ.mjs} +1 -1
  46. package/dist/{chunk-JBFNSEIJ.mjs → chunk-UETTBM3J.mjs} +1 -1
  47. package/dist/{chunk-DB2F6SID.mjs → chunk-ULYN63F3.mjs} +1 -1
  48. package/dist/{chunk-OXZ5QAXQ.mjs → chunk-USE5WY4U.mjs} +1 -1
  49. package/dist/{chunk-M6ELOAGS.mjs → chunk-VEIZROGM.mjs} +1 -1
  50. package/dist/{chunk-UJI3Y73K.mjs → chunk-X2KTMYOD.mjs} +2 -2
  51. package/dist/{chunk-LP3K7AVX.mjs → chunk-X6PPZZ2E.mjs} +14 -14
  52. package/dist/{chunk-UDZU3AZC.mjs → chunk-XWYGGWIF.mjs} +4 -4
  53. package/dist/{chunk-RKQ4CVVG.mjs → chunk-YI6FLZOK.mjs} +1 -1
  54. package/dist/{chunk-2PGER2HM.mjs → chunk-YJIB2FYD.mjs} +2 -2
  55. package/dist/{chunk-YFOEG4PP.mjs → chunk-Z6MYLHDW.mjs} +1 -1
  56. package/dist/{chunk-HQ2AUN2H.mjs → chunk-ZMITLXFT.mjs} +1 -1
  57. package/dist/components/AdvancedComponents/index.mjs +9 -9
  58. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +4 -4
  59. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +2 -2
  60. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +3 -3
  61. package/dist/components/AdvancedComponents/org-chart-component/index.mjs +6 -6
  62. package/dist/components/Blocks/Banner.js +17 -1
  63. package/dist/components/Blocks/Banner.mjs +8 -7
  64. package/dist/components/Blocks/CallToAction.js +17 -1
  65. package/dist/components/Blocks/CallToAction.mjs +8 -7
  66. package/dist/components/Blocks/CollapsibleArea.js +17 -1
  67. package/dist/components/Blocks/CollapsibleArea.mjs +9 -8
  68. package/dist/components/Blocks/Content.js +17 -1
  69. package/dist/components/Blocks/Content.mjs +9 -8
  70. package/dist/components/Blocks/FeaturesBlock.js +17 -1
  71. package/dist/components/Blocks/FeaturesBlock.mjs +8 -7
  72. package/dist/components/Blocks/ImageBlock.mjs +3 -3
  73. package/dist/components/Blocks/MediaBlock.mjs +3 -3
  74. package/dist/components/Blocks/RelatedPosts.js +17 -1
  75. package/dist/components/Blocks/RelatedPosts.mjs +10 -9
  76. package/dist/components/Blocks/RenderBlocks.js +17 -1
  77. package/dist/components/Blocks/RenderBlocks.mjs +11 -10
  78. package/dist/components/Blocks/ReusableContentBlock.js +17 -1
  79. package/dist/components/Blocks/ReusableContentBlock.mjs +11 -10
  80. package/dist/components/Blocks/index.js +17 -1
  81. package/dist/components/Blocks/index.mjs +15 -14
  82. package/dist/components/CRM/CogeBoard.js +1 -1
  83. package/dist/components/CRM/CogeBoard.mjs +2 -2
  84. package/dist/components/CRM/DealDetails.js +1 -1
  85. package/dist/components/CRM/DealDetails.mjs +1 -1
  86. package/dist/components/CRM/KanbanBoard.js +1 -1
  87. package/dist/components/CRM/KanbanBoard.mjs +2 -2
  88. package/dist/components/CRM/NewDealForm.js +1 -1
  89. package/dist/components/CRM/NewDealForm.mjs +1 -1
  90. package/dist/components/CRM/index.js +2 -2
  91. package/dist/components/CRM/index.mjs +7 -7
  92. package/dist/components/CRM/mockData.js +6 -6
  93. package/dist/components/CRM/mockData.mjs +6 -6
  94. package/dist/components/Cards/ContentCard.js +17 -1
  95. package/dist/components/Cards/ContentCard.mjs +8 -7
  96. package/dist/components/Cards/FeatureCard.js +17 -1
  97. package/dist/components/Cards/FeatureCard.mjs +8 -7
  98. package/dist/components/Cards/index.js +17 -1
  99. package/dist/components/Cards/index.mjs +10 -9
  100. package/dist/components/Chat/ChatInterface.mjs +10 -10
  101. package/dist/components/Chat/CopilotInterface.mjs +11 -11
  102. package/dist/components/Chat/PartTypes/MessageHandler.mjs +8 -8
  103. package/dist/components/Chat/PartTypes/index.mjs +23 -23
  104. package/dist/components/Chat/demo-long-messages.mjs +11 -11
  105. package/dist/components/Chat/demo-tests.mjs +11 -11
  106. package/dist/components/Chat/demo.mjs +11 -11
  107. package/dist/components/Chat/example-usage.mjs +12 -12
  108. package/dist/components/Chat/example-with-vercel-ai.mjs +11 -11
  109. package/dist/components/Chat/index.mjs +18 -18
  110. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +3 -3
  111. package/dist/components/DigitalColleagues/MainPage.mjs +8 -8
  112. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +10 -10
  113. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +2 -2
  114. package/dist/components/DigitalColleagues/Views/index.mjs +19 -19
  115. package/dist/components/DigitalColleagues/index.mjs +28 -28
  116. package/dist/components/Foundary/AppSidebarLeft.mjs +3 -3
  117. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +3 -3
  118. package/dist/components/Foundary/Knowledge/add-team-context.mjs +3 -3
  119. package/dist/components/Foundary/MainPage.mjs +8 -8
  120. package/dist/components/Foundary/Pages/dashboardpage.mjs +14 -14
  121. package/dist/components/Foundary/RichText/index.mjs +3 -3
  122. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +2 -2
  123. package/dist/components/Foundary/Views/KnowledgeView.mjs +10 -10
  124. package/dist/components/Foundary/Views/index.mjs +21 -21
  125. package/dist/components/Foundary/document-edit.mjs +4 -4
  126. package/dist/components/Foundary/document-preview-examples.mjs +5 -5
  127. package/dist/components/Foundary/document-preview.mjs +5 -5
  128. package/dist/components/Foundary/file-edit.mjs +7 -7
  129. package/dist/components/Foundary/index.mjs +38 -38
  130. package/dist/components/Foundary/knowledge-browser.mjs +6 -6
  131. package/dist/components/HeaderFooter/SectionHeading.js +17 -1
  132. package/dist/components/HeaderFooter/SectionHeading.mjs +9 -8
  133. package/dist/components/HeaderFooter/index.mjs +8 -8
  134. package/dist/components/Heros/HighImpact/index.js +17 -1
  135. package/dist/components/Heros/HighImpact/index.mjs +9 -8
  136. package/dist/components/Heros/LowImpact/index.js +17 -1
  137. package/dist/components/Heros/LowImpact/index.mjs +9 -8
  138. package/dist/components/Heros/MediumImpact/index.js +17 -1
  139. package/dist/components/Heros/MediumImpact/index.mjs +9 -8
  140. package/dist/components/Heros/PostHero/index.mjs +3 -3
  141. package/dist/components/Heros/RenderHero.js +17 -1
  142. package/dist/components/Heros/RenderHero.mjs +12 -11
  143. package/dist/components/Heros/index.js +17 -1
  144. package/dist/components/Heros/index.mjs +17 -16
  145. package/dist/components/Layouts/OutputHeaderFooter.js +17 -1
  146. package/dist/components/Layouts/OutputHeaderFooter.mjs +12 -11
  147. package/dist/components/Layouts/Print.js +17 -1
  148. package/dist/components/Layouts/Print.mjs +16 -15
  149. package/dist/components/Layouts/SlideShow.js +17 -1
  150. package/dist/components/Layouts/SlideShow.mjs +17 -16
  151. package/dist/components/Layouts/index.js +17 -1
  152. package/dist/components/Layouts/index.mjs +21 -20
  153. package/dist/components/Menus/SidebarLeft.mjs +3 -3
  154. package/dist/components/Menus/SidebarLeftMulti.mjs +3 -3
  155. package/dist/components/Menus/SidebarRight.mjs +3 -3
  156. package/dist/components/Menus/index.mjs +8 -8
  157. package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
  158. package/dist/components/Payload/Media/index.mjs +2 -2
  159. package/dist/components/Payload/PayloadCard/index.mjs +3 -3
  160. package/dist/components/Payload/RichText/index.js +17 -1
  161. package/dist/components/Payload/RichText/index.mjs +8 -7
  162. package/dist/components/Payload/RichText/serialize.js +17 -1
  163. package/dist/components/Payload/RichText/serialize.mjs +8 -7
  164. package/dist/components/Payload/index.js +17 -1
  165. package/dist/components/Payload/index.mjs +13 -12
  166. package/dist/components/Projects/FileView.mjs +10 -10
  167. package/dist/components/Projects/KanbanBoardView.mjs +12 -12
  168. package/dist/components/Projects/ProjectPage.mjs +15 -15
  169. package/dist/components/Projects/ProjectView.mjs +15 -15
  170. package/dist/components/Projects/TaskDetailsModal.mjs +11 -11
  171. package/dist/components/Projects/file-list.mjs +8 -8
  172. package/dist/components/Projects/index.mjs +14 -14
  173. package/dist/components/dc-temp/index.mjs +10 -10
  174. package/dist/components/index.js +19 -3
  175. package/dist/components/index.mjs +128 -127
  176. package/dist/components/ui/index.mjs +9 -9
  177. package/dist/components/ui/sidebar.mjs +2 -2
  178. package/dist/decorators/Intranet.mjs +77 -76
  179. package/dist/index.js +19 -3
  180. package/dist/index.mjs +142 -141
  181. package/dist/metafile-cjs.json +1 -1
  182. package/dist/metafile-esm.json +1 -1
  183. package/dist/pages/Blog.js +17 -1
  184. package/dist/pages/Blog.mjs +17 -16
  185. package/dist/pages/Documentation.mjs +8 -8
  186. package/dist/pages/IndexPage.mjs +22 -21
  187. package/dist/pages/Intranet.mjs +3 -3
  188. package/dist/pages/LandingPage.js +17 -1
  189. package/dist/pages/LandingPage.mjs +88 -87
  190. package/dist/pages/Page.js +17 -1
  191. package/dist/pages/Page.mjs +20 -19
  192. package/dist/pages/Publish.js +17 -1
  193. package/dist/pages/Publish.mjs +76 -75
  194. package/dist/pages/Website.js +17 -1
  195. package/dist/pages/Website.mjs +21 -20
  196. package/dist/payload-types.d.ts +1 -1
  197. package/dist/sections/AboutSection.js +17 -1
  198. package/dist/sections/AboutSection.mjs +10 -9
  199. package/dist/sections/BlogDetail.js +17 -1
  200. package/dist/sections/BlogDetail.mjs +9 -8
  201. package/dist/sections/BlogList.js +17 -1
  202. package/dist/sections/BlogList.mjs +10 -9
  203. package/dist/sections/BlogListSection.mjs +8 -8
  204. package/dist/sections/ContactSection.js +17 -1
  205. package/dist/sections/ContactSection.mjs +10 -9
  206. package/dist/sections/PageSections.js +17 -1
  207. package/dist/sections/PageSections.mjs +86 -85
  208. package/dist/sections/PricingSection.js +17 -1
  209. package/dist/sections/PricingSection.mjs +10 -9
  210. package/dist/sections/ServiceDetail.js +17 -1
  211. package/dist/sections/ServiceDetail.mjs +9 -8
  212. package/dist/sections/ServiceDetailSection.js +17 -1
  213. package/dist/sections/ServiceDetailSection.mjs +9 -8
  214. package/dist/sections/ServiceSection.js +17 -1
  215. package/dist/sections/ServiceSection.mjs +76 -75
  216. package/dist/sections/index.js +17 -1
  217. package/dist/sections/index.mjs +88 -87
  218. package/dist/utils/getLinkHref.d.ts +12 -0
  219. package/dist/utils/getLinkHref.js +43 -0
  220. package/dist/utils/getLinkHref.mjs +7 -0
  221. package/package.json +1 -1
  222. package/dist/{chunk-NKRBXAPF.mjs → chunk-2YHN7ZCJ.mjs} +3 -3
  223. package/dist/{chunk-EUAUP52U.mjs → chunk-7UMFQPR5.mjs} +3 -3
  224. package/dist/{chunk-AEFGMCK3.mjs → chunk-D5KV6INF.mjs} +3 -3
  225. package/dist/{chunk-ECCJ42NJ.mjs → chunk-M5XPU4JK.mjs} +11 -11
  226. package/dist/{chunk-CT6KAYGR.mjs → chunk-MFXCOX3L.mjs} +3 -3
  227. package/dist/{chunk-DZYAOBGH.mjs → chunk-PXB2ICFA.mjs} +3 -3
  228. package/dist/{chunk-6OFY4WMY.mjs → chunk-RWZ36G7W.mjs} +3 -3
@@ -1,29 +1,30 @@
1
1
  import {
2
2
  RelatedPosts
3
- } from "../../chunk-2PGER2HM.mjs";
4
- import "../../chunk-PAXCURFR.mjs";
3
+ } from "../../chunk-YJIB2FYD.mjs";
4
+ import "../../chunk-EGZL4DVZ.mjs";
5
5
  import "../../chunk-4Z4X2GG7.mjs";
6
- import "../../chunk-LSHBOPCT.mjs";
6
+ import "../../chunk-4HFMA57F.mjs";
7
7
  import "../../chunk-YLULVMZ7.mjs";
8
8
  import "../../chunk-2NXKZY7U.mjs";
9
9
  import "../../chunk-GSG52WU5.mjs";
10
10
  import "../../chunk-US72SCH3.mjs";
11
11
  import "../../chunk-G6EC37S7.mjs";
12
12
  import "../../chunk-LTOFCHXU.mjs";
13
+ import "../../chunk-LIJ2ES4B.mjs";
13
14
  import "../../chunk-GTHNG3Q7.mjs";
14
15
  import "../../chunk-PE44IHZN.mjs";
15
16
  import "../../chunk-4GLXI5J3.mjs";
16
17
  import "../../chunk-2X45TVQS.mjs";
17
18
  import "../../chunk-DTQ2W22B.mjs";
18
- import "../../chunk-LIJ2ES4B.mjs";
19
- import "../../chunk-6GO5N6ZP.mjs";
20
- import "../../chunk-WPX6MOFB.mjs";
21
- import "../../chunk-3R2LCGLI.mjs";
22
- import "../../chunk-NKRBXAPF.mjs";
23
- import "../../chunk-MW5UCIIC.mjs";
19
+ import "../../chunk-HLEMFDTD.mjs";
20
+ import "../../chunk-KIZUBPPQ.mjs";
21
+ import "../../chunk-2YHN7ZCJ.mjs";
24
22
  import "../../chunk-ZYKYDIOF.mjs";
23
+ import "../../chunk-MW5UCIIC.mjs";
24
+ import "../../chunk-WPX6MOFB.mjs";
25
25
  import "../../chunk-R57RJLFQ.mjs";
26
26
  import "../../chunk-GIHP74M4.mjs";
27
+ import "../../chunk-F4LCVFZK.mjs";
27
28
  import "../../chunk-3BYULUMU.mjs";
28
29
  import "../../chunk-RZRMW2DZ.mjs";
29
30
  import "../../chunk-GUHOQLS3.mjs";
@@ -2799,6 +2799,22 @@ var ImageBlock = (props) => {
2799
2799
  );
2800
2800
  };
2801
2801
 
2802
+ // src/utils/getLinkHref.ts
2803
+ function getLinkHref(link) {
2804
+ if (!link) return "#";
2805
+ if (link.url) return link.url;
2806
+ if (link.reference?.value) {
2807
+ const { relationTo, value } = link.reference;
2808
+ const slug = value?.slug;
2809
+ if (!slug) return "#";
2810
+ if (relationTo === "pages") {
2811
+ return `/${slug}`;
2812
+ }
2813
+ return `/${relationTo}/${slug}`;
2814
+ }
2815
+ return "#";
2816
+ }
2817
+
2802
2818
  // src/components/Images/DynamicIcon.tsx
2803
2819
  var import_jsx_runtime11 = require("react/jsx-runtime");
2804
2820
  var DynamicIcon = ({
@@ -2848,7 +2864,7 @@ function FeatureCard({
2848
2864
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2849
2865
  "a",
2850
2866
  {
2851
- href: link?.url || "#",
2867
+ href: getLinkHref(link),
2852
2868
  className: cn(
2853
2869
  "min-w-56 max-w-xl h-full flex flex-col group bg-background",
2854
2870
  image ? "p-0" : "p-6 md:p-8",
@@ -5,30 +5,31 @@ import {
5
5
  RenderBlocksWithShapes,
6
6
  Theme,
7
7
  ThemeWithShapes
8
- } from "../../chunk-NAPGIF5D.mjs";
9
- import "../../chunk-KV5RVOAP.mjs";
10
- import "../../chunk-EC4N6ZH3.mjs";
11
- import "../../chunk-LSHBOPCT.mjs";
8
+ } from "../../chunk-B3UYSM32.mjs";
9
+ import "../../chunk-HGDLIXPQ.mjs";
10
+ import "../../chunk-IXQESSPI.mjs";
11
+ import "../../chunk-4HFMA57F.mjs";
12
12
  import "../../chunk-YLULVMZ7.mjs";
13
13
  import "../../chunk-2NXKZY7U.mjs";
14
14
  import "../../chunk-GSG52WU5.mjs";
15
15
  import "../../chunk-US72SCH3.mjs";
16
16
  import "../../chunk-G6EC37S7.mjs";
17
17
  import "../../chunk-LTOFCHXU.mjs";
18
+ import "../../chunk-LIJ2ES4B.mjs";
18
19
  import "../../chunk-GTHNG3Q7.mjs";
19
20
  import "../../chunk-PE44IHZN.mjs";
20
21
  import "../../chunk-4GLXI5J3.mjs";
21
22
  import "../../chunk-2X45TVQS.mjs";
22
23
  import "../../chunk-DTQ2W22B.mjs";
23
- import "../../chunk-LIJ2ES4B.mjs";
24
- import "../../chunk-6GO5N6ZP.mjs";
25
- import "../../chunk-WPX6MOFB.mjs";
26
- import "../../chunk-3R2LCGLI.mjs";
27
- import "../../chunk-NKRBXAPF.mjs";
28
- import "../../chunk-MW5UCIIC.mjs";
24
+ import "../../chunk-HLEMFDTD.mjs";
25
+ import "../../chunk-KIZUBPPQ.mjs";
26
+ import "../../chunk-2YHN7ZCJ.mjs";
29
27
  import "../../chunk-ZYKYDIOF.mjs";
28
+ import "../../chunk-MW5UCIIC.mjs";
29
+ import "../../chunk-WPX6MOFB.mjs";
30
30
  import "../../chunk-R57RJLFQ.mjs";
31
31
  import "../../chunk-GIHP74M4.mjs";
32
+ import "../../chunk-F4LCVFZK.mjs";
32
33
  import "../../chunk-3BYULUMU.mjs";
33
34
  import "../../chunk-RZRMW2DZ.mjs";
34
35
  import "../../chunk-GUHOQLS3.mjs";
@@ -2790,6 +2790,22 @@ var ImageBlock = (props) => {
2790
2790
  );
2791
2791
  };
2792
2792
 
2793
+ // src/utils/getLinkHref.ts
2794
+ function getLinkHref(link) {
2795
+ if (!link) return "#";
2796
+ if (link.url) return link.url;
2797
+ if (link.reference?.value) {
2798
+ const { relationTo, value } = link.reference;
2799
+ const slug = value?.slug;
2800
+ if (!slug) return "#";
2801
+ if (relationTo === "pages") {
2802
+ return `/${slug}`;
2803
+ }
2804
+ return `/${relationTo}/${slug}`;
2805
+ }
2806
+ return "#";
2807
+ }
2808
+
2793
2809
  // src/components/Images/DynamicIcon.tsx
2794
2810
  var import_jsx_runtime11 = require("react/jsx-runtime");
2795
2811
  var DynamicIcon = ({
@@ -2839,7 +2855,7 @@ function FeatureCard({
2839
2855
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2840
2856
  "a",
2841
2857
  {
2842
- href: link?.url || "#",
2858
+ href: getLinkHref(link),
2843
2859
  className: cn(
2844
2860
  "min-w-56 max-w-xl h-full flex flex-col group bg-background",
2845
2861
  image ? "p-0" : "p-6 md:p-8",
@@ -1,29 +1,30 @@
1
1
  import {
2
2
  ReusableContentBlock
3
- } from "../../chunk-NAPGIF5D.mjs";
4
- import "../../chunk-KV5RVOAP.mjs";
5
- import "../../chunk-EC4N6ZH3.mjs";
6
- import "../../chunk-LSHBOPCT.mjs";
3
+ } from "../../chunk-B3UYSM32.mjs";
4
+ import "../../chunk-HGDLIXPQ.mjs";
5
+ import "../../chunk-IXQESSPI.mjs";
6
+ import "../../chunk-4HFMA57F.mjs";
7
7
  import "../../chunk-YLULVMZ7.mjs";
8
8
  import "../../chunk-2NXKZY7U.mjs";
9
9
  import "../../chunk-GSG52WU5.mjs";
10
10
  import "../../chunk-US72SCH3.mjs";
11
11
  import "../../chunk-G6EC37S7.mjs";
12
12
  import "../../chunk-LTOFCHXU.mjs";
13
+ import "../../chunk-LIJ2ES4B.mjs";
13
14
  import "../../chunk-GTHNG3Q7.mjs";
14
15
  import "../../chunk-PE44IHZN.mjs";
15
16
  import "../../chunk-4GLXI5J3.mjs";
16
17
  import "../../chunk-2X45TVQS.mjs";
17
18
  import "../../chunk-DTQ2W22B.mjs";
18
- import "../../chunk-LIJ2ES4B.mjs";
19
- import "../../chunk-6GO5N6ZP.mjs";
20
- import "../../chunk-WPX6MOFB.mjs";
21
- import "../../chunk-3R2LCGLI.mjs";
22
- import "../../chunk-NKRBXAPF.mjs";
23
- import "../../chunk-MW5UCIIC.mjs";
19
+ import "../../chunk-HLEMFDTD.mjs";
20
+ import "../../chunk-KIZUBPPQ.mjs";
21
+ import "../../chunk-2YHN7ZCJ.mjs";
24
22
  import "../../chunk-ZYKYDIOF.mjs";
23
+ import "../../chunk-MW5UCIIC.mjs";
24
+ import "../../chunk-WPX6MOFB.mjs";
25
25
  import "../../chunk-R57RJLFQ.mjs";
26
26
  import "../../chunk-GIHP74M4.mjs";
27
+ import "../../chunk-F4LCVFZK.mjs";
27
28
  import "../../chunk-3BYULUMU.mjs";
28
29
  import "../../chunk-RZRMW2DZ.mjs";
29
30
  import "../../chunk-GUHOQLS3.mjs";
@@ -3480,6 +3480,22 @@ var ImageBlock = (props) => {
3480
3480
  );
3481
3481
  };
3482
3482
 
3483
+ // src/utils/getLinkHref.ts
3484
+ function getLinkHref(link) {
3485
+ if (!link) return "#";
3486
+ if (link.url) return link.url;
3487
+ if (link.reference?.value) {
3488
+ const { relationTo, value } = link.reference;
3489
+ const slug = value?.slug;
3490
+ if (!slug) return "#";
3491
+ if (relationTo === "pages") {
3492
+ return `/${slug}`;
3493
+ }
3494
+ return `/${relationTo}/${slug}`;
3495
+ }
3496
+ return "#";
3497
+ }
3498
+
3483
3499
  // src/components/Cards/FeatureCard.tsx
3484
3500
  var import_image3 = __toESM(require("next/image"));
3485
3501
  var import_jsx_runtime23 = require("react/jsx-runtime");
@@ -3514,7 +3530,7 @@ function FeatureCard({
3514
3530
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
3515
3531
  "a",
3516
3532
  {
3517
- href: link?.url || "#",
3533
+ href: getLinkHref(link),
3518
3534
  className: cn(
3519
3535
  "min-w-56 max-w-xl h-full flex flex-col group bg-background",
3520
3536
  image ? "p-0" : "p-6 md:p-8",
@@ -9,8 +9,8 @@ import {
9
9
  } from "../../chunk-64SYH2HO.mjs";
10
10
  import {
11
11
  RelatedPosts
12
- } from "../../chunk-2PGER2HM.mjs";
13
- import "../../chunk-PAXCURFR.mjs";
12
+ } from "../../chunk-YJIB2FYD.mjs";
13
+ import "../../chunk-EGZL4DVZ.mjs";
14
14
  import "../../chunk-WE7DY7DV.mjs";
15
15
  import {
16
16
  HeadingImage
@@ -31,45 +31,46 @@ import {
31
31
  ReusableContentBlock,
32
32
  Theme,
33
33
  ThemeWithShapes
34
- } from "../../chunk-NAPGIF5D.mjs";
35
- import "../../chunk-KV5RVOAP.mjs";
34
+ } from "../../chunk-B3UYSM32.mjs";
35
+ import "../../chunk-HGDLIXPQ.mjs";
36
36
  import {
37
37
  ContentBlock
38
- } from "../../chunk-EC4N6ZH3.mjs";
38
+ } from "../../chunk-IXQESSPI.mjs";
39
39
  import {
40
40
  BannerBlock,
41
41
  CallToActionBlock,
42
42
  CallToActionBlockOld,
43
43
  FeaturesBlock
44
- } from "../../chunk-LSHBOPCT.mjs";
44
+ } from "../../chunk-4HFMA57F.mjs";
45
45
  import "../../chunk-YLULVMZ7.mjs";
46
46
  import "../../chunk-2NXKZY7U.mjs";
47
47
  import "../../chunk-GSG52WU5.mjs";
48
48
  import "../../chunk-US72SCH3.mjs";
49
49
  import "../../chunk-G6EC37S7.mjs";
50
50
  import "../../chunk-LTOFCHXU.mjs";
51
+ import "../../chunk-LIJ2ES4B.mjs";
51
52
  import "../../chunk-GTHNG3Q7.mjs";
52
53
  import "../../chunk-PE44IHZN.mjs";
53
54
  import "../../chunk-4GLXI5J3.mjs";
54
55
  import "../../chunk-2X45TVQS.mjs";
55
56
  import "../../chunk-DTQ2W22B.mjs";
56
- import "../../chunk-LIJ2ES4B.mjs";
57
+ import {
58
+ ImageBlock
59
+ } from "../../chunk-HLEMFDTD.mjs";
57
60
  import {
58
61
  MediaBlock
59
- } from "../../chunk-6GO5N6ZP.mjs";
62
+ } from "../../chunk-KIZUBPPQ.mjs";
63
+ import "../../chunk-2YHN7ZCJ.mjs";
64
+ import "../../chunk-ZYKYDIOF.mjs";
65
+ import "../../chunk-MW5UCIIC.mjs";
60
66
  import {
61
67
  CodeBlock
62
68
  } from "../../chunk-WPX6MOFB.mjs";
63
- import {
64
- ImageBlock
65
- } from "../../chunk-3R2LCGLI.mjs";
66
- import "../../chunk-NKRBXAPF.mjs";
67
- import "../../chunk-MW5UCIIC.mjs";
68
- import "../../chunk-ZYKYDIOF.mjs";
69
69
  import "../../chunk-R57RJLFQ.mjs";
70
70
  import {
71
71
  CopyButton
72
72
  } from "../../chunk-GIHP74M4.mjs";
73
+ import "../../chunk-F4LCVFZK.mjs";
73
74
  import "../../chunk-3BYULUMU.mjs";
74
75
  import "../../chunk-RZRMW2DZ.mjs";
75
76
  import "../../chunk-GUHOQLS3.mjs";
@@ -2940,7 +2940,7 @@ function DealDetails({
2940
2940
  }
2941
2941
  };
2942
2942
  const getUserById = (userId) => {
2943
- return users?.find((user) => user.id === Number(userId));
2943
+ return users?.find((user) => user.id === userId);
2944
2944
  };
2945
2945
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogContent, { className: "max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden", children: [
2946
2946
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogHeader, { className: "flex flex-row items-center justify-between", children: [
@@ -2,8 +2,8 @@
2
2
  "use strict";
3
3
  import {
4
4
  CRMCogeBoard
5
- } from "../../chunk-7H3IRT7K.mjs";
6
- import "../../chunk-OS5X3ADZ.mjs";
5
+ } from "../../chunk-5CQITTLV.mjs";
6
+ import "../../chunk-E5LGE3IW.mjs";
7
7
  import "../../chunk-FAA3AKK5.mjs";
8
8
  import "../../chunk-VBDVWLWO.mjs";
9
9
  import "../../chunk-EMGZSA3M.mjs";
@@ -2936,7 +2936,7 @@ function DealDetails({
2936
2936
  }
2937
2937
  };
2938
2938
  const getUserById = (userId) => {
2939
- return users?.find((user) => user.id === Number(userId));
2939
+ return users?.find((user) => user.id === userId);
2940
2940
  };
2941
2941
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogContent, { className: "max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden", children: [
2942
2942
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogHeader, { className: "flex flex-row items-center justify-between", children: [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DealDetails
3
- } from "../../chunk-OS5X3ADZ.mjs";
3
+ } from "../../chunk-E5LGE3IW.mjs";
4
4
  import "../../chunk-EMGZSA3M.mjs";
5
5
  import "../../chunk-3L3SCQC4.mjs";
6
6
  import "../../chunk-PDHMPRPW.mjs";
@@ -2940,7 +2940,7 @@ function DealDetails({
2940
2940
  }
2941
2941
  };
2942
2942
  const getUserById = (userId) => {
2943
- return users?.find((user) => user.id === Number(userId));
2943
+ return users?.find((user) => user.id === userId);
2944
2944
  };
2945
2945
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogContent, { className: "max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden", children: [
2946
2946
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogHeader, { className: "flex flex-row items-center justify-between", children: [
@@ -2,8 +2,8 @@
2
2
  "use strict";
3
3
  import {
4
4
  CRMKanbanBoard
5
- } from "../../chunk-JBFNSEIJ.mjs";
6
- import "../../chunk-OS5X3ADZ.mjs";
5
+ } from "../../chunk-UETTBM3J.mjs";
6
+ import "../../chunk-E5LGE3IW.mjs";
7
7
  import "../../chunk-FAA3AKK5.mjs";
8
8
  import "../../chunk-VBDVWLWO.mjs";
9
9
  import "../../chunk-EMGZSA3M.mjs";
@@ -2977,7 +2977,7 @@ function NewDealForm({
2977
2977
  }
2978
2978
  };
2979
2979
  const getUserById = (userId) => {
2980
- return users?.find((user) => user.id === Number(userId));
2980
+ return users?.find((user) => user.id === userId);
2981
2981
  };
2982
2982
  const getCustomerById = (customerID) => {
2983
2983
  return customers?.find((customer) => customer.id === Number(customerID));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NewDealForm
3
- } from "../../chunk-DAQOEDAR.mjs";
3
+ } from "../../chunk-5NGZXIP7.mjs";
4
4
  import "../../chunk-RWCRMX3T.mjs";
5
5
  import "../../chunk-EMGZSA3M.mjs";
6
6
  import "../../chunk-3L3SCQC4.mjs";
@@ -2947,7 +2947,7 @@ function DealDetails({
2947
2947
  }
2948
2948
  };
2949
2949
  const getUserById = (userId) => {
2950
- return users?.find((user) => user.id === Number(userId));
2950
+ return users?.find((user) => user.id === userId);
2951
2951
  };
2952
2952
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Dialog, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogContent, { className: "max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden", children: [
2953
2953
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogHeader, { className: "flex flex-row items-center justify-between", children: [
@@ -3574,7 +3574,7 @@ function NewDealForm({
3574
3574
  }
3575
3575
  };
3576
3576
  const getUserById = (userId) => {
3577
- return users?.find((user) => user.id === Number(userId));
3577
+ return users?.find((user) => user.id === userId);
3578
3578
  };
3579
3579
  const getCustomerById = (customerID) => {
3580
3580
  return customers?.find((customer) => customer.id === Number(customerID));
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  NewDealForm
3
- } from "../../chunk-DAQOEDAR.mjs";
3
+ } from "../../chunk-5NGZXIP7.mjs";
4
+ import {
5
+ NewCustomerForm
6
+ } from "../../chunk-RWCRMX3T.mjs";
4
7
  import {
5
8
  CRMCogeBoard
6
- } from "../../chunk-7H3IRT7K.mjs";
9
+ } from "../../chunk-5CQITTLV.mjs";
7
10
  import {
8
11
  CRMKanbanBoard
9
- } from "../../chunk-JBFNSEIJ.mjs";
12
+ } from "../../chunk-UETTBM3J.mjs";
10
13
  import {
11
14
  DealDetails
12
- } from "../../chunk-OS5X3ADZ.mjs";
15
+ } from "../../chunk-E5LGE3IW.mjs";
13
16
  import {
14
17
  KanbanColumn
15
18
  } from "../../chunk-FAA3AKK5.mjs";
16
19
  import {
17
20
  DealCard
18
21
  } from "../../chunk-VBDVWLWO.mjs";
19
- import {
20
- NewCustomerForm
21
- } from "../../chunk-RWCRMX3T.mjs";
22
22
  import "../../chunk-EMGZSA3M.mjs";
23
23
  import "../../chunk-3L3SCQC4.mjs";
24
24
  import "../../chunk-PDHMPRPW.mjs";
@@ -41,11 +41,11 @@ var mockCategories = [
41
41
  { id: 6, name: "Finance", type: "sector", createdAt: "2023-01-01", updatedAt: "2023-01-01" }
42
42
  ];
43
43
  var mockUsers = [
44
- { id: 1, name: "John Doe", email: "john.doe@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
45
- { id: 2, name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
46
- { id: 3, name: "Bob Johnson", email: "bob.johnson@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
47
- { id: 4, name: "Alice Brown", email: "alice.brown@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
48
- { id: 5, name: "Charlie Davis", email: "charlie.davis@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" }
44
+ { id: "1", name: "John Doe", email: "john.doe@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
45
+ { id: "2", name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
46
+ { id: "3", name: "Bob Johnson", email: "bob.johnson@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
47
+ { id: "4", name: "Alice Brown", email: "alice.brown@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
48
+ { id: "5", name: "Charlie Davis", email: "charlie.davis@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" }
49
49
  ];
50
50
  var mockDeals = [
51
51
  {
@@ -67,7 +67,7 @@ var mockDeals = [
67
67
  id: 2,
68
68
  customer: { id: 2, name: "GlobalTech", active: true, createdAt: "2023-01-01", updatedAt: "2023-01-01" },
69
69
  value: 75e3,
70
- assignee: { id: 2, name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
70
+ assignee: { id: "2", name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
71
71
  status: "Proposal Made",
72
72
  categories: mockCategories.slice(0, 3),
73
73
  // Pass in 3 of the mockCategories
@@ -15,11 +15,11 @@ var mockCategories = [
15
15
  { id: 6, name: "Finance", type: "sector", createdAt: "2023-01-01", updatedAt: "2023-01-01" }
16
16
  ];
17
17
  var mockUsers = [
18
- { id: 1, name: "John Doe", email: "john.doe@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
19
- { id: 2, name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
20
- { id: 3, name: "Bob Johnson", email: "bob.johnson@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
21
- { id: 4, name: "Alice Brown", email: "alice.brown@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
22
- { id: 5, name: "Charlie Davis", email: "charlie.davis@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" }
18
+ { id: "1", name: "John Doe", email: "john.doe@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
19
+ { id: "2", name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
20
+ { id: "3", name: "Bob Johnson", email: "bob.johnson@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
21
+ { id: "4", name: "Alice Brown", email: "alice.brown@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
22
+ { id: "5", name: "Charlie Davis", email: "charlie.davis@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" }
23
23
  ];
24
24
  var mockDeals = [
25
25
  {
@@ -41,7 +41,7 @@ var mockDeals = [
41
41
  id: 2,
42
42
  customer: { id: 2, name: "GlobalTech", active: true, createdAt: "2023-01-01", updatedAt: "2023-01-01" },
43
43
  value: 75e3,
44
- assignee: { id: 2, name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
44
+ assignee: { id: "2", name: "Jane Smith", email: "jane.smith@example.com", role: "user", createdAt: "2023-01-01", updatedAt: "2023-01-01" },
45
45
  status: "Proposal Made",
46
46
  categories: mockCategories.slice(0, 3),
47
47
  // Pass in 3 of the mockCategories
@@ -3130,6 +3130,22 @@ var ImageBlock = (props) => {
3130
3130
  );
3131
3131
  };
3132
3132
 
3133
+ // src/utils/getLinkHref.ts
3134
+ function getLinkHref(link) {
3135
+ if (!link) return "#";
3136
+ if (link.url) return link.url;
3137
+ if (link.reference?.value) {
3138
+ const { relationTo, value } = link.reference;
3139
+ const slug = value?.slug;
3140
+ if (!slug) return "#";
3141
+ if (relationTo === "pages") {
3142
+ return `/${slug}`;
3143
+ }
3144
+ return `/${relationTo}/${slug}`;
3145
+ }
3146
+ return "#";
3147
+ }
3148
+
3133
3149
  // src/components/Images/DynamicIcon.tsx
3134
3150
  var import_jsx_runtime16 = require("react/jsx-runtime");
3135
3151
  var DynamicIcon = ({
@@ -3179,7 +3195,7 @@ function FeatureCard({
3179
3195
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3180
3196
  "a",
3181
3197
  {
3182
- href: link?.url || "#",
3198
+ href: getLinkHref(link),
3183
3199
  className: cn(
3184
3200
  "min-w-56 max-w-xl h-full flex flex-col group bg-background",
3185
3201
  image ? "p-0" : "p-6 md:p-8",
@@ -1,26 +1,27 @@
1
1
  import {
2
2
  ContentCard
3
- } from "../../chunk-LSHBOPCT.mjs";
3
+ } from "../../chunk-4HFMA57F.mjs";
4
4
  import "../../chunk-YLULVMZ7.mjs";
5
5
  import "../../chunk-2NXKZY7U.mjs";
6
6
  import "../../chunk-GSG52WU5.mjs";
7
7
  import "../../chunk-US72SCH3.mjs";
8
8
  import "../../chunk-G6EC37S7.mjs";
9
9
  import "../../chunk-LTOFCHXU.mjs";
10
+ import "../../chunk-LIJ2ES4B.mjs";
10
11
  import "../../chunk-GTHNG3Q7.mjs";
11
12
  import "../../chunk-PE44IHZN.mjs";
12
13
  import "../../chunk-4GLXI5J3.mjs";
13
14
  import "../../chunk-2X45TVQS.mjs";
14
15
  import "../../chunk-DTQ2W22B.mjs";
15
- import "../../chunk-LIJ2ES4B.mjs";
16
- import "../../chunk-6GO5N6ZP.mjs";
17
- import "../../chunk-WPX6MOFB.mjs";
18
- import "../../chunk-3R2LCGLI.mjs";
19
- import "../../chunk-NKRBXAPF.mjs";
20
- import "../../chunk-MW5UCIIC.mjs";
16
+ import "../../chunk-HLEMFDTD.mjs";
17
+ import "../../chunk-KIZUBPPQ.mjs";
18
+ import "../../chunk-2YHN7ZCJ.mjs";
21
19
  import "../../chunk-ZYKYDIOF.mjs";
20
+ import "../../chunk-MW5UCIIC.mjs";
21
+ import "../../chunk-WPX6MOFB.mjs";
22
22
  import "../../chunk-R57RJLFQ.mjs";
23
23
  import "../../chunk-GIHP74M4.mjs";
24
+ import "../../chunk-F4LCVFZK.mjs";
24
25
  import "../../chunk-3BYULUMU.mjs";
25
26
  import "../../chunk-RZRMW2DZ.mjs";
26
27
  import "../../chunk-GUHOQLS3.mjs";
@@ -3130,6 +3130,22 @@ var ImageBlock = (props) => {
3130
3130
  );
3131
3131
  };
3132
3132
 
3133
+ // src/utils/getLinkHref.ts
3134
+ function getLinkHref(link) {
3135
+ if (!link) return "#";
3136
+ if (link.url) return link.url;
3137
+ if (link.reference?.value) {
3138
+ const { relationTo, value } = link.reference;
3139
+ const slug = value?.slug;
3140
+ if (!slug) return "#";
3141
+ if (relationTo === "pages") {
3142
+ return `/${slug}`;
3143
+ }
3144
+ return `/${relationTo}/${slug}`;
3145
+ }
3146
+ return "#";
3147
+ }
3148
+
3133
3149
  // src/components/Images/DynamicIcon.tsx
3134
3150
  var import_jsx_runtime16 = require("react/jsx-runtime");
3135
3151
  var DynamicIcon = ({
@@ -3459,7 +3475,7 @@ function FeatureCard({
3459
3475
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
3460
3476
  "a",
3461
3477
  {
3462
- href: link?.url || "#",
3478
+ href: getLinkHref(link),
3463
3479
  className: cn(
3464
3480
  "min-w-56 max-w-xl h-full flex flex-col group bg-background",
3465
3481
  image ? "p-0" : "p-6 md:p-8",
@@ -1,26 +1,27 @@
1
1
  import {
2
2
  FeatureCard
3
- } from "../../chunk-LSHBOPCT.mjs";
3
+ } from "../../chunk-4HFMA57F.mjs";
4
4
  import "../../chunk-YLULVMZ7.mjs";
5
5
  import "../../chunk-2NXKZY7U.mjs";
6
6
  import "../../chunk-GSG52WU5.mjs";
7
7
  import "../../chunk-US72SCH3.mjs";
8
8
  import "../../chunk-G6EC37S7.mjs";
9
9
  import "../../chunk-LTOFCHXU.mjs";
10
+ import "../../chunk-LIJ2ES4B.mjs";
10
11
  import "../../chunk-GTHNG3Q7.mjs";
11
12
  import "../../chunk-PE44IHZN.mjs";
12
13
  import "../../chunk-4GLXI5J3.mjs";
13
14
  import "../../chunk-2X45TVQS.mjs";
14
15
  import "../../chunk-DTQ2W22B.mjs";
15
- import "../../chunk-LIJ2ES4B.mjs";
16
- import "../../chunk-6GO5N6ZP.mjs";
17
- import "../../chunk-WPX6MOFB.mjs";
18
- import "../../chunk-3R2LCGLI.mjs";
19
- import "../../chunk-NKRBXAPF.mjs";
20
- import "../../chunk-MW5UCIIC.mjs";
16
+ import "../../chunk-HLEMFDTD.mjs";
17
+ import "../../chunk-KIZUBPPQ.mjs";
18
+ import "../../chunk-2YHN7ZCJ.mjs";
21
19
  import "../../chunk-ZYKYDIOF.mjs";
20
+ import "../../chunk-MW5UCIIC.mjs";
21
+ import "../../chunk-WPX6MOFB.mjs";
22
22
  import "../../chunk-R57RJLFQ.mjs";
23
23
  import "../../chunk-GIHP74M4.mjs";
24
+ import "../../chunk-F4LCVFZK.mjs";
24
25
  import "../../chunk-3BYULUMU.mjs";
25
26
  import "../../chunk-RZRMW2DZ.mjs";
26
27
  import "../../chunk-GUHOQLS3.mjs";