PageSourceSearch

https://omnifinds.ai/assets/CalendarSchedule-C7-8DyPT.js

js omnifinds.ai collected 2026-10-05 13:36:00 UTC 21,500 bytes, 1 lines download raw bytes

1import{r as e,j as t,aI as a,n,bm as i,i as r,aG as l,J as s,_ as o,k as d,aa as c,X as g,bQ as m,dC as p}from"./vendor-HffV8TdV.js";import{E as u}from"./EmptyState-BqTepsJV.js";import{i as h,s as supabase}from"./engine-CTHLJ2mf.js";import{a as v}from"./index-CG3g8SPB.js";const b=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],x=["January","February","March","April","May","June","July","August","September","October","November","December"],y={campaign:{dot:"bg-violet-500",bar:"bg-violet-500/30 border-violet-500/50",text:"text-violet-300"},meeting:{dot:"bg-blue-500",bar:"bg-blue-500/30 border-blue-500/50",text:"text-blue-300"},deadline:{dot:"bg-red-500",bar:"bg-red-500/30 border-red-500/50",text:"text-red-300"},task:{dot:"bg-green-500",bar:"bg-green-500/30 border-green-500/50",text:"text-green-300"}};function f(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function w({events:i=[],onEventClick:r,onDateClick:l,className:s=""}){const o=e.useMemo(()=>new Date,[]),[d,c]=e.useState(o.getFullYear()),[g,m]=e.useState(o.getMonth()),[p,u]=e.useState(null),h=e.useCallback(()=>{m(e=>0===e?(c(e=>e-1),11):e-1)},[]),v=e.useCallback(()=>{m(e=>11===e?(c(e=>e+1),0):e+1)},[]),w=e.useCallback(()=>{c(o.getFullYear()),m(o.getMonth())},[o]),N=e.useMemo(()=>function(e,t){const a=new Date(e,t,1),n=new Date(e,t+1,0),i=a.getDay(),r=n.getDate(),l=[];if(i>0){const a=new Date(e,t,0).getDate();for(let n=i-1;n>=0;n--)l.push({date:new Date(e,t-1,a-n),isCurrentMonth:!1})}for(let d=1;d<=r;d++)l.push({date:new Date(e,t,d),isCurrentMonth:!0});const s=l.length<=35?35:42;let o=1;for(;l.length<s;)l.push({date:new Date(e,t+1,o++),isCurrentMonth:!1});return l}(d,g),[d,g]),k=e.useMemo(()=>{const e=new Map;return i.forEach(t=>{const a=t.date instanceof Date?t.date:new Date(t.date),n=`${a.getFullYear()}-${a.getMonth()}-${a.getDate()}`;e.has(n)||e.set(n,[]),e.get(n).push(t)}),e},[i]),C=e.useCallback(e=>{u(e),l?.(e)},[l]),A=e.useCallback((e,t)=>{e.stopPropagation(),r?.(t)},[r]);return t.jsxs("div",{className:`rounded-xl border border-gray-700/50 bg-gray-900/80 overflow-hidden ${s}`,children:[t.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-gray-800",children:[t.jsxs("h2",{className:"text-lg font-semibold text-white",children:[x[g]," ",d]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("button",{onClick:w,className:"px-3 py-1.5 text-xs font-medium text-gray-400 hover:text-white bg-gray-800 hover:bg-gray-700 rounded-lg transition-colors",children:"Today"}),t.jsx("button",{onClick:h,className:"p-1.5 rounded-lg hover:bg-gray-800 text-gray-400 hover:text-white transition-colors","aria-label":"Previous month",children:t.jsx(a,{className:"w-5 h-5"})}),t.jsx("button",{onClick:v,className:"p-1.5 rounded-lg hover:bg-gray-800 text-gray-400 hover:text-white transition-colors","aria-label":"Next month",children:t.jsx(n,{className:"w-5 h-5"})})]})]}),t.jsx("div",{className:"grid grid-cols-7 border-b border-gray-800",children:b.map(e=>t.jsx("div",{className:"py-2.5 text-center text-xs font-semibold text-gray-500 uppercase tracking-wider",children:e},e))}),t.jsx("div",{className:"grid grid-cols-7",children:N.map((e,a)=>{const n=`${e.date.getFullYear()}-${e.date.getMonth()}-${e.date.getDate()}`,i=k.get(n)||[],r=f(e.date,o),l=p&&f(e.date,p);return t.jsxs("div",{onClick:()=>C(e.date),className:`\n                relative min-h-[80px] p-1.5 border-b border-r border-gray-800/50 cursor-pointer\n                transition-colors\n                ${e.isCurrentMonth?"bg-gray-900/40":"bg-gray-950/60"}\n                ${l?"ring-2 ring-inset ring-violet-500/50 bg-violet-500/5":""}\n                hover:bg-gray-800/40\n              `,children:[t.jsx("div",{className:`\n                  flex items-center justify-center w-7 h-7 rounded-full text-sm font-medium mb-1\n                  ${r?"bg-violet-600 text-white":e.isCurrentMonth?"text-gray-300":"text-gray-600"}\n                `,children:e.date.getDate()}),t.jsxs("div",{className:"space-y-0.5",children:[i.slice(0,3).map(e=>{const a=y[e.type]||y.task;return t.jsxs("button",{onClick:t=>A(t,e),className:`w-full flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] border truncate transition-colors hover:brightness-125 ${a.bar} ${a.text}`,title:e.title,children:[t.jsx("span",{className:`w-1.5 h-1.5 rounded-full flex-shrink-0 ${a.dot}`}),t.jsx("span",{className:"truncate",children:e.title})]},e.id)}),i.length>3&&t.jsxs("div",{className:"text-[10px] text-gray-500 pl-1",children:["+",i.length-3," more"]})]})]},a)})}),t.jsx("div",{className:"flex items-center gap-4 px-5 py-3 border-t border-gray-800",children:Object.entries(y).map(([e,a])=>t.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-400",children:[t.jsx("span",{className:`w-2 h-2 rounded-full ${a.dot}`}),t.jsx("span",{className:"capitalize",children:e})]},e))})]})}const N=(e=300)=>new Promise(t=>setTimeout(t,e)),k={campaign:{label:"Campaign",color:"text-violet-400",bg:"bg-violet-500/10",dot:"bg-violet-500",ring:"ring-violet-500/30"},meeting:{label:"Meeting",color:"text-blue-400",bg:"bg-blue-500/10",dot:"bg-blue-500",ring:"ring-blue-500/30"},deadline:{label:"Deadline",color:"text-red-400",bg:"bg-red-500/10",dot:"bg-red-500",ring:"ring-red-500/30"},task:{label:"Task",color:"text-emerald-400",bg:"bg-emerald-500/10",dot:"bg-emerald-500",ring:"ring-emerald-500/30"}},C=[{id:"ev-001",title:"Q1 Kick-off Campaign",date:"2026-02-02",type:"campaign",description:"Launch email + social blast for Q1 initiative.",owner:"Team Lead"},{id:"ev-002",title:"Team Standup",date:"2026-02-04",type:"meeting",description:"Weekly all-hands sync \u2014 product, eng, growth.",owner:"All Hands"},{id:"ev-003",title:"Invoice Batch Due",date:"2026-02-07",type:"deadline",description:"Send all outstanding invoices before COB.",owner:"Finance"},{id:"ev-004",title:"Agent Performance Review",date:"2026-02-10",type:"task",description:"Audit agent output quality and retrain where needed.",owner:"Ops"},{id:"ev-005",title:"Valentine's Campaign",date:"2026-02-14",type:"campaign",description:"Seasonal promo push across email and socials.",owner:"Marketing"},{id:"ev-006",title:"Client Strategy Call",date:"2026-02-17",type:"meeting",description:"Quarterly strategy review with enterprise client.",owner:"Account"},{id:"ev-007",title:"Platform Update v2.5",date:"2026-02-20",type:"task",description:"Deploy v2.5 to production and monitor rollout.",owner:"Eng"},{id:"ev-008",title:"Sprint Demo",date:"2026-02-24",type:"meeting",description:"End-of-sprint demo to stakeholders.",owner:"Product"},{id:"ev-009",title:"Contracts Renewal Due",date:"2026-02-27",type:"deadline",description:"All SaaS contracts renewal window closes.",owner:"Legal"},{id:"ev-010",title:"Spring Launch Prep",date:"2026-02-28",type:"campaign",description:"Finalize creative assets for spring campaign.",owner:"Marketing"},{id:"ev-011",title:"Spring Campaign Launch",date:"2026-03-01",type:"campaign",description:"Go-live for Q1 spring marketing push.",owner:"Marketing"},{id:"ev-012",title:"Q1 Report Due",date:"2026-03-01",type:"deadline",description:"Consolidated Q1 performance report submission.",owner:"Analytics"},{id:"ev-013",title:"A/B Test Review",date:"2026-03-03",type:"task",description:"Analyze results from Feb A/B tests and brief team.",owner:"Growth"},{id:"ev-014",title:"Email Blast \u2014 March",date:"2026-03-05",type:"campaign",description:"Monthly newsletter and product highlights.",owner:"Marketing"},{id:"ev-015",title:"Investor Update Call",date:"2026-03-07",type:"meeting",description:"Monthly investors sync \u2014 metrics and roadmap.",owner:"CEO"},{id:"ev-016",title:"Budget Review",date:"2026-03-10",type:"deadline",description:"Q2 budget finalization \u2014 all depts submit projections.",owner:"Finance"},{id:"ev-017",title:"Content Batch Publish",date:"2026-03-12",type:"task",description:"Publish 12 content pieces across blog and social.",owner:"Content"},{id:"ev-018",title:"Summer Pre-Launch",date:"2026-03-15",type:"campaign",description:"Teaser campaign for summer product launch.",owner:"Marketing"},{id:"ev-019",title:"All Hands Meeting",date:"2026-03-18",type:"meeting",description:"Company-wide all-hands with roadmap update.",owner:"All Hands"}
1,{id:"ev-020",title:"Sprint End + Retro",date:"2026-03-20",type:"deadline",description:"Sprint closes; retrospective at 4pm.",owner:"Product"},{id:"ev-021",title:"Social Campaign Blitz",date:"2026-03-22",type:"campaign",description:"Multi-channel social push \u2014 LinkedIn + Twitter + IG.",owner:"Marketing"},{id:"ev-022",title:"API Integration Review",date:"2026-03-25",type:"task",description:"Audit third-party API connections and refresh keys.",owner:"Eng"},{id:"ev-023",title:"Q2 Kick-off",date:"2026-03-31",type:"meeting",description:"Q2 planning and goal-setting with leadership.",owner:"Leadership"},{id:"ev-024",title:"April Campaign",date:"2026-04-02",type:"campaign",description:"April awareness campaign across all channels.",owner:"Marketing"},{id:"ev-025",title:"Annual Compliance Audit",date:"2026-04-05",type:"deadline",description:"Annual compliance review submission deadline.",owner:"Legal"},{id:"ev-026",title:"Engineering Summit",date:"2026-04-08",type:"meeting",description:"Two-day engineering offsite \u2014 architecture + culture.",owner:"Eng"},{id:"ev-027",title:"Platform v3.0 Release",date:"2026-04-10",type:"task",description:"Major version release \u2014 v3.0 GA to all customers.",owner:"Eng"},{id:"ev-028",title:"Mid-Year Strategy Review",date:"2026-04-15",type:"meeting",description:"H1 results deep-dive with investors and advisors.",owner:"CEO"}];function A(e){const t=new Date,a=t.getMonth(),n=t.getFullYear(),i=e.filter(e=>{const t=new Date(e.date);return t.getMonth()===a&&t.getFullYear()===n}).length,r={campaign:0,meeting:0,deadline:0,task:0};return e.forEach(e=>{void 0!==r[e.type]&&r[e.type]++}),{total:e.length,thisMonth:i,campaigns:r.campaign,meetings:r.meeting,deadlines:r.deadline,tasks:r.task}}const S={async getEvents({typeFilter:e=""}={}){if(h)try{let t=supabase.from("calendar_events").select("*").order("date",{ascending:!0});e&&(t=t.eq("type",e));const{data:a,error:n}=await t;if(n)throw n;const{data:i,error:r}=await supabase.from("calendar_events").select("*");return{events:a,stats:A(r?a:i),success:!0}}catch(t){console.warn("[calendarAPI] Supabase unavailable, using mock:",t.message)}return await N(280),{events:e?C.filter(t=>t.type===e):[...C],stats:A(C),success:!0,demo:!0}},async getUpcoming(e=5){if(h)try{const t=(new Date).toISOString().slice(0,10),{data:a,error:n}=await supabase.from("calendar_events").select("*").gte("date",t).order("date",{ascending:!0}).limit(e);if(n)throw n;return{events:a,success:!0}}catch(a){console.warn("[calendarAPI] Supabase getUpcoming failed, using mock:",a.message)}await N(150);const t=(new Date).toISOString().slice(0,10);return{events:C.filter(e=>e.date>=t).sort((e,t)=>e.date.localeCompare(t.date)).slice(0,e),success:!0,demo:!0}},async createEvent(e){if(h)try{const{data:t,error:a}=await supabase.from("calendar_events").insert(e).select().single();if(a)throw a;return{ok:!0,event:t,success:!0}}catch(a){console.warn("[calendarAPI] Supabase createEvent failed, using mock:",a.message)}await N(200);const t={id:`ev-${Date.now()}`,...e};return C.push(t),{ok:!0,event:t,success:!0,demo:!0}},async deleteEvent(e){if(h)try{const{error:t}=await supabase.from("calendar_events").delete().eq("id",e);if(t)throw t;return{ok:!0,id:e,success:!0}}catch(a){console.warn("[calendarAPI] Supabase deleteEvent failed, using mock:",a.message)}await N(150);const t=C.findIndex(t=>t.id===e);return-1!==t&&C.splice(t,1),{ok:!0,id:e,success:!0,demo:!0}}};function D(e){return e?new Date(e+"T00:00:00").toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):"\u2014"}function E(e){return e===(new Date).toISOString().slice(0,10)}function M({label:e,value:a,icon:n,color:i="violet"}){const r={violet:{ring:"ring-violet-500/20",bg:"bg-violet-500/10",text:"text-violet-400"},blue:{ring:"ring-blue-500/20",bg:"bg-blue-500/10",text:"text-blue-400"},red:{ring:"ring-red-500/20",bg:"bg-red-500/10",text:"text-red-400"},emerald:{ring:"ring-emerald-500/20",bg:"bg-emerald-500/10",text:"text-emerald-400"}},l=r[i]||r.violet;return t.jsxs("div",{className:`rounded-xl bg-gray-900/60 ring-1 ${l.ring} p-4 flex items-center gap-4`,children:[t.jsx("div",{className:"absolute top-0 right-0 w-72 h-72 bg-teal-500/5 rounded-full blur-3xl pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-cyan-500/5 rounded-full blur-3xl pointer-events-none"}),t.jsx("div",{className:`w-10 h-10 rounded-lg ${l.bg} flex items-center justify-center flex-shrink-0`,children:t.jsx(n,{className:`w-5 h-5 ${l.text}`})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs text-gray-500",children:e}),t.jsx("p",{className:"text-xl font-bold text-white",children:null==a?"\u2014":String(a)})]})]})}const $=[{value:"",label:"All",icon:i},{value:"campaign",label:"Campaigns",icon:l},{value:"meeting",label:"Meetings",icon:s},{value:"deadline",label:"Deadlines",icon:d},{value:"task",label:"Tasks",icon:c}];function T({event:e,onClose:a}){if(!e)return null;const n=k[e.type]||k.task;return t.jsxs("div",{className:`rounded-xl bg-gray-900/80 ring-1 ${n.ring} p-5 relative`,children:[t.jsx("button",{onClick:a,className:"absolute top-3 right-3 p-1 rounded-lg text-gray-500 hover:text-white hover:bg-gray-700/50 transition-colors","aria-label":"Close",children:t.jsx(g,{className:"w-4 h-4"})}),t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsxs("span",{className:`inline-flex items-center gap-1 text-xs font-medium px-2 py-0.5 rounded-full ${n.bg} ${n.color}`,children:[t.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${n.dot}`}),n.label]}),E(e.date)&&t.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full bg-amber-500/10 text-amber-400",children:"Today"}),!E(e.date)&&(i=e.date,i>=(new Date).toISOString().slice(0,10))&&t.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full bg-gray-700/50 text-gray-400",children:"Upcoming"})]}),t.jsx("h3",{className:"text-white font-semibold text-base mb-4",children:e.title}),t.jsxs("div",{className:"space-y-2.5 text-sm",children:[t.jsxs("div",{className:"flex items-start gap-2.5 text-gray-400",children:[t.jsx(o,{className:"w-4 h-4 mt-0.5 flex-shrink-0 text-gray-500"}),t.jsx("span",{children:D(e.date)})]}),e.owner&&t.jsxs("div",{className:"flex items-start gap-2.5 text-gray-400",children:[t.jsx(m,{className:"w-4 h-4 mt-0.5 flex-shrink-0 text-gray-500"}),t.jsx("span",{children:e.owner})]}),e.description&&t.jsxs("div",{className:"flex items-start gap-2.5 text-gray-400",children:[t.jsx(p,{className:"w-4 h-4 mt-0.5 flex-shrink-0 text-gray-500"}),t.jsx("span",{className:"leading-relaxed",children:e.description})]})]})]});var i}function P({events:e,isLoading:a,onSelect:n}){return t.jsxs("div",{className:"rounded-xl bg-gray-900/60 ring-1 ring-gray-800 p-5",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-violet-600 to-indigo-600 flex items-center justify-center mb-3",children:t.jsx(i,{size:20,className:"text-white"})}),t.jsx("h2",{className:"text-sm font-semibold text-gray-300 mb-3",children:"Upcoming Events"}),a?t.jsx("div",{className:"space-y-2",children:Array.from({length:4}).map((e,a)=>t.jsxs("div",{className:"scroll-reveal-item flex items-center gap-3 animate-pulse",style:{animationDelay:60*a+"ms"},children:[t.jsx("div",{className:"w-2 h-2 rounded-full bg-gray-700/50 flex-shrink-0"}),t.jsxs("div",{className:"flex-1 space-y-1",children:[t.jsx("div",{className:"h-3 w-3/4 rounded bg-gray-700/50"}
1),t.jsx("div",{className:"h-2 w-1/2 rounded bg-gray-700/40"})]})]},a))}):0===e.length?t.jsx(u,{variant:"pending",title:"No events scheduled",description:"Events for this date range will appear here.",size:"sm"}):t.jsx("ul",{className:"space-y-1",children:e.map(e=>{const a=k[e.type]||k.task;return t.jsx("li",{children:t.jsxs("button",{onClick:()=>n(e),className:"w-full flex items-center gap-3 px-2 py-2 rounded-lg hover:bg-gray-800/50 transition-colors text-left",children:[t.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${a.dot}`}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-xs font-medium text-gray-200 truncate",children:e.title}),t.jsx("p",{className:"text-[10px] text-gray-500",children:D(e.date)})]}),E(e.date)&&t.jsx("span",{className:"text-[10px] font-medium text-amber-400 flex-shrink-0",children:"Today"})]})},e.id)})})]})}function j(){const{events:a,stats:n,upcoming:d,isLoading:c,upcomingLoading:g,typeFilter:m,applyTypeFilter:p,selectedEvent:u,selectEvent:h,clearSelected:b,refresh:x}=function(){const t=v(e=>e.addToast),a=e.useRef(!0),[n,i]=e.useState([]),[r,l]=e.useState(null),[s,o]=e.useState([]),[d,c]=e.useState(!0),[g,m]=e.useState(!0),[p,u]=e.useState(""),[h,b]=e.useState(null);e.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[]);const x=e.useCallback(async(e=p)=>{if(a.current){c(!0);try{const{events:t,stats:n}=await S.getEvents({typeFilter:e});if(!a.current)return;i(Array.isArray(t)?t:[]),l(n)}catch(n){if(!a.current)return;t({type:"error",title:"Failed to load calendar",message:n.message})}finally{a.current&&c(!1)}}},[p,t]),y=e.useCallback(async()=>{if(a.current){m(!0);try{const e=await S.getUpcoming(6);if(!a.current)return;o(Array.isArray(e)?e:[])}catch{}finally{a.current&&m(!1)}}},[]);e.useEffect(()=>{x(""),y()},[]);const f=e.useCallback(e=>{u(e),x(e),b(null)},[x]),w=e.useCallback(e=>b(e),[]),N=e.useCallback(()=>b(null),[]),k=e.useCallback(()=>{x(p),y(),b(null)},[x,y,p]);return{events:n,stats:r,upcoming:s,isLoading:d,upcomingLoading:g,typeFilter:p,applyTypeFilter:f,selectedEvent:h,selectEvent:w,clearSelected:N,refresh:k}}();return t.jsxs("div",{className:"flex flex-col gap-6 p-6 max-w-[1600px] mx-auto w-full",children:[t.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-500/10 ring-1 ring-blue-500/20 flex items-center justify-center",children:t.jsx(i,{className:"w-5 h-5 text-blue-400"})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-violet-400 to-indigo-400",children:"Calendar"}),t.jsx("p",{className:"text-sm text-gray-400",children:"Campaigns, meetings, deadlines, and tasks"})]})]}),t.jsxs("button",{onClick:x,disabled:c,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs text-gray-400 hover:text-white bg-gray-800/50 hover:bg-gray-800 border border-gray-700 hover:border-cyan-500/20 transition-colors duration-300/50 transition-all disabled:opacity-50",children:[t.jsx(r,{className:"w-3.5 h-3.5 "+(c?"animate-spin":"")}),"Refresh"]})]}),t.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[t.jsx(M,{label:"Total Events",value:n?.total,icon:i,color:"blue"}),t.jsx(M,{label:"Campaigns",value:n?.campaigns,icon:l,color:"violet"}),t.jsx(M,{label:"Meetings",value:n?.meetings,icon:s,color:"blue"}),t.jsx(M,{label:"This Month",value:n?.thisMonth,icon:o,color:"emerald"})]}),t.jsx("div",{className:"flex flex-wrap gap-2",children:$.map(({value:e,label:a,icon:i})=>{const r=m===e,l=e?k[e]:null;return t.jsxs("button",{onClick:()=>p(e),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-all "+(r?"bg-blue-600 border-blue-500 text-white":"bg-gray-800/50 border-gray-700/50 text-gray-400 hover:text-white hover:bg-gray-800"),children:[t.jsx(i,{className:"w-3.5 h-3.5"}),a,e&&l&&!r&&n&&t.jsx("span",{className:`text-[10px] font-bold ${l.color}`,children:n["campaign"===e?"campaigns":"meeting"===e?"meetings":"deadline"===e?"deadlines":"tasks"]})]},e)})}),t.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-4 gap-6",children:[t.jsx("div",{className:"xl:col-span-3",children:c?t.jsxs("div",{className:"rounded-xl bg-gray-900/60 ring-1 ring-gray-800 p-5 animate-pulse",children:[t.jsxs("div",{className:"flex items-center justify-between mb-6",children:[t.jsx("div",{className:"w-32 h-5 rounded bg-gray-700/50"}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("div",{className:"w-6 h-6 rounded bg-gray-700/50"}),t.jsx("div",{className:"w-6 h-6 rounded bg-gray-700/50"})]})]}),t.jsx("div",{className:"grid grid-cols-7 gap-1",children:Array.from({length:35}).map((e,a)=>t.jsx("div",{className:"scroll-reveal-item h-16 rounded-lg bg-gray-800/40",style:{animationDelay:60*a+"ms"}},a))})]}):t.jsx(w,{events:a,onEventClick:h,onDateClick:()=>{}})}),t.jsxs("div",{className:"xl:col-span-1 flex flex-col gap-4",children:[u?t.jsx(T,{event:u,onClose:b}):t.jsxs("div",{className:"rounded-xl bg-gray-900/60 ring-1 ring-gray-800 p-5 flex flex-col items-center justify-center text-center min-h-[140px]",children:[t.jsx(i,{className:"w-8 h-8 text-gray-600 mb-2"}),t.jsx("p",{className:"text-xs text-gray-500",children:"Click any event on the calendar to view details"})]}),t.jsx(P,{events:d,isLoading:g,onSelect:h})]})]}),!c&&t.jsxs("p",{className:"text-center text-xs text-gray-600 pb-2",children:["OmniFINDS Platform \xb7 Showing"," ",t.jsx("span",{className:"text-gray-400 font-medium",children:a.length})," events",m&&t.jsxs(t.Fragment,{children:[" \xb7 filtered by"," ",t.jsx("span",{className:`font-medium ${k[m]?.color}`,children:k[m]?.label})]})]})]})}export{j as default};

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.