cortex-react-components 1.44.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/{chunk-DTS4JPQL.mjs → chunk-2YRGNJX5.mjs} +1 -1
  2. package/dist/{chunk-TO55WII3.mjs → chunk-2ZTS6SHH.mjs} +1 -1
  3. package/dist/{chunk-J75UUPRH.mjs → chunk-3FKYVEVC.mjs} +1 -1
  4. package/dist/{chunk-3TIFSACL.mjs → chunk-4BZYZZOG.mjs} +1 -1
  5. package/dist/{chunk-EQDX6HFN.mjs → chunk-5EFOKBKA.mjs} +1 -1
  6. package/dist/{chunk-O26I7JIU.mjs → chunk-6OISITAN.mjs} +1 -1
  7. package/dist/{chunk-AN6RPIXY.mjs → chunk-ALZWI32J.mjs} +1 -1
  8. package/dist/{chunk-S3QLIGWR.mjs → chunk-BITHUWFH.mjs} +1 -1
  9. package/dist/{chunk-I2WBIJ5B.mjs → chunk-E25LNH27.mjs} +1 -1
  10. package/dist/{chunk-S5XXW3KY.mjs → chunk-E2ZOD2LR.mjs} +1 -1
  11. package/dist/chunk-EZVA3JCM.mjs +4 -0
  12. package/dist/{chunk-MQQN576Y.mjs → chunk-I5XYOFMQ.mjs} +1 -1
  13. package/dist/{chunk-KJV6IC7P.mjs → chunk-IA4YGV3H.mjs} +1 -1
  14. package/dist/chunk-ITZ5HFK6.mjs +1 -0
  15. package/dist/chunk-K4PEUFFR.mjs +1 -0
  16. package/dist/{chunk-DESYC5BB.mjs → chunk-KAJDV47B.mjs} +1 -1
  17. package/dist/{chunk-5YTDIEDJ.mjs → chunk-KB6PO4K4.mjs} +1 -1
  18. package/dist/{chunk-2ZCWTWNM.mjs → chunk-KJBMLPHS.mjs} +1 -1
  19. package/dist/{chunk-72Z4T7BT.mjs → chunk-KQE42INF.mjs} +1 -1
  20. package/dist/chunk-KSCHUMVE.mjs +1 -0
  21. package/dist/chunk-NSBNDXRL.mjs +1 -0
  22. package/dist/{chunk-3KMFY6E7.mjs → chunk-PV7GB4V4.mjs} +1 -1
  23. package/dist/{chunk-KEUZSK3N.mjs → chunk-PY53YVFX.mjs} +1 -1
  24. package/dist/{chunk-UYHCPHTK.mjs → chunk-QN76WE6K.mjs} +1 -1
  25. package/dist/{chunk-M6AAFZAZ.mjs → chunk-QRS4IJK7.mjs} +1 -1
  26. package/dist/{chunk-OBAM7FQJ.mjs → chunk-RRY5APZU.mjs} +1 -1
  27. package/dist/{chunk-AAI2VZST.mjs → chunk-SBAFXZVU.mjs} +1 -1
  28. package/dist/{chunk-LGXGU4HR.mjs → chunk-SV4QNVHW.mjs} +1 -1
  29. package/dist/{chunk-EDN7AU6R.mjs → chunk-TYLGC23Z.mjs} +1 -1
  30. package/dist/{chunk-56F5BZTQ.mjs → chunk-UNSOY5OU.mjs} +1 -1
  31. package/dist/{chunk-3QVZVSB3.mjs → chunk-UZZMVAS3.mjs} +1 -1
  32. package/dist/{chunk-GOMLTG5W.mjs → chunk-V7YLLLES.mjs} +1 -1
  33. package/dist/chunk-Y3L5THWA.mjs +4 -0
  34. package/dist/chunk-ZEFMFNSR.mjs +4 -0
  35. package/dist/{chunk-VRZNDEJT.mjs → chunk-ZU4E2UO7.mjs} +1 -1
  36. package/dist/components/Blocks/Banner.mjs +1 -1
  37. package/dist/components/Blocks/CallToAction.mjs +1 -1
  38. package/dist/components/Blocks/CallToAction.stories.js +4 -0
  39. package/dist/components/Blocks/CallToAction.stories.mjs +1 -0
  40. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  41. package/dist/components/Blocks/CaseStudy.stories.js +1 -1
  42. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  43. package/dist/components/Blocks/Code.client.mjs +1 -1
  44. package/dist/components/Blocks/Code.mjs +1 -1
  45. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  46. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  47. package/dist/components/Blocks/Content.mjs +1 -1
  48. package/dist/components/Blocks/CopyButton.mjs +1 -1
  49. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  50. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  51. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  52. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  53. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  54. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  55. package/dist/components/Blocks/RenderBlocks.js +1 -1
  56. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  57. package/dist/components/Blocks/index.js +1 -1
  58. package/dist/components/Blocks/index.mjs +1 -1
  59. package/dist/components/CRM/DealCard.mjs +1 -1
  60. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  61. package/dist/components/CRM/DealDetails.mjs +1 -1
  62. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  63. package/dist/components/CRM/KanbanBoard.d.ts +1 -1
  64. package/dist/components/CRM/KanbanBoard.js +1 -2
  65. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  66. package/dist/components/CRM/KanbanBoard.stories.js +1 -2
  67. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  68. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  69. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  70. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  71. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  72. package/dist/components/CRM/NewDealForm.mjs +1 -1
  73. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  74. package/dist/components/CRM/index.js +1 -2
  75. package/dist/components/CRM/index.mjs +1 -1
  76. package/dist/components/Cards/ContentCard.mjs +1 -1
  77. package/dist/components/Cards/ContentCard.stories.js +1 -1
  78. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  79. package/dist/components/Cards/CustomerCard.mjs +1 -1
  80. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  81. package/dist/components/Cards/EventCard.mjs +1 -1
  82. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  83. package/dist/components/Cards/HeroCard.mjs +1 -1
  84. package/dist/components/Cards/HeroCard.stories.js +1 -1
  85. package/dist/components/Cards/HeroCard.stories.mjs +1 -1
  86. package/dist/components/Cards/Image.mjs +1 -1
  87. package/dist/components/Cards/Image.stories.mjs +1 -1
  88. package/dist/components/Cards/PricingCard.mjs +1 -1
  89. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  90. package/dist/components/Cards/ServiceCard.mjs +1 -1
  91. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  92. package/dist/components/Cards/index.mjs +1 -1
  93. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  94. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  95. package/dist/components/HeaderFooter/Header.mjs +1 -1
  96. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  97. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  98. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  100. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/HeaderMobile.d.ts +1 -1
  102. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  103. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  104. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  105. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  106. package/dist/components/HeaderFooter/index.mjs +1 -1
  107. package/dist/components/Heros/HighImpact/index.js +1 -1
  108. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  109. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  110. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  111. package/dist/components/Heros/PostHero/index.d.ts +4 -2
  112. package/dist/components/Heros/PostHero/index.js +1 -1
  113. package/dist/components/Heros/PostHero/index.mjs +1 -1
  114. package/dist/components/Heros/RenderHero.js +1 -1
  115. package/dist/components/Heros/RenderHero.mjs +1 -1
  116. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  117. package/dist/components/Heros/index.js +1 -1
  118. package/dist/components/Heros/index.mjs +1 -1
  119. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  120. package/dist/components/Holidays/ApproveLeave.stories.js +1 -1
  121. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  122. package/dist/components/Holidays/CalendarView.mjs +1 -1
  123. package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
  124. package/dist/components/Holidays/HolidayGrid.d.ts +1 -1
  125. package/dist/components/Holidays/HolidayGrid.js +1 -1
  126. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  127. package/dist/components/Holidays/HolidayGrid.stories.js +1 -1
  128. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  129. package/dist/components/Holidays/HolidayTracker.js +1 -1
  130. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  131. package/dist/components/Holidays/HolidayTracker.stories.js +80 -80
  132. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  133. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  134. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
  135. package/dist/components/Holidays/index.js +1 -1
  136. package/dist/components/Holidays/index.mjs +1 -1
  137. package/dist/components/Layouts/BlogList.mjs +1 -1
  138. package/dist/components/Layouts/BlogList.stories.js +1 -1
  139. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  140. package/dist/components/Layouts/NewsGrid.stories.js +1 -1
  141. package/dist/components/Layouts/NewsGrid.stories.mjs +1 -1
  142. package/dist/components/Layouts/NewsList.stories.js +1 -1
  143. package/dist/components/Layouts/NewsList.stories.mjs +1 -1
  144. package/dist/components/Layouts/SlideShow.js +1 -1
  145. package/dist/components/Layouts/SlideShow.mjs +1 -1
  146. package/dist/components/Layouts/SlideShow.stories.js +1 -1
  147. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  148. package/dist/components/Layouts/index.js +3 -3
  149. package/dist/components/Layouts/index.mjs +1 -1
  150. package/dist/components/Menus/Categories.mjs +1 -1
  151. package/dist/components/Menus/Categories.stories.mjs +1 -1
  152. package/dist/components/Menus/Filter.mjs +1 -1
  153. package/dist/components/Menus/Filter.stories.mjs +1 -1
  154. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  155. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  156. package/dist/components/Menus/RelatedContent.mjs +1 -1
  157. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  158. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  159. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  160. package/dist/components/Menus/SidebarRight.mjs +1 -1
  161. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  162. package/dist/components/Menus/index.mjs +1 -1
  163. package/dist/components/Other/Container.mjs +1 -1
  164. package/dist/components/Other/index.mjs +1 -1
  165. package/dist/components/Payload/Link/index.mjs +1 -1
  166. package/dist/components/Payload/Pagination/index.mjs +1 -1
  167. package/dist/components/Payload/RichText/index.mjs +1 -1
  168. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  169. package/dist/components/Payload/RichText.stories.mjs +1 -1
  170. package/dist/components/Payload/index.mjs +1 -1
  171. package/dist/components/index.js +6 -6
  172. package/dist/components/index.mjs +1 -1
  173. package/dist/components/ui/alert.mjs +1 -1
  174. package/dist/components/ui/alert.stories.mjs +1 -1
  175. package/dist/components/ui/avatar.mjs +1 -1
  176. package/dist/components/ui/avatar.stories.mjs +1 -1
  177. package/dist/components/ui/badge.mjs +1 -1
  178. package/dist/components/ui/badge.stories.mjs +1 -1
  179. package/dist/components/ui/breadcrumb.mjs +1 -1
  180. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  181. package/dist/components/ui/button.mjs +1 -1
  182. package/dist/components/ui/button.stories.mjs +1 -1
  183. package/dist/components/ui/calendar.mjs +1 -1
  184. package/dist/components/ui/card.mjs +1 -1
  185. package/dist/components/ui/card.stories.mjs +1 -1
  186. package/dist/components/ui/checkbox.mjs +1 -1
  187. package/dist/components/ui/command.mjs +1 -1
  188. package/dist/components/ui/command.stories.mjs +1 -1
  189. package/dist/components/ui/dialog.mjs +1 -1
  190. package/dist/components/ui/dialog.stories.mjs +1 -1
  191. package/dist/components/ui/dropdown-menu.mjs +1 -1
  192. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  193. package/dist/components/ui/hover-card.mjs +1 -1
  194. package/dist/components/ui/hover-card.stories.mjs +1 -1
  195. package/dist/components/ui/index.mjs +1 -1
  196. package/dist/components/ui/input.mjs +1 -1
  197. package/dist/components/ui/input.stories.mjs +1 -1
  198. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  199. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  200. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  201. package/dist/components/ui/label.mjs +1 -1
  202. package/dist/components/ui/label.stories.mjs +1 -1
  203. package/dist/components/ui/pagination.mjs +1 -1
  204. package/dist/components/ui/popover.mjs +1 -1
  205. package/dist/components/ui/popover.stories.mjs +1 -1
  206. package/dist/components/ui/scroll-area.mjs +1 -1
  207. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  208. package/dist/components/ui/select.mjs +1 -1
  209. package/dist/components/ui/separator.mjs +1 -1
  210. package/dist/components/ui/separator.stories.mjs +1 -1
  211. package/dist/components/ui/sheet.mjs +1 -1
  212. package/dist/components/ui/sheet.stories.mjs +1 -1
  213. package/dist/components/ui/sidebar.mjs +1 -1
  214. package/dist/components/ui/skeleton.mjs +1 -1
  215. package/dist/components/ui/skeleton.stories.mjs +1 -1
  216. package/dist/components/ui/textarea.mjs +1 -1
  217. package/dist/components/ui/toast.mjs +1 -1
  218. package/dist/components/ui/toast.stories.mjs +1 -1
  219. package/dist/components/ui/toaster.mjs +1 -1
  220. package/dist/components/ui/toggle-group.mjs +1 -1
  221. package/dist/components/ui/toggle.mjs +1 -1
  222. package/dist/components/ui/toggle.stories.mjs +1 -1
  223. package/dist/components/ui/tooltip.mjs +1 -1
  224. package/dist/components/ui/tooltip.stories.mjs +1 -1
  225. package/dist/globals.css +1 -1
  226. package/dist/index.js +6 -6
  227. package/dist/index.mjs +1 -1
  228. package/dist/metafile-cjs.json +1 -1
  229. package/dist/metafile-esm.json +1 -1
  230. package/dist/pages/Blog.js +1 -1
  231. package/dist/pages/Blog.mjs +1 -1
  232. package/dist/pages/Blog.stories.js +1 -1
  233. package/dist/pages/Blog.stories.mjs +1 -1
  234. package/dist/pages/Documentation.mjs +1 -1
  235. package/dist/pages/Documentation.stories.js +1 -1
  236. package/dist/pages/Documentation.stories.mjs +1 -1
  237. package/dist/pages/IndexPage.mjs +1 -1
  238. package/dist/pages/IndexPage.stories.js +1 -1
  239. package/dist/pages/IndexPage.stories.mjs +1 -1
  240. package/dist/pages/Intranet.mjs +1 -1
  241. package/dist/pages/Intranet.stories.mjs +1 -1
  242. package/dist/pages/LandingPage.mjs +1 -1
  243. package/dist/pages/LandingPage.stories.js +1 -1
  244. package/dist/pages/LandingPage.stories.mjs +1 -1
  245. package/dist/pages/Page.js +1 -1
  246. package/dist/pages/Page.mjs +1 -1
  247. package/dist/pages/Page.stories.js +115 -115
  248. package/dist/pages/Page.stories.mjs +1 -1
  249. package/dist/pages/Publish.js +1 -1
  250. package/dist/pages/Publish.mjs +1 -1
  251. package/dist/pages/Publish.stories.js +1 -1
  252. package/dist/pages/Publish.stories.mjs +1 -1
  253. package/dist/pages/Website.js +1 -1
  254. package/dist/pages/Website.mjs +1 -1
  255. package/dist/pages/Website.stories.js +1 -1
  256. package/dist/pages/Website.stories.mjs +1 -1
  257. package/dist/payload-types.d.ts +233 -5
  258. package/dist/sections/AboutSection.mjs +1 -1
  259. package/dist/sections/AboutSection.stories.js +1 -1
  260. package/dist/sections/AboutSection.stories.mjs +1 -1
  261. package/dist/sections/BlogDetail.mjs +1 -1
  262. package/dist/sections/BlogDetail.stories.js +1 -1
  263. package/dist/sections/BlogDetail.stories.mjs +1 -1
  264. package/dist/sections/BlogListSection.mjs +1 -1
  265. package/dist/sections/BlogListSection.stories.js +1 -1
  266. package/dist/sections/BlogListSection.stories.mjs +1 -1
  267. package/dist/sections/ContactSection.mjs +1 -1
  268. package/dist/sections/ContactSection.stories.js +1 -1
  269. package/dist/sections/ContactSection.stories.mjs +1 -1
  270. package/dist/sections/ImageSection.mjs +1 -1
  271. package/dist/sections/ImageSection.stories.js +1 -1
  272. package/dist/sections/ImageSection.stories.mjs +1 -1
  273. package/dist/sections/MainPageSection.js +1 -1
  274. package/dist/sections/MainPageSection.mjs +1 -1
  275. package/dist/sections/PricingSection.mjs +1 -1
  276. package/dist/sections/PricingSection.stories.js +1 -1
  277. package/dist/sections/PricingSection.stories.mjs +1 -1
  278. package/dist/sections/ServiceSection.mjs +1 -1
  279. package/dist/sections/ServiceSection.stories.js +1 -1
  280. package/dist/sections/ServiceSection.stories.mjs +1 -1
  281. package/dist/sections/form/index.mjs +1 -1
  282. package/dist/sections/index.js +1 -1
  283. package/dist/sections/index.mjs +1 -1
  284. package/dist/styles/Colors.mjs +1 -1
  285. package/dist/styles/Colors.stories.mjs +1 -1
  286. package/dist/utils/getTableOfContents.js +1 -1
  287. package/dist/utils/getTableOfContents.mjs +1 -1
  288. package/dist/utils/index.js +1 -1
  289. package/dist/utils/index.mjs +1 -1
  290. package/package.json +1 -1
  291. package/dist/chunk-6K2R3OAD.mjs +0 -1
  292. package/dist/chunk-AN4F3ML3.mjs +0 -1
  293. package/dist/chunk-CWNEDSLD.mjs +0 -1
  294. package/dist/chunk-DN5B3CRB.mjs +0 -1
  295. package/dist/chunk-DSNHVMRZ.mjs +0 -4
  296. package/dist/chunk-KKPGN2TE.mjs +0 -4
  297. package/dist/chunk-S23ICHCQ.mjs +0 -4
@@ -1,5 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
- 'use client'
4
3
 
5
- "use strict";"use client";var It=Object.create;var Re=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)Re(e,o,{get:t[o],enumerable:!0})},Ke=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zt(t))!Ht.call(e,s)&&s!==o&&Re(e,s,{get:()=>t[s],enumerable:!(a=Et(t,s))||a.enumerable});return e};var B=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Ke(t||!e||!e.__esModule?Re(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Ke(Re({},"__esModule",{value:!0}),e);var Ao={};Vt(Ao,{CRMKanbanBoard:()=>To});module.exports=Ft(Ao);var Me=require("react");var we=B(require("react")),M=B(require("@radix-ui/react-dialog")),ot=require("lucide-react");var tt=require("clsx");var Be="-",Wt=e=>{let t=Gt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let r=c.split(Be);return r[0]===""&&r.length!==1&&r.shift(),Je(r,t)||Ut(c)},getConflictingClassGroupIds:(c,r)=>{let v=o[c]||[];return r&&a[c]?[...v,...a[c]]:v}}},Je=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),s=a?Je(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let i=e.join(Be);return(c=t.validators.find(({validator:r})=>r(i)))==null?void 0:c.classGroupId},$e=/^\[(.+)\]$/,Ut=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}},Gt=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,c])=>{ze(c,a,i,t)}),a},ze=(e,t,o,a)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?t:qe(t,s);i.classGroupId=o;return}if(typeof s=="function"){if(Ot(s)){ze(s(a),t,o,a);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([i,c])=>{ze(c,qe(t,i),o,a)})})},qe=(e,t)=>{let o=e;return t.split(Be).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ot=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let s=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,r])=>[t+c,r])):i);return[o,s]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,s=(i,c)=>{o.set(i,c),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=a.get(i))!==void 0)return s(i,c),c},set(i,c){o.has(i)?o.set(i,c):s(i,c)}}},Qe="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,s=t[0],i=t.length,c=r=>{let v=[],P=0,D=0,S;for(let y=0;y<r.length;y++){let k=r[y];if(P===0){if(k===s&&(a||r.slice(y,y+i)===t)){v.push(r.slice(D,y)),D=y+i;continue}if(k==="/"){S=y;continue}}k==="["?P++:k==="]"&&P--}let g=v.length===0?r:r.substring(D),b=g.startsWith(Qe),u=b?g.substring(1):g,x=S&&S>D?S-D:void 0;return{modifiers:v,hasImportantModifier:b,baseClassName:u,maybePostfixModifierPosition:x}};return o?r=>o({className:r,parseClassName:c}):c},$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=/\s+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s}=t,i=[],c=e.trim().split(Jt),r="";for(let v=c.length-1;v>=0;v-=1){let P=c[v],{modifiers:D,hasImportantModifier:S,baseClassName:g,maybePostfixModifierPosition:b}=o(P),u=!!b,x=a(u?g.substring(0,b):g);if(!x){if(!u){r=P+(r.length>0?" "+r:r);continue}if(x=a(g),!x){r=P+(r.length>0?" "+r:r);continue}u=!1}let y=$t(D).join(":"),k=S?y+Qe:y,L=k+x;if(i.includes(L))continue;i.push(L);let z=s(x,u);for(let F=0;F<z.length;++F){let O=z[F];i.push(k+O)}r=P+(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,s,i=c;function c(v){let P=t.reduce((D,S)=>S(D),e());return o=qt(P),a=o.cache.get,s=o.cache.set,i=r,r(v)}function r(v){let P=a(v);if(P)return P;let D=Qt(v,o);return s(v,D),D}return function(){return i(Xt.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ze=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\H+\/\H+$/,eo=new Set(["px","full","screen"]),to=/^(\H+(\.\H+)?)?(xs|sm|md|lg|xl)$/,oo=/\H+(%|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_)?-?((\H+)?\.?(\H+)[a-z]+|0)_-?((\H+)?\.?(\H+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>ue(e,"number",pe),xe=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),p=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=R("colors"),t=R("spacing"),o=R("blur"),a=R("brightness"),s=R("borderColor"),i=R("borderRadius"),c=R("borderSpacing"),r=R("borderWidth"),v=R("contrast"),P=R("grayscale"),D=R("hueRotate"),S=R("invert"),g=R("gap"),b=R("gradientColorStops"),u=R("gradientColorStopPositions"),x=R("inset"),y=R("margin"),k=R("opacity"),L=R("padding"),z=R("saturate"),F=R("scale"),O=R("sepia"),$=R("skew"),m=R("space"),w=R("translate"),G=()=>["auto","contain","none"],l=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",p,t],C=()=>[p,t],Ne=()=>["",K,q],Pe=()=>["auto",pe,p],Oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],De=()=>["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"],Ie=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",p],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[pe,p];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[K,q],blur:["none","",J,p],brightness:j(),borderColor:[e],borderRadius:["none","","full",J,p],borderSpacing:C(),borderWidth:Ne(),contrast:j(),grayscale:ye(),hueRotate:j(),invert:ye(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:N(),margin:N(),opacity:j(),padding:C(),saturate:j(),scale:j(),sepia:ye(),skew:j(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],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:[...Oe(),p]}],overflow:[{overflow:l()}],"overflow-x":[{"overflow-x":l()}],"overflow-y":[{"overflow-y":l()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xe,p]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",xe,p]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",xe,p]},p]}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[xe,p]},p]}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],st:[{st:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],H:[{H:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[m]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[m]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,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",Ee]}],"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",p]}],"line-clamp":[{"line-clamp":["none",pe,Ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K,q]}],"underline-offset":[{"underline-offset":["auto",K,p]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Oe(),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:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[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-s":[{"border-s":[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":[k]}],"border-style":[{border:[...De(),"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":[k]}],"divide-style":[{divide:De()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...De()]}],"outline-offset":[{"outline-offset":[K,p]}],"outline-w":[{outline:[K,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[K,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[k]}],"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,p]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[S]}],saturate:[{saturate:[z]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[xe,p]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],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","H-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-H":[{"scroll-H":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-st":[{"scroll-st":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[K,q,Ee]}],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","H","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-s","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-s":["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-s","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-s","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-H","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 H=require("react/jsx-runtime"),fe=M.Root,rt=M.Trigger,ho=M.Portal;var at=we.forwardRef(({className:e,...t},o)=>(0,H.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 Y=we.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(ho,{children:[(0,H.jsx)(at,{}),(0,H.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,H.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,H.jsx)(ot.H,{className:"h-4 w-4"}),(0,H.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Y.displayName=M.Content.displayName;var ee=({className:e,...t})=>(0,H.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ee.displayName="DialogHeader";var yo=({className:e,...t})=>(0,H.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});yo.displayName="DialogFooter";var te=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(M.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));te.displayName=M.Title.displayName;var xo=we.forwardRef(({className:e,...t},o)=>(0,H.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=B(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-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",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-accent"}}}),W=nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...s},i)=>(0,H.jsx)(e?it.Slot:"button",{className:f(Co({className:t,size:o,variant:a})),ref:i,...s}));W.displayName="Button";var ct=B(require("react"));var _=ct.forwardRef(({className:e,type:t,...o},a)=>(0,H.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=B(require("react")),He=B(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"),E=mt.forwardRef(({className:e,...t},o)=>(0,H.jsx)(He.Root,{ref:o,className:f(wo(),e),...t}));E.displayName=He.Root.displayName;var ft=B(require("react")),oe=ft.forwardRef(({className:e,...t},o)=>(0,H.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}));oe.displayName="Textarea";var h=B(require("@radix-ui/react-select")),Q=B(require("react")),ge=h.Root;var be=h.Value,ae=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.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,H.jsx)(h.Icon,{asChild:!0,children:(0,H.jsx)(ot.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ae.displayName=h.Trigger.displayName;var bt=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(ot.ChevronUp,{className:"h-4 w-4"})}));bt.displayName=h.ScrollUpButton.displayName;var vt=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(ot.ChevronDown,{className:"h-4 w-4"})}));vt.displayName=h.ScrollDownButton.displayName;var ie=Q.forwardRef(({children:e,className:t,position:o="popper",...a},s)=>(0,H.jsx)(h.Portal,{children:(0,H.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:s,...a,children:[(0,H.jsx)(bt,{}),(0,H.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,H.jsx)(vt,{})]})}));ie.displayName=h.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,H.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 se=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.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,H.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,H.jsx)(h.ItemIndicator,{children:(0,H.jsx)(ot.Check,{className:"h-4 w-4"})})}),(0,H.jsx)(h.ItemText,{children:e})]}));se.displayName=h.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=h.Separator.displayName;var Se=B(require("@radix-ui/react-checkbox")),yt=B(require("react")),ne=yt.forwardRef(({className:e,...t},o)=>(0,H.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,H.jsx)(Se.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,H.jsx)(ot.Check,{className:"h-4 w-4"})})}));ne.displayName=Se.Root.displayName;var Po=(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 Te({className:e,variant:t,...o}){return(0,H.jsx)("div",{className:f(Po({variant:t}),e),...o})}var Ve=B(require("react")),U=B(require("@radix-ui/react-scroll-area"));var ve=Ve.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(U.Root,{ref:a,className:f("relative overflow-hidden",e),...o,children:[(0,H.jsx)(U.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,H.jsx)(wt,{}),(0,H.jsx)(U.Corner,{})]}));ve.displayName=U.Root.displayName;var wt=Ve.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,H.jsx)(U.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,H.jsx)(U.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));wt.displayName=U.ScrollAreaScrollbar.displayName;function St({deal:e,users:t,customer:o,categories:a,onClose:s,onSave:i,onAddComment:c}){var O,$,m,w,G;let[r,v]=(0,Me.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[P,D]=(0,Me.useState)(""),[S,g]=(0,Me.useState)(!1),[b,u]=(0,Me.useState)(null);(0,Me.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let x=()=>{i(r),g(!1),u(null)},y=(l,N)=>{v(C=>({...C,[l]:N}))},k=l=>{let N=(r.categories||[]).includes(l)?(r.categories||[]).filter(C=>C!==l):[...r.categories||[],l];y("categories",N)},L=()=>{if(P.trim()){let l={text:P,timestamp:new Date().toISOString()};c(l),v(N=>({...N,comments:[...N.comments||[],l]})),D("")}},z=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"}},F=l=>t==null?void 0:t.find(N=>N.id===Number(l));return(0,H.jsx)(fe,{open:!0,children:(0,H.jsxs)(Y,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,H.jsxs)(ee,{className:"flex flex-row items-center justify-between",children:[(0,H.jsx)(te,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,H.jsxs)("div",{className:"flex space-x-2",children:[(0,H.jsx)(W,{variant:"outline",onClick:s,children:"Close"}),(0,H.jsxs)(W,{onClick:x,disabled:!S,children:[(0,H.jsx)(ot.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,H.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,H.jsx)("div",{className:"grid gap-2",children:b==="value"?(0,H.jsx)(_,{type:"number",value:r.value,onChange:l=>y("value",Number(l.target.value)),onBlur:()=>u(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,H.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("value"),children:["\xA3",(O=r.value)==null?void 0:O.toLocaleString()]})}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),b==="assignee"?(0,H.jsxs)(ge,{value:((m=($=r==null?void 0:r.assignee)==null?void 0:$.id)==null?void 0:m.toString())||"",onValueChange:l=>y("assignee",F(l)),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ie,{children:t&&t.map(l=>{var N;return(0,H.jsx)(se,{value:((N=l==null?void 0:l.id)==null?void 0:N.toString())||"",children:l.name},l.id)})})]}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("assignee"),children:[(0,H.jsx)(ot.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:r.assignee.name})]})]}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),b==="closureDate"?(0,H.jsx)(_,{type:"date",value:(G=(w=r.closureDate)==null?void 0:w.split("H")[0])!=null?G:"",onChange:l=>y("closureDate",l.target.value),onBlur:()=>u(null),autoFocus:!0}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("closureDate"),children:[(0,H.jsx)(ot.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:r.closureDate?new Date(r.closureDate).toLocaleDateString("en-GB"):"N/H"})]})]})]}),(0,H.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Description"}),b==="description"?(0,H.jsx)(oe,{value:r.description||"",onChange:l=>y("description",l.target.value),onBlur:()=>u(null),className:"min-h-[100px]",autoFocus:!0}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>u("description"),children:r.description})]})}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 st-2 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Status"}),b==="status"?(0,H.jsxs)(ge,{value:r.status,onValueChange:l=>{y("status",l),u(null)},children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select status"})}),(0,H.jsx)(ie,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,H.jsx)(se,{value:l,children:l},l))})]}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("status"),children:r.status})]}),(0,H.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Categories"}),b==="categories"?(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>{var N,C;return(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:((N=l.id)==null?void 0:N.toString())||"",checked:(r.categories||[]).some(Ne=>Ne.id===l.id),onCheckedChange:()=>l.id!==void 0&&k(l)}),(0,H.jsx)("label",{htmlFor:((C=l.id)!=null?C:"").toString(),className:`text-sm font-medium ${z(l.type||"sector")} px-2 py-1 rounded`,children:l.name})]},l.id)})}):(0,H.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("categories"),children:r.categories&&r.categories.map(l=>{console.log("cat",l);let N=l;return N?(0,H.jsx)(Te,{variant:"secondary",className:z(N.type||"sector"),children:N.name},N.id):null})})]})]}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 st-4 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,H.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,H.jsx)("div",{className:"space-y-2",children:r.comments&&r.comments.slice().sort((l,N)=>new Date(N.timestamp||"").getTime()-new Date(l.timestamp||"").getTime()).map(l=>{var N;return(0,H.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,H.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,H.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(N=l==null?void 0:l.author)==null?void 0:N.name," - ",new Date(l.timestamp||"").toLocaleString()]})]},l.id)})})}),(0,H.jsxs)("div",{className:"flex mt-2",children:[(0,H.jsx)(_,{value:P,onChange:l=>D(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,H.jsxs)(W,{onClick:L,className:"ml-2",children:[(0,H.jsx)(ot.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,H.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt||"").toLocaleString()]})]})]})]})})}var ce=B(require("react"));var Fe=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fe.displayName="Card";var We=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...t}));We.displayName="CardHeader";var Ue=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));Ue.displayName="CardTitle";var Do=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Do.displayName="CardDescription";var Ge=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("p-6 st-0",e),...t}));Ge.displayName="CardContent";var Ro=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("flex items-center p-6 st-0",e),...t}));Ro.displayName="CardFooter";function Nt({deal:e,customer:t,categories:o,onClick:a}){let s=o.find(i=>{var c;return i.type==="proposition"&&((c=e.categories)!=null?c:[]).includes(i.id)});return(0,H.jsxs)(Fe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,H.jsxs)(We,{className:"pb-2",children:[(0,H.jsx)("div",{className:"flex justify-between items-center",children:(0,H.jsx)(Ue,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,H.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,H.jsxs)(Ge,{children:[(0,H.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,H.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,H.jsx)(ot.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,H.jsx)("span",{children:e.assignee.name})]}),(0,H.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,H.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,H.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,H.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,H.jsx)(ot.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,H.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,H.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,H.jsx)(Te,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var Le=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Dt({onSubmit:e}){var s;let[t,o]=(0,Me.useState)({name:"",intro:"",active:!0});return(0,H.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,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(E,{htmlFor:"customerName",children:"Customer Name"}),(0,H.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(E,{htmlFor:"customerIntro",children:"Intro"}),(0,H.jsx)(oe,{id:"customerIntro",value:(s=t.intro)!=null?s:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,H.jsx)(E,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,H.jsx)(W,{type:"submit",className:"w-full",children:"Add Customer"})]})}function kt({customers:e,users:t,categories:o,onSubmit:a,initialDeal:s,onAddCustomer:i,onClose:c}){var z,F,O,$;let[r,v]=(0,Me.useState)(s||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("H")[0],closureDate:"",comments:[],description:""}),[P,D]=(0,Me.useState)(!1),[S,g]=(0,Me.useState)({});(0,Me.useEffect)(()=>{s&&v(s)},[s]);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"),g(m),Object.keys(m).length===0},u=m=>{m.preventDefault(),b()&&(a({...r}),v({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),g({}),c==null||c())},x=m=>{v(w=>({...w,categories:(w.categories||[]).includes(m)?(w.categories||[]).filter(G=>G!==m):[...w.categories||[],m]}))},y=m=>{v({...r,customer:m}),D(!1),i(m)},k=m=>t==null?void 0:t.find(w=>w.id===Number(m)),L=m=>e==null?void 0:e.find(w=>w.id===Number(m));return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("form",{onSubmit:u,className:"space-y-6",children:[(0,H.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,H.jsxs)("div",{className:"space-y-6 px-4",children:[(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"customer",children:"Customer"}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsxs)(ge,{value:(F=(z=r.customer)==null?void 0:z.id)==null?void 0:F.toString(),onValueChange:m=>v({...r,customer:L(m)}),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select customer"})}),(0,H.jsx)(ie,{children:e.map(m=>{var w;return(0,H.jsx)(se,{value:((w=m.id)==null?void 0:w.toString())||"",children:m.name},m.id)})})]}),(0,H.jsx)(W,{variant:"outline",size:"icon",onClick:()=>D(!0),children:(0,H.jsx)(ot.PlusIcon,{className:"w-5 h-5"})})]}),S.customerId&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.customerId})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"value",children:"Value"}),(0,H.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>v({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),S.value&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.value})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"assignee",children:"Assignee"}),(0,H.jsxs)(ge,{value:($=(O=r.assignee)==null?void 0:O.id)==null?void 0:$.toString(),onValueChange:m=>v({...r,assignee:k(m)}),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ie,{children:t&&t.map(m=>{var w;return(0,H.jsx)(se,{value:((w=m.id)==null?void 0:w.toString())||"",children:m.name},m.id)})})]}),S.assignee&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.assignee})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"description",children:"Description"}),(0,H.jsx)(oe,{id:"description",value:r.description||"",onChange:m=>v({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{children:"Categories"}),(0,H.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(w=>w.type===m).map(w=>{var G;return(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:w.id.toString(),checked:(G=r.categories)==null?void 0:G.includes(w.id),onCheckedChange:()=>x(w)}),(0,H.jsx)("label",{htmlFor:w.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:w.name})]},w.id)})})]},m))})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"closureDate",children:"Closure Date"}),(0,H.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate||"",onChange:m=>v({...r,closureDate:m.target.value})}),S.closureDate&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.closureDate})]})]})}),(0,H.jsx)(W,{type:"submit",className:"w-full",children:s?"Update Deal":"Add Deal"})]}),(0,H.jsx)(fe,{open:P,onOpenChange:D,children:(0,H.jsxs)(Y,{children:[(0,H.jsx)(ee,{children:(0,H.jsx)(te,{children:"Add New Customer"})}),(0,H.jsx)(Dt,{onSubmit:y})]})})]})}function Lt({status:e,deals:t,users:o,customers:a,categories:s,onDealClick:i,calculateColumnValue:c,calculateWeightedValue:r,addNewDeal:v,onAddCustomer:P}){let[D,S]=(0,Me.useState)(!1);return(0,H.jsxs)("div",{className:"flex flex-col w-80",children:[(0,H.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),v&&(0,H.jsxs)(fe,{open:D,onOpenChange:S,children:[(0,H.jsx)(rt,{asChild:!0,children:(0,H.jsxs)(W,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,H.jsx)(ot.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,H.jsxs)(Y,{children:[(0,H.jsx)(ee,{children:(0,H.jsx)(te,{children:"Add New Deal"})}),(0,H.jsx)(kt,{customers:a,users:o,categories:s,onSubmit:v,onAddCustomer:P,onClose:()=>S(!1)})]})]}),(0,H.jsx)(Le.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,H.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,u)=>(0,H.jsx)(Le.Draggable,{draggableId:b.id.toString(),index:b.id,children:x=>(0,H.jsx)("div",{ref:x.innerRef,...x.draggableProps,...x.dragHandleProps,children:(0,H.jsx)(Nt,{deal:b,customer:b.customer,categories:s,onClick:()=>i(b)})})},b.id.toString())),g.placeholder]})}),(0,H.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,H.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,H.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,H.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,H.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:s}){var S;let[i,c]=(0,Me.useState)(null),r=g=>{var b;return((b=e.deals)!=null?b:[]).filter(u=>u.status===g)},v=g=>g.reduce((b,u)=>b+(u.value||0),0),P=(g,b)=>{let u={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((x,y)=>x+(y.value||0)*u[b],0)},D=(0,Me.useCallback)(g=>{var z;let{source:b,destination:u}=g;if(!u||b.droppableId===u.droppableId&&b.index===u.index)return;let x=b.droppableId,y=u.droppableId;console.log("Moving from ",x,"to",y);let k=[...(z=e.deals)!=null?z:[]],[L]=k.splice(b.index,1);L.status=y,k.splice(u.index,0,L),o(L)},[o]);return(0,H.jsx)(Le.DragDropContext,{onDragEnd:D,children:(0,H.jsxs)("div",{className:"p-4",children:[(0,H.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:ko.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var u,x;let b=r(g);return(0,H.jsx)(Lt,{status:g,deals:b,customers:(u=e.customers)!=null?u:[],users:e.users,categories:(x=e.categories)!=null?x:[],onDealClick:c,calculateColumnValue:v,calculateWeightedValue:P,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:s},g)})}),i&&(0,H.jsx)(St,{deal:i,users:e.users,customer:i.customer,categories:(S=e.categories)!=null?S:[],onClose:()=>c(null),onSave:o,onAddComment:g=>a(i.id.toString(),g)})]})})}0&&(module.exports={CRMKanbanBoard});
4
+ "use strict";"use client";var It=Object.create;var Re=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)Re(e,o,{get:t[o],enumerable:!0})},Ke=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zt(t))!Ht.call(e,s)&&s!==o&&Re(e,s,{get:()=>t[s],enumerable:!(a=Et(t,s))||a.enumerable});return e};var B=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Ke(t||!e||!e.__esModule?Re(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Ke(Re({},"__esModule",{value:!0}),e);var Ao={};Vt(Ao,{CRMKanbanBoard:()=>To});module.exports=Ft(Ao);var Me=require("react");var we=B(require("react")),M=B(require("@radix-ui/react-dialog")),ot=require("lucide-react");var tt=require("clsx");var Be="-",Wt=e=>{let t=Gt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let r=c.split(Be);return r[0]===""&&r.length!==1&&r.shift(),Je(r,t)||Ut(c)},getConflictingClassGroupIds:(c,r)=>{let v=o[c]||[];return r&&a[c]?[...v,...a[c]]:v}}},Je=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),s=a?Je(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let i=e.join(Be);return(c=t.validators.find(({validator:r})=>r(i)))==null?void 0:c.classGroupId},$e=/^\[(.+)\]$/,Ut=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}},Gt=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,c])=>{ze(c,a,i,t)}),a},ze=(e,t,o,a)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?t:qe(t,s);i.classGroupId=o;return}if(typeof s=="function"){if(Ot(s)){ze(s(a),t,o,a);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([i,c])=>{ze(c,qe(t,i),o,a)})})},qe=(e,t)=>{let o=e;return t.split(Be).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ot=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let s=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,r])=>[t+c,r])):i);return[o,s]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,s=(i,c)=>{o.set(i,c),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=a.get(i))!==void 0)return s(i,c),c},set(i,c){o.has(i)?o.set(i,c):s(i,c)}}},Qe="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,s=t[0],i=t.length,c=r=>{let v=[],P=0,D=0,S;for(let y=0;y<r.length;y++){let k=r[y];if(P===0){if(k===s&&(a||r.slice(y,y+i)===t)){v.push(r.slice(D,y)),D=y+i;continue}if(k==="/"){S=y;continue}}k==="["?P++:k==="]"&&P--}let g=v.length===0?r:r.substring(D),b=g.startsWith(Qe),u=b?g.substring(1):g,x=S&&S>D?S-D:void 0;return{modifiers:v,hasImportantModifier:b,baseClassName:u,maybePostfixModifierPosition:x}};return o?r=>o({className:r,parseClassName:c}):c},$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=/\s+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s}=t,i=[],c=e.trim().split(Jt),r="";for(let v=c.length-1;v>=0;v-=1){let P=c[v],{modifiers:D,hasImportantModifier:S,baseClassName:g,maybePostfixModifierPosition:b}=o(P),u=!!b,x=a(u?g.substring(0,b):g);if(!x){if(!u){r=P+(r.length>0?" "+r:r);continue}if(x=a(g),!x){r=P+(r.length>0?" "+r:r);continue}u=!1}let y=$t(D).join(":"),k=S?y+Qe:y,L=k+x;if(i.includes(L))continue;i.push(L);let z=s(x,u);for(let F=0;F<z.length;++F){let O=z[F];i.push(k+O)}r=P+(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,s,i=c;function c(v){let P=t.reduce((D,S)=>S(D),e());return o=qt(P),a=o.cache.get,s=o.cache.set,i=r,r(v)}function r(v){let P=a(v);if(P)return P;let D=Qt(v,o);return s(v,D),D}return function(){return i(Xt.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ze=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\H+\/\H+$/,eo=new Set(["px","full","screen"]),to=/^(\H+(\.\H+)?)?(xs|sm|md|lg|xl)$/,oo=/\H+(%|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_)?-?((\H+)?\.?(\H+)[a-z]+|0)_-?((\H+)?\.?(\H+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>ue(e,"number",pe),xe=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),p=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=R("colors"),t=R("spacing"),o=R("blur"),a=R("brightness"),s=R("borderColor"),i=R("borderRadius"),c=R("borderSpacing"),r=R("borderWidth"),v=R("contrast"),P=R("grayscale"),D=R("hueRotate"),S=R("invert"),g=R("gap"),b=R("gradientColorStops"),u=R("gradientColorStopPositions"),x=R("inset"),y=R("margin"),k=R("opacity"),L=R("padding"),z=R("saturate"),F=R("scale"),O=R("sepia"),$=R("skew"),m=R("space"),w=R("translate"),G=()=>["auto","contain","none"],l=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",p,t],C=()=>[p,t],Ne=()=>["",K,q],Pe=()=>["auto",pe,p],Oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],De=()=>["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"],Ie=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",p],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[pe,p];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[K,q],blur:["none","",J,p],brightness:j(),borderColor:[e],borderRadius:["none","","full",J,p],borderSpacing:C(),borderWidth:Ne(),contrast:j(),grayscale:ye(),hueRotate:j(),invert:ye(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:N(),margin:N(),opacity:j(),padding:C(),saturate:j(),scale:j(),sepia:ye(),skew:j(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],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:[...Oe(),p]}],overflow:[{overflow:l()}],"overflow-x":[{"overflow-x":l()}],"overflow-y":[{"overflow-y":l()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xe,p]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",xe,p]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",xe,p]},p]}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[xe,p]},p]}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],st:[{st:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],H:[{H:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[m]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[m]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,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",Ee]}],"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",p]}],"line-clamp":[{"line-clamp":["none",pe,Ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K,q]}],"underline-offset":[{"underline-offset":["auto",K,p]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Oe(),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:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[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-s":[{"border-s":[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":[k]}],"border-style":[{border:[...De(),"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":[k]}],"divide-style":[{divide:De()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...De()]}],"outline-offset":[{"outline-offset":[K,p]}],"outline-w":[{outline:[K,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[K,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[k]}],"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,p]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[S]}],saturate:[{saturate:[z]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[xe,p]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],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","H-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-H":[{"scroll-H":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-st":[{"scroll-st":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[K,q,Ee]}],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","H","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-s","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-s":["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-s","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-s","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-H","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 H=require("react/jsx-runtime"),fe=M.Root,rt=M.Trigger,ho=M.Portal;var at=we.forwardRef(({className:e,...t},o)=>(0,H.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 Y=we.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(ho,{children:[(0,H.jsx)(at,{}),(0,H.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,H.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,H.jsx)(ot.H,{className:"h-4 w-4"}),(0,H.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Y.displayName=M.Content.displayName;var ee=({className:e,...t})=>(0,H.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ee.displayName="DialogHeader";var yo=({className:e,...t})=>(0,H.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});yo.displayName="DialogFooter";var te=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(M.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));te.displayName=M.Title.displayName;var xo=we.forwardRef(({className:e,...t},o)=>(0,H.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=B(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-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",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-accent"}}}),W=nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...s},i)=>(0,H.jsx)(e?it.Slot:"button",{className:f(Co({className:t,size:o,variant:a})),ref:i,...s}));W.displayName="Button";var ct=B(require("react"));var _=ct.forwardRef(({className:e,type:t,...o},a)=>(0,H.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=B(require("react")),He=B(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"),E=mt.forwardRef(({className:e,...t},o)=>(0,H.jsx)(He.Root,{ref:o,className:f(wo(),e),...t}));E.displayName=He.Root.displayName;var ft=B(require("react")),oe=ft.forwardRef(({className:e,...t},o)=>(0,H.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}));oe.displayName="Textarea";var h=B(require("@radix-ui/react-select")),Q=B(require("react")),ge=h.Root;var be=h.Value,ae=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.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,H.jsx)(h.Icon,{asChild:!0,children:(0,H.jsx)(ot.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ae.displayName=h.Trigger.displayName;var bt=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(ot.ChevronUp,{className:"h-4 w-4"})}));bt.displayName=h.ScrollUpButton.displayName;var vt=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(ot.ChevronDown,{className:"h-4 w-4"})}));vt.displayName=h.ScrollDownButton.displayName;var ie=Q.forwardRef(({children:e,className:t,position:o="popper",...a},s)=>(0,H.jsx)(h.Portal,{children:(0,H.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:s,...a,children:[(0,H.jsx)(bt,{}),(0,H.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,H.jsx)(vt,{})]})}));ie.displayName=h.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,H.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 se=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.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,H.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,H.jsx)(h.ItemIndicator,{children:(0,H.jsx)(ot.Check,{className:"h-4 w-4"})})}),(0,H.jsx)(h.ItemText,{children:e})]}));se.displayName=h.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=h.Separator.displayName;var Se=B(require("@radix-ui/react-checkbox")),yt=B(require("react")),ne=yt.forwardRef(({className:e,...t},o)=>(0,H.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,H.jsx)(Se.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,H.jsx)(ot.Check,{className:"h-4 w-4"})})}));ne.displayName=Se.Root.displayName;var Po=(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 Te({className:e,variant:t,...o}){return(0,H.jsx)("div",{className:f(Po({variant:t}),e),...o})}var Ve=B(require("react")),U=B(require("@radix-ui/react-scroll-area"));var ve=Ve.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(U.Root,{ref:a,className:f("relative overflow-hidden",e),...o,children:[(0,H.jsx)(U.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,H.jsx)(wt,{}),(0,H.jsx)(U.Corner,{})]}));ve.displayName=U.Root.displayName;var wt=Ve.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,H.jsx)(U.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,H.jsx)(U.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));wt.displayName=U.ScrollAreaScrollbar.displayName;function St({deal:e,users:t,customer:o,categories:a,onClose:s,onSave:i,onAddComment:c}){var O,$,m,w,G;let[r,v]=(0,Me.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[P,D]=(0,Me.useState)(""),[S,g]=(0,Me.useState)(!1),[b,u]=(0,Me.useState)(null);(0,Me.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let x=()=>{i(r),g(!1),u(null)},y=(l,N)=>{v(C=>({...C,[l]:N}))},k=l=>{let N=(r.categories||[]).includes(l)?(r.categories||[]).filter(C=>C!==l):[...r.categories||[],l];y("categories",N)},L=()=>{if(P.trim()){let l={text:P,timestamp:new Date().toISOString()};c(l),v(N=>({...N,comments:[...N.comments||[],l]})),D("")}},z=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"}},F=l=>t==null?void 0:t.find(N=>N.id===Number(l));return(0,H.jsx)(fe,{open:!0,children:(0,H.jsxs)(Y,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,H.jsxs)(ee,{className:"flex flex-row items-center justify-between",children:[(0,H.jsx)(te,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,H.jsxs)("div",{className:"flex space-x-2",children:[(0,H.jsx)(W,{variant:"outline",onClick:s,children:"Close"}),(0,H.jsxs)(W,{onClick:x,disabled:!S,children:[(0,H.jsx)(ot.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,H.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,H.jsx)("div",{className:"grid gap-2",children:b==="value"?(0,H.jsx)(_,{type:"number",value:r.value,onChange:l=>y("value",Number(l.target.value)),onBlur:()=>u(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,H.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("value"),children:["\xA3",(O=r.value)==null?void 0:O.toLocaleString()]})}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),b==="assignee"?(0,H.jsxs)(ge,{value:((m=($=r==null?void 0:r.assignee)==null?void 0:$.id)==null?void 0:m.toString())||"",onValueChange:l=>y("assignee",F(l)),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ie,{children:t&&t.map(l=>{var N;return(0,H.jsx)(se,{value:((N=l==null?void 0:l.id)==null?void 0:N.toString())||"",children:l.name},l.id)})})]}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("assignee"),children:[(0,H.jsx)(ot.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:r.assignee.name})]})]}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),b==="closureDate"?(0,H.jsx)(_,{type:"date",value:(G=(w=r.closureDate)==null?void 0:w.split("H")[0])!=null?G:"",onChange:l=>y("closureDate",l.target.value),onBlur:()=>u(null),autoFocus:!0}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("closureDate"),children:[(0,H.jsx)(ot.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:r.closureDate?new Date(r.closureDate).toLocaleDateString("en-GB"):"N/H"})]})]})]}),(0,H.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Description"}),b==="description"?(0,H.jsx)(oe,{value:r.description||"",onChange:l=>y("description",l.target.value),onBlur:()=>u(null),className:"min-h-[100px]",autoFocus:!0}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>u("description"),children:r.description})]})}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 st-2 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Status"}),b==="status"?(0,H.jsxs)(ge,{value:r.status,onValueChange:l=>{y("status",l),u(null)},children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select status"})}),(0,H.jsx)(ie,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,H.jsx)(se,{value:l,children:l},l))})]}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("status"),children:r.status})]}),(0,H.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Categories"}),b==="categories"?(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>{var N,C;return(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:((N=l.id)==null?void 0:N.toString())||"",checked:(r.categories||[]).some(Ne=>Ne.id===l.id),onCheckedChange:()=>l.id!==void 0&&k(l)}),(0,H.jsx)("label",{htmlFor:((C=l.id)!=null?C:"").toString(),className:`text-sm font-medium ${z(l.type||"sector")} px-2 py-1 rounded`,children:l.name})]},l.id)})}):(0,H.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("categories"),children:r.categories&&r.categories.map(l=>{console.log("cat",l);let N=l;return N?(0,H.jsx)(Te,{variant:"secondary",className:z(N.type||"sector"),children:N.name},N.id):null})})]})]}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 st-4 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,H.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,H.jsx)("div",{className:"space-y-2",children:r.comments&&r.comments.slice().sort((l,N)=>new Date(N.timestamp||"").getTime()-new Date(l.timestamp||"").getTime()).map(l=>{var N;return(0,H.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,H.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,H.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(N=l==null?void 0:l.author)==null?void 0:N.name," - ",new Date(l.timestamp||"").toLocaleString()]})]},l.id)})})}),(0,H.jsxs)("div",{className:"flex mt-2",children:[(0,H.jsx)(_,{value:P,onChange:l=>D(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,H.jsxs)(W,{onClick:L,className:"ml-2",children:[(0,H.jsx)(ot.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,H.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt||"").toLocaleString()]})]})]})]})})}var ce=B(require("react"));var Fe=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fe.displayName="Card";var We=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...t}));We.displayName="CardHeader";var Ue=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));Ue.displayName="CardTitle";var Do=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Do.displayName="CardDescription";var Ge=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("p-6 st-0",e),...t}));Ge.displayName="CardContent";var Ro=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("flex items-center p-6 st-0",e),...t}));Ro.displayName="CardFooter";function Nt({deal:e,customer:t,categories:o,onClick:a}){let s=o.find(i=>{var c;return i.type==="proposition"&&((c=e.categories)!=null?c:[]).includes(i.id)});return(0,H.jsxs)(Fe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,H.jsxs)(We,{className:"pb-2",children:[(0,H.jsx)("div",{className:"flex justify-between items-center",children:(0,H.jsx)(Ue,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,H.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,H.jsxs)(Ge,{children:[(0,H.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,H.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,H.jsx)(ot.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,H.jsx)("span",{children:e.assignee.name})]}),(0,H.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,H.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,H.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,H.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,H.jsx)(ot.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,H.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,H.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,H.jsx)(Te,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var Le=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Dt({onSubmit:e}){var s;let[t,o]=(0,Me.useState)({name:"",intro:"",active:!0});return(0,H.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,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(E,{htmlFor:"customerName",children:"Customer Name"}),(0,H.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(E,{htmlFor:"customerIntro",children:"Intro"}),(0,H.jsx)(oe,{id:"customerIntro",value:(s=t.intro)!=null?s:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,H.jsx)(E,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,H.jsx)(W,{type:"submit",className:"w-full",children:"Add Customer"})]})}function kt({customers:e,users:t,categories:o,onSubmit:a,initialDeal:s,onAddCustomer:i,onClose:c}){var z,F,O,$;let[r,v]=(0,Me.useState)(s||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("H")[0],closureDate:"",comments:[],description:""}),[P,D]=(0,Me.useState)(!1),[S,g]=(0,Me.useState)({});(0,Me.useEffect)(()=>{s&&v(s)},[s]);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"),g(m),Object.keys(m).length===0},u=m=>{m.preventDefault(),b()&&(a({...r}),v({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),g({}),c==null||c())},x=m=>{v(w=>({...w,categories:(w.categories||[]).includes(m)?(w.categories||[]).filter(G=>G!==m):[...w.categories||[],m]}))},y=m=>{v({...r,customer:m}),D(!1),i(m)},k=m=>t==null?void 0:t.find(w=>w.id===Number(m)),L=m=>e==null?void 0:e.find(w=>w.id===Number(m));return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("form",{onSubmit:u,className:"space-y-6",children:[(0,H.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,H.jsxs)("div",{className:"space-y-6 px-4",children:[(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"customer",children:"Customer"}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsxs)(ge,{value:(F=(z=r.customer)==null?void 0:z.id)==null?void 0:F.toString(),onValueChange:m=>v({...r,customer:L(m)}),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select customer"})}),(0,H.jsx)(ie,{children:e.map(m=>{var w;return(0,H.jsx)(se,{value:((w=m.id)==null?void 0:w.toString())||"",children:m.name},m.id)})})]}),(0,H.jsx)(W,{variant:"outline",size:"icon",onClick:()=>D(!0),children:(0,H.jsx)(ot.PlusIcon,{className:"w-5 h-5"})})]}),S.customerId&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.customerId})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"value",children:"Value"}),(0,H.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>v({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),S.value&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.value})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"assignee",children:"Assignee"}),(0,H.jsxs)(ge,{value:($=(O=r.assignee)==null?void 0:O.id)==null?void 0:$.toString(),onValueChange:m=>v({...r,assignee:k(m)}),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ie,{children:t&&t.map(m=>{var w;return(0,H.jsx)(se,{value:((w=m.id)==null?void 0:w.toString())||"",children:m.name},m.id)})})]}),S.assignee&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.assignee})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"description",children:"Description"}),(0,H.jsx)(oe,{id:"description",value:r.description||"",onChange:m=>v({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{children:"Categories"}),(0,H.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(w=>w.type===m).map(w=>{var G;return(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:w.id.toString(),checked:(G=r.categories)==null?void 0:G.includes(w.id),onCheckedChange:()=>x(w)}),(0,H.jsx)("label",{htmlFor:w.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:w.name})]},w.id)})})]},m))})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"closureDate",children:"Closure Date"}),(0,H.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate||"",onChange:m=>v({...r,closureDate:m.target.value})}),S.closureDate&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.closureDate})]})]})}),(0,H.jsx)(W,{type:"submit",className:"w-full",children:s?"Update Deal":"Add Deal"})]}),(0,H.jsx)(fe,{open:P,onOpenChange:D,children:(0,H.jsxs)(Y,{children:[(0,H.jsx)(ee,{children:(0,H.jsx)(te,{children:"Add New Customer"})}),(0,H.jsx)(Dt,{onSubmit:y})]})})]})}function Lt({status:e,deals:t,users:o,customers:a,categories:s,onDealClick:i,calculateColumnValue:c,calculateWeightedValue:r,addNewDeal:v,onAddCustomer:P}){let[D,S]=(0,Me.useState)(!1);return(0,H.jsxs)("div",{className:"flex flex-col w-80",children:[(0,H.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),v&&(0,H.jsxs)(fe,{open:D,onOpenChange:S,children:[(0,H.jsx)(rt,{asChild:!0,children:(0,H.jsxs)(W,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,H.jsx)(ot.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,H.jsxs)(Y,{children:[(0,H.jsx)(ee,{children:(0,H.jsx)(te,{children:"Add New Deal"})}),(0,H.jsx)(kt,{customers:a,users:o,categories:s,onSubmit:v,onAddCustomer:P,onClose:()=>S(!1)})]})]}),(0,H.jsx)(Le.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,H.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,u)=>(0,H.jsx)(Le.Draggable,{draggableId:b.id.toString(),index:b.id,children:x=>(0,H.jsx)("div",{ref:x.innerRef,...x.draggableProps,...x.dragHandleProps,children:(0,H.jsx)(Nt,{deal:b,customer:b.customer,categories:s,onClick:()=>i(b)})})},b.id.toString())),g.placeholder]})}),(0,H.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,H.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,H.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,H.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,H.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:s}){var S;let[i,c]=(0,Me.useState)(null),r=g=>{var b;return((b=e.deals)!=null?b:[]).filter(u=>u.status===g)},v=g=>g.reduce((b,u)=>b+(u.value||0),0),P=(g,b)=>{let u={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((x,y)=>x+(y.value||0)*u[b],0)},D=(0,Me.useCallback)(g=>{var z;let{source:b,destination:u}=g;if(!u||b.droppableId===u.droppableId&&b.index===u.index)return;let x=b.droppableId,y=u.droppableId;console.log("Moving from ",x,"to",y);let k=[...(z=e.deals)!=null?z:[]],[L]=k.splice(b.index,1);L.status=y,k.splice(u.index,0,L),o(L)},[o]);return(0,H.jsx)(Le.DragDropContext,{onDragEnd:D,children:(0,H.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,H.jsx)("div",{className:"flex space-x-4 pb-4",children:ko.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var u,x;let b=r(g);return(0,H.jsx)(Lt,{status:g,deals:b,customers:(u=e.customers)!=null?u:[],users:e.users,categories:(x=e.categories)!=null?x:[],onDealClick:c,calculateColumnValue:v,calculateWeightedValue:P,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:s},g)})}),i&&(0,H.jsx)(St,{deal:i,users:e.users,customer:i.customer,categories:(S=e.categories)!=null?S:[],onClose:()=>c(null),onSave:o,onAddComment:g=>a(i.id.toString(),g)})]})})}0&&(module.exports={CRMKanbanBoard});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-KKPGN2TE.mjs";import"../../chunk-YNC77MO4.mjs";import"../../chunk-TTN4NUDL.mjs";import"../../chunk-OWBJTXZL.mjs";import"../../chunk-BRYZOZKY.mjs";import"../../chunk-FBUZ37DL.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-BDX257W2.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-Y3L5THWA.mjs";import"../../chunk-YNC77MO4.mjs";import"../../chunk-TTN4NUDL.mjs";import"../../chunk-OWBJTXZL.mjs";import"../../chunk-BRYZOZKY.mjs";import"../../chunk-FBUZ37DL.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-BDX257W2.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-NSBNDXRL.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CRMKanbanBoard};