cortex-react-components 1.65.4 → 1.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/{chunk-YRJA3PJ5.mjs → chunk-3NS4UQ6J.mjs} +1 -1
  2. package/dist/{chunk-RGWP2OVM.mjs → chunk-4GL57G4E.mjs} +1 -1
  3. package/dist/chunk-5BZ2F6QC.mjs +6 -0
  4. package/dist/{chunk-FSQNNG2C.mjs → chunk-5WKGNZYL.mjs} +1 -1
  5. package/dist/{chunk-WSDHDEFO.mjs → chunk-5WLZ6QNH.mjs} +1 -1
  6. package/dist/{chunk-DNOTHVMH.mjs → chunk-7CT7LUE6.mjs} +1 -1
  7. package/dist/{chunk-N4NSSICX.mjs → chunk-7UO2RFVS.mjs} +1 -1
  8. package/dist/{chunk-2MTAQ2YX.mjs → chunk-A4BEHDZD.mjs} +1 -1
  9. package/dist/{chunk-ERUB6LU6.mjs → chunk-BMLVI7N2.mjs} +1 -1
  10. package/dist/{chunk-22SIVBWN.mjs → chunk-DOFKMHT2.mjs} +1 -1
  11. package/dist/chunk-HKE5CQ6Y.mjs +4 -0
  12. package/dist/{chunk-ZKBLFPGO.mjs → chunk-LYCOLJW7.mjs} +1 -1
  13. package/dist/{chunk-KD7K2ENG.mjs → chunk-NIUDBN75.mjs} +1 -1
  14. package/dist/{chunk-CSFID44M.mjs → chunk-NTWNAEFS.mjs} +1 -1
  15. package/dist/{chunk-TASJS6US.mjs → chunk-PIPBEWH5.mjs} +1 -1
  16. package/dist/{chunk-JXW2QARY.mjs → chunk-QPBS5LFV.mjs} +1 -1
  17. package/dist/{chunk-PKDUSZWL.mjs → chunk-RVQIK2IH.mjs} +1 -1
  18. package/dist/{chunk-26JAUUHC.mjs → chunk-SKQYQ4SD.mjs} +1 -1
  19. package/dist/chunk-STFTEKAH.mjs +4 -0
  20. package/dist/{chunk-WKFNZUIR.mjs → chunk-T6FBWMZR.mjs} +1 -1
  21. package/dist/{chunk-V5EOKY7D.mjs → chunk-TIX4FFBC.mjs} +1 -1
  22. package/dist/{chunk-FE7YQRL2.mjs → chunk-XUEFN3EZ.mjs} +1 -1
  23. package/dist/components/Blocks/Banner.mjs +1 -1
  24. package/dist/components/Blocks/CallToAction.mjs +1 -1
  25. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  26. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  27. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  28. package/dist/components/Blocks/Content.mjs +1 -1
  29. package/dist/components/Blocks/Content.stories.mjs +1 -1
  30. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  31. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  32. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  33. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  34. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  35. package/dist/components/Blocks/index.mjs +1 -1
  36. package/dist/components/CRM/CogeBoard.mjs +1 -1
  37. package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
  38. package/dist/components/CRM/DealDetails.mjs +1 -1
  39. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  40. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  41. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  42. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  43. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  44. package/dist/components/CRM/NewDealForm.mjs +1 -1
  45. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  46. package/dist/components/CRM/index.mjs +1 -1
  47. package/dist/components/Cards/ContentCard.mjs +1 -1
  48. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  49. package/dist/components/Cards/FeatureCard.mjs +1 -1
  50. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  51. package/dist/components/Cards/index.mjs +1 -1
  52. package/dist/components/DeliveryLead/DeliveryLeadSubmission.css +1 -0
  53. package/dist/components/DeliveryLead/DeliveryLeadSubmission.d.ts +19 -0
  54. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +6 -0
  55. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +2 -0
  56. package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.css +1 -0
  57. package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.js +6 -0
  58. package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.mjs +1 -0
  59. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.css +1 -0
  60. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.d.ts +6 -0
  61. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +4 -0
  62. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +2 -0
  63. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.css +1 -0
  64. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.js +4 -0
  65. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.mjs +1 -0
  66. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.css +1 -0
  67. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.d.ts +13 -0
  68. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +6 -0
  69. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -0
  70. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.css +1 -0
  71. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.js +6 -0
  72. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.mjs +1 -0
  73. package/dist/components/DeliveryLead/index.css +1 -0
  74. package/dist/components/DeliveryLead/index.d.ts +3 -0
  75. package/dist/components/DeliveryLead/index.js +6 -0
  76. package/dist/components/DeliveryLead/index.mjs +1 -0
  77. package/dist/components/DeliveryLead/types.d.ts +15 -0
  78. package/dist/components/DeliveryLead/types.js +1 -0
  79. package/dist/components/DigitalColleagues/AddEpicModal.stories.mjs +1 -1
  80. package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
  81. package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
  82. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  83. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  84. package/dist/components/HeaderFooter/Header.mjs +1 -1
  85. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  86. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  87. package/dist/components/HeaderFooter/index.mjs +1 -1
  88. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  89. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  90. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  91. package/dist/components/Heros/PostHero/index.mjs +1 -1
  92. package/dist/components/Heros/RenderHero.mjs +1 -1
  93. package/dist/components/Heros/index.mjs +1 -1
  94. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  95. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  96. package/dist/components/Layouts/Print.mjs +1 -1
  97. package/dist/components/Layouts/Print.stories.mjs +1 -1
  98. package/dist/components/Layouts/SlideShow.mjs +1 -1
  99. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  100. package/dist/components/Layouts/index.mjs +1 -1
  101. package/dist/components/Payload/RichText/index.mjs +1 -1
  102. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  103. package/dist/components/Payload/RichText.stories.mjs +1 -1
  104. package/dist/components/Payload/index.mjs +1 -1
  105. package/dist/components/index.d.ts +5 -4
  106. package/dist/components/index.js +11 -9
  107. package/dist/components/index.mjs +1 -1
  108. package/dist/components/ui/index.mjs +1 -1
  109. package/dist/globals.css +1 -1
  110. package/dist/index.js +16 -14
  111. package/dist/index.mjs +1 -1
  112. package/dist/metafile-cjs.json +1 -1
  113. package/dist/metafile-esm.json +1 -1
  114. package/dist/pages/Blog.mjs +1 -1
  115. package/dist/pages/Blog.stories.mjs +1 -1
  116. package/dist/pages/Documentation.mjs +1 -1
  117. package/dist/pages/Documentation.stories.mjs +1 -1
  118. package/dist/pages/IndexPage.mjs +1 -1
  119. package/dist/pages/IndexPage.stories.mjs +1 -1
  120. package/dist/pages/Intranet.mjs +1 -1
  121. package/dist/pages/Intranet.stories.mjs +1 -1
  122. package/dist/pages/LandingPage.mjs +1 -1
  123. package/dist/pages/LandingPage.stories.mjs +1 -1
  124. package/dist/pages/Page.mjs +1 -1
  125. package/dist/pages/Page.stories.mjs +1 -1
  126. package/dist/pages/Printable.stories.mjs +1 -1
  127. package/dist/pages/Publish.mjs +1 -1
  128. package/dist/pages/Publish.stories.mjs +1 -1
  129. package/dist/pages/Website.mjs +1 -1
  130. package/dist/pages/Website.stories.mjs +1 -1
  131. package/dist/payload-types.d.ts +90 -0
  132. package/dist/sections/AboutSection.mjs +1 -1
  133. package/dist/sections/AboutSection.stories.mjs +1 -1
  134. package/dist/sections/BlogDetail.mjs +1 -1
  135. package/dist/sections/BlogDetail.stories.mjs +1 -1
  136. package/dist/sections/BlogList.mjs +1 -1
  137. package/dist/sections/BlogList.stories.mjs +1 -1
  138. package/dist/sections/ContactSection.mjs +1 -1
  139. package/dist/sections/ContactSection.stories.mjs +1 -1
  140. package/dist/sections/ImageSection.stories.mjs +1 -1
  141. package/dist/sections/PageSections.mjs +1 -1
  142. package/dist/sections/PageSections.stories.mjs +1 -1
  143. package/dist/sections/PricingSection.mjs +1 -1
  144. package/dist/sections/PricingSection.stories.mjs +1 -1
  145. package/dist/sections/ServiceDetail.mjs +1 -1
  146. package/dist/sections/ServiceDetailSection.mjs +1 -1
  147. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  148. package/dist/sections/ServiceSection.mjs +1 -1
  149. package/dist/sections/ServiceSection.stories.mjs +1 -1
  150. package/dist/sections/index.mjs +1 -1
  151. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as $}from"./chunk-E7W2GFKO.mjs";import{a as L}from"./chunk-ZEOV7BEN.mjs";import{a as q}from"./chunk-WLA5QCBE.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 F}from"./chunk-6U663VXT.mjs";import{a as z}from"./chunk-PPUE5IPA.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 L}from"./chunk-ZEOV7BEN.mjs";import{a as q}from"./chunk-WLA5QCBE.mjs";import{a as W}from"./chunk-2WXIUKCO.mjs";import{a as $}from"./chunk-E7W2GFKO.mjs";import{a as G}from"./chunk-I3FBQX6H.mjs";import{a as J}from"./chunk-TWPRI2XQ.mjs";import{a as H}from"./chunk-6NZJ2VXQ.mjs";import{a as F}from"./chunk-6U663VXT.mjs";import{a as K}from"./chunk-P3PIMDIR.mjs";import{a as z}from"./chunk-PPUE5IPA.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g}from"./chunk-VNGK6ACI.mjs";import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as u}from"./chunk-WGEMXPWB.mjs";import{b as n,d as b,f as c}from"./chunk-ZYYWN6XG.mjs";import{a as s}from"./chunk-GRCMMAFX.mjs";import{a as p}from"./chunk-WKFNZUIR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:S,logoDark:f,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(g,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
4
+ import{a as g}from"./chunk-VNGK6ACI.mjs";import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as u}from"./chunk-WGEMXPWB.mjs";import{b as n,d as b,f as c}from"./chunk-ZYYWN6XG.mjs";import{a as s}from"./chunk-GRCMMAFX.mjs";import{a as p}from"./chunk-T6FBWMZR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:S,logoDark:f,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(g,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as b,c as v,d as f,g as h,i as z}from"./chunk-OGZERPA4.mjs";import{a as o}from"./chunk-EECIYMTX.mjs";import{b as g}from"./chunk-BPSLUO5I.mjs";import{useState as i}from"react";import{FileText as H,ListChecks as D,AlertTriangle as J,Users as _,Briefcase as $,ShieldAlert as K,PlusCircle as Q,Trash2 as W}from"lucide-react";import{jsx as r,jsxs as n}from"react/jsx-runtime";var X=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],P=["On-Track","Off-Track","At Risk","Complete"],L=[{name:"Project Summary",icon:H},{name:"Milestones",icon:D},{name:"Project Update",icon:_},{name:"Project Concerns",icon:J},{name:"Opportunities",icon:$},{name:"Risks",icon:K}];function ie({onSubmit:k,customerProjectPairs:y}){let[c,M]=i(L[0].name),[s,T]=i(null),[x,O]=i(null),[Y,Z]=i(""),[C,R]=i(""),[u,m]=i(X),[S,I]=i(""),[N,A]=i(""),[j,F]=i(""),[w,U]=i(""),q=Array.from(new Map(y.map(e=>[e.customer.id,e.customer])).values()),B=y.filter(e=>e.customer.id===s).map(e=>e.project),d=(e,a,t)=>{m(l=>{let p=[...l];return a==="rag"&&!P.includes(t)?l:(p[e]={...p[e],[a]:t},p)})},E=()=>{m(e=>[...e,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},V=e=>{m(a=>a.filter((t,l)=>l!==e))},G=async e=>{e.preventDefault();let a={customer:s,project:x,projectSummary:C,milestones:u.length>0?u:null,projectUpdate:S,projectConcerns:N||null,commercialOpportunities:j||null,commercialRisks:w||null};if(k)return k(a);try{let t=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!t.ok)throw new Error("Failed to submit delivery lead");let l=await t.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(t){return console.error("Error submitting delivery lead:",t),{success:!1,message:"Failed to submit delivery lead"}}};return r("div",{className:"container mx-auto p-4 max-w-3xl",children:n("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[r("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:L.map(e=>n("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
5
+ ${c===e.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
6
+ text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>M(e.name),type:"button",children:[r(e.icon,{className:"w-5 h-5"}),r("span",{children:e.name})]},e.name))}),n("form",{onSubmit:G,className:"space-y-8",children:[c==="Project Summary"&&n("div",{className:"space-y-6",children:[n("div",{children:[r(o,{children:"Client Name"}),n(b,{value:s?.toString()??"",onValueChange:e=>T(Number(e)),children:[r(f,{children:r(v,{placeholder:"Select client"})}),r(h,{children:q.map(e=>r(z,{value:e.id.toString(),children:e.name},e.id))})]})]}),n("div",{children:[r(o,{children:"Project Name"}),n(b,{value:x?.toString()??"",onValueChange:e=>O(Number(e)),disabled:!s,children:[r(f,{children:r(v,{placeholder:s?"Select project":"Select client first"})}),r(h,{children:B.map(e=>r(z,{value:e.id.toString(),children:e.name},e.id))})]})]}),n("div",{children:[r(o,{children:"Project Summary"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:C,onChange:e=>R(e.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),c==="Milestones"&&n("div",{children:[n("div",{className:"mb-4 flex justify-between items-center",children:[n(o,{className:"text-lg flex items-center gap-2",children:[r(D,{className:"w-5 h-5"}),"Milestones"]}),n(g,{type:"button",onClick:E,variant:"outline",className:"flex items-center gap-1",children:[r(Q,{className:"w-5 h-5"})," Add Milestone"]})]}),r("div",{className:"space-y-4",children:u.map((e,a)=>n("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[n("div",{className:"col-span-1",children:[r(o,{children:"Milestone"}),r("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:e.name,onChange:t=>d(a,"name",t.target.value),required:!0,placeholder:"Milestone name"})]}),n("div",{className:"col-span-2",children:[r(o,{children:"Commentary"}),r("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:e.commentary,onChange:t=>d(a,"commentary",t.target.value),placeholder:"Commentary"})]}),n("div",{className:"col-span-1",children:[r(o,{children:"Due Date"}),r("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:e.dueDate,onChange:t=>d(a,"dueDate",t.target.value),placeholder:"Due date"})]}),n("div",{className:"col-span-1",children:[r(o,{children:"RAG"}),r("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:e.rag,onChange:t=>d(a,"rag",t.target.value),children:P.map(t=>r("option",{value:t,children:t},t))})]}),r("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>V(a),"aria-label":"Remove Milestone",children:r(W,{className:"w-5 h-5 text-red-500"})})]},a))})]}),c==="Project Update"&&n("div",{children:[r(o,{children:"Project Update & Immediate Focus"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:S,onChange:e=>I(e.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),c==="Project Concerns"&&n("div",{children:[r(o,{children:"Project Concerns"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:N,onChange:e=>A(e.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),c==="Opportunities"&&n("div",{children:[r(o,{children:"Commercial Opportunities"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:j,onChange:e=>F(e.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),c==="Risks"&&n("div",{children:[r(o,{children:"Commercial Risk/Issue Details"}),r("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:w,onChange:e=>U(e.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),r("div",{className:"flex justify-end pt-4",children:r(g,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}export{ie as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-JPWY5ADC.mjs";import{a as m}from"./chunk-WSDHDEFO.mjs";import{useState as f,useCallback as R}from"react";import{DragDropContext as P}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as M}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function h({initialData:s,addNewDeal:v,updateDeal:l,addComment:p,addNewCustomer:N}){let[a,n]=f(null),C=e=>(s.deals??[]).filter(t=>t.status===e),D=e=>e.reduce((t,o)=>t+(o.value||0),0),g=(e,t)=>{let o={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return e.reduce((c,d)=>c+(d.value||0)*o[t],0)},b=R(e=>{let{source:t,destination:o}=e;if(!o||t.droppableId===o.droppableId&&t.index===o.index)return;let c=t.droppableId,d=o.droppableId,u=s.deals?.filter(S=>S.id===t.index)[0],x=[...s.deals??[]];u&&(u.status=d,l(u))},[l]);return r(P,{onDragEnd:b,children:M("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=C(e);return r(i,{status:e,deals:t,customers:s.customers??[],users:s.users,categories:s.categories??[],onDealClick:n,calculateColumnValue:D,calculateWeightedValue:g},e)})}),a&&r(m,{deal:a,users:s.users,customer:a.customer,categories:s.categories??[],onClose:()=>n(null),onSave:l,onAddComment:e=>p(a.id.toString(),e)})]})})}export{h as a};
4
+ import{a as m}from"./chunk-5WLZ6QNH.mjs";import{a as i}from"./chunk-JPWY5ADC.mjs";import{useState as f,useCallback as R}from"react";import{DragDropContext as P}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as M}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function h({initialData:s,addNewDeal:v,updateDeal:l,addComment:p,addNewCustomer:N}){let[a,n]=f(null),C=e=>(s.deals??[]).filter(t=>t.status===e),D=e=>e.reduce((t,o)=>t+(o.value||0),0),g=(e,t)=>{let o={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return e.reduce((c,d)=>c+(d.value||0)*o[t],0)},b=R(e=>{let{source:t,destination:o}=e;if(!o||t.droppableId===o.droppableId&&t.index===o.index)return;let c=t.droppableId,d=o.droppableId,u=s.deals?.filter(S=>S.id===t.index)[0],x=[...s.deals??[]];u&&(u.status=d,l(u))},[l]);return r(P,{onDragEnd:b,children:M("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=C(e);return r(i,{status:e,deals:t,customers:s.customers??[],users:s.users,categories:s.categories??[],onDealClick:n,calculateColumnValue:D,calculateWeightedValue:g},e)})}),a&&r(m,{deal:a,users:s.users,customer:a.customer,categories:s.categories??[],onClose:()=>n(null),onSave:l,onAddComment:e=>p(a.id.toString(),e)})]})})}export{h as a};
@@ -1 +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 B}from"./chunk-KJIBE57R.mjs";import{a as F}from"./chunk-CX4XB5W2.mjs";import{a as l}from"./chunk-EECIYMTX.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
+ import{a as S}from"./chunk-6T322YHB.mjs";import{a as u,c as g,d as p,g as v,i as b}from"./chunk-OGZERPA4.mjs";import{a as F}from"./chunk-CX4XB5W2.mjs";import{a as B}from"./chunk-KJIBE57R.mjs";import{a as l}from"./chunk-EECIYMTX.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as y}from"./chunk-LSVWCONK.mjs";import{a as b,b as k}from"./chunk-D6TOSZKM.mjs";import{a as S}from"./chunk-K347D5ZJ.mjs";import{a as C}from"./chunk-WU3JMLSC.mjs";import{a as w}from"./chunk-BZAYEKYC.mjs";import{a as g}from"./chunk-LHL2AONM.mjs";import{a as u}from"./chunk-BFESGJZ4.mjs";import{a as v}from"./chunk-YWVLHQ3L.mjs";import{a as f}from"./chunk-PYAM4YXE.mjs";import{c as m,f as p}from"./chunk-NLA3SBVN.mjs";import{a as d}from"./chunk-SX5U74MW.mjs";import{a as s}from"./chunk-INOUDNCK.mjs";import{a as x}from"./chunk-BONRVXMX.mjs";import{a as N}from"./chunk-WKFNZUIR.mjs";import{a as h}from"./chunk-KTXQBXXJ.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:w,logoDark:C,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(y,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(b,{...t.contact})}),e(c,{theme:"light",style:i,children:e(k,{...t.contact})}),e(c,{theme:"last",style:i,children:e(S,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
4
+ import{a as y}from"./chunk-LSVWCONK.mjs";import{a as S}from"./chunk-K347D5ZJ.mjs";import{a as b,b as k}from"./chunk-D6TOSZKM.mjs";import{a as C}from"./chunk-WU3JMLSC.mjs";import{a as w}from"./chunk-BZAYEKYC.mjs";import{a as g}from"./chunk-LHL2AONM.mjs";import{a as u}from"./chunk-BFESGJZ4.mjs";import{a as v}from"./chunk-YWVLHQ3L.mjs";import{a as f}from"./chunk-PYAM4YXE.mjs";import{c as m,f as p}from"./chunk-NLA3SBVN.mjs";import{a as d}from"./chunk-SX5U74MW.mjs";import{a as N}from"./chunk-T6FBWMZR.mjs";import{a as s}from"./chunk-INOUDNCK.mjs";import{a as x}from"./chunk-BONRVXMX.mjs";import{a as h}from"./chunk-KTXQBXXJ.mjs";import{a as n}from"./chunk-HTVHCBXQ.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:w,logoDark:C,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(y,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(b,{...t.contact})}),e(c,{theme:"light",style:i,children:e(k,{...t.contact})}),e(c,{theme:"last",style:i,children:e(S,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as i}from"./chunk-JPWY5ADC.mjs";import{a as m}from"./chunk-WSDHDEFO.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},f=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(D=>D.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:f,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};
4
+ import{a as m}from"./chunk-5WLZ6QNH.mjs";import{a as i}from"./chunk-JPWY5ADC.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},f=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(D=>D.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:f,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as F}from"./chunk-V5EOKY7D.mjs";import{a as T}from"./chunk-ZKBLFPGO.mjs";import{a as v}from"./chunk-HTVHCBXQ.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
4
+ import{a as F}from"./chunk-TIX4FFBC.mjs";import{a as T}from"./chunk-LYCOLJW7.mjs";import{a as v}from"./chunk-HTVHCBXQ.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae 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 n}from"./chunk-KJIBE57R.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 +1 @@
1
- import{a as m}from"./chunk-IQPZEEYJ.mjs";import{a}from"./chunk-H7D3PZKE.mjs";import{a as o}from"./chunk-FHJDQP4I.mjs";import{a as s}from"./chunk-BLD454AX.mjs";import{a as d}from"./chunk-VFXHLJ45.mjs";import{Fragment as p,jsx as e,jsxs as l}from"react/jsx-runtime";function x({...t}){return e(p,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(d,{...t.header}),e(m,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{x as a};
1
+ import{a}from"./chunk-H7D3PZKE.mjs";import{a as m}from"./chunk-IQPZEEYJ.mjs";import{a as o}from"./chunk-FHJDQP4I.mjs";import{a as s}from"./chunk-BLD454AX.mjs";import{a as d}from"./chunk-VFXHLJ45.mjs";import{Fragment as p,jsx as e,jsxs as l}from"react/jsx-runtime";function x({...t}){return e(p,{children:l("div",{className:"flex min-h-full flex-col",children:[e("div",{className:"relative isolate"}),e(d,{...t.header}),e(m,{...t.motd}),l("div",{className:"mx-auto w-full max-w-screen-2xl grow lg:flex xl:px-2",children:[l("div",{className:"flex-1 xl:flex",children:[e("div",{className:"border-b border-gray-200 px-4 py-6 sm:px-6 lg:pl-8 xl:w-64 xl:shrink-0 xl:border-b-0 xl:border-r xl:pl-6",children:t.customers.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(o,{...r})},i))}),l("div",{className:"px-4 py-4 sm:px-6 lg:pl-8 xl:flex-1 xl:pl-6",children:[l("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e(a,{mainImage:"/placeholder/ai.png",title:"AI Enablement",color:"primary"}),e(a,{mainImage:"/placeholder/finops.png",title:"FinOps",color:"primary2"}),e(a,{mainImage:"/placeholder/metahuman.png",title:"Metahumans",color:"primary3"})]}),e("h1",{className:"text-balance text-3xl m-5 font-semibold tracking-tight text-primary sm:text-5xl",children:"News & Updates"})]})]}),l("div",{className:"shrink-0 border-t border-gray-200 px-4 py-4 sm:px-4 lg:w-96 lg:border-l lg:border-t-0 lg:pr-8 xl:pr-6",children:[e("div",{className:"mx-auto max-w-7xl",children:l("div",{className:"relative isolate overflow-hidden bg-gradient-to-br from-gray-900 via-brand-one to-brand-two px-2 py-4 text-center shadow-2xl sm:rounded-xl sm:px-2",children:[e("h2",{className:"text-balance text-xl font-semibold tracking-tight text-white sm:text-2xl",children:"Ways of working"}),e("p",{className:"mx-3 mt-4 max-w-xl text-pretty text-lg/8 text-gray-300",children:"Guides, Templates and Tools to help you work smarter."}),e("div",{className:"mt-4 flex items-center justify-center gap-x-6",children:e("a",{href:"#",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:"Get started"})})]})}),e("div",{className:"mx-auto max-w-7xl flex flex-col items-center",children:t.events.map((r,i)=>e("div",{className:"py-2 w-full flex justify-center",children:e(s,{...r})},i))})]})]})]})})}export{x as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as r}from"./chunk-5BZ2F6QC.mjs";import{a}from"./chunk-STFTEKAH.mjs";import{useState as l}from"react";import{ChevronDown as c,ChevronUp as b,List as v}from"lucide-react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function f({submissions:t,onSubmit:o,isLoading:n=!1,customerProjectPairs:m}){let[s,d]=l(!1);return e("div",{className:"min-h-screen bg-gray-50 dark:bg-zinc-900",children:i("div",{className:"container mx-auto p-4 max-w-6xl",children:[i("div",{className:"mb-8",children:[e("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Lead Management"}),e("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery lead reports and view your previous submissions"})]}),e("div",{className:"mb-8",children:e(r,{onSubmit:o,customerProjectPairs:m})}),i("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[i("button",{onClick:()=>d(!s),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[i("div",{className:"flex items-center gap-3",children:[e(v,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),e("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),i("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",t.length,")"]})]}),e("div",{className:"flex items-center gap-2",children:s?e(b,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):e(c,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),s&&e("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:e(a,{submissions:t,isLoading:n})})]})]})})}export{f as a};
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as g,b as h,c as b}from"./chunk-35SLQX5Z.mjs";import{b as y}from"./chunk-JXW2QARY.mjs";import{a as l}from"./chunk-HTVHCBXQ.mjs";import{useState as C,useEffect as D,useCallback as A}from"react";import{AnimatePresence as k,motion as v}from"framer-motion";import"pagedjs";import{Fragment as I,jsx as t,jsxs as w}from"react/jsx-runtime";var K=c=>{let[s,i]=C(0),{blocks:a,hero:x,logoImage:m}=c,N=a&&Array.isArray(a)&&a.length>0,n=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],S=e=>{i(e)},r=()=>{i(e=>(e+1)%n.length)},d=()=>{i(e=>(e-1+n.length)%n.length)},u=A(((e,o)=>{let f;return(...T)=>{clearTimeout(f),f=setTimeout(()=>e(...T),o)}})(e=>{e.deltaY>0?r():d()},300),[]),p=e=>{e.key==="ArrowDown"?r():e.key==="ArrowUp"&&d()};return D(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",p),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",p)}),[]),w("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:N&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${s===o?"bg-accent":"bg-gray-600"}`,onClick:()=>S(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),t(k,{children:n.map((e,o)=>t("div",{id:`slide-${o}`,className:"print-section",children:t("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
4
+ import{a as g,b as h,c as b}from"./chunk-35SLQX5Z.mjs";import{b as y}from"./chunk-QPBS5LFV.mjs";import{a as l}from"./chunk-HTVHCBXQ.mjs";import{useState as C,useEffect as D,useCallback as A}from"react";import{AnimatePresence as k,motion as v}from"framer-motion";import"pagedjs";import{Fragment as I,jsx as t,jsxs as w}from"react/jsx-runtime";var K=c=>{let[s,i]=C(0),{blocks:a,hero:x,logoImage:m}=c,N=a&&Array.isArray(a)&&a.length>0,n=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],S=e=>{i(e)},r=()=>{i(e=>(e+1)%n.length)},d=()=>{i(e=>(e-1+n.length)%n.length)},u=A(((e,o)=>{let f;return(...T)=>{clearTimeout(f),f=setTimeout(()=>e(...T),o)}})(e=>{e.deltaY>0?r():d()},300),[]),p=e=>{e.key==="ArrowDown"?r():e.key==="ArrowUp"&&d()};return D(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",p),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",p)}),[]),w("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:N&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${s===o?"bg-accent":"bg-gray-600"}`,onClick:()=>S(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),t(k,{children:n.map((e,o)=>t("div",{id:`slide-${o}`,className:"print-section",children:t("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
5
5
  ${o===s?"opacity-100":"opacity-0"}
6
6
  w-full h-full bg-cover bg-center`,children:o===0?t(b,{hero:x,title:c.title,logoImage:m}):w(I,{children:[e.blockName&&t(h,{title:e.blockName}),t(y,{blocks:[e],fill:!0}),t(g,{logoImage:m})]})})},o))}),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:r,children:t(E,{})})]})},E=()=>t(k,{children:t(v.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:t(v.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});export{K 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-E6JYZMWA.mjs";import{a}from"./chunk-LSVWCONK.mjs";import{a as n}from"./chunk-D6TOSZKM.mjs";import{a as d}from"./chunk-K347D5ZJ.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-E6JYZMWA.mjs";import{a}from"./chunk-LSVWCONK.mjs";import{a as d}from"./chunk-K347D5ZJ.mjs";import{a as n}from"./chunk-D6TOSZKM.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,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-BFESGJZ4.mjs";import{a as u}from"./chunk-YWVLHQ3L.mjs";import{a as p}from"./chunk-PYAM4YXE.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};
4
+ import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as h}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-BFESGJZ4.mjs";import{a as u}from"./chunk-YWVLHQ3L.mjs";import{a as p}from"./chunk-PYAM4YXE.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};
@@ -1 +1 @@
1
- import{a as A}from"./chunk-ERUB6LU6.mjs";import{a as g,c as v,d as f,g as C,i as h}from"./chunk-OGZERPA4.mjs";import{a as N}from"./chunk-6T322YHB.mjs";import{a as F}from"./chunk-KJIBE57R.mjs";import{a as k}from"./chunk-CX4XB5W2.mjs";import{a as l}from"./chunk-EECIYMTX.mjs";import{a as S,f as y,g as x,i as w}from"./chunk-BUCI7BPM.mjs";import{a as u}from"./chunk-JPZJET3B.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{useState as D,useEffect as M}from"react";import{PlusIcon as z}from"lucide-react";import{Fragment as j,jsx as t,jsxs as r}from"react/jsx-runtime";function se({customers:b,users:d,categories:I,onSubmit:E,initialDeal:n,onAddCustomer:P,onClose:L}){let[a,o]=D(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[T,m]=D(!1),[i,c]=D({});M(()=>{n&&o(n)},[n]);let U=()=>{let e={};return a.customer||(e.customer="Customer is required"),a.value||(e.value="Value is required"),a.assignee||(e.assignee="Assignee is required"),a.closureDate||(e.closureDate="Closure Date is required"),c(e),Object.keys(e).length===0},B=async e=>{e.preventDefault(),c({});try{if(U()){let s=await E({...a});s.success?(o({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),L?.()):c(s.errors||{})}}catch{c({submit:"An error occurred while submitting the form."})}},O=e=>{o(s=>({...s,categories:(s.categories||[]).includes(e.id)?(s.categories||[]).filter(H=>H!==e.id):[...s.categories||[],e.id]}))},V=async e=>{o({...a,customer:e});try{let s=await P(e);s.success?m(!1):c(s.errors||{})}catch{c({submit:"An error occurred while submitting the form."})}},q=e=>d?.find(s=>s.id===Number(e)),R=e=>b?.find(s=>s.id===Number(e));return r(j,{children:[r("form",{onSubmit:B,className:"space-y-6",children:[t(N,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(g,{value:a.customer?.id?.toString(),onValueChange:e=>o({...a,customer:R(e)}),children:[t(f,{children:t(v,{placeholder:"Select customer"})}),t(C,{children:b.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),t(p,{variant:"outline",size:"icon",onClick:()=>m(!0),children:t(z,{className:"w-5 h-5"})})]}),i.customerId&&t("p",{className:"text-red-500 text-sm",children:i.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(u,{id:"value",type:"number",value:a.value||"",onChange:e=>o({...a,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),i.value&&t("p",{className:"text-red-500 text-sm",children:i.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(g,{value:a.assignee?.id?.toString(),onValueChange:e=>o({...a,assignee:q(e)}),children:[t(f,{children:t(v,{placeholder:"Select assignee"})}),t(C,{children:d&&d.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),i.assignee&&t("p",{className:"text-red-500 text-sm",children:i.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(k,{id:"description",value:a.description||"",onChange:e=>o({...a,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:I.filter(s=>s.type===e).map(s=>r("div",{className:"flex items-center space-x-2",children:[t(F,{id:s.id.toString(),checked:a.categories?.includes(s.id),onCheckedChange:()=>O(s)}),t("label",{htmlFor:s.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s.name})]},s.id))})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(u,{id:"closureDate",type:"date",value:a.closureDate||"",onChange:e=>o({...a,closureDate:e.target.value})}),i.closureDate&&t("p",{className:"text-red-500 text-sm",children:i.closureDate})]})]})}),t(p,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),t(S,{open:T,onOpenChange:m,children:r(y,{children:[t(x,{children:t(w,{children:"Add New Customer"})}),t(A,{onSubmit:V})]})})]})}export{se as a};
1
+ import{a as A}from"./chunk-BMLVI7N2.mjs";import{a as N}from"./chunk-6T322YHB.mjs";import{a as g,c as v,d as f,g as C,i as h}from"./chunk-OGZERPA4.mjs";import{a as k}from"./chunk-CX4XB5W2.mjs";import{a as F}from"./chunk-KJIBE57R.mjs";import{a as l}from"./chunk-EECIYMTX.mjs";import{a as S,f as y,g as x,i as w}from"./chunk-BUCI7BPM.mjs";import{a as u}from"./chunk-JPZJET3B.mjs";import{b as p}from"./chunk-BPSLUO5I.mjs";import{useState as D,useEffect as M}from"react";import{PlusIcon as z}from"lucide-react";import{Fragment as j,jsx as t,jsxs as r}from"react/jsx-runtime";function se({customers:b,users:d,categories:I,onSubmit:E,initialDeal:n,onAddCustomer:P,onClose:L}){let[a,o]=D(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[T,m]=D(!1),[i,c]=D({});M(()=>{n&&o(n)},[n]);let U=()=>{let e={};return a.customer||(e.customer="Customer is required"),a.value||(e.value="Value is required"),a.assignee||(e.assignee="Assignee is required"),a.closureDate||(e.closureDate="Closure Date is required"),c(e),Object.keys(e).length===0},B=async e=>{e.preventDefault(),c({});try{if(U()){let s=await E({...a});s.success?(o({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),L?.()):c(s.errors||{})}}catch{c({submit:"An error occurred while submitting the form."})}},O=e=>{o(s=>({...s,categories:(s.categories||[]).includes(e.id)?(s.categories||[]).filter(H=>H!==e.id):[...s.categories||[],e.id]}))},V=async e=>{o({...a,customer:e});try{let s=await P(e);s.success?m(!1):c(s.errors||{})}catch{c({submit:"An error occurred while submitting the form."})}},q=e=>d?.find(s=>s.id===Number(e)),R=e=>b?.find(s=>s.id===Number(e));return r(j,{children:[r("form",{onSubmit:B,className:"space-y-6",children:[t(N,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(g,{value:a.customer?.id?.toString(),onValueChange:e=>o({...a,customer:R(e)}),children:[t(f,{children:t(v,{placeholder:"Select customer"})}),t(C,{children:b.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),t(p,{variant:"outline",size:"icon",onClick:()=>m(!0),children:t(z,{className:"w-5 h-5"})})]}),i.customerId&&t("p",{className:"text-red-500 text-sm",children:i.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(u,{id:"value",type:"number",value:a.value||"",onChange:e=>o({...a,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),i.value&&t("p",{className:"text-red-500 text-sm",children:i.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(g,{value:a.assignee?.id?.toString(),onValueChange:e=>o({...a,assignee:q(e)}),children:[t(f,{children:t(v,{placeholder:"Select assignee"})}),t(C,{children:d&&d.map(e=>t(h,{value:e.id?.toString()||"",children:e.name},e.id))})]}),i.assignee&&t("p",{className:"text-red-500 text-sm",children:i.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(k,{id:"description",value:a.description||"",onChange:e=>o({...a,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:I.filter(s=>s.type===e).map(s=>r("div",{className:"flex items-center space-x-2",children:[t(F,{id:s.id.toString(),checked:a.categories?.includes(s.id),onCheckedChange:()=>O(s)}),t("label",{htmlFor:s.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s.name})]},s.id))})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(u,{id:"closureDate",type:"date",value:a.closureDate||"",onChange:e=>o({...a,closureDate:e.target.value})}),i.closureDate&&t("p",{className:"text-red-500 text-sm",children:i.closureDate})]})]})}),t(p,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),t(S,{open:T,onOpenChange:m,children:r(y,{children:[t(x,{children:t(w,{children:"Add New Customer"})}),t(A,{onSubmit:V})]})})]})}export{se as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-JRFNBHPL.mjs";import{a as v}from"./chunk-3FZPSPIZ.mjs";import{c as b,d as h}from"./chunk-NLA3SBVN.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 v}from"./chunk-3FZPSPIZ.mjs";import{a as p}from"./chunk-JRFNBHPL.mjs";import{c as b,d as h}from"./chunk-NLA3SBVN.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 i}from"./chunk-4AT3EYCF.mjs";import{a as m}from"./chunk-WU3JMLSC.mjs";import{a}from"./chunk-BZAYEKYC.mjs";import{a as o}from"./chunk-JHTGGDU5.mjs";import{a as t}from"./chunk-WKFNZUIR.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:a,logoDark:m}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
1
+ import{a as i}from"./chunk-4AT3EYCF.mjs";import{a as m}from"./chunk-WU3JMLSC.mjs";import{a}from"./chunk-BZAYEKYC.mjs";import{a as o}from"./chunk-JHTGGDU5.mjs";import{a as t}from"./chunk-T6FBWMZR.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:a,logoDark:m}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-BGQKHEB3.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as p}from"./chunk-N363IQBL.mjs";import{a as c}from"./chunk-WGEMXPWB.mjs";import{b as s,d as b,f as u}from"./chunk-ZYYWN6XG.mjs";import{a as n}from"./chunk-GRCMMAFX.mjs";import{a as f}from"./chunk-WKFNZUIR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:g,logoDark:h,...a.header,wide:!0,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
4
+ import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-BGQKHEB3.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-ZJ56IQPQ.mjs";import{a as p}from"./chunk-N363IQBL.mjs";import{a as c}from"./chunk-WGEMXPWB.mjs";import{b as s,d as b,f as u}from"./chunk-ZYYWN6XG.mjs";import{a as n}from"./chunk-GRCMMAFX.mjs";import{a as f}from"./chunk-T6FBWMZR.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:g,logoDark:h,...a.header,wide:!0,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ import{a as i}from"./chunk-EECIYMTX.mjs";import{b as m}from"./chunk-BPSLUO5I.mjs";import{useState as v,useEffect as u}from"react";import{FileText as p,ListChecks as f,AlertTriangle as N,Users as k,Briefcase as h,ShieldAlert as z,Calendar as w,User as j,Building as L,X as D}from"lucide-react";import{Fragment as S,jsx as e,jsxs as a}from"react/jsx-runtime";var g={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function E({submissions:l,isLoading:y=!1}){let[n,s]=v(null);u(()=>{let t=d=>{d.key==="Escape"&&s(null)};if(n)return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[n]);let c=t=>new Date(t).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),r=l.find(t=>t.id.toString()===n);function o(t){return typeof t=="object"&&t!==null&&"projectName"in t?t.projectName:`Project #${t}`}function x(t){return typeof t=="object"&&t!==null&&"name"in t?t.name:`Customer #${t}`}return y?e("div",{className:"container mx-auto p-4 max-w-6xl",children:e("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:a("div",{className:"animate-pulse",children:[e("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),e("div",{className:"space-y-4",children:[...Array(5)].map((t,d)=>e("div",{className:"h-16 bg-gray-200 rounded"},d))})]})})}):l.length===0?e("div",{className:"container mx-auto p-4 max-w-6xl",children:e("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:a("div",{className:"text-center py-12",children:[e(p,{className:"mx-auto h-12 w-12 text-gray-400"}),e("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),e("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):a(S,{children:[e("div",{className:"container mx-auto p-4 max-w-6xl",children:a("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[a("div",{className:"mb-6",children:[e("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),e("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),e("div",{className:"overflow-y-auto max-h-96",children:a("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[e("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:a("tr",{children:[e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),e("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),e("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:l.map(t=>a("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{children:[e("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:o(t.project)}),a("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[e(L,{className:"h-3 w-3"}),x(t.customer)]})]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[e(j,{className:"h-3 w-3"}),typeof t.project=="object"&&t.project!==null&&"deliveryLead"in t.project&&typeof t.project.deliveryLead=="object"&&t.project.deliveryLead!==null&&"name"in t.project.deliveryLead?t.project.deliveryLead.name:"\u2014"]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"flex flex-wrap gap-1",children:[t.milestones?.slice(0,3).map((d,b)=>e("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${g[d.rag]}`,children:d.rag},b)),t.milestones&&t.milestones.length>3&&a("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",t.milestones.length-3," more"]}),!t.milestones&&e("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),e("td",{className:"px-6 py-4 whitespace-nowrap",children:a("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[e(w,{className:"h-3 w-3"}),c(t.createdAt)]})}),e("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:e(m,{variant:"ghost",size:"sm",onClick:()=>s(t.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},t.id))})]})})]})}),r&&e("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:a("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[a("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[a("div",{children:[e("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:o(r.project)}),a("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[x(r.customer)," \u2022"," ",c(r.createdAt)]})]}),e("button",{onClick:()=>s(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:e(D,{className:"h-6 w-6"})})]}),a("div",{className:"p-6 space-y-6",children:[a("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(p,{className:"h-4 w-4"}),"Project Summary"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectSummary})]}),a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(k,{className:"h-4 w-4"}),"Project Update"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectUpdate})]}),r.projectConcerns&&a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(N,{className:"h-4 w-4"}),"Project Concerns"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.projectConcerns})]}),r.commercialOpportunities&&a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(h,{className:"h-4 w-4"}),"Commercial Opportunities"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.commercialOpportunities})]}),r.commercialRisks&&a("div",{className:"lg:col-span-2",children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(z,{className:"h-4 w-4"}),"Commercial Risks"]}),e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:r.commercialRisks})]})]}),a("div",{children:[a(i,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[e(f,{className:"h-4 w-4"}),"Milestones"]}),r.milestones&&r.milestones.length>0?e("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:a("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[e("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:a("tr",{children:[e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),e("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),e("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:r.milestones.map((t,d)=>a("tr",{children:[e("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:t.name}),e("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:t.commentary||"-"}),e("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:t.dueDate?c(t.dueDate):"-"}),e("td",{className:"px-4 py-2",children:e("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${g[t.rag]}`,children:t.rag})})]},d))})]})}):e("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),e("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:e(m,{onClick:()=>s(null),variant:"outline",children:"Close"})})]})})]})}export{E as a};
@@ -1 +1 @@
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
+ 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,5 +1,5 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{b as w,c as C}from"./chunk-35SLQX5Z.mjs";import{b as y}from"./chunk-JXW2QARY.mjs";import{a as P}from"./chunk-HTVHCBXQ.mjs";import{a as b}from"./chunk-Q3G5UAAD.mjs";import{useEffect as d,useRef as s,useState as H,useCallback as x}from"react";import{Previewer as p}from"pagedjs";import{Fragment as N,jsx as n,jsxs as l}from"react/jsx-runtime";function T(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},F=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(E,{page:r,layout:e,logoImage:i}):n(B,{page:r,layout:e,logoImage:i}),E=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=x(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(N,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
4
+ import{b as w,c as C}from"./chunk-35SLQX5Z.mjs";import{b as y}from"./chunk-QPBS5LFV.mjs";import{a as P}from"./chunk-HTVHCBXQ.mjs";import{a as b}from"./chunk-Q3G5UAAD.mjs";import{useEffect as d,useRef as s,useState as H,useCallback as x}from"react";import{Previewer as p}from"pagedjs";import{Fragment as N,jsx as n,jsxs as l}from"react/jsx-runtime";function T(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},F=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(E,{page:r,layout:e,logoImage:i}):n(B,{page:r,layout:e,logoImage:i}),E=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=x(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(N,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
5
5
  dark bg-background text-primary`,children:[l("div",{className:"flex px-6 items-center space-x-2",children:[i&&n("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),n("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),n("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),n("div",{ref:a,className:"preview-container"})]})},B=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),c=s(null),u=s(null),a=s(new p),[h,f]=H(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],o=x(()=>{c.current&&(c.current&&(c.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],c.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,o()},[o,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),l("div",{className:"pagedjs-container",children:[n("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>n(N,{children:v===0?n("section",{className:"pagedjs-section title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},v):l("section",{className:P("pagedjs-section normal-page h-[699px]",`h-[${T("185mm")}px]`,t.theme?.settings?.theme==="dark"?"dark":"light"),children:[t.blockName&&n(w,{title:t.blockName}),n(y,{blocks:[t],fill:!0})]},v)}))}),n("div",{ref:c,className:"preview-container"})]})};export{F as a,E as b,B as c};
@@ -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-OU3PM75Z.mjs";import{d as r}from"./chunk-JXW2QARY.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
+ import{a as p}from"./chunk-WU3JMLSC.mjs";import{a as s}from"./chunk-BZAYEKYC.mjs";import{a as n}from"./chunk-OU3PM75Z.mjs";import{d as r}from"./chunk-QPBS5LFV.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 +1 @@
1
- import{a}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.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-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
+ import{a}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.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-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.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-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.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-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};
2
+ "use strict";import{b as a,c as b}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.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-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.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-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.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-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};
1
+ import{c as t}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.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-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.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};