cortex-react-components 1.42.7 → 1.43.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 (136) hide show
  1. package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
  2. package/dist/{chunk-DYIUZ4V5.mjs → chunk-44RAJFV6.mjs} +1 -1
  3. package/dist/chunk-4YNA7RS7.mjs +1 -0
  4. package/dist/{chunk-REHZTVVN.mjs → chunk-7322R3ID.mjs} +1 -1
  5. package/dist/{chunk-4KGFHVYD.mjs → chunk-74TGU5CZ.mjs} +1 -1
  6. package/dist/{chunk-GFV75XSU.mjs → chunk-7Z52ZEUX.mjs} +1 -1
  7. package/dist/{chunk-ROEHSKFW.mjs → chunk-AF5ISZTG.mjs} +1 -1
  8. package/dist/{chunk-AEPYNOEK.mjs → chunk-AS3NR4OU.mjs} +1 -1
  9. package/dist/{chunk-3W5FR6O2.mjs → chunk-CDYA6NPD.mjs} +1 -1
  10. package/dist/{chunk-ZOLLFX4E.mjs → chunk-D3PXELYK.mjs} +1 -1
  11. package/dist/{chunk-U3RGJJNS.mjs → chunk-DF3LBG6O.mjs} +1 -1
  12. package/dist/{chunk-UDX5Y4SA.mjs → chunk-EIAOUSXS.mjs} +1 -1
  13. package/dist/{chunk-3PC5BLK7.mjs → chunk-HN4TEDPU.mjs} +1 -1
  14. package/dist/{chunk-Y6CZVVJF.mjs → chunk-HUN2X4VH.mjs} +1 -1
  15. package/dist/{chunk-YDQUZWFZ.mjs → chunk-HVA2GFDG.mjs} +1 -1
  16. package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
  17. package/dist/chunk-IEQA6MIO.mjs +4 -0
  18. package/dist/{chunk-EMZQNDA7.mjs → chunk-IMAQJ7N3.mjs} +1 -1
  19. package/dist/{chunk-D43ENVPX.mjs → chunk-IPHHUHS3.mjs} +1 -1
  20. package/dist/{chunk-4NETKTTT.mjs → chunk-J4SEDIHB.mjs} +1 -1
  21. package/dist/{chunk-ZXPDKKGX.mjs → chunk-K3ZHWH6Y.mjs} +1 -1
  22. package/dist/{chunk-IE2A7UT3.mjs → chunk-LBKMUSVR.mjs} +1 -1
  23. package/dist/{chunk-EW2X7RMJ.mjs → chunk-M7BWRL34.mjs} +1 -1
  24. package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
  25. package/dist/{chunk-4R7S6EEU.mjs → chunk-NLTSDI7A.mjs} +1 -1
  26. package/dist/{chunk-WPTEMDOP.mjs → chunk-PV5S3GA7.mjs} +1 -1
  27. package/dist/{chunk-PBAL3B6N.mjs → chunk-Q5EQOIL7.mjs} +1 -1
  28. package/dist/{chunk-AEDBEVEE.mjs → chunk-Q77U5BXI.mjs} +1 -1
  29. package/dist/{chunk-HZ5QHCGZ.mjs → chunk-QIGWPB3D.mjs} +1 -1
  30. package/dist/{chunk-XBBQGSYP.mjs → chunk-R7P4VVM3.mjs} +1 -1
  31. package/dist/{chunk-HW7IFZXS.mjs → chunk-UBPXT2KW.mjs} +1 -1
  32. package/dist/{chunk-PVRWMAHW.mjs → chunk-UK4IPFAO.mjs} +1 -1
  33. package/dist/{chunk-ICWOOSJR.mjs → chunk-WDREYBFE.mjs} +1 -1
  34. package/dist/{chunk-MP3J7UPZ.mjs → chunk-X5PEHTIN.mjs} +1 -1
  35. package/dist/{chunk-YKDVNCHV.mjs → chunk-YOOGQIDR.mjs} +1 -1
  36. package/dist/{chunk-4L4RAUPG.mjs → chunk-YQZH5MJU.mjs} +1 -1
  37. package/dist/{chunk-J3QZZ62Z.mjs → chunk-ZSVSTJJR.mjs} +1 -1
  38. package/dist/components/Blocks/Banner.mjs +1 -1
  39. package/dist/components/Blocks/CallToAction.mjs +1 -1
  40. package/dist/components/Blocks/Content.mjs +1 -1
  41. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  42. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  43. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  44. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  45. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  46. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  47. package/dist/components/Blocks/index.mjs +1 -1
  48. package/dist/components/CRM/DealDetails.js +1 -1
  49. package/dist/components/CRM/DealDetails.mjs +1 -1
  50. package/dist/components/CRM/DealDetails.stories.js +1 -1
  51. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  52. package/dist/components/CRM/KanbanBoard.d.ts +1 -1
  53. package/dist/components/CRM/KanbanBoard.js +1 -1
  54. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  55. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  56. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  57. package/dist/components/CRM/KanbanColumn.js +1 -1
  58. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  59. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  60. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  61. package/dist/components/CRM/NewDealForm.mjs +1 -1
  62. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  63. package/dist/components/CRM/index.js +1 -1
  64. package/dist/components/CRM/index.mjs +1 -1
  65. package/dist/components/Cards/index.mjs +1 -1
  66. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  67. package/dist/components/HeaderFooter/index.mjs +1 -1
  68. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  69. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  70. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  71. package/dist/components/Heros/PostHero/index.mjs +1 -1
  72. package/dist/components/Heros/RenderHero.mjs +1 -1
  73. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  74. package/dist/components/Heros/index.mjs +1 -1
  75. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  76. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  77. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  78. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  79. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  80. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  81. package/dist/components/Holidays/index.mjs +1 -1
  82. package/dist/components/Layouts/BlogList.mjs +1 -1
  83. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  84. package/dist/components/Layouts/SlideShow.mjs +1 -1
  85. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  86. package/dist/components/Layouts/index.mjs +1 -1
  87. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  88. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  89. package/dist/components/Menus/SidebarRight.mjs +1 -1
  90. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  91. package/dist/components/Menus/index.mjs +1 -1
  92. package/dist/components/Payload/Card/index.mjs +1 -1
  93. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  94. package/dist/components/Payload/Media/index.mjs +1 -1
  95. package/dist/components/Payload/RichText/index.mjs +1 -1
  96. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  97. package/dist/components/Payload/RichText.stories.mjs +1 -1
  98. package/dist/components/Payload/index.mjs +1 -1
  99. package/dist/components/index.js +3 -3
  100. package/dist/components/index.mjs +1 -1
  101. package/dist/components/ui/index.mjs +1 -1
  102. package/dist/components/ui/sidebar.mjs +1 -1
  103. package/dist/index.js +3 -3
  104. package/dist/index.mjs +1 -1
  105. package/dist/metafile-cjs.json +1 -1
  106. package/dist/metafile-esm.json +1 -1
  107. package/dist/pages/Blog.mjs +1 -1
  108. package/dist/pages/Blog.stories.mjs +1 -1
  109. package/dist/pages/Documentation.mjs +1 -1
  110. package/dist/pages/Documentation.stories.mjs +1 -1
  111. package/dist/pages/IndexPage.mjs +1 -1
  112. package/dist/pages/IndexPage.stories.mjs +1 -1
  113. package/dist/pages/Intranet.mjs +1 -1
  114. package/dist/pages/Intranet.stories.mjs +1 -1
  115. package/dist/pages/LandingPage.mjs +1 -1
  116. package/dist/pages/LandingPage.stories.mjs +1 -1
  117. package/dist/pages/Page.mjs +1 -1
  118. package/dist/pages/Page.stories.mjs +1 -1
  119. package/dist/pages/Publish.mjs +1 -1
  120. package/dist/pages/Publish.stories.mjs +1 -1
  121. package/dist/pages/Website.mjs +1 -1
  122. package/dist/pages/Website.stories.mjs +1 -1
  123. package/dist/sections/AboutSection.mjs +1 -1
  124. package/dist/sections/AboutSection.stories.mjs +1 -1
  125. package/dist/sections/BlogDetail.mjs +1 -1
  126. package/dist/sections/BlogDetail.stories.mjs +1 -1
  127. package/dist/sections/BlogListSection.mjs +1 -1
  128. package/dist/sections/BlogListSection.stories.mjs +1 -1
  129. package/dist/sections/ContactSection.mjs +1 -1
  130. package/dist/sections/ContactSection.stories.mjs +1 -1
  131. package/dist/sections/PricingSection.mjs +1 -1
  132. package/dist/sections/PricingSection.stories.mjs +1 -1
  133. package/dist/sections/index.mjs +1 -1
  134. package/package.json +2 -2
  135. package/dist/chunk-KDERFUAW.mjs +0 -4
  136. package/dist/chunk-LRIIP54N.mjs +0 -1
@@ -1 +1 @@
1
- import{a as b,b as v,c as h}from"./chunk-SBM5HULF.mjs";import{b as i}from"./chunk-GLEWUUGS.mjs";import{ChevronLeft as w,ChevronRight as k}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function u(...t){return t.filter(Boolean).join(" ")}function $({currentDate:t,setCurrentDate:l,holidays:y,employees:n}){let m=new Date(t.getFullYear(),t.getMonth()+1,0).getDate(),f=()=>{l(new Date(t.getFullYear(),t.getMonth()-1,1))},x=()=>{l(new Date(t.getFullYear(),t.getMonth()+1,1))},N=()=>{l(new Date)};return r("div",{className:"px-4 sm:px-6 lg:px-8",children:[r("div",{className:"sm:flex sm:items-center",children:[r("div",{className:"sm:flex-auto",children:[e("h1",{className:"text-2xl font-semibold text-accent",children:t.toLocaleString("default",{month:"long",year:"numeric"})}),e("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),r("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[r(i,{onClick:f,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[e("span",{className:"sr-only",children:"Previous month"}),e(w,{className:"h-5 w-5","aria-hidden":"true"})]}),e(i,{variant:"outline",onClick:N,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),r(i,{onClick:x,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[e("span",{className:"sr-only",children:"Next month"}),e(k,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),e("div",{className:"mt-8 flow-root",children:e("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:e("div",{className:"max-h-[60vh] overflow-y-auto",children:r("table",{className:"min-w-full border-separate border-spacing-0",children:[e("thead",{className:"sticky top-0 z-10 bg-white",children:r("tr",{children:[e("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(m)].map((o,s)=>e("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:s+1},s))]})}),e("tbody",{children:n.map((o,s)=>r("tr",{children:[e("td",{className:u(s!==n.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:r("div",{className:"flex items-center",children:[r(b,{className:"h-11 w-11",children:[e(v,{src:o.image,alt:o.name}),e(h,{children:o.name.split(" ").map(c=>c[0]).join("")})]}),e("div",{className:"ml-4",children:e("div",{className:"font-medium text-accent",children:o.name})})]})}),[...Array(m)].map((c,g)=>{let p=new Date(t.getFullYear(),t.getMonth(),g+1),a=y.find(d=>d.userId===o.id&&new Date(d.startDate)<=p&&new Date(d.endDate)>=p);return e("td",{className:u(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:e("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${a?a.status==="approved"?"bg-green-500":a.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:a?`${o.name}: ${a.status} (${a.startDate} - ${a.endDate}) - ${a.leaveType}`:"",children:a&&a.leaveType!=="Full Day"&&e("div",{className:`h-3 w-6 ${a.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${o.id}-${g}`)})]},o.id))})]})})})})]})}export{$ as a};
1
+ import{b as i}from"./chunk-GLEWUUGS.mjs";import{a as b,b as v,c as h}from"./chunk-SBM5HULF.mjs";import{ChevronLeft as w,ChevronRight as k}from"lucide-react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function u(...t){return t.filter(Boolean).join(" ")}function $({currentDate:t,setCurrentDate:l,holidays:y,employees:n}){let m=new Date(t.getFullYear(),t.getMonth()+1,0).getDate(),f=()=>{l(new Date(t.getFullYear(),t.getMonth()-1,1))},x=()=>{l(new Date(t.getFullYear(),t.getMonth()+1,1))},N=()=>{l(new Date)};return r("div",{className:"px-4 sm:px-6 lg:px-8",children:[r("div",{className:"sm:flex sm:items-center",children:[r("div",{className:"sm:flex-auto",children:[e("h1",{className:"text-2xl font-semibold text-accent",children:t.toLocaleString("default",{month:"long",year:"numeric"})}),e("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),r("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[r(i,{onClick:f,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[e("span",{className:"sr-only",children:"Previous month"}),e(w,{className:"h-5 w-5","aria-hidden":"true"})]}),e(i,{variant:"outline",onClick:N,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),r(i,{onClick:x,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[e("span",{className:"sr-only",children:"Next month"}),e(k,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),e("div",{className:"mt-8 flow-root",children:e("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:e("div",{className:"max-h-[60vh] overflow-y-auto",children:r("table",{className:"min-w-full border-separate border-spacing-0",children:[e("thead",{className:"sticky top-0 z-10 bg-white",children:r("tr",{children:[e("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(m)].map((o,s)=>e("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:s+1},s))]})}),e("tbody",{children:n.map((o,s)=>r("tr",{children:[e("td",{className:u(s!==n.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:r("div",{className:"flex items-center",children:[r(b,{className:"h-11 w-11",children:[e(v,{src:o.image,alt:o.name}),e(h,{children:o.name.split(" ").map(c=>c[0]).join("")})]}),e("div",{className:"ml-4",children:e("div",{className:"font-medium text-accent",children:o.name})})]})}),[...Array(m)].map((c,g)=>{let p=new Date(t.getFullYear(),t.getMonth(),g+1),a=y.find(d=>d.userId===o.id&&new Date(d.startDate)<=p&&new Date(d.endDate)>=p);return e("td",{className:u(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:e("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${a?a.status==="approved"?"bg-green-500":a.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:a?`${o.name}: ${a.status} (${a.startDate} - ${a.endDate}) - ${a.leaveType}`:"",children:a&&a.leaveType!=="Full Day"&&e("div",{className:`h-3 w-6 ${a.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${o.id}-${g}`)})]},o.id))})]})})})})]})}export{$ as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-EI7PFWFS.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-XBBQGSYP.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-R7P4VVM3.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{e as o}from"./chunk-HZ5QHCGZ.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
1
+ import{e as o}from"./chunk-QIGWPB3D.mjs";import n from"next/image";import{jsx as r,jsxs as m}from"react/jsx-runtime";var s=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:i,url:l,width:c}=e;return r(n,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:l||"",width:c||0,height:i||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return r("div",{children:r(n,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},p=({links:e,media:t,children:a,richText:i})=>m("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&r(s,{media:t}),r("div",{className:"mx-0 min-w-full relative z-9",children:r("div",{className:"container text-brand-one-foreground",children:a||i&&r(o,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:i,enableProse:!0,enableGutter:!1})})})]});export{p as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as f}from"./chunk-MP3J7UPZ.mjs";import{a as v}from"./chunk-QNKQEXU3.mjs";import{a as g}from"./chunk-DYIUZ4V5.mjs";import{a as y}from"./chunk-DE2DIWCC.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as A,CheckSquare as k}from"lucide-react";import{useRouter as M}from"next/navigation";import{format as T,parseISO as V}from"date-fns";import{jsx as r,jsxs as n}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:t,currentDate:D,leaveApprovals:h,employees:x,submitLeaveRequest:o,approveLeave:i,rejectLeave:d}){let[a,m]=N("Calendar View"),w=M(),L=!1,u=V(D),c=async e=>{let C=T(e,"dd-MM-yyyy"),p=new URL(window.location.href);return p.searchParams.set("date",C),w.push(p.toString()),{success:!0}};if(L)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let l=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:A,current:a==="Request Leave"},{name:"Approve Leave",icon:k,current:a==="Approve Leave"}];return n("div",{className:"container fixed mx-auto p-4",children:[n("div",{className:"mb-8",children:[n("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>m(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:l.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:l.map(e=>n("a",{onClick:()=>{(e.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:u,setCurrentDate:c,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:u,setCurrentDate:c,holidays:s}),a==="Request Leave"&&r(v,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:e=>o?o(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(g,{leaveRequests:h,onApprove:e=>i?i(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>d?d(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
4
+ import{a as y}from"./chunk-DE2DIWCC.mjs";import{a as f}from"./chunk-X5PEHTIN.mjs";import{a as v}from"./chunk-QNKQEXU3.mjs";import{a as g}from"./chunk-44RAJFV6.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as A,CheckSquare as k}from"lucide-react";import{useRouter as M}from"next/navigation";import{format as T,parseISO as V}from"date-fns";import{jsx as r,jsxs as n}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:t,currentDate:D,leaveApprovals:h,employees:x,submitLeaveRequest:o,approveLeave:i,rejectLeave:d}){let[a,m]=N("Calendar View"),w=M(),L=!1,u=V(D),c=async e=>{let C=T(e,"dd-MM-yyyy"),p=new URL(window.location.href);return p.searchParams.set("date",C),w.push(p.toString()),{success:!0}};if(L)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let l=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:A,current:a==="Request Leave"},{name:"Approve Leave",icon:k,current:a==="Approve Leave"}];return n("div",{className:"container fixed mx-auto p-4",children:[n("div",{className:"mb-8",children:[n("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>m(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:l.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:l.map(e=>n("a",{onClick:()=>{(e.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:u,setCurrentDate:c,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:u,setCurrentDate:c,holidays:s}),a==="Request Leave"&&r(v,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:e=>o?o(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(g,{leaveRequests:h,onApprove:e=>i?i(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>d?d(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
@@ -1 +1 @@
1
- import{a}from"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.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-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.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-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.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-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.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-AEDBEVEE.mjs";import"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.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-Q77U5BXI.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.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-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.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-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.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-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.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-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.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-YDQUZWFZ.mjs";import"../../chunk-23EQTK7B.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.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-HVA2GFDG.mjs";import"../../chunk-423OEU3K.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.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-4KGFHVYD.mjs";import"../../chunk-AEDBEVEE.mjs";import"../../chunk-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-Y6CZVVJF.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-74TGU5CZ.mjs";import"../../chunk-Q77U5BXI.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.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 e}from"../../chunk-6HFYLEVF.mjs";import{a as q}from"../../chunk-YDQUZWFZ.mjs";import"../../chunk-23EQTK7B.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import{a as p}from"../../chunk-4KGFHVYD.mjs";import{a as n}from"../../chunk-AEDBEVEE.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-HZ5QHCGZ.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as k}from"../../chunk-PVRWMAHW.mjs";import{a as l}from"../../chunk-Y6CZVVJF.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 e}from"../../chunk-6HFYLEVF.mjs";import{a as q}from"../../chunk-HVA2GFDG.mjs";import"../../chunk-423OEU3K.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import{a as p}from"../../chunk-74TGU5CZ.mjs";import{a as n}from"../../chunk-Q77U5BXI.mjs";import{a as g,b as h,c as m}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as k}from"../../chunk-UK4IPFAO.mjs";import{a as l}from"../../chunk-HUN2X4VH.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-GLEWUUGS.mjs";import{a as b}from"../../chunk-H7D3PZKE.mjs";import{a as c}from"../../chunk-IQPZEEYJ.mjs";import"../../chunk-Q6SEVCRG.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,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var st=Object.create;var ne=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty;var mt=(e,t)=>{for(var r in t)ne(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ct(t))!pt.call(e,l)&&l!==r&&ne(e,l,{get:()=>t[l],enumerable:!(o=lt(t,l))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?st(dt(e)):{},Ae(t||!e||!e.__esModule?ne(r,"default",{value:e,enumerable:!0}):r,e)),ut=e=>Ae(ne({},"__esModule",{value:!0}),e);var er={};mt(er,{DealDetails:()=>Yt});module.exports=ut(er);var j=require("react");var re=A(require("react")),S=A(require("@radix-ui/react-dialog")),We=require("lucide-react");var Ge=require("clsx");var ge="-",ft=e=>{let t=bt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let a=c.split(ge);return a[0]===""&&a.length!==1&&a.shift(),Ie(a,t)||gt(c)},getConflictingClassGroupIds:(c,a)=>{let v=r[c]||[];return a&&o[c]?[...v,...o[c]]:v}}},Ie=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),l=o?Ie(e.slice(1),o):void 0;if(l)return l;if(t.validators.length===0)return;let s=e.join(ge);return(c=t.validators.find(({validator:a})=>a(s)))==null?void 0:c.classGroupId},Te=/^\[(.+)\]$/,gt=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return ht(Object.entries(e.classGroups),r).forEach(([s,c])=>{fe(c,o,s,t)}),o},fe=(e,t,r,o)=>{e.forEach(l=>{if(typeof l=="string"){let s=l===""?t:ze(t,l);s.classGroupId=r;return}if(typeof l=="function"){if(vt(l)){fe(l(o),t,r,o);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([s,c])=>{fe(c,ze(t,s),r,o)})})},ze=(e,t)=>{let r=e;return t.split(ge).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},vt=e=>e.isThemeGetter,ht=(e,t)=>t?e.map(([r,o])=>{let l=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,a])=>[t+c,a])):s);return[r,l]}):e,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,l=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return l(s,c),c},set(s,c){r.has(s)?r.set(s,c):l(s,c)}}},Le="!",xt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,l=t[0],s=t.length,c=a=>{let v=[],h=0,P=0,D;for(let u=0;u<a.length;u++){let R=a[u];if(h===0){if(R===l&&(o||a.slice(u,u+s)===t)){v.push(a.slice(P,u)),P=u+s;continue}if(R==="/"){D=u;continue}}R==="["?h++:R==="]"&&h--}let N=v.length===0?a:a.substring(P),C=N.startsWith(Le),g=C?N.substring(1):N,w=D&&D>P?D-P:void 0;return{modifiers:v,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:w}};return r?a=>r({className:a,parseClassName:c}):c},wt=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},St=e=>({cache:yt(e.cacheSize),parseClassName:xt(e),...ft(e)}),Pt=/\s+/,Rt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=t,s=[],c=e.trim().split(Pt),a="";for(let v=c.length-1;v>=0;v-=1){let h=c[v],{modifiers:P,hasImportantModifier:D,baseClassName:N,maybePostfixModifierPosition:C}=r(h),g=!!C,w=o(g?N.substring(0,C):N);if(!w){if(!g){a=h+(a.length>0?" "+a:a);continue}if(w=o(N),!w){a=h+(a.length>0?" "+a:a);continue}g=!1}let u=wt(P).join(":"),R=D?u+Le:u,k=R+w;if(s.includes(k))continue;s.push(k);let V=l(w,g);for(let G=0;G<V.length;++G){let O=V[G];s.push(R+O)}a=h+(a.length>0?" "+a:a)}return a};function Ct(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(o&&(o+=" "),o+=r);return o}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Me(e[o]))&&(r&&(r+=" "),r+=t);return r};function Nt(e,...t){let r,o,l,s=c;function c(v){let h=t.reduce((P,D)=>D(P),e());return r=St(h),o=r.cache.get,l=r.cache.set,s=a,a(v)}function a(v){let h=o(v);if(h)return h;let P=Rt(v,r);return l(v,P),P}return function(){return s(Ct.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ee=/^\[(?:([a-z-]+):)?(.+)\]$/T,kt=/^\d+\/\d+$/,Dt=new Set(["px","full","screen"]),At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|T|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)We-?((\d+)?\.?(\d+)[a-z]+|0)/,Lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>J(e)||Dt.has(e)||kt.test(e),W=e=>q(e,"length",Ut),J=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>q(e,"number",J),ee=e=>!!e&&Number.isInteger(Number(e)),Mt=e=>e.endsWith("%")&&J(e.slice(0,-1)),d=e=>Ee.test(e),H=e=>At.test(e),Et=new Set(["length","size","percentage"]),Bt=e=>q(e,Et,Be),Vt=e=>q(e,"position",Be),Gt=new Set(["image","url"]),Wt=e=>q(e,Gt,Ot),Ht=e=>q(e,"",Ft),te=()=>!0,q=(e,t,r)=>{let o=Ee.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ut=e=>Tt.test(e)&&!zt.test(e),Be=()=>!1,Ft=e=>It.test(e),Ot=e=>Lt.test(e);var _t=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),o=b("brightness"),l=b("borderColor"),s=b("borderRadius"),c=b("borderSpacing"),a=b("borderWidth"),v=b("contrast"),h=b("grayscale"),P=b("hueRotate"),D=b("invert"),N=b("gap"),C=b("gradientColorStops"),g=b("gradientColorStopPositions"),w=b("inset"),u=b("margin"),R=b("opacity"),k=b("padding"),V=b("saturate"),G=b("scale"),O=b("sepia"),Q=b("skew"),Z=b("space"),n=b("translate"),x=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",d,t],f=()=>[d,t],Ce=()=>["",E,W],ae=()=>["auto",J,d],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ie=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",d],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[J,d];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[E,W],blur:["none","",H,d],brightness:M(),borderColor:[e],borderRadius:["none","","full",H,d],borderSpacing:f(),borderWidth:Ce(),contrast:M(),grayscale:Y(),hueRotate:M(),invert:Y(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[Mt,W],inset:$(),margin:$(),opacity:M(),padding:f(),saturate:M(),scale:M(),sepia:Y(),skew:M(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"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:[...Ne(),d]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-T":[{"overflow-T":I()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-T":[{"overscroll-T":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-T":[{"inset-T":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ee,d]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ee,d]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",ee,d]},d]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[ee,d]},d]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-T":[{"gap-T":[N]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-T":[{"space-T":[Z]}],"space-T-reverse":["space-T-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,W]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ue]}],"font-family":[{font:[te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",J,ue]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",E,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",E,W]}],"underline-offset":[{"underline-offset":["auto",E,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","T","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-T":[{"border-T":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...ie(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-T":[{"divide-T":[a]}],"divide-T-reverse":["divide-T-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:ie()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-T":[{"border-T":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ie()]}],"outline-offset":[{"outline-offset":[E,d]}],"outline-w":[{outline:[E,W]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[E,W]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Ht]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",H,d]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[P]}],invert:[{invert:[D]}],saturate:[{saturate:[V]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P]}],"backdrop-invert":[{"backdrop-invert":[D]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-T":[{"border-spacing-T":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-T":[{"scale-T":[G]}],rotate:[{rotate:[ee,d]}],"translate-x":[{"translate-x":[n]}],"translate-T":[{"translate-T":[n]}],"skew-x":[{"skew-x":[Q]}],"skew-T":[{"skew-T":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","T","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","T","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-T":[{"touch-pan":["T","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[E,W,ue]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-T"],overscroll:["overscroll-x","overscroll-T"],inset:["inset-x","inset-T","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-T":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-T"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-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-T"],"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-T":["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-T":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-T","touch-pz"],"touch-x":["touch"],"touch-T":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ve=Nt(_t);function m(...e){return Ve((0,Ge.clsx)(e))}var T=require("react/jsx-runtime"),He=S.Root;var jt=S.Portal;var Ue=re.forwardRef(({className:e,...t},r)=>(0,T.jsx)(S.Overlay,{ref:r,className:m("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ue.displayName=S.Overlay.displayName;var be=re.forwardRef(({className:e,children:t,...r},o)=>(0,T.jsxs)(jt,{children:[(0,T.jsx)(Ue,{}),(0,T.jsxs)(S.Content,{ref:o,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-T-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,(0,T.jsxs)(S.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,T.jsx)(We.X,{className:"h-4 w-4"}),(0,T.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));be.displayName=S.Content.displayName;var ve=({className:e,...t})=>(0,T.jsx)("div",{className:m("flex flex-col space-T-1.5 text-center sm:text-left",e),...t});ve.displayName="DialogHeader";var $t=({className:e,...t})=>(0,T.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$t.displayName="DialogFooter";var he=re.forwardRef(({className:e,...t},r)=>(0,T.jsx)(S.Title,{ref:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));he.displayName=S.Title.displayName;var Jt=re.forwardRef(({className:e,...t},r)=>(0,T.jsx)(S.Description,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));Jt.displayName=S.Description.displayName;var Fe=require("@radix-ui/react-slot"),Oe=require("class-variance-authority"),_e=A(require("react")),qt=(0,Oe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),X=_e.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...l},s)=>(0,T.jsx)(e?Fe.Slot:"button",{className:m(qt({className:t,size:r,variant:o})),ref:s,...l}));X.displayName="Button";var $e=A(require("react"));var K=$e.forwardRef(({className:e,type:t,...r},o)=>(0,T.jsx)("input",{type:t,className:m("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));K.displayName="Input";var qe=A(require("react")),ye=A(require("@radix-ui/react-label"));var Xt=(0,Oe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),B=qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)(ye.Root,{ref:r,className:m(Xt(),e),...t}));B.displayName=ye.Root.displayName;var Qe=A(require("react")),xe=Qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)("textarea",{className:m("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));xe.displayName="Textarea";var p=A(require("@radix-ui/react-select")),U=A(require("react")),we=p.Root;var Se=p.Value,se=U.forwardRef(({children:e,className:t,...r},o)=>(0,T.jsxs)(p.Trigger,{className:m("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,T.jsx)(p.Icon,{asChild:!0,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));se.displayName=p.Trigger.displayName;var Ye=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=p.ScrollUpButton.displayName;var et=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4"})}));et.displayName=p.ScrollDownButton.displayName;var le=U.forwardRef(({children:e,className:t,position:r="popper",...o},l)=>(0,T.jsx)(p.Portal,{children:(0,T.jsxs)(p.Content,{className:m("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-T-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-T-1",t),position:r,ref:l,...o,children:[(0,T.jsx)(Ye,{}),(0,T.jsx)(p.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,T.jsx)(et,{})]})}));le.displayName=p.Content.displayName;var Kt=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Kt.displayName=p.Label.displayName;var ce=U.forwardRef(({children:e,className:t,...r},o)=>(0,T.jsxs)(p.Item,{className:m("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,T.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,T.jsx)(p.ItemIndicator,{children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}),(0,T.jsx)(p.ItemText,{children:e})]}));ce.displayName=p.Item.displayName;var Qt=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Qt.displayName=p.Separator.displayName;var oe=A(require("@radix-ui/react-checkbox")),rt=A(require("react")),Pe=rt.forwardRef(({className:e,...t},r)=>(0,T.jsx)(oe.Root,{className:m("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,T.jsx)(oe.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}));Pe.displayName=oe.Root.displayName;var Zt=(0,Oe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function at({className:e,variant:t,...r}){return(0,T.jsx)("div",{className:m(Zt({variant:t}),e),...r})}var Re=A(require("react")),z=A(require("@radix-ui/react-scroll-area"));var pe=Re.forwardRef(({className:e,children:t,...r},o)=>(0,T.jsxs)(z.Root,{ref:o,className:m("relative overflow-hidden",e),...r,children:[(0,T.jsx)(z.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,T.jsx)(nt,{}),(0,T.jsx)(z.Corner,{})]}));pe.displayName=z.Root.displayName;var nt=Re.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,T.jsx)(z.ScrollAreaScrollbar,{ref:o,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,T.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));nt.displayName=z.ScrollAreaScrollbar.displayName;function Yt({deal:e,users:t,customer:r,categories:o,onClose:l,onSave:s,onAddComment:c}){var O,Q,Z;let[a,v]=(0,j.useState)({...e,value:e.value||0}),[h,P]=(0,j.useState)(""),[D,N]=(0,j.useState)(!1),[C,g]=(0,j.useState)(null);(0,j.useEffect)(()=>{N(JSON.stringify(e)!==JSON.stringify(a))},[e,a]);let w=()=>{s(a),N(!1),g(null)},u=(n,x)=>{v(I=>({...I,[n]:x}))},R=n=>{let x=a.categories.includes(n)?a.categories.filter(I=>I!==n):[...a.categories,n];u("categories",x)},k=()=>{h.trim()&&(c({id:Date.now().toString(),text:h,timestamp:new Date().toISOString()}),v(n=>({...n,comments:[...n.comments,{id:"0",text:h,timestamp:new Date().toISOString()}]})),P(""))},V=n=>{switch(n){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"}},G=(n,x,I)=>{let $=C===n;return(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:x}),(0,T.jsxs)("div",{className:"flex items-center space-x-2",children:[I,$?(0,T.jsx)(K,{value:a[n],onChange:f=>u(n,f.target.value),onBlur:()=>g(null),autoFocus:!0}):(0,T.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>g(n),children:a[n]}),!$&&(0,T.jsx)(X,{variant:"ghost",size:"sm",onClick:()=>g(n),children:(0,T.jsx)(We.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,T.jsx)(He,{open:!0,children:(0,T.jsxs)(be,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,T.jsxs)(ve,{className:"flex flex-row items-center justify-between",children:[(0,T.jsx)(he,{className:"text-2xl font-bold",children:r==null?void 0:r.name}),(0,T.jsxs)("div",{className:"flex space-x-2",children:[(0,T.jsx)(X,{variant:"outline",onClick:l,children:"Close"}),(0,T.jsxs)(X,{onClick:w,disabled:!D,children:[(0,T.jsx)(We.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,T.jsxs)(pe,{className:"flex-grow pr-4",children:[(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,T.jsx)("div",{className:"grid gap-2",children:C==="value"?(0,T.jsx)(K,{type:"number",value:a.value,onChange:n=>u("value",Number(n.target.value)),onBlur:()=>g(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,T.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("value"),children:["\xA3",(O=a.value)==null?void 0:O.toLocaleString()]})}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),C==="assignee"?(0,T.jsxs)(we,{value:((Z=(Q=a==null?void 0:a.assignee)==null?void 0:Q.id)==null?void 0:Z.toString())||"",onValueChange:n=>u("assignee",n),children:[(0,T.jsx)(se,{children:(0,T.jsx)(Se,{placeholder:"Select assignee"})}),(0,T.jsx)(le,{children:t&&t.map(n=>{var x;return(0,T.jsx)(ce,{value:((x=n==null?void 0:n.id)==null?void 0:x.toString())||"",children:n.name},n.id)})})]}):(0,T.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("assignee"),children:[(0,T.jsx)(We.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:a.assignee.name})]})]}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),C==="closureDate"?(0,T.jsx)(K,{type:"date",value:a.closureDate.split("T")[0],onChange:n=>u("closureDate",n.target.value),onBlur:()=>g(null),autoFocus:!0}):(0,T.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("closureDate"),children:[(0,T.jsx)(We.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:new Date(a.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,T.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Description"}),C==="description"?(0,T.jsx)(xe,{value:a.description,onChange:n=>u("description",n.target.value),onBlur:()=>g(null),className:"min-h-[100px]",autoFocus:!0}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>g("description"),children:a.description})]})}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Status"}),C==="status"?(0,T.jsxs)(we,{value:a.status,onValueChange:n=>{u("status",n),g(null)},children:[(0,T.jsx)(se,{children:(0,T.jsx)(Se,{placeholder:"Select status"})}),(0,T.jsx)(le,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(n=>(0,T.jsx)(ce,{value:n,children:n},n))})]}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("status"),children:a.status})]}),(0,T.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Categories"}),C==="categories"?(0,T.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(n=>(0,T.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,T.jsx)(Pe,{id:n.id,checked:a.categories.includes(n.id),onCheckedChange:()=>R(n.id)}),(0,T.jsx)("label",{htmlFor:n.id,className:`text-sm font-medium ${V(n.type)} px-2 py-1 rounded`,children:n.name})]},n.id))}):(0,T.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("categories"),children:a.categories.map(n=>{let x=o.find(I=>I.id===n);return x?(0,T.jsx)(at,{variant:"secondary",className:V(x.type),children:x.name},x.id):null})})]})]}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,T.jsx)(pe,{className:"h-[200px] overflow-T-auto",children:(0,T.jsx)("div",{className:"space-T-2",children:a.comments.map(n=>{var x;return(0,T.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,T.jsx)("p",{className:"text-sm text-gray-700",children:n.text}),(0,T.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(x=n.author)==null?void 0:x.name," - ",new Date(n.timestamp).toLocaleString()]})]},n.id)})})}),(0,T.jsxs)("div",{className:"flex mt-2",children:[(0,T.jsx)(K,{value:h,onChange:n=>P(n.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,T.jsxs)(X,{onClick:k,className:"ml-2",children:[(0,T.jsx)(We.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,T.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(a.updatedAt).toLocaleString()]})]})]})]})})}0&&(module.exports={DealDetails});
4
+ "use strict";var st=Object.create;var ne=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty;var mt=(e,t)=>{for(var r in t)ne(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ct(t))!pt.call(e,l)&&l!==r&&ne(e,l,{get:()=>t[l],enumerable:!(o=lt(t,l))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?st(dt(e)):{},Ae(t||!e||!e.__esModule?ne(r,"default",{value:e,enumerable:!0}):r,e)),ut=e=>Ae(ne({},"__esModule",{value:!0}),e);var er={};mt(er,{DealDetails:()=>Yt});module.exports=ut(er);var j=require("react");var re=A(require("react")),S=A(require("@radix-ui/react-dialog")),We=require("lucide-react");var Ge=require("clsx");var ge="-",ft=e=>{let t=bt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let a=c.split(ge);return a[0]===""&&a.length!==1&&a.shift(),Ie(a,t)||gt(c)},getConflictingClassGroupIds:(c,a)=>{let v=r[c]||[];return a&&o[c]?[...v,...o[c]]:v}}},Ie=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),l=o?Ie(e.slice(1),o):void 0;if(l)return l;if(t.validators.length===0)return;let s=e.join(ge);return(c=t.validators.find(({validator:a})=>a(s)))==null?void 0:c.classGroupId},Te=/^\[(.+)\]$/,gt=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return ht(Object.entries(e.classGroups),r).forEach(([s,c])=>{fe(c,o,s,t)}),o},fe=(e,t,r,o)=>{e.forEach(l=>{if(typeof l=="string"){let s=l===""?t:ze(t,l);s.classGroupId=r;return}if(typeof l=="function"){if(vt(l)){fe(l(o),t,r,o);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([s,c])=>{fe(c,ze(t,s),r,o)})})},ze=(e,t)=>{let r=e;return t.split(ge).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},vt=e=>e.isThemeGetter,ht=(e,t)=>t?e.map(([r,o])=>{let l=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,a])=>[t+c,a])):s);return[r,l]}):e,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,l=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=o.get(s))!==void 0)return l(s,c),c},set(s,c){r.has(s)?r.set(s,c):l(s,c)}}},Le="!",xt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,l=t[0],s=t.length,c=a=>{let v=[],y=0,P=0,D;for(let u=0;u<a.length;u++){let R=a[u];if(y===0){if(R===l&&(o||a.slice(u,u+s)===t)){v.push(a.slice(P,u)),P=u+s;continue}if(R==="/"){D=u;continue}}R==="["?y++:R==="]"&&y--}let N=v.length===0?a:a.substring(P),C=N.startsWith(Le),g=C?N.substring(1):N,w=D&&D>P?D-P:void 0;return{modifiers:v,hasImportantModifier:C,baseClassName:g,maybePostfixModifierPosition:w}};return r?a=>r({className:a,parseClassName:c}):c},wt=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},St=e=>({cache:yt(e.cacheSize),parseClassName:xt(e),...ft(e)}),Pt=/\s+/,Rt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=t,s=[],c=e.trim().split(Pt),a="";for(let v=c.length-1;v>=0;v-=1){let y=c[v],{modifiers:P,hasImportantModifier:D,baseClassName:N,maybePostfixModifierPosition:C}=r(y),g=!!C,w=o(g?N.substring(0,C):N);if(!w){if(!g){a=y+(a.length>0?" "+a:a);continue}if(w=o(N),!w){a=y+(a.length>0?" "+a:a);continue}g=!1}let u=wt(P).join(":"),R=D?u+Le:u,k=R+w;if(s.includes(k))continue;s.push(k);let V=l(w,g);for(let G=0;G<V.length;++G){let O=V[G];s.push(R+O)}a=y+(a.length>0?" "+a:a)}return a};function Ct(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(o&&(o+=" "),o+=r);return o}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Me(e[o]))&&(r&&(r+=" "),r+=t);return r};function Nt(e,...t){let r,o,l,s=c;function c(v){let y=t.reduce((P,D)=>D(P),e());return r=St(y),o=r.cache.get,l=r.cache.set,s=a,a(v)}function a(v){let y=o(v);if(y)return y;let P=Rt(v,r);return l(v,P),P}return function(){return s(Ct.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ee=/^\[(?:([a-z-]+):)?(.+)\]$/T,kt=/^\d+\/\d+$/,Dt=new Set(["px","full","screen"]),At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|T|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)We-?((\d+)?\.?(\d+)[a-z]+|0)/,Lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>J(e)||Dt.has(e)||kt.test(e),W=e=>q(e,"length",Ut),J=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>q(e,"number",J),ee=e=>!!e&&Number.isInteger(Number(e)),Mt=e=>e.endsWith("%")&&J(e.slice(0,-1)),d=e=>Ee.test(e),H=e=>At.test(e),Et=new Set(["length","size","percentage"]),Bt=e=>q(e,Et,Be),Vt=e=>q(e,"position",Be),Gt=new Set(["image","url"]),Wt=e=>q(e,Gt,Ot),Ht=e=>q(e,"",Ft),te=()=>!0,q=(e,t,r)=>{let o=Ee.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ut=e=>Tt.test(e)&&!zt.test(e),Be=()=>!1,Ft=e=>It.test(e),Ot=e=>Lt.test(e);var _t=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),o=b("brightness"),l=b("borderColor"),s=b("borderRadius"),c=b("borderSpacing"),a=b("borderWidth"),v=b("contrast"),y=b("grayscale"),P=b("hueRotate"),D=b("invert"),N=b("gap"),C=b("gradientColorStops"),g=b("gradientColorStopPositions"),w=b("inset"),u=b("margin"),R=b("opacity"),k=b("padding"),V=b("saturate"),G=b("scale"),O=b("sepia"),Q=b("skew"),Z=b("space"),n=b("translate"),h=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",d,t],f=()=>[d,t],Ce=()=>["",E,W],ae=()=>["auto",J,d],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ie=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",d],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[J,d];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[E,W],blur:["none","",H,d],brightness:M(),borderColor:[e],borderRadius:["none","","full",H,d],borderSpacing:f(),borderWidth:Ce(),contrast:M(),grayscale:Y(),hueRotate:M(),invert:Y(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[Mt,W],inset:$(),margin:$(),opacity:M(),padding:f(),saturate:M(),scale:M(),sepia:Y(),skew:M(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"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:[...Ne(),d]}],overflow:[{overflow:I()}],"overflow-T":[{"overflow-T":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:h()}],"overscroll-T":[{"overscroll-T":h()}],"overscroll-y":[{"overscroll-y":h()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-T":[{"inset-T":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ee,d]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ee,d]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",ee,d]},d]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[ee,d]},d]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[N]}],"gap-T":[{"gap-T":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-T":[{"space-T":[Z]}],"space-T-reverse":["space-T-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,W]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ue]}],"font-family":[{font:[te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",J,ue]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",E,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",E,W]}],"underline-offset":[{"underline-offset":["auto",E,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","T","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-T":[{"border-T":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...ie(),"hidden"]}],"divide-T":[{"divide-T":[a]}],"divide-T-reverse":["divide-T-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:ie()}],"border-color":[{border:[l]}],"border-color-T":[{"border-T":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ie()]}],"outline-offset":[{"outline-offset":[E,d]}],"outline-w":[{outline:[E,W]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[E,W]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Ht]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",H,d]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[P]}],invert:[{invert:[D]}],saturate:[{saturate:[V]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P]}],"backdrop-invert":[{"backdrop-invert":[D]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-T":[{"border-spacing-T":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-T":[{"scale-T":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[ee,d]}],"translate-T":[{"translate-T":[n]}],"translate-y":[{"translate-y":[n]}],"skew-T":[{"skew-T":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","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",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","T",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","T","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-T":[{"touch-pan":["T","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[E,W,ue]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-T","overflow-y"],overscroll:["overscroll-T","overscroll-y"],inset:["inset-T","inset-y","start","end","top","right","bottom","left"],"inset-T":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-T","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-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-T","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-T":["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-T":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-T","touch-y","touch-pz"],"touch-T":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ve=Nt(_t);function m(...e){return Ve((0,Ge.clsx)(e))}var T=require("react/jsx-runtime"),He=S.Root;var jt=S.Portal;var Ue=re.forwardRef(({className:e,...t},r)=>(0,T.jsx)(S.Overlay,{ref:r,className:m("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ue.displayName=S.Overlay.displayName;var be=re.forwardRef(({className:e,children:t,...r},o)=>(0,T.jsxs)(jt,{children:[(0,T.jsx)(Ue,{}),(0,T.jsxs)(S.Content,{ref:o,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-T-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,(0,T.jsxs)(S.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,T.jsx)(We.X,{className:"h-4 w-4"}),(0,T.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));be.displayName=S.Content.displayName;var ve=({className:e,...t})=>(0,T.jsx)("div",{className:m("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ve.displayName="DialogHeader";var $t=({className:e,...t})=>(0,T.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-T-2",e),...t});$t.displayName="DialogFooter";var he=re.forwardRef(({className:e,...t},r)=>(0,T.jsx)(S.Title,{ref:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));he.displayName=S.Title.displayName;var Jt=re.forwardRef(({className:e,...t},r)=>(0,T.jsx)(S.Description,{ref:r,className:m("text-sm text-muted-foreground",e),...t}));Jt.displayName=S.Description.displayName;var Fe=require("@radix-ui/react-slot"),Oe=require("class-variance-authority"),_e=A(require("react")),qt=(0,Oe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),X=_e.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...l},s)=>(0,T.jsx)(e?Fe.Slot:"button",{className:m(qt({className:t,size:r,variant:o})),ref:s,...l}));X.displayName="Button";var $e=A(require("react"));var K=$e.forwardRef(({className:e,type:t,...r},o)=>(0,T.jsx)("input",{type:t,className:m("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));K.displayName="Input";var qe=A(require("react")),ye=A(require("@radix-ui/react-label"));var Xt=(0,Oe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),B=qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)(ye.Root,{ref:r,className:m(Xt(),e),...t}));B.displayName=ye.Root.displayName;var Qe=A(require("react")),xe=Qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)("textarea",{className:m("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));xe.displayName="Textarea";var p=A(require("@radix-ui/react-select")),U=A(require("react")),we=p.Root;var Se=p.Value,se=U.forwardRef(({children:e,className:t,...r},o)=>(0,T.jsxs)(p.Trigger,{className:m("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,T.jsx)(p.Icon,{asChild:!0,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));se.displayName=p.Trigger.displayName;var Ye=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=p.ScrollUpButton.displayName;var et=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4"})}));et.displayName=p.ScrollDownButton.displayName;var le=U.forwardRef(({children:e,className:t,position:r="popper",...o},l)=>(0,T.jsx)(p.Portal,{children:(0,T.jsxs)(p.Content,{className:m("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-T-1 data-[side=right]:translate-T-1 data-[side=top]:-translate-y-1",t),position:r,ref:l,...o,children:[(0,T.jsx)(Ye,{}),(0,T.jsx)(p.Viewport,{className:m("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,T.jsx)(et,{})]})}));le.displayName=p.Content.displayName;var Kt=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Kt.displayName=p.Label.displayName;var ce=U.forwardRef(({children:e,className:t,...r},o)=>(0,T.jsxs)(p.Item,{className:m("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,T.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,T.jsx)(p.ItemIndicator,{children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}),(0,T.jsx)(p.ItemText,{children:e})]}));ce.displayName=p.Item.displayName;var Qt=U.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Qt.displayName=p.Separator.displayName;var oe=A(require("@radix-ui/react-checkbox")),rt=A(require("react")),Pe=rt.forwardRef(({className:e,...t},r)=>(0,T.jsx)(oe.Root,{className:m("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,T.jsx)(oe.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}));Pe.displayName=oe.Root.displayName;var Zt=(0,Oe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function at({className:e,variant:t,...r}){return(0,T.jsx)("div",{className:m(Zt({variant:t}),e),...r})}var Re=A(require("react")),z=A(require("@radix-ui/react-scroll-area"));var pe=Re.forwardRef(({className:e,children:t,...r},o)=>(0,T.jsxs)(z.Root,{ref:o,className:m("relative overflow-hidden",e),...r,children:[(0,T.jsx)(z.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,T.jsx)(nt,{}),(0,T.jsx)(z.Corner,{})]}));pe.displayName=z.Root.displayName;var nt=Re.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,T.jsx)(z.ScrollAreaScrollbar,{ref:o,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,T.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));nt.displayName=z.ScrollAreaScrollbar.displayName;function Yt({deal:e,users:t,customer:r,categories:o,onClose:l,onSave:s,onAddComment:c}){var O,Q,Z;let[a,v]=(0,j.useState)({...e,value:e.value||0}),[y,P]=(0,j.useState)(""),[D,N]=(0,j.useState)(!1),[C,g]=(0,j.useState)(null);(0,j.useEffect)(()=>{N(JSON.stringify(e)!==JSON.stringify(a))},[e,a]);let w=()=>{s(a),N(!1),g(null)},u=(n,h)=>{v(I=>({...I,[n]:h}))},R=n=>{let h=a.categories.includes(n)?a.categories.filter(I=>I!==n):[...a.categories,n];u("categories",h)},k=()=>{y.trim()&&(c({id:Date.now().toString(),text:y,timestamp:new Date().toISOString()}),v(n=>({...n,comments:[...n.comments,{id:"0",text:y,timestamp:new Date().toISOString()}]})),P(""))},V=n=>{switch(n){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"}},G=(n,h,I)=>{let $=C===n;return(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:h}),(0,T.jsxs)("div",{className:"flex items-center space-T-2",children:[I,$?(0,T.jsx)(K,{value:a[n],onChange:f=>u(n,f.target.value),onBlur:()=>g(null),autoFocus:!0}):(0,T.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>g(n),children:a[n]}),!$&&(0,T.jsx)(X,{variant:"ghost",size:"sm",onClick:()=>g(n),children:(0,T.jsx)(We.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,T.jsx)(He,{open:!0,children:(0,T.jsxs)(be,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,T.jsxs)(ve,{className:"flex flex-row items-center justify-between",children:[(0,T.jsx)(he,{className:"text-2xl font-bold",children:r==null?void 0:r.name}),(0,T.jsxs)("div",{className:"flex space-T-2",children:[(0,T.jsx)(X,{variant:"outline",onClick:l,children:"Close"}),(0,T.jsxs)(X,{onClick:w,disabled:!D,children:[(0,T.jsx)(We.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,T.jsxs)(pe,{className:"flex-grow pr-4",children:[(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,T.jsx)("div",{className:"grid gap-2",children:C==="value"?(0,T.jsx)(K,{type:"number",value:a.value,onChange:n=>u("value",Number(n.target.value)),onBlur:()=>g(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,T.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("value"),children:["\xA3",(O=a.value)==null?void 0:O.toLocaleString()]})}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),C==="assignee"?(0,T.jsxs)(we,{value:((Z=(Q=a==null?void 0:a.assignee)==null?void 0:Q.id)==null?void 0:Z.toString())||"",onValueChange:n=>u("assignee",n),children:[(0,T.jsx)(se,{children:(0,T.jsx)(Se,{placeholder:"Select assignee"})}),(0,T.jsx)(le,{children:t&&t.map(n=>{var h;return(0,T.jsx)(ce,{value:((h=n==null?void 0:n.id)==null?void 0:h.toString())||"",children:n.name},n.id)})})]}):(0,T.jsxs)("div",{className:"flex items-center space-T-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("assignee"),children:[(0,T.jsx)(We.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:a.assignee.name})]})]}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),C==="closureDate"?(0,T.jsx)(K,{type:"date",value:a.closureDate.split("T")[0],onChange:n=>u("closureDate",n.target.value),onBlur:()=>g(null),autoFocus:!0}):(0,T.jsxs)("div",{className:"flex items-center space-T-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("closureDate"),children:[(0,T.jsx)(We.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:new Date(a.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,T.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Description"}),C==="description"?(0,T.jsx)(xe,{value:a.description,onChange:n=>u("description",n.target.value),onBlur:()=>g(null),className:"min-h-[100px]",autoFocus:!0}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>g("description"),children:a.description})]})}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Status"}),C==="status"?(0,T.jsxs)(we,{value:a.status,onValueChange:n=>{u("status",n),g(null)},children:[(0,T.jsx)(se,{children:(0,T.jsx)(Se,{placeholder:"Select status"})}),(0,T.jsx)(le,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(n=>(0,T.jsx)(ce,{value:n,children:n},n))})]}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("status"),children:a.status})]}),(0,T.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Categories"}),C==="categories"?(0,T.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(n=>(0,T.jsxs)("div",{className:"flex items-center space-T-2",children:[(0,T.jsx)(Pe,{id:n.id,checked:a.categories.includes(n.id),onCheckedChange:()=>R(n.id)}),(0,T.jsx)("label",{htmlFor:n.id,className:`text-sm font-medium ${V(n.type)} px-2 py-1 rounded`,children:n.name})]},n.id))}):(0,T.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>g("categories"),children:a.categories.map(n=>{let h=o.find(I=>I.id===n);return h?(0,T.jsx)(at,{variant:"secondary",className:V(h.type),children:h.name},h.id):null})})]})]}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(B,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,T.jsx)(pe,{className:"h-[200px] overflow-y-auto",children:(0,T.jsx)("div",{className:"space-y-2",children:a.comments.slice().sort((n,h)=>new Date(h.timestamp).getTime()-new Date(n.timestamp).getTime()).map(n=>{var h;return(0,T.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,T.jsx)("p",{className:"text-sm text-gray-700",children:n.text}),(0,T.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(h=n==null?void 0:n.author)==null?void 0:h.name," - ",new Date(n.timestamp).toLocaleString()]})]},n.id)})})}),(0,T.jsxs)("div",{className:"flex mt-2",children:[(0,T.jsx)(K,{value:y,onChange:n=>P(n.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,T.jsxs)(X,{onClick:k,className:"ml-2",children:[(0,T.jsx)(We.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,T.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(a.updatedAt).toLocaleString()]})]})]})]})})}0&&(module.exports={DealDetails});
@@ -1 +1 @@
1
- import{a}from"../../chunk-4NETKTTT.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealDetails};
1
+ import{a}from"../../chunk-J4SEDIHB.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealDetails};