PageSourceSearch

https://revoco.ai/assets/Meetings-C1dyQQdk.js

js revoco.ai collected 2026-10-05 13:48:08 UTC 25,651 bytes, 1 lines download raw bytes

1import{g as L,s as D,i as n,c as a,m as p,T as V,t as u,u as Z,S as v,d as $,a as T,F as M,J as F,e as A,x as O,r as Y,b as z,f as q,N as G,C as J}from"./index-u9TTv5IF.js";import{C as K,s as Q}from"./sanitize-B9C0KX7M.js";import{B as j}from"./Button-Dv3xnsvi.js";import"./Toggle-DO5Xxnc3.js";import{C as H}from"./Card-OoApkU1v.js";function W(e){return(typeof e=="string"?new Date(e):e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function I(e){return(typeof e=="string"?new Date(e):e).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})}function X(e){const d=typeof e=="string"?new Date(e):e,h=new Date;return d.toDateString()===h.toDateString()}function ee(e){const d=typeof e=="string"?new Date(e):e,h=new Date;return h.setDate(h.getDate()+1),d.toDateString()===h.toDateString()}function te(e){const d=typeof e=="string"?new Date(e):e,h=new Date;return h.setDate(h.getDate()-1),d.toDateString()===h.toDateString()}const re="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.05371%202.13574C12.8856%202.13574%2
1016%205.25009%2016%209.08203C15.9998%2012.9138%2012.8855%2016.0352%209.05371%2016.0352C5.22188%2016.035%202.10742%2012.9207%202.10742%209.08887C2.10748%207.43977%202.70181%205.84616%203.75684%204.59961L2.83301%204.69531C2.52971%204.7249%202.25615%204.50252%202.22656%204.19922C2.19698%203.89595%202.41842%203.62241%202.72168%203.59277L4.93359%203.36328C5.08155%203.34849%205.22986%203.39267%205.34082%203.48145C5.45174%203.5776%205.52524%203.71105%205.54004%203.85156L5.77734%206.15234C5.81423%206.42598%205.64362%206.67018%205.38477%206.74414C5.35528%206.75151%205.31857%206.75924%205.28906%206.7666C4.98576%206.79619%204.71123%206.57381%204.68164%206.27051L4.58301%205.33984C3.70665%206.38548%203.2168%207.71664%203.2168%209.09668C3.2169%2012.3145%205.83594%2014.9335%209.05371%2014.9336C12.2716%2014.9336%2014.8905%2012.3145%2014.8906%209.09668C14.8906%205.87874%2012.2717%203.24512%209.05371%203.24512C8.75059%203.24499%208.49915%202.99355%208.49902%202.69043C8.49902%202.38721%208.74312%202.13587%209.05371%202.13574ZM8.28516%2012.877C8.38848%2012.8991%208.49922%2012.9208%208.60254%2012.9355C8.90578%2012.9799%209.11361%2013.2612%209.06934%2013.5645C9.03235%2013.8382%208.79518%2014.0381%208.52148%2014.0381C8.49198%2014.0381%208.46989%2014.0376%208.44043%2014.0303C8.3073%2014.0081%208.16634%2013.9866%208.0332%2013.957C7.73733%2013.8905%207.55263%2013.5869%207.61914%2013.291C7.68572%2012.9951%207.98925%2012.8104%208.28516%2012.877ZM11.3623%2012.2695C11.6138%2012.0923%2011.9617%2012.1588%2012.1318%2012.4102C12.3019%2012.6616%2012.2425%2013.0095%2011.9912%2013.1797C11.8804%2013.261%2011.7618%2013.3349%2011.6436%2013.4014C11.5622%2013.4531%2011.4653%2013.4834%2011.3691%2013.4834C11.1771%2013.4833%2010.9922%2013.3872%2010.8887%2013.21C10.7333%2012.9436%2010.8226%2012.6026%2011.0889%2012.4473C11.1849%2012.3955%2011.2737%2012.336%2011.3623%2012.2695ZM5.17773%2011.1084C5.42921%2010.9383%205.77711%2011.0049%205.94727%2011.2637C6.00642%2011.3524%206.0731%2011.4411%206.13965%2011.5225C6.33198%2011.7592%206.2875%2012.1149%206.05078%2012.2998C5.94726%2012.3811%205.82143%2012.4179%205.70312%2012.418C5.54042%2012.418%205.37756%2012.344%205.2666%2012.2109C5.17784%2012.1%205.09643%2011.9889%205.02246%2011.8779C4.85232%2011.6264%204.91882%2011.2785%205.17773%2011.1084ZM10.8516%207.28418C11.0659%207.12896%2011.369%207.17318%2011.5244%207.37988C11.6798%207.59441%2011.6358%207.89836%2011.4287%208.05371L9.71289%209.33301V11.8115C9.7055%2012.0703%209.49072%2012.2849%209.22461%2012.2852C8.9583%2012.2852%208.74316%2012.07%208.74316%2011.8037V9.08887C8.74327%208.93365%208.81727%208.79281%208.93555%208.7041L10.8516%207.28418ZM13.5889%209.48145C13.8921%209.54809%2014.0767%209.8364%2014.0176%2010.1396C13.9954%2010.2431%2013.9739%2010.3467%2013.9443%2010.4502C13.937%2010.4797%2013.9288%2010.5164%2013.9141%2010.5459C13.8401%2010.7752%2013.6259%2010.9306%2013.3818%2010.9307C13.3301%2010.9307%2013.2779%2010.924%2013.2188%2010.9092C12.9229%2010.8204%2012.7599%2010.5092%2012.8486%2010.2207C12.856%2010.1985%2012.8637%2010.1687%2012.8711%2010.1465C12.8933%2010.0652%2012.9159%209.98402%2012.9307%209.91016C12.9973%209.6069%2013.2856%209.42227%2013.5889%209.48145ZM12.6416%206.33691C12.9005%206.17417%2013.2489%206.26355%2013.4043%206.52246C13.4782%206.64069%2013.5444%206.76656%2013.6035%206.88477C13.7365%207.15834%2013.626%207.4912%2013.3525%207.63184C13.2713%207.66875%2013.1896%207.69035%2013.1084%207.69043C12.9013%207.69043%2012.7085%207.57962%2012.6123%207.37988C12.5679%207.2838%2012.5088%207.18732%2012.457%207.09863C12.2946%206.83979%2012.3829%206.49223%2012.6416%206.33691ZM10.4814%204.3252C10.6146%204.36218%2010.7483%204.40679%2010.874%204.45117C11.1624%204.55484%2011.3101%204.87271%2011.1992%205.16113C11.1252%205.38294%2010.9103%205.52344%2010.6885%205.52344C10.6222%205.5234%2010.5634%205.51572%2010.4971%205.48633C10.3935%205.44934%2010.2891%205.41282%2010.1855%205.39062C9.88991%205.30919%209.71967%205.00567%209.80078%204.70996C9.88213%204.41415%2010.1856%204.24401%2010.4814%204.3252Z'%20fill='white'%20fill-opacity='0.72'/%3e%3c/svg%3e";var ne=u('<div class="text-xs sm:text-sm font-medium"><div class="flex flex-wrap items-center gap-1.5 sm:gap-2"><div class="flex items-center gap-1"><img alt=Clock class="h-3.5 w-3.5 sm:h-4 sm:w-4">'),se=u('<div class="flex items-center gap-1 text-xs text-white/80 sm:text-sm"><img alt=Clock class="h-3.5 w-3.5 sm:h-4 sm:w-4">Duration: ');function ie(e){const d=L(()=>new Date(e.startTime)),h=L(()=>new Date(e.endTime)),f=g=>X(g)?"Today":ee(g)?"Tomorrow":te(g)?"Yesterday":W(g),x=()=>{const g=h().getTime()-d().getTime(),r=Math.floor(g/(1e3*60)),t=Math.floor(r/60),l=r%60;return t>0?l>0?`${t}h ${l}m`:`${t}h`:`${l}m`},o=()=>d().toDateString()===h().toDateString();return(()=>{var g=ne(),r=g.firstChild,t=r.firstChild,l=t.firstChild;return D(l,"src",K),n(t,a(V,{variant:"yellow",size:"sm",class:"text-xs sm:text-sm",get children(){return[p(()=>f(d()))," ",p(()=>I(d())),p(()=>p(()=>!!o())()?`-${I(h())}`:` - ${f(h())} ${I(h())}`)]}}),null),n(r,(()=>{var b=p(()=>!!e.showDuration);return()=>b()&&(()=>{var s=se(),i=s.firstChild;return i.nextSibling,D(i,"src",re),n(s,x,null),s})()})(),null),g})()}var le=u('<img class="h-6 w-6 object-contain sm:h-7 sm:w-7">'),ae=u(`<span class="inline-flex shrink-0 items-center gap-1 rounded-full border border-gray-500/30 bg-gray-500/10 px-2 py-0.5 text-xs font-medium text-gray-400"title="This meeting is ignored and won't generate AI summaries"><svg class="h-3 w-3"fill=none stroke=currentColor viewBox="0 0 24 24">
1<path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"></path></svg>Ignored`),oe=u('<div class="mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between"><div class="flex flex-1 items-start gap-3 sm:gap-4"><div class="flex h-11 w-11 shrink-0 items-center justify-center rounded-lg border border-blue-500/20 bg-linear-to-br from-blue-500/20 to-blue-600/20 text-lg transition-transform group-hover:scale-105 sm:h-12 sm:w-12 sm:text-xl"></div><div class="min-w-0 flex-1"><div class="mb-1.5 flex items-center gap-2"><h3 class="text-base leading-tight font-semibold tracking-tight text-white transition-colors group-hover:text-blue-300 sm:text-lg"></h3></div></div></div><div class="pl-14 text-left sm:pl-0 sm:text-right"><div class="text-xs font-medium text-white/50">Organized by</div><div class="mt-0.5 text-xs font-medium text-white/70">'),de=u('<p class="mb-4 line-clamp-2 text-xs leading-relaxed text-gray-400 sm:text-sm [&amp;_a]:text-blue-400 [&amp;_a]:underline [&amp;_a:hover]:text-blue-300">'),ge=u('<div class="flex h-8 w-8 items-center justify-center rounded-full border-2 border-[#1A1A28] bg-slate-600 text-xs font-semibold text-white sm:h-9 sm:w-9">+'),ce=u('<div class="flex items-center gap-2.5"><div class="flex -space-x-2"></div><span class="text-xs font-medium text-gray-400">'),me=u('<div class="flex flex-col gap-3 border-t border-white/5 pt-4 sm:flex-row sm:items-center sm:justify-between"><div class="flex flex-col gap-2 font-medium sm:flex-row sm:items-center sm:gap-3">'),E=u("<span>"),ue=u('<svg class="h-2.5 w-2.5 opacity-70"fill=none stroke=currentColor viewBox="0 0 24 24"><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z">'),he=u('<div class="flex h-8 w-8 items-center justify-center rounded-full border-2 border-[#1A1A28] bg-linear-to-br from-blue-400 to-purple-500 text-xs font-semibold text-white transition-transform hover:z-10 hover:scale-110 sm:h-9 sm:w-9">');function N(e){const d=Z(),h=()=>F(e.meeting),f=()=>{const r=e.meeting.attendees.find(t=>t.isOrganizer);return r?.name||r?.email||"Unknown"},x=()=>{const r=e.meeting.attendees.length;return r===0?"No attendees":r===1?"1 attendee":`${r} attendees`},o=()=>{const r=e.meeting.meetingCategory;return r?{Personal:{label:"Personal",border:"border-gray-500/30",bg:"bg-gray-500/10",text:"text-gray-400"},Placeholder:{label:"Placeholder",border:"border-gray-500/30",bg:"bg-gray-500/10",text:"text-gray-400"},RecurringInternal:{label:"Recurring Internal",border:"border-blue-500/30",bg:"bg-blue-500/10",text:"text-blue-400"},Internal:{label:"Internal",border:"border-blue-500/30",bg:"bg-blue-500/10",text:"text-blue-400"},External:{label:"External",border:"border-amber-500/30",bg:"bg-amber-500/10",text:"text-amber-400"}}[r]??null:null};return a(H,{variant:"interactive",rounded:"xl",get padding(){return e.compact?"sm":"md"},onClick:()=>{d(`/app/meetings/${e.meeting.id}`)},className:"group overflow-hidden",get children(){return[(()=>{var r=oe(),t=r.firstChild,l=t.firstChild,b=l.nextSibling,s=b.firstChild,i=s.firstChild,c=t.nextSibling,m=c.firstChild,_=m.nextSibling;return n(l,a(v,{get when(){return h().icon},get fallback(){return(()=>{var w=E();return n(w,()=>h().emoji),w})()},get children(){var w=le();return $(C=>{var y=h().icon,k=h().name;return y!==C.e&&D(w,"src",C.e=y),k!==C.t&&D(w,"alt",C.t=k),C},{e:void 0,t:void 0}),w}})),n(i,()=>e.meeting.title||"Untitled Meeting"),n(s,a(v,{get when(){return e.meeting.isIgnored},get children(){return ae()}}),null),n(s,a(v,{get when(){return e.meeting.meetingCategory},children:w=>{const C=o();return a(v,{when:C,children:y=>(()=>{var k=E();return n(k,()=>o().label,null),n(k,a(v,{get when(){return e.meeting.meetingCategorySource==="UserOverride"},get children(){return ue()}}),null),$(S=>{var B=`inline-flex shrink-0 items-center gap-1 rounded-full border ${o().border} ${o().bg} px-2 py-0.5 text-xs font-medium ${o().text}`,R=`Category: ${o().label}${e.meeting.meetingCategorySource==="UserOverride"?" (manually set)":""}`;return B!==S.e&&T(k,S.e=B),R!==S.t&&D(k,"title",S.t=R),S},{e:void 0,t:void 0}),k})()})}}),null),n(b,a(ie,{get startTime(){return e.meeting.startTime},get endTime(){return e.meeting.endTime},showRelative:!1,showDuration:!0,compact:!1}),null),n(_,f),r})(),a(v,{get when(){return e.meeting.description},get children(){var r=de();return $(()=>r.innerHTML=Q(e.meeting.description||"")),r}}),(()=>{var r=me(),t=r.firstChild;return n(r,a(v,{get when(){return e.meeting.attendees.length>0},get children(){var l=ce(),b=l.firstChild,s=b.nextSibling;return n(b,a(M,{get each(){return e.meeting.attendees.slice(0,3)},children:i=>(()=>{var c=he();return n(c,()=>(i.name||i.email).charAt(0).toUpperCase()),$(()=>D(c,"title",i.name||i.email)),c})()}),null),n(b,a(v,{get when(){return e.meeting.attendees.length>3},get children(){var i=ge();return i.firstChild,n(i,()=>e.meeting.attendees.length-3,null),i}}),null),n(s,x),l}}),t),n(t,a(v,{get when(){return e.meeting.meetingUrl},get children(){return a(j,{variant:"yellow-outline",get href(){return e.meeting.meetingUrl},target:"_blank",rel:"noopener noreferrer",onclick:l=>l.stopPropagation(),class:"w-full justify-center border px-3.5 py-2 text-xs sm:w-auto 
1sm:px-4 sm:text-sm",children:"Join Meeting"})}}),null),n(t,a(j,{get href(){return`/app/meetings/${e.meeting.id}`},variant:"yellow-outline",onclick:l=>l.stopPropagation(),class:"w-full justify-center border px-3.5 py-2 text-xs sm:w-auto sm:px-4 sm:text-sm",children:"View Details"}),null),r})()]}})}var xe=u("<div class=space-y-8>"),fe=u('<div class="mt-6 text-center"><p class="text-sm text-gray-400">Showing <!> of <!> meetings'),P=u("<div>"),be=u('<div class="flex flex-col items-center justify-center gap-3"><div class="h-10 w-10 animate-spin rounded-full border-2 border-blue-400 border-t-transparent sm:h-12 sm:w-12"></div><span class="text-sm text-gray-400 sm:text-base">Loading meetings...'),ve=u('<div class="mx-auto max-w-md rounded-lg border border-red-500/30 bg-red-500/10 p-4 sm:p-6"><div class="mb-3 flex justify-center"><div class="flex h-12 w-12 items-center justify-center rounded-full bg-red-500/20"><svg class="h-6 w-6 text-red-400"fill=none stroke=currentColor viewBox="0 0 24 24"><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></div></div><p class="mb-1 text-sm font-semibold text-red-300 sm:text-base">Error loading meetings</p><p class="text-xs text-red-400/80 sm:text-sm">'),we=u('<a class="inline-block rounded-lg bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700">'),Ce=u('<div class="mx-auto max-w-md"><div class="mb-4 flex justify-center"><div class="flex h-16 w-16 items-center justify-center rounded-full bg-slate-500/10"><svg class="h-8 w-8 text-slate-400"fill=none stroke=currentColor viewBox="0 0 24 24"><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg></div></div><p class="mb-3 text-base font-semibold text-white sm:text-lg">'),$e=u('<div class="py-12 text-center sm:py-16">'),ye=u('<div><div class="mb-4 flex items-center gap-3 border-b border-white/5 pb-2"><h3 class="text-sm font-semibold tracking-wider text-gray-300 uppercase"></h3><span class="rounded-full bg-blue-500/10 px-2 py-0.5 text-xs font-medium text-blue-400"></span></div><div>');function U(e){const d=L(()=>{let f=e.meetings;return e.showIgnored||(f=f.filter(x=>!x.isIgnored)),!e.showAll&&e.maxItems&&(f=f.slice(0,e.maxItems)),f}),h=L(()=>
1{if(!e.groupByDate)return null;const f=new Map;return d().forEach(x=>{const o=new Date(x.startTime),g=new Date,r=new Date(g);r.setDate(r.getDate()+1);let t;const l=o.toDateString(),b=g.toDateString(),s=r.toDateString();l===b?t="Today":l===s?t="Tomorrow":o.getFullYear()===g.getFullYear()?t=o.toLocaleDateString([],{weekday:"long",month:"long",day:"numeric"}):t=o.toLocaleDateString([],{weekday:"long",month:"long",day:"numeric",year:"numeric"}),f.has(t)||f.set(t,[]),f.get(t).push(x)}),Array.from(f.entries()).sort(([,x],[,o])=>{const g=new Date(x[0].startTime).getTime(),r=new Date(o[0].startTime).getTime(),t=new Date().getTime(),l=g<t,b=r<t;return l&&b?r-g:g-r})});return(()=>{var f=P();return n(f,a(v,{get when(){return p(()=>!e.loading&&!e.error)()&&d().length>0},get fallback(){return(()=>{var x=$e();return n(x,a(v,{get when(){return e.loading},get children(){return be()}}),null),n(x,a(v,{get when(){return e.error},get children(){var o=ve(),g=o.firstChild,r=g.nextSibling,t=r.nextSibling;return n(t,()=>e.error),o}}),null),n(x,a(v,{get when(){return p(()=>!e.loading&&!e.error)()&&d().length===0},get children(){var o=Ce(),g=o.firstChild,r=g.nextSibling;return n(r,()=>e.emptyMessage||"No meetings found"),n(o,a(v,{get when(){return p(()=>!!e.emptyActionText)()&&e.emptyActionHref},get children(){var t=we();return n(t,()=>e.emptyActionText),$(()=>D(t,"href",e.emptyActionHref)),t}}),null),o}}),null),x})()},get children(){return[a(v,{get when(){return e.groupByDate},get fallback(){return(()=>{var x=P();return n(x,a(M,{get each(){return d()},children:o=>a(N,{meeting:o,get compact(){return e.compact}})})),$(()=>T(x,`space-y-${e.compact?"3":"4"}`)),x})()},get children(){var x=xe();return n(x,a(M,{get each(){return h()},children:([o,g])=>(()=>{var r=ye(),t=r.firstChild,l=t.firstChild,b=l.nextSibling,s=t.nextSibling;return n(l,o),n(b,()=>g.length),n(s,a(M,{each:g,children:i=>a(N,{meeting:i,get compact(){return e.compact}})})),$(()=>T(s,`space-y-${e.compact?"2":"3"}`)),r})()})),x}}),a(v,{get when(){return p(()=>!e.showAll)()&&e.meetings.length>(e.maxItems||0)},get children(){var x=fe(),o=x.firstChild,g=o.firstChild,r=g.nextSibling,t=r.nextSibling,l=t.nextSibling;return l.nextSibling,n(o,()=>d().length,r),n(o,()=>e.meetings.length,l),x}})]}})),f})()}var pe=u('<div class="absolute rounded-full bg-linear-to-r from-[#FDF0DE] to-[#EACE85] transition-all duration-300 ease-in-out"style=top:4px;bottom:4px>'),_e=u("<div><nav>"),De=u("<span>"),ke=u("<button type=button role=tab><span>");function Te(e){const d=()=>e.variant||"default",h=()=>e.size||"md";let f;const[x,o]=A({left:0,width:0});O(()=>{if(d()==="gold"&&f){const t=f.querySelector(`[data-tab-id="${e.activeTab}"]`);if(t){const l=f.getBoundingClientRect(),b=t.getBoundingClientRect();
1o({left:b.left-l.left,width:b.width})}}});const g=t=>{const l=e.activeTab===t.id,b="relative inline-flex items-center gap-2 font-medium transition-all duration-300 focus:outline-none",s={sm:"px-3 py-2 text-sm",md:"px-4 py-2.5 text-sm",lg:"px-6 py-3 text-base"};if(d()==="pills"){const i=l?"bg-blue-600 text-white shadow-sm":"text-gray-600 hover:text-gray-900 hover:bg-gray-100",c=t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer";return`${b} ${s[h()]} ${i} ${c} rounded-lg`}else if(d()==="gold"){const i=l?"text-[#8B4513] z-10":"text-gray-400 hover:text-gray-200",c=t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer";return`${b} ${s[h()]} ${i} ${c}`}else{const i=l?"text-blue-600 border-blue-600":"text-gray-500 hover:text-gray-700 border-transparent hover:border-gray-300",c=t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer";return`${b} ${s[h()]} ${i} ${c} border-b-2`}},r=t=>{t.disabled||e.onTabChange(t.id)};return(()=>{var t=_e(),l=t.firstChild,b=f;return typeof b=="function"?Y(b,l):f=l,n(l,a(v,{get when(){return d()==="gold"},get children(){var s=pe();return $(i=>{var c=`${x().left}px`,m=`${x().width}px`;return c!==i.e&&z(s,"left",i.e=c),m!==i.t&&z(s,"width",i.t=m),i},{e:void 0,t:void 0}),s}}),null),n(l,a(M,{get each(){return e.tabs},children:s=>(()=>{var i=ke(),c=i.firstChild;return i.$$click=()=>r(s),n(c,()=>s.label),n(i,a(v,{get when(){return s.count!==void 0},get children(){var m=De();return n(m,()=>s.count),$(()=>T(m,`inline-flex h-6 min-w-6 items-center justify-center rounded-full px-2 text-xs font-medium transition-colors duration-300 ${e.activeTab===s.id&&d()==="pills"?"bg-blue-500 text-white":e.activeTab===s.id&&d()==="gold"?"bg-[#B8976A] text-[#5D3A1A]":e.activeTab===s.id?"bg-blue-100 text-blue-600":d()==="gold"?"bg-[#2A2A34] text-gray-400":"bg-gray-200 text-gray-600"}`)),m}}),null),$(m=>{var _=s.id,w=s.disabled,C=g(s),y=e.activeTab===s.id;return _!==m.e&&D(i,"data-tab-id",m.e=_),w!==m.t&&(i.disabled=m.t=w),C!==m.a&&T(i,m.a=C),y!==m.o&&D(i,"aria-selected",m.o=y),m},{e:void 0,t:void 0,a:void 0,o:void 0}),i})()}),null),$(s=>{var i=d()==="gold"?"w-fit":"w-full",c=`flex ${d()==="pills"?"space-x-1 rounded-lg bg-gray-100 p-1":d()==="gold"?"relative rounded-full border border-[#2A2A34] bg-[#1A1A28] p-1":"space-x-1 border-b border-gray-200"}`;return i!==s.e&&T(t,s.e=i),c!==s.t&&T(l,s.t=c),s},{e:void 0,t:void 0}),t})()}q(["click"]);const Se="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.6406%2012.567C16.3693%2012.4575%2015.8649%2012.639%2015.7619%2012.9019C14.8659%2015.1891%2012.7241%2016.
16669%2010.3055%2016.6669C7.06796%2016.6669%204.43412%2013.9849%204.43412%2010.6887C4.43412%207.39231%207.06796%204.71057%2010.3055%204.71057C11.405%204.71057%2012.4765%205.02158%2013.4047%205.61011C13.422%205.62096%2013.4406%205.6283%2013.4586%205.63691L11.9186%206.20184C11.6574%206.29754%2011.4838%206.74541%2011.578%207.01112C11.652%207.21973%2011.9595%207.4271%2012.1653%207.4271C12.2219%207.4271%2012.3559%207.41718%2012.4123%207.39646L15.2361%206.12848C15.3678%206.07997%2015.4759%205.98014%2015.5354%205.85095C15.5949%205.72175%2015.6019%205.57343%2015.5543%205.43912L14.5499%202.6014C14.4507%202.32132%2014.2049%201.94462%2013.7963%202.00681C13.5074%202.05084%2013.3026%202.455%2013.4019%202.73506L13.9586%204.308C12.8373%203.62281%2011.5547%203.2582%2010.239%203.2582C6.24729%203.2582%203%206.56454%203%2010.6288C3%2014.6934%206.24729%2018%2010.239%2018C13.221%2018%2015.8615%2016.1779%2016.9661%2013.3581C17.0744%2013.0815%2016.9119%2012.6773%2016.6406%2012.567Z'%20fill='white'%20fill-opacity='0.8'/%3e%3c/svg%3e";var Me=u('<div class="mb-4 rounded-lg border border-red-500/30 bg-red-500/10 p-3 sm:mb-6 sm:p-4"><p class="text-sm font-medium text-red-400 sm:text-base">Error loading meetings</p><p class="wrap-break-words mt-1 text-xs text-red-300 sm:text-sm">'),Ae=u('<div class="mb-4 rounded-lg border border-blue-500/20 bg-blue-500/5 p-4 sm:mb-6 sm:p-6"><div class="flex items-center gap-2 sm:gap-3"><div class=shrink-0><svg class="h-5 w-5 text-blue-400 sm:h-6 sm:w-6"fill=none stroke=currentColor viewBox="0 0 24 24"><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg></div><div class="min-w-0 flex-1"><h3 class="text-sm font-semibold text-blue-300 sm:text-base">No Calendar Connected</h3><p class="mt-1 text-xs text-blue-200/70 sm:text-sm">Connect your Google Calendar to see your meetings here.</p></div></div><a href=/app/integrations class="mt-3 inline-block rounded-lg bg-blue-600 px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-blue-700 sm:mt-4 sm:px-4 sm:text-sm">Connect Calendar'),Le=u('<div class="mb-4 rounded-lg border border-orange-500/20 bg-orange-500/5 p-4 sm:mb-6 sm:p-6"><div class="flex items-center gap-2 sm:gap-3"><div class=shrink-0><svg class="h-5 w-5 text-orange-400 sm:h-6 sm:w-6"fill=none stroke=currentColor viewBox="0 0 24 24"><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg></div><div class="min-w-0 flex-1"><h3 class="text-sm font-semibold text-orange-300 sm:text-base">Calendar Re-authentication Required</h3><p class="mt-1 text-xs text-orange-200/70 sm:text-sm">Your Google Calendar integration needs to be reconnected to access your meetings.</p></div></div><a href=/app/integrations class="mt-3 inline-block rounded-lg bg-orange-600 px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-orange-700 sm:mt-4 sm:px-4 sm:text-sm">Reconnect Calendar'),Ie=u('<img alt=Refresh class="h-5 w-5">'),je=u('<div class="mb-6 flex flex-col items-stretch justify-between gap-3 sm:mb-8 sm:flex-row sm:items-center sm:gap-4"><div class="flex items-center gap-2 sm:gap-3"><label class="flex cursor-pointer items-center gap-2 text-sm text-gray-300"><input type=checkbox class="h-4 w-4 cursor-pointer rounded border-gray-600 bg-gray-700 text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-0"><span class=whitespace-nowrap>Show ignored'),Be=u("<div class=text-white>");function Ue(){const e=G(),d=J(),[h,f]=A("upcoming"),[x,o]=A(!1),[g,r]=A(!1),t=()=>d.integrations().some(c=>c.services.some(m=>m.serviceType==="Calendar"&&m.isEnabled)),l=()=>d.integrations().some(c=>c.status!=="Active"&&c.services.some(m=>m.serviceType==="Calendar"&&m.isEnabled)),b=async()=>{try{o(!0),await e.refresh()}catch{}finally{o(!1)}},s=c=>{f(c)},i=()=>[{id:"upcoming",label:"Upcoming",count:e.upcomingMeetings().length},{id:"past",label:"Past",count:e.pastMeetings().length}];return(()=>{var c=Be();return n(c,a(v,{get when(){return e.error()},get children(){var m=Me(),_=m.firstChild,w=_.nextSibling;return n(w,()=>e.error()),m}}),null),n(c,a(v,{get when(){return p(()=>!t())()&&!e.isLoading()},get children(){return Ae()}}),null),n(c,a(v,{get when(){return p(()=>!!(t()&&l()))()&&!e.isLoading()},get children(){return Le()}}),null),n(c,a(H,{className:"shadow-xl",get children(){return[(()=>{var m=je(),_=m.firstChild,w=_.firstChild,C=w.firstChild;return n(m,a(Te,{get tabs(){return i()},get activeTab(){return h()},onTabChange:s,variant:"gold",size:"md"}),_),C.addEventListener("change",y=>r(y.currentTarget.checked)),n(_,a(j,{variant:"dark-outline",onClick:b,get disabled(){return x()||e.isLoading()},class:"text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50",get children(){return[(()=>{var y=Ie();return D(y,"src",Se),y})(),"Refresh"]}}),null),$(()=>C.checked=g()),m})(),a(v,{get when(){return h()==="upcoming"},get children(){return a(U,{get meetings(){return e.upcomingMeetings()},get loading(){return e.isLoading()},get error(){return e.error()},emptyMessage:"No upcoming meetings found.",emptyActionText:"Connect your calendar",emptyActionHref:"/app/integrations",groupByDate:!0,showAll:!0,get showIgnored(){return g()}})}}),a(v,{get when(){return h()==="past"},get children(){return a(U,{get meetings(){return e.pastMeetings()},get loading(){return e.isLoading()},get error(){return e.error()},emptyMessage:"No past meetings found.",emptyActionText:"Check your calendar connection",emptyActionHref:"/app/integrations",groupByDate:!0,showAll:!0,get showIgnored(){return g()}})}})]}}),null),c})()}export{Ue 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.