1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7992],{37992:(e,t,a)=>{a.r(t),a.d(t,{AppleMonthGrid:()=>b,default:()=>j});var r=a(95155),s=a(12115),n=a(91337),l=a(60282),d=a(26612),o=a(57850),i=a(33275),c=a(36806),m=a(64089);let u=m.bL,x=m.l9,p=s.forwardRef((e,t)=>{let{className:a,align:s="center",sideOffset:l=4,...d}=e;return(0,r.jsx)(m.UC,{ref:t,align:s,sideOffset:l,className:(0,n.cn)("z-[65] w-64 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",a),...d})});p.displayName=m.UC.displayName;let f=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],g=["S","M","T","W","T","F","S"],h=["January","February","March","April","May","June","July","August","September","October","November","December"],b=e=>{let{year:t,month:a,events:m,onDateClick:b,size:j="compact"}=e,[y,N]=(0,s.useState)(null),{days:v}=(0,s.useMemo)(()=>{let e=new Date(t,a,1),r=new Date(t,a+1,0),s=e.getDay(),n=r.getDate(),l=[];for(let e=0;e<s;e++)l.push(null);for(let e=1;e<=n;e++)l.push(e);return{days:l}},[t,a]),w=e=>{let r=new Date(t,a,e);return m.filter(e=>{let t=(0,d.H)(e.date),a=e.endDate?(0,d.H)(e.endDate):t;return(0,o.v)(r,{start:t,end:a})||(0,i.r)(r,t)})},D=new Date,M=e=>D.getFullYear()===t&&D.getMonth()===a&&D.getDate()===e,S="large"===j,$=S?f:g;return(0,r.jsxs)("div",{className:(0,n.cn)("bg-card border border-border rounded-2xl overflow-hidden transition-all duration-300",S?"p-6":"p-4"),children:[(0,r.jsx)("div",{className:(0,n.cn)("flex items-center justify-between mb-4",S&&"mb-6"),children:(0,r.jsxs)("h3",{className:(0,n.cn)("font-semibold text-foreground",S?"text-xl":"text-sm"),children:[h[a],(0,r.jsx)("span",{className:"text-muted-foreground font-normal ml-2",children:t})]})}),(0,r.jsx)("div",{className:"grid grid-cols-7 gap-1 mb-2",children:$.map((e,t)=>(0,r.jsx)("div",{className:(0,n.cn)("text-center font-medium text-muted-foreground",S?"text-sm py-2":"text-[10px] py-1"),children:e},`${e}-${t}`))}),(0,r.jsx)("div",{className:"grid grid-cols-7 gap-1",children:v.map((e,s)=>{let o;if(null===e)return(0,r.jsx)("div",{className:(0,n.cn)(S?"aspect-square min-h-[80px]":"aspect-square")},`empty-${s}`);let i=(o=`${t}-${String(a+1).padStart(2,"0")}-${String(e).padStart(2,"0")}`,{events:w(e).map(e=>{let t=e.date===o,a=(e.endDate||e.date)===o;return{event:e,isStart:t,isEnd:a,isMiddle:!t&&!a}})}),m=w(e),f=m.length>0,g=new Date(t,a,e);return(0,r.jsxs)(u,{openDelay:200,closeDelay:100,children:[(0,r.jsx)(x,{asChild:!0,children:(0,r.jsxs)("button",{onClick:()=>b?.(g,m),onMouseEnter:()=>N(g),onMouseLeave:()=>N(null),className:(0,n.cn)("relative flex flex-col items-center justify-start rounded-xl transition-all duration-200",S?"aspect-square min-h-[80px] p-2":"aspect-square p-1","hover:bg-secondary/80",f&&"cursor-pointer"),children:[(0,r.jsx)("span",{className:(0,n.cn)("relative z-10 flex items-center justify-center rounded-full transition-all",S?"w-8 h-8 text-sm":"w-6 h-6 text-xs",M(e)&&"bg-primary text-primary-foreground font-semibold",!M(e)&&f&&"font-medium text-foreground",!M(e)&&!f&&"text-foreground/70"),children:e}),f&&(0,r.jsxs)("div",{className:(0,n.cn)("flex gap-0.5 mt-1",S&&"flex-col w-full gap-1 mt-2"),children:[i.events.slice(0,S?3:2).map(e=>{let{event:t,isStart:a,isEnd:s}=e;return(0,r.jsx)("div",{className:(0,n.cn)("transition-all",S?"w-full":"w-2 h-2 rounded-full"),style:S?{backgroundColor:"transparent",borderLeft:`3px solid ${(0,l.ep)(t.category)}`,borderLeftStyle:(0,l.eK)(t.category),padding:"2px 6px",borderRadius:"4px",marginLeft:a?"0":"-4px",marginRight:s?"0":"-4px"}:{...(0,l.$V)(t.category)},children:S&&(0,r.jsx)("span",{className:"text-[10px] line-clamp-1 text-foreground/80",children:t.title})},t.id)}),m.length>(S?3:2)&&(0,r.jsxs)("span",{className:(0,n.cn)("text-muted-foreground",S?"text-[10px]":"text-[8px]"),children:["+",m.length-(S?3:2)]})]})]})}),f&&(0,r.jsxs)(p,{side:"right",align:"start",className:"w-80 p-0 overflow-hidden",children:[(0,r.jsxs)("div",{className:"bg-gradient-to-br from-primary/5 to-secondary/30 p-4",children:[(0,r.jsx)("p",{className:"font-semibold text-foreground",children:(0,c.GP)(g,"EEEE, MMMM d")}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:[m.length," event",m.length>
11?"s":""]})]}),(0,r.jsx)("div",{className:"p-3 space-y-2 max-h-64 overflow-y-auto",children:m.map(e=>(0,r.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-secondary/50",children:[(0,r.jsx)("div",{className:"w-1 h-full min-h-[40px] rounded-full flex-shrink-0",style:{borderLeft:`3px solid ${(0,l.ep)(e.category)}`,borderLeftStyle:(0,l.eK)(e.category)}}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-2",children:e.title}),e.description&&(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.endDate&&e.endDate!==e.date&&(0,r.jsxs)("p",{className:"text-[10px] text-muted-foreground mt-1.5 flex items-center gap-1",children:[(0,r.jsx)("span",{className:"w-3 h-px bg-muted-foreground/50"}),"Through ",(0,c.GP)((0,d.H)(e.endDate),"MMM d")]})]})]},e.id))})]})]},e)})})]})},j=b}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.