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 Mt=Object.create;var we=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Bt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var r in t)we(e,r,{get:t[r],enumerable:!0})},Xe=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zt(t))!Ht.call(e,s)&&s!==r&&we(e,s,{get:()=>t[s],enumerable:!(a=Et(t,s))||a.enumerable});return e};var z=(e,t,r)=>(r=e!=null?Mt(Bt(e)):{},Xe(t||!e||!e.__esModule?we(r,"default",{value:e,enumerable:!0}):r,e)),Ft=e=>Xe(we({},"__esModule",{value:!0}),e);var Ar={};Vt(Ar,{CRMKanbanBoard:()=>kr,DealCard:()=>Ge,DealDetails:()=>He,KanbanColumn:()=>je,NewCustomerForm:()=>Oe,NewDealForm:()=>_e});module.exports=Ft(Ar);var Re=require("react");var he=z(require("react")),L=z(require("@radix-ui/react-dialog")),nt=require("lucide-react");var it=require("clsx");var Ee="-",Wt=e=>{let t=Gt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:m=>{let o=m.split(Ee);return o[0]===""&&o.length!==1&&o.shift(),et(o,t)||Ut(m)},getConflictingClassGroupIds:(m,o)=>{let g=r[m]||[];return o&&a[m]?[...g,...a[m]]:g}}},et=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),s=a?et(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let i=e.join(Ee);return t.validators.find(({validator:m})=>m(i))?.classGroupId},Ze=/^\[(.+)\]$/,Ut=e=>{if(Ze.test(e)){let t=Ze.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Gt=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),r).forEach(([i,m])=>{Me(m,a,i,t)}),a},Me=(e,t,r,a)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?t:Ye(t,s);i.classGroupId=r;return}if(typeof s=="function"){if(Ot(s)){Me(s(a),t,r,a);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,m])=>{Me(m,Ye(t,i),r,a)})})},Ye=(e,t)=>{let r=e;return t.split(Ee).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Ot=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([r,a])=>{let s=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([m,o])=>[t+m,o])):i);return[r,s]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,s=(i,m)=>{r.set(i,m),t++,t>e&&(t=0,a=r,r=new Map)};return{get(i){let m=r.get(i);if(m!==void 0)return m;if((m=a.get(i))!==void 0)return s(i,m),m},set(i,m){r.has(i)?r.set(i,m):s(i,m)}}},tt="!",Kt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,s=t[0],i=t.length,m=o=>{let g=[],S=0,N=0,p;for(let y=0;y<o.length;y++){let A=o[y];if(S===0){if(A===s&&(a||o.slice(y,y+i)===t)){g.push(o.slice(N,y)),N=y+i;continue}if(A==="/"){p=y;continue}}A==="["?S++:A==="]"&&S--}let b=g.length===0?o:o.substring(N),x=b.startsWith(tt),w=x?b.substring(1):b,C=p&&p>N?p-N:void 0;return{modifiers:g,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:C}};return r?o=>r({className:o,parseClassName:m}):m},$t=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},qt=e=>({cache:jt(e.cacheSize),parseClassName:Kt(e),...Wt(e)}),Jt=/\s+/,Qt=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=t,i=[],m=e.trim().split(Jt),o="";for(let g=m.length-1;g>=0;g-=1){let S=m[g],{modifiers:N,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:x}=r(S),w=!!x,C=a(w?b.substring(0,x):b);if(!C){if(!w){o=S+(o.length>0?" "+o:o);continue}if(C=a(b),!C){o=S+(o.length>0?" "+o:o);continue}w=!1}let y=$t(N).join(":"),A=p?y+tt:y,E=A+C;if(i.includes(E))continue;i.push(E);let d=s(C,w);for(let h=0;h<d.length;++h){let l=d[h];i.push(A+l)}o=S+(o.length>0?" "+o:o)}return o};function Xt(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=rt(t))&&(a&&(a+=" "),a+=r);return a}var rt=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=rt(e[a]))&&(r&&(r+=" "),r+=t);return r};function Zt(e,...t){let r,a,s,i=m;function m(g){let S=t.reduce((N,p)=>p(N),e());return r=qt(S),a=r.cache.get,s=r.cache.set,i=o,o(g)}function o(g){let S=a(g);if(S)return S;let N=Qt(g,r);return s(g,N),N}return function(){return i(Xt.apply(null,arguments))}}var D=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\d+\/\d+$/,er=new Set(["px","full","screen"]),tr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rr=/\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$/,or=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ar=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>le(e)||er.has(e)||Yt.test(e),O=e=>ce(e,"length",ur),le=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>ce(e,"number",le),be=e=>!!e&&Number.isInteger(Number(e)),ir=e=>e.endsWith("%")&&le(e.slice(0,-1)),u=e=>ot.test(e),_=e=>tr.test(e),nr=new Set(["length","size","percentage"]),lr=e=>ce(e,nr,at),cr=e=>ce(e,"position",at),dr=new Set(["image","url"]),mr=e=>ce(e,dr,gr),pr=e=>ce(e,"",fr),ve=()=>!0,ce=(e,t,r)=>{let a=ot.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},ur=e=>rr.test(e)&&!or.test(e),at=()=>!1,fr=e=>ar.test(e),gr=e=>sr.test(e);var br=()=>{let e=D("colors"),t=D("spacing"),r=D("blur"),a=D("brightness"),s=D("borderColor"),i=D("borderRadius"),m=D("borderSpacing"),o=D("borderWidth"),g=D("contrast"),S=D("grayscale"),N=D("hueRotate"),p=D("invert"),b=D("gap"),x=D("gradientColorStops"),w=D("gradientColorStopPositions"),C=D("inset"),y=D("margin"),A=D("opacity"),E=D("padding"),d=D("saturate"),h=D("scale"),l=D("sepia"),P=D("skew"),ne=D("space"),Ke=D("translate"),ke=()=>["auto","contain","none"],Ae=()=>["auto","hidden","clip","visible","scroll"],Te=()=>["auto",u,t],R=()=>[u,t],$e=()=>["",G,O],ye=()=>["auto",le,u],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ce=()=>["solid","dashed","dotted","double","none"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["start","end","center","between","around","evenly","stretch"],ge=()=>["","0",u],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[le,u];return{cacheSize:500,separator:":",theme:{colors:[ve],spacing:[G,O],blur:["none","",_,u],brightness:U(),borderColor:[e],borderRadius:["none","","full",_,u],borderSpacing:R(),borderWidth:$e(),contrast:U(),grayscale:ge(),hueRotate:U(),invert:ge(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[ir,O],inset:Te(),margin:Te(),opacity:U(),padding:R(),saturate:U(),scale:U(),sepia:ge(),skew:U(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"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:[...qe(),u]}],overflow:[{overflow:Ae()}],"overflow-x":[{"overflow-x":Ae()}],"overflow-y":[{"overflow-y":Ae()}],overscroll:[{overscroll:ke()}],"overscroll-x":[{"overscroll-x":ke()}],"overscroll-y":[{"overscroll-y":ke()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",be,u]}],basis:[{basis:Te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:ge()}],shrink:[{shrink:ge()}],order:[{order:["first","last","none",be,u]}],"grid-cols":[{"grid-cols":[ve]}],"col-start-end":[{col:["auto",{span:["full",be,u]},u]}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":[ve]}],"row-start-end":[{row:["auto",{span:[be,u]},u]}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ie]}],"font-family":[{font:[ve]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",le,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[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:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,O]}],"underline-offset":[{"underline-offset":["auto",G,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-B":[{"rounded-B":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Ce(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Ce()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Ce()]}],"outline-offset":[{"outline-offset":[G,u]}],"outline-w":[{outline:[G,O]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[G,O]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,pr]}],"shadow-color":[{shadow:[ve]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Je(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Je()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",_,u]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[p]}],saturate:[{saturate:[d]}],sepia:[{sepia:[l]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[d]}],"backdrop-sepia":[{"backdrop-sepia":[l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[h]}],"scale-x":[{"scale-x":[h]}],"scale-y":[{"scale-y":[h]}],rotate:[{rotate:[be,u]}],"translate-x":[{"translate-x":[Ke]}],"translate-y":[{"translate-y":[Ke]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","B-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","B-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,O,Ie]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-B","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-B","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-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 st=Zt(br);function f(...e){return st((0,it.clsx)(e))}var B=require("react/jsx-runtime"),de=L.Root,lt=L.Trigger,vr=L.Portal;var ct=he.forwardRef(({className:e,...t},r)=>(0,B.jsx)(L.Overlay,{ref:r,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ct.displayName=L.Overlay.displayName;var q=he.forwardRef(({className:e,children:t,...r},a)=>(0,B.jsxs)(vr,{children:[(0,B.jsx)(ct,{}),(0,B.jsxs)(L.Content,{ref:a,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,(0,B.jsxs)(L.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,B.jsx)(nt.X,{className:"h-4 w-4"}),(0,B.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));q.displayName=L.Content.displayName;var J=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});J.displayName="DialogHeader";var hr=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hr.displayName="DialogFooter";var Q=he.forwardRef(({className:e,...t},r)=>(0,B.jsx)(L.Title,{ref:r,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));Q.displayName=L.Title.displayName;var xr=he.forwardRef(({className:e,...t},r)=>(0,B.jsx)(L.Description,{ref:r,className:f("text-sm text-muted-foreground",e),...t}));xr.displayName=L.Description.displayName;var dt=require("@radix-ui/react-slot"),mt=require("class-variance-authority"),pt=z(require("react")),yr=(0,mt.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"}}}),V=pt.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...s},i)=>(0,B.jsx)(e?dt.Slot:"button",{className:f(yr({className:t,size:r,variant:a})),ref:i,...s}));V.displayName="Button";var ft=z(require("react"));var W=ft.forwardRef(({className:e,type:t,...r},a)=>(0,B.jsx)("input",{type:t,className:f("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...r}));W.displayName="Input";var bt=z(require("react")),ze=z(require("@radix-ui/react-label"));var Cr=(0,mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),M=bt.forwardRef(({className:e,...t},r)=>(0,B.jsx)(ze.Root,{ref:r,className:f(Cr(),e),...t}));M.displayName=ze.Root.displayName;var xt=z(require("react")),X=xt.forwardRef(({className:e,...t},r)=>(0,B.jsx)("textarea",{className:f("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));X.displayName="Textarea";var v=z(require("@radix-ui/react-select")),j=z(require("react")),me=v.Root;var pe=v.Value,Y=j.forwardRef(({children:e,className:t,...r},a)=>(0,B.jsxs)(v.Trigger,{className:f("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...r,children:[e,(0,B.jsx)(v.Icon,{asChild:!0,children:(0,B.jsx)(nt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Y.displayName=v.Trigger.displayName;var Ct=j.forwardRef(({className:e,...t},r)=>(0,B.jsx)(v.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,B.jsx)(nt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=v.ScrollUpButton.displayName;var wt=j.forwardRef(({className:e,...t},r)=>(0,B.jsx)(v.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,B.jsx)(nt.ChevronDown,{className:"h-4 w-4"})}));wt.displayName=v.ScrollDownButton.displayName;var ee=j.forwardRef(({children:e,className:t,position:r="popper",...a},s)=>(0,B.jsx)(v.Portal,{children:(0,B.jsxs)(v.Content,{className:f("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",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:s,...a,children:[(0,B.jsx)(Ct,{}),(0,B.jsx)(v.Viewport,{className:f("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,B.jsx)(wt,{})]})}));ee.displayName=v.Content.displayName;var wr=j.forwardRef(({className:e,...t},r)=>(0,B.jsx)(v.Label,{className:f("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));wr.displayName=v.Label.displayName;var te=j.forwardRef(({children:e,className:t,...r},a)=>(0,B.jsxs)(v.Item,{className:f("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...r,children:[(0,B.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,B.jsx)(v.ItemIndicator,{children:(0,B.jsx)(nt.Check,{className:"h-4 w-4"})})}),(0,B.jsx)(v.ItemText,{children:e})]}));te.displayName=v.Item.displayName;var Sr=j.forwardRef(({className:e,...t},r)=>(0,B.jsx)(v.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Sr.displayName=v.Separator.displayName;var xe=z(require("@radix-ui/react-checkbox")),Nt=z(require("react")),re=Nt.forwardRef(({className:e,...t},r)=>(0,B.jsx)(xe.Root,{className:f("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,B.jsx)(xe.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,B.jsx)(nt.Check,{className:"h-4 w-4"})})}));re.displayName=xe.Root.displayName;var Nr=(0,mt.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 Ne({className:e,variant:t,...r}){return(0,B.jsx)("div",{className:f(Nr({variant:t}),e),...r})}var Be=z(require("react")),F=z(require("@radix-ui/react-scroll-area"));var ue=Be.forwardRef(({className:e,children:t,...r},a)=>(0,B.jsxs)(F.Root,{ref:a,className:f("relative overflow-hidden",e),...r,children:[(0,B.jsx)(F.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,B.jsx)(Rt,{}),(0,B.jsx)(F.Corner,{})]}));ue.displayName=F.Root.displayName;var Rt=Be.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,B.jsx)(F.ScrollAreaScrollbar,{ref:a,orientation:t,className:f("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,B.jsx)(F.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Rt.displayName=F.ScrollAreaScrollbar.displayName;function He({deal:e,users:t,customer:r,categories:a,onClose:s,onSave:i,onAddComment:m}){let[o,g]=(0,Re.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[S,N]=(0,Re.useState)(""),[p,b]=(0,Re.useState)(!1),[x,w]=(0,Re.useState)(null);(0,Re.useEffect)(()=>{b(JSON.stringify(e)!==JSON.stringify(o))},[e,o]);let C=async()=>{try{let l=await i(o);l.success?(b(!1),w(null)):console.error("Failed to save deal:",l.errors)}catch(l){console.error("Failed to save deal:",l)}},y=(l,P)=>{g(ne=>({...ne,[l]:P}))},A=l=>{let P=(o.categories||[]).includes(l)?(o.categories||[]).filter(ne=>ne!==l):[...o.categories||[],l];y("categories",P)},E=async()=>{if(S.trim()){let l={text:S,timestamp:new Date().toISOString()};try{let P=await m(l);if(!P.success){console.error("Failed to add comment:",P.errors);return}}catch(P){console.error("Failed to add comment:",P)}g(P=>({...P,comments:[...P.comments||[],l]})),N("")}},d=l=>{switch(l){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},h=l=>t?.find(P=>P.id===Number(l));return(0,B.jsx)(de,{open:!0,children:(0,B.jsxs)(q,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,B.jsxs)(J,{className:"flex flex-row items-center justify-between",children:[(0,B.jsx)(Q,{className:"text-2xl font-bold",children:r?.name}),(0,B.jsxs)("div",{className:"flex space-x-2",children:[(0,B.jsx)(V,{variant:"outline",onClick:s,children:"Close"}),(0,B.jsxs)(V,{onClick:C,disabled:!p,children:[(0,B.jsx)($.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,B.jsxs)(ue,{className:"flex-grow pr-4",children:[(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,B.jsx)("div",{className:"grid gap-2 m-1",children:x==="value"?(0,B.jsx)(W,{type:"number",value:o.value,onChange:l=>y("value",Number(l.target.value)),onBlur:()=>w(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,B.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>w("value"),children:["\xA3",o.value?.toLocaleString()]})}),(0,B.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,B.jsx)(M,{className:"text-sm font-medium text-accent",children:"Assignee"}),x==="assignee"?(0,B.jsxs)(me,{value:o?.assignee?.id?.toString()||"",onValueChange:l=>y("assignee",h(l)),children:[(0,B.jsx)(Y,{children:(0,B.jsx)(pe,{placeholder:"Select assignee"})}),(0,B.jsx)(ee,{children:t&&t.map(l=>(0,B.jsx)(te,{value:l?.id?.toString()||"",children:l.name},l.id))})]}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>w("assignee"),children:[(0,B.jsx)($.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:o.assignee.name})]})]}),(0,B.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,B.jsx)(M,{className:"text-sm font-medium text-accent",children:"Closure Date"}),x==="closureDate"?(0,B.jsx)(W,{type:"date",value:o.closureDate?.split("B")[0]??"",onChange:l=>y("closureDate",l.target.value),onBlur:()=>w(null),className:"mr-2",autoFocus:!0}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>w("closureDate"),children:[(0,B.jsx)($.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:o.closureDate?new Date(o.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,B.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,B.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,B.jsx)(M,{className:"text-sm font-medium text-accent",children:"Description"}),x==="description"?(0,B.jsx)(X,{value:o.description||"",onChange:l=>y("description",l.target.value),onBlur:()=>w(null),className:"min-h-[100px]",autoFocus:!0}):(0,B.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>w("description"),children:o.description})]})}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,B.jsx)(M,{className:"text-sm font-medium text-accent",children:"Status"}),x==="status"?(0,B.jsxs)(me,{value:o.status,onValueChange:l=>{y("status",l),w(null)},children:[(0,B.jsx)(Y,{children:(0,B.jsx)(pe,{placeholder:"Select status"})}),(0,B.jsx)(ee,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(l=>(0,B.jsx)(te,{value:l,children:l},l))})]}):(0,B.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>w("status"),children:o.status})]}),(0,B.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,B.jsx)(M,{className:"text-sm font-medium text-accent",children:"Categories"}),x==="categories"?(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:a.map(l=>(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(re,{id:l.id?.toString()||"",checked:(o.categories||[]).some(P=>P.id===l.id),onCheckedChange:()=>l.id!==void 0&&A(l)}),(0,B.jsx)("label",{htmlFor:(l.id??"").toString(),className:`text-sm font-medium ${d(l.type||"sector")} px-2 py-1 rounded`,children:l.name})]},l.id))}):(0,B.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>w("categories"),children:o.categories&&o.categories.map(l=>{let P=l;return P?(0,B.jsx)(Ne,{variant:"outline",className:d(P.type||"sector"),children:P.name},P.id):null})})]})]}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(M,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,B.jsx)(ue,{className:"h-[200px] overflow-y-auto",children:(0,B.jsx)("div",{className:"space-y-2",children:o.comments&&o.comments.slice().sort((l,P)=>new Date(P.timestamp||"").getTime()-new Date(l.timestamp||"").getTime()).map(l=>(0,B.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,B.jsx)("p",{className:"text-sm text-foreground",children:l.text}),(0,B.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[l?.author?.name," - ",new Date(l.timestamp||"").toLocaleString()]})]},l.id))})}),(0,B.jsxs)("div",{className:"flex mt-2",children:[(0,B.jsx)(W,{value:S,onChange:l=>N(l.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,B.jsxs)(V,{onClick:E,className:"ml-2",children:[(0,B.jsx)($.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,B.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(o.updatedAt||"").toLocaleString()]})]})]})]})})}var ae=z(require("react"));var Ve=ae.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ve.displayName="Card";var Fe=ae.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:f("flex flex-col space-y-1.5 p-6",e),...t}));Fe.displayName="CardHeader";var We=ae.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:f("font-semibold leading-none tracking-tight",e),...t}));We.displayName="CardTitle";var Pr=ae.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:f("text-sm text-muted-foreground",e),...t}));Pr.displayName="CardDescription";var Ue=ae.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:f("p-6 pt-0",e),...t}));Ue.displayName="CardContent";var Dr=ae.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:f("flex items-center p-6 pt-0",e),...t}));Dr.displayName="CardFooter";function Ge({deal:e,customer:t,categories:r,onClick:a}){let s=r.find(i=>i.type==="proposition"&&(e.categories??[]).includes(i.id));return(0,B.jsxs)(Ve,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,B.jsxs)(Fe,{className:"pb-2",children:[(0,B.jsx)("div",{className:"flex justify-between items-center",children:(0,B.jsx)(We,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,B.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,B.jsxs)(Ue,{children:[(0,B.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,B.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,B.jsx)(nt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,B.jsx)("span",{children:e.assignee.name})]}),(0,B.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,B.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,B.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,B.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,B.jsx)(nt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,B.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,B.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,B.jsx)(Ne,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var De=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Oe({onSubmit:e}){let[t,r]=(0,Re.useState)({name:"",intro:"",active:!1});return(0,B.jsxs)("form",{onSubmit:s=>{s.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,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(M,{htmlFor:"customerName",children:"Customer Name"}),(0,B.jsx)(W,{id:"customerName",value:t.name,onChange:s=>r({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(M,{htmlFor:"customerIntro",children:"Intro"}),(0,B.jsx)(X,{id:"customerIntro",value:t.intro??"",onChange:s=>r({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(re,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>r({...t,active:s})}),(0,B.jsx)(M,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,B.jsx)(V,{type:"submit",className:"w-full",children:"Add Customer"})]})}function _e({customers:e,users:t,categories:r,onSubmit:a,initialDeal:s,onAddCustomer:i,onClose:m}){let[o,g]=(0,Re.useState)(s||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("B")[0],closureDate:"",comments:[],description:""}),[S,N]=(0,Re.useState)(!1),[p,b]=(0,Re.useState)({});(0,Re.useEffect)(()=>{s&&g(s)},[s]);let x=()=>{let d={};return o.customer||(d.customer="Customer is required"),o.value||(d.value="Value is required"),o.assignee||(d.assignee="Assignee is required"),o.closureDate||(d.closureDate="Closure Date is required"),b(d),Object.keys(d).length===0},w=async d=>{d.preventDefault(),b({});try{if(x()){let h=await a({...o});h.success?(g({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),m?.()):b(h.errors||{})}}catch{b({submit:"An error occurred while submitting the form."})}},C=d=>{g(h=>({...h,categories:(h.categories||[]).includes(d.id)?(h.categories||[]).filter(l=>l!==d.id):[...h.categories||[],d.id]}))},y=async d=>{g({...o,customer:d});try{let h=await i(d);h.success?N(!1):b(h.errors||{})}catch{b({submit:"An error occurred while submitting the form."})}},A=d=>t?.find(h=>h.id===Number(d)),E=d=>e?.find(h=>h.id===Number(d));return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("form",{onSubmit:w,className:"space-y-6",children:[(0,B.jsx)(ue,{className:"h-[60vh] pr-4",children:(0,B.jsxs)("div",{className:"space-y-6 px-4",children:[(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"customer",children:"Customer"}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsxs)(me,{value:o.customer?.id?.toString(),onValueChange:d=>g({...o,customer:E(d)}),children:[(0,B.jsx)(Y,{children:(0,B.jsx)(pe,{placeholder:"Select customer"})}),(0,B.jsx)(ee,{children:e.map(d=>(0,B.jsx)(te,{value:d.id?.toString()||"",children:d.name},d.id))})]}),(0,B.jsx)(V,{variant:"outline",size:"icon",onClick:()=>N(!0),children:(0,B.jsx)(nt.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"value",children:"Value"}),(0,B.jsx)(W,{id:"value",type:"number",value:o.value||"",onChange:d=>g({...o,value:Number.parseFloat(d.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"assignee",children:"Assignee"}),(0,B.jsxs)(me,{value:o.assignee?.id?.toString(),onValueChange:d=>g({...o,assignee:A(d)}),children:[(0,B.jsx)(Y,{children:(0,B.jsx)(pe,{placeholder:"Select assignee"})}),(0,B.jsx)(ee,{children:t&&t.map(d=>(0,B.jsx)(te,{value:d.id?.toString()||"",children:d.name},d.id))})]}),p.assignee&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"description",children:"Description"}),(0,B.jsx)(X,{id:"description",value:o.description||"",onChange:d=>g({...o,description:d.target.value}),placeholder:"Enter deal description"})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{children:"Categories"}),(0,B.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(d=>(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)("h4",{className:"text-sm font-medium",children:d.charAt(0).toUpperCase()+d.slice(1)}),(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.filter(h=>h.type===d).map(h=>(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(re,{id:h.id.toString(),checked:o.categories?.includes(h.id),onCheckedChange:()=>C(h)}),(0,B.jsx)("label",{htmlFor:h.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:h.name})]},h.id))})]},d))})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"closureDate",children:"Closure Date"}),(0,B.jsx)(W,{id:"closureDate",type:"date",value:o.closureDate||"",onChange:d=>g({...o,closureDate:d.target.value})}),p.closureDate&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,B.jsx)(V,{type:"submit",className:"w-full",children:s?"Update Deal":"Add Deal"})]}),(0,B.jsx)(de,{open:S,onOpenChange:N,children:(0,B.jsxs)(q,{children:[(0,B.jsx)(J,{children:(0,B.jsx)(Q,{children:"Add New Customer"})}),(0,B.jsx)(Oe,{onSubmit:y})]})})]})}function je({status:e,deals:t,users:r,customers:a,categories:s,onDealClick:i,calculateColumnValue:m,calculateWeightedValue:o,addNewDeal:g,onAddCustomer:S}){let[N,p]=(0,Re.useState)(!1);return(0,B.jsxs)("div",{className:"flex flex-col w-80",children:[(0,B.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),g&&(0,B.jsxs)(de,{open:N,onOpenChange:p,children:[(0,B.jsx)(lt,{asChild:!0,children:(0,B.jsxs)(V,{className:"mb-4 w-full",children:[(0,B.jsx)(nt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,B.jsxs)(q,{children:[(0,B.jsx)(J,{children:(0,B.jsx)(Q,{children:"Add New Deal"})}),(0,B.jsx)(_e,{customers:a,users:r,categories:s,onSubmit:g,onAddCustomer:S,onClose:()=>p(!1)})]})]}),(0,B.jsx)(De.Droppable,{droppableId:e,isDropDisabled:!1,children:b=>(0,B.jsxs)("div",{ref:b.innerRef,...b.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((x,w)=>(0,B.jsx)(De.Draggable,{draggableId:x.id.toString(),index:x.id,children:C=>(0,B.jsx)("div",{ref:C.innerRef,...C.draggableProps,...C.dragHandleProps,children:(0,B.jsx)(Ge,{deal:x,customer:x.customer,categories:s,onClick:()=>i(x)})})},x.id.toString())),b.placeholder]})}),(0,B.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,B.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,B.jsxs)("span",{className:"text-green-600",children:["\xA3",m(t).toLocaleString()]})]}),(0,B.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,B.jsxs)("span",{className:"text-blue-600",children:["\xA3",o(t,e).toLocaleString()]})]})]})]})}var Rr=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function kr({initialData:e,addNewDeal:t,updateDeal:r,addComment:a,addNewCustomer:s}){let[i,m]=(0,Re.useState)(null),o=p=>(e.deals??[]).filter(b=>b.status===p),g=p=>p.reduce((b,x)=>b+(x.value||0),0),S=(p,b)=>{let x={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((w,C)=>w+(C.value||0)*x[b],0)},N=(0,Re.useCallback)(p=>{let{source:b,destination:x}=p;if(!x||b.droppableId===x.droppableId&&b.index===x.index)return;let w=b.droppableId,C=x.droppableId,y=e.deals?.filter(E=>E.id===b.index)[0],A=[...e.deals??[]];y&&(y.status=C,r(y))},[r]);return(0,B.jsx)(De.DragDropContext,{onDragEnd:N,children:(0,B.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,B.jsx)("div",{className:"flex space-x-4 pb-4",children:Rr.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let b=o(p);return(0,B.jsx)(je,{status:p,deals:b,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:m,calculateColumnValue:g,calculateWeightedValue:S,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:s},p)})}),i&&(0,B.jsx)(He,{deal:i,users:e.users,customer:i.customer,categories:e.categories??[],onClose:()=>m(null),onSave:r,onAddComment:p=>a(i.id.toString(),p)})]})})}0&&(module.exports={CRMKanbanBoard,DealCard,DealDetails,KanbanColumn,NewCustomerForm,NewDealForm});
|
|
4
|
+
"use strict";var zt=Object.create;var Pe=Object.defineProperty;var Vt=Object.getOwnPropertyDescriptor;var Ht=Object.getOwnPropertyNames;var Wt=Object.getPrototypeOf,Ft=Object.prototype.hasOwnProperty;var Ut=(e,t)=>{for(var r in t)Pe(e,r,{get:t[r],enumerable:!0})},Ye=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ht(t))!Ft.call(e,i)&&i!==r&&Pe(e,i,{get:()=>t[i],enumerable:!(a=Vt(t,i))||a.enumerable});return e};var B=(e,t,r)=>(r=e!=null?zt(Wt(e)):{},Ye(t||!e||!e.__esModule?Pe(r,"default",{value:e,enumerable:!0}):r,e)),Gt=e=>Ye(Pe({},"__esModule",{value:!0}),e);var Er={};Ut(Er,{CRMCogeBoard:()=>Ir,CRMKanbanBoard:()=>Lr,DealCard:()=>je,DealDetails:()=>Ce,KanbanColumn:()=>we,NewCustomerForm:()=>Ke,NewDealForm:()=>$e});module.exports=Gt(Er);var Ee=require("react");var xe=B(require("react")),M=B(require("@radix-ui/react-dialog")),ct=require("lucide-react");var lt=require("clsx");var Ge="-",Ot=e=>{let t=jt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{let o=d.split(Ge);return o[0]===""&&o.length!==1&&o.shift(),rt(o,t)||_t(d)},getConflictingClassGroupIds:(d,o)=>{let b=r[d]||[];return o&&a[d]?[...b,...a[d]]:b}}},rt=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),i=a?rt(e.slice(1),a):void 0;if(i)return i;if(t.validators.length===0)return;let l=e.join(Ge);return t.validators.find(({validator:d})=>d(l))?.classGroupId},et=/^\[(.+)\]$/,_t=e=>{if(et.test(e)){let t=et.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},jt=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return $t(Object.entries(e.classGroups),r).forEach(([l,d])=>{Ue(d,a,l,t)}),a},Ue=(e,t,r,a)=>{e.forEach(i=>{if(typeof i=="string"){let l=i===""?t:tt(t,i);l.classGroupId=r;return}if(typeof i=="function"){if(Kt(i)){Ue(i(a),t,r,a);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([l,d])=>{Ue(d,tt(t,l),r,a)})})},tt=(e,t)=>{let r=e;return t.split(Ge).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Kt=e=>e.isThemeGetter,$t=(e,t)=>t?e.map(([r,a])=>{let i=a.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([d,o])=>[t+d,o])):l);return[r,i]}):e,qt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,i=(l,d)=>{r.set(l,d),t++,t>e&&(t=0,a=r,r=new Map)};return{get(l){let d=r.get(l);if(d!==void 0)return d;if((d=a.get(l))!==void 0)return i(l,d),d},set(l,d){r.has(l)?r.set(l,d):i(l,d)}}},ot="!",Qt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,i=t[0],l=t.length,d=o=>{let b=[],v=0,p=0,u;for(let f=0;f<o.length;f++){let T=o[f];if(v===0){if(T===i&&(a||o.slice(f,f+l)===t)){b.push(o.slice(p,f)),p=f+l;continue}if(T==="/"){u=f;continue}}T==="["?v++:T==="]"&&v--}let h=b.length===0?o:o.substring(p),C=h.startsWith(ot),x=C?h.substring(1):h,P=u&&u>p?u-p:void 0;return{modifiers:b,hasImportantModifier:C,baseClassName:x,maybePostfixModifierPosition:P}};return r?o=>r({className:o,parseClassName:d}):d},Jt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Xt=e=>({cache:qt(e.cacheSize),parseClassName:Qt(e),...Ot(e)}),Zt=/\z+/,Yt=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:i}=t,l=[],d=e.trim().split(Zt),o="";for(let b=d.length-1;b>=0;b-=1){let v=d[b],{modifiers:p,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:C}=r(v),x=!!C,P=a(x?h.substring(0,C):h);if(!P){if(!x){o=v+(o.length>0?" "+o:o);continue}if(P=a(h),!P){o=v+(o.length>0?" "+o:o);continue}x=!1}let f=Jt(p).join(":"),T=u?f+ot:f,E=T+P;if(l.includes(E))continue;l.push(E);let m=i(P,x);for(let S=0;S<m.length;++S){let n=m[S];l.push(T+n)}o=v+(o.length>0?" "+o:o)}return o};function er(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=at(t))&&(a&&(a+=" "),a+=r);return a}var at=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=at(e[a]))&&(r&&(r+=" "),r+=t);return r};function tr(e,...t){let r,a,i,l=d;function d(b){let v=t.reduce((p,u)=>u(p),e());return r=Xt(v),a=r.cache.get,i=r.cache.set,l=o,o(b)}function o(b){let v=a(b);if(v)return v;let p=Yt(b,r);return i(b,p),p}return function(){return l(er.apply(null,arguments))}}var R=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},st=/^\[(?:([a-z-]+):)?(.+)\]$/i,rr=/^\d+\/\d+$/,or=new Set(["px","full","screen"]),ar=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sr=/\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$/,ir=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,nr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>me(e)||or.has(e)||rr.test(e),O=e=>ue(e,"length",br),me=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>ue(e,"number",me),ve=e=>!!e&&Number.isInteger(Number(e)),cr=e=>e.endsWith("%")&&me(e.slice(0,-1)),g=e=>st.test(e),_=e=>ar.test(e),dr=new Set(["length","size","percentage"]),mr=e=>ue(e,dr,it),ur=e=>ue(e,"position",it),pr=new Set(["image","url"]),fr=e=>ue(e,pr,hr),gr=e=>ue(e,"",vr),he=()=>!0,ue=(e,t,r)=>{let a=st.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},br=e=>sr.test(e)&&!ir.test(e),it=()=>!1,vr=e=>nr.test(e),hr=e=>lr.test(e);var xr=()=>{let e=R("colors"),t=R("spacing"),r=R("blur"),a=R("brightness"),i=R("borderColor"),l=R("borderRadius"),d=R("borderSpacing"),o=R("borderWidth"),b=R("contrast"),v=R("grayscale"),p=R("hueRotate"),u=R("invert"),h=R("gap"),C=R("gradientColorStops"),x=R("gradientColorStopPositions"),P=R("inset"),f=R("margin"),T=R("opacity"),E=R("padding"),m=R("saturate"),S=R("scale"),n=R("sepia"),D=R("skew"),de=R("space"),qe=R("translate"),ze=()=>["auto","contain","none"],Ve=()=>["auto","hidden","clip","visible","scroll"],He=()=>["auto",g,t],k=()=>[g,t],Qe=()=>["",G,O],Se=()=>["auto",me,g],Je=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ne=()=>["solid","dashed","dotted","double","none"],Xe=()=>["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"],be=()=>["","0",g],Ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[me,g];return{cacheSize:500,separator:":",theme:{colors:[he],spacing:[G,O],blur:["none","",_,g],brightness:U(),borderColor:[e],borderRadius:["none","","full",_,g],borderSpacing:k(),borderWidth:Qe(),contrast:U(),grayscale:be(),hueRotate:U(),invert:be(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[cr,O],inset:He(),margin:He(),opacity:U(),padding:k(),saturate:U(),scale:U(),sepia:be(),skew:U(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Ze()}],"break-before":[{"break-before":Ze()}],"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:[...Je(),g]}],overflow:[{overflow:Ve()}],"overflow-x":[{"overflow-x":Ve()}],"overflow-y":[{"overflow-y":Ve()}],overscroll:[{overscroll:ze()}],"overscroll-x":[{"overscroll-x":ze()}],"overscroll-y":[{"overscroll-y":ze()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ve,g]}],basis:[{basis:He()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:be()}],shrink:[{shrink:be()}],order:[{order:["first","last","none",ve,g]}],"grid-cols":[{"grid-cols":[he]}],"col-start-end":[{col:["auto",{span:["full",ve,g]},g]}],"col-start":[{"col-start":Se()}],"col-end":[{"col-end":Se()}],"grid-rows":[{"grid-rows":[he]}],"row-start-end":[{row:["auto",{span:[ve,g]},g]}],"row-start":[{"row-start":Se()}],"row-end":[{"row-end":Se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"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:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fe]}],"font-family":[{font:[he]}],"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",g]}],"line-clamp":[{"line-clamp":["none",me,Fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,O]}],"underline-offset":[{"underline-offset":["auto",G,g]}],"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:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Je(),ur]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[l]}],"rounded-z":[{"rounded-z":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-Ee":[{"rounded-Ee":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-z":[{"border-z":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...Ne(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:Ne()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-z":[{"border-z":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Ne()]}],"outline-offset":[{"outline-offset":[G,g]}],"outline-w":[{outline:[G,O]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[G,O]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,gr]}],"shadow-color":[{shadow:[he]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Xe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",_,g]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[u]}],saturate:[{saturate:[m]}],sepia:[{sepia:[n]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[n]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",g]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ve,g]}],"translate-x":[{"translate-x":[qe]}],"translate-y":[{"translate-y":[qe]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",g]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","z-resize","w-resize","z-resize","nw-resize","Ee-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",g]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",g]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,O,Fe]}],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","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-z","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Ee","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-z":["rounded-ss","rounded-es"],"rounded-e":["rounded-Ee","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-z","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-z","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-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 nt=tr(xr);function y(...e){return nt((0,lt.clsx)(e))}var z=require("react/jsx-runtime"),pe=M.Root,dt=M.Trigger,yr=M.Portal;var mt=xe.forwardRef(({className:e,...t},r)=>(0,z.jsx)(M.Overlay,{ref:r,className:y("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}));mt.displayName=M.Overlay.displayName;var X=xe.forwardRef(({className:e,children:t,...r},a)=>(0,z.jsxs)(yr,{children:[(0,z.jsx)(mt,{}),(0,z.jsxs)(M.Content,{ref:a,className:y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,(0,z.jsxs)(M.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,z.jsx)(ct.X,{className:"h-4 w-4"}),(0,z.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));X.displayName=M.Content.displayName;var Z=({className:e,...t})=>(0,z.jsx)("div",{className:y("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Z.displayName="DialogHeader";var Cr=({className:e,...t})=>(0,z.jsx)("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Cr.displayName="DialogFooter";var Y=xe.forwardRef(({className:e,...t},r)=>(0,z.jsx)(M.Title,{ref:r,className:y("text-lg font-semibold leading-none tracking-tight",e),...t}));Y.displayName=M.Title.displayName;var wr=xe.forwardRef(({className:e,...t},r)=>(0,z.jsx)(M.Description,{ref:r,className:y("text-sm text-muted-foreground",e),...t}));wr.displayName=M.Description.displayName;var ut=require("@radix-ui/react-slot"),pt=require("class-variance-authority"),ft=B(require("react")),Sr=(0,pt.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"}}}),H=ft.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...i},l)=>(0,z.jsx)(e?ut.Slot:"button",{className:y(Sr({className:t,size:r,variant:a})),ref:l,...i}));H.displayName="Button";var bt=B(require("react"));var F=bt.forwardRef(({className:e,type:t,...r},a)=>(0,z.jsx)("input",{type:t,className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...r}));F.displayName="Input";var ht=B(require("react")),Oe=B(require("@radix-ui/react-label"));var Nr=(0,pt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),I=ht.forwardRef(({className:e,...t},r)=>(0,z.jsx)(Oe.Root,{ref:r,className:y(Nr(),e),...t}));I.displayName=Oe.Root.displayName;var Ct=B(require("react")),ee=Ct.forwardRef(({className:e,...t},r)=>(0,z.jsx)("textarea",{className:y("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}));ee.displayName="Textarea";var w=B(require("@radix-ui/react-select")),j=B(require("react")),re=w.Root;var oe=w.Value,K=j.forwardRef(({children:e,className:t,...r},a)=>(0,z.jsxs)(w.Trigger,{className:y("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...r,children:[e,(0,z.jsx)(w.Icon,{asChild:!0,children:(0,z.jsx)(ct.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));K.displayName=w.Trigger.displayName;var St=j.forwardRef(({className:e,...t},r)=>(0,z.jsx)(w.ScrollUpButton,{className:y("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,z.jsx)(ct.ChevronUp,{className:"h-4 w-4"})}));St.displayName=w.ScrollUpButton.displayName;var Nt=j.forwardRef(({className:e,...t},r)=>(0,z.jsx)(w.ScrollDownButton,{className:y("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,z.jsx)(ct.ChevronDown,{className:"h-4 w-4"})}));Nt.displayName=w.ScrollDownButton.displayName;var $=j.forwardRef(({children:e,className:t,position:r="popper",...a},i)=>(0,z.jsx)(w.Portal,{children:(0,z.jsxs)(w.Content,{className:y("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-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:i,...a,children:[(0,z.jsx)(St,{}),(0,z.jsx)(w.Viewport,{className:y("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,z.jsx)(Nt,{})]})}));$.displayName=w.Content.displayName;var Pr=j.forwardRef(({className:e,...t},r)=>(0,z.jsx)(w.Label,{className:y("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Pr.displayName=w.Label.displayName;var q=j.forwardRef(({children:e,className:t,...r},a)=>(0,z.jsxs)(w.Item,{className:y("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...r,children:[(0,z.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,z.jsx)(w.ItemIndicator,{children:(0,z.jsx)(ct.Check,{className:"h-4 w-4"})})}),(0,z.jsx)(w.ItemText,{children:e})]}));q.displayName=w.Item.displayName;var Dr=j.forwardRef(({className:e,...t},r)=>(0,z.jsx)(w.Separator,{className:y("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Dr.displayName=w.Separator.displayName;var ye=B(require("@radix-ui/react-checkbox")),Dt=B(require("react")),ae=Dt.forwardRef(({className:e,...t},r)=>(0,z.jsx)(ye.Root,{className:y("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,z.jsx)(ye.Indicator,{className:y("flex items-center justify-center text-current"),children:(0,z.jsx)(ct.Check,{className:"h-4 w-4"})})}));ae.displayName=ye.Root.displayName;var Rr=(0,pt.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 Re({className:e,variant:t,...r}){return(0,z.jsx)("div",{className:y(Rr({variant:t}),e),...r})}var _e=B(require("react")),W=B(require("@radix-ui/react-scroll-area"));var fe=_e.forwardRef(({className:e,children:t,...r},a)=>(0,z.jsxs)(W.Root,{ref:a,className:y("relative overflow-hidden",e),...r,children:[(0,z.jsx)(W.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,z.jsx)(At,{}),(0,z.jsx)(W.Corner,{})]}));fe.displayName=W.Root.displayName;var At=_e.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,z.jsx)(W.ScrollAreaScrollbar,{ref:a,orientation:t,className:y("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,z.jsx)(W.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));At.displayName=W.ScrollAreaScrollbar.displayName;function Ce({deal:e,users:t,customer:r,categories:a,onClose:i,onSave:l,onAddComment:d}){let[o,b]=(0,Ee.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[v,p]=(0,Ee.useState)(""),[u,h]=(0,Ee.useState)(!1),[C,x]=(0,Ee.useState)(null);(0,Ee.useEffect)(()=>{h(JSON.stringify(e)!==JSON.stringify(o))},[e,o]);let P=async()=>{try{let n=await l(o);n.success?(h(!1),x(null)):console.error("Failed to save deal:",n.errors)}catch(n){console.error("Failed to save deal:",n)}},f=(n,D)=>{b(de=>({...de,[n]:D}))},T=n=>{let D=(o.categories||[]).includes(n)?(o.categories||[]).filter(de=>de!==n):[...o.categories||[],n];f("categories",D)},E=async()=>{if(v.trim()){let n={text:v,timestamp:new Date().toISOString()};try{let D=await d(n);if(!D.success){console.error("Failed to add comment:",D.errors);return}}catch(D){console.error("Failed to add comment:",D)}b(D=>({...D,comments:[...D.comments||[],n]})),p("")}},m=n=>{switch(n){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},S=n=>t?.find(D=>D.id===Number(n));return(0,z.jsx)(pe,{open:!0,children:(0,z.jsxs)(X,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,z.jsxs)(Z,{className:"flex flex-row items-center justify-between",children:[(0,z.jsx)(Y,{className:"text-2xl font-bold",children:r?.name}),(0,z.jsxs)("div",{className:"flex space-x-2",children:[(0,z.jsx)(H,{variant:"outline",onClick:i,children:"Close"}),(0,z.jsxs)(H,{onClick:P,disabled:!u,children:[(0,z.jsx)(ct.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,z.jsxs)(fe,{className:"flex-grow pr-4",children:[(0,z.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,z.jsx)("div",{className:"grid gap-2 m-1",children:C==="value"?(0,z.jsx)(F,{type:"number",value:o.value,onChange:n=>f("value",Number(n.target.value)),onBlur:()=>x(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,z.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>x("value"),children:["\xA3",o.value?.toLocaleString()]})}),(0,z.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,z.jsx)(I,{className:"text-sm font-medium text-accent",children:"Assignee"}),C==="assignee"?(0,z.jsxs)(re,{value:o?.assignee?.id?.toString()||"",onValueChange:n=>f("assignee",S(n)),children:[(0,z.jsx)(K,{children:(0,z.jsx)(oe,{placeholder:"Select assignee"})}),(0,z.jsx)($,{children:t&&t.map(n=>(0,z.jsx)(q,{value:n?.id?.toString()||"",children:n.name},n.id))})]}):(0,z.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>x("assignee"),children:[(0,z.jsx)(ct.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,z.jsx)("span",{children:o.assignee.name})]})]}),(0,z.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,z.jsx)(I,{className:"text-sm font-medium text-accent",children:"Closure Date"}),C==="closureDate"?(0,z.jsx)(F,{type:"date",value:o.closureDate?.split("T")[0]??"",onChange:n=>f("closureDate",n.target.value),onBlur:()=>x(null),className:"mr-2",autoFocus:!0}):(0,z.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>x("closureDate"),children:[(0,z.jsx)(ct.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,z.jsx)("span",{children:o.closureDate?new Date(o.closureDate).toLocaleDateString("en-GB"):"z/z"})]})]})]}),(0,z.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,z.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,z.jsx)(I,{className:"text-sm font-medium text-accent",children:"Description"}),C==="description"?(0,z.jsx)(ee,{value:o.description||"",onChange:n=>f("description",n.target.value),onBlur:()=>x(null),className:"min-h-[100px]",autoFocus:!0}):(0,z.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>x("description"),children:o.description})]})}),(0,z.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,z.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,z.jsx)(I,{className:"text-sm font-medium text-accent",children:"Status"}),C==="status"?(0,z.jsxs)(re,{value:o.status,onValueChange:n=>{f("status",n),x(null)},children:[(0,z.jsx)(K,{children:(0,z.jsx)(oe,{placeholder:"Select status"})}),(0,z.jsx)($,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(n=>(0,z.jsx)(q,{value:n,children:n},n))})]}):(0,z.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>x("status"),children:o.status})]}),(0,z.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,z.jsx)(I,{className:"text-sm font-medium text-accent",children:"Categories"}),C==="categories"?(0,z.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:a.map(n=>(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsx)(ae,{id:n.id?.toString()||"",checked:(o.categories||[]).some(D=>D.id===n.id),onCheckedChange:()=>n.id!==void 0&&T(n)}),(0,z.jsx)("label",{htmlFor:(n.id??"").toString(),className:`text-sm font-medium ${m(n.type||"sector")} px-2 py-1 rounded`,children:n.name})]},n.id))}):(0,z.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>x("categories"),children:o.categories&&o.categories.map(n=>{let D=n;return D?(0,z.jsx)(Re,{variant:"outline",className:m(D.type||"sector"),children:D.name},D.id):null})})]}),(0,z.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,z.jsx)(I,{className:"text-sm font-medium text-accent",children:"COGE Status"}),C==="gecoStatus"?(0,z.jsxs)(re,{value:o.gecoStatus??void 0,onValueChange:n=>{f("gecoStatus",n),x(null)},children:[(0,z.jsx)(K,{children:(0,z.jsx)(oe,{placeholder:"Select status"})}),(0,z.jsx)($,{children:["firm","forecast","other"].map(n=>(0,z.jsx)(q,{value:n,children:n.charAt(0).toUpperCase()+n.slice(1)},n))})]}):(0,z.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>x("gecoStatus"),children:o.gecoStatus?o.gecoStatus.charAt(0).toUpperCase()+o.gecoStatus.slice(1):"z/z"})]})]}),(0,z.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,z.jsxs)("div",{className:"grid gap-2",children:[(0,z.jsx)(I,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,z.jsx)(fe,{className:"h-[200px] overflow-y-auto",children:(0,z.jsx)("div",{className:"space-y-2",children:o.comments&&o.comments.slice().sort((n,D)=>new Date(D.timestamp||"").getTime()-new Date(n.timestamp||"").getTime()).map(n=>(0,z.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,z.jsx)("p",{className:"text-sm text-foreground",children:n.text}),(0,z.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[n?.author?.name," - ",new Date(n.timestamp||"").toLocaleString()]})]},n.id))})}),(0,z.jsxs)("div",{className:"flex mt-2",children:[(0,z.jsx)(F,{value:v,onChange:n=>p(n.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,z.jsxs)(H,{onClick:E,className:"ml-2",children:[(0,z.jsx)(ct.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,z.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(o.updatedAt||"").toLocaleString()]})]})]})]})})}var ie=B(require("react"));var ke=ie.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ke.displayName="Card";var Ae=ie.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("flex flex-col space-y-1.5 p-6",e),...t}));Ae.displayName="CardHeader";var Te=ie.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("font-semibold leading-none tracking-tight",e),...t}));Te.displayName="CardTitle";var kr=ie.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("text-sm text-muted-foreground",e),...t}));kr.displayName="CardDescription";var Le=ie.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("p-6 pt-0",e),...t}));Le.displayName="CardContent";var Ar=ie.forwardRef(({className:e,...t},r)=>(0,z.jsx)("div",{ref:r,className:y("flex items-center p-6 pt-0",e),...t}));Ar.displayName="CardFooter";function je({deal:e,customer:t,categories:r,onClick:a,compact:i=!1}){let l=r.find(d=>d.type==="proposition"&&(e.categories??[]).includes(d.id));return i?(0,z.jsxs)(ke,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,z.jsxs)(Ae,{className:"pb-1 pt-2",children:[(0,z.jsx)(Te,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,z.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,z.jsx)(Le,{className:"text-xs text-gray-500 pb-2",children:(0,z.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,z.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,z.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,z.jsxs)(ke,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,z.jsxs)(Ae,{className:"pb-2",children:[(0,z.jsx)("div",{className:"flex justify-between items-center",children:(0,z.jsx)(Te,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,z.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,z.jsxs)(Le,{children:[(0,z.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,z.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,z.jsx)(ct.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,z.jsx)("span",{children:e.assignee.name})]}),(0,z.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,z.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,z.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,z.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,z.jsx)(ct.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,z.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,z.jsx)("div",{className:"flex justify-between items-left",children:l&&(0,z.jsx)(Re,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:l.name})})]})]})}var Ie=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Ke({onSubmit:e}){let[t,r]=(0,Ee.useState)({name:"",intro:"",active:!1});return(0,z.jsxs)("form",{onSubmit:i=>{i.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,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(I,{htmlFor:"customerName",children:"Customer Name"}),(0,z.jsx)(F,{id:"customerName",value:t.name,onChange:i=>r({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(I,{htmlFor:"customerIntro",children:"Intro"}),(0,z.jsx)(ee,{id:"customerIntro",value:t.intro??"",onChange:i=>r({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsx)(ae,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>r({...t,active:i})}),(0,z.jsx)(I,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,z.jsx)(H,{type:"submit",className:"w-full",children:"Add Customer"})]})}function $e({customers:e,users:t,categories:r,onSubmit:a,initialDeal:i,onAddCustomer:l,onClose:d}){let[o,b]=(0,Ee.useState)(i||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[v,p]=(0,Ee.useState)(!1),[u,h]=(0,Ee.useState)({});(0,Ee.useEffect)(()=>{i&&b(i)},[i]);let C=()=>{let m={};return o.customer||(m.customer="Customer is required"),o.value||(m.value="Value is required"),o.assignee||(m.assignee="Assignee is required"),o.closureDate||(m.closureDate="Closure Date is required"),h(m),Object.keys(m).length===0},x=async m=>{m.preventDefault(),h({});try{if(C()){let S=await a({...o});S.success?(b({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),d?.()):h(S.errors||{})}}catch{h({submit:"An error occurred while submitting the form."})}},P=m=>{b(S=>({...S,categories:(S.categories||[]).includes(m.id)?(S.categories||[]).filter(n=>n!==m.id):[...S.categories||[],m.id]}))},f=async m=>{b({...o,customer:m});try{let S=await l(m);S.success?p(!1):h(S.errors||{})}catch{h({submit:"An error occurred while submitting the form."})}},T=m=>t?.find(S=>S.id===Number(m)),E=m=>e?.find(S=>S.id===Number(m));return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("form",{onSubmit:x,className:"space-y-6",children:[(0,z.jsx)(fe,{className:"h-[60vh] pr-4",children:(0,z.jsxs)("div",{className:"space-y-6 px-4",children:[(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(I,{htmlFor:"customer",children:"Customer"}),(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsxs)(re,{value:o.customer?.id?.toString(),onValueChange:m=>b({...o,customer:E(m)}),children:[(0,z.jsx)(K,{children:(0,z.jsx)(oe,{placeholder:"Select customer"})}),(0,z.jsx)($,{children:e.map(m=>(0,z.jsx)(q,{value:m.id?.toString()||"",children:m.name},m.id))})]}),(0,z.jsx)(H,{variant:"outline",size:"icon",onClick:()=>p(!0),children:(0,z.jsx)(ct.PlusIcon,{className:"w-5 h-5"})})]}),u.customerId&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:u.customerId})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(I,{htmlFor:"value",children:"Value"}),(0,z.jsx)(F,{id:"value",type:"number",value:o.value||"",onChange:m=>b({...o,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),u.value&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:u.value})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(I,{htmlFor:"assignee",children:"Assignee"}),(0,z.jsxs)(re,{value:o.assignee?.id?.toString(),onValueChange:m=>b({...o,assignee:T(m)}),children:[(0,z.jsx)(K,{children:(0,z.jsx)(oe,{placeholder:"Select assignee"})}),(0,z.jsx)($,{children:t&&t.map(m=>(0,z.jsx)(q,{value:m.id?.toString()||"",children:m.name},m.id))})]}),u.assignee&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:u.assignee})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(I,{htmlFor:"description",children:"Description"}),(0,z.jsx)(ee,{id:"description",value:o.description||"",onChange:m=>b({...o,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(I,{children:"Categories"}),(0,z.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,z.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.filter(S=>S.type===m).map(S=>(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsx)(ae,{id:S.id.toString(),checked:o.categories?.includes(S.id),onCheckedChange:()=>P(S)}),(0,z.jsx)("label",{htmlFor:S.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:S.name})]},S.id))})]},m))})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(I,{htmlFor:"closureDate",children:"Closure Date"}),(0,z.jsx)(F,{id:"closureDate",type:"date",value:o.closureDate||"",onChange:m=>b({...o,closureDate:m.target.value})}),u.closureDate&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:u.closureDate})]})]})}),(0,z.jsx)(H,{type:"submit",className:"w-full",children:i?"Update Deal":"Add Deal"})]}),(0,z.jsx)(pe,{open:v,onOpenChange:p,children:(0,z.jsxs)(X,{children:[(0,z.jsx)(Z,{children:(0,z.jsx)(Y,{children:"Add New Customer"})}),(0,z.jsx)(Ke,{onSubmit:f})]})})]})}function we({status:e,deals:t,users:r,customers:a,categories:i,onDealClick:l,calculateColumnValue:d,calculateWeightedValue:o,addNewDeal:b,onAddCustomer:v,compact:p=!1}){let[u,h]=(0,Ee.useState)(!1);return(0,z.jsxs)("div",{className:"flex flex-col w-80",children:[(0,z.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),b&&(0,z.jsxs)(pe,{open:u,onOpenChange:h,children:[(0,z.jsx)(dt,{asChild:!0,children:(0,z.jsxs)(H,{className:"mb-4 w-full",children:[(0,z.jsx)(ct.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,z.jsxs)(X,{children:[(0,z.jsx)(Z,{children:(0,z.jsx)(Y,{children:"Add New Deal"})}),(0,z.jsx)($e,{customers:a,users:r,categories:i,onSubmit:b,onAddCustomer:v??(async()=>Promise.resolve({success:!1})),onClose:()=>h(!1)})]})]}),(0,z.jsx)(Ie.Droppable,{droppableId:e,isDropDisabled:!1,children:C=>(0,z.jsxs)("div",{ref:C.innerRef,...C.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((x,P)=>(0,z.jsx)(Ie.Draggable,{draggableId:x.id.toString(),index:x.id,children:f=>(0,z.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,z.jsx)(je,{deal:x,customer:x.customer,categories:i,onClick:()=>l(x),compact:p})})},x.id.toString())),C.placeholder]})}),(0,z.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,z.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,z.jsxs)("span",{className:"text-green-600",children:["\xA3",d(t).toLocaleString()]})]}),(0,z.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,z.jsxs)("span",{className:"text-blue-600",children:["\xA3",o(t,e).toLocaleString()]})]})]})]})}var Tr=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Lr({initialData:e,addNewDeal:t,updateDeal:r,addComment:a,addNewCustomer:i}){let[l,d]=(0,Ee.useState)(null),o=u=>(e.deals??[]).filter(h=>h.status===u),b=u=>u.reduce((h,C)=>h+(C.value||0),0),v=(u,h)=>{let C={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return u.reduce((x,P)=>x+(P.value||0)*C[h],0)},p=(0,Ee.useCallback)(u=>{let{source:h,destination:C}=u;if(!C||h.droppableId===C.droppableId&&h.index===C.index)return;let x=h.droppableId,P=C.droppableId,f=e.deals?.filter(E=>E.id===h.index)[0],T=[...e.deals??[]];f&&(f.status=P,r(f))},[r]);return(0,z.jsx)(Ie.DragDropContext,{onDragEnd:p,children:(0,z.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,z.jsx)("div",{className:"flex space-x-4 pb-4",children:Tr.filter(u=>u!=="Lost").map(u=>{let h=o(u);return(0,z.jsx)(we,{status:u,deals:h,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:d,calculateColumnValue:b,calculateWeightedValue:v,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:i},u)})}),l&&(0,z.jsx)(Ce,{deal:l,users:e.users,customer:l.customer,categories:e.categories??[],onClose:()=>d(null),onSave:r,onAddComment:u=>a(l.id.toString(),u)})]})})}var Mr=["firm","forecast","other"];function Ir({initialData:e,updateDeal:t,addComment:r}){let[a,i]=(0,Ee.useState)(null),l=v=>(e.deals??[]).filter(p=>p.gecoStatus===v).filter(p=>p.status!=="Lost"&&p.status!=="Cold"),d=v=>v.reduce((p,u)=>p+(u.value||0),0),o=(v,p)=>{let u={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return v.reduce((h,C)=>h+(C.value||0)*(u[C.status]??0),0)},b=(0,Ee.useCallback)(v=>{let{source:p,destination:u}=v;if(!u||p.droppableId===u.droppableId&&p.index===u.index)return;let h=p.droppableId,C=u.droppableId,x=e.deals?.filter(f=>f.id===p.index)[0],P=[...e.deals??[]];x&&(x.gecoStatus=C,t(x))},[t]);return(0,z.jsx)(Ie.DragDropContext,{onDragEnd:b,children:(0,z.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,z.jsx)("div",{className:"flex space-x-4 pb-4",children:Mr.map(v=>{let p=l(v);return(0,z.jsx)(we,{status:v,deals:p,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:i,calculateColumnValue:d,calculateWeightedValue:o,compact:!0},v)})}),a&&(0,z.jsx)(Ce,{deal:a,users:e.users,customer:a.customer,categories:e.categories??[],onClose:()=>i(null),onSave:t,onAddComment:v=>r(a.id.toString(),v)})]})})}0&&(module.exports={CRMCogeBoard,CRMKanbanBoard,DealCard,DealDetails,KanbanColumn,NewCustomerForm,NewDealForm});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as g}from"../../chunk-OIQ6GXBY.mjs";import{a as f}from"../../chunk-G72SIYN7.mjs";import{a as e}from"../../chunk-PFWODHNV.mjs";import{a as d}from"../../chunk-TASJS6US.mjs";import{a as c}from"../../chunk-ERUB6LU6.mjs";import{a as b}from"../../chunk-FFESN4FM.mjs";import{a}from"../../chunk-MEWCJ4MA.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{g as CRMCogeBoard,f as CRMKanbanBoard,b as DealCard,a as DealDetails,e as KanbanColumn,c as NewCustomerForm,d as NewDealForm};
|
|
@@ -6,6 +6,7 @@ export type EditableDeal = Omit<Partial<Deal>, 'comments' | 'customer'> & {
|
|
|
6
6
|
customer: Partial<Customer>;
|
|
7
7
|
};
|
|
8
8
|
export type CRMStatus = "Cold" | "Qualified" | "Proposal Made" | "SoW Submitted" | "Won" | "Lost";
|
|
9
|
+
export type gecoStatus = 'firm' | 'forecast' | 'other';
|
|
9
10
|
export type BoardData = {
|
|
10
11
|
deals?: Deal[];
|
|
11
12
|
users?: User[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=Object.defineProperty;var
|
|
1
|
+
"use strict";var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(t,e,l,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of m(e))!p.call(t,a)&&a!==l&&r(t,a,{get:()=>e[a],enumerable:!(o=s(e,a))||o.enumerable});return t};var i=t=>u(r({},"__esModule",{value:!0}),t);var y={};module.exports=i(y);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as a}from"../../chunk-
|
|
1
|
+
import{h as a}from"../../chunk-X3MBDMXV.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-VXGRJCCM.mjs";import"../../chunk-DAJNZDN6.mjs";import"../../chunk-KETV2XVN.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as ContentCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o,b as t}from"../../chunk-3TVLETYW.mjs";import{h as e}from"../../chunk-
|
|
1
|
+
import{a as o,b as t}from"../../chunk-3TVLETYW.mjs";import{h as e}from"../../chunk-X3MBDMXV.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-VXGRJCCM.mjs";import"../../chunk-DAJNZDN6.mjs";import"../../chunk-KETV2XVN.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";var i={title:"Reusable Blocks/ContentCard",component:e,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:"select",options:["solid","light","gradient","radial"],description:"The visual style variant of the card"},heading:{control:"text"},subheading:{control:"text"},content:{control:"object"},statistic:{control:"text"},buttonText:{control:"text"},buttonHref:{control:"text"},icon:{control:"boolean"}}},d=i,a={args:{variant:"solid",heading:"Results",icon:{type:"kit",iconName:"software"},statistic:"85%",content:{root:{children:[{type:"paragraph",children:[{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",mode:"normal",type:"text"}]}]}}}},m={args:{variant:"outline",heading:"Lorem ipsum dolor sit",icon:{type:"kit",iconName:"software"},iconSize:"small",width:"1/4"}},n={args:{variant:"light",icon:{type:"kit",iconName:"software"},heading:"Lorem ipsum dolor sit amet",content:{root:{children:[{type:"paragraph",children:[{text:"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",mode:"normal",type:"text"}]},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Ut enim ad minim veniam, quis nostrud exercitation ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",children:[{text:"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",mode:"normal",type:"text"}]}]}}}},u={args:{variant:"gradient",heading:"Lorem ipsum dolor sit amet",content:{root:{children:[{type:"paragraph",children:[{text:"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",mode:"normal",type:"text"}]},{type:"paragraph",children:[{text:"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",mode:"normal",type:"text"}]}]}}}},p={args:{variant:"radial",subheading:"go to the next level",heading:"Lorem ipsum dolor sit amet",buttonText:"Go here",buttonHref:"#"}},g={args:{...n.args,icon:void 0}},y={args:{...a.args,className:"max-w-md"}},h={args:{icon:{type:"fa-thin",iconName:"robot"},heading:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,settings:{card:"outline",icon:"large"}}},x={args:{icon:{type:"fa-thin",iconName:"lightbulb"},link:{label:"label",type:"custom",url:"#"},heading:"Intelligent Insights",statistic:"80%",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation.",variant:"light"}},b={args:{icon:{type:"fa-thin",iconName:"robot"},heading:"Sed at eros vel lacus varius varius nec id metus.",link:{label:"label",type:"custom",url:"#"},content:t.simple,settings:{card:"outline",iconSize:"large"}}},v={args:{icon:{type:"fa-thin",iconName:"lightbulb"},link:{label:"label",type:"custom",url:"#"},heading:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,iconSize:"small",statistic:"80%",settings:{card:"radial"}}},S={args:{image:o.hero,icon:{type:"fa-thin",iconName:"lightbulb"},link:{label:"label",type:"custom",url:"#"},heading:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,iconSize:"small",statistic:"80%",settings:{card:"radial"}}};export{y as CustomStyling,u as Gradient,h as IconOutline,b as IconOutlineCTA,S as Image,n as Light,m as Minimal,g as NoIcon,x as NoOutline,p as Radial,v as SmallIcon,a as Solid,d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as a}from"../../chunk-
|
|
1
|
+
import{g as a}from"../../chunk-X3MBDMXV.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-VXGRJCCM.mjs";import"../../chunk-DAJNZDN6.mjs";import"../../chunk-KETV2XVN.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as FeatureCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t}from"../../chunk-3TVLETYW.mjs";import{g as i}from"../../chunk-
|
|
1
|
+
import{a as e,b as t}from"../../chunk-3TVLETYW.mjs";import{g as i}from"../../chunk-X3MBDMXV.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-VXGRJCCM.mjs";import"../../chunk-DAJNZDN6.mjs";import"../../chunk-KETV2XVN.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";var o={title:"Reusable Blocks/FeatureCard",component:i,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{settings:{card:{control:"select",options:["solid","light","gradient","radial"],description:"The visual style variant of the card"}},title:{control:"text"},subtitle:{control:"text"},content:{control:"object"},statistic:{control:"text"}}},u=o,r={args:{settings:{card:"solid",iconSize:"large"},title:"Results",icon:{type:"kit",icon:"software"},statistic:"85%",content:{root:{children:[{type:"paragraph",children:[{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",mode:"normal",type:"text"}]}]}}}},d={args:{settings:{card:"outline",iconSize:"small"},title:"Lorem ipsum dolor sit",icon:{type:"kit",icon:"software"},width:"1/4",content:{root:{children:[{type:"paragraph",children:[{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",mode:"normal",type:"text"}]}]}}}},a={args:{settings:{card:"light"},icon:{type:"kit",icon:"software"},title:"Lorem ipsum dolor sit amet",content:{root:{children:[{type:"paragraph",children:[{text:"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",mode:"normal",type:"text"}]},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Ut enim ad minim veniam, quis nostrud exercitation ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",children:[{text:"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",mode:"normal",type:"text"}]}]}}}},m={args:{settings:{card:"gradient"},title:"Lorem ipsum dolor sit amet",content:{root:{children:[{type:"paragraph",children:[{text:"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",mode:"normal",type:"text"}]},{type:"paragraph",children:[{text:"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",mode:"normal",type:"text"}]}]}}}},p={args:{settings:{card:"radial"},subtitle:"go to the next level",title:"Lorem ipsum dolor sit amet",link:{label:"Go here",url:"#"}}},g={args:{...a.args,icon:void 0}},y={args:{...r.args,className:"max-w-md bg-brand-green"}},h={args:{icon:{type:"fa-thin",icon:"robot"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,settings:{card:"outline",icon:"large"}}},x={args:{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Intelligent Insights",statistic:"80%",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation.",settings:{card:"light"}}},v={args:{icon:{type:"fa-thin",icon:"robot"},title:"Sed at eros vel lacus varius varius nec id metus.",link:{label:"label",type:"custom",url:"#"},content:t.simple,settings:{card:"outline",iconSize:"large"}}},b={args:{icon:{type:"fa-thin",icon:"lightbulb"},link:{type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,statistic:"80%",settings:{card:"radial",iconSize:"small"}}},S={args:{image:e.hero,icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",subtitle:"Varius varius nec id metus.",content:t.simple,statistic:"80%",settings:{card:"light",iconSize:"large"}}},f={args:{image:e.hero,link:{label:"find out more",type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,settings:{card:"light"}}},k={args:{image:e.hero,link:{label:"find out more",type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",content:"Varius varius nec id metus. Sed at eros vel lacus varius varius nec id metus.",settings:{card:"light"}}};export{y as CustomStyling,m as Gradient,h as IconOutline,v as IconOutlineCTA,S as Image,a as Light,d as Minimal,g as NoIcon,x as NoOutline,p as Radial,b as SmallIcon,r as Solid,f as TitleImage,k as TitleImagePlainText,u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as a,h as i}from"../../chunk-
|
|
1
|
+
import{g as a,h as i}from"../../chunk-X3MBDMXV.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-DIAK5C43.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-WDDAVAVV.mjs";import{a as e}from"../../chunk-VIS6GPCT.mjs";import{a as g}from"../../chunk-E6KVX2UG.mjs";import{a as d}from"../../chunk-LLNCOMIM.mjs";import{a as f}from"../../chunk-6HORFOA3.mjs";import{a as h}from"../../chunk-KUZCFJTH.mjs";import"../../chunk-VXGRJCCM.mjs";import"../../chunk-DAJNZDN6.mjs";import"../../chunk-KETV2XVN.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-BPSLUO5I.mjs";import{a as b}from"../../chunk-FHJDQP4I.mjs";import{a as c}from"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{i as ContentCard,b as CustomerCard,c as EventCard,a as FeatureCard,h as Hero,e as Image,g as PricingCard,d as ProjectCard,f as ServiceCard};
|