cortex-react-components 1.63.0 → 1.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-2IJK3AE7.mjs → chunk-22SIVBWN.mjs} +1 -1
- package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
- package/dist/{chunk-7U6VVPQK.mjs → chunk-3HDDBU3J.mjs} +1 -1
- package/dist/{chunk-4FVKNM6C.mjs → chunk-4XO4HI55.mjs} +1 -1
- package/dist/{chunk-4GL57G4E.mjs → chunk-5J244QX4.mjs} +1 -1
- package/dist/{chunk-WI6JBSNW.mjs → chunk-5LF662B4.mjs} +1 -1
- package/dist/chunk-666KIWPS.mjs +1 -0
- package/dist/{chunk-NX6L3JEA.mjs → chunk-6BZPTAOQ.mjs} +1 -1
- package/dist/chunk-6NZJ2VXQ.mjs +1 -0
- package/dist/chunk-6U663VXT.mjs +1 -0
- package/dist/{chunk-Z2U42GC3.mjs → chunk-6XGUOJCN.mjs} +1 -1
- package/dist/{chunk-SKQYQ4SD.mjs → chunk-737CTHXW.mjs} +1 -1
- package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
- package/dist/{chunk-I3HJJ3O6.mjs → chunk-B7VQUUH3.mjs} +1 -1
- package/dist/{chunk-YZIXPIYP.mjs → chunk-CXZGSPKM.mjs} +1 -1
- package/dist/{chunk-PBRC3UOA.mjs → chunk-DAJNZDN6.mjs} +1 -1
- package/dist/{chunk-3PVDUJNF.mjs → chunk-DIAK5C43.mjs} +1 -1
- package/dist/{chunk-6HVZ5G3G.mjs → chunk-ELPMUABW.mjs} +1 -1
- package/dist/{chunk-GZP2BSIJ.mjs → chunk-ERUB6LU6.mjs} +1 -1
- package/dist/{chunk-WTQ7QZRC.mjs → chunk-F2D7YJEV.mjs} +1 -1
- package/dist/chunk-FFESN4FM.mjs +1 -0
- package/dist/chunk-G72SIYN7.mjs +4 -0
- package/dist/{chunk-CYEI7ZEM.mjs → chunk-HQTSD5A3.mjs} +1 -1
- package/dist/{chunk-PJ7KGG2L.mjs → chunk-ISYJGX2I.mjs} +1 -1
- package/dist/chunk-K44ECXTN.mjs +1 -0
- package/dist/{chunk-SX5U74MW.mjs → chunk-KETV2XVN.mjs} +1 -1
- package/dist/chunk-L45A6K4C.mjs +1 -0
- package/dist/{chunk-AU5HS6FK.mjs → chunk-MDEYJGAN.mjs} +1 -1
- package/dist/chunk-MEWCJ4MA.mjs +1 -0
- package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
- package/dist/{chunk-6XMDC6MI.mjs → chunk-MUZO74UP.mjs} +1 -1
- package/dist/chunk-OIQ6GXBY.mjs +4 -0
- package/dist/{chunk-NXV22G4T.mjs → chunk-OT2LLDV2.mjs} +1 -1
- package/dist/chunk-P3PIMDIR.mjs +1 -0
- package/dist/{chunk-SSV5U7GW.mjs → chunk-PEL6QUMS.mjs} +1 -1
- package/dist/chunk-PFWODHNV.mjs +1 -0
- package/dist/chunk-PPUE5IPA.mjs +1 -0
- package/dist/{chunk-2CVUW74E.mjs → chunk-Q5LSCSF7.mjs} +1 -1
- package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
- package/dist/{chunk-2BYCSW34.mjs → chunk-QZJGH4W6.mjs} +1 -1
- package/dist/chunk-ROEJPYRW.mjs +1 -0
- package/dist/{chunk-PMXMC5CA.mjs → chunk-RVI4KPBJ.mjs} +1 -1
- package/dist/{chunk-3AUZS6TK.mjs → chunk-RWWF3HBN.mjs} +1 -1
- package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
- package/dist/{chunk-YLBXDW77.mjs → chunk-SVYUY3VF.mjs} +1 -1
- package/dist/{chunk-E3HCMSS7.mjs → chunk-TASJS6US.mjs} +1 -1
- package/dist/chunk-TWPRI2XQ.mjs +1 -0
- package/dist/{chunk-R52W36TJ.mjs → chunk-TYROOO53.mjs} +1 -1
- package/dist/{chunk-DXOIGG75.mjs → chunk-UM3WHBE7.mjs} +1 -1
- package/dist/{chunk-FYEE5UWZ.mjs → chunk-UVPODMUO.mjs} +1 -1
- package/dist/{chunk-SN4DCMUU.mjs → chunk-VT6DWUPF.mjs} +1 -1
- package/dist/{chunk-BEOBHG7Z.mjs → chunk-VX4NPEMC.mjs} +1 -1
- package/dist/{chunk-IC57R2EU.mjs → chunk-VXGRJCCM.mjs} +1 -1
- package/dist/{chunk-T6FBWMZR.mjs → chunk-WKFNZUIR.mjs} +1 -1
- package/dist/chunk-WLA5QCBE.mjs +1 -0
- package/dist/{chunk-FQPOVP4A.mjs → chunk-X3MBDMXV.mjs} +1 -1
- package/dist/{chunk-BRNBNHPP.mjs → chunk-X7PHWC2I.mjs} +1 -1
- package/dist/{chunk-QEQ5FQDS.mjs → chunk-XGEMVLT5.mjs} +1 -1
- package/dist/{chunk-JKRLWXXO.mjs → chunk-Y7TUU6BG.mjs} +1 -1
- package/dist/{chunk-N3ZBFP4A.mjs → chunk-YQ2YVQBS.mjs} +1 -1
- package/dist/{chunk-YUZINX2Q.mjs → chunk-Z3YAIJQT.mjs} +1 -1
- package/dist/{chunk-ZY2PDUUB.mjs → chunk-Z6NED523.mjs} +1 -1
- package/dist/chunk-ZEOV7BEN.mjs +1 -0
- package/dist/{chunk-AZHIBMT6.mjs → chunk-ZKU7UP6U.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.css +1 -0
- package/dist/components/CRM/CogeBoard.d.ts +14 -0
- package/dist/components/CRM/CogeBoard.js +4 -0
- package/dist/components/CRM/CogeBoard.mjs +2 -0
- package/dist/components/CRM/CogeBoard.stories.css +1 -0
- package/dist/components/CRM/CogeBoard.stories.js +4 -0
- package/dist/components/CRM/CogeBoard.stories.mjs +1 -0
- package/dist/components/CRM/DealCard.d.ts +2 -1
- package/dist/components/CRM/DealCard.js +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.js +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.js +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.d.ts +6 -5
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.d.ts +1 -0
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/CRM/types.d.ts +1 -0
- package/dist/components/CRM/types.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AddEpicModal.js +1 -1
- package/dist/components/DigitalColleagues/AddEpicModal.mjs +1 -1
- package/dist/components/DigitalColleagues/AddEpicModal.stories.js +67 -67
- package/dist/components/DigitalColleagues/AddEpicModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/AddSprintModal.css +1 -0
- package/dist/components/DigitalColleagues/AddSprintModal.d.ts +9 -0
- package/dist/components/DigitalColleagues/AddSprintModal.js +4 -0
- package/dist/components/DigitalColleagues/AddSprintModal.mjs +1 -0
- package/dist/components/DigitalColleagues/AddTaskModal.js +1 -1
- package/dist/components/DigitalColleagues/AddTaskModal.mjs +1 -1
- package/dist/components/DigitalColleagues/AddTaskModal.stories.js +64 -64
- package/dist/components/DigitalColleagues/AddTaskModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/CommentSection.mjs +1 -1
- package/dist/components/DigitalColleagues/CommentSection.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.d.ts +2 -1
- package/dist/components/DigitalColleagues/DashboardHeader.js +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.stories.js +15 -15
- package/dist/components/DigitalColleagues/DashboardHeader.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/EditableField.mjs +1 -1
- package/dist/components/DigitalColleagues/EditableField.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicFilter.stories.js +66 -66
- package/dist/components/DigitalColleagues/EpicFilter.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicsView.css +1 -0
- package/dist/components/DigitalColleagues/EpicsView.d.ts +13 -0
- package/dist/components/DigitalColleagues/EpicsView.js +1 -0
- package/dist/components/DigitalColleagues/EpicsView.mjs +1 -0
- package/dist/components/DigitalColleagues/EpicsView.stories.css +1 -0
- package/dist/components/DigitalColleagues/EpicsView.stories.js +218 -0
- package/dist/components/DigitalColleagues/EpicsView.stories.mjs +1 -0
- package/dist/components/DigitalColleagues/KanbanBoard.d.ts +12 -0
- package/dist/components/DigitalColleagues/KanbanBoard.js +2 -2
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.stories.js +3 -3
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanColumn.stories.js +1 -1
- package/dist/components/DigitalColleagues/KanbanColumn.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +7 -3
- package/dist/components/DigitalColleagues/ManagementSidebar.js +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.js +63 -63
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/PlanningView.d.ts +1 -0
- package/dist/components/DigitalColleagues/PlanningView.js +4 -1
- package/dist/components/DigitalColleagues/PlanningView.mjs +1 -1
- package/dist/components/DigitalColleagues/PlanningView.stories.js +3 -217
- package/dist/components/DigitalColleagues/PlanningView.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskCard.js +1 -1
- package/dist/components/DigitalColleagues/TaskCard.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskCard.stories.js +55 -55
- package/dist/components/DigitalColleagues/TaskCard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.js +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.js +1 -218
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.js +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.stories.js +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TeamSwitcher.stories.js +1 -218
- package/dist/components/DigitalColleagues/TeamSwitcher.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +9 -9
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +13 -13
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/payload-types.d.ts +118 -110
- package/dist/payload-types.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3OLVHVK2.mjs +0 -1
- package/dist/chunk-7LF2QW5F.mjs +0 -1
- package/dist/chunk-A7ZACVB3.mjs +0 -4
- package/dist/chunk-HOQ3CJDL.mjs +0 -1
- package/dist/chunk-IAACGKX2.mjs +0 -1
- package/dist/chunk-OTT43GVL.mjs +0 -1
- package/dist/chunk-QUONAVFG.mjs +0 -1
- package/dist/chunk-QVIJOCZ5.mjs +0 -1
- package/dist/chunk-RWM3YI4H.mjs +0 -1
- package/dist/chunk-VATD3NQA.mjs +0 -1
- package/dist/chunk-XJZCX25R.mjs +0 -1
- package/dist/chunk-XPS3NXF3.mjs +0 -1
- package/dist/chunk-YUSO4OFY.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var Rt=Object.create;var ce=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var kt=Object.getPrototypeOf,Tt=Object.prototype.hasOwnProperty;var At=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Ge=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dt(t))!Tt.call(e,a)&&a!==r&&ce(e,a,{get:()=>t[a],enumerable:!(o=Nt(t,a))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Rt(kt(e)):{},Ge(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),Lt=e=>Ge(ce({},"__esModule",{value:!0}),e);var xr={};At(xr,{KanbanColumn:()=>yr});module.exports=Lt(xr);var St=require("react");var Xe=require("clsx");var Se="-",Mt=e=>{let t=Et(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let i=c.split(Se);return i[0]===""&&i.length!==1&&i.shift(),Oe(i,t)||It(c)},getConflictingClassGroupIds:(c,i)=>{let u=r[c]||[];return i&&o[c]?[...u,...o[c]]:u}}},Oe=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?Oe(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Se);return t.validators.find(({validator:c})=>c(s))?.classGroupId},We=/^\[(.+)\]$/,It=e=>{if(We.test(e)){let t=We.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Et=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ht(Object.entries(e.classGroups),r).forEach(([s,c])=>{Ce(c,o,s,t)}),o},Ce=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:Ue(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(zt(a)){Ce(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,c])=>{Ce(c,Ue(t,s),r,o)})})},Ue=(e,t)=>{let r=e;return t.split(Se).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},zt=e=>e.isThemeGetter,Ht=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,i])=>[t+c,i])):s);return[r,a]}):e,Bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return a(s,c),c},set(s,c){r.has(s)?r.set(s,c):a(s,c)}}},je="!",Vt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,c=i=>{let u=[],P=0,C=0,v;for(let y=0;y<i.length;y++){let k=i[y];if(P===0){if(k===a&&(o||i.slice(y,y+s)===t)){u.push(i.slice(C,y)),C=y+s;continue}if(k==="/"){v=y;continue}}k==="["?P++:k==="]"&&P--}let x=u.length===0?i:i.substring(C),D=x.startsWith(je),L=D?x.substring(1):x,h=v&&v>C?v-C:void 0;return{modifiers:u,hasImportantModifier:D,baseClassName:L,maybePostfixModifierPosition:h}};return r?i=>r({className:i,parseClassName:c}):c},Ft=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Gt=e=>({cache:Bt(e.cacheSize),parseClassName:Vt(e),...Mt(e)}),Wt=/\s+/,Ut=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],c=e.trim().split(Wt),i="";for(let u=c.length-1;u>=0;u-=1){let P=c[u],{modifiers:C,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:D}=r(P),L=!!D,h=o(L?x.substring(0,D):x);if(!h){if(!L){i=P+(i.length>0?" "+i:i);continue}if(h=o(x),!h){i=P+(i.length>0?" "+i:i);continue}L=!1}let y=Ft(C).join(":"),k=v?y+je:y,T=k+h;if(s.includes(T))continue;s.push(T);let l=a(h,L);for(let f=0;f<l.length;++f){let q=l[f];s.push(k+q)}i=P+(i.length>0?" "+i:i)}return i};function Ot(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_e(t))&&(o&&(o+=" "),o+=r);return o}var _e=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=_e(e[o]))&&(r&&(r+=" "),r+=t);return r};function jt(e,...t){let r,o,a,s=c;function c(u){let P=t.reduce((C,v)=>v(C),e());return r=Gt(P),o=r.cache.get,a=r.cache.set,s=i,i(u)}function i(u){let P=o(u);if(P)return P;let C=Ut(u,r);return a(u,C),C}return function(){return s(Ot.apply(null,arguments))}}var g=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},qe=/^\[(?:([a-z-]+):)?(.+)\]$/i,_t=/^\d+\/\d+$/,qt=new Set(["px","full","screen"]),$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ye|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)et-?((\d+)?\.?(\d+)[a-z]+|0)/,Zt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>$(e)||qt.has(e)||_t.test(e),V=e=>K(e,"length",ir),$=e=>!!e&&!Number.isNaN(Number(e)),we=e=>K(e,"number",$),Q=e=>!!e&&Number.isInteger(Number(e)),Qt=e=>e.endsWith("%")&&$(e.slice(0,-1)),d=e=>qe.test(e),F=e=>$t.test(e),Yt=new Set(["length","size","percentage"]),er=e=>K(e,Yt,$e),tr=e=>K(e,"position",$e),rr=new Set(["image","url"]),or=e=>K(e,rr,nr),ar=e=>K(e,"",sr),Y=()=>!0,K=(e,t,r)=>{let o=qe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ir=e=>Kt.test(e)&&!Xt.test(e),$e=()=>!1,sr=e=>Jt.test(e),nr=e=>Zt.test(e);var lr=()=>{let e=g("colors"),t=g("spacing"),r=g("blur"),o=g("brightness"),a=g("borderColor"),s=g("borderRadius"),c=g("borderSpacing"),i=g("borderWidth"),u=g("contrast"),P=g("grayscale"),C=g("hueRotate"),v=g("invert"),x=g("gap"),D=g("gradientColorStops"),L=g("gradientColorStopPositions"),h=g("inset"),y=g("margin"),k=g("opacity"),T=g("padding"),l=g("saturate"),f=g("scale"),q=g("sepia"),Ie=g("skew"),Ee=g("space"),ze=g("translate"),ve=()=>["auto","contain","none"],he=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",d,t],b=()=>[d,t],He=()=>["",B,V],ne=()=>["auto",$,d],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",d],Fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[$,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[B,V],blur:["none","",F,d],brightness:H(),borderColor:[e],borderRadius:["none","","full",F,d],borderSpacing:b(),borderWidth:He(),contrast:H(),grayscale:Z(),hueRotate:H(),invert:Z(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Qt,V],inset:ye(),margin:ye(),opacity:H(),padding:b(),saturate:H(),scale:H(),sepia:Z(),skew:H(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Fe()}],"break-before":[{"break-before":Fe()}],"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:[...Be(),d]}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:ve()}],"overscroll-x":[{"overscroll-x":ve()}],"overscroll-y":[{"overscroll-y":ve()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Q,d]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Q,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",Q,d]},d]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[Q,d]},d]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],et:[{et:[y]}],Ye:[{Ye:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ee]}],"space-y-reverse":["space-y-reverse"],Ye:[{Ye:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-Ye":[{"min-Ye":[d,t,"min","max","fit"]}],"max-Ye":[{"max-Ye":[d,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",we]}],"font-family":[{font:[Y]}],"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",d]}],"line-clamp":[{"line-clamp":["none",$,we]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"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:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,V]}],"underline-offset":[{"underline-offset":["auto",B,d]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"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:[...Be(),tr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",er]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},or]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[D]}],"gradient-via":[{via:[D]}],"gradient-to":[{to:[D]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-Ye":[{border:[i]}],"border-Ye-x":[{"border-x":[i]}],"border-Ye-y":[{"border-y":[i]}],"border-Ye-s":[{"border-s":[i]}],"border-Ye-e":[{"border-e":[i]}],"border-Ye-t":[{"border-t":[i]}],"border-Ye-r":[{"border-r":[i]}],"border-Ye-b":[{"border-b":[i]}],"border-Ye-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[B,d]}],"outline-Ye":[{outline:[B,V]}],"outline-color":[{outline:[e]}],"ring-Ye":[{ring:He()}],"ring-Ye-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-Ye":[{"ring-offset":[B,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,ar]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",F,d]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[v]}],saturate:[{saturate:[l]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[l]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"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",d]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[f]}],"scale-x":[{"scale-x":[f]}],"scale-y":[{"scale-y":[f]}],rotate:[{rotate:[Q,d]}],"translate-x":[{"translate-x":[ze]}],"translate-y":[{"translate-y":[ze]}],"skew-x":[{"skew-x":[Ie]}],"skew-y":[{"skew-y":[Ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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","Ye-resize","e-resize","s-resize","Ye-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-et":[{"scroll-et":b()}],"scroll-Ye":[{"scroll-Ye":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",d]}],fill:[{fill:[e,"none"]}],"stroke-Ye":[{stroke:[B,V,we]}],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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","et","Ye","mr","mb","ml"],mx:["mr","ml"],my:["Ye","mb"],size:["Ye","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-Ye":["border-Ye-s","border-Ye-e","border-Ye-t","border-Ye-r","border-Ye-b","border-Ye-l"],"border-Ye-x":["border-Ye-r","border-Ye-l"],"border-Ye-y":["border-Ye-t","border-Ye-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-et","scroll-Ye","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Ye","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ke=jt(lr);function m(...e){return Ke((0,Xe.clsx)(e))}var Je=require("@radix-ui/react-slot"),Ze=require("class-variance-authority"),Qe=A(require("react")),Ye=require("react/jsx-runtime"),cr=(0,Ze.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 Ye-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"}}}),G=Qe.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,Ye.jsx)(e?Je.Slot:"button",{className:m(cr({className:t,size:r,variant:o})),ref:s,...a}));G.displayName="Button";var ee=A(require("react")),R=A(require("@radix-ui/react-dialog")),et=require("lucide-react");var de=R.Root,tt=R.Trigger,dr=R.Portal;var rt=ee.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(R.Overlay,{ref:r,className:m("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}));rt.displayName=R.Overlay.displayName;var te=ee.forwardRef(({className:e,children:t,...r},o)=>(0,Ye.jsxs)(dr,{children:[(0,Ye.jsx)(rt,{}),(0,Ye.jsxs)(R.Content,{ref:o,className:m("fixed left-[50%] top-[50%] z-50 grid Ye-full max-Ye-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),...r,children:[t,(0,Ye.jsxs)(R.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,Ye.jsx)(et.X,{className:"h-4 Ye-4"}),(0,Ye.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));te.displayName=R.Content.displayName;var re=({className:e,...t})=>(0,Ye.jsx)("div",{className:m("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});re.displayName="DialogHeader";var mr=({className:e,...t})=>(0,Ye.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});mr.displayName="DialogFooter";var oe=ee.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(R.Title,{ref:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));oe.displayName=R.Title.displayName;var pr=ee.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(R.Description,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));pr.displayName=R.Description.displayName;var O=A(require("react"));var Pe=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Pe.displayName="Card";var Re=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("flex flex-col space-y-1.5 p-6",e),...t}));Re.displayName="CardHeader";var Ne=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("font-semibold leading-none tracking-tight",e),...t}));Ne.displayName="CardTitle";var ur=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("text-sm text-muted-foreground",e),...t}));ur.displayName="CardDescription";var De=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("p-6 pt-0",e),...t}));De.displayName="CardContent";var fr=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("flex items-center p-6 pt-0",e),...t}));fr.displayName="CardFooter";var gr=(0,Ze.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 at({className:e,variant:t,...r}){return(0,Ye.jsx)("div",{className:m(gr({variant:t}),e),...r})}function st({deal:e,customer:t,categories:r,onClick:o}){let a=r.find(s=>s.type==="proposition"&&(e.categories??[]).includes(s.id));return(0,Ye.jsxs)(Pe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ye.jsxs)(Re,{className:"pb-2",children:[(0,Ye.jsx)("div",{className:"flex justify-between items-center",children:(0,Ye.jsx)(Ne,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,Ye.jsx)("p",{className:"text-sm text-gray-500 Ye-1",children:e.description})]}),(0,Ye.jsxs)(De,{children:[(0,Ye.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ye.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,Ye.jsx)(et.UserIcon,{className:"Ye-4 h-4 mr-1 text-xs"}),(0,Ye.jsx)("span",{children:e.assignee.name})]}),(0,Ye.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ye.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ye.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ye.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ye.jsx)(et.CalendarIcon,{className:"Ye-3 h-3 mr-1"}),(0,Ye.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ye.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,Ye.jsx)(at,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}var be=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");var nt=A(require("react"));var X=nt.forwardRef(({className:e,type:t,...r},o)=>(0,Ye.jsx)("input",{type:t,className:m("flex h-9 Ye-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:o,...r}));X.displayName="Input";var ct=A(require("react")),ke=A(require("@radix-ui/react-label"));var br=(0,Ze.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),E=ct.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(ke.Root,{ref:r,className:m(br(),e),...t}));E.displayName=ke.Root.displayName;var p=A(require("@radix-ui/react-select")),W=A(require("react")),Te=p.Root;var Ae=p.Value,pe=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ye.jsxs)(p.Trigger,{className:m("flex h-10 Ye-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:o,...r,children:[e,(0,Ye.jsx)(p.Icon,{asChild:!0,children:(0,Ye.jsx)(et.ChevronDown,{className:"h-4 Ye-4 opacity-50"})})]}));pe.displayName=p.Trigger.displayName;var pt=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ye.jsx)(et.ChevronUp,{className:"h-4 Ye-4"})}));pt.displayName=p.ScrollUpButton.displayName;var ut=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ye.jsx)(et.ChevronDown,{className:"h-4 Ye-4"})}));ut.displayName=p.ScrollDownButton.displayName;var ue=W.forwardRef(({children:e,className:t,position:r="popper",...o},a)=>(0,Ye.jsx)(p.Portal,{children:(0,Ye.jsxs)(p.Content,{className:m("relative z-50 max-h-96 min-Ye-[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",r==="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:r,ref:a,...o,children:[(0,Ye.jsx)(pt,{}),(0,Ye.jsx)(p.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] Ye-full min-Ye-[var(--radix-select-trigger-width)]"),children:e}),(0,Ye.jsx)(ut,{})]})}));ue.displayName=p.Content.displayName;var vr=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));vr.displayName=p.Label.displayName;var fe=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ye.jsxs)(p.Item,{className:m("relative flex Ye-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:o,...r,children:[(0,Ye.jsx)("span",{className:"absolute left-2 flex h-3.5 Ye-3.5 items-center justify-center",children:(0,Ye.jsx)(p.ItemIndicator,{children:(0,Ye.jsx)(et.Check,{className:"h-4 Ye-4"})})}),(0,Ye.jsx)(p.ItemText,{children:e})]}));fe.displayName=p.Item.displayName;var hr=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));hr.displayName=p.Separator.displayName;var ae=A(require("@radix-ui/react-checkbox")),gt=A(require("react")),ie=gt.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(ae.Root,{className:m("peer h-4 Ye-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:r,...t,children:(0,Ye.jsx)(ae.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,Ye.jsx)(et.Check,{className:"h-4 Ye-4"})})}));ie.displayName=ae.Root.displayName;var bt=A(require("react")),se=bt.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("textarea",{className:m("flex min-h-[80px] Ye-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:r,...t}));se.displayName="Textarea";var Le=A(require("react")),z=A(require("@radix-ui/react-scroll-area"));var Me=Le.forwardRef(({className:e,children:t,...r},o)=>(0,Ye.jsxs)(z.Root,{ref:o,className:m("relative overflow-hidden",e),...r,children:[(0,Ye.jsx)(z.Viewport,{className:"h-full Ye-full rounded-[inherit]",children:t}),(0,Ye.jsx)(ht,{}),(0,Ye.jsx)(z.Corner,{})]}));Me.displayName=z.Root.displayName;var ht=Le.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ye.jsx)(z.ScrollAreaScrollbar,{ref:o,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Ye-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,Ye.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ht.displayName=z.ScrollAreaScrollbar.displayName;function xt({onSubmit:e}){let[t,r]=(0,St.useState)({name:"",intro:"",active:!1});return(0,Ye.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,Ye.jsxs)("div",{className:"space-y-2",children:[(0,Ye.jsx)(E,{htmlFor:"customerName",children:"Customer Name"}),(0,Ye.jsx)(X,{id:"customerName",value:t.name,onChange:a=>r({...t,name:a.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ye.jsxs)("div",{className:"space-y-2",children:[(0,Ye.jsx)(E,{htmlFor:"customerIntro",children:"Intro"}),(0,Ye.jsx)(se,{id:"customerIntro",value:t.intro??"",onChange:a=>r({...t,intro:a.target.value}),placeholder:"Enter customer intro"})]}),(0,Ye.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ye.jsx)(ie,{id:"activeCustomer",checked:!!t.active,onCheckedChange:a=>r({...t,active:a})}),(0,Ye.jsx)(E,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ye.jsx)(G,{type:"submit",className:"Ye-full",children:"Add Customer"})]})}function Ct({customers:e,users:t,categories:r,onSubmit:o,initialDeal:a,onAddCustomer:s,onClose:c}){let[i,u]=(0,St.useState)(a||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[P,C]=(0,St.useState)(!1),[v,x]=(0,St.useState)({});(0,St.useEffect)(()=>{a&&u(a)},[a]);let D=()=>{let l={};return i.customer||(l.customer="Customer is required"),i.value||(l.value="Value is required"),i.assignee||(l.assignee="Assignee is required"),i.closureDate||(l.closureDate="Closure Date is required"),x(l),Object.keys(l).length===0},L=async l=>{l.preventDefault(),x({});try{if(D()){let f=await o({...i});f.success?(u({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),c?.()):x(f.errors||{})}}catch{x({submit:"An error occurred while submitting the form."})}},h=l=>{u(f=>({...f,categories:(f.categories||[]).includes(l.id)?(f.categories||[]).filter(q=>q!==l.id):[...f.categories||[],l.id]}))},y=async l=>{u({...i,customer:l});try{let f=await s(l);f.success?C(!1):x(f.errors||{})}catch{x({submit:"An error occurred while submitting the form."})}},k=l=>t?.find(f=>f.id===Number(l)),T=l=>e?.find(f=>f.id===Number(l));return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsxs)("form",{onSubmit:L,className:"space-y-6",children:[(0,Ye.jsx)(Me,{className:"h-[60vh] pr-4",children:(0,Ye.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Ye.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ye.jsx)(E,{htmlFor:"customer",children:"Customer"}),(0,Ye.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ye.jsxs)(Te,{value:i.customer?.id?.toString(),onValueChange:l=>u({...i,customer:T(l)}),children:[(0,Ye.jsx)(pe,{children:(0,Ye.jsx)(Ae,{placeholder:"Select customer"})}),(0,Ye.jsx)(ue,{children:e.map(l=>(0,Ye.jsx)(fe,{value:l.id?.toString()||"",children:l.name},l.id))})]}),(0,Ye.jsx)(G,{variant:"outline",size:"icon",onClick:()=>C(!0),children:(0,Ye.jsx)(et.PlusIcon,{className:"Ye-5 h-5"})})]}),v.customerId&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:v.customerId})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ye.jsx)(E,{htmlFor:"value",children:"Value"}),(0,Ye.jsx)(X,{id:"value",type:"number",value:i.value||"",onChange:l=>u({...i,value:Number.parseFloat(l.target.value)}),placeholder:"Enter deal value"}),v.value&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:v.value})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ye.jsx)(E,{htmlFor:"assignee",children:"Assignee"}),(0,Ye.jsxs)(Te,{value:i.assignee?.id?.toString(),onValueChange:l=>u({...i,assignee:k(l)}),children:[(0,Ye.jsx)(pe,{children:(0,Ye.jsx)(Ae,{placeholder:"Select assignee"})}),(0,Ye.jsx)(ue,{children:t&&t.map(l=>(0,Ye.jsx)(fe,{value:l.id?.toString()||"",children:l.name},l.id))})]}),v.assignee&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:v.assignee})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ye.jsx)(E,{htmlFor:"description",children:"Description"}),(0,Ye.jsx)(se,{id:"description",value:i.description||"",onChange:l=>u({...i,description:l.target.value}),placeholder:"Enter deal description"})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ye.jsx)(E,{children:"Categories"}),(0,Ye.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(l=>(0,Ye.jsxs)("div",{className:"space-y-2",children:[(0,Ye.jsx)("h4",{className:"text-sm font-medium",children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,Ye.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.filter(f=>f.type===l).map(f=>(0,Ye.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ye.jsx)(ie,{id:f.id.toString(),checked:i.categories?.includes(f.id),onCheckedChange:()=>h(f)}),(0,Ye.jsx)("label",{htmlFor:f.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:f.name})]},f.id))})]},l))})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ye.jsx)(E,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ye.jsx)(X,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:l=>u({...i,closureDate:l.target.value})}),v.closureDate&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:v.closureDate})]})]})}),(0,Ye.jsx)(G,{type:"submit",className:"Ye-full",children:a?"Update Deal":"Add Deal"})]}),(0,Ye.jsx)(de,{open:P,onOpenChange:C,children:(0,Ye.jsxs)(te,{children:[(0,Ye.jsx)(re,{children:(0,Ye.jsx)(oe,{children:"Add New Customer"})}),(0,Ye.jsx)(xt,{onSubmit:y})]})})]})}function yr({status:e,deals:t,users:r,customers:o,categories:a,onDealClick:s,calculateColumnValue:c,calculateWeightedValue:i,addNewDeal:u,onAddCustomer:P}){let[C,v]=(0,St.useState)(!1);return(0,Ye.jsxs)("div",{className:"flex flex-col Ye-80",children:[(0,Ye.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),u&&(0,Ye.jsxs)(de,{open:C,onOpenChange:v,children:[(0,Ye.jsx)(tt,{asChild:!0,children:(0,Ye.jsxs)(G,{className:"mb-4 Ye-full",children:[(0,Ye.jsx)(et.PlusCircle,{className:"mr-2 h-4 Ye-4"}),"Add New Deal"]})}),(0,Ye.jsxs)(te,{children:[(0,Ye.jsx)(re,{children:(0,Ye.jsx)(oe,{children:"Add New Deal"})}),(0,Ye.jsx)(Ct,{customers:o,users:r,categories:a,onSubmit:u,onAddCustomer:P,onClose:()=>v(!1)})]})]}),(0,Ye.jsx)(be.Droppable,{droppableId:e,isDropDisabled:!1,children:x=>(0,Ye.jsxs)("div",{ref:x.innerRef,...x.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((D,L)=>(0,Ye.jsx)(be.Draggable,{draggableId:D.id.toString(),index:D.id,children:h=>(0,Ye.jsx)("div",{ref:h.innerRef,...h.draggableProps,...h.dragHandleProps,children:(0,Ye.jsx)(st,{deal:D,customer:D.customer,categories:a,onClick:()=>s(D)})})},D.id.toString())),x.placeholder]})}),(0,Ye.jsxs)("div",{className:"Ye-4 text-sm p-3 rounded-lg shadow",children:[(0,Ye.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ye.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,Ye.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ye.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}0&&(module.exports={KanbanColumn});
|
|
4
|
+
"use strict";var Rt=Object.create;var ce=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var kt=Object.getPrototypeOf,Tt=Object.prototype.hasOwnProperty;var At=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Ge=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dt(t))!Tt.call(e,a)&&a!==r&&ce(e,a,{get:()=>t[a],enumerable:!(o=Nt(t,a))||o.enumerable});return e};var L=(e,t,r)=>(r=e!=null?Rt(kt(e)):{},Ge(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),Lt=e=>Ge(ce({},"__esModule",{value:!0}),e);var xr={};At(xr,{KanbanColumn:()=>yr});module.exports=Lt(xr);var St=require("react");var Xe=require("clsx");var De="-",Mt=e=>{let t=Et(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let i=c.split(De);return i[0]===""&&i.length!==1&&i.shift(),Oe(i,t)||It(c)},getConflictingClassGroupIds:(c,i)=>{let u=r[c]||[];return i&&o[c]?[...u,...o[c]]:u}}},Oe=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?Oe(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(De);return t.validators.find(({validator:c})=>c(s))?.classGroupId},We=/^\[(.+)\]$/,It=e=>{if(We.test(e)){let t=We.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Et=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ht(Object.entries(e.classGroups),r).forEach(([s,c])=>{Ne(c,o,s,t)}),o},Ne=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:Ue(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(zt(a)){Ne(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,c])=>{Ne(c,Ue(t,s),r,o)})})},Ue=(e,t)=>{let r=e;return t.split(De).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},zt=e=>e.isThemeGetter,Ht=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,i])=>[t+c,i])):s);return[r,a]}):e,Bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return a(s,c),c},set(s,c){r.has(s)?r.set(s,c):a(s,c)}}},je="!",Vt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,c=i=>{let u=[],P=0,w=0,y;for(let b=0;b<i.length;b++){let k=i[b];if(P===0){if(k===a&&(o||i.slice(b,b+s)===t)){u.push(i.slice(w,b)),w=b+s;continue}if(k==="/"){y=b;continue}}k==="["?P++:k==="]"&&P--}let C=u.length===0?i:i.substring(w),T=C.startsWith(je),D=T?C.substring(1):C,R=y&&y>w?y-w:void 0;return{modifiers:u,hasImportantModifier:T,baseClassName:D,maybePostfixModifierPosition:R}};return r?i=>r({className:i,parseClassName:c}):c},Ft=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Gt=e=>({cache:Bt(e.cacheSize),parseClassName:Vt(e),...Mt(e)}),Wt=/\s+/,Ut=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],c=e.trim().split(Wt),i="";for(let u=c.length-1;u>=0;u-=1){let P=c[u],{modifiers:w,hasImportantModifier:y,baseClassName:C,maybePostfixModifierPosition:T}=r(P),D=!!T,R=o(D?C.substring(0,T):C);if(!R){if(!D){i=P+(i.length>0?" "+i:i);continue}if(R=o(C),!R){i=P+(i.length>0?" "+i:i);continue}D=!1}let b=Ft(w).join(":"),k=y?b+je:b,A=k+R;if(s.includes(A))continue;s.push(A);let l=a(R,D);for(let f=0;f<l.length;++f){let q=l[f];s.push(k+q)}i=P+(i.length>0?" "+i:i)}return i};function Ot(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_e(t))&&(o&&(o+=" "),o+=r);return o}var _e=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=_e(e[o]))&&(r&&(r+=" "),r+=t);return r};function jt(e,...t){let r,o,a,s=c;function c(u){let P=t.reduce((w,y)=>y(w),e());return r=Gt(P),o=r.cache.get,a=r.cache.set,s=i,i(u)}function i(u){let P=o(u);if(P)return P;let w=Ut(u,r);return a(u,w),w}return function(){return s(Ot.apply(null,arguments))}}var v=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},qe=/^\[(?:([a-z-]+):)?(.+)\]$/i,_t=/^\d+\/\d+$/,qt=new Set(["px","full","screen"]),$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)et-?((\d+)?\.?(\d+)[a-z]+|0)/,Zt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>$(e)||qt.has(e)||_t.test(e),V=e=>K(e,"length",ir),$=e=>!!e&&!Number.isNaN(Number(e)),Re=e=>K(e,"number",$),Q=e=>!!e&&Number.isInteger(Number(e)),Qt=e=>e.endsWith("%")&&$(e.slice(0,-1)),d=e=>qe.test(e),F=e=>$t.test(e),Yt=new Set(["length","size","percentage"]),er=e=>K(e,Yt,$e),tr=e=>K(e,"position",$e),rr=new Set(["image","url"]),or=e=>K(e,rr,nr),ar=e=>K(e,"",sr),Y=()=>!0,K=(e,t,r)=>{let o=qe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ir=e=>Kt.test(e)&&!Xt.test(e),$e=()=>!1,sr=e=>Jt.test(e),nr=e=>Zt.test(e);var lr=()=>{let e=v("colors"),t=v("spacing"),r=v("blur"),o=v("brightness"),a=v("borderColor"),s=v("borderRadius"),c=v("borderSpacing"),i=v("borderWidth"),u=v("contrast"),P=v("grayscale"),w=v("hueRotate"),y=v("invert"),C=v("gap"),T=v("gradientColorStops"),D=v("gradientColorStopPositions"),R=v("inset"),b=v("margin"),k=v("opacity"),A=v("padding"),l=v("saturate"),f=v("scale"),q=v("sepia"),Ie=v("skew"),Ee=v("space"),ze=v("translate"),we=()=>["auto","contain","none"],Ce=()=>["auto","hidden","clip","visible","scroll"],Se=()=>["auto",d,t],h=()=>[d,t],He=()=>["",B,V],ne=()=>["auto",$,d],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Pe=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",d],Fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[$,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[B,V],blur:["none","",F,d],brightness:H(),borderColor:[e],borderRadius:["none","","full",F,d],borderSpacing:h(),borderWidth:He(),contrast:H(),grayscale:Z(),hueRotate:H(),invert:Z(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[Qt,V],inset:Se(),margin:Se(),opacity:H(),padding:h(),saturate:H(),scale:H(),sepia:Z(),skew:H(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Fe()}],"break-before":[{"break-before":Fe()}],"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:[...Be(),d]}],overflow:[{overflow:Ce()}],"overflow-Ye":[{"overflow-Ye":Ce()}],"overflow-y":[{"overflow-y":Ce()}],overscroll:[{overscroll:we()}],"overscroll-Ye":[{"overscroll-Ye":we()}],"overscroll-y":[{"overscroll-y":we()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-Ye":[{"inset-Ye":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Q,d]}],basis:[{basis:Se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Q,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",Q,d]},d]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[Q,d]},d]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[C]}],"gap-Ye":[{"gap-Ye":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...Pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],Ye:[{Ye:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-Ye":[{"space-Ye":[Ee]}],"space-Ye-reverse":["space-Ye-reverse"],"space-y":[{"space-y":[Ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Re]}],"font-family":[{font:[Y]}],"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",d]}],"line-clamp":[{"line-clamp":["none",$,Re]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"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:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,V]}],"underline-offset":[{"underline-offset":["auto",B,d]}],"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:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"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:[...Be(),tr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ye","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",er]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},or]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-Ye":[{"border-Ye":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...le(),"hidden"]}],"divide-Ye":[{"divide-Ye":[i]}],"divide-Ye-reverse":["divide-Ye-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-Ye":[{"border-Ye":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[B,d]}],"outline-w":[{outline:[B,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:He()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[B,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,ar]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",F,d]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[y]}],saturate:[{saturate:[l]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[l]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-Ye":[{"border-spacing-Ye":[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",d]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[f]}],"scale-Ye":[{"scale-Ye":[f]}],"scale-y":[{"scale-y":[f]}],rotate:[{rotate:[Q,d]}],"translate-Ye":[{"translate-Ye":[ze]}],"translate-y":[{"translate-y":[ze]}],"skew-Ye":[{"skew-Ye":[Ie]}],"skew-y":[{"skew-y":[Ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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","Ye-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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Ye",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-Ye":[{"scroll-Ye":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ye","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ye":[{"touch-pan":["Ye","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",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,V,Re]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ye","overflow-y"],overscroll:["overscroll-Ye","overscroll-y"],inset:["inset-Ye","inset-y","start","end","top","right","bottom","left"],"inset-Ye":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ye","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","Ye","mr","mb","ml"],mx:["mr","ml"],my:["Ye","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-Ye","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-Ye":["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-Ye":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Ye","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Ye","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Ye","touch-y","touch-pz"],"touch-Ye":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ke=jt(lr);function m(...e){return Ke((0,Xe.clsx)(e))}var Je=require("@radix-ui/react-slot"),Ze=require("class-variance-authority"),Qe=L(require("react")),Ye=require("react/jsx-runtime"),cr=(0,Ze.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"}}}),G=Qe.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,Ye.jsx)(e?Je.Slot:"button",{className:m(cr({className:t,size:r,variant:o})),ref:s,...a}));G.displayName="Button";var ee=L(require("react")),N=L(require("@radix-ui/react-dialog")),et=require("lucide-react");var de=N.Root,tt=N.Trigger,dr=N.Portal;var rt=ee.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(N.Overlay,{ref:r,className:m("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}));rt.displayName=N.Overlay.displayName;var te=ee.forwardRef(({className:e,children:t,...r},o)=>(0,Ye.jsxs)(dr,{children:[(0,Ye.jsx)(rt,{}),(0,Ye.jsxs)(N.Content,{ref:o,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Ye-[-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),...r,children:[t,(0,Ye.jsxs)(N.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,Ye.jsx)(et.X,{className:"h-4 w-4"}),(0,Ye.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));te.displayName=N.Content.displayName;var re=({className:e,...t})=>(0,Ye.jsx)("div",{className:m("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});re.displayName="DialogHeader";var mr=({className:e,...t})=>(0,Ye.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Ye-2",e),...t});mr.displayName="DialogFooter";var oe=ee.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(N.Title,{ref:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));oe.displayName=N.Title.displayName;var pr=ee.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(N.Description,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));pr.displayName=N.Description.displayName;var O=L(require("react"));var me=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));me.displayName="Card";var pe=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("flex flex-col space-y-1.5 p-6",e),...t}));pe.displayName="CardHeader";var ue=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("font-semibold leading-none tracking-tight",e),...t}));ue.displayName="CardTitle";var ur=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("text-sm text-muted-foreground",e),...t}));ur.displayName="CardDescription";var fe=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("p-6 pt-0",e),...t}));fe.displayName="CardContent";var fr=O.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("div",{ref:r,className:m("flex items-center p-6 pt-0",e),...t}));fr.displayName="CardFooter";var gr=(0,Ze.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 at({className:e,variant:t,...r}){return(0,Ye.jsx)("div",{className:m(gr({variant:t}),e),...r})}function st({deal:e,customer:t,categories:r,onClick:o,compact:a=!1}){let s=r.find(c=>c.type==="proposition"&&(e.categories??[]).includes(c.id));return a?(0,Ye.jsxs)(me,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ye.jsxs)(pe,{className:"pb-1 pt-2",children:[(0,Ye.jsx)(ue,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,Ye.jsx)("p",{className:"text-sm text-gray-500 Ye-1",children:e.description})]}),(0,Ye.jsx)(fe,{className:"text-xs text-gray-500 pb-2",children:(0,Ye.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,Ye.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ye.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,Ye.jsxs)(me,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ye.jsxs)(pe,{className:"pb-2",children:[(0,Ye.jsx)("div",{className:"flex justify-between items-center",children:(0,Ye.jsx)(ue,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,Ye.jsx)("p",{className:"text-sm text-gray-500 Ye-1",children:e.description})]}),(0,Ye.jsxs)(fe,{children:[(0,Ye.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ye.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,Ye.jsx)(et.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Ye.jsx)("span",{children:e.assignee.name})]}),(0,Ye.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ye.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ye.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ye.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ye.jsx)(et.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Ye.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ye.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,Ye.jsx)(at,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var xe=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");var nt=L(require("react"));var X=nt.forwardRef(({className:e,type:t,...r},o)=>(0,Ye.jsx)("input",{type:t,className:m("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:o,...r}));X.displayName="Input";var ct=L(require("react")),ke=L(require("@radix-ui/react-label"));var br=(0,Ze.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),E=ct.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(ke.Root,{ref:r,className:m(br(),e),...t}));E.displayName=ke.Root.displayName;var p=L(require("@radix-ui/react-select")),W=L(require("react")),Te=p.Root;var Ae=p.Value,be=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ye.jsxs)(p.Trigger,{className:m("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:o,...r,children:[e,(0,Ye.jsx)(p.Icon,{asChild:!0,children:(0,Ye.jsx)(et.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));be.displayName=p.Trigger.displayName;var pt=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ye.jsx)(et.ChevronUp,{className:"h-4 w-4"})}));pt.displayName=p.ScrollUpButton.displayName;var ut=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ye.jsx)(et.ChevronDown,{className:"h-4 w-4"})}));ut.displayName=p.ScrollDownButton.displayName;var ve=W.forwardRef(({children:e,className:t,position:r="popper",...o},a)=>(0,Ye.jsx)(p.Portal,{children:(0,Ye.jsxs)(p.Content,{className:m("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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-Ye-1 data-[side=right]:translate-Ye-1 data-[side=top]:-translate-y-1",t),position:r,ref:a,...o,children:[(0,Ye.jsx)(pt,{}),(0,Ye.jsx)(p.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ye.jsx)(ut,{})]})}));ve.displayName=p.Content.displayName;var vr=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));vr.displayName=p.Label.displayName;var he=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ye.jsxs)(p.Item,{className:m("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:o,...r,children:[(0,Ye.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ye.jsx)(p.ItemIndicator,{children:(0,Ye.jsx)(et.Check,{className:"h-4 w-4"})})}),(0,Ye.jsx)(p.ItemText,{children:e})]}));he.displayName=p.Item.displayName;var hr=W.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));hr.displayName=p.Separator.displayName;var ae=L(require("@radix-ui/react-checkbox")),gt=L(require("react")),ie=gt.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)(ae.Root,{className:m("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:r,...t,children:(0,Ye.jsx)(ae.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,Ye.jsx)(et.Check,{className:"h-4 w-4"})})}));ie.displayName=ae.Root.displayName;var bt=L(require("react")),se=bt.forwardRef(({className:e,...t},r)=>(0,Ye.jsx)("textarea",{className:m("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:r,...t}));se.displayName="Textarea";var Le=L(require("react")),z=L(require("@radix-ui/react-scroll-area"));var Me=Le.forwardRef(({className:e,children:t,...r},o)=>(0,Ye.jsxs)(z.Root,{ref:o,className:m("relative overflow-hidden",e),...r,children:[(0,Ye.jsx)(z.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ye.jsx)(ht,{}),(0,Ye.jsx)(z.Corner,{})]}));Me.displayName=z.Root.displayName;var ht=Le.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ye.jsx)(z.ScrollAreaScrollbar,{ref:o,orientation:t,className:m("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),...r,children:(0,Ye.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ht.displayName=z.ScrollAreaScrollbar.displayName;function xt({onSubmit:e}){let[t,r]=(0,St.useState)({name:"",intro:"",active:!1});return(0,Ye.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,Ye.jsxs)("div",{className:"space-y-2",children:[(0,Ye.jsx)(E,{htmlFor:"customerName",children:"Customer Name"}),(0,Ye.jsx)(X,{id:"customerName",value:t.name,onChange:a=>r({...t,name:a.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ye.jsxs)("div",{className:"space-y-2",children:[(0,Ye.jsx)(E,{htmlFor:"customerIntro",children:"Intro"}),(0,Ye.jsx)(se,{id:"customerIntro",value:t.intro??"",onChange:a=>r({...t,intro:a.target.value}),placeholder:"Enter customer intro"})]}),(0,Ye.jsxs)("div",{className:"flex items-center space-Ye-2",children:[(0,Ye.jsx)(ie,{id:"activeCustomer",checked:!!t.active,onCheckedChange:a=>r({...t,active:a})}),(0,Ye.jsx)(E,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ye.jsx)(G,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Ct({customers:e,users:t,categories:r,onSubmit:o,initialDeal:a,onAddCustomer:s,onClose:c}){let[i,u]=(0,St.useState)(a||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[P,w]=(0,St.useState)(!1),[y,C]=(0,St.useState)({});(0,St.useEffect)(()=>{a&&u(a)},[a]);let T=()=>{let l={};return i.customer||(l.customer="Customer is required"),i.value||(l.value="Value is required"),i.assignee||(l.assignee="Assignee is required"),i.closureDate||(l.closureDate="Closure Date is required"),C(l),Object.keys(l).length===0},D=async l=>{l.preventDefault(),C({});try{if(T()){let f=await o({...i});f.success?(u({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),c?.()):C(f.errors||{})}}catch{C({submit:"An error occurred while submitting the form."})}},R=l=>{u(f=>({...f,categories:(f.categories||[]).includes(l.id)?(f.categories||[]).filter(q=>q!==l.id):[...f.categories||[],l.id]}))},b=async l=>{u({...i,customer:l});try{let f=await s(l);f.success?w(!1):C(f.errors||{})}catch{C({submit:"An error occurred while submitting the form."})}},k=l=>t?.find(f=>f.id===Number(l)),A=l=>e?.find(f=>f.id===Number(l));return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsxs)("form",{onSubmit:D,className:"space-y-6",children:[(0,Ye.jsx)(Me,{className:"h-[60vh] pr-4",children:(0,Ye.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Ye.jsxs)("div",{className:"space-y-2 space-Ye-2",children:[(0,Ye.jsx)(E,{htmlFor:"customer",children:"Customer"}),(0,Ye.jsxs)("div",{className:"flex items-center space-Ye-2",children:[(0,Ye.jsxs)(Te,{value:i.customer?.id?.toString(),onValueChange:l=>u({...i,customer:A(l)}),children:[(0,Ye.jsx)(be,{children:(0,Ye.jsx)(Ae,{placeholder:"Select customer"})}),(0,Ye.jsx)(ve,{children:e.map(l=>(0,Ye.jsx)(he,{value:l.id?.toString()||"",children:l.name},l.id))})]}),(0,Ye.jsx)(G,{variant:"outline",size:"icon",onClick:()=>w(!0),children:(0,Ye.jsx)(et.PlusIcon,{className:"w-5 h-5"})})]}),y.customerId&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:y.customerId})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-Ye-2",children:[(0,Ye.jsx)(E,{htmlFor:"value",children:"Value"}),(0,Ye.jsx)(X,{id:"value",type:"number",value:i.value||"",onChange:l=>u({...i,value:Number.parseFloat(l.target.value)}),placeholder:"Enter deal value"}),y.value&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:y.value})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-Ye-2",children:[(0,Ye.jsx)(E,{htmlFor:"assignee",children:"Assignee"}),(0,Ye.jsxs)(Te,{value:i.assignee?.id?.toString(),onValueChange:l=>u({...i,assignee:k(l)}),children:[(0,Ye.jsx)(be,{children:(0,Ye.jsx)(Ae,{placeholder:"Select assignee"})}),(0,Ye.jsx)(ve,{children:t&&t.map(l=>(0,Ye.jsx)(he,{value:l.id?.toString()||"",children:l.name},l.id))})]}),y.assignee&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:y.assignee})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-Ye-2",children:[(0,Ye.jsx)(E,{htmlFor:"description",children:"Description"}),(0,Ye.jsx)(se,{id:"description",value:i.description||"",onChange:l=>u({...i,description:l.target.value}),placeholder:"Enter deal description"})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-Ye-2",children:[(0,Ye.jsx)(E,{children:"Categories"}),(0,Ye.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(l=>(0,Ye.jsxs)("div",{className:"space-y-2",children:[(0,Ye.jsx)("h4",{className:"text-sm font-medium",children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,Ye.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.filter(f=>f.type===l).map(f=>(0,Ye.jsxs)("div",{className:"flex items-center space-Ye-2",children:[(0,Ye.jsx)(ie,{id:f.id.toString(),checked:i.categories?.includes(f.id),onCheckedChange:()=>R(f)}),(0,Ye.jsx)("label",{htmlFor:f.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:f.name})]},f.id))})]},l))})]}),(0,Ye.jsxs)("div",{className:"space-y-2 space-Ye-2",children:[(0,Ye.jsx)(E,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ye.jsx)(X,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:l=>u({...i,closureDate:l.target.value})}),y.closureDate&&(0,Ye.jsx)("p",{className:"text-red-500 text-sm",children:y.closureDate})]})]})}),(0,Ye.jsx)(G,{type:"submit",className:"w-full",children:a?"Update Deal":"Add Deal"})]}),(0,Ye.jsx)(de,{open:P,onOpenChange:w,children:(0,Ye.jsxs)(te,{children:[(0,Ye.jsx)(re,{children:(0,Ye.jsx)(oe,{children:"Add New Customer"})}),(0,Ye.jsx)(xt,{onSubmit:b})]})})]})}function yr({status:e,deals:t,users:r,customers:o,categories:a,onDealClick:s,calculateColumnValue:c,calculateWeightedValue:i,addNewDeal:u,onAddCustomer:P,compact:w=!1}){let[y,C]=(0,St.useState)(!1);return(0,Ye.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Ye.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),u&&(0,Ye.jsxs)(de,{open:y,onOpenChange:C,children:[(0,Ye.jsx)(tt,{asChild:!0,children:(0,Ye.jsxs)(G,{className:"mb-4 w-full",children:[(0,Ye.jsx)(et.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Ye.jsxs)(te,{children:[(0,Ye.jsx)(re,{children:(0,Ye.jsx)(oe,{children:"Add New Deal"})}),(0,Ye.jsx)(Ct,{customers:o,users:r,categories:a,onSubmit:u,onAddCustomer:P??(async()=>Promise.resolve({success:!1})),onClose:()=>C(!1)})]})]}),(0,Ye.jsx)(xe.Droppable,{droppableId:e,isDropDisabled:!1,children:T=>(0,Ye.jsxs)("div",{ref:T.innerRef,...T.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((D,R)=>(0,Ye.jsx)(xe.Draggable,{draggableId:D.id.toString(),index:D.id,children:b=>(0,Ye.jsx)("div",{ref:b.innerRef,...b.draggableProps,...b.dragHandleProps,children:(0,Ye.jsx)(st,{deal:D,customer:D.customer,categories:a,onClick:()=>s(D),compact:w})})},D.id.toString())),T.placeholder]})}),(0,Ye.jsxs)("div",{className:"Ye-4 text-sm p-3 rounded-lg shadow",children:[(0,Ye.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ye.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,Ye.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ye.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}0&&(module.exports={KanbanColumn});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-PFWODHNV.mjs";import"../../chunk-TASJS6US.mjs";import"../../chunk-ERUB6LU6.mjs";import"../../chunk-FFESN4FM.mjs";import"../../chunk-OGZERPA4.mjs";import"../../chunk-6T322YHB.mjs";import"../../chunk-KJIBE57R.mjs";import"../../chunk-CX4XB5W2.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-JPZJET3B.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as KanbanColumn};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var Mt=Object.create;var ce=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var It=Object.getOwnPropertyNames;var Et=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty;var Ht=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Oe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of It(t))!zt.call(e,a)&&a!==r&&ce(e,a,{get:()=>t[a],enumerable:!(o=Lt(t,a))||o.enumerable});return e};var T=(e,t,r)=>(r=e!=null?Mt(Et(e)):{},Oe(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),Bt=e=>Oe(ce({},"__esModule",{value:!0}),e);var Ar={};Ht(Ar,{Default:()=>Tt,EmptyColumn:()=>Dr,default:()=>Nr});module.exports=Bt(Ar);var Nt=require("react");var Xe=require("clsx");var Pe="-",Vt=e=>{let t=Wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let i=c.split(Pe);return i[0]===""&&i.length!==1&&i.shift(),Ke(i,t)||Gt(c)},getConflictingClassGroupIds:(c,i)=>{let u=r[c]||[];return i&&o[c]?[...u,...o[c]]:u}}},Ke=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?Ke(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Pe);return t.validators.find(({validator:c})=>c(s))?.classGroupId},je=/^\[(.+)\]$/,Gt=e=>{if(je.test(e)){let t=je.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Wt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ut(Object.entries(e.classGroups),r).forEach(([s,c])=>{Se(c,o,s,t)}),o},Se=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:_e(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Ft(a)){Se(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,c])=>{Se(c,_e(t,s),r,o)})})},_e=(e,t)=>{let r=e;return t.split(Pe).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ft=e=>e.isThemeGetter,Ut=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,i])=>[t+c,i])):s);return[r,a]}):e,Ot=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return a(s,c),c},set(s,c){r.has(s)?r.set(s,c):a(s,c)}}},qe="!",jt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,c=i=>{let u=[],P=0,C=0,v;for(let y=0;y<i.length;y++){let A=i[y];if(P===0){if(A===a&&(o||i.slice(y,y+s)===t)){u.push(i.slice(C,y)),C=y+s;continue}if(A==="/"){v=y;continue}}A==="["?P++:A==="]"&&P--}let x=u.length===0?i:i.substring(C),D=x.startsWith(qe),M=D?x.substring(1):x,h=v&&v>C?v-C:void 0;return{modifiers:u,hasImportantModifier:D,baseClassName:M,maybePostfixModifierPosition:h}};return r?i=>r({className:i,parseClassName:c}):c},_t=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Kt=e=>({cache:Ot(e.cacheSize),parseClassName:jt(e),...Vt(e)}),qt=/\s+/,$t=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],c=e.trim().split(qt),i="";for(let u=c.length-1;u>=0;u-=1){let P=c[u],{modifiers:C,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:D}=r(P),M=!!D,h=o(M?x.substring(0,D):x);if(!h){if(!M){i=P+(i.length>0?" "+i:i);continue}if(h=o(x),!h){i=P+(i.length>0?" "+i:i);continue}M=!1}let y=_t(C).join(":"),A=v?y+qe:y,k=A+h;if(s.includes(k))continue;s.push(k);let l=a(h,M);for(let f=0;f<l.length;++f){let K=l[f];s.push(A+K)}i=P+(i.length>0?" "+i:i)}return i};function Jt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=$e(t))&&(o&&(o+=" "),o+=r);return o}var $e=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=$e(e[o]))&&(r&&(r+=" "),r+=t);return r};function Zt(e,...t){let r,o,a,s=c;function c(u){let P=t.reduce((C,v)=>v(C),e());return r=Kt(P),o=r.cache.get,a=r.cache.set,s=i,i(u)}function i(u){let P=o(u);if(P)return P;let C=$t(u,r);return a(u,C),C}return function(){return s(Jt.apply(null,arguments))}}var g=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Je=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qt=/^\d+\/\d+$/,Xt=new Set(["px","full","screen"]),Yt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,er=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(rt|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)ot-?((\d+)?\.?(\d+)[a-z]+|0)/,or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>q(e)||Xt.has(e)||Qt.test(e),V=e=>$(e,"length",mr),q=e=>!!e&&!Number.isNaN(Number(e)),Ce=e=>$(e,"number",q),X=e=>!!e&&Number.isInteger(Number(e)),ar=e=>e.endsWith("%")&&q(e.slice(0,-1)),d=e=>Je.test(e),G=e=>Yt.test(e),ir=new Set(["length","size","percentage"]),sr=e=>$(e,ir,Ze),nr=e=>$(e,"position",Ze),lr=new Set(["image","url"]),cr=e=>$(e,lr,ur),dr=e=>$(e,"",pr),Y=()=>!0,$=(e,t,r)=>{let o=Je.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},mr=e=>er.test(e)&&!tr.test(e),Ze=()=>!1,pr=e=>rr.test(e),ur=e=>or.test(e);var fr=()=>{let e=g("colors"),t=g("spacing"),r=g("blur"),o=g("brightness"),a=g("borderColor"),s=g("borderRadius"),c=g("borderSpacing"),i=g("borderWidth"),u=g("contrast"),P=g("grayscale"),C=g("hueRotate"),v=g("invert"),x=g("gap"),D=g("gradientColorStops"),M=g("gradientColorStopPositions"),h=g("inset"),y=g("margin"),A=g("opacity"),k=g("padding"),l=g("saturate"),f=g("scale"),K=g("sepia"),He=g("skew"),Be=g("space"),Ve=g("translate"),he=()=>["auto","contain","none"],ye=()=>["auto","hidden","clip","visible","scroll"],xe=()=>["auto",d,t],b=()=>[d,t],Ge=()=>["",B,V],ne=()=>["auto",q,d],We=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",d],Ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[q,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[B,V],blur:["none","",G,d],brightness:H(),borderColor:[e],borderRadius:["none","","full",G,d],borderSpacing:b(),borderWidth:Ge(),contrast:H(),grayscale:Q(),hueRotate:H(),invert:Q(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[ar,V],inset:xe(),margin:xe(),opacity:H(),padding:b(),saturate:H(),scale:H(),sepia:Q(),skew:H(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":Ue()}],"break-before":[{"break-before":Ue()}],"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:[...We(),d]}],overflow:[{overflow:ye()}],"overflow-x":[{"overflow-x":ye()}],"overflow-y":[{"overflow-y":ye()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",X,d]}],basis:[{basis:xe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",X,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",X,d]},d]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[X,d]},d]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...we()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...we(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...we(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],ot:[{ot:[y]}],rt:[{rt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Be]}],"space-y-reverse":["space-y-reverse"],rt:[{rt:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-rt":[{"min-rt":[d,t,"min","max","fit"]}],"max-rt":[{"max-rt":[d,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ce]}],"font-family":[{font:[Y]}],"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",d]}],"line-clamp":[{"line-clamp":["none",q,Ce]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,V]}],"underline-offset":[{"underline-offset":["auto",B,d]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...We(),nr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[D]}],"gradient-via":[{via:[D]}],"gradient-to":[{to:[D]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-rt":[{border:[i]}],"border-rt-x":[{"border-x":[i]}],"border-rt-y":[{"border-y":[i]}],"border-rt-s":[{"border-s":[i]}],"border-rt-e":[{"border-e":[i]}],"border-rt-t":[{"border-t":[i]}],"border-rt-r":[{"border-r":[i]}],"border-rt-b":[{"border-b":[i]}],"border-rt-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[B,d]}],"outline-rt":[{outline:[B,V]}],"outline-color":[{outline:[e]}],"ring-rt":[{ring:Ge()}],"ring-rt-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-rt":[{"ring-offset":[B,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,dr]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Fe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",G,d]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[v]}],saturate:[{saturate:[l]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[l]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"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",d]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[f]}],"scale-x":[{"scale-x":[f]}],"scale-y":[{"scale-y":[f]}],rotate:[{rotate:[X,d]}],"translate-x":[{"translate-x":[Ve]}],"translate-y":[{"translate-y":[Ve]}],"skew-x":[{"skew-x":[He]}],"skew-y":[{"skew-y":[He]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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","rt-resize","e-resize","s-resize","rt-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-ot":[{"scroll-ot":b()}],"scroll-rt":[{"scroll-rt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",d]}],fill:[{fill:[e,"none"]}],"stroke-rt":[{stroke:[B,V,Ce]}],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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","ot","rt","mr","mb","ml"],mx:["mr","ml"],my:["rt","mb"],size:["rt","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-rt":["border-rt-s","border-rt-e","border-rt-t","border-rt-r","border-rt-b","border-rt-l"],"border-rt-x":["border-rt-r","border-rt-l"],"border-rt-y":["border-rt-t","border-rt-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-ot","scroll-rt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-rt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Qe=Zt(fr);function m(...e){return Qe((0,Xe.clsx)(e))}var Ye=require("@radix-ui/react-slot"),et=require("class-variance-authority"),tt=T(require("react")),rt=require("react/jsx-runtime"),gr=(0,et.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 rt-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=tt.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,rt.jsx)(e?Ye.Slot:"button",{className:m(gr({className:t,size:r,variant:o})),ref:s,...a}));W.displayName="Button";var ee=T(require("react")),R=T(require("@radix-ui/react-dialog")),ot=require("lucide-react");var de=R.Root,at=R.Trigger,br=R.Portal;var it=ee.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(R.Overlay,{ref:r,className:m("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}));it.displayName=R.Overlay.displayName;var te=ee.forwardRef(({className:e,children:t,...r},o)=>(0,rt.jsxs)(br,{children:[(0,rt.jsx)(it,{}),(0,rt.jsxs)(R.Content,{ref:o,className:m("fixed left-[50%] top-[50%] z-50 grid rt-full max-rt-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),...r,children:[t,(0,rt.jsxs)(R.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,rt.jsx)(ot.X,{className:"h-4 rt-4"}),(0,rt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));te.displayName=R.Content.displayName;var re=({className:e,...t})=>(0,rt.jsx)("div",{className:m("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});re.displayName="DialogHeader";var vr=({className:e,...t})=>(0,rt.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});vr.displayName="DialogFooter";var oe=ee.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(R.Title,{ref:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));oe.displayName=R.Title.displayName;var hr=ee.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(R.Description,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));hr.displayName=R.Description.displayName;var O=T(require("react"));var Re=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Re.displayName="Card";var Ne=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("flex flex-col space-y-1.5 p-6",e),...t}));Ne.displayName="CardHeader";var De=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("font-semibold leading-none tracking-tight",e),...t}));De.displayName="CardTitle";var yr=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("text-sm text-muted-foreground",e),...t}));yr.displayName="CardDescription";var Ae=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("p-6 pt-0",e),...t}));Ae.displayName="CardContent";var xr=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("flex items-center p-6 pt-0",e),...t}));xr.displayName="CardFooter";var wr=(0,et.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 nt({className:e,variant:t,...r}){return(0,rt.jsx)("div",{className:m(wr({variant:t}),e),...r})}function ct({deal:e,customer:t,categories:r,onClick:o}){let a=r.find(s=>s.type==="proposition"&&(e.categories??[]).includes(s.id));return(0,rt.jsxs)(Re,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,rt.jsxs)(Ne,{className:"pb-2",children:[(0,rt.jsx)("div",{className:"flex justify-between items-center",children:(0,rt.jsx)(De,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,rt.jsx)("p",{className:"text-sm text-gray-500 rt-1",children:e.description})]}),(0,rt.jsxs)(Ae,{children:[(0,rt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,rt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,rt.jsx)(ot.UserIcon,{className:"rt-4 h-4 mr-1 text-xs"}),(0,rt.jsx)("span",{children:e.assignee.name})]}),(0,rt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,rt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,rt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,rt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,rt.jsx)(ot.CalendarIcon,{className:"rt-3 h-3 mr-1"}),(0,rt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,rt.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,rt.jsx)(nt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}var be=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");var dt=T(require("react"));var J=dt.forwardRef(({className:e,type:t,...r},o)=>(0,rt.jsx)("input",{type:t,className:m("flex h-9 rt-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:o,...r}));J.displayName="Input";var pt=T(require("react")),ke=T(require("@radix-ui/react-label"));var Cr=(0,et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),E=pt.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(ke.Root,{ref:r,className:m(Cr(),e),...t}));E.displayName=ke.Root.displayName;var p=T(require("@radix-ui/react-select")),F=T(require("react")),Te=p.Root;var Me=p.Value,pe=F.forwardRef(({children:e,className:t,...r},o)=>(0,rt.jsxs)(p.Trigger,{className:m("flex h-10 rt-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:o,...r,children:[e,(0,rt.jsx)(p.Icon,{asChild:!0,children:(0,rt.jsx)(ot.ChevronDown,{className:"h-4 rt-4 opacity-50"})})]}));pe.displayName=p.Trigger.displayName;var gt=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,rt.jsx)(ot.ChevronUp,{className:"h-4 rt-4"})}));gt.displayName=p.ScrollUpButton.displayName;var bt=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,rt.jsx)(ot.ChevronDown,{className:"h-4 rt-4"})}));bt.displayName=p.ScrollDownButton.displayName;var ue=F.forwardRef(({children:e,className:t,position:r="popper",...o},a)=>(0,rt.jsx)(p.Portal,{children:(0,rt.jsxs)(p.Content,{className:m("relative z-50 max-h-96 min-rt-[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",r==="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:r,ref:a,...o,children:[(0,rt.jsx)(gt,{}),(0,rt.jsx)(p.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] rt-full min-rt-[var(--radix-select-trigger-width)]"),children:e}),(0,rt.jsx)(bt,{})]})}));ue.displayName=p.Content.displayName;var Sr=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Sr.displayName=p.Label.displayName;var fe=F.forwardRef(({children:e,className:t,...r},o)=>(0,rt.jsxs)(p.Item,{className:m("relative flex rt-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:o,...r,children:[(0,rt.jsx)("span",{className:"absolute left-2 flex h-3.5 rt-3.5 items-center justify-center",children:(0,rt.jsx)(p.ItemIndicator,{children:(0,rt.jsx)(ot.Check,{className:"h-4 rt-4"})})}),(0,rt.jsx)(p.ItemText,{children:e})]}));fe.displayName=p.Item.displayName;var Pr=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Pr.displayName=p.Separator.displayName;var ae=T(require("@radix-ui/react-checkbox")),ht=T(require("react")),ie=ht.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(ae.Root,{className:m("peer h-4 rt-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:r,...t,children:(0,rt.jsx)(ae.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,rt.jsx)(ot.Check,{className:"h-4 rt-4"})})}));ie.displayName=ae.Root.displayName;var yt=T(require("react")),se=yt.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("textarea",{className:m("flex min-h-[80px] rt-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:r,...t}));se.displayName="Textarea";var Le=T(require("react")),z=T(require("@radix-ui/react-scroll-area"));var Ie=Le.forwardRef(({className:e,children:t,...r},o)=>(0,rt.jsxs)(z.Root,{ref:o,className:m("relative overflow-hidden",e),...r,children:[(0,rt.jsx)(z.Viewport,{className:"h-full rt-full rounded-[inherit]",children:t}),(0,rt.jsx)(wt,{}),(0,rt.jsx)(z.Corner,{})]}));Ie.displayName=z.Root.displayName;var wt=Le.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,rt.jsx)(z.ScrollAreaScrollbar,{ref:o,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"h-full rt-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,rt.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));wt.displayName=z.ScrollAreaScrollbar.displayName;function St({onSubmit:e}){let[t,r]=(0,Nt.useState)({name:"",intro:"",active:!1});return(0,rt.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(E,{htmlFor:"customerName",children:"Customer Name"}),(0,rt.jsx)(J,{id:"customerName",value:t.name,onChange:a=>r({...t,name:a.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(E,{htmlFor:"customerIntro",children:"Intro"}),(0,rt.jsx)(se,{id:"customerIntro",value:t.intro??"",onChange:a=>r({...t,intro:a.target.value}),placeholder:"Enter customer intro"})]}),(0,rt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,rt.jsx)(ie,{id:"activeCustomer",checked:!!t.active,onCheckedChange:a=>r({...t,active:a})}),(0,rt.jsx)(E,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,rt.jsx)(W,{type:"submit",className:"rt-full",children:"Add Customer"})]})}function Rt({customers:e,users:t,categories:r,onSubmit:o,initialDeal:a,onAddCustomer:s,onClose:c}){let[i,u]=(0,Nt.useState)(a||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[P,C]=(0,Nt.useState)(!1),[v,x]=(0,Nt.useState)({});(0,Nt.useEffect)(()=>{a&&u(a)},[a]);let D=()=>{let l={};return i.customer||(l.customer="Customer is required"),i.value||(l.value="Value is required"),i.assignee||(l.assignee="Assignee is required"),i.closureDate||(l.closureDate="Closure Date is required"),x(l),Object.keys(l).length===0},M=async l=>{l.preventDefault(),x({});try{if(D()){let f=await o({...i});f.success?(u({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),c?.()):x(f.errors||{})}}catch{x({submit:"An error occurred while submitting the form."})}},h=l=>{u(f=>({...f,categories:(f.categories||[]).includes(l.id)?(f.categories||[]).filter(K=>K!==l.id):[...f.categories||[],l.id]}))},y=async l=>{u({...i,customer:l});try{let f=await s(l);f.success?C(!1):x(f.errors||{})}catch{x({submit:"An error occurred while submitting the form."})}},A=l=>t?.find(f=>f.id===Number(l)),k=l=>e?.find(f=>f.id===Number(l));return(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsxs)("form",{onSubmit:M,className:"space-y-6",children:[(0,rt.jsx)(Ie,{className:"h-[60vh] pr-4",children:(0,rt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,rt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,rt.jsx)(E,{htmlFor:"customer",children:"Customer"}),(0,rt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,rt.jsxs)(Te,{value:i.customer?.id?.toString(),onValueChange:l=>u({...i,customer:k(l)}),children:[(0,rt.jsx)(pe,{children:(0,rt.jsx)(Me,{placeholder:"Select customer"})}),(0,rt.jsx)(ue,{children:e.map(l=>(0,rt.jsx)(fe,{value:l.id?.toString()||"",children:l.name},l.id))})]}),(0,rt.jsx)(W,{variant:"outline",size:"icon",onClick:()=>C(!0),children:(0,rt.jsx)(ot.PlusIcon,{className:"rt-5 h-5"})})]}),v.customerId&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:v.customerId})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,rt.jsx)(E,{htmlFor:"value",children:"Value"}),(0,rt.jsx)(J,{id:"value",type:"number",value:i.value||"",onChange:l=>u({...i,value:Number.parseFloat(l.target.value)}),placeholder:"Enter deal value"}),v.value&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:v.value})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,rt.jsx)(E,{htmlFor:"assignee",children:"Assignee"}),(0,rt.jsxs)(Te,{value:i.assignee?.id?.toString(),onValueChange:l=>u({...i,assignee:A(l)}),children:[(0,rt.jsx)(pe,{children:(0,rt.jsx)(Me,{placeholder:"Select assignee"})}),(0,rt.jsx)(ue,{children:t&&t.map(l=>(0,rt.jsx)(fe,{value:l.id?.toString()||"",children:l.name},l.id))})]}),v.assignee&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:v.assignee})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,rt.jsx)(E,{htmlFor:"description",children:"Description"}),(0,rt.jsx)(se,{id:"description",value:i.description||"",onChange:l=>u({...i,description:l.target.value}),placeholder:"Enter deal description"})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,rt.jsx)(E,{children:"Categories"}),(0,rt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(l=>(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)("h4",{className:"text-sm font-medium",children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,rt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.filter(f=>f.type===l).map(f=>(0,rt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,rt.jsx)(ie,{id:f.id.toString(),checked:i.categories?.includes(f.id),onCheckedChange:()=>h(f)}),(0,rt.jsx)("label",{htmlFor:f.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:f.name})]},f.id))})]},l))})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,rt.jsx)(E,{htmlFor:"closureDate",children:"Closure Date"}),(0,rt.jsx)(J,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:l=>u({...i,closureDate:l.target.value})}),v.closureDate&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:v.closureDate})]})]})}),(0,rt.jsx)(W,{type:"submit",className:"rt-full",children:a?"Update Deal":"Add Deal"})]}),(0,rt.jsx)(de,{open:P,onOpenChange:C,children:(0,rt.jsxs)(te,{children:[(0,rt.jsx)(re,{children:(0,rt.jsx)(oe,{children:"Add New Customer"})}),(0,rt.jsx)(St,{onSubmit:y})]})})]})}function At({status:e,deals:t,users:r,customers:o,categories:a,onDealClick:s,calculateColumnValue:c,calculateWeightedValue:i,addNewDeal:u,onAddCustomer:P}){let[C,v]=(0,Nt.useState)(!1);return(0,rt.jsxs)("div",{className:"flex flex-col rt-80",children:[(0,rt.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),u&&(0,rt.jsxs)(de,{open:C,onOpenChange:v,children:[(0,rt.jsx)(at,{asChild:!0,children:(0,rt.jsxs)(W,{className:"mb-4 rt-full",children:[(0,rt.jsx)(ot.PlusCircle,{className:"mr-2 h-4 rt-4"}),"Add New Deal"]})}),(0,rt.jsxs)(te,{children:[(0,rt.jsx)(re,{children:(0,rt.jsx)(oe,{children:"Add New Deal"})}),(0,rt.jsx)(Rt,{customers:o,users:r,categories:a,onSubmit:u,onAddCustomer:P,onClose:()=>v(!1)})]})]}),(0,rt.jsx)(be.Droppable,{droppableId:e,isDropDisabled:!1,children:x=>(0,rt.jsxs)("div",{ref:x.innerRef,...x.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((D,M)=>(0,rt.jsx)(be.Draggable,{draggableId:D.id.toString(),index:D.id,children:h=>(0,rt.jsx)("div",{ref:h.innerRef,...h.draggableProps,...h.dragHandleProps,children:(0,rt.jsx)(ct,{deal:D,customer:D.customer,categories:a,onClick:()=>s(D)})})},D.id.toString())),x.placeholder]})}),(0,rt.jsxs)("div",{className:"rt-4 text-sm p-3 rounded-lg shadow",children:[(0,rt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,rt.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,rt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,rt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var ze=[{id:1,name:"Acme Corp",intro:"A leading technology company",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"GlobalTech",intro:"Innovative solutions provider",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"InnoSystems",intro:"Cutting-edge software development",active:!1,createdAt:"2023-01-01",updatedAt:"2023-01-01"}],ve=[{id:1,name:"Software",type:"proposition",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"Hardware",type:"proposition",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"Referral",type:"source",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:4,name:"Outbound",type:"source",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:5,name:"Tech",type:"sector",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:6,name:"Finance",type:"sector",createdAt:"2023-01-01",updatedAt:"2023-01-01"}],Ee=[{id:1,name:"John Doe",email:"john.doe@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"Jane Smith",email:"jane.smith@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"Bob Johnson",email:"bob.johnson@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:4,name:"Alice Brown",email:"alice.brown@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:5,name:"Charlie Davis",email:"charlie.davis@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"}],kt=[{id:1,customer:ze[0],value:5e4,assignee:Ee[2],status:"Qualified",categories:ve.slice(0,3),dateLogged:"2023-01-15",closureDate:"2023-06-30",updatedAt:"2023-05-01T10:00:00Z",createdAt:"2023-01-01",comments:[{id:"1",text:"Initial contact made",author:Ee[5],timestamp:"2023-01-15T09:00:00Z"}],description:"Potential software solution for Acme Corp"},{id:2,customer:{id:2,name:"GlobalTech",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},value:75e3,assignee:{id:2,name:"Jane Smith",email:"jane.smith@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},status:"Proposal Made",categories:ve.slice(0,3),dateLogged:"2023-02-01",closureDate:"2023-07-31",updatedAt:"2023-05-10T14:30:00Z",createdAt:"2023-01-01",comments:[{id:"2",text:"Proposal sent",author:Ee[1],timestamp:"2023-02-15T09:00:00Z"}],description:"Custom hardware solution for GlobalTech"}];var Rr={title:"CRM/KanbanColumn",component:At,parameters:{layout:"centered"}},Nr=Rr,Tt={args:{status:"Qualified",deals:kt.filter(e=>e.status==="Qualified"),customers:ze,categories:ve,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((t,r)=>t+r.value,0),calculateWeightedValue:(e,t)=>{let r={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return e.reduce((o,a)=>o+a.value*r[t],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},Dr={args:{...Tt.args,status:"Won",deals:[]}};0&&(module.exports={Default,EmptyColumn});
|
|
4
|
+
"use strict";var Mt=Object.create;var ce=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var It=Object.getOwnPropertyNames;var Et=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty;var Ht=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Oe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of It(t))!zt.call(e,a)&&a!==r&&ce(e,a,{get:()=>t[a],enumerable:!(o=Lt(t,a))||o.enumerable});return e};var M=(e,t,r)=>(r=e!=null?Mt(Et(e)):{},Oe(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),Bt=e=>Oe(ce({},"__esModule",{value:!0}),e);var Ar={};Ht(Ar,{Default:()=>Tt,EmptyColumn:()=>Dr,default:()=>Nr});module.exports=Bt(Ar);var Nt=require("react");var Xe=require("clsx");var Ae="-",Vt=e=>{let t=Wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let i=c.split(Ae);return i[0]===""&&i.length!==1&&i.shift(),Ke(i,t)||Gt(c)},getConflictingClassGroupIds:(c,i)=>{let u=r[c]||[];return i&&o[c]?[...u,...o[c]]:u}}},Ke=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?Ke(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Ae);return t.validators.find(({validator:c})=>c(s))?.classGroupId},je=/^\[(.+)\]$/,Gt=e=>{if(je.test(e)){let t=je.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Wt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ut(Object.entries(e.classGroups),r).forEach(([s,c])=>{De(c,o,s,t)}),o},De=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:_e(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Ft(a)){De(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,c])=>{De(c,_e(t,s),r,o)})})},_e=(e,t)=>{let r=e;return t.split(Ae).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ft=e=>e.isThemeGetter,Ut=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,i])=>[t+c,i])):s);return[r,a]}):e,Ot=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return a(s,c),c},set(s,c){r.has(s)?r.set(s,c):a(s,c)}}},qe="!",jt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,c=i=>{let u=[],P=0,w=0,y;for(let b=0;b<i.length;b++){let A=i[b];if(P===0){if(A===a&&(o||i.slice(b,b+s)===t)){u.push(i.slice(w,b)),w=b+s;continue}if(A==="/"){y=b;continue}}A==="["?P++:A==="]"&&P--}let C=u.length===0?i:i.substring(w),k=C.startsWith(qe),D=k?C.substring(1):C,R=y&&y>w?y-w:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:D,maybePostfixModifierPosition:R}};return r?i=>r({className:i,parseClassName:c}):c},_t=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Kt=e=>({cache:Ot(e.cacheSize),parseClassName:jt(e),...Vt(e)}),qt=/\s+/,$t=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],c=e.trim().split(qt),i="";for(let u=c.length-1;u>=0;u-=1){let P=c[u],{modifiers:w,hasImportantModifier:y,baseClassName:C,maybePostfixModifierPosition:k}=r(P),D=!!k,R=o(D?C.substring(0,k):C);if(!R){if(!D){i=P+(i.length>0?" "+i:i);continue}if(R=o(C),!R){i=P+(i.length>0?" "+i:i);continue}D=!1}let b=_t(w).join(":"),A=y?b+qe:b,T=A+R;if(s.includes(T))continue;s.push(T);let l=a(R,D);for(let f=0;f<l.length;++f){let K=l[f];s.push(A+K)}i=P+(i.length>0?" "+i:i)}return i};function Jt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=$e(t))&&(o&&(o+=" "),o+=r);return o}var $e=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=$e(e[o]))&&(r&&(r+=" "),r+=t);return r};function Zt(e,...t){let r,o,a,s=c;function c(u){let P=t.reduce((w,y)=>y(w),e());return r=Kt(P),o=r.cache.get,a=r.cache.set,s=i,i(u)}function i(u){let P=o(u);if(P)return P;let w=$t(u,r);return a(u,w),w}return function(){return s(Jt.apply(null,arguments))}}var v=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Je=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qt=/^\d+\/\d+$/,Xt=new Set(["px","full","screen"]),Yt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,er=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)ot-?((\d+)?\.?(\d+)[a-z]+|0)/,or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>q(e)||Xt.has(e)||Qt.test(e),V=e=>$(e,"length",mr),q=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>$(e,"number",q),X=e=>!!e&&Number.isInteger(Number(e)),ar=e=>e.endsWith("%")&&q(e.slice(0,-1)),d=e=>Je.test(e),G=e=>Yt.test(e),ir=new Set(["length","size","percentage"]),sr=e=>$(e,ir,Ze),nr=e=>$(e,"position",Ze),lr=new Set(["image","url"]),cr=e=>$(e,lr,ur),dr=e=>$(e,"",pr),Y=()=>!0,$=(e,t,r)=>{let o=Je.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},mr=e=>er.test(e)&&!tr.test(e),Ze=()=>!1,pr=e=>rr.test(e),ur=e=>or.test(e);var fr=()=>{let e=v("colors"),t=v("spacing"),r=v("blur"),o=v("brightness"),a=v("borderColor"),s=v("borderRadius"),c=v("borderSpacing"),i=v("borderWidth"),u=v("contrast"),P=v("grayscale"),w=v("hueRotate"),y=v("invert"),C=v("gap"),k=v("gradientColorStops"),D=v("gradientColorStopPositions"),R=v("inset"),b=v("margin"),A=v("opacity"),T=v("padding"),l=v("saturate"),f=v("scale"),K=v("sepia"),He=v("skew"),Be=v("space"),Ve=v("translate"),Ce=()=>["auto","contain","none"],Se=()=>["auto","hidden","clip","visible","scroll"],Pe=()=>["auto",d,t],h=()=>[d,t],Ge=()=>["",B,V],ne=()=>["auto",q,d],We=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",d],Ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[q,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[B,V],blur:["none","",G,d],brightness:H(),borderColor:[e],borderRadius:["none","","full",G,d],borderSpacing:h(),borderWidth:Ge(),contrast:H(),grayscale:Q(),hueRotate:H(),invert:Q(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[ar,V],inset:Pe(),margin:Pe(),opacity:H(),padding:h(),saturate:H(),scale:H(),sepia:Q(),skew:H(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":Ue()}],"break-before":[{"break-before":Ue()}],"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:[...We(),d]}],overflow:[{overflow:Se()}],"overflow-rt":[{"overflow-rt":Se()}],"overflow-y":[{"overflow-y":Se()}],overscroll:[{overscroll:Ce()}],"overscroll-rt":[{"overscroll-rt":Ce()}],"overscroll-y":[{"overscroll-y":Ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-rt":[{"inset-rt":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",X,d]}],basis:[{basis:Pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",X,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",X,d]},d]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[X,d]},d]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[C]}],"gap-rt":[{"gap-rt":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...Re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],rt:[{rt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-rt":[{"space-rt":[Be]}],"space-rt-reverse":["space-rt-reverse"],"space-y":[{"space-y":[Be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ne]}],"font-family":[{font:[Y]}],"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",d]}],"line-clamp":[{"line-clamp":["none",q,Ne]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,V]}],"underline-offset":[{"underline-offset":["auto",B,d]}],"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:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...We(),nr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","rt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-rt":[{"border-rt":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...le(),"hidden"]}],"divide-rt":[{"divide-rt":[i]}],"divide-rt-reverse":["divide-rt-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-rt":[{"border-rt":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[B,d]}],"outline-w":[{outline:[B,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[B,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,dr]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Fe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",G,d]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[y]}],saturate:[{saturate:[l]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[l]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-rt":[{"border-spacing-rt":[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",d]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[f]}],"scale-rt":[{"scale-rt":[f]}],"scale-y":[{"scale-y":[f]}],rotate:[{rotate:[X,d]}],"translate-rt":[{"translate-rt":[Ve]}],"translate-y":[{"translate-y":[Ve]}],"skew-rt":[{"skew-rt":[He]}],"skew-y":[{"skew-y":[He]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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","rt-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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","rt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-rt":[{"scroll-rt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","rt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-rt":[{"touch-pan":["rt","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",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,V,Ne]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-rt","overflow-y"],overscroll:["overscroll-rt","overscroll-y"],inset:["inset-rt","inset-y","start","end","top","right","bottom","left"],"inset-rt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-rt","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","rt","mr","mb","ml"],mx:["mr","ml"],my:["rt","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-rt","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-rt":["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-rt":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-rt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-rt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-rt","touch-y","touch-pz"],"touch-rt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Qe=Zt(fr);function m(...e){return Qe((0,Xe.clsx)(e))}var Ye=require("@radix-ui/react-slot"),et=require("class-variance-authority"),tt=M(require("react")),rt=require("react/jsx-runtime"),gr=(0,et.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=tt.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,rt.jsx)(e?Ye.Slot:"button",{className:m(gr({className:t,size:r,variant:o})),ref:s,...a}));W.displayName="Button";var ee=M(require("react")),N=M(require("@radix-ui/react-dialog")),ot=require("lucide-react");var de=N.Root,at=N.Trigger,br=N.Portal;var it=ee.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(N.Overlay,{ref:r,className:m("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}));it.displayName=N.Overlay.displayName;var te=ee.forwardRef(({className:e,children:t,...r},o)=>(0,rt.jsxs)(br,{children:[(0,rt.jsx)(it,{}),(0,rt.jsxs)(N.Content,{ref:o,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-rt-[-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),...r,children:[t,(0,rt.jsxs)(N.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,rt.jsx)(ot.X,{className:"h-4 w-4"}),(0,rt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));te.displayName=N.Content.displayName;var re=({className:e,...t})=>(0,rt.jsx)("div",{className:m("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});re.displayName="DialogHeader";var vr=({className:e,...t})=>(0,rt.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-rt-2",e),...t});vr.displayName="DialogFooter";var oe=ee.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(N.Title,{ref:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));oe.displayName=N.Title.displayName;var hr=ee.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(N.Description,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));hr.displayName=N.Description.displayName;var O=M(require("react"));var me=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));me.displayName="Card";var pe=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("flex flex-col space-y-1.5 p-6",e),...t}));pe.displayName="CardHeader";var ue=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("font-semibold leading-none tracking-tight",e),...t}));ue.displayName="CardTitle";var yr=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("text-sm text-muted-foreground",e),...t}));yr.displayName="CardDescription";var fe=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("p-6 pt-0",e),...t}));fe.displayName="CardContent";var xr=O.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("div",{ref:r,className:m("flex items-center p-6 pt-0",e),...t}));xr.displayName="CardFooter";var wr=(0,et.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 nt({className:e,variant:t,...r}){return(0,rt.jsx)("div",{className:m(wr({variant:t}),e),...r})}function ct({deal:e,customer:t,categories:r,onClick:o,compact:a=!1}){let s=r.find(c=>c.type==="proposition"&&(e.categories??[]).includes(c.id));return a?(0,rt.jsxs)(me,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,rt.jsxs)(pe,{className:"pb-1 pt-2",children:[(0,rt.jsx)(ue,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,rt.jsx)("p",{className:"text-sm text-gray-500 rt-1",children:e.description})]}),(0,rt.jsx)(fe,{className:"text-xs text-gray-500 pb-2",children:(0,rt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,rt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,rt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,rt.jsxs)(me,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,rt.jsxs)(pe,{className:"pb-2",children:[(0,rt.jsx)("div",{className:"flex justify-between items-center",children:(0,rt.jsx)(ue,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,rt.jsx)("p",{className:"text-sm text-gray-500 rt-1",children:e.description})]}),(0,rt.jsxs)(fe,{children:[(0,rt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,rt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,rt.jsx)(ot.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,rt.jsx)("span",{children:e.assignee.name})]}),(0,rt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,rt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,rt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,rt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,rt.jsx)(ot.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,rt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,rt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,rt.jsx)(nt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var xe=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");var dt=M(require("react"));var J=dt.forwardRef(({className:e,type:t,...r},o)=>(0,rt.jsx)("input",{type:t,className:m("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:o,...r}));J.displayName="Input";var pt=M(require("react")),ke=M(require("@radix-ui/react-label"));var Cr=(0,et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),E=pt.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(ke.Root,{ref:r,className:m(Cr(),e),...t}));E.displayName=ke.Root.displayName;var p=M(require("@radix-ui/react-select")),F=M(require("react")),Te=p.Root;var Me=p.Value,be=F.forwardRef(({children:e,className:t,...r},o)=>(0,rt.jsxs)(p.Trigger,{className:m("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:o,...r,children:[e,(0,rt.jsx)(p.Icon,{asChild:!0,children:(0,rt.jsx)(ot.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));be.displayName=p.Trigger.displayName;var gt=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,rt.jsx)(ot.ChevronUp,{className:"h-4 w-4"})}));gt.displayName=p.ScrollUpButton.displayName;var bt=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,rt.jsx)(ot.ChevronDown,{className:"h-4 w-4"})}));bt.displayName=p.ScrollDownButton.displayName;var ve=F.forwardRef(({children:e,className:t,position:r="popper",...o},a)=>(0,rt.jsx)(p.Portal,{children:(0,rt.jsxs)(p.Content,{className:m("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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-rt-1 data-[side=right]:translate-rt-1 data-[side=top]:-translate-y-1",t),position:r,ref:a,...o,children:[(0,rt.jsx)(gt,{}),(0,rt.jsx)(p.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,rt.jsx)(bt,{})]})}));ve.displayName=p.Content.displayName;var Sr=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Sr.displayName=p.Label.displayName;var he=F.forwardRef(({children:e,className:t,...r},o)=>(0,rt.jsxs)(p.Item,{className:m("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:o,...r,children:[(0,rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,rt.jsx)(p.ItemIndicator,{children:(0,rt.jsx)(ot.Check,{className:"h-4 w-4"})})}),(0,rt.jsx)(p.ItemText,{children:e})]}));he.displayName=p.Item.displayName;var Pr=F.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Pr.displayName=p.Separator.displayName;var ae=M(require("@radix-ui/react-checkbox")),ht=M(require("react")),ie=ht.forwardRef(({className:e,...t},r)=>(0,rt.jsx)(ae.Root,{className:m("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:r,...t,children:(0,rt.jsx)(ae.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,rt.jsx)(ot.Check,{className:"h-4 w-4"})})}));ie.displayName=ae.Root.displayName;var yt=M(require("react")),se=yt.forwardRef(({className:e,...t},r)=>(0,rt.jsx)("textarea",{className:m("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:r,...t}));se.displayName="Textarea";var Le=M(require("react")),z=M(require("@radix-ui/react-scroll-area"));var Ie=Le.forwardRef(({className:e,children:t,...r},o)=>(0,rt.jsxs)(z.Root,{ref:o,className:m("relative overflow-hidden",e),...r,children:[(0,rt.jsx)(z.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,rt.jsx)(wt,{}),(0,rt.jsx)(z.Corner,{})]}));Ie.displayName=z.Root.displayName;var wt=Le.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,rt.jsx)(z.ScrollAreaScrollbar,{ref:o,orientation:t,className:m("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),...r,children:(0,rt.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));wt.displayName=z.ScrollAreaScrollbar.displayName;function St({onSubmit:e}){let[t,r]=(0,Nt.useState)({name:"",intro:"",active:!1});return(0,rt.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(E,{htmlFor:"customerName",children:"Customer Name"}),(0,rt.jsx)(J,{id:"customerName",value:t.name,onChange:a=>r({...t,name:a.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(E,{htmlFor:"customerIntro",children:"Intro"}),(0,rt.jsx)(se,{id:"customerIntro",value:t.intro??"",onChange:a=>r({...t,intro:a.target.value}),placeholder:"Enter customer intro"})]}),(0,rt.jsxs)("div",{className:"flex items-center space-rt-2",children:[(0,rt.jsx)(ie,{id:"activeCustomer",checked:!!t.active,onCheckedChange:a=>r({...t,active:a})}),(0,rt.jsx)(E,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,rt.jsx)(W,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Rt({customers:e,users:t,categories:r,onSubmit:o,initialDeal:a,onAddCustomer:s,onClose:c}){let[i,u]=(0,Nt.useState)(a||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[P,w]=(0,Nt.useState)(!1),[y,C]=(0,Nt.useState)({});(0,Nt.useEffect)(()=>{a&&u(a)},[a]);let k=()=>{let l={};return i.customer||(l.customer="Customer is required"),i.value||(l.value="Value is required"),i.assignee||(l.assignee="Assignee is required"),i.closureDate||(l.closureDate="Closure Date is required"),C(l),Object.keys(l).length===0},D=async l=>{l.preventDefault(),C({});try{if(k()){let f=await o({...i});f.success?(u({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),c?.()):C(f.errors||{})}}catch{C({submit:"An error occurred while submitting the form."})}},R=l=>{u(f=>({...f,categories:(f.categories||[]).includes(l.id)?(f.categories||[]).filter(K=>K!==l.id):[...f.categories||[],l.id]}))},b=async l=>{u({...i,customer:l});try{let f=await s(l);f.success?w(!1):C(f.errors||{})}catch{C({submit:"An error occurred while submitting the form."})}},A=l=>t?.find(f=>f.id===Number(l)),T=l=>e?.find(f=>f.id===Number(l));return(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsxs)("form",{onSubmit:D,className:"space-y-6",children:[(0,rt.jsx)(Ie,{className:"h-[60vh] pr-4",children:(0,rt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,rt.jsxs)("div",{className:"space-y-2 space-rt-2",children:[(0,rt.jsx)(E,{htmlFor:"customer",children:"Customer"}),(0,rt.jsxs)("div",{className:"flex items-center space-rt-2",children:[(0,rt.jsxs)(Te,{value:i.customer?.id?.toString(),onValueChange:l=>u({...i,customer:T(l)}),children:[(0,rt.jsx)(be,{children:(0,rt.jsx)(Me,{placeholder:"Select customer"})}),(0,rt.jsx)(ve,{children:e.map(l=>(0,rt.jsx)(he,{value:l.id?.toString()||"",children:l.name},l.id))})]}),(0,rt.jsx)(W,{variant:"outline",size:"icon",onClick:()=>w(!0),children:(0,rt.jsx)(ot.PlusIcon,{className:"w-5 h-5"})})]}),y.customerId&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:y.customerId})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-rt-2",children:[(0,rt.jsx)(E,{htmlFor:"value",children:"Value"}),(0,rt.jsx)(J,{id:"value",type:"number",value:i.value||"",onChange:l=>u({...i,value:Number.parseFloat(l.target.value)}),placeholder:"Enter deal value"}),y.value&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:y.value})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-rt-2",children:[(0,rt.jsx)(E,{htmlFor:"assignee",children:"Assignee"}),(0,rt.jsxs)(Te,{value:i.assignee?.id?.toString(),onValueChange:l=>u({...i,assignee:A(l)}),children:[(0,rt.jsx)(be,{children:(0,rt.jsx)(Me,{placeholder:"Select assignee"})}),(0,rt.jsx)(ve,{children:t&&t.map(l=>(0,rt.jsx)(he,{value:l.id?.toString()||"",children:l.name},l.id))})]}),y.assignee&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:y.assignee})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-rt-2",children:[(0,rt.jsx)(E,{htmlFor:"description",children:"Description"}),(0,rt.jsx)(se,{id:"description",value:i.description||"",onChange:l=>u({...i,description:l.target.value}),placeholder:"Enter deal description"})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-rt-2",children:[(0,rt.jsx)(E,{children:"Categories"}),(0,rt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(l=>(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)("h4",{className:"text-sm font-medium",children:l.charAt(0).toUpperCase()+l.slice(1)}),(0,rt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.filter(f=>f.type===l).map(f=>(0,rt.jsxs)("div",{className:"flex items-center space-rt-2",children:[(0,rt.jsx)(ie,{id:f.id.toString(),checked:i.categories?.includes(f.id),onCheckedChange:()=>R(f)}),(0,rt.jsx)("label",{htmlFor:f.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:f.name})]},f.id))})]},l))})]}),(0,rt.jsxs)("div",{className:"space-y-2 space-rt-2",children:[(0,rt.jsx)(E,{htmlFor:"closureDate",children:"Closure Date"}),(0,rt.jsx)(J,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:l=>u({...i,closureDate:l.target.value})}),y.closureDate&&(0,rt.jsx)("p",{className:"text-red-500 text-sm",children:y.closureDate})]})]})}),(0,rt.jsx)(W,{type:"submit",className:"w-full",children:a?"Update Deal":"Add Deal"})]}),(0,rt.jsx)(de,{open:P,onOpenChange:w,children:(0,rt.jsxs)(te,{children:[(0,rt.jsx)(re,{children:(0,rt.jsx)(oe,{children:"Add New Customer"})}),(0,rt.jsx)(St,{onSubmit:b})]})})]})}function At({status:e,deals:t,users:r,customers:o,categories:a,onDealClick:s,calculateColumnValue:c,calculateWeightedValue:i,addNewDeal:u,onAddCustomer:P,compact:w=!1}){let[y,C]=(0,Nt.useState)(!1);return(0,rt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,rt.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),u&&(0,rt.jsxs)(de,{open:y,onOpenChange:C,children:[(0,rt.jsx)(at,{asChild:!0,children:(0,rt.jsxs)(W,{className:"mb-4 w-full",children:[(0,rt.jsx)(ot.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,rt.jsxs)(te,{children:[(0,rt.jsx)(re,{children:(0,rt.jsx)(oe,{children:"Add New Deal"})}),(0,rt.jsx)(Rt,{customers:o,users:r,categories:a,onSubmit:u,onAddCustomer:P??(async()=>Promise.resolve({success:!1})),onClose:()=>C(!1)})]})]}),(0,rt.jsx)(xe.Droppable,{droppableId:e,isDropDisabled:!1,children:k=>(0,rt.jsxs)("div",{ref:k.innerRef,...k.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((D,R)=>(0,rt.jsx)(xe.Draggable,{draggableId:D.id.toString(),index:D.id,children:b=>(0,rt.jsx)("div",{ref:b.innerRef,...b.draggableProps,...b.dragHandleProps,children:(0,rt.jsx)(ct,{deal:D,customer:D.customer,categories:a,onClick:()=>s(D),compact:w})})},D.id.toString())),k.placeholder]})}),(0,rt.jsxs)("div",{className:"rt-4 text-sm p-3 rounded-lg shadow",children:[(0,rt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,rt.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,rt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,rt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var ze=[{id:1,name:"Acme Corp",intro:"A leading technology company",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"GlobalTech",intro:"Innovative solutions provider",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"InnoSystems",intro:"Cutting-edge software development",active:!1,createdAt:"2023-01-01",updatedAt:"2023-01-01"}],we=[{id:1,name:"Software",type:"proposition",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"Hardware",type:"proposition",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"Referral",type:"source",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:4,name:"Outbound",type:"source",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:5,name:"Tech",type:"sector",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:6,name:"Finance",type:"sector",createdAt:"2023-01-01",updatedAt:"2023-01-01"}],Ee=[{id:1,name:"John Doe",email:"john.doe@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"Jane Smith",email:"jane.smith@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"Bob Johnson",email:"bob.johnson@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:4,name:"Alice Brown",email:"alice.brown@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:5,name:"Charlie Davis",email:"charlie.davis@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"}],kt=[{id:1,customer:ze[0],value:5e4,assignee:Ee[2],status:"Qualified",categories:we.slice(0,3),dateLogged:"2023-01-15",closureDate:"2023-06-30",updatedAt:"2023-05-01T10:00:00Z",createdAt:"2023-01-01",comments:[{id:"1",text:"Initial contact made",author:Ee[5],timestamp:"2023-01-15T09:00:00Z"}],description:"Potential software solution for Acme Corp"},{id:2,customer:{id:2,name:"GlobalTech",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},value:75e3,assignee:{id:2,name:"Jane Smith",email:"jane.smith@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},status:"Proposal Made",categories:we.slice(0,3),dateLogged:"2023-02-01",closureDate:"2023-07-31",updatedAt:"2023-05-10T14:30:00Z",createdAt:"2023-01-01",comments:[{id:"2",text:"Proposal sent",author:Ee[1],timestamp:"2023-02-15T09:00:00Z"}],description:"Custom hardware solution for GlobalTech"}];var Rr={title:"CRM/KanbanColumn",component:At,parameters:{layout:"centered"}},Nr=Rr,Tt={args:{status:"Qualified",deals:kt.filter(e=>e.status==="Qualified"),customers:ze,categories:we,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((t,r)=>t+r.value,0),calculateWeightedValue:(e,t)=>{let r={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return e.reduce((o,a)=>o+a.value*r[t],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},Dr={args:{...Tt.args,status:"Won",deals:[]}};0&&(module.exports={Default,EmptyColumn});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,b as n,d as r}from"../../chunk-TLBLUYXL.mjs";import{a}from"../../chunk-
|
|
1
|
+
import{a as l,b as n,d as r}from"../../chunk-TLBLUYXL.mjs";import{a}from"../../chunk-PFWODHNV.mjs";import"../../chunk-TASJS6US.mjs";import"../../chunk-ERUB6LU6.mjs";import"../../chunk-FFESN4FM.mjs";import"../../chunk-OGZERPA4.mjs";import"../../chunk-6T322YHB.mjs";import"../../chunk-KJIBE57R.mjs";import"../../chunk-CX4XB5W2.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-JPZJET3B.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";var m={title:"CRM/KanbanColumn",component:a,parameters:{layout:"centered"}},p=m,c={args:{status:"Qualified",deals:r.filter(e=>e.status==="Qualified"),customers:l,categories:n,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((o,t)=>o+t.value,0),calculateWeightedValue:(e,o)=>{let t={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return e.reduce((s,u)=>s+u.value*t[o],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},y={args:{...c.args,status:"Won",deals:[]}};export{c as Default,y as EmptyColumn,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-ERUB6LU6.mjs";import"../../chunk-KJIBE57R.mjs";import"../../chunk-CX4XB5W2.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-JPZJET3B.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as NewCustomerForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"../../chunk-
|
|
1
|
+
import{a as t}from"../../chunk-ERUB6LU6.mjs";import"../../chunk-KJIBE57R.mjs";import"../../chunk-CX4XB5W2.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-JPZJET3B.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";var e={title:"CRM/NewCustomerForm",component:t,parameters:{layout:"centered"}},m=e,s={args:{onSubmit:async o=>console.log("Submitting customer:",o)}};export{s as Default,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-TASJS6US.mjs";import"../../chunk-ERUB6LU6.mjs";import"../../chunk-OGZERPA4.mjs";import"../../chunk-6T322YHB.mjs";import"../../chunk-KJIBE57R.mjs";import"../../chunk-CX4XB5W2.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-JPZJET3B.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as NewDealForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,b as r,c as s,d as a}from"../../chunk-TLBLUYXL.mjs";import{a as o}from"../../chunk-
|
|
1
|
+
import{a as t,b as r,c as s,d as a}from"../../chunk-TLBLUYXL.mjs";import{a as o}from"../../chunk-TASJS6US.mjs";import"../../chunk-ERUB6LU6.mjs";import"../../chunk-OGZERPA4.mjs";import"../../chunk-6T322YHB.mjs";import"../../chunk-KJIBE57R.mjs";import"../../chunk-CX4XB5W2.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-JPZJET3B.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";var n={title:"CRM/NewDealForm",component:o,parameters:{layout:"centered"}},u=n,c={args:{customers:t,categories:r,users:s,onSubmit:async e=>(console.log("Submitting deal:",e),{success:!0}),onAddCustomer:async e=>(console.log("Adding new customer:",e),{success:!0})}},i={args:{...c.args,initialDeal:a[0]}},d={args:{...c.args,onSubmit:async e=>(console.log("Submitting deal:",e),{success:!1,error:"Failed to submit deal"}),onAddCustomer:async e=>(console.log("Adding new customer:",e),{success:!1,error:"Failed to add customer"})}};export{c as Default,i as EditExistingDeal,d as FailedAPI,u as default};
|