cortex-react-components 1.65.0 → 1.65.2
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-SKQYQ4SD.mjs → chunk-26JAUUHC.mjs} +1 -1
- package/dist/{chunk-ILBKV7ZM.mjs → chunk-2MTAQ2YX.mjs} +1 -1
- package/dist/{chunk-XDLNQPZY.mjs → chunk-35SLQX5Z.mjs} +1 -1
- package/dist/{chunk-APNL5YEF.mjs → chunk-3FZPSPIZ.mjs} +1 -1
- package/dist/{chunk-PADGOK5C.mjs → chunk-4MFTG62S.mjs} +1 -1
- package/dist/{chunk-33ZXPMQU.mjs → chunk-4NRRPFAV.mjs} +1 -1
- package/dist/{chunk-E6ZAA4QH.mjs → chunk-5C4F3OYA.mjs} +1 -1
- package/dist/{chunk-YZ47PIHK.mjs → chunk-5CCW24XE.mjs} +1 -1
- package/dist/chunk-5UQKSJU5.mjs +4 -0
- package/dist/chunk-5V2PNTEF.mjs +1 -0
- package/dist/{chunk-CZIRJUID.mjs → chunk-6E5WHIW6.mjs} +1 -1
- package/dist/{chunk-E7W2GFKO.mjs → chunk-6YHRHDB7.mjs} +1 -1
- package/dist/{chunk-EGYV6SU2.mjs → chunk-BFESGJZ4.mjs} +1 -1
- package/dist/{chunk-I5DSZMH2.mjs → chunk-D6TOSZKM.mjs} +1 -1
- package/dist/{chunk-4A43BI3C.mjs → chunk-E6JYZMWA.mjs} +1 -1
- package/dist/{chunk-Z3YAIJQT.mjs → chunk-FCNEFWQ7.mjs} +1 -1
- package/dist/{chunk-2ELJOFU3.mjs → chunk-GWBCK4SV.mjs} +1 -1
- package/dist/chunk-IEQL2U53.mjs +4 -0
- package/dist/{chunk-5OMUHSTO.mjs → chunk-JBWGBBHF.mjs} +1 -1
- package/dist/{chunk-DJQUKJMH.mjs → chunk-JRB2R6LE.mjs} +1 -1
- package/dist/{chunk-ZJSR6A6I.mjs → chunk-JRFNBHPL.mjs} +1 -1
- package/dist/{chunk-IISHIQBQ.mjs → chunk-JXW2QARY.mjs} +1 -1
- package/dist/{chunk-3XV6OBSL.mjs → chunk-K347D5ZJ.mjs} +1 -1
- package/dist/{chunk-BYSEFJFA.mjs → chunk-KFQ3L3TO.mjs} +1 -1
- package/dist/{chunk-3QWSFRVM.mjs → chunk-KJ7DELAG.mjs} +1 -1
- package/dist/{chunk-5DJ7VOAO.mjs → chunk-KWTCUGN5.mjs} +1 -1
- package/dist/{chunk-P3PIMDIR.mjs → chunk-L74JGLMR.mjs} +1 -1
- package/dist/{chunk-U5XA76PE.mjs → chunk-LSVWCONK.mjs} +1 -1
- package/dist/{chunk-JTQWVSV5.mjs → chunk-NGBQVG6N.mjs} +1 -1
- package/dist/{chunk-L7FUS5TO.mjs → chunk-NIUDBN75.mjs} +1 -1
- package/dist/{chunk-3UA62APP.mjs → chunk-NLA3SBVN.mjs} +1 -1
- package/dist/{chunk-TWPRI2XQ.mjs → chunk-NUPPPEG7.mjs} +1 -1
- package/dist/{chunk-AKH3ER3D.mjs → chunk-OQR6YVKI.mjs} +1 -1
- package/dist/{chunk-R64KZZJP.mjs → chunk-PYAM4YXE.mjs} +1 -1
- package/dist/chunk-QYMXR42G.mjs +4 -0
- package/dist/{chunk-4GL57G4E.mjs → chunk-RGWP2OVM.mjs} +1 -1
- package/dist/{chunk-AN6TXGAM.mjs → chunk-S7FH27PL.mjs} +1 -1
- package/dist/{chunk-YWUPEMYN.mjs → chunk-TFP6VQ32.mjs} +1 -1
- package/dist/{chunk-STHWCR5K.mjs → chunk-TT4SPGZU.mjs} +1 -1
- package/dist/{chunk-ZEOV7BEN.mjs → chunk-TTRDD6M2.mjs} +1 -1
- package/dist/{chunk-Q5LSCSF7.mjs → chunk-TYBLC6LO.mjs} +1 -1
- package/dist/{chunk-6L2BDKJU.mjs → chunk-ULWFOWF2.mjs} +1 -1
- package/dist/{chunk-Y6RAHEXF.mjs → chunk-V5EOKY7D.mjs} +1 -1
- package/dist/chunk-W3ONOYB6.mjs +1 -0
- package/dist/{chunk-NVN7UJT6.mjs → chunk-WG2HHJYU.mjs} +1 -1
- package/dist/{chunk-T6FBWMZR.mjs → chunk-WKFNZUIR.mjs} +1 -1
- package/dist/{chunk-7SPGDJJI.mjs → chunk-Y5ZPWPOT.mjs} +1 -1
- package/dist/{chunk-ROEJPYRW.mjs → chunk-Y73QTPA6.mjs} +1 -1
- package/dist/{chunk-IDRYG7HP.mjs → chunk-YWVLHQ3L.mjs} +1 -1
- package/dist/{chunk-6OS3ZJBB.mjs → chunk-ZKBLFPGO.mjs} +1 -1
- package/dist/{chunk-WSKZ2N7J.mjs → chunk-ZOP4SDLB.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/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.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.stories.js +1 -1
- package/dist/components/CRM/CogeBoard.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 +1 -9
- package/dist/components/CRM/KanbanColumn.js +1 -4
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -4
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +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.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.stories.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.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicsView.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicsView.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.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.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/PlanningView.mjs +1 -1
- package/dist/components/DigitalColleagues/PlanningView.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TeamSwitcher.mjs +1 -1
- 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/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.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/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 +8 -8
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.mjs +1 -1
- package/dist/components/ui/tabs.stories.css +1 -0
- package/dist/components/ui/tabs.stories.js +4 -0
- package/dist/components/ui/tabs.stories.mjs +1 -0
- package/dist/globals.css +1 -1
- package/dist/index.js +14 -14
- 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/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/MainPageSection.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-6BOIU52Z.mjs +0 -4
- package/dist/chunk-DVF55CWB.mjs +0 -4
- package/dist/chunk-H3V6RZEI.mjs +0 -4
- package/dist/chunk-MEWCJ4MA.mjs +0 -1
- package/dist/chunk-PFWODHNV.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"../../chunk-
|
|
1
|
+
import{c as t}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";import{jsx as i}from"react/jsx-runtime";var r={title:"Reusable Blocks/CallToAction",component:t},s=r,o=l=>i(t,{...l}),e=o.bind({});e.args={richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}},links:[{link:{type:"custom",label:"Learn More",url:"#"}},{link:{type:"custom",label:"Get Started",url:"#"}}]};var a=o.bind({});a.args={...e.args,links:[{link:{type:"custom",label:"Learn More",url:"#"}}]};var n=o.bind({});n.args={...e.args,links:[{link:{type:"custom",label:"Contact us",url:"/contact"}}]};export{n as ContactUs,e as Default,a as SingleLink,s as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-JRFNBHPL.mjs";import"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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 CollapsibleBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"../../chunk-
|
|
1
|
+
import{a as t}from"../../chunk-JRFNBHPL.mjs";import"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";import{jsx as i}from"react/jsx-runtime";var o={title:"Reusable Blocks/CollapsibleArea",component:t},n=o,r=e=>i(t,{...e}),a=r.bind({});a.args={title:"Collapsible Area",richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}}};var m={args:{title:"This is a long title that will wrap to the next line providing that the text is really long and does not fit in the available space. More text will be added to make sure that the title wraps to the next line.",richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}}}},d={args:{title:"Long text area",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Ways of Working",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"We want to build a company culture where effort is recognised and rewarded, therefore we would like to set out some guidelines.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Effort Matters:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" Every team member\u2019s contributions, big or small, are valued and noticed.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Commitment to Excellence:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" Deliver work with attention to quality and impact.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proactive Collaboration:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" Support teammates and contribute to shared goals.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:" ",type:"text",style:"",detail:0,format:0,version:1}],direction:null,textStyle:"",textFormat:0},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Working Hours",type:"text",style:"",detail:0,format:1,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Core Hours:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" All employees should be available from ",type:"text",style:"",detail:0,format:0,version:1},{mode:"normal",text:"08:30 to 17:30",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" to maintain collaboration and responsiveness during key business hours. Total working week 40 hours",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Flexible Working:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" We support flexibility outside core hours, allowing you to adjust your start and finish times as long as work priorities are met and team coordination remains unaffected.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"In-Office Day:",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" To promote team culture, all employees are required to work ",type:"text",style:"",detail:0,format:0,version:1},{mode:"normal",text:"one day a week in their local office",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:". This day will be agreed upon within teams to ensure maximum participation and collaboration.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Holiday Process",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - TBC (confirmed once we have an App)",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:" ",type:"text",style:"",detail:0,format:0,version:1}],direction:null,textStyle:"",textFormat:0},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Team Collaboration",type:"text",style:"",detail:0,format:1,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Bi-Weekly - ",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:"All employees must attend the Bi-Weekly team meeting at their local office or remotely via teams (optionally can travel to the remote office for the meeting if they wish)",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Bench Call",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - Any employees on the bench must attend the daily bench call and provide updates on their progress.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"POD's",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - Everyone should be actively involved with at least POD",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Cameras",type:"text",style:"",detail:0,format:1,version:1},{mode:"normal",text:" - Camera should always be on during Teams calls",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:1},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:" ",type:"text",style:"",detail:0,format:0,version:1}],direction:null,textStyle:"",textFormat:0}],direction:"ltr"}}}};export{a as Default,n as default,d as longTextArea,m as longTitle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-3FZPSPIZ.mjs";import"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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 ContentBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"../../chunk-3TVLETYW.mjs";import{a as l}from"../../chunk-
|
|
1
|
+
import{c as e}from"../../chunk-3TVLETYW.mjs";import{a as l}from"../../chunk-3FZPSPIZ.mjs";import"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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 n={title:"Reusable Blocks/ContentBlock",component:l},o=n,t={args:{...e.content.halfWithEmbeddedImage}},r={args:{...e.content.media}},s={args:{...e.content.oneThirdWithImageTheme3Collumns}},m={args:{...e.content.headerAndTheme3Collumns}},u={args:{...e.content.boxesWithThreeColumns}},g={args:{...t.args,theme:{...t.args.theme,settings:{...t.args.theme?.settings,box:"line"}}}},p={args:{...e.content.halfWithFeature}},c={args:{id:"681a4999a2fd5620877e41a0",blockName:null,columns:[{id:"681a499ca2fd5620877e41a2",size:"full",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"image below",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"block",fields:{id:"681a49b9a0eff783489b8eea",media:{id:1,alt:"Logo",updatedAt:"2025-05-06T17:41:52.026Z",createdAt:"2025-05-06T17:41:51.884Z",url:"/api/images/file/aWkuXsguxANsbGKAUk7Dc.png",thumbnailURL:"/api/images/file/aWkuXsguxANsbGKAUk7Dc-300x292.png",filename:"aWkuXsguxANsbGKAUk7Dc.png",mimeType:"image/png",filesize:14892,width:690,height:672,focalX:50,focalY:50,sizes:{thumbnail:{url:"/api/images/file/aWkuXsguxANsbGKAUk7Dc-300x292.png",width:300,height:292,mimeType:"image/png",filesize:7250,filename:"aWkuXsguxANsbGKAUk7Dc-300x292.png"},square:{url:"/api/images/file/aWkuXsguxANsbGKAUk7Dc-500x500.png",width:500,height:500,mimeType:"image/png",filesize:14930,filename:"aWkuXsguxANsbGKAUk7Dc-500x500.png"},small:{url:"/api/images/file/aWkuXsguxANsbGKAUk7Dc-600x584.png",width:600,height:584,mimeType:"image/png",filesize:19090,filename:"aWkuXsguxANsbGKAUk7Dc-600x584.png"},medium:{url:null,width:null,height:null,mimeType:null,filesize:null,filename:null},large:{url:null,width:null,height:null,mimeType:null,filesize:null,filename:null},xlarge:{url:null,width:null,height:null,mimeType:null,filesize:null,filename:null}}},theme:{settings:{theme:"default",background:"transparent"}},blockName:"",blockType:"imageBlock"},format:"",version:2},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"image above",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},enableLink:null,link:{type:"none",newTab:null,url:null,label:null,appearance:"default"}}],blockType:"content",theme:{settings:{theme:"default",background:"transparent",image:null,overlay:null,box:"none"}}}};export{g as BoxesWithImage,u as BoxesWithThreeColumns,t as Default,p as Features,m as HeaderAndThreeColumns,r as Media,c as Test,s as ThreeColumns,o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a}from"../../chunk-
|
|
1
|
+
import{d as a}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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 FeaturesBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"../../chunk-3TVLETYW.mjs";import{d as e}from"../../chunk-
|
|
1
|
+
import{b as t}from"../../chunk-3TVLETYW.mjs";import{d as e}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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/FeaturesBlock",component:e,tags:["autodocs"],parameters:{layout:"padded"}},l=i,c={args:{title:"Lorem ipsum dolor sit amet",description:"Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus.",features:[{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"}},{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"}},{icon:{type:"fa-kit",icon:"software"},title:"Collaborative Partners",statistic:"80%",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance.",settings:{card:"solid"}}]}},u={args:{features:[{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"}},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,statistic:"80%",settings:{card:"radial",iconSize:"small"}},{icon:{type:"fa-kit",icon:"software"},title:"Sed at eros vel lacus.",content:t.simple,statistic:"80%",settings:{card:"gradient",iconSize:"large"}}]}},d={args:{features:[{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:"small"}},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,settings:{card:"light",iconSize:"small"}},{icon:{type:"fa-kit",icon:"software"},title:"Sed at eros vel lacus.",content:t.simple,statistic:"80%",settings:{card:"gradient",iconSize:"small"}}]}},m={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."}]}},p={args:{title:"Lorum ipsum dolor sit amet",features:[{icon:{type:"fa-thin",icon:"robot"},title:"Lorem ipsum dolor sit amet",content:"lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Sed at eros vel lacus varius varius nec id metus",content:"Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus."},{icon:{type:"fa-thin",icon:"robot"},title:"Lorem ipsum dolor sit amet",content:"lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Sed at eros vel lacus varius varius nec id metus",content:"Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus."},{icon:{type:"fa-thin",icon:"robot"},title:"Lorem ipsum dolor sit amet",content:"lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus."}]}},g={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},y={args:{title:"What Are Digital Colleagues?",features:[{title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},v={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}},f={args:{title:"Test Content",features:[{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}}],blockType:"features",theme:{settings:{theme:"default",background:"transparent",image:null,overlay:null}}}},h={args:{title:"Test Content",features:[{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}},{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}},{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}}],blockType:"features",theme:{settings:{theme:"default",background:"transparent",image:null,overlay:null}}}};export{f as Cards,c as Default,p as FiveFeatures,u as MoreOptions,y as NoIcon,v as NoTitle,g as OneFeature,d as OtherOptions,h as ThreeCards,m as TwoFeatures,l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-KWTCUGN5.mjs";import"../../chunk-ZY2PDUUB.mjs";import"../../chunk-RYZTCMVC.mjs";import"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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 RelatedPosts};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b,d as c,e as d,f as e,g as f}from"../../chunk-
|
|
1
|
+
import{b as a,c as b,d as c,e as d,f as e,g as f}from"../../chunk-JXW2QARY.mjs";import"../../chunk-JRFNBHPL.mjs";import"../../chunk-3FZPSPIZ.mjs";import"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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{e as DarkTop,f as LightTop,a as RenderBlocks,c as RenderBlocksWithShapes,b as Theme,d as ThemeWithShapes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-JXW2QARY.mjs";import"../../chunk-JRFNBHPL.mjs";import"../../chunk-3FZPSPIZ.mjs";import"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import"../../chunk-IC57R2EU.mjs";import"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.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 ReusableContentBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as x}from"../../chunk-KWTCUGN5.mjs";import"../../chunk-ZY2PDUUB.mjs";import{a as n}from"../../chunk-EPTHSTUM.mjs";import{a as l}from"../../chunk-53QLSQCO.mjs";import{a as m}from"../../chunk-UMBMLD26.mjs";import{a as p}from"../../chunk-JCH2CCQ7.mjs";import{a as i}from"../../chunk-RVRIMD6M.mjs";import"../../chunk-UF3I2XE2.mjs";import"../../chunk-GXC2S7UQ.mjs";import"../../chunk-RYZTCMVC.mjs";import{a as q,b as r,c as s,d as t,e as u,f as v,g as w}from"../../chunk-JXW2QARY.mjs";import"../../chunk-JRFNBHPL.mjs";import{a as o}from"../../chunk-3FZPSPIZ.mjs";import{a as k}from"../../chunk-IQPZEEYJ.mjs";import{a as j}from"../../chunk-H7D3PZKE.mjs";import{a,b,c,d as h}from"../../chunk-NLA3SBVN.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-C4DU747D.mjs";import"../../chunk-TT4SPGZU.mjs";import"../../chunk-L3PFZ7PW.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-56RXRTGZ.mjs";import"../../chunk-WDDAVAVV.mjs";import"../../chunk-VIS6GPCT.mjs";import"../../chunk-E6KVX2UG.mjs";import"../../chunk-LLNCOMIM.mjs";import"../../chunk-6HORFOA3.mjs";import"../../chunk-KUZCFJTH.mjs";import{a as f}from"../../chunk-IC57R2EU.mjs";import{a as g}from"../../chunk-PBRC3UOA.mjs";import"../../chunk-SX5U74MW.mjs";import"../../chunk-KHZPOMKL.mjs";import"../../chunk-FRTYO74I.mjs";import{a as e}from"../../chunk-7PBTM4J4.mjs";import"../../chunk-4BDIVC2Q.mjs";import{a as d}from"../../chunk-TQQVBE66.mjs";import"../../chunk-BUCI7BPM.mjs";import"../../chunk-FHJDQP4I.mjs";import"../../chunk-BLD454AX.mjs";import"../../chunk-4BHOIXJM.mjs";import"../../chunk-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as BannerBlock,c as CallToActionBlock,b as CallToActionBlockOld,e as CodeBlock,o as ContentBlock,d as CopyButton,v as DarkTop,h as FeaturesBlock,p as HeadingImage,g as ImageBlock,j as InfoTile,i as Insight,w as LightTop,k as MOTD,f as MediaBlock,l as OrgChart,m as ProposalSummary,x as RelatedPosts,r as RenderBlocks,t as RenderBlocksWithShapes,q as ReusableContentBlock,s as Theme,u as ThemeWithShapes,n as WhyUs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";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})},$e=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zt(t))!Ht.call(e,i)&&i!==r&&we(e,i,{get:()=>t[i],enumerable:!(a=Et(t,i))||a.enumerable});return e};var z=(e,t,r)=>(r=e!=null?Mt(Bt(e)):{},$e(t||!e||!e.__esModule?we(r,"default",{value:e,enumerable:!0}):r,e)),Ft=e=>$e(we({},"__esModule",{value:!0}),e);var Ar={};Vt(Ar,{CRMCogeBoard:()=>kr});module.exports=Ft(Ar);var Le=require("react");var he=z(require("react")),I=z(require("@radix-ui/react-dialog")),rt=require("lucide-react");var tt=require("clsx");var Ve="-",Ut=e=>{let t=Gt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:m=>{let o=m.split(Ve);return o[0]===""&&o.length!==1&&o.shift(),Je(o,t)||Wt(m)},getConflictingClassGroupIds:(m,o)=>{let g=r[m]||[];return o&&a[m]?[...g,...a[m]]:g}}},Je=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),i=a?Je(e.slice(1),a):void 0;if(i)return i;if(t.validators.length===0)return;let l=e.join(Ve);return t.validators.find(({validator:m})=>m(l))?.classGroupId},qe=/^\[(.+)\]$/,Wt=e=>{if(qe.test(e)){let t=qe.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 jt(Object.entries(e.classGroups),r).forEach(([l,m])=>{He(m,a,l,t)}),a},He=(e,t,r,a)=>{e.forEach(i=>{if(typeof i=="string"){let l=i===""?t:Ke(t,i);l.classGroupId=r;return}if(typeof i=="function"){if(Ot(i)){He(i(a),t,r,a);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([l,m])=>{He(m,Ke(t,l),r,a)})})},Ke=(e,t)=>{let r=e;return t.split(Ve).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Ot=e=>e.isThemeGetter,jt=(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(([m,o])=>[t+m,o])):l);return[r,i]}):e,_t=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,i=(l,m)=>{r.set(l,m),t++,t>e&&(t=0,a=r,r=new Map)};return{get(l){let m=r.get(l);if(m!==void 0)return m;if((m=a.get(l))!==void 0)return i(l,m),m},set(l,m){r.has(l)?r.set(l,m):i(l,m)}}},Qe="!",$t=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,i=t[0],l=t.length,m=o=>{let g=[],b=0,f=0,C;for(let h=0;h<o.length;h++){let L=o[h];if(b===0){if(L===i&&(a||o.slice(h,h+l)===t)){g.push(o.slice(f,h)),f=h+l;continue}if(L==="/"){C=h;continue}}L==="["?b++:L==="]"&&b--}let N=g.length===0?o:o.substring(f),w=N.startsWith(Qe),v=w?N.substring(1):N,k=C&&C>f?C-f:void 0;return{modifiers:g,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:k}};return r?o=>r({className:o,parseClassName:m}):m},qt=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},Kt=e=>({cache:_t(e.cacheSize),parseClassName:$t(e),...Ut(e)}),Jt=/\B+/,Qt=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:i}=t,l=[],m=e.trim().split(Jt),o="";for(let g=m.length-1;g>=0;g-=1){let b=m[g],{modifiers:f,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:w}=r(b),v=!!w,k=a(v?N.substring(0,w):N);if(!k){if(!v){o=b+(o.length>0?" "+o:o);continue}if(k=a(N),!k){o=b+(o.length>0?" "+o:o);continue}v=!1}let h=qt(f).join(":"),L=C?h+Qe:h,E=L+k;if(l.includes(E))continue;l.push(E);let d=i(k,v);for(let y=0;y<d.length;++y){let n=d[y];l.push(L+n)}o=b+(o.length>0?" "+o:o)}return o};function Xt(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Xe(t))&&(a&&(a+=" "),a+=r);return a}var Xe=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Xe(e[a]))&&(r&&(r+=" "),r+=t);return r};function Zt(e,...t){let r,a,i,l=m;function m(g){let b=t.reduce((f,C)=>C(f),e());return r=Kt(b),a=r.cache.get,i=r.cache.set,l=o,o(g)}function o(g){let b=a(g);if(b)return b;let f=Qt(g,r);return i(g,f),f}return function(){return l(Xt.apply(null,arguments))}}var D=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ze=/^\[(?:([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)|it|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=>de(e)||er.has(e)||Yt.test(e),O=e=>me(e,"length",ur),de=e=>!!e&&!Number.isNaN(Number(e)),Be=e=>me(e,"number",de),be=e=>!!e&&Number.isInteger(Number(e)),ir=e=>e.endsWith("%")&&de(e.slice(0,-1)),p=e=>Ze.test(e),j=e=>tr.test(e),nr=new Set(["length","size","percentage"]),lr=e=>me(e,nr,Ye),cr=e=>me(e,"position",Ye),dr=new Set(["image","url"]),mr=e=>me(e,dr,gr),pr=e=>me(e,"",fr),ve=()=>!0,me=(e,t,r)=>{let a=Ze.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),Ye=()=>!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"),i=D("borderColor"),l=D("borderRadius"),m=D("borderSpacing"),o=D("borderWidth"),g=D("contrast"),b=D("grayscale"),f=D("hueRotate"),C=D("invert"),N=D("gap"),w=D("gradientColorStops"),v=D("gradientColorStopPositions"),k=D("inset"),h=D("margin"),L=D("opacity"),E=D("padding"),d=D("saturate"),y=D("scale"),n=D("sepia"),P=D("skew"),ce=D("space"),We=D("translate"),Ie=()=>["auto","contain","none"],Me=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",p,t],R=()=>[p,t],Ge=()=>["",G,O],ye=()=>["auto",de,p],Oe=()=>["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"],ze=()=>["start","end","center","between","around","evenly","stretch"],ge=()=>["","0",p],_e=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[de,p];return{cacheSize:500,separator:":",theme:{colors:[ve],spacing:[G,O],blur:["none","",j,p],brightness:W(),borderColor:[e],borderRadius:["none","","full",j,p],borderSpacing:R(),borderWidth:Ge(),contrast:W(),grayscale:ge(),hueRotate:W(),invert:ge(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[ir,O],inset:Ee(),margin:Ee(),opacity:W(),padding:R(),saturate:W(),scale:W(),sepia:ge(),skew:W(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[j]}],"break-after":[{"break-after":_e()}],"break-before":[{"break-before":_e()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Oe(),p]}],overflow:[{overflow:Me()}],"overflow-x":[{"overflow-x":Me()}],"overflow-y":[{"overflow-y":Me()}],overscroll:[{overscroll:Ie()}],"overscroll-x":[{"overscroll-x":Ie()}],"overscroll-y":[{"overscroll-y":Ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",be,p]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:ge()}],shrink:[{shrink:ge()}],order:[{order:["first","last","none",be,p]}],"grid-cols":[{"grid-cols":[ve]}],"col-start-end":[{col:["auto",{span:["full",be,p]},p]}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":[ve]}],"row-start-end":[{row:["auto",{span:[be,p]},p]}],"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",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...ze()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ze(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ze(),"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]}],it:[{it:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[j]},j]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",j,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Be]}],"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",p]}],"line-clamp":[{"line-clamp":["none",de,Be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"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,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Oe(),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:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[l]}],"rounded-B":[{"rounded-B":[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-Le":[{"rounded-Le":[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-B":[{"border-B":[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":[L]}],"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":[L]}],"divide-style":[{divide:Ce()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-B":[{"border-B":[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:["",...Ce()]}],"outline-offset":[{"outline-offset":[G,p]}],"outline-w":[{outline:[G,O]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[G,O]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",j,pr]}],"shadow-color":[{shadow:[ve]}],opacity:[{opacity:[L]}],"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",j,p]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[C]}],saturate:[{saturate:[d]}],sepia:[{sepia:[n]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[d]}],"backdrop-sepia":[{"backdrop-sepia":[n]}],"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",p]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[be,p]}],"translate-x":[{"translate-x":[We]}],"translate-y":[{"translate-y":[We]}],"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",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","B-resize","w-resize","B-resize","nw-resize","Le-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":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-it":[{"scroll-it":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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,O,Be]}],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","it","pr","pb","pl"],px:["pr","pl"],py:["it","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-B","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Le","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-B":["rounded-ss","rounded-es"],"rounded-e":["rounded-Le","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-B","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-B","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-it","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-it","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var et=Zt(br);function u(...e){return et((0,tt.clsx)(e))}var B=require("react/jsx-runtime"),pe=I.Root,ot=I.Trigger,vr=I.Portal;var at=he.forwardRef(({className:e,...t},r)=>(0,B.jsx)(I.Overlay,{ref:r,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));at.displayName=I.Overlay.displayName;var X=he.forwardRef(({className:e,children:t,...r},a)=>(0,B.jsxs)(vr,{children:[(0,B.jsx)(at,{}),(0,B.jsxs)(I.Content,{ref:a,className:u("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)(I.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)(rt.X,{className:"h-4 w-4"}),(0,B.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));X.displayName=I.Content.displayName;var Z=({className:e,...t})=>(0,B.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Z.displayName="DialogHeader";var hr=({className:e,...t})=>(0,B.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hr.displayName="DialogFooter";var Y=he.forwardRef(({className:e,...t},r)=>(0,B.jsx)(I.Title,{ref:r,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));Y.displayName=I.Title.displayName;var xr=he.forwardRef(({className:e,...t},r)=>(0,B.jsx)(I.Description,{ref:r,className:u("text-sm text-muted-foreground",e),...t}));xr.displayName=I.Description.displayName;var st=require("@radix-ui/react-slot"),it=require("class-variance-authority"),nt=z(require("react")),yr=(0,it.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=nt.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...i},l)=>(0,B.jsx)(e?st.Slot:"button",{className:u(yr({className:t,size:r,variant:a})),ref:l,...i}));V.displayName="Button";var ct=z(require("react"));var U=ct.forwardRef(({className:e,type:t,...r},a)=>(0,B.jsx)("input",{type:t,className:u("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}));U.displayName="Input";var mt=z(require("react")),Fe=z(require("@radix-ui/react-label"));var Cr=(0,it.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),M=mt.forwardRef(({className:e,...t},r)=>(0,B.jsx)(Fe.Root,{ref:r,className:u(Cr(),e),...t}));M.displayName=Fe.Root.displayName;var ft=z(require("react")),ee=ft.forwardRef(({className:e,...t},r)=>(0,B.jsx)("textarea",{className:u("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 x=z(require("@radix-ui/react-select")),_=z(require("react")),re=x.Root;var oe=x.Value,$=_.forwardRef(({children:e,className:t,...r},a)=>(0,B.jsxs)(x.Trigger,{className:u("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)(x.Icon,{asChild:!0,children:(0,B.jsx)(rt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));$.displayName=x.Trigger.displayName;var bt=_.forwardRef(({className:e,...t},r)=>(0,B.jsx)(x.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,B.jsx)(rt.ChevronUp,{className:"h-4 w-4"})}));bt.displayName=x.ScrollUpButton.displayName;var vt=_.forwardRef(({className:e,...t},r)=>(0,B.jsx)(x.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,B.jsx)(rt.ChevronDown,{className:"h-4 w-4"})}));vt.displayName=x.ScrollDownButton.displayName;var q=_.forwardRef(({children:e,className:t,position:r="popper",...a},i)=>(0,B.jsx)(x.Portal,{children:(0,B.jsxs)(x.Content,{className:u("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,B.jsx)(bt,{}),(0,B.jsx)(x.Viewport,{className:u("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,B.jsx)(vt,{})]})}));q.displayName=x.Content.displayName;var wr=_.forwardRef(({className:e,...t},r)=>(0,B.jsx)(x.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));wr.displayName=x.Label.displayName;var K=_.forwardRef(({children:e,className:t,...r},a)=>(0,B.jsxs)(x.Item,{className:u("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)(x.ItemIndicator,{children:(0,B.jsx)(rt.Check,{className:"h-4 w-4"})})}),(0,B.jsx)(x.ItemText,{children:e})]}));K.displayName=x.Item.displayName;var Sr=_.forwardRef(({className:e,...t},r)=>(0,B.jsx)(x.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Sr.displayName=x.Separator.displayName;var xe=z(require("@radix-ui/react-checkbox")),xt=z(require("react")),ae=xt.forwardRef(({className:e,...t},r)=>(0,B.jsx)(xe.Root,{className:u("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:u("flex items-center justify-center text-current"),children:(0,B.jsx)(rt.Check,{className:"h-4 w-4"})})}));ae.displayName=xe.Root.displayName;var Nr=(0,it.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:u(Nr({variant:t}),e),...r})}var Ue=z(require("react")),F=z(require("@radix-ui/react-scroll-area"));var ue=Ue.forwardRef(({className:e,children:t,...r},a)=>(0,B.jsxs)(F.Root,{ref:a,className:u("relative overflow-hidden",e),...r,children:[(0,B.jsx)(F.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,B.jsx)(wt,{}),(0,B.jsx)(F.Corner,{})]}));ue.displayName=F.Root.displayName;var wt=Ue.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,B.jsx)(F.ScrollAreaScrollbar,{ref:a,orientation:t,className:u("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"})}));wt.displayName=F.ScrollAreaScrollbar.displayName;function St({deal:e,users:t,customer:r,categories:a,onClose:i,onSave:l,onAddComment:m}){let[o,g]=(0,Le.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[b,f]=(0,Le.useState)(""),[C,N]=(0,Le.useState)(!1),[w,v]=(0,Le.useState)(null);(0,Le.useEffect)(()=>{N(JSON.stringify(e)!==JSON.stringify(o))},[e,o]);let k=async()=>{try{let n=await l(o);n.success?(N(!1),v(null)):console.error("Failed to save deal:",n.errors)}catch(n){console.error("Failed to save deal:",n)}},h=(n,P)=>{g(ce=>({...ce,[n]:P}))},L=n=>{let P=(o.categories||[]).includes(n)?(o.categories||[]).filter(ce=>ce!==n):[...o.categories||[],n];h("categories",P)},E=async()=>{if(b.trim()){let n={text:b,timestamp:new Date().toISOString()};try{let P=await m(n);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||[],n]})),f("")}},d=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"}},y=n=>t?.find(P=>P.id===Number(n));return(0,B.jsx)(pe,{open:!0,children:(0,B.jsxs)(X,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,B.jsxs)(Z,{className:"flex flex-row items-center justify-between",children:[(0,B.jsx)(Y,{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:i,children:"Close"}),(0,B.jsxs)(V,{onClick:k,disabled:!C,children:[(0,B.jsx)(rt.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:w==="value"?(0,B.jsx)(U,{type:"number",value:o.value,onChange:n=>h("value",Number(n.target.value)),onBlur:()=>v(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:()=>v("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"}),w==="assignee"?(0,B.jsxs)(re,{value:o?.assignee?.id?.toString()||"",onValueChange:n=>h("assignee",y(n)),children:[(0,B.jsx)($,{children:(0,B.jsx)(oe,{placeholder:"Select assignee"})}),(0,B.jsx)(q,{children:t&&t.map(n=>(0,B.jsx)(K,{value:n?.id?.toString()||"",children:n.name},n.id))})]}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("assignee"),children:[(0,B.jsx)(rt.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"}),w==="closureDate"?(0,B.jsx)(U,{type:"date",value:o.closureDate?.split("B")[0]??"",onChange:n=>h("closureDate",n.target.value),onBlur:()=>v(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:()=>v("closureDate"),children:[(0,B.jsx)(rt.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:o.closureDate?new Date(o.closureDate).toLocaleDateString("en-GB"):"N/B"})]})]})]}),(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"}),w==="description"?(0,B.jsx)(ee,{value:o.description||"",onChange:n=>h("description",n.target.value),onBlur:()=>v(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:()=>v("description"),children:o.description})]})}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 it-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"}),w==="status"?(0,B.jsxs)(re,{value:o.status,onValueChange:n=>{h("status",n),v(null)},children:[(0,B.jsx)($,{children:(0,B.jsx)(oe,{placeholder:"Select status"})}),(0,B.jsx)(q,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(n=>(0,B.jsx)(K,{value:n,children:n},n))})]}):(0,B.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("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"}),w==="categories"?(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:a.map(n=>(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(ae,{id:n.id?.toString()||"",checked:(o.categories||[]).some(P=>P.id===n.id),onCheckedChange:()=>n.id!==void 0&&L(n)}),(0,B.jsx)("label",{htmlFor:(n.id??"").toString(),className:`text-sm font-medium ${d(n.type||"sector")} px-2 py-1 rounded`,children:n.name})]},n.id))}):(0,B.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("categories"),children:o.categories&&o.categories.map(n=>{let P=n;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 gap-2 m-1",children:[(0,B.jsx)(M,{className:"text-sm font-medium text-accent",children:"COGE Status"}),w==="gecoStatus"?(0,B.jsxs)(re,{value:o.gecoStatus??void 0,onValueChange:n=>{h("gecoStatus",n),v(null)},children:[(0,B.jsx)($,{children:(0,B.jsx)(oe,{placeholder:"Select status"})}),(0,B.jsx)(q,{children:["firm","forecast","other"].map(n=>(0,B.jsx)(K,{value:n,children:n.charAt(0).toUpperCase()+n.slice(1)},n))})]}):(0,B.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("gecoStatus"),children:o.gecoStatus?o.gecoStatus.charAt(0).toUpperCase()+o.gecoStatus.slice(1):"N/B"})]})]}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 it-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((n,P)=>new Date(P.timestamp||"").getTime()-new Date(n.timestamp||"").getTime()).map(n=>(0,B.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,B.jsx)("p",{className:"text-sm text-foreground",children:n.text}),(0,B.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[n?.author?.name," - ",new Date(n.timestamp||"").toLocaleString()]})]},n.id))})}),(0,B.jsxs)("div",{className:"flex mt-2",children:[(0,B.jsx)(U,{value:b,onChange:n=>f(n.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,B.jsxs)(V,{onClick:E,className:"ml-2",children:[(0,B.jsx)(rt.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 ie=z(require("react"));var Pe=ie.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:u("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Pe.displayName="Card";var De=ie.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:u("flex flex-col space-y-1.5 p-6",e),...t}));De.displayName="CardHeader";var Re=ie.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:u("font-semibold leading-none tracking-tight",e),...t}));Re.displayName="CardTitle";var Pr=ie.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:u("text-sm text-muted-foreground",e),...t}));Pr.displayName="CardDescription";var ke=ie.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:u("p-6 it-0",e),...t}));ke.displayName="CardContent";var Dr=ie.forwardRef(({className:e,...t},r)=>(0,B.jsx)("div",{ref:r,className:u("flex items-center p-6 it-0",e),...t}));Dr.displayName="CardFooter";function Nt({deal:e,customer:t,categories:r,onClick:a,compact:i=!1}){let l=r.find(m=>m.type==="proposition"&&(e.categories??[]).includes(m.id));return i?(0,B.jsxs)(Pe,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,B.jsxs)(De,{className:"pb-1 it-2",children:[(0,B.jsx)(Re,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,B.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,B.jsx)(ke,{className:"text-xs text-gray-500 pb-2",children:(0,B.jsx)("div",{className:"flex justify-between items-center mb-1",children:(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.jsxs)(Pe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,B.jsxs)(De,{className:"pb-2",children:[(0,B.jsx)("div",{className:"flex justify-between items-center",children:(0,B.jsx)(Re,{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)(ke,{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)(rt.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)(rt.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:l&&(0,B.jsx)(Ne,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:l.name})})]})]})}var Te=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Dt({onSubmit:e}){let[t,r]=(0,Le.useState)({name:"",intro:"",active:!1});return(0,B.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,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(M,{htmlFor:"customerName",children:"Customer Name"}),(0,B.jsx)(U,{id:"customerName",value:t.name,onChange:i=>r({...t,name:i.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)(ee,{id:"customerIntro",value:t.intro??"",onChange:i=>r({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(ae,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>r({...t,active:i})}),(0,B.jsx)(M,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,B.jsx)(V,{type:"submit",className:"w-full",children:"Add Customer"})]})}function kt({customers:e,users:t,categories:r,onSubmit:a,initialDeal:i,onAddCustomer:l,onClose:m}){let[o,g]=(0,Le.useState)(i||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("B")[0],closureDate:"",comments:[],description:""}),[b,f]=(0,Le.useState)(!1),[C,N]=(0,Le.useState)({});(0,Le.useEffect)(()=>{i&&g(i)},[i]);let w=()=>{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"),N(d),Object.keys(d).length===0},v=async d=>{d.preventDefault(),N({});try{if(w()){let y=await a({...o});y.success?(g({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),m?.()):N(y.errors||{})}}catch{N({submit:"An error occurred while submitting the form."})}},k=d=>{g(y=>({...y,categories:(y.categories||[]).includes(d.id)?(y.categories||[]).filter(n=>n!==d.id):[...y.categories||[],d.id]}))},h=async d=>{g({...o,customer:d});try{let y=await l(d);y.success?f(!1):N(y.errors||{})}catch{N({submit:"An error occurred while submitting the form."})}},L=d=>t?.find(y=>y.id===Number(d)),E=d=>e?.find(y=>y.id===Number(d));return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("form",{onSubmit:v,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)(re,{value:o.customer?.id?.toString(),onValueChange:d=>g({...o,customer:E(d)}),children:[(0,B.jsx)($,{children:(0,B.jsx)(oe,{placeholder:"Select customer"})}),(0,B.jsx)(q,{children:e.map(d=>(0,B.jsx)(K,{value:d.id?.toString()||"",children:d.name},d.id))})]}),(0,B.jsx)(V,{variant:"outline",size:"icon",onClick:()=>f(!0),children:(0,B.jsx)(rt.PlusIcon,{className:"w-5 h-5"})})]}),C.customerId&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:C.customerId})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"value",children:"Value"}),(0,B.jsx)(U,{id:"value",type:"number",value:o.value||"",onChange:d=>g({...o,value:Number.parseFloat(d.target.value)}),placeholder:"Enter deal value"}),C.value&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:C.value})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"assignee",children:"Assignee"}),(0,B.jsxs)(re,{value:o.assignee?.id?.toString(),onValueChange:d=>g({...o,assignee:L(d)}),children:[(0,B.jsx)($,{children:(0,B.jsx)(oe,{placeholder:"Select assignee"})}),(0,B.jsx)(q,{children:t&&t.map(d=>(0,B.jsx)(K,{value:d.id?.toString()||"",children:d.name},d.id))})]}),C.assignee&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:C.assignee})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(M,{htmlFor:"description",children:"Description"}),(0,B.jsx)(ee,{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(y=>y.type===d).map(y=>(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(ae,{id:y.id.toString(),checked:o.categories?.includes(y.id),onCheckedChange:()=>k(y)}),(0,B.jsx)("label",{htmlFor:y.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:y.name})]},y.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)(U,{id:"closureDate",type:"date",value:o.closureDate||"",onChange:d=>g({...o,closureDate:d.target.value})}),C.closureDate&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:C.closureDate})]})]})}),(0,B.jsx)(V,{type:"submit",className:"w-full",children:i?"Update Deal":"Add Deal"})]}),(0,B.jsx)(pe,{open:b,onOpenChange:f,children:(0,B.jsxs)(X,{children:[(0,B.jsx)(Z,{children:(0,B.jsx)(Y,{children:"Add New Customer"})}),(0,B.jsx)(Dt,{onSubmit:h})]})})]})}function Lt({status:e,deals:t,users:r,customers:a,categories:i,onDealClick:l,calculateColumnValue:m,calculateWeightedValue:o,addNewDeal:g,onAddCustomer:b,compact:f=!1}){let[C,N]=(0,Le.useState)(!1);return(0,B.jsxs)("div",{className:"flex flex-col w-80",children:[(0,B.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),g&&(0,B.jsxs)(pe,{open:C,onOpenChange:N,children:[(0,B.jsx)(ot,{asChild:!0,children:(0,B.jsxs)(V,{className:"mb-4 w-full",children:[(0,B.jsx)(rt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,B.jsxs)(X,{children:[(0,B.jsx)(Z,{children:(0,B.jsx)(Y,{children:"Add New Deal"})}),(0,B.jsx)(kt,{customers:a,users:r,categories:i,onSubmit:g,onAddCustomer:b??(async()=>Promise.resolve({success:!1})),onClose:()=>N(!1)})]})]}),(0,B.jsx)(Te.Droppable,{droppableId:e,isDropDisabled:!1,children:w=>(0,B.jsxs)("div",{ref:w.innerRef,...w.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((v,k)=>(0,B.jsx)(Te.Draggable,{draggableId:v.id.toString(),index:v.id,children:h=>(0,B.jsx)("div",{ref:h.innerRef,...h.draggableProps,...h.dragHandleProps,children:(0,B.jsx)(Nt,{deal:v,customer:v.customer,categories:i,onClick:()=>l(v),compact:f})})},v.id.toString())),w.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=["firm","forecast","other"];function kr({initialData:e,updateDeal:t,addComment:r}){let[a,i]=(0,Le.useState)(null),l=b=>(e.deals??[]).filter(f=>f.gecoStatus===b).filter(f=>f.status!=="Lost"&&f.status!=="Cold"),m=b=>b.reduce((f,C)=>f+(C.value||0),0),o=(b,f)=>{let C={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return b.reduce((N,w)=>N+(w.value||0)*(C[w.status]??0),0)},g=(0,Le.useCallback)(b=>{let{source:f,destination:C}=b;if(!C||f.droppableId===C.droppableId&&f.index===C.index)return;let N=f.droppableId,w=C.droppableId,v=e.deals?.filter(h=>h.id===f.index)[0],k=[...e.deals??[]];v&&(v.gecoStatus=w,t(v))},[t]);return(0,B.jsx)(Te.DragDropContext,{onDragEnd:g,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.map(b=>{let f=l(b);return(0,B.jsx)(Lt,{status:b,deals:f,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:i,calculateColumnValue:m,calculateWeightedValue:o,compact:!0},b)})}),a&&(0,B.jsx)(St,{deal:a,users:e.users,customer:a.customer,categories:e.categories??[],onClose:()=>i(null),onSave:t,onAddComment:b=>r(a.id.toString(),b)})]})})}0&&(module.exports={CRMCogeBoard});
|
|
4
|
+
"use strict";"use client";var St=Object.create;var de=Object.defineProperty;var Pt=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var Rt=Object.getPrototypeOf,Dt=Object.prototype.hasOwnProperty;var kt=(e,t)=>{for(var r in t)de(e,r,{get:t[r],enumerable:!0})},Fe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Nt(t))!Dt.call(e,l)&&l!==r&&de(e,l,{get:()=>t[l],enumerable:!(o=Pt(t,l))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?St(Rt(e)):{},Fe(t||!e||!e.__esModule?de(r,"default",{value:e,enumerable:!0}):r,e)),Tt=e=>Fe(de({},"__esModule",{value:!0}),e);var hr={};kt(hr,{CRMCogeBoard:()=>xr});module.exports=Tt(hr);var Ce=require("react");var te=A(require("react")),D=A(require("@radix-ui/react-dialog")),Ze=require("lucide-react");var Xe=require("clsx");var Te="-",At=e=>{let t=Mt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let a=c.split(Te);return a[0]===""&&a.length!==1&&a.shift(),_e(a,t)||Lt(c)},getConflictingClassGroupIds:(c,a)=>{let x=r[c]||[];return a&&o[c]?[...x,...o[c]]:x}}},_e=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),l=o?_e(e.slice(1),o):void 0;if(l)return l;if(t.validators.length===0)return;let n=e.join(Te);return t.validators.find(({validator:c})=>c(n))?.classGroupId},je=/^\[(.+)\]$/,Lt=e=>{if(je.test(e)){let t=je.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Mt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Et(Object.entries(e.classGroups),r).forEach(([n,c])=>{ke(c,o,n,t)}),o},ke=(e,t,r,o)=>{e.forEach(l=>{if(typeof l=="string"){let n=l===""?t:Oe(t,l);n.classGroupId=r;return}if(typeof l=="function"){if(It(l)){ke(l(o),t,r,o);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([n,c])=>{ke(c,Oe(t,n),r,o)})})},Oe=(e,t)=>{let r=e;return t.split(Te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},It=e=>e.isThemeGetter,Et=(e,t)=>t?e.map(([r,o])=>{let l=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([c,a])=>[t+c,a])):n);return[r,l]}):e,zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,l=(n,c)=>{r.set(n,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let c=r.get(n);if(c!==void 0)return c;if((c=o.get(n))!==void 0)return l(n,c),c},set(n,c){r.has(n)?r.set(n,c):l(n,c)}}},$e="!",Bt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,l=t[0],n=t.length,c=a=>{let x=[],u=0,d=0,C;for(let g=0;g<a.length;g++){let k=a[g];if(u===0){if(k===l&&(o||a.slice(g,g+n)===t)){x.push(a.slice(d,g)),d=g+n;continue}if(k==="/"){C=g;continue}}k==="["?u++:k==="]"&&u--}let P=x.length===0?a:a.substring(d),S=P.startsWith($e),b=S?P.substring(1):P,R=C&&C>d?C-d:void 0;return{modifiers:x,hasImportantModifier:S,baseClassName:b,maybePostfixModifierPosition:R}};return r?a=>r({className:a,parseClassName:c}):c},Ht=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Vt=e=>({cache:zt(e.cacheSize),parseClassName:Bt(e),...At(e)}),Wt=/\M+/,Gt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=t,n=[],c=e.trim().split(Wt),a="";for(let x=c.length-1;x>=0;x-=1){let u=c[x],{modifiers:d,hasImportantModifier:C,baseClassName:P,maybePostfixModifierPosition:S}=r(u),b=!!S,R=o(b?P.substring(0,S):P);if(!R){if(!b){a=u+(a.length>0?" "+a:a);continue}if(R=o(P),!R){a=u+(a.length>0?" "+a:a);continue}b=!1}let g=Ht(d).join(":"),k=C?g+$e:g,T=k+R;if(n.includes(T))continue;n.push(T);let V=l(R,b);for(let E=0;E<V.length;++E){let i=V[E];n.push(k+i)}a=u+(a.length>0?" "+a:a)}return a};function Ut(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ke(t))&&(o&&(o+=" "),o+=r);return o}var Ke=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ke(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ft(e,...t){let r,o,l,n=c;function c(x){let u=t.reduce((d,C)=>C(d),e());return r=Vt(u),o=r.cache.get,l=r.cache.set,n=a,a(x)}function a(x){let u=o(x);if(u)return u;let d=Gt(x,r);return l(x,d),d}return function(){return n(Ut.apply(null,arguments))}}var y=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Je=/^\[(?:([a-z-]+):)?(.+)\]$/i,jt=/^\d+\/\d+$/,Ot=new Set(["px","full","screen"]),_t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$t=/\d+(%|px|r?em|[sdl]?M([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$/,Kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Ce-?((\d+)?\.?(\d+)[a-z]+|0)/,Qt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>q(e)||Ot.has(e)||jt.test(e),W=e=>X(e,"length",or),q=e=>!!e&&!Number.isNaN(Number(e)),De=e=>X(e,"number",q),Y=e=>!!e&&Number.isInteger(Number(e)),qt=e=>e.endsWith("%")&&q(e.slice(0,-1)),m=e=>Je.test(e),G=e=>_t.test(e),Xt=new Set(["length","size","percentage"]),Zt=e=>X(e,Xt,Qe),Yt=e=>X(e,"position",Qe),er=new Set(["image","url"]),tr=e=>X(e,er,sr),rr=e=>X(e,"",ar),ee=()=>!0,X=(e,t,r)=>{let o=Je.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},or=e=>$t.test(e)&&!Kt.test(e),Qe=()=>!1,ar=e=>Jt.test(e),sr=e=>Qt.test(e);var ir=()=>{let e=y("colors"),t=y("spacing"),r=y("blur"),o=y("brightness"),l=y("borderColor"),n=y("borderRadius"),c=y("borderSpacing"),a=y("borderWidth"),x=y("contrast"),u=y("grayscale"),d=y("hueRotate"),C=y("invert"),P=y("gap"),S=y("gradientColorStops"),b=y("gradientColorStopPositions"),R=y("inset"),g=y("margin"),k=y("opacity"),T=y("padding"),V=y("saturate"),E=y("scale"),i=y("sepia"),h=y("skew"),Q=y("space"),He=y("translate"),Se=()=>["auto","contain","none"],Pe=()=>["auto","hidden","clip","visible","scroll"],Ne=()=>["auto",m,t],w=()=>[m,t],Ve=()=>["",B,W],le=()=>["auto",q,m],We=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",m],Ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[q,m];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[B,W],blur:["none","",G,m],brightness:z(),borderColor:[e],borderRadius:["none","","full",G,m],borderSpacing:w(),borderWidth:Ve(),contrast:z(),grayscale:Z(),hueRotate:z(),invert:Z(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[qt,W],inset:Ne(),margin:Ne(),opacity:z(),padding:w(),saturate:z(),scale:z(),sepia:Z(),skew:z(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":Ue()}],"break-before":[{"break-before":Ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...We(),m]}],overflow:[{overflow:Pe()}],"overflow-x":[{"overflow-x":Pe()}],"overflow-y":[{"overflow-y":Pe()}],overscroll:[{overscroll:Se()}],"overscroll-x":[{"overscroll-x":Se()}],"overscroll-y":[{"overscroll-y":Se()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Y,m]}],basis:[{basis:Ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Y,m]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",Y,m]},m]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[Y,m]},m]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...Re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],M:[{M:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,W]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",De]}],"font-family":[{font:[ee]}],"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",m]}],"line-clamp":[{"line-clamp":["none",q,De]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,W]}],"underline-offset":[{"underline-offset":["auto",B,m]}],"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:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...We(),Yt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[n]}],"rounded-M":[{"rounded-M":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-M":[{"border-M":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:ce()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-M":[{"border-M":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[B,m]}],"outline-w":[{outline:[B,W]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[B,W]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,rr]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ge()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",G,m]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[C]}],saturate:[{saturate:[V]}],sepia:[{sepia:[i]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Y,m]}],"translate-x":[{"translate-x":[He]}],"translate-y":[{"translate-y":[He]}],"skew-x":[{"skew-x":[h]}],"skew-y":[{"skew-y":[h]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],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","M-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-M":[{"scroll-M":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,W,De]}],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","M","mr","mb","ml"],mx:["mr","ml"],my:["M","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-M","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-M":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-M","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-M","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-M","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-M","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qe=Ft(ir);function p(...e){return qe((0,Xe.clsx)(e))}var M=require("react/jsx-runtime"),Ye=D.Root;var nr=D.Portal;var et=te.forwardRef(({className:e,...t},r)=>(0,M.jsx)(D.Overlay,{ref:r,className:p("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}));et.displayName=D.Overlay.displayName;var Ae=te.forwardRef(({className:e,children:t,...r},o)=>(0,M.jsxs)(nr,{children:[(0,M.jsx)(et,{}),(0,M.jsxs)(D.Content,{ref:o,className:p("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,M.jsxs)(D.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,M.jsx)(Ze.X,{className:"h-4 w-4"}),(0,M.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ae.displayName=D.Content.displayName;var Le=({className:e,...t})=>(0,M.jsx)("div",{className:p("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Le.displayName="DialogHeader";var lr=({className:e,...t})=>(0,M.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});lr.displayName="DialogFooter";var Me=te.forwardRef(({className:e,...t},r)=>(0,M.jsx)(D.Title,{ref:r,className:p("text-lg font-semibold leading-none tracking-tight",e),...t}));Me.displayName=D.Title.displayName;var cr=te.forwardRef(({className:e,...t},r)=>(0,M.jsx)(D.Description,{ref:r,className:p("text-sm text-muted-foreground",e),...t}));cr.displayName=D.Description.displayName;var tt=require("@radix-ui/react-slot"),rt=require("class-variance-authority"),ot=A(require("react")),dr=(0,rt.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"}}}),re=ot.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...l},n)=>(0,M.jsx)(e?tt.Slot:"button",{className:p(dr({className:t,size:r,variant:o})),ref:n,...l}));re.displayName="Button";var st=A(require("react"));var oe=st.forwardRef(({className:e,type:t,...r},o)=>(0,M.jsx)("input",{type:t,className:p("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));oe.displayName="Input";var nt=A(require("react")),Ie=A(require("@radix-ui/react-label"));var mr=(0,rt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),H=nt.forwardRef(({className:e,...t},r)=>(0,M.jsx)(Ie.Root,{ref:r,className:p(mr(),e),...t}));H.displayName=Ie.Root.displayName;var dt=A(require("react")),Ee=dt.forwardRef(({className:e,...t},r)=>(0,M.jsx)("textarea",{className:p("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 f=A(require("@radix-ui/react-select")),U=A(require("react")),me=f.Root;var pe=f.Value,ae=U.forwardRef(({children:e,className:t,...r},o)=>(0,M.jsxs)(f.Trigger,{className:p("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,M.jsx)(f.Icon,{asChild:!0,children:(0,M.jsx)(Ze.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ae.displayName=f.Trigger.displayName;var pt=U.forwardRef(({className:e,...t},r)=>(0,M.jsx)(f.ScrollUpButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,M.jsx)(Ze.ChevronUp,{className:"h-4 w-4"})}));pt.displayName=f.ScrollUpButton.displayName;var ut=U.forwardRef(({className:e,...t},r)=>(0,M.jsx)(f.ScrollDownButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,M.jsx)(Ze.ChevronDown,{className:"h-4 w-4"})}));ut.displayName=f.ScrollDownButton.displayName;var se=U.forwardRef(({children:e,className:t,position:r="popper",...o},l)=>(0,M.jsx)(f.Portal,{children:(0,M.jsxs)(f.Content,{className:p("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:l,...o,children:[(0,M.jsx)(pt,{}),(0,M.jsx)(f.Viewport,{className:p("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,M.jsx)(ut,{})]})}));se.displayName=f.Content.displayName;var pr=U.forwardRef(({className:e,...t},r)=>(0,M.jsx)(f.Label,{className:p("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));pr.displayName=f.Label.displayName;var ie=U.forwardRef(({children:e,className:t,...r},o)=>(0,M.jsxs)(f.Item,{className:p("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,M.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,M.jsx)(f.ItemIndicator,{children:(0,M.jsx)(Ze.Check,{className:"h-4 w-4"})})}),(0,M.jsx)(f.ItemText,{children:e})]}));ie.displayName=f.Item.displayName;var ur=U.forwardRef(({className:e,...t},r)=>(0,M.jsx)(f.Separator,{className:p("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));ur.displayName=f.Separator.displayName;var ne=A(require("@radix-ui/react-checkbox")),gt=A(require("react")),ze=gt.forwardRef(({className:e,...t},r)=>(0,M.jsx)(ne.Root,{className:p("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,M.jsx)(ne.Indicator,{className:p("flex items-center justify-center text-current"),children:(0,M.jsx)(Ze.Check,{className:"h-4 w-4"})})}));ze.displayName=ne.Root.displayName;var fr=(0,rt.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 fe({className:e,variant:t,...r}){return(0,M.jsx)("div",{className:p(fr({variant:t}),e),...r})}var Be=A(require("react")),I=A(require("@radix-ui/react-scroll-area"));var ge=Be.forwardRef(({className:e,children:t,...r},o)=>(0,M.jsxs)(I.Root,{ref:o,className:p("relative overflow-hidden",e),...r,children:[(0,M.jsx)(I.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,M.jsx)(xt,{}),(0,M.jsx)(I.Corner,{})]}));ge.displayName=I.Root.displayName;var xt=Be.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,M.jsx)(I.ScrollAreaScrollbar,{ref:o,orientation:t,className:p("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,M.jsx)(I.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));xt.displayName=I.ScrollAreaScrollbar.displayName;function ht({deal:e,users:t,customer:r,categories:o,onClose:l,onSave:n,onAddComment:c}){let[a,x]=(0,Ce.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,d]=(0,Ce.useState)(""),[C,P]=(0,Ce.useState)(!1),[S,b]=(0,Ce.useState)(null);(0,Ce.useEffect)(()=>{P(JSON.stringify(e)!==JSON.stringify(a))},[e,a]);let R=async()=>{try{let i=await n(a);i.success?(P(!1),b(null)):console.error("Failed to save deal:",i.errors)}catch(i){console.error("Failed to save deal:",i)}},g=(i,h)=>{x(Q=>({...Q,[i]:h}))},k=i=>{let h=(a.categories||[]).includes(i)?(a.categories||[]).filter(Q=>Q!==i):[...a.categories||[],i];g("categories",h)},T=async()=>{if(u.trim()){let i={text:u,timestamp:new Date().toISOString()};try{let h=await c(i);if(!h.success){console.error("Failed to add comment:",h.errors);return}}catch(h){console.error("Failed to add comment:",h)}x(h=>({...h,comments:[...h.comments||[],i]})),d("")}},V=i=>{switch(i){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"}},E=i=>t?.find(h=>h.id===Number(i));return(0,M.jsx)(Ye,{open:!0,children:(0,M.jsxs)(Ae,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,M.jsxs)(Le,{className:"flex flex-row items-center justify-between",children:[(0,M.jsx)(Me,{className:"text-2xl font-bold",children:r?.name||"no customer"}),(0,M.jsxs)("div",{className:"flex space-x-2",children:[(0,M.jsx)(re,{variant:"outline",onClick:l,children:"Close"}),(0,M.jsxs)(re,{onClick:R,disabled:!C,children:[(0,M.jsx)(Ze.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,M.jsxs)(ge,{className:"flex-grow pr-4",children:[(0,M.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,M.jsx)("div",{className:"grid gap-2 m-1",children:S==="value"?(0,M.jsx)(oe,{type:"number",value:a.value,onChange:i=>g("value",Number(i.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,M.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",a.value?.toLocaleString()]})}),(0,M.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,M.jsx)(H,{className:"text-sm font-medium text-accent",children:"Assignee"}),S==="assignee"?(0,M.jsxs)(me,{value:a?.assignee?.id?.toString()||"",onValueChange:i=>g("assignee",E(i)),children:[(0,M.jsx)(ae,{children:(0,M.jsx)(pe,{placeholder:"Select assignee"})}),(0,M.jsx)(se,{children:t&&t.map(i=>(0,M.jsx)(ie,{value:i?.id?.toString()||"",children:i.name},i.id))})]}):(0,M.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,M.jsx)(Ze.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,M.jsx)("span",{children:a?.assignee?.name})]})]}),(0,M.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,M.jsx)(H,{className:"text-sm font-medium text-accent",children:"Closure Date"}),S==="closureDate"?(0,M.jsx)(oe,{type:"date",value:a.closureDate?.split("T")[0]??"",onChange:i=>g("closureDate",i.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,M.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,M.jsx)(Ze.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,M.jsx)("span",{children:a.closureDate?new Date(a.closureDate).toLocaleDateString("en-GB"):"M/A"})]})]})]}),(0,M.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,M.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,M.jsx)(H,{className:"text-sm font-medium text-accent",children:"Description"}),S==="description"?(0,M.jsx)(Ee,{value:a.description||"",onChange:i=>g("description",i.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,M.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:a.description})]})}),(0,M.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,M.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,M.jsx)(H,{className:"text-sm font-medium text-accent",children:"Status"}),S==="status"?(0,M.jsxs)(me,{value:a.status,onValueChange:i=>{g("status",i),b(null)},children:[(0,M.jsx)(ae,{children:(0,M.jsx)(pe,{placeholder:"Select status"})}),(0,M.jsx)(se,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(i=>(0,M.jsx)(ie,{value:i,children:i},i))})]}):(0,M.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:a.status})]}),(0,M.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,M.jsx)(H,{className:"text-sm font-medium text-accent",children:"Categories"}),S==="categories"?(0,M.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(i=>(0,M.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,M.jsx)(ze,{id:i.id?.toString()||"",checked:(a.categories||[]).some(h=>h.id===i.id),onCheckedChange:()=>i.id!==void 0&&k(i)}),(0,M.jsx)("label",{htmlFor:(i.id??"").toString(),className:`text-sm font-medium ${V(i.type||"sector")} px-2 py-1 rounded`,children:i.name})]},i.id))}):(0,M.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:a.categories&&a.categories.map(i=>{let h=i;return h?(0,M.jsx)(fe,{variant:"outline",className:V(h.type||"sector"),children:h.name},h.id):null})})]}),(0,M.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,M.jsx)(H,{className:"text-sm font-medium text-accent",children:"COGE Status"}),S==="gecoStatus"?(0,M.jsxs)(me,{value:a.gecoStatus??void 0,onValueChange:i=>{g("gecoStatus",i),b(null)},children:[(0,M.jsx)(ae,{children:(0,M.jsx)(pe,{placeholder:"Select status"})}),(0,M.jsx)(se,{children:["firm","forecast","other"].map(i=>(0,M.jsx)(ie,{value:i,children:i.charAt(0).toUpperCase()+i.slice(1)},i))})]}):(0,M.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:a.gecoStatus?a.gecoStatus.charAt(0).toUpperCase()+a.gecoStatus.slice(1):"M/A"})]})]}),(0,M.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,M.jsxs)("div",{className:"grid gap-2",children:[(0,M.jsx)(H,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,M.jsx)(ge,{className:"h-[200px] overflow-y-auto",children:(0,M.jsx)("div",{className:"space-y-2",children:a.comments&&a.comments.slice().sort((i,h)=>new Date(h.timestamp||"").getTime()-new Date(i.timestamp||"").getTime()).map(i=>(0,M.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,M.jsx)("p",{className:"text-sm text-foreground",children:i.text}),(0,M.jsxs)("p",{className:"text-xs text-foreground M-1",children:[i?.author?.name," - ",new Date(i.timestamp||"").toLocaleString()]})]},i.id))})}),(0,M.jsxs)("div",{className:"flex M-2",children:[(0,M.jsx)(oe,{value:u,onChange:i=>d(i.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,M.jsxs)(re,{onClick:T,className:"ml-2",children:[(0,M.jsx)(Ze.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,M.jsxs)("div",{className:"text-xs text-gray-500 M-4",children:["Last modified: ",new Date(a.updatedAt||"").toLocaleString()]})]})]})]})})}var $=A(require("react"));var be=$.forwardRef(({className:e,...t},r)=>(0,M.jsx)("div",{ref:r,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));be.displayName="Card";var ve=$.forwardRef(({className:e,...t},r)=>(0,M.jsx)("div",{ref:r,className:p("flex flex-col space-y-1.5 p-6",e),...t}));ve.displayName="CardHeader";var xe=$.forwardRef(({className:e,...t},r)=>(0,M.jsx)("div",{ref:r,className:p("font-semibold leading-none tracking-tight",e),...t}));xe.displayName="CardTitle";var gr=$.forwardRef(({className:e,...t},r)=>(0,M.jsx)("div",{ref:r,className:p("text-sm text-muted-foreground",e),...t}));gr.displayName="CardDescription";var he=$.forwardRef(({className:e,...t},r)=>(0,M.jsx)("div",{ref:r,className:p("p-6 pt-0",e),...t}));he.displayName="CardContent";var br=$.forwardRef(({className:e,...t},r)=>(0,M.jsx)("div",{ref:r,className:p("flex items-center p-6 pt-0",e),...t}));br.displayName="CardFooter";function yt({deal:e,customer:t,categories:r,onClick:o,compact:l=!1}){let n=r.find(c=>c.type==="proposition"&&(e.categories??[]).includes(c.id));return l?(0,M.jsxs)(be,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,M.jsxs)(ve,{className:"pb-1 pt-2",children:[(0,M.jsx)(xe,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,M.jsx)("p",{className:"text-sm text-gray-500 M-1",children:e.description})]}),(0,M.jsx)(he,{className:"text-xs text-gray-500 pb-2",children:(0,M.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,M.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,M.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,M.jsxs)(be,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,M.jsxs)(ve,{className:"pb-2",children:[(0,M.jsx)("div",{className:"flex justify-between items-center",children:(0,M.jsx)(xe,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,M.jsx)("p",{className:"text-sm text-gray-500 M-1",children:e.description})]}),(0,M.jsxs)(he,{children:[(0,M.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,M.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,M.jsx)(Ze.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,M.jsx)("span",{children:e.assignee.name})]}),(0,M.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,M.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,M.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,M.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,M.jsx)(Ze.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,M.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,M.jsx)("div",{className:"flex justify-between items-left",children:n&&(0,M.jsx)(fe,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:n.name})})]})]})}var we=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function wt({status:e,deals:t,users:r,customers:o,categories:l,onDealClick:n,calculateColumnValue:c,calculateWeightedValue:a,compact:x=!1}){return(0,M.jsxs)("div",{className:"flex flex-col w-80",children:[(0,M.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,M.jsx)(we.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,M.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((d,C)=>(0,M.jsx)(we.Draggable,{draggableId:d.id.toString(),index:d.id,children:P=>(0,M.jsx)("div",{ref:P.innerRef,...P.draggableProps,...P.dragHandleProps,children:(0,M.jsx)(yt,{deal:d,customer:d.customer,categories:l,onClick:()=>n(d),compact:x})})},d.id.toString())),u.placeholder]})}),(0,M.jsxs)("div",{className:"M-4 text-sm p-3 rounded-lg shadow",children:[(0,M.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,M.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,M.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,M.jsxs)("span",{className:"text-blue-600",children:["\xA3",a(t,e).toLocaleString()]})]})]})]})}var vr=["firm","forecast","other"];function xr({initialData:e,updateDeal:t,addComment:r}){let[o,l]=(0,Ce.useState)(null),n=u=>(e.deals??[]).filter(d=>d.gecoStatus===u).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),c=u=>u.reduce((d,C)=>d+(C.value||0),0),a=(u,d)=>{let C={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return u.reduce((P,S)=>P+(S.value||0)*(C[S.status]??0),0)},x=(0,Ce.useCallback)(u=>{let{source:d,destination:C}=u;if(!C||d.droppableId===C.droppableId&&d.index===C.index)return;let P=d.droppableId,S=C.droppableId,b=e.deals?.filter(g=>g.id===d.index)[0],R=[...e.deals??[]];b&&(b.gecoStatus=S,t(b))},[t]);return(0,M.jsx)(we.DragDropContext,{onDragEnd:x,children:(0,M.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,M.jsx)("div",{className:"flex space-x-4 pb-4",children:vr.map(u=>{let d=n(u);return(0,M.jsx)(wt,{status:u,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:a,compact:!0},u)})}),o&&(0,M.jsx)(ht,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>l(null),onSave:t,onAddComment:u=>r(o.id.toString(),u)})]})})}0&&(module.exports={CRMCogeBoard});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-QYMXR42G.mjs";import"../../chunk-W3ONOYB6.mjs";import"../../chunk-FFESN4FM.mjs";import"../../chunk-5V2PNTEF.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-J2IHT57D.mjs";import"../../chunk-4YFMDLHL.mjs";import"../../chunk-JPZJET3B.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as CRMCogeBoard};
|