@mcp-b/react-components 0.71.0 → 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.
- package/dist/{AgentComputer-CpS9R2KG.d.ts → AgentComputer-BI8RsGzq.d.ts} +11 -1
- package/dist/{AgentComputer-DZCyQkcE.js → AgentComputer-KhPwXwh8.js} +332 -314
- package/dist/{ChatGptSignInScreen-CmbBe09G.js → ChatGptSignInScreen-CLq5cetL.js} +1 -1
- package/dist/{CodeBlock-dt0L8md0.js → CodeBlock-ZG47S5e4.js} +1 -1
- package/dist/{ComputerCalendar-Ci7tLASe.js → ComputerCalendar-B3xdMl90.js} +565 -478
- package/dist/{ComputerPresentation-BEQKYAjc.js → ComputerPresentation-rzx6n36S.js} +26 -4
- package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-BojdvFEY.js} +2 -2
- package/dist/{FileTree-CjfzpN6X.js → FileTree-C7fh3_H5.js} +1 -1
- package/dist/{ManagerOffice-BJ2vs-Lr.js → ManagerOffice-80ZkVjSt.js} +1 -1
- package/dist/{SetupChecklist-DwscX3Bw.js → SetupChecklist-BKCMkUuh.js} +1 -1
- package/dist/{ThinkSchedule-9nzxIoX1.d.ts → ThinkSchedule-C9vErgZQ.d.ts} +2 -3
- package/dist/{WorkspaceBrowser-mRScUczT.js → WorkspaceBrowser-BFdnZrm7.js} +2 -2
- package/dist/components/agents-sdk/AIProviderDialog.js +1 -1
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.js +1 -1
- package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -1
- package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +8 -3
- package/dist/components/agents-sdk/ComputerAutomations.js +7 -7
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +22 -2
- package/dist/components/agents-sdk/ComputerCalendar.js +1 -1
- package/dist/components/agents-sdk/ComputerChannels.d.ts +51 -0
- package/dist/components/agents-sdk/ComputerChannels.js +311 -0
- package/dist/components/agents-sdk/ComputerFiles.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerFiles.js +60 -48
- package/dist/components/agents-sdk/ComputerHome.js +1 -1
- package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerNotifications.js +1 -1
- package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -2
- package/dist/components/agents-sdk/ComputerPresentation.js +2 -2
- package/dist/components/agents-sdk/ComputerScreen.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerScreen.js +3 -3
- package/dist/components/agents-sdk/ComputerSettings.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerSettings.js +4 -4
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
- package/dist/components/agents-sdk/ComputerViewer.js +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +2 -2
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeSchedules.js +1 -1
- package/dist/components/agents-sdk/EmployeeStartScreen.js +2 -2
- package/dist/components/agents-sdk/ExecutionBoard.js +3 -3
- package/dist/components/agents-sdk/ManagerAccountActions.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.d.ts +2 -2
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
- package/dist/components/agents-sdk/McpConnectionRequest.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunPanel.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +1 -1
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkSchedule.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
- package/dist/components/agents-sdk/ThinkThreadPicker.js +1 -1
- package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +5 -5
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +4 -4
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +3 -3
- package/dist/components/agents-sdk/WorkspaceDesktop.js +326 -162
- package/dist/components/agents-sdk/WorkspaceExplorer.js +2 -2
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +2 -2
- package/dist/components/agents-sdk/WorkspaceFileView.js +5 -5
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspacePerson.js +3 -3
- package/dist/components/agents-sdk/WorkspaceProject.js +4 -4
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +1 -1
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +1 -1
- package/dist/components/ai-sdk/ConnectedAppCards.js +2 -2
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.js +2 -2
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.js +1 -1
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- package/dist/components/extension/FirstRunSetup.d.ts +1 -1
- package/dist/components/extension/FirstRunSetup.js +1 -1
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/Favicon.js +1 -1
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/CommandPalette.js +1 -1
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.js +1 -1
- package/dist/components/general-purpose/WebPreview.js +1 -1
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +1 -1
- package/dist/{connected-app-drafts-C49343p9.js → connected-app-drafts-D2ijldOR.js} +2 -2
- package/dist/{copy-button-DWBVJR6D.js → copy-button-UNBY7oXF.js} +1 -1
- package/dist/{icons-B3n7zvU7.d.ts → icons-CMPZtOxO.d.ts} +2 -1
- package/dist/{icons-nLTnB9kd.js → icons-CNwk7DEu.js} +3 -2
- package/dist/{parts-DuT5-rDz.js → parts-Bb1aZP2y.js} +1 -1
- package/dist/{scheduled-table-source-gGpVJ1TN.js → scheduled-table-source-6YdnC3Sh.js} +1 -1
- package/dist/styles/app-top-bar.css +1 -1
- package/dist/styles/computer-calendar.css +12 -0
- package/dist/styles/computer-channels.css +87 -0
- package/dist/styles/index.css +1 -0
- package/dist/styles/list-detail.css +1 -2
- package/dist/styles/recipes.css +2 -2
- package/dist/styles/search-field.css +1 -1
- package/dist/styles/workspace-desktop.css +11 -7
- package/dist/{workspace-assets-DdtnBDU3.js → workspace-assets-CadpUKoz.js} +1 -1
- package/dist/{workspace-concept-panel-VkjvFCY_.js → workspace-concept-panel-CzxPyGpN.js} +1 -1
- package/dist/{workspace-delete-BOY6CMBf.js → workspace-delete-D9ZesEdu.js} +1 -1
- package/dist/{workspace-media-preview-B4iB5Tvi.js → workspace-media-preview-kXaEY4AN.js} +1 -1
- package/dist/{workspace-quick-look-8cbGu1Xf.js → workspace-quick-look-BDD-jXn3.js} +2 -2
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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-
|
|
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
|
|
51
|
-
const parts =
|
|
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,
|
|
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.
|
|
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) =>
|
|
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(
|
|
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] !==
|
|
161
|
-
t2 = (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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]
|
|
173
|
-
t3 =
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
} else
|
|
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 ($[
|
|
192
|
-
t9 =
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
} else t9 = $[
|
|
236
|
+
if ($[8] !== entry) {
|
|
237
|
+
t9 = entryStatus(entry);
|
|
238
|
+
$[8] = entry;
|
|
239
|
+
$[9] = t9;
|
|
240
|
+
} else t9 = $[9];
|
|
196
241
|
let t10;
|
|
197
|
-
if ($[
|
|
198
|
-
t10 =
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
|
|
202
|
-
}
|
|
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 ($[
|
|
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
|
-
$[
|
|
211
|
-
} else t12 = $[
|
|
254
|
+
$[12] = t12;
|
|
255
|
+
} else t12 = $[12];
|
|
212
256
|
let t13;
|
|
213
|
-
if ($[
|
|
257
|
+
if ($[13] !== entry.title) {
|
|
214
258
|
t13 = /* @__PURE__ */ jsx("span", {
|
|
215
259
|
className: "computer-calendar__event-title sigvelo-truncate",
|
|
216
|
-
children: entry.
|
|
260
|
+
children: entry.title
|
|
217
261
|
});
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
} else t13 = $[
|
|
262
|
+
$[13] = entry.title;
|
|
263
|
+
$[14] = t13;
|
|
264
|
+
} else t13 = $[14];
|
|
221
265
|
let t14;
|
|
222
|
-
if ($[
|
|
266
|
+
if ($[15] !== entry.timestamp) {
|
|
223
267
|
t14 = new Date(entry.timestamp).toISOString();
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
} else t14 = $[
|
|
268
|
+
$[15] = entry.timestamp;
|
|
269
|
+
$[16] = t14;
|
|
270
|
+
} else t14 = $[16];
|
|
227
271
|
let t15;
|
|
228
|
-
if ($[
|
|
229
|
-
t15 = detailed ?
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
234
|
-
|
|
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 ($[
|
|
281
|
+
if ($[22] !== t14 || $[23] !== t15) {
|
|
237
282
|
t16 = /* @__PURE__ */ jsx("time", {
|
|
238
283
|
dateTime: t14,
|
|
239
284
|
children: t15
|
|
240
285
|
});
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
} else t16 = $[
|
|
286
|
+
$[22] = t14;
|
|
287
|
+
$[23] = t15;
|
|
288
|
+
$[24] = t16;
|
|
289
|
+
} else t16 = $[24];
|
|
245
290
|
let t17;
|
|
246
|
-
if ($[
|
|
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
|
-
$[
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
} else t17 = $[
|
|
296
|
+
$[25] = detailed;
|
|
297
|
+
$[26] = entry;
|
|
298
|
+
$[27] = t17;
|
|
299
|
+
} else t17 = $[27];
|
|
255
300
|
let t18;
|
|
256
|
-
if ($[
|
|
257
|
-
t18 = /* @__PURE__ */ jsxs(
|
|
258
|
-
|
|
259
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
$[
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
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 ($[
|
|
288
|
-
t20 =
|
|
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.
|
|
400
|
+
children: entry.title
|
|
291
401
|
});
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
} else
|
|
295
|
-
let
|
|
296
|
-
if ($[
|
|
297
|
-
|
|
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
|
-
$[
|
|
305
|
-
} else
|
|
306
|
-
let
|
|
307
|
-
if ($[
|
|
308
|
-
|
|
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: [
|
|
420
|
+
children: [t24, t25]
|
|
311
421
|
});
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
} else
|
|
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 ($[
|
|
341
|
-
t27 =
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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 ($[
|
|
352
|
-
t29 =
|
|
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
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
} else
|
|
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 ($[
|
|
380
|
-
t33 = /* @__PURE__ */ jsx(DescriptionList.Term, { children: "
|
|
381
|
-
$[
|
|
382
|
-
} else t33 = $[
|
|
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 ($[
|
|
385
|
-
t34 =
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
} else t34 = $[
|
|
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 ($[
|
|
391
|
-
t35 = /* @__PURE__ */ jsx(DescriptionList.
|
|
392
|
-
$[
|
|
393
|
-
|
|
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 ($[
|
|
396
|
-
t36 = entryStatus(entry);
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
} else t36 = $[
|
|
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 ($[
|
|
402
|
-
t37 = /* @__PURE__ */ jsxs(DescriptionList.
|
|
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
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
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:
|
|
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:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
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:
|
|
543
|
+
finalFocus: t23,
|
|
485
544
|
children: [
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
t45
|
|
545
|
+
t26,
|
|
546
|
+
t32,
|
|
547
|
+
t37,
|
|
548
|
+
t38
|
|
491
549
|
]
|
|
492
550
|
})
|
|
493
551
|
}) });
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
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
|
-
$[
|
|
508
|
-
$[
|
|
509
|
-
$[
|
|
510
|
-
$[
|
|
511
|
-
} else
|
|
512
|
-
return
|
|
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(
|
|
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.
|
|
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(
|
|
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
|
|
699
|
-
|
|
700
|
-
|
|
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
|
|
718
|
-
if ($[
|
|
719
|
-
|
|
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
|
-
$[
|
|
725
|
-
$[
|
|
726
|
-
} else
|
|
727
|
-
let
|
|
728
|
-
if ($[
|
|
729
|
-
|
|
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:
|
|
794
|
+
children: t7
|
|
733
795
|
});
|
|
734
|
-
$[
|
|
735
|
-
$[
|
|
736
|
-
} else
|
|
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: [
|
|
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(
|
|
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
|
|
890
|
-
if ($[
|
|
891
|
-
|
|
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
|
-
$[
|
|
896
|
-
} else
|
|
897
|
-
const selectDate =
|
|
898
|
-
let
|
|
899
|
-
if ($[
|
|
900
|
-
|
|
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
|
-
$[
|
|
905
|
-
$[
|
|
906
|
-
} else
|
|
907
|
-
const navigateDate =
|
|
908
|
-
let
|
|
909
|
-
if ($[
|
|
910
|
-
|
|
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
|
-
$[
|
|
915
|
-
} else
|
|
916
|
-
const selectEvent =
|
|
917
|
-
let
|
|
918
|
-
if ($[
|
|
919
|
-
|
|
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
|
-
$[
|
|
924
|
-
$[
|
|
925
|
-
$[
|
|
926
|
-
} else
|
|
927
|
-
const navigateMonth =
|
|
928
|
-
let
|
|
929
|
-
if ($[
|
|
930
|
-
|
|
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
|
-
$[
|
|
935
|
-
} else
|
|
936
|
-
const clearSearch =
|
|
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 ($[
|
|
950
|
-
t10 =
|
|
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:
|
|
953
|
-
children:
|
|
1035
|
+
onClick: t10,
|
|
1036
|
+
children: t11
|
|
954
1037
|
});
|
|
955
|
-
$[
|
|
956
|
-
$[
|
|
957
|
-
} else
|
|
958
|
-
const newSchedule =
|
|
959
|
-
let
|
|
960
|
-
if ($[
|
|
961
|
-
|
|
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
|
-
$[
|
|
966
|
-
} else
|
|
967
|
-
let
|
|
968
|
-
if ($[
|
|
969
|
-
|
|
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
|
-
$[
|
|
976
|
-
$[
|
|
977
|
-
$[
|
|
978
|
-
} else
|
|
979
|
-
let
|
|
980
|
-
if ($[
|
|
981
|
-
|
|
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: [
|
|
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:
|
|
1071
|
+
onKeyDown: t14
|
|
989
1072
|
})]
|
|
990
1073
|
});
|
|
991
|
-
$[
|
|
992
|
-
$[
|
|
993
|
-
$[
|
|
994
|
-
} else
|
|
995
|
-
const search =
|
|
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.
|
|
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 ($[
|
|
1019
|
-
t16 = (
|
|
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
|
-
$[
|
|
1026
|
-
} else
|
|
1027
|
-
let
|
|
1028
|
-
if ($[
|
|
1029
|
-
|
|
1030
|
-
const { phone } =
|
|
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
|
-
$[
|
|
1038
|
-
$[
|
|
1039
|
-
$[
|
|
1040
|
-
} else
|
|
1041
|
-
let
|
|
1042
|
-
if ($[
|
|
1043
|
-
|
|
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
|
-
$[
|
|
1080
|
-
$[
|
|
1081
|
-
$[
|
|
1082
|
-
$[
|
|
1083
|
-
$[
|
|
1084
|
-
$[
|
|
1085
|
-
$[
|
|
1086
|
-
$[
|
|
1087
|
-
$[
|
|
1088
|
-
} else
|
|
1089
|
-
let
|
|
1090
|
-
if ($[
|
|
1091
|
-
|
|
1092
|
-
const { phone: phone_0 } =
|
|
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((
|
|
1208
|
-
const [day_3, dayEntries] =
|
|
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
|
-
$[
|
|
1300
|
-
$[
|
|
1301
|
-
$[
|
|
1302
|
-
$[
|
|
1303
|
-
$[
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
$[
|
|
1309
|
-
$[
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
$[
|
|
1313
|
-
$[
|
|
1314
|
-
$[
|
|
1315
|
-
$[
|
|
1316
|
-
$[
|
|
1317
|
-
$[
|
|
1318
|
-
$[
|
|
1319
|
-
$[
|
|
1320
|
-
$[
|
|
1321
|
-
$[
|
|
1322
|
-
$[
|
|
1323
|
-
$[
|
|
1324
|
-
} else
|
|
1325
|
-
let
|
|
1326
|
-
if ($[
|
|
1327
|
-
|
|
1328
|
-
onKeyDown:
|
|
1329
|
-
renderTitle:
|
|
1330
|
-
renderMenus:
|
|
1331
|
-
render:
|
|
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
|
-
$[
|
|
1334
|
-
$[
|
|
1335
|
-
$[
|
|
1336
|
-
$[
|
|
1337
|
-
} else
|
|
1338
|
-
return
|
|
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
|
|
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",
|