cortex-react-components 1.47.0 → 1.48.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 (174) hide show
  1. package/dist/{chunk-423OEU3K.mjs → chunk-23EQTK7B.mjs} +1 -1
  2. package/dist/{chunk-5BPR3YKT.mjs → chunk-35XLNF3G.mjs} +1 -1
  3. package/dist/{chunk-W6VKKBUG.mjs → chunk-4GX7CE6Y.mjs} +1 -1
  4. package/dist/{chunk-ENDXPA4H.mjs → chunk-4NYS3NVA.mjs} +1 -1
  5. package/dist/chunk-5F7XZ6XK.mjs +1 -0
  6. package/dist/{chunk-KB6PO4K4.mjs → chunk-5YTDIEDJ.mjs} +1 -1
  7. package/dist/{chunk-H5DKU4M5.mjs → chunk-6KJKKF7P.mjs} +1 -1
  8. package/dist/chunk-74KJ5V34.mjs +1 -0
  9. package/dist/{chunk-DLCGGIZW.mjs → chunk-7FMMXR7S.mjs} +1 -1
  10. package/dist/chunk-7FR5BXX2.mjs +1 -0
  11. package/dist/{chunk-SBAFXZVU.mjs → chunk-AAI2VZST.mjs} +1 -1
  12. package/dist/{chunk-UDH5ASIW.mjs → chunk-ABQMNGD4.mjs} +1 -1
  13. package/dist/{chunk-DIPGFDJV.mjs → chunk-ATONX5RA.mjs} +1 -1
  14. package/dist/{chunk-Z5PNO5CB.mjs → chunk-B7DV5BIM.mjs} +1 -1
  15. package/dist/{chunk-QCIJUDO4.mjs → chunk-BI3AMPYD.mjs} +1 -1
  16. package/dist/{chunk-7SSOLQR5.mjs → chunk-BWT2MAIT.mjs} +1 -1
  17. package/dist/{chunk-HFSHDEMQ.mjs → chunk-E2LKSCDR.mjs} +1 -1
  18. package/dist/{chunk-5EFOKBKA.mjs → chunk-EQDX6HFN.mjs} +1 -1
  19. package/dist/{chunk-KVIQW2PH.mjs → chunk-EQFBRT7L.mjs} +1 -1
  20. package/dist/{chunk-O7R6EGBU.mjs → chunk-ETZFHPXX.mjs} +1 -1
  21. package/dist/{chunk-IJU5INGM.mjs → chunk-FR65RGJD.mjs} +1 -1
  22. package/dist/{chunk-SEG6IDDX.mjs → chunk-G5HD4IFA.mjs} +1 -1
  23. package/dist/{chunk-ECOVEIOV.mjs → chunk-I3JB7SE2.mjs} +1 -1
  24. package/dist/{chunk-XGKZLSIS.mjs → chunk-I5EBXVLE.mjs} +1 -1
  25. package/dist/{chunk-MY3PX5GI.mjs → chunk-IQ7LAP7P.mjs} +1 -1
  26. package/dist/{chunk-PY53YVFX.mjs → chunk-KEUZSK3N.mjs} +1 -1
  27. package/dist/{chunk-TGHOEITH.mjs → chunk-KTVHPTON.mjs} +1 -1
  28. package/dist/{chunk-US6CSL53.mjs → chunk-LIAT3JG5.mjs} +1 -1
  29. package/dist/{chunk-3ODCIQYB.mjs → chunk-MLLI6A3T.mjs} +1 -1
  30. package/dist/{chunk-ICTOXY7D.mjs → chunk-NGK3IDFP.mjs} +1 -1
  31. package/dist/{chunk-ZLEW2CSB.mjs → chunk-NRE4HHK7.mjs} +1 -1
  32. package/dist/{chunk-UK4IPFAO.mjs → chunk-PVRWMAHW.mjs} +1 -1
  33. package/dist/{chunk-UMILL4LR.mjs → chunk-QO2Z7WXW.mjs} +1 -1
  34. package/dist/{chunk-HHUI6PDP.mjs → chunk-QZA2ZGA2.mjs} +1 -1
  35. package/dist/{chunk-GT43S672.mjs → chunk-TUQRCNY6.mjs} +1 -1
  36. package/dist/{chunk-MANZDSTF.mjs → chunk-UD7JYMRU.mjs} +1 -1
  37. package/dist/{chunk-HUN2X4VH.mjs → chunk-Y6CZVVJF.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/CallToAction.stories.js +1 -1
  43. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  44. package/dist/components/Blocks/Content.js +1 -1
  45. package/dist/components/Blocks/Content.mjs +1 -1
  46. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  47. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  48. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  49. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  50. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  51. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  52. package/dist/components/Blocks/RelatedPosts.js +1 -1
  53. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  54. package/dist/components/Blocks/RenderBlocks.js +1 -1
  55. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  56. package/dist/components/Blocks/ReusableContent.js +1 -1
  57. package/dist/components/Blocks/ReusableContent.mjs +1 -1
  58. package/dist/components/Blocks/index.js +1 -1
  59. package/dist/components/Blocks/index.mjs +1 -1
  60. package/dist/components/CRM/DealDetails.mjs +1 -1
  61. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  62. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  63. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  64. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  65. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  66. package/dist/components/CRM/NewDealForm.mjs +1 -1
  67. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  68. package/dist/components/CRM/index.mjs +1 -1
  69. package/dist/components/Cards/ContentCard.js +1 -1
  70. package/dist/components/Cards/ContentCard.mjs +1 -1
  71. package/dist/components/Cards/ContentCard.stories.js +1 -1
  72. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  73. package/dist/components/Cards/index.js +4 -4
  74. package/dist/components/Cards/index.mjs +1 -1
  75. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  76. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  77. package/dist/components/Heros/HighImpact/index.js +1 -1
  78. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  79. package/dist/components/Heros/LowImpact/index.js +1 -1
  80. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  81. package/dist/components/Heros/MediumImpact/index.js +1 -1
  82. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  83. package/dist/components/Heros/PostHero/index.mjs +1 -1
  84. package/dist/components/Heros/RenderHero.js +1 -1
  85. package/dist/components/Heros/RenderHero.mjs +1 -1
  86. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  87. package/dist/components/Heros/index.js +1 -1
  88. package/dist/components/Heros/index.mjs +1 -1
  89. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  90. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  91. package/dist/components/Holidays/index.mjs +1 -1
  92. package/dist/components/Layouts/BlogList.js +3 -3
  93. package/dist/components/Layouts/BlogList.mjs +1 -1
  94. package/dist/components/Layouts/BlogList.stories.js +3 -3
  95. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  96. package/dist/components/Layouts/SlideShow.js +1 -1
  97. package/dist/components/Layouts/SlideShow.mjs +1 -1
  98. package/dist/components/Layouts/SlideShow.stories.js +1 -1
  99. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  100. package/dist/components/Layouts/index.js +3 -3
  101. package/dist/components/Layouts/index.mjs +1 -1
  102. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  103. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  104. package/dist/components/Menus/SidebarRight.mjs +1 -1
  105. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  106. package/dist/components/Menus/index.mjs +1 -1
  107. package/dist/components/Payload/Card/index.mjs +1 -1
  108. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  109. package/dist/components/Payload/Media/index.mjs +1 -1
  110. package/dist/components/Payload/RichText/index.js +1 -1
  111. package/dist/components/Payload/RichText/index.mjs +1 -1
  112. package/dist/components/Payload/RichText/serialize.js +1 -1
  113. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  114. package/dist/components/Payload/RichText.stories.js +1 -1
  115. package/dist/components/Payload/RichText.stories.mjs +1 -1
  116. package/dist/components/Payload/index.js +1 -1
  117. package/dist/components/Payload/index.mjs +1 -1
  118. package/dist/components/index.js +6 -6
  119. package/dist/components/index.mjs +1 -1
  120. package/dist/components/ui/index.mjs +1 -1
  121. package/dist/components/ui/sidebar.mjs +1 -1
  122. package/dist/index.js +7 -7
  123. package/dist/index.mjs +1 -1
  124. package/dist/metafile-cjs.json +1 -1
  125. package/dist/metafile-esm.json +1 -1
  126. package/dist/pages/Blog.js +1 -1
  127. package/dist/pages/Blog.mjs +1 -1
  128. package/dist/pages/Blog.stories.js +1 -1
  129. package/dist/pages/Blog.stories.mjs +1 -1
  130. package/dist/pages/Documentation.mjs +1 -1
  131. package/dist/pages/Documentation.stories.mjs +1 -1
  132. package/dist/pages/IndexPage.mjs +1 -1
  133. package/dist/pages/IndexPage.stories.mjs +1 -1
  134. package/dist/pages/Intranet.mjs +1 -1
  135. package/dist/pages/Intranet.stories.mjs +1 -1
  136. package/dist/pages/LandingPage.mjs +1 -1
  137. package/dist/pages/LandingPage.stories.mjs +1 -1
  138. package/dist/pages/Page.js +1 -1
  139. package/dist/pages/Page.mjs +1 -1
  140. package/dist/pages/Page.stories.js +186 -186
  141. package/dist/pages/Page.stories.mjs +1 -1
  142. package/dist/pages/Publish.js +1 -1
  143. package/dist/pages/Publish.mjs +1 -1
  144. package/dist/pages/Publish.stories.js +1 -1
  145. package/dist/pages/Publish.stories.mjs +1 -1
  146. package/dist/pages/Website.js +1 -1
  147. package/dist/pages/Website.mjs +1 -1
  148. package/dist/pages/Website.stories.js +2 -2
  149. package/dist/pages/Website.stories.mjs +1 -1
  150. package/dist/sections/AboutSection.js +1 -1
  151. package/dist/sections/AboutSection.mjs +1 -1
  152. package/dist/sections/AboutSection.stories.js +1 -1
  153. package/dist/sections/AboutSection.stories.mjs +1 -1
  154. package/dist/sections/BlogDetail.js +1 -1
  155. package/dist/sections/BlogDetail.mjs +1 -1
  156. package/dist/sections/BlogDetail.stories.js +1 -1
  157. package/dist/sections/BlogDetail.stories.mjs +1 -1
  158. package/dist/sections/BlogListSection.mjs +1 -1
  159. package/dist/sections/BlogListSection.stories.mjs +1 -1
  160. package/dist/sections/ContactSection.js +1 -1
  161. package/dist/sections/ContactSection.mjs +1 -1
  162. package/dist/sections/ContactSection.stories.js +1 -1
  163. package/dist/sections/ContactSection.stories.mjs +1 -1
  164. package/dist/sections/ImageSection.stories.js +1 -1
  165. package/dist/sections/ImageSection.stories.mjs +1 -1
  166. package/dist/sections/PricingSection.js +1 -1
  167. package/dist/sections/PricingSection.mjs +1 -1
  168. package/dist/sections/PricingSection.stories.js +1 -1
  169. package/dist/sections/PricingSection.stories.mjs +1 -1
  170. package/dist/sections/form/index.mjs +1 -1
  171. package/dist/sections/index.js +1 -1
  172. package/dist/sections/index.mjs +1 -1
  173. package/package.json +1 -1
  174. package/dist/chunk-G6K3PK47.mjs +0 -1
@@ -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-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};
4
+ import{a as p}from"./chunk-6P7CY367.mjs";import{a as d}from"./chunk-NGK3IDFP.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{a as o}from"./chunk-ENDXPA4H.mjs";import{a as e}from"./chunk-NSBNDXRL.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-4NYS3NVA.mjs";import{a as e}from"./chunk-NSBNDXRL.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 +1 @@
1
- import{a as s}from"./chunk-IJU5INGM.mjs";import{a as l}from"./chunk-UDH5ASIW.mjs";import{a as c}from"./chunk-ZLEW2CSB.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import b from"next/image";import{ChevronRightIcon as u,HomeIcon as g}from"@heroicons/react/20/solid";import{Fragment as x,jsx as t,jsxs as i}from"react/jsx-runtime";var h={highImpact:s,lowImpact:l,mediumImpact:c,sectionHero:m},k=a=>{let{type:r}=a||{};if(!r||r==="none")return null;let e=h[r];return e?t(e,{...a}):null};function f({breadcrumbItems:a}){if(a&&a.length>0){let r=a.filter(e=>e.label.toLowerCase()!=="home");return t("nav",{"aria-label":"Breadcrumb",className:"flex",children:i("ol",{role:"list",className:"flex items-center space-x-4",children:[t("li",{children:t("div",{children:i("a",{href:"/",className:"text-foreground hover:text-accent",children:[t(g,{"aria-hidden":"true",className:"size-5 shrink-0"}),t("span",{className:"sr-only",children:"Home"})]})})}),r.map((e,p)=>t("li",{children:i("div",{className:"flex items-center",children:[t(u,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),e.href?t("a",{href:e.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label}):t("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label})]})},p))]})})}return t(x,{})}import{jsx as o,jsxs as d}from"react/jsx-runtime";function m({title:a,breadcrumbItems:r,image:e}){return d("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[o("div",{className:"absolute inset-0 z-0",children:e&&o(b,{priority:!0,src:e.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),o("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),o(n,{children:d("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[o("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:a}),r&&r.length>0&&o(f,{breadcrumbItems:r})]})})]})}export{m as a,k as b,f as c};
1
+ import{a as l}from"./chunk-ABQMNGD4.mjs";import{a as s}from"./chunk-FR65RGJD.mjs";import{a as c}from"./chunk-NRE4HHK7.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import b from"next/image";import{ChevronRightIcon as u,HomeIcon as g}from"@heroicons/react/20/solid";import{Fragment as x,jsx as t,jsxs as i}from"react/jsx-runtime";var h={highImpact:s,lowImpact:l,mediumImpact:c,sectionHero:m},k=a=>{let{type:r}=a||{};if(!r||r==="none")return null;let e=h[r];return e?t(e,{...a}):null};function f({breadcrumbItems:a}){if(a&&a.length>0){let r=a.filter(e=>e.label.toLowerCase()!=="home");return t("nav",{"aria-label":"Breadcrumb",className:"flex",children:i("ol",{role:"list",className:"flex items-center space-x-4",children:[t("li",{children:t("div",{children:i("a",{href:"/",className:"text-foreground hover:text-accent",children:[t(g,{"aria-hidden":"true",className:"size-5 shrink-0"}),t("span",{className:"sr-only",children:"Home"})]})})}),r.map((e,p)=>t("li",{children:i("div",{className:"flex items-center",children:[t(u,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),e.href?t("a",{href:e.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label}):t("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label})]})},p))]})})}return t(x,{})}import{jsx as o,jsxs as d}from"react/jsx-runtime";function m({title:a,breadcrumbItems:r,image:e}){return d("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[o("div",{className:"absolute inset-0 z-0",children:e&&o(b,{priority:!0,src:e.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),o("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),o(n,{children:d("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[o("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:a}),r&&r.length>0&&o(f,{breadcrumbItems:r})]})})]})}export{m as a,k as b,f as c};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{e as m}from"./chunk-G6K3PK47.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as w,useCallback as g}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=>{a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=g(((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 w(()=>(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 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{b as m}from"./chunk-5F7XZ6XK.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as w,useCallback as g}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=>{a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=g(((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 w(()=>(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 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};
@@ -0,0 +1 @@
1
+ import{a as b}from"./chunk-74KJ5V34.mjs";import{b as u,c as d}from"./chunk-7FR5BXX2.mjs";import{a as l}from"./chunk-PVRWMAHW.mjs";import{a}from"./chunk-NIQ4466A.mjs";import v from"next/image";import{jsx as n,jsxs as y}from"react/jsx-runtime";var k={content:b,cta:u,mediaBlock:l,imageBlock:l,features:d,reusableContentBlock:p},f=s=>{let{blocks:e}=s;return e&&Array.isArray(e)&&e.length>0?n("section",{id:"render-blocks",children:e.map((t,c)=>{var m;let{blockType:r}=t,i=t==null?void 0:t.theme;if(r&&r in k){let g=k[r];if(g)return y("div",{className:"py-6 relative",children:[n(h,{block:t,index:c}),n("div",{className:a("container",((m=i==null?void 0:i.settings)==null?void 0:m.theme)==="dark"?"dark":""),children:n(g,{...t})})]},c)}return null})}):null},h=s=>{var o;if(!("theme"in s.block))return null;let e=(o=s.block)==null?void 0:o.theme;if(e.settings.background==="image"){let t={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return y("div",{className:a("absolute inset-0 w-full h-full -z-10",e.settings.theme==="dark"?"dark bg-background":""),children:[n(v,{src:e.settings.image.url||"/placeholder.svg",alt:e.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&n("div",{className:"absolute inset-0",style:{background:t.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return n("div",{className:a("absolute inset-0 -z-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":"")})};import{Fragment as B,jsx as C}from"react/jsx-runtime";var p=s=>{let{customId:e,reusableContent:o}=s;return typeof o=="object"&&o!==null?C(f,{blocks:o.layout}):C(B,{})};export{p as a,f as b};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as N}from"./chunk-Y5VTKEKS.mjs";import{a as E,f as T}from"./chunk-CGBVZQYY.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as M}from"./chunk-QOIH63J3.mjs";import{a as I,b as H,c as P,d as B}from"./chunk-OAOCXXC2.mjs";import{b as L}from"./chunk-BDX257W2.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};
4
+ import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as N}from"./chunk-Y5VTKEKS.mjs";import{a as E,f as T}from"./chunk-CGBVZQYY.mjs";import{a as M}from"./chunk-QOIH63J3.mjs";import{a as I,b as H,c as P,d as B}from"./chunk-OAOCXXC2.mjs";import{b as L}from"./chunk-BDX257W2.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 @@
1
- import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-EZVA3JCM.mjs";import{b as r}from"./chunk-W6VKKBUG.mjs";import{e as n}from"./chunk-G6K3PK47.mjs";import{a as i}from"./chunk-GHBJK554.mjs";import{a as o}from"./chunk-NSBNDXRL.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-EZVA3JCM.mjs";import{b as r}from"./chunk-4GX7CE6Y.mjs";import{b as n}from"./chunk-5F7XZ6XK.mjs";import{a as i}from"./chunk-GHBJK554.mjs";import{a as o}from"./chunk-NSBNDXRL.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};
@@ -0,0 +1 @@
1
+ import{e as c}from"./chunk-7FR5BXX2.mjs";import{a as s}from"./chunk-44VMK4FL.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as y}from"./chunk-2MC5DSC7.mjs";import{a as f}from"./chunk-ITZ5HFK6.mjs";import{a as v}from"./chunk-NLFCSX3M.mjs";import{a as p}from"./chunk-MNDA6BQL.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as A,CheckSquare as k}from"lucide-react";import{useRouter as M}from"next/navigation";import{format as T,parseISO as V}from"date-fns";import{jsx as r,jsxs as n}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:t,currentDate:D,leaveApprovals:h,employees:x,submitLeaveRequest:i,approveLeave:o,rejectLeave:d}){let[a,m]=N("Calendar View"),w=M(),L=!1,u=V(D),c=async e=>{let C=T(e,"dd-MM-yyyy"),g=new URL(window.location.href);return g.searchParams.set("date",C),w.push(g.toString()),{success:!0}};if(L)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 l=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:A,current:a==="Request Leave"},{name:"Approve Leave",icon:k,current:a==="Approve Leave"}];return n("div",{className:"container fixed mx-auto p-4",children:[n("div",{className:"mb-8",children:[n("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>m(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:l.map(e=>r("option",{children:e.name},e.name))}),r(q,{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:l.map(e=>n("a",{onClick:()=>{(e.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="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:b(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(f,{currentDate:u,setCurrentDate:c,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:u,setCurrentDate:c,holidays:s}),a==="Request Leave"&&r(v,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:e=>i?i(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(p,{leaveRequests:h,onApprove:e=>o?o(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>d?d(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
4
+ import{a as f}from"./chunk-ITZ5HFK6.mjs";import{a as v}from"./chunk-NLFCSX3M.mjs";import{a as p}from"./chunk-MNDA6BQL.mjs";import{a as y}from"./chunk-2MC5DSC7.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as A,CheckSquare as k}from"lucide-react";import{useRouter as M}from"next/navigation";import{format as T,parseISO as V}from"date-fns";import{jsx as r,jsxs as n}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:t,currentDate:D,leaveApprovals:h,employees:x,submitLeaveRequest:i,approveLeave:o,rejectLeave:d}){let[a,m]=N("Calendar View"),w=M(),L=!1,u=V(D),c=async e=>{let C=T(e,"dd-MM-yyyy"),g=new URL(window.location.href);return g.searchParams.set("date",C),w.push(g.toString()),{success:!0}};if(L)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 l=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:A,current:a==="Request Leave"},{name:"Approve Leave",icon:k,current:a==="Approve Leave"}];return n("div",{className:"container fixed mx-auto p-4",children:[n("div",{className:"mb-8",children:[n("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>m(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:l.map(e=>r("option",{children:e.name},e.name))}),r(q,{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:l.map(e=>n("a",{onClick:()=>{(e.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="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:b(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(f,{currentDate:u,setCurrentDate:c,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:u,setCurrentDate:c,holidays:s}),a==="Request Leave"&&r(v,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:e=>i?i(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(p,{leaveRequests:h,onApprove:e=>o?o(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>d?d(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
@@ -0,0 +1 @@
1
+ import{i as A,j as D,k as z,l as H,m as E,n as L,o as M}from"./chunk-O5BAW5XQ.mjs";import{a as f}from"./chunk-44VMK4FL.mjs";import{a as T}from"./chunk-PVRWMAHW.mjs";import{a as v}from"./chunk-Y6CZVVJF.mjs";import{a as C}from"./chunk-2NFKSNJW.mjs";import{b as h}from"./chunk-BDX257W2.mjs";import{a as B}from"./chunk-SFLOMJ2U.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as y,jsxs as _}from"react/jsx-runtime";var P=({links:a,richText:e})=>y("div",{className:"container",children:_("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:[y("div",{className:"max-w-[48rem] flex items-center",children:e&&y(p,{className:"mb-0",content:e,enableGutter:!1})}),y("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:r},m)=>y(f,{size:"lg",...r},m))})]})});import{jsx as c,jsxs as b}from"react/jsx-runtime";function G(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function R({variant:a="light",className:e,icon:r,heading:m,subheading:o,content:t,statistic:s,buttonText:u,buttonHref:d}){return b("div",{className:i("rounded-3xl p-8 md:p-12",{solid:"bg-[#A42368]",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"}[a],a==="light"?"text-gray-900":"text-white",e),children:[b("div",{className:"flex items-center gap-4 mb-6",children:[r&&c("div",{className:i("rounded-full p-0",a==="light"?"text-[#A42368]":"text-white"),children:G(r)?c(B,{type:r.type,iconName:r.iconName,size:"2x"}):r}),c("h2",{className:i("font-semibold",a==="solid"||a==="light"?"text-2xl":"text-4xl"),children:m})]}),a==="solid"&&s&&c("div",{className:"mb-6",children:c("div",{className:"text-[8rem] font-bold leading-none",children:s})}),o&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:o}),t&&typeof t=="object"&&c("div",{className:i("space-y-6",a==="light"?"text-gray-600":"text-gray-300"),children:c(p,{enableGutter:!1,content:t,enableProse:!1,className:i(a==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),t&&typeof t=="string"&&c("div",{className:i("space-y-6",a==="light"?"text-gray-600":"text-gray-300"),children:t}),u&&c("div",{className:"mt-8",children:c(h,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:b("a",{href:d,children:[u,c("span",{className:"ml-2",children:"\u2193"})]})})}),a==="radial"&&c("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}import{jsx as n,jsxs as S}from"react/jsx-runtime";var w=({title:a,description:e,features:r,id:m})=>S("section",{className:i("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&n("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:m||"",children:a}),e&&typeof e=="string"&&n("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&n("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:n(p,{content:e,enableGutter:!1})}),n("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((o,t)=>{var s,u,d,k,x;if(((s=o.settings)==null?void 0:s.contents)==="icon")return n(J,{section:o,index:t},t);{let F=()=>{if(o.icon.type!=="none")return{type:o.icon.type,iconName:o.icon.icon}};return n(R,{variant:((u=o.settings)==null?void 0:u.card)==="default"?"solid":((d=o.settings)==null?void 0:d.card)||"solid",icon:F()||void 0,heading:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,buttonText:(k=o.link)!=null&&k.url?"Find out more":void 0,buttonHref:((x=o.link)==null?void 0:x.url)||void 0},t)}})})]}),J=({section:a,index:e})=>{if(!a)return null;let r=S("div",{className:"flex flex-col gap-4",children:[a.icon&&n("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:n("i",{className:`${a.icon.type} fa-${a.icon.icon} fa-4x`})}),n("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:a.title}),a.content&&typeof a.content!="object"&&n("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:a.content}}),a.content&&typeof a.content=="object"&&n("div",{className:"text-lg opacity-80",children:n(p,{content:a.content,enableGutter:!1})})]},e);return a.link?n("a",{href:a.link.url?a.link.url:"#",className:"no-underline group",children:r},e):r};import U,{Fragment as X}from"react";import{jsx as l}from"react/jsx-runtime";function g({nodes:a}){return l(X,{children:a==null?void 0:a.map((e,r)=>{if(e==null)return null;if(e.type==="text"&&e.text){let t=l(U.Fragment,{children:e.text},r);return e.format&1&&(t=l("strong",{children:t},r)),e.format&2&&(t=l("em",{children:t},r)),e.format&4&&(t=l("span",{style:{textDecoration:"line-through"},children:t},r)),e.format&8&&(t=l("span",{style:{textDecoration:"underline"},children:t},r)),e.format&16&&(t=l("code",{children:e.text},r)),e.format&32&&(t=l("sub",{children:t},r)),e.format&64&&(t=l("sup",{children:t},r)),t}if(e.type==="table")return l("table",{children:l("tbody",{children:e.children.map((t,s)=>l("tr",{children:t.children.map((u,d)=>l("td",{children:g({nodes:u.children})},d))},s))})},r);let m=t=>{if(t.children==null)return null;if((t==null?void 0:t.type)==="list"&&(t==null?void 0:t.listType)==="check")for(let s of t.children)"checked"in s&&(s!=null&&s.checked||(s.checked=!1));return g({nodes:t.children})},o="children"in e?m(e):"";if(e.type==="block"){let t=e.fields,s=t==null?void 0:t.blockType;if(!t||!s)return null;switch(s){case"cta":return l(P,{...t},r);case"mediaBlock":return l(T,{className:"col-start-1 col-span-3",imgClassName:"m-0",...t,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return l(v,{className:"col-start-1 col-span-3",imgClassName:"m-0",...t,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return l(I,{className:"col-start-2 mb-4",...t},r);case"code":return l(C,{className:"col-start-2",...t},r);case"features":return l(w,{...t},r);case"reusableContentBlock":g({nodes:t.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return l("br",{className:"col-start-2"},r);case"paragraph":return l("p",{className:"col-start-2",children:o},r);case"heading":{let t=e==null?void 0:e.tag;return l(t,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:o},r)}case"list":{let t=e==null?void 0:e.tag;return l(t,{className:"list col-start-2",children:o},r)}case"listitem":return(e==null?void 0:e.checked)!=null?l("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:o},r):l("li",{value:e==null?void 0:e.value,children:o},r);case"quote":return l("blockquote",{className:"col-start-2",children:o},r);case"link":{let t=e.fields;return l(f,{newTab:!!(t!=null&&t.newTab),reference:t.doc,type:t.linkType==="internal"?"reference":"custom",url:t.url,children:o},r)}case"autolink":{let t=e.fields;return l(f,{newTab:!!(t!=null&&t.newTab),reference:t.doc,type:t.linkType==="internal"?"reference":"custom",url:t.url,children:o},r)}default:return null}})})}import{jsx as $}from"react/jsx-runtime";var p=({className:a,content:e,enableGutter:r=!0,enableProse:m=!0})=>{var o;return e?$("div",{className:i({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":m},a),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&g({nodes:(o=e==null?void 0:e.root)==null?void 0:o.children})}):null};import{jsx as N}from"react/jsx-runtime";var I=({className:a,content:e,style:r})=>N("div",{className:i("mx-auto my-8 w-full",a),children:N("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:N(p,{content:e,enableGutter:!1,enableProse:!1})})});export{I as a,P as b,w as c,g as d,p as e,R as f};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{c as v,h as w,i as B,j as P,k as T,l as s,m as b,o as u,p as o,q as n,r as p,v as g,w as y,x as M}from"./chunk-KB6PO4K4.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as d,b as c,c as m}from"./chunk-YNCJATT7.mjs";import{a as h}from"./chunk-SFLOMJ2U.mjs";import{PencilLine as z,ChevronDown as x,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as A,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(h,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:N,editorComponent:k,loading:S=!1,editMode:G=!1,onAddDocument:L,onEditDocument:O,onPrintDocument:D,onGithubClick:I,onNavClick:f,LinkComponent:R,...F}){let j=R?t=>e(R,{...t}):f?({item:t,children:r,...l})=>e("button",{onClick:()=>f&&f(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...l,children:r}):t=>e("a",{href:t.href,...t});return a(v,{side:"right",variant:"inset",...F,children:[a(w,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(p,{onClick:L,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),I&&e(n,{children:e(p,{onClick:I,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(p,{onClick:()=>O(),variant:G?"outline":"default",className:$(G&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(p,{onClick:D,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),k&&a(A,{children:[e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Editor Controls",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:k})})]})}),e(P,{className:"mx-0"})]}),a(T,{className:"overflow-auto",children:[S&&a(A,{children:[a(s,{children:[e(b,{children:"Related Content"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(s,{children:[e(b,{children:"Table of Contents"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!S&&Object.keys(i).length>0&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Related Content",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(g,{children:i[t].map(r=>e(y,{children:e(M,{asChild:!0,isActive:!1,size:"sm",children:a(j,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(h,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),N&&!S&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Table of Contents",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:N.map(t=>{var r;return a(n,{children:[e(p,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),(r=t.items)!=null&&r.length?e(g,{children:t.items.map(l=>e(y,{children:e(M,{asChild:!0,isActive:l.isActive,size:"sm",children:e("a",{href:`#${l.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:l.title})})})},l.title))}):null]},t.title)})})})})]})})]}),e(B,{})]})}export{Z as a};
4
+ import{c as v,h as w,i as B,j as P,k as T,l as s,m as b,o as u,p as o,q as n,r as p,v as g,w as y,x as M}from"./chunk-5YTDIEDJ.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as d,b as c,c as m}from"./chunk-YNCJATT7.mjs";import{a as h}from"./chunk-SFLOMJ2U.mjs";import{PencilLine as z,ChevronDown as x,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as A,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(h,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:N,editorComponent:k,loading:S=!1,editMode:G=!1,onAddDocument:L,onEditDocument:O,onPrintDocument:D,onGithubClick:I,onNavClick:f,LinkComponent:R,...F}){let j=R?t=>e(R,{...t}):f?({item:t,children:r,...l})=>e("button",{onClick:()=>f&&f(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...l,children:r}):t=>e("a",{href:t.href,...t});return a(v,{side:"right",variant:"inset",...F,children:[a(w,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(p,{onClick:L,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),I&&e(n,{children:e(p,{onClick:I,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(p,{onClick:()=>O(),variant:G?"outline":"default",className:$(G&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(p,{onClick:D,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),k&&a(A,{children:[e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Editor Controls",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:k})})]})}),e(P,{className:"mx-0"})]}),a(T,{className:"overflow-auto",children:[S&&a(A,{children:[a(s,{children:[e(b,{children:"Related Content"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(s,{children:[e(b,{children:"Table of Contents"}),e(u,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(C,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!S&&Object.keys(i).length>0&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Related Content",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:i&&Object.keys(i).map(t=>a(n,{children:[a("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",t.charAt(0).toUpperCase()+t.slice(1)]}),t&&i[t]&&e(g,{children:i[t].map(r=>e(y,{children:e(M,{asChild:!0,isActive:!1,size:"sm",children:a(j,{href:r.url,item:r,className:"flex justify-between items-center w-full text-xs",children:[e("span",{children:r.label}),r.type==="note"&&e(z,{className:"ml-2 text-gray-400 !important",size:16}),r.type==="draft"&&e(h,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),N&&!S&&e(d,{defaultOpen:!0,className:"group/collapsible",children:a(s,{children:[e(b,{asChild:!0,children:a(c,{children:["Table of Contents",e(x,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(u,{children:e(m,{children:e(o,{children:N.map(t=>{var r;return a(n,{children:[e(p,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),(r=t.items)!=null&&r.length?e(g,{children:t.items.map(l=>e(y,{children:e(M,{asChild:!0,isActive:l.isActive,size:"sm",children:e("a",{href:`#${l.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:l.title})})})},l.title))}):null]},t.title)})})})})]})})]}),e(B,{})]})}export{Z as a};
@@ -1 +1 @@
1
- import{h as r}from"./chunk-G6K3PK47.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
1
+ import{e as r}from"./chunk-7FR5BXX2.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-IQPZEEYJ.mjs";import{a}from"./chunk-H7D3PZKE.mjs";import{a as s}from"./chunk-Y2KKUQDU.mjs";import{a as o}from"./chunk-VZXLXNVY.mjs";import{a as d}from"./chunk-DRJBYVJB.mjs";import{Fragment as p,jsx as e,jsxs as l}from"react/jsx-runtime";function x({...t}){return e(p,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(d,{...t.header}),e(m,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{x as a};
1
+ import{a}from"./chunk-H7D3PZKE.mjs";import{a as m}from"./chunk-IQPZEEYJ.mjs";import{a as s}from"./chunk-Y2KKUQDU.mjs";import{a as o}from"./chunk-VZXLXNVY.mjs";import{a as d}from"./chunk-DRJBYVJB.mjs";import{Fragment as p,jsx as e,jsxs as l}from"react/jsx-runtime";function x({...t}){return e(p,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(d,{...t.header}),e(m,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{x 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 l}from"./chunk-IJU5INGM.mjs";import{a as u}from"./chunk-UDH5ASIW.mjs";import{a as p}from"./chunk-ZLEW2CSB.mjs";import{a as c}from"./chunk-KSCHUMVE.mjs";import{b as n}from"./chunk-BDX257W2.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-ABQMNGD4.mjs";import{a as l}from"./chunk-FR65RGJD.mjs";import{a as p}from"./chunk-NRE4HHK7.mjs";import{a as c}from"./chunk-KSCHUMVE.mjs";import{b as n}from"./chunk-BDX257W2.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,4 +1,4 @@
1
- import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-TGHOEITH.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as n}from"./chunk-WISCWNL2.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-KTVHPTON.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as n}from"./chunk-WISCWNL2.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}from"./chunk-423OEU3K.mjs";import{h as r}from"./chunk-G6K3PK47.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
1
+ import{a}from"./chunk-23EQTK7B.mjs";import{e as r}from"./chunk-7FR5BXX2.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-SBAFXZVU.mjs";import{a as p}from"./chunk-PY53YVFX.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as c}from"./chunk-3YZN4MJB.mjs";import{b as s,d as b,f as u}from"./chunk-KB6PO4K4.mjs";import{a as n}from"./chunk-Y5VTKEKS.mjs";import{a as f}from"./chunk-GHBJK554.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:h,logoDark:g,...a.header,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
4
+ import{a as g}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-AAI2VZST.mjs";import{a as p}from"./chunk-KEUZSK3N.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as c}from"./chunk-3YZN4MJB.mjs";import{b as s,d as b,f as u}from"./chunk-5YTDIEDJ.mjs";import{a as n}from"./chunk-Y5VTKEKS.mjs";import{a as f}from"./chunk-GHBJK554.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:h,logoDark:g,...a.header,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as d}from"./chunk-PY53YVFX.mjs";import{a as l}from"./chunk-H7D3PZKE.mjs";import{a as m}from"./chunk-3YZN4MJB.mjs";import{b as i,f as o}from"./chunk-KB6PO4K4.mjs";import{a as s}from"./chunk-DRJBYVJB.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function n({...t}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(s,{...t.header}),r(i,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(d,{...t.sidebarLeft,className:"flex-none"}),e(o,{className:"grow overflow-hidden",children:r("div",{className:"max-h-full top-0 absolute max-w-full",children:[e("div",{"aria-hidden":"true",className:"inset-x-0 -z-10 transform-gpu overflow-hidden blur-3xl",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-primary to-secondary opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"})}),e("div",{className:"absolute top-0 w-full",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r("div",{className:"mx-auto max-w-2xl text-center pt-4",children:[e("h1",{className:"text-balance text-5xl font-semibold tracking-tight text-primary sm:text-7xl",children:"Anim aute id magna aliqua ad ad non deserunt sunt."}),e("p",{className:"mt-8 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8",children:"Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat."}),e("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:e("div",{className:"mt-6 px-10 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.tiles.map(a=>e(l,{url:a.slug,title:a.title,mainImage:a.mainImage,excerpt:a.excerpt},a.slug))})})]})})}),e("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"})})]})})]}),e(m,{})]})}export{n as a};
4
+ import{a as d}from"./chunk-KEUZSK3N.mjs";import{a as l}from"./chunk-H7D3PZKE.mjs";import{a as m}from"./chunk-3YZN4MJB.mjs";import{b as i,f as o}from"./chunk-5YTDIEDJ.mjs";import{a as s}from"./chunk-DRJBYVJB.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function n({...t}){return r("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[e(s,{...t.header}),r(i,{className:"top-14 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(d,{...t.sidebarLeft,className:"flex-none"}),e(o,{className:"grow overflow-hidden",children:r("div",{className:"max-h-full top-0 absolute max-w-full",children:[e("div",{"aria-hidden":"true",className:"inset-x-0 -z-10 transform-gpu overflow-hidden blur-3xl",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 rotate-[30deg] bg-gradient-to-tr from-primary to-secondary opacity-30 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"})}),e("div",{className:"absolute top-0 w-full",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r("div",{className:"mx-auto max-w-2xl text-center pt-4",children:[e("h1",{className:"text-balance text-5xl font-semibold tracking-tight text-primary sm:text-7xl",children:"Anim aute id magna aliqua ad ad non deserunt sunt."}),e("p",{className:"mt-8 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8",children:"Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat."}),e("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:e("div",{className:"mt-6 px-10 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.tiles.map(a=>e(l,{url:a.slug,title:a.title,mainImage:a.mainImage,excerpt:a.excerpt},a.slug))})})]})})}),e("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]",children:e("div",{style:{clipPath:"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"},className:"relative left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] -translate-x-1/2 bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"})})]})})]}),e(m,{})]})}export{n as a};
@@ -1 +1 @@
1
- import{a as l}from"./chunk-TGHOEITH.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import t from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u(o){let{images:a,sectionHeading:c,keyPoints:d,description:s}=o;return e("section",{id:"about-section",className:m("section-padding-primary",o.className||""),children:e(n,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(l,{...c}),d&&d.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:d.map((r,g)=>i("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:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{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("div",{className:"flex overflow-hidden",children:e(t,{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(t,{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(t,{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 l}from"./chunk-KTVHPTON.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import t from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u(o){let{images:a,sectionHeading:c,keyPoints:d,description:s}=o;return e("section",{id:"about-section",className:m("section-padding-primary",o.className||""),children:e(n,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(l,{...c}),d&&d.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:d.map((r,g)=>i("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:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{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("div",{className:"flex overflow-hidden",children:e(t,{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(t,{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(t,{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 m}from"./chunk-UMILL4LR.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-TGHOEITH.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-QO2Z7WXW.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-KTVHPTON.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{h as c}from"./chunk-G6K3PK47.mjs";import{a as o}from"./chunk-44VMK4FL.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:m,richText:i})=>a("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[e("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:a("div",{className:"text-center container",children:[m||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:!0}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:l},n)=>e("li",{children:e(o,{...l})},n))})]})}),a("div",{className:"min-h-96 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-7FR5BXX2.mjs";import{a as o}from"./chunk-44VMK4FL.mjs";import{a as s}from"./chunk-NGK3IDFP.mjs";import p from"next/image";import{jsx as e,jsxs as a}from"react/jsx-runtime";var y=({links:r,media:t,children:m,richText:i})=>a("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[e("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:a("div",{className:"text-center container",children:[m||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:!0}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:l},n)=>e("li",{children:e(o,{...l})},n))})]})}),a("div",{className:"min-h-96 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};
@@ -1 +1 @@
1
- import{a as U}from"./chunk-OWBJTXZL.mjs";import{a as C,c as h,d as D,g as b,i as N}from"./chunk-4JC2TJML.mjs";import{a as k}from"./chunk-4NKKWJ2X.mjs";import{a as T}from"./chunk-A5EYIB3V.mjs";import{a as l}from"./chunk-DWRQHV42.mjs";import{a as L}from"./chunk-Y5ZFXDW5.mjs";import{a as A,f as I,g as E,i as P}from"./chunk-JWDVKGZL.mjs";import{a as v}from"./chunk-QOIH63J3.mjs";import{b as f}from"./chunk-BDX257W2.mjs";import{useState as S,useEffect as J}from"react";import{PlusIcon as K}from"lucide-react";import{Fragment as Q,jsx as t,jsxs as r}from"react/jsx-runtime";function ie({customers:m,users:n,categories:B,onSubmit:O,initialDeal:d,onAddCustomer:V,onClose:p}){var y,x,w,F;let[s,o]=S(d||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[q,g]=S(!1),[i,c]=S({});J(()=>{d&&o(d)},[d]);let R=()=>{let e={};return s.customer||(e.customer="Customer is required"),s.value||(e.value="Value is required"),s.assignee||(e.assignee="Assignee is required"),s.closureDate||(e.closureDate="Closure Date is required"),c(e),Object.keys(e).length===0},H=async e=>{e.preventDefault(),c({});try{if(R()){let a=await O({...s});a.success?(o({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),p==null||p()):c(a.errors||{})}}catch{c({submit:"An error occurred while submitting the form."})}},M=e=>{console.log(e),o(a=>({...a,categories:(a.categories||[]).includes(e.id)?(a.categories||[]).filter(u=>u!==e.id):[...a.categories||[],e.id]}))},z=async e=>{o({...s,customer:e});try{let a=await V(e);a.success?g(!1):c(a.errors||{})}catch{c({submit:"An error occurred while submitting the form."})}},j=e=>n==null?void 0:n.find(a=>a.id===Number(e)),G=e=>m==null?void 0:m.find(a=>a.id===Number(e));return r(Q,{children:[r("form",{onSubmit:H,className:"space-y-6",children:[t(k,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(C,{value:(x=(y=s.customer)==null?void 0:y.id)==null?void 0:x.toString(),onValueChange:e=>o({...s,customer:G(e)}),children:[t(D,{children:t(h,{placeholder:"Select customer"})}),t(b,{children:m.map(e=>{var a;return t(N,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),t(f,{variant:"outline",size:"icon",onClick:()=>g(!0),children:t(K,{className:"w-5 h-5"})})]}),i.customerId&&t("p",{className:"text-red-500 text-sm",children:i.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(v,{id:"value",type:"number",value:s.value||"",onChange:e=>o({...s,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),i.value&&t("p",{className:"text-red-500 text-sm",children:i.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(C,{value:(F=(w=s.assignee)==null?void 0:w.id)==null?void 0:F.toString(),onValueChange:e=>o({...s,assignee:j(e)}),children:[t(D,{children:t(h,{placeholder:"Select assignee"})}),t(b,{children:n&&n.map(e=>{var a;return t(N,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),i.assignee&&t("p",{className:"text-red-500 text-sm",children:i.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(T,{id:"description",value:s.description||"",onChange:e=>o({...s,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:B.filter(a=>a.type===e).map(a=>{var u;return r("div",{className:"flex items-center space-x-2",children:[t(L,{id:a.id.toString(),checked:(u=s.categories)==null?void 0:u.includes(a.id),onCheckedChange:()=>M(a)}),t("label",{htmlFor:a.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:a.name})]},a.id)})})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(v,{id:"closureDate",type:"date",value:s.closureDate||"",onChange:e=>o({...s,closureDate:e.target.value})}),i.closureDate&&t("p",{className:"text-red-500 text-sm",children:i.closureDate})]})]})}),t(f,{type:"submit",className:"w-full",children:d?"Update Deal":"Add Deal"})]}),t(A,{open:q,onOpenChange:g,children:r(I,{children:[t(E,{children:t(P,{children:"Add New Customer"})}),t(U,{onSubmit:z})]})})]})}export{ie as a};
1
+ import{a as U}from"./chunk-OWBJTXZL.mjs";import{a as k}from"./chunk-4NKKWJ2X.mjs";import{a as C,c as h,d as D,g as b,i as N}from"./chunk-4JC2TJML.mjs";import{a as T}from"./chunk-A5EYIB3V.mjs";import{a as l}from"./chunk-DWRQHV42.mjs";import{a as L}from"./chunk-Y5ZFXDW5.mjs";import{a as A,f as I,g as E,i as P}from"./chunk-JWDVKGZL.mjs";import{a as v}from"./chunk-QOIH63J3.mjs";import{b as f}from"./chunk-BDX257W2.mjs";import{useState as S,useEffect as J}from"react";import{PlusIcon as K}from"lucide-react";import{Fragment as Q,jsx as t,jsxs as r}from"react/jsx-runtime";function ie({customers:m,users:n,categories:B,onSubmit:O,initialDeal:d,onAddCustomer:V,onClose:p}){var y,x,w,F;let[s,o]=S(d||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[q,g]=S(!1),[i,c]=S({});J(()=>{d&&o(d)},[d]);let R=()=>{let e={};return s.customer||(e.customer="Customer is required"),s.value||(e.value="Value is required"),s.assignee||(e.assignee="Assignee is required"),s.closureDate||(e.closureDate="Closure Date is required"),c(e),Object.keys(e).length===0},H=async e=>{e.preventDefault(),c({});try{if(R()){let a=await O({...s});a.success?(o({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),p==null||p()):c(a.errors||{})}}catch{c({submit:"An error occurred while submitting the form."})}},M=e=>{console.log(e),o(a=>({...a,categories:(a.categories||[]).includes(e.id)?(a.categories||[]).filter(u=>u!==e.id):[...a.categories||[],e.id]}))},z=async e=>{o({...s,customer:e});try{let a=await V(e);a.success?g(!1):c(a.errors||{})}catch{c({submit:"An error occurred while submitting the form."})}},j=e=>n==null?void 0:n.find(a=>a.id===Number(e)),G=e=>m==null?void 0:m.find(a=>a.id===Number(e));return r(Q,{children:[r("form",{onSubmit:H,className:"space-y-6",children:[t(k,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(C,{value:(x=(y=s.customer)==null?void 0:y.id)==null?void 0:x.toString(),onValueChange:e=>o({...s,customer:G(e)}),children:[t(D,{children:t(h,{placeholder:"Select customer"})}),t(b,{children:m.map(e=>{var a;return t(N,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),t(f,{variant:"outline",size:"icon",onClick:()=>g(!0),children:t(K,{className:"w-5 h-5"})})]}),i.customerId&&t("p",{className:"text-red-500 text-sm",children:i.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(v,{id:"value",type:"number",value:s.value||"",onChange:e=>o({...s,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),i.value&&t("p",{className:"text-red-500 text-sm",children:i.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(C,{value:(F=(w=s.assignee)==null?void 0:w.id)==null?void 0:F.toString(),onValueChange:e=>o({...s,assignee:j(e)}),children:[t(D,{children:t(h,{placeholder:"Select assignee"})}),t(b,{children:n&&n.map(e=>{var a;return t(N,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),i.assignee&&t("p",{className:"text-red-500 text-sm",children:i.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(T,{id:"description",value:s.description||"",onChange:e=>o({...s,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:B.filter(a=>a.type===e).map(a=>{var u;return r("div",{className:"flex items-center space-x-2",children:[t(L,{id:a.id.toString(),checked:(u=s.categories)==null?void 0:u.includes(a.id),onCheckedChange:()=>M(a)}),t("label",{htmlFor:a.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:a.name})]},a.id)})})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(v,{id:"closureDate",type:"date",value:s.closureDate||"",onChange:e=>o({...s,closureDate:e.target.value})}),i.closureDate&&t("p",{className:"text-red-500 text-sm",children:i.closureDate})]})]})}),t(f,{type:"submit",className:"w-full",children:d?"Update Deal":"Add Deal"})]}),t(A,{open:q,onOpenChange:g,children:r(I,{children:[t(E,{children:t(P,{children:"Add New Customer"})}),t(U,{onSubmit:z})]})})]})}export{ie as a};
@@ -1 +1 @@
1
- import{a as f,c as C,d as y,g as h,i as D}from"./chunk-4JC2TJML.mjs";import{a as N}from"./chunk-4NKKWJ2X.mjs";import{a as R}from"./chunk-A5EYIB3V.mjs";import{a as r}from"./chunk-DWRQHV42.mjs";import{a as O}from"./chunk-Y5ZFXDW5.mjs";import{a as F,f as T,g as E,i as U}from"./chunk-JWDVKGZL.mjs";import{a as g}from"./chunk-QOIH63J3.mjs";import{b as H}from"./chunk-Q6SEVCRG.mjs";import{b as u}from"./chunk-BDX257W2.mjs";import{useState as p,useEffect as K}from"react";import{UserIcon as X,CalendarIcon as Y,SaveIcon as Z,PlusIcon as _}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function ue({deal:i,users:m,customer:v,categories:V,onClose:J,onSave:G,onAddComment:M}){var P,L,B,I,A;let[s,b]=p({...i,value:i.value||0,comments:i.comments||[],customer:i.customer||{}}),[x,S]=p(""),[Q,w]=p(!1),[n,o]=p(null);K(()=>{w(JSON.stringify(i)!==JSON.stringify(s))},[i,s]);let W=async()=>{try{let e=await G(s);e.success?(w(!1),o(null)):console.error("Failed to save deal:",e.errors)}catch(e){console.error("Failed to save deal:",e)}},c=(e,t)=>{b(d=>({...d,[e]:t}))},$=e=>{let t=(s.categories||[]).includes(e)?(s.categories||[]).filter(d=>d!==e):[...s.categories||[],e];c("categories",t)},j=async()=>{if(x.trim()){let e={text:x,timestamp:new Date().toISOString()};try{let t=await M(e);if(!t.success){console.error("Failed to add comment:",t.errors);return}}catch(t){console.error("Failed to add comment:",t)}b(t=>({...t,comments:[...t.comments||[],e]})),S("")}},k=e=>{switch(e){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},q=e=>m==null?void 0:m.find(t=>t.id===Number(e));return a(F,{open:!0,children:l(T,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[l(E,{className:"flex flex-row items-center justify-between",children:[a(U,{className:"text-2xl font-bold",children:v==null?void 0:v.name}),l("div",{className:"flex space-x-2",children:[a(u,{variant:"outline",onClick:J,children:"Close"}),l(u,{onClick:W,disabled:!Q,children:[a(Z,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),l(N,{className:"flex-grow pr-4",children:[l("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2",children:n==="value"?a(g,{type:"number",value:s.value,onChange:e=>c("value",Number(e.target.value)),onBlur:()=>o(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):l("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("value"),children:["\xA3",(P=s.value)==null?void 0:P.toLocaleString()]})}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),n==="assignee"?l(f,{value:((B=(L=s==null?void 0:s.assignee)==null?void 0:L.id)==null?void 0:B.toString())||"",onValueChange:e=>c("assignee",q(e)),children:[a(y,{children:a(C,{placeholder:"Select assignee"})}),a(h,{children:m&&m.map(e=>{var t;return a(D,{value:((t=e==null?void 0:e.id)==null?void 0:t.toString())||"",children:e.name},e.id)})})]}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("assignee"),children:[a(X,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.assignee.name})]})]}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),n==="closureDate"?a(g,{type:"date",value:(A=(I=s.closureDate)==null?void 0:I.split("T")[0])!=null?A:"",onChange:e=>c("closureDate",e.target.value),onBlur:()=>o(null),autoFocus:!0}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("closureDate"),children:[a(Y,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.closureDate?new Date(s.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Description"}),n==="description"?a(R,{value:s.description||"",onChange:e=>c("description",e.target.value),onBlur:()=>o(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>o("description"),children:s.description})]})}),l("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Status"}),n==="status"?l(f,{value:s.status,onValueChange:e=>{c("status",e),o(null)},children:[a(y,{children:a(C,{placeholder:"Select status"})}),a(h,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(e=>a(D,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("status"),children:s.status})]}),l("div",{className:"grid col-span-2 gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Categories"}),n==="categories"?a("div",{className:"grid grid-cols-2 gap-2",children:V.map(e=>{var t,d;return l("div",{className:"flex items-center space-x-2",children:[a(O,{id:((t=e.id)==null?void 0:t.toString())||"",checked:(s.categories||[]).some(z=>z.id===e.id),onCheckedChange:()=>e.id!==void 0&&$(e)}),a("label",{htmlFor:((d=e.id)!=null?d:"").toString(),className:`text-sm font-medium ${k(e.type||"sector")} px-2 py-1 rounded`,children:e.name})]},e.id)})}):a("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("categories"),children:s.categories&&s.categories.map(e=>{console.log("cat",e);let t=e;return t?a(H,{variant:"secondary",className:k(t.type||"sector"),children:t.name},t.id):null})})]})]}),l("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Comments"}),a(N,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:s.comments&&s.comments.slice().sort((e,t)=>new Date(t.timestamp||"").getTime()-new Date(e.timestamp||"").getTime()).map(e=>{var t;return l("div",{className:"bg-gray-50 p-3 rounded-lg",children:[a("p",{className:"text-sm text-gray-700",children:e.text}),l("p",{className:"text-xs text-gray-500 mt-1",children:[(t=e==null?void 0:e.author)==null?void 0:t.name," - ",new Date(e.timestamp||"").toLocaleString()]})]},e.id)})})}),l("div",{className:"flex mt-2",children:[a(g,{value:x,onChange:e=>S(e.target.value),placeholder:"Add a comment...",className:"flex-grow"}),l(u,{onClick:j,className:"ml-2",children:[a(_,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),l("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(s.updatedAt||"").toLocaleString()]})]})]})]})})}export{ue as a};
1
+ import{a as N}from"./chunk-4NKKWJ2X.mjs";import{a as f,c as C,d as y,g as h,i as D}from"./chunk-4JC2TJML.mjs";import{a as R}from"./chunk-A5EYIB3V.mjs";import{a as r}from"./chunk-DWRQHV42.mjs";import{a as O}from"./chunk-Y5ZFXDW5.mjs";import{a as F,f as T,g as E,i as U}from"./chunk-JWDVKGZL.mjs";import{a as g}from"./chunk-QOIH63J3.mjs";import{b as H}from"./chunk-Q6SEVCRG.mjs";import{b as u}from"./chunk-BDX257W2.mjs";import{useState as p,useEffect as K}from"react";import{UserIcon as X,CalendarIcon as Y,SaveIcon as Z,PlusIcon as _}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function ue({deal:i,users:m,customer:v,categories:V,onClose:J,onSave:G,onAddComment:M}){var P,L,B,I,A;let[s,b]=p({...i,value:i.value||0,comments:i.comments||[],customer:i.customer||{}}),[x,S]=p(""),[Q,w]=p(!1),[n,o]=p(null);K(()=>{w(JSON.stringify(i)!==JSON.stringify(s))},[i,s]);let W=async()=>{try{let e=await G(s);e.success?(w(!1),o(null)):console.error("Failed to save deal:",e.errors)}catch(e){console.error("Failed to save deal:",e)}},c=(e,t)=>{b(d=>({...d,[e]:t}))},$=e=>{let t=(s.categories||[]).includes(e)?(s.categories||[]).filter(d=>d!==e):[...s.categories||[],e];c("categories",t)},j=async()=>{if(x.trim()){let e={text:x,timestamp:new Date().toISOString()};try{let t=await M(e);if(!t.success){console.error("Failed to add comment:",t.errors);return}}catch(t){console.error("Failed to add comment:",t)}b(t=>({...t,comments:[...t.comments||[],e]})),S("")}},k=e=>{switch(e){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},q=e=>m==null?void 0:m.find(t=>t.id===Number(e));return a(F,{open:!0,children:l(T,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[l(E,{className:"flex flex-row items-center justify-between",children:[a(U,{className:"text-2xl font-bold",children:v==null?void 0:v.name}),l("div",{className:"flex space-x-2",children:[a(u,{variant:"outline",onClick:J,children:"Close"}),l(u,{onClick:W,disabled:!Q,children:[a(Z,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),l(N,{className:"flex-grow pr-4",children:[l("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2",children:n==="value"?a(g,{type:"number",value:s.value,onChange:e=>c("value",Number(e.target.value)),onBlur:()=>o(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):l("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("value"),children:["\xA3",(P=s.value)==null?void 0:P.toLocaleString()]})}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),n==="assignee"?l(f,{value:((B=(L=s==null?void 0:s.assignee)==null?void 0:L.id)==null?void 0:B.toString())||"",onValueChange:e=>c("assignee",q(e)),children:[a(y,{children:a(C,{placeholder:"Select assignee"})}),a(h,{children:m&&m.map(e=>{var t;return a(D,{value:((t=e==null?void 0:e.id)==null?void 0:t.toString())||"",children:e.name},e.id)})})]}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("assignee"),children:[a(X,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.assignee.name})]})]}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),n==="closureDate"?a(g,{type:"date",value:(A=(I=s.closureDate)==null?void 0:I.split("T")[0])!=null?A:"",onChange:e=>c("closureDate",e.target.value),onBlur:()=>o(null),autoFocus:!0}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("closureDate"),children:[a(Y,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.closureDate?new Date(s.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Description"}),n==="description"?a(R,{value:s.description||"",onChange:e=>c("description",e.target.value),onBlur:()=>o(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>o("description"),children:s.description})]})}),l("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Status"}),n==="status"?l(f,{value:s.status,onValueChange:e=>{c("status",e),o(null)},children:[a(y,{children:a(C,{placeholder:"Select status"})}),a(h,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(e=>a(D,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("status"),children:s.status})]}),l("div",{className:"grid col-span-2 gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Categories"}),n==="categories"?a("div",{className:"grid grid-cols-2 gap-2",children:V.map(e=>{var t,d;return l("div",{className:"flex items-center space-x-2",children:[a(O,{id:((t=e.id)==null?void 0:t.toString())||"",checked:(s.categories||[]).some(z=>z.id===e.id),onCheckedChange:()=>e.id!==void 0&&$(e)}),a("label",{htmlFor:((d=e.id)!=null?d:"").toString(),className:`text-sm font-medium ${k(e.type||"sector")} px-2 py-1 rounded`,children:e.name})]},e.id)})}):a("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("categories"),children:s.categories&&s.categories.map(e=>{console.log("cat",e);let t=e;return t?a(H,{variant:"secondary",className:k(t.type||"sector"),children:t.name},t.id):null})})]})]}),l("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Comments"}),a(N,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:s.comments&&s.comments.slice().sort((e,t)=>new Date(t.timestamp||"").getTime()-new Date(e.timestamp||"").getTime()).map(e=>{var t;return l("div",{className:"bg-gray-50 p-3 rounded-lg",children:[a("p",{className:"text-sm text-gray-700",children:e.text}),l("p",{className:"text-xs text-gray-500 mt-1",children:[(t=e==null?void 0:e.author)==null?void 0:t.name," - ",new Date(e.timestamp||"").toLocaleString()]})]},e.id)})})}),l("div",{className:"flex mt-2",children:[a(g,{value:x,onChange:e=>S(e.target.value),placeholder:"Add a comment...",className:"flex-grow"}),l(u,{onClick:j,className:"ml-2",children:[a(_,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),l("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(s.updatedAt||"").toLocaleString()]})]})]})]})})}export{ue as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as c}from"./chunk-WU3JMLSC.mjs";import{a as u}from"./chunk-BZAYEKYC.mjs";import{b as l}from"./chunk-BDX257W2.mjs";import{a,b as i,c as t,e as o}from"./chunk-D76EO57Z.mjs";import{a as m}from"./chunk-RZTXT4UD.mjs";import{a as s}from"./chunk-4DJ6HKHR.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function b({...n}){return r("div",{className:"relative",children:[e("div",{className:"h-screen relative overflow-hidden",children:e(m,{...n.header,logoVideo:s,logoLight:u,logoDark:c})}),r("div",{id:"next-section",className:"mt-16 pt-16 min-h-screen",children:[" ",e("div",{className:"container py-8",children:r("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:n.children}),r("div",{className:"space-y-6",children:[r(a,{children:[e(i,{children:e(t,{children:"Quick Actions"})}),r(o,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(l,{className:"w-full",children:"Create New"})]})]}),r(a,{children:[e(i,{children:e(t,{children:"Resources"})}),e(o,{children:r("nav",{className:"flex flex-col space-y-2",children:[r("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"})]}),r("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"})]}),r("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 s}from"./chunk-4DJ6HKHR.mjs";import{a as c}from"./chunk-WU3JMLSC.mjs";import{a as u}from"./chunk-BZAYEKYC.mjs";import{b as l}from"./chunk-BDX257W2.mjs";import{a,b as i,c as t,e as o}from"./chunk-D76EO57Z.mjs";import{a as m}from"./chunk-RZTXT4UD.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function b({...n}){return r("div",{className:"relative",children:[e("div",{className:"h-screen relative overflow-hidden",children:e(m,{...n.header,logoVideo:s,logoLight:u,logoDark:c})}),r("div",{id:"next-section",className:"mt-16 pt-16 min-h-screen",children:[" ",e("div",{className:"container py-8",children:r("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:n.children}),r("div",{className:"space-y-6",children:[r(a,{children:[e(i,{children:e(t,{children:"Quick Actions"})}),r(o,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(l,{className:"w-full",children:"Create New"})]})]}),r(a,{children:[e(i,{children:e(t,{children:"Resources"})}),e(o,{children:r("nav",{className:"flex flex-col space-y-2",children:[r("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"})]}),r("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"})]}),r("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{a as C}from"./chunk-SEG6IDDX.mjs";import{a as b}from"./chunk-BRYZOZKY.mjs";import{a as p,b as d,f as u,g as c,i as D}from"./chunk-JWDVKGZL.mjs";import{b as g}from"./chunk-BDX257W2.mjs";import{useState as R}from"react";import{PlusCircle as y}from"lucide-react";import{Droppable as v,Draggable as T}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as e,jsxs as o}from"react/jsx-runtime";function L({status:r,deals:s,users:f,customers:h,categories:i,onDealClick:N,calculateColumnValue:w,calculateWeightedValue:x,addNewDeal:n,onAddCustomer:P}){let[S,m]=R(!1);return o("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:r}),n&&o(p,{open:S,onOpenChange:m,children:[e(d,{asChild:!0,children:o(g,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[e(y,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),o(u,{children:[e(c,{children:e(D,{children:"Add New Deal"})}),e(C,{customers:h,users:f,categories:i,onSubmit:n,onAddCustomer:P,onClose:()=>m(!1)})]})]}),e(v,{droppableId:r,isDropDisabled:!1,children:l=>o("div",{ref:l.innerRef,...l.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[s.map((a,A)=>e(T,{draggableId:a.id.toString(),index:a.id,children:t=>e("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,children:e(b,{deal:a,customer:a.customer,categories:i,onClick:()=>N(a)})})},a.id.toString())),l.placeholder]})}),o("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[o("p",{className:"font-semibold",children:["Total:"," ",o("span",{className:"text-green-600",children:["\xA3",w(s).toLocaleString()]})]}),o("p",{className:"font-semibold",children:["Weighted:"," ",o("span",{className:"text-blue-600",children:["\xA3",x(s,r).toLocaleString()]})]})]})]})}export{L as a};
1
+ import{a as C}from"./chunk-G5HD4IFA.mjs";import{a as b}from"./chunk-BRYZOZKY.mjs";import{a as p,b as d,f as u,g as c,i as D}from"./chunk-JWDVKGZL.mjs";import{b as g}from"./chunk-BDX257W2.mjs";import{useState as R}from"react";import{PlusCircle as y}from"lucide-react";import{Droppable as v,Draggable as T}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as e,jsxs as o}from"react/jsx-runtime";function L({status:r,deals:s,users:f,customers:h,categories:i,onDealClick:N,calculateColumnValue:w,calculateWeightedValue:x,addNewDeal:n,onAddCustomer:P}){let[S,m]=R(!1);return o("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:r}),n&&o(p,{open:S,onOpenChange:m,children:[e(d,{asChild:!0,children:o(g,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[e(y,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),o(u,{children:[e(c,{children:e(D,{children:"Add New Deal"})}),e(C,{customers:h,users:f,categories:i,onSubmit:n,onAddCustomer:P,onClose:()=>m(!1)})]})]}),e(v,{droppableId:r,isDropDisabled:!1,children:l=>o("div",{ref:l.innerRef,...l.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[s.map((a,A)=>e(T,{draggableId:a.id.toString(),index:a.id,children:t=>e("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,children:e(b,{deal:a,customer:a.customer,categories:i,onClick:()=>N(a)})})},a.id.toString())),l.placeholder]})}),o("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[o("p",{className:"font-semibold",children:["Total:"," ",o("span",{className:"text-green-600",children:["\xA3",w(s).toLocaleString()]})]}),o("p",{className:"font-semibold",children:["Weighted:"," ",o("span",{className:"text-blue-600",children:["\xA3",x(s,r).toLocaleString()]})]})]})]})}export{L as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-KB6PO4K4.mjs";import{a as n}from"./chunk-BSQVKZCW.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as i}from"react/jsx-runtime";function J({mainNav:o,secondaryNav:l,title:b,subTitle:a,pathName:p,menuHeading:d,onNavClick:s,loading:r=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):s?({href:t,children:m,...I})=>e("button",{onClick:()=>s&&s(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return i(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:r?i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:b}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),r&&i(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),i(S,{children:[o&&!r&&o.map((t,m)=>e(G,{subNav:t,pathName:p,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:l&&!r&&l.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:i(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:o,pathName:l,Link:b}){var d,s;let a=o,p=!1;return a.links&&a.links.map(r=>{r.url===l&&(p=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:i(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(p&&"font-bold text-accent"),children:i(b,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),(d=a.links)!=null&&d.length?i(H,{children:[e(N,{asChild:!0,children:i(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:(s=a.links)==null?void 0:s.map(r=>e(B,{children:e(L,{asChild:!0,className:T(r.url===l&&"font-bold text-accent"),children:e(b,{href:r.url,children:e("span",{children:r.label})})})},r.label))})})]}):null]})},a.label)})})})}export{J as a};
4
+ import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-5YTDIEDJ.mjs";import{a as n}from"./chunk-BSQVKZCW.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as i}from"react/jsx-runtime";function J({mainNav:o,secondaryNav:l,title:b,subTitle:a,pathName:p,menuHeading:d,onNavClick:s,loading:r=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):s?({href:t,children:m,...I})=>e("button",{onClick:()=>s&&s(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return i(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:r?i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:b}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),r&&i(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),i(S,{children:[o&&!r&&o.map((t,m)=>e(G,{subNav:t,pathName:p,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:l&&!r&&l.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:i(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:o,pathName:l,Link:b}){var d,s;let a=o,p=!1;return a.links&&a.links.map(r=>{r.url===l&&(p=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:i(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(p&&"font-bold text-accent"),children:i(b,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),(d=a.links)!=null&&d.length?i(H,{children:[e(N,{asChild:!0,children:i(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:(s=a.links)==null?void 0:s.map(r=>e(B,{children:e(L,{asChild:!0,className:T(r.url===l&&"font-bold text-accent"),children:e(b,{href:r.url,children:e("span",{children:r.label})})})},r.label))})})]}):null]})},a.label)})})})}export{J as a};
@@ -1 +1 @@
1
- import{h as s}from"./chunk-G6K3PK47.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-7FR5BXX2.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 x}from"./chunk-KML6U7IE.mjs";import{a as k}from"./chunk-TXXFXCXB.mjs";import{h as P}from"./chunk-G6K3PK47.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{a as c,b as h,c as C,e as p}from"./chunk-D76EO57Z.mjs";import{a as b}from"./chunk-WISCWNL2.mjs";import{a as N}from"./chunk-UESKYRNK.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:n}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),n&&n.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((e,s)=>t("li",{children:t(b,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},s))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:n="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:s,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=s==null?void 0:s[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(N,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(P,{content:U,enableGutter:!1})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(h,{children:t(C,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${n}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(k,{links:r.links,title:r.title})})]})]})})}export{j as a};
1
+ import{a as x}from"./chunk-KML6U7IE.mjs";import{a as k}from"./chunk-TXXFXCXB.mjs";import{e as P}from"./chunk-7FR5BXX2.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{a as c,b as h,c as C,e as p}from"./chunk-D76EO57Z.mjs";import{a as b}from"./chunk-WISCWNL2.mjs";import{a as N}from"./chunk-UESKYRNK.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:n}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),n&&n.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((e,s)=>t("li",{children:t(b,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},s))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:n="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:s,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=s==null?void 0:s[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(N,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(P,{content:U,enableGutter:!1})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(h,{children:t(C,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${n}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(k,{links:r.links,title:r.title})})]})]})})}export{j as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-WU3JMLSC.mjs";import{a as m}from"./chunk-BZAYEKYC.mjs";import{a as i}from"./chunk-US6CSL53.mjs";import{a as o}from"./chunk-KSCHUMVE.mjs";import{a as t}from"./chunk-GHBJK554.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:m,logoDark:a}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
1
+ import{a}from"./chunk-WU3JMLSC.mjs";import{a as m}from"./chunk-BZAYEKYC.mjs";import{a as i}from"./chunk-LIAT3JG5.mjs";import{a as o}from"./chunk-KSCHUMVE.mjs";import{a as t}from"./chunk-GHBJK554.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:m,logoDark:a}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
@@ -1 +1 @@
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};
1
+ import{a as n}from"./chunk-TFWGOEV7.mjs";import{a}from"./chunk-YNDKGRL6.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 +1 @@
1
- import{h as o}from"./chunk-G6K3PK47.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-7FR5BXX2.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 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:s=!0,imgClassName:i,media:m,staticImage:n}=r;return o("div",{className:a("",{container:s},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",i),resource:m,src:n})})};export{p as a};
1
+ import{a as e}from"./chunk-NGK3IDFP.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:s=!0,imgClassName:i,media:m,staticImage:n}=r;return o("div",{className:a("",{container:s},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",i),resource:m,src:n})})};export{p as a};