cortex-react-components 1.43.3 → 1.43.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/{chunk-423OEU3K.mjs → chunk-23EQTK7B.mjs} +1 -1
  2. package/dist/{chunk-74TGU5CZ.mjs → chunk-4KGFHVYD.mjs} +1 -1
  3. package/dist/{chunk-YQZH5MJU.mjs → chunk-4L4RAUPG.mjs} +1 -1
  4. package/dist/{chunk-NLTSDI7A.mjs → chunk-4R7S6EEU.mjs} +1 -1
  5. package/dist/{chunk-72SXYDHA.mjs → chunk-5HYGXWKZ.mjs} +1 -1
  6. package/dist/{chunk-5PW2VQWX.mjs → chunk-A2WH6FYC.mjs} +1 -1
  7. package/dist/{chunk-Q77U5BXI.mjs → chunk-AEDBEVEE.mjs} +1 -1
  8. package/dist/{chunk-ZXPDKKGX.mjs → chunk-E436SEDU.mjs} +1 -1
  9. package/dist/{chunk-M7BWRL34.mjs → chunk-EW2X7RMJ.mjs} +1 -1
  10. package/dist/{chunk-YOOGQIDR.mjs → chunk-FKJWUROB.mjs} +1 -1
  11. package/dist/{chunk-QNKQEXU3.mjs → chunk-FYMNYQNR.mjs} +1 -1
  12. package/dist/{chunk-DESYC5BB.mjs → chunk-GHBJK554.mjs} +1 -1
  13. package/dist/{chunk-KRJQF2ZW.mjs → chunk-HAVMZWZI.mjs} +1 -1
  14. package/dist/{chunk-QIGWPB3D.mjs → chunk-HZ5QHCGZ.mjs} +1 -1
  15. package/dist/{chunk-DF3LBG6O.mjs → chunk-I5MUUAND.mjs} +1 -1
  16. package/dist/{chunk-EMZQNDA7.mjs → chunk-IMAQJ7N3.mjs} +1 -1
  17. package/dist/{chunk-D43ENVPX.mjs → chunk-IPHHUHS3.mjs} +1 -1
  18. package/dist/{chunk-GFV75XSU.mjs → chunk-JK3XF6LP.mjs} +1 -1
  19. package/dist/{chunk-UDX5Y4SA.mjs → chunk-L2PQKIU4.mjs} +1 -1
  20. package/dist/{chunk-IE2A7UT3.mjs → chunk-LBKMUSVR.mjs} +1 -1
  21. package/dist/{chunk-VWNFINDU.mjs → chunk-MFB7HNJB.mjs} +1 -1
  22. package/dist/{chunk-CBDDGINA.mjs → chunk-MTRMM7GF.mjs} +1 -1
  23. package/dist/{chunk-ICTOXY7D.mjs → chunk-NGK3IDFP.mjs} +1 -1
  24. package/dist/{chunk-3PC5BLK7.mjs → chunk-O5G5R22J.mjs} +1 -1
  25. package/dist/{chunk-Q5EQOIL7.mjs → chunk-PBAL3B6N.mjs} +1 -1
  26. package/dist/{chunk-UK4IPFAO.mjs → chunk-PVRWMAHW.mjs} +1 -1
  27. package/dist/chunk-QE7ACKUU.mjs +1 -0
  28. package/dist/{chunk-7322R3ID.mjs → chunk-REHZTVVN.mjs} +1 -1
  29. package/dist/{chunk-AF5ISZTG.mjs → chunk-ROEHSKFW.mjs} +1 -1
  30. package/dist/{chunk-GOMLTG5W.mjs → chunk-RZTXT4UD.mjs} +1 -1
  31. package/dist/chunk-THRH74JO.mjs +4 -0
  32. package/dist/{chunk-MANZDSTF.mjs → chunk-UD7JYMRU.mjs} +1 -1
  33. package/dist/{chunk-DYIUZ4V5.mjs → chunk-UO2QAXEA.mjs} +1 -1
  34. package/dist/{chunk-CUBV2IRQ.mjs → chunk-URBIOX3W.mjs} +1 -1
  35. package/dist/{chunk-EI7PFWFS.mjs → chunk-VPVXJCL6.mjs} +1 -1
  36. package/dist/{chunk-PV5S3GA7.mjs → chunk-WPTEMDOP.mjs} +1 -1
  37. package/dist/{chunk-R7P4VVM3.mjs → chunk-XBBQGSYP.mjs} +1 -1
  38. package/dist/{chunk-HUN2X4VH.mjs → chunk-Y6CZVVJF.mjs} +1 -1
  39. package/dist/{chunk-HVA2GFDG.mjs → chunk-YDQUZWFZ.mjs} +1 -1
  40. package/dist/{chunk-D3PXELYK.mjs → chunk-ZOLLFX4E.mjs} +1 -1
  41. package/dist/components/Blocks/Banner.mjs +1 -1
  42. package/dist/components/Blocks/CallToAction.mjs +1 -1
  43. package/dist/components/Blocks/Content.mjs +1 -1
  44. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  45. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  46. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  47. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  48. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  49. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  50. package/dist/components/Blocks/index.mjs +1 -1
  51. package/dist/components/CRM/DealDetails.mjs +1 -1
  52. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  53. package/dist/components/CRM/KanbanBoard.js +1 -1
  54. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  55. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  56. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  57. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  58. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  59. package/dist/components/CRM/NewDealForm.mjs +1 -1
  60. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  61. package/dist/components/CRM/index.js +1 -1
  62. package/dist/components/CRM/index.mjs +1 -1
  63. package/dist/components/CRM/types.d.ts +4 -4
  64. package/dist/components/Cards/index.mjs +1 -1
  65. package/dist/components/HeaderFooter/Header.mjs +1 -1
  66. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  67. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  68. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  69. package/dist/components/HeaderFooter/index.mjs +1 -1
  70. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  71. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  72. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  73. package/dist/components/Heros/PostHero/index.mjs +1 -1
  74. package/dist/components/Heros/RenderHero.mjs +1 -1
  75. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  76. package/dist/components/Heros/index.mjs +1 -1
  77. package/dist/components/Holidays/ApproveLeave.js +1 -1
  78. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  79. package/dist/components/Holidays/ApproveLeave.stories.js +1 -1
  80. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  81. package/dist/components/Holidays/HolidayTracker.js +1 -1
  82. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  83. package/dist/components/Holidays/HolidayTracker.stories.js +1 -1
  84. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  85. package/dist/components/Holidays/RequestLeave.js +1 -1
  86. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  87. package/dist/components/Holidays/RequestLeave.stories.js +1 -1
  88. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
  89. package/dist/components/Holidays/index.js +1 -1
  90. package/dist/components/Holidays/index.mjs +1 -1
  91. package/dist/components/Layouts/BlogList.mjs +1 -1
  92. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  93. package/dist/components/Layouts/SlideShow.mjs +1 -1
  94. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  95. package/dist/components/Layouts/index.mjs +1 -1
  96. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  97. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  98. package/dist/components/Menus/SidebarRight.mjs +1 -1
  99. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  100. package/dist/components/Menus/index.mjs +1 -1
  101. package/dist/components/Payload/Card/index.mjs +1 -1
  102. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  103. package/dist/components/Payload/Media/index.mjs +1 -1
  104. package/dist/components/Payload/RichText/index.mjs +1 -1
  105. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  106. package/dist/components/Payload/RichText.stories.mjs +1 -1
  107. package/dist/components/Payload/index.mjs +1 -1
  108. package/dist/components/index.js +3 -3
  109. package/dist/components/index.mjs +1 -1
  110. package/dist/components/ui/index.mjs +1 -1
  111. package/dist/components/ui/sidebar.mjs +1 -1
  112. package/dist/index.js +3 -3
  113. package/dist/index.mjs +1 -1
  114. package/dist/metafile-cjs.json +1 -1
  115. package/dist/metafile-esm.json +1 -1
  116. package/dist/pages/Blog.mjs +1 -1
  117. package/dist/pages/Blog.stories.mjs +1 -1
  118. package/dist/pages/Documentation.mjs +1 -1
  119. package/dist/pages/Documentation.stories.mjs +1 -1
  120. package/dist/pages/IndexPage.mjs +1 -1
  121. package/dist/pages/IndexPage.stories.mjs +1 -1
  122. package/dist/pages/Intranet.mjs +1 -1
  123. package/dist/pages/Intranet.stories.mjs +1 -1
  124. package/dist/pages/LandingPage.mjs +1 -1
  125. package/dist/pages/LandingPage.stories.mjs +1 -1
  126. package/dist/pages/Page.mjs +1 -1
  127. package/dist/pages/Page.stories.mjs +1 -1
  128. package/dist/pages/Publish.mjs +1 -1
  129. package/dist/pages/Publish.stories.mjs +1 -1
  130. package/dist/pages/Website.mjs +1 -1
  131. package/dist/pages/Website.stories.mjs +1 -1
  132. package/dist/payload-types.d.ts +150 -6
  133. package/dist/sections/AboutSection.js +1 -1
  134. package/dist/sections/AboutSection.mjs +1 -1
  135. package/dist/sections/AboutSection.stories.js +1 -1
  136. package/dist/sections/AboutSection.stories.mjs +1 -1
  137. package/dist/sections/BlogDetail.mjs +1 -1
  138. package/dist/sections/BlogDetail.stories.mjs +1 -1
  139. package/dist/sections/BlogListSection.mjs +1 -1
  140. package/dist/sections/BlogListSection.stories.mjs +1 -1
  141. package/dist/sections/ContactSection.mjs +1 -1
  142. package/dist/sections/ContactSection.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/form/index.mjs +1 -1
  146. package/dist/sections/index.js +1 -1
  147. package/dist/sections/index.mjs +1 -1
  148. package/package.json +1 -1
  149. package/dist/chunk-AS3NR4OU.mjs +0 -1
  150. package/dist/chunk-LE5KFDND.mjs +0 -4
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{useState as A}from"react";import{Toaster as D,toast as c}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as t}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:u}){let[a,i]=A([]),d=k(),h=()=>{a.length===l.length?i([]):i(l.map(e=>e.id))},N=e=>{i(r=>r.includes(e)?r.filter(b=>b!==e):[...r,e])},x=async()=>{let e=await f(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])},y=async()=>{let e=await u(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])};return t("div",{className:"space-y-4",children:[t("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),t("div",{className:"space-x-2",children:[s(n,{onClick:x,disabled:a.length===0,variant:"default",children:"Approve Selected"}),s(n,{onClick:y,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:t("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:"select-all",checked:a.length===l.length,onCheckedChange:h,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),t("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:`select-${e.id}`,checked:a.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),t("div",{className:"ml-3 flex items-center",children:[t(m,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(r=>r[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),t("div",{className:"flex items-center space-x-2",children:[t("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}export{R as a};
4
+ import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{useState as A}from"react";import{Toaster as D,toast as c}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as t}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:u}){let[a,i]=A([]),d=k(),h=()=>{a.length===l.length?i([]):i(l.map(e=>e.id))},N=e=>{i(r=>r.includes(e)?r.filter(b=>b!==e):[...r,e])},x=async()=>{let e=await f(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])},y=async()=>{let e=await u(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])};return t("div",{className:"space-y-4",children:[t("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),t("div",{className:"space-x-2",children:[s(n,{onClick:x,disabled:a.length===0,variant:"default",children:"Approve Selected"}),s(n,{onClick:y,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:t("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:"select-all",checked:a.length===l.length,onCheckedChange:h,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),t("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:`select-${e.id}`,checked:a.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),t("div",{className:"ml-3 flex items-center",children:[t(m,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(r=>r[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),t("div",{className:"flex items-center space-x-2",children:[t("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-T6LPMF7A.mjs";import{b as r}from"./chunk-CBDDGINA.mjs";import{a as n}from"./chunk-74TGU5CZ.mjs";import{a as i}from"./chunk-DESYC5BB.mjs";import{a as o}from"./chunk-6K2R3OAD.mjs";import{jsx as t,jsxs as p}from"react/jsx-runtime";function g({...e}){let s=e.page,{contentWithIds:c,tableOfContents:m}=o(s);return p("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:f}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
1
+ import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-T6LPMF7A.mjs";import{b as r}from"./chunk-MTRMM7GF.mjs";import{a as n}from"./chunk-4KGFHVYD.mjs";import{a as i}from"./chunk-GHBJK554.mjs";import{a as o}from"./chunk-6K2R3OAD.mjs";import{jsx as t,jsxs as p}from"react/jsx-runtime";function g({...e}){let s=e.page,{contentWithIds:c,tableOfContents:m}=o(s);return p("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:f}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as p}from"./chunk-NOEITQK2.mjs";import{a as C}from"./chunk-EG6XIOOJ.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Formik as x}from"formik";import{FaUser as w}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as e,jsxs as n}from"react/jsx-runtime";var s={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),email:m.string().email(s.email).required(s.required),subject:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),message:m.string().min(2,s.tooShort).max(300,s.tooLong).required(s.required)}),u=i("!pr-[44px]"),g=i("!border-red-600 border"),d=i("sr-only");function U(){return e(x,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(a,{resetForm:t})=>{let o=await f(a);o.data===null?b.error(o.message):(b.success(o.message),t())},children:({errors:a,touched:t,values:o,handleChange:r,handleBlur:c,isSubmitting:l,handleSubmit:h})=>n("form",{onSubmit:h,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[n("div",{children:[e(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:r,onBlur:c,disabled:l,icon:e(w,{}),className:i(u,a.name&&t.name&&g)}),a.name&&t.name&&e("p",{title:a.name,"aria-live":"polite",role:"error message",className:d,children:a.name})]}),n("div",{children:[e(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:r,onBlur:c,disabled:l,icon:e(N,{}),className:i(u,a.email&&t.email&&g)}),a.email&&t.email&&e("p",{title:a.email,"aria-live":"polite",role:"error message",className:d,children:a.email})]}),n("div",{className:"lg:col-span-2",children:[e(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:r,onBlur:c,disabled:l,className:i(u,a.subject&&t.subject&&g)}),a.subject&&t.subject&&e("p",{title:a.subject,"aria-live":"polite",role:"error message",className:d,children:a.subject})]}),n("div",{className:"lg:col-span-2",children:[e(C,{placeholder:"Write Message...",name:"message",value:o.message,onChange:r,onBlur:c,disabled:l,icon:e(S,{}),className:i(u,a.message&&t.message&&g)}),a.message&&t.message&&e("p",{title:a.message,"aria-live":"polite",role:"error message",className:d,children:a.message})]}),e("div",{className:"lg:col-span-2",children:e(v,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:l,children:e("span",{children:"SEND"})})})]})})}function N(){return e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function S(){return e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{U as a};
4
+ import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as C}from"./chunk-EG6XIOOJ.mjs";import{a as p}from"./chunk-NOEITQK2.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Formik as x}from"formik";import{FaUser as w}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as e,jsxs as n}from"react/jsx-runtime";var s={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),email:m.string().email(s.email).required(s.required),subject:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),message:m.string().min(2,s.tooShort).max(300,s.tooLong).required(s.required)}),u=i("!pr-[44px]"),g=i("!border-red-600 border"),d=i("sr-only");function U(){return e(x,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(a,{resetForm:t})=>{let o=await f(a);o.data===null?b.error(o.message):(b.success(o.message),t())},children:({errors:a,touched:t,values:o,handleChange:r,handleBlur:c,isSubmitting:l,handleSubmit:h})=>n("form",{onSubmit:h,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[n("div",{children:[e(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:r,onBlur:c,disabled:l,icon:e(w,{}),className:i(u,a.name&&t.name&&g)}),a.name&&t.name&&e("p",{title:a.name,"aria-live":"polite",role:"error message",className:d,children:a.name})]}),n("div",{children:[e(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:r,onBlur:c,disabled:l,icon:e(N,{}),className:i(u,a.email&&t.email&&g)}),a.email&&t.email&&e("p",{title:a.email,"aria-live":"polite",role:"error message",className:d,children:a.email})]}),n("div",{className:"lg:col-span-2",children:[e(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:r,onBlur:c,disabled:l,className:i(u,a.subject&&t.subject&&g)}),a.subject&&t.subject&&e("p",{title:a.subject,"aria-live":"polite",role:"error message",className:d,children:a.subject})]}),n("div",{className:"lg:col-span-2",children:[e(C,{placeholder:"Write Message...",name:"message",value:o.message,onChange:r,onBlur:c,disabled:l,icon:e(S,{}),className:i(u,a.message&&t.message&&g)}),a.message&&t.message&&e("p",{title:a.message,"aria-live":"polite",role:"error message",className:d,children:a.message})]}),e("div",{className:"lg:col-span-2",children:e(v,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:l,children:e("span",{children:"SEND"})})})]})})}function N(){return e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function S(){return e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{U as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as m}from"./chunk-74TGU5CZ.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as w,useCallback as g}from"react";import{AnimatePresence as x,motion as y}from"framer-motion";import{jsx as t,jsxs as N}from"react/jsx-runtime";var W=p=>{let[l,a]=h(0),{blocks:n}=p,f=n&&Array.isArray(n)&&n.length>0,b=e=>{a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=g(((e,o)=>{let d;return(...v)=>{clearTimeout(d),d=setTimeout(()=>e(...v),o)}})(e=>{e.deltaY>0?i():s()},300),[]),u=e=>{e.key==="ArrowDown"?i():e.key==="ArrowUp"&&s()};return w(()=>(window.addEventListener("wheel",c),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",c),window.removeEventListener("keydown",u)}),[]),N("div",{className:"flex h-screen relative",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:f&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${l===o?"bg-accent":"bg-gray-300"}`,onClick:()=>b(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),n.map((e,o)=>t("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${o===l?"opacity-100":"opacity-0"}`,children:t(m,{blocks:[e]})},o)),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:i,children:t(k,{})})]})},k=()=>t(x,{children:t(y.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:r("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:t(y.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:r("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});export{W as a};
4
+ import{a as m}from"./chunk-4KGFHVYD.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as w,useCallback as g}from"react";import{AnimatePresence as x,motion as y}from"framer-motion";import{jsx as t,jsxs as N}from"react/jsx-runtime";var W=p=>{let[l,a]=h(0),{blocks:n}=p,f=n&&Array.isArray(n)&&n.length>0,b=e=>{a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=g(((e,o)=>{let d;return(...v)=>{clearTimeout(d),d=setTimeout(()=>e(...v),o)}})(e=>{e.deltaY>0?i():s()},300),[]),u=e=>{e.key==="ArrowDown"?i():e.key==="ArrowUp"&&s()};return w(()=>(window.addEventListener("wheel",c),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",c),window.removeEventListener("keydown",u)}),[]),N("div",{className:"flex h-screen relative",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:f&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${l===o?"bg-accent":"bg-gray-300"}`,onClick:()=>b(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),n.map((e,o)=>t("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${o===l?"opacity-100":"opacity-0"}`,children:t(m,{blocks:[e]})},o)),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:i,children:t(k,{})})]})},k=()=>t(x,{children:t(y.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:r("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:t(y.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:r("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});export{W as a};
@@ -1 +1 @@
1
- import{e as s}from"./chunk-QIGWPB3D.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function f({subtitle:o,title:r,description:t,alignment:n="start",hasBottomSpacing:i=!1,className:l,invert:c=!1}){let m=a(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},l);return p("div",{className:m,children:[o&&e("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:o}),e("h2",{className:a("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",c&&"text-gray-900"),children:r}),typeof t=="string"?t&&e("p",{className:"mt-5 whitespace-pre-line",children:t}):t&&e(s,{content:t,enableGutter:!1})]})}export{f as a};
1
+ import{e as s}from"./chunk-HZ5QHCGZ.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function f({subtitle:o,title:r,description:t,alignment:n="start",hasBottomSpacing:i=!1,className:l,invert:c=!1}){let m=a(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},l);return p("div",{className:m,children:[o&&e("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:o}),e("h2",{className:a("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",c&&"text-gray-900"),children:r}),typeof t=="string"?t&&e("p",{className:"mt-5 whitespace-pre-line",children:t}):t&&e(s,{content:t,enableGutter:!1})]})}export{f as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-ICTOXY7D.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",s),resource:i,src:n})})};export{p as a};
1
+ import{a as e}from"./chunk-NGK3IDFP.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",s),resource:i,src:n})})};export{p as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-423OEU3K.mjs";import{e as r}from"./chunk-QIGWPB3D.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
1
+ import{a}from"./chunk-23EQTK7B.mjs";import{e as r}from"./chunk-HZ5QHCGZ.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-66ZAIUUI.mjs";import{a as r}from"./chunk-SV7NMNDI.mjs";import{a as e}from"./chunk-R7P4VVM3.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(n,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(e,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":r([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
1
+ import{a as o}from"./chunk-66ZAIUUI.mjs";import{a as r}from"./chunk-SV7NMNDI.mjs";import{a as e}from"./chunk-XBBQGSYP.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(n,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(e,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":r([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
@@ -1 +1 @@
1
- import{a}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as BannerBlock};
1
+ import{a}from"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as BannerBlock};
@@ -1 +1 @@
1
- import{b as a}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CallToActionBlock};
1
+ import{b as a}from"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CallToActionBlock};
@@ -1 +1 @@
1
- import{a}from"../../chunk-Q77U5BXI.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ContentBlock};
1
+ import{a}from"../../chunk-AEDBEVEE.mjs";import"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ContentBlock};
@@ -1 +1 @@
1
- import{c as a}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as FeaturesBlock};
1
+ import{c as a}from"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as FeaturesBlock};
@@ -1 +1 @@
1
- import{c as e}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var t={title:"Blocks/FeaturesBlock",component:e,tags:["autodocs"],parameters:{layout:"padded"}},i=t,n={args:{title:"What Are Digital Colleagues?",description:"some other words",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners (internal link)",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}},a={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."}]}},r={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},s={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}};export{n as Default,s as NoTitle,r as OneFeature,a as TwoFeatures,i as default};
1
+ import{c as e}from"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var t={title:"Blocks/FeaturesBlock",component:e,tags:["autodocs"],parameters:{layout:"padded"}},i=t,n={args:{title:"What Are Digital Colleagues?",description:"some other words",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners (internal link)",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}},a={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."}]}},r={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},s={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}};export{n as Default,s as NoTitle,r as OneFeature,a as TwoFeatures,i as default};
@@ -1 +1 @@
1
- import{a}from"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ImageBlock};
1
+ import{a}from"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ImageBlock};
@@ -1 +1 @@
1
- import{a}from"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as MediaBlock};
1
+ import{a}from"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as MediaBlock};
@@ -1 +1 @@
1
- import{a}from"../../chunk-HVA2GFDG.mjs";import"../../chunk-423OEU3K.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RelatedPosts};
1
+ import{a}from"../../chunk-YDQUZWFZ.mjs";import"../../chunk-23EQTK7B.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RelatedPosts};
@@ -1 +1 @@
1
- import{a}from"../../chunk-74TGU5CZ.mjs";import"../../chunk-Q77U5BXI.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RenderBlocks};
1
+ import{a}from"../../chunk-4KGFHVYD.mjs";import"../../chunk-AEDBEVEE.mjs";import"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RenderBlocks};
@@ -1 +1 @@
1
- import{a as e}from"../../chunk-6HFYLEVF.mjs";import{a as q}from"../../chunk-HVA2GFDG.mjs";import"../../chunk-423OEU3K.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import{a as p}from"../../chunk-74TGU5CZ.mjs";import{a as n}from"../../chunk-Q77U5BXI.mjs";import{a as c}from"../../chunk-IQPZEEYJ.mjs";import{a as b}from"../../chunk-H7D3PZKE.mjs";import{a as g,b as h,c as m}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as k}from"../../chunk-UK4IPFAO.mjs";import{a as l}from"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import{a as j}from"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import{a as i}from"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as BannerBlock,h as CallToActionBlock,j as CodeBlock,n as ContentBlock,i as CopyButton,m as FeaturesBlock,o as HeadingImage,l as ImageBlock,b as InfoTile,a as Insight,c as MOTD,k as MediaBlock,d as OrgChart,e as ProposalSummary,q as RelatedPosts,p as RenderBlocks,f as WhyUs};
1
+ import{a as e}from"../../chunk-6HFYLEVF.mjs";import{a as q}from"../../chunk-YDQUZWFZ.mjs";import"../../chunk-23EQTK7B.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import{a as p}from"../../chunk-4KGFHVYD.mjs";import{a as n}from"../../chunk-AEDBEVEE.mjs";import{a as c}from"../../chunk-IQPZEEYJ.mjs";import{a as b}from"../../chunk-H7D3PZKE.mjs";import{a as g,b as h,c as m}from"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as k}from"../../chunk-PVRWMAHW.mjs";import{a as l}from"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import{a as j}from"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import{a as i}from"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as BannerBlock,h as CallToActionBlock,j as CodeBlock,n as ContentBlock,i as CopyButton,m as FeaturesBlock,o as HeadingImage,l as ImageBlock,b as InfoTile,a as Insight,c as MOTD,k as MediaBlock,d as OrgChart,e as ProposalSummary,q as RelatedPosts,p as RenderBlocks,f as WhyUs};
@@ -1 +1 @@
1
- import{a}from"../../chunk-5PW2VQWX.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealDetails};
1
+ import{a}from"../../chunk-A2WH6FYC.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealDetails};
@@ -1 +1 @@
1
- import{a as o}from"../../chunk-5PW2VQWX.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var n={title:"CRM/DealDetails",component:o,parameters:{layout:"centered"},tags:["autodocs"]},p=n,m={id:"1",name:"Acme Corp",active:!0},s=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],a=e=>Array.from({length:e},(c,t)=>({id:`comment-${t+1}`,text:`This is comment number ${t+1}. It's a mock comment to test the scrolling behavior of the comments section in the DealDetails component.`,author:["John Doe","Jane Smith","Bob Johnson"][t%3],timestamp:new Date(Date.now()-(e-t)*24*60*60*1e3).toISOString()})),r={id:1,customer:{id:1,name:"Acme Corp",active:!0},value:1e5,assignee:{id:1,name:"John Doe"},status:"Qualified",categories:["1","3","5"],dateLogged:"2023-01-01T00:00:00.000Z",closureDate:"2023-12-31T00:00:00.000Z",updatedAt:"2023-06-15T12:00:00.000Z",comments:a(50),description:"This is a mock deal for Acme Corp. It involves a large software project with potential for hardware integration."},i={args:{deal:r,customer:m,categories:s,onClose:()=>console.log("Close clicked"),onSave:e=>console.log("Save clicked",e),onAddComment:e=>console.log("Comment added",e)}},d={args:{...i.args,deal:{...r,comments:a(100)}}};export{i as Default,d as WithManyComments,p as default};
1
+ import{a as o}from"../../chunk-A2WH6FYC.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var n={title:"CRM/DealDetails",component:o,parameters:{layout:"centered"},tags:["autodocs"]},p=n,m={id:"1",name:"Acme Corp",active:!0},s=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],a=e=>Array.from({length:e},(c,t)=>({id:`comment-${t+1}`,text:`This is comment number ${t+1}. It's a mock comment to test the scrolling behavior of the comments section in the DealDetails component.`,author:["John Doe","Jane Smith","Bob Johnson"][t%3],timestamp:new Date(Date.now()-(e-t)*24*60*60*1e3).toISOString()})),r={id:1,customer:{id:1,name:"Acme Corp",active:!0},value:1e5,assignee:{id:1,name:"John Doe"},status:"Qualified",categories:["1","3","5"],dateLogged:"2023-01-01T00:00:00.000Z",closureDate:"2023-12-31T00:00:00.000Z",updatedAt:"2023-06-15T12:00:00.000Z",comments:a(50),description:"This is a mock deal for Acme Corp. It involves a large software project with potential for hardware integration."},i={args:{deal:r,customer:m,categories:s,onClose:()=>console.log("Close clicked"),onSave:e=>console.log("Save clicked",e),onAddComment:e=>console.log("Comment added",e)}},d={args:{...i.args,deal:{...r,comments:a(100)}}};export{i as Default,d as WithManyComments,p as default};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";"use client";var It=Object.create;var Pe=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Bt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var o in t)Pe(e,o,{get:t[o],enumerable:!0})},Ke=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zt(t))!Ht.call(e,n)&&n!==o&&Pe(e,n,{get:()=>t[n],enumerable:!(a=Et(t,n))||a.enumerable});return e};var z=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Ke(t||!e||!e.__esModule?Pe(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Ke(Pe({},"__esModule",{value:!0}),e);var Ao={};Vt(Ao,{CRMKanbanBoard:()=>To});module.exports=Ft(Ao);var Me=require("react");var we=z(require("react")),M=z(require("@radix-ui/react-dialog")),ot=require("lucide-react");var tt=require("clsx");var ze="-",Wt=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{let r=d.split(ze);return r[0]===""&&r.length!==1&&r.shift(),Je(r,t)||Gt(d)},getConflictingClassGroupIds:(d,r)=>{let g=o[d]||[];return r&&a[d]?[...g,...a[d]]:g}}},Je=(e,t)=>{var d;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),n=a?Je(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(ze);return(d=t.validators.find(({validator:r})=>r(i)))==null?void 0:d.classGroupId},$e=/^\[(.+)\]$/,Gt=e=>{if($e.test(e)){let t=$e.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ot=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,d])=>{Ee(d,a,i,t)}),a},Ee=(e,t,o,a)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:qe(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Ut(n)){Ee(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,d])=>{Ee(d,qe(t,i),o,a)})})},qe=(e,t)=>{let o=e;return t.split(ze).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ut=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let n=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,r])=>[t+d,r])):i);return[o,n]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,n=(i,d)=>{o.set(i,d),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=a.get(i))!==void 0)return n(i,d),d},set(i,d){o.has(i)?o.set(i,d):n(i,d)}}},Qe="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,n=t[0],i=t.length,d=r=>{let g=[],w=0,S=0,p;for(let v=0;v<r.length;v++){let R=r[v];if(w===0){if(R===n&&(a||r.slice(v,v+i)===t)){g.push(r.slice(S,v)),S=v+i;continue}if(R==="/"){p=v;continue}}R==="["?w++:R==="]"&&w--}let y=g.length===0?r:r.substring(S),b=y.startsWith(Qe),x=b?y.substring(1):y,C=p&&p>S?p-S:void 0;return{modifiers:g,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:C}};return o?r=>o({className:r,parseClassName:d}):d},$t=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},qt=e=>({cache:jt(e.cacheSize),parseClassName:Kt(e),...Wt(e)}),Jt=/\B+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=t,i=[],d=e.trim().split(Jt),r="";for(let g=d.length-1;g>=0;g-=1){let w=d[g],{modifiers:S,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:b}=o(w),x=!!b,C=a(x?y.substring(0,b):y);if(!C){if(!x){r=w+(r.length>0?" "+r:r);continue}if(C=a(y),!C){r=w+(r.length>0?" "+r:r);continue}x=!1}let v=$t(S).join(":"),R=p?v+Qe:v,E=R+C;if(i.includes(E))continue;i.push(E);let W=n(C,x);for(let G=0;G<W.length;++G){let m=W[G];i.push(R+m)}r=w+(r.length>0?" "+r:r)}return r};function Xt(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Xe(t))&&(a&&(a+=" "),a+=o);return a}var Xe=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Xe(e[a]))&&(o&&(o+=" "),o+=t);return o};function Zt(e,...t){let o,a,n,i=d;function d(g){let w=t.reduce((S,p)=>p(S),e());return o=qt(w),a=o.cache.get,n=o.cache.set,i=r,r(g)}function r(g){let w=a(g);if(w)return w;let S=Qt(g,o);return n(g,S),S}return function(){return i(Xt.apply(null,arguments))}}var D=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ze=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|st|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ao=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>ue(e,"number",pe),xe=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),u=e=>Ze.test(e),J=e=>to.test(e),no=new Set(["length","size","percentage"]),lo=e=>ue(e,no,Ye),co=e=>ue(e,"position",Ye),mo=new Set(["image","url"]),po=e=>ue(e,mo,bo),uo=e=>ue(e,"",go),Ce=()=>!0,ue=(e,t,o)=>{let a=Ze.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},fo=e=>oo.test(e)&&!ro.test(e),Ye=()=>!1,go=e=>ao.test(e),bo=e=>io.test(e);var vo=()=>{let e=D("colors"),t=D("spacing"),o=D("blur"),a=D("brightness"),n=D("borderColor"),i=D("borderRadius"),d=D("borderSpacing"),r=D("borderWidth"),g=D("contrast"),w=D("grayscale"),S=D("hueRotate"),p=D("invert"),y=D("gap"),b=D("gradientColorStops"),x=D("gradientColorStopPositions"),C=D("inset"),v=D("margin"),R=D("opacity"),E=D("padding"),W=D("saturate"),G=D("scale"),m=D("sepia"),P=D("skew"),O=D("space"),l=D("translate"),k=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",u,t],N=()=>[u,t],Oe=()=>["",$,q],Ne=()=>["auto",pe,u],Ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["solid","dashed","dotted","double","none"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",u],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[pe,u];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[$,q],blur:["none","",J,u],brightness:K(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:N(),borderWidth:Oe(),contrast:K(),grayscale:ye(),hueRotate:K(),invert:ye(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:me(),margin:me(),opacity:K(),padding:N(),saturate:K(),scale:K(),sepia:ye(),skew:K(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ue(),u]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xe,u]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",xe,u]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",xe,u]},u]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[xe,u]},u]}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],st:[{st:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ie]}],"font-family":[{font:[Ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",pe,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$,q]}],"underline-offset":[{"underline-offset":["auto",$,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ue(),co]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-B":[{"rounded-B":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[r]}],"border-w-x":[{"border-x":[r]}],"border-w-y":[{"border-y":[r]}],"border-w-B":[{"border-B":[r]}],"border-w-e":[{"border-e":[r]}],"border-w-t":[{"border-t":[r]}],"border-w-r":[{"border-r":[r]}],"border-w-b":[{"border-b":[r]}],"border-w-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...Re(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[r]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:Re()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-B":[{"border-B":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[$,u]}],"outline-w":[{outline:[$,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[$,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[..._e(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_e()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[p]}],saturate:[{saturate:[W]}],sepia:[{sepia:[m]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[xe,u]}],"translate-x":[{"translate-x":[l]}],"translate-y":[{"translate-y":[l]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","B-resize","w-resize","Me-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-st":[{"scroll-st":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$,q,Ie]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","st","pr","pb","pl"],px:["pr","pl"],py:["st","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-B","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-B":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-B","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-B","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-st","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-st","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var et=Zt(vo);function f(...e){return et((0,tt.clsx)(e))}var B=require("react/jsx-runtime"),fe=M.Root,rt=M.Trigger,ho=M.Portal;var at=we.forwardRef(({className:e,...t},o)=>(0,B.jsx)(M.Overlay,{ref:o,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));at.displayName=M.Overlay.displayName;var Z=we.forwardRef(({className:e,children:t,...o},a)=>(0,B.jsxs)(ho,{children:[(0,B.jsx)(at,{}),(0,B.jsxs)(M.Content,{ref:a,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,B.jsxs)(M.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,B.jsx)(ot.B,{className:"h-4 w-4"}),(0,B.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Z.displayName=M.Content.displayName;var Y=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";var yo=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});yo.displayName="DialogFooter";var ee=we.forwardRef(({className:e,...t},o)=>(0,B.jsx)(M.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));ee.displayName=M.Title.displayName;var xo=we.forwardRef(({className:e,...t},o)=>(0,B.jsx)(M.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));xo.displayName=M.Description.displayName;var it=require("@radix-ui/react-slot"),st=require("class-variance-authority"),nt=z(require("react")),Co=(0,st.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),H=nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...n},i)=>(0,B.jsx)(e?it.Slot:"button",{className:f(Co({className:t,size:o,variant:a})),ref:i,...n}));H.displayName="Button";var ct=z(require("react"));var _=ct.forwardRef(({className:e,type:t,...o},a)=>(0,B.jsx)("input",{type:t,className:f("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));_.displayName="Input";var mt=z(require("react")),Be=z(require("@radix-ui/react-label"));var wo=(0,st.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),L=mt.forwardRef(({className:e,...t},o)=>(0,B.jsx)(Be.Root,{ref:o,className:f(wo(),e),...t}));L.displayName=Be.Root.displayName;var ft=z(require("react")),te=ft.forwardRef(({className:e,...t},o)=>(0,B.jsx)("textarea",{className:f("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));te.displayName="Textarea";var h=z(require("@radix-ui/react-select")),Q=z(require("react")),ge=h.Root;var be=h.Value,re=Q.forwardRef(({children:e,className:t,...o},a)=>(0,B.jsxs)(h.Trigger,{className:f("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...o,children:[e,(0,B.jsx)(h.Icon,{asChild:!0,children:(0,B.jsx)(ot.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));re.displayName=h.Trigger.displayName;var bt=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(h.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,B.jsx)(ot.ChevronUp,{className:"h-4 w-4"})}));bt.displayName=h.ScrollUpButton.displayName;var vt=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(h.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,B.jsx)(ot.ChevronDown,{className:"h-4 w-4"})}));vt.displayName=h.ScrollDownButton.displayName;var ae=Q.forwardRef(({children:e,className:t,position:o="popper",...a},n)=>(0,B.jsx)(h.Portal,{children:(0,B.jsxs)(h.Content,{className:f("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:n,...a,children:[(0,B.jsx)(bt,{}),(0,B.jsx)(h.Viewport,{className:f("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,B.jsx)(vt,{})]})}));ae.displayName=h.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(h.Label,{className:f("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=h.Label.displayName;var ie=Q.forwardRef(({children:e,className:t,...o},a)=>(0,B.jsxs)(h.Item,{className:f("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...o,children:[(0,B.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,B.jsx)(h.ItemIndicator,{children:(0,B.jsx)(ot.Check,{className:"h-4 w-4"})})}),(0,B.jsx)(h.ItemText,{children:e})]}));ie.displayName=h.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(h.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=h.Separator.displayName;var Se=z(require("@radix-ui/react-checkbox")),yt=z(require("react")),se=yt.forwardRef(({className:e,...t},o)=>(0,B.jsx)(Se.Root,{className:f("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,B.jsx)(Se.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,B.jsx)(ot.Check,{className:"h-4 w-4"})})}));se.displayName=Se.Root.displayName;var Ro=(0,st.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ke({className:e,variant:t,...o}){return(0,B.jsx)("div",{className:f(Ro({variant:t}),e),...o})}var He=z(require("react")),F=z(require("@radix-ui/react-scroll-area"));var ve=He.forwardRef(({className:e,children:t,...o},a)=>(0,B.jsxs)(F.Root,{ref:a,className:f("relative overflow-hidden",e),...o,children:[(0,B.jsx)(F.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,B.jsx)(wt,{}),(0,B.jsx)(F.Corner,{})]}));ve.displayName=F.Root.displayName;var wt=He.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,B.jsx)(F.ScrollAreaScrollbar,{ref:a,orientation:t,className:f("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,B.jsx)(F.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));wt.displayName=F.ScrollAreaScrollbar.displayName;function St({deal:e,users:t,customer:o,categories:a,onClose:n,onSave:i,onAddComment:d}){var m,P,O;let[r,g]=(0,Me.useState)({...e,value:e.value||0}),[w,S]=(0,Me.useState)(""),[p,y]=(0,Me.useState)(!1),[b,x]=(0,Me.useState)(null);(0,Me.useEffect)(()=>{y(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let C=()=>{i(r),y(!1),x(null)},v=(l,k)=>{g(U=>({...U,[l]:k}))},R=l=>{let k=r.categories.includes(l)?r.categories.filter(U=>U!==l):[...r.categories,l];v("categories",k)},E=()=>{w.trim()&&(d({id:Date.now().toString(),text:w,timestamp:new Date().toISOString()}),g(l=>({...l,comments:[...l.comments,{id:"0",text:w,timestamp:new Date().toISOString()}]})),S(""))},W=l=>{switch(l){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},G=(l,k,U)=>{let me=b===l;return(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:k}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[U,me?(0,B.jsx)(_,{value:r[l],onChange:N=>v(l,N.target.value),onBlur:()=>x(null),autoFocus:!0}):(0,B.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>x(l),children:r[l]}),!me&&(0,B.jsx)(H,{variant:"ghost",size:"sm",onClick:()=>x(l),children:(0,B.jsx)(ot.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,B.jsx)(fe,{open:!0,children:(0,B.jsxs)(Z,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,B.jsxs)(Y,{className:"flex flex-row items-center justify-between",children:[(0,B.jsx)(ee,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,B.jsxs)("div",{className:"flex space-x-2",children:[(0,B.jsx)(H,{variant:"outline",onClick:n,children:"Close"}),(0,B.jsxs)(H,{onClick:C,disabled:!p,children:[(0,B.jsx)(ot.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,B.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,B.jsx)("div",{className:"grid gap-2",children:b==="value"?(0,B.jsx)(_,{type:"number",value:r.value,onChange:l=>v("value",Number(l.target.value)),onBlur:()=>x(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,B.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>x("value"),children:["\xA3",(m=r.value)==null?void 0:m.toLocaleString()]})}),(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),b==="assignee"?(0,B.jsxs)(ge,{value:((O=(P=r==null?void 0:r.assignee)==null?void 0:P.id)==null?void 0:O.toString())||"",onValueChange:l=>v("assignee",l),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select assignee"})}),(0,B.jsx)(ae,{children:t&&t.map(l=>{var k;return(0,B.jsx)(ie,{value:((k=l==null?void 0:l.id)==null?void 0:k.toString())||"",children:l.name},l.id)})})]}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>x("assignee"),children:[(0,B.jsx)(ot.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:r.assignee.name})]})]}),(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),b==="closureDate"?(0,B.jsx)(_,{type:"date",value:r.closureDate.split("B")[0],onChange:l=>v("closureDate",l.target.value),onBlur:()=>x(null),autoFocus:!0}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>x("closureDate"),children:[(0,B.jsx)(ot.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:new Date(r.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,B.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Description"}),b==="description"?(0,B.jsx)(te,{value:r.description,onChange:l=>v("description",l.target.value),onBlur:()=>x(null),className:"min-h-[100px]",autoFocus:!0}):(0,B.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>x("description"),children:r.description})]})}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 st-2 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Status"}),b==="status"?(0,B.jsxs)(ge,{value:r.status,onValueChange:l=>{v("status",l),x(null)},children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select status"})}),(0,B.jsx)(ae,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,B.jsx)(ie,{value:l,children:l},l))})]}):(0,B.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>x("status"),children:r.status})]}),(0,B.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Categories"}),b==="categories"?(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:l.id,checked:r.categories.includes(l.id),onCheckedChange:()=>R(l.id)}),(0,B.jsx)("label",{htmlFor:l.id,className:`text-sm font-medium ${W(l.type)} px-2 py-1 rounded`,children:l.name})]},l.id))}):(0,B.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>x("categories"),children:r.categories.map(l=>{let k=a.find(U=>U.id===l);return k?(0,B.jsx)(ke,{variant:"secondary",className:W(k.type),children:k.name},k.id):null})})]})]}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 st-4 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,B.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,B.jsx)("div",{className:"space-y-2",children:r.comments.slice().sort((l,k)=>new Date(k.timestamp).getTime()-new Date(l.timestamp).getTime()).map(l=>{var k;return(0,B.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,B.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,B.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(k=l==null?void 0:l.author)==null?void 0:k.name," - ",new Date(l.timestamp).toLocaleString()]})]},l.id)})})}),(0,B.jsxs)("div",{className:"flex mt-2",children:[(0,B.jsx)(_,{value:w,onChange:l=>S(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,B.jsxs)(H,{onClick:E,className:"ml-2",children:[(0,B.jsx)(ot.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,B.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt).toLocaleString()]})]})]})]})})}var le=z(require("react"));var Ve=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ve.displayName="Card";var Fe=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...t}));Fe.displayName="CardHeader";var We=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));We.displayName="CardTitle";var Po=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Po.displayName="CardDescription";var Ge=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("p-6 st-0",e),...t}));Ge.displayName="CardContent";var Do=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("flex items-center p-6 st-0",e),...t}));Do.displayName="CardFooter";function Nt({deal:e,customer:t,categories:o,onClick:a}){let n=o.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,B.jsxs)(Ve,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,B.jsxs)(Fe,{className:"pb-2",children:[(0,B.jsx)("div",{className:"flex justify-between items-center",children:(0,B.jsx)(We,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,B.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,B.jsxs)(Ge,{children:[(0,B.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,B.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,B.jsx)(ot.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,B.jsx)("span",{children:e.assignee.name})]}),(0,B.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,B.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,B.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,B.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,B.jsx)(ot.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,B.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,B.jsx)("div",{className:"flex justify-between items-left",children:n&&(0,B.jsx)(ke,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:n.name})})]})]})}var Ae=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Pt({onSubmit:e}){var n;let[t,o]=(0,Me.useState)({name:"",intro:"",active:!0});return(0,B.jsxs)("form",{onSubmit:i=>{i.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(L,{htmlFor:"customerName",children:"Customer Name"}),(0,B.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(L,{htmlFor:"customerIntro",children:"Intro"}),(0,B.jsx)(te,{id:"customerIntro",value:(n=t.intro)!=null?n:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,B.jsx)(L,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,B.jsx)(H,{type:"submit",className:"w-full",children:"Add Customer"})]})}function kt({customers:e,users:t,categories:o,onSubmit:a,initialDeal:n,onAddCustomer:i,onClose:d}){var R,E,W,G;let[r,g]=(0,Me.useState)(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("B")[0],closureDate:"",comments:[],description:""}),[w,S]=(0,Me.useState)(!1),[p,y]=(0,Me.useState)({});(0,Me.useEffect)(()=>{n&&g(n)},[n]);let b=()=>{let m={};return r.customer||(m.customer="Customer is required"),r.value||(m.value="Value is required"),r.assignee||(m.assignee="Assignee is required"),r.closureDate||(m.closureDate="Closure Date is required"),y(m),Object.keys(m).length===0},x=m=>{m.preventDefault(),b()&&(a({...r}),g({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),y({}),d==null||d())},C=m=>{g(P=>{var O;return{...P,categories:(O=P.categories)!=null&&O.includes(m)?P.categories.filter(l=>l!==m):[...P.categories||[],m]}})},v=m=>{e.push(m),g({...r,customer:m}),S(!1),i(m)};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("form",{onSubmit:x,className:"space-y-6",children:[(0,B.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,B.jsxs)("div",{className:"space-y-6 px-4",children:[(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"customer",children:"Customer"}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsxs)(ge,{value:(E=(R=r.customer)==null?void 0:R.id)==null?void 0:E.toString(),onValueChange:m=>g({...r,customer:{id:Number(m)}}),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select customer"})}),(0,B.jsx)(ae,{children:e.map(m=>{var P;return(0,B.jsx)(ie,{value:((P=m.id)==null?void 0:P.toString())||"",children:m.name},m.id)})})]}),(0,B.jsx)(H,{variant:"outline",size:"icon",onClick:()=>S(!0),children:(0,B.jsx)(ot.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"value",children:"Value"}),(0,B.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>g({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"assignee",children:"Assignee"}),(0,B.jsxs)(ge,{value:(G=(W=r.assignee)==null?void 0:W.id)==null?void 0:G.toString(),onValueChange:m=>g({...r,assignee:{id:Number(m)}}),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select assignee"})}),(0,B.jsx)(ae,{children:t&&t.map(m=>{var P;return(0,B.jsx)(ie,{value:((P=m.id)==null?void 0:P.toString())||"",children:m.name},m.id)})})]}),p.assignee&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"description",children:"Description"}),(0,B.jsx)(te,{id:"description",value:r.description||"",onChange:m=>g({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{children:"Categories"}),(0,B.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(P=>P.type===m).map(P=>{var O;return(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:P.id,checked:(O=r.categories)==null?void 0:O.includes(P.id),onCheckedChange:()=>C(P.id)}),(0,B.jsx)("label",{htmlFor:P.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:P.name})]},P.id)})})]},m))})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"closureDate",children:"Closure Date"}),(0,B.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate,onChange:m=>g({...r,closureDate:m.target.value})}),p.closureDate&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,B.jsx)(H,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),(0,B.jsx)(fe,{open:w,onOpenChange:S,children:(0,B.jsxs)(Z,{children:[(0,B.jsx)(Y,{children:(0,B.jsx)(ee,{children:"Add New Customer"})}),(0,B.jsx)(Pt,{onSubmit:v})]})})]})}function Mt({status:e,deals:t,users:o,customers:a,categories:n,onDealClick:i,calculateColumnValue:d,calculateWeightedValue:r,addNewDeal:g,onAddCustomer:w}){let[S,p]=(0,Me.useState)(!1);return(0,B.jsxs)("div",{className:"flex flex-col w-80",children:[(0,B.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),g&&(0,B.jsxs)(fe,{open:S,onOpenChange:p,children:[(0,B.jsx)(rt,{asChild:!0,children:(0,B.jsxs)(H,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,B.jsx)(ot.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,B.jsxs)(Z,{children:[(0,B.jsx)(Y,{children:(0,B.jsx)(ee,{children:"Add New Deal"})}),(0,B.jsx)(kt,{customers:a,users:o,categories:n,onSubmit:g,onAddCustomer:w,onClose:()=>p(!1)})]})]}),(0,B.jsx)(Ae.Droppable,{droppableId:e,isDropDisabled:!1,children:y=>(0,B.jsxs)("div",{ref:y.innerRef,...y.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,x)=>(0,B.jsx)(Ae.Draggable,{draggableId:b.id.toString(),index:b.id,children:C=>(0,B.jsx)("div",{ref:C.innerRef,...C.draggableProps,...C.dragHandleProps,children:(0,B.jsx)(Nt,{deal:b,customer:a.find(v=>v.id===b.customer.id),categories:n,onClick:()=>i(b)})})},b.id.toString())),y.placeholder]})}),(0,B.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,B.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,B.jsxs)("span",{className:"text-green-600",children:["\xA3",d(t).toLocaleString()]})]}),(0,B.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,B.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal","SoW","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:n}){let[i,d]=(0,Me.useState)(null),r=p=>e.deals.filter(y=>y.status===p),g=p=>p.reduce((y,b)=>y+(b.value||0),0),w=(p,y)=>{let b={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return p.reduce((x,C)=>x+(C.value||0)*b[y],0)},S=(0,Me.useCallback)(p=>{let{source:y,destination:b}=p;if(!b||y.droppableId===b.droppableId&&y.index===b.index)return;let x=y.droppableId,C=b.droppableId;console.log("Moving from ",x,"to",C);let v=[...e.deals],[R]=v.splice(y.index,1);R.status=C,v.splice(b.index,0,R),o(R)},[o]);return(0,B.jsx)(Ae.DragDropContext,{onDragEnd:S,children:(0,B.jsxs)("div",{className:"p-4",children:[(0,B.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:ko.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let y=r(p);return(0,B.jsx)(Mt,{status:p,deals:y,customers:e.customers,users:e.users,categories:e.categories,onDealClick:d,calculateColumnValue:g,calculateWeightedValue:w,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:n},p)})}),i&&(0,B.jsx)(St,{deal:i,users:e.users,customer:e.customers.find(p=>p.id===i.customer.id),categories:e.categories,onClose:()=>d(null),onSave:o,onAddComment:p=>a(i.id.toString(),p)})]})})}0&&(module.exports={CRMKanbanBoard});
5
+ "use strict";"use client";var It=Object.create;var Pe=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Bt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var o in t)Pe(e,o,{get:t[o],enumerable:!0})},Ke=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zt(t))!Ht.call(e,n)&&n!==o&&Pe(e,n,{get:()=>t[n],enumerable:!(a=Et(t,n))||a.enumerable});return e};var H=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Ke(t||!e||!e.__esModule?Pe(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Ke(Pe({},"__esModule",{value:!0}),e);var Ao={};Vt(Ao,{CRMKanbanBoard:()=>To});module.exports=Ft(Ao);var Me=require("react");var we=H(require("react")),L=H(require("@radix-ui/react-dialog")),ot=require("lucide-react");var tt=require("clsx");var ze="-",Wt=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{let r=d.split(ze);return r[0]===""&&r.length!==1&&r.shift(),Je(r,t)||Gt(d)},getConflictingClassGroupIds:(d,r)=>{let v=o[d]||[];return r&&a[d]?[...v,...a[d]]:v}}},Je=(e,t)=>{var d;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),n=a?Je(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(ze);return(d=t.validators.find(({validator:r})=>r(i)))==null?void 0:d.classGroupId},$e=/^\[(.+)\]$/,Gt=e=>{if($e.test(e)){let t=$e.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ot=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,d])=>{Ee(d,a,i,t)}),a},Ee=(e,t,o,a)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:qe(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Ut(n)){Ee(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,d])=>{Ee(d,qe(t,i),o,a)})})},qe=(e,t)=>{let o=e;return t.split(ze).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ut=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let n=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,r])=>[t+d,r])):i);return[o,n]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,n=(i,d)=>{o.set(i,d),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=a.get(i))!==void 0)return n(i,d),d},set(i,d){o.has(i)?o.set(i,d):n(i,d)}}},Qe="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,n=t[0],i=t.length,d=r=>{let v=[],w=0,S=0,x;for(let u=0;u<r.length;u++){let C=r[u];if(w===0){if(C===n&&(a||r.slice(u,u+i)===t)){v.push(r.slice(S,u)),S=u+i;continue}if(C==="/"){x=u;continue}}C==="["?w++:C==="]"&&w--}let D=v.length===0?r:r.substring(S),y=D.startsWith(Qe),p=y?D.substring(1):D,b=x&&x>S?x-S:void 0;return{modifiers:v,hasImportantModifier:y,baseClassName:p,maybePostfixModifierPosition:b}};return o?r=>o({className:r,parseClassName:d}):d},$t=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},qt=e=>({cache:jt(e.cacheSize),parseClassName:Kt(e),...Wt(e)}),Jt=/\V+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=t,i=[],d=e.trim().split(Jt),r="";for(let v=d.length-1;v>=0;v-=1){let w=d[v],{modifiers:S,hasImportantModifier:x,baseClassName:D,maybePostfixModifierPosition:y}=o(w),p=!!y,b=a(p?D.substring(0,y):D);if(!b){if(!p){r=w+(r.length>0?" "+r:r);continue}if(b=a(D),!b){r=w+(r.length>0?" "+r:r);continue}p=!1}let u=$t(S).join(":"),C=x?u+Qe:u,k=C+b;if(i.includes(k))continue;i.push(k);let B=n(b,p);for(let z=0;z<B.length;++z){let m=B[z];i.push(C+m)}r=w+(r.length>0?" "+r:r)}return r};function Xt(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Xe(t))&&(a&&(a+=" "),a+=o);return a}var Xe=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Xe(e[a]))&&(o&&(o+=" "),o+=t);return o};function Zt(e,...t){let o,a,n,i=d;function d(v){let w=t.reduce((S,x)=>x(S),e());return o=qt(w),a=o.cache.get,n=o.cache.set,i=r,r(v)}function r(v){let w=a(v);if(w)return w;let S=Qt(v,o);return n(v,S),S}return function(){return i(Xt.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ze=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|st|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ao=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>ue(e,"number",pe),xe=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),f=e=>Ze.test(e),J=e=>to.test(e),no=new Set(["length","size","percentage"]),lo=e=>ue(e,no,Ye),co=e=>ue(e,"position",Ye),mo=new Set(["image","url"]),po=e=>ue(e,mo,bo),uo=e=>ue(e,"",go),Ce=()=>!0,ue=(e,t,o)=>{let a=Ze.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},fo=e=>oo.test(e)&&!ro.test(e),Ye=()=>!1,go=e=>ao.test(e),bo=e=>io.test(e);var vo=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),a=P("brightness"),n=P("borderColor"),i=P("borderRadius"),d=P("borderSpacing"),r=P("borderWidth"),v=P("contrast"),w=P("grayscale"),S=P("hueRotate"),x=P("invert"),D=P("gap"),y=P("gradientColorStops"),p=P("gradientColorStopPositions"),b=P("inset"),u=P("margin"),C=P("opacity"),k=P("padding"),B=P("saturate"),z=P("scale"),m=P("sepia"),R=P("skew"),O=P("space"),l=P("translate"),T=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",f,t],N=()=>[f,t],Oe=()=>["",$,q],Ne=()=>["auto",pe,f],Ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["solid","dashed","dotted","double","none"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",f],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[pe,f];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[$,q],blur:["none","",J,f],brightness:K(),borderColor:[e],borderRadius:["none","","full",J,f],borderSpacing:N(),borderWidth:Oe(),contrast:K(),grayscale:ye(),hueRotate:K(),invert:ye(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:me(),margin:me(),opacity:K(),padding:N(),saturate:K(),scale:K(),sepia:ye(),skew:K(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ue(),f]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xe,f]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",xe,f]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",xe,f]},f]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[xe,f]},f]}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[D]}],"gap-x":[{"gap-x":[D]}],"gap-y":[{"gap-y":[D]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],st:[{st:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ie]}],"font-family":[{font:[Ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",f]}],"line-clamp":[{"line-clamp":["none",pe,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$,q]}],"underline-offset":[{"underline-offset":["auto",$,f]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ue(),co]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-V":[{"rounded-V":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[r]}],"border-w-x":[{"border-x":[r]}],"border-w-y":[{"border-y":[r]}],"border-w-V":[{"border-V":[r]}],"border-w-e":[{"border-e":[r]}],"border-w-t":[{"border-t":[r]}],"border-w-r":[{"border-r":[r]}],"border-w-b":[{"border-b":[r]}],"border-w-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...Re(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[r]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:Re()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-V":[{"border-V":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[$,f]}],"outline-w":[{outline:[$,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[$,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[..._e(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_e()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",J,f]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[x]}],saturate:[{saturate:[B]}],sepia:[{sepia:[m]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[xe,f]}],"translate-x":[{"translate-x":[l]}],"translate-y":[{"translate-y":[l]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","V-resize","w-resize","Me-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-st":[{"scroll-st":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$,q,Ie]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","st","pr","pb","pl"],px:["pr","pl"],py:["st","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-V","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-V":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-V","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-V","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-st","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-st","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var et=Zt(vo);function g(...e){return et((0,tt.clsx)(e))}var V=require("react/jsx-runtime"),fe=L.Root,rt=L.Trigger,ho=L.Portal;var at=we.forwardRef(({className:e,...t},o)=>(0,V.jsx)(L.Overlay,{ref:o,className:g("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));at.displayName=L.Overlay.displayName;var Z=we.forwardRef(({className:e,children:t,...o},a)=>(0,V.jsxs)(ho,{children:[(0,V.jsx)(at,{}),(0,V.jsxs)(L.Content,{ref:a,className:g("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,V.jsxs)(L.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,V.jsx)(ot.V,{className:"h-4 w-4"}),(0,V.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Z.displayName=L.Content.displayName;var Y=({className:e,...t})=>(0,V.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";var yo=({className:e,...t})=>(0,V.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});yo.displayName="DialogFooter";var ee=we.forwardRef(({className:e,...t},o)=>(0,V.jsx)(L.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...t}));ee.displayName=L.Title.displayName;var xo=we.forwardRef(({className:e,...t},o)=>(0,V.jsx)(L.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...t}));xo.displayName=L.Description.displayName;var it=require("@radix-ui/react-slot"),st=require("class-variance-authority"),nt=H(require("react")),Co=(0,st.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),F=nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...n},i)=>(0,V.jsx)(e?it.Slot:"button",{className:g(Co({className:t,size:o,variant:a})),ref:i,...n}));F.displayName="Button";var ct=H(require("react"));var _=ct.forwardRef(({className:e,type:t,...o},a)=>(0,V.jsx)("input",{type:t,className:g("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));_.displayName="Input";var mt=H(require("react")),Be=H(require("@radix-ui/react-label"));var wo=(0,st.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),I=mt.forwardRef(({className:e,...t},o)=>(0,V.jsx)(Be.Root,{ref:o,className:g(wo(),e),...t}));I.displayName=Be.Root.displayName;var ft=H(require("react")),te=ft.forwardRef(({className:e,...t},o)=>(0,V.jsx)("textarea",{className:g("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));te.displayName="Textarea";var h=H(require("@radix-ui/react-select")),Q=H(require("react")),ge=h.Root;var be=h.Value,re=Q.forwardRef(({children:e,className:t,...o},a)=>(0,V.jsxs)(h.Trigger,{className:g("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...o,children:[e,(0,V.jsx)(h.Icon,{asChild:!0,children:(0,V.jsx)(ot.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));re.displayName=h.Trigger.displayName;var bt=Q.forwardRef(({className:e,...t},o)=>(0,V.jsx)(h.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,V.jsx)(ot.ChevronUp,{className:"h-4 w-4"})}));bt.displayName=h.ScrollUpButton.displayName;var vt=Q.forwardRef(({className:e,...t},o)=>(0,V.jsx)(h.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,V.jsx)(ot.ChevronDown,{className:"h-4 w-4"})}));vt.displayName=h.ScrollDownButton.displayName;var ae=Q.forwardRef(({children:e,className:t,position:o="popper",...a},n)=>(0,V.jsx)(h.Portal,{children:(0,V.jsxs)(h.Content,{className:g("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:n,...a,children:[(0,V.jsx)(bt,{}),(0,V.jsx)(h.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,V.jsx)(vt,{})]})}));ae.displayName=h.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,V.jsx)(h.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=h.Label.displayName;var ie=Q.forwardRef(({children:e,className:t,...o},a)=>(0,V.jsxs)(h.Item,{className:g("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...o,children:[(0,V.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,V.jsx)(h.ItemIndicator,{children:(0,V.jsx)(ot.Check,{className:"h-4 w-4"})})}),(0,V.jsx)(h.ItemText,{children:e})]}));ie.displayName=h.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,V.jsx)(h.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=h.Separator.displayName;var Se=H(require("@radix-ui/react-checkbox")),yt=H(require("react")),se=yt.forwardRef(({className:e,...t},o)=>(0,V.jsx)(Se.Root,{className:g("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,V.jsx)(Se.Indicator,{className:g("flex items-center justify-center text-current"),children:(0,V.jsx)(ot.Check,{className:"h-4 w-4"})})}));se.displayName=Se.Root.displayName;var Ro=(0,st.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ke({className:e,variant:t,...o}){return(0,V.jsx)("div",{className:g(Ro({variant:t}),e),...o})}var He=H(require("react")),G=H(require("@radix-ui/react-scroll-area"));var ve=He.forwardRef(({className:e,children:t,...o},a)=>(0,V.jsxs)(G.Root,{ref:a,className:g("relative overflow-hidden",e),...o,children:[(0,V.jsx)(G.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,V.jsx)(wt,{}),(0,V.jsx)(G.Corner,{})]}));ve.displayName=G.Root.displayName;var wt=He.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,V.jsx)(G.ScrollAreaScrollbar,{ref:a,orientation:t,className:g("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,V.jsx)(G.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));wt.displayName=G.ScrollAreaScrollbar.displayName;function St({deal:e,users:t,customer:o,categories:a,onClose:n,onSave:i,onAddComment:d}){var m,R,O;let[r,v]=(0,Me.useState)({...e,value:e.value||0}),[w,S]=(0,Me.useState)(""),[x,D]=(0,Me.useState)(!1),[y,p]=(0,Me.useState)(null);(0,Me.useEffect)(()=>{D(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let b=()=>{i(r),D(!1),p(null)},u=(l,T)=>{v(U=>({...U,[l]:T}))},C=l=>{let T=r.categories.includes(l)?r.categories.filter(U=>U!==l):[...r.categories,l];u("categories",T)},k=()=>{w.trim()&&(d({id:Date.now().toString(),text:w,timestamp:new Date().toISOString()}),v(l=>({...l,comments:[...l.comments,{id:"0",text:w,timestamp:new Date().toISOString()}]})),S(""))},B=l=>{switch(l){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},z=(l,T,U)=>{let me=y===l;return(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(I,{className:"text-sm font-medium text-gray-500",children:T}),(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[U,me?(0,V.jsx)(_,{value:r[l],onChange:N=>u(l,N.target.value),onBlur:()=>p(null),autoFocus:!0}):(0,V.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>p(l),children:r[l]}),!me&&(0,V.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>p(l),children:(0,V.jsx)(ot.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,V.jsx)(fe,{open:!0,children:(0,V.jsxs)(Z,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,V.jsxs)(Y,{className:"flex flex-row items-center justify-between",children:[(0,V.jsx)(ee,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,V.jsxs)("div",{className:"flex space-x-2",children:[(0,V.jsx)(F,{variant:"outline",onClick:n,children:"Close"}),(0,V.jsxs)(F,{onClick:b,disabled:!x,children:[(0,V.jsx)(ot.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,V.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,V.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,V.jsx)("div",{className:"grid gap-2",children:y==="value"?(0,V.jsx)(_,{type:"number",value:r.value,onChange:l=>u("value",Number(l.target.value)),onBlur:()=>p(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,V.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>p("value"),children:["\xA3",(m=r.value)==null?void 0:m.toLocaleString()]})}),(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(I,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),y==="assignee"?(0,V.jsxs)(ge,{value:((O=(R=r==null?void 0:r.assignee)==null?void 0:R.id)==null?void 0:O.toString())||"",onValueChange:l=>u("assignee",l),children:[(0,V.jsx)(re,{children:(0,V.jsx)(be,{placeholder:"Select assignee"})}),(0,V.jsx)(ae,{children:t&&t.map(l=>{var T;return(0,V.jsx)(ie,{value:((T=l==null?void 0:l.id)==null?void 0:T.toString())||"",children:l.name},l.id)})})]}):(0,V.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>p("assignee"),children:[(0,V.jsx)(ot.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,V.jsx)("span",{children:r.assignee.name})]})]}),(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(I,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),y==="closureDate"?(0,V.jsx)(_,{type:"date",value:r.closureDate.split("T")[0],onChange:l=>u("closureDate",l.target.value),onBlur:()=>p(null),autoFocus:!0}):(0,V.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>p("closureDate"),children:[(0,V.jsx)(ot.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,V.jsx)("span",{children:new Date(r.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,V.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(I,{className:"text-sm font-medium text-gray-500",children:"Description"}),y==="description"?(0,V.jsx)(te,{value:r.description,onChange:l=>u("description",l.target.value),onBlur:()=>p(null),className:"min-h-[100px]",autoFocus:!0}):(0,V.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>p("description"),children:r.description})]})}),(0,V.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 st-2 gap-4",children:[(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(I,{className:"text-sm font-medium text-gray-500",children:"Status"}),y==="status"?(0,V.jsxs)(ge,{value:r.status,onValueChange:l=>{u("status",l),p(null)},children:[(0,V.jsx)(re,{children:(0,V.jsx)(be,{placeholder:"Select status"})}),(0,V.jsx)(ae,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,V.jsx)(ie,{value:l,children:l},l))})]}):(0,V.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>p("status"),children:r.status})]}),(0,V.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,V.jsx)(I,{className:"text-sm font-medium text-gray-500",children:"Categories"}),y==="categories"?(0,V.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)(se,{id:l.id,checked:r.categories.includes(l.id),onCheckedChange:()=>C(l.id)}),(0,V.jsx)("label",{htmlFor:l.id,className:`text-sm font-medium ${B(l.type)} px-2 py-1 rounded`,children:l.name})]},l.id))}):(0,V.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>p("categories"),children:r.categories.map(l=>{let T=a.find(U=>U.id===l);return T?(0,V.jsx)(ke,{variant:"secondary",className:B(T.type),children:T.name},T.id):null})})]})]}),(0,V.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 st-4 gap-4",children:[(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(I,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,V.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,V.jsx)("div",{className:"space-y-2",children:r.comments.slice().sort((l,T)=>new Date(T.timestamp).getTime()-new Date(l.timestamp).getTime()).map(l=>{var T;return(0,V.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,V.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,V.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(T=l==null?void 0:l.author)==null?void 0:T.name," - ",new Date(l.timestamp).toLocaleString()]})]},l.id)})})}),(0,V.jsxs)("div",{className:"flex mt-2",children:[(0,V.jsx)(_,{value:w,onChange:l=>S(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,V.jsxs)(F,{onClick:k,className:"ml-2",children:[(0,V.jsx)(ot.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,V.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt).toLocaleString()]})]})]})]})})}var le=H(require("react"));var Ve=le.forwardRef(({className:e,...t},o)=>(0,V.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ve.displayName="Card";var Fe=le.forwardRef(({className:e,...t},o)=>(0,V.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...t}));Fe.displayName="CardHeader";var We=le.forwardRef(({className:e,...t},o)=>(0,V.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));We.displayName="CardTitle";var Po=le.forwardRef(({className:e,...t},o)=>(0,V.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));Po.displayName="CardDescription";var Ge=le.forwardRef(({className:e,...t},o)=>(0,V.jsx)("div",{ref:o,className:g("p-6 st-0",e),...t}));Ge.displayName="CardContent";var Do=le.forwardRef(({className:e,...t},o)=>(0,V.jsx)("div",{ref:o,className:g("flex items-center p-6 st-0",e),...t}));Do.displayName="CardFooter";function Nt({deal:e,customer:t,categories:o,onClick:a}){let n=o.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,V.jsxs)(Ve,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,V.jsxs)(Fe,{className:"pb-2",children:[(0,V.jsx)("div",{className:"flex justify-between items-center",children:(0,V.jsx)(We,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,V.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,V.jsxs)(Ge,{children:[(0,V.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,V.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,V.jsx)(ot.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,V.jsx)("span",{children:e.assignee.name})]}),(0,V.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,V.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,V.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,V.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,V.jsx)(ot.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,V.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,V.jsx)("div",{className:"flex justify-between items-left",children:n&&(0,V.jsx)(ke,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:n.name})})]})]})}var Ae=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Pt({onSubmit:e}){var n;let[t,o]=(0,Me.useState)({name:"",intro:"",active:!0});return(0,V.jsxs)("form",{onSubmit:i=>{i.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)(I,{htmlFor:"customerName",children:"Customer Name"}),(0,V.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)(I,{htmlFor:"customerIntro",children:"Intro"}),(0,V.jsx)(te,{id:"customerIntro",value:(n=t.intro)!=null?n:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)(se,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,V.jsx)(I,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,V.jsx)(F,{type:"submit",className:"w-full",children:"Add Customer"})]})}function kt({customers:e,users:t,categories:o,onSubmit:a,initialDeal:n,onAddCustomer:i,onClose:d}){var C,k,B,z;let[r,v]=(0,Me.useState)(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[w,S]=(0,Me.useState)(!1),[x,D]=(0,Me.useState)({});(0,Me.useEffect)(()=>{n&&v(n)},[n]);let y=()=>{let m={};return r.customer||(m.customer="Customer is required"),r.value||(m.value="Value is required"),r.assignee||(m.assignee="Assignee is required"),r.closureDate||(m.closureDate="Closure Date is required"),D(m),Object.keys(m).length===0},p=m=>{m.preventDefault(),y()&&(a({...r}),v({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),D({}),d==null||d())},b=m=>{v(R=>{var O;return{...R,categories:(O=R.categories)!=null&&O.includes(m)?R.categories.filter(l=>l!==m):[...R.categories||[],m]}})},u=m=>{e.push(m),v({...r,customer:m}),S(!1),i(m)};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("form",{onSubmit:p,className:"space-y-6",children:[(0,V.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,V.jsxs)("div",{className:"space-y-6 px-4",children:[(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(I,{htmlFor:"customer",children:"Customer"}),(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsxs)(ge,{value:(k=(C=r.customer)==null?void 0:C.id)==null?void 0:k.toString(),onValueChange:m=>v({...r,customer:{id:Number(m)}}),children:[(0,V.jsx)(re,{children:(0,V.jsx)(be,{placeholder:"Select customer"})}),(0,V.jsx)(ae,{children:e.map(m=>{var R;return(0,V.jsx)(ie,{value:((R=m.id)==null?void 0:R.toString())||"",children:m.name},m.id)})})]}),(0,V.jsx)(F,{variant:"outline",size:"icon",onClick:()=>S(!0),children:(0,V.jsx)(ot.PlusIcon,{className:"w-5 h-5"})})]}),x.customerId&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:x.customerId})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(I,{htmlFor:"value",children:"Value"}),(0,V.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>v({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),x.value&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:x.value})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(I,{htmlFor:"assignee",children:"Assignee"}),(0,V.jsxs)(ge,{value:(z=(B=r.assignee)==null?void 0:B.id)==null?void 0:z.toString(),onValueChange:m=>v({...r,assignee:{id:Number(m)}}),children:[(0,V.jsx)(re,{children:(0,V.jsx)(be,{placeholder:"Select assignee"})}),(0,V.jsx)(ae,{children:t&&t.map(m=>{var R;return(0,V.jsx)(ie,{value:((R=m.id)==null?void 0:R.toString())||"",children:m.name},m.id)})})]}),x.assignee&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:x.assignee})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(I,{htmlFor:"description",children:"Description"}),(0,V.jsx)(te,{id:"description",value:r.description||"",onChange:m=>v({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(I,{children:"Categories"}),(0,V.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,V.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(R=>R.type===m).map(R=>{var O;return(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)(se,{id:R.id,checked:(O=r.categories)==null?void 0:O.includes(R.id),onCheckedChange:()=>b(R.id)}),(0,V.jsx)("label",{htmlFor:R.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:R.name})]},R.id)})})]},m))})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(I,{htmlFor:"closureDate",children:"Closure Date"}),(0,V.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate,onChange:m=>v({...r,closureDate:m.target.value})}),x.closureDate&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:x.closureDate})]})]})}),(0,V.jsx)(F,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),(0,V.jsx)(fe,{open:w,onOpenChange:S,children:(0,V.jsxs)(Z,{children:[(0,V.jsx)(Y,{children:(0,V.jsx)(ee,{children:"Add New Customer"})}),(0,V.jsx)(Pt,{onSubmit:u})]})})]})}function Mt({status:e,deals:t,users:o,customers:a,categories:n,onDealClick:i,calculateColumnValue:d,calculateWeightedValue:r,addNewDeal:v,onAddCustomer:w}){let[S,x]=(0,Me.useState)(!1);return(0,V.jsxs)("div",{className:"flex flex-col w-80",children:[(0,V.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),v&&(0,V.jsxs)(fe,{open:S,onOpenChange:x,children:[(0,V.jsx)(rt,{asChild:!0,children:(0,V.jsxs)(F,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,V.jsx)(ot.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,V.jsxs)(Z,{children:[(0,V.jsx)(Y,{children:(0,V.jsx)(ee,{children:"Add New Deal"})}),(0,V.jsx)(kt,{customers:a,users:o,categories:n,onSubmit:v,onAddCustomer:w,onClose:()=>x(!1)})]})]}),(0,V.jsx)(Ae.Droppable,{droppableId:e,isDropDisabled:!1,children:D=>(0,V.jsxs)("div",{ref:D.innerRef,...D.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((y,p)=>(0,V.jsx)(Ae.Draggable,{draggableId:y.id.toString(),index:y.id,children:b=>(0,V.jsx)("div",{ref:b.innerRef,...b.draggableProps,...b.dragHandleProps,children:(0,V.jsx)(Nt,{deal:y,customer:a.find(u=>u.id===y.customer.id),categories:n,onClick:()=>i(y)})})},y.id.toString())),D.placeholder]})}),(0,V.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,V.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,V.jsxs)("span",{className:"text-green-600",children:["\xA3",d(t).toLocaleString()]})]}),(0,V.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,V.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal","SoW","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:n}){var x,D,y;let[i,d]=(0,Me.useState)(null),r=p=>{var b;return((b=e.deals)!=null?b:[]).filter(u=>u.status===p)},v=p=>p.reduce((b,u)=>b+(u.value||0),0),w=(p,b)=>{let u={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return p.reduce((C,k)=>C+(k.value||0)*u[b],0)},S=(0,Me.useCallback)(p=>{var m;let{source:b,destination:u}=p;if(!u||b.droppableId===u.droppableId&&b.index===u.index)return;let C=b.droppableId,k=u.droppableId;console.log("Moving from ",C,"to",k);let B=[...(m=e.deals)!=null?m:[]],[z]=B.splice(b.index,1);z.status=k,B.splice(u.index,0,z),o(z)},[o]);return(0,V.jsx)(Ae.DragDropContext,{onDragEnd:S,children:(0,V.jsxs)("div",{className:"p-4",children:[(0,V.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:ko.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{var u,C;let b=r(p);return(0,V.jsx)(Mt,{status:p,deals:b,customers:(u=e.customers)!=null?u:[],users:e.users,categories:(C=e.categories)!=null?C:[],onDealClick:d,calculateColumnValue:v,calculateWeightedValue:w,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:n},p)})}),i&&(0,V.jsx)(St,{deal:i,users:e.users,customer:(D=(x=e.customers)==null?void 0:x.find(p=>p.id===i.customer.id))!=null?D:void 0,categories:(y=e.categories)!=null?y:[],onClose:()=>d(null),onSave:o,onAddComment:p=>a(i.id.toString(),p)})]})})}0&&(module.exports={CRMKanbanBoard});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-LE5KFDND.mjs";import"../../chunk-72SXYDHA.mjs";import"../../chunk-ZXPDKKGX.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-QH3BNFVD.mjs";import"../../chunk-5PW2VQWX.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CRMKanbanBoard};
2
+ "use strict";import{a}from"../../chunk-THRH74JO.mjs";import"../../chunk-A2WH6FYC.mjs";import"../../chunk-5HYGXWKZ.mjs";import"../../chunk-E436SEDU.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-QH3BNFVD.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CRMKanbanBoard};