cortex-react-components 1.4.1 → 1.4.3

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 (259) hide show
  1. package/dist/chunk-32RDLRVK.mjs +3 -0
  2. package/dist/chunk-4NZ3SPPA.mjs +3 -0
  3. package/dist/chunk-4PTHCL6I.mjs +3 -0
  4. package/dist/chunk-4TIAA7YP.mjs +3 -0
  5. package/dist/{chunk-ZBSVA7YF.mjs → chunk-5UEX2ZT3.mjs} +1 -1
  6. package/dist/chunk-62HF5YVD.mjs +3 -0
  7. package/dist/chunk-6P7CY367.mjs +3 -0
  8. package/dist/{chunk-7BP5RVYA.mjs → chunk-6XQN7JHH.mjs} +4 -1
  9. package/dist/chunk-BJYY3KBF.mjs +3 -0
  10. package/dist/chunk-BZVOHDLV.mjs +3 -0
  11. package/dist/{chunk-JYZNBFY2.mjs → chunk-C7PSO75I.mjs} +4 -1
  12. package/dist/chunk-CV7PH2KH.mjs +3 -0
  13. package/dist/chunk-E53JVQZX.mjs +3 -0
  14. package/dist/chunk-E6LAVMGN.mjs +3 -0
  15. package/dist/chunk-FRWX5YES.mjs +3 -0
  16. package/dist/{chunk-EF2M7XZK.mjs → chunk-HQ5V5FY5.mjs} +1 -1
  17. package/dist/chunk-I5PVVLPG.mjs +3 -0
  18. package/dist/{chunk-OVQPFHX2.mjs → chunk-I6MWUGBD.mjs} +1 -1
  19. package/dist/chunk-IYOWTF4E.mjs +3 -0
  20. package/dist/chunk-KQTFKGAZ.mjs +3 -0
  21. package/dist/chunk-LAIB3DU5.mjs +3 -0
  22. package/dist/chunk-LE63372T.mjs +3 -0
  23. package/dist/chunk-LFACHBX2.mjs +3 -0
  24. package/dist/chunk-LVMTOUN5.mjs +3 -0
  25. package/dist/{chunk-VHDG422X.mjs → chunk-MT7IEKDP.mjs} +4 -1
  26. package/dist/{chunk-6VGO3JR7.mjs → chunk-MY7YCD7T.mjs} +1 -1
  27. package/dist/chunk-N6Y7HNC6.mjs +3 -0
  28. package/dist/chunk-OANFAQE4.mjs +3 -0
  29. package/dist/chunk-OQNGQGJV.mjs +3 -0
  30. package/dist/chunk-OTS4QNQ2.mjs +3 -0
  31. package/dist/chunk-PPQGQK27.mjs +3 -0
  32. package/dist/chunk-PV4EARTR.mjs +3 -0
  33. package/dist/{chunk-3FH4D24Y.mjs → chunk-Q4PYWFOV.mjs} +1 -1
  34. package/dist/chunk-RAZKAPLW.mjs +3 -0
  35. package/dist/chunk-RH5IBKKX.mjs +3 -0
  36. package/dist/{chunk-EMNKQTUC.mjs → chunk-RTU6IVSY.mjs} +1 -1
  37. package/dist/chunk-TNVXZARJ.mjs +3 -0
  38. package/dist/chunk-UVJPKH6R.mjs +3 -0
  39. package/dist/chunk-VI6PF7VY.mjs +3 -0
  40. package/dist/chunk-X42HILQB.mjs +3 -0
  41. package/dist/chunk-YAZZUJPQ.mjs +3 -0
  42. package/dist/{chunk-VBYC64I2.mjs → chunk-YQY5Z73J.mjs} +1 -1
  43. package/dist/client/Blocks/Banner.js +3 -0
  44. package/dist/client/Blocks/Banner.mjs +1 -1
  45. package/dist/client/Blocks/CallToAction.js +3 -0
  46. package/dist/client/Blocks/CallToAction.mjs +1 -1
  47. package/dist/client/Blocks/CaseStudy.mjs +1 -1
  48. package/dist/client/Blocks/CaseStudy.stories.mjs +1 -1
  49. package/dist/client/Blocks/Code.client.js +3 -1
  50. package/dist/client/Blocks/Code.js +3 -0
  51. package/dist/client/Blocks/ConsultantProfile.mjs +1 -1
  52. package/dist/client/Blocks/ConsultantProfile.stories.mjs +1 -1
  53. package/dist/client/Blocks/Content.js +3 -0
  54. package/dist/client/Blocks/Content.mjs +1 -1
  55. package/dist/client/Blocks/CopyButton.js +3 -1
  56. package/dist/client/Blocks/FeaturesBlock.js +3 -0
  57. package/dist/client/Blocks/FeaturesBlock.mjs +1 -1
  58. package/dist/client/Blocks/FeaturesBlock.stories.js +3 -0
  59. package/dist/client/Blocks/FeaturesBlock.stories.mjs +1 -1
  60. package/dist/client/Blocks/ImageBlock.js +3 -0
  61. package/dist/client/Blocks/ImageBlock.mjs +1 -1
  62. package/dist/client/Blocks/InfoTile.stories.js +3 -1
  63. package/dist/client/Blocks/InfoTile.stories.mjs +3 -1
  64. package/dist/client/Blocks/Insight.js +3 -1
  65. package/dist/client/Blocks/Insight.stories.js +3 -1
  66. package/dist/client/Blocks/Insight.stories.mjs +3 -1
  67. package/dist/client/Blocks/MOTD.stories.js +3 -1
  68. package/dist/client/Blocks/MOTD.stories.mjs +3 -1
  69. package/dist/client/Blocks/MediaBlock.js +3 -0
  70. package/dist/client/Blocks/MediaBlock.mjs +1 -1
  71. package/dist/client/Blocks/OrgChart.js +3 -1
  72. package/dist/client/Blocks/OrgChart.stories.js +3 -0
  73. package/dist/client/Blocks/RelatedPosts.js +3 -0
  74. package/dist/client/Blocks/RelatedPosts.mjs +1 -1
  75. package/dist/client/Blocks/RenderBlocks.js +3 -0
  76. package/dist/client/Blocks/RenderBlocks.mjs +1 -1
  77. package/dist/client/Blocks/index.js +3 -0
  78. package/dist/client/Blocks/index.mjs +1 -1
  79. package/dist/client/Cards/EventCard.js +3 -0
  80. package/dist/client/Cards/EventCard.mjs +1 -1
  81. package/dist/client/Cards/EventCard.stories.js +4 -0
  82. package/dist/client/Cards/EventCard.stories.mjs +1 -1
  83. package/dist/client/Cards/FeatureCard.js +3 -1
  84. package/dist/client/Cards/FeatureCard.stories.js +3 -0
  85. package/dist/client/Cards/Image.js +3 -1
  86. package/dist/client/Cards/Image.stories.js +3 -0
  87. package/dist/client/Cards/index.js +4 -0
  88. package/dist/client/Cards/index.mjs +1 -1
  89. package/dist/client/Images/DynamicIcon.js +3 -1
  90. package/dist/client/Images/DynamicIcon.stories.js +3 -0
  91. package/dist/client/Images/index.js +3 -0
  92. package/dist/client/Layouts/FeatureGrid.js +3 -1
  93. package/dist/client/Layouts/FeatureGrid.stories.js +3 -0
  94. package/dist/client/Layouts/NewsGrid.js +3 -1
  95. package/dist/client/Layouts/NewsGrid.mjs +1 -1
  96. package/dist/client/Layouts/NewsGrid.stories.js +3 -0
  97. package/dist/client/Layouts/NewsGrid.stories.mjs +1 -1
  98. package/dist/client/Layouts/VerticalSlider.js +3 -1
  99. package/dist/client/Layouts/VerticalSlider.stories.js +3 -1
  100. package/dist/client/Layouts/VerticalSlider.stories.mjs +3 -1
  101. package/dist/client/Layouts/index.js +3 -0
  102. package/dist/client/Layouts/index.mjs +1 -1
  103. package/dist/client/Payload/Card/index.js +3 -1
  104. package/dist/client/Payload/Card/index.mjs +1 -1
  105. package/dist/client/Payload/CollectionArchive/index.js +3 -0
  106. package/dist/client/Payload/CollectionArchive/index.mjs +1 -1
  107. package/dist/client/Payload/Media/ImageMedia/index.js +3 -1
  108. package/dist/client/Payload/Media/ImageMedia/index.mjs +1 -1
  109. package/dist/client/Payload/Media/VideoMedia/index.js +3 -1
  110. package/dist/client/Payload/Media/VideoMedia/index.mjs +1 -1
  111. package/dist/client/Payload/Media/index.js +3 -0
  112. package/dist/client/Payload/Media/index.mjs +1 -1
  113. package/dist/client/Payload/Pagination/index.js +3 -1
  114. package/dist/client/Payload/Pagination/index.mjs +3 -1
  115. package/dist/client/Payload/RichText/index.js +3 -0
  116. package/dist/client/Payload/RichText/index.mjs +1 -1
  117. package/dist/client/Payload/RichText/serialize.js +3 -0
  118. package/dist/client/Payload/RichText/serialize.mjs +1 -1
  119. package/dist/client/index.d.ts +1 -1
  120. package/dist/client/index.js +4 -1
  121. package/dist/client/index.mjs +1 -1
  122. package/dist/client/ui/avatar.js +3 -1
  123. package/dist/client/ui/avatar.stories.js +3 -0
  124. package/dist/client/ui/badge.d.ts +1 -1
  125. package/dist/client/ui/button.d.ts +1 -1
  126. package/dist/client/ui/checkbox.js +3 -1
  127. package/dist/client/ui/checkbox.mjs +3 -1
  128. package/dist/client/ui/collapsible.js +3 -1
  129. package/dist/client/ui/collapsible.stories.js +3 -0
  130. package/dist/client/ui/command.d.ts +7 -7
  131. package/dist/client/ui/command.js +3 -1
  132. package/dist/client/ui/command.stories.js +3 -0
  133. package/dist/client/ui/dialog.js +3 -1
  134. package/dist/client/ui/dialog.stories.js +3 -0
  135. package/dist/client/ui/dropdown-menu.js +3 -1
  136. package/dist/client/ui/dropdown-menu.stories.js +3 -0
  137. package/dist/client/ui/hover-card.js +3 -1
  138. package/dist/client/ui/hover-card.stories.js +3 -0
  139. package/dist/client/ui/index.js +3 -0
  140. package/dist/client/ui/index.mjs +1 -1
  141. package/dist/client/ui/label.js +3 -1
  142. package/dist/client/ui/label.stories.js +3 -0
  143. package/dist/client/ui/popover.js +3 -1
  144. package/dist/client/ui/popover.stories.js +3 -0
  145. package/dist/client/ui/scroll-area.js +3 -1
  146. package/dist/client/ui/scroll-area.stories.js +3 -0
  147. package/dist/client/ui/select.js +3 -1
  148. package/dist/client/ui/select.mjs +3 -1
  149. package/dist/client/ui/separator.js +3 -1
  150. package/dist/client/ui/separator.stories.js +3 -0
  151. package/dist/client/ui/sheet.d.ts +1 -1
  152. package/dist/client/ui/sheet.js +3 -1
  153. package/dist/client/ui/sheet.stories.js +3 -0
  154. package/dist/client/ui/sidebar.js +3 -1
  155. package/dist/client/ui/sidebar.mjs +1 -1
  156. package/dist/client/ui/toast.js +3 -1
  157. package/dist/client/ui/toast.stories.js +3 -0
  158. package/dist/client/ui/toast.stories.mjs +1 -1
  159. package/dist/client/ui/toaster.js +3 -1
  160. package/dist/client/ui/toaster.mjs +1 -1
  161. package/dist/client/ui/toggle-group.js +3 -1
  162. package/dist/client/ui/toggle.js +3 -1
  163. package/dist/client/ui/toggle.stories.js +3 -0
  164. package/dist/client/ui/tooltip.js +3 -1
  165. package/dist/client/ui/tooltip.stories.js +3 -0
  166. package/dist/constants.mjs +1 -1
  167. package/dist/hooks/index.d.ts +2 -1
  168. package/dist/hooks/index.js +4 -1
  169. package/dist/hooks/index.mjs +1 -1
  170. package/dist/hooks/use-mobile.js +3 -1
  171. package/dist/hooks/use-toast.js +3 -1
  172. package/dist/index.js +4 -1
  173. package/dist/index.mjs +3 -1
  174. package/dist/metafile-cjs.json +1 -0
  175. package/dist/metafile-esm.json +1 -0
  176. package/dist/server/index.d.ts +0 -2
  177. package/dist/server/index.js +1 -1
  178. package/dist/styles/Colors.js +3 -0
  179. package/dist/styles/Colors.stories.js +3 -0
  180. package/dist/utils/useClickableCard.js +3 -1
  181. package/package.json +10 -1
  182. package/dist/chunk-DRWCG3FW.mjs +0 -1
  183. package/dist/chunk-DSHGUZTY.mjs +0 -1
  184. package/dist/chunk-EUWFH5P5.mjs +0 -1
  185. package/dist/chunk-FQFHKJZP.mjs +0 -1
  186. package/dist/chunk-PRKLDM64.mjs +0 -1
  187. package/dist/chunk-TB5R2TDU.mjs +0 -1
  188. package/dist/chunk-VSTSYVKB.mjs +0 -1
  189. package/dist/chunk-W4KJCU6R.mjs +0 -1
  190. package/dist/chunk-WJ2SJVAM.mjs +0 -1
  191. package/dist/client/index.css +0 -1
  192. package/dist/client/loader-container/index.css +0 -1
  193. package/dist/client/loader-container/index.d.ts +0 -1
  194. package/dist/client/loader-container/index.js +0 -2
  195. package/dist/client/loader-container/index.mjs +0 -2
  196. package/dist/client/loader-container/loader-container.css +0 -1
  197. package/dist/client/loader-container/loader-container.d.ts +0 -10
  198. package/dist/client/loader-container/loader-container.js +0 -1
  199. package/dist/client/loader-container/loader-container.mjs +0 -1
  200. package/dist/client/loader-container/loader-container.module.mjs +0 -1
  201. package/dist/hooks/use-loader.d.ts +0 -8
  202. package/dist/hooks/use-loader.js +0 -1
  203. package/dist/hooks/use-loader.mjs +0 -1
  204. package/dist/index.css +0 -2
  205. package/dist/server/bars/bars1/bars1.css +0 -1
  206. package/dist/server/bars/bars1/bars1.d.ts +0 -10
  207. package/dist/server/bars/bars1/bars1.js +0 -1
  208. package/dist/server/bars/bars1/bars1.mjs +0 -1
  209. package/dist/server/bars/bars1/bars1.module.mjs +0 -1
  210. package/dist/server/bars/bars1/index.css +0 -1
  211. package/dist/server/bars/bars1/index.d.ts +0 -1
  212. package/dist/server/bars/bars1/index.js +0 -1
  213. package/dist/server/bars/bars1/index.mjs +0 -1
  214. package/dist/server/bars/bars2/bars2.css +0 -1
  215. package/dist/server/bars/bars2/bars2.d.ts +0 -10
  216. package/dist/server/bars/bars2/bars2.js +0 -1
  217. package/dist/server/bars/bars2/bars2.mjs +0 -1
  218. package/dist/server/bars/bars2/bars2.module.mjs +0 -1
  219. package/dist/server/bars/bars2/index.css +0 -1
  220. package/dist/server/bars/bars2/index.d.ts +0 -1
  221. package/dist/server/bars/bars2/index.js +0 -1
  222. package/dist/server/bars/bars2/index.mjs +0 -1
  223. package/dist/server/bars/index.css +0 -1
  224. package/dist/server/bars/index.d.ts +0 -2
  225. package/dist/server/bars/index.js +0 -1
  226. package/dist/server/bars/index.mjs +0 -1
  227. package/dist/server/common/base/base.d.ts +0 -23
  228. package/dist/server/common/base/base.js +0 -1
  229. package/dist/server/common/base/base.mjs +0 -1
  230. package/dist/server/common/base/index.d.ts +0 -1
  231. package/dist/server/common/base/index.js +0 -1
  232. package/dist/server/common/base/index.mjs +0 -1
  233. package/dist/server/common/index.d.ts +0 -1
  234. package/dist/server/common/index.js +0 -1
  235. package/dist/server/common/index.mjs +0 -1
  236. package/dist/server/dots/dots1/dots1.css +0 -1
  237. package/dist/server/dots/dots1/dots1.d.ts +0 -10
  238. package/dist/server/dots/dots1/dots1.js +0 -1
  239. package/dist/server/dots/dots1/dots1.mjs +0 -1
  240. package/dist/server/dots/dots1/dots1.module.mjs +0 -1
  241. package/dist/server/dots/dots1/index.css +0 -1
  242. package/dist/server/dots/dots1/index.d.ts +0 -1
  243. package/dist/server/dots/dots1/index.js +0 -1
  244. package/dist/server/dots/dots1/index.mjs +0 -1
  245. package/dist/server/dots/dots2/dots2.css +0 -1
  246. package/dist/server/dots/dots2/dots2.d.ts +0 -15
  247. package/dist/server/dots/dots2/dots2.js +0 -1
  248. package/dist/server/dots/dots2/dots2.mjs +0 -1
  249. package/dist/server/dots/dots2/dots2.module.mjs +0 -1
  250. package/dist/server/dots/dots2/index.css +0 -1
  251. package/dist/server/dots/dots2/index.d.ts +0 -1
  252. package/dist/server/dots/dots2/index.js +0 -1
  253. package/dist/server/dots/dots2/index.mjs +0 -1
  254. package/dist/server/dots/index.css +0 -1
  255. package/dist/server/dots/index.d.ts +0 -2
  256. package/dist/server/dots/index.js +0 -1
  257. package/dist/server/dots/index.mjs +0 -1
  258. package/dist/server/index.css +0 -1
  259. package/dist/server/index.mjs +0 -1
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as t}from"./chunk-OTS4QNQ2.mjs";import{jsx as e,jsxs as i}from"react/jsx-runtime";var d=({title:r,description:l,iconName:o,iconStyle:s,color:a})=>i("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[a]} p-6 flex flex-col items-center text-center`,children:[e("div",{className:"w-12 h-12 ",children:e(t,{type:s,iconName:o,className:"w-12 h-12 text-white"})}),e("h2",{className:"text-2xl font-bold text-white mb-2",children:r}),e("p",{className:"text-white text-sm",children:l})]});export{d as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as n,f as d}from"./chunk-OQNGQGJV.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import*as i from"react";import{Command as o}from"cmdk";import{Search as s}from"lucide-react";import{jsx as m,jsxs as C}from"react/jsx-runtime";var p=i.forwardRef(({className:e,...t},a)=>m(o,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));p.displayName=o.displayName;var P=({children:e,...t})=>m(n,{...t,children:m(d,{className:"overflow-hidden p-0",children:m(p,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),c=i.forwardRef(({className:e,...t},a)=>C("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m(s,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m(o.Input,{ref:a,className:r("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));c.displayName=o.Input.displayName;var f=i.forwardRef(({className:e,...t},a)=>m(o.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));f.displayName=o.List.displayName;var l=i.forwardRef((e,t)=>m(o.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));l.displayName=o.Empty.displayName;var u=i.forwardRef(({className:e,...t},a)=>m(o.Group,{ref:a,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));u.displayName=o.Group.displayName;var g=i.forwardRef(({className:e,...t},a)=>m(o.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));g.displayName=o.Separator.displayName;var y=i.forwardRef(({className:e,...t},a)=>m(o.Item,{ref:a,className:r("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));y.displayName=o.Item.displayName;var R=({className:e,...t})=>m("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});R.displayName="CommandShortcut";export{p as a,P as b,c,f as d,l as e,u as f,g,y as h,R as i};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as s}from"./chunk-NIQ4466A.mjs";import*as r from"react";import*as t from"@radix-ui/react-toast";import{cva as p}from"class-variance-authority";import{X as d}from"lucide-react";import{jsx as a}from"react/jsx-runtime";var g=t.Provider,c=r.forwardRef(({className:e,...o},i)=>a(t.Viewport,{ref:i,className:s("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...o}));c.displayName=t.Viewport.displayName;var m=p("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=r.forwardRef(({className:e,variant:o,...i},n)=>a(t.Root,{ref:n,className:s(m({variant:o}),e),...i}));f.displayName=t.Root.displayName;var l=r.forwardRef(({className:e,...o},i)=>a(t.Action,{ref:i,className:s("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...o}));l.displayName=t.Action.displayName;var u=r.forwardRef(({className:e,...o},i)=>a(t.Close,{ref:i,className:s("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...o,children:a(d,{className:"h-4 w-4"})}));u.displayName=t.Close.displayName;var v=r.forwardRef(({className:e,...o},i)=>a(t.Title,{ref:i,className:s("text-sm font-semibold [&+div]:text-xs",e),...o}));v.displayName=t.Title.displayName;var R=r.forwardRef(({className:e,...o},i)=>a(t.Description,{ref:i,className:s("text-sm opacity-90",e),...o}));R.displayName=t.Description.displayName;export{g as a,c as b,f as c,l as d,u as e,v as f,R as g};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import*as l from"@radix-ui/react-collapsible";var i=l.Root,e=l.CollapsibleTrigger,o=l.CollapsibleContent;export{i as a,e as b,o as c};
@@ -1 +1 @@
1
- import{b as u}from"./chunk-NQ4FAZ5U.mjs";import{a as m,e as g}from"./chunk-MA5FR2EM.mjs";import x from"next/image";import{Quote as p}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function b(l){let s=l.replace("#",""),r=parseInt(s.substring(0,2),16),n=parseInt(s.substring(2,4),16),e=parseInt(s.substring(4,6),16);return(r*299+n*587+e*114)/1e3<128}function N({customerName:l="Acme Corporation",logoUrl:s,industry:r,projectDescription:n="Revolutionizing widget production with cloud technology",color:e="#3B82F6",quote:o,metrics:v=[],children:h=null}){var c;let d=((c=[{label:"Technology",value:"technology"},{label:"Finance",value:"finance"},{label:"Healthcare",value:"healthcare"},{label:"Retail",value:"retail"}].find(i=>i.value===r))==null?void 0:c.label)||void 0,y=b(e)?"text-white":"text-gray-900",w=b(e)?"white":e;return t(m,{className:"w-full max-w-4xl mx-auto overflow-hidden shadow-lg",children:a(g,{className:"p-0",children:[a("div",{className:`flex items-center ${y}`,style:{background:`linear-gradient(to right, ${e}, ${e}80)`,padding:"1.5rem"},children:[a("div",{className:"flex-grow pr-4",children:[t("h2",{className:"text-2xl font-bold mb-2",children:l}),d&&t(u,{variant:"secondary",className:"text-sm font-medium",children:d}),t("p",{className:"mt-4 text-lg",children:n})]}),s&&t("div",{className:"flex items-center justify-center bg-white rounded-lg",style:{padding:"1rem",height:"100px"},children:t(x,{src:s,alt:`${l} logo`,width:120,height:60,className:"object-contain h-full"})})]}),a("div",{className:"p-6",children:[o&&a("blockquote",{className:"border-l-4 pl-4 py-2 mb-6 italic",style:{borderColor:e,color:e},children:[t(p,{className:"inline-block mr-2",size:24,style:{color:e}}),o,t(p,{className:"inline-block ml-2",size:24,style:{color:e}})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-6",children:v.map((i,f)=>a("div",{className:"text-center",children:[t("div",{className:"text-3xl font-bold",style:{color:e},children:i.value}),t("div",{className:"text-sm text-gray-600",children:i.label})]},f))})]}),t("div",{className:"p-6",children:h})]})})}export{N as a};
1
+ import{a as g,e as u}from"./chunk-MA5FR2EM.mjs";import{b as m}from"./chunk-NQ4FAZ5U.mjs";import x from"next/image";import{Quote as p}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function b(l){let s=l.replace("#",""),r=parseInt(s.substring(0,2),16),n=parseInt(s.substring(2,4),16),e=parseInt(s.substring(4,6),16);return(r*299+n*587+e*114)/1e3<128}function N({customerName:l="Acme Corporation",logoUrl:s,industry:r,projectDescription:n="Revolutionizing widget production with cloud technology",color:e="#3B82F6",quote:o,metrics:v=[],children:h=null}){var c;let d=((c=[{label:"Technology",value:"technology"},{label:"Finance",value:"finance"},{label:"Healthcare",value:"healthcare"},{label:"Retail",value:"retail"}].find(i=>i.value===r))==null?void 0:c.label)||void 0,y=b(e)?"text-white":"text-gray-900",w=b(e)?"white":e;return t(g,{className:"w-full max-w-4xl mx-auto overflow-hidden shadow-lg",children:a(u,{className:"p-0",children:[a("div",{className:`flex items-center ${y}`,style:{background:`linear-gradient(to right, ${e}, ${e}80)`,padding:"1.5rem"},children:[a("div",{className:"flex-grow pr-4",children:[t("h2",{className:"text-2xl font-bold mb-2",children:l}),d&&t(m,{variant:"secondary",className:"text-sm font-medium",children:d}),t("p",{className:"mt-4 text-lg",children:n})]}),s&&t("div",{className:"flex items-center justify-center bg-white rounded-lg",style:{padding:"1rem",height:"100px"},children:t(x,{src:s,alt:`${l} logo`,width:120,height:60,className:"object-contain h-full"})})]}),a("div",{className:"p-6",children:[o&&a("blockquote",{className:"border-l-4 pl-4 py-2 mb-6 italic",style:{borderColor:e,color:e},children:[t(p,{className:"inline-block mr-2",size:24,style:{color:e}}),o,t(p,{className:"inline-block ml-2",size:24,style:{color:e}})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-6",children:v.map((i,f)=>a("div",{className:"text-center",children:[t("div",{className:"text-3xl font-bold",style:{color:e},children:i.value}),t("div",{className:"text-sm text-gray-600",children:i.label})]},f))})]}),t("div",{className:"p-6",children:h})]})})}export{N as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as t}from"./chunk-NIQ4466A.mjs";import*as o from"react";import*as e from"@radix-ui/react-toggle";import{cva as g}from"class-variance-authority";import{jsx as d}from"react/jsx-runtime";var l=g("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),m=o.forwardRef(({className:i,variant:n,size:r,...a},s)=>d(e.Root,{ref:s,className:t(l({variant:n,size:r,className:i})),...a}));m.displayName=e.Root.displayName;export{l as a,m as b};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{useRouter as h}from"next/navigation";import{useCallback as p,useEffect as v,useRef as o}from"react";function k({external:b=!1,newTab:d=!1,scroll:w=!0}){let s=h(),r=o(null),t=o(null),c=o(0),u=o(!1),f=o(0),a=p(e=>{if(e.target){let n=e.target,l=+new Date,m=n==null?void 0:n.closest("a");f.current=e.button,m?u.current=!0:(u.current=!1,c.current=l)}},[s,r,t,c]),i=p(e=>{var n,l;if((n=t.current)!=null&&n.href){let E=+new Date-c.current;if((l=t.current)!=null&&l.href&&E<=250&&!u.current&&f.current===0&&!e.ctrlKey)if(b){let T=d?"_blank":"_self";window.open(t.current.href,T)}else s.push(t.current.href,{scroll:w})}},[s,r,t,c]);return v(()=>{let e=r.current;return e&&(e.addEventListener("mousedown",a),e.addEventListener("mouseup",i)),()=>{e&&e&&(e==null||e.removeEventListener("mousedown",a),e==null||e.removeEventListener("mouseup",i))}},[r,t,s]),{card:{ref:r},link:{ref:t}}}var C=k;export{C as a};
@@ -1 +1,4 @@
1
- import{a as d}from"./chunk-6P7CY367.mjs";import{a as p}from"./chunk-6VGO3JR7.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=d({}),{className:u,doc:N,relationTo:y,showCategories:a,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:r,image:o}=F||{},i=t&&Array.isArray(t)&&t.length>0,l=b||k,w=r==null?void 0:r.replace(/\s/g," "),T=`/${y}/${C}`;return s("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[s("div",{className:"relative w-full ",children:[!o&&e("div",{className:"",children:"No image"}),o&&typeof o!="string"&&e(p,{resource:o,size:"33vw"})]}),s("div",{className:"p-4",children:[a&&i&&e("div",{className:"uppercase text-sm mb-4",children:a&&i&&e("div",{children:t==null?void 0:t.map((n,c)=>{if(typeof n=="object"){let{title:L}=n,P=L||"Untitled category",z=c===t.length-1;return s(g,{children:[P,!z&&e(g,{children:", \xA0"})]},c)}return null})})}),l&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:l})})}),r&&e("div",{className:"mt-2",children:r&&e("p",{children:w})})]})]})};export{j as a};
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as d}from"./chunk-6P7CY367.mjs";import{a as p}from"./chunk-MY7YCD7T.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import A from"next/link";import{Fragment as g}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var j=v=>{let{card:f,link:h}=d({}),{className:u,doc:N,relationTo:y,showCategories:a,title:b}=v,{slug:C,categories:t,meta:F,title:k}=N||{},{description:r,image:o}=F||{},i=t&&Array.isArray(t)&&t.length>0,l=b||k,w=r==null?void 0:r.replace(/\s/g," "),T=`/${y}/${C}`;return s("article",{className:m("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",u),ref:f.ref,children:[s("div",{className:"relative w-full ",children:[!o&&e("div",{className:"",children:"No image"}),o&&typeof o!="string"&&e(p,{resource:o,size:"33vw"})]}),s("div",{className:"p-4",children:[a&&i&&e("div",{className:"uppercase text-sm mb-4",children:a&&i&&e("div",{children:t==null?void 0:t.map((n,c)=>{if(typeof n=="object"){let{title:L}=n,P=L||"Untitled category",z=c===t.length-1;return s(g,{children:[P,!z&&e(g,{children:", \xA0"})]},c)}return null})})}),l&&e("div",{className:"prose",children:e("h3",{children:e(A,{className:"not-prose",href:T,ref:h.ref,children:l})})}),r&&e("div",{className:"mt-2",children:r&&e("p",{children:w})})]})]})};export{j as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as e,b as i,c as T,e as n,f as p,g as m}from"./chunk-4PTHCL6I.mjs";import{c as r}from"./chunk-CV7PH2KH.mjs";import{jsx as o,jsxs as t}from"react/jsx-runtime";function g(){let{toasts:c}=r();return t(e,{children:[c.map(function({id:f,title:s,description:a,action:u,...d}){return t(T,{...d,children:[t("div",{className:"grid gap-1",children:[s&&o(p,{children:s}),a&&o(m,{children:a})]}),u,o(n,{})]},f)}),o(i,{})]})}export{g as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{b as s}from"./chunk-44TDI42O.mjs";import{a as n}from"./chunk-NIQ4466A.mjs";import P from"next/image";import{jsx as c}from"react/jsx-runtime";var Q={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",R=m=>{let{alt:w,fill:e,imgClassName:B,priority:d,resource:t,size:i,src:p,loading:I}=m,o,a,r=w,g=p||"";if(!g&&t&&typeof t=="object"){let{alt:A,filename:y,height:D,url:F,width:M}=t;o=M,a=D,r=A||"",g=`${s()}${F}`}let l=I||"lazy",C=i||Object.entries(Q).map(([,A])=>`(max-width: ${A}px) ${A*2}w`).join(", ");return c("picture",{children:c(P,{alt:r||"",className:n(B),fill:e,height:e?void 0:a,placeholder:"blur",blurDataURL:u,priority:l!=="lazy"&&d,quality:100,loading:l,sizes:C,src:g,width:e?void 0:o})})};export{R as a};
@@ -1 +1,4 @@
1
- import{a as H}from"./chunk-YAZZUJPQ.mjs";import{a as P,f as B}from"./chunk-RAZKAPLW.mjs";import{a as C}from"./chunk-RBF2IQIG.mjs";import{a as I}from"./chunk-G2GEVAGD.mjs";import{a as M}from"./chunk-FRWX5YES.mjs";import{a as E,b as T,c as _,d as L}from"./chunk-TNVXZARJ.mjs";import{b as N}from"./chunk-TLXHEFFH.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import*as r from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as o,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",D=r.createContext(null);function w(){let a=r.useContext(D);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=r.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:n,style:d,children:s,...u},m)=>{let c=M(),[p,b]=r.useState(!1),[v,k]=r.useState(a),f=e!=null?e:v,h=r.useCallback(l=>{if(t)return t==null?void 0:t(typeof l=="function"?l(f):l);k(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=r.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);r.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=r.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:p,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,p,b,x]);return o(D.Provider,{value:z,children:o(E,{delayDuration:0,children:o("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",n),ref:m,...u,children:s})})})});j.displayName="SidebarProvider";var q=r.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:n,children:d,...s},u)=>{let{isMobile:m,state:c,openMobile:p,setOpenMobile:b}=w();return t==="none"?o("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:u,...s,children:d}):m?o(P,{open:p,onOpenChange:b,...s,children:o(B,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:o("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:u,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[o("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),o("div",{className:i("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...s,children:o("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=r.forwardRef(({className:a,onClick:e,...t},n)=>{let{toggleSidebar:d}=w();return S(N,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",a),onClick:s=>{e==null||e(s),d()},...t,children:[o(O,{}),o("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=r.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:n}=w();return o("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:i("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=r.forwardRef(({className:a,...e},t)=>o("main",{ref:t,className:i("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=r.forwardRef(({className:a,...e},t)=>o(I,{ref:t,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=r.forwardRef(({className:a,...e},t)=>o(H,{ref:t,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var re=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"div",{ref:n,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));re.displayName="SidebarGroupLabel";var oe=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"button",{ref:n,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));oe.displayName="SidebarGroupAction";var ie=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group-content",className:i("w-full text-sm",a),...e}));ie.displayName="SidebarGroupContent";var ne=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",a),...e}));ne.displayName="SidebarMenu";var de=r.forwardRef(({className:a,...e},t)=>o("li",{ref:t,"data-sidebar":"menu-item",className:i("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=r.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:n="default",tooltip:d,className:s,...u},m)=>{let c=a?g:"button",{isMobile:p,state:b}=w(),v=o(c,{ref:m,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:i(se({variant:t,size:n}),s),...u});return d?(typeof d=="string"&&(d={children:d}),S(T,{children:[o(_,{asChild:!0,children:v}),o(L,{side:"right",align:"center",hidden:b!=="collapsed"||p,...d})]})):v});le.displayName="SidebarMenuButton";var ce=r.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...n},d)=>o(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...n}));ce.displayName="SidebarMenuAction";var be=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var ue=r.forwardRef(({className:a,showIcon:e=!1,...t},n)=>{let d=r.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:n,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&o(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),o(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});ue.displayName="SidebarMenuSkeleton";var pe=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));pe.displayName="SidebarMenuSub";var fe=r.forwardRef(({...a},e)=>o("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=r.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:n,...d},s)=>o(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:i("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,re as m,oe as n,ie as o,ne as p,de as q,le as r,ce as s,be as t,ue as u,pe as v,fe as w,me as x};
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as C}from"./chunk-RBF2IQIG.mjs";import{a as N}from"./chunk-YAZZUJPQ.mjs";import{a as E,f as T}from"./chunk-RAZKAPLW.mjs";import{a as M}from"./chunk-G2GEVAGD.mjs";import{a as I,b as H,c as P,d as B}from"./chunk-TNVXZARJ.mjs";import{b as L}from"./chunk-TLXHEFFH.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{a as _}from"./chunk-FRWX5YES.mjs";import*as r from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as o,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",D=r.createContext(null);function w(){let a=r.useContext(D);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=r.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:n,style:d,children:s,...u},m)=>{let c=_(),[p,b]=r.useState(!1),[v,k]=r.useState(a),f=e!=null?e:v,h=r.useCallback(l=>{if(t)return t==null?void 0:t(typeof l=="function"?l(f):l);k(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=r.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);r.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=r.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:p,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,p,b,x]);return o(D.Provider,{value:z,children:o(I,{delayDuration:0,children:o("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",n),ref:m,...u,children:s})})})});j.displayName="SidebarProvider";var q=r.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:n,children:d,...s},u)=>{let{isMobile:m,state:c,openMobile:p,setOpenMobile:b}=w();return t==="none"?o("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:u,...s,children:d}):m?o(E,{open:p,onOpenChange:b,...s,children:o(T,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:o("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:u,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[o("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),o("div",{className:i("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...s,children:o("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=r.forwardRef(({className:a,onClick:e,...t},n)=>{let{toggleSidebar:d}=w();return S(L,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",a),onClick:s=>{e==null||e(s),d()},...t,children:[o(O,{}),o("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=r.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:n}=w();return o("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:i("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=r.forwardRef(({className:a,...e},t)=>o("main",{ref:t,className:i("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=r.forwardRef(({className:a,...e},t)=>o(M,{ref:t,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=r.forwardRef(({className:a,...e},t)=>o(N,{ref:t,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var re=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"div",{ref:n,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));re.displayName="SidebarGroupLabel";var oe=r.forwardRef(({className:a,asChild:e=!1,...t},n)=>o(e?g:"button",{ref:n,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));oe.displayName="SidebarGroupAction";var ie=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"group-content",className:i("w-full text-sm",a),...e}));ie.displayName="SidebarGroupContent";var ne=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",a),...e}));ne.displayName="SidebarMenu";var de=r.forwardRef(({className:a,...e},t)=>o("li",{ref:t,"data-sidebar":"menu-item",className:i("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=r.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:n="default",tooltip:d,className:s,...u},m)=>{let c=a?g:"button",{isMobile:p,state:b}=w(),v=o(c,{ref:m,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:i(se({variant:t,size:n}),s),...u});return d?(typeof d=="string"&&(d={children:d}),S(H,{children:[o(P,{asChild:!0,children:v}),o(B,{side:"right",align:"center",hidden:b!=="collapsed"||p,...d})]})):v});le.displayName="SidebarMenuButton";var ce=r.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...n},d)=>o(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...n}));ce.displayName="SidebarMenuAction";var be=r.forwardRef(({className:a,...e},t)=>o("div",{ref:t,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var ue=r.forwardRef(({className:a,showIcon:e=!1,...t},n)=>{let d=r.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:n,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&o(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),o(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});ue.displayName="SidebarMenuSkeleton";var pe=r.forwardRef(({className:a,...e},t)=>o("ul",{ref:t,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));pe.displayName="SidebarMenuSub";var fe=r.forwardRef(({...a},e)=>o("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=r.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:n,...d},s)=>o(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:i("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,re as m,oe as n,ie as o,ne as p,de as q,le as r,ce as s,be as t,ue as u,pe as v,fe as w,me as x};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import*as i from"react";var p=1,d=1e6;var S=0;function u(){return S=(S+1)%Number.MAX_SAFE_INTEGER,S.toString()}var c=new Map,A=t=>{if(c.has(t))return;let e=setTimeout(()=>{c.delete(t),T({type:"REMOVE_TOAST",toastId:t})},d);c.set(t,e)},O=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,p)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case"DISMISS_TOAST":{let{toastId:s}=e;return s?A(s):t.toasts.forEach(o=>{A(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)}}},a=[],n={toasts:[]};function T(t){n=O(n,t),a.forEach(e=>{e(n)})}function y({...t}){let e=u(),s=r=>T({type:"UPDATE_TOAST",toast:{...r,id:e}}),o=()=>T({type:"DISMISS_TOAST",toastId:e});return T({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:r=>{r||o()}}}),{id:e,dismiss:o,update:s}}function E(){let[t,e]=i.useState(n);return i.useEffect(()=>(a.push(e),()=>{let s=a.indexOf(e);s>-1&&a.splice(s,1)}),[t]),{...t,toast:y,dismiss:s=>T({type:"DISMISS_TOAST",toastId:s})}}export{O as a,y as b,E as c};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a}from"./chunk-NIQ4466A.mjs";import*as d from"react";import*as e from"@radix-ui/react-dropdown-menu";import{CheckIcon as m,ChevronRightIcon as u,DotFilledIcon as c}from"@radix-ui/react-icons";import{jsx as i,jsxs as s}from"react/jsx-runtime";var h=e.Root,N=e.Trigger,x=e.Group,I=e.Portal,C=e.Sub,S=e.RadioGroup,l=d.forwardRef(({className:o,inset:t,children:n,...r},p)=>s(e.SubTrigger,{ref:p,className:a("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",o),...r,children:[n,i(u,{className:"ml-auto"})]}));l.displayName=e.SubTrigger.displayName;var f=d.forwardRef(({className:o,...t},n)=>i(e.SubContent,{ref:n,className:a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...t}));f.displayName=e.SubContent.displayName;var w=d.forwardRef(({className:o,sideOffset:t=4,...n},r)=>i(e.Portal,{children:i(e.Content,{ref:r,sideOffset:t,className:a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...n})}));w.displayName=e.Content.displayName;var v=d.forwardRef(({className:o,inset:t,...n},r)=>i(e.Item,{ref:r,className:a("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",o),...n}));v.displayName=e.Item.displayName;var M=d.forwardRef(({className:o,children:t,checked:n,...r},p)=>s(e.CheckboxItem,{ref:p,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:n,...r,children:[i("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(m,{className:"h-4 w-4"})})}),t]}));M.displayName=e.CheckboxItem.displayName;var D=d.forwardRef(({className:o,children:t,...n},r)=>s(e.RadioItem,{ref:r,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...n,children:[i("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(c,{className:"h-4 w-4 fill-current"})})}),t]}));D.displayName=e.RadioItem.displayName;var P=d.forwardRef(({className:o,inset:t,...n},r)=>i(e.Label,{ref:r,className:a("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",o),...n}));P.displayName=e.Label.displayName;var R=d.forwardRef(({className:o,...t},n)=>i(e.Separator,{ref:n,className:a("-mx-1 my-1 h-px bg-muted",o),...t}));R.displayName=e.Separator.displayName;var b=({className:o,...t})=>i("span",{className:a("ml-auto text-xs tracking-widest opacity-60",o),...t});b.displayName="DropdownMenuShortcut";export{h as a,N as b,x as c,I as d,C as e,S as f,l as g,f as h,w as i,v as j,M as k,D as l,P as m,R as n,b as o};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ import{a as w,b as v,c as b,e as g}from"./chunk-MA5FR2EM.mjs";import{a as l,b as m,c as d}from"./chunk-IYOWTF4E.mjs";import{b as p}from"./chunk-NQ4FAZ5U.mjs";import{CalendarDays as h,Cake as y,Award as C,PartyPopper as N}from"lucide-react";import{jsx as a,jsxs as e}from"react/jsx-runtime";function k({eventType:r="birthday",date:s="",title:n="",description:o="",avatarSrc:c}){let f=t=>{switch(t){case"birthday":return a(y,{className:"h-4 w-4"});case"workAnniversary":return a(C,{className:"h-4 w-4"});case"companyEvent":return a(N,{className:"h-4 w-4"});default:return a(h,{className:"h-4 w-4"})}},i=t=>{switch(t){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return e(w,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(r)}`,children:[e(v,{className:"flex flex-row items-center gap-3 text-white",children:[c&&e(l,{className:"h-14 w-14 border-2 border-white",children:[a(m,{src:c,alt:n||"Event"}),a(d,{className:"bg-white text-gray-900",children:n?n.charAt(0).toUpperCase():"?"})]}),e("div",{className:"flex flex-col",children:[a(b,{className:"text-xl",children:n||"Untitled Event"}),e("p",{className:"text-sm text-white/80",children:[a(h,{className:"mr-1 inline-block h-4 w-4"}),s?new Date(s).toLocaleDateString():"Date not specified"]})]})]}),e(g,{className:"bg-white bg-opacity-80 p-4",children:[o&&a("p",{className:"mb-2 text-sm text-gray-700",children:o}),e(p,{variant:"secondary",className:`bg-gradient-to-br ${i(r)} text-white/80`,children:[f(r),a("span",{className:"ml-1",children:r?r.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):"Event"})]})]})]})}export{k as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{useState as i,useEffect as o}from"react";var l=(n=768)=>{let[s,t]=i(!1);return o(()=>{let e=()=>{t(window.innerWidth<n)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[n]),s};export{l as a};
@@ -1 +1 @@
1
- import{c as g}from"./chunk-EMNKQTUC.mjs";import{a as c}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";var d=({title:r,description:l,features:n})=>m("section",{className:c("container w-full rounded-lg","dark:bg-black dark:text-gray-300 bg-white text-gray-800"),children:[r&&e("h2",{className:"mb-12 text-4xl font-bold tracking-tight md:text-5xl",children:r}),l&&e("p",{className:"mb-5 text-xl font-bold tracking-tight md:text-xl",children:l}),e("div",{className:`grid gap-8 md:grid-cols-${n?n.length:1}`,children:n&&n.map((t,o)=>{var i,s;let a=m("div",{className:"flex flex-col gap-4",children:[e("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-200",children:e("i",{className:`${t.icon.type} fa-${t.icon.icon} fa-4x`})}),e("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-200",children:t.title}),typeof t.content!="object"&&e("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:t.content}}),typeof t.content=="object"&&e("div",{className:"text-lg opacity-80",children:e(g,{content:t.content,enableGutter:!1})})]},o);return console.log("link",t.link),t.link?e("a",{href:t.link.url?t.link.url:`/${(i=t.link.reference)==null?void 0:i.relationTo}/${((s=t.link.reference)==null?void 0:s.value).slug}`,className:"no-underline group",children:a},o):a})})]});export{d as a};
1
+ import{c as g}from"./chunk-RTU6IVSY.mjs";import{a as c}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";var d=({title:r,description:l,features:n})=>m("section",{className:c("container w-full rounded-lg","dark:bg-black dark:text-gray-300 bg-white text-gray-800"),children:[r&&e("h2",{className:"mb-12 text-4xl font-bold tracking-tight md:text-5xl",children:r}),l&&e("p",{className:"mb-5 text-xl font-bold tracking-tight md:text-xl",children:l}),e("div",{className:`grid gap-8 md:grid-cols-${n?n.length:1}`,children:n&&n.map((t,o)=>{var i,s;let a=m("div",{className:"flex flex-col gap-4",children:[e("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-200",children:e("i",{className:`${t.icon.type} fa-${t.icon.icon} fa-4x`})}),e("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-200",children:t.title}),typeof t.content!="object"&&e("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:t.content}}),typeof t.content=="object"&&e("div",{className:"text-lg opacity-80",children:e(g,{content:t.content,enableGutter:!1})})]},o);return console.log("link",t.link),t.link?e("a",{href:t.link.url?t.link.url:`/${(i=t.link.reference)==null?void 0:i.relationTo}/${((s=t.link.reference)==null?void 0:s.value).slug}`,className:"no-underline group",children:a},o):a})})]});export{d as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as t}from"./chunk-NIQ4466A.mjs";import*as o from"react";import*as e from"@radix-ui/react-hover-card";import{jsx as m}from"react/jsx-runtime";var p=e.Root,v=e.Trigger,s=o.forwardRef(({className:a,align:r="center",sideOffset:i=4,...d},n)=>m(e.Content,{ref:n,align:r,sideOffset:i,className:t("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...d}));s.displayName=e.Content.displayName;export{p as a,v as b,s as c};
@@ -1 +1 @@
1
- import{c}from"./chunk-EMNKQTUC.mjs";import{a as s}from"./chunk-CJTRVASG.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{jsx as o,jsxs as f}from"react/jsx-runtime";var h=a=>{let{columns:t}=a,r={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return o("div",{className:"container my-6",children:o("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-y-8 gap-x-16",children:t&&t.length>0&&t.map((i,p)=>{let{enableLink:m,link:d,richText:n,size:l}=i;return f("div",{className:e(`col-span-4 lg:col-span-${r[l]}`,{"md:col-span-2":l!=="full"}),children:[n&&o(c,{content:n,enableGutter:!1}),m&&o(s,{...d})]},p)})})})};export{h as a};
1
+ import{c}from"./chunk-RTU6IVSY.mjs";import{a as s}from"./chunk-CJTRVASG.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{jsx as o,jsxs as f}from"react/jsx-runtime";var h=a=>{let{columns:t}=a,r={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return o("div",{className:"container my-6",children:o("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-y-8 gap-x-16",children:t&&t.length>0&&t.map((i,p)=>{let{enableLink:m,link:d,richText:n,size:l}=i;return f("div",{className:e(`col-span-4 lg:col-span-${r[l]}`,{"md:col-span-2":l!=="full"}),children:[n&&o(c,{content:n,enableGutter:!1}),m&&o(s,{...d})]},p)})})})};export{h as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as r}from"./chunk-NIQ4466A.mjs";import*as o from"react";import*as a from"@radix-ui/react-avatar";import{jsx as m}from"react/jsx-runtime";var l=o.forwardRef(({className:e,...t},i)=>m(a.Root,{ref:i,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));l.displayName=a.Root.displayName;var f=o.forwardRef(({className:e,...t},i)=>m(a.Image,{ref:i,className:r("aspect-square h-full w-full",e),...t}));f.displayName=a.Image.displayName;var v=o.forwardRef(({className:e,...t},i)=>m(a.Fallback,{ref:i,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));v.displayName=a.Fallback.displayName;export{l as a,f as b,v as c};
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use strict";
3
+
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as t}from"./chunk-NIQ4466A.mjs";import*as o from"react";import*as e from"@radix-ui/react-label";import{cva as l}from"class-variance-authority";import{jsx as s}from"react/jsx-runtime";var m=l("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=o.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:t(m(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as t}from"./chunk-NIQ4466A.mjs";import*as c from"react";import*as r from"@radix-ui/react-scroll-area";import{jsx as l,jsxs as f}from"react/jsx-runtime";var S=c.forwardRef(({className:o,children:e,...i},a)=>f(r.Root,{ref:a,className:t("relative overflow-hidden",o),...i,children:[l(r.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),l(m,{}),l(r.Corner,{})]}));S.displayName=r.Root.displayName;var m=c.forwardRef(({className:o,orientation:e="vertical",...i},a)=>l(r.ScrollAreaScrollbar,{ref:a,orientation:e,className:t("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",o),...i,children:l(r.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));m.displayName=r.ScrollAreaScrollbar.displayName;export{S as a,m as b};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{useState as v,useEffect as p,useRef as h}from"react";import{CircleChevronDown as y}from"lucide-react";import{jsx as n,jsxs as b}from"react/jsx-runtime";function I({sections:r}){var i;let[o,c]=v((i=r[0])==null?void 0:i.id),d=h([]);p(()=>{let e=[];return r.forEach(t=>{let a=new IntersectionObserver(f=>{f.forEach(m=>{m.isIntersecting&&c(t.id)})},{threshold:.5}),s=document.getElementById(t.id);s&&a.observe(s),e.push(a)}),d.current=e,()=>{e.forEach(t=>t.disconnect())}},[r]);let l=e=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})},u=()=>{let e=r.findIndex(a=>a.id===o),t=r[e+1]||r[0];l(t.id)};return b("div",{className:"flex h-screen relative",children:[n("div",{className:"fixed left-0 top-0 flex h-screen w-12 flex-col items-center justify-center bg-gray-100",children:r.map(e=>n("button",{className:`group relative my-2 h-16 w-2 cursor-pointer rounded-full transition-all duration-300 ${o===e.id?e.color:"bg-gray-300"}`,onClick:()=>l(e.id),children:n("span",{className:"absolute left-full ml-2 hidden -translate-x-2 rotate-90 whitespace-nowrap opacity-0 transition-all duration-300 group-hover:translate-x-0 group-hover:opacity-100 lg:block",children:e.title})},e.id))}),n("div",{className:"ml-12 flex-1 overflow-y-auto snap-y snap-mandatory",children:r.map(e=>n("div",{id:e.id,className:`flex h-screen items-center justify-center snap-always snap-start text-4xl text-white ${e.color}`,children:e.title},e.id))}),n("button",{className:"absolute bottom-4 left-4 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:u,children:n(y,{})})]})}export{I as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as s}from"./chunk-62HF5YVD.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import*as e from"react";import*as t from"@radix-ui/react-toggle-group";import{jsx as l}from"react/jsx-runtime";var f=e.createContext({size:"default",variant:"default"}),u=e.forwardRef(({className:o,variant:r,size:i,children:a,...p},g)=>l(t.Root,{ref:g,className:m("flex items-center justify-center gap-1",o),...p,children:l(f.Provider,{value:{variant:r,size:i},children:a})}));u.displayName=t.Root.displayName;var c=e.forwardRef(({className:o,children:r,variant:i,size:a,...p},g)=>{let n=e.useContext(f);return l(t.Item,{ref:g,className:m(s({variant:n.variant||i,size:n.size||a}),o),...p,children:r})});c.displayName=t.Item.displayName;export{u as a,c as b};
@@ -1 +1,4 @@
1
- import{a as g}from"./chunk-6VGO3JR7.mjs";import{b as i}from"./chunk-TLXHEFFH.mjs";import{ChevronRight as w}from"lucide-react";import y from"next/link";import{useState as n,useEffect as x}from"react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function $(){let[s,p]=n("All News"),[l,d]=n([]),[o,f]=n(1),[h,c]=n(1),v=["All News","Announcements","Blogs","Articles","Case Studies"];return x(()=>{async function e(){if(s==="All News"){let u=await(await fetch(`/api/posts?page=${o}`)).json();d(u.docs),c(u.totalPages);return}let m=await(await fetch(`/api/posts?where[categories][title][equals]=${s}&page=${o}`)).json();d(m.docs),c(m.totalPages)}e()},[s,o]),a("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:[a("div",{className:"flex gap-2 overflow-x-auto pb-4 mb-6",children:[v.map(e=>t(i,{variant:e===s?"default":"ghost",className:"rounded-full whitespace-nowrap",onClick:()=>p(e),children:e},e)),a(i,{variant:"ghost",size:"icon",className:"rounded-full",children:[t(w,{className:"h-4 w-4"}),t("span",{className:"sr-only",children:"More"})]})]}),t("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:l&&l.map(e=>a(y,{href:`/posts/${e.slug}`,className:"group rounded-lg overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:[e.meta&&e.meta.image&&typeof e.meta.image!="string"&&t(g,{resource:e.meta.image,size:"33vw"}),a("div",{className:"p-4",children:[a("div",{className:"text-sm text-muted-foreground mb-2",children:[e.populatedAuthors&&e.populatedAuthors.map(r=>r.name)," ","\xB7"," ",e.publishedAt&&new Date(e.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),t("h2",{className:"text-xl font-bold mb-4 text-primary group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e.title})]})]},e.id))}),t("div",{className:"flex justify-center gap-1 mt-8",children:Array.from({length:h},(e,r)=>r+1).map(e=>t(i,{variant:e===o?"default":"ghost",size:"icon",className:"w-10 h-10 rounded-full",onClick:()=>f(e),children:e},e))})]})}export{$ as a};
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as g}from"./chunk-MY7YCD7T.mjs";import{b as i}from"./chunk-TLXHEFFH.mjs";import{ChevronRight as w}from"lucide-react";import y from"next/link";import{useState as n,useEffect as x}from"react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function $(){let[s,p]=n("All News"),[l,d]=n([]),[o,f]=n(1),[h,c]=n(1),v=["All News","Announcements","Blogs","Articles","Case Studies"];return x(()=>{async function e(){if(s==="All News"){let u=await(await fetch(`/api/posts?page=${o}`)).json();d(u.docs),c(u.totalPages);return}let m=await(await fetch(`/api/posts?where[categories][title][equals]=${s}&page=${o}`)).json();d(m.docs),c(m.totalPages)}e()},[s,o]),a("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:[a("div",{className:"flex gap-2 overflow-x-auto pb-4 mb-6",children:[v.map(e=>t(i,{variant:e===s?"default":"ghost",className:"rounded-full whitespace-nowrap",onClick:()=>p(e),children:e},e)),a(i,{variant:"ghost",size:"icon",className:"rounded-full",children:[t(w,{className:"h-4 w-4"}),t("span",{className:"sr-only",children:"More"})]})]}),t("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:l&&l.map(e=>a(y,{href:`/posts/${e.slug}`,className:"group rounded-lg overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:[e.meta&&e.meta.image&&typeof e.meta.image!="string"&&t(g,{resource:e.meta.image,size:"33vw"}),a("div",{className:"p-4",children:[a("div",{className:"text-sm text-muted-foreground mb-2",children:[e.populatedAuthors&&e.populatedAuthors.map(r=>r.name)," ","\xB7"," ",e.publishedAt&&new Date(e.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),t("h2",{className:"text-xl font-bold mb-4 text-primary group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e.title})]})]},e.id))}),t("div",{className:"flex justify-center gap-1 mt-8",children:Array.from({length:h},(e,r)=>r+1).map(e=>t(i,{variant:e===o?"default":"ghost",size:"icon",className:"w-10 h-10 rounded-full",onClick:()=>f(e),children:e},e))})]})}export{$ as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-BZVOHDLV.mjs";import{a as n}from"./chunk-OANFAQE4.mjs";import{Fragment as s}from"react";import{jsx as t}from"react/jsx-runtime";var y=o=>{var a;let{className:d,htmlElement:m="div",resource:e}=o,r=typeof e=="object"&&((a=e==null?void 0:e.mimeType)==null?void 0:a.includes("video"));return t(m||s,{...m!==null?{className:d}:{},children:r?t(n,{...o}):t(i,{...o})})};export{y as a};
1
+ import{a as n}from"./chunk-OANFAQE4.mjs";import{a as i}from"./chunk-BZVOHDLV.mjs";import{Fragment as s}from"react";import{jsx as t}from"react/jsx-runtime";var y=o=>{var a;let{className:d,htmlElement:m="div",resource:e}=o,r=typeof e=="object"&&((a=e==null?void 0:e.mimeType)==null?void 0:a.includes("video"));return t(m||s,{...m!==null?{className:d}:{},children:r?t(n,{...o}):t(i,{...o})})};export{y as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{jsx as d}from"react/jsx-runtime";var a=({children:e,cardsPerRow:r=3})=>{let t=`repeat(${r}, minmax(0, 1fr))`;return d("div",{className:"grid gap-6",style:{gridTemplateColumns:t},children:e})},i=a;export{a,i as b};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{b as i}from"./chunk-44TDI42O.mjs";import{a as s}from"./chunk-NIQ4466A.mjs";import{useEffect as a,useRef as d}from"react";import{jsx as r}from"react/jsx-runtime";var v=n=>{let{onClick:c,resource:o,videoClassName:l}=n,t=d(null);if(a(()=>{let{current:e}=t;e&&e.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:e}=o;return r("video",{autoPlay:!0,className:s(l),controls:!1,loop:!0,muted:!0,onClick:c,playsInline:!0,ref:t,children:r("source",{src:`${i()}/media/${e}`})})}return null};export{v as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as l}from"./chunk-NIQ4466A.mjs";import*as s from"react";import*as e from"@radix-ui/react-dialog";import{X as d}from"lucide-react";import{jsx as i,jsxs as r}from"react/jsx-runtime";var y=e.Root,R=e.Trigger,c=e.Portal,N=e.Close,n=s.forwardRef(({className:t,...a},o)=>i(e.Overlay,{ref:o,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));n.displayName=e.Overlay.displayName;var g=s.forwardRef(({className:t,children:a,...o},m)=>r(c,{children:[i(n,{}),r(e.Content,{ref:m,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...o,children:[a,r(e.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[i(d,{className:"h-4 w-4"}),i("span",{className:"sr-only",children:"Close"})]})]})]}));g.displayName=e.Content.displayName;var f=({className:t,...a})=>i("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});f.displayName="DialogHeader";var p=({className:t,...a})=>i("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});p.displayName="DialogFooter";var D=s.forwardRef(({className:t,...a},o)=>i(e.Title,{ref:o,className:l("text-lg font-semibold leading-none tracking-tight",t),...a}));D.displayName=e.Title.displayName;var v=s.forwardRef(({className:t,...a},o)=>i(e.Description,{ref:o,className:l("text-sm text-muted-foreground",t),...a}));v.displayName=e.Description.displayName;export{y as a,R as b,c,N as d,n as e,g as f,f as g,p as h,D as i,v as j};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{jsx as a}from"react/jsx-runtime";var s=({type:t="solid",iconName:n="cloud",size:e="lg",className:o})=>{let c="fa-"+t+" ",i="fa-"+n,x=o!=null?o:"",r=c+i+" fa-"+e+" "+x;return a("i",{className:r})},l=s;export{l as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as n}from"./chunk-OTS4QNQ2.mjs";import{Fragment as m,jsx as e,jsxs as c}from"react/jsx-runtime";function o({icon:i,title:s,body:t,color:p="secondary"}){return e(m,{children:c("div",{className:"flex py-0 min-h-16",children:[e("div",{className:"px-[2%] flex items-center",children:e("div",{className:"w-12 h-12",children:e(n,{type:i.type,iconName:i.name})})}),e("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:s}),t&&e("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:t})]})})}export{o as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{b as e}from"./chunk-TLXHEFFH.mjs";import{ClipboardCopy as p}from"lucide-react";import{useState as r}from"react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function u({code:a}){let[o,i]=r("Copy");function n(){o==="Copy"&&(i(()=>"Copied!"),setTimeout(()=>{i(()=>"Copy")},1e3))}return t("div",{className:"flex justify-end align-middle",children:s(e,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(a),n()},children:[t("p",{children:o}),t("div",{className:"w-6 h-6 dark:invert",children:t(p,{})})]})})}export{u as a};
@@ -1 +1 @@
1
- import{b as p}from"./chunk-NQ4FAZ5U.mjs";import{a as s,b as i,c as l,e as d}from"./chunk-MA5FR2EM.mjs";import f from"next/image";import{jsx as a,jsxs as t}from"react/jsx-runtime";var N=({name:o,email:x,profilePicture:n,workHistory:m=[],certifications:c=[],areasOfExpertise:g=[]})=>a("div",{className:"bg-gray-100 p-6 rounded-lg shadow-lg max-w-6xl mx-auto",children:t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[t(s,{className:"md:col-span-1",children:[t(i,{children:[a("div",{className:"w-32 h-32 mx-auto bg-gray-300 rounded-full overflow-hidden",children:n?a(f,{src:n,alt:o,width:128,height:128,className:"object-cover w-full h-full"}):a("div",{className:"w-full h-full flex items-center justify-center text-gray-500",children:"No Image"})}),a(l,{className:"text-2xl font-bold text-center mt-4",children:o||"Consultant Name"}),a("p",{className:"text-gray-600 text-center",children:x||"email@example.com"})]}),t(d,{children:[a("h3",{className:"text-xl font-semibold mb-2 text-gray-700",children:"Areas of Expertise"}),a("div",{className:"flex flex-wrap gap-2",children:g.length>0?g.map((e,r)=>a(p,{variant:"secondary",className:"text-sm",children:e.area},r)):a("p",{className:"text-gray-600",children:"No areas of expertise available"})})]})]}),t(s,{className:"md:col-span-2",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Work History"})}),a(d,{children:m.length>0?m.map((e,r)=>t("div",{className:"mb-4 pb-4 border-b border-gray-200 last:border-b-0",children:[t("h4",{className:"font-medium text-gray-800",children:[e.position," at ",e.company]}),t("p",{className:"text-sm text-gray-600",children:[e.startDate," - ",e.endDate||"Present"]}),e.description&&a("p",{className:"mt-1 text-gray-700",children:e.description})]},r)):a("p",{className:"text-gray-600",children:"No work history available"})})]}),t(s,{className:"md:col-span-3",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Certifications"})}),a(d,{children:c.length>0?a("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:c.map((e,r)=>t("div",{className:"bg-white p-4 rounded-lg shadow",children:[a("h4",{className:"font-medium text-gray-800",children:e.name}),e.issuer&&a("p",{className:"text-sm text-gray-600",children:e.issuer}),e.dateObtained&&t("p",{className:"text-xs text-gray-500 mt-1",children:["Obtained: ",e.dateObtained]})]},r))}):a("p",{className:"text-gray-600",children:"No certifications available"})})]})]})}),u=N;export{u as a};
1
+ import{a as s,b as i,c as l,e as d}from"./chunk-MA5FR2EM.mjs";import{b as p}from"./chunk-NQ4FAZ5U.mjs";import f from"next/image";import{jsx as a,jsxs as t}from"react/jsx-runtime";var N=({name:o,email:x,profilePicture:n,workHistory:m=[],certifications:c=[],areasOfExpertise:g=[]})=>a("div",{className:"bg-gray-100 p-6 rounded-lg shadow-lg max-w-6xl mx-auto",children:t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[t(s,{className:"md:col-span-1",children:[t(i,{children:[a("div",{className:"w-32 h-32 mx-auto bg-gray-300 rounded-full overflow-hidden",children:n?a(f,{src:n,alt:o,width:128,height:128,className:"object-cover w-full h-full"}):a("div",{className:"w-full h-full flex items-center justify-center text-gray-500",children:"No Image"})}),a(l,{className:"text-2xl font-bold text-center mt-4",children:o||"Consultant Name"}),a("p",{className:"text-gray-600 text-center",children:x||"email@example.com"})]}),t(d,{children:[a("h3",{className:"text-xl font-semibold mb-2 text-gray-700",children:"Areas of Expertise"}),a("div",{className:"flex flex-wrap gap-2",children:g.length>0?g.map((e,r)=>a(p,{variant:"secondary",className:"text-sm",children:e.area},r)):a("p",{className:"text-gray-600",children:"No areas of expertise available"})})]})]}),t(s,{className:"md:col-span-2",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Work History"})}),a(d,{children:m.length>0?m.map((e,r)=>t("div",{className:"mb-4 pb-4 border-b border-gray-200 last:border-b-0",children:[t("h4",{className:"font-medium text-gray-800",children:[e.position," at ",e.company]}),t("p",{className:"text-sm text-gray-600",children:[e.startDate," - ",e.endDate||"Present"]}),e.description&&a("p",{className:"mt-1 text-gray-700",children:e.description})]},r)):a("p",{className:"text-gray-600",children:"No work history available"})})]}),t(s,{className:"md:col-span-3",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Certifications"})}),a(d,{children:c.length>0?a("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:c.map((e,r)=>t("div",{className:"bg-white p-4 rounded-lg shadow",children:[a("h4",{className:"font-medium text-gray-800",children:e.name}),e.issuer&&a("p",{className:"text-sm text-gray-600",children:e.issuer}),e.dateObtained&&t("p",{className:"text-xs text-gray-500 mt-1",children:["Obtained: ",e.dateObtained]})]},r))}):a("p",{className:"text-gray-600",children:"No certifications available"})})]})]})}),u=N;export{u as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as s}from"./chunk-NIQ4466A.mjs";import*as r from"react";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as c}from"@radix-ui/react-icons";import{cva as f}from"class-variance-authority";import{jsx as o,jsxs as n}from"react/jsx-runtime";var x=e.Root,N=e.Trigger,C=e.Close,p=e.Portal,m=r.forwardRef(({className:t,...i},a)=>o(e.Overlay,{className:s("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...i,ref:a}));m.displayName=e.Overlay.displayName;var h=f("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),S=r.forwardRef(({side:t="right",className:i,children:a,...l},d)=>n(p,{children:[o(m,{}),n(e.Content,{ref:d,className:s(h({side:t}),i),...l,children:[n(e.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[o(c,{className:"h-4 w-4"}),o("span",{className:"sr-only",children:"Close"})]}),a]})]}));S.displayName=e.Content.displayName;var v=({className:t,...i})=>o("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",t),...i});v.displayName="SheetHeader";var P=({className:t,...i})=>o("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...i});P.displayName="SheetFooter";var y=r.forwardRef(({className:t,...i},a)=>o(e.Title,{ref:a,className:s("text-lg font-semibold text-foreground",t),...i}));y.displayName=e.Title.displayName;var u=r.forwardRef(({className:t,...i},a)=>o(e.Description,{ref:a,className:s("text-sm text-muted-foreground",t),...i}));u.displayName=e.Description.displayName;export{x as a,N as b,C as c,p as d,m as e,S as f,v as g,P as h,y as i,u as j};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as e}from"./chunk-NIQ4466A.mjs";import*as i from"react";import*as o from"@radix-ui/react-popover";import{jsx as t}from"react/jsx-runtime";var P=o.Root,v=o.Trigger,f=o.Anchor,m=i.forwardRef(({className:r,align:a="center",sideOffset:n=4,...d},p)=>t(o.Portal,{children:t(o.Content,{ref:p,align:a,sideOffset:n,className:e("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...d})}));m.displayName=o.Content.displayName;export{P as a,v as b,f as c,m as d};
@@ -1 +1 @@
1
- import{i as N,j as T,k as g,l as C,m as h,n as P,o as v}from"./chunk-DYHP6A4B.mjs";import{a as p}from"./chunk-CJTRVASG.mjs";import{a as y}from"./chunk-VBYC64I2.mjs";import{a as k}from"./chunk-NEW735FX.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as f}from"react/jsx-runtime";var b=({className:s,content:e,style:a})=>f("div",{className:i("mx-auto my-8 w-full",s),children:f("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:f(n,{content:e,enableGutter:!1,enableProse:!1})})});import S,{Fragment as R}from"react";import{jsx as t}from"react/jsx-runtime";function u({nodes:s}){return t(R,{children:s==null?void 0:s.map((e,a)=>{if(e==null)return null;if(e.type==="text"){let r=t(S.Fragment,{children:e.text},a);return e.format&1&&(r=t("strong",{children:r},a)),e.format&2&&(r=t("em",{children:r},a)),e.format&4&&(r=t("span",{style:{textDecoration:"line-through"},children:r},a)),e.format&8&&(r=t("span",{style:{textDecoration:"underline"},children:r},a)),e.format&16&&(r=t("code",{children:e.text},a)),e.format&32&&(r=t("sub",{children:r},a)),e.format&64&&(r=t("sup",{children:r},a)),r}let c=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let o of r.children)"checked"in o&&(o!=null&&o.checked||(o.checked=!1));return u({nodes:r.children})},l="children"in e?c(e):"";if(e.type==="block"){let r=e.fields,o=r==null?void 0:r.blockType;if(!r||!o)return null;switch(o){case"cta":return t(B,{...r},a);case"mediaBlock":return t(y,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return t(b,{className:"col-start-2 mb-4",...r},a);case"code":return t(k,{className:"col-start-2",...r},a);default:return null}}else switch(e.type){case"linebreak":return t("br",{className:"col-start-2"},a);case"paragraph":return t("p",{className:"col-start-2",children:l},a);case"heading":{let r=e==null?void 0:e.tag;return t(r,{className:"col-start-2",children:l},a)}case"list":{let r=e==null?void 0:e.tag;return t(r,{className:"list col-start-2",children:l},a)}case"listitem":return(e==null?void 0:e.checked)!=null?t("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},a):t("li",{value:e==null?void 0:e.value,children:l},a);case"quote":return t("blockquote",{className:"col-start-2",children:l},a);case"link":{let r=e.fields;return t(p,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},a)}default:return null}})})}import{jsx as w}from"react/jsx-runtime";var I=({className:s,content:e,enableGutter:a=!0,enableProse:c=!0})=>{var l;return e?w("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":c},s),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&u({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null},n=I;import{jsx as m,jsxs as A}from"react/jsx-runtime";var B=({links:s,richText:e})=>m("div",{className:"container",children:A("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[m("div",{className:"max-w-[48rem] flex items-center",children:e&&m(n,{className:"mb-0",content:e,enableGutter:!1})}),m("div",{className:"flex flex-col gap-8",children:(s||[]).map(({link:a},c)=>m(p,{size:"lg",...a},c))})]})});export{B as a,u as b,n as c,b as d};
1
+ import{i as N,j as T,k as g,l as C,m as h,n as P,o as v}from"./chunk-DYHP6A4B.mjs";import{a as p}from"./chunk-CJTRVASG.mjs";import{a as y}from"./chunk-YQY5Z73J.mjs";import{a as k}from"./chunk-NEW735FX.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as f}from"react/jsx-runtime";var b=({className:s,content:e,style:a})=>f("div",{className:i("mx-auto my-8 w-full",s),children:f("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:f(n,{content:e,enableGutter:!1,enableProse:!1})})});import S,{Fragment as R}from"react";import{jsx as t}from"react/jsx-runtime";function u({nodes:s}){return t(R,{children:s==null?void 0:s.map((e,a)=>{if(e==null)return null;if(e.type==="text"){let r=t(S.Fragment,{children:e.text},a);return e.format&1&&(r=t("strong",{children:r},a)),e.format&2&&(r=t("em",{children:r},a)),e.format&4&&(r=t("span",{style:{textDecoration:"line-through"},children:r},a)),e.format&8&&(r=t("span",{style:{textDecoration:"underline"},children:r},a)),e.format&16&&(r=t("code",{children:e.text},a)),e.format&32&&(r=t("sub",{children:r},a)),e.format&64&&(r=t("sup",{children:r},a)),r}let c=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let o of r.children)"checked"in o&&(o!=null&&o.checked||(o.checked=!1));return u({nodes:r.children})},l="children"in e?c(e):"";if(e.type==="block"){let r=e.fields,o=r==null?void 0:r.blockType;if(!r||!o)return null;switch(o){case"cta":return t(B,{...r},a);case"mediaBlock":return t(y,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return t(b,{className:"col-start-2 mb-4",...r},a);case"code":return t(k,{className:"col-start-2",...r},a);default:return null}}else switch(e.type){case"linebreak":return t("br",{className:"col-start-2"},a);case"paragraph":return t("p",{className:"col-start-2",children:l},a);case"heading":{let r=e==null?void 0:e.tag;return t(r,{className:"col-start-2",children:l},a)}case"list":{let r=e==null?void 0:e.tag;return t(r,{className:"list col-start-2",children:l},a)}case"listitem":return(e==null?void 0:e.checked)!=null?t("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},a):t("li",{value:e==null?void 0:e.value,children:l},a);case"quote":return t("blockquote",{className:"col-start-2",children:l},a);case"link":{let r=e.fields;return t(p,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},a)}default:return null}})})}import{jsx as w}from"react/jsx-runtime";var I=({className:s,content:e,enableGutter:a=!0,enableProse:c=!0})=>{var l;return e?w("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":c},s),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&u({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null},n=I;import{jsx as m,jsxs as A}from"react/jsx-runtime";var B=({links:s,richText:e})=>m("div",{className:"container",children:A("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[m("div",{className:"max-w-[48rem] flex items-center",children:e&&m(n,{className:"mb-0",content:e,enableGutter:!1})}),m("div",{className:"flex flex-col gap-8",children:(s||[]).map(({link:a},c)=>m(p,{size:"lg",...a},c))})]})});export{B as a,u as b,n as c,b as d};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as o}from"./chunk-NIQ4466A.mjs";import*as e from"react";import*as t from"@radix-ui/react-tooltip";import{jsx as i}from"react/jsx-runtime";var p=t.Provider,s=t.Root,f=t.Trigger,l=e.forwardRef(({className:r,sideOffset:a=4,...m},d)=>i(t.Portal,{children:i(t.Content,{ref:d,sideOffset:a,className:o("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...m})}));l.displayName=t.Content.displayName;export{p as a,s as b,f as c,l as d};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as m,d,f as p,g as f,i as u}from"./chunk-OQNGQGJV.mjs";import w from"next/image";import a from"path";import{useState as s}from"react";import{Fragment as z,jsx as o,jsxs as c}from"react/jsx-runtime";function N(t){try{let e=new URL(t),{hostname:n}=e;return n.endsWith("sharepoint.com")}catch{return!1}}function W(t){return t.startsWith("http")}function v(t,e){let n=t;if(N(t))n=`/docs/api/content/sharepoint?url=${t}`;else if(W(t))n=t;else if(e.source==="github"){let i=t.replace("./","");if(i.startsWith("/")&&(i=i.slice(1)),e.linked){if(e.linked.path){let r=a.dirname(e.linked.path);r.startsWith(".")||(i=`${r}/${i}`)}n=`/docs/docs/api/github/content?owner=${e.linked.owner}&repo=${e.linked.repo}&path=${i}&branch=${e.linked.branch}`}else{if(e.file){let r=a.dirname(e.file);r.startsWith(".")||(i=`${r}/${i}`)}n=`/docs/docs/api/github/content?owner=${e.owner}&repo=${e.repo}&path=${i}&branch=${e.branch}`}}else if(t.startsWith("/"))n=t;else if(t.startsWith("./")){let i=t.replace("./","");e.file&&(i=`/${a.dirname(e.file)}/${i}`),n=i}else n="/image-not-found.png";return n}function S({src:t,alt:e}){let[n,i]=s(!1),[r,$]=s(!1),[l,y]=s({width:0,height:0}),k=()=>{r&&i(!0)},L=()=>{i(!1)},I=D=>{let{naturalWidth:h,naturalHeight:g}=D.target;y({width:h,height:g}),$(h>300||g>300)};return c(z,{children:[o("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:k,children:o(w,{sizes:"100vw",height:l.height,width:l.width,src:t,alt:e||"",onLoad:I,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),o(m,{open:n,onOpenChange:i,children:c(p,{className:"flex flex-col items-center justify-center",children:[c(f,{className:"flex w-full justify-end",children:[o(u,{className:"hidden",children:e}),o(d,{})]}),o("div",{className:"flex items-center justify-center",children:o(w,{height:l.height,width:l.width,src:t,alt:e||"",unoptimized:!0,className:"object-contain"})})]})})]})}function j({props:t,baseContext:e}){let{src:n}=t;return n=v(n,e),o(S,{src:n,alt:t.alt})}export{j as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as o}from"./chunk-PV4EARTR.mjs";import{Highlight as i,themes as d}from"prism-react-renderer";import{jsx as e,jsxs as s}from"react/jsx-runtime";var u=({code:t,language:l=""})=>t?e(i,{code:t,language:l,theme:d.vsDark,children:({getLineProps:p,getTokenProps:n,tokens:m})=>s("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[m.map((a,r)=>s("div",{...p({className:"table-row",line:a}),children:[e("span",{className:"table-cell select-none text-right text-white/25",children:r+1}),e("span",{className:"table-cell pl-4",children:a.map((c,g)=>e("span",{...n({token:c})},g))})]},r)),e(o,{code:t})]})}):null;export{u as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import y,{useState as p}from"react";import{ChevronRight as D,ChevronDown as M,Users as x,Code as g,GanttChart as b,DraftingCompass as C,Search as w}from"lucide-react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var N={Architecture:e(C,{className:"h-5 w-5 text-blue-600"}),Engineering:e(g,{className:"h-5 w-5 text-green-600"}),Development:e(g,{className:"h-5 w-5 text-purple-600"}),Delivery:e(b,{className:"h-5 w-5 text-red-600"})},S=({person:r,level:t,onToggle:a,isExpanded:n,isHighlighted:s})=>{let l=r.reports.length>0;return e("div",{className:`ml-${t*4} mb-2`,children:o("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${s?"bg-card border-primary":"bg-white border-gray-200"}`,children:[l&&e("button",{onClick:a,className:"mr-2","aria-label":n?"Collapse":"Expand",children:n?e(M,{className:"h-4 w-4"}):e(D,{className:"h-4 w-4"})}),e("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:e(x,{className:"h-6 w-6 text-gray-500"})}),o("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:r.name}),o("div",{className:"flex items-center mt-1",children:[N[r.discipline],e("span",{className:"ml-1 text-xs text-gray-600",children:r.discipline})]})]}),e("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:r.grade})]})})},m=({person:r,level:t,searchTerm:a})=>{let[n,s]=p(t<1),l=()=>s(!n),c=i=>i.name.toLowerCase().includes(a.toLowerCase())||i.discipline.toLowerCase().includes(a.toLowerCase())||i.grade.toLowerCase().includes(a.toLowerCase()),d=i=>c(i)||i.reports.some(d),u=a===""||d(r),h=c(r);return y.useEffect(()=>{a!==""&&d(r)&&s(!0)},[a,r]),u?o("div",{children:[e(S,{person:r,level:t,onToggle:l,isExpanded:n,isHighlighted:h}),n&&r.reports.map((i,v)=>e(m,{person:i,level:t+1,searchTerm:a},v))]}):null};function L(){let[r,t]=p("");return o("div",{className:"max-w-5xl mx-auto p-6",children:[e("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),o("div",{className:"mb-4 relative",children:[e("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:r,onChange:n=>t(n.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),e(w,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),e("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((n,s)=>e(m,{person:n,level:0,searchTerm:r},s))})]})}export{L as a};
@@ -1 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
1
4
  import{a as t}from"./chunk-NIQ4466A.mjs";import*as e from"react";import*as o from"@radix-ui/react-separator";import{jsx as l}from"react/jsx-runtime";var f=e.forwardRef(({className:a,orientation:r="horizontal",decorative:i=!0,...p},m)=>l(o.Root,{ref:m,decorative:i,orientation:r,className:t("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",a),...p}));f.displayName=o.Root.displayName;export{f as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-6VGO3JR7.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:i=!0,imgClassName:s,media:m,staticImage:c}=r;return o("div",{className:e("",{container:i},t),children:o(a,{imgClassName:e("border border-border rounded-[0.8rem]",s),resource:m,src:c})})};export{p as a};
1
+ import{a}from"./chunk-MY7YCD7T.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:i=!0,imgClassName:s,media:m,staticImage:c}=r;return o("div",{className:e("",{container:i},t),children:o(a,{imgClassName:e("border border-border rounded-[0.8rem]",s),resource:m,src:c})})};export{p as a};