cortex-react-components 3.0.7 → 3.0.9

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 (225) hide show
  1. package/dist/{chunk-LSHBOPCT.mjs → chunk-27NWC2OO.mjs} +6 -3
  2. package/dist/{chunk-6B6BKJIE.mjs → chunk-34R3E2JB.mjs} +1 -1
  3. package/dist/{chunk-2NKCNQ56.mjs → chunk-3YAZKLH3.mjs} +1 -1
  4. package/dist/{chunk-FUNWDVGQ.mjs → chunk-4DNX5IYR.mjs} +1 -1
  5. package/dist/{chunk-HABWABS7.mjs → chunk-4O6ESJYG.mjs} +32 -11
  6. package/dist/{chunk-7H3IRT7K.mjs → chunk-5CQITTLV.mjs} +1 -1
  7. package/dist/{chunk-NAPGIF5D.mjs → chunk-5DYPBHBP.mjs} +3 -3
  8. package/dist/{chunk-DAQOEDAR.mjs → chunk-5NGZXIP7.mjs} +1 -1
  9. package/dist/{chunk-P4DQRHCA.mjs → chunk-6I3O6TVG.mjs} +1 -1
  10. package/dist/{chunk-EDJDHF22.mjs → chunk-6QSVFSOJ.mjs} +1 -1
  11. package/dist/{chunk-R2SJ5TZH.mjs → chunk-6VQJSQRU.mjs} +8 -8
  12. package/dist/{chunk-WMAVH7JO.mjs → chunk-6VQLA4YU.mjs} +2 -2
  13. package/dist/{chunk-GXTF5CHJ.mjs → chunk-7D3SYOXW.mjs} +7 -4
  14. package/dist/{chunk-DO73CLFG.mjs → chunk-AQPLEBKG.mjs} +1 -1
  15. package/dist/{chunk-ZPWWTTFF.mjs → chunk-BPAZFILP.mjs} +1 -1
  16. package/dist/{chunk-K3TF6OWE.mjs → chunk-BVCARDFK.mjs} +5 -5
  17. package/dist/{chunk-ENFQLMV3.mjs → chunk-CKBIYWPM.mjs} +1 -1
  18. package/dist/{chunk-KV5RVOAP.mjs → chunk-DGV5AVAW.mjs} +1 -1
  19. package/dist/{chunk-OS5X3ADZ.mjs → chunk-E5LGE3IW.mjs} +1 -1
  20. package/dist/chunk-F4LCVFZK.mjs +19 -0
  21. package/dist/{chunk-LAJ5FNY4.mjs → chunk-G5N5MCLS.mjs} +1 -1
  22. package/dist/{chunk-HZZWKYB5.mjs → chunk-G7GPQ6BO.mjs} +1 -1
  23. package/dist/{chunk-URCY4KWN.mjs → chunk-G7WAPCKX.mjs} +1 -1
  24. package/dist/{chunk-7OGBZ6QQ.mjs → chunk-ICVTRW5Y.mjs} +1 -1
  25. package/dist/{chunk-AICDXFGU.mjs → chunk-IFEQNYUB.mjs} +2 -2
  26. package/dist/{chunk-LCRSPNPB.mjs → chunk-LELKTN52.mjs} +18 -14
  27. package/dist/{chunk-RKQ4CVVG.mjs → chunk-M7LM5P64.mjs} +1 -1
  28. package/dist/{chunk-DQZO42TD.mjs → chunk-MSAH6P5O.mjs} +1 -1
  29. package/dist/{chunk-GZW77OJM.mjs → chunk-NKHYDT5B.mjs} +1 -1
  30. package/dist/{chunk-TTVOGAI4.mjs → chunk-OFES4YYV.mjs} +2 -2
  31. package/dist/{chunk-LP3K7AVX.mjs → chunk-OYHXC3AT.mjs} +13 -13
  32. package/dist/{chunk-7ZMZT7I6.mjs → chunk-P7BPG7W7.mjs} +1 -1
  33. package/dist/chunk-PIQUYPOZ.mjs +41 -0
  34. package/dist/{chunk-KVULICDA.mjs → chunk-PVI4R7FJ.mjs} +1 -1
  35. package/dist/{chunk-I647IJUG.mjs → chunk-QC2AXU6I.mjs} +2 -2
  36. package/dist/{chunk-M5JROT2X.mjs → chunk-R242HNC3.mjs} +1 -1
  37. package/dist/{chunk-6Q4KYDHK.mjs → chunk-RJRQ3SY5.mjs} +2 -2
  38. package/dist/{chunk-OXZ5QAXQ.mjs → chunk-S4FUSOSS.mjs} +1 -1
  39. package/dist/{chunk-DAGWV4UL.mjs → chunk-SRK3Y7FA.mjs} +1 -1
  40. package/dist/{chunk-2TJ5HOCV.mjs → chunk-UBEWNGCN.mjs} +1 -1
  41. package/dist/{chunk-JBFNSEIJ.mjs → chunk-UETTBM3J.mjs} +1 -1
  42. package/dist/{chunk-DB2F6SID.mjs → chunk-ULYN63F3.mjs} +1 -1
  43. package/dist/{chunk-VNSEHNDX.mjs → chunk-VF2QBVAI.mjs} +1 -1
  44. package/dist/{chunk-EC4N6ZH3.mjs → chunk-WA3OQB7X.mjs} +1 -1
  45. package/dist/{chunk-UDZU3AZC.mjs → chunk-XWYGGWIF.mjs} +4 -4
  46. package/dist/{chunk-2PGER2HM.mjs → chunk-YMXGTNMY.mjs} +1 -1
  47. package/dist/{chunk-G3UZUSQZ.mjs → chunk-ZFWHFUZP.mjs} +4 -4
  48. package/dist/{chunk-HQ2AUN2H.mjs → chunk-ZMITLXFT.mjs} +1 -1
  49. package/dist/{chunk-DRCDP3RU.mjs → chunk-ZXU5T3GV.mjs} +1 -1
  50. package/dist/{chunk-6RAMGDYG.mjs → chunk-ZZ5EM2M4.mjs} +1 -1
  51. package/dist/components/AdvancedComponents/index.mjs +9 -9
  52. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +4 -4
  53. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +2 -2
  54. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +3 -3
  55. package/dist/components/AdvancedComponents/org-chart-component/index.mjs +6 -6
  56. package/dist/components/Blocks/Banner.js +17 -1
  57. package/dist/components/Blocks/Banner.mjs +4 -3
  58. package/dist/components/Blocks/CallToAction.js +17 -1
  59. package/dist/components/Blocks/CallToAction.mjs +4 -3
  60. package/dist/components/Blocks/CollapsibleArea.js +17 -1
  61. package/dist/components/Blocks/CollapsibleArea.mjs +5 -4
  62. package/dist/components/Blocks/Content.js +17 -1
  63. package/dist/components/Blocks/Content.mjs +5 -4
  64. package/dist/components/Blocks/FeaturesBlock.js +17 -1
  65. package/dist/components/Blocks/FeaturesBlock.mjs +4 -3
  66. package/dist/components/Blocks/RelatedPosts.js +17 -1
  67. package/dist/components/Blocks/RelatedPosts.mjs +5 -4
  68. package/dist/components/Blocks/RenderBlocks.js +17 -1
  69. package/dist/components/Blocks/RenderBlocks.mjs +7 -6
  70. package/dist/components/Blocks/ReusableContentBlock.js +17 -1
  71. package/dist/components/Blocks/ReusableContentBlock.mjs +7 -6
  72. package/dist/components/Blocks/index.js +17 -1
  73. package/dist/components/Blocks/index.mjs +13 -12
  74. package/dist/components/CRM/CogeBoard.js +1 -1
  75. package/dist/components/CRM/CogeBoard.mjs +2 -2
  76. package/dist/components/CRM/DealDetails.js +1 -1
  77. package/dist/components/CRM/DealDetails.mjs +1 -1
  78. package/dist/components/CRM/KanbanBoard.js +1 -1
  79. package/dist/components/CRM/KanbanBoard.mjs +2 -2
  80. package/dist/components/CRM/NewDealForm.js +1 -1
  81. package/dist/components/CRM/NewDealForm.mjs +1 -1
  82. package/dist/components/CRM/index.js +2 -2
  83. package/dist/components/CRM/index.mjs +4 -4
  84. package/dist/components/CRM/mockData.js +6 -6
  85. package/dist/components/CRM/mockData.mjs +6 -6
  86. package/dist/components/Cards/ContentCard.js +17 -1
  87. package/dist/components/Cards/ContentCard.mjs +4 -3
  88. package/dist/components/Cards/FeatureCard.js +17 -1
  89. package/dist/components/Cards/FeatureCard.mjs +4 -3
  90. package/dist/components/Cards/index.js +17 -1
  91. package/dist/components/Cards/index.mjs +6 -5
  92. package/dist/components/Chat/ChatInterface.mjs +7 -7
  93. package/dist/components/Chat/CopilotInterface.mjs +8 -8
  94. package/dist/components/Chat/PartTypes/MessageHandler.mjs +6 -6
  95. package/dist/components/Chat/PartTypes/index.mjs +19 -19
  96. package/dist/components/Chat/demo-long-messages.mjs +8 -8
  97. package/dist/components/Chat/demo-tests.mjs +8 -8
  98. package/dist/components/Chat/demo.mjs +8 -8
  99. package/dist/components/Chat/example-usage.mjs +9 -9
  100. package/dist/components/Chat/example-with-vercel-ai.mjs +8 -8
  101. package/dist/components/Chat/index.mjs +11 -11
  102. package/dist/components/DigitalColleagues/MainPage.mjs +4 -4
  103. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +9 -9
  104. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +2 -2
  105. package/dist/components/DigitalColleagues/Views/index.mjs +19 -19
  106. package/dist/components/DigitalColleagues/index.mjs +27 -27
  107. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +2 -2
  108. package/dist/components/Foundary/Knowledge/add-team-context.mjs +2 -2
  109. package/dist/components/Foundary/MainPage.mjs +4 -4
  110. package/dist/components/Foundary/Pages/dashboardpage.mjs +13 -13
  111. package/dist/components/Foundary/RichText/index.mjs +3 -3
  112. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +2 -2
  113. package/dist/components/Foundary/Views/KnowledgeView.mjs +9 -9
  114. package/dist/components/Foundary/Views/index.mjs +21 -21
  115. package/dist/components/Foundary/document-edit.mjs +4 -4
  116. package/dist/components/Foundary/document-preview-examples.mjs +5 -5
  117. package/dist/components/Foundary/document-preview.mjs +5 -5
  118. package/dist/components/Foundary/file-edit.mjs +6 -6
  119. package/dist/components/Foundary/index.mjs +39 -39
  120. package/dist/components/Foundary/knowledge-browser.mjs +6 -6
  121. package/dist/components/HeaderFooter/SectionHeading.js +17 -1
  122. package/dist/components/HeaderFooter/SectionHeading.mjs +5 -4
  123. package/dist/components/HeaderFooter/index.mjs +8 -8
  124. package/dist/components/Heros/HighImpact/index.js +17 -1
  125. package/dist/components/Heros/HighImpact/index.mjs +5 -4
  126. package/dist/components/Heros/LowImpact/index.js +17 -1
  127. package/dist/components/Heros/LowImpact/index.mjs +5 -4
  128. package/dist/components/Heros/MediumImpact/index.js +17 -1
  129. package/dist/components/Heros/MediumImpact/index.mjs +5 -4
  130. package/dist/components/Heros/PostHero/index.mjs +2 -2
  131. package/dist/components/Heros/RenderHero.js +17 -1
  132. package/dist/components/Heros/RenderHero.mjs +8 -7
  133. package/dist/components/Heros/index.js +17 -1
  134. package/dist/components/Heros/index.mjs +12 -11
  135. package/dist/components/Holidays/CalendarView.d.ts +2 -1
  136. package/dist/components/Holidays/CalendarView.js +18 -14
  137. package/dist/components/Holidays/CalendarView.mjs +1 -1
  138. package/dist/components/Holidays/HolidayGrid.js +5 -3
  139. package/dist/components/Holidays/HolidayGrid.mjs +2 -2
  140. package/dist/components/Holidays/HolidayTracker.d.ts +2 -1
  141. package/dist/components/Holidays/HolidayTracker.js +65 -35
  142. package/dist/components/Holidays/HolidayTracker.mjs +5 -5
  143. package/dist/components/Holidays/RequestLeave.js +40 -17
  144. package/dist/components/Holidays/RequestLeave.mjs +2 -2
  145. package/dist/components/Holidays/index.js +65 -35
  146. package/dist/components/Holidays/index.mjs +5 -5
  147. package/dist/components/Layouts/OutputHeaderFooter.js +17 -1
  148. package/dist/components/Layouts/OutputHeaderFooter.mjs +6 -5
  149. package/dist/components/Layouts/Print.js +17 -1
  150. package/dist/components/Layouts/Print.mjs +10 -9
  151. package/dist/components/Layouts/SlideShow.js +17 -1
  152. package/dist/components/Layouts/SlideShow.mjs +12 -11
  153. package/dist/components/Layouts/index.js +17 -1
  154. package/dist/components/Layouts/index.mjs +16 -15
  155. package/dist/components/Menus/index.mjs +3 -3
  156. package/dist/components/Payload/RichText/index.js +17 -1
  157. package/dist/components/Payload/RichText/index.mjs +4 -3
  158. package/dist/components/Payload/RichText/serialize.js +17 -1
  159. package/dist/components/Payload/RichText/serialize.mjs +4 -3
  160. package/dist/components/Payload/index.js +17 -1
  161. package/dist/components/Payload/index.mjs +7 -6
  162. package/dist/components/Projects/EpicsView.mjs +2 -2
  163. package/dist/components/Projects/FileView.mjs +9 -9
  164. package/dist/components/Projects/KanbanBoardView.mjs +12 -12
  165. package/dist/components/Projects/ProjectPage.mjs +16 -16
  166. package/dist/components/Projects/ProjectView.mjs +16 -16
  167. package/dist/components/Projects/TaskDetailsModal.mjs +10 -10
  168. package/dist/components/Projects/file-list.mjs +7 -7
  169. package/dist/components/Projects/index.mjs +15 -15
  170. package/dist/components/dc-temp/index.mjs +9 -9
  171. package/dist/components/index.js +116 -70
  172. package/dist/components/index.mjs +121 -120
  173. package/dist/components/ui/index.mjs +11 -11
  174. package/dist/decorators/Intranet.mjs +73 -72
  175. package/dist/index.js +116 -70
  176. package/dist/index.mjs +134 -133
  177. package/dist/metafile-cjs.json +1 -1
  178. package/dist/metafile-esm.json +1 -1
  179. package/dist/pages/Blog.js +17 -1
  180. package/dist/pages/Blog.mjs +12 -11
  181. package/dist/pages/Documentation.mjs +4 -4
  182. package/dist/pages/IndexPage.mjs +15 -14
  183. package/dist/pages/Intranet.mjs +1 -1
  184. package/dist/pages/LandingPage.js +17 -1
  185. package/dist/pages/LandingPage.mjs +83 -82
  186. package/dist/pages/Page.js +17 -1
  187. package/dist/pages/Page.mjs +15 -14
  188. package/dist/pages/Publish.js +17 -1
  189. package/dist/pages/Publish.mjs +72 -71
  190. package/dist/pages/Website.js +17 -1
  191. package/dist/pages/Website.mjs +17 -16
  192. package/dist/payload-types.d.ts +1 -1
  193. package/dist/sections/AboutSection.js +17 -1
  194. package/dist/sections/AboutSection.mjs +6 -5
  195. package/dist/sections/BlogDetail.js +17 -1
  196. package/dist/sections/BlogDetail.mjs +5 -4
  197. package/dist/sections/BlogList.js +17 -1
  198. package/dist/sections/BlogList.mjs +6 -5
  199. package/dist/sections/BlogListSection.mjs +2 -2
  200. package/dist/sections/ContactSection.js +17 -1
  201. package/dist/sections/ContactSection.mjs +6 -5
  202. package/dist/sections/PageSections.js +17 -1
  203. package/dist/sections/PageSections.mjs +81 -80
  204. package/dist/sections/PricingSection.js +17 -1
  205. package/dist/sections/PricingSection.mjs +6 -5
  206. package/dist/sections/ServiceDetail.js +17 -1
  207. package/dist/sections/ServiceDetail.mjs +5 -4
  208. package/dist/sections/ServiceDetailSection.js +17 -1
  209. package/dist/sections/ServiceDetailSection.mjs +5 -4
  210. package/dist/sections/ServiceSection.js +17 -1
  211. package/dist/sections/ServiceSection.mjs +72 -71
  212. package/dist/sections/index.js +17 -1
  213. package/dist/sections/index.mjs +83 -82
  214. package/dist/utils/DaysUtil.js +9 -7
  215. package/dist/utils/DaysUtil.mjs +1 -1
  216. package/dist/utils/getLinkHref.d.ts +12 -0
  217. package/dist/utils/getLinkHref.js +43 -0
  218. package/dist/utils/getLinkHref.mjs +7 -0
  219. package/package.json +1 -1
  220. package/dist/chunk-I4UOIVSC.mjs +0 -39
  221. package/dist/{chunk-25OSLP2V.mjs → chunk-6TVRFATY.mjs} +3 -3
  222. package/dist/{chunk-EUAUP52U.mjs → chunk-7UMFQPR5.mjs} +3 -3
  223. package/dist/{chunk-ECCJ42NJ.mjs → chunk-L666B5DN.mjs} +14 -14
  224. package/dist/{chunk-DZYAOBGH.mjs → chunk-PXB2ICFA.mjs} +3 -3
  225. package/dist/{chunk-6OFY4WMY.mjs → chunk-RWZ36G7W.mjs} +3 -3
@@ -1,26 +1,27 @@
1
1
  import {
2
2
  FeaturesBlock
3
- } from "../../chunk-LSHBOPCT.mjs";
3
+ } from "../../chunk-27NWC2OO.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
16
  import "../../chunk-6GO5N6ZP.mjs";
17
- import "../../chunk-WPX6MOFB.mjs";
18
17
  import "../../chunk-3R2LCGLI.mjs";
19
18
  import "../../chunk-NKRBXAPF.mjs";
20
19
  import "../../chunk-MW5UCIIC.mjs";
21
20
  import "../../chunk-ZYKYDIOF.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";
@@ -3131,6 +3131,22 @@ var ImageBlock = (props) => {
3131
3131
  );
3132
3132
  };
3133
3133
 
3134
+ // src/utils/getLinkHref.ts
3135
+ function getLinkHref(link) {
3136
+ if (!link) return "#";
3137
+ if (link.url) return link.url;
3138
+ if (link.reference?.value) {
3139
+ const { relationTo, value } = link.reference;
3140
+ const slug = value?.slug;
3141
+ if (!slug) return "#";
3142
+ if (relationTo === "pages") {
3143
+ return `/${slug}`;
3144
+ }
3145
+ return `/${relationTo}/${slug}`;
3146
+ }
3147
+ return "#";
3148
+ }
3149
+
3134
3150
  // src/components/Images/DynamicIcon.tsx
3135
3151
  var import_jsx_runtime16 = require("react/jsx-runtime");
3136
3152
  var DynamicIcon = ({
@@ -3180,7 +3196,7 @@ function FeatureCard({
3180
3196
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3181
3197
  "a",
3182
3198
  {
3183
- href: link?.url || "#",
3199
+ href: getLinkHref(link),
3184
3200
  className: cn(
3185
3201
  "min-w-56 max-w-xl h-full flex flex-col group bg-background",
3186
3202
  image ? "p-0" : "p-6 md:p-8",
@@ -1,29 +1,30 @@
1
1
  import {
2
2
  RelatedPosts
3
- } from "../../chunk-2PGER2HM.mjs";
3
+ } from "../../chunk-YMXGTNMY.mjs";
4
4
  import "../../chunk-PAXCURFR.mjs";
5
5
  import "../../chunk-4Z4X2GG7.mjs";
6
- import "../../chunk-LSHBOPCT.mjs";
6
+ import "../../chunk-27NWC2OO.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
19
  import "../../chunk-6GO5N6ZP.mjs";
20
- import "../../chunk-WPX6MOFB.mjs";
21
20
  import "../../chunk-3R2LCGLI.mjs";
22
21
  import "../../chunk-NKRBXAPF.mjs";
23
22
  import "../../chunk-MW5UCIIC.mjs";
24
23
  import "../../chunk-ZYKYDIOF.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-5DYPBHBP.mjs";
9
+ import "../../chunk-DGV5AVAW.mjs";
10
+ import "../../chunk-WA3OQB7X.mjs";
11
+ import "../../chunk-27NWC2OO.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
24
  import "../../chunk-6GO5N6ZP.mjs";
25
- import "../../chunk-WPX6MOFB.mjs";
26
25
  import "../../chunk-3R2LCGLI.mjs";
27
26
  import "../../chunk-NKRBXAPF.mjs";
28
27
  import "../../chunk-MW5UCIIC.mjs";
29
28
  import "../../chunk-ZYKYDIOF.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-5DYPBHBP.mjs";
4
+ import "../../chunk-DGV5AVAW.mjs";
5
+ import "../../chunk-WA3OQB7X.mjs";
6
+ import "../../chunk-27NWC2OO.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
19
  import "../../chunk-6GO5N6ZP.mjs";
20
- import "../../chunk-WPX6MOFB.mjs";
21
20
  import "../../chunk-3R2LCGLI.mjs";
22
21
  import "../../chunk-NKRBXAPF.mjs";
23
22
  import "../../chunk-MW5UCIIC.mjs";
24
23
  import "../../chunk-ZYKYDIOF.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,7 +9,7 @@ import {
9
9
  } from "../../chunk-64SYH2HO.mjs";
10
10
  import {
11
11
  RelatedPosts
12
- } from "../../chunk-2PGER2HM.mjs";
12
+ } from "../../chunk-YMXGTNMY.mjs";
13
13
  import "../../chunk-PAXCURFR.mjs";
14
14
  import "../../chunk-WE7DY7DV.mjs";
15
15
  import {
@@ -17,12 +17,12 @@ import {
17
17
  } from "../../chunk-R5QFVX2Y.mjs";
18
18
  import "../../chunk-XPLDQMNA.mjs";
19
19
  import "../../chunk-4Z4X2GG7.mjs";
20
- import {
21
- InfoTile
22
- } from "../../chunk-R6GWYR6G.mjs";
23
20
  import {
24
21
  MOTD
25
22
  } from "../../chunk-VSL4NZ5W.mjs";
23
+ import {
24
+ InfoTile
25
+ } from "../../chunk-R6GWYR6G.mjs";
26
26
  import {
27
27
  DarkTop,
28
28
  LightTop,
@@ -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-5DYPBHBP.mjs";
35
+ import "../../chunk-DGV5AVAW.mjs";
36
36
  import {
37
37
  ContentBlock
38
- } from "../../chunk-EC4N6ZH3.mjs";
38
+ } from "../../chunk-WA3OQB7X.mjs";
39
39
  import {
40
40
  BannerBlock,
41
41
  CallToActionBlock,
42
42
  CallToActionBlockOld,
43
43
  FeaturesBlock
44
- } from "../../chunk-LSHBOPCT.mjs";
44
+ } from "../../chunk-27NWC2OO.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
57
  import {
58
58
  MediaBlock
59
59
  } from "../../chunk-6GO5N6ZP.mjs";
60
- import {
61
- CodeBlock
62
- } from "../../chunk-WPX6MOFB.mjs";
63
60
  import {
64
61
  ImageBlock
65
62
  } from "../../chunk-3R2LCGLI.mjs";
66
63
  import "../../chunk-NKRBXAPF.mjs";
67
64
  import "../../chunk-MW5UCIIC.mjs";
68
65
  import "../../chunk-ZYKYDIOF.mjs";
66
+ import {
67
+ CodeBlock
68
+ } from "../../chunk-WPX6MOFB.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,15 +1,15 @@
1
1
  import {
2
2
  NewDealForm
3
- } from "../../chunk-DAQOEDAR.mjs";
3
+ } from "../../chunk-5NGZXIP7.mjs";
4
4
  import {
5
5
  CRMCogeBoard
6
- } from "../../chunk-7H3IRT7K.mjs";
6
+ } from "../../chunk-5CQITTLV.mjs";
7
7
  import {
8
8
  CRMKanbanBoard
9
- } from "../../chunk-JBFNSEIJ.mjs";
9
+ } from "../../chunk-UETTBM3J.mjs";
10
10
  import {
11
11
  DealDetails
12
- } from "../../chunk-OS5X3ADZ.mjs";
12
+ } from "../../chunk-E5LGE3IW.mjs";
13
13
  import {
14
14
  KanbanColumn
15
15
  } from "../../chunk-FAA3AKK5.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-27NWC2OO.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
16
  import "../../chunk-6GO5N6ZP.mjs";
17
- import "../../chunk-WPX6MOFB.mjs";
18
17
  import "../../chunk-3R2LCGLI.mjs";
19
18
  import "../../chunk-NKRBXAPF.mjs";
20
19
  import "../../chunk-MW5UCIIC.mjs";
21
20
  import "../../chunk-ZYKYDIOF.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",