@hyperframes/studio 0.8.204 → 0.8.205

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/index.js CHANGED
@@ -73503,6 +73503,7 @@ function useRenderQueue(projectId, activeCompPathRef) {
73503
73503
  if (resolution && resolution !== "auto") body.resolution = resolution;
73504
73504
  if (composition) body.composition = composition;
73505
73505
  if (opts.gpu) body.gpu = true;
73506
+ if (format === "gif" && opts.gifLoop !== void 0) body.gifLoop = opts.gifLoop;
73506
73507
  if (opts.variables && Object.keys(opts.variables).length > 0) {
73507
73508
  body.variables = opts.variables;
73508
73509
  }
@@ -73539,7 +73540,12 @@ function useRenderQueue(projectId, activeCompPathRef) {
73539
73540
  return;
73540
73541
  }
73541
73542
  const { jobId } = await res.json();
73542
- const FORMAT_EXT = { mp4: ".mp4", webm: ".webm", mov: ".mov" };
73543
+ const FORMAT_EXT = {
73544
+ mp4: ".mp4",
73545
+ webm: ".webm",
73546
+ mov: ".mov",
73547
+ gif: ".gif"
73548
+ };
73543
73549
  const ext2 = FORMAT_EXT[format] ?? ".mp4";
73544
73550
  const job = {
73545
73551
  id: jobId,
@@ -90307,7 +90313,7 @@ function FrameyGlyph({
90307
90313
 
90308
90314
  // src/components/DesktopGuideCard.tsx
90309
90315
  import { jsx as jsx208, jsxs as jsxs162 } from "react/jsx-runtime";
90310
- var platformName = (os) => os === "darwin" ? "Mac" : os === "linux" ? "Linux" : "your computer";
90316
+ var platformName = (os) => os === "darwin" ? "Mac" : os === "linux" ? "Linux" : os === "win32" ? "Windows" : "your computer";
90311
90317
  var deviceName = (os) => os === "darwin" ? "Mac" : "computer";
90312
90318
  var NOTE = "mt-0.5 text-step-12 text-text-2 text-pretty";
90313
90319
  function Swap({ value, children }) {
@@ -94440,7 +94446,7 @@ function getPersistedRenderSettings() {
94440
94446
  if (raw) {
94441
94447
  const parsed = JSON.parse(raw);
94442
94448
  return {
94443
- format: ["mp4", "webm", "mov"].includes(parsed.format) ? parsed.format : "mp4",
94449
+ format: ["mp4", "webm", "mov", "gif"].includes(parsed.format) ? parsed.format : "mp4",
94444
94450
  quality: ["draft", "standard", "high"].includes(parsed.quality) ? parsed.quality : "standard",
94445
94451
  fps: [24, 30, 60].includes(parsed.fps) ? parsed.fps : 30,
94446
94452
  gpu: parsed.gpu === true
@@ -94456,6 +94462,43 @@ function persistRenderSettings(format, quality, fps, gpu = getPersistedRenderSet
94456
94462
  } catch {
94457
94463
  }
94458
94464
  }
94465
+ function resolveRenderFormat(value) {
94466
+ return ["mp4", "webm", "mov", "gif"].find((format) => format === value) ?? "mp4";
94467
+ }
94468
+ function startConfiguredRender(onStartRender, settings) {
94469
+ const { format, quality, resolution, fps, gpu, gifLoop } = settings;
94470
+ if (format === "gif") return onStartRender(format, quality, resolution, fps, false, gifLoop);
94471
+ return onStartRender(format, quality, resolution, fps, gpu);
94472
+ }
94473
+ function isRenderExportBlocked(isRendering, missingFfmpeg, invalidGifLoop) {
94474
+ return isRendering || missingFfmpeg || invalidGifLoop;
94475
+ }
94476
+ var FORMAT_INFO = {
94477
+ gif: { label: "GIF", desc: "Animated image for docs and chat. No audio; up to 30 fps." },
94478
+ mp4: { label: "MP4", desc: "Best for general use. Smallest file, universal playback." },
94479
+ mov: {
94480
+ label: "MOV (ProRes 4444)",
94481
+ desc: "Transparent video. Works in Final Cut Pro, DaVinci Resolve, and most video editors. Large files."
94482
+ },
94483
+ webm: {
94484
+ label: "WebM (VP9)",
94485
+ desc: "Transparent video for web. Smaller than MOV but limited editor support."
94486
+ }
94487
+ };
94488
+ var FPS_OPTIONS = [
94489
+ { value: "24", label: "24 fps" },
94490
+ { value: "30", label: "30 fps" },
94491
+ { value: "60", label: "60 fps" }
94492
+ ];
94493
+ function resolveRenderFps(format, fps) {
94494
+ return format === "gif" && fps === 60 ? 30 : fps;
94495
+ }
94496
+ function getRenderFpsOptions(format) {
94497
+ return FPS_OPTIONS.map((option) => ({
94498
+ ...option,
94499
+ disabled: format === "gif" && option.value === "60"
94500
+ }));
94501
+ }
94459
94502
 
94460
94503
  // src/components/StudioLeftPanels.tsx
94461
94504
  import { Fragment as Fragment63, jsx as jsx227, jsxs as jsxs178 } from "react/jsx-runtime";
@@ -95994,9 +96037,28 @@ import { memo as memo58, useState as useState154, useRef as useRef183, useEffect
95994
96037
  import { createPortal as createPortal15 } from "react-dom";
95995
96038
  import { CANVAS_DIMENSIONS } from "@hyperframes/parsers";
95996
96039
 
96040
+ // src/components/renders/RenderDurationNote.tsx
96041
+ import { jsxs as jsxs184 } from "react/jsx-runtime";
96042
+ function formatEta(ms) {
96043
+ const s = Math.round(ms / 1e3);
96044
+ return s < 60 ? `${s}s` : `${Math.floor(s / 60)}m ${s % 60}s`;
96045
+ }
96046
+ function RenderDurationNote({
96047
+ durationMs,
96048
+ isRendering
96049
+ }) {
96050
+ if (durationMs === void 0 || isRendering) return null;
96051
+ return /* @__PURE__ */ jsxs184("p", { className: "text-step-9 text-text-5 text-center -mt-1.5", children: [
96052
+ "Last render took ",
96053
+ formatEta(durationMs)
96054
+ ] });
96055
+ }
96056
+
95997
96057
  // src/components/renders/RenderQueueItem.tsx
95998
96058
  import { memo as memo56, useCallback as useCallback178, useState as useState152 } from "react";
95999
- import { Fragment as Fragment64, jsx as jsx233, jsxs as jsxs184 } from "react/jsx-runtime";
96059
+
96060
+ // src/components/renders/RenderQueueInfo.tsx
96061
+ import { jsx as jsx233, jsxs as jsxs185 } from "react/jsx-runtime";
96000
96062
  function formatDuration2(ms) {
96001
96063
  if (ms < 1e3) return `${ms}ms`;
96002
96064
  const s = Math.round(ms / 1e3);
@@ -96008,6 +96070,85 @@ function formatTimeAgo(timestamp) {
96008
96070
  if (diff < 36e5) return `${Math.floor(diff / 6e4)}m ago`;
96009
96071
  return `${Math.floor(diff / 36e5)}h ago`;
96010
96072
  }
96073
+ function RenderQueueInfo({ job }) {
96074
+ const isRendering = job.status === "rendering";
96075
+ return /* @__PURE__ */ jsxs185("div", { className: "flex-1 min-w-0", children: [
96076
+ /* @__PURE__ */ jsxs185("div", { className: "flex items-center gap-1.5", children: [
96077
+ /* @__PURE__ */ jsx233("span", { className: "text-step-11 font-medium text-text-2 truncate", children: job.filename }),
96078
+ job.durationMs && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-5 shrink-0", children: formatDuration2(job.durationMs) })
96079
+ ] }),
96080
+ isRendering && /* @__PURE__ */ jsxs185("div", { className: "mt-1", children: [
96081
+ /* @__PURE__ */ jsxs185("div", { className: "flex items-center justify-between mb-0.5", children: [
96082
+ /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-4", children: job.stage || "Rendering" }),
96083
+ /* @__PURE__ */ jsxs185("span", { className: "text-step-9 font-mono text-accent-ink", children: [
96084
+ job.progress,
96085
+ "%"
96086
+ ] })
96087
+ ] }),
96088
+ /* @__PURE__ */ jsx233(
96089
+ "div",
96090
+ {
96091
+ className: "w-full h-1 bg-border rounded-full overflow-hidden",
96092
+ role: "progressbar",
96093
+ "aria-valuenow": job.progress,
96094
+ "aria-valuemin": 0,
96095
+ "aria-valuemax": 100,
96096
+ "aria-label": `Render progress: ${job.progress}%`,
96097
+ children: /* @__PURE__ */ jsx233(
96098
+ "div",
96099
+ {
96100
+ className: "h-full bg-accent rounded-full transition-all duration-300",
96101
+ style: { width: `${job.progress}%` }
96102
+ }
96103
+ )
96104
+ }
96105
+ )
96106
+ ] }),
96107
+ job.status === "failed" && job.error && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-danger-ink mt-0.5 block", children: job.error }),
96108
+ job.status === "cancelled" && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-4 mt-0.5 block", children: "Cancelled" }),
96109
+ !isRendering && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-5", children: formatTimeAgo(job.createdAt) })
96110
+ ] });
96111
+ }
96112
+
96113
+ // src/components/renders/RenderPreview.tsx
96114
+ import { Fragment as Fragment64, jsx as jsx234, jsxs as jsxs186 } from "react/jsx-runtime";
96115
+ function RenderPreview({
96116
+ filename: filename2,
96117
+ src,
96118
+ hovered,
96119
+ ready,
96120
+ onReady
96121
+ }) {
96122
+ if (filename2.endsWith(".gif")) {
96123
+ return /* @__PURE__ */ jsx234("img", { src, alt: filename2, className: "w-full h-full object-contain" });
96124
+ }
96125
+ return /* @__PURE__ */ jsxs186(Fragment64, { children: [
96126
+ hovered && /* @__PURE__ */ jsx234(
96127
+ "video",
96128
+ {
96129
+ src,
96130
+ autoPlay: true,
96131
+ muted: true,
96132
+ loop: true,
96133
+ playsInline: true,
96134
+ onCanPlay: onReady,
96135
+ className: "absolute inset-0 w-full h-full object-contain transition-opacity duration-150",
96136
+ style: { opacity: ready ? 1 : 0 }
96137
+ }
96138
+ ),
96139
+ /* @__PURE__ */ jsx234(
96140
+ "div",
96141
+ {
96142
+ className: "absolute inset-0 transition-opacity duration-150",
96143
+ style: { opacity: hovered && ready ? 0 : 1 },
96144
+ children: /* @__PURE__ */ jsx234(VideoFrameThumbnail, { src })
96145
+ }
96146
+ )
96147
+ ] });
96148
+ }
96149
+
96150
+ // src/components/renders/RenderQueueItem.tsx
96151
+ import { Fragment as Fragment65, jsx as jsx235, jsxs as jsxs187 } from "react/jsx-runtime";
96011
96152
  var RenderQueueItem = memo56(function RenderQueueItem2({
96012
96153
  job,
96013
96154
  projectId,
@@ -96034,7 +96175,7 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96034
96175
  const viewSrc = fileSrc;
96035
96176
  const isComplete = job.status === "complete";
96036
96177
  const isRendering = job.status === "rendering";
96037
- return /* @__PURE__ */ jsx233(
96178
+ return /* @__PURE__ */ jsx235(
96038
96179
  "div",
96039
96180
  {
96040
96181
  onPointerEnter: () => setHovered(true),
@@ -96044,8 +96185,8 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96044
96185
  setConfirmingDelete(false);
96045
96186
  },
96046
96187
  className: "px-3 py-2.5 border-b border-border last:border-0 transition-colors duration-150 hover:bg-hover/30",
96047
- children: /* @__PURE__ */ jsxs184("div", { className: "flex items-center gap-2.5", children: [
96048
- /* @__PURE__ */ jsxs184(
96188
+ children: /* @__PURE__ */ jsxs187("div", { className: "flex items-center gap-2.5", children: [
96189
+ /* @__PURE__ */ jsxs187(
96049
96190
  "button",
96050
96191
  {
96051
96192
  type: "button",
@@ -96058,72 +96199,24 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96058
96199
  isComplete ? "cursor-pointer" : "cursor-default"
96059
96200
  ].join(" "),
96060
96201
  children: [
96061
- isComplete && /* @__PURE__ */ jsxs184(Fragment64, { children: [
96062
- hovered && /* @__PURE__ */ jsx233(
96063
- "video",
96064
- {
96065
- src: viewSrc,
96066
- autoPlay: true,
96067
- muted: true,
96068
- loop: true,
96069
- playsInline: true,
96070
- onCanPlay: () => setVideoReady(true),
96071
- className: "absolute inset-0 w-full h-full object-contain transition-opacity duration-150",
96072
- style: { opacity: videoReady ? 1 : 0 }
96073
- }
96074
- ),
96075
- /* @__PURE__ */ jsx233(
96076
- "div",
96077
- {
96078
- className: "absolute inset-0 transition-opacity duration-150",
96079
- style: { opacity: hovered && videoReady ? 0 : 1 },
96080
- children: /* @__PURE__ */ jsx233(VideoFrameThumbnail, { src: viewSrc })
96081
- }
96082
- )
96083
- ] }),
96084
- isRendering && /* @__PURE__ */ jsx233("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx233("div", { className: "w-2 h-2 rounded-full bg-accent animate-pulse motion-reduce:animate-none" }) }),
96085
- job.status === "failed" && /* @__PURE__ */ jsx233("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx233("div", { className: "w-2 h-2 rounded-full bg-danger-ink" }) }),
96086
- job.status === "cancelled" && /* @__PURE__ */ jsx233("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx233("div", { className: "w-2 h-2 rounded-full bg-text-5" }) })
96202
+ isComplete && /* @__PURE__ */ jsx235(
96203
+ RenderPreview,
96204
+ {
96205
+ filename: job.filename,
96206
+ src: viewSrc,
96207
+ hovered,
96208
+ ready: videoReady,
96209
+ onReady: () => setVideoReady(true)
96210
+ }
96211
+ ),
96212
+ isRendering && /* @__PURE__ */ jsx235("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx235("div", { className: "w-2 h-2 rounded-full bg-accent animate-pulse motion-reduce:animate-none" }) }),
96213
+ job.status === "failed" && /* @__PURE__ */ jsx235("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx235("div", { className: "w-2 h-2 rounded-full bg-danger-ink" }) }),
96214
+ job.status === "cancelled" && /* @__PURE__ */ jsx235("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx235("div", { className: "w-2 h-2 rounded-full bg-text-5" }) })
96087
96215
  ]
96088
96216
  }
96089
96217
  ),
96090
- /* @__PURE__ */ jsxs184("div", { className: "flex-1 min-w-0", children: [
96091
- /* @__PURE__ */ jsxs184("div", { className: "flex items-center gap-1.5", children: [
96092
- /* @__PURE__ */ jsx233("span", { className: "text-step-11 font-medium text-text-2 truncate", children: job.filename }),
96093
- job.durationMs && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-5 shrink-0", children: formatDuration2(job.durationMs) })
96094
- ] }),
96095
- isRendering && /* @__PURE__ */ jsxs184("div", { className: "mt-1", children: [
96096
- /* @__PURE__ */ jsxs184("div", { className: "flex items-center justify-between mb-0.5", children: [
96097
- /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-4", children: job.stage || "Rendering" }),
96098
- /* @__PURE__ */ jsxs184("span", { className: "text-step-9 font-mono text-accent-ink", children: [
96099
- job.progress,
96100
- "%"
96101
- ] })
96102
- ] }),
96103
- /* @__PURE__ */ jsx233(
96104
- "div",
96105
- {
96106
- className: "w-full h-1 bg-border rounded-full overflow-hidden",
96107
- role: "progressbar",
96108
- "aria-valuenow": job.progress,
96109
- "aria-valuemin": 0,
96110
- "aria-valuemax": 100,
96111
- "aria-label": `Render progress: ${job.progress}%`,
96112
- children: /* @__PURE__ */ jsx233(
96113
- "div",
96114
- {
96115
- className: "h-full bg-accent rounded-full transition-all duration-300",
96116
- style: { width: `${job.progress}%` }
96117
- }
96118
- )
96119
- }
96120
- )
96121
- ] }),
96122
- job.status === "failed" && job.error && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-danger-ink mt-0.5 block", children: job.error }),
96123
- job.status === "cancelled" && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-4 mt-0.5 block", children: "Cancelled" }),
96124
- !isRendering && /* @__PURE__ */ jsx233("span", { className: "text-step-9 text-text-5", children: formatTimeAgo(job.createdAt) })
96125
- ] }),
96126
- /* @__PURE__ */ jsx233("div", { className: "flex items-center gap-1.5 shrink-0", children: isRendering ? /* @__PURE__ */ jsx233(
96218
+ /* @__PURE__ */ jsx235(RenderQueueInfo, { job }),
96219
+ /* @__PURE__ */ jsx235("div", { className: "flex items-center gap-1.5 shrink-0", children: isRendering ? /* @__PURE__ */ jsx235(
96127
96220
  Button,
96128
96221
  {
96129
96222
  size: "sm",
@@ -96134,8 +96227,8 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96134
96227
  },
96135
96228
  children: "Cancel"
96136
96229
  }
96137
- ) : confirmingDelete ? /* @__PURE__ */ jsxs184(Fragment64, { children: [
96138
- /* @__PURE__ */ jsx233(
96230
+ ) : confirmingDelete ? /* @__PURE__ */ jsxs187(Fragment65, { children: [
96231
+ /* @__PURE__ */ jsx235(
96139
96232
  Button,
96140
96233
  {
96141
96234
  size: "sm",
@@ -96148,7 +96241,7 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96148
96241
  children: "Delete?"
96149
96242
  }
96150
96243
  ),
96151
- /* @__PURE__ */ jsx233(
96244
+ /* @__PURE__ */ jsx235(
96152
96245
  Button,
96153
96246
  {
96154
96247
  size: "sm",
@@ -96160,15 +96253,15 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96160
96253
  children: "Keep"
96161
96254
  }
96162
96255
  )
96163
- ] }) : /* @__PURE__ */ jsxs184(Fragment64, { children: [
96164
- /* @__PURE__ */ jsx233(Tooltip, { label: isComplete ? "Download" : "Available when the render finishes", children: /* @__PURE__ */ jsx233(
96256
+ ] }) : /* @__PURE__ */ jsxs187(Fragment65, { children: [
96257
+ /* @__PURE__ */ jsx235(Tooltip, { label: isComplete ? "Download" : "Available when the render finishes", children: /* @__PURE__ */ jsx235(
96165
96258
  IconButton,
96166
96259
  {
96167
96260
  size: "sm",
96168
96261
  onClick: handleDownload,
96169
96262
  disabled: !isComplete,
96170
96263
  "aria-label": `Download ${job.filename}`,
96171
- icon: /* @__PURE__ */ jsxs184(
96264
+ icon: /* @__PURE__ */ jsxs187(
96172
96265
  "svg",
96173
96266
  {
96174
96267
  width: "12",
@@ -96181,15 +96274,15 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96181
96274
  strokeLinejoin: "round",
96182
96275
  "aria-hidden": "true",
96183
96276
  children: [
96184
- /* @__PURE__ */ jsx233("path", { d: "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4" }),
96185
- /* @__PURE__ */ jsx233("polyline", { points: "7 10 12 15 17 10" }),
96186
- /* @__PURE__ */ jsx233("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
96277
+ /* @__PURE__ */ jsx235("path", { d: "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4" }),
96278
+ /* @__PURE__ */ jsx235("polyline", { points: "7 10 12 15 17 10" }),
96279
+ /* @__PURE__ */ jsx235("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
96187
96280
  ]
96188
96281
  }
96189
96282
  )
96190
96283
  }
96191
96284
  ) }),
96192
- /* @__PURE__ */ jsx233(Tooltip, { label: "Delete render file", children: /* @__PURE__ */ jsx233(
96285
+ /* @__PURE__ */ jsx235(Tooltip, { label: "Delete render file", children: /* @__PURE__ */ jsx235(
96193
96286
  IconButton,
96194
96287
  {
96195
96288
  size: "sm",
@@ -96198,7 +96291,7 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96198
96291
  setConfirmingDelete(true);
96199
96292
  },
96200
96293
  "aria-label": `Delete ${job.filename}`,
96201
- icon: /* @__PURE__ */ jsx233(
96294
+ icon: /* @__PURE__ */ jsx235(
96202
96295
  "svg",
96203
96296
  {
96204
96297
  width: "12",
@@ -96209,7 +96302,7 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96209
96302
  strokeWidth: "2",
96210
96303
  strokeLinecap: "round",
96211
96304
  "aria-hidden": "true",
96212
- children: /* @__PURE__ */ jsx233("path", { d: "M18 6L6 18M6 6l12 12" })
96305
+ children: /* @__PURE__ */ jsx235("path", { d: "M18 6L6 18M6 6l12 12" })
96213
96306
  }
96214
96307
  )
96215
96308
  }
@@ -96222,7 +96315,7 @@ var RenderQueueItem = memo56(function RenderQueueItem2({
96222
96315
 
96223
96316
  // src/components/renders/FfmpegRequiredNotice.tsx
96224
96317
  import { memo as memo57, useEffect as useEffect150, useRef as useRef182, useState as useState153 } from "react";
96225
- import { jsx as jsx234, jsxs as jsxs185 } from "react/jsx-runtime";
96318
+ import { jsx as jsx236, jsxs as jsxs188 } from "react/jsx-runtime";
96226
96319
  var DOWNLOAD_URL = "https://ffmpeg.org/download.html";
96227
96320
  var CUE_MS = 1600;
96228
96321
  var FOCUS_RING = "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-studio-accent";
@@ -96251,19 +96344,19 @@ var FfmpegRequiredNotice = memo57(function FfmpegRequiredNotice2({
96251
96344
  setCopied(true);
96252
96345
  window.setTimeout(() => setCopied(false), CUE_MS);
96253
96346
  };
96254
- return /* @__PURE__ */ jsxs185(
96347
+ return /* @__PURE__ */ jsxs188(
96255
96348
  "div",
96256
96349
  {
96257
96350
  role: "alert",
96258
96351
  className: "flex flex-col gap-2 rounded-xl border border-amber-500/30 bg-amber-500/10 p-2.5",
96259
96352
  children: [
96260
- /* @__PURE__ */ jsxs185("div", { className: "flex flex-col gap-0.5", children: [
96261
- /* @__PURE__ */ jsx234("span", { className: "text-[11px] font-semibold text-warning-ink", children: status.title ?? "FFmpeg not found" }),
96262
- /* @__PURE__ */ jsx234("span", { className: "text-[10px] leading-snug text-pretty text-panel-text-2", children: status.detail ?? "FFmpeg is required to encode video." })
96353
+ /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-0.5", children: [
96354
+ /* @__PURE__ */ jsx236("span", { className: "text-[11px] font-semibold text-warning-ink", children: status.title ?? "FFmpeg not found" }),
96355
+ /* @__PURE__ */ jsx236("span", { className: "text-[10px] leading-snug text-pretty text-panel-text-2", children: status.detail ?? "FFmpeg is required to encode video." })
96263
96356
  ] }),
96264
- status.command ? /* @__PURE__ */ jsxs185("div", { className: "flex items-center gap-1.5", children: [
96265
- /* @__PURE__ */ jsx234("code", { className: "flex-1 overflow-x-auto whitespace-nowrap rounded-xs bg-input px-2 py-1 text-[10px] text-panel-text-2", children: status.command }),
96266
- /* @__PURE__ */ jsx234(
96357
+ status.command ? /* @__PURE__ */ jsxs188("div", { className: "flex items-center gap-1.5", children: [
96358
+ /* @__PURE__ */ jsx236("code", { className: "flex-1 overflow-x-auto whitespace-nowrap rounded-xs bg-input px-2 py-1 text-[10px] text-panel-text-2", children: status.command }),
96359
+ /* @__PURE__ */ jsx236(
96267
96360
  "button",
96268
96361
  {
96269
96362
  type: "button",
@@ -96272,9 +96365,9 @@ var FfmpegRequiredNotice = memo57(function FfmpegRequiredNotice2({
96272
96365
  children: copied ? "Copied" : "Copy"
96273
96366
  }
96274
96367
  )
96275
- ] }) : status.hint && /* @__PURE__ */ jsx234("span", { className: "text-[10px] leading-snug text-pretty text-panel-text-2", children: status.hint }),
96276
- /* @__PURE__ */ jsxs185("div", { className: "flex items-center gap-3", children: [
96277
- /* @__PURE__ */ jsx234(
96368
+ ] }) : status.hint && /* @__PURE__ */ jsx236("span", { className: "text-[10px] leading-snug text-pretty text-panel-text-2", children: status.hint }),
96369
+ /* @__PURE__ */ jsxs188("div", { className: "flex items-center gap-3", children: [
96370
+ /* @__PURE__ */ jsx236(
96278
96371
  "button",
96279
96372
  {
96280
96373
  type: "button",
@@ -96284,7 +96377,7 @@ var FfmpegRequiredNotice = memo57(function FfmpegRequiredNotice2({
96284
96377
  children: checking ? "Checking\u2026" : "Recheck"
96285
96378
  }
96286
96379
  ),
96287
- /* @__PURE__ */ jsx234(
96380
+ /* @__PURE__ */ jsx236(
96288
96381
  "a",
96289
96382
  {
96290
96383
  href: DOWNLOAD_URL,
@@ -96294,7 +96387,7 @@ var FfmpegRequiredNotice = memo57(function FfmpegRequiredNotice2({
96294
96387
  children: "Other install options"
96295
96388
  }
96296
96389
  ),
96297
- /* @__PURE__ */ jsx234(
96390
+ /* @__PURE__ */ jsx236(
96298
96391
  "span",
96299
96392
  {
96300
96393
  "aria-live": "polite",
@@ -96309,7 +96402,7 @@ var FfmpegRequiredNotice = memo57(function FfmpegRequiredNotice2({
96309
96402
  });
96310
96403
 
96311
96404
  // src/components/renders/GpuEncodingToggle.tsx
96312
- import { jsx as jsx235, jsxs as jsxs186 } from "react/jsx-runtime";
96405
+ import { jsx as jsx237, jsxs as jsxs189 } from "react/jsx-runtime";
96313
96406
  function GpuEncodingToggle({
96314
96407
  format,
96315
96408
  checked,
@@ -96317,12 +96410,12 @@ function GpuEncodingToggle({
96317
96410
  onToggle
96318
96411
  }) {
96319
96412
  if (format !== "mp4") return null;
96320
- return /* @__PURE__ */ jsxs186(
96413
+ return /* @__PURE__ */ jsxs189(
96321
96414
  "label",
96322
96415
  {
96323
96416
  className: `flex items-center gap-2 text-step-10 text-text-4 ${disabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer"}`,
96324
96417
  children: [
96325
- /* @__PURE__ */ jsx235(
96418
+ /* @__PURE__ */ jsx237(
96326
96419
  "input",
96327
96420
  {
96328
96421
  type: "checkbox",
@@ -96332,14 +96425,50 @@ function GpuEncodingToggle({
96332
96425
  className: "accent-studio-accent"
96333
96426
  }
96334
96427
  ),
96335
- /* @__PURE__ */ jsx235("span", { children: "Use GPU encoding" })
96428
+ /* @__PURE__ */ jsx237("span", { children: "Use GPU encoding" })
96336
96429
  ]
96337
96430
  }
96338
96431
  );
96339
96432
  }
96340
96433
 
96434
+ // src/components/renders/GifLoopInput.tsx
96435
+ import { jsx as jsx238, jsxs as jsxs190 } from "react/jsx-runtime";
96436
+ function isInvalidGifLoop(format, value) {
96437
+ return format === "gif" && !isValidGifLoop(value);
96438
+ }
96439
+ function isValidGifLoop(value) {
96440
+ const count = Number(value);
96441
+ return value.trim() !== "" && Number.isInteger(count) && count >= 0 && count <= 65535;
96442
+ }
96443
+ function GifLoopInput({
96444
+ format,
96445
+ value,
96446
+ disabled,
96447
+ invalid,
96448
+ onChange
96449
+ }) {
96450
+ if (format !== "gif") return null;
96451
+ return /* @__PURE__ */ jsxs190("label", { className: "flex flex-col gap-1 text-step-10 text-text-4", children: [
96452
+ "GIF loop count (0 = forever, max 65535)",
96453
+ /* @__PURE__ */ jsx238(
96454
+ "input",
96455
+ {
96456
+ type: "number",
96457
+ min: 0,
96458
+ max: 65535,
96459
+ step: 1,
96460
+ value,
96461
+ disabled,
96462
+ "aria-invalid": invalid,
96463
+ onChange: (event) => onChange(event.target.value),
96464
+ className: "rounded-sm bg-input border border-border-input px-2 py-1 text-text-1"
96465
+ }
96466
+ )
96467
+ ] });
96468
+ }
96469
+
96341
96470
  // src/components/renders/RenderQueue.tsx
96342
- import { jsx as jsx236, jsxs as jsxs187 } from "react/jsx-runtime";
96471
+ import { jsx as jsx239, jsxs as jsxs191 } from "react/jsx-runtime";
96343
96472
  var SCALE_OPTION_ORDER = ["auto", "1080p", "4k"];
96344
96473
  var SCALE_LABEL = {
96345
96474
  auto: "Auto",
@@ -96379,18 +96508,7 @@ function scaleOptionLabel(scale, dims) {
96379
96508
  }
96380
96509
  return base2;
96381
96510
  }
96382
- var FORMAT_INFO = {
96383
- mp4: { label: "MP4", desc: "Best for general use. Smallest file, universal playback." },
96384
- mov: {
96385
- label: "MOV (ProRes 4444)",
96386
- desc: "Transparent video. Works in Final Cut Pro, DaVinci Resolve, and most video editors. Large files."
96387
- },
96388
- webm: {
96389
- label: "WebM (VP9)",
96390
- desc: "Transparent video for web. Smaller than MOV but limited editor support."
96391
- }
96392
- };
96393
- var FORMAT_PANEL_SIZE = { width: 208, height: 150 };
96511
+ var FORMAT_PANEL_SIZE = { width: 208, height: 210 };
96394
96512
  function FormatInfoTooltip({ format }) {
96395
96513
  const [open, setOpen] = useState154(false);
96396
96514
  const [position, setPosition] = useState154(null);
@@ -96427,8 +96545,8 @@ function FormatInfoTooltip({ format }) {
96427
96545
  return () => document.removeEventListener("keydown", onKeyDown);
96428
96546
  }, [open]);
96429
96547
  const info = FORMAT_INFO[format];
96430
- return /* @__PURE__ */ jsxs187("div", { ref: triggerRef, className: "relative", onPointerEnter: show, onPointerLeave: hide, children: [
96431
- /* @__PURE__ */ jsx236(
96548
+ return /* @__PURE__ */ jsxs191("div", { ref: triggerRef, className: "relative", onPointerEnter: show, onPointerLeave: hide, children: [
96549
+ /* @__PURE__ */ jsx239(
96432
96550
  "button",
96433
96551
  {
96434
96552
  type: "button",
@@ -96439,7 +96557,7 @@ function FormatInfoTooltip({ format }) {
96439
96557
  onBlur: hide,
96440
96558
  onClick: () => setOpen((prev) => !prev),
96441
96559
  className: "flex items-center justify-center p-0.5 -m-0.5 rounded-sm text-text-5 hover:text-text-3 transition-colors cursor-help outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-accent",
96442
- children: /* @__PURE__ */ jsxs187(
96560
+ children: /* @__PURE__ */ jsxs191(
96443
96561
  "svg",
96444
96562
  {
96445
96563
  width: "12",
@@ -96452,16 +96570,16 @@ function FormatInfoTooltip({ format }) {
96452
96570
  strokeLinejoin: "round",
96453
96571
  "aria-hidden": "true",
96454
96572
  children: [
96455
- /* @__PURE__ */ jsx236("circle", { cx: "12", cy: "12", r: "10" }),
96456
- /* @__PURE__ */ jsx236("path", { d: "M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3" }),
96457
- /* @__PURE__ */ jsx236("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
96573
+ /* @__PURE__ */ jsx239("circle", { cx: "12", cy: "12", r: "10" }),
96574
+ /* @__PURE__ */ jsx239("path", { d: "M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3" }),
96575
+ /* @__PURE__ */ jsx239("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
96458
96576
  ]
96459
96577
  }
96460
96578
  )
96461
96579
  }
96462
96580
  ),
96463
96581
  open && createPortal15(
96464
- /* @__PURE__ */ jsxs187(
96582
+ /* @__PURE__ */ jsxs191(
96465
96583
  "div",
96466
96584
  {
96467
96585
  id: panelId,
@@ -96471,10 +96589,10 @@ function FormatInfoTooltip({ format }) {
96471
96589
  className: "fixed w-52 p-2 rounded-sm bg-input border border-border-input shadow-menu z-200",
96472
96590
  style: { left: position?.left ?? -9999, top: position?.top ?? -9999 },
96473
96591
  children: [
96474
- /* @__PURE__ */ jsx236("p", { className: "text-step-10 font-semibold text-text-1 mb-0.5", children: info.label }),
96475
- /* @__PURE__ */ jsx236("p", { className: "text-step-9 text-text-3 leading-tight", children: info.desc }),
96476
- /* @__PURE__ */ jsx236("div", { className: "mt-1.5 pt-1.5 border-t border-border", children: ["mp4", "mov", "webm"].filter((f) => f !== format).map((f) => /* @__PURE__ */ jsxs187("p", { className: "text-step-9 text-text-4 leading-relaxed", children: [
96477
- /* @__PURE__ */ jsx236("span", { className: "text-text-3 font-medium", children: FORMAT_INFO[f].label }),
96592
+ /* @__PURE__ */ jsx239("p", { className: "text-step-10 font-semibold text-text-1 mb-0.5", children: info.label }),
96593
+ /* @__PURE__ */ jsx239("p", { className: "text-step-9 text-text-3 leading-tight", children: info.desc }),
96594
+ /* @__PURE__ */ jsx239("div", { className: "mt-1.5 pt-1.5 border-t border-border", children: ["mp4", "mov", "webm", "gif"].filter((f) => f !== format).map((f) => /* @__PURE__ */ jsxs191("p", { className: "text-step-9 text-text-4 leading-relaxed", children: [
96595
+ /* @__PURE__ */ jsx239("span", { className: "text-text-3 font-medium", children: FORMAT_INFO[f].label }),
96478
96596
  ": ",
96479
96597
  FORMAT_INFO[f].desc
96480
96598
  ] }, f)) })
@@ -96488,22 +96606,14 @@ function FormatInfoTooltip({ format }) {
96488
96606
  var FORMAT_OPTIONS = [
96489
96607
  { value: "mp4", label: "MP4" },
96490
96608
  { value: "mov", label: "MOV (ProRes)" },
96491
- { value: "webm", label: "WebM" }
96609
+ { value: "webm", label: "WebM" },
96610
+ { value: "gif", label: "GIF" }
96492
96611
  ];
96493
96612
  var QUALITY_OPTIONS = [
96494
96613
  { value: "draft", label: "Draft" },
96495
96614
  { value: "standard", label: "Standard" },
96496
96615
  { value: "high", label: "High Quality" }
96497
96616
  ];
96498
- var FPS_OPTIONS = [
96499
- { value: "24", label: "24 fps" },
96500
- { value: "30", label: "30 fps" },
96501
- { value: "60", label: "60 fps" }
96502
- ];
96503
- function formatEta(ms) {
96504
- const s = Math.round(ms / 1e3);
96505
- return s < 60 ? `${s}s` : `${Math.floor(s / 60)}m ${s % 60}s`;
96506
- }
96507
96617
  function FormatExportButton({
96508
96618
  onStartRender,
96509
96619
  isRendering,
@@ -96517,12 +96627,17 @@ function FormatExportButton({
96517
96627
  const [format, setFormat] = useState154(persisted.format);
96518
96628
  const [quality, setQuality] = useState154(persisted.quality);
96519
96629
  const [resolution, setResolution] = useState154("auto");
96520
- const [fps, setFps] = useState154(persisted.fps);
96630
+ const [requestedFps, setFps] = useState154(persisted.fps);
96631
+ const fps = resolveRenderFps(format, requestedFps);
96521
96632
  const [gpu, setGpu] = useState154(persisted.gpu);
96633
+ const [gifLoop, setGifLoop] = useState154("0");
96634
+ const loopCount = Number(gifLoop);
96635
+ const invalidGifLoop = isInvalidGifLoop(format, gifLoop);
96522
96636
  const missingFfmpeg = ffmpeg && !ffmpeg.ok ? ffmpeg : null;
96637
+ const exportBlocked = isRenderExportBlocked(isRendering, missingFfmpeg !== null, invalidGifLoop);
96523
96638
  const showQuality = format !== "mov";
96524
- return /* @__PURE__ */ jsxs187("div", { className: "flex flex-col gap-3", children: [
96525
- missingFfmpeg && /* @__PURE__ */ jsx236(
96639
+ return /* @__PURE__ */ jsxs191("div", { className: "flex flex-col gap-3", children: [
96640
+ missingFfmpeg && /* @__PURE__ */ jsx239(
96526
96641
  FfmpegRequiredNotice,
96527
96642
  {
96528
96643
  status: missingFfmpeg,
@@ -96530,13 +96645,13 @@ function FormatExportButton({
96530
96645
  onRecheck: onRecheckFfmpeg
96531
96646
  }
96532
96647
  ),
96533
- /* @__PURE__ */ jsxs187("div", { className: "grid grid-cols-2 gap-2", children: [
96534
- /* @__PURE__ */ jsxs187("div", { className: "flex flex-col gap-1", children: [
96535
- /* @__PURE__ */ jsxs187("div", { className: "flex items-center gap-1", children: [
96536
- /* @__PURE__ */ jsx236("span", { className: "text-step-10 text-text-4", children: "Format" }),
96537
- /* @__PURE__ */ jsx236(FormatInfoTooltip, { format })
96648
+ /* @__PURE__ */ jsxs191("div", { className: "grid grid-cols-2 gap-2", children: [
96649
+ /* @__PURE__ */ jsxs191("div", { className: "flex flex-col gap-1", children: [
96650
+ /* @__PURE__ */ jsxs191("div", { className: "flex items-center gap-1", children: [
96651
+ /* @__PURE__ */ jsx239("span", { className: "text-step-10 text-text-4", children: "Format" }),
96652
+ /* @__PURE__ */ jsx239(FormatInfoTooltip, { format })
96538
96653
  ] }),
96539
- /* @__PURE__ */ jsx236(
96654
+ /* @__PURE__ */ jsx239(
96540
96655
  Select,
96541
96656
  {
96542
96657
  label: "Format",
@@ -96544,16 +96659,16 @@ function FormatExportButton({
96544
96659
  options: FORMAT_OPTIONS,
96545
96660
  disabled: isRendering,
96546
96661
  onCommit: (next) => {
96547
- const v = next;
96662
+ const v = resolveRenderFormat(next);
96548
96663
  setFormat(v);
96549
- persistRenderSettings(v, quality, fps);
96664
+ persistRenderSettings(v, quality, resolveRenderFps(v, requestedFps));
96550
96665
  }
96551
96666
  }
96552
96667
  )
96553
96668
  ] }),
96554
- /* @__PURE__ */ jsxs187("div", { className: "flex flex-col gap-1", children: [
96555
- /* @__PURE__ */ jsx236("span", { className: "text-step-10 text-text-4", children: "Resolution" }),
96556
- /* @__PURE__ */ jsx236(
96669
+ /* @__PURE__ */ jsxs191("div", { className: "flex flex-col gap-1", children: [
96670
+ /* @__PURE__ */ jsx239("span", { className: "text-step-10 text-text-4", children: "Resolution" }),
96671
+ /* @__PURE__ */ jsx239(
96557
96672
  Select,
96558
96673
  {
96559
96674
  label: "Resolution",
@@ -96568,14 +96683,14 @@ function FormatExportButton({
96568
96683
  }
96569
96684
  )
96570
96685
  ] }),
96571
- /* @__PURE__ */ jsxs187("div", { className: "flex flex-col gap-1", children: [
96572
- /* @__PURE__ */ jsx236("span", { className: "text-step-10 text-text-4", children: "Frame rate" }),
96573
- /* @__PURE__ */ jsx236(
96686
+ /* @__PURE__ */ jsxs191("div", { className: "flex flex-col gap-1", children: [
96687
+ /* @__PURE__ */ jsx239("span", { className: "text-step-10 text-text-4", children: "Frame rate" }),
96688
+ /* @__PURE__ */ jsx239(
96574
96689
  Select,
96575
96690
  {
96576
96691
  label: "Frame rate",
96577
96692
  value: String(fps),
96578
- options: FPS_OPTIONS,
96693
+ options: getRenderFpsOptions(format),
96579
96694
  disabled: isRendering,
96580
96695
  onCommit: (next) => {
96581
96696
  const v = Number(next);
@@ -96585,9 +96700,9 @@ function FormatExportButton({
96585
96700
  }
96586
96701
  )
96587
96702
  ] }),
96588
- showQuality && /* @__PURE__ */ jsxs187("div", { className: "flex flex-col gap-1", children: [
96589
- /* @__PURE__ */ jsx236("span", { className: "text-step-10 text-text-4", children: "Quality" }),
96590
- /* @__PURE__ */ jsx236(
96703
+ showQuality && /* @__PURE__ */ jsxs191("div", { className: "flex flex-col gap-1", children: [
96704
+ /* @__PURE__ */ jsx239("span", { className: "text-step-10 text-text-4", children: "Quality" }),
96705
+ /* @__PURE__ */ jsx239(
96591
96706
  Select,
96592
96707
  {
96593
96708
  label: "Quality",
@@ -96603,7 +96718,17 @@ function FormatExportButton({
96603
96718
  )
96604
96719
  ] })
96605
96720
  ] }),
96606
- /* @__PURE__ */ jsx236(
96721
+ /* @__PURE__ */ jsx239(
96722
+ GifLoopInput,
96723
+ {
96724
+ format,
96725
+ value: gifLoop,
96726
+ disabled: isRendering,
96727
+ invalid: invalidGifLoop,
96728
+ onChange: setGifLoop
96729
+ }
96730
+ ),
96731
+ /* @__PURE__ */ jsx239(
96607
96732
  GpuEncodingToggle,
96608
96733
  {
96609
96734
  format,
@@ -96615,29 +96740,33 @@ function FormatExportButton({
96615
96740
  }
96616
96741
  }
96617
96742
  ),
96618
- /* @__PURE__ */ jsx236(
96743
+ /* @__PURE__ */ jsx239(
96619
96744
  Button,
96620
96745
  {
96621
96746
  variant: "primary",
96622
96747
  size: "md",
96623
96748
  "data-testid": "renders-export",
96624
96749
  loading: isRendering,
96625
- disabled: missingFfmpeg !== null,
96750
+ disabled: exportBlocked,
96626
96751
  title: missingFfmpeg ? "Install FFmpeg to export. See the note above." : void 0,
96627
96752
  onClick: () => {
96628
- if (isRendering || missingFfmpeg) return;
96753
+ if (exportBlocked) return;
96629
96754
  const outputResolution = resolveResolution(resolution, compositionDimensions);
96630
96755
  trackStudioEvent("render_start", { format, quality, resolution: outputResolution, fps });
96631
- void onStartRender(format, quality, outputResolution, fps, gpu);
96756
+ void startConfiguredRender(onStartRender, {
96757
+ format,
96758
+ quality,
96759
+ resolution: outputResolution,
96760
+ fps,
96761
+ gpu,
96762
+ gifLoop: loopCount
96763
+ });
96632
96764
  },
96633
96765
  className: "w-full",
96634
96766
  children: isRendering ? "Rendering\u2026" : "Export"
96635
96767
  }
96636
96768
  ),
96637
- lastRenderDurationMs !== void 0 && !isRendering && /* @__PURE__ */ jsxs187("p", { className: "text-step-9 text-text-5 text-center -mt-1.5", children: [
96638
- "Last render took ",
96639
- formatEta(lastRenderDurationMs)
96640
- ] })
96769
+ /* @__PURE__ */ jsx239(RenderDurationNote, { durationMs: lastRenderDurationMs, isRendering })
96641
96770
  ] });
96642
96771
  }
96643
96772
  var RenderQueue = memo58(function RenderQueue2({
@@ -96665,8 +96794,8 @@ var RenderQueue = memo58(function RenderQueue2({
96665
96794
  }, [jobs.length]);
96666
96795
  const completedCount = jobs.filter((j) => j.status !== "rendering").length;
96667
96796
  const lastRenderDurationMs = [...jobs].reverse().find((j) => j.status === "complete" && j.durationMs !== void 0)?.durationMs;
96668
- return /* @__PURE__ */ jsxs187("div", { className: "flex flex-col h-full", children: [
96669
- /* @__PURE__ */ jsx236("div", { className: "px-3 py-3 border-b border-border shrink-0", children: /* @__PURE__ */ jsx236(
96797
+ return /* @__PURE__ */ jsxs191("div", { className: "flex flex-col h-full", children: [
96798
+ /* @__PURE__ */ jsx239("div", { className: "px-3 py-3 border-b border-border shrink-0", children: /* @__PURE__ */ jsx239(
96670
96799
  FormatExportButton,
96671
96800
  {
96672
96801
  onStartRender,
@@ -96678,21 +96807,21 @@ var RenderQueue = memo58(function RenderQueue2({
96678
96807
  onRecheckFfmpeg
96679
96808
  }
96680
96809
  ) }),
96681
- actionError && /* @__PURE__ */ jsxs187(
96810
+ actionError && /* @__PURE__ */ jsxs191(
96682
96811
  "div",
96683
96812
  {
96684
96813
  role: "alert",
96685
96814
  className: "flex items-start justify-between gap-2 px-3 py-2 border-b border-border bg-danger/10",
96686
96815
  children: [
96687
- /* @__PURE__ */ jsx236("span", { className: "text-step-10 text-danger-ink", children: actionError }),
96688
- onDismissActionError && /* @__PURE__ */ jsx236(
96816
+ /* @__PURE__ */ jsx239("span", { className: "text-step-10 text-danger-ink", children: actionError }),
96817
+ onDismissActionError && /* @__PURE__ */ jsx239(
96689
96818
  IconButton,
96690
96819
  {
96691
96820
  size: "sm",
96692
96821
  onClick: onDismissActionError,
96693
96822
  "aria-label": "Dismiss error",
96694
96823
  className: "shrink-0",
96695
- icon: /* @__PURE__ */ jsx236(
96824
+ icon: /* @__PURE__ */ jsx239(
96696
96825
  "svg",
96697
96826
  {
96698
96827
  width: "10",
@@ -96703,7 +96832,7 @@ var RenderQueue = memo58(function RenderQueue2({
96703
96832
  strokeWidth: "2",
96704
96833
  strokeLinecap: "round",
96705
96834
  "aria-hidden": "true",
96706
- children: /* @__PURE__ */ jsx236("path", { d: "M18 6L6 18M6 6l12 12" })
96835
+ children: /* @__PURE__ */ jsx239("path", { d: "M18 6L6 18M6 6l12 12" })
96707
96836
  }
96708
96837
  )
96709
96838
  }
@@ -96711,11 +96840,11 @@ var RenderQueue = memo58(function RenderQueue2({
96711
96840
  ]
96712
96841
  }
96713
96842
  ),
96714
- /* @__PURE__ */ jsx236("div", { ref: listRef, className: "flex-1 overflow-y-auto", children: loadError && jobs.length === 0 ? /* @__PURE__ */ jsxs187("div", { className: "flex flex-col items-center justify-center h-full px-4 gap-2", role: "alert", children: [
96715
- /* @__PURE__ */ jsx236("p", { className: "text-step-10 text-danger-ink text-center", children: loadError }),
96716
- onRetryLoad && /* @__PURE__ */ jsx236(Button, { size: "sm", variant: "secondary", onClick: onRetryLoad, children: "Retry" })
96717
- ] }) : jobs.length === 0 ? /* @__PURE__ */ jsxs187("div", { className: "flex flex-col items-center justify-center h-full px-4 gap-2", children: [
96718
- /* @__PURE__ */ jsxs187(
96843
+ /* @__PURE__ */ jsx239("div", { ref: listRef, className: "flex-1 overflow-y-auto", children: loadError && jobs.length === 0 ? /* @__PURE__ */ jsxs191("div", { className: "flex flex-col items-center justify-center h-full px-4 gap-2", role: "alert", children: [
96844
+ /* @__PURE__ */ jsx239("p", { className: "text-step-10 text-danger-ink text-center", children: loadError }),
96845
+ onRetryLoad && /* @__PURE__ */ jsx239(Button, { size: "sm", variant: "secondary", onClick: onRetryLoad, children: "Retry" })
96846
+ ] }) : jobs.length === 0 ? /* @__PURE__ */ jsxs191("div", { className: "flex flex-col items-center justify-center h-full px-4 gap-2", children: [
96847
+ /* @__PURE__ */ jsxs191(
96719
96848
  "svg",
96720
96849
  {
96721
96850
  width: "20",
@@ -96726,7 +96855,7 @@ var RenderQueue = memo58(function RenderQueue2({
96726
96855
  strokeWidth: "1.5",
96727
96856
  className: "text-text-5",
96728
96857
  children: [
96729
- /* @__PURE__ */ jsx236(
96858
+ /* @__PURE__ */ jsx239(
96730
96859
  "rect",
96731
96860
  {
96732
96861
  x: "2",
@@ -96739,7 +96868,7 @@ var RenderQueue = memo58(function RenderQueue2({
96739
96868
  strokeLinejoin: "round"
96740
96869
  }
96741
96870
  ),
96742
- /* @__PURE__ */ jsx236(
96871
+ /* @__PURE__ */ jsx239(
96743
96872
  "path",
96744
96873
  {
96745
96874
  d: "M7 2v20M17 2v20M2 12h20M2 7h5M2 17h5M17 17h5M17 7h5",
@@ -96750,17 +96879,17 @@ var RenderQueue = memo58(function RenderQueue2({
96750
96879
  ]
96751
96880
  }
96752
96881
  ),
96753
- /* @__PURE__ */ jsx236("p", { className: "text-step-10 text-text-5 text-center", children: "No renders yet" })
96754
- ] }) : /* @__PURE__ */ jsxs187("div", { children: [
96755
- completedCount > 0 && /* @__PURE__ */ jsxs187("div", { className: "flex items-center justify-between px-3 py-1.5 border-b border-border", children: [
96756
- /* @__PURE__ */ jsxs187("span", { className: "text-step-10 text-text-4", children: [
96882
+ /* @__PURE__ */ jsx239("p", { className: "text-step-10 text-text-5 text-center", children: "No renders yet" })
96883
+ ] }) : /* @__PURE__ */ jsxs191("div", { children: [
96884
+ completedCount > 0 && /* @__PURE__ */ jsxs191("div", { className: "flex items-center justify-between px-3 py-1.5 border-b border-border", children: [
96885
+ /* @__PURE__ */ jsxs191("span", { className: "text-step-10 text-text-4", children: [
96757
96886
  jobs.length,
96758
96887
  " render",
96759
96888
  jobs.length === 1 ? "" : "s"
96760
96889
  ] }),
96761
- /* @__PURE__ */ jsx236(Tooltip, { label: "Hide finished renders from this list (files stay on disk)", children: /* @__PURE__ */ jsx236(Button, { size: "sm", variant: "ghost", onClick: onClearCompleted, children: "Hide finished" }) })
96890
+ /* @__PURE__ */ jsx239(Tooltip, { label: "Hide finished renders from this list (files stay on disk)", children: /* @__PURE__ */ jsx239(Button, { size: "sm", variant: "ghost", onClick: onClearCompleted, children: "Hide finished" }) })
96762
96891
  ] }),
96763
- jobs.map((job) => /* @__PURE__ */ jsx236(
96892
+ jobs.map((job) => /* @__PURE__ */ jsx239(
96764
96893
  RenderQueueItem,
96765
96894
  {
96766
96895
  job,
@@ -96775,10 +96904,10 @@ var RenderQueue = memo58(function RenderQueue2({
96775
96904
  });
96776
96905
 
96777
96906
  // src/components/renders/RenderQueuePanel.tsx
96778
- import { jsx as jsx237 } from "react/jsx-runtime";
96907
+ import { jsx as jsx240 } from "react/jsx-runtime";
96779
96908
  var RenderQueuePanel = memo59(function RenderQueuePanel2() {
96780
96909
  const { projectId, compositionDimensions, waitForPendingDomEditSaves, renderQueue } = useStudioShellContext();
96781
- return /* @__PURE__ */ jsx237(
96910
+ return /* @__PURE__ */ jsx240(
96782
96911
  RenderQueue,
96783
96912
  {
96784
96913
  jobs: renderQueue.jobs,
@@ -96793,7 +96922,7 @@ var RenderQueuePanel = memo59(function RenderQueuePanel2() {
96793
96922
  ffmpeg: renderQueue.ffmpeg,
96794
96923
  ffmpegChecking: renderQueue.ffmpegChecking,
96795
96924
  onRecheckFfmpeg: renderQueue.recheckFfmpeg,
96796
- onStartRender: async (format, quality, resolution, fps, gpu) => {
96925
+ onStartRender: async (format, quality, resolution, fps, gpu, gifLoop) => {
96797
96926
  await waitForPendingDomEditSaves();
96798
96927
  await renderQueue.startRender({
96799
96928
  fps,
@@ -96801,6 +96930,7 @@ var RenderQueuePanel = memo59(function RenderQueuePanel2() {
96801
96930
  format,
96802
96931
  resolution,
96803
96932
  gpu,
96933
+ gifLoop,
96804
96934
  // Render what the user is previewing: active variable overrides
96805
96935
  // from the Variables panel ride along (undefined = defaults).
96806
96936
  variables: usePreviewVariablesStore.getState().values ?? void 0
@@ -96818,13 +96948,13 @@ import { parseSlideshowManifest } from "@hyperframes/core/slideshow";
96818
96948
 
96819
96949
  // src/components/panels/SlideshowSubPanels.tsx
96820
96950
  import { useState as useState155, useCallback as useCallback179, useId as useId5 } from "react";
96821
- import { jsx as jsx238, jsxs as jsxs188 } from "react/jsx-runtime";
96951
+ import { jsx as jsx241, jsxs as jsxs192 } from "react/jsx-runtime";
96822
96952
  function SectionHeader({
96823
96953
  children,
96824
96954
  expanded,
96825
96955
  onToggle
96826
96956
  }) {
96827
- return /* @__PURE__ */ jsxs188(
96957
+ return /* @__PURE__ */ jsxs192(
96828
96958
  "button",
96829
96959
  {
96830
96960
  type: "button",
@@ -96832,8 +96962,8 @@ function SectionHeader({
96832
96962
  onClick: onToggle,
96833
96963
  "aria-expanded": expanded,
96834
96964
  children: [
96835
- /* @__PURE__ */ jsx238("span", { children }),
96836
- /* @__PURE__ */ jsx238("span", { className: "text-[10px] text-neutral-600", children: expanded ? "\u25B2" : "\u25BC" })
96965
+ /* @__PURE__ */ jsx241("span", { children }),
96966
+ /* @__PURE__ */ jsx241("span", { className: "text-[10px] text-neutral-600", children: expanded ? "\u25B2" : "\u25BC" })
96837
96967
  ]
96838
96968
  }
96839
96969
  );
@@ -96851,12 +96981,12 @@ function SlideList({
96851
96981
  const orderedSlideScenes = slides.map((sl) => sceneById.get(sl.sceneId)).filter((s) => s !== void 0);
96852
96982
  const nonSlideScenes = scenes.filter((sc) => !slideIds.has(sc.id));
96853
96983
  const rows = [...orderedSlideScenes, ...nonSlideScenes];
96854
- return /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-px", children: [
96984
+ return /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-px", children: [
96855
96985
  rows.map((scene) => {
96856
96986
  const isSlide = slideIds.has(scene.id);
96857
96987
  const isSelected2 = selectedSceneId === scene.id;
96858
96988
  const slideIndex = slides.findIndex((s) => s.sceneId === scene.id);
96859
- return /* @__PURE__ */ jsxs188(
96989
+ return /* @__PURE__ */ jsxs192(
96860
96990
  "div",
96861
96991
  {
96862
96992
  role: "button",
@@ -96871,7 +97001,7 @@ function SlideList({
96871
97001
  }
96872
97002
  },
96873
97003
  children: [
96874
- /* @__PURE__ */ jsx238(
97004
+ /* @__PURE__ */ jsx241(
96875
97005
  "input",
96876
97006
  {
96877
97007
  type: "checkbox",
@@ -96882,9 +97012,9 @@ function SlideList({
96882
97012
  className: "accent-studio-accent shrink-0"
96883
97013
  }
96884
97014
  ),
96885
- /* @__PURE__ */ jsx238("span", { className: "flex-1 truncate", children: scene.label || scene.id }),
96886
- isSlide && /* @__PURE__ */ jsxs188("span", { className: "flex gap-0.5 shrink-0", children: [
96887
- /* @__PURE__ */ jsx238(
97015
+ /* @__PURE__ */ jsx241("span", { className: "flex-1 truncate", children: scene.label || scene.id }),
97016
+ isSlide && /* @__PURE__ */ jsxs192("span", { className: "flex gap-0.5 shrink-0", children: [
97017
+ /* @__PURE__ */ jsx241(
96888
97018
  "button",
96889
97019
  {
96890
97020
  type: "button",
@@ -96899,7 +97029,7 @@ function SlideList({
96899
97029
  children: "\u25B2"
96900
97030
  }
96901
97031
  ),
96902
- /* @__PURE__ */ jsx238(
97032
+ /* @__PURE__ */ jsx241(
96903
97033
  "button",
96904
97034
  {
96905
97035
  type: "button",
@@ -96920,7 +97050,7 @@ function SlideList({
96920
97050
  scene.id
96921
97051
  );
96922
97052
  }),
96923
- scenes.length === 0 && /* @__PURE__ */ jsx238("p", { className: "px-3 py-2 text-[11px] text-neutral-500 italic", children: "No scenes found" })
97053
+ scenes.length === 0 && /* @__PURE__ */ jsx241("p", { className: "px-3 py-2 text-[11px] text-neutral-500 italic", children: "No scenes found" })
96924
97054
  ] });
96925
97055
  }
96926
97056
  function SlideInspector({
@@ -96932,14 +97062,14 @@ function SlideInspector({
96932
97062
  onRemoveFragment
96933
97063
  }) {
96934
97064
  const fragments = slide?.fragments ?? [];
96935
- return /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-3 px-3 py-2", children: [
96936
- /* @__PURE__ */ jsxs188("p", { className: "text-[10px] text-neutral-500 font-medium uppercase tracking-wide truncate", children: [
97065
+ return /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-3 px-3 py-2", children: [
97066
+ /* @__PURE__ */ jsxs192("p", { className: "text-[10px] text-neutral-500 font-medium uppercase tracking-wide truncate", children: [
96937
97067
  "Scene: ",
96938
97068
  sceneId
96939
97069
  ] }),
96940
- /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-1", children: [
96941
- /* @__PURE__ */ jsx238("label", { className: "text-[11px] text-neutral-400", children: "Notes" }),
96942
- /* @__PURE__ */ jsx238(
97070
+ /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-1", children: [
97071
+ /* @__PURE__ */ jsx241("label", { className: "text-[11px] text-neutral-400", children: "Notes" }),
97072
+ /* @__PURE__ */ jsx241(
96943
97073
  "textarea",
96944
97074
  {
96945
97075
  className: "bg-neutral-800 border border-neutral-700 rounded-sm px-2 py-1.5 text-[11px] text-text-0 resize-none placeholder-neutral-600 focus:border-studio-accent/60 focus:outline-hidden",
@@ -96950,10 +97080,10 @@ function SlideInspector({
96950
97080
  }
96951
97081
  )
96952
97082
  ] }),
96953
- /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-1.5", children: [
96954
- /* @__PURE__ */ jsxs188("div", { className: "flex items-center justify-between", children: [
96955
- /* @__PURE__ */ jsx238("span", { className: "text-[11px] text-neutral-400", children: "Fragment hold-points" }),
96956
- /* @__PURE__ */ jsxs188(
97083
+ /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-1.5", children: [
97084
+ /* @__PURE__ */ jsxs192("div", { className: "flex items-center justify-between", children: [
97085
+ /* @__PURE__ */ jsx241("span", { className: "text-[11px] text-neutral-400", children: "Fragment hold-points" }),
97086
+ /* @__PURE__ */ jsxs192(
96957
97087
  "button",
96958
97088
  {
96959
97089
  type: "button",
@@ -96968,14 +97098,14 @@ function SlideInspector({
96968
97098
  }
96969
97099
  )
96970
97100
  ] }),
96971
- fragments.length > 0 ? /* @__PURE__ */ jsx238("div", { className: "flex flex-wrap gap-1", children: fragments.map((t2, i) => /* @__PURE__ */ jsxs188(
97101
+ fragments.length > 0 ? /* @__PURE__ */ jsx241("div", { className: "flex flex-wrap gap-1", children: fragments.map((t2, i) => /* @__PURE__ */ jsxs192(
96972
97102
  "span",
96973
97103
  {
96974
97104
  className: "inline-flex items-center gap-1 bg-neutral-700 rounded-sm px-1.5 py-0.5 text-[10px] text-neutral-200",
96975
97105
  children: [
96976
97106
  t2.toFixed(2),
96977
97107
  "s",
96978
- /* @__PURE__ */ jsx238(
97108
+ /* @__PURE__ */ jsx241(
96979
97109
  "button",
96980
97110
  {
96981
97111
  type: "button",
@@ -96988,7 +97118,7 @@ function SlideInspector({
96988
97118
  ]
96989
97119
  },
96990
97120
  `frag-${i}`
96991
- )) }) : /* @__PURE__ */ jsx238("p", { className: "text-[10px] text-neutral-600 italic", children: "No hold-points yet" })
97121
+ )) }) : /* @__PURE__ */ jsx241("p", { className: "text-[10px] text-neutral-600 italic", children: "No hold-points yet" })
96992
97122
  ] })
96993
97123
  ] });
96994
97124
  }
@@ -97011,9 +97141,9 @@ function BranchTree({
97011
97141
  onCreateSequence(label);
97012
97142
  setNewLabel("");
97013
97143
  }, [newLabel, onCreateSequence]);
97014
- return /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-3 px-3 py-2", children: [
97015
- /* @__PURE__ */ jsxs188("div", { className: "flex gap-1.5", children: [
97016
- /* @__PURE__ */ jsx238(
97144
+ return /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-3 px-3 py-2", children: [
97145
+ /* @__PURE__ */ jsxs192("div", { className: "flex gap-1.5", children: [
97146
+ /* @__PURE__ */ jsx241(
97017
97147
  "input",
97018
97148
  {
97019
97149
  id: inputId,
@@ -97028,7 +97158,7 @@ function BranchTree({
97028
97158
  "aria-label": "New branch sequence name"
97029
97159
  }
97030
97160
  ),
97031
- /* @__PURE__ */ jsx238(
97161
+ /* @__PURE__ */ jsx241(
97032
97162
  "button",
97033
97163
  {
97034
97164
  type: "button",
@@ -97038,7 +97168,7 @@ function BranchTree({
97038
97168
  }
97039
97169
  )
97040
97170
  ] }),
97041
- sequences.length === 0 ? /* @__PURE__ */ jsx238("p", { className: "text-[10px] text-neutral-600 italic", children: "No branches yet" }) : /* @__PURE__ */ jsx238("div", { className: "flex flex-col gap-3", children: sequences.map((seq) => /* @__PURE__ */ jsx238(
97171
+ sequences.length === 0 ? /* @__PURE__ */ jsx241("p", { className: "text-[10px] text-neutral-600 italic", children: "No branches yet" }) : /* @__PURE__ */ jsx241("div", { className: "flex flex-col gap-3", children: sequences.map((seq) => /* @__PURE__ */ jsx241(
97042
97172
  BranchItem,
97043
97173
  {
97044
97174
  seq,
@@ -97072,9 +97202,9 @@ function BranchItem({
97072
97202
  if (label && label !== seq.label) onRename(seq.id, label);
97073
97203
  setEditing(false);
97074
97204
  }, [draft, onRename, seq.id, seq.label]);
97075
- return /* @__PURE__ */ jsxs188("div", { className: "border border-neutral-700/60 rounded-sm p-2 flex flex-col gap-2", children: [
97076
- /* @__PURE__ */ jsxs188("div", { className: "flex items-center gap-1", children: [
97077
- editing ? /* @__PURE__ */ jsx238(
97205
+ return /* @__PURE__ */ jsxs192("div", { className: "border border-neutral-700/60 rounded-sm p-2 flex flex-col gap-2", children: [
97206
+ /* @__PURE__ */ jsxs192("div", { className: "flex items-center gap-1", children: [
97207
+ editing ? /* @__PURE__ */ jsx241(
97078
97208
  "input",
97079
97209
  {
97080
97210
  className: "flex-1 bg-neutral-800 border border-neutral-600 rounded-sm px-1.5 py-0.5 text-[11px] text-text-0 focus:border-studio-accent/60 focus:outline-hidden",
@@ -97088,7 +97218,7 @@ function BranchItem({
97088
97218
  },
97089
97219
  "aria-label": `Rename branch ${seq.label}`
97090
97220
  }
97091
- ) : /* @__PURE__ */ jsx238(
97221
+ ) : /* @__PURE__ */ jsx241(
97092
97222
  "span",
97093
97223
  {
97094
97224
  role: "button",
@@ -97105,7 +97235,7 @@ function BranchItem({
97105
97235
  children: seq.label
97106
97236
  }
97107
97237
  ),
97108
- /* @__PURE__ */ jsx238(
97238
+ /* @__PURE__ */ jsx241(
97109
97239
  "button",
97110
97240
  {
97111
97241
  type: "button",
@@ -97116,16 +97246,16 @@ function BranchItem({
97116
97246
  }
97117
97247
  )
97118
97248
  ] }),
97119
- confirmingDelete && /* @__PURE__ */ jsxs188("div", { className: "px-2 py-1.5 bg-danger/15 border-l-2 border-red-500 flex flex-col gap-1 rounded-xs", children: [
97120
- /* @__PURE__ */ jsxs188("span", { className: "text-[10px] text-danger-ink", children: [
97249
+ confirmingDelete && /* @__PURE__ */ jsxs192("div", { className: "px-2 py-1.5 bg-danger/15 border-l-2 border-red-500 flex flex-col gap-1 rounded-xs", children: [
97250
+ /* @__PURE__ */ jsxs192("span", { className: "text-[10px] text-danger-ink", children: [
97121
97251
  "Delete branch \u201C",
97122
97252
  seq.label,
97123
97253
  "\u201D",
97124
97254
  seq.slides.length > 0 ? ` and its ${seq.slides.length} slide${seq.slides.length === 1 ? "" : "s"}` : "",
97125
97255
  "? Hotspots pointing to it will no longer resolve."
97126
97256
  ] }),
97127
- /* @__PURE__ */ jsxs188("div", { className: "flex items-center justify-end gap-1", children: [
97128
- /* @__PURE__ */ jsx238(
97257
+ /* @__PURE__ */ jsxs192("div", { className: "flex items-center justify-end gap-1", children: [
97258
+ /* @__PURE__ */ jsx241(
97129
97259
  "button",
97130
97260
  {
97131
97261
  type: "button",
@@ -97137,7 +97267,7 @@ function BranchItem({
97137
97267
  children: "Delete"
97138
97268
  }
97139
97269
  ),
97140
- /* @__PURE__ */ jsx238(
97270
+ /* @__PURE__ */ jsx241(
97141
97271
  "button",
97142
97272
  {
97143
97273
  type: "button",
@@ -97148,16 +97278,16 @@ function BranchItem({
97148
97278
  )
97149
97279
  ] })
97150
97280
  ] }),
97151
- /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-px pl-2", children: [
97281
+ /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-px pl-2", children: [
97152
97282
  scenes.map((scene) => {
97153
97283
  const assigned = seq.slides.some((s) => s.sceneId === scene.id);
97154
97284
  const isSelected2 = selectedSequenceId === seq.id && selectedSceneId === scene.id;
97155
- return /* @__PURE__ */ jsxs188(
97285
+ return /* @__PURE__ */ jsxs192(
97156
97286
  "div",
97157
97287
  {
97158
97288
  className: "flex items-center gap-1.5 py-0.5 text-[11px] text-neutral-400",
97159
97289
  children: [
97160
- /* @__PURE__ */ jsx238(
97290
+ /* @__PURE__ */ jsx241(
97161
97291
  "input",
97162
97292
  {
97163
97293
  type: "checkbox",
@@ -97167,7 +97297,7 @@ function BranchItem({
97167
97297
  className: "accent-studio-accent shrink-0"
97168
97298
  }
97169
97299
  ),
97170
- assigned ? /* @__PURE__ */ jsx238(
97300
+ assigned ? /* @__PURE__ */ jsx241(
97171
97301
  "button",
97172
97302
  {
97173
97303
  type: "button",
@@ -97176,13 +97306,13 @@ function BranchItem({
97176
97306
  onClick: () => onSelectBranchSlide(seq.id, scene.id),
97177
97307
  children: scene.label || scene.id
97178
97308
  }
97179
- ) : /* @__PURE__ */ jsx238("span", { className: "flex-1 truncate", children: scene.label || scene.id })
97309
+ ) : /* @__PURE__ */ jsx241("span", { className: "flex-1 truncate", children: scene.label || scene.id })
97180
97310
  ]
97181
97311
  },
97182
97312
  scene.id
97183
97313
  );
97184
97314
  }),
97185
- scenes.length === 0 && /* @__PURE__ */ jsx238("p", { className: "text-[10px] text-neutral-600 italic", children: "No scenes" })
97315
+ scenes.length === 0 && /* @__PURE__ */ jsx241("p", { className: "text-[10px] text-neutral-600 italic", children: "No scenes" })
97186
97316
  ] })
97187
97317
  ] });
97188
97318
  }
@@ -97208,19 +97338,19 @@ function HotspotTool({
97208
97338
  setHotspotLabel("");
97209
97339
  }, [selectedSceneId, targetSequenceId, elementKey3, hotspotLabel, onAddHotspot]);
97210
97340
  if (!selectedSceneId) {
97211
- return /* @__PURE__ */ jsx238("div", { className: "px-3 py-2", children: /* @__PURE__ */ jsx238("p", { className: "text-[11px] text-neutral-500 italic", children: "Select a scene in the Slides list" }) });
97341
+ return /* @__PURE__ */ jsx241("div", { className: "px-3 py-2", children: /* @__PURE__ */ jsx241("p", { className: "text-[11px] text-neutral-500 italic", children: "Select a scene in the Slides list" }) });
97212
97342
  }
97213
- return /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-3 px-3 py-2", children: [
97214
- /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-1.5", children: [
97215
- /* @__PURE__ */ jsxs188("p", { className: "text-[11px] text-neutral-400", children: [
97343
+ return /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-3 px-3 py-2", children: [
97344
+ /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-1.5", children: [
97345
+ /* @__PURE__ */ jsxs192("p", { className: "text-[11px] text-neutral-400", children: [
97216
97346
  "Selected element:",
97217
97347
  " ",
97218
- /* @__PURE__ */ jsx238("span", { className: "text-neutral-200 font-mono", children: elementKey3 ?? "none" })
97348
+ /* @__PURE__ */ jsx241("span", { className: "text-neutral-200 font-mono", children: elementKey3 ?? "none" })
97219
97349
  ] }),
97220
- !elementKey3 && /* @__PURE__ */ jsx238("p", { className: "text-[10px] text-neutral-500 italic", children: "Click an element on the canvas to choose the hotspot target." }),
97221
- sequences.length === 0 && /* @__PURE__ */ jsx238("p", { className: "text-[10px] text-neutral-500 italic", children: "Create a branch in the Branches section first. Hotspots jump to a branch." }),
97222
- /* @__PURE__ */ jsx238("label", { className: "text-[11px] text-neutral-400", children: "Hotspot label" }),
97223
- /* @__PURE__ */ jsx238(
97350
+ !elementKey3 && /* @__PURE__ */ jsx241("p", { className: "text-[10px] text-neutral-500 italic", children: "Click an element on the canvas to choose the hotspot target." }),
97351
+ sequences.length === 0 && /* @__PURE__ */ jsx241("p", { className: "text-[10px] text-neutral-500 italic", children: "Create a branch in the Branches section first. Hotspots jump to a branch." }),
97352
+ /* @__PURE__ */ jsx241("label", { className: "text-[11px] text-neutral-400", children: "Hotspot label" }),
97353
+ /* @__PURE__ */ jsx241(
97224
97354
  "input",
97225
97355
  {
97226
97356
  type: "text",
@@ -97231,8 +97361,8 @@ function HotspotTool({
97231
97361
  "aria-label": "Hotspot label"
97232
97362
  }
97233
97363
  ),
97234
- /* @__PURE__ */ jsx238("label", { className: "text-[11px] text-neutral-400", children: "Target branch" }),
97235
- /* @__PURE__ */ jsxs188(
97364
+ /* @__PURE__ */ jsx241("label", { className: "text-[11px] text-neutral-400", children: "Target branch" }),
97365
+ /* @__PURE__ */ jsxs192(
97236
97366
  "select",
97237
97367
  {
97238
97368
  className: "bg-neutral-800 border border-neutral-700 rounded-sm px-2 py-1 text-[11px] text-text-0 focus:border-studio-accent/60 focus:outline-hidden",
@@ -97240,12 +97370,12 @@ function HotspotTool({
97240
97370
  onChange: (e) => setTargetSequenceId(e.target.value),
97241
97371
  "aria-label": "Target branch sequence",
97242
97372
  children: [
97243
- /* @__PURE__ */ jsx238("option", { value: "", children: "Select branch" }),
97244
- sequences.map((seq) => /* @__PURE__ */ jsx238("option", { value: seq.id, children: seq.label }, seq.id))
97373
+ /* @__PURE__ */ jsx241("option", { value: "", children: "Select branch" }),
97374
+ sequences.map((seq) => /* @__PURE__ */ jsx241("option", { value: seq.id, children: seq.label }, seq.id))
97245
97375
  ]
97246
97376
  }
97247
97377
  ),
97248
- /* @__PURE__ */ jsx238(
97378
+ /* @__PURE__ */ jsx241(
97249
97379
  "button",
97250
97380
  {
97251
97381
  type: "button",
@@ -97257,21 +97387,21 @@ function HotspotTool({
97257
97387
  }
97258
97388
  )
97259
97389
  ] }),
97260
- hotspots.length > 0 && /* @__PURE__ */ jsxs188("div", { className: "flex flex-col gap-1.5", children: [
97261
- /* @__PURE__ */ jsx238("p", { className: "text-[11px] text-neutral-400 font-medium", children: "Hotspots on this slide" }),
97390
+ hotspots.length > 0 && /* @__PURE__ */ jsxs192("div", { className: "flex flex-col gap-1.5", children: [
97391
+ /* @__PURE__ */ jsx241("p", { className: "text-[11px] text-neutral-400 font-medium", children: "Hotspots on this slide" }),
97262
97392
  hotspots.map((h) => {
97263
97393
  const seqLabel = sequences.find((s) => s.id === h.target)?.label ?? h.target;
97264
- return /* @__PURE__ */ jsxs188(
97394
+ return /* @__PURE__ */ jsxs192(
97265
97395
  "div",
97266
97396
  {
97267
97397
  className: "flex items-center gap-2 bg-neutral-800 rounded-sm px-2 py-1",
97268
97398
  children: [
97269
- /* @__PURE__ */ jsxs188("span", { className: "flex-1 text-[11px] text-neutral-200 truncate", children: [
97399
+ /* @__PURE__ */ jsxs192("span", { className: "flex-1 text-[11px] text-neutral-200 truncate", children: [
97270
97400
  h.label,
97271
97401
  " \u2192 ",
97272
- /* @__PURE__ */ jsx238("span", { className: "text-neutral-400", children: seqLabel })
97402
+ /* @__PURE__ */ jsx241("span", { className: "text-neutral-400", children: seqLabel })
97273
97403
  ] }),
97274
- /* @__PURE__ */ jsx238(
97404
+ /* @__PURE__ */ jsx241(
97275
97405
  "button",
97276
97406
  {
97277
97407
  type: "button",
@@ -97421,7 +97551,7 @@ function removeHotspot(manifest, sceneId, hotspotId, sequenceId) {
97421
97551
  }
97422
97552
 
97423
97553
  // src/components/panels/SlideshowPanel.tsx
97424
- import { Fragment as Fragment65, jsx as jsx239, jsxs as jsxs189 } from "react/jsx-runtime";
97554
+ import { Fragment as Fragment66, jsx as jsx242, jsxs as jsxs193 } from "react/jsx-runtime";
97425
97555
  function safeParseManifest(html2) {
97426
97556
  try {
97427
97557
  return parseSlideshowManifest(html2) ?? { slides: [] };
@@ -97689,7 +97819,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97689
97819
  },
97690
97820
  [selectedSequenceId, applyManifest]
97691
97821
  );
97692
- return /* @__PURE__ */ jsxs189(
97822
+ return /* @__PURE__ */ jsxs193(
97693
97823
  "div",
97694
97824
  {
97695
97825
  className: "flex flex-col h-full overflow-y-auto text-text-0",
@@ -97700,14 +97830,14 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97700
97830
  handleUndo();
97701
97831
  },
97702
97832
  children: [
97703
- persistError && /* @__PURE__ */ jsxs189(
97833
+ persistError && /* @__PURE__ */ jsxs193(
97704
97834
  "div",
97705
97835
  {
97706
97836
  role: "alert",
97707
97837
  className: "flex items-center justify-between gap-2 px-3 py-2 bg-danger/15 border-b border-red-500/40",
97708
97838
  children: [
97709
- /* @__PURE__ */ jsx239("span", { className: "text-[11px] text-danger-ink", children: "Changes not saved" }),
97710
- /* @__PURE__ */ jsx239(
97839
+ /* @__PURE__ */ jsx242("span", { className: "text-[11px] text-danger-ink", children: "Changes not saved" }),
97840
+ /* @__PURE__ */ jsx242(
97711
97841
  "button",
97712
97842
  {
97713
97843
  type: "button",
@@ -97720,7 +97850,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97720
97850
  ]
97721
97851
  }
97722
97852
  ),
97723
- undoDepth > 0 && /* @__PURE__ */ jsx239("div", { className: "flex items-center justify-end px-3 py-1 border-b border-neutral-800/60", children: /* @__PURE__ */ jsxs189(
97853
+ undoDepth > 0 && /* @__PURE__ */ jsx242("div", { className: "flex items-center justify-end px-3 py-1 border-b border-neutral-800/60", children: /* @__PURE__ */ jsxs193(
97724
97854
  "button",
97725
97855
  {
97726
97856
  type: "button",
@@ -97734,7 +97864,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97734
97864
  ]
97735
97865
  }
97736
97866
  ) }),
97737
- /* @__PURE__ */ jsxs189(
97867
+ /* @__PURE__ */ jsxs193(
97738
97868
  SectionHeader,
97739
97869
  {
97740
97870
  expanded: expandedSections.has("slides"),
@@ -97746,7 +97876,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97746
97876
  ]
97747
97877
  }
97748
97878
  ),
97749
- expandedSections.has("slides") && /* @__PURE__ */ jsx239("div", { className: "py-1", children: /* @__PURE__ */ jsx239(
97879
+ expandedSections.has("slides") && /* @__PURE__ */ jsx242("div", { className: "py-1", children: /* @__PURE__ */ jsx242(
97750
97880
  SlideList,
97751
97881
  {
97752
97882
  scenes,
@@ -97760,7 +97890,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97760
97890
  onReorder: handleReorder
97761
97891
  }
97762
97892
  ) }),
97763
- /* @__PURE__ */ jsx239(
97893
+ /* @__PURE__ */ jsx242(
97764
97894
  SectionHeader,
97765
97895
  {
97766
97896
  expanded: expandedSections.has("inspector"),
@@ -97768,7 +97898,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97768
97898
  children: "Slide Inspector"
97769
97899
  }
97770
97900
  ),
97771
- expandedSections.has("inspector") && /* @__PURE__ */ jsx239(Fragment65, { children: selectedSceneId ? /* @__PURE__ */ jsx239(
97901
+ expandedSections.has("inspector") && /* @__PURE__ */ jsx242(Fragment66, { children: selectedSceneId ? /* @__PURE__ */ jsx242(
97772
97902
  SlideInspector,
97773
97903
  {
97774
97904
  sceneId: selectedSceneId,
@@ -97778,8 +97908,8 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97778
97908
  onMarkFragment: handleMarkFragment,
97779
97909
  onRemoveFragment: handleRemoveFragment
97780
97910
  }
97781
- ) : /* @__PURE__ */ jsx239("p", { className: "px-3 py-2 text-[11px] text-neutral-500 italic", children: "Select a scene above to inspect" }) }),
97782
- /* @__PURE__ */ jsxs189(
97911
+ ) : /* @__PURE__ */ jsx242("p", { className: "px-3 py-2 text-[11px] text-neutral-500 italic", children: "Select a scene above to inspect" }) }),
97912
+ /* @__PURE__ */ jsxs193(
97783
97913
  SectionHeader,
97784
97914
  {
97785
97915
  expanded: expandedSections.has("branches"),
@@ -97791,7 +97921,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97791
97921
  ]
97792
97922
  }
97793
97923
  ),
97794
- expandedSections.has("branches") && /* @__PURE__ */ jsx239(
97924
+ expandedSections.has("branches") && /* @__PURE__ */ jsx242(
97795
97925
  BranchTree,
97796
97926
  {
97797
97927
  sequences,
@@ -97805,7 +97935,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97805
97935
  onSelectBranchSlide: handleSelectBranchSlide
97806
97936
  }
97807
97937
  ),
97808
- /* @__PURE__ */ jsx239(
97938
+ /* @__PURE__ */ jsx242(
97809
97939
  SectionHeader,
97810
97940
  {
97811
97941
  expanded: expandedSections.has("hotspot"),
@@ -97813,7 +97943,7 @@ function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
97813
97943
  children: "Hotspot Tool"
97814
97944
  }
97815
97945
  ),
97816
- expandedSections.has("hotspot") && /* @__PURE__ */ jsx239(
97946
+ expandedSections.has("hotspot") && /* @__PURE__ */ jsx242(
97817
97947
  HotspotTool,
97818
97948
  {
97819
97949
  selectedSceneId,
@@ -97955,7 +98085,7 @@ function useEditVariablesInFile(deps) {
97955
98085
 
97956
98086
  // src/components/panels/VariablesDeclarationForm.tsx
97957
98087
  import { useState as useState158 } from "react";
97958
- import { jsx as jsx240, jsxs as jsxs190 } from "react/jsx-runtime";
98088
+ import { jsx as jsx243, jsxs as jsxs194 } from "react/jsx-runtime";
97959
98089
  var VARIABLE_TYPES = [
97960
98090
  "string",
97961
98091
  "number",
@@ -98074,8 +98204,8 @@ function declarationFromDraft(draft) {
98074
98204
  }
98075
98205
  }
98076
98206
  function Field({ label, children }) {
98077
- return /* @__PURE__ */ jsxs190("div", { className: "space-y-1", children: [
98078
- /* @__PURE__ */ jsx240("label", { className: "text-[9px] font-medium text-neutral-500", children: label }),
98207
+ return /* @__PURE__ */ jsxs194("div", { className: "space-y-1", children: [
98208
+ /* @__PURE__ */ jsx243("label", { className: "text-[9px] font-medium text-neutral-500", children: label }),
98079
98209
  children
98080
98210
  ] });
98081
98211
  }
@@ -98084,20 +98214,20 @@ function DefaultField({
98084
98214
  onChange
98085
98215
  }) {
98086
98216
  if (draft.type === "boolean") {
98087
- return /* @__PURE__ */ jsxs190(
98217
+ return /* @__PURE__ */ jsxs194(
98088
98218
  "select",
98089
98219
  {
98090
98220
  value: draft.defaultRaw === "true" ? "true" : "false",
98091
98221
  onChange: (e) => onChange(e.target.value),
98092
98222
  className: VARIABLES_INPUT_CLASS,
98093
98223
  children: [
98094
- /* @__PURE__ */ jsx240("option", { value: "false", children: "false" }),
98095
- /* @__PURE__ */ jsx240("option", { value: "true", children: "true" })
98224
+ /* @__PURE__ */ jsx243("option", { value: "false", children: "false" }),
98225
+ /* @__PURE__ */ jsx243("option", { value: "true", children: "true" })
98096
98226
  ]
98097
98227
  }
98098
98228
  );
98099
98229
  }
98100
- return /* @__PURE__ */ jsx240(
98230
+ return /* @__PURE__ */ jsx243(
98101
98231
  "input",
98102
98232
  {
98103
98233
  type: "text",
@@ -98126,9 +98256,9 @@ function DeclarationForm({
98126
98256
  setError(null);
98127
98257
  onSubmit(result);
98128
98258
  };
98129
- return /* @__PURE__ */ jsxs190("div", { className: "space-y-2 rounded-lg border border-neutral-800 bg-neutral-900/60 p-2", children: [
98130
- /* @__PURE__ */ jsxs190("div", { className: "grid grid-cols-2 gap-2", children: [
98131
- /* @__PURE__ */ jsx240(Field, { label: "ID", children: /* @__PURE__ */ jsx240(
98259
+ return /* @__PURE__ */ jsxs194("div", { className: "space-y-2 rounded-lg border border-neutral-800 bg-neutral-900/60 p-2", children: [
98260
+ /* @__PURE__ */ jsxs194("div", { className: "grid grid-cols-2 gap-2", children: [
98261
+ /* @__PURE__ */ jsx243(Field, { label: "ID", children: /* @__PURE__ */ jsx243(
98132
98262
  "input",
98133
98263
  {
98134
98264
  type: "text",
@@ -98139,7 +98269,7 @@ function DeclarationForm({
98139
98269
  className: `${VARIABLES_INPUT_CLASS} font-mono disabled:opacity-50`
98140
98270
  }
98141
98271
  ) }),
98142
- /* @__PURE__ */ jsx240(Field, { label: "Label", children: /* @__PURE__ */ jsx240(
98272
+ /* @__PURE__ */ jsx243(Field, { label: "Label", children: /* @__PURE__ */ jsx243(
98143
98273
  "input",
98144
98274
  {
98145
98275
  type: "text",
@@ -98150,8 +98280,8 @@ function DeclarationForm({
98150
98280
  }
98151
98281
  ) })
98152
98282
  ] }),
98153
- /* @__PURE__ */ jsxs190("div", { className: "grid grid-cols-2 gap-2", children: [
98154
- /* @__PURE__ */ jsx240(Field, { label: "Type", children: /* @__PURE__ */ jsx240(
98283
+ /* @__PURE__ */ jsxs194("div", { className: "grid grid-cols-2 gap-2", children: [
98284
+ /* @__PURE__ */ jsx243(Field, { label: "Type", children: /* @__PURE__ */ jsx243(
98155
98285
  "select",
98156
98286
  {
98157
98287
  value: draft.type,
@@ -98160,12 +98290,12 @@ function DeclarationForm({
98160
98290
  if (type) set({ type });
98161
98291
  },
98162
98292
  className: VARIABLES_INPUT_CLASS,
98163
- children: VARIABLE_TYPES.map((t2) => /* @__PURE__ */ jsx240("option", { value: t2, children: t2 }, t2))
98293
+ children: VARIABLE_TYPES.map((t2) => /* @__PURE__ */ jsx243("option", { value: t2, children: t2 }, t2))
98164
98294
  }
98165
98295
  ) }),
98166
- /* @__PURE__ */ jsx240(Field, { label: "Default", children: /* @__PURE__ */ jsx240(DefaultField, { draft, onChange: (defaultRaw) => set({ defaultRaw }) }) })
98296
+ /* @__PURE__ */ jsx243(Field, { label: "Default", children: /* @__PURE__ */ jsx243(DefaultField, { draft, onChange: (defaultRaw) => set({ defaultRaw }) }) })
98167
98297
  ] }),
98168
- draft.type === "number" && /* @__PURE__ */ jsx240("div", { className: "grid grid-cols-3 gap-2", children: ["min", "max", "step"].map((key2) => /* @__PURE__ */ jsx240(Field, { label: key2, children: /* @__PURE__ */ jsx240(
98298
+ draft.type === "number" && /* @__PURE__ */ jsx243("div", { className: "grid grid-cols-3 gap-2", children: ["min", "max", "step"].map((key2) => /* @__PURE__ */ jsx243(Field, { label: key2, children: /* @__PURE__ */ jsx243(
98169
98299
  "input",
98170
98300
  {
98171
98301
  type: "text",
@@ -98174,7 +98304,7 @@ function DeclarationForm({
98174
98304
  className: `${VARIABLES_INPUT_CLASS} tabular-nums`
98175
98305
  }
98176
98306
  ) }, key2)) }),
98177
- draft.type === "enum" && /* @__PURE__ */ jsx240(Field, { label: "Options (one per line, value:Label)", children: /* @__PURE__ */ jsx240(
98307
+ draft.type === "enum" && /* @__PURE__ */ jsx243(Field, { label: "Options (one per line, value:Label)", children: /* @__PURE__ */ jsx243(
98178
98308
  "textarea",
98179
98309
  {
98180
98310
  value: draft.optionsRaw,
@@ -98183,7 +98313,7 @@ function DeclarationForm({
98183
98313
  className: `${VARIABLES_INPUT_CLASS} resize-y font-mono`
98184
98314
  }
98185
98315
  ) }),
98186
- /* @__PURE__ */ jsx240(Field, { label: "Description (optional)", children: /* @__PURE__ */ jsx240(
98316
+ /* @__PURE__ */ jsx243(Field, { label: "Description (optional)", children: /* @__PURE__ */ jsx243(
98187
98317
  "input",
98188
98318
  {
98189
98319
  type: "text",
@@ -98192,9 +98322,9 @@ function DeclarationForm({
98192
98322
  className: VARIABLES_INPUT_CLASS
98193
98323
  }
98194
98324
  ) }),
98195
- error && /* @__PURE__ */ jsx240("p", { className: "text-[10px] text-danger-ink", children: error }),
98196
- /* @__PURE__ */ jsxs190("div", { className: "flex items-center justify-end gap-2 pt-1", children: [
98197
- /* @__PURE__ */ jsx240(
98325
+ error && /* @__PURE__ */ jsx243("p", { className: "text-[10px] text-danger-ink", children: error }),
98326
+ /* @__PURE__ */ jsxs194("div", { className: "flex items-center justify-end gap-2 pt-1", children: [
98327
+ /* @__PURE__ */ jsx243(
98198
98328
  "button",
98199
98329
  {
98200
98330
  type: "button",
@@ -98203,7 +98333,7 @@ function DeclarationForm({
98203
98333
  children: "Cancel"
98204
98334
  }
98205
98335
  ),
98206
- /* @__PURE__ */ jsx240(
98336
+ /* @__PURE__ */ jsx243(
98207
98337
  "button",
98208
98338
  {
98209
98339
  type: "button",
@@ -98217,14 +98347,14 @@ function DeclarationForm({
98217
98347
  }
98218
98348
 
98219
98349
  // src/components/panels/VariablesRowAction.tsx
98220
- import { jsx as jsx241 } from "react/jsx-runtime";
98350
+ import { jsx as jsx244 } from "react/jsx-runtime";
98221
98351
  function RowAction({
98222
98352
  label,
98223
98353
  title,
98224
98354
  danger,
98225
98355
  onClick
98226
98356
  }) {
98227
- return /* @__PURE__ */ jsx241(
98357
+ return /* @__PURE__ */ jsx244(
98228
98358
  "button",
98229
98359
  {
98230
98360
  type: "button",
@@ -98237,7 +98367,7 @@ function RowAction({
98237
98367
  }
98238
98368
 
98239
98369
  // src/components/panels/VariablesOtherCompositions.tsx
98240
- import { jsx as jsx242, jsxs as jsxs191 } from "react/jsx-runtime";
98370
+ import { jsx as jsx245, jsxs as jsxs195 } from "react/jsx-runtime";
98241
98371
  function CompositionSection({
98242
98372
  group,
98243
98373
  editingKey,
@@ -98245,8 +98375,8 @@ function CompositionSection({
98245
98375
  onSave,
98246
98376
  onRemove
98247
98377
  }) {
98248
- return /* @__PURE__ */ jsxs191("div", { className: "space-y-1.5", children: [
98249
- /* @__PURE__ */ jsx242(
98378
+ return /* @__PURE__ */ jsxs195("div", { className: "space-y-1.5", children: [
98379
+ /* @__PURE__ */ jsx245(
98250
98380
  "p",
98251
98381
  {
98252
98382
  className: "truncate text-[9px] font-medium uppercase tracking-wider text-neutral-500",
@@ -98257,12 +98387,12 @@ function CompositionSection({
98257
98387
  group.variables.map((decl) => {
98258
98388
  const key2 = `${group.path}::${decl.id}`;
98259
98389
  const editing = editingKey === key2;
98260
- return /* @__PURE__ */ jsxs191("div", { className: "space-y-1.5 rounded-lg border border-neutral-800/70 p-2", children: [
98261
- /* @__PURE__ */ jsxs191("div", { className: "flex items-center gap-1.5", children: [
98262
- /* @__PURE__ */ jsx242("span", { className: "truncate text-[10px] font-medium text-neutral-300", children: decl.label }),
98263
- /* @__PURE__ */ jsx242("span", { className: "rounded-sm bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500", children: decl.type }),
98264
- /* @__PURE__ */ jsxs191("span", { className: "ml-auto flex items-center gap-1", children: [
98265
- /* @__PURE__ */ jsx242(
98390
+ return /* @__PURE__ */ jsxs195("div", { className: "space-y-1.5 rounded-lg border border-neutral-800/70 p-2", children: [
98391
+ /* @__PURE__ */ jsxs195("div", { className: "flex items-center gap-1.5", children: [
98392
+ /* @__PURE__ */ jsx245("span", { className: "truncate text-[10px] font-medium text-neutral-300", children: decl.label }),
98393
+ /* @__PURE__ */ jsx245("span", { className: "rounded-sm bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500", children: decl.type }),
98394
+ /* @__PURE__ */ jsxs195("span", { className: "ml-auto flex items-center gap-1", children: [
98395
+ /* @__PURE__ */ jsx245(
98266
98396
  RowAction,
98267
98397
  {
98268
98398
  label: "Edit",
@@ -98270,7 +98400,7 @@ function CompositionSection({
98270
98400
  onClick: () => onToggleEdit(editing ? null : key2)
98271
98401
  }
98272
98402
  ),
98273
- /* @__PURE__ */ jsx242(
98403
+ /* @__PURE__ */ jsx245(
98274
98404
  RowAction,
98275
98405
  {
98276
98406
  label: "\u2715",
@@ -98281,8 +98411,8 @@ function CompositionSection({
98281
98411
  )
98282
98412
  ] })
98283
98413
  ] }),
98284
- decl.description && /* @__PURE__ */ jsx242("p", { className: "text-[9px] text-neutral-500", children: decl.description }),
98285
- editing && /* @__PURE__ */ jsx242(
98414
+ decl.description && /* @__PURE__ */ jsx245("p", { className: "text-[9px] text-neutral-500", children: decl.description }),
98415
+ editing && /* @__PURE__ */ jsx245(
98286
98416
  DeclarationForm,
98287
98417
  {
98288
98418
  initial: draftFromDeclaration(decl),
@@ -98340,9 +98470,9 @@ function VariablesOtherCompositions({
98340
98470
  [editInFile]
98341
98471
  );
98342
98472
  if (groups.length === 0) return null;
98343
- return /* @__PURE__ */ jsxs191("div", { className: "space-y-3 border-t border-neutral-800 pt-3", children: [
98344
- /* @__PURE__ */ jsx242("p", { className: "text-[9px] font-medium uppercase tracking-wider text-neutral-600", children: "Other compositions" }),
98345
- groups.map((group) => /* @__PURE__ */ jsx242(
98473
+ return /* @__PURE__ */ jsxs195("div", { className: "space-y-3 border-t border-neutral-800 pt-3", children: [
98474
+ /* @__PURE__ */ jsx245("p", { className: "text-[9px] font-medium uppercase tracking-wider text-neutral-600", children: "Other compositions" }),
98475
+ groups.map((group) => /* @__PURE__ */ jsx245(
98346
98476
  CompositionSection,
98347
98477
  {
98348
98478
  group,
@@ -98358,7 +98488,7 @@ function VariablesOtherCompositions({
98358
98488
 
98359
98489
  // src/components/panels/VariablesPanel.tsx
98360
98490
  import { isScalarVariableValue as isScalar } from "@hyperframes/core/variables";
98361
- import { jsx as jsx243, jsxs as jsxs192 } from "react/jsx-runtime";
98491
+ import { jsx as jsx246, jsxs as jsxs196 } from "react/jsx-runtime";
98362
98492
  function shellSingleQuote(value) {
98363
98493
  return `'${value.replace(/'/g, `'\\''`)}'`;
98364
98494
  }
@@ -98374,7 +98504,7 @@ function formatIssue(issue) {
98374
98504
  }
98375
98505
  function ValidationStrip({ issues }) {
98376
98506
  if (issues.length === 0) return null;
98377
- return /* @__PURE__ */ jsx243("div", { className: "space-y-1 rounded-lg border border-danger/40 bg-danger/15 p-2", children: issues.map((issue) => /* @__PURE__ */ jsx243("p", { className: "text-[10px] text-danger-ink", children: formatIssue(issue) }, `${issue.kind}:${issue.variableId}`)) });
98507
+ return /* @__PURE__ */ jsx246("div", { className: "space-y-1 rounded-lg border border-danger/40 bg-danger/15 p-2", children: issues.map((issue) => /* @__PURE__ */ jsx246("p", { className: "text-[10px] text-danger-ink", children: formatIssue(issue) }, `${issue.kind}:${issue.variableId}`)) });
98378
98508
  }
98379
98509
  function VariableRow({
98380
98510
  decl,
@@ -98388,11 +98518,11 @@ function VariableRow({
98388
98518
  onSaveEdit,
98389
98519
  onRemove
98390
98520
  }) {
98391
- return /* @__PURE__ */ jsxs192("div", { className: "space-y-1.5 rounded-lg border border-neutral-800/70 p-2", children: [
98392
- /* @__PURE__ */ jsxs192("div", { className: "flex items-center gap-1.5", children: [
98393
- /* @__PURE__ */ jsx243("span", { className: "truncate text-[10px] font-medium text-neutral-300", children: decl.label }),
98394
- /* @__PURE__ */ jsx243("span", { className: "rounded-sm bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500", children: decl.type }),
98395
- unused && /* @__PURE__ */ jsx243(
98521
+ return /* @__PURE__ */ jsxs196("div", { className: "space-y-1.5 rounded-lg border border-neutral-800/70 p-2", children: [
98522
+ /* @__PURE__ */ jsxs196("div", { className: "flex items-center gap-1.5", children: [
98523
+ /* @__PURE__ */ jsx246("span", { className: "truncate text-[10px] font-medium text-neutral-300", children: decl.label }),
98524
+ /* @__PURE__ */ jsx246("span", { className: "rounded-sm bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500", children: decl.type }),
98525
+ unused && /* @__PURE__ */ jsx246(
98396
98526
  "span",
98397
98527
  {
98398
98528
  className: "rounded-sm bg-amber-500/15 px-1 py-px text-[8px] text-warning-ink",
@@ -98400,9 +98530,9 @@ function VariableRow({
98400
98530
  children: "unused"
98401
98531
  }
98402
98532
  ),
98403
- overridden && /* @__PURE__ */ jsx243("span", { className: "h-1.5 w-1.5 rounded-full bg-studio-accent" }),
98404
- /* @__PURE__ */ jsxs192("span", { className: "ml-auto flex items-center gap-1", children: [
98405
- overridden && isScalar(value) && /* @__PURE__ */ jsx243(
98533
+ overridden && /* @__PURE__ */ jsx246("span", { className: "h-1.5 w-1.5 rounded-full bg-studio-accent" }),
98534
+ /* @__PURE__ */ jsxs196("span", { className: "ml-auto flex items-center gap-1", children: [
98535
+ overridden && isScalar(value) && /* @__PURE__ */ jsx246(
98406
98536
  RowAction,
98407
98537
  {
98408
98538
  label: "Set default",
@@ -98410,12 +98540,12 @@ function VariableRow({
98410
98540
  onClick: () => onSetDefault(value)
98411
98541
  }
98412
98542
  ),
98413
- /* @__PURE__ */ jsx243(RowAction, { label: "Edit", title: "Edit declaration", onClick: onToggleEdit }),
98414
- /* @__PURE__ */ jsx243(RowAction, { label: "\u2715", title: "Remove declaration", danger: true, onClick: onRemove })
98543
+ /* @__PURE__ */ jsx246(RowAction, { label: "Edit", title: "Edit declaration", onClick: onToggleEdit }),
98544
+ /* @__PURE__ */ jsx246(RowAction, { label: "\u2715", title: "Remove declaration", danger: true, onClick: onRemove })
98415
98545
  ] })
98416
98546
  ] }),
98417
- decl.description && /* @__PURE__ */ jsx243("p", { className: "text-[9px] text-neutral-500", children: decl.description }),
98418
- editing ? /* @__PURE__ */ jsx243(
98547
+ decl.description && /* @__PURE__ */ jsx246("p", { className: "text-[9px] text-neutral-500", children: decl.description }),
98548
+ editing ? /* @__PURE__ */ jsx246(
98419
98549
  DeclarationForm,
98420
98550
  {
98421
98551
  initial: draftFromDeclaration(decl),
@@ -98423,7 +98553,7 @@ function VariableRow({
98423
98553
  onSubmit: (edited) => onSaveEdit(mergeDeclarationEdit(decl, edited)),
98424
98554
  onCancel: onToggleEdit
98425
98555
  }
98426
- ) : /* @__PURE__ */ jsx243(PreviewValueControl, { decl, value, onCommit: onCommitPreview })
98556
+ ) : /* @__PURE__ */ jsx246(PreviewValueControl, { decl, value, onCommit: onCommitPreview })
98427
98557
  ] });
98428
98558
  }
98429
98559
  function UndeclaredReads({
@@ -98431,11 +98561,11 @@ function UndeclaredReads({
98431
98561
  onDeclare
98432
98562
  }) {
98433
98563
  if (!usage || usage.undeclaredReads.length === 0) return null;
98434
- return /* @__PURE__ */ jsxs192("div", { className: "space-y-1 rounded-lg border border-neutral-800/70 bg-neutral-900/40 p-2", children: [
98435
- /* @__PURE__ */ jsx243("p", { className: "text-[9px] font-medium uppercase tracking-wider text-neutral-500", children: "Read by scripts, not declared" }),
98436
- usage.undeclaredReads.map((id) => /* @__PURE__ */ jsxs192("div", { className: "flex items-center gap-2", children: [
98437
- /* @__PURE__ */ jsx243("code", { className: "font-mono text-[10px] text-neutral-400", children: id }),
98438
- /* @__PURE__ */ jsx243(
98564
+ return /* @__PURE__ */ jsxs196("div", { className: "space-y-1 rounded-lg border border-neutral-800/70 bg-neutral-900/40 p-2", children: [
98565
+ /* @__PURE__ */ jsx246("p", { className: "text-[9px] font-medium uppercase tracking-wider text-neutral-500", children: "Read by scripts, not declared" }),
98566
+ usage.undeclaredReads.map((id) => /* @__PURE__ */ jsxs196("div", { className: "flex items-center gap-2", children: [
98567
+ /* @__PURE__ */ jsx246("code", { className: "font-mono text-[10px] text-neutral-400", children: id }),
98568
+ /* @__PURE__ */ jsx246(
98439
98569
  RowAction,
98440
98570
  {
98441
98571
  label: "Declare",
@@ -98451,10 +98581,10 @@ function PreviewModeHeader({
98451
98581
  onReset
98452
98582
  }) {
98453
98583
  const hasOverrides = overrideCount > 0;
98454
- return /* @__PURE__ */ jsxs192("div", { className: "flex items-center justify-between border-b border-neutral-800 px-3 py-2", children: [
98455
- /* @__PURE__ */ jsxs192("div", { className: "flex items-center gap-2", children: [
98456
- /* @__PURE__ */ jsx243("span", { className: "text-[11px] font-semibold text-neutral-200", children: "Variables" }),
98457
- /* @__PURE__ */ jsx243(
98584
+ return /* @__PURE__ */ jsxs196("div", { className: "flex items-center justify-between border-b border-neutral-800 px-3 py-2", children: [
98585
+ /* @__PURE__ */ jsxs196("div", { className: "flex items-center gap-2", children: [
98586
+ /* @__PURE__ */ jsx246("span", { className: "text-[11px] font-semibold text-neutral-200", children: "Variables" }),
98587
+ /* @__PURE__ */ jsx246(
98458
98588
  "span",
98459
98589
  {
98460
98590
  className: `rounded-full px-2 py-0.5 text-[9px] font-medium ${hasOverrides ? "bg-studio-accent/20 text-accent-ink" : "bg-neutral-800 text-neutral-500"}`,
@@ -98462,7 +98592,7 @@ function PreviewModeHeader({
98462
98592
  }
98463
98593
  )
98464
98594
  ] }),
98465
- hasOverrides && /* @__PURE__ */ jsx243(
98595
+ hasOverrides && /* @__PURE__ */ jsx246(
98466
98596
  "button",
98467
98597
  {
98468
98598
  type: "button",
@@ -98480,11 +98610,11 @@ function HandoffFooter({
98480
98610
  }) {
98481
98611
  const json = JSON.stringify(effectiveValues);
98482
98612
  const command = `npx hyperframes render ${shellSingleQuote(compPath)} --variables ${shellSingleQuote(json)}`;
98483
- return /* @__PURE__ */ jsxs192("div", { className: "space-y-1.5 rounded-lg border border-neutral-800/70 bg-neutral-900/40 p-2", children: [
98484
- /* @__PURE__ */ jsx243("p", { className: "text-[9px] font-medium uppercase tracking-wider text-neutral-500", children: "Use this template" }),
98485
- /* @__PURE__ */ jsx243("code", { className: "block truncate font-mono text-[9px] text-neutral-500", title: command, children: command }),
98486
- /* @__PURE__ */ jsxs192("div", { className: "flex items-center gap-2", children: [
98487
- /* @__PURE__ */ jsx243(
98613
+ return /* @__PURE__ */ jsxs196("div", { className: "space-y-1.5 rounded-lg border border-neutral-800/70 bg-neutral-900/40 p-2", children: [
98614
+ /* @__PURE__ */ jsx246("p", { className: "text-[9px] font-medium uppercase tracking-wider text-neutral-500", children: "Use this template" }),
98615
+ /* @__PURE__ */ jsx246("code", { className: "block truncate font-mono text-[9px] text-neutral-500", title: command, children: command }),
98616
+ /* @__PURE__ */ jsxs196("div", { className: "flex items-center gap-2", children: [
98617
+ /* @__PURE__ */ jsx246(
98488
98618
  RowAction,
98489
98619
  {
98490
98620
  label: "Copy render command",
@@ -98492,7 +98622,7 @@ function HandoffFooter({
98492
98622
  onClick: () => onCopy(command, "Render command")
98493
98623
  }
98494
98624
  ),
98495
- /* @__PURE__ */ jsx243(
98625
+ /* @__PURE__ */ jsx246(
98496
98626
  RowAction,
98497
98627
  {
98498
98628
  label: "Copy values JSON",
@@ -98503,15 +98633,15 @@ function HandoffFooter({
98503
98633
  ] })
98504
98634
  ] });
98505
98635
  }
98506
- var EMPTY_STATE = /* @__PURE__ */ jsxs192("p", { className: "text-[10px] leading-relaxed text-neutral-500", children: [
98636
+ var EMPTY_STATE = /* @__PURE__ */ jsxs196("p", { className: "text-[10px] leading-relaxed text-neutral-500", children: [
98507
98637
  "No variables declared. Variables make parts of this composition dynamic. Declare them here (or in ",
98508
- /* @__PURE__ */ jsx243("code", { className: "font-mono", children: "data-composition-variables" }),
98638
+ /* @__PURE__ */ jsx246("code", { className: "font-mono", children: "data-composition-variables" }),
98509
98639
  "), read them with",
98510
98640
  " ",
98511
- /* @__PURE__ */ jsx243("code", { className: "font-mono", children: "getVariables()" }),
98641
+ /* @__PURE__ */ jsx246("code", { className: "font-mono", children: "getVariables()" }),
98512
98642
  ", and pass values at render time with",
98513
98643
  " ",
98514
- /* @__PURE__ */ jsx243("code", { className: "font-mono", children: "--variables" }),
98644
+ /* @__PURE__ */ jsx246("code", { className: "font-mono", children: "--variables" }),
98515
98645
  "."
98516
98646
  ] });
98517
98647
  var VariablesPanel = memo60(function VariablesPanel2({
@@ -98695,18 +98825,18 @@ var VariablesPanel = memo60(function VariablesPanel2({
98695
98825
  );
98696
98826
  const bindableSelection = domEditSelection?.hfId && domEditSelection.sourceFile === (activeCompPath ?? "index.html") ? domEditSelection : null;
98697
98827
  if (!sdkSession) {
98698
- return /* @__PURE__ */ jsx243("div", { className: "flex h-full items-center justify-center px-6 text-center", children: /* @__PURE__ */ jsx243("p", { className: "text-xs text-neutral-500", children: "Open a composition to manage its variables." }) });
98828
+ return /* @__PURE__ */ jsx246("div", { className: "flex h-full items-center justify-center px-6 text-center", children: /* @__PURE__ */ jsx246("p", { className: "text-xs text-neutral-500", children: "Open a composition to manage its variables." }) });
98699
98829
  }
98700
- return /* @__PURE__ */ jsxs192("div", { className: "flex h-full flex-col", children: [
98701
- /* @__PURE__ */ jsx243(
98830
+ return /* @__PURE__ */ jsxs196("div", { className: "flex h-full flex-col", children: [
98831
+ /* @__PURE__ */ jsx246(
98702
98832
  PreviewModeHeader,
98703
98833
  {
98704
98834
  overrideCount: previewValues ? Object.keys(previewValues).length : 0,
98705
98835
  onReset: resetPreview
98706
98836
  }
98707
98837
  ),
98708
- /* @__PURE__ */ jsxs192("div", { className: "flex-1 space-y-3 overflow-y-auto p-3", children: [
98709
- bindableSelection && /* @__PURE__ */ jsx243(
98838
+ /* @__PURE__ */ jsxs196("div", { className: "flex-1 space-y-3 overflow-y-auto p-3", children: [
98839
+ bindableSelection && /* @__PURE__ */ jsx246(
98710
98840
  VariablesBindElement,
98711
98841
  {
98712
98842
  selection: bindableSelection,
@@ -98715,9 +98845,9 @@ var VariablesPanel = memo60(function VariablesPanel2({
98715
98845
  },
98716
98846
  bindableSelection.hfId
98717
98847
  ),
98718
- /* @__PURE__ */ jsx243(ValidationStrip, { issues }),
98848
+ /* @__PURE__ */ jsx246(ValidationStrip, { issues }),
98719
98849
  declarations.length === 0 && !addOpen && EMPTY_STATE,
98720
- declarations.map((decl) => /* @__PURE__ */ jsx243(
98850
+ declarations.map((decl) => /* @__PURE__ */ jsx246(
98721
98851
  VariableRow,
98722
98852
  {
98723
98853
  decl,
@@ -98733,15 +98863,15 @@ var VariablesPanel = memo60(function VariablesPanel2({
98733
98863
  },
98734
98864
  decl.id
98735
98865
  )),
98736
- /* @__PURE__ */ jsx243(
98866
+ /* @__PURE__ */ jsx246(
98737
98867
  UndeclaredReads,
98738
98868
  {
98739
98869
  usage,
98740
98870
  onDeclare: (id) => handleAdd({ id, type: "string", label: id, default: "" })
98741
98871
  }
98742
98872
  ),
98743
- usage?.scanIncomplete && /* @__PURE__ */ jsx243("p", { className: "text-[9px] text-neutral-600", children: "Scripts access variables dynamically, so usage info may be incomplete." }),
98744
- declarations.length > 0 && /* @__PURE__ */ jsx243(
98873
+ usage?.scanIncomplete && /* @__PURE__ */ jsx246("p", { className: "text-[9px] text-neutral-600", children: "Scripts access variables dynamically, so usage info may be incomplete." }),
98874
+ declarations.length > 0 && /* @__PURE__ */ jsx246(
98745
98875
  HandoffFooter,
98746
98876
  {
98747
98877
  effectiveValues,
@@ -98749,7 +98879,7 @@ var VariablesPanel = memo60(function VariablesPanel2({
98749
98879
  onCopy: copyToClipboard
98750
98880
  }
98751
98881
  ),
98752
- addOpen ? /* @__PURE__ */ jsx243(
98882
+ addOpen ? /* @__PURE__ */ jsx246(
98753
98883
  DeclarationForm,
98754
98884
  {
98755
98885
  initial: EMPTY_DRAFT,
@@ -98757,7 +98887,7 @@ var VariablesPanel = memo60(function VariablesPanel2({
98757
98887
  onSubmit: handleAdd,
98758
98888
  onCancel: () => setAddOpen(false)
98759
98889
  }
98760
- ) : /* @__PURE__ */ jsx243(
98890
+ ) : /* @__PURE__ */ jsx246(
98761
98891
  "button",
98762
98892
  {
98763
98893
  type: "button",
@@ -98766,7 +98896,7 @@ var VariablesPanel = memo60(function VariablesPanel2({
98766
98896
  children: "+ Add variable"
98767
98897
  }
98768
98898
  ),
98769
- /* @__PURE__ */ jsx243(
98899
+ /* @__PURE__ */ jsx246(
98770
98900
  VariablesOtherCompositions,
98771
98901
  {
98772
98902
  compositionPaths: compositions,
@@ -98845,7 +98975,7 @@ function patchForLevel(level) {
98845
98975
  }
98846
98976
 
98847
98977
  // src/components/panels/MotionBlurPanel.tsx
98848
- import { jsx as jsx244, jsxs as jsxs193 } from "react/jsx-runtime";
98978
+ import { jsx as jsx247, jsxs as jsxs197 } from "react/jsx-runtime";
98849
98979
  var POLL_MS2 = 500;
98850
98980
  var SETTLE_MS = 1500;
98851
98981
  var NothingToChange = class extends Error {
@@ -98925,13 +99055,13 @@ var MotionBlurPanel = memo61(function MotionBlurPanel2({
98925
99055
  [attributes, persist2, hold, showToast]
98926
99056
  );
98927
99057
  if (!settings) {
98928
- return /* @__PURE__ */ jsx244("p", { className: "p-3 text-[10px] leading-relaxed text-neutral-500", children: "Open a composition to set up motion blur." });
99058
+ return /* @__PURE__ */ jsx247("p", { className: "p-3 text-[10px] leading-relaxed text-neutral-500", children: "Open a composition to set up motion blur." });
98929
99059
  }
98930
99060
  const locked = !isMain;
98931
99061
  const current = locked ? null : levelOf(settings);
98932
- return /* @__PURE__ */ jsxs193("div", { className: "flex h-full flex-col gap-3 overflow-y-auto p-3 text-[11px] text-neutral-300", children: [
98933
- /* @__PURE__ */ jsx244("span", { className: "text-[12px] font-medium text-neutral-100", children: "Motion blur" }),
98934
- /* @__PURE__ */ jsx244("div", { role: "radiogroup", "aria-label": "Motion blur", className: "flex gap-1.5", children: BLUR_LEVELS.map(({ level, label }) => /* @__PURE__ */ jsx244(
99062
+ return /* @__PURE__ */ jsxs197("div", { className: "flex h-full flex-col gap-3 overflow-y-auto p-3 text-[11px] text-neutral-300", children: [
99063
+ /* @__PURE__ */ jsx247("span", { className: "text-[12px] font-medium text-neutral-100", children: "Motion blur" }),
99064
+ /* @__PURE__ */ jsx247("div", { role: "radiogroup", "aria-label": "Motion blur", className: "flex gap-1.5", children: BLUR_LEVELS.map(({ level, label }) => /* @__PURE__ */ jsx247(
98935
99065
  Button,
98936
99066
  {
98937
99067
  role: "radio",
@@ -98945,7 +99075,7 @@ var MotionBlurPanel = memo61(function MotionBlurPanel2({
98945
99075
  },
98946
99076
  level
98947
99077
  )) }),
98948
- locked ? /* @__PURE__ */ jsx244("p", { className: "text-[10px] leading-relaxed text-amber-400/90", children: "Motion blur is read from the main composition. Open it to change this setting." }) : null
99078
+ locked ? /* @__PURE__ */ jsx247("p", { className: "text-[10px] leading-relaxed text-amber-400/90", children: "Motion blur is read from the main composition. Open it to change this setting." }) : null
98949
99079
  ] });
98950
99080
  });
98951
99081
 
@@ -99066,7 +99196,7 @@ function useSlideshowTabState(params) {
99066
99196
 
99067
99197
  // src/components/DesignPanelPromoteProvider.tsx
99068
99198
  import { useCallback as useCallback187 } from "react";
99069
- import { jsx as jsx245 } from "react/jsx-runtime";
99199
+ import { jsx as jsx248 } from "react/jsx-runtime";
99070
99200
  function DesignPanelPromoteProvider({
99071
99201
  selection,
99072
99202
  projectId,
@@ -99096,7 +99226,7 @@ function DesignPanelPromoteProvider({
99096
99226
  (error) => showToast(getStudioSaveErrorMessage(error), "error"),
99097
99227
  [showToast]
99098
99228
  );
99099
- return /* @__PURE__ */ jsx245(
99229
+ return /* @__PURE__ */ jsx248(
99100
99230
  VariablePromoteProvider,
99101
99231
  {
99102
99232
  session: handle.session,
@@ -99401,7 +99531,7 @@ function useApplyColorGradingScope(recordEdit, reloadPreview) {
99401
99531
  }
99402
99532
 
99403
99533
  // src/components/StudioRightPanels.tsx
99404
- import { Fragment as Fragment66, jsx as jsx246, jsxs as jsxs194 } from "react/jsx-runtime";
99534
+ import { Fragment as Fragment67, jsx as jsx249, jsxs as jsxs198 } from "react/jsx-runtime";
99405
99535
  var seekToTime = (t2) => usePlayerStore.getState().requestSeek(t2);
99406
99536
  var StudioRightPanels = memo62(function StudioRightPanels2({
99407
99537
  activeBlockParams,
@@ -99530,7 +99660,7 @@ var StudioRightPanels = memo62(function StudioRightPanels2({
99530
99660
  (animId, duration) => handleGsapConvertToKeyframes(animId, void 0, duration),
99531
99661
  [handleGsapConvertToKeyframes]
99532
99662
  );
99533
- const propertyPanel = /* @__PURE__ */ jsx246(
99663
+ const propertyPanel = /* @__PURE__ */ jsx249(
99534
99664
  DesignPanelPromoteProvider,
99535
99665
  {
99536
99666
  selection: domEditGroupSelections.length > 1 ? null : domEditSelection,
@@ -99542,7 +99672,7 @@ var StudioRightPanels = memo62(function StudioRightPanels2({
99542
99672
  recordEdit,
99543
99673
  reloadPreview,
99544
99674
  forceReloadSharedSdkSession: forceReloadSdkSession,
99545
- children: /* @__PURE__ */ jsx246(
99675
+ children: /* @__PURE__ */ jsx249(
99546
99676
  PropertyPanel,
99547
99677
  {
99548
99678
  projectId,
@@ -99613,9 +99743,9 @@ var StudioRightPanels = memo62(function StudioRightPanels2({
99613
99743
  );
99614
99744
  let designBody = propertyPanel;
99615
99745
  if (captionEditMode) {
99616
- designBody = /* @__PURE__ */ jsx246(CaptionPropertyPanel, { iframeRef: previewIframeRef });
99746
+ designBody = /* @__PURE__ */ jsx249(CaptionPropertyPanel, { iframeRef: previewIframeRef });
99617
99747
  } else if (activeBlockParams) {
99618
- designBody = /* @__PURE__ */ jsx246(
99748
+ designBody = /* @__PURE__ */ jsx249(
99619
99749
  BlockParamsPanel,
99620
99750
  {
99621
99751
  blockName: activeBlockParams.blockName,
@@ -99627,18 +99757,18 @@ var StudioRightPanels = memo62(function StudioRightPanels2({
99627
99757
  }
99628
99758
  );
99629
99759
  }
99630
- return /* @__PURE__ */ jsxs194(Fragment66, { children: [
99631
- /* @__PURE__ */ jsx246(Dock.Panel, { id: "design", children: designBody }),
99632
- /* @__PURE__ */ jsx246(Dock.Panel, { id: "layers", children: /* @__PURE__ */ jsx246(LayersPanel, {}) }),
99633
- /* @__PURE__ */ jsx246(
99760
+ return /* @__PURE__ */ jsxs198(Fragment67, { children: [
99761
+ /* @__PURE__ */ jsx249(Dock.Panel, { id: "design", children: designBody }),
99762
+ /* @__PURE__ */ jsx249(Dock.Panel, { id: "layers", children: /* @__PURE__ */ jsx249(LayersPanel, {}) }),
99763
+ /* @__PURE__ */ jsx249(
99634
99764
  Dock.Panel,
99635
99765
  {
99636
99766
  id: "renders",
99637
99767
  title: renderJobs.length > 0 ? `Renders (${renderJobs.length})` : void 0,
99638
- children: /* @__PURE__ */ jsx246(RenderQueuePanel, {})
99768
+ children: /* @__PURE__ */ jsx249(RenderQueuePanel, {})
99639
99769
  }
99640
99770
  ),
99641
- /* @__PURE__ */ jsx246(Dock.Panel, { id: "variables", children: /* @__PURE__ */ jsx246(
99771
+ /* @__PURE__ */ jsx249(Dock.Panel, { id: "variables", children: /* @__PURE__ */ jsx249(
99642
99772
  VariablesPanel,
99643
99773
  {
99644
99774
  sdkSession,
@@ -99647,7 +99777,7 @@ var StudioRightPanels = memo62(function StudioRightPanels2({
99647
99777
  recordEdit
99648
99778
  }
99649
99779
  ) }),
99650
- /* @__PURE__ */ jsx246(Dock.Panel, { id: "motionBlur", children: /* @__PURE__ */ jsx246(
99780
+ /* @__PURE__ */ jsx249(Dock.Panel, { id: "motionBlur", children: /* @__PURE__ */ jsx249(
99651
99781
  MotionBlurPanel,
99652
99782
  {
99653
99783
  sdkSession,
@@ -99656,7 +99786,7 @@ var StudioRightPanels = memo62(function StudioRightPanels2({
99656
99786
  recordEdit
99657
99787
  }
99658
99788
  ) }),
99659
- /* @__PURE__ */ jsx246(Dock.Panel, { id: "slideshow", children: /* @__PURE__ */ jsx246(
99789
+ /* @__PURE__ */ jsx249(Dock.Panel, { id: "slideshow", children: /* @__PURE__ */ jsx249(
99660
99790
  SlideshowPanel,
99661
99791
  {
99662
99792
  scenes: slideshowScenes,
@@ -99668,14 +99798,14 @@ var StudioRightPanels = memo62(function StudioRightPanels2({
99668
99798
  });
99669
99799
 
99670
99800
  // src/hooks/useStudioSidePanels.tsx
99671
- import { Fragment as Fragment67, jsx as jsx247, jsxs as jsxs195 } from "react/jsx-runtime";
99801
+ import { Fragment as Fragment68, jsx as jsx250, jsxs as jsxs199 } from "react/jsx-runtime";
99672
99802
  function useStudioSidePanels(left, right, projectId) {
99673
99803
  const stableLeft = useStableHandlers(left, projectId);
99674
99804
  const stableRight = useStableHandlers(right, projectId);
99675
99805
  return useMemo89(
99676
- () => /* @__PURE__ */ jsxs195(Fragment67, { children: [
99677
- /* @__PURE__ */ jsx247(StudioLeftPanels, { ...stableLeft }),
99678
- /* @__PURE__ */ jsx247(StudioRightPanels, { ...stableRight })
99806
+ () => /* @__PURE__ */ jsxs199(Fragment68, { children: [
99807
+ /* @__PURE__ */ jsx250(StudioLeftPanels, { ...stableLeft }),
99808
+ /* @__PURE__ */ jsx250(StudioRightPanels, { ...stableRight })
99679
99809
  ] }),
99680
99810
  [stableLeft, stableRight]
99681
99811
  );
@@ -99715,9 +99845,9 @@ function useKeyframeKeyboard({ enabled, onAddKeyframe }) {
99715
99845
  }
99716
99846
 
99717
99847
  // src/components/icons/AudioMetersIcon.tsx
99718
- import { jsx as jsx248 } from "react/jsx-runtime";
99848
+ import { jsx as jsx251 } from "react/jsx-runtime";
99719
99849
  function AudioMetersIcon({ size = 16 }) {
99720
- return /* @__PURE__ */ jsx248(
99850
+ return /* @__PURE__ */ jsx251(
99721
99851
  "svg",
99722
99852
  {
99723
99853
  width: size,
@@ -99728,15 +99858,15 @@ function AudioMetersIcon({ size = 16 }) {
99728
99858
  strokeWidth: 1.5,
99729
99859
  strokeLinecap: "round",
99730
99860
  "aria-hidden": "true",
99731
- children: /* @__PURE__ */ jsx248("path", { d: "M2.5 13h2m-2-3h2M7 13h2m-2-3h2m-2-3h2m-2-3h2M11.5 13h2m-2-3h2m-2-3h2" })
99861
+ children: /* @__PURE__ */ jsx251("path", { d: "M2.5 13h2m-2-3h2M7 13h2m-2-3h2m-2-3h2m-2-3h2M11.5 13h2m-2-3h2m-2-3h2" })
99732
99862
  }
99733
99863
  );
99734
99864
  }
99735
99865
 
99736
99866
  // src/components/icons/RippleEditIcon.tsx
99737
- import { jsx as jsx249, jsxs as jsxs196 } from "react/jsx-runtime";
99867
+ import { jsx as jsx252, jsxs as jsxs200 } from "react/jsx-runtime";
99738
99868
  function RippleEditIcon({ size = 16 }) {
99739
- return /* @__PURE__ */ jsxs196(
99869
+ return /* @__PURE__ */ jsxs200(
99740
99870
  "svg",
99741
99871
  {
99742
99872
  width: size,
@@ -99749,20 +99879,20 @@ function RippleEditIcon({ size = 16 }) {
99749
99879
  strokeLinejoin: "round",
99750
99880
  "aria-hidden": "true",
99751
99881
  children: [
99752
- /* @__PURE__ */ jsx249("rect", { x: "1.5", y: "8", width: "4", height: "5", rx: "0.5" }),
99753
- /* @__PURE__ */ jsx249("rect", { x: "10.5", y: "8", width: "4", height: "5", rx: "0.5" }),
99754
- /* @__PURE__ */ jsx249("path", { d: "M13 4H6m2-2L6 4l2 2" })
99882
+ /* @__PURE__ */ jsx252("rect", { x: "1.5", y: "8", width: "4", height: "5", rx: "0.5" }),
99883
+ /* @__PURE__ */ jsx252("rect", { x: "10.5", y: "8", width: "4", height: "5", rx: "0.5" }),
99884
+ /* @__PURE__ */ jsx252("path", { d: "M13 4H6m2-2L6 4l2 2" })
99755
99885
  ]
99756
99886
  }
99757
99887
  );
99758
99888
  }
99759
99889
 
99760
99890
  // src/components/TimelineHistoryButtons.tsx
99761
- import { Fragment as Fragment68, jsx as jsx250, jsxs as jsxs197 } from "react/jsx-runtime";
99891
+ import { Fragment as Fragment69, jsx as jsx253, jsxs as jsxs201 } from "react/jsx-runtime";
99762
99892
  function HistoryButton({ action, can, label, onClick }) {
99763
99893
  const Icon = action === "undo" ? RotateCcw : RotateCw;
99764
99894
  const enabled = Boolean(onClick) && can;
99765
- return /* @__PURE__ */ jsx250(Tooltip, { label: historyTooltipLabel(action, label), children: /* @__PURE__ */ jsx250(
99895
+ return /* @__PURE__ */ jsx253(Tooltip, { label: historyTooltipLabel(action, label), children: /* @__PURE__ */ jsx253(
99766
99896
  "button",
99767
99897
  {
99768
99898
  type: "button",
@@ -99773,7 +99903,7 @@ function HistoryButton({ action, can, label, onClick }) {
99773
99903
  trackStudioEvent("toolbar_action", { action });
99774
99904
  void onClick?.();
99775
99905
  },
99776
- children: /* @__PURE__ */ jsx250(Icon, { size: 16 })
99906
+ children: /* @__PURE__ */ jsx253(Icon, { size: 16 })
99777
99907
  }
99778
99908
  ) });
99779
99909
  }
@@ -99781,8 +99911,8 @@ function TimelineHistoryButtons(props) {
99781
99911
  const shell = useStudioShellContextOptional();
99782
99912
  const onUndo = props.onUndo ?? shell?.handleUndo;
99783
99913
  const onRedo = props.onRedo ?? shell?.handleRedo;
99784
- return /* @__PURE__ */ jsxs197(Fragment68, { children: [
99785
- /* @__PURE__ */ jsx250(
99914
+ return /* @__PURE__ */ jsxs201(Fragment69, { children: [
99915
+ /* @__PURE__ */ jsx253(
99786
99916
  HistoryButton,
99787
99917
  {
99788
99918
  action: "undo",
@@ -99791,7 +99921,7 @@ function TimelineHistoryButtons(props) {
99791
99921
  onClick: onUndo
99792
99922
  }
99793
99923
  ),
99794
- /* @__PURE__ */ jsx250(
99924
+ /* @__PURE__ */ jsx253(
99795
99925
  HistoryButton,
99796
99926
  {
99797
99927
  action: "redo",
@@ -99805,9 +99935,9 @@ function TimelineHistoryButtons(props) {
99805
99935
 
99806
99936
  // src/components/TimelineToolPicker.tsx
99807
99937
  import { ArrowLineLeft, ArrowLineRight, CaretDown } from "@phosphor-icons/react";
99808
- import { jsx as jsx251, jsxs as jsxs198 } from "react/jsx-runtime";
99938
+ import { jsx as jsx254, jsxs as jsxs202 } from "react/jsx-runtime";
99809
99939
  function SelectIcon() {
99810
- return /* @__PURE__ */ jsx251("svg", { width: "16", height: "16", viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx251("path", { d: "M2 0.5L10 6L6.5 6.5L8.5 11L6.5 11.5L4.5 7L2 9Z" }) });
99940
+ return /* @__PURE__ */ jsx254("svg", { width: "16", height: "16", viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx254("path", { d: "M2 0.5L10 6L6.5 6.5L8.5 11L6.5 11.5L4.5 7L2 9Z" }) });
99811
99941
  }
99812
99942
  function TimelineToolPicker({ showSelectAroundPlayhead = true }) {
99813
99943
  const activeTool = usePlayerStore((s) => s.activeTool);
@@ -99816,14 +99946,14 @@ function TimelineToolPicker({ showSelectAroundPlayhead = true }) {
99816
99946
  {
99817
99947
  label: "Select",
99818
99948
  shortcut: "V",
99819
- icon: /* @__PURE__ */ jsx251(SelectIcon, {}),
99949
+ icon: /* @__PURE__ */ jsx254(SelectIcon, {}),
99820
99950
  active: activeTool === "select",
99821
99951
  run: () => store().setActiveTool("select")
99822
99952
  },
99823
99953
  {
99824
99954
  label: "Split",
99825
99955
  shortcut: "B",
99826
- icon: /* @__PURE__ */ jsx251(Scissors, { size: 16 }),
99956
+ icon: /* @__PURE__ */ jsx254(Scissors, { size: 16 }),
99827
99957
  active: activeTool === "razor",
99828
99958
  run: () => store().setActiveTool("razor")
99829
99959
  }
@@ -99833,25 +99963,25 @@ function TimelineToolPicker({ showSelectAroundPlayhead = true }) {
99833
99963
  {
99834
99964
  label: "Select leftward",
99835
99965
  shortcut: "[",
99836
- icon: /* @__PURE__ */ jsx251(ArrowLineLeft, { size: 16, "aria-hidden": "true" }),
99966
+ icon: /* @__PURE__ */ jsx254(ArrowLineLeft, { size: 16, "aria-hidden": "true" }),
99837
99967
  active: false,
99838
99968
  run: () => store().selectLeftward()
99839
99969
  },
99840
99970
  {
99841
99971
  label: "Select rightward",
99842
99972
  shortcut: "]",
99843
- icon: /* @__PURE__ */ jsx251(ArrowLineRight, { size: 16, "aria-hidden": "true" }),
99973
+ icon: /* @__PURE__ */ jsx254(ArrowLineRight, { size: 16, "aria-hidden": "true" }),
99844
99974
  active: false,
99845
99975
  run: () => store().selectRightward()
99846
99976
  }
99847
99977
  );
99848
99978
  }
99849
99979
  const current = rows.find((row) => row.active) ?? rows[0];
99850
- return /* @__PURE__ */ jsx251(
99980
+ return /* @__PURE__ */ jsx254(
99851
99981
  Menu,
99852
99982
  {
99853
99983
  "aria-label": "Timeline tools",
99854
- trigger: /* @__PURE__ */ jsxs198(
99984
+ trigger: /* @__PURE__ */ jsxs202(
99855
99985
  "button",
99856
99986
  {
99857
99987
  type: "button",
@@ -99859,18 +99989,18 @@ function TimelineToolPicker({ showSelectAroundPlayhead = true }) {
99859
99989
  className: cn(flatIdle, "gap-0.5"),
99860
99990
  children: [
99861
99991
  current.icon,
99862
- /* @__PURE__ */ jsx251(CaretDown, { size: 10, weight: "bold", "aria-hidden": "true" })
99992
+ /* @__PURE__ */ jsx254(CaretDown, { size: 10, weight: "bold", "aria-hidden": "true" })
99863
99993
  ]
99864
99994
  }
99865
99995
  ),
99866
- children: rows.map((row) => /* @__PURE__ */ jsx251(
99996
+ children: rows.map((row) => /* @__PURE__ */ jsx254(
99867
99997
  MenuItem,
99868
99998
  {
99869
99999
  shortcut: row.shortcut,
99870
100000
  onClick: row.run,
99871
100001
  "data-active": row.active || void 0,
99872
100002
  className: row.active ? "bg-press text-text-0" : void 0,
99873
- children: /* @__PURE__ */ jsxs198("span", { className: "flex items-center gap-2", children: [
100003
+ children: /* @__PURE__ */ jsxs202("span", { className: "flex items-center gap-2", children: [
99874
100004
  row.icon,
99875
100005
  row.label
99876
100006
  ] })
@@ -99885,14 +100015,14 @@ function TimelineToolPicker({ showSelectAroundPlayhead = true }) {
99885
100015
  import { useCallback as useCallback192, useState as useState162 } from "react";
99886
100016
  import { createPortal as createPortal16 } from "react-dom";
99887
100017
  import { LinkSimple } from "@phosphor-icons/react";
99888
- import { Fragment as Fragment69, jsx as jsx252, jsxs as jsxs199 } from "react/jsx-runtime";
100018
+ import { Fragment as Fragment70, jsx as jsx255, jsxs as jsxs203 } from "react/jsx-runtime";
99889
100019
  function SyncIndicatorMenu({ x, y, onClose }) {
99890
100020
  const menuRef = useContextMenuDismiss(onClose);
99891
100021
  useMenuKeyboardNav(menuRef);
99892
100022
  const visible = useLinkedClipPreferences((s) => s.syncIndicatorsVisible);
99893
100023
  const setVisible = useLinkedClipPreferences((s) => s.setSyncIndicatorsVisible);
99894
100024
  return createPortal16(
99895
- /* @__PURE__ */ jsx252(
100025
+ /* @__PURE__ */ jsx255(
99896
100026
  "div",
99897
100027
  {
99898
100028
  ref: menuRef,
@@ -99900,7 +100030,7 @@ function SyncIndicatorMenu({ x, y, onClose }) {
99900
100030
  "aria-label": "Linked clips",
99901
100031
  className: `${menuClasses.panel} fixed z-200 min-w-[200px]`,
99902
100032
  style: { left: x, top: y },
99903
- children: /* @__PURE__ */ jsxs199(
100033
+ children: /* @__PURE__ */ jsxs203(
99904
100034
  "button",
99905
100035
  {
99906
100036
  type: "button",
@@ -99912,7 +100042,7 @@ function SyncIndicatorMenu({ x, y, onClose }) {
99912
100042
  onClose();
99913
100043
  },
99914
100044
  children: [
99915
- /* @__PURE__ */ jsx252("span", { className: "w-3 text-studio-accent", children: visible ? "\u2713" : "" }),
100045
+ /* @__PURE__ */ jsx255("span", { className: "w-3 text-studio-accent", children: visible ? "\u2713" : "" }),
99916
100046
  "Show out-of-sync indicators"
99917
100047
  ]
99918
100048
  }
@@ -99927,12 +100057,12 @@ function LinkedSelectionToggle() {
99927
100057
  const setLinkedSelection = useLinkedClipPreferences((s) => s.setLinkedSelection);
99928
100058
  const [menuAt, setMenuAt] = useState162(null);
99929
100059
  const closeMenu = useCallback192(() => setMenuAt(null), []);
99930
- return /* @__PURE__ */ jsxs199(Fragment69, { children: [
99931
- /* @__PURE__ */ jsx252(
100060
+ return /* @__PURE__ */ jsxs203(Fragment70, { children: [
100061
+ /* @__PURE__ */ jsx255(
99932
100062
  Tooltip,
99933
100063
  {
99934
100064
  label: linkedSelection ? "Linked Selection on: a click selects both halves (\u2325-click for one)" : "Linked Selection off: a click selects one clip",
99935
- children: /* @__PURE__ */ jsx252(
100065
+ children: /* @__PURE__ */ jsx255(
99936
100066
  "button",
99937
100067
  {
99938
100068
  type: "button",
@@ -99944,17 +100074,17 @@ function LinkedSelectionToggle() {
99944
100074
  "aria-label": "Linked Selection",
99945
100075
  "aria-pressed": linkedSelection,
99946
100076
  className: linkedSelection ? flatActive : flatIdle,
99947
- children: /* @__PURE__ */ jsx252(LinkSimple, { size: 16, weight: "bold", "aria-hidden": "true" })
100077
+ children: /* @__PURE__ */ jsx255(LinkSimple, { size: 16, weight: "bold", "aria-hidden": "true" })
99948
100078
  }
99949
100079
  )
99950
100080
  }
99951
100081
  ),
99952
- menuAt && /* @__PURE__ */ jsx252(SyncIndicatorMenu, { x: menuAt.x, y: menuAt.y, onClose: closeMenu })
100082
+ menuAt && /* @__PURE__ */ jsx255(SyncIndicatorMenu, { x: menuAt.x, y: menuAt.y, onClose: closeMenu })
99953
100083
  ] });
99954
100084
  }
99955
100085
 
99956
100086
  // src/components/TimelineToolbar.tsx
99957
- import { Fragment as Fragment70, jsx as jsx253, jsxs as jsxs200 } from "react/jsx-runtime";
100087
+ import { Fragment as Fragment71, jsx as jsx256, jsxs as jsxs204 } from "react/jsx-runtime";
99958
100088
  var NO_KEYFRAME_TOGGLE = {
99959
100089
  state: "none",
99960
100090
  isMotionPath: false,
@@ -100073,13 +100203,13 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100073
100203
  window.addEventListener("keydown", onKeyDown);
100074
100204
  return () => window.removeEventListener("keydown", onKeyDown);
100075
100205
  }, []);
100076
- return /* @__PURE__ */ jsx253("div", { className: "border-b border-neutral-800/60", children: /* @__PURE__ */ jsxs200("div", { className: "flex items-center justify-between px-2 py-0.5", children: [
100077
- /* @__PURE__ */ jsxs200("div", { className: "flex items-center gap-0.5", children: [
100078
- showHistory && /* @__PURE__ */ jsx253(TimelineHistoryButtons, { ...history2 }),
100079
- /* @__PURE__ */ jsx253(TimelineToolPicker, { showSelectAroundPlayhead }),
100080
- /* @__PURE__ */ jsx253("div", { "aria-hidden": "true", className: "mx-1 h-4 w-px bg-neutral-800" }),
100081
- /* @__PURE__ */ jsx253(LinkedSelectionToggle, {}),
100082
- /* @__PURE__ */ jsx253(Tooltip, { label: timelineSnapEnabled ? "Snapping on (N)" : "Snapping off (N)", children: /* @__PURE__ */ jsx253(
100206
+ return /* @__PURE__ */ jsx256("div", { className: "border-b border-neutral-800/60", children: /* @__PURE__ */ jsxs204("div", { className: "flex items-center justify-between px-2 py-0.5", children: [
100207
+ /* @__PURE__ */ jsxs204("div", { className: "flex items-center gap-0.5", children: [
100208
+ showHistory && /* @__PURE__ */ jsx256(TimelineHistoryButtons, { ...history2 }),
100209
+ /* @__PURE__ */ jsx256(TimelineToolPicker, { showSelectAroundPlayhead }),
100210
+ /* @__PURE__ */ jsx256("div", { "aria-hidden": "true", className: "mx-1 h-4 w-px bg-neutral-800" }),
100211
+ /* @__PURE__ */ jsx256(LinkedSelectionToggle, {}),
100212
+ /* @__PURE__ */ jsx256(Tooltip, { label: timelineSnapEnabled ? "Snapping on (N)" : "Snapping off (N)", children: /* @__PURE__ */ jsx256(
100083
100213
  "button",
100084
100214
  {
100085
100215
  type: "button",
@@ -100087,14 +100217,14 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100087
100217
  "aria-label": "Toggle timeline snapping",
100088
100218
  "aria-pressed": timelineSnapEnabled,
100089
100219
  className: timelineSnapEnabled ? flatActive : flatIdle,
100090
- children: /* @__PURE__ */ jsx253(Magnet, { size: 16, weight: "bold", "aria-hidden": "true" })
100220
+ children: /* @__PURE__ */ jsx256(Magnet, { size: 16, weight: "bold", "aria-hidden": "true" })
100091
100221
  }
100092
100222
  ) }),
100093
- /* @__PURE__ */ jsx253(
100223
+ /* @__PURE__ */ jsx256(
100094
100224
  Tooltip,
100095
100225
  {
100096
100226
  label: rippleEditEnabled ? "Ripple on: keeps the main track gapless" : "Ripple off: deleting a main-track clip leaves a gap",
100097
- children: /* @__PURE__ */ jsx253(
100227
+ children: /* @__PURE__ */ jsx256(
100098
100228
  "button",
100099
100229
  {
100100
100230
  type: "button",
@@ -100102,12 +100232,12 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100102
100232
  "aria-label": "Toggle ripple edit",
100103
100233
  "aria-pressed": rippleEditEnabled,
100104
100234
  className: rippleEditEnabled ? flatActive : flatIdle,
100105
- children: /* @__PURE__ */ jsx253(RippleEditIcon, { size: 16 })
100235
+ children: /* @__PURE__ */ jsx256(RippleEditIcon, { size: 16 })
100106
100236
  }
100107
100237
  )
100108
100238
  }
100109
100239
  ),
100110
- projectHasAudio && /* @__PURE__ */ jsx253(Tooltip, { label: audioMetersVisible ? "Hide audio meters" : "Show audio meters", children: /* @__PURE__ */ jsx253(
100240
+ projectHasAudio && /* @__PURE__ */ jsx256(Tooltip, { label: audioMetersVisible ? "Hide audio meters" : "Show audio meters", children: /* @__PURE__ */ jsx256(
100111
100241
  "button",
100112
100242
  {
100113
100243
  type: "button",
@@ -100115,15 +100245,15 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100115
100245
  "aria-label": "Toggle audio meters",
100116
100246
  "aria-pressed": audioMetersVisible,
100117
100247
  className: audioMetersVisible ? flatActive : flatIdle,
100118
- children: /* @__PURE__ */ jsx253(AudioMetersIcon, { size: 16 })
100248
+ children: /* @__PURE__ */ jsx256(AudioMetersIcon, { size: 16 })
100119
100249
  }
100120
100250
  ) }),
100121
- showKeyframes && /* @__PURE__ */ jsxs200(Fragment70, { children: [
100122
- /* @__PURE__ */ jsx253(
100251
+ showKeyframes && /* @__PURE__ */ jsxs204(Fragment71, { children: [
100252
+ /* @__PURE__ */ jsx256(
100123
100253
  Tooltip,
100124
100254
  {
100125
100255
  label: keyframePathEndpoint ? "Motion path endpoints cannot be removed" : !onToggleKeyframe ? "Select an animated element to add keyframes" : keyframeIsMotionPath ? keyframeWillExtend ? "Extend motion path to playhead (K)" : keyframeState === "active" ? "Remove waypoint from motion path (K)" : "Add waypoint to motion path (K)" : keyframeState === "active" ? "Remove keyframe at playhead (K)" : keyframeState === "inactive" ? keyframeWillExtend ? "Add keyframe at playhead, extends animation (K)" : "Add keyframe at playhead (K)" : "Add keyframe (K)",
100126
- children: /* @__PURE__ */ jsx253(
100256
+ children: /* @__PURE__ */ jsx256(
100127
100257
  "button",
100128
100258
  {
100129
100259
  type: "button",
@@ -100131,7 +100261,7 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100131
100261
  onClick: onToggleKeyframe,
100132
100262
  "aria-label": keyframePathEndpoint ? "Motion path endpoint" : keyframeIsMotionPath ? keyframeState === "active" ? "Remove motion path waypoint" : keyframeWillExtend ? "Extend motion path to playhead" : "Add motion path waypoint" : keyframeState === "active" ? "Remove keyframe at playhead" : "Add keyframe at playhead",
100133
100263
  className: !onToggleKeyframe ? flatDisabled : `${flatBtn} active:scale-[0.98] hover:bg-hover ${keyframeState === "active" ? "text-accent-ink" : keyframeState === "inactive" ? "text-neutral-400 hover:text-accent-ink" : "text-neutral-600 hover:text-neutral-400"}`,
100134
- children: /* @__PURE__ */ jsx253("svg", { width: "16", height: "16", viewBox: "0 0 10 10", fill: "currentColor", children: keyframeState === "active" ? /* @__PURE__ */ jsx253("path", { d: "M5 0.5L9.5 5L5 9.5L0.5 5Z" }) : /* @__PURE__ */ jsx253(
100264
+ children: /* @__PURE__ */ jsx256("svg", { width: "16", height: "16", viewBox: "0 0 10 10", fill: "currentColor", children: keyframeState === "active" ? /* @__PURE__ */ jsx256("path", { d: "M5 0.5L9.5 5L5 9.5L0.5 5Z" }) : /* @__PURE__ */ jsx256(
100135
100265
  "path",
100136
100266
  {
100137
100267
  d: "M5 1.2L8.8 5L5 8.8L1.2 5Z",
@@ -100144,11 +100274,11 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100144
100274
  )
100145
100275
  }
100146
100276
  ),
100147
- /* @__PURE__ */ jsx253(
100277
+ /* @__PURE__ */ jsx256(
100148
100278
  Tooltip,
100149
100279
  {
100150
100280
  label: autoKeyframeEnabled ? "Auto-record manual edits as keyframes (click to turn off)" : "Manual edits will not be recorded as keyframes (click to turn on)",
100151
- children: /* @__PURE__ */ jsx253(
100281
+ children: /* @__PURE__ */ jsx256(
100152
100282
  "button",
100153
100283
  {
100154
100284
  type: "button",
@@ -100156,9 +100286,9 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100156
100286
  "aria-label": "Auto-record manual edits as keyframes",
100157
100287
  "aria-pressed": autoKeyframeEnabled,
100158
100288
  className: `${flatBtn} active:scale-[0.98] hover:bg-hover ${autoKeyframeEnabled ? "text-danger-ink" : "text-neutral-600 hover:text-neutral-400"}`,
100159
- children: /* @__PURE__ */ jsxs200("svg", { width: "16", height: "16", viewBox: "0 0 10 10", fill: "none", children: [
100160
- /* @__PURE__ */ jsx253("path", { d: "M5 0.7L9.3 5L5 9.3L0.7 5Z", stroke: "currentColor", strokeWidth: "1" }),
100161
- /* @__PURE__ */ jsx253(
100289
+ children: /* @__PURE__ */ jsxs204("svg", { width: "16", height: "16", viewBox: "0 0 10 10", fill: "none", children: [
100290
+ /* @__PURE__ */ jsx256("path", { d: "M5 0.7L9.3 5L5 9.3L0.7 5Z", stroke: "currentColor", strokeWidth: "1" }),
100291
+ /* @__PURE__ */ jsx256(
100162
100292
  "circle",
100163
100293
  {
100164
100294
  cx: "5",
@@ -100179,11 +100309,11 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100179
100309
  const el = selectedElementId ? elements.find((e) => (e.key ?? e.id) === selectedElementId) : null;
100180
100310
  const splittable = el != null && canSplitElement(el);
100181
100311
  const canSplit = splittable && currentTime > el.start && currentTime < el.start + el.duration;
100182
- return /* @__PURE__ */ jsx253(
100312
+ return /* @__PURE__ */ jsx256(
100183
100313
  Tooltip,
100184
100314
  {
100185
100315
  label: canSplit ? `Split at playhead (${splitShortcut})` : splittable ? "Move the playhead inside the clip to split" : "Select a clip to split",
100186
- children: /* @__PURE__ */ jsx253(
100316
+ children: /* @__PURE__ */ jsx256(
100187
100317
  "button",
100188
100318
  {
100189
100319
  type: "button",
@@ -100193,7 +100323,7 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100193
100323
  if (canSplit && el) onSplitElement(el, currentTime);
100194
100324
  },
100195
100325
  className: canSplit ? flatIdle : flatDisabled,
100196
- children: /* @__PURE__ */ jsxs200(
100326
+ children: /* @__PURE__ */ jsxs204(
100197
100327
  "svg",
100198
100328
  {
100199
100329
  width: "16",
@@ -100206,8 +100336,8 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100206
100336
  strokeLinejoin: "round",
100207
100337
  "aria-hidden": "true",
100208
100338
  children: [
100209
- /* @__PURE__ */ jsx253("path", { d: "M5 3 L7 3 L7 13 L5 13" }),
100210
- /* @__PURE__ */ jsx253("path", { d: "M11 3 L9 3 L9 13 L11 13" })
100339
+ /* @__PURE__ */ jsx256("path", { d: "M5 3 L7 3 L7 13 L5 13" }),
100340
+ /* @__PURE__ */ jsx256("path", { d: "M11 3 L9 3 L9 13 L11 13" })
100211
100341
  ]
100212
100342
  }
100213
100343
  )
@@ -100219,11 +100349,11 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100219
100349
  (() => {
100220
100350
  if (!showAddBeat) return null;
100221
100351
  const canAdd = beatAnalysisReady && canAddBeatAt(currentTime);
100222
- return /* @__PURE__ */ jsx253(
100352
+ return /* @__PURE__ */ jsx256(
100223
100353
  Tooltip,
100224
100354
  {
100225
100355
  label: !beatAnalysisReady ? "Add a music track with beat analysis to place beats" : canAdd ? "Add beat at playhead" : "A beat already exists at the playhead",
100226
- children: /* @__PURE__ */ jsx253(
100356
+ children: /* @__PURE__ */ jsx256(
100227
100357
  "button",
100228
100358
  {
100229
100359
  type: "button",
@@ -100233,7 +100363,7 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100233
100363
  if (canAdd) addBeatAtCompositionTime(currentTime);
100234
100364
  },
100235
100365
  className: canAdd ? `${flatBtn} text-text-2 hover:bg-hover hover:text-accent-ink active:scale-[0.98]` : flatDisabled,
100236
- children: /* @__PURE__ */ jsx253("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx253(
100366
+ children: /* @__PURE__ */ jsx256("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx256(
100237
100367
  "path",
100238
100368
  {
100239
100369
  d: "M21 10C21 12.2091 16.9706 14 12 14M21 10C21 7.79086 16.9706 6 12 6C7.02944 6 3 7.79086 3 10M21 10V16C21 18.2091 16.9706 20 12 20M12 14C7.02944 14 3 12.2091 3 10M12 14V20M3 10V16C3 18.2091 7.02944 20 12 20M7 19.3264V13.3264M17 19.3264V13.3264M12 10L20 4",
@@ -100249,13 +100379,13 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100249
100379
  );
100250
100380
  })()
100251
100381
  ] }),
100252
- /* @__PURE__ */ jsxs200("div", { className: "flex items-center gap-0.5", children: [
100382
+ /* @__PURE__ */ jsxs204("div", { className: "flex items-center gap-0.5", children: [
100253
100383
  rightActions,
100254
- /* @__PURE__ */ jsx253(
100384
+ /* @__PURE__ */ jsx256(
100255
100385
  Tooltip,
100256
100386
  {
100257
100387
  label: thumbnailsVisible ? "Hide thumbnails: labels only" : "Show thumbnails: posters stay visible; richer previews appear on interaction",
100258
- children: /* @__PURE__ */ jsx253(
100388
+ children: /* @__PURE__ */ jsx256(
100259
100389
  "button",
100260
100390
  {
100261
100391
  type: "button",
@@ -100263,16 +100393,16 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100263
100393
  "aria-pressed": thumbnailsVisible,
100264
100394
  onClick: () => setThumbnailMode(thumbnailsVisible ? "hidden" : "adaptive"),
100265
100395
  className: `h-7 px-2 rounded-md text-[11px] font-medium transition-colors ${thumbnailsVisible ? "bg-studio-accent/10 text-accent-ink" : "text-neutral-400 hover:bg-hover hover:text-neutral-200"}`,
100266
- children: /* @__PURE__ */ jsx253(Image3, { size: 16, "aria-hidden": "true" })
100396
+ children: /* @__PURE__ */ jsx256(Image3, { size: 16, "aria-hidden": "true" })
100267
100397
  }
100268
100398
  )
100269
100399
  }
100270
100400
  ),
100271
- /* @__PURE__ */ jsx253(
100401
+ /* @__PURE__ */ jsx256(
100272
100402
  Tooltip,
100273
100403
  {
100274
100404
  label: canZoomSelection ? `Zoom to selected clips (${ZOOM_SELECTION_SHORTCUT_HINT})` : "Select a clip to zoom the timeline",
100275
- children: /* @__PURE__ */ jsx253(
100405
+ children: /* @__PURE__ */ jsx256(
100276
100406
  "button",
100277
100407
  {
100278
100408
  type: "button",
@@ -100280,12 +100410,12 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100280
100410
  "aria-label": canZoomSelection ? "Zoom to selected clips" : "Select a clip to zoom the timeline",
100281
100411
  onClick: () => zoomTimelineToSelectedClips(),
100282
100412
  className: canZoomSelection ? flatIdle : flatDisabled,
100283
- children: /* @__PURE__ */ jsx253(FrameCorners2, { size: 16, "aria-hidden": "true" })
100413
+ children: /* @__PURE__ */ jsx256(FrameCorners2, { size: 16, "aria-hidden": "true" })
100284
100414
  }
100285
100415
  )
100286
100416
  }
100287
100417
  ),
100288
- /* @__PURE__ */ jsx253(Tooltip, { label: "Fit timeline to width", children: /* @__PURE__ */ jsx253(
100418
+ /* @__PURE__ */ jsx256(Tooltip, { label: "Fit timeline to width", children: /* @__PURE__ */ jsx256(
100289
100419
  "button",
100290
100420
  {
100291
100421
  type: "button",
@@ -100293,20 +100423,20 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100293
100423
  "aria-label": "Fit timeline to width",
100294
100424
  "aria-pressed": zoomMode === "fit",
100295
100425
  className: `h-7 px-2 rounded-md text-[11px] font-medium transition-colors ${zoomMode === "fit" ? "bg-studio-accent/10 text-accent-ink" : "text-neutral-400 hover:bg-hover hover:text-neutral-200"}`,
100296
- children: /* @__PURE__ */ jsx253(ArrowsOutLineHorizontal, { size: 16, "aria-hidden": "true" })
100426
+ children: /* @__PURE__ */ jsx256(ArrowsOutLineHorizontal, { size: 16, "aria-hidden": "true" })
100297
100427
  }
100298
100428
  ) }),
100299
- /* @__PURE__ */ jsx253(Tooltip, { label: "Zoom out", children: /* @__PURE__ */ jsx253(
100429
+ /* @__PURE__ */ jsx256(Tooltip, { label: "Zoom out", children: /* @__PURE__ */ jsx256(
100300
100430
  "button",
100301
100431
  {
100302
100432
  type: "button",
100303
100433
  "aria-label": "Zoom out",
100304
100434
  onClick: () => zoomTimelineStep("out"),
100305
100435
  className: flatIdle,
100306
- children: /* @__PURE__ */ jsx253(MagnifyingGlassMinus, { size: 16, "aria-hidden": "true" })
100436
+ children: /* @__PURE__ */ jsx256(MagnifyingGlassMinus, { size: 16, "aria-hidden": "true" })
100307
100437
  }
100308
100438
  ) }),
100309
- /* @__PURE__ */ jsx253(
100439
+ /* @__PURE__ */ jsx256(
100310
100440
  "input",
100311
100441
  {
100312
100442
  type: "range",
@@ -100321,17 +100451,17 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100321
100451
  className: "mx-1 h-6 w-[96px] cursor-pointer appearance-none bg-transparent [&::-webkit-slider-runnable-track]:h-[2px] [&::-webkit-slider-runnable-track]:rounded-full [&::-webkit-slider-runnable-track]:bg-neutral-700 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-[10px] [&::-webkit-slider-thumb]:h-[10px] [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-text-0 [&::-webkit-slider-thumb]:-mt-1 [&::-webkit-slider-thumb]:shadow-[0_0_0_2px_#0a0a0a,0_1px_3px_rgba(0,0,0,0.5)] [&::-webkit-slider-thumb]:cursor-grab [&::-webkit-slider-thumb:active]:cursor-grabbing"
100322
100452
  }
100323
100453
  ),
100324
- /* @__PURE__ */ jsx253(Tooltip, { label: "Zoom in", children: /* @__PURE__ */ jsx253(
100454
+ /* @__PURE__ */ jsx256(Tooltip, { label: "Zoom in", children: /* @__PURE__ */ jsx256(
100325
100455
  "button",
100326
100456
  {
100327
100457
  type: "button",
100328
100458
  "aria-label": "Zoom in",
100329
100459
  onClick: () => zoomTimelineStep("in"),
100330
100460
  className: flatIdle,
100331
- children: /* @__PURE__ */ jsx253(MagnifyingGlassPlus, { size: 16, "aria-hidden": "true" })
100461
+ children: /* @__PURE__ */ jsx256(MagnifyingGlassPlus, { size: 16, "aria-hidden": "true" })
100332
100462
  }
100333
100463
  ) }),
100334
- /* @__PURE__ */ jsx253(
100464
+ /* @__PURE__ */ jsx256(
100335
100465
  "span",
100336
100466
  {
100337
100467
  className: "ml-1 w-[38px] text-right font-mono text-[11px] tabular-nums text-neutral-500 select-none",
@@ -100344,18 +100474,18 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
100344
100474
  });
100345
100475
 
100346
100476
  // src/components/StudioSplash.tsx
100347
- import { jsx as jsx254, jsxs as jsxs201 } from "react/jsx-runtime";
100477
+ import { jsx as jsx257, jsxs as jsxs205 } from "react/jsx-runtime";
100348
100478
  function StudioSplash({ waiting }) {
100349
- return /* @__PURE__ */ jsx254("div", { className: "h-full w-full bg-neutral-950 flex items-center justify-center", children: waiting ? /* @__PURE__ */ jsxs201("div", { className: "flex flex-col items-center gap-3 text-center px-6", role: "status", children: [
100350
- /* @__PURE__ */ jsx254("div", { className: "w-4 h-4 rounded-full border-2 border-neutral-700 border-t-neutral-500 animate-spin motion-reduce:animate-none" }),
100351
- /* @__PURE__ */ jsxs201("p", { className: "text-xs text-neutral-600", children: [
100479
+ return /* @__PURE__ */ jsx257("div", { className: "h-full w-full bg-neutral-950 flex items-center justify-center", children: waiting ? /* @__PURE__ */ jsxs205("div", { className: "flex flex-col items-center gap-3 text-center px-6", role: "status", children: [
100480
+ /* @__PURE__ */ jsx257("div", { className: "w-4 h-4 rounded-full border-2 border-neutral-700 border-t-neutral-500 animate-spin motion-reduce:animate-none" }),
100481
+ /* @__PURE__ */ jsxs205("p", { className: "text-xs text-neutral-600", children: [
100352
100482
  "Waiting for preview server\u2026 run",
100353
100483
  " ",
100354
- /* @__PURE__ */ jsx254("code", { className: "text-neutral-500 font-mono", children: "npm run dev" })
100484
+ /* @__PURE__ */ jsx257("code", { className: "text-neutral-500 font-mono", children: "npm run dev" })
100355
100485
  ] })
100356
- ] }) : /* @__PURE__ */ jsxs201("div", { className: "flex flex-col items-center gap-3 text-center px-6", role: "status", children: [
100357
- /* @__PURE__ */ jsx254("div", { className: "w-4 h-4 rounded-full bg-studio-accent animate-pulse motion-reduce:animate-none" }),
100358
- /* @__PURE__ */ jsx254("p", { className: "text-xs text-neutral-600", children: "Connecting to project\u2026" })
100486
+ ] }) : /* @__PURE__ */ jsxs205("div", { className: "flex flex-col items-center gap-3 text-center px-6", role: "status", children: [
100487
+ /* @__PURE__ */ jsx257("div", { className: "w-4 h-4 rounded-full bg-studio-accent animate-pulse motion-reduce:animate-none" }),
100488
+ /* @__PURE__ */ jsx257("p", { className: "text-xs text-neutral-600", children: "Connecting to project\u2026" })
100359
100489
  ] }) });
100360
100490
  }
100361
100491
 
@@ -100625,7 +100755,7 @@ function useActiveComposition({
100625
100755
  }
100626
100756
 
100627
100757
  // src/App.tsx
100628
- import { jsx as jsx255, jsxs as jsxs202 } from "react/jsx-runtime";
100758
+ import { jsx as jsx258, jsxs as jsxs206 } from "react/jsx-runtime";
100629
100759
  var getTimelineSelectionSet = () => usePlayerStore.getState().selectedElementIds;
100630
100760
  function StudioApp({ readOnlyPreview = false, readOnlyPreviewReason } = {}) {
100631
100761
  const { projectId, resolving, waitingForServer } = useServerConnection();
@@ -100996,7 +101126,7 @@ function StudioApp({ readOnlyPreview = false, readOnlyPreviewReason } = {}) {
100996
101126
  refreshPreviewDocumentVersion
100997
101127
  });
100998
101128
  const timelineToolbar = useMemo90(
100999
- () => /* @__PURE__ */ jsx255(
101129
+ () => /* @__PURE__ */ jsx258(
101000
101130
  TimelineToolbar,
101001
101131
  {
101002
101132
  domEditSession: toolbarSession,
@@ -101044,15 +101174,15 @@ function StudioApp({ readOnlyPreview = false, readOnlyPreviewReason } = {}) {
101044
101174
  projectId
101045
101175
  );
101046
101176
  if (resolving || waitingForServer || !projectId)
101047
- return /* @__PURE__ */ jsx255(StudioSplash, { waiting: waitingForServer });
101048
- return /* @__PURE__ */ jsx255(StudioShellProvider, { value: studioCtxValue, children: /* @__PURE__ */ jsx255(StudioPlaybackProvider, { value: studioCtxValue, children: /* @__PURE__ */ jsx255(PanelLayoutProvider, { value: layout, children: /* @__PURE__ */ jsx255(FileManagerProvider, { value: fileManager, children: /* @__PURE__ */ jsx255(DomEditProvider, { value: domEditSession, children: /* @__PURE__ */ jsxs202(
101177
+ return /* @__PURE__ */ jsx258(StudioSplash, { waiting: waitingForServer });
101178
+ return /* @__PURE__ */ jsx258(StudioShellProvider, { value: studioCtxValue, children: /* @__PURE__ */ jsx258(StudioPlaybackProvider, { value: studioCtxValue, children: /* @__PURE__ */ jsx258(PanelLayoutProvider, { value: layout, children: /* @__PURE__ */ jsx258(FileManagerProvider, { value: fileManager, children: /* @__PURE__ */ jsx258(DomEditProvider, { value: domEditSession, children: /* @__PURE__ */ jsxs206(
101049
101179
  "div",
101050
101180
  {
101051
101181
  className: "flex flex-col h-full w-full bg-neutral-950 relative",
101052
101182
  onDragOver: fileDrop.onDragOver,
101053
101183
  onDrop: fileDrop.onDrop,
101054
101184
  children: [
101055
- /* @__PURE__ */ jsx255(
101185
+ /* @__PURE__ */ jsx258(
101056
101186
  StudioHeader,
101057
101187
  {
101058
101188
  captureFrameHref: frameCapture.captureFrameHref,
@@ -101065,17 +101195,17 @@ function StudioApp({ readOnlyPreview = false, readOnlyPreviewReason } = {}) {
101065
101195
  onExport: handleExport
101066
101196
  }
101067
101197
  ),
101068
- previewPersistence.domEditSaveQueuePaused && !externalFileChanges.blocked && /* @__PURE__ */ jsx255(
101198
+ previewPersistence.domEditSaveQueuePaused && !externalFileChanges.blocked && /* @__PURE__ */ jsx258(
101069
101199
  SaveQueuePausedBanner,
101070
101200
  {
101071
101201
  message: previewPersistence.domEditSaveQueuePaused,
101072
101202
  onRetry: previewPersistence.resetDomEditSaveQueueBreaker
101073
101203
  }
101074
101204
  ),
101075
- /* @__PURE__ */ jsx255(ExternalFileConflictBanner, { coordinator: externalFileChanges }),
101076
- sdkHandle.unreachableProject && /* @__PURE__ */ jsx255(ProjectUnreachableBanner, { projectId: sdkHandle.unreachableProject }),
101077
- sdkHandle.compositionMissing && activeCompPath && /* @__PURE__ */ jsx255(CompositionMissingBanner, { path: activeCompPath }),
101078
- /* @__PURE__ */ jsx255(
101205
+ /* @__PURE__ */ jsx258(ExternalFileConflictBanner, { coordinator: externalFileChanges }),
101206
+ sdkHandle.unreachableProject && /* @__PURE__ */ jsx258(ProjectUnreachableBanner, { projectId: sdkHandle.unreachableProject }),
101207
+ sdkHandle.compositionMissing && activeCompPath && /* @__PURE__ */ jsx258(CompositionMissingBanner, { path: activeCompPath }),
101208
+ /* @__PURE__ */ jsx258(
101079
101209
  EditorShell,
101080
101210
  {
101081
101211
  readOnlyPreview,
@@ -101119,7 +101249,7 @@ function StudioApp({ readOnlyPreview = false, readOnlyPreviewReason } = {}) {
101119
101249
  gestureOverlay
101120
101250
  }
101121
101251
  ),
101122
- /* @__PURE__ */ jsx255(
101252
+ /* @__PURE__ */ jsx258(
101123
101253
  StudioOverlays,
101124
101254
  {
101125
101255
  projectId,