@janbox/storefront-builder 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +47 -44
  2. package/dist/countdown-timer.node-CGKz1DZI.js +8252 -0
  3. package/dist/editor/hooks/use-editor-state.d.ts +13 -1
  4. package/dist/editor/lib/index.d.ts +4 -1
  5. package/dist/editor.js +461 -418
  6. package/dist/index-Bvy64nrI.js +4 -0
  7. package/dist/index-Du5uN6Rq.js +6015 -0
  8. package/dist/index.js +110 -5732
  9. package/dist/style.css +1 -1
  10. package/dist/templates.js +95 -71
  11. package/dist/{tooltip-CqfT80iK.js → tooltip-Coblboaw.js} +6 -6
  12. package/package.json +2 -7
  13. package/dist/countdown-timer.node-CAsCNVin.js +0 -2718
  14. package/dist/editor/lib/events.d.ts +0 -5
  15. package/dist/index-BxuniYfy.js +0 -4
  16. package/dist/index-DrJkOkbq.js +0 -5610
  17. package/dist/minus-C82LyzQP.js +0 -6
  18. package/lib/accordion/README.md +0 -39
  19. package/lib/accordion-content/README.md +0 -36
  20. package/lib/accordion-group/README.md +0 -106
  21. package/lib/accordion-summary/README.md +0 -37
  22. package/lib/box/README.md +0 -107
  23. package/lib/button/README.md +0 -94
  24. package/lib/cell/README.md +0 -119
  25. package/lib/countdown-timer/README.md +0 -157
  26. package/lib/flex-item/README.md +0 -111
  27. package/lib/flexbox/README.md +0 -120
  28. package/lib/grid/README.md +0 -133
  29. package/lib/heading/README.md +0 -53
  30. package/lib/icon/README.md +0 -98
  31. package/lib/image/README.md +0 -107
  32. package/lib/link/README.md +0 -111
  33. package/lib/list-item/README.md +0 -31
  34. package/lib/marquee/README.md +0 -111
  35. package/lib/marquee-item/README.md +0 -31
  36. package/lib/paragraph/README.md +0 -82
  37. package/lib/root/README.md +0 -33
  38. package/lib/swiper/README.md +0 -108
  39. package/lib/swiper-slide/README.md +0 -32
  40. package/lib/tab/README.md +0 -35
  41. package/lib/tab-content/README.md +0 -35
  42. package/lib/tab-list/README.md +0 -35
  43. package/lib/tab-panel/README.md +0 -35
  44. package/lib/tabs/README.md +0 -90
  45. package/lib/text/README.md +0 -90
  46. package/lib/unknown/README.md +0 -48
  47. package/lib/unordered-list/README.md +0 -82
  48. package/lib/video/README.md +0 -91
package/dist/editor.js CHANGED
@@ -1,18 +1,36 @@
1
- import { jsx as n, Fragment as Ne, jsxs as g } from "@emotion/react/jsx-runtime";
2
- import { u as _e, a as ae, b as te, D as ze, c as qe, W as j, d as E, e as Ge, f as Ue, g as Le, h as Ee, i as Ze, j as Qe, k as we, l as Ye, m as ue, n as oe, A as Se, o as Ke, C as Me, p as Re, q as Xe, r as Je, T as et, s as fe, R as tt } from "./index-DrJkOkbq.js";
3
- import { t as qr } from "./index-DrJkOkbq.js";
4
- import rt from "mitt";
5
- import { c as I, N as pe, B as ge, g as nt, a as st, u as W, W as ot, b as $e, i as it, P as ct } from "./countdown-timer.node-CAsCNVin.js";
6
- import { useRef as je, useState as _, useEffect as z, createElement as Ae, Fragment as J, Suspense as at } from "react";
7
- import { useToggle as De } from "usehooks-ts";
8
- import { CacheProvider as lt, Global as dt, createElement as ht } from "@emotion/react";
9
- import { useFloating as wt, autoUpdate as ut, flip as ft, size as pt, useHover as gt, safePolygon as mt, useFocus as kt, useDismiss as vt, useRole as bt, useInteractions as Ct, FloatingPortal as Ie } from "@floating-ui/react";
10
- import { ThemeProvider as xt, FLOATING_Z_INDEX as yt, breakpoint as Nt } from "@janbox/storefront-ui/theme";
11
- import { useNode as Lt, ROOT_NODE as B, serializeNode as Et } from "@craftjs/core";
12
- import { throttle as St, isFunction as me, isNumber as ke } from "lodash-es";
13
- import Mt, { useFrame as Rt } from "react-frame-component";
14
- import { Layers as $t, useLayer as jt } from "@craftjs/layers";
15
- class At {
1
+ import { jsx as n, Fragment as ye, jsxs as k } from "@emotion/react/jsx-runtime";
2
+ import { Q as _e, W as re, c as P, X as we, Y as fe, x as ze, y as Ge, N as F, J as L, i as qe, P as Ue, V as Ze, S as Qe, G as Ye, f as Xe, h as Ke, F as Je, l as et, e as tt, j as rt, I as nt, L as st, s as ot, r as it, B as ct, a as at, g as lt, Z as A, _ as E, $ as Le, a0 as Ie, a1 as dt, a2 as ht, a3 as ut, a4 as wt, v as Ee, z as ft, a5 as pt, m as mt } from "./countdown-timer.node-CGKz1DZI.js";
3
+ import { useNode as gt, ROOT_NODE as W, serializeNode as kt } from "@craftjs/core";
4
+ import { useRef as Se, useState as O, useEffect as G, createElement as Me, Fragment as ee, Suspense as vt } from "react";
5
+ import "flat";
6
+ import { throttle as bt, isFunction as pe, isNumber as me } from "lodash-es";
7
+ import "@janbox/storefront-ui";
8
+ import { Q as ne, R as Ct, W as xt, f as Nt, H as yt, h as Lt, P as It, k as Et, i as St, G as Mt, b as Rt, e as $t, F as At, M as jt, a as Tt, g as Pt, I as Dt, L as Bt, U as Ft, T as Wt, B as Ht, A as Ot, d as Vt, X as _t, Y as zt, Z as Gt, _ as qt, $ as ge, a0 as Ut, a1 as ke, a2 as ce, a3 as Re, c as $e, C as Ae, a4 as Zt, a5 as ve } from "./index-Du5uN6Rq.js";
9
+ import { a6 as Un } from "./index-Du5uN6Rq.js";
10
+ import "@janbox/storefront-ui/hooks";
11
+ import { ThemeProvider as Qt, FLOATING_Z_INDEX as Yt, breakpoint as Xt } from "@janbox/storefront-ui/theme";
12
+ import "@janbox/storefront-ui/utils";
13
+ import { useFloating as Kt, autoUpdate as Jt, flip as er, size as tr, useHover as rr, safePolygon as nr, useFocus as sr, useDismiss as or, useRole as ir, useInteractions as cr, FloatingPortal as je } from "@floating-ui/react";
14
+ import "react-use";
15
+ import "react-colorful";
16
+ import "overlayscrollbars-react";
17
+ import "@tanstack/react-virtual";
18
+ import "react-dropzone";
19
+ import "react-datepicker/dist/react-datepicker.css";
20
+ import "react-datepicker";
21
+ import "@tiptap/extension-text-style";
22
+ import "@tiptap/react";
23
+ import "@tiptap/react/menus";
24
+ import "@tiptap/starter-kit";
25
+ import ar, { useFrame as lr } from "react-frame-component";
26
+ import { CacheProvider as dr, Global as hr, createElement as ur } from "@emotion/react";
27
+ import "@hello-pangea/dnd";
28
+ import "clsx";
29
+ import "tailwind-merge";
30
+ import "react-router";
31
+ import { useToggle as Te } from "usehooks-ts";
32
+ import { Layers as wr, useLayer as fr } from "@craftjs/layers";
33
+ class pr {
16
34
  constructor() {
17
35
  this.componentControls = /* @__PURE__ */ new Set();
18
36
  }
@@ -45,22 +63,22 @@ class At {
45
63
  });
46
64
  }
47
65
  }
48
- const Dt = () => new At();
49
- function It() {
50
- return _e(Dt);
66
+ const mr = () => new pr();
67
+ function gr() {
68
+ return _e(mr);
51
69
  }
52
- function Tt(e) {
70
+ function kr(e) {
53
71
  if (e.sheet)
54
72
  return e.sheet;
55
73
  for (var t = 0; t < document.styleSheets.length; t++)
56
74
  if (document.styleSheets[t].ownerNode === e)
57
75
  return document.styleSheets[t];
58
76
  }
59
- function Pt(e) {
77
+ function vr(e) {
60
78
  var t = document.createElement("style");
61
79
  return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
62
80
  }
63
- var Wt = /* @__PURE__ */ (function() {
81
+ var br = /* @__PURE__ */ (function() {
64
82
  function e(s) {
65
83
  var r = this;
66
84
  this._insertTag = function(i) {
@@ -72,10 +90,10 @@ var Wt = /* @__PURE__ */ (function() {
72
90
  return t.hydrate = function(r) {
73
91
  r.forEach(this._insertTag);
74
92
  }, t.insert = function(r) {
75
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pt(this));
93
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(vr(this));
76
94
  var i = this.tags[this.tags.length - 1];
77
95
  if (this.isSpeedy) {
78
- var o = Tt(i);
96
+ var o = kr(i);
79
97
  try {
80
98
  o.insertRule(r, o.cssRules.length);
81
99
  } catch {
@@ -89,66 +107,66 @@ var Wt = /* @__PURE__ */ (function() {
89
107
  return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
90
108
  }), this.tags = [], this.ctr = 0;
91
109
  }, e;
92
- })(), S = "-ms-", ee = "-moz-", u = "-webkit-", Te = "comm", le = "rule", de = "decl", Bt = "@import", Pe = "@keyframes", Ot = "@layer", Ft = Math.abs, re = String.fromCharCode, Ht = Object.assign;
93
- function Vt(e, t) {
94
- return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
110
+ })(), S = "-ms-", te = "-moz-", p = "-webkit-", Pe = "comm", de = "rule", he = "decl", Cr = "@import", De = "@keyframes", xr = "@layer", Nr = Math.abs, se = String.fromCharCode, yr = Object.assign;
111
+ function Lr(e, t) {
112
+ return I(e, 0) ^ 45 ? (((t << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
95
113
  }
96
- function We(e) {
114
+ function Be(e) {
97
115
  return e.trim();
98
116
  }
99
- function _t(e, t) {
117
+ function Ir(e, t) {
100
118
  return (e = t.exec(e)) ? e[0] : e;
101
119
  }
102
- function f(e, t, s) {
120
+ function m(e, t, s) {
103
121
  return e.replace(t, s);
104
122
  }
105
- function ie(e, t) {
123
+ function ae(e, t) {
106
124
  return e.indexOf(t);
107
125
  }
108
- function L(e, t) {
126
+ function I(e, t) {
109
127
  return e.charCodeAt(t) | 0;
110
128
  }
111
129
  function q(e, t, s) {
112
130
  return e.slice(t, s);
113
131
  }
114
- function D(e) {
132
+ function T(e) {
115
133
  return e.length;
116
134
  }
117
- function he(e) {
135
+ function ue(e) {
118
136
  return e.length;
119
137
  }
120
- function Q(e, t) {
138
+ function Y(e, t) {
121
139
  return t.push(e), e;
122
140
  }
123
- function zt(e, t) {
141
+ function Er(e, t) {
124
142
  return e.map(t).join("");
125
143
  }
126
- var ne = 1, F = 1, Be = 0, R = 0, y = 0, H = "";
127
- function se(e, t, s, r, i, o, h) {
128
- return { value: e, root: t, parent: s, type: r, props: i, children: o, line: ne, column: F, length: h, return: "" };
144
+ var oe = 1, V = 1, Fe = 0, R = 0, N = 0, _ = "";
145
+ function ie(e, t, s, r, i, o, h) {
146
+ return { value: e, root: t, parent: s, type: r, props: i, children: o, line: oe, column: V, length: h, return: "" };
129
147
  }
130
- function V(e, t) {
131
- return Ht(se("", null, null, "", null, null, 0), e, { length: -e.length }, t);
148
+ function z(e, t) {
149
+ return yr(ie("", null, null, "", null, null, 0), e, { length: -e.length }, t);
132
150
  }
133
- function qt() {
134
- return y;
151
+ function Sr() {
152
+ return N;
135
153
  }
136
- function Gt() {
137
- return y = R > 0 ? L(H, --R) : 0, F--, y === 10 && (F = 1, ne--), y;
154
+ function Mr() {
155
+ return N = R > 0 ? I(_, --R) : 0, V--, N === 10 && (V = 1, oe--), N;
138
156
  }
139
157
  function $() {
140
- return y = R < Be ? L(H, R++) : 0, F++, y === 10 && (F = 1, ne++), y;
158
+ return N = R < Fe ? I(_, R++) : 0, V++, N === 10 && (V = 1, oe++), N;
141
159
  }
142
- function T() {
143
- return L(H, R);
160
+ function D() {
161
+ return I(_, R);
144
162
  }
145
- function Y() {
163
+ function X() {
146
164
  return R;
147
165
  }
148
- function U(e, t) {
149
- return q(H, e, t);
166
+ function Z(e, t) {
167
+ return q(_, e, t);
150
168
  }
151
- function G(e) {
169
+ function U(e) {
152
170
  switch (e) {
153
171
  // \0 \t \n \r \s whitespace token
154
172
  case 0:
@@ -186,39 +204,39 @@ function G(e) {
186
204
  }
187
205
  return 0;
188
206
  }
189
- function Oe(e) {
190
- return ne = F = 1, Be = D(H = e), R = 0, [];
207
+ function We(e) {
208
+ return oe = V = 1, Fe = T(_ = e), R = 0, [];
191
209
  }
192
- function Fe(e) {
193
- return H = "", e;
210
+ function He(e) {
211
+ return _ = "", e;
194
212
  }
195
213
  function K(e) {
196
- return We(U(R - 1, ce(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
214
+ return Be(Z(R - 1, le(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
197
215
  }
198
- function Ut(e) {
199
- for (; (y = T()) && y < 33; )
216
+ function Rr(e) {
217
+ for (; (N = D()) && N < 33; )
200
218
  $();
201
- return G(e) > 2 || G(y) > 3 ? "" : " ";
219
+ return U(e) > 2 || U(N) > 3 ? "" : " ";
202
220
  }
203
- function Zt(e, t) {
204
- for (; --t && $() && !(y < 48 || y > 102 || y > 57 && y < 65 || y > 70 && y < 97); )
221
+ function $r(e, t) {
222
+ for (; --t && $() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
205
223
  ;
206
- return U(e, Y() + (t < 6 && T() == 32 && $() == 32));
224
+ return Z(e, X() + (t < 6 && D() == 32 && $() == 32));
207
225
  }
208
- function ce(e) {
226
+ function le(e) {
209
227
  for (; $(); )
210
- switch (y) {
228
+ switch (N) {
211
229
  // ] ) " '
212
230
  case e:
213
231
  return R;
214
232
  // " '
215
233
  case 34:
216
234
  case 39:
217
- e !== 34 && e !== 39 && ce(y);
235
+ e !== 34 && e !== 39 && le(N);
218
236
  break;
219
237
  // (
220
238
  case 40:
221
- e === 41 && ce(e);
239
+ e === 41 && le(e);
222
240
  break;
223
241
  // \
224
242
  case 92:
@@ -227,27 +245,27 @@ function ce(e) {
227
245
  }
228
246
  return R;
229
247
  }
230
- function Qt(e, t) {
231
- for (; $() && e + y !== 57; )
232
- if (e + y === 84 && T() === 47)
248
+ function Ar(e, t) {
249
+ for (; $() && e + N !== 57; )
250
+ if (e + N === 84 && D() === 47)
233
251
  break;
234
- return "/*" + U(t, R - 1) + "*" + re(e === 47 ? e : $());
252
+ return "/*" + Z(t, R - 1) + "*" + se(e === 47 ? e : $());
235
253
  }
236
- function Yt(e) {
237
- for (; !G(T()); )
254
+ function jr(e) {
255
+ for (; !U(D()); )
238
256
  $();
239
- return U(e, R);
257
+ return Z(e, R);
240
258
  }
241
- function Kt(e) {
242
- return Fe(X("", null, null, null, [""], e = Oe(e), 0, [0], e));
259
+ function Tr(e) {
260
+ return He(J("", null, null, null, [""], e = We(e), 0, [0], e));
243
261
  }
244
- function X(e, t, s, r, i, o, h, c, d) {
245
- for (var k = 0, l = 0, a = h, m = 0, b = 0, v = 0, w = 1, N = 1, p = 1, x = 0, M = "", Z = i, P = o, A = r, C = M; N; )
246
- switch (v = x, x = $()) {
262
+ function J(e, t, s, r, i, o, h, c, u) {
263
+ for (var b = 0, l = 0, a = h, f = 0, v = 0, w = 0, d = 1, y = 1, g = 1, x = 0, M = "", Q = i, B = o, j = r, C = M; y; )
264
+ switch (w = x, x = $()) {
247
265
  // (
248
266
  case 40:
249
- if (v != 108 && L(C, a - 1) == 58) {
250
- ie(C += f(K(x), "&", "&\f"), "&\f") != -1 && (p = -1);
267
+ if (w != 108 && I(C, a - 1) == 58) {
268
+ ae(C += m(K(x), "&", "&\f"), "&\f") != -1 && (g = -1);
251
269
  break;
252
270
  }
253
271
  // " ' [
@@ -261,179 +279,179 @@ function X(e, t, s, r, i, o, h, c, d) {
261
279
  case 10:
262
280
  case 13:
263
281
  case 32:
264
- C += Ut(v);
282
+ C += Rr(w);
265
283
  break;
266
284
  // \
267
285
  case 92:
268
- C += Zt(Y() - 1, 7);
286
+ C += $r(X() - 1, 7);
269
287
  continue;
270
288
  // /
271
289
  case 47:
272
- switch (T()) {
290
+ switch (D()) {
273
291
  case 42:
274
292
  case 47:
275
- Q(Xt(Qt($(), Y()), t, s), d);
293
+ Y(Pr(Ar($(), X()), t, s), u);
276
294
  break;
277
295
  default:
278
296
  C += "/";
279
297
  }
280
298
  break;
281
299
  // {
282
- case 123 * w:
283
- c[k++] = D(C) * p;
300
+ case 123 * d:
301
+ c[b++] = T(C) * g;
284
302
  // } ; \0
285
- case 125 * w:
303
+ case 125 * d:
286
304
  case 59:
287
305
  case 0:
288
306
  switch (x) {
289
307
  // \0 }
290
308
  case 0:
291
309
  case 125:
292
- N = 0;
310
+ y = 0;
293
311
  // ;
294
312
  case 59 + l:
295
- p == -1 && (C = f(C, /\f/g, "")), b > 0 && D(C) - a && Q(b > 32 ? be(C + ";", r, s, a - 1) : be(f(C, " ", "") + ";", r, s, a - 2), d);
313
+ g == -1 && (C = m(C, /\f/g, "")), v > 0 && T(C) - a && Y(v > 32 ? Ce(C + ";", r, s, a - 1) : Ce(m(C, " ", "") + ";", r, s, a - 2), u);
296
314
  break;
297
315
  // @ ;
298
316
  case 59:
299
317
  C += ";";
300
318
  // { rule/at-rule
301
319
  default:
302
- if (Q(A = ve(C, t, s, k, l, i, c, M, Z = [], P = [], a), o), x === 123)
320
+ if (Y(j = be(C, t, s, b, l, i, c, M, Q = [], B = [], a), o), x === 123)
303
321
  if (l === 0)
304
- X(C, t, A, A, Z, o, a, c, P);
322
+ J(C, t, j, j, Q, o, a, c, B);
305
323
  else
306
- switch (m === 99 && L(C, 3) === 110 ? 100 : m) {
324
+ switch (f === 99 && I(C, 3) === 110 ? 100 : f) {
307
325
  // d l m s
308
326
  case 100:
309
327
  case 108:
310
328
  case 109:
311
329
  case 115:
312
- X(e, A, A, r && Q(ve(e, A, A, 0, 0, i, c, M, i, Z = [], a), P), i, P, a, c, r ? Z : P);
330
+ J(e, j, j, r && Y(be(e, j, j, 0, 0, i, c, M, i, Q = [], a), B), i, B, a, c, r ? Q : B);
313
331
  break;
314
332
  default:
315
- X(C, A, A, A, [""], P, 0, c, P);
333
+ J(C, j, j, j, [""], B, 0, c, B);
316
334
  }
317
335
  }
318
- k = l = b = 0, w = p = 1, M = C = "", a = h;
336
+ b = l = v = 0, d = g = 1, M = C = "", a = h;
319
337
  break;
320
338
  // :
321
339
  case 58:
322
- a = 1 + D(C), b = v;
340
+ a = 1 + T(C), v = w;
323
341
  default:
324
- if (w < 1) {
342
+ if (d < 1) {
325
343
  if (x == 123)
326
- --w;
327
- else if (x == 125 && w++ == 0 && Gt() == 125)
344
+ --d;
345
+ else if (x == 125 && d++ == 0 && Mr() == 125)
328
346
  continue;
329
347
  }
330
- switch (C += re(x), x * w) {
348
+ switch (C += se(x), x * d) {
331
349
  // &
332
350
  case 38:
333
- p = l > 0 ? 1 : (C += "\f", -1);
351
+ g = l > 0 ? 1 : (C += "\f", -1);
334
352
  break;
335
353
  // ,
336
354
  case 44:
337
- c[k++] = (D(C) - 1) * p, p = 1;
355
+ c[b++] = (T(C) - 1) * g, g = 1;
338
356
  break;
339
357
  // @
340
358
  case 64:
341
- T() === 45 && (C += K($())), m = T(), l = a = D(M = C += Yt(Y())), x++;
359
+ D() === 45 && (C += K($())), f = D(), l = a = T(M = C += jr(X())), x++;
342
360
  break;
343
361
  // -
344
362
  case 45:
345
- v === 45 && D(C) == 2 && (w = 0);
363
+ w === 45 && T(C) == 2 && (d = 0);
346
364
  }
347
365
  }
348
366
  return o;
349
367
  }
350
- function ve(e, t, s, r, i, o, h, c, d, k, l) {
351
- for (var a = i - 1, m = i === 0 ? o : [""], b = he(m), v = 0, w = 0, N = 0; v < r; ++v)
352
- for (var p = 0, x = q(e, a + 1, a = Ft(w = h[v])), M = e; p < b; ++p)
353
- (M = We(w > 0 ? m[p] + " " + x : f(x, /&\f/g, m[p]))) && (d[N++] = M);
354
- return se(e, t, s, i === 0 ? le : c, d, k, l);
368
+ function be(e, t, s, r, i, o, h, c, u, b, l) {
369
+ for (var a = i - 1, f = i === 0 ? o : [""], v = ue(f), w = 0, d = 0, y = 0; w < r; ++w)
370
+ for (var g = 0, x = q(e, a + 1, a = Nr(d = h[w])), M = e; g < v; ++g)
371
+ (M = Be(d > 0 ? f[g] + " " + x : m(x, /&\f/g, f[g]))) && (u[y++] = M);
372
+ return ie(e, t, s, i === 0 ? de : c, u, b, l);
355
373
  }
356
- function Xt(e, t, s) {
357
- return se(e, t, s, Te, re(qt()), q(e, 2, -2), 0);
374
+ function Pr(e, t, s) {
375
+ return ie(e, t, s, Pe, se(Sr()), q(e, 2, -2), 0);
358
376
  }
359
- function be(e, t, s, r) {
360
- return se(e, t, s, de, q(e, 0, r), q(e, r + 1, -1), r);
377
+ function Ce(e, t, s, r) {
378
+ return ie(e, t, s, he, q(e, 0, r), q(e, r + 1, -1), r);
361
379
  }
362
- function O(e, t) {
363
- for (var s = "", r = he(e), i = 0; i < r; i++)
380
+ function H(e, t) {
381
+ for (var s = "", r = ue(e), i = 0; i < r; i++)
364
382
  s += t(e[i], i, e, t) || "";
365
383
  return s;
366
384
  }
367
- function Jt(e, t, s, r) {
385
+ function Dr(e, t, s, r) {
368
386
  switch (e.type) {
369
- case Ot:
387
+ case xr:
370
388
  if (e.children.length) break;
371
- case Bt:
372
- case de:
389
+ case Cr:
390
+ case he:
373
391
  return e.return = e.return || e.value;
374
- case Te:
375
- return "";
376
392
  case Pe:
377
- return e.return = e.value + "{" + O(e.children, r) + "}";
378
- case le:
393
+ return "";
394
+ case De:
395
+ return e.return = e.value + "{" + H(e.children, r) + "}";
396
+ case de:
379
397
  e.value = e.props.join(",");
380
398
  }
381
- return D(s = O(e.children, r)) ? e.return = e.value + "{" + s + "}" : "";
399
+ return T(s = H(e.children, r)) ? e.return = e.value + "{" + s + "}" : "";
382
400
  }
383
- function er(e) {
384
- var t = he(e);
401
+ function Br(e) {
402
+ var t = ue(e);
385
403
  return function(s, r, i, o) {
386
404
  for (var h = "", c = 0; c < t; c++)
387
405
  h += e[c](s, r, i, o) || "";
388
406
  return h;
389
407
  };
390
408
  }
391
- function tr(e) {
409
+ function Fr(e) {
392
410
  return function(t) {
393
411
  t.root || (t = t.return) && e(t);
394
412
  };
395
413
  }
396
- var rr = function(t, s, r) {
397
- for (var i = 0, o = 0; i = o, o = T(), i === 38 && o === 12 && (s[r] = 1), !G(o); )
414
+ var Wr = function(t, s, r) {
415
+ for (var i = 0, o = 0; i = o, o = D(), i === 38 && o === 12 && (s[r] = 1), !U(o); )
398
416
  $();
399
- return U(t, R);
400
- }, nr = function(t, s) {
417
+ return Z(t, R);
418
+ }, Hr = function(t, s) {
401
419
  var r = -1, i = 44;
402
420
  do
403
- switch (G(i)) {
421
+ switch (U(i)) {
404
422
  case 0:
405
- i === 38 && T() === 12 && (s[r] = 1), t[r] += rr(R - 1, s, r);
423
+ i === 38 && D() === 12 && (s[r] = 1), t[r] += Wr(R - 1, s, r);
406
424
  break;
407
425
  case 2:
408
426
  t[r] += K(i);
409
427
  break;
410
428
  case 4:
411
429
  if (i === 44) {
412
- t[++r] = T() === 58 ? "&\f" : "", s[r] = t[r].length;
430
+ t[++r] = D() === 58 ? "&\f" : "", s[r] = t[r].length;
413
431
  break;
414
432
  }
415
433
  // fallthrough
416
434
  default:
417
- t[r] += re(i);
435
+ t[r] += se(i);
418
436
  }
419
437
  while (i = $());
420
438
  return t;
421
- }, sr = function(t, s) {
422
- return Fe(nr(Oe(t), s));
423
- }, Ce = /* @__PURE__ */ new WeakMap(), or = function(t) {
439
+ }, Or = function(t, s) {
440
+ return He(Hr(We(t), s));
441
+ }, xe = /* @__PURE__ */ new WeakMap(), Vr = function(t) {
424
442
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
425
443
  // negative .length indicates that this rule has been already prefixed
426
444
  t.length < 1)) {
427
445
  for (var s = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
428
446
  if (r = r.parent, !r) return;
429
- if (!(t.props.length === 1 && s.charCodeAt(0) !== 58 && !Ce.get(r)) && !i) {
430
- Ce.set(t, !0);
431
- for (var o = [], h = sr(s, o), c = r.props, d = 0, k = 0; d < h.length; d++)
432
- for (var l = 0; l < c.length; l++, k++)
433
- t.props[k] = o[d] ? h[d].replace(/&\f/g, c[l]) : c[l] + " " + h[d];
447
+ if (!(t.props.length === 1 && s.charCodeAt(0) !== 58 && !xe.get(r)) && !i) {
448
+ xe.set(t, !0);
449
+ for (var o = [], h = Or(s, o), c = r.props, u = 0, b = 0; u < h.length; u++)
450
+ for (var l = 0; l < c.length; l++, b++)
451
+ t.props[b] = o[u] ? h[u].replace(/&\f/g, c[l]) : c[l] + " " + h[u];
434
452
  }
435
453
  }
436
- }, ir = function(t) {
454
+ }, _r = function(t) {
437
455
  if (t.type === "decl") {
438
456
  var s = t.value;
439
457
  // charcode for l
@@ -441,11 +459,11 @@ var rr = function(t, s, r) {
441
459
  s.charCodeAt(2) === 98 && (t.return = "", t.value = "");
442
460
  }
443
461
  };
444
- function He(e, t) {
445
- switch (Vt(e, t)) {
462
+ function Oe(e, t) {
463
+ switch (Lr(e, t)) {
446
464
  // color-adjust
447
465
  case 5103:
448
- return u + "print-" + e + e;
466
+ return p + "print-" + e + e;
449
467
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
450
468
  case 5737:
451
469
  case 4201:
@@ -475,58 +493,58 @@ function He(e, t) {
475
493
  case 5365:
476
494
  case 5621:
477
495
  case 3829:
478
- return u + e + e;
496
+ return p + e + e;
479
497
  // appearance, user-select, transform, hyphens, text-size-adjust
480
498
  case 5349:
481
499
  case 4246:
482
500
  case 4810:
483
501
  case 6968:
484
502
  case 2756:
485
- return u + e + ee + e + S + e + e;
503
+ return p + e + te + e + S + e + e;
486
504
  // flex, flex-direction
487
505
  case 6828:
488
506
  case 4268:
489
- return u + e + S + e + e;
507
+ return p + e + S + e + e;
490
508
  // order
491
509
  case 6165:
492
- return u + e + S + "flex-" + e + e;
510
+ return p + e + S + "flex-" + e + e;
493
511
  // align-items
494
512
  case 5187:
495
- return u + e + f(e, /(\w+).+(:[^]+)/, u + "box-$1$2" + S + "flex-$1$2") + e;
513
+ return p + e + m(e, /(\w+).+(:[^]+)/, p + "box-$1$2" + S + "flex-$1$2") + e;
496
514
  // align-self
497
515
  case 5443:
498
- return u + e + S + "flex-item-" + f(e, /flex-|-self/, "") + e;
516
+ return p + e + S + "flex-item-" + m(e, /flex-|-self/, "") + e;
499
517
  // align-content
500
518
  case 4675:
501
- return u + e + S + "flex-line-pack" + f(e, /align-content|flex-|-self/, "") + e;
519
+ return p + e + S + "flex-line-pack" + m(e, /align-content|flex-|-self/, "") + e;
502
520
  // flex-shrink
503
521
  case 5548:
504
- return u + e + S + f(e, "shrink", "negative") + e;
522
+ return p + e + S + m(e, "shrink", "negative") + e;
505
523
  // flex-basis
506
524
  case 5292:
507
- return u + e + S + f(e, "basis", "preferred-size") + e;
525
+ return p + e + S + m(e, "basis", "preferred-size") + e;
508
526
  // flex-grow
509
527
  case 6060:
510
- return u + "box-" + f(e, "-grow", "") + u + e + S + f(e, "grow", "positive") + e;
528
+ return p + "box-" + m(e, "-grow", "") + p + e + S + m(e, "grow", "positive") + e;
511
529
  // transition
512
530
  case 4554:
513
- return u + f(e, /([^-])(transform)/g, "$1" + u + "$2") + e;
531
+ return p + m(e, /([^-])(transform)/g, "$1" + p + "$2") + e;
514
532
  // cursor
515
533
  case 6187:
516
- return f(f(f(e, /(zoom-|grab)/, u + "$1"), /(image-set)/, u + "$1"), e, "") + e;
534
+ return m(m(m(e, /(zoom-|grab)/, p + "$1"), /(image-set)/, p + "$1"), e, "") + e;
517
535
  // background, background-image
518
536
  case 5495:
519
537
  case 3959:
520
- return f(e, /(image-set\([^]*)/, u + "$1$`$1");
538
+ return m(e, /(image-set\([^]*)/, p + "$1$`$1");
521
539
  // justify-content
522
540
  case 4968:
523
- return f(f(e, /(.+:)(flex-)?(.*)/, u + "box-pack:$3" + S + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + u + e + e;
541
+ return m(m(e, /(.+:)(flex-)?(.*)/, p + "box-pack:$3" + S + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + p + e + e;
524
542
  // (margin|padding)-inline-(start|end)
525
543
  case 4095:
526
544
  case 3583:
527
545
  case 4068:
528
546
  case 2532:
529
- return f(e, /(.+)-inline(.+)/, u + "$1$2") + e;
547
+ return m(e, /(.+)-inline(.+)/, p + "$1$2") + e;
530
548
  // (min|max)?(width|height|inline-size|block-size)
531
549
  case 8116:
532
550
  case 7059:
@@ -540,114 +558,114 @@ function He(e, t) {
540
558
  case 5789:
541
559
  case 5021:
542
560
  case 4765:
543
- if (D(e) - 1 - t > 6) switch (L(e, t + 1)) {
561
+ if (T(e) - 1 - t > 6) switch (I(e, t + 1)) {
544
562
  // (m)ax-content, (m)in-content
545
563
  case 109:
546
- if (L(e, t + 4) !== 45) break;
564
+ if (I(e, t + 4) !== 45) break;
547
565
  // (f)ill-available, (f)it-content
548
566
  case 102:
549
- return f(e, /(.+:)(.+)-([^]+)/, "$1" + u + "$2-$3$1" + ee + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
567
+ return m(e, /(.+:)(.+)-([^]+)/, "$1" + p + "$2-$3$1" + te + (I(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
550
568
  // (s)tretch
551
569
  case 115:
552
- return ~ie(e, "stretch") ? He(f(e, "stretch", "fill-available"), t) + e : e;
570
+ return ~ae(e, "stretch") ? Oe(m(e, "stretch", "fill-available"), t) + e : e;
553
571
  }
554
572
  break;
555
573
  // position: sticky
556
574
  case 4949:
557
- if (L(e, t + 1) !== 115) break;
575
+ if (I(e, t + 1) !== 115) break;
558
576
  // display: (flex|inline-flex)
559
577
  case 6444:
560
- switch (L(e, D(e) - 3 - (~ie(e, "!important") && 10))) {
578
+ switch (I(e, T(e) - 3 - (~ae(e, "!important") && 10))) {
561
579
  // stic(k)y
562
580
  case 107:
563
- return f(e, ":", ":" + u) + e;
581
+ return m(e, ":", ":" + p) + e;
564
582
  // (inline-)?fl(e)x
565
583
  case 101:
566
- return f(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + u + (L(e, 14) === 45 ? "inline-" : "") + "box$3$1" + u + "$2$3$1" + S + "$2box$3") + e;
584
+ return m(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + p + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + p + "$2$3$1" + S + "$2box$3") + e;
567
585
  }
568
586
  break;
569
587
  // writing-mode
570
588
  case 5936:
571
- switch (L(e, t + 11)) {
589
+ switch (I(e, t + 11)) {
572
590
  // vertical-l(r)
573
591
  case 114:
574
- return u + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
592
+ return p + e + S + m(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
575
593
  // vertical-r(l)
576
594
  case 108:
577
- return u + e + S + f(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
595
+ return p + e + S + m(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
578
596
  // horizontal(-)tb
579
597
  case 45:
580
- return u + e + S + f(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
598
+ return p + e + S + m(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
581
599
  }
582
- return u + e + S + e + e;
600
+ return p + e + S + e + e;
583
601
  }
584
602
  return e;
585
603
  }
586
- var cr = function(t, s, r, i) {
604
+ var zr = function(t, s, r, i) {
587
605
  if (t.length > -1 && !t.return) switch (t.type) {
588
- case de:
589
- t.return = He(t.value, t.length);
606
+ case he:
607
+ t.return = Oe(t.value, t.length);
590
608
  break;
591
- case Pe:
592
- return O([V(t, {
593
- value: f(t.value, "@", "@" + u)
609
+ case De:
610
+ return H([z(t, {
611
+ value: m(t.value, "@", "@" + p)
594
612
  })], i);
595
- case le:
596
- if (t.length) return zt(t.props, function(o) {
597
- switch (_t(o, /(::plac\w+|:read-\w+)/)) {
613
+ case de:
614
+ if (t.length) return Er(t.props, function(o) {
615
+ switch (Ir(o, /(::plac\w+|:read-\w+)/)) {
598
616
  // :read-(only|write)
599
617
  case ":read-only":
600
618
  case ":read-write":
601
- return O([V(t, {
602
- props: [f(o, /:(read-\w+)/, ":" + ee + "$1")]
619
+ return H([z(t, {
620
+ props: [m(o, /:(read-\w+)/, ":" + te + "$1")]
603
621
  })], i);
604
622
  // :placeholder
605
623
  case "::placeholder":
606
- return O([V(t, {
607
- props: [f(o, /:(plac\w+)/, ":" + u + "input-$1")]
608
- }), V(t, {
609
- props: [f(o, /:(plac\w+)/, ":" + ee + "$1")]
610
- }), V(t, {
611
- props: [f(o, /:(plac\w+)/, S + "input-$1")]
624
+ return H([z(t, {
625
+ props: [m(o, /:(plac\w+)/, ":" + p + "input-$1")]
626
+ }), z(t, {
627
+ props: [m(o, /:(plac\w+)/, ":" + te + "$1")]
628
+ }), z(t, {
629
+ props: [m(o, /:(plac\w+)/, S + "input-$1")]
612
630
  })], i);
613
631
  }
614
632
  return "";
615
633
  });
616
634
  }
617
- }, ar = [cr], lr = function(t) {
635
+ }, Gr = [zr], qr = function(t) {
618
636
  var s = t.key;
619
637
  if (s === "css") {
620
638
  var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
621
- Array.prototype.forEach.call(r, function(w) {
622
- var N = w.getAttribute("data-emotion");
623
- N.indexOf(" ") !== -1 && (document.head.appendChild(w), w.setAttribute("data-s", ""));
639
+ Array.prototype.forEach.call(r, function(d) {
640
+ var y = d.getAttribute("data-emotion");
641
+ y.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
624
642
  });
625
643
  }
626
- var i = t.stylisPlugins || ar, o = {}, h, c = [];
644
+ var i = t.stylisPlugins || Gr, o = {}, h, c = [];
627
645
  h = t.container || document.head, Array.prototype.forEach.call(
628
646
  // this means we will ignore elements which don't have a space in them which
629
647
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
630
648
  document.querySelectorAll('style[data-emotion^="' + s + ' "]'),
631
- function(w) {
632
- for (var N = w.getAttribute("data-emotion").split(" "), p = 1; p < N.length; p++)
633
- o[N[p]] = !0;
634
- c.push(w);
649
+ function(d) {
650
+ for (var y = d.getAttribute("data-emotion").split(" "), g = 1; g < y.length; g++)
651
+ o[y[g]] = !0;
652
+ c.push(d);
635
653
  }
636
654
  );
637
- var d, k = [or, ir];
655
+ var u, b = [Vr, _r];
638
656
  {
639
- var l, a = [Jt, tr(function(w) {
640
- l.insert(w);
641
- })], m = er(k.concat(i, a)), b = function(N) {
642
- return O(Kt(N), m);
657
+ var l, a = [Dr, Fr(function(d) {
658
+ l.insert(d);
659
+ })], f = Br(b.concat(i, a)), v = function(y) {
660
+ return H(Tr(y), f);
643
661
  };
644
- d = function(N, p, x, M) {
645
- l = x, b(N ? N + "{" + p.styles + "}" : p.styles), M && (v.inserted[p.name] = !0);
662
+ u = function(y, g, x, M) {
663
+ l = x, v(y ? y + "{" + g.styles + "}" : g.styles), M && (w.inserted[g.name] = !0);
646
664
  };
647
665
  }
648
- var v = {
666
+ var w = {
649
667
  key: s,
650
- sheet: new Wt({
668
+ sheet: new br({
651
669
  key: s,
652
670
  container: h,
653
671
  nonce: t.nonce,
@@ -658,68 +676,68 @@ var cr = function(t, s, r, i) {
658
676
  nonce: t.nonce,
659
677
  inserted: o,
660
678
  registered: {},
661
- insert: d
679
+ insert: u
662
680
  };
663
- return v.sheet.hydrate(c), v;
681
+ return w.sheet.hydrate(c), w;
664
682
  };
665
683
  const Ve = ({ children: e, viewport: t, containerProps: s }) => {
666
- const r = je(null), [{ theme: i }] = ae(), [o, h] = _({
684
+ const r = Se(null), { theme: i } = re(), [o, h] = O({
667
685
  width: 0,
668
686
  height: 0
669
687
  });
670
- z(() => {
671
- const v = St((N) => {
672
- const p = N.at(0)?.target;
673
- if (!p) return;
674
- const { width: x, height: M } = p.getBoundingClientRect();
688
+ G(() => {
689
+ const w = bt((y) => {
690
+ const g = y.at(0)?.target;
691
+ if (!g) return;
692
+ const { width: x, height: M } = g.getBoundingClientRect();
675
693
  h(() => ({
676
694
  width: x,
677
695
  height: M
678
696
  }));
679
- }, 200), w = new ResizeObserver(v);
680
- return r.current && w.observe(r.current), () => w.disconnect();
697
+ }, 200), d = new ResizeObserver(w);
698
+ return r.current && d.observe(r.current), () => d.disconnect();
681
699
  }, []);
682
- const c = me(t?.width) ? t.width(o.width) : t?.width, d = me(t?.height) ? t.height(o.height) : t?.height, k = ke(c) ? o.width / c : 1, l = ke(d) ? o.height / d : 1, a = Math.min(k, l, 1), m = (d ?? o.height / a) || 0, b = (c ?? o.width / a) || 0;
683
- return /* @__PURE__ */ n("div", { ...s, className: I("tw:w-full tw:h-full tw:p-2 tw:bg-ic-ink-1s", s?.className), children: /* @__PURE__ */ n("div", { className: I("tw:w-full tw:h-full tw:overflow-hidden tw:relative"), ref: r, children: /* @__PURE__ */ n(
700
+ const c = pe(t?.width) ? t.width(o.width) : t?.width, u = pe(t?.height) ? t.height(o.height) : t?.height, b = me(c) ? o.width / c : 1, l = me(u) ? o.height / u : 1, a = Math.min(b, l, 1), f = (u ?? o.height / a) || 0, v = (c ?? o.width / a) || 0;
701
+ return /* @__PURE__ */ n("div", { ...s, className: P("tw:w-full tw:h-full tw:p-2 tw:bg-ic-ink-1s", s?.className), children: /* @__PURE__ */ n("div", { className: P("tw:w-full tw:h-full tw:overflow-hidden tw:relative"), ref: r, children: /* @__PURE__ */ n(
684
702
  "div",
685
703
  {
686
704
  style: {
687
705
  transform: `scale(${a})`,
688
- width: b,
689
- height: m,
690
- marginLeft: (o.width - b) / 2,
691
- marginTop: (o.height - m) / 2
706
+ width: v,
707
+ height: f,
708
+ marginLeft: (o.width - v) / 2,
709
+ marginTop: (o.height - f) / 2
692
710
  },
693
711
  className: "tw:absolute",
694
712
  children: /* @__PURE__ */ n(
695
- Mt,
713
+ ar,
696
714
  {
697
715
  sandbox: "allow-same-origin allow-scripts allow-popups allow-presentation",
698
716
  allow: "autoplay; encrypted-media",
699
717
  width: c ?? "100%",
700
- height: d ?? "100%",
701
- children: /* @__PURE__ */ n(dr, { theme: i, children: e })
718
+ height: u ?? "100%",
719
+ children: /* @__PURE__ */ n(Ur, { theme: i, children: e })
702
720
  }
703
721
  )
704
722
  }
705
723
  ) }) });
706
- }, dr = ({ children: e, theme: t }) => {
707
- const { document: s, window: r } = Rt(), [i, o] = _(!1), h = je(window.customElements.define.bind(window.customElements));
708
- z(() => {
709
- const d = h.current;
710
- return r && (window.customElements.define = function(k, l, a) {
711
- window.customElements.get(k) || r.customElements.define(k, l, a), d(k, l, a);
724
+ }, Ur = ({ children: e, theme: t }) => {
725
+ const { document: s, window: r } = lr(), [i, o] = O(!1), h = Se(window.customElements.define.bind(window.customElements));
726
+ G(() => {
727
+ const u = h.current;
728
+ return r && (window.customElements.define = function(b, l, a) {
729
+ window.customElements.get(b) || r.customElements.define(b, l, a), u(b, l, a);
712
730
  }), s?.head.replaceWith(document.head.cloneNode(!0)), o(!0), () => {
713
- window.customElements.define = d;
731
+ window.customElements.define = u;
714
732
  };
715
733
  }, [s, r]);
716
- const c = lr({
734
+ const c = qr({
717
735
  key: "css",
718
736
  container: s?.head
719
737
  });
720
- return i ? /* @__PURE__ */ n(Ne, { children: /* @__PURE__ */ g(lt, { value: c, children: [
738
+ return i ? /* @__PURE__ */ n(ye, { children: /* @__PURE__ */ k(dr, { value: c, children: [
721
739
  /* @__PURE__ */ n(
722
- dt,
740
+ hr,
723
741
  {
724
742
  styles: {
725
743
  ".frame-content": {
@@ -728,41 +746,60 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
728
746
  minHeight: "100vh",
729
747
  justifyContent: "center"
730
748
  },
731
- [`& *[${pe.DATA_NODE_DROP_TARGET}=${ge.True}]`]: {
749
+ [`& *[${we.DATA_NODE_DROP_TARGET}=${fe.True}]`]: {
732
750
  outlineWidth: 1,
733
751
  outlineStyle: "solid",
734
752
  outlineOffset: -1,
735
753
  outlineColor: "green"
736
754
  },
737
- [`& *[${pe.DATA_NODE_DROP_TARGET_ERROR}=${ge.True}]`]: {
755
+ [`& *[${we.DATA_NODE_DROP_TARGET_ERROR}=${fe.True}]`]: {
738
756
  outlineColor: "red"
739
757
  }
740
758
  }
741
759
  }
742
760
  ),
743
- /* @__PURE__ */ n(xt, { theme: t, children: e })
761
+ /* @__PURE__ */ n(Qt, { theme: t, children: e })
744
762
  ] }) }) : null;
745
- }, hr = ({ render: e }) => {
746
- const { id: t, renderer: s } = Lt((o) => ({
747
- resolvedId: st(o),
748
- renderer: nt(o).renderer
763
+ }, Zr = ({ render: e }) => {
764
+ const { id: t, renderer: s } = gt((o) => ({
765
+ resolvedId: Ge(o),
766
+ renderer: ze(o).renderer
749
767
  })), {
750
768
  queryParams: { mode: r }
751
- } = te(), { isActive: i } = W((o, h) => ({
752
- isActive: h.getEvent("selected").contains(t) && t !== B
769
+ } = ne(), { isActive: i } = F((o, h) => ({
770
+ isActive: h.getEvent("selected").contains(t) && t !== W
753
771
  }));
754
- return s ? Ae(s, { render: e }) : /* @__PURE__ */ g(J, { children: [
755
- i && r === "full" && /* @__PURE__ */ g(J, { children: [
756
- /* @__PURE__ */ n(ze, {}),
757
- /* @__PURE__ */ n(qe, {})
772
+ return s ? Me(s, { render: e }) : /* @__PURE__ */ k(ee, { children: [
773
+ i && r === "full" && /* @__PURE__ */ k(ee, { children: [
774
+ /* @__PURE__ */ n(Ct, {}),
775
+ /* @__PURE__ */ n(xt, {})
758
776
  ] }),
759
777
  e
760
778
  ] });
761
- }, xe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
779
+ };
780
+ L(qe, { inspector: yt, renderer: Nt });
781
+ L(Ue, { inspector: It, renderer: Lt });
782
+ L(Ze, { inspector: Et });
783
+ L(Qe, { inspector: St });
784
+ L(Ye, { inspector: Mt });
785
+ L(Xe, { inspector: Rt });
786
+ L(Ke, { inspector: $t });
787
+ L(Je, { inspector: At });
788
+ L(et, { inspector: jt });
789
+ L(tt, { inspector: Tt });
790
+ L(rt, { inspector: Pt });
791
+ L(nt, { inspector: Dt });
792
+ L(st, { inspector: Bt });
793
+ L(ot, { inspector: Ft });
794
+ L(it, { inspector: Wt });
795
+ L(ct, { inspector: Ht });
796
+ L(at, { inspector: Ot });
797
+ L(lt, { inspector: Vt });
798
+ const Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
762
799
  <path d="M8 5L5 8L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
763
800
  <path d="M5 8H14C17.314 8 20 10.462 20 13.5V13.5C20 16.538 17.314 19 14 19H6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
764
801
  </svg>
765
- `, wr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
802
+ `, Qr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
766
803
  <path d="M12 19.0004C11.158 19.0004 10.315 18.8224 9.496 18.5054" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
767
804
  <path d="M20.882 12.4678C18.99 15.9668 15.495 18.9998 12 18.9998" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
768
805
  <path d="M19.079 8.9209C19.77 9.7299 20.384 10.6119 20.882 11.5329C21.039 11.8239 21.039 12.1769 20.882 12.4679" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -770,133 +807,138 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
770
807
  <path d="M9.77299 14.2271C8.54299 12.9971 8.54299 11.0021 9.77299 9.77211C11.003 8.54211 12.998 8.54211 14.228 9.77211" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
771
808
  <path d="M17.044 6.956C15.497 5.759 13.748 5 12 5C8.50499 5 5.00999 8.033 3.11799 11.533C2.96099 11.824 2.96099 12.177 3.11799 12.468C4.06399 14.217 5.40999 15.849 6.95599 17.045" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
772
809
  </svg>
773
- `, ur = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
810
+ `, Yr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
774
811
  <path fill-rule="evenodd" clip-rule="evenodd" d="M3.11799 12.467C2.96099 12.176 2.96099 11.823 3.11799 11.532C5.00999 8.033 8.50499 5 12 5C15.495 5 18.99 8.033 20.882 11.533C21.039 11.824 21.039 12.177 20.882 12.468C18.99 15.967 15.495 19 12 19C8.50499 19 5.00999 15.967 3.11799 12.467Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
775
812
  <path d="M14.1213 9.87868C15.2929 11.0502 15.2929 12.9497 14.1213 14.1213C12.9497 15.2929 11.0502 15.2929 9.87866 14.1213C8.70709 12.9497 8.70709 11.0502 9.87866 9.87868C11.0502 8.70711 12.9497 8.70711 14.1213 9.87868" stroke="currentColor" stroke-width="1.4286" stroke-linecap="round" stroke-linejoin="round"/>
776
813
  </svg>
777
- `, fr = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M9.75 3C8.50736 3 7.5 4.00736 7.5 5.25C7.5 5.66421 7.83579 6 8.25 6C8.66421 6 9 5.66421 9 5.25C9 4.83579 9.33579 4.5 9.75 4.5H13.75C14.1642 4.5 14.5 4.83579 14.5 5.25V14.75C14.5 15.1642 14.1642 15.5 13.75 15.5H9.75C9.33579 15.5 9 15.1642 9 14.75C9 14.3358 8.66421 14 8.25 14C7.83579 14 7.5 14.3358 7.5 14.75C7.5 15.9926 8.50736 17 9.75 17H13.75C14.9926 17 16 15.9926 16 14.75V5.25C16 4.00736 14.9926 3 13.75 3H9.75Z" fill="currentColor"></path><path d="M12.25 10.75C12.6642 10.75 13 10.4142 13 10C13 9.58579 12.6642 9.25 12.25 9.25L6.56066 9.25L7.53033 8.28033C7.82322 7.98744 7.82322 7.51256 7.53033 7.21967C7.23744 6.92678 6.76256 6.92678 6.46967 7.21967L4.21967 9.46967C4.07902 9.61032 4 9.80109 4 10C4 10.1989 4.07902 10.3897 4.21967 10.5303L6.46967 12.7803C6.76256 13.0732 7.23744 13.0732 7.53033 12.7803C7.82322 12.4874 7.82322 12.0126 7.53033 11.7197L6.56066 10.75H12.25Z" fill="currentColor"></path></svg>', ye = rt(), pr = () => {
814
+ `, Xr = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class=""><path d="M9.75 3C8.50736 3 7.5 4.00736 7.5 5.25C7.5 5.66421 7.83579 6 8.25 6C8.66421 6 9 5.66421 9 5.25C9 4.83579 9.33579 4.5 9.75 4.5H13.75C14.1642 4.5 14.5 4.83579 14.5 5.25V14.75C14.5 15.1642 14.1642 15.5 13.75 15.5H9.75C9.33579 15.5 9 15.1642 9 14.75C9 14.3358 8.66421 14 8.25 14C7.83579 14 7.5 14.3358 7.5 14.75C7.5 15.9926 8.50736 17 9.75 17H13.75C14.9926 17 16 15.9926 16 14.75V5.25C16 4.00736 14.9926 3 13.75 3H9.75Z" fill="currentColor"></path><path d="M12.25 10.75C12.6642 10.75 13 10.4142 13 10C13 9.58579 12.6642 9.25 12.25 9.25L6.56066 9.25L7.53033 8.28033C7.82322 7.98744 7.82322 7.51256 7.53033 7.21967C7.23744 6.92678 6.76256 6.92678 6.46967 7.21967L4.21967 9.46967C4.07902 9.61032 4 9.80109 4 10C4 10.1989 4.07902 10.3897 4.21967 10.5303L6.46967 12.7803C6.76256 13.0732 7.23744 13.0732 7.53033 12.7803C7.82322 12.4874 7.82322 12.0126 7.53033 11.7197L6.56066 10.75H12.25Z" fill="currentColor"></path></svg>', Kr = () => {
778
815
  const {
779
816
  queryParams: { mode: e, screen: t },
780
817
  setQueryParams: s
781
- } = te(), { actions: r, canRedo: i, canUndo: o } = W((l, a) => ({
782
- enabled: l.options.enabled,
783
- canUndo: a.history.canUndo(),
784
- canRedo: a.history.canRedo()
785
- })), h = (l) => {
818
+ } = ne(), [r, i] = O(!1), { handlers: o } = re(), { actions: h, canRedo: c, canUndo: u, query: b } = F((w, d) => ({
819
+ enabled: w.options.enabled,
820
+ canUndo: d.history.canUndo(),
821
+ canRedo: d.history.canRedo()
822
+ })), l = (w) => {
786
823
  s({
787
- screen: l
824
+ screen: w
788
825
  });
789
- }, c = () => {
826
+ }, a = () => {
790
827
  s({ mode: e === "full" ? "compact" : "full" });
791
- }, d = () => {
792
- ye.emit("close");
793
- }, k = () => {
794
- r.selectNode(), ye.emit("submit");
828
+ }, f = () => {
829
+ o.close();
830
+ }, v = async () => {
831
+ try {
832
+ return h.selectNode(), o.submit(b.getSerializedNodes());
833
+ } catch {
834
+ } finally {
835
+ i(!1);
836
+ }
795
837
  };
796
- return /* @__PURE__ */ g(
838
+ return /* @__PURE__ */ k(
797
839
  "div",
798
840
  {
799
- className: I(
841
+ className: P(
800
842
  "tw:flex tw:items-center tw:gap-4 tw:p-2 tw:justify-between tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm"
801
843
  ),
802
844
  children: [
803
- /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-3", children: [
804
- /* @__PURE__ */ n(j, { size: "32", onClick: d, children: /* @__PURE__ */ n(E, { source: fr }) }),
805
- /* @__PURE__ */ n(Ge, { onSelectionChange: h, value: t, children: Ue.map(({ icon: l, size: a }) => /* @__PURE__ */ n(j, { value: a, children: /* @__PURE__ */ n(E, { source: l }) }, a)) }),
806
- /* @__PURE__ */ g("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: [
807
- /* @__PURE__ */ n(j, { onClick: r.history.undo, disabled: !o, children: /* @__PURE__ */ n(E, { source: xe }) }),
808
- /* @__PURE__ */ n(j, { onClick: r.history.redo, disabled: !i, children: /* @__PURE__ */ n(E, { source: xe, className: "tw:rotate-180" }) })
845
+ /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-3", children: [
846
+ /* @__PURE__ */ n(A, { size: "32", onClick: f, children: /* @__PURE__ */ n(E, { source: Xr }) }),
847
+ /* @__PURE__ */ n(_t, { onSelectionChange: l, value: t, children: zt.map(({ icon: w, size: d }) => /* @__PURE__ */ n(A, { value: d, children: /* @__PURE__ */ n(E, { source: w }) }, d)) }),
848
+ /* @__PURE__ */ k("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: [
849
+ /* @__PURE__ */ n(A, { onClick: h.history.undo, disabled: !u, children: /* @__PURE__ */ n(E, { source: Ne }) }),
850
+ /* @__PURE__ */ n(A, { onClick: h.history.redo, disabled: !c, children: /* @__PURE__ */ n(E, { source: Ne, className: "tw:rotate-180" }) })
809
851
  ] }),
810
- /* @__PURE__ */ n("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: /* @__PURE__ */ n(j, { onClick: c, children: /* @__PURE__ */ n(E, { source: e === "full" ? ur : wr }) }) })
852
+ /* @__PURE__ */ n("div", { className: "tw:p-1 tw:flex tw:items-center tw:gap-2 tw:bg-ic-white-1s tw:rounded-lg", children: /* @__PURE__ */ n(A, { onClick: a, children: /* @__PURE__ */ n(E, { source: e === "full" ? Yr : Qr }) }) })
811
853
  ] }),
812
- /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ n(Le, { onClick: k, children: "Save" }) })
854
+ /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:gap-3", children: /* @__PURE__ */ n(Le, { isLoading: r, onClick: v, children: "Save" }) })
813
855
  ]
814
856
  }
815
857
  );
816
- }, gr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
858
+ }, Jr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
817
859
  <path d="M20 19.9997L16.3763 16.376" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
818
860
  <path d="M4 11.25C4 15.2541 7.24594 18.5 11.25 18.5C15.2541 18.5 18.5 15.2541 18.5 11.25C18.5 7.24594 15.2541 4 11.25 4V4C7.24606 4.00029 4.00029 7.24606 4 11.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
819
861
  </svg>
820
- `, mr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
862
+ `, en = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
821
863
  <path d="M15 6L9 12L15 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
822
864
  </svg>
823
- `, kr = ({ elements: e, sections: t }) => /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:h-full", children: [
824
- /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:p-2 tw:gap-3", children: /* @__PURE__ */ n(Ee, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(E, { source: gr }) }) }),
825
- /* @__PURE__ */ g(Ze, { defaultIndex: 1, className: "tw:flex-1 tw:overflow-hidden tw:border-t tw:border-ic-white-1s", children: [
826
- /* @__PURE__ */ g(Qe, { children: [
827
- /* @__PURE__ */ n(we, { className: "tw:flex-1", children: "Sections" }),
828
- /* @__PURE__ */ n(we, { className: "tw:flex-1", children: "Elements" })
865
+ `, tn = ({ elements: e, sections: t }) => /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:h-full", children: [
866
+ /* @__PURE__ */ n("div", { className: "tw:flex tw:items-center tw:p-2 tw:gap-3", children: /* @__PURE__ */ n(Ie, { fullWidth: !0, placeholder: "Search...", prefix: /* @__PURE__ */ n(E, { source: Jr }) }) }),
867
+ /* @__PURE__ */ k(Gt, { defaultIndex: 1, className: "tw:flex-1 tw:overflow-hidden tw:border-t tw:border-ic-white-1s", children: [
868
+ /* @__PURE__ */ k(qt, { children: [
869
+ /* @__PURE__ */ n(ge, { className: "tw:flex-1", children: "Sections" }),
870
+ /* @__PURE__ */ n(ge, { className: "tw:flex-1", children: "Elements" })
829
871
  ] }),
830
- /* @__PURE__ */ g(Ye, { className: "tw:flex-1 tw:overflow-hidden", children: [
831
- /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(oe, { className: "tw:h-full tw:py-2", children: t?.map((s, r) => /* @__PURE__ */ n(br, { group: s }, r)) }) }),
832
- /* @__PURE__ */ n(ue, { className: "tw:h-full tw:overflow-hidden", children: /* @__PURE__ */ n(oe, { className: "tw:h-full tw:py-2", children: e?.map((s, r) => /* @__PURE__ */ n(vr, { group: s }, r)) }) })
872
+ /* @__PURE__ */ k(Ut, { className: "tw:flex-1 tw:overflow-hidden", children: [
873
+ /* @__PURE__ */ n(ke, { children: /* @__PURE__ */ n(ce, { className: "tw:h-full tw:py-2", children: t?.map((s, r) => /* @__PURE__ */ n(nn, { group: s }, r)) }) }),
874
+ /* @__PURE__ */ n(ke, { className: "tw:h-full tw:overflow-hidden", children: /* @__PURE__ */ n(ce, { className: "tw:h-full tw:py-2", children: e?.map((s, r) => /* @__PURE__ */ n(rn, { group: s }, r)) }) })
833
875
  ] })
834
876
  ] })
835
- ] }), vr = ({ group: e }) => {
836
- const [t, s] = De(!0), { actions: r, connectors: i } = W();
837
- return /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:text-sm", children: [
838
- /* @__PURE__ */ n(Le, { onClick: s, className: "tw:bg-transparent", children: /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:justify-between tw:flex-1 tw:text-sm", children: [
877
+ ] }), rn = ({ group: e }) => {
878
+ const [t, s] = Te(!0), { actions: r, connectors: i } = F();
879
+ return /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:text-sm", children: [
880
+ /* @__PURE__ */ n(Le, { onClick: s, className: "tw:bg-transparent", children: /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:justify-between tw:flex-1 tw:text-sm", children: [
839
881
  e.name,
840
882
  /* @__PURE__ */ n(
841
883
  E,
842
884
  {
843
- source: Se,
844
- className: I("tw:transition-transform", {
885
+ source: Re,
886
+ className: P("tw:transition-transform", {
845
887
  "tw:rotate-180": !t
846
888
  })
847
889
  }
848
890
  )
849
891
  ] }) }),
850
- /* @__PURE__ */ n(Ke, { open: t, children: /* @__PURE__ */ n("div", { className: "tw:px-4 tw:py-2 tw:grid tw:grid-cols-2 tw:gap-4", children: e.elements.map((o, h) => /* @__PURE__ */ g("div", { className: "tw:space-y-1", children: [
892
+ /* @__PURE__ */ n(dt, { open: t, children: /* @__PURE__ */ n("div", { className: "tw:px-4 tw:py-2 tw:grid tw:grid-cols-2 tw:gap-4", children: e.elements.map((o, h) => /* @__PURE__ */ k("div", { className: "tw:space-y-1", children: [
851
893
  /* @__PURE__ */ n(
852
894
  "div",
853
895
  {
854
- className: I(
896
+ className: P(
855
897
  "tw:bg-ic-ink-6s tw:relative tw:transition-transform tw:rounded-lg tw:hover:scale-105 tw:pointer-events-auto tw:aspect-video tw:overflow-hidden",
856
898
  "tw:cursor-grabbing tw:flex tw:flex-col tw:gap-1 tw:items-center tw:justify-center tw:p-1 tw:opacity-100 tw:text-ic-white-5s",
857
899
  "tw:after:absolute tw:after:inset-0 tw:after:content-empty tw:after:bg-ic-white-1s"
858
900
  ),
859
901
  ref: (c) => {
860
902
  c && i.create(c, o.template, {
861
- onCreate(d) {
862
- (typeof o.autoFocus == "function" ? o.autoFocus(d) : o.autoFocus) && r.selectNode(d.rootNodeId), o.onCreate?.(d);
903
+ onCreate(u) {
904
+ (typeof o.autoFocus == "function" ? o.autoFocus(u) : o.autoFocus) && r.selectNode(u.rootNodeId), o.onCreate?.(u);
863
905
  }
864
906
  });
865
907
  },
866
- children: /* @__PURE__ */ n(ot, { width: void 0, height: void 0, ...o.icon })
908
+ children: /* @__PURE__ */ n(ht, { width: void 0, height: void 0, ...o.icon })
867
909
  }
868
910
  ),
869
911
  /* @__PURE__ */ n("p", { className: "tw:text-xs tw:mx-auto tw:text-center", children: o.name })
870
912
  ] }, h)) }) })
871
913
  ] });
872
- }, br = ({ group: e }) => {
873
- const [t, s] = _(!1), { refs: r, floatingStyles: i, context: o } = wt({
914
+ }, nn = ({ group: e }) => {
915
+ const [t, s] = O(!1), { refs: r, floatingStyles: i, context: o } = Kt({
874
916
  open: t,
875
917
  onOpenChange: s,
876
918
  placement: "right-start",
877
919
  middleware: [
878
- ft(),
879
- pt({
880
- apply({ elements: m }) {
881
- const b = {
882
- zIndex: `${yt}`,
883
- height: `${m.reference.getBoundingClientRect().height}px`
920
+ er(),
921
+ tr({
922
+ apply({ elements: f }) {
923
+ const v = {
924
+ zIndex: `${Yt}`,
925
+ height: `${f.reference.getBoundingClientRect().height}px`
884
926
  };
885
- Object.assign(m.floating.style, b);
927
+ Object.assign(f.floating.style, v);
886
928
  }
887
929
  })
888
930
  ],
889
- whileElementsMounted: ut
931
+ whileElementsMounted: Jt
890
932
  });
891
- z(() => {
933
+ G(() => {
892
934
  r.setPositionReference(document.querySelector("aside"));
893
935
  }, [r]);
894
- const h = gt(o, { move: !1, handleClose: mt() }), c = kt(o), d = vt(o), k = bt(o), { getReferenceProps: l, getFloatingProps: a } = Ct([h, c, d, k]);
895
- return /* @__PURE__ */ g(J, { children: [
896
- /* @__PURE__ */ g(
936
+ const h = rr(o, { move: !1, handleClose: nr() }), c = sr(o), u = or(o), b = ir(o), { getReferenceProps: l, getFloatingProps: a } = cr([h, c, u, b]);
937
+ return /* @__PURE__ */ k(ee, { children: [
938
+ /* @__PURE__ */ k(
897
939
  "button",
898
940
  {
899
- className: I(
941
+ className: P(
900
942
  "tw:w-full tw:text-left tw:flex tw:items-center tw:text-ic-white-5s tw:gap-2 tw:p-2 tw:rounded-lg",
901
943
  "tw:hover:text-ic-white-6s tw:hover:bg-ic-white-1s tw:hover:font-medium"
902
944
  ),
@@ -905,31 +947,31 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
905
947
  children: [
906
948
  /* @__PURE__ */ n("div", { className: "tw:bg-ic-white-1s tw:p-1.5 tw:rounded-lg", children: /* @__PURE__ */ n(E, { ...e.icon }) }),
907
949
  /* @__PURE__ */ n("span", { className: "tw:flex-1 tw:truncate", children: e.name }),
908
- /* @__PURE__ */ n(E, { className: "tw:rotate-180", source: mr })
950
+ /* @__PURE__ */ n(E, { className: "tw:rotate-180", source: en })
909
951
  ]
910
952
  }
911
953
  ),
912
- t && /* @__PURE__ */ n(Ie, { children: /* @__PURE__ */ n("div", { style: i, ...a(), ref: r.setFloating, children: /* @__PURE__ */ g("div", { className: "tw:h-full tw:flex tw:flex-col tw:border-l tw:border-t tw:border-ic-white-2s tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm", children: [
954
+ t && /* @__PURE__ */ n(je, { children: /* @__PURE__ */ n("div", { style: i, ...a(), ref: r.setFloating, children: /* @__PURE__ */ k("div", { className: "tw:h-full tw:flex tw:flex-col tw:border-l tw:border-t tw:border-ic-white-2s tw:bg-ic-ink-6s tw:text-ic-white-6s tw:text-sm", children: [
913
955
  /* @__PURE__ */ n("div", { className: "tw:h-12 tw:px-2 tw:flex tw:items-center", children: /* @__PURE__ */ n("h6", { className: "tw:font-medium", children: e.name }) }),
914
- /* @__PURE__ */ n(oe, { className: "tw:flex-1 tw:px-3", children: /* @__PURE__ */ n("div", { className: "tw:flex tw:flex-col tw:gap-4", children: e.sections.map((m, b) => /* @__PURE__ */ ht(Cr, { ...m, key: b })) }) })
956
+ /* @__PURE__ */ n(ce, { className: "tw:flex-1 tw:px-3", children: /* @__PURE__ */ n("div", { className: "tw:flex tw:flex-col tw:gap-4", children: e.sections.map((f, v) => /* @__PURE__ */ ur(sn, { ...f, key: v })) }) })
915
957
  ] }) }) })
916
958
  ] });
917
- }, Cr = ({ template: e, autoFocus: t = !0, onCreate: s }) => {
918
- const [, r] = _(!1), [i] = ae(), { actions: o, connectors: h, resolver: c, query: d } = W((l) => ({
959
+ }, sn = ({ template: e, autoFocus: t = !0, onCreate: s }) => {
960
+ const [, r] = O(!1), i = re(), { actions: o, connectors: h, resolver: c, query: u } = F((l) => ({
919
961
  resolver: l.options.resolver
920
- })), k = _(() => {
962
+ })), b = O(() => {
921
963
  const l = typeof e == "function" ? e() : e;
922
964
  let a;
923
- "rootNodeId" in l ? a = l : a = d.parseReactElement(l).toNodeTree();
924
- const { rootNodeId: m, nodes: b } = a, v = {};
925
- return Object.entries(b).forEach(([w, N]) => {
926
- const p = Et(N.data, c), x = w === m ? B : w;
927
- v[x] = {
928
- ...p,
929
- parent: p.parent === m ? B : p.parent,
930
- nodes: p.nodes?.map((M) => M === m ? B : M)
965
+ "rootNodeId" in l ? a = l : a = u.parseReactElement(l).toNodeTree();
966
+ const { rootNodeId: f, nodes: v } = a, w = {};
967
+ return Object.entries(v).forEach(([d, y]) => {
968
+ const g = kt(y.data, c), x = d === f ? W : d;
969
+ w[x] = {
970
+ ...g,
971
+ parent: g.parent === f ? W : g.parent,
972
+ nodes: g.nodes?.map((M) => M === f ? W : M)
931
973
  };
932
- }), v;
974
+ }), w;
933
975
  })[0];
934
976
  return /* @__PURE__ */ n(
935
977
  "div",
@@ -952,13 +994,13 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
952
994
  backgroundColor: i.theme.palette.background.default
953
995
  }
954
996
  },
955
- viewport: { width: Nt.md.minWidth },
956
- children: /* @__PURE__ */ n(Me, { resolver: c, children: /* @__PURE__ */ n(Re, { data: k }) })
997
+ viewport: { width: Xt.md.minWidth },
998
+ children: /* @__PURE__ */ n($e, { resolver: c, children: /* @__PURE__ */ n(Ae, { data: b }) })
957
999
  }
958
1000
  ) }) })
959
1001
  }
960
1002
  );
961
- }, xr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1003
+ }, on = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
962
1004
  <path d="M12.5 2H9.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
963
1005
  <path d="M2 9.5V12.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
964
1006
  <path d="M10.257 16.6214L7.075 13.4394C6.489 12.8534 6.489 11.9034 7.075 11.3184V11.3184C7.661 10.7324 8.611 10.7324 9.196 11.3184" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -969,81 +1011,81 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
969
1011
  <path d="M2 17V18C2 19.105 2.895 20 4 20H5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
970
1012
  <path d="M20 5V4C20 2.895 19.105 2 18 2H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
971
1013
  </svg>
972
- `, yr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1014
+ `, cn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
973
1015
  <circle cx="6.49771" cy="5.49762" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
974
1016
  <circle cx="6.49771" cy="18.503" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
975
1017
  <path d="M6.49771 7.99854V16.0019" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
976
1018
  <circle cx="17.5023" cy="13.0006" r="2.50104" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
977
1019
  <path d="M6.49771 7.99854V7.99854C6.49771 10.7611 8.73722 13.0006 11.4998 13.0006H15.0013" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
978
1020
  </svg>
979
- `, Nr = (e) => {
980
- const { query: t, actions: s } = W(), {
1021
+ `, an = (e) => {
1022
+ const { query: t, actions: s } = F(), {
981
1023
  id: r,
982
1024
  expanded: i,
983
1025
  actions: o,
984
1026
  displayName: h,
985
1027
  children: c,
986
- depth: d
987
- } = jt((b) => ({
988
- expanded: b.expanded,
989
- displayName: $e(t.node(b.id).get())
990
- })), { selected: k, selectable: l } = W((b, v) => {
991
- const w = v.node(r).get();
1028
+ depth: u
1029
+ } = fr((v) => ({
1030
+ expanded: v.expanded,
1031
+ displayName: Ee(t.node(v.id).get())
1032
+ })), { selected: b, selectable: l } = F((v, w) => {
1033
+ const d = w.node(r).get();
992
1034
  return {
993
- selected: v.getEvent("selected").contains(r),
994
- nodeDOM: w.dom,
995
- selectable: it(w)
1035
+ selected: w.getEvent("selected").contains(r),
1036
+ nodeDOM: d.dom,
1037
+ selectable: ft(d)
996
1038
  };
997
1039
  });
998
- z(() => {
999
- r === B && o.setExpandedState(!0);
1000
- }, [o, r]), z(() => {
1040
+ G(() => {
1041
+ r === W && o.setExpandedState(!0);
1042
+ }, [o, r]), G(() => {
1001
1043
  if (c.length === 0) return;
1002
- c.some((v) => {
1003
- const w = t.getEvent("selected").all();
1004
- return w.includes(v) ? !0 : t.node(v).descendants(!0).some((p) => w.includes(p));
1044
+ c.some((w) => {
1045
+ const d = t.getEvent("selected").all();
1046
+ return d.includes(w) ? !0 : t.node(w).descendants(!0).some((g) => d.includes(g));
1005
1047
  }) && o.setExpandedState(!0);
1006
1048
  }, [c, o, t]);
1007
1049
  const a = () => {
1008
1050
  s.selectNode(r);
1009
- }, m = (b) => {
1010
- b.stopPropagation(), o.toggleLayer();
1051
+ }, f = (v) => {
1052
+ v.stopPropagation(), o.toggleLayer();
1011
1053
  };
1012
- return /* @__PURE__ */ g(
1054
+ return /* @__PURE__ */ k(
1013
1055
  "div",
1014
1056
  {
1015
1057
  className: "tw:py-1",
1016
1058
  children: [
1017
- /* @__PURE__ */ g(
1059
+ /* @__PURE__ */ k(
1018
1060
  "div",
1019
1061
  {
1020
1062
  onClick: a,
1021
1063
  style: {
1022
- paddingLeft: Math.max(0, d - 1) * 16
1064
+ paddingLeft: Math.max(0, u - 1) * 16
1023
1065
  },
1024
- className: I(
1066
+ className: P(
1025
1067
  "tw:flex tw:items-center tw:gap-0.5 tw:cursor-pointer tw:rounded-1 tw:pr-2 tw:py-1 tw:border tw:border-ic-white-1s tw:hover:bg-ic-white-1s",
1026
1068
  {
1027
- hidden: r === B,
1028
- "tw:bg-ic-black-7s": k,
1069
+ hidden: r === W,
1070
+ "tw:bg-ic-black-7s": b,
1029
1071
  "tw:pointer-events-none": !l
1030
1072
  }
1031
1073
  ),
1032
1074
  children: [
1033
- c.length ? /* @__PURE__ */ n(j, { className: "tw:pointer-events-auto", onClick: m, children: /* @__PURE__ */ n(
1075
+ c.length ? /* @__PURE__ */ n(A, { className: "tw:pointer-events-auto", onClick: f, children: /* @__PURE__ */ n(
1034
1076
  E,
1035
1077
  {
1036
- className: I("tw:transition-transform tw:-rotate-90", {
1078
+ className: P("tw:transition-transform tw:-rotate-90", {
1037
1079
  "tw:rotate-0": i
1038
1080
  }),
1039
1081
  size: 16,
1040
- source: Se
1082
+ source: Re
1041
1083
  }
1042
- ) }) : /* @__PURE__ */ n("div", { className: "tw:p-1", children: /* @__PURE__ */ n(E, { size: 16, source: yr }) }),
1084
+ ) }) : /* @__PURE__ */ n("div", { className: "tw:p-1", children: /* @__PURE__ */ n(E, { size: 16, source: cn }) }),
1043
1085
  /* @__PURE__ */ n(
1044
1086
  "span",
1045
1087
  {
1046
- className: I("tw:flex-1 tw:truncate", {
1088
+ className: P("tw:flex-1 tw:truncate", {
1047
1089
  "tw:text-ic-white-3s": !l
1048
1090
  }),
1049
1091
  children: h
@@ -1056,12 +1098,12 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
1056
1098
  ]
1057
1099
  }
1058
1100
  );
1059
- }, Lr = ({ onClose: e }) => {
1060
- const t = It(), s = (r) => {
1101
+ }, ln = ({ onClose: e }) => {
1102
+ const t = gr(), s = (r) => {
1061
1103
  t.start(r);
1062
1104
  };
1063
- return /* @__PURE__ */ n(Ie, { children: /* @__PURE__ */ g(
1064
- Xe.div,
1105
+ return /* @__PURE__ */ n(je, { children: /* @__PURE__ */ k(
1106
+ ut.div,
1065
1107
  {
1066
1108
  drag: !0,
1067
1109
  dragControls: t,
@@ -1069,64 +1111,64 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
1069
1111
  style: { zIndex: 1e5, width: 320, height: 400, top: 80, right: 40 },
1070
1112
  className: "tw:fixed tw:rounded-2 tw:bg-ic-ink-6s tw:text-white tw:flex tw:flex-col tw:border tw:border-ic-white-2s",
1071
1113
  children: [
1072
- /* @__PURE__ */ g(
1114
+ /* @__PURE__ */ k(
1073
1115
  "div",
1074
1116
  {
1075
1117
  onPointerDown: s,
1076
1118
  className: "tw:py-2 tw:cursor-grab tw:flex tw:items-center tw:justify-between tw:px-4",
1077
1119
  children: [
1078
- /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
1079
- /* @__PURE__ */ n(E, { source: xr }),
1120
+ /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-2", children: [
1121
+ /* @__PURE__ */ n(E, { source: on }),
1080
1122
  /* @__PURE__ */ n("p", { className: "tw:text-sm tw:font-medium", children: "Layers" })
1081
1123
  ] }),
1082
- /* @__PURE__ */ n(j, { onClick: e, children: /* @__PURE__ */ n(E, { source: Je }) })
1124
+ /* @__PURE__ */ n(A, { onClick: e, children: /* @__PURE__ */ n(E, { source: wt }) })
1083
1125
  ]
1084
1126
  }
1085
1127
  ),
1086
- /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s tw:p-2", children: /* @__PURE__ */ n($t, { renderLayer: Nr }) })
1128
+ /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s tw:p-2", children: /* @__PURE__ */ n(wr, { renderLayer: an }) })
1087
1129
  ]
1088
1130
  }
1089
1131
  ) });
1090
- }, Er = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1132
+ }, dn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1091
1133
  <path fill-rule="evenodd" clip-rule="evenodd" d="M3 7.024L11.987 11.049L21 7.024L12.013 3L3 7.024Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1092
1134
  <path d="M15.436 14.484L21 16.976L11.987 21L3 16.976L8.564 14.491" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1093
1135
  <path d="M15.436 9.50903L21 12L11.987 16.024L3 12L8.564 9.51603" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1094
1136
  </svg>
1095
- `, Sr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1137
+ `, hn = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1096
1138
  <path d="M5 12H19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1097
1139
  <path d="M10 7L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1098
1140
  <path d="M10 17L5 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1099
1141
  </svg>
1100
- `, Mr = ({ insert: e }) => {
1101
- const [t, s] = De(!1), {
1142
+ `, un = ({ insert: e }) => {
1143
+ const [t, s] = Te(!1), {
1102
1144
  queryParams: {
1103
1145
  action: r = "insert"
1104
1146
  /* Insert */
1105
1147
  },
1106
1148
  setQueryParams: i
1107
- } = te(), { actions: o, isDeletable: h, focusedNode: c } = W((a, m) => {
1108
- const b = m.getEvent("selected").first(), v = b ? m.node(b) : null;
1149
+ } = ne(), { actions: o, isDeletable: h, focusedNode: c } = F((a, f) => {
1150
+ const v = f.getEvent("selected").first(), w = v ? f.node(v) : null;
1109
1151
  return {
1110
1152
  enabled: a.options.enabled,
1111
- isDeletable: !!(v?.isDeletable() && (v.get().data.custom?.deletable ?? !0)),
1112
- focusedNode: v?.get()
1153
+ isDeletable: !!(w?.isDeletable() && (w.get().data.custom?.deletable ?? !0)),
1154
+ focusedNode: w?.get()
1113
1155
  };
1114
- }), d = () => {
1156
+ }), u = () => {
1115
1157
  o.selectNode();
1116
- }, k = (a) => {
1158
+ }, b = (a) => {
1117
1159
  o.delete(a.currentTarget.value);
1118
1160
  }, l = (a) => {
1119
- const m = a.currentTarget.value;
1120
- m === "layers" ? s() : (d(), i({
1121
- action: m
1161
+ const f = a.currentTarget.value;
1162
+ f === "layers" ? s() : (u(), i({
1163
+ action: f
1122
1164
  }));
1123
1165
  };
1124
- return /* @__PURE__ */ g(J, { children: [
1125
- /* @__PURE__ */ g("aside", { className: "tw:flex tw:items-stretch tw:bg-ic-ink-6s tw:relative tw:border-t tw:border-ic-white-2s tw:text-ic-white-6s tw:text-sm", children: [
1126
- /* @__PURE__ */ g("div", { className: "tw:px-1 tw:flex tw:flex-col tw:gap-1", children: [
1127
- !!e && /* @__PURE__ */ g(Ne, { children: [
1166
+ return /* @__PURE__ */ k(ee, { children: [
1167
+ /* @__PURE__ */ k("aside", { className: "tw:flex tw:items-stretch tw:bg-ic-ink-6s tw:relative tw:border-t tw:border-ic-white-2s tw:text-ic-white-6s tw:text-sm", children: [
1168
+ /* @__PURE__ */ k("div", { className: "tw:px-1 tw:flex tw:flex-col tw:gap-1", children: [
1169
+ !!e && /* @__PURE__ */ k(ye, { children: [
1128
1170
  /* @__PURE__ */ n(
1129
- j,
1171
+ A,
1130
1172
  {
1131
1173
  tooltip: {
1132
1174
  content: "Insert",
@@ -1136,13 +1178,13 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
1136
1178
  value: "insert",
1137
1179
  className: "tw:relative",
1138
1180
  size: "32",
1139
- children: /* @__PURE__ */ n(E, { source: ct })
1181
+ children: /* @__PURE__ */ n(E, { source: pt })
1140
1182
  }
1141
1183
  ),
1142
1184
  /* @__PURE__ */ n("hr", { className: "tw:border-ic-white-2s" })
1143
1185
  ] }),
1144
1186
  /* @__PURE__ */ n(
1145
- j,
1187
+ A,
1146
1188
  {
1147
1189
  tooltip: {
1148
1190
  content: "Layers",
@@ -1152,55 +1194,56 @@ const Ve = ({ children: e, viewport: t, containerProps: s }) => {
1152
1194
  value: "layers",
1153
1195
  className: "tw:relative",
1154
1196
  size: "32",
1155
- children: /* @__PURE__ */ n(E, { source: Er })
1197
+ children: /* @__PURE__ */ n(E, { source: dn })
1156
1198
  }
1157
1199
  )
1158
1200
  ] }),
1159
- /* @__PURE__ */ g(
1201
+ /* @__PURE__ */ k(
1160
1202
  "div",
1161
1203
  {
1162
- className: I("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
1204
+ className: P("tw:relative tw:flex tw:flex-col tw:border-l tw:border-ic-white-1s tw:w-72 tw:overflow-auto"),
1163
1205
  children: [
1164
- !c?.related.inspector && /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto scrollbar", children: r === "insert" && !!e && /* @__PURE__ */ n(kr, { elements: e.elements, sections: e.sections }) }),
1165
- !!c?.related?.inspector && /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:flex-1 tw:overflow-hidden", children: [
1166
- /* @__PURE__ */ g("div", { className: "tw:flex tw:items-center tw:gap-2 tw:px-2 tw:py-2", children: [
1167
- /* @__PURE__ */ n(j, { onClick: d, children: /* @__PURE__ */ n(E, { source: Sr }) }),
1168
- /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ n(Ee, { fullWidth: !0, value: $e(c), size: "32" }) }),
1169
- h && /* @__PURE__ */ n(j, { value: c.id, onClick: k, children: /* @__PURE__ */ n(E, { className: "tw:text-ic-red-4s", source: et }) })
1206
+ !c?.related.inspector && /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto scrollbar", children: r === "insert" && !!e && /* @__PURE__ */ n(tn, { elements: e.elements, sections: e.sections }) }),
1207
+ !!c?.related?.inspector && /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:flex-1 tw:overflow-hidden", children: [
1208
+ /* @__PURE__ */ k("div", { className: "tw:flex tw:items-center tw:gap-2 tw:px-2 tw:py-2", children: [
1209
+ /* @__PURE__ */ n(A, { onClick: u, children: /* @__PURE__ */ n(E, { source: hn }) }),
1210
+ /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-hidden", children: /* @__PURE__ */ n(Ie, { fullWidth: !0, value: Ee(c), size: "32" }) }),
1211
+ h && /* @__PURE__ */ n(A, { value: c.id, onClick: b, children: /* @__PURE__ */ n(E, { className: "tw:text-ic-red-4s", source: Zt }) })
1170
1212
  ] }),
1171
- /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ n(at, { fallback: null, children: Ae(c.related.inspector) }) })
1213
+ /* @__PURE__ */ n("div", { className: "tw:flex-1 tw:overflow-auto tw:border-t tw:border-ic-white-1s scrollbar-hidden", children: /* @__PURE__ */ n(vt, { fallback: null, children: Me(c.related.inspector) }) })
1172
1214
  ] })
1173
1215
  ]
1174
1216
  }
1175
1217
  )
1176
1218
  ] }),
1177
- t && /* @__PURE__ */ n(Lr, { onClose: s })
1219
+ t && /* @__PURE__ */ n(ln, { onClose: s })
1178
1220
  ] });
1179
- }, Vr = ({ theme: e, insert: t, resolver: s }) => {
1221
+ }, zn = ({ theme: e, insert: t, resolver: s, handlers: r }) => {
1180
1222
  const {
1181
- queryParams: { screen: r }
1182
- } = te();
1183
- return ae({
1184
- theme: e
1185
- }), /* @__PURE__ */ n(Me, { enabled: !0, onRender: hr, resolver: s, children: /* @__PURE__ */ g("div", { className: "tw:flex tw:flex-col tw:w-screen tw:h-screen tw:bg-ic-ink-6s tw:text-ic-white-6s", children: [
1186
- /* @__PURE__ */ n(pr, {}),
1187
- /* @__PURE__ */ g("div", { className: "tw:flex-1 tw:overflow-hidden tw:flex", children: [
1188
- /* @__PURE__ */ n(Mr, { insert: t }),
1223
+ queryParams: { screen: i }
1224
+ } = ne();
1225
+ return re({
1226
+ theme: e,
1227
+ handlers: r
1228
+ }), /* @__PURE__ */ n($e, { enabled: !0, onRender: Zr, resolver: s, children: /* @__PURE__ */ k("div", { className: "tw:flex tw:flex-col tw:w-screen tw:h-screen tw:bg-ic-ink-6s tw:text-ic-white-6s", children: [
1229
+ /* @__PURE__ */ n(Kr, {}),
1230
+ /* @__PURE__ */ k("div", { className: "tw:flex-1 tw:overflow-hidden tw:flex", children: [
1231
+ /* @__PURE__ */ n(un, { insert: t }),
1189
1232
  /* @__PURE__ */ n(
1190
1233
  Ve,
1191
1234
  {
1192
1235
  viewport: {
1193
- width: (i) => r === "lg" ? Math.max(i, fe[r]) : fe[r]
1236
+ width: (o) => i === "lg" ? Math.max(o, ve[i]) : ve[i]
1194
1237
  },
1195
- children: /* @__PURE__ */ n(Re, { children: /* @__PURE__ */ n(tt, {}) })
1238
+ children: /* @__PURE__ */ n(Ae, { children: /* @__PURE__ */ n(mt, {}) })
1196
1239
  }
1197
1240
  )
1198
1241
  ] })
1199
1242
  ] }) });
1200
1243
  };
1201
1244
  export {
1202
- Vr as Editor,
1203
- te as useEditorQueryParams,
1204
- qr as useEditorResponsive,
1205
- ae as useEditorState
1245
+ zn as Editor,
1246
+ re as useEditor,
1247
+ ne as useEditorQueryParams,
1248
+ Un as useEditorResponsive
1206
1249
  };