cortex-react-components 1.42.3 → 1.42.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-3FW5YDNM.mjs +1 -0
- package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
- package/dist/chunk-47TRCRZ7.mjs +1 -0
- package/dist/{chunk-REHZTVVN.mjs → chunk-7322R3ID.mjs} +1 -1
- package/dist/{chunk-4KGFHVYD.mjs → chunk-74TGU5CZ.mjs} +1 -1
- package/dist/{chunk-3PC5BLK7.mjs → chunk-7XSAYKJ7.mjs} +1 -1
- package/dist/{chunk-ROEHSKFW.mjs → chunk-AF5ISZTG.mjs} +1 -1
- package/dist/{chunk-AEPYNOEK.mjs → chunk-AS3NR4OU.mjs} +1 -1
- package/dist/{chunk-ZOLLFX4E.mjs → chunk-D3PXELYK.mjs} +1 -1
- package/dist/{chunk-DESYC5BB.mjs → chunk-GHBJK554.mjs} +1 -1
- package/dist/{chunk-Y6CZVVJF.mjs → chunk-HUN2X4VH.mjs} +1 -1
- package/dist/{chunk-YDQUZWFZ.mjs → chunk-HVA2GFDG.mjs} +1 -1
- package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
- package/dist/{chunk-EMZQNDA7.mjs → chunk-IMAQJ7N3.mjs} +1 -1
- package/dist/{chunk-D43ENVPX.mjs → chunk-IPHHUHS3.mjs} +1 -1
- package/dist/chunk-J7XKTH35.mjs +1 -0
- package/dist/{chunk-GFV75XSU.mjs → chunk-JK3XF6LP.mjs} +1 -1
- package/dist/{chunk-AEBN4SQU.mjs → chunk-JP7FA4RR.mjs} +1 -1
- package/dist/{chunk-SHN4XZWD.mjs → chunk-KKLZ6CCZ.mjs} +1 -1
- package/dist/{chunk-A2YLYBNZ.mjs → chunk-KN2GNSS3.mjs} +1 -1
- package/dist/{chunk-3ZRLTNWG.mjs → chunk-KRJQF2ZW.mjs} +1 -1
- package/dist/{chunk-UDX5Y4SA.mjs → chunk-L2PQKIU4.mjs} +1 -1
- package/dist/{chunk-IE2A7UT3.mjs → chunk-LBKMUSVR.mjs} +1 -1
- package/dist/{chunk-MGXZTIQQ.mjs → chunk-LFBWTXXG.mjs} +1 -1
- package/dist/{chunk-EW2X7RMJ.mjs → chunk-M7BWRL34.mjs} +1 -1
- package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
- package/dist/{chunk-4R7S6EEU.mjs → chunk-NLTSDI7A.mjs} +1 -1
- package/dist/{chunk-WPTEMDOP.mjs → chunk-PV5S3GA7.mjs} +1 -1
- package/dist/{chunk-PBAL3B6N.mjs → chunk-Q5EQOIL7.mjs} +1 -1
- package/dist/{chunk-AEDBEVEE.mjs → chunk-Q77U5BXI.mjs} +1 -1
- package/dist/{chunk-HZ5QHCGZ.mjs → chunk-QIGWPB3D.mjs} +1 -1
- package/dist/{chunk-SILLEZTI.mjs → chunk-QZ2ZSGL6.mjs} +1 -1
- package/dist/{chunk-U3RGJJNS.mjs → chunk-R57OVXI5.mjs} +1 -1
- package/dist/{chunk-XBBQGSYP.mjs → chunk-R7P4VVM3.mjs} +1 -1
- package/dist/chunk-RQLWJFYT.mjs +1 -0
- package/dist/chunk-RXJVXPNC.mjs +1 -0
- package/dist/{chunk-GOMLTG5W.mjs → chunk-RZTXT4UD.mjs} +1 -1
- package/dist/chunk-SF7DGZCZ.mjs +1 -0
- package/dist/{chunk-YKDVNCHV.mjs → chunk-UA7SFE4H.mjs} +1 -1
- package/dist/{chunk-PVRWMAHW.mjs → chunk-UK4IPFAO.mjs} +1 -1
- package/dist/{chunk-EI7PFWFS.mjs → chunk-VPVXJCL6.mjs} +1 -1
- package/dist/{chunk-4ZT572BM.mjs → chunk-YDGF5GEU.mjs} +1 -1
- package/dist/{chunk-4L4RAUPG.mjs → chunk-YQZH5MJU.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealCard.d.ts +2 -2
- package/dist/components/CRM/DealCard.js +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.js +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.d.ts +3 -3
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.js +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.d.ts +2 -2
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.d.ts +4 -4
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.d.ts +2 -2
- package/dist/components/CRM/NewCustomerForm.js +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.js +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.d.ts +6 -5
- package/dist/components/CRM/NewDealForm.js +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.js +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/CRM/mockData.d.ts +2 -2
- package/dist/components/CRM/mockData.js +1 -1
- package/dist/components/CRM/mockData.mjs +1 -1
- package/dist/components/CRM/types.d.ts +7 -13
- package/dist/components/CRM/types.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EMWBQUQC.mjs +0 -1
- package/dist/chunk-HIT3PDJA.mjs +0 -1
- package/dist/chunk-HQFNGDDO.mjs +0 -1
- package/dist/chunk-TSPWI4RS.mjs +0 -1
- package/dist/chunk-YOFO7YSO.mjs +0 -1
- package/dist/chunk-ZDNAXLAG.mjs +0 -1
- package/dist/components/CRM/actions.d.ts +0 -7
- package/dist/components/CRM/actions.js +0 -4
- package/dist/components/CRM/actions.mjs +0 -4
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";var Lt=Object.create;var De=Object.defineProperty;var It=Object.getOwnPropertyDescriptor;var Et=Object.getOwnPropertyNames;var zt=Object.getPrototypeOf,Bt=Object.prototype.hasOwnProperty;var Ht=(e,t)=>{for(var o in t)De(e,o,{get:t[o],enumerable:!0})},Xe=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Et(t))!Bt.call(e,s)&&s!==o&&De(e,s,{get:()=>t[s],enumerable:!(a=It(t,s))||a.enumerable});return e};var I=(e,t,o)=>(o=e!=null?Lt(zt(e)):{},Xe(t||!e||!e.__esModule?De(o,"default",{value:e,enumerable:!0}):o,e)),Vt=e=>Xe(De({},"__esModule",{value:!0}),e);var Mo={};Ht(Mo,{CRMKanbanBoard:()=>ko,DealCard:()=>Oe,DealDetails:()=>Ve,KanbanColumn:()=>je,NewCustomerForm:()=>_e,NewDealForm:()=>$e});module.exports=Vt(Mo);var Se=require("react");var Ce=I(require("react")),M=I(require("@radix-ui/react-dialog")),nt=require("lucide-react");var st=require("clsx");var ze="-",Ft=e=>{let t=Gt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{let r=l.split(ze);return r[0]===""&&r.length!==1&&r.shift(),et(r,t)||Wt(l)},getConflictingClassGroupIds:(l,r)=>{let C=o[l]||[];return r&&a[l]?[...C,...a[l]]:C}}},et=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),s=a?et(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(ze);return(l=t.validators.find(({validator:r})=>r(n)))==null?void 0:l.classGroupId},Ze=/^\[(.+)\]$/,Wt=e=>{if(Ze.test(e)){let t=Ze.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Gt=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return Ot(Object.entries(e.classGroups),o).forEach(([n,l])=>{Ee(l,a,n,t)}),a},Ee=(e,t,o,a)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Ye(t,s);n.classGroupId=o;return}if(typeof s=="function"){if(Ut(s)){Ee(s(a),t,o,a);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([n,l])=>{Ee(l,Ye(t,n),o,a)})})},Ye=(e,t)=>{let o=e;return t.split(ze).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ut=e=>e.isThemeGetter,Ot=(e,t)=>t?e.map(([o,a])=>{let s=a.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,r])=>[t+l,r])):n);return[o,s]}):e,_t=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,s=(n,l)=>{o.set(n,l),t++,t>e&&(t=0,a=o,o=new Map)};return{get(n){let l=o.get(n);if(l!==void 0)return l;if((l=a.get(n))!==void 0)return s(n,l),l},set(n,l){o.has(n)?o.set(n,l):s(n,l)}}},tt="!",$t=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,s=t[0],n=t.length,l=r=>{let C=[],w=0,h=0,N;for(let v=0;v<r.length;v++){let c=r[v];if(w===0){if(c===s&&(a||r.slice(v,v+n)===t)){C.push(r.slice(h,v)),h=v+n;continue}if(c==="/"){N=v;continue}}c==="["?w++:c==="]"&&w--}let k=C.length===0?r:r.substring(h),p=k.startsWith(tt),u=p?k.substring(1):k,y=N&&N>h?N-h:void 0;return{modifiers:C,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:y}};return o?r=>o({className:r,parseClassName:l}):l},jt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},Kt=e=>({cache:_t(e.cacheSize),parseClassName:$t(e),...Ft(e)}),qt=/\s+/,Jt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(qt),r="";for(let C=l.length-1;C>=0;C-=1){let w=l[C],{modifiers:h,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:p}=o(w),u=!!p,y=a(u?k.substring(0,p):k);if(!y){if(!u){r=w+(r.length>0?" "+r:r);continue}if(y=a(k),!y){r=w+(r.length>0?" "+r:r);continue}u=!1}let v=jt(h).join(":"),c=N?v+tt:v,x=c+y;if(n.includes(x))continue;n.push(x);let L=s(y,u);for(let W=0;W<L.length;++W){let J=L[W];n.push(c+J)}r=w+(r.length>0?" "+r:r)}return r};function Qt(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ot(t))&&(a&&(a+=" "),a+=o);return a}var ot=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=ot(e[a]))&&(o&&(o+=" "),o+=t);return o};function Xt(e,...t){let o,a,s,n=l;function l(C){let w=t.reduce((h,N)=>N(h),e());return o=Kt(w),a=o.cache.get,s=o.cache.set,n=r,r(C)}function r(C){let w=a(C);if(w)return w;let h=Jt(C,o);return s(C,h),h}return function(){return n(Qt.apply(null,arguments))}}var S=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/z,Zt=/^\z+\/\z+$/,Yt=new Set(["px","full","screen"]),eo=/^(\z+(\.\z+)?)?(xs|sm|md|lg|xl)$/,to=/\z+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|z|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ro=/^(inset_)?-?((\z+)?\.?(\z+)[a-z]+|0)_-?((\z+)?\.?(\z+)[a-z]+|0)/,ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>de(e)||Yt.has(e)||Zt.test(e),$=e=>me(e,"length",uo),de=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>me(e,"number",de),xe=e=>!!e&&Number.isInteger(Number(e)),io=e=>e.endsWith("%")&&de(e.slice(0,-1)),f=e=>rt.test(e),j=e=>eo.test(e),so=new Set(["length","size","percentage"]),no=e=>me(e,so,at),lo=e=>me(e,"position",at),co=new Set(["image","url"]),mo=e=>me(e,co,go),po=e=>me(e,"",fo),ye=()=>!0,me=(e,t,o)=>{let a=rt.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},uo=e=>to.test(e)&&!oo.test(e),at=()=>!1,fo=e=>ro.test(e),go=e=>ao.test(e);var bo=()=>{let e=S("colors"),t=S("spacing"),o=S("blur"),a=S("brightness"),s=S("borderColor"),n=S("borderRadius"),l=S("borderSpacing"),r=S("borderWidth"),C=S("contrast"),w=S("grayscale"),h=S("hueRotate"),N=S("invert"),k=S("gap"),p=S("gradientColorStops"),u=S("gradientColorStopPositions"),y=S("inset"),v=S("margin"),c=S("opacity"),x=S("padding"),L=S("saturate"),W=S("scale"),J=S("sepia"),m=S("skew"),E=S("space"),G=S("translate"),ce=()=>["auto","contain","none"],ve=()=>["auto","hidden","clip","visible","scroll"],Ae=()=>["auto",f,t],R=()=>[f,t],Ke=()=>["",_,$],Ne=()=>["auto",de,f],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["solid","dashed","dotted","double","none"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",f],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>[de,f];return{cacheSize:500,separator:":",theme:{colors:[ye],spacing:[_,$],blur:["none","",j,f],brightness:O(),borderColor:[e],borderRadius:["none","","full",j,f],borderSpacing:R(),borderWidth:Ke(),contrast:O(),grayscale:he(),hueRotate:O(),invert:he(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[io,$],inset:Ae(),margin:Ae(),opacity:O(),padding:R(),saturate:O(),scale:O(),sepia:he(),skew:O(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[j]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...qe(),f]}],overflow:[{overflow:ve()}],"overflow-x":[{"overflow-x":ve()}],"overflow-y":[{"overflow-y":ve()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xe,f]}],basis:[{basis:Ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",xe,f]}],"grid-cols":[{"grid-cols":[ye]}],"col-start-end":[{col:["auto",{span:["full",xe,f]},f]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[ye]}],"row-start-end":[{row:["auto",{span:[xe,f]},f]}],"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",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[j]},j]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",j,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ie]}],"font-family":[{font:[ye]}],"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",f]}],"line-clamp":[{"line-clamp":["none",de,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[c]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_,$]}],"underline-offset":[{"underline-offset":["auto",_,f]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],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",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[c]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),lo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",no]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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-nt":[{"rounded-nt":[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:[r]}],"border-w-x":[{"border-x":[r]}],"border-w-y":[{"border-y":[r]}],"border-w-s":[{"border-s":[r]}],"border-w-e":[{"border-e":[r]}],"border-w-t":[{"border-t":[r]}],"border-w-r":[{"border-r":[r]}],"border-w-b":[{"border-b":[r]}],"border-w-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[c]}],"border-style":[{border:[...Re(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[r]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[c]}],"divide-style":[{divide:Re()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[_,f]}],"outline-w":[{outline:[_,$]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[c]}],"ring-offset-w":[{"ring-offset":[_,$]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",j,po]}],"shadow-color":[{shadow:[ye]}],opacity:[{opacity:[c]}],"mix-blend":[{"mix-blend":[...Je(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Je()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",j,f]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[N]}],saturate:[{saturate:[L]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[c]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[W]}],"scale-x":[{"scale-x":[W]}],"scale-y":[{"scale-y":[W]}],rotate:[{rotate:[xe,f]}],"translate-x":[{"translate-x":[G]}],"translate-y":[{"translate-y":[G]}],"skew-x":[{"skew-x":[m]}],"skew-y":[{"skew-y":[m]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],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","z-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_,$,Ie]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-nt","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-nt"],"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 it=Xt(bo);function g(...e){return it((0,st.clsx)(e))}var z=require("react/jsx-runtime"),pe=M.Root,lt=M.Trigger,vo=M.Portal;var ct=Ce.forwardRef(({className:e,...t},o)=>(0,z.jsx)(M.Overlay,{ref:o,className:g("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ct.displayName=M.Overlay.displayName;var Q=Ce.forwardRef(({className:e,children:t,...o},a)=>(0,z.jsxs)(vo,{children:[(0,z.jsx)(ct,{}),(0,z.jsxs)(M.Content,{ref:a,className:g("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,z.jsxs)(M.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,z.jsx)(nt.X,{className:"h-4 w-4"}),(0,z.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Q.displayName=M.Content.displayName;var X=({className:e,...t})=>(0,z.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});X.displayName="DialogHeader";var ho=({className:e,...t})=>(0,z.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ho.displayName="DialogFooter";var Z=Ce.forwardRef(({className:e,...t},o)=>(0,z.jsx)(M.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...t}));Z.displayName=M.Title.displayName;var xo=Ce.forwardRef(({className:e,...t},o)=>(0,z.jsx)(M.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...t}));xo.displayName=M.Description.displayName;var dt=require("@radix-ui/react-slot"),mt=require("class-variance-authority"),pt=I(require("react")),yo=(0,mt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-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=pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...s},n)=>(0,z.jsx)(e?dt.Slot:"button",{className:g(yo({className:t,size:o,variant:a})),ref:n,...s}));B.displayName="Button";var ft=I(require("react"));var F=ft.forwardRef(({className:e,type:t,...o},a)=>(0,z.jsx)("input",{type:t,className:g("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));F.displayName="Input";var bt=I(require("react")),Be=I(require("@radix-ui/react-label"));var Co=(0,mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),T=bt.forwardRef(({className:e,...t},o)=>(0,z.jsx)(Be.Root,{ref:o,className:g(Co(),e),...t}));T.displayName=Be.Root.displayName;var xt=I(require("react")),Y=xt.forwardRef(({className:e,...t},o)=>(0,z.jsx)("textarea",{className:g("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}));Y.displayName="Textarea";var b=I(require("@radix-ui/react-select")),K=I(require("react")),ue=b.Root;var fe=b.Value,te=K.forwardRef(({children:e,className:t,...o},a)=>(0,z.jsxs)(b.Trigger,{className:g("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...o,children:[e,(0,z.jsx)(b.Icon,{asChild:!0,children:(0,z.jsx)(nt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));te.displayName=b.Trigger.displayName;var Ct=K.forwardRef(({className:e,...t},o)=>(0,z.jsx)(b.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,z.jsx)(nt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=b.ScrollUpButton.displayName;var wt=K.forwardRef(({className:e,...t},o)=>(0,z.jsx)(b.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,z.jsx)(nt.ChevronDown,{className:"h-4 w-4"})}));wt.displayName=b.ScrollDownButton.displayName;var oe=K.forwardRef(({children:e,className:t,position:o="popper",...a},s)=>(0,z.jsx)(b.Portal,{children:(0,z.jsxs)(b.Content,{className:g("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-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:s,...a,children:[(0,z.jsx)(Ct,{}),(0,z.jsx)(b.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,z.jsx)(wt,{})]})}));oe.displayName=b.Content.displayName;var wo=K.forwardRef(({className:e,...t},o)=>(0,z.jsx)(b.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));wo.displayName=b.Label.displayName;var re=K.forwardRef(({children:e,className:t,...o},a)=>(0,z.jsxs)(b.Item,{className:g("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...o,children:[(0,z.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,z.jsx)(b.ItemIndicator,{children:(0,z.jsx)(nt.Check,{className:"h-4 w-4"})})}),(0,z.jsx)(b.ItemText,{children:e})]}));re.displayName=b.Item.displayName;var So=K.forwardRef(({className:e,...t},o)=>(0,z.jsx)(b.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));So.displayName=b.Separator.displayName;var we=I(require("@radix-ui/react-checkbox")),Nt=I(require("react")),ae=Nt.forwardRef(({className:e,...t},o)=>(0,z.jsx)(we.Root,{className:g("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,z.jsx)(we.Indicator,{className:g("flex items-center justify-center text-current"),children:(0,z.jsx)(nt.Check,{className:"h-4 w-4"})})}));ae.displayName=we.Root.displayName;var No=(0,mt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ke({className:e,variant:t,...o}){return(0,z.jsx)("div",{className:g(No({variant:t}),e),...o})}var He=I(require("react")),V=I(require("@radix-ui/react-scroll-area"));var ge=He.forwardRef(({className:e,children:t,...o},a)=>(0,z.jsxs)(V.Root,{ref:a,className:g("relative overflow-hidden",e),...o,children:[(0,z.jsx)(V.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,z.jsx)(Pt,{}),(0,z.jsx)(V.Corner,{})]}));ge.displayName=V.Root.displayName;var Pt=He.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,z.jsx)(V.ScrollAreaScrollbar,{ref:a,orientation:t,className:g("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,z.jsx)(V.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Pt.displayName=V.ScrollAreaScrollbar.displayName;function Ve({deal:e,users:t,customer:o,categories:a,onClose:s,onSave:n,onAddComment:l}){var J;let[r,C]=(0,Se.useState)({...e,value:e.value||0}),[w,h]=(0,Se.useState)(""),[N,k]=(0,Se.useState)(!1),[p,u]=(0,Se.useState)(null);(0,Se.useEffect)(()=>{k(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let y=()=>{n(r),k(!1),u(null)},v=(m,E)=>{C(G=>({...G,[m]:E}))},c=m=>{let E=r.categories.includes(m)?r.categories.filter(G=>G!==m):[...r.categories,m];v("categories",E)},x=()=>{w.trim()&&(l({id:Date.now().toString(),text:w,timestamp:new Date().toISOString()}),h(""))},L=m=>{switch(m){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"}},W=(m,E,G)=>{let ce=p===m;return(0,z.jsxs)("div",{className:"grid gap-2",children:[(0,z.jsx)(T,{className:"text-sm font-medium text-gray-500",children:E}),(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[G,ce?(0,z.jsx)(F,{value:r[m],onChange:ve=>v(m,ve.target.value),onBlur:()=>u(null),autoFocus:!0}):(0,z.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>u(m),children:r[m]}),!ce&&(0,z.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>u(m),children:(0,z.jsx)(nt.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,z.jsx)(pe,{open:!0,children:(0,z.jsxs)(Q,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,z.jsxs)(X,{className:"flex flex-row items-center justify-between",children:[(0,z.jsx)(Z,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,z.jsxs)("div",{className:"flex space-x-2",children:[(0,z.jsx)(B,{variant:"outline",onClick:s,children:"Close"}),(0,z.jsxs)(B,{onClick:y,disabled:!N,children:[(0,z.jsx)(nt.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,z.jsxs)(ge,{className:"flex-grow pr-4",children:[(0,z.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,z.jsx)("div",{className:"grid gap-2",children:p==="value"?(0,z.jsx)(F,{type:"number",value:r.value,onChange:m=>v("value",Number(m.target.value)),onBlur:()=>u(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,z.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("value"),children:["\xA3",(J=r.value)==null?void 0:J.toLocaleString()]})}),(0,z.jsxs)("div",{className:"grid gap-2",children:[(0,z.jsx)(T,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),p==="assignee"?(0,z.jsxs)(ue,{value:r.assignee,onValueChange:m=>v("assignee",m),children:[(0,z.jsx)(te,{children:(0,z.jsx)(fe,{placeholder:"Select assignee"})}),(0,z.jsx)(oe,{children:t&&t.map(m=>(0,z.jsx)(re,{value:m.id.toString(),children:m.name},m.id))})]}):(0,z.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("assignee"),children:[(0,z.jsx)(nt.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,z.jsx)("span",{children:r.assignee})]})]}),(0,z.jsxs)("div",{className:"grid gap-2",children:[(0,z.jsx)(T,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),p==="closureDate"?(0,z.jsx)(F,{type:"date",value:r.closureDate.split("T")[0],onChange:m=>v("closureDate",m.target.value),onBlur:()=>u(null),autoFocus:!0}):(0,z.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("closureDate"),children:[(0,z.jsx)(nt.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,z.jsx)("span",{children:new Date(r.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,z.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,z.jsxs)("div",{className:"grid gap-2",children:[(0,z.jsx)(T,{className:"text-sm font-medium text-gray-500",children:"Description"}),p==="description"?(0,z.jsx)(Y,{value:r.description,onChange:m=>v("description",m.target.value),onBlur:()=>u(null),className:"min-h-[100px]",autoFocus:!0}):(0,z.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>u("description"),children:r.description})]})}),(0,z.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,z.jsxs)("div",{className:"grid gap-2",children:[(0,z.jsx)(T,{className:"text-sm font-medium text-gray-500",children:"Status"}),p==="status"?(0,z.jsxs)(ue,{value:r.status,onValueChange:m=>{v("status",m),u(null)},children:[(0,z.jsx)(te,{children:(0,z.jsx)(fe,{placeholder:"Select status"})}),(0,z.jsx)(oe,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(m=>(0,z.jsx)(re,{value:m,children:m},m))})]}):(0,z.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("status"),children:r.status})]}),(0,z.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,z.jsx)(T,{className:"text-sm font-medium text-gray-500",children:"Categories"}),p==="categories"?(0,z.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(m=>(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsx)(ae,{id:m.id,checked:r.categories.includes(m.id),onCheckedChange:()=>c(m.id)}),(0,z.jsx)("label",{htmlFor:m.id,className:`text-sm font-medium ${L(m.type)} px-2 py-1 rounded`,children:m.name})]},m.id))}):(0,z.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("categories"),children:r.categories.map(m=>{let E=a.find(G=>G.id===m);return E?(0,z.jsx)(ke,{variant:"secondary",className:L(E.type),children:E.name},E.id):null})})]})]}),(0,z.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,z.jsxs)("div",{className:"grid gap-2",children:[(0,z.jsx)(T,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,z.jsx)(ge,{className:"h-[200px] overflow-y-auto",children:(0,z.jsx)("div",{className:"space-y-2",children:r.comments.map(m=>(0,z.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,z.jsx)("p",{className:"text-sm text-gray-700",children:m.text}),(0,z.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[m.author," - ",new Date(m.timestamp).toLocaleString()]})]},m.id))})}),(0,z.jsxs)("div",{className:"flex mt-2",children:[(0,z.jsx)(F,{value:w,onChange:m=>h(m.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,z.jsxs)(B,{onClick:x,className:"ml-2",children:[(0,z.jsx)(nt.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,z.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.lastModified).toLocaleString()]})]})]})]})})}var se=I(require("react"));var Fe=se.forwardRef(({className:e,...t},o)=>(0,z.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fe.displayName="Card";var We=se.forwardRef(({className:e,...t},o)=>(0,z.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...t}));We.displayName="CardHeader";var Ge=se.forwardRef(({className:e,...t},o)=>(0,z.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Ro=se.forwardRef(({className:e,...t},o)=>(0,z.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));Ro.displayName="CardDescription";var Ue=se.forwardRef(({className:e,...t},o)=>(0,z.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...t}));Ue.displayName="CardContent";var Do=se.forwardRef(({className:e,...t},o)=>(0,z.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...t}));Do.displayName="CardFooter";function Oe({deal:e,customer:t,categories:o,onClick:a}){let s=o.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,z.jsxs)(Fe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,z.jsxs)(We,{className:"pb-2",children:[(0,z.jsx)("div",{className:"flex justify-between items-center",children:(0,z.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,z.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,z.jsxs)(Ue,{children:[(0,z.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,z.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,z.jsx)(nt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,z.jsx)("span",{children:e.assignee})]}),(0,z.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,z.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,z.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,z.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,z.jsx)(nt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,z.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,z.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,z.jsx)(ke,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var Te=require("react-beautiful-dnd");function _e({onSubmit:e}){let[t,o]=(0,Se.useState)({name:"",intro:"",active:!0});return(0,z.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({id:Date.now().toString(),...t}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(T,{htmlFor:"customerName",children:"Customer Name"}),(0,z.jsx)(F,{id:"customerName",value:t.name,onChange:s=>o({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(T,{htmlFor:"customerIntro",children:"Intro"}),(0,z.jsx)(Y,{id:"customerIntro",value:t.intro,onChange:s=>o({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsx)(ae,{id:"activeCustomer",checked:t.active,onCheckedChange:s=>o({...t,active:s})}),(0,z.jsx)(T,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,z.jsx)(B,{type:"submit",className:"w-full",children:"Add Customer"})]})}function $e({customers:e,users:t,categories:o,onSubmit:a,initialDeal:s,onAddCustomer:n}){let[l,r]=(0,Se.useState)(s||{customerId:"",value:0,assignee:"",status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",lastModified:new Date().toISOString(),comments:[],description:""}),[C,w]=(0,Se.useState)(!1),[h,N]=(0,Se.useState)({});(0,Se.useEffect)(()=>{s&&r(s)},[s]);let k=()=>{let c={};return l.customerId||(c.customerId="Customer is required"),l.value||(c.value="Value is required"),l.assignee||(c.assignee="Assignee is required"),l.closureDate||(c.closureDate="Closure Date is required"),N(c),Object.keys(c).length===0},p=c=>{c.preventDefault(),k()&&(a({...l,id:l.id||Date.now().toString(),lastModified:new Date().toISOString()}),r({customerId:"",value:0,assignee:"",description:"",status:"Cold",closureDate:""}),N({}))},u=c=>{r(x=>{var L;return{...x,categories:(L=x.categories)!=null&&L.includes(c)?x.categories.filter(W=>W!==c):[...x.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"}},v=c=>{e.push(c),r({...l,customerId:c.id}),w(!1),n(c)};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("form",{onSubmit:p,className:"space-y-6",children:[(0,z.jsx)(ge,{className:"h-[60vh] pr-4",children:(0,z.jsxs)("div",{className:"space-y-6",children:[(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(T,{htmlFor:"customer",children:"Customer"}),(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsxs)(ue,{value:l.customerId,onValueChange:c=>r({...l,customerId:c}),children:[(0,z.jsx)(te,{children:(0,z.jsx)(fe,{placeholder:"Select customer"})}),(0,z.jsx)(oe,{children:e.map(c=>(0,z.jsx)(re,{value:c.id,children:c.name},c.id))})]}),(0,z.jsx)(B,{variant:"outline",size:"icon",onClick:()=>w(!0),children:(0,z.jsx)(nt.PlusIcon,{className:"w-5 h-5"})})]}),h.customerId&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:h.customerId})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(T,{htmlFor:"value",children:"Value"}),(0,z.jsx)(F,{id:"value",type:"number",value:l.value||"",onChange:c=>r({...l,value:Number.parseFloat(c.target.value)}),placeholder:"Enter deal value"}),h.value&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:h.value})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(T,{htmlFor:"assignee",children:"Assignee"}),(0,z.jsxs)(ue,{value:l.assignee,onValueChange:c=>r({...l,assignee:c}),children:[(0,z.jsx)(te,{children:(0,z.jsx)(fe,{placeholder:"Select assignee"})}),(0,z.jsx)(oe,{children:t&&t.map(c=>(0,z.jsx)(re,{value:c.id.toString(),children:c.name},c.id))})]}),h.assignee&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:h.assignee})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(T,{htmlFor:"description",children:"Description"}),(0,z.jsx)(Y,{id:"description",value:l.description||"",onChange:c=>r({...l,description:c.target.value}),placeholder:"Enter deal description"})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(T,{children:"Categories"}),(0,z.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(c=>(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)("h4",{className:"text-sm font-medium",children:c.charAt(0).toUpperCase()+c.slice(1)}),(0,z.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(x=>x.type===c).map(x=>{var L;return(0,z.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,z.jsx)(ae,{id:x.id,checked:(L=l.categories)==null?void 0:L.includes(x.id),onCheckedChange:()=>u(x.id)}),(0,z.jsx)("label",{htmlFor:x.id,className:`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${y(x.type)}`,children:x.name})]},x.id)})})]},c))})]}),(0,z.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,z.jsx)(T,{htmlFor:"closureDate",children:"Closure Date"}),(0,z.jsx)(F,{id:"closureDate",type:"date",value:l.closureDate,onChange:c=>r({...l,closureDate:c.target.value})}),h.closureDate&&(0,z.jsx)("p",{className:"text-red-500 text-sm",children:h.closureDate})]})]})}),(0,z.jsx)(B,{type:"submit",className:"w-full",children:s?"Update Deal":"Add Deal"})]}),(0,z.jsx)(pe,{open:C,onOpenChange:w,children:(0,z.jsxs)(Q,{children:[(0,z.jsx)(X,{children:(0,z.jsx)(Z,{children:"Add New Customer"})}),(0,z.jsx)(_e,{onSubmit:v})]})})]})}function je({status:e,deals:t,users:o,customers:a,categories:s,onDealClick:n,calculateColumnValue:l,calculateWeightedValue:r,addNewDeal:C,onAddCustomer:w}){return(0,z.jsxs)("div",{className:"flex flex-col w-80",children:[(0,z.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),C&&(0,z.jsxs)(pe,{children:[(0,z.jsx)(lt,{asChild:!0,children:(0,z.jsxs)(B,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,z.jsx)(nt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,z.jsxs)(Q,{children:[(0,z.jsx)(X,{children:(0,z.jsx)(Z,{children:"Add New Deal"})}),(0,z.jsx)($e,{customers:a,users:o,categories:s,onSubmit:C,onAddCustomer:w})]})]}),(0,z.jsx)(Te.Droppable,{droppableId:e,children:h=>(0,z.jsxs)("div",{ref:h.innerRef,...h.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((N,k)=>(0,z.jsx)(Te.Draggable,{draggableId:N.id,index:k,children:p=>(0,z.jsx)("div",{ref:p.innerRef,...p.draggableProps,...p.dragHandleProps,children:(0,z.jsx)(Oe,{deal:N,customer:a.find(u=>u.id===N.customerId),categories:s,onClick:()=>n(N)})})},N.id)),h.placeholder]})}),(0,z.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,z.jsxs)("p",{className:"font-semibold",children:["Total: ",(0,z.jsxs)("span",{className:"text-green-600",children:["$",l(t).toLocaleString()]})]}),(0,z.jsxs)("p",{className:"font-semibold",children:["Weighted: ",(0,z.jsxs)("span",{className:"text-blue-600",children:["$",r(t,e).toLocaleString()]})]})]})]})}var Po=["Cold","Qualified","Proposal","SoW","Won","Lost"];function ko({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:s}){let[n,l]=(0,Se.useState)(null),[r,C]=(0,Se.useState)(e),w=p=>r.deals.filter(u=>u.status===p),h=p=>p.reduce((u,y)=>u+(y.value||0),0),N=(p,u)=>{let y={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return p.reduce((v,c)=>v+(c.value||0)*y[u],0)},k=(0,Se.useCallback)(p=>{let{source:u,destination:y}=p;if(!y||u.droppableId===y.droppableId&&u.index===y.index)return;let v=u.droppableId,c=y.droppableId;console.log("Moving from ",v,"to",c);let x=[...r.deals],[L]=x.splice(u.index,1);L.status=c,x.splice(y.index,0,L),C({...r,deals:x}),o(L)},[r,o]);return(0,z.jsx)(Te.DragDropContext,{onDragEnd:k,children:(0,z.jsxs)("div",{className:"p-4",children:[(0,z.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:Po.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let u=w(p);return(0,z.jsx)(je,{status:p,deals:u,customers:e.customers,users:e.users,categories:e.categories,onDealClick:l,calculateColumnValue:h,calculateWeightedValue:N,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:s},p)})}),n&&(0,z.jsx)(Ve,{deal:n,users:e.users,customer:r.customers.find(p=>p.id===n.customerId),categories:r.categories,onClose:()=>l(null),onSave:o,onAddComment:p=>a(n.id,p)})]})})}0&&(module.exports={CRMKanbanBoard,DealCard,DealDetails,KanbanColumn,NewCustomerForm,NewDealForm});
|
|
5
|
+
"use strict";var It=Object.create;var De=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Bt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var o in t)De(e,o,{get:t[o],enumerable:!0})},Xe=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zt(t))!Ht.call(e,n)&&n!==o&&De(e,n,{get:()=>t[n],enumerable:!(a=Et(t,n))||a.enumerable});return e};var B=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Xe(t||!e||!e.__esModule?De(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Xe(De({},"__esModule",{value:!0}),e);var Mo={};Vt(Mo,{CRMKanbanBoard:()=>To,DealCard:()=>Ue,DealDetails:()=>Ve,KanbanColumn:()=>Ke,NewCustomerForm:()=>_e,NewDealForm:()=>je});module.exports=Ft(Mo);var Ne=require("react");var we=B(require("react")),A=B(require("@radix-ui/react-dialog")),nt=require("lucide-react");var st=require("clsx");var ze="-",Wt=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{let r=d.split(ze);return r[0]===""&&r.length!==1&&r.shift(),et(r,t)||Gt(d)},getConflictingClassGroupIds:(d,r)=>{let b=o[d]||[];return r&&a[d]?[...b,...a[d]]:b}}},et=(e,t)=>{var d;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),n=a?et(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(ze);return(d=t.validators.find(({validator:r})=>r(i)))==null?void 0:d.classGroupId},Ze=/^\[(.+)\]$/,Gt=e=>{if(Ze.test(e)){let t=Ze.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ot=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,d])=>{Ee(d,a,i,t)}),a},Ee=(e,t,o,a)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:Ye(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Ut(n)){Ee(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,d])=>{Ee(d,Ye(t,i),o,a)})})},Ye=(e,t)=>{let o=e;return t.split(ze).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ut=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let n=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,r])=>[t+d,r])):i);return[o,n]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,n=(i,d)=>{o.set(i,d),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=a.get(i))!==void 0)return n(i,d),d},set(i,d){o.has(i)?o.set(i,d):n(i,d)}}},tt="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,n=t[0],i=t.length,d=r=>{let b=[],C=0,w=0,y;for(let v=0;v<r.length;v++){let S=r[v];if(C===0){if(S===n&&(a||r.slice(v,v+i)===t)){b.push(r.slice(w,v)),w=v+i;continue}if(S==="/"){y=v;continue}}S==="["?C++:S==="]"&&C--}let D=b.length===0?r:r.substring(w),p=D.startsWith(tt),u=p?D.substring(1):D,x=y&&y>w?y-w:void 0;return{modifiers:b,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:x}};return o?r=>o({className:r,parseClassName:d}):d},$t=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},qt=e=>({cache:jt(e.cacheSize),parseClassName:Kt(e),...Wt(e)}),Jt=/\H+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=t,i=[],d=e.trim().split(Jt),r="";for(let b=d.length-1;b>=0;b-=1){let C=d[b],{modifiers:w,hasImportantModifier:y,baseClassName:D,maybePostfixModifierPosition:p}=o(C),u=!!p,x=a(u?D.substring(0,p):D);if(!x){if(!u){r=C+(r.length>0?" "+r:r);continue}if(x=a(D),!x){r=C+(r.length>0?" "+r:r);continue}u=!1}let v=$t(w).join(":"),S=y?v+tt:v,T=S+x;if(i.includes(T))continue;i.push(T);let z=n(x,u);for(let G=0;G<z.length;++G){let m=z[G];i.push(S+m)}r=C+(r.length>0?" "+r:r)}return r};function Xt(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ot(t))&&(a&&(a+=" "),a+=o);return a}var ot=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=ot(e[a]))&&(o&&(o+=" "),o+=t);return o};function Zt(e,...t){let o,a,n,i=d;function d(b){let C=t.reduce((w,y)=>y(w),e());return o=qt(C),a=o.cache.get,n=o.cache.set,i=r,r(b)}function r(b){let C=a(b);if(C)return C;let w=Qt(b,o);return n(b,w),w}return function(){return i(Xt.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oo=/\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$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ao=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>ue(e,"number",pe),ye=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),f=e=>rt.test(e),J=e=>to.test(e),no=new Set(["length","size","percentage"]),lo=e=>ue(e,no,at),co=e=>ue(e,"position",at),mo=new Set(["image","url"]),po=e=>ue(e,mo,bo),uo=e=>ue(e,"",go),Ce=()=>!0,ue=(e,t,o)=>{let a=rt.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},fo=e=>oo.test(e)&&!ro.test(e),at=()=>!1,go=e=>ao.test(e),bo=e=>io.test(e);var vo=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),a=P("brightness"),n=P("borderColor"),i=P("borderRadius"),d=P("borderSpacing"),r=P("borderWidth"),b=P("contrast"),C=P("grayscale"),w=P("hueRotate"),y=P("invert"),D=P("gap"),p=P("gradientColorStops"),u=P("gradientColorStopPositions"),x=P("inset"),v=P("margin"),S=P("opacity"),T=P("padding"),z=P("saturate"),G=P("scale"),m=P("sepia"),R=P("skew"),O=P("space"),l=P("translate"),E=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",f,t],N=()=>[f,t],$e=()=>["",$,q],Re=()=>["auto",pe,f],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Pe=()=>["solid","dashed","dotted","double","none"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["start","end","center","between","around","evenly","stretch"],xe=()=>["","0",f],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[pe,f];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[$,q],blur:["none","",J,f],brightness:K(),borderColor:[e],borderRadius:["none","","full",J,f],borderSpacing:N(),borderWidth:$e(),contrast:K(),grayscale:xe(),hueRotate:K(),invert:xe(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:me(),margin:me(),opacity:K(),padding:N(),saturate:K(),scale:K(),sepia:xe(),skew:K(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...qe(),f]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ye,f]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",ye,f]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",ye,f]},f]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[ye,f]},f]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[D]}],"gap-x":[{"gap-x":[D]}],"gap-y":[{"gap-y":[D]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ie]}],"font-family":[{font:[Ce]}],"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",f]}],"line-clamp":[{"line-clamp":["none",pe,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$,q]}],"underline-offset":[{"underline-offset":["auto",$,f]}],"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:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],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",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),co]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-H":[{"rounded-H":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[r]}],"border-w-x":[{"border-x":[r]}],"border-w-y":[{"border-y":[r]}],"border-w-H":[{"border-H":[r]}],"border-w-e":[{"border-e":[r]}],"border-w-t":[{"border-t":[r]}],"border-w-r":[{"border-r":[r]}],"border-w-b":[{"border-b":[r]}],"border-w-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...Pe(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[r]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:Pe()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-H":[{"border-H":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Pe()]}],"outline-offset":[{"outline-offset":[$,f]}],"outline-w":[{outline:[$,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[$,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...Je(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Je()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",J,f]}],grayscale:[{grayscale:[C]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[y]}],saturate:[{saturate:[z]}],sepia:[{sepia:[m]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[C]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[ye,f]}],"translate-x":[{"translate-x":[l]}],"translate-y":[{"translate-y":[l]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],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","H-resize","w-resize","Ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$,q,Ie]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-H","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-H":["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-H","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-H","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 it=Zt(vo);function g(...e){return it((0,st.clsx)(e))}var H=require("react/jsx-runtime"),fe=A.Root,lt=A.Trigger,ho=A.Portal;var ct=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(A.Overlay,{ref:o,className:g("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ct.displayName=A.Overlay.displayName;var Z=we.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(ho,{children:[(0,H.jsx)(ct,{}),(0,H.jsxs)(A.Content,{ref:a,className:g("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,H.jsxs)(A.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,H.jsx)(nt.H,{className:"h-4 w-4"}),(0,H.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Z.displayName=A.Content.displayName;var Y=({className:e,...t})=>(0,H.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";var xo=({className:e,...t})=>(0,H.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xo.displayName="DialogFooter";var ee=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(A.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...t}));ee.displayName=A.Title.displayName;var yo=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(A.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...t}));yo.displayName=A.Description.displayName;var dt=require("@radix-ui/react-slot"),mt=require("class-variance-authority"),pt=B(require("react")),Co=(0,mt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-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=pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...n},i)=>(0,H.jsx)(e?dt.Slot:"button",{className:g(Co({className:t,size:o,variant:a})),ref:i,...n}));V.displayName="Button";var ft=B(require("react"));var _=ft.forwardRef(({className:e,type:t,...o},a)=>(0,H.jsx)("input",{type:t,className:g("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));_.displayName="Input";var bt=B(require("react")),Be=B(require("@radix-ui/react-label"));var wo=(0,mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),L=bt.forwardRef(({className:e,...t},o)=>(0,H.jsx)(Be.Root,{ref:o,className:g(wo(),e),...t}));L.displayName=Be.Root.displayName;var xt=B(require("react")),te=xt.forwardRef(({className:e,...t},o)=>(0,H.jsx)("textarea",{className:g("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}));te.displayName="Textarea";var h=B(require("@radix-ui/react-select")),Q=B(require("react")),ge=h.Root;var be=h.Value,re=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.jsxs)(h.Trigger,{className:g("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...o,children:[e,(0,H.jsx)(h.Icon,{asChild:!0,children:(0,H.jsx)(nt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));re.displayName=h.Trigger.displayName;var Ct=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(nt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=h.ScrollUpButton.displayName;var wt=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(nt.ChevronDown,{className:"h-4 w-4"})}));wt.displayName=h.ScrollDownButton.displayName;var ae=Q.forwardRef(({children:e,className:t,position:o="popper",...a},n)=>(0,H.jsx)(h.Portal,{children:(0,H.jsxs)(h.Content,{className:g("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-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:n,...a,children:[(0,H.jsx)(Ct,{}),(0,H.jsx)(h.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,H.jsx)(wt,{})]})}));ae.displayName=h.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=h.Label.displayName;var ie=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.jsxs)(h.Item,{className:g("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...o,children:[(0,H.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,H.jsx)(h.ItemIndicator,{children:(0,H.jsx)(nt.Check,{className:"h-4 w-4"})})}),(0,H.jsx)(h.ItemText,{children:e})]}));ie.displayName=h.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=h.Separator.displayName;var Se=B(require("@radix-ui/react-checkbox")),Nt=B(require("react")),se=Nt.forwardRef(({className:e,...t},o)=>(0,H.jsx)(Se.Root,{className:g("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,H.jsx)(Se.Indicator,{className:g("flex items-center justify-center text-current"),children:(0,H.jsx)(nt.Check,{className:"h-4 w-4"})})}));se.displayName=Se.Root.displayName;var Ro=(0,mt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Te({className:e,variant:t,...o}){return(0,H.jsx)("div",{className:g(Ro({variant:t}),e),...o})}var He=B(require("react")),W=B(require("@radix-ui/react-scroll-area"));var ve=He.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(W.Root,{ref:a,className:g("relative overflow-hidden",e),...o,children:[(0,H.jsx)(W.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,H.jsx)(Dt,{}),(0,H.jsx)(W.Corner,{})]}));ve.displayName=W.Root.displayName;var Dt=He.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,H.jsx)(W.ScrollAreaScrollbar,{ref:a,orientation:t,className:g("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,H.jsx)(W.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Dt.displayName=W.ScrollAreaScrollbar.displayName;function Ve({deal:e,users:t,customer:o,categories:a,onClose:n,onSave:i,onAddComment:d}){var m,R,O;let[r,b]=(0,Ne.useState)({...e,value:e.value||0}),[C,w]=(0,Ne.useState)(""),[y,D]=(0,Ne.useState)(!1),[p,u]=(0,Ne.useState)(null);(0,Ne.useEffect)(()=>{D(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let x=()=>{i(r),D(!1),u(null)},v=(l,E)=>{b(U=>({...U,[l]:E}))},S=l=>{let E=r.categories.includes(l)?r.categories.filter(U=>U!==l):[...r.categories,l];v("categories",E)},T=()=>{C.trim()&&(d({id:Date.now().toString(),text:C,timestamp:new Date().toISOString()}),w(""))},z=l=>{switch(l){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},G=(l,E,U)=>{let me=p===l;return(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(L,{className:"text-sm font-medium text-gray-500",children:E}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[U,me?(0,H.jsx)(_,{value:r[l],onChange:N=>v(l,N.target.value),onBlur:()=>u(null),autoFocus:!0}):(0,H.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>u(l),children:r[l]}),!me&&(0,H.jsx)(V,{variant:"ghost",size:"sm",onClick:()=>u(l),children:(0,H.jsx)(nt.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,H.jsx)(fe,{open:!0,children:(0,H.jsxs)(Z,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,H.jsxs)(Y,{className:"flex flex-row items-center justify-between",children:[(0,H.jsx)(ee,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,H.jsxs)("div",{className:"flex space-x-2",children:[(0,H.jsx)(V,{variant:"outline",onClick:n,children:"Close"}),(0,H.jsxs)(V,{onClick:x,disabled:!y,children:[(0,H.jsx)(nt.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,H.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,H.jsx)("div",{className:"grid gap-2",children:p==="value"?(0,H.jsx)(_,{type:"number",value:r.value,onChange:l=>v("value",Number(l.target.value)),onBlur:()=>u(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,H.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("value"),children:["\xA3",(m=r.value)==null?void 0:m.toLocaleString()]})}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),p==="assignee"?(0,H.jsxs)(ge,{value:((O=(R=r==null?void 0:r.assignee)==null?void 0:R.id)==null?void 0:O.toString())||"",onValueChange:l=>v("assignee",l),children:[(0,H.jsx)(re,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ae,{children:t&&t.map(l=>{var E;return(0,H.jsx)(ie,{value:((E=l==null?void 0:l.id)==null?void 0:E.toString())||"",children:l.name},l.id)})})]}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("assignee"),children:[(0,H.jsx)(nt.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:r.assignee.name})]})]}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),p==="closureDate"?(0,H.jsx)(_,{type:"date",value:r.closureDate.split("T")[0],onChange:l=>v("closureDate",l.target.value),onBlur:()=>u(null),autoFocus:!0}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("closureDate"),children:[(0,H.jsx)(nt.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:new Date(r.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,H.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Description"}),p==="description"?(0,H.jsx)(te,{value:r.description,onChange:l=>v("description",l.target.value),onBlur:()=>u(null),className:"min-h-[100px]",autoFocus:!0}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>u("description"),children:r.description})]})}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Status"}),p==="status"?(0,H.jsxs)(ge,{value:r.status,onValueChange:l=>{v("status",l),u(null)},children:[(0,H.jsx)(re,{children:(0,H.jsx)(be,{placeholder:"Select status"})}),(0,H.jsx)(ae,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,H.jsx)(ie,{value:l,children:l},l))})]}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("status"),children:r.status})]}),(0,H.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,H.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Categories"}),p==="categories"?(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(se,{id:l.id,checked:r.categories.includes(l.id),onCheckedChange:()=>S(l.id)}),(0,H.jsx)("label",{htmlFor:l.id,className:`text-sm font-medium ${z(l.type)} px-2 py-1 rounded`,children:l.name})]},l.id))}):(0,H.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("categories"),children:r.categories.map(l=>{let E=a.find(U=>U.id===l);return E?(0,H.jsx)(Te,{variant:"secondary",className:z(E.type),children:E.name},E.id):null})})]})]}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,H.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,H.jsx)("div",{className:"space-y-2",children:r.comments.map(l=>(0,H.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,H.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,H.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[l.author," - ",new Date(l.timestamp).toLocaleString()]})]},l.id))})}),(0,H.jsxs)("div",{className:"flex mt-2",children:[(0,H.jsx)(_,{value:C,onChange:l=>w(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,H.jsxs)(V,{onClick:T,className:"ml-2",children:[(0,H.jsx)(nt.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,H.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.lastModified).toLocaleString()]})]})]})]})})}var le=B(require("react"));var Fe=le.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fe.displayName="Card";var We=le.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...t}));We.displayName="CardHeader";var Ge=le.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Po=le.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));Po.displayName="CardDescription";var Oe=le.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...t}));Oe.displayName="CardContent";var Do=le.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...t}));Do.displayName="CardFooter";function Ue({deal:e,customer:t,categories:o,onClick:a}){let n=o.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,H.jsxs)(Fe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,H.jsxs)(We,{className:"pb-2",children:[(0,H.jsx)("div",{className:"flex justify-between items-center",children:(0,H.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,H.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,H.jsxs)(Oe,{children:[(0,H.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,H.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,H.jsx)(nt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,H.jsx)("span",{children:e.assignee.name})]}),(0,H.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,H.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,H.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,H.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,H.jsx)(nt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,H.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,H.jsx)("div",{className:"flex justify-between items-left",children:n&&(0,H.jsx)(Te,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:n.name})})]})]})}var Ae=require("react-beautiful-dnd");function _e({onSubmit:e}){var n;let[t,o]=(0,Ne.useState)({name:"",intro:"",active:!0});return(0,H.jsxs)("form",{onSubmit:i=>{i.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(L,{htmlFor:"customerName",children:"Customer Name"}),(0,H.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(L,{htmlFor:"customerIntro",children:"Intro"}),(0,H.jsx)(te,{id:"customerIntro",value:(n=t.intro)!=null?n:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(se,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,H.jsx)(L,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,H.jsx)(V,{type:"submit",className:"w-full",children:"Add Customer"})]})}function je({customers:e,users:t,categories:o,onSubmit:a,initialDeal:n,onAddCustomer:i,onClose:d}){var S,T,z,G;let[r,b]=(0,Ne.useState)(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",lastModified:new Date().toISOString(),comments:[],description:""}),[C,w]=(0,Ne.useState)(!1),[y,D]=(0,Ne.useState)({});(0,Ne.useEffect)(()=>{n&&b(n)},[n]);let p=()=>{let m={};return r.customer||(m.customer="Customer is required"),r.value||(m.value="Value is required"),r.assignee||(m.assignee="Assignee is required"),r.closureDate||(m.closureDate="Closure Date is required"),D(m),Object.keys(m).length===0},u=m=>{m.preventDefault(),p()&&(a({...r,lastModified:new Date().toISOString()}),b({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),D({}),d==null||d())},x=m=>{b(R=>{var O;return{...R,categories:(O=R.categories)!=null&&O.includes(m)?R.categories.filter(l=>l!==m):[...R.categories||[],m]}})},v=m=>{e.push(m),b({...r,customer:m}),w(!1),i(m)};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("form",{onSubmit:u,className:"space-y-6",children:[(0,H.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,H.jsxs)("div",{className:"space-y-6 px-4",children:[(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(L,{htmlFor:"customer",children:"Customer"}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsxs)(ge,{value:(T=(S=r.customer)==null?void 0:S.id)==null?void 0:T.toString(),onValueChange:m=>b({...r,customer:{id:Number(m)}}),children:[(0,H.jsx)(re,{children:(0,H.jsx)(be,{placeholder:"Select customer"})}),(0,H.jsx)(ae,{children:e.map(m=>{var R;return(0,H.jsx)(ie,{value:((R=m.id)==null?void 0:R.toString())||"",children:m.name},m.id)})})]}),(0,H.jsx)(V,{variant:"outline",size:"icon",onClick:()=>w(!0),children:(0,H.jsx)(nt.PlusIcon,{className:"w-5 h-5"})})]}),y.customerId&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:y.customerId})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(L,{htmlFor:"value",children:"Value"}),(0,H.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>b({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),y.value&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:y.value})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(L,{htmlFor:"assignee",children:"Assignee"}),(0,H.jsxs)(ge,{value:(G=(z=r.assignee)==null?void 0:z.id)==null?void 0:G.toString(),onValueChange:m=>b({...r,assignee:{id:Number(m)}}),children:[(0,H.jsx)(re,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ae,{children:t&&t.map(m=>{var R;return(0,H.jsx)(ie,{value:((R=m.id)==null?void 0:R.toString())||"",children:m.name},m.id)})})]}),y.assignee&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:y.assignee})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(L,{htmlFor:"description",children:"Description"}),(0,H.jsx)(te,{id:"description",value:r.description||"",onChange:m=>b({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(L,{children:"Categories"}),(0,H.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(R=>R.type===m).map(R=>{var O;return(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(se,{id:R.id,checked:(O=r.categories)==null?void 0:O.includes(R.id),onCheckedChange:()=>x(R.id)}),(0,H.jsx)("label",{htmlFor:R.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:R.name})]},R.id)})})]},m))})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(L,{htmlFor:"closureDate",children:"Closure Date"}),(0,H.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate,onChange:m=>b({...r,closureDate:m.target.value})}),y.closureDate&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:y.closureDate})]})]})}),(0,H.jsx)(V,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),(0,H.jsx)(fe,{open:C,onOpenChange:w,children:(0,H.jsxs)(Z,{children:[(0,H.jsx)(Y,{children:(0,H.jsx)(ee,{children:"Add New Customer"})}),(0,H.jsx)(_e,{onSubmit:v})]})})]})}function Ke({status:e,deals:t,users:o,customers:a,categories:n,onDealClick:i,calculateColumnValue:d,calculateWeightedValue:r,addNewDeal:b,onAddCustomer:C}){let[w,y]=(0,Ne.useState)(!1);return(0,H.jsxs)("div",{className:"flex flex-col w-80",children:[(0,H.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),b&&(0,H.jsxs)(fe,{open:w,onOpenChange:y,children:[(0,H.jsx)(lt,{asChild:!0,children:(0,H.jsxs)(V,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,H.jsx)(nt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,H.jsxs)(Z,{children:[(0,H.jsx)(Y,{children:(0,H.jsx)(ee,{children:"Add New Deal"})}),(0,H.jsx)(je,{customers:a,users:o,categories:n,onSubmit:b,onAddCustomer:C,onClose:()=>y(!1)})]})]}),(0,H.jsx)(Ae.Droppable,{droppableId:e,children:D=>(0,H.jsxs)("div",{ref:D.innerRef,...D.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((p,u)=>(0,H.jsx)(Ae.Draggable,{draggableId:p.id.toString(),index:u,children:x=>(0,H.jsx)("div",{ref:x.innerRef,...x.draggableProps,...x.dragHandleProps,children:(0,H.jsx)(Ue,{deal:p,customer:a.find(v=>v.id===p.customer.id),categories:n,onClick:()=>i(p)})})},p.id)),D.placeholder]})}),(0,H.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,H.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,H.jsxs)("span",{className:"text-green-600",children:["\xA3",d(t).toLocaleString()]})]}),(0,H.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,H.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal","SoW","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:n}){let[i,d]=(0,Ne.useState)(null),[r,b]=(0,Ne.useState)(e),C=p=>r.deals.filter(u=>u.status===p),w=p=>p.reduce((u,x)=>u+(x.value||0),0),y=(p,u)=>{let x={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return p.reduce((v,S)=>v+(S.value||0)*x[u],0)},D=(0,Ne.useCallback)(p=>{let{source:u,destination:x}=p;if(!x||u.droppableId===x.droppableId&&u.index===x.index)return;let v=u.droppableId,S=x.droppableId;console.log("Moving from ",v,"to",S);let T=[...r.deals],[z]=T.splice(u.index,1);z.status=S,T.splice(x.index,0,z),b({...r,deals:T}),o(z)},[r,o]);return(0,H.jsx)(Ae.DragDropContext,{onDragEnd:D,children:(0,H.jsxs)("div",{className:"p-4",children:[(0,H.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:ko.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let u=C(p);return(0,H.jsx)(Ke,{status:p,deals:u,customers:e.customers,users:e.users,categories:e.categories,onDealClick:d,calculateColumnValue:w,calculateWeightedValue:y,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:n},p)})}),i&&(0,H.jsx)(Ve,{deal:i,users:e.users,customer:r.customers.find(p=>p.id===i.customer.id),categories:r.categories,onClose:()=>d(null),onSave:o,onAddComment:p=>a(i.id.toString(),p)})]})})}0&&(module.exports={CRMKanbanBoard,DealCard,DealDetails,KanbanColumn,NewCustomerForm,NewDealForm});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"../../chunk-
|
|
1
|
+
import{a as f}from"../../chunk-QZ2ZSGL6.mjs";import{a}from"../../chunk-47TRCRZ7.mjs";import{a as e}from"../../chunk-SF7DGZCZ.mjs";import{a as d}from"../../chunk-RXJVXPNC.mjs";import{a as c}from"../../chunk-3FW5YDNM.mjs";import{a as b}from"../../chunk-J7XKTH35.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.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";export{f as CRMKanbanBoard,b as DealCard,a as DealDetails,e as KanbanColumn,c as NewCustomerForm,d as NewDealForm};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BoardData, Deal,
|
|
1
|
+
import type { BoardData, Deal, Customer, CRMCategory, CRMStatus } from './types';
|
|
2
2
|
import type { User } from '@/payload-types';
|
|
3
|
-
export declare const mockCustomers:
|
|
3
|
+
export declare const mockCustomers: Partial<Customer>[];
|
|
4
4
|
export declare const mockCategories: CRMCategory[];
|
|
5
5
|
export declare const mockDeals: Deal[];
|
|
6
6
|
export declare const mockUsers: User[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var a in e)r(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,
|
|
1
|
+
"use strict";var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var a in e)r(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!p.call(t,o)&&o!==a&&r(t,o,{get:()=>e[o],enumerable:!(i=c(e,o))||i.enumerable});return t};var C=t=>h(r({},"__esModule",{value:!0}),t);var A={};u(A,{mockBoardData:()=>g,mockCategories:()=>m,mockCustomers:()=>s,mockDeals:()=>n,mockStatuses:()=>y,mockUsers:()=>d});module.exports=C(A);var s=[{id:1,name:"Acme Corp",intro:"A leading technology company",active:!0},{id:2,name:"GlobalTech",intro:"Innovative solutions provider",active:!0},{id:3,name:"InnoSystems",intro:"Cutting-edge software development",active:!1}],m=[{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"}],n=[{id:1,customer:{id:1,name:"Acme Corp",active:!0},value:5e4,assignee:{id:1,name:"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,customer:{id:2,name:"GlobalTech",active:!0},value:75e3,assignee:{id:2,name:"Jane Smith"},status:"Proposal",categories:["2","4","6"],dateLogged:"2023-02-01",closureDate:"2023-07-31",lastModified:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:"Jane Smith",timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}],d=[{id:1,name:"John Doe",email:"john.doe@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"Jane Smith",email:"jane.smith@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"Bob Johnson",email:"bob.johnson@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:4,name:"Alice Brown",email:"alice.brown@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:5,name:"Charlie Davis",email:"charlie.davis@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"}],g={deals:n,users:d,customers:s,categories:m},y=["Cold","Qualified","Proposal","Won","Lost"];0&&(module.exports={mockBoardData,mockCategories,mockCustomers,mockDeals,mockStatuses,mockUsers});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../../chunk-RQLWJFYT.mjs";import"../../chunk-S7OK7D5I.mjs";export{e as mockBoardData,b as mockCategories,a as mockCustomers,c as mockDeals,f as mockStatuses,d as mockUsers};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type { User };
|
|
3
|
-
export type CRMCustomer = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
intro?: string;
|
|
7
|
-
active: boolean;
|
|
8
|
-
};
|
|
1
|
+
import type { User, Customer } from "@/payload-types";
|
|
2
|
+
export type { User, Customer };
|
|
9
3
|
export type CRMCategory = {
|
|
10
4
|
id: string;
|
|
11
5
|
name: string;
|
|
@@ -13,10 +7,10 @@ export type CRMCategory = {
|
|
|
13
7
|
};
|
|
14
8
|
export type CRMStatus = "Cold" | "Qualified" | "Proposal" | "SoW" | "Won" | "Lost";
|
|
15
9
|
export type Deal = {
|
|
16
|
-
id:
|
|
17
|
-
|
|
10
|
+
id: number;
|
|
11
|
+
customer: Partial<Customer>;
|
|
18
12
|
value: number;
|
|
19
|
-
assignee:
|
|
13
|
+
assignee: Partial<User>;
|
|
20
14
|
status: CRMStatus;
|
|
21
15
|
categories: string[];
|
|
22
16
|
dateLogged: string;
|
|
@@ -33,7 +27,7 @@ export type Comment = {
|
|
|
33
27
|
};
|
|
34
28
|
export type BoardData = {
|
|
35
29
|
deals: Deal[];
|
|
36
|
-
users: User[];
|
|
37
|
-
customers:
|
|
30
|
+
users: Partial<User>[];
|
|
31
|
+
customers: Partial<Customer>[];
|
|
38
32
|
categories: CRMCategory[];
|
|
39
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var m=(e,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of p(t))!n.call(e,r)&&r!==a&&o(e,r,{get:()=>t[r],enumerable:!(s=i(t,r))||s.enumerable});return e};var g=e=>m(o({},"__esModule",{value:!0}),e);var u={};module.exports=g(u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-GHBJK554.mjs";import"../../chunk-3TIFSACL.mjs";import"../../chunk-SV3TTIPR.mjs";import"../../chunk-XDP6BKTK.mjs";import"../../chunk-HAYRX2WO.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as Header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"../../chunk-WU3JMLSC.mjs";import{a as n}from"../../chunk-BZAYEKYC.mjs";import{a as o}from"../../chunk-X5KZKO2V.mjs";import{a as e}from"../../chunk-
|
|
1
|
+
import{a as t}from"../../chunk-WU3JMLSC.mjs";import{a as n}from"../../chunk-BZAYEKYC.mjs";import{a as o}from"../../chunk-X5KZKO2V.mjs";import{a as e}from"../../chunk-GHBJK554.mjs";import"../../chunk-3TIFSACL.mjs";import"../../chunk-SV3TTIPR.mjs";import"../../chunk-XDP6BKTK.mjs";import"../../chunk-HAYRX2WO.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";import{jsx as r}from"react/jsx-runtime";var p={title:"Header/Header",component:e,decorators:[i=>r(o,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,children:r(i,{})})]},d={args:{isMenuOpen:!0,logoDark:t,logoLight:n,menuItems:[{name:"Product",items:[{name:"Analytics",description:"Understand your traffic",href:"#",icon:{type:"thin",iconName:"cloud"}},{name:"Engagement",description:"Interact with customers",href:"#",icon:{type:"thin",iconName:"cloud"}},{name:"Security",description:"Protect your data",href:"#",icon:{type:"thin",iconName:"cloud"}}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:{type:"thin",iconName:"cloud"}},{name:"API Reference",href:"#",icon:{type:"thin",iconName:"cloud"}},{name:"Github",href:"#",icon:{type:"brands",iconName:"github"}}],actions:[{name:"Watch demo",href:"#",icon:{type:"thin",iconName:"cloud"}},{name:"Contact sales",href:"#",icon:{type:"thin",iconName:"cloud"}},{name:"View all products",href:"#",icon:{type:"thin",iconName:"cloud"}}]},{name:"Company",href:"#"}]}};export{d as Primary,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-R7P4VVM3.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as SectionHeading};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-RZTXT4UD.mjs";import"../../chunk-3TIFSACL.mjs";import"../../chunk-SV3TTIPR.mjs";import"../../chunk-XDP6BKTK.mjs";import"../../chunk-HAYRX2WO.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as VideoHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{a}from"../../chunk-DRJBYVJB.mjs";import{a as e}from"../../chunk-RZTXT4UD.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-CS77R54Z.mjs";import{a as f}from"../../chunk-23L5ZJ2U.mjs";import{a as g}from"../../chunk-GHBJK554.mjs";import{a as c}from"../../chunk-3TIFSACL.mjs";import"../../chunk-SV3TTIPR.mjs";import{a as d}from"../../chunk-XDP6BKTK.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-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-Q5EQOIL7.mjs";import"../../../chunk-QIGWPB3D.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as HighImpactHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-7322R3ID.mjs";import"../../../chunk-QIGWPB3D.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as LowImpactHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-YQZH5MJU.mjs";import"../../../chunk-QIGWPB3D.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as MediumImpactHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-CWNEDSLD.mjs";import"../../../chunk-PRUIYGQW.mjs";import"../../../chunk-H4Y4SZIU.mjs";import"../../../chunk-
|
|
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-4NKKWJ2X.mjs";import"../../../chunk-A5EYIB3V.mjs";import"../../../chunk-DWRQHV42.mjs";import"../../../chunk-Y5ZFXDW5.mjs";import"../../../chunk-JWDVKGZL.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-
|
|
1
|
+
import{b as a,c as b}from"../../chunk-KN2GNSS3.mjs";import"../../chunk-Q5EQOIL7.mjs";import"../../chunk-YQZH5MJU.mjs";import"../../chunk-7322R3ID.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-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-
|
|
1
|
+
import{a}from"../../../chunk-KN2GNSS3.mjs";import"../../../chunk-Q5EQOIL7.mjs";import"../../../chunk-YQZH5MJU.mjs";import"../../../chunk-7322R3ID.mjs";import"../../../chunk-QIGWPB3D.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-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-
|
|
1
|
+
import{a as e,b as f,c as g}from"../../chunk-KN2GNSS3.mjs";import{a}from"../../chunk-Q5EQOIL7.mjs";import{a as b}from"../../chunk-YQZH5MJU.mjs";import{a as c}from"../../chunk-7322R3ID.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-4NKKWJ2X.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-AWFQEK7A.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-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,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-KRJQF2ZW.mjs";import"../../chunk-DE2DIWCC.mjs";import"../../chunk-MP3J7UPZ.mjs";import"../../chunk-QNKQEXU3.mjs";import"../../chunk-DYIUZ4V5.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as HolidayTracker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"../../chunk-VXZJ3JK5.mjs";import{a}from"../../chunk-
|
|
1
|
+
import{a as m}from"../../chunk-VXZJ3JK5.mjs";import{a}from"../../chunk-KRJQF2ZW.mjs";import"../../chunk-DE2DIWCC.mjs";import"../../chunk-MP3J7UPZ.mjs";import"../../chunk-QNKQEXU3.mjs";import"../../chunk-DYIUZ4V5.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import{d as o}from"../../chunk-S7OK7D5I.mjs";var r=o(m());import{format as n}from"date-fns";import{jsx as t}from"react/jsx-runtime";var i={title:"Holidays/HolidayTracker",component:a,parameters:{layout:"fullscreen",nextjs:{appDirectory:!0}},decorators:[e=>t("div",{className:"container mx-auto p-4",children:t(e,{})})]},u=i,s={args:{currentDate:n(new Date(2025,0,2),"yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),holidays:[{id:"1",userId:"1",userName:"John Doe",startDate:"2025-01-05",endDate:"2025-01-10",status:"approved",totalDays:6,leaveType:"Full Day"},{id:"2",userId:"2",userName:"Jane Smith",startDate:"2025-01-15",endDate:"2025-01-15",status:"requested",totalDays:.5,leaveType:"Morning"},{id:"3",userId:"3",userName:"Bob Johnson",startDate:"2025-01-25",endDate:"2025-01-30",status:"approved",totalDays:6,leaveType:"Full Day"},{id:"4",userId:"4",userName:"Alice Brown",startDate:"2025-01-20",endDate:"2025-01-20",status:"approved",totalDays:.5,leaveType:"Afternoon"}],leaveApprovals:[{id:"1",userId:"1",userName:"John Doe",userEmail:"john.doe@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=John",startDate:"2025-01-05",endDate:"2025-01-10",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"2",userId:"2",userName:"Jane Smith",userEmail:"jane.smith@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jane",startDate:"2025-01-15",endDate:"2025-01-15",status:"requested",totalDays:.5,leaveType:"Morning"},{id:"3",userId:"3",userName:"Bob Johnson",userEmail:"bob.johnson@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Bob",startDate:"2025-01-25",endDate:"2025-01-30",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"4",userId:"4",userName:"Alice Brown",userEmail:"alice.brown@example.com",startDate:"2025-01-20",endDate:"2025-01-20",status:"requested",totalDays:.5,leaveType:"Afternoon"}],employees:[{id:"1",name:"John Doe",email:"john.doe@example.com",image:"https://api.dicebear.com/7.x/avataaars/svg?seed=John"},{id:"2",name:"Jane Smith",email:"jane.smith@example.com",image:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jane"},{id:"3",name:"Bob Johnson",email:"bob.johnson@example.com",image:"https://api.dicebear.com/7.x/avataaars/svg?seed=Bob"},{id:"4",name:"Alice Brown",email:"alice.brown@example.com"}],submitLeaveRequest:(0,r.fn)(),approveLeave(e){return Promise.resolve({success:!0,message:`Approved ${e.length} request(s)`})},rejectLeave(e){return Promise.resolve({success:!0,message:`Rejected ${e.length} request(s)`})},currentUser:{grade:"Consultant 1",remainingLeaveDays:20}}},p={args:{...s.args,currentUser:{grade:"Manager",remainingLeaveDays:20}}},c={args:{...s.args,currentUser:{grade:"Manager",remainingLeaveDays:0}}};export{s as Default,p as Manger,c as NoLeave,u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../chunk-
|
|
1
|
+
import{a as e}from"../../chunk-KRJQF2ZW.mjs";import{a as d}from"../../chunk-DE2DIWCC.mjs";import{a as c}from"../../chunk-MP3J7UPZ.mjs";import{a as b}from"../../chunk-QNKQEXU3.mjs";import{a}from"../../chunk-DYIUZ4V5.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ApproveLeave,d as CalendarView,c as HolidayGrid,e as HolidayTracker,b as RequestLeave};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-AF5ISZTG.mjs";import"../../chunk-SV7NMNDI.mjs";import"../../chunk-R7P4VVM3.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as BlogCard,a as BlogList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../chunk-
|
|
1
|
+
import{a as o}from"../../chunk-AF5ISZTG.mjs";import"../../chunk-SV7NMNDI.mjs";import"../../chunk-R7P4VVM3.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";import{jsx as s}from"react/jsx-runtime";var r={title:"Layouts/BlogList",component:o,tags:["autodocs"],parameters:{docs:{description:{component:"A card component that displays a service with an icon, title, description, and a link."}}},argTypes:{icon:{control:"text"},title:{control:"text"},description:{control:"text"},slug:{control:"text"}},decorators:[e=>s(e,{})]},t=e=>s(o,{...e}),i=t.bind({});i.args={sectionHeading:{subtitle:"Payload",title:"Payload",description:"Payload"},blogs:[{slug:"/blog/pioneering-progress",image:{src:"/assets/images/blog/istockphoto1.jpg",alt:"Pioneering Progress, One Algorithm at a Time"},authors:[{name:"admin with a long name"},{name:"demo"}],categories:["Technology","Other"],publishedAt:"2025-01-01T17:19:41.270Z",commentCount:"05",title:"Pioneering Progress, One Algorithm at a Time",description:"Aliquam eros justo, posuere lobortis non, viverra laoreet augue mattis start fermentum ullamcorper viverra laoreet. By Admin. Technology. 28th February 2022. Leave a comment."},{slug:"/blog/innovative-solutions",image:{src:"/assets/images/blog/istockphoto2.jpg",alt:"Innovative Solutions for Modern Problems"},publishedAt:"2025-01-01T17:19:41.270Z",categories:[],commentCount:"10",title:"Innovative Solutions for Modern Problems",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. By John Doe. Innovation. 15th March 2022. Leave a comment."},{slug:"/blog/future-of-tech",image:{src:"/assets/images/blog/istockphoto3.jpg",alt:"The Future of Technology"},authors:[{name:"admin"},{name:"demo"}],publishedAt:"2025-01-01T17:19:41.270Z",commentCount:"08",title:"The Future of Technology",description:"Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. By Jane Doe. Future. 22nd April 2022. Leave a comment."}]};var a=t.bind({});a.args={...i.args};export{i as Default,a as LoadsOfBlogs,r as default};
|