cortex-react-components 1.42.0 → 1.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/{chunk-A367QIKQ.mjs → chunk-3LTZNKP5.mjs} +1 -1
  2. package/dist/{chunk-YRLDLIK6.mjs → chunk-3QFP3LQI.mjs} +1 -1
  3. package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
  4. package/dist/{chunk-HVFMGNCB.mjs → chunk-45BPMYAF.mjs} +1 -1
  5. package/dist/{chunk-XNUCAQBB.mjs → chunk-4ZT572BM.mjs} +1 -1
  6. package/dist/{chunk-3PC5BLK7.mjs → chunk-7XSAYKJ7.mjs} +1 -1
  7. package/dist/{chunk-Y7GZTT55.mjs → chunk-A42UP2GC.mjs} +1 -1
  8. package/dist/{chunk-YUK45R37.mjs → chunk-BR4G7CDZ.mjs} +1 -1
  9. package/dist/{chunk-UMP5NVAD.mjs → chunk-CEO36IW4.mjs} +1 -1
  10. package/dist/{chunk-QYU6PIEK.mjs → chunk-CTX7UBDG.mjs} +1 -1
  11. package/dist/{chunk-4X3MAS5A.mjs → chunk-DEYWNKIG.mjs} +1 -1
  12. package/dist/{chunk-VPVXJCL6.mjs → chunk-EI7PFWFS.mjs} +1 -1
  13. package/dist/{chunk-GWBPMSY5.mjs → chunk-EXWIE6C5.mjs} +1 -1
  14. package/dist/{chunk-SKGNICQA.mjs → chunk-FF6H5I4V.mjs} +1 -1
  15. package/dist/{chunk-QPHDY7ND.mjs → chunk-FOQE6NML.mjs} +1 -1
  16. package/dist/{chunk-6TE3N75Q.mjs → chunk-FVQMTB4H.mjs} +1 -1
  17. package/dist/{chunk-DESYC5BB.mjs → chunk-GHBJK554.mjs} +1 -1
  18. package/dist/{chunk-3R7QFILP.mjs → chunk-H77N4SZK.mjs} +1 -1
  19. package/dist/{chunk-QUGJPAMP.mjs → chunk-HGMH5NAQ.mjs} +1 -1
  20. package/dist/{chunk-T2SCYW2J.mjs → chunk-HQFNGDDO.mjs} +1 -1
  21. package/dist/{chunk-Y6CZVVJF.mjs → chunk-HUN2X4VH.mjs} +1 -1
  22. package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
  23. package/dist/{chunk-EMZQNDA7.mjs → chunk-IMAQJ7N3.mjs} +1 -1
  24. package/dist/{chunk-D43ENVPX.mjs → chunk-IPHHUHS3.mjs} +1 -1
  25. package/dist/{chunk-KRJQF2ZW.mjs → chunk-J3QZZ62Z.mjs} +1 -1
  26. package/dist/{chunk-GFV75XSU.mjs → chunk-JK3XF6LP.mjs} +1 -1
  27. package/dist/chunk-K3N5EH4U.mjs +1 -0
  28. package/dist/{chunk-SHN4XZWD.mjs → chunk-KKLZ6CCZ.mjs} +1 -1
  29. package/dist/{chunk-UDX5Y4SA.mjs → chunk-L2PQKIU4.mjs} +1 -1
  30. package/dist/{chunk-IE2A7UT3.mjs → chunk-LBKMUSVR.mjs} +1 -1
  31. package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
  32. package/dist/{chunk-SOC7T4NU.mjs → chunk-MW2V3YCD.mjs} +1 -1
  33. package/dist/{chunk-DBYDO4YU.mjs → chunk-NUJCJZH5.mjs} +1 -1
  34. package/dist/chunk-RCD6MJF5.mjs +4 -0
  35. package/dist/{chunk-GOMLTG5W.mjs → chunk-RZTXT4UD.mjs} +1 -1
  36. package/dist/{chunk-SYJP6OZD.mjs → chunk-SQUOZ47I.mjs} +1 -1
  37. package/dist/chunk-TEOR3ZQR.mjs +1 -0
  38. package/dist/{chunk-PVRWMAHW.mjs → chunk-UK4IPFAO.mjs} +1 -1
  39. package/dist/{chunk-FGQPY2XP.mjs → chunk-VA3AGYYA.mjs} +1 -1
  40. package/dist/{chunk-H7A6JUUD.mjs → chunk-WONJ5NTQ.mjs} +1 -1
  41. package/dist/{chunk-G3KO4ITD.mjs → chunk-X3AIZJNU.mjs} +1 -1
  42. package/dist/{chunk-F2YN7SED.mjs → chunk-YOFO7YSO.mjs} +1 -1
  43. package/dist/components/Blocks/Banner.mjs +1 -1
  44. package/dist/components/Blocks/CallToAction.mjs +1 -1
  45. package/dist/components/Blocks/Content.mjs +1 -1
  46. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  47. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  48. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  49. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  50. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  51. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  52. package/dist/components/Blocks/index.mjs +1 -1
  53. package/dist/components/CRM/DealCard.d.ts +3 -3
  54. package/dist/components/CRM/DealCard.js +1 -1
  55. package/dist/components/CRM/DealCard.mjs +1 -1
  56. package/dist/components/CRM/DealCard.stories.js +1 -1
  57. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  58. package/dist/components/CRM/DealDetails.d.ts +4 -4
  59. package/dist/components/CRM/DealDetails.js +1 -1
  60. package/dist/components/CRM/DealDetails.mjs +1 -1
  61. package/dist/components/CRM/DealDetails.stories.js +1 -1
  62. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  63. package/dist/components/CRM/KanbanBoard.d.ts +3 -3
  64. package/dist/components/CRM/KanbanBoard.js +1 -1
  65. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  66. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  67. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  68. package/dist/components/CRM/KanbanColumn.d.ts +6 -6
  69. package/dist/components/CRM/KanbanColumn.js +1 -1
  70. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  71. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  72. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  73. package/dist/components/CRM/NewCustomerForm.d.ts +3 -3
  74. package/dist/components/CRM/NewCustomerForm.js +1 -1
  75. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  76. package/dist/components/CRM/NewCustomerForm.stories.js +1 -1
  77. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  78. package/dist/components/CRM/NewDealForm.d.ts +5 -5
  79. package/dist/components/CRM/NewDealForm.js +1 -1
  80. package/dist/components/CRM/NewDealForm.mjs +1 -1
  81. package/dist/components/CRM/NewDealForm.stories.js +1 -1
  82. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  83. package/dist/components/CRM/actions.d.ts +2 -2
  84. package/dist/components/CRM/actions.js +1 -1
  85. package/dist/components/CRM/index.d.ts +7 -0
  86. package/dist/components/CRM/index.js +5 -0
  87. package/dist/components/CRM/index.mjs +1 -0
  88. package/dist/components/CRM/mockData.d.ts +4 -4
  89. package/dist/components/CRM/mockData.js +1 -1
  90. package/dist/components/CRM/types.d.ts +6 -6
  91. package/dist/components/Cards/index.mjs +1 -1
  92. package/dist/components/HeaderFooter/Header.mjs +1 -1
  93. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  94. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  95. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  96. package/dist/components/HeaderFooter/index.mjs +1 -1
  97. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  98. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  99. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  100. package/dist/components/Heros/PostHero/index.mjs +1 -1
  101. package/dist/components/Heros/RenderHero.mjs +1 -1
  102. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  103. package/dist/components/Heros/index.mjs +1 -1
  104. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  105. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  106. package/dist/components/Holidays/index.mjs +1 -1
  107. package/dist/components/Layouts/BlogList.mjs +1 -1
  108. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  109. package/dist/components/Layouts/SlideShow.mjs +1 -1
  110. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  111. package/dist/components/Layouts/index.mjs +1 -1
  112. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  113. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  114. package/dist/components/Menus/SidebarRight.mjs +1 -1
  115. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  116. package/dist/components/Menus/index.mjs +1 -1
  117. package/dist/components/Payload/Card/index.mjs +1 -1
  118. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  119. package/dist/components/Payload/Media/index.mjs +1 -1
  120. package/dist/components/Payload/RichText/index.mjs +1 -1
  121. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  122. package/dist/components/Payload/RichText.stories.mjs +1 -1
  123. package/dist/components/Payload/index.mjs +1 -1
  124. package/dist/components/index.d.ts +1 -0
  125. package/dist/components/index.js +6 -6
  126. package/dist/components/index.mjs +1 -1
  127. package/dist/components/ui/index.mjs +1 -1
  128. package/dist/components/ui/sidebar.mjs +1 -1
  129. package/dist/index.js +6 -6
  130. package/dist/index.mjs +1 -1
  131. package/dist/metafile-cjs.json +1 -1
  132. package/dist/metafile-esm.json +1 -1
  133. package/dist/pages/Blog.mjs +1 -1
  134. package/dist/pages/Blog.stories.mjs +1 -1
  135. package/dist/pages/Documentation.mjs +1 -1
  136. package/dist/pages/Documentation.stories.mjs +1 -1
  137. package/dist/pages/IndexPage.mjs +1 -1
  138. package/dist/pages/IndexPage.stories.mjs +1 -1
  139. package/dist/pages/Intranet.mjs +1 -1
  140. package/dist/pages/Intranet.stories.mjs +1 -1
  141. package/dist/pages/LandingPage.mjs +1 -1
  142. package/dist/pages/LandingPage.stories.mjs +1 -1
  143. package/dist/pages/Page.mjs +1 -1
  144. package/dist/pages/Page.stories.mjs +1 -1
  145. package/dist/pages/Publish.mjs +1 -1
  146. package/dist/pages/Publish.stories.mjs +1 -1
  147. package/dist/pages/Website.mjs +1 -1
  148. package/dist/pages/Website.stories.mjs +1 -1
  149. package/dist/sections/AboutSection.mjs +1 -1
  150. package/dist/sections/AboutSection.stories.mjs +1 -1
  151. package/dist/sections/BlogDetail.mjs +1 -1
  152. package/dist/sections/BlogDetail.stories.mjs +1 -1
  153. package/dist/sections/BlogListSection.mjs +1 -1
  154. package/dist/sections/BlogListSection.stories.mjs +1 -1
  155. package/dist/sections/ContactSection.mjs +1 -1
  156. package/dist/sections/ContactSection.stories.mjs +1 -1
  157. package/dist/sections/PricingSection.mjs +1 -1
  158. package/dist/sections/PricingSection.stories.mjs +1 -1
  159. package/dist/sections/form/index.mjs +1 -1
  160. package/dist/sections/index.mjs +1 -1
  161. package/package.json +1 -1
  162. package/dist/chunk-HMTQCPDF.mjs +0 -1
  163. package/dist/chunk-NMDMFCM7.mjs +0 -4
  164. package/dist/chunk-YBXYJYD2.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{a as k}from"./chunk-HQFNGDDO.mjs";import{a as p,c as g,d as v,g as C,i as f}from"./chunk-4JC2TJML.mjs";import{a as b}from"./chunk-4NKKWJ2X.mjs";import{a as x,f as y,g as I,i as w}from"./chunk-JWDVKGZL.mjs";import{a as M}from"./chunk-A5EYIB3V.mjs";import{a as i}from"./chunk-DWRQHV42.mjs";import{a as F}from"./chunk-Y5ZFXDW5.mjs";import{a as m}from"./chunk-QOIH63J3.mjs";import{b as u}from"./chunk-GLEWUUGS.mjs";import{useState as h,useEffect as B}from"react";import{PlusIcon as H}from"lucide-react";import{Fragment as z,jsx as t,jsxs as s}from"react/jsx-runtime";function te({customers:D,users:S,categories:R,onSubmit:A,initialDeal:c,onAddCustomer:L}){let[a,o]=h(c||{customerId:"",value:0,assignee:"",status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",lastModified:new Date().toISOString(),comments:[],description:""}),[O,d]=h(!1),[l,N]=h({});B(()=>{c&&o(c)},[c]);let T=()=>{let e={};return a.customerId||(e.customerId="Customer is required"),a.value||(e.value="Value is required"),a.assignee||(e.assignee="Assignee is required"),a.closureDate||(e.closureDate="Closure Date is required"),N(e),Object.keys(e).length===0},E=e=>{e.preventDefault(),T()&&(A({...a,id:a.id||Date.now().toString(),lastModified:new Date().toISOString()}),o({customerId:"",value:0,assignee:"",description:"",status:"Cold",closureDate:""}),N({}))},V=e=>{o(r=>{var n;return{...r,categories:(n=r.categories)!=null&&n.includes(e)?r.categories.filter(U=>U!==e):[...r.categories||[],e]}})},q=e=>{switch(e){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},P=e=>{D.push(e),o({...a,customerId:e.id}),d(!1),L(e)};return s(z,{children:[s("form",{onSubmit:E,className:"space-y-6",children:[t(b,{className:"h-[60vh] pr-4",children:s("div",{className:"space-y-6",children:[s("div",{className:"space-y-2 space-x-2",children:[t(i,{htmlFor:"customer",children:"Customer"}),s("div",{className:"flex items-center space-x-2",children:[s(p,{value:a.customerId,onValueChange:e=>o({...a,customerId:e}),children:[t(v,{children:t(g,{placeholder:"Select customer"})}),t(C,{children:D.map(e=>t(f,{value:e.id,children:e.name},e.id))})]}),t(u,{variant:"outline",size:"icon",onClick:()=>d(!0),children:t(H,{className:"w-5 h-5"})})]}),l.customerId&&t("p",{className:"text-red-500 text-sm",children:l.customerId})]}),s("div",{className:"space-y-2 space-x-2",children:[t(i,{htmlFor:"value",children:"Value"}),t(m,{id:"value",type:"number",value:a.value||"",onChange:e=>o({...a,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),l.value&&t("p",{className:"text-red-500 text-sm",children:l.value})]}),s("div",{className:"space-y-2 space-x-2",children:[t(i,{htmlFor:"assignee",children:"Assignee"}),s(p,{value:a.assignee,onValueChange:e=>o({...a,assignee:e}),children:[t(v,{children:t(g,{placeholder:"Select assignee"})}),t(C,{children:S&&S.map(e=>t(f,{value:e.id.toString(),children:e.name},e.id))})]}),l.assignee&&t("p",{className:"text-red-500 text-sm",children:l.assignee})]}),s("div",{className:"space-y-2 space-x-2",children:[t(i,{htmlFor:"description",children:"Description"}),t(M,{id:"description",value:a.description||"",onChange:e=>o({...a,description:e.target.value}),placeholder:"Enter deal description"})]}),s("div",{className:"space-y-2 space-x-2",children:[t(i,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>s("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:R.filter(r=>r.type===e).map(r=>{var n;return s("div",{className:"flex items-center space-x-2",children:[t(F,{id:r.id,checked:(n=a.categories)==null?void 0:n.includes(r.id),onCheckedChange:()=>V(r.id)}),t("label",{htmlFor:r.id,className:`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${q(r.type)}`,children:r.name})]},r.id)})})]},e))})]}),s("div",{className:"space-y-2 space-x-2",children:[t(i,{htmlFor:"closureDate",children:"Closure Date"}),t(m,{id:"closureDate",type:"date",value:a.closureDate,onChange:e=>o({...a,closureDate:e.target.value})}),l.closureDate&&t("p",{className:"text-red-500 text-sm",children:l.closureDate})]})]})}),t(u,{type:"submit",className:"w-full",children:c?"Update Deal":"Add Deal"})]}),t(x,{open:O,onOpenChange:d,children:s(y,{children:[t(I,{children:t(w,{children:"Add New Customer"})}),t(k,{onSubmit:P})]})})]})}export{te as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-NGK3IDFP.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:s=!0,imgClassName:i,media:m,staticImage:n}=r;return o("div",{className:a("",{container:s},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",i),resource:m,src:n})})};export{p as a};
1
+ import{a as e}from"./chunk-ICTOXY7D.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:s=!0,imgClassName:i,media:m,staticImage:n}=r;return o("div",{className:a("",{container:s},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",i),resource:m,src:n})})};export{p as a};
@@ -1 +1 @@
1
- import{a as x}from"./chunk-KML6U7IE.mjs";import{a as k}from"./chunk-TXXFXCXB.mjs";import{e as P}from"./chunk-Y7GZTT55.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as c,b as h,c as C,e as p}from"./chunk-D76EO57Z.mjs";import{a as b}from"./chunk-WISCWNL2.mjs";import{a as N}from"./chunk-UESKYRNK.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:n}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),n&&n.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((e,s)=>t("li",{children:t(b,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},s))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:n="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:s,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=s==null?void 0:s[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(N,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(P,{content:U,enableGutter:!1})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(h,{children:t(C,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${n}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(k,{links:r.links,title:r.title})})]})]})})}export{j as a};
1
+ import{a as x}from"./chunk-KML6U7IE.mjs";import{a as k}from"./chunk-TXXFXCXB.mjs";import{e as P}from"./chunk-A42UP2GC.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as c,b as h,c as C,e as p}from"./chunk-D76EO57Z.mjs";import{a as b}from"./chunk-WISCWNL2.mjs";import{a as N}from"./chunk-UESKYRNK.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:n}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),n&&n.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((e,s)=>t("li",{children:t(b,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},s))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:n="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:s,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=s==null?void 0:s[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(N,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(P,{content:U,enableGutter:!1})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(h,{children:t(C,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${n}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(k,{links:r.links,title:r.title})})]})]})})}export{j as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-VPVXJCL6.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-SKGNICQA.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
1
+ import{a as m}from"./chunk-EI7PFWFS.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-FF6H5I4V.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-SKGNICQA.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as l}from"./chunk-NIQ4466A.mjs";import i from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:c,keyPoints:o,description:s}=d;return e("section",{id:"about-section",className:l("section-padding-primary",d.className||""),children:e(n,{children:t("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[t("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(m,{...c}),o&&o.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((r,g)=>t("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),s&&e("p",{className:"mt-5 md:mt-[1.875rem]",children:s})]}),a&&e("div",{className:"mx-auto text-center",children:t("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[t("div",{className:"relative flex justify-end overflow-hidden",children:[t("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[e("span",{className:"absolute -left-2.5 -top-2.5 -z-1 h-full w-full rounded-tl-[60px] bg-primary-light"}),e("div",{className:"relative z-[4] overflow-hidden",children:e(i,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),e(i,{src:a.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] z-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),e("div",{className:"flex overflow-hidden",children:e(i,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(i,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(i,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}export{u as a};
1
+ import{a as m}from"./chunk-FF6H5I4V.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as l}from"./chunk-NIQ4466A.mjs";import i from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:c,keyPoints:o,description:s}=d;return e("section",{id:"about-section",className:l("section-padding-primary",d.className||""),children:e(n,{children:t("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[t("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(m,{...c}),o&&o.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((r,g)=>t("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),s&&e("p",{className:"mt-5 md:mt-[1.875rem]",children:s})]}),a&&e("div",{className:"mx-auto text-center",children:t("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[t("div",{className:"relative flex justify-end overflow-hidden",children:[t("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[e("span",{className:"absolute -left-2.5 -top-2.5 -z-1 h-full w-full rounded-tl-[60px] bg-primary-light"}),e("div",{className:"relative z-[4] overflow-hidden",children:e(i,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),e(i,{src:a.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] z-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),e("div",{className:"flex overflow-hidden",children:e(i,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(i,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(i,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}export{u as a};
@@ -1 +1 @@
1
- import{b as o}from"./chunk-Q6SEVCRG.mjs";import{a as n,b as d,c as l,e as m}from"./chunk-D76EO57Z.mjs";import{CalendarIcon as f,UserIcon as x}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({deal:a,customer:s,categories:c,onClick:p}){let r=c.find(i=>i.type==="proposition"&&a.categories.includes(i.id));return t(n,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:p,children:[t(d,{className:"pb-2",children:[e("div",{className:"flex justify-between items-center",children:e(l,{className:"text-lg font-semibold text-gray-800",children:s==null?void 0:s.name})}),e("p",{className:"text-sm text-gray-500 mt-1",children:a.description})]}),t(m,{children:[t("div",{className:"flex justify-between items-center mb-3",children:[t("div",{className:"flex items-center text-sm text-gray-600",children:[e(x,{className:"w-4 h-4 mr-1 text-xs"}),e("span",{children:a.assignee})]}),e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})]}),e("div",{className:"flex justify-between items-left mb-3",children:t("div",{className:"flex items-center text-xs text-gray-500",children:[e(f,{className:"w-3 h-3 mr-1"}),e("span",{children:new Date(a.lastModified).toLocaleDateString()})]})}),e("div",{className:"flex justify-between items-left",children:r&&e(o,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}export{b as a};
1
+ import{b as o}from"./chunk-Q6SEVCRG.mjs";import{a as n,b as d,c as l,e as m}from"./chunk-D76EO57Z.mjs";import{CalendarIcon as C,UserIcon as f}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({deal:a,customer:s,categories:c,onClick:p}){let r=c.find(i=>i.type==="proposition"&&a.categories.includes(i.id));return t(n,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:p,children:[t(d,{className:"pb-2",children:[e("div",{className:"flex justify-between items-center",children:e(l,{className:"text-lg font-semibold text-gray-800",children:s==null?void 0:s.name})}),e("p",{className:"text-sm text-gray-500 mt-1",children:a.description})]}),t(m,{children:[t("div",{className:"flex justify-between items-center mb-3",children:[t("div",{className:"flex items-center text-sm text-gray-600",children:[e(f,{className:"w-4 h-4 mr-1 text-xs"}),e("span",{children:a.assignee})]}),e("div",{className:"flex items-center text-sm font-bold text-green-600",children:t("span",{children:["\xA3",a.value.toLocaleString()]})})]}),e("div",{className:"flex justify-between items-left mb-3",children:t("div",{className:"flex items-center text-xs text-gray-500",children:[e(C,{className:"w-3 h-3 mr-1"}),e("span",{children:new Date(a.lastModified).toLocaleDateString()})]})}),e("div",{className:"flex justify-between items-left",children:r&&e(o,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}export{b as a};
@@ -1 +1 @@
1
- import{a}from"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as BannerBlock};
1
+ import{a}from"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as BannerBlock};
@@ -1 +1 @@
1
- import{b as a}from"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CallToActionBlock};
1
+ import{b as a}from"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CallToActionBlock};
@@ -1 +1 @@
1
- import{a}from"../../chunk-A367QIKQ.mjs";import"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ContentBlock};
1
+ import{a}from"../../chunk-3LTZNKP5.mjs";import"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ContentBlock};
@@ -1 +1 @@
1
- import{c as a}from"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as FeaturesBlock};
1
+ import{c as a}from"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as FeaturesBlock};
@@ -1 +1 @@
1
- import{c as e}from"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var t={title:"Blocks/FeaturesBlock",component:e,tags:["autodocs"],parameters:{layout:"padded"}},i=t,n={args:{title:"What Are Digital Colleagues?",description:"some other words",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners (internal link)",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}},a={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."}]}},r={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},s={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}};export{n as Default,s as NoTitle,r as OneFeature,a as TwoFeatures,i as default};
1
+ import{c as e}from"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var t={title:"Blocks/FeaturesBlock",component:e,tags:["autodocs"],parameters:{layout:"padded"}},i=t,n={args:{title:"What Are Digital Colleagues?",description:"some other words",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners (internal link)",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}},a={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."}]}},r={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},s={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}};export{n as Default,s as NoTitle,r as OneFeature,a as TwoFeatures,i as default};
@@ -1 +1 @@
1
- import{a}from"../../chunk-Y6CZVVJF.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ImageBlock};
1
+ import{a}from"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ImageBlock};
@@ -1 +1 @@
1
- import{a}from"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as MediaBlock};
1
+ import{a}from"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as MediaBlock};
@@ -1 +1 @@
1
- import{a}from"../../chunk-QPHDY7ND.mjs";import"../../chunk-23EQTK7B.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RelatedPosts};
1
+ import{a}from"../../chunk-FOQE6NML.mjs";import"../../chunk-423OEU3K.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RelatedPosts};
@@ -1 +1 @@
1
- import{a}from"../../chunk-4X3MAS5A.mjs";import"../../chunk-A367QIKQ.mjs";import"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RenderBlocks};
1
+ import{a}from"../../chunk-DEYWNKIG.mjs";import"../../chunk-3LTZNKP5.mjs";import"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RenderBlocks};
@@ -1 +1 @@
1
- import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as e}from"../../chunk-6HFYLEVF.mjs";import{a as q}from"../../chunk-QPHDY7ND.mjs";import"../../chunk-23EQTK7B.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import"../../chunk-KPIWBWE2.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-2LJVMEWU.mjs";import{a as p}from"../../chunk-4X3MAS5A.mjs";import{a as n}from"../../chunk-A367QIKQ.mjs";import{a as b}from"../../chunk-H7D3PZKE.mjs";import{a as c}from"../../chunk-IQPZEEYJ.mjs";import{a as g,b as h,c as m}from"../../chunk-Y7GZTT55.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as l}from"../../chunk-Y6CZVVJF.mjs";import{a as k}from"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import{a as j}from"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import{a as i}from"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as BannerBlock,h as CallToActionBlock,j as CodeBlock,n as ContentBlock,i as CopyButton,m as FeaturesBlock,o as HeadingImage,l as ImageBlock,b as InfoTile,a as Insight,c as MOTD,k as MediaBlock,d as OrgChart,e as ProposalSummary,q as RelatedPosts,p as RenderBlocks,f as WhyUs};
1
+ import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as e}from"../../chunk-6HFYLEVF.mjs";import{a as q}from"../../chunk-FOQE6NML.mjs";import"../../chunk-423OEU3K.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import"../../chunk-KPIWBWE2.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-6P7CY367.mjs";import{a as p}from"../../chunk-DEYWNKIG.mjs";import{a as n}from"../../chunk-3LTZNKP5.mjs";import{a as b}from"../../chunk-H7D3PZKE.mjs";import{a as c}from"../../chunk-IQPZEEYJ.mjs";import{a as g,b as h,c as m}from"../../chunk-A42UP2GC.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as l}from"../../chunk-HUN2X4VH.mjs";import{a as k}from"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import{a as j}from"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import{a as i}from"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as BannerBlock,h as CallToActionBlock,j as CodeBlock,n as ContentBlock,i as CopyButton,m as FeaturesBlock,o as HeadingImage,l as ImageBlock,b as InfoTile,a as Insight,c as MOTD,k as MediaBlock,d as OrgChart,e as ProposalSummary,q as RelatedPosts,p as RenderBlocks,f as WhyUs};
@@ -1,8 +1,8 @@
1
- import type { Deal, Customer, Category } from './types';
1
+ import type { Deal, CRMCustomer, CRMCategory } from './types';
2
2
  type DealCardProps = {
3
3
  deal: Deal;
4
- customer: Customer | undefined;
5
- categories: Category[];
4
+ customer: CRMCustomer | undefined;
5
+ categories: CRMCategory[];
6
6
  onClick: () => void;
7
7
  };
8
8
  export declare function DealCard({ deal, customer, categories, onClick }: DealCardProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- "use strict";var ye=Object.create;var _=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty;var Me=(e,r)=>{for(var t in r)_(e,t,{get:r[t],enumerable:!0})},ae=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of we(r))!ke.call(e,a)&&a!==t&&_(e,a,{get:()=>r[a],enumerable:!(o=ve(r,a))||o.enumerable});return e};var ze=(e,r,t)=>(t=e!=null?ye(Ce(e)):{},ae(r||!e||!e.__esModule?_(t,"default",{value:e,enumerable:!0}):t,e)),Re=e=>ae(_({},"__esModule",{value:!0}),e);var lr={};Me(lr,{DealCard:()=>ir});module.exports=Re(lr);var S=ze(require("react"));var me=require("clsx");var J="-",Ne=e=>{let r=Se(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(J);return s[0]===""&&s.length!==1&&s.shift(),ce(s,r)||Te(l)},getConflictingClassGroupIds:(l,s)=>{let u=t[l]||[];return s&&o[l]?[...u,...o[l]]:u}}},ce=(e,r)=>{var l;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?ce(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let n=e.join(J);return(l=r.validators.find(({validator:s})=>s(n)))==null?void 0:l.classGroupId},ie=/^\[(.+)\]$/,Te=e=>{if(ie.test(e)){let r=ie.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Se=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Le(Object.entries(e.classGroups),t).forEach(([n,l])=>{q(l,o,n,r)}),o},q=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?r:le(r,a);n.classGroupId=t;return}if(typeof a=="function"){if(Ae(a)){q(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([n,l])=>{q(l,le(r,n),t,o)})})},le=(e,r)=>{let t=e;return r.split(J).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Ae=e=>e.isThemeGetter,Le=(e,r)=>r?e.map(([t,o])=>{let a=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[r+l,s])):n);return[t,a]}):e,Pe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(n,l)=>{t.set(n,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let l=t.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){t.has(n)?t.set(n,l):a(n,l)}}},de="!",Ee=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],n=r.length,l=s=>{let u=[],m=0,h=0,y;for(let p=0;p<s.length;p++){let g=s[p];if(m===0){if(g===a&&(o||s.slice(p,p+n)===r)){u.push(s.slice(h,p)),h=p+n;continue}if(g==="/"){y=p;continue}}g==="["?m++:g==="]"&&m--}let v=u.length===0?s:s.substring(h),k=v.startsWith(de),w=k?v.substring(1):v,f=y&&y>h?y-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:f}};return t?s=>t({className:s,parseClassName:l}):l},Ge=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},He=e=>({cache:Pe(e.cacheSize),parseClassName:Ee(e),...Ne(e)}),Ie=/\s+/,Ve=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,n=[],l=e.trim().split(Ie),s="";for(let u=l.length-1;u>=0;u-=1){let m=l[u],{modifiers:h,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:k}=t(m),w=!!k,f=o(w?v.substring(0,k):v);if(!f){if(!w){s=m+(s.length>0?" "+s:s);continue}if(f=o(v),!f){s=m+(s.length>0?" "+s:s);continue}w=!1}let p=Ge(h).join(":"),g=y?p+de:p,x=g+f;if(n.includes(x))continue;n.push(x);let E=a(f,w);for(let T=0;T<E.length;++T){let V=E[T];n.push(g+V)}s=m+(s.length>0?" "+s:s)}return s};function De(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=pe(r))&&(o&&(o+=" "),o+=t);return o}var pe=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=pe(e[o]))&&(t&&(t+=" "),t+=r);return t};function je(e,...r){let t,o,a,n=l;function l(u){let m=r.reduce((h,y)=>y(h),e());return t=He(m),o=t.cache.get,a=t.cache.set,n=s,s(u)}function s(u){let m=o(u);if(m)return m;let h=Ve(u,t);return a(u,h),h}return function(){return n(De.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,_e=/^\d+\/\d+$/,Be=new Set(["px","full","screen"]),We=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|A|min|max))|\A(calc|min|max|clamp)\(.+\)|^0$/,Fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ue=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>L(e)||Be.has(e)||_e.test(e),R=e=>P(e,"length",er),L=e=>!!e&&!Number.isNaN(Number(e)),O=e=>P(e,"number",L),H=e=>!!e&&Number.isInteger(Number(e)),qe=e=>e.endsWith("%")&&L(e.slice(0,-1)),i=e=>ue.test(e),N=e=>We.test(e),Je=new Set(["length","size","percentage"]),Ke=e=>P(e,Je,be),Xe=e=>P(e,"position",be),Ze=new Set(["image","url"]),Qe=e=>P(e,Ze,tr),Ye=e=>P(e,"",rr),I=()=>!0,P=(e,r,t)=>{let o=ue.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},er=e=>$e.test(e)&&!Fe.test(e),be=()=>!1,rr=e=>Ue.test(e),tr=e=>Oe.test(e);var or=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),m=c("grayscale"),h=c("hueRotate"),y=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),g=c("opacity"),x=c("padding"),E=c("saturate"),T=c("scale"),V=c("sepia"),Y=c("skew"),ee=c("space"),re=c("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,r],d=()=>[i,r],te=()=>["",z,R],D=()=>["auto",L,i],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",i],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[L,i];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[z,R],blur:["none","",N,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",N,i],borderSpacing:d(),borderWidth:te(),contrast:M(),grayscale:G(),hueRotate:M(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[qe,R],inset:F(),margin:F(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:G(),skew:M(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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(),i]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",H,i]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",H,i]},i]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[H,i]},i]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[N]},N]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",N,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[I]}],"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",i]}],"line-clamp":[{"line-clamp":["none",L,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,R]}],"underline-offset":[{"underline-offset":["auto",z,i]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),Xe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ke]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","A","bl","l","tl"]},Qe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-A":[{"rounded-A":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-A":[{"border-A":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:j()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-A":[{"border-A":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[z,i]}],"outline-w":[{outline:[z,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[z,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,Ye]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",N,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[y]}],saturate:[{saturate:[E]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[H,i]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[Y]}],"skew-y":[{"skew-y":[Y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,R,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-A","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-A":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-A","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-A"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-A","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-A"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var fe=je(or);function C(...e){return fe((0,me.clsx)(e))}var A=require("react/jsx-runtime"),K=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("rounded-xl border bg-card text-card-foreground shadow",e),...r}));K.displayName="Card";var X=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("flex flex-col space-y-1.5 p-6",e),...r}));X.displayName="CardHeader";var Z=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("font-semibold leading-none tracking-tight",e),...r}));Z.displayName="CardTitle";var nr=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("text-sm text-muted-foreground",e),...r}));nr.displayName="CardDescription";var Q=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("p-6 pt-0",e),...r}));Q.displayName="CardContent";var sr=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("flex items-center p-6 pt-0",e),...r}));sr.displayName="CardFooter";var ge=require("class-variance-authority");var ar=(0,ge.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 he({className:e,variant:r,...t}){return(0,A.jsx)("div",{className:C(ar({variant:r}),e),...t})}var B=require("lucide-react");function ir({deal:e,customer:r,categories:t,onClick:o}){let a=t.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,A.jsxs)(K,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,A.jsxs)(X,{className:"pb-2",children:[(0,A.jsx)("div",{className:"flex justify-between items-center",children:(0,A.jsx)(Z,{className:"text-lg font-semibold text-gray-800",children:r==null?void 0:r.name})}),(0,A.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,A.jsxs)(Q,{children:[(0,A.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,A.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,A.jsx)(B.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,A.jsx)("span",{children:e.assignee})]}),(0,A.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,A.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,A.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,A.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,A.jsx)(B.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,A.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,A.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,A.jsx)(he,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}0&&(module.exports={DealCard});
1
+ "use strict";var ye=Object.create;var _=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty;var Me=(e,r)=>{for(var t in r)_(e,t,{get:r[t],enumerable:!0})},ae=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of we(r))!ke.call(e,a)&&a!==t&&_(e,a,{get:()=>r[a],enumerable:!(o=ve(r,a))||o.enumerable});return e};var Re=(e,r,t)=>(t=e!=null?ye(Ce(e)):{},ae(r||!e||!e.__esModule?_(t,"default",{value:e,enumerable:!0}):t,e)),ze=e=>ae(_({},"__esModule",{value:!0}),e);var lr={};Me(lr,{DealCard:()=>ir});module.exports=ze(lr);var S=Re(require("react"));var me=require("clsx");var J="-",Ne=e=>{let r=Se(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(J);return s[0]===""&&s.length!==1&&s.shift(),ce(s,r)||Te(l)},getConflictingClassGroupIds:(l,s)=>{let u=t[l]||[];return s&&o[l]?[...u,...o[l]]:u}}},ce=(e,r)=>{var l;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?ce(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let n=e.join(J);return(l=r.validators.find(({validator:s})=>s(n)))==null?void 0:l.classGroupId},ie=/^\[(.+)\]$/,Te=e=>{if(ie.test(e)){let r=ie.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Se=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Le(Object.entries(e.classGroups),t).forEach(([n,l])=>{q(l,o,n,r)}),o},q=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?r:le(r,a);n.classGroupId=t;return}if(typeof a=="function"){if(Ae(a)){q(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([n,l])=>{q(l,le(r,n),t,o)})})},le=(e,r)=>{let t=e;return r.split(J).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Ae=e=>e.isThemeGetter,Le=(e,r)=>r?e.map(([t,o])=>{let a=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[r+l,s])):n);return[t,a]}):e,Pe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(n,l)=>{t.set(n,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let l=t.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){t.has(n)?t.set(n,l):a(n,l)}}},de="!",Ee=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],n=r.length,l=s=>{let u=[],m=0,h=0,y;for(let p=0;p<s.length;p++){let g=s[p];if(m===0){if(g===a&&(o||s.slice(p,p+n)===r)){u.push(s.slice(h,p)),h=p+n;continue}if(g==="/"){y=p;continue}}g==="["?m++:g==="]"&&m--}let v=u.length===0?s:s.substring(h),k=v.startsWith(de),w=k?v.substring(1):v,f=y&&y>h?y-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:f}};return t?s=>t({className:s,parseClassName:l}):l},Ge=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},He=e=>({cache:Pe(e.cacheSize),parseClassName:Ee(e),...Ne(e)}),Ie=/\s+/,Ve=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,n=[],l=e.trim().split(Ie),s="";for(let u=l.length-1;u>=0;u-=1){let m=l[u],{modifiers:h,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:k}=t(m),w=!!k,f=o(w?v.substring(0,k):v);if(!f){if(!w){s=m+(s.length>0?" "+s:s);continue}if(f=o(v),!f){s=m+(s.length>0?" "+s:s);continue}w=!1}let p=Ge(h).join(":"),g=y?p+de:p,x=g+f;if(n.includes(x))continue;n.push(x);let E=a(f,w);for(let T=0;T<E.length;++T){let V=E[T];n.push(g+V)}s=m+(s.length>0?" "+s:s)}return s};function De(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=pe(r))&&(o&&(o+=" "),o+=t);return o}var pe=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=pe(e[o]))&&(t&&(t+=" "),t+=r);return t};function je(e,...r){let t,o,a,n=l;function l(u){let m=r.reduce((h,y)=>y(h),e());return t=He(m),o=t.cache.get,a=t.cache.set,n=s,s(u)}function s(u){let m=o(u);if(m)return m;let h=Ve(u,t);return a(u,h),h}return function(){return n(De.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,_e=/^\d+\/\d+$/,Be=new Set(["px","full","screen"]),We=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|A|min|max))|\A(calc|min|max|clamp)\(.+\)|^0$/,Fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ue=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>L(e)||Be.has(e)||_e.test(e),z=e=>P(e,"length",er),L=e=>!!e&&!Number.isNaN(Number(e)),O=e=>P(e,"number",L),H=e=>!!e&&Number.isInteger(Number(e)),qe=e=>e.endsWith("%")&&L(e.slice(0,-1)),i=e=>ue.test(e),N=e=>We.test(e),Je=new Set(["length","size","percentage"]),Ke=e=>P(e,Je,be),Xe=e=>P(e,"position",be),Ze=new Set(["image","url"]),Qe=e=>P(e,Ze,tr),Ye=e=>P(e,"",rr),I=()=>!0,P=(e,r,t)=>{let o=ue.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},er=e=>$e.test(e)&&!Fe.test(e),be=()=>!1,rr=e=>Ue.test(e),tr=e=>Oe.test(e);var or=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),m=c("grayscale"),h=c("hueRotate"),y=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),g=c("opacity"),x=c("padding"),E=c("saturate"),T=c("scale"),V=c("sepia"),Y=c("skew"),ee=c("space"),re=c("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,r],d=()=>[i,r],te=()=>["",R,z],D=()=>["auto",L,i],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",i],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[L,i];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[R,z],blur:["none","",N,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",N,i],borderSpacing:d(),borderWidth:te(),contrast:M(),grayscale:G(),hueRotate:M(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[qe,z],inset:F(),margin:F(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:G(),skew:M(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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(),i]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",H,i]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",H,i]},i]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[H,i]},i]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[N]},N]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",N,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[I]}],"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",i]}],"line-clamp":[{"line-clamp":["none",L,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,z]}],"underline-offset":[{"underline-offset":["auto",R,i]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),Xe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ke]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","A","bl","l","tl"]},Qe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-A":[{"rounded-A":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-A":[{"border-A":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:j()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-A":[{"border-A":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[R,i]}],"outline-w":[{outline:[R,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[R,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,Ye]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",N,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[y]}],saturate:[{saturate:[E]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[H,i]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[Y]}],"skew-y":[{"skew-y":[Y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,z,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-A","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-A":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-A","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-A"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-A","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-A"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var fe=je(or);function C(...e){return fe((0,me.clsx)(e))}var A=require("react/jsx-runtime"),K=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("rounded-xl border bg-card text-card-foreground shadow",e),...r}));K.displayName="Card";var X=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("flex flex-col space-y-1.5 p-6",e),...r}));X.displayName="CardHeader";var Z=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("font-semibold leading-none tracking-tight",e),...r}));Z.displayName="CardTitle";var nr=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("text-sm text-muted-foreground",e),...r}));nr.displayName="CardDescription";var Q=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("p-6 pt-0",e),...r}));Q.displayName="CardContent";var sr=S.forwardRef(({className:e,...r},t)=>(0,A.jsx)("div",{ref:t,className:C("flex items-center p-6 pt-0",e),...r}));sr.displayName="CardFooter";var ge=require("class-variance-authority");var ar=(0,ge.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 he({className:e,variant:r,...t}){return(0,A.jsx)("div",{className:C(ar({variant:r}),e),...t})}var B=require("lucide-react");function ir({deal:e,customer:r,categories:t,onClick:o}){let a=t.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,A.jsxs)(K,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,A.jsxs)(X,{className:"pb-2",children:[(0,A.jsx)("div",{className:"flex justify-between items-center",children:(0,A.jsx)(Z,{className:"text-lg font-semibold text-gray-800",children:r==null?void 0:r.name})}),(0,A.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,A.jsxs)(Q,{children:[(0,A.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,A.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,A.jsx)(B.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,A.jsx)("span",{children:e.assignee})]}),(0,A.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,A.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,A.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,A.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,A.jsx)(B.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,A.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,A.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,A.jsx)(he,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}0&&(module.exports={DealCard});
@@ -1 +1 @@
1
- import{a}from"../../chunk-F2YN7SED.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealCard};
1
+ import{a}from"../../chunk-YOFO7YSO.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealCard};
@@ -1 +1 @@
1
- "use strict";var Me=Object.create;var V=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)V(e,r,{get:t[r],enumerable:!0})},ce=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ae(t))!Te.call(e,a)&&a!==r&&V(e,a,{get:()=>t[a],enumerable:!(o=Se(t,a))||o.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?Me(Re(e)):{},ce(t||!e||!e.__esModule?V(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>ce(V({},"__esModule",{value:!0}),e);var bt={};ze(bt,{Default:()=>te,InactiveCustomer:()=>gt,LargeDeal:()=>ft,default:()=>mt});module.exports=Le(bt);var z=Ne(require("react"));var ye=require("clsx");var q="-",Pe=e=>{let t=Ie(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(q);return s[0]===""&&s.length!==1&&s.shift(),ue(s,t)||De(l)},getConflictingClassGroupIds:(l,s)=>{let u=r[l]||[];return s&&o[l]?[...u,...o[l]]:u}}},ue=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ue(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(q);return(l=t.validators.find(({validator:s})=>s(n)))==null?void 0:l.classGroupId},de=/^\[(.+)\]$/,De=e=>{if(de.test(e)){let t=de.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ie=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ee(Object.entries(e.classGroups),r).forEach(([n,l])=>{Z(l,o,n,t)}),o},Z=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:pe(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ge(a)){Z(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,l])=>{Z(l,pe(t,n),r,o)})})},pe=(e,t)=>{let r=e;return t.split(q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ge=e=>e.isThemeGetter,Ee=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[t+l,s])):n);return[r,a]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){r.has(n)?r.set(n,l):a(n,l)}}},me="!",je=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,l=s=>{let u=[],g=0,h=0,x;for(let p=0;p<s.length;p++){let b=s[p];if(g===0){if(b===a&&(o||s.slice(p,p+n)===t)){u.push(s.slice(h,p)),h=p+n;continue}if(b==="/"){x=p;continue}}b==="["?g++:b==="]"&&g--}let v=u.length===0?s:s.substring(h),k=v.startsWith(me),w=k?v.substring(1):v,f=x&&x>h?x-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:f}};return r?s=>r({className:s,parseClassName:l}):l},Be=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},Ve=e=>({cache:He(e.cacheSize),parseClassName:je(e),...Pe(e)}),We=/\s+/,_e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],l=e.trim().split(We),s="";for(let u=l.length-1;u>=0;u-=1){let g=l[u],{modifiers:h,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:k}=r(g),w=!!k,f=o(w?v.substring(0,k):v);if(!f){if(!w){s=g+(s.length>0?" "+s:s);continue}if(f=o(v),!f){s=g+(s.length>0?" "+s:s);continue}w=!1}let p=Be(h).join(":"),b=x?p+me:p,y=b+f;if(n.includes(y))continue;n.push(y);let D=a(f,w);for(let T=0;T<D.length;++T){let H=D[T];n.push(b+H)}s=g+(s.length>0?" "+s:s)}return s};function Ue(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fe(t))&&(o&&(o+=" "),o+=r);return o}var fe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=fe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Je(e,...t){let r,o,a,n=l;function l(u){let g=t.reduce((h,x)=>x(h),e());return r=Ve(g),o=r.cache.get,a=r.cache.set,n=s,s(u)}function s(u){let g=o(u);if(g)return g;let h=_e(u,r);return a(u,h),h}return function(){return n(Ue.apply(null,arguments))}}var c=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fe=/^\d+\/\d+$/,$e=new Set(["px","full","screen"]),Oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>L(e)||$e.has(e)||Fe.test(e),A=e=>P(e,"length",st),L=e=>!!e&&!Number.isNaN(Number(e)),O=e=>P(e,"number",L),G=e=>!!e&&Number.isInteger(Number(e)),Xe=e=>e.endsWith("%")&&L(e.slice(0,-1)),i=e=>ge.test(e),R=e=>Oe.test(e),Ye=new Set(["length","size","percentage"]),et=e=>P(e,Ye,be),tt=e=>P(e,"position",be),rt=new Set(["image","url"]),ot=e=>P(e,rt,it),nt=e=>P(e,"",at),E=()=>!0,P=(e,t,r)=>{let o=ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},st=e=>Ze.test(e)&&!qe.test(e),be=()=>!1,at=e=>Qe.test(e),it=e=>Ke.test(e);var lt=()=>{let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),g=c("grayscale"),h=c("hueRotate"),x=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),b=c("opacity"),y=c("padding"),D=c("saturate"),T=c("scale"),H=c("sepia"),re=c("skew"),oe=c("space"),ne=c("translate"),U=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,t],d=()=>[i,t],se=()=>["",S,A],j=()=>["auto",L,i],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",i],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[L,i];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[S,A],blur:["none","",R,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",R,i],borderSpacing:d(),borderWidth:se(),contrast:M(),grayscale:I(),hueRotate:M(),invert:I(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Xe,A],inset:F(),margin:F(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:I(),skew:M(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"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:[...ae(),i]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",G,i]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",G,i]},i]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[G,i]},i]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],N:[{N:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",R,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[E]}],"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",i]}],"line-clamp":[{"line-clamp":["none",L,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,A]}],"underline-offset":[{"underline-offset":["auto",S,i]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),tt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",et]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[S,i]}],"outline-w":[{outline:[S,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[S,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,nt]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",R,i]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[D]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[G,i]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-N":[{"scroll-N":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,A,O]}],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"],N:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-N":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var he=Je(lt);function C(...e){return he((0,ye.clsx)(e))}var N=require("react/jsx-runtime"),Q=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Q.displayName="Card";var K=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex flex-col space-y-1.5 p-6",e),...t}));K.displayName="CardHeader";var X=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var ct=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("text-sm text-muted-foreground",e),...t}));ct.displayName="CardDescription";var Y=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("p-6 pt-0",e),...t}));Y.displayName="CardContent";var dt=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex items-center p-6 pt-0",e),...t}));dt.displayName="CardFooter";var xe=require("class-variance-authority");var pt=(0,xe.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 ve({className:e,variant:t,...r}){return(0,N.jsx)("div",{className:C(pt({variant:t}),e),...r})}var W=require("lucide-react");function Ce({deal:e,customer:t,categories:r,onClick:o}){let a=r.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,N.jsxs)(Q,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,N.jsxs)(K,{className:"pb-2",children:[(0,N.jsx)("div",{className:"flex justify-between items-center",children:(0,N.jsx)(X,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,N.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,N.jsxs)(Y,{children:[(0,N.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,N.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,N.jsx)(W.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,N.jsx)("span",{children:e.assignee})]}),(0,N.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,N.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,N.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,N.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,N.jsx)(W.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,N.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,N.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,N.jsx)(ve,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}var ee=[{id:"1",name:"Acme Corp",intro:"A leading technology company",active:!0},{id:"2",name:"GlobalTech",intro:"Innovative solutions provider",active:!0},{id:"3",name:"InnoSystems",intro:"Cutting-edge software development",active:!1}],ke=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],_=[{id:"1",customerId:"1",value:5e4,assignee:"John Doe",status:"Qualified",categories:["1","3","5"],dateLogged:"2023-01-15",closureDate:"2023-06-30",lastModified:"2023-05-01T10:00:00Z",comments:[{id:"1",text:"Initial contact made",author:"John Doe",timestamp:"2023-01-15T09:00:00Z"}],description:"Potential software solution for Acme Corp"},{id:"2",customerId:"2",value:75e3,assignee:"Jane Smith",status:"Proposal",categories:["2","4","6"],dateLogged:"2023-02-01",closureDate:"2023-07-31",lastModified:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:"Jane Smith",timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}];var ut={title:"CRM/DealCard",component:Ce,parameters:{layout:"centered"}},mt=ut,te={args:{deal:_[0],customer:ee.find(e=>e.id===_[0].customerId),categories:ke,onClick:()=>console.log("Deal card clicked")}},ft={args:{...te.args,deal:{..._[0],value:1e6}}},gt={args:{...te.args,customer:{...ee[2],active:!1}}};0&&(module.exports={Default,InactiveCustomer,LargeDeal});
1
+ "use strict";var Me=Object.create;var V=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var Ae=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)V(e,r,{get:t[r],enumerable:!0})},ce=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Se(t))!Te.call(e,a)&&a!==r&&V(e,a,{get:()=>t[a],enumerable:!(o=Re(t,a))||o.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?Me(Ae(e)):{},ce(t||!e||!e.__esModule?V(r,"default",{value:e,enumerable:!0}):r,e)),Le=e=>ce(V({},"__esModule",{value:!0}),e);var bt={};ze(bt,{Default:()=>te,InactiveCustomer:()=>gt,LargeDeal:()=>ft,default:()=>mt});module.exports=Le(bt);var z=Ne(require("react"));var ye=require("clsx");var q="-",Pe=e=>{let t=Ie(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(q);return s[0]===""&&s.length!==1&&s.shift(),ue(s,t)||De(l)},getConflictingClassGroupIds:(l,s)=>{let u=r[l]||[];return s&&o[l]?[...u,...o[l]]:u}}},ue=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ue(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(q);return(l=t.validators.find(({validator:s})=>s(n)))==null?void 0:l.classGroupId},de=/^\[(.+)\]$/,De=e=>{if(de.test(e)){let t=de.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ie=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ee(Object.entries(e.classGroups),r).forEach(([n,l])=>{Z(l,o,n,t)}),o},Z=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:pe(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ge(a)){Z(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,l])=>{Z(l,pe(t,n),r,o)})})},pe=(e,t)=>{let r=e;return t.split(q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ge=e=>e.isThemeGetter,Ee=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[t+l,s])):n);return[r,a]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){r.has(n)?r.set(n,l):a(n,l)}}},me="!",je=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,l=s=>{let u=[],g=0,h=0,x;for(let p=0;p<s.length;p++){let b=s[p];if(g===0){if(b===a&&(o||s.slice(p,p+n)===t)){u.push(s.slice(h,p)),h=p+n;continue}if(b==="/"){x=p;continue}}b==="["?g++:b==="]"&&g--}let v=u.length===0?s:s.substring(h),k=v.startsWith(me),w=k?v.substring(1):v,f=x&&x>h?x-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:f}};return r?s=>r({className:s,parseClassName:l}):l},Be=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},Ve=e=>({cache:He(e.cacheSize),parseClassName:je(e),...Pe(e)}),We=/\s+/,_e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],l=e.trim().split(We),s="";for(let u=l.length-1;u>=0;u-=1){let g=l[u],{modifiers:h,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:k}=r(g),w=!!k,f=o(w?v.substring(0,k):v);if(!f){if(!w){s=g+(s.length>0?" "+s:s);continue}if(f=o(v),!f){s=g+(s.length>0?" "+s:s);continue}w=!1}let p=Be(h).join(":"),b=x?p+me:p,y=b+f;if(n.includes(y))continue;n.push(y);let D=a(f,w);for(let T=0;T<D.length;++T){let H=D[T];n.push(b+H)}s=g+(s.length>0?" "+s:s)}return s};function Ue(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fe(t))&&(o&&(o+=" "),o+=r);return o}var fe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=fe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Je(e,...t){let r,o,a,n=l;function l(u){let g=t.reduce((h,x)=>x(h),e());return r=Ve(g),o=r.cache.get,a=r.cache.set,n=s,s(u)}function s(u){let g=o(u);if(g)return g;let h=_e(u,r);return a(u,h),h}return function(){return n(Ue.apply(null,arguments))}}var c=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fe=/^\d+\/\d+$/,$e=new Set(["px","full","screen"]),Oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>L(e)||$e.has(e)||Fe.test(e),S=e=>P(e,"length",st),L=e=>!!e&&!Number.isNaN(Number(e)),O=e=>P(e,"number",L),G=e=>!!e&&Number.isInteger(Number(e)),Xe=e=>e.endsWith("%")&&L(e.slice(0,-1)),i=e=>ge.test(e),A=e=>Oe.test(e),Ye=new Set(["length","size","percentage"]),et=e=>P(e,Ye,be),tt=e=>P(e,"position",be),rt=new Set(["image","url"]),ot=e=>P(e,rt,it),nt=e=>P(e,"",at),E=()=>!0,P=(e,t,r)=>{let o=ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},st=e=>Ze.test(e)&&!qe.test(e),be=()=>!1,at=e=>Qe.test(e),it=e=>Ke.test(e);var lt=()=>{let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),g=c("grayscale"),h=c("hueRotate"),x=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),b=c("opacity"),y=c("padding"),D=c("saturate"),T=c("scale"),H=c("sepia"),re=c("skew"),oe=c("space"),ne=c("translate"),U=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,t],d=()=>[i,t],se=()=>["",R,S],j=()=>["auto",L,i],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",i],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[L,i];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[R,S],blur:["none","",A,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",A,i],borderSpacing:d(),borderWidth:se(),contrast:M(),grayscale:I(),hueRotate:M(),invert:I(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Xe,S],inset:F(),margin:F(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:I(),skew:M(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"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:[...ae(),i]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",G,i]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",G,i]},i]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[G,i]},i]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],N:[{N:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",A,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[E]}],"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",i]}],"line-clamp":[{"line-clamp":["none",L,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,S]}],"underline-offset":[{"underline-offset":["auto",R,i]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),tt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",et]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[R,i]}],"outline-w":[{outline:[R,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[R,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,nt]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",A,i]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[D]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[G,i]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-N":[{"scroll-N":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,S,O]}],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"],N:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-N":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var he=Je(lt);function C(...e){return he((0,ye.clsx)(e))}var N=require("react/jsx-runtime"),Q=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Q.displayName="Card";var K=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex flex-col space-y-1.5 p-6",e),...t}));K.displayName="CardHeader";var X=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var ct=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("text-sm text-muted-foreground",e),...t}));ct.displayName="CardDescription";var Y=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("p-6 pt-0",e),...t}));Y.displayName="CardContent";var dt=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex items-center p-6 pt-0",e),...t}));dt.displayName="CardFooter";var xe=require("class-variance-authority");var pt=(0,xe.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 ve({className:e,variant:t,...r}){return(0,N.jsx)("div",{className:C(pt({variant:t}),e),...r})}var W=require("lucide-react");function Ce({deal:e,customer:t,categories:r,onClick:o}){let a=r.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,N.jsxs)(Q,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,N.jsxs)(K,{className:"pb-2",children:[(0,N.jsx)("div",{className:"flex justify-between items-center",children:(0,N.jsx)(X,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,N.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,N.jsxs)(Y,{children:[(0,N.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,N.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,N.jsx)(W.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,N.jsx)("span",{children:e.assignee})]}),(0,N.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,N.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,N.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,N.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,N.jsx)(W.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,N.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,N.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,N.jsx)(ve,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}var ee=[{id:"1",name:"Acme Corp",intro:"A leading technology company",active:!0},{id:"2",name:"GlobalTech",intro:"Innovative solutions provider",active:!0},{id:"3",name:"InnoSystems",intro:"Cutting-edge software development",active:!1}],ke=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],_=[{id:"1",customerId:"1",value:5e4,assignee:"John Doe",status:"Qualified",categories:["1","3","5"],dateLogged:"2023-01-15",closureDate:"2023-06-30",lastModified:"2023-05-01T10:00:00Z",comments:[{id:"1",text:"Initial contact made",author:"John Doe",timestamp:"2023-01-15T09:00:00Z"}],description:"Potential software solution for Acme Corp"},{id:"2",customerId:"2",value:75e3,assignee:"Jane Smith",status:"Proposal",categories:["2","4","6"],dateLogged:"2023-02-01",closureDate:"2023-07-31",lastModified:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:"Jane Smith",timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}];var ut={title:"CRM/DealCard",component:Ce,parameters:{layout:"centered"}},mt=ut,te={args:{deal:_[0],customer:ee.find(e=>e.id===_[0].customerId),categories:ke,onClick:()=>console.log("Deal card clicked")}},ft={args:{...te.args,deal:{..._[0],value:1e6}}},gt={args:{...te.args,customer:{...ee[2],active:!1}}};0&&(module.exports={Default,InactiveCustomer,LargeDeal});
@@ -1 +1 @@
1
- import{a as t,b as r,c as e}from"../../chunk-HIT3PDJA.mjs";import{a as o}from"../../chunk-F2YN7SED.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var c={title:"CRM/DealCard",component:o,parameters:{layout:"centered"}},d=c,a={args:{deal:e[0],customer:t.find(s=>s.id===e[0].customerId),categories:r,onClick:()=>console.log("Deal card clicked")}},p={args:{...a.args,deal:{...e[0],value:1e6}}},i={args:{...a.args,customer:{...t[2],active:!1}}};export{a as Default,i as InactiveCustomer,p as LargeDeal,d as default};
1
+ import{a as t,b as r,c as e}from"../../chunk-HIT3PDJA.mjs";import{a as o}from"../../chunk-YOFO7YSO.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var c={title:"CRM/DealCard",component:o,parameters:{layout:"centered"}},d=c,a={args:{deal:e[0],customer:t.find(s=>s.id===e[0].customerId),categories:r,onClick:()=>console.log("Deal card clicked")}},p={args:{...a.args,deal:{...e[0],value:1e6}}},i={args:{...a.args,customer:{...t[2],active:!1}}};export{a as Default,i as InactiveCustomer,p as LargeDeal,d as default};
@@ -1,12 +1,12 @@
1
- import type { Deal, Customer, Comment, Category, User } from './types';
1
+ import type { Deal, CRMCustomer, Comment, CRMCategory, User } from './types';
2
2
  type DealDetailsProps = {
3
3
  deal: Deal;
4
4
  users?: User[];
5
- customer: Customer | undefined;
6
- categories: Category[];
5
+ customer: CRMCustomer | undefined;
6
+ categories: CRMCategory[];
7
7
  onClose: () => void;
8
8
  onSave: (deal: Deal) => void;
9
9
  onAddComment: (comment: Comment) => void;
10
10
  };
11
- export default function DealDetails({ deal, users, customer, categories, onClose, onSave, onAddComment, }: DealDetailsProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function DealDetails({ deal, users, customer, categories, onClose, onSave, onAddComment, }: DealDetailsProps): import("react/jsx-runtime").JSX.Element;
12
12
  export {};