cortex-react-components 1.43.3 → 1.43.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZXPDKKGX.mjs → chunk-27GMB7QZ.mjs} +1 -1
- package/dist/{chunk-QNKQEXU3.mjs → chunk-FYMNYQNR.mjs} +1 -1
- package/dist/{chunk-LE5KFDND.mjs → chunk-IV6YI3IO.mjs} +1 -1
- package/dist/{chunk-CBDDGINA.mjs → chunk-LQ3E34A2.mjs} +1 -1
- package/dist/{chunk-72SXYDHA.mjs → chunk-NN6YNXCJ.mjs} +1 -1
- package/dist/{chunk-5PW2VQWX.mjs → chunk-NYMWV2AX.mjs} +1 -1
- package/dist/{chunk-CUBV2IRQ.mjs → chunk-PXVYSZBQ.mjs} +1 -1
- package/dist/{chunk-KRJQF2ZW.mjs → chunk-QJ7Q24VU.mjs} +1 -1
- package/dist/{chunk-DYIUZ4V5.mjs → chunk-UO2QAXEA.mjs} +1 -1
- package/dist/{chunk-VWNFINDU.mjs → chunk-WDREYBFE.mjs} +1 -1
- package/dist/chunk-YMAMQQ3Z.mjs +1 -0
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.js +1 -1
- package/dist/components/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.js +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.js +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.js +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.js +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.stories.js +1 -1
- package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-AS3NR4OU.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as M}from"./chunk-3FW5YDNM.mjs";import{a as w}from"./chunk-4NKKWJ2X.mjs";import{a as g,c as v,d as f,g as C,i as h}from"./chunk-4JC2TJML.mjs";import{a as
|
|
1
|
+
import{a as M}from"./chunk-3FW5YDNM.mjs";import{a as w}from"./chunk-4NKKWJ2X.mjs";import{a as g,c as v,d as f,g as C,i as h}from"./chunk-4JC2TJML.mjs";import{a as E}from"./chunk-A5EYIB3V.mjs";import{a as l}from"./chunk-DWRQHV42.mjs";import{a as T}from"./chunk-Y5ZFXDW5.mjs";import{a as A,f as L,g as P,i as I}from"./chunk-JWDVKGZL.mjs";import{a as u}from"./chunk-QOIH63J3.mjs";import{b as p}from"./chunk-GLEWUUGS.mjs";import{useState as N,useEffect as G}from"react";import{PlusIcon as J}from"lucide-react";import{Fragment as K,jsx as t,jsxs as r}from"react/jsx-runtime";function oe({customers:S,users:D,categories:O,onSubmit:R,initialDeal:c,onAddCustomer:V,onClose:d}){var b,y,F,k;let[s,o]=N(c||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[q,n]=N(!1),[i,x]=N({});G(()=>{c&&o(c)},[c]);let U=()=>{let e={};return s.customer||(e.customer="Customer is required"),s.value||(e.value="Value is required"),s.assignee||(e.assignee="Assignee is required"),s.closureDate||(e.closureDate="Closure Date is required"),x(e),Object.keys(e).length===0},B=e=>{e.preventDefault(),U()&&(R({...s}),o({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),x({}),d==null||d())},H=e=>{o(a=>{var m;return{...a,categories:(m=a.categories)!=null&&m.includes(e)?a.categories.filter(j=>j!==e):[...a.categories||[],e]}})},z=e=>{S.push(e),o({...s,customer:e}),n(!1),V(e)};return r(K,{children:[r("form",{onSubmit:B,className:"space-y-6",children:[t(w,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(g,{value:(y=(b=s.customer)==null?void 0:b.id)==null?void 0:y.toString(),onValueChange:e=>o({...s,customer:{id:Number(e)}}),children:[t(f,{children:t(v,{placeholder:"Select customer"})}),t(C,{children:S.map(e=>{var a;return t(h,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),t(p,{variant:"outline",size:"icon",onClick:()=>n(!0),children:t(J,{className:"w-5 h-5"})})]}),i.customerId&&t("p",{className:"text-red-500 text-sm",children:i.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(u,{id:"value",type:"number",value:s.value||"",onChange:e=>o({...s,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),i.value&&t("p",{className:"text-red-500 text-sm",children:i.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(g,{value:(k=(F=s.assignee)==null?void 0:F.id)==null?void 0:k.toString(),onValueChange:e=>o({...s,assignee:{id:Number(e)}}),children:[t(f,{children:t(v,{placeholder:"Select assignee"})}),t(C,{children:D&&D.map(e=>{var a;return t(h,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),i.assignee&&t("p",{className:"text-red-500 text-sm",children:i.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(E,{id:"description",value:s.description||"",onChange:e=>o({...s,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:O.filter(a=>a.type===e).map(a=>{var m;return r("div",{className:"flex items-center space-x-2",children:[t(T,{id:a.id,checked:(m=s.categories)==null?void 0:m.includes(a.id),onCheckedChange:()=>H(a.id)}),t("label",{htmlFor:a.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:a.name})]},a.id)})})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(u,{id:"closureDate",type:"date",value:s.closureDate,onChange:e=>o({...s,closureDate:e.target.value})}),i.closureDate&&t("p",{className:"text-red-500 text-sm",children:i.closureDate})]})]})}),t(p,{type:"submit",className:"w-full",children:c?"Update Deal":"Add Deal"})]}),t(A,{open:q,onOpenChange:n,children:r(L,{children:[t(P,{children:t(I,{children:"Add New Customer"})}),t(M,{onSubmit:z})]})})]})}export{oe as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as D,b as P,d as x}from"./chunk-HWEPDRG6.mjs";import{a as N}from"./chunk-XGQLOPHW.mjs";import{a as d}from"./chunk-DWRQHV42.mjs";import{b as c}from"./chunk-GLEWUUGS.mjs";import{a as h}from"./chunk-NIQ4466A.mjs";import{useState as f,useEffect as T}from"react";import{format as S}from"date-fns";import{CalendarIcon as L}from"lucide-react";import{useRouter as R}from"next/navigation";import{Toaster as B,toast as p}from"sonner";import{jsx as e,jsxs as s}from"react/jsx-runtime";var q=({options:r,value:l,onChange:a,disabled:n=[]})=>e("div",{className:"flex space-x-2",children:r.map((t,i)=>e(c,{type:"button",variant:l===t?"default":"outline",onClick:()=>a(t),disabled:n[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:t},t))});function J({remainingDays:r,submitLeaveRequest:l}){let[a,n]=f(new Date),[t,i]=f(new Date),[m,v]=f("Full Day"),[g,C]=f(!1),F=R();T(()=>{C(a!==t||!a||!t),g&&v("Full Day")},[a,t]);let w=o=>{v(o)};return s("div",{className:"max-w-2xl",children:[e("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),s("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",r]}),s("form",{onSubmit:async o=>{if(o.preventDefault(),!a||!t){p.error("Please select both start and end dates");return}let y=Math.ceil((t.getTime()-a.getTime())/(1e3*60*60*24))+1;if((m==="Morning"||m==="Afternoon")&&(y=.5),y>r){p.error("You do not have enough leave days remaining");return}let u=new FormData;u.append("startDate",a.toISOString()),u.append("endDate",t.toISOString()),u.append("leaveType",m),u.append("duration",y.toString());let b=await(l||E)(u);b.success?(p.success(b.message),n(void 0),i(void 0),v("Full Day"),F.refresh()):p.error(`Error: ${b.message}`)},className:"space-y-4",children:[s("div",{className:"grid grid-cols-2 gap-4",children:[s("div",{className:"flex flex-col space-y-2",children:[e(d,{htmlFor:"startDate",children:"Start Date"}),s(D,{children:[e(P,{asChild:!0,children:s(c,{variant:"outline",className:h("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e(L,{className:"mr-2 h-4 w-4"}),a?S(a,"PPP"):e("span",{children:"Pick a date"})]})}),e(x,{className:"w-auto p-0",align:"start",children:e(N,{mode:"single",selected:a,onSelect:o=>{n(o),o&&(!t||o>t)&&i(o)},initialFocus:!0})})]})]}),s("div",{className:"flex flex-col space-y-2",children:[e(d,{htmlFor:"endDate",children:"End Date"}),s(D,{children:[e(P,{asChild:!0,children:s(c,{variant:"outline",className:h("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[e(L,{className:"mr-2 h-4 w-4"}),t?S(t,"PPP"):e("span",{children:"Pick a date"})]})}),e(x,{className:"w-auto p-0",align:"start",children:e(N,{mode:"single",selected:t,onSelect:i,disabled:o=>a?o<a:!1,initialFocus:!0})})]})]})]}),s("div",{className:"space-y-2",children:[e(d,{children:"Leave Type"}),e(q,{options:["Full Day","Morning","Afternoon"],value:m,onChange:w,disabled:[!1,g,g]})]}),e(c,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),e(B,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var E=async r=>{let l={};return r.forEach((a,n)=>{l[n]=a}),{success:!0,message:`Leave request submitted successfully for ${r.get("duration")}`}};export{J as a};
|
|
4
|
+
import{a as D,b as P,d as x}from"./chunk-HWEPDRG6.mjs";import{a as N}from"./chunk-XGQLOPHW.mjs";import{a as d}from"./chunk-DWRQHV42.mjs";import{b as c}from"./chunk-GLEWUUGS.mjs";import{a as h}from"./chunk-NIQ4466A.mjs";import{useState as f,useEffect as T}from"react";import{format as S}from"date-fns";import{CalendarIcon as L}from"lucide-react";import{useRouter as R}from"next/navigation";import{Toaster as B,toast as p}from"sonner";import{jsx as e,jsxs as s}from"react/jsx-runtime";var q=({options:r,value:l,onChange:a,disabled:n=[]})=>e("div",{className:"flex space-x-2",children:r.map((t,i)=>e(c,{type:"button",variant:l===t?"default":"outline",onClick:()=>a(t),disabled:n[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:t},t))});function J({remainingDays:r,submitLeaveRequest:l}){let[a,n]=f(new Date),[t,i]=f(new Date),[m,v]=f("Full Day"),[g,C]=f(!1),F=R();T(()=>{C(a!==t||!a||!t),g&&v("Full Day")},[a,t]);let w=o=>{v(o)};return s("div",{className:"max-w-2xl",children:[e("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),s("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",r]}),s("form",{onSubmit:async o=>{if(o.preventDefault(),!a||!t){p.error("Please select both start and end dates");return}let y=Math.ceil((t.getTime()-a.getTime())/(1e3*60*60*24))+1;if((m==="Morning"||m==="Afternoon")&&(y=.5),y>r){p.error("You do not have enough leave days remaining");return}let u=new FormData;u.append("startDate",a.toISOString()),u.append("endDate",t.toISOString()),u.append("leaveType",m),u.append("duration",y.toString());let b=await(l||E)(u);b.success?(p.success(b.message),n(void 0),i(void 0),v("Full Day"),F.refresh()):p.error(`Error: ${b.message}`)},className:"space-y-4",children:[s("div",{className:"grid grid-cols-2 gap-4",children:[s("div",{className:"flex flex-col space-y-2",children:[e(d,{htmlFor:"startDate",children:"Start Date"}),s(D,{children:[e(P,{asChild:!0,children:s(c,{variant:"outline",className:h("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e(L,{className:"mr-2 h-4 w-4"}),a?S(a,"PPP"):e("span",{children:"Pick a date"})]})}),e(x,{className:"w-auto p-0",align:"start",children:e(N,{mode:"single",selected:a,onSelect:o=>{n(o),o&&(!t||o>t)&&i(o)},initialFocus:!0})})]})]}),s("div",{className:"flex flex-col space-y-2",children:[e(d,{htmlFor:"endDate",children:"End Date"}),s(D,{children:[e(P,{asChild:!0,children:s(c,{variant:"outline",className:h("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[e(L,{className:"mr-2 h-4 w-4"}),t?S(t,"PPP"):e("span",{children:"Pick a date"})]})}),e(x,{className:"w-auto p-0",align:"start",children:e(N,{mode:"single",selected:t,onSelect:i,disabled:o=>a?o<a:!1,initialFocus:!0})})]})]})]}),s("div",{className:"space-y-2",children:[e(d,{children:"Leave Type"}),e(q,{options:["Full Day","Morning","Afternoon"],value:m,onChange:w,disabled:[!1,g,g]})]}),e(c,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),e(B,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var E=async r=>{let l={};return r.forEach((a,n)=>{l[n]=a}),{success:!0,message:`Leave request submitted successfully for ${r.get("duration")}`}};export{J as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as p}from"./chunk-NYMWV2AX.mjs";import{a as i}from"./chunk-NN6YNXCJ.mjs";import{useState as b,useCallback as M}from"react";import{DragDropContext as y}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as w}from"react/jsx-runtime";var x=["Cold","Qualified","Proposal","SoW","Won","Lost"];function k({initialData:a,addNewDeal:C,updateDeal:d,addComment:D,addNewCustomer:g}){let[s,c]=b(null),f=e=>a.deals.filter(o=>o.status===e),v=e=>e.reduce((o,t)=>o+(t.value||0),0),S=(e,o)=>{let t={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return e.reduce((n,r)=>n+(r.value||0)*t[o],0)},R=M(e=>{let{source:o,destination:t}=e;if(!t||o.droppableId===t.droppableId&&o.index===t.index)return;let n=o.droppableId,r=t.droppableId;console.log("Moving from ",n,"to",r);let m=[...a.deals],[u]=m.splice(o.index,1);u.status=r,m.splice(t.index,0,u),d(u)},[d]);return l(y,{onDragEnd:R,children:w("div",{className:"p-4",children:[l("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:x.filter(e=>e!=="Won"&&e!=="Lost").map(e=>{let o=f(e);return l(i,{status:e,deals:o,customers:a.customers,users:a.users,categories:a.categories,onDealClick:c,calculateColumnValue:v,calculateWeightedValue:S,addNewDeal:e==="Cold"?C:void 0,onAddCustomer:g},e)})}),s&&l(p,{deal:s,users:a.users,customer:a.customers.find(e=>e.id===s.customer.id),categories:a.categories,onClose:()=>c(null),onSave:d,onAddComment:e=>D(s.id.toString(),e)})]})})}export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
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 n}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 i}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 f({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:i("ol",{role:"list",className:"flex items-center space-x-4",children:[t("li",{children:t("div",{children:i("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:i("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 d}from"react/jsx-runtime";function m({title:a,breadcrumbItems:r,image:e}){return d("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(n,{children:d("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:"font-secondary text-5xl font-bold lg:w-1/2",children:a}),r&&r.length>0&&o(f,{breadcrumbItems:r})]})})]})}export{m as a,k as b,f as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-27GMB7QZ.mjs";import{a as b}from"./chunk-QH3BNFVD.mjs";import{a as p,b as u,f as D,g as c,i as C}from"./chunk-JWDVKGZL.mjs";import{b as d}from"./chunk-GLEWUUGS.mjs";import{useState as R}from"react";import{PlusCircle as y}from"lucide-react";import{Droppable as M,Draggable as T}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as e,jsxs as a}from"react/jsx-runtime";function U({status:l,deals:t,users:h,customers:i,categories:n,onDealClick:N,calculateColumnValue:w,calculateWeightedValue:x,addNewDeal:m,onAddCustomer:P}){let[S,g]=R(!1);return a("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:l}),m&&a(p,{open:S,onOpenChange:g,children:[e(u,{asChild:!0,children:a(d,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[e(y,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),a(D,{children:[e(c,{children:e(C,{children:"Add New Deal"})}),e(f,{customers:i,users:h,categories:n,onSubmit:m,onAddCustomer:P,onClose:()=>g(!1)})]})]}),e(M,{droppableId:l,isDropDisabled:!1,children:r=>a("div",{ref:r.innerRef,...r.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((o,A)=>e(T,{draggableId:o.id.toString(),index:o.id,children:s=>e("div",{ref:s.innerRef,...s.draggableProps,...s.dragHandleProps,children:e(b,{deal:o,customer:i.find(v=>v.id===o.customer.id),categories:n,onClick:()=>N(o)})})},o.id.toString())),r.placeholder]})}),a("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[a("p",{className:"font-semibold",children:["Total:"," ",a("span",{className:"text-green-600",children:["\xA3",w(t).toLocaleString()]})]}),a("p",{className:"font-semibold",children:["Weighted:"," ",a("span",{className:"text-blue-600",children:["\xA3",x(t,l).toLocaleString()]})]})]})]})}export{U as a};
|
|
@@ -1 +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
|
|
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 H}from"./chunk-A5EYIB3V.mjs";import{a as o}from"./chunk-DWRQHV42.mjs";import{a as O}from"./chunk-Y5ZFXDW5.mjs";import{a as F,f as E,g as P,i as R}from"./chunk-JWDVKGZL.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:D,onClose:U,onSave:V,onAddComment:J}){var B,A,I;let[s,b]=p({...g,value:g.value||0}),[u,w]=p(""),[z,k]=p(!1),[r,i]=p(null);j(()=>{k(JSON.stringify(g)!==JSON.stringify(s))},[g,s]);let G=()=>{V(s),k(!1),i(null)},n=(e,l)=>{b(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()}),b(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 T=r===e;return t("div",{className:"grid gap-2",children:[a(o,{className:"text-sm font-medium text-gray-500",children:l}),t("div",{className:"flex items-center space-x-2",children:[d,T?a(c,{value:s[e],onChange:$=>n(e,$.target.value),onBlur:()=>i(null),autoFocus:!0}):a("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>i(e),children:s[e]}),!T&&a(m,{variant:"ghost",size:"sm",onClick:()=>i(e),children:a(Y,{className:"w-4 h-4"})})]})]})};return a(F,{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:()=>i(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:()=>i("value"),children:["\xA3",(B=s.value)==null?void 0:B.toLocaleString()]})}),t("div",{className:"grid gap-2",children:[a(o,{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:()=>i("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(o,{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:()=>i(null),autoFocus:!0}):t("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>i("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(o,{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:()=>i(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>i("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(o,{className:"text-sm font-medium text-gray-500",children:"Status"}),r==="status"?t(N,{value:s.status,onValueChange:e=>{n("status",e),i(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:()=>i("status"),children:s.status})]}),t("div",{className:"grid col-span-2 gap-2",children:[a(o,{className:"text-sm font-medium text-gray-500",children:"Categories"}),r==="categories"?a("div",{className:"grid grid-cols-2 gap-2",children:D.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:()=>i("categories"),children:s.categories.map(e=>{let l=D.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(o,{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.slice().sort((e,l)=>new Date(l.timestamp).getTime()-new Date(e.timestamp).getTime()).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==null?void 0: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};
|
|
@@ -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-
|
|
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-LQ3E34A2.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
|
|
4
|
+
import{a as v}from"./chunk-FYMNYQNR.mjs";import{a as p}from"./chunk-UO2QAXEA.mjs";import{a as y}from"./chunk-DE2DIWCC.mjs";import{a as f}from"./chunk-MP3J7UPZ.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as A,CheckSquare as k}from"lucide-react";import{useRouter as M}from"next/navigation";import{format as T,parseISO as V}from"date-fns";import{jsx as r,jsxs as n}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:t,currentDate:D,leaveApprovals:h,employees:x,submitLeaveRequest:i,approveLeave:o,rejectLeave:d}){let[a,m]=N("Calendar View"),w=M(),L=!1,u=V(D),c=async e=>{let C=T(e,"dd-MM-yyyy"),g=new URL(window.location.href);return g.searchParams.set("date",C),w.push(g.toString()),{success:!0}};if(L)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let l=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:A,current:a==="Request Leave"},{name:"Approve Leave",icon:k,current:a==="Approve Leave"}];return n("div",{className:"container fixed mx-auto p-4",children:[n("div",{className:"mb-8",children:[n("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>m(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:l.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:l.map(e=>n("a",{onClick:()=>{(e.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:u,setCurrentDate:c,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:u,setCurrentDate:c,holidays:s}),a==="Request Leave"&&r(v,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:e=>i?i(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(p,{leaveRequests:h,onApprove:e=>o?o(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>d?d(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{useState as A}from"react";import{Toaster as D,toast as c}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as t}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:u}){let[a,i]=A([]),d=k(),h=()=>{a.length===l.length?i([]):i(l.map(e=>e.id))},N=e=>{i(r=>r.includes(e)?r.filter(b=>b!==e):[...r,e])},x=async()=>{let e=await f(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])},y=async()=>{let e=await u(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])};return t("div",{className:"space-y-4",children:[t("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),t("div",{className:"space-x-2",children:[s(n,{onClick:x,disabled:a.length===0,variant:"default",children:"Approve Selected"}),s(n,{onClick:y,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:t("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:"select-all",checked:a.length===l.length,onCheckedChange:h,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),t("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:`select-${e.id}`,checked:a.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),t("div",{className:"ml-3 flex items-center",children:[t(m,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(r=>r[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),t("div",{className:"flex items-center space-x-2",children:[t("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}export{R as a};
|
|
4
|
+
import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{b as n}from"./chunk-GLEWUUGS.mjs";import{useState as A}from"react";import{Toaster as D,toast as c}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as t}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:u}){let[a,i]=A([]),d=k(),h=()=>{a.length===l.length?i([]):i(l.map(e=>e.id))},N=e=>{i(r=>r.includes(e)?r.filter(b=>b!==e):[...r,e])},x=async()=>{let e=await f(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])},y=async()=>{let e=await u(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])};return t("div",{className:"space-y-4",children:[t("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),t("div",{className:"space-x-2",children:[s(n,{onClick:x,disabled:a.length===0,variant:"default",children:"Approve Selected"}),s(n,{onClick:y,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:t("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:"select-all",checked:a.length===l.length,onCheckedChange:h,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),t("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:`select-${e.id}`,checked:a.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),t("div",{className:"ml-3 flex items-center",children:[t(m,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(r=>r[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),t("div",{className:"flex items-center space-x-2",children:[t("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
|
|
@@ -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
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-R7P4VVM3.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as l}from"./chunk-NIQ4466A.mjs";import i from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:c,keyPoints:o,description:s}=d;return e("section",{id:"about-section",className:l("section-padding-primary",d.className||""),children:e(n,{children:t("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[t("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(m,{...c}),o&&o.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((r,g)=>t("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),s&&e("p",{className:"mt-5 md:mt-[1.875rem]",children:s})]}),a&&e("div",{className:"mx-auto text-center",children:t("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[t("div",{className:"relative flex justify-end overflow-hidden",children:[t("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[e("span",{className:"absolute -left-2.5 -top-2.5 -z-1 h-full w-full rounded-tl-[60px] bg-accent"}),e("div",{className:"relative z-[4] overflow-hidden",children:e(i,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),e(i,{src:a.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] z-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),e("div",{className:"flex overflow-hidden",children:e(i,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(i,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(i,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-NYMWV2AX.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealDetails};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../chunk-
|
|
1
|
+
import{a as o}from"../../chunk-NYMWV2AX.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var n={title:"CRM/DealDetails",component:o,parameters:{layout:"centered"},tags:["autodocs"]},p=n,m={id:"1",name:"Acme Corp",active:!0},s=[{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=e=>Array.from({length:e},(c,t)=>({id:`comment-${t+1}`,text:`This is comment number ${t+1}. It's a mock comment to test the scrolling behavior of the comments section in the DealDetails component.`,author:["John Doe","Jane Smith","Bob Johnson"][t%3],timestamp:new Date(Date.now()-(e-t)*24*60*60*1e3).toISOString()})),r={id:1,customer:{id:1,name:"Acme Corp",active:!0},value:1e5,assignee:{id:1,name:"John Doe"},status:"Qualified",categories:["1","3","5"],dateLogged:"2023-01-01T00:00:00.000Z",closureDate:"2023-12-31T00:00:00.000Z",updatedAt:"2023-06-15T12:00:00.000Z",comments:a(50),description:"This is a mock deal for Acme Corp. It involves a large software project with potential for hardware integration."},i={args:{deal:r,customer:m,categories:s,onClose:()=>console.log("Close clicked"),onSave:e=>console.log("Save clicked",e),onAddComment:e=>console.log("Comment added",e)}},d={args:{...i.args,deal:{...r,comments:a(100)}}};export{i as Default,d as WithManyComments,p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-IV6YI3IO.mjs";import"../../chunk-NYMWV2AX.mjs";import"../../chunk-NN6YNXCJ.mjs";import"../../chunk-27GMB7QZ.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-QH3BNFVD.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CRMKanbanBoard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as n,d as r}from"../../chunk-AHLX3GTH.mjs";import{a as d}from"../../chunk-
|
|
1
|
+
import{a as e,b as n,d as r}from"../../chunk-AHLX3GTH.mjs";import{a as d}from"../../chunk-IV6YI3IO.mjs";import"../../chunk-NYMWV2AX.mjs";import"../../chunk-NN6YNXCJ.mjs";import"../../chunk-27GMB7QZ.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-QH3BNFVD.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";import{useState as g}from"react";import{jsx as u}from"react/jsx-runtime";var h={title:"CRM/KanbanBoard",component:d},C=h,m=a=>{let[t,c]=g(a.initialData);return u(d,{...a,initialData:t,updateDeal:async o=>(console.log("Updating deal:",o),c(i=>({...i,deals:i.deals.map(l=>l.id===o.id?o:l)})),o)})},s=m.bind({});s.args={initialData:{deals:Array.from({length:20},(a,t)=>({id:(t+1).toString(),customer:e[t%e.length],value:Math.floor(Math.random()*1e5)+5e3,assignee:r[Math.floor(Math.random()*r.length)].name,status:["Cold","Qualified","Proposal Made","Won","Lost"][Math.floor(Math.random()*5)],categories:[n[t%n.length].id],dateLogged:new Date(Date.now()-Math.floor(Math.random()*30)*24*60*60*1e3).toISOString(),closureDate:new Date(Date.now()+Math.floor(Math.random()*90)*24*60*60*1e3).toISOString(),comments:[],lastModified:new Date().toISOString(),description:`This is a mock description for deal ${t+1}. It's a ${["small","medium","large"][t%3]} deal with high potential.`})),customers:e,users:r,categories:n},addNewDeal:async a=>(console.log("Adding deal:",a),{...a,id:"new-deal-id"}),addNewCustomer:async a=>(console.log("Adding customer:",a),{...a,id:"new-customer-id"}),addComment:async(a,t)=>(console.log("Adding comment to deal:",a,t),{...t,id:"new-comment-id"})};var M=m.bind({});M.args={...s.args,initialData:{...s.args.initialData,deals:[]}};export{s as Default,M as NoDeals,C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-NN6YNXCJ.mjs";import"../../chunk-27GMB7QZ.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-QH3BNFVD.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as KanbanColumn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,b as n,c as s}from"../../chunk-AHLX3GTH.mjs";import{a}from"../../chunk-
|
|
1
|
+
import{a as l,b as n,c as s}from"../../chunk-AHLX3GTH.mjs";import{a}from"../../chunk-NN6YNXCJ.mjs";import"../../chunk-27GMB7QZ.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-QH3BNFVD.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var c={title:"CRM/KanbanColumn",component:a,parameters:{layout:"centered"}},p=c,m={args:{status:"Qualified",deals:s.filter(e=>e.status==="Qualified"),customers:l,categories:n,onDealClick:e=>console.log("Deal clicked:",e),calculateColumnValue:e=>e.reduce((o,t)=>o+t.value,0),calculateWeightedValue:(e,o)=>{let t={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return e.reduce((r,u)=>r+u.value*t[o],0)},addNewDeal:async e=>console.log("Adding new deal:",e),onAddCustomer:async e=>console.log("Adding new customer:",e)}},y={args:{...m.args,status:"Won",deals:[]}};export{m as Default,y as EmptyColumn,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-27GMB7QZ.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as NewDealForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,b as r,c as a}from"../../chunk-AHLX3GTH.mjs";import{a as e}from"../../chunk-
|
|
1
|
+
import{a as t,b as r,c as a}from"../../chunk-AHLX3GTH.mjs";import{a as e}from"../../chunk-27GMB7QZ.mjs";import"../../chunk-3FW5YDNM.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var m={title:"CRM/NewDealForm",component:e,parameters:{layout:"centered"}},c=m,s={args:{customers:t,categories:r,onSubmit:async o=>console.log("Submitting deal:",o),onAddCustomer:async o=>console.log("Adding new customer:",o)}},i={args:{...s.args,initialDeal:a[0]}};export{s as Default,i as EditExistingDeal,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"../../chunk-
|
|
1
|
+
import{a as f}from"../../chunk-IV6YI3IO.mjs";import{a}from"../../chunk-NYMWV2AX.mjs";import{a as e}from"../../chunk-NN6YNXCJ.mjs";import{a as d}from"../../chunk-27GMB7QZ.mjs";import{a as c}from"../../chunk-3FW5YDNM.mjs";import{a as b}from"../../chunk-QH3BNFVD.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{f as CRMKanbanBoard,b as DealCard,a as DealDetails,e as KanbanColumn,c as NewCustomerForm,d as NewDealForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as e}from"../../chunk-YCX5N23N.mjs";import{a as d}from"../../chunk-FGWIT6CV.mjs";import{a}from"../../chunk-ZWKWU7U4.mjs";import{a as g}from"../../chunk-66ZAIUUI.mjs";import{a as f}from"../../chunk-TQCGX4Y6.mjs";import{a as b}from"../../chunk-VZXLXNVY.mjs";import{a as c}from"../../chunk-Y2KKUQDU.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as CustomerCard,c as EventCard,a as FeatureCard,e as Image,g as PricingCard,d as ProjectCard,f as ServiceCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"../../chunk-DRJBYVJB.mjs";import{a as e}from"../../chunk-GOMLTG5W.mjs";import{a as g}from"../../chunk-DESYC5BB.mjs";import{a as d}from"../../chunk-XDP6BKTK.mjs";import{a as c}from"../../chunk-3TIFSACL.mjs";import"../../chunk-SV3TTIPR.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-CS77R54Z.mjs";import{a as f}from"../../chunk-23L5ZJ2U.mjs";import{a as b}from"../../chunk-HAYRX2WO.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as BrandLogo,f as Footer,g as Header,c as HeaderDesktop,d as HeaderMobile,a as SimpleHeader,e as VideoHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-CWNEDSLD.mjs";import"../../../chunk-PRUIYGQW.mjs";import"../../../chunk-H4Y4SZIU.mjs";import"../../../chunk-RBZMFLLA.mjs";import"../../../chunk-WRPART4J.mjs";import"../../../chunk-7VKHSE4O.mjs";import"../../../chunk-N6EJQZAV.mjs";import"../../../chunk-HWEPDRG6.mjs";import"../../../chunk-XGQLOPHW.mjs";import"../../../chunk-4NKKWJ2X.mjs";import"../../../chunk-4JC2TJML.mjs";import"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-CWNEDSLD.mjs";import"../../../chunk-PRUIYGQW.mjs";import"../../../chunk-H4Y4SZIU.mjs";import"../../../chunk-RBZMFLLA.mjs";import"../../../chunk-WRPART4J.mjs";import"../../../chunk-7VKHSE4O.mjs";import"../../../chunk-N6EJQZAV.mjs";import"../../../chunk-HWEPDRG6.mjs";import"../../../chunk-XGQLOPHW.mjs";import"../../../chunk-4NKKWJ2X.mjs";import"../../../chunk-4JC2TJML.mjs";import"../../../chunk-A5EYIB3V.mjs";import"../../../chunk-DWRQHV42.mjs";import"../../../chunk-Y5ZFXDW5.mjs";import"../../../chunk-JWDVKGZL.mjs";import"../../../chunk-AWFQEK7A.mjs";import"../../../chunk-3YZN4MJB.mjs";import"../../../chunk-WNPA7YT3.mjs";import"../../../chunk-D43ENVPX.mjs";import"../../../chunk-BSQVKZCW.mjs";import"../../../chunk-Y5VTKEKS.mjs";import"../../../chunk-CGBVZQYY.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-QOIH63J3.mjs";import"../../../chunk-OAOCXXC2.mjs";import"../../../chunk-SBM5HULF.mjs";import"../../../chunk-Q6SEVCRG.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-YNNW2C2U.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as PostHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"../../chunk-
|
|
1
|
+
import{b as a,c as b}from"../../chunk-LQ3E34A2.mjs";import"../../chunk-Q5EQOIL7.mjs";import"../../chunk-7322R3ID.mjs";import"../../chunk-YQZH5MJU.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as Breadcrumbs,a as RenderHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-LQ3E34A2.mjs";import"../../../chunk-Q5EQOIL7.mjs";import"../../../chunk-7322R3ID.mjs";import"../../../chunk-YQZH5MJU.mjs";import"../../../chunk-QIGWPB3D.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-NWW7KWJK.mjs";import"../../../chunk-UK4IPFAO.mjs";import"../../../chunk-HUN2X4VH.mjs";import"../../../chunk-ICTOXY7D.mjs";import"../../../chunk-YNDKGRL6.mjs";import"../../../chunk-TFWGOEV7.mjs";import"../../../chunk-763KMQIQ.mjs";import"../../../chunk-J2VQUYES.mjs";import"../../../chunk-SJWGFZJ6.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-UESKYRNK.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as SectionHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as f,c as g}from"../../chunk-
|
|
1
|
+
import{a as e,b as f,c as g}from"../../chunk-LQ3E34A2.mjs";import{a}from"../../chunk-Q5EQOIL7.mjs";import{a as c}from"../../chunk-7322R3ID.mjs";import{a as b}from"../../chunk-YQZH5MJU.mjs";import{a as d}from"../../chunk-CWNEDSLD.mjs";import"../../chunk-PRUIYGQW.mjs";import"../../chunk-H4Y4SZIU.mjs";import"../../chunk-RBZMFLLA.mjs";import"../../chunk-WRPART4J.mjs";import"../../chunk-7VKHSE4O.mjs";import"../../chunk-N6EJQZAV.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-AWFQEK7A.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-3YZN4MJB.mjs";import"../../chunk-WNPA7YT3.mjs";import"../../chunk-D43ENVPX.mjs";import"../../chunk-BSQVKZCW.mjs";import"../../chunk-Y5VTKEKS.mjs";import"../../chunk-CGBVZQYY.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-OAOCXXC2.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-YNNW2C2U.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-S7OK7D5I.mjs";export{g as Breadcrumbs,a as HighImpactHero,c as LowImpactHero,b as MediumImpactHero,d as PostHero,f as RenderHero,e as SectionHero};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var Te=Object.create;var _=Object.defineProperty;var Ge=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var Ve=(e,t)=>{for(var r in t)_(e,r,{get:t[r],enumerable:!0})},pe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ee(t))!Be.call(e,s)&&s!==r&&_(e,s,{get:()=>t[s],enumerable:!(o=Ge(t,s))||o.enumerable});return e};var L=(e,t,r)=>(r=e!=null?Te(Le(e)):{},pe(t||!e||!e.__esModule?_(r,"default",{value:e,enumerable:!0}):r,e)),je=e=>pe(_({},"__esModule",{value:!0}),e);var yt={};Ve(yt,{ApproveLeave:()=>vt});module.exports=je(yt);var Me=require("react");var xe=require("clsx");var ee="-",Fe=e=>{let t=$e(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let a=l.split(ee);return a[0]===""&&a.length!==1&&a.shift(),fe(a,t)||We(l)},getConflictingClassGroupIds:(l,a)=>{let m=r[l]||[];return a&&o[l]?[...m,...o[l]]:m}}},fe=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?fe(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(ee);return(l=t.validators.find(({validator:a})=>a(n)))==null?void 0:l.classGroupId},ue=/^\[(.+)\]$/,We=e=>{if(ue.test(e)){let t=ue.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},$e=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return De(Object.entries(e.classGroups),r).forEach(([n,l])=>{q(l,o,n,t)}),o},q=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:me(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(_e(s)){q(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,l])=>{q(l,me(t,n),r,o)})})},me=(e,t)=>{let r=e;return t.split(ee).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},_e=e=>e.isThemeGetter,De=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,a])=>[t+l,a])):n);return[r,s]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(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 s(n,l),l},set(n,l){r.has(n)?r.set(n,l):s(n,l)}}},ge="!",Oe=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,l=a=>{let m=[],g=0,i=0,b;for(let f=0;f<a.length;f++){let v=a[f];if(g===0){if(v===s&&(o||a.slice(f,f+n)===t)){m.push(a.slice(i,f)),i=f+n;continue}if(v==="/"){b=f;continue}}v==="["?g++:v==="]"&&g--}let y=m.length===0?a:a.substring(i),C=y.startsWith(ge),k=C?y.substring(1):y,h=b&&b>i?b-i:void 0;return{modifiers:m,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:h}};return r?a=>r({className:a,parseClassName:l}):l},Ue=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Je=e=>({cache:He(e.cacheSize),parseClassName:Oe(e),...Fe(e)}),Ke=/\s+/,Xe=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(Ke),a="";for(let m=l.length-1;m>=0;m-=1){let g=l[m],{modifiers:i,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:C}=r(g),k=!!C,h=o(k?y.substring(0,C):y);if(!h){if(!k){a=g+(a.length>0?" "+a:a);continue}if(h=o(y),!h){a=g+(a.length>0?" "+a:a);continue}k=!1}let f=Ue(i).join(":"),v=b?f+ge:f,x=v+h;if(n.includes(x))continue;n.push(x);let G=s(h,k);for(let S=0;S<G.length;++S){let F=G[S];n.push(v+F)}a=g+(a.length>0?" "+a:a)}return a};function Ze(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=be(t))&&(o&&(o+=" "),o+=r);return o}var be=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=be(e[o]))&&(r&&(r+=" "),r+=t);return r};function Qe(e,...t){let r,o,s,n=l;function l(m){let g=t.reduce((i,b)=>b(i),e());return r=Je(g),o=r.cache.get,s=r.cache.set,n=a,a(m)}function a(m){let g=o(m);if(g)return g;let i=Xe(m,r);return s(m,i),i}return function(){return n(Ze.apply(null,arguments))}}var p=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},he=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ye=/^\Re+\/\Re+$/,qe=new Set(["px","full","screen"]),et=/^(\Re+(\.\Re+)?)?(xs|sm|md|lg|xl)$/,tt=/\Re+(%|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$/,rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ot=/^(inset_)?-?((\Re+)?\.?(\Re+)[a-z]+|0)_-?((\Re+)?\.?(\Re+)[a-z]+|0)/,nt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>I(e)||qe.has(e)||Ye.test(e),N=e=>T(e,"length",ut),I=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>T(e,"number",I),B=e=>!!e&&Number.isInteger(Number(e)),st=e=>e.endsWith("%")&&I(e.slice(0,-1)),c=e=>he.test(e),z=e=>et.test(e),at=new Set(["length","size","percentage"]),it=e=>T(e,at,ve),lt=e=>T(e,"position",ve),ct=new Set(["image","url"]),dt=e=>T(e,ct,ft),pt=e=>T(e,"",mt),V=()=>!0,T=(e,t,r)=>{let o=he.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ut=e=>tt.test(e)&&!rt.test(e),ve=()=>!1,mt=e=>ot.test(e),ft=e=>nt.test(e);var gt=()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),o=p("brightness"),s=p("borderColor"),n=p("borderRadius"),l=p("borderSpacing"),a=p("borderWidth"),m=p("contrast"),g=p("grayscale"),i=p("hueRotate"),b=p("invert"),y=p("gap"),C=p("gradientColorStops"),k=p("gradientColorStopPositions"),h=p("inset"),f=p("margin"),v=p("opacity"),x=p("padding"),G=p("saturate"),S=p("scale"),F=p("sepia"),ne=p("skew"),se=p("space"),ae=p("translate"),K=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",c,t],u=()=>[c,t],ie=()=>["",A,N],W=()=>["auto",I,c],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",c],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[I,c];return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[A,N],blur:["none","",z,c],brightness:R(),borderColor:[e],borderRadius:["none","","full",z,c],borderSpacing:u(),borderWidth:ie(),contrast:R(),grayscale:E(),hueRotate:R(),invert:E(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[st,N],inset:Z(),margin:Z(),opacity:R(),padding:u(),saturate:R(),scale:R(),sepia:E(),skew:R(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),c]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",B,c]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",B,c]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",B,c]},c]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[B,c]},c]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",z,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[V]}],"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",c]}],"line-clamp":[{"line-clamp":["none",I,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,N]}],"underline-offset":[{"underline-offset":["auto",A,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),lt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",it]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[A,c]}],"outline-w":[{outline:[A,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[A,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,pt]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",z,c]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[i]}],invert:[{invert:[b]}],saturate:[{saturate:[G]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[i]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"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",c]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[B,c]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,N,Y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ye=Qe(gt);function w(...e){return ye((0,xe.clsx)(e))}var we=require("@radix-ui/react-slot"),ke=require("class-variance-authority"),Ce=L(require("react")),Re=require("react/jsx-runtime"),bt=(0,ke.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),D=Ce.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Re.jsx)(e?we.Slot:"button",{className:w(bt({className:t,size:r,variant:o})),ref:n,...s}));D.displayName="Button";var j=L(require("@radix-ui/react-checkbox")),Ae=require("lucide-react"),Pe=L(require("react")),O=Pe.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(j.Root,{className:w("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,Re.jsx)(j.Indicator,{className:w("flex items-center justify-center text-current"),children:(0,Re.jsx)(Ae.Check,{className:"h-4 w-4"})})}));O.displayName=j.Root.displayName;var U=L(require("react")),P=L(require("@radix-ui/react-avatar"));var te=U.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(P.Root,{ref:r,className:w("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));te.displayName=P.Root.displayName;var re=U.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(P.Image,{ref:r,className:w("aspect-square h-full w-full",e),...t}));re.displayName=P.Image.displayName;var oe=U.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(P.Fallback,{ref:r,className:w("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));oe.displayName=P.Fallback.displayName;var ht=(0,ke.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 ze({className:e,variant:t,...r}){return(0,Re.jsx)("div",{className:w(ht({variant:t}),e),...r})}var M=require("sonner"),Ie=require("next/navigation");function vt({leaveRequests:e,onApprove:t,onReject:r}){let[o,s]=(0,Me.useState)([]),n=(0,Ie.useRouter)(),l=()=>{o.length===e.length?s([]):s(e.map(i=>i.id))},a=i=>{s(b=>b.includes(i)?b.filter(y=>y!==i):[...b,i])},m=async()=>{let i=await t(o);i.success?(M.toast.success(i.message),n.refresh()):M.toast.error(`Error: ${i.message}`),s([])},g=async()=>{let i=await r(o);i.success?(M.toast.success(i.message),n.refresh()):M.toast.error(`Error: ${i.message}`),s([])};return(0,Re.jsxs)("div",{className:"space-y-4",children:[(0,Re.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Re.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Re.jsxs)("div",{className:"space-x-2",children:[(0,Re.jsx)(D,{onClick:m,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Re.jsx)(D,{onClick:g,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Re.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Re.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Re.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Re.jsxs)("div",{className:"flex items-center",children:[(0,Re.jsx)(O,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Re.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Re.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(i=>(0,Re.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Re.jsxs)("div",{className:"flex items-center",children:[(0,Re.jsx)(O,{id:`select-${i.id}`,checked:o.includes(i.id),onCheckedChange:()=>a(i.id),className:"border-accent"}),(0,Re.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Re.jsxs)(te,{className:"h-10 w-10",children:[(0,Re.jsx)(re,{src:i.userImage,alt:i.userName}),(0,Re.jsx)(oe,{children:i.userName.split(" ").map(b=>b[0]).join("")})]}),(0,Re.jsx)("div",{className:"ml-3",children:(0,Re.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:i.userName})})]})]}),(0,Re.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Re.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(i.startDate).toLocaleDateString(),i.startDate!==i.endDate&&` - ${new Date(i.endDate).toLocaleDateString()}`,i.leaveType!="Full Day"&&` (${i.leaveType})`,` - ${i.totalDays} day${i.totalDays!==1?"s":""}`]}),(0,Re.jsx)(ze,{variant:i.status==="approved"?"default":i.status==="rejected"?"destructive":"secondary",children:i.status})]})]})},i.id))]})}),(0,Re.jsx)(M.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}0&&(module.exports={ApproveLeave});
|
|
4
|
+
"use strict";"use client";var Te=Object.create;var _=Object.defineProperty;var Ge=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var Ve=(e,t)=>{for(var r in t)_(e,r,{get:t[r],enumerable:!0})},pe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ee(t))!Be.call(e,s)&&s!==r&&_(e,s,{get:()=>t[s],enumerable:!(o=Ge(t,s))||o.enumerable});return e};var L=(e,t,r)=>(r=e!=null?Te(Le(e)):{},pe(t||!e||!e.__esModule?_(r,"default",{value:e,enumerable:!0}):r,e)),je=e=>pe(_({},"__esModule",{value:!0}),e);var yt={};Ve(yt,{ApproveLeave:()=>vt});module.exports=je(yt);var Me=require("react");var xe=require("clsx");var ee="-",Fe=e=>{let t=$e(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let a=l.split(ee);return a[0]===""&&a.length!==1&&a.shift(),fe(a,t)||We(l)},getConflictingClassGroupIds:(l,a)=>{let m=r[l]||[];return a&&o[l]?[...m,...o[l]]:m}}},fe=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?fe(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(ee);return(l=t.validators.find(({validator:a})=>a(n)))==null?void 0:l.classGroupId},ue=/^\[(.+)\]$/,We=e=>{if(ue.test(e)){let t=ue.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},$e=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return De(Object.entries(e.classGroups),r).forEach(([n,l])=>{q(l,o,n,t)}),o},q=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:me(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(_e(s)){q(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,l])=>{q(l,me(t,n),r,o)})})},me=(e,t)=>{let r=e;return t.split(ee).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},_e=e=>e.isThemeGetter,De=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,a])=>[t+l,a])):n);return[r,s]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(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 s(n,l),l},set(n,l){r.has(n)?r.set(n,l):s(n,l)}}},ge="!",Oe=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,l=a=>{let m=[],g=0,i=0,b;for(let f=0;f<a.length;f++){let v=a[f];if(g===0){if(v===s&&(o||a.slice(f,f+n)===t)){m.push(a.slice(i,f)),i=f+n;continue}if(v==="/"){b=f;continue}}v==="["?g++:v==="]"&&g--}let y=m.length===0?a:a.substring(i),C=y.startsWith(ge),k=C?y.substring(1):y,h=b&&b>i?b-i:void 0;return{modifiers:m,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:h}};return r?a=>r({className:a,parseClassName:l}):l},Ue=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Je=e=>({cache:He(e.cacheSize),parseClassName:Oe(e),...Fe(e)}),Ke=/\s+/,Xe=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(Ke),a="";for(let m=l.length-1;m>=0;m-=1){let g=l[m],{modifiers:i,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:C}=r(g),k=!!C,h=o(k?y.substring(0,C):y);if(!h){if(!k){a=g+(a.length>0?" "+a:a);continue}if(h=o(y),!h){a=g+(a.length>0?" "+a:a);continue}k=!1}let f=Ue(i).join(":"),v=b?f+ge:f,x=v+h;if(n.includes(x))continue;n.push(x);let G=s(h,k);for(let S=0;S<G.length;++S){let F=G[S];n.push(v+F)}a=g+(a.length>0?" "+a:a)}return a};function Ze(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=be(t))&&(o&&(o+=" "),o+=r);return o}var be=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=be(e[o]))&&(r&&(r+=" "),r+=t);return r};function Qe(e,...t){let r,o,s,n=l;function l(m){let g=t.reduce((i,b)=>b(i),e());return r=Je(g),o=r.cache.get,s=r.cache.set,n=a,a(m)}function a(m){let g=o(m);if(g)return g;let i=Xe(m,r);return s(m,i),i}return function(){return n(Ze.apply(null,arguments))}}var p=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},he=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ye=/^\Re+\/\Re+$/,qe=new Set(["px","full","screen"]),et=/^(\Re+(\.\Re+)?)?(xs|sm|md|lg|xl)$/,tt=/\Re+(%|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$/,rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ot=/^(inset_)?-?((\Re+)?\.?(\Re+)[a-z]+|0)_-?((\Re+)?\.?(\Re+)[a-z]+|0)/,nt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>I(e)||qe.has(e)||Ye.test(e),N=e=>T(e,"length",ut),I=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>T(e,"number",I),B=e=>!!e&&Number.isInteger(Number(e)),st=e=>e.endsWith("%")&&I(e.slice(0,-1)),c=e=>he.test(e),z=e=>et.test(e),at=new Set(["length","size","percentage"]),it=e=>T(e,at,ve),lt=e=>T(e,"position",ve),ct=new Set(["image","url"]),dt=e=>T(e,ct,ft),pt=e=>T(e,"",mt),V=()=>!0,T=(e,t,r)=>{let o=he.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ut=e=>tt.test(e)&&!rt.test(e),ve=()=>!1,mt=e=>ot.test(e),ft=e=>nt.test(e);var gt=()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),o=p("brightness"),s=p("borderColor"),n=p("borderRadius"),l=p("borderSpacing"),a=p("borderWidth"),m=p("contrast"),g=p("grayscale"),i=p("hueRotate"),b=p("invert"),y=p("gap"),C=p("gradientColorStops"),k=p("gradientColorStopPositions"),h=p("inset"),f=p("margin"),v=p("opacity"),x=p("padding"),G=p("saturate"),S=p("scale"),F=p("sepia"),ne=p("skew"),se=p("space"),ae=p("translate"),K=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",c,t],u=()=>[c,t],ie=()=>["",A,N],W=()=>["auto",I,c],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",c],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[I,c];return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[A,N],blur:["none","",z,c],brightness:R(),borderColor:[e],borderRadius:["none","","full",z,c],borderSpacing:u(),borderWidth:ie(),contrast:R(),grayscale:E(),hueRotate:R(),invert:E(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[st,N],inset:Z(),margin:Z(),opacity:R(),padding:u(),saturate:R(),scale:R(),sepia:E(),skew:R(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),c]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",B,c]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",B,c]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",B,c]},c]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[B,c]},c]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",z,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[V]}],"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",c]}],"line-clamp":[{"line-clamp":["none",I,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,N]}],"underline-offset":[{"underline-offset":["auto",A,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),lt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",it]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[A,c]}],"outline-w":[{outline:[A,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[A,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,pt]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",z,c]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[i]}],invert:[{invert:[b]}],saturate:[{saturate:[G]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[i]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"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",c]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[B,c]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,N,Y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ye=Qe(gt);function w(...e){return ye((0,xe.clsx)(e))}var we=require("@radix-ui/react-slot"),ke=require("class-variance-authority"),Ce=L(require("react")),Re=require("react/jsx-runtime"),bt=(0,ke.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),D=Ce.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Re.jsx)(e?we.Slot:"button",{className:w(bt({className:t,size:r,variant:o})),ref:n,...s}));D.displayName="Button";var j=L(require("@radix-ui/react-checkbox")),Ae=require("lucide-react"),Pe=L(require("react")),O=Pe.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(j.Root,{className:w("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,Re.jsx)(j.Indicator,{className:w("flex items-center justify-center text-current"),children:(0,Re.jsx)(Ae.Check,{className:"h-4 w-4"})})}));O.displayName=j.Root.displayName;var U=L(require("react")),P=L(require("@radix-ui/react-avatar"));var te=U.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(P.Root,{ref:r,className:w("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));te.displayName=P.Root.displayName;var re=U.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(P.Image,{ref:r,className:w("aspect-square h-full w-full",e),...t}));re.displayName=P.Image.displayName;var oe=U.forwardRef(({className:e,...t},r)=>(0,Re.jsx)(P.Fallback,{ref:r,className:w("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));oe.displayName=P.Fallback.displayName;var ht=(0,ke.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 ze({className:e,variant:t,...r}){return(0,Re.jsx)("div",{className:w(ht({variant:t}),e),...r})}var M=require("sonner"),Ie=require("next/navigation");function vt({leaveRequests:e,onApprove:t,onReject:r}){let[o,s]=(0,Me.useState)([]),n=(0,Ie.useRouter)(),l=()=>{o.length===e.length?s([]):s(e.map(i=>i.id))},a=i=>{s(b=>b.includes(i)?b.filter(y=>y!==i):[...b,i])},m=async()=>{let i=await t(o);i.success?(M.toast.success(i.message),n.refresh()):M.toast.error(`Error: ${i.message}`),s([])},g=async()=>{let i=await r(o);i.success?(M.toast.success(i.message),n.refresh()):M.toast.error(`Error: ${i.message}`),s([])};return(0,Re.jsxs)("div",{className:"space-y-4",children:[(0,Re.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Re.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Re.jsxs)("div",{className:"space-x-2",children:[(0,Re.jsx)(D,{onClick:m,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Re.jsx)(D,{onClick:g,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Re.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Re.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Re.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Re.jsxs)("div",{className:"flex items-center",children:[(0,Re.jsx)(O,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Re.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Re.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(i=>(0,Re.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Re.jsxs)("div",{className:"flex items-center",children:[(0,Re.jsx)(O,{id:`select-${i.id}`,checked:o.includes(i.id),onCheckedChange:()=>a(i.id),className:"border-accent"}),(0,Re.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Re.jsxs)(te,{className:"h-10 w-10",children:[(0,Re.jsx)(re,{src:i.userImage,alt:i.userName}),(0,Re.jsx)(oe,{children:i.userName.split(" ").map(b=>b[0]).join("")})]}),(0,Re.jsx)("div",{className:"ml-3",children:(0,Re.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:i.userName})})]})]}),(0,Re.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Re.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(i.startDate).toLocaleDateString(),i.startDate!==i.endDate&&` - ${new Date(i.endDate).toLocaleDateString()}`,i.leaveType!="Full Day"&&` (${i.leaveType})`,` - ${i.totalDays} day${i.totalDays!==1?"s":""}`]}),(0,Re.jsx)(ze,{variant:i.status==="approved"?"default":i.status==="rejected"?"destructive":"secondary",children:i.status})]})]})},i.id))]})}),(0,Re.jsx)(M.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}0&&(module.exports={ApproveLeave});
|