cortex-react-components 1.38.3 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/dist/{chunk-ZQX2AMAM.mjs → chunk-3G3SVIM2.mjs} +1 -1
  2. package/dist/{chunk-AUDD6XH7.mjs → chunk-3O45WZBW.mjs} +1 -1
  3. package/dist/{chunk-IB72MBM7.mjs → chunk-423OEU3K.mjs} +1 -1
  4. package/dist/{chunk-4N3XLFAD.mjs → chunk-4AVYTUS2.mjs} +1 -1
  5. package/dist/{chunk-U4NCHUCT.mjs → chunk-6TGQ2756.mjs} +1 -1
  6. package/dist/chunk-BXBLKTRB.mjs +4 -0
  7. package/dist/{chunk-BO4KMX4L.mjs → chunk-BYXEE5EN.mjs} +1 -1
  8. package/dist/{chunk-BVDQQP66.mjs → chunk-D2PXEOXW.mjs} +1 -1
  9. package/dist/{chunk-T6HU6M7P.mjs → chunk-D5DOMEF7.mjs} +1 -1
  10. package/dist/{chunk-3KUNT22C.mjs → chunk-DZCCRDJP.mjs} +1 -1
  11. package/dist/{chunk-OZWMFVUL.mjs → chunk-F3X4XMDX.mjs} +1 -1
  12. package/dist/{chunk-JHLO57EI.mjs → chunk-FF5RGGCG.mjs} +1 -1
  13. package/dist/{chunk-M2E6LWPZ.mjs → chunk-GMMJ5NQ2.mjs} +1 -1
  14. package/dist/{chunk-OEM7RQ4Q.mjs → chunk-HUN2X4VH.mjs} +1 -1
  15. package/dist/{chunk-QRNJ7O2L.mjs → chunk-ICTOXY7D.mjs} +1 -1
  16. package/dist/chunk-IK2XCY2B.mjs +4 -0
  17. package/dist/{chunk-DOKHWHYB.mjs → chunk-JVRJU2VL.mjs} +1 -1
  18. package/dist/{chunk-B5MYCLC4.mjs → chunk-KQLEXEOG.mjs} +1 -1
  19. package/dist/chunk-L73FONDI.mjs +4 -0
  20. package/dist/{chunk-63BUZTVI.mjs → chunk-MANZDSTF.mjs} +1 -1
  21. package/dist/{chunk-6AARBDPJ.mjs → chunk-OCZTJKMQ.mjs} +1 -1
  22. package/dist/chunk-OK5DPXKH.mjs +190 -0
  23. package/dist/{chunk-2S5YQVXM.mjs → chunk-OZ7CSBQO.mjs} +1 -1
  24. package/dist/{chunk-ZTAKQMSW.mjs → chunk-PC3JJLM4.mjs} +1 -1
  25. package/dist/{chunk-G4UZIH3Q.mjs → chunk-R75QPTHT.mjs} +1 -1
  26. package/dist/chunk-RMI4G7HJ.mjs +1 -0
  27. package/dist/chunk-S7OK7D5I.mjs +1 -0
  28. package/dist/{chunk-ODLDYXPZ.mjs → chunk-UK4IPFAO.mjs} +1 -1
  29. package/dist/{chunk-FQTQI56T.mjs → chunk-VAEKAYFF.mjs} +1 -1
  30. package/dist/{chunk-PAG346RY.mjs → chunk-VXZJ3JK5.mjs} +1 -1
  31. package/dist/chunk-XGQLOPHW.mjs +4 -0
  32. package/dist/{chunk-TAAX3A4F.mjs → chunk-XJIMKYBF.mjs} +1 -1
  33. package/dist/{chunk-MBCAGZ76.mjs → chunk-Y5CGMHFF.mjs} +1 -1
  34. package/dist/{chunk-UPEI7J4F.mjs → chunk-Y5LJ6MWY.mjs} +1 -1
  35. package/dist/chunk-YNDKGRL6.mjs +4 -0
  36. package/dist/chunk-ZGOBG76E.mjs +4 -0
  37. package/dist/common-types.mjs +1 -1
  38. package/dist/components/Blocks/Banner.js +1 -1
  39. package/dist/components/Blocks/Banner.mjs +1 -1
  40. package/dist/components/Blocks/CallToAction.js +1 -1
  41. package/dist/components/Blocks/CallToAction.mjs +1 -1
  42. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  43. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  44. package/dist/components/Blocks/Code.client.mjs +1 -1
  45. package/dist/components/Blocks/Code.mjs +1 -1
  46. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  47. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  48. package/dist/components/Blocks/Content.js +1 -1
  49. package/dist/components/Blocks/Content.mjs +1 -1
  50. package/dist/components/Blocks/CopyButton.mjs +1 -1
  51. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  52. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  53. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  55. package/dist/components/Blocks/HeadingImage.mjs +1 -1
  56. package/dist/components/Blocks/HeadingImage.stories.mjs +1 -1
  57. package/dist/components/Blocks/ImageBlock.js +1 -1
  58. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  59. package/dist/components/Blocks/InfoTile.mjs +1 -1
  60. package/dist/components/Blocks/InfoTile.stories.mjs +1 -1
  61. package/dist/components/Blocks/Insight.mjs +1 -1
  62. package/dist/components/Blocks/Insight.stories.mjs +1 -1
  63. package/dist/components/Blocks/MOTD.mjs +1 -1
  64. package/dist/components/Blocks/MOTD.stories.mjs +1 -1
  65. package/dist/components/Blocks/MediaBlock.js +1 -1
  66. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  67. package/dist/components/Blocks/OrgChart.mjs +1 -1
  68. package/dist/components/Blocks/OrgChart.stories.mjs +1 -1
  69. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  70. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  71. package/dist/components/Blocks/RelatedPosts.js +1 -1
  72. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  73. package/dist/components/Blocks/RenderBlocks.js +1 -1
  74. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  75. package/dist/components/Blocks/WhyUs.mjs +1 -1
  76. package/dist/components/Blocks/WhyUs.stories.mjs +1 -1
  77. package/dist/components/Blocks/index.js +1 -1
  78. package/dist/components/Blocks/index.mjs +1 -1
  79. package/dist/components/Cards/CustomerCard.mjs +1 -1
  80. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  81. package/dist/components/Cards/EventCard.mjs +1 -1
  82. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  83. package/dist/components/Cards/FeatureCard.mjs +1 -1
  84. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  85. package/dist/components/Cards/Image.mjs +1 -1
  86. package/dist/components/Cards/Image.stories.mjs +1 -1
  87. package/dist/components/Cards/PricingCard.mjs +1 -1
  88. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  89. package/dist/components/Cards/ProjectCard.mjs +1 -1
  90. package/dist/components/Cards/ProjectCard.stories.mjs +1 -1
  91. package/dist/components/Cards/ServiceCard.mjs +1 -1
  92. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  93. package/dist/components/Cards/index.mjs +1 -1
  94. package/dist/components/HeaderFooter/AppLauncher.mjs +1 -1
  95. package/dist/components/HeaderFooter/AppLauncher.stories.mjs +1 -1
  96. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  97. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  98. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/Header.mjs +1 -1
  100. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  102. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  103. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  104. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  105. package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -1
  106. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  107. package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
  108. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  109. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  110. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  111. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  112. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  113. package/dist/components/HeaderFooter/index.mjs +1 -1
  114. package/dist/components/Heros/HighImpact/index.js +1 -1
  115. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  116. package/dist/components/Heros/LowImpact/index.js +1 -1
  117. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  118. package/dist/components/Heros/MediumImpact/index.js +1 -1
  119. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  120. package/dist/components/Heros/PostHero/index.mjs +1 -1
  121. package/dist/components/Heros/RenderHero.js +1 -1
  122. package/dist/components/Heros/RenderHero.mjs +1 -1
  123. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  124. package/dist/components/Heros/index.js +1 -1
  125. package/dist/components/Heros/index.mjs +1 -1
  126. package/dist/components/Holidays/ApproveLeave.d.ts +19 -0
  127. package/dist/components/Holidays/ApproveLeave.js +4 -0
  128. package/dist/components/Holidays/ApproveLeave.mjs +2 -0
  129. package/dist/components/Holidays/ApproveLeave.stories.js +193 -0
  130. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -0
  131. package/dist/components/Holidays/CalendarView.d.ts +17 -0
  132. package/dist/components/Holidays/CalendarView.js +4 -0
  133. package/dist/components/Holidays/CalendarView.mjs +2 -0
  134. package/dist/components/Holidays/CalendarView.stories.js +4 -0
  135. package/dist/components/Holidays/CalendarView.stories.mjs +1 -0
  136. package/dist/components/Holidays/HolidayGrid.d.ts +26 -0
  137. package/dist/components/Holidays/HolidayGrid.js +4 -0
  138. package/dist/components/Holidays/HolidayGrid.mjs +1 -0
  139. package/dist/components/Holidays/HolidayGrid.stories.js +4 -0
  140. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -0
  141. package/dist/components/Holidays/HolidayTracker.d.ts +44 -0
  142. package/dist/components/Holidays/HolidayTracker.js +5 -0
  143. package/dist/components/Holidays/HolidayTracker.mjs +2 -0
  144. package/dist/components/Holidays/HolidayTracker.stories.js +440 -0
  145. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -0
  146. package/dist/components/Holidays/RequestLeave.d.ts +11 -0
  147. package/dist/components/Holidays/RequestLeave.js +5 -0
  148. package/dist/components/Holidays/RequestLeave.mjs +2 -0
  149. package/dist/components/Holidays/RequestLeave.stories.js +194 -0
  150. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -0
  151. package/dist/components/Holidays/index.d.ts +5 -0
  152. package/dist/components/Holidays/index.js +5 -0
  153. package/dist/components/Holidays/index.mjs +1 -0
  154. package/dist/components/Icons/ScrollDownIcon.mjs +1 -1
  155. package/dist/components/Icons/ScrollDownIcon.stories.mjs +1 -1
  156. package/dist/components/Images/DynamicIcon.mjs +1 -1
  157. package/dist/components/Images/DynamicIcon.stories.mjs +1 -1
  158. package/dist/components/Images/IconIndex.mjs +1 -1
  159. package/dist/components/Images/customIconList.mjs +1 -1
  160. package/dist/components/Images/index.mjs +1 -1
  161. package/dist/components/Layouts/BlogList.js +3 -3
  162. package/dist/components/Layouts/BlogList.mjs +1 -1
  163. package/dist/components/Layouts/BlogList.stories.js +3 -3
  164. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  165. package/dist/components/Layouts/FeatureGrid.mjs +1 -1
  166. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  167. package/dist/components/Layouts/NewsGrid.mjs +1 -1
  168. package/dist/components/Layouts/NewsGrid.stories.mjs +1 -1
  169. package/dist/components/Layouts/NewsList.mjs +1 -1
  170. package/dist/components/Layouts/NewsList.stories.mjs +1 -1
  171. package/dist/components/Layouts/SlideShow.js +1 -1
  172. package/dist/components/Layouts/SlideShow.mjs +1 -1
  173. package/dist/components/Layouts/SlideShow.stories.js +1 -1
  174. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  175. package/dist/components/Layouts/TextAndImages.mjs +1 -1
  176. package/dist/components/Layouts/TextAndImages.stories.mjs +1 -1
  177. package/dist/components/Layouts/index.js +3 -3
  178. package/dist/components/Layouts/index.mjs +1 -1
  179. package/dist/components/Menus/Categories.mjs +1 -1
  180. package/dist/components/Menus/Categories.stories.mjs +1 -1
  181. package/dist/components/Menus/Filter.mjs +1 -1
  182. package/dist/components/Menus/Filter.stories.mjs +1 -1
  183. package/dist/components/Menus/Pagination.mjs +1 -1
  184. package/dist/components/Menus/Pagination.stories.mjs +1 -1
  185. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  186. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  187. package/dist/components/Menus/RelatedContent.mjs +1 -1
  188. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  189. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  190. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  191. package/dist/components/Menus/SidebarRight.mjs +1 -1
  192. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  193. package/dist/components/Menus/index.mjs +1 -1
  194. package/dist/components/Other/AnimatedBorder.mjs +1 -1
  195. package/dist/components/Other/AnimatedBorder.stories.mjs +1 -1
  196. package/dist/components/Other/Container.mjs +1 -1
  197. package/dist/components/Other/CustomLink.mjs +1 -1
  198. package/dist/components/Other/ThemeProvider.mjs +1 -1
  199. package/dist/components/Other/index.mjs +1 -1
  200. package/dist/components/Payload/Card/index.js +1 -1
  201. package/dist/components/Payload/Card/index.mjs +1 -1
  202. package/dist/components/Payload/CollectionArchive/index.js +1 -1
  203. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  204. package/dist/components/Payload/Link/index.mjs +1 -1
  205. package/dist/components/Payload/Logo/index.mjs +1 -1
  206. package/dist/components/Payload/Media/ImageMedia/index.js +1 -1
  207. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  208. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  209. package/dist/components/Payload/Media/index.js +1 -1
  210. package/dist/components/Payload/Media/index.mjs +1 -1
  211. package/dist/components/Payload/PageRange/index.mjs +1 -1
  212. package/dist/components/Payload/Pagination/index.mjs +1 -1
  213. package/dist/components/Payload/RichText/index.js +1 -1
  214. package/dist/components/Payload/RichText/index.mjs +1 -1
  215. package/dist/components/Payload/RichText/nodeFormat.mjs +1 -1
  216. package/dist/components/Payload/RichText/serialize.js +1 -1
  217. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  218. package/dist/components/Payload/RichText.stories.js +1 -1
  219. package/dist/components/Payload/RichText.stories.mjs +1 -1
  220. package/dist/components/Payload/index.js +1 -1
  221. package/dist/components/Payload/index.mjs +1 -1
  222. package/dist/components/index.d.ts +1 -0
  223. package/dist/components/index.js +7 -6
  224. package/dist/components/index.mjs +1 -1
  225. package/dist/components/ui/alert.mjs +1 -1
  226. package/dist/components/ui/alert.stories.mjs +1 -1
  227. package/dist/components/ui/avatar.mjs +1 -1
  228. package/dist/components/ui/avatar.stories.mjs +1 -1
  229. package/dist/components/ui/badge.mjs +1 -1
  230. package/dist/components/ui/badge.stories.mjs +1 -1
  231. package/dist/components/ui/breadcrumb.mjs +1 -1
  232. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  233. package/dist/components/ui/button.mjs +1 -1
  234. package/dist/components/ui/button.stories.mjs +1 -1
  235. package/dist/components/ui/calendar.d.ts +8 -0
  236. package/dist/components/ui/calendar.js +4 -0
  237. package/dist/components/ui/calendar.mjs +2 -0
  238. package/dist/components/ui/card.mjs +1 -1
  239. package/dist/components/ui/card.stories.mjs +1 -1
  240. package/dist/components/ui/checkbox.mjs +1 -1
  241. package/dist/components/ui/collapsible.mjs +1 -1
  242. package/dist/components/ui/collapsible.stories.mjs +1 -1
  243. package/dist/components/ui/command.mjs +1 -1
  244. package/dist/components/ui/command.stories.mjs +1 -1
  245. package/dist/components/ui/dialog.mjs +1 -1
  246. package/dist/components/ui/dialog.stories.mjs +1 -1
  247. package/dist/components/ui/dropdown-menu.mjs +1 -1
  248. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  249. package/dist/components/ui/hover-card.mjs +1 -1
  250. package/dist/components/ui/hover-card.stories.mjs +1 -1
  251. package/dist/components/ui/index.d.ts +1 -0
  252. package/dist/components/ui/index.js +2 -1
  253. package/dist/components/ui/index.mjs +1 -1
  254. package/dist/components/ui/input.mjs +1 -1
  255. package/dist/components/ui/input.stories.mjs +1 -1
  256. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  257. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  258. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  259. package/dist/components/ui/label.mjs +1 -1
  260. package/dist/components/ui/label.stories.mjs +1 -1
  261. package/dist/components/ui/pagination.mjs +1 -1
  262. package/dist/components/ui/popover.mjs +1 -1
  263. package/dist/components/ui/popover.stories.mjs +1 -1
  264. package/dist/components/ui/scroll-area.mjs +1 -1
  265. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  266. package/dist/components/ui/select.mjs +1 -1
  267. package/dist/components/ui/separator.mjs +1 -1
  268. package/dist/components/ui/separator.stories.mjs +1 -1
  269. package/dist/components/ui/sheet.mjs +1 -1
  270. package/dist/components/ui/sheet.stories.mjs +1 -1
  271. package/dist/components/ui/sidebar.mjs +1 -1
  272. package/dist/components/ui/skeleton.mjs +1 -1
  273. package/dist/components/ui/skeleton.stories.mjs +1 -1
  274. package/dist/components/ui/textarea.mjs +1 -1
  275. package/dist/components/ui/toast.mjs +1 -1
  276. package/dist/components/ui/toast.stories.mjs +1 -1
  277. package/dist/components/ui/toaster.mjs +1 -1
  278. package/dist/components/ui/toggle-group.mjs +1 -1
  279. package/dist/components/ui/toggle.mjs +1 -1
  280. package/dist/components/ui/toggle.stories.mjs +1 -1
  281. package/dist/components/ui/tooltip.mjs +1 -1
  282. package/dist/components/ui/tooltip.stories.mjs +1 -1
  283. package/dist/constants.mjs +1 -1
  284. package/dist/globals.css +1 -1
  285. package/dist/{graphql-BTAID7BU.mjs → graphql-VUJWHN7H.mjs} +1 -1
  286. package/dist/hooks/index.mjs +1 -1
  287. package/dist/hooks/use-mobile.mjs +1 -1
  288. package/dist/hooks/use-toast.mjs +1 -1
  289. package/dist/images/cortex-reply-bw.mjs +1 -1
  290. package/dist/images/cortex-reply-dark.mjs +1 -1
  291. package/dist/images/cortex-reply-gradient.mjs +1 -1
  292. package/dist/images/cortex-reply-light.mjs +1 -1
  293. package/dist/images/cortex-reply.mjs +1 -1
  294. package/dist/images/hero/hero-3.mjs +1 -1
  295. package/dist/images/hero/image-hero1.mjs +1 -1
  296. package/dist/images/hero/pattern-1.mjs +1 -1
  297. package/dist/images/hero/pattern-2.mjs +1 -1
  298. package/dist/index.js +7 -6
  299. package/dist/index.mjs +1 -1
  300. package/dist/metafile-cjs.json +1 -1
  301. package/dist/metafile-esm.json +1 -1
  302. package/dist/pages/Blog.js +1 -1
  303. package/dist/pages/Blog.mjs +1 -1
  304. package/dist/pages/Blog.stories.js +1 -1
  305. package/dist/pages/Blog.stories.mjs +1 -1
  306. package/dist/pages/Documentation.mjs +1 -1
  307. package/dist/pages/Documentation.stories.mjs +1 -1
  308. package/dist/pages/IndexPage.mjs +1 -1
  309. package/dist/pages/IndexPage.stories.mjs +1 -1
  310. package/dist/pages/Intranet.mjs +1 -1
  311. package/dist/pages/Intranet.stories.mjs +1 -1
  312. package/dist/pages/LandingPage.mjs +1 -1
  313. package/dist/pages/LandingPage.stories.mjs +1 -1
  314. package/dist/pages/Page.js +1 -1
  315. package/dist/pages/Page.mjs +1 -1
  316. package/dist/pages/Page.stories.js +134 -134
  317. package/dist/pages/Page.stories.mjs +1 -1
  318. package/dist/pages/Publish.js +1 -1
  319. package/dist/pages/Publish.mjs +1 -1
  320. package/dist/pages/Publish.stories.js +1 -1
  321. package/dist/pages/Publish.stories.mjs +1 -1
  322. package/dist/pages/Website.js +1 -1
  323. package/dist/pages/Website.mjs +1 -1
  324. package/dist/pages/Website.stories.js +1 -1
  325. package/dist/pages/Website.stories.mjs +1 -1
  326. package/dist/sections/AboutSection.js +1 -1
  327. package/dist/sections/AboutSection.mjs +1 -1
  328. package/dist/sections/AboutSection.stories.js +1 -1
  329. package/dist/sections/AboutSection.stories.mjs +1 -1
  330. package/dist/sections/BlogDetail.js +1 -1
  331. package/dist/sections/BlogDetail.mjs +1 -1
  332. package/dist/sections/BlogDetail.stories.js +1 -1
  333. package/dist/sections/BlogDetail.stories.mjs +1 -1
  334. package/dist/sections/BlogListSection.mjs +1 -1
  335. package/dist/sections/BlogListSection.stories.mjs +1 -1
  336. package/dist/sections/ContactSection.js +1 -1
  337. package/dist/sections/ContactSection.mjs +1 -1
  338. package/dist/sections/ContactSection.stories.js +1 -1
  339. package/dist/sections/ContactSection.stories.mjs +1 -1
  340. package/dist/sections/MainPageSection.mjs +1 -1
  341. package/dist/sections/PricingSection.js +1 -1
  342. package/dist/sections/PricingSection.mjs +1 -1
  343. package/dist/sections/PricingSection.stories.js +1 -1
  344. package/dist/sections/PricingSection.stories.mjs +1 -1
  345. package/dist/sections/ServiceSection.mjs +1 -1
  346. package/dist/sections/ServiceSection.stories.mjs +1 -1
  347. package/dist/sections/form/index.mjs +1 -1
  348. package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
  349. package/dist/sections/index.js +1 -1
  350. package/dist/sections/index.mjs +1 -1
  351. package/dist/styles/Colors.mjs +1 -1
  352. package/dist/styles/Colors.stories.mjs +1 -1
  353. package/dist/styles/Typography.mjs +1 -1
  354. package/dist/utils/AOSInit.mjs +1 -1
  355. package/dist/utils/canUseDOM.mjs +1 -1
  356. package/dist/utils/cn.mjs +1 -1
  357. package/dist/utils/formatDateTime.mjs +1 -1
  358. package/dist/utils/getTableOfContents.mjs +1 -1
  359. package/dist/utils/getURL.mjs +1 -1
  360. package/dist/utils/index.mjs +1 -1
  361. package/dist/utils/setStaggeredDelay.mjs +1 -1
  362. package/dist/utils/useClickableCard.mjs +1 -1
  363. package/package.json +4 -1
  364. package/dist/chunk-7WBETZEV.mjs +0 -4
  365. package/dist/chunk-D2WXBUVJ.mjs +0 -1
@@ -1,4 +1,4 @@
1
- import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-BO4KMX4L.mjs";import{a as n}from"./chunk-WISCWNL2.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import g from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as i}from"react/jsx-runtime";function _({blogs:a,sectionHeading:t}){return e("section",{className:o("section-padding-primary overflow-hidden "),children:i(m,{children:[e("div",{className:"mx-auto max-w-[630px]",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(p,{...t,alignment:"center",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:a.map((l,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":d([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},r))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:a,image:t,authors:l,title:r,publishedAt:s,categories:v}){return i("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(g,{src:t.src,alt:t.alt,fill:!0,sizes:`
1
+ import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-BYXEE5EN.mjs";import{a as n}from"./chunk-WISCWNL2.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import g from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as i}from"react/jsx-runtime";function _({blogs:a,sectionHeading:t}){return e("section",{className:o("section-padding-primary overflow-hidden "),children:i(m,{children:[e("div",{className:"mx-auto max-w-[630px]",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(p,{...t,alignment:"center",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:a.map((l,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":d([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},r))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:a,image:t,authors:l,title:r,publishedAt:s,categories:v}){return i("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(g,{src:t.src,alt:t.alt,fill:!0,sizes:`
2
2
  (min-width:768px) 50vw,
3
3
  (min-width:1024px) 33vw,
4
4
  100vw
@@ -1 +1 @@
1
- import{a as o}from"./chunk-DOKHWHYB.mjs";import{a as e}from"./chunk-6K2R3OAD.mjs";import{jsx as t}from"react/jsx-runtime";function a({...r}){let n=r.page,{contentWithIds:i,tableOfContents:s}=e(n);return t("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:t(o,{blocks:i})})}export{a};
1
+ import{a as o}from"./chunk-JVRJU2VL.mjs";import{a as e}from"./chunk-6K2R3OAD.mjs";import{jsx as t}from"react/jsx-runtime";function a({...r}){let n=r.page,{contentWithIds:i,tableOfContents:s}=e(n);return t("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:t(o,{blocks:i})})}export{a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as p}from"./chunk-6P7CY367.mjs";import{a as d}from"./chunk-QRNJ7O2L.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}=p({}),{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(d,{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};
4
+ import{a as p}from"./chunk-6P7CY367.mjs";import{a as d}from"./chunk-ICTOXY7D.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}=p({}),{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(d,{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 @@
1
- import{e as o}from"./chunk-6AARBDPJ.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
1
+ import{e as o}from"./chunk-OCZTJKMQ.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
@@ -1 +1 @@
1
- import{a as g}from"./chunk-AD7PG4E2.mjs";import{a as n}from"./chunk-6ZNVXWZR.mjs";import{a as e}from"./chunk-WZLEEZ5C.mjs";import{a as o}from"./chunk-65EMMROH.mjs";import{a as s}from"./chunk-UESKYRNK.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function f({blogs:l,pages:m,categories:t,types:r}){return i("section",{children:i(s,{children:a("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[a("div",{children:[r&&i(n,{types:r}),i(g,{blogs:l}),i(e,{pages:m})]}),i("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:i("div",{className:"lg:-mt-24 w-full",children:t&&t.links&&i(o,{links:t.links,title:t.title})})})]})})})}export{f as a};
1
+ import{a as g}from"./chunk-AD7PG4E2.mjs";import{a as e}from"./chunk-WZLEEZ5C.mjs";import{a as n}from"./chunk-6ZNVXWZR.mjs";import{a as o}from"./chunk-65EMMROH.mjs";import{a as s}from"./chunk-UESKYRNK.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function f({blogs:l,pages:m,categories:t,types:r}){return i("section",{children:i(s,{children:a("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[a("div",{children:[r&&i(n,{types:r}),i(g,{blogs:l}),i(e,{pages:m})]}),i("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:i("div",{className:"lg:-mt-24 w-full",children:t&&t.links&&i(o,{links:t.links,title:t.title})})})]})})})}export{f as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as c}from"./chunk-Y5ZFXDW5.mjs";import{a as r,b as o,c as m}from"./chunk-SBM5HULF.mjs";import{b as v}from"./chunk-Q6SEVCRG.mjs";import{b as d}from"./chunk-GLEWUUGS.mjs";import{useState as y}from"react";import{jsx as a,jsxs as t}from"react/jsx-runtime";function j({leaveRequests:l,onApprove:p,onReject:g}){let[s,i]=y([]),f=()=>{s.length===l.length?i([]):i(l.map(e=>e.id))},h=e=>{i(n=>n.includes(e)?n.filter(x=>x!==e):[...n,e])},N=()=>{p(s),i([])},u=()=>{g(s),i([])};return t("div",{className:"space-y-4",children:[t("div",{className:"flex justify-between items-center",children:[a("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),t("div",{className:"space-x-2",children:[a(d,{onClick:N,disabled:s.length===0,variant:"default",children:"Approve Selected"}),a(d,{onClick:u,disabled:s.length===0,variant:"destructive",children:"Reject Selected"})]})]}),a("div",{className:"overflow-hidden sm:rounded-md",children:t("ul",{className:"divide-y divide-gray-200",children:[a("li",{className:"px-4 py-4 sm:px-6",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[a(c,{id:"select-all",checked:s.length===l.length,onCheckedChange:f,className:"border-accent"}),a("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),t("span",{className:"text-sm font-medium text-gray-500",children:[s.length," of ",l.length," selected"]})]})}),l.map(e=>a("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[a(c,{id:`select-${e.id}`,checked:s.includes(e.id),onCheckedChange:()=>h(e.id),className:"border-accent"}),t("div",{className:"ml-3 flex items-center",children:[t(r,{className:"h-10 w-10",children:[a(o,{src:e.userImage,alt:e.userName}),a(m,{children:e.userName.split(" ").map(n=>n[0]).join("")})]}),a("div",{className:"ml-3",children:a("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),t("div",{className:"flex items-center space-x-2",children:[t("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),a(v,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})})]})}export{j as a};
@@ -1 +1 @@
1
- import{e as s}from"./chunk-6AARBDPJ.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function f({subtitle:o,title:r,description:t,alignment:n="start",hasBottomSpacing:i=!1,className:l,invert:c=!1}){let m=a(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},l);return p("div",{className:m,children:[o&&e("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:o}),e("h2",{className:a("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",c&&"text-gray-900"),children:r}),typeof t=="string"?t&&e("p",{className:"mt-5 whitespace-pre-line",children:t}):t&&e(s,{content:t,enableGutter:!1})]})}export{f as a};
1
+ import{e as s}from"./chunk-OCZTJKMQ.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function f({subtitle:o,title:r,description:t,alignment:n="start",hasBottomSpacing:i=!1,className:l,invert:c=!1}){let m=a(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},l);return p("div",{className:m,children:[o&&e("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:o}),e("h2",{className:a("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",c&&"text-gray-900"),children:r}),typeof t=="string"?t&&e("p",{className:"mt-5 whitespace-pre-line",children:t}):t&&e(s,{content:t,enableGutter:!1})]})}export{f as a};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-6D7LTGTN.mjs";import{b as r}from"./chunk-UPEI7J4F.mjs";import{a as n}from"./chunk-JHLO57EI.mjs";import{a as i}from"./chunk-GHBJK554.mjs";import{a as o}from"./chunk-6K2R3OAD.mjs";import{jsx as t,jsxs as p}from"react/jsx-runtime";function g({...e}){let s=e.page,{contentWithIds:c,tableOfContents:m}=o(s);return p("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:f}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
1
+ import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-6D7LTGTN.mjs";import{b as r}from"./chunk-Y5LJ6MWY.mjs";import{a as n}from"./chunk-FF5RGGCG.mjs";import{a as i}from"./chunk-GHBJK554.mjs";import{a as o}from"./chunk-6K2R3OAD.mjs";import{jsx as t,jsxs as p}from"react/jsx-runtime";function g({...e}){let s=e.page,{contentWithIds:c,tableOfContents:m}=o(s);return p("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:f}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-MBCAGZ76.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-BO4KMX4L.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
1
+ import{a as m}from"./chunk-Y5CGMHFF.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-BYXEE5EN.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as u}from"./chunk-TAAX3A4F.mjs";import{a as p}from"./chunk-4N3XLFAD.mjs";import{a as l}from"./chunk-B5MYCLC4.mjs";import{a as c}from"./chunk-CWNEDSLD.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-D76EO57Z.mjs";import{a as s}from"./chunk-GHBJK554.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:f,logoDark:h,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
4
+ import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as u}from"./chunk-XJIMKYBF.mjs";import{a as p}from"./chunk-4AVYTUS2.mjs";import{a as l}from"./chunk-KQLEXEOG.mjs";import{a as c}from"./chunk-CWNEDSLD.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-D76EO57Z.mjs";import{a as s}from"./chunk-GHBJK554.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:f,logoDark:h,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
@@ -1 +1 @@
1
- import{e as c}from"./chunk-6AARBDPJ.mjs";import{a as s}from"./chunk-NWW7KWJK.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{e as c}from"./chunk-OCZTJKMQ.mjs";import{a as s}from"./chunk-NWW7KWJK.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 @@
1
- import{a}from"./chunk-OZWMFVUL.mjs";import{b as l,c as s}from"./chunk-6AARBDPJ.mjs";import{a as e}from"./chunk-ODLDYXPZ.mjs";import{jsx as r}from"react/jsx-runtime";var m={content:a,cta:l,mediaBlock:e,imageBlock:e,features:s},u=i=>{let{blocks:o}=i;return o&&Array.isArray(o)&&o.length>0?r("section",{id:"render-blocks",children:o.map((c,k)=>{let{blockType:t}=c;if(t&&t in m){let n=m[t];if(n)return r("div",{className:"my-6",children:r(n,{...c})},k)}return null})}):null};export{u as a};
1
+ import{a}from"./chunk-F3X4XMDX.mjs";import{b as l,c as s}from"./chunk-OCZTJKMQ.mjs";import{a as e}from"./chunk-UK4IPFAO.mjs";import{jsx as r}from"react/jsx-runtime";var m={content:a,cta:l,mediaBlock:e,imageBlock:e,features:s},u=i=>{let{blocks:o}=i;return o&&Array.isArray(o)&&o.length>0?r("section",{id:"render-blocks",children:o.map((c,k)=>{let{blockType:t}=c;if(t&&t in m){let n=m[t];if(n)return r("div",{className:"my-6",children:r(n,{...c})},k)}return null})}):null};export{u as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-BO4KMX4L.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as l}from"./chunk-NIQ4466A.mjs";import i from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:c,keyPoints:o,description:s}=d;return e("section",{id:"about-section",className:l("section-padding-primary",d.className||""),children:e(n,{children:t("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[t("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(m,{...c}),o&&o.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((r,g)=>t("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),s&&e("p",{className:"mt-5 md:mt-[1.875rem]",children:s})]}),a&&e("div",{className:"mx-auto text-center",children:t("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[t("div",{className:"relative flex justify-end overflow-hidden",children:[t("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[e("span",{className:"absolute -left-2.5 -top-2.5 -z-1 h-full w-full rounded-tl-[60px] bg-primary-light"}),e("div",{className:"relative z-[4] overflow-hidden",children:e(i,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),e(i,{src:a.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] z-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),e("div",{className:"flex overflow-hidden",children:e(i,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(i,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(i,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}export{u as a};
1
+ import{a as m}from"./chunk-BYXEE5EN.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as l}from"./chunk-NIQ4466A.mjs";import i from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:c,keyPoints:o,description:s}=d;return e("section",{id:"about-section",className:l("section-padding-primary",d.className||""),children:e(n,{children:t("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[t("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(m,{...c}),o&&o.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((r,g)=>t("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),s&&e("p",{className:"mt-5 md:mt-[1.875rem]",children:s})]}),a&&e("div",{className:"mx-auto text-center",children:t("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[t("div",{className:"relative flex justify-end overflow-hidden",children:[t("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[e("span",{className:"absolute -left-2.5 -top-2.5 -z-1 h-full w-full rounded-tl-[60px] bg-primary-light"}),e("div",{className:"relative z-[4] overflow-hidden",children:e(i,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),e(i,{src:a.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] z-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),e("div",{className:"flex overflow-hidden",children:e(i,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(i,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(i,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}export{u as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-QRNJ7O2L.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",s),resource:i,src:n})})};export{p as a};
1
+ import{a as e}from"./chunk-ICTOXY7D.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",s),resource:i,src:n})})};export{p as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-7WBETZEV.mjs";import{a as n}from"./chunk-TFWGOEV7.mjs";import{Fragment as c}from"react";import{jsx as o}from"react/jsx-runtime";var T=t=>{var m;let{className:s,htmlElement:i="div",resource:e}=t,r=typeof e=="object"&&((m=e==null?void 0:e.mimeType)==null?void 0:m.includes("video"));return o(i||c,{...i!==null?{className:s}:{},children:r?o(n,{...t}):o(a,{...t})})};export{T as a};
1
+ import{a}from"./chunk-YNDKGRL6.mjs";import{a as n}from"./chunk-TFWGOEV7.mjs";import{Fragment as c}from"react";import{jsx as o}from"react/jsx-runtime";var T=t=>{var m;let{className:s,htmlElement:i="div",resource:e}=t,r=typeof e=="object"&&((m=e==null?void 0:e.mimeType)==null?void 0:m.includes("video"));return o(i||c,{...i!==null?{className:s}:{},children:r?o(n,{...t}):o(a,{...t})})};export{T as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as N,b as x,d as L}from"./chunk-HWEPDRG6.mjs";import{a as p}from"./chunk-DWRQHV42.mjs";import{a as S}from"./chunk-XGQLOPHW.mjs";import{b as m}from"./chunk-GLEWUUGS.mjs";import{a as P}from"./chunk-NIQ4466A.mjs";import{useState as f,useEffect as q}from"react";import{format as C}from"date-fns";import{CalendarIcon as F}from"lucide-react";import{useRouter as B}from"next/navigation";import{Toaster as E,toast as v}from"sonner";import{jsx as e,jsxs as s}from"react/jsx-runtime";var I=({options:n,value:i,onChange:l,disabled:u=[]})=>e("div",{className:"flex space-x-2",children:n.map((t,c)=>e(m,{type:"button",variant:i===t?"default":"outline",onClick:()=>l(t),disabled:u[c],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:t},t))});function Q({userId:n,userName:i,remainingDays:l,submitLeaveRequest:u}){let[t,c]=f(void 0),[a,g]=f(void 0),[d,y]=f("Full Day"),[b,T]=f(!1),R=B();q(()=>{T(t!==a||!t||!a),b&&y("Full Day")},[t,a]);let w=o=>{y(o)};return s("div",{className:"max-w-2xl",children:[e("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),s("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",l]}),s("form",{onSubmit:async o=>{if(o.preventDefault(),!t||!a){v.error("Please select both start and end dates");return}let h=Math.ceil((a.getTime()-t.getTime())/(1e3*60*60*24))+1;if((d==="Morning"||d==="Afternoon")&&(h=.5),h>l){v.error("You do not have enough leave days remaining");return}let r=new FormData;r.append("userId",n),r.append("userName",i),r.append("startDate",t.toISOString()),r.append("endDate",a.toISOString()),r.append("leaveType",d),r.append("duration",h.toString());let D=await(u||k)(r);D.success?(v.success(D.message),c(void 0),g(void 0),y("Full Day"),R.refresh()):v.error(`Error: ${D.message}`)},className:"space-y-4",children:[s("div",{className:"grid grid-cols-2 gap-4",children:[s("div",{className:"flex flex-col space-y-2",children:[e(p,{htmlFor:"startDate",children:"Start Date"}),s(N,{children:[e(x,{asChild:!0,children:s(m,{variant:"outline",className:P("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[e(F,{className:"mr-2 h-4 w-4"}),t?C(t,"PPP"):e("span",{children:"Pick a date"})]})}),e(L,{className:"w-auto p-0",align:"start",children:e(S,{mode:"single",selected:t,onSelect:o=>{c(o),o&&(!a||o>a)&&g(o)},initialFocus:!0})})]})]}),s("div",{className:"flex flex-col space-y-2",children:[e(p,{htmlFor:"endDate",children:"End Date"}),s(N,{children:[e(x,{asChild:!0,children:s(m,{variant:"outline",className:P("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e(F,{className:"mr-2 h-4 w-4"}),a?C(a,"PPP"):e("span",{children:"Pick a date"})]})}),e(L,{className:"w-auto p-0",align:"start",children:e(S,{mode:"single",selected:a,onSelect:g,disabled:o=>t?o<t:!1,initialFocus:!0})})]})]})]}),s("div",{className:"space-y-2",children:[e(p,{children:"Leave Type"}),e(I,{options:["Full Day","Morning","Afternoon"],value:d,onChange:w,disabled:[!1,b,b]})]}),e(m,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),e(E,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var k=async n=>{let i={};return n.forEach((l,u)=>{i[u]=l}),console.log("Leave request submitted:",i),{success:!0,message:`Leave request submitted successfully for ${n.get("duration")}`}};export{Q as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as m}from"./chunk-JHLO57EI.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as g,useCallback as w}from"react";import{AnimatePresence as x,motion as y}from"framer-motion";import{jsx as t,jsxs as N}from"react/jsx-runtime";var W=p=>{let[l,a]=h(0),{blocks:n}=p,f=n&&Array.isArray(n)&&n.length>0,b=e=>{console.log("sectionId",e),console.log("block",n[e]),a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=w(((e,o)=>{let d;return(...v)=>{clearTimeout(d),d=setTimeout(()=>e(...v),o)}})(e=>{e.deltaY>0?i():s()},300),[]),u=e=>{e.key==="ArrowDown"?i():e.key==="ArrowUp"&&s()};return g(()=>(window.addEventListener("wheel",c),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",c),window.removeEventListener("keydown",u)}),[]),N("div",{className:"flex h-screen relative",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:f&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${l===o?"bg-accent":"bg-gray-300"}`,onClick:()=>b(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),n.map((e,o)=>t("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${o===l?"opacity-100":"opacity-0"}`,children:t(m,{blocks:[e]})},o)),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:i,children:t(k,{})})]})},k=()=>t(x,{children:t(y.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:r("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:t(y.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:r("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});export{W as a};
4
+ import{a as m}from"./chunk-FF5RGGCG.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as g,useCallback as w}from"react";import{AnimatePresence as x,motion as y}from"framer-motion";import{jsx as t,jsxs as N}from"react/jsx-runtime";var W=p=>{let[l,a]=h(0),{blocks:n}=p,f=n&&Array.isArray(n)&&n.length>0,b=e=>{console.log("sectionId",e),console.log("block",n[e]),a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=w(((e,o)=>{let d;return(...v)=>{clearTimeout(d),d=setTimeout(()=>e(...v),o)}})(e=>{e.deltaY>0?i():s()},300),[]),u=e=>{e.key==="ArrowDown"?i():e.key==="ArrowUp"&&s()};return g(()=>(window.addEventListener("wheel",c),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",c),window.removeEventListener("keydown",u)}),[]),N("div",{className:"flex h-screen relative",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:f&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${l===o?"bg-accent":"bg-gray-300"}`,onClick:()=>b(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),n.map((e,o)=>t("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${o===l?"opacity-100":"opacity-0"}`,children:t(m,{blocks:[e]})},o)),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:i,children:t(k,{})})]})},k=()=>t(x,{children:t(y.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:r("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:t(y.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:r("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});export{W as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{e as c}from"./chunk-6AARBDPJ.mjs";import{a as o}from"./chunk-NWW7KWJK.mjs";import{a as s}from"./chunk-QRNJ7O2L.mjs";import p from"next/image";import{jsx as e,jsxs as a}from"react/jsx-runtime";var y=({links:r,media:t,children:l,richText:i})=>a("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[e("div",{className:"container mb-8 z-10 relative flex items-end justify-center",children:a("div",{className:"text-center",children:[l||i&&e(c,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:i,enableGutter:!1}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:m},n)=>e("li",{children:e(o,{...m})},n))})]})}),a("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&e("div",{children:e(p,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),e("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});export{y as a};
4
+ import{e as c}from"./chunk-OCZTJKMQ.mjs";import{a as o}from"./chunk-NWW7KWJK.mjs";import{a as s}from"./chunk-ICTOXY7D.mjs";import p from"next/image";import{jsx as e,jsxs as a}from"react/jsx-runtime";var y=({links:r,media:t,children:l,richText:i})=>a("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[e("div",{className:"container mb-8 z-10 relative flex items-end justify-center",children:a("div",{className:"text-center",children:[l||i&&e(c,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:i,enableGutter:!1}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:m},n)=>e("li",{children:e(o,{...m})},n))})]})}),a("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&e("div",{children:e(p,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),e("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});export{y as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as v}from"./chunk-RMI4G7HJ.mjs";import{a as p}from"./chunk-IK2XCY2B.mjs";import{a as u}from"./chunk-BXBLKTRB.mjs";import{a as g}from"./chunk-ZGOBG76E.mjs";import{useState as h}from"react";import{ChevronDown as x}from"lucide-react";import{CalendarDays as L,Grid as w,PlusCircle as C,CheckSquare as q}from"lucide-react";import{jsx as r,jsxs as i}from"react/jsx-runtime";function y(...n){return n.filter(Boolean).join(" ")}function M({holidays:n,currentDate:o,leaveApprovals:f,employees:b,userGrade:t,setCurrentDate:m=async()=>({success:!0}),submitLeaveRequest:l}){let[a,c]=h("Calendar View"),D=!1,N={id:"manager1",firstName:"Manager",lastName:"User",grade:"manager",remainingLeaveDays:20};if(D)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let s=N,d=[{name:"Grid View",icon:w,current:a==="Grid View"},{name:"Calendar View",icon:L,current:a==="Calendar View"},{name:"Request Leave",icon:C,current:a==="Request Leave"},{name:"Approve Leave",icon:q,current:a==="Approve Leave"}];return i("div",{className:"container mx-auto p-4",children:[r("h1",{className:"text-3xl font-bold mb-4",children:"Holiday Tracker"}),i("div",{className:"mb-8",children:[i("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>c(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:d.map(e=>r("option",{children:e.name},e.name))}),r(x,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:d.map(e=>i("a",{onClick:()=>{(e.name!=="Approve Leave"||t==="Manager"||t==="Senior Manager"||t==="Partner")&&c(e.name)},className:y(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&t!=="Manager"&&t!=="Senior Manager"&&t!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:y(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(v,{currentDate:o,setCurrentDate:m,holidays:n,employees:b}),a==="Calendar View"&&r(g,{currentDate:o,setCurrentDate:m,holidays:n}),a==="Request Leave"&&r(p,{userId:s.id,userName:`${s.firstName} ${s.lastName}`,remainingDays:s.remainingLeaveDays,submitLeaveRequest:e=>l?l(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(u,{leaveRequests:f,onApprove:()=>{},onReject:()=>{}})]})}export{M as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-IB72MBM7.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var c=s=>{let{posts:r}=s;return o("div",{className:i("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:r==null?void 0:r.map((a,t)=>typeof a=="object"&&a!==null?o("div",{className:"col-span-4",children:o(p,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},t):null)})})})};export{c as a};
1
+ import{a as p}from"./chunk-423OEU3K.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var c=s=>{let{posts:r}=s;return o("div",{className:i("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:r==null?void 0:r.map((a,t)=>typeof a=="object"&&a!==null?o("div",{className:"col-span-4",children:o(p,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},t):null)})})})};export{c as a};
@@ -1 +1 @@
1
- import{i as x,j as v,k as C,l as P,m as S,n as R,o as w}from"./chunk-O5BAW5XQ.mjs";import{a as u}from"./chunk-NWW7KWJK.mjs";import{a as b}from"./chunk-ODLDYXPZ.mjs";import{a as k}from"./chunk-763KMQIQ.mjs";import{a as n}from"./chunk-NIQ4466A.mjs";import{jsx as m,jsxs as F}from"react/jsx-runtime";var g=({links:s,richText:e})=>m("div",{className:"container",children:F("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(p,{className:"mb-0",content:e,enableGutter:!1})}),m("div",{className:"flex flex-col gap-8",children:(s||[]).map(({link:t},i)=>m(u,{size:"lg",...t},i))})]})});import{jsx as c,jsxs as d}from"react/jsx-runtime";var N=({title:s,description:e,features:t,id:i})=>d("section",{className:n("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[s&&c("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:i||"",children:s}),e&&typeof e=="string"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:c(p,{content:e,enableGutter:!1})}),c("div",{className:`grid gap-8 mt-10 md:grid-cols-${t?t.length:1}`,children:t&&t.map((l,r)=>{let o=d("div",{className:"flex flex-col gap-4",children:[c("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:c("i",{className:`${l.icon.type} fa-${l.icon.icon} fa-4x`})}),c("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:l.title}),l.content&&typeof l.content!="object"&&c("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:l.content}}),l.content&&typeof l.content=="object"&&c("div",{className:"text-lg opacity-80",children:c(p,{content:l.content,enableGutter:!1})})]},r);return l.link?c("a",{href:l.link.url?l.link.url:"#",className:"no-underline group",children:o},r):o})})]});import I,{Fragment as z}from"react";import{jsx as a}from"react/jsx-runtime";function f({nodes:s}){return a(z,{children:s==null?void 0:s.map((e,t)=>{if(e==null)return null;if(e.type==="text"){let r=a(I.Fragment,{children:e.text},t);return e.format&1&&(r=a("strong",{children:r},t)),e.format&2&&(r=a("em",{children:r},t)),e.format&4&&(r=a("span",{style:{textDecoration:"line-through"},children:r},t)),e.format&8&&(r=a("span",{style:{textDecoration:"underline"},children:r},t)),e.format&16&&(r=a("code",{children:e.text},t)),e.format&32&&(r=a("sub",{children:r},t)),e.format&64&&(r=a("sup",{children:r},t)),r}if(e.type==="table")return a("table",{children:a("tbody",{children:e.children.map((r,o)=>a("tr",{children:r.children.map((T,h)=>a("td",{children:f({nodes:T.children})},h))},o))})},t);let i=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 f({nodes:r.children})},l="children"in e?i(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 a(g,{...r},t);case"mediaBlock":return a(b,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"banner":return a(B,{className:"col-start-2 mb-4",...r},t);case"code":return a(k,{className:"col-start-2",...r},t);case"features":return a(N,{...r},t);default:return null}}else switch(e.type){case"linebreak":return a("br",{className:"col-start-2"},t);case"paragraph":return a("p",{className:"col-start-2",children:l},t);case"heading":{let r=e==null?void 0:e.tag;return a(r,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:l},t)}case"list":{let r=e==null?void 0:e.tag;return a(r,{className:"list col-start-2",children:l},t)}case"listitem":return(e==null?void 0:e.checked)!=null?a("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},t):a("li",{value:e==null?void 0:e.value,children:l},t);case"quote":return a("blockquote",{className:"col-start-2",children:l},t);case"link":{let r=e.fields;return a(u,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},t)}default:return null}})})}import{jsx as A}from"react/jsx-runtime";var p=({className:s,content:e,enableGutter:t=!0,enableProse:i=!0})=>{var l;return e?A("div",{className:n({"container ":t,"max-w-none":!t,"mx-auto prose dark:prose-invert ":i},s),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&f({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null};import{jsx as y}from"react/jsx-runtime";var B=({className:s,content:e,style:t})=>y("div",{className:n("mx-auto my-8 w-full",s),children:y("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":t==="info","border-error bg-error/30":t==="error","border-success bg-success/30":t==="success","border-warning bg-warning/30":t==="warning"}),children:y(p,{content:e,enableGutter:!1,enableProse:!1})})});export{B as a,g as b,N as c,f as d,p as e};
1
+ import{i as x,j as v,k as C,l as P,m as S,n as R,o as w}from"./chunk-O5BAW5XQ.mjs";import{a as u}from"./chunk-NWW7KWJK.mjs";import{a as b}from"./chunk-UK4IPFAO.mjs";import{a as k}from"./chunk-763KMQIQ.mjs";import{a as n}from"./chunk-NIQ4466A.mjs";import{jsx as m,jsxs as F}from"react/jsx-runtime";var g=({links:s,richText:e})=>m("div",{className:"container",children:F("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(p,{className:"mb-0",content:e,enableGutter:!1})}),m("div",{className:"flex flex-col gap-8",children:(s||[]).map(({link:t},i)=>m(u,{size:"lg",...t},i))})]})});import{jsx as c,jsxs as d}from"react/jsx-runtime";var N=({title:s,description:e,features:t,id:i})=>d("section",{className:n("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[s&&c("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:i||"",children:s}),e&&typeof e=="string"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:c(p,{content:e,enableGutter:!1})}),c("div",{className:`grid gap-8 mt-10 md:grid-cols-${t?t.length:1}`,children:t&&t.map((l,r)=>{let o=d("div",{className:"flex flex-col gap-4",children:[c("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:c("i",{className:`${l.icon.type} fa-${l.icon.icon} fa-4x`})}),c("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:l.title}),l.content&&typeof l.content!="object"&&c("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:l.content}}),l.content&&typeof l.content=="object"&&c("div",{className:"text-lg opacity-80",children:c(p,{content:l.content,enableGutter:!1})})]},r);return l.link?c("a",{href:l.link.url?l.link.url:"#",className:"no-underline group",children:o},r):o})})]});import I,{Fragment as z}from"react";import{jsx as a}from"react/jsx-runtime";function f({nodes:s}){return a(z,{children:s==null?void 0:s.map((e,t)=>{if(e==null)return null;if(e.type==="text"){let r=a(I.Fragment,{children:e.text},t);return e.format&1&&(r=a("strong",{children:r},t)),e.format&2&&(r=a("em",{children:r},t)),e.format&4&&(r=a("span",{style:{textDecoration:"line-through"},children:r},t)),e.format&8&&(r=a("span",{style:{textDecoration:"underline"},children:r},t)),e.format&16&&(r=a("code",{children:e.text},t)),e.format&32&&(r=a("sub",{children:r},t)),e.format&64&&(r=a("sup",{children:r},t)),r}if(e.type==="table")return a("table",{children:a("tbody",{children:e.children.map((r,o)=>a("tr",{children:r.children.map((T,h)=>a("td",{children:f({nodes:T.children})},h))},o))})},t);let i=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 f({nodes:r.children})},l="children"in e?i(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 a(g,{...r},t);case"mediaBlock":return a(b,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"banner":return a(B,{className:"col-start-2 mb-4",...r},t);case"code":return a(k,{className:"col-start-2",...r},t);case"features":return a(N,{...r},t);default:return null}}else switch(e.type){case"linebreak":return a("br",{className:"col-start-2"},t);case"paragraph":return a("p",{className:"col-start-2",children:l},t);case"heading":{let r=e==null?void 0:e.tag;return a(r,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:l},t)}case"list":{let r=e==null?void 0:e.tag;return a(r,{className:"list col-start-2",children:l},t)}case"listitem":return(e==null?void 0:e.checked)!=null?a("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},t):a("li",{value:e==null?void 0:e.value,children:l},t);case"quote":return a("blockquote",{className:"col-start-2",children:l},t);case"link":{let r=e.fields;return a(u,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},t)}default:return null}})})}import{jsx as A}from"react/jsx-runtime";var p=({className:s,content:e,enableGutter:t=!0,enableProse:i=!0})=>{var l;return e?A("div",{className:n({"container ":t,"max-w-none":!t,"mx-auto prose dark:prose-invert ":i},s),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&f({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null};import{jsx as y}from"react/jsx-runtime";var B=({className:s,content:e,style:t})=>y("div",{className:n("mx-auto my-8 w-full",s),children:y("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":t==="info","border-error bg-error/30":t==="error","border-success bg-success/30":t==="success","border-warning bg-warning/30":t==="warning"}),children:y(p,{content:e,enableGutter:!1,enableProse:!1})})});export{B as a,g as b,N as c,f as d,p as e};