cortex-react-components 1.41.0 → 1.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/{chunk-ZMWHENYB.mjs → chunk-373YJLIH.mjs} +1 -1
  2. package/dist/{chunk-HN4TEDPU.mjs → chunk-3PC5BLK7.mjs} +1 -1
  3. package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
  4. package/dist/chunk-4RKYG7LK.mjs +1 -0
  5. package/dist/{chunk-UZURFRC5.mjs → chunk-62YZZSOX.mjs} +1 -1
  6. package/dist/{chunk-4W5BMCYE.mjs → chunk-CNCPREWR.mjs} +1 -1
  7. package/dist/{chunk-N5ZYYMHK.mjs → chunk-CTCV3L4B.mjs} +1 -1
  8. package/dist/{chunk-7LTMHU33.mjs → chunk-ET5WFKM7.mjs} +1 -1
  9. package/dist/chunk-F2YN7SED.mjs +1 -0
  10. package/dist/{chunk-7HPRTCYO.mjs → chunk-FBFDZOP6.mjs} +1 -1
  11. package/dist/{chunk-KDVFPMCS.mjs → chunk-HAFP6IMI.mjs} +1 -1
  12. package/dist/{chunk-PN4KVV3W.mjs → chunk-HRZRAS6Z.mjs} +1 -1
  13. package/dist/{chunk-NLDFFHUN.mjs → chunk-HTO3HNQS.mjs} +1 -1
  14. package/dist/{chunk-Y6CZVVJF.mjs → chunk-HUN2X4VH.mjs} +1 -1
  15. package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
  16. package/dist/{chunk-K72QGFAZ.mjs → chunk-IE5X3XS7.mjs} +1 -1
  17. package/dist/{chunk-QL74DMZ3.mjs → chunk-IMAQJ7N3.mjs} +1 -1
  18. package/dist/{chunk-AFA6LBJ4.mjs → chunk-IPHHUHS3.mjs} +1 -1
  19. package/dist/{chunk-TYPDCZRR.mjs → chunk-IS5OUEJJ.mjs} +1 -1
  20. package/dist/chunk-J3QZZ62Z.mjs +4 -0
  21. package/dist/{chunk-SZ66VQRH.mjs → chunk-J7TRHWRM.mjs} +1 -1
  22. package/dist/{chunk-UDRX6THN.mjs → chunk-JK3XF6LP.mjs} +1 -1
  23. package/dist/{chunk-TRA7DKAI.mjs → chunk-JM6ZXLBG.mjs} +1 -1
  24. package/dist/{chunk-RTADGEQM.mjs → chunk-JYZW3G3N.mjs} +1 -1
  25. package/dist/{chunk-ULENDYCU.mjs → chunk-L44KSGUG.mjs} +1 -1
  26. package/dist/{chunk-4VDJWCUB.mjs → chunk-LBKMUSVR.mjs} +1 -1
  27. package/dist/{chunk-TV7ZUNYO.mjs → chunk-LVUWQ35N.mjs} +1 -1
  28. package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
  29. package/dist/chunk-MP3J7UPZ.mjs +1 -0
  30. package/dist/{chunk-JHXTO4RC.mjs → chunk-PARYRNXP.mjs} +1 -1
  31. package/dist/{chunk-5PALJRLI.mjs → chunk-SJWN6J3F.mjs} +1 -1
  32. package/dist/{chunk-SFVSEAAD.mjs → chunk-TJ6J3OQZ.mjs} +1 -1
  33. package/dist/{chunk-SAHUDAL7.mjs → chunk-UDVFDGKM.mjs} +1 -1
  34. package/dist/{chunk-PVRWMAHW.mjs → chunk-UK4IPFAO.mjs} +1 -1
  35. package/dist/chunk-V4CUPKLW.mjs +4 -0
  36. package/dist/{chunk-DJ5BLICX.mjs → chunk-VP7B5S7N.mjs} +1 -1
  37. package/dist/{chunk-QMVHDZ5J.mjs → chunk-Y6QUDCQM.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/CRMPage.js +1 -1
  49. package/dist/components/CRM/CRMPage.mjs +1 -1
  50. package/dist/components/CRM/CRMPage.stories.js +35 -35
  51. package/dist/components/CRM/CRMPage.stories.mjs +1 -1
  52. package/dist/components/CRM/DealCard.js +1 -1
  53. package/dist/components/CRM/DealCard.mjs +1 -1
  54. package/dist/components/CRM/DealCard.stories.js +1 -1
  55. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  56. package/dist/components/CRM/DealDetails.js +1 -1
  57. package/dist/components/CRM/DealDetails.mjs +1 -1
  58. package/dist/components/CRM/KanbanBoard.js +1 -1
  59. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  60. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  61. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  62. package/dist/components/CRM/KanbanColumn.js +1 -1
  63. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  64. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  65. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  66. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  67. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  68. package/dist/components/HeaderFooter/index.mjs +1 -1
  69. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  70. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  71. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  72. package/dist/components/Heros/PostHero/index.mjs +1 -1
  73. package/dist/components/Heros/RenderHero.mjs +1 -1
  74. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  75. package/dist/components/Heros/index.mjs +1 -1
  76. package/dist/components/Holidays/HolidayGrid.js +1 -1
  77. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  78. package/dist/components/Holidays/HolidayGrid.stories.js +1 -1
  79. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  80. package/dist/components/Holidays/HolidayTracker.js +1 -1
  81. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  82. package/dist/components/Holidays/HolidayTracker.stories.js +1 -1
  83. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  84. package/dist/components/Holidays/index.js +1 -1
  85. package/dist/components/Holidays/index.mjs +1 -1
  86. package/dist/components/Layouts/BlogList.mjs +1 -1
  87. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  88. package/dist/components/Layouts/SlideShow.mjs +1 -1
  89. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  90. package/dist/components/Layouts/index.mjs +1 -1
  91. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  92. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  93. package/dist/components/Menus/SidebarRight.mjs +1 -1
  94. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  95. package/dist/components/Menus/index.mjs +1 -1
  96. package/dist/components/Payload/Card/index.mjs +1 -1
  97. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  98. package/dist/components/Payload/Media/index.mjs +1 -1
  99. package/dist/components/Payload/RichText/index.mjs +1 -1
  100. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  101. package/dist/components/Payload/RichText.stories.mjs +1 -1
  102. package/dist/components/Payload/index.mjs +1 -1
  103. package/dist/components/index.js +6 -6
  104. package/dist/components/index.mjs +1 -1
  105. package/dist/components/ui/index.mjs +1 -1
  106. package/dist/components/ui/sidebar.mjs +1 -1
  107. package/dist/globals.css +1 -1
  108. package/dist/index.js +1 -1
  109. package/dist/index.mjs +1 -1
  110. package/dist/metafile-cjs.json +1 -1
  111. package/dist/metafile-esm.json +1 -1
  112. package/dist/pages/Blog.mjs +1 -1
  113. package/dist/pages/Blog.stories.mjs +1 -1
  114. package/dist/pages/Documentation.mjs +1 -1
  115. package/dist/pages/Documentation.stories.mjs +1 -1
  116. package/dist/pages/IndexPage.mjs +1 -1
  117. package/dist/pages/IndexPage.stories.mjs +1 -1
  118. package/dist/pages/Intranet.mjs +1 -1
  119. package/dist/pages/Intranet.stories.mjs +1 -1
  120. package/dist/pages/LandingPage.mjs +1 -1
  121. package/dist/pages/LandingPage.stories.mjs +1 -1
  122. package/dist/pages/Page.mjs +1 -1
  123. package/dist/pages/Page.stories.mjs +1 -1
  124. package/dist/pages/Publish.mjs +1 -1
  125. package/dist/pages/Publish.stories.mjs +1 -1
  126. package/dist/pages/Website.mjs +1 -1
  127. package/dist/pages/Website.stories.mjs +1 -1
  128. package/dist/sections/AboutSection.mjs +1 -1
  129. package/dist/sections/AboutSection.stories.mjs +1 -1
  130. package/dist/sections/BlogDetail.mjs +1 -1
  131. package/dist/sections/BlogDetail.stories.mjs +1 -1
  132. package/dist/sections/BlogListSection.mjs +1 -1
  133. package/dist/sections/BlogListSection.stories.mjs +1 -1
  134. package/dist/sections/ContactSection.mjs +1 -1
  135. package/dist/sections/ContactSection.stories.mjs +1 -1
  136. package/dist/sections/PricingSection.mjs +1 -1
  137. package/dist/sections/PricingSection.stories.mjs +1 -1
  138. package/dist/sections/index.mjs +1 -1
  139. package/package.json +1 -1
  140. package/dist/chunk-37DPIDHA.mjs +0 -1
  141. package/dist/chunk-AEDQILUE.mjs +0 -1
  142. package/dist/chunk-FJUYTPO2.mjs +0 -4
  143. package/dist/chunk-TYFBZ3Q7.mjs +0 -1
  144. package/dist/chunk-YW54CUCP.mjs +0 -4
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var Tt=Object.create;var ce=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Lt=Object.getOwnPropertyNames;var Mt=Object.getPrototypeOf,It=Object.prototype.hasOwnProperty;var Et=(e,t)=>{for(var o in t)ce(e,o,{get:t[o],enumerable:!0})},_e=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Lt(t))!It.call(e,a)&&a!==o&&ce(e,a,{get:()=>t[a],enumerable:!(r=At(t,a))||r.enumerable});return e};var D=(e,t,o)=>(o=e!=null?Tt(Mt(e)):{},_e(t||!e||!e.__esModule?ce(o,"default",{value:e,enumerable:!0}):o,e)),zt=e=>_e(ce({},"__esModule",{value:!0}),e);var Do={};Et(Do,{Default:()=>kt,EmptyColumn:()=>No,default:()=>Ro});module.exports=zt(Do);var Ye=require("clsx");var Pe="-",Ht=e=>{let t=Vt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(Pe);return s[0]===""&&s.length!==1&&s.shift(),Ke(s,t)||Bt(i)},getConflictingClassGroupIds:(i,s)=>{let g=o[i]||[];return s&&r[i]?[...g,...r[i]]:g}}},Ke=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?Ke(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(Pe);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},je=/^\[(.+)\]$/,Bt=e=>{if(je.test(e)){let t=je.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Vt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Ft(Object.entries(e.classGroups),o).forEach(([n,i])=>{Se(i,r,n,t)}),r},Se=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:$e(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(Wt(a)){Se(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,i])=>{Se(i,$e(t,n),o,r)})})},$e=(e,t)=>{let o=e;return t.split(Pe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Wt=e=>e.isThemeGetter,Ft=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[o,a]}):e,Gt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,i)=>{o.set(n,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let i=o.get(n);if(i!==void 0)return i;if((i=r.get(n))!==void 0)return a(n,i),i},set(n,i){o.has(n)?o.set(n,i):a(n,i)}}},Qe="!",Ot=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,i=s=>{let g=[],C=0,y=0,c;for(let h=0;h<s.length;h++){let R=s[h];if(C===0){if(R===a&&(r||s.slice(h,h+n)===t)){g.push(s.slice(y,h)),y=h+n;continue}if(R==="/"){c=h;continue}}R==="["?C++:R==="]"&&C--}let u=g.length===0?s:s.substring(y),N=u.startsWith(Qe),L=N?u.substring(1):u,P=c&&c>y?c-y:void 0;return{modifiers:g,hasImportantModifier:N,baseClassName:L,maybePostfixModifierPosition:P}};return o?s=>o({className:s,parseClassName:i}):i},Ut=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},_t=e=>({cache:Gt(e.cacheSize),parseClassName:Ot(e),...Ht(e)}),jt=/\s+/,$t=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(jt),s="";for(let g=i.length-1;g>=0;g-=1){let C=i[g],{modifiers:y,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:N}=o(C),L=!!N,P=r(L?u.substring(0,N):u);if(!P){if(!L){s=C+(s.length>0?" "+s:s);continue}if(P=r(u),!P){s=C+(s.length>0?" "+s:s);continue}L=!1}let h=Ut(y).join(":"),R=c?h+Qe:h,M=R+P;if(n.includes(M))continue;n.push(M);let J=a(P,L);for(let O=0;O<J.length;++O){let se=J[O];n.push(R+se)}s=C+(s.length>0?" "+s:s)}return s};function Kt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Je(t))&&(r&&(r+=" "),r+=o);return r}var Je=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Je(e[r]))&&(o&&(o+=" "),o+=t);return o};function Qt(e,...t){let o,r,a,n=i;function i(g){let C=t.reduce((y,c)=>c(y),e());return o=_t(C),r=o.cache.get,a=o.cache.set,n=s,s(g)}function s(g){let C=r(g);if(C)return C;let y=$t(g,o);return a(g,y),y}return function(){return n(Kt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ze=/^\[(?:([a-z-]+):)?(.+)\]$/i,Jt=/^\d+\/\d+$/,Zt=new Set(["px","full","screen"]),qt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xt=/\d+(%|px|r?em|[sdl]?rt([hwib]|min|max)|tt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(rt|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)rt-?((\d+)?\.?(\d+)[a-z]+|0)/,to=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>$(e)||Zt.has(e)||Jt.test(e),H=e=>K(e,"length",co),$=e=>!!e&&!Number.isNaN(Number(e)),Ce=e=>K(e,"number",$),q=e=>!!e&&Number.isInteger(Number(e)),oo=e=>e.endsWith("%")&&$(e.slice(0,-1)),d=e=>Ze.test(e),B=e=>qt.test(e),ro=new Set(["length","size","percentage"]),ao=e=>K(e,ro,qe),io=e=>K(e,"position",qe),so=new Set(["image","url"]),no=e=>K(e,so,po),lo=e=>K(e,"",mo),X=()=>!0,K=(e,t,o)=>{let r=Ze.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},co=e=>Xt.test(e)&&!Yt.test(e),qe=()=>!1,mo=e=>eo.test(e),po=e=>to.test(e);var uo=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),a=f("borderColor"),n=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),g=f("contrast"),C=f("grayscale"),y=f("hueRotate"),c=f("invert"),u=f("gap"),N=f("gradientColorStops"),L=f("gradientColorStopPositions"),P=f("inset"),h=f("margin"),R=f("opacity"),M=f("padding"),J=f("saturate"),O=f("scale"),se=f("sepia"),Be=f("skew"),Ve=f("space"),We=f("translate"),ye=()=>["auto","contain","none"],he=()=>["auto","hidden","clip","visible","scroll"],xe=()=>["auto",d,t],b=()=>[d,t],Fe=()=>["",z,H],ne=()=>["auto",$,d],Ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",d],Ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[$,d];return{cacheSize:500,separator:":",theme:{colors:[X],spacing:[z,H],blur:["none","",B,d],brightness:E(),borderColor:[e],borderRadius:["none","","full",B,d],borderSpacing:b(),borderWidth:Fe(),contrast:E(),grayscale:Z(),hueRotate:E(),invert:Z(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[oo,H],inset:xe(),margin:xe(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:Z(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":Ue()}],"break-before":[{"break-before":Ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ge(),d]}],overflow:[{overflow:he()}],"overflow-rt":[{"overflow-rt":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:ye()}],"overscroll-rt":[{"overscroll-rt":ye()}],"overscroll-y":[{"overscroll-y":ye()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-rt":[{"inset-rt":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",q,d]}],basis:[{basis:xe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",q,d]}],"grid-cols":[{"grid-cols":[X]}],"col-start-end":[{col:["auto",{span:["full",q,d]},d]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[X]}],"row-start-end":[{row:["auto",{span:[q,d]},d]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[u]}],"gap-rt":[{"gap-rt":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...we()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...we(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...we(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],tt:[{tt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-rt":[{"space-rt":[Ve]}],"space-rt-reverse":["space-rt-reverse"],"space-y":[{"space-y":[Ve]}],"space-y-reverse":["space-y-reverse"],rt:[{rt:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-rt":[{"min-rt":[d,t,"min","max","fit"]}],"max-rt":[{"max-rt":[d,t,"none","full","min","max","fit","prose",{screen:[B]},B]}],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",B,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ce]}],"font-family":[{font:[X]}],"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",$,Ce]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,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:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,H]}],"underline-offset":[{"underline-offset":["auto",z,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ge(),io]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","rt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ao]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","rt","tl"]},no]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-rt":[{"rounded-rt":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-rt":[{border:[s]}],"border-rt-rt":[{"border-rt":[s]}],"border-rt-y":[{"border-y":[s]}],"border-rt-s":[{"border-s":[s]}],"border-rt-e":[{"border-e":[s]}],"border-rt-t":[{"border-t":[s]}],"border-rt-r":[{"border-r":[s]}],"border-rt-b":[{"border-b":[s]}],"border-rt-rt":[{"border-rt":[s]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...le(),"hidden"]}],"divide-rt":[{"divide-rt":[s]}],"divide-rt-reverse":["divide-rt-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-rt":[{"border-rt":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-rt":[{"border-rt":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[z,d]}],"outline-rt":[{outline:[z,H]}],"outline-color":[{outline:[e]}],"ring-rt":[{ring:Fe()}],"ring-rt-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-rt":[{"ring-offset":[z,H]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,lo]}],"shadow-color":[{shadow:[X]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",B,d]}],grayscale:[{grayscale:[C]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[c]}],saturate:[{saturate:[J]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[J]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-rt":[{"border-spacing-rt":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-rt":[{"scale-rt":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[q,d]}],"translate-rt":[{"translate-rt":[We]}],"translate-y":[{"translate-y":[We]}],"skew-rt":[{"skew-rt":[Be]}],"skew-y":[{"skew-y":[Be]}],"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","rt-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","rt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-tt":[{"scroll-tt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","rt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-rt":[{"touch-pan":["rt","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-rt":[{stroke:[z,H,Ce]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-rt","overflow-y"],overscroll:["overscroll-rt","overscroll-y"],inset:["inset-rt","inset-y","start","end","top","right","bottom","left"],"inset-rt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-rt","gap-y"],p:["px","py","ps","pe","tt","pr","pb","pl"],px:["pr","pl"],py:["tt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["rt","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-rt","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-rt":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-rt","border-spacing-y"],"border-rt":["border-rt-s","border-rt-e","border-rt-t","border-rt-r","border-rt-b","border-rt-rt"],"border-rt-rt":["border-rt-r","border-rt-rt"],"border-rt-y":["border-rt-t","border-rt-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-rt"],"border-color-rt":["border-color-r","border-color-rt"],"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-tt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-tt","scroll-pb"],touch:["touch-rt","touch-y","touch-pz"],"touch-rt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Xe=Qt(uo);function m(...e){return Xe((0,Ye.clsx)(e))}var et=require("@radix-ui/react-slot"),tt=require("class-variance-authority"),ot=D(require("react")),rt=require("react/jsx-runtime"),fo=(0,tt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 rt-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-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"}}}),V=ot.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},n)=>(0,rt.jsx)(e?et.Slot:"button",{className:m(fo({className:t,size:o,variant:r})),ref:n,...a}));V.displayName="Button";var Y=D(require("react")),S=D(require("@radix-ui/react-dialog")),at=require("lucide-react");var de=S.Root,me=S.Trigger,go=S.Portal;var it=Y.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(S.Overlay,{ref:o,className:m("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));it.displayName=S.Overlay.displayName;var ee=Y.forwardRef(({className:e,children:t,...o},r)=>(0,rt.jsxs)(go,{children:[(0,rt.jsx)(it,{}),(0,rt.jsxs)(S.Content,{ref:r,className:m("fixed left-[50%] top-[50%] z-50 grid rt-full max-rt-lg translate-rt-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,rt.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,rt.jsx)(at.X,{className:"h-4 rt-4"}),(0,rt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ee.displayName=S.Content.displayName;var te=({className:e,...t})=>(0,rt.jsx)("div",{className:m("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});te.displayName="DialogHeader";var bo=({className:e,...t})=>(0,rt.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-rt-2",e),...t});bo.displayName="DialogFooter";var oe=Y.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(S.Title,{ref:o,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));oe.displayName=S.Title.displayName;var vo=Y.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(S.Description,{ref:o,className:m("text-sm text-muted-foreground",e),...t}));vo.displayName=S.Description.displayName;var U=D(require("react"));var Re=U.forwardRef(({className:e,...t},o)=>(0,rt.jsx)("div",{ref:o,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Re.displayName="Card";var Ne=U.forwardRef(({className:e,...t},o)=>(0,rt.jsx)("div",{ref:o,className:m("flex flex-col space-y-1.5 p-6",e),...t}));Ne.displayName="CardHeader";var De=U.forwardRef(({className:e,...t},o)=>(0,rt.jsx)("div",{ref:o,className:m("font-semibold leading-none tracking-tight",e),...t}));De.displayName="CardTitle";var yo=U.forwardRef(({className:e,...t},o)=>(0,rt.jsx)("div",{ref:o,className:m("text-sm text-muted-foreground",e),...t}));yo.displayName="CardDescription";var ke=U.forwardRef(({className:e,...t},o)=>(0,rt.jsx)("div",{ref:o,className:m("p-6 tt-0",e),...t}));ke.displayName="CardContent";var ho=U.forwardRef(({className:e,...t},o)=>(0,rt.jsx)("div",{ref:o,className:m("flex items-center p-6 tt-0",e),...t}));ho.displayName="CardFooter";var xo=(0,tt.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 Te({className:e,variant:t,...o}){return(0,rt.jsx)("div",{className:m(xo({variant:t}),e),...o})}function lt({deal:e,customer:t,categories:o,onClick:r}){let a=o.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,rt.jsxs)(Re,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-rt-4 border-rt-accent",onClick:r,children:[(0,rt.jsxs)(Ne,{className:"pb-2",children:[(0,rt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,rt.jsx)(De,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name}),t&&(0,rt.jsx)(Te,{variant:t.active?"default":"secondary",children:t.active?"Active":"Inactive"})]}),(0,rt.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,rt.jsxs)(ke,{children:[(0,rt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,rt.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,rt.jsx)(at.UserIcon,{className:"rt-4 h-4 mr-1"}),(0,rt.jsx)("span",{children:e.assignee})]}),(0,rt.jsxs)("div",{className:"flex items-center text-lg font-bold text-green-600",children:[(0,rt.jsx)(at.PoundSterling,{className:"rt-5 h-5 mr-1"}),(0,rt.jsx)("span",{children:e.value.toLocaleString()})]})]}),(0,rt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,rt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,rt.jsx)(at.CalendarIcon,{className:"rt-3 h-3 mr-1"}),(0,rt.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]}),a&&(0,rt.jsx)(Te,{variant:"secondary",className:"bg-blue-100 text-blue-800",children:a.name})]})]})]})}var ve=require("react-beautiful-dnd");var be=require("react");var ct=D(require("react"));var W=ct.forwardRef(({className:e,type:t,...o},r)=>(0,rt.jsx)("input",{type:t,className:m("flex h-9 rt-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));W.displayName="Input";var mt=D(require("react")),Ae=D(require("@radix-ui/react-label"));var wo=(0,tt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),k=mt.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(Ae.Root,{ref:o,className:m(wo(),e),...t}));k.displayName=Ae.Root.displayName;var p=D(require("@radix-ui/react-select")),F=D(require("react")),Le=p.Root;var Me=p.Value,pe=F.forwardRef(({children:e,className:t,...o},r)=>(0,rt.jsxs)(p.Trigger,{className:m("flex h-10 rt-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,rt.jsx)(p.Icon,{asChild:!0,children:(0,rt.jsx)(at.ChevronDown,{className:"h-4 rt-4 opacity-50"})})]}));pe.displayName=p.Trigger.displayName;var ft=F.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,rt.jsx)(at.ChevronUp,{className:"h-4 rt-4"})}));ft.displayName=p.ScrollUpButton.displayName;var gt=F.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,rt.jsx)(at.ChevronDown,{className:"h-4 rt-4"})}));gt.displayName=p.ScrollDownButton.displayName;var ue=F.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,rt.jsx)(p.Portal,{children:(0,rt.jsxs)(p.Content,{className:m("relative z-50 max-h-96 min-rt-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-rt-1 data-[side=right]:translate-rt-1 data-[side=top]:-translate-y-1",t),position:o,ref:a,...r,children:[(0,rt.jsx)(ft,{}),(0,rt.jsx)(p.Viewport,{className:m("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] rt-full min-rt-[var(--radix-select-trigger-width)]"),children:e}),(0,rt.jsx)(gt,{})]})}));ue.displayName=p.Content.displayName;var Co=F.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Co.displayName=p.Label.displayName;var fe=F.forwardRef(({children:e,className:t,...o},r)=>(0,rt.jsxs)(p.Item,{className:m("relative flex rt-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,rt.jsx)("span",{className:"absolute left-2 flex h-3.5 rt-3.5 items-center justify-center",children:(0,rt.jsx)(p.ItemIndicator,{children:(0,rt.jsx)(at.Check,{className:"h-4 rt-4"})})}),(0,rt.jsx)(p.ItemText,{children:e})]}));fe.displayName=p.Item.displayName;var So=F.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));So.displayName=p.Separator.displayName;var re=D(require("@radix-ui/react-checkbox")),vt=D(require("react")),ae=vt.forwardRef(({className:e,...t},o)=>(0,rt.jsx)(re.Root,{className:m("peer h-4 rt-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,rt.jsx)(re.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,rt.jsx)(at.Check,{className:"h-4 rt-4"})})}));ae.displayName=re.Root.displayName;var yt=D(require("react")),ie=yt.forwardRef(({className:e,...t},o)=>(0,rt.jsx)("textarea",{className:m("flex min-h-[80px] rt-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));ie.displayName="Textarea";var Ie=D(require("react")),I=D(require("@radix-ui/react-scroll-area"));var Ee=Ie.forwardRef(({className:e,children:t,...o},r)=>(0,rt.jsxs)(I.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,rt.jsx)(I.Viewport,{className:"h-full rt-full rounded-[inherit]",children:t}),(0,rt.jsx)(xt,{}),(0,rt.jsx)(I.Corner,{})]}));Ee.displayName=I.Root.displayName;var xt=Ie.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,rt.jsx)(I.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"h-full rt-2.5 border-rt border-rt-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,rt.jsx)(I.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));xt.displayName=I.ScrollAreaScrollbar.displayName;function ze({onSubmit:e}){let[t,o]=(0,be.useState)({name:"",intro:"",active:!0});return(0,rt.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.name&&(e({id:Date.now().toString(),...t}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"customerName",children:"Customer Name"}),(0,rt.jsx)(W,{id:"customerName",value:t.name,onChange:a=>o({...t,name:a.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"customerIntro",children:"Intro"}),(0,rt.jsx)(ie,{id:"customerIntro",value:t.intro,onChange:a=>o({...t,intro:a.target.value}),placeholder:"Enter customer intro"})]}),(0,rt.jsxs)("div",{className:"flex items-center space-rt-2",children:[(0,rt.jsx)(ae,{id:"activeCustomer",checked:t.active,onCheckedChange:a=>o({...t,active:a})}),(0,rt.jsx)(k,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,rt.jsx)(V,{type:"submit",className:"rt-full",children:"Add Customer"})]})}function He({customers:e,categories:t,onSubmit:o,onUpdate:r,initialDeal:a,onAddCustomer:n}){let[i,s]=(0,be.useState)({customerId:"",value:0,assignee:"",status:"Cold",categories:[],dateLogged:new Date().toISOString().split("rt")[0],closureDate:"",lastModified:new Date().toISOString(),comments:[],description:""});(0,be.useEffect)(()=>{a&&s(a)},[a]);let g=async c=>{if(c.preventDefault(),i.customerId&&i.value&&i.assignee&&i.closureDate)if(!a)await o(i);else{let u={...i,id:a.id};await r(u)}},C=c=>{s(u=>({...u,categories:u.categories.includes(c)?u.categories.filter(N=>N!==c):[...u.categories,c]}))},y=c=>{switch(c){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"}};return(0,rt.jsxs)("form",{onSubmit:g,className:"space-y-6",children:[(0,rt.jsx)(Ee,{className:"h-[60vh] pr-4 mx-2",children:(0,rt.jsxs)("div",{className:"space-y-6 mx-2",children:[(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"customer",children:"Customer"}),(0,rt.jsxs)("div",{className:"flex items-center space-rt-2",children:[(0,rt.jsxs)(Le,{value:i.customerId,onValueChange:c=>s({...i,customerId:c}),children:[(0,rt.jsx)(pe,{className:"flex-grow",children:(0,rt.jsx)(Me,{placeholder:"Select customer"})}),(0,rt.jsx)(ue,{children:e.map(c=>(0,rt.jsx)(fe,{value:c.id,children:c.name},c.id))})]}),(0,rt.jsxs)(de,{children:[(0,rt.jsx)(me,{asChild:!0,children:(0,rt.jsxs)(V,{type:"button",size:"icon",variant:"outline",children:[(0,rt.jsx)(at.PlusCircle,{className:"h-4 rt-4"}),(0,rt.jsx)("span",{className:"sr-only",children:"Add new customer"})]})}),(0,rt.jsxs)(ee,{children:[(0,rt.jsx)(te,{children:(0,rt.jsx)(oe,{children:"Add New Customer"})}),(0,rt.jsx)(ze,{onSubmit:n})]})]})]})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"value",children:"Value"}),(0,rt.jsx)(W,{id:"value",type:"number",value:i.value||"",onChange:c=>s({...i,value:Number.parseFloat(c.target.value)}),placeholder:"Enter deal value"})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"assignee",children:"Assignee"}),(0,rt.jsx)(W,{id:"assignee",value:i.assignee||"",onChange:c=>s({...i,assignee:c.target.value}),placeholder:"Enter assignee name"})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"description",children:"Description"}),(0,rt.jsx)(ie,{id:"description",value:i.description||"",onChange:c=>s({...i,description:c.target.value}),placeholder:"Enter deal description"})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"status",children:"Status"}),(0,rt.jsxs)(Le,{value:i.status,onValueChange:c=>s({...i,status:c}),children:[(0,rt.jsx)(pe,{children:(0,rt.jsx)(Me,{placeholder:"Select status"})}),(0,rt.jsx)(ue,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(c=>(0,rt.jsx)(fe,{value:c,children:c},c))})]})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{children:"Categories"}),(0,rt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(c=>(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)("h4",{className:"text-sm font-medium",children:c.charAt(0).toUpperCase()+c.slice(1)}),(0,rt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:t.filter(u=>u.type===c).map(u=>(0,rt.jsxs)("div",{className:"flex items-center space-rt-2",children:[(0,rt.jsx)(ae,{id:u.id,checked:i.categories.includes(u.id),onCheckedChange:()=>C(u.id)}),(0,rt.jsx)("label",{htmlFor:u.id,className:`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${y(u.type)}`,children:u.name})]},u.id))})]},c))})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"dateLogged",children:"Date Logged"}),(0,rt.jsx)(W,{id:"dateLogged",type:"date",value:i.dateLogged,onChange:c=>s({...i,dateLogged:c.target.value})})]}),(0,rt.jsxs)("div",{className:"space-y-2",children:[(0,rt.jsx)(k,{htmlFor:"closureDate",children:"Closure Date"}),(0,rt.jsx)(W,{id:"closureDate",type:"date",value:i.closureDate,onChange:c=>s({...i,closureDate:c.target.value})})]})]})}),(0,rt.jsx)(V,{type:"submit",className:"rt-full",children:a?"Update Deal":"Add Deal"})]})}function Pt({status:e,deals:t,customers:o,categories:r,onDealClick:a,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:s,updateDeal:g,onAddCustomer:C}){return(0,rt.jsxs)("div",{className:"flex flex-col rt-80",children:[(0,rt.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),s&&(0,rt.jsxs)(de,{children:[(0,rt.jsx)(me,{asChild:!0,children:(0,rt.jsxs)(V,{className:"mb-4 rt-full bg-green-500 hover:bg-green-600 text-white",children:[(0,rt.jsx)(at.PlusCircle,{className:"mr-2 h-4 rt-4"}),"Add New Deal"]})}),(0,rt.jsxs)(ee,{children:[(0,rt.jsx)(te,{children:(0,rt.jsx)(oe,{children:"Add New Deal"})}),(0,rt.jsx)(He,{customers:o,categories:r,onSubmit:s,onUpdate:g,onAddCustomer:C})]})]}),(0,rt.jsx)(ve.Droppable,{droppableId:e,children:y=>(0,rt.jsxs)("div",{ref:y.innerRef,...y.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((c,u)=>(0,rt.jsx)(ve.Draggable,{draggableId:c.id,index:u,children:N=>(0,rt.jsx)("div",{ref:N.innerRef,...N.draggableProps,...N.dragHandleProps,children:(0,rt.jsx)(lt,{deal:c,customer:o.find(L=>L.id===c.customerId),categories:r,onClick:()=>a(c)})})},c.id)),y.placeholder]})}),(0,rt.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,rt.jsxs)("p",{className:"font-semibold",children:["Total: ",(0,rt.jsxs)("span",{className:"text-green-600",children:["$",n(t).toLocaleString()]})]}),(0,rt.jsxs)("p",{className:"font-semibold",children:["Weighted: ",(0,rt.jsxs)("span",{className:"text-blue-600",children:["$",i(t,e).toLocaleString()]})]})]})]})}var Rt=[{id:"1",name:"Acme Corp",intro:"rt leading technology company",active:!0},{id:"2",name:"GlobalTech",intro:"Innovative solutions provider",active:!0},{id:"3",name:"InnoSystems",intro:"Cutting-edge software development",active:!1}],Nt=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],Dt=[{id:"1",customerId:"1",value:5e4,assignee:"John Doe",status:"Qualified",categories:["1","3","5"],dateLogged:"2023-01-15",closureDate:"2023-06-30",lastModified:"2023-05-01T10:00:00Z",comments:[{id:"1",text:"Initial contact made",author:"John Doe",timestamp:"2023-01-15T09:00:00Z"}],description:"Potential software solution for Acme Corp"},{id:"2",customerId:"2",value:75e3,assignee:"Jane Smith",status:"Proposal Made",categories:["2","4","6"],dateLogged:"2023-02-01",closureDate:"2023-07-31",lastModified:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:"Jane Smith",timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}];var Po={title:"CRM/KanbanColumn",component:Pt,parameters:{layout:"centered"}},Ro=Po,kt={args:{status:"Qualified",deals:Dt.filter(e=>e.status==="Qualified"),customers:Rt,categories:Nt,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((t,o)=>t+o.value,0),calculateWeightedValue:(e,t)=>{let o={Cold:.2,Qualified:.4,"Proposal Made":.6,Won:1,Lost:0};return e.reduce((r,a)=>r+a.value*o[t],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},No={args:{...kt.args,status:"Won",deals:[]}};0&&(module.exports={Default,EmptyColumn});
4
+ "use strict";var Tt=Object.create;var le=Object.defineProperty;var At=Object.getOwnPropertyDescriptor;var Lt=Object.getOwnPropertyNames;var Mt=Object.getPrototypeOf,It=Object.prototype.hasOwnProperty;var Et=(e,t)=>{for(var o in t)le(e,o,{get:t[o],enumerable:!0})},Ue=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Lt(t))!It.call(e,a)&&a!==o&&le(e,a,{get:()=>t[a],enumerable:!(r=At(t,a))||r.enumerable});return e};var D=(e,t,o)=>(o=e!=null?Tt(Mt(e)):{},Ue(t||!e||!e.__esModule?le(o,"default",{value:e,enumerable:!0}):o,e)),zt=e=>Ue(le({},"__esModule",{value:!0}),e);var Do={};Et(Do,{Default:()=>kt,EmptyColumn:()=>No,default:()=>Ro});module.exports=zt(Do);var Xe=require("clsx");var Pe="-",Ht=e=>{let t=Vt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(Pe);return s[0]===""&&s.length!==1&&s.shift(),$e(s,t)||Bt(i)},getConflictingClassGroupIds:(i,s)=>{let g=o[i]||[];return s&&r[i]?[...g,...r[i]]:g}}},$e=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?$e(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(Pe);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},je=/^\[(.+)\]$/,Bt=e=>{if(je.test(e)){let t=je.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Vt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Ft(Object.entries(e.classGroups),o).forEach(([n,i])=>{Se(i,r,n,t)}),r},Se=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:_e(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(Wt(a)){Se(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,i])=>{Se(i,_e(t,n),o,r)})})},_e=(e,t)=>{let o=e;return t.split(Pe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Wt=e=>e.isThemeGetter,Ft=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[o,a]}):e,Gt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,i)=>{o.set(n,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let i=o.get(n);if(i!==void 0)return i;if((i=r.get(n))!==void 0)return a(n,i),i},set(n,i){o.has(n)?o.set(n,i):a(n,i)}}},Ke="!",Ot=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,i=s=>{let g=[],w=0,y=0,c;for(let h=0;h<s.length;h++){let R=s[h];if(w===0){if(R===a&&(r||s.slice(h,h+n)===t)){g.push(s.slice(y,h)),y=h+n;continue}if(R==="/"){c=h;continue}}R==="["?w++:R==="]"&&w--}let u=g.length===0?s:s.substring(y),N=u.startsWith(Ke),L=N?u.substring(1):u,P=c&&c>y?c-y:void 0;return{modifiers:g,hasImportantModifier:N,baseClassName:L,maybePostfixModifierPosition:P}};return o?s=>o({className:s,parseClassName:i}):i},Ut=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},jt=e=>({cache:Gt(e.cacheSize),parseClassName:Ot(e),...Ht(e)}),_t=/\s+/,$t=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(_t),s="";for(let g=i.length-1;g>=0;g-=1){let w=i[g],{modifiers:y,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:N}=o(w),L=!!N,P=r(L?u.substring(0,N):u);if(!P){if(!L){s=w+(s.length>0?" "+s:s);continue}if(P=r(u),!P){s=w+(s.length>0?" "+s:s);continue}L=!1}let h=Ut(y).join(":"),R=c?h+Ke:h,M=R+P;if(n.includes(M))continue;n.push(M);let Q=a(P,L);for(let O=0;O<Q.length;++O){let ie=Q[O];n.push(R+ie)}s=w+(s.length>0?" "+s:s)}return s};function Kt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Qe(t))&&(r&&(r+=" "),r+=o);return r}var Qe=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Qe(e[r]))&&(o&&(o+=" "),o+=t);return o};function Qt(e,...t){let o,r,a,n=i;function i(g){let w=t.reduce((y,c)=>c(y),e());return o=jt(w),r=o.cache.get,a=o.cache.set,n=s,s(g)}function s(g){let w=r(g);if(w)return w;let y=$t(g,o);return a(g,y),y}return function(){return n(Kt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Je=/^\[(?:([a-z-]+):)?(.+)\]$/i,Jt=/^\d+\/\d+$/,Zt=new Set(["px","full","screen"]),qt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xt=/\d+(%|px|r?em|[sdl]?ot([hwib]|min|max)|et|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)rt-?((\d+)?\.?(\d+)[a-z]+|0)/,to=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>$(e)||Zt.has(e)||Jt.test(e),H=e=>K(e,"length",co),$=e=>!!e&&!Number.isNaN(Number(e)),Ce=e=>K(e,"number",$),Z=e=>!!e&&Number.isInteger(Number(e)),oo=e=>e.endsWith("%")&&$(e.slice(0,-1)),d=e=>Je.test(e),B=e=>qt.test(e),ro=new Set(["length","size","percentage"]),ao=e=>K(e,ro,Ze),io=e=>K(e,"position",Ze),so=new Set(["image","url"]),no=e=>K(e,so,po),lo=e=>K(e,"",mo),q=()=>!0,K=(e,t,o)=>{let r=Je.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},co=e=>Xt.test(e)&&!Yt.test(e),Ze=()=>!1,mo=e=>eo.test(e),po=e=>to.test(e);var uo=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),a=f("borderColor"),n=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),g=f("contrast"),w=f("grayscale"),y=f("hueRotate"),c=f("invert"),u=f("gap"),N=f("gradientColorStops"),L=f("gradientColorStopPositions"),P=f("inset"),h=f("margin"),R=f("opacity"),M=f("padding"),Q=f("saturate"),O=f("scale"),ie=f("sepia"),He=f("skew"),Be=f("space"),Ve=f("translate"),ye=()=>["auto","contain","none"],he=()=>["auto","hidden","clip","visible","scroll"],xe=()=>["auto",d,t],b=()=>[d,t],We=()=>["",z,H],se=()=>["auto",$,d],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],Ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",d],Oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[$,d];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[z,H],blur:["none","",B,d],brightness:E(),borderColor:[e],borderRadius:["none","","full",B,d],borderSpacing:b(),borderWidth:We(),contrast:E(),grayscale:J(),hueRotate:E(),invert:J(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[oo,H],inset:xe(),margin:xe(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:J(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":Oe()}],"break-before":[{"break-before":Oe()}],"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:[...Fe(),d]}],overflow:[{overflow:he()}],"overflow-ot":[{"overflow-ot":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:ye()}],"overscroll-ot":[{"overscroll-ot":ye()}],"overscroll-y":[{"overscroll-y":ye()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-ot":[{"inset-ot":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Z,d]}],basis:[{basis:xe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",Z,d]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",Z,d]},d]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[Z,d]},d]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[u]}],"gap-ot":[{"gap-ot":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...we()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...we(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...we(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],et:[{et:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],rt:[{rt:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-ot":[{"space-ot":[Be]}],"space-ot-reverse":["space-ot-reverse"],"space-y":[{"space-y":[Be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[B]},B]}],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",B,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ce]}],"font-family":[{font:[q]}],"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",$,Ce]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,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:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,H]}],"underline-offset":[{"underline-offset":["auto",z,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),io]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","ot","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ao]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","ot","tl"]},no]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-ot":[{"rounded-ot":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-ot":[{"border-ot":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-ot":[{"border-ot":[s]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-ot":[{"divide-ot":[s]}],"divide-ot-reverse":["divide-ot-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:ne()}],"border-color":[{border:[a]}],"border-color-ot":[{"border-ot":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-ot":[{"border-ot":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[z,d]}],"outline-w":[{outline:[z,H]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:We()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[z,H]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,lo]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Ge(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ge()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",B,d]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[c]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-ot":[{"border-spacing-ot":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-ot":[{"scale-ot":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Z,d]}],"translate-ot":[{"translate-ot":[Ve]}],"translate-y":[{"translate-y":[Ve]}],"skew-ot":[{"skew-ot":[He]}],"skew-y":[{"skew-y":[He]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","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","ot",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-rt":[{"scroll-rt":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-et":[{"scroll-et":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","ot","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-ot":[{"touch-pan":["ot","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:[z,H,Ce]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-ot","overflow-y"],overscroll:["overscroll-ot","overscroll-y"],inset:["inset-ot","inset-y","start","end","top","right","bottom","left"],"inset-ot":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-ot","gap-y"],p:["px","py","ps","pe","et","pr","pb","pl"],px:["pr","pl"],py:["et","pb"],m:["mx","my","ms","rt","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-ot","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-ot":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-ot","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-ot"],"border-w-ot":["border-w-r","border-w-ot"],"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-ot"],"border-color-ot":["border-color-r","border-color-ot"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-rt","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-et","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-et","scroll-pb"],touch:["touch-ot","touch-y","touch-pz"],"touch-ot":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qe=Qt(uo);function m(...e){return qe((0,Xe.clsx)(e))}var Ye=require("@radix-ui/react-slot"),et=require("class-variance-authority"),tt=D(require("react")),ot=require("react/jsx-runtime"),fo=(0,et.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-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"}}}),V=tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},n)=>(0,ot.jsx)(e?Ye.Slot:"button",{className:m(fo({className:t,size:o,variant:r})),ref:n,...a}));V.displayName="Button";var X=D(require("react")),C=D(require("@radix-ui/react-dialog")),rt=require("lucide-react");var ce=C.Root,de=C.Trigger,go=C.Portal;var at=X.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(C.Overlay,{ref:o,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}));at.displayName=C.Overlay.displayName;var Y=X.forwardRef(({className:e,children:t,...o},r)=>(0,ot.jsxs)(go,{children:[(0,ot.jsx)(at,{}),(0,ot.jsxs)(C.Content,{ref:r,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-ot-[-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),...o,children:[t,(0,ot.jsxs)(C.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,ot.jsx)(rt.X,{className:"h-4 w-4"}),(0,ot.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Y.displayName=C.Content.displayName;var ee=({className:e,...t})=>(0,ot.jsx)("div",{className:m("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ee.displayName="DialogHeader";var bo=({className:e,...t})=>(0,ot.jsx)("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-ot-2",e),...t});bo.displayName="DialogFooter";var te=X.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(C.Title,{ref:o,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));te.displayName=C.Title.displayName;var vo=X.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(C.Description,{ref:o,className:m("text-sm text-muted-foreground",e),...t}));vo.displayName=C.Description.displayName;var U=D(require("react"));var Re=U.forwardRef(({className:e,...t},o)=>(0,ot.jsx)("div",{ref:o,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Re.displayName="Card";var Ne=U.forwardRef(({className:e,...t},o)=>(0,ot.jsx)("div",{ref:o,className:m("flex flex-col space-y-1.5 p-6",e),...t}));Ne.displayName="CardHeader";var De=U.forwardRef(({className:e,...t},o)=>(0,ot.jsx)("div",{ref:o,className:m("font-semibold leading-none tracking-tight",e),...t}));De.displayName="CardTitle";var yo=U.forwardRef(({className:e,...t},o)=>(0,ot.jsx)("div",{ref:o,className:m("text-sm text-muted-foreground",e),...t}));yo.displayName="CardDescription";var ke=U.forwardRef(({className:e,...t},o)=>(0,ot.jsx)("div",{ref:o,className:m("p-6 et-0",e),...t}));ke.displayName="CardContent";var ho=U.forwardRef(({className:e,...t},o)=>(0,ot.jsx)("div",{ref:o,className:m("flex items-center p-6 et-0",e),...t}));ho.displayName="CardFooter";var xo=(0,et.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function st({className:e,variant:t,...o}){return(0,ot.jsx)("div",{className:m(xo({variant:t}),e),...o})}function lt({deal:e,customer:t,categories:o,onClick:r}){let a=o.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,ot.jsxs)(Re,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-ot-4 border-ot-accent",onClick:r,children:[(0,ot.jsxs)(Ne,{className:"pb-2",children:[(0,ot.jsx)("div",{className:"flex justify-between items-center",children:(0,ot.jsx)(De,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,ot.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,ot.jsxs)(ke,{children:[(0,ot.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,ot.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,ot.jsx)(rt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,ot.jsx)("span",{children:e.assignee})]}),(0,ot.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,ot.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,ot.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,ot.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ot.jsx)(rt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,ot.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,ot.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,ot.jsx)(st,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}var ve=require("react-beautiful-dnd");var be=require("react");var ct=D(require("react"));var W=ct.forwardRef(({className:e,type:t,...o},r)=>(0,ot.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:r,...o}));W.displayName="Input";var mt=D(require("react")),Te=D(require("@radix-ui/react-label"));var wo=(0,et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),k=mt.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(Te.Root,{ref:o,className:m(wo(),e),...t}));k.displayName=Te.Root.displayName;var p=D(require("@radix-ui/react-select")),F=D(require("react")),Ae=p.Root;var Le=p.Value,pe=F.forwardRef(({children:e,className:t,...o},r)=>(0,ot.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:r,...o,children:[e,(0,ot.jsx)(p.Icon,{asChild:!0,children:(0,ot.jsx)(rt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));pe.displayName=p.Trigger.displayName;var ft=F.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(p.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,ot.jsx)(rt.ChevronUp,{className:"h-4 w-4"})}));ft.displayName=p.ScrollUpButton.displayName;var gt=F.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(p.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,ot.jsx)(rt.ChevronDown,{className:"h-4 w-4"})}));gt.displayName=p.ScrollDownButton.displayName;var ue=F.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,ot.jsx)(p.Portal,{children:(0,ot.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",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-ot-1 data-[side=right]:translate-ot-1 data-[side=top]:-translate-y-1",t),position:o,ref:a,...r,children:[(0,ot.jsx)(ft,{}),(0,ot.jsx)(p.Viewport,{className:m("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ot.jsx)(gt,{})]})}));ue.displayName=p.Content.displayName;var Co=F.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(p.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Co.displayName=p.Label.displayName;var fe=F.forwardRef(({children:e,className:t,...o},r)=>(0,ot.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:r,...o,children:[(0,ot.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ot.jsx)(p.ItemIndicator,{children:(0,ot.jsx)(rt.Check,{className:"h-4 w-4"})})}),(0,ot.jsx)(p.ItemText,{children:e})]}));fe.displayName=p.Item.displayName;var So=F.forwardRef(({className:e,...t},o)=>(0,ot.jsx)(p.Separator,{className:m("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));So.displayName=p.Separator.displayName;var oe=D(require("@radix-ui/react-checkbox")),vt=D(require("react")),re=vt.forwardRef(({className:e,...t},o)=>(0,ot.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:o,...t,children:(0,ot.jsx)(oe.Indicator,{className:m("flex items-center justify-center text-current"),children:(0,ot.jsx)(rt.Check,{className:"h-4 w-4"})})}));re.displayName=oe.Root.displayName;var yt=D(require("react")),ae=yt.forwardRef(({className:e,...t},o)=>(0,ot.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:o,...t}));ae.displayName="Textarea";var Me=D(require("react")),I=D(require("@radix-ui/react-scroll-area"));var Ie=Me.forwardRef(({className:e,children:t,...o},r)=>(0,ot.jsxs)(I.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,ot.jsx)(I.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,ot.jsx)(xt,{}),(0,ot.jsx)(I.Corner,{})]}));Ie.displayName=I.Root.displayName;var xt=Me.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,ot.jsx)(I.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-ot border-ot-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,ot.jsx)(I.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));xt.displayName=I.ScrollAreaScrollbar.displayName;function Ee({onSubmit:e}){let[t,o]=(0,be.useState)({name:"",intro:"",active:!0});return(0,ot.jsxs)("form",{onSubmit:a=>{a.preventDefault(),t.name&&(e({id:Date.now().toString(),...t}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"customerName",children:"Customer Name"}),(0,ot.jsx)(W,{id:"customerName",value:t.name,onChange:a=>o({...t,name:a.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"customerIntro",children:"Intro"}),(0,ot.jsx)(ae,{id:"customerIntro",value:t.intro,onChange:a=>o({...t,intro:a.target.value}),placeholder:"Enter customer intro"})]}),(0,ot.jsxs)("div",{className:"flex items-center space-ot-2",children:[(0,ot.jsx)(re,{id:"activeCustomer",checked:t.active,onCheckedChange:a=>o({...t,active:a})}),(0,ot.jsx)(k,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,ot.jsx)(V,{type:"submit",className:"w-full",children:"Add Customer"})]})}function ze({customers:e,categories:t,onSubmit:o,onUpdate:r,initialDeal:a,onAddCustomer:n}){let[i,s]=(0,be.useState)({customerId:"",value:0,assignee:"",status:"Cold",categories:[],dateLogged:new Date().toISOString().split("ot")[0],closureDate:"",lastModified:new Date().toISOString(),comments:[],description:""});(0,be.useEffect)(()=>{a&&s(a)},[a]);let g=async c=>{if(c.preventDefault(),i.customerId&&i.value&&i.assignee&&i.closureDate)if(!a)await o(i);else{let u={...i,id:a.id};await r(u)}},w=c=>{s(u=>({...u,categories:u.categories.includes(c)?u.categories.filter(N=>N!==c):[...u.categories,c]}))},y=c=>{switch(c){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"}};return(0,ot.jsxs)("form",{onSubmit:g,className:"space-y-6",children:[(0,ot.jsx)(Ie,{className:"h-[60vh] pr-4 mx-2",children:(0,ot.jsxs)("div",{className:"space-y-6 mx-2",children:[(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"customer",children:"Customer"}),(0,ot.jsxs)("div",{className:"flex items-center space-ot-2",children:[(0,ot.jsxs)(Ae,{value:i.customerId,onValueChange:c=>s({...i,customerId:c}),children:[(0,ot.jsx)(pe,{className:"flex-grow",children:(0,ot.jsx)(Le,{placeholder:"Select customer"})}),(0,ot.jsx)(ue,{children:e.map(c=>(0,ot.jsx)(fe,{value:c.id,children:c.name},c.id))})]}),(0,ot.jsxs)(ce,{children:[(0,ot.jsx)(de,{asChild:!0,children:(0,ot.jsxs)(V,{type:"button",size:"icon",variant:"outline",children:[(0,ot.jsx)(rt.PlusCircle,{className:"h-4 w-4"}),(0,ot.jsx)("span",{className:"sr-only",children:"Add new customer"})]})}),(0,ot.jsxs)(Y,{children:[(0,ot.jsx)(ee,{children:(0,ot.jsx)(te,{children:"Add New Customer"})}),(0,ot.jsx)(Ee,{onSubmit:n})]})]})]})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"value",children:"Value"}),(0,ot.jsx)(W,{id:"value",type:"number",value:i.value||"",onChange:c=>s({...i,value:Number.parseFloat(c.target.value)}),placeholder:"Enter deal value"})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"assignee",children:"Assignee"}),(0,ot.jsx)(W,{id:"assignee",value:i.assignee||"",onChange:c=>s({...i,assignee:c.target.value}),placeholder:"Enter assignee name"})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"description",children:"Description"}),(0,ot.jsx)(ae,{id:"description",value:i.description||"",onChange:c=>s({...i,description:c.target.value}),placeholder:"Enter deal description"})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"status",children:"Status"}),(0,ot.jsxs)(Ae,{value:i.status,onValueChange:c=>s({...i,status:c}),children:[(0,ot.jsx)(pe,{children:(0,ot.jsx)(Le,{placeholder:"Select status"})}),(0,ot.jsx)(ue,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(c=>(0,ot.jsx)(fe,{value:c,children:c},c))})]})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{children:"Categories"}),(0,ot.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(c=>(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)("h4",{className:"text-sm font-medium",children:c.charAt(0).toUpperCase()+c.slice(1)}),(0,ot.jsx)("div",{className:"grid grid-cols-2 gap-2",children:t.filter(u=>u.type===c).map(u=>(0,ot.jsxs)("div",{className:"flex items-center space-ot-2",children:[(0,ot.jsx)(re,{id:u.id,checked:i.categories.includes(u.id),onCheckedChange:()=>w(u.id)}),(0,ot.jsx)("label",{htmlFor:u.id,className:`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${y(u.type)}`,children:u.name})]},u.id))})]},c))})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"dateLogged",children:"Date Logged"}),(0,ot.jsx)(W,{id:"dateLogged",type:"date",value:i.dateLogged,onChange:c=>s({...i,dateLogged:c.target.value})})]}),(0,ot.jsxs)("div",{className:"space-y-2",children:[(0,ot.jsx)(k,{htmlFor:"closureDate",children:"Closure Date"}),(0,ot.jsx)(W,{id:"closureDate",type:"date",value:i.closureDate,onChange:c=>s({...i,closureDate:c.target.value})})]})]})}),(0,ot.jsx)(V,{type:"submit",className:"w-full",children:a?"Update Deal":"Add Deal"})]})}function Pt({status:e,deals:t,customers:o,categories:r,onDealClick:a,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:s,updateDeal:g,onAddCustomer:w}){return(0,ot.jsxs)("div",{className:"flex flex-col w-80",children:[(0,ot.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),s&&(0,ot.jsxs)(ce,{children:[(0,ot.jsx)(de,{asChild:!0,children:(0,ot.jsxs)(V,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,ot.jsx)(rt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,ot.jsxs)(Y,{children:[(0,ot.jsx)(ee,{children:(0,ot.jsx)(te,{children:"Add New Deal"})}),(0,ot.jsx)(ze,{customers:o,categories:r,onSubmit:s,onUpdate:g,onAddCustomer:w})]})]}),(0,ot.jsx)(ve.Droppable,{droppableId:e,children:y=>(0,ot.jsxs)("div",{ref:y.innerRef,...y.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((c,u)=>(0,ot.jsx)(ve.Draggable,{draggableId:c.id,index:u,children:N=>(0,ot.jsx)("div",{ref:N.innerRef,...N.draggableProps,...N.dragHandleProps,children:(0,ot.jsx)(lt,{deal:c,customer:o.find(L=>L.id===c.customerId),categories:r,onClick:()=>a(c)})})},c.id)),y.placeholder]})}),(0,ot.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,ot.jsxs)("p",{className:"font-semibold",children:["Total: ",(0,ot.jsxs)("span",{className:"text-green-600",children:["$",n(t).toLocaleString()]})]}),(0,ot.jsxs)("p",{className:"font-semibold",children:["Weighted: ",(0,ot.jsxs)("span",{className:"text-blue-600",children:["$",i(t,e).toLocaleString()]})]})]})]})}var Rt=[{id:"1",name:"Acme Corp",intro:"ot leading technology company",active:!0},{id:"2",name:"GlobalTech",intro:"Innovative solutions provider",active:!0},{id:"3",name:"InnoSystems",intro:"Cutting-edge software development",active:!1}],Nt=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],Dt=[{id:"1",customerId:"1",value:5e4,assignee:"John Doe",status:"Qualified",categories:["1","3","5"],dateLogged:"2023-01-15",closureDate:"2023-06-30",lastModified:"2023-05-01T10:00:00Z",comments:[{id:"1",text:"Initial contact made",author:"John Doe",timestamp:"2023-01-15T09:00:00Z"}],description:"Potential software solution for Acme Corp"},{id:"2",customerId:"2",value:75e3,assignee:"Jane Smith",status:"Proposal Made",categories:["2","4","6"],dateLogged:"2023-02-01",closureDate:"2023-07-31",lastModified:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:"Jane Smith",timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}];var Po={title:"CRM/KanbanColumn",component:Pt,parameters:{layout:"centered"}},Ro=Po,kt={args:{status:"Qualified",deals:Dt.filter(e=>e.status==="Qualified"),customers:Rt,categories:Nt,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((t,o)=>t+o.value,0),calculateWeightedValue:(e,t)=>{let o={Cold:.2,Qualified:.4,"Proposal Made":.6,Won:1,Lost:0};return e.reduce((r,a)=>r+a.value*o[t],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},No={args:{...kt.args,status:"Won",deals:[]}};0&&(module.exports={Default,EmptyColumn});
@@ -1 +1 @@
1
- import{a}from"../../chunk-K72QGFAZ.mjs";import"../../chunk-UG6FK323.mjs";import"../../chunk-QMWYQ3FS.mjs";import{a as l,b as n,c as s}from"../../chunk-I4LMCHGL.mjs";import"../../chunk-AEDQILUE.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var c={title:"CRM/KanbanColumn",component:a,parameters:{layout:"centered"}},p=c,m={args:{status:"Qualified",deals:s.filter(e=>e.status==="Qualified"),customers:l,categories:n,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((o,t)=>o+t.value,0),calculateWeightedValue:(e,o)=>{let t={Cold:.2,Qualified:.4,"Proposal Made":.6,Won:1,Lost:0};return e.reduce((r,u)=>r+u.value*t[o],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},y={args:{...m.args,status:"Won",deals:[]}};export{m as Default,y as EmptyColumn,p as default};
1
+ import{a as l,b as n,c as s}from"../../chunk-I4LMCHGL.mjs";import{a}from"../../chunk-IE5X3XS7.mjs";import"../../chunk-UG6FK323.mjs";import"../../chunk-QMWYQ3FS.mjs";import"../../chunk-F2YN7SED.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var c={title:"CRM/KanbanColumn",component:a,parameters:{layout:"centered"}},p=c,m={args:{status:"Qualified",deals:s.filter(e=>e.status==="Qualified"),customers:l,categories:n,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((o,t)=>o+t.value,0),calculateWeightedValue:(e,o)=>{let t={Cold:.2,Qualified:.4,"Proposal Made":.6,Won:1,Lost:0};return e.reduce((r,u)=>r+u.value*t[o],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},y={args:{...m.args,status:"Won",deals:[]}};export{m as Default,y as EmptyColumn,p as default};
@@ -1 +1 @@
1
- import{a as e}from"../../chunk-UG6FK323.mjs";import"../../chunk-QMWYQ3FS.mjs";import{a as t,b as r,c as a}from"../../chunk-I4LMCHGL.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var m={title:"CRM/NewDealForm",component:e,parameters:{layout:"centered"}},c=m,s={args:{customers:t,categories:r,onSubmit:async o=>console.log("Submitting deal:",o),onAddCustomer:async o=>console.log("Adding new customer:",o)}},i={args:{...s.args,initialDeal:a[0]}};export{s as Default,i as EditExistingDeal,c as default};
1
+ import{a as t,b as r,c as a}from"../../chunk-I4LMCHGL.mjs";import{a as e}from"../../chunk-UG6FK323.mjs";import"../../chunk-QMWYQ3FS.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var m={title:"CRM/NewDealForm",component:e,parameters:{layout:"centered"}},c=m,s={args:{customers:t,categories:r,onSubmit:async o=>console.log("Submitting deal:",o),onAddCustomer:async o=>console.log("Adding new customer:",o)}},i={args:{...s.args,initialDeal:a[0]}};export{s as Default,i as EditExistingDeal,c as default};
@@ -1 +1 @@
1
- import{a}from"../../chunk-ULENDYCU.mjs";import"../../chunk-QMVHDZ5J.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as SectionHeading};
1
+ import{a}from"../../chunk-L44KSGUG.mjs";import"../../chunk-Y6QUDCQM.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as SectionHeading};
@@ -1 +1 @@
1
- import"../../chunk-ZDPQXVTF.mjs";import{a}from"../../chunk-DRJBYVJB.mjs";import{a as e}from"../../chunk-GOMLTG5W.mjs";import{a as f}from"../../chunk-23L5ZJ2U.mjs";import{a as g}from"../../chunk-DESYC5BB.mjs";import{a as d}from"../../chunk-XDP6BKTK.mjs";import{a as c}from"../../chunk-3TIFSACL.mjs";import"../../chunk-SV3TTIPR.mjs";import"../../chunk-CS77R54Z.mjs";import{a as b}from"../../chunk-HAYRX2WO.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as BrandLogo,f as Footer,g as Header,c as HeaderDesktop,d as HeaderMobile,a as SimpleHeader,e as VideoHeader};
1
+ import{a as e}from"../../chunk-GOMLTG5W.mjs";import"../../chunk-ZDPQXVTF.mjs";import{a}from"../../chunk-DRJBYVJB.mjs";import"../../chunk-CS77R54Z.mjs";import{a as f}from"../../chunk-23L5ZJ2U.mjs";import{a as g}from"../../chunk-DESYC5BB.mjs";import{a as d}from"../../chunk-XDP6BKTK.mjs";import{a as c}from"../../chunk-3TIFSACL.mjs";import"../../chunk-SV3TTIPR.mjs";import{a as b}from"../../chunk-HAYRX2WO.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as BrandLogo,f as Footer,g as Header,c as HeaderDesktop,d as HeaderMobile,a as SimpleHeader,e as VideoHeader};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-7LTMHU33.mjs";import"../../../chunk-QMVHDZ5J.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-Y6CZVVJF.mjs";import"../../../chunk-PVRWMAHW.mjs";import"../../../chunk-NGK3IDFP.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as HighImpactHero};
2
+ "use strict";import{a}from"../../../chunk-ET5WFKM7.mjs";import"../../../chunk-Y6QUDCQM.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as HighImpactHero};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-N5ZYYMHK.mjs";import"../../../chunk-QMVHDZ5J.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-Y6CZVVJF.mjs";import"../../../chunk-PVRWMAHW.mjs";import"../../../chunk-NGK3IDFP.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as LowImpactHero};
1
+ import{a}from"../../../chunk-CTCV3L4B.mjs";import"../../../chunk-Y6QUDCQM.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as LowImpactHero};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-4W5BMCYE.mjs";import"../../../chunk-QMVHDZ5J.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-Y6CZVVJF.mjs";import"../../../chunk-PVRWMAHW.mjs";import"../../../chunk-NGK3IDFP.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as MediumImpactHero};
1
+ import{a}from"../../../chunk-CNCPREWR.mjs";import"../../../chunk-Y6QUDCQM.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as MediumImpactHero};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-CWNEDSLD.mjs";import"../../../chunk-PRUIYGQW.mjs";import"../../../chunk-H4Y4SZIU.mjs";import"../../../chunk-RBZMFLLA.mjs";import"../../../chunk-WRPART4J.mjs";import"../../../chunk-7VKHSE4O.mjs";import"../../../chunk-N6EJQZAV.mjs";import"../../../chunk-HWEPDRG6.mjs";import"../../../chunk-XGQLOPHW.mjs";import"../../../chunk-4JC2TJML.mjs";import"../../../chunk-Y5ZFXDW5.mjs";import"../../../chunk-4NKKWJ2X.mjs";import"../../../chunk-JWDVKGZL.mjs";import"../../../chunk-A5EYIB3V.mjs";import"../../../chunk-DWRQHV42.mjs";import"../../../chunk-AWFQEK7A.mjs";import"../../../chunk-3YZN4MJB.mjs";import"../../../chunk-WNPA7YT3.mjs";import"../../../chunk-AFA6LBJ4.mjs";import"../../../chunk-CGBVZQYY.mjs";import"../../../chunk-BSQVKZCW.mjs";import"../../../chunk-Y5VTKEKS.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-QOIH63J3.mjs";import"../../../chunk-OAOCXXC2.mjs";import"../../../chunk-SBM5HULF.mjs";import"../../../chunk-Q6SEVCRG.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-YNNW2C2U.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as PostHero};
1
+ import{a}from"../../../chunk-CWNEDSLD.mjs";import"../../../chunk-PRUIYGQW.mjs";import"../../../chunk-H4Y4SZIU.mjs";import"../../../chunk-7VKHSE4O.mjs";import"../../../chunk-RBZMFLLA.mjs";import"../../../chunk-WRPART4J.mjs";import"../../../chunk-N6EJQZAV.mjs";import"../../../chunk-HWEPDRG6.mjs";import"../../../chunk-XGQLOPHW.mjs";import"../../../chunk-4JC2TJML.mjs";import"../../../chunk-Y5ZFXDW5.mjs";import"../../../chunk-4NKKWJ2X.mjs";import"../../../chunk-JWDVKGZL.mjs";import"../../../chunk-A5EYIB3V.mjs";import"../../../chunk-DWRQHV42.mjs";import"../../../chunk-AWFQEK7A.mjs";import"../../../chunk-3YZN4MJB.mjs";import"../../../chunk-WNPA7YT3.mjs";import"../../../chunk-IPHHUHS3.mjs";import"../../../chunk-Y5VTKEKS.mjs";import"../../../chunk-CGBVZQYY.mjs";import"../../../chunk-BSQVKZCW.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-QOIH63J3.mjs";import"../../../chunk-OAOCXXC2.mjs";import"../../../chunk-SBM5HULF.mjs";import"../../../chunk-Q6SEVCRG.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-YNNW2C2U.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as PostHero};
@@ -1 +1 @@
1
- import{b as a,c as b}from"../../chunk-JHXTO4RC.mjs";import"../../chunk-7LTMHU33.mjs";import"../../chunk-4W5BMCYE.mjs";import"../../chunk-N5ZYYMHK.mjs";import"../../chunk-QMVHDZ5J.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as Breadcrumbs,a as RenderHero};
1
+ import{b as a,c as b}from"../../chunk-PARYRNXP.mjs";import"../../chunk-ET5WFKM7.mjs";import"../../chunk-CNCPREWR.mjs";import"../../chunk-CTCV3L4B.mjs";import"../../chunk-Y6QUDCQM.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as Breadcrumbs,a as RenderHero};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-JHXTO4RC.mjs";import"../../../chunk-7LTMHU33.mjs";import"../../../chunk-4W5BMCYE.mjs";import"../../../chunk-N5ZYYMHK.mjs";import"../../../chunk-QMVHDZ5J.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-Y6CZVVJF.mjs";import"../../../chunk-PVRWMAHW.mjs";import"../../../chunk-NGK3IDFP.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-UESKYRNK.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as SectionHero};
1
+ import{a}from"../../../chunk-PARYRNXP.mjs";import"../../../chunk-ET5WFKM7.mjs";import"../../../chunk-CNCPREWR.mjs";import"../../../chunk-CTCV3L4B.mjs";import"../../../chunk-Y6QUDCQM.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-UESKYRNK.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as SectionHero};
@@ -1 +1 @@
1
- import{a as e,b as f,c as g}from"../../chunk-JHXTO4RC.mjs";import{a}from"../../chunk-7LTMHU33.mjs";import{a as b}from"../../chunk-4W5BMCYE.mjs";import{a as c}from"../../chunk-N5ZYYMHK.mjs";import{a as d}from"../../chunk-CWNEDSLD.mjs";import"../../chunk-PRUIYGQW.mjs";import"../../chunk-H4Y4SZIU.mjs";import"../../chunk-RBZMFLLA.mjs";import"../../chunk-WRPART4J.mjs";import"../../chunk-7VKHSE4O.mjs";import"../../chunk-N6EJQZAV.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-AWFQEK7A.mjs";import"../../chunk-QMVHDZ5J.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-Y6CZVVJF.mjs";import"../../chunk-PVRWMAHW.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-3YZN4MJB.mjs";import"../../chunk-WNPA7YT3.mjs";import"../../chunk-AFA6LBJ4.mjs";import"../../chunk-CGBVZQYY.mjs";import"../../chunk-BSQVKZCW.mjs";import"../../chunk-Y5VTKEKS.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-OAOCXXC2.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as Breadcrumbs,a as HighImpactHero,c as LowImpactHero,b as MediumImpactHero,d as PostHero,f as RenderHero,e as SectionHero};
1
+ import{a as e,b as f,c as g}from"../../chunk-PARYRNXP.mjs";import{a}from"../../chunk-ET5WFKM7.mjs";import{a as b}from"../../chunk-CNCPREWR.mjs";import{a as c}from"../../chunk-CTCV3L4B.mjs";import{a as d}from"../../chunk-CWNEDSLD.mjs";import"../../chunk-PRUIYGQW.mjs";import"../../chunk-H4Y4SZIU.mjs";import"../../chunk-7VKHSE4O.mjs";import"../../chunk-RBZMFLLA.mjs";import"../../chunk-WRPART4J.mjs";import"../../chunk-N6EJQZAV.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-AWFQEK7A.mjs";import"../../chunk-Y6QUDCQM.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-3YZN4MJB.mjs";import"../../chunk-WNPA7YT3.mjs";import"../../chunk-IPHHUHS3.mjs";import"../../chunk-Y5VTKEKS.mjs";import"../../chunk-CGBVZQYY.mjs";import"../../chunk-BSQVKZCW.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-OAOCXXC2.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as Breadcrumbs,a as HighImpactHero,c as LowImpactHero,b as MediumImpactHero,d as PostHero,f as RenderHero,e as SectionHero};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var Ce=Object.create;var $=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var Pe=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},le=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ae(t))!ze.call(e,a)&&a!==r&&$(e,a,{get:()=>t[a],enumerable:!(o=Ne(t,a))||o.enumerable});return e};var D=(e,t,r)=>(r=e!=null?Ce(Re(e)):{},le(t||!e||!e.__esModule?$(r,"default",{value:e,enumerable:!0}):r,e)),Me=e=>le($({},"__esModule",{value:!0}),e);var ct={};Pe(ct,{HolidayGrid:()=>lt});module.exports=Me(ct);var H=require("lucide-react");var he=require("clsx");var X="-",Se=e=>{let t=Ie(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(X);return s[0]===""&&s.length!==1&&s.shift(),pe(s,t)||Ge(i)},getConflictingClassGroupIds:(i,s)=>{let d=r[i]||[];return s&&o[i]?[...d,...o[i]]:d}}},pe=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?pe(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(X);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},ce=/^\[(.+)\]$/,Ge=e=>{if(ce.test(e)){let t=ce.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ie=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ee(Object.entries(e.classGroups),r).forEach(([n,i])=>{K(i,o,n,t)}),o},K=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:de(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Te(a)){K(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{K(i,de(t,n),r,o)})})},de=(e,t)=>{let r=e;return t.split(X).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Te=e=>e.isThemeGetter,Ee=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Le=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},ue="!",Be=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{let d=[],m=0,g=0,v;for(let f=0;f<s.length;f++){let y=s[f];if(m===0){if(y===a&&(o||s.slice(f,f+n)===t)){d.push(s.slice(g,f)),g=f+n;continue}if(y==="/"){v=f;continue}}y==="["?m++:y==="]"&&m--}let x=d.length===0?s:s.substring(g),b=x.startsWith(ue),w=b?x.substring(1):x,h=v&&v>g?v-g:void 0;return{modifiers:d,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:i}):i},Fe=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},je=e=>({cache:Le(e.cacheSize),parseClassName:Be(e),...Se(e)}),Ve=/\s+/,$e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Ve),s="";for(let d=i.length-1;d>=0;d-=1){let m=i[d],{modifiers:g,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:b}=r(m),w=!!b,h=o(w?x.substring(0,b):x);if(!h){if(!w){s=m+(s.length>0?" "+s:s);continue}if(h=o(x),!h){s=m+(s.length>0?" "+s:s);continue}w=!1}let f=Fe(g).join(":"),y=v?f+ue:f,k=y+h;if(n.includes(k))continue;n.push(k);let I=a(h,w);for(let P=0;P<I.length;++P){let F=I[P];n.push(y+F)}s=m+(s.length>0?" "+s:s)}return s};function _e(){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 We(e,...t){let r,o,a,n=i;function i(d){let m=t.reduce((g,v)=>v(g),e());return r=je(m),o=r.cache.get,a=r.cache.set,n=s,s(d)}function s(d){let m=o(d);if(m)return m;let g=$e(d,r);return a(d,g),g}return function(){return n(_e.apply(null,arguments))}}var p=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},be=/^\[(?:([a-z-]+):)?(.+)\]$/i,He=/^\d+\/\d+$/,Oe=new Set(["px","full","screen"]),Ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ye=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,De=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Je=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>S(e)||Oe.has(e)||He.test(e),R=e=>G(e,"length",ot),S=e=>!!e&&!Number.isNaN(Number(e)),J=e=>G(e,"number",S),E=e=>!!e&&Number.isInteger(Number(e)),Ke=e=>e.endsWith("%")&&S(e.slice(0,-1)),l=e=>be.test(e),z=e=>Ue.test(e),Xe=new Set(["length","size","percentage"]),Ze=e=>G(e,Xe,fe),Qe=e=>G(e,"position",fe),et=new Set(["image","url"]),tt=e=>G(e,et,st),rt=e=>G(e,"",nt),L=()=>!0,G=(e,t,r)=>{let o=be.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ot=e=>qe.test(e)&&!Ye.test(e),fe=()=>!1,nt=e=>De.test(e),st=e=>Je.test(e);var at=()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),o=p("brightness"),a=p("borderColor"),n=p("borderRadius"),i=p("borderSpacing"),s=p("borderWidth"),d=p("contrast"),m=p("grayscale"),g=p("hueRotate"),v=p("invert"),x=p("gap"),b=p("gradientColorStops"),w=p("gradientColorStopPositions"),h=p("inset"),f=p("margin"),y=p("opacity"),k=p("padding"),I=p("saturate"),P=p("scale"),F=p("sepia"),te=p("skew"),re=p("space"),oe=p("translate"),O=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,t],u=()=>[l,t],ne=()=>["",N,R],j=()=>["auto",S,l],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",l],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[S,l];return{cacheSize:500,separator:":",theme:{colors:[L],spacing:[N,R],blur:["none","",z,l],brightness:C(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:u(),borderWidth:ne(),contrast:C(),grayscale:T(),hueRotate:C(),invert:T(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Ke,R],inset:q(),margin:q(),opacity:C(),padding:u(),saturate:C(),scale:C(),sepia:T(),skew:C(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"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:[...se(),l]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,l]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",E,l]}],"grid-cols":[{"grid-cols":[L]}],"col-start-end":[{col:["auto",{span:["full",E,l]},l]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[L]}],"row-start-end":[{row:["auto",{span:[E,l]},l]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"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:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",z,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",J]}],"font-family":[{font:[L]}],"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",l]}],"line-clamp":[{"line-clamp":["none",S,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,R]}],"underline-offset":[{"underline-offset":["auto",N,l]}],"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:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),Qe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ze]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:V()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[N,l]}],"outline-w":[{outline:[N,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[N,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,rt]}],"shadow-color":[{shadow:[L]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[v]}],saturate:[{saturate:[I]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[E,l]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,R,J]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ge=We(at);function M(...e){return ge((0,he.clsx)(e))}var ye=require("@radix-ui/react-slot"),ve=require("class-variance-authority"),xe=D(require("react")),we=require("react/jsx-runtime"),it=(0,ve.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"}}}),B=xe.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,we.jsx)(e?ye.Slot:"button",{className:M(it({className:t,size:r,variant:o})),ref:n,...a}));B.displayName="Button";var _=D(require("react")),A=D(require("@radix-ui/react-avatar"));var Z=_.forwardRef(({className:e,...t},r)=>(0,we.jsx)(A.Root,{ref:r,className:M("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Z.displayName=A.Root.displayName;var Q=_.forwardRef(({className:e,...t},r)=>(0,we.jsx)(A.Image,{ref:r,className:M("aspect-square h-full w-full",e),...t}));Q.displayName=A.Image.displayName;var ee=_.forwardRef(({className:e,...t},r)=>(0,we.jsx)(A.Fallback,{ref:r,className:M("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ee.displayName=A.Fallback.displayName;function ke(...e){return e.filter(Boolean).join(" ")}function lt({currentDate:e,setCurrentDate:t,holidays:r,employees:o}){let a=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},s=()=>{t(new Date)};return(0,we.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,we.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,we.jsxs)("div",{className:"sm:flex-auto",children:[(0,we.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,we.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,we.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,we.jsxs)(B,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,we.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,we.jsx)(H.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,we.jsx)(B,{variant:"outline",onClick:s,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"}),(0,we.jsxs)(B,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,we.jsx)("span",{className:"sr-only",children:"Next month"}),(0,we.jsx)(H.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,we.jsx)("div",{className:"mt-8 flow-root",children:(0,we.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,we.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,we.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,we.jsx)("thead",{children:(0,we.jsxs)("tr",{children:[(0,we.jsx)("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(a)].map((d,m)=>(0,we.jsx)("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:m+1},m))]})}),(0,we.jsx)("tbody",{children:o.map((d,m)=>(0,we.jsxs)("tr",{children:[(0,we.jsx)("td",{className:ke(m!==o.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:(0,we.jsxs)("div",{className:"flex items-center",children:[(0,we.jsxs)(Z,{className:"h-11 w-11",children:[(0,we.jsx)(Q,{src:d.image,alt:d.name}),(0,we.jsx)(ee,{children:d.name.split(" ").map(g=>g[0]).join("")})]}),(0,we.jsx)("div",{className:"ml-4",children:(0,we.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(a)].map((g,v)=>{let x=new Date(e.getFullYear(),e.getMonth(),v+1),b=r.find(w=>w.userId===d.id&&new Date(w.startDate)<=x&&new Date(w.endDate)>=x);return(0,we.jsx)("td",{className:ke(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,we.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${d.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,we.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${v}`)})]},d.id))})]})})})})]})}0&&(module.exports={HolidayGrid});
4
+ "use strict";var Ce=Object.create;var $=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var Pe=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},le=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ae(t))!ze.call(e,a)&&a!==r&&$(e,a,{get:()=>t[a],enumerable:!(o=Ne(t,a))||o.enumerable});return e};var D=(e,t,r)=>(r=e!=null?Ce(Re(e)):{},le(t||!e||!e.__esModule?$(r,"default",{value:e,enumerable:!0}):r,e)),Me=e=>le($({},"__esModule",{value:!0}),e);var ct={};Pe(ct,{HolidayGrid:()=>lt});module.exports=Me(ct);var H=require("lucide-react");var he=require("clsx");var X="-",Se=e=>{let t=Ie(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(X);return s[0]===""&&s.length!==1&&s.shift(),pe(s,t)||Ge(i)},getConflictingClassGroupIds:(i,s)=>{let d=r[i]||[];return s&&o[i]?[...d,...o[i]]:d}}},pe=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?pe(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(X);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},ce=/^\[(.+)\]$/,Ge=e=>{if(ce.test(e)){let t=ce.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ie=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ee(Object.entries(e.classGroups),r).forEach(([n,i])=>{K(i,o,n,t)}),o},K=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:de(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Te(a)){K(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{K(i,de(t,n),r,o)})})},de=(e,t)=>{let r=e;return t.split(X).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Te=e=>e.isThemeGetter,Ee=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Le=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},ue="!",Be=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{let d=[],m=0,g=0,v;for(let f=0;f<s.length;f++){let y=s[f];if(m===0){if(y===a&&(o||s.slice(f,f+n)===t)){d.push(s.slice(g,f)),g=f+n;continue}if(y==="/"){v=f;continue}}y==="["?m++:y==="]"&&m--}let x=d.length===0?s:s.substring(g),b=x.startsWith(ue),w=b?x.substring(1):x,h=v&&v>g?v-g:void 0;return{modifiers:d,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:i}):i},Fe=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},je=e=>({cache:Le(e.cacheSize),parseClassName:Be(e),...Se(e)}),Ve=/\s+/,$e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Ve),s="";for(let d=i.length-1;d>=0;d-=1){let m=i[d],{modifiers:g,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:b}=r(m),w=!!b,h=o(w?x.substring(0,b):x);if(!h){if(!w){s=m+(s.length>0?" "+s:s);continue}if(h=o(x),!h){s=m+(s.length>0?" "+s:s);continue}w=!1}let f=Fe(g).join(":"),y=v?f+ue:f,k=y+h;if(n.includes(k))continue;n.push(k);let I=a(h,w);for(let P=0;P<I.length;++P){let F=I[P];n.push(y+F)}s=m+(s.length>0?" "+s:s)}return s};function _e(){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 We(e,...t){let r,o,a,n=i;function i(d){let m=t.reduce((g,v)=>v(g),e());return r=je(m),o=r.cache.get,a=r.cache.set,n=s,s(d)}function s(d){let m=o(d);if(m)return m;let g=$e(d,r);return a(d,g),g}return function(){return n(_e.apply(null,arguments))}}var p=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},be=/^\[(?:([a-z-]+):)?(.+)\]$/i,He=/^\d+\/\d+$/,Oe=new Set(["px","full","screen"]),Ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ye=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,De=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Je=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>S(e)||Oe.has(e)||He.test(e),R=e=>G(e,"length",ot),S=e=>!!e&&!Number.isNaN(Number(e)),J=e=>G(e,"number",S),E=e=>!!e&&Number.isInteger(Number(e)),Ke=e=>e.endsWith("%")&&S(e.slice(0,-1)),l=e=>be.test(e),z=e=>Ue.test(e),Xe=new Set(["length","size","percentage"]),Ze=e=>G(e,Xe,fe),Qe=e=>G(e,"position",fe),et=new Set(["image","url"]),tt=e=>G(e,et,st),rt=e=>G(e,"",nt),L=()=>!0,G=(e,t,r)=>{let o=be.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ot=e=>qe.test(e)&&!Ye.test(e),fe=()=>!1,nt=e=>De.test(e),st=e=>Je.test(e);var at=()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),o=p("brightness"),a=p("borderColor"),n=p("borderRadius"),i=p("borderSpacing"),s=p("borderWidth"),d=p("contrast"),m=p("grayscale"),g=p("hueRotate"),v=p("invert"),x=p("gap"),b=p("gradientColorStops"),w=p("gradientColorStopPositions"),h=p("inset"),f=p("margin"),y=p("opacity"),k=p("padding"),I=p("saturate"),P=p("scale"),F=p("sepia"),te=p("skew"),re=p("space"),oe=p("translate"),O=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,t],u=()=>[l,t],ne=()=>["",N,R],j=()=>["auto",S,l],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",l],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[S,l];return{cacheSize:500,separator:":",theme:{colors:[L],spacing:[N,R],blur:["none","",z,l],brightness:C(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:u(),borderWidth:ne(),contrast:C(),grayscale:T(),hueRotate:C(),invert:T(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Ke,R],inset:q(),margin:q(),opacity:C(),padding:u(),saturate:C(),scale:C(),sepia:T(),skew:C(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"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:[...se(),l]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,l]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",E,l]}],"grid-cols":[{"grid-cols":[L]}],"col-start-end":[{col:["auto",{span:["full",E,l]},l]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[L]}],"row-start-end":[{row:["auto",{span:[E,l]},l]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"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:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",z,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",J]}],"font-family":[{font:[L]}],"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",l]}],"line-clamp":[{"line-clamp":["none",S,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,R]}],"underline-offset":[{"underline-offset":["auto",N,l]}],"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:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),Qe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ze]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:V()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[N,l]}],"outline-w":[{outline:[N,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[N,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,rt]}],"shadow-color":[{shadow:[L]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[v]}],saturate:[{saturate:[I]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[E,l]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,R,J]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ge=We(at);function M(...e){return ge((0,he.clsx)(e))}var ye=require("@radix-ui/react-slot"),ve=require("class-variance-authority"),xe=D(require("react")),we=require("react/jsx-runtime"),it=(0,ve.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"}}}),B=xe.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,we.jsx)(e?ye.Slot:"button",{className:M(it({className:t,size:r,variant:o})),ref:n,...a}));B.displayName="Button";var _=D(require("react")),A=D(require("@radix-ui/react-avatar"));var Z=_.forwardRef(({className:e,...t},r)=>(0,we.jsx)(A.Root,{ref:r,className:M("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Z.displayName=A.Root.displayName;var Q=_.forwardRef(({className:e,...t},r)=>(0,we.jsx)(A.Image,{ref:r,className:M("aspect-square h-full w-full",e),...t}));Q.displayName=A.Image.displayName;var ee=_.forwardRef(({className:e,...t},r)=>(0,we.jsx)(A.Fallback,{ref:r,className:M("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ee.displayName=A.Fallback.displayName;function ke(...e){return e.filter(Boolean).join(" ")}function lt({currentDate:e,setCurrentDate:t,holidays:r,employees:o}){let a=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},s=()=>{t(new Date)};return(0,we.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,we.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,we.jsxs)("div",{className:"sm:flex-auto",children:[(0,we.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,we.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,we.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,we.jsxs)(B,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,we.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,we.jsx)(H.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,we.jsx)(B,{variant:"outline",onClick:s,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"}),(0,we.jsxs)(B,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,we.jsx)("span",{className:"sr-only",children:"Next month"}),(0,we.jsx)(H.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,we.jsx)("div",{className:"mt-8 flow-root",children:(0,we.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,we.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,we.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,we.jsx)("thead",{className:"sticky top-0 z-10 bg-white",children:(0,we.jsxs)("tr",{children:[(0,we.jsx)("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(a)].map((d,m)=>(0,we.jsx)("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:m+1},m))]})}),(0,we.jsx)("tbody",{children:o.map((d,m)=>(0,we.jsxs)("tr",{children:[(0,we.jsx)("td",{className:ke(m!==o.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:(0,we.jsxs)("div",{className:"flex items-center",children:[(0,we.jsxs)(Z,{className:"h-11 w-11",children:[(0,we.jsx)(Q,{src:d.image,alt:d.name}),(0,we.jsx)(ee,{children:d.name.split(" ").map(g=>g[0]).join("")})]}),(0,we.jsx)("div",{className:"ml-4",children:(0,we.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(a)].map((g,v)=>{let x=new Date(e.getFullYear(),e.getMonth(),v+1),b=r.find(w=>w.userId===d.id&&new Date(w.startDate)<=x&&new Date(w.endDate)>=x);return(0,we.jsx)("td",{className:ke(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,we.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${d.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,we.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${v}`)})]},d.id))})]})})})})]})}0&&(module.exports={HolidayGrid});
@@ -1 +1 @@
1
- import{a}from"../../chunk-TYFBZ3Q7.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as HolidayGrid};
1
+ import{a}from"../../chunk-MP3J7UPZ.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as HolidayGrid};