cortex-react-components 1.52.3 → 1.52.5

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 (193) hide show
  1. package/dist/{chunk-3OSQR3RK.mjs → chunk-2CGADBJZ.mjs} +1 -1
  2. package/dist/{chunk-ISZD24DJ.mjs → chunk-2LJVMEWU.mjs} +1 -1
  3. package/dist/{chunk-YS3Z4KM7.mjs → chunk-3BUDBFWP.mjs} +1 -1
  4. package/dist/{chunk-ELVHHVRX.mjs → chunk-3QZJOADY.mjs} +1 -1
  5. package/dist/{chunk-YC3XIF3X.mjs → chunk-42TZNRIV.mjs} +1 -1
  6. package/dist/{chunk-S3LLU4LR.mjs → chunk-4OXDF7DO.mjs} +1 -1
  7. package/dist/{chunk-2IKC7MAP.mjs → chunk-5YTDIEDJ.mjs} +1 -1
  8. package/dist/{chunk-4YJ3HV64.mjs → chunk-6DHYRATS.mjs} +1 -1
  9. package/dist/{chunk-UMPQUYHD.mjs → chunk-6NHBVSPJ.mjs} +1 -1
  10. package/dist/chunk-6XPEWLMB.mjs +1 -0
  11. package/dist/{chunk-VQCDKCB7.mjs → chunk-7RCXCEKM.mjs} +1 -1
  12. package/dist/{chunk-TTO5NQOO.mjs → chunk-A6RIVBDI.mjs} +1 -1
  13. package/dist/{chunk-IO222G5L.mjs → chunk-AAI2VZST.mjs} +1 -1
  14. package/dist/chunk-AHCKCVZD.mjs +1 -0
  15. package/dist/{chunk-FRJH2ABR.mjs → chunk-ARDUHBRG.mjs} +1 -1
  16. package/dist/{chunk-EWRUPU65.mjs → chunk-ATBVXV4P.mjs} +1 -1
  17. package/dist/{chunk-ZWKNWD42.mjs → chunk-BCAE5YI2.mjs} +1 -1
  18. package/dist/{chunk-FZFHGTZB.mjs → chunk-BRYZOZKY.mjs} +1 -1
  19. package/dist/{chunk-CCQHABAJ.mjs → chunk-BYNGPRHW.mjs} +1 -1
  20. package/dist/{chunk-ZZ6YKJXX.mjs → chunk-C3JUPZ34.mjs} +1 -1
  21. package/dist/{chunk-NSBLDGYS.mjs → chunk-GBXJMA7G.mjs} +1 -1
  22. package/dist/{chunk-WBNYJISJ.mjs → chunk-H4QS5ON5.mjs} +1 -1
  23. package/dist/{chunk-ZIWHUQ4D.mjs → chunk-HER7J6HM.mjs} +1 -1
  24. package/dist/{chunk-MZAFUSY7.mjs → chunk-IG5RFSL5.mjs} +1 -1
  25. package/dist/{chunk-FCCL6W7R.mjs → chunk-JPFBD2KD.mjs} +1 -1
  26. package/dist/{chunk-QMFZRG7O.mjs → chunk-KEUZSK3N.mjs} +1 -1
  27. package/dist/{chunk-PXZ36U3P.mjs → chunk-KPIWBWE2.mjs} +1 -1
  28. package/dist/{chunk-H4SBQSGY.mjs → chunk-L5JFZUB6.mjs} +1 -1
  29. package/dist/{chunk-KF77MUOK.mjs → chunk-LI327LRM.mjs} +1 -1
  30. package/dist/{chunk-INTMVJYF.mjs → chunk-N42N4DBZ.mjs} +1 -1
  31. package/dist/{chunk-MWJTW2OB.mjs → chunk-NPT5XX2I.mjs} +1 -1
  32. package/dist/{chunk-5VDJXXDC.mjs → chunk-NXYL4UBB.mjs} +1 -1
  33. package/dist/{chunk-2A6JF3LE.mjs → chunk-RJGKFNZL.mjs} +1 -1
  34. package/dist/{chunk-QLNQHPNP.mjs → chunk-SJ63EKON.mjs} +1 -1
  35. package/dist/{chunk-BGTZHVKZ.mjs → chunk-TCLCV3LW.mjs} +1 -1
  36. package/dist/chunk-TLVJ4LEU.mjs +1 -0
  37. package/dist/{chunk-VNNW6UXI.mjs → chunk-TNAP6TO7.mjs} +1 -1
  38. package/dist/{chunk-WYZJ7YOB.mjs → chunk-TWXXQQ2R.mjs} +1 -1
  39. package/dist/{chunk-23BDC5JG.mjs → chunk-UBA3ZRKC.mjs} +1 -1
  40. package/dist/{chunk-JNEETCGB.mjs → chunk-UCM3YK2P.mjs} +1 -1
  41. package/dist/{chunk-IAUGG2G2.mjs → chunk-W7IJKJZC.mjs} +1 -1
  42. package/dist/{chunk-HDKUURAK.mjs → chunk-WVDIFSZH.mjs} +1 -1
  43. package/dist/{chunk-MGS3DQ22.mjs → chunk-XXTN5HMN.mjs} +1 -1
  44. package/dist/{chunk-3IUQUN6R.mjs → chunk-Y2KKUQDU.mjs} +1 -1
  45. package/dist/{chunk-ZLMOQINK.mjs → chunk-YOASVS2O.mjs} +1 -1
  46. package/dist/chunk-YVDQBQ2H.mjs +1 -0
  47. package/dist/components/Blocks/Banner.mjs +1 -1
  48. package/dist/components/Blocks/CallToAction.mjs +1 -1
  49. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  50. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  51. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  52. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  53. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  54. package/dist/components/Blocks/Content.mjs +1 -1
  55. package/dist/components/Blocks/Content.stories.mjs +1 -1
  56. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  57. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  58. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  59. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  60. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  61. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  62. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  63. package/dist/components/Blocks/index.mjs +1 -1
  64. package/dist/components/CRM/DealCard.mjs +1 -1
  65. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  66. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  67. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  68. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  69. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  70. package/dist/components/CRM/index.mjs +1 -1
  71. package/dist/components/Cards/ContentCard.mjs +1 -1
  72. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  73. package/dist/components/Cards/EventCard.mjs +1 -1
  74. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  75. package/dist/components/Cards/index.mjs +1 -1
  76. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  77. package/dist/components/DigitalColleagues/MainPage.js +1 -1
  78. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  79. package/dist/components/DigitalColleagues/MainPage.stories.js +33 -33
  80. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  81. package/dist/components/HeaderFooter/Footer.js +1 -1
  82. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  83. package/dist/components/HeaderFooter/Footer.stories.js +1 -1
  84. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  85. package/dist/components/HeaderFooter/Header.js +1 -1
  86. package/dist/components/HeaderFooter/Header.mjs +1 -1
  87. package/dist/components/HeaderFooter/Header.stories.js +1 -1
  88. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  89. package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
  90. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  91. package/dist/components/HeaderFooter/HeaderDesktop.stories.js +1 -1
  92. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  93. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  94. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  95. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  96. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  97. package/dist/components/HeaderFooter/index.js +1 -1
  98. package/dist/components/HeaderFooter/index.mjs +1 -1
  99. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  100. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  101. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  102. package/dist/components/Heros/PostHero/index.mjs +1 -1
  103. package/dist/components/Heros/RenderHero.mjs +1 -1
  104. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  105. package/dist/components/Heros/index.mjs +1 -1
  106. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  107. package/dist/components/Layouts/Print.mjs +1 -1
  108. package/dist/components/Layouts/Print.stories.mjs +1 -1
  109. package/dist/components/Layouts/SlideShow.mjs +1 -1
  110. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  111. package/dist/components/Layouts/index.mjs +1 -1
  112. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  113. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  114. package/dist/components/Menus/SidebarRight.mjs +1 -1
  115. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  116. package/dist/components/Menus/index.mjs +1 -1
  117. package/dist/components/Payload/Card/index.mjs +1 -1
  118. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  119. package/dist/components/Payload/Media/index.mjs +1 -1
  120. package/dist/components/Payload/RichText/index.mjs +1 -1
  121. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  122. package/dist/components/Payload/RichText.stories.mjs +1 -1
  123. package/dist/components/Payload/index.mjs +1 -1
  124. package/dist/components/index.js +1 -1
  125. package/dist/components/index.mjs +1 -1
  126. package/dist/components/ui/index.mjs +1 -1
  127. package/dist/components/ui/sidebar.mjs +1 -1
  128. package/dist/globals.css +1 -1
  129. package/dist/index.js +4 -4
  130. package/dist/index.mjs +1 -1
  131. package/dist/metafile-cjs.json +1 -1
  132. package/dist/metafile-esm.json +1 -1
  133. package/dist/pages/Blog.js +1 -1
  134. package/dist/pages/Blog.mjs +1 -1
  135. package/dist/pages/Blog.stories.js +1 -1
  136. package/dist/pages/Blog.stories.mjs +1 -1
  137. package/dist/pages/Documentation.js +1 -1
  138. package/dist/pages/Documentation.mjs +1 -1
  139. package/dist/pages/Documentation.stories.js +32 -32
  140. package/dist/pages/Documentation.stories.mjs +1 -1
  141. package/dist/pages/IndexPage.mjs +1 -1
  142. package/dist/pages/IndexPage.stories.mjs +1 -1
  143. package/dist/pages/Intranet.mjs +1 -1
  144. package/dist/pages/Intranet.stories.mjs +1 -1
  145. package/dist/pages/LandingPage.js +2 -2
  146. package/dist/pages/LandingPage.mjs +1 -1
  147. package/dist/pages/LandingPage.stories.js +3 -3
  148. package/dist/pages/LandingPage.stories.mjs +1 -1
  149. package/dist/pages/Page.js +1 -1
  150. package/dist/pages/Page.mjs +1 -1
  151. package/dist/pages/Page.stories.js +32 -32
  152. package/dist/pages/Page.stories.mjs +1 -1
  153. package/dist/pages/Printable.stories.mjs +1 -1
  154. package/dist/pages/Publish.mjs +1 -1
  155. package/dist/pages/Publish.stories.mjs +1 -1
  156. package/dist/pages/Website.js +1 -1
  157. package/dist/pages/Website.mjs +1 -1
  158. package/dist/pages/Website.stories.js +1 -1
  159. package/dist/pages/Website.stories.mjs +1 -1
  160. package/dist/sections/AboutSection.js +1 -1
  161. package/dist/sections/AboutSection.mjs +1 -1
  162. package/dist/sections/AboutSection.stories.js +1 -1
  163. package/dist/sections/AboutSection.stories.mjs +1 -1
  164. package/dist/sections/BlogDetail.mjs +1 -1
  165. package/dist/sections/BlogDetail.stories.mjs +1 -1
  166. package/dist/sections/BlogList.js +1 -1
  167. package/dist/sections/BlogList.mjs +1 -1
  168. package/dist/sections/BlogList.stories.js +1 -1
  169. package/dist/sections/BlogList.stories.mjs +1 -1
  170. package/dist/sections/BlogListSection.mjs +1 -1
  171. package/dist/sections/BlogListSection.stories.mjs +1 -1
  172. package/dist/sections/ContactSection.js +1 -1
  173. package/dist/sections/ContactSection.mjs +1 -1
  174. package/dist/sections/ContactSection.stories.js +1 -1
  175. package/dist/sections/ContactSection.stories.mjs +1 -1
  176. package/dist/sections/ImageSection.stories.mjs +1 -1
  177. package/dist/sections/PricingSection.js +1 -1
  178. package/dist/sections/PricingSection.mjs +1 -1
  179. package/dist/sections/PricingSection.stories.js +1 -1
  180. package/dist/sections/PricingSection.stories.mjs +1 -1
  181. package/dist/sections/ServiceSection.d.ts +3 -1
  182. package/dist/sections/ServiceSection.js +1 -1
  183. package/dist/sections/ServiceSection.mjs +1 -1
  184. package/dist/sections/ServiceSection.stories.js +1 -1
  185. package/dist/sections/ServiceSection.stories.mjs +1 -1
  186. package/dist/sections/index.js +1 -1
  187. package/dist/sections/index.mjs +1 -1
  188. package/dist/waves-6HGOFMRK.jpg +0 -0
  189. package/package.json +1 -1
  190. package/dist/chunk-GNRDESON.mjs +0 -1
  191. package/dist/chunk-TCIHQDDM.mjs +0 -1
  192. package/dist/chunk-VD4DXIN7.mjs +0 -1
  193. package/dist/chunk-Y6DIPOE7.mjs +0 -1
@@ -1 +1 @@
1
- import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as c}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-WKD2UQGO.mjs";import{b as a}from"./chunk-IAUGG2G2.mjs";import{b as i}from"./chunk-VQCDKCB7.mjs";import{a as s}from"./chunk-UMPQUYHD.mjs";import{a as r}from"./chunk-C5XNOZXC.mjs";import{Observer as p}from"tailwindcss-intersect";import{useEffect as g}from"react";import{jsx as t,jsxs as b}from"react/jsx-runtime";function d({...e}){let o=e.page;console.log("page",o.layout);let{contentWithIds:n,tableOfContents:m}=r(o);return console.log("contentWithIds",n),g(()=>{p.start()},[]),b("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(s,{isMenuOpen:!0,logoLight:c,logoDark:f}),t(a,{...e.hero}),t(l,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(i,{blocks:n})})]})}export{d as a};
1
+ import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as c}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-WKD2UQGO.mjs";import{b as a}from"./chunk-W7IJKJZC.mjs";import{b as i}from"./chunk-7RCXCEKM.mjs";import{a as s}from"./chunk-6NHBVSPJ.mjs";import{a as r}from"./chunk-C5XNOZXC.mjs";import{Observer as p}from"tailwindcss-intersect";import{useEffect as g}from"react";import{jsx as t,jsxs as b}from"react/jsx-runtime";function d({...e}){let o=e.page;console.log("page",o.layout);let{contentWithIds:n,tableOfContents:m}=r(o);return console.log("contentWithIds",n),g(()=>{p.start()},[]),b("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(s,{isMenuOpen:!0,logoLight:c,logoDark:f}),t(a,{...e.hero}),t(l,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(i,{blocks:n})})]})}export{d as a};
@@ -1 +1 @@
1
- import{a as g,e as u}from"./chunk-D76EO57Z.mjs";import{b as m}from"./chunk-Q6SEVCRG.mjs";import x from"next/image";import{Quote as p}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function b(l){let s=l.replace("#",""),r=parseInt(s.substring(0,2),16),n=parseInt(s.substring(2,4),16),e=parseInt(s.substring(4,6),16);return(r*299+n*587+e*114)/1e3<128}function N({customerName:l="Acme Corporation",logoUrl:s,industry:r,projectDescription:n="Revolutionizing widget production with cloud technology",color:e="#3B82F6",quote:o,metrics:v=[],children:h=null}){var c;let d=((c=[{label:"Technology",value:"technology"},{label:"Finance",value:"finance"},{label:"Healthcare",value:"healthcare"},{label:"Retail",value:"retail"}].find(i=>i.value===r))==null?void 0:c.label)||void 0,y=b(e)?"text-white":"text-gray-900",w=b(e)?"white":e;return t(g,{className:"w-full max-w-4xl mx-auto overflow-hidden shadow-lg",children:a(u,{className:"p-0",children:[a("div",{className:`flex items-center ${y}`,style:{background:`linear-gradient(to right, ${e}, ${e}80)`,padding:"1.5rem"},children:[a("div",{className:"flex-grow pr-4",children:[t("h2",{className:"text-2xl font-bold mb-2",children:l}),d&&t(m,{variant:"secondary",className:"text-sm font-medium",children:d}),t("p",{className:"mt-4 text-lg",children:n})]}),s&&t("div",{className:"flex items-center justify-center bg-white rounded-lg",style:{padding:"1rem",height:"100px"},children:t(x,{src:s,alt:`${l} logo`,width:120,height:60,className:"object-contain h-full"})})]}),a("div",{className:"p-6",children:[o&&a("blockquote",{className:"border-l-4 pl-4 py-2 mb-6 italic",style:{borderColor:e,color:e},children:[t(p,{className:"inline-block mr-2",size:24,style:{color:e}}),o,t(p,{className:"inline-block ml-2",size:24,style:{color:e}})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-6",children:v.map((i,f)=>a("div",{className:"text-center",children:[t("div",{className:"text-3xl font-bold",style:{color:e},children:i.value}),t("div",{className:"text-sm text-gray-600",children:i.label})]},f))})]}),t("div",{className:"p-6",children:h})]})})}export{N as a};
1
+ import{b as m}from"./chunk-Q6SEVCRG.mjs";import{a as g,e as u}from"./chunk-D76EO57Z.mjs";import x from"next/image";import{Quote as p}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function b(l){let s=l.replace("#",""),r=parseInt(s.substring(0,2),16),n=parseInt(s.substring(2,4),16),e=parseInt(s.substring(4,6),16);return(r*299+n*587+e*114)/1e3<128}function N({customerName:l="Acme Corporation",logoUrl:s,industry:r,projectDescription:n="Revolutionizing widget production with cloud technology",color:e="#3B82F6",quote:o,metrics:v=[],children:h=null}){var c;let d=((c=[{label:"Technology",value:"technology"},{label:"Finance",value:"finance"},{label:"Healthcare",value:"healthcare"},{label:"Retail",value:"retail"}].find(i=>i.value===r))==null?void 0:c.label)||void 0,y=b(e)?"text-white":"text-gray-900",w=b(e)?"white":e;return t(g,{className:"w-full max-w-4xl mx-auto overflow-hidden shadow-lg",children:a(u,{className:"p-0",children:[a("div",{className:`flex items-center ${y}`,style:{background:`linear-gradient(to right, ${e}, ${e}80)`,padding:"1.5rem"},children:[a("div",{className:"flex-grow pr-4",children:[t("h2",{className:"text-2xl font-bold mb-2",children:l}),d&&t(m,{variant:"secondary",className:"text-sm font-medium",children:d}),t("p",{className:"mt-4 text-lg",children:n})]}),s&&t("div",{className:"flex items-center justify-center bg-white rounded-lg",style:{padding:"1rem",height:"100px"},children:t(x,{src:s,alt:`${l} logo`,width:120,height:60,className:"object-contain h-full"})})]}),a("div",{className:"p-6",children:[o&&a("blockquote",{className:"border-l-4 pl-4 py-2 mb-6 italic",style:{borderColor:e,color:e},children:[t(p,{className:"inline-block mr-2",size:24,style:{color:e}}),o,t(p,{className:"inline-block ml-2",size:24,style:{color:e}})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-6",children:v.map((i,f)=>a("div",{className:"text-center",children:[t("div",{className:"text-3xl font-bold",style:{color:e},children:i.value}),t("div",{className:"text-sm text-gray-600",children:i.label})]},f))})]}),t("div",{className:"p-6",children:h})]})})}export{N as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as D}from"./chunk-WBNYJISJ.mjs";import{a as C}from"./chunk-IKRNLNH4.mjs";import{useState as x,useCallback as w}from"react";import{DragDropContext as W}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as h}from"react/jsx-runtime";var y=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function V({initialData:s,addNewDeal:g,updateDeal:n,addComment:b,addNewCustomer:f}){var i;let[r,c]=x(null),S=e=>{var o;return((o=s.deals)!=null?o:[]).filter(t=>t.status===e)},R=e=>e.reduce((o,t)=>o+(t.value||0),0),P=(e,o)=>{let t={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return e.reduce((a,d)=>a+(d.value||0)*t[o],0)},M=w(e=>{var m,p;let{source:o,destination:t}=e;if(!t||o.droppableId===t.droppableId&&o.index===t.index)return;let a=o.droppableId,d=t.droppableId,u=(m=s.deals)==null?void 0:m.filter(v=>v.id===o.index)[0],B=[...(p=s.deals)!=null?p:[]];u&&(u.status=d,n(u))},[n]);return l(W,{onDragEnd:M,children:h("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:y.filter(e=>e!=="Won"&&e!=="Lost").map(e=>{var t,a;let o=S(e);return l(D,{status:e,deals:o,customers:(t=s.customers)!=null?t:[],users:s.users,categories:(a=s.categories)!=null?a:[],onDealClick:c,calculateColumnValue:R,calculateWeightedValue:P,addNewDeal:e==="Cold"?g:void 0,onAddCustomer:f},e)})}),r&&l(C,{deal:r,users:s.users,customer:r.customer,categories:(i=s.categories)!=null?i:[],onClose:()=>c(null),onSave:n,onAddComment:e=>b(r.id.toString(),e)})]})})}export{V as a};
4
+ import{a as C}from"./chunk-IKRNLNH4.mjs";import{a as D}from"./chunk-H4QS5ON5.mjs";import{useState as x,useCallback as w}from"react";import{DragDropContext as W}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as h}from"react/jsx-runtime";var y=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function V({initialData:s,addNewDeal:g,updateDeal:n,addComment:b,addNewCustomer:f}){var i;let[r,c]=x(null),S=e=>{var o;return((o=s.deals)!=null?o:[]).filter(t=>t.status===e)},R=e=>e.reduce((o,t)=>o+(t.value||0),0),P=(e,o)=>{let t={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return e.reduce((a,d)=>a+(d.value||0)*t[o],0)},M=w(e=>{var m,p;let{source:o,destination:t}=e;if(!t||o.droppableId===t.droppableId&&o.index===t.index)return;let a=o.droppableId,d=t.droppableId,u=(m=s.deals)==null?void 0:m.filter(v=>v.id===o.index)[0],B=[...(p=s.deals)!=null?p:[]];u&&(u.status=d,n(u))},[n]);return l(W,{onDragEnd:M,children:h("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:y.filter(e=>e!=="Won"&&e!=="Lost").map(e=>{var t,a;let o=S(e);return l(D,{status:e,deals:o,customers:(t=s.customers)!=null?t:[],users:s.users,categories:(a=s.categories)!=null?a:[],onDealClick:c,calculateColumnValue:R,calculateWeightedValue:P,addNewDeal:e==="Cold"?g:void 0,onAddCustomer:f},e)})}),r&&l(C,{deal:r,users:s.users,customer:r.customer,categories:(i=s.categories)!=null?i:[],onClose:()=>c(null),onSave:n,onAddComment:e=>b(r.id.toString(),e)})]})})}export{V as a};
@@ -1,4 +1,4 @@
1
- import{a as p}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-VD4DXIN7.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as n}from"./chunk-WISCWNL2.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:r,sectionHeading:t}){return e("section",{className:o("sticky md:top-0 md:h-screen min-h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background overflow-auto"),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(d,{...t,alignment:"center",hasBottomSpacing:!0})})}),r&&r.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:r.map((l,a)=>e("div",{"data-aos":"fade-up","data-aos-delay":p([200,400,600],a),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},a))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:r,image:t,authors:l,title:a,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 p}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-TLVJ4LEU.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{a as n}from"./chunk-WISCWNL2.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:r,sectionHeading:t}){return e("section",{className:o("sticky md:top-0 md:h-screen min-h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background overflow-auto"),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(d,{...t,alignment:"center",hasBottomSpacing:!0})})}),r&&r.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:r.map((l,a)=>e("div",{"data-aos":"fade-up","data-aos-delay":p([200,400,600],a),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},a))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:r,image:t,authors:l,title:a,publishedAt:s,categories:v}){return i("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(g,{src:t.src,alt:t.alt,fill:!0,sizes:`
2
2
  (min-width:768px) 50vw,
3
3
  (min-width:1024px) 33vw,
4
4
  100vw
@@ -1 +1 @@
1
- import{a as v}from"./chunk-HAYRX2WO.mjs";import{d as f}from"./chunk-YNNW2C2U.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import k from"next/image";import{FaChevronRight as y,FaEnvelope as w,FaPaperPlane as C,FaPhone as L,FaCalendarDays as P}from"react-icons/fa6";import{jsx as a,jsxs as t}from"react/jsx-runtime";var T=o("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),p=o("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),g=o("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),h=o("flex items-center gap-5"),m=o("transition-colors duration-300 hover:text-accent dark:hover:text-white");function $({className:N,footerData:x,logoLight:b,logoDark:u}){let{about:n,columnOne:c,columnTwo:s,columnThree:r,footerBottom:d}=x;return t("footer",{className:o("sticky md:h-screen md:top-0 z-2 flex flex-col section-padding-primary dark bg-background overflow-hidden ",N),children:[a("div",{className:"py-16 md:py-20",children:a("div",{className:"container",children:t("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[t("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[a(v,{logoLight:b,logoDark:u}),a("p",{className:"mb-7 mt-3",children:n.description}),n.socialLinks&&n.socialLinks.length>0&&a("nav",{"aria-label":"social links",children:a("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:n.socialLinks.map((e,i)=>a("li",{children:a(l,{"aria-label":e.href,className:T,href:e.href,openNewTab:!0,children:a("span",{children:e.icon})})},i))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[a("h3",{className:p,children:c.title}),c.links&&c.links.length>0&&a("nav",{"aria-label":"footer links navigation",children:a("ul",{className:"grid gap-2",children:c.links.map(e=>t("li",{className:"flex items-center gap-2.5",children:[a("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:a(y,{})}),a(l,{href:e.href,openNewTab:e.openNewTab,className:m,children:e.label})]},e.label))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[a("h3",{className:p,children:s.title}),t("ul",{"aria-label":"addresses",className:"grid gap-5",children:[t("li",{className:h,children:[a("span",{className:g,children:a(C,{})}),a("address",{className:"not-italic",children:s.location})]}),t("li",{className:h,children:[a("span",{className:g,children:a(w,{})}),s.mails&&s.mails.length>0&&a("div",{className:"grid gap-1",children:s.mails.map((e,i)=>a("a",{href:`mailto:${e}`,className:m,children:e},i))})]}),s.phoneNumbers&&s.phoneNumbers.length>0&&t("li",{className:h,children:[a("span",{className:g,children:a(L,{})}),a("div",{className:"grid gap-1",children:s.phoneNumbers.map((e,i)=>a("a",{href:`tel:${e.split(" ").join("")}`,className:m,children:e},i))})]})]})]}),r&&t("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[a("h3",{className:p,children:r.title}),r.blogs&&r.blogs.length>0&&a("div",{className:"grid gap-6",children:r.blogs.map((e,i)=>t("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[a("div",{className:"flex-none overflow-hidden rounded-5",children:a(k,{...e.image,alt:e.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),t("div",{children:[t("p",{className:"flex items-center gap-2.5 dark:text-body",children:[a("span",{className:"text-accent",children:a(P,{})}),a("span",{children:f(e.date)})]}),a("h4",{className:"text-md font-bold leading-normal",children:a(l,{href:e.slug,className:"transition-colors duration-300 hover:text-accent",children:e.title})})]})]},i))})]})]})})}),a("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:a("div",{className:"container",children:t("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[a("p",{children:d.copyrightText}),d.links&&d.links.length>0&&a("nav",{"aria-label":"footer bottom navigation",children:a("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:d.links.map(e=>a("li",{children:a(l,{"aria-label":`Go to page ${e.label}`,href:e.href,openNewTab:e.openNewTab,className:m,children:e.label})},e.label))})})]})})})]})}export{$ as a};
1
+ import{a as v}from"./chunk-HAYRX2WO.mjs";import{d as f}from"./chunk-YNNW2C2U.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import k from"next/image";import{FaChevronRight as y,FaEnvelope as w,FaPaperPlane as C,FaPhone as L,FaCalendarDays as P}from"react-icons/fa6";import{jsx as a,jsxs as t}from"react/jsx-runtime";var T=o("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),p=o("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),g=o("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),h=o("flex items-center gap-5"),d=o("transition-colors duration-300 hover:text-accent dark:hover:text-white");function $({className:x,footerData:N,logoLight:b,logoDark:u}){let{about:n,columnOne:c,columnTwo:s,columnThree:r,footerBottom:m}=N;return t("footer",{className:o("sticky md:h-screen md:top-0 z-2 flex flex-col section-padding-primary dark bg-background overflow-hidden ",x),children:[a("div",{className:"py-16 md:py-20",children:a("div",{className:"container",children:t("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[t("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[a(v,{logoLight:b,logoDark:u}),a("p",{className:"mb-7 mt-3",children:n.description}),n.socialLinks&&n.socialLinks.length>0&&a("nav",{"aria-label":"social links",children:a("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:n.socialLinks.map((e,i)=>a("li",{children:a(l,{"aria-label":e.href,className:T,href:e.href,openNewTab:!0,children:a("span",{children:e.icon})})},i))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[a("h3",{className:p,children:c.title}),c.links&&c.links.length>0&&a("nav",{"aria-label":"footer links navigation",children:a("ul",{className:"grid gap-2",children:c.links.map(e=>t("li",{className:"flex items-center gap-2.5",children:[a("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:a(y,{})}),a(l,{href:e.href,openNewTab:e.openNewTab,className:d,children:e.label})]},e.label))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[a("h3",{className:p,children:s.title}),t("ul",{"aria-label":"addresses",className:"grid gap-5",children:[t("li",{className:h,children:[a("span",{className:g,children:a(C,{})}),a("address",{className:"not-italic",children:s.location})]}),t("li",{className:h,children:[a("span",{className:g,children:a(w,{})}),s.mails&&s.mails.length>0&&a("div",{className:"grid gap-1",children:s.mails.map((e,i)=>a("a",{href:`mailto:${e}`,className:d,children:e},i))})]}),s.phoneNumbers&&s.phoneNumbers.length>0&&t("li",{className:h,children:[a("span",{className:g,children:a(L,{})}),a("div",{className:"grid gap-1",children:s.phoneNumbers.map((e,i)=>a("a",{href:`tel:${e.split(" ").join("")}`,className:d,children:e},i))})]})]})]}),r&&t("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[a("h3",{className:p,children:r.title}),r.blogs&&r.blogs.length>0&&a("div",{className:"grid gap-6",children:r.blogs.map((e,i)=>t("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[a("div",{className:"flex-none overflow-hidden rounded-5",children:a(k,{...e.image,alt:e.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),t("div",{children:[t("p",{className:"flex items-center gap-2.5 dark:text-body",children:[a("span",{className:"text-accent",children:a(P,{})}),a("span",{children:f(e.date)})]}),a("h4",{className:"text-md leading-normal",children:a(l,{href:e.slug,className:"transition-colors duration-300 hover:text-accent",children:e.title})})]})]},i))})]})]})})}),a("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:a("div",{className:"container",children:t("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[a("p",{children:m.copyrightText}),m.links&&m.links.length>0&&a("nav",{"aria-label":"footer bottom navigation",children:a("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:m.links.map(e=>a("li",{children:a(l,{"aria-label":`Go to page ${e.label}`,href:e.href,openNewTab:e.openNewTab,className:d,children:e.label})},e.label))})})]})})})]})}export{$ as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-H7D3PZKE.mjs";import{a as m}from"./chunk-IQPZEEYJ.mjs";import{a as s}from"./chunk-3IUQUN6R.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 as m}from"./chunk-IQPZEEYJ.mjs";import{a}from"./chunk-H7D3PZKE.mjs";import{a as d}from"./chunk-DRJBYVJB.mjs";import{a as o}from"./chunk-VZXLXNVY.mjs";import{a as s}from"./chunk-Y2KKUQDU.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 E,f as T}from"./chunk-CGBVZQYY.mjs";import{a as C}from"./chunk-BSQVKZCW.mjs";import{a as N}from"./chunk-Y5VTKEKS.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 e}from"./chunk-FCCL6W7R.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
1
+ import{a as e}from"./chunk-JPFBD2KD.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-XDP6BKTK.mjs";import{a as i}from"./chunk-H4SBQSGY.mjs";import{a as t}from"./chunk-NIQ4466A.mjs";import{jsx as p,jsxs as s}from"react/jsx-runtime";function l({isMenuOpen:e,logoLight:o,logoDark:r,menuItems:a,className:n}){return s("div",{className:t("fixed top-0 left-0 right-0 z-50",n),children:[p(i,{isMenuOpen:e,logoLight:o,logoDark:r,menuItems:a}),p(m,{isMenuOpen:e,logoLight:o,logoDark:r,menuItems:a})]})}export{l as a};
1
+ import{a as m}from"./chunk-XDP6BKTK.mjs";import{a as i}from"./chunk-L5JFZUB6.mjs";import{a as t}from"./chunk-NIQ4466A.mjs";import{jsx as p,jsxs as s}from"react/jsx-runtime";function l({isMenuOpen:e,logoLight:o,logoDark:r,menuItems:a,className:n}){return s("div",{className:t("fixed top-0 left-0 right-0 z-50",n),children:[p(i,{isMenuOpen:e,logoLight:o,logoDark:r,menuItems:a}),p(m,{isMenuOpen:e,logoLight:o,logoDark:r,menuItems:a})]})}export{l as a};
@@ -0,0 +1 @@
1
+ import{a as d}from"./chunk-UMILL4LR.mjs";import{a as n}from"./chunk-TLVJ4LEU.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as u,jsx as e,jsxs as t}from"react/jsx-runtime";function S(s){let{sectionHeading:c,image:a}=s;return t(u,{children:[e("section",{className:"sticky md:top-0 md:h-screen flex flex-col z-2 light bg-background 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(l,{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(n,{...c,invert:!0})}),e(d,{})]})})})]})}),e("section",{className:"sticky md:top-0 md:h-screen flex flex-col items-center justify-center z-2 dark bg-background 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,m)=>{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]]})]})]},m)})})]})})})})})]})}export{S as a};
@@ -1 +1 @@
1
- import{a as y}from"./chunk-KF77MUOK.mjs";import{b as k,c as d}from"./chunk-ZWKNWD42.mjs";import{a as m}from"./chunk-2A6JF3LE.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Fragment as R}from"react";import F from"next/image";import{jsx as a,jsxs as B}from"react/jsx-runtime";var b={content:y,cta:k,mediaBlock:m,imageBlock:m,features:d,reusableContentBlock:C},N=r=>{let{blocks:e}=r;return e&&Array.isArray(e)&&e.length>0?a("section",{id:"render-blocks",className:i(r.fill?"h-full w-full":""),children:e.map((t,s)=>{var c,u;console.log("block",t);let{blockType:n}=t,o=t==null?void 0:t.theme;if(n&&n in b){let f=b[n];if(n==="reusableContentBlock")return a(R,{children:a(N,{blocks:t.reusableContent.layout})},s);if(f)return B("div",{className:i("py-6 relative",r.fill&&"flex h-full items-center justify-center"),children:[a(p,{block:t,index:s}),a("div",{className:i("container h-full",((c=o==null?void 0:o.settings)==null?void 0:c.theme)==="dark"?"dark":((u=o==null?void 0:o.settings)==null?void 0:u.theme)==="green"?"green":""),children:a(f,{...t})})]},s)}return null})}):null},p=r=>{var l,t,s,n,o;if(!("theme"in r.block))return null;let e=(l=r.block)==null?void 0:l.theme;if(e.settings.background==="image"){let c={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return B("div",{className:i("absolute inset-0 w-full h-full -z-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[a(F,{src:((s=(t=e.settings)==null?void 0:t.image)==null?void 0:s.url)||"/placeholder.svg",alt:((o=(n=e.settings)==null?void 0:n.image)==null?void 0:o.alt)||"",fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&a("div",{className:"absolute inset-0",style:{background:c.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 a("div",{className:i("absolute inset-0 -z-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};import{Fragment as v,jsx as g,jsxs as T}from"react/jsx-runtime";var C=r=>{let{customId:e,reusableContent:l}=r;return typeof l=="object"&&l!==null?g(P,{blocks:l.layout}):g(v,{})},h={content:y,cta:k,mediaBlock:m,imageBlock:m,features:d},P=r=>{let{blocks:e}=r;return e&&Array.isArray(e)&&e.length>0?g(v,{children:e.map((t,s)=>{var c,u;let{blockType:n}=t,o=t==null?void 0:t.theme;if(n&&n in h){let f=h[n];if(f)return T("div",{className:"py-6 relative",children:[g(p,{block:t,index:s}),g("div",{className:i(((c=o==null?void 0:o.settings)==null?void 0:c.theme)==="dark"?"dark":((u=o==null?void 0:o.settings)==null?void 0:u.theme)==="green"?"green":""),children:g(f,{...t})})]},s)}return null})}):null};export{C as a,N as b,p as c};
1
+ import{a as y}from"./chunk-LI327LRM.mjs";import{b as k,c as d}from"./chunk-BCAE5YI2.mjs";import{a as m}from"./chunk-RJGKFNZL.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Fragment as R}from"react";import F from"next/image";import{jsx as a,jsxs as B}from"react/jsx-runtime";var b={content:y,cta:k,mediaBlock:m,imageBlock:m,features:d,reusableContentBlock:C},N=r=>{let{blocks:e}=r;return e&&Array.isArray(e)&&e.length>0?a("section",{id:"render-blocks",className:i(r.fill?"h-full w-full":""),children:e.map((t,s)=>{var c,u;console.log("block",t);let{blockType:n}=t,o=t==null?void 0:t.theme;if(n&&n in b){let f=b[n];if(n==="reusableContentBlock")return a(R,{children:a(N,{blocks:t.reusableContent.layout})},s);if(f)return B("div",{className:i("py-6 relative",r.fill&&"flex h-full items-center justify-center"),children:[a(p,{block:t,index:s}),a("div",{className:i("container h-full",((c=o==null?void 0:o.settings)==null?void 0:c.theme)==="dark"?"dark":((u=o==null?void 0:o.settings)==null?void 0:u.theme)==="green"?"green":""),children:a(f,{...t})})]},s)}return null})}):null},p=r=>{var l,t,s,n,o;if(!("theme"in r.block))return null;let e=(l=r.block)==null?void 0:l.theme;if(e.settings.background==="image"){let c={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return B("div",{className:i("absolute inset-0 w-full h-full -z-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[a(F,{src:((s=(t=e.settings)==null?void 0:t.image)==null?void 0:s.url)||"/placeholder.svg",alt:((o=(n=e.settings)==null?void 0:n.image)==null?void 0:o.alt)||"",fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&a("div",{className:"absolute inset-0",style:{background:c.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 a("div",{className:i("absolute inset-0 -z-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};import{Fragment as v,jsx as g,jsxs as T}from"react/jsx-runtime";var C=r=>{let{customId:e,reusableContent:l}=r;return typeof l=="object"&&l!==null?g(P,{blocks:l.layout}):g(v,{})},h={content:y,cta:k,mediaBlock:m,imageBlock:m,features:d},P=r=>{let{blocks:e}=r;return e&&Array.isArray(e)&&e.length>0?g(v,{children:e.map((t,s)=>{var c,u;let{blockType:n}=t,o=t==null?void 0:t.theme;if(n&&n in h){let f=h[n];if(f)return T("div",{className:"py-6 relative",children:[g(p,{block:t,index:s}),g("div",{className:i(((c=o==null?void 0:o.settings)==null?void 0:c.theme)==="dark"?"dark":((u=o==null?void 0:o.settings)==null?void 0:u.theme)==="green"?"green":""),children:g(f,{...t})})]},s)}return null})}):null};export{C as a,N as b,p as c};
@@ -1 +1 @@
1
- import{a}from"./chunk-MGS3DQ22.mjs";import{e as r}from"./chunk-ZWKNWD42.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-XXTN5HMN.mjs";import{e as r}from"./chunk-BCAE5YI2.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{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-2IKC7MAP.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};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-SV7NMNDI.mjs";import{a as c}from"./chunk-UESKYRNK.mjs";import{a as s}from"./chunk-5KL4BLZI.mjs";import{a as t}from"./chunk-NIQ4466A.mjs";import{jsx as e}from"react/jsx-runtime";function u({services:r,className:n,image:o}){return e("section",{id:"next-section",className:t("sticky md:h-screen snap-start md:top-0 flex flex-col items-center justify-center section-padding-primary dark bg-background",n),style:{backgroundImage:`url(${o==null?void 0:o.src})`,backgroundSize:"cover",backgroundPosition:"center"},children:e(c,{className:"py-8",children:r&&r.length>0&&e("div",{className:"flex flex-wrap justify-center gap-y-8",children:r.map((p,a)=>e("div",{"data-aos":"fade-up","data-aos-delay":i([200,400,600],a),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:e(s,{...p})},a))})})})}export{u as a};
@@ -1,2 +1,2 @@
1
- import{e as r}from"./chunk-ZWKNWD42.mjs";import c from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var h=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
1
+ import{e as r}from"./chunk-BCAE5YI2.mjs";import c from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var h=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
2
2
  dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[a&&e("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),e("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),e("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),x=({title:a})=>e("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:e("div",{className:"container",children:e("span",{className:"container text-4xl px-6",children:a})})}),g=a=>{var l,o;let{title:d,hero:t,logoImage:s}=a;return console.log("TitleSlide",t),i("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[e("div",{className:"absolute inset-0",children:e(c,{src:t.media&&t.media.url?t.media.url:"/hero.png",alt:"Background",width:t.media&&t.media.width&&(l=t.media.width)!=null?l:1920,height:t.media&&t.media.height&&(o=t.media.height)!=null?o:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),e("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:s&&e("div",{className:"h-24",children:e(c,{src:s.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),e("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),i("div",{className:"relative pl-24 z-10 max-w-3xl",children:[e("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:d}),t.richText&&e(r,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};export{h as a,x as b,g as c};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g}from"./chunk-23BDC5JG.mjs";import{a as S}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as p}from"./chunk-UMPQUYHD.mjs";import{a as u}from"./chunk-3YZN4MJB.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-AWFQEK7A.mjs";import{b as n,d as b,f as c}from"./chunk-2IKC7MAP.mjs";import{a as s}from"./chunk-Y5VTKEKS.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:f,logoDark:S,...i.header,className:"bg-sidebar"}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(g,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{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(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{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(u,{})]})}export{h as a};
4
+ import{a as g}from"./chunk-UBA3ZRKC.mjs";import{a as S}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as p}from"./chunk-6NHBVSPJ.mjs";import{a as u}from"./chunk-3YZN4MJB.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-AWFQEK7A.mjs";import{b as n,d as b,f as c}from"./chunk-5YTDIEDJ.mjs";import{a as s}from"./chunk-Y5VTKEKS.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:f,logoDark:S,...i.header,className:"bg-sidebar"}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(g,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{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(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{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(u,{})]})}export{h as a};
@@ -1 +1 @@
1
- import{a as g}from"./chunk-44VMK4FL.mjs";import{i as D,j as H,k as L,l as E,m as M,n as _,o as G}from"./chunk-O5BAW5XQ.mjs";import{a as P}from"./chunk-2A6JF3LE.mjs";import{a as w}from"./chunk-4YJ3HV64.mjs";import{a as T}from"./chunk-2NFKSNJW.mjs";import{a as h}from"./chunk-SFLOMJ2U.mjs";import{b as C}from"./chunk-BDX257W2.mjs";import{a as s}from"./chunk-NIQ4466A.mjs";import{jsx as b,jsxs as j}from"react/jsx-runtime";var R=({links:a,richText:t})=>b("div",{className:"container",children:j("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:[b("div",{className:"max-w-[48rem] flex items-center",children:t&&b(p,{className:"mb-0",content:t,enableGutter:!1})}),b("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:r},c)=>b(g,{size:"lg",...r},c))})]})});import{jsx as o,jsxs as B}from"react/jsx-runtime";function S(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function I({variant:a="outline",className:t,icon:r,iconSize:c="large",width:i="auto",order:e=0,heading:n,subheading:u,content:m,statistic:f,buttonText:y,buttonHref:x}){let N={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},A={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:s("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",N[a],a==="outline"?"text-gray-900":"text-white",t,A[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[o("div",{className:"flex items-center gap-4 mb-2",children:o($,{icon:r,heading:n,variant:a,iconSize:c})}),f&&o("div",{className:"mb-6",children:o("div",{className:s("text-4xl text-wrap font-bold leading-none overflow-hidden",a==="outline"||a==="light"?"text-primary":"text-white"),children:f})}),u&&o("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&o("div",{className:s("space-y-6"),children:o(p,{enableGutter:!1,content:m,enableProse:!1,className:s(a==="outline"||a==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&o("div",{className:s("space-y-6",a==="outline"||a==="light"?"text-gray-900":"text-gray-100"),children:m}),y&&o("div",{className:"mt-auto pt-6 flex items-center justify-center",children:o(C,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:o("a",{href:x,children:y})})}),a==="radial"&&o("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%)"}})]})}var $=({icon:a,heading:t,variant:r,iconSize:c})=>a&&c==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[S(a)&&o("div",{className:s("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-primary":"text-white",c==="small"?"mt-2":""),children:o(h,{type:a.type,iconName:a.iconName,size:"2x"})}),o("div",{className:s("font-semibold",r==="outline"||r==="light"?"text-primary":"text-white",c==="small"?"text-2xl":"text-3xl"),children:t})]}):a?B("div",{className:"flex flex-col gap-4",children:[S(a)&&o("div",{className:s("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:o(h,{type:a.type,iconName:a.iconName,size:"4x"})}),o("h3",{className:s("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):o("div",{className:"flex items-center gap-4 mb-2",children:o("div",{className:s("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as d,jsxs as J}from"react/jsx-runtime";var F=({title:a,description:t,features:r,id:c,nested:i=!1})=>J("section",{className:s(!i&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&d("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:c||"",children:a}),t&&typeof t=="string"&&d("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&d("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:d(p,{content:t,enableGutter:!1})}),d("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((e,n)=>{var m,f,y,x,N;let u=()=>{if(e.icon&&"type"in e.icon&&e.icon.type!=="none")return{type:e.icon.type,iconName:e.icon.icon}};return d(I,{variant:((m=e.settings)==null?void 0:m.card)==="default"?"light":((f=e.settings)==null?void 0:f.card)||"outline",icon:u()||void 0,iconSize:((y=e.settings)==null?void 0:y.iconSize)||"large",width:"auto",order:n,heading:e.title||"",content:e.content||void 0,statistic:e.statistic||void 0,buttonText:(x=e.link)!=null&&x.url?"Find out more":void 0,buttonHref:((N=e.link)==null?void 0:N.url)||void 0},n)})})]});import U,{Fragment as X}from"react";import{jsx as l}from"react/jsx-runtime";function k({nodes:a}){return l(X,{children:a==null?void 0:a.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let e=l(U.Fragment,{children:t.text},r);return t.format&1&&(e=l("strong",{children:e},r)),t.format&2&&(e=l("em",{children:e},r)),t.format&4&&(e=l("span",{style:{textDecoration:"line-through"},children:e},r)),t.format&8&&(e=l("span",{style:{textDecoration:"underline"},children:e},r)),t.format&16&&(e=l("code",{children:t.text},r)),t.format&32&&(e=l("sub",{children:e},r)),t.format&64&&(e=l("sup",{children:e},r)),e}if(t.type==="table")return l("table",{children:l("tbody",{children:t.children.map((e,n)=>l("tr",{children:e.children.map((u,m)=>l("td",{children:k({nodes:u.children})},m))},n))})},r);let c=e=>{if(e.children==null)return null;if((e==null?void 0:e.type)==="list"&&(e==null?void 0:e.listType)==="check")for(let n of e.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return k({nodes:e.children})},i="children"in t?c(t):"";if(t.type==="block"){let e=t.fields,n=e==null?void 0:e.blockType;if(!e||!n)return null;switch(n){case"cta":return l(R,{...e},r);case"mediaBlock":return l(P,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return l(w,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return l(z,{className:"col-start-2 mb-4",...e},r);case"code":return l(T,{className:"col-start-2",...e},r);case"features":return l(F,{...e,nested:!0},r);case"reusableContentBlock":k({nodes:e.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return l("br",{className:"col-start-2"},r);case"paragraph":return l("p",{className:"col-start-2",children:i},r);case"heading":{let e=t==null?void 0:t.tag;return l(e,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:i},r)}case"list":{let e=t==null?void 0:t.tag;return l(e,{className:"list col-start-2",children:i},r)}case"listitem":return(t==null?void 0:t.checked)!=null?l("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:i},r):l("li",{value:t==null?void 0:t.value,children:i},r);case"quote":return l("blockquote",{className:"col-start-2",children:i},r);case"link":{let e=t.fields;return l(g,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:i},r)}case"autolink":{let e=t.fields;return l(g,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:i},r)}default:return null}})})}import{jsx as q}from"react/jsx-runtime";var p=({className:a,content:t,enableGutter:r=!0,enableProse:c=!0})=>{var i;return t?q("div",{className:s({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":c},a),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&k({nodes:(i=t==null?void 0:t.root)==null?void 0:i.children})}):null};import{jsx as v}from"react/jsx-runtime";var z=({className:a,content:t,style:r})=>v("div",{className:s("mx-auto my-8 w-full",a),children:v("div",{className:s("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:v(p,{content:t,enableGutter:!1,enableProse:!1})})});export{z as a,R as b,F as c,k as d,p as e,I as f};
1
+ import{i as D,j as H,k as L,l as E,m as M,n as _,o as G}from"./chunk-O5BAW5XQ.mjs";import{a as g}from"./chunk-44VMK4FL.mjs";import{a as P}from"./chunk-RJGKFNZL.mjs";import{a as w}from"./chunk-6DHYRATS.mjs";import{a as T}from"./chunk-2NFKSNJW.mjs";import{a as h}from"./chunk-SFLOMJ2U.mjs";import{b as C}from"./chunk-BDX257W2.mjs";import{a as s}from"./chunk-NIQ4466A.mjs";import{jsx as b,jsxs as j}from"react/jsx-runtime";var R=({links:a,richText:t})=>b("div",{className:"container",children:j("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:[b("div",{className:"max-w-[48rem] flex items-center",children:t&&b(p,{className:"mb-0",content:t,enableGutter:!1})}),b("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:r},c)=>b(g,{size:"lg",...r},c))})]})});import{jsx as o,jsxs as B}from"react/jsx-runtime";function S(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function I({variant:a="outline",className:t,icon:r,iconSize:c="large",width:i="auto",order:e=0,heading:n,subheading:u,content:m,statistic:f,buttonText:y,buttonHref:x}){let N={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},A={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:s("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",N[a],a==="outline"?"text-gray-900":"text-white",t,A[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[o("div",{className:"flex items-center gap-4 mb-2",children:o($,{icon:r,heading:n,variant:a,iconSize:c})}),f&&o("div",{className:"mb-6",children:o("div",{className:s("text-4xl text-wrap font-bold leading-none overflow-hidden",a==="outline"||a==="light"?"text-primary":"text-white"),children:f})}),u&&o("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&o("div",{className:s("space-y-6"),children:o(p,{enableGutter:!1,content:m,enableProse:!1,className:s(a==="outline"||a==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&o("div",{className:s("space-y-6",a==="outline"||a==="light"?"text-gray-900":"text-gray-100"),children:m}),y&&o("div",{className:"mt-auto pt-6 flex items-center justify-center",children:o(C,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:o("a",{href:x,children:y})})}),a==="radial"&&o("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%)"}})]})}var $=({icon:a,heading:t,variant:r,iconSize:c})=>a&&c==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[S(a)&&o("div",{className:s("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-primary":"text-white",c==="small"?"mt-2":""),children:o(h,{type:a.type,iconName:a.iconName,size:"2x"})}),o("div",{className:s("font-semibold",r==="outline"||r==="light"?"text-primary":"text-white",c==="small"?"text-2xl":"text-3xl"),children:t})]}):a?B("div",{className:"flex flex-col gap-4",children:[S(a)&&o("div",{className:s("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:o(h,{type:a.type,iconName:a.iconName,size:"4x"})}),o("h3",{className:s("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):o("div",{className:"flex items-center gap-4 mb-2",children:o("div",{className:s("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as d,jsxs as J}from"react/jsx-runtime";var F=({title:a,description:t,features:r,id:c,nested:i=!1})=>J("section",{className:s(!i&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&d("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:c||"",children:a}),t&&typeof t=="string"&&d("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&d("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:d(p,{content:t,enableGutter:!1})}),d("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((e,n)=>{var m,f,y,x,N;let u=()=>{if(e.icon&&"type"in e.icon&&e.icon.type!=="none")return{type:e.icon.type,iconName:e.icon.icon}};return d(I,{variant:((m=e.settings)==null?void 0:m.card)==="default"?"light":((f=e.settings)==null?void 0:f.card)||"outline",icon:u()||void 0,iconSize:((y=e.settings)==null?void 0:y.iconSize)||"large",width:"auto",order:n,heading:e.title||"",content:e.content||void 0,statistic:e.statistic||void 0,buttonText:(x=e.link)!=null&&x.url?"Find out more":void 0,buttonHref:((N=e.link)==null?void 0:N.url)||void 0},n)})})]});import U,{Fragment as X}from"react";import{jsx as l}from"react/jsx-runtime";function k({nodes:a}){return l(X,{children:a==null?void 0:a.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let e=l(U.Fragment,{children:t.text},r);return t.format&1&&(e=l("strong",{children:e},r)),t.format&2&&(e=l("em",{children:e},r)),t.format&4&&(e=l("span",{style:{textDecoration:"line-through"},children:e},r)),t.format&8&&(e=l("span",{style:{textDecoration:"underline"},children:e},r)),t.format&16&&(e=l("code",{children:t.text},r)),t.format&32&&(e=l("sub",{children:e},r)),t.format&64&&(e=l("sup",{children:e},r)),e}if(t.type==="table")return l("table",{children:l("tbody",{children:t.children.map((e,n)=>l("tr",{children:e.children.map((u,m)=>l("td",{children:k({nodes:u.children})},m))},n))})},r);let c=e=>{if(e.children==null)return null;if((e==null?void 0:e.type)==="list"&&(e==null?void 0:e.listType)==="check")for(let n of e.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return k({nodes:e.children})},i="children"in t?c(t):"";if(t.type==="block"){let e=t.fields,n=e==null?void 0:e.blockType;if(!e||!n)return null;switch(n){case"cta":return l(R,{...e},r);case"mediaBlock":return l(P,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return l(w,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return l(z,{className:"col-start-2 mb-4",...e},r);case"code":return l(T,{className:"col-start-2",...e},r);case"features":return l(F,{...e,nested:!0},r);case"reusableContentBlock":k({nodes:e.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return l("br",{className:"col-start-2"},r);case"paragraph":return l("p",{className:"col-start-2",children:i},r);case"heading":{let e=t==null?void 0:t.tag;return l(e,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:i},r)}case"list":{let e=t==null?void 0:t.tag;return l(e,{className:"list col-start-2",children:i},r)}case"listitem":return(t==null?void 0:t.checked)!=null?l("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:i},r):l("li",{value:t==null?void 0:t.value,children:i},r);case"quote":return l("blockquote",{className:"col-start-2",children:i},r);case"link":{let e=t.fields;return l(g,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:i},r)}case"autolink":{let e=t.fields;return l(g,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:i},r)}default:return null}})})}import{jsx as q}from"react/jsx-runtime";var p=({className:a,content:t,enableGutter:r=!0,enableProse:c=!0})=>{var i;return t?q("div",{className:s({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":c},a),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&k({nodes:(i=t==null?void 0:t.root)==null?void 0:i.children})}):null};import{jsx as v}from"react/jsx-runtime";var z=({className:a,content:t,style:r})=>v("div",{className:s("mx-auto my-8 w-full",a),children:v("div",{className:s("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:v(p,{content:t,enableGutter:!1,enableProse:!1})})});export{z as a,R as b,F as c,k as d,p as e,I as f};
@@ -1 +1 @@
1
- import{a as d,b as l,c as m,e as c}from"./chunk-D76EO57Z.mjs";import{b as o}from"./chunk-Q6SEVCRG.mjs";import{CalendarIcon as x,UserIcon as C}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function N({deal:a,customer:s,categories:p,onClick:f}){let r=p.find(i=>{var n;return i.type==="proposition"&&((n=a.categories)!=null?n:[]).includes(i.id)});return t(d,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:f,children:[t(l,{className:"pb-2",children:[e("div",{className:"flex justify-between items-center",children:e(m,{className:"text-lg font-semibold text-gray-800",children:s==null?void 0:s.name})}),e("p",{className:"text-sm text-gray-500 mt-1",children:a.description})]}),t(c,{children:[t("div",{className:"flex justify-between items-center mb-3",children:[t("div",{className:"flex items-center text-sm text-gray-600",children:[e(C,{className:"w-4 h-4 mr-1 text-xs"}),e("span",{children:a.assignee.name})]}),e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})]}),e("div",{className:"flex justify-between items-left mb-3",children:t("div",{className:"flex items-center text-xs text-gray-500",children:[e(x,{className:"w-3 h-3 mr-1"}),e("span",{children:new Date(a.updatedAt).toLocaleDateString()})]})}),e("div",{className:"flex justify-between items-left",children:r&&e(o,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}export{N as a};
1
+ import{b as o}from"./chunk-Q6SEVCRG.mjs";import{a as d,b as l,c as m,e as c}from"./chunk-D76EO57Z.mjs";import{CalendarIcon as x,UserIcon as C}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function N({deal:a,customer:s,categories:p,onClick:f}){let r=p.find(i=>{var n;return i.type==="proposition"&&((n=a.categories)!=null?n:[]).includes(i.id)});return t(d,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:f,children:[t(l,{className:"pb-2",children:[e("div",{className:"flex justify-between items-center",children:e(m,{className:"text-lg font-semibold text-gray-800",children:s==null?void 0:s.name})}),e("p",{className:"text-sm text-gray-500 mt-1",children:a.description})]}),t(c,{children:[t("div",{className:"flex justify-between items-center mb-3",children:[t("div",{className:"flex items-center text-sm text-gray-600",children:[e(C,{className:"w-4 h-4 mr-1 text-xs"}),e("span",{children:a.assignee.name})]}),e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})]}),e("div",{className:"flex justify-between items-left mb-3",children:t("div",{className:"flex items-center text-xs text-gray-500",children:[e(x,{className:"w-3 h-3 mr-1"}),e("span",{children:new Date(a.updatedAt).toLocaleDateString()})]})}),e("div",{className:"flex justify-between items-left",children:r&&e(o,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}export{N 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-IO222G5L.mjs";import{a as p}from"./chunk-QMFZRG7O.mjs";import{a as f}from"./chunk-UMPQUYHD.mjs";import{a as c}from"./chunk-3YZN4MJB.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{b as s,d as b,f as u}from"./chunk-2IKC7MAP.mjs";import{a as n}from"./chunk-Y5VTKEKS.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 f}from"./chunk-6NHBVSPJ.mjs";import{a as c}from"./chunk-3YZN4MJB.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 S}from"./chunk-AAI2VZST.mjs";import{a as p}from"./chunk-KEUZSK3N.mjs";import{b as s,d as b,f as u}from"./chunk-5YTDIEDJ.mjs";import{a as n}from"./chunk-Y5VTKEKS.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 p}from"./chunk-XDP6BKTK.mjs";import{a as f}from"./chunk-H4SBQSGY.mjs";import{a as u}from"./chunk-NIQ4466A.mjs";import{useState as v,useEffect as x}from"react";import{Menu as b,ChevronDown as w}from"lucide-react";import S from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function O({logoVideo:g,logoLight:i,logoDark:n,menuItems:r,title:a,subtitle:c}){let[s,d]=v(!1),[o,m]=v(!1),h=()=>{let l=document.getElementById("next-section");l&&l.scrollIntoView({behavior:"smooth"})};return x(()=>{let l=()=>{window.scrollY>100?d(!0):(d(!1),m(!1))};return window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),t("div",{children:[t("div",{className:"sticky top-0 h-screen",children:[t("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),!s&&!o&&e("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!o)},children:e(b,{className:"w-6 h-6 text-white"})}),t("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[!s&&!o&&e(S,{src:g,alt:"Cortex Reply Logo",width:720,height:320,className:u("absolute top-2.5 h-auto w-auto mt-8 hidden lg:block",o&&"lg:hidden")}),t("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[e("h1",{className:"text-6xl font-bold pt-auto mb-12",children:a&&a}),e("div",{className:"text-3xl mb-8 max-w-2xl",children:c&&c})]}),e("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:e("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:h,children:e(w,{size:64})})})]})]}),t("div",{className:"fixed top-0 left-0 right-0 z-50",children:[e(f,{isMenuOpen:s||o,logoLight:i,logoDark:n,menuItems:r}),e(p,{isMenuOpen:!0,logoLight:i,logoDark:n,menuItems:r})]})]})}export{O as a};
4
+ import{a as p}from"./chunk-XDP6BKTK.mjs";import{a as f}from"./chunk-L5JFZUB6.mjs";import{a as u}from"./chunk-NIQ4466A.mjs";import{useState as v,useEffect as x}from"react";import{Menu as b,ChevronDown as w}from"lucide-react";import S from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function O({logoVideo:g,logoLight:i,logoDark:n,menuItems:r,title:a,subtitle:c}){let[s,d]=v(!1),[o,m]=v(!1),h=()=>{let l=document.getElementById("next-section");l&&l.scrollIntoView({behavior:"smooth"})};return x(()=>{let l=()=>{window.scrollY>100?d(!0):(d(!1),m(!1))};return window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),t("div",{children:[t("div",{className:"sticky top-0 h-screen",children:[t("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),!s&&!o&&e("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!o)},children:e(b,{className:"w-6 h-6 text-white"})}),t("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[!s&&!o&&e(S,{src:g,alt:"Cortex Reply Logo",width:720,height:320,className:u("absolute top-2.5 h-auto w-auto mt-8 hidden lg:block",o&&"lg:hidden")}),t("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[e("h1",{className:"text-6xl font-bold pt-auto mb-12",children:a&&a}),e("div",{className:"text-3xl mb-8 max-w-2xl",children:c&&c})]}),e("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:e("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:h,children:e(w,{size:64})})})]})]}),t("div",{className:"fixed top-0 left-0 right-0 z-50",children:[e(f,{isMenuOpen:s||o,logoLight:i,logoDark:n,menuItems:r}),e(p,{isMenuOpen:!0,logoLight:i,logoDark:n,menuItems:r})]})]})}export{O 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-VNNW6UXI.mjs";import{a as o}from"./chunk-OGB5WICP.mjs";import{a as t}from"./chunk-UMPQUYHD.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-TNAP6TO7.mjs";import{a as o}from"./chunk-OGB5WICP.mjs";import{a as t}from"./chunk-6NHBVSPJ.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 as C}from"./chunk-TPJ3YV7Z.mjs";import{a as b}from"./chunk-FZFHGTZB.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-TPJ3YV7Z.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 +1 @@
1
- import{a as p}from"./chunk-MGS3DQ22.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var c=s=>{let{posts:r}=s;return o("div",{className:i("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:r==null?void 0:r.map((a,t)=>typeof a=="object"&&a!==null?o("div",{className:"col-span-4",children:o(p,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},t):null)})})})};export{c as a};
1
+ import{a as p}from"./chunk-XXTN5HMN.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var c=s=>{let{posts:r}=s;return o("div",{className:i("container"),children:o("div",{children:o("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:r==null?void 0:r.map((a,t)=>typeof a=="object"&&a!==null?o("div",{className:"col-span-4",children:o(p,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},t):null)})})})};export{c as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{e as c}from"./chunk-ZWKNWD42.mjs";import{a as o}from"./chunk-44VMK4FL.mjs";import{a as s}from"./chunk-FCCL6W7R.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-5xl prose-headings:text-foreground prose-p:text-foreground",content:i,enableGutter:!0}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:n},l)=>e("li",{children:e(o,{...n})},l))})]})}),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-BCAE5YI2.mjs";import{a as o}from"./chunk-44VMK4FL.mjs";import{a as s}from"./chunk-JPFBD2KD.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-5xl prose-headings:text-foreground prose-p:text-foreground",content:i,enableGutter:!0}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:n},l)=>e("li",{children:e(o,{...n})},l))})]})}),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}from"./chunk-WLBZXBU3.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-WLBZXBU3.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,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-2IKC7MAP.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{a as s,b as i,c as l,e as d}from"./chunk-D76EO57Z.mjs";import{b as p}from"./chunk-Q6SEVCRG.mjs";import f from"next/image";import{jsx as a,jsxs as t}from"react/jsx-runtime";var N=({name:o,email:x,profilePicture:n,workHistory:m=[],certifications:c=[],areasOfExpertise:g=[]})=>a("div",{className:"bg-gray-100 p-6 rounded-lg shadow-lg max-w-6xl mx-auto",children:t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[t(s,{className:"md:col-span-1",children:[t(i,{children:[a("div",{className:"w-32 h-32 mx-auto bg-gray-300 rounded-full overflow-hidden",children:n?a(f,{src:n,alt:o,width:128,height:128,className:"object-cover w-full h-full"}):a("div",{className:"w-full h-full flex items-center justify-center text-gray-500",children:"No Image"})}),a(l,{className:"text-2xl font-bold text-center mt-4",children:o||"Consultant Name"}),a("p",{className:"text-gray-600 text-center",children:x||"email@example.com"})]}),t(d,{children:[a("h3",{className:"text-xl font-semibold mb-2 text-gray-700",children:"Areas of Expertise"}),a("div",{className:"flex flex-wrap gap-2",children:g.length>0?g.map((e,r)=>a(p,{variant:"secondary",className:"text-sm",children:e.area},r)):a("p",{className:"text-gray-600",children:"No areas of expertise available"})})]})]}),t(s,{className:"md:col-span-2",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Work History"})}),a(d,{children:m.length>0?m.map((e,r)=>t("div",{className:"mb-4 pb-4 border-b border-gray-200 last:border-b-0",children:[t("h4",{className:"font-medium text-gray-800",children:[e.position," at ",e.company]}),t("p",{className:"text-sm text-gray-600",children:[e.startDate," - ",e.endDate||"Present"]}),e.description&&a("p",{className:"mt-1 text-gray-700",children:e.description})]},r)):a("p",{className:"text-gray-600",children:"No work history available"})})]}),t(s,{className:"md:col-span-3",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Certifications"})}),a(d,{children:c.length>0?a("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:c.map((e,r)=>t("div",{className:"bg-white p-4 rounded-lg shadow",children:[a("h4",{className:"font-medium text-gray-800",children:e.name}),e.issuer&&a("p",{className:"text-sm text-gray-600",children:e.issuer}),e.dateObtained&&t("p",{className:"text-xs text-gray-500 mt-1",children:["Obtained: ",e.dateObtained]})]},r))}):a("p",{className:"text-gray-600",children:"No certifications available"})})]})]})}),u=N;export{u as a};
1
+ import{b as p}from"./chunk-Q6SEVCRG.mjs";import{a as s,b as i,c as l,e as d}from"./chunk-D76EO57Z.mjs";import f from"next/image";import{jsx as a,jsxs as t}from"react/jsx-runtime";var N=({name:o,email:x,profilePicture:n,workHistory:m=[],certifications:c=[],areasOfExpertise:g=[]})=>a("div",{className:"bg-gray-100 p-6 rounded-lg shadow-lg max-w-6xl mx-auto",children:t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[t(s,{className:"md:col-span-1",children:[t(i,{children:[a("div",{className:"w-32 h-32 mx-auto bg-gray-300 rounded-full overflow-hidden",children:n?a(f,{src:n,alt:o,width:128,height:128,className:"object-cover w-full h-full"}):a("div",{className:"w-full h-full flex items-center justify-center text-gray-500",children:"No Image"})}),a(l,{className:"text-2xl font-bold text-center mt-4",children:o||"Consultant Name"}),a("p",{className:"text-gray-600 text-center",children:x||"email@example.com"})]}),t(d,{children:[a("h3",{className:"text-xl font-semibold mb-2 text-gray-700",children:"Areas of Expertise"}),a("div",{className:"flex flex-wrap gap-2",children:g.length>0?g.map((e,r)=>a(p,{variant:"secondary",className:"text-sm",children:e.area},r)):a("p",{className:"text-gray-600",children:"No areas of expertise available"})})]})]}),t(s,{className:"md:col-span-2",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Work History"})}),a(d,{children:m.length>0?m.map((e,r)=>t("div",{className:"mb-4 pb-4 border-b border-gray-200 last:border-b-0",children:[t("h4",{className:"font-medium text-gray-800",children:[e.position," at ",e.company]}),t("p",{className:"text-sm text-gray-600",children:[e.startDate," - ",e.endDate||"Present"]}),e.description&&a("p",{className:"mt-1 text-gray-700",children:e.description})]},r)):a("p",{className:"text-gray-600",children:"No work history available"})})]}),t(s,{className:"md:col-span-3",children:[a(i,{children:a(l,{className:"text-xl font-semibold text-gray-700",children:"Certifications"})}),a(d,{children:c.length>0?a("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:c.map((e,r)=>t("div",{className:"bg-white p-4 rounded-lg shadow",children:[a("h4",{className:"font-medium text-gray-800",children:e.name}),e.issuer&&a("p",{className:"text-sm text-gray-600",children:e.issuer}),e.dateObtained&&t("p",{className:"text-xs text-gray-500 mt-1",children:["Obtained: ",e.dateObtained]})]},r))}):a("p",{className:"text-gray-600",children:"No certifications available"})})]})]})}),u=N;export{u as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as c}from"./chunk-SV3TTIPR.mjs";import{a as d}from"./chunk-HAYRX2WO.mjs";import{b as i}from"./chunk-BDX257W2.mjs";import{useState as m,useEffect as p}from"react";import{useTheme as w}from"next-themes";import{Moon as N,Sun as S}from"lucide-react";import{PopoverGroup as y}from"@headlessui/react";import{Fragment as D,jsx as e,jsxs as a}from"react/jsx-runtime";function B({isMenuOpen:u,logoLight:h,logoDark:f,menuItems:o,themeControl:g=!1}){let[b,s]=m(!1),[v,n]=m(""),r=["light","dark"],{theme:l,setTheme:k}=w();p(()=>{n(l||"dark")},[l]);let x=()=>{let t=r[(r.indexOf(v)+1)%r.length];n(t),k(t)};return p(()=>{let t=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),e(D,{children:e("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${b||u?"translate-y-0":"-translate-y-full bg-transparent"}`,children:e("nav",{className:"backdrop-blur-sm text-white p-0",children:a("div",{className:"flex items-center justify-between bg-background/80 px-9 py-0",children:[e(d,{logoDark:f,logoLight:h}),e(y,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(t=>e(c,{...t},t.name))}),a("div",{className:"flex items-center space-x-4",children:[e(i,{variant:"outline",size:"sm",className:"border-accent bg-transparent rounded-2xl px-6",children:"Contact Us"}),g&&e("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:x,children:a("div",{className:"relative",children:[e(S,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),e(N,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})})})})}export{B as a};
4
+ import{a as i}from"./chunk-SV3TTIPR.mjs";import{a as d}from"./chunk-HAYRX2WO.mjs";import{b as c}from"./chunk-BDX257W2.mjs";import{useState as m,useEffect as p}from"react";import{useTheme as w}from"next-themes";import{Moon as N,Sun as S}from"lucide-react";import{PopoverGroup as y}from"@headlessui/react";import{Fragment as D,jsx as e,jsxs as a}from"react/jsx-runtime";function B({isMenuOpen:u,logoLight:h,logoDark:f,menuItems:o,themeControl:g=!1}){let[b,s]=m(!1),[v,n]=m(""),r=["light","dark"],{theme:l,setTheme:k}=w();p(()=>{n(l||"dark")},[l]);let x=()=>{let t=r[(r.indexOf(v)+1)%r.length];n(t),k(t)};return p(()=>{let t=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),e(D,{children:e("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${b||u?"translate-y-0":"-translate-y-full bg-transparent"}`,children:e("nav",{className:"backdrop-blur-sm text-white p-0",children:a("div",{className:"flex items-center justify-between bg-background/80 px-9 py-0",children:[e(d,{logoDark:f,logoLight:h}),e(y,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(t=>e(i,{...t},t.name))}),a("div",{className:"flex items-center space-x-4",children:[e(c,{asChild:!0,variant:"outline",size:"sm",className:"border-accent bg-transparent rounded-2xl px-6 hover:bg-accent",children:e("a",{href:"/contact",children:"Contact Us"})}),g&&e("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:x,children:a("div",{className:"relative",children:[e(S,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),e(N,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})})})})}export{B as a};
@@ -1 +1 @@
1
- import{e as b}from"./chunk-ZWKNWD42.mjs";import{a as y}from"./chunk-44VMK4FL.mjs";import{a as d}from"./chunk-NIQ4466A.mjs";import{jsx as s,jsxs as h}from"react/jsx-runtime";var H=k=>{var p;let{columns:i,theme:n}=k,T={full:"12",half:"6",oneThird:"4",twoThirds:"8"},R={none:"",line:"border border-primary p-4 rounded-lg"},c=o=>{if(o.type&&o.type==="block"&&o.fields&&(o.fields.blockType==="imageBlock"||o.fields.blockType==="mediaBlock"))return!0;if(o.root&&o.root.children){for(let e of o.root.children)if(c(e))return!0}if(o.children){for(let e of o.children)if(c(e))return!0}return!1},v=(o,e,r)=>{if(e==="none"||r==="full")return{processedRichText:o,heading:null};let t=o,l=null;return o&&o.root&&o.root.children&&o.root.children[0].tag==="h2"&&(t={...o,root:{...o.root,children:o.root.children.slice(1)}},l=o.root.children[0]),{processedRichText:t,heading:l}};return s("div",{className:"container my-6",children:s("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(p=n==null?void 0:n.settings)!=null&&p.box?"gap-x-8":"gap-x-16"),children:i&&i.length>0&&i.map((o,e)=>{var m,g;let{enableLink:r,link:t,richText:l,size:a}=o,{processedRichText:f,heading:u}=v(l,((m=n==null?void 0:n.settings)==null?void 0:m.box)||"none",a||"full");return h("div",{className:d(`col-span-4 lg:col-span-${T[a]}`,{"md:col-span-2":a!=="full"},R[a!=="full"&&!c(l)&&((g=n==null?void 0:n.settings)==null?void 0:g.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[u&&s("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),f&&s(b,{content:f,enableGutter:!1,className:"rich-text"}),r&&s(y,{...t})]},e)})})})};export{H as a};
1
+ import{e as b}from"./chunk-BCAE5YI2.mjs";import{a as y}from"./chunk-44VMK4FL.mjs";import{a as d}from"./chunk-NIQ4466A.mjs";import{jsx as s,jsxs as h}from"react/jsx-runtime";var H=k=>{var p;let{columns:i,theme:n}=k,T={full:"12",half:"6",oneThird:"4",twoThirds:"8"},R={none:"",line:"border border-primary p-4 rounded-lg"},c=o=>{if(o.type&&o.type==="block"&&o.fields&&(o.fields.blockType==="imageBlock"||o.fields.blockType==="mediaBlock"))return!0;if(o.root&&o.root.children){for(let e of o.root.children)if(c(e))return!0}if(o.children){for(let e of o.children)if(c(e))return!0}return!1},v=(o,e,r)=>{if(e==="none"||r==="full")return{processedRichText:o,heading:null};let t=o,l=null;return o&&o.root&&o.root.children&&o.root.children[0].tag==="h2"&&(t={...o,root:{...o.root,children:o.root.children.slice(1)}},l=o.root.children[0]),{processedRichText:t,heading:l}};return s("div",{className:"container my-6",children:s("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(p=n==null?void 0:n.settings)!=null&&p.box?"gap-x-8":"gap-x-16"),children:i&&i.length>0&&i.map((o,e)=>{var m,g;let{enableLink:r,link:t,richText:l,size:a}=o,{processedRichText:f,heading:u}=v(l,((m=n==null?void 0:n.settings)==null?void 0:m.box)||"none",a||"full");return h("div",{className:d(`col-span-4 lg:col-span-${T[a]}`,{"md:col-span-2":a!=="full"},R[a!=="full"&&!c(l)&&((g=n==null?void 0:n.settings)==null?void 0:g.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[u&&s("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),f&&s(b,{content:f,enableGutter:!1,className:"rich-text"}),r&&s(y,{...t})]},e)})})})};export{H as a};
@@ -1,5 +1,5 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{b as w,c as C}from"./chunk-FRJH2ABR.mjs";import{b as y}from"./chunk-VQCDKCB7.mjs";import{a as b}from"./chunk-C5XNOZXC.mjs";import{a as N}from"./chunk-NIQ4466A.mjs";import{useEffect as d,useRef as s,useState as E,useCallback as H}from"react";import{Previewer as p}from"pagedjs";import{Fragment as T,jsx as o,jsxs as c}from"react/jsx-runtime";function B(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var l=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},z=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?o(I,{page:r,layout:e,logoImage:i}):o(W,{page:r,layout:e,logoImage:i}),I=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:m}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let n=document.getElementById("printable-content");if(n){console.log("Width: "+n.offsetWidth+"px"),console.log("Width in mm: "+l(n.offsetWidth)+"mm"),console.log("Height: "+n.offsetHeight+"px"),console.log("Height in mm: "+l(n.offsetHeight)+"mm");let t=document.createElement("style");return t.textContent=`@page { size: ${l(n.offsetWidth)}mm ${l(n.offsetHeight)}mm ; margin: 0mm; width: ${l(n.offsetWidth)}mm }; .container : { max-width: ${l(n.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=H(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let n=document.getElementById("printable-content");n&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${l(n.offsetWidth)}mm ${l(n.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...m];return c("div",{children:[o("div",{className:"w-[1123px] print:w-[1123px]",children:c("div",{id:"printable-content",ref:u,children:[g.map((n,t)=>o(T,{children:t===0?o("section",{className:"title-page w-full h-full",children:o(C,{hero:r.hero,title:r.title})},t):c("section",{className:"normal-page overflow-hidden",children:[n.blockName&&o(w,{title:n.blockName}),o(y,{blocks:[n],fill:!0})]},t)})),o("section",{className:"normal-page",children:c("div",{className:`w-full py-2 px-8 flex justify-between items-center
4
+ import{b as w,c as C}from"./chunk-ARDUHBRG.mjs";import{b as y}from"./chunk-7RCXCEKM.mjs";import{a as b}from"./chunk-C5XNOZXC.mjs";import{a as N}from"./chunk-NIQ4466A.mjs";import{useEffect as d,useRef as s,useState as E,useCallback as H}from"react";import{Previewer as p}from"pagedjs";import{Fragment as T,jsx as o,jsxs as c}from"react/jsx-runtime";function B(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var l=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},z=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?o(I,{page:r,layout:e,logoImage:i}):o(W,{page:r,layout:e,logoImage:i}),I=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:m}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let n=document.getElementById("printable-content");if(n){console.log("Width: "+n.offsetWidth+"px"),console.log("Width in mm: "+l(n.offsetWidth)+"mm"),console.log("Height: "+n.offsetHeight+"px"),console.log("Height in mm: "+l(n.offsetHeight)+"mm");let t=document.createElement("style");return t.textContent=`@page { size: ${l(n.offsetWidth)}mm ${l(n.offsetHeight)}mm ; margin: 0mm; width: ${l(n.offsetWidth)}mm }; .container : { max-width: ${l(n.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=H(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let n=document.getElementById("printable-content");n&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${l(n.offsetWidth)}mm ${l(n.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...m];return c("div",{children:[o("div",{className:"w-[1123px] print:w-[1123px]",children:c("div",{id:"printable-content",ref:u,children:[g.map((n,t)=>o(T,{children:t===0?o("section",{className:"title-page w-full h-full",children:o(C,{hero:r.hero,title:r.title})},t):c("section",{className:"normal-page overflow-hidden",children:[n.blockName&&o(w,{title:n.blockName}),o(y,{blocks:[n],fill:!0})]},t)})),o("section",{className:"normal-page",children:c("div",{className:`w-full py-2 px-8 flex justify-between items-center
5
5
  dark bg-background text-primary`,children:[c("div",{className:"flex px-6 items-center space-x-2",children:[i&&o("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),o("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),o("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),o("div",{ref:a,className:"preview-container"})]})},W=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),m=s(null),u=s(null),a=s(new p),[h,f]=E(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],n=H(()=>{m.current&&(m.current&&(m.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],m.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,n()},[n,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),c("div",{className:"pagedjs-container",children:[o("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>{var x,P;return o(T,{children:v===0?o("section",{className:"pagedjs-section title-page w-full h-full",children:o(C,{hero:r.hero,title:r.title})},v):c("section",{className:N("pagedjs-section normal-page h-[699px]",`h-[${B("185mm")}px]`,((P=(x=t.theme)==null?void 0:x.settings)==null?void 0:P.theme)==="dark"?"dark":"light"),children:[t.blockName&&o(w,{title:t.blockName}),o(y,{blocks:[t],fill:!0})]},v)})})}),o("div",{ref:m,className:"preview-container"})]})};export{z as a,I as b,W as c};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as m}from"./chunk-4DJ6HKHR.mjs";import{a as S}from"./chunk-WU3JMLSC.mjs";import{a as u}from"./chunk-BZAYEKYC.mjs";import{a as i}from"./chunk-GNRDESON.mjs";import{a as n}from"./chunk-ELVHHVRX.mjs";import{a as d}from"./chunk-Y6DIPOE7.mjs";import{a}from"./chunk-TCIHQDDM.mjs";import{a as o}from"./chunk-ZZ6YKJXX.mjs";import{a as t}from"./chunk-YC3XIF3X.mjs";import{jsx as e,jsxs as l}from"react/jsx-runtime";function b({...r}){return l("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e("div",{className:"h-screen relative overflow-hidden snap-start",children:e(o,{...r.header,logoVideo:m,logoLight:u,logoDark:S})}),e(i,{services:r.services}),e(a,{...r.about}),e(d,{...r.contact}),e(n,{...r.blog}),e(t,{...r.footer})]})}export{b as a};
4
+ import{a as m}from"./chunk-4DJ6HKHR.mjs";import{a as S}from"./chunk-WU3JMLSC.mjs";import{a as u}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-AHCKCVZD.mjs";import{a as d}from"./chunk-6XPEWLMB.mjs";import{a as i}from"./chunk-YVDQBQ2H.mjs";import{a as n}from"./chunk-3QZJOADY.mjs";import{a as o}from"./chunk-C3JUPZ34.mjs";import{a as t}from"./chunk-42TZNRIV.mjs";import{jsx as e,jsxs as l}from"react/jsx-runtime";function b({...r}){return l("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e("div",{className:"h-screen relative overflow-hidden snap-start",children:e(o,{...r.header,logoVideo:m,logoLight:u,logoDark:S})}),e(a,{...r.service}),e(i,{...r.about}),e(d,{...r.contact}),e(n,{...r.blog}),e(t,{...r.footer})]})}export{b as a};
@@ -1 +1 @@
1
- import{e as o}from"./chunk-ZWKNWD42.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-BCAE5YI2.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}from"./chunk-FCCL6W7R.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{jsx as r}from"react/jsx-runtime";var d=o=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:l}=o;return r("div",{className:e("h-full ",{container:s},t),children:r(a,{imgClassName:e("rounded-[0.8rem]",m),className:"flex justify-center",resource:i,src:l})})};export{d as a};
1
+ import{a}from"./chunk-JPFBD2KD.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{jsx as r}from"react/jsx-runtime";var d=o=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:l}=o;return r("div",{className:e("h-full ",{container:s},t),children:r(a,{imgClassName:e("rounded-[0.8rem]",m),className:"flex justify-center",resource:i,src:l})})};export{d as a};