@kolkrabbi/design-editor 0.47.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { E as e, T as t } from "./__vite-browser-external-y2xWjzgx.js";
2
- import { Ir as n, ir as r, nr as i, rr as a } from "./rolls-DugKaHUw.js";
3
- import { A as o, D as s, E as c, M as l, N as u, O as d, P as f, S as p, T as m, _ as h, b as g, d as _, f as v, g as y, j as b, k as x, w as S, x as C, y as w } from "./store-BMGP1qou.js";
4
- import { i as T, n as E } from "./Timeline-EbecYeGh.js";
5
- import { a as D, i as O, n as k, r as A, t as j } from "./src-BlvCHYVY.js";
6
- import { F as M, P as N, _n as P, a as F, c as I, cn as L, ct as ee, d as R, dn as z, f as B, hn as V, ht as H, i as U, in as W, it as G, l as K, lt as q, m as J, n as Y, nn as X, nt as Z, o as Q, ot as $, p as te, pt as ne, r as re, rt as ie, s as ae, sn as oe, st as se, u as ce, un as le, vn as ue, yt as de } from "./core-9UlJPBwX.js";
7
- export { Z as AppSettingsSections, ne as BRAND, j as DesignEditor, j as default, ie as DisplaySettingsDrawer, J as EditorProviders, q as FilesDialog, Y as FloatDesignEditor, k as FloatLabsView, _ as GeneratorLibraryProvider, O as LABS_DRAFT_KEY, v as LIBRARY_SLOT_KEYS, D as LabsView, L as MODES, A as MobileView, R as OutputCanvas, B as OutputStage, te as OutputView, I as RAIL_EXTRA_PREFIX, i as STYLE_OPTIONS, E as TimelineRail, C as UnauthorizedError, le as VIEW_PATHS, a as VariantContext, $ as closeFiles, H as comboLabel, re as copyStored, z as currentView, U as duplicateStored, p as getLibraryApi, S as inviteFromRequest, X as isMobileDevice, m as listInviteRequests, y as loadLibrary, c as mintInvite, se as openFiles, h as readLibraryRaw, n as registerPack, F as removeStored, Q as renameStored, s as requestInvite, d as setLibraryApi, N as setMediaClient, M as setMediaProxyBase, V as setMode, P as setNavigator, K as setRailExtras, t as setSettingsStore, ae as setThumbStored, W as setWantsDesktop, de as shortcutsBySection, x as signInLibrary, o as signOutLibrary, b as signUpLibrary, w as subscribeLibrary, T as timelineView, l as updateAccount, u as useAccount, e as useAppSettings, ee as useFilesDialog, g as useGeneratorLibrary, f as useLibrarySession, ce as useRailExtras, G as useSettingsSections, r as useVariant, oe as wantsDesktop, ue as withView };
2
+ import { Nr as n } from "./rolls-Cnu6g8th.js";
3
+ import { A as r, D as i, E as a, M as o, N as s, O as c, P as l, S as u, T as d, _ as f, b as p, d as m, f as h, g, j as _, k as v, w as y, x as b, y as x } from "./store-YIW6P2zN.js";
4
+ import { i as S, n as C } from "./Timeline-CRr43b4B.js";
5
+ import { i as w, n as T, r as E, t as D } from "./src-3UkpFoNW.js";
6
+ import { M as O, N as k, a as ee, an as A, at as j, bt as M, c as N, cn as P, ct as F, d as I, dn as L, et as R, f as z, fn as B, gn as V, gt as H, i as U, it as W, l as G, ln as K, lt as q, mt as J, n as Y, nt as X, o as Z, p as Q, r as $, rn as te, rt as ne, s as re, st as ie, tt as ae, u as oe, ut as se, vn as ce, yn as le } from "./core-BbKj9Svq.js";
7
+ export { R as AppSettingsSections, J as BRAND, D as DesignEditor, D as default, ae as DisplaySettingsDrawer, Q as EditorProviders, se as FilesDialog, m as GeneratorLibraryProvider, E as LABS_DRAFT_KEY, h as LIBRARY_SLOT_KEYS, w as LabsView, K as MODES, T as MobileView, oe as OutputCanvas, I as OutputStage, z as OutputView, re as RAIL_EXTRA_PREFIX, ne as STYLE_OPTIONS, C as TimelineRail, b as UnauthorizedError, L as VIEW_PATHS, W as VariantContext, ie as closeFiles, H as comboLabel, Y as copyStored, B as currentView, $ as duplicateStored, u as getLibraryApi, y as inviteFromRequest, te as isMobileDevice, d as listInviteRequests, g as loadLibrary, a as mintInvite, F as openFiles, f as readLibraryRaw, n as registerPack, U as removeStored, ee as renameStored, i as requestInvite, c as setLibraryApi, O as setMediaClient, k as setMediaProxyBase, V as setMode, ce as setNavigator, N as setRailExtras, t as setSettingsStore, Z as setThumbStored, A as setWantsDesktop, M as shortcutsBySection, v as signInLibrary, r as signOutLibrary, _ as signUpLibrary, x as subscribeLibrary, S as timelineView, o as updateAccount, s as useAccount, e as useAppSettings, q as useFilesDialog, p as useGeneratorLibrary, l as useLibrarySession, G as useRailExtras, X as useSettingsSections, j as useVariant, P as wantsDesktop, le as withView };
@@ -1,7 +1,7 @@
1
1
  import { A as e, D as t, M as n, P as r, a as i, h as a, j as o, k as s, o as c } from "./__vite-browser-external-y2xWjzgx.js";
2
- import { ar as l, cr as u, dr as d, fr as f, gr as p, hr as m, lr as h, mr as g, or as _, pr as v, sr as y, vr as b } from "./rolls-DugKaHUw.js";
3
- import { a as x, i as S, o as C, s as w } from "./useLayerEdit-B5nF5I9b.js";
4
- import { o as T, u as E } from "./TreePicker-2RUSyGl4.js";
2
+ import { ar as l, cr as u, dr as d, fr as f, hr as p, ir as m, lr as h, nr as g, or as _, pr as v, rr as y, ur as b } from "./rolls-Cnu6g8th.js";
3
+ import { a as x, i as S, o as C, s as w } from "./useLayerEdit-W_Tf3adq.js";
4
+ import { o as T, u as E } from "./TreePicker-DXsAlHK6.js";
5
5
  import { useSyncExternalStore as D } from "react";
6
6
  //#region src/loops/lib/fill.js
7
7
  var O = [
@@ -4702,7 +4702,7 @@ var yt = 1e3, bt = /* @__PURE__ */ new Map(), xt = /* @__PURE__ */ new Set(), St
4702
4702
  function Tt(e, t, n) {
4703
4703
  if (!n) return null;
4704
4704
  let r = wt(e, t), i = bt.get(r);
4705
- if (!i) return !xt.has(r) && !St.has(r) && (xt.add(r), b(e, t, !1).then((e) => {
4705
+ if (!i) return !xt.has(r) && !St.has(r) && (xt.add(r), p(e, t, !1).then((e) => {
4706
4706
  bt.set(r, e);
4707
4707
  }).catch(() => {
4708
4708
  St.add(r);
@@ -28889,7 +28889,7 @@ var lm = [
28889
28889
  noRandom: !0,
28890
28890
  label: "Mode",
28891
28891
  type: "select",
28892
- options: m,
28892
+ options: f,
28893
28893
  default: "print-press"
28894
28894
  },
28895
28895
  {
@@ -28953,12 +28953,12 @@ var lm = [
28953
28953
  e.fillStyle = a.bg, e.fillRect(0, 0, r, i);
28954
28954
  let o = vm(typeof a.svgSrc == "string" && a.svgSrc || mm, a.frequency) ?? vm(mm, a.frequency);
28955
28955
  if (!o || o.error || !o.elements.length) return;
28956
- let s = Math.round(a.motion), c = t * n * s, l = s * 2, u = a.seed + (l > 0 ? Math.floor(n * l) % l * 101 : 0), d = Math.max(0, a.amount), f = Math.max(1, a.frequency <= 50 ? a.frequency / 6 : 50 / 6 + (a.frequency - 50) / 8), m = a.smoothness > 0 ? Math.max(1, Math.round(a.smoothness / 30)) : 0, [h, g, _, v] = o.vb, y = Math.min(r * a.size / _, i * a.size / v);
28957
- e.save(), e.translate((r - _ * y) / 2 - h * y, (i - v * y) / 2 - g * y), e.scale(y, y), o.elements.forEach((t, n) => {
28958
- let r = t.pts.map((e, t) => p(a.mode, t + n * 1e3, e.t, d, f, u, c)), i = r;
28959
- m > 0 && (i = r.map((e, n) => {
28956
+ let s = Math.round(a.motion), c = t * n * s, l = s * 2, u = a.seed + (l > 0 ? Math.floor(n * l) % l * 101 : 0), d = Math.max(0, a.amount), f = Math.max(1, a.frequency <= 50 ? a.frequency / 6 : 50 / 6 + (a.frequency - 50) / 8), p = a.smoothness > 0 ? Math.max(1, Math.round(a.smoothness / 30)) : 0, [m, h, g, _] = o.vb, y = Math.min(r * a.size / g, i * a.size / _);
28957
+ e.save(), e.translate((r - g * y) / 2 - m * y, (i - _ * y) / 2 - h * y), e.scale(y, y), o.elements.forEach((t, n) => {
28958
+ let r = t.pts.map((e, t) => v(a.mode, t + n * 1e3, e.t, d, f, u, c)), i = r;
28959
+ p > 0 && (i = r.map((e, n) => {
28960
28960
  let i = 0, a = 0, o = 0;
28961
- for (let e = -m; e <= m; e++) {
28961
+ for (let e = -p; e <= p; e++) {
28962
28962
  let s = n + e;
28963
28963
  if (t.closed) s = (s + r.length) % r.length;
28964
28964
  else if (s < 0 || s >= r.length) continue;
@@ -28974,8 +28974,8 @@ var lm = [
28974
28974
  y: e.y + i[t].dy
28975
28975
  })), t.closed), s = (e) => e === "currentColor" ? a.ink : e, l = s(t.fill ?? a.ink);
28976
28976
  l && l !== "none" && (e.fillStyle = l, e.fill(o));
28977
- let h = s(t.stroke);
28978
- h && h !== "none" && (e.strokeStyle = h, e.lineWidth = t.strokeWidth || 1, e.stroke(o));
28977
+ let m = s(t.stroke);
28978
+ m && m !== "none" && (e.strokeStyle = m, e.lineWidth = t.strokeWidth || 1, e.stroke(o));
28979
28979
  }), e.restore();
28980
28980
  }
28981
28981
  }], xm = (e, t, n, r = {}, i) => ({
@@ -36165,11 +36165,11 @@ var jv = Object.fromEntries(eh.params.map((e) => [e.key, e.default]));
36165
36165
  //#endregion
36166
36166
  //#region src/generate/lineSwell/index.js
36167
36167
  function Mv(e, t, n = {}, r) {
36168
- let i = _(e).call, a = {
36168
+ let i = y(e).call, a = {
36169
36169
  ...t,
36170
36170
  ...r == null ? {} : { waveT: r }
36171
36171
  };
36172
- return i.fn === "vals" ? g(a, i.name, n) : v[i.fn](a, n);
36172
+ return i.fn === "vals" ? d(a, i.name, n) : b[i.fn](a, n);
36173
36173
  }
36174
36174
  var Nv = (e, t) => [
36175
36175
  e[0] * t[0] + e[2] * t[1],
@@ -36268,7 +36268,7 @@ var zv = {
36268
36268
  section: "Line Swell"
36269
36269
  })),
36270
36270
  draw(e, t, n, r) {
36271
- _(t.lsForm) && Lv(e, Mv(t.lsForm, t.lsValues ?? {}, Rv(n, r, h(t.lsForm, t.lsValues ?? {}))), n);
36271
+ y(t.lsForm) && Lv(e, Mv(t.lsForm, t.lsValues ?? {}, Rv(n, r, _(t.lsForm, t.lsValues ?? {}))), n);
36272
36272
  }
36273
36273
  }, Bv = /* @__PURE__ */ r({
36274
36274
  body: () => Zv,
@@ -36438,7 +36438,7 @@ var ey = new Set([
36438
36438
  })) } : {},
36439
36439
  ...e.unit ? { format: (t) => `${t}${e.unit === "°" ? "°" : ` ${e.unit}`}` } : {}
36440
36440
  }), iy = (e) => e.sections.flatMap((e) => e.controls.map((t) => ry(t, e.title))), ay = (e, t) => Object.fromEntries(e.sections.flatMap((e) => e.controls.map((e) => [e.name, t[ty(e.name)]]))), oy = (e) => e.split(/[,:]/)[0], sy = (e) => e ? { rings: Av([...e].pop()).map((e) => e.map(([e, t]) => [e * 5 / 7, t])) } : {}, cy = (e) => {
36441
- let t = d.forms[e];
36441
+ let t = u.forms[e];
36442
36442
  if (!t.motion) return t;
36443
36443
  let n = [...t.sections];
36444
36444
  return n.splice(t.motion.at, 0, {
@@ -36456,7 +36456,7 @@ function dy(e) {
36456
36456
  };
36457
36457
  return {
36458
36458
  id: ly(e),
36459
- label: e === "master" ? "Swell" : y({ form: e }),
36459
+ label: e === "master" ? "Swell" : m({ form: e }),
36460
36460
  group: "lineswell",
36461
36461
  kind: "2d",
36462
36462
  duration: 4,
@@ -36467,32 +36467,32 @@ function dy(e) {
36467
36467
  kind: "form"
36468
36468
  },
36469
36469
  draw(n, r, a, o, s) {
36470
- let c = ay(t, s), u = c.motion && c.motion !== "off", d = e === "master" && c.source === "wave" || u, { ink: f, ground: p } = l(e, c), m = JSON.stringify([
36470
+ let c = ay(t, s), l = c.motion && c.motion !== "off", u = e === "master" && c.source === "wave" || l, { ink: d, ground: f } = g(e, c), p = JSON.stringify([
36471
36471
  a,
36472
36472
  o,
36473
- d ? r : 0,
36473
+ u ? r : 0,
36474
36474
  c
36475
36475
  ]);
36476
- if (m !== i.key) {
36476
+ if (p !== i.key) {
36477
36477
  let t = String(c.letter || (c.shape === "letter" ? "R" : "")).trim(), n = Mv(e, {
36478
36478
  ...c,
36479
- ...u ? { motionT: r } : {}
36480
- }, sy(t), e === "master" && c.source === "wave" ? r : void 0), s = Math.min(a, o) / 800, l = Pv(n.rot), d = new Path2D();
36479
+ ...l ? { motionT: r } : {}
36480
+ }, sy(t), e === "master" && c.source === "wave" ? r : void 0), s = Math.min(a, o) / 800, u = Pv(n.rot), d = new Path2D();
36481
36481
  for (let e of [
36482
36482
  ...Fv(n.d),
36483
36483
  ...Fv(n.d2),
36484
36484
  ...Fv(n.dh),
36485
36485
  ...Fv(n.d3)
36486
36486
  ]) e.forEach(([e, t], n) => {
36487
- let r = a / 2 + (l[0] * e + l[2] * t + l[4] - 600) * s, i = o / 2 + (l[1] * e + l[3] * t + l[5] - 400) * s;
36487
+ let r = a / 2 + (u[0] * e + u[2] * t + u[4] - 600) * s, i = o / 2 + (u[1] * e + u[3] * t + u[5] - 400) * s;
36488
36488
  n ? d.lineTo(r, i) : d.moveTo(r, i);
36489
36489
  }), d.closePath();
36490
36490
  i = {
36491
- key: m,
36491
+ key: p,
36492
36492
  path: d
36493
36493
  };
36494
36494
  }
36495
- n.fillStyle = p, n.fillRect(0, 0, a, o), n.fillStyle = f, n.fill(i.path, "evenodd");
36495
+ n.fillStyle = f, n.fillRect(0, 0, a, o), n.fillStyle = d, n.fill(i.path, "evenodd");
36496
36496
  }
36497
36497
  };
36498
36498
  }
@@ -36521,10 +36521,10 @@ function hy(e, t, n) {
36521
36521
  } : t;
36522
36522
  return Bv[r](i, n);
36523
36523
  }
36524
- return r === "keys" ? f(t, n, sy(t.letter ? String(t.letter).trim() : "")) : v[r](t, n);
36524
+ return r === "keys" ? h(t, n, sy(t.letter ? String(t.letter).trim() : "")) : b[r](t, n);
36525
36525
  }
36526
36526
  function gy(e) {
36527
- let t = d.loops[e], n = iy(t), { w: r, h: i } = t.frame, a = {
36527
+ let t = u.loops[e], n = iy(t), { w: r, h: i } = t.frame, a = {
36528
36528
  key: "",
36529
36529
  v: null
36530
36530
  };
@@ -36551,12 +36551,12 @@ function gy(e) {
36551
36551
  }
36552
36552
  };
36553
36553
  }
36554
- var _y = Object.keys(d.forms), vy = Object.keys(d.loops), yy = [..._y.map(dy), ...vy.map(gy)], by = {
36554
+ var _y = Object.keys(u.forms), vy = Object.keys(u.loops), yy = [..._y.map(dy), ...vy.map(gy)], by = {
36555
36555
  blinds: "Presets",
36556
36556
  master: "Master"
36557
36557
  }, xy = (e) => ({
36558
36558
  id: `lineswell-board-${e}`,
36559
- label: e === "master" ? "Swell" : y({ form: e }),
36559
+ label: e === "master" ? "Swell" : m({ form: e }),
36560
36560
  loop: ly(e),
36561
36561
  sub: by[e] ?? "Line Effects",
36562
36562
  params: {}
@@ -36569,7 +36569,7 @@ var _y = Object.keys(d.forms), vy = Object.keys(d.loops), yy = [..._y.map(dy), .
36569
36569
  "Wave shapes"
36570
36570
  ], Cy = [
36571
36571
  ..._y.map(xy),
36572
- ..._y.flatMap((e) => u(e).map((t) => ({
36572
+ ..._y.flatMap((e) => l(e).map((t) => ({
36573
36573
  id: `lineswell-${t.id}`,
36574
36574
  label: t.label,
36575
36575
  loop: ly(e),
@@ -36578,9 +36578,9 @@ var _y = Object.keys(d.forms), vy = Object.keys(d.loops), yy = [..._y.map(dy), .
36578
36578
  }))),
36579
36579
  ...vy.map((e) => ({
36580
36580
  id: `lineswell-board-${e}`,
36581
- label: oy(d.loops[e].title),
36581
+ label: oy(u.loops[e].title),
36582
36582
  loop: uy(e),
36583
- sub: d.loops[e].page,
36583
+ sub: u.loops[e].page,
36584
36584
  params: {}
36585
36585
  }))
36586
36586
  ].sort((e, t) => Sy.indexOf(e.sub) - Sy.indexOf(t.sub)), wy = [
@@ -1,8 +1,8 @@
1
- import { $t as e, F as t, Gn as n, Ir as r, J as i, Kn as a, L as o, Xn as s, Xt as c, Yn as l, Zn as u, a as d, d as f, er as p, n as m, o as h, qn as g, t as _, u as v, xn as y } from "./rolls-DugKaHUw.js";
2
- import { n as b, r as x, t as S } from "./useLayerEdit-B5nF5I9b.js";
3
- import { a as C, at as w, ct as T, f as E, i as D, it as O, l as k, lt as A, nt as j, o as M, ot as N, p as P, r as F, rt as I, s as L, st as R, tt as z, u as B } from "./effectCategories-CCpYmxS0.js";
4
- import { n as ee, t as V } from "./TreePicker-2RUSyGl4.js";
5
- import { t as H } from "./BindDot-B85UV79g.js";
1
+ import { $t as e, F as t, Gn as n, J as r, Kn as i, L as a, Nr as o, Xn as s, Xt as c, Yn as l, Zn as u, a as d, d as f, er as p, n as m, o as h, qn as g, t as _, u as v, xn as y } from "./rolls-Cnu6g8th.js";
2
+ import { n as b, r as x, t as S } from "./useLayerEdit-W_Tf3adq.js";
3
+ import { a as C, at as w, ct as T, f as E, i as D, it as O, l as k, lt as A, nt as j, o as M, ot as N, p as P, r as F, rt as I, s as L, st as R, tt as z, u as B } from "./effectCategories-wHY9ih8L.js";
4
+ import { n as ee, t as V } from "./TreePicker-DXsAlHK6.js";
5
+ import { t as H } from "./BindDot-Cx-M0iQt.js";
6
6
  import { Tooltip as U, XYPad as W } from "@kolkrabbi/kol-component";
7
7
  import { useEffect as te, useRef as ne, useState as G } from "react";
8
8
  import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
@@ -15,7 +15,7 @@ var Y = [{
15
15
  label: "Animation"
16
16
  }];
17
17
  function X() {
18
- let { selectedId: e, layers: t } = i(), n = e && e !== "canvas" ? y(t, e) : null;
18
+ let { selectedId: e, layers: t } = r(), n = e && e !== "canvas" ? y(t, e) : null;
19
19
  return /* @__PURE__ */ q("div", {
20
20
  className: "kol-compose-rail kol-compose-rail--inspector",
21
21
  children: /* @__PURE__ */ q("div", {
@@ -28,7 +28,7 @@ function X() {
28
28
  });
29
29
  }
30
30
  function re({ layer: n }) {
31
- let r = o(), { palette: s, addFilter: l, removeFilter: d, toggleFilter: f, moveFilter: p, replaceFilter: m } = i(), h = S(n.id, { history: "coalesce" }), _ = c(n), v = _.some((e) => e.def?.kind === "engine"), { effectable: y, engineHost: x, engineLoop: w } = D(n), [T, O] = G(_.length ? 0 : null), A = T == null ? null : _[T] ?? null, [j, M] = G("effect"), N = ne(_.map((e) => e.key));
31
+ let o = a(), { palette: s, addFilter: l, removeFilter: d, toggleFilter: f, moveFilter: p, replaceFilter: m } = r(), h = S(n.id, { history: "coalesce" }), _ = c(n), v = _.some((e) => e.def?.kind === "engine"), { effectable: y, engineHost: x, engineLoop: w } = D(n), [T, O] = G(_.length ? 0 : null), A = T == null ? null : _[T] ?? null, [j, M] = G("effect"), N = ne(_.map((e) => e.key));
32
32
  if (te(() => {
33
33
  let e = N.current, t = _.map((e) => e.key);
34
34
  N.current = t;
@@ -78,23 +78,23 @@ function re({ layer: n }) {
78
78
  }), U = A?.def ? k(A.def.id) : null, W = U ? A.def.params.find((e) => e.key === U) : null, X = A?.def ? A.def.params.filter((t) => e(t) !== "anim" && t !== W) : [];
79
79
  return /* @__PURE__ */ J("div", {
80
80
  className: "flex flex-col gap-4",
81
- children: [_.map((e, i) => /* @__PURE__ */ J("div", {
81
+ children: [_.map((e, r) => /* @__PURE__ */ J("div", {
82
82
  className: "flex flex-col gap-3",
83
83
  children: [/* @__PURE__ */ q(ie, {
84
84
  stage: e,
85
- selected: i === T,
86
- options: P(i),
87
- onSelect: () => O(i),
85
+ selected: r === T,
86
+ options: P(r),
87
+ onSelect: () => O(r),
88
88
  onPick: (t) => {
89
- t && t !== e.id && m(n.id, i, t), O(i);
89
+ t && t !== e.id && m(n.id, r, t), O(r);
90
90
  },
91
- onToggle: () => f(n.id, i),
92
- onRemove: () => d(n.id, i),
93
- onUp: () => p(n.id, i, i - 1),
94
- onDown: () => p(n.id, i, i + 1),
95
- canUp: i > 0 && e.def?.kind !== "engine",
96
- canDown: i < _.length - 1 && e.def?.kind !== "engine" && _[i + 1]?.def?.kind !== "engine"
97
- }), i === T && A?.def && /* @__PURE__ */ J("div", {
91
+ onToggle: () => f(n.id, r),
92
+ onRemove: () => d(n.id, r),
93
+ onUp: () => p(n.id, r, r - 1),
94
+ onDown: () => p(n.id, r, r + 1),
95
+ canUp: r > 0 && e.def?.kind !== "engine",
96
+ canDown: r < _.length - 1 && e.def?.kind !== "engine" && _[r + 1]?.def?.kind !== "engine"
97
+ }), r === T && A?.def && /* @__PURE__ */ J("div", {
98
98
  className: "flex flex-col gap-3",
99
99
  children: [
100
100
  W && /* @__PURE__ */ q(ee, {
@@ -112,9 +112,9 @@ function re({ layer: n }) {
112
112
  label: "Camera drag",
113
113
  align: "fill",
114
114
  labelWidth: t,
115
- children: /* @__PURE__ */ q(a, {
115
+ children: /* @__PURE__ */ q(i, {
116
116
  layout: "joined",
117
- size: r,
117
+ size: o,
118
118
  className: "w-full",
119
119
  options: [{
120
120
  value: "off",
@@ -127,9 +127,9 @@ function re({ layer: n }) {
127
127
  onChange: (e) => R("cameraDrag", e === "on")
128
128
  })
129
129
  }),
130
- /* @__PURE__ */ q(a, {
130
+ /* @__PURE__ */ q(i, {
131
131
  layout: "joined",
132
- size: r,
132
+ size: o,
133
133
  className: "w-full",
134
134
  value: j,
135
135
  onChange: M,
@@ -171,7 +171,7 @@ function re({ layer: n }) {
171
171
  })]
172
172
  }, e.key)), _.length < 8 ? /* @__PURE__ */ q(g, {
173
173
  variant: "subtle",
174
- size: r,
174
+ size: o,
175
175
  className: "w-full",
176
176
  options: [{
177
177
  value: "",
@@ -187,13 +187,13 @@ function re({ layer: n }) {
187
187
  })]
188
188
  });
189
189
  }
190
- function Z({ def: t, view: r, tab: i, onPatch: a, inline: s = !1, levels: c = null }) {
191
- let l = o(), u = f(r), p = i === "anim", g = t.params.filter((t) => e(t) === "anim" === p), y = p ? g.filter((e) => !e.noRandom) : m(g, r), b = v(h(g, r), y), x = (e, t) => {
192
- e.length && a(d(r, e, u.take(), { stripNoRandom: !!t?.motion }));
190
+ function Z({ def: t, view: r, tab: i, onPatch: o, inline: s = !1, levels: c = null }) {
191
+ let l = a(), u = f(r), p = i === "anim", g = t.params.filter((t) => e(t) === "anim" === p), y = p ? g.filter((e) => !e.noRandom) : m(g, r), b = v(h(g, r), y), x = (e, t) => {
192
+ e.length && o(d(r, e, u.take(), { stripNoRandom: !!t?.motion }));
193
193
  }, S = (e) => {
194
194
  let t = {};
195
195
  for (let n of e) n.default !== void 0 && (t[n.key] = n.default);
196
- Object.keys(t).length && a(t);
196
+ Object.keys(t).length && o(t);
197
197
  };
198
198
  return !y.length && !b.length ? null : /* @__PURE__ */ J("div", {
199
199
  className: "flex flex-col gap-2",
@@ -235,8 +235,8 @@ function Z({ def: t, view: r, tab: i, onPatch: a, inline: s = !1, levels: c = nu
235
235
  ]
236
236
  });
237
237
  }
238
- function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: a, onToggle: s, onRemove: c, onUp: l, onDown: u, canUp: d, canDown: f }) {
239
- let p = o(), m = e.enabled !== !1, h = (e, t, r, i, a = "") => {
238
+ function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: o, onToggle: s, onRemove: c, onUp: l, onDown: u, canUp: d, canDown: f }) {
239
+ let p = a(), m = e.enabled !== !1, h = (e, t, r, i, a = "") => {
240
240
  let o = /* @__PURE__ */ q(U, {
241
241
  label: e,
242
242
  children: /* @__PURE__ */ q(n, {
@@ -271,7 +271,7 @@ function ie({ stage: e, selected: t, options: r, onSelect: i, onPick: a, onToggl
271
271
  className: "w-full",
272
272
  options: r,
273
273
  value: e.id,
274
- onChange: a
274
+ onChange: o
275
275
  })
276
276
  }),
277
277
  h("Move up", l, !d, "chevron-down", "rotate-180"),
@@ -340,7 +340,7 @@ var ae = (e) => [
340
340
  }] : []
341
341
  ];
342
342
  function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
343
- let a = o(), c = (e) => I.find((t) => t.value === e)?.label ?? e, u = (t) => r([...e, t ? N(t.shape, t) : N()]), d = (t) => r(e.filter((e, n) => n !== t)), f = (t, n) => r(e.map((e, r) => r === t ? {
343
+ let o = a(), c = (e) => I.find((t) => t.value === e)?.label ?? e, u = (t) => r([...e, t ? N(t.shape, t) : N()]), d = (t) => r(e.filter((e, n) => n !== t)), f = (t, n) => r(e.map((e, r) => r === t ? {
344
344
  ...e,
345
345
  ...n
346
346
  } : e));
@@ -362,7 +362,7 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
362
362
  }
363
363
  }), /* @__PURE__ */ q(n, {
364
364
  tone: "primary",
365
- size: a,
365
+ size: o,
366
366
  className: "w-full",
367
367
  iconLeft: "plus",
368
368
  iconSize: 12,
@@ -370,19 +370,19 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
370
370
  children: "Add custom sweep"
371
371
  })]
372
372
  }), e.map((e, r) => {
373
- let o = e.enabled !== !1;
373
+ let a = e.enabled !== !1;
374
374
  return /* @__PURE__ */ J(s, {
375
375
  divided: !0,
376
376
  children: [/* @__PURE__ */ J("div", {
377
377
  className: "flex items-center gap-2",
378
378
  children: [
379
379
  /* @__PURE__ */ q("span", {
380
- className: `kol-eyebrow flex-1 truncate ${o ? "text-fg-80" : "text-meta"}`,
380
+ className: `kol-eyebrow flex-1 truncate ${a ? "text-fg-80" : "text-meta"}`,
381
381
  children: c(e.shape ?? "linear")
382
382
  }),
383
383
  /* @__PURE__ */ q(p, {
384
- size: a,
385
- checked: o,
384
+ size: o,
385
+ checked: a,
386
386
  onChange: (e) => f(r, { enabled: e })
387
387
  }),
388
388
  /* @__PURE__ */ q(U, {
@@ -390,7 +390,7 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
390
390
  children: /* @__PURE__ */ q(n, {
391
391
  tone: "ghost",
392
392
  quiet: !0,
393
- size: a,
393
+ size: o,
394
394
  iconOnly: "x",
395
395
  "aria-label": "Delete sweep",
396
396
  className: "shrink-0",
@@ -398,7 +398,7 @@ function Q({ sweeps: e, onChange: r, inline: i = !1 }) {
398
398
  })
399
399
  })
400
400
  ]
401
- }), o && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(b, {
401
+ }), a && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(b, {
402
402
  schema: ae(e),
403
403
  layer: e,
404
404
  setProp: (e, t) => f(r, { [e]: t }),
@@ -442,6 +442,6 @@ var $ = {
442
442
  loadPixiPipeline: () => import("./pipeline-hZsOKbHd.js"),
443
443
  loadGlHost: () => import("./host-0qv2SCjk.js")
444
444
  };
445
- r("effects", $);
445
+ o("effects", $);
446
446
  //#endregion
447
447
  export { Z as n, Q as r, $ as t };
package/dist/effects.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./effects-DspYFJAM.js";
1
+ import { t as e } from "./effects-D7J0e5xl.js";
2
2
  export { e as effects };