cortex-react-components 1.65.0 → 1.65.1

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 (176) hide show
  1. package/dist/{chunk-ILBKV7ZM.mjs → chunk-2VOU42KD.mjs} +1 -1
  2. package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
  3. package/dist/{chunk-PFWODHNV.mjs → chunk-3AUTMBDB.mjs} +1 -1
  4. package/dist/{chunk-3UA62APP.mjs → chunk-5ALQQYYE.mjs} +1 -1
  5. package/dist/{chunk-4GL57G4E.mjs → chunk-5J244QX4.mjs} +1 -1
  6. package/dist/{chunk-4A43BI3C.mjs → chunk-65BHP4TM.mjs} +1 -1
  7. package/dist/{chunk-SKQYQ4SD.mjs → chunk-737CTHXW.mjs} +1 -1
  8. package/dist/{chunk-ROEJPYRW.mjs → chunk-77KWI6EL.mjs} +1 -1
  9. package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
  10. package/dist/{chunk-YZ47PIHK.mjs → chunk-B7STYVDB.mjs} +1 -1
  11. package/dist/{chunk-Y6RAHEXF.mjs → chunk-CDJP2IDQ.mjs} +1 -1
  12. package/dist/{chunk-5OMUHSTO.mjs → chunk-CJF6GVGP.mjs} +1 -1
  13. package/dist/{chunk-TASJS6US.mjs → chunk-COI2LCY2.mjs} +1 -1
  14. package/dist/{chunk-STHWCR5K.mjs → chunk-DIAK5C43.mjs} +1 -1
  15. package/dist/{chunk-BYSEFJFA.mjs → chunk-DVGPU4EL.mjs} +1 -1
  16. package/dist/{chunk-XDLNQPZY.mjs → chunk-EVVDCPEA.mjs} +1 -1
  17. package/dist/{chunk-DJQUKJMH.mjs → chunk-FN5C27GW.mjs} +1 -1
  18. package/dist/{chunk-APNL5YEF.mjs → chunk-FSYU3D5O.mjs} +1 -1
  19. package/dist/{chunk-I5DSZMH2.mjs → chunk-GHXEOXV4.mjs} +1 -1
  20. package/dist/{chunk-3XV6OBSL.mjs → chunk-IH37BDR2.mjs} +1 -1
  21. package/dist/chunk-IPVKFQEY.mjs +4 -0
  22. package/dist/{chunk-ZJSR6A6I.mjs → chunk-JLCWVIEP.mjs} +1 -1
  23. package/dist/{chunk-AKH3ER3D.mjs → chunk-KEM3XJKI.mjs} +1 -1
  24. package/dist/{chunk-6OS3ZJBB.mjs → chunk-KGSTIGCT.mjs} +1 -1
  25. package/dist/{chunk-E7W2GFKO.mjs → chunk-L45A6K4C.mjs} +1 -1
  26. package/dist/{chunk-WSKZ2N7J.mjs → chunk-L5MDFQGH.mjs} +1 -1
  27. package/dist/{chunk-33ZXPMQU.mjs → chunk-MQRRCCAR.mjs} +1 -1
  28. package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
  29. package/dist/{chunk-IDRYG7HP.mjs → chunk-MUBDAI2K.mjs} +1 -1
  30. package/dist/{chunk-R64KZZJP.mjs → chunk-NP2M5K7O.mjs} +1 -1
  31. package/dist/{chunk-L7FUS5TO.mjs → chunk-NUQ6Z3WQ.mjs} +1 -1
  32. package/dist/{chunk-5DJ7VOAO.mjs → chunk-OMVXDUX7.mjs} +1 -1
  33. package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
  34. package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
  35. package/dist/{chunk-IISHIQBQ.mjs → chunk-T5W5LMEK.mjs} +1 -1
  36. package/dist/{chunk-NVN7UJT6.mjs → chunk-T6W76EOH.mjs} +1 -1
  37. package/dist/{chunk-YWUPEMYN.mjs → chunk-U7Q6ZRR3.mjs} +1 -1
  38. package/dist/{chunk-2ELJOFU3.mjs → chunk-UDQTFQR7.mjs} +1 -1
  39. package/dist/chunk-URPKAQGD.mjs +1 -0
  40. package/dist/{chunk-ERUB6LU6.mjs → chunk-VGQTRTPZ.mjs} +1 -1
  41. package/dist/{chunk-T6FBWMZR.mjs → chunk-WKFNZUIR.mjs} +1 -1
  42. package/dist/{chunk-AN6TXGAM.mjs → chunk-WPL2QWNG.mjs} +1 -1
  43. package/dist/{chunk-U5XA76PE.mjs → chunk-X4Q7WZZS.mjs} +1 -1
  44. package/dist/{chunk-3QWSFRVM.mjs → chunk-YGFSXGAJ.mjs} +1 -1
  45. package/dist/{chunk-EGYV6SU2.mjs → chunk-YPK6OLRS.mjs} +1 -1
  46. package/dist/{chunk-6BOIU52Z.mjs → chunk-ZAXQ74I3.mjs} +1 -1
  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/CollapsibleArea.mjs +1 -1
  51. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  52. package/dist/components/Blocks/Content.mjs +1 -1
  53. package/dist/components/Blocks/Content.stories.mjs +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  55. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  56. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  57. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  58. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  59. package/dist/components/Blocks/index.mjs +1 -1
  60. package/dist/components/CRM/CogeBoard.js +1 -1
  61. package/dist/components/CRM/CogeBoard.mjs +1 -1
  62. package/dist/components/CRM/CogeBoard.stories.js +1 -1
  63. package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
  64. package/dist/components/CRM/DealDetails.js +1 -1
  65. package/dist/components/CRM/DealDetails.mjs +1 -1
  66. package/dist/components/CRM/DealDetails.stories.js +1 -1
  67. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  68. package/dist/components/CRM/KanbanBoard.js +1 -1
  69. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  70. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  71. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  72. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  73. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  74. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  75. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  76. package/dist/components/CRM/NewDealForm.mjs +1 -1
  77. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  78. package/dist/components/CRM/index.js +1 -1
  79. package/dist/components/CRM/index.mjs +1 -1
  80. package/dist/components/Cards/ContentCard.mjs +1 -1
  81. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  82. package/dist/components/Cards/FeatureCard.mjs +1 -1
  83. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  84. package/dist/components/Cards/index.mjs +1 -1
  85. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  86. package/dist/components/DigitalColleagues/ChatInterface.stories.mjs +1 -1
  87. package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
  88. package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
  89. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  90. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  91. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  92. package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
  93. package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
  94. package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
  95. package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
  96. package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
  97. package/dist/components/HeaderFooter/Header.mjs +1 -1
  98. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  100. package/dist/components/HeaderFooter/index.mjs +1 -1
  101. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  102. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  103. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  104. package/dist/components/Heros/PostHero/index.mjs +1 -1
  105. package/dist/components/Heros/RenderHero.mjs +1 -1
  106. package/dist/components/Heros/index.mjs +1 -1
  107. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  108. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  109. package/dist/components/Holidays/index.mjs +1 -1
  110. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  111. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  112. package/dist/components/Layouts/Print.mjs +1 -1
  113. package/dist/components/Layouts/Print.stories.mjs +1 -1
  114. package/dist/components/Layouts/SlideShow.mjs +1 -1
  115. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  116. package/dist/components/Layouts/index.mjs +1 -1
  117. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  118. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  119. package/dist/components/Menus/SidebarRight.mjs +1 -1
  120. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  121. package/dist/components/Menus/index.mjs +1 -1
  122. package/dist/components/Payload/RichText/index.mjs +1 -1
  123. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  124. package/dist/components/Payload/RichText.stories.mjs +1 -1
  125. package/dist/components/Payload/index.mjs +1 -1
  126. package/dist/components/index.js +1 -1
  127. package/dist/components/index.mjs +1 -1
  128. package/dist/components/ui/index.mjs +1 -1
  129. package/dist/components/ui/sidebar.mjs +1 -1
  130. package/dist/hooks/index.mjs +1 -1
  131. package/dist/index.js +1 -1
  132. package/dist/index.mjs +1 -1
  133. package/dist/metafile-cjs.json +1 -1
  134. package/dist/metafile-esm.json +1 -1
  135. package/dist/pages/Blog.mjs +1 -1
  136. package/dist/pages/Blog.stories.mjs +1 -1
  137. package/dist/pages/Documentation.mjs +1 -1
  138. package/dist/pages/Documentation.stories.mjs +1 -1
  139. package/dist/pages/IndexPage.mjs +1 -1
  140. package/dist/pages/IndexPage.stories.mjs +1 -1
  141. package/dist/pages/Intranet.mjs +1 -1
  142. package/dist/pages/Intranet.stories.mjs +1 -1
  143. package/dist/pages/LandingPage.mjs +1 -1
  144. package/dist/pages/LandingPage.stories.mjs +1 -1
  145. package/dist/pages/Page.mjs +1 -1
  146. package/dist/pages/Page.stories.mjs +1 -1
  147. package/dist/pages/Printable.stories.mjs +1 -1
  148. package/dist/pages/Publish.mjs +1 -1
  149. package/dist/pages/Publish.stories.mjs +1 -1
  150. package/dist/pages/Website.mjs +1 -1
  151. package/dist/pages/Website.stories.mjs +1 -1
  152. package/dist/sections/AboutSection.mjs +1 -1
  153. package/dist/sections/AboutSection.stories.mjs +1 -1
  154. package/dist/sections/BlogDetail.mjs +1 -1
  155. package/dist/sections/BlogDetail.stories.mjs +1 -1
  156. package/dist/sections/BlogList.mjs +1 -1
  157. package/dist/sections/BlogList.stories.mjs +1 -1
  158. package/dist/sections/BlogListSection.mjs +1 -1
  159. package/dist/sections/BlogListSection.stories.mjs +1 -1
  160. package/dist/sections/ContactSection.mjs +1 -1
  161. package/dist/sections/ContactSection.stories.mjs +1 -1
  162. package/dist/sections/ImageSection.stories.mjs +1 -1
  163. package/dist/sections/PageSections.mjs +1 -1
  164. package/dist/sections/PageSections.stories.mjs +1 -1
  165. package/dist/sections/PricingSection.mjs +1 -1
  166. package/dist/sections/PricingSection.stories.mjs +1 -1
  167. package/dist/sections/ServiceDetail.mjs +1 -1
  168. package/dist/sections/ServiceDetailSection.mjs +1 -1
  169. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  170. package/dist/sections/ServiceSection.mjs +1 -1
  171. package/dist/sections/ServiceSection.stories.mjs +1 -1
  172. package/dist/sections/form/index.mjs +1 -1
  173. package/dist/sections/index.mjs +1 -1
  174. package/package.json +1 -1
  175. package/dist/chunk-H3V6RZEI.mjs +0 -4
  176. package/dist/chunk-MEWCJ4MA.mjs +0 -1
@@ -1 +1 @@
1
- import{a as I,c as T,d as F,g as $,i as M}from"./chunk-OGZERPA4.mjs";import{a as y}from"./chunk-CX4XB5W2.mjs";import{b as Y}from"./chunk-ZYYWN6XG.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{b as i}from"./chunk-BPSLUO5I.mjs";import{a as w}from"./chunk-4YFMDLHL.mjs";import{useState as r}from"react";import{X as ke,Plus as O,Edit2 as L,Trash2 as R,Calendar as Z,Kanban as Pe,FileText as je,FolderOpen as _,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as K,jsx as e,jsxs as s}from"react/jsx-runtime";var ee=({projects:u,epics:ae,sprints:te,currentView:N,onUpdateProject:H,onDeleteProject:se,onAddProject:le,onUpdateEpic:U,onDeleteEpic:ie,onAddEpic:ne,onAddSprint:ce,onUpdateSprint:V,onDeleteSprint:oe,onViewChange:f,mobileMenuOpen:X,onToggleMobileMenu:re})=>{let[o,v]=r(null),[C,D]=r(null),[k,P]=r(null),[j,E]=r(null),[x,S]=r({name:"",description:""}),[n,d]=r({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,g]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,A]=r(!1),[me,z]=r(!1),[h,B]=r({name:"",description:""}),[p,b]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],q=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],G=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],ve=a=>{D(a.id),S({name:a.name,description:a.description||""})},ge=()=>{C&&x.name.trim()&&(H(C,{name:x.name.trim(),description:x.description.trim()}),D(null))},ue=()=>{D(null),S({name:"",description:""})},xe=()=>{h.name.trim()&&(le({name:h.name.trim(),description:h.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{H(a,{isSelected:!0})},be=a=>{P(a.id),d({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},Ne=()=>{k&&n.name.trim()&&(U(k,{name:n.name.trim(),description:n.description.trim(),color:n.color,confidence:n.confidence,phase:n.phase,startDate:new Date(n.startDate),endDate:new Date(n.endDate),progress:n.progress}),P(null))},fe=()=>{P(null),d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Se=a=>{E(a.id),g({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},ye=()=>{j&&m.name.trim()&&(V(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},we=()=>{E(null),g({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ce=()=>{p.name.trim()&&(ce({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),b({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},De=a=>{V(a,{isSelected:!0})},J=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q=a=>{let t=q.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Medium",color:"text-yellow-600"}},W=a=>{let t=G.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Phase 1",color:"text-blue-600"}};return s(K,{children:[s("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col z-30 flex-shrink-0 transition-transform duration-300 ${X?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"border-b border-slate-600",children:[e("button",{onClick:()=>{f("kanban"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:e(Pe,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("planning"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:e(Z,{className:"h-4 w-4"})})]}),e("button",{onClick:()=>v(o==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:e(_,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("epics"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:e(Ee,{className:"h-4 w-4"})}),e("button",{onClick:()=>v(o==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:e(Ae,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("documentation"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:e(je,{className:"h-4 w-4"})})]}),X&&e("div",{className:"md:hidden fixed inset-0 bg-black/50 z-20",style:{top:"8.5rem"},onClick:re}),o&&s(K,{children:[e("div",{className:"fixed inset-0 bg-black/50 z-40",style:{top:"8.5rem"},onClick:()=>v(null)}),s("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg z-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[s("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="documents"&&"Documents"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>v(null),children:e(ke,{className:"h-4 w-4"})})]}),s("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Projects"}),s(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),de&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:h.name,onChange:a=>B(t=>({...t,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:h.description,onChange:a=>B(t=>({...t,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:xe,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:u.map(a=>e("div",{className:"border rounded p-2",children:C===a.id?s("div",{className:"space-y-2",children:[e(c,{value:x.name,onChange:t=>S(l=>({...l,name:t.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:x.description,onChange:t=>S(l=>({...l,description:t.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ge,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ue,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>he(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(_,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-500 mb-1",children:a.description}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ve(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Epics"}),s(i,{size:"sm",onClick:ne,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:k===a.id?s("div",{className:"space-y-3",children:[e(c,{value:n.name,onChange:t=>d(l=>({...l,name:t.target.value})),placeholder:"Epic name",className:"text-sm"}),e(y,{value:n.description,onChange:t=>d(l=>({...l,description:t.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),s("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(t=>e("button",{onClick:()=>d(l=>({...l,color:t})),className:`w-6 h-6 rounded-full ${t} ${n.color===t?"ring-2 ring-gray-400":""}`},t))})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),s(I,{value:n.confidence,onValueChange:t=>d(l=>({...l,confidence:t})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:q.map(t=>e(M,{value:t.value,children:e("span",{className:t.color,children:t.label})},t.value))})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),s(I,{value:n.phase.toString(),onValueChange:t=>d(l=>({...l,phase:parseInt(t)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:G.map(t=>e(M,{value:t.value.toString(),children:e("span",{className:t.color,children:t.label})},t.value))})]})]})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(c,{type:"date",value:n.startDate,onChange:t=>d(l=>({...l,startDate:t.target.value})),className:"text-xs h-8"})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(c,{type:"date",value:n.endDate,onChange:t=>d(l=>({...l,endDate:t.target.value})),className:"text-xs h-8"})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(c,{type:"number",min:"0",max:"100",value:n.progress,onChange:t=>d(l=>({...l,progress:parseInt(t.target.value)||0})),className:"text-xs h-8"})]}),s("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:Ne,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:fe,className:"text-xs",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>U(a.id,{isSelected:!a.isSelected}),children:[s("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-600 mb-2",children:a.description}),s("div",{className:"space-y-1 mb-2",children:[s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Confidence:"}),e("span",{className:Q(a.confidence).color,children:Q(a.confidence).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Phase:"}),e("span",{className:W(a.phase).color,children:W(a.phase).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Timeline:"}),s("span",{className:"text-gray-700",children:[J(a.startDate)," - ",J(a.endDate)]})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Progress:"}),s("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:e("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${a.progress}%`}})}),s("span",{className:"text-gray-700",children:[a.progress,"%"]})]})]})]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>be(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),s(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:p.name,onChange:a=>b(t=>({...t,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:p.startDate,onChange:a=>b(t=>({...t,startDate:a.target.value})),className:"text-xs"}),e(c,{type:"date",value:p.endDate,onChange:a=>b(t=>({...t,endDate:a.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>b(t=>({...t,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:Ce,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?s("div",{className:"space-y-2",children:[e(c,{value:m.name,onChange:t=>g(l=>({...l,name:t.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&s(K,{children:[s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:m.startDate,onChange:t=>g(l=>({...l,startDate:t.target.value})),className:"text-xs"}),e(c,{type:"date",value:m.endDate,onChange:t=>g(l=>({...l,endDate:t.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:t=>g(l=>({...l,isActive:t.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ye,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:we,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>De(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(Z,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&s("p",{className:"text-xs text-gray-500 mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>Se(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Ve=u=>e(Y,{children:s("div",{className:"flex h-full w-full",children:[e("div",{className:"hidden md:block w-16",children:e(ee,{...u})}),e("div",{className:"md:hidden",children:e(ee,{...u})}),e("div",{className:"flex-1 md:ml-0",children:u.children})]})});export{Ve as a};
1
+ import{a as I,c as T,d as F,g as $,i as M}from"./chunk-OGZERPA4.mjs";import{a as y}from"./chunk-CX4XB5W2.mjs";import{b as Y}from"./chunk-SUO6GOJS.mjs";import{a as c}from"./chunk-JPZJET3B.mjs";import{b as i}from"./chunk-BPSLUO5I.mjs";import{a as w}from"./chunk-4YFMDLHL.mjs";import{useState as r}from"react";import{X as ke,Plus as O,Edit2 as L,Trash2 as R,Calendar as Z,Kanban as Pe,FileText as je,FolderOpen as _,Target as Ee,Layers as Ae}from"lucide-react";import{Fragment as K,jsx as e,jsxs as s}from"react/jsx-runtime";var ee=({projects:u,epics:ae,sprints:te,currentView:N,onUpdateProject:H,onDeleteProject:se,onAddProject:le,onUpdateEpic:U,onDeleteEpic:ie,onAddEpic:ne,onAddSprint:ce,onUpdateSprint:V,onDeleteSprint:oe,onViewChange:f,mobileMenuOpen:X,onToggleMobileMenu:re})=>{let[o,v]=r(null),[C,D]=r(null),[k,P]=r(null),[j,E]=r(null),[x,S]=r({name:"",description:""}),[n,d]=r({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[m,g]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[de,A]=r(!1),[me,z]=r(!1),[h,B]=r({name:"",description:""}),[p,b]=r({name:"",description:"",startDate:"",endDate:"",isActive:!1}),pe=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],q=[{value:"low",label:"Low",color:"text-red-600"},{value:"medium",label:"Medium",color:"text-yellow-600"},{value:"high",label:"High",color:"text-green-600"}],G=[{value:1,label:"Phase 1",color:"text-blue-600"},{value:2,label:"Phase 2",color:"text-purple-600"},{value:3,label:"Phase 3",color:"text-orange-600"},{value:4,label:"Phase 4",color:"text-green-600"},{value:5,label:"Phase 5",color:"text-red-600"},{value:6,label:"Phase 6",color:"text-yellow-600"},{value:7,label:"Phase 7",color:"text-pink-600"},{value:8,label:"Phase 8",color:"text-indigo-600"},{value:9,label:"Phase 9",color:"text-gray-600"}],ve=a=>{D(a.id),S({name:a.name,description:a.description||""})},ge=()=>{C&&x.name.trim()&&(H(C,{name:x.name.trim(),description:x.description.trim()}),D(null))},ue=()=>{D(null),S({name:"",description:""})},xe=()=>{h.name.trim()&&(le({name:h.name.trim(),description:h.description.trim(),isSelected:!1}),B({name:"",description:""}),A(!1))},he=a=>{H(a,{isSelected:!0})},be=a=>{P(a.id),d({name:a.name,description:a.description||"",color:a.color,confidence:a.confidence,phase:a.phase,startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],progress:a.progress})},Ne=()=>{k&&n.name.trim()&&(U(k,{name:n.name.trim(),description:n.description.trim(),color:n.color,confidence:n.confidence,phase:n.phase,startDate:new Date(n.startDate),endDate:new Date(n.endDate),progress:n.progress}),P(null))},fe=()=>{P(null),d({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Se=a=>{E(a.id),g({name:a.name,description:a.description||"",startDate:a.startDate.toISOString().split("T")[0],endDate:a.endDate.toISOString().split("T")[0],isActive:a.isActive})},ye=()=>{j&&m.name.trim()&&(V(j,{name:m.name.trim(),description:m.description.trim(),startDate:new Date(m.startDate),endDate:new Date(m.endDate),isActive:m.isActive}),E(null))},we=()=>{E(null),g({name:"",description:"",startDate:"",endDate:"",isActive:!1})},Ce=()=>{p.name.trim()&&(ce({name:p.name.trim(),description:p.description.trim(),startDate:new Date(p.startDate),endDate:new Date(p.endDate),isActive:p.isActive,isSelected:!1}),b({name:"",description:"",startDate:"",endDate:"",isActive:!1}),z(!1))},De=a=>{V(a,{isSelected:!0})},J=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Q=a=>{let t=q.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Medium",color:"text-yellow-600"}},W=a=>{let t=G.find(l=>l.value===a);return t?{label:t.label,color:t.color}:{label:"Phase 1",color:"text-blue-600"}};return s(K,{children:[s("div",{className:`fixed left-0 w-12 bg-slate-800 flex flex-col z-30 flex-shrink-0 transition-transform duration-300 ${X?"translate-x-0":"-translate-x-full"} md:translate-x-0`,style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"border-b border-slate-600",children:[e("button",{onClick:()=>{f("kanban"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="kanban"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Kanban View",children:e(Pe,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("planning"),v(null)},className:`w-full h-12 flex items-center justify-center text-white transition-colors ${N==="planning"?"bg-purple-600":"bg-purple-500 hover:bg-purple-600"} hidden md:flex`,title:"Planning View",children:e(Z,{className:"h-4 w-4"})})]}),e("button",{onClick:()=>v(o==="projects"?null:"projects"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="projects"?"bg-slate-600":"bg-slate-700 hover:bg-slate-600"}`,title:"Projects",children:e(_,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("epics"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="epics"?"bg-blue-600":"bg-blue-500 hover:bg-blue-600"}`,title:"Epic Planning",children:e(Ee,{className:"h-4 w-4"})}),e("button",{onClick:()=>v(o==="sprints"?null:"sprints"),className:`flex-1 flex items-center justify-center text-white transition-colors ${o==="sprints"?"bg-green-600":"bg-green-500 hover:bg-green-600"}`,title:"Sprints",children:e(Ae,{className:"h-4 w-4"})}),e("button",{onClick:()=>{f("documentation"),v(null)},className:`flex-1 flex items-center justify-center text-white transition-colors ${N==="documentation"?"bg-orange-600":"bg-orange-500 hover:bg-orange-600"}`,title:"Documents",children:e(je,{className:"h-4 w-4"})})]}),X&&e("div",{className:"md:hidden fixed inset-0 bg-black/50 z-20",style:{top:"8.5rem"},onClick:re}),o&&s(K,{children:[e("div",{className:"fixed inset-0 bg-black/50 z-40",style:{top:"8.5rem"},onClick:()=>v(null)}),s("div",{className:"fixed left-12 md:left-16 w-80 md:w-96 bg-white shadow-lg z-50 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none",style:{top:"8.5rem",height:"calc(100vh - 8.5rem)"},children:[s("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[s("h2",{className:"text-base md:text-lg font-semibold",children:[o==="projects"&&"Projects",o==="epics"&&"Manage Epics",o==="sprints"&&"Manage Sprints",o==="documents"&&"Documents"]}),e(i,{variant:"ghost",size:"sm",onClick:()=>v(null),children:e(ke,{className:"h-4 w-4"})})]}),s("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[o==="projects"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Projects"}),s(i,{size:"sm",onClick:()=>A(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Project"]})]}),de&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:h.name,onChange:a=>B(t=>({...t,name:a.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:h.description,onChange:a=>B(t=>({...t,description:a.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:xe,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>A(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:u.map(a=>e("div",{className:"border rounded p-2",children:C===a.id?s("div",{className:"space-y-2",children:[e(c,{value:x.name,onChange:t=>S(l=>({...l,name:t.target.value})),placeholder:"Project name",className:"text-sm"}),e(y,{value:x.description,onChange:t=>S(l=>({...l,description:t.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ge,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:ue,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200 ring-2 ring-blue-300":"hover:bg-gray-50"}`,onClick:()=>he(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(_,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-500 mb-1",children:a.description}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>ve(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>se(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="epics"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Epics"}),s(i,{size:"sm",onClick:ne,className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Epic"]})]}),e("div",{className:"space-y-4",children:ae.map(a=>e("div",{className:"border rounded-lg p-3",children:k===a.id?s("div",{className:"space-y-3",children:[e(c,{value:n.name,onChange:t=>d(l=>({...l,name:t.target.value})),placeholder:"Epic name",className:"text-sm"}),e(y,{value:n.description,onChange:t=>d(l=>({...l,description:t.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),s("div",{className:"space-y-2",children:[e("label",{className:"text-xs font-medium",children:"Color"}),e("div",{className:"flex gap-1 flex-wrap",children:pe.map(t=>e("button",{onClick:()=>d(l=>({...l,color:t})),className:`w-6 h-6 rounded-full ${t} ${n.color===t?"ring-2 ring-gray-400":""}`},t))})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Confidence"}),s(I,{value:n.confidence,onValueChange:t=>d(l=>({...l,confidence:t})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:q.map(t=>e(M,{value:t.value,children:e("span",{className:t.color,children:t.label})},t.value))})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Phase"}),s(I,{value:n.phase.toString(),onValueChange:t=>d(l=>({...l,phase:parseInt(t)})),children:[e(F,{className:"h-8 text-xs",children:e(T,{})}),e($,{children:G.map(t=>e(M,{value:t.value.toString(),children:e("span",{className:t.color,children:t.label})},t.value))})]})]})]}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Start Date"}),e(c,{type:"date",value:n.startDate,onChange:t=>d(l=>({...l,startDate:t.target.value})),className:"text-xs h-8"})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"End Date"}),e(c,{type:"date",value:n.endDate,onChange:t=>d(l=>({...l,endDate:t.target.value})),className:"text-xs h-8"})]})]}),s("div",{className:"space-y-1",children:[e("label",{className:"text-xs font-medium",children:"Progress (%)"}),e(c,{type:"number",min:"0",max:"100",value:n.progress,onChange:t=>d(l=>({...l,progress:parseInt(t.target.value)||0})),className:"text-xs h-8"})]}),s("div",{className:"flex gap-2",children:[e(i,{size:"sm",onClick:Ne,className:"text-xs",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:fe,className:"text-xs",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-2 rounded transition-colors ${a.isSelected?"bg-blue-50 border-blue-200":"hover:bg-gray-50"}`,onClick:()=>U(a.id,{isSelected:!a.isSelected}),children:[s("div",{className:"flex items-center gap-2 mb-2",children:[e("div",{className:`w-3 h-3 rounded-full ${a.color}`}),e("span",{className:"font-medium text-sm",children:a.name})]}),a.description&&e("p",{className:"text-xs text-gray-600 mb-2",children:a.description}),s("div",{className:"space-y-1 mb-2",children:[s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Confidence:"}),e("span",{className:Q(a.confidence).color,children:Q(a.confidence).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Phase:"}),e("span",{className:W(a.phase).color,children:W(a.phase).label})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Timeline:"}),s("span",{className:"text-gray-700",children:[J(a.startDate)," - ",J(a.endDate)]})]}),s("div",{className:"flex items-center justify-between text-xs",children:[e("span",{className:"text-gray-500",children:"Progress:"}),s("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-12 h-2 bg-gray-200 rounded-full",children:e("div",{className:"h-2 bg-blue-500 rounded-full",style:{width:`${a.progress}%`}})}),s("span",{className:"text-gray-700",children:[a.progress,"%"]})]})]})]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>be(a),className:"h-6 px-2",children:e(L,{className:"h-3 w-3"})}),e(i,{size:"sm",variant:"ghost",onClick:()=>ie(a.id),className:"h-6 px-2 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})}),o==="sprints"&&e(w,{className:"p-3",children:s("div",{className:"space-y-3",children:[s("div",{className:"flex items-center justify-between",children:[e("h3",{className:"font-medium text-gray-900",children:"Sprints (Select One)"}),s(i,{size:"sm",onClick:()=>z(!0),className:"gap-1",children:[e(O,{className:"h-3 w-3"}),"Add Sprint"]})]}),me&&s("div",{className:"border rounded-lg p-2 space-y-2",children:[e(c,{value:p.name,onChange:a=>b(t=>({...t,name:a.target.value})),placeholder:"Sprint name",className:"text-sm"}),s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:p.startDate,onChange:a=>b(t=>({...t,startDate:a.target.value})),className:"text-xs"}),e(c,{type:"date",value:p.endDate,onChange:a=>b(t=>({...t,endDate:a.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:p.isActive,onChange:a=>b(t=>({...t,isActive:a.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:Ce,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:()=>z(!1),className:"text-xs h-6",children:"Cancel"})]})]}),e("div",{className:"space-y-2",children:te.map(a=>e("div",{className:"border rounded p-2",children:j===a.id?s("div",{className:"space-y-2",children:[e(c,{value:m.name,onChange:t=>g(l=>({...l,name:t.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:a.id==="backlog"||a.id==="all-tasks"}),a.id!=="backlog"&&a.id!=="all-tasks"&&s(K,{children:[s("div",{className:"grid grid-cols-2 gap-1",children:[e(c,{type:"date",value:m.startDate,onChange:t=>g(l=>({...l,startDate:t.target.value})),className:"text-xs"}),e(c,{type:"date",value:m.endDate,onChange:t=>g(l=>({...l,endDate:t.target.value})),className:"text-xs"})]}),s("div",{className:"flex items-center gap-2",children:[e("input",{type:"checkbox",checked:m.isActive,onChange:t=>g(l=>({...l,isActive:t.target.checked})),className:"w-3 h-3"}),e("span",{className:"text-xs",children:"Active"})]})]}),s("div",{className:"flex gap-1",children:[e(i,{size:"sm",onClick:ye,className:"text-xs h-6",children:"Save"}),e(i,{size:"sm",variant:"outline",onClick:we,className:"text-xs h-6",children:"Cancel"})]})]}):s("div",{className:`cursor-pointer p-1 rounded transition-colors ${a.isSelected?"bg-green-50 border-green-200 ring-2 ring-green-300":"hover:bg-gray-50"}`,onClick:()=>De(a.id),children:[s("div",{className:"flex items-center gap-2 mb-1",children:[e(Z,{className:"h-3 w-3 text-gray-500"}),e("span",{className:"font-medium text-xs",children:a.name}),a.isActive&&e("span",{className:"text-xs bg-green-100 text-green-800 px-1 py-0.5 rounded",children:"Active"}),(a.id==="backlog"||a.id==="all-tasks")&&e("span",{className:"text-xs bg-gray-100 text-gray-800 px-1 py-0.5 rounded",children:"System"})]}),a.id!=="backlog"&&a.id!=="all-tasks"&&s("p",{className:"text-xs text-gray-500 mb-1",children:[a.startDate.toLocaleDateString()," - ",a.endDate.toLocaleDateString()]}),s("div",{className:"flex gap-1",onClick:t=>t.stopPropagation(),children:[e(i,{size:"sm",variant:"ghost",onClick:()=>Se(a),className:"h-5 px-1",children:e(L,{className:"h-3 w-3"})}),a.id!=="backlog"&&a.id!=="all-tasks"&&e(i,{size:"sm",variant:"ghost",onClick:()=>oe(a.id),className:"h-5 px-1 text-red-600 hover:text-red-700",children:e(R,{className:"h-3 w-3"})})]})]})},a.id))})]})})]})]})]})]})},Ve=u=>e(Y,{children:s("div",{className:"flex h-full w-full",children:[e("div",{className:"hidden md:block w-16",children:e(ee,{...u})}),e("div",{className:"md:hidden",children:e(ee,{...u})}),e("div",{className:"flex-1 md:ml-0",children:u.children})]})});export{Ve as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-EGYV6SU2.mjs";import{a as u}from"./chunk-IDRYG7HP.mjs";import{a as p}from"./chunk-R64KZZJP.mjs";import{a as c}from"./chunk-JHTGGDU5.mjs";import{b as n}from"./chunk-BPSLUO5I.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-4YFMDLHL.mjs";import{a as s}from"./chunk-T6FBWMZR.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:h,logoDark:f,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
4
+ import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-YPK6OLRS.mjs";import{a as u}from"./chunk-MUBDAI2K.mjs";import{a as p}from"./chunk-NP2M5K7O.mjs";import{a as c}from"./chunk-JHTGGDU5.mjs";import{b as n}from"./chunk-BPSLUO5I.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-4YFMDLHL.mjs";import{a as s}from"./chunk-WKFNZUIR.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:h,logoDark:f,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-ROEJPYRW.mjs";import{a as T}from"./chunk-Q5LSCSF7.mjs";import{a as n}from"./chunk-F2D7YJEV.mjs";import{a as c,f as p,g,i as D}from"./chunk-BUCI7BPM.mjs";import{useState as h}from"react";import{jsx as i,jsxs as s}from"react/jsx-runtime";var M=({isOpen:C,onClose:o,task:e,epics:v,sprints:S,onUpdateTask:r,onDeleteTask:b})=>{let[u,d]=h(new Date),[l,w]=h([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:e.createdAt},{id:"2",text:"Started working on the implementation.",author:e.assignee,createdAt:new Date(e.createdAt.getTime()+864e5)}]),m=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},k=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},A=t=>{let a={id:Date.now().toString(),text:t,author:"Current User",createdAt:new Date};w([...l,a])},U=()=>{b(e.id),o()};return i(c,{open:C,onOpenChange:o,children:s(p,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[i(g,{children:i(D,{className:"sr-only",children:e.title})}),s("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[s("div",{className:"lg:col-span-2 space-y-4",children:[i(n,{fieldName:"title",value:e.title,label:"",onSave:m,className:"border-b pb-3"}),i(n,{fieldName:"description",value:e.description,label:"Description",multiline:!0,onSave:m}),i(T,{comments:l,onAddComment:A})]}),i(f,{task:e,epics:v,sprints:S,lastUpdated:u,onUpdateTask:k,onClose:o,onDelete:U})]})]})})};export{M as a};
1
+ import{a as f}from"./chunk-77KWI6EL.mjs";import{a as n}from"./chunk-F2D7YJEV.mjs";import{a as T}from"./chunk-Q5LSCSF7.mjs";import{a as c,f as p,g,i as D}from"./chunk-BUCI7BPM.mjs";import{useState as h}from"react";import{jsx as i,jsxs as s}from"react/jsx-runtime";var M=({isOpen:C,onClose:o,task:e,epics:v,sprints:S,onUpdateTask:r,onDeleteTask:b})=>{let[u,d]=h(new Date),[l,w]=h([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:e.createdAt},{id:"2",text:"Started working on the implementation.",author:e.assignee,createdAt:new Date(e.createdAt.getTime()+864e5)}]),m=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},k=(t,a)=>{a!==e[t]&&(r(e.id,{[t]:a}),d(new Date))},A=t=>{let a={id:Date.now().toString(),text:t,author:"Current User",createdAt:new Date};w([...l,a])},U=()=>{b(e.id),o()};return i(c,{open:C,onOpenChange:o,children:s(p,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[i(g,{children:i(D,{className:"sr-only",children:e.title})}),s("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[s("div",{className:"lg:col-span-2 space-y-4",children:[i(n,{fieldName:"title",value:e.title,label:"",onSave:m,className:"border-b pb-3"}),i(n,{fieldName:"description",value:e.description,label:"Description",multiline:!0,onSave:m}),i(T,{comments:l,onAddComment:A})]}),i(f,{task:e,epics:v,sprints:S,lastUpdated:u,onUpdateTask:k,onClose:o,onDelete:U})]})]})})};export{M as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as S,b as C,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as v,i as R,k as f,l as y,o as x,p as c,q as d,r as h,s as w,v as L,w as P,x as B}from"./chunk-ZYYWN6XG.mjs";import{a as n}from"./chunk-RHFLBRXF.mjs";import{ChevronRight as G}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:u,secondaryNav:s,ongoingWork:l,title:t,subTitle:o,pathName:i,menuHeading:O,onNavClick:m,loading:b=!1,LinkComponent:N,...A}){let g=N?a=>e(N,{...a}):m?({href:a,children:p,...I})=>e("button",{onClick:()=>m&&m(a),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:p}):a=>e("a",{...a});return r(k,{...A,variant:"inset",children:[e(v,{children:e(c,{children:e(d,{children:b?r("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"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:t}),o&&e("span",{className:"truncate text-sm",children:o})]})})})}),b&&r(f,{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"})]}),r(f,{children:[e("div",{className:"px-4 text-sm",children:"Recent Work"}),l&&!b&&l.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e("div",{className:"border-t border-gray-200 my-4"}),u&&!b&&u.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e(y,{className:"mt-auto",children:e(x,{children:e(c,{children:s&&!b&&s.map(a=>e(d,{children:e(h,{asChild:!0,size:"sm",children:r(g,{href:a.url||"",children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})})},a.label))})})})]}),e(R,{})]})}function F({subNav:u,pathName:s,Link:l}){let t=u,o=!1;return t.links&&t.links.map(i=>{i.url===s&&(o=!0)}),e(S,{defaultOpen:!0,className:"group/collapsible",children:e(y,{className:"py-0",children:e(c,{children:e(S,{asChild:!0,defaultOpen:t.isActive,children:r(d,{children:[e(h,{asChild:!0,tooltip:t.label,className:T(o&&"font-bold text-accent"),children:r(l,{href:t.url,children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})}),t.links?.length?r(H,{children:[e(C,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(G,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(L,{children:t.links?.map(i=>e(P,{children:e(B,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(l,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},t.label)})})})}export{J as a};
4
+ import{a as S,b as C,c as M}from"./chunk-YNCJATT7.mjs";import{c as k,h as v,i as R,k as f,l as y,o as x,p as c,q as d,r as h,s as w,v as L,w as P,x as B}from"./chunk-SUO6GOJS.mjs";import{a as n}from"./chunk-RHFLBRXF.mjs";import{ChevronRight as G}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as r}from"react/jsx-runtime";function J({mainNav:u,secondaryNav:s,ongoingWork:l,title:t,subTitle:o,pathName:i,menuHeading:O,onNavClick:m,loading:b=!1,LinkComponent:N,...A}){let g=N?a=>e(N,{...a}):m?({href:a,children:p,...I})=>e("button",{onClick:()=>m&&m(a),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:p}):a=>e("a",{...a});return r(k,{...A,variant:"inset",children:[e(v,{children:e(c,{children:e(d,{children:b?r("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"})]}):r("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:t}),o&&e("span",{className:"truncate text-sm",children:o})]})})})}),b&&r(f,{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"})]}),r(f,{children:[e("div",{className:"px-4 text-sm",children:"Recent Work"}),l&&!b&&l.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e("div",{className:"border-t border-gray-200 my-4"}),u&&!b&&u.map((a,p)=>e(F,{subNav:a,pathName:i,Link:g},p)),e(y,{className:"mt-auto",children:e(x,{children:e(c,{children:s&&!b&&s.map(a=>e(d,{children:e(h,{asChild:!0,size:"sm",children:r(g,{href:a.url||"",children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})})},a.label))})})})]}),e(R,{})]})}function F({subNav:u,pathName:s,Link:l}){let t=u,o=!1;return t.links&&t.links.map(i=>{i.url===s&&(o=!0)}),e(S,{defaultOpen:!0,className:"group/collapsible",children:e(y,{className:"py-0",children:e(c,{children:e(S,{asChild:!0,defaultOpen:t.isActive,children:r(d,{children:[e(h,{asChild:!0,tooltip:t.label,className:T(o&&"font-bold text-accent"),children:r(l,{href:t.url,children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})}),t.links?.length?r(H,{children:[e(C,{asChild:!0,children:r(w,{className:"data-[state=open]:rotate-90",children:[e(G,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(L,{children:t.links?.map(i=>e(P,{children:e(B,{asChild:!0,className:T(i.url===s&&"font-bold text-accent"),children:e(l,{href:i.url,children:e("span",{children:i.label})})})},i.label))})})]}):null]})},t.label)})})})}export{J as a};
@@ -1 +1 @@
1
- import{f as r}from"./chunk-3UA62APP.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
1
+ import{f as r}from"./chunk-5ALQQYYE.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
@@ -1 +1 @@
1
- import{f as o}from"./chunk-3UA62APP.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{f as o}from"./chunk-5ALQQYYE.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-4A43BI3C.mjs";import{a}from"./chunk-U5XA76PE.mjs";import{a as n}from"./chunk-I5DSZMH2.mjs";import{a as d}from"./chunk-3XV6OBSL.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as t}from"./chunk-FVPWO556.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{Fragment as s,jsx as e,jsxs as f}from"react/jsx-runtime";function c({...r}){return f("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(t,{...r.header,logoVideo:l,logoLight:S,logoDark:u})}),e(a,{...r.service}),e(p,{...r.service}),e(n,{...r.contact}),e(d,{...r.blog}),e(i,{...r.footer})]})}function p({services:r}){return e(s,{children:r.map((b,o)=>e(m,{...b,theme:o%2===0?"dark":"light"},o))})}export{c as a};
4
+ import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-65BHP4TM.mjs";import{a}from"./chunk-X4Q7WZZS.mjs";import{a as d}from"./chunk-IH37BDR2.mjs";import{a as n}from"./chunk-GHXEOXV4.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as t}from"./chunk-FVPWO556.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{Fragment as s,jsx as e,jsxs as f}from"react/jsx-runtime";function c({...r}){return f("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(t,{...r.header,logoVideo:l,logoLight:S,logoDark:u})}),e(a,{...r.service}),e(p,{...r.service}),e(n,{...r.contact}),e(d,{...r.blog}),e(i,{...r.footer})]})}function p({services:r}){return e(s,{children:r.map((b,o)=>e(m,{...b,theme:o%2===0?"dark":"light"},o))})}export{c as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-ZY2PDUUB.mjs";import{f as s}from"./chunk-3UA62APP.mjs";import m from"clsx";import{jsx as t,jsxs as c}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return c("div",{className:m("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
1
+ import{a as r}from"./chunk-ZY2PDUUB.mjs";import{f as s}from"./chunk-5ALQQYYE.mjs";import m from"clsx";import{jsx as t,jsxs as c}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return c("div",{className:m("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-ZYYWN6XG.mjs";import{a as f}from"./chunk-RHFLBRXF.mjs";import{a as M}from"./chunk-FVM5SQT2.mjs";import{PencilLine as z,ChevronDown as h,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as T,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(M,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:x,editorComponent:N,loading:m=!1,editMode:k=!1,onAddDocument:A,onEditDocument:L,onPrintDocument:O,onGithubClick:G,onNavClick:S,LinkComponent:I,...D}){let F=I?t=>e(I,{...t}):S?({item:t,children:r,...j})=>e("button",{onClick:()=>S&&S(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...j,children:r}):t=>e("a",{href:t.href,...t});return a(R,{side:"right",variant:"inset",...D,children:[a(v,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(u,{onClick:A,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),G&&e(n,{children:e(u,{onClick:G,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(u,{onClick:()=>L(),variant:k?"outline":"default",className:$(k&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(u,{onClick:O,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),N&&a(T,{children:[e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Editor Controls",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:N})})]})}),e(B,{className:"mx-0"})]}),a(P,{className:"overflow-auto",children:[m&&a(T,{children:[a(l,{children:[e(s,{children:"Related Content"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(l,{children:[e(s,{children:"Table of Contents"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!m&&Object.keys(i).length>0&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Related Content",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{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(C,{children:i[t].map(r=>e(g,{children:e(y,{asChild:!0,isActive:!1,size:"sm",children:a(F,{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(M,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),x&&!m&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Table of Contents",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:x.map(t=>a(n,{children:[e(u,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),t.items?.length?e(C,{children:t.items.map(r=>e(g,{children:e(y,{asChild:!0,isActive:r.isActive,size:"sm",children:e("a",{href:`#${r.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:r.title})})})},r.title))}):null]},t.title))})})})]})})]}),e(w,{})]})}export{Z as a};
4
+ import{a as p,b as d,c}from"./chunk-YNCJATT7.mjs";import{c as R,h as v,i as w,j as B,k as P,l,m as s,o as b,p as o,q as n,r as u,v as C,w as g,x as y}from"./chunk-SUO6GOJS.mjs";import{a as f}from"./chunk-RHFLBRXF.mjs";import{a as M}from"./chunk-FVM5SQT2.mjs";import{PencilLine as z,ChevronDown as h,FilePlus as E,Edit as H,Printer as _}from"lucide-react";import $ from"clsx";import{Fragment as T,jsx as e,jsxs as a}from"react/jsx-runtime";var q=()=>e(M,{iconName:"github",size:"10x"});function Z({relatedContent:i,tableOfContents:x,editorComponent:N,loading:m=!1,editMode:k=!1,onAddDocument:A,onEditDocument:L,onPrintDocument:O,onGithubClick:G,onNavClick:S,LinkComponent:I,...D}){let F=I?t=>e(I,{...t}):S?({item:t,children:r,...j})=>e("button",{onClick:()=>S&&S(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...j,children:r}):t=>e("a",{href:t.href,...t});return a(R,{side:"right",variant:"inset",...D,children:[a(v,{className:"border-b border-sidebar-border",children:[a(o,{className:"flex-row space-x-1",children:[e(n,{children:a(u,{onClick:A,children:[e(E,{})," ",e("span",{children:"Add Document"})]})}),G&&e(n,{children:e(u,{onClick:G,tooltip:"Open in GitHub",children:e(q,{})})})]}),a(o,{className:"flex-row space-x-1",children:[e(n,{className:"w-5/12",children:a(u,{onClick:()=>L(),variant:k?"outline":"default",className:$(k&&"text-accent"),children:[e(H,{})," ",e("span",{children:"Edit"})]})}),e(n,{className:"w-5/12",children:a(u,{onClick:O,children:[e(_,{})," ",e("span",{children:"Print"})]})})]})]}),N&&a(T,{children:[e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Editor Controls",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:N})})]})}),e(B,{className:"mx-0"})]}),a(P,{className:"overflow-auto",children:[m&&a(T,{children:[a(l,{children:[e(s,{children:"Related Content"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]}),a(l,{children:[e(s,{children:"Table of Contents"}),e(b,{children:e(o,{children:Array.from({length:3}).map((t,r)=>e(n,{children:e(f,{className:"bg-gray-200 w-full h-10"})},r))})})]})]}),i&&!m&&Object.keys(i).length>0&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Related Content",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{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(C,{children:i[t].map(r=>e(g,{children:e(y,{asChild:!0,isActive:!1,size:"sm",children:a(F,{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(M,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},r.label))})]},t))})})})]})}),x&&!m&&e(p,{defaultOpen:!0,className:"group/collapsible",children:a(l,{children:[e(s,{asChild:!0,children:a(d,{children:["Table of Contents",e(h,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),e(b,{children:e(c,{children:e(o,{children:x.map(t=>a(n,{children:[e(u,{asChild:!0,children:e("a",{href:`#${t.url}`,className:"text-xs",children:t.title})}),t.items?.length?e(C,{children:t.items.map(r=>e(g,{children:e(y,{asChild:!0,isActive:r.isActive,size:"sm",children:e("a",{href:`#${r.url}`,className:"flex justify-between items-center w-full text-xs",children:e("span",{children:r.title})})})},r.title))}):null]},t.title))})})})]})})]}),e(w,{})]})}export{Z as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as C}from"./chunk-RHFLBRXF.mjs";import{a as N}from"./chunk-GRCMMAFX.mjs";import{a as E,f as T}from"./chunk-HJK6BCTE.mjs";import{a as M}from"./chunk-JPZJET3B.mjs";import{a as L,b as I,c as H,d as k}from"./chunk-NACHOXV5.mjs";import{b as _}from"./chunk-BPSLUO5I.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import{a as P}from"./chunk-FRWX5YES.mjs";import*as o 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 r,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",B=o.createContext(null);function w(){let a=o.useContext(B);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=o.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:i,style:d,children:s,...p},m)=>{let c=P(),[u,b]=o.useState(!1),[v,D]=o.useState(a),f=e??v,h=o.useCallback(l=>{if(t)return t?.(typeof l=="function"?l(f):l);D(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=o.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);o.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=o.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:u,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,u,b,x]);return r(B.Provider,{value:z,children:r(L,{delayDuration:0,children:r("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",i),ref:m,...p,children:s})})})});j.displayName="SidebarProvider";var q=o.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:i,children:d,...s},p)=>{let{isMobile:m,state:c,openMobile:u,setOpenMobile:b}=w();return t==="none"?r("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:p,...s,children:d}):m?r(E,{open:u,onOpenChange:b,...s,children:r(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:r("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:p,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r("div",{className:n("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]")}),r("div",{className:n("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",i),...s,children:r("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=o.forwardRef(({className:a,onClick:e,...t},i)=>{let{toggleSidebar:d}=w();return S(_,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",a),onClick:s=>{e?.(s),d()},...t,children:[r(O,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=o.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:i}=w();return r("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:n("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=o.forwardRef(({className:a,...e},t)=>r("main",{ref:t,className:n("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=o.forwardRef(({className:a,...e},t)=>r(M,{ref:t,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=o.forwardRef(({className:a,...e},t)=>r(N,{ref:t,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"content",className:n("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=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var oe=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"div",{ref:i,"data-sidebar":"group-label",className:n("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}));oe.displayName="SidebarGroupLabel";var re=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"button",{ref:i,"data-sidebar":"group-action",className:n("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}));re.displayName="SidebarGroupAction";var ne=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group-content",className:n("w-full text-sm",a),...e}));ne.displayName="SidebarGroupContent";var ie=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",a),...e}));ie.displayName="SidebarMenu";var de=o.forwardRef(({className:a,...e},t)=>r("li",{ref:t,"data-sidebar":"menu-item",className:n("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=o.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:i="default",tooltip:d,className:s,...p},m)=>{let c=a?g:"button",{isMobile:u,state:b}=w(),v=r(c,{ref:m,"data-sidebar":"menu-button","data-size":i,"data-active":e,className:n(se({variant:t,size:i}),s),...p});return d?(typeof d=="string"&&(d={children:d}),S(I,{children:[r(H,{asChild:!0,children:v}),r(k,{side:"right",align:"center",hidden:b!=="collapsed"||u,...d})]})):v});le.displayName="SidebarMenuButton";var ce=o.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...i},d)=>r(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:n("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),...i}));ce.displayName="SidebarMenuAction";var be=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"menu-badge",className:n("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 pe=o.forwardRef(({className:a,showIcon:e=!1,...t},i)=>{let d=o.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:i,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&r(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});pe.displayName="SidebarMenuSkeleton";var ue=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu-sub",className:n("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}));ue.displayName="SidebarMenuSub";var fe=o.forwardRef(({...a},e)=>r("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=o.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:i,...d},s)=>r(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:n("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",i),...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,oe as m,re as n,ne as o,ie as p,de as q,le as r,ce as s,be as t,pe as u,ue as v,fe as w,me as x};
4
+ import{a as N}from"./chunk-GRCMMAFX.mjs";import{a as E,f as T}from"./chunk-HJK6BCTE.mjs";import{a as C}from"./chunk-RHFLBRXF.mjs";import{a as M}from"./chunk-JPZJET3B.mjs";import{a as L,b as I,c as H,d as k}from"./chunk-NACHOXV5.mjs";import{b as _}from"./chunk-BPSLUO5I.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import{a as P}from"./chunk-FRWX5YES.mjs";import*as o 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 r,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",B=o.createContext(null);function w(){let a=o.useContext(B);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=o.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:i,style:d,children:s,...p},m)=>{let c=P(),[u,b]=o.useState(!1),[v,D]=o.useState(a),f=e??v,h=o.useCallback(l=>{if(t)return t?.(typeof l=="function"?l(f):l);D(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=o.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);o.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=o.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:u,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,u,b,x]);return r(B.Provider,{value:z,children:r(L,{delayDuration:0,children:r("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",i),ref:m,...p,children:s})})})});j.displayName="SidebarProvider";var q=o.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:i,children:d,...s},p)=>{let{isMobile:m,state:c,openMobile:u,setOpenMobile:b}=w();return t==="none"?r("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:p,...s,children:d}):m?r(E,{open:u,onOpenChange:b,...s,children:r(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:r("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:p,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r("div",{className:n("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]")}),r("div",{className:n("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",i),...s,children:r("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=o.forwardRef(({className:a,onClick:e,...t},i)=>{let{toggleSidebar:d}=w();return S(_,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",a),onClick:s=>{e?.(s),d()},...t,children:[r(O,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=o.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:i}=w();return r("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:n("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=o.forwardRef(({className:a,...e},t)=>r("main",{ref:t,className:n("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=o.forwardRef(({className:a,...e},t)=>r(M,{ref:t,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=o.forwardRef(({className:a,...e},t)=>r(N,{ref:t,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"content",className:n("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=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var oe=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"div",{ref:i,"data-sidebar":"group-label",className:n("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}));oe.displayName="SidebarGroupLabel";var re=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"button",{ref:i,"data-sidebar":"group-action",className:n("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}));re.displayName="SidebarGroupAction";var ne=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group-content",className:n("w-full text-sm",a),...e}));ne.displayName="SidebarGroupContent";var ie=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",a),...e}));ie.displayName="SidebarMenu";var de=o.forwardRef(({className:a,...e},t)=>r("li",{ref:t,"data-sidebar":"menu-item",className:n("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=o.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:i="default",tooltip:d,className:s,...p},m)=>{let c=a?g:"button",{isMobile:u,state:b}=w(),v=r(c,{ref:m,"data-sidebar":"menu-button","data-size":i,"data-active":e,className:n(se({variant:t,size:i}),s),...p});return d?(typeof d=="string"&&(d={children:d}),S(I,{children:[r(H,{asChild:!0,children:v}),r(k,{side:"right",align:"center",hidden:b!=="collapsed"||u,...d})]})):v});le.displayName="SidebarMenuButton";var ce=o.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...i},d)=>r(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:n("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),...i}));ce.displayName="SidebarMenuAction";var be=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"menu-badge",className:n("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 pe=o.forwardRef(({className:a,showIcon:e=!1,...t},i)=>{let d=o.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:i,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&r(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});pe.displayName="SidebarMenuSkeleton";var ue=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu-sub",className:n("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}));ue.displayName="SidebarMenuSub";var fe=o.forwardRef(({...a},e)=>r("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=o.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:i,...d},s)=>r(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:n("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",i),...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,oe as m,re as n,ne as o,ie as p,de as q,le as r,ce as s,be as t,pe as u,ue as v,fe as w,me as x};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-ZJSR6A6I.mjs";import{a as v}from"./chunk-APNL5YEF.mjs";import{c as b,d as h}from"./chunk-3UA62APP.mjs";import{a as k}from"./chunk-IC57R2EU.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.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 t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.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 t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
1
+ import{a as p}from"./chunk-JLCWVIEP.mjs";import{a as v}from"./chunk-FSYU3D5O.mjs";import{c as b,d as h}from"./chunk-5ALQQYYE.mjs";import{a as k}from"./chunk-IC57R2EU.mjs";import{a}from"./chunk-HTVHCBXQ.mjs";import{Fragment as x}from"react";import R from"next/image";import{jsx as t,jsxs as g}from"react/jsx-runtime";var y={content:v,cta:b,mediaBlock:k,collapsibleArea:p,imageBlock:k,features:h,reusableContentBlock:C},P=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("section",{id:"render-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return g("div",{className:a("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[t(B,{block:i,index:s}),t("div",{className:a("container h-full relative",m?.settings?.theme||"dark"),children:t(o,{...i})})]},s)}return null})}):null},B=e=>{if(!("theme"in e.block))return t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background")});let n=e.block?.theme;if(n.settings.background==="image"){let u={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[t(R,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:u.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 t("div",{className:a("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},E=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?t("main",{id:"content-blocks",className:a(e.fill?"h-full w-full":""),children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in y){let o=y[r];if(r==="reusableContentBlock")return t(x,{children:t(P,{blocks:i.reusableContent.layout})},s);if(o)return t(A,{block:i,allBlocks:n,index:s,children:t(o,{...i})})}return null})}):null},A=e=>{if(e.index===0)return g("section",{className:"relative flex w-full",children:[t("div",{className:a("absolute inset-0 w-screen h-full light bg-background")}),t("div",{className:a("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let n=l=>l%2===0?"light":"dark",u=({index:l,allBlocks:c})=>l===1?t(N,{position:"left"}):s(l,c)==="dark"&&m(l,c)==="light"?t(w,{position:"left"}):s(l,c)==="light"&&m(l,c)==="dark"?t(N,{position:"left"}):null,i=({index:l,allBlocks:c})=>r(l,c)==="light"&&m(l,c)==="dark"?t(w,{position:"left"}):null,s=(l,c)=>{if(l===1)return"light";let d=c[l-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},r=(l,c)=>{if(l===c.length-1)return"dark";if(l===0)return"light";let d=c[l+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},m=(l,c)=>{if(l===c.length-1)return"dark";let d=c[l];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return s(e.index,e.allBlocks)==="dark"?g("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[t("div",{className:a("absolute inset-0 w-screen dark bg-background")}),t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})]}):g("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen")}),t("div",{className:"bg-black",children:t("div",{className:a("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||s(e.index,e.allBlocks)===m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(s(e.index,e.allBlocks)!==m(e.index,e.allBlocks)){let l=m(e.index,e.allBlocks);return g("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[t(u,{index:e.index,allBlocks:e.allBlocks}),t("div",{className:a("absolute inset-0 w-screen bg-background",l)}),t("div",{className:a("container relative bg-background min-h-[22em] content-center py-1",l,l==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return g("div",{className:a("container h-full relative","dark"),children:[t("div",{className:a("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let o=e.block?.theme;if(o.settings.background==="image"){let l={imagePosition:o.settings.imagePosition||"left",overlay:o.settings.overlay!==void 0?o.settings.overlay:!0};return g("div",{className:a("absolute inset-0 w-full h-full bg-background",o.settings.theme||"dark"),children:[t(R,{src:o.settings?.image?.url||"/placeholder.svg",alt:o.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),o.settings.overlay&&t("div",{className:"absolute inset-0",style:{background:l.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 t("div",{className:a("absolute inset-0 w-screen h-full bg-background",o.settings.theme||"dark")})},N=({position:e})=>t("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:a("w-full block overflow-hidden"),children:t("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),w=({position:e})=>t("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:g("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:a("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[t("defs",{children:g("mask",{id:"mask",children:[t("rect",{width:"100%",height:"100%",fill:"white"}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),t("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import{Fragment as F,jsx as f,jsxs as I}from"react/jsx-runtime";var C=e=>{let{customId:n,reusableContent:u}=e;return typeof u=="object"&&u!==null?f(S,{blocks:u.layout}):f(F,{})},T={content:v,cta:b,mediaBlock:k,imageBlock:k,features:h},S=e=>{let{blocks:n}=e;return n&&Array.isArray(n)&&n.length>0?f(F,{children:n.map((i,s)=>{let{blockType:r}=i,m=i?.theme;if(r&&r in T){let o=T[r];if(o)return I("div",{className:"py-6 relative",children:[f(B,{block:i,index:s}),f("div",{className:a(m?.settings?.theme==="dark"?"dark":m?.settings?.theme==="green"?"green":""),children:f(o,{...i})})]},s)}return null})}):null};export{C as a,P as b,B as c,E as d,A as e,N as f,w as g};
@@ -1 +1 @@
1
- import{a as q}from"./chunk-33ZXPMQU.mjs";import{a as $}from"./chunk-E7W2GFKO.mjs";import{a as L}from"./chunk-ZEOV7BEN.mjs";import{a as J}from"./chunk-TWPRI2XQ.mjs";import{a as H}from"./chunk-6NZJ2VXQ.mjs";import{a as W}from"./chunk-2WXIUKCO.mjs";import{a as K}from"./chunk-P3PIMDIR.mjs";import{a as G}from"./chunk-I3FBQX6H.mjs";import{a as z}from"./chunk-PPUE5IPA.mjs";import{a as F}from"./chunk-6U663VXT.mjs";import{a as U,b as B,i as j,j as V}from"./chunk-K4RVBOIC.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{b as R}from"./chunk-J2IHT57D.mjs";import{useState as r}from"react";import{Kanban as ye,Plus as Ae,MessageSquare as xe,MoreHorizontal as Ee}from"lucide-react";import{useRouter as Me}from"next/navigation";import{Fragment as Oe,jsx as n,jsxs as a}from"react/jsx-runtime";var Ce=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],Ne=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Pe=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Ie=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],_e=()=>{let[f,d]=r(Ie),[o,h]=r(Ne),[c,D]=r(Pe),[Q,w]=r(Ce),[X,k]=r(!1),[Y,b]=r(!1),[m,S]=r(null),[E,M]=r(null),[l,Z]=r("kanban"),[_,ee]=r(!1),C=Me(),N=o.filter(e=>e.isSelected).map(e=>e.id),g=c.find(e=>e.isSelected),te=f.filter(e=>{let t=N.includes(e.epicId);return!g||g.id==="all-tasks"?t:g.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===g.id}),ie=e=>te.filter(t=>t.status===e),ne=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(s=>s.epicId===i.id)}),t},se=e=>{M(e)},ae=e=>{E&&(d(t=>t.map(i=>i.id===E.id?{...i,status:e}:i)),M(null))},re=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t])},T=(e,t)=>{d(i=>i.map(s=>s.id===e?{...s,...t}:s))},oe=e=>{d(t=>t.filter(i=>i.id!==e)),m?.id===e&&S(null)},de=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};w(i=>[...i,t])},ce=(e,t)=>{w(i=>i.map(s=>s.id===e?t.isSelected?(C.push(`/kanban/${e}`),{...s,...t}):{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},le=e=>{w(t=>t.filter(i=>i.id!==e))},pe=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};h(i=>[...i,t])},me=(e,t)=>{h(i=>i.map(s=>s.id===e?{...s,...t}:s))},ge=e=>{h(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e))},P=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};D(i=>[...i,t])},ue=(e,t)=>{D(i=>i.map(s=>s.id===e?t.isSelected?{...s,...t}:{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},fe=e=>{e==="backlog"||e==="all-tasks"||(D(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)))},v=e=>{S(e)},he=e=>{e==="planning"&&window.innerWidth<768||Z(e)},I=()=>{ee(e=>!e)},De=()=>{C.push("/")},O=e=>{console.log("Switching to team:",e)},Ue=e=>{console.log("Switching to team:",e)},we=e=>{k(!0)},ke=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],be=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},y=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],Se=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),Te=y.length>3,ve=y.slice(3);return a("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[n(K,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:I,onToggleNotifications:()=>{}}),n("div",{className:"border-b bg-white px-6 py-3",children:n("div",{className:"max-w-7xl mx-auto",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-4",children:[a(p,{variant:"outline",onClick:De,className:"gap-2 h-9",children:[n(xe,{className:"h-4 w-4"}),"Copilot"]}),Se.map(e=>a(p,{variant:"default",onClick:()=>O(e.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id)),Te&&a(U,{children:[n(B,{asChild:!0,children:n(p,{variant:"outline",className:"h-9 w-9 p-0",children:n(Ee,{className:"h-4 w-4"})})}),n(j,{align:"start",children:ve.map(e=>a(V,{onClick:()=>O(e.id),className:"flex items-center gap-2 cursor-pointer",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id))})]})]}),l==="kanban"&&a(p,{onClick:()=>k(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[n(Ae,{className:"h-4 w-4"}),"Add Task"]})]})})}),n($,{projects:Q,epics:o,sprints:c,currentView:l,onUpdateProject:ce,onDeleteProject:le,onAddProject:de,onUpdateEpic:me,onDeleteEpic:ge,onAddEpic:()=>b(!0),onAddSprint:P,onUpdateSprint:ue,onDeleteSprint:fe,onViewChange:he,mobileMenuOpen:_,onToggleMobileMenu:I,children:n("div",{className:"flex-1 p-6",children:a("div",{className:"max-w-7xl mx-auto",children:[n("div",{className:"mb-8",children:a("div",{className:"flex items-center gap-3 mb-4",children:[n(ye,{className:"h-8 w-8 text-blue-600"}),n("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:be()})]})}),l==="kanban"?n("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:ke.map(e=>{let t=ie(e.status),i=ne(t);return n(W,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",children:N.map(s=>{let A=o.find(u=>u.id===s),x=i[s]||[];return x.length===0?null:a("div",{className:"mb-6",children:[a("div",{className:"flex items-center gap-2 mb-3",children:[n("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),n("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:A?.name}),n(R,{variant:"secondary",className:"text-xs",children:x.length})]}),n("div",{className:"space-y-3",children:x.map(u=>n(H,{task:u,epic:A,onDragStart:se,onTaskClick:v,isCompact:e.status==="done"},u.id))})]},s)})},e.id)})}):l==="planning"?n("div",{className:"hidden md:block",children:n(L,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddSprint:P})}):l==="epics"?n(J,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddTaskToEpic:we,onAddEpic:()=>b(!0)}):n(G,{}),a(Oe,{children:[n(F,{isOpen:X,onClose:()=>k(!1),onAddTask:re,epics:o,sprints:c}),n(z,{isOpen:Y,onClose:()=>b(!1),onAddEpic:pe}),m&&n(q,{isOpen:!!m,onClose:()=>S(null),task:m,epics:o,sprints:c,onUpdateTask:T,onDeleteTask:oe})]})]})})})]})};export{_e as a};
1
+ import{a as q}from"./chunk-MQRRCCAR.mjs";import{a as W}from"./chunk-2WXIUKCO.mjs";import{a as $}from"./chunk-L45A6K4C.mjs";import{a as L}from"./chunk-ZEOV7BEN.mjs";import{a as J}from"./chunk-TWPRI2XQ.mjs";import{a as H}from"./chunk-6NZJ2VXQ.mjs";import{a as K}from"./chunk-P3PIMDIR.mjs";import{a as G}from"./chunk-I3FBQX6H.mjs";import{a as z}from"./chunk-PPUE5IPA.mjs";import{a as F}from"./chunk-6U663VXT.mjs";import{a as U,b as B,i as j,j as V}from"./chunk-K4RVBOIC.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{b as R}from"./chunk-J2IHT57D.mjs";import{useState as r}from"react";import{Kanban as ye,Plus as Ae,MessageSquare as xe,MoreHorizontal as Ee}from"lucide-react";import{useRouter as Me}from"next/navigation";import{Fragment as Oe,jsx as n,jsxs as a}from"react/jsx-runtime";var Ce=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}],Ne=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Pe=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],Ie=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],_e=()=>{let[f,d]=r(Ie),[o,h]=r(Ne),[c,D]=r(Pe),[Q,w]=r(Ce),[X,k]=r(!1),[Y,b]=r(!1),[m,S]=r(null),[E,M]=r(null),[l,Z]=r("kanban"),[_,ee]=r(!1),C=Me(),N=o.filter(e=>e.isSelected).map(e=>e.id),g=c.find(e=>e.isSelected),te=f.filter(e=>{let t=N.includes(e.epicId);return!g||g.id==="all-tasks"?t:g.id==="backlog"?t&&!e.sprintId:t&&e.sprintId===g.id}),ie=e=>te.filter(t=>t.status===e),ne=e=>{let t={};return o.forEach(i=>{t[i.id]=e.filter(s=>s.epicId===i.id)}),t},se=e=>{M(e)},ae=e=>{E&&(d(t=>t.map(i=>i.id===E.id?{...i,status:e}:i)),M(null))},re=e=>{let t={...e,id:Date.now().toString(),createdAt:new Date};d(i=>[...i,t])},T=(e,t)=>{d(i=>i.map(s=>s.id===e?{...s,...t}:s))},oe=e=>{d(t=>t.filter(i=>i.id!==e)),m?.id===e&&S(null)},de=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};w(i=>[...i,t])},ce=(e,t)=>{w(i=>i.map(s=>s.id===e?t.isSelected?(C.push(`/kanban/${e}`),{...s,...t}):{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},le=e=>{w(t=>t.filter(i=>i.id!==e))},pe=e=>{let t={...e,id:Date.now().toString(),isSelected:!0};h(i=>[...i,t])},me=(e,t)=>{h(i=>i.map(s=>s.id===e?{...s,...t}:s))},ge=e=>{h(t=>t.filter(i=>i.id!==e)),d(t=>t.filter(i=>i.epicId!==e))},P=e=>{let t={...e,id:Date.now().toString(),isSelected:!1};D(i=>[...i,t])},ue=(e,t)=>{D(i=>i.map(s=>s.id===e?t.isSelected?{...s,...t}:{...s,...t}:t.isSelected&&e!==s.id?{...s,isSelected:!1}:s))},fe=e=>{e==="backlog"||e==="all-tasks"||(D(t=>t.filter(i=>i.id!==e)),d(t=>t.map(i=>i.sprintId===e?{...i,sprintId:void 0}:i)))},v=e=>{S(e)},he=e=>{e==="planning"&&window.innerWidth<768||Z(e)},I=()=>{ee(e=>!e)},De=()=>{C.push("/")},O=e=>{console.log("Switching to team:",e)},Ue=e=>{console.log("Switching to team:",e)},we=e=>{k(!0)},ke=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],be=()=>{switch(l){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"documentation":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},y=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],Se=y.sort((e,t)=>t.lastUsed.getTime()-e.lastUsed.getTime()).slice(0,3),Te=y.length>3,ve=y.slice(3);return a("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 flex flex-col",children:[n(K,{isRightSidebarOpen:!1,onToggleRightSidebar:()=>{},onToggleLeftSidebar:I,onToggleNotifications:()=>{}}),n("div",{className:"border-b bg-white px-6 py-3",children:n("div",{className:"max-w-7xl mx-auto",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-4",children:[a(p,{variant:"outline",onClick:De,className:"gap-2 h-9",children:[n(xe,{className:"h-4 w-4"}),"Copilot"]}),Se.map(e=>a(p,{variant:"default",onClick:()=>O(e.id),className:"gap-2 h-9 bg-blue-600 hover:bg-blue-700",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id)),Te&&a(U,{children:[n(B,{asChild:!0,children:n(p,{variant:"outline",className:"h-9 w-9 p-0",children:n(Ee,{className:"h-4 w-4"})})}),n(j,{align:"start",children:ve.map(e=>a(V,{onClick:()=>O(e.id),className:"flex items-center gap-2 cursor-pointer",children:[n("div",{className:"w-5 h-5 rounded bg-gradient-to-r from-blue-500 to-purple-500 flex items-center justify-center text-white text-xs font-medium",children:e.avatar}),e.name]},e.id))})]})]}),l==="kanban"&&a(p,{onClick:()=>k(!0),className:"bg-blue-600 hover:bg-blue-700 text-white gap-2",children:[n(Ae,{className:"h-4 w-4"}),"Add Task"]})]})})}),n($,{projects:Q,epics:o,sprints:c,currentView:l,onUpdateProject:ce,onDeleteProject:le,onAddProject:de,onUpdateEpic:me,onDeleteEpic:ge,onAddEpic:()=>b(!0),onAddSprint:P,onUpdateSprint:ue,onDeleteSprint:fe,onViewChange:he,mobileMenuOpen:_,onToggleMobileMenu:I,children:n("div",{className:"flex-1 p-6",children:a("div",{className:"max-w-7xl mx-auto",children:[n("div",{className:"mb-8",children:a("div",{className:"flex items-center gap-3 mb-4",children:[n(ye,{className:"h-8 w-8 text-blue-600"}),n("h1",{className:"text-3xl font-bold text-gray-900 select-none-important",children:be()})]})}),l==="kanban"?n("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:ke.map(e=>{let t=ie(e.status),i=ne(t);return n(W,{title:e.title,status:e.status,taskCount:t.length,onDrop:ae,isCompact:e.status==="done",children:N.map(s=>{let A=o.find(u=>u.id===s),x=i[s]||[];return x.length===0?null:a("div",{className:"mb-6",children:[a("div",{className:"flex items-center gap-2 mb-3",children:[n("div",{className:`w-3 h-3 rounded-full ${A?.color}`}),n("span",{className:"text-sm font-medium text-gray-600 select-none-important",children:A?.name}),n(R,{variant:"secondary",className:"text-xs",children:x.length})]}),n("div",{className:"space-y-3",children:x.map(u=>n(H,{task:u,epic:A,onDragStart:se,onTaskClick:v,isCompact:e.status==="done"},u.id))})]},s)})},e.id)})}):l==="planning"?n("div",{className:"hidden md:block",children:n(L,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddSprint:P})}):l==="epics"?n(J,{tasks:f,epics:o,sprints:c,onUpdateTask:T,onTaskClick:v,onAddTaskToEpic:we,onAddEpic:()=>b(!0)}):n(G,{}),a(Oe,{children:[n(F,{isOpen:X,onClose:()=>k(!1),onAddTask:re,epics:o,sprints:c}),n(z,{isOpen:Y,onClose:()=>b(!1),onAddEpic:pe}),m&&n(q,{isOpen:!!m,onClose:()=>S(null),task:m,epics:o,sprints:c,onUpdateTask:T,onDeleteTask:oe})]})]})})})]})};export{_e as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-2ELJOFU3.mjs";import{a as o}from"./chunk-E6KVX2UG.mjs";import{a as e}from"./chunk-KTXQBXXJ.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
1
+ import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-UDQTFQR7.mjs";import{a as o}from"./chunk-E6KVX2UG.mjs";import{a as e}from"./chunk-KTXQBXXJ.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
@@ -1 +1 @@
1
- import{f as r}from"./chunk-3UA62APP.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({subtitle:s,title:o,description:e,alignment:a="start",hasBottomSpacing:i=!1,className:m,invert:l=!1}){let p=n(a==="start"&&"text-left",a==="center"&&"text-center",a==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},"prose",m);return c("div",{className:p,children:[s&&t("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:s}),t("h2",{className:n("text-primary mt-0"),children:o}),typeof e=="string"?e&&t("p",{className:"mt-5 whitespace-pre-line text-foreground",children:e}):e&&t(r,{content:e,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}export{f as a};
1
+ import{f as r}from"./chunk-5ALQQYYE.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({subtitle:s,title:o,description:e,alignment:a="start",hasBottomSpacing:i=!1,className:m,invert:l=!1}){let p=n(a==="start"&&"text-left",a==="center"&&"text-center",a==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},"prose",m);return c("div",{className:p,children:[s&&t("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:s}),t("h2",{className:n("text-primary mt-0"),children:o}),typeof e=="string"?e&&t("p",{className:"mt-5 whitespace-pre-line text-foreground",children:e}):e&&t(r,{content:e,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}export{f as a};
@@ -0,0 +1 @@
1
+ import{a as u,c as g,d as p,g as v,i as b}from"./chunk-OGZERPA4.mjs";import{a as S}from"./chunk-6T322YHB.mjs";import{a as F}from"./chunk-CX4XB5W2.mjs";import{a as l}from"./chunk-EECIYMTX.mjs";import{a as B}from"./chunk-KJIBE57R.mjs";import{a as w,f as P,g as L,i as A}from"./chunk-BUCI7BPM.mjs";import{a as d}from"./chunk-JPZJET3B.mjs";import{b as m}from"./chunk-BPSLUO5I.mjs";import{b as I}from"./chunk-J2IHT57D.mjs";import{useState as x,useEffect as M}from"react";import{UserIcon as Q,CalendarIcon as $,SaveIcon as j,PlusIcon as q}from"lucide-react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function ie({deal:c,users:f,customer:T,categories:U,onClose:E,onSave:O,onAddComment:V}){let[t,h]=x({...c,value:c.value||0,comments:c.comments||[],customer:c.customer||{}}),[C,D]=x(""),[H,y]=x(!1),[i,s]=x(null);M(()=>{y(JSON.stringify(c)!==JSON.stringify(t))},[c,t]);let R=async()=>{try{let e=await O(t);e.success?(y(!1),s(null)):console.error("Failed to save deal:",e.errors)}catch(e){console.error("Failed to save deal:",e)}},n=(e,o)=>{h(N=>({...N,[e]:o}))},G=e=>{let o=(t.categories||[]).includes(e)?(t.categories||[]).filter(N=>N!==e):[...t.categories||[],e];n("categories",o)},J=async()=>{if(C.trim()){let e={text:C,timestamp:new Date().toISOString()};try{let o=await V(e);if(!o.success){console.error("Failed to add comment:",o.errors);return}}catch(o){console.error("Failed to add comment:",o)}h(o=>({...o,comments:[...o.comments||[],e]})),D("")}},k=e=>{switch(e){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},W=e=>f?.find(o=>o.id===Number(e));return a(w,{open:!0,children:r(P,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[r(L,{className:"flex flex-row items-center justify-between",children:[a(A,{className:"text-2xl font-bold",children:T?.name||"no customer"}),r("div",{className:"flex space-x-2",children:[a(m,{variant:"outline",onClick:E,children:"Close"}),r(m,{onClick:R,disabled:!H,children:[a(j,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),r(S,{className:"flex-grow pr-4",children:[r("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2 m-1",children:i==="value"?a(d,{type:"number",value:t.value,onChange:e=>n("value",Number(e.target.value)),onBlur:()=>s(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):r("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("value"),children:["\xA3",t.value?.toLocaleString()]})}),r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Assignee"}),i==="assignee"?r(u,{value:t?.assignee?.id?.toString()||"",onValueChange:e=>n("assignee",W(e)),children:[a(p,{children:a(g,{placeholder:"Select assignee"})}),a(v,{children:f&&f.map(e=>a(b,{value:e?.id?.toString()||"",children:e.name},e.id))})]}):r("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("assignee"),children:[a(Q,{className:"w-4 h-4 text-gray-400"}),a("span",{children:t?.assignee?.name})]})]}),r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Closure Date"}),i==="closureDate"?a(d,{type:"date",value:t.closureDate?.split("T")[0]??"",onChange:e=>n("closureDate",e.target.value),onBlur:()=>s(null),className:"mr-2",autoFocus:!0}):r("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("closureDate"),children:[a($,{className:"w-4 h-4 text-gray-400"}),a("span",{children:t.closureDate?new Date(t.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Description"}),i==="description"?a(F,{value:t.description||"",onChange:e=>n("description",e.target.value),onBlur:()=>s(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>s("description"),children:t.description})]})}),r("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"Status"}),i==="status"?r(u,{value:t.status,onValueChange:e=>{n("status",e),s(null)},children:[a(p,{children:a(g,{placeholder:"Select status"})}),a(v,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(e=>a(b,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("status"),children:t.status})]}),r("div",{className:"grid col-span-2 gap-2",children:[a(l,{className:"text-sm font-medium text-accent",children:"Categories"}),i==="categories"?a("div",{className:"grid grid-cols-2 gap-2 m-1",children:U.map(e=>r("div",{className:"flex items-center space-x-2",children:[a(B,{id:e.id?.toString()||"",checked:(t.categories||[]).some(o=>o.id===e.id),onCheckedChange:()=>e.id!==void 0&&G(e)}),a("label",{htmlFor:(e.id??"").toString(),className:`text-sm font-medium ${k(e.type||"sector")} px-2 py-1 rounded`,children:e.name})]},e.id))}):a("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("categories"),children:t.categories&&t.categories.map(e=>{let o=e;return o?a(I,{variant:"outline",className:k(o.type||"sector"),children:o.name},o.id):null})})]}),r("div",{className:"grid gap-2 m-1",children:[a(l,{className:"text-sm font-medium text-accent",children:"COGE Status"}),i==="gecoStatus"?r(u,{value:t.gecoStatus??void 0,onValueChange:e=>{n("gecoStatus",e),s(null)},children:[a(p,{children:a(g,{placeholder:"Select status"})}),a(v,{children:["firm","forecast","other"].map(e=>a(b,{value:e,children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]}):a("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>s("gecoStatus"),children:t.gecoStatus?t.gecoStatus.charAt(0).toUpperCase()+t.gecoStatus.slice(1):"N/A"})]})]}),r("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[r("div",{className:"grid gap-2",children:[a(l,{className:"text-sm font-medium text-accent",children:"Comments"}),a(S,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:t.comments&&t.comments.slice().sort((e,o)=>new Date(o.timestamp||"").getTime()-new Date(e.timestamp||"").getTime()).map(e=>r("div",{className:"p-3 rounded-lg",children:[a("p",{className:"text-sm text-foreground",children:e.text}),r("p",{className:"text-xs text-foreground mt-1",children:[e?.author?.name," - ",new Date(e.timestamp||"").toLocaleString()]})]},e.id))})}),r("div",{className:"flex mt-2",children:[a(d,{value:C,onChange:e=>D(e.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),r(m,{onClick:J,className:"ml-2",children:[a(q,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),r("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(t.updatedAt||"").toLocaleString()]})]})]})]})})}export{ie as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-KJIBE57R.mjs";import{a as u}from"./chunk-CX4XB5W2.mjs";import{a as m}from"./chunk-EECIYMTX.mjs";import{a as i}from"./chunk-JPZJET3B.mjs";import{b as s}from"./chunk-BPSLUO5I.mjs";import{useState as l}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";function N({onSubmit:c}){let[e,r]=l({name:"",intro:"",active:!1});return a("form",{onSubmit:t=>{t.preventDefault(),e.name&&(c({...e,name:e.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerName",children:"Customer Name"}),o(i,{id:"customerName",value:e.name,onChange:t=>r({...e,name:t.target.value}),placeholder:"Enter customer name",required:!0})]}),a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerIntro",children:"Intro"}),o(u,{id:"customerIntro",value:e.intro??"",onChange:t=>r({...e,intro:t.target.value}),placeholder:"Enter customer intro"})]}),a("div",{className:"flex items-center space-x-2",children:[o(n,{id:"activeCustomer",checked:!!e.active,onCheckedChange:t=>r({...e,active:t})}),o(m,{htmlFor:"activeCustomer",children:"Active Customer"})]}),o(s,{type:"submit",className:"w-full",children:"Add Customer"})]})}export{N as a};
1
+ import{a as u}from"./chunk-CX4XB5W2.mjs";import{a as m}from"./chunk-EECIYMTX.mjs";import{a as n}from"./chunk-KJIBE57R.mjs";import{a as i}from"./chunk-JPZJET3B.mjs";import{b as s}from"./chunk-BPSLUO5I.mjs";import{useState as l}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";function N({onSubmit:c}){let[e,r]=l({name:"",intro:"",active:!1});return a("form",{onSubmit:t=>{t.preventDefault(),e.name&&(c({...e,name:e.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerName",children:"Customer Name"}),o(i,{id:"customerName",value:e.name,onChange:t=>r({...e,name:t.target.value}),placeholder:"Enter customer name",required:!0})]}),a("div",{className:"space-y-2",children:[o(m,{htmlFor:"customerIntro",children:"Intro"}),o(u,{id:"customerIntro",value:e.intro??"",onChange:t=>r({...e,intro:t.target.value}),placeholder:"Enter customer intro"})]}),a("div",{className:"flex items-center space-x-2",children:[o(n,{id:"activeCustomer",checked:!!e.active,onCheckedChange:t=>r({...e,active:t})}),o(m,{htmlFor:"activeCustomer",children:"Active Customer"})]}),o(s,{type:"submit",className:"w-full",children:"Add Customer"})]})}export{N as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-H6POT4A7.mjs";import{a as i}from"./chunk-6MWXSKBH.mjs";import{a as r}from"./chunk-HTVHCBXQ.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
1
+ import{a as i}from"./chunk-6MWXSKBH.mjs";import{a as m}from"./chunk-H6POT4A7.mjs";import{a as r}from"./chunk-HTVHCBXQ.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
@@ -1 +1 @@
1
- import{f as t}from"./chunk-3UA62APP.mjs";import{b as o}from"./chunk-BPSLUO5I.mjs";import{a as r}from"./chunk-HTVHCBXQ.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
1
+ import{f as t}from"./chunk-5ALQQYYE.mjs";import{b as o}from"./chunk-BPSLUO5I.mjs";import{a as r}from"./chunk-HTVHCBXQ.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-3UA62APP.mjs";import{a as o}from"./chunk-HTVHCBXQ.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
1
+ import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-5ALQQYYE.mjs";import{a as o}from"./chunk-HTVHCBXQ.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-5OMUHSTO.mjs";import{d as r}from"./chunk-IISHIQBQ.mjs";import{a as m}from"./chunk-2ZB6Z7XN.mjs";import{a}from"./chunk-T6FBWMZR.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{a as t}from"./chunk-Q3G5UAAD.mjs";import{Observer as c}from"tailwindcss-intersect";import{useEffect as d}from"react";import{jsx as o,jsxs as h}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:l,tableOfContents:b}=t(f);return d(()=>{c.start()},[]),h("div",{className:"relative overflow-none scroll-smooth snap-y snap-mandatory overscroll-contain",children:[o(a,{isMenuOpen:!0,logoLight:s,logoDark:p,wide:!0}),o("div",{children:o(n,{...e.hero})}),e.hero&&e.related&&o(m,{menuItems:e.related,dark:e.hero.type!=="highImpact",wide:!0}),o(r,{blocks:l}),o(i,{...e.footer})]})}export{g as a};
1
+ import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-CJF6GVGP.mjs";import{d as r}from"./chunk-T5W5LMEK.mjs";import{a as m}from"./chunk-2ZB6Z7XN.mjs";import{a as i}from"./chunk-BONRVXMX.mjs";import{a}from"./chunk-WKFNZUIR.mjs";import{a as t}from"./chunk-Q3G5UAAD.mjs";import{Observer as c}from"tailwindcss-intersect";import{useEffect as d}from"react";import{jsx as o,jsxs as h}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:l,tableOfContents:b}=t(f);return d(()=>{c.start()},[]),h("div",{className:"relative overflow-none scroll-smooth snap-y snap-mandatory overscroll-contain",children:[o(a,{isMenuOpen:!0,logoLight:s,logoDark:p,wide:!0}),o("div",{children:o(n,{...e.hero})}),e.hero&&e.related&&o(m,{menuItems:e.related,dark:e.hero.type!=="highImpact",wide:!0}),o(r,{blocks:l}),o(i,{...e.footer})]})}export{g as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{f as l}from"./chunk-3UA62APP.mjs";import{a as r}from"./chunk-C4DU747D.mjs";import{a as s}from"./chunk-SX5U74MW.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
4
+ import{f as l}from"./chunk-5ALQQYYE.mjs";import{a as r}from"./chunk-C4DU747D.mjs";import{a as s}from"./chunk-SX5U74MW.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-MEWCJ4MA.mjs";import{a as m}from"./chunk-PFWODHNV.mjs";import{useState as P,useCallback as M}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as x}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function h({initialData:o,addNewDeal:p,updateDeal:l,addComment:C,addNewCustomer:g}){let[a,u]=P(null),D=e=>(o.deals??[]).filter(t=>t.status===e),b=e=>e.reduce((t,s)=>t+(s.value||0),0),S=(e,t)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return e.reduce((c,d)=>c+(d.value||0)*s[t],0)},f=M(e=>{let{source:t,destination:s}=e;if(!s||t.droppableId===s.droppableId&&t.index===s.index)return;let c=t.droppableId,d=s.droppableId,n=o.deals?.filter(R=>R.id===t.index)[0],W=[...o.deals??[]];n&&(n.status=d,l(n))},[l]);return r(v,{onDragEnd:f,children:x("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=D(e);return r(m,{status:e,deals:t,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:u,calculateColumnValue:b,calculateWeightedValue:S,addNewDeal:e==="Cold"?p:void 0,onAddCustomer:g},e)})}),a&&r(i,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>u(null),onSave:l,onAddComment:e=>C(a.id.toString(),e)})]})})}export{h as a};
4
+ import{a as m}from"./chunk-3AUTMBDB.mjs";import{a as i}from"./chunk-URPKAQGD.mjs";import{useState as P,useCallback as M}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as x}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function h({initialData:o,addNewDeal:p,updateDeal:l,addComment:C,addNewCustomer:g}){let[a,u]=P(null),D=e=>(o.deals??[]).filter(t=>t.status===e),b=e=>e.reduce((t,s)=>t+(s.value||0),0),S=(e,t)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return e.reduce((c,d)=>c+(d.value||0)*s[t],0)},f=M(e=>{let{source:t,destination:s}=e;if(!s||t.droppableId===s.droppableId&&t.index===s.index)return;let c=t.droppableId,d=s.droppableId,n=o.deals?.filter(R=>R.id===t.index)[0],W=[...o.deals??[]];n&&(n.status=d,l(n))},[l]);return r(v,{onDragEnd:f,children:x("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=D(e);return r(m,{status:e,deals:t,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:u,calculateColumnValue:b,calculateWeightedValue:S,addNewDeal:e==="Cold"?p:void 0,onAddCustomer:g},e)})}),a&&r(i,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>u(null),onSave:l,onAddComment:e=>C(a.id.toString(),e)})]})})}export{h as a};
@@ -1 +1 @@
1
- import{a}from"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as BannerBlock};
1
+ import{a}from"../../chunk-5ALQQYYE.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as BannerBlock};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{b as a,c as b}from"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{b as CallToActionBlock,a as CallToActionBlockOld};
2
+ "use strict";import{b as a,c as b}from"../../chunk-5ALQQYYE.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{b as CallToActionBlock,a as CallToActionBlockOld};
@@ -1 +1 @@
1
- import{c as t}from"../../chunk-3UA62APP.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-STHWCR5K.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";import{jsx as i}from"react/jsx-runtime";var r={title:"Reusable Blocks/CallToAction",component:t},s=r,o=l=>i(t,{...l}),e=o.bind({});e.args={richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}},links:[{link:{type:"custom",label:"Learn More",url:"#"}},{link:{type:"custom",label:"Get Started",url:"#"}}]};var a=o.bind({});a.args={...e.args,links:[{link:{type:"custom",label:"Learn More",url:"#"}}]};var n=o.bind({});n.args={...e.args,links:[{link:{type:"custom",label:"Contact us",url:"/contact"}}]};export{n as ContactUs,e as Default,a as SingleLink,s as default};
1
+ import{c as t}from"../../chunk-5ALQQYYE.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";import{jsx as i}from"react/jsx-runtime";var r={title:"Reusable Blocks/CallToAction",component:t},s=r,o=l=>i(t,{...l}),e=o.bind({});e.args={richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}},links:[{link:{type:"custom",label:"Learn More",url:"#"}},{link:{type:"custom",label:"Get Started",url:"#"}}]};var a=o.bind({});a.args={...e.args,links:[{link:{type:"custom",label:"Learn More",url:"#"}}]};var n=o.bind({});n.args={...e.args,links:[{link:{type:"custom",label:"Contact us",url:"/contact"}}]};export{n as ContactUs,e as Default,a as SingleLink,s as default};