1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7992,8530],{28530:(e,t,s)=>{s.r(t),s.d(t,{SeasonView:()=>o,default:()=>i});var r=s(95155),a=s(12115),l=s(60282),n=s(18276),d=s(37992);let o=e=>{let{season:t,events:s,rangeStart:o,rangeEnd:i,onDateClick:c}=e,m=t.charAt(0).toUpperCase()+t.slice(1),x=(0,a.useMemo)(()=>{if(!o||!i)return[];let e=[],t=new Date(o.getFullYear(),o.getMonth(),1),s=new Date(i.getFullYear(),i.getMonth(),1);for(;t.getTime()<=s.getTime();)e.push({year:t.getFullYear(),month:t.getMonth(),key:`${t.getFullYear()}-${t.getMonth()}`}),t=(0,n.P)(t,1);return e},[o,i]),u=(0,a.useMemo)(()=>{let e={};return s.forEach(t=>{e[t.category]||(e[t.category]=[]),e[t.category].push(t)}),e},[s]);return(0,r.jsxs)("div",{className:"space-y-8",children:[0===x.length?(0,r.jsx)("div",{className:"bg-card border border-border rounded-2xl p-6",children:(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:["No ",m.toLowerCase()," session entries are currently defined in Odoo."]})}):(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:x.map(e=>{let{key:t,year:a,month:l}=e;return(0,r.jsx)(d.default,{year:a,month:l,events:s,onDateClick:c,size:"compact"},t)})}),(0,r.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-6",children:[(0,r.jsxs)("h3",{className:"font-semibold text-foreground mb-4",children:["Events this ",m.toLowerCase()]}),0===Object.entries(u).length?(0,r.jsx)("p",{className:"text-muted-foreground text-sm",children:"No events scheduled"}):(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(u).map(e=>{let[t,s]=e;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-3 h-3 rounded-full",style:(0,l.$V)(t)}),(0,r.jsx)("span",{className:"text-sm font-medium text-foreground capitalize",children:t.replace(/-/g," ")}),(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",s.length,")"]})]}),(0,r.jsxs)("ul",{className:"space-y-1 pl-5",children:[s.slice(0,3).map(e=>(0,r.jsxs)("li",{className:"text-xs text-muted-foreground",children:["⢠",e.title]},e.id)),s.length>3&&(0,r.jsxs)("li",{className:"text-xs text-primary",children:["+",s.length-3," more"]})]})]},t)})})]})]})},i=o},37992:(e,t,s)=>{s.r(t),s.d(t,{AppleMonthGrid:()=>j,default:()=>N});var r=s(95155),a=s(12115),l=s(91337),n=s(60282),d=s(26612),o=s(57850),i=s(33275),c=s(36806),m=s(64089);let x=m.bL,u=m.l9,p=a.forwardRef((e,t)=>{let{className:s,align:a="center",sideOffset:n=4,...d}=e;return(0,r.jsx)(m.UC,{ref:t,align:a,sideOffset:n,className:(0,l.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",s),...d})});p.displayName=m.UC.displayName;let g=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],h=["S","M","T","W","T","F","S"],f=["January","February","March","April","May","June","July","August","September","October","November","December"],j=e=>{let{year:t,month:s,events:m,onDateClick:j,size:N="compact"}=e,[b,y]=(0,a.useState)(null),{days:v}=(0,a.useMemo)(()=>{let e=new Date(t,s,1),r=new Date(t,s+1,0),a=e.getDay(),l=r.getDate(),n=[];for(let e=0;e<a;e++)n.push(null);for(let e=1;e<=l;e++)n.push(e);return{days:n}},[t,s]),w=e=>{let r=new Date(t,s,e);return m.filter(e=>{let t=(0,d.H)(e.date),s=e.endDate?(0,d.H)(e.endDate):t;return(0,o.v)(r,{start:t,end:s})||(0,i.r)(r,t)})},M=new Date,D=e=>M.getFullYear()===t&&M.getMonth()===s&&M.getDate()===e,S="large"===N,$=S?g:h;return(0,r.jsxs)("div",{className:(0,l.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,l.cn)("flex items-center justify-between mb-4",S&&"mb-6"),children:(0,r.jsxs)("h3",{className:(0,l.cn)("font-semibold text-foreground",S?"text-xl":"text-sm"),children:[f[s],(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,l.cn)("text-center font-medium text-muted-foreground",S?"text-sm py-2":"text-[10px] py-1"),
1children:e},`${e}-${t}`))}),(0,r.jsx)("div",{className:"grid grid-cols-7 gap-1",children:v.map((e,a)=>{let o;if(null===e)return(0,r.jsx)("div",{className:(0,l.cn)(S?"aspect-square min-h-[80px]":"aspect-square")},`empty-${a}`);let i=(o=`${t}-${String(s+1).padStart(2,"0")}-${String(e).padStart(2,"0")}`,{events:w(e).map(e=>{let t=e.date===o,s=(e.endDate||e.date)===o;return{event:e,isStart:t,isEnd:s,isMiddle:!t&&!s}})}),m=w(e),g=m.length>0,h=new Date(t,s,e);return(0,r.jsxs)(x,{openDelay:200,closeDelay:100,children:[(0,r.jsx)(u,{asChild:!0,children:(0,r.jsxs)("button",{onClick:()=>j?.(h,m),onMouseEnter:()=>y(h),onMouseLeave:()=>y(null),className:(0,l.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",g&&"cursor-pointer"),children:[(0,r.jsx)("span",{className:(0,l.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",D(e)&&"bg-primary text-primary-foreground font-semibold",!D(e)&&g&&"font-medium text-foreground",!D(e)&&!g&&"text-foreground/70"),children:e}),g&&(0,r.jsxs)("div",{className:(0,l.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:s,isEnd:a}=e;return(0,r.jsx)("div",{className:(0,l.cn)("transition-all",S?"w-full":"w-2 h-2 rounded-full"),style:S?{backgroundColor:"transparent",borderLeft:`3px solid ${(0,n.ep)(t.category)}`,borderLeftStyle:(0,n.eK)(t.category),padding:"2px 6px",borderRadius:"4px",marginLeft:s?"0":"-4px",marginRight:a?"0":"-4px"}:{...(0,n.$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,l.cn)("text-muted-foreground",S?"text-[10px]":"text-[8px]"),children:["+",m.length-(S?3:2)]})]})]})}),g&&(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)(h,"EEEE, MMMM d")}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:[m.length," event",m.length>1?"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,n.ep)(e.category)}`,borderLeftStyle:(0,n.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)})})]})},N=j}}]);
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.