1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76082],{92369:function(e,t,s){s.d(t,{Z:function(){return a}});let a=(0,s(79205).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},76082:function(e,t,s){s.r(t),s.d(t,{default:function(){return d}});var a=s(57437),n=s(2265),i=s(92369),r=s(91723),l=s(82431);let c=[{id:"1",name:"Sarah Johnson",service:"Strategy Call",date:"2026-03-27",time:"10:00",duration_mins:30,status:"confirmed"},{id:"2",name:"Alex Rivera",service:"Demo Meeting",date:"2026-03-27",time:"14:00",duration_mins:60,status:"confirmed"},{id:"3",name:"Mike Torres",service:"Follow-up Call",date:"2026-03-28",time:"09:30",duration_mins:20,status:"pending"},{id:"4",name:"Emma Davis",service:"Intro Call",date:"2026-03-28",time:"11:00",duration_mins:15,status:"confirmed"},{id:"5",name:"Lisa Wang",service:"Strategy Call",date:"2026-03-29",time:"15:00",duration_mins:30,status:"confirmed"}];function d(e){let{panelProps:t}=e,s=(null==t?void 0:t.clientId)||"",[d,o]=(0,n.useState)([]),[m,x]=(0,n.useState)(!0),u=(0,n.useCallback)(async()=>{x(!0);try{let t=await fetch("/api/upschedule/bookings/upcoming".concat(s?"?tenant_id=".concat(s):""),{credentials:"include"});if(t.ok){var e;let s=await t.json();o(null!==(e=s.bookings)&&void 0!==e?e:c)}else o(c)}catch(e){o(c)}finally{x(!1)}},[s]);(0,n.useEffect)(()=>{u()},[u]);let p=d.reduce((e,t)=>(e[t.date]||(e[t.date]=[]),e[t.date].push(t),e),{}),h=Object.keys(p).sort();return m?(0,a.jsx)("div",{className:"p-4 space-y-3 animate-pulse",children:[1,2,3].map(e=>(0,a.jsx)("div",{className:"h-24 rounded-xl bg-gray-100"},e))}):(0,a.jsxs)("div",{className:"p-4 flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:"Upcoming Bookings"}),(0,a.jsxs)("span",{className:"text-[10px] text-gray-400 bg-gray-100 rounded-full px-2 py-0.5",children:[d.length," scheduled"]})]}),0===h.length?(0,a.jsx)("div",{className:"rounded-xl border border-gray-100 bg-gray-50 p-6 text-center",children:(0,a.jsx)("p",{className:"text-xs text-gray-400",children:"No upcoming bookings"})}):(0,a.jsx)("div",{className:"space-y-3",children:h.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase mb-1.5",children:new Date(e+"T00:00:00").toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})}),(0,a.jsx)("div",{className:"space-y-1.5",children:p[e].map(e=>(0,a.jsxs)("div",{className:"rounded-lg border px-3 py-2 ".concat("pending"===e.status?"border-amber-200 bg-amber-50":"border-gray-100 bg-white"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(i.Z,{className:"h-3 w-3 text-gray-400"}),(0,a.jsx)("span",{className:"text-xs font-medium text-gray-800",children:e.name})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 text-[10px] text-gray-500",children:[(0,a.jsx)(r.Z,{className:"h-2.5 w-2.5"}),e.time," \xb7 ",e.duration_mins,"m"]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-0.5",children:[(0,a.jsx)("p",{className:"text-[10px] text-gray-500",children:e.service}),"pending"===e.status&&(0,a.jsx)("span",{className:"text-[9px] font-bold text-amber-700 uppercase",children:"Pending"})]})]},e.id))})]},e))}),(0,a.jsx)("a",{href:"/dashboard/upschedule/calendar",className:"flex items-center justify-center gap-1.5 rounded-xl border border-blue-200 bg-blue-50 py-2.5 text-xs font-medium text-blue-700 hover:bg-blue-100 transition-colors",children:"Open Full Calendar"}),(0,a.jsxs)("button",{type:"button",onClick:u,className:"flex items-center justify-center gap-1 text-[10px] text-gray-400 hover:text-gray-600 transition-colors",children:[(0,a.jsx)(l.Z,{className:"h-3 w-3"})," Refresh"]})]})}}}]);
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.