cortex-react-components 1.39.2 → 1.39.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.
Files changed (66) hide show
  1. package/dist/{chunk-Y5CGMHFF.mjs → chunk-2JZGT4F6.mjs} +1 -1
  2. package/dist/chunk-4NQDN4LR.mjs +4 -0
  3. package/dist/{chunk-U4NCHUCT.mjs → chunk-6TGQ2756.mjs} +1 -1
  4. package/dist/{chunk-3PC5BLK7.mjs → chunk-7XSAYKJ7.mjs} +1 -1
  5. package/dist/{chunk-DJ5BLICX.mjs → chunk-7ZHB6VE4.mjs} +1 -1
  6. package/dist/{chunk-D3727TBZ.mjs → chunk-BD4GVPWR.mjs} +1 -1
  7. package/dist/{chunk-Y5LJ6MWY.mjs → chunk-DOZXVU56.mjs} +1 -1
  8. package/dist/chunk-DYIUZ4V5.mjs +4 -0
  9. package/dist/{chunk-4ZCQ4OUP.mjs → chunk-F4NSZHLC.mjs} +1 -1
  10. package/dist/{chunk-DESYC5BB.mjs → chunk-GHBJK554.mjs} +1 -1
  11. package/dist/{chunk-D5DOMEF7.mjs → chunk-O77SHHMY.mjs} +1 -1
  12. package/dist/{chunk-ILCZ25VJ.mjs → chunk-OZ7CSBQO.mjs} +1 -1
  13. package/dist/{chunk-GOMLTG5W.mjs → chunk-RZTXT4UD.mjs} +1 -1
  14. package/dist/components/Cards/index.mjs +1 -1
  15. package/dist/components/HeaderFooter/Header.mjs +1 -1
  16. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  17. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  18. package/dist/components/HeaderFooter/index.mjs +1 -1
  19. package/dist/components/Heros/RenderHero.mjs +1 -1
  20. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  21. package/dist/components/Heros/index.mjs +1 -1
  22. package/dist/components/Holidays/ApproveLeave.d.ts +8 -2
  23. package/dist/components/Holidays/ApproveLeave.js +1 -1
  24. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  25. package/dist/components/Holidays/ApproveLeave.stories.js +39 -39
  26. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  27. package/dist/components/Holidays/HolidayTracker.d.ts +9 -1
  28. package/dist/components/Holidays/HolidayTracker.js +1 -1
  29. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  30. package/dist/components/Holidays/HolidayTracker.stories.js +201 -201
  31. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  32. package/dist/components/Holidays/index.js +1 -1
  33. package/dist/components/Holidays/index.mjs +1 -1
  34. package/dist/components/Menus/index.mjs +1 -1
  35. package/dist/components/Payload/index.mjs +1 -1
  36. package/dist/components/index.js +6 -6
  37. package/dist/components/index.mjs +1 -1
  38. package/dist/index.js +6 -6
  39. package/dist/index.mjs +1 -1
  40. package/dist/metafile-cjs.json +1 -1
  41. package/dist/metafile-esm.json +1 -1
  42. package/dist/pages/Blog.mjs +1 -1
  43. package/dist/pages/Blog.stories.mjs +1 -1
  44. package/dist/pages/Documentation.mjs +1 -1
  45. package/dist/pages/Documentation.stories.mjs +1 -1
  46. package/dist/pages/IndexPage.mjs +1 -1
  47. package/dist/pages/IndexPage.stories.mjs +1 -1
  48. package/dist/pages/Intranet.mjs +1 -1
  49. package/dist/pages/Intranet.stories.mjs +1 -1
  50. package/dist/pages/LandingPage.mjs +1 -1
  51. package/dist/pages/LandingPage.stories.mjs +1 -1
  52. package/dist/pages/Page.mjs +1 -1
  53. package/dist/pages/Page.stories.mjs +1 -1
  54. package/dist/pages/Publish.mjs +1 -1
  55. package/dist/pages/Publish.stories.mjs +1 -1
  56. package/dist/pages/Website.mjs +1 -1
  57. package/dist/pages/Website.stories.mjs +1 -1
  58. package/dist/sections/BlogListSection.mjs +1 -1
  59. package/dist/sections/BlogListSection.stories.mjs +1 -1
  60. package/dist/sections/ContactSection.mjs +1 -1
  61. package/dist/sections/ContactSection.stories.mjs +1 -1
  62. package/dist/sections/form/index.mjs +1 -1
  63. package/dist/sections/index.mjs +1 -1
  64. package/package.json +1 -1
  65. package/dist/chunk-BXBLKTRB.mjs +0 -4
  66. package/dist/chunk-EPPW2K6R.mjs +0 -4
@@ -1 +1 @@
1
- import{a as e}from"../../chunk-OK5DPXKH.mjs";import{a}from"../../chunk-BXBLKTRB.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var t={title:"Holidays/ApproveLeave",component:a,parameters:{layout:"fullscreen"}},p=t,s=[{id:"1",userId:"1",userName:"John Doe",userEmail:"john.doe@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=John",startDate:"2025-01-05",endDate:"2025-01-10",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"2",userId:"2",userName:"Jane Smith",userEmail:"jane.smith@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jane",startDate:"2025-01-15",endDate:"2025-01-15",status:"requested",totalDays:.5,leaveType:"Morning"},{id:"3",userId:"3",userName:"Bob Johnson",userEmail:"bob.johnson@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Bob",startDate:"2025-01-25",endDate:"2025-01-30",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"4",userId:"4",userName:"Alice Brown",userEmail:"alice.brown@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Alice",startDate:"2025-01-20",endDate:"2025-01-20",status:"requested",totalDays:.5,leaveType:"Afternoon"}],m={args:{leaveRequests:s,onApprove:e("onApprove"),onReject:e("onReject")}};export{m as Default,p as default};
1
+ import{a as e}from"../../chunk-OK5DPXKH.mjs";import{a}from"../../chunk-DYIUZ4V5.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";var t={title:"Holidays/ApproveLeave",component:a,parameters:{layout:"fullscreen"}},p=t,s=[{id:"1",userId:"1",userName:"John Doe",userEmail:"john.doe@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=John",startDate:"2025-01-05",endDate:"2025-01-10",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"2",userId:"2",userName:"Jane Smith",userEmail:"jane.smith@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jane",startDate:"2025-01-15",endDate:"2025-01-15",status:"requested",totalDays:.5,leaveType:"Morning"},{id:"3",userId:"3",userName:"Bob Johnson",userEmail:"bob.johnson@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Bob",startDate:"2025-01-25",endDate:"2025-01-30",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"4",userId:"4",userName:"Alice Brown",userEmail:"alice.brown@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Alice",startDate:"2025-01-20",endDate:"2025-01-20",status:"requested",totalDays:.5,leaveType:"Afternoon"}],m={args:{leaveRequests:s,onApprove:e("onApprove"),onReject:e("onReject")}};export{m as Default,p as default};
@@ -39,6 +39,14 @@ interface HolidayTrackerProps {
39
39
  success: boolean;
40
40
  message: string;
41
41
  }>;
42
+ approveLeave: (ids: string[]) => Promise<{
43
+ success: boolean;
44
+ message: string;
45
+ }>;
46
+ rejectLeave: (ids: string[]) => Promise<{
47
+ success: boolean;
48
+ message: string;
49
+ }>;
42
50
  }
43
- export declare function HolidayTracker({ holidays, currentUser, currentDate, leaveApprovals, employees, submitLeaveRequest }: HolidayTrackerProps): import("react/jsx-runtime").JSX.Element;
51
+ export declare function HolidayTracker({ holidays, currentUser, currentDate, leaveApprovals, employees, submitLeaveRequest, approveLeave, rejectLeave }: HolidayTrackerProps): import("react/jsx-runtime").JSX.Element;
44
52
  export {};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";"use client";var gt=Object.create;var ee=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var bt=Object.getOwnPropertyNames;var vt=Object.getPrototypeOf,ht=Object.prototype.hasOwnProperty;var yt=(e,t)=>{for(var r in t)ee(e,r,{get:t[r],enumerable:!0})},Me=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of bt(t))!ht.call(e,a)&&a!==r&&ee(e,a,{get:()=>t[a],enumerable:!(o=ft(t,a))||o.enumerable});return e};var L=(e,t,r)=>(r=e!=null?gt(vt(e)):{},Me(t||!e||!e.__esModule?ee(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>Me(ee({},"__esModule",{value:!0}),e);var or={};yt(or,{HolidayTracker:()=>rr});module.exports=xt(or);var ct=require("react"),mt=require("lucide-react"),B=require("lucide-react");var Ve=require("clsx");var be="-",wt=e=>{let t=Pt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let l=i.split(be);return l[0]===""&&l.length!==1&&l.shift(),ze(l,t)||Nt(i)},getConflictingClassGroupIds:(i,l)=>{let u=r[i]||[];return l&&o[i]?[...u,...o[i]]:u}}},ze=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ze(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(be);return(i=t.validators.find(({validator:l})=>l(n)))==null?void 0:i.classGroupId},Le=/^\[(.+)\]$/,Nt=e=>{if(Le.test(e)){let t=Le.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Pt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return kt(Object.entries(e.classGroups),r).forEach(([n,i])=>{fe(i,o,n,t)}),o},fe=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Te(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ct(a)){fe(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{fe(i,Te(t,n),r,o)})})},Te=(e,t)=>{let r=e;return t.split(be).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ct=e=>e.isThemeGetter,kt=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,l])=>[t+i,l])):n);return[r,a]}):e,Rt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},Ie="!",At=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=l=>{let u=[],d=0,s=0,b;for(let x=0;x<l.length;x++){let R=l[x];if(d===0){if(R===a&&(o||l.slice(x,x+n)===t)){u.push(l.slice(s,x)),s=x+n;continue}if(R==="/"){b=x;continue}}R==="["?d++:R==="]"&&d--}let p=u.length===0?l:l.substring(s),y=p.startsWith(Ie),k=y?p.substring(1):p,P=b&&b>s?b-s:void 0;return{modifiers:u,hasImportantModifier:y,baseClassName:k,maybePostfixModifierPosition:P}};return r?l=>r({className:l,parseClassName:i}):i},St=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},Dt=e=>({cache:Rt(e.cacheSize),parseClassName:At(e),...wt(e)}),Mt=/\s+/,Lt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Mt),l="";for(let u=i.length-1;u>=0;u-=1){let d=i[u],{modifiers:s,hasImportantModifier:b,baseClassName:p,maybePostfixModifierPosition:y}=r(d),k=!!y,P=o(k?p.substring(0,y):p);if(!P){if(!k){l=d+(l.length>0?" "+l:l);continue}if(P=o(p),!P){l=d+(l.length>0?" "+l:l);continue}k=!1}let x=St(s).join(":"),R=b?x+Ie:x,S=R+P;if(n.includes(S))continue;n.push(S);let $=a(P,k);for(let E=0;E<$.length;++E){let X=$[E];n.push(R+X)}l=d+(l.length>0?" "+l:l)}return l};function Tt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Fe(t))&&(o&&(o+=" "),o+=r);return o}var Fe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Fe(e[o]))&&(r&&(r+=" "),r+=t);return r};function zt(e,...t){let r,o,a,n=i;function i(u){let d=t.reduce((s,b)=>b(s),e());return r=Dt(d),o=r.cache.get,a=r.cache.set,n=l,l(u)}function l(u){let d=o(u);if(d)return d;let s=Lt(u,r);return a(u,s),s}return function(){return n(Tt.apply(null,arguments))}}var w=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Be=/^\[(?:([a-z-]+):)?(.+)\]$/i,It=/^\d+\/\d+$/,Ft=new Set(["px","full","screen"]),Bt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|et|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|He|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>_(e)||Ft.has(e)||It.test(e),I=e=>j(e,"length",Jt),_=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>j(e,"number",_),W=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&_(e.slice(0,-1)),m=e=>Be.test(e),F=e=>Bt.test(e),$t=new Set(["length","size","percentage"]),Ht=e=>j(e,$t,Ee),Wt=e=>j(e,"position",Ee),Ot=new Set(["image","url"]),qt=e=>j(e,Ot,Ut),Yt=e=>j(e,"",Kt),O=()=>!0,j=(e,t,r)=>{let o=Be.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Jt=e=>Et.test(e)&&!Gt.test(e),Ee=()=>!1,Kt=e=>Vt.test(e),Ut=e=>_t.test(e);var Xt=()=>{let e=w("colors"),t=w("spacing"),r=w("blur"),o=w("brightness"),a=w("borderColor"),n=w("borderRadius"),i=w("borderSpacing"),l=w("borderWidth"),u=w("contrast"),d=w("grayscale"),s=w("hueRotate"),b=w("invert"),p=w("gap"),y=w("gradientColorStops"),k=w("gradientColorStopPositions"),P=w("inset"),x=w("margin"),R=w("opacity"),S=w("padding"),$=w("saturate"),E=w("scale"),X=w("sepia"),Pe=w("skew"),Ce=w("space"),ke=w("translate"),ce=()=>["auto","contain","none"],me=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",m,t],N=()=>[m,t],Re=()=>["",T,I],Z=()=>["auto",_,m],Ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",m],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[_,m];return{cacheSize:500,separator:":",theme:{colors:[O],spacing:[T,I],blur:["none","",F,m],brightness:M(),borderColor:[e],borderRadius:["none","","full",F,m],borderSpacing:N(),borderWidth:Re(),contrast:M(),grayscale:H(),hueRotate:M(),invert:H(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[jt,I],inset:pe(),margin:pe(),opacity:M(),padding:N(),saturate:M(),scale:M(),sepia:H(),skew:M(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[F]}],"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:[...Ae(),m]}],overflow:[{overflow:me()}],"overflow-x":[{"overflow-x":me()}],"overflow-y":[{"overflow-y":me()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,m]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",W,m]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",W,m]},m]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[W,m]},m]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],et:[{et:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],He:[{He:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-He":[{"min-He":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-He":[{"max-He":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[O]}],"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",m]}],"line-clamp":[{"line-clamp":["none",_,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,I]}],"underline-offset":[{"underline-offset":["auto",T,m]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ae(),Wt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ht]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:Q()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[T,m]}],"outline-w":[{outline:[T,I]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[T,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Yt]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",F,m]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[s]}],invert:[{invert:[b]}],saturate:[{saturate:[$]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[s]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[W,m]}],"translate-x":[{"translate-x":[ke]}],"translate-y":[{"translate-y":[ke]}],"skew-x":[{"skew-x":[Pe]}],"skew-y":[{"skew-y":[Pe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],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","mt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-et":[{"scroll-et":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,I,ge]}],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","et","pr","pb","pl"],px:["pr","pl"],py:["et","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","He"],"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-et","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-et","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ge=zt(Xt);function v(...e){return Ge((0,Ve.clsx)(e))}var _e=require("@radix-ui/react-slot"),je=require("class-variance-authority"),$e=L(require("react")),He=require("react/jsx-runtime"),te=(0,je.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:"He-10 px-4 py-2",icon:"He-10 w-10",lg:"He-11 rounded px-8",sm:"He-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"}}}),A=$e.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,He.jsx)(e?_e.Slot:"button",{className:v(te({className:t,size:r,variant:o})),ref:n,...a}));A.displayName="Button";var re=L(require("react")),z=L(require("@radix-ui/react-avatar"));var q=re.forwardRef(({className:e,...t},r)=>(0,He.jsx)(z.Root,{ref:r,className:v("relative flex He-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));q.displayName=z.Root.displayName;var Y=re.forwardRef(({className:e,...t},r)=>(0,He.jsx)(z.Image,{ref:r,className:v("aspect-square He-full w-full",e),...t}));Y.displayName=z.Image.displayName;var J=re.forwardRef(({className:e,...t},r)=>(0,He.jsx)(z.Fallback,{ref:r,className:v("flex He-full w-full items-center justify-center rounded-full bg-muted",e),...t}));J.displayName=z.Fallback.displayName;function We(...e){return e.filter(Boolean).join(" ")}function Oe({currentDate:e,setCurrentDate:t,holidays:r,employees:o}){let a=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return(0,He.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,He.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,He.jsxs)("div",{className:"sm:flex-auto",children:[(0,He.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,He.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,He.jsxs)("div",{className:"mt-4 sm:ml-16 sm:mt-0 sm:flex-none",children:[(0,He.jsx)(A,{onClick:()=>t(new Date(e.getFullYear(),e.getMonth()-1,1)),variant:"outline",size:"icon",className:"mr-2",children:(0,He.jsx)(mt.ChevronLeft,{className:"He-4 w-4"})}),(0,He.jsx)(A,{onClick:()=>t(new Date(e.getFullYear(),e.getMonth()+1,1)),variant:"outline",size:"icon",children:(0,He.jsx)(mt.ChevronRight,{className:"He-4 w-4"})})]})]}),(0,He.jsx)("div",{className:"mt-8 flow-root",children:(0,He.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,He.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,He.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,He.jsx)("thead",{children:(0,He.jsxs)("tr",{children:[(0,He.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(a)].map((n,i)=>(0,He.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:i+1},i))]})}),(0,He.jsx)("tbody",{children:o.map((n,i)=>(0,He.jsxs)("tr",{children:[(0,He.jsx)("td",{className:We(i!==o.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,He.jsxs)("div",{className:"flex items-center",children:[(0,He.jsxs)(q,{className:"He-11 w-11",children:[(0,He.jsx)(Y,{src:n.image,alt:n.name}),(0,He.jsx)(J,{children:n.name.split(" ").map(l=>l[0]).join("")})]}),(0,He.jsx)("div",{className:"ml-4",children:(0,He.jsx)("div",{className:"font-medium text-accent",children:n.name})})]})}),[...Array(a)].map((l,u)=>{let d=new Date(e.getFullYear(),e.getMonth(),u+1),s=r.find(b=>b.userId===n.id&&new Date(b.startDate)<=d&&new Date(b.endDate)>=d);return(0,He.jsx)("td",{className:We(i!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,He.jsx)("div",{className:`He-6 w-6 mx-auto rounded-full overflow-hidden ${s?s.status==="approved"?"bg-green-500":s.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:s?`${n.name}: ${s.status} (${s.startDate} - ${s.endDate}) - ${s.leaveType}`:"",children:s&&s.leaveType!=="Full Day"&&(0,He.jsx)("div",{className:`He-3 w-6 ${s.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${n.id}-${u}`)})]},n.id))})]})})})})]})}function Ye({currentDate:e,setCurrentDate:t,holidays:r}){let[o,a]=(0,ct.useState)(null),n=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(s,b)=>{let p=new Date(e.getFullYear(),e.getMonth(),b-i+1);return{date:p,isCurrentMonth:p.getMonth()===e.getMonth(),isToday:p.toDateString()===new Date().toDateString(),holidays:r.filter(y=>new Date(y.startDate)<=p&&new Date(y.endDate)>=p)}}),u=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))};return(0,He.jsxs)("div",{className:"lg:flex lg:He-full lg:flex-col",children:[(0,He.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,He.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,He.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,He.jsx)("div",{className:"flex items-center",children:(0,He.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,He.jsxs)(A,{onClick:u,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,He.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,He.jsx)(mt.ChevronLeft,{className:"He-5 w-5","aria-hidden":"true"})]}),(0,He.jsx)(A,{variant:"outline",className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,He.jsxs)(A,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,He.jsx)("span",{className:"sr-only",children:"Next month"}),(0,He.jsx)(mt.ChevronRight,{className:"He-5 w-5","aria-hidden":"true"})]})]})})]}),(0,He.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,He.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,He.jsxs)("div",{className:"bg-white py-2",children:["M",(0,He.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,He.jsxs)("div",{className:"bg-white py-2",children:["T",(0,He.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,He.jsxs)("div",{className:"bg-white py-2",children:["W",(0,He.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,He.jsxs)("div",{className:"bg-white py-2",children:["T",(0,He.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,He.jsxs)("div",{className:"bg-white py-2",children:["F",(0,He.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,He.jsxs)("div",{className:"bg-white py-2",children:["S",(0,He.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]}),(0,He.jsxs)("div",{className:"bg-white py-2",children:["S",(0,He.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,He.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,He.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(s=>(0,He.jsxs)("div",{className:v(s.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,He.jsx)("time",{dateTime:s.date.toISOString(),className:v("flex He-6 w-6 items-center justify-center rounded-full",s.isToday&&"bg-indigo-600 font-semibold text-white"),children:s.date.getDate()}),s.holidays.length>0&&(0,He.jsx)("ol",{className:"mt-2 space-y-1",children:s.holidays.map(b=>(0,He.jsx)("li",{children:(0,He.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${b.status==="approved"?"border-green-500":"border-gray-500"} border`,children:b.userName})},b.id))})]},s.date.toISOString()))}),(0,He.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(s=>(0,He.jsxs)("button",{type:"button",className:v(s.isCurrentMonth?"bg-white":"bg-gray-50",(s.date===o||s.isToday)&&"font-semibold",s.date===o&&"text-white",!s.date&&s.isToday&&"text-indigo-600",s.date!==o&&s.isCurrentMonth&&!s.isToday&&"text-gray-900",s.date!==o&&!s.isCurrentMonth&&!s.isToday&&"text-gray-500","flex He-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,He.jsx)("time",{dateTime:s.date.toISOString(),className:v("ml-auto",s.date===o&&s.isToday&&"flex He-6 w-6 items-center justify-center rounded-full bg-indigo-600",s.date===o&&!s.isToday&&"flex He-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:s.date.getDate()}),(0,He.jsxs)("span",{className:"sr-only",children:[s.holidays.length," holidays"]}),s.holidays.length>0&&(0,He.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:s.holidays.map(b=>(0,He.jsx)("span",{className:`mx-0.5 mb-1 He-1.5 w-1.5 rounded-full ${b.status==="approved"?"bg-green-500":"bg-gray-500"}`},b.id))})]},s.date.toISOString()))})]})]})]})}var Je=L(require("react")),ve=L(require("@radix-ui/react-label"));var Zt=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),K=Je.forwardRef(({className:e,...t},r)=>(0,He.jsx)(ve.Root,{ref:r,className:v(Zt(),e),...t}));K.displayName=ve.Root.displayName;var Xe=require("react-day-picker");function se({className:e,classNames:t,showOutsideDays:r=!0,...o}){return(0,He.jsx)(Xe.DayPicker,{showOutsideDays:r,className:v("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center et-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:v(te({variant:"outline"}),"He-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:v("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:v(te({variant:"ghost"}),"He-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}se.displayName="Calendar";var Qe=L(require("react")),D=L(require("@radix-ui/react-popover"));var ye=D.Root,xe=D.Trigger;var ie=Qe.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},a)=>(0,He.jsx)(D.Portal,{children:(0,He.jsx)(D.Content,{ref:a,align:t,sideOffset:r,className:v("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));ie.displayName=D.Content.displayName;var we=require("date-fns"),et=require("next/navigation"),V=require("sonner"),Qt=({options:e,value:t,onChange:r,disabled:o=[]})=>(0,He.jsx)("div",{className:"flex space-x-2",children:e.map((a,n)=>(0,He.jsx)(A,{type:"button",variant:t===a?"default":"outline",onClick:()=>r(a),disabled:o[n],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:a},a))});function tt({remainingDays:e,submitLeaveRequest:t}){let[r,o]=(0,ct.useState)(void 0),[a,n]=(0,ct.useState)(void 0),[i,l]=(0,ct.useState)("Full Day"),[u,d]=(0,ct.useState)(!1),s=(0,et.useRouter)();(0,ct.useEffect)(()=>{d(r!==a||!r||!a),u&&l("Full Day")},[r,a]);let b=y=>{l(y)};return(0,He.jsxs)("div",{className:"max-w-2xl",children:[(0,He.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,He.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,He.jsxs)("form",{onSubmit:async y=>{if(y.preventDefault(),!r||!a){V.toast.error("Please select both start and end dates");return}let k=Math.ceil((a.getTime()-r.getTime())/(1e3*60*60*24))+1;if((i==="Morning"||i==="Afternoon")&&(k=.5),k>e){V.toast.error("You do not have enough leave days remaining");return}let P=new FormData;P.append("startDate",r.toISOString()),P.append("endDate",a.toISOString()),P.append("leaveType",i),P.append("duration",k.toString());let x=await(t||er)(P);x.success?(V.toast.success(x.message),o(void 0),n(void 0),l("Full Day"),s.refresh()):V.toast.error(`Error: ${x.message}`)},className:"space-y-4",children:[(0,He.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,He.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,He.jsx)(K,{htmlFor:"startDate",children:"Start Date"}),(0,He.jsxs)(ye,{children:[(0,He.jsx)(xe,{asChild:!0,children:(0,He.jsxs)(A,{variant:"outline",className:v("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,He.jsx)(mt.CalendarIcon,{className:"mr-2 He-4 w-4"}),r?(0,we.format)(r,"PPP"):(0,He.jsx)("span",{children:"Pick a date"})]})}),(0,He.jsx)(ie,{className:"w-auto p-0",align:"start",children:(0,He.jsx)(se,{mode:"single",selected:r,onSelect:y=>{o(y),y&&(!a||y>a)&&n(y)},initialFocus:!0})})]})]}),(0,He.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,He.jsx)(K,{htmlFor:"endDate",children:"End Date"}),(0,He.jsxs)(ye,{children:[(0,He.jsx)(xe,{asChild:!0,children:(0,He.jsxs)(A,{variant:"outline",className:v("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,He.jsx)(mt.CalendarIcon,{className:"mr-2 He-4 w-4"}),a?(0,we.format)(a,"PPP"):(0,He.jsx)("span",{children:"Pick a date"})]})}),(0,He.jsx)(ie,{className:"w-auto p-0",align:"start",children:(0,He.jsx)(se,{mode:"single",selected:a,onSelect:n,disabled:y=>r?y<r:!1,initialFocus:!0})})]})]})]}),(0,He.jsxs)("div",{className:"space-y-2",children:[(0,He.jsx)(K,{children:"Leave Type"}),(0,He.jsx)(Qt,{options:["Full Day","Morning","Afternoon"],value:i,onChange:b,disabled:[!1,u,u]})]}),(0,He.jsx)(A,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,He.jsx)(V.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var er=async e=>{let t={};return e.forEach((r,o)=>{t[o]=r}),console.log("Leave request submitted:",t),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};var U=L(require("@radix-ui/react-checkbox")),ot=L(require("react")),de=ot.forwardRef(({className:e,...t},r)=>(0,He.jsx)(U.Root,{className:v("peer He-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,He.jsx)(U.Indicator,{className:v("flex items-center justify-center text-current"),children:(0,He.jsx)(mt.Check,{className:"He-4 w-4"})})}));de.displayName=U.Root.displayName;var tr=(0,je.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 nt({className:e,variant:t,...r}){return(0,He.jsx)("div",{className:v(tr({variant:t}),e),...r})}function lt({leaveRequests:e,onApprove:t,onReject:r}){let[o,a]=(0,ct.useState)([]),n=()=>{o.length===e.length?a([]):a(e.map(d=>d.id))},i=d=>{a(s=>s.includes(d)?s.filter(b=>b!==d):[...s,d])},l=()=>{t(o),a([])},u=()=>{r(o),a([])};return(0,He.jsxs)("div",{className:"space-y-4",children:[(0,He.jsxs)("div",{className:"flex justify-between items-center",children:[(0,He.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,He.jsxs)("div",{className:"space-x-2",children:[(0,He.jsx)(A,{onClick:l,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,He.jsx)(A,{onClick:u,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,He.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,He.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,He.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,He.jsxs)("div",{className:"flex items-center justify-between",children:[(0,He.jsxs)("div",{className:"flex items-center",children:[(0,He.jsx)(de,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,He.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,He.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,He.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,He.jsxs)("div",{className:"flex items-center justify-between",children:[(0,He.jsxs)("div",{className:"flex items-center",children:[(0,He.jsx)(de,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,He.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,He.jsxs)(q,{className:"He-10 w-10",children:[(0,He.jsx)(Y,{src:d.userImage,alt:d.userName}),(0,He.jsx)(J,{children:d.userName.split(" ").map(s=>s[0]).join("")})]}),(0,He.jsx)("div",{className:"ml-3",children:(0,He.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,He.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,He.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,He.jsx)(nt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})})]})}function dt(...e){return e.filter(Boolean).join(" ")}function rr({holidays:e,currentUser:t,currentDate:r,leaveApprovals:o,employees:a,submitLeaveRequest:n}){let[i,l]=(0,ct.useState)("Calendar View"),u=(0,et.useRouter)(),d=!1,s=async p=>{console.log("Setting current date:",p);let y=(0,we.format)(p,"dd-MM-yyyy"),k=new URL(window.location.href);return k.searchParams.set("date",y),u.push(k.toString()),{success:!0}};if(d)return(0,He.jsx)("div",{className:"flex justify-center items-center He-screen",children:(0,He.jsx)("div",{className:"animate-spin rounded-full He-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:B.Grid,current:i==="Grid View"},{name:"Calendar View",icon:B.CalendarDays,current:i==="Calendar View"},{name:"Request Leave",icon:B.PlusCircle,current:i==="Request Leave"},{name:"Approve Leave",icon:B.CheckSquare,current:i==="Approve Leave"}];return(0,He.jsxs)("div",{className:"container mx-auto p-4",children:[(0,He.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Holiday Tracker"}),(0,He.jsxs)("div",{className:"mb-8",children:[(0,He.jsxs)("div",{className:"sm:hidden",children:[(0,He.jsx)("select",{value:i,onChange:p=>l(p.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:b.map(p=>(0,He.jsx)("option",{children:p.name},p.name))}),(0,He.jsx)(mt.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 He-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,He.jsx)("div",{className:"hidden sm:block",children:(0,He.jsx)("div",{className:"border-b border-gray-200",children:(0,He.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(p=>(0,He.jsxs)("a",{onClick:()=>{(p.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&l(p.name)},className:dt(p.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",p.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":p.current?"page":void 0,children:[(0,He.jsx)(p.icon,{className:dt(p.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 He-5 w-5"),"aria-hidden":"true"}),(0,He.jsx)("span",{children:p.name})]},p.name))})})})]}),i==="Grid View"&&(0,He.jsx)(Oe,{currentDate:r,setCurrentDate:s,holidays:e,employees:a}),i==="Calendar View"&&(0,He.jsx)(Ye,{currentDate:r,setCurrentDate:s,holidays:e}),i==="Request Leave"&&(0,He.jsx)(tt,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:p=>n?n(p):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),i==="Approve Leave"&&(0,He.jsx)(lt,{leaveRequests:o,onApprove:()=>{},onReject:()=>{}})]})}0&&(module.exports={HolidayTracker});
5
+ "use strict";"use client";var bt=Object.create;var te=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var yt=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty;var wt=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ht(t))!xt.call(e,s)&&s!==r&&te(e,s,{get:()=>t[s],enumerable:!(a=vt(t,s))||a.enumerable});return e};var L=(e,t,r)=>(r=e!=null?bt(yt(e)):{},Le(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Nt=e=>Le(te({},"__esModule",{value:!0}),e);var sr={};wt(sr,{HolidayTracker:()=>ar});module.exports=Nt(sr);var pt=require("react"),ut=require("lucide-react"),E=require("lucide-react");var _e=require("clsx");var ve="-",Pt=e=>{let t=kt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{let i=l.split(ve);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,t)||Ct(l)},getConflictingClassGroupIds:(l,i)=>{let c=r[l]||[];return i&&a[l]?[...c,...a[l]]:c}}},Ie=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),s=a?Ie(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(ve);return(l=t.validators.find(({validator:i})=>i(n)))==null?void 0:l.classGroupId},Te=/^\[(.+)\]$/,Ct=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kt=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return At(Object.entries(e.classGroups),r).forEach(([n,l])=>{be(l,a,n,t)}),a},be=(e,t,r,a)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:ze(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Rt(s)){be(s(a),t,r,a);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,l])=>{be(l,ze(t,n),r,a)})})},ze=(e,t)=>{let r=e;return t.split(ve).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Rt=e=>e.isThemeGetter,At=(e,t)=>t?e.map(([r,a])=>{let s=a.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,i])=>[t+l,i])):n);return[r,s]}):e,St=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,s=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,a=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=a.get(n))!==void 0)return s(n,l),l},set(n,l){r.has(n)?r.set(n,l):s(n,l)}}},Fe="!",Dt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,s=t[0],n=t.length,l=i=>{let c=[],h=0,o=0,u;for(let y=0;y<i.length;y++){let R=i[y];if(h===0){if(R===s&&(a||i.slice(y,y+n)===t)){c.push(i.slice(o,y)),o=y+n;continue}if(R==="/"){u=y;continue}}R==="["?h++:R==="]"&&h--}let C=c.length===0?i:i.substring(o),x=C.startsWith(Fe),p=x?C.substring(1):C,w=u&&u>o?u-o:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:p,maybePostfixModifierPosition:w}};return r?i=>r({className:i,parseClassName:l}):l},Mt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Lt=e=>({cache:St(e.cacheSize),parseClassName:Dt(e),...Pt(e)}),Tt=/\s+/,zt=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=t,n=[],l=e.trim().split(Tt),i="";for(let c=l.length-1;c>=0;c-=1){let h=l[c],{modifiers:o,hasImportantModifier:u,baseClassName:C,maybePostfixModifierPosition:x}=r(h),p=!!x,w=a(p?C.substring(0,x):C);if(!w){if(!p){i=h+(i.length>0?" "+i:i);continue}if(w=a(C),!w){i=h+(i.length>0?" "+i:i);continue}p=!1}let y=Mt(o).join(":"),R=u?y+Fe:y,S=R+w;if(n.includes(S))continue;n.push(S);let H=s(w,p);for(let B=0;B<H.length;++B){let Z=H[B];n.push(R+Z)}i=h+(i.length>0?" "+i:i)}return i};function It(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ee(t))&&(a&&(a+=" "),a+=r);return a}var Ee=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Ee(e[a]))&&(r&&(r+=" "),r+=t);return r};function Ft(e,...t){let r,a,s,n=l;function l(c){let h=t.reduce((o,u)=>u(o),e());return r=Lt(h),a=r.cache.get,s=r.cache.set,n=i,i(c)}function i(c){let h=a(c);if(h)return h;let o=zt(c,r);return s(c,o),o}return function(){return n(It.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Be=/^\[(?:([a-z-]+):)?(.+)\]$/i,Et=/^\We+\/\We+$/,Bt=new Set(["px","full","screen"]),Gt=/^(\We+(\.\We+)?)?(xs|sm|md|lg|xl)$/,Vt=/\We+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|We|min|max))|\We(calc|min|max|clamp)\(.+\)|^0$/,_t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jt=/^(inset_)?-?((\We+)?\.?(\We+)[a-z]+|0)V-?((\We+)?\.?(\We+)[a-z]+|0)/,$t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>j(e)||Bt.has(e)||Et.test(e),I=e=>$(e,"length",Ut),j=e=>!!e&&!Number.isNaN(Number(e)),fe=e=>$(e,"number",j),O=e=>!!e&&Number.isInteger(Number(e)),Ht=e=>e.endsWith("%")&&j(e.slice(0,-1)),m=e=>Be.test(e),F=e=>Gt.test(e),Wt=new Set(["length","size","percentage"]),Ot=e=>$(e,Wt,Ge),qt=e=>$(e,"position",Ge),Yt=new Set(["image","url"]),Jt=e=>$(e,Yt,Zt),Kt=e=>$(e,"",Xt),q=()=>!0,$=(e,t,r)=>{let a=Be.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Ut=e=>Vt.test(e)&&!_t.test(e),Ge=()=>!1,Xt=e=>jt.test(e),Zt=e=>$t.test(e);var Qt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),a=N("brightness"),s=N("borderColor"),n=N("borderRadius"),l=N("borderSpacing"),i=N("borderWidth"),c=N("contrast"),h=N("grayscale"),o=N("hueRotate"),u=N("invert"),C=N("gap"),x=N("gradientColorStops"),p=N("gradientColorStopPositions"),w=N("inset"),y=N("margin"),R=N("opacity"),S=N("padding"),H=N("saturate"),B=N("scale"),Z=N("sepia"),Ce=N("skew"),ke=N("space"),Re=N("translate"),me=()=>["auto","contain","none"],pe=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",m,t],P=()=>[m,t],Ae=()=>["",T,I],Q=()=>["auto",j,m],Se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",m],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[j,m];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[T,I],blur:["none","",F,m],brightness:M(),borderColor:[e],borderRadius:["none","","full",F,m],borderSpacing:P(),borderWidth:Ae(),contrast:M(),grayscale:W(),hueRotate:M(),invert:W(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Ht,I],inset:ue(),margin:ue(),opacity:M(),padding:P(),saturate:M(),scale:M(),sepia:W(),skew:M(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Se(),m]}],overflow:[{overflow:pe()}],"overflow-x":[{"overflow-x":pe()}],"overflow-y":[{"overflow-y":pe()}],overscroll:[{overscroll:me()}],"overscroll-x":[{"overscroll-x":me()}],"overscroll-y":[{"overscroll-y":me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,m]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",O,m]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",O,m]},m]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[O,m]},m]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fe]}],"font-family":[{font:[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",m]}],"line-clamp":[{"line-clamp":["none",j,fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,I]}],"underline-offset":[{"underline-offset":["auto",T,m]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Se(),qt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ot]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","We","bl","l","tl"]},Jt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-We":[{"rounded-We":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-ut":[{"rounded-ut":[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:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-We":[{"border-We":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:ee()}],"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-We":[{"border-We":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[T,m]}],"outline-w":[{outline:[T,I]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[T,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Kt]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...De(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":De()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",F,m]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[o]}],invert:[{invert:[u]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[o]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"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",m]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[O,m]}],"translate-x":[{"translate-x":[Re]}],"translate-y":[{"translate-y":[Re]}],"skew-x":[{"skew-x":[Ce]}],"skew-y":[{"skew-y":[Ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],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","ut-resize","nw-resize","ut-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,I,fe]}],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-We","rounded-l","rounded-ss","rounded-ut","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ut","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-We":["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-We","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-We"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-We","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-We"],"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 Ve=Ft(Qt);function v(...e){return Ve((0,_e.clsx)(e))}var je=require("@radix-ui/react-slot"),$e=require("class-variance-authority"),He=L(require("react")),We=require("react/jsx-runtime"),re=(0,$e.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"}}}),A=He.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...s},n)=>(0,We.jsx)(e?je.Slot:"button",{className:v(re({className:t,size:r,variant:a})),ref:n,...s}));A.displayName="Button";var oe=L(require("react")),z=L(require("@radix-ui/react-avatar"));var Y=oe.forwardRef(({className:e,...t},r)=>(0,We.jsx)(z.Root,{ref:r,className:v("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Y.displayName=z.Root.displayName;var J=oe.forwardRef(({className:e,...t},r)=>(0,We.jsx)(z.Image,{ref:r,className:v("aspect-square h-full w-full",e),...t}));J.displayName=z.Image.displayName;var K=oe.forwardRef(({className:e,...t},r)=>(0,We.jsx)(z.Fallback,{ref:r,className:v("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));K.displayName=z.Fallback.displayName;function Oe(...e){return e.filter(Boolean).join(" ")}function qe({currentDate:e,setCurrentDate:t,holidays:r,employees:a}){let s=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return(0,We.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,We.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,We.jsxs)("div",{className:"sm:flex-auto",children:[(0,We.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,We.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,We.jsxs)("div",{className:"mt-4 sm:ml-16 sm:mt-0 sm:flex-none",children:[(0,We.jsx)(A,{onClick:()=>t(new Date(e.getFullYear(),e.getMonth()-1,1)),variant:"outline",size:"icon",className:"mr-2",children:(0,We.jsx)(ut.ChevronLeft,{className:"h-4 w-4"})}),(0,We.jsx)(A,{onClick:()=>t(new Date(e.getFullYear(),e.getMonth()+1,1)),variant:"outline",size:"icon",children:(0,We.jsx)(ut.ChevronRight,{className:"h-4 w-4"})})]})]}),(0,We.jsx)("div",{className:"mt-8 flow-root",children:(0,We.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,We.jsx)("div",{className:"inline-block min-w-full py-2 align-middle",children:(0,We.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,We.jsx)("thead",{children:(0,We.jsxs)("tr",{children:[(0,We.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-We border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(s)].map((n,l)=>(0,We.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-We border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:l+1},l))]})}),(0,We.jsx)("tbody",{children:a.map((n,l)=>(0,We.jsxs)("tr",{children:[(0,We.jsx)("td",{className:Oe(l!==a.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsxs)(Y,{className:"h-11 w-11",children:[(0,We.jsx)(J,{src:n.image,alt:n.name}),(0,We.jsx)(K,{children:n.name.split(" ").map(i=>i[0]).join("")})]}),(0,We.jsx)("div",{className:"ml-4",children:(0,We.jsx)("div",{className:"font-medium text-accent",children:n.name})})]})}),[...Array(s)].map((i,c)=>{let h=new Date(e.getFullYear(),e.getMonth(),c+1),o=r.find(u=>u.userId===n.id&&new Date(u.startDate)<=h&&new Date(u.endDate)>=h);return(0,We.jsx)("td",{className:Oe(l!==a.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,We.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${o?o.status==="approved"?"bg-green-500":o.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:o?`${n.name}: ${o.status} (${o.startDate} - ${o.endDate}) - ${o.leaveType}`:"",children:o&&o.leaveType!=="Full Day"&&(0,We.jsx)("div",{className:`h-3 w-6 ${o.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${n.id}-${c}`)})]},n.id))})]})})})})]})}function Je({currentDate:e,setCurrentDate:t,holidays:r}){let[a,s]=(0,pt.useState)(null),n=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),l=new Date(e.getFullYear(),e.getMonth(),1).getDay(),i=Array.from({length:42},(o,u)=>{let C=new Date(e.getFullYear(),e.getMonth(),u-l+1);return{date:C,isCurrentMonth:C.getMonth()===e.getMonth(),isToday:C.toDateString()===new Date().toDateString(),holidays:r.filter(x=>new Date(x.startDate)<=C&&new Date(x.endDate)>=C)}}),c=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},h=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))};return(0,We.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,We.jsxs)("header",{className:"flex items-center justify-between border-We border-gray-200 px-6 py-4 lg:flex-none",children:[(0,We.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,We.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,We.jsx)("div",{className:"flex items-center",children:(0,We.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,We.jsxs)(A,{onClick:c,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,We.jsx)(ut.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,We.jsx)(A,{variant:"outline",className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,We.jsxs)(A,{onClick:h,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,We.jsx)("span",{className:"sr-only",children:"Next month"}),(0,We.jsx)(ut.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,We.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,We.jsxs)("div",{className:"grid grid-cols-7 gap-px border-We border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,We.jsxs)("div",{className:"bg-white py-2",children:["M",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["T",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["W",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["T",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["F",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["S",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,We.jsxs)("div",{className:"bg-white py-2",children:["S",(0,We.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,We.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,We.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(o=>(0,We.jsxs)("div",{className:v(o.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,We.jsx)("time",{dateTime:o.date.toISOString(),className:v("flex h-6 w-6 items-center justify-center rounded-full",o.isToday&&"bg-indigo-600 font-semibold text-white"),children:o.date.getDate()}),o.holidays.length>0&&(0,We.jsx)("ol",{className:"mt-2 space-y-1",children:o.holidays.map(u=>(0,We.jsx)("li",{children:(0,We.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${u.status==="approved"?"border-green-500":"border-gray-500"} border`,children:u.userName})},u.id))})]},o.date.toISOString()))}),(0,We.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(o=>(0,We.jsxs)("button",{type:"button",className:v(o.isCurrentMonth?"bg-white":"bg-gray-50",(o.date===a||o.isToday)&&"font-semibold",o.date===a&&"text-white",!o.date&&o.isToday&&"text-indigo-600",o.date!==a&&o.isCurrentMonth&&!o.isToday&&"text-gray-900",o.date!==a&&!o.isCurrentMonth&&!o.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,We.jsx)("time",{dateTime:o.date.toISOString(),className:v("ml-auto",o.date===a&&o.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",o.date===a&&!o.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:o.date.getDate()}),(0,We.jsxs)("span",{className:"sr-only",children:[o.holidays.length," holidays"]}),o.holidays.length>0&&(0,We.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:o.holidays.map(u=>(0,We.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${u.status==="approved"?"bg-green-500":"bg-gray-500"}`},u.id))})]},o.date.toISOString()))})]})]})]})}var Ke=L(require("react")),he=L(require("@radix-ui/react-label"));var er=(0,$e.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),U=Ke.forwardRef(({className:e,...t},r)=>(0,We.jsx)(he.Root,{ref:r,className:v(er(),e),...t}));U.displayName=he.Root.displayName;var Ze=require("react-day-picker");function ie({className:e,classNames:t,showOutsideDays:r=!0,...a}){return(0,We.jsx)(Ze.DayPicker,{showOutsideDays:r,className:v("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:v(re({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:v("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:v(re({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...a})}ie.displayName="Calendar";var et=L(require("react")),D=L(require("@radix-ui/react-popover"));var xe=D.Root,we=D.Trigger;var le=et.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},s)=>(0,We.jsx)(D.Portal,{children:(0,We.jsx)(D.Content,{ref:s,align:t,sideOffset:r,className:v("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));le.displayName=D.Content.displayName;var Ne=require("date-fns"),tt=require("next/navigation"),V=require("sonner"),tr=({options:e,value:t,onChange:r,disabled:a=[]})=>(0,We.jsx)("div",{className:"flex space-x-2",children:e.map((s,n)=>(0,We.jsx)(A,{type:"button",variant:t===s?"default":"outline",onClick:()=>r(s),disabled:a[n],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:s},s))});function rt({remainingDays:e,submitLeaveRequest:t}){let[r,a]=(0,pt.useState)(void 0),[s,n]=(0,pt.useState)(void 0),[l,i]=(0,pt.useState)("Full Day"),[c,h]=(0,pt.useState)(!1),o=(0,tt.useRouter)();(0,pt.useEffect)(()=>{h(r!==s||!r||!s),c&&i("Full Day")},[r,s]);let u=x=>{i(x)};return(0,We.jsxs)("div",{className:"max-w-2xl",children:[(0,We.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,We.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,We.jsxs)("form",{onSubmit:async x=>{if(x.preventDefault(),!r||!s){V.toast.error("Please select both start and end dates");return}let p=Math.ceil((s.getTime()-r.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(p=.5),p>e){V.toast.error("You do not have enough leave days remaining");return}let w=new FormData;w.append("startDate",r.toISOString()),w.append("endDate",s.toISOString()),w.append("leaveType",l),w.append("duration",p.toString());let y=await(t||rr)(w);y.success?(V.toast.success(y.message),a(void 0),n(void 0),i("Full Day"),o.refresh()):V.toast.error(`Error: ${y.message}`)},className:"space-y-4",children:[(0,We.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,We.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,We.jsx)(U,{htmlFor:"startDate",children:"Start Date"}),(0,We.jsxs)(xe,{children:[(0,We.jsx)(we,{asChild:!0,children:(0,We.jsxs)(A,{variant:"outline",className:v("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,We.jsx)(ut.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Ne.format)(r,"PPP"):(0,We.jsx)("span",{children:"Pick a date"})]})}),(0,We.jsx)(le,{className:"w-auto p-0",align:"start",children:(0,We.jsx)(ie,{mode:"single",selected:r,onSelect:x=>{a(x),x&&(!s||x>s)&&n(x)},initialFocus:!0})})]})]}),(0,We.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,We.jsx)(U,{htmlFor:"endDate",children:"End Date"}),(0,We.jsxs)(xe,{children:[(0,We.jsx)(we,{asChild:!0,children:(0,We.jsxs)(A,{variant:"outline",className:v("w-full justify-start text-left font-normal",!s&&"text-muted-foreground"),children:[(0,We.jsx)(ut.CalendarIcon,{className:"mr-2 h-4 w-4"}),s?(0,Ne.format)(s,"PPP"):(0,We.jsx)("span",{children:"Pick a date"})]})}),(0,We.jsx)(le,{className:"w-auto p-0",align:"start",children:(0,We.jsx)(ie,{mode:"single",selected:s,onSelect:n,disabled:x=>r?x<r:!1,initialFocus:!0})})]})]})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(U,{children:"Leave Type"}),(0,We.jsx)(tr,{options:["Full Day","Morning","Afternoon"],value:l,onChange:u,disabled:[!1,c,c]})]}),(0,We.jsx)(A,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,We.jsx)(V.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var rr=async e=>{let t={};return e.forEach((r,a)=>{t[a]=r}),console.log("Leave request submitted:",t),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};var X=L(require("@radix-ui/react-checkbox")),at=L(require("react")),ce=at.forwardRef(({className:e,...t},r)=>(0,We.jsx)(X.Root,{className:v("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,We.jsx)(X.Indicator,{className:v("flex items-center justify-center text-current"),children:(0,We.jsx)(ut.Check,{className:"h-4 w-4"})})}));ce.displayName=X.Root.displayName;var or=(0,$e.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 nt({className:e,variant:t,...r}){return(0,We.jsx)("div",{className:v(or({variant:t}),e),...r})}function ct({leaveRequests:e,onApprove:t,onReject:r}){let[a,s]=(0,pt.useState)([]),n=(0,tt.useRouter)(),l=()=>{a.length===e.length?s([]):s(e.map(o=>o.id))},i=o=>{s(u=>u.includes(o)?u.filter(C=>C!==o):[...u,o])},c=async()=>{let o=await t(a);o.success?(V.toast.success(o.message),n.refresh()):V.toast.error(`Error: ${o.message}`),s([])},h=async()=>{let o=await r(a);o.success?(V.toast.success(o.message),n.refresh()):V.toast.error(`Error: ${o.message}`),s([])};return(0,We.jsxs)("div",{className:"space-y-4",children:[(0,We.jsxs)("div",{className:"flex justify-between items-center",children:[(0,We.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,We.jsxs)("div",{className:"space-x-2",children:[(0,We.jsx)(A,{onClick:c,disabled:a.length===0,variant:"default",children:"Approve Selected"}),(0,We.jsx)(A,{onClick:h,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,We.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,We.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,We.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(ce,{id:"select-all",checked:a.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,We.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,We.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",e.length," selected"]})]})}),e.map(o=>(0,We.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsxs)("div",{className:"flex items-center",children:[(0,We.jsx)(ce,{id:`select-${o.id}`,checked:a.includes(o.id),onCheckedChange:()=>i(o.id),className:"border-accent"}),(0,We.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,We.jsxs)(Y,{className:"h-10 w-10",children:[(0,We.jsx)(J,{src:o.userImage,alt:o.userName}),(0,We.jsx)(K,{children:o.userName.split(" ").map(u=>u[0]).join("")})]}),(0,We.jsx)("div",{className:"ml-3",children:(0,We.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:o.userName})})]})]}),(0,We.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,We.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(o.startDate).toLocaleDateString(),o.startDate!==o.endDate&&` - ${new Date(o.endDate).toLocaleDateString()}`,o.leaveType!="Full Day"&&` (${o.leaveType})`,` - ${o.totalDays} day${o.totalDays!==1?"s":""}`]}),(0,We.jsx)(nt,{variant:o.status==="approved"?"default":o.status==="rejected"?"destructive":"secondary",children:o.status})]})]})},o.id))]})}),(0,We.jsx)(V.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}function mt(...e){return e.filter(Boolean).join(" ")}function ar({holidays:e,currentUser:t,currentDate:r,leaveApprovals:a,employees:s,submitLeaveRequest:n,approveLeave:l,rejectLeave:i}){let[c,h]=(0,pt.useState)("Calendar View"),o=(0,tt.useRouter)(),u=!1,C=async p=>{console.log("Setting current date:",p);let w=(0,Ne.format)(p,"dd-MM-yyyy"),y=new URL(window.location.href);return y.searchParams.set("date",w),o.push(y.toString()),{success:!0}};if(u)return(0,We.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,We.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-We-2 border-gray-900"})});let x=[{name:"Grid View",icon:E.Grid,current:c==="Grid View"},{name:"Calendar View",icon:E.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:E.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:E.CheckSquare,current:c==="Approve Leave"}];return(0,We.jsxs)("div",{className:"container mx-auto p-4",children:[(0,We.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Holiday Tracker"}),(0,We.jsxs)("div",{className:"mb-8",children:[(0,We.jsxs)("div",{className:"sm:hidden",children:[(0,We.jsx)("select",{value:c,onChange:p=>h(p.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:x.map(p=>(0,We.jsx)("option",{children:p.name},p.name))}),(0,We.jsx)(ut.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,We.jsx)("div",{className:"hidden sm:block",children:(0,We.jsx)("div",{className:"border-We border-gray-200",children:(0,We.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:x.map(p=>(0,We.jsxs)("a",{onClick:()=>{(p.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&h(p.name)},className:mt(p.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",p.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-We-2 py-4 px-1 text-sm font-medium"),"aria-current":p.current?"page":void 0,children:[(0,We.jsx)(p.icon,{className:mt(p.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,We.jsx)("span",{children:p.name})]},p.name))})})})]}),c==="Grid View"&&(0,We.jsx)(qe,{currentDate:r,setCurrentDate:C,holidays:e,employees:s}),c==="Calendar View"&&(0,We.jsx)(Je,{currentDate:r,setCurrentDate:C,holidays:e}),c==="Request Leave"&&(0,We.jsx)(rt,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:p=>n?n(p):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,We.jsx)(ct,{leaveRequests:a,onApprove:p=>l?l(p):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:p=>i?i(p):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}0&&(module.exports={HolidayTracker});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-EPPW2K6R.mjs";import"../../chunk-YF7BU7S3.mjs";import"../../chunk-BXBLKTRB.mjs";import"../../chunk-ZGOBG76E.mjs";import"../../chunk-RMI4G7HJ.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as HolidayTracker};
2
+ "use strict";import{a}from"../../chunk-4NQDN4LR.mjs";import"../../chunk-ZGOBG76E.mjs";import"../../chunk-RMI4G7HJ.mjs";import"../../chunk-YF7BU7S3.mjs";import"../../chunk-DYIUZ4V5.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as HolidayTracker};