@kolkrabbi/design-editor 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Timeline-BObvcdXF.js +3014 -0
- package/dist/{core-CfGqY4VB.js → core-EWu8GfXL.js} +29 -29
- package/dist/core.js +3 -2
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +319 -319
- package/dist/motion-C_u7tsis.js +2295 -0
- package/dist/motion.js +1 -1
- package/package.json +6 -6
- package/dist/motion-BJ8xqUKI.js +0 -3096
- package/dist/timelinePinned-BwYq1Msi.js +0 -2164
package/dist/design-editor.js
CHANGED
|
@@ -5,31 +5,31 @@ import { c as Oe, d as ke, f as Ae, l as je, m as Me, n as Ne, p as Pe, r as Fe,
|
|
|
5
5
|
import { r as Le } from "./TreePicker-nMf17QGH.js";
|
|
6
6
|
import { n as Re, r as ze, t as Be } from "./BindDot-CMUtpJPX.js";
|
|
7
7
|
import { n as Ve, r as He } from "./effects-DZEmfY7a.js";
|
|
8
|
-
import { T as Ue,
|
|
9
|
-
import {
|
|
10
|
-
import { $ as
|
|
11
|
-
import { Button as K, Divider as
|
|
12
|
-
import { createContext as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { Icon as
|
|
15
|
-
import { useDragResize as
|
|
16
|
-
import { createPortal as
|
|
8
|
+
import { T as Ue, _ as We, c as Ge, d as Ke, g as qe, h as Je, k as Ye, l as Xe, m as Ze, n as Qe, p as G, r as $e, s as et, t as tt, u as nt, v as rt, w as it, y as at } from "./Timeline-BObvcdXF.js";
|
|
9
|
+
import { n as ot, r as st } from "./motion-C_u7tsis.js";
|
|
10
|
+
import { $ as ct, A as lt, B as ut, C as dt, Ct as ft, D as pt, E as mt, F as ht, G as gt, H as _t, I as vt, J as yt, K as bt, L as xt, M as St, N as Ct, O as wt, P as Tt, Q as Et, R as Dt, S as Ot, St as kt, T as At, U as jt, V as Mt, W as Nt, X as Pt, Y as Ft, Z as It, _ as Lt, _t as Rt, a as zt, at as Bt, b as Vt, bt as Ht, c as Ut, ct as Wt, d as Gt, dt as Kt, et as qt, f as Jt, ft as Yt, g as Xt, gt as Zt, h as Qt, ht as $t, i as en, it as tn, j as nn, k as rn, l as an, lt as on, m as sn, mt as cn, n as ln, nt as un, o as dn, ot as fn, p as pn, pt as mn, q as hn, r as gn, rt as _n, s as vn, st as yn, t as bn, tt as xn, u as Sn, ut as Cn, v as wn, vt as Tn, w as En, wt as Dn, x as On, xt as kn, y as An, yt as jn, z as Mn } from "./core-EWu8GfXL.js";
|
|
11
|
+
import { Button as K, Divider as Nn, Dropdown as Pn, LabeledControlSection as q, MultiSelect as Fn, SegmentedToggle as J, SettingsRow as In, StepList as Ln, Tag as Rn, ToggleSwitch as zn, Tooltip as Bn, useGrabEdge as Vn, useModal as Hn } from "@kolkrabbi/kol-component";
|
|
12
|
+
import { createContext as Un, useContext as Wn, useEffect as Y, useRef as X, useState as Z, useSyncExternalStore as Gn } from "react";
|
|
13
|
+
import { Fragment as Kn, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
14
|
+
import { Icon as qn } from "@kolkrabbi/kol-icons";
|
|
15
|
+
import { useDragResize as Jn, useTheme as Yn } from "@kolkrabbi/kol-framework";
|
|
16
|
+
import { createPortal as Xn } from "react-dom";
|
|
17
17
|
//#region src/phoneFloats.js
|
|
18
|
-
var
|
|
18
|
+
var Zn = (e) => {
|
|
19
19
|
let t = e, n = /* @__PURE__ */ new Set(), r = (e) => (n.add(e), () => n.delete(e));
|
|
20
20
|
return {
|
|
21
21
|
set: (e) => {
|
|
22
22
|
e !== t && (t = e, n.forEach((e) => e()));
|
|
23
23
|
},
|
|
24
|
-
use: () =>
|
|
24
|
+
use: () => Gn(r, () => t, () => t)
|
|
25
25
|
};
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
var
|
|
26
|
+
}, Qn = Zn(null), $n = Zn(null), er = Qn.set;
|
|
27
|
+
Qn.use, $n.set;
|
|
28
|
+
var tr = $n.use;
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/editor/labs/LabsNav.jsx
|
|
31
|
-
function
|
|
32
|
-
let { addFilter: e, patchFilter: t } = a(), { layer: n, setOnly: r } =
|
|
31
|
+
function nr() {
|
|
32
|
+
let { addFilter: e, patchFilter: t } = a(), { layer: n, setOnly: r } = fn(), i = X(null);
|
|
33
33
|
Y(() => {
|
|
34
34
|
n?.type === "photo" && n.src && (i.current = {
|
|
35
35
|
src: n.src,
|
|
@@ -42,7 +42,7 @@ function er() {
|
|
|
42
42
|
n?.srcType,
|
|
43
43
|
n?.fit
|
|
44
44
|
]);
|
|
45
|
-
let o =
|
|
45
|
+
let o = Et({
|
|
46
46
|
layer: n,
|
|
47
47
|
setOnly: r,
|
|
48
48
|
addFilter: e,
|
|
@@ -59,14 +59,14 @@ function er() {
|
|
|
59
59
|
if (n.id.startsWith("sec:")) {
|
|
60
60
|
let e = n.id.slice(4);
|
|
61
61
|
t.push({
|
|
62
|
-
icon:
|
|
63
|
-
path: `${
|
|
62
|
+
icon: It[e] ?? "square",
|
|
63
|
+
path: `${vn}${n.id}`,
|
|
64
64
|
label: n.label,
|
|
65
65
|
sub: []
|
|
66
66
|
});
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
let r = `${
|
|
69
|
+
let r = `${vn}${n.id}`, i = n.pages ?? [], a = n.onSelect ?? i[0]?.onSelect ?? i[0]?.children?.[0]?.onSelect;
|
|
70
70
|
a && e.set(r, a);
|
|
71
71
|
let o = t[t.length - 1], s = {
|
|
72
72
|
icon: n.icon,
|
|
@@ -74,30 +74,30 @@ function er() {
|
|
|
74
74
|
label: n.label
|
|
75
75
|
};
|
|
76
76
|
o?.sub ? o.sub.push(s) : t.push(s);
|
|
77
|
-
}),
|
|
77
|
+
}), Ut({
|
|
78
78
|
items: t,
|
|
79
79
|
dispatch: (t) => {
|
|
80
80
|
let n = e.get(t);
|
|
81
81
|
return n ? (n(), !0) : !1;
|
|
82
82
|
}
|
|
83
|
-
}), () =>
|
|
83
|
+
}), () => Ut(null);
|
|
84
84
|
}), null;
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/editor/morph/MorphTab.jsx
|
|
88
|
-
var
|
|
88
|
+
var rr = (e, t) => JSON.stringify(e) === JSON.stringify(t), ir = [
|
|
89
89
|
{
|
|
90
90
|
key: "curve",
|
|
91
91
|
label: "Curve",
|
|
92
92
|
type: "select",
|
|
93
|
-
options:
|
|
93
|
+
options: We,
|
|
94
94
|
section: "Curve"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: "cycle",
|
|
98
98
|
label: "Cycle",
|
|
99
99
|
type: "select",
|
|
100
|
-
options:
|
|
100
|
+
options: rt,
|
|
101
101
|
section: "Curve"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
@@ -118,11 +118,11 @@ var tr = (e, t) => JSON.stringify(e) === JSON.stringify(t), nr = [
|
|
|
118
118
|
when: (e) => e.mode === "shape"
|
|
119
119
|
}
|
|
120
120
|
];
|
|
121
|
-
function
|
|
122
|
-
let i = o(), s = qe(), { steps: c, curve: l, cycle: u, mode: d, resolution: f, editing: p, fileId: m, editRequest: g } = s, { updateLayer: _, removeLayer: v, setCurrentPresetId: y, setCurrentPresetName: x, palette: S } = a(), { setOnly: C } =
|
|
121
|
+
function ar({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
122
|
+
let i = o(), s = qe(), { steps: c, curve: l, cycle: u, mode: d, resolution: f, editing: p, fileId: m, editRequest: g } = s, { updateLayer: _, removeLayer: v, setCurrentPresetId: y, setCurrentPresetName: x, palette: S } = a(), { setOnly: C } = fn(), { buildSavedSpec: w } = _t(), { addItem: T, updateItem: E } = ge(), D = Hn(), O = b(), k = oe(e?.id ?? null, { history: "coalesce" }), [A, j] = Z("generate"), M = c[0], N = c.every((e) => e.loopId === M?.loopId), P = c.filter((e) => !Nt(H(e.loopId)) || !jt(H(e.loopId))), F = P.length === 0, I = {
|
|
123
123
|
blend: N ? null : "Blend tweens one generator — these steps are different generators",
|
|
124
|
-
shape: F ? null : `No outline to morph: ${P.map((e) =>
|
|
125
|
-
crossfade: F ? null : `Cannot fade: ${P.map((e) =>
|
|
124
|
+
shape: F ? null : `No outline to morph: ${P.map((e) => Ze(e, c.indexOf(e))).join(", ")} (GL)`,
|
|
125
|
+
crossfade: F ? null : `Cannot fade: ${P.map((e) => Ze(e, c.indexOf(e))).join(", ")} (GL)`
|
|
126
126
|
}, L = [
|
|
127
127
|
{
|
|
128
128
|
value: "shape",
|
|
@@ -158,7 +158,7 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
158
158
|
c.length,
|
|
159
159
|
t
|
|
160
160
|
]), Y(() => {
|
|
161
|
-
!t && c.length === 0 && e?.type === "loop" && e.loopId && !e.morph &&
|
|
161
|
+
!t && c.length === 0 && e?.type === "loop" && e.loopId && !e.morph && et(Bt(e));
|
|
162
162
|
}, []);
|
|
163
163
|
let R = X(c.length), z = () => {
|
|
164
164
|
let t = c.length < R.current;
|
|
@@ -193,7 +193,7 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
193
193
|
steps: c.map((e, t) => ({
|
|
194
194
|
loopId: e.loopId,
|
|
195
195
|
params: e.params,
|
|
196
|
-
label:
|
|
196
|
+
label: Ze(e, t)
|
|
197
197
|
})),
|
|
198
198
|
cycle: u,
|
|
199
199
|
curve: l,
|
|
@@ -202,7 +202,7 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
202
202
|
name: s.fileName
|
|
203
203
|
}, i = d === "blend" ? {
|
|
204
204
|
...n,
|
|
205
|
-
...
|
|
205
|
+
...at({
|
|
206
206
|
snapshots: c.map((e) => e.params),
|
|
207
207
|
schema: H(M.loopId)?.params ?? [],
|
|
208
208
|
curve: l,
|
|
@@ -216,7 +216,7 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
216
216
|
morph: r,
|
|
217
217
|
morphT: {
|
|
218
218
|
bind: "track",
|
|
219
|
-
keys:
|
|
219
|
+
keys: gt(c.length, u, l)
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
e ? _(e.id, i) : C("loop", i);
|
|
@@ -239,8 +239,8 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
239
239
|
t
|
|
240
240
|
]), Y(() => {
|
|
241
241
|
if (t || p == null || !e) return;
|
|
242
|
-
let n =
|
|
243
|
-
|
|
242
|
+
let n = Xe(e, H(e.loopId)?.params ?? []);
|
|
243
|
+
rr(n, c[p]?.params) || Je(p, n);
|
|
244
244
|
}, [e]), Y(() => {
|
|
245
245
|
t || !O || p == null || (G({ editing: null }), te.current = null);
|
|
246
246
|
}, [
|
|
@@ -278,28 +278,28 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
278
278
|
!t && /* @__PURE__ */ Q(q, {
|
|
279
279
|
divided: !0,
|
|
280
280
|
children: /* @__PURE__ */ Q(Le, {
|
|
281
|
-
tree:
|
|
282
|
-
presets:
|
|
283
|
-
current:
|
|
281
|
+
tree: _n(),
|
|
282
|
+
presets: un(),
|
|
283
|
+
current: xn(s.presetId) ?? { typeLabel: ct.find((e) => e.id === d)?.label },
|
|
284
284
|
subLabel: (e) => e.split(" · ").pop(),
|
|
285
|
-
onPick:
|
|
285
|
+
onPick: qt
|
|
286
286
|
})
|
|
287
287
|
}),
|
|
288
288
|
/* @__PURE__ */ $(q, {
|
|
289
289
|
divided: !0,
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */ Q(
|
|
291
|
+
/* @__PURE__ */ Q(Ln, {
|
|
292
292
|
items: c.map((e, t) => ({
|
|
293
293
|
id: t,
|
|
294
|
-
label:
|
|
294
|
+
label: Ze(e, t)
|
|
295
295
|
})),
|
|
296
296
|
activeIndex: p,
|
|
297
297
|
reorder: "grab",
|
|
298
298
|
readOnly: t,
|
|
299
299
|
size: i,
|
|
300
300
|
onSelect: re,
|
|
301
|
-
onRemove:
|
|
302
|
-
onMove:
|
|
301
|
+
onRemove: nt,
|
|
302
|
+
onMove: Ke,
|
|
303
303
|
onAdd: () => G({
|
|
304
304
|
active: !0,
|
|
305
305
|
picker: "preset"
|
|
@@ -350,7 +350,7 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
350
350
|
]
|
|
351
351
|
}),
|
|
352
352
|
/* @__PURE__ */ Q(ne, {
|
|
353
|
-
schema:
|
|
353
|
+
schema: ir,
|
|
354
354
|
layer: s,
|
|
355
355
|
setProp: (e, n) => {
|
|
356
356
|
!t && (typeof n != "object" || !n) && G({ [e]: n });
|
|
@@ -400,7 +400,7 @@ function rr({ layer: e, readOnly: t = !1, editTabs: n = null }) {
|
|
|
400
400
|
}
|
|
401
401
|
//#endregion
|
|
402
402
|
//#region src/editor/params/QuickMotion.jsx
|
|
403
|
-
var
|
|
403
|
+
var or = [
|
|
404
404
|
{
|
|
405
405
|
value: "breathe",
|
|
406
406
|
label: "Breathe",
|
|
@@ -419,14 +419,14 @@ var ir = [
|
|
|
419
419
|
source: "lfo-square",
|
|
420
420
|
rate: 8
|
|
421
421
|
}
|
|
422
|
-
],
|
|
423
|
-
function
|
|
422
|
+
], sr = .2;
|
|
423
|
+
function cr(e) {
|
|
424
424
|
if (!t(e)) return "off";
|
|
425
425
|
if (e.bind !== "mod") return "custom";
|
|
426
|
-
let n =
|
|
426
|
+
let n = or.find((t) => t.source === e.source && (e.transform?.rate ?? 1) === t.rate);
|
|
427
427
|
return n ? n.value : "custom";
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function lr({ schema: e, layer: t, setProp: r, label: i = "Modulate" }) {
|
|
430
430
|
let a = o(), s = x(e ?? [], t).filter((e) => e.type === "range" && e.animatable !== !1 && D(e) !== "anim" && e.min != null && e.max != null && !/seed/i.test(e.key));
|
|
431
431
|
if (!s.length) return null;
|
|
432
432
|
let c = (e, n) => {
|
|
@@ -436,9 +436,9 @@ function sr({ schema: e, layer: t, setProp: r, label: i = "Modulate" }) {
|
|
|
436
436
|
r(e.key, Array.isArray(n) ? (n[0] + n[1]) / 2 : S(i, h.getCtx(), t) ?? e.default ?? e.min);
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
|
-
let a =
|
|
439
|
+
let a = or.find((e) => e.value === n);
|
|
440
440
|
if (!a) return;
|
|
441
|
-
let o = Number(S(i, h.getCtx(), t) ?? e.default ?? e.min), s = (e.max - e.min) *
|
|
441
|
+
let o = Number(S(i, h.getCtx(), t) ?? e.default ?? e.min), s = (e.max - e.min) * sr, c = Math.max(e.min, o - s), l = Math.min(e.max, o + s);
|
|
442
442
|
r(e.key, {
|
|
443
443
|
bind: "mod",
|
|
444
444
|
source: a.source,
|
|
@@ -452,12 +452,12 @@ function sr({ schema: e, layer: t, setProp: r, label: i = "Modulate" }) {
|
|
|
452
452
|
label: i,
|
|
453
453
|
divided: !0,
|
|
454
454
|
children: s.map((e) => {
|
|
455
|
-
let r =
|
|
455
|
+
let r = cr(t[e.key]), i = [
|
|
456
456
|
{
|
|
457
457
|
value: "off",
|
|
458
458
|
label: "Off"
|
|
459
459
|
},
|
|
460
|
-
...
|
|
460
|
+
...or.map(({ value: e, label: t }) => ({
|
|
461
461
|
value: e,
|
|
462
462
|
label: t
|
|
463
463
|
})),
|
|
@@ -466,11 +466,11 @@ function sr({ schema: e, layer: t, setProp: r, label: i = "Modulate" }) {
|
|
|
466
466
|
label: "Custom"
|
|
467
467
|
}] : []
|
|
468
468
|
];
|
|
469
|
-
return /* @__PURE__ */ Q(
|
|
469
|
+
return /* @__PURE__ */ Q(In, {
|
|
470
470
|
label: e.label,
|
|
471
471
|
align: "fill",
|
|
472
472
|
labelWidth: n,
|
|
473
|
-
children: /* @__PURE__ */ Q(
|
|
473
|
+
children: /* @__PURE__ */ Q(Pn, {
|
|
474
474
|
size: a,
|
|
475
475
|
variant: "subtle",
|
|
476
476
|
className: "w-full",
|
|
@@ -484,7 +484,7 @@ function sr({ schema: e, layer: t, setProp: r, label: i = "Modulate" }) {
|
|
|
484
484
|
}
|
|
485
485
|
//#endregion
|
|
486
486
|
//#region src/editor/params/InputRows.jsx
|
|
487
|
-
var
|
|
487
|
+
var ur = [
|
|
488
488
|
{
|
|
489
489
|
value: "off",
|
|
490
490
|
label: "Off"
|
|
@@ -509,13 +509,13 @@ var cr = [
|
|
|
509
509
|
value: "lfo-sine",
|
|
510
510
|
label: "LFO"
|
|
511
511
|
}
|
|
512
|
-
],
|
|
513
|
-
function
|
|
512
|
+
], dr = new Set(ur.map((e) => e.value));
|
|
513
|
+
function fr({ schema: e, layer: n, setProp: r, inputs: i = null }) {
|
|
514
514
|
let a = o(), s = x(e ?? [], n).filter((e) => e.type === "range" && e.animatable !== !1 && e.min != null && e.max != null && !/seed/i.test(e.key));
|
|
515
515
|
if (!s.length) return null;
|
|
516
516
|
let c = new Map(s.map((e) => [e.key, e])), l = (i ?? []).filter((e) => c.has(e)), u = [...l, ...s.map((e) => e.key).filter((e) => !l.includes(e))], d = l.length ? l : u.slice(0, 3), f = (e) => {
|
|
517
517
|
let r = n[e];
|
|
518
|
-
return t(r) && r.bind === "mod" &&
|
|
518
|
+
return t(r) && r.bind === "mod" && dr.has(r.source);
|
|
519
519
|
}, m = u.filter(f), g = (e) => {
|
|
520
520
|
let t = c.get(e);
|
|
521
521
|
return Number(S(n[e], h.getCtx(), n) ?? t.default ?? t.min);
|
|
@@ -534,13 +534,13 @@ function ur({ schema: e, layer: n, setProp: r, inputs: i = null }) {
|
|
|
534
534
|
return /* @__PURE__ */ $(q, {
|
|
535
535
|
label: "Inputs",
|
|
536
536
|
divided: !0,
|
|
537
|
-
children: [m.map((e) => /* @__PURE__ */ Q(
|
|
537
|
+
children: [m.map((e) => /* @__PURE__ */ Q(Fn, {
|
|
538
538
|
size: a,
|
|
539
539
|
className: "w-full [&>button]:w-full",
|
|
540
540
|
groups: [{
|
|
541
541
|
id: "source",
|
|
542
542
|
label: "Source",
|
|
543
|
-
options:
|
|
543
|
+
options: ur
|
|
544
544
|
}, {
|
|
545
545
|
id: "drives",
|
|
546
546
|
label: "Drives",
|
|
@@ -553,7 +553,7 @@ function ur({ schema: e, layer: n, setProp: r, inputs: i = null }) {
|
|
|
553
553
|
source: n[e].source,
|
|
554
554
|
drives: e
|
|
555
555
|
},
|
|
556
|
-
label: `${
|
|
556
|
+
label: `${ur.find((t) => t.value === n[e].source)?.label} → ${c.get(e).label}`,
|
|
557
557
|
onChange: (t, r) => {
|
|
558
558
|
if (t === "source") {
|
|
559
559
|
r === "off" ? v(e) : _(e, r);
|
|
@@ -574,8 +574,8 @@ function ur({ schema: e, layer: n, setProp: r, inputs: i = null }) {
|
|
|
574
574
|
}
|
|
575
575
|
//#endregion
|
|
576
576
|
//#region src/editor/labs/ModelSource.jsx
|
|
577
|
-
var
|
|
578
|
-
function
|
|
577
|
+
var pr = /\.(obj|glb|gltf|stl)$/i, mr = (e) => pr.test(e.key ?? e.name ?? ""), hr = (e) => (e.match(pr)?.[1] ?? "obj").toLowerCase(), gr = (e) => e?.startsWith("data:") ? "Local file" : decodeURIComponent(String(e ?? "").split("/").pop() || "—");
|
|
578
|
+
function _r({ layer: e, setProp: t }) {
|
|
579
579
|
let n = o(), [r, i] = Z(!1), a = X(null), s = (e, n) => {
|
|
580
580
|
t("meshSrc", e), t("meshType", n);
|
|
581
581
|
};
|
|
@@ -585,7 +585,7 @@ function hr({ layer: e, setProp: t }) {
|
|
|
585
585
|
children: [
|
|
586
586
|
/* @__PURE__ */ Q("span", {
|
|
587
587
|
className: "kol-mono-12 text-meta truncate",
|
|
588
|
-
children:
|
|
588
|
+
children: gr(e.meshSrc)
|
|
589
589
|
}),
|
|
590
590
|
/* @__PURE__ */ $("div", {
|
|
591
591
|
className: "grid grid-cols-2 gap-2",
|
|
@@ -610,15 +610,15 @@ function hr({ layer: e, setProp: t }) {
|
|
|
610
610
|
let t = e.target.files?.[0];
|
|
611
611
|
if (e.target.value = "", !t) return;
|
|
612
612
|
let n = new FileReader();
|
|
613
|
-
n.onload = () => s(n.result,
|
|
613
|
+
n.onload = () => s(n.result, hr(t.name)), n.readAsDataURL(t);
|
|
614
614
|
}
|
|
615
615
|
}),
|
|
616
|
-
/* @__PURE__ */ Q(
|
|
616
|
+
/* @__PURE__ */ Q(Xt, {
|
|
617
617
|
open: r,
|
|
618
|
-
accept:
|
|
618
|
+
accept: mr,
|
|
619
619
|
onClose: () => i(!1),
|
|
620
620
|
onSelect: (e) => {
|
|
621
|
-
i(!1), s(
|
|
621
|
+
i(!1), s(wn(e), hr(e));
|
|
622
622
|
}
|
|
623
623
|
})
|
|
624
624
|
]
|
|
@@ -626,23 +626,23 @@ function hr({ layer: e, setProp: t }) {
|
|
|
626
626
|
}
|
|
627
627
|
//#endregion
|
|
628
628
|
//#region src/editor/labs/useLabsKeys.js
|
|
629
|
-
function
|
|
629
|
+
function vr(e, t) {
|
|
630
630
|
Y(() => {
|
|
631
631
|
let n = (n) => {
|
|
632
|
-
n.key !== "r" && n.key !== "R" || n.metaKey || n.ctrlKey || n.altKey ||
|
|
632
|
+
n.key !== "r" && n.key !== "R" || n.metaKey || n.ctrlKey || n.altKey || Dt(n) || (n.preventDefault(), n.shiftKey ? t?.() : e?.());
|
|
633
633
|
};
|
|
634
634
|
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
//#endregion
|
|
638
638
|
//#region src/editor/labs/LabsParams.jsx
|
|
639
|
-
var
|
|
639
|
+
var yr = [{
|
|
640
640
|
value: "effect",
|
|
641
641
|
label: "Effect"
|
|
642
642
|
}, {
|
|
643
643
|
value: "anim",
|
|
644
644
|
label: "Motion"
|
|
645
|
-
}],
|
|
645
|
+
}], br = [
|
|
646
646
|
{
|
|
647
647
|
value: "generate",
|
|
648
648
|
label: "Generate"
|
|
@@ -655,7 +655,7 @@ var _r = [{
|
|
|
655
655
|
value: "anim",
|
|
656
656
|
label: "Animation"
|
|
657
657
|
}
|
|
658
|
-
],
|
|
658
|
+
], xr = [
|
|
659
659
|
{
|
|
660
660
|
value: "generate",
|
|
661
661
|
label: "Gen"
|
|
@@ -669,11 +669,11 @@ var _r = [{
|
|
|
669
669
|
label: "Anim"
|
|
670
670
|
}
|
|
671
671
|
];
|
|
672
|
-
function
|
|
672
|
+
function Sr({ options: e, active: t, onPick: n, spread: i = !1, pills: a = !1 }) {
|
|
673
673
|
let s = o();
|
|
674
674
|
return e?.length ? a ? /* @__PURE__ */ Q("div", {
|
|
675
675
|
className: "flex items-center gap-1 flex-wrap",
|
|
676
|
-
children: e.map((e) => /* @__PURE__ */ Q(
|
|
676
|
+
children: e.map((e) => /* @__PURE__ */ Q(Rn, {
|
|
677
677
|
size: "xs",
|
|
678
678
|
hash: !1,
|
|
679
679
|
active: e.value === t,
|
|
@@ -690,13 +690,13 @@ function br({ options: e, active: t, onPick: n, spread: i = !1, pills: a = !1 })
|
|
|
690
690
|
className: r(s)
|
|
691
691
|
}) : null;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Cr() {
|
|
694
694
|
let { undo: e, redo: t, canUndo: n, canRedo: r } = a(), i = o(), s = (e, t) => e ? t : /* @__PURE__ */ Q("span", {
|
|
695
695
|
"aria-hidden": "true",
|
|
696
696
|
className: "invisible pointer-events-none",
|
|
697
697
|
children: t
|
|
698
698
|
});
|
|
699
|
-
return /* @__PURE__ */ $(
|
|
699
|
+
return /* @__PURE__ */ $(Kn, { children: [s(n, /* @__PURE__ */ Q(Bn, {
|
|
700
700
|
label: "Undo",
|
|
701
701
|
shortcut: "⌘Z",
|
|
702
702
|
children: /* @__PURE__ */ Q(K, {
|
|
@@ -706,7 +706,7 @@ function xr() {
|
|
|
706
706
|
tabIndex: n ? void 0 : -1,
|
|
707
707
|
onClick: e
|
|
708
708
|
})
|
|
709
|
-
})), s(r, /* @__PURE__ */ Q(
|
|
709
|
+
})), s(r, /* @__PURE__ */ Q(Bn, {
|
|
710
710
|
label: "Redo",
|
|
711
711
|
shortcut: "⇧⌘Z",
|
|
712
712
|
children: /* @__PURE__ */ Q(K, {
|
|
@@ -718,7 +718,7 @@ function xr() {
|
|
|
718
718
|
})
|
|
719
719
|
}))] });
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function wr({ chips: e, active: t, onPick: r, spread: i, pills: a, title: s, tabStrip: c, preStrip: l, fx: u = !1, scope: d, ghostLabels: f, children: p }) {
|
|
722
722
|
let m = o() === "sm";
|
|
723
723
|
return /* @__PURE__ */ $("div", {
|
|
724
724
|
className: `flex flex-col gap-5${u ? " kol-labs-fx" : ""}`,
|
|
@@ -729,9 +729,9 @@ function Sr({ chips: e, active: t, onPick: r, spread: i, pills: a, title: s, tab
|
|
|
729
729
|
children: [/* @__PURE__ */ Q("p", {
|
|
730
730
|
className: "kol-eyebrow text-fg-96 flex-1 min-w-0",
|
|
731
731
|
children: s
|
|
732
|
-
}), /* @__PURE__ */ Q(
|
|
732
|
+
}), /* @__PURE__ */ Q(Cr, {})]
|
|
733
733
|
}),
|
|
734
|
-
e && /* @__PURE__ */ Q(
|
|
734
|
+
e && /* @__PURE__ */ Q(Sr, {
|
|
735
735
|
options: e,
|
|
736
736
|
active: t,
|
|
737
737
|
onPick: r,
|
|
@@ -753,7 +753,7 @@ function Sr({ chips: e, active: t, onPick: r, spread: i, pills: a, title: s, tab
|
|
|
753
753
|
]
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Tr({ layer: e, showMod: t }) {
|
|
757
757
|
let i = A(), s = o(), [c, l] = Z("effect");
|
|
758
758
|
Y(() => {
|
|
759
759
|
let e = () => l("effect");
|
|
@@ -795,7 +795,7 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
795
795
|
} : e);
|
|
796
796
|
v(e.id, { filters: n });
|
|
797
797
|
};
|
|
798
|
-
|
|
798
|
+
vr(() => {
|
|
799
799
|
E && v(e.id, { filters: F.map((e, t) => t === 0 ? {
|
|
800
800
|
...e,
|
|
801
801
|
params: {}
|
|
@@ -821,34 +821,34 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
821
821
|
value: e.id,
|
|
822
822
|
label: `${e.label ?? e.id}${e.kind === "pixi" ? " · GPU" : ""}`
|
|
823
823
|
}))];
|
|
824
|
-
return /* @__PURE__ */ $(
|
|
824
|
+
return /* @__PURE__ */ $(wr, {
|
|
825
825
|
title: "Effects",
|
|
826
826
|
fx: !0,
|
|
827
827
|
tabStrip: /* @__PURE__ */ Q(J, {
|
|
828
828
|
tone: "sunken",
|
|
829
829
|
value: c,
|
|
830
830
|
onChange: l,
|
|
831
|
-
options:
|
|
831
|
+
options: yr,
|
|
832
832
|
size: s,
|
|
833
833
|
className: r(s)
|
|
834
834
|
}),
|
|
835
|
-
children: [c === "effect" && /* @__PURE__ */ $(
|
|
835
|
+
children: [c === "effect" && /* @__PURE__ */ $(Kn, { children: [
|
|
836
836
|
/* @__PURE__ */ $(q, {
|
|
837
837
|
label: "Effect stack",
|
|
838
838
|
divided: !0,
|
|
839
839
|
children: [x.length === 0 && /* @__PURE__ */ Q(V, {
|
|
840
840
|
className: "kol-mono-10 text-meta",
|
|
841
841
|
children: "No effects yet — add one below."
|
|
842
|
-
}), /* @__PURE__ */ Q(
|
|
842
|
+
}), /* @__PURE__ */ Q(kr, {
|
|
843
843
|
...n,
|
|
844
844
|
from: 0
|
|
845
845
|
})]
|
|
846
846
|
}),
|
|
847
|
-
/* @__PURE__ */ Q(
|
|
847
|
+
/* @__PURE__ */ Q(Nn, {}),
|
|
848
848
|
x.length < 8 && /* @__PURE__ */ Q(q, {
|
|
849
849
|
label: se.label,
|
|
850
850
|
divided: !0,
|
|
851
|
-
children: /* @__PURE__ */ Q(
|
|
851
|
+
children: /* @__PURE__ */ Q(Pn, {
|
|
852
852
|
variant: "subtle",
|
|
853
853
|
size: s,
|
|
854
854
|
className: "w-full",
|
|
@@ -866,7 +866,7 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
866
866
|
})]
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
|
-
if (!E) return /* @__PURE__ */ Q(
|
|
869
|
+
if (!E) return /* @__PURE__ */ Q(wr, {
|
|
870
870
|
chips: j,
|
|
871
871
|
active: null,
|
|
872
872
|
onPick: N,
|
|
@@ -876,12 +876,12 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
876
876
|
tone: "sunken",
|
|
877
877
|
value: c,
|
|
878
878
|
onChange: l,
|
|
879
|
-
options:
|
|
879
|
+
options: yr,
|
|
880
880
|
size: s,
|
|
881
881
|
className: r(s)
|
|
882
882
|
}),
|
|
883
883
|
children: /* @__PURE__ */ Q(ne, {
|
|
884
|
-
schema:
|
|
884
|
+
schema: Qt,
|
|
885
885
|
layer: e,
|
|
886
886
|
setProp: b.setProp,
|
|
887
887
|
palette: y,
|
|
@@ -910,7 +910,7 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
910
910
|
renderAnimate: ae,
|
|
911
911
|
inline: !0
|
|
912
912
|
};
|
|
913
|
-
return /* @__PURE__ */ $(
|
|
913
|
+
return /* @__PURE__ */ $(wr, {
|
|
914
914
|
chips: j,
|
|
915
915
|
active: E.id,
|
|
916
916
|
onPick: N,
|
|
@@ -923,11 +923,11 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
923
923
|
tone: "sunken",
|
|
924
924
|
value: c,
|
|
925
925
|
onChange: l,
|
|
926
|
-
options:
|
|
926
|
+
options: yr,
|
|
927
927
|
size: s,
|
|
928
928
|
className: r(s)
|
|
929
929
|
}),
|
|
930
|
-
children: [c === "effect" && /* @__PURE__ */ $(
|
|
930
|
+
children: [c === "effect" && /* @__PURE__ */ $(Kn, { children: [
|
|
931
931
|
ue.length > 0 && /* @__PURE__ */ Q(ne, {
|
|
932
932
|
schema: ue,
|
|
933
933
|
...fe
|
|
@@ -943,7 +943,7 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
943
943
|
view: I,
|
|
944
944
|
tab: "effect",
|
|
945
945
|
onPatch: H,
|
|
946
|
-
levels: /* @__PURE__ */ $(
|
|
946
|
+
levels: /* @__PURE__ */ $(Kn, { children: [
|
|
947
947
|
[
|
|
948
948
|
["type", "Type"],
|
|
949
949
|
["category", "Category"],
|
|
@@ -982,12 +982,12 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
982
982
|
] })
|
|
983
983
|
})]
|
|
984
984
|
}),
|
|
985
|
-
/* @__PURE__ */ Q(
|
|
986
|
-
le < U.length && /* @__PURE__ */ $(
|
|
985
|
+
/* @__PURE__ */ Q(Nn, {}),
|
|
986
|
+
le < U.length && /* @__PURE__ */ $(Kn, { children: [/* @__PURE__ */ Q(ne, {
|
|
987
987
|
schema: U.slice(le),
|
|
988
988
|
...fe
|
|
989
|
-
}), /* @__PURE__ */ Q(
|
|
990
|
-
/* @__PURE__ */ Q(
|
|
989
|
+
}), /* @__PURE__ */ Q(Nn, {})] }),
|
|
990
|
+
/* @__PURE__ */ Q(Ar, {
|
|
991
991
|
chain: x,
|
|
992
992
|
from: w + 1,
|
|
993
993
|
layer: e,
|
|
@@ -999,8 +999,8 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
999
999
|
palette: y,
|
|
1000
1000
|
showMod: t
|
|
1001
1001
|
})
|
|
1002
|
-
] }), c === "anim" && /* @__PURE__ */ $(
|
|
1003
|
-
/* @__PURE__ */ Q(
|
|
1002
|
+
] }), c === "anim" && /* @__PURE__ */ $(Kn, { children: [
|
|
1003
|
+
/* @__PURE__ */ Q(fr, {
|
|
1004
1004
|
schema: E.def.params,
|
|
1005
1005
|
layer: I,
|
|
1006
1006
|
setProp: B,
|
|
@@ -1014,7 +1014,7 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
1014
1014
|
E.def.orbit && /* @__PURE__ */ Q(q, {
|
|
1015
1015
|
label: "Interaction",
|
|
1016
1016
|
divided: !0,
|
|
1017
|
-
children: /* @__PURE__ */ Q(
|
|
1017
|
+
children: /* @__PURE__ */ Q(In, {
|
|
1018
1018
|
label: "ORBIT (C)",
|
|
1019
1019
|
align: "fill",
|
|
1020
1020
|
labelWidth: n,
|
|
@@ -1051,12 +1051,12 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
1051
1051
|
onChange: (e) => B("sweeps", e),
|
|
1052
1052
|
inline: !0
|
|
1053
1053
|
}),
|
|
1054
|
-
/* @__PURE__ */ Q(
|
|
1054
|
+
/* @__PURE__ */ Q(lr, {
|
|
1055
1055
|
schema: E.def.params,
|
|
1056
1056
|
layer: I,
|
|
1057
1057
|
setProp: B
|
|
1058
1058
|
}),
|
|
1059
|
-
/* @__PURE__ */ Q(
|
|
1059
|
+
/* @__PURE__ */ Q(Or, {
|
|
1060
1060
|
chain: x,
|
|
1061
1061
|
layer: e,
|
|
1062
1062
|
hostView: I,
|
|
@@ -1069,13 +1069,13 @@ function Cr({ layer: e, showMod: t }) {
|
|
|
1069
1069
|
] })]
|
|
1070
1070
|
});
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1073
|
-
function
|
|
1072
|
+
var Er = z.filter((e) => !e.kind && !e.first);
|
|
1073
|
+
function Dr({ layer: e, edit: t, palette: n, showMod: r }) {
|
|
1074
1074
|
let { addFilter: i, removeFilter: o, toggleFilter: s } = a(), c = g(e), l = c.map(({ def: e, ...t }) => t);
|
|
1075
|
-
return /* @__PURE__ */ Q(
|
|
1075
|
+
return /* @__PURE__ */ Q(Ar, {
|
|
1076
1076
|
chain: c,
|
|
1077
1077
|
from: 0,
|
|
1078
|
-
filters:
|
|
1078
|
+
filters: Er,
|
|
1079
1079
|
layer: e,
|
|
1080
1080
|
hostView: e,
|
|
1081
1081
|
addFilter: i,
|
|
@@ -1092,7 +1092,7 @@ function Tr({ layer: e, edit: t, palette: n, showMod: r }) {
|
|
|
1092
1092
|
showMod: r
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function Or({ chain: e, layer: t, hostView: n, addFilter: r, removeFilter: i, setStagePropAt: a, palette: s, showMod: c }) {
|
|
1096
1096
|
let l = o(), u = e.findIndex((e) => e.id === "fx-media"), d = u < 0 ? null : e[u], f = d ? {
|
|
1097
1097
|
...n,
|
|
1098
1098
|
...d.params,
|
|
@@ -1101,7 +1101,7 @@ function Er({ chain: e, layer: t, hostView: n, addFilter: r, removeFilter: i, se
|
|
|
1101
1101
|
return /* @__PURE__ */ Q(q, {
|
|
1102
1102
|
label: "Media",
|
|
1103
1103
|
divided: !0,
|
|
1104
|
-
children: d?.def ? /* @__PURE__ */ $(
|
|
1104
|
+
children: d?.def ? /* @__PURE__ */ $(Kn, { children: [/* @__PURE__ */ Q(ne, {
|
|
1105
1105
|
schema: d.def.params,
|
|
1106
1106
|
layer: f,
|
|
1107
1107
|
setProp: p,
|
|
@@ -1131,7 +1131,7 @@ function Er({ chain: e, layer: t, hostView: n, addFilter: r, removeFilter: i, se
|
|
|
1131
1131
|
})
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function kr({ chain: e, from: t = 0, layer: n, hostView: r, toggleFilter: i, removeFilter: a, setStagePropAt: s, palette: c, showMod: l }) {
|
|
1135
1135
|
let u = o();
|
|
1136
1136
|
return e.slice(t).map((e, o) => {
|
|
1137
1137
|
let d = o + t, f = e.enabled !== !1, p = {
|
|
@@ -1143,12 +1143,12 @@ function Dr({ chain: e, from: t = 0, layer: n, hostView: r, toggleFilter: i, rem
|
|
|
1143
1143
|
className: "flex flex-col gap-2 p-2 rounded bg-oq-04",
|
|
1144
1144
|
children: [/* @__PURE__ */ $("div", {
|
|
1145
1145
|
className: "flex items-center gap-2",
|
|
1146
|
-
children: [/* @__PURE__ */ Q(
|
|
1146
|
+
children: [/* @__PURE__ */ Q(zn, {
|
|
1147
1147
|
size: u,
|
|
1148
1148
|
checked: f,
|
|
1149
1149
|
onChange: () => i(n.id, d),
|
|
1150
1150
|
label: e.def?.label ?? e.id
|
|
1151
|
-
}), /* @__PURE__ */ Q(
|
|
1151
|
+
}), /* @__PURE__ */ Q(Bn, {
|
|
1152
1152
|
asChild: !0,
|
|
1153
1153
|
label: "Delete effect",
|
|
1154
1154
|
children: /* @__PURE__ */ Q(K, {
|
|
@@ -1176,7 +1176,7 @@ function Dr({ chain: e, from: t = 0, layer: n, hostView: r, toggleFilter: i, rem
|
|
|
1176
1176
|
}, e.key ?? d);
|
|
1177
1177
|
});
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Ar({ chain: e, from: t = 1, filters: n = null, layer: r, hostView: i, addFilter: a, removeFilter: s, toggleFilter: c, setStagePropAt: l, palette: u, showMod: d }) {
|
|
1180
1180
|
let f = o(), p = [{
|
|
1181
1181
|
value: "",
|
|
1182
1182
|
label: "Add FX…"
|
|
@@ -1187,7 +1187,7 @@ function Or({ chain: e, from: t = 1, filters: n = null, layer: r, hostView: i, a
|
|
|
1187
1187
|
return /* @__PURE__ */ $(q, {
|
|
1188
1188
|
label: "Post-Processing",
|
|
1189
1189
|
divided: !0,
|
|
1190
|
-
children: [/* @__PURE__ */ Q(
|
|
1190
|
+
children: [/* @__PURE__ */ Q(kr, {
|
|
1191
1191
|
chain: e,
|
|
1192
1192
|
from: t,
|
|
1193
1193
|
layer: r,
|
|
@@ -1197,7 +1197,7 @@ function Or({ chain: e, from: t = 1, filters: n = null, layer: r, hostView: i, a
|
|
|
1197
1197
|
setStagePropAt: l,
|
|
1198
1198
|
palette: u,
|
|
1199
1199
|
showMod: d
|
|
1200
|
-
}), e.length < 8 && /* @__PURE__ */ Q(
|
|
1200
|
+
}), e.length < 8 && /* @__PURE__ */ Q(Pn, {
|
|
1201
1201
|
variant: "subtle",
|
|
1202
1202
|
size: f,
|
|
1203
1203
|
className: "w-full",
|
|
@@ -1209,8 +1209,8 @@ function Or({ chain: e, from: t = 1, filters: n = null, layer: r, hostView: i, a
|
|
|
1209
1209
|
})]
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1213
|
-
let i = o(), [s, c] = Z("generate"), { updateLayer: l, palette: u } = a(), { setOnly: d } =
|
|
1212
|
+
function jr({ layer: e, showMod: t, tree: n }) {
|
|
1213
|
+
let i = o(), [s, c] = Z("generate"), { updateLayer: l, palette: u } = a(), { setOnly: d } = fn(), p = oe(e.id, { history: "coalesce" }), m = B(e.loopGroup).find((t) => t.id === e.presetId), h = F(e.loopGroup), g = (n ?? ye).find((t) => t.groups.includes(e.loopGroup)), _ = g?.labels?.[e.loopGroup] ?? h?.label ?? "", v = g && g.label !== _ ? `${g.label} / ${_}` : _, y = e.loopGroup === "paratype" && m?.sub === "Glyphs" ? j("paratype", "Glyphs") : null, b = y ? y.map((e) => ({
|
|
1214
1214
|
value: e.id,
|
|
1215
1215
|
label: e.label
|
|
1216
1216
|
})) : null, x = (t) => {
|
|
@@ -1219,10 +1219,10 @@ function kr({ layer: e, showMod: t, tree: n }) {
|
|
|
1219
1219
|
}, S = () => {
|
|
1220
1220
|
m && d(e.type, M(m, e.loopGroup));
|
|
1221
1221
|
};
|
|
1222
|
-
return
|
|
1222
|
+
return vr(S, () => {
|
|
1223
1223
|
let t = H(e.loopId)?.params ?? [];
|
|
1224
1224
|
l(e.id, f(e, C(t, e), T(), { withFilters: !0 }));
|
|
1225
|
-
}), /* @__PURE__ */ $(
|
|
1225
|
+
}), /* @__PURE__ */ $(wr, {
|
|
1226
1226
|
title: v,
|
|
1227
1227
|
chips: b,
|
|
1228
1228
|
active: e.presetId,
|
|
@@ -1234,12 +1234,12 @@ function kr({ layer: e, showMod: t, tree: n }) {
|
|
|
1234
1234
|
tone: "sunken",
|
|
1235
1235
|
value: s,
|
|
1236
1236
|
onChange: c,
|
|
1237
|
-
options: i === "sm" ?
|
|
1237
|
+
options: i === "sm" ? br : xr,
|
|
1238
1238
|
size: i,
|
|
1239
1239
|
className: r(i)
|
|
1240
1240
|
}),
|
|
1241
1241
|
children: [
|
|
1242
|
-
s === "anim" && /* @__PURE__ */ Q(
|
|
1242
|
+
s === "anim" && /* @__PURE__ */ Q(fr, {
|
|
1243
1243
|
schema: H(e.loopId)?.params ?? [],
|
|
1244
1244
|
layer: e,
|
|
1245
1245
|
setProp: p.setProp,
|
|
@@ -1262,17 +1262,17 @@ function kr({ layer: e, showMod: t, tree: n }) {
|
|
|
1262
1262
|
inline: !0,
|
|
1263
1263
|
onReset: S
|
|
1264
1264
|
}),
|
|
1265
|
-
s === "generate" && e.loopId === "scene3d" && e.primitive === "mesh" && /* @__PURE__ */ Q(
|
|
1265
|
+
s === "generate" && e.loopId === "scene3d" && e.primitive === "mesh" && /* @__PURE__ */ Q(_r, {
|
|
1266
1266
|
layer: e,
|
|
1267
1267
|
setProp: p.setProp
|
|
1268
1268
|
}),
|
|
1269
|
-
s === "style" && /* @__PURE__ */ Q(
|
|
1269
|
+
s === "style" && /* @__PURE__ */ Q(Dr, {
|
|
1270
1270
|
layer: e,
|
|
1271
1271
|
edit: p,
|
|
1272
1272
|
palette: u,
|
|
1273
1273
|
showMod: t
|
|
1274
1274
|
}),
|
|
1275
|
-
s === "anim" && /* @__PURE__ */ Q(
|
|
1275
|
+
s === "anim" && /* @__PURE__ */ Q(lr, {
|
|
1276
1276
|
schema: H(e.loopId)?.params ?? [],
|
|
1277
1277
|
layer: e,
|
|
1278
1278
|
setProp: p.setProp
|
|
@@ -1280,33 +1280,33 @@ function kr({ layer: e, showMod: t, tree: n }) {
|
|
|
1280
1280
|
]
|
|
1281
1281
|
});
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
let n = o(), [i, s] = Z("generate"), { updateLayer: c, palette: l } = a(), { setOnly: u } =
|
|
1285
|
-
return
|
|
1283
|
+
function Mr({ layer: e, showMod: t }) {
|
|
1284
|
+
let n = o(), [i, s] = Z("generate"), { updateLayer: c, palette: l } = a(), { setOnly: u } = fn(), d = oe(e.id, { history: "coalesce" }), f = it.find((t) => t.id === e.presetId), p = Ue.find((e) => e.subs.includes(f?.sub))?.label ?? "Kinetic";
|
|
1285
|
+
return vr(() => {
|
|
1286
1286
|
f && u("kinetic", {
|
|
1287
1287
|
presetId: f.id,
|
|
1288
1288
|
presetLabel: f.label,
|
|
1289
|
-
comp:
|
|
1289
|
+
comp: Ye(f)
|
|
1290
1290
|
});
|
|
1291
1291
|
}, () => {
|
|
1292
1292
|
let t = T(), n = _(t >>> 0), r = e.comp ?? { instances: [] };
|
|
1293
1293
|
(r.instances ?? []).forEach((e, t) => {
|
|
1294
|
-
r =
|
|
1294
|
+
r = st(r, t, n);
|
|
1295
1295
|
}), c(e.id, {
|
|
1296
1296
|
comp: r,
|
|
1297
1297
|
_rollSeed: t
|
|
1298
1298
|
});
|
|
1299
|
-
}), /* @__PURE__ */ Q(
|
|
1299
|
+
}), /* @__PURE__ */ Q(wr, {
|
|
1300
1300
|
title: p,
|
|
1301
1301
|
tabStrip: /* @__PURE__ */ Q(J, {
|
|
1302
1302
|
tone: "sunken",
|
|
1303
1303
|
value: i,
|
|
1304
1304
|
onChange: s,
|
|
1305
|
-
options: n === "sm" ?
|
|
1305
|
+
options: n === "sm" ? br : xr,
|
|
1306
1306
|
size: n,
|
|
1307
1307
|
className: r(n)
|
|
1308
1308
|
}),
|
|
1309
|
-
children: /* @__PURE__ */ Q(
|
|
1309
|
+
children: /* @__PURE__ */ Q(ot, {
|
|
1310
1310
|
layer: e,
|
|
1311
1311
|
setProp: d.setProp,
|
|
1312
1312
|
updateLayer: c,
|
|
@@ -1321,41 +1321,41 @@ function Ar({ layer: e, showMod: t }) {
|
|
|
1321
1321
|
})
|
|
1322
1322
|
});
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1325
|
-
let { layer: e } =
|
|
1324
|
+
function Nr() {
|
|
1325
|
+
let { layer: e } = fn(), t = qe(), n = o(), r = ze();
|
|
1326
1326
|
return Y(() => {
|
|
1327
1327
|
let e = (e) => {
|
|
1328
|
-
e.key !== "m" && e.key !== "M" || e.metaKey || e.ctrlKey || e.altKey ||
|
|
1328
|
+
e.key !== "m" && e.key !== "M" || e.metaKey || e.ctrlKey || e.altKey || Dt(e) || Re();
|
|
1329
1329
|
};
|
|
1330
1330
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1331
|
-
}, []), t.active ? /* @__PURE__ */ Q(
|
|
1331
|
+
}, []), t.active ? /* @__PURE__ */ Q(wr, {
|
|
1332
1332
|
title: "Morph",
|
|
1333
|
-
children: /* @__PURE__ */ Q(
|
|
1333
|
+
children: /* @__PURE__ */ Q(ar, {
|
|
1334
1334
|
layer: e,
|
|
1335
|
-
editTabs: n === "sm" ?
|
|
1335
|
+
editTabs: n === "sm" ? br : xr
|
|
1336
1336
|
})
|
|
1337
|
-
}) : e ? e.type === "photo" ? /* @__PURE__ */ Q(
|
|
1337
|
+
}) : e ? e.type === "photo" ? /* @__PURE__ */ Q(Tr, {
|
|
1338
1338
|
layer: e,
|
|
1339
1339
|
showMod: r
|
|
1340
|
-
}, e.id) : e.type === "loop" ? /* @__PURE__ */ Q(
|
|
1340
|
+
}, e.id) : e.type === "loop" ? /* @__PURE__ */ Q(jr, {
|
|
1341
1341
|
layer: e,
|
|
1342
1342
|
showMod: r
|
|
1343
|
-
}, e.id) : e.type === "misc" ? /* @__PURE__ */ Q(
|
|
1343
|
+
}, e.id) : e.type === "misc" ? /* @__PURE__ */ Q(jr, {
|
|
1344
1344
|
layer: e,
|
|
1345
1345
|
showMod: r,
|
|
1346
1346
|
tree: le
|
|
1347
|
-
}, e.id) : e.type === "kinetic" ? /* @__PURE__ */ Q(
|
|
1347
|
+
}, e.id) : e.type === "kinetic" ? /* @__PURE__ */ Q(Mr, {
|
|
1348
1348
|
layer: e,
|
|
1349
1349
|
showMod: r
|
|
1350
1350
|
}, e.id) : /* @__PURE__ */ Q(V, { children: "This layer has no labs surface." }) : /* @__PURE__ */ Q(V, { children: "Pick an effect or generator from the nav." });
|
|
1351
1351
|
}
|
|
1352
1352
|
//#endregion
|
|
1353
1353
|
//#region src/editor/labs/LabsSourcePicker.jsx
|
|
1354
|
-
var
|
|
1355
|
-
function
|
|
1354
|
+
var Pr = (e) => /\.svg$/i.test(e.key) || /svg/i.test(e.contentType || "");
|
|
1355
|
+
function Fr(e) {
|
|
1356
1356
|
let { patch: t } = oe(e.id), n = X(null), [r, i] = Z(!1), a = e.type === "loop" && e.loopGroup === "distress";
|
|
1357
1357
|
return {
|
|
1358
|
-
nodes: /* @__PURE__ */ $(
|
|
1358
|
+
nodes: /* @__PURE__ */ $(Kn, { children: [/* @__PURE__ */ Q("input", {
|
|
1359
1359
|
ref: n,
|
|
1360
1360
|
type: "file",
|
|
1361
1361
|
accept: a ? ".svg,image/svg+xml" : "image/*,video/*",
|
|
@@ -1375,24 +1375,24 @@ function Nr(e) {
|
|
|
1375
1375
|
});
|
|
1376
1376
|
return;
|
|
1377
1377
|
}
|
|
1378
|
-
|
|
1378
|
+
On(r).then((e) => t({
|
|
1379
1379
|
src: e,
|
|
1380
1380
|
srcType: "image"
|
|
1381
1381
|
}));
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
|
-
}), /* @__PURE__ */ Q(
|
|
1384
|
+
}), /* @__PURE__ */ Q(Xt, {
|
|
1385
1385
|
open: r,
|
|
1386
|
-
accept: a ?
|
|
1386
|
+
accept: a ? Pr : ["image", "video"],
|
|
1387
1387
|
onClose: () => i(!1),
|
|
1388
1388
|
onSelect: (e, { contentType: n } = {}) => {
|
|
1389
1389
|
if (a) {
|
|
1390
|
-
t({ svgSrc:
|
|
1390
|
+
t({ svgSrc: wn(e) });
|
|
1391
1391
|
return;
|
|
1392
1392
|
}
|
|
1393
1393
|
t({
|
|
1394
|
-
src:
|
|
1395
|
-
srcType:
|
|
1394
|
+
src: wn(e),
|
|
1395
|
+
srcType: Lt(n) ? "video" : "image"
|
|
1396
1396
|
});
|
|
1397
1397
|
}
|
|
1398
1398
|
})] }),
|
|
@@ -1400,7 +1400,7 @@ function Nr(e) {
|
|
|
1400
1400
|
openLibrary: () => i(!0),
|
|
1401
1401
|
openUpload: () => n.current?.click(),
|
|
1402
1402
|
openCamera: () => {
|
|
1403
|
-
|
|
1403
|
+
dt(e.id).then(() => t({
|
|
1404
1404
|
src: null,
|
|
1405
1405
|
srcType: "webcam"
|
|
1406
1406
|
})).catch(() => {});
|
|
@@ -1421,15 +1421,15 @@ function Nr(e) {
|
|
|
1421
1421
|
label: "Camera"
|
|
1422
1422
|
}
|
|
1423
1423
|
].slice(0, 2);
|
|
1424
|
-
function
|
|
1425
|
-
let t =
|
|
1424
|
+
function Ir({ layer: e }) {
|
|
1425
|
+
let t = Fr(e);
|
|
1426
1426
|
return /* @__PURE__ */ $("div", {
|
|
1427
1427
|
className: "flex flex-col gap-2",
|
|
1428
1428
|
children: [
|
|
1429
1429
|
/* @__PURE__ */ Q(K, {
|
|
1430
1430
|
tone: "primary",
|
|
1431
1431
|
size: "lg",
|
|
1432
|
-
className:
|
|
1432
|
+
className: yt,
|
|
1433
1433
|
iconLeft: "image",
|
|
1434
1434
|
iconRight: "image",
|
|
1435
1435
|
onClick: t.openLibrary,
|
|
@@ -1438,7 +1438,7 @@ function Pr({ layer: e }) {
|
|
|
1438
1438
|
/* @__PURE__ */ Q(K, {
|
|
1439
1439
|
tone: "primary",
|
|
1440
1440
|
size: "lg",
|
|
1441
|
-
className:
|
|
1441
|
+
className: yt,
|
|
1442
1442
|
iconLeft: "upload",
|
|
1443
1443
|
iconRight: "upload",
|
|
1444
1444
|
onClick: t.openUpload,
|
|
@@ -1457,8 +1457,8 @@ function Pr({ layer: e }) {
|
|
|
1457
1457
|
]
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1461
|
-
return
|
|
1460
|
+
function Lr({ layer: e, title: t, onBack: n }) {
|
|
1461
|
+
return Ft(n), /* @__PURE__ */ Q("div", {
|
|
1462
1462
|
className: "fixed inset-y-0 right-0 left-[var(--fxr-rail,0px)] kol-overlay-scrim flex flex-col items-center overflow-y-auto p-6",
|
|
1463
1463
|
style: { zIndex: "calc(var(--kol-z-sticky) - 2)" },
|
|
1464
1464
|
children: /* @__PURE__ */ $("div", {
|
|
@@ -1475,11 +1475,11 @@ function Fr({ layer: e, title: t, onBack: n }) {
|
|
|
1475
1475
|
children: "Pick the media it works on."
|
|
1476
1476
|
})]
|
|
1477
1477
|
}),
|
|
1478
|
-
/* @__PURE__ */ Q(
|
|
1478
|
+
/* @__PURE__ */ Q(Ir, { layer: e }),
|
|
1479
1479
|
/* @__PURE__ */ Q(K, {
|
|
1480
1480
|
tone: "grey",
|
|
1481
1481
|
size: "lg",
|
|
1482
|
-
className:
|
|
1482
|
+
className: yt,
|
|
1483
1483
|
iconLeft: "arrow-left",
|
|
1484
1484
|
iconRight: "arrow-left",
|
|
1485
1485
|
onClick: n,
|
|
@@ -1491,13 +1491,13 @@ function Fr({ layer: e, title: t, onBack: n }) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
//#endregion
|
|
1493
1493
|
//#region src/editor/components/PanelHeader.jsx
|
|
1494
|
-
function
|
|
1494
|
+
function Rr({ title: e, onCollapse: t, action: n, className: r = "px-3" }) {
|
|
1495
1495
|
return /* @__PURE__ */ $("div", {
|
|
1496
1496
|
className: `flex w-full shrink-0 items-center ${r}`,
|
|
1497
1497
|
children: [/* @__PURE__ */ $("button", {
|
|
1498
1498
|
className: "kol-helper-12 text-meta flex flex-1 items-center gap-2 py-2.5",
|
|
1499
1499
|
onClick: t,
|
|
1500
|
-
children: [/* @__PURE__ */ Q("span", { children: e }), /* @__PURE__ */ Q(
|
|
1500
|
+
children: [/* @__PURE__ */ Q("span", { children: e }), /* @__PURE__ */ Q(qn, {
|
|
1501
1501
|
name: "chevron-down",
|
|
1502
1502
|
size: 16,
|
|
1503
1503
|
className: "text-oq-48"
|
|
@@ -1505,7 +1505,7 @@ function Ir({ title: e, onCollapse: t, action: n, className: r = "px-3" }) {
|
|
|
1505
1505
|
}), n]
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function zr({ label: e, onOpen: t, size: n = "lg", tone: r = "primary", children: i }) {
|
|
1509
1509
|
return /* @__PURE__ */ $("div", {
|
|
1510
1510
|
className: "pointer-events-none fixed bottom-[max(0.75rem,env(safe-area-inset-bottom))] left-[var(--fxr-rail,0px)] right-0 z-10 flex flex-nowrap items-center gap-2 px-3 [&>*]:pointer-events-auto",
|
|
1511
1511
|
children: [/* @__PURE__ */ Q(K, {
|
|
@@ -1518,7 +1518,7 @@ function Lr({ label: e, onOpen: t, size: n = "lg", tone: r = "primary", children
|
|
|
1518
1518
|
children: [/* @__PURE__ */ Q("span", {
|
|
1519
1519
|
className: "truncate",
|
|
1520
1520
|
children: e
|
|
1521
|
-
}), /* @__PURE__ */ Q(
|
|
1521
|
+
}), /* @__PURE__ */ Q(qn, {
|
|
1522
1522
|
name: "chevron-down",
|
|
1523
1523
|
size: 16,
|
|
1524
1524
|
className: "rotate-180 shrink-0"
|
|
@@ -1527,13 +1527,13 @@ function Lr({ label: e, onOpen: t, size: n = "lg", tone: r = "primary", children
|
|
|
1527
1527
|
}), i]
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
|
-
var
|
|
1530
|
+
var Br = {
|
|
1531
1531
|
half: "50dvh",
|
|
1532
1532
|
tall: "85dvh"
|
|
1533
|
-
},
|
|
1534
|
-
function
|
|
1533
|
+
}, Vr = 4;
|
|
1534
|
+
function Hr({ tall: e, onToggle: t, onDrag: n, onResize: r, onResizeEnd: i }) {
|
|
1535
1535
|
let a = X(null);
|
|
1536
|
-
|
|
1536
|
+
Vn(a, { axis: "x" });
|
|
1537
1537
|
let o = X({
|
|
1538
1538
|
y: null,
|
|
1539
1539
|
h0: 0,
|
|
@@ -1553,7 +1553,7 @@ function Br({ tall: e, onToggle: t, onDrag: n, onResize: r, onResizeEnd: i }) {
|
|
|
1553
1553
|
onPointerMove: (e) => {
|
|
1554
1554
|
if (o.y === null) return;
|
|
1555
1555
|
let t = e.clientY - o.y;
|
|
1556
|
-
Math.abs(t) >
|
|
1556
|
+
Math.abs(t) > Vr && (o.moved = !0), o.moved && r && (o.last = o.h0 - t, r(o.last));
|
|
1557
1557
|
},
|
|
1558
1558
|
onPointerUp: (e) => {
|
|
1559
1559
|
if (o.y === null) return;
|
|
@@ -1575,10 +1575,10 @@ function Br({ tall: e, onToggle: t, onDrag: n, onResize: r, onResizeEnd: i }) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
//#endregion
|
|
1577
1577
|
//#region src/editor/labs/LabsCatalogCard.jsx
|
|
1578
|
-
var
|
|
1579
|
-
function
|
|
1580
|
-
let { items: a, dispatch: o } =
|
|
1581
|
-
|
|
1578
|
+
var Ur = new Set(["#rail/sec:effects"]);
|
|
1579
|
+
function Wr({ onPicked: e, onClose: t, initialOpen: n = null, hasMedia: r = !0, onNeedMedia: i }) {
|
|
1580
|
+
let { items: a, dispatch: o } = an(), [s, c] = Z(n);
|
|
1581
|
+
Ft(t);
|
|
1582
1582
|
let l = a.find((e) => e.path === s) ?? null, u = l ? l.sub : a;
|
|
1583
1583
|
return /* @__PURE__ */ Q("div", {
|
|
1584
1584
|
className: "fixed bottom-0 top-12 md:top-0 right-0 left-[var(--fxr-rail,0px)] kol-overlay-scrim flex flex-col items-center overflow-y-auto p-6",
|
|
@@ -1597,11 +1597,11 @@ function Hr({ onPicked: e, onClose: t, initialOpen: n = null, hasMedia: r = !0,
|
|
|
1597
1597
|
children: [u.map((t) => /* @__PURE__ */ Q(K, {
|
|
1598
1598
|
tone: "primary",
|
|
1599
1599
|
size: "lg",
|
|
1600
|
-
className:
|
|
1600
|
+
className: yt,
|
|
1601
1601
|
iconLeft: t.icon,
|
|
1602
1602
|
iconRight: t.icon,
|
|
1603
1603
|
onClick: () => {
|
|
1604
|
-
if (!l &&
|
|
1604
|
+
if (!l && Ur.has(t.path) && !r && i) {
|
|
1605
1605
|
i(t.path);
|
|
1606
1606
|
return;
|
|
1607
1607
|
}
|
|
@@ -1627,8 +1627,8 @@ function Hr({ onPicked: e, onClose: t, initialOpen: n = null, hasMedia: r = !0,
|
|
|
1627
1627
|
}
|
|
1628
1628
|
//#endregion
|
|
1629
1629
|
//#region src/editor/labs/sheetLabels.js
|
|
1630
|
-
function
|
|
1631
|
-
if (
|
|
1630
|
+
function Gr(e) {
|
|
1631
|
+
if (Ge().active) return {
|
|
1632
1632
|
title: "Morph",
|
|
1633
1633
|
pill: "Morph"
|
|
1634
1634
|
};
|
|
@@ -1655,15 +1655,15 @@ function Ur(e) {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
//#endregion
|
|
1657
1657
|
//#region src/editor/labs/LabsView.jsx
|
|
1658
|
-
var
|
|
1658
|
+
var Kr = .85, qr = .3, Jr = 2.5, Yr = {
|
|
1659
1659
|
0: 1,
|
|
1660
1660
|
1: .5,
|
|
1661
1661
|
2: 1,
|
|
1662
1662
|
3: 1.5,
|
|
1663
1663
|
4: 2
|
|
1664
|
-
},
|
|
1665
|
-
function
|
|
1666
|
-
let { layer: e } =
|
|
1664
|
+
}, Xr = "px-2 py-1 rounded border border-oq-08 bg-surface-secondary kol-mono-12 text-emphasis tabular-nums";
|
|
1665
|
+
function Zr() {
|
|
1666
|
+
let { layer: e } = fn(), { removeLayer: t, layers: n, updateLayer: r, beginTransaction: i, commitTransaction: o, select: s } = a(), [c, l] = Z(null);
|
|
1667
1667
|
Y(() => {
|
|
1668
1668
|
let e = (e) => {
|
|
1669
1669
|
let { id: t, index: r } = e.detail || {};
|
|
@@ -1682,7 +1682,7 @@ function Yr() {
|
|
|
1682
1682
|
c,
|
|
1683
1683
|
s
|
|
1684
1684
|
]);
|
|
1685
|
-
let u = c && n.find((e) => e.id === c.id && e.type === "kinetic"), d = e?.type === "photo" && !e.src && e.srcType !== "webcam", [f, p] = Z(1), [m, g] = Z(!1), _ =
|
|
1685
|
+
let u = c && n.find((e) => e.id === c.id && e.type === "kinetic"), d = e?.type === "photo" && !e.src && e.srcType !== "webcam", [f, p] = Z(1), [m, g] = Z(!1), _ = Tt(m), y = X(null), b = (e) => Math.min(Jr, Math.max(qr, e)), x = (e) => p((t) => b(t * (e > 0 ? 1.25 : .8))), { tool: S } = bt(), C = S === "orbit", w = X(C);
|
|
1686
1686
|
w.current = C, Y(() => {
|
|
1687
1687
|
let e = y.current;
|
|
1688
1688
|
if (!e) return;
|
|
@@ -1692,12 +1692,12 @@ function Yr() {
|
|
|
1692
1692
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
1693
1693
|
}, []), Y(() => {
|
|
1694
1694
|
let e = (e) => {
|
|
1695
|
-
if (!(e.metaKey || e.ctrlKey || e.altKey) && !
|
|
1695
|
+
if (!(e.metaKey || e.ctrlKey || e.altKey) && !Dt(e)) {
|
|
1696
1696
|
if (e.key === "f" || e.key === "F") {
|
|
1697
1697
|
g((e) => !e);
|
|
1698
1698
|
return;
|
|
1699
1699
|
}
|
|
1700
|
-
if (!(v().zoomLock && (e.key === "-" || e.key === "_" || e.key === "+" || e.key === "=" ||
|
|
1700
|
+
if (!(v().zoomLock && (e.key === "-" || e.key === "_" || e.key === "+" || e.key === "=" || Yr[e.key] !== void 0))) {
|
|
1701
1701
|
if (e.key === "-" || e.key === "_") {
|
|
1702
1702
|
x(-1);
|
|
1703
1703
|
return;
|
|
@@ -1706,7 +1706,7 @@ function Yr() {
|
|
|
1706
1706
|
x(1);
|
|
1707
1707
|
return;
|
|
1708
1708
|
}
|
|
1709
|
-
|
|
1709
|
+
Yr[e.key] !== void 0 && p(Yr[e.key]);
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
1712
|
};
|
|
@@ -1786,11 +1786,11 @@ function Yr() {
|
|
|
1786
1786
|
/* @__PURE__ */ Q("div", {
|
|
1787
1787
|
style: {
|
|
1788
1788
|
flex: "none",
|
|
1789
|
-
width: `${f *
|
|
1790
|
-
height: `${f *
|
|
1789
|
+
width: `${f * Kr * 100}%`,
|
|
1790
|
+
height: `${f * Kr * 100}%`,
|
|
1791
1791
|
transform: `translate(${T.x}px, ${T.y}px)`
|
|
1792
1792
|
},
|
|
1793
|
-
children: /* @__PURE__ */ Q(
|
|
1793
|
+
children: /* @__PURE__ */ Q(Sn, { overlay: u ? (e) => /* @__PURE__ */ Q(Ot, {
|
|
1794
1794
|
layer: u,
|
|
1795
1795
|
initialIndex: c.index,
|
|
1796
1796
|
toVirtual: e,
|
|
@@ -1800,17 +1800,17 @@ function Yr() {
|
|
|
1800
1800
|
onExit: () => l(null)
|
|
1801
1801
|
}) : void 0 })
|
|
1802
1802
|
}),
|
|
1803
|
-
d && /* @__PURE__ */ Q(
|
|
1803
|
+
d && /* @__PURE__ */ Q(Lr, {
|
|
1804
1804
|
layer: e,
|
|
1805
|
-
title:
|
|
1805
|
+
title: Gr(e).title,
|
|
1806
1806
|
onBack: () => t(e.id)
|
|
1807
1807
|
}),
|
|
1808
1808
|
m && /* @__PURE__ */ Q("div", {
|
|
1809
1809
|
className: "absolute bottom-3 right-3 z-[var(--kol-z-base)] flex items-center gap-2 [@media(pointer:coarse)]:bottom-1",
|
|
1810
|
-
children: /* @__PURE__ */ Q(
|
|
1810
|
+
children: /* @__PURE__ */ Q(Bn, {
|
|
1811
1811
|
label: "Framerate — press F to hide",
|
|
1812
1812
|
children: /* @__PURE__ */ $("span", {
|
|
1813
|
-
className:
|
|
1813
|
+
className: Xr,
|
|
1814
1814
|
children: [_, " fps"]
|
|
1815
1815
|
})
|
|
1816
1816
|
})
|
|
@@ -1818,8 +1818,8 @@ function Yr() {
|
|
|
1818
1818
|
]
|
|
1819
1819
|
});
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1822
|
-
let e = X(null), { grabProps: t } =
|
|
1821
|
+
function Qr() {
|
|
1822
|
+
let e = X(null), { grabProps: t } = Jn(e, {
|
|
1823
1823
|
token: "kol-rail",
|
|
1824
1824
|
side: "right"
|
|
1825
1825
|
});
|
|
@@ -1865,14 +1865,14 @@ function Xr() {
|
|
|
1865
1865
|
className: "kol-compose-rail kol-compose-rail--inspector",
|
|
1866
1866
|
children: [/* @__PURE__ */ Q("div", { ...t }), /* @__PURE__ */ Q("div", {
|
|
1867
1867
|
className: "kol-compose-inspector-body",
|
|
1868
|
-
children: /* @__PURE__ */ Q(
|
|
1868
|
+
children: /* @__PURE__ */ Q(Nr, {})
|
|
1869
1869
|
})]
|
|
1870
1870
|
});
|
|
1871
1871
|
}
|
|
1872
|
-
var
|
|
1873
|
-
function
|
|
1874
|
-
let { tall: e, setTall: t, collapseParams: n, setSheetPx: r } =
|
|
1875
|
-
return /* @__PURE__ */ Q(
|
|
1872
|
+
var $r = Un(null);
|
|
1873
|
+
function ei() {
|
|
1874
|
+
let { tall: e, setTall: t, collapseParams: n, setSheetPx: r } = Wn($r);
|
|
1875
|
+
return /* @__PURE__ */ Q(Hr, {
|
|
1876
1876
|
tall: e,
|
|
1877
1877
|
onToggle: () => {
|
|
1878
1878
|
r(null), t((e) => !e);
|
|
@@ -1883,20 +1883,20 @@ function Qr() {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
});
|
|
1885
1885
|
}
|
|
1886
|
-
var
|
|
1886
|
+
var ti = [
|
|
1887
1887
|
2,
|
|
1888
1888
|
4,
|
|
1889
1889
|
8,
|
|
1890
1890
|
12,
|
|
1891
1891
|
16
|
|
1892
1892
|
];
|
|
1893
|
-
function
|
|
1893
|
+
function ni({ paramsOpen: e, setParamsOpen: t, catalog: n, toggleCatalog: r, railHeight: i }) {
|
|
1894
1894
|
let { playing: a, loopSeconds: o, play: s, pause: c, stop: l, rewind: u, setLoopSeconds: d } = O(), [f, p] = Z(!0), m = [
|
|
1895
1895
|
{
|
|
1896
1896
|
icon: "home-01",
|
|
1897
1897
|
path: "#home",
|
|
1898
1898
|
label: "Home",
|
|
1899
|
-
onPress: () =>
|
|
1899
|
+
onPress: () => Ht("/")
|
|
1900
1900
|
},
|
|
1901
1901
|
{
|
|
1902
1902
|
icon: "grid",
|
|
@@ -1923,13 +1923,13 @@ function ei({ paramsOpen: e, setParamsOpen: t, catalog: n, toggleCatalog: r, rai
|
|
|
1923
1923
|
icon: "download",
|
|
1924
1924
|
label: "Output",
|
|
1925
1925
|
onPress: () => {
|
|
1926
|
-
t(!0),
|
|
1926
|
+
t(!0), At("Output");
|
|
1927
1927
|
}
|
|
1928
1928
|
}, {
|
|
1929
1929
|
icon: "file",
|
|
1930
1930
|
label: "File",
|
|
1931
1931
|
onPress: () => {
|
|
1932
|
-
t(!0),
|
|
1932
|
+
t(!0), At("File");
|
|
1933
1933
|
}
|
|
1934
1934
|
}], g = f ? {
|
|
1935
1935
|
items: [
|
|
@@ -1965,14 +1965,14 @@ function ei({ paramsOpen: e, setParamsOpen: t, catalog: n, toggleCatalog: r, rai
|
|
|
1965
1965
|
onPress: u
|
|
1966
1966
|
}
|
|
1967
1967
|
],
|
|
1968
|
-
sheetFor: { loop:
|
|
1968
|
+
sheetFor: { loop: ti.map((e) => ({
|
|
1969
1969
|
label: `${e} s`,
|
|
1970
1970
|
checked: o === e,
|
|
1971
1971
|
onPress: () => d(e)
|
|
1972
1972
|
})) }
|
|
1973
1973
|
} : void 0;
|
|
1974
1974
|
return Y(() => {
|
|
1975
|
-
|
|
1975
|
+
er({
|
|
1976
1976
|
items: m,
|
|
1977
1977
|
actions: h,
|
|
1978
1978
|
transport: g,
|
|
@@ -1986,54 +1986,54 @@ function ei({ paramsOpen: e, setParamsOpen: t, catalog: n, toggleCatalog: r, rai
|
|
|
1986
1986
|
a,
|
|
1987
1987
|
o,
|
|
1988
1988
|
i
|
|
1989
|
-
]), Y(() => () =>
|
|
1989
|
+
]), Y(() => () => er(null), []), null;
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function ri() {
|
|
1992
1992
|
return /* @__PURE__ */ Q("div", {
|
|
1993
1993
|
className: "kol-compose-rail kol-compose-rail--inspector",
|
|
1994
1994
|
children: /* @__PURE__ */ Q("div", {
|
|
1995
1995
|
className: "kol-compose-inspector-body",
|
|
1996
|
-
children: /* @__PURE__ */ Q(
|
|
1996
|
+
children: /* @__PURE__ */ Q(Nr, {})
|
|
1997
1997
|
})
|
|
1998
1998
|
});
|
|
1999
1999
|
}
|
|
2000
|
-
var
|
|
2000
|
+
var ii = {
|
|
2001
2001
|
topbar: () => null,
|
|
2002
|
-
canvas:
|
|
2002
|
+
canvas: Zr,
|
|
2003
2003
|
panels: [
|
|
2004
2004
|
{
|
|
2005
2005
|
slot: "canvas.footer",
|
|
2006
2006
|
order: 0,
|
|
2007
|
-
Component:
|
|
2007
|
+
Component: tt
|
|
2008
2008
|
},
|
|
2009
2009
|
{
|
|
2010
2010
|
slot: "right.body",
|
|
2011
2011
|
order: 0,
|
|
2012
|
-
Component:
|
|
2012
|
+
Component: Qr
|
|
2013
2013
|
},
|
|
2014
2014
|
{
|
|
2015
2015
|
slot: "right.footer",
|
|
2016
2016
|
order: 0,
|
|
2017
|
-
Component:
|
|
2017
|
+
Component: sn
|
|
2018
2018
|
}
|
|
2019
2019
|
]
|
|
2020
|
-
},
|
|
2021
|
-
...
|
|
2020
|
+
}, ai = {
|
|
2021
|
+
...ii,
|
|
2022
2022
|
panels: [{
|
|
2023
2023
|
slot: "right.header",
|
|
2024
2024
|
order: 0,
|
|
2025
|
-
Component:
|
|
2026
|
-
}, ...
|
|
2025
|
+
Component: ei
|
|
2026
|
+
}, ...ii.panels.map((e) => e.Component === Qr ? {
|
|
2027
2027
|
...e,
|
|
2028
|
-
Component:
|
|
2028
|
+
Component: ri
|
|
2029
2029
|
} : e)]
|
|
2030
2030
|
};
|
|
2031
|
-
function
|
|
2032
|
-
let { setAspect: e, selectedId: t, select: n } = a(), { layer: r, setOnly: i } =
|
|
2031
|
+
function oi() {
|
|
2032
|
+
let { setAspect: e, selectedId: t, select: n } = a(), { layer: r, setOnly: i } = fn(), o = X(!1), s = Yt(yn), l = on() && !cn() || s;
|
|
2033
2033
|
Y(() => {
|
|
2034
2034
|
l && document.documentElement.removeAttribute("data-rail");
|
|
2035
2035
|
}, [l]);
|
|
2036
|
-
let [u, f] = Z(!0), [p, m] = Z(!1), [g, _] = Z(null), y = g ? `${g}px` : p ?
|
|
2036
|
+
let [u, f] = Z(!0), [p, m] = Z(!1), [g, _] = Z(null), y = g ? `${g}px` : p ? Br.tall : Br.half, b = { "--kol-sheet-h": y }, x = tr(), S = qe(), [C, w] = Z(() => !r);
|
|
2037
2037
|
Y(() => {
|
|
2038
2038
|
w(!r);
|
|
2039
2039
|
}, [r?.id]);
|
|
@@ -2058,7 +2058,7 @@ function ii() {
|
|
|
2058
2058
|
}), () => {
|
|
2059
2059
|
cancelAnimationFrame(e), cancelAnimationFrame(t);
|
|
2060
2060
|
};
|
|
2061
|
-
}, [S.active, l]), Y(() =>
|
|
2061
|
+
}, [S.active, l]), Y(() => ut((e) => i("photo", {
|
|
2062
2062
|
src: e.url,
|
|
2063
2063
|
srcType: e.srcType
|
|
2064
2064
|
})), [i]), Y(() => {
|
|
@@ -2067,7 +2067,7 @@ function ii() {
|
|
|
2067
2067
|
return window.addEventListener("kol:open-params", e), window.addEventListener("kol:open-effects", e), () => {
|
|
2068
2068
|
window.removeEventListener("kol:open-params", e), window.removeEventListener("kol:open-effects", e);
|
|
2069
2069
|
};
|
|
2070
|
-
}, [l]),
|
|
2070
|
+
}, [l]), vt(), Y(() => (kt("labs"), () => kt(null)), []), Y(() => {
|
|
2071
2071
|
if (o.current) return;
|
|
2072
2072
|
o.current = !0;
|
|
2073
2073
|
let t = v();
|
|
@@ -2077,7 +2077,7 @@ function ii() {
|
|
|
2077
2077
|
Y(() => {
|
|
2078
2078
|
if (O.current) return;
|
|
2079
2079
|
O.current = !0;
|
|
2080
|
-
let e =
|
|
2080
|
+
let e = Mt();
|
|
2081
2081
|
if (e.open || e.fresh) return;
|
|
2082
2082
|
let t = new URLSearchParams(window.location.search).get("preset"), n = t ? se(t) : null;
|
|
2083
2083
|
n && i("loop", M(N(t), n));
|
|
@@ -2087,7 +2087,7 @@ function ii() {
|
|
|
2087
2087
|
let e = setTimeout(k, 800);
|
|
2088
2088
|
return () => clearTimeout(e);
|
|
2089
2089
|
}, [k]);
|
|
2090
|
-
let { tool: j, setTool: P } =
|
|
2090
|
+
let { tool: j, setTool: P } = bt(), F = X(j);
|
|
2091
2091
|
F.current = j;
|
|
2092
2092
|
let { updateLayer: I, undo: L, redo: R } = a(), z = X({
|
|
2093
2093
|
undo: L,
|
|
@@ -2106,7 +2106,7 @@ function ii() {
|
|
|
2106
2106
|
let te = X(I);
|
|
2107
2107
|
return te.current = I, Y(() => {
|
|
2108
2108
|
let e = (e) => {
|
|
2109
|
-
if (
|
|
2109
|
+
if (Dt(e)) return;
|
|
2110
2110
|
if ((e.metaKey || e.ctrlKey) && (e.key === "z" || e.key === "Z")) {
|
|
2111
2111
|
e.preventDefault(), e.shiftKey ? z.current.redo() : z.current.undo();
|
|
2112
2112
|
return;
|
|
@@ -2151,8 +2151,8 @@ function ii() {
|
|
|
2151
2151
|
"data-empty": r || S.active ? void 0 : "",
|
|
2152
2152
|
style: b,
|
|
2153
2153
|
children: [
|
|
2154
|
-
/* @__PURE__ */ Q(
|
|
2155
|
-
l ? /* @__PURE__ */ $(
|
|
2154
|
+
/* @__PURE__ */ Q(nr, {}),
|
|
2155
|
+
l ? /* @__PURE__ */ $($r.Provider, {
|
|
2156
2156
|
value: {
|
|
2157
2157
|
collapseParams: () => f(!1),
|
|
2158
2158
|
tall: p,
|
|
@@ -2163,9 +2163,9 @@ function ii() {
|
|
|
2163
2163
|
},
|
|
2164
2164
|
children: [/* @__PURE__ */ Q(c.Provider, {
|
|
2165
2165
|
value: "md",
|
|
2166
|
-
children: /* @__PURE__ */ Q(
|
|
2167
|
-
registry:
|
|
2168
|
-
rightIn: (e) => x ?
|
|
2166
|
+
children: /* @__PURE__ */ Q(En, {
|
|
2167
|
+
registry: ai,
|
|
2168
|
+
rightIn: (e) => x ? Xn(/* @__PURE__ */ Q("div", {
|
|
2169
2169
|
className: "kol-editor-labs flex flex-col h-full",
|
|
2170
2170
|
"data-touch": "",
|
|
2171
2171
|
"data-params": "open",
|
|
@@ -2173,15 +2173,15 @@ function ii() {
|
|
|
2173
2173
|
children: e
|
|
2174
2174
|
}), x) : null
|
|
2175
2175
|
})
|
|
2176
|
-
}), /* @__PURE__ */ Q(
|
|
2176
|
+
}), /* @__PURE__ */ Q(ni, {
|
|
2177
2177
|
paramsOpen: u,
|
|
2178
2178
|
setParamsOpen: f,
|
|
2179
2179
|
catalog: C,
|
|
2180
2180
|
toggleCatalog: () => w((e) => !e),
|
|
2181
2181
|
railHeight: y
|
|
2182
2182
|
})]
|
|
2183
|
-
}) : /* @__PURE__ */ Q(
|
|
2184
|
-
C && !S.picker && !(S.active && !r) && /* @__PURE__ */ Q(
|
|
2183
|
+
}) : /* @__PURE__ */ Q(En, { registry: ii }),
|
|
2184
|
+
C && !S.picker && !(S.active && !r) && /* @__PURE__ */ Q(Wr, {
|
|
2185
2185
|
initialOpen: T,
|
|
2186
2186
|
hasMedia: D,
|
|
2187
2187
|
onNeedMedia: (e) => {
|
|
@@ -2200,8 +2200,8 @@ function ii() {
|
|
|
2200
2200
|
]
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
|
-
var
|
|
2204
|
-
function
|
|
2203
|
+
var si = "kol.editor.labs-draft";
|
|
2204
|
+
function ci() {
|
|
2205
2205
|
let e = /\/morph\/?$/.test(typeof window > "u" ? "" : window.location.pathname);
|
|
2206
2206
|
return Y(() => (G(e ? { active: !0 } : {
|
|
2207
2207
|
active: !1,
|
|
@@ -2209,20 +2209,20 @@ function oi() {
|
|
|
2209
2209
|
}), () => G({
|
|
2210
2210
|
active: !1,
|
|
2211
2211
|
editing: null
|
|
2212
|
-
})), [e]), /* @__PURE__ */ $(
|
|
2213
|
-
draftKey:
|
|
2212
|
+
})), [e]), /* @__PURE__ */ $(pn, {
|
|
2213
|
+
draftKey: si,
|
|
2214
2214
|
children: [
|
|
2215
|
-
/* @__PURE__ */ Q(
|
|
2216
|
-
/* @__PURE__ */ Q(
|
|
2217
|
-
/* @__PURE__ */ Q(
|
|
2215
|
+
/* @__PURE__ */ Q(oi, {}),
|
|
2216
|
+
/* @__PURE__ */ Q(rn, {}),
|
|
2217
|
+
/* @__PURE__ */ Q(tn, {})
|
|
2218
2218
|
]
|
|
2219
2219
|
});
|
|
2220
2220
|
}
|
|
2221
2221
|
//#endregion
|
|
2222
2222
|
//#region src/editor/mobile/EffectScreen.jsx
|
|
2223
|
-
function
|
|
2223
|
+
function li({ layer: e, chain: t, onPick: n, onBack: r }) {
|
|
2224
2224
|
let [i, a] = Z(null);
|
|
2225
|
-
|
|
2225
|
+
Ft(r);
|
|
2226
2226
|
let { engineHost: o } = ae(e), s = o && !t.some((e) => e.def?.kind === "engine"), c = I(z.filter((e) => e.kind !== "engine" || s)), l = c.find((e) => e.id === i) ?? null;
|
|
2227
2227
|
return /* @__PURE__ */ Q("div", {
|
|
2228
2228
|
className: "fixed inset-y-0 right-0 left-[var(--fxr-rail,0px)] kol-overlay-scrim flex flex-col items-center overflow-y-auto p-6",
|
|
@@ -2240,7 +2240,7 @@ function si({ layer: e, chain: t, onPick: n, onBack: r }) {
|
|
|
2240
2240
|
children: (l ? l.filters : c).map((e) => /* @__PURE__ */ Q(K, {
|
|
2241
2241
|
tone: "primary",
|
|
2242
2242
|
size: "lg",
|
|
2243
|
-
className:
|
|
2243
|
+
className: yt,
|
|
2244
2244
|
iconLeft: l ? "filter" : "chevron-right",
|
|
2245
2245
|
iconRight: l ? "filter" : "chevron-right",
|
|
2246
2246
|
onClick: () => l ? n(e.id) : a(e.id),
|
|
@@ -2250,7 +2250,7 @@ function si({ layer: e, chain: t, onPick: n, onBack: r }) {
|
|
|
2250
2250
|
/* @__PURE__ */ Q(K, {
|
|
2251
2251
|
tone: "grey",
|
|
2252
2252
|
size: "lg",
|
|
2253
|
-
className:
|
|
2253
|
+
className: yt,
|
|
2254
2254
|
iconLeft: "arrow-left",
|
|
2255
2255
|
iconRight: "arrow-left",
|
|
2256
2256
|
onClick: () => l ? a(null) : r(),
|
|
@@ -2262,7 +2262,7 @@ function si({ layer: e, chain: t, onPick: n, onBack: r }) {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
//#endregion
|
|
2264
2264
|
//#region src/editor/mobile/MobileOverlay.jsx
|
|
2265
|
-
var
|
|
2265
|
+
var ui = { background: "var(--kol-surface-primary)" }, di = [
|
|
2266
2266
|
{
|
|
2267
2267
|
value: "generate",
|
|
2268
2268
|
label: "Generate"
|
|
@@ -2279,29 +2279,29 @@ var ci = { background: "var(--kol-surface-primary)" }, li = [
|
|
|
2279
2279
|
value: "output",
|
|
2280
2280
|
label: "Output"
|
|
2281
2281
|
}
|
|
2282
|
-
],
|
|
2282
|
+
], fi = di.filter((e) => e.value !== "generate"), pi = "[&_.kol-seg-cell]:min-w-0 [&_.kol-seg-cell]:px-1 [&_.kol-seg-cell]:overflow-hidden [@media(hover:none)]:[&_.kol-seg-cell:hover]:text-[var(--kol-oq-48)]", mi = {
|
|
2283
2283
|
lg: 9.6,
|
|
2284
2284
|
sm: 7.2
|
|
2285
|
-
},
|
|
2286
|
-
function
|
|
2287
|
-
let n = t === "sm" ?
|
|
2285
|
+
}, hi = 10, gi = 232;
|
|
2286
|
+
function _i(e, t) {
|
|
2287
|
+
let n = t === "sm" ? gi : Math.min(window.innerWidth, 480) - 24, r = [], i = [], a = 0;
|
|
2288
2288
|
for (let o of e) {
|
|
2289
|
-
let e = o.label.length *
|
|
2289
|
+
let e = o.label.length * mi[t] + hi, s = Math.max(a, e);
|
|
2290
2290
|
i.length && (i.length + 1) * s > n ? (r.push(i), i = [o], a = e) : (i.push(o), a = s);
|
|
2291
2291
|
}
|
|
2292
2292
|
return i.length && r.push(i), r;
|
|
2293
2293
|
}
|
|
2294
|
-
function
|
|
2295
|
-
return
|
|
2294
|
+
function vi({ cells: e, size: t }) {
|
|
2295
|
+
return _i(e, t).map((e, n) => /* @__PURE__ */ Q(J, {
|
|
2296
2296
|
value: null,
|
|
2297
2297
|
onChange: (t) => e.find((e) => e.value === t)?.run(),
|
|
2298
2298
|
options: e,
|
|
2299
2299
|
size: t,
|
|
2300
2300
|
ariaLabel: "Randomize scope",
|
|
2301
|
-
className:
|
|
2301
|
+
className: pi
|
|
2302
2302
|
}, n));
|
|
2303
2303
|
}
|
|
2304
|
-
var
|
|
2304
|
+
var yi = [
|
|
2305
2305
|
2,
|
|
2306
2306
|
4,
|
|
2307
2307
|
8,
|
|
@@ -2310,17 +2310,17 @@ var _i = [
|
|
|
2310
2310
|
value: String(e),
|
|
2311
2311
|
label: `${e}s`
|
|
2312
2312
|
}));
|
|
2313
|
-
function
|
|
2313
|
+
function bi({ size: e }) {
|
|
2314
2314
|
let { loopSeconds: t, setLoopSeconds: n } = O();
|
|
2315
2315
|
return /* @__PURE__ */ Q(J, {
|
|
2316
2316
|
value: String(t),
|
|
2317
2317
|
onChange: (e) => n(Number(e)),
|
|
2318
|
-
options:
|
|
2318
|
+
options: yi,
|
|
2319
2319
|
size: e,
|
|
2320
2320
|
ariaLabel: "Loop length"
|
|
2321
2321
|
});
|
|
2322
2322
|
}
|
|
2323
|
-
var
|
|
2323
|
+
var xi = [
|
|
2324
2324
|
{
|
|
2325
2325
|
value: "9:16",
|
|
2326
2326
|
label: "9:16"
|
|
@@ -2337,7 +2337,7 @@ var yi = [
|
|
|
2337
2337
|
value: "1:1",
|
|
2338
2338
|
label: "1:1"
|
|
2339
2339
|
}
|
|
2340
|
-
],
|
|
2340
|
+
], Si = [
|
|
2341
2341
|
{
|
|
2342
2342
|
value: "5:4",
|
|
2343
2343
|
label: "5:4"
|
|
@@ -2355,20 +2355,20 @@ var yi = [
|
|
|
2355
2355
|
label: "Fill"
|
|
2356
2356
|
}
|
|
2357
2357
|
];
|
|
2358
|
-
function
|
|
2359
|
-
let p = qe(), { updateLayer: _, addFilter: v, removeFilter: b } = a(), { onExportPng: x } =
|
|
2358
|
+
function Ci({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectValue: o, onAspect: s, openEffects: c = !1, rail: l = !1, onRail: u, onSheet: d }) {
|
|
2359
|
+
let p = qe(), { updateLayer: _, addFilter: v, removeFilter: b } = a(), { onExportPng: x } = _t(), [S, T] = Z(!1), [D, O] = Z(!0), [k, A] = Z(!1), [j, N] = Z(!1), [P, I] = Z("generate"), [L, R] = Z(!1), [z, ee] = Z(!1), { aspect: te } = a(), [ne, re] = Z(null), ie = m(e);
|
|
2360
2360
|
Y(() => {
|
|
2361
2361
|
c && (O(!0), N(!0));
|
|
2362
2362
|
}, [c]);
|
|
2363
2363
|
let V = l ? "sm" : "lg", oe = l && !!e && D && !S;
|
|
2364
2364
|
Y(() => (u?.(oe), () => u?.(!1)), [oe]);
|
|
2365
|
-
let se = !l && e && D && !S ? ne ? `${ne}px` : L ?
|
|
2365
|
+
let se = !l && e && D && !S ? ne ? `${ne}px` : L ? Br.tall : Br.half : null;
|
|
2366
2366
|
Y(() => (d?.(se), () => d?.(null)), [se]);
|
|
2367
2367
|
let U = () => {
|
|
2368
2368
|
let t = e?.type === "loop" && B(e.loopGroup).find((t) => t.id === e.presetId);
|
|
2369
2369
|
t && _(e.id, M(t, e.loopGroup));
|
|
2370
2370
|
};
|
|
2371
|
-
if (
|
|
2371
|
+
if (vr(U, () => {
|
|
2372
2372
|
e?.type === "loop" && _(e.id, f(e, C(H(e.loopId)?.params ?? [], e), ie.take(), { withFilters: !0 }));
|
|
2373
2373
|
}), !e) return null;
|
|
2374
2374
|
if (S) return /* @__PURE__ */ Q("button", {
|
|
@@ -2383,12 +2383,12 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2383
2383
|
let t = E(e, ie.take());
|
|
2384
2384
|
t && _(e.id, { filters: t });
|
|
2385
2385
|
};
|
|
2386
|
-
if (!D) return /* @__PURE__ */ $(
|
|
2386
|
+
if (!D) return /* @__PURE__ */ $(zr, {
|
|
2387
2387
|
label: W ? e.presetLabel : "Media",
|
|
2388
2388
|
onOpen: () => O(!0),
|
|
2389
2389
|
size: V,
|
|
2390
2390
|
children: [
|
|
2391
|
-
(W || me.length > 0) && /* @__PURE__ */ Q(
|
|
2391
|
+
(W || me.length > 0) && /* @__PURE__ */ Q(Bn, {
|
|
2392
2392
|
label: "Randomize all",
|
|
2393
2393
|
children: /* @__PURE__ */ Q(K, {
|
|
2394
2394
|
tone: "primary",
|
|
@@ -2399,7 +2399,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2399
2399
|
className: "shrink-0"
|
|
2400
2400
|
})
|
|
2401
2401
|
}),
|
|
2402
|
-
/* @__PURE__ */ Q(
|
|
2402
|
+
/* @__PURE__ */ Q(Bn, {
|
|
2403
2403
|
label: "Download",
|
|
2404
2404
|
children: /* @__PURE__ */ Q(K, {
|
|
2405
2405
|
tone: "primary",
|
|
@@ -2410,7 +2410,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2410
2410
|
className: "shrink-0"
|
|
2411
2411
|
})
|
|
2412
2412
|
}),
|
|
2413
|
-
/* @__PURE__ */ Q(
|
|
2413
|
+
/* @__PURE__ */ Q(Bn, {
|
|
2414
2414
|
label: "Hide UI",
|
|
2415
2415
|
children: /* @__PURE__ */ Q(K, {
|
|
2416
2416
|
tone: "primary",
|
|
@@ -2421,7 +2421,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2421
2421
|
className: "shrink-0"
|
|
2422
2422
|
})
|
|
2423
2423
|
}),
|
|
2424
|
-
/* @__PURE__ */ Q(
|
|
2424
|
+
/* @__PURE__ */ Q(Bn, {
|
|
2425
2425
|
label: o === "fill" ? "Back to the frame" : "Fill the screen",
|
|
2426
2426
|
children: /* @__PURE__ */ Q(K, {
|
|
2427
2427
|
tone: "primary",
|
|
@@ -2435,11 +2435,11 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2435
2435
|
})
|
|
2436
2436
|
]
|
|
2437
2437
|
});
|
|
2438
|
-
let _e = [...W ?
|
|
2438
|
+
let _e = [...W ? di : fi, ...W && p.steps.length >= 2 ? [{
|
|
2439
2439
|
value: "morph",
|
|
2440
2440
|
label: "Morph"
|
|
2441
2441
|
}] : []].filter((e) => (e.value !== "effects" || he) && (e.value !== "transport" || i("motion"))), ve = _e.some((e) => e.value === P) ? P : _e[0].value;
|
|
2442
|
-
return /* @__PURE__ */ $(
|
|
2442
|
+
return /* @__PURE__ */ $(Kn, { children: [
|
|
2443
2443
|
/* @__PURE__ */ Q(Oe, {
|
|
2444
2444
|
open: z,
|
|
2445
2445
|
onClose: () => ee(!1),
|
|
@@ -2447,7 +2447,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2447
2447
|
layer: e,
|
|
2448
2448
|
size: V
|
|
2449
2449
|
}),
|
|
2450
|
-
k && /* @__PURE__ */ Q(
|
|
2450
|
+
k && /* @__PURE__ */ Q(hn, {
|
|
2451
2451
|
onPick: (e) => {
|
|
2452
2452
|
t(e), A(!1);
|
|
2453
2453
|
},
|
|
@@ -2459,7 +2459,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2459
2459
|
},
|
|
2460
2460
|
onDismiss: () => A(!1)
|
|
2461
2461
|
}),
|
|
2462
|
-
j && /* @__PURE__ */ Q(
|
|
2462
|
+
j && /* @__PURE__ */ Q(li, {
|
|
2463
2463
|
layer: e,
|
|
2464
2464
|
chain: me,
|
|
2465
2465
|
onPick: (t) => {
|
|
@@ -2469,12 +2469,12 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2469
2469
|
}),
|
|
2470
2470
|
/* @__PURE__ */ $("div", {
|
|
2471
2471
|
className: l ? "fixed top-0 right-0 bottom-0 z-10 flex w-[var(--kol-sidenav-w,320px)] flex-col overflow-y-auto border-l border-oq-08" : "fixed right-0 left-[var(--fxr-rail,0px)] bottom-0 z-10 flex flex-col pb-[env(safe-area-inset-bottom)]",
|
|
2472
|
-
style: l ?
|
|
2473
|
-
...
|
|
2474
|
-
top: `calc(100dvh - ${se ??
|
|
2472
|
+
style: l ? ui : {
|
|
2473
|
+
...ui,
|
|
2474
|
+
top: `calc(100dvh - ${se ?? Br.half})`
|
|
2475
2475
|
},
|
|
2476
2476
|
children: [
|
|
2477
|
-
!l && /* @__PURE__ */ Q(
|
|
2477
|
+
!l && /* @__PURE__ */ Q(Hr, {
|
|
2478
2478
|
tall: L,
|
|
2479
2479
|
onToggle: () => {
|
|
2480
2480
|
re(null), R((e) => !e);
|
|
@@ -2484,7 +2484,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2484
2484
|
e < 96 && (re(null), O(!1));
|
|
2485
2485
|
}
|
|
2486
2486
|
}),
|
|
2487
|
-
/* @__PURE__ */ Q(
|
|
2487
|
+
/* @__PURE__ */ Q(Rr, {
|
|
2488
2488
|
title: ce,
|
|
2489
2489
|
onCollapse: () => O(!1),
|
|
2490
2490
|
className: l ? "px-4 pt-2.5 pb-1.5" : "px-3",
|
|
@@ -2504,9 +2504,9 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2504
2504
|
onChange: I,
|
|
2505
2505
|
options: _e,
|
|
2506
2506
|
size: V,
|
|
2507
|
-
className: l ?
|
|
2507
|
+
className: l ? pi : "[&_.kol-seg-cell]:min-w-0 [&_.kol-seg-cell]:px-2 [&_.kol-seg-cell]:overflow-hidden"
|
|
2508
2508
|
}),
|
|
2509
|
-
ve === "morph" && W && /* @__PURE__ */ Q(
|
|
2509
|
+
ve === "morph" && W && /* @__PURE__ */ Q(ar, {
|
|
2510
2510
|
layer: e,
|
|
2511
2511
|
readOnly: !0
|
|
2512
2512
|
}),
|
|
@@ -2538,7 +2538,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2538
2538
|
onClick: de,
|
|
2539
2539
|
children: "Randomize all"
|
|
2540
2540
|
}),
|
|
2541
|
-
/* @__PURE__ */ Q(
|
|
2541
|
+
/* @__PURE__ */ Q(Bn, {
|
|
2542
2542
|
label: "What Randomize all rolls",
|
|
2543
2543
|
children: /* @__PURE__ */ Q(K, {
|
|
2544
2544
|
tone: "primary",
|
|
@@ -2549,7 +2549,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2549
2549
|
className: "shrink-0"
|
|
2550
2550
|
})
|
|
2551
2551
|
}),
|
|
2552
|
-
/* @__PURE__ */ Q(
|
|
2552
|
+
/* @__PURE__ */ Q(Bn, {
|
|
2553
2553
|
label: "Reset to defaults",
|
|
2554
2554
|
shortcut: "R",
|
|
2555
2555
|
children: /* @__PURE__ */ Q(K, {
|
|
@@ -2563,7 +2563,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2563
2563
|
})
|
|
2564
2564
|
]
|
|
2565
2565
|
}),
|
|
2566
|
-
ue.length > 0 && /* @__PURE__ */ Q(
|
|
2566
|
+
ue.length > 0 && /* @__PURE__ */ Q(vi, {
|
|
2567
2567
|
size: V,
|
|
2568
2568
|
cells: [...ue.map((e) => ({
|
|
2569
2569
|
value: e.id,
|
|
@@ -2621,7 +2621,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2621
2621
|
iconRight: "trash",
|
|
2622
2622
|
onClick: () => b(e.id, n),
|
|
2623
2623
|
children: `${n + 1}. ${t.def?.label ?? t.id}`
|
|
2624
|
-
}), i.length > 0 && /* @__PURE__ */ Q(
|
|
2624
|
+
}), i.length > 0 && /* @__PURE__ */ Q(vi, {
|
|
2625
2625
|
size: V,
|
|
2626
2626
|
cells: i.map((e) => ({
|
|
2627
2627
|
value: e.id,
|
|
@@ -2637,7 +2637,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2637
2637
|
children: [(() => {
|
|
2638
2638
|
let e = i("motion").TransportBar;
|
|
2639
2639
|
return /* @__PURE__ */ Q(e, { size: V });
|
|
2640
|
-
})(), /* @__PURE__ */ Q(
|
|
2640
|
+
})(), /* @__PURE__ */ Q(bi, { size: V })]
|
|
2641
2641
|
}),
|
|
2642
2642
|
ve === "output" && /* @__PURE__ */ $("div", {
|
|
2643
2643
|
className: "flex flex-col gap-2 pt-3",
|
|
@@ -2645,14 +2645,14 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2645
2645
|
/* @__PURE__ */ Q(J, {
|
|
2646
2646
|
value: o,
|
|
2647
2647
|
onChange: s,
|
|
2648
|
-
options:
|
|
2648
|
+
options: xi,
|
|
2649
2649
|
size: V,
|
|
2650
2650
|
ariaLabel: "Aspect"
|
|
2651
2651
|
}),
|
|
2652
2652
|
/* @__PURE__ */ Q(J, {
|
|
2653
2653
|
value: o,
|
|
2654
2654
|
onChange: s,
|
|
2655
|
-
options:
|
|
2655
|
+
options: Si,
|
|
2656
2656
|
size: V,
|
|
2657
2657
|
ariaLabel: "Aspect (landscape) and fill"
|
|
2658
2658
|
}),
|
|
@@ -2662,7 +2662,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2662
2662
|
/* @__PURE__ */ Q(K, {
|
|
2663
2663
|
tone: "primary",
|
|
2664
2664
|
size: V,
|
|
2665
|
-
onClick: () =>
|
|
2665
|
+
onClick: () => nn({ focusName: !0 }),
|
|
2666
2666
|
children: "Save…"
|
|
2667
2667
|
}),
|
|
2668
2668
|
/* @__PURE__ */ Q(K, {
|
|
@@ -2695,7 +2695,7 @@ function xi({ layer: e, onSwitchCategory: t, onInsert: n, onRestart: r, aspectVa
|
|
|
2695
2695
|
}
|
|
2696
2696
|
//#endregion
|
|
2697
2697
|
//#region src/editor/mobile/MobileView.jsx
|
|
2698
|
-
function
|
|
2698
|
+
function wi({ onGenerate: e, onEffects: t, chromes: n }) {
|
|
2699
2699
|
return /* @__PURE__ */ Q("div", {
|
|
2700
2700
|
className: "fixed inset-y-0 right-0 left-[var(--fxr-rail,0px)] kol-overlay-scrim flex flex-col items-center justify-center p-6",
|
|
2701
2701
|
style: { zIndex: "var(--kol-z-modal)" },
|
|
@@ -2713,45 +2713,45 @@ function Si({ onGenerate: e, onEffects: t, chromes: n }) {
|
|
|
2713
2713
|
})]
|
|
2714
2714
|
}) : /* @__PURE__ */ Q("span", {
|
|
2715
2715
|
className: "kol-eyebrow text-body",
|
|
2716
|
-
children:
|
|
2716
|
+
children: jn("randomiser").label
|
|
2717
2717
|
}), /* @__PURE__ */ $("div", {
|
|
2718
2718
|
className: "flex flex-col gap-2",
|
|
2719
2719
|
children: [
|
|
2720
2720
|
/* @__PURE__ */ Q(K, {
|
|
2721
2721
|
tone: "primary",
|
|
2722
2722
|
size: "lg",
|
|
2723
|
-
className:
|
|
2724
|
-
iconLeft:
|
|
2725
|
-
iconRight:
|
|
2723
|
+
className: yt,
|
|
2724
|
+
iconLeft: Pt.randomiser,
|
|
2725
|
+
iconRight: Pt.randomiser,
|
|
2726
2726
|
onClick: e,
|
|
2727
2727
|
children: "Generate"
|
|
2728
2728
|
}),
|
|
2729
2729
|
/* @__PURE__ */ Q(K, {
|
|
2730
2730
|
tone: "primary",
|
|
2731
2731
|
size: "lg",
|
|
2732
|
-
className:
|
|
2732
|
+
className: yt,
|
|
2733
2733
|
iconLeft: "filter",
|
|
2734
2734
|
iconRight: "filter",
|
|
2735
2735
|
onClick: t,
|
|
2736
2736
|
children: "Effects"
|
|
2737
2737
|
}),
|
|
2738
|
-
n &&
|
|
2738
|
+
n && Cn() && /* @__PURE__ */ Q(K, {
|
|
2739
2739
|
tone: "primary",
|
|
2740
2740
|
size: "lg",
|
|
2741
2741
|
className: "w-full [&>span]:w-full [&>span]:justify-between",
|
|
2742
|
-
iconLeft:
|
|
2743
|
-
iconRight:
|
|
2744
|
-
onClick:
|
|
2745
|
-
children:
|
|
2742
|
+
iconLeft: Pt.editor,
|
|
2743
|
+
iconRight: Pt.editor,
|
|
2744
|
+
onClick: Wt,
|
|
2745
|
+
children: jn("editor").label
|
|
2746
2746
|
}),
|
|
2747
2747
|
n && /* @__PURE__ */ Q(K, {
|
|
2748
2748
|
tone: "primary",
|
|
2749
2749
|
size: "lg",
|
|
2750
2750
|
className: "w-full [&>span]:w-full [&>span]:justify-between",
|
|
2751
|
-
iconLeft:
|
|
2752
|
-
iconRight:
|
|
2753
|
-
onClick:
|
|
2754
|
-
children:
|
|
2751
|
+
iconLeft: Pt.labs,
|
|
2752
|
+
iconRight: Pt.labs,
|
|
2753
|
+
onClick: Tn,
|
|
2754
|
+
children: jn("labs").label
|
|
2755
2755
|
}),
|
|
2756
2756
|
n && /* @__PURE__ */ Q(K, {
|
|
2757
2757
|
tone: "primary",
|
|
@@ -2759,7 +2759,7 @@ function Si({ onGenerate: e, onEffects: t, chromes: n }) {
|
|
|
2759
2759
|
className: "w-full [&>span]:w-full [&>span]:justify-between",
|
|
2760
2760
|
iconLeft: "swap",
|
|
2761
2761
|
iconRight: "swap",
|
|
2762
|
-
onClick: () =>
|
|
2762
|
+
onClick: () => Ht("/morph"),
|
|
2763
2763
|
children: "Morph"
|
|
2764
2764
|
})
|
|
2765
2765
|
]
|
|
@@ -2767,8 +2767,8 @@ function Si({ onGenerate: e, onEffects: t, chromes: n }) {
|
|
|
2767
2767
|
})
|
|
2768
2768
|
});
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2771
|
-
let { layers: t, addLayer: n, removeLayer: r, updateLayer: i, canvasW: o, canvasH: s, aspect: c, setAspect: l } = a(), { setTool: d } =
|
|
2770
|
+
function Ti() {
|
|
2771
|
+
let { layers: t, addLayer: n, removeLayer: r, updateLayer: i, canvasW: o, canvasH: s, aspect: c, setAspect: l } = a(), { setTool: d } = bt(), f = on() && !cn(), p = mn(), m = () => {
|
|
2772
2772
|
let e = new URLSearchParams(window.location.search);
|
|
2773
2773
|
return e.get("open") ? "live" : e.get("start") === "category" ? "category" : "entry";
|
|
2774
2774
|
}, [g, _] = Z(m), [v, y] = Z(!1), [b, x] = Z(null), [S, C] = Z("contain"), [w, T] = Z(!1), [E, D] = Z(null), [O, k] = Z({
|
|
@@ -2828,7 +2828,7 @@ function Ci() {
|
|
|
2828
2828
|
let t = M.current;
|
|
2829
2829
|
t && t.id === e.pointerId && e.type === "pointerup" && g === "live" && performance.now() - t.t < 350 && Math.hypot(e.clientX - t.x, e.clientY - t.y) < 12 && (R?.type === "loop" ? H(R.loopId) : null)?.group !== "penrose" && h.toggle(), t?.id === e.pointerId && (M.current = null), j.current.pts.delete(e.pointerId), j.current.pts.size < 2 && j.current.start && (j.current.start = null, k(j.current.live));
|
|
2830
2830
|
};
|
|
2831
|
-
|
|
2831
|
+
Yn(), Y(() => (kt("randomiser"), () => kt(null)), []), Y(() => {
|
|
2832
2832
|
l("4:5"), d("orbit");
|
|
2833
2833
|
}, []);
|
|
2834
2834
|
let R = t.find((e) => e.id === b) ?? (t.length === 1 ? t[0] : null), z = g === "live" && R?.type === "photo" && !R.src && R.srcType !== "webcam";
|
|
@@ -2902,21 +2902,21 @@ function Ci() {
|
|
|
2902
2902
|
onPointerUpCapture: L,
|
|
2903
2903
|
onPointerCancelCapture: L,
|
|
2904
2904
|
onPointerLeave: L,
|
|
2905
|
-
children: /* @__PURE__ */ Q(
|
|
2905
|
+
children: /* @__PURE__ */ Q(Gt, { fit: S })
|
|
2906
2906
|
}),
|
|
2907
|
-
g === "entry" && /* @__PURE__ */ Q(
|
|
2907
|
+
g === "entry" && /* @__PURE__ */ Q(wi, {
|
|
2908
2908
|
chromes: f,
|
|
2909
2909
|
onGenerate: () => _("category"),
|
|
2910
2910
|
onEffects: () => {
|
|
2911
2911
|
y(!0), te();
|
|
2912
2912
|
}
|
|
2913
2913
|
}),
|
|
2914
|
-
g === "category" && /* @__PURE__ */ Q(
|
|
2914
|
+
g === "category" && /* @__PURE__ */ Q(hn, {
|
|
2915
2915
|
onPick: ee,
|
|
2916
2916
|
onInsert: te,
|
|
2917
2917
|
onBack: () => _("entry")
|
|
2918
2918
|
}),
|
|
2919
|
-
g === "live" && !z && /* @__PURE__ */ Q(
|
|
2919
|
+
g === "live" && !z && /* @__PURE__ */ Q(Ci, {
|
|
2920
2920
|
layer: R,
|
|
2921
2921
|
onSwitchCategory: B,
|
|
2922
2922
|
onInsert: () => {
|
|
@@ -2935,7 +2935,7 @@ function Ci() {
|
|
|
2935
2935
|
style: { zIndex: "var(--kol-z-modal)" },
|
|
2936
2936
|
children: [/* @__PURE__ */ Q("div", {
|
|
2937
2937
|
className: "flex-1 min-h-0",
|
|
2938
|
-
children: /* @__PURE__ */ Q(
|
|
2938
|
+
children: /* @__PURE__ */ Q(Ir, { layer: R })
|
|
2939
2939
|
}), /* @__PURE__ */ Q("div", {
|
|
2940
2940
|
className: "flex justify-center pb-[max(0.75rem,env(safe-area-inset-bottom))]",
|
|
2941
2941
|
children: /* @__PURE__ */ Q(K, {
|
|
@@ -2949,11 +2949,11 @@ function Ci() {
|
|
|
2949
2949
|
]
|
|
2950
2950
|
});
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2953
|
-
return /* @__PURE__ */ $(
|
|
2952
|
+
function Ei() {
|
|
2953
|
+
return /* @__PURE__ */ $(pn, {
|
|
2954
2954
|
persistDraft: !1,
|
|
2955
|
-
children: [/* @__PURE__ */ Q(
|
|
2955
|
+
children: [/* @__PURE__ */ Q(Ti, {}), /* @__PURE__ */ Q(rn, {})]
|
|
2956
2956
|
});
|
|
2957
2957
|
}
|
|
2958
2958
|
//#endregion
|
|
2959
|
-
export {
|
|
2959
|
+
export { mt as AppSettingsSections, ht as BRAND, bn as DesignEditor, bn as default, pt as DisplaySettingsDrawer, pn as EditorProviders, Ct as FilesDialog, Ce as GeneratorLibraryProvider, si as LABS_DRAFT_KEY, ve as LIBRARY_SLOT_KEYS, ci as LabsView, $t as MODES, Ei as MobileView, Sn as OutputCanvas, Gt as OutputStage, Jt as OutputView, vn as RAIL_EXTRA_PREFIX, Qe as TimelineRail, Se as UnauthorizedError, Zt as VIEW_PATHS, lt as closeFiles, xt as comboLabel, ln as copyStored, Rt as currentView, gn as duplicateStored, xe as getLibraryApi, _e as inviteFromRequest, on as isMobileDevice, fe as listInviteRequests, me as loadLibrary, we as mintInvite, nn as openFiles, be as readLibraryRaw, s as registerPack, en as removeStored, zt as renameStored, De as requestInvite, pe as setLibraryApi, An as setMediaClient, Vt as setMediaProxyBase, kn as setMode, ft as setNavigator, Ut as setRailExtras, k as setSettingsStore, dn as setThumbStored, Kt as setWantsDesktop, Mn as shortcutsBySection, Ee as signInLibrary, ue as signOutLibrary, W as signUpLibrary, he as subscribeLibrary, $e as timelineView, Te as updateAccount, de as useAccount, St as useFilesDialog, ge as useGeneratorLibrary, ce as useLibrarySession, an as useRailExtras, wt as useSettingsSections, cn as wantsDesktop, Dn as withView };
|