cortex-react-components 1.42.5 → 1.42.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/chunk-4NETKTTT.mjs +1 -0
  2. package/dist/chunk-AHLX3GTH.mjs +1 -0
  3. package/dist/{chunk-NOQUNWQW.mjs → chunk-CDYA6NPD.mjs} +1 -1
  4. package/dist/{chunk-TQCGX4Y6.mjs → chunk-ETU7V76A.mjs} +1 -1
  5. package/dist/{chunk-YOOGQIDR.mjs → chunk-FK53HAB6.mjs} +1 -1
  6. package/dist/{chunk-EI7PFWFS.mjs → chunk-FO3SKORU.mjs} +1 -1
  7. package/dist/{chunk-NLTSDI7A.mjs → chunk-M7Q7FB5A.mjs} +1 -1
  8. package/dist/{chunk-DF3LBG6O.mjs → chunk-OSNRRT4M.mjs} +1 -1
  9. package/dist/{chunk-SBHCQ2HK.mjs → chunk-QN26GI2T.mjs} +1 -1
  10. package/dist/{chunk-ZCPNHUKK.mjs → chunk-UBPXT2KW.mjs} +1 -1
  11. package/dist/{chunk-SG5H4A2U.mjs → chunk-V4SV2OKK.mjs} +1 -1
  12. package/dist/{chunk-AF5ISZTG.mjs → chunk-VRIZ42XB.mjs} +1 -1
  13. package/dist/{chunk-VWNFINDU.mjs → chunk-WDREYBFE.mjs} +1 -1
  14. package/dist/{chunk-23L5ZJ2U.mjs → chunk-Z4CK655R.mjs} +1 -1
  15. package/dist/components/Blocks/index.mjs +1 -1
  16. package/dist/components/CRM/DealCard.stories.js +1 -1
  17. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  18. package/dist/components/CRM/DealDetails.js +1 -1
  19. package/dist/components/CRM/DealDetails.mjs +1 -1
  20. package/dist/components/CRM/DealDetails.stories.js +1 -1
  21. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  22. package/dist/components/CRM/KanbanBoard.js +1 -1
  23. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  24. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  25. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  26. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  27. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  28. package/dist/components/CRM/NewDealForm.stories.js +1 -1
  29. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  30. package/dist/components/CRM/index.js +1 -1
  31. package/dist/components/CRM/index.mjs +1 -1
  32. package/dist/components/CRM/mockData.js +1 -1
  33. package/dist/components/CRM/mockData.mjs +1 -1
  34. package/dist/components/CRM/types.d.ts +1 -1
  35. package/dist/components/CRM/types.js +1 -1
  36. package/dist/components/Cards/ServiceCard.mjs +1 -1
  37. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  38. package/dist/components/Cards/index.mjs +1 -1
  39. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  40. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  41. package/dist/components/HeaderFooter/Header.mjs +1 -1
  42. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  43. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  44. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  45. package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
  46. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  47. package/dist/components/HeaderFooter/index.mjs +1 -1
  48. package/dist/components/Heros/PostHero/index.mjs +1 -1
  49. package/dist/components/Heros/RenderHero.mjs +1 -1
  50. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  51. package/dist/components/Heros/index.mjs +1 -1
  52. package/dist/components/Layouts/BlogList.mjs +1 -1
  53. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  54. package/dist/components/Layouts/SlideShow.mjs +1 -1
  55. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  56. package/dist/components/Layouts/index.mjs +1 -1
  57. package/dist/components/index.js +3 -3
  58. package/dist/components/index.mjs +1 -1
  59. package/dist/components/ui/index.mjs +1 -1
  60. package/dist/hooks/index.mjs +1 -1
  61. package/dist/index.js +3 -3
  62. package/dist/index.mjs +1 -1
  63. package/dist/metafile-cjs.json +1 -1
  64. package/dist/metafile-esm.json +1 -1
  65. package/dist/pages/Blog.mjs +1 -1
  66. package/dist/pages/Blog.stories.mjs +1 -1
  67. package/dist/pages/Documentation.mjs +1 -1
  68. package/dist/pages/Documentation.stories.mjs +1 -1
  69. package/dist/pages/IndexPage.mjs +1 -1
  70. package/dist/pages/IndexPage.stories.mjs +1 -1
  71. package/dist/pages/Intranet.mjs +1 -1
  72. package/dist/pages/Intranet.stories.mjs +1 -1
  73. package/dist/pages/LandingPage.mjs +1 -1
  74. package/dist/pages/LandingPage.stories.mjs +1 -1
  75. package/dist/pages/Page.mjs +1 -1
  76. package/dist/pages/Page.stories.mjs +1 -1
  77. package/dist/pages/Publish.mjs +1 -1
  78. package/dist/pages/Publish.stories.mjs +1 -1
  79. package/dist/pages/Website.mjs +1 -1
  80. package/dist/pages/Website.stories.mjs +1 -1
  81. package/dist/sections/BlogDetail.mjs +1 -1
  82. package/dist/sections/BlogDetail.stories.mjs +1 -1
  83. package/dist/sections/ContactSection.mjs +1 -1
  84. package/dist/sections/ContactSection.stories.mjs +1 -1
  85. package/dist/sections/ServiceSection.mjs +1 -1
  86. package/dist/sections/ServiceSection.stories.mjs +1 -1
  87. package/dist/sections/form/index.mjs +1 -1
  88. package/dist/sections/index.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/chunk-3EVGORF6.mjs +0 -1
  91. package/dist/chunk-6TQAMZEH.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{a as x}from"./chunk-4NKKWJ2X.mjs";import{a as N,c as C,d as f,g as h,i as y}from"./chunk-4JC2TJML.mjs";import{a as T,f as E,g as P,i as R}from"./chunk-JWDVKGZL.mjs";import{a as H}from"./chunk-A5EYIB3V.mjs";import{a as i}from"./chunk-DWRQHV42.mjs";import{a as O}from"./chunk-Y5ZFXDW5.mjs";import{a as c}from"./chunk-QOIH63J3.mjs";import{b as M}from"./chunk-Q6SEVCRG.mjs";import{b as m}from"./chunk-GLEWUUGS.mjs";import{useState as p,useEffect as j}from"react";import{UserIcon as q,CalendarIcon as K,SaveIcon as X,Edit2Icon as Y,PlusIcon as Z}from"lucide-react";import{jsx as a,jsxs as t}from"react/jsx-runtime";function ge({deal:g,users:S,customer:v,categories:b,onClose:U,onSave:V,onAddComment:J}){var B,A,I;let[s,D]=p({...g,value:g.value||0}),[u,w]=p(""),[z,k]=p(!1),[r,o]=p(null);j(()=>{k(JSON.stringify(g)!==JSON.stringify(s))},[g,s]);let G=()=>{V(s),k(!1),o(null)},n=(e,l)=>{D(d=>({...d,[e]:l}))},Q=e=>{let l=s.categories.includes(e)?s.categories.filter(d=>d!==e):[...s.categories,e];n("categories",l)},W=()=>{u.trim()&&(J({id:Date.now().toString(),text:u,timestamp:new Date().toISOString()}),D(e=>({...e,comments:[...e.comments,{id:"0",text:u,timestamp:new Date().toISOString()}]})),w(""))},L=e=>{switch(e){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},_=(e,l,d)=>{let F=r===e;return t("div",{className:"grid gap-2",children:[a(i,{className:"text-sm font-medium text-gray-500",children:l}),t("div",{className:"flex items-center space-x-2",children:[d,F?a(c,{value:s[e],onChange:$=>n(e,$.target.value),onBlur:()=>o(null),autoFocus:!0}):a("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>o(e),children:s[e]}),!F&&a(m,{variant:"ghost",size:"sm",onClick:()=>o(e),children:a(Y,{className:"w-4 h-4"})})]})]})};return a(T,{open:!0,children:t(E,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[t(P,{className:"flex flex-row items-center justify-between",children:[a(R,{className:"text-2xl font-bold",children:v==null?void 0:v.name}),t("div",{className:"flex space-x-2",children:[a(m,{variant:"outline",onClick:U,children:"Close"}),t(m,{onClick:G,disabled:!z,children:[a(X,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),t(x,{className:"flex-grow pr-4",children:[t("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2",children:r==="value"?a(c,{type:"number",value:s.value,onChange:e=>n("value",Number(e.target.value)),onBlur:()=>o(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):t("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("value"),children:["\xA3",(B=s.value)==null?void 0:B.toLocaleString()]})}),t("div",{className:"grid gap-2",children:[a(i,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),r==="assignee"?t(N,{value:((I=(A=s==null?void 0:s.assignee)==null?void 0:A.id)==null?void 0:I.toString())||"",onValueChange:e=>n("assignee",e),children:[a(f,{children:a(C,{placeholder:"Select assignee"})}),a(h,{children:S&&S.map(e=>{var l;return a(y,{value:((l=e==null?void 0:e.id)==null?void 0:l.toString())||"",children:e.name},e.id)})})]}):t("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("assignee"),children:[a(q,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.assignee.name})]})]}),t("div",{className:"grid gap-2",children:[a(i,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),r==="closureDate"?a(c,{type:"date",value:s.closureDate.split("T")[0],onChange:e=>n("closureDate",e.target.value),onBlur:()=>o(null),autoFocus:!0}):t("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("closureDate"),children:[a(K,{className:"w-4 h-4 text-gray-400"}),a("span",{children:new Date(s.closureDate).toLocaleDateString("en-GB")})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:t("div",{className:"grid gap-2",children:[a(i,{className:"text-sm font-medium text-gray-500",children:"Description"}),r==="description"?a(H,{value:s.description,onChange:e=>n("description",e.target.value),onBlur:()=>o(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>o("description"),children:s.description})]})}),t("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[t("div",{className:"grid gap-2",children:[a(i,{className:"text-sm font-medium text-gray-500",children:"Status"}),r==="status"?t(N,{value:s.status,onValueChange:e=>{n("status",e),o(null)},children:[a(f,{children:a(C,{placeholder:"Select status"})}),a(h,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(e=>a(y,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("status"),children:s.status})]}),t("div",{className:"grid col-span-2 gap-2",children:[a(i,{className:"text-sm font-medium text-gray-500",children:"Categories"}),r==="categories"?a("div",{className:"grid grid-cols-2 gap-2",children:b.map(e=>t("div",{className:"flex items-center space-x-2",children:[a(O,{id:e.id,checked:s.categories.includes(e.id),onCheckedChange:()=>Q(e.id)}),a("label",{htmlFor:e.id,className:`text-sm font-medium ${L(e.type)} px-2 py-1 rounded`,children:e.name})]},e.id))}):a("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("categories"),children:s.categories.map(e=>{let l=b.find(d=>d.id===e);return l?a(M,{variant:"secondary",className:L(l.type),children:l.name},l.id):null})})]})]}),t("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[t("div",{className:"grid gap-2",children:[a(i,{className:"text-sm font-medium text-gray-500",children:"Comments"}),a(x,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:s.comments.map(e=>{var l;return t("div",{className:"bg-gray-50 p-3 rounded-lg",children:[a("p",{className:"text-sm text-gray-700",children:e.text}),t("p",{className:"text-xs text-gray-500 mt-1",children:[(l=e.author)==null?void 0:l.name," - ",new Date(e.timestamp).toLocaleString()]})]},e.id)})})}),t("div",{className:"flex mt-2",children:[a(c,{value:u,onChange:e=>w(e.target.value),placeholder:"Add a comment...",className:"flex-grow"}),t(m,{onClick:W,className:"ml-2",children:[a(Z,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),t("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(s.updatedAt).toLocaleString()]})]})]})]})})}export{ge as a};
@@ -0,0 +1 @@
1
+ var e=[{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}],t=[{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"}],a=[{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",updatedAt:"2023-05-01T10:00:00Z",comments:[{id:"1",text:"Initial contact made",author:{id:2,name:"Jane Smith"},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",updatedAt:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:{id:2,name:"Jane Smith"},timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}],o=[{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"}],r={deals:a,users:o,customers:e,categories:t},i=["Cold","Qualified","Proposal","Won","Lost"];export{e as a,t as b,a as c,o as d,r as e,i as f};
@@ -1 +1 @@
1
- import{a as l}from"./chunk-7322R3ID.mjs";import{a as s}from"./chunk-Q5EQOIL7.mjs";import{a as c}from"./chunk-YQZH5MJU.mjs";import{a as i}from"./chunk-UESKYRNK.mjs";import b from"next/image";import{ChevronRightIcon as u,HomeIcon as g}from"@heroicons/react/20/solid";import{Fragment as x,jsx as t,jsxs as n}from"react/jsx-runtime";var h={highImpact:s,lowImpact:l,mediumImpact:c,sectionHero:m},k=a=>{let{type:r}=a||{};if(!r||r==="none")return null;let e=h[r];return e?t(e,{...a}):null};function d({breadcrumbItems:a}){if(a&&a.length>0){let r=a.filter(e=>e.label.toLowerCase()!=="home");return t("nav",{"aria-label":"Breadcrumb",className:"flex",children:n("ol",{role:"list",className:"flex items-center space-x-4",children:[t("li",{children:t("div",{children:n("a",{href:"/",className:"text-foreground hover:text-accent",children:[t(g,{"aria-hidden":"true",className:"size-5 shrink-0"}),t("span",{className:"sr-only",children:"Home"})]})})}),r.map((e,p)=>t("li",{children:n("div",{className:"flex items-center",children:[t(u,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),e.href?t("a",{href:e.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label}):t("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label})]})},p))]})})}return t(x,{})}import{jsx as o,jsxs as f}from"react/jsx-runtime";function m({title:a,breadcrumbItems:r,image:e}){return f("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[o("div",{className:"absolute inset-0 z-0",children:e&&o(b,{priority:!0,src:e.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),o("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),o(i,{children:f("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[o("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:w-1/2",children:a}),r&&r.length>0&&o(d,{breadcrumbItems:r})]})})]})}export{m as a,k as b,d as c};
1
+ import{a as s}from"./chunk-Q5EQOIL7.mjs";import{a as l}from"./chunk-7322R3ID.mjs";import{a as c}from"./chunk-YQZH5MJU.mjs";import{a as i}from"./chunk-UESKYRNK.mjs";import b from"next/image";import{ChevronRightIcon as u,HomeIcon as g}from"@heroicons/react/20/solid";import{Fragment as x,jsx as t,jsxs as n}from"react/jsx-runtime";var h={highImpact:s,lowImpact:l,mediumImpact:c,sectionHero:m},k=a=>{let{type:r}=a||{};if(!r||r==="none")return null;let e=h[r];return e?t(e,{...a}):null};function d({breadcrumbItems:a}){if(a&&a.length>0){let r=a.filter(e=>e.label.toLowerCase()!=="home");return t("nav",{"aria-label":"Breadcrumb",className:"flex",children:n("ol",{role:"list",className:"flex items-center space-x-4",children:[t("li",{children:t("div",{children:n("a",{href:"/",className:"text-foreground hover:text-accent",children:[t(g,{"aria-hidden":"true",className:"size-5 shrink-0"}),t("span",{className:"sr-only",children:"Home"})]})})}),r.map((e,p)=>t("li",{children:n("div",{className:"flex items-center",children:[t(u,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),e.href?t("a",{href:e.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label}):t("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label})]})},p))]})})}return t(x,{})}import{jsx as o,jsxs as f}from"react/jsx-runtime";function m({title:a,breadcrumbItems:r,image:e}){return f("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[o("div",{className:"absolute inset-0 z-0",children:e&&o(b,{priority:!0,src:e.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),o("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),o(i,{children:f("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[o("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:w-1/2",children:a}),r&&r.length>0&&o(d,{breadcrumbItems:r})]})})]})}export{m as a,k as b,d as c};
@@ -1 +1 @@
1
- import{b as i}from"./chunk-GLEWUUGS.mjs";import{a}from"./chunk-WISCWNL2.mjs";import{a as c}from"./chunk-SFLOMJ2U.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as n}from"react/jsx-runtime";function d(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function u({icon:r,title:s,description:p,slug:t}){return n("article",{className:o(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[n("div",{className:"flex items-center gap-5",children:[e("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:d(r)?e(c,{type:r.type,iconName:r.iconName,size:"sm"}):r}),e("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:t?e(a,{href:t,children:s}):s})]}),e("p",{className:"text-body dark:text-body",children:p}),t&&e(i,{asChild:!0,className:o(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:n(a,{href:t,children:[e("span",{children:"Read More"}),e("span",{className:"relative pl-3 text-sm/[1] text-accent",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),e("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}export{u as a};
1
+ import{b as i}from"./chunk-GLEWUUGS.mjs";import{a as c}from"./chunk-SFLOMJ2U.mjs";import{a}from"./chunk-WISCWNL2.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as n}from"react/jsx-runtime";function d(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function u({icon:r,title:s,description:p,slug:t}){return n("article",{className:o(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[n("div",{className:"flex items-center gap-5",children:[e("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:d(r)?e(c,{type:r.type,iconName:r.iconName,size:"sm"}):r}),e("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:t?e(a,{href:t,children:s}):s})]}),e("p",{className:"text-body dark:text-body",children:p}),t&&e(i,{asChild:!0,className:o(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:n(a,{href:t,children:[e("span",{children:"Read More"}),e("span",{className:"relative pl-3 text-sm/[1] text-accent",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),e("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}export{u as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-EI7PFWFS.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-R7P4VVM3.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
1
+ import{a as m}from"./chunk-FO3SKORU.mjs";import{a as l}from"./chunk-R7P4VVM3.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as p}from"./chunk-NOEITQK2.mjs";import{a as C}from"./chunk-EG6XIOOJ.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Formik as x}from"formik";import{FaUser as w}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as e,jsxs as n}from"react/jsx-runtime";var s={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),email:m.string().email(s.email).required(s.required),subject:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),message:m.string().min(2,s.tooShort).max(300,s.tooLong).required(s.required)}),u=i("!pr-[44px]"),g=i("!border-red-600 border"),d=i("sr-only");function U(){return e(x,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(a,{resetForm:t})=>{let o=await f(a);o.data===null?b.error(o.message):(b.success(o.message),t())},children:({errors:a,touched:t,values:o,handleChange:r,handleBlur:c,isSubmitting:l,handleSubmit:h})=>n("form",{onSubmit:h,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[n("div",{children:[e(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:r,onBlur:c,disabled:l,icon:e(w,{}),className:i(u,a.name&&t.name&&g)}),a.name&&t.name&&e("p",{title:a.name,"aria-live":"polite",role:"error message",className:d,children:a.name})]}),n("div",{children:[e(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:r,onBlur:c,disabled:l,icon:e(N,{}),className:i(u,a.email&&t.email&&g)}),a.email&&t.email&&e("p",{title:a.email,"aria-live":"polite",role:"error message",className:d,children:a.email})]}),n("div",{className:"lg:col-span-2",children:[e(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:r,onBlur:c,disabled:l,className:i(u,a.subject&&t.subject&&g)}),a.subject&&t.subject&&e("p",{title:a.subject,"aria-live":"polite",role:"error message",className:d,children:a.subject})]}),n("div",{className:"lg:col-span-2",children:[e(C,{placeholder:"Write Message...",name:"message",value:o.message,onChange:r,onBlur:c,disabled:l,icon:e(S,{}),className:i(u,a.message&&t.message&&g)}),a.message&&t.message&&e("p",{title:a.message,"aria-live":"polite",role:"error message",className:d,children:a.message})]}),e("div",{className:"lg:col-span-2",children:e(v,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:l,children:e("span",{children:"SEND"})})})]})})}function N(){return e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function S(){return e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{U as a};
4
+ import{a as p}from"./chunk-NOEITQK2.mjs";import{a as C}from"./chunk-EG6XIOOJ.mjs";import{a as f}from"./chunk-CTKUF2I6.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Formik as x}from"formik";import{FaUser as w}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as e,jsxs as n}from"react/jsx-runtime";var s={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),email:m.string().email(s.email).required(s.required),subject:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),message:m.string().min(2,s.tooShort).max(300,s.tooLong).required(s.required)}),u=i("!pr-[44px]"),g=i("!border-red-600 border"),d=i("sr-only");function U(){return e(x,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(a,{resetForm:t})=>{let o=await f(a);o.data===null?b.error(o.message):(b.success(o.message),t())},children:({errors:a,touched:t,values:o,handleChange:r,handleBlur:c,isSubmitting:l,handleSubmit:h})=>n("form",{onSubmit:h,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[n("div",{children:[e(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:r,onBlur:c,disabled:l,icon:e(w,{}),className:i(u,a.name&&t.name&&g)}),a.name&&t.name&&e("p",{title:a.name,"aria-live":"polite",role:"error message",className:d,children:a.name})]}),n("div",{children:[e(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:r,onBlur:c,disabled:l,icon:e(N,{}),className:i(u,a.email&&t.email&&g)}),a.email&&t.email&&e("p",{title:a.email,"aria-live":"polite",role:"error message",className:d,children:a.email})]}),n("div",{className:"lg:col-span-2",children:[e(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:r,onBlur:c,disabled:l,className:i(u,a.subject&&t.subject&&g)}),a.subject&&t.subject&&e("p",{title:a.subject,"aria-live":"polite",role:"error message",className:d,children:a.subject})]}),n("div",{className:"lg:col-span-2",children:[e(C,{placeholder:"Write Message...",name:"message",value:o.message,onChange:r,onBlur:c,disabled:l,icon:e(S,{}),className:i(u,a.message&&t.message&&g)}),a.message&&t.message&&e("p",{title:a.message,"aria-live":"polite",role:"error message",className:d,children:a.message})]}),e("div",{className:"lg:col-span-2",children:e(v,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:l,children:e("span",{children:"SEND"})})})]})})}function N(){return e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function S(){return e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{U as a};
@@ -1 +1 @@
1
- import{a as x}from"./chunk-KML6U7IE.mjs";import{a as k}from"./chunk-TXXFXCXB.mjs";import{e as P}from"./chunk-QIGWPB3D.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as c,b as h,c as C,e as p}from"./chunk-D76EO57Z.mjs";import{a as b}from"./chunk-WISCWNL2.mjs";import{a as N}from"./chunk-UESKYRNK.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:n}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),n&&n.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((e,s)=>t("li",{children:t(b,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},s))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:n="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:s,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=s==null?void 0:s[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(N,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(P,{content:U,enableGutter:!1})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(h,{children:t(C,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${n}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(k,{links:r.links,title:r.title})})]})]})})}export{j as a};
1
+ import{a as k}from"./chunk-TXXFXCXB.mjs";import{e as P}from"./chunk-QIGWPB3D.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as c,b as h,c as C,e as p}from"./chunk-D76EO57Z.mjs";import{a as b}from"./chunk-WISCWNL2.mjs";import{a as N}from"./chunk-UESKYRNK.mjs";import{a as x}from"./chunk-KML6U7IE.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:n}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),n&&n.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((e,s)=>t("li",{children:t(b,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},s))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:n="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:s,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=s==null?void 0:s[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(N,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(P,{content:U,enableGutter:!1})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(h,{children:t(C,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${n}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(k,{links:r.links,title:r.title})})]})]})})}export{j as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-WU3JMLSC.mjs";import{a as m}from"./chunk-BZAYEKYC.mjs";import{a as i}from"./chunk-NLTSDI7A.mjs";import{a as o}from"./chunk-CWNEDSLD.mjs";import{a as t}from"./chunk-DESYC5BB.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:m,logoDark:a}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
1
+ import{a}from"./chunk-WU3JMLSC.mjs";import{a as m}from"./chunk-BZAYEKYC.mjs";import{a as i}from"./chunk-M7Q7FB5A.mjs";import{a as o}from"./chunk-CWNEDSLD.mjs";import{a as t}from"./chunk-DESYC5BB.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:m,logoDark:a}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-TQCGX4Y6.mjs";import{a as s}from"./chunk-SV7NMNDI.mjs";import{a as t}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import{jsx as e}from"react/jsx-runtime";function S({services:a,className:c}){return e("section",{id:"next-section",className:o("section-padding-primary",c),children:e(t,{className:"py-8",children:a&&a.length>0&&e("div",{className:"flex flex-wrap justify-center gap-y-8",children:a.map((p,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":s([200,400,600],r),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:e(i,{...p})},r))})})})}export{S as a};
1
+ import{a as i}from"./chunk-ETU7V76A.mjs";import{a as s}from"./chunk-SV7NMNDI.mjs";import{a as t}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import{jsx as e}from"react/jsx-runtime";function S({services:a,className:c}){return e("section",{id:"next-section",className:o("section-padding-primary",c),children:e(t,{className:"py-8",children:a&&a.length>0&&e("div",{className:"flex flex-wrap justify-center gap-y-8",children:a.map((p,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":s([200,400,600],r),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:e(i,{...p})},r))})})})}export{S as a};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-T6LPMF7A.mjs";import{b as r}from"./chunk-NOQUNWQW.mjs";import{a as n}from"./chunk-74TGU5CZ.mjs";import{a as i}from"./chunk-DESYC5BB.mjs";import{a as o}from"./chunk-6K2R3OAD.mjs";import{jsx as t,jsxs as p}from"react/jsx-runtime";function g({...e}){let s=e.page,{contentWithIds:c,tableOfContents:m}=o(s);return p("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:f}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
1
+ import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-T6LPMF7A.mjs";import{b as r}from"./chunk-CDYA6NPD.mjs";import{a as n}from"./chunk-74TGU5CZ.mjs";import{a as i}from"./chunk-DESYC5BB.mjs";import{a as o}from"./chunk-6K2R3OAD.mjs";import{jsx as t,jsxs as p}from"react/jsx-runtime";function g({...e}){let s=e.page,{contentWithIds:c,tableOfContents:m}=o(s);return p("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:f}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:m,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as C}from"./chunk-LRIIP54N.mjs";import{a as p}from"./chunk-6TQAMZEH.mjs";import{useState as D,useCallback as x}from"react";import{DragDropContext as w}from"react-beautiful-dnd";import{jsx as d,jsxs as W}from"react/jsx-runtime";var B=["Cold","Qualified","Proposal","SoW","Won","Lost"];function V({initialData:s,addNewDeal:g,updateDeal:n,addComment:f,addNewCustomer:v}){let[r,m]=D(null),[a,S]=D(s),R=e=>a.deals.filter(o=>o.status===e),b=e=>e.reduce((o,t)=>o+(t.value||0),0),M=(e,o)=>{let t={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return e.reduce((u,l)=>u+(l.value||0)*t[o],0)},y=x(e=>{let{source:o,destination:t}=e;if(!t||o.droppableId===t.droppableId&&o.index===t.index)return;let u=o.droppableId,l=t.droppableId;console.log("Moving from ",u,"to",l);let c=[...a.deals],[i]=c.splice(o.index,1);i.status=l,c.splice(t.index,0,i),S({...a,deals:c}),n(i)},[a,n]);return d(w,{onDragEnd:y,children:W("div",{className:"p-4",children:[d("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:B.filter(e=>e!=="Won"&&e!=="Lost").map(e=>{let o=R(e);return d(C,{status:e,deals:o,customers:s.customers,users:s.users,categories:s.categories,onDealClick:m,calculateColumnValue:b,calculateWeightedValue:M,addNewDeal:e==="Cold"?g:void 0,onAddCustomer:v},e)})}),r&&d(p,{deal:r,users:s.users,customer:a.customers.find(e=>e.id===r.customer.id),categories:a.categories,onClose:()=>m(null),onSave:n,onAddComment:e=>f(r.id.toString(),e)})]})})}export{V as a};
4
+ import{a as p}from"./chunk-4NETKTTT.mjs";import{a as C}from"./chunk-LRIIP54N.mjs";import{useState as D,useCallback as x}from"react";import{DragDropContext as w}from"react-beautiful-dnd";import{jsx as d,jsxs as W}from"react/jsx-runtime";var B=["Cold","Qualified","Proposal","SoW","Won","Lost"];function V({initialData:s,addNewDeal:g,updateDeal:n,addComment:f,addNewCustomer:v}){let[r,m]=D(null),[a,S]=D(s),R=e=>a.deals.filter(o=>o.status===e),b=e=>e.reduce((o,t)=>o+(t.value||0),0),M=(e,o)=>{let t={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return e.reduce((u,l)=>u+(l.value||0)*t[o],0)},y=x(e=>{let{source:o,destination:t}=e;if(!t||o.droppableId===t.droppableId&&o.index===t.index)return;let u=o.droppableId,l=t.droppableId;console.log("Moving from ",u,"to",l);let c=[...a.deals],[i]=c.splice(o.index,1);i.status=l,c.splice(t.index,0,i),S({...a,deals:c}),n(i)},[a,n]);return d(w,{onDragEnd:y,children:W("div",{className:"p-4",children:[d("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:B.filter(e=>e!=="Won"&&e!=="Lost").map(e=>{let o=R(e);return d(C,{status:e,deals:o,customers:s.customers,users:s.users,categories:s.categories,onDealClick:m,calculateColumnValue:b,calculateWeightedValue:M,addNewDeal:e==="Cold"?g:void 0,onAddCustomer:v},e)})}),r&&d(p,{deal:r,users:s.users,customer:a.customers.find(e=>e.id===r.customer.id),categories:a.categories,onClose:()=>m(null),onSave:n,onAddComment:e=>f(r.id.toString(),e)})]})})}export{V as a};
@@ -1,4 +1,4 @@
1
- import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-R7P4VVM3.mjs";import{a as n}from"./chunk-WISCWNL2.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import g from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as i}from"react/jsx-runtime";function _({blogs:a,sectionHeading:t}){return e("section",{className:o("section-padding-primary overflow-hidden "),children:i(m,{children:[e("div",{className:"mx-auto max-w-[630px]",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(p,{...t,alignment:"center",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:a.map((l,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":d([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},r))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:a,image:t,authors:l,title:r,publishedAt:s,categories:v}){return i("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(g,{src:t.src,alt:t.alt,fill:!0,sizes:`
1
+ import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-R7P4VVM3.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as n}from"./chunk-WISCWNL2.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import g from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as i}from"react/jsx-runtime";function _({blogs:a,sectionHeading:t}){return e("section",{className:o("section-padding-primary overflow-hidden "),children:i(m,{children:[e("div",{className:"mx-auto max-w-[630px]",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(p,{...t,alignment:"center",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:a.map((l,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":d([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},r))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:a,image:t,authors:l,title:r,publishedAt:s,categories:v}){return i("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(g,{src:t.src,alt:t.alt,fill:!0,sizes:`
2
2
  (min-width:768px) 50vw,
3
3
  (min-width:1024px) 33vw,
4
4
  100vw
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as u}from"./chunk-7322R3ID.mjs";import{a as l}from"./chunk-Q5EQOIL7.mjs";import{a as p}from"./chunk-YQZH5MJU.mjs";import{a as c}from"./chunk-CWNEDSLD.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-D76EO57Z.mjs";import{a as s}from"./chunk-DESYC5BB.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:f,logoDark:h,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
4
+ import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as l}from"./chunk-Q5EQOIL7.mjs";import{a as u}from"./chunk-7322R3ID.mjs";import{a as p}from"./chunk-YQZH5MJU.mjs";import{a as c}from"./chunk-CWNEDSLD.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-D76EO57Z.mjs";import{a as s}from"./chunk-DESYC5BB.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(s,{isMenuOpen:!0,logoLight:f,logoDark:h,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
@@ -1 +1 @@
1
- import{a as v}from"./chunk-HAYRX2WO.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{d as f}from"./chunk-YNNW2C2U.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import k from"next/image";import{FaChevronRight as y,FaEnvelope as w,FaPaperPlane as C,FaPhone as L,FaCalendarDays as P}from"react-icons/fa6";import{jsx as a,jsxs as t}from"react/jsx-runtime";var T=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),p=i("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),g=i("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),h=i("flex items-center gap-5"),m=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function $({className:N,footerData:x,logoLight:b,logoDark:u}){let{about:n,columnOne:c,columnTwo:s,columnThree:r,footerBottom:d}=x;return t("footer",{className:i("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",N),children:[a("div",{className:"py-16 md:py-20",children:a("div",{className:"container",children:t("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[t("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[a(v,{logoLight:b,logoDark:u}),a("p",{className:"mb-7 mt-3",children:n.description}),n.socialLinks&&n.socialLinks.length>0&&a("nav",{"aria-label":"social links",children:a("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:n.socialLinks.map((e,o)=>a("li",{children:a(l,{"aria-label":e.href,className:T,href:e.href,openNewTab:!0,children:a("span",{children:e.icon})})},o))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[a("h3",{className:p,children:c.title}),c.links&&c.links.length>0&&a("nav",{"aria-label":"footer links navigation",children:a("ul",{className:"grid gap-2",children:c.links.map(e=>t("li",{className:"flex items-center gap-2.5",children:[a("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:a(y,{})}),a(l,{href:e.href,openNewTab:e.openNewTab,className:m,children:e.label})]},e.label))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[a("h3",{className:p,children:s.title}),t("ul",{"aria-label":"addresses",className:"grid gap-5",children:[t("li",{className:h,children:[a("span",{className:g,children:a(C,{})}),a("address",{className:"not-italic",children:s.location})]}),t("li",{className:h,children:[a("span",{className:g,children:a(w,{})}),s.mails&&s.mails.length>0&&a("div",{className:"grid gap-1",children:s.mails.map((e,o)=>a("a",{href:`mailto:${e}`,className:m,children:e},o))})]}),s.phoneNumbers&&s.phoneNumbers.length>0&&t("li",{className:h,children:[a("span",{className:g,children:a(L,{})}),a("div",{className:"grid gap-1",children:s.phoneNumbers.map((e,o)=>a("a",{href:`tel:${e.split(" ").join("")}`,className:m,children:e},o))})]})]})]}),r&&t("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[a("h3",{className:p,children:r.title}),r.blogs&&r.blogs.length>0&&a("div",{className:"grid gap-6",children:r.blogs.map((e,o)=>t("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[a("div",{className:"flex-none overflow-hidden rounded-5",children:a(k,{...e.image,alt:e.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),t("div",{children:[t("p",{className:"flex items-center gap-2.5 dark:text-body",children:[a("span",{className:"text-accent",children:a(P,{})}),a("span",{children:f(e.date)})]}),a("h4",{className:"text-md font-bold leading-normal",children:a(l,{href:e.slug,className:"transition-colors duration-300 hover:text-accent",children:e.title})})]})]},o))})]})]})})}),a("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:a("div",{className:"container",children:t("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[a("p",{children:d.copyrightText}),d.links&&d.links.length>0&&a("nav",{"aria-label":"footer bottom navigation",children:a("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:d.links.map(e=>a("li",{children:a(l,{"aria-label":`Go to page ${e.label}`,href:e.href,openNewTab:e.openNewTab,className:m,children:e.label})},e.label))})})]})})})]})}export{$ as a};
1
+ import{a as v}from"./chunk-HAYRX2WO.mjs";import{d as f}from"./chunk-YNNW2C2U.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import k from"next/image";import{FaChevronRight as y,FaEnvelope as w,FaPaperPlane as C,FaPhone as L,FaCalendarDays as P}from"react-icons/fa6";import{jsx as a,jsxs as t}from"react/jsx-runtime";var T=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),p=i("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),g=i("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),h=i("flex items-center gap-5"),m=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function $({className:N,footerData:x,logoLight:b,logoDark:u}){let{about:n,columnOne:c,columnTwo:s,columnThree:r,footerBottom:d}=x;return t("footer",{className:i("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",N),children:[a("div",{className:"py-16 md:py-20",children:a("div",{className:"container",children:t("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[t("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[a(v,{logoLight:b,logoDark:u}),a("p",{className:"mb-7 mt-3",children:n.description}),n.socialLinks&&n.socialLinks.length>0&&a("nav",{"aria-label":"social links",children:a("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:n.socialLinks.map((e,o)=>a("li",{children:a(l,{"aria-label":e.href,className:T,href:e.href,openNewTab:!0,children:a("span",{children:e.icon})})},o))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[a("h3",{className:p,children:c.title}),c.links&&c.links.length>0&&a("nav",{"aria-label":"footer links navigation",children:a("ul",{className:"grid gap-2",children:c.links.map(e=>t("li",{className:"flex items-center gap-2.5",children:[a("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:a(y,{})}),a(l,{href:e.href,openNewTab:e.openNewTab,className:m,children:e.label})]},e.label))})})]}),t("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[a("h3",{className:p,children:s.title}),t("ul",{"aria-label":"addresses",className:"grid gap-5",children:[t("li",{className:h,children:[a("span",{className:g,children:a(C,{})}),a("address",{className:"not-italic",children:s.location})]}),t("li",{className:h,children:[a("span",{className:g,children:a(w,{})}),s.mails&&s.mails.length>0&&a("div",{className:"grid gap-1",children:s.mails.map((e,o)=>a("a",{href:`mailto:${e}`,className:m,children:e},o))})]}),s.phoneNumbers&&s.phoneNumbers.length>0&&t("li",{className:h,children:[a("span",{className:g,children:a(L,{})}),a("div",{className:"grid gap-1",children:s.phoneNumbers.map((e,o)=>a("a",{href:`tel:${e.split(" ").join("")}`,className:m,children:e},o))})]})]})]}),r&&t("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[a("h3",{className:p,children:r.title}),r.blogs&&r.blogs.length>0&&a("div",{className:"grid gap-6",children:r.blogs.map((e,o)=>t("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[a("div",{className:"flex-none overflow-hidden rounded-5",children:a(k,{...e.image,alt:e.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),t("div",{children:[t("p",{className:"flex items-center gap-2.5 dark:text-body",children:[a("span",{className:"text-accent",children:a(P,{})}),a("span",{children:f(e.date)})]}),a("h4",{className:"text-md font-bold leading-normal",children:a(l,{href:e.slug,className:"transition-colors duration-300 hover:text-accent",children:e.title})})]})]},o))})]})]})})}),a("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:a("div",{className:"container",children:t("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[a("p",{children:d.copyrightText}),d.links&&d.links.length>0&&a("nav",{"aria-label":"footer bottom navigation",children:a("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:d.links.map(e=>a("li",{children:a(l,{"aria-label":`Go to page ${e.label}`,href:e.href,openNewTab:e.openNewTab,className:m,children:e.label})},e.label))})})]})})})]})}export{$ as a};
@@ -1 +1 @@
1
- import{a as e}from"../../chunk-6HFYLEVF.mjs";import{a as q}from"../../chunk-HVA2GFDG.mjs";import"../../chunk-423OEU3K.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import{a as p}from"../../chunk-74TGU5CZ.mjs";import{a as n}from"../../chunk-Q77U5BXI.mjs";import{a as c}from"../../chunk-IQPZEEYJ.mjs";import{a as b}from"../../chunk-H7D3PZKE.mjs";import{a as g,b as h,c as m}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as k}from"../../chunk-UK4IPFAO.mjs";import{a as l}from"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import{a as j}from"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import{a as i}from"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as BannerBlock,h as CallToActionBlock,j as CodeBlock,n as ContentBlock,i as CopyButton,m as FeaturesBlock,o as HeadingImage,l as ImageBlock,b as InfoTile,a as Insight,c as MOTD,k as MediaBlock,d as OrgChart,e as ProposalSummary,q as RelatedPosts,p as RenderBlocks,f as WhyUs};
1
+ import{a as q}from"../../chunk-HVA2GFDG.mjs";import"../../chunk-423OEU3K.mjs";import{a as f}from"../../chunk-EPTHSTUM.mjs";import{a}from"../../chunk-UZ2XYB7D.mjs";import{a as d}from"../../chunk-53QLSQCO.mjs";import{a as e}from"../../chunk-6HFYLEVF.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import{a as p}from"../../chunk-74TGU5CZ.mjs";import{a as n}from"../../chunk-Q77U5BXI.mjs";import{a as c}from"../../chunk-IQPZEEYJ.mjs";import{a as b}from"../../chunk-H7D3PZKE.mjs";import{a as g,b as h,c as m}from"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import{a as k}from"../../chunk-UK4IPFAO.mjs";import{a as l}from"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import{a as j}from"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import{a as i}from"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as BannerBlock,h as CallToActionBlock,j as CodeBlock,n as ContentBlock,i as CopyButton,m as FeaturesBlock,o as HeadingImage,l as ImageBlock,b as InfoTile,a as Insight,c as MOTD,k as MediaBlock,d as OrgChart,e as ProposalSummary,q as RelatedPosts,p as RenderBlocks,f as WhyUs};
@@ -1 +1 @@
1
- "use strict";var Me=Object.create;var V=Object.defineProperty;var Ae=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)V(e,r,{get:t[r],enumerable:!0})},ce=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Re(t))!Te.call(e,a)&&a!==r&&V(e,a,{get:()=>t[a],enumerable:!(o=Ae(t,a))||o.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?Me(Se(e)):{},ce(t||!e||!e.__esModule?V(r,"default",{value:e,enumerable:!0}):r,e)),Pe=e=>ce(V({},"__esModule",{value:!0}),e);var bt={};ze(bt,{Default:()=>te,InactiveCustomer:()=>gt,LargeDeal:()=>ft,default:()=>mt});module.exports=Pe(bt);var z=Ne(require("react"));var ye=require("clsx");var q="-",Le=e=>{let t=Ge(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(q);return s[0]===""&&s.length!==1&&s.shift(),ue(s,t)||De(l)},getConflictingClassGroupIds:(l,s)=>{let u=r[l]||[];return s&&o[l]?[...u,...o[l]]:u}}},ue=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ue(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(q);return(l=t.validators.find(({validator:s})=>s(n)))==null?void 0:l.classGroupId},de=/^\[(.+)\]$/,De=e=>{if(de.test(e)){let t=de.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ge=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ie(Object.entries(e.classGroups),r).forEach(([n,l])=>{Z(l,o,n,t)}),o},Z=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:pe(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ee(a)){Z(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,l])=>{Z(l,pe(t,n),r,o)})})},pe=(e,t)=>{let r=e;return t.split(q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ee=e=>e.isThemeGetter,Ie=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[t+l,s])):n);return[r,a]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){r.has(n)?r.set(n,l):a(n,l)}}},me="!",je=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,l=s=>{let u=[],g=0,h=0,x;for(let p=0;p<s.length;p++){let b=s[p];if(g===0){if(b===a&&(o||s.slice(p,p+n)===t)){u.push(s.slice(h,p)),h=p+n;continue}if(b==="/"){x=p;continue}}b==="["?g++:b==="]"&&g--}let v=u.length===0?s:s.substring(h),k=v.startsWith(me),w=k?v.substring(1):v,f=x&&x>h?x-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:f}};return r?s=>r({className:s,parseClassName:l}):l},Be=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Ve=e=>({cache:He(e.cacheSize),parseClassName:je(e),...Le(e)}),We=/\s+/,_e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],l=e.trim().split(We),s="";for(let u=l.length-1;u>=0;u-=1){let g=l[u],{modifiers:h,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:k}=r(g),w=!!k,f=o(w?v.substring(0,k):v);if(!f){if(!w){s=g+(s.length>0?" "+s:s);continue}if(f=o(v),!f){s=g+(s.length>0?" "+s:s);continue}w=!1}let p=Be(h).join(":"),b=x?p+me:p,y=b+f;if(n.includes(y))continue;n.push(y);let D=a(f,w);for(let T=0;T<D.length;++T){let H=D[T];n.push(b+H)}s=g+(s.length>0?" "+s:s)}return s};function Ue(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fe(t))&&(o&&(o+=" "),o+=r);return o}var fe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=fe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Je(e,...t){let r,o,a,n=l;function l(u){let g=t.reduce((h,x)=>x(h),e());return r=Ve(g),o=r.cache.get,a=r.cache.set,n=s,s(u)}function s(u){let g=o(u);if(g)return g;let h=_e(u,r);return a(u,h),h}return function(){return n(Ue.apply(null,arguments))}}var c=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fe=/^\d+\/\d+$/,$e=new Set(["px","full","screen"]),Oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>P(e)||$e.has(e)||Fe.test(e),R=e=>L(e,"length",st),P=e=>!!e&&!Number.isNaN(Number(e)),O=e=>L(e,"number",P),E=e=>!!e&&Number.isInteger(Number(e)),Xe=e=>e.endsWith("%")&&P(e.slice(0,-1)),i=e=>ge.test(e),S=e=>Oe.test(e),Ye=new Set(["length","size","percentage"]),et=e=>L(e,Ye,be),tt=e=>L(e,"position",be),rt=new Set(["image","url"]),ot=e=>L(e,rt,it),nt=e=>L(e,"",at),I=()=>!0,L=(e,t,r)=>{let o=ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},st=e=>Ze.test(e)&&!qe.test(e),be=()=>!1,at=e=>Qe.test(e),it=e=>Ke.test(e);var lt=()=>{let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),g=c("grayscale"),h=c("hueRotate"),x=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),b=c("opacity"),y=c("padding"),D=c("saturate"),T=c("scale"),H=c("sepia"),re=c("skew"),oe=c("space"),ne=c("translate"),U=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,t],d=()=>[i,t],se=()=>["",A,R],j=()=>["auto",P,i],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",i],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[P,i];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[A,R],blur:["none","",S,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",S,i],borderSpacing:d(),borderWidth:se(),contrast:M(),grayscale:G(),hueRotate:M(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Xe,R],inset:F(),margin:F(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:G(),skew:M(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),i]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",E,i]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",E,i]},i]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[E,i]},i]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],N:[{N:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",P,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,R]}],"underline-offset":[{"underline-offset":["auto",A,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),tt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",et]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[A,i]}],"outline-w":[{outline:[A,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[A,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,nt]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",S,i]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[D]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[E,i]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-N":[{"scroll-N":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,R,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],N:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-N":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var he=Je(lt);function C(...e){return he((0,ye.clsx)(e))}var N=require("react/jsx-runtime"),Q=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Q.displayName="Card";var K=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex flex-col space-y-1.5 p-6",e),...t}));K.displayName="CardHeader";var X=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var ct=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("text-sm text-muted-foreground",e),...t}));ct.displayName="CardDescription";var Y=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("p-6 pt-0",e),...t}));Y.displayName="CardContent";var dt=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex items-center p-6 pt-0",e),...t}));dt.displayName="CardFooter";var xe=require("class-variance-authority");var pt=(0,xe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ve({className:e,variant:t,...r}){return(0,N.jsx)("div",{className:C(pt({variant:t}),e),...r})}var W=require("lucide-react");function Ce({deal:e,customer:t,categories:r,onClick:o}){let a=r.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,N.jsxs)(Q,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,N.jsxs)(K,{className:"pb-2",children:[(0,N.jsx)("div",{className:"flex justify-between items-center",children:(0,N.jsx)(X,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,N.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,N.jsxs)(Y,{children:[(0,N.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,N.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,N.jsx)(W.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,N.jsx)("span",{children:e.assignee.name})]}),(0,N.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,N.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,N.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,N.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,N.jsx)(W.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,N.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,N.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,N.jsx)(ve,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}var ee=[{id:1,name:"Acme Corp",intro:"A leading technology company",active:!0},{id:2,name:"GlobalTech",intro:"Innovative solutions provider",active:!0},{id:3,name:"InnoSystems",intro:"Cutting-edge software development",active:!1}],ke=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],_=[{id:1,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",updatedAt:"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",updatedAt:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:"Jane Smith",timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}];var ut={title:"CRM/DealCard",component:Ce,parameters:{layout:"centered"}},mt=ut,te={args:{deal:_[0],customer:ee.find(e=>e.id===_[0].customer.id),categories:ke,onClick:()=>console.log("Deal card clicked")}},ft={args:{...te.args,deal:{..._[0],value:1e6}}},gt={args:{...te.args,customer:{...ee[2],active:!1}}};0&&(module.exports={Default,InactiveCustomer,LargeDeal});
1
+ "use strict";var Me=Object.create;var V=Object.defineProperty;var Ae=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)V(e,r,{get:t[r],enumerable:!0})},ce=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Re(t))!Te.call(e,a)&&a!==r&&V(e,a,{get:()=>t[a],enumerable:!(o=Ae(t,a))||o.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?Me(Se(e)):{},ce(t||!e||!e.__esModule?V(r,"default",{value:e,enumerable:!0}):r,e)),Pe=e=>ce(V({},"__esModule",{value:!0}),e);var bt={};ze(bt,{Default:()=>te,InactiveCustomer:()=>gt,LargeDeal:()=>ft,default:()=>mt});module.exports=Pe(bt);var z=Ne(require("react"));var ye=require("clsx");var q="-",Le=e=>{let t=Ge(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(q);return s[0]===""&&s.length!==1&&s.shift(),ue(s,t)||De(l)},getConflictingClassGroupIds:(l,s)=>{let u=r[l]||[];return s&&o[l]?[...u,...o[l]]:u}}},ue=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ue(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(q);return(l=t.validators.find(({validator:s})=>s(n)))==null?void 0:l.classGroupId},de=/^\[(.+)\]$/,De=e=>{if(de.test(e)){let t=de.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ge=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ie(Object.entries(e.classGroups),r).forEach(([n,l])=>{Z(l,o,n,t)}),o},Z=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:pe(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ee(a)){Z(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,l])=>{Z(l,pe(t,n),r,o)})})},pe=(e,t)=>{let r=e;return t.split(q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ee=e=>e.isThemeGetter,Ie=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[t+l,s])):n);return[r,a]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){r.has(n)?r.set(n,l):a(n,l)}}},me="!",je=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,l=s=>{let u=[],g=0,h=0,x;for(let p=0;p<s.length;p++){let b=s[p];if(g===0){if(b===a&&(o||s.slice(p,p+n)===t)){u.push(s.slice(h,p)),h=p+n;continue}if(b==="/"){x=p;continue}}b==="["?g++:b==="]"&&g--}let v=u.length===0?s:s.substring(h),k=v.startsWith(me),w=k?v.substring(1):v,f=x&&x>h?x-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:f}};return r?s=>r({className:s,parseClassName:l}):l},Be=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Ve=e=>({cache:He(e.cacheSize),parseClassName:je(e),...Le(e)}),We=/\s+/,_e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],l=e.trim().split(We),s="";for(let u=l.length-1;u>=0;u-=1){let g=l[u],{modifiers:h,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:k}=r(g),w=!!k,f=o(w?v.substring(0,k):v);if(!f){if(!w){s=g+(s.length>0?" "+s:s);continue}if(f=o(v),!f){s=g+(s.length>0?" "+s:s);continue}w=!1}let p=Be(h).join(":"),b=x?p+me:p,y=b+f;if(n.includes(y))continue;n.push(y);let D=a(f,w);for(let T=0;T<D.length;++T){let H=D[T];n.push(b+H)}s=g+(s.length>0?" "+s:s)}return s};function Ue(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fe(t))&&(o&&(o+=" "),o+=r);return o}var fe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=fe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Je(e,...t){let r,o,a,n=l;function l(u){let g=t.reduce((h,x)=>x(h),e());return r=Ve(g),o=r.cache.get,a=r.cache.set,n=s,s(u)}function s(u){let g=o(u);if(g)return g;let h=_e(u,r);return a(u,h),h}return function(){return n(Ue.apply(null,arguments))}}var c=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fe=/^\d+\/\d+$/,$e=new Set(["px","full","screen"]),Oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>P(e)||$e.has(e)||Fe.test(e),R=e=>L(e,"length",st),P=e=>!!e&&!Number.isNaN(Number(e)),O=e=>L(e,"number",P),E=e=>!!e&&Number.isInteger(Number(e)),Xe=e=>e.endsWith("%")&&P(e.slice(0,-1)),i=e=>ge.test(e),S=e=>Oe.test(e),Ye=new Set(["length","size","percentage"]),et=e=>L(e,Ye,be),tt=e=>L(e,"position",be),rt=new Set(["image","url"]),ot=e=>L(e,rt,it),nt=e=>L(e,"",at),I=()=>!0,L=(e,t,r)=>{let o=ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},st=e=>Ze.test(e)&&!qe.test(e),be=()=>!1,at=e=>Qe.test(e),it=e=>Ke.test(e);var lt=()=>{let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),n=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),g=c("grayscale"),h=c("hueRotate"),x=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),b=c("opacity"),y=c("padding"),D=c("saturate"),T=c("scale"),H=c("sepia"),re=c("skew"),oe=c("space"),ne=c("translate"),U=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,t],d=()=>[i,t],se=()=>["",A,R],j=()=>["auto",P,i],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",i],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[P,i];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[A,R],blur:["none","",S,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",S,i],borderSpacing:d(),borderWidth:se(),contrast:M(),grayscale:G(),hueRotate:M(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Xe,R],inset:F(),margin:F(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:G(),skew:M(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),i]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",E,i]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",E,i]},i]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[E,i]},i]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],N:[{N:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",P,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,R]}],"underline-offset":[{"underline-offset":["auto",A,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),tt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",et]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[A,i]}],"outline-w":[{outline:[A,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[A,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,nt]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",S,i]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[D]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[E,i]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-N":[{"scroll-N":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,R,O]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],N:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-N":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var he=Je(lt);function C(...e){return he((0,ye.clsx)(e))}var N=require("react/jsx-runtime"),Q=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Q.displayName="Card";var K=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex flex-col space-y-1.5 p-6",e),...t}));K.displayName="CardHeader";var X=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var ct=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("text-sm text-muted-foreground",e),...t}));ct.displayName="CardDescription";var Y=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("p-6 pt-0",e),...t}));Y.displayName="CardContent";var dt=z.forwardRef(({className:e,...t},r)=>(0,N.jsx)("div",{ref:r,className:C("flex items-center p-6 pt-0",e),...t}));dt.displayName="CardFooter";var xe=require("class-variance-authority");var pt=(0,xe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ve({className:e,variant:t,...r}){return(0,N.jsx)("div",{className:C(pt({variant:t}),e),...r})}var W=require("lucide-react");function Ce({deal:e,customer:t,categories:r,onClick:o}){let a=r.find(n=>n.type==="proposition"&&e.categories.includes(n.id));return(0,N.jsxs)(Q,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,N.jsxs)(K,{className:"pb-2",children:[(0,N.jsx)("div",{className:"flex justify-between items-center",children:(0,N.jsx)(X,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,N.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,N.jsxs)(Y,{children:[(0,N.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,N.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,N.jsx)(W.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,N.jsx)("span",{children:e.assignee.name})]}),(0,N.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,N.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,N.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,N.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,N.jsx)(W.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,N.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,N.jsx)("div",{className:"flex justify-between items-left",children:a&&(0,N.jsx)(ve,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:a.name})})]})]})}var ee=[{id:1,name:"Acme Corp",intro:"A leading technology company",active:!0},{id:2,name:"GlobalTech",intro:"Innovative solutions provider",active:!0},{id:3,name:"InnoSystems",intro:"Cutting-edge software development",active:!1}],ke=[{id:"1",name:"Software",type:"proposition"},{id:"2",name:"Hardware",type:"proposition"},{id:"3",name:"Referral",type:"source"},{id:"4",name:"Outbound",type:"source"},{id:"5",name:"Tech",type:"sector"},{id:"6",name:"Finance",type:"sector"}],_=[{id:1,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",updatedAt:"2023-05-01T10:00:00Z",comments:[{id:"1",text:"Initial contact made",author:{id:2,name:"Jane Smith"},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",updatedAt:"2023-05-10T14:30:00Z",comments:[{id:"2",text:"Proposal sent",author:{id:2,name:"Jane Smith"},timestamp:"2023-05-10T14:30:00Z"}],description:"Custom hardware solution for GlobalTech"}];var ut={title:"CRM/DealCard",component:Ce,parameters:{layout:"centered"}},mt=ut,te={args:{deal:_[0],customer:ee.find(e=>e.id===_[0].customer.id),categories:ke,onClick:()=>console.log("Deal card clicked")}},ft={args:{...te.args,deal:{..._[0],value:1e6}}},gt={args:{...te.args,customer:{...ee[2],active:!1}}};0&&(module.exports={Default,InactiveCustomer,LargeDeal});
@@ -1 +1 @@
1
- import{a as t,b as r,c as e}from"../../chunk-3EVGORF6.mjs";import{a as o}from"../../chunk-QH3BNFVD.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var c={title:"CRM/DealCard",component:o,parameters:{layout:"centered"}},d=c,a={args:{deal:e[0],customer:t.find(s=>s.id===e[0].customer.id),categories:r,onClick:()=>console.log("Deal card clicked")}},i={args:{...a.args,deal:{...e[0],value:1e6}}},p={args:{...a.args,customer:{...t[2],active:!1}}};export{a as Default,p as InactiveCustomer,i as LargeDeal,d as default};
1
+ import{a as t,b as r,c as e}from"../../chunk-AHLX3GTH.mjs";import{a as o}from"../../chunk-QH3BNFVD.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var c={title:"CRM/DealCard",component:o,parameters:{layout:"centered"}},d=c,a={args:{deal:e[0],customer:t.find(s=>s.id===e[0].customer.id),categories:r,onClick:()=>console.log("Deal card clicked")}},i={args:{...a.args,deal:{...e[0],value:1e6}}},p={args:{...a.args,customer:{...t[2],active:!1}}};export{a as Default,p as InactiveCustomer,i as LargeDeal,d as default};