@mcp-b/react-components 0.71.1 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/{AgentComputer-CpS9R2KG.d.ts → AgentComputer-BI8RsGzq.d.ts} +11 -1
  2. package/dist/{AgentComputer-CsWDnHwj.js → AgentComputer-KhPwXwh8.js} +256 -247
  3. package/dist/{ChatGptSignInScreen-CmbBe09G.js → ChatGptSignInScreen-CLq5cetL.js} +1 -1
  4. package/dist/{CodeBlock-dt0L8md0.js → CodeBlock-ZG47S5e4.js} +1 -1
  5. package/dist/{ComputerCalendar-Z6k_DVJF.js → ComputerCalendar-B3xdMl90.js} +565 -478
  6. package/dist/{ComputerPresentation-BEQKYAjc.js → ComputerPresentation-rzx6n36S.js} +26 -4
  7. package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-BojdvFEY.js} +2 -2
  8. package/dist/{FileTree-CjfzpN6X.js → FileTree-C7fh3_H5.js} +1 -1
  9. package/dist/{ManagerOffice-BJ2vs-Lr.js → ManagerOffice-80ZkVjSt.js} +1 -1
  10. package/dist/{SetupChecklist-DwscX3Bw.js → SetupChecklist-BKCMkUuh.js} +1 -1
  11. package/dist/{ThinkSchedule-9nzxIoX1.d.ts → ThinkSchedule-C9vErgZQ.d.ts} +2 -3
  12. package/dist/{WorkspaceBrowser-mRScUczT.js → WorkspaceBrowser-BFdnZrm7.js} +2 -2
  13. package/dist/components/agents-sdk/AIProviderDialog.js +1 -1
  14. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  15. package/dist/components/agents-sdk/AgentChat.js +1 -1
  16. package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
  17. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  18. package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -1
  19. package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
  20. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  21. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  22. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  23. package/dist/components/agents-sdk/ComputerAutomations.d.ts +8 -3
  24. package/dist/components/agents-sdk/ComputerAutomations.js +7 -7
  25. package/dist/components/agents-sdk/ComputerCalendar.d.ts +22 -2
  26. package/dist/components/agents-sdk/ComputerCalendar.js +1 -1
  27. package/dist/components/agents-sdk/ComputerChannels.d.ts +51 -0
  28. package/dist/components/agents-sdk/ComputerChannels.js +311 -0
  29. package/dist/components/agents-sdk/ComputerFiles.d.ts +1 -1
  30. package/dist/components/agents-sdk/ComputerFiles.js +4 -4
  31. package/dist/components/agents-sdk/ComputerHome.js +1 -1
  32. package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
  33. package/dist/components/agents-sdk/ComputerNotifications.js +1 -1
  34. package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -2
  35. package/dist/components/agents-sdk/ComputerPresentation.js +2 -2
  36. package/dist/components/agents-sdk/ComputerScreen.d.ts +1 -1
  37. package/dist/components/agents-sdk/ComputerScreen.js +3 -3
  38. package/dist/components/agents-sdk/ComputerSettings.d.ts +1 -1
  39. package/dist/components/agents-sdk/ComputerSettings.js +4 -4
  40. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
  41. package/dist/components/agents-sdk/ComputerViewer.js +1 -1
  42. package/dist/components/agents-sdk/EmployeeApp.js +1 -1
  43. package/dist/components/agents-sdk/EmployeeChat.js +1 -1
  44. package/dist/components/agents-sdk/EmployeeChrome.js +2 -2
  45. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
  46. package/dist/components/agents-sdk/EmployeeSchedules.js +1 -1
  47. package/dist/components/agents-sdk/EmployeeStartScreen.js +2 -2
  48. package/dist/components/agents-sdk/ExecutionBoard.js +3 -3
  49. package/dist/components/agents-sdk/ManagerAccountActions.js +1 -1
  50. package/dist/components/agents-sdk/ManagerOffice.d.ts +2 -2
  51. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  52. package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
  53. package/dist/components/agents-sdk/McpConnectionRequest.js +1 -1
  54. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  55. package/dist/components/agents-sdk/McpServerPicker.js +1 -1
  56. package/dist/components/agents-sdk/ModelSelector.js +1 -1
  57. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  58. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  59. package/dist/components/agents-sdk/SubagentRunPanel.js +1 -1
  60. package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
  61. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  62. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +1 -1
  63. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  64. package/dist/components/agents-sdk/ThinkSchedule.js +2 -2
  65. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  66. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  67. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  68. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
  69. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +1 -1
  70. package/dist/components/agents-sdk/ThinkScheduleDetail.js +2 -2
  71. package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
  72. package/dist/components/agents-sdk/ThinkThreadPicker.js +1 -1
  73. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  74. package/dist/components/agents-sdk/WorkspaceAutomation.js +5 -5
  75. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +4 -4
  76. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  77. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +3 -3
  78. package/dist/components/agents-sdk/WorkspaceDesktop.js +326 -162
  79. package/dist/components/agents-sdk/WorkspaceExplorer.js +2 -2
  80. package/dist/components/agents-sdk/WorkspaceFileDetails.js +2 -2
  81. package/dist/components/agents-sdk/WorkspaceFileView.js +5 -5
  82. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  83. package/dist/components/agents-sdk/WorkspacePerson.js +3 -3
  84. package/dist/components/agents-sdk/WorkspaceProject.js +4 -4
  85. package/dist/components/ai-sdk/Activity.js +1 -1
  86. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  87. package/dist/components/ai-sdk/Approval.js +1 -1
  88. package/dist/components/ai-sdk/Artifact.js +1 -1
  89. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  90. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  91. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  92. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  93. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  94. package/dist/components/ai-sdk/ConnectedAppCards.js +2 -2
  95. package/dist/components/ai-sdk/Conversation.js +1 -1
  96. package/dist/components/ai-sdk/Goal.js +1 -1
  97. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  98. package/dist/components/ai-sdk/Message.js +2 -2
  99. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  100. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  101. package/dist/components/ai-sdk/Plan.js +1 -1
  102. package/dist/components/ai-sdk/PromptInput.js +1 -1
  103. package/dist/components/ai-sdk/Queue.js +1 -1
  104. package/dist/components/ai-sdk/Reasoning.js +1 -1
  105. package/dist/components/ai-sdk/Sources.js +1 -1
  106. package/dist/components/ai-sdk/Task.js +1 -1
  107. package/dist/components/extension/ChatGptSignInScreen.js +1 -1
  108. package/dist/components/extension/CodexModelSelector.js +1 -1
  109. package/dist/components/extension/ConversationTabPicker.js +1 -1
  110. package/dist/components/extension/FirstRunSetup.d.ts +1 -1
  111. package/dist/components/extension/FirstRunSetup.js +1 -1
  112. package/dist/components/foundations/Checkbox.js +1 -1
  113. package/dist/components/foundations/ContextMenu.js +1 -1
  114. package/dist/components/foundations/Favicon.js +1 -1
  115. package/dist/components/foundations/Menubar.js +1 -1
  116. package/dist/components/foundations/SearchField.js +1 -1
  117. package/dist/components/foundations/Select.js +1 -1
  118. package/dist/components/foundations/Stepper.js +1 -1
  119. package/dist/components/foundations/Toast.js +1 -1
  120. package/dist/components/foundations/icons.d.ts +2 -2
  121. package/dist/components/foundations/icons.js +2 -2
  122. package/dist/components/general-purpose/CommandPalette.js +1 -1
  123. package/dist/components/general-purpose/Commit.js +2 -2
  124. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  125. package/dist/components/general-purpose/FileTree.js +1 -1
  126. package/dist/components/general-purpose/PricingPlanCard.js +1 -1
  127. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  128. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  129. package/dist/components/general-purpose/TestResults.js +1 -1
  130. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  131. package/dist/components/general-purpose/WallpaperPicker.js +1 -1
  132. package/dist/components/general-purpose/WebPreview.js +1 -1
  133. package/dist/components/nanites/AgentConnection.js +2 -2
  134. package/dist/components/nanites/AgentToolDetail.js +1 -1
  135. package/dist/{connected-app-drafts-C49343p9.js → connected-app-drafts-D2ijldOR.js} +2 -2
  136. package/dist/{copy-button-DWBVJR6D.js → copy-button-UNBY7oXF.js} +1 -1
  137. package/dist/{icons-B3n7zvU7.d.ts → icons-CMPZtOxO.d.ts} +2 -1
  138. package/dist/{icons-nLTnB9kd.js → icons-CNwk7DEu.js} +3 -2
  139. package/dist/{parts-BFK5iocu.js → parts-Bb1aZP2y.js} +1 -1
  140. package/dist/{scheduled-table-source-gGpVJ1TN.js → scheduled-table-source-6YdnC3Sh.js} +1 -1
  141. package/dist/styles/app-top-bar.css +1 -1
  142. package/dist/styles/computer-calendar.css +12 -0
  143. package/dist/styles/computer-channels.css +87 -0
  144. package/dist/styles/index.css +1 -0
  145. package/dist/styles/list-detail.css +1 -2
  146. package/dist/styles/recipes.css +2 -2
  147. package/dist/styles/search-field.css +1 -1
  148. package/dist/styles/workspace-desktop.css +11 -7
  149. package/dist/{workspace-assets-DdtnBDU3.js → workspace-assets-CadpUKoz.js} +1 -1
  150. package/dist/{workspace-concept-panel-VkjvFCY_.js → workspace-concept-panel-CzxPyGpN.js} +1 -1
  151. package/dist/{workspace-delete-BOY6CMBf.js → workspace-delete-D9ZesEdu.js} +1 -1
  152. package/dist/{workspace-media-preview-B4iB5Tvi.js → workspace-media-preview-kXaEY4AN.js} +1 -1
  153. package/dist/{workspace-quick-look-8cbGu1Xf.js → workspace-quick-look-BDD-jXn3.js} +2 -2
  154. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import { Z as PlusIcon, g as ChevronRightIcon, gt as XIcon, h as ChevronLeftIcon } from "./icons-nLTnB9kd.js";
1
+ import { Q as PlusIcon, _t as XIcon, g as ChevronRightIcon, h as ChevronLeftIcon } from "./icons-CNwk7DEu.js";
2
2
  import { Checkbox } from "./components/foundations/Checkbox.js";
3
3
  import { Button } from "./components/foundations/Button.js";
4
4
  import { IconButton } from "./components/foundations/IconButton.js";
5
- import { n as useAgentComputerActions } from "./AgentComputer-CsWDnHwj.js";
5
+ import { n as useAgentComputerActions } from "./AgentComputer-KhPwXwh8.js";
6
6
  import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
7
7
  import { COMPUTER_APP_IDS } from "./components/agents-sdk/ComputerAppIds.js";
8
8
  import { Popover } from "./components/foundations/Popover.js";
@@ -14,10 +14,10 @@ import { LinkButton } from "./components/foundations/LinkButton.js";
14
14
  import { DescriptionList } from "./components/foundations/DescriptionList.js";
15
15
  import { SearchField } from "./components/foundations/SearchField.js";
16
16
  import { ResponsiveSidebarShell } from "./components/general-purpose/ResponsiveSidebarShell.js";
17
- import { t as computerAppParts } from "./parts-BFK5iocu.js";
17
+ import { t as computerAppParts } from "./parts-Bb1aZP2y.js";
18
18
  import { c } from "react/compiler-runtime";
19
19
  import * as React from "react";
20
- import { createContext, use, useId, useLayoutEffect, useRef, useState } from "react";
20
+ import { createContext, use, useEffect, useEffectEvent, useId, useLayoutEffect, useRef, useState } from "react";
21
21
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
22
22
  //#region src/components/_internal/computer-apps/automations-host.ts
23
23
  const ComputerAutomationsContext = React.createContext(null);
@@ -43,19 +43,34 @@ function calendarClock(timeZone, now) {
43
43
  month: "2-digit",
44
44
  day: "2-digit"
45
45
  });
46
+ const sourceWall = zonedFormat(timeZone, {
47
+ year: "numeric",
48
+ month: "2-digit",
49
+ day: "2-digit",
50
+ hour: "2-digit",
51
+ minute: "2-digit",
52
+ second: "2-digit",
53
+ hourCycle: "h23"
54
+ });
46
55
  const time = zonedFormat(timeZone, {
47
56
  hour: "numeric",
48
57
  minute: "2-digit"
49
58
  });
50
- const calendarDay = (timestamp) => {
51
- const parts = sourceDay.formatToParts(timestamp);
52
- const part = (name) => Number(parts.find((value) => value.type === name)?.value);
53
- return Date.UTC(part("year"), part("month") - 1, part("day"));
59
+ const wall = (format, timestamp) => {
60
+ const parts = format.formatToParts(timestamp);
61
+ const part = (name) => Number(parts.find((value) => value.type === name)?.value ?? 0);
62
+ return Date.UTC(part("year"), part("month") - 1, part("day"), part("hour"), part("minute"), part("second"));
54
63
  };
64
+ const calendarDay = (timestamp) => wall(sourceDay, timestamp);
55
65
  return {
56
66
  time,
57
67
  zoneName: formatThinkScheduleTimeZone(timeZone),
58
68
  calendarDay,
69
+ dayStart(day) {
70
+ let instant = day;
71
+ for (let pass = 0; pass < 2; pass++) instant = day - (wall(sourceWall, instant) - instant);
72
+ return instant;
73
+ },
59
74
  today: calendarDay(now),
60
75
  monthTime(timestamp) {
61
76
  const parts = time.formatToParts(timestamp);
@@ -100,14 +115,41 @@ function moveMonth(day, offset) {
100
115
  const lastDay = new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
101
116
  return Date.UTC(year, month, Math.min(date.getUTCDate(), lastDay));
102
117
  }
118
+ /** The first day a month's six-week grid shows, Sunday before the 1st. */
119
+ function monthGridStart(month) {
120
+ const date = new Date(month);
121
+ const first = Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1);
122
+ return first - new Date(first).getUTCDay() * DAY;
123
+ }
124
+ const isAllDay = (entry) => entry.kind === "event" && entry.event.allDay === true;
125
+ /** The host's events: a timed one on its start day, an all-day one on each day it spans. */
126
+ function eventEntries(events, { calendarDay }) {
127
+ return events.flatMap((event) => {
128
+ if (!Number.isFinite(new Date(event.start).getTime())) return [];
129
+ const first = calendarDay(event.start);
130
+ const last = event.allDay && event.end > event.start ? calendarDay(event.end - 1) : first;
131
+ const entries = [];
132
+ for (let day = first; day <= Math.min(last, first + 365 * DAY); day += DAY) entries.push({
133
+ key: `event:${event.id}:${day}`,
134
+ kind: "event",
135
+ event,
136
+ title: event.title,
137
+ timestamp: event.start,
138
+ day
139
+ });
140
+ return entries;
141
+ });
142
+ }
103
143
  /** One confirmed next occurrence and each retained run; never expand schedule text. */
104
- function calendarEntries(schedules, { calendarDay }) {
144
+ function calendarEntries(schedules, events, clock) {
145
+ const { calendarDay } = clock;
105
146
  return schedules.flatMap((schedule) => {
106
147
  const entries = [];
107
- const next = schedule.enabled && schedule.alarm ? schedule.alarm.time * 1e3 : NaN;
148
+ const next = schedule.enabled && schedule.nextRunAt != null ? schedule.nextRunAt : NaN;
108
149
  if (Number.isFinite(new Date(next).getTime())) entries.push({
109
150
  key: `${schedule.id}:next`,
110
151
  schedule,
152
+ title: schedule.name,
111
153
  kind: "scheduled",
112
154
  timestamp: next,
113
155
  day: calendarDay(next)
@@ -119,6 +161,7 @@ function calendarEntries(schedules, { calendarDay }) {
119
161
  entries.push({
120
162
  key: `${schedule.id}:run:${getThinkExecutionRunId(run)}`,
121
163
  schedule,
164
+ title: schedule.name,
122
165
  kind: "run",
123
166
  run,
124
167
  timestamp,
@@ -126,7 +169,7 @@ function calendarEntries(schedules, { calendarDay }) {
126
169
  });
127
170
  }
128
171
  return entries;
129
- }).toSorted((first, second) => first.timestamp - second.timestamp);
172
+ }).concat(eventEntries(events, clock)).toSorted((first, second) => first.day - second.day || Number(isAllDay(second)) - Number(isAllDay(first)) || first.timestamp - second.timestamp);
130
173
  }
131
174
  /** Where the entry opens in Automations, as the link shows it. */
132
175
  function useSourceLink() {
@@ -134,7 +177,11 @@ function useSourceLink() {
134
177
  const { host } = useComputerAutomationsContext();
135
178
  let t0;
136
179
  if ($[0] !== host) {
137
- t0 = (entry) => host.renderLink(entry.kind === "scheduled" ? {
180
+ t0 = (entry) => entry.kind === "event" ? /* @__PURE__ */ jsx("a", {
181
+ href: entry.event.url,
182
+ target: "_blank",
183
+ rel: "noopener"
184
+ }) : host.renderLink(entry.kind === "scheduled" ? {
138
185
  section: "schedules",
139
186
  schedule: entry.schedule.id
140
187
  } : {
@@ -147,369 +194,379 @@ function useSourceLink() {
147
194
  return t0;
148
195
  }
149
196
  function entryStatus(entry) {
150
- return entry.kind === "scheduled" ? "Confirmed next run" : formatThinkExecutionStatus(getThinkExecutionRunStatus(entry.run));
197
+ return entry.kind === "event" ? entry.event.calendar ?? "External calendar" : entry.kind === "scheduled" ? "Confirmed next run" : formatThinkExecutionStatus(getThinkExecutionRunStatus(entry.run));
198
+ }
199
+ /** The entry's time as a cell shows it: an all-day event says so. */
200
+ function entryTime(entry, format) {
201
+ return isAllDay(entry) ? "All day" : format(entry.timestamp);
151
202
  }
152
203
  function CalendarEvent(t0) {
153
- const $ = c(94);
204
+ const $ = c(96);
154
205
  const { entry, onSelect, onOpen, detailed: t1 } = t0;
155
206
  const detailed = t1 === void 0 ? false : t1;
156
207
  const navigating = useRef(false);
157
208
  const sourceLink = useSourceLink();
158
209
  const clock = useClock();
159
210
  let t2;
160
- if ($[0] !== entry.day || $[1] !== onSelect) {
161
- t2 = (open) => {
162
- if (open) {
163
- navigating.current = false;
164
- onSelect(entry.day);
165
- }
166
- };
167
- $[0] = entry.day;
168
- $[1] = onSelect;
169
- $[2] = t2;
170
- } else t2 = $[2];
211
+ if ($[0] !== clock) {
212
+ t2 = (timestamp) => clock.time.format(timestamp);
213
+ $[0] = clock;
214
+ $[1] = t2;
215
+ } else t2 = $[1];
171
216
  let t3;
172
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
173
- t3 = /* @__PURE__ */ jsx(Button, {
174
- variant: "ghost",
175
- color: "neutral",
176
- size: "xs"
177
- });
178
- $[3] = t3;
179
- } else t3 = $[3];
217
+ if ($[2] !== entry || $[3] !== t2) {
218
+ t3 = entryTime(entry, t2);
219
+ $[2] = entry;
220
+ $[3] = t2;
221
+ $[4] = t3;
222
+ } else t3 = $[4];
223
+ const fullTime = t3;
180
224
  const t4 = entry.kind;
181
225
  const t5 = detailed ? "" : void 0;
182
226
  const t6 = entry.key;
183
- const t7 = entry.schedule.name;
184
- let t8;
185
- if ($[4] !== entry) {
186
- t8 = entryStatus(entry);
187
- $[4] = entry;
188
- $[5] = t8;
189
- } else t8 = $[5];
227
+ let t7;
228
+ if ($[5] !== entry.event || $[6] !== entry.kind) {
229
+ t7 = entry.kind === "event" && entry.event.color ? { "--sigvelo-recipe-calendar-event-color": entry.event.color } : void 0;
230
+ $[5] = entry.event;
231
+ $[6] = entry.kind;
232
+ $[7] = t7;
233
+ } else t7 = $[7];
234
+ const t8 = entry.title;
190
235
  let t9;
191
- if ($[6] !== entry.day) {
192
- t9 = fullDate.format(entry.day);
193
- $[6] = entry.day;
194
- $[7] = t9;
195
- } else t9 = $[7];
236
+ if ($[8] !== entry) {
237
+ t9 = entryStatus(entry);
238
+ $[8] = entry;
239
+ $[9] = t9;
240
+ } else t9 = $[9];
196
241
  let t10;
197
- if ($[8] !== clock.time || $[9] !== entry.timestamp) {
198
- t10 = clock.time.format(entry.timestamp);
199
- $[8] = clock.time;
200
- $[9] = entry.timestamp;
201
- $[10] = t10;
202
- } else t10 = $[10];
203
- const t11 = `${t7}, ${t8}, ${t9}, ${t10}`;
242
+ if ($[10] !== entry.day) {
243
+ t10 = fullDate.format(entry.day);
244
+ $[10] = entry.day;
245
+ $[11] = t10;
246
+ } else t10 = $[11];
247
+ const t11 = `${t8}, ${t9}, ${t10}, ${fullTime}`;
204
248
  let t12;
205
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
249
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
206
250
  t12 = /* @__PURE__ */ jsx("span", {
207
251
  className: "computer-calendar__event-dot",
208
252
  "aria-hidden": "true"
209
253
  });
210
- $[11] = t12;
211
- } else t12 = $[11];
254
+ $[12] = t12;
255
+ } else t12 = $[12];
212
256
  let t13;
213
- if ($[12] !== entry.schedule.name) {
257
+ if ($[13] !== entry.title) {
214
258
  t13 = /* @__PURE__ */ jsx("span", {
215
259
  className: "computer-calendar__event-title sigvelo-truncate",
216
- children: entry.schedule.name
260
+ children: entry.title
217
261
  });
218
- $[12] = entry.schedule.name;
219
- $[13] = t13;
220
- } else t13 = $[13];
262
+ $[13] = entry.title;
263
+ $[14] = t13;
264
+ } else t13 = $[14];
221
265
  let t14;
222
- if ($[14] !== entry.timestamp) {
266
+ if ($[15] !== entry.timestamp) {
223
267
  t14 = new Date(entry.timestamp).toISOString();
224
- $[14] = entry.timestamp;
225
- $[15] = t14;
226
- } else t14 = $[15];
268
+ $[15] = entry.timestamp;
269
+ $[16] = t14;
270
+ } else t14 = $[16];
227
271
  let t15;
228
- if ($[16] !== clock || $[17] !== detailed || $[18] !== entry.timestamp) {
229
- t15 = detailed ? clock.time.format(entry.timestamp) : clock.monthTime(entry.timestamp);
230
- $[16] = clock;
231
- $[17] = detailed;
232
- $[18] = entry.timestamp;
233
- $[19] = t15;
234
- } else t15 = $[19];
272
+ if ($[17] !== clock || $[18] !== detailed || $[19] !== entry || $[20] !== fullTime) {
273
+ t15 = detailed ? fullTime : entryTime(entry, (time) => clock.monthTime(time));
274
+ $[17] = clock;
275
+ $[18] = detailed;
276
+ $[19] = entry;
277
+ $[20] = fullTime;
278
+ $[21] = t15;
279
+ } else t15 = $[21];
235
280
  let t16;
236
- if ($[20] !== t14 || $[21] !== t15) {
281
+ if ($[22] !== t14 || $[23] !== t15) {
237
282
  t16 = /* @__PURE__ */ jsx("time", {
238
283
  dateTime: t14,
239
284
  children: t15
240
285
  });
241
- $[20] = t14;
242
- $[21] = t15;
243
- $[22] = t16;
244
- } else t16 = $[22];
286
+ $[22] = t14;
287
+ $[23] = t15;
288
+ $[24] = t16;
289
+ } else t16 = $[24];
245
290
  let t17;
246
- if ($[23] !== detailed || $[24] !== entry) {
291
+ if ($[25] !== detailed || $[26] !== entry) {
247
292
  t17 = detailed ? /* @__PURE__ */ jsx("span", {
248
293
  className: "computer-calendar__entry-detail",
249
294
  children: entryStatus(entry)
250
295
  }) : null;
251
- $[23] = detailed;
252
- $[24] = entry;
253
- $[25] = t17;
254
- } else t17 = $[25];
296
+ $[25] = detailed;
297
+ $[26] = entry;
298
+ $[27] = t17;
299
+ } else t17 = $[27];
255
300
  let t18;
256
- if ($[26] !== entry.key || $[27] !== entry.kind || $[28] !== t11 || $[29] !== t13 || $[30] !== t16 || $[31] !== t17 || $[32] !== t5) {
257
- t18 = /* @__PURE__ */ jsxs(Popover.Trigger, {
258
- unstyled: true,
259
- render: t3,
301
+ if ($[28] !== t13 || $[29] !== t16 || $[30] !== t17) {
302
+ t18 = /* @__PURE__ */ jsxs(Fragment, { children: [
303
+ t12,
304
+ t13,
305
+ t16,
306
+ t17
307
+ ] });
308
+ $[28] = t13;
309
+ $[29] = t16;
310
+ $[30] = t17;
311
+ $[31] = t18;
312
+ } else t18 = $[31];
313
+ let t19;
314
+ if ($[32] !== entry.key || $[33] !== entry.kind || $[34] !== t11 || $[35] !== t18 || $[36] !== t5 || $[37] !== t7) {
315
+ t19 = {
260
316
  className: "computer-calendar__event",
261
317
  "data-kind": t4,
262
318
  "data-detailed": t5,
263
319
  "data-entry": t6,
320
+ style: t7,
264
321
  "aria-label": t11,
265
- children: [
266
- t12,
267
- t13,
268
- t16,
269
- t17
270
- ]
271
- });
272
- $[26] = entry.key;
273
- $[27] = entry.kind;
274
- $[28] = t11;
275
- $[29] = t13;
276
- $[30] = t16;
277
- $[31] = t17;
278
- $[32] = t5;
279
- $[33] = t18;
280
- } else t18 = $[33];
281
- let t19;
282
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
283
- t19 = () => !navigating.current;
284
- $[34] = t19;
285
- } else t19 = $[34];
322
+ children: t18
323
+ };
324
+ $[32] = entry.key;
325
+ $[33] = entry.kind;
326
+ $[34] = t11;
327
+ $[35] = t18;
328
+ $[36] = t5;
329
+ $[37] = t7;
330
+ $[38] = t19;
331
+ } else t19 = $[38];
332
+ const trigger = t19;
333
+ if (entry.kind === "event" && entry.event.url) {
334
+ let t20;
335
+ if ($[39] !== entry || $[40] !== onOpen || $[41] !== onSelect) {
336
+ t20 = () => {
337
+ onSelect(entry.day);
338
+ onOpen(entry);
339
+ };
340
+ $[39] = entry;
341
+ $[40] = onOpen;
342
+ $[41] = onSelect;
343
+ $[42] = t20;
344
+ } else t20 = $[42];
345
+ let t21;
346
+ if ($[43] !== t20 || $[44] !== trigger) {
347
+ t21 = /* @__PURE__ */ jsx(Button, {
348
+ variant: "ghost",
349
+ color: "neutral",
350
+ size: "xs",
351
+ ...trigger,
352
+ onClick: t20
353
+ });
354
+ $[43] = t20;
355
+ $[44] = trigger;
356
+ $[45] = t21;
357
+ } else t21 = $[45];
358
+ return t21;
359
+ }
286
360
  let t20;
287
- if ($[35] !== entry.schedule.name) {
288
- t20 = /* @__PURE__ */ jsx(Popover.Title, {
361
+ if ($[46] !== entry.day || $[47] !== onSelect) {
362
+ t20 = (open) => {
363
+ if (open) {
364
+ navigating.current = false;
365
+ onSelect(entry.day);
366
+ }
367
+ };
368
+ $[46] = entry.day;
369
+ $[47] = onSelect;
370
+ $[48] = t20;
371
+ } else t20 = $[48];
372
+ let t21;
373
+ if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
374
+ t21 = /* @__PURE__ */ jsx(Button, {
375
+ variant: "ghost",
376
+ color: "neutral",
377
+ size: "xs"
378
+ });
379
+ $[49] = t21;
380
+ } else t21 = $[49];
381
+ let t22;
382
+ if ($[50] !== trigger) {
383
+ t22 = /* @__PURE__ */ jsx(Popover.Trigger, {
384
+ unstyled: true,
385
+ render: t21,
386
+ ...trigger
387
+ });
388
+ $[50] = trigger;
389
+ $[51] = t22;
390
+ } else t22 = $[51];
391
+ let t23;
392
+ if ($[52] === Symbol.for("react.memo_cache_sentinel")) {
393
+ t23 = () => !navigating.current;
394
+ $[52] = t23;
395
+ } else t23 = $[52];
396
+ let t24;
397
+ if ($[53] !== entry.title) {
398
+ t24 = /* @__PURE__ */ jsx(Popover.Title, {
289
399
  className: "computer-calendar__event-title-heading",
290
- children: entry.schedule.name
400
+ children: entry.title
291
401
  });
292
- $[35] = entry.schedule.name;
293
- $[36] = t20;
294
- } else t20 = $[36];
295
- let t21;
296
- if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
297
- t21 = /* @__PURE__ */ jsx(Popover.Close, { render: /* @__PURE__ */ jsx(IconButton, {
402
+ $[53] = entry.title;
403
+ $[54] = t24;
404
+ } else t24 = $[54];
405
+ let t25;
406
+ if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
407
+ t25 = /* @__PURE__ */ jsx(Popover.Close, { render: /* @__PURE__ */ jsx(IconButton, {
298
408
  label: "Close event details",
299
409
  size: "xs",
300
410
  variant: "ghost",
301
411
  color: "neutral",
302
412
  children: /* @__PURE__ */ jsx(XIcon, {})
303
413
  }) });
304
- $[37] = t21;
305
- } else t21 = $[37];
306
- let t22;
307
- if ($[38] !== t20) {
308
- t22 = /* @__PURE__ */ jsxs("div", {
414
+ $[55] = t25;
415
+ } else t25 = $[55];
416
+ let t26;
417
+ if ($[56] !== t24) {
418
+ t26 = /* @__PURE__ */ jsxs("div", {
309
419
  className: "computer-calendar__event-header",
310
- children: [t20, t21]
420
+ children: [t24, t25]
311
421
  });
312
- $[38] = t20;
313
- $[39] = t22;
314
- } else t22 = $[39];
315
- let t23;
316
- if ($[40] !== entry.day) {
317
- t23 = fullDate.format(entry.day);
318
- $[40] = entry.day;
319
- $[41] = t23;
320
- } else t23 = $[41];
321
- let t24;
322
- if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
323
- t24 = /* @__PURE__ */ jsx("br", {});
324
- $[42] = t24;
325
- } else t24 = $[42];
326
- let t25;
327
- if ($[43] !== entry.timestamp) {
328
- t25 = new Date(entry.timestamp).toISOString();
329
- $[43] = entry.timestamp;
330
- $[44] = t25;
331
- } else t25 = $[44];
332
- let t26;
333
- if ($[45] !== clock.time || $[46] !== entry.timestamp) {
334
- t26 = clock.time.format(entry.timestamp);
335
- $[45] = clock.time;
336
- $[46] = entry.timestamp;
337
- $[47] = t26;
338
- } else t26 = $[47];
422
+ $[56] = t24;
423
+ $[57] = t26;
424
+ } else t26 = $[57];
339
425
  let t27;
340
- if ($[48] !== t25 || $[49] !== t26) {
341
- t27 = /* @__PURE__ */ jsx("time", {
342
- dateTime: t25,
343
- children: t26
344
- });
345
- $[48] = t25;
346
- $[49] = t26;
347
- $[50] = t27;
348
- } else t27 = $[50];
349
- const t28 = clock.zoneName ? ` · ${clock.zoneName}` : null;
426
+ if ($[58] !== entry.day) {
427
+ t27 = fullDate.format(entry.day);
428
+ $[58] = entry.day;
429
+ $[59] = t27;
430
+ } else t27 = $[59];
431
+ let t28;
432
+ if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
433
+ t28 = /* @__PURE__ */ jsx("br", {});
434
+ $[60] = t28;
435
+ } else t28 = $[60];
350
436
  let t29;
351
- if ($[51] !== t23 || $[52] !== t27 || $[53] !== t28) {
352
- t29 = /* @__PURE__ */ jsxs(Popover.Description, {
437
+ if ($[61] !== entry.timestamp) {
438
+ t29 = new Date(entry.timestamp).toISOString();
439
+ $[61] = entry.timestamp;
440
+ $[62] = t29;
441
+ } else t29 = $[62];
442
+ let t30;
443
+ if ($[63] !== fullTime || $[64] !== t29) {
444
+ t30 = /* @__PURE__ */ jsx("time", {
445
+ dateTime: t29,
446
+ children: fullTime
447
+ });
448
+ $[63] = fullTime;
449
+ $[64] = t29;
450
+ $[65] = t30;
451
+ } else t30 = $[65];
452
+ let t31;
453
+ if ($[66] !== clock.zoneName || $[67] !== entry) {
454
+ t31 = clock.zoneName && !isAllDay(entry) ? ` · ${clock.zoneName}` : null;
455
+ $[66] = clock.zoneName;
456
+ $[67] = entry;
457
+ $[68] = t31;
458
+ } else t31 = $[68];
459
+ let t32;
460
+ if ($[69] !== t27 || $[70] !== t30 || $[71] !== t31) {
461
+ t32 = /* @__PURE__ */ jsxs(Popover.Description, {
353
462
  className: "computer-calendar__event-description",
354
463
  children: [
355
- t23,
356
- t24,
357
464
  t27,
358
- t28
465
+ t28,
466
+ t30,
467
+ t31
359
468
  ]
360
469
  });
361
- $[51] = t23;
362
- $[52] = t27;
363
- $[53] = t28;
364
- $[54] = t29;
365
- } else t29 = $[54];
366
- let t30;
367
- if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
368
- t30 = /* @__PURE__ */ jsx(DescriptionList.Term, { children: "Calendar" });
369
- $[55] = t30;
370
- } else t30 = $[55];
371
- const t31 = entry.kind === "scheduled" ? "Scheduled work" : "Run history";
372
- let t32;
373
- if ($[56] !== t31) {
374
- t32 = /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [t30, /* @__PURE__ */ jsx(DescriptionList.Details, { children: t31 })] });
375
- $[56] = t31;
376
- $[57] = t32;
377
- } else t32 = $[57];
470
+ $[69] = t27;
471
+ $[70] = t30;
472
+ $[71] = t31;
473
+ $[72] = t32;
474
+ } else t32 = $[72];
378
475
  let t33;
379
- if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
380
- t33 = /* @__PURE__ */ jsx(DescriptionList.Term, { children: "Owner" });
381
- $[58] = t33;
382
- } else t33 = $[58];
476
+ if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
477
+ t33 = /* @__PURE__ */ jsx(DescriptionList.Term, { children: "Calendar" });
478
+ $[73] = t33;
479
+ } else t33 = $[73];
383
480
  let t34;
384
- if ($[59] !== entry.schedule.owner.name) {
385
- t34 = /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [t33, /* @__PURE__ */ jsx(DescriptionList.Details, { children: entry.schedule.owner.name })] });
386
- $[59] = entry.schedule.owner.name;
387
- $[60] = t34;
388
- } else t34 = $[60];
481
+ if ($[74] !== entry) {
482
+ t34 = entry.kind === "event" ? entryStatus(entry) : entry.kind === "scheduled" ? "Scheduled work" : "Run history";
483
+ $[74] = entry;
484
+ $[75] = t34;
485
+ } else t34 = $[75];
389
486
  let t35;
390
- if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
391
- t35 = /* @__PURE__ */ jsx(DescriptionList.Term, { children: "Status" });
392
- $[61] = t35;
393
- } else t35 = $[61];
487
+ if ($[76] !== t34) {
488
+ t35 = /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [t33, /* @__PURE__ */ jsx(DescriptionList.Details, { children: t34 })] });
489
+ $[76] = t34;
490
+ $[77] = t35;
491
+ } else t35 = $[77];
394
492
  let t36;
395
- if ($[62] !== entry) {
396
- t36 = entryStatus(entry);
397
- $[62] = entry;
398
- $[63] = t36;
399
- } else t36 = $[63];
493
+ if ($[78] !== entry) {
494
+ t36 = entry.kind === "event" ? null : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "Owner" }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: entry.schedule.owner.name })] }), /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "Status" }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: entryStatus(entry) })] })] });
495
+ $[78] = entry;
496
+ $[79] = t36;
497
+ } else t36 = $[79];
400
498
  let t37;
401
- if ($[64] !== t36) {
402
- t37 = /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [t35, /* @__PURE__ */ jsx(DescriptionList.Details, { children: t36 })] });
403
- $[64] = t36;
404
- $[65] = t37;
405
- } else t37 = $[65];
406
- let t38;
407
- if ($[66] !== t32 || $[67] !== t34 || $[68] !== t37) {
408
- t38 = /* @__PURE__ */ jsxs(DescriptionList.Root, {
499
+ if ($[80] !== t35 || $[81] !== t36) {
500
+ t37 = /* @__PURE__ */ jsxs(DescriptionList.Root, {
409
501
  align: "start",
410
502
  className: "computer-calendar__event-facts",
411
- children: [
412
- t32,
413
- t34,
414
- t37
415
- ]
503
+ children: [t35, t36]
416
504
  });
417
- $[66] = t32;
418
- $[67] = t34;
419
- $[68] = t37;
420
- $[69] = t38;
421
- } else t38 = $[69];
422
- const t39 = entry.kind === "scheduled" ? "The next run confirmed by the schedule." : "A recorded run.";
423
- let t40;
424
- if ($[70] !== t39) {
425
- t40 = /* @__PURE__ */ jsx("p", {
505
+ $[80] = t35;
506
+ $[81] = t36;
507
+ $[82] = t37;
508
+ } else t37 = $[82];
509
+ let t38;
510
+ if ($[83] !== entry || $[84] !== onOpen || $[85] !== sourceLink) {
511
+ t38 = entry.kind === "event" ? null : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
426
512
  className: "computer-calendar__event-note",
427
- children: t39
428
- });
429
- $[70] = t39;
430
- $[71] = t40;
431
- } else t40 = $[71];
432
- let t41;
433
- if ($[72] !== entry || $[73] !== sourceLink) {
434
- t41 = sourceLink(entry);
435
- $[72] = entry;
436
- $[73] = sourceLink;
437
- $[74] = t41;
438
- } else t41 = $[74];
439
- let t42;
440
- if ($[75] !== t41) {
441
- t42 = /* @__PURE__ */ jsx(LinkButton, {
442
- render: t41,
443
- variant: "surface",
444
- color: "neutral",
445
- size: "xs"
446
- });
447
- $[75] = t41;
448
- $[76] = t42;
449
- } else t42 = $[76];
450
- let t43;
451
- if ($[77] !== entry || $[78] !== onOpen) {
452
- t43 = (event) => {
453
- event.preventDefault();
454
- navigating.current = true;
455
- onOpen(entry);
456
- };
457
- $[77] = entry;
458
- $[78] = onOpen;
459
- $[79] = t43;
460
- } else t43 = $[79];
461
- const t44 = entry.kind === "scheduled" ? "Open schedule" : "Open run";
462
- let t45;
463
- if ($[80] !== t42 || $[81] !== t43 || $[82] !== t44) {
464
- t45 = /* @__PURE__ */ jsx(Popover.Close, {
513
+ children: entry.kind === "scheduled" ? "The next run confirmed by the schedule." : "A recorded run."
514
+ }), /* @__PURE__ */ jsx(Popover.Close, {
465
515
  nativeButton: false,
466
516
  role: "link",
467
- render: t42,
468
- onClick: t43,
469
- children: t44
470
- });
471
- $[80] = t42;
472
- $[81] = t43;
473
- $[82] = t44;
474
- $[83] = t45;
475
- } else t45 = $[83];
476
- let t46;
477
- if ($[84] !== t22 || $[85] !== t29 || $[86] !== t38 || $[87] !== t40 || $[88] !== t45) {
478
- t46 = /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
517
+ render: /* @__PURE__ */ jsx(LinkButton, {
518
+ render: sourceLink(entry),
519
+ variant: "surface",
520
+ color: "neutral",
521
+ size: "xs"
522
+ }),
523
+ onClick: (event) => {
524
+ event.preventDefault();
525
+ navigating.current = true;
526
+ onOpen(entry);
527
+ },
528
+ children: entry.kind === "scheduled" ? "Open schedule" : "Open run"
529
+ })] });
530
+ $[83] = entry;
531
+ $[84] = onOpen;
532
+ $[85] = sourceLink;
533
+ $[86] = t38;
534
+ } else t38 = $[86];
535
+ let t39;
536
+ if ($[87] !== t26 || $[88] !== t32 || $[89] !== t37 || $[90] !== t38) {
537
+ t39 = /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
479
538
  side: "right",
480
539
  align: "start",
481
540
  sideOffset: 8,
482
541
  children: /* @__PURE__ */ jsxs(Popover.Popup, {
483
542
  className: "computer-calendar__event-popup",
484
- finalFocus: t19,
543
+ finalFocus: t23,
485
544
  children: [
486
- t22,
487
- t29,
488
- t38,
489
- t40,
490
- t45
545
+ t26,
546
+ t32,
547
+ t37,
548
+ t38
491
549
  ]
492
550
  })
493
551
  }) });
494
- $[84] = t22;
495
- $[85] = t29;
496
- $[86] = t38;
497
- $[87] = t40;
498
- $[88] = t45;
499
- $[89] = t46;
500
- } else t46 = $[89];
501
- let t47;
502
- if ($[90] !== t18 || $[91] !== t2 || $[92] !== t46) {
503
- t47 = /* @__PURE__ */ jsxs(Popover.Root, {
504
- onOpenChange: t2,
505
- children: [t18, t46]
552
+ $[87] = t26;
553
+ $[88] = t32;
554
+ $[89] = t37;
555
+ $[90] = t38;
556
+ $[91] = t39;
557
+ } else t39 = $[91];
558
+ let t40;
559
+ if ($[92] !== t20 || $[93] !== t22 || $[94] !== t39) {
560
+ t40 = /* @__PURE__ */ jsxs(Popover.Root, {
561
+ onOpenChange: t20,
562
+ children: [t22, t39]
506
563
  });
507
- $[90] = t18;
508
- $[91] = t2;
509
- $[92] = t46;
510
- $[93] = t47;
511
- } else t47 = $[93];
512
- return t47;
564
+ $[92] = t20;
565
+ $[93] = t22;
566
+ $[94] = t39;
567
+ $[95] = t40;
568
+ } else t40 = $[95];
569
+ return t40;
513
570
  }
514
571
  function CalendarOverflow(t0) {
515
572
  const $ = c(31);
@@ -588,7 +645,7 @@ function CalendarOverflow(t0) {
588
645
  t12 = entries.map((entry) => /* @__PURE__ */ jsxs("li", { children: [
589
646
  /* @__PURE__ */ jsx("time", {
590
647
  dateTime: new Date(entry.timestamp).toISOString(),
591
- children: clock.time.format(entry.timestamp)
648
+ children: entryTime(entry, (timestamp) => clock.time.format(timestamp))
592
649
  }),
593
650
  /* @__PURE__ */ jsx(Popover.Close, {
594
651
  className: "computer-calendar__source-link",
@@ -605,7 +662,7 @@ function CalendarOverflow(t0) {
605
662
  navigating.current = true;
606
663
  onOpen(entry);
607
664
  },
608
- children: entry.schedule.name
665
+ children: entry.title
609
666
  }),
610
667
  /* @__PURE__ */ jsx("span", { children: entryStatus(entry) })
611
668
  ] }, entry.key));
@@ -659,7 +716,7 @@ function CalendarOverflow(t0) {
659
716
  return t15;
660
717
  }
661
718
  function CalendarMonth(t0) {
662
- const $ = c(18);
719
+ const $ = c(20);
663
720
  const { entries, selected, month, onSelect, onSelectEvent, onOpen, mini: t1 } = t0;
664
721
  const mini = t1 === void 0 ? false : t1;
665
722
  const clock = useClock();
@@ -695,9 +752,14 @@ function CalendarMonth(t0) {
695
752
  let t5;
696
753
  if ($[5] !== clock || $[6] !== entries || $[7] !== mini || $[8] !== month || $[9] !== onOpen || $[10] !== onSelect || $[11] !== onSelectEvent || $[12] !== selected) {
697
754
  const displayedMonth = new Date(month);
698
- const first = Date.UTC(displayedMonth.getUTCFullYear(), displayedMonth.getUTCMonth(), 1);
699
- const start = first - new Date(first).getUTCDay() * DAY;
700
- const monthLabel = `${monthFormat.format(first)} ${displayedMonth.getUTCFullYear()}`;
755
+ const start = monthGridStart(month);
756
+ let t6;
757
+ if ($[14] !== month) {
758
+ t6 = monthFormat.format(month);
759
+ $[14] = month;
760
+ $[15] = t6;
761
+ } else t6 = $[15];
762
+ const monthLabel = `${t6} ${displayedMonth.getUTCFullYear()}`;
701
763
  const select = function select(day) {
702
764
  if (day === selected && new Date(day).getUTCMonth() === displayedMonth.getUTCMonth()) {
703
765
  onSelect(day);
@@ -714,31 +776,31 @@ function CalendarMonth(t0) {
714
776
  event.preventDefault();
715
777
  select(next);
716
778
  };
717
- let t6;
718
- if ($[14] !== mini) {
719
- t6 = weekdays.map((weekday_0) => /* @__PURE__ */ jsx("span", {
779
+ let t7;
780
+ if ($[16] !== mini) {
781
+ t7 = weekdays.map((weekday_0) => /* @__PURE__ */ jsx("span", {
720
782
  role: "columnheader",
721
783
  "aria-label": weekday_0,
722
784
  children: weekday_0.slice(0, mini ? 1 : 3)
723
785
  }, weekday_0));
724
- $[14] = mini;
725
- $[15] = t6;
726
- } else t6 = $[15];
727
- let t7;
728
- if ($[16] !== t6) {
729
- t7 = /* @__PURE__ */ jsx("div", {
786
+ $[16] = mini;
787
+ $[17] = t7;
788
+ } else t7 = $[17];
789
+ let t8;
790
+ if ($[18] !== t7) {
791
+ t8 = /* @__PURE__ */ jsx("div", {
730
792
  className: "computer-calendar__weekdays",
731
793
  role: "row",
732
- children: t6
794
+ children: t7
733
795
  });
734
- $[16] = t6;
735
- $[17] = t7;
736
- } else t7 = $[17];
796
+ $[18] = t7;
797
+ $[19] = t8;
798
+ } else t8 = $[19];
737
799
  t5 = /* @__PURE__ */ jsxs("div", {
738
800
  className: mini ? "computer-calendar__mini-grid" : "computer-calendar__month",
739
801
  role: "grid",
740
802
  "aria-label": mini ? `Date navigator, ${monthLabel}` : monthLabel,
741
- children: [t7, Array.from({ length: 6 }, (_, week) => /* @__PURE__ */ jsx("div", {
803
+ children: [t8, Array.from({ length: 6 }, (_, week) => /* @__PURE__ */ jsx("div", {
742
804
  className: "computer-calendar__week",
743
805
  role: "row",
744
806
  children: Array.from({ length: 7 }, (__0, column) => {
@@ -855,7 +917,7 @@ function CalendarIcon() {
855
917
  * employee's wall clock. Opening one shows it in Automations.
856
918
  */
857
919
  function useCalendarModel() {
858
- const $ = c(71);
920
+ const $ = c(76);
859
921
  const { host, clock: hostClock, calendar } = useComputerAutomationsContext();
860
922
  const { openApp } = useAgentComputerActions();
861
923
  let t0;
@@ -875,172 +937,193 @@ function useCalendarModel() {
875
937
  $[4] = t1;
876
938
  } else t1 = $[4];
877
939
  const onCreateSchedule = t1;
878
- const { schedules } = host;
940
+ const { schedules, events } = host;
879
941
  const clock = calendarClock(hostClock.timeZone, hostClock.now);
880
942
  const [t2, setDate] = useState({
881
943
  selected: clock.today,
882
944
  month: clock.today
883
945
  });
884
946
  const { selected, month } = t2;
947
+ const gridStart = monthGridStart(month);
948
+ const rangeStart = clock.dayStart(gridStart);
949
+ const rangeEnd = clock.dayStart(gridStart + 42 * DAY);
950
+ const reportRange = useEffectEvent(() => host.onCalendarRange?.({
951
+ start: rangeStart,
952
+ end: rangeEnd
953
+ }));
954
+ let t3;
955
+ if ($[5] !== reportRange) {
956
+ t3 = () => reportRange();
957
+ $[5] = reportRange;
958
+ $[6] = t3;
959
+ } else t3 = $[6];
960
+ let t4;
961
+ if ($[7] !== rangeEnd || $[8] !== rangeStart) {
962
+ t4 = [rangeStart, rangeEnd];
963
+ $[7] = rangeEnd;
964
+ $[8] = rangeStart;
965
+ $[9] = t4;
966
+ } else t4 = $[9];
967
+ useEffect(t3, t4);
885
968
  const searchRef = useRef(null);
886
969
  const [showScheduled, setShowScheduled] = useState(true);
887
970
  const [showRuns, setShowRuns] = useState(true);
888
971
  const [query, setQuery] = useState("");
889
- let t3;
890
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
891
- t3 = (day) => setDate({
972
+ let t5;
973
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
974
+ t5 = (day) => setDate({
892
975
  selected: day,
893
976
  month: day
894
977
  });
895
- $[5] = t3;
896
- } else t3 = $[5];
897
- const selectDate = t3;
898
- let t4;
899
- if ($[6] !== selectDate) {
900
- t4 = (day_0) => {
978
+ $[10] = t5;
979
+ } else t5 = $[10];
980
+ const selectDate = t5;
981
+ let t6;
982
+ if ($[11] !== selectDate) {
983
+ t6 = (day_0) => {
901
984
  setQuery("");
902
985
  selectDate(day_0);
903
986
  };
904
- $[6] = selectDate;
905
- $[7] = t4;
906
- } else t4 = $[7];
907
- const navigateDate = t4;
908
- let t5;
909
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
910
- t5 = (day_1) => setDate((current) => ({
987
+ $[11] = selectDate;
988
+ $[12] = t6;
989
+ } else t6 = $[12];
990
+ const navigateDate = t6;
991
+ let t7;
992
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
993
+ t7 = (day_1) => setDate((current) => ({
911
994
  ...current,
912
995
  selected: day_1
913
996
  }));
914
- $[8] = t5;
915
- } else t5 = $[8];
916
- const selectEvent = t5;
917
- let t6;
918
- if ($[9] !== month || $[10] !== navigateDate) {
919
- t6 = (offset) => {
997
+ $[13] = t7;
998
+ } else t7 = $[13];
999
+ const selectEvent = t7;
1000
+ let t8;
1001
+ if ($[14] !== month || $[15] !== navigateDate) {
1002
+ t8 = (offset) => {
920
1003
  const day_2 = moveMonth(month, offset);
921
1004
  navigateDate(day_2);
922
1005
  };
923
- $[9] = month;
924
- $[10] = navigateDate;
925
- $[11] = t6;
926
- } else t6 = $[11];
927
- const navigateMonth = t6;
928
- let t7;
929
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
930
- t7 = () => {
1006
+ $[14] = month;
1007
+ $[15] = navigateDate;
1008
+ $[16] = t8;
1009
+ } else t8 = $[16];
1010
+ const navigateMonth = t8;
1011
+ let t9;
1012
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
1013
+ t9 = () => {
931
1014
  setQuery("");
932
1015
  searchRef.current?.focus({ preventScroll: true });
933
1016
  };
934
- $[12] = t7;
935
- } else t7 = $[12];
936
- const clearSearch = t7;
937
- let t8;
938
- if ($[13] !== onCreateSchedule) {
939
- t8 = () => onCreateSchedule();
940
- $[13] = onCreateSchedule;
941
- $[14] = t8;
942
- } else t8 = $[14];
943
- let t9;
944
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
945
- t9 = /* @__PURE__ */ jsx(PlusIcon, {});
946
- $[15] = t9;
947
- } else t9 = $[15];
1017
+ $[17] = t9;
1018
+ } else t9 = $[17];
1019
+ const clearSearch = t9;
948
1020
  let t10;
949
- if ($[16] !== t8) {
950
- t10 = /* @__PURE__ */ jsx(AppTopBar.Button, {
1021
+ if ($[18] !== onCreateSchedule) {
1022
+ t10 = () => onCreateSchedule();
1023
+ $[18] = onCreateSchedule;
1024
+ $[19] = t10;
1025
+ } else t10 = $[19];
1026
+ let t11;
1027
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
1028
+ t11 = /* @__PURE__ */ jsx(PlusIcon, {});
1029
+ $[20] = t11;
1030
+ } else t11 = $[20];
1031
+ let t12;
1032
+ if ($[21] !== t10) {
1033
+ t12 = /* @__PURE__ */ jsx(AppTopBar.Button, {
951
1034
  label: "New schedule",
952
- onClick: t8,
953
- children: t9
1035
+ onClick: t10,
1036
+ children: t11
954
1037
  });
955
- $[16] = t8;
956
- $[17] = t10;
957
- } else t10 = $[17];
958
- const newSchedule = t10;
959
- let t11;
960
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
961
- t11 = /* @__PURE__ */ jsx(SearchField.Label, {
1038
+ $[21] = t10;
1039
+ $[22] = t12;
1040
+ } else t12 = $[22];
1041
+ const newSchedule = t12;
1042
+ let t13;
1043
+ if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
1044
+ t13 = /* @__PURE__ */ jsx(SearchField.Label, {
962
1045
  className: "sigvelo-visually-hidden",
963
1046
  children: "Search calendar"
964
1047
  });
965
- $[18] = t11;
966
- } else t11 = $[18];
967
- let t12;
968
- if ($[19] !== clearSearch || $[20] !== query) {
969
- t12 = (event) => {
1048
+ $[23] = t13;
1049
+ } else t13 = $[23];
1050
+ let t14;
1051
+ if ($[24] !== clearSearch || $[25] !== query) {
1052
+ t14 = (event) => {
970
1053
  if (event.defaultPrevented || event.key !== "Escape" || event.nativeEvent.isComposing || !query) return;
971
1054
  event.preventDefault();
972
1055
  event.stopPropagation();
973
1056
  clearSearch();
974
1057
  };
975
- $[19] = clearSearch;
976
- $[20] = query;
977
- $[21] = t12;
978
- } else t12 = $[21];
979
- let t13;
980
- if ($[22] !== query || $[23] !== t12) {
981
- t13 = /* @__PURE__ */ jsxs(SearchField.Root, {
1058
+ $[24] = clearSearch;
1059
+ $[25] = query;
1060
+ $[26] = t14;
1061
+ } else t14 = $[26];
1062
+ let t15;
1063
+ if ($[27] !== query || $[28] !== t14) {
1064
+ t15 = /* @__PURE__ */ jsxs(SearchField.Root, {
982
1065
  className: "computer-calendar__search",
983
- children: [t11, /* @__PURE__ */ jsx(SearchField.Control, {
1066
+ children: [t13, /* @__PURE__ */ jsx(SearchField.Control, {
984
1067
  ref: searchRef,
985
1068
  placeholder: "Search",
986
1069
  value: query,
987
1070
  onValueChange: setQuery,
988
- onKeyDown: t12
1071
+ onKeyDown: t14
989
1072
  })]
990
1073
  });
991
- $[22] = query;
992
- $[23] = t12;
993
- $[24] = t13;
994
- } else t13 = $[24];
995
- const search = t13;
1074
+ $[27] = query;
1075
+ $[28] = t14;
1076
+ $[29] = t15;
1077
+ } else t15 = $[29];
1078
+ const search = t15;
996
1079
  const titleId = useId();
997
1080
  const scheduledId = useId();
998
1081
  const runsId = useId();
999
- const allEntries = calendarEntries(schedules, clock);
1082
+ const allEntries = calendarEntries(schedules, events ?? [], clock);
1000
1083
  const term = query.trim().toLocaleLowerCase();
1001
- const entries = allEntries.filter((entry) => (entry.kind === "scheduled" ? showScheduled : showRuns) && (!term || `${entry.schedule.name} ${entry.schedule.owner.name} ${entryStatus(entry)}`.toLocaleLowerCase().includes(term)));
1002
- let t14;
1003
- if ($[25] !== selected) {
1004
- t14 = (entry_0) => entry_0.day === selected;
1005
- $[25] = selected;
1006
- $[26] = t14;
1007
- } else t14 = $[26];
1008
- const agenda = entries.filter(t14);
1009
- let t15;
1010
- if ($[27] !== month) {
1011
- t15 = new Date(month);
1012
- $[27] = month;
1013
- $[28] = t15;
1014
- } else t15 = $[28];
1015
- const displayedMonth = t15;
1016
- const searchDays = Map.groupBy(entries, _temp2);
1084
+ const entries = allEntries.filter((entry) => (entry.kind === "event" || (entry.kind === "scheduled" ? showScheduled : showRuns)) && (!term || `${entry.title} ${entry.kind === "event" ? "" : entry.schedule.owner.name} ${entryStatus(entry)}`.toLocaleLowerCase().includes(term)));
1017
1085
  let t16;
1018
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
1019
- t16 = (event_0) => {
1086
+ if ($[30] !== selected) {
1087
+ t16 = (entry_0) => entry_0.day === selected;
1088
+ $[30] = selected;
1089
+ $[31] = t16;
1090
+ } else t16 = $[31];
1091
+ const agenda = entries.filter(t16);
1092
+ let t17;
1093
+ if ($[32] !== month) {
1094
+ t17 = new Date(month);
1095
+ $[32] = month;
1096
+ $[33] = t17;
1097
+ } else t17 = $[33];
1098
+ const displayedMonth = t17;
1099
+ const searchDays = Map.groupBy(entries, _temp2);
1100
+ let t18;
1101
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
1102
+ t18 = (event_0) => {
1020
1103
  if (event_0.defaultPrevented || event_0.nativeEvent.isComposing || event_0.altKey || event_0.shiftKey || !(event_0.metaKey || event_0.ctrlKey) || event_0.key.toLowerCase() !== "f") return;
1021
1104
  event_0.preventDefault();
1022
1105
  searchRef.current?.focus({ preventScroll: true });
1023
1106
  searchRef.current?.select();
1024
1107
  };
1025
- $[29] = t16;
1026
- } else t16 = $[29];
1027
- let t17;
1028
- if ($[30] !== newSchedule || $[31] !== search) {
1029
- t17 = (t18) => {
1030
- const { phone } = t18;
1108
+ $[34] = t18;
1109
+ } else t18 = $[34];
1110
+ let t19;
1111
+ if ($[35] !== newSchedule || $[36] !== search) {
1112
+ t19 = (t20) => {
1113
+ const { phone } = t20;
1031
1114
  return phone ? null : /* @__PURE__ */ jsxs(AppTopBar.Root, {
1032
1115
  className: "computer-calendar-toolbar",
1033
1116
  "aria-label": "Calendar controls",
1034
1117
  children: [/* @__PURE__ */ jsx(AppTopBar.Leading, { children: newSchedule }), /* @__PURE__ */ jsx(AppTopBar.Trailing, { children: search })]
1035
1118
  });
1036
1119
  };
1037
- $[30] = newSchedule;
1038
- $[31] = search;
1039
- $[32] = t17;
1040
- } else t17 = $[32];
1041
- let t18;
1042
- if ($[33] !== clock || $[34] !== navigateDate || $[35] !== navigateMonth || $[36] !== onCreateSchedule || $[37] !== setShowRuns || $[38] !== setShowScheduled || $[39] !== showRuns || $[40] !== showScheduled) {
1043
- t18 = () => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Menubar.Menu, { children: [/* @__PURE__ */ jsx(Menubar.Trigger, { children: "File" }), /* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(Menubar.Positioner, {
1120
+ $[35] = newSchedule;
1121
+ $[36] = search;
1122
+ $[37] = t19;
1123
+ } else t19 = $[37];
1124
+ let t20;
1125
+ if ($[38] !== clock || $[39] !== navigateDate || $[40] !== navigateMonth || $[41] !== onCreateSchedule || $[42] !== setShowRuns || $[43] !== setShowScheduled || $[44] !== showRuns || $[45] !== showScheduled) {
1126
+ t20 = () => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Menubar.Menu, { children: [/* @__PURE__ */ jsx(Menubar.Trigger, { children: "File" }), /* @__PURE__ */ jsx(Menubar.Portal, { children: /* @__PURE__ */ jsx(Menubar.Positioner, {
1044
1127
  align: "start",
1045
1128
  sideOffset: 4,
1046
1129
  children: /* @__PURE__ */ jsx(Menubar.Popup, { children: /* @__PURE__ */ jsx(Menubar.Item, {
@@ -1076,21 +1159,25 @@ function useCalendarModel() {
1076
1159
  })
1077
1160
  ] })
1078
1161
  }) })] })] });
1079
- $[33] = clock;
1080
- $[34] = navigateDate;
1081
- $[35] = navigateMonth;
1082
- $[36] = onCreateSchedule;
1083
- $[37] = setShowRuns;
1084
- $[38] = setShowScheduled;
1085
- $[39] = showRuns;
1086
- $[40] = showScheduled;
1087
- $[41] = t18;
1088
- } else t18 = $[41];
1089
- let t19;
1090
- if ($[42] !== agenda || $[43] !== calendar || $[44] !== clearSearch || $[45] !== clock || $[46] !== displayedMonth || $[47] !== entries || $[48] !== month || $[49] !== navigateDate || $[50] !== navigateMonth || $[51] !== newSchedule || $[52] !== runsId || $[53] !== scheduledId || $[54] !== search || $[55] !== searchDays || $[56] !== selectDate || $[57] !== selectEvent || $[58] !== selected || $[59] !== setShowRuns || $[60] !== setShowScheduled || $[61] !== showAutomations || $[62] !== showRuns || $[63] !== showScheduled || $[64] !== term || $[65] !== titleId) {
1091
- t19 = (t20) => {
1092
- const { phone: phone_0 } = t20;
1162
+ $[38] = clock;
1163
+ $[39] = navigateDate;
1164
+ $[40] = navigateMonth;
1165
+ $[41] = onCreateSchedule;
1166
+ $[42] = setShowRuns;
1167
+ $[43] = setShowScheduled;
1168
+ $[44] = showRuns;
1169
+ $[45] = showScheduled;
1170
+ $[46] = t20;
1171
+ } else t20 = $[46];
1172
+ let t21;
1173
+ if ($[47] !== agenda || $[48] !== calendar || $[49] !== clearSearch || $[50] !== clock || $[51] !== displayedMonth || $[52] !== entries || $[53] !== month || $[54] !== navigateDate || $[55] !== navigateMonth || $[56] !== newSchedule || $[57] !== runsId || $[58] !== scheduledId || $[59] !== search || $[60] !== searchDays || $[61] !== selectDate || $[62] !== selectEvent || $[63] !== selected || $[64] !== setShowRuns || $[65] !== setShowScheduled || $[66] !== showAutomations || $[67] !== showRuns || $[68] !== showScheduled || $[69] !== term || $[70] !== titleId) {
1174
+ t21 = (t22) => {
1175
+ const { phone: phone_0 } = t22;
1093
1176
  const openEntry = (entry_2) => {
1177
+ if (entry_2.kind === "event") {
1178
+ if (entry_2.event.url) window.open(entry_2.event.url, "_blank", "noopener");
1179
+ return;
1180
+ }
1094
1181
  showAutomations(entry_2.kind === "scheduled" ? calendar.openSchedule(entry_2.schedule.id) : calendar.openRun(entry_2.run));
1095
1182
  };
1096
1183
  return /* @__PURE__ */ jsx(CalendarClockContext, {
@@ -1204,8 +1291,8 @@ function useCalendarModel() {
1204
1291
  }), entries.length ? /* @__PURE__ */ jsx("ol", {
1205
1292
  className: "computer-calendar__search-days",
1206
1293
  "aria-label": "Calendar search results",
1207
- children: [...searchDays].map((t21) => {
1208
- const [day_3, dayEntries] = t21;
1294
+ children: [...searchDays].map((t23) => {
1295
+ const [day_3, dayEntries] = t23;
1209
1296
  return /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsx("h3", { children: fullDate.format(day_3) }), /* @__PURE__ */ jsx("ol", {
1210
1297
  className: "computer-calendar__search-events",
1211
1298
  children: dayEntries.map((entry_3) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(CalendarEvent, {
@@ -1296,51 +1383,51 @@ function useCalendarModel() {
1296
1383
  })
1297
1384
  });
1298
1385
  };
1299
- $[42] = agenda;
1300
- $[43] = calendar;
1301
- $[44] = clearSearch;
1302
- $[45] = clock;
1303
- $[46] = displayedMonth;
1304
- $[47] = entries;
1305
- $[48] = month;
1306
- $[49] = navigateDate;
1307
- $[50] = navigateMonth;
1308
- $[51] = newSchedule;
1309
- $[52] = runsId;
1310
- $[53] = scheduledId;
1311
- $[54] = search;
1312
- $[55] = searchDays;
1313
- $[56] = selectDate;
1314
- $[57] = selectEvent;
1315
- $[58] = selected;
1316
- $[59] = setShowRuns;
1317
- $[60] = setShowScheduled;
1318
- $[61] = showAutomations;
1319
- $[62] = showRuns;
1320
- $[63] = showScheduled;
1321
- $[64] = term;
1322
- $[65] = titleId;
1323
- $[66] = t19;
1324
- } else t19 = $[66];
1325
- let t20;
1326
- if ($[67] !== t17 || $[68] !== t18 || $[69] !== t19) {
1327
- t20 = {
1328
- onKeyDown: t16,
1329
- renderTitle: t17,
1330
- renderMenus: t18,
1331
- render: t19
1386
+ $[47] = agenda;
1387
+ $[48] = calendar;
1388
+ $[49] = clearSearch;
1389
+ $[50] = clock;
1390
+ $[51] = displayedMonth;
1391
+ $[52] = entries;
1392
+ $[53] = month;
1393
+ $[54] = navigateDate;
1394
+ $[55] = navigateMonth;
1395
+ $[56] = newSchedule;
1396
+ $[57] = runsId;
1397
+ $[58] = scheduledId;
1398
+ $[59] = search;
1399
+ $[60] = searchDays;
1400
+ $[61] = selectDate;
1401
+ $[62] = selectEvent;
1402
+ $[63] = selected;
1403
+ $[64] = setShowRuns;
1404
+ $[65] = setShowScheduled;
1405
+ $[66] = showAutomations;
1406
+ $[67] = showRuns;
1407
+ $[68] = showScheduled;
1408
+ $[69] = term;
1409
+ $[70] = titleId;
1410
+ $[71] = t21;
1411
+ } else t21 = $[71];
1412
+ let t22;
1413
+ if ($[72] !== t19 || $[73] !== t20 || $[74] !== t21) {
1414
+ t22 = {
1415
+ onKeyDown: t18,
1416
+ renderTitle: t19,
1417
+ renderMenus: t20,
1418
+ render: t21
1332
1419
  };
1333
- $[67] = t17;
1334
- $[68] = t18;
1335
- $[69] = t19;
1336
- $[70] = t20;
1337
- } else t20 = $[70];
1338
- return t20;
1420
+ $[72] = t19;
1421
+ $[73] = t20;
1422
+ $[74] = t21;
1423
+ $[75] = t22;
1424
+ } else t22 = $[75];
1425
+ return t22;
1339
1426
  }
1340
1427
  function _temp2(entry_1) {
1341
1428
  return entry_1.day;
1342
1429
  }
1343
- /** Calendar in the Dock. It reads the schedules and runs `ComputerAutomations.Host` keeps. */
1430
+ /** Calendar in the Dock. It reads the schedules, runs and events `ComputerAutomations.Host` keeps. */
1344
1431
  const ComputerCalendar = { app: {
1345
1432
  id: COMPUTER_APP_IDS.calendar,
1346
1433
  label: "Calendar",